pi-webapp 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/README.zh-CN.md +3 -1
- package/bin/pi-webapp.mjs +62 -1
- package/dist/extension.js +6 -6
- package/package.json +2 -2
- package/web/dist/assets/app.js +43 -43
- package/web/dist/assets/style.css +1 -1
package/web/dist/assets/app.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const
|
|
1
|
+
var $4=Object.defineProperty;var B4=(e,r,i)=>r in e?$4(e,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[r]=i;var t2=(e,r,i)=>B4(e,typeof r!="symbol"?r+"":r,i);(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const d of a.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function i(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(s){if(s.ep)return;s.ep=!0;const a=i(s);fetch(s.href,a)}})();function Zu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ya={exports:{}},ul={},Xa={exports:{}},Ae={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var n2;function H4(){if(n2)return Ae;n2=1;var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.iterator;function v(A){return A===null||typeof A!="object"?null:(A=x&&A[x]||A["@@iterator"],typeof A=="function"?A:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,P={};function R(A,K,N){this.props=A,this.context=K,this.refs=P,this.updater=N||C}R.prototype.isReactComponent={},R.prototype.setState=function(A,K){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,K,"setState")},R.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function j(){}j.prototype=R.prototype;function V(A,K,N){this.props=A,this.context=K,this.refs=P,this.updater=N||C}var S=V.prototype=new j;S.constructor=V,k(S,R.prototype),S.isPureReactComponent=!0;var F=Array.isArray,B=Object.prototype.hasOwnProperty,T={current:null},ee={key:!0,ref:!0,__self:!0,__source:!0};function ie(A,K,N){var ge,ve={},fe=null,Ne=null;if(K!=null)for(ge in K.ref!==void 0&&(Ne=K.ref),K.key!==void 0&&(fe=""+K.key),K)B.call(K,ge)&&!ee.hasOwnProperty(ge)&&(ve[ge]=K[ge]);var Ee=arguments.length-2;if(Ee===1)ve.children=N;else if(1<Ee){for(var ze=Array(Ee),Ue=0;Ue<Ee;Ue++)ze[Ue]=arguments[Ue+2];ve.children=ze}if(A&&A.defaultProps)for(ge in Ee=A.defaultProps,Ee)ve[ge]===void 0&&(ve[ge]=Ee[ge]);return{$$typeof:e,type:A,key:fe,ref:Ne,props:ve,_owner:T.current}}function Y(A,K){return{$$typeof:e,type:A.type,key:K,ref:A.ref,props:A.props,_owner:A._owner}}function D(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function L(A){var K={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(N){return K[N]})}var Z=/\/+/g;function te(A,K){return typeof A=="object"&&A!==null&&A.key!=null?L(""+A.key):K.toString(36)}function W(A,K,N,ge,ve){var fe=typeof A;(fe==="undefined"||fe==="boolean")&&(A=null);var Ne=!1;if(A===null)Ne=!0;else switch(fe){case"string":case"number":Ne=!0;break;case"object":switch(A.$$typeof){case e:case r:Ne=!0}}if(Ne)return Ne=A,ve=ve(Ne),A=ge===""?"."+te(Ne,0):ge,F(ve)?(N="",A!=null&&(N=A.replace(Z,"$&/")+"/"),W(ve,K,N,"",function(Ue){return Ue})):ve!=null&&(D(ve)&&(ve=Y(ve,N+(!ve.key||Ne&&Ne.key===ve.key?"":(""+ve.key).replace(Z,"$&/")+"/")+A)),K.push(ve)),1;if(Ne=0,ge=ge===""?".":ge+":",F(A))for(var Ee=0;Ee<A.length;Ee++){fe=A[Ee];var ze=ge+te(fe,Ee);Ne+=W(fe,K,N,ze,ve)}else if(ze=v(A),typeof ze=="function")for(A=ze.call(A),Ee=0;!(fe=A.next()).done;)fe=fe.value,ze=ge+te(fe,Ee++),Ne+=W(fe,K,N,ze,ve);else if(fe==="object")throw K=String(A),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.");return Ne}function $(A,K,N){if(A==null)return A;var ge=[],ve=0;return W(A,ge,"","",function(fe){return K.call(N,fe,ve++)}),ge}function I(A){if(A._status===-1){var K=A._result;K=K(),K.then(function(N){(A._status===0||A._status===-1)&&(A._status=1,A._result=N)},function(N){(A._status===0||A._status===-1)&&(A._status=2,A._result=N)}),A._status===-1&&(A._status=0,A._result=K)}if(A._status===1)return A._result.default;throw A._result}var J={current:null},z={transition:null},ne={ReactCurrentDispatcher:J,ReactCurrentBatchConfig:z,ReactCurrentOwner:T};function b(){throw Error("act(...) is not supported in production builds of React.")}return Ae.Children={map:$,forEach:function(A,K,N){$(A,function(){K.apply(this,arguments)},N)},count:function(A){var K=0;return $(A,function(){K++}),K},toArray:function(A){return $(A,function(K){return K})||[]},only:function(A){if(!D(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},Ae.Component=R,Ae.Fragment=i,Ae.Profiler=s,Ae.PureComponent=V,Ae.StrictMode=o,Ae.Suspense=p,Ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ne,Ae.act=b,Ae.cloneElement=function(A,K,N){if(A==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+A+".");var ge=k({},A.props),ve=A.key,fe=A.ref,Ne=A._owner;if(K!=null){if(K.ref!==void 0&&(fe=K.ref,Ne=T.current),K.key!==void 0&&(ve=""+K.key),A.type&&A.type.defaultProps)var Ee=A.type.defaultProps;for(ze in K)B.call(K,ze)&&!ee.hasOwnProperty(ze)&&(ge[ze]=K[ze]===void 0&&Ee!==void 0?Ee[ze]:K[ze])}var ze=arguments.length-2;if(ze===1)ge.children=N;else if(1<ze){Ee=Array(ze);for(var Ue=0;Ue<ze;Ue++)Ee[Ue]=arguments[Ue+2];ge.children=Ee}return{$$typeof:e,type:A.type,key:ve,ref:fe,props:ge,_owner:Ne}},Ae.createContext=function(A){return A={$$typeof:d,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},A.Provider={$$typeof:a,_context:A},A.Consumer=A},Ae.createElement=ie,Ae.createFactory=function(A){var K=ie.bind(null,A);return K.type=A,K},Ae.createRef=function(){return{current:null}},Ae.forwardRef=function(A){return{$$typeof:f,render:A}},Ae.isValidElement=D,Ae.lazy=function(A){return{$$typeof:y,_payload:{_status:-1,_result:A},_init:I}},Ae.memo=function(A,K){return{$$typeof:m,type:A,compare:K===void 0?null:K}},Ae.startTransition=function(A){var K=z.transition;z.transition={};try{A()}finally{z.transition=K}},Ae.unstable_act=b,Ae.useCallback=function(A,K){return J.current.useCallback(A,K)},Ae.useContext=function(A){return J.current.useContext(A)},Ae.useDebugValue=function(){},Ae.useDeferredValue=function(A){return J.current.useDeferredValue(A)},Ae.useEffect=function(A,K){return J.current.useEffect(A,K)},Ae.useId=function(){return J.current.useId()},Ae.useImperativeHandle=function(A,K,N){return J.current.useImperativeHandle(A,K,N)},Ae.useInsertionEffect=function(A,K){return J.current.useInsertionEffect(A,K)},Ae.useLayoutEffect=function(A,K){return J.current.useLayoutEffect(A,K)},Ae.useMemo=function(A,K){return J.current.useMemo(A,K)},Ae.useReducer=function(A,K,N){return J.current.useReducer(A,K,N)},Ae.useRef=function(A){return J.current.useRef(A)},Ae.useState=function(A){return J.current.useState(A)},Ae.useSyncExternalStore=function(A,K,N){return J.current.useSyncExternalStore(A,K,N)},Ae.useTransition=function(){return J.current.useTransition()},Ae.version="18.3.1",Ae}var r2;function Qu(){return r2||(r2=1,Xa.exports=H4()),Xa.exports}/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var i2;function V4(){if(i2)return ul;i2=1;var e=Qu(),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function d(f,p,m){var y,x={},v=null,C=null;m!==void 0&&(v=""+m),p.key!==void 0&&(v=""+p.key),p.ref!==void 0&&(C=p.ref);for(y in p)o.call(p,y)&&!a.hasOwnProperty(y)&&(x[y]=p[y]);if(f&&f.defaultProps)for(y in p=f.defaultProps,p)x[y]===void 0&&(x[y]=p[y]);return{$$typeof:r,type:f,key:v,ref:C,props:x,_owner:s.current}}return ul.Fragment=i,ul.jsx=d,ul.jsxs=d,ul}var l2;function U4(){return l2||(l2=1,Ya.exports=V4()),Ya.exports}var c=U4(),$o={},Ja={exports:{}},Gt={},eu={exports:{}},tu={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* scheduler.production.min.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var
|
|
25
|
+
*/var o2;function W4(){return o2||(o2=1,(function(e){function r(z,ne){var b=z.length;z.push(ne);e:for(;0<b;){var A=b-1>>>1,K=z[A];if(0<s(K,ne))z[A]=ne,z[b]=K,b=A;else break e}}function i(z){return z.length===0?null:z[0]}function o(z){if(z.length===0)return null;var ne=z[0],b=z.pop();if(b!==ne){z[0]=b;e:for(var A=0,K=z.length,N=K>>>1;A<N;){var ge=2*(A+1)-1,ve=z[ge],fe=ge+1,Ne=z[fe];if(0>s(ve,b))fe<K&&0>s(Ne,ve)?(z[A]=Ne,z[fe]=b,A=fe):(z[A]=ve,z[ge]=b,A=ge);else if(fe<K&&0>s(Ne,b))z[A]=Ne,z[fe]=b,A=fe;else break e}}return ne}function s(z,ne){var b=z.sortIndex-ne.sortIndex;return b!==0?b:z.id-ne.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var p=[],m=[],y=1,x=null,v=3,C=!1,k=!1,P=!1,R=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(z){for(var ne=i(m);ne!==null;){if(ne.callback===null)o(m);else if(ne.startTime<=z)o(m),ne.sortIndex=ne.expirationTime,r(p,ne);else break;ne=i(m)}}function F(z){if(P=!1,S(z),!k)if(i(p)!==null)k=!0,I(B);else{var ne=i(m);ne!==null&&J(F,ne.startTime-z)}}function B(z,ne){k=!1,P&&(P=!1,j(ie),ie=-1),C=!0;var b=v;try{for(S(ne),x=i(p);x!==null&&(!(x.expirationTime>ne)||z&&!L());){var A=x.callback;if(typeof A=="function"){x.callback=null,v=x.priorityLevel;var K=A(x.expirationTime<=ne);ne=e.unstable_now(),typeof K=="function"?x.callback=K:x===i(p)&&o(p),S(ne)}else o(p);x=i(p)}if(x!==null)var N=!0;else{var ge=i(m);ge!==null&&J(F,ge.startTime-ne),N=!1}return N}finally{x=null,v=b,C=!1}}var T=!1,ee=null,ie=-1,Y=5,D=-1;function L(){return!(e.unstable_now()-D<Y)}function Z(){if(ee!==null){var z=e.unstable_now();D=z;var ne=!0;try{ne=ee(!0,z)}finally{ne?te():(T=!1,ee=null)}}else T=!1}var te;if(typeof V=="function")te=function(){V(Z)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,$=W.port2;W.port1.onmessage=Z,te=function(){$.postMessage(null)}}else te=function(){R(Z,0)};function I(z){ee=z,T||(T=!0,te())}function J(z,ne){ie=R(function(){z(e.unstable_now())},ne)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_continueExecution=function(){k||C||(k=!0,I(B))},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return i(p)},e.unstable_next=function(z){switch(v){case 1:case 2:case 3:var ne=3;break;default:ne=v}var b=v;v=ne;try{return z()}finally{v=b}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(z,ne){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var b=v;v=z;try{return ne()}finally{v=b}},e.unstable_scheduleCallback=function(z,ne,b){var A=e.unstable_now();switch(typeof b=="object"&&b!==null?(b=b.delay,b=typeof b=="number"&&0<b?A+b:A):b=A,z){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=b+K,z={id:y++,callback:ne,priorityLevel:z,startTime:b,expirationTime:K,sortIndex:-1},b>A?(z.sortIndex=b,r(m,z),i(p)===null&&z===i(m)&&(P?(j(ie),ie=-1):P=!0,J(F,b-A))):(z.sortIndex=K,r(p,z),k||C||(k=!0,I(B))),z},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(z){var ne=v;return function(){var b=v;v=ne;try{return z.apply(this,arguments)}finally{v=b}}}})(tu)),tu}var s2;function q4(){return s2||(s2=1,eu.exports=W4()),eu.exports}/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.min.js
|
|
28
28
|
*
|
|
@@ -30,64 +30,64 @@
|
|
|
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
|
|
34
|
-
`+A+t}var N=!1;function ge(t,n){if(!t||N)return"";N=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(G){var
|
|
35
|
-
`),g=
|
|
36
|
-
`),w=h.length-1,M=g.length-1;1<=w&&0<=M&&h[w]!==g[M];)M--;for(;1<=w&&0<=M;w--,M--)if(h[w]!==g[M]){if(w!==1||M!==1)do if(w--,M--,0>M||h[w]!==g[M]){var
|
|
37
|
-
`+h[w].replace(" at new "," at ");return t.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",t.displayName)),F}while(1<=w&&0<=M);break}}}finally{N=!1,Error.prepareStackTrace=l}return(t=t?t.displayName||t.name:"")?K(t):""}function ve(t){switch(t.tag){case 5:return K(t.type);case 16:return K("Lazy");case 13:return K("Suspense");case 19:return K("SuspenseList");case 0:case 2:case 15:return t=ge(t.type,!1),t;case 11:return t=ge(t.type.render,!1),t;case 1:return t=ge(t.type,!0),t;default:return""}}function fe(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case ee:return"Fragment";case T:return"Portal";case Y:return"Profiler";case ie:return"StrictMode";case te:return"Suspense";case W:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case L:return(t.displayName||"Context")+".Consumer";case D:return(t._context.displayName||"Context")+".Provider";case Z:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case O:return n=t.displayName||null,n!==null?n:fe(t.type)||"Memo";case I:n=t._payload,t=t._init;try{return fe(t(n))}catch{}}return null}function Ne(t){var n=t.type;switch(t.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=n.render,t=t.displayName||t.name||"",n.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fe(n);case 8:return n===ie?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function Ee(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function ze(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Ue(t){var n=ze(t)?"checked":"value",l=Object.getOwnPropertyDescriptor(t.constructor.prototype,n),a=""+t[n];if(!t.hasOwnProperty(n)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var h=l.get,g=l.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return h.call(this)},set:function(w){a=""+w,g.call(this,w)}}),Object.defineProperty(t,n,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(w){a=""+w},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function Oe(t){t._valueTracker||(t._valueTracker=Ue(t))}function rt(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var l=n.getValue(),a="";return t&&(a=ze(t)?t.checked?"true":"false":t.value),t=a,t!==l?(n.setValue(t),!0):!1}function Et(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Rt(t,n){var l=n.checked;return S({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??t._wrapperState.initialChecked})}function At(t,n){var l=n.defaultValue==null?"":n.defaultValue,a=n.checked!=null?n.checked:n.defaultChecked;l=Ee(n.value!=null?n.value:l),t._wrapperState={initialChecked:a,initialValue:l,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function jt(t,n){n=n.checked,n!=null&&b(t,"checked",n,!1)}function Ft(t,n){jt(t,n);var l=Ee(n.value),a=n.type;if(l!=null)a==="number"?(l===0&&t.value===""||t.value!=l)&&(t.value=""+l):t.value!==""+l&&(t.value=""+l);else if(a==="submit"||a==="reset"){t.removeAttribute("value");return}n.hasOwnProperty("value")?re(t,n.type,l):n.hasOwnProperty("defaultValue")&&re(t,n.type,Ee(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(t.defaultChecked=!!n.defaultChecked)}function gn(t,n,l){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var a=n.type;if(!(a!=="submit"&&a!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+t._wrapperState.initialValue,l||n===t.value||(t.value=n),t.defaultValue=n}l=t.name,l!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,l!==""&&(t.name=l)}function re(t,n,l){(n!=="number"||Et(t.ownerDocument)!==t)&&(l==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+l&&(t.defaultValue=""+l))}var be=Array.isArray;function Q(t,n,l,a){if(t=t.options,n){n={};for(var h=0;h<l.length;h++)n["$"+l[h]]=!0;for(l=0;l<t.length;l++)h=n.hasOwnProperty("$"+t[l].value),t[l].selected!==h&&(t[l].selected=h),h&&a&&(t[l].defaultSelected=!0)}else{for(l=""+Ee(l),n=null,h=0;h<t.length;h++){if(t[h].value===l){t[h].selected=!0,a&&(t[h].defaultSelected=!0);return}n!==null||t[h].disabled||(n=t[h])}n!==null&&(n.selected=!0)}}function xe(t,n){if(n.dangerouslySetInnerHTML!=null)throw Error(i(91));return S({},n,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Me(t,n){var l=n.value;if(l==null){if(l=n.children,n=n.defaultValue,l!=null){if(n!=null)throw Error(i(92));if(be(l)){if(1<l.length)throw Error(i(93));l=l[0]}n=l}n==null&&(n=""),l=n}t._wrapperState={initialValue:Ee(l)}}function st(t,n){var l=Ee(n.value),a=Ee(n.defaultValue);l!=null&&(l=""+l,l!==t.value&&(t.value=l),n.defaultValue==null&&t.defaultValue!==l&&(t.defaultValue=l)),a!=null&&(t.defaultValue=""+a)}function He(t){var n=t.textContent;n===t._wrapperState.initialValue&&n!==""&&n!==null&&(t.value=n)}function X(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ae(t,n){return t==null||t==="http://www.w3.org/1999/xhtml"?X(n):t==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var we,je=(function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,l,a,h){MSApp.execUnsafeLocalFunction(function(){return t(n,l,a,h)})}:t})(function(t,n){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=n;else{for(we=we||document.createElement("div"),we.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=we.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;n.firstChild;)t.appendChild(n.firstChild)}});function Re(t,n){if(n){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=n;return}}t.textContent=n}var ft={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ln=["Webkit","ms","Moz","O"];Object.keys(ft).forEach(function(t){ln.forEach(function(n){n=n+t.charAt(0).toUpperCase()+t.substring(1),ft[n]=ft[t]})});function de(t,n,l){return n==null||typeof n=="boolean"||n===""?"":l||typeof n!="number"||n===0||ft.hasOwnProperty(t)&&ft[t]?(""+n).trim():n+"px"}function Te(t,n){t=t.style;for(var l in n)if(n.hasOwnProperty(l)){var a=l.indexOf("--")===0,h=de(l,n[l],a);l==="float"&&(l="cssFloat"),a?t.setProperty(l,h):t[l]=h}}var Ge=S({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Qe(t,n){if(n){if(Ge[t]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(i(137,t));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(i(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(i(61))}if(n.style!=null&&typeof n.style!="object")throw Error(i(62))}}function Ot(t,n){if(t.indexOf("-")===-1)return typeof n.is=="string";switch(t){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 Xe=null;function _r(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var An=null,Fn=null,jn=null;function Il(t){if(t=Zi(t)){if(typeof An!="function")throw Error(i(280));var n=t.stateNode;n&&(n=Jl(n),An(t.stateNode,t.type,n))}}function Si(t){Fn?jn?jn.push(t):jn=[t]:Fn=t}function bi(){if(Fn){var t=Fn,n=jn;if(jn=Fn=null,Il(t),n)for(t=0;t<n.length;t++)Il(n[t])}}function Sr(t,n){return t(n)}function vu(){}var ps=!1;function Cu(t,n,l){if(ps)return t(n,l);ps=!0;try{return Sr(t,n,l)}finally{ps=!1,(Fn!==null||jn!==null)&&(vu(),bi())}}function Ei(t,n){var l=t.stateNode;if(l===null)return null;var a=Jl(l);if(a===null)return null;l=a[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break e;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(i(231,n,typeof l));return l}var hs=!1;if(f)try{var ji={};Object.defineProperty(ji,"passive",{get:function(){hs=!0}}),window.addEventListener("test",ji,ji),window.removeEventListener("test",ji,ji)}catch{hs=!1}function B3(t,n,l,a,h,g,w,M,F){var G=Array.prototype.slice.call(arguments,3);try{n.apply(l,G)}catch(oe){this.onError(oe)}}var Li=!1,Pl=null,Ml=!1,ms=null,H3={onError:function(t){Li=!0,Pl=t}};function V3(t,n,l,a,h,g,w,M,F){Li=!1,Pl=null,B3.apply(H3,arguments)}function U3(t,n,l,a,h,g,w,M,F){if(V3.apply(this,arguments),Li){if(Li){var G=Pl;Li=!1,Pl=null}else throw Error(i(198));Ml||(Ml=!0,ms=G)}}function br(t){var n=t,l=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(l=n.return),t=n.return;while(t)}return n.tag===3?l:null}function wu(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function ku(t){if(br(t)!==t)throw Error(i(188))}function W3(t){var n=t.alternate;if(!n){if(n=br(t),n===null)throw Error(i(188));return n!==t?null:t}for(var l=t,a=n;;){var h=l.return;if(h===null)break;var g=h.alternate;if(g===null){if(a=h.return,a!==null){l=a;continue}break}if(h.child===g.child){for(g=h.child;g;){if(g===l)return ku(h),t;if(g===a)return ku(h),n;g=g.sibling}throw Error(i(188))}if(l.return!==a.return)l=h,a=g;else{for(var w=!1,M=h.child;M;){if(M===l){w=!0,l=h,a=g;break}if(M===a){w=!0,a=h,l=g;break}M=M.sibling}if(!w){for(M=g.child;M;){if(M===l){w=!0,l=g,a=h;break}if(M===a){w=!0,a=g,l=h;break}M=M.sibling}if(!w)throw Error(i(189))}}if(l.alternate!==a)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?t:n}function _u(t){return t=W3(t),t!==null?Su(t):null}function Su(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var n=Su(t);if(n!==null)return n;t=t.sibling}return null}var bu=r.unstable_scheduleCallback,Eu=r.unstable_cancelCallback,q3=r.unstable_shouldYield,Z3=r.unstable_requestPaint,ct=r.unstable_now,Q3=r.unstable_getCurrentPriorityLevel,gs=r.unstable_ImmediatePriority,ju=r.unstable_UserBlockingPriority,Tl=r.unstable_NormalPriority,G3=r.unstable_LowPriority,Lu=r.unstable_IdlePriority,zl=null,Ln=null;function K3(t){if(Ln&&typeof Ln.onCommitFiberRoot=="function")try{Ln.onCommitFiberRoot(zl,t,void 0,(t.current.flags&128)===128)}catch{}}var xn=Math.clz32?Math.clz32:J3,Y3=Math.log,X3=Math.LN2;function J3(t){return t>>>=0,t===0?32:31-(Y3(t)/X3|0)|0}var Dl=64,Rl=4194304;function Ni(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Al(t,n){var l=t.pendingLanes;if(l===0)return 0;var a=0,h=t.suspendedLanes,g=t.pingedLanes,w=l&268435455;if(w!==0){var M=w&~h;M!==0?a=Ni(M):(g&=w,g!==0&&(a=Ni(g)))}else w=l&~h,w!==0?a=Ni(w):g!==0&&(a=Ni(g));if(a===0)return 0;if(n!==0&&n!==a&&(n&h)===0&&(h=a&-a,g=n&-n,h>=g||h===16&&(g&4194240)!==0))return n;if((a&4)!==0&&(a|=l&16),n=t.entangledLanes,n!==0)for(t=t.entanglements,n&=a;0<n;)l=31-xn(n),h=1<<l,a|=t[l],n&=~h;return a}function ef(t,n){switch(t){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function tf(t,n){for(var l=t.suspendedLanes,a=t.pingedLanes,h=t.expirationTimes,g=t.pendingLanes;0<g;){var w=31-xn(g),M=1<<w,F=h[w];F===-1?((M&l)===0||(M&a)!==0)&&(h[w]=ef(M,n)):F<=n&&(t.expiredLanes|=M),g&=~M}}function xs(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Nu(){var t=Dl;return Dl<<=1,(Dl&4194240)===0&&(Dl=64),t}function ys(t){for(var n=[],l=0;31>l;l++)n.push(t);return n}function Ii(t,n,l){t.pendingLanes|=n,n!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,n=31-xn(n),t[n]=l}function nf(t,n){var l=t.pendingLanes&~n;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=n,t.mutableReadLanes&=n,t.entangledLanes&=n,n=t.entanglements;var a=t.eventTimes;for(t=t.expirationTimes;0<l;){var h=31-xn(l),g=1<<h;n[h]=0,a[h]=-1,t[h]=-1,l&=~g}}function vs(t,n){var l=t.entangledLanes|=n;for(t=t.entanglements;l;){var a=31-xn(l),h=1<<a;h&n|t[a]&n&&(t[a]|=n),l&=~h}}var qe=0;function Iu(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var Pu,Cs,Mu,Tu,zu,ws=!1,Fl=[],Yn=null,Xn=null,Jn=null,Pi=new Map,Mi=new Map,er=[],rf="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 Du(t,n){switch(t){case"focusin":case"focusout":Yn=null;break;case"dragenter":case"dragleave":Xn=null;break;case"mouseover":case"mouseout":Jn=null;break;case"pointerover":case"pointerout":Pi.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mi.delete(n.pointerId)}}function Ti(t,n,l,a,h,g){return t===null||t.nativeEvent!==g?(t={blockedOn:n,domEventName:l,eventSystemFlags:a,nativeEvent:g,targetContainers:[h]},n!==null&&(n=Zi(n),n!==null&&Cs(n)),t):(t.eventSystemFlags|=a,n=t.targetContainers,h!==null&&n.indexOf(h)===-1&&n.push(h),t)}function lf(t,n,l,a,h){switch(n){case"focusin":return Yn=Ti(Yn,t,n,l,a,h),!0;case"dragenter":return Xn=Ti(Xn,t,n,l,a,h),!0;case"mouseover":return Jn=Ti(Jn,t,n,l,a,h),!0;case"pointerover":var g=h.pointerId;return Pi.set(g,Ti(Pi.get(g)||null,t,n,l,a,h)),!0;case"gotpointercapture":return g=h.pointerId,Mi.set(g,Ti(Mi.get(g)||null,t,n,l,a,h)),!0}return!1}function Ru(t){var n=Er(t.target);if(n!==null){var l=br(n);if(l!==null){if(n=l.tag,n===13){if(n=wu(l),n!==null){t.blockedOn=n,zu(t.priority,function(){Mu(l)});return}}else if(n===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ol(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var l=_s(t.domEventName,t.eventSystemFlags,n[0],t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);Xe=a,l.target.dispatchEvent(a),Xe=null}else return n=Zi(l),n!==null&&Cs(n),t.blockedOn=l,!1;n.shift()}return!0}function Au(t,n,l){Ol(t)&&l.delete(n)}function of(){ws=!1,Yn!==null&&Ol(Yn)&&(Yn=null),Xn!==null&&Ol(Xn)&&(Xn=null),Jn!==null&&Ol(Jn)&&(Jn=null),Pi.forEach(Au),Mi.forEach(Au)}function zi(t,n){t.blockedOn===n&&(t.blockedOn=null,ws||(ws=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,of)))}function Di(t){function n(h){return zi(h,t)}if(0<Fl.length){zi(Fl[0],t);for(var l=1;l<Fl.length;l++){var a=Fl[l];a.blockedOn===t&&(a.blockedOn=null)}}for(Yn!==null&&zi(Yn,t),Xn!==null&&zi(Xn,t),Jn!==null&&zi(Jn,t),Pi.forEach(n),Mi.forEach(n),l=0;l<er.length;l++)a=er[l],a.blockedOn===t&&(a.blockedOn=null);for(;0<er.length&&(l=er[0],l.blockedOn===null);)Ru(l),l.blockedOn===null&&er.shift()}var Zr=$.ReactCurrentBatchConfig,$l=!0;function sf(t,n,l,a){var h=qe,g=Zr.transition;Zr.transition=null;try{qe=1,ks(t,n,l,a)}finally{qe=h,Zr.transition=g}}function af(t,n,l,a){var h=qe,g=Zr.transition;Zr.transition=null;try{qe=4,ks(t,n,l,a)}finally{qe=h,Zr.transition=g}}function ks(t,n,l,a){if($l){var h=_s(t,n,l,a);if(h===null)$s(t,n,a,Bl,l),Du(t,a);else if(lf(h,t,n,l,a))a.stopPropagation();else if(Du(t,a),n&4&&-1<rf.indexOf(t)){for(;h!==null;){var g=Zi(h);if(g!==null&&Pu(g),g=_s(t,n,l,a),g===null&&$s(t,n,a,Bl,l),g===h)break;h=g}h!==null&&a.stopPropagation()}else $s(t,n,a,null,l)}}var Bl=null;function _s(t,n,l,a){if(Bl=null,t=_r(a),t=Er(t),t!==null)if(n=br(t),n===null)t=null;else if(l=n.tag,l===13){if(t=wu(n),t!==null)return t;t=null}else if(l===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null);return Bl=t,null}function Fu(t){switch(t){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(Q3()){case gs:return 1;case ju:return 4;case Tl:case G3:return 16;case Lu:return 536870912;default:return 16}default:return 16}}var tr=null,Ss=null,Hl=null;function Ou(){if(Hl)return Hl;var t,n=Ss,l=n.length,a,h="value"in tr?tr.value:tr.textContent,g=h.length;for(t=0;t<l&&n[t]===h[t];t++);var w=l-t;for(a=1;a<=w&&n[l-a]===h[g-a];a++);return Hl=h.slice(t,1<a?1-a:void 0)}function Vl(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function Ul(){return!0}function $u(){return!1}function Xt(t){function n(l,a,h,g,w){this._reactName=l,this._targetInst=h,this.type=a,this.nativeEvent=g,this.target=w,this.currentTarget=null;for(var M in t)t.hasOwnProperty(M)&&(l=t[M],this[M]=l?l(g):g[M]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Ul:$u,this.isPropagationStopped=$u,this}return S(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ul)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ul)},persist:function(){},isPersistent:Ul}),n}var Qr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bs=Xt(Qr),Ri=S({},Qr,{view:0,detail:0}),uf=Xt(Ri),Es,js,Ai,Wl=S({},Ri,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ns,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ai&&(Ai&&t.type==="mousemove"?(Es=t.screenX-Ai.screenX,js=t.screenY-Ai.screenY):js=Es=0,Ai=t),Es)},movementY:function(t){return"movementY"in t?t.movementY:js}}),Bu=Xt(Wl),cf=S({},Wl,{dataTransfer:0}),df=Xt(cf),ff=S({},Ri,{relatedTarget:0}),Ls=Xt(ff),pf=S({},Qr,{animationName:0,elapsedTime:0,pseudoElement:0}),hf=Xt(pf),mf=S({},Qr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),gf=Xt(mf),xf=S({},Qr,{data:0}),Hu=Xt(xf),yf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vf={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"},Cf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wf(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=Cf[t])?!!n[t]:!1}function Ns(){return wf}var kf=S({},Ri,{key:function(t){if(t.key){var n=yf[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=Vl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?vf[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ns,charCode:function(t){return t.type==="keypress"?Vl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Vl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),_f=Xt(kf),Sf=S({},Wl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vu=Xt(Sf),bf=S({},Ri,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ns}),Ef=Xt(bf),jf=S({},Qr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Lf=Xt(jf),Nf=S({},Wl,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),If=Xt(Nf),Pf=[9,13,27,32],Is=f&&"CompositionEvent"in window,Fi=null;f&&"documentMode"in document&&(Fi=document.documentMode);var Mf=f&&"TextEvent"in window&&!Fi,Uu=f&&(!Is||Fi&&8<Fi&&11>=Fi),Wu=" ",qu=!1;function Zu(t,n){switch(t){case"keyup":return Pf.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qu(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Gr=!1;function Tf(t,n){switch(t){case"compositionend":return Qu(n);case"keypress":return n.which!==32?null:(qu=!0,Wu);case"textInput":return t=n.data,t===Wu&&qu?null:t;default:return null}}function zf(t,n){if(Gr)return t==="compositionend"||!Is&&Zu(t,n)?(t=Ou(),Hl=Ss=tr=null,Gr=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Uu&&n.locale!=="ko"?null:n.data;default:return null}}var Df={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 Gu(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!Df[t.type]:n==="textarea"}function Ku(t,n,l,a){Si(a),n=Kl(n,"onChange"),0<n.length&&(l=new bs("onChange","change",null,l,a),t.push({event:l,listeners:n}))}var Oi=null,$i=null;function Rf(t){hc(t,0)}function ql(t){var n=ei(t);if(rt(n))return t}function Af(t,n){if(t==="change")return n}var Yu=!1;if(f){var Ps;if(f){var Ms="oninput"in document;if(!Ms){var Xu=document.createElement("div");Xu.setAttribute("oninput","return;"),Ms=typeof Xu.oninput=="function"}Ps=Ms}else Ps=!1;Yu=Ps&&(!document.documentMode||9<document.documentMode)}function Ju(){Oi&&(Oi.detachEvent("onpropertychange",ec),$i=Oi=null)}function ec(t){if(t.propertyName==="value"&&ql($i)){var n=[];Ku(n,$i,t,_r(t)),Cu(Rf,n)}}function Ff(t,n,l){t==="focusin"?(Ju(),Oi=n,$i=l,Oi.attachEvent("onpropertychange",ec)):t==="focusout"&&Ju()}function Of(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ql($i)}function $f(t,n){if(t==="click")return ql(n)}function Bf(t,n){if(t==="input"||t==="change")return ql(n)}function Hf(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var yn=typeof Object.is=="function"?Object.is:Hf;function Bi(t,n){if(yn(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var l=Object.keys(t),a=Object.keys(n);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var h=l[a];if(!p.call(n,h)||!yn(t[h],n[h]))return!1}return!0}function tc(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function nc(t,n){var l=tc(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=n&&a>=n)return{node:l,offset:n-t};t=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=tc(l)}}function rc(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?rc(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function ic(){for(var t=window,n=Et();n instanceof t.HTMLIFrameElement;){try{var l=typeof n.contentWindow.location.href=="string"}catch{l=!1}if(l)t=n.contentWindow;else break;n=Et(t.document)}return n}function Ts(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}function Vf(t){var n=ic(),l=t.focusedElem,a=t.selectionRange;if(n!==l&&l&&l.ownerDocument&&rc(l.ownerDocument.documentElement,l)){if(a!==null&&Ts(l)){if(n=a.start,t=a.end,t===void 0&&(t=n),"selectionStart"in l)l.selectionStart=n,l.selectionEnd=Math.min(t,l.value.length);else if(t=(n=l.ownerDocument||document)&&n.defaultView||window,t.getSelection){t=t.getSelection();var h=l.textContent.length,g=Math.min(a.start,h);a=a.end===void 0?g:Math.min(a.end,h),!t.extend&&g>a&&(h=a,a=g,g=h),h=nc(l,g);var w=nc(l,a);h&&w&&(t.rangeCount!==1||t.anchorNode!==h.node||t.anchorOffset!==h.offset||t.focusNode!==w.node||t.focusOffset!==w.offset)&&(n=n.createRange(),n.setStart(h.node,h.offset),t.removeAllRanges(),g>a?(t.addRange(n),t.extend(w.node,w.offset)):(n.setEnd(w.node,w.offset),t.addRange(n)))}}for(n=[],t=l;t=t.parentNode;)t.nodeType===1&&n.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<n.length;l++)t=n[l],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Uf=f&&"documentMode"in document&&11>=document.documentMode,Kr=null,zs=null,Hi=null,Ds=!1;function lc(t,n,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ds||Kr==null||Kr!==Et(a)||(a=Kr,"selectionStart"in a&&Ts(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Hi&&Bi(Hi,a)||(Hi=a,a=Kl(zs,"onSelect"),0<a.length&&(n=new bs("onSelect","select",null,n,l),t.push({event:n,listeners:a}),n.target=Kr)))}function Zl(t,n){var l={};return l[t.toLowerCase()]=n.toLowerCase(),l["Webkit"+t]="webkit"+n,l["Moz"+t]="moz"+n,l}var Yr={animationend:Zl("Animation","AnimationEnd"),animationiteration:Zl("Animation","AnimationIteration"),animationstart:Zl("Animation","AnimationStart"),transitionend:Zl("Transition","TransitionEnd")},Rs={},oc={};f&&(oc=document.createElement("div").style,"AnimationEvent"in window||(delete Yr.animationend.animation,delete Yr.animationiteration.animation,delete Yr.animationstart.animation),"TransitionEvent"in window||delete Yr.transitionend.transition);function Ql(t){if(Rs[t])return Rs[t];if(!Yr[t])return t;var n=Yr[t],l;for(l in n)if(n.hasOwnProperty(l)&&l in oc)return Rs[t]=n[l];return t}var sc=Ql("animationend"),ac=Ql("animationiteration"),uc=Ql("animationstart"),cc=Ql("transitionend"),dc=new Map,fc="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 nr(t,n){dc.set(t,n),u(n,[t])}for(var As=0;As<fc.length;As++){var Fs=fc[As],Wf=Fs.toLowerCase(),qf=Fs[0].toUpperCase()+Fs.slice(1);nr(Wf,"on"+qf)}nr(sc,"onAnimationEnd"),nr(ac,"onAnimationIteration"),nr(uc,"onAnimationStart"),nr("dblclick","onDoubleClick"),nr("focusin","onFocus"),nr("focusout","onBlur"),nr(cc,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vi="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(" "),Zf=new Set("cancel close invalid load scroll toggle".split(" ").concat(Vi));function pc(t,n,l){var a=t.type||"unknown-event";t.currentTarget=l,U3(a,n,void 0,t),t.currentTarget=null}function hc(t,n){n=(n&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],h=a.event;a=a.listeners;e:{var g=void 0;if(n)for(var w=a.length-1;0<=w;w--){var M=a[w],F=M.instance,G=M.currentTarget;if(M=M.listener,F!==g&&h.isPropagationStopped())break e;pc(h,M,G),g=F}else for(w=0;w<a.length;w++){if(M=a[w],F=M.instance,G=M.currentTarget,M=M.listener,F!==g&&h.isPropagationStopped())break e;pc(h,M,G),g=F}}}if(Ml)throw t=ms,Ml=!1,ms=null,t}function et(t,n){var l=n[qs];l===void 0&&(l=n[qs]=new Set);var a=t+"__bubble";l.has(a)||(mc(n,t,2,!1),l.add(a))}function Os(t,n,l){var a=0;n&&(a|=4),mc(l,t,a,n)}var Gl="_reactListening"+Math.random().toString(36).slice(2);function Ui(t){if(!t[Gl]){t[Gl]=!0,o.forEach(function(l){l!=="selectionchange"&&(Zf.has(l)||Os(l,!1,t),Os(l,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[Gl]||(n[Gl]=!0,Os("selectionchange",!1,n))}}function mc(t,n,l,a){switch(Fu(n)){case 1:var h=sf;break;case 4:h=af;break;default:h=ks}l=h.bind(null,n,l,t),h=void 0,!hs||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(h=!0),a?h!==void 0?t.addEventListener(n,l,{capture:!0,passive:h}):t.addEventListener(n,l,!0):h!==void 0?t.addEventListener(n,l,{passive:h}):t.addEventListener(n,l,!1)}function $s(t,n,l,a,h){var g=a;if((n&1)===0&&(n&2)===0&&a!==null)e:for(;;){if(a===null)return;var w=a.tag;if(w===3||w===4){var M=a.stateNode.containerInfo;if(M===h||M.nodeType===8&&M.parentNode===h)break;if(w===4)for(w=a.return;w!==null;){var F=w.tag;if((F===3||F===4)&&(F=w.stateNode.containerInfo,F===h||F.nodeType===8&&F.parentNode===h))return;w=w.return}for(;M!==null;){if(w=Er(M),w===null)return;if(F=w.tag,F===5||F===6){a=g=w;continue e}M=M.parentNode}}a=a.return}Cu(function(){var G=g,oe=_r(l),se=[];e:{var le=dc.get(t);if(le!==void 0){var pe=bs,me=t;switch(t){case"keypress":if(Vl(l)===0)break e;case"keydown":case"keyup":pe=_f;break;case"focusin":me="focus",pe=Ls;break;case"focusout":me="blur",pe=Ls;break;case"beforeblur":case"afterblur":pe=Ls;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":pe=Bu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":pe=df;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":pe=Ef;break;case sc:case ac:case uc:pe=hf;break;case cc:pe=Lf;break;case"scroll":pe=uf;break;case"wheel":pe=If;break;case"copy":case"cut":case"paste":pe=gf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":pe=Vu}var ye=(n&4)!==0,dt=!ye&&t==="scroll",U=ye?le!==null?le+"Capture":null:le;ye=[];for(var H=G,q;H!==null;){q=H;var ce=q.stateNode;if(q.tag===5&&ce!==null&&(q=ce,U!==null&&(ce=Ei(H,U),ce!=null&&ye.push(Wi(H,ce,q)))),dt)break;H=H.return}0<ye.length&&(le=new pe(le,me,null,l,oe),se.push({event:le,listeners:ye}))}}if((n&7)===0){e:{if(le=t==="mouseover"||t==="pointerover",pe=t==="mouseout"||t==="pointerout",le&&l!==Xe&&(me=l.relatedTarget||l.fromElement)&&(Er(me)||me[On]))break e;if((pe||le)&&(le=oe.window===oe?oe:(le=oe.ownerDocument)?le.defaultView||le.parentWindow:window,pe?(me=l.relatedTarget||l.toElement,pe=G,me=me?Er(me):null,me!==null&&(dt=br(me),me!==dt||me.tag!==5&&me.tag!==6)&&(me=null)):(pe=null,me=G),pe!==me)){if(ye=Bu,ce="onMouseLeave",U="onMouseEnter",H="mouse",(t==="pointerout"||t==="pointerover")&&(ye=Vu,ce="onPointerLeave",U="onPointerEnter",H="pointer"),dt=pe==null?le:ei(pe),q=me==null?le:ei(me),le=new ye(ce,H+"leave",pe,l,oe),le.target=dt,le.relatedTarget=q,ce=null,Er(oe)===G&&(ye=new ye(U,H+"enter",me,l,oe),ye.target=q,ye.relatedTarget=dt,ce=ye),dt=ce,pe&&me)t:{for(ye=pe,U=me,H=0,q=ye;q;q=Xr(q))H++;for(q=0,ce=U;ce;ce=Xr(ce))q++;for(;0<H-q;)ye=Xr(ye),H--;for(;0<q-H;)U=Xr(U),q--;for(;H--;){if(ye===U||U!==null&&ye===U.alternate)break t;ye=Xr(ye),U=Xr(U)}ye=null}else ye=null;pe!==null&&gc(se,le,pe,ye,!1),me!==null&&dt!==null&&gc(se,dt,me,ye,!0)}}e:{if(le=G?ei(G):window,pe=le.nodeName&&le.nodeName.toLowerCase(),pe==="select"||pe==="input"&&le.type==="file")var Ce=Af;else if(Gu(le))if(Yu)Ce=Bf;else{Ce=Of;var ke=Ff}else(pe=le.nodeName)&&pe.toLowerCase()==="input"&&(le.type==="checkbox"||le.type==="radio")&&(Ce=$f);if(Ce&&(Ce=Ce(t,G))){Ku(se,Ce,l,oe);break e}ke&&ke(t,le,G),t==="focusout"&&(ke=le._wrapperState)&&ke.controlled&&le.type==="number"&&re(le,"number",le.value)}switch(ke=G?ei(G):window,t){case"focusin":(Gu(ke)||ke.contentEditable==="true")&&(Kr=ke,zs=G,Hi=null);break;case"focusout":Hi=zs=Kr=null;break;case"mousedown":Ds=!0;break;case"contextmenu":case"mouseup":case"dragend":Ds=!1,lc(se,l,oe);break;case"selectionchange":if(Uf)break;case"keydown":case"keyup":lc(se,l,oe)}var _e;if(Is)e:{switch(t){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else Gr?Zu(t,l)&&(Le="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(Le="onCompositionStart");Le&&(Uu&&l.locale!=="ko"&&(Gr||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&Gr&&(_e=Ou()):(tr=oe,Ss="value"in tr?tr.value:tr.textContent,Gr=!0)),ke=Kl(G,Le),0<ke.length&&(Le=new Hu(Le,t,null,l,oe),se.push({event:Le,listeners:ke}),_e?Le.data=_e:(_e=Qu(l),_e!==null&&(Le.data=_e)))),(_e=Mf?Tf(t,l):zf(t,l))&&(G=Kl(G,"onBeforeInput"),0<G.length&&(oe=new Hu("onBeforeInput","beforeinput",null,l,oe),se.push({event:oe,listeners:G}),oe.data=_e))}hc(se,n)})}function Wi(t,n,l){return{instance:t,listener:n,currentTarget:l}}function Kl(t,n){for(var l=n+"Capture",a=[];t!==null;){var h=t,g=h.stateNode;h.tag===5&&g!==null&&(h=g,g=Ei(t,l),g!=null&&a.unshift(Wi(t,g,h)),g=Ei(t,n),g!=null&&a.push(Wi(t,g,h))),t=t.return}return a}function Xr(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function gc(t,n,l,a,h){for(var g=n._reactName,w=[];l!==null&&l!==a;){var M=l,F=M.alternate,G=M.stateNode;if(F!==null&&F===a)break;M.tag===5&&G!==null&&(M=G,h?(F=Ei(l,g),F!=null&&w.unshift(Wi(l,F,M))):h||(F=Ei(l,g),F!=null&&w.push(Wi(l,F,M)))),l=l.return}w.length!==0&&t.push({event:n,listeners:w})}var Qf=/\r\n?/g,Gf=/\u0000|\uFFFD/g;function xc(t){return(typeof t=="string"?t:""+t).replace(Qf,`
|
|
38
|
-
`).replace(Gf,"")}function Yl(t,n,l){if(n=xc(n),xc(t)!==n&&l)throw Error(i(425))}function Xl(){}var Bs=null,Hs=null;function Vs(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Us=typeof setTimeout=="function"?setTimeout:void 0,Kf=typeof clearTimeout=="function"?clearTimeout:void 0,yc=typeof Promise=="function"?Promise:void 0,Yf=typeof queueMicrotask=="function"?queueMicrotask:typeof yc<"u"?function(t){return yc.resolve(null).then(t).catch(Xf)}:Us;function Xf(t){setTimeout(function(){throw t})}function Ws(t,n){var l=n,a=0;do{var h=l.nextSibling;if(t.removeChild(l),h&&h.nodeType===8)if(l=h.data,l==="/$"){if(a===0){t.removeChild(h),Di(n);return}a--}else l!=="$"&&l!=="$?"&&l!=="$!"||a++;l=h}while(l);Di(n)}function rr(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return t}function vc(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"){if(n===0)return t;n--}else l==="/$"&&n++}t=t.previousSibling}return null}var Jr=Math.random().toString(36).slice(2),Nn="__reactFiber$"+Jr,qi="__reactProps$"+Jr,On="__reactContainer$"+Jr,qs="__reactEvents$"+Jr,Jf="__reactListeners$"+Jr,e4="__reactHandles$"+Jr;function Er(t){var n=t[Nn];if(n)return n;for(var l=t.parentNode;l;){if(n=l[On]||l[Nn]){if(l=n.alternate,n.child!==null||l!==null&&l.child!==null)for(t=vc(t);t!==null;){if(l=t[Nn])return l;t=vc(t)}return n}t=l,l=t.parentNode}return null}function Zi(t){return t=t[Nn]||t[On],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function ei(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(i(33))}function Jl(t){return t[qi]||null}var Zs=[],ti=-1;function ir(t){return{current:t}}function tt(t){0>ti||(t.current=Zs[ti],Zs[ti]=null,ti--)}function Je(t,n){ti++,Zs[ti]=t.current,t.current=n}var lr={},Lt=ir(lr),Ut=ir(!1),jr=lr;function ni(t,n){var l=t.type.contextTypes;if(!l)return lr;var a=t.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===n)return a.__reactInternalMemoizedMaskedChildContext;var h={},g;for(g in l)h[g]=n[g];return a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=n,t.__reactInternalMemoizedMaskedChildContext=h),h}function Wt(t){return t=t.childContextTypes,t!=null}function eo(){tt(Ut),tt(Lt)}function Cc(t,n,l){if(Lt.current!==lr)throw Error(i(168));Je(Lt,n),Je(Ut,l)}function wc(t,n,l){var a=t.stateNode;if(n=n.childContextTypes,typeof a.getChildContext!="function")return l;a=a.getChildContext();for(var h in a)if(!(h in n))throw Error(i(108,Ne(t)||"Unknown",h));return S({},l,a)}function to(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||lr,jr=Lt.current,Je(Lt,t),Je(Ut,Ut.current),!0}function kc(t,n,l){var a=t.stateNode;if(!a)throw Error(i(169));l?(t=wc(t,n,jr),a.__reactInternalMemoizedMergedChildContext=t,tt(Ut),tt(Lt),Je(Lt,t)):tt(Ut),Je(Ut,l)}var $n=null,no=!1,Qs=!1;function _c(t){$n===null?$n=[t]:$n.push(t)}function t4(t){no=!0,_c(t)}function or(){if(!Qs&&$n!==null){Qs=!0;var t=0,n=qe;try{var l=$n;for(qe=1;t<l.length;t++){var a=l[t];do a=a(!0);while(a!==null)}$n=null,no=!1}catch(h){throw $n!==null&&($n=$n.slice(t+1)),bu(gs,or),h}finally{qe=n,Qs=!1}}return null}var ri=[],ii=0,ro=null,io=0,on=[],sn=0,Lr=null,Bn=1,Hn="";function Nr(t,n){ri[ii++]=io,ri[ii++]=ro,ro=t,io=n}function Sc(t,n,l){on[sn++]=Bn,on[sn++]=Hn,on[sn++]=Lr,Lr=t;var a=Bn;t=Hn;var h=32-xn(a)-1;a&=~(1<<h),l+=1;var g=32-xn(n)+h;if(30<g){var w=h-h%5;g=(a&(1<<w)-1).toString(32),a>>=w,h-=w,Bn=1<<32-xn(n)+h|l<<h|a,Hn=g+t}else Bn=1<<g|l<<h|a,Hn=t}function Gs(t){t.return!==null&&(Nr(t,1),Sc(t,1,0))}function Ks(t){for(;t===ro;)ro=ri[--ii],ri[ii]=null,io=ri[--ii],ri[ii]=null;for(;t===Lr;)Lr=on[--sn],on[sn]=null,Hn=on[--sn],on[sn]=null,Bn=on[--sn],on[sn]=null}var Jt=null,en=null,nt=!1,vn=null;function bc(t,n){var l=dn(5,null,null,0);l.elementType="DELETED",l.stateNode=n,l.return=t,n=t.deletions,n===null?(t.deletions=[l],t.flags|=16):n.push(l)}function Ec(t,n){switch(t.tag){case 5:var l=t.type;return n=n.nodeType!==1||l.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(t.stateNode=n,Jt=t,en=rr(n.firstChild),!0):!1;case 6:return n=t.pendingProps===""||n.nodeType!==3?null:n,n!==null?(t.stateNode=n,Jt=t,en=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(l=Lr!==null?{id:Bn,overflow:Hn}:null,t.memoizedState={dehydrated:n,treeContext:l,retryLane:1073741824},l=dn(18,null,null,0),l.stateNode=n,l.return=t,t.child=l,Jt=t,en=null,!0):!1;default:return!1}}function Ys(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Xs(t){if(nt){var n=en;if(n){var l=n;if(!Ec(t,n)){if(Ys(t))throw Error(i(418));n=rr(l.nextSibling);var a=Jt;n&&Ec(t,n)?bc(a,l):(t.flags=t.flags&-4097|2,nt=!1,Jt=t)}}else{if(Ys(t))throw Error(i(418));t.flags=t.flags&-4097|2,nt=!1,Jt=t}}}function jc(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Jt=t}function lo(t){if(t!==Jt)return!1;if(!nt)return jc(t),nt=!0,!1;var n;if((n=t.tag!==3)&&!(n=t.tag!==5)&&(n=t.type,n=n!=="head"&&n!=="body"&&!Vs(t.type,t.memoizedProps)),n&&(n=en)){if(Ys(t))throw Lc(),Error(i(418));for(;n;)bc(t,n),n=rr(n.nextSibling)}if(jc(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));e:{for(t=t.nextSibling,n=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"){if(n===0){en=rr(t.nextSibling);break e}n--}else l!=="$"&&l!=="$!"&&l!=="$?"||n++}t=t.nextSibling}en=null}}else en=Jt?rr(t.stateNode.nextSibling):null;return!0}function Lc(){for(var t=en;t;)t=rr(t.nextSibling)}function li(){en=Jt=null,nt=!1}function Js(t){vn===null?vn=[t]:vn.push(t)}var n4=$.ReactCurrentBatchConfig;function Qi(t,n,l){if(t=l.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(i(309));var a=l.stateNode}if(!a)throw Error(i(147,t));var h=a,g=""+t;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===g?n.ref:(n=function(w){var M=h.refs;w===null?delete M[g]:M[g]=w},n._stringRef=g,n)}if(typeof t!="string")throw Error(i(284));if(!l._owner)throw Error(i(290,t))}return t}function oo(t,n){throw t=Object.prototype.toString.call(n),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t))}function Nc(t){var n=t._init;return n(t._payload)}function Ic(t){function n(U,H){if(t){var q=U.deletions;q===null?(U.deletions=[H],U.flags|=16):q.push(H)}}function l(U,H){if(!t)return null;for(;H!==null;)n(U,H),H=H.sibling;return null}function a(U,H){for(U=new Map;H!==null;)H.key!==null?U.set(H.key,H):U.set(H.index,H),H=H.sibling;return U}function h(U,H){return U=hr(U,H),U.index=0,U.sibling=null,U}function g(U,H,q){return U.index=q,t?(q=U.alternate,q!==null?(q=q.index,q<H?(U.flags|=2,H):q):(U.flags|=2,H)):(U.flags|=1048576,H)}function w(U){return t&&U.alternate===null&&(U.flags|=2),U}function M(U,H,q,ce){return H===null||H.tag!==6?(H=Ua(q,U.mode,ce),H.return=U,H):(H=h(H,q),H.return=U,H)}function F(U,H,q,ce){var Ce=q.type;return Ce===ee?oe(U,H,q.props.children,ce,q.key):H!==null&&(H.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===I&&Nc(Ce)===H.type)?(ce=h(H,q.props),ce.ref=Qi(U,H,q),ce.return=U,ce):(ce=Po(q.type,q.key,q.props,null,U.mode,ce),ce.ref=Qi(U,H,q),ce.return=U,ce)}function G(U,H,q,ce){return H===null||H.tag!==4||H.stateNode.containerInfo!==q.containerInfo||H.stateNode.implementation!==q.implementation?(H=Wa(q,U.mode,ce),H.return=U,H):(H=h(H,q.children||[]),H.return=U,H)}function oe(U,H,q,ce,Ce){return H===null||H.tag!==7?(H=Ar(q,U.mode,ce,Ce),H.return=U,H):(H=h(H,q),H.return=U,H)}function se(U,H,q){if(typeof H=="string"&&H!==""||typeof H=="number")return H=Ua(""+H,U.mode,q),H.return=U,H;if(typeof H=="object"&&H!==null){switch(H.$$typeof){case B:return q=Po(H.type,H.key,H.props,null,U.mode,q),q.ref=Qi(U,null,H),q.return=U,q;case T:return H=Wa(H,U.mode,q),H.return=U,H;case I:var ce=H._init;return se(U,ce(H._payload),q)}if(be(H)||ne(H))return H=Ar(H,U.mode,q,null),H.return=U,H;oo(U,H)}return null}function le(U,H,q,ce){var Ce=H!==null?H.key:null;if(typeof q=="string"&&q!==""||typeof q=="number")return Ce!==null?null:M(U,H,""+q,ce);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case B:return q.key===Ce?F(U,H,q,ce):null;case T:return q.key===Ce?G(U,H,q,ce):null;case I:return Ce=q._init,le(U,H,Ce(q._payload),ce)}if(be(q)||ne(q))return Ce!==null?null:oe(U,H,q,ce,null);oo(U,q)}return null}function pe(U,H,q,ce,Ce){if(typeof ce=="string"&&ce!==""||typeof ce=="number")return U=U.get(q)||null,M(H,U,""+ce,Ce);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case B:return U=U.get(ce.key===null?q:ce.key)||null,F(H,U,ce,Ce);case T:return U=U.get(ce.key===null?q:ce.key)||null,G(H,U,ce,Ce);case I:var ke=ce._init;return pe(U,H,q,ke(ce._payload),Ce)}if(be(ce)||ne(ce))return U=U.get(q)||null,oe(H,U,ce,Ce,null);oo(H,ce)}return null}function me(U,H,q,ce){for(var Ce=null,ke=null,_e=H,Le=H=0,_t=null;_e!==null&&Le<q.length;Le++){_e.index>Le?(_t=_e,_e=null):_t=_e.sibling;var Ve=le(U,_e,q[Le],ce);if(Ve===null){_e===null&&(_e=_t);break}t&&_e&&Ve.alternate===null&&n(U,_e),H=g(Ve,H,Le),ke===null?Ce=Ve:ke.sibling=Ve,ke=Ve,_e=_t}if(Le===q.length)return l(U,_e),nt&&Nr(U,Le),Ce;if(_e===null){for(;Le<q.length;Le++)_e=se(U,q[Le],ce),_e!==null&&(H=g(_e,H,Le),ke===null?Ce=_e:ke.sibling=_e,ke=_e);return nt&&Nr(U,Le),Ce}for(_e=a(U,_e);Le<q.length;Le++)_t=pe(_e,U,Le,q[Le],ce),_t!==null&&(t&&_t.alternate!==null&&_e.delete(_t.key===null?Le:_t.key),H=g(_t,H,Le),ke===null?Ce=_t:ke.sibling=_t,ke=_t);return t&&_e.forEach(function(mr){return n(U,mr)}),nt&&Nr(U,Le),Ce}function ye(U,H,q,ce){var Ce=ne(q);if(typeof Ce!="function")throw Error(i(150));if(q=Ce.call(q),q==null)throw Error(i(151));for(var ke=Ce=null,_e=H,Le=H=0,_t=null,Ve=q.next();_e!==null&&!Ve.done;Le++,Ve=q.next()){_e.index>Le?(_t=_e,_e=null):_t=_e.sibling;var mr=le(U,_e,Ve.value,ce);if(mr===null){_e===null&&(_e=_t);break}t&&_e&&mr.alternate===null&&n(U,_e),H=g(mr,H,Le),ke===null?Ce=mr:ke.sibling=mr,ke=mr,_e=_t}if(Ve.done)return l(U,_e),nt&&Nr(U,Le),Ce;if(_e===null){for(;!Ve.done;Le++,Ve=q.next())Ve=se(U,Ve.value,ce),Ve!==null&&(H=g(Ve,H,Le),ke===null?Ce=Ve:ke.sibling=Ve,ke=Ve);return nt&&Nr(U,Le),Ce}for(_e=a(U,_e);!Ve.done;Le++,Ve=q.next())Ve=pe(_e,U,Le,Ve.value,ce),Ve!==null&&(t&&Ve.alternate!==null&&_e.delete(Ve.key===null?Le:Ve.key),H=g(Ve,H,Le),ke===null?Ce=Ve:ke.sibling=Ve,ke=Ve);return t&&_e.forEach(function(D4){return n(U,D4)}),nt&&Nr(U,Le),Ce}function dt(U,H,q,ce){if(typeof q=="object"&&q!==null&&q.type===ee&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case B:e:{for(var Ce=q.key,ke=H;ke!==null;){if(ke.key===Ce){if(Ce=q.type,Ce===ee){if(ke.tag===7){l(U,ke.sibling),H=h(ke,q.props.children),H.return=U,U=H;break e}}else if(ke.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===I&&Nc(Ce)===ke.type){l(U,ke.sibling),H=h(ke,q.props),H.ref=Qi(U,ke,q),H.return=U,U=H;break e}l(U,ke);break}else n(U,ke);ke=ke.sibling}q.type===ee?(H=Ar(q.props.children,U.mode,ce,q.key),H.return=U,U=H):(ce=Po(q.type,q.key,q.props,null,U.mode,ce),ce.ref=Qi(U,H,q),ce.return=U,U=ce)}return w(U);case T:e:{for(ke=q.key;H!==null;){if(H.key===ke)if(H.tag===4&&H.stateNode.containerInfo===q.containerInfo&&H.stateNode.implementation===q.implementation){l(U,H.sibling),H=h(H,q.children||[]),H.return=U,U=H;break e}else{l(U,H);break}else n(U,H);H=H.sibling}H=Wa(q,U.mode,ce),H.return=U,U=H}return w(U);case I:return ke=q._init,dt(U,H,ke(q._payload),ce)}if(be(q))return me(U,H,q,ce);if(ne(q))return ye(U,H,q,ce);oo(U,q)}return typeof q=="string"&&q!==""||typeof q=="number"?(q=""+q,H!==null&&H.tag===6?(l(U,H.sibling),H=h(H,q),H.return=U,U=H):(l(U,H),H=Ua(q,U.mode,ce),H.return=U,U=H),w(U)):l(U,H)}return dt}var oi=Ic(!0),Pc=Ic(!1),so=ir(null),ao=null,si=null,ea=null;function ta(){ea=si=ao=null}function na(t){var n=so.current;tt(so),t._currentValue=n}function ra(t,n,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,a!==null&&(a.childLanes|=n)):a!==null&&(a.childLanes&n)!==n&&(a.childLanes|=n),t===l)break;t=t.return}}function ai(t,n){ao=t,ea=si=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&n)!==0&&(qt=!0),t.firstContext=null)}function an(t){var n=t._currentValue;if(ea!==t)if(t={context:t,memoizedValue:n,next:null},si===null){if(ao===null)throw Error(i(308));si=t,ao.dependencies={lanes:0,firstContext:t}}else si=si.next=t;return n}var Ir=null;function ia(t){Ir===null?Ir=[t]:Ir.push(t)}function Mc(t,n,l,a){var h=n.interleaved;return h===null?(l.next=l,ia(n)):(l.next=h.next,h.next=l),n.interleaved=l,Vn(t,a)}function Vn(t,n){t.lanes|=n;var l=t.alternate;for(l!==null&&(l.lanes|=n),l=t,t=t.return;t!==null;)t.childLanes|=n,l=t.alternate,l!==null&&(l.childLanes|=n),l=t,t=t.return;return l.tag===3?l.stateNode:null}var sr=!1;function la(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Tc(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Un(t,n){return{eventTime:t,lane:n,tag:0,payload:null,callback:null,next:null}}function ar(t,n,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Be&2)!==0){var h=a.pending;return h===null?n.next=n:(n.next=h.next,h.next=n),a.pending=n,Vn(t,l)}return h=a.interleaved,h===null?(n.next=n,ia(a)):(n.next=h.next,h.next=n),a.interleaved=n,Vn(t,l)}function uo(t,n,l){if(n=n.updateQueue,n!==null&&(n=n.shared,(l&4194240)!==0)){var a=n.lanes;a&=t.pendingLanes,l|=a,n.lanes=l,vs(t,l)}}function zc(t,n){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var h=null,g=null;if(l=l.firstBaseUpdate,l!==null){do{var w={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};g===null?h=g=w:g=g.next=w,l=l.next}while(l!==null);g===null?h=g=n:g=g.next=n}else h=g=n;l={baseState:a.baseState,firstBaseUpdate:h,lastBaseUpdate:g,shared:a.shared,effects:a.effects},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=n:t.next=n,l.lastBaseUpdate=n}function co(t,n,l,a){var h=t.updateQueue;sr=!1;var g=h.firstBaseUpdate,w=h.lastBaseUpdate,M=h.shared.pending;if(M!==null){h.shared.pending=null;var F=M,G=F.next;F.next=null,w===null?g=G:w.next=G,w=F;var oe=t.alternate;oe!==null&&(oe=oe.updateQueue,M=oe.lastBaseUpdate,M!==w&&(M===null?oe.firstBaseUpdate=G:M.next=G,oe.lastBaseUpdate=F))}if(g!==null){var se=h.baseState;w=0,oe=G=F=null,M=g;do{var le=M.lane,pe=M.eventTime;if((a&le)===le){oe!==null&&(oe=oe.next={eventTime:pe,lane:0,tag:M.tag,payload:M.payload,callback:M.callback,next:null});e:{var me=t,ye=M;switch(le=n,pe=l,ye.tag){case 1:if(me=ye.payload,typeof me=="function"){se=me.call(pe,se,le);break e}se=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=ye.payload,le=typeof me=="function"?me.call(pe,se,le):me,le==null)break e;se=S({},se,le);break e;case 2:sr=!0}}M.callback!==null&&M.lane!==0&&(t.flags|=64,le=h.effects,le===null?h.effects=[M]:le.push(M))}else pe={eventTime:pe,lane:le,tag:M.tag,payload:M.payload,callback:M.callback,next:null},oe===null?(G=oe=pe,F=se):oe=oe.next=pe,w|=le;if(M=M.next,M===null){if(M=h.shared.pending,M===null)break;le=M,M=le.next,le.next=null,h.lastBaseUpdate=le,h.shared.pending=null}}while(!0);if(oe===null&&(F=se),h.baseState=F,h.firstBaseUpdate=G,h.lastBaseUpdate=oe,n=h.shared.interleaved,n!==null){h=n;do w|=h.lane,h=h.next;while(h!==n)}else g===null&&(h.shared.lanes=0);Tr|=w,t.lanes=w,t.memoizedState=se}}function Dc(t,n,l){if(t=n.effects,n.effects=null,t!==null)for(n=0;n<t.length;n++){var a=t[n],h=a.callback;if(h!==null){if(a.callback=null,a=l,typeof h!="function")throw Error(i(191,h));h.call(a)}}}var Gi={},In=ir(Gi),Ki=ir(Gi),Yi=ir(Gi);function Pr(t){if(t===Gi)throw Error(i(174));return t}function oa(t,n){switch(Je(Yi,n),Je(Ki,t),Je(In,Gi),t=n.nodeType,t){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:ae(null,"");break;default:t=t===8?n.parentNode:n,n=t.namespaceURI||null,t=t.tagName,n=ae(n,t)}tt(In),Je(In,n)}function ui(){tt(In),tt(Ki),tt(Yi)}function Rc(t){Pr(Yi.current);var n=Pr(In.current),l=ae(n,t.type);n!==l&&(Je(Ki,t),Je(In,l))}function sa(t){Ki.current===t&&(tt(In),tt(Ki))}var it=ir(0);function fo(t){for(var n=t;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var aa=[];function ua(){for(var t=0;t<aa.length;t++)aa[t]._workInProgressVersionPrimary=null;aa.length=0}var po=$.ReactCurrentDispatcher,ca=$.ReactCurrentBatchConfig,Mr=0,lt=null,gt=null,wt=null,ho=!1,Xi=!1,Ji=0,r4=0;function Nt(){throw Error(i(321))}function da(t,n){if(n===null)return!1;for(var l=0;l<n.length&&l<t.length;l++)if(!yn(t[l],n[l]))return!1;return!0}function fa(t,n,l,a,h,g){if(Mr=g,lt=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,po.current=t===null||t.memoizedState===null?s4:a4,t=l(a,h),Xi){g=0;do{if(Xi=!1,Ji=0,25<=g)throw Error(i(301));g+=1,wt=gt=null,n.updateQueue=null,po.current=u4,t=l(a,h)}while(Xi)}if(po.current=xo,n=gt!==null&>.next!==null,Mr=0,wt=gt=lt=null,ho=!1,n)throw Error(i(300));return t}function pa(){var t=Ji!==0;return Ji=0,t}function Pn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wt===null?lt.memoizedState=wt=t:wt=wt.next=t,wt}function un(){if(gt===null){var t=lt.alternate;t=t!==null?t.memoizedState:null}else t=gt.next;var n=wt===null?lt.memoizedState:wt.next;if(n!==null)wt=n,gt=t;else{if(t===null)throw Error(i(310));gt=t,t={memoizedState:gt.memoizedState,baseState:gt.baseState,baseQueue:gt.baseQueue,queue:gt.queue,next:null},wt===null?lt.memoizedState=wt=t:wt=wt.next=t}return wt}function el(t,n){return typeof n=="function"?n(t):n}function ha(t){var n=un(),l=n.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=t;var a=gt,h=a.baseQueue,g=l.pending;if(g!==null){if(h!==null){var w=h.next;h.next=g.next,g.next=w}a.baseQueue=h=g,l.pending=null}if(h!==null){g=h.next,a=a.baseState;var M=w=null,F=null,G=g;do{var oe=G.lane;if((Mr&oe)===oe)F!==null&&(F=F.next={lane:0,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),a=G.hasEagerState?G.eagerState:t(a,G.action);else{var se={lane:oe,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null};F===null?(M=F=se,w=a):F=F.next=se,lt.lanes|=oe,Tr|=oe}G=G.next}while(G!==null&&G!==g);F===null?w=a:F.next=M,yn(a,n.memoizedState)||(qt=!0),n.memoizedState=a,n.baseState=w,n.baseQueue=F,l.lastRenderedState=a}if(t=l.interleaved,t!==null){h=t;do g=h.lane,lt.lanes|=g,Tr|=g,h=h.next;while(h!==t)}else h===null&&(l.lanes=0);return[n.memoizedState,l.dispatch]}function ma(t){var n=un(),l=n.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=t;var a=l.dispatch,h=l.pending,g=n.memoizedState;if(h!==null){l.pending=null;var w=h=h.next;do g=t(g,w.action),w=w.next;while(w!==h);yn(g,n.memoizedState)||(qt=!0),n.memoizedState=g,n.baseQueue===null&&(n.baseState=g),l.lastRenderedState=g}return[g,a]}function Ac(){}function Fc(t,n){var l=lt,a=un(),h=n(),g=!yn(a.memoizedState,h);if(g&&(a.memoizedState=h,qt=!0),a=a.queue,ga(Bc.bind(null,l,a,t),[t]),a.getSnapshot!==n||g||wt!==null&&wt.memoizedState.tag&1){if(l.flags|=2048,tl(9,$c.bind(null,l,a,h,n),void 0,null),kt===null)throw Error(i(349));(Mr&30)!==0||Oc(l,n,h)}return h}function Oc(t,n,l){t.flags|=16384,t={getSnapshot:n,value:l},n=lt.updateQueue,n===null?(n={lastEffect:null,stores:null},lt.updateQueue=n,n.stores=[t]):(l=n.stores,l===null?n.stores=[t]:l.push(t))}function $c(t,n,l,a){n.value=l,n.getSnapshot=a,Hc(n)&&Vc(t)}function Bc(t,n,l){return l(function(){Hc(n)&&Vc(t)})}function Hc(t){var n=t.getSnapshot;t=t.value;try{var l=n();return!yn(t,l)}catch{return!0}}function Vc(t){var n=Vn(t,1);n!==null&&_n(n,t,1,-1)}function Uc(t){var n=Pn();return typeof t=="function"&&(t=t()),n.memoizedState=n.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:t},n.queue=t,t=t.dispatch=o4.bind(null,lt,t),[n.memoizedState,t]}function tl(t,n,l,a){return t={tag:t,create:n,destroy:l,deps:a,next:null},n=lt.updateQueue,n===null?(n={lastEffect:null,stores:null},lt.updateQueue=n,n.lastEffect=t.next=t):(l=n.lastEffect,l===null?n.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,n.lastEffect=t)),t}function Wc(){return un().memoizedState}function mo(t,n,l,a){var h=Pn();lt.flags|=t,h.memoizedState=tl(1|n,l,void 0,a===void 0?null:a)}function go(t,n,l,a){var h=un();a=a===void 0?null:a;var g=void 0;if(gt!==null){var w=gt.memoizedState;if(g=w.destroy,a!==null&&da(a,w.deps)){h.memoizedState=tl(n,l,g,a);return}}lt.flags|=t,h.memoizedState=tl(1|n,l,g,a)}function qc(t,n){return mo(8390656,8,t,n)}function ga(t,n){return go(2048,8,t,n)}function Zc(t,n){return go(4,2,t,n)}function Qc(t,n){return go(4,4,t,n)}function Gc(t,n){if(typeof n=="function")return t=t(),n(t),function(){n(null)};if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function Kc(t,n,l){return l=l!=null?l.concat([t]):null,go(4,4,Gc.bind(null,n,t),l)}function xa(){}function Yc(t,n){var l=un();n=n===void 0?null:n;var a=l.memoizedState;return a!==null&&n!==null&&da(n,a[1])?a[0]:(l.memoizedState=[t,n],t)}function Xc(t,n){var l=un();n=n===void 0?null:n;var a=l.memoizedState;return a!==null&&n!==null&&da(n,a[1])?a[0]:(t=t(),l.memoizedState=[t,n],t)}function Jc(t,n,l){return(Mr&21)===0?(t.baseState&&(t.baseState=!1,qt=!0),t.memoizedState=l):(yn(l,n)||(l=Nu(),lt.lanes|=l,Tr|=l,t.baseState=!0),n)}function i4(t,n){var l=qe;qe=l!==0&&4>l?l:4,t(!0);var a=ca.transition;ca.transition={};try{t(!1),n()}finally{qe=l,ca.transition=a}}function e0(){return un().memoizedState}function l4(t,n,l){var a=fr(t);if(l={lane:a,action:l,hasEagerState:!1,eagerState:null,next:null},t0(t))n0(n,l);else if(l=Mc(t,n,l,a),l!==null){var h=Bt();_n(l,t,a,h),r0(l,n,a)}}function o4(t,n,l){var a=fr(t),h={lane:a,action:l,hasEagerState:!1,eagerState:null,next:null};if(t0(t))n0(n,h);else{var g=t.alternate;if(t.lanes===0&&(g===null||g.lanes===0)&&(g=n.lastRenderedReducer,g!==null))try{var w=n.lastRenderedState,M=g(w,l);if(h.hasEagerState=!0,h.eagerState=M,yn(M,w)){var F=n.interleaved;F===null?(h.next=h,ia(n)):(h.next=F.next,F.next=h),n.interleaved=h;return}}catch{}finally{}l=Mc(t,n,h,a),l!==null&&(h=Bt(),_n(l,t,a,h),r0(l,n,a))}}function t0(t){var n=t.alternate;return t===lt||n!==null&&n===lt}function n0(t,n){Xi=ho=!0;var l=t.pending;l===null?n.next=n:(n.next=l.next,l.next=n),t.pending=n}function r0(t,n,l){if((l&4194240)!==0){var a=n.lanes;a&=t.pendingLanes,l|=a,n.lanes=l,vs(t,l)}}var xo={readContext:an,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useInsertionEffect:Nt,useLayoutEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useMutableSource:Nt,useSyncExternalStore:Nt,useId:Nt,unstable_isNewReconciler:!1},s4={readContext:an,useCallback:function(t,n){return Pn().memoizedState=[t,n===void 0?null:n],t},useContext:an,useEffect:qc,useImperativeHandle:function(t,n,l){return l=l!=null?l.concat([t]):null,mo(4194308,4,Gc.bind(null,n,t),l)},useLayoutEffect:function(t,n){return mo(4194308,4,t,n)},useInsertionEffect:function(t,n){return mo(4,2,t,n)},useMemo:function(t,n){var l=Pn();return n=n===void 0?null:n,t=t(),l.memoizedState=[t,n],t},useReducer:function(t,n,l){var a=Pn();return n=l!==void 0?l(n):n,a.memoizedState=a.baseState=n,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=l4.bind(null,lt,t),[a.memoizedState,t]},useRef:function(t){var n=Pn();return t={current:t},n.memoizedState=t},useState:Uc,useDebugValue:xa,useDeferredValue:function(t){return Pn().memoizedState=t},useTransition:function(){var t=Uc(!1),n=t[0];return t=i4.bind(null,t[1]),Pn().memoizedState=t,[n,t]},useMutableSource:function(){},useSyncExternalStore:function(t,n,l){var a=lt,h=Pn();if(nt){if(l===void 0)throw Error(i(407));l=l()}else{if(l=n(),kt===null)throw Error(i(349));(Mr&30)!==0||Oc(a,n,l)}h.memoizedState=l;var g={value:l,getSnapshot:n};return h.queue=g,qc(Bc.bind(null,a,g,t),[t]),a.flags|=2048,tl(9,$c.bind(null,a,g,l,n),void 0,null),l},useId:function(){var t=Pn(),n=kt.identifierPrefix;if(nt){var l=Hn,a=Bn;l=(a&~(1<<32-xn(a)-1)).toString(32)+l,n=":"+n+"R"+l,l=Ji++,0<l&&(n+="H"+l.toString(32)),n+=":"}else l=r4++,n=":"+n+"r"+l.toString(32)+":";return t.memoizedState=n},unstable_isNewReconciler:!1},a4={readContext:an,useCallback:Yc,useContext:an,useEffect:ga,useImperativeHandle:Kc,useInsertionEffect:Zc,useLayoutEffect:Qc,useMemo:Xc,useReducer:ha,useRef:Wc,useState:function(){return ha(el)},useDebugValue:xa,useDeferredValue:function(t){var n=un();return Jc(n,gt.memoizedState,t)},useTransition:function(){var t=ha(el)[0],n=un().memoizedState;return[t,n]},useMutableSource:Ac,useSyncExternalStore:Fc,useId:e0,unstable_isNewReconciler:!1},u4={readContext:an,useCallback:Yc,useContext:an,useEffect:ga,useImperativeHandle:Kc,useInsertionEffect:Zc,useLayoutEffect:Qc,useMemo:Xc,useReducer:ma,useRef:Wc,useState:function(){return ma(el)},useDebugValue:xa,useDeferredValue:function(t){var n=un();return gt===null?n.memoizedState=t:Jc(n,gt.memoizedState,t)},useTransition:function(){var t=ma(el)[0],n=un().memoizedState;return[t,n]},useMutableSource:Ac,useSyncExternalStore:Fc,useId:e0,unstable_isNewReconciler:!1};function Cn(t,n){if(t&&t.defaultProps){n=S({},n),t=t.defaultProps;for(var l in t)n[l]===void 0&&(n[l]=t[l]);return n}return n}function ya(t,n,l,a){n=t.memoizedState,l=l(a,n),l=l==null?n:S({},n,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var yo={isMounted:function(t){return(t=t._reactInternals)?br(t)===t:!1},enqueueSetState:function(t,n,l){t=t._reactInternals;var a=Bt(),h=fr(t),g=Un(a,h);g.payload=n,l!=null&&(g.callback=l),n=ar(t,g,h),n!==null&&(_n(n,t,h,a),uo(n,t,h))},enqueueReplaceState:function(t,n,l){t=t._reactInternals;var a=Bt(),h=fr(t),g=Un(a,h);g.tag=1,g.payload=n,l!=null&&(g.callback=l),n=ar(t,g,h),n!==null&&(_n(n,t,h,a),uo(n,t,h))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var l=Bt(),a=fr(t),h=Un(l,a);h.tag=2,n!=null&&(h.callback=n),n=ar(t,h,a),n!==null&&(_n(n,t,a,l),uo(n,t,a))}};function i0(t,n,l,a,h,g,w){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,g,w):n.prototype&&n.prototype.isPureReactComponent?!Bi(l,a)||!Bi(h,g):!0}function l0(t,n,l){var a=!1,h=lr,g=n.contextType;return typeof g=="object"&&g!==null?g=an(g):(h=Wt(n)?jr:Lt.current,a=n.contextTypes,g=(a=a!=null)?ni(t,h):lr),n=new n(l,g),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=yo,t.stateNode=n,n._reactInternals=t,a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=h,t.__reactInternalMemoizedMaskedChildContext=g),n}function o0(t,n,l,a){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(l,a),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(l,a),n.state!==t&&yo.enqueueReplaceState(n,n.state,null)}function va(t,n,l,a){var h=t.stateNode;h.props=l,h.state=t.memoizedState,h.refs={},la(t);var g=n.contextType;typeof g=="object"&&g!==null?h.context=an(g):(g=Wt(n)?jr:Lt.current,h.context=ni(t,g)),h.state=t.memoizedState,g=n.getDerivedStateFromProps,typeof g=="function"&&(ya(t,n,g,l),h.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(n=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),n!==h.state&&yo.enqueueReplaceState(h,h.state,null),co(t,l,h,a),h.state=t.memoizedState),typeof h.componentDidMount=="function"&&(t.flags|=4194308)}function ci(t,n){try{var l="",a=n;do l+=ve(a),a=a.return;while(a);var h=l}catch(g){h=`
|
|
33
|
+
*/var a2;function Z4(){if(a2)return Gt;a2=1;var e=Qu(),r=q4();function i(t){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+t,l=1;l<arguments.length;l++)n+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,s={};function a(t,n){d(t,n),d(t+"Capture",n)}function d(t,n){for(s[t]=n,t=0;t<n.length;t++)o.add(n[t])}var f=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,y={},x={};function v(t){return p.call(x,t)?!0:p.call(y,t)?!1:m.test(t)?x[t]=!0:(y[t]=!0,!1)}function C(t,n,l,u){if(l!==null&&l.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return u?!1:l!==null?!l.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function k(t,n,l,u){if(n===null||typeof n>"u"||C(t,n,l,u))return!0;if(u)return!1;if(l!==null)switch(l.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function P(t,n,l,u,h,g,w){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=u,this.attributeNamespace=h,this.mustUseProperty=l,this.propertyName=t,this.type=n,this.sanitizeURL=g,this.removeEmptyString=w}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){R[t]=new P(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var n=t[0];R[n]=new P(n,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){R[t]=new P(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){R[t]=new P(t,2,!1,t,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(t){R[t]=new P(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){R[t]=new P(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){R[t]=new P(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){R[t]=new P(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){R[t]=new P(t,5,!1,t.toLowerCase(),null,!1,!1)});var j=/[\-:]([a-z])/g;function V(t){return t[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(t){var n=t.replace(j,V);R[n]=new P(n,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var n=t.replace(j,V);R[n]=new P(n,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var n=t.replace(j,V);R[n]=new P(n,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){R[t]=new P(t,1,!1,t.toLowerCase(),null,!1,!1)}),R.xlinkHref=new P("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){R[t]=new P(t,1,!1,t.toLowerCase(),null,!0,!0)});function S(t,n,l,u){var h=R.hasOwnProperty(n)?R[n]:null;(h!==null?h.type!==0:u||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(k(n,l,h,u)&&(l=null),u||h===null?v(n)&&(l===null?t.removeAttribute(n):t.setAttribute(n,""+l)):h.mustUseProperty?t[h.propertyName]=l===null?h.type===3?!1:"":l:(n=h.attributeName,u=h.attributeNamespace,l===null?t.removeAttribute(n):(h=h.type,l=h===3||h===4&&l===!0?"":""+l,u?t.setAttributeNS(u,n,l):t.setAttribute(n,l))))}var F=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,B=Symbol.for("react.element"),T=Symbol.for("react.portal"),ee=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),L=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),J=Symbol.for("react.offscreen"),z=Symbol.iterator;function ne(t){return t===null||typeof t!="object"?null:(t=z&&t[z]||t["@@iterator"],typeof t=="function"?t:null)}var b=Object.assign,A;function K(t){if(A===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);A=n&&n[1]||""}return`
|
|
34
|
+
`+A+t}var N=!1;function ge(t,n){if(!t||N)return"";N=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(G){var u=G}Reflect.construct(t,[],n)}else{try{n.call()}catch(G){u=G}t.call(n.prototype)}else{try{throw Error()}catch(G){u=G}t()}}catch(G){if(G&&u&&typeof G.stack=="string"){for(var h=G.stack.split(`
|
|
35
|
+
`),g=u.stack.split(`
|
|
36
|
+
`),w=h.length-1,M=g.length-1;1<=w&&0<=M&&h[w]!==g[M];)M--;for(;1<=w&&0<=M;w--,M--)if(h[w]!==g[M]){if(w!==1||M!==1)do if(w--,M--,0>M||h[w]!==g[M]){var O=`
|
|
37
|
+
`+h[w].replace(" at new "," at ");return t.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",t.displayName)),O}while(1<=w&&0<=M);break}}}finally{N=!1,Error.prepareStackTrace=l}return(t=t?t.displayName||t.name:"")?K(t):""}function ve(t){switch(t.tag){case 5:return K(t.type);case 16:return K("Lazy");case 13:return K("Suspense");case 19:return K("SuspenseList");case 0:case 2:case 15:return t=ge(t.type,!1),t;case 11:return t=ge(t.type.render,!1),t;case 1:return t=ge(t.type,!0),t;default:return""}}function fe(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case ee:return"Fragment";case T:return"Portal";case Y:return"Profiler";case ie:return"StrictMode";case te:return"Suspense";case W:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case L:return(t.displayName||"Context")+".Consumer";case D:return(t._context.displayName||"Context")+".Provider";case Z:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case $:return n=t.displayName||null,n!==null?n:fe(t.type)||"Memo";case I:n=t._payload,t=t._init;try{return fe(t(n))}catch{}}return null}function Ne(t){var n=t.type;switch(t.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=n.render,t=t.displayName||t.name||"",n.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fe(n);case 8:return n===ie?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function Ee(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function ze(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Ue(t){var n=ze(t)?"checked":"value",l=Object.getOwnPropertyDescriptor(t.constructor.prototype,n),u=""+t[n];if(!t.hasOwnProperty(n)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var h=l.get,g=l.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return h.call(this)},set:function(w){u=""+w,g.call(this,w)}}),Object.defineProperty(t,n,{enumerable:l.enumerable}),{getValue:function(){return u},setValue:function(w){u=""+w},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function Oe(t){t._valueTracker||(t._valueTracker=Ue(t))}function rt(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var l=n.getValue(),u="";return t&&(u=ze(t)?t.checked?"true":"false":t.value),t=u,t!==l?(n.setValue(t),!0):!1}function Et(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Dt(t,n){var l=n.checked;return b({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??t._wrapperState.initialChecked})}function At(t,n){var l=n.defaultValue==null?"":n.defaultValue,u=n.checked!=null?n.checked:n.defaultChecked;l=Ee(n.value!=null?n.value:l),t._wrapperState={initialChecked:u,initialValue:l,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function jt(t,n){n=n.checked,n!=null&&S(t,"checked",n,!1)}function Ft(t,n){jt(t,n);var l=Ee(n.value),u=n.type;if(l!=null)u==="number"?(l===0&&t.value===""||t.value!=l)&&(t.value=""+l):t.value!==""+l&&(t.value=""+l);else if(u==="submit"||u==="reset"){t.removeAttribute("value");return}n.hasOwnProperty("value")?re(t,n.type,l):n.hasOwnProperty("defaultValue")&&re(t,n.type,Ee(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(t.defaultChecked=!!n.defaultChecked)}function gn(t,n,l){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var u=n.type;if(!(u!=="submit"&&u!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+t._wrapperState.initialValue,l||n===t.value||(t.value=n),t.defaultValue=n}l=t.name,l!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,l!==""&&(t.name=l)}function re(t,n,l){(n!=="number"||Et(t.ownerDocument)!==t)&&(l==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+l&&(t.defaultValue=""+l))}var Se=Array.isArray;function Q(t,n,l,u){if(t=t.options,n){n={};for(var h=0;h<l.length;h++)n["$"+l[h]]=!0;for(l=0;l<t.length;l++)h=n.hasOwnProperty("$"+t[l].value),t[l].selected!==h&&(t[l].selected=h),h&&u&&(t[l].defaultSelected=!0)}else{for(l=""+Ee(l),n=null,h=0;h<t.length;h++){if(t[h].value===l){t[h].selected=!0,u&&(t[h].defaultSelected=!0);return}n!==null||t[h].disabled||(n=t[h])}n!==null&&(n.selected=!0)}}function xe(t,n){if(n.dangerouslySetInnerHTML!=null)throw Error(i(91));return b({},n,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Me(t,n){var l=n.value;if(l==null){if(l=n.children,n=n.defaultValue,l!=null){if(n!=null)throw Error(i(92));if(Se(l)){if(1<l.length)throw Error(i(93));l=l[0]}n=l}n==null&&(n=""),l=n}t._wrapperState={initialValue:Ee(l)}}function at(t,n){var l=Ee(n.value),u=Ee(n.defaultValue);l!=null&&(l=""+l,l!==t.value&&(t.value=l),n.defaultValue==null&&t.defaultValue!==l&&(t.defaultValue=l)),u!=null&&(t.defaultValue=""+u)}function He(t){var n=t.textContent;n===t._wrapperState.initialValue&&n!==""&&n!==null&&(t.value=n)}function X(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ae(t,n){return t==null||t==="http://www.w3.org/1999/xhtml"?X(n):t==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var we,je=(function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,l,u,h){MSApp.execUnsafeLocalFunction(function(){return t(n,l,u,h)})}:t})(function(t,n){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=n;else{for(we=we||document.createElement("div"),we.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=we.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;n.firstChild;)t.appendChild(n.firstChild)}});function De(t,n){if(n){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=n;return}}t.textContent=n}var ft={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},on=["Webkit","ms","Moz","O"];Object.keys(ft).forEach(function(t){on.forEach(function(n){n=n+t.charAt(0).toUpperCase()+t.substring(1),ft[n]=ft[t]})});function de(t,n,l){return n==null||typeof n=="boolean"||n===""?"":l||typeof n!="number"||n===0||ft.hasOwnProperty(t)&&ft[t]?(""+n).trim():n+"px"}function Te(t,n){t=t.style;for(var l in n)if(n.hasOwnProperty(l)){var u=l.indexOf("--")===0,h=de(l,n[l],u);l==="float"&&(l="cssFloat"),u?t.setProperty(l,h):t[l]=h}}var Ge=b({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 Qe(t,n){if(n){if(Ge[t]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(i(137,t));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(i(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(i(61))}if(n.style!=null&&typeof n.style!="object")throw Error(i(62))}}function Ot(t,n){if(t.indexOf("-")===-1)return typeof n.is=="string";switch(t){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 Xe=null;function Sr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Fn=null,On=null,jn=null;function Pl(t){if(t=Qi(t)){if(typeof Fn!="function")throw Error(i(280));var n=t.stateNode;n&&(n=eo(n),Fn(t.stateNode,t.type,n))}}function Si(t){On?jn?jn.push(t):jn=[t]:On=t}function Ei(){if(On){var t=On,n=jn;if(jn=On=null,Pl(t),n)for(t=0;t<n.length;t++)Pl(n[t])}}function Er(t,n){return t(n)}function k1(){}var hs=!1;function _1(t,n,l){if(hs)return t(n,l);hs=!0;try{return Er(t,n,l)}finally{hs=!1,(On!==null||jn!==null)&&(k1(),Ei())}}function ji(t,n){var l=t.stateNode;if(l===null)return null;var u=eo(l);if(u===null)return null;l=u[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(t=t.type,u=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!u;break e;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(i(231,n,typeof l));return l}var ms=!1;if(f)try{var Li={};Object.defineProperty(Li,"passive",{get:function(){ms=!0}}),window.addEventListener("test",Li,Li),window.removeEventListener("test",Li,Li)}catch{ms=!1}function W3(t,n,l,u,h,g,w,M,O){var G=Array.prototype.slice.call(arguments,3);try{n.apply(l,G)}catch(oe){this.onError(oe)}}var Ni=!1,Ml=null,Tl=!1,gs=null,q3={onError:function(t){Ni=!0,Ml=t}};function Z3(t,n,l,u,h,g,w,M,O){Ni=!1,Ml=null,W3.apply(q3,arguments)}function Q3(t,n,l,u,h,g,w,M,O){if(Z3.apply(this,arguments),Ni){if(Ni){var G=Ml;Ni=!1,Ml=null}else throw Error(i(198));Tl||(Tl=!0,gs=G)}}function jr(t){var n=t,l=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(l=n.return),t=n.return;while(t)}return n.tag===3?l:null}function b1(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function S1(t){if(jr(t)!==t)throw Error(i(188))}function G3(t){var n=t.alternate;if(!n){if(n=jr(t),n===null)throw Error(i(188));return n!==t?null:t}for(var l=t,u=n;;){var h=l.return;if(h===null)break;var g=h.alternate;if(g===null){if(u=h.return,u!==null){l=u;continue}break}if(h.child===g.child){for(g=h.child;g;){if(g===l)return S1(h),t;if(g===u)return S1(h),n;g=g.sibling}throw Error(i(188))}if(l.return!==u.return)l=h,u=g;else{for(var w=!1,M=h.child;M;){if(M===l){w=!0,l=h,u=g;break}if(M===u){w=!0,u=h,l=g;break}M=M.sibling}if(!w){for(M=g.child;M;){if(M===l){w=!0,l=g,u=h;break}if(M===u){w=!0,u=g,l=h;break}M=M.sibling}if(!w)throw Error(i(189))}}if(l.alternate!==u)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?t:n}function E1(t){return t=G3(t),t!==null?j1(t):null}function j1(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var n=j1(t);if(n!==null)return n;t=t.sibling}return null}var L1=r.unstable_scheduleCallback,N1=r.unstable_cancelCallback,K3=r.unstable_shouldYield,Y3=r.unstable_requestPaint,ct=r.unstable_now,X3=r.unstable_getCurrentPriorityLevel,xs=r.unstable_ImmediatePriority,I1=r.unstable_UserBlockingPriority,zl=r.unstable_NormalPriority,J3=r.unstable_LowPriority,P1=r.unstable_IdlePriority,Rl=null,Ln=null;function ef(t){if(Ln&&typeof Ln.onCommitFiberRoot=="function")try{Ln.onCommitFiberRoot(Rl,t,void 0,(t.current.flags&128)===128)}catch{}}var xn=Math.clz32?Math.clz32:rf,tf=Math.log,nf=Math.LN2;function rf(t){return t>>>=0,t===0?32:31-(tf(t)/nf|0)|0}var Dl=64,Al=4194304;function Ii(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Fl(t,n){var l=t.pendingLanes;if(l===0)return 0;var u=0,h=t.suspendedLanes,g=t.pingedLanes,w=l&268435455;if(w!==0){var M=w&~h;M!==0?u=Ii(M):(g&=w,g!==0&&(u=Ii(g)))}else w=l&~h,w!==0?u=Ii(w):g!==0&&(u=Ii(g));if(u===0)return 0;if(n!==0&&n!==u&&(n&h)===0&&(h=u&-u,g=n&-n,h>=g||h===16&&(g&4194240)!==0))return n;if((u&4)!==0&&(u|=l&16),n=t.entangledLanes,n!==0)for(t=t.entanglements,n&=u;0<n;)l=31-xn(n),h=1<<l,u|=t[l],n&=~h;return u}function lf(t,n){switch(t){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function of(t,n){for(var l=t.suspendedLanes,u=t.pingedLanes,h=t.expirationTimes,g=t.pendingLanes;0<g;){var w=31-xn(g),M=1<<w,O=h[w];O===-1?((M&l)===0||(M&u)!==0)&&(h[w]=lf(M,n)):O<=n&&(t.expiredLanes|=M),g&=~M}}function ys(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function M1(){var t=Dl;return Dl<<=1,(Dl&4194240)===0&&(Dl=64),t}function vs(t){for(var n=[],l=0;31>l;l++)n.push(t);return n}function Pi(t,n,l){t.pendingLanes|=n,n!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,n=31-xn(n),t[n]=l}function sf(t,n){var l=t.pendingLanes&~n;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=n,t.mutableReadLanes&=n,t.entangledLanes&=n,n=t.entanglements;var u=t.eventTimes;for(t=t.expirationTimes;0<l;){var h=31-xn(l),g=1<<h;n[h]=0,u[h]=-1,t[h]=-1,l&=~g}}function Cs(t,n){var l=t.entangledLanes|=n;for(t=t.entanglements;l;){var u=31-xn(l),h=1<<u;h&n|t[u]&n&&(t[u]|=n),l&=~h}}var qe=0;function T1(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var z1,ws,R1,D1,A1,ks=!1,Ol=[],er=null,tr=null,nr=null,Mi=new Map,Ti=new Map,rr=[],af="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 F1(t,n){switch(t){case"focusin":case"focusout":er=null;break;case"dragenter":case"dragleave":tr=null;break;case"mouseover":case"mouseout":nr=null;break;case"pointerover":case"pointerout":Mi.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ti.delete(n.pointerId)}}function zi(t,n,l,u,h,g){return t===null||t.nativeEvent!==g?(t={blockedOn:n,domEventName:l,eventSystemFlags:u,nativeEvent:g,targetContainers:[h]},n!==null&&(n=Qi(n),n!==null&&ws(n)),t):(t.eventSystemFlags|=u,n=t.targetContainers,h!==null&&n.indexOf(h)===-1&&n.push(h),t)}function uf(t,n,l,u,h){switch(n){case"focusin":return er=zi(er,t,n,l,u,h),!0;case"dragenter":return tr=zi(tr,t,n,l,u,h),!0;case"mouseover":return nr=zi(nr,t,n,l,u,h),!0;case"pointerover":var g=h.pointerId;return Mi.set(g,zi(Mi.get(g)||null,t,n,l,u,h)),!0;case"gotpointercapture":return g=h.pointerId,Ti.set(g,zi(Ti.get(g)||null,t,n,l,u,h)),!0}return!1}function O1(t){var n=Lr(t.target);if(n!==null){var l=jr(n);if(l!==null){if(n=l.tag,n===13){if(n=b1(l),n!==null){t.blockedOn=n,A1(t.priority,function(){R1(l)});return}}else if(n===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function $l(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var l=bs(t.domEventName,t.eventSystemFlags,n[0],t.nativeEvent);if(l===null){l=t.nativeEvent;var u=new l.constructor(l.type,l);Xe=u,l.target.dispatchEvent(u),Xe=null}else return n=Qi(l),n!==null&&ws(n),t.blockedOn=l,!1;n.shift()}return!0}function $1(t,n,l){$l(t)&&l.delete(n)}function cf(){ks=!1,er!==null&&$l(er)&&(er=null),tr!==null&&$l(tr)&&(tr=null),nr!==null&&$l(nr)&&(nr=null),Mi.forEach($1),Ti.forEach($1)}function Ri(t,n){t.blockedOn===n&&(t.blockedOn=null,ks||(ks=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,cf)))}function Di(t){function n(h){return Ri(h,t)}if(0<Ol.length){Ri(Ol[0],t);for(var l=1;l<Ol.length;l++){var u=Ol[l];u.blockedOn===t&&(u.blockedOn=null)}}for(er!==null&&Ri(er,t),tr!==null&&Ri(tr,t),nr!==null&&Ri(nr,t),Mi.forEach(n),Ti.forEach(n),l=0;l<rr.length;l++)u=rr[l],u.blockedOn===t&&(u.blockedOn=null);for(;0<rr.length&&(l=rr[0],l.blockedOn===null);)O1(l),l.blockedOn===null&&rr.shift()}var Qr=F.ReactCurrentBatchConfig,Bl=!0;function df(t,n,l,u){var h=qe,g=Qr.transition;Qr.transition=null;try{qe=1,_s(t,n,l,u)}finally{qe=h,Qr.transition=g}}function ff(t,n,l,u){var h=qe,g=Qr.transition;Qr.transition=null;try{qe=4,_s(t,n,l,u)}finally{qe=h,Qr.transition=g}}function _s(t,n,l,u){if(Bl){var h=bs(t,n,l,u);if(h===null)Bs(t,n,u,Hl,l),F1(t,u);else if(uf(h,t,n,l,u))u.stopPropagation();else if(F1(t,u),n&4&&-1<af.indexOf(t)){for(;h!==null;){var g=Qi(h);if(g!==null&&z1(g),g=bs(t,n,l,u),g===null&&Bs(t,n,u,Hl,l),g===h)break;h=g}h!==null&&u.stopPropagation()}else Bs(t,n,u,null,l)}}var Hl=null;function bs(t,n,l,u){if(Hl=null,t=Sr(u),t=Lr(t),t!==null)if(n=jr(t),n===null)t=null;else if(l=n.tag,l===13){if(t=b1(n),t!==null)return t;t=null}else if(l===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null);return Hl=t,null}function B1(t){switch(t){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(X3()){case xs:return 1;case I1:return 4;case zl:case J3:return 16;case P1:return 536870912;default:return 16}default:return 16}}var ir=null,Ss=null,Vl=null;function H1(){if(Vl)return Vl;var t,n=Ss,l=n.length,u,h="value"in ir?ir.value:ir.textContent,g=h.length;for(t=0;t<l&&n[t]===h[t];t++);var w=l-t;for(u=1;u<=w&&n[l-u]===h[g-u];u++);return Vl=h.slice(t,1<u?1-u:void 0)}function Ul(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function Wl(){return!0}function V1(){return!1}function Jt(t){function n(l,u,h,g,w){this._reactName=l,this._targetInst=h,this.type=u,this.nativeEvent=g,this.target=w,this.currentTarget=null;for(var M in t)t.hasOwnProperty(M)&&(l=t[M],this[M]=l?l(g):g[M]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Wl:V1,this.isPropagationStopped=V1,this}return b(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Wl)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Wl)},persist:function(){},isPersistent:Wl}),n}var Gr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Es=Jt(Gr),Ai=b({},Gr,{view:0,detail:0}),pf=Jt(Ai),js,Ls,Fi,ql=b({},Ai,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Is,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Fi&&(Fi&&t.type==="mousemove"?(js=t.screenX-Fi.screenX,Ls=t.screenY-Fi.screenY):Ls=js=0,Fi=t),js)},movementY:function(t){return"movementY"in t?t.movementY:Ls}}),U1=Jt(ql),hf=b({},ql,{dataTransfer:0}),mf=Jt(hf),gf=b({},Ai,{relatedTarget:0}),Ns=Jt(gf),xf=b({},Gr,{animationName:0,elapsedTime:0,pseudoElement:0}),yf=Jt(xf),vf=b({},Gr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Cf=Jt(vf),wf=b({},Gr,{data:0}),W1=Jt(wf),kf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_f={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"},bf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sf(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=bf[t])?!!n[t]:!1}function Is(){return Sf}var Ef=b({},Ai,{key:function(t){if(t.key){var n=kf[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=Ul(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?_f[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Is,charCode:function(t){return t.type==="keypress"?Ul(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ul(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),jf=Jt(Ef),Lf=b({},ql,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),q1=Jt(Lf),Nf=b({},Ai,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Is}),If=Jt(Nf),Pf=b({},Gr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Mf=Jt(Pf),Tf=b({},ql,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),zf=Jt(Tf),Rf=[9,13,27,32],Ps=f&&"CompositionEvent"in window,Oi=null;f&&"documentMode"in document&&(Oi=document.documentMode);var Df=f&&"TextEvent"in window&&!Oi,Z1=f&&(!Ps||Oi&&8<Oi&&11>=Oi),Q1=" ",G1=!1;function K1(t,n){switch(t){case"keyup":return Rf.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Y1(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Kr=!1;function Af(t,n){switch(t){case"compositionend":return Y1(n);case"keypress":return n.which!==32?null:(G1=!0,Q1);case"textInput":return t=n.data,t===Q1&&G1?null:t;default:return null}}function Ff(t,n){if(Kr)return t==="compositionend"||!Ps&&K1(t,n)?(t=H1(),Vl=Ss=ir=null,Kr=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Z1&&n.locale!=="ko"?null:n.data;default:return null}}var Of={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 X1(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!Of[t.type]:n==="textarea"}function J1(t,n,l,u){Si(u),n=Yl(n,"onChange"),0<n.length&&(l=new Es("onChange","change",null,l,u),t.push({event:l,listeners:n}))}var $i=null,Bi=null;function $f(t){xc(t,0)}function Zl(t){var n=ti(t);if(rt(n))return t}function Bf(t,n){if(t==="change")return n}var ec=!1;if(f){var Ms;if(f){var Ts="oninput"in document;if(!Ts){var tc=document.createElement("div");tc.setAttribute("oninput","return;"),Ts=typeof tc.oninput=="function"}Ms=Ts}else Ms=!1;ec=Ms&&(!document.documentMode||9<document.documentMode)}function nc(){$i&&($i.detachEvent("onpropertychange",rc),Bi=$i=null)}function rc(t){if(t.propertyName==="value"&&Zl(Bi)){var n=[];J1(n,Bi,t,Sr(t)),_1($f,n)}}function Hf(t,n,l){t==="focusin"?(nc(),$i=n,Bi=l,$i.attachEvent("onpropertychange",rc)):t==="focusout"&&nc()}function Vf(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Zl(Bi)}function Uf(t,n){if(t==="click")return Zl(n)}function Wf(t,n){if(t==="input"||t==="change")return Zl(n)}function qf(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var yn=typeof Object.is=="function"?Object.is:qf;function Hi(t,n){if(yn(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var l=Object.keys(t),u=Object.keys(n);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var h=l[u];if(!p.call(n,h)||!yn(t[h],n[h]))return!1}return!0}function ic(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function lc(t,n){var l=ic(t);t=0;for(var u;l;){if(l.nodeType===3){if(u=t+l.textContent.length,t<=n&&u>=n)return{node:l,offset:n-t};t=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=ic(l)}}function oc(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?oc(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function sc(){for(var t=window,n=Et();n instanceof t.HTMLIFrameElement;){try{var l=typeof n.contentWindow.location.href=="string"}catch{l=!1}if(l)t=n.contentWindow;else break;n=Et(t.document)}return n}function zs(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}function Zf(t){var n=sc(),l=t.focusedElem,u=t.selectionRange;if(n!==l&&l&&l.ownerDocument&&oc(l.ownerDocument.documentElement,l)){if(u!==null&&zs(l)){if(n=u.start,t=u.end,t===void 0&&(t=n),"selectionStart"in l)l.selectionStart=n,l.selectionEnd=Math.min(t,l.value.length);else if(t=(n=l.ownerDocument||document)&&n.defaultView||window,t.getSelection){t=t.getSelection();var h=l.textContent.length,g=Math.min(u.start,h);u=u.end===void 0?g:Math.min(u.end,h),!t.extend&&g>u&&(h=u,u=g,g=h),h=lc(l,g);var w=lc(l,u);h&&w&&(t.rangeCount!==1||t.anchorNode!==h.node||t.anchorOffset!==h.offset||t.focusNode!==w.node||t.focusOffset!==w.offset)&&(n=n.createRange(),n.setStart(h.node,h.offset),t.removeAllRanges(),g>u?(t.addRange(n),t.extend(w.node,w.offset)):(n.setEnd(w.node,w.offset),t.addRange(n)))}}for(n=[],t=l;t=t.parentNode;)t.nodeType===1&&n.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<n.length;l++)t=n[l],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Qf=f&&"documentMode"in document&&11>=document.documentMode,Yr=null,Rs=null,Vi=null,Ds=!1;function ac(t,n,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ds||Yr==null||Yr!==Et(u)||(u=Yr,"selectionStart"in u&&zs(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Vi&&Hi(Vi,u)||(Vi=u,u=Yl(Rs,"onSelect"),0<u.length&&(n=new Es("onSelect","select",null,n,l),t.push({event:n,listeners:u}),n.target=Yr)))}function Ql(t,n){var l={};return l[t.toLowerCase()]=n.toLowerCase(),l["Webkit"+t]="webkit"+n,l["Moz"+t]="moz"+n,l}var Xr={animationend:Ql("Animation","AnimationEnd"),animationiteration:Ql("Animation","AnimationIteration"),animationstart:Ql("Animation","AnimationStart"),transitionend:Ql("Transition","TransitionEnd")},As={},uc={};f&&(uc=document.createElement("div").style,"AnimationEvent"in window||(delete Xr.animationend.animation,delete Xr.animationiteration.animation,delete Xr.animationstart.animation),"TransitionEvent"in window||delete Xr.transitionend.transition);function Gl(t){if(As[t])return As[t];if(!Xr[t])return t;var n=Xr[t],l;for(l in n)if(n.hasOwnProperty(l)&&l in uc)return As[t]=n[l];return t}var cc=Gl("animationend"),dc=Gl("animationiteration"),fc=Gl("animationstart"),pc=Gl("transitionend"),hc=new Map,mc="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 lr(t,n){hc.set(t,n),a(n,[t])}for(var Fs=0;Fs<mc.length;Fs++){var Os=mc[Fs],Gf=Os.toLowerCase(),Kf=Os[0].toUpperCase()+Os.slice(1);lr(Gf,"on"+Kf)}lr(cc,"onAnimationEnd"),lr(dc,"onAnimationIteration"),lr(fc,"onAnimationStart"),lr("dblclick","onDoubleClick"),lr("focusin","onFocus"),lr("focusout","onBlur"),lr(pc,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ui="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(" "),Yf=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ui));function gc(t,n,l){var u=t.type||"unknown-event";t.currentTarget=l,Q3(u,n,void 0,t),t.currentTarget=null}function xc(t,n){n=(n&4)!==0;for(var l=0;l<t.length;l++){var u=t[l],h=u.event;u=u.listeners;e:{var g=void 0;if(n)for(var w=u.length-1;0<=w;w--){var M=u[w],O=M.instance,G=M.currentTarget;if(M=M.listener,O!==g&&h.isPropagationStopped())break e;gc(h,M,G),g=O}else for(w=0;w<u.length;w++){if(M=u[w],O=M.instance,G=M.currentTarget,M=M.listener,O!==g&&h.isPropagationStopped())break e;gc(h,M,G),g=O}}}if(Tl)throw t=gs,Tl=!1,gs=null,t}function et(t,n){var l=n[Zs];l===void 0&&(l=n[Zs]=new Set);var u=t+"__bubble";l.has(u)||(yc(n,t,2,!1),l.add(u))}function $s(t,n,l){var u=0;n&&(u|=4),yc(l,t,u,n)}var Kl="_reactListening"+Math.random().toString(36).slice(2);function Wi(t){if(!t[Kl]){t[Kl]=!0,o.forEach(function(l){l!=="selectionchange"&&(Yf.has(l)||$s(l,!1,t),$s(l,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[Kl]||(n[Kl]=!0,$s("selectionchange",!1,n))}}function yc(t,n,l,u){switch(B1(n)){case 1:var h=df;break;case 4:h=ff;break;default:h=_s}l=h.bind(null,n,l,t),h=void 0,!ms||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(h=!0),u?h!==void 0?t.addEventListener(n,l,{capture:!0,passive:h}):t.addEventListener(n,l,!0):h!==void 0?t.addEventListener(n,l,{passive:h}):t.addEventListener(n,l,!1)}function Bs(t,n,l,u,h){var g=u;if((n&1)===0&&(n&2)===0&&u!==null)e:for(;;){if(u===null)return;var w=u.tag;if(w===3||w===4){var M=u.stateNode.containerInfo;if(M===h||M.nodeType===8&&M.parentNode===h)break;if(w===4)for(w=u.return;w!==null;){var O=w.tag;if((O===3||O===4)&&(O=w.stateNode.containerInfo,O===h||O.nodeType===8&&O.parentNode===h))return;w=w.return}for(;M!==null;){if(w=Lr(M),w===null)return;if(O=w.tag,O===5||O===6){u=g=w;continue e}M=M.parentNode}}u=u.return}_1(function(){var G=g,oe=Sr(l),se=[];e:{var le=hc.get(t);if(le!==void 0){var pe=Es,me=t;switch(t){case"keypress":if(Ul(l)===0)break e;case"keydown":case"keyup":pe=jf;break;case"focusin":me="focus",pe=Ns;break;case"focusout":me="blur",pe=Ns;break;case"beforeblur":case"afterblur":pe=Ns;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":pe=U1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":pe=mf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":pe=If;break;case cc:case dc:case fc:pe=yf;break;case pc:pe=Mf;break;case"scroll":pe=pf;break;case"wheel":pe=zf;break;case"copy":case"cut":case"paste":pe=Cf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":pe=q1}var ye=(n&4)!==0,dt=!ye&&t==="scroll",U=ye?le!==null?le+"Capture":null:le;ye=[];for(var H=G,q;H!==null;){q=H;var ce=q.stateNode;if(q.tag===5&&ce!==null&&(q=ce,U!==null&&(ce=ji(H,U),ce!=null&&ye.push(qi(H,ce,q)))),dt)break;H=H.return}0<ye.length&&(le=new pe(le,me,null,l,oe),se.push({event:le,listeners:ye}))}}if((n&7)===0){e:{if(le=t==="mouseover"||t==="pointerover",pe=t==="mouseout"||t==="pointerout",le&&l!==Xe&&(me=l.relatedTarget||l.fromElement)&&(Lr(me)||me[$n]))break e;if((pe||le)&&(le=oe.window===oe?oe:(le=oe.ownerDocument)?le.defaultView||le.parentWindow:window,pe?(me=l.relatedTarget||l.toElement,pe=G,me=me?Lr(me):null,me!==null&&(dt=jr(me),me!==dt||me.tag!==5&&me.tag!==6)&&(me=null)):(pe=null,me=G),pe!==me)){if(ye=U1,ce="onMouseLeave",U="onMouseEnter",H="mouse",(t==="pointerout"||t==="pointerover")&&(ye=q1,ce="onPointerLeave",U="onPointerEnter",H="pointer"),dt=pe==null?le:ti(pe),q=me==null?le:ti(me),le=new ye(ce,H+"leave",pe,l,oe),le.target=dt,le.relatedTarget=q,ce=null,Lr(oe)===G&&(ye=new ye(U,H+"enter",me,l,oe),ye.target=q,ye.relatedTarget=dt,ce=ye),dt=ce,pe&&me)t:{for(ye=pe,U=me,H=0,q=ye;q;q=Jr(q))H++;for(q=0,ce=U;ce;ce=Jr(ce))q++;for(;0<H-q;)ye=Jr(ye),H--;for(;0<q-H;)U=Jr(U),q--;for(;H--;){if(ye===U||U!==null&&ye===U.alternate)break t;ye=Jr(ye),U=Jr(U)}ye=null}else ye=null;pe!==null&&vc(se,le,pe,ye,!1),me!==null&&dt!==null&&vc(se,dt,me,ye,!0)}}e:{if(le=G?ti(G):window,pe=le.nodeName&&le.nodeName.toLowerCase(),pe==="select"||pe==="input"&&le.type==="file")var Ce=Bf;else if(X1(le))if(ec)Ce=Wf;else{Ce=Vf;var ke=Hf}else(pe=le.nodeName)&&pe.toLowerCase()==="input"&&(le.type==="checkbox"||le.type==="radio")&&(Ce=Uf);if(Ce&&(Ce=Ce(t,G))){J1(se,Ce,l,oe);break e}ke&&ke(t,le,G),t==="focusout"&&(ke=le._wrapperState)&&ke.controlled&&le.type==="number"&&re(le,"number",le.value)}switch(ke=G?ti(G):window,t){case"focusin":(X1(ke)||ke.contentEditable==="true")&&(Yr=ke,Rs=G,Vi=null);break;case"focusout":Vi=Rs=Yr=null;break;case"mousedown":Ds=!0;break;case"contextmenu":case"mouseup":case"dragend":Ds=!1,ac(se,l,oe);break;case"selectionchange":if(Qf)break;case"keydown":case"keyup":ac(se,l,oe)}var _e;if(Ps)e:{switch(t){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else Kr?K1(t,l)&&(Le="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(Le="onCompositionStart");Le&&(Z1&&l.locale!=="ko"&&(Kr||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&Kr&&(_e=H1()):(ir=oe,Ss="value"in ir?ir.value:ir.textContent,Kr=!0)),ke=Yl(G,Le),0<ke.length&&(Le=new W1(Le,t,null,l,oe),se.push({event:Le,listeners:ke}),_e?Le.data=_e:(_e=Y1(l),_e!==null&&(Le.data=_e)))),(_e=Df?Af(t,l):Ff(t,l))&&(G=Yl(G,"onBeforeInput"),0<G.length&&(oe=new W1("onBeforeInput","beforeinput",null,l,oe),se.push({event:oe,listeners:G}),oe.data=_e))}xc(se,n)})}function qi(t,n,l){return{instance:t,listener:n,currentTarget:l}}function Yl(t,n){for(var l=n+"Capture",u=[];t!==null;){var h=t,g=h.stateNode;h.tag===5&&g!==null&&(h=g,g=ji(t,l),g!=null&&u.unshift(qi(t,g,h)),g=ji(t,n),g!=null&&u.push(qi(t,g,h))),t=t.return}return u}function Jr(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function vc(t,n,l,u,h){for(var g=n._reactName,w=[];l!==null&&l!==u;){var M=l,O=M.alternate,G=M.stateNode;if(O!==null&&O===u)break;M.tag===5&&G!==null&&(M=G,h?(O=ji(l,g),O!=null&&w.unshift(qi(l,O,M))):h||(O=ji(l,g),O!=null&&w.push(qi(l,O,M)))),l=l.return}w.length!==0&&t.push({event:n,listeners:w})}var Xf=/\r\n?/g,Jf=/\u0000|\uFFFD/g;function Cc(t){return(typeof t=="string"?t:""+t).replace(Xf,`
|
|
38
|
+
`).replace(Jf,"")}function Xl(t,n,l){if(n=Cc(n),Cc(t)!==n&&l)throw Error(i(425))}function Jl(){}var Hs=null,Vs=null;function Us(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Ws=typeof setTimeout=="function"?setTimeout:void 0,e4=typeof clearTimeout=="function"?clearTimeout:void 0,wc=typeof Promise=="function"?Promise:void 0,t4=typeof queueMicrotask=="function"?queueMicrotask:typeof wc<"u"?function(t){return wc.resolve(null).then(t).catch(n4)}:Ws;function n4(t){setTimeout(function(){throw t})}function qs(t,n){var l=n,u=0;do{var h=l.nextSibling;if(t.removeChild(l),h&&h.nodeType===8)if(l=h.data,l==="/$"){if(u===0){t.removeChild(h),Di(n);return}u--}else l!=="$"&&l!=="$?"&&l!=="$!"||u++;l=h}while(l);Di(n)}function or(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return t}function kc(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"){if(n===0)return t;n--}else l==="/$"&&n++}t=t.previousSibling}return null}var ei=Math.random().toString(36).slice(2),Nn="__reactFiber$"+ei,Zi="__reactProps$"+ei,$n="__reactContainer$"+ei,Zs="__reactEvents$"+ei,r4="__reactListeners$"+ei,i4="__reactHandles$"+ei;function Lr(t){var n=t[Nn];if(n)return n;for(var l=t.parentNode;l;){if(n=l[$n]||l[Nn]){if(l=n.alternate,n.child!==null||l!==null&&l.child!==null)for(t=kc(t);t!==null;){if(l=t[Nn])return l;t=kc(t)}return n}t=l,l=t.parentNode}return null}function Qi(t){return t=t[Nn]||t[$n],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function ti(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(i(33))}function eo(t){return t[Zi]||null}var Qs=[],ni=-1;function sr(t){return{current:t}}function tt(t){0>ni||(t.current=Qs[ni],Qs[ni]=null,ni--)}function Je(t,n){ni++,Qs[ni]=t.current,t.current=n}var ar={},Lt=sr(ar),Ut=sr(!1),Nr=ar;function ri(t,n){var l=t.type.contextTypes;if(!l)return ar;var u=t.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===n)return u.__reactInternalMemoizedMaskedChildContext;var h={},g;for(g in l)h[g]=n[g];return u&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=n,t.__reactInternalMemoizedMaskedChildContext=h),h}function Wt(t){return t=t.childContextTypes,t!=null}function to(){tt(Ut),tt(Lt)}function _c(t,n,l){if(Lt.current!==ar)throw Error(i(168));Je(Lt,n),Je(Ut,l)}function bc(t,n,l){var u=t.stateNode;if(n=n.childContextTypes,typeof u.getChildContext!="function")return l;u=u.getChildContext();for(var h in u)if(!(h in n))throw Error(i(108,Ne(t)||"Unknown",h));return b({},l,u)}function no(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||ar,Nr=Lt.current,Je(Lt,t),Je(Ut,Ut.current),!0}function Sc(t,n,l){var u=t.stateNode;if(!u)throw Error(i(169));l?(t=bc(t,n,Nr),u.__reactInternalMemoizedMergedChildContext=t,tt(Ut),tt(Lt),Je(Lt,t)):tt(Ut),Je(Ut,l)}var Bn=null,ro=!1,Gs=!1;function Ec(t){Bn===null?Bn=[t]:Bn.push(t)}function l4(t){ro=!0,Ec(t)}function ur(){if(!Gs&&Bn!==null){Gs=!0;var t=0,n=qe;try{var l=Bn;for(qe=1;t<l.length;t++){var u=l[t];do u=u(!0);while(u!==null)}Bn=null,ro=!1}catch(h){throw Bn!==null&&(Bn=Bn.slice(t+1)),L1(xs,ur),h}finally{qe=n,Gs=!1}}return null}var ii=[],li=0,io=null,lo=0,sn=[],an=0,Ir=null,Hn=1,Vn="";function Pr(t,n){ii[li++]=lo,ii[li++]=io,io=t,lo=n}function jc(t,n,l){sn[an++]=Hn,sn[an++]=Vn,sn[an++]=Ir,Ir=t;var u=Hn;t=Vn;var h=32-xn(u)-1;u&=~(1<<h),l+=1;var g=32-xn(n)+h;if(30<g){var w=h-h%5;g=(u&(1<<w)-1).toString(32),u>>=w,h-=w,Hn=1<<32-xn(n)+h|l<<h|u,Vn=g+t}else Hn=1<<g|l<<h|u,Vn=t}function Ks(t){t.return!==null&&(Pr(t,1),jc(t,1,0))}function Ys(t){for(;t===io;)io=ii[--li],ii[li]=null,lo=ii[--li],ii[li]=null;for(;t===Ir;)Ir=sn[--an],sn[an]=null,Vn=sn[--an],sn[an]=null,Hn=sn[--an],sn[an]=null}var en=null,tn=null,nt=!1,vn=null;function Lc(t,n){var l=fn(5,null,null,0);l.elementType="DELETED",l.stateNode=n,l.return=t,n=t.deletions,n===null?(t.deletions=[l],t.flags|=16):n.push(l)}function Nc(t,n){switch(t.tag){case 5:var l=t.type;return n=n.nodeType!==1||l.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(t.stateNode=n,en=t,tn=or(n.firstChild),!0):!1;case 6:return n=t.pendingProps===""||n.nodeType!==3?null:n,n!==null?(t.stateNode=n,en=t,tn=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(l=Ir!==null?{id:Hn,overflow:Vn}:null,t.memoizedState={dehydrated:n,treeContext:l,retryLane:1073741824},l=fn(18,null,null,0),l.stateNode=n,l.return=t,t.child=l,en=t,tn=null,!0):!1;default:return!1}}function Xs(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Js(t){if(nt){var n=tn;if(n){var l=n;if(!Nc(t,n)){if(Xs(t))throw Error(i(418));n=or(l.nextSibling);var u=en;n&&Nc(t,n)?Lc(u,l):(t.flags=t.flags&-4097|2,nt=!1,en=t)}}else{if(Xs(t))throw Error(i(418));t.flags=t.flags&-4097|2,nt=!1,en=t}}}function Ic(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;en=t}function oo(t){if(t!==en)return!1;if(!nt)return Ic(t),nt=!0,!1;var n;if((n=t.tag!==3)&&!(n=t.tag!==5)&&(n=t.type,n=n!=="head"&&n!=="body"&&!Us(t.type,t.memoizedProps)),n&&(n=tn)){if(Xs(t))throw Pc(),Error(i(418));for(;n;)Lc(t,n),n=or(n.nextSibling)}if(Ic(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));e:{for(t=t.nextSibling,n=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"){if(n===0){tn=or(t.nextSibling);break e}n--}else l!=="$"&&l!=="$!"&&l!=="$?"||n++}t=t.nextSibling}tn=null}}else tn=en?or(t.stateNode.nextSibling):null;return!0}function Pc(){for(var t=tn;t;)t=or(t.nextSibling)}function oi(){tn=en=null,nt=!1}function ea(t){vn===null?vn=[t]:vn.push(t)}var o4=F.ReactCurrentBatchConfig;function Gi(t,n,l){if(t=l.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(i(309));var u=l.stateNode}if(!u)throw Error(i(147,t));var h=u,g=""+t;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===g?n.ref:(n=function(w){var M=h.refs;w===null?delete M[g]:M[g]=w},n._stringRef=g,n)}if(typeof t!="string")throw Error(i(284));if(!l._owner)throw Error(i(290,t))}return t}function so(t,n){throw t=Object.prototype.toString.call(n),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t))}function Mc(t){var n=t._init;return n(t._payload)}function Tc(t){function n(U,H){if(t){var q=U.deletions;q===null?(U.deletions=[H],U.flags|=16):q.push(H)}}function l(U,H){if(!t)return null;for(;H!==null;)n(U,H),H=H.sibling;return null}function u(U,H){for(U=new Map;H!==null;)H.key!==null?U.set(H.key,H):U.set(H.index,H),H=H.sibling;return U}function h(U,H){return U=xr(U,H),U.index=0,U.sibling=null,U}function g(U,H,q){return U.index=q,t?(q=U.alternate,q!==null?(q=q.index,q<H?(U.flags|=2,H):q):(U.flags|=2,H)):(U.flags|=1048576,H)}function w(U){return t&&U.alternate===null&&(U.flags|=2),U}function M(U,H,q,ce){return H===null||H.tag!==6?(H=Wa(q,U.mode,ce),H.return=U,H):(H=h(H,q),H.return=U,H)}function O(U,H,q,ce){var Ce=q.type;return Ce===ee?oe(U,H,q.props.children,ce,q.key):H!==null&&(H.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===I&&Mc(Ce)===H.type)?(ce=h(H,q.props),ce.ref=Gi(U,H,q),ce.return=U,ce):(ce=Mo(q.type,q.key,q.props,null,U.mode,ce),ce.ref=Gi(U,H,q),ce.return=U,ce)}function G(U,H,q,ce){return H===null||H.tag!==4||H.stateNode.containerInfo!==q.containerInfo||H.stateNode.implementation!==q.implementation?(H=qa(q,U.mode,ce),H.return=U,H):(H=h(H,q.children||[]),H.return=U,H)}function oe(U,H,q,ce,Ce){return H===null||H.tag!==7?(H=Or(q,U.mode,ce,Ce),H.return=U,H):(H=h(H,q),H.return=U,H)}function se(U,H,q){if(typeof H=="string"&&H!==""||typeof H=="number")return H=Wa(""+H,U.mode,q),H.return=U,H;if(typeof H=="object"&&H!==null){switch(H.$$typeof){case B:return q=Mo(H.type,H.key,H.props,null,U.mode,q),q.ref=Gi(U,null,H),q.return=U,q;case T:return H=qa(H,U.mode,q),H.return=U,H;case I:var ce=H._init;return se(U,ce(H._payload),q)}if(Se(H)||ne(H))return H=Or(H,U.mode,q,null),H.return=U,H;so(U,H)}return null}function le(U,H,q,ce){var Ce=H!==null?H.key:null;if(typeof q=="string"&&q!==""||typeof q=="number")return Ce!==null?null:M(U,H,""+q,ce);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case B:return q.key===Ce?O(U,H,q,ce):null;case T:return q.key===Ce?G(U,H,q,ce):null;case I:return Ce=q._init,le(U,H,Ce(q._payload),ce)}if(Se(q)||ne(q))return Ce!==null?null:oe(U,H,q,ce,null);so(U,q)}return null}function pe(U,H,q,ce,Ce){if(typeof ce=="string"&&ce!==""||typeof ce=="number")return U=U.get(q)||null,M(H,U,""+ce,Ce);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case B:return U=U.get(ce.key===null?q:ce.key)||null,O(H,U,ce,Ce);case T:return U=U.get(ce.key===null?q:ce.key)||null,G(H,U,ce,Ce);case I:var ke=ce._init;return pe(U,H,q,ke(ce._payload),Ce)}if(Se(ce)||ne(ce))return U=U.get(q)||null,oe(H,U,ce,Ce,null);so(H,ce)}return null}function me(U,H,q,ce){for(var Ce=null,ke=null,_e=H,Le=H=0,_t=null;_e!==null&&Le<q.length;Le++){_e.index>Le?(_t=_e,_e=null):_t=_e.sibling;var Ve=le(U,_e,q[Le],ce);if(Ve===null){_e===null&&(_e=_t);break}t&&_e&&Ve.alternate===null&&n(U,_e),H=g(Ve,H,Le),ke===null?Ce=Ve:ke.sibling=Ve,ke=Ve,_e=_t}if(Le===q.length)return l(U,_e),nt&&Pr(U,Le),Ce;if(_e===null){for(;Le<q.length;Le++)_e=se(U,q[Le],ce),_e!==null&&(H=g(_e,H,Le),ke===null?Ce=_e:ke.sibling=_e,ke=_e);return nt&&Pr(U,Le),Ce}for(_e=u(U,_e);Le<q.length;Le++)_t=pe(_e,U,Le,q[Le],ce),_t!==null&&(t&&_t.alternate!==null&&_e.delete(_t.key===null?Le:_t.key),H=g(_t,H,Le),ke===null?Ce=_t:ke.sibling=_t,ke=_t);return t&&_e.forEach(function(yr){return n(U,yr)}),nt&&Pr(U,Le),Ce}function ye(U,H,q,ce){var Ce=ne(q);if(typeof Ce!="function")throw Error(i(150));if(q=Ce.call(q),q==null)throw Error(i(151));for(var ke=Ce=null,_e=H,Le=H=0,_t=null,Ve=q.next();_e!==null&&!Ve.done;Le++,Ve=q.next()){_e.index>Le?(_t=_e,_e=null):_t=_e.sibling;var yr=le(U,_e,Ve.value,ce);if(yr===null){_e===null&&(_e=_t);break}t&&_e&&yr.alternate===null&&n(U,_e),H=g(yr,H,Le),ke===null?Ce=yr:ke.sibling=yr,ke=yr,_e=_t}if(Ve.done)return l(U,_e),nt&&Pr(U,Le),Ce;if(_e===null){for(;!Ve.done;Le++,Ve=q.next())Ve=se(U,Ve.value,ce),Ve!==null&&(H=g(Ve,H,Le),ke===null?Ce=Ve:ke.sibling=Ve,ke=Ve);return nt&&Pr(U,Le),Ce}for(_e=u(U,_e);!Ve.done;Le++,Ve=q.next())Ve=pe(_e,U,Le,Ve.value,ce),Ve!==null&&(t&&Ve.alternate!==null&&_e.delete(Ve.key===null?Le:Ve.key),H=g(Ve,H,Le),ke===null?Ce=Ve:ke.sibling=Ve,ke=Ve);return t&&_e.forEach(function(O4){return n(U,O4)}),nt&&Pr(U,Le),Ce}function dt(U,H,q,ce){if(typeof q=="object"&&q!==null&&q.type===ee&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case B:e:{for(var Ce=q.key,ke=H;ke!==null;){if(ke.key===Ce){if(Ce=q.type,Ce===ee){if(ke.tag===7){l(U,ke.sibling),H=h(ke,q.props.children),H.return=U,U=H;break e}}else if(ke.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===I&&Mc(Ce)===ke.type){l(U,ke.sibling),H=h(ke,q.props),H.ref=Gi(U,ke,q),H.return=U,U=H;break e}l(U,ke);break}else n(U,ke);ke=ke.sibling}q.type===ee?(H=Or(q.props.children,U.mode,ce,q.key),H.return=U,U=H):(ce=Mo(q.type,q.key,q.props,null,U.mode,ce),ce.ref=Gi(U,H,q),ce.return=U,U=ce)}return w(U);case T:e:{for(ke=q.key;H!==null;){if(H.key===ke)if(H.tag===4&&H.stateNode.containerInfo===q.containerInfo&&H.stateNode.implementation===q.implementation){l(U,H.sibling),H=h(H,q.children||[]),H.return=U,U=H;break e}else{l(U,H);break}else n(U,H);H=H.sibling}H=qa(q,U.mode,ce),H.return=U,U=H}return w(U);case I:return ke=q._init,dt(U,H,ke(q._payload),ce)}if(Se(q))return me(U,H,q,ce);if(ne(q))return ye(U,H,q,ce);so(U,q)}return typeof q=="string"&&q!==""||typeof q=="number"?(q=""+q,H!==null&&H.tag===6?(l(U,H.sibling),H=h(H,q),H.return=U,U=H):(l(U,H),H=Wa(q,U.mode,ce),H.return=U,U=H),w(U)):l(U,H)}return dt}var si=Tc(!0),zc=Tc(!1),ao=sr(null),uo=null,ai=null,ta=null;function na(){ta=ai=uo=null}function ra(t){var n=ao.current;tt(ao),t._currentValue=n}function ia(t,n,l){for(;t!==null;){var u=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,u!==null&&(u.childLanes|=n)):u!==null&&(u.childLanes&n)!==n&&(u.childLanes|=n),t===l)break;t=t.return}}function ui(t,n){uo=t,ta=ai=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&n)!==0&&(qt=!0),t.firstContext=null)}function un(t){var n=t._currentValue;if(ta!==t)if(t={context:t,memoizedValue:n,next:null},ai===null){if(uo===null)throw Error(i(308));ai=t,uo.dependencies={lanes:0,firstContext:t}}else ai=ai.next=t;return n}var Mr=null;function la(t){Mr===null?Mr=[t]:Mr.push(t)}function Rc(t,n,l,u){var h=n.interleaved;return h===null?(l.next=l,la(n)):(l.next=h.next,h.next=l),n.interleaved=l,Un(t,u)}function Un(t,n){t.lanes|=n;var l=t.alternate;for(l!==null&&(l.lanes|=n),l=t,t=t.return;t!==null;)t.childLanes|=n,l=t.alternate,l!==null&&(l.childLanes|=n),l=t,t=t.return;return l.tag===3?l.stateNode:null}var cr=!1;function oa(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Dc(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Wn(t,n){return{eventTime:t,lane:n,tag:0,payload:null,callback:null,next:null}}function dr(t,n,l){var u=t.updateQueue;if(u===null)return null;if(u=u.shared,(Be&2)!==0){var h=u.pending;return h===null?n.next=n:(n.next=h.next,h.next=n),u.pending=n,Un(t,l)}return h=u.interleaved,h===null?(n.next=n,la(u)):(n.next=h.next,h.next=n),u.interleaved=n,Un(t,l)}function co(t,n,l){if(n=n.updateQueue,n!==null&&(n=n.shared,(l&4194240)!==0)){var u=n.lanes;u&=t.pendingLanes,l|=u,n.lanes=l,Cs(t,l)}}function Ac(t,n){var l=t.updateQueue,u=t.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var h=null,g=null;if(l=l.firstBaseUpdate,l!==null){do{var w={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};g===null?h=g=w:g=g.next=w,l=l.next}while(l!==null);g===null?h=g=n:g=g.next=n}else h=g=n;l={baseState:u.baseState,firstBaseUpdate:h,lastBaseUpdate:g,shared:u.shared,effects:u.effects},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=n:t.next=n,l.lastBaseUpdate=n}function fo(t,n,l,u){var h=t.updateQueue;cr=!1;var g=h.firstBaseUpdate,w=h.lastBaseUpdate,M=h.shared.pending;if(M!==null){h.shared.pending=null;var O=M,G=O.next;O.next=null,w===null?g=G:w.next=G,w=O;var oe=t.alternate;oe!==null&&(oe=oe.updateQueue,M=oe.lastBaseUpdate,M!==w&&(M===null?oe.firstBaseUpdate=G:M.next=G,oe.lastBaseUpdate=O))}if(g!==null){var se=h.baseState;w=0,oe=G=O=null,M=g;do{var le=M.lane,pe=M.eventTime;if((u&le)===le){oe!==null&&(oe=oe.next={eventTime:pe,lane:0,tag:M.tag,payload:M.payload,callback:M.callback,next:null});e:{var me=t,ye=M;switch(le=n,pe=l,ye.tag){case 1:if(me=ye.payload,typeof me=="function"){se=me.call(pe,se,le);break e}se=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=ye.payload,le=typeof me=="function"?me.call(pe,se,le):me,le==null)break e;se=b({},se,le);break e;case 2:cr=!0}}M.callback!==null&&M.lane!==0&&(t.flags|=64,le=h.effects,le===null?h.effects=[M]:le.push(M))}else pe={eventTime:pe,lane:le,tag:M.tag,payload:M.payload,callback:M.callback,next:null},oe===null?(G=oe=pe,O=se):oe=oe.next=pe,w|=le;if(M=M.next,M===null){if(M=h.shared.pending,M===null)break;le=M,M=le.next,le.next=null,h.lastBaseUpdate=le,h.shared.pending=null}}while(!0);if(oe===null&&(O=se),h.baseState=O,h.firstBaseUpdate=G,h.lastBaseUpdate=oe,n=h.shared.interleaved,n!==null){h=n;do w|=h.lane,h=h.next;while(h!==n)}else g===null&&(h.shared.lanes=0);Rr|=w,t.lanes=w,t.memoizedState=se}}function Fc(t,n,l){if(t=n.effects,n.effects=null,t!==null)for(n=0;n<t.length;n++){var u=t[n],h=u.callback;if(h!==null){if(u.callback=null,u=l,typeof h!="function")throw Error(i(191,h));h.call(u)}}}var Ki={},In=sr(Ki),Yi=sr(Ki),Xi=sr(Ki);function Tr(t){if(t===Ki)throw Error(i(174));return t}function sa(t,n){switch(Je(Xi,n),Je(Yi,t),Je(In,Ki),t=n.nodeType,t){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:ae(null,"");break;default:t=t===8?n.parentNode:n,n=t.namespaceURI||null,t=t.tagName,n=ae(n,t)}tt(In),Je(In,n)}function ci(){tt(In),tt(Yi),tt(Xi)}function Oc(t){Tr(Xi.current);var n=Tr(In.current),l=ae(n,t.type);n!==l&&(Je(Yi,t),Je(In,l))}function aa(t){Yi.current===t&&(tt(In),tt(Yi))}var it=sr(0);function po(t){for(var n=t;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var ua=[];function ca(){for(var t=0;t<ua.length;t++)ua[t]._workInProgressVersionPrimary=null;ua.length=0}var ho=F.ReactCurrentDispatcher,da=F.ReactCurrentBatchConfig,zr=0,lt=null,gt=null,wt=null,mo=!1,Ji=!1,el=0,s4=0;function Nt(){throw Error(i(321))}function fa(t,n){if(n===null)return!1;for(var l=0;l<n.length&&l<t.length;l++)if(!yn(t[l],n[l]))return!1;return!0}function pa(t,n,l,u,h,g){if(zr=g,lt=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,ho.current=t===null||t.memoizedState===null?d4:f4,t=l(u,h),Ji){g=0;do{if(Ji=!1,el=0,25<=g)throw Error(i(301));g+=1,wt=gt=null,n.updateQueue=null,ho.current=p4,t=l(u,h)}while(Ji)}if(ho.current=yo,n=gt!==null&>.next!==null,zr=0,wt=gt=lt=null,mo=!1,n)throw Error(i(300));return t}function ha(){var t=el!==0;return el=0,t}function Pn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wt===null?lt.memoizedState=wt=t:wt=wt.next=t,wt}function cn(){if(gt===null){var t=lt.alternate;t=t!==null?t.memoizedState:null}else t=gt.next;var n=wt===null?lt.memoizedState:wt.next;if(n!==null)wt=n,gt=t;else{if(t===null)throw Error(i(310));gt=t,t={memoizedState:gt.memoizedState,baseState:gt.baseState,baseQueue:gt.baseQueue,queue:gt.queue,next:null},wt===null?lt.memoizedState=wt=t:wt=wt.next=t}return wt}function tl(t,n){return typeof n=="function"?n(t):n}function ma(t){var n=cn(),l=n.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=t;var u=gt,h=u.baseQueue,g=l.pending;if(g!==null){if(h!==null){var w=h.next;h.next=g.next,g.next=w}u.baseQueue=h=g,l.pending=null}if(h!==null){g=h.next,u=u.baseState;var M=w=null,O=null,G=g;do{var oe=G.lane;if((zr&oe)===oe)O!==null&&(O=O.next={lane:0,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),u=G.hasEagerState?G.eagerState:t(u,G.action);else{var se={lane:oe,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null};O===null?(M=O=se,w=u):O=O.next=se,lt.lanes|=oe,Rr|=oe}G=G.next}while(G!==null&&G!==g);O===null?w=u:O.next=M,yn(u,n.memoizedState)||(qt=!0),n.memoizedState=u,n.baseState=w,n.baseQueue=O,l.lastRenderedState=u}if(t=l.interleaved,t!==null){h=t;do g=h.lane,lt.lanes|=g,Rr|=g,h=h.next;while(h!==t)}else h===null&&(l.lanes=0);return[n.memoizedState,l.dispatch]}function ga(t){var n=cn(),l=n.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=t;var u=l.dispatch,h=l.pending,g=n.memoizedState;if(h!==null){l.pending=null;var w=h=h.next;do g=t(g,w.action),w=w.next;while(w!==h);yn(g,n.memoizedState)||(qt=!0),n.memoizedState=g,n.baseQueue===null&&(n.baseState=g),l.lastRenderedState=g}return[g,u]}function $c(){}function Bc(t,n){var l=lt,u=cn(),h=n(),g=!yn(u.memoizedState,h);if(g&&(u.memoizedState=h,qt=!0),u=u.queue,xa(Uc.bind(null,l,u,t),[t]),u.getSnapshot!==n||g||wt!==null&&wt.memoizedState.tag&1){if(l.flags|=2048,nl(9,Vc.bind(null,l,u,h,n),void 0,null),kt===null)throw Error(i(349));(zr&30)!==0||Hc(l,n,h)}return h}function Hc(t,n,l){t.flags|=16384,t={getSnapshot:n,value:l},n=lt.updateQueue,n===null?(n={lastEffect:null,stores:null},lt.updateQueue=n,n.stores=[t]):(l=n.stores,l===null?n.stores=[t]:l.push(t))}function Vc(t,n,l,u){n.value=l,n.getSnapshot=u,Wc(n)&&qc(t)}function Uc(t,n,l){return l(function(){Wc(n)&&qc(t)})}function Wc(t){var n=t.getSnapshot;t=t.value;try{var l=n();return!yn(t,l)}catch{return!0}}function qc(t){var n=Un(t,1);n!==null&&_n(n,t,1,-1)}function Zc(t){var n=Pn();return typeof t=="function"&&(t=t()),n.memoizedState=n.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:t},n.queue=t,t=t.dispatch=c4.bind(null,lt,t),[n.memoizedState,t]}function nl(t,n,l,u){return t={tag:t,create:n,destroy:l,deps:u,next:null},n=lt.updateQueue,n===null?(n={lastEffect:null,stores:null},lt.updateQueue=n,n.lastEffect=t.next=t):(l=n.lastEffect,l===null?n.lastEffect=t.next=t:(u=l.next,l.next=t,t.next=u,n.lastEffect=t)),t}function Qc(){return cn().memoizedState}function go(t,n,l,u){var h=Pn();lt.flags|=t,h.memoizedState=nl(1|n,l,void 0,u===void 0?null:u)}function xo(t,n,l,u){var h=cn();u=u===void 0?null:u;var g=void 0;if(gt!==null){var w=gt.memoizedState;if(g=w.destroy,u!==null&&fa(u,w.deps)){h.memoizedState=nl(n,l,g,u);return}}lt.flags|=t,h.memoizedState=nl(1|n,l,g,u)}function Gc(t,n){return go(8390656,8,t,n)}function xa(t,n){return xo(2048,8,t,n)}function Kc(t,n){return xo(4,2,t,n)}function Yc(t,n){return xo(4,4,t,n)}function Xc(t,n){if(typeof n=="function")return t=t(),n(t),function(){n(null)};if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function Jc(t,n,l){return l=l!=null?l.concat([t]):null,xo(4,4,Xc.bind(null,n,t),l)}function ya(){}function e0(t,n){var l=cn();n=n===void 0?null:n;var u=l.memoizedState;return u!==null&&n!==null&&fa(n,u[1])?u[0]:(l.memoizedState=[t,n],t)}function t0(t,n){var l=cn();n=n===void 0?null:n;var u=l.memoizedState;return u!==null&&n!==null&&fa(n,u[1])?u[0]:(t=t(),l.memoizedState=[t,n],t)}function n0(t,n,l){return(zr&21)===0?(t.baseState&&(t.baseState=!1,qt=!0),t.memoizedState=l):(yn(l,n)||(l=M1(),lt.lanes|=l,Rr|=l,t.baseState=!0),n)}function a4(t,n){var l=qe;qe=l!==0&&4>l?l:4,t(!0);var u=da.transition;da.transition={};try{t(!1),n()}finally{qe=l,da.transition=u}}function r0(){return cn().memoizedState}function u4(t,n,l){var u=mr(t);if(l={lane:u,action:l,hasEagerState:!1,eagerState:null,next:null},i0(t))l0(n,l);else if(l=Rc(t,n,l,u),l!==null){var h=Bt();_n(l,t,u,h),o0(l,n,u)}}function c4(t,n,l){var u=mr(t),h={lane:u,action:l,hasEagerState:!1,eagerState:null,next:null};if(i0(t))l0(n,h);else{var g=t.alternate;if(t.lanes===0&&(g===null||g.lanes===0)&&(g=n.lastRenderedReducer,g!==null))try{var w=n.lastRenderedState,M=g(w,l);if(h.hasEagerState=!0,h.eagerState=M,yn(M,w)){var O=n.interleaved;O===null?(h.next=h,la(n)):(h.next=O.next,O.next=h),n.interleaved=h;return}}catch{}finally{}l=Rc(t,n,h,u),l!==null&&(h=Bt(),_n(l,t,u,h),o0(l,n,u))}}function i0(t){var n=t.alternate;return t===lt||n!==null&&n===lt}function l0(t,n){Ji=mo=!0;var l=t.pending;l===null?n.next=n:(n.next=l.next,l.next=n),t.pending=n}function o0(t,n,l){if((l&4194240)!==0){var u=n.lanes;u&=t.pendingLanes,l|=u,n.lanes=l,Cs(t,l)}}var yo={readContext:un,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useInsertionEffect:Nt,useLayoutEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useMutableSource:Nt,useSyncExternalStore:Nt,useId:Nt,unstable_isNewReconciler:!1},d4={readContext:un,useCallback:function(t,n){return Pn().memoizedState=[t,n===void 0?null:n],t},useContext:un,useEffect:Gc,useImperativeHandle:function(t,n,l){return l=l!=null?l.concat([t]):null,go(4194308,4,Xc.bind(null,n,t),l)},useLayoutEffect:function(t,n){return go(4194308,4,t,n)},useInsertionEffect:function(t,n){return go(4,2,t,n)},useMemo:function(t,n){var l=Pn();return n=n===void 0?null:n,t=t(),l.memoizedState=[t,n],t},useReducer:function(t,n,l){var u=Pn();return n=l!==void 0?l(n):n,u.memoizedState=u.baseState=n,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},u.queue=t,t=t.dispatch=u4.bind(null,lt,t),[u.memoizedState,t]},useRef:function(t){var n=Pn();return t={current:t},n.memoizedState=t},useState:Zc,useDebugValue:ya,useDeferredValue:function(t){return Pn().memoizedState=t},useTransition:function(){var t=Zc(!1),n=t[0];return t=a4.bind(null,t[1]),Pn().memoizedState=t,[n,t]},useMutableSource:function(){},useSyncExternalStore:function(t,n,l){var u=lt,h=Pn();if(nt){if(l===void 0)throw Error(i(407));l=l()}else{if(l=n(),kt===null)throw Error(i(349));(zr&30)!==0||Hc(u,n,l)}h.memoizedState=l;var g={value:l,getSnapshot:n};return h.queue=g,Gc(Uc.bind(null,u,g,t),[t]),u.flags|=2048,nl(9,Vc.bind(null,u,g,l,n),void 0,null),l},useId:function(){var t=Pn(),n=kt.identifierPrefix;if(nt){var l=Vn,u=Hn;l=(u&~(1<<32-xn(u)-1)).toString(32)+l,n=":"+n+"R"+l,l=el++,0<l&&(n+="H"+l.toString(32)),n+=":"}else l=s4++,n=":"+n+"r"+l.toString(32)+":";return t.memoizedState=n},unstable_isNewReconciler:!1},f4={readContext:un,useCallback:e0,useContext:un,useEffect:xa,useImperativeHandle:Jc,useInsertionEffect:Kc,useLayoutEffect:Yc,useMemo:t0,useReducer:ma,useRef:Qc,useState:function(){return ma(tl)},useDebugValue:ya,useDeferredValue:function(t){var n=cn();return n0(n,gt.memoizedState,t)},useTransition:function(){var t=ma(tl)[0],n=cn().memoizedState;return[t,n]},useMutableSource:$c,useSyncExternalStore:Bc,useId:r0,unstable_isNewReconciler:!1},p4={readContext:un,useCallback:e0,useContext:un,useEffect:xa,useImperativeHandle:Jc,useInsertionEffect:Kc,useLayoutEffect:Yc,useMemo:t0,useReducer:ga,useRef:Qc,useState:function(){return ga(tl)},useDebugValue:ya,useDeferredValue:function(t){var n=cn();return gt===null?n.memoizedState=t:n0(n,gt.memoizedState,t)},useTransition:function(){var t=ga(tl)[0],n=cn().memoizedState;return[t,n]},useMutableSource:$c,useSyncExternalStore:Bc,useId:r0,unstable_isNewReconciler:!1};function Cn(t,n){if(t&&t.defaultProps){n=b({},n),t=t.defaultProps;for(var l in t)n[l]===void 0&&(n[l]=t[l]);return n}return n}function va(t,n,l,u){n=t.memoizedState,l=l(u,n),l=l==null?n:b({},n,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var vo={isMounted:function(t){return(t=t._reactInternals)?jr(t)===t:!1},enqueueSetState:function(t,n,l){t=t._reactInternals;var u=Bt(),h=mr(t),g=Wn(u,h);g.payload=n,l!=null&&(g.callback=l),n=dr(t,g,h),n!==null&&(_n(n,t,h,u),co(n,t,h))},enqueueReplaceState:function(t,n,l){t=t._reactInternals;var u=Bt(),h=mr(t),g=Wn(u,h);g.tag=1,g.payload=n,l!=null&&(g.callback=l),n=dr(t,g,h),n!==null&&(_n(n,t,h,u),co(n,t,h))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var l=Bt(),u=mr(t),h=Wn(l,u);h.tag=2,n!=null&&(h.callback=n),n=dr(t,h,u),n!==null&&(_n(n,t,u,l),co(n,t,u))}};function s0(t,n,l,u,h,g,w){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(u,g,w):n.prototype&&n.prototype.isPureReactComponent?!Hi(l,u)||!Hi(h,g):!0}function a0(t,n,l){var u=!1,h=ar,g=n.contextType;return typeof g=="object"&&g!==null?g=un(g):(h=Wt(n)?Nr:Lt.current,u=n.contextTypes,g=(u=u!=null)?ri(t,h):ar),n=new n(l,g),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=vo,t.stateNode=n,n._reactInternals=t,u&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=h,t.__reactInternalMemoizedMaskedChildContext=g),n}function u0(t,n,l,u){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(l,u),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(l,u),n.state!==t&&vo.enqueueReplaceState(n,n.state,null)}function Ca(t,n,l,u){var h=t.stateNode;h.props=l,h.state=t.memoizedState,h.refs={},oa(t);var g=n.contextType;typeof g=="object"&&g!==null?h.context=un(g):(g=Wt(n)?Nr:Lt.current,h.context=ri(t,g)),h.state=t.memoizedState,g=n.getDerivedStateFromProps,typeof g=="function"&&(va(t,n,g,l),h.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(n=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),n!==h.state&&vo.enqueueReplaceState(h,h.state,null),fo(t,l,h,u),h.state=t.memoizedState),typeof h.componentDidMount=="function"&&(t.flags|=4194308)}function di(t,n){try{var l="",u=n;do l+=ve(u),u=u.return;while(u);var h=l}catch(g){h=`
|
|
39
39
|
Error generating stack: `+g.message+`
|
|
40
|
-
`+g.stack}return{value:t,source:n,stack:h,digest:null}}function Ca(t,n,l){return{value:t,source:null,stack:l??null,digest:n??null}}function wa(t,n){try{console.error(n.value)}catch(l){setTimeout(function(){throw l})}}var c4=typeof WeakMap=="function"?WeakMap:Map;function s0(t,n,l){l=Un(-1,l),l.tag=3,l.payload={element:null};var a=n.value;return l.callback=function(){bo||(bo=!0,Ra=a),wa(t,n)},l}function a0(t,n,l){l=Un(-1,l),l.tag=3;var a=t.type.getDerivedStateFromError;if(typeof a=="function"){var h=n.value;l.payload=function(){return a(h)},l.callback=function(){wa(t,n)}}var g=t.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(l.callback=function(){wa(t,n),typeof a!="function"&&(cr===null?cr=new Set([this]):cr.add(this));var w=n.stack;this.componentDidCatch(n.value,{componentStack:w!==null?w:""})}),l}function u0(t,n,l){var a=t.pingCache;if(a===null){a=t.pingCache=new c4;var h=new Set;a.set(n,h)}else h=a.get(n),h===void 0&&(h=new Set,a.set(n,h));h.has(l)||(h.add(l),t=S4.bind(null,t,n,l),n.then(t,t))}function c0(t){do{var n;if((n=t.tag===13)&&(n=t.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return t;t=t.return}while(t!==null);return null}function d0(t,n,l,a,h){return(t.mode&1)===0?(t===n?t.flags|=65536:(t.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(n=Un(-1,1),n.tag=2,ar(l,n,1))),l.lanes|=1),t):(t.flags|=65536,t.lanes=h,t)}var d4=$.ReactCurrentOwner,qt=!1;function $t(t,n,l,a){n.child=t===null?Pc(n,null,l,a):oi(n,t.child,l,a)}function f0(t,n,l,a,h){l=l.render;var g=n.ref;return ai(n,h),a=fa(t,n,l,a,g,h),l=pa(),t!==null&&!qt?(n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~h,Wn(t,n,h)):(nt&&l&&Gs(n),n.flags|=1,$t(t,n,a,h),n.child)}function p0(t,n,l,a,h){if(t===null){var g=l.type;return typeof g=="function"&&!Va(g)&&g.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(n.tag=15,n.type=g,h0(t,n,g,a,h)):(t=Po(l.type,null,a,n,n.mode,h),t.ref=n.ref,t.return=n,n.child=t)}if(g=t.child,(t.lanes&h)===0){var w=g.memoizedProps;if(l=l.compare,l=l!==null?l:Bi,l(w,a)&&t.ref===n.ref)return Wn(t,n,h)}return n.flags|=1,t=hr(g,a),t.ref=n.ref,t.return=n,n.child=t}function h0(t,n,l,a,h){if(t!==null){var g=t.memoizedProps;if(Bi(g,a)&&t.ref===n.ref)if(qt=!1,n.pendingProps=a=g,(t.lanes&h)!==0)(t.flags&131072)!==0&&(qt=!0);else return n.lanes=t.lanes,Wn(t,n,h)}return ka(t,n,l,a,h)}function m0(t,n,l){var a=n.pendingProps,h=a.children,g=t!==null?t.memoizedState:null;if(a.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Je(fi,tn),tn|=l;else{if((l&1073741824)===0)return t=g!==null?g.baseLanes|l:l,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:t,cachePool:null,transitions:null},n.updateQueue=null,Je(fi,tn),tn|=t,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=g!==null?g.baseLanes:l,Je(fi,tn),tn|=a}else g!==null?(a=g.baseLanes|l,n.memoizedState=null):a=l,Je(fi,tn),tn|=a;return $t(t,n,h,l),n.child}function g0(t,n){var l=n.ref;(t===null&&l!==null||t!==null&&t.ref!==l)&&(n.flags|=512,n.flags|=2097152)}function ka(t,n,l,a,h){var g=Wt(l)?jr:Lt.current;return g=ni(n,g),ai(n,h),l=fa(t,n,l,a,g,h),a=pa(),t!==null&&!qt?(n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~h,Wn(t,n,h)):(nt&&a&&Gs(n),n.flags|=1,$t(t,n,l,h),n.child)}function x0(t,n,l,a,h){if(Wt(l)){var g=!0;to(n)}else g=!1;if(ai(n,h),n.stateNode===null)Co(t,n),l0(n,l,a),va(n,l,a,h),a=!0;else if(t===null){var w=n.stateNode,M=n.memoizedProps;w.props=M;var F=w.context,G=l.contextType;typeof G=="object"&&G!==null?G=an(G):(G=Wt(l)?jr:Lt.current,G=ni(n,G));var oe=l.getDerivedStateFromProps,se=typeof oe=="function"||typeof w.getSnapshotBeforeUpdate=="function";se||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(M!==a||F!==G)&&o0(n,w,a,G),sr=!1;var le=n.memoizedState;w.state=le,co(n,a,w,h),F=n.memoizedState,M!==a||le!==F||Ut.current||sr?(typeof oe=="function"&&(ya(n,l,oe,a),F=n.memoizedState),(M=sr||i0(n,l,M,a,le,F,G))?(se||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(n.flags|=4194308)):(typeof w.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=a,n.memoizedState=F),w.props=a,w.state=F,w.context=G,a=M):(typeof w.componentDidMount=="function"&&(n.flags|=4194308),a=!1)}else{w=n.stateNode,Tc(t,n),M=n.memoizedProps,G=n.type===n.elementType?M:Cn(n.type,M),w.props=G,se=n.pendingProps,le=w.context,F=l.contextType,typeof F=="object"&&F!==null?F=an(F):(F=Wt(l)?jr:Lt.current,F=ni(n,F));var pe=l.getDerivedStateFromProps;(oe=typeof pe=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(M!==se||le!==F)&&o0(n,w,a,F),sr=!1,le=n.memoizedState,w.state=le,co(n,a,w,h);var me=n.memoizedState;M!==se||le!==me||Ut.current||sr?(typeof pe=="function"&&(ya(n,l,pe,a),me=n.memoizedState),(G=sr||i0(n,l,G,a,le,me,F)||!1)?(oe||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(a,me,F),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(a,me,F)),typeof w.componentDidUpdate=="function"&&(n.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof w.componentDidUpdate!="function"||M===t.memoizedProps&&le===t.memoizedState||(n.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||M===t.memoizedProps&&le===t.memoizedState||(n.flags|=1024),n.memoizedProps=a,n.memoizedState=me),w.props=a,w.state=me,w.context=F,a=G):(typeof w.componentDidUpdate!="function"||M===t.memoizedProps&&le===t.memoizedState||(n.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||M===t.memoizedProps&&le===t.memoizedState||(n.flags|=1024),a=!1)}return _a(t,n,l,a,g,h)}function _a(t,n,l,a,h,g){g0(t,n);var w=(n.flags&128)!==0;if(!a&&!w)return h&&kc(n,l,!1),Wn(t,n,g);a=n.stateNode,d4.current=n;var M=w&&typeof l.getDerivedStateFromError!="function"?null:a.render();return n.flags|=1,t!==null&&w?(n.child=oi(n,t.child,null,g),n.child=oi(n,null,M,g)):$t(t,n,M,g),n.memoizedState=a.state,h&&kc(n,l,!0),n.child}function y0(t){var n=t.stateNode;n.pendingContext?Cc(t,n.pendingContext,n.pendingContext!==n.context):n.context&&Cc(t,n.context,!1),oa(t,n.containerInfo)}function v0(t,n,l,a,h){return li(),Js(h),n.flags|=256,$t(t,n,l,a),n.child}var Sa={dehydrated:null,treeContext:null,retryLane:0};function ba(t){return{baseLanes:t,cachePool:null,transitions:null}}function C0(t,n,l){var a=n.pendingProps,h=it.current,g=!1,w=(n.flags&128)!==0,M;if((M=w)||(M=t!==null&&t.memoizedState===null?!1:(h&2)!==0),M?(g=!0,n.flags&=-129):(t===null||t.memoizedState!==null)&&(h|=1),Je(it,h&1),t===null)return Xs(n),t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((n.mode&1)===0?n.lanes=1:t.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(w=a.children,t=a.fallback,g?(a=n.mode,g=n.child,w={mode:"hidden",children:w},(a&1)===0&&g!==null?(g.childLanes=0,g.pendingProps=w):g=Mo(w,a,0,null),t=Ar(t,a,l,null),g.return=n,t.return=n,g.sibling=t,n.child=g,n.child.memoizedState=ba(l),n.memoizedState=Sa,t):Ea(n,w));if(h=t.memoizedState,h!==null&&(M=h.dehydrated,M!==null))return f4(t,n,w,a,M,h,l);if(g){g=a.fallback,w=n.mode,h=t.child,M=h.sibling;var F={mode:"hidden",children:a.children};return(w&1)===0&&n.child!==h?(a=n.child,a.childLanes=0,a.pendingProps=F,n.deletions=null):(a=hr(h,F),a.subtreeFlags=h.subtreeFlags&14680064),M!==null?g=hr(M,g):(g=Ar(g,w,l,null),g.flags|=2),g.return=n,a.return=n,a.sibling=g,n.child=a,a=g,g=n.child,w=t.child.memoizedState,w=w===null?ba(l):{baseLanes:w.baseLanes|l,cachePool:null,transitions:w.transitions},g.memoizedState=w,g.childLanes=t.childLanes&~l,n.memoizedState=Sa,a}return g=t.child,t=g.sibling,a=hr(g,{mode:"visible",children:a.children}),(n.mode&1)===0&&(a.lanes=l),a.return=n,a.sibling=null,t!==null&&(l=n.deletions,l===null?(n.deletions=[t],n.flags|=16):l.push(t)),n.child=a,n.memoizedState=null,a}function Ea(t,n){return n=Mo({mode:"visible",children:n},t.mode,0,null),n.return=t,t.child=n}function vo(t,n,l,a){return a!==null&&Js(a),oi(n,t.child,null,l),t=Ea(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function f4(t,n,l,a,h,g,w){if(l)return n.flags&256?(n.flags&=-257,a=Ca(Error(i(422))),vo(t,n,w,a)):n.memoizedState!==null?(n.child=t.child,n.flags|=128,null):(g=a.fallback,h=n.mode,a=Mo({mode:"visible",children:a.children},h,0,null),g=Ar(g,h,w,null),g.flags|=2,a.return=n,g.return=n,a.sibling=g,n.child=a,(n.mode&1)!==0&&oi(n,t.child,null,w),n.child.memoizedState=ba(w),n.memoizedState=Sa,g);if((n.mode&1)===0)return vo(t,n,w,null);if(h.data==="$!"){if(a=h.nextSibling&&h.nextSibling.dataset,a)var M=a.dgst;return a=M,g=Error(i(419)),a=Ca(g,a,void 0),vo(t,n,w,a)}if(M=(w&t.childLanes)!==0,qt||M){if(a=kt,a!==null){switch(w&-w){case 4:h=2;break;case 16:h=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:h=32;break;case 536870912:h=268435456;break;default:h=0}h=(h&(a.suspendedLanes|w))!==0?0:h,h!==0&&h!==g.retryLane&&(g.retryLane=h,Vn(t,h),_n(a,t,h,-1))}return Ha(),a=Ca(Error(i(421))),vo(t,n,w,a)}return h.data==="$?"?(n.flags|=128,n.child=t.child,n=b4.bind(null,t),h._reactRetry=n,null):(t=g.treeContext,en=rr(h.nextSibling),Jt=n,nt=!0,vn=null,t!==null&&(on[sn++]=Bn,on[sn++]=Hn,on[sn++]=Lr,Bn=t.id,Hn=t.overflow,Lr=n),n=Ea(n,a.children),n.flags|=4096,n)}function w0(t,n,l){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n),ra(t.return,n,l)}function ja(t,n,l,a,h){var g=t.memoizedState;g===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:h}:(g.isBackwards=n,g.rendering=null,g.renderingStartTime=0,g.last=a,g.tail=l,g.tailMode=h)}function k0(t,n,l){var a=n.pendingProps,h=a.revealOrder,g=a.tail;if($t(t,n,a.children,l),a=it.current,(a&2)!==0)a=a&1|2,n.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&w0(t,l,n);else if(t.tag===19)w0(t,l,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}a&=1}if(Je(it,a),(n.mode&1)===0)n.memoizedState=null;else switch(h){case"forwards":for(l=n.child,h=null;l!==null;)t=l.alternate,t!==null&&fo(t)===null&&(h=l),l=l.sibling;l=h,l===null?(h=n.child,n.child=null):(h=l.sibling,l.sibling=null),ja(n,!1,h,l,g);break;case"backwards":for(l=null,h=n.child,n.child=null;h!==null;){if(t=h.alternate,t!==null&&fo(t)===null){n.child=h;break}t=h.sibling,h.sibling=l,l=h,h=t}ja(n,!0,l,null,g);break;case"together":ja(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Co(t,n){(n.mode&1)===0&&t!==null&&(t.alternate=null,n.alternate=null,n.flags|=2)}function Wn(t,n,l){if(t!==null&&(n.dependencies=t.dependencies),Tr|=n.lanes,(l&n.childLanes)===0)return null;if(t!==null&&n.child!==t.child)throw Error(i(153));if(n.child!==null){for(t=n.child,l=hr(t,t.pendingProps),n.child=l,l.return=n;t.sibling!==null;)t=t.sibling,l=l.sibling=hr(t,t.pendingProps),l.return=n;l.sibling=null}return n.child}function p4(t,n,l){switch(n.tag){case 3:y0(n),li();break;case 5:Rc(n);break;case 1:Wt(n.type)&&to(n);break;case 4:oa(n,n.stateNode.containerInfo);break;case 10:var a=n.type._context,h=n.memoizedProps.value;Je(so,a._currentValue),a._currentValue=h;break;case 13:if(a=n.memoizedState,a!==null)return a.dehydrated!==null?(Je(it,it.current&1),n.flags|=128,null):(l&n.child.childLanes)!==0?C0(t,n,l):(Je(it,it.current&1),t=Wn(t,n,l),t!==null?t.sibling:null);Je(it,it.current&1);break;case 19:if(a=(l&n.childLanes)!==0,(t.flags&128)!==0){if(a)return k0(t,n,l);n.flags|=128}if(h=n.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),Je(it,it.current),a)break;return null;case 22:case 23:return n.lanes=0,m0(t,n,l)}return Wn(t,n,l)}var _0,La,S0,b0;_0=function(t,n){for(var l=n.child;l!==null;){if(l.tag===5||l.tag===6)t.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)break;for(;l.sibling===null;){if(l.return===null||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},La=function(){},S0=function(t,n,l,a){var h=t.memoizedProps;if(h!==a){t=n.stateNode,Pr(In.current);var g=null;switch(l){case"input":h=Rt(t,h),a=Rt(t,a),g=[];break;case"select":h=S({},h,{value:void 0}),a=S({},a,{value:void 0}),g=[];break;case"textarea":h=xe(t,h),a=xe(t,a),g=[];break;default:typeof h.onClick!="function"&&typeof a.onClick=="function"&&(t.onclick=Xl)}Qe(l,a);var w;l=null;for(G in h)if(!a.hasOwnProperty(G)&&h.hasOwnProperty(G)&&h[G]!=null)if(G==="style"){var M=h[G];for(w in M)M.hasOwnProperty(w)&&(l||(l={}),l[w]="")}else G!=="dangerouslySetInnerHTML"&&G!=="children"&&G!=="suppressContentEditableWarning"&&G!=="suppressHydrationWarning"&&G!=="autoFocus"&&(s.hasOwnProperty(G)?g||(g=[]):(g=g||[]).push(G,null));for(G in a){var F=a[G];if(M=h!=null?h[G]:void 0,a.hasOwnProperty(G)&&F!==M&&(F!=null||M!=null))if(G==="style")if(M){for(w in M)!M.hasOwnProperty(w)||F&&F.hasOwnProperty(w)||(l||(l={}),l[w]="");for(w in F)F.hasOwnProperty(w)&&M[w]!==F[w]&&(l||(l={}),l[w]=F[w])}else l||(g||(g=[]),g.push(G,l)),l=F;else G==="dangerouslySetInnerHTML"?(F=F?F.__html:void 0,M=M?M.__html:void 0,F!=null&&M!==F&&(g=g||[]).push(G,F)):G==="children"?typeof F!="string"&&typeof F!="number"||(g=g||[]).push(G,""+F):G!=="suppressContentEditableWarning"&&G!=="suppressHydrationWarning"&&(s.hasOwnProperty(G)?(F!=null&&G==="onScroll"&&et("scroll",t),g||M===F||(g=[])):(g=g||[]).push(G,F))}l&&(g=g||[]).push("style",l);var G=g;(n.updateQueue=G)&&(n.flags|=4)}},b0=function(t,n,l,a){l!==a&&(n.flags|=4)};function nl(t,n){if(!nt)switch(t.tailMode){case"hidden":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function It(t){var n=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(n)for(var h=t.child;h!==null;)l|=h.lanes|h.childLanes,a|=h.subtreeFlags&14680064,a|=h.flags&14680064,h.return=t,h=h.sibling;else for(h=t.child;h!==null;)l|=h.lanes|h.childLanes,a|=h.subtreeFlags,a|=h.flags,h.return=t,h=h.sibling;return t.subtreeFlags|=a,t.childLanes=l,n}function h4(t,n,l){var a=n.pendingProps;switch(Ks(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return It(n),null;case 1:return Wt(n.type)&&eo(),It(n),null;case 3:return a=n.stateNode,ui(),tt(Ut),tt(Lt),ua(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(lo(n)?n.flags|=4:t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,vn!==null&&(Oa(vn),vn=null))),La(t,n),It(n),null;case 5:sa(n);var h=Pr(Yi.current);if(l=n.type,t!==null&&n.stateNode!=null)S0(t,n,l,a,h),t.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!a){if(n.stateNode===null)throw Error(i(166));return It(n),null}if(t=Pr(In.current),lo(n)){a=n.stateNode,l=n.type;var g=n.memoizedProps;switch(a[Nn]=n,a[qi]=g,t=(n.mode&1)!==0,l){case"dialog":et("cancel",a),et("close",a);break;case"iframe":case"object":case"embed":et("load",a);break;case"video":case"audio":for(h=0;h<Vi.length;h++)et(Vi[h],a);break;case"source":et("error",a);break;case"img":case"image":case"link":et("error",a),et("load",a);break;case"details":et("toggle",a);break;case"input":At(a,g),et("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!g.multiple},et("invalid",a);break;case"textarea":Me(a,g),et("invalid",a)}Qe(l,g),h=null;for(var w in g)if(g.hasOwnProperty(w)){var M=g[w];w==="children"?typeof M=="string"?a.textContent!==M&&(g.suppressHydrationWarning!==!0&&Yl(a.textContent,M,t),h=["children",M]):typeof M=="number"&&a.textContent!==""+M&&(g.suppressHydrationWarning!==!0&&Yl(a.textContent,M,t),h=["children",""+M]):s.hasOwnProperty(w)&&M!=null&&w==="onScroll"&&et("scroll",a)}switch(l){case"input":Oe(a),gn(a,g,!0);break;case"textarea":Oe(a),He(a);break;case"select":case"option":break;default:typeof g.onClick=="function"&&(a.onclick=Xl)}a=h,n.updateQueue=a,a!==null&&(n.flags|=4)}else{w=h.nodeType===9?h:h.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=X(l)),t==="http://www.w3.org/1999/xhtml"?l==="script"?(t=w.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof a.is=="string"?t=w.createElement(l,{is:a.is}):(t=w.createElement(l),l==="select"&&(w=t,a.multiple?w.multiple=!0:a.size&&(w.size=a.size))):t=w.createElementNS(t,l),t[Nn]=n,t[qi]=a,_0(t,n,!1,!1),n.stateNode=t;e:{switch(w=Ot(l,a),l){case"dialog":et("cancel",t),et("close",t),h=a;break;case"iframe":case"object":case"embed":et("load",t),h=a;break;case"video":case"audio":for(h=0;h<Vi.length;h++)et(Vi[h],t);h=a;break;case"source":et("error",t),h=a;break;case"img":case"image":case"link":et("error",t),et("load",t),h=a;break;case"details":et("toggle",t),h=a;break;case"input":At(t,a),h=Rt(t,a),et("invalid",t);break;case"option":h=a;break;case"select":t._wrapperState={wasMultiple:!!a.multiple},h=S({},a,{value:void 0}),et("invalid",t);break;case"textarea":Me(t,a),h=xe(t,a),et("invalid",t);break;default:h=a}Qe(l,h),M=h;for(g in M)if(M.hasOwnProperty(g)){var F=M[g];g==="style"?Te(t,F):g==="dangerouslySetInnerHTML"?(F=F?F.__html:void 0,F!=null&&je(t,F)):g==="children"?typeof F=="string"?(l!=="textarea"||F!=="")&&Re(t,F):typeof F=="number"&&Re(t,""+F):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(s.hasOwnProperty(g)?F!=null&&g==="onScroll"&&et("scroll",t):F!=null&&b(t,g,F,w))}switch(l){case"input":Oe(t),gn(t,a,!1);break;case"textarea":Oe(t),He(t);break;case"option":a.value!=null&&t.setAttribute("value",""+Ee(a.value));break;case"select":t.multiple=!!a.multiple,g=a.value,g!=null?Q(t,!!a.multiple,g,!1):a.defaultValue!=null&&Q(t,!!a.multiple,a.defaultValue,!0);break;default:typeof h.onClick=="function"&&(t.onclick=Xl)}switch(l){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return It(n),null;case 6:if(t&&n.stateNode!=null)b0(t,n,t.memoizedProps,a);else{if(typeof a!="string"&&n.stateNode===null)throw Error(i(166));if(l=Pr(Yi.current),Pr(In.current),lo(n)){if(a=n.stateNode,l=n.memoizedProps,a[Nn]=n,(g=a.nodeValue!==l)&&(t=Jt,t!==null))switch(t.tag){case 3:Yl(a.nodeValue,l,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Yl(a.nodeValue,l,(t.mode&1)!==0)}g&&(n.flags|=4)}else a=(l.nodeType===9?l:l.ownerDocument).createTextNode(a),a[Nn]=n,n.stateNode=a}return It(n),null;case 13:if(tt(it),a=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(nt&&en!==null&&(n.mode&1)!==0&&(n.flags&128)===0)Lc(),li(),n.flags|=98560,g=!1;else if(g=lo(n),a!==null&&a.dehydrated!==null){if(t===null){if(!g)throw Error(i(318));if(g=n.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(i(317));g[Nn]=n}else li(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;It(n),g=!1}else vn!==null&&(Oa(vn),vn=null),g=!0;if(!g)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=l,n):(a=a!==null,a!==(t!==null&&t.memoizedState!==null)&&a&&(n.child.flags|=8192,(n.mode&1)!==0&&(t===null||(it.current&1)!==0?xt===0&&(xt=3):Ha())),n.updateQueue!==null&&(n.flags|=4),It(n),null);case 4:return ui(),La(t,n),t===null&&Ui(n.stateNode.containerInfo),It(n),null;case 10:return na(n.type._context),It(n),null;case 17:return Wt(n.type)&&eo(),It(n),null;case 19:if(tt(it),g=n.memoizedState,g===null)return It(n),null;if(a=(n.flags&128)!==0,w=g.rendering,w===null)if(a)nl(g,!1);else{if(xt!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(w=fo(t),w!==null){for(n.flags|=128,nl(g,!1),a=w.updateQueue,a!==null&&(n.updateQueue=a,n.flags|=4),n.subtreeFlags=0,a=l,l=n.child;l!==null;)g=l,t=a,g.flags&=14680066,w=g.alternate,w===null?(g.childLanes=0,g.lanes=t,g.child=null,g.subtreeFlags=0,g.memoizedProps=null,g.memoizedState=null,g.updateQueue=null,g.dependencies=null,g.stateNode=null):(g.childLanes=w.childLanes,g.lanes=w.lanes,g.child=w.child,g.subtreeFlags=0,g.deletions=null,g.memoizedProps=w.memoizedProps,g.memoizedState=w.memoizedState,g.updateQueue=w.updateQueue,g.type=w.type,t=w.dependencies,g.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),l=l.sibling;return Je(it,it.current&1|2),n.child}t=t.sibling}g.tail!==null&&ct()>pi&&(n.flags|=128,a=!0,nl(g,!1),n.lanes=4194304)}else{if(!a)if(t=fo(w),t!==null){if(n.flags|=128,a=!0,l=t.updateQueue,l!==null&&(n.updateQueue=l,n.flags|=4),nl(g,!0),g.tail===null&&g.tailMode==="hidden"&&!w.alternate&&!nt)return It(n),null}else 2*ct()-g.renderingStartTime>pi&&l!==1073741824&&(n.flags|=128,a=!0,nl(g,!1),n.lanes=4194304);g.isBackwards?(w.sibling=n.child,n.child=w):(l=g.last,l!==null?l.sibling=w:n.child=w,g.last=w)}return g.tail!==null?(n=g.tail,g.rendering=n,g.tail=n.sibling,g.renderingStartTime=ct(),n.sibling=null,l=it.current,Je(it,a?l&1|2:l&1),n):(It(n),null);case 22:case 23:return Ba(),a=n.memoizedState!==null,t!==null&&t.memoizedState!==null!==a&&(n.flags|=8192),a&&(n.mode&1)!==0?(tn&1073741824)!==0&&(It(n),n.subtreeFlags&6&&(n.flags|=8192)):It(n),null;case 24:return null;case 25:return null}throw Error(i(156,n.tag))}function m4(t,n){switch(Ks(n),n.tag){case 1:return Wt(n.type)&&eo(),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return ui(),tt(Ut),tt(Lt),ua(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 5:return sa(n),null;case 13:if(tt(it),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(i(340));li()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return tt(it),null;case 4:return ui(),null;case 10:return na(n.type._context),null;case 22:case 23:return Ba(),null;case 24:return null;default:return null}}var wo=!1,Pt=!1,g4=typeof WeakSet=="function"?WeakSet:Set,he=null;function di(t,n){var l=t.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(a){at(t,n,a)}else l.current=null}function Na(t,n,l){try{l()}catch(a){at(t,n,a)}}var E0=!1;function x4(t,n){if(Bs=$l,t=ic(),Ts(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else e:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var h=a.anchorOffset,g=a.focusNode;a=a.focusOffset;try{l.nodeType,g.nodeType}catch{l=null;break e}var w=0,M=-1,F=-1,G=0,oe=0,se=t,le=null;t:for(;;){for(var pe;se!==l||h!==0&&se.nodeType!==3||(M=w+h),se!==g||a!==0&&se.nodeType!==3||(F=w+a),se.nodeType===3&&(w+=se.nodeValue.length),(pe=se.firstChild)!==null;)le=se,se=pe;for(;;){if(se===t)break t;if(le===l&&++G===h&&(M=w),le===g&&++oe===a&&(F=w),(pe=se.nextSibling)!==null)break;se=le,le=se.parentNode}se=pe}l=M===-1||F===-1?null:{start:M,end:F}}else l=null}l=l||{start:0,end:0}}else l=null;for(Hs={focusedElem:t,selectionRange:l},$l=!1,he=n;he!==null;)if(n=he,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,he=t;else for(;he!==null;){n=he;try{var me=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(me!==null){var ye=me.memoizedProps,dt=me.memoizedState,U=n.stateNode,H=U.getSnapshotBeforeUpdate(n.elementType===n.type?ye:Cn(n.type,ye),dt);U.__reactInternalSnapshotBeforeUpdate=H}break;case 3:var q=n.stateNode.containerInfo;q.nodeType===1?q.textContent="":q.nodeType===9&&q.documentElement&&q.removeChild(q.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(ce){at(n,n.return,ce)}if(t=n.sibling,t!==null){t.return=n.return,he=t;break}he=n.return}return me=E0,E0=!1,me}function rl(t,n,l){var a=n.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var h=a=a.next;do{if((h.tag&t)===t){var g=h.destroy;h.destroy=void 0,g!==void 0&&Na(n,l,g)}h=h.next}while(h!==a)}}function ko(t,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var l=n=n.next;do{if((l.tag&t)===t){var a=l.create;l.destroy=a()}l=l.next}while(l!==n)}}function Ia(t){var n=t.ref;if(n!==null){var l=t.stateNode;switch(t.tag){case 5:t=l;break;default:t=l}typeof n=="function"?n(t):n.current=t}}function j0(t){var n=t.alternate;n!==null&&(t.alternate=null,j0(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&(delete n[Nn],delete n[qi],delete n[qs],delete n[Jf],delete n[e4])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function L0(t){return t.tag===5||t.tag===3||t.tag===4}function N0(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||L0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Pa(t,n,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,n?l.nodeType===8?l.parentNode.insertBefore(t,n):l.insertBefore(t,n):(l.nodeType===8?(n=l.parentNode,n.insertBefore(t,l)):(n=l,n.appendChild(t)),l=l._reactRootContainer,l!=null||n.onclick!==null||(n.onclick=Xl));else if(a!==4&&(t=t.child,t!==null))for(Pa(t,n,l),t=t.sibling;t!==null;)Pa(t,n,l),t=t.sibling}function Ma(t,n,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,n?l.insertBefore(t,n):l.appendChild(t);else if(a!==4&&(t=t.child,t!==null))for(Ma(t,n,l),t=t.sibling;t!==null;)Ma(t,n,l),t=t.sibling}var St=null,wn=!1;function ur(t,n,l){for(l=l.child;l!==null;)I0(t,n,l),l=l.sibling}function I0(t,n,l){if(Ln&&typeof Ln.onCommitFiberUnmount=="function")try{Ln.onCommitFiberUnmount(zl,l)}catch{}switch(l.tag){case 5:Pt||di(l,n);case 6:var a=St,h=wn;St=null,ur(t,n,l),St=a,wn=h,St!==null&&(wn?(t=St,l=l.stateNode,t.nodeType===8?t.parentNode.removeChild(l):t.removeChild(l)):St.removeChild(l.stateNode));break;case 18:St!==null&&(wn?(t=St,l=l.stateNode,t.nodeType===8?Ws(t.parentNode,l):t.nodeType===1&&Ws(t,l),Di(t)):Ws(St,l.stateNode));break;case 4:a=St,h=wn,St=l.stateNode.containerInfo,wn=!0,ur(t,n,l),St=a,wn=h;break;case 0:case 11:case 14:case 15:if(!Pt&&(a=l.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){h=a=a.next;do{var g=h,w=g.destroy;g=g.tag,w!==void 0&&((g&2)!==0||(g&4)!==0)&&Na(l,n,w),h=h.next}while(h!==a)}ur(t,n,l);break;case 1:if(!Pt&&(di(l,n),a=l.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=l.memoizedProps,a.state=l.memoizedState,a.componentWillUnmount()}catch(M){at(l,n,M)}ur(t,n,l);break;case 21:ur(t,n,l);break;case 22:l.mode&1?(Pt=(a=Pt)||l.memoizedState!==null,ur(t,n,l),Pt=a):ur(t,n,l);break;default:ur(t,n,l)}}function P0(t){var n=t.updateQueue;if(n!==null){t.updateQueue=null;var l=t.stateNode;l===null&&(l=t.stateNode=new g4),n.forEach(function(a){var h=E4.bind(null,t,a);l.has(a)||(l.add(a),a.then(h,h))})}}function kn(t,n){var l=n.deletions;if(l!==null)for(var a=0;a<l.length;a++){var h=l[a];try{var g=t,w=n,M=w;e:for(;M!==null;){switch(M.tag){case 5:St=M.stateNode,wn=!1;break e;case 3:St=M.stateNode.containerInfo,wn=!0;break e;case 4:St=M.stateNode.containerInfo,wn=!0;break e}M=M.return}if(St===null)throw Error(i(160));I0(g,w,h),St=null,wn=!1;var F=h.alternate;F!==null&&(F.return=null),h.return=null}catch(G){at(h,n,G)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)M0(n,t),n=n.sibling}function M0(t,n){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(kn(n,t),Mn(t),a&4){try{rl(3,t,t.return),ko(3,t)}catch(ye){at(t,t.return,ye)}try{rl(5,t,t.return)}catch(ye){at(t,t.return,ye)}}break;case 1:kn(n,t),Mn(t),a&512&&l!==null&&di(l,l.return);break;case 5:if(kn(n,t),Mn(t),a&512&&l!==null&&di(l,l.return),t.flags&32){var h=t.stateNode;try{Re(h,"")}catch(ye){at(t,t.return,ye)}}if(a&4&&(h=t.stateNode,h!=null)){var g=t.memoizedProps,w=l!==null?l.memoizedProps:g,M=t.type,F=t.updateQueue;if(t.updateQueue=null,F!==null)try{M==="input"&&g.type==="radio"&&g.name!=null&&jt(h,g),Ot(M,w);var G=Ot(M,g);for(w=0;w<F.length;w+=2){var oe=F[w],se=F[w+1];oe==="style"?Te(h,se):oe==="dangerouslySetInnerHTML"?je(h,se):oe==="children"?Re(h,se):b(h,oe,se,G)}switch(M){case"input":Ft(h,g);break;case"textarea":st(h,g);break;case"select":var le=h._wrapperState.wasMultiple;h._wrapperState.wasMultiple=!!g.multiple;var pe=g.value;pe!=null?Q(h,!!g.multiple,pe,!1):le!==!!g.multiple&&(g.defaultValue!=null?Q(h,!!g.multiple,g.defaultValue,!0):Q(h,!!g.multiple,g.multiple?[]:"",!1))}h[qi]=g}catch(ye){at(t,t.return,ye)}}break;case 6:if(kn(n,t),Mn(t),a&4){if(t.stateNode===null)throw Error(i(162));h=t.stateNode,g=t.memoizedProps;try{h.nodeValue=g}catch(ye){at(t,t.return,ye)}}break;case 3:if(kn(n,t),Mn(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Di(n.containerInfo)}catch(ye){at(t,t.return,ye)}break;case 4:kn(n,t),Mn(t);break;case 13:kn(n,t),Mn(t),h=t.child,h.flags&8192&&(g=h.memoizedState!==null,h.stateNode.isHidden=g,!g||h.alternate!==null&&h.alternate.memoizedState!==null||(Da=ct())),a&4&&P0(t);break;case 22:if(oe=l!==null&&l.memoizedState!==null,t.mode&1?(Pt=(G=Pt)||oe,kn(n,t),Pt=G):kn(n,t),Mn(t),a&8192){if(G=t.memoizedState!==null,(t.stateNode.isHidden=G)&&!oe&&(t.mode&1)!==0)for(he=t,oe=t.child;oe!==null;){for(se=he=oe;he!==null;){switch(le=he,pe=le.child,le.tag){case 0:case 11:case 14:case 15:rl(4,le,le.return);break;case 1:di(le,le.return);var me=le.stateNode;if(typeof me.componentWillUnmount=="function"){a=le,l=le.return;try{n=a,me.props=n.memoizedProps,me.state=n.memoizedState,me.componentWillUnmount()}catch(ye){at(a,l,ye)}}break;case 5:di(le,le.return);break;case 22:if(le.memoizedState!==null){D0(se);continue}}pe!==null?(pe.return=le,he=pe):D0(se)}oe=oe.sibling}e:for(oe=null,se=t;;){if(se.tag===5){if(oe===null){oe=se;try{h=se.stateNode,G?(g=h.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none"):(M=se.stateNode,F=se.memoizedProps.style,w=F!=null&&F.hasOwnProperty("display")?F.display:null,M.style.display=de("display",w))}catch(ye){at(t,t.return,ye)}}}else if(se.tag===6){if(oe===null)try{se.stateNode.nodeValue=G?"":se.memoizedProps}catch(ye){at(t,t.return,ye)}}else if((se.tag!==22&&se.tag!==23||se.memoizedState===null||se===t)&&se.child!==null){se.child.return=se,se=se.child;continue}if(se===t)break e;for(;se.sibling===null;){if(se.return===null||se.return===t)break e;oe===se&&(oe=null),se=se.return}oe===se&&(oe=null),se.sibling.return=se.return,se=se.sibling}}break;case 19:kn(n,t),Mn(t),a&4&&P0(t);break;case 21:break;default:kn(n,t),Mn(t)}}function Mn(t){var n=t.flags;if(n&2){try{e:{for(var l=t.return;l!==null;){if(L0(l)){var a=l;break e}l=l.return}throw Error(i(160))}switch(a.tag){case 5:var h=a.stateNode;a.flags&32&&(Re(h,""),a.flags&=-33);var g=N0(t);Ma(t,g,h);break;case 3:case 4:var w=a.stateNode.containerInfo,M=N0(t);Pa(t,M,w);break;default:throw Error(i(161))}}catch(F){at(t,t.return,F)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function y4(t,n,l){he=t,T0(t)}function T0(t,n,l){for(var a=(t.mode&1)!==0;he!==null;){var h=he,g=h.child;if(h.tag===22&&a){var w=h.memoizedState!==null||wo;if(!w){var M=h.alternate,F=M!==null&&M.memoizedState!==null||Pt;M=wo;var G=Pt;if(wo=w,(Pt=F)&&!G)for(he=h;he!==null;)w=he,F=w.child,w.tag===22&&w.memoizedState!==null?R0(h):F!==null?(F.return=w,he=F):R0(h);for(;g!==null;)he=g,T0(g),g=g.sibling;he=h,wo=M,Pt=G}z0(t)}else(h.subtreeFlags&8772)!==0&&g!==null?(g.return=h,he=g):z0(t)}}function z0(t){for(;he!==null;){var n=he;if((n.flags&8772)!==0){var l=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:Pt||ko(5,n);break;case 1:var a=n.stateNode;if(n.flags&4&&!Pt)if(l===null)a.componentDidMount();else{var h=n.elementType===n.type?l.memoizedProps:Cn(n.type,l.memoizedProps);a.componentDidUpdate(h,l.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var g=n.updateQueue;g!==null&&Dc(n,g,a);break;case 3:var w=n.updateQueue;if(w!==null){if(l=null,n.child!==null)switch(n.child.tag){case 5:l=n.child.stateNode;break;case 1:l=n.child.stateNode}Dc(n,w,l)}break;case 5:var M=n.stateNode;if(l===null&&n.flags&4){l=M;var F=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":F.autoFocus&&l.focus();break;case"img":F.src&&(l.src=F.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var G=n.alternate;if(G!==null){var oe=G.memoizedState;if(oe!==null){var se=oe.dehydrated;se!==null&&Di(se)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}Pt||n.flags&512&&Ia(n)}catch(le){at(n,n.return,le)}}if(n===t){he=null;break}if(l=n.sibling,l!==null){l.return=n.return,he=l;break}he=n.return}}function D0(t){for(;he!==null;){var n=he;if(n===t){he=null;break}var l=n.sibling;if(l!==null){l.return=n.return,he=l;break}he=n.return}}function R0(t){for(;he!==null;){var n=he;try{switch(n.tag){case 0:case 11:case 15:var l=n.return;try{ko(4,n)}catch(F){at(n,l,F)}break;case 1:var a=n.stateNode;if(typeof a.componentDidMount=="function"){var h=n.return;try{a.componentDidMount()}catch(F){at(n,h,F)}}var g=n.return;try{Ia(n)}catch(F){at(n,g,F)}break;case 5:var w=n.return;try{Ia(n)}catch(F){at(n,w,F)}}}catch(F){at(n,n.return,F)}if(n===t){he=null;break}var M=n.sibling;if(M!==null){M.return=n.return,he=M;break}he=n.return}}var v4=Math.ceil,_o=$.ReactCurrentDispatcher,Ta=$.ReactCurrentOwner,cn=$.ReactCurrentBatchConfig,Be=0,kt=null,pt=null,bt=0,tn=0,fi=ir(0),xt=0,il=null,Tr=0,So=0,za=0,ll=null,Zt=null,Da=0,pi=1/0,qn=null,bo=!1,Ra=null,cr=null,Eo=!1,dr=null,jo=0,ol=0,Aa=null,Lo=-1,No=0;function Bt(){return(Be&6)!==0?ct():Lo!==-1?Lo:Lo=ct()}function fr(t){return(t.mode&1)===0?1:(Be&2)!==0&&bt!==0?bt&-bt:n4.transition!==null?(No===0&&(No=Nu()),No):(t=qe,t!==0||(t=window.event,t=t===void 0?16:Fu(t.type)),t)}function _n(t,n,l,a){if(50<ol)throw ol=0,Aa=null,Error(i(185));Ii(t,l,a),((Be&2)===0||t!==kt)&&(t===kt&&((Be&2)===0&&(So|=l),xt===4&&pr(t,bt)),Qt(t,a),l===1&&Be===0&&(n.mode&1)===0&&(pi=ct()+500,no&&or()))}function Qt(t,n){var l=t.callbackNode;tf(t,n);var a=Al(t,t===kt?bt:0);if(a===0)l!==null&&Eu(l),t.callbackNode=null,t.callbackPriority=0;else if(n=a&-a,t.callbackPriority!==n){if(l!=null&&Eu(l),n===1)t.tag===0?t4(F0.bind(null,t)):_c(F0.bind(null,t)),Yf(function(){(Be&6)===0&&or()}),l=null;else{switch(Iu(a)){case 1:l=gs;break;case 4:l=ju;break;case 16:l=Tl;break;case 536870912:l=Lu;break;default:l=Tl}l=q0(l,A0.bind(null,t))}t.callbackPriority=n,t.callbackNode=l}}function A0(t,n){if(Lo=-1,No=0,(Be&6)!==0)throw Error(i(327));var l=t.callbackNode;if(hi()&&t.callbackNode!==l)return null;var a=Al(t,t===kt?bt:0);if(a===0)return null;if((a&30)!==0||(a&t.expiredLanes)!==0||n)n=Io(t,a);else{n=a;var h=Be;Be|=2;var g=$0();(kt!==t||bt!==n)&&(qn=null,pi=ct()+500,Dr(t,n));do try{k4();break}catch(M){O0(t,M)}while(!0);ta(),_o.current=g,Be=h,pt!==null?n=0:(kt=null,bt=0,n=xt)}if(n!==0){if(n===2&&(h=xs(t),h!==0&&(a=h,n=Fa(t,h))),n===1)throw l=il,Dr(t,0),pr(t,a),Qt(t,ct()),l;if(n===6)pr(t,a);else{if(h=t.current.alternate,(a&30)===0&&!C4(h)&&(n=Io(t,a),n===2&&(g=xs(t),g!==0&&(a=g,n=Fa(t,g))),n===1))throw l=il,Dr(t,0),pr(t,a),Qt(t,ct()),l;switch(t.finishedWork=h,t.finishedLanes=a,n){case 0:case 1:throw Error(i(345));case 2:Rr(t,Zt,qn);break;case 3:if(pr(t,a),(a&130023424)===a&&(n=Da+500-ct(),10<n)){if(Al(t,0)!==0)break;if(h=t.suspendedLanes,(h&a)!==a){Bt(),t.pingedLanes|=t.suspendedLanes&h;break}t.timeoutHandle=Us(Rr.bind(null,t,Zt,qn),n);break}Rr(t,Zt,qn);break;case 4:if(pr(t,a),(a&4194240)===a)break;for(n=t.eventTimes,h=-1;0<a;){var w=31-xn(a);g=1<<w,w=n[w],w>h&&(h=w),a&=~g}if(a=h,a=ct()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*v4(a/1960))-a,10<a){t.timeoutHandle=Us(Rr.bind(null,t,Zt,qn),a);break}Rr(t,Zt,qn);break;case 5:Rr(t,Zt,qn);break;default:throw Error(i(329))}}}return Qt(t,ct()),t.callbackNode===l?A0.bind(null,t):null}function Fa(t,n){var l=ll;return t.current.memoizedState.isDehydrated&&(Dr(t,n).flags|=256),t=Io(t,n),t!==2&&(n=Zt,Zt=l,n!==null&&Oa(n)),t}function Oa(t){Zt===null?Zt=t:Zt.push.apply(Zt,t)}function C4(t){for(var n=t;;){if(n.flags&16384){var l=n.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var a=0;a<l.length;a++){var h=l[a],g=h.getSnapshot;h=h.value;try{if(!yn(g(),h))return!1}catch{return!1}}}if(l=n.child,n.subtreeFlags&16384&&l!==null)l.return=n,n=l;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function pr(t,n){for(n&=~za,n&=~So,t.suspendedLanes|=n,t.pingedLanes&=~n,t=t.expirationTimes;0<n;){var l=31-xn(n),a=1<<l;t[l]=-1,n&=~a}}function F0(t){if((Be&6)!==0)throw Error(i(327));hi();var n=Al(t,0);if((n&1)===0)return Qt(t,ct()),null;var l=Io(t,n);if(t.tag!==0&&l===2){var a=xs(t);a!==0&&(n=a,l=Fa(t,a))}if(l===1)throw l=il,Dr(t,0),pr(t,n),Qt(t,ct()),l;if(l===6)throw Error(i(345));return t.finishedWork=t.current.alternate,t.finishedLanes=n,Rr(t,Zt,qn),Qt(t,ct()),null}function $a(t,n){var l=Be;Be|=1;try{return t(n)}finally{Be=l,Be===0&&(pi=ct()+500,no&&or())}}function zr(t){dr!==null&&dr.tag===0&&(Be&6)===0&&hi();var n=Be;Be|=1;var l=cn.transition,a=qe;try{if(cn.transition=null,qe=1,t)return t()}finally{qe=a,cn.transition=l,Be=n,(Be&6)===0&&or()}}function Ba(){tn=fi.current,tt(fi)}function Dr(t,n){t.finishedWork=null,t.finishedLanes=0;var l=t.timeoutHandle;if(l!==-1&&(t.timeoutHandle=-1,Kf(l)),pt!==null)for(l=pt.return;l!==null;){var a=l;switch(Ks(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&eo();break;case 3:ui(),tt(Ut),tt(Lt),ua();break;case 5:sa(a);break;case 4:ui();break;case 13:tt(it);break;case 19:tt(it);break;case 10:na(a.type._context);break;case 22:case 23:Ba()}l=l.return}if(kt=t,pt=t=hr(t.current,null),bt=tn=n,xt=0,il=null,za=So=Tr=0,Zt=ll=null,Ir!==null){for(n=0;n<Ir.length;n++)if(l=Ir[n],a=l.interleaved,a!==null){l.interleaved=null;var h=a.next,g=l.pending;if(g!==null){var w=g.next;g.next=h,a.next=w}l.pending=a}Ir=null}return t}function O0(t,n){do{var l=pt;try{if(ta(),po.current=xo,ho){for(var a=lt.memoizedState;a!==null;){var h=a.queue;h!==null&&(h.pending=null),a=a.next}ho=!1}if(Mr=0,wt=gt=lt=null,Xi=!1,Ji=0,Ta.current=null,l===null||l.return===null){xt=1,il=n,pt=null;break}e:{var g=t,w=l.return,M=l,F=n;if(n=bt,M.flags|=32768,F!==null&&typeof F=="object"&&typeof F.then=="function"){var G=F,oe=M,se=oe.tag;if((oe.mode&1)===0&&(se===0||se===11||se===15)){var le=oe.alternate;le?(oe.updateQueue=le.updateQueue,oe.memoizedState=le.memoizedState,oe.lanes=le.lanes):(oe.updateQueue=null,oe.memoizedState=null)}var pe=c0(w);if(pe!==null){pe.flags&=-257,d0(pe,w,M,g,n),pe.mode&1&&u0(g,G,n),n=pe,F=G;var me=n.updateQueue;if(me===null){var ye=new Set;ye.add(F),n.updateQueue=ye}else me.add(F);break e}else{if((n&1)===0){u0(g,G,n),Ha();break e}F=Error(i(426))}}else if(nt&&M.mode&1){var dt=c0(w);if(dt!==null){(dt.flags&65536)===0&&(dt.flags|=256),d0(dt,w,M,g,n),Js(ci(F,M));break e}}g=F=ci(F,M),xt!==4&&(xt=2),ll===null?ll=[g]:ll.push(g),g=w;do{switch(g.tag){case 3:g.flags|=65536,n&=-n,g.lanes|=n;var U=s0(g,F,n);zc(g,U);break e;case 1:M=F;var H=g.type,q=g.stateNode;if((g.flags&128)===0&&(typeof H.getDerivedStateFromError=="function"||q!==null&&typeof q.componentDidCatch=="function"&&(cr===null||!cr.has(q)))){g.flags|=65536,n&=-n,g.lanes|=n;var ce=a0(g,M,n);zc(g,ce);break e}}g=g.return}while(g!==null)}H0(l)}catch(Ce){n=Ce,pt===l&&l!==null&&(pt=l=l.return);continue}break}while(!0)}function $0(){var t=_o.current;return _o.current=xo,t===null?xo:t}function Ha(){(xt===0||xt===3||xt===2)&&(xt=4),kt===null||(Tr&268435455)===0&&(So&268435455)===0||pr(kt,bt)}function Io(t,n){var l=Be;Be|=2;var a=$0();(kt!==t||bt!==n)&&(qn=null,Dr(t,n));do try{w4();break}catch(h){O0(t,h)}while(!0);if(ta(),Be=l,_o.current=a,pt!==null)throw Error(i(261));return kt=null,bt=0,xt}function w4(){for(;pt!==null;)B0(pt)}function k4(){for(;pt!==null&&!q3();)B0(pt)}function B0(t){var n=W0(t.alternate,t,tn);t.memoizedProps=t.pendingProps,n===null?H0(t):pt=n,Ta.current=null}function H0(t){var n=t;do{var l=n.alternate;if(t=n.return,(n.flags&32768)===0){if(l=h4(l,n,tn),l!==null){pt=l;return}}else{if(l=m4(l,n),l!==null){l.flags&=32767,pt=l;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{xt=6,pt=null;return}}if(n=n.sibling,n!==null){pt=n;return}pt=n=t}while(n!==null);xt===0&&(xt=5)}function Rr(t,n,l){var a=qe,h=cn.transition;try{cn.transition=null,qe=1,_4(t,n,l,a)}finally{cn.transition=h,qe=a}return null}function _4(t,n,l,a){do hi();while(dr!==null);if((Be&6)!==0)throw Error(i(327));l=t.finishedWork;var h=t.finishedLanes;if(l===null)return null;if(t.finishedWork=null,t.finishedLanes=0,l===t.current)throw Error(i(177));t.callbackNode=null,t.callbackPriority=0;var g=l.lanes|l.childLanes;if(nf(t,g),t===kt&&(pt=kt=null,bt=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||Eo||(Eo=!0,q0(Tl,function(){return hi(),null})),g=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||g){g=cn.transition,cn.transition=null;var w=qe;qe=1;var M=Be;Be|=4,Ta.current=null,x4(t,l),M0(l,t),Vf(Hs),$l=!!Bs,Hs=Bs=null,t.current=l,y4(l),Z3(),Be=M,qe=w,cn.transition=g}else t.current=l;if(Eo&&(Eo=!1,dr=t,jo=h),g=t.pendingLanes,g===0&&(cr=null),K3(l.stateNode),Qt(t,ct()),n!==null)for(a=t.onRecoverableError,l=0;l<n.length;l++)h=n[l],a(h.value,{componentStack:h.stack,digest:h.digest});if(bo)throw bo=!1,t=Ra,Ra=null,t;return(jo&1)!==0&&t.tag!==0&&hi(),g=t.pendingLanes,(g&1)!==0?t===Aa?ol++:(ol=0,Aa=t):ol=0,or(),null}function hi(){if(dr!==null){var t=Iu(jo),n=cn.transition,l=qe;try{if(cn.transition=null,qe=16>t?16:t,dr===null)var a=!1;else{if(t=dr,dr=null,jo=0,(Be&6)!==0)throw Error(i(331));var h=Be;for(Be|=4,he=t.current;he!==null;){var g=he,w=g.child;if((he.flags&16)!==0){var M=g.deletions;if(M!==null){for(var F=0;F<M.length;F++){var G=M[F];for(he=G;he!==null;){var oe=he;switch(oe.tag){case 0:case 11:case 15:rl(8,oe,g)}var se=oe.child;if(se!==null)se.return=oe,he=se;else for(;he!==null;){oe=he;var le=oe.sibling,pe=oe.return;if(j0(oe),oe===G){he=null;break}if(le!==null){le.return=pe,he=le;break}he=pe}}}var me=g.alternate;if(me!==null){var ye=me.child;if(ye!==null){me.child=null;do{var dt=ye.sibling;ye.sibling=null,ye=dt}while(ye!==null)}}he=g}}if((g.subtreeFlags&2064)!==0&&w!==null)w.return=g,he=w;else e:for(;he!==null;){if(g=he,(g.flags&2048)!==0)switch(g.tag){case 0:case 11:case 15:rl(9,g,g.return)}var U=g.sibling;if(U!==null){U.return=g.return,he=U;break e}he=g.return}}var H=t.current;for(he=H;he!==null;){w=he;var q=w.child;if((w.subtreeFlags&2064)!==0&&q!==null)q.return=w,he=q;else e:for(w=H;he!==null;){if(M=he,(M.flags&2048)!==0)try{switch(M.tag){case 0:case 11:case 15:ko(9,M)}}catch(Ce){at(M,M.return,Ce)}if(M===w){he=null;break e}var ce=M.sibling;if(ce!==null){ce.return=M.return,he=ce;break e}he=M.return}}if(Be=h,or(),Ln&&typeof Ln.onPostCommitFiberRoot=="function")try{Ln.onPostCommitFiberRoot(zl,t)}catch{}a=!0}return a}finally{qe=l,cn.transition=n}}return!1}function V0(t,n,l){n=ci(l,n),n=s0(t,n,1),t=ar(t,n,1),n=Bt(),t!==null&&(Ii(t,1,n),Qt(t,n))}function at(t,n,l){if(t.tag===3)V0(t,t,l);else for(;n!==null;){if(n.tag===3){V0(n,t,l);break}else if(n.tag===1){var a=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(cr===null||!cr.has(a))){t=ci(l,t),t=a0(n,t,1),n=ar(n,t,1),t=Bt(),n!==null&&(Ii(n,1,t),Qt(n,t));break}}n=n.return}}function S4(t,n,l){var a=t.pingCache;a!==null&&a.delete(n),n=Bt(),t.pingedLanes|=t.suspendedLanes&l,kt===t&&(bt&l)===l&&(xt===4||xt===3&&(bt&130023424)===bt&&500>ct()-Da?Dr(t,0):za|=l),Qt(t,n)}function U0(t,n){n===0&&((t.mode&1)===0?n=1:(n=Rl,Rl<<=1,(Rl&130023424)===0&&(Rl=4194304)));var l=Bt();t=Vn(t,n),t!==null&&(Ii(t,n,l),Qt(t,l))}function b4(t){var n=t.memoizedState,l=0;n!==null&&(l=n.retryLane),U0(t,l)}function E4(t,n){var l=0;switch(t.tag){case 13:var a=t.stateNode,h=t.memoizedState;h!==null&&(l=h.retryLane);break;case 19:a=t.stateNode;break;default:throw Error(i(314))}a!==null&&a.delete(n),U0(t,l)}var W0;W0=function(t,n,l){if(t!==null)if(t.memoizedProps!==n.pendingProps||Ut.current)qt=!0;else{if((t.lanes&l)===0&&(n.flags&128)===0)return qt=!1,p4(t,n,l);qt=(t.flags&131072)!==0}else qt=!1,nt&&(n.flags&1048576)!==0&&Sc(n,io,n.index);switch(n.lanes=0,n.tag){case 2:var a=n.type;Co(t,n),t=n.pendingProps;var h=ni(n,Lt.current);ai(n,l),h=fa(null,n,a,t,h,l);var g=pa();return n.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,Wt(a)?(g=!0,to(n)):g=!1,n.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,la(n),h.updater=yo,n.stateNode=h,h._reactInternals=n,va(n,a,t,l),n=_a(null,n,a,!0,g,l)):(n.tag=0,nt&&g&&Gs(n),$t(null,n,h,l),n=n.child),n;case 16:a=n.elementType;e:{switch(Co(t,n),t=n.pendingProps,h=a._init,a=h(a._payload),n.type=a,h=n.tag=L4(a),t=Cn(a,t),h){case 0:n=ka(null,n,a,t,l);break e;case 1:n=x0(null,n,a,t,l);break e;case 11:n=f0(null,n,a,t,l);break e;case 14:n=p0(null,n,a,Cn(a.type,t),l);break e}throw Error(i(306,a,""))}return n;case 0:return a=n.type,h=n.pendingProps,h=n.elementType===a?h:Cn(a,h),ka(t,n,a,h,l);case 1:return a=n.type,h=n.pendingProps,h=n.elementType===a?h:Cn(a,h),x0(t,n,a,h,l);case 3:e:{if(y0(n),t===null)throw Error(i(387));a=n.pendingProps,g=n.memoizedState,h=g.element,Tc(t,n),co(n,a,null,l);var w=n.memoizedState;if(a=w.element,g.isDehydrated)if(g={element:a,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},n.updateQueue.baseState=g,n.memoizedState=g,n.flags&256){h=ci(Error(i(423)),n),n=v0(t,n,a,l,h);break e}else if(a!==h){h=ci(Error(i(424)),n),n=v0(t,n,a,l,h);break e}else for(en=rr(n.stateNode.containerInfo.firstChild),Jt=n,nt=!0,vn=null,l=Pc(n,null,a,l),n.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(li(),a===h){n=Wn(t,n,l);break e}$t(t,n,a,l)}n=n.child}return n;case 5:return Rc(n),t===null&&Xs(n),a=n.type,h=n.pendingProps,g=t!==null?t.memoizedProps:null,w=h.children,Vs(a,h)?w=null:g!==null&&Vs(a,g)&&(n.flags|=32),g0(t,n),$t(t,n,w,l),n.child;case 6:return t===null&&Xs(n),null;case 13:return C0(t,n,l);case 4:return oa(n,n.stateNode.containerInfo),a=n.pendingProps,t===null?n.child=oi(n,null,a,l):$t(t,n,a,l),n.child;case 11:return a=n.type,h=n.pendingProps,h=n.elementType===a?h:Cn(a,h),f0(t,n,a,h,l);case 7:return $t(t,n,n.pendingProps,l),n.child;case 8:return $t(t,n,n.pendingProps.children,l),n.child;case 12:return $t(t,n,n.pendingProps.children,l),n.child;case 10:e:{if(a=n.type._context,h=n.pendingProps,g=n.memoizedProps,w=h.value,Je(so,a._currentValue),a._currentValue=w,g!==null)if(yn(g.value,w)){if(g.children===h.children&&!Ut.current){n=Wn(t,n,l);break e}}else for(g=n.child,g!==null&&(g.return=n);g!==null;){var M=g.dependencies;if(M!==null){w=g.child;for(var F=M.firstContext;F!==null;){if(F.context===a){if(g.tag===1){F=Un(-1,l&-l),F.tag=2;var G=g.updateQueue;if(G!==null){G=G.shared;var oe=G.pending;oe===null?F.next=F:(F.next=oe.next,oe.next=F),G.pending=F}}g.lanes|=l,F=g.alternate,F!==null&&(F.lanes|=l),ra(g.return,l,n),M.lanes|=l;break}F=F.next}}else if(g.tag===10)w=g.type===n.type?null:g.child;else if(g.tag===18){if(w=g.return,w===null)throw Error(i(341));w.lanes|=l,M=w.alternate,M!==null&&(M.lanes|=l),ra(w,l,n),w=g.sibling}else w=g.child;if(w!==null)w.return=g;else for(w=g;w!==null;){if(w===n){w=null;break}if(g=w.sibling,g!==null){g.return=w.return,w=g;break}w=w.return}g=w}$t(t,n,h.children,l),n=n.child}return n;case 9:return h=n.type,a=n.pendingProps.children,ai(n,l),h=an(h),a=a(h),n.flags|=1,$t(t,n,a,l),n.child;case 14:return a=n.type,h=Cn(a,n.pendingProps),h=Cn(a.type,h),p0(t,n,a,h,l);case 15:return h0(t,n,n.type,n.pendingProps,l);case 17:return a=n.type,h=n.pendingProps,h=n.elementType===a?h:Cn(a,h),Co(t,n),n.tag=1,Wt(a)?(t=!0,to(n)):t=!1,ai(n,l),l0(n,a,h),va(n,a,h,l),_a(null,n,a,!0,t,l);case 19:return k0(t,n,l);case 22:return m0(t,n,l)}throw Error(i(156,n.tag))};function q0(t,n){return bu(t,n)}function j4(t,n,l,a){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dn(t,n,l,a){return new j4(t,n,l,a)}function Va(t){return t=t.prototype,!(!t||!t.isReactComponent)}function L4(t){if(typeof t=="function")return Va(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Z)return 11;if(t===O)return 14}return 2}function hr(t,n){var l=t.alternate;return l===null?(l=dn(t.tag,n,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=n,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&14680064,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,n=t.dependencies,l.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l}function Po(t,n,l,a,h,g){var w=2;if(a=t,typeof t=="function")Va(t)&&(w=1);else if(typeof t=="string")w=5;else e:switch(t){case ee:return Ar(l.children,h,g,n);case ie:w=8,h|=8;break;case Y:return t=dn(12,l,n,h|2),t.elementType=Y,t.lanes=g,t;case te:return t=dn(13,l,n,h),t.elementType=te,t.lanes=g,t;case W:return t=dn(19,l,n,h),t.elementType=W,t.lanes=g,t;case J:return Mo(l,h,g,n);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case D:w=10;break e;case L:w=9;break e;case Z:w=11;break e;case O:w=14;break e;case I:w=16,a=null;break e}throw Error(i(130,t==null?t:typeof t,""))}return n=dn(w,l,n,h),n.elementType=t,n.type=a,n.lanes=g,n}function Ar(t,n,l,a){return t=dn(7,t,a,n),t.lanes=l,t}function Mo(t,n,l,a){return t=dn(22,t,a,n),t.elementType=J,t.lanes=l,t.stateNode={isHidden:!1},t}function Ua(t,n,l){return t=dn(6,t,null,n),t.lanes=l,t}function Wa(t,n,l){return n=dn(4,t.children!==null?t.children:[],t.key,n),n.lanes=l,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}function N4(t,n,l,a,h){this.tag=n,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ys(0),this.expirationTimes=ys(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ys(0),this.identifierPrefix=a,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function qa(t,n,l,a,h,g,w,M,F){return t=new N4(t,n,l,M,F),n===1?(n=1,g===!0&&(n|=8)):n=0,g=dn(3,null,null,n),t.current=g,g.stateNode=t,g.memoizedState={element:a,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},la(g),t}function I4(t,n,l){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:a==null?null:""+a,children:t,containerInfo:n,implementation:l}}function Z0(t){if(!t)return lr;t=t._reactInternals;e:{if(br(t)!==t||t.tag!==1)throw Error(i(170));var n=t;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(Wt(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(i(171))}if(t.tag===1){var l=t.type;if(Wt(l))return wc(t,l,n)}return n}function Q0(t,n,l,a,h,g,w,M,F){return t=qa(l,a,!0,t,h,g,w,M,F),t.context=Z0(null),l=t.current,a=Bt(),h=fr(l),g=Un(a,h),g.callback=n??null,ar(l,g,h),t.current.lanes=h,Ii(t,h,a),Qt(t,a),t}function To(t,n,l,a){var h=n.current,g=Bt(),w=fr(h);return l=Z0(l),n.context===null?n.context=l:n.pendingContext=l,n=Un(g,w),n.payload={element:t},a=a===void 0?null:a,a!==null&&(n.callback=a),t=ar(h,n,w),t!==null&&(_n(t,h,w,g),uo(t,h,w)),w}function zo(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function G0(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<n?l:n}}function Za(t,n){G0(t,n),(t=t.alternate)&&G0(t,n)}function P4(){return null}var K0=typeof reportError=="function"?reportError:function(t){console.error(t)};function Qa(t){this._internalRoot=t}Do.prototype.render=Qa.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(i(409));To(t,n,null,null)},Do.prototype.unmount=Qa.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;zr(function(){To(null,t,null,null)}),n[On]=null}};function Do(t){this._internalRoot=t}Do.prototype.unstable_scheduleHydration=function(t){if(t){var n=Tu();t={blockedOn:null,target:t,priority:n};for(var l=0;l<er.length&&n!==0&&n<er[l].priority;l++);er.splice(l,0,t),l===0&&Ru(t)}};function Ga(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Ro(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Y0(){}function M4(t,n,l,a,h){if(h){if(typeof a=="function"){var g=a;a=function(){var G=zo(w);g.call(G)}}var w=Q0(n,a,t,0,null,!1,!1,"",Y0);return t._reactRootContainer=w,t[On]=w.current,Ui(t.nodeType===8?t.parentNode:t),zr(),w}for(;h=t.lastChild;)t.removeChild(h);if(typeof a=="function"){var M=a;a=function(){var G=zo(F);M.call(G)}}var F=qa(t,0,!1,null,null,!1,!1,"",Y0);return t._reactRootContainer=F,t[On]=F.current,Ui(t.nodeType===8?t.parentNode:t),zr(function(){To(n,F,l,a)}),F}function Ao(t,n,l,a,h){var g=l._reactRootContainer;if(g){var w=g;if(typeof h=="function"){var M=h;h=function(){var F=zo(w);M.call(F)}}To(n,w,t,h)}else w=M4(l,n,t,h,a);return zo(w)}Pu=function(t){switch(t.tag){case 3:var n=t.stateNode;if(n.current.memoizedState.isDehydrated){var l=Ni(n.pendingLanes);l!==0&&(vs(n,l|1),Qt(n,ct()),(Be&6)===0&&(pi=ct()+500,or()))}break;case 13:zr(function(){var a=Vn(t,1);if(a!==null){var h=Bt();_n(a,t,1,h)}}),Za(t,1)}},Cs=function(t){if(t.tag===13){var n=Vn(t,134217728);if(n!==null){var l=Bt();_n(n,t,134217728,l)}Za(t,134217728)}},Mu=function(t){if(t.tag===13){var n=fr(t),l=Vn(t,n);if(l!==null){var a=Bt();_n(l,t,n,a)}Za(t,n)}},Tu=function(){return qe},zu=function(t,n){var l=qe;try{return qe=t,n()}finally{qe=l}},An=function(t,n,l){switch(n){case"input":if(Ft(t,l),n=l.name,l.type==="radio"&&n!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<l.length;n++){var a=l[n];if(a!==t&&a.form===t.form){var h=Jl(a);if(!h)throw Error(i(90));rt(a),Ft(a,h)}}}break;case"textarea":st(t,l);break;case"select":n=l.value,n!=null&&Q(t,!!l.multiple,n,!1)}},Sr=$a,vu=zr;var T4={usingClientEntryPoint:!1,Events:[Zi,ei,Jl,Si,bi,$a]},sl={findFiberByHostInstance:Er,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},z4={bundleType:sl.bundleType,version:sl.version,rendererPackageName:sl.rendererPackageName,rendererConfig:sl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=_u(t),t===null?null:t.stateNode},findFiberByHostInstance:sl.findFiberByHostInstance||P4,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 Fo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fo.isDisabled&&Fo.supportsFiber)try{zl=Fo.inject(z4),Ln=Fo}catch{}}return Gt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T4,Gt.createPortal=function(t,n){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ga(n))throw Error(i(200));return I4(t,n,null,l)},Gt.createRoot=function(t,n){if(!Ga(t))throw Error(i(299));var l=!1,a="",h=K0;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(h=n.onRecoverableError)),n=qa(t,1,!1,null,null,l,!1,a,h),t[On]=n.current,Ui(t.nodeType===8?t.parentNode:t),new Qa(n)},Gt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=_u(n),t=t===null?null:t.stateNode,t},Gt.flushSync=function(t){return zr(t)},Gt.hydrate=function(t,n,l){if(!Ro(n))throw Error(i(200));return Ao(null,t,n,!0,l)},Gt.hydrateRoot=function(t,n,l){if(!Ga(t))throw Error(i(405));var a=l!=null&&l.hydratedSources||null,h=!1,g="",w=K0;if(l!=null&&(l.unstable_strictMode===!0&&(h=!0),l.identifierPrefix!==void 0&&(g=l.identifierPrefix),l.onRecoverableError!==void 0&&(w=l.onRecoverableError)),n=Q0(n,null,t,1,l??null,h,!1,g,w),t[On]=n.current,Ui(t),a)for(t=0;t<a.length;t++)l=a[t],h=l._getVersion,h=h(l._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[l,h]:n.mutableSourceEagerHydrationData.push(l,h);return new Do(n)},Gt.render=function(t,n,l){if(!Ro(n))throw Error(i(200));return Ao(null,t,n,!1,l)},Gt.unmountComponentAtNode=function(t){if(!Ro(t))throw Error(i(40));return t._reactRootContainer?(zr(function(){Ao(null,null,t,!1,function(){t._reactRootContainer=null,t[On]=null})}),!0):!1},Gt.unstable_batchedUpdates=$a,Gt.unstable_renderSubtreeIntoContainer=function(t,n,l,a){if(!Ro(l))throw Error(i(200));if(t==null||t._reactInternals===void 0)throw Error(i(38));return Ao(t,n,l,!1,a)},Gt.version="18.3.1-next-f1338f8080-20240426",Gt}var l2;function gd(){if(l2)return Xa.exports;l2=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),Xa.exports=B4(),Xa.exports}var o2;function H4(){if(o2)return Oo;o2=1;var e=gd();return Oo.createRoot=e.createRoot,Oo.hydrateRoot=e.hydrateRoot,Oo}var V4=H4(),E=Z1();const U4=400,W4=264,q4=420,Z4=280,Q4=56,G4=1024,s2=300,K4=.7,Y4=.45;function a2(e,r,i){return Math.min(i,Math.max(r,Math.round(e)))}function u2(e,r,i){const o=r===0?Q4:a2(r,W4,q4),s=e-o-U4,u=i===0||s<s2?0:Math.min(s,a2(i,s2,e*K4));return{sidebar:o,center:Math.max(0,e-o-u),rightbar:u}}function X4({productTitle:e}){return E.useEffect(()=>(document.title=e,()=>{document.title=e}),[e]),null}const J4="_frame_mhsk6_1",e5="_sidebarCol_mhsk6_24",t5="_centerCol_mhsk6_31",n5="_handle_mhsk6_44",r5="_rightbarCol_mhsk6_83",i5="_overlayLayer_mhsk6_89",Ci={frame:J4,sidebarCol:e5,centerCol:t5,handle:n5,rightbarCol:r5,overlayLayer:i5};function l5(e){return c.jsx("div",{className:Ci.centerCol,children:e.children})}function o5({usePanelInfo:e,renderSlot:r}){const i=e(o=>o.activePanelId);return r("main",{},{entryKey:i??"conversation"})}function s5(e){return c.jsx("div",{className:Ci.rightbarCol,"data-rightbar-col":!0,children:e.children})}function c2(e){const[r,i]=E.useState(!1),o=E.useRef(0),s=E.useRef(0),u=E.useRef(null),d=E.useRef(null),f=E.useRef({onStart:e.onStart,onDrag:e.onDrag,onEnd:e.onEnd});f.current={onStart:e.onStart,onDrag:e.onDrag,onEnd:e.onEnd};const p=E.useCallback(()=>{const C=d.current;C!==null&&(d.current=null,u.current!==null&&(cancelAnimationFrame(u.current),u.current=null),C.element.hasPointerCapture(C.id)&&C.element.releasePointerCapture(C.id),i(!1),f.current.onEnd())},[]);E.useEffect(()=>p,[p]);const m=E.useCallback(C=>{C.button!==0||d.current!==null||(C.preventDefault(),C.currentTarget.setPointerCapture(C.pointerId),d.current={element:C.currentTarget,id:C.pointerId},o.current=C.clientX,s.current=C.clientX,f.current.onStart(),i(!0))},[]),y=E.useCallback(C=>{var k;((k=d.current)==null?void 0:k.id)===C.pointerId&&(s.current=C.clientX,u.current??(u.current=requestAnimationFrame(()=>{u.current=null,f.current.onDrag(s.current-o.current)})))},[]),x=E.useCallback(C=>{var k;((k=d.current)==null?void 0:k.id)===C.pointerId&&(f.current.onDrag(C.clientX-o.current),p())},[p]),v=E.useCallback(C=>{var k;((k=d.current)==null?void 0:k.id)===C.pointerId&&p()},[p]);return c.jsx("div",{className:Ci.handle,style:{left:e.left},"data-side":e.side,"data-dragging":r||void 0,onPointerDown:m,onPointerMove:y,onPointerUp:x,onPointerCancel:v,onLostPointerCapture:v})}function a5({useStore:e,usePanelInfo:r,actions:i,renderSlot:o,t:s}){const u=e(te=>te.layoutInfo),d=E.useRef(null),f=u.viewportWidth;E.useLayoutEffect(()=>{const te=d.current;if(te===null)return;let W=null,O=!1;const I=()=>{const z=te.getBoundingClientRect().width;z>0&&i.setViewportWidth(z)};I();const J=new ResizeObserver(()=>{O||(W??(W=requestAnimationFrame(()=>{W=null,I()})))});return J.observe(te),()=>{O=!0,J.disconnect(),W!==null&&cancelAnimationFrame(W)}},[i]);const p=f<G4,m=p?!u.narrowExpanded:u.sidebar===0,y=m?0:u.sidebar===0?Z4:u.sidebar,x=u.rightbar??f*Y4,v=u2(f,!u.rightbarShown&&p?0:y,x),C=u2(f,y,u.rightbarTrack?x:0),k=E.useRef(C);k.current=C;const P=E.useRef(v.rightbar);P.current=v.rightbar;const R=E.useRef(0),j=E.useRef(0),[V,b]=E.useState(!1),$=E.useCallback(()=>{b(!1)},[]),B=E.useCallback(()=>{R.current=k.current.sidebar,b(!0)},[]),T=E.useCallback(te=>{i.setSidebar(R.current+te)},[i]),ee=E.useCallback(()=>{j.current=P.current,b(!0)},[]),ie=E.useCallback(te=>{i.setRightbar(j.current-te)},[i]),Y=s("brand.localBuild"),D=E.useMemo(()=>o("sidebar",{collapsed:m,width:C.sidebar}),[o,m,C.sidebar]),L=E.useMemo(()=>c.jsx(o5,{usePanelInfo:r,renderSlot:o}),[r,o]),Z=E.useMemo(()=>o("shell.overlay",{}),[o]);return c.jsxs("div",{ref:d,className:Ci.frame,style:{gridTemplateColumns:`${C.sidebar}px minmax(0, 1fr) ${C.rightbar}px`},"data-sidebar-collapsed":m||void 0,"data-rightbar-collapsed":C.rightbar===0||void 0,"data-rightbar-fullscreen":u.rightbarFullscreen||void 0,"data-rightbar-instant":u.rightbarInstant||void 0,"data-dragging":V||void 0,children:[c.jsx(X4,{productTitle:Y}),c.jsx("div",{className:Ci.sidebarCol,children:D}),c.jsxs(c.Fragment,{children:[c.jsx(l5,{children:L}),c.jsx(s5,{children:o("rightbar",{width:v.rightbar,viewportWidth:f,canShow:v.rightbar>0})})]}),c.jsx("div",{className:Ci.overlayLayer,"data-shell-overlay":!0,children:Z}),!m&&c.jsx(c2,{side:"sidebar",left:C.sidebar,onStart:B,onDrag:T,onEnd:$}),u.rightbarShown&&!u.rightbarFullscreen&&v.rightbar>0&&c.jsx(c2,{side:"rightbar",left:f-v.rightbar,onStart:ee,onDrag:ie,onEnd:$})]})}function xd(e){var r,i,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(i=xd(e[r]))&&(o&&(o+=" "),o+=i)}else for(i in e)e[i]&&(o&&(o+=" "),o+=i);return o}function ot(){for(var e,r,i=0,o="",s=arguments.length;i<s;i++)(e=arguments[i])&&(r=xd(e))&&(o&&(o+=" "),o+=r);return o}const u5=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="none">
|
|
40
|
+
`+g.stack}return{value:t,source:n,stack:h,digest:null}}function wa(t,n,l){return{value:t,source:null,stack:l??null,digest:n??null}}function ka(t,n){try{console.error(n.value)}catch(l){setTimeout(function(){throw l})}}var h4=typeof WeakMap=="function"?WeakMap:Map;function c0(t,n,l){l=Wn(-1,l),l.tag=3,l.payload={element:null};var u=n.value;return l.callback=function(){Eo||(Eo=!0,Aa=u),ka(t,n)},l}function d0(t,n,l){l=Wn(-1,l),l.tag=3;var u=t.type.getDerivedStateFromError;if(typeof u=="function"){var h=n.value;l.payload=function(){return u(h)},l.callback=function(){ka(t,n)}}var g=t.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(l.callback=function(){ka(t,n),typeof u!="function"&&(pr===null?pr=new Set([this]):pr.add(this));var w=n.stack;this.componentDidCatch(n.value,{componentStack:w!==null?w:""})}),l}function f0(t,n,l){var u=t.pingCache;if(u===null){u=t.pingCache=new h4;var h=new Set;u.set(n,h)}else h=u.get(n),h===void 0&&(h=new Set,u.set(n,h));h.has(l)||(h.add(l),t=L4.bind(null,t,n,l),n.then(t,t))}function p0(t){do{var n;if((n=t.tag===13)&&(n=t.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return t;t=t.return}while(t!==null);return null}function h0(t,n,l,u,h){return(t.mode&1)===0?(t===n?t.flags|=65536:(t.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(n=Wn(-1,1),n.tag=2,dr(l,n,1))),l.lanes|=1),t):(t.flags|=65536,t.lanes=h,t)}var m4=F.ReactCurrentOwner,qt=!1;function $t(t,n,l,u){n.child=t===null?zc(n,null,l,u):si(n,t.child,l,u)}function m0(t,n,l,u,h){l=l.render;var g=n.ref;return ui(n,h),u=pa(t,n,l,u,g,h),l=ha(),t!==null&&!qt?(n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~h,qn(t,n,h)):(nt&&l&&Ks(n),n.flags|=1,$t(t,n,u,h),n.child)}function g0(t,n,l,u,h){if(t===null){var g=l.type;return typeof g=="function"&&!Ua(g)&&g.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(n.tag=15,n.type=g,x0(t,n,g,u,h)):(t=Mo(l.type,null,u,n,n.mode,h),t.ref=n.ref,t.return=n,n.child=t)}if(g=t.child,(t.lanes&h)===0){var w=g.memoizedProps;if(l=l.compare,l=l!==null?l:Hi,l(w,u)&&t.ref===n.ref)return qn(t,n,h)}return n.flags|=1,t=xr(g,u),t.ref=n.ref,t.return=n,n.child=t}function x0(t,n,l,u,h){if(t!==null){var g=t.memoizedProps;if(Hi(g,u)&&t.ref===n.ref)if(qt=!1,n.pendingProps=u=g,(t.lanes&h)!==0)(t.flags&131072)!==0&&(qt=!0);else return n.lanes=t.lanes,qn(t,n,h)}return _a(t,n,l,u,h)}function y0(t,n,l){var u=n.pendingProps,h=u.children,g=t!==null?t.memoizedState:null;if(u.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Je(pi,nn),nn|=l;else{if((l&1073741824)===0)return t=g!==null?g.baseLanes|l:l,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:t,cachePool:null,transitions:null},n.updateQueue=null,Je(pi,nn),nn|=t,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=g!==null?g.baseLanes:l,Je(pi,nn),nn|=u}else g!==null?(u=g.baseLanes|l,n.memoizedState=null):u=l,Je(pi,nn),nn|=u;return $t(t,n,h,l),n.child}function v0(t,n){var l=n.ref;(t===null&&l!==null||t!==null&&t.ref!==l)&&(n.flags|=512,n.flags|=2097152)}function _a(t,n,l,u,h){var g=Wt(l)?Nr:Lt.current;return g=ri(n,g),ui(n,h),l=pa(t,n,l,u,g,h),u=ha(),t!==null&&!qt?(n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~h,qn(t,n,h)):(nt&&u&&Ks(n),n.flags|=1,$t(t,n,l,h),n.child)}function C0(t,n,l,u,h){if(Wt(l)){var g=!0;no(n)}else g=!1;if(ui(n,h),n.stateNode===null)wo(t,n),a0(n,l,u),Ca(n,l,u,h),u=!0;else if(t===null){var w=n.stateNode,M=n.memoizedProps;w.props=M;var O=w.context,G=l.contextType;typeof G=="object"&&G!==null?G=un(G):(G=Wt(l)?Nr:Lt.current,G=ri(n,G));var oe=l.getDerivedStateFromProps,se=typeof oe=="function"||typeof w.getSnapshotBeforeUpdate=="function";se||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(M!==u||O!==G)&&u0(n,w,u,G),cr=!1;var le=n.memoizedState;w.state=le,fo(n,u,w,h),O=n.memoizedState,M!==u||le!==O||Ut.current||cr?(typeof oe=="function"&&(va(n,l,oe,u),O=n.memoizedState),(M=cr||s0(n,l,M,u,le,O,G))?(se||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(n.flags|=4194308)):(typeof w.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=u,n.memoizedState=O),w.props=u,w.state=O,w.context=G,u=M):(typeof w.componentDidMount=="function"&&(n.flags|=4194308),u=!1)}else{w=n.stateNode,Dc(t,n),M=n.memoizedProps,G=n.type===n.elementType?M:Cn(n.type,M),w.props=G,se=n.pendingProps,le=w.context,O=l.contextType,typeof O=="object"&&O!==null?O=un(O):(O=Wt(l)?Nr:Lt.current,O=ri(n,O));var pe=l.getDerivedStateFromProps;(oe=typeof pe=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(M!==se||le!==O)&&u0(n,w,u,O),cr=!1,le=n.memoizedState,w.state=le,fo(n,u,w,h);var me=n.memoizedState;M!==se||le!==me||Ut.current||cr?(typeof pe=="function"&&(va(n,l,pe,u),me=n.memoizedState),(G=cr||s0(n,l,G,u,le,me,O)||!1)?(oe||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(u,me,O),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(u,me,O)),typeof w.componentDidUpdate=="function"&&(n.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof w.componentDidUpdate!="function"||M===t.memoizedProps&&le===t.memoizedState||(n.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||M===t.memoizedProps&&le===t.memoizedState||(n.flags|=1024),n.memoizedProps=u,n.memoizedState=me),w.props=u,w.state=me,w.context=O,u=G):(typeof w.componentDidUpdate!="function"||M===t.memoizedProps&&le===t.memoizedState||(n.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||M===t.memoizedProps&&le===t.memoizedState||(n.flags|=1024),u=!1)}return ba(t,n,l,u,g,h)}function ba(t,n,l,u,h,g){v0(t,n);var w=(n.flags&128)!==0;if(!u&&!w)return h&&Sc(n,l,!1),qn(t,n,g);u=n.stateNode,m4.current=n;var M=w&&typeof l.getDerivedStateFromError!="function"?null:u.render();return n.flags|=1,t!==null&&w?(n.child=si(n,t.child,null,g),n.child=si(n,null,M,g)):$t(t,n,M,g),n.memoizedState=u.state,h&&Sc(n,l,!0),n.child}function w0(t){var n=t.stateNode;n.pendingContext?_c(t,n.pendingContext,n.pendingContext!==n.context):n.context&&_c(t,n.context,!1),sa(t,n.containerInfo)}function k0(t,n,l,u,h){return oi(),ea(h),n.flags|=256,$t(t,n,l,u),n.child}var Sa={dehydrated:null,treeContext:null,retryLane:0};function Ea(t){return{baseLanes:t,cachePool:null,transitions:null}}function _0(t,n,l){var u=n.pendingProps,h=it.current,g=!1,w=(n.flags&128)!==0,M;if((M=w)||(M=t!==null&&t.memoizedState===null?!1:(h&2)!==0),M?(g=!0,n.flags&=-129):(t===null||t.memoizedState!==null)&&(h|=1),Je(it,h&1),t===null)return Js(n),t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((n.mode&1)===0?n.lanes=1:t.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(w=u.children,t=u.fallback,g?(u=n.mode,g=n.child,w={mode:"hidden",children:w},(u&1)===0&&g!==null?(g.childLanes=0,g.pendingProps=w):g=To(w,u,0,null),t=Or(t,u,l,null),g.return=n,t.return=n,g.sibling=t,n.child=g,n.child.memoizedState=Ea(l),n.memoizedState=Sa,t):ja(n,w));if(h=t.memoizedState,h!==null&&(M=h.dehydrated,M!==null))return g4(t,n,w,u,M,h,l);if(g){g=u.fallback,w=n.mode,h=t.child,M=h.sibling;var O={mode:"hidden",children:u.children};return(w&1)===0&&n.child!==h?(u=n.child,u.childLanes=0,u.pendingProps=O,n.deletions=null):(u=xr(h,O),u.subtreeFlags=h.subtreeFlags&14680064),M!==null?g=xr(M,g):(g=Or(g,w,l,null),g.flags|=2),g.return=n,u.return=n,u.sibling=g,n.child=u,u=g,g=n.child,w=t.child.memoizedState,w=w===null?Ea(l):{baseLanes:w.baseLanes|l,cachePool:null,transitions:w.transitions},g.memoizedState=w,g.childLanes=t.childLanes&~l,n.memoizedState=Sa,u}return g=t.child,t=g.sibling,u=xr(g,{mode:"visible",children:u.children}),(n.mode&1)===0&&(u.lanes=l),u.return=n,u.sibling=null,t!==null&&(l=n.deletions,l===null?(n.deletions=[t],n.flags|=16):l.push(t)),n.child=u,n.memoizedState=null,u}function ja(t,n){return n=To({mode:"visible",children:n},t.mode,0,null),n.return=t,t.child=n}function Co(t,n,l,u){return u!==null&&ea(u),si(n,t.child,null,l),t=ja(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function g4(t,n,l,u,h,g,w){if(l)return n.flags&256?(n.flags&=-257,u=wa(Error(i(422))),Co(t,n,w,u)):n.memoizedState!==null?(n.child=t.child,n.flags|=128,null):(g=u.fallback,h=n.mode,u=To({mode:"visible",children:u.children},h,0,null),g=Or(g,h,w,null),g.flags|=2,u.return=n,g.return=n,u.sibling=g,n.child=u,(n.mode&1)!==0&&si(n,t.child,null,w),n.child.memoizedState=Ea(w),n.memoizedState=Sa,g);if((n.mode&1)===0)return Co(t,n,w,null);if(h.data==="$!"){if(u=h.nextSibling&&h.nextSibling.dataset,u)var M=u.dgst;return u=M,g=Error(i(419)),u=wa(g,u,void 0),Co(t,n,w,u)}if(M=(w&t.childLanes)!==0,qt||M){if(u=kt,u!==null){switch(w&-w){case 4:h=2;break;case 16:h=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:h=32;break;case 536870912:h=268435456;break;default:h=0}h=(h&(u.suspendedLanes|w))!==0?0:h,h!==0&&h!==g.retryLane&&(g.retryLane=h,Un(t,h),_n(u,t,h,-1))}return Va(),u=wa(Error(i(421))),Co(t,n,w,u)}return h.data==="$?"?(n.flags|=128,n.child=t.child,n=N4.bind(null,t),h._reactRetry=n,null):(t=g.treeContext,tn=or(h.nextSibling),en=n,nt=!0,vn=null,t!==null&&(sn[an++]=Hn,sn[an++]=Vn,sn[an++]=Ir,Hn=t.id,Vn=t.overflow,Ir=n),n=ja(n,u.children),n.flags|=4096,n)}function b0(t,n,l){t.lanes|=n;var u=t.alternate;u!==null&&(u.lanes|=n),ia(t.return,n,l)}function La(t,n,l,u,h){var g=t.memoizedState;g===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:h}:(g.isBackwards=n,g.rendering=null,g.renderingStartTime=0,g.last=u,g.tail=l,g.tailMode=h)}function S0(t,n,l){var u=n.pendingProps,h=u.revealOrder,g=u.tail;if($t(t,n,u.children,l),u=it.current,(u&2)!==0)u=u&1|2,n.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&b0(t,l,n);else if(t.tag===19)b0(t,l,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}u&=1}if(Je(it,u),(n.mode&1)===0)n.memoizedState=null;else switch(h){case"forwards":for(l=n.child,h=null;l!==null;)t=l.alternate,t!==null&&po(t)===null&&(h=l),l=l.sibling;l=h,l===null?(h=n.child,n.child=null):(h=l.sibling,l.sibling=null),La(n,!1,h,l,g);break;case"backwards":for(l=null,h=n.child,n.child=null;h!==null;){if(t=h.alternate,t!==null&&po(t)===null){n.child=h;break}t=h.sibling,h.sibling=l,l=h,h=t}La(n,!0,l,null,g);break;case"together":La(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function wo(t,n){(n.mode&1)===0&&t!==null&&(t.alternate=null,n.alternate=null,n.flags|=2)}function qn(t,n,l){if(t!==null&&(n.dependencies=t.dependencies),Rr|=n.lanes,(l&n.childLanes)===0)return null;if(t!==null&&n.child!==t.child)throw Error(i(153));if(n.child!==null){for(t=n.child,l=xr(t,t.pendingProps),n.child=l,l.return=n;t.sibling!==null;)t=t.sibling,l=l.sibling=xr(t,t.pendingProps),l.return=n;l.sibling=null}return n.child}function x4(t,n,l){switch(n.tag){case 3:w0(n),oi();break;case 5:Oc(n);break;case 1:Wt(n.type)&&no(n);break;case 4:sa(n,n.stateNode.containerInfo);break;case 10:var u=n.type._context,h=n.memoizedProps.value;Je(ao,u._currentValue),u._currentValue=h;break;case 13:if(u=n.memoizedState,u!==null)return u.dehydrated!==null?(Je(it,it.current&1),n.flags|=128,null):(l&n.child.childLanes)!==0?_0(t,n,l):(Je(it,it.current&1),t=qn(t,n,l),t!==null?t.sibling:null);Je(it,it.current&1);break;case 19:if(u=(l&n.childLanes)!==0,(t.flags&128)!==0){if(u)return S0(t,n,l);n.flags|=128}if(h=n.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),Je(it,it.current),u)break;return null;case 22:case 23:return n.lanes=0,y0(t,n,l)}return qn(t,n,l)}var E0,Na,j0,L0;E0=function(t,n){for(var l=n.child;l!==null;){if(l.tag===5||l.tag===6)t.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)break;for(;l.sibling===null;){if(l.return===null||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Na=function(){},j0=function(t,n,l,u){var h=t.memoizedProps;if(h!==u){t=n.stateNode,Tr(In.current);var g=null;switch(l){case"input":h=Dt(t,h),u=Dt(t,u),g=[];break;case"select":h=b({},h,{value:void 0}),u=b({},u,{value:void 0}),g=[];break;case"textarea":h=xe(t,h),u=xe(t,u),g=[];break;default:typeof h.onClick!="function"&&typeof u.onClick=="function"&&(t.onclick=Jl)}Qe(l,u);var w;l=null;for(G in h)if(!u.hasOwnProperty(G)&&h.hasOwnProperty(G)&&h[G]!=null)if(G==="style"){var M=h[G];for(w in M)M.hasOwnProperty(w)&&(l||(l={}),l[w]="")}else G!=="dangerouslySetInnerHTML"&&G!=="children"&&G!=="suppressContentEditableWarning"&&G!=="suppressHydrationWarning"&&G!=="autoFocus"&&(s.hasOwnProperty(G)?g||(g=[]):(g=g||[]).push(G,null));for(G in u){var O=u[G];if(M=h!=null?h[G]:void 0,u.hasOwnProperty(G)&&O!==M&&(O!=null||M!=null))if(G==="style")if(M){for(w in M)!M.hasOwnProperty(w)||O&&O.hasOwnProperty(w)||(l||(l={}),l[w]="");for(w in O)O.hasOwnProperty(w)&&M[w]!==O[w]&&(l||(l={}),l[w]=O[w])}else l||(g||(g=[]),g.push(G,l)),l=O;else G==="dangerouslySetInnerHTML"?(O=O?O.__html:void 0,M=M?M.__html:void 0,O!=null&&M!==O&&(g=g||[]).push(G,O)):G==="children"?typeof O!="string"&&typeof O!="number"||(g=g||[]).push(G,""+O):G!=="suppressContentEditableWarning"&&G!=="suppressHydrationWarning"&&(s.hasOwnProperty(G)?(O!=null&&G==="onScroll"&&et("scroll",t),g||M===O||(g=[])):(g=g||[]).push(G,O))}l&&(g=g||[]).push("style",l);var G=g;(n.updateQueue=G)&&(n.flags|=4)}},L0=function(t,n,l,u){l!==u&&(n.flags|=4)};function rl(t,n){if(!nt)switch(t.tailMode){case"hidden":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:u.sibling=null}}function It(t){var n=t.alternate!==null&&t.alternate.child===t.child,l=0,u=0;if(n)for(var h=t.child;h!==null;)l|=h.lanes|h.childLanes,u|=h.subtreeFlags&14680064,u|=h.flags&14680064,h.return=t,h=h.sibling;else for(h=t.child;h!==null;)l|=h.lanes|h.childLanes,u|=h.subtreeFlags,u|=h.flags,h.return=t,h=h.sibling;return t.subtreeFlags|=u,t.childLanes=l,n}function y4(t,n,l){var u=n.pendingProps;switch(Ys(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return It(n),null;case 1:return Wt(n.type)&&to(),It(n),null;case 3:return u=n.stateNode,ci(),tt(Ut),tt(Lt),ca(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(t===null||t.child===null)&&(oo(n)?n.flags|=4:t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,vn!==null&&($a(vn),vn=null))),Na(t,n),It(n),null;case 5:aa(n);var h=Tr(Xi.current);if(l=n.type,t!==null&&n.stateNode!=null)j0(t,n,l,u,h),t.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!u){if(n.stateNode===null)throw Error(i(166));return It(n),null}if(t=Tr(In.current),oo(n)){u=n.stateNode,l=n.type;var g=n.memoizedProps;switch(u[Nn]=n,u[Zi]=g,t=(n.mode&1)!==0,l){case"dialog":et("cancel",u),et("close",u);break;case"iframe":case"object":case"embed":et("load",u);break;case"video":case"audio":for(h=0;h<Ui.length;h++)et(Ui[h],u);break;case"source":et("error",u);break;case"img":case"image":case"link":et("error",u),et("load",u);break;case"details":et("toggle",u);break;case"input":At(u,g),et("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!g.multiple},et("invalid",u);break;case"textarea":Me(u,g),et("invalid",u)}Qe(l,g),h=null;for(var w in g)if(g.hasOwnProperty(w)){var M=g[w];w==="children"?typeof M=="string"?u.textContent!==M&&(g.suppressHydrationWarning!==!0&&Xl(u.textContent,M,t),h=["children",M]):typeof M=="number"&&u.textContent!==""+M&&(g.suppressHydrationWarning!==!0&&Xl(u.textContent,M,t),h=["children",""+M]):s.hasOwnProperty(w)&&M!=null&&w==="onScroll"&&et("scroll",u)}switch(l){case"input":Oe(u),gn(u,g,!0);break;case"textarea":Oe(u),He(u);break;case"select":case"option":break;default:typeof g.onClick=="function"&&(u.onclick=Jl)}u=h,n.updateQueue=u,u!==null&&(n.flags|=4)}else{w=h.nodeType===9?h:h.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=X(l)),t==="http://www.w3.org/1999/xhtml"?l==="script"?(t=w.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof u.is=="string"?t=w.createElement(l,{is:u.is}):(t=w.createElement(l),l==="select"&&(w=t,u.multiple?w.multiple=!0:u.size&&(w.size=u.size))):t=w.createElementNS(t,l),t[Nn]=n,t[Zi]=u,E0(t,n,!1,!1),n.stateNode=t;e:{switch(w=Ot(l,u),l){case"dialog":et("cancel",t),et("close",t),h=u;break;case"iframe":case"object":case"embed":et("load",t),h=u;break;case"video":case"audio":for(h=0;h<Ui.length;h++)et(Ui[h],t);h=u;break;case"source":et("error",t),h=u;break;case"img":case"image":case"link":et("error",t),et("load",t),h=u;break;case"details":et("toggle",t),h=u;break;case"input":At(t,u),h=Dt(t,u),et("invalid",t);break;case"option":h=u;break;case"select":t._wrapperState={wasMultiple:!!u.multiple},h=b({},u,{value:void 0}),et("invalid",t);break;case"textarea":Me(t,u),h=xe(t,u),et("invalid",t);break;default:h=u}Qe(l,h),M=h;for(g in M)if(M.hasOwnProperty(g)){var O=M[g];g==="style"?Te(t,O):g==="dangerouslySetInnerHTML"?(O=O?O.__html:void 0,O!=null&&je(t,O)):g==="children"?typeof O=="string"?(l!=="textarea"||O!=="")&&De(t,O):typeof O=="number"&&De(t,""+O):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(s.hasOwnProperty(g)?O!=null&&g==="onScroll"&&et("scroll",t):O!=null&&S(t,g,O,w))}switch(l){case"input":Oe(t),gn(t,u,!1);break;case"textarea":Oe(t),He(t);break;case"option":u.value!=null&&t.setAttribute("value",""+Ee(u.value));break;case"select":t.multiple=!!u.multiple,g=u.value,g!=null?Q(t,!!u.multiple,g,!1):u.defaultValue!=null&&Q(t,!!u.multiple,u.defaultValue,!0);break;default:typeof h.onClick=="function"&&(t.onclick=Jl)}switch(l){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return It(n),null;case 6:if(t&&n.stateNode!=null)L0(t,n,t.memoizedProps,u);else{if(typeof u!="string"&&n.stateNode===null)throw Error(i(166));if(l=Tr(Xi.current),Tr(In.current),oo(n)){if(u=n.stateNode,l=n.memoizedProps,u[Nn]=n,(g=u.nodeValue!==l)&&(t=en,t!==null))switch(t.tag){case 3:Xl(u.nodeValue,l,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Xl(u.nodeValue,l,(t.mode&1)!==0)}g&&(n.flags|=4)}else u=(l.nodeType===9?l:l.ownerDocument).createTextNode(u),u[Nn]=n,n.stateNode=u}return It(n),null;case 13:if(tt(it),u=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(nt&&tn!==null&&(n.mode&1)!==0&&(n.flags&128)===0)Pc(),oi(),n.flags|=98560,g=!1;else if(g=oo(n),u!==null&&u.dehydrated!==null){if(t===null){if(!g)throw Error(i(318));if(g=n.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(i(317));g[Nn]=n}else oi(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;It(n),g=!1}else vn!==null&&($a(vn),vn=null),g=!0;if(!g)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=l,n):(u=u!==null,u!==(t!==null&&t.memoizedState!==null)&&u&&(n.child.flags|=8192,(n.mode&1)!==0&&(t===null||(it.current&1)!==0?xt===0&&(xt=3):Va())),n.updateQueue!==null&&(n.flags|=4),It(n),null);case 4:return ci(),Na(t,n),t===null&&Wi(n.stateNode.containerInfo),It(n),null;case 10:return ra(n.type._context),It(n),null;case 17:return Wt(n.type)&&to(),It(n),null;case 19:if(tt(it),g=n.memoizedState,g===null)return It(n),null;if(u=(n.flags&128)!==0,w=g.rendering,w===null)if(u)rl(g,!1);else{if(xt!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(w=po(t),w!==null){for(n.flags|=128,rl(g,!1),u=w.updateQueue,u!==null&&(n.updateQueue=u,n.flags|=4),n.subtreeFlags=0,u=l,l=n.child;l!==null;)g=l,t=u,g.flags&=14680066,w=g.alternate,w===null?(g.childLanes=0,g.lanes=t,g.child=null,g.subtreeFlags=0,g.memoizedProps=null,g.memoizedState=null,g.updateQueue=null,g.dependencies=null,g.stateNode=null):(g.childLanes=w.childLanes,g.lanes=w.lanes,g.child=w.child,g.subtreeFlags=0,g.deletions=null,g.memoizedProps=w.memoizedProps,g.memoizedState=w.memoizedState,g.updateQueue=w.updateQueue,g.type=w.type,t=w.dependencies,g.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),l=l.sibling;return Je(it,it.current&1|2),n.child}t=t.sibling}g.tail!==null&&ct()>hi&&(n.flags|=128,u=!0,rl(g,!1),n.lanes=4194304)}else{if(!u)if(t=po(w),t!==null){if(n.flags|=128,u=!0,l=t.updateQueue,l!==null&&(n.updateQueue=l,n.flags|=4),rl(g,!0),g.tail===null&&g.tailMode==="hidden"&&!w.alternate&&!nt)return It(n),null}else 2*ct()-g.renderingStartTime>hi&&l!==1073741824&&(n.flags|=128,u=!0,rl(g,!1),n.lanes=4194304);g.isBackwards?(w.sibling=n.child,n.child=w):(l=g.last,l!==null?l.sibling=w:n.child=w,g.last=w)}return g.tail!==null?(n=g.tail,g.rendering=n,g.tail=n.sibling,g.renderingStartTime=ct(),n.sibling=null,l=it.current,Je(it,u?l&1|2:l&1),n):(It(n),null);case 22:case 23:return Ha(),u=n.memoizedState!==null,t!==null&&t.memoizedState!==null!==u&&(n.flags|=8192),u&&(n.mode&1)!==0?(nn&1073741824)!==0&&(It(n),n.subtreeFlags&6&&(n.flags|=8192)):It(n),null;case 24:return null;case 25:return null}throw Error(i(156,n.tag))}function v4(t,n){switch(Ys(n),n.tag){case 1:return Wt(n.type)&&to(),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return ci(),tt(Ut),tt(Lt),ca(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 5:return aa(n),null;case 13:if(tt(it),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(i(340));oi()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return tt(it),null;case 4:return ci(),null;case 10:return ra(n.type._context),null;case 22:case 23:return Ha(),null;case 24:return null;default:return null}}var ko=!1,Pt=!1,C4=typeof WeakSet=="function"?WeakSet:Set,he=null;function fi(t,n){var l=t.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(u){ut(t,n,u)}else l.current=null}function Ia(t,n,l){try{l()}catch(u){ut(t,n,u)}}var N0=!1;function w4(t,n){if(Hs=Bl,t=sc(),zs(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else e:{l=(l=t.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var h=u.anchorOffset,g=u.focusNode;u=u.focusOffset;try{l.nodeType,g.nodeType}catch{l=null;break e}var w=0,M=-1,O=-1,G=0,oe=0,se=t,le=null;t:for(;;){for(var pe;se!==l||h!==0&&se.nodeType!==3||(M=w+h),se!==g||u!==0&&se.nodeType!==3||(O=w+u),se.nodeType===3&&(w+=se.nodeValue.length),(pe=se.firstChild)!==null;)le=se,se=pe;for(;;){if(se===t)break t;if(le===l&&++G===h&&(M=w),le===g&&++oe===u&&(O=w),(pe=se.nextSibling)!==null)break;se=le,le=se.parentNode}se=pe}l=M===-1||O===-1?null:{start:M,end:O}}else l=null}l=l||{start:0,end:0}}else l=null;for(Vs={focusedElem:t,selectionRange:l},Bl=!1,he=n;he!==null;)if(n=he,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,he=t;else for(;he!==null;){n=he;try{var me=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(me!==null){var ye=me.memoizedProps,dt=me.memoizedState,U=n.stateNode,H=U.getSnapshotBeforeUpdate(n.elementType===n.type?ye:Cn(n.type,ye),dt);U.__reactInternalSnapshotBeforeUpdate=H}break;case 3:var q=n.stateNode.containerInfo;q.nodeType===1?q.textContent="":q.nodeType===9&&q.documentElement&&q.removeChild(q.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(ce){ut(n,n.return,ce)}if(t=n.sibling,t!==null){t.return=n.return,he=t;break}he=n.return}return me=N0,N0=!1,me}function il(t,n,l){var u=n.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var h=u=u.next;do{if((h.tag&t)===t){var g=h.destroy;h.destroy=void 0,g!==void 0&&Ia(n,l,g)}h=h.next}while(h!==u)}}function _o(t,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var l=n=n.next;do{if((l.tag&t)===t){var u=l.create;l.destroy=u()}l=l.next}while(l!==n)}}function Pa(t){var n=t.ref;if(n!==null){var l=t.stateNode;switch(t.tag){case 5:t=l;break;default:t=l}typeof n=="function"?n(t):n.current=t}}function I0(t){var n=t.alternate;n!==null&&(t.alternate=null,I0(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&(delete n[Nn],delete n[Zi],delete n[Zs],delete n[r4],delete n[i4])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function P0(t){return t.tag===5||t.tag===3||t.tag===4}function M0(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||P0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Ma(t,n,l){var u=t.tag;if(u===5||u===6)t=t.stateNode,n?l.nodeType===8?l.parentNode.insertBefore(t,n):l.insertBefore(t,n):(l.nodeType===8?(n=l.parentNode,n.insertBefore(t,l)):(n=l,n.appendChild(t)),l=l._reactRootContainer,l!=null||n.onclick!==null||(n.onclick=Jl));else if(u!==4&&(t=t.child,t!==null))for(Ma(t,n,l),t=t.sibling;t!==null;)Ma(t,n,l),t=t.sibling}function Ta(t,n,l){var u=t.tag;if(u===5||u===6)t=t.stateNode,n?l.insertBefore(t,n):l.appendChild(t);else if(u!==4&&(t=t.child,t!==null))for(Ta(t,n,l),t=t.sibling;t!==null;)Ta(t,n,l),t=t.sibling}var bt=null,wn=!1;function fr(t,n,l){for(l=l.child;l!==null;)T0(t,n,l),l=l.sibling}function T0(t,n,l){if(Ln&&typeof Ln.onCommitFiberUnmount=="function")try{Ln.onCommitFiberUnmount(Rl,l)}catch{}switch(l.tag){case 5:Pt||fi(l,n);case 6:var u=bt,h=wn;bt=null,fr(t,n,l),bt=u,wn=h,bt!==null&&(wn?(t=bt,l=l.stateNode,t.nodeType===8?t.parentNode.removeChild(l):t.removeChild(l)):bt.removeChild(l.stateNode));break;case 18:bt!==null&&(wn?(t=bt,l=l.stateNode,t.nodeType===8?qs(t.parentNode,l):t.nodeType===1&&qs(t,l),Di(t)):qs(bt,l.stateNode));break;case 4:u=bt,h=wn,bt=l.stateNode.containerInfo,wn=!0,fr(t,n,l),bt=u,wn=h;break;case 0:case 11:case 14:case 15:if(!Pt&&(u=l.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){h=u=u.next;do{var g=h,w=g.destroy;g=g.tag,w!==void 0&&((g&2)!==0||(g&4)!==0)&&Ia(l,n,w),h=h.next}while(h!==u)}fr(t,n,l);break;case 1:if(!Pt&&(fi(l,n),u=l.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=l.memoizedProps,u.state=l.memoizedState,u.componentWillUnmount()}catch(M){ut(l,n,M)}fr(t,n,l);break;case 21:fr(t,n,l);break;case 22:l.mode&1?(Pt=(u=Pt)||l.memoizedState!==null,fr(t,n,l),Pt=u):fr(t,n,l);break;default:fr(t,n,l)}}function z0(t){var n=t.updateQueue;if(n!==null){t.updateQueue=null;var l=t.stateNode;l===null&&(l=t.stateNode=new C4),n.forEach(function(u){var h=I4.bind(null,t,u);l.has(u)||(l.add(u),u.then(h,h))})}}function kn(t,n){var l=n.deletions;if(l!==null)for(var u=0;u<l.length;u++){var h=l[u];try{var g=t,w=n,M=w;e:for(;M!==null;){switch(M.tag){case 5:bt=M.stateNode,wn=!1;break e;case 3:bt=M.stateNode.containerInfo,wn=!0;break e;case 4:bt=M.stateNode.containerInfo,wn=!0;break e}M=M.return}if(bt===null)throw Error(i(160));T0(g,w,h),bt=null,wn=!1;var O=h.alternate;O!==null&&(O.return=null),h.return=null}catch(G){ut(h,n,G)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)R0(n,t),n=n.sibling}function R0(t,n){var l=t.alternate,u=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(kn(n,t),Mn(t),u&4){try{il(3,t,t.return),_o(3,t)}catch(ye){ut(t,t.return,ye)}try{il(5,t,t.return)}catch(ye){ut(t,t.return,ye)}}break;case 1:kn(n,t),Mn(t),u&512&&l!==null&&fi(l,l.return);break;case 5:if(kn(n,t),Mn(t),u&512&&l!==null&&fi(l,l.return),t.flags&32){var h=t.stateNode;try{De(h,"")}catch(ye){ut(t,t.return,ye)}}if(u&4&&(h=t.stateNode,h!=null)){var g=t.memoizedProps,w=l!==null?l.memoizedProps:g,M=t.type,O=t.updateQueue;if(t.updateQueue=null,O!==null)try{M==="input"&&g.type==="radio"&&g.name!=null&&jt(h,g),Ot(M,w);var G=Ot(M,g);for(w=0;w<O.length;w+=2){var oe=O[w],se=O[w+1];oe==="style"?Te(h,se):oe==="dangerouslySetInnerHTML"?je(h,se):oe==="children"?De(h,se):S(h,oe,se,G)}switch(M){case"input":Ft(h,g);break;case"textarea":at(h,g);break;case"select":var le=h._wrapperState.wasMultiple;h._wrapperState.wasMultiple=!!g.multiple;var pe=g.value;pe!=null?Q(h,!!g.multiple,pe,!1):le!==!!g.multiple&&(g.defaultValue!=null?Q(h,!!g.multiple,g.defaultValue,!0):Q(h,!!g.multiple,g.multiple?[]:"",!1))}h[Zi]=g}catch(ye){ut(t,t.return,ye)}}break;case 6:if(kn(n,t),Mn(t),u&4){if(t.stateNode===null)throw Error(i(162));h=t.stateNode,g=t.memoizedProps;try{h.nodeValue=g}catch(ye){ut(t,t.return,ye)}}break;case 3:if(kn(n,t),Mn(t),u&4&&l!==null&&l.memoizedState.isDehydrated)try{Di(n.containerInfo)}catch(ye){ut(t,t.return,ye)}break;case 4:kn(n,t),Mn(t);break;case 13:kn(n,t),Mn(t),h=t.child,h.flags&8192&&(g=h.memoizedState!==null,h.stateNode.isHidden=g,!g||h.alternate!==null&&h.alternate.memoizedState!==null||(Da=ct())),u&4&&z0(t);break;case 22:if(oe=l!==null&&l.memoizedState!==null,t.mode&1?(Pt=(G=Pt)||oe,kn(n,t),Pt=G):kn(n,t),Mn(t),u&8192){if(G=t.memoizedState!==null,(t.stateNode.isHidden=G)&&!oe&&(t.mode&1)!==0)for(he=t,oe=t.child;oe!==null;){for(se=he=oe;he!==null;){switch(le=he,pe=le.child,le.tag){case 0:case 11:case 14:case 15:il(4,le,le.return);break;case 1:fi(le,le.return);var me=le.stateNode;if(typeof me.componentWillUnmount=="function"){u=le,l=le.return;try{n=u,me.props=n.memoizedProps,me.state=n.memoizedState,me.componentWillUnmount()}catch(ye){ut(u,l,ye)}}break;case 5:fi(le,le.return);break;case 22:if(le.memoizedState!==null){F0(se);continue}}pe!==null?(pe.return=le,he=pe):F0(se)}oe=oe.sibling}e:for(oe=null,se=t;;){if(se.tag===5){if(oe===null){oe=se;try{h=se.stateNode,G?(g=h.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none"):(M=se.stateNode,O=se.memoizedProps.style,w=O!=null&&O.hasOwnProperty("display")?O.display:null,M.style.display=de("display",w))}catch(ye){ut(t,t.return,ye)}}}else if(se.tag===6){if(oe===null)try{se.stateNode.nodeValue=G?"":se.memoizedProps}catch(ye){ut(t,t.return,ye)}}else if((se.tag!==22&&se.tag!==23||se.memoizedState===null||se===t)&&se.child!==null){se.child.return=se,se=se.child;continue}if(se===t)break e;for(;se.sibling===null;){if(se.return===null||se.return===t)break e;oe===se&&(oe=null),se=se.return}oe===se&&(oe=null),se.sibling.return=se.return,se=se.sibling}}break;case 19:kn(n,t),Mn(t),u&4&&z0(t);break;case 21:break;default:kn(n,t),Mn(t)}}function Mn(t){var n=t.flags;if(n&2){try{e:{for(var l=t.return;l!==null;){if(P0(l)){var u=l;break e}l=l.return}throw Error(i(160))}switch(u.tag){case 5:var h=u.stateNode;u.flags&32&&(De(h,""),u.flags&=-33);var g=M0(t);Ta(t,g,h);break;case 3:case 4:var w=u.stateNode.containerInfo,M=M0(t);Ma(t,M,w);break;default:throw Error(i(161))}}catch(O){ut(t,t.return,O)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function k4(t,n,l){he=t,D0(t)}function D0(t,n,l){for(var u=(t.mode&1)!==0;he!==null;){var h=he,g=h.child;if(h.tag===22&&u){var w=h.memoizedState!==null||ko;if(!w){var M=h.alternate,O=M!==null&&M.memoizedState!==null||Pt;M=ko;var G=Pt;if(ko=w,(Pt=O)&&!G)for(he=h;he!==null;)w=he,O=w.child,w.tag===22&&w.memoizedState!==null?O0(h):O!==null?(O.return=w,he=O):O0(h);for(;g!==null;)he=g,D0(g),g=g.sibling;he=h,ko=M,Pt=G}A0(t)}else(h.subtreeFlags&8772)!==0&&g!==null?(g.return=h,he=g):A0(t)}}function A0(t){for(;he!==null;){var n=he;if((n.flags&8772)!==0){var l=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:Pt||_o(5,n);break;case 1:var u=n.stateNode;if(n.flags&4&&!Pt)if(l===null)u.componentDidMount();else{var h=n.elementType===n.type?l.memoizedProps:Cn(n.type,l.memoizedProps);u.componentDidUpdate(h,l.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var g=n.updateQueue;g!==null&&Fc(n,g,u);break;case 3:var w=n.updateQueue;if(w!==null){if(l=null,n.child!==null)switch(n.child.tag){case 5:l=n.child.stateNode;break;case 1:l=n.child.stateNode}Fc(n,w,l)}break;case 5:var M=n.stateNode;if(l===null&&n.flags&4){l=M;var O=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":O.autoFocus&&l.focus();break;case"img":O.src&&(l.src=O.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var G=n.alternate;if(G!==null){var oe=G.memoizedState;if(oe!==null){var se=oe.dehydrated;se!==null&&Di(se)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}Pt||n.flags&512&&Pa(n)}catch(le){ut(n,n.return,le)}}if(n===t){he=null;break}if(l=n.sibling,l!==null){l.return=n.return,he=l;break}he=n.return}}function F0(t){for(;he!==null;){var n=he;if(n===t){he=null;break}var l=n.sibling;if(l!==null){l.return=n.return,he=l;break}he=n.return}}function O0(t){for(;he!==null;){var n=he;try{switch(n.tag){case 0:case 11:case 15:var l=n.return;try{_o(4,n)}catch(O){ut(n,l,O)}break;case 1:var u=n.stateNode;if(typeof u.componentDidMount=="function"){var h=n.return;try{u.componentDidMount()}catch(O){ut(n,h,O)}}var g=n.return;try{Pa(n)}catch(O){ut(n,g,O)}break;case 5:var w=n.return;try{Pa(n)}catch(O){ut(n,w,O)}}}catch(O){ut(n,n.return,O)}if(n===t){he=null;break}var M=n.sibling;if(M!==null){M.return=n.return,he=M;break}he=n.return}}var _4=Math.ceil,bo=F.ReactCurrentDispatcher,za=F.ReactCurrentOwner,dn=F.ReactCurrentBatchConfig,Be=0,kt=null,pt=null,St=0,nn=0,pi=sr(0),xt=0,ll=null,Rr=0,So=0,Ra=0,ol=null,Zt=null,Da=0,hi=1/0,Zn=null,Eo=!1,Aa=null,pr=null,jo=!1,hr=null,Lo=0,sl=0,Fa=null,No=-1,Io=0;function Bt(){return(Be&6)!==0?ct():No!==-1?No:No=ct()}function mr(t){return(t.mode&1)===0?1:(Be&2)!==0&&St!==0?St&-St:o4.transition!==null?(Io===0&&(Io=M1()),Io):(t=qe,t!==0||(t=window.event,t=t===void 0?16:B1(t.type)),t)}function _n(t,n,l,u){if(50<sl)throw sl=0,Fa=null,Error(i(185));Pi(t,l,u),((Be&2)===0||t!==kt)&&(t===kt&&((Be&2)===0&&(So|=l),xt===4&&gr(t,St)),Qt(t,u),l===1&&Be===0&&(n.mode&1)===0&&(hi=ct()+500,ro&&ur()))}function Qt(t,n){var l=t.callbackNode;of(t,n);var u=Fl(t,t===kt?St:0);if(u===0)l!==null&&N1(l),t.callbackNode=null,t.callbackPriority=0;else if(n=u&-u,t.callbackPriority!==n){if(l!=null&&N1(l),n===1)t.tag===0?l4(B0.bind(null,t)):Ec(B0.bind(null,t)),t4(function(){(Be&6)===0&&ur()}),l=null;else{switch(T1(u)){case 1:l=xs;break;case 4:l=I1;break;case 16:l=zl;break;case 536870912:l=P1;break;default:l=zl}l=G0(l,$0.bind(null,t))}t.callbackPriority=n,t.callbackNode=l}}function $0(t,n){if(No=-1,Io=0,(Be&6)!==0)throw Error(i(327));var l=t.callbackNode;if(mi()&&t.callbackNode!==l)return null;var u=Fl(t,t===kt?St:0);if(u===0)return null;if((u&30)!==0||(u&t.expiredLanes)!==0||n)n=Po(t,u);else{n=u;var h=Be;Be|=2;var g=V0();(kt!==t||St!==n)&&(Zn=null,hi=ct()+500,Ar(t,n));do try{E4();break}catch(M){H0(t,M)}while(!0);na(),bo.current=g,Be=h,pt!==null?n=0:(kt=null,St=0,n=xt)}if(n!==0){if(n===2&&(h=ys(t),h!==0&&(u=h,n=Oa(t,h))),n===1)throw l=ll,Ar(t,0),gr(t,u),Qt(t,ct()),l;if(n===6)gr(t,u);else{if(h=t.current.alternate,(u&30)===0&&!b4(h)&&(n=Po(t,u),n===2&&(g=ys(t),g!==0&&(u=g,n=Oa(t,g))),n===1))throw l=ll,Ar(t,0),gr(t,u),Qt(t,ct()),l;switch(t.finishedWork=h,t.finishedLanes=u,n){case 0:case 1:throw Error(i(345));case 2:Fr(t,Zt,Zn);break;case 3:if(gr(t,u),(u&130023424)===u&&(n=Da+500-ct(),10<n)){if(Fl(t,0)!==0)break;if(h=t.suspendedLanes,(h&u)!==u){Bt(),t.pingedLanes|=t.suspendedLanes&h;break}t.timeoutHandle=Ws(Fr.bind(null,t,Zt,Zn),n);break}Fr(t,Zt,Zn);break;case 4:if(gr(t,u),(u&4194240)===u)break;for(n=t.eventTimes,h=-1;0<u;){var w=31-xn(u);g=1<<w,w=n[w],w>h&&(h=w),u&=~g}if(u=h,u=ct()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*_4(u/1960))-u,10<u){t.timeoutHandle=Ws(Fr.bind(null,t,Zt,Zn),u);break}Fr(t,Zt,Zn);break;case 5:Fr(t,Zt,Zn);break;default:throw Error(i(329))}}}return Qt(t,ct()),t.callbackNode===l?$0.bind(null,t):null}function Oa(t,n){var l=ol;return t.current.memoizedState.isDehydrated&&(Ar(t,n).flags|=256),t=Po(t,n),t!==2&&(n=Zt,Zt=l,n!==null&&$a(n)),t}function $a(t){Zt===null?Zt=t:Zt.push.apply(Zt,t)}function b4(t){for(var n=t;;){if(n.flags&16384){var l=n.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var u=0;u<l.length;u++){var h=l[u],g=h.getSnapshot;h=h.value;try{if(!yn(g(),h))return!1}catch{return!1}}}if(l=n.child,n.subtreeFlags&16384&&l!==null)l.return=n,n=l;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function gr(t,n){for(n&=~Ra,n&=~So,t.suspendedLanes|=n,t.pingedLanes&=~n,t=t.expirationTimes;0<n;){var l=31-xn(n),u=1<<l;t[l]=-1,n&=~u}}function B0(t){if((Be&6)!==0)throw Error(i(327));mi();var n=Fl(t,0);if((n&1)===0)return Qt(t,ct()),null;var l=Po(t,n);if(t.tag!==0&&l===2){var u=ys(t);u!==0&&(n=u,l=Oa(t,u))}if(l===1)throw l=ll,Ar(t,0),gr(t,n),Qt(t,ct()),l;if(l===6)throw Error(i(345));return t.finishedWork=t.current.alternate,t.finishedLanes=n,Fr(t,Zt,Zn),Qt(t,ct()),null}function Ba(t,n){var l=Be;Be|=1;try{return t(n)}finally{Be=l,Be===0&&(hi=ct()+500,ro&&ur())}}function Dr(t){hr!==null&&hr.tag===0&&(Be&6)===0&&mi();var n=Be;Be|=1;var l=dn.transition,u=qe;try{if(dn.transition=null,qe=1,t)return t()}finally{qe=u,dn.transition=l,Be=n,(Be&6)===0&&ur()}}function Ha(){nn=pi.current,tt(pi)}function Ar(t,n){t.finishedWork=null,t.finishedLanes=0;var l=t.timeoutHandle;if(l!==-1&&(t.timeoutHandle=-1,e4(l)),pt!==null)for(l=pt.return;l!==null;){var u=l;switch(Ys(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&to();break;case 3:ci(),tt(Ut),tt(Lt),ca();break;case 5:aa(u);break;case 4:ci();break;case 13:tt(it);break;case 19:tt(it);break;case 10:ra(u.type._context);break;case 22:case 23:Ha()}l=l.return}if(kt=t,pt=t=xr(t.current,null),St=nn=n,xt=0,ll=null,Ra=So=Rr=0,Zt=ol=null,Mr!==null){for(n=0;n<Mr.length;n++)if(l=Mr[n],u=l.interleaved,u!==null){l.interleaved=null;var h=u.next,g=l.pending;if(g!==null){var w=g.next;g.next=h,u.next=w}l.pending=u}Mr=null}return t}function H0(t,n){do{var l=pt;try{if(na(),ho.current=yo,mo){for(var u=lt.memoizedState;u!==null;){var h=u.queue;h!==null&&(h.pending=null),u=u.next}mo=!1}if(zr=0,wt=gt=lt=null,Ji=!1,el=0,za.current=null,l===null||l.return===null){xt=1,ll=n,pt=null;break}e:{var g=t,w=l.return,M=l,O=n;if(n=St,M.flags|=32768,O!==null&&typeof O=="object"&&typeof O.then=="function"){var G=O,oe=M,se=oe.tag;if((oe.mode&1)===0&&(se===0||se===11||se===15)){var le=oe.alternate;le?(oe.updateQueue=le.updateQueue,oe.memoizedState=le.memoizedState,oe.lanes=le.lanes):(oe.updateQueue=null,oe.memoizedState=null)}var pe=p0(w);if(pe!==null){pe.flags&=-257,h0(pe,w,M,g,n),pe.mode&1&&f0(g,G,n),n=pe,O=G;var me=n.updateQueue;if(me===null){var ye=new Set;ye.add(O),n.updateQueue=ye}else me.add(O);break e}else{if((n&1)===0){f0(g,G,n),Va();break e}O=Error(i(426))}}else if(nt&&M.mode&1){var dt=p0(w);if(dt!==null){(dt.flags&65536)===0&&(dt.flags|=256),h0(dt,w,M,g,n),ea(di(O,M));break e}}g=O=di(O,M),xt!==4&&(xt=2),ol===null?ol=[g]:ol.push(g),g=w;do{switch(g.tag){case 3:g.flags|=65536,n&=-n,g.lanes|=n;var U=c0(g,O,n);Ac(g,U);break e;case 1:M=O;var H=g.type,q=g.stateNode;if((g.flags&128)===0&&(typeof H.getDerivedStateFromError=="function"||q!==null&&typeof q.componentDidCatch=="function"&&(pr===null||!pr.has(q)))){g.flags|=65536,n&=-n,g.lanes|=n;var ce=d0(g,M,n);Ac(g,ce);break e}}g=g.return}while(g!==null)}W0(l)}catch(Ce){n=Ce,pt===l&&l!==null&&(pt=l=l.return);continue}break}while(!0)}function V0(){var t=bo.current;return bo.current=yo,t===null?yo:t}function Va(){(xt===0||xt===3||xt===2)&&(xt=4),kt===null||(Rr&268435455)===0&&(So&268435455)===0||gr(kt,St)}function Po(t,n){var l=Be;Be|=2;var u=V0();(kt!==t||St!==n)&&(Zn=null,Ar(t,n));do try{S4();break}catch(h){H0(t,h)}while(!0);if(na(),Be=l,bo.current=u,pt!==null)throw Error(i(261));return kt=null,St=0,xt}function S4(){for(;pt!==null;)U0(pt)}function E4(){for(;pt!==null&&!K3();)U0(pt)}function U0(t){var n=Q0(t.alternate,t,nn);t.memoizedProps=t.pendingProps,n===null?W0(t):pt=n,za.current=null}function W0(t){var n=t;do{var l=n.alternate;if(t=n.return,(n.flags&32768)===0){if(l=y4(l,n,nn),l!==null){pt=l;return}}else{if(l=v4(l,n),l!==null){l.flags&=32767,pt=l;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{xt=6,pt=null;return}}if(n=n.sibling,n!==null){pt=n;return}pt=n=t}while(n!==null);xt===0&&(xt=5)}function Fr(t,n,l){var u=qe,h=dn.transition;try{dn.transition=null,qe=1,j4(t,n,l,u)}finally{dn.transition=h,qe=u}return null}function j4(t,n,l,u){do mi();while(hr!==null);if((Be&6)!==0)throw Error(i(327));l=t.finishedWork;var h=t.finishedLanes;if(l===null)return null;if(t.finishedWork=null,t.finishedLanes=0,l===t.current)throw Error(i(177));t.callbackNode=null,t.callbackPriority=0;var g=l.lanes|l.childLanes;if(sf(t,g),t===kt&&(pt=kt=null,St=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||jo||(jo=!0,G0(zl,function(){return mi(),null})),g=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||g){g=dn.transition,dn.transition=null;var w=qe;qe=1;var M=Be;Be|=4,za.current=null,w4(t,l),R0(l,t),Zf(Vs),Bl=!!Hs,Vs=Hs=null,t.current=l,k4(l),Y3(),Be=M,qe=w,dn.transition=g}else t.current=l;if(jo&&(jo=!1,hr=t,Lo=h),g=t.pendingLanes,g===0&&(pr=null),ef(l.stateNode),Qt(t,ct()),n!==null)for(u=t.onRecoverableError,l=0;l<n.length;l++)h=n[l],u(h.value,{componentStack:h.stack,digest:h.digest});if(Eo)throw Eo=!1,t=Aa,Aa=null,t;return(Lo&1)!==0&&t.tag!==0&&mi(),g=t.pendingLanes,(g&1)!==0?t===Fa?sl++:(sl=0,Fa=t):sl=0,ur(),null}function mi(){if(hr!==null){var t=T1(Lo),n=dn.transition,l=qe;try{if(dn.transition=null,qe=16>t?16:t,hr===null)var u=!1;else{if(t=hr,hr=null,Lo=0,(Be&6)!==0)throw Error(i(331));var h=Be;for(Be|=4,he=t.current;he!==null;){var g=he,w=g.child;if((he.flags&16)!==0){var M=g.deletions;if(M!==null){for(var O=0;O<M.length;O++){var G=M[O];for(he=G;he!==null;){var oe=he;switch(oe.tag){case 0:case 11:case 15:il(8,oe,g)}var se=oe.child;if(se!==null)se.return=oe,he=se;else for(;he!==null;){oe=he;var le=oe.sibling,pe=oe.return;if(I0(oe),oe===G){he=null;break}if(le!==null){le.return=pe,he=le;break}he=pe}}}var me=g.alternate;if(me!==null){var ye=me.child;if(ye!==null){me.child=null;do{var dt=ye.sibling;ye.sibling=null,ye=dt}while(ye!==null)}}he=g}}if((g.subtreeFlags&2064)!==0&&w!==null)w.return=g,he=w;else e:for(;he!==null;){if(g=he,(g.flags&2048)!==0)switch(g.tag){case 0:case 11:case 15:il(9,g,g.return)}var U=g.sibling;if(U!==null){U.return=g.return,he=U;break e}he=g.return}}var H=t.current;for(he=H;he!==null;){w=he;var q=w.child;if((w.subtreeFlags&2064)!==0&&q!==null)q.return=w,he=q;else e:for(w=H;he!==null;){if(M=he,(M.flags&2048)!==0)try{switch(M.tag){case 0:case 11:case 15:_o(9,M)}}catch(Ce){ut(M,M.return,Ce)}if(M===w){he=null;break e}var ce=M.sibling;if(ce!==null){ce.return=M.return,he=ce;break e}he=M.return}}if(Be=h,ur(),Ln&&typeof Ln.onPostCommitFiberRoot=="function")try{Ln.onPostCommitFiberRoot(Rl,t)}catch{}u=!0}return u}finally{qe=l,dn.transition=n}}return!1}function q0(t,n,l){n=di(l,n),n=c0(t,n,1),t=dr(t,n,1),n=Bt(),t!==null&&(Pi(t,1,n),Qt(t,n))}function ut(t,n,l){if(t.tag===3)q0(t,t,l);else for(;n!==null;){if(n.tag===3){q0(n,t,l);break}else if(n.tag===1){var u=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(pr===null||!pr.has(u))){t=di(l,t),t=d0(n,t,1),n=dr(n,t,1),t=Bt(),n!==null&&(Pi(n,1,t),Qt(n,t));break}}n=n.return}}function L4(t,n,l){var u=t.pingCache;u!==null&&u.delete(n),n=Bt(),t.pingedLanes|=t.suspendedLanes&l,kt===t&&(St&l)===l&&(xt===4||xt===3&&(St&130023424)===St&&500>ct()-Da?Ar(t,0):Ra|=l),Qt(t,n)}function Z0(t,n){n===0&&((t.mode&1)===0?n=1:(n=Al,Al<<=1,(Al&130023424)===0&&(Al=4194304)));var l=Bt();t=Un(t,n),t!==null&&(Pi(t,n,l),Qt(t,l))}function N4(t){var n=t.memoizedState,l=0;n!==null&&(l=n.retryLane),Z0(t,l)}function I4(t,n){var l=0;switch(t.tag){case 13:var u=t.stateNode,h=t.memoizedState;h!==null&&(l=h.retryLane);break;case 19:u=t.stateNode;break;default:throw Error(i(314))}u!==null&&u.delete(n),Z0(t,l)}var Q0;Q0=function(t,n,l){if(t!==null)if(t.memoizedProps!==n.pendingProps||Ut.current)qt=!0;else{if((t.lanes&l)===0&&(n.flags&128)===0)return qt=!1,x4(t,n,l);qt=(t.flags&131072)!==0}else qt=!1,nt&&(n.flags&1048576)!==0&&jc(n,lo,n.index);switch(n.lanes=0,n.tag){case 2:var u=n.type;wo(t,n),t=n.pendingProps;var h=ri(n,Lt.current);ui(n,l),h=pa(null,n,u,t,h,l);var g=ha();return n.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,Wt(u)?(g=!0,no(n)):g=!1,n.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,oa(n),h.updater=vo,n.stateNode=h,h._reactInternals=n,Ca(n,u,t,l),n=ba(null,n,u,!0,g,l)):(n.tag=0,nt&&g&&Ks(n),$t(null,n,h,l),n=n.child),n;case 16:u=n.elementType;e:{switch(wo(t,n),t=n.pendingProps,h=u._init,u=h(u._payload),n.type=u,h=n.tag=M4(u),t=Cn(u,t),h){case 0:n=_a(null,n,u,t,l);break e;case 1:n=C0(null,n,u,t,l);break e;case 11:n=m0(null,n,u,t,l);break e;case 14:n=g0(null,n,u,Cn(u.type,t),l);break e}throw Error(i(306,u,""))}return n;case 0:return u=n.type,h=n.pendingProps,h=n.elementType===u?h:Cn(u,h),_a(t,n,u,h,l);case 1:return u=n.type,h=n.pendingProps,h=n.elementType===u?h:Cn(u,h),C0(t,n,u,h,l);case 3:e:{if(w0(n),t===null)throw Error(i(387));u=n.pendingProps,g=n.memoizedState,h=g.element,Dc(t,n),fo(n,u,null,l);var w=n.memoizedState;if(u=w.element,g.isDehydrated)if(g={element:u,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},n.updateQueue.baseState=g,n.memoizedState=g,n.flags&256){h=di(Error(i(423)),n),n=k0(t,n,u,l,h);break e}else if(u!==h){h=di(Error(i(424)),n),n=k0(t,n,u,l,h);break e}else for(tn=or(n.stateNode.containerInfo.firstChild),en=n,nt=!0,vn=null,l=zc(n,null,u,l),n.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(oi(),u===h){n=qn(t,n,l);break e}$t(t,n,u,l)}n=n.child}return n;case 5:return Oc(n),t===null&&Js(n),u=n.type,h=n.pendingProps,g=t!==null?t.memoizedProps:null,w=h.children,Us(u,h)?w=null:g!==null&&Us(u,g)&&(n.flags|=32),v0(t,n),$t(t,n,w,l),n.child;case 6:return t===null&&Js(n),null;case 13:return _0(t,n,l);case 4:return sa(n,n.stateNode.containerInfo),u=n.pendingProps,t===null?n.child=si(n,null,u,l):$t(t,n,u,l),n.child;case 11:return u=n.type,h=n.pendingProps,h=n.elementType===u?h:Cn(u,h),m0(t,n,u,h,l);case 7:return $t(t,n,n.pendingProps,l),n.child;case 8:return $t(t,n,n.pendingProps.children,l),n.child;case 12:return $t(t,n,n.pendingProps.children,l),n.child;case 10:e:{if(u=n.type._context,h=n.pendingProps,g=n.memoizedProps,w=h.value,Je(ao,u._currentValue),u._currentValue=w,g!==null)if(yn(g.value,w)){if(g.children===h.children&&!Ut.current){n=qn(t,n,l);break e}}else for(g=n.child,g!==null&&(g.return=n);g!==null;){var M=g.dependencies;if(M!==null){w=g.child;for(var O=M.firstContext;O!==null;){if(O.context===u){if(g.tag===1){O=Wn(-1,l&-l),O.tag=2;var G=g.updateQueue;if(G!==null){G=G.shared;var oe=G.pending;oe===null?O.next=O:(O.next=oe.next,oe.next=O),G.pending=O}}g.lanes|=l,O=g.alternate,O!==null&&(O.lanes|=l),ia(g.return,l,n),M.lanes|=l;break}O=O.next}}else if(g.tag===10)w=g.type===n.type?null:g.child;else if(g.tag===18){if(w=g.return,w===null)throw Error(i(341));w.lanes|=l,M=w.alternate,M!==null&&(M.lanes|=l),ia(w,l,n),w=g.sibling}else w=g.child;if(w!==null)w.return=g;else for(w=g;w!==null;){if(w===n){w=null;break}if(g=w.sibling,g!==null){g.return=w.return,w=g;break}w=w.return}g=w}$t(t,n,h.children,l),n=n.child}return n;case 9:return h=n.type,u=n.pendingProps.children,ui(n,l),h=un(h),u=u(h),n.flags|=1,$t(t,n,u,l),n.child;case 14:return u=n.type,h=Cn(u,n.pendingProps),h=Cn(u.type,h),g0(t,n,u,h,l);case 15:return x0(t,n,n.type,n.pendingProps,l);case 17:return u=n.type,h=n.pendingProps,h=n.elementType===u?h:Cn(u,h),wo(t,n),n.tag=1,Wt(u)?(t=!0,no(n)):t=!1,ui(n,l),a0(n,u,h),Ca(n,u,h,l),ba(null,n,u,!0,t,l);case 19:return S0(t,n,l);case 22:return y0(t,n,l)}throw Error(i(156,n.tag))};function G0(t,n){return L1(t,n)}function P4(t,n,l,u){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fn(t,n,l,u){return new P4(t,n,l,u)}function Ua(t){return t=t.prototype,!(!t||!t.isReactComponent)}function M4(t){if(typeof t=="function")return Ua(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Z)return 11;if(t===$)return 14}return 2}function xr(t,n){var l=t.alternate;return l===null?(l=fn(t.tag,n,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=n,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&14680064,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,n=t.dependencies,l.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l}function Mo(t,n,l,u,h,g){var w=2;if(u=t,typeof t=="function")Ua(t)&&(w=1);else if(typeof t=="string")w=5;else e:switch(t){case ee:return Or(l.children,h,g,n);case ie:w=8,h|=8;break;case Y:return t=fn(12,l,n,h|2),t.elementType=Y,t.lanes=g,t;case te:return t=fn(13,l,n,h),t.elementType=te,t.lanes=g,t;case W:return t=fn(19,l,n,h),t.elementType=W,t.lanes=g,t;case J:return To(l,h,g,n);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case D:w=10;break e;case L:w=9;break e;case Z:w=11;break e;case $:w=14;break e;case I:w=16,u=null;break e}throw Error(i(130,t==null?t:typeof t,""))}return n=fn(w,l,n,h),n.elementType=t,n.type=u,n.lanes=g,n}function Or(t,n,l,u){return t=fn(7,t,u,n),t.lanes=l,t}function To(t,n,l,u){return t=fn(22,t,u,n),t.elementType=J,t.lanes=l,t.stateNode={isHidden:!1},t}function Wa(t,n,l){return t=fn(6,t,null,n),t.lanes=l,t}function qa(t,n,l){return n=fn(4,t.children!==null?t.children:[],t.key,n),n.lanes=l,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}function T4(t,n,l,u,h){this.tag=n,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vs(0),this.expirationTimes=vs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vs(0),this.identifierPrefix=u,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function Za(t,n,l,u,h,g,w,M,O){return t=new T4(t,n,l,M,O),n===1?(n=1,g===!0&&(n|=8)):n=0,g=fn(3,null,null,n),t.current=g,g.stateNode=t,g.memoizedState={element:u,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},oa(g),t}function z4(t,n,l){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:u==null?null:""+u,children:t,containerInfo:n,implementation:l}}function K0(t){if(!t)return ar;t=t._reactInternals;e:{if(jr(t)!==t||t.tag!==1)throw Error(i(170));var n=t;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(Wt(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(i(171))}if(t.tag===1){var l=t.type;if(Wt(l))return bc(t,l,n)}return n}function Y0(t,n,l,u,h,g,w,M,O){return t=Za(l,u,!0,t,h,g,w,M,O),t.context=K0(null),l=t.current,u=Bt(),h=mr(l),g=Wn(u,h),g.callback=n??null,dr(l,g,h),t.current.lanes=h,Pi(t,h,u),Qt(t,u),t}function zo(t,n,l,u){var h=n.current,g=Bt(),w=mr(h);return l=K0(l),n.context===null?n.context=l:n.pendingContext=l,n=Wn(g,w),n.payload={element:t},u=u===void 0?null:u,u!==null&&(n.callback=u),t=dr(h,n,w),t!==null&&(_n(t,h,w,g),co(t,h,w)),w}function Ro(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function X0(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<n?l:n}}function Qa(t,n){X0(t,n),(t=t.alternate)&&X0(t,n)}function R4(){return null}var J0=typeof reportError=="function"?reportError:function(t){console.error(t)};function Ga(t){this._internalRoot=t}Do.prototype.render=Ga.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(i(409));zo(t,n,null,null)},Do.prototype.unmount=Ga.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;Dr(function(){zo(null,t,null,null)}),n[$n]=null}};function Do(t){this._internalRoot=t}Do.prototype.unstable_scheduleHydration=function(t){if(t){var n=D1();t={blockedOn:null,target:t,priority:n};for(var l=0;l<rr.length&&n!==0&&n<rr[l].priority;l++);rr.splice(l,0,t),l===0&&O1(t)}};function Ka(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Ao(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function e2(){}function D4(t,n,l,u,h){if(h){if(typeof u=="function"){var g=u;u=function(){var G=Ro(w);g.call(G)}}var w=Y0(n,u,t,0,null,!1,!1,"",e2);return t._reactRootContainer=w,t[$n]=w.current,Wi(t.nodeType===8?t.parentNode:t),Dr(),w}for(;h=t.lastChild;)t.removeChild(h);if(typeof u=="function"){var M=u;u=function(){var G=Ro(O);M.call(G)}}var O=Za(t,0,!1,null,null,!1,!1,"",e2);return t._reactRootContainer=O,t[$n]=O.current,Wi(t.nodeType===8?t.parentNode:t),Dr(function(){zo(n,O,l,u)}),O}function Fo(t,n,l,u,h){var g=l._reactRootContainer;if(g){var w=g;if(typeof h=="function"){var M=h;h=function(){var O=Ro(w);M.call(O)}}zo(n,w,t,h)}else w=D4(l,n,t,h,u);return Ro(w)}z1=function(t){switch(t.tag){case 3:var n=t.stateNode;if(n.current.memoizedState.isDehydrated){var l=Ii(n.pendingLanes);l!==0&&(Cs(n,l|1),Qt(n,ct()),(Be&6)===0&&(hi=ct()+500,ur()))}break;case 13:Dr(function(){var u=Un(t,1);if(u!==null){var h=Bt();_n(u,t,1,h)}}),Qa(t,1)}},ws=function(t){if(t.tag===13){var n=Un(t,134217728);if(n!==null){var l=Bt();_n(n,t,134217728,l)}Qa(t,134217728)}},R1=function(t){if(t.tag===13){var n=mr(t),l=Un(t,n);if(l!==null){var u=Bt();_n(l,t,n,u)}Qa(t,n)}},D1=function(){return qe},A1=function(t,n){var l=qe;try{return qe=t,n()}finally{qe=l}},Fn=function(t,n,l){switch(n){case"input":if(Ft(t,l),n=l.name,l.type==="radio"&&n!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<l.length;n++){var u=l[n];if(u!==t&&u.form===t.form){var h=eo(u);if(!h)throw Error(i(90));rt(u),Ft(u,h)}}}break;case"textarea":at(t,l);break;case"select":n=l.value,n!=null&&Q(t,!!l.multiple,n,!1)}},Er=Ba,k1=Dr;var A4={usingClientEntryPoint:!1,Events:[Qi,ti,eo,Si,Ei,Ba]},al={findFiberByHostInstance:Lr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},F4={bundleType:al.bundleType,version:al.version,rendererPackageName:al.rendererPackageName,rendererConfig:al.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:F.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=E1(t),t===null?null:t.stateNode},findFiberByHostInstance:al.findFiberByHostInstance||R4,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 Oo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Oo.isDisabled&&Oo.supportsFiber)try{Rl=Oo.inject(F4),Ln=Oo}catch{}}return Gt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A4,Gt.createPortal=function(t,n){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ka(n))throw Error(i(200));return z4(t,n,null,l)},Gt.createRoot=function(t,n){if(!Ka(t))throw Error(i(299));var l=!1,u="",h=J0;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(h=n.onRecoverableError)),n=Za(t,1,!1,null,null,l,!1,u,h),t[$n]=n.current,Wi(t.nodeType===8?t.parentNode:t),new Ga(n)},Gt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=E1(n),t=t===null?null:t.stateNode,t},Gt.flushSync=function(t){return Dr(t)},Gt.hydrate=function(t,n,l){if(!Ao(n))throw Error(i(200));return Fo(null,t,n,!0,l)},Gt.hydrateRoot=function(t,n,l){if(!Ka(t))throw Error(i(405));var u=l!=null&&l.hydratedSources||null,h=!1,g="",w=J0;if(l!=null&&(l.unstable_strictMode===!0&&(h=!0),l.identifierPrefix!==void 0&&(g=l.identifierPrefix),l.onRecoverableError!==void 0&&(w=l.onRecoverableError)),n=Y0(n,null,t,1,l??null,h,!1,g,w),t[$n]=n.current,Wi(t),u)for(t=0;t<u.length;t++)l=u[t],h=l._getVersion,h=h(l._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[l,h]:n.mutableSourceEagerHydrationData.push(l,h);return new Do(n)},Gt.render=function(t,n,l){if(!Ao(n))throw Error(i(200));return Fo(null,t,n,!1,l)},Gt.unmountComponentAtNode=function(t){if(!Ao(t))throw Error(i(40));return t._reactRootContainer?(Dr(function(){Fo(null,null,t,!1,function(){t._reactRootContainer=null,t[$n]=null})}),!0):!1},Gt.unstable_batchedUpdates=Ba,Gt.unstable_renderSubtreeIntoContainer=function(t,n,l,u){if(!Ao(l))throw Error(i(200));if(t==null||t._reactInternals===void 0)throw Error(i(38));return Fo(t,n,l,!1,u)},Gt.version="18.3.1-next-f1338f8080-20240426",Gt}var u2;function wd(){if(u2)return Ja.exports;u2=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),Ja.exports=Z4(),Ja.exports}var c2;function Q4(){if(c2)return $o;c2=1;var e=wd();return $o.createRoot=e.createRoot,$o.hydrateRoot=e.hydrateRoot,$o}var G4=Q4(),E=Qu();const K4=400,Y4=264,X4=420,J4=280,e5=56,t5=1024,d2=300,n5=.7,r5=.45;function f2(e,r,i){return Math.min(i,Math.max(r,Math.round(e)))}function p2(e,r,i){const o=r===0?e5:f2(r,Y4,X4),s=e-o-K4,a=i===0||s<d2?0:Math.min(s,f2(i,d2,e*n5));return{sidebar:o,center:Math.max(0,e-o-a),rightbar:a}}function i5({productTitle:e}){return E.useEffect(()=>(document.title=e,()=>{document.title=e}),[e]),null}const l5="_frame_mhsk6_1",o5="_sidebarCol_mhsk6_24",s5="_centerCol_mhsk6_31",a5="_handle_mhsk6_44",u5="_rightbarCol_mhsk6_83",c5="_overlayLayer_mhsk6_89",wi={frame:l5,sidebarCol:o5,centerCol:s5,handle:a5,rightbarCol:u5,overlayLayer:c5};function d5(e){return c.jsx("div",{className:wi.centerCol,children:e.children})}function f5({usePanelInfo:e,renderSlot:r}){const i=e(o=>o.activePanelId);return r("main",{},{entryKey:i??"conversation"})}function p5(e){return c.jsx("div",{className:wi.rightbarCol,"data-rightbar-col":!0,children:e.children})}function h2(e){const[r,i]=E.useState(!1),o=E.useRef(0),s=E.useRef(0),a=E.useRef(null),d=E.useRef(null),f=E.useRef({onStart:e.onStart,onDrag:e.onDrag,onEnd:e.onEnd});f.current={onStart:e.onStart,onDrag:e.onDrag,onEnd:e.onEnd};const p=E.useCallback(()=>{const C=d.current;C!==null&&(d.current=null,a.current!==null&&(cancelAnimationFrame(a.current),a.current=null),C.element.hasPointerCapture(C.id)&&C.element.releasePointerCapture(C.id),i(!1),f.current.onEnd())},[]);E.useEffect(()=>p,[p]);const m=E.useCallback(C=>{C.button!==0||d.current!==null||(C.preventDefault(),C.currentTarget.setPointerCapture(C.pointerId),d.current={element:C.currentTarget,id:C.pointerId},o.current=C.clientX,s.current=C.clientX,f.current.onStart(),i(!0))},[]),y=E.useCallback(C=>{var k;((k=d.current)==null?void 0:k.id)===C.pointerId&&(s.current=C.clientX,a.current??(a.current=requestAnimationFrame(()=>{a.current=null,f.current.onDrag(s.current-o.current)})))},[]),x=E.useCallback(C=>{var k;((k=d.current)==null?void 0:k.id)===C.pointerId&&(f.current.onDrag(C.clientX-o.current),p())},[p]),v=E.useCallback(C=>{var k;((k=d.current)==null?void 0:k.id)===C.pointerId&&p()},[p]);return c.jsx("div",{className:wi.handle,style:{left:e.left},"data-side":e.side,"data-dragging":r||void 0,onPointerDown:m,onPointerMove:y,onPointerUp:x,onPointerCancel:v,onLostPointerCapture:v})}function h5({useStore:e,usePanelInfo:r,actions:i,renderSlot:o,t:s}){const a=e(te=>te.layoutInfo),d=E.useRef(null),f=a.viewportWidth;E.useLayoutEffect(()=>{const te=d.current;if(te===null)return;let W=null,$=!1;const I=()=>{const z=te.getBoundingClientRect().width;z>0&&i.setViewportWidth(z)};I();const J=new ResizeObserver(()=>{$||(W??(W=requestAnimationFrame(()=>{W=null,I()})))});return J.observe(te),()=>{$=!0,J.disconnect(),W!==null&&cancelAnimationFrame(W)}},[i]);const p=f<t5,m=p?!a.narrowExpanded:a.sidebar===0,y=m?0:a.sidebar===0?J4:a.sidebar,x=a.rightbar??f*r5,v=p2(f,!a.rightbarShown&&p?0:y,x),C=p2(f,y,a.rightbarTrack?x:0),k=E.useRef(C);k.current=C;const P=E.useRef(v.rightbar);P.current=v.rightbar;const R=E.useRef(0),j=E.useRef(0),[V,S]=E.useState(!1),F=E.useCallback(()=>{S(!1)},[]),B=E.useCallback(()=>{R.current=k.current.sidebar,S(!0)},[]),T=E.useCallback(te=>{i.setSidebar(R.current+te)},[i]),ee=E.useCallback(()=>{j.current=P.current,S(!0)},[]),ie=E.useCallback(te=>{i.setRightbar(j.current-te)},[i]),Y=s("brand.localBuild"),D=E.useMemo(()=>o("sidebar",{collapsed:m,width:C.sidebar}),[o,m,C.sidebar]),L=E.useMemo(()=>c.jsx(f5,{usePanelInfo:r,renderSlot:o}),[r,o]),Z=E.useMemo(()=>o("shell.overlay",{}),[o]);return c.jsxs("div",{ref:d,className:wi.frame,style:{gridTemplateColumns:`${C.sidebar}px minmax(0, 1fr) ${C.rightbar}px`},"data-sidebar-collapsed":m||void 0,"data-rightbar-collapsed":C.rightbar===0||void 0,"data-rightbar-fullscreen":a.rightbarFullscreen||void 0,"data-rightbar-instant":a.rightbarInstant||void 0,"data-dragging":V||void 0,children:[c.jsx(i5,{productTitle:Y}),c.jsx("div",{className:wi.sidebarCol,children:D}),c.jsxs(c.Fragment,{children:[c.jsx(d5,{children:L}),c.jsx(p5,{children:o("rightbar",{width:v.rightbar,viewportWidth:f,canShow:v.rightbar>0})})]}),c.jsx("div",{className:wi.overlayLayer,"data-shell-overlay":!0,children:Z}),!m&&c.jsx(h2,{side:"sidebar",left:C.sidebar,onStart:B,onDrag:T,onEnd:F}),a.rightbarShown&&!a.rightbarFullscreen&&v.rightbar>0&&c.jsx(h2,{side:"rightbar",left:f-v.rightbar,onStart:ee,onDrag:ie,onEnd:F})]})}function kd(e){var r,i,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(i=kd(e[r]))&&(o&&(o+=" "),o+=i)}else for(i in e)e[i]&&(o&&(o+=" "),o+=i);return o}function st(){for(var e,r,i=0,o="",s=arguments.length;i<s;i++)(e=arguments[i])&&(r=kd(e))&&(o&&(o+=" "),o+=r);return o}const m5=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="none">
|
|
41
41
|
<title>pi-webapp</title>
|
|
42
42
|
<path d="M5.2 9.1c0-1.5 1.2-2.7 2.7-2.7h16.2c1.5 0 2.7 1.2 2.7 2.7v1.1H5.2V9.1Z" fill="#172943"/>
|
|
43
43
|
<path d="M8.7 10.2h3.8v12.6c0 2.5-1.8 4.3-4.3 4.3h-.5V10.2h1Z" fill="#172943"/>
|
|
44
44
|
<path d="M20.7 10.2h3.8v12.3c0 1 .6 1.6 1.6 1.6h1.2v3h-1.4c-3.3 0-5.2-1.9-5.2-4.6V10.2Z" fill="#172943"/>
|
|
45
45
|
</svg>
|
|
46
|
-
`,c5=`data:image/svg+xml,${encodeURIComponent(u5)}`;function Jo({size:e=24,className:r}){return c.jsx("img",{src:c5,width:e,height:e,className:r,alt:"","aria-hidden":"true"})}const d5="_bubble_1nw3t_1",f5={bubble:d5};function j1({label:e,side:r="right",delayMs:i=0,disabled:o=!1,maxWidth:s,children:u}){const d=E.useRef(null),f=u.ref,p=E.useCallback(ee=>{d.current=ee,typeof f=="function"?f(ee):f!=null&&(f.current=ee)},[f]),[m,y]=E.useState(null),[x,v]=E.useState(r),C=E.useRef(null),k=m===null?null:typeof e=="function"?e():e,P=m===null?0:x==="right"?m.top+(m.bottom-m.top)/2:x==="top"?m.top-8:m.bottom+8,R=12;E.useLayoutEffect(()=>{if(m===null)return;const ee=()=>{const ie=C.current;if(ie===null)return;ie.style.left=`${m.x}px`;const Y=ie.getBoundingClientRect();let D=0;if(Y.right>window.innerWidth-R&&(D=window.innerWidth-R-Y.right),Y.left+D<R&&(D=R-Y.left),ie.style.left=`${m.x+D}px`,r==="right")return;const L=m.bottom+8+Y.height<=window.innerHeight-R,Z=m.top-8-Y.height>=R;x==="bottom"&&!L&&Z&&v("top"),x==="top"&&!Z&&L&&v("bottom")};return ee(),window.addEventListener("resize",ee),()=>{window.removeEventListener("resize",ee)}},[x,m,k,r]);const j=E.useRef(null),V=E.useRef({hover:!1,focus:!1}),b=E.useCallback(()=>{j.current!==null&&(clearTimeout(j.current),j.current=null)},[]);E.useEffect(()=>(o&&(b(),V.current={hover:!1,focus:!1},y(null)),b),[b,o]);const $=()=>{if(o)return;const ee=d.current;if(ee===null)return;const ie=ee.getBoundingClientRect();v(r),y({x:r==="right"?ie.right+10:ie.left+ie.width/2,top:ie.top,bottom:ie.bottom})},B=()=>{if(b(),i<=0){$();return}j.current=setTimeout(()=>{j.current=null,$()},i)},T=()=>{b(),!V.current.hover&&!V.current.focus&&y(null)};return c.jsxs(c.Fragment,{children:[E.cloneElement(u,{ref:p,onMouseEnter:ee=>{var ie,Y;(Y=(ie=u.props).onMouseEnter)==null||Y.call(ie,ee),V.current.hover=!0,B()},onMouseLeave:ee=>{var ie,Y;(Y=(ie=u.props).onMouseLeave)==null||Y.call(ie,ee),V.current.hover=!1,b(),y(null)},onFocus:ee=>{var ie,Y;(Y=(ie=u.props).onFocus)==null||Y.call(ie,ee),V.current.focus=!0,b(),$()},onBlur:ee=>{var ie,Y;(Y=(ie=u.props).onBlur)==null||Y.call(ie,ee),V.current.focus=!1,T()}}),m!==null&&c.jsx("span",{ref:C,className:f5.bubble,"data-side":x,style:{left:m.x,top:P,...s===void 0?{}:{maxWidth:s}},role:"tooltip",children:k})]})}const p5="_dot_1cjbl_3",h5="_matrix_1cjbl_4",m5="_cell_1cjbl_62",t1={dot:p5,matrix:h5,cell:m5},d2=[[0,0],[4,0],[8,0],[8,4],[8,8],[4,8],[0,8],[0,4]];function Q1({state:e,size:r=10,className:i}){return e==="ongoing"?c.jsx("svg",{className:ot(t1.matrix,i),"data-state":"ongoing",width:r,height:r,viewBox:"0 0 10 10",shapeRendering:"crispEdges","aria-hidden":"true",children:d2.map(([o,s],u)=>c.jsx("rect",{className:t1.cell,x:o,y:s,width:"2",height:"2",style:{animationDelay:`${(u-d2.length)*125}ms`}},`${o}-${s}`))}):c.jsx("span",{className:ot(t1.dot,i),"data-state":e,style:{width:r,height:r},"aria-hidden":"true"})}const g5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M8.00003 0.3237C3.76075 0.3237 0.32373 3.76072 0.32373 8C0.32373 9.17603 0.589121 10.2922 1.0632 11.2901L1.35291 11.8989L2.5705 11.3205L2.28079 10.7117C1.89079 9.89074 1.67301 8.97167 1.67301 8C1.67301 4.50546 4.50549 1.67298 8.00003 1.67298C11.4946 1.67298 14.3271 4.50546 14.3271 8C14.3271 11.4945 11.4946 14.327 8.00003 14.327C7.28473 14.327 6.76077 14.277 6.29621 14.1487C5.83857 14.0224 5.40441 13.8109 4.88514 13.4488C4.12569 12.919 3.03778 12.7316 2.141 13.2978L2.12682 13.307L2.11264 13.3171L1.34886 13.854L1.79659 15.188L2.86122 14.4384C3.19068 14.2305 3.68325 14.2542 4.11326 14.5539C4.72789 14.9826 5.30042 15.2724 5.93762 15.4484C6.56803 15.6224 7.22776 15.6763 8.00003 15.6763C12.2393 15.6763 15.6763 12.2393 15.6763 8C15.6763 3.76072 12.2393 0.3237 8.00003 0.3237ZM7.32033 4.82535V7.32536H4.82538V8.67464H7.32033V11.1747H8.6696V8.67464H11.1747V7.32536H8.6696V4.82535H7.32033Z",fill:"currentColor"})}),yd=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M11.894845 6.647401C11.894845 3.725463 9.534486 1.356779 6.623219 1.35657C3.711786 1.35657 1.351635 3.725338 1.351635 6.647401C1.351843 9.569296 3.711911 11.938273 6.623219 11.938273C9.534361 11.938064 11.894637 9.569171 11.894845 6.647401ZM13.245462 6.647401C13.245254 10.317935 10.280401 13.293613 6.623219 13.293821C2.965871 13.293821 0.000204 10.31806 0 6.647401C0 2.976574 2.965746 0 6.623219 0C10.280526 0.000205 13.245462 2.9767 13.245462 6.647401Z",fill:"currentColor"}),c.jsx("path",{d:"M16.000417 15.041079L15.044449 16.000433L11.530434 12.473588L12.486298 11.514234L16.000417 15.041079Z",fill:"currentColor"})]}),x5=({size:e=14,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{clipPath:"url(#clip0_2580_121189)",children:[c.jsx("path",{d:"M12.1192 4.91016C11.9392 4.52714 11.7007 4.1292 11.4483 3.78809C11.385 3.70258 11.3517 3.68409 11.2462 3.67383C10.7419 3.6248 10.2318 3.69454 9.72662 3.64551C9.29108 3.60318 8.93739 3.40341 8.67682 3.05176C8.38762 2.66127 8.19217 2.20926 7.90338 1.81934C7.83985 1.73359 7.80848 1.71542 7.70221 1.70508C7.24758 1.6609 6.7511 1.66104 6.29791 1.70508C6.19164 1.71542 6.16027 1.73359 6.09674 1.81934C5.80775 2.20954 5.61248 2.66131 5.3233 3.05176C5.06273 3.40341 4.70904 3.60318 4.2735 3.64551C3.76831 3.69454 3.25825 3.6248 2.75397 3.67383C2.6484 3.68409 2.61509 3.70258 2.55182 3.78809C2.30019 4.12814 2.06125 4.52646 1.88092 4.91016C1.83256 5.01309 1.83242 5.04912 1.88092 5.15235C2.07954 5.57482 2.37449 5.94529 2.5733 6.36817C2.76971 6.78606 2.76964 7.21293 2.5733 7.63086C2.37462 8.05374 2.07947 8.42453 1.88092 8.84668C1.83235 8.95004 1.83257 8.98695 1.88092 9.08985C2.06098 9.47285 2.2994 9.87079 2.55182 10.2119C2.61509 10.2974 2.6484 10.3159 2.75397 10.3262C3.25879 10.3753 3.76834 10.3055 4.2735 10.3545C4.70904 10.3968 5.06273 10.5966 5.3233 10.9482C5.6125 11.3387 5.80795 11.7907 6.09674 12.1807C6.16027 12.2664 6.19164 12.2846 6.29791 12.2949C6.7511 12.339 7.24758 12.3391 7.70221 12.2949C7.80848 12.2846 7.83985 12.2664 7.90338 12.1807C8.19237 11.7905 8.38764 11.3387 8.67682 10.9482C8.93739 10.5966 9.29108 10.3968 9.72662 10.3545C10.2318 10.3055 10.7419 10.3752 11.2462 10.3262C11.3517 10.3159 11.385 10.2974 11.4483 10.2119C11.7007 9.87079 11.9391 9.47285 12.1192 9.08985C12.1675 8.98695 12.1678 8.95004 12.1192 8.84668C11.9205 8.42428 11.6255 8.05377 11.4268 7.63086C11.2305 7.21293 11.2304 6.78606 11.4268 6.36817C11.6256 5.94531 11.9207 5.5746 12.1192 5.15235C12.1677 5.04912 12.1676 5.01309 12.1192 4.91016ZM13.2051 5.66309C13.0064 6.08573 12.7114 6.45579 12.5128 6.87793C12.4642 6.98123 12.4645 7.01829 12.5128 7.1211C12.7112 7.54328 13.0064 7.91405 13.2051 8.33692C13.4015 8.75487 13.4015 9.18169 13.2051 9.59961C12.9911 10.0551 12.7109 10.5221 12.4122 10.9258C12.1522 11.277 11.7974 11.4782 11.3624 11.5205C10.8573 11.5696 10.3477 11.4999 9.84283 11.5488C9.73621 11.5592 9.70429 11.5772 9.64069 11.6631C9.35229 12.0526 9.15705 12.5044 8.86823 12.8945C8.60854 13.2452 8.25275 13.447 7.81842 13.4893C7.28749 13.5409 6.71096 13.5407 6.1817 13.4893C5.74737 13.447 5.39158 13.2452 5.1319 12.8945C4.84312 12.5045 4.64808 12.0529 4.35944 11.6631C4.29583 11.5772 4.26392 11.5592 4.15729 11.5488C3.65283 11.5 3.14295 11.5696 2.63776 11.5205C2.20274 11.4782 1.84796 11.277 1.58795 10.9258C1.28834 10.5209 1.00864 10.0543 0.794982 9.59961C0.598644 9.18169 0.598598 8.75487 0.794982 8.33692C0.993688 7.91405 1.28889 7.54328 1.48737 7.1211C1.53567 7.01829 1.53593 6.98123 1.48737 6.87793C1.28887 6.45603 0.993667 6.08569 0.794982 5.66309C0.598535 5.24516 0.59869 4.81829 0.794982 4.40039C1.00898 3.94492 1.28922 3.47791 1.58795 3.07422C1.84796 2.723 2.20274 2.5218 2.63776 2.47949C3.14295 2.43038 3.65283 2.50003 4.15729 2.45117C4.26391 2.44081 4.29583 2.4228 4.35944 2.33692C4.64783 1.94742 4.84308 1.49557 5.1319 1.10547C5.39158 0.754835 5.74737 0.553005 6.1817 0.510744C6.71263 0.459147 7.28917 0.459309 7.81842 0.510744C8.25275 0.553005 8.60854 0.754835 8.86823 1.10547C9.157 1.49551 9.35204 1.94708 9.64069 2.33692C9.70429 2.4228 9.73621 2.44081 9.84283 2.45117C10.3477 2.50007 10.8573 2.43039 11.3624 2.47949C11.7974 2.5218 12.1522 2.723 12.4122 3.07422C12.7118 3.47909 12.9915 3.94567 13.2051 4.40039C13.4014 4.81829 13.4016 5.24516 13.2051 5.66309Z",fill:"currentColor"}),c.jsx("path",{d:"M7.9317 7C7.9317 6.48569 7.51438 6.06836 7.00006 6.06836C6.48575 6.06836 6.06842 6.48569 6.06842 7C6.06842 7.51432 6.48575 7.93164 7.00006 7.93164C7.51438 7.93164 7.9317 7.51432 7.9317 7ZM9.13092 7C9.13092 8.17706 8.17712 9.13086 7.00006 9.13086C5.823 9.13086 4.8692 8.17706 4.8692 7C4.8692 5.82294 5.823 4.86914 7.00006 4.86914C8.17712 4.86914 9.13092 5.82294 9.13092 7Z",fill:"currentColor"})]}),c.jsx("defs",{children:c.jsx("clipPath",{id:"clip0_2580_121189",children:c.jsx("rect",{width:14,height:14,fill:"currentColor"})})})]}),vd=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{clipPath:"url(#clip0_1450_63327)",children:[c.jsx("path",{d:"M14.0861 5.51366C13.8717 5.0575 13.588 4.58542 13.2889 4.18108C13.208 4.07172 13.1596 4.04373 13.0243 4.03054C12.4277 3.97255 11.8245 4.05527 11.2269 3.9972C10.7224 3.94816 10.3133 3.71661 10.0115 3.30919C9.66986 2.84777 9.43973 2.31343 9.09824 1.85234C9.01771 1.74365 8.96805 1.71589 8.83354 1.70282C8.29432 1.65044 7.70402 1.65061 7.16656 1.70282C7.03205 1.71589 6.98239 1.74365 6.90186 1.85234C6.56067 2.31303 6.33025 2.84774 5.98855 3.30919C5.68681 3.71661 5.27774 3.94816 4.77317 3.9972C4.17564 4.05527 3.57239 3.97255 2.97585 4.03054C2.84046 4.04373 2.79208 4.07172 2.71115 4.18108C2.41212 4.58542 2.12835 5.0575 1.91403 5.51366C1.85299 5.64359 1.85286 5.7018 1.91403 5.8319C2.14865 6.33077 2.49748 6.76892 2.73237 7.26854C2.9594 7.7515 2.96041 8.24717 2.73338 8.73044C2.49837 9.23061 2.14891 9.66837 1.91403 10.1681C1.85291 10.2982 1.85299 10.3564 1.91403 10.4863C2.12856 10.9429 2.41185 11.4142 2.71115 11.8189C2.79208 11.9283 2.84046 11.9563 2.97585 11.9694C3.57239 12.0274 4.17564 11.9447 4.77317 12.0028C5.27774 12.0518 5.68681 12.2834 5.98855 12.6908C6.33024 13.1522 6.56037 13.6866 6.90186 14.1476C6.98239 14.2563 7.03205 14.2841 7.16656 14.2972C7.70402 14.3494 8.29432 14.3495 8.83354 14.2972C8.96805 14.2841 9.01771 14.2563 9.09824 14.1476C9.43944 13.687 9.66985 13.1522 10.0115 12.6908C10.3133 12.2834 10.7224 12.0518 11.2269 12.0028C11.8244 11.9447 12.4271 12.0275 13.0243 11.9694C13.1596 11.9563 13.208 11.9283 13.2889 11.8189C13.5891 11.4131 13.872 10.942 14.0861 10.4863C14.1471 10.3564 14.1472 10.2982 14.0861 10.1681C13.8513 9.66861 13.5017 9.23061 13.2667 8.73044C13.0397 8.24717 13.0407 7.7515 13.2677 7.26854C13.5026 6.7689 13.8513 6.33106 14.0861 5.8319C14.1472 5.7018 14.1471 5.64359 14.0861 5.51366ZM15.3035 6.40373C15.0685 6.90359 14.7188 7.34119 14.4841 7.84037C14.4231 7.97025 14.423 8.02855 14.4841 8.15861C14.7189 8.65833 15.0685 9.09611 15.3035 9.59626C15.5308 10.0801 15.5308 10.5744 15.3035 11.0582C15.052 11.5933 14.7225 12.1426 14.37 12.6191C14.0685 13.0265 13.6581 13.259 13.1536 13.3081C12.5566 13.366 11.9541 13.2835 11.3573 13.3414C11.2228 13.3545 11.1731 13.3823 11.0926 13.491C10.7511 13.9521 10.521 14.4864 10.1793 14.9478C9.87828 15.3542 9.46719 15.5869 8.96387 15.6358C8.34008 15.6964 7.66194 15.6966 7.03623 15.6358C6.53291 15.5869 6.12182 15.3542 5.82084 14.9478C5.47911 14.4863 5.24878 13.9517 4.90753 13.491C4.82701 13.3823 4.77734 13.3545 4.64284 13.3414C4.04647 13.2835 3.44373 13.366 2.84653 13.3081C2.34201 13.259 1.93164 13.0265 1.63013 12.6191C1.27867 12.144 0.948453 11.5941 0.696621 11.0582C0.469315 10.5744 0.469279 10.0801 0.696621 9.59626C0.931628 9.09613 1.2813 8.65807 1.51597 8.15861C1.57708 8.02855 1.57702 7.97025 1.51597 7.84037C1.28117 7.34095 0.931635 6.9036 0.696621 6.40373C0.469213 5.91992 0.469367 5.42562 0.696621 4.94183C0.948441 4.40587 1.27868 3.85598 1.63013 3.38092C1.93164 2.97349 2.34201 2.74095 2.84653 2.6919C3.44353 2.63397 4.04599 2.71649 4.64284 2.65856C4.77734 2.64549 4.82701 2.61774 4.90753 2.50904C5.24905 2.04792 5.47913 1.51362 5.82084 1.05219C6.12182 0.645806 6.53291 0.413119 7.03623 0.364178C7.66002 0.303556 8.33816 0.303369 8.96387 0.364178C9.46719 0.413119 9.87828 0.645806 10.1793 1.05219C10.521 1.51365 10.7513 2.04828 11.0926 2.50904C11.1731 2.61774 11.2228 2.64549 11.3573 2.65856C11.9541 2.71649 12.5566 2.63397 13.1536 2.6919C13.6581 2.74095 14.0685 2.97349 14.37 3.38092C14.7214 3.85598 15.0517 4.40587 15.3035 4.94183C15.5307 5.42562 15.5309 5.91992 15.3035 6.40373Z",fill:"currentColor"}),c.jsx("path",{d:"M9.13764 7.99999C9.13764 7.3715 8.62855 6.8624 8.00005 6.8624C7.37155 6.8624 6.86246 7.3715 6.86246 7.99999C6.86246 8.62849 7.37155 9.13759 8.00005 9.13759C8.62855 9.13759 9.13764 8.62849 9.13764 7.99999ZM10.4834 7.99999C10.4834 9.37126 9.37132 10.4833 8.00005 10.4833C6.62878 10.4833 5.51674 9.37126 5.51674 7.99999C5.51674 6.62873 6.62878 5.51669 8.00005 5.51669C9.37132 5.51669 10.4834 6.62873 10.4834 7.99999Z",fill:"currentColor"})]}),c.jsx("defs",{children:c.jsx("clipPath",{id:"clip0_1450_63327",children:c.jsx("rect",{width:16,height:16,fill:"currentColor"})})})]}),y5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.67272 0.522841C10.8339 0.522841 11.76 0.522714 12.4963 0.602493C13.2453 0.683657 13.8789 0.854248 14.4264 1.25197C14.7504 1.48739 15.0355 1.77247 15.2709 2.0965C15.6686 2.64394 15.8392 3.27758 15.9204 4.02655C16.0002 4.7629 16 5.68895 16 6.85014V9.14986C16 10.3111 16.0002 11.2371 15.9204 11.9735C15.8392 12.7224 15.6686 13.3561 15.2709 13.9035C15.0355 14.2275 14.7504 14.5126 14.4264 14.748C13.8789 15.1458 13.2453 15.3163 12.4963 15.3975C11.76 15.4773 10.8339 15.4772 9.67272 15.4772H6.3273C5.16611 15.4772 4.24006 15.4773 3.50371 15.3975C2.75474 15.3163 2.1211 15.1458 1.57366 14.748C1.24963 14.5126 0.964549 14.2275 0.729131 13.9035C0.331407 13.3561 0.160817 12.7224 0.0796529 11.9735C-0.000126137 11.2371 1.25338e-09 10.3111 1.25338e-09 9.14986V6.85014C1.25329e-09 5.68895 -0.000126137 4.7629 0.0796529 4.02655C0.160817 3.27758 0.331407 2.64394 0.729131 2.0965C0.964549 1.77247 1.24963 1.48739 1.57366 1.25197C2.1211 0.854248 2.75474 0.683657 3.50371 0.602493C4.24006 0.522714 5.16611 0.522841 6.3273 0.522841H9.67272ZM5.54303 1.88715V14.1118C5.78636 14.1128 6.04709 14.1169 6.3273 14.1169H9.67272C10.8639 14.1169 11.7032 14.1164 12.3493 14.0465C12.9824 13.9779 13.3497 13.8494 13.6268 13.6482C13.8354 13.4966 14.0195 13.3125 14.1711 13.1039C14.3723 12.8268 14.5007 12.4595 14.5693 11.8264C14.6393 11.1803 14.6398 10.341 14.6398 9.14986V6.85014C14.6398 5.65896 14.6393 4.81967 14.5693 4.1736C14.5007 3.54048 14.3723 3.17318 14.1711 2.89609C14.0195 2.68747 13.8354 2.50337 13.6268 2.35179C13.3497 2.1506 12.9824 2.02212 12.3493 1.95353C11.7032 1.88358 10.8639 1.88307 9.67272 1.88307H6.3273C6.04709 1.88307 5.78636 1.8862 5.54303 1.88715ZM4.1828 1.91166C3.99125 1.9216 3.8148 1.93577 3.65076 1.95353C3.01764 2.02212 2.65034 2.1506 2.37325 2.35179C2.16463 2.50337 1.98052 2.68747 1.82895 2.89609C1.62776 3.17318 1.49928 3.54048 1.43069 4.1736C1.36074 4.81967 1.36023 5.65896 1.36023 6.85014V9.14986C1.36023 10.341 1.36074 11.1803 1.43069 11.8264C1.49928 12.4595 1.62776 12.8268 1.82895 13.1039C1.98052 13.3125 2.16463 13.4966 2.37325 13.6482C2.65034 13.8494 3.01764 13.9779 3.65076 14.0465C3.81478 14.0642 3.99127 14.0774 4.1828 14.0873V1.91166Z",fill:"currentColor"})}),G1=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M8.64453 1.5V7.34961H14.5V8.65039H8.64453V14.5H7.34473V8.65039H1.5V7.34961H7.34473V1.5H8.64453Z",fill:"currentColor"})}),L1=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M15.0498 3.92579L8.49512 12.3818C8.25774 12.6881 8.04517 12.9645 7.84668 13.1689C7.63957 13.3823 7.38732 13.5841 7.04492 13.6719C6.86373 13.7183 6.6757 13.7346 6.48926 13.7197C6.13666 13.6915 5.8528 13.5355 5.6123 13.3604C5.38201 13.1926 5.12573 12.9567 4.83984 12.6953L1.03125 9.21289L1.96875 8.1875L5.77734 11.6699C6.08684 11.9529 6.27773 12.1249 6.43066 12.2363C6.50183 12.2882 6.54699 12.3135 6.57324 12.3252C6.58525 12.3305 6.59269 12.3322 6.5957 12.333C6.59802 12.3336 6.59961 12.334 6.59961 12.334C6.63317 12.3367 6.66758 12.3335 6.7002 12.3252C6.7002 12.3252 6.70211 12.3251 6.7041 12.3242C6.70698 12.3229 6.71348 12.319 6.72461 12.3115C6.74849 12.2956 6.78843 12.2642 6.84961 12.2012C6.98138 12.0654 7.13957 11.8628 7.39648 11.5313L13.9502 3.07422L15.0498 3.92579Z",fill:"currentColor"})}),wl=({size:e=14,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M11.8486 5.5L11.4238 5.92383L8.69727 8.65137C8.44157 8.90706 8.21562 9.13382 8.01172 9.29785C7.79912 9.46883 7.55595 9.61756 7.25 9.66602C7.08435 9.69222 6.91565 9.69222 6.75 9.66602C6.44405 9.61756 6.20088 9.46883 5.98828 9.29785C5.78438 9.13382 5.55843 8.90706 5.30273 8.65137L2.57617 5.92383L2.15137 5.5L3 4.65137L3.42383 5.07617L6.15137 7.80273C6.42595 8.07732 6.59876 8.24849 6.74023 8.3623C6.87291 8.46904 6.92272 8.47813 6.9375 8.48047C6.97895 8.48703 7.02105 8.48703 7.0625 8.48047C7.07728 8.47813 7.12709 8.46904 7.25977 8.3623C7.40124 8.24849 7.57405 8.07732 7.84863 7.80273L10.5762 5.07617L11 4.65137L11.8486 5.5Z",fill:"currentColor"})}),es=({size:e=14,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M5.5 2.15137L5.92383 2.57617L8.65137 5.30273C8.90706 5.55843 9.13382 5.78438 9.29785 5.98828C9.46883 6.20088 9.61756 6.44405 9.66602 6.75C9.69222 6.91565 9.69222 7.08435 9.66602 7.25C9.61756 7.55595 9.46883 7.79912 9.29785 8.01172C9.13382 8.21561 8.90706 8.44157 8.65137 8.69727L5.92383 11.4238L5.5 11.8486L4.65137 11L5.07617 10.5762L7.80273 7.84863C8.07732 7.57405 8.24849 7.40124 8.3623 7.25977C8.46904 7.12709 8.47813 7.07728 8.48047 7.0625C8.48703 7.02105 8.48703 6.97895 8.48047 6.9375C8.47813 6.92272 8.46904 6.87291 8.3623 6.74023C8.24848 6.59876 8.07732 6.42595 7.80273 6.15137L5.07617 3.42383L4.65137 3L5.5 2.15137Z",fill:"currentColor"})}),ss=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M14.1168 13.197L13.197 14.1167L1.8833 2.80303L2.80309 1.88324L14.1168 13.197Z",fill:"currentColor"}),c.jsx("path",{d:"M13.197 1.88326L14.1168 2.80305L2.80309 14.1168L1.8833 13.197L13.197 1.88326Z",fill:"currentColor"})]}),K1=({size:e=14,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M10.6074 4.40278L8.00975 6.99973L10.6074 9.59739L9.59736 10.6074L6.9997 8.00978L4.40274 10.6074L3.3927 9.59739L5.98966 6.99973L3.3927 4.40278L4.40274 3.39273L6.9997 5.98969L9.59736 3.39273L10.6074 4.40278Z",fill:"currentColor"})}),v5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M6.14929 4.02032C7.11197 4.02032 7.87983 4.02016 8.49597 4.07598C9.12128 4.13269 9.65792 4.25188 10.1415 4.53106C10.7202 4.8653 11.2008 5.3459 11.535 5.92462C11.8142 6.40818 11.9334 6.94481 11.9901 7.57012C12.0459 8.18625 12.0458 8.95419 12.0458 9.9168C12.0458 10.8795 12.0459 11.6473 11.9901 12.2635C11.9334 12.8888 11.8142 13.4254 11.535 13.909C11.2008 14.4877 10.7202 14.9683 10.1415 15.3025C9.65792 15.5817 9.12128 15.7009 8.49597 15.7576C7.87984 15.8134 7.11196 15.8133 6.14929 15.8133C5.18667 15.8133 4.41874 15.8134 3.80261 15.7576C3.1773 15.7009 2.64067 15.5817 2.1571 15.3025C1.5784 14.9683 1.09778 14.4877 0.76355 13.909C0.484366 13.4254 0.365184 12.8888 0.308472 12.2635C0.252649 11.6473 0.252808 10.8795 0.252808 9.9168C0.252808 8.95418 0.252664 8.18625 0.308472 7.57012C0.365184 6.94481 0.484366 6.40818 0.76355 5.92462C1.09777 5.34589 1.57839 4.86529 2.1571 4.53106C2.64067 4.25188 3.1773 4.13269 3.80261 4.07598C4.41874 4.02017 5.18666 4.02032 6.14929 4.02032ZM6.14929 5.37774C5.16181 5.37774 4.46634 5.37761 3.92566 5.42657C3.39434 5.47472 3.07859 5.56574 2.83582 5.70587C2.4632 5.92106 2.15354 6.2307 1.93835 6.60333C1.79823 6.8461 1.70721 7.16185 1.65906 7.69317C1.6101 8.23385 1.61023 8.92933 1.61023 9.9168C1.61023 10.9043 1.61009 11.5998 1.65906 12.1404C1.70721 12.6717 1.79823 12.9875 1.93835 13.2303C2.15356 13.6029 2.46321 13.9126 2.83582 14.1277C3.07859 14.2679 3.39434 14.3589 3.92566 14.407C4.46634 14.456 5.16182 14.4559 6.14929 14.4559C7.13682 14.4559 7.83224 14.456 8.37292 14.407C8.90425 14.3589 9.21999 14.2679 9.46277 14.1277C9.83535 13.9126 10.145 13.6029 10.3602 13.2303C10.5004 12.9875 10.5914 12.6717 10.6395 12.1404C10.6885 11.5998 10.6884 10.9043 10.6884 9.9168C10.6884 8.92934 10.6885 8.23384 10.6395 7.69317C10.5914 7.16185 10.5004 6.8461 10.3602 6.60333C10.1451 6.23071 9.83536 5.92107 9.46277 5.70587C9.21999 5.56574 8.90424 5.47472 8.37292 5.42657C7.83224 5.3776 7.13682 5.37774 6.14929 5.37774ZM9.80164 0.367975C10.7638 0.367975 11.5314 0.36788 12.1473 0.423639C12.7726 0.480307 13.3093 0.598759 13.7928 0.877741C14.3717 1.21192 14.8521 1.69355 15.1864 2.27227C15.4655 2.75574 15.5857 3.29164 15.6425 3.9168C15.6983 4.53301 15.6971 5.3016 15.6971 6.26446V7.82989C15.6971 8.29264 15.6989 8.58993 15.6649 8.84844C15.4668 10.3525 14.401 11.5738 12.9833 11.9988V10.5467C13.6973 10.1903 14.2105 9.49662 14.3192 8.67169C14.3387 8.52347 14.3407 8.3358 14.3407 7.82989V6.26446C14.3407 5.27706 14.3398 4.58149 14.2909 4.04083C14.2428 3.50968 14.1526 3.19372 14.0126 2.95098C13.7974 2.57849 13.4876 2.26869 13.1151 2.05352C12.8724 1.91347 12.5564 1.82237 12.0253 1.77423C11.4847 1.72528 10.7888 1.7254 9.80164 1.7254H7.71472C6.7562 1.72558 5.92665 2.27697 5.52332 3.07891H4.07019C4.54221 1.51132 5.9932 0.368186 7.71472 0.367975H9.80164Z",fill:"currentColor"})}),C5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M9.94076 1.34942C10.7047 0.90231 11.6503 0.902415 12.4143 1.34942C12.7061 1.52015 12.9688 1.79118 13.3104 2.13284C13.6521 2.47448 13.9231 2.73721 14.0939 3.02894C14.5408 3.79294 14.5409 4.73856 14.0939 5.50251C13.9231 5.79415 13.652 6.05704 13.3104 6.39861L6.65932 13.0497C6.28068 13.4284 6.00695 13.7108 5.66543 13.9097C5.32391 14.1085 4.94315 14.2074 4.42705 14.3498L3.24394 14.6761C2.77527 14.8054 2.34538 14.9262 2.00131 14.9684C1.65196 15.0112 1.17964 15.0013 0.810764 14.6325C0.441921 14.2637 0.432107 13.7913 0.47486 13.442C0.517035 13.0979 0.6379 12.668 0.767181 12.1993L1.09352 11.0162C1.23588 10.5001 1.33481 10.1193 1.5336 9.77784C1.7325 9.43632 2.0149 9.1626 2.39355 8.78395L9.04466 2.13284C9.38625 1.79126 9.64911 1.52016 9.94076 1.34942ZM15.5427 14.8398H7.55223L8.96707 13.425H15.5427V14.8398ZM3.39382 9.78422C2.965 10.213 2.84244 10.3436 2.75709 10.49C2.67183 10.6366 2.61862 10.8079 2.45733 11.3925L2.13099 12.5756C2.00183 13.0439 1.92194 13.3419 1.88863 13.5536C2.10041 13.5204 2.39872 13.4416 2.86764 13.3123L4.05075 12.9859C4.63544 12.8246 4.80669 12.7715 4.95323 12.6862C5.09968 12.6008 5.23022 12.4783 5.65905 12.0494L10.721 6.98644L8.45577 4.72121L3.39382 9.78422ZM11.7 2.57079C11.3774 2.38198 10.9777 2.38198 10.6551 2.57079C10.5602 2.62647 10.4487 2.72931 10.0449 3.13311L9.45604 3.72094L11.7213 5.98617L12.3102 5.39833C12.7139 4.99457 12.8168 4.88307 12.8725 4.78818C13.0613 4.46561 13.0612 4.06585 12.8725 3.74326C12.8169 3.64827 12.7146 3.53752 12.3102 3.13311C11.9057 2.72863 11.795 2.6264 11.7 2.57079Z",fill:"currentColor"})}),w5=({size:e=14,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M7.06431 5.93342C7.68763 5.93342 8.19307 6.43904 8.19322 7.06233C8.19322 7.68573 7.68772 8.19123 7.06431 8.19123C6.44099 8.19113 5.9354 7.68567 5.9354 7.06233C5.93555 6.43911 6.44108 5.93353 7.06431 5.93342Z",fill:"currentColor"}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.6815 0.963693C10.1169 0.447019 11.6266 0.374829 12.5633 1.31135C13.5 2.24805 13.4277 3.75776 12.911 5.19319C12.7126 5.74431 12.4386 6.31796 12.0965 6.89729C12.4969 7.54638 12.8141 8.19018 13.036 8.80647C13.5527 10.2419 13.6251 11.7516 12.6883 12.6883C11.7516 13.625 10.242 13.5527 8.8065 13.036C8.19022 12.8141 7.54641 12.4969 6.89732 12.0965C6.31797 12.4386 5.74435 12.7125 5.19322 12.911C3.75777 13.4276 2.2481 13.5 1.31138 12.5633C0.374859 11.6266 0.447049 10.1168 0.963724 8.68147C1.17185 8.10338 1.46321 7.50063 1.82896 6.8924C1.52182 6.35711 1.27235 5.82825 1.08872 5.31819C0.572068 3.88278 0.499714 2.37306 1.43638 1.43635C2.37308 0.499655 3.8828 0.572044 5.31822 1.08869C5.82828 1.27232 6.35715 1.5218 6.89243 1.82893C7.50066 1.46318 8.10341 1.17181 8.6815 0.963693ZM11.3573 8.01154C10.9083 8.62253 10.3901 9.22873 9.80943 9.8094C9.22877 10.3901 8.62255 10.9083 8.01158 11.3572C8.4257 11.5841 8.8287 11.7688 9.21275 11.9071C10.5456 12.3868 11.4246 12.2547 11.8397 11.8397C12.2548 11.4246 12.3869 10.5456 11.9071 9.21272C11.7688 8.82866 11.5841 8.42568 11.3573 8.01154ZM2.56529 8.02912C2.37344 8.39322 2.21495 8.74796 2.09263 9.08772C1.61291 10.4204 1.74512 11.2995 2.16001 11.7147C2.57505 12.1297 3.45415 12.2618 4.78697 11.7821C5.11057 11.6656 5.44786 11.5164 5.7938 11.3367C5.249 10.9223 4.70922 10.4533 4.19029 9.9344C3.57578 9.31987 3.03169 8.67633 2.56529 8.02912ZM6.90708 3.2469C6.24065 3.70479 5.5646 4.26321 4.91392 4.91389C4.26325 5.56456 3.70482 6.24063 3.24693 6.90705C3.72674 7.63325 4.32777 8.37459 5.03892 9.08576C5.64943 9.69627 6.28183 10.2265 6.90806 10.6678C7.59368 10.2025 8.2908 9.63076 8.96079 8.96076C9.6308 8.29075 10.2025 7.59366 10.6678 6.90803C10.2265 6.2818 9.69631 5.6494 9.08579 5.03889C8.37462 4.32773 7.63328 3.72672 6.90708 3.2469ZM11.7147 2.15998C11.2996 1.74509 10.4204 1.61288 9.08775 2.0926C8.74835 2.21479 8.39382 2.37271 8.03013 2.56428C8.67728 3.03065 9.31995 3.5758 9.93443 4.19026C10.4534 4.7092 10.9223 5.24896 11.3368 5.79377C11.5164 5.44785 11.6656 5.11052 11.7821 4.78694C12.2618 3.45416 12.1297 2.57502 11.7147 2.15998ZM4.91197 2.2176C3.57922 1.73788 2.70004 1.86995 2.28501 2.28498C1.87001 2.70003 1.73791 3.5792 2.21763 4.91194C2.31709 5.18822 2.44112 5.47427 2.58677 5.7674C3.01931 5.1887 3.51474 4.6158 4.06529 4.06526C4.61584 3.5147 5.18872 3.01928 5.76743 2.58674C5.47431 2.4411 5.18824 2.31706 4.91197 2.2176Z",fill:"currentColor"})]}),k5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M5.5498 9.75V5H6.9502V9.75C6.9502 10.3299 7.4201 10.7998 8 10.7998C8.5799 10.7998 9.0498 10.3299 9.0498 9.75V4.5C9.0498 2.9536 7.7964 1.7002 6.25 1.7002C4.7036 1.7002 3.4502 2.9536 3.4502 4.5V9.75C3.4502 12.2629 5.4871 14.2998 8 14.2998C10.5129 14.2998 12.5498 12.2629 12.5498 9.75V4H13.9502V9.75C13.9502 13.0361 11.2861 15.7002 8 15.7002C4.71391 15.7002 2.0498 13.0361 2.0498 9.75V4.5C2.04981 2.1804 3.9304 0.299806 6.25 0.299805C8.5696 0.299805 10.4502 2.1804 10.4502 4.5V9.75C10.4502 11.1031 9.3531 12.2002 8 12.2002C6.6469 12.2002 5.5498 11.1031 5.5498 9.75Z",fill:"currentColor"})}),_5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.3368 1.53569L11.931 4.43172H14.8086V5.79673H11.7404L11.1962 9.67859H14.2839V11.0436H11.0056L10.4994 14.6529L9.14873 14.4643L9.62731 11.0436H5.75876L5.25252 14.6529L3.90186 14.4643L4.38043 11.0436H1.69141V9.67859H4.57104L5.11417 5.79673H2.21609V4.43172H5.30581L5.73724 1.34713L7.08995 1.53569L6.68414 4.43172H10.5527L10.9841 1.34713L12.3368 1.53569ZM5.94937 9.67859H9.81791L10.361 5.79673H6.49353L5.94937 9.67859Z",fill:"currentColor"})}),S5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",children:c.jsx("path",{transform:"translate(1.292 1.3)",d:"M10.3232 9.18164C11.2868 9.18164 12.0985 9.82833 12.3506 10.7109L13.415 10.7109L13.415 11.8711L12.3496 11.8711C12.0971 12.7532 11.2864 13.3994 10.3232 13.3994C9.36031 13.3992 8.55012 12.7531 8.29785 11.8711L0 11.8711L0 10.7109L8.29688 10.7109C8.54876 9.82845 9.35988 9.18186 10.3232 9.18164ZM10.3232 10.3418C9.7999 10.3421 9.37534 10.7667 9.375 11.29C9.375 11.8137 9.79969 12.239 10.3232 12.2393C10.847 12.2393 11.2725 11.8138 11.2725 11.29C11.2721 10.7666 10.8468 10.3418 10.3232 10.3418ZM12.4326 11.291C12.4326 11.3549 12.4284 11.418 12.4229 11.4805C12.4287 11.4181 12.4326 11.355 12.4326 11.291ZM8.21484 11.2832C8.21484 11.2856 8.21484 11.2886 8.21484 11.291L8.21484 11.29C8.21484 11.2878 8.21484 11.2855 8.21484 11.2832ZM3.08301 4.59082C4.04605 4.59095 4.85696 5.23717 5.10938 6.11914L13.415 6.11914L13.415 7.2793L5.11035 7.2793C4.85833 8.16202 4.04648 8.80846 3.08301 8.80859C2.11972 8.80843 1.30963 8.16179 1.05762 7.2793L0 7.2793L0 6.11914L1.05762 6.11914C1.30994 5.23728 2.12006 4.59098 3.08301 4.59082ZM3.08301 5.75098C2.55962 5.75117 2.13512 6.17587 2.13477 6.69922C2.13477 7.22287 2.5594 7.64824 3.08301 7.64844C3.60665 7.64828 4.03223 7.2229 4.03223 6.69922C4.03187 6.17585 3.60643 5.75113 3.08301 5.75098ZM5.19238 6.69922C5.19238 6.763 5.18816 6.82633 5.18262 6.88867C5.18846 6.82629 5.19238 6.76313 5.19238 6.69922C5.19236 6.63495 5.18853 6.57152 5.18262 6.50879C5.18826 6.57154 5.19236 6.635 5.19238 6.69922ZM0.982422 6.52344C0.977382 6.58136 0.97463 6.63999 0.974609 6.69922C0.974609 6.75775 0.977496 6.81579 0.982422 6.87305C0.977758 6.81579 0.974609 6.75767 0.974609 6.69922C0.974628 6.64 0.977618 6.58142 0.982422 6.52344ZM10.3232 0C11.2869 0 12.0986 0.646596 12.3506 1.5293L13.415 1.5293L13.415 2.68945L12.3496 2.68945C12.363 2.64266 12.3754 2.59488 12.3857 2.54688C12.1838 3.50118 11.3376 4.21777 10.3232 4.21777C9.36037 4.21756 8.55018 3.57139 8.29785 2.68945L0 2.68945L0 1.5293L8.29688 1.5293C8.5487 0.646717 9.35981 0.00021854 10.3232 0ZM10.3232 1.16016C9.79984 1.16042 9.37524 1.58499 9.375 2.1084C9.375 2.63201 9.79969 3.05735 10.3232 3.05762C10.847 3.05762 11.2725 2.63217 11.2725 2.1084C11.2722 1.58483 10.8469 1.16016 10.3232 1.16016ZM12.4229 2.29883C12.4287 2.23641 12.4326 2.17331 12.4326 2.10938C12.4326 2.17327 12.4284 2.23638 12.4229 2.29883ZM8.21484 2.10938L8.21484 2.1084L8.21484 2.10938ZM8.22266 1.93359C8.21785 1.98897 8.21506 2.04499 8.21484 2.10156C8.21503 2.04501 8.2181 1.98902 8.22266 1.93359ZM8.22266 11.1162C8.2179 11.1713 8.21507 11.227 8.21484 11.2832C8.21504 11.227 8.21814 11.1713 8.22266 11.1162Z",fill:"currentColor"})}),b5=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",children:[c.jsx("path",{transform:"translate(9.52 2.52)",d:"M3.55246 0L3.55246 2.44252L6 2.44252L6 3.55748L3.55246 3.55748L3.55246 6L2.43834 6L2.43834 3.55748L0 3.55748L0 2.44252L2.43834 2.44252L2.43834 0L3.55246 0Z",fill:"currentColor"}),c.jsx("path",{transform:"translate(0.3496 2.35)",d:"M4.76367 0C5.36861 1.80598e-05 5.93113 0.310294 6.25488 0.821289L6.78027 1.64941C6.79685 1.67558 6.81791 1.69775 6.83887 1.71973C6.72186 2.15521 6.65702 2.61192 6.65137 3.08301C6.25601 2.96045 5.90909 2.70478 5.68164 2.3457L5.15723 1.5166C5.07183 1.38189 4.92318 1.3008 4.76367 1.30078L2.32422 1.30078C1.7589 1.30078 1.30078 1.7589 1.30078 2.32422L1.30078 10.1338C1.30078 10.6991 1.7589 11.1572 2.32422 11.1572L11.9766 11.1572C12.5419 11.1572 13 10.6991 13 10.1338L13 8.58398C13.4545 8.5135 13.8903 8.38748 14.3008 8.21289L14.3008 10.1338C14.3008 11.4171 13.2598 12.458 11.9766 12.458L2.32422 12.458C1.04093 12.458 0 11.4171 0 10.1338L0 2.32422C0 1.04093 1.04093 0 2.32422 0L4.76367 0Z",fill:"currentColor"})]}),Y1=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",children:[c.jsx("path",{d:"M5.19629 1.57104C5.81144 1.5711 6.38623 1.8786 6.72754 2.39038L7.19922 3.09839C7.28454 3.22635 7.42824 3.30344 7.58203 3.30347H12.1699C13.5039 3.30348 14.5859 4.38548 14.5859 5.71948V6.62671C15.2694 7.02689 15.6605 7.85012 15.4385 8.68726L14.3848 12.658C14.1037 13.7164 13.1449 14.4527 12.0498 14.4529H2.91699C1.51651 14.4529 0.451662 13.2814 0.501954 11.9519V3.98706C0.501954 2.65305 1.58396 1.57104 2.91797 1.57104H5.19629ZM3.7793 7.75562C3.30994 7.75562 2.89883 8.07153 2.77832 8.52515L1.91602 11.7722C1.74167 12.4291 2.23734 13.073 2.91699 13.073H12.0498C12.5191 13.0728 12.9304 12.757 13.0508 12.3035L14.1045 8.33374C14.1819 8.04202 13.9619 7.756 13.6602 7.75562H3.7793ZM2.91797 2.9519C2.34625 2.9519 1.88281 3.41534 1.88281 3.98706V7.2937C2.33068 6.7269 3.02249 6.37476 3.7793 6.37476H13.2051V5.71948C13.2051 5.14777 12.7416 4.68434 12.1699 4.68433H7.58203C6.96675 4.6843 6.39209 4.37595 6.05078 3.86401L5.5791 3.15601C5.49379 3.02821 5.34995 2.95196 5.19629 2.9519H2.91797Z",fill:"currentColor"}),c.jsx("path",{opacity:"0.2",d:"M13.6602 7.75525C13.9618 7.7556 14.1815 8.04179 14.1045 8.33337L13.0508 12.3031C12.9304 12.7567 12.5191 13.0725 12.0498 13.0726H2.91701C2.23744 13.0725 1.7417 12.4287 1.91603 11.7719L2.77834 8.52478C2.89898 8.07146 3.31018 7.75532 3.77931 7.75525H13.6602ZM5.1963 2.95154C5.34985 2.95159 5.49377 3.02803 5.57912 3.15564L6.0508 3.86365C6.39205 4.37553 6.96685 4.68385 7.58205 4.68396H12.1699C12.7416 4.68396 13.2049 5.14754 13.2051 5.71912V6.37439H3.77931C3.02267 6.37444 2.33067 6.72671 1.88283 7.29333V3.98669C1.88299 3.4152 2.34649 2.95168 2.91798 2.95154H5.1963Z",fill:"currentColor"})]}),E5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",children:c.jsx("path",{transform:"translate(1.5 2.429)",d:"M5.05582 0.518756L4.50669 0.86654L5.05582 0.518756ZM13 9.4837L13.65 9.4837L13.65 3.53962L13 3.53962L12.35 3.53962L12.35 9.4837L13 9.4837ZM11.3264 1.86603L11.3264 1.21603L6.52313 1.21603L6.52313 1.86603L6.52313 2.51603L11.3264 2.51603L11.3264 1.86603ZM5.58054 1.34727L6.12968 0.999489L5.60495 0.170972L5.05582 0.518756L4.50669 0.86654L5.03141 1.69506L5.58054 1.34727ZM4.11323 1.23058e-13L4.11323 -0.65L1.67359 -0.65L1.67359 5.00699e-14L1.67359 0.65L4.11323 0.65L4.11323 1.23058e-13ZM0 1.67359L-0.65 1.67359L-0.65 9.4837L0 9.4837L0.65 9.4837L0.65 1.67359L0 1.67359ZM11.3264 11.1573L11.3264 10.5073L1.67359 10.5073L1.67359 11.1573L1.67359 11.8073L11.3264 11.8073L11.3264 11.1573ZM0 9.4837L-0.65 9.4837C-0.65 10.767 0.390308 11.8073 1.67359 11.8073L1.67359 11.1573L1.67359 10.5073C1.10828 10.5073 0.65 10.049 0.65 9.4837L0 9.4837ZM1.67359 5.00699e-14L1.67359 -0.65C0.390307 -0.65 -0.65 0.390309 -0.65 1.67359L0 1.67359L0.65 1.67359C0.65 1.10828 1.10828 0.65 1.67359 0.65L1.67359 5.00699e-14ZM5.05582 0.518756L5.60495 0.170972C5.28121 -0.340193 4.71829 -0.65 4.11323 -0.65L4.11323 1.23058e-13L4.11323 0.65C4.27282 0.65 4.4213 0.731715 4.50669 0.86654L5.05582 0.518756ZM6.52313 1.86603L6.52313 1.21603C6.36354 1.21603 6.21507 1.13431 6.12968 0.999489L5.58054 1.34727L5.03141 1.69506C5.35515 2.20622 5.91808 2.51603 6.52313 2.51603L6.52313 1.86603ZM13 3.53962L13.65 3.53962C13.65 2.25634 12.6097 1.21603 11.3264 1.21603L11.3264 1.86603L11.3264 2.51603C11.8917 2.51603 12.35 2.97431 12.35 3.53962L13 3.53962ZM13 9.4837L12.35 9.4837C12.35 10.049 11.8917 10.5073 11.3264 10.5073L11.3264 11.1573L11.3264 11.8073C12.6097 11.8073 13.65 10.767 13.65 9.4837L13 9.4837Z",fill:"currentColor"})}),j5=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M11.3496 8C11.3496 6.14985 9.85015 4.65039 8 4.65039C6.14985 4.65039 4.65039 6.14985 4.65039 8C4.65039 9.85015 6.14985 11.3496 8 11.3496C9.85015 11.3496 11.3496 9.85015 11.3496 8ZM12.6504 8C12.6504 10.5681 10.5681 12.6504 8 12.6504C5.43188 12.6504 3.34961 10.5681 3.34961 8C3.34961 5.43188 5.43188 3.34961 8 3.34961C10.5681 3.34961 12.6504 5.43188 12.6504 8Z",fill:"currentColor"}),c.jsx("path",{d:"M8.65039 0.5V2.5H7.34961V0.5H8.65039Z",fill:"currentColor"}),c.jsx("path",{d:"M8.65039 13.5V15.5H7.34961V13.5H8.65039Z",fill:"currentColor"}),c.jsx("path",{d:"M3.15808 2.24035L4.57229 3.65456L3.6525 4.57435L2.23829 3.16014L3.15808 2.24035Z",fill:"currentColor"}),c.jsx("path",{d:"M12.3505 11.4327L13.7647 12.8469L12.8449 13.7667L11.4307 12.3525L12.3505 11.4327Z",fill:"currentColor"}),c.jsx("path",{d:"M2.24537 12.8469L3.65958 11.4327L4.57937 12.3525L3.16516 13.7667L2.24537 12.8469Z",fill:"currentColor"}),c.jsx("path",{d:"M11.4377 3.65455L12.852 2.24033L13.7718 3.16012L12.3575 4.57434L11.4377 3.65455Z",fill:"currentColor"}),c.jsx("path",{d:"M0.5 7.35461H2.5V8.6554H0.5L0.5 7.35461Z",fill:"currentColor"}),c.jsx("path",{d:"M13.5 7.35461H15.5V8.6554H13.5V7.35461Z",fill:"currentColor"})]}),L5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M13.2764 9.52324C12.5607 9.97754 11.7177 10.242 10.7812 10.242C8.11386 10.2419 5.95042 8.07997 5.9502 5.41289C5.9502 4.48128 6.21453 3.61071 6.67188 2.87285C4.30332 3.4658 2.54992 5.60845 2.5498 8.16093C2.5498 11.1712 4.99103 13.6102 8 13.6102C10.5383 13.6102 12.6709 11.8724 13.2764 9.52324ZM7.05078 5.41289C7.051 7.47224 8.72116 9.1423 10.7812 9.14238C11.9248 9.14238 12.887 8.63397 13.5781 7.8084C13.7266 7.63106 13.9701 7.56547 14.1875 7.64433C14.4049 7.72329 14.5497 7.9297 14.5498 8.16093C14.5498 11.7766 11.6161 14.7098 8 14.7098C4.38402 14.7098 1.4502 11.7792 1.4502 8.16093C1.45033 4.54322 4.3812 1.61015 8 1.61015C8.23027 1.61015 8.43585 1.75352 8.51562 1.96953C8.59536 2.18554 8.53241 2.42829 8.35742 2.57793C7.55573 3.26311 7.05078 4.27876 7.05078 5.41289Z",fill:"currentColor"})}),N5=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M12.1665 13.5811V14.7803H3.66651V13.5811H12.1665Z",fill:"currentColor"}),c.jsx("path",{d:"M13.4453 7.02379C13.4453 6.04702 13.4452 5.3616 13.3887 4.83434C13.3333 4.31828 13.2302 4.02378 13.0723 3.80309C12.9446 3.62475 12.7877 3.46883 12.6094 3.34117C12.3887 3.18328 12.0942 3.08007 11.5781 3.02477C11.0508 2.96829 10.3655 2.96715 9.38867 2.96715H6.61035C5.63359 2.96715 4.94816 2.96827 4.4209 3.02477C3.90486 3.0801 3.61034 3.18321 3.38965 3.34117C3.21143 3.46878 3.05534 3.62487 2.92774 3.80309C2.76977 4.02377 2.66667 4.3183 2.61133 4.83434C2.55483 5.3616 2.55371 6.04702 2.55371 7.02379C2.55371 8.0006 2.55485 8.68596 2.61133 9.21324C2.66663 9.72936 2.76983 10.0238 2.92774 10.2445C3.0554 10.4228 3.21131 10.5797 3.38965 10.7074C3.61034 10.8654 3.90484 10.9685 4.4209 11.0238C4.94816 11.0803 5.63359 11.0804 6.61035 11.0804H9.38867C10.3654 11.0804 11.0508 11.0803 11.5781 11.0238C12.0941 10.9685 12.3887 10.8652 12.6094 10.7074C12.7877 10.5797 12.9446 10.4229 13.0723 10.2445C13.2301 10.0238 13.3334 9.72927 13.3887 9.21324C13.4452 8.68596 13.4453 8.00058 13.4453 7.02379ZM14.6455 7.02379C14.6455 7.97428 14.646 8.73509 14.5811 9.34117C14.5149 9.95828 14.3756 10.4858 14.0479 10.9437C13.8436 11.229 13.5938 11.4788 13.3086 11.683C12.8507 12.0108 12.3232 12.15 11.7061 12.2162C11.1 12.2811 10.3391 12.2806 9.38867 12.2806H6.61035C5.66018 12.2806 4.89991 12.2811 4.29395 12.2162C3.67684 12.15 3.14935 12.0108 2.69141 11.683C2.40613 11.4788 2.15639 11.229 1.95215 10.9437C1.62436 10.4858 1.4841 9.95828 1.41797 9.34117C1.35305 8.73511 1.35449 7.97424 1.35449 7.02379C1.35449 6.07366 1.35308 5.31333 1.41797 4.70738C1.4841 4.09028 1.62436 3.56279 1.95215 3.10485C2.15638 2.81956 2.40613 2.56982 2.69141 2.36559C3.14935 2.03779 3.67684 1.89753 4.29395 1.83141C4.8999 1.76652 5.66022 1.76793 6.61035 1.76793H9.38867C10.3391 1.76793 11.1 1.76649 11.7061 1.83141C12.3232 1.89753 12.8507 2.03779 13.3086 2.36559C13.5939 2.56982 13.8436 2.81957 14.0479 3.10485C14.3756 3.56279 14.5149 4.09028 14.5811 4.70738C14.646 5.31335 14.6455 6.07362 14.6455 7.02379Z",fill:"currentColor"})]}),Cd=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0997 8.54554C12.2905 8.54989 12.3541 8.58056 12.4535 8.74614L12.8849 9.46387C12.9851 9.63071 13.0464 9.66013 13.2388 9.66447H14.1138C14.3417 9.66448 14.3512 9.66937 14.4686 9.86507L14.892 10.5717C14.9942 10.7422 14.9948 10.8247 14.892 10.9961L14.4756 11.6906C14.3741 11.8677 14.3694 11.9379 14.4756 12.115L14.892 12.8096C14.9942 12.9801 14.9947 13.0625 14.892 13.234L14.4686 13.9406C14.3643 14.1028 14.3063 14.1354 14.1138 14.1412H13.2388C13.0465 14.1456 12.985 14.1752 12.8849 14.3418L12.4535 15.0595C12.353 15.2195 12.2895 15.2558 12.0997 15.2601H11.2237C10.9962 15.2601 10.9871 15.2548 10.8699 15.0595L10.4384 14.3418C10.3383 14.175 10.2767 14.1456 10.0846 14.1412H9.2096C9.01854 14.1355 8.95761 14.1006 8.85477 13.9406L8.43139 13.234C8.32562 13.0576 8.33148 12.9862 8.43139 12.8096L8.84771 12.115C8.95165 11.9416 8.94659 11.863 8.84771 11.6906L8.43139 10.9961C8.32767 10.8232 8.33411 10.7437 8.43139 10.5717L8.85477 9.86507C8.95447 9.69891 9.01875 9.67017 9.2096 9.66447H10.0846C10.2741 9.66441 10.3414 9.62547 10.4384 9.46387L10.8699 8.74614C10.987 8.55106 10.9963 8.54554 11.2237 8.54554H12.0997ZM11.6612 10.232C11.3326 10.7798 10.8155 11.0948 10.1743 11.106C10.4443 11.61 10.4425 12.1976 10.1743 12.6987C10.803 12.7096 11.3391 13.0359 11.6612 13.5727C11.9855 13.0323 12.5131 12.7098 13.148 12.6987C12.879 12.196 12.8789 11.6086 13.148 11.106C12.5076 11.0948 11.9894 10.7794 11.6612 10.232Z",fill:"currentColor"}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.51205 0.790627C9.19055 0.790649 10.7401 1.0691 11.892 1.54364C12.4664 1.78029 12.9719 2.07885 13.3436 2.4408C13.7171 2.80467 13.9916 3.27253 13.9918 3.82384V7.90442C13.6067 7.69532 13.1907 7.53597 12.7529 7.43366V5.66454C12.4928 5.82898 12.2028 5.97601 11.892 6.10405C10.74 6.57865 9.19071 6.85706 7.51205 6.85706C5.8337 6.85703 4.285 6.57852 3.13309 6.10405C2.82215 5.97593 2.53164 5.8291 2.27121 5.66454V7.4135C2.27134 7.75678 2.6066 8.27106 3.62502 8.73405C4.58641 9.17097 5.95762 9.45591 7.50499 9.45681C7.24582 9.83133 7.03684 10.2434 6.88706 10.6826C5.44388 10.6162 4.12516 10.3216 3.11192 9.86104C2.81708 9.72698 2.53185 9.56866 2.27121 9.38928V11.2542C2.27158 11.5974 2.60697 12.1109 3.62502 12.5737C4.41933 12.9347 5.4937 13.1898 6.71569 13.2693C6.80349 13.7128 6.9513 14.1345 7.14814 14.5273C5.60324 14.4862 4.18593 14.1889 3.11192 13.7007C2.01039 13.1998 1.03366 12.3814 1.03333 11.2542V3.82384C1.03352 3.27273 1.30721 2.80461 1.68049 2.4408C2.05211 2.07893 2.55887 1.78026 3.13309 1.54364C4.28492 1.06926 5.83393 0.790683 7.51205 0.790627ZM7.51205 2.02851C5.95492 2.02857 4.57354 2.29079 3.60486 2.68979C3.11958 2.88977 2.76667 3.11253 2.5454 3.32788C2.32671 3.54101 2.2714 3.7089 2.27121 3.82384C2.27121 3.93882 2.32624 4.10625 2.5454 4.3198C2.76667 4.53527 3.11927 4.75781 3.60486 4.9579C4.5736 5.35699 5.95467 5.61914 7.51205 5.61918C9.06942 5.61918 10.4505 5.35695 11.4192 4.9579C11.9051 4.75773 12.2584 4.53536 12.4797 4.3198C12.6988 4.10627 12.7529 3.93882 12.7529 3.82384C12.7527 3.70889 12.6984 3.54104 12.4797 3.32788C12.2584 3.11239 11.9049 2.88989 11.4192 2.68979C10.4505 2.29079 9.06925 2.02853 7.51205 2.02851Z",fill:"currentColor"})]}),N1=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("ellipse",{cx:"8",cy:"3.6",rx:"5.75",ry:"2.4",stroke:"currentColor",strokeWidth:"1.25"}),c.jsx("path",{d:"M2.25 3.6V12.3A5.75 2.4 0 0 0 13.75 12.3V3.6",stroke:"currentColor",strokeWidth:"1.25"}),c.jsx("path",{d:"M2.25 7.95A5.75 2.4 0 0 0 13.75 7.95",stroke:"currentColor",strokeWidth:"1.25"})]}),I5=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M12.5113 15.4067C12.4395 15.6249 12.1308 15.6249 12.059 15.4067L11.643 14.1416C11.454 13.567 11.0033 13.1164 10.4288 12.9274L9.16369 12.5113C8.94544 12.4395 8.94544 12.1308 9.16369 12.059L10.4288 11.643C11.0033 11.454 11.454 11.0033 11.643 10.4288L12.059 9.16369C12.1308 8.94544 12.4395 8.94544 12.5113 9.16369L12.9274 10.4288C13.1164 11.0033 13.567 11.454 14.1416 11.643L15.4067 12.059C15.6249 12.1308 15.6249 12.4395 15.4067 12.5113L14.1416 12.9274C13.567 13.1164 13.1164 13.567 12.9274 14.1416L12.5113 15.4067Z",fill:"currentColor"}),c.jsx("path",{d:"M9.02246 0.546878C9.9822 0.546878 10.7564 0.545403 11.374 0.612307C12.0042 0.680586 12.5515 0.826244 13.0273 1.17188C13.3052 1.37376 13.5501 1.61868 13.752 1.89649C14.0975 2.37225 14.2432 2.91984 14.3115 3.54981C14.3784 4.16727 14.377 4.94206 14.377 5.90137V8.51367C13.9611 8.29533 13.5071 8.13985 13.0273 8.06055V5.90137C13.0273 4.9121 13.0259 4.22322 12.9688 3.69532C12.9129 3.18044 12.8098 2.89782 12.6592 2.69043C12.5406 2.52724 12.3966 2.38326 12.2334 2.26465C12.026 2.11404 11.7437 2.0109 11.2285 1.95508C10.7005 1.89789 10.0122 1.89649 9.02246 1.89649H6.55371C5.56395 1.89649 4.87569 1.89787 4.34766 1.95508C3.83242 2.01092 3.55022 2.11398 3.34278 2.26465C3.17953 2.38329 3.03564 2.52719 2.91699 2.69043C2.76642 2.89782 2.66325 3.18042 2.60742 3.69532C2.55027 4.22322 2.54883 4.9121 2.54883 5.90137V10.0986C2.54883 11.0878 2.55031 11.7768 2.60742 12.3047C2.66326 12.8196 2.76642 13.1032 2.91699 13.3105C3.03558 13.4736 3.17966 13.6178 3.34278 13.7363C3.5502 13.8869 3.83265 13.9901 4.34766 14.0459C4.87568 14.1031 5.56398 14.1035 6.55371 14.1035H8.08399C8.27443 14.6025 8.55077 15.0585 8.89551 15.4541H6.55371C5.59402 15.4541 4.81976 15.4546 4.20215 15.3877C3.57204 15.3194 3.02468 15.1738 2.54883 14.8281C2.27111 14.6263 2.02606 14.3813 1.82422 14.1035C1.47883 13.6278 1.33293 13.08 1.26465 12.4502C1.19783 11.8327 1.19922 11.0579 1.19922 10.0986V5.90137C1.19922 4.94206 1.1978 4.16727 1.26465 3.54981C1.33295 2.91984 1.47867 2.37225 1.82422 1.89649C2.02613 1.61864 2.27098 1.37379 2.54883 1.17188C3.02472 0.826181 3.57197 0.6806 4.20215 0.612307C4.81976 0.545393 5.594 0.546877 6.55371 0.546878H9.02246ZM9.19629 9.14649H4.5459V7.84571H9.19629V9.14649ZM11.0303 6.10645H4.5459V4.80567H11.0303V6.10645Z",fill:"currentColor"})]}),P5=({size:e=20,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.8659 2.05975C17.2603 2.05995 18.3913 3.19096 18.3914 4.58527V5.4874C18.3914 6.02747 18.2192 6.52672 17.9303 6.93735C17.9336 6.96524 17.9388 6.99318 17.9388 7.02195V12.8884C17.9388 13.6345 17.9395 14.2379 17.8996 14.7254C17.8642 15.1593 17.7936 15.5499 17.6373 15.9141L17.5654 16.0685C17.278 16.6328 16.8405 17.1046 16.3038 17.434L16.0679 17.5661C15.66 17.7739 15.2196 17.8598 14.7237 17.9003C14.2362 17.9401 13.6327 17.9405 12.8867 17.9405H7.11122C6.36511 17.9405 5.76171 17.9401 5.27418 17.9003C4.84051 17.8649 4.44949 17.7952 4.08545 17.6391L3.93104 17.5661C3.36673 17.2785 2.89392 16.8414 2.56465 16.3044L2.43245 16.0685C2.22473 15.6608 2.13878 15.2211 2.09825 14.7254C2.05841 14.2379 2.05912 13.6345 2.05912 12.8884V7.02195C2.05912 6.99284 2.06422 6.96449 2.06758 6.93629C1.77931 6.52592 1.60858 6.02687 1.60858 5.4874V4.58527C1.60876 3.19084 2.73962 2.05975 4.1341 2.05975H15.8659ZM16.4984 7.92936C16.296 7.98169 16.0847 8.01288 15.8659 8.01291H4.1341C3.91478 8.01291 3.70246 7.98194 3.49955 7.92936V12.8884C3.49955 13.6582 3.50053 14.1927 3.53445 14.608C3.56769 15.0146 3.62923 15.244 3.71635 15.415L3.7925 15.5514C3.98339 15.8627 4.25749 16.1165 4.58464 16.2833L4.72529 16.3435C4.88095 16.3993 5.08638 16.4402 5.39158 16.4651C5.80685 16.4991 6.34138 16.5001 7.11122 16.5001H12.8867C13.6564 16.5001 14.1911 16.499 14.6063 16.4651C15.0128 16.432 15.2423 16.3703 15.4133 16.2833L15.5508 16.2061C15.8618 16.0152 16.116 15.7419 16.2827 15.415L16.3429 15.2732C16.3985 15.1177 16.4396 14.9128 16.4645 14.608C16.4985 14.1927 16.4984 13.6583 16.4984 12.8884V7.92936ZM4.1341 3.50019C3.53511 3.50019 3.0492 3.98631 3.04902 4.58527V5.4874C3.04902 6.08649 3.535 6.57248 4.1341 6.57248H15.8659C16.4648 6.57228 16.951 6.08638 16.951 5.4874V4.58527C16.9509 3.98644 16.4647 3.50038 15.8659 3.50019H4.1341Z",fill:"currentColor"}),c.jsx("path",{d:"M12.7962 12.5661V11.0832H7.20548V12.5661L12.7962 12.5661Z",fill:"currentColor"})]}),M5="_root_1axg2_9",T5="_collapsed_1axg2_6",z5="_quietBars_1axg2_20",D5="_fading_1axg2_4",R5="_wide_1axg2_53",A5="_railIn_1axg2_64",F5="_iconButton_1axg2_66",O5="_newSession_1axg2_67",$5="_panelList_1axg2_68",B5="_regionArea_1axg2_69",H5="_footArea_1axg2_73",V5="_logoRow_1axg2_91",U5="_brand_1axg2_115",W5="_brandIdentity_1axg2_130",q5="_brandMark_1axg2_138",Z5="_brandName_1axg2_145",Q5="_fallbackBrandName_1axg2_157",G5="_toggle_1axg2_208",K5="_panelIcon_1axg2_208",Y5="_railMark_1axg2_216",X5="_newSessionLabel_1axg2_290",J5="_panelRow_1axg2_308",e6="_panelActive_1axg2_330",t6="_panelGlyph_1axg2_341",n6="_panelTitle_1axg2_348",r6="_settingsArea_1axg2_396",i6="_footerActions_1axg2_397",Ze={root:M5,collapsed:T5,quietBars:z5,fading:D5,wide:R5,railIn:A5,iconButton:F5,newSession:O5,panelList:$5,regionArea:B5,footArea:H5,logoRow:V5,brand:U5,brandIdentity:W5,brandMark:q5,brandName:Z5,fallbackBrandName:Q5,toggle:G5,panelIcon:K5,railMark:Y5,newSessionLabel:X5,panelRow:J5,panelActive:e6,panelGlyph:t6,panelTitle:n6,settingsArea:r6,footerActions:i6},l6=150,o6=2e3;function s6({id:e,label:r,wide:i,usePanelInfo:o,selectPanel:s,renderSlot:u}){const d=o(f=>f.activePanelId===e);return c.jsx(j1,{label:r,delayMs:500,disabled:i,children:c.jsxs("button",{type:"button",className:ot(Ze.panelRow,d&&Ze.panelActive),"aria-label":r,"aria-current":d?"page":void 0,onClick:()=>{s(e)},children:[c.jsx("span",{className:Ze.panelGlyph,"aria-hidden":"true",children:u("sidebar.panellist",{size:i?16:18,active:d},{only:e})}),i&&c.jsx("span",{className:ot(Ze.panelTitle,Ze.wide),children:r})]})})}function a6({collapsed:e,width:r,startSession:i,toggleSidebar:o,selectPanel:s,usePanels:u,usePanelInfo:d,t:f,renderSlot:p}){const m=u(B=>B),[y,x]=E.useState(e);E.useEffect(()=>{if(!e){x(!1);return}const B=window.setTimeout(()=>{x(!0)},l6);return()=>{window.clearTimeout(B)}},[e]);const v=!e||!y,C=E.useRef(r);e||(C.current=r);const k=E.useRef(!e);e||(k.current=!0);const P=E.useRef(null),[R,j]=E.useState(!1),V=E.useRef(void 0),b=()=>{V.current===void 0&&(V.current=window.setTimeout(()=>{V.current=void 0,j(!1)},o6))},$=()=>{window.clearTimeout(V.current),V.current=void 0};return E.useEffect(()=>{if(!R)return;const B=T=>{var Y;const ee=(Y=P.current)==null?void 0:Y.getBoundingClientRect();if(ee===void 0)return;T.clientX>=ee.left&&T.clientX<ee.right&&T.clientY>=ee.top&&T.clientY<ee.bottom?$():b()};return document.addEventListener("pointermove",B),()=>{document.removeEventListener("pointermove",B),$()}},[R]),c.jsxs("div",{ref:P,className:ot(Ze.root,!v&&Ze.collapsed,!v&&k.current&&Ze.railIn,e&&v&&Ze.fading,!R&&Ze.quietBars),style:v?{width:e?C.current:r}:void 0,onPointerEnter:()=>{$(),j(!0)},onPointerLeave:()=>{b()},children:[c.jsxs("div",{className:Ze.logoRow,children:[v&&c.jsx("button",{type:"button",className:ot(Ze.brand,Ze.wide),"aria-label":f("session.new.label"),onClick:()=>{i()},children:c.jsxs("span",{className:Ze.brandIdentity,"aria-hidden":"true",children:[c.jsx("span",{className:Ze.brandMark,children:p("sidebar.brand.mark",{size:24},{fallback:c.jsx(Jo,{size:24})})}),c.jsx("span",{className:Ze.brandName,children:p("sidebar.brand.name",{},{fallback:c.jsx("span",{className:Ze.fallbackBrandName,children:f("brand.localBuild")})})})]})}),c.jsx(j1,{label:f(e?"toggle.open":"toggle.collapse"),delayMs:500,children:c.jsxs("button",{type:"button",className:ot(Ze.iconButton,Ze.toggle),"aria-label":f(e?"toggle.open":"toggle.collapse"),onClick:()=>{o()},children:[!v&&c.jsx("span",{className:Ze.railMark,"aria-hidden":"true",children:p("sidebar.brand.mark",{size:24},{fallback:c.jsx(Jo,{size:24})})}),c.jsx(y5,{className:Ze.panelIcon,size:v?16:18})]})})]}),c.jsx(j1,{label:f("session.new.label"),delayMs:500,disabled:v,children:c.jsxs("button",{type:"button",className:Ze.newSession,"aria-label":f("session.new.label"),onClick:()=>{i()},children:[c.jsx(g5,{size:v?14:18}),v&&c.jsx("span",{className:ot(Ze.newSessionLabel,Ze.wide),children:f("session.new")})]})}),m.length>0&&c.jsx("nav",{className:Ze.panelList,"aria-label":f("panels.label"),children:m.map(({id:B,label:T})=>c.jsx(s6,{id:B,label:T,wide:v,usePanelInfo:d,selectPanel:s,renderSlot:p},B))}),c.jsx("div",{className:Ze.regionArea,children:p("sidebar.workspaces",{wide:v,expandSidebar:()=>{e&&o()}})}),c.jsxs("div",{className:Ze.footArea,children:[c.jsx("div",{className:Ze.footerActions,children:p("sidebar.footer.action",{wide:v})}),c.jsx("div",{className:Ze.settingsArea,children:p("sidebar.settings",{wide:v})})]})]})}const u6="_root_xhk35_5",c6="_stack_xhk35_15",d6="_headline_xhk35_29",f6="_titleGroup_xhk35_51",p6="_previewBadge_xhk35_62",h6="_logoFrame_xhk35_77",m6="_logo_xhk35_77",g6="_body_xhk35_98",x6="_workspace_xhk35_114",y6="_workspaceLabel_xhk35_160",bn={root:u6,stack:c6,headline:d6,titleGroup:f6,previewBadge:p6,logoFrame:h6,logo:m6,body:g6,workspace:x6,workspaceLabel:y6};function v6({t:e,renderSlot:r,children:i}){return c.jsxs("div",{className:bn.root,children:[c.jsxs("div",{className:bn.stack,children:[c.jsxs("div",{className:bn.headline,children:[c.jsx("span",{className:bn.logoFrame,children:r("conversation.hero.brand.mark",{size:34,className:bn.logo},{fallback:c.jsx(Jo,{size:34,className:bn.logo})})}),c.jsxs("span",{className:bn.titleGroup,children:[c.jsx("span",{children:e("hero.headline")}),c.jsx("span",{className:bn.previewBadge,children:e("hero.preview")})]})]}),c.jsx("div",{className:bn.body})]}),i]})}const C6="_root_5w0r3_1",w6="_header_5w0r3_42",k6="_titleRow_5w0r3_56",_6="_titleCluster_5w0r3_63",S6="_crumbs_5w0r3_71",b6="_crumb_5w0r3_71",E6="_crumbCurrent_5w0r3_118",j6="_headerActions_5w0r3_124",L6="_tabs_5w0r3_161",N6="_tab_5w0r3_38",I6="_tabActive_5w0r3_199",P6="_viewArea_5w0r3_207",M6="_composerStack_5w0r3_294",T6="_composerSeat_5w0r3_305",z6="_body_5w0r3_215",D6="_scrollBody_5w0r3_341",R6="_composerHero_5w0r3_442",A6="_heroWorkspaceRow_5w0r3_455",ht={root:C6,header:w6,titleRow:k6,titleCluster:_6,crumbs:S6,crumb:b6,crumbCurrent:E6,headerActions:j6,tabs:L6,tab:N6,tabActive:I6,viewArea:P6,composerStack:M6,composerSeat:T6,body:z6,scrollBody:D6,composerHero:R6,heroWorkspaceRow:A6},F6="_root_6nf6e_2",O6="_hero_6nf6e_20",$6="_card_6nf6e_39",B6="_scroll_6nf6e_125",H6="_grow_6nf6e_143",V6="_row_6nf6e_248",U6="_tools_6nf6e_266",W6="_trailing_6nf6e_268",q6="_add_6nf6e_297",Z6="_primary_6nf6e_355",fn={root:F6,hero:O6,card:$6,scroll:B6,grow:H6,row:V6,tools:U6,trailing:W6,add:q6,primary:Z6},Q6="_root_14jhb_1",G6="_scroll_14jhb_9",K6="_column_14jhb_37",n1={root:Q6,scroll:G6,column:K6},Y6="_userRow_1dwc7_4",X6="_userStack_1dwc7_11",J6="_bubble_1dwc7_23",ep="_attachmentRow_1dwc7_296",tp="_fileCard_1dwc7_304",np="_fileIcon_1dwc7_318",rp="_fileContent_1dwc7_324",ip="_fileName_1dwc7_331",lp="_fileMeta_1dwc7_341",Zn={userRow:Y6,userStack:X6,bubble:J6,attachmentRow:ep,fileCard:tp,fileIcon:np,fileContent:rp,fileName:ip,fileMeta:lp};function op(e,r){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const sp=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ap=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,up={};function f2(e,r){return(up.jsx?ap:sp).test(e)}const cp=/[ \t\n\f\r]/g;function dp(e){return typeof e=="object"?e.type==="text"?p2(e.value):!1:p2(e)}function p2(e){return e.replace(cp,"")===""}class El{constructor(r,i,o){this.normal=i,this.property=r,o&&(this.space=o)}}El.prototype.normal={};El.prototype.property={};El.prototype.space=void 0;function wd(e,r){const i={},o={};for(const s of e)Object.assign(i,s.property),Object.assign(o,s.normal);return new El(i,o,r)}function I1(e){return e.toLowerCase()}class Yt{constructor(r,i){this.attribute=i,this.property=r}}Yt.prototype.attribute="";Yt.prototype.booleanish=!1;Yt.prototype.boolean=!1;Yt.prototype.commaOrSpaceSeparated=!1;Yt.prototype.commaSeparated=!1;Yt.prototype.defined=!1;Yt.prototype.mustUseProperty=!1;Yt.prototype.number=!1;Yt.prototype.overloadedBoolean=!1;Yt.prototype.property="";Yt.prototype.spaceSeparated=!1;Yt.prototype.space=void 0;let fp=0;const Pe=qr(),mt=qr(),P1=qr(),ue=qr(),Ke=qr(),Ur=qr(),nn=qr();function qr(){return 2**++fp}const M1=Object.freeze(Object.defineProperty({__proto__:null,boolean:Pe,booleanish:mt,commaOrSpaceSeparated:nn,commaSeparated:Ur,number:ue,overloadedBoolean:P1,spaceSeparated:Ke},Symbol.toStringTag,{value:"Module"})),r1=Object.keys(M1);class X1 extends Yt{constructor(r,i,o,s){let u=-1;if(super(r,i),h2(this,"space",s),typeof o=="number")for(;++u<r1.length;){const d=r1[u];h2(this,r1[u],(o&M1[d])===M1[d])}}}X1.prototype.defined=!0;function h2(e,r,i){i&&(e[r]=i)}function ki(e){const r={},i={};for(const[o,s]of Object.entries(e.properties)){const u=new X1(o,e.transform(e.attributes||{},o),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(u.mustUseProperty=!0),r[o]=u,i[I1(o)]=o,i[I1(u.attribute)]=o}return new El(r,i,e.space)}const kd=ki({properties:{ariaActiveDescendant:null,ariaAtomic:mt,ariaAutoComplete:null,ariaBusy:mt,ariaChecked:mt,ariaColCount:ue,ariaColIndex:ue,ariaColSpan:ue,ariaControls:Ke,ariaCurrent:null,ariaDescribedBy:Ke,ariaDetails:null,ariaDisabled:mt,ariaDropEffect:Ke,ariaErrorMessage:null,ariaExpanded:mt,ariaFlowTo:Ke,ariaGrabbed:mt,ariaHasPopup:null,ariaHidden:mt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ke,ariaLevel:ue,ariaLive:null,ariaModal:mt,ariaMultiLine:mt,ariaMultiSelectable:mt,ariaOrientation:null,ariaOwns:Ke,ariaPlaceholder:null,ariaPosInSet:ue,ariaPressed:mt,ariaReadOnly:mt,ariaRelevant:null,ariaRequired:mt,ariaRoleDescription:Ke,ariaRowCount:ue,ariaRowIndex:ue,ariaRowSpan:ue,ariaSelected:mt,ariaSetSize:ue,ariaSort:null,ariaValueMax:ue,ariaValueMin:ue,ariaValueNow:ue,ariaValueText:null,role:null},transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function _d(e,r){return r in e?e[r]:r}function Sd(e,r){return _d(e,r.toLowerCase())}const pp=ki({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ur,acceptCharset:Ke,accessKey:Ke,action:null,allow:null,allowFullScreen:Pe,allowPaymentRequest:Pe,allowUserMedia:Pe,alpha:Pe,alt:null,as:null,async:Pe,autoCapitalize:null,autoComplete:Ke,autoFocus:Pe,autoPlay:Pe,blocking:Ke,capture:null,charSet:null,checked:Pe,cite:null,className:Ke,closedBy:null,colorSpace:null,cols:ue,colSpan:ue,command:null,commandFor:null,content:null,contentEditable:mt,controls:Pe,controlsList:Ke,coords:ue|Ur,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pe,defer:Pe,dir:null,dirName:null,disabled:Pe,download:P1,draggable:mt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pe,formTarget:null,headers:Ke,height:ue,hidden:P1,high:ue,href:null,hrefLang:null,htmlFor:Ke,httpEquiv:Ke,id:null,imageSizes:null,imageSrcSet:null,inert:Pe,inputMode:null,integrity:null,is:null,isMap:Pe,itemId:null,itemProp:Ke,itemRef:Ke,itemScope:Pe,itemType:Ke,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Pe,low:ue,manifest:null,max:null,maxLength:ue,media:null,method:null,min:null,minLength:ue,multiple:Pe,muted:Pe,name:null,nonce:null,noModule:Pe,noValidate:Pe,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:Pe,optimum:ue,pattern:null,ping:Ke,placeholder:null,playsInline:Pe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Pe,referrerPolicy:null,rel:Ke,required:Pe,reversed:Pe,rows:ue,rowSpan:ue,sandbox:Ke,scope:null,scoped:Pe,seamless:Pe,selected:Pe,shadowRootClonable:Pe,shadowRootCustomElementRegistry:Pe,shadowRootDelegatesFocus:Pe,shadowRootMode:null,shadowRootSerializable:Pe,shape:null,size:ue,sizes:null,slot:null,span:ue,spellCheck:mt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ue,step:null,style:null,tabIndex:ue,target:null,title:null,translate:null,type:null,typeMustMatch:Pe,useMap:null,value:mt,width:ue,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ke,axis:null,background:null,bgColor:null,border:ue,borderColor:null,bottomMargin:ue,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Pe,declare:Pe,event:null,face:null,frame:null,frameBorder:null,hSpace:ue,leftMargin:ue,link:null,longDesc:null,lowSrc:null,marginHeight:ue,marginWidth:ue,noResize:Pe,noHref:Pe,noShade:Pe,noWrap:Pe,object:null,profile:null,prompt:null,rev:null,rightMargin:ue,rules:null,scheme:null,scrolling:mt,standby:null,summary:null,text:null,topMargin:ue,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ue,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Pe,disablePictureInPicture:Pe,disableRemotePlayback:Pe,exportParts:Ur,part:Ke,prefix:null,property:null,results:ue,security:null,unselectable:null},space:"html",transform:Sd}),hp=ki({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",maskType:"mask-type",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:nn,accentHeight:ue,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ue,amplitude:ue,arabicForm:null,ascent:ue,attributeName:null,attributeType:null,azimuth:ue,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ue,by:null,calcMode:null,capHeight:ue,className:Ke,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:ue,diffuseConstant:ue,direction:null,display:null,dur:null,divisor:ue,dominantBaseline:null,download:Pe,dx:null,dy:null,edgeMode:null,editable:null,elevation:ue,enableBackground:null,end:null,event:null,exponent:ue,externalResourcesRequired:null,fill:null,fillOpacity:ue,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:ue,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ue,horizOriginX:ue,horizOriginY:ue,id:null,ideographic:ue,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ue,k:ue,k1:ue,k2:ue,k3:ue,k4:ue,kernelMatrix:nn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ue,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ue,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:ue,overlineThickness:ue,paintOrder:null,panose1:null,path:null,pathLength:ue,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ke,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ue,pointsAtY:ue,pointsAtZ:ue,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:nn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:nn,rev:nn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:nn,requiredFeatures:nn,requiredFonts:nn,requiredFormats:nn,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:ue,specularExponent:ue,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ue,strikethroughThickness:ue,string:null,stroke:null,strokeDashArray:nn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ue,strokeOpacity:ue,strokeWidth:null,style:null,surfaceScale:ue,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:nn,tabIndex:ue,tableValues:null,target:null,targetX:ue,targetY:ue,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:nn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ue,underlineThickness:ue,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ue,values:null,vAlphabetic:ue,vMathematical:ue,vectorEffect:null,vHanging:ue,vIdeographic:ue,version:null,vertAdvY:ue,vertOriginX:ue,vertOriginY:ue,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ue,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:_d}),bd=ki({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()}}),Ed=ki({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Sd}),jd=ki({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()}}),mp={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"},gp=/[A-Z]/g,m2=/-[a-z]/g,xp=/^data[-\w.:]+$/i;function yp(e,r){const i=I1(r);let o=r,s=Yt;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&xp.test(r)){if(r.charAt(4)==="-"){const u=r.slice(5).replace(m2,Cp);o="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=r.slice(4);if(!m2.test(u)){let d=u.replace(gp,vp);d.charAt(0)!=="-"&&(d="-"+d),r="data"+d}}s=X1}return new s(o,r)}function vp(e){return"-"+e.toLowerCase()}function Cp(e){return e.charAt(1).toUpperCase()}const wp=wd([kd,pp,bd,Ed,jd],"html"),J1=wd([kd,hp,bd,Ed,jd],"svg");function kp(e){return e.join(" ").trim()}var mi={},i1,g2;function _p(){if(g2)return i1;g2=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,d=/^[;\s]*/,f=/^\s+|\s+$/g,p=`
|
|
47
|
-
`,m="/",y="*",x="",v="comment",C="declaration";function k(R,j){if(typeof R!="string")throw new TypeError("First argument must be a string");if(!R)return[];j=j||{};var V=1,b=1;function $(W){var O=W.match(r);O&&(V+=O.length);var I=W.lastIndexOf(p);b=~I?W.length-I:b+W.length}function B(){var W={line:V,column:b};return function(O){return O.position=new T(W),Y(),O}}function T(W){this.start=W,this.end={line:V,column:b},this.source=j.source}T.prototype.content=R;function ee(W){var O=new Error(j.source+":"+V+":"+b+": "+W);if(O.reason=W,O.filename=j.source,O.line=V,O.column=b,O.source=R,!j.silent)throw O}function ie(W){var O=W.exec(R);if(O){var I=O[0];return $(I),R=R.slice(I.length),O}}function Y(){ie(i)}function D(W){var O;for(W=W||[];O=L();)O!==!1&&W.push(O);return W}function L(){var W=B();if(!(m!=R.charAt(0)||y!=R.charAt(1))){for(var O=2;x!=R.charAt(O)&&(y!=R.charAt(O)||m!=R.charAt(O+1));)++O;if(O+=2,x===R.charAt(O-1))return ee("End of comment missing");var I=R.slice(2,O-2);return b+=2,$(I),R=R.slice(O),b+=2,W({type:v,comment:I})}}function Z(){var W=B(),O=ie(o);if(O){if(L(),!ie(s))return ee("property missing ':'");var I=ie(u),J=W({type:C,property:P(O[0].replace(e,x)),value:I?P(I[0].replace(e,x)):x});return ie(d),J}}function te(){var W=[];D(W);for(var O;O=Z();)O!==!1&&(W.push(O),D(W));return W}return Y(),te()}function P(R){return R?R.replace(f,x):x}return i1=k,i1}var x2;function Sp(){if(x2)return mi;x2=1;var e=mi&&mi.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(mi,"__esModule",{value:!0}),mi.default=i;const r=e(_p());function i(o,s){let u=null;if(!o||typeof o!="string")return u;const d=(0,r.default)(o),f=typeof s=="function";return d.forEach(p=>{if(p.type!=="declaration")return;const{property:m,value:y}=p;f?s(m,y,p):y&&(u=u||{},u[m]=y)}),u}return mi}var ul={},y2;function bp(){if(y2)return ul;y2=1,Object.defineProperty(ul,"__esModule",{value:!0}),ul.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,u=function(m){return!m||i.test(m)||e.test(m)},d=function(m,y){return y.toUpperCase()},f=function(m,y){return"".concat(y,"-")},p=function(m,y){return y===void 0&&(y={}),u(m)?m:(m=m.toLowerCase(),y.reactCompat?m=m.replace(s,f):m=m.replace(o,f),m.replace(r,d))};return ul.camelCase=p,ul}var cl,v2;function Ep(){if(v2)return cl;v2=1;var e=cl&&cl.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},r=e(Sp()),i=bp();function o(s,u){var d={};return!s||typeof s!="string"||(0,r.default)(s,function(f,p){f&&p&&(d[(0,i.camelCase)(f,u)]=p)}),d}return o.default=o,cl=o,cl}var jp=Ep();const Lp=q1(jp),Ld=Nd("end"),eu=Nd("start");function Nd(e){return r;function r(i){const o=i&&i.position&&i.position[e]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function Np(e){const r=eu(e),i=Ld(e);if(r&&i)return{start:r,end:i}}function xl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?C2(e.position):"start"in e||"end"in e?C2(e):"line"in e||"column"in e?T1(e):""}function T1(e){return w2(e&&e.line)+":"+w2(e&&e.column)}function C2(e){return T1(e&&e.start)+"-"+T1(e&&e.end)}function w2(e){return e&&typeof e=="number"?e:1}class Dt extends Error{constructor(r,i,o){super(),typeof i=="string"&&(o=i,i=void 0);let s="",u={},d=!1;if(i&&("line"in i&&"column"in i?u={place:i}:"start"in i&&"end"in i?u={place:i}:"type"in i?u={ancestors:[i],place:i.position}:u={...i}),typeof r=="string"?s=r:!u.cause&&r&&(d=!0,s=r.message,u.cause=r),!u.ruleId&&!u.source&&typeof o=="string"){const p=o.indexOf(":");p===-1?u.ruleId=o:(u.source=o.slice(0,p),u.ruleId=o.slice(p+1))}if(!u.place&&u.ancestors&&u.ancestors){const p=u.ancestors[u.ancestors.length-1];p&&(u.place=p.position)}const f=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=f?f.line:void 0,this.name=xl(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=d&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Dt.prototype.file="";Dt.prototype.name="";Dt.prototype.reason="";Dt.prototype.message="";Dt.prototype.stack="";Dt.prototype.column=void 0;Dt.prototype.line=void 0;Dt.prototype.ancestors=void 0;Dt.prototype.cause=void 0;Dt.prototype.fatal=void 0;Dt.prototype.place=void 0;Dt.prototype.ruleId=void 0;Dt.prototype.source=void 0;const tu={}.hasOwnProperty,Ip=new Map,Pp=/[A-Z]/g,Mp=new Set(["table","tbody","thead","tfoot","tr"]),Tp=new Set(["td","th"]),Id="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function zp(e,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=r.filePath||void 0;let o;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=Hp(i,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=Bp(i,r.jsx,r.jsxs)}const s={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:o,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?J1:wp,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},u=Pd(s,e,void 0);return u&&typeof u!="string"?u:s.create(e,s.Fragment,{children:u||void 0},void 0)}function Pd(e,r,i){if(r.type==="element")return Dp(e,r,i);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return Rp(e,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return Fp(e,r,i);if(r.type==="mdxjsEsm")return Ap(e,r);if(r.type==="root")return Op(e,r,i);if(r.type==="text")return $p(e,r)}function Dp(e,r,i){const o=e.schema;let s=o;r.tagName.toLowerCase()==="svg"&&o.space==="html"&&(s=J1,e.schema=s),e.ancestors.push(r);const u=Td(e,r.tagName,!1),d=Vp(e,r);let f=ru(e,r);return Mp.has(r.tagName)&&(f=f.filter(function(p){return typeof p=="string"?!dp(p):!0})),Md(e,d,u,r),nu(d,f),e.ancestors.pop(),e.schema=o,e.create(r,u,d,i)}function Rp(e,r){if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];return o.type,e.evaluater.evaluateExpression(o.expression)}kl(e,r.position)}function Ap(e,r){if(r.data&&r.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(r.data.estree);kl(e,r.position)}function Fp(e,r,i){const o=e.schema;let s=o;r.name==="svg"&&o.space==="html"&&(s=J1,e.schema=s),e.ancestors.push(r);const u=r.name===null?e.Fragment:Td(e,r.name,!0),d=Up(e,r),f=ru(e,r);return Md(e,d,u,r),nu(d,f),e.ancestors.pop(),e.schema=o,e.create(r,u,d,i)}function Op(e,r,i){const o={};return nu(o,ru(e,r)),e.create(r,e.Fragment,o,i)}function $p(e,r){return r.value}function Md(e,r,i,o){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(r.node=o)}function nu(e,r){if(r.length>0){const i=r.length>1?r:r[0];i&&(e.children=i)}}function Bp(e,r,i){return o;function o(s,u,d,f){const m=Array.isArray(d.children)?i:r;return f?m(u,d,f):m(u,d)}}function Hp(e,r){return i;function i(o,s,u,d){const f=Array.isArray(u.children),p=eu(o);return r(s,u,d,f,{columnNumber:p?p.column-1:void 0,fileName:e,lineNumber:p?p.line:void 0},void 0)}}function Vp(e,r){const i={};let o,s;for(s in r.properties)if(s!=="children"&&tu.call(r.properties,s)){const u=Wp(e,s,r.properties[s]);if(u){const[d,f]=u;e.tableCellAlignToStyle&&d==="align"&&typeof f=="string"&&Tp.has(r.tagName)?o=f:i[d]=f}}if(o){const u=i.style||(i.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return i}function Up(e,r){const i={};for(const o of r.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&e.evaluater){const u=o.data.estree.body[0];u.type;const d=u.expression;d.type;const f=d.properties[0];f.type,Object.assign(i,e.evaluater.evaluateExpression(f.argument))}else kl(e,r.position);else{const s=o.name;let u;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&e.evaluater){const f=o.value.data.estree.body[0];f.type,u=e.evaluater.evaluateExpression(f.expression)}else kl(e,r.position);else u=o.value===null?!0:o.value;i[s]=u}return i}function ru(e,r){const i=[];let o=-1;const s=e.passKeys?new Map:Ip;for(;++o<r.children.length;){const u=r.children[o];let d;if(e.passKeys){const p=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(p){const m=s.get(p)||0;d=p+"-"+m,s.set(p,m+1)}}const f=Pd(e,u,d);f!==void 0&&i.push(f)}return i}function Wp(e,r,i){const o=yp(e.schema,r);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=o.commaSeparated?op(i):kp(i)),o.property==="style"){let s=typeof i=="object"?i:qp(e,String(i));return e.stylePropertyNameCase==="css"&&(s=Zp(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&o.space?mp[o.property]||o.property:o.attribute,i]}}function qp(e,r){try{return Lp(r,{reactCompat:!0})}catch(i){if(e.ignoreInvalidStyle)return{};const o=i,s=new Dt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=Id+"#cannot-parse-style-attribute",s}}function Td(e,r,i){let o;if(!i)o={type:"Literal",value:r};else if(r.includes(".")){const s=r.split(".");let u=-1,d;for(;++u<s.length;){const f=f2(s[u])?{type:"Identifier",name:s[u]}:{type:"Literal",value:s[u]};d=d?{type:"MemberExpression",object:d,property:f,computed:!!(u&&f.type==="Literal"),optional:!1}:f}o=d}else o=f2(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(o.type==="Literal"){const s=o.value;return tu.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(o);kl(e)}function kl(e,r){const i=new Dt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Id+"#cannot-handle-mdx-estrees-without-createevaluater",i}function Zp(e){const r={};let i;for(i in e)tu.call(e,i)&&(r[Qp(i)]=e[i]);return r}function Qp(e){let r=e.replace(Pp,Gp);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function Gp(e){return"-"+e.toLowerCase()}const l1={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"]},Kp={};function iu(e,r){const i=Kp,o=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,s=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return zd(e,o,s)}function zd(e,r,i){if(Yp(e)){if("value"in e)return e.type==="html"&&!i?"":e.value;if(r&&"alt"in e&&e.alt)return e.alt;if("children"in e)return k2(e.children,r,i)}return Array.isArray(e)?k2(e,r,i):""}function k2(e,r,i){const o=[];let s=-1;for(;++s<e.length;)o[s]=zd(e[s],r,i);return o.join("")}function Yp(e){return!!(e&&typeof e=="object")}const _2=document.createElement("i");function lu(e){const r="&"+e+";";_2.innerHTML=r;const i=_2.textContent;return i.charCodeAt(i.length-1)===59&&e!=="semi"||i===r?!1:i}function rn(e,r,i,o){const s=e.length;let u=0,d;if(r<0?r=-r>s?0:s+r:r=r>s?s:r,i=i>0?i:0,o.length<1e4)d=Array.from(o),d.unshift(r,i),e.splice(...d);else for(i&&e.splice(r,i);u<o.length;)d=o.slice(u,u+1e4),d.unshift(r,0),e.splice(...d),u+=1e4,r+=1e4}function mn(e,r){return e.length>0?(rn(e,e.length,0,r),e):r}const S2={}.hasOwnProperty;function Dd(e){const r={};let i=-1;for(;++i<e.length;)Xp(r,e[i]);return r}function Xp(e,r){let i;for(i in r){const s=(S2.call(e,i)?e[i]:void 0)||(e[i]={}),u=r[i];let d;if(u)for(d in u){S2.call(s,d)||(s[d]=[]);const f=u[d];Jp(s[d],Array.isArray(f)?f:f?[f]:[])}}}function Jp(e,r){let i=-1;const o=[];for(;++i<r.length;)(r[i].add==="after"?e:o).push(r[i]);rn(e,0,0,o)}function Rd(e,r){const i=Number.parseInt(e,r);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function En(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Vt=wr(/[A-Za-z]/),zt=wr(/[\dA-Za-z]/),eh=wr(/[#-'*+\--9=?A-Z^-~]/);function ts(e){return e!==null&&(e<32||e===127)}const z1=wr(/\d/),th=wr(/[\dA-Fa-f]/),nh=wr(/[!-/:-@[-`{-~]/);function Se(e){return e!==null&&e<-2}function Ye(e){return e!==null&&(e<0||e===32)}function Fe(e){return e===-2||e===-1||e===32}const as=wr(new RegExp("\\p{P}|\\p{S}","u")),Wr=wr(/\s/);function wr(e){return r;function r(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function _i(e){const r=[];let i=-1,o=0,s=0;for(;++i<e.length;){const u=e.charCodeAt(i);let d="";if(u===37&&zt(e.charCodeAt(i+1))&&zt(e.charCodeAt(i+2)))s=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(d=String.fromCharCode(u));else if(u>55295&&u<57344){const f=e.charCodeAt(i+1);u<56320&&f>56319&&f<57344?(d=String.fromCharCode(u,f),s=1):d="�"}else d=String.fromCharCode(u);d&&(r.push(e.slice(o,i),encodeURIComponent(d)),o=i+s+1,d=""),s&&(i+=s,s=0)}return r.join("")+e.slice(o)}function $e(e,r,i,o){const s=o?o-1:Number.POSITIVE_INFINITY;let u=0;return d;function d(p){return Fe(p)?(e.enter(i),f(p)):r(p)}function f(p){return Fe(p)&&u++<s?(e.consume(p),f):(e.exit(i),r(p))}}const rh={tokenize:ih};function ih(e){const r=e.attempt(this.parser.constructs.contentInitial,o,s);let i;return r;function o(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),$e(e,r,"linePrefix")}function s(f){return e.enter("paragraph"),u(f)}function u(f){const p=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=p),i=p,d(f)}function d(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return Se(f)?(e.consume(f),e.exit("chunkText"),u):(e.consume(f),d)}}const lh={tokenize:oh},b2={tokenize:sh};function oh(e){const r=this,i=[];let o=0,s,u,d;return f;function f(b){if(o<i.length){const $=i[o];return r.containerState=$[1],e.attempt($[0].continuation,p,m)(b)}return m(b)}function p(b){if(o++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,s&&V();const $=r.events.length;let B=$,T;for(;B--;)if(r.events[B][0]==="exit"&&r.events[B][1].type==="chunkFlow"){T=r.events[B][1].end;break}j(o);let ee=$;for(;ee<r.events.length;)r.events[ee][1].end={...T},ee++;return rn(r.events,B+1,0,r.events.slice($)),r.events.length=ee,m(b)}return f(b)}function m(b){if(o===i.length){if(!s)return v(b);if(s.currentConstruct&&s.currentConstruct.concrete)return k(b);r.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return r.containerState={},e.check(b2,y,x)(b)}function y(b){return s&&V(),j(o),v(b)}function x(b){return r.parser.lazy[r.now().line]=o!==i.length,d=r.now().offset,k(b)}function v(b){return r.containerState={},e.attempt(b2,C,k)(b)}function C(b){return o++,i.push([r.currentConstruct,r.containerState]),v(b)}function k(b){if(b===null){s&&V(),j(0),e.consume(b);return}return s=s||r.parser.flow(r.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:u}),P(b)}function P(b){if(b===null){R(e.exit("chunkFlow"),!0),j(0),e.consume(b);return}return Se(b)?(e.consume(b),R(e.exit("chunkFlow")),o=0,r.interrupt=void 0,f):(e.consume(b),P)}function R(b,$){const B=r.sliceStream(b);if($&&B.push(null),b.previous=u,u&&(u.next=b),u=b,s.defineSkip(b.start),s.write(B),r.parser.lazy[b.start.line]){let T=s.events.length;for(;T--;)if(s.events[T][1].start.offset<d&&(!s.events[T][1].end||s.events[T][1].end.offset>d))return;const ee=r.events.length;let ie=ee,Y,D;for(;ie--;)if(r.events[ie][0]==="exit"&&r.events[ie][1].type==="chunkFlow"){if(Y){D=r.events[ie][1].end;break}Y=!0}for(j(o),T=ee;T<r.events.length;)r.events[T][1].end={...D},T++;rn(r.events,ie+1,0,r.events.slice(ee)),r.events.length=T}}function j(b){let $=i.length;for(;$-- >b;){const B=i[$];r.containerState=B[1],B[0].exit.call(r,e)}i.length=b}function V(){s.write([null]),u=void 0,s=void 0,r.containerState._closeFlow=void 0}}function sh(e,r,i){return $e(e,e.attempt(this.parser.constructs.document,r,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function wi(e){if(e===null||Ye(e)||Wr(e))return 1;if(as(e))return 2}function us(e,r,i){const o=[];let s=-1;for(;++s<e.length;){const u=e[s].resolveAll;u&&!o.includes(u)&&(r=u(r,i),o.push(u))}return r}const D1={name:"attention",resolveAll:ah,tokenize:uh};function ah(e,r){let i=-1,o,s,u,d,f,p,m,y;for(;++i<e.length;)if(e[i][0]==="enter"&&e[i][1].type==="attentionSequence"&&e[i][1]._close){for(o=i;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&r.sliceSerialize(e[o][1]).charCodeAt(0)===r.sliceSerialize(e[i][1]).charCodeAt(0)){if((e[o][1]._close||e[i][1]._open)&&(e[i][1].end.offset-e[i][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[i][1].end.offset-e[i][1].start.offset)%3))continue;p=e[o][1].end.offset-e[o][1].start.offset>1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const x={...e[o][1].end},v={...e[i][1].start};E2(x,-p),E2(v,p),d={type:p>1?"strongSequence":"emphasisSequence",start:x,end:{...e[o][1].end}},f={type:p>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:v},u={type:p>1?"strongText":"emphasisText",start:{...e[o][1].end},end:{...e[i][1].start}},s={type:p>1?"strong":"emphasis",start:{...d.start},end:{...f.end}},e[o][1].end={...d.start},e[i][1].start={...f.end},m=[],e[o][1].end.offset-e[o][1].start.offset&&(m=mn(m,[["enter",e[o][1],r],["exit",e[o][1],r]])),m=mn(m,[["enter",s,r],["enter",d,r],["exit",d,r],["enter",u,r]]),m=mn(m,us(r.parser.constructs.insideSpan.null,e.slice(o+1,i),r)),m=mn(m,[["exit",u,r],["enter",f,r],["exit",f,r],["exit",s,r]]),e[i][1].end.offset-e[i][1].start.offset?(y=2,m=mn(m,[["enter",e[i][1],r],["exit",e[i][1],r]])):y=0,rn(e,o-1,i-o+3,m),i=o+m.length-y-2;break}}for(i=-1;++i<e.length;)e[i][1].type==="attentionSequence"&&(e[i][1].type="data");return e}function uh(e,r){const i=this.parser.constructs.attentionMarkers.null,o=this.previous,s=wi(o);let u;return d;function d(p){return u=p,e.enter("attentionSequence"),f(p)}function f(p){if(p===u)return e.consume(p),f;const m=e.exit("attentionSequence"),y=wi(p),x=!y||y===2&&s||i.includes(p),v=!s||s===2&&y||i.includes(o);return m._open=!!(u===42?x:x&&(s||!v)),m._close=!!(u===42?v:v&&(y||!x)),r(p)}}function E2(e,r){e.column+=r,e.offset+=r,e._bufferIndex+=r}const ch={name:"autolink",tokenize:dh};function dh(e,r,i){let o=0;return s;function s(C){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(C),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(C){return Vt(C)?(e.consume(C),d):C===64?i(C):m(C)}function d(C){return C===43||C===45||C===46||zt(C)?(o=1,f(C)):m(C)}function f(C){return C===58?(e.consume(C),o=0,p):(C===43||C===45||C===46||zt(C))&&o++<32?(e.consume(C),f):(o=0,m(C))}function p(C){return C===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(C),e.exit("autolinkMarker"),e.exit("autolink"),r):C===null||C===32||C===60||ts(C)?i(C):(e.consume(C),p)}function m(C){return C===64?(e.consume(C),y):eh(C)?(e.consume(C),m):i(C)}function y(C){return zt(C)?x(C):i(C)}function x(C){return C===46?(e.consume(C),o=0,y):C===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(C),e.exit("autolinkMarker"),e.exit("autolink"),r):v(C)}function v(C){if((C===45||zt(C))&&o++<63){const k=C===45?v:x;return e.consume(C),k}return i(C)}}const jl={partial:!0,tokenize:fh};function fh(e,r,i){return o;function o(u){return Fe(u)?$e(e,s,"linePrefix")(u):s(u)}function s(u){return u===null||Se(u)?r(u):i(u)}}const Ad={continuation:{tokenize:hh},exit:mh,name:"blockQuote",tokenize:ph};function ph(e,r,i){const o=this;return s;function s(d){if(d===62){const f=o.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(d),e.exit("blockQuoteMarker"),u}return i(d)}function u(d){return Fe(d)?(e.enter("blockQuotePrefixWhitespace"),e.consume(d),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),r):(e.exit("blockQuotePrefix"),r(d))}}function hh(e,r,i){const o=this;return s;function s(d){return Fe(d)?$e(e,u,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):u(d)}function u(d){return e.attempt(Ad,r,i)(d)}}function mh(e){e.exit("blockQuote")}const Fd={name:"characterEscape",tokenize:gh};function gh(e,r,i){return o;function o(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),s}function s(u){return nh(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),r):i(u)}}const Od={name:"characterReference",tokenize:xh};function xh(e,r,i){const o=this;let s=0,u,d;return f;function f(x){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(x),e.exit("characterReferenceMarker"),p}function p(x){return x===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(x),e.exit("characterReferenceMarkerNumeric"),m):(e.enter("characterReferenceValue"),u=31,d=zt,y(x))}function m(x){return x===88||x===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(x),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,d=th,y):(e.enter("characterReferenceValue"),u=7,d=z1,y(x))}function y(x){if(x===59&&s){const v=e.exit("characterReferenceValue");return d===zt&&!lu(o.sliceSerialize(v))?i(x):(e.enter("characterReferenceMarker"),e.consume(x),e.exit("characterReferenceMarker"),e.exit("characterReference"),r)}return d(x)&&s++<u?(e.consume(x),y):i(x)}}const j2={partial:!0,tokenize:vh},L2={concrete:!0,name:"codeFenced",tokenize:yh};function yh(e,r,i){const o=this,s={partial:!0,tokenize:B};let u=0,d=0,f;return p;function p(T){return m(T)}function m(T){const ee=o.events[o.events.length-1];return u=ee&&ee[1].type==="linePrefix"?ee[2].sliceSerialize(ee[1],!0).length:0,f=T,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),y(T)}function y(T){return T===f?(d++,e.consume(T),y):d<3?i(T):(e.exit("codeFencedFenceSequence"),Fe(T)?$e(e,x,"whitespace")(T):x(T))}function x(T){return T===null||Se(T)?(e.exit("codeFencedFence"),o.interrupt?r(T):e.check(j2,P,$)(T)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(T))}function v(T){return T===null||Se(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),x(T)):Fe(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$e(e,C,"whitespace")(T)):T===96&&T===f?i(T):(e.consume(T),v)}function C(T){return T===null||Se(T)?x(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),k(T))}function k(T){return T===null||Se(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),x(T)):T===96&&T===f?i(T):(e.consume(T),k)}function P(T){return e.attempt(s,$,R)(T)}function R(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),j}function j(T){return u>0&&Fe(T)?$e(e,V,"linePrefix",u+1)(T):V(T)}function V(T){return T===null||Se(T)?e.check(j2,P,$)(T):(e.enter("codeFlowValue"),b(T))}function b(T){return T===null||Se(T)?(e.exit("codeFlowValue"),V(T)):(e.consume(T),b)}function $(T){return e.exit("codeFenced"),r(T)}function B(T,ee,ie){let Y=0;return D;function D(O){return T.enter("lineEnding"),T.consume(O),T.exit("lineEnding"),L}function L(O){return T.enter("codeFencedFence"),Fe(O)?$e(T,Z,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):Z(O)}function Z(O){return O===f?(T.enter("codeFencedFenceSequence"),te(O)):ie(O)}function te(O){return O===f?(Y++,T.consume(O),te):Y>=d?(T.exit("codeFencedFenceSequence"),Fe(O)?$e(T,W,"whitespace")(O):W(O)):ie(O)}function W(O){return O===null||Se(O)?(T.exit("codeFencedFence"),ee(O)):ie(O)}}}function vh(e,r,i){const o=this;return s;function s(d){return d===null?i(d):(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u)}function u(d){return o.parser.lazy[o.now().line]?i(d):r(d)}}const o1={name:"codeIndented",tokenize:wh},Ch={partial:!0,tokenize:kh};function wh(e,r,i){const o=this;return s;function s(m){return e.enter("codeIndented"),$e(e,u,"linePrefix",5)(m)}function u(m){const y=o.events[o.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?d(m):i(m)}function d(m){return m===null?p(m):Se(m)?e.attempt(Ch,d,p)(m):(e.enter("codeFlowValue"),f(m))}function f(m){return m===null||Se(m)?(e.exit("codeFlowValue"),d(m)):(e.consume(m),f)}function p(m){return e.exit("codeIndented"),r(m)}}function kh(e,r,i){const o=this;return s;function s(d){return o.parser.lazy[o.now().line]?i(d):Se(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),s):$e(e,u,"linePrefix",5)(d)}function u(d){const f=o.events[o.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(d):Se(d)?s(d):i(d)}}const _h={name:"codeText",previous:bh,resolve:Sh,tokenize:Eh};function Sh(e){let r=e.length-4,i=3,o,s;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[r][1].type==="lineEnding"||e[r][1].type==="space")){for(o=i;++o<r;)if(e[o][1].type==="codeTextData"){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(o=i-1,r++;++o<=r;)s===void 0?o!==r&&e[o][1].type!=="lineEnding"&&(s=o):(o===r||e[o][1].type==="lineEnding")&&(e[s][1].type="codeTextData",o!==s+2&&(e[s][1].end=e[o-1][1].end,e.splice(s+2,o-s-2),r-=o-s-2,o=s+2),s=void 0);return e}function bh(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Eh(e,r,i){let o=0,s,u;return d;function d(x){return e.enter("codeText"),e.enter("codeTextSequence"),f(x)}function f(x){return x===96?(e.consume(x),o++,f):(e.exit("codeTextSequence"),p(x))}function p(x){return x===null?i(x):x===32?(e.enter("space"),e.consume(x),e.exit("space"),p):x===96?(u=e.enter("codeTextSequence"),s=0,y(x)):Se(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),p):(e.enter("codeTextData"),m(x))}function m(x){return x===null||x===32||x===96||Se(x)?(e.exit("codeTextData"),p(x)):(e.consume(x),m)}function y(x){return x===96?(e.consume(x),s++,y):s===o?(e.exit("codeTextSequence"),e.exit("codeText"),r(x)):(u.type="codeTextData",m(x))}}class jh{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,i){const o=i??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(r,o):r>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(r,i,o){const s=i||0;this.setCursor(Math.trunc(r));const u=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return o&&dl(this.left,o),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),dl(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),dl(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const i=this.left.splice(r,Number.POSITIVE_INFINITY);dl(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);dl(this.left,i.reverse())}}}function dl(e,r){let i=0;if(r.length<1e4)e.push(...r);else for(;i<r.length;)e.push(...r.slice(i,i+1e4)),i+=1e4}function $d(e){const r={};let i=-1,o,s,u,d,f,p,m;const y=new jh(e);for(;++i<y.length;){for(;i in r;)i=r[i];if(o=y.get(i),i&&o[1].type==="chunkFlow"&&y.get(i-1)[1].type==="listItemPrefix"&&(p=o[1]._tokenizer.events,u=0,u<p.length&&p[u][1].type==="lineEndingBlank"&&(u+=2),u<p.length&&p[u][1].type==="content"))for(;++u<p.length&&p[u][1].type!=="content";)p[u][1].type==="chunkText"&&(p[u][1]._isInFirstContentOfListItem=!0,u++);if(o[0]==="enter")o[1].contentType&&(Object.assign(r,Lh(y,i)),i=r[i],m=!0);else if(o[1]._container){for(u=i,s=void 0;u--;)if(d=y.get(u),d[1].type==="lineEnding"||d[1].type==="lineEndingBlank")d[0]==="enter"&&(s&&(y.get(s)[1].type="lineEndingBlank"),d[1].type="lineEnding",s=u);else if(!(d[1].type==="linePrefix"||d[1].type==="listItemIndent"))break;s&&(o[1].end={...y.get(s)[1].start},f=y.slice(s,i),f.unshift(o),y.splice(s,i-s+1,f))}}return rn(e,0,Number.POSITIVE_INFINITY,y.slice(0)),!m}function Lh(e,r){const i=e.get(r)[1],o=e.get(r)[2];let s=r-1;const u=[];let d=i._tokenizer;d||(d=o.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(d._contentTypeTextTrailing=!0));const f=d.events,p=[],m={};let y,x,v=-1,C=i,k=0,P=0;const R=[P];for(;C;){for(;e.get(++s)[1]!==C;);u.push(s),C._tokenizer||(y=o.sliceStream(C),C.next||y.push(null),x&&d.defineSkip(C.start),C._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=!0),d.write(y),C._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=void 0)),x=C,C=C.next}for(C=i;++v<f.length;)f[v][0]==="exit"&&f[v-1][0]==="enter"&&f[v][1].type===f[v-1][1].type&&f[v][1].start.line!==f[v][1].end.line&&(P=v+1,R.push(P),C._tokenizer=void 0,C.previous=void 0,C=C.next);for(d.events=[],C?(C._tokenizer=void 0,C.previous=void 0):R.pop(),v=R.length;v--;){const j=f.slice(R[v],R[v+1]),V=u.pop();p.push([V,V+j.length-1]),e.splice(V,2,j)}for(p.reverse(),v=-1;++v<p.length;)m[k+p[v][0]]=k+p[v][1],k+=p[v][1]-p[v][0]-1;return m}const Nh={resolve:Ph,tokenize:Mh},Ih={partial:!0,tokenize:Th};function Ph(e){return $d(e),e}function Mh(e,r){let i;return o;function o(f){return e.enter("content"),i=e.enter("chunkContent",{contentType:"content"}),s(f)}function s(f){return f===null?u(f):Se(f)?e.check(Ih,d,u)(f):(e.consume(f),s)}function u(f){return e.exit("chunkContent"),e.exit("content"),r(f)}function d(f){return e.consume(f),e.exit("chunkContent"),i.next=e.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,s}}function Th(e,r,i){const o=this;return s;function s(d){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),$e(e,u,"linePrefix")}function u(d){if(d===null||Se(d))return i(d);const f=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(d):e.interrupt(o.parser.constructs.flow,i,r)(d)}}function Bd(e,r,i,o,s,u,d,f,p){const m=p||Number.POSITIVE_INFINITY;let y=0;return x;function x(j){return j===60?(e.enter(o),e.enter(s),e.enter(u),e.consume(j),e.exit(u),v):j===null||j===32||j===41||ts(j)?i(j):(e.enter(o),e.enter(d),e.enter(f),e.enter("chunkString",{contentType:"string"}),P(j))}function v(j){return j===62?(e.enter(u),e.consume(j),e.exit(u),e.exit(s),e.exit(o),r):(e.enter(f),e.enter("chunkString",{contentType:"string"}),C(j))}function C(j){return j===62?(e.exit("chunkString"),e.exit(f),v(j)):j===null||j===60||Se(j)?i(j):(e.consume(j),j===92?k:C)}function k(j){return j===60||j===62||j===92?(e.consume(j),C):C(j)}function P(j){return!y&&(j===null||j===41||Ye(j))?(e.exit("chunkString"),e.exit(f),e.exit(d),e.exit(o),r(j)):y<m&&j===40?(e.consume(j),y++,P):j===41?(e.consume(j),y--,P):j===null||j===32||j===40||ts(j)?i(j):(e.consume(j),j===92?R:P)}function R(j){return j===40||j===41||j===92?(e.consume(j),P):P(j)}}function Hd(e,r,i,o,s,u){const d=this;let f=0,p;return m;function m(C){return e.enter(o),e.enter(s),e.consume(C),e.exit(s),e.enter(u),y}function y(C){return f>999||C===null||C===91||C===93&&!p||C===94&&!f&&"_hiddenFootnoteSupport"in d.parser.constructs?i(C):C===93?(e.exit(u),e.enter(s),e.consume(C),e.exit(s),e.exit(o),r):Se(C)?(e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),y):(e.enter("chunkString",{contentType:"string"}),x(C))}function x(C){return C===null||C===91||C===93||Se(C)||f++>999?(e.exit("chunkString"),y(C)):(e.consume(C),p||(p=!Fe(C)),C===92?v:x)}function v(C){return C===91||C===92||C===93?(e.consume(C),f++,x):x(C)}}function Vd(e,r,i,o,s,u){let d;return f;function f(v){return v===34||v===39||v===40?(e.enter(o),e.enter(s),e.consume(v),e.exit(s),d=v===40?41:v,p):i(v)}function p(v){return v===d?(e.enter(s),e.consume(v),e.exit(s),e.exit(o),r):(e.enter(u),m(v))}function m(v){return v===d?(e.exit(u),p(d)):v===null?i(v):Se(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),$e(e,m,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===d||v===null||Se(v)?(e.exit("chunkString"),m(v)):(e.consume(v),v===92?x:y)}function x(v){return v===d||v===92?(e.consume(v),y):y(v)}}function yl(e,r){let i;return o;function o(s){return Se(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i=!0,o):Fe(s)?$e(e,o,i?"linePrefix":"lineSuffix")(s):r(s)}}const zh={name:"definition",tokenize:Rh},Dh={partial:!0,tokenize:Ah};function Rh(e,r,i){const o=this;let s;return u;function u(C){return e.enter("definition"),d(C)}function d(C){return Hd.call(o,e,f,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(C)}function f(C){return s=En(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),C===58?(e.enter("definitionMarker"),e.consume(C),e.exit("definitionMarker"),p):i(C)}function p(C){return Ye(C)?yl(e,m)(C):m(C)}function m(C){return Bd(e,y,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(C)}function y(C){return e.attempt(Dh,x,x)(C)}function x(C){return Fe(C)?$e(e,v,"whitespace")(C):v(C)}function v(C){return C===null||Se(C)?(e.exit("definition"),o.parser.defined.push(s),r(C)):i(C)}}function Ah(e,r,i){return o;function o(f){return Ye(f)?yl(e,s)(f):i(f)}function s(f){return Vd(e,u,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function u(f){return Fe(f)?$e(e,d,"whitespace")(f):d(f)}function d(f){return f===null||Se(f)?r(f):i(f)}}const Fh={name:"hardBreakEscape",tokenize:Oh};function Oh(e,r,i){return o;function o(u){return e.enter("hardBreakEscape"),e.consume(u),s}function s(u){return Se(u)?(e.exit("hardBreakEscape"),r(u)):i(u)}}const $h={name:"headingAtx",resolve:Bh,tokenize:Hh};function Bh(e,r){let i=e.length-2,o=3,s,u;return e[o][1].type==="whitespace"&&(o+=2),i-2>o&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(o===i-1||i-4>o&&e[i-2][1].type==="whitespace")&&(i-=o+1===i?2:4),i>o&&(s={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},u={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},rn(e,o,i-o+1,[["enter",s,r],["enter",u,r],["exit",u,r],["exit",s,r]])),e}function Hh(e,r,i){let o=0;return s;function s(y){return e.enter("atxHeading"),u(y)}function u(y){return e.enter("atxHeadingSequence"),d(y)}function d(y){return y===35&&o++<6?(e.consume(y),d):y===null||Ye(y)?(e.exit("atxHeadingSequence"),f(y)):i(y)}function f(y){return y===35?(e.enter("atxHeadingSequence"),p(y)):y===null||Se(y)?(e.exit("atxHeading"),r(y)):Fe(y)?$e(e,f,"whitespace")(y):(e.enter("atxHeadingText"),m(y))}function p(y){return y===35?(e.consume(y),p):(e.exit("atxHeadingSequence"),f(y))}function m(y){return y===null||y===35||Ye(y)?(e.exit("atxHeadingText"),f(y)):(e.consume(y),m)}}const Vh=["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"],N2=["pre","script","style","textarea"],Uh={concrete:!0,name:"htmlFlow",resolveTo:Zh,tokenize:Qh},Wh={partial:!0,tokenize:Kh},qh={partial:!0,tokenize:Gh};function Zh(e){let r=e.length;for(;r--&&!(e[r][0]==="enter"&&e[r][1].type==="htmlFlow"););return r>1&&e[r-2][1].type==="linePrefix"&&(e[r][1].start=e[r-2][1].start,e[r+1][1].start=e[r-2][1].start,e.splice(r-2,2)),e}function Qh(e,r,i){const o=this;let s,u,d,f,p;return m;function m(N){return y(N)}function y(N){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(N),x}function x(N){return N===33?(e.consume(N),v):N===47?(e.consume(N),u=!0,P):N===63?(e.consume(N),s=3,o.interrupt?r:S):Vt(N)?(e.consume(N),d=String.fromCharCode(N),R):i(N)}function v(N){return N===45?(e.consume(N),s=2,C):N===91?(e.consume(N),s=5,f=0,k):Vt(N)?(e.consume(N),s=4,o.interrupt?r:S):i(N)}function C(N){return N===45?(e.consume(N),o.interrupt?r:S):i(N)}function k(N){const ge="CDATA[";return N===ge.charCodeAt(f++)?(e.consume(N),f===ge.length?o.interrupt?r:Z:k):i(N)}function P(N){return Vt(N)?(e.consume(N),d=String.fromCharCode(N),R):i(N)}function R(N){if(N===null||N===47||N===62||Ye(N)){const ge=N===47,ve=d.toLowerCase();return!ge&&!u&&N2.includes(ve)?(s=1,o.interrupt?r(N):Z(N)):Vh.includes(d.toLowerCase())?(s=6,ge?(e.consume(N),j):o.interrupt?r(N):Z(N)):(s=7,o.interrupt&&!o.parser.lazy[o.now().line]?i(N):u?V(N):b(N))}return N===45||zt(N)?(e.consume(N),d+=String.fromCharCode(N),R):i(N)}function j(N){return N===62?(e.consume(N),o.interrupt?r:Z):i(N)}function V(N){return Fe(N)?(e.consume(N),V):D(N)}function b(N){return N===47?(e.consume(N),D):N===58||N===95||Vt(N)?(e.consume(N),$):Fe(N)?(e.consume(N),b):D(N)}function $(N){return N===45||N===46||N===58||N===95||zt(N)?(e.consume(N),$):B(N)}function B(N){return N===61?(e.consume(N),T):Fe(N)?(e.consume(N),B):b(N)}function T(N){return N===null||N===60||N===61||N===62||N===96?i(N):N===34||N===39?(e.consume(N),p=N,ee):Fe(N)?(e.consume(N),T):ie(N)}function ee(N){return N===p?(e.consume(N),p=null,Y):N===null||Se(N)?i(N):(e.consume(N),ee)}function ie(N){return N===null||N===34||N===39||N===47||N===60||N===61||N===62||N===96||Ye(N)?B(N):(e.consume(N),ie)}function Y(N){return N===47||N===62||Fe(N)?b(N):i(N)}function D(N){return N===62?(e.consume(N),L):i(N)}function L(N){return N===null||Se(N)?Z(N):Fe(N)?(e.consume(N),L):i(N)}function Z(N){return N===45&&s===2?(e.consume(N),I):N===60&&s===1?(e.consume(N),J):N===62&&s===4?(e.consume(N),A):N===63&&s===3?(e.consume(N),S):N===93&&s===5?(e.consume(N),ne):Se(N)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(Wh,K,te)(N)):N===null||Se(N)?(e.exit("htmlFlowData"),te(N)):(e.consume(N),Z)}function te(N){return e.check(qh,W,K)(N)}function W(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),O}function O(N){return N===null||Se(N)?te(N):(e.enter("htmlFlowData"),Z(N))}function I(N){return N===45?(e.consume(N),S):Z(N)}function J(N){return N===47?(e.consume(N),d="",z):Z(N)}function z(N){if(N===62){const ge=d.toLowerCase();return N2.includes(ge)?(e.consume(N),A):Z(N)}return Vt(N)&&d.length<8?(e.consume(N),d+=String.fromCharCode(N),z):Z(N)}function ne(N){return N===93?(e.consume(N),S):Z(N)}function S(N){return N===62?(e.consume(N),A):N===45&&s===2?(e.consume(N),S):Z(N)}function A(N){return N===null||Se(N)?(e.exit("htmlFlowData"),K(N)):(e.consume(N),A)}function K(N){return e.exit("htmlFlow"),r(N)}}function Gh(e,r,i){const o=this;return s;function s(d){return Se(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):i(d)}function u(d){return o.parser.lazy[o.now().line]?i(d):r(d)}}function Kh(e,r,i){return o;function o(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(jl,r,i)}}const Yh={name:"htmlText",tokenize:Xh};function Xh(e,r,i){const o=this;let s,u,d;return f;function f(S){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(S),p}function p(S){return S===33?(e.consume(S),m):S===47?(e.consume(S),B):S===63?(e.consume(S),b):Vt(S)?(e.consume(S),ie):i(S)}function m(S){return S===45?(e.consume(S),y):S===91?(e.consume(S),u=0,k):Vt(S)?(e.consume(S),V):i(S)}function y(S){return S===45?(e.consume(S),C):i(S)}function x(S){return S===null?i(S):S===45?(e.consume(S),v):Se(S)?(d=x,J(S)):(e.consume(S),x)}function v(S){return S===45?(e.consume(S),C):x(S)}function C(S){return S===62?I(S):S===45?v(S):x(S)}function k(S){const A="CDATA[";return S===A.charCodeAt(u++)?(e.consume(S),u===A.length?P:k):i(S)}function P(S){return S===null?i(S):S===93?(e.consume(S),R):Se(S)?(d=P,J(S)):(e.consume(S),P)}function R(S){return S===93?(e.consume(S),j):P(S)}function j(S){return S===62?I(S):S===93?(e.consume(S),j):P(S)}function V(S){return S===null||S===62?I(S):Se(S)?(d=V,J(S)):(e.consume(S),V)}function b(S){return S===null?i(S):S===63?(e.consume(S),$):Se(S)?(d=b,J(S)):(e.consume(S),b)}function $(S){return S===62?I(S):b(S)}function B(S){return Vt(S)?(e.consume(S),T):i(S)}function T(S){return S===45||zt(S)?(e.consume(S),T):ee(S)}function ee(S){return Se(S)?(d=ee,J(S)):Fe(S)?(e.consume(S),ee):I(S)}function ie(S){return S===45||zt(S)?(e.consume(S),ie):S===47||S===62||Ye(S)?Y(S):i(S)}function Y(S){return S===47?(e.consume(S),I):S===58||S===95||Vt(S)?(e.consume(S),D):Se(S)?(d=Y,J(S)):Fe(S)?(e.consume(S),Y):I(S)}function D(S){return S===45||S===46||S===58||S===95||zt(S)?(e.consume(S),D):L(S)}function L(S){return S===61?(e.consume(S),Z):Se(S)?(d=L,J(S)):Fe(S)?(e.consume(S),L):Y(S)}function Z(S){return S===null||S===60||S===61||S===62||S===96?i(S):S===34||S===39?(e.consume(S),s=S,te):Se(S)?(d=Z,J(S)):Fe(S)?(e.consume(S),Z):(e.consume(S),W)}function te(S){return S===s?(e.consume(S),s=void 0,O):S===null?i(S):Se(S)?(d=te,J(S)):(e.consume(S),te)}function W(S){return S===null||S===34||S===39||S===60||S===61||S===96?i(S):S===47||S===62||Ye(S)?Y(S):(e.consume(S),W)}function O(S){return S===47||S===62||Ye(S)?Y(S):i(S)}function I(S){return S===62?(e.consume(S),e.exit("htmlTextData"),e.exit("htmlText"),r):i(S)}function J(S){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),z}function z(S){return Fe(S)?$e(e,ne,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):ne(S)}function ne(S){return e.enter("htmlTextData"),d(S)}}const ou={name:"labelEnd",resolveAll:n8,resolveTo:r8,tokenize:i8},Jh={tokenize:l8},e8={tokenize:o8},t8={tokenize:s8};function n8(e){let r=-1;const i=[];for(;++r<e.length;){const o=e[r][1];if(i.push(e[r]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const s=o.type==="labelImage"?4:2;o.type="data",r+=s}}return e.length!==i.length&&rn(e,0,e.length,i),e}function r8(e,r){let i=e.length,o=0,s,u,d,f;for(;i--;)if(s=e[i][1],u){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[i][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(d){if(e[i][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(u=i,s.type!=="labelLink")){o=2;break}}else s.type==="labelEnd"&&(d=i);const p={type:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},m={type:"label",start:{...e[u][1].start},end:{...e[d][1].end}},y={type:"labelText",start:{...e[u+o+2][1].end},end:{...e[d-2][1].start}};return f=[["enter",p,r],["enter",m,r]],f=mn(f,e.slice(u+1,u+o+3)),f=mn(f,[["enter",y,r]]),f=mn(f,us(r.parser.constructs.insideSpan.null,e.slice(u+o+4,d-3),r)),f=mn(f,[["exit",y,r],e[d-2],e[d-1],["exit",m,r]]),f=mn(f,e.slice(d+1)),f=mn(f,[["exit",p,r]]),rn(e,u,e.length,f),e}function i8(e,r,i){const o=this;let s=o.events.length,u,d;for(;s--;)if((o.events[s][1].type==="labelImage"||o.events[s][1].type==="labelLink")&&!o.events[s][1]._balanced){u=o.events[s][1];break}return f;function f(v){return u?u._inactive?x(v):(d=o.parser.defined.includes(En(o.sliceSerialize({start:u.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),p):i(v)}function p(v){return v===40?e.attempt(Jh,y,d?y:x)(v):v===91?e.attempt(e8,y,d?m:x)(v):d?y(v):x(v)}function m(v){return e.attempt(t8,y,x)(v)}function y(v){return r(v)}function x(v){return u._balanced=!0,i(v)}}function l8(e,r,i){return o;function o(x){return e.enter("resource"),e.enter("resourceMarker"),e.consume(x),e.exit("resourceMarker"),s}function s(x){return Ye(x)?yl(e,u)(x):u(x)}function u(x){return x===41?y(x):Bd(e,d,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(x)}function d(x){return Ye(x)?yl(e,p)(x):y(x)}function f(x){return i(x)}function p(x){return x===34||x===39||x===40?Vd(e,m,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(x):y(x)}function m(x){return Ye(x)?yl(e,y)(x):y(x)}function y(x){return x===41?(e.enter("resourceMarker"),e.consume(x),e.exit("resourceMarker"),e.exit("resource"),r):i(x)}}function o8(e,r,i){const o=this;return s;function s(f){return Hd.call(o,e,u,d,"reference","referenceMarker","referenceString")(f)}function u(f){return o.parser.defined.includes(En(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?r(f):i(f)}function d(f){return i(f)}}function s8(e,r,i){return o;function o(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),s}function s(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),r):i(u)}}const a8={name:"labelStartImage",resolveAll:ou.resolveAll,tokenize:u8};function u8(e,r,i){const o=this;return s;function s(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),u}function u(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),d):i(f)}function d(f){return f===94&&"_hiddenFootnoteSupport"in o.parser.constructs?i(f):r(f)}}const c8={name:"labelStartLink",resolveAll:ou.resolveAll,tokenize:d8};function d8(e,r,i){const o=this;return s;function s(d){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelLink"),u}function u(d){return d===94&&"_hiddenFootnoteSupport"in o.parser.constructs?i(d):r(d)}}const s1={name:"lineEnding",tokenize:f8};function f8(e,r){return i;function i(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),$e(e,r,"linePrefix")}}const Yo={name:"thematicBreak",tokenize:p8};function p8(e,r,i){let o=0,s;return u;function u(m){return e.enter("thematicBreak"),d(m)}function d(m){return s=m,f(m)}function f(m){return m===s?(e.enter("thematicBreakSequence"),p(m)):o>=3&&(m===null||Se(m))?(e.exit("thematicBreak"),r(m)):i(m)}function p(m){return m===s?(e.consume(m),o++,p):(e.exit("thematicBreakSequence"),Fe(m)?$e(e,f,"whitespace")(m):f(m))}}const Kt={continuation:{tokenize:x8},exit:v8,name:"list",tokenize:g8},h8={partial:!0,tokenize:C8},m8={partial:!0,tokenize:y8};function g8(e,r,i){const o=this,s=o.events[o.events.length-1];let u=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,d=0;return f;function f(C){const k=o.containerState.type||(C===42||C===43||C===45?"listUnordered":"listOrdered");if(k==="listUnordered"?!o.containerState.marker||C===o.containerState.marker:z1(C)){if(o.containerState.type||(o.containerState.type=k,e.enter(k,{_container:!0})),k==="listUnordered")return e.enter("listItemPrefix"),C===42||C===45?e.check(Yo,i,m)(C):m(C);if(!o.interrupt||C===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),p(C)}return i(C)}function p(C){return z1(C)&&++d<10?(e.consume(C),p):(!o.interrupt||d<2)&&(o.containerState.marker?C===o.containerState.marker:C===41||C===46)?(e.exit("listItemValue"),m(C)):i(C)}function m(C){return e.enter("listItemMarker"),e.consume(C),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||C,e.check(jl,o.interrupt?i:y,e.attempt(h8,v,x))}function y(C){return o.containerState.initialBlankLine=!0,u++,v(C)}function x(C){return Fe(C)?(e.enter("listItemPrefixWhitespace"),e.consume(C),e.exit("listItemPrefixWhitespace"),v):i(C)}function v(C){return o.containerState.size=u+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,r(C)}}function x8(e,r,i){const o=this;return o.containerState._closeFlow=void 0,e.check(jl,s,u);function s(f){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,$e(e,r,"listItemIndent",o.containerState.size+1)(f)}function u(f){return o.containerState.furtherBlankLines||!Fe(f)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,d(f)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(m8,r,d)(f))}function d(f){return o.containerState._closeFlow=!0,o.interrupt=void 0,$e(e,e.attempt(Kt,r,i),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function y8(e,r,i){const o=this;return $e(e,s,"listItemIndent",o.containerState.size+1);function s(u){const d=o.events[o.events.length-1];return d&&d[1].type==="listItemIndent"&&d[2].sliceSerialize(d[1],!0).length===o.containerState.size?r(u):i(u)}}function v8(e){e.exit(this.containerState.type)}function C8(e,r,i){const o=this;return $e(e,s,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(u){const d=o.events[o.events.length-1];return!Fe(u)&&d&&d[1].type==="listItemPrefixWhitespace"?r(u):i(u)}}const I2={name:"setextUnderline",resolveTo:w8,tokenize:k8};function w8(e,r){let i=e.length,o,s,u;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){o=i;break}e[i][1].type==="paragraph"&&(s=i)}else e[i][1].type==="content"&&e.splice(i,1),!u&&e[i][1].type==="definition"&&(u=i);const d={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",u?(e.splice(s,0,["enter",d,r]),e.splice(u+1,0,["exit",e[o][1],r]),e[o][1].end={...e[u][1].end}):e[o][1]=d,e.push(["exit",d,r]),e}function k8(e,r,i){const o=this;let s;return u;function u(m){let y=o.events.length,x;for(;y--;)if(o.events[y][1].type!=="lineEnding"&&o.events[y][1].type!=="linePrefix"&&o.events[y][1].type!=="content"){x=o.events[y][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||x)?(e.enter("setextHeadingLine"),s=m,d(m)):i(m)}function d(m){return e.enter("setextHeadingLineSequence"),f(m)}function f(m){return m===s?(e.consume(m),f):(e.exit("setextHeadingLineSequence"),Fe(m)?$e(e,p,"lineSuffix")(m):p(m))}function p(m){return m===null||Se(m)?(e.exit("setextHeadingLine"),r(m)):i(m)}}const _8={tokenize:S8};function S8(e){const r=this,i=e.attempt(jl,o,e.attempt(this.parser.constructs.flowInitial,s,$e(e,e.attempt(this.parser.constructs.flow,s,e.attempt(Nh,s)),"linePrefix")));return i;function o(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),r.currentConstruct=void 0,i}function s(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),r.currentConstruct=void 0,i}}const b8={resolveAll:Wd()},E8=Ud("string"),j8=Ud("text");function Ud(e){return{resolveAll:Wd(e==="text"?L8:void 0),tokenize:r};function r(i){const o=this,s=this.parser.constructs[e],u=i.attempt(s,d,f);return d;function d(y){return m(y)?u(y):f(y)}function f(y){if(y===null){i.consume(y);return}return i.enter("data"),i.consume(y),p}function p(y){return m(y)?(i.exit("data"),u(y)):(i.consume(y),p)}function m(y){if(y===null)return!0;const x=s[y];let v=-1;if(x)for(;++v<x.length;){const C=x[v];if(!C.previous||C.previous.call(o,o.previous))return!0}return!1}}}function Wd(e){return r;function r(i,o){let s=-1,u;for(;++s<=i.length;)u===void 0?i[s]&&i[s][1].type==="data"&&(u=s,s++):(!i[s]||i[s][1].type!=="data")&&(s!==u+2&&(i[u][1].end=i[s-1][1].end,i.splice(u+2,s-u-2),s=u+2),u=void 0);return e?e(i,o):i}}function L8(e,r){let i=0;for(;++i<=e.length;)if((i===e.length||e[i][1].type==="lineEnding")&&e[i-1][1].type==="data"){const o=e[i-1][1],s=r.sliceStream(o);let u=s.length,d=-1,f=0,p;for(;u--;){const m=s[u];if(typeof m=="string"){for(d=m.length;m.charCodeAt(d-1)===32;)f++,d--;if(d)break;d=-1}else if(m===-2)p=!0,f++;else if(m!==-1){u++;break}}if(r._contentTypeTextTrailing&&i===e.length&&(f=0),f){const m={type:i===e.length||p||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?d:o.start._bufferIndex+d,_index:o.start._index+u,line:o.end.line,column:o.end.column-f,offset:o.end.offset-f},end:{...o.end}};o.end={...m.start},o.start.offset===o.end.offset?Object.assign(o,m):(e.splice(i,0,["enter",m,r],["exit",m,r]),i+=2)}i++}return e}const N8={42:Kt,43:Kt,45:Kt,48:Kt,49:Kt,50:Kt,51:Kt,52:Kt,53:Kt,54:Kt,55:Kt,56:Kt,57:Kt,62:Ad},I8={91:zh},P8={[-2]:o1,[-1]:o1,32:o1},M8={35:$h,42:Yo,45:[I2,Yo],60:Uh,61:I2,95:Yo,96:L2,126:L2},T8={38:Od,92:Fd},z8={[-5]:s1,[-4]:s1,[-3]:s1,33:a8,38:Od,42:D1,60:[ch,Yh],91:c8,92:[Fh,Fd],93:ou,95:D1,96:_h},D8={null:[D1,b8]},R8={null:[42,95]},A8={null:[]},F8=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:R8,contentInitial:I8,disable:A8,document:N8,flow:M8,flowInitial:P8,insideSpan:D8,string:T8,text:z8},Symbol.toStringTag,{value:"Module"}));function O8(e,r,i){let o={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const s={},u=[];let d=[],f=[];const p={attempt:ee(B),check:ee(T),consume:V,enter:b,exit:$,interrupt:ee(T,{interrupt:!0})},m={code:null,containerState:{},defineSkip:P,events:[],now:k,parser:e,previous:null,sliceSerialize:v,sliceStream:C,write:x};let y=r.tokenize.call(m,p);return r.resolveAll&&u.push(r),m;function x(L){return d=mn(d,L),R(),d[d.length-1]!==null?[]:(ie(r,0),m.events=us(u,m.events,m),m.events)}function v(L,Z){return B8(C(L),Z)}function C(L){return $8(d,L)}function k(){const{_bufferIndex:L,_index:Z,line:te,column:W,offset:O}=o;return{_bufferIndex:L,_index:Z,line:te,column:W,offset:O}}function P(L){s[L.line]=L.column,D()}function R(){let L;for(;o._index<d.length;){const Z=d[o._index];if(typeof Z=="string")for(L=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===L&&o._bufferIndex<Z.length;)j(Z.charCodeAt(o._bufferIndex));else j(Z)}}function j(L){y=y(L)}function V(L){Se(L)?(o.line++,o.column=1,o.offset+=L===-3?2:1,D()):L!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===d[o._index].length&&(o._bufferIndex=-1,o._index++)),m.previous=L}function b(L,Z){const te=Z||{};return te.type=L,te.start=k(),m.events.push(["enter",te,m]),f.push(te),te}function $(L){const Z=f.pop();return Z.end=k(),m.events.push(["exit",Z,m]),Z}function B(L,Z){ie(L,Z.from)}function T(L,Z){Z.restore()}function ee(L,Z){return te;function te(W,O,I){let J,z,ne,S;return Array.isArray(W)?K(W):"tokenize"in W?K([W]):A(W);function A(fe){return Ne;function Ne(Ee){const ze=Ee!==null&&fe[Ee],Ue=Ee!==null&&fe.null,Oe=[...Array.isArray(ze)?ze:ze?[ze]:[],...Array.isArray(Ue)?Ue:Ue?[Ue]:[]];return K(Oe)(Ee)}}function K(fe){return J=fe,z=0,fe.length===0?I:N(fe[z])}function N(fe){return Ne;function Ne(Ee){return S=Y(),ne=fe,fe.partial||(m.currentConstruct=fe),fe.name&&m.parser.constructs.disable.null.includes(fe.name)?ve():fe.tokenize.call(Z?Object.assign(Object.create(m),Z):m,p,ge,ve)(Ee)}}function ge(fe){return L(ne,S),O}function ve(fe){return S.restore(),++z<J.length?N(J[z]):I}}}function ie(L,Z){L.resolveAll&&!u.includes(L)&&u.push(L),L.resolve&&rn(m.events,Z,m.events.length-Z,L.resolve(m.events.slice(Z),m)),L.resolveTo&&(m.events=L.resolveTo(m.events,m))}function Y(){const L=k(),Z=m.previous,te=m.currentConstruct,W=m.events.length,O=Array.from(f);return{from:W,restore:I};function I(){o=L,m.previous=Z,m.currentConstruct=te,m.events.length=W,f=O,D()}}function D(){o.line in s&&o.column<2&&(o.column=s[o.line],o.offset+=s[o.line]-1)}}function $8(e,r){const i=r.start._index,o=r.start._bufferIndex,s=r.end._index,u=r.end._bufferIndex;let d;if(i===s)d=[e[i].slice(o,u)];else{if(d=e.slice(i,s),o>-1){const f=d[0];typeof f=="string"?d[0]=f.slice(o):d.shift()}u>0&&d.push(e[s].slice(0,u))}return d}function B8(e,r){let i=-1;const o=[];let s;for(;++i<e.length;){const u=e[i];let d;if(typeof u=="string")d=u;else switch(u){case-5:{d="\r";break}case-4:{d=`
|
|
46
|
+
`,g5=`data:image/svg+xml,${encodeURIComponent(m5)}`;function es({size:e=24,className:r}){return c.jsx("img",{src:g5,width:e,height:e,className:r,alt:"","aria-hidden":"true"})}const x5="_bubble_1nw3t_1",y5={bubble:x5};function Lu({label:e,side:r="right",delayMs:i=0,disabled:o=!1,maxWidth:s,children:a}){const d=E.useRef(null),f=a.ref,p=E.useCallback(ee=>{d.current=ee,typeof f=="function"?f(ee):f!=null&&(f.current=ee)},[f]),[m,y]=E.useState(null),[x,v]=E.useState(r),C=E.useRef(null),k=m===null?null:typeof e=="function"?e():e,P=m===null?0:x==="right"?m.top+(m.bottom-m.top)/2:x==="top"?m.top-8:m.bottom+8,R=12;E.useLayoutEffect(()=>{if(m===null)return;const ee=()=>{const ie=C.current;if(ie===null)return;ie.style.left=`${m.x}px`;const Y=ie.getBoundingClientRect();let D=0;if(Y.right>window.innerWidth-R&&(D=window.innerWidth-R-Y.right),Y.left+D<R&&(D=R-Y.left),ie.style.left=`${m.x+D}px`,r==="right")return;const L=m.bottom+8+Y.height<=window.innerHeight-R,Z=m.top-8-Y.height>=R;x==="bottom"&&!L&&Z&&v("top"),x==="top"&&!Z&&L&&v("bottom")};return ee(),window.addEventListener("resize",ee),()=>{window.removeEventListener("resize",ee)}},[x,m,k,r]);const j=E.useRef(null),V=E.useRef({hover:!1,focus:!1}),S=E.useCallback(()=>{j.current!==null&&(clearTimeout(j.current),j.current=null)},[]);E.useEffect(()=>(o&&(S(),V.current={hover:!1,focus:!1},y(null)),S),[S,o]);const F=()=>{if(o)return;const ee=d.current;if(ee===null)return;const ie=ee.getBoundingClientRect();v(r),y({x:r==="right"?ie.right+10:ie.left+ie.width/2,top:ie.top,bottom:ie.bottom})},B=()=>{if(S(),i<=0){F();return}j.current=setTimeout(()=>{j.current=null,F()},i)},T=()=>{S(),!V.current.hover&&!V.current.focus&&y(null)};return c.jsxs(c.Fragment,{children:[E.cloneElement(a,{ref:p,onMouseEnter:ee=>{var ie,Y;(Y=(ie=a.props).onMouseEnter)==null||Y.call(ie,ee),V.current.hover=!0,B()},onMouseLeave:ee=>{var ie,Y;(Y=(ie=a.props).onMouseLeave)==null||Y.call(ie,ee),V.current.hover=!1,S(),y(null)},onFocus:ee=>{var ie,Y;(Y=(ie=a.props).onFocus)==null||Y.call(ie,ee),V.current.focus=!0,S(),F()},onBlur:ee=>{var ie,Y;(Y=(ie=a.props).onBlur)==null||Y.call(ie,ee),V.current.focus=!1,T()}}),m!==null&&c.jsx("span",{ref:C,className:y5.bubble,"data-side":x,style:{left:m.x,top:P,...s===void 0?{}:{maxWidth:s}},role:"tooltip",children:k})]})}const v5="_dot_1cjbl_3",C5="_matrix_1cjbl_4",w5="_cell_1cjbl_62",nu={dot:v5,matrix:C5,cell:w5},m2=[[0,0],[4,0],[8,0],[8,4],[8,8],[4,8],[0,8],[0,4]];function Gu({state:e,size:r=10,className:i}){return e==="ongoing"?c.jsx("svg",{className:st(nu.matrix,i),"data-state":"ongoing",width:r,height:r,viewBox:"0 0 10 10",shapeRendering:"crispEdges","aria-hidden":"true",children:m2.map(([o,s],a)=>c.jsx("rect",{className:nu.cell,x:o,y:s,width:"2",height:"2",style:{animationDelay:`${(a-m2.length)*125}ms`}},`${o}-${s}`))}):c.jsx("span",{className:st(nu.dot,i),"data-state":e,style:{width:r,height:r},"aria-hidden":"true"})}const k5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M8.00003 0.3237C3.76075 0.3237 0.32373 3.76072 0.32373 8C0.32373 9.17603 0.589121 10.2922 1.0632 11.2901L1.35291 11.8989L2.5705 11.3205L2.28079 10.7117C1.89079 9.89074 1.67301 8.97167 1.67301 8C1.67301 4.50546 4.50549 1.67298 8.00003 1.67298C11.4946 1.67298 14.3271 4.50546 14.3271 8C14.3271 11.4945 11.4946 14.327 8.00003 14.327C7.28473 14.327 6.76077 14.277 6.29621 14.1487C5.83857 14.0224 5.40441 13.8109 4.88514 13.4488C4.12569 12.919 3.03778 12.7316 2.141 13.2978L2.12682 13.307L2.11264 13.3171L1.34886 13.854L1.79659 15.188L2.86122 14.4384C3.19068 14.2305 3.68325 14.2542 4.11326 14.5539C4.72789 14.9826 5.30042 15.2724 5.93762 15.4484C6.56803 15.6224 7.22776 15.6763 8.00003 15.6763C12.2393 15.6763 15.6763 12.2393 15.6763 8C15.6763 3.76072 12.2393 0.3237 8.00003 0.3237ZM7.32033 4.82535V7.32536H4.82538V8.67464H7.32033V11.1747H8.6696V8.67464H11.1747V7.32536H8.6696V4.82535H7.32033Z",fill:"currentColor"})}),_d=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M11.894845 6.647401C11.894845 3.725463 9.534486 1.356779 6.623219 1.35657C3.711786 1.35657 1.351635 3.725338 1.351635 6.647401C1.351843 9.569296 3.711911 11.938273 6.623219 11.938273C9.534361 11.938064 11.894637 9.569171 11.894845 6.647401ZM13.245462 6.647401C13.245254 10.317935 10.280401 13.293613 6.623219 13.293821C2.965871 13.293821 0.000204 10.31806 0 6.647401C0 2.976574 2.965746 0 6.623219 0C10.280526 0.000205 13.245462 2.9767 13.245462 6.647401Z",fill:"currentColor"}),c.jsx("path",{d:"M16.000417 15.041079L15.044449 16.000433L11.530434 12.473588L12.486298 11.514234L16.000417 15.041079Z",fill:"currentColor"})]}),_5=({size:e=14,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{clipPath:"url(#clip0_2580_121189)",children:[c.jsx("path",{d:"M12.1192 4.91016C11.9392 4.52714 11.7007 4.1292 11.4483 3.78809C11.385 3.70258 11.3517 3.68409 11.2462 3.67383C10.7419 3.6248 10.2318 3.69454 9.72662 3.64551C9.29108 3.60318 8.93739 3.40341 8.67682 3.05176C8.38762 2.66127 8.19217 2.20926 7.90338 1.81934C7.83985 1.73359 7.80848 1.71542 7.70221 1.70508C7.24758 1.6609 6.7511 1.66104 6.29791 1.70508C6.19164 1.71542 6.16027 1.73359 6.09674 1.81934C5.80775 2.20954 5.61248 2.66131 5.3233 3.05176C5.06273 3.40341 4.70904 3.60318 4.2735 3.64551C3.76831 3.69454 3.25825 3.6248 2.75397 3.67383C2.6484 3.68409 2.61509 3.70258 2.55182 3.78809C2.30019 4.12814 2.06125 4.52646 1.88092 4.91016C1.83256 5.01309 1.83242 5.04912 1.88092 5.15235C2.07954 5.57482 2.37449 5.94529 2.5733 6.36817C2.76971 6.78606 2.76964 7.21293 2.5733 7.63086C2.37462 8.05374 2.07947 8.42453 1.88092 8.84668C1.83235 8.95004 1.83257 8.98695 1.88092 9.08985C2.06098 9.47285 2.2994 9.87079 2.55182 10.2119C2.61509 10.2974 2.6484 10.3159 2.75397 10.3262C3.25879 10.3753 3.76834 10.3055 4.2735 10.3545C4.70904 10.3968 5.06273 10.5966 5.3233 10.9482C5.6125 11.3387 5.80795 11.7907 6.09674 12.1807C6.16027 12.2664 6.19164 12.2846 6.29791 12.2949C6.7511 12.339 7.24758 12.3391 7.70221 12.2949C7.80848 12.2846 7.83985 12.2664 7.90338 12.1807C8.19237 11.7905 8.38764 11.3387 8.67682 10.9482C8.93739 10.5966 9.29108 10.3968 9.72662 10.3545C10.2318 10.3055 10.7419 10.3752 11.2462 10.3262C11.3517 10.3159 11.385 10.2974 11.4483 10.2119C11.7007 9.87079 11.9391 9.47285 12.1192 9.08985C12.1675 8.98695 12.1678 8.95004 12.1192 8.84668C11.9205 8.42428 11.6255 8.05377 11.4268 7.63086C11.2305 7.21293 11.2304 6.78606 11.4268 6.36817C11.6256 5.94531 11.9207 5.5746 12.1192 5.15235C12.1677 5.04912 12.1676 5.01309 12.1192 4.91016ZM13.2051 5.66309C13.0064 6.08573 12.7114 6.45579 12.5128 6.87793C12.4642 6.98123 12.4645 7.01829 12.5128 7.1211C12.7112 7.54328 13.0064 7.91405 13.2051 8.33692C13.4015 8.75487 13.4015 9.18169 13.2051 9.59961C12.9911 10.0551 12.7109 10.5221 12.4122 10.9258C12.1522 11.277 11.7974 11.4782 11.3624 11.5205C10.8573 11.5696 10.3477 11.4999 9.84283 11.5488C9.73621 11.5592 9.70429 11.5772 9.64069 11.6631C9.35229 12.0526 9.15705 12.5044 8.86823 12.8945C8.60854 13.2452 8.25275 13.447 7.81842 13.4893C7.28749 13.5409 6.71096 13.5407 6.1817 13.4893C5.74737 13.447 5.39158 13.2452 5.1319 12.8945C4.84312 12.5045 4.64808 12.0529 4.35944 11.6631C4.29583 11.5772 4.26392 11.5592 4.15729 11.5488C3.65283 11.5 3.14295 11.5696 2.63776 11.5205C2.20274 11.4782 1.84796 11.277 1.58795 10.9258C1.28834 10.5209 1.00864 10.0543 0.794982 9.59961C0.598644 9.18169 0.598598 8.75487 0.794982 8.33692C0.993688 7.91405 1.28889 7.54328 1.48737 7.1211C1.53567 7.01829 1.53593 6.98123 1.48737 6.87793C1.28887 6.45603 0.993667 6.08569 0.794982 5.66309C0.598535 5.24516 0.59869 4.81829 0.794982 4.40039C1.00898 3.94492 1.28922 3.47791 1.58795 3.07422C1.84796 2.723 2.20274 2.5218 2.63776 2.47949C3.14295 2.43038 3.65283 2.50003 4.15729 2.45117C4.26391 2.44081 4.29583 2.4228 4.35944 2.33692C4.64783 1.94742 4.84308 1.49557 5.1319 1.10547C5.39158 0.754835 5.74737 0.553005 6.1817 0.510744C6.71263 0.459147 7.28917 0.459309 7.81842 0.510744C8.25275 0.553005 8.60854 0.754835 8.86823 1.10547C9.157 1.49551 9.35204 1.94708 9.64069 2.33692C9.70429 2.4228 9.73621 2.44081 9.84283 2.45117C10.3477 2.50007 10.8573 2.43039 11.3624 2.47949C11.7974 2.5218 12.1522 2.723 12.4122 3.07422C12.7118 3.47909 12.9915 3.94567 13.2051 4.40039C13.4014 4.81829 13.4016 5.24516 13.2051 5.66309Z",fill:"currentColor"}),c.jsx("path",{d:"M7.9317 7C7.9317 6.48569 7.51438 6.06836 7.00006 6.06836C6.48575 6.06836 6.06842 6.48569 6.06842 7C6.06842 7.51432 6.48575 7.93164 7.00006 7.93164C7.51438 7.93164 7.9317 7.51432 7.9317 7ZM9.13092 7C9.13092 8.17706 8.17712 9.13086 7.00006 9.13086C5.823 9.13086 4.8692 8.17706 4.8692 7C4.8692 5.82294 5.823 4.86914 7.00006 4.86914C8.17712 4.86914 9.13092 5.82294 9.13092 7Z",fill:"currentColor"})]}),c.jsx("defs",{children:c.jsx("clipPath",{id:"clip0_2580_121189",children:c.jsx("rect",{width:14,height:14,fill:"currentColor"})})})]}),bd=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{clipPath:"url(#clip0_1450_63327)",children:[c.jsx("path",{d:"M14.0861 5.51366C13.8717 5.0575 13.588 4.58542 13.2889 4.18108C13.208 4.07172 13.1596 4.04373 13.0243 4.03054C12.4277 3.97255 11.8245 4.05527 11.2269 3.9972C10.7224 3.94816 10.3133 3.71661 10.0115 3.30919C9.66986 2.84777 9.43973 2.31343 9.09824 1.85234C9.01771 1.74365 8.96805 1.71589 8.83354 1.70282C8.29432 1.65044 7.70402 1.65061 7.16656 1.70282C7.03205 1.71589 6.98239 1.74365 6.90186 1.85234C6.56067 2.31303 6.33025 2.84774 5.98855 3.30919C5.68681 3.71661 5.27774 3.94816 4.77317 3.9972C4.17564 4.05527 3.57239 3.97255 2.97585 4.03054C2.84046 4.04373 2.79208 4.07172 2.71115 4.18108C2.41212 4.58542 2.12835 5.0575 1.91403 5.51366C1.85299 5.64359 1.85286 5.7018 1.91403 5.8319C2.14865 6.33077 2.49748 6.76892 2.73237 7.26854C2.9594 7.7515 2.96041 8.24717 2.73338 8.73044C2.49837 9.23061 2.14891 9.66837 1.91403 10.1681C1.85291 10.2982 1.85299 10.3564 1.91403 10.4863C2.12856 10.9429 2.41185 11.4142 2.71115 11.8189C2.79208 11.9283 2.84046 11.9563 2.97585 11.9694C3.57239 12.0274 4.17564 11.9447 4.77317 12.0028C5.27774 12.0518 5.68681 12.2834 5.98855 12.6908C6.33024 13.1522 6.56037 13.6866 6.90186 14.1476C6.98239 14.2563 7.03205 14.2841 7.16656 14.2972C7.70402 14.3494 8.29432 14.3495 8.83354 14.2972C8.96805 14.2841 9.01771 14.2563 9.09824 14.1476C9.43944 13.687 9.66985 13.1522 10.0115 12.6908C10.3133 12.2834 10.7224 12.0518 11.2269 12.0028C11.8244 11.9447 12.4271 12.0275 13.0243 11.9694C13.1596 11.9563 13.208 11.9283 13.2889 11.8189C13.5891 11.4131 13.872 10.942 14.0861 10.4863C14.1471 10.3564 14.1472 10.2982 14.0861 10.1681C13.8513 9.66861 13.5017 9.23061 13.2667 8.73044C13.0397 8.24717 13.0407 7.7515 13.2677 7.26854C13.5026 6.7689 13.8513 6.33106 14.0861 5.8319C14.1472 5.7018 14.1471 5.64359 14.0861 5.51366ZM15.3035 6.40373C15.0685 6.90359 14.7188 7.34119 14.4841 7.84037C14.4231 7.97025 14.423 8.02855 14.4841 8.15861C14.7189 8.65833 15.0685 9.09611 15.3035 9.59626C15.5308 10.0801 15.5308 10.5744 15.3035 11.0582C15.052 11.5933 14.7225 12.1426 14.37 12.6191C14.0685 13.0265 13.6581 13.259 13.1536 13.3081C12.5566 13.366 11.9541 13.2835 11.3573 13.3414C11.2228 13.3545 11.1731 13.3823 11.0926 13.491C10.7511 13.9521 10.521 14.4864 10.1793 14.9478C9.87828 15.3542 9.46719 15.5869 8.96387 15.6358C8.34008 15.6964 7.66194 15.6966 7.03623 15.6358C6.53291 15.5869 6.12182 15.3542 5.82084 14.9478C5.47911 14.4863 5.24878 13.9517 4.90753 13.491C4.82701 13.3823 4.77734 13.3545 4.64284 13.3414C4.04647 13.2835 3.44373 13.366 2.84653 13.3081C2.34201 13.259 1.93164 13.0265 1.63013 12.6191C1.27867 12.144 0.948453 11.5941 0.696621 11.0582C0.469315 10.5744 0.469279 10.0801 0.696621 9.59626C0.931628 9.09613 1.2813 8.65807 1.51597 8.15861C1.57708 8.02855 1.57702 7.97025 1.51597 7.84037C1.28117 7.34095 0.931635 6.9036 0.696621 6.40373C0.469213 5.91992 0.469367 5.42562 0.696621 4.94183C0.948441 4.40587 1.27868 3.85598 1.63013 3.38092C1.93164 2.97349 2.34201 2.74095 2.84653 2.6919C3.44353 2.63397 4.04599 2.71649 4.64284 2.65856C4.77734 2.64549 4.82701 2.61774 4.90753 2.50904C5.24905 2.04792 5.47913 1.51362 5.82084 1.05219C6.12182 0.645806 6.53291 0.413119 7.03623 0.364178C7.66002 0.303556 8.33816 0.303369 8.96387 0.364178C9.46719 0.413119 9.87828 0.645806 10.1793 1.05219C10.521 1.51365 10.7513 2.04828 11.0926 2.50904C11.1731 2.61774 11.2228 2.64549 11.3573 2.65856C11.9541 2.71649 12.5566 2.63397 13.1536 2.6919C13.6581 2.74095 14.0685 2.97349 14.37 3.38092C14.7214 3.85598 15.0517 4.40587 15.3035 4.94183C15.5307 5.42562 15.5309 5.91992 15.3035 6.40373Z",fill:"currentColor"}),c.jsx("path",{d:"M9.13764 7.99999C9.13764 7.3715 8.62855 6.8624 8.00005 6.8624C7.37155 6.8624 6.86246 7.3715 6.86246 7.99999C6.86246 8.62849 7.37155 9.13759 8.00005 9.13759C8.62855 9.13759 9.13764 8.62849 9.13764 7.99999ZM10.4834 7.99999C10.4834 9.37126 9.37132 10.4833 8.00005 10.4833C6.62878 10.4833 5.51674 9.37126 5.51674 7.99999C5.51674 6.62873 6.62878 5.51669 8.00005 5.51669C9.37132 5.51669 10.4834 6.62873 10.4834 7.99999Z",fill:"currentColor"})]}),c.jsx("defs",{children:c.jsx("clipPath",{id:"clip0_1450_63327",children:c.jsx("rect",{width:16,height:16,fill:"currentColor"})})})]}),b5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.67272 0.522841C10.8339 0.522841 11.76 0.522714 12.4963 0.602493C13.2453 0.683657 13.8789 0.854248 14.4264 1.25197C14.7504 1.48739 15.0355 1.77247 15.2709 2.0965C15.6686 2.64394 15.8392 3.27758 15.9204 4.02655C16.0002 4.7629 16 5.68895 16 6.85014V9.14986C16 10.3111 16.0002 11.2371 15.9204 11.9735C15.8392 12.7224 15.6686 13.3561 15.2709 13.9035C15.0355 14.2275 14.7504 14.5126 14.4264 14.748C13.8789 15.1458 13.2453 15.3163 12.4963 15.3975C11.76 15.4773 10.8339 15.4772 9.67272 15.4772H6.3273C5.16611 15.4772 4.24006 15.4773 3.50371 15.3975C2.75474 15.3163 2.1211 15.1458 1.57366 14.748C1.24963 14.5126 0.964549 14.2275 0.729131 13.9035C0.331407 13.3561 0.160817 12.7224 0.0796529 11.9735C-0.000126137 11.2371 1.25338e-09 10.3111 1.25338e-09 9.14986V6.85014C1.25329e-09 5.68895 -0.000126137 4.7629 0.0796529 4.02655C0.160817 3.27758 0.331407 2.64394 0.729131 2.0965C0.964549 1.77247 1.24963 1.48739 1.57366 1.25197C2.1211 0.854248 2.75474 0.683657 3.50371 0.602493C4.24006 0.522714 5.16611 0.522841 6.3273 0.522841H9.67272ZM5.54303 1.88715V14.1118C5.78636 14.1128 6.04709 14.1169 6.3273 14.1169H9.67272C10.8639 14.1169 11.7032 14.1164 12.3493 14.0465C12.9824 13.9779 13.3497 13.8494 13.6268 13.6482C13.8354 13.4966 14.0195 13.3125 14.1711 13.1039C14.3723 12.8268 14.5007 12.4595 14.5693 11.8264C14.6393 11.1803 14.6398 10.341 14.6398 9.14986V6.85014C14.6398 5.65896 14.6393 4.81967 14.5693 4.1736C14.5007 3.54048 14.3723 3.17318 14.1711 2.89609C14.0195 2.68747 13.8354 2.50337 13.6268 2.35179C13.3497 2.1506 12.9824 2.02212 12.3493 1.95353C11.7032 1.88358 10.8639 1.88307 9.67272 1.88307H6.3273C6.04709 1.88307 5.78636 1.8862 5.54303 1.88715ZM4.1828 1.91166C3.99125 1.9216 3.8148 1.93577 3.65076 1.95353C3.01764 2.02212 2.65034 2.1506 2.37325 2.35179C2.16463 2.50337 1.98052 2.68747 1.82895 2.89609C1.62776 3.17318 1.49928 3.54048 1.43069 4.1736C1.36074 4.81967 1.36023 5.65896 1.36023 6.85014V9.14986C1.36023 10.341 1.36074 11.1803 1.43069 11.8264C1.49928 12.4595 1.62776 12.8268 1.82895 13.1039C1.98052 13.3125 2.16463 13.4966 2.37325 13.6482C2.65034 13.8494 3.01764 13.9779 3.65076 14.0465C3.81478 14.0642 3.99127 14.0774 4.1828 14.0873V1.91166Z",fill:"currentColor"})}),Ku=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M8.64453 1.5V7.34961H14.5V8.65039H8.64453V14.5H7.34473V8.65039H1.5V7.34961H7.34473V1.5H8.64453Z",fill:"currentColor"})}),Nu=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M15.0498 3.92579L8.49512 12.3818C8.25774 12.6881 8.04517 12.9645 7.84668 13.1689C7.63957 13.3823 7.38732 13.5841 7.04492 13.6719C6.86373 13.7183 6.6757 13.7346 6.48926 13.7197C6.13666 13.6915 5.8528 13.5355 5.6123 13.3604C5.38201 13.1926 5.12573 12.9567 4.83984 12.6953L1.03125 9.21289L1.96875 8.1875L5.77734 11.6699C6.08684 11.9529 6.27773 12.1249 6.43066 12.2363C6.50183 12.2882 6.54699 12.3135 6.57324 12.3252C6.58525 12.3305 6.59269 12.3322 6.5957 12.333C6.59802 12.3336 6.59961 12.334 6.59961 12.334C6.63317 12.3367 6.66758 12.3335 6.7002 12.3252C6.7002 12.3252 6.70211 12.3251 6.7041 12.3242C6.70698 12.3229 6.71348 12.319 6.72461 12.3115C6.74849 12.2956 6.78843 12.2642 6.84961 12.2012C6.98138 12.0654 7.13957 11.8628 7.39648 11.5313L13.9502 3.07422L15.0498 3.92579Z",fill:"currentColor"})}),kl=({size:e=14,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M11.8486 5.5L11.4238 5.92383L8.69727 8.65137C8.44157 8.90706 8.21562 9.13382 8.01172 9.29785C7.79912 9.46883 7.55595 9.61756 7.25 9.66602C7.08435 9.69222 6.91565 9.69222 6.75 9.66602C6.44405 9.61756 6.20088 9.46883 5.98828 9.29785C5.78438 9.13382 5.55843 8.90706 5.30273 8.65137L2.57617 5.92383L2.15137 5.5L3 4.65137L3.42383 5.07617L6.15137 7.80273C6.42595 8.07732 6.59876 8.24849 6.74023 8.3623C6.87291 8.46904 6.92272 8.47813 6.9375 8.48047C6.97895 8.48703 7.02105 8.48703 7.0625 8.48047C7.07728 8.47813 7.12709 8.46904 7.25977 8.3623C7.40124 8.24849 7.57405 8.07732 7.84863 7.80273L10.5762 5.07617L11 4.65137L11.8486 5.5Z",fill:"currentColor"})}),ts=({size:e=14,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M5.5 2.15137L5.92383 2.57617L8.65137 5.30273C8.90706 5.55843 9.13382 5.78438 9.29785 5.98828C9.46883 6.20088 9.61756 6.44405 9.66602 6.75C9.69222 6.91565 9.69222 7.08435 9.66602 7.25C9.61756 7.55595 9.46883 7.79912 9.29785 8.01172C9.13382 8.21561 8.90706 8.44157 8.65137 8.69727L5.92383 11.4238L5.5 11.8486L4.65137 11L5.07617 10.5762L7.80273 7.84863C8.07732 7.57405 8.24849 7.40124 8.3623 7.25977C8.46904 7.12709 8.47813 7.07728 8.48047 7.0625C8.48703 7.02105 8.48703 6.97895 8.48047 6.9375C8.47813 6.92272 8.46904 6.87291 8.3623 6.74023C8.24848 6.59876 8.07732 6.42595 7.80273 6.15137L5.07617 3.42383L4.65137 3L5.5 2.15137Z",fill:"currentColor"})}),as=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M14.1168 13.197L13.197 14.1167L1.8833 2.80303L2.80309 1.88324L14.1168 13.197Z",fill:"currentColor"}),c.jsx("path",{d:"M13.197 1.88326L14.1168 2.80305L2.80309 14.1168L1.8833 13.197L13.197 1.88326Z",fill:"currentColor"})]}),Yu=({size:e=14,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M10.6074 4.40278L8.00975 6.99973L10.6074 9.59739L9.59736 10.6074L6.9997 8.00978L4.40274 10.6074L3.3927 9.59739L5.98966 6.99973L3.3927 4.40278L4.40274 3.39273L6.9997 5.98969L9.59736 3.39273L10.6074 4.40278Z",fill:"currentColor"})}),S5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M6.14929 4.02032C7.11197 4.02032 7.87983 4.02016 8.49597 4.07598C9.12128 4.13269 9.65792 4.25188 10.1415 4.53106C10.7202 4.8653 11.2008 5.3459 11.535 5.92462C11.8142 6.40818 11.9334 6.94481 11.9901 7.57012C12.0459 8.18625 12.0458 8.95419 12.0458 9.9168C12.0458 10.8795 12.0459 11.6473 11.9901 12.2635C11.9334 12.8888 11.8142 13.4254 11.535 13.909C11.2008 14.4877 10.7202 14.9683 10.1415 15.3025C9.65792 15.5817 9.12128 15.7009 8.49597 15.7576C7.87984 15.8134 7.11196 15.8133 6.14929 15.8133C5.18667 15.8133 4.41874 15.8134 3.80261 15.7576C3.1773 15.7009 2.64067 15.5817 2.1571 15.3025C1.5784 14.9683 1.09778 14.4877 0.76355 13.909C0.484366 13.4254 0.365184 12.8888 0.308472 12.2635C0.252649 11.6473 0.252808 10.8795 0.252808 9.9168C0.252808 8.95418 0.252664 8.18625 0.308472 7.57012C0.365184 6.94481 0.484366 6.40818 0.76355 5.92462C1.09777 5.34589 1.57839 4.86529 2.1571 4.53106C2.64067 4.25188 3.1773 4.13269 3.80261 4.07598C4.41874 4.02017 5.18666 4.02032 6.14929 4.02032ZM6.14929 5.37774C5.16181 5.37774 4.46634 5.37761 3.92566 5.42657C3.39434 5.47472 3.07859 5.56574 2.83582 5.70587C2.4632 5.92106 2.15354 6.2307 1.93835 6.60333C1.79823 6.8461 1.70721 7.16185 1.65906 7.69317C1.6101 8.23385 1.61023 8.92933 1.61023 9.9168C1.61023 10.9043 1.61009 11.5998 1.65906 12.1404C1.70721 12.6717 1.79823 12.9875 1.93835 13.2303C2.15356 13.6029 2.46321 13.9126 2.83582 14.1277C3.07859 14.2679 3.39434 14.3589 3.92566 14.407C4.46634 14.456 5.16182 14.4559 6.14929 14.4559C7.13682 14.4559 7.83224 14.456 8.37292 14.407C8.90425 14.3589 9.21999 14.2679 9.46277 14.1277C9.83535 13.9126 10.145 13.6029 10.3602 13.2303C10.5004 12.9875 10.5914 12.6717 10.6395 12.1404C10.6885 11.5998 10.6884 10.9043 10.6884 9.9168C10.6884 8.92934 10.6885 8.23384 10.6395 7.69317C10.5914 7.16185 10.5004 6.8461 10.3602 6.60333C10.1451 6.23071 9.83536 5.92107 9.46277 5.70587C9.21999 5.56574 8.90424 5.47472 8.37292 5.42657C7.83224 5.3776 7.13682 5.37774 6.14929 5.37774ZM9.80164 0.367975C10.7638 0.367975 11.5314 0.36788 12.1473 0.423639C12.7726 0.480307 13.3093 0.598759 13.7928 0.877741C14.3717 1.21192 14.8521 1.69355 15.1864 2.27227C15.4655 2.75574 15.5857 3.29164 15.6425 3.9168C15.6983 4.53301 15.6971 5.3016 15.6971 6.26446V7.82989C15.6971 8.29264 15.6989 8.58993 15.6649 8.84844C15.4668 10.3525 14.401 11.5738 12.9833 11.9988V10.5467C13.6973 10.1903 14.2105 9.49662 14.3192 8.67169C14.3387 8.52347 14.3407 8.3358 14.3407 7.82989V6.26446C14.3407 5.27706 14.3398 4.58149 14.2909 4.04083C14.2428 3.50968 14.1526 3.19372 14.0126 2.95098C13.7974 2.57849 13.4876 2.26869 13.1151 2.05352C12.8724 1.91347 12.5564 1.82237 12.0253 1.77423C11.4847 1.72528 10.7888 1.7254 9.80164 1.7254H7.71472C6.7562 1.72558 5.92665 2.27697 5.52332 3.07891H4.07019C4.54221 1.51132 5.9932 0.368186 7.71472 0.367975H9.80164Z",fill:"currentColor"})}),E5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M9.94076 1.34942C10.7047 0.90231 11.6503 0.902415 12.4143 1.34942C12.7061 1.52015 12.9688 1.79118 13.3104 2.13284C13.6521 2.47448 13.9231 2.73721 14.0939 3.02894C14.5408 3.79294 14.5409 4.73856 14.0939 5.50251C13.9231 5.79415 13.652 6.05704 13.3104 6.39861L6.65932 13.0497C6.28068 13.4284 6.00695 13.7108 5.66543 13.9097C5.32391 14.1085 4.94315 14.2074 4.42705 14.3498L3.24394 14.6761C2.77527 14.8054 2.34538 14.9262 2.00131 14.9684C1.65196 15.0112 1.17964 15.0013 0.810764 14.6325C0.441921 14.2637 0.432107 13.7913 0.47486 13.442C0.517035 13.0979 0.6379 12.668 0.767181 12.1993L1.09352 11.0162C1.23588 10.5001 1.33481 10.1193 1.5336 9.77784C1.7325 9.43632 2.0149 9.1626 2.39355 8.78395L9.04466 2.13284C9.38625 1.79126 9.64911 1.52016 9.94076 1.34942ZM15.5427 14.8398H7.55223L8.96707 13.425H15.5427V14.8398ZM3.39382 9.78422C2.965 10.213 2.84244 10.3436 2.75709 10.49C2.67183 10.6366 2.61862 10.8079 2.45733 11.3925L2.13099 12.5756C2.00183 13.0439 1.92194 13.3419 1.88863 13.5536C2.10041 13.5204 2.39872 13.4416 2.86764 13.3123L4.05075 12.9859C4.63544 12.8246 4.80669 12.7715 4.95323 12.6862C5.09968 12.6008 5.23022 12.4783 5.65905 12.0494L10.721 6.98644L8.45577 4.72121L3.39382 9.78422ZM11.7 2.57079C11.3774 2.38198 10.9777 2.38198 10.6551 2.57079C10.5602 2.62647 10.4487 2.72931 10.0449 3.13311L9.45604 3.72094L11.7213 5.98617L12.3102 5.39833C12.7139 4.99457 12.8168 4.88307 12.8725 4.78818C13.0613 4.46561 13.0612 4.06585 12.8725 3.74326C12.8169 3.64827 12.7146 3.53752 12.3102 3.13311C11.9057 2.72863 11.795 2.6264 11.7 2.57079Z",fill:"currentColor"})}),j5=({size:e=14,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M7.06431 5.93342C7.68763 5.93342 8.19307 6.43904 8.19322 7.06233C8.19322 7.68573 7.68772 8.19123 7.06431 8.19123C6.44099 8.19113 5.9354 7.68567 5.9354 7.06233C5.93555 6.43911 6.44108 5.93353 7.06431 5.93342Z",fill:"currentColor"}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.6815 0.963693C10.1169 0.447019 11.6266 0.374829 12.5633 1.31135C13.5 2.24805 13.4277 3.75776 12.911 5.19319C12.7126 5.74431 12.4386 6.31796 12.0965 6.89729C12.4969 7.54638 12.8141 8.19018 13.036 8.80647C13.5527 10.2419 13.6251 11.7516 12.6883 12.6883C11.7516 13.625 10.242 13.5527 8.8065 13.036C8.19022 12.8141 7.54641 12.4969 6.89732 12.0965C6.31797 12.4386 5.74435 12.7125 5.19322 12.911C3.75777 13.4276 2.2481 13.5 1.31138 12.5633C0.374859 11.6266 0.447049 10.1168 0.963724 8.68147C1.17185 8.10338 1.46321 7.50063 1.82896 6.8924C1.52182 6.35711 1.27235 5.82825 1.08872 5.31819C0.572068 3.88278 0.499714 2.37306 1.43638 1.43635C2.37308 0.499655 3.8828 0.572044 5.31822 1.08869C5.82828 1.27232 6.35715 1.5218 6.89243 1.82893C7.50066 1.46318 8.10341 1.17181 8.6815 0.963693ZM11.3573 8.01154C10.9083 8.62253 10.3901 9.22873 9.80943 9.8094C9.22877 10.3901 8.62255 10.9083 8.01158 11.3572C8.4257 11.5841 8.8287 11.7688 9.21275 11.9071C10.5456 12.3868 11.4246 12.2547 11.8397 11.8397C12.2548 11.4246 12.3869 10.5456 11.9071 9.21272C11.7688 8.82866 11.5841 8.42568 11.3573 8.01154ZM2.56529 8.02912C2.37344 8.39322 2.21495 8.74796 2.09263 9.08772C1.61291 10.4204 1.74512 11.2995 2.16001 11.7147C2.57505 12.1297 3.45415 12.2618 4.78697 11.7821C5.11057 11.6656 5.44786 11.5164 5.7938 11.3367C5.249 10.9223 4.70922 10.4533 4.19029 9.9344C3.57578 9.31987 3.03169 8.67633 2.56529 8.02912ZM6.90708 3.2469C6.24065 3.70479 5.5646 4.26321 4.91392 4.91389C4.26325 5.56456 3.70482 6.24063 3.24693 6.90705C3.72674 7.63325 4.32777 8.37459 5.03892 9.08576C5.64943 9.69627 6.28183 10.2265 6.90806 10.6678C7.59368 10.2025 8.2908 9.63076 8.96079 8.96076C9.6308 8.29075 10.2025 7.59366 10.6678 6.90803C10.2265 6.2818 9.69631 5.6494 9.08579 5.03889C8.37462 4.32773 7.63328 3.72672 6.90708 3.2469ZM11.7147 2.15998C11.2996 1.74509 10.4204 1.61288 9.08775 2.0926C8.74835 2.21479 8.39382 2.37271 8.03013 2.56428C8.67728 3.03065 9.31995 3.5758 9.93443 4.19026C10.4534 4.7092 10.9223 5.24896 11.3368 5.79377C11.5164 5.44785 11.6656 5.11052 11.7821 4.78694C12.2618 3.45416 12.1297 2.57502 11.7147 2.15998ZM4.91197 2.2176C3.57922 1.73788 2.70004 1.86995 2.28501 2.28498C1.87001 2.70003 1.73791 3.5792 2.21763 4.91194C2.31709 5.18822 2.44112 5.47427 2.58677 5.7674C3.01931 5.1887 3.51474 4.6158 4.06529 4.06526C4.61584 3.5147 5.18872 3.01928 5.76743 2.58674C5.47431 2.4411 5.18824 2.31706 4.91197 2.2176Z",fill:"currentColor"})]}),L5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M5.5498 9.75V5H6.9502V9.75C6.9502 10.3299 7.4201 10.7998 8 10.7998C8.5799 10.7998 9.0498 10.3299 9.0498 9.75V4.5C9.0498 2.9536 7.7964 1.7002 6.25 1.7002C4.7036 1.7002 3.4502 2.9536 3.4502 4.5V9.75C3.4502 12.2629 5.4871 14.2998 8 14.2998C10.5129 14.2998 12.5498 12.2629 12.5498 9.75V4H13.9502V9.75C13.9502 13.0361 11.2861 15.7002 8 15.7002C4.71391 15.7002 2.0498 13.0361 2.0498 9.75V4.5C2.04981 2.1804 3.9304 0.299806 6.25 0.299805C8.5696 0.299805 10.4502 2.1804 10.4502 4.5V9.75C10.4502 11.1031 9.3531 12.2002 8 12.2002C6.6469 12.2002 5.5498 11.1031 5.5498 9.75Z",fill:"currentColor"})}),N5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.3368 1.53569L11.931 4.43172H14.8086V5.79673H11.7404L11.1962 9.67859H14.2839V11.0436H11.0056L10.4994 14.6529L9.14873 14.4643L9.62731 11.0436H5.75876L5.25252 14.6529L3.90186 14.4643L4.38043 11.0436H1.69141V9.67859H4.57104L5.11417 5.79673H2.21609V4.43172H5.30581L5.73724 1.34713L7.08995 1.53569L6.68414 4.43172H10.5527L10.9841 1.34713L12.3368 1.53569ZM5.94937 9.67859H9.81791L10.361 5.79673H6.49353L5.94937 9.67859Z",fill:"currentColor"})}),I5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",children:c.jsx("path",{transform:"translate(1.292 1.3)",d:"M10.3232 9.18164C11.2868 9.18164 12.0985 9.82833 12.3506 10.7109L13.415 10.7109L13.415 11.8711L12.3496 11.8711C12.0971 12.7532 11.2864 13.3994 10.3232 13.3994C9.36031 13.3992 8.55012 12.7531 8.29785 11.8711L0 11.8711L0 10.7109L8.29688 10.7109C8.54876 9.82845 9.35988 9.18186 10.3232 9.18164ZM10.3232 10.3418C9.7999 10.3421 9.37534 10.7667 9.375 11.29C9.375 11.8137 9.79969 12.239 10.3232 12.2393C10.847 12.2393 11.2725 11.8138 11.2725 11.29C11.2721 10.7666 10.8468 10.3418 10.3232 10.3418ZM12.4326 11.291C12.4326 11.3549 12.4284 11.418 12.4229 11.4805C12.4287 11.4181 12.4326 11.355 12.4326 11.291ZM8.21484 11.2832C8.21484 11.2856 8.21484 11.2886 8.21484 11.291L8.21484 11.29C8.21484 11.2878 8.21484 11.2855 8.21484 11.2832ZM3.08301 4.59082C4.04605 4.59095 4.85696 5.23717 5.10938 6.11914L13.415 6.11914L13.415 7.2793L5.11035 7.2793C4.85833 8.16202 4.04648 8.80846 3.08301 8.80859C2.11972 8.80843 1.30963 8.16179 1.05762 7.2793L0 7.2793L0 6.11914L1.05762 6.11914C1.30994 5.23728 2.12006 4.59098 3.08301 4.59082ZM3.08301 5.75098C2.55962 5.75117 2.13512 6.17587 2.13477 6.69922C2.13477 7.22287 2.5594 7.64824 3.08301 7.64844C3.60665 7.64828 4.03223 7.2229 4.03223 6.69922C4.03187 6.17585 3.60643 5.75113 3.08301 5.75098ZM5.19238 6.69922C5.19238 6.763 5.18816 6.82633 5.18262 6.88867C5.18846 6.82629 5.19238 6.76313 5.19238 6.69922C5.19236 6.63495 5.18853 6.57152 5.18262 6.50879C5.18826 6.57154 5.19236 6.635 5.19238 6.69922ZM0.982422 6.52344C0.977382 6.58136 0.97463 6.63999 0.974609 6.69922C0.974609 6.75775 0.977496 6.81579 0.982422 6.87305C0.977758 6.81579 0.974609 6.75767 0.974609 6.69922C0.974628 6.64 0.977618 6.58142 0.982422 6.52344ZM10.3232 0C11.2869 0 12.0986 0.646596 12.3506 1.5293L13.415 1.5293L13.415 2.68945L12.3496 2.68945C12.363 2.64266 12.3754 2.59488 12.3857 2.54688C12.1838 3.50118 11.3376 4.21777 10.3232 4.21777C9.36037 4.21756 8.55018 3.57139 8.29785 2.68945L0 2.68945L0 1.5293L8.29688 1.5293C8.5487 0.646717 9.35981 0.00021854 10.3232 0ZM10.3232 1.16016C9.79984 1.16042 9.37524 1.58499 9.375 2.1084C9.375 2.63201 9.79969 3.05735 10.3232 3.05762C10.847 3.05762 11.2725 2.63217 11.2725 2.1084C11.2722 1.58483 10.8469 1.16016 10.3232 1.16016ZM12.4229 2.29883C12.4287 2.23641 12.4326 2.17331 12.4326 2.10938C12.4326 2.17327 12.4284 2.23638 12.4229 2.29883ZM8.21484 2.10938L8.21484 2.1084L8.21484 2.10938ZM8.22266 1.93359C8.21785 1.98897 8.21506 2.04499 8.21484 2.10156C8.21503 2.04501 8.2181 1.98902 8.22266 1.93359ZM8.22266 11.1162C8.2179 11.1713 8.21507 11.227 8.21484 11.2832C8.21504 11.227 8.21814 11.1713 8.22266 11.1162Z",fill:"currentColor"})}),P5=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",children:[c.jsx("path",{transform:"translate(9.52 2.52)",d:"M3.55246 0L3.55246 2.44252L6 2.44252L6 3.55748L3.55246 3.55748L3.55246 6L2.43834 6L2.43834 3.55748L0 3.55748L0 2.44252L2.43834 2.44252L2.43834 0L3.55246 0Z",fill:"currentColor"}),c.jsx("path",{transform:"translate(0.3496 2.35)",d:"M4.76367 0C5.36861 1.80598e-05 5.93113 0.310294 6.25488 0.821289L6.78027 1.64941C6.79685 1.67558 6.81791 1.69775 6.83887 1.71973C6.72186 2.15521 6.65702 2.61192 6.65137 3.08301C6.25601 2.96045 5.90909 2.70478 5.68164 2.3457L5.15723 1.5166C5.07183 1.38189 4.92318 1.3008 4.76367 1.30078L2.32422 1.30078C1.7589 1.30078 1.30078 1.7589 1.30078 2.32422L1.30078 10.1338C1.30078 10.6991 1.7589 11.1572 2.32422 11.1572L11.9766 11.1572C12.5419 11.1572 13 10.6991 13 10.1338L13 8.58398C13.4545 8.5135 13.8903 8.38748 14.3008 8.21289L14.3008 10.1338C14.3008 11.4171 13.2598 12.458 11.9766 12.458L2.32422 12.458C1.04093 12.458 0 11.4171 0 10.1338L0 2.32422C0 1.04093 1.04093 0 2.32422 0L4.76367 0Z",fill:"currentColor"})]}),Xu=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",children:[c.jsx("path",{d:"M5.19629 1.57104C5.81144 1.5711 6.38623 1.8786 6.72754 2.39038L7.19922 3.09839C7.28454 3.22635 7.42824 3.30344 7.58203 3.30347H12.1699C13.5039 3.30348 14.5859 4.38548 14.5859 5.71948V6.62671C15.2694 7.02689 15.6605 7.85012 15.4385 8.68726L14.3848 12.658C14.1037 13.7164 13.1449 14.4527 12.0498 14.4529H2.91699C1.51651 14.4529 0.451662 13.2814 0.501954 11.9519V3.98706C0.501954 2.65305 1.58396 1.57104 2.91797 1.57104H5.19629ZM3.7793 7.75562C3.30994 7.75562 2.89883 8.07153 2.77832 8.52515L1.91602 11.7722C1.74167 12.4291 2.23734 13.073 2.91699 13.073H12.0498C12.5191 13.0728 12.9304 12.757 13.0508 12.3035L14.1045 8.33374C14.1819 8.04202 13.9619 7.756 13.6602 7.75562H3.7793ZM2.91797 2.9519C2.34625 2.9519 1.88281 3.41534 1.88281 3.98706V7.2937C2.33068 6.7269 3.02249 6.37476 3.7793 6.37476H13.2051V5.71948C13.2051 5.14777 12.7416 4.68434 12.1699 4.68433H7.58203C6.96675 4.6843 6.39209 4.37595 6.05078 3.86401L5.5791 3.15601C5.49379 3.02821 5.34995 2.95196 5.19629 2.9519H2.91797Z",fill:"currentColor"}),c.jsx("path",{opacity:"0.2",d:"M13.6602 7.75525C13.9618 7.7556 14.1815 8.04179 14.1045 8.33337L13.0508 12.3031C12.9304 12.7567 12.5191 13.0725 12.0498 13.0726H2.91701C2.23744 13.0725 1.7417 12.4287 1.91603 11.7719L2.77834 8.52478C2.89898 8.07146 3.31018 7.75532 3.77931 7.75525H13.6602ZM5.1963 2.95154C5.34985 2.95159 5.49377 3.02803 5.57912 3.15564L6.0508 3.86365C6.39205 4.37553 6.96685 4.68385 7.58205 4.68396H12.1699C12.7416 4.68396 13.2049 5.14754 13.2051 5.71912V6.37439H3.77931C3.02267 6.37444 2.33067 6.72671 1.88283 7.29333V3.98669C1.88299 3.4152 2.34649 2.95168 2.91798 2.95154H5.1963Z",fill:"currentColor"})]}),M5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",children:c.jsx("path",{transform:"translate(1.5 2.429)",d:"M5.05582 0.518756L4.50669 0.86654L5.05582 0.518756ZM13 9.4837L13.65 9.4837L13.65 3.53962L13 3.53962L12.35 3.53962L12.35 9.4837L13 9.4837ZM11.3264 1.86603L11.3264 1.21603L6.52313 1.21603L6.52313 1.86603L6.52313 2.51603L11.3264 2.51603L11.3264 1.86603ZM5.58054 1.34727L6.12968 0.999489L5.60495 0.170972L5.05582 0.518756L4.50669 0.86654L5.03141 1.69506L5.58054 1.34727ZM4.11323 1.23058e-13L4.11323 -0.65L1.67359 -0.65L1.67359 5.00699e-14L1.67359 0.65L4.11323 0.65L4.11323 1.23058e-13ZM0 1.67359L-0.65 1.67359L-0.65 9.4837L0 9.4837L0.65 9.4837L0.65 1.67359L0 1.67359ZM11.3264 11.1573L11.3264 10.5073L1.67359 10.5073L1.67359 11.1573L1.67359 11.8073L11.3264 11.8073L11.3264 11.1573ZM0 9.4837L-0.65 9.4837C-0.65 10.767 0.390308 11.8073 1.67359 11.8073L1.67359 11.1573L1.67359 10.5073C1.10828 10.5073 0.65 10.049 0.65 9.4837L0 9.4837ZM1.67359 5.00699e-14L1.67359 -0.65C0.390307 -0.65 -0.65 0.390309 -0.65 1.67359L0 1.67359L0.65 1.67359C0.65 1.10828 1.10828 0.65 1.67359 0.65L1.67359 5.00699e-14ZM5.05582 0.518756L5.60495 0.170972C5.28121 -0.340193 4.71829 -0.65 4.11323 -0.65L4.11323 1.23058e-13L4.11323 0.65C4.27282 0.65 4.4213 0.731715 4.50669 0.86654L5.05582 0.518756ZM6.52313 1.86603L6.52313 1.21603C6.36354 1.21603 6.21507 1.13431 6.12968 0.999489L5.58054 1.34727L5.03141 1.69506C5.35515 2.20622 5.91808 2.51603 6.52313 2.51603L6.52313 1.86603ZM13 3.53962L13.65 3.53962C13.65 2.25634 12.6097 1.21603 11.3264 1.21603L11.3264 1.86603L11.3264 2.51603C11.8917 2.51603 12.35 2.97431 12.35 3.53962L13 3.53962ZM13 9.4837L12.35 9.4837C12.35 10.049 11.8917 10.5073 11.3264 10.5073L11.3264 11.1573L11.3264 11.8073C12.6097 11.8073 13.65 10.767 13.65 9.4837L13 9.4837Z",fill:"currentColor"})}),T5=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M11.3496 8C11.3496 6.14985 9.85015 4.65039 8 4.65039C6.14985 4.65039 4.65039 6.14985 4.65039 8C4.65039 9.85015 6.14985 11.3496 8 11.3496C9.85015 11.3496 11.3496 9.85015 11.3496 8ZM12.6504 8C12.6504 10.5681 10.5681 12.6504 8 12.6504C5.43188 12.6504 3.34961 10.5681 3.34961 8C3.34961 5.43188 5.43188 3.34961 8 3.34961C10.5681 3.34961 12.6504 5.43188 12.6504 8Z",fill:"currentColor"}),c.jsx("path",{d:"M8.65039 0.5V2.5H7.34961V0.5H8.65039Z",fill:"currentColor"}),c.jsx("path",{d:"M8.65039 13.5V15.5H7.34961V13.5H8.65039Z",fill:"currentColor"}),c.jsx("path",{d:"M3.15808 2.24035L4.57229 3.65456L3.6525 4.57435L2.23829 3.16014L3.15808 2.24035Z",fill:"currentColor"}),c.jsx("path",{d:"M12.3505 11.4327L13.7647 12.8469L12.8449 13.7667L11.4307 12.3525L12.3505 11.4327Z",fill:"currentColor"}),c.jsx("path",{d:"M2.24537 12.8469L3.65958 11.4327L4.57937 12.3525L3.16516 13.7667L2.24537 12.8469Z",fill:"currentColor"}),c.jsx("path",{d:"M11.4377 3.65455L12.852 2.24033L13.7718 3.16012L12.3575 4.57434L11.4377 3.65455Z",fill:"currentColor"}),c.jsx("path",{d:"M0.5 7.35461H2.5V8.6554H0.5L0.5 7.35461Z",fill:"currentColor"}),c.jsx("path",{d:"M13.5 7.35461H15.5V8.6554H13.5V7.35461Z",fill:"currentColor"})]}),z5=({size:e=16,className:r})=>c.jsx("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M13.2764 9.52324C12.5607 9.97754 11.7177 10.242 10.7812 10.242C8.11386 10.2419 5.95042 8.07997 5.9502 5.41289C5.9502 4.48128 6.21453 3.61071 6.67188 2.87285C4.30332 3.4658 2.54992 5.60845 2.5498 8.16093C2.5498 11.1712 4.99103 13.6102 8 13.6102C10.5383 13.6102 12.6709 11.8724 13.2764 9.52324ZM7.05078 5.41289C7.051 7.47224 8.72116 9.1423 10.7812 9.14238C11.9248 9.14238 12.887 8.63397 13.5781 7.8084C13.7266 7.63106 13.9701 7.56547 14.1875 7.64433C14.4049 7.72329 14.5497 7.9297 14.5498 8.16093C14.5498 11.7766 11.6161 14.7098 8 14.7098C4.38402 14.7098 1.4502 11.7792 1.4502 8.16093C1.45033 4.54322 4.3812 1.61015 8 1.61015C8.23027 1.61015 8.43585 1.75352 8.51562 1.96953C8.59536 2.18554 8.53241 2.42829 8.35742 2.57793C7.55573 3.26311 7.05078 4.27876 7.05078 5.41289Z",fill:"currentColor"})}),R5=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M12.1665 13.5811V14.7803H3.66651V13.5811H12.1665Z",fill:"currentColor"}),c.jsx("path",{d:"M13.4453 7.02379C13.4453 6.04702 13.4452 5.3616 13.3887 4.83434C13.3333 4.31828 13.2302 4.02378 13.0723 3.80309C12.9446 3.62475 12.7877 3.46883 12.6094 3.34117C12.3887 3.18328 12.0942 3.08007 11.5781 3.02477C11.0508 2.96829 10.3655 2.96715 9.38867 2.96715H6.61035C5.63359 2.96715 4.94816 2.96827 4.4209 3.02477C3.90486 3.0801 3.61034 3.18321 3.38965 3.34117C3.21143 3.46878 3.05534 3.62487 2.92774 3.80309C2.76977 4.02377 2.66667 4.3183 2.61133 4.83434C2.55483 5.3616 2.55371 6.04702 2.55371 7.02379C2.55371 8.0006 2.55485 8.68596 2.61133 9.21324C2.66663 9.72936 2.76983 10.0238 2.92774 10.2445C3.0554 10.4228 3.21131 10.5797 3.38965 10.7074C3.61034 10.8654 3.90484 10.9685 4.4209 11.0238C4.94816 11.0803 5.63359 11.0804 6.61035 11.0804H9.38867C10.3654 11.0804 11.0508 11.0803 11.5781 11.0238C12.0941 10.9685 12.3887 10.8652 12.6094 10.7074C12.7877 10.5797 12.9446 10.4229 13.0723 10.2445C13.2301 10.0238 13.3334 9.72927 13.3887 9.21324C13.4452 8.68596 13.4453 8.00058 13.4453 7.02379ZM14.6455 7.02379C14.6455 7.97428 14.646 8.73509 14.5811 9.34117C14.5149 9.95828 14.3756 10.4858 14.0479 10.9437C13.8436 11.229 13.5938 11.4788 13.3086 11.683C12.8507 12.0108 12.3232 12.15 11.7061 12.2162C11.1 12.2811 10.3391 12.2806 9.38867 12.2806H6.61035C5.66018 12.2806 4.89991 12.2811 4.29395 12.2162C3.67684 12.15 3.14935 12.0108 2.69141 11.683C2.40613 11.4788 2.15639 11.229 1.95215 10.9437C1.62436 10.4858 1.4841 9.95828 1.41797 9.34117C1.35305 8.73511 1.35449 7.97424 1.35449 7.02379C1.35449 6.07366 1.35308 5.31333 1.41797 4.70738C1.4841 4.09028 1.62436 3.56279 1.95215 3.10485C2.15638 2.81956 2.40613 2.56982 2.69141 2.36559C3.14935 2.03779 3.67684 1.89753 4.29395 1.83141C4.8999 1.76652 5.66022 1.76793 6.61035 1.76793H9.38867C10.3391 1.76793 11.1 1.76649 11.7061 1.83141C12.3232 1.89753 12.8507 2.03779 13.3086 2.36559C13.5939 2.56982 13.8436 2.81957 14.0479 3.10485C14.3756 3.56279 14.5149 4.09028 14.5811 4.70738C14.646 5.31335 14.6455 6.07362 14.6455 7.02379Z",fill:"currentColor"})]}),Sd=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0997 8.54554C12.2905 8.54989 12.3541 8.58056 12.4535 8.74614L12.8849 9.46387C12.9851 9.63071 13.0464 9.66013 13.2388 9.66447H14.1138C14.3417 9.66448 14.3512 9.66937 14.4686 9.86507L14.892 10.5717C14.9942 10.7422 14.9948 10.8247 14.892 10.9961L14.4756 11.6906C14.3741 11.8677 14.3694 11.9379 14.4756 12.115L14.892 12.8096C14.9942 12.9801 14.9947 13.0625 14.892 13.234L14.4686 13.9406C14.3643 14.1028 14.3063 14.1354 14.1138 14.1412H13.2388C13.0465 14.1456 12.985 14.1752 12.8849 14.3418L12.4535 15.0595C12.353 15.2195 12.2895 15.2558 12.0997 15.2601H11.2237C10.9962 15.2601 10.9871 15.2548 10.8699 15.0595L10.4384 14.3418C10.3383 14.175 10.2767 14.1456 10.0846 14.1412H9.2096C9.01854 14.1355 8.95761 14.1006 8.85477 13.9406L8.43139 13.234C8.32562 13.0576 8.33148 12.9862 8.43139 12.8096L8.84771 12.115C8.95165 11.9416 8.94659 11.863 8.84771 11.6906L8.43139 10.9961C8.32767 10.8232 8.33411 10.7437 8.43139 10.5717L8.85477 9.86507C8.95447 9.69891 9.01875 9.67017 9.2096 9.66447H10.0846C10.2741 9.66441 10.3414 9.62547 10.4384 9.46387L10.8699 8.74614C10.987 8.55106 10.9963 8.54554 11.2237 8.54554H12.0997ZM11.6612 10.232C11.3326 10.7798 10.8155 11.0948 10.1743 11.106C10.4443 11.61 10.4425 12.1976 10.1743 12.6987C10.803 12.7096 11.3391 13.0359 11.6612 13.5727C11.9855 13.0323 12.5131 12.7098 13.148 12.6987C12.879 12.196 12.8789 11.6086 13.148 11.106C12.5076 11.0948 11.9894 10.7794 11.6612 10.232Z",fill:"currentColor"}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.51205 0.790627C9.19055 0.790649 10.7401 1.0691 11.892 1.54364C12.4664 1.78029 12.9719 2.07885 13.3436 2.4408C13.7171 2.80467 13.9916 3.27253 13.9918 3.82384V7.90442C13.6067 7.69532 13.1907 7.53597 12.7529 7.43366V5.66454C12.4928 5.82898 12.2028 5.97601 11.892 6.10405C10.74 6.57865 9.19071 6.85706 7.51205 6.85706C5.8337 6.85703 4.285 6.57852 3.13309 6.10405C2.82215 5.97593 2.53164 5.8291 2.27121 5.66454V7.4135C2.27134 7.75678 2.6066 8.27106 3.62502 8.73405C4.58641 9.17097 5.95762 9.45591 7.50499 9.45681C7.24582 9.83133 7.03684 10.2434 6.88706 10.6826C5.44388 10.6162 4.12516 10.3216 3.11192 9.86104C2.81708 9.72698 2.53185 9.56866 2.27121 9.38928V11.2542C2.27158 11.5974 2.60697 12.1109 3.62502 12.5737C4.41933 12.9347 5.4937 13.1898 6.71569 13.2693C6.80349 13.7128 6.9513 14.1345 7.14814 14.5273C5.60324 14.4862 4.18593 14.1889 3.11192 13.7007C2.01039 13.1998 1.03366 12.3814 1.03333 11.2542V3.82384C1.03352 3.27273 1.30721 2.80461 1.68049 2.4408C2.05211 2.07893 2.55887 1.78026 3.13309 1.54364C4.28492 1.06926 5.83393 0.790683 7.51205 0.790627ZM7.51205 2.02851C5.95492 2.02857 4.57354 2.29079 3.60486 2.68979C3.11958 2.88977 2.76667 3.11253 2.5454 3.32788C2.32671 3.54101 2.2714 3.7089 2.27121 3.82384C2.27121 3.93882 2.32624 4.10625 2.5454 4.3198C2.76667 4.53527 3.11927 4.75781 3.60486 4.9579C4.5736 5.35699 5.95467 5.61914 7.51205 5.61918C9.06942 5.61918 10.4505 5.35695 11.4192 4.9579C11.9051 4.75773 12.2584 4.53536 12.4797 4.3198C12.6988 4.10627 12.7529 3.93882 12.7529 3.82384C12.7527 3.70889 12.6984 3.54104 12.4797 3.32788C12.2584 3.11239 11.9049 2.88989 11.4192 2.68979C10.4505 2.29079 9.06925 2.02853 7.51205 2.02851Z",fill:"currentColor"})]}),Iu=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("ellipse",{cx:"8",cy:"3.6",rx:"5.75",ry:"2.4",stroke:"currentColor",strokeWidth:"1.25"}),c.jsx("path",{d:"M2.25 3.6V12.3A5.75 2.4 0 0 0 13.75 12.3V3.6",stroke:"currentColor",strokeWidth:"1.25"}),c.jsx("path",{d:"M2.25 7.95A5.75 2.4 0 0 0 13.75 7.95",stroke:"currentColor",strokeWidth:"1.25"})]}),D5=({size:e=16,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M12.5113 15.4067C12.4395 15.6249 12.1308 15.6249 12.059 15.4067L11.643 14.1416C11.454 13.567 11.0033 13.1164 10.4288 12.9274L9.16369 12.5113C8.94544 12.4395 8.94544 12.1308 9.16369 12.059L10.4288 11.643C11.0033 11.454 11.454 11.0033 11.643 10.4288L12.059 9.16369C12.1308 8.94544 12.4395 8.94544 12.5113 9.16369L12.9274 10.4288C13.1164 11.0033 13.567 11.454 14.1416 11.643L15.4067 12.059C15.6249 12.1308 15.6249 12.4395 15.4067 12.5113L14.1416 12.9274C13.567 13.1164 13.1164 13.567 12.9274 14.1416L12.5113 15.4067Z",fill:"currentColor"}),c.jsx("path",{d:"M9.02246 0.546878C9.9822 0.546878 10.7564 0.545403 11.374 0.612307C12.0042 0.680586 12.5515 0.826244 13.0273 1.17188C13.3052 1.37376 13.5501 1.61868 13.752 1.89649C14.0975 2.37225 14.2432 2.91984 14.3115 3.54981C14.3784 4.16727 14.377 4.94206 14.377 5.90137V8.51367C13.9611 8.29533 13.5071 8.13985 13.0273 8.06055V5.90137C13.0273 4.9121 13.0259 4.22322 12.9688 3.69532C12.9129 3.18044 12.8098 2.89782 12.6592 2.69043C12.5406 2.52724 12.3966 2.38326 12.2334 2.26465C12.026 2.11404 11.7437 2.0109 11.2285 1.95508C10.7005 1.89789 10.0122 1.89649 9.02246 1.89649H6.55371C5.56395 1.89649 4.87569 1.89787 4.34766 1.95508C3.83242 2.01092 3.55022 2.11398 3.34278 2.26465C3.17953 2.38329 3.03564 2.52719 2.91699 2.69043C2.76642 2.89782 2.66325 3.18042 2.60742 3.69532C2.55027 4.22322 2.54883 4.9121 2.54883 5.90137V10.0986C2.54883 11.0878 2.55031 11.7768 2.60742 12.3047C2.66326 12.8196 2.76642 13.1032 2.91699 13.3105C3.03558 13.4736 3.17966 13.6178 3.34278 13.7363C3.5502 13.8869 3.83265 13.9901 4.34766 14.0459C4.87568 14.1031 5.56398 14.1035 6.55371 14.1035H8.08399C8.27443 14.6025 8.55077 15.0585 8.89551 15.4541H6.55371C5.59402 15.4541 4.81976 15.4546 4.20215 15.3877C3.57204 15.3194 3.02468 15.1738 2.54883 14.8281C2.27111 14.6263 2.02606 14.3813 1.82422 14.1035C1.47883 13.6278 1.33293 13.08 1.26465 12.4502C1.19783 11.8327 1.19922 11.0579 1.19922 10.0986V5.90137C1.19922 4.94206 1.1978 4.16727 1.26465 3.54981C1.33295 2.91984 1.47867 2.37225 1.82422 1.89649C2.02613 1.61864 2.27098 1.37379 2.54883 1.17188C3.02472 0.826181 3.57197 0.6806 4.20215 0.612307C4.81976 0.545393 5.594 0.546877 6.55371 0.546878H9.02246ZM9.19629 9.14649H4.5459V7.84571H9.19629V9.14649ZM11.0303 6.10645H4.5459V4.80567H11.0303V6.10645Z",fill:"currentColor"})]}),A5=({size:e=20,className:r})=>c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.8659 2.05975C17.2603 2.05995 18.3913 3.19096 18.3914 4.58527V5.4874C18.3914 6.02747 18.2192 6.52672 17.9303 6.93735C17.9336 6.96524 17.9388 6.99318 17.9388 7.02195V12.8884C17.9388 13.6345 17.9395 14.2379 17.8996 14.7254C17.8642 15.1593 17.7936 15.5499 17.6373 15.9141L17.5654 16.0685C17.278 16.6328 16.8405 17.1046 16.3038 17.434L16.0679 17.5661C15.66 17.7739 15.2196 17.8598 14.7237 17.9003C14.2362 17.9401 13.6327 17.9405 12.8867 17.9405H7.11122C6.36511 17.9405 5.76171 17.9401 5.27418 17.9003C4.84051 17.8649 4.44949 17.7952 4.08545 17.6391L3.93104 17.5661C3.36673 17.2785 2.89392 16.8414 2.56465 16.3044L2.43245 16.0685C2.22473 15.6608 2.13878 15.2211 2.09825 14.7254C2.05841 14.2379 2.05912 13.6345 2.05912 12.8884V7.02195C2.05912 6.99284 2.06422 6.96449 2.06758 6.93629C1.77931 6.52592 1.60858 6.02687 1.60858 5.4874V4.58527C1.60876 3.19084 2.73962 2.05975 4.1341 2.05975H15.8659ZM16.4984 7.92936C16.296 7.98169 16.0847 8.01288 15.8659 8.01291H4.1341C3.91478 8.01291 3.70246 7.98194 3.49955 7.92936V12.8884C3.49955 13.6582 3.50053 14.1927 3.53445 14.608C3.56769 15.0146 3.62923 15.244 3.71635 15.415L3.7925 15.5514C3.98339 15.8627 4.25749 16.1165 4.58464 16.2833L4.72529 16.3435C4.88095 16.3993 5.08638 16.4402 5.39158 16.4651C5.80685 16.4991 6.34138 16.5001 7.11122 16.5001H12.8867C13.6564 16.5001 14.1911 16.499 14.6063 16.4651C15.0128 16.432 15.2423 16.3703 15.4133 16.2833L15.5508 16.2061C15.8618 16.0152 16.116 15.7419 16.2827 15.415L16.3429 15.2732C16.3985 15.1177 16.4396 14.9128 16.4645 14.608C16.4985 14.1927 16.4984 13.6583 16.4984 12.8884V7.92936ZM4.1341 3.50019C3.53511 3.50019 3.0492 3.98631 3.04902 4.58527V5.4874C3.04902 6.08649 3.535 6.57248 4.1341 6.57248H15.8659C16.4648 6.57228 16.951 6.08638 16.951 5.4874V4.58527C16.9509 3.98644 16.4647 3.50038 15.8659 3.50019H4.1341Z",fill:"currentColor"}),c.jsx("path",{d:"M12.7962 12.5661V11.0832H7.20548V12.5661L12.7962 12.5661Z",fill:"currentColor"})]}),F5="_root_1axg2_9",O5="_collapsed_1axg2_6",$5="_quietBars_1axg2_20",B5="_fading_1axg2_4",H5="_wide_1axg2_53",V5="_railIn_1axg2_64",U5="_iconButton_1axg2_66",W5="_newSession_1axg2_67",q5="_panelList_1axg2_68",Z5="_regionArea_1axg2_69",Q5="_footArea_1axg2_73",G5="_logoRow_1axg2_91",K5="_brand_1axg2_115",Y5="_brandIdentity_1axg2_130",X5="_brandMark_1axg2_138",J5="_brandName_1axg2_145",ep="_fallbackBrandName_1axg2_157",tp="_toggle_1axg2_208",np="_panelIcon_1axg2_208",rp="_railMark_1axg2_216",ip="_newSessionLabel_1axg2_290",lp="_panelRow_1axg2_308",op="_panelActive_1axg2_330",sp="_panelGlyph_1axg2_341",ap="_panelTitle_1axg2_348",up="_settingsArea_1axg2_396",cp="_footerActions_1axg2_397",Ze={root:F5,collapsed:O5,quietBars:$5,fading:B5,wide:H5,railIn:V5,iconButton:U5,newSession:W5,panelList:q5,regionArea:Z5,footArea:Q5,logoRow:G5,brand:K5,brandIdentity:Y5,brandMark:X5,brandName:J5,fallbackBrandName:ep,toggle:tp,panelIcon:np,railMark:rp,newSessionLabel:ip,panelRow:lp,panelActive:op,panelGlyph:sp,panelTitle:ap,settingsArea:up,footerActions:cp},dp=150,fp=2e3;function pp({id:e,label:r,wide:i,usePanelInfo:o,selectPanel:s,renderSlot:a}){const d=o(f=>f.activePanelId===e);return c.jsx(Lu,{label:r,delayMs:500,disabled:i,children:c.jsxs("button",{type:"button",className:st(Ze.panelRow,d&&Ze.panelActive),"aria-label":r,"aria-current":d?"page":void 0,onClick:()=>{s(e)},children:[c.jsx("span",{className:Ze.panelGlyph,"aria-hidden":"true",children:a("sidebar.panellist",{size:i?16:18,active:d},{only:e})}),i&&c.jsx("span",{className:st(Ze.panelTitle,Ze.wide),children:r})]})})}function hp({collapsed:e,width:r,startSession:i,toggleSidebar:o,selectPanel:s,usePanels:a,usePanelInfo:d,t:f,renderSlot:p}){const m=a(B=>B),[y,x]=E.useState(e);E.useEffect(()=>{if(!e){x(!1);return}const B=window.setTimeout(()=>{x(!0)},dp);return()=>{window.clearTimeout(B)}},[e]);const v=!e||!y,C=E.useRef(r);e||(C.current=r);const k=E.useRef(!e);e||(k.current=!0);const P=E.useRef(null),[R,j]=E.useState(!1),V=E.useRef(void 0),S=()=>{V.current===void 0&&(V.current=window.setTimeout(()=>{V.current=void 0,j(!1)},fp))},F=()=>{window.clearTimeout(V.current),V.current=void 0};return E.useEffect(()=>{if(!R)return;const B=T=>{var Y;const ee=(Y=P.current)==null?void 0:Y.getBoundingClientRect();if(ee===void 0)return;T.clientX>=ee.left&&T.clientX<ee.right&&T.clientY>=ee.top&&T.clientY<ee.bottom?F():S()};return document.addEventListener("pointermove",B),()=>{document.removeEventListener("pointermove",B),F()}},[R]),c.jsxs("div",{ref:P,className:st(Ze.root,!v&&Ze.collapsed,!v&&k.current&&Ze.railIn,e&&v&&Ze.fading,!R&&Ze.quietBars),style:v?{width:e?C.current:r}:void 0,onPointerEnter:()=>{F(),j(!0)},onPointerLeave:()=>{S()},children:[c.jsxs("div",{className:Ze.logoRow,children:[v&&c.jsx("button",{type:"button",className:st(Ze.brand,Ze.wide),"aria-label":f("session.new.label"),onClick:()=>{i()},children:c.jsxs("span",{className:Ze.brandIdentity,"aria-hidden":"true",children:[c.jsx("span",{className:Ze.brandMark,children:p("sidebar.brand.mark",{size:24},{fallback:c.jsx(es,{size:24})})}),c.jsx("span",{className:Ze.brandName,children:p("sidebar.brand.name",{},{fallback:c.jsx("span",{className:Ze.fallbackBrandName,children:f("brand.localBuild")})})})]})}),c.jsx(Lu,{label:f(e?"toggle.open":"toggle.collapse"),delayMs:500,children:c.jsxs("button",{type:"button",className:st(Ze.iconButton,Ze.toggle),"aria-label":f(e?"toggle.open":"toggle.collapse"),onClick:()=>{o()},children:[!v&&c.jsx("span",{className:Ze.railMark,"aria-hidden":"true",children:p("sidebar.brand.mark",{size:24},{fallback:c.jsx(es,{size:24})})}),c.jsx(b5,{className:Ze.panelIcon,size:v?16:18})]})})]}),c.jsx(Lu,{label:f("session.new.label"),delayMs:500,disabled:v,children:c.jsxs("button",{type:"button",className:Ze.newSession,"aria-label":f("session.new.label"),onClick:()=>{i()},children:[c.jsx(k5,{size:v?14:18}),v&&c.jsx("span",{className:st(Ze.newSessionLabel,Ze.wide),children:f("session.new")})]})}),m.length>0&&c.jsx("nav",{className:Ze.panelList,"aria-label":f("panels.label"),children:m.map(({id:B,label:T})=>c.jsx(pp,{id:B,label:T,wide:v,usePanelInfo:d,selectPanel:s,renderSlot:p},B))}),c.jsx("div",{className:Ze.regionArea,children:p("sidebar.workspaces",{wide:v,expandSidebar:()=>{e&&o()}})}),c.jsxs("div",{className:Ze.footArea,children:[c.jsx("div",{className:Ze.footerActions,children:p("sidebar.footer.action",{wide:v})}),c.jsx("div",{className:Ze.settingsArea,children:p("sidebar.settings",{wide:v})})]})]})}const mp="_root_xhk35_5",gp="_stack_xhk35_15",xp="_headline_xhk35_29",yp="_titleGroup_xhk35_51",vp="_previewBadge_xhk35_62",Cp="_logoFrame_xhk35_77",wp="_logo_xhk35_77",kp="_body_xhk35_98",_p="_workspace_xhk35_114",bp="_workspaceLabel_xhk35_160",Sn={root:mp,stack:gp,headline:xp,titleGroup:yp,previewBadge:vp,logoFrame:Cp,logo:wp,body:kp,workspace:_p,workspaceLabel:bp};function Sp({t:e,renderSlot:r,children:i}){return c.jsxs("div",{className:Sn.root,children:[c.jsxs("div",{className:Sn.stack,children:[c.jsxs("div",{className:Sn.headline,children:[c.jsx("span",{className:Sn.logoFrame,children:r("conversation.hero.brand.mark",{size:34,className:Sn.logo},{fallback:c.jsx(es,{size:34,className:Sn.logo})})}),c.jsxs("span",{className:Sn.titleGroup,children:[c.jsx("span",{children:e("hero.headline")}),c.jsx("span",{className:Sn.previewBadge,children:e("hero.preview")})]})]}),c.jsx("div",{className:Sn.body})]}),i]})}const Ep="_root_5w0r3_1",jp="_header_5w0r3_42",Lp="_titleRow_5w0r3_56",Np="_titleCluster_5w0r3_63",Ip="_crumbs_5w0r3_71",Pp="_crumb_5w0r3_71",Mp="_crumbCurrent_5w0r3_118",Tp="_headerActions_5w0r3_124",zp="_tabs_5w0r3_161",Rp="_tab_5w0r3_38",Dp="_tabActive_5w0r3_199",Ap="_viewArea_5w0r3_207",Fp="_composerStack_5w0r3_294",Op="_composerSeat_5w0r3_305",$p="_body_5w0r3_215",Bp="_scrollBody_5w0r3_341",Hp="_composerHero_5w0r3_442",Vp="_heroWorkspaceRow_5w0r3_455",ht={root:Ep,header:jp,titleRow:Lp,titleCluster:Np,crumbs:Ip,crumb:Pp,crumbCurrent:Mp,headerActions:Tp,tabs:zp,tab:Rp,tabActive:Dp,viewArea:Ap,composerStack:Fp,composerSeat:Op,body:$p,scrollBody:Bp,composerHero:Hp,heroWorkspaceRow:Vp},Up="_root_6nf6e_2",Wp="_hero_6nf6e_20",qp="_card_6nf6e_39",Zp="_scroll_6nf6e_125",Qp="_grow_6nf6e_143",Gp="_row_6nf6e_248",Kp="_tools_6nf6e_266",Yp="_trailing_6nf6e_268",Xp="_add_6nf6e_297",Jp="_primary_6nf6e_355",pn={root:Up,hero:Wp,card:qp,scroll:Zp,grow:Qp,row:Gp,tools:Kp,trailing:Yp,add:Xp,primary:Jp},e6="_root_14jhb_1",t6="_scroll_14jhb_9",n6="_column_14jhb_37",ru={root:e6,scroll:t6,column:n6},r6="_userRow_1dwc7_4",i6="_userStack_1dwc7_11",l6="_bubble_1dwc7_23",o6="_attachmentRow_1dwc7_296",s6="_fileCard_1dwc7_304",a6="_fileIcon_1dwc7_318",u6="_fileContent_1dwc7_324",c6="_fileName_1dwc7_331",d6="_fileMeta_1dwc7_341",Qn={userRow:r6,userStack:i6,bubble:l6,attachmentRow:o6,fileCard:s6,fileIcon:a6,fileContent:u6,fileName:c6,fileMeta:d6};function f6(e,r){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const p6=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,h6=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,m6={};function g2(e,r){return(m6.jsx?h6:p6).test(e)}const g6=/[ \t\n\f\r]/g;function x6(e){return typeof e=="object"?e.type==="text"?x2(e.value):!1:x2(e)}function x2(e){return e.replace(g6,"")===""}class jl{constructor(r,i,o){this.normal=i,this.property=r,o&&(this.space=o)}}jl.prototype.normal={};jl.prototype.property={};jl.prototype.space=void 0;function Ed(e,r){const i={},o={};for(const s of e)Object.assign(i,s.property),Object.assign(o,s.normal);return new jl(i,o,r)}function Pu(e){return e.toLowerCase()}class Xt{constructor(r,i){this.attribute=i,this.property=r}}Xt.prototype.attribute="";Xt.prototype.booleanish=!1;Xt.prototype.boolean=!1;Xt.prototype.commaOrSpaceSeparated=!1;Xt.prototype.commaSeparated=!1;Xt.prototype.defined=!1;Xt.prototype.mustUseProperty=!1;Xt.prototype.number=!1;Xt.prototype.overloadedBoolean=!1;Xt.prototype.property="";Xt.prototype.spaceSeparated=!1;Xt.prototype.space=void 0;let y6=0;const Pe=Zr(),mt=Zr(),Mu=Zr(),ue=Zr(),Ke=Zr(),Wr=Zr(),rn=Zr();function Zr(){return 2**++y6}const Tu=Object.freeze(Object.defineProperty({__proto__:null,boolean:Pe,booleanish:mt,commaOrSpaceSeparated:rn,commaSeparated:Wr,number:ue,overloadedBoolean:Mu,spaceSeparated:Ke},Symbol.toStringTag,{value:"Module"})),iu=Object.keys(Tu);class Ju extends Xt{constructor(r,i,o,s){let a=-1;if(super(r,i),y2(this,"space",s),typeof o=="number")for(;++a<iu.length;){const d=iu[a];y2(this,iu[a],(o&Tu[d])===Tu[d])}}}Ju.prototype.defined=!0;function y2(e,r,i){i&&(e[r]=i)}function _i(e){const r={},i={};for(const[o,s]of Object.entries(e.properties)){const a=new Ju(o,e.transform(e.attributes||{},o),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(a.mustUseProperty=!0),r[o]=a,i[Pu(o)]=o,i[Pu(a.attribute)]=o}return new jl(r,i,e.space)}const jd=_i({properties:{ariaActiveDescendant:null,ariaAtomic:mt,ariaAutoComplete:null,ariaBusy:mt,ariaChecked:mt,ariaColCount:ue,ariaColIndex:ue,ariaColSpan:ue,ariaControls:Ke,ariaCurrent:null,ariaDescribedBy:Ke,ariaDetails:null,ariaDisabled:mt,ariaDropEffect:Ke,ariaErrorMessage:null,ariaExpanded:mt,ariaFlowTo:Ke,ariaGrabbed:mt,ariaHasPopup:null,ariaHidden:mt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ke,ariaLevel:ue,ariaLive:null,ariaModal:mt,ariaMultiLine:mt,ariaMultiSelectable:mt,ariaOrientation:null,ariaOwns:Ke,ariaPlaceholder:null,ariaPosInSet:ue,ariaPressed:mt,ariaReadOnly:mt,ariaRelevant:null,ariaRequired:mt,ariaRoleDescription:Ke,ariaRowCount:ue,ariaRowIndex:ue,ariaRowSpan:ue,ariaSelected:mt,ariaSetSize:ue,ariaSort:null,ariaValueMax:ue,ariaValueMin:ue,ariaValueNow:ue,ariaValueText:null,role:null},transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function Ld(e,r){return r in e?e[r]:r}function Nd(e,r){return Ld(e,r.toLowerCase())}const v6=_i({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Wr,acceptCharset:Ke,accessKey:Ke,action:null,allow:null,allowFullScreen:Pe,allowPaymentRequest:Pe,allowUserMedia:Pe,alpha:Pe,alt:null,as:null,async:Pe,autoCapitalize:null,autoComplete:Ke,autoFocus:Pe,autoPlay:Pe,blocking:Ke,capture:null,charSet:null,checked:Pe,cite:null,className:Ke,closedBy:null,colorSpace:null,cols:ue,colSpan:ue,command:null,commandFor:null,content:null,contentEditable:mt,controls:Pe,controlsList:Ke,coords:ue|Wr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pe,defer:Pe,dir:null,dirName:null,disabled:Pe,download:Mu,draggable:mt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pe,formTarget:null,headers:Ke,height:ue,hidden:Mu,high:ue,href:null,hrefLang:null,htmlFor:Ke,httpEquiv:Ke,id:null,imageSizes:null,imageSrcSet:null,inert:Pe,inputMode:null,integrity:null,is:null,isMap:Pe,itemId:null,itemProp:Ke,itemRef:Ke,itemScope:Pe,itemType:Ke,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Pe,low:ue,manifest:null,max:null,maxLength:ue,media:null,method:null,min:null,minLength:ue,multiple:Pe,muted:Pe,name:null,nonce:null,noModule:Pe,noValidate:Pe,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:Pe,optimum:ue,pattern:null,ping:Ke,placeholder:null,playsInline:Pe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Pe,referrerPolicy:null,rel:Ke,required:Pe,reversed:Pe,rows:ue,rowSpan:ue,sandbox:Ke,scope:null,scoped:Pe,seamless:Pe,selected:Pe,shadowRootClonable:Pe,shadowRootCustomElementRegistry:Pe,shadowRootDelegatesFocus:Pe,shadowRootMode:null,shadowRootSerializable:Pe,shape:null,size:ue,sizes:null,slot:null,span:ue,spellCheck:mt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ue,step:null,style:null,tabIndex:ue,target:null,title:null,translate:null,type:null,typeMustMatch:Pe,useMap:null,value:mt,width:ue,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ke,axis:null,background:null,bgColor:null,border:ue,borderColor:null,bottomMargin:ue,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Pe,declare:Pe,event:null,face:null,frame:null,frameBorder:null,hSpace:ue,leftMargin:ue,link:null,longDesc:null,lowSrc:null,marginHeight:ue,marginWidth:ue,noResize:Pe,noHref:Pe,noShade:Pe,noWrap:Pe,object:null,profile:null,prompt:null,rev:null,rightMargin:ue,rules:null,scheme:null,scrolling:mt,standby:null,summary:null,text:null,topMargin:ue,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ue,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Pe,disablePictureInPicture:Pe,disableRemotePlayback:Pe,exportParts:Wr,part:Ke,prefix:null,property:null,results:ue,security:null,unselectable:null},space:"html",transform:Nd}),C6=_i({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",maskType:"mask-type",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:rn,accentHeight:ue,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ue,amplitude:ue,arabicForm:null,ascent:ue,attributeName:null,attributeType:null,azimuth:ue,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ue,by:null,calcMode:null,capHeight:ue,className:Ke,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:ue,diffuseConstant:ue,direction:null,display:null,dur:null,divisor:ue,dominantBaseline:null,download:Pe,dx:null,dy:null,edgeMode:null,editable:null,elevation:ue,enableBackground:null,end:null,event:null,exponent:ue,externalResourcesRequired:null,fill:null,fillOpacity:ue,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:Wr,g2:Wr,glyphName:Wr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ue,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ue,horizOriginX:ue,horizOriginY:ue,id:null,ideographic:ue,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ue,k:ue,k1:ue,k2:ue,k3:ue,k4:ue,kernelMatrix:rn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ue,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ue,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:ue,overlineThickness:ue,paintOrder:null,panose1:null,path:null,pathLength:ue,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ke,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ue,pointsAtY:ue,pointsAtZ:ue,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:rn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:rn,rev:rn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:rn,requiredFeatures:rn,requiredFonts:rn,requiredFormats:rn,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:ue,specularExponent:ue,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ue,strikethroughThickness:ue,string:null,stroke:null,strokeDashArray:rn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ue,strokeOpacity:ue,strokeWidth:null,style:null,surfaceScale:ue,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:rn,tabIndex:ue,tableValues:null,target:null,targetX:ue,targetY:ue,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:rn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ue,underlineThickness:ue,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ue,values:null,vAlphabetic:ue,vMathematical:ue,vectorEffect:null,vHanging:ue,vIdeographic:ue,version:null,vertAdvY:ue,vertOriginX:ue,vertOriginY:ue,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ue,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ld}),Id=_i({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()}}),Pd=_i({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Nd}),Md=_i({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()}}),w6={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"},k6=/[A-Z]/g,v2=/-[a-z]/g,_6=/^data[-\w.:]+$/i;function b6(e,r){const i=Pu(r);let o=r,s=Xt;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&_6.test(r)){if(r.charAt(4)==="-"){const a=r.slice(5).replace(v2,E6);o="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=r.slice(4);if(!v2.test(a)){let d=a.replace(k6,S6);d.charAt(0)!=="-"&&(d="-"+d),r="data"+d}}s=Ju}return new s(o,r)}function S6(e){return"-"+e.toLowerCase()}function E6(e){return e.charAt(1).toUpperCase()}const j6=Ed([jd,v6,Id,Pd,Md],"html"),e1=Ed([jd,C6,Id,Pd,Md],"svg");function L6(e){return e.join(" ").trim()}var gi={},lu,C2;function N6(){if(C2)return lu;C2=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,d=/^[;\s]*/,f=/^\s+|\s+$/g,p=`
|
|
47
|
+
`,m="/",y="*",x="",v="comment",C="declaration";function k(R,j){if(typeof R!="string")throw new TypeError("First argument must be a string");if(!R)return[];j=j||{};var V=1,S=1;function F(W){var $=W.match(r);$&&(V+=$.length);var I=W.lastIndexOf(p);S=~I?W.length-I:S+W.length}function B(){var W={line:V,column:S};return function($){return $.position=new T(W),Y(),$}}function T(W){this.start=W,this.end={line:V,column:S},this.source=j.source}T.prototype.content=R;function ee(W){var $=new Error(j.source+":"+V+":"+S+": "+W);if($.reason=W,$.filename=j.source,$.line=V,$.column=S,$.source=R,!j.silent)throw $}function ie(W){var $=W.exec(R);if($){var I=$[0];return F(I),R=R.slice(I.length),$}}function Y(){ie(i)}function D(W){var $;for(W=W||[];$=L();)$!==!1&&W.push($);return W}function L(){var W=B();if(!(m!=R.charAt(0)||y!=R.charAt(1))){for(var $=2;x!=R.charAt($)&&(y!=R.charAt($)||m!=R.charAt($+1));)++$;if($+=2,x===R.charAt($-1))return ee("End of comment missing");var I=R.slice(2,$-2);return S+=2,F(I),R=R.slice($),S+=2,W({type:v,comment:I})}}function Z(){var W=B(),$=ie(o);if($){if(L(),!ie(s))return ee("property missing ':'");var I=ie(a),J=W({type:C,property:P($[0].replace(e,x)),value:I?P(I[0].replace(e,x)):x});return ie(d),J}}function te(){var W=[];D(W);for(var $;$=Z();)$!==!1&&(W.push($),D(W));return W}return Y(),te()}function P(R){return R?R.replace(f,x):x}return lu=k,lu}var w2;function I6(){if(w2)return gi;w2=1;var e=gi&&gi.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(gi,"__esModule",{value:!0}),gi.default=i;const r=e(N6());function i(o,s){let a=null;if(!o||typeof o!="string")return a;const d=(0,r.default)(o),f=typeof s=="function";return d.forEach(p=>{if(p.type!=="declaration")return;const{property:m,value:y}=p;f?s(m,y,p):y&&(a=a||{},a[m]=y)}),a}return gi}var cl={},k2;function P6(){if(k2)return cl;k2=1,Object.defineProperty(cl,"__esModule",{value:!0}),cl.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(m){return!m||i.test(m)||e.test(m)},d=function(m,y){return y.toUpperCase()},f=function(m,y){return"".concat(y,"-")},p=function(m,y){return y===void 0&&(y={}),a(m)?m:(m=m.toLowerCase(),y.reactCompat?m=m.replace(s,f):m=m.replace(o,f),m.replace(r,d))};return cl.camelCase=p,cl}var dl,_2;function M6(){if(_2)return dl;_2=1;var e=dl&&dl.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},r=e(I6()),i=P6();function o(s,a){var d={};return!s||typeof s!="string"||(0,r.default)(s,function(f,p){f&&p&&(d[(0,i.camelCase)(f,a)]=p)}),d}return o.default=o,dl=o,dl}var T6=M6();const z6=Zu(T6),Td=zd("end"),t1=zd("start");function zd(e){return r;function r(i){const o=i&&i.position&&i.position[e]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function R6(e){const r=t1(e),i=Td(e);if(r&&i)return{start:r,end:i}}function yl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?b2(e.position):"start"in e||"end"in e?b2(e):"line"in e||"column"in e?zu(e):""}function zu(e){return S2(e&&e.line)+":"+S2(e&&e.column)}function b2(e){return zu(e&&e.start)+"-"+zu(e&&e.end)}function S2(e){return e&&typeof e=="number"?e:1}class Rt extends Error{constructor(r,i,o){super(),typeof i=="string"&&(o=i,i=void 0);let s="",a={},d=!1;if(i&&("line"in i&&"column"in i?a={place:i}:"start"in i&&"end"in i?a={place:i}:"type"in i?a={ancestors:[i],place:i.position}:a={...i}),typeof r=="string"?s=r:!a.cause&&r&&(d=!0,s=r.message,a.cause=r),!a.ruleId&&!a.source&&typeof o=="string"){const p=o.indexOf(":");p===-1?a.ruleId=o:(a.source=o.slice(0,p),a.ruleId=o.slice(p+1))}if(!a.place&&a.ancestors&&a.ancestors){const p=a.ancestors[a.ancestors.length-1];p&&(a.place=p.position)}const f=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=f?f.line:void 0,this.name=yl(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=d&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Rt.prototype.file="";Rt.prototype.name="";Rt.prototype.reason="";Rt.prototype.message="";Rt.prototype.stack="";Rt.prototype.column=void 0;Rt.prototype.line=void 0;Rt.prototype.ancestors=void 0;Rt.prototype.cause=void 0;Rt.prototype.fatal=void 0;Rt.prototype.place=void 0;Rt.prototype.ruleId=void 0;Rt.prototype.source=void 0;const n1={}.hasOwnProperty,D6=new Map,A6=/[A-Z]/g,F6=new Set(["table","tbody","thead","tfoot","tr"]),O6=new Set(["td","th"]),Rd="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function $6(e,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=r.filePath||void 0;let o;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=Q6(i,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=Z6(i,r.jsx,r.jsxs)}const s={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:o,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?e1:j6,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},a=Dd(s,e,void 0);return a&&typeof a!="string"?a:s.create(e,s.Fragment,{children:a||void 0},void 0)}function Dd(e,r,i){if(r.type==="element")return B6(e,r,i);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return H6(e,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return U6(e,r,i);if(r.type==="mdxjsEsm")return V6(e,r);if(r.type==="root")return W6(e,r,i);if(r.type==="text")return q6(e,r)}function B6(e,r,i){const o=e.schema;let s=o;r.tagName.toLowerCase()==="svg"&&o.space==="html"&&(s=e1,e.schema=s),e.ancestors.push(r);const a=Fd(e,r.tagName,!1),d=G6(e,r);let f=i1(e,r);return F6.has(r.tagName)&&(f=f.filter(function(p){return typeof p=="string"?!x6(p):!0})),Ad(e,d,a,r),r1(d,f),e.ancestors.pop(),e.schema=o,e.create(r,a,d,i)}function H6(e,r){if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];return o.type,e.evaluater.evaluateExpression(o.expression)}_l(e,r.position)}function V6(e,r){if(r.data&&r.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(r.data.estree);_l(e,r.position)}function U6(e,r,i){const o=e.schema;let s=o;r.name==="svg"&&o.space==="html"&&(s=e1,e.schema=s),e.ancestors.push(r);const a=r.name===null?e.Fragment:Fd(e,r.name,!0),d=K6(e,r),f=i1(e,r);return Ad(e,d,a,r),r1(d,f),e.ancestors.pop(),e.schema=o,e.create(r,a,d,i)}function W6(e,r,i){const o={};return r1(o,i1(e,r)),e.create(r,e.Fragment,o,i)}function q6(e,r){return r.value}function Ad(e,r,i,o){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(r.node=o)}function r1(e,r){if(r.length>0){const i=r.length>1?r:r[0];i&&(e.children=i)}}function Z6(e,r,i){return o;function o(s,a,d,f){const m=Array.isArray(d.children)?i:r;return f?m(a,d,f):m(a,d)}}function Q6(e,r){return i;function i(o,s,a,d){const f=Array.isArray(a.children),p=t1(o);return r(s,a,d,f,{columnNumber:p?p.column-1:void 0,fileName:e,lineNumber:p?p.line:void 0},void 0)}}function G6(e,r){const i={};let o,s;for(s in r.properties)if(s!=="children"&&n1.call(r.properties,s)){const a=Y6(e,s,r.properties[s]);if(a){const[d,f]=a;e.tableCellAlignToStyle&&d==="align"&&typeof f=="string"&&O6.has(r.tagName)?o=f:i[d]=f}}if(o){const a=i.style||(i.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return i}function K6(e,r){const i={};for(const o of r.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&e.evaluater){const a=o.data.estree.body[0];a.type;const d=a.expression;d.type;const f=d.properties[0];f.type,Object.assign(i,e.evaluater.evaluateExpression(f.argument))}else _l(e,r.position);else{const s=o.name;let a;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&e.evaluater){const f=o.value.data.estree.body[0];f.type,a=e.evaluater.evaluateExpression(f.expression)}else _l(e,r.position);else a=o.value===null?!0:o.value;i[s]=a}return i}function i1(e,r){const i=[];let o=-1;const s=e.passKeys?new Map:D6;for(;++o<r.children.length;){const a=r.children[o];let d;if(e.passKeys){const p=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(p){const m=s.get(p)||0;d=p+"-"+m,s.set(p,m+1)}}const f=Dd(e,a,d);f!==void 0&&i.push(f)}return i}function Y6(e,r,i){const o=b6(e.schema,r);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=o.commaSeparated?f6(i):L6(i)),o.property==="style"){let s=typeof i=="object"?i:X6(e,String(i));return e.stylePropertyNameCase==="css"&&(s=J6(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&o.space?w6[o.property]||o.property:o.attribute,i]}}function X6(e,r){try{return z6(r,{reactCompat:!0})}catch(i){if(e.ignoreInvalidStyle)return{};const o=i,s=new Rt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=Rd+"#cannot-parse-style-attribute",s}}function Fd(e,r,i){let o;if(!i)o={type:"Literal",value:r};else if(r.includes(".")){const s=r.split(".");let a=-1,d;for(;++a<s.length;){const f=g2(s[a])?{type:"Identifier",name:s[a]}:{type:"Literal",value:s[a]};d=d?{type:"MemberExpression",object:d,property:f,computed:!!(a&&f.type==="Literal"),optional:!1}:f}o=d}else o=g2(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(o.type==="Literal"){const s=o.value;return n1.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(o);_l(e)}function _l(e,r){const i=new Rt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Rd+"#cannot-handle-mdx-estrees-without-createevaluater",i}function J6(e){const r={};let i;for(i in e)n1.call(e,i)&&(r[eh(i)]=e[i]);return r}function eh(e){let r=e.replace(A6,th);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function th(e){return"-"+e.toLowerCase()}const ou={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"]},nh={};function l1(e,r){const i=nh,o=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,s=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return Od(e,o,s)}function Od(e,r,i){if(rh(e)){if("value"in e)return e.type==="html"&&!i?"":e.value;if(r&&"alt"in e&&e.alt)return e.alt;if("children"in e)return E2(e.children,r,i)}return Array.isArray(e)?E2(e,r,i):""}function E2(e,r,i){const o=[];let s=-1;for(;++s<e.length;)o[s]=Od(e[s],r,i);return o.join("")}function rh(e){return!!(e&&typeof e=="object")}const j2=document.createElement("i");function o1(e){const r="&"+e+";";j2.innerHTML=r;const i=j2.textContent;return i.charCodeAt(i.length-1)===59&&e!=="semi"||i===r?!1:i}function ln(e,r,i,o){const s=e.length;let a=0,d;if(r<0?r=-r>s?0:s+r:r=r>s?s:r,i=i>0?i:0,o.length<1e4)d=Array.from(o),d.unshift(r,i),e.splice(...d);else for(i&&e.splice(r,i);a<o.length;)d=o.slice(a,a+1e4),d.unshift(r,0),e.splice(...d),a+=1e4,r+=1e4}function mn(e,r){return e.length>0?(ln(e,e.length,0,r),e):r}const L2={}.hasOwnProperty;function $d(e){const r={};let i=-1;for(;++i<e.length;)ih(r,e[i]);return r}function ih(e,r){let i;for(i in r){const s=(L2.call(e,i)?e[i]:void 0)||(e[i]={}),a=r[i];let d;if(a)for(d in a){L2.call(s,d)||(s[d]=[]);const f=a[d];lh(s[d],Array.isArray(f)?f:f?[f]:[])}}}function lh(e,r){let i=-1;const o=[];for(;++i<r.length;)(r[i].add==="after"?e:o).push(r[i]);ln(e,0,0,o)}function Bd(e,r){const i=Number.parseInt(e,r);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function En(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Vt=br(/[A-Za-z]/),zt=br(/[\dA-Za-z]/),oh=br(/[#-'*+\--9=?A-Z^-~]/);function ns(e){return e!==null&&(e<32||e===127)}const Ru=br(/\d/),sh=br(/[\dA-Fa-f]/),ah=br(/[!-/:-@[-`{-~]/);function be(e){return e!==null&&e<-2}function Ye(e){return e!==null&&(e<0||e===32)}function Fe(e){return e===-2||e===-1||e===32}const us=br(new RegExp("\\p{P}|\\p{S}","u")),qr=br(/\s/);function br(e){return r;function r(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function bi(e){const r=[];let i=-1,o=0,s=0;for(;++i<e.length;){const a=e.charCodeAt(i);let d="";if(a===37&&zt(e.charCodeAt(i+1))&&zt(e.charCodeAt(i+2)))s=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(d=String.fromCharCode(a));else if(a>55295&&a<57344){const f=e.charCodeAt(i+1);a<56320&&f>56319&&f<57344?(d=String.fromCharCode(a,f),s=1):d="�"}else d=String.fromCharCode(a);d&&(r.push(e.slice(o,i),encodeURIComponent(d)),o=i+s+1,d=""),s&&(i+=s,s=0)}return r.join("")+e.slice(o)}function $e(e,r,i,o){const s=o?o-1:Number.POSITIVE_INFINITY;let a=0;return d;function d(p){return Fe(p)?(e.enter(i),f(p)):r(p)}function f(p){return Fe(p)&&a++<s?(e.consume(p),f):(e.exit(i),r(p))}}const uh={tokenize:ch};function ch(e){const r=e.attempt(this.parser.constructs.contentInitial,o,s);let i;return r;function o(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),$e(e,r,"linePrefix")}function s(f){return e.enter("paragraph"),a(f)}function a(f){const p=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=p),i=p,d(f)}function d(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return be(f)?(e.consume(f),e.exit("chunkText"),a):(e.consume(f),d)}}const dh={tokenize:fh},N2={tokenize:ph};function fh(e){const r=this,i=[];let o=0,s,a,d;return f;function f(S){if(o<i.length){const F=i[o];return r.containerState=F[1],e.attempt(F[0].continuation,p,m)(S)}return m(S)}function p(S){if(o++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,s&&V();const F=r.events.length;let B=F,T;for(;B--;)if(r.events[B][0]==="exit"&&r.events[B][1].type==="chunkFlow"){T=r.events[B][1].end;break}j(o);let ee=F;for(;ee<r.events.length;)r.events[ee][1].end={...T},ee++;return ln(r.events,B+1,0,r.events.slice(F)),r.events.length=ee,m(S)}return f(S)}function m(S){if(o===i.length){if(!s)return v(S);if(s.currentConstruct&&s.currentConstruct.concrete)return k(S);r.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return r.containerState={},e.check(N2,y,x)(S)}function y(S){return s&&V(),j(o),v(S)}function x(S){return r.parser.lazy[r.now().line]=o!==i.length,d=r.now().offset,k(S)}function v(S){return r.containerState={},e.attempt(N2,C,k)(S)}function C(S){return o++,i.push([r.currentConstruct,r.containerState]),v(S)}function k(S){if(S===null){s&&V(),j(0),e.consume(S);return}return s=s||r.parser.flow(r.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:a}),P(S)}function P(S){if(S===null){R(e.exit("chunkFlow"),!0),j(0),e.consume(S);return}return be(S)?(e.consume(S),R(e.exit("chunkFlow")),o=0,r.interrupt=void 0,f):(e.consume(S),P)}function R(S,F){const B=r.sliceStream(S);if(F&&B.push(null),S.previous=a,a&&(a.next=S),a=S,s.defineSkip(S.start),s.write(B),r.parser.lazy[S.start.line]){let T=s.events.length;for(;T--;)if(s.events[T][1].start.offset<d&&(!s.events[T][1].end||s.events[T][1].end.offset>d))return;const ee=r.events.length;let ie=ee,Y,D;for(;ie--;)if(r.events[ie][0]==="exit"&&r.events[ie][1].type==="chunkFlow"){if(Y){D=r.events[ie][1].end;break}Y=!0}for(j(o),T=ee;T<r.events.length;)r.events[T][1].end={...D},T++;ln(r.events,ie+1,0,r.events.slice(ee)),r.events.length=T}}function j(S){let F=i.length;for(;F-- >S;){const B=i[F];r.containerState=B[1],B[0].exit.call(r,e)}i.length=S}function V(){s.write([null]),a=void 0,s=void 0,r.containerState._closeFlow=void 0}}function ph(e,r,i){return $e(e,e.attempt(this.parser.constructs.document,r,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ki(e){if(e===null||Ye(e)||qr(e))return 1;if(us(e))return 2}function cs(e,r,i){const o=[];let s=-1;for(;++s<e.length;){const a=e[s].resolveAll;a&&!o.includes(a)&&(r=a(r,i),o.push(a))}return r}const Du={name:"attention",resolveAll:hh,tokenize:mh};function hh(e,r){let i=-1,o,s,a,d,f,p,m,y;for(;++i<e.length;)if(e[i][0]==="enter"&&e[i][1].type==="attentionSequence"&&e[i][1]._close){for(o=i;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&r.sliceSerialize(e[o][1]).charCodeAt(0)===r.sliceSerialize(e[i][1]).charCodeAt(0)){if((e[o][1]._close||e[i][1]._open)&&(e[i][1].end.offset-e[i][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[i][1].end.offset-e[i][1].start.offset)%3))continue;p=e[o][1].end.offset-e[o][1].start.offset>1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const x={...e[o][1].end},v={...e[i][1].start};I2(x,-p),I2(v,p),d={type:p>1?"strongSequence":"emphasisSequence",start:x,end:{...e[o][1].end}},f={type:p>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:v},a={type:p>1?"strongText":"emphasisText",start:{...e[o][1].end},end:{...e[i][1].start}},s={type:p>1?"strong":"emphasis",start:{...d.start},end:{...f.end}},e[o][1].end={...d.start},e[i][1].start={...f.end},m=[],e[o][1].end.offset-e[o][1].start.offset&&(m=mn(m,[["enter",e[o][1],r],["exit",e[o][1],r]])),m=mn(m,[["enter",s,r],["enter",d,r],["exit",d,r],["enter",a,r]]),m=mn(m,cs(r.parser.constructs.insideSpan.null,e.slice(o+1,i),r)),m=mn(m,[["exit",a,r],["enter",f,r],["exit",f,r],["exit",s,r]]),e[i][1].end.offset-e[i][1].start.offset?(y=2,m=mn(m,[["enter",e[i][1],r],["exit",e[i][1],r]])):y=0,ln(e,o-1,i-o+3,m),i=o+m.length-y-2;break}}for(i=-1;++i<e.length;)e[i][1].type==="attentionSequence"&&(e[i][1].type="data");return e}function mh(e,r){const i=this.parser.constructs.attentionMarkers.null,o=this.previous,s=ki(o);let a;return d;function d(p){return a=p,e.enter("attentionSequence"),f(p)}function f(p){if(p===a)return e.consume(p),f;const m=e.exit("attentionSequence"),y=ki(p),x=!y||y===2&&s||i.includes(p),v=!s||s===2&&y||i.includes(o);return m._open=!!(a===42?x:x&&(s||!v)),m._close=!!(a===42?v:v&&(y||!x)),r(p)}}function I2(e,r){e.column+=r,e.offset+=r,e._bufferIndex+=r}const gh={name:"autolink",tokenize:xh};function xh(e,r,i){let o=0;return s;function s(C){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(C),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(C){return Vt(C)?(e.consume(C),d):C===64?i(C):m(C)}function d(C){return C===43||C===45||C===46||zt(C)?(o=1,f(C)):m(C)}function f(C){return C===58?(e.consume(C),o=0,p):(C===43||C===45||C===46||zt(C))&&o++<32?(e.consume(C),f):(o=0,m(C))}function p(C){return C===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(C),e.exit("autolinkMarker"),e.exit("autolink"),r):C===null||C===32||C===60||ns(C)?i(C):(e.consume(C),p)}function m(C){return C===64?(e.consume(C),y):oh(C)?(e.consume(C),m):i(C)}function y(C){return zt(C)?x(C):i(C)}function x(C){return C===46?(e.consume(C),o=0,y):C===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(C),e.exit("autolinkMarker"),e.exit("autolink"),r):v(C)}function v(C){if((C===45||zt(C))&&o++<63){const k=C===45?v:x;return e.consume(C),k}return i(C)}}const Ll={partial:!0,tokenize:yh};function yh(e,r,i){return o;function o(a){return Fe(a)?$e(e,s,"linePrefix")(a):s(a)}function s(a){return a===null||be(a)?r(a):i(a)}}const Hd={continuation:{tokenize:Ch},exit:wh,name:"blockQuote",tokenize:vh};function vh(e,r,i){const o=this;return s;function s(d){if(d===62){const f=o.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(d),e.exit("blockQuoteMarker"),a}return i(d)}function a(d){return Fe(d)?(e.enter("blockQuotePrefixWhitespace"),e.consume(d),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),r):(e.exit("blockQuotePrefix"),r(d))}}function Ch(e,r,i){const o=this;return s;function s(d){return Fe(d)?$e(e,a,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):a(d)}function a(d){return e.attempt(Hd,r,i)(d)}}function wh(e){e.exit("blockQuote")}const Vd={name:"characterEscape",tokenize:kh};function kh(e,r,i){return o;function o(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),s}function s(a){return ah(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),r):i(a)}}const Ud={name:"characterReference",tokenize:_h};function _h(e,r,i){const o=this;let s=0,a,d;return f;function f(x){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(x),e.exit("characterReferenceMarker"),p}function p(x){return x===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(x),e.exit("characterReferenceMarkerNumeric"),m):(e.enter("characterReferenceValue"),a=31,d=zt,y(x))}function m(x){return x===88||x===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(x),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,d=sh,y):(e.enter("characterReferenceValue"),a=7,d=Ru,y(x))}function y(x){if(x===59&&s){const v=e.exit("characterReferenceValue");return d===zt&&!o1(o.sliceSerialize(v))?i(x):(e.enter("characterReferenceMarker"),e.consume(x),e.exit("characterReferenceMarker"),e.exit("characterReference"),r)}return d(x)&&s++<a?(e.consume(x),y):i(x)}}const P2={partial:!0,tokenize:Sh},M2={concrete:!0,name:"codeFenced",tokenize:bh};function bh(e,r,i){const o=this,s={partial:!0,tokenize:B};let a=0,d=0,f;return p;function p(T){return m(T)}function m(T){const ee=o.events[o.events.length-1];return a=ee&&ee[1].type==="linePrefix"?ee[2].sliceSerialize(ee[1],!0).length:0,f=T,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),y(T)}function y(T){return T===f?(d++,e.consume(T),y):d<3?i(T):(e.exit("codeFencedFenceSequence"),Fe(T)?$e(e,x,"whitespace")(T):x(T))}function x(T){return T===null||be(T)?(e.exit("codeFencedFence"),o.interrupt?r(T):e.check(P2,P,F)(T)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(T))}function v(T){return T===null||be(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),x(T)):Fe(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$e(e,C,"whitespace")(T)):T===96&&T===f?i(T):(e.consume(T),v)}function C(T){return T===null||be(T)?x(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),k(T))}function k(T){return T===null||be(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),x(T)):T===96&&T===f?i(T):(e.consume(T),k)}function P(T){return e.attempt(s,F,R)(T)}function R(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),j}function j(T){return a>0&&Fe(T)?$e(e,V,"linePrefix",a+1)(T):V(T)}function V(T){return T===null||be(T)?e.check(P2,P,F)(T):(e.enter("codeFlowValue"),S(T))}function S(T){return T===null||be(T)?(e.exit("codeFlowValue"),V(T)):(e.consume(T),S)}function F(T){return e.exit("codeFenced"),r(T)}function B(T,ee,ie){let Y=0;return D;function D($){return T.enter("lineEnding"),T.consume($),T.exit("lineEnding"),L}function L($){return T.enter("codeFencedFence"),Fe($)?$e(T,Z,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):Z($)}function Z($){return $===f?(T.enter("codeFencedFenceSequence"),te($)):ie($)}function te($){return $===f?(Y++,T.consume($),te):Y>=d?(T.exit("codeFencedFenceSequence"),Fe($)?$e(T,W,"whitespace")($):W($)):ie($)}function W($){return $===null||be($)?(T.exit("codeFencedFence"),ee($)):ie($)}}}function Sh(e,r,i){const o=this;return s;function s(d){return d===null?i(d):(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),a)}function a(d){return o.parser.lazy[o.now().line]?i(d):r(d)}}const su={name:"codeIndented",tokenize:jh},Eh={partial:!0,tokenize:Lh};function jh(e,r,i){const o=this;return s;function s(m){return e.enter("codeIndented"),$e(e,a,"linePrefix",5)(m)}function a(m){const y=o.events[o.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?d(m):i(m)}function d(m){return m===null?p(m):be(m)?e.attempt(Eh,d,p)(m):(e.enter("codeFlowValue"),f(m))}function f(m){return m===null||be(m)?(e.exit("codeFlowValue"),d(m)):(e.consume(m),f)}function p(m){return e.exit("codeIndented"),r(m)}}function Lh(e,r,i){const o=this;return s;function s(d){return o.parser.lazy[o.now().line]?i(d):be(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),s):$e(e,a,"linePrefix",5)(d)}function a(d){const f=o.events[o.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(d):be(d)?s(d):i(d)}}const Nh={name:"codeText",previous:Ph,resolve:Ih,tokenize:Mh};function Ih(e){let r=e.length-4,i=3,o,s;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[r][1].type==="lineEnding"||e[r][1].type==="space")){for(o=i;++o<r;)if(e[o][1].type==="codeTextData"){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(o=i-1,r++;++o<=r;)s===void 0?o!==r&&e[o][1].type!=="lineEnding"&&(s=o):(o===r||e[o][1].type==="lineEnding")&&(e[s][1].type="codeTextData",o!==s+2&&(e[s][1].end=e[o-1][1].end,e.splice(s+2,o-s-2),r-=o-s-2,o=s+2),s=void 0);return e}function Ph(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Mh(e,r,i){let o=0,s,a;return d;function d(x){return e.enter("codeText"),e.enter("codeTextSequence"),f(x)}function f(x){return x===96?(e.consume(x),o++,f):(e.exit("codeTextSequence"),p(x))}function p(x){return x===null?i(x):x===32?(e.enter("space"),e.consume(x),e.exit("space"),p):x===96?(a=e.enter("codeTextSequence"),s=0,y(x)):be(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),p):(e.enter("codeTextData"),m(x))}function m(x){return x===null||x===32||x===96||be(x)?(e.exit("codeTextData"),p(x)):(e.consume(x),m)}function y(x){return x===96?(e.consume(x),s++,y):s===o?(e.exit("codeTextSequence"),e.exit("codeText"),r(x)):(a.type="codeTextData",m(x))}}class Th{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,i){const o=i??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(r,o):r>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(r,i,o){const s=i||0;this.setCursor(Math.trunc(r));const a=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return o&&fl(this.left,o),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),fl(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),fl(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const i=this.left.splice(r,Number.POSITIVE_INFINITY);fl(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);fl(this.left,i.reverse())}}}function fl(e,r){let i=0;if(r.length<1e4)e.push(...r);else for(;i<r.length;)e.push(...r.slice(i,i+1e4)),i+=1e4}function Wd(e){const r={};let i=-1,o,s,a,d,f,p,m;const y=new Th(e);for(;++i<y.length;){for(;i in r;)i=r[i];if(o=y.get(i),i&&o[1].type==="chunkFlow"&&y.get(i-1)[1].type==="listItemPrefix"&&(p=o[1]._tokenizer.events,a=0,a<p.length&&p[a][1].type==="lineEndingBlank"&&(a+=2),a<p.length&&p[a][1].type==="content"))for(;++a<p.length&&p[a][1].type!=="content";)p[a][1].type==="chunkText"&&(p[a][1]._isInFirstContentOfListItem=!0,a++);if(o[0]==="enter")o[1].contentType&&(Object.assign(r,zh(y,i)),i=r[i],m=!0);else if(o[1]._container){for(a=i,s=void 0;a--;)if(d=y.get(a),d[1].type==="lineEnding"||d[1].type==="lineEndingBlank")d[0]==="enter"&&(s&&(y.get(s)[1].type="lineEndingBlank"),d[1].type="lineEnding",s=a);else if(!(d[1].type==="linePrefix"||d[1].type==="listItemIndent"))break;s&&(o[1].end={...y.get(s)[1].start},f=y.slice(s,i),f.unshift(o),y.splice(s,i-s+1,f))}}return ln(e,0,Number.POSITIVE_INFINITY,y.slice(0)),!m}function zh(e,r){const i=e.get(r)[1],o=e.get(r)[2];let s=r-1;const a=[];let d=i._tokenizer;d||(d=o.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(d._contentTypeTextTrailing=!0));const f=d.events,p=[],m={};let y,x,v=-1,C=i,k=0,P=0;const R=[P];for(;C;){for(;e.get(++s)[1]!==C;);a.push(s),C._tokenizer||(y=o.sliceStream(C),C.next||y.push(null),x&&d.defineSkip(C.start),C._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=!0),d.write(y),C._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=void 0)),x=C,C=C.next}for(C=i;++v<f.length;)f[v][0]==="exit"&&f[v-1][0]==="enter"&&f[v][1].type===f[v-1][1].type&&f[v][1].start.line!==f[v][1].end.line&&(P=v+1,R.push(P),C._tokenizer=void 0,C.previous=void 0,C=C.next);for(d.events=[],C?(C._tokenizer=void 0,C.previous=void 0):R.pop(),v=R.length;v--;){const j=f.slice(R[v],R[v+1]),V=a.pop();p.push([V,V+j.length-1]),e.splice(V,2,j)}for(p.reverse(),v=-1;++v<p.length;)m[k+p[v][0]]=k+p[v][1],k+=p[v][1]-p[v][0]-1;return m}const Rh={resolve:Ah,tokenize:Fh},Dh={partial:!0,tokenize:Oh};function Ah(e){return Wd(e),e}function Fh(e,r){let i;return o;function o(f){return e.enter("content"),i=e.enter("chunkContent",{contentType:"content"}),s(f)}function s(f){return f===null?a(f):be(f)?e.check(Dh,d,a)(f):(e.consume(f),s)}function a(f){return e.exit("chunkContent"),e.exit("content"),r(f)}function d(f){return e.consume(f),e.exit("chunkContent"),i.next=e.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,s}}function Oh(e,r,i){const o=this;return s;function s(d){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),$e(e,a,"linePrefix")}function a(d){if(d===null||be(d))return i(d);const f=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(d):e.interrupt(o.parser.constructs.flow,i,r)(d)}}function qd(e,r,i,o,s,a,d,f,p){const m=p||Number.POSITIVE_INFINITY;let y=0;return x;function x(j){return j===60?(e.enter(o),e.enter(s),e.enter(a),e.consume(j),e.exit(a),v):j===null||j===32||j===41||ns(j)?i(j):(e.enter(o),e.enter(d),e.enter(f),e.enter("chunkString",{contentType:"string"}),P(j))}function v(j){return j===62?(e.enter(a),e.consume(j),e.exit(a),e.exit(s),e.exit(o),r):(e.enter(f),e.enter("chunkString",{contentType:"string"}),C(j))}function C(j){return j===62?(e.exit("chunkString"),e.exit(f),v(j)):j===null||j===60||be(j)?i(j):(e.consume(j),j===92?k:C)}function k(j){return j===60||j===62||j===92?(e.consume(j),C):C(j)}function P(j){return!y&&(j===null||j===41||Ye(j))?(e.exit("chunkString"),e.exit(f),e.exit(d),e.exit(o),r(j)):y<m&&j===40?(e.consume(j),y++,P):j===41?(e.consume(j),y--,P):j===null||j===32||j===40||ns(j)?i(j):(e.consume(j),j===92?R:P)}function R(j){return j===40||j===41||j===92?(e.consume(j),P):P(j)}}function Zd(e,r,i,o,s,a){const d=this;let f=0,p;return m;function m(C){return e.enter(o),e.enter(s),e.consume(C),e.exit(s),e.enter(a),y}function y(C){return f>999||C===null||C===91||C===93&&!p||C===94&&!f&&"_hiddenFootnoteSupport"in d.parser.constructs?i(C):C===93?(e.exit(a),e.enter(s),e.consume(C),e.exit(s),e.exit(o),r):be(C)?(e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),y):(e.enter("chunkString",{contentType:"string"}),x(C))}function x(C){return C===null||C===91||C===93||be(C)||f++>999?(e.exit("chunkString"),y(C)):(e.consume(C),p||(p=!Fe(C)),C===92?v:x)}function v(C){return C===91||C===92||C===93?(e.consume(C),f++,x):x(C)}}function Qd(e,r,i,o,s,a){let d;return f;function f(v){return v===34||v===39||v===40?(e.enter(o),e.enter(s),e.consume(v),e.exit(s),d=v===40?41:v,p):i(v)}function p(v){return v===d?(e.enter(s),e.consume(v),e.exit(s),e.exit(o),r):(e.enter(a),m(v))}function m(v){return v===d?(e.exit(a),p(d)):v===null?i(v):be(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),$e(e,m,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===d||v===null||be(v)?(e.exit("chunkString"),m(v)):(e.consume(v),v===92?x:y)}function x(v){return v===d||v===92?(e.consume(v),y):y(v)}}function vl(e,r){let i;return o;function o(s){return be(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i=!0,o):Fe(s)?$e(e,o,i?"linePrefix":"lineSuffix")(s):r(s)}}const $h={name:"definition",tokenize:Hh},Bh={partial:!0,tokenize:Vh};function Hh(e,r,i){const o=this;let s;return a;function a(C){return e.enter("definition"),d(C)}function d(C){return Zd.call(o,e,f,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(C)}function f(C){return s=En(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),C===58?(e.enter("definitionMarker"),e.consume(C),e.exit("definitionMarker"),p):i(C)}function p(C){return Ye(C)?vl(e,m)(C):m(C)}function m(C){return qd(e,y,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(C)}function y(C){return e.attempt(Bh,x,x)(C)}function x(C){return Fe(C)?$e(e,v,"whitespace")(C):v(C)}function v(C){return C===null||be(C)?(e.exit("definition"),o.parser.defined.push(s),r(C)):i(C)}}function Vh(e,r,i){return o;function o(f){return Ye(f)?vl(e,s)(f):i(f)}function s(f){return Qd(e,a,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function a(f){return Fe(f)?$e(e,d,"whitespace")(f):d(f)}function d(f){return f===null||be(f)?r(f):i(f)}}const Uh={name:"hardBreakEscape",tokenize:Wh};function Wh(e,r,i){return o;function o(a){return e.enter("hardBreakEscape"),e.consume(a),s}function s(a){return be(a)?(e.exit("hardBreakEscape"),r(a)):i(a)}}const qh={name:"headingAtx",resolve:Zh,tokenize:Qh};function Zh(e,r){let i=e.length-2,o=3,s,a;return e[o][1].type==="whitespace"&&(o+=2),i-2>o&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(o===i-1||i-4>o&&e[i-2][1].type==="whitespace")&&(i-=o+1===i?2:4),i>o&&(s={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},a={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},ln(e,o,i-o+1,[["enter",s,r],["enter",a,r],["exit",a,r],["exit",s,r]])),e}function Qh(e,r,i){let o=0;return s;function s(y){return e.enter("atxHeading"),a(y)}function a(y){return e.enter("atxHeadingSequence"),d(y)}function d(y){return y===35&&o++<6?(e.consume(y),d):y===null||Ye(y)?(e.exit("atxHeadingSequence"),f(y)):i(y)}function f(y){return y===35?(e.enter("atxHeadingSequence"),p(y)):y===null||be(y)?(e.exit("atxHeading"),r(y)):Fe(y)?$e(e,f,"whitespace")(y):(e.enter("atxHeadingText"),m(y))}function p(y){return y===35?(e.consume(y),p):(e.exit("atxHeadingSequence"),f(y))}function m(y){return y===null||y===35||Ye(y)?(e.exit("atxHeadingText"),f(y)):(e.consume(y),m)}}const Gh=["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"],T2=["pre","script","style","textarea"],Kh={concrete:!0,name:"htmlFlow",resolveTo:Jh,tokenize:e8},Yh={partial:!0,tokenize:n8},Xh={partial:!0,tokenize:t8};function Jh(e){let r=e.length;for(;r--&&!(e[r][0]==="enter"&&e[r][1].type==="htmlFlow"););return r>1&&e[r-2][1].type==="linePrefix"&&(e[r][1].start=e[r-2][1].start,e[r+1][1].start=e[r-2][1].start,e.splice(r-2,2)),e}function e8(e,r,i){const o=this;let s,a,d,f,p;return m;function m(N){return y(N)}function y(N){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(N),x}function x(N){return N===33?(e.consume(N),v):N===47?(e.consume(N),a=!0,P):N===63?(e.consume(N),s=3,o.interrupt?r:b):Vt(N)?(e.consume(N),d=String.fromCharCode(N),R):i(N)}function v(N){return N===45?(e.consume(N),s=2,C):N===91?(e.consume(N),s=5,f=0,k):Vt(N)?(e.consume(N),s=4,o.interrupt?r:b):i(N)}function C(N){return N===45?(e.consume(N),o.interrupt?r:b):i(N)}function k(N){const ge="CDATA[";return N===ge.charCodeAt(f++)?(e.consume(N),f===ge.length?o.interrupt?r:Z:k):i(N)}function P(N){return Vt(N)?(e.consume(N),d=String.fromCharCode(N),R):i(N)}function R(N){if(N===null||N===47||N===62||Ye(N)){const ge=N===47,ve=d.toLowerCase();return!ge&&!a&&T2.includes(ve)?(s=1,o.interrupt?r(N):Z(N)):Gh.includes(d.toLowerCase())?(s=6,ge?(e.consume(N),j):o.interrupt?r(N):Z(N)):(s=7,o.interrupt&&!o.parser.lazy[o.now().line]?i(N):a?V(N):S(N))}return N===45||zt(N)?(e.consume(N),d+=String.fromCharCode(N),R):i(N)}function j(N){return N===62?(e.consume(N),o.interrupt?r:Z):i(N)}function V(N){return Fe(N)?(e.consume(N),V):D(N)}function S(N){return N===47?(e.consume(N),D):N===58||N===95||Vt(N)?(e.consume(N),F):Fe(N)?(e.consume(N),S):D(N)}function F(N){return N===45||N===46||N===58||N===95||zt(N)?(e.consume(N),F):B(N)}function B(N){return N===61?(e.consume(N),T):Fe(N)?(e.consume(N),B):S(N)}function T(N){return N===null||N===60||N===61||N===62||N===96?i(N):N===34||N===39?(e.consume(N),p=N,ee):Fe(N)?(e.consume(N),T):ie(N)}function ee(N){return N===p?(e.consume(N),p=null,Y):N===null||be(N)?i(N):(e.consume(N),ee)}function ie(N){return N===null||N===34||N===39||N===47||N===60||N===61||N===62||N===96||Ye(N)?B(N):(e.consume(N),ie)}function Y(N){return N===47||N===62||Fe(N)?S(N):i(N)}function D(N){return N===62?(e.consume(N),L):i(N)}function L(N){return N===null||be(N)?Z(N):Fe(N)?(e.consume(N),L):i(N)}function Z(N){return N===45&&s===2?(e.consume(N),I):N===60&&s===1?(e.consume(N),J):N===62&&s===4?(e.consume(N),A):N===63&&s===3?(e.consume(N),b):N===93&&s===5?(e.consume(N),ne):be(N)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(Yh,K,te)(N)):N===null||be(N)?(e.exit("htmlFlowData"),te(N)):(e.consume(N),Z)}function te(N){return e.check(Xh,W,K)(N)}function W(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),$}function $(N){return N===null||be(N)?te(N):(e.enter("htmlFlowData"),Z(N))}function I(N){return N===45?(e.consume(N),b):Z(N)}function J(N){return N===47?(e.consume(N),d="",z):Z(N)}function z(N){if(N===62){const ge=d.toLowerCase();return T2.includes(ge)?(e.consume(N),A):Z(N)}return Vt(N)&&d.length<8?(e.consume(N),d+=String.fromCharCode(N),z):Z(N)}function ne(N){return N===93?(e.consume(N),b):Z(N)}function b(N){return N===62?(e.consume(N),A):N===45&&s===2?(e.consume(N),b):Z(N)}function A(N){return N===null||be(N)?(e.exit("htmlFlowData"),K(N)):(e.consume(N),A)}function K(N){return e.exit("htmlFlow"),r(N)}}function t8(e,r,i){const o=this;return s;function s(d){return be(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),a):i(d)}function a(d){return o.parser.lazy[o.now().line]?i(d):r(d)}}function n8(e,r,i){return o;function o(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(Ll,r,i)}}const r8={name:"htmlText",tokenize:i8};function i8(e,r,i){const o=this;let s,a,d;return f;function f(b){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(b),p}function p(b){return b===33?(e.consume(b),m):b===47?(e.consume(b),B):b===63?(e.consume(b),S):Vt(b)?(e.consume(b),ie):i(b)}function m(b){return b===45?(e.consume(b),y):b===91?(e.consume(b),a=0,k):Vt(b)?(e.consume(b),V):i(b)}function y(b){return b===45?(e.consume(b),C):i(b)}function x(b){return b===null?i(b):b===45?(e.consume(b),v):be(b)?(d=x,J(b)):(e.consume(b),x)}function v(b){return b===45?(e.consume(b),C):x(b)}function C(b){return b===62?I(b):b===45?v(b):x(b)}function k(b){const A="CDATA[";return b===A.charCodeAt(a++)?(e.consume(b),a===A.length?P:k):i(b)}function P(b){return b===null?i(b):b===93?(e.consume(b),R):be(b)?(d=P,J(b)):(e.consume(b),P)}function R(b){return b===93?(e.consume(b),j):P(b)}function j(b){return b===62?I(b):b===93?(e.consume(b),j):P(b)}function V(b){return b===null||b===62?I(b):be(b)?(d=V,J(b)):(e.consume(b),V)}function S(b){return b===null?i(b):b===63?(e.consume(b),F):be(b)?(d=S,J(b)):(e.consume(b),S)}function F(b){return b===62?I(b):S(b)}function B(b){return Vt(b)?(e.consume(b),T):i(b)}function T(b){return b===45||zt(b)?(e.consume(b),T):ee(b)}function ee(b){return be(b)?(d=ee,J(b)):Fe(b)?(e.consume(b),ee):I(b)}function ie(b){return b===45||zt(b)?(e.consume(b),ie):b===47||b===62||Ye(b)?Y(b):i(b)}function Y(b){return b===47?(e.consume(b),I):b===58||b===95||Vt(b)?(e.consume(b),D):be(b)?(d=Y,J(b)):Fe(b)?(e.consume(b),Y):I(b)}function D(b){return b===45||b===46||b===58||b===95||zt(b)?(e.consume(b),D):L(b)}function L(b){return b===61?(e.consume(b),Z):be(b)?(d=L,J(b)):Fe(b)?(e.consume(b),L):Y(b)}function Z(b){return b===null||b===60||b===61||b===62||b===96?i(b):b===34||b===39?(e.consume(b),s=b,te):be(b)?(d=Z,J(b)):Fe(b)?(e.consume(b),Z):(e.consume(b),W)}function te(b){return b===s?(e.consume(b),s=void 0,$):b===null?i(b):be(b)?(d=te,J(b)):(e.consume(b),te)}function W(b){return b===null||b===34||b===39||b===60||b===61||b===96?i(b):b===47||b===62||Ye(b)?Y(b):(e.consume(b),W)}function $(b){return b===47||b===62||Ye(b)?Y(b):i(b)}function I(b){return b===62?(e.consume(b),e.exit("htmlTextData"),e.exit("htmlText"),r):i(b)}function J(b){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),z}function z(b){return Fe(b)?$e(e,ne,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):ne(b)}function ne(b){return e.enter("htmlTextData"),d(b)}}const s1={name:"labelEnd",resolveAll:a8,resolveTo:u8,tokenize:c8},l8={tokenize:d8},o8={tokenize:f8},s8={tokenize:p8};function a8(e){let r=-1;const i=[];for(;++r<e.length;){const o=e[r][1];if(i.push(e[r]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const s=o.type==="labelImage"?4:2;o.type="data",r+=s}}return e.length!==i.length&&ln(e,0,e.length,i),e}function u8(e,r){let i=e.length,o=0,s,a,d,f;for(;i--;)if(s=e[i][1],a){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[i][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(d){if(e[i][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(a=i,s.type!=="labelLink")){o=2;break}}else s.type==="labelEnd"&&(d=i);const p={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},m={type:"label",start:{...e[a][1].start},end:{...e[d][1].end}},y={type:"labelText",start:{...e[a+o+2][1].end},end:{...e[d-2][1].start}};return f=[["enter",p,r],["enter",m,r]],f=mn(f,e.slice(a+1,a+o+3)),f=mn(f,[["enter",y,r]]),f=mn(f,cs(r.parser.constructs.insideSpan.null,e.slice(a+o+4,d-3),r)),f=mn(f,[["exit",y,r],e[d-2],e[d-1],["exit",m,r]]),f=mn(f,e.slice(d+1)),f=mn(f,[["exit",p,r]]),ln(e,a,e.length,f),e}function c8(e,r,i){const o=this;let s=o.events.length,a,d;for(;s--;)if((o.events[s][1].type==="labelImage"||o.events[s][1].type==="labelLink")&&!o.events[s][1]._balanced){a=o.events[s][1];break}return f;function f(v){return a?a._inactive?x(v):(d=o.parser.defined.includes(En(o.sliceSerialize({start:a.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),p):i(v)}function p(v){return v===40?e.attempt(l8,y,d?y:x)(v):v===91?e.attempt(o8,y,d?m:x)(v):d?y(v):x(v)}function m(v){return e.attempt(s8,y,x)(v)}function y(v){return r(v)}function x(v){return a._balanced=!0,i(v)}}function d8(e,r,i){return o;function o(x){return e.enter("resource"),e.enter("resourceMarker"),e.consume(x),e.exit("resourceMarker"),s}function s(x){return Ye(x)?vl(e,a)(x):a(x)}function a(x){return x===41?y(x):qd(e,d,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(x)}function d(x){return Ye(x)?vl(e,p)(x):y(x)}function f(x){return i(x)}function p(x){return x===34||x===39||x===40?Qd(e,m,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(x):y(x)}function m(x){return Ye(x)?vl(e,y)(x):y(x)}function y(x){return x===41?(e.enter("resourceMarker"),e.consume(x),e.exit("resourceMarker"),e.exit("resource"),r):i(x)}}function f8(e,r,i){const o=this;return s;function s(f){return Zd.call(o,e,a,d,"reference","referenceMarker","referenceString")(f)}function a(f){return o.parser.defined.includes(En(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?r(f):i(f)}function d(f){return i(f)}}function p8(e,r,i){return o;function o(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),s}function s(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),r):i(a)}}const h8={name:"labelStartImage",resolveAll:s1.resolveAll,tokenize:m8};function m8(e,r,i){const o=this;return s;function s(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),a}function a(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),d):i(f)}function d(f){return f===94&&"_hiddenFootnoteSupport"in o.parser.constructs?i(f):r(f)}}const g8={name:"labelStartLink",resolveAll:s1.resolveAll,tokenize:x8};function x8(e,r,i){const o=this;return s;function s(d){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelLink"),a}function a(d){return d===94&&"_hiddenFootnoteSupport"in o.parser.constructs?i(d):r(d)}}const au={name:"lineEnding",tokenize:y8};function y8(e,r){return i;function i(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),$e(e,r,"linePrefix")}}const Xo={name:"thematicBreak",tokenize:v8};function v8(e,r,i){let o=0,s;return a;function a(m){return e.enter("thematicBreak"),d(m)}function d(m){return s=m,f(m)}function f(m){return m===s?(e.enter("thematicBreakSequence"),p(m)):o>=3&&(m===null||be(m))?(e.exit("thematicBreak"),r(m)):i(m)}function p(m){return m===s?(e.consume(m),o++,p):(e.exit("thematicBreakSequence"),Fe(m)?$e(e,f,"whitespace")(m):f(m))}}const Yt={continuation:{tokenize:_8},exit:S8,name:"list",tokenize:k8},C8={partial:!0,tokenize:E8},w8={partial:!0,tokenize:b8};function k8(e,r,i){const o=this,s=o.events[o.events.length-1];let a=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,d=0;return f;function f(C){const k=o.containerState.type||(C===42||C===43||C===45?"listUnordered":"listOrdered");if(k==="listUnordered"?!o.containerState.marker||C===o.containerState.marker:Ru(C)){if(o.containerState.type||(o.containerState.type=k,e.enter(k,{_container:!0})),k==="listUnordered")return e.enter("listItemPrefix"),C===42||C===45?e.check(Xo,i,m)(C):m(C);if(!o.interrupt||C===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),p(C)}return i(C)}function p(C){return Ru(C)&&++d<10?(e.consume(C),p):(!o.interrupt||d<2)&&(o.containerState.marker?C===o.containerState.marker:C===41||C===46)?(e.exit("listItemValue"),m(C)):i(C)}function m(C){return e.enter("listItemMarker"),e.consume(C),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||C,e.check(Ll,o.interrupt?i:y,e.attempt(C8,v,x))}function y(C){return o.containerState.initialBlankLine=!0,a++,v(C)}function x(C){return Fe(C)?(e.enter("listItemPrefixWhitespace"),e.consume(C),e.exit("listItemPrefixWhitespace"),v):i(C)}function v(C){return o.containerState.size=a+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,r(C)}}function _8(e,r,i){const o=this;return o.containerState._closeFlow=void 0,e.check(Ll,s,a);function s(f){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,$e(e,r,"listItemIndent",o.containerState.size+1)(f)}function a(f){return o.containerState.furtherBlankLines||!Fe(f)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,d(f)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(w8,r,d)(f))}function d(f){return o.containerState._closeFlow=!0,o.interrupt=void 0,$e(e,e.attempt(Yt,r,i),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function b8(e,r,i){const o=this;return $e(e,s,"listItemIndent",o.containerState.size+1);function s(a){const d=o.events[o.events.length-1];return d&&d[1].type==="listItemIndent"&&d[2].sliceSerialize(d[1],!0).length===o.containerState.size?r(a):i(a)}}function S8(e){e.exit(this.containerState.type)}function E8(e,r,i){const o=this;return $e(e,s,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(a){const d=o.events[o.events.length-1];return!Fe(a)&&d&&d[1].type==="listItemPrefixWhitespace"?r(a):i(a)}}const z2={name:"setextUnderline",resolveTo:j8,tokenize:L8};function j8(e,r){let i=e.length,o,s,a;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){o=i;break}e[i][1].type==="paragraph"&&(s=i)}else e[i][1].type==="content"&&e.splice(i,1),!a&&e[i][1].type==="definition"&&(a=i);const d={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",a?(e.splice(s,0,["enter",d,r]),e.splice(a+1,0,["exit",e[o][1],r]),e[o][1].end={...e[a][1].end}):e[o][1]=d,e.push(["exit",d,r]),e}function L8(e,r,i){const o=this;let s;return a;function a(m){let y=o.events.length,x;for(;y--;)if(o.events[y][1].type!=="lineEnding"&&o.events[y][1].type!=="linePrefix"&&o.events[y][1].type!=="content"){x=o.events[y][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||x)?(e.enter("setextHeadingLine"),s=m,d(m)):i(m)}function d(m){return e.enter("setextHeadingLineSequence"),f(m)}function f(m){return m===s?(e.consume(m),f):(e.exit("setextHeadingLineSequence"),Fe(m)?$e(e,p,"lineSuffix")(m):p(m))}function p(m){return m===null||be(m)?(e.exit("setextHeadingLine"),r(m)):i(m)}}const N8={tokenize:I8};function I8(e){const r=this,i=e.attempt(Ll,o,e.attempt(this.parser.constructs.flowInitial,s,$e(e,e.attempt(this.parser.constructs.flow,s,e.attempt(Rh,s)),"linePrefix")));return i;function o(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),r.currentConstruct=void 0,i}function s(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r.currentConstruct=void 0,i}}const P8={resolveAll:Kd()},M8=Gd("string"),T8=Gd("text");function Gd(e){return{resolveAll:Kd(e==="text"?z8:void 0),tokenize:r};function r(i){const o=this,s=this.parser.constructs[e],a=i.attempt(s,d,f);return d;function d(y){return m(y)?a(y):f(y)}function f(y){if(y===null){i.consume(y);return}return i.enter("data"),i.consume(y),p}function p(y){return m(y)?(i.exit("data"),a(y)):(i.consume(y),p)}function m(y){if(y===null)return!0;const x=s[y];let v=-1;if(x)for(;++v<x.length;){const C=x[v];if(!C.previous||C.previous.call(o,o.previous))return!0}return!1}}}function Kd(e){return r;function r(i,o){let s=-1,a;for(;++s<=i.length;)a===void 0?i[s]&&i[s][1].type==="data"&&(a=s,s++):(!i[s]||i[s][1].type!=="data")&&(s!==a+2&&(i[a][1].end=i[s-1][1].end,i.splice(a+2,s-a-2),s=a+2),a=void 0);return e?e(i,o):i}}function z8(e,r){let i=0;for(;++i<=e.length;)if((i===e.length||e[i][1].type==="lineEnding")&&e[i-1][1].type==="data"){const o=e[i-1][1],s=r.sliceStream(o);let a=s.length,d=-1,f=0,p;for(;a--;){const m=s[a];if(typeof m=="string"){for(d=m.length;m.charCodeAt(d-1)===32;)f++,d--;if(d)break;d=-1}else if(m===-2)p=!0,f++;else if(m!==-1){a++;break}}if(r._contentTypeTextTrailing&&i===e.length&&(f=0),f){const m={type:i===e.length||p||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?d:o.start._bufferIndex+d,_index:o.start._index+a,line:o.end.line,column:o.end.column-f,offset:o.end.offset-f},end:{...o.end}};o.end={...m.start},o.start.offset===o.end.offset?Object.assign(o,m):(e.splice(i,0,["enter",m,r],["exit",m,r]),i+=2)}i++}return e}const R8={42:Yt,43:Yt,45:Yt,48:Yt,49:Yt,50:Yt,51:Yt,52:Yt,53:Yt,54:Yt,55:Yt,56:Yt,57:Yt,62:Hd},D8={91:$h},A8={[-2]:su,[-1]:su,32:su},F8={35:qh,42:Xo,45:[z2,Xo],60:Kh,61:z2,95:Xo,96:M2,126:M2},O8={38:Ud,92:Vd},$8={[-5]:au,[-4]:au,[-3]:au,33:h8,38:Ud,42:Du,60:[gh,r8],91:g8,92:[Uh,Vd],93:s1,95:Du,96:Nh},B8={null:[Du,P8]},H8={null:[42,95]},V8={null:[]},U8=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:H8,contentInitial:D8,disable:V8,document:R8,flow:F8,flowInitial:A8,insideSpan:B8,string:O8,text:$8},Symbol.toStringTag,{value:"Module"}));function W8(e,r,i){let o={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const s={},a=[];let d=[],f=[];const p={attempt:ee(B),check:ee(T),consume:V,enter:S,exit:F,interrupt:ee(T,{interrupt:!0})},m={code:null,containerState:{},defineSkip:P,events:[],now:k,parser:e,previous:null,sliceSerialize:v,sliceStream:C,write:x};let y=r.tokenize.call(m,p);return r.resolveAll&&a.push(r),m;function x(L){return d=mn(d,L),R(),d[d.length-1]!==null?[]:(ie(r,0),m.events=cs(a,m.events,m),m.events)}function v(L,Z){return Z8(C(L),Z)}function C(L){return q8(d,L)}function k(){const{_bufferIndex:L,_index:Z,line:te,column:W,offset:$}=o;return{_bufferIndex:L,_index:Z,line:te,column:W,offset:$}}function P(L){s[L.line]=L.column,D()}function R(){let L;for(;o._index<d.length;){const Z=d[o._index];if(typeof Z=="string")for(L=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===L&&o._bufferIndex<Z.length;)j(Z.charCodeAt(o._bufferIndex));else j(Z)}}function j(L){y=y(L)}function V(L){be(L)?(o.line++,o.column=1,o.offset+=L===-3?2:1,D()):L!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===d[o._index].length&&(o._bufferIndex=-1,o._index++)),m.previous=L}function S(L,Z){const te=Z||{};return te.type=L,te.start=k(),m.events.push(["enter",te,m]),f.push(te),te}function F(L){const Z=f.pop();return Z.end=k(),m.events.push(["exit",Z,m]),Z}function B(L,Z){ie(L,Z.from)}function T(L,Z){Z.restore()}function ee(L,Z){return te;function te(W,$,I){let J,z,ne,b;return Array.isArray(W)?K(W):"tokenize"in W?K([W]):A(W);function A(fe){return Ne;function Ne(Ee){const ze=Ee!==null&&fe[Ee],Ue=Ee!==null&&fe.null,Oe=[...Array.isArray(ze)?ze:ze?[ze]:[],...Array.isArray(Ue)?Ue:Ue?[Ue]:[]];return K(Oe)(Ee)}}function K(fe){return J=fe,z=0,fe.length===0?I:N(fe[z])}function N(fe){return Ne;function Ne(Ee){return b=Y(),ne=fe,fe.partial||(m.currentConstruct=fe),fe.name&&m.parser.constructs.disable.null.includes(fe.name)?ve():fe.tokenize.call(Z?Object.assign(Object.create(m),Z):m,p,ge,ve)(Ee)}}function ge(fe){return L(ne,b),$}function ve(fe){return b.restore(),++z<J.length?N(J[z]):I}}}function ie(L,Z){L.resolveAll&&!a.includes(L)&&a.push(L),L.resolve&&ln(m.events,Z,m.events.length-Z,L.resolve(m.events.slice(Z),m)),L.resolveTo&&(m.events=L.resolveTo(m.events,m))}function Y(){const L=k(),Z=m.previous,te=m.currentConstruct,W=m.events.length,$=Array.from(f);return{from:W,restore:I};function I(){o=L,m.previous=Z,m.currentConstruct=te,m.events.length=W,f=$,D()}}function D(){o.line in s&&o.column<2&&(o.column=s[o.line],o.offset+=s[o.line]-1)}}function q8(e,r){const i=r.start._index,o=r.start._bufferIndex,s=r.end._index,a=r.end._bufferIndex;let d;if(i===s)d=[e[i].slice(o,a)];else{if(d=e.slice(i,s),o>-1){const f=d[0];typeof f=="string"?d[0]=f.slice(o):d.shift()}a>0&&d.push(e[s].slice(0,a))}return d}function Z8(e,r){let i=-1;const o=[];let s;for(;++i<e.length;){const a=e[i];let d;if(typeof a=="string")d=a;else switch(a){case-5:{d="\r";break}case-4:{d=`
|
|
48
48
|
`;break}case-3:{d=`\r
|
|
49
|
-
`;break}case-2:{d=r?" ":" ";break}case-1:{if(!r&&s)continue;d=" ";break}default:d=String.fromCharCode(u)}s=u===-2,o.push(d)}return o.join("")}function H8(e){const o={constructs:Dd([F8,...(e||{}).extensions||[]]),content:s(rh),defined:[],document:s(lh),flow:s(_8),lazy:{},string:s(E8),text:s(j8)};return o;function s(u){return d;function d(f){return O8(o,u,f)}}}function V8(e){for(;!$d(e););return e}const P2=/[\0\t\n\r]/g;function U8(){let e=1,r="",i=!0,o;return s;function s(u,d,f){const p=[];let m,y,x,v,C;for(u=r+(typeof u=="string"?u.toString():new TextDecoder(d||void 0).decode(u)),x=0,r="",i&&(u.charCodeAt(0)===65279&&x++,i=void 0);x<u.length;){if(P2.lastIndex=x,m=P2.exec(u),v=m&&m.index!==void 0?m.index:u.length,C=u.charCodeAt(v),!m){r=u.slice(x);break}if(C===10&&x===v&&o)p.push(-3),o=void 0;else switch(o&&(p.push(-5),o=void 0),x<v&&(p.push(u.slice(x,v)),e+=v-x),C){case 0:{p.push(65533),e++;break}case 9:{for(y=Math.ceil(e/4)*4,p.push(-2);e++<y;)p.push(-1);break}case 10:{p.push(-4),e=1;break}default:o=!0,e=1}x=v+1}return f&&(o&&p.push(-5),r&&p.push(r),p.push(null)),p}}const W8=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function q8(e){return e.replace(W8,Z8)}function Z8(e,r,i){if(r)return r;if(i.charCodeAt(0)===35){const s=i.charCodeAt(1),u=s===120||s===88;return Rd(i.slice(u?2:1),u?16:10)}return lu(i)||e}const qd={}.hasOwnProperty;function Q8(e,r,i){return r&&typeof r=="object"&&(i=r,r=void 0),G8(i)(V8(H8(i).document().write(U8()(e,r,!0))))}function G8(e){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(re),autolinkProtocol:Y,autolinkEmail:Y,atxHeading:u(At),blockQuote:u(Ue),characterEscape:Y,characterReference:Y,codeFenced:u(Oe),codeFencedFenceInfo:d,codeFencedFenceMeta:d,codeIndented:u(Oe,d),codeText:u(rt,d),codeTextData:Y,data:Y,codeFlowValue:Y,definition:u(Et),definitionDestinationString:d,definitionLabelString:d,definitionTitleString:d,emphasis:u(Rt),hardBreakEscape:u(jt),hardBreakTrailing:u(jt),htmlFlow:u(Ft,d),htmlFlowData:Y,htmlText:u(Ft,d),htmlTextData:Y,image:u(gn),label:d,link:u(re),listItem:u(Q),listItemValue:v,listOrdered:u(be,x),listUnordered:u(be),paragraph:u(xe),reference:N,referenceString:d,resourceDestinationString:d,resourceTitleString:d,setextHeading:u(At),strong:u(Me),thematicBreak:u(He)},exit:{atxHeading:p(),atxHeadingSequence:B,autolink:p(),autolinkEmail:ze,autolinkProtocol:Ee,blockQuote:p(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:ve,characterReferenceMarkerNumeric:ve,characterReferenceValue:fe,characterReference:Ne,codeFenced:p(R),codeFencedFence:P,codeFencedFenceInfo:C,codeFencedFenceMeta:k,codeFlowValue:D,codeIndented:p(j),codeText:p(O),codeTextData:D,data:D,definition:p(),definitionDestinationString:$,definitionLabelString:V,definitionTitleString:b,emphasis:p(),hardBreakEscape:p(Z),hardBreakTrailing:p(Z),htmlFlow:p(te),htmlFlowData:D,htmlText:p(W),htmlTextData:D,image:p(J),label:ne,labelText:z,lineEnding:L,link:p(I),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:ge,resourceDestinationString:S,resourceTitleString:A,resource:K,setextHeading:p(ie),setextHeadingLineSequence:ee,setextHeadingText:T,strong:p(),thematicBreak:p()}};Zd(r,(e||{}).mdastExtensions||[]);const i={};return o;function o(X){let ae={type:"root",children:[]};const we={stack:[ae],tokenStack:[],config:r,enter:f,exit:m,buffer:d,resume:y,data:i},je=[];let Re=-1;for(;++Re<X.length;)if(X[Re][1].type==="listOrdered"||X[Re][1].type==="listUnordered")if(X[Re][0]==="enter")je.push(Re);else{const ft=je.pop();Re=s(X,ft,Re)}for(Re=-1;++Re<X.length;){const ft=r[X[Re][0]];qd.call(ft,X[Re][1].type)&&ft[X[Re][1].type].call(Object.assign({sliceSerialize:X[Re][2].sliceSerialize},we),X[Re][1])}if(we.tokenStack.length>0){const ft=we.tokenStack[we.tokenStack.length-1];(ft[1]||M2).call(we,void 0,ft[0])}for(ae.position={start:gr(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:gr(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},Re=-1;++Re<r.transforms.length;)ae=r.transforms[Re](ae)||ae;return ae}function s(X,ae,we){let je=ae-1,Re=-1,ft=!1,ln,de,Te,Ge;for(;++je<=we;){const Qe=X[je];switch(Qe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Qe[0]==="enter"?Re++:Re--,Ge=void 0;break}case"lineEndingBlank":{Qe[0]==="enter"&&(ln&&!Ge&&!Re&&!Te&&(Te=je),Ge=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ge=void 0}if(!Re&&Qe[0]==="enter"&&Qe[1].type==="listItemPrefix"||Re===-1&&Qe[0]==="exit"&&(Qe[1].type==="listUnordered"||Qe[1].type==="listOrdered")){if(ln){let Ot=je;for(de=void 0;Ot--;){const Xe=X[Ot];if(Xe[1].type==="lineEnding"||Xe[1].type==="lineEndingBlank"){if(Xe[0]==="exit")continue;de&&(X[de][1].type="lineEndingBlank",ft=!0),Xe[1].type="lineEnding",de=Ot}else if(!(Xe[1].type==="linePrefix"||Xe[1].type==="blockQuotePrefix"||Xe[1].type==="blockQuotePrefixWhitespace"||Xe[1].type==="blockQuoteMarker"||Xe[1].type==="listItemIndent"))break}Te&&(!de||Te<de)&&(ln._spread=!0),ln.end=Object.assign({},de?X[de][1].start:Qe[1].end),X.splice(de||je,0,["exit",ln,Qe[2]]),je++,we++}if(Qe[1].type==="listItemPrefix"){const Ot={type:"listItem",_spread:!1,start:Object.assign({},Qe[1].start),end:void 0};ln=Ot,X.splice(je,0,["enter",Ot,Qe[2]]),je++,we++,Te=void 0,Ge=!0}}}return X[ae][1]._spread=ft,we}function u(X,ae){return we;function we(je){f.call(this,X(je),je),ae&&ae.call(this,je)}}function d(){this.stack.push({type:"fragment",children:[]})}function f(X,ae,we){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([ae,we||void 0]),X.position={start:gr(ae.start),end:void 0}}function p(X){return ae;function ae(we){X&&X.call(this,we),m.call(this,we)}}function m(X,ae){const we=this.stack.pop(),je=this.tokenStack.pop();if(je)je[0].type!==X.type&&(ae?ae.call(this,X,je[0]):(je[1]||M2).call(this,X,je[0]));else throw new Error("Cannot close `"+X.type+"` ("+xl({start:X.start,end:X.end})+"): it’s not open");we.position.end=gr(X.end)}function y(){return iu(this.stack.pop())}function x(){this.data.expectingFirstListItemValue=!0}function v(X){if(this.data.expectingFirstListItemValue){const ae=this.stack[this.stack.length-2];ae.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function C(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.lang=X}function k(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.meta=X}function P(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function R(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function j(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.value=X.replace(/(\r?\n|\r)$/g,"")}function V(X){const ae=this.resume(),we=this.stack[this.stack.length-1];we.label=ae,we.identifier=En(this.sliceSerialize(X)).toLowerCase()}function b(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.title=X}function $(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.url=X}function B(X){const ae=this.stack[this.stack.length-1];if(!ae.depth){const we=this.sliceSerialize(X).length;ae.depth=we}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function ee(X){const ae=this.stack[this.stack.length-1];ae.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function ie(){this.data.setextHeadingSlurpLineEnding=void 0}function Y(X){const we=this.stack[this.stack.length-1].children;let je=we[we.length-1];(!je||je.type!=="text")&&(je=st(),je.position={start:gr(X.start),end:void 0},we.push(je)),this.stack.push(je)}function D(X){const ae=this.stack.pop();ae.value+=this.sliceSerialize(X),ae.position.end=gr(X.end)}function L(X){const ae=this.stack[this.stack.length-1];if(this.data.atHardBreak){const we=ae.children[ae.children.length-1];we.position.end=gr(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(ae.type)&&(Y.call(this,X),D.call(this,X))}function Z(){this.data.atHardBreak=!0}function te(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.value=X}function W(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.value=X}function O(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.value=X}function I(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=ae,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function J(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=ae,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function z(X){const ae=this.sliceSerialize(X),we=this.stack[this.stack.length-2];we.label=q8(ae),we.identifier=En(ae).toLowerCase()}function ne(){const X=this.stack[this.stack.length-1],ae=this.resume(),we=this.stack[this.stack.length-1];if(this.data.inReference=!0,we.type==="link"){const je=X.children;we.children=je}else we.alt=ae}function S(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.url=X}function A(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.title=X}function K(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function ge(X){const ae=this.resume(),we=this.stack[this.stack.length-1];we.label=ae,we.identifier=En(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function ve(X){this.data.characterReferenceType=X.type}function fe(X){const ae=this.sliceSerialize(X),we=this.data.characterReferenceType;let je;we?(je=Rd(ae,we==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):je=lu(ae);const Re=this.stack[this.stack.length-1];Re.value+=je}function Ne(X){const ae=this.stack.pop();ae.position.end=gr(X.end)}function Ee(X){D.call(this,X);const ae=this.stack[this.stack.length-1];ae.url=this.sliceSerialize(X)}function ze(X){D.call(this,X);const ae=this.stack[this.stack.length-1];ae.url="mailto:"+this.sliceSerialize(X)}function Ue(){return{type:"blockquote",children:[]}}function Oe(){return{type:"code",lang:null,meta:null,value:""}}function rt(){return{type:"inlineCode",value:""}}function Et(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Rt(){return{type:"emphasis",children:[]}}function At(){return{type:"heading",depth:0,children:[]}}function jt(){return{type:"break"}}function Ft(){return{type:"html",value:""}}function gn(){return{type:"image",title:null,url:"",alt:null}}function re(){return{type:"link",title:null,url:"",children:[]}}function be(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function Q(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function xe(){return{type:"paragraph",children:[]}}function Me(){return{type:"strong",children:[]}}function st(){return{type:"text",value:""}}function He(){return{type:"thematicBreak"}}}function gr(e){return{line:e.line,column:e.column,offset:e.offset}}function Zd(e,r){let i=-1;for(;++i<r.length;){const o=r[i];Array.isArray(o)?Zd(e,o):K8(e,o)}}function K8(e,r){let i;for(i in r)if(qd.call(r,i))switch(i){case"canContainEols":{const o=r[i];o&&e[i].push(...o);break}case"transforms":{const o=r[i];o&&e[i].push(...o);break}case"enter":case"exit":{const o=r[i];o&&Object.assign(e[i],o);break}}}function M2(e,r){throw e?new Error("Cannot close `"+e.type+"` ("+xl({start:e.start,end:e.end})+"): a different token (`"+r.type+"`, "+xl({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+xl({start:r.start,end:r.end})+") is still open")}function Y8(e){const r=this;r.parser=i;function i(o){return Q8(o,{...r.data("settings"),...e,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function X8(e,r){const i={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(r),!0)};return e.patch(r,i),e.applyData(r,i)}function J8(e,r){const i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(r,i),[e.applyData(r,i),{type:"text",value:`
|
|
50
|
-
`}]}function
|
|
51
|
-
`:"",o={},s=r.lang?r.lang.split(/\s+/):[];s.length>0&&(o.className=["language-"+s[0]]);let
|
|
49
|
+
`;break}case-2:{d=r?" ":" ";break}case-1:{if(!r&&s)continue;d=" ";break}default:d=String.fromCharCode(a)}s=a===-2,o.push(d)}return o.join("")}function Q8(e){const o={constructs:$d([U8,...(e||{}).extensions||[]]),content:s(uh),defined:[],document:s(dh),flow:s(N8),lazy:{},string:s(M8),text:s(T8)};return o;function s(a){return d;function d(f){return W8(o,a,f)}}}function G8(e){for(;!Wd(e););return e}const R2=/[\0\t\n\r]/g;function K8(){let e=1,r="",i=!0,o;return s;function s(a,d,f){const p=[];let m,y,x,v,C;for(a=r+(typeof a=="string"?a.toString():new TextDecoder(d||void 0).decode(a)),x=0,r="",i&&(a.charCodeAt(0)===65279&&x++,i=void 0);x<a.length;){if(R2.lastIndex=x,m=R2.exec(a),v=m&&m.index!==void 0?m.index:a.length,C=a.charCodeAt(v),!m){r=a.slice(x);break}if(C===10&&x===v&&o)p.push(-3),o=void 0;else switch(o&&(p.push(-5),o=void 0),x<v&&(p.push(a.slice(x,v)),e+=v-x),C){case 0:{p.push(65533),e++;break}case 9:{for(y=Math.ceil(e/4)*4,p.push(-2);e++<y;)p.push(-1);break}case 10:{p.push(-4),e=1;break}default:o=!0,e=1}x=v+1}return f&&(o&&p.push(-5),r&&p.push(r),p.push(null)),p}}const Y8=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function X8(e){return e.replace(Y8,J8)}function J8(e,r,i){if(r)return r;if(i.charCodeAt(0)===35){const s=i.charCodeAt(1),a=s===120||s===88;return Bd(i.slice(a?2:1),a?16:10)}return o1(i)||e}const Yd={}.hasOwnProperty;function e7(e,r,i){return r&&typeof r=="object"&&(i=r,r=void 0),t7(i)(G8(Q8(i).document().write(K8()(e,r,!0))))}function t7(e){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(re),autolinkProtocol:Y,autolinkEmail:Y,atxHeading:a(At),blockQuote:a(Ue),characterEscape:Y,characterReference:Y,codeFenced:a(Oe),codeFencedFenceInfo:d,codeFencedFenceMeta:d,codeIndented:a(Oe,d),codeText:a(rt,d),codeTextData:Y,data:Y,codeFlowValue:Y,definition:a(Et),definitionDestinationString:d,definitionLabelString:d,definitionTitleString:d,emphasis:a(Dt),hardBreakEscape:a(jt),hardBreakTrailing:a(jt),htmlFlow:a(Ft,d),htmlFlowData:Y,htmlText:a(Ft,d),htmlTextData:Y,image:a(gn),label:d,link:a(re),listItem:a(Q),listItemValue:v,listOrdered:a(Se,x),listUnordered:a(Se),paragraph:a(xe),reference:N,referenceString:d,resourceDestinationString:d,resourceTitleString:d,setextHeading:a(At),strong:a(Me),thematicBreak:a(He)},exit:{atxHeading:p(),atxHeadingSequence:B,autolink:p(),autolinkEmail:ze,autolinkProtocol:Ee,blockQuote:p(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:ve,characterReferenceMarkerNumeric:ve,characterReferenceValue:fe,characterReference:Ne,codeFenced:p(R),codeFencedFence:P,codeFencedFenceInfo:C,codeFencedFenceMeta:k,codeFlowValue:D,codeIndented:p(j),codeText:p($),codeTextData:D,data:D,definition:p(),definitionDestinationString:F,definitionLabelString:V,definitionTitleString:S,emphasis:p(),hardBreakEscape:p(Z),hardBreakTrailing:p(Z),htmlFlow:p(te),htmlFlowData:D,htmlText:p(W),htmlTextData:D,image:p(J),label:ne,labelText:z,lineEnding:L,link:p(I),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:ge,resourceDestinationString:b,resourceTitleString:A,resource:K,setextHeading:p(ie),setextHeadingLineSequence:ee,setextHeadingText:T,strong:p(),thematicBreak:p()}};Xd(r,(e||{}).mdastExtensions||[]);const i={};return o;function o(X){let ae={type:"root",children:[]};const we={stack:[ae],tokenStack:[],config:r,enter:f,exit:m,buffer:d,resume:y,data:i},je=[];let De=-1;for(;++De<X.length;)if(X[De][1].type==="listOrdered"||X[De][1].type==="listUnordered")if(X[De][0]==="enter")je.push(De);else{const ft=je.pop();De=s(X,ft,De)}for(De=-1;++De<X.length;){const ft=r[X[De][0]];Yd.call(ft,X[De][1].type)&&ft[X[De][1].type].call(Object.assign({sliceSerialize:X[De][2].sliceSerialize},we),X[De][1])}if(we.tokenStack.length>0){const ft=we.tokenStack[we.tokenStack.length-1];(ft[1]||D2).call(we,void 0,ft[0])}for(ae.position={start:vr(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:vr(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},De=-1;++De<r.transforms.length;)ae=r.transforms[De](ae)||ae;return ae}function s(X,ae,we){let je=ae-1,De=-1,ft=!1,on,de,Te,Ge;for(;++je<=we;){const Qe=X[je];switch(Qe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Qe[0]==="enter"?De++:De--,Ge=void 0;break}case"lineEndingBlank":{Qe[0]==="enter"&&(on&&!Ge&&!De&&!Te&&(Te=je),Ge=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ge=void 0}if(!De&&Qe[0]==="enter"&&Qe[1].type==="listItemPrefix"||De===-1&&Qe[0]==="exit"&&(Qe[1].type==="listUnordered"||Qe[1].type==="listOrdered")){if(on){let Ot=je;for(de=void 0;Ot--;){const Xe=X[Ot];if(Xe[1].type==="lineEnding"||Xe[1].type==="lineEndingBlank"){if(Xe[0]==="exit")continue;de&&(X[de][1].type="lineEndingBlank",ft=!0),Xe[1].type="lineEnding",de=Ot}else if(!(Xe[1].type==="linePrefix"||Xe[1].type==="blockQuotePrefix"||Xe[1].type==="blockQuotePrefixWhitespace"||Xe[1].type==="blockQuoteMarker"||Xe[1].type==="listItemIndent"))break}Te&&(!de||Te<de)&&(on._spread=!0),on.end=Object.assign({},de?X[de][1].start:Qe[1].end),X.splice(de||je,0,["exit",on,Qe[2]]),je++,we++}if(Qe[1].type==="listItemPrefix"){const Ot={type:"listItem",_spread:!1,start:Object.assign({},Qe[1].start),end:void 0};on=Ot,X.splice(je,0,["enter",Ot,Qe[2]]),je++,we++,Te=void 0,Ge=!0}}}return X[ae][1]._spread=ft,we}function a(X,ae){return we;function we(je){f.call(this,X(je),je),ae&&ae.call(this,je)}}function d(){this.stack.push({type:"fragment",children:[]})}function f(X,ae,we){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([ae,we||void 0]),X.position={start:vr(ae.start),end:void 0}}function p(X){return ae;function ae(we){X&&X.call(this,we),m.call(this,we)}}function m(X,ae){const we=this.stack.pop(),je=this.tokenStack.pop();if(je)je[0].type!==X.type&&(ae?ae.call(this,X,je[0]):(je[1]||D2).call(this,X,je[0]));else throw new Error("Cannot close `"+X.type+"` ("+yl({start:X.start,end:X.end})+"): it’s not open");we.position.end=vr(X.end)}function y(){return l1(this.stack.pop())}function x(){this.data.expectingFirstListItemValue=!0}function v(X){if(this.data.expectingFirstListItemValue){const ae=this.stack[this.stack.length-2];ae.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function C(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.lang=X}function k(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.meta=X}function P(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function R(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function j(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.value=X.replace(/(\r?\n|\r)$/g,"")}function V(X){const ae=this.resume(),we=this.stack[this.stack.length-1];we.label=ae,we.identifier=En(this.sliceSerialize(X)).toLowerCase()}function S(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.title=X}function F(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.url=X}function B(X){const ae=this.stack[this.stack.length-1];if(!ae.depth){const we=this.sliceSerialize(X).length;ae.depth=we}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function ee(X){const ae=this.stack[this.stack.length-1];ae.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function ie(){this.data.setextHeadingSlurpLineEnding=void 0}function Y(X){const we=this.stack[this.stack.length-1].children;let je=we[we.length-1];(!je||je.type!=="text")&&(je=at(),je.position={start:vr(X.start),end:void 0},we.push(je)),this.stack.push(je)}function D(X){const ae=this.stack.pop();ae.value+=this.sliceSerialize(X),ae.position.end=vr(X.end)}function L(X){const ae=this.stack[this.stack.length-1];if(this.data.atHardBreak){const we=ae.children[ae.children.length-1];we.position.end=vr(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(ae.type)&&(Y.call(this,X),D.call(this,X))}function Z(){this.data.atHardBreak=!0}function te(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.value=X}function W(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.value=X}function $(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.value=X}function I(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=ae,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function J(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=ae,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function z(X){const ae=this.sliceSerialize(X),we=this.stack[this.stack.length-2];we.label=X8(ae),we.identifier=En(ae).toLowerCase()}function ne(){const X=this.stack[this.stack.length-1],ae=this.resume(),we=this.stack[this.stack.length-1];if(this.data.inReference=!0,we.type==="link"){const je=X.children;we.children=je}else we.alt=ae}function b(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.url=X}function A(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.title=X}function K(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function ge(X){const ae=this.resume(),we=this.stack[this.stack.length-1];we.label=ae,we.identifier=En(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function ve(X){this.data.characterReferenceType=X.type}function fe(X){const ae=this.sliceSerialize(X),we=this.data.characterReferenceType;let je;we?(je=Bd(ae,we==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):je=o1(ae);const De=this.stack[this.stack.length-1];De.value+=je}function Ne(X){const ae=this.stack.pop();ae.position.end=vr(X.end)}function Ee(X){D.call(this,X);const ae=this.stack[this.stack.length-1];ae.url=this.sliceSerialize(X)}function ze(X){D.call(this,X);const ae=this.stack[this.stack.length-1];ae.url="mailto:"+this.sliceSerialize(X)}function Ue(){return{type:"blockquote",children:[]}}function Oe(){return{type:"code",lang:null,meta:null,value:""}}function rt(){return{type:"inlineCode",value:""}}function Et(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Dt(){return{type:"emphasis",children:[]}}function At(){return{type:"heading",depth:0,children:[]}}function jt(){return{type:"break"}}function Ft(){return{type:"html",value:""}}function gn(){return{type:"image",title:null,url:"",alt:null}}function re(){return{type:"link",title:null,url:"",children:[]}}function Se(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function Q(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function xe(){return{type:"paragraph",children:[]}}function Me(){return{type:"strong",children:[]}}function at(){return{type:"text",value:""}}function He(){return{type:"thematicBreak"}}}function vr(e){return{line:e.line,column:e.column,offset:e.offset}}function Xd(e,r){let i=-1;for(;++i<r.length;){const o=r[i];Array.isArray(o)?Xd(e,o):n7(e,o)}}function n7(e,r){let i;for(i in r)if(Yd.call(r,i))switch(i){case"canContainEols":{const o=r[i];o&&e[i].push(...o);break}case"transforms":{const o=r[i];o&&e[i].push(...o);break}case"enter":case"exit":{const o=r[i];o&&Object.assign(e[i],o);break}}}function D2(e,r){throw e?new Error("Cannot close `"+e.type+"` ("+yl({start:e.start,end:e.end})+"): a different token (`"+r.type+"`, "+yl({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+yl({start:r.start,end:r.end})+") is still open")}function r7(e){const r=this;r.parser=i;function i(o){return e7(o,{...r.data("settings"),...e,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function i7(e,r){const i={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(r),!0)};return e.patch(r,i),e.applyData(r,i)}function l7(e,r){const i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(r,i),[e.applyData(r,i),{type:"text",value:`
|
|
50
|
+
`}]}function o7(e,r){const i=r.value?r.value+`
|
|
51
|
+
`:"",o={},s=r.lang?r.lang.split(/\s+/):[];s.length>0&&(o.className=["language-"+s[0]]);let a={type:"element",tagName:"code",properties:o,children:[{type:"text",value:i}]};return r.meta&&(a.data={meta:r.meta}),e.patch(r,a),a=e.applyData(r,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(r,a),a}function s7(e,r){const i={type:"element",tagName:"del",properties:{},children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function a7(e,r){const i={type:"element",tagName:"em",properties:{},children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function u7(e,r){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",o=String(r.identifier).toUpperCase(),s=bi(o.toLowerCase()),a=e.footnoteOrder.indexOf(o);let d,f=e.footnoteCounts.get(o);f===void 0?(f=0,e.footnoteOrder.push(o),d=e.footnoteOrder.length):d=a+1,f+=1,e.footnoteCounts.set(o,f);const p={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+s,id:i+"fnref-"+s+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(d)}]};e.patch(r,p);const m={type:"element",tagName:"sup",properties:{},children:[p]};return e.patch(r,m),e.applyData(r,m)}function c7(e,r){const i={type:"element",tagName:"h"+r.depth,properties:{},children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function d7(e,r){if(e.options.allowDangerousHtml){const i={type:"raw",value:r.value};return e.patch(r,i),e.applyData(r,i)}}function Jd(e,r){const i=r.referenceType;let o="]";if(i==="collapsed"?o+="[]":i==="full"&&(o+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+o}];const s=e.all(r),a=s[0];a&&a.type==="text"?a.value="["+a.value:s.unshift({type:"text",value:"["});const d=s[s.length-1];return d&&d.type==="text"?d.value+=o:s.push({type:"text",value:o}),s}function f7(e,r){const i=String(r.identifier).toUpperCase(),o=e.definitionById.get(i);if(!o)return Jd(e,r);const s={src:bi(o.url||""),alt:r.alt};o.title!==null&&o.title!==void 0&&(s.title=o.title);const a={type:"element",tagName:"img",properties:s,children:[]};return e.patch(r,a),e.applyData(r,a)}function p7(e,r){const i={src:bi(r.url)};r.alt!==null&&r.alt!==void 0&&(i.alt=r.alt),r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(r,o),e.applyData(r,o)}function h7(e,r){const i={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};e.patch(r,i);const o={type:"element",tagName:"code",properties:{},children:[i]};return e.patch(r,o),e.applyData(r,o)}function m7(e,r){const i=String(r.identifier).toUpperCase(),o=e.definitionById.get(i);if(!o)return Jd(e,r);const s={href:bi(o.url||"")};o.title!==null&&o.title!==void 0&&(s.title=o.title);const a={type:"element",tagName:"a",properties:s,children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function g7(e,r){const i={href:bi(r.url)};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(r)};return e.patch(r,o),e.applyData(r,o)}function x7(e,r,i){const o=e.all(r),s=i?y7(i):e3(r),a={},d=[];if(typeof r.checked=="boolean"){const y=o[0];let x;y&&y.type==="element"&&y.tagName==="p"?x=y:(x={type:"element",tagName:"p",properties:{},children:[]},o.unshift(x)),x.children.length>0&&x.children.unshift({type:"text",value:" "}),x.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let f=-1;for(;++f<o.length;){const y=o[f];(s||f!==0||y.type!=="element"||y.tagName!=="p")&&d.push({type:"text",value:`
|
|
52
52
|
`}),y.type==="element"&&y.tagName==="p"&&!s?d.push(...y.children):d.push(y)}const p=o[o.length-1];p&&(s||p.type!=="element"||p.tagName!=="p")&&d.push({type:"text",value:`
|
|
53
|
-
`});const m={type:"element",tagName:"li",properties:
|
|
53
|
+
`});const m={type:"element",tagName:"li",properties:a,children:d};return e.patch(r,m),e.applyData(r,m)}function y7(e){let r=!1;if(e.type==="list"){r=e.spread||!1;const i=e.children;let o=-1;for(;!r&&++o<i.length;)r=e3(i[o])}return r}function e3(e){const r=e.spread;return r??e.children.length>1}function v7(e,r){const i={},o=e.all(r);let s=-1;for(typeof r.start=="number"&&r.start!==1&&(i.start=r.start);++s<o.length;){const d=o[s];if(d.type==="element"&&d.tagName==="li"&&d.properties&&Array.isArray(d.properties.className)&&d.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const a={type:"element",tagName:r.ordered?"ol":"ul",properties:i,children:e.wrap(o,!0)};return e.patch(r,a),e.applyData(r,a)}function C7(e,r){const i={type:"element",tagName:"p",properties:{},children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function w7(e,r){const i={type:"root",children:e.wrap(e.all(r))};return e.patch(r,i),e.applyData(r,i)}function k7(e,r){const i={type:"element",tagName:"strong",properties:{},children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function _7(e,r){const i=e.all(r),o=i.shift(),s=[];if(o){const d={type:"element",tagName:"thead",properties:{},children:e.wrap([o],!0)};e.patch(r.children[0],d),s.push(d)}if(i.length>0){const d={type:"element",tagName:"tbody",properties:{},children:e.wrap(i,!0)},f=t1(r.children[1]),p=Td(r.children[r.children.length-1]);f&&p&&(d.position={start:f,end:p}),s.push(d)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(r,a),e.applyData(r,a)}function b7(e,r,i){const o=i?i.children:void 0,a=(o?o.indexOf(r):1)===0?"th":"td",d=i&&i.type==="table"?i.align:void 0,f=d?d.length:r.children.length;let p=-1;const m=[];for(;++p<f;){const x=r.children[p],v={},C=d?d[p]:void 0;C&&(v.align=C);let k={type:"element",tagName:a,properties:v,children:[]};x&&(k.children=e.all(x),e.patch(x,k),k=e.applyData(x,k)),m.push(k)}const y={type:"element",tagName:"tr",properties:{},children:e.wrap(m,!0)};return e.patch(r,y),e.applyData(r,y)}function S7(e,r){const i={type:"element",tagName:"td",properties:{},children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}const A2=9,F2=32;function E7(e){const r=String(e),i=/\r?\n|\r/g;let o=i.exec(r),s=0;const a=[];for(;o;)a.push(O2(r.slice(s,o.index),s>0,!0),o[0]),s=o.index+o[0].length,o=i.exec(r);return a.push(O2(r.slice(s),s>0,!1)),a.join("")}function O2(e,r,i){let o=0,s=e.length;if(r){let a=e.codePointAt(o);for(;a===A2||a===F2;)o++,a=e.codePointAt(o)}if(i){let a=e.codePointAt(s-1);for(;a===A2||a===F2;)s--,a=e.codePointAt(s-1)}return s>o?e.slice(o,s):""}function j7(e,r){const i={type:"text",value:E7(String(r.value))};return e.patch(r,i),e.applyData(r,i)}function L7(e,r){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(r,i),e.applyData(r,i)}const N7={blockquote:i7,break:l7,code:o7,delete:s7,emphasis:a7,footnoteReference:u7,heading:c7,html:d7,imageReference:f7,image:p7,inlineCode:h7,linkReference:m7,link:g7,listItem:x7,list:v7,paragraph:C7,root:w7,strong:k7,table:_7,tableCell:S7,tableRow:b7,text:j7,thematicBreak:L7,toml:Bo,yaml:Bo,definition:Bo,footnoteDefinition:Bo};function Bo(){}const t3=-1,ds=0,Cl=1,rs=2,a1=3,u1=4,c1=5,d1=6,n3=7,r3=8,{defineProperty:I7}=Object,i3=typeof self=="object"?self:globalThis,$2=(e,r)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new i3[e](r)},P7=(e,r)=>{const i=(s,a)=>(e.set(a,s),s),o=s=>{if(e.has(s))return e.get(s);const[a,d]=r[s];switch(a){case ds:case t3:return i(d,s);case Cl:{const f=i([],s);for(const p of d)f.push(o(p));return f}case rs:{const f=i({},s);for(const[p,m]of d){const y=o(p),x=o(m);y==="__proto__"?I7(f,y,{value:x,configurable:!0,enumerable:!0,writable:!0}):f[y]=x}return f}case a1:return i(new Date(d),s);case u1:{const{source:f,flags:p}=d;return i(new RegExp(f,p),s)}case c1:{const f=i(new Map,s);for(const[p,m]of d)f.set(o(p),o(m));return f}case d1:{const f=i(new Set,s);for(const p of d)f.add(o(p));return f}case n3:{const{name:f,message:p}=d;return i(typeof i3[f]=="function"?$2(f,p):new Error(p),s)}case r3:return i(BigInt(d),s);case"BigInt":return i(Object(BigInt(d)),s);case"ArrayBuffer":return i(new Uint8Array(d).buffer,d);case"DataView":{const{buffer:f}=new Uint8Array(d);return i(new DataView(f),d)}case"-0":return-0}return i($2(a,d),s)};return o},B2=e=>P7(new Map,e)(0),Vr="",{toString:M7}={},{keys:T7,is:z7}=Object,pl=e=>{const r=typeof e;if(r!=="object"||!e)return[ds,r];const i=M7.call(e).slice(8,-1);switch(i){case"Array":return[Cl,Vr];case"Object":return[rs,Vr];case"Date":return[a1,Vr];case"RegExp":return[u1,Vr];case"Map":return[c1,Vr];case"Set":return[d1,Vr];case"DataView":return[Cl,i]}return i.includes("Array")?[Cl,i]:e instanceof Error?[n3,e.name||"Error"]:[rs,i]},Ho=([e,r])=>e===ds&&(r==="function"||r==="symbol"),R7=(e,r,i,o)=>{const s=(d,f)=>{const p=o.push(d)-1;return i.set(f,p),p},a=d=>{if(i.has(d))return i.get(d);let[f,p]=pl(d);switch(f){case ds:{let y=d;switch(p){case"bigint":f=r3,y=d.toString();break;case"number":if(!d&&z7(d,-0))return o.push(["-0"])-1;break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+p);y=null;break;case"undefined":return s([t3],d)}return s([f,y],d)}case Cl:{if(p){let v=d;return p==="DataView"?v=new Uint8Array(d.buffer):p==="ArrayBuffer"&&(v=new Uint8Array(d)),s([p,[...v]],d)}const y=[],x=s([f,y],d);for(const v of d)y.push(a(v));return x}case rs:{if(p)switch(p){case"BigInt":return s([p,d.toString()],d);case"Boolean":case"Number":case"String":return s([p,d.valueOf()],d)}if(r&&"toJSON"in d)return a(d.toJSON());const y=[],x=s([f,y],d);for(const v of T7(d))(e||!Ho(pl(d[v])))&&y.push([a(v),a(d[v])]);return x}case a1:return s([f,isNaN(d.getTime())?Vr:d.toISOString()],d);case u1:{const{source:y,flags:x}=d;return s([f,{source:y,flags:x}],d)}case c1:{const y=[],x=s([f,y],d);for(const[v,C]of d)(e||!(Ho(pl(v))||Ho(pl(C))))&&y.push([a(v),a(C)]);return x}case d1:{const y=[],x=s([f,y],d);for(const v of d)(e||!Ho(pl(v)))&&y.push(a(v));return x}}const{message:m}=d;return s([f,{name:p,message:m}],d)};return a},H2=(e,{json:r,lossy:i}={})=>{const o=[];return R7(!(r||i),!!r,new Map,o)(e),o},is=typeof structuredClone=="function"?(e,r)=>r&&("json"in r||"lossy"in r)?B2(H2(e,r)):structuredClone(e):(e,r)=>B2(H2(e,r));function D7(e,r){const i=[{type:"text",value:"↩"}];return r>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),i}function A7(e,r){return"Back to reference "+(e+1)+(r>1?"-"+r:"")}function F7(e){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||D7,o=e.options.footnoteBackLabel||A7,s=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",d=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let p=-1;for(;++p<e.footnoteOrder.length;){const m=e.footnoteById.get(e.footnoteOrder[p]);if(!m)continue;const y=e.all(m),x=String(m.identifier).toUpperCase(),v=bi(x.toLowerCase());let C=0;const k=[],P=e.footnoteCounts.get(x);for(;P!==void 0&&++C<=P;){k.length>0&&k.push({type:"text",value:" "});let V=typeof i=="string"?i:i(p,C);typeof V=="string"&&(V={type:"text",value:V}),k.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+v+(C>1?"-"+C:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(p,C),className:["data-footnote-backref"]},children:Array.isArray(V)?V:[V]})}const R=y[y.length-1];if(R&&R.type==="element"&&R.tagName==="p"){const V=R.children[R.children.length-1];V&&V.type==="text"?V.value+=" ":R.children.push({type:"text",value:" "}),R.children.push(...k)}else y.push(...k);const j={type:"element",tagName:"li",properties:{id:r+"fn-"+v},children:e.wrap(y,!0)};e.patch(m,j),f.push(j)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...is(d),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
54
54
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
|
|
55
|
-
`}]}}const
|
|
55
|
+
`}]}}const fs=(function(e){if(e==null)return H7;if(typeof e=="function")return ps(e);if(typeof e=="object")return Array.isArray(e)?O7(e):$7(e);if(typeof e=="string")return B7(e);throw new Error("Expected function, string, or object as test")});function O7(e){const r=[];let i=-1;for(;++i<e.length;)r[i]=fs(e[i]);return ps(o);function o(...s){let a=-1;for(;++a<r.length;)if(r[a].apply(this,s))return!0;return!1}}function $7(e){const r=e;return ps(i);function i(o){const s=o;let a;for(a in e)if(s[a]!==r[a])return!1;return!0}}function B7(e){return ps(r);function r(i){return i&&i.type===e}}function ps(e){return r;function r(i,o,s){return!!(V7(i)&&e.call(this,i,typeof o=="number"?o:void 0,s||void 0))}}function H7(){return!0}function V7(e){return e!==null&&typeof e=="object"&&"type"in e}const l3=[],U7=!0,Au=!1,W7="skip";function o3(e,r,i,o){let s;typeof r=="function"&&typeof i!="function"?(o=i,i=r):s=r;const a=fs(s),d=o?-1:1;f(e,void 0,[])();function f(p,m,y){const x=p&&typeof p=="object"?p:{};if(typeof x.type=="string"){const C=typeof x.tagName=="string"?x.tagName:typeof x.name=="string"?x.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(p.type+(C?"<"+C+">":""))+")"})}return v;function v(){let C=l3,k,P,R;if((!r||a(p,m,y[y.length-1]||void 0))&&(C=q7(i(p,y)),C[0]===Au))return C;if("children"in p&&p.children){const j=p;if(j.children&&C[0]!==W7)for(P=(o?j.children.length:-1)+d,R=y.concat(j);P>-1&&P<j.children.length;){const V=j.children[P];if(k=f(V,P,R)(),k[0]===Au)return k;P=typeof k[1]=="number"?k[1]:P+d}}return C}}}function q7(e){return Array.isArray(e)?e:typeof e=="number"?[U7,e]:e==null?l3:[e]}function f1(e,r,i,o){let s,a,d;typeof r=="function"&&typeof i!="function"?(a=void 0,d=r,s=i):(a=r,d=i,s=o),o3(e,a,f,s);function f(p,m){const y=m[m.length-1],x=y?y.children.indexOf(p):void 0;return d(p,x,y)}}const Fu={}.hasOwnProperty,Z7={};function Q7(e,r){const i=r||Z7,o=new Map,s=new Map,a=new Map,d={...N7,...i.handlers},f={all:m,applyData:K7,definitionById:o,footnoteById:s,footnoteCounts:a,footnoteOrder:[],handlers:d,one:p,options:i,patch:G7,wrap:X7};return f1(e,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const x=y.type==="definition"?o:s,v=String(y.identifier).toUpperCase();x.has(v)||x.set(v,y)}}),f;function p(y,x){const v=y.type,C=f.handlers[v];if(Fu.call(f.handlers,v)&&C)return C(f,y,x);if(f.options.passThrough&&f.options.passThrough.includes(v)){if("children"in y){const{children:P,...R}=y,j=is(R);return j.children=f.all(y),j}return is(y)}return(f.options.unknownHandler||Y7)(f,y,x)}function m(y){const x=[];if("children"in y){const v=y.children;let C=-1;for(;++C<v.length;){const k=f.one(v[C],y);if(k){if(C&&v[C-1].type==="break"&&(!Array.isArray(k)&&k.type==="text"&&(k.value=V2(k.value)),!Array.isArray(k)&&k.type==="element")){const P=k.children[0];P&&P.type==="text"&&(P.value=V2(P.value))}Array.isArray(k)?x.push(...k):x.push(k)}}}return x}}function G7(e,r){e.position&&(r.position=R6(e))}function K7(e,r){let i=r;if(e&&e.data){const o=e.data.hName,s=e.data.hChildren,a=e.data.hProperties;if(typeof o=="string")if(i.type==="element")i.tagName=o;else{const d="children"in i?i.children:[i];i={type:"element",tagName:o,properties:{},children:d}}i.type==="element"&&a&&Object.assign(i.properties,is(a)),"children"in i&&i.children&&s!==null&&s!==void 0&&(i.children=s)}return i}function Y7(e,r){const i=r.data||{},o="value"in r&&!(Fu.call(i,"hProperties")||Fu.call(i,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:e.all(r)};return e.patch(r,o),e.applyData(r,o)}function X7(e,r){const i=[];let o=-1;for(r&&i.push({type:"text",value:`
|
|
56
56
|
`});++o<e.length;)o&&i.push({type:"text",value:`
|
|
57
57
|
`}),i.push(e[o]);return r&&e.length>0&&i.push({type:"text",value:`
|
|
58
|
-
`}),i}function
|
|
59
|
-
`},s),u}function Z7(e,r){return e&&"run"in e?async function(i,o){const s=$2(i,{file:o,...r});await e.run(s,o)}:function(i,o){return $2(i,{file:o,...e||r})}}function B2(e){if(e)throw e}var a1,H2;function Q7(){if(H2)return a1;H2=1;var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(m){return typeof Array.isArray=="function"?Array.isArray(m):r.call(m)==="[object Array]"},u=function(m){if(!m||r.call(m)!=="[object Object]")return!1;var y=e.call(m,"constructor"),x=m.constructor&&m.constructor.prototype&&e.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!y&&!x)return!1;var v;for(v in m);return typeof v>"u"||e.call(m,v)},d=function(m,y){i&&y.name==="__proto__"?i(m,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):m[y.name]=y.newValue},f=function(m,y){if(y==="__proto__")if(e.call(m,y)){if(o)return o(m,y).value}else return;return m[y]};return a1=function p(){var m,y,x,v,C,k,P=arguments[0],R=1,j=arguments.length,V=!1;for(typeof P=="boolean"&&(V=P,P=arguments[1]||{},R=2),(P==null||typeof P!="object"&&typeof P!="function")&&(P={});R<j;++R)if(m=arguments[R],m!=null)for(y in m)x=f(P,y),v=f(m,y),P!==v&&(V&&v&&(u(v)||(C=s(v)))?(C?(C=!1,k=x&&s(x)?x:[]):k=x&&u(x)?x:{},d(P,{name:y,newValue:p(V,k,v)})):typeof v<"u"&&d(P,{name:y,newValue:v}));return P},a1}var G7=Q7();const u1=q1(G7);function F1(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function K7(){const e=[],r={run:i,use:o};return r;function i(...s){let u=-1;const d=s.pop();if(typeof d!="function")throw new TypeError("Expected function as last argument, not "+d);f(null,...s);function f(p,...m){const y=e[++u];let x=-1;if(p){d(p);return}for(;++x<s.length;)(m[x]===null||m[x]===void 0)&&(m[x]=s[x]);s=m,y?Y7(y,f)(...m):d(null,...m)}}function o(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),r}}function Y7(e,r){let i;return o;function o(...d){const f=e.length>d.length;let p;f&&d.push(s);try{p=e.apply(this,d)}catch(m){const y=m;if(f&&i)throw y;return s(y)}f||(p&&p.then&&typeof p.then=="function"?p.then(u,s):p instanceof Error?s(p):u(p))}function s(d,...f){i||(i=!0,r(d,...f))}function u(d){s(null,d)}}const Dn={basename:X7,dirname:J7,extname:e9,join:t9,sep:"/"};function X7(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');Ll(e);let i=0,o=-1,s=e.length,u;if(r===void 0||r.length===0||r.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(u){i=s+1;break}}else o<0&&(u=!0,o=s+1);return o<0?"":e.slice(i,o)}if(r===e)return"";let d=-1,f=r.length-1;for(;s--;)if(e.codePointAt(s)===47){if(u){i=s+1;break}}else d<0&&(u=!0,d=s+1),f>-1&&(e.codePointAt(s)===r.codePointAt(f--)?f<0&&(o=s):(f=-1,o=d));return i===o?o=d:o<0&&(o=e.length),e.slice(i,o)}function J7(e){if(Ll(e),e.length===0)return".";let r=-1,i=e.length,o;for(;--i;)if(e.codePointAt(i)===47){if(o){r=i;break}}else o||(o=!0);return r<0?e.codePointAt(0)===47?"/":".":r===1&&e.codePointAt(0)===47?"//":e.slice(0,r)}function e9(e){Ll(e);let r=e.length,i=-1,o=0,s=-1,u=0,d;for(;r--;){const f=e.codePointAt(r);if(f===47){if(d){o=r+1;break}continue}i<0&&(d=!0,i=r+1),f===46?s<0?s=r:u!==1&&(u=1):s>-1&&(u=-1)}return s<0||i<0||u===0||u===1&&s===i-1&&s===o+1?"":e.slice(s,i)}function t9(...e){let r=-1,i;for(;++r<e.length;)Ll(e[r]),e[r]&&(i=i===void 0?e[r]:i+"/"+e[r]);return i===void 0?".":n9(i)}function n9(e){Ll(e);const r=e.codePointAt(0)===47;let i=r9(e,!r);return i.length===0&&!r&&(i="."),i.length>0&&e.codePointAt(e.length-1)===47&&(i+="/"),r?"/"+i:i}function r9(e,r){let i="",o=0,s=-1,u=0,d=-1,f,p;for(;++d<=e.length;){if(d<e.length)f=e.codePointAt(d);else{if(f===47)break;f=47}if(f===47){if(!(s===d-1||u===1))if(s!==d-1&&u===2){if(i.length<2||o!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(p=i.lastIndexOf("/"),p!==i.length-1){p<0?(i="",o=0):(i=i.slice(0,p),o=i.length-1-i.lastIndexOf("/")),s=d,u=0;continue}}else if(i.length>0){i="",o=0,s=d,u=0;continue}}r&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(s+1,d):i=e.slice(s+1,d),o=d-s-1;s=d,u=0}else f===46&&u>-1?u++:u=-1}return i}function Ll(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const i9={cwd:l9};function l9(){return"/"}function O1(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function o9(e){if(typeof e=="string")e=new URL(e);else if(!O1(e)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(e.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return s9(e)}function s9(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const r=e.pathname;let i=-1;for(;++i<r.length;)if(r.codePointAt(i)===37&&r.codePointAt(i+1)===50){const o=r.codePointAt(i+2);if(o===70||o===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(r)}const c1=["history","path","basename","stem","extname","dirname"];class n3{constructor(r){let i;r?O1(r)?i={path:r}:typeof r=="string"||a9(r)?i={value:r}:i=r:i={},this.cwd="cwd"in i?"":i9.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<c1.length;){const u=c1[o];u in i&&i[u]!==void 0&&i[u]!==null&&(this[u]=u==="history"?[...i[u]]:i[u])}let s;for(s in i)c1.includes(s)||(this[s]=i[s])}get basename(){return typeof this.path=="string"?Dn.basename(this.path):void 0}set basename(r){f1(r,"basename"),d1(r,"basename"),this.path=Dn.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?Dn.dirname(this.path):void 0}set dirname(r){V2(this.basename,"dirname"),this.path=Dn.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?Dn.extname(this.path):void 0}set extname(r){if(d1(r,"extname"),V2(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Dn.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){O1(r)&&(r=o9(r)),f1(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?Dn.basename(this.path,this.extname):void 0}set stem(r){f1(r,"stem"),d1(r,"stem"),this.path=Dn.join(this.dirname||"",r+(this.extname||""))}fail(r,i,o){const s=this.message(r,i,o);throw s.fatal=!0,s}info(r,i,o){const s=this.message(r,i,o);return s.fatal=void 0,s}message(r,i,o){const s=new Dt(r,i,o);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function d1(e,r){if(e&&e.includes(Dn.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Dn.sep+"`")}function f1(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function V2(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}function a9(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const u9=(function(e){const o=this.constructor.prototype,s=o[e],u=function(){return s.apply(u,arguments)};return Object.setPrototypeOf(u,o),u}),c9={}.hasOwnProperty;class fu extends u9{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=K7()}copy(){const r=new fu;let i=-1;for(;++i<this.attachers.length;){const o=this.attachers[i];r.use(...o)}return r.data(u1(!0,{},this.namespace)),r}data(r,i){return typeof r=="string"?arguments.length===2?(m1("data",this.frozen),this.namespace[r]=i,this):c9.call(this.namespace,r)&&this.namespace[r]||void 0:r?(m1("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const s=i.call(r,...o);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const i=Ho(r),o=this.parser||this.Parser;return p1("parse",o),o(String(i),i)}process(r,i){const o=this;return this.freeze(),p1("process",this.parser||this.Parser),h1("process",this.compiler||this.Compiler),i?s(void 0,i):new Promise(s);function s(u,d){const f=Ho(r),p=o.parse(f);o.run(p,f,function(y,x,v){if(y||!x||!v)return m(y);const C=x,k=o.stringify(C,v);p9(k)?v.value=k:v.result=k,m(y,v)});function m(y,x){y||!x?d(y):u?u(x):i(void 0,x)}}}processSync(r){let i=!1,o;return this.freeze(),p1("processSync",this.parser||this.Parser),h1("processSync",this.compiler||this.Compiler),this.process(r,s),W2("processSync","process",i),o;function s(u,d){i=!0,B2(u),o=d}}run(r,i,o){U2(r),this.freeze();const s=this.transformers;return!o&&typeof i=="function"&&(o=i,i=void 0),o?u(void 0,o):new Promise(u);function u(d,f){const p=Ho(i);s.run(r,p,m);function m(y,x,v){const C=x||r;y?f(y):d?d(C):o(void 0,C,v)}}}runSync(r,i){let o=!1,s;return this.run(r,i,u),W2("runSync","run",o),s;function u(d,f){B2(d),s=f,o=!0}}stringify(r,i){this.freeze();const o=Ho(i),s=this.compiler||this.Compiler;return h1("stringify",s),U2(r),s(r,o)}use(r,...i){const o=this.attachers,s=this.namespace;if(m1("use",this.frozen),r!=null)if(typeof r=="function")p(r,i);else if(typeof r=="object")Array.isArray(r)?f(r):d(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function u(m){if(typeof m=="function")p(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[y,...x]=m;p(y,x)}else d(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function d(m){if(!("plugins"in m)&&!("settings"in m))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(m.plugins),m.settings&&(s.settings=u1(!0,s.settings,m.settings))}function f(m){let y=-1;if(m!=null)if(Array.isArray(m))for(;++y<m.length;){const x=m[y];u(x)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,y){let x=-1,v=-1;for(;++x<o.length;)if(o[x][0]===m){v=x;break}if(v===-1)o.push([m,...y]);else if(y.length>0){let[C,...k]=y;const P=o[v][1];F1(P)&&F1(C)&&(C=u1(!0,P,C)),o[v]=[m,C,...k]}}}}const d9=new fu().freeze();function p1(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function h1(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function m1(e,r){if(r)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function U2(e){if(!F1(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function W2(e,r,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function Ho(e){return f9(e)?e:new n3(e)}function f9(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function p9(e){return typeof e=="string"||h9(e)}function h9(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const m9="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",q2=[],Z2={allowDangerousHtml:!0},g9=/^(https?|ircs?|mailto|xmpp)$/i,x9=[{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 y9(e){const r=v9(e),i=C9(e);return w9(r.runSync(r.parse(i),i),e)}function v9(e){const r=e.rehypePlugins||q2,i=e.remarkPlugins||q2,o=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Z2}:Z2;return d9().use(Y8).use(i).use(Z7,o).use(r)}function C9(e){const r=e.children||"",i=new n3;return typeof r=="string"&&(i.value=r),i}function w9(e,r){const i=r.allowedElements,o=r.allowElement,s=r.components,u=r.disallowedElements,d=r.skipHtml,f=r.unwrapDisallowed,p=r.urlTransform||k9;for(const y of x9)Object.hasOwn(r,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+m9+y.id,void 0);return du(e,m),zp(e,{Fragment:c.Fragment,components:s,ignoreInvalidStyle:!0,jsx:c.jsx,jsxs:c.jsxs,passKeys:!0,passNode:!0});function m(y,x,v){if(y.type==="raw"&&v&&typeof x=="number")return d?v.children.splice(x,1):v.children[x]={type:"text",value:y.value},x;if(y.type==="element"){let C;for(C in l1)if(Object.hasOwn(l1,C)&&Object.hasOwn(y.properties,C)){const k=y.properties[C],P=l1[C];(P===null||P.includes(y.tagName))&&(y.properties[C]=p(String(k||""),C,y))}}if(y.type==="element"){let C=i?!i.includes(y.tagName):u?u.includes(y.tagName):!1;if(!C&&o&&typeof x=="number"&&(C=!o(y,x,v)),C&&v&&typeof x=="number")return f&&y.children?v.children.splice(x,1,...y.children):v.children.splice(x,1),x}}}function k9(e){const r=e.indexOf(":"),i=e.indexOf("?"),o=e.indexOf("#"),s=e.indexOf("/");return r===-1||s!==-1&&r>s||i!==-1&&r>i||o!==-1&&r>o||g9.test(e.slice(0,r))?e:""}function Q2(e,r){const i=String(e);if(typeof r!="string")throw new TypeError("Expected character");let o=0,s=i.indexOf(r);for(;s!==-1;)o++,s=i.indexOf(r,s+r.length);return o}function _9(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function S9(e,r,i){const s=ds((i||{}).ignore||[]),u=b9(r);let d=-1;for(;++d<u.length;)t3(e,"text",f);function f(m,y){let x=-1,v;for(;++x<y.length;){const C=y[x],k=v?v.children:void 0;if(s(C,k?k.indexOf(C):void 0,v))return;v=C}if(v)return p(m,y)}function p(m,y){const x=y[y.length-1],v=u[d][0],C=u[d][1];let k=0;const R=x.children.indexOf(m);let j=!1,V=[];v.lastIndex=0;let b=v.exec(m.value);for(;b;){const $=b.index,B={index:b.index,input:b.input,stack:[...y,m]};let T=C(...b,B);if(typeof T=="string"&&(T=T.length>0?{type:"text",value:T}:void 0),T===!1?v.lastIndex=$+1:(k!==$&&V.push({type:"text",value:m.value.slice(k,$)}),Array.isArray(T)?V.push(...T):T&&V.push(T),k=$+b[0].length,j=!0),!v.global)break;b=v.exec(m.value)}return j?(k<m.value.length&&V.push({type:"text",value:m.value.slice(k)}),x.children.splice(R,1,...V)):V=[m],R+V.length}}function b9(e){const r=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const i=!e[0]||Array.isArray(e[0])?e:[e];let o=-1;for(;++o<i.length;){const s=i[o];r.push([E9(s[0]),j9(s[1])])}return r}function E9(e){return typeof e=="string"?new RegExp(_9(e),"g"):e}function j9(e){return typeof e=="function"?e:function(){return e}}const g1="phrasing",x1=["autolink","link","image","label"];function L9(){return{transforms:[D9],enter:{literalAutolink:I9,literalAutolinkEmail:y1,literalAutolinkHttp:y1,literalAutolinkWww:y1},exit:{literalAutolink:z9,literalAutolinkEmail:T9,literalAutolinkHttp:P9,literalAutolinkWww:M9}}}function N9(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:g1,notInConstruct:x1},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:g1,notInConstruct:x1},{character:":",before:"[ps]",after:"\\/",inConstruct:g1,notInConstruct:x1}]}}function I9(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function y1(e){this.config.enter.autolinkProtocol.call(this,e)}function P9(e){this.config.exit.autolinkProtocol.call(this,e)}function M9(e){this.config.exit.data.call(this,e);const r=this.stack[this.stack.length-1];r.type,r.url="http://"+this.sliceSerialize(e)}function T9(e){this.config.exit.autolinkEmail.call(this,e)}function z9(e){this.exit(e)}function D9(e){S9(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,R9],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),A9]],{ignore:["link","linkReference"]})}function R9(e,r,i,o,s){let u="";if(!r3(s)||(/^w/i.test(r)&&(i=r+i,r="",u="http://"),!F9(i)))return!1;const d=O9(i+o);if(!d[0])return!1;const f={type:"link",title:null,url:u+r+d[0],children:[{type:"text",value:r+d[0]}]};return d[1]?[f,{type:"text",value:d[1]}]:f}function A9(e,r,i,o){return!r3(o,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+i,children:[{type:"text",value:r+"@"+i}]}}function F9(e){const r=e.split(".");return!(r.length<2||r[r.length-1]&&(/_/.test(r[r.length-1])||!/[a-zA-Z\d]/.test(r[r.length-1]))||r[r.length-2]&&(/_/.test(r[r.length-2])||!/[a-zA-Z\d]/.test(r[r.length-2])))}function O9(e){const r=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!r)return[e,void 0];e=e.slice(0,r.index);let i=r[0],o=i.indexOf(")");const s=Q2(e,"(");let u=Q2(e,")");for(;o!==-1&&s>u;)e+=i.slice(0,o+1),i=i.slice(o+1),o=i.indexOf(")"),u++;return[e,i]}function r3(e,r){const i=e.input.charCodeAt(e.index-1);return(e.index===0||Wr(i)||as(i))&&(!r||i!==47)}i3.peek=Q9;function $9(){this.buffer()}function B9(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function H9(){this.buffer()}function V9(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function U9(e){const r=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=En(this.sliceSerialize(e)).toLowerCase(),i.label=r}function W9(e){this.exit(e)}function q9(e){const r=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=En(this.sliceSerialize(e)).toLowerCase(),i.label=r}function Z9(e){this.exit(e)}function Q9(){return"["}function i3(e,r,i,o){const s=i.createTracker(o);let u=s.move("[^");const d=i.enter("footnoteReference"),f=i.enter("reference");return u+=s.move(i.safe(i.associationId(e),{after:"]",before:u})),f(),d(),u+=s.move("]"),u}function G9(){return{enter:{gfmFootnoteCallString:$9,gfmFootnoteCall:B9,gfmFootnoteDefinitionLabelString:H9,gfmFootnoteDefinition:V9},exit:{gfmFootnoteCallString:U9,gfmFootnoteCall:W9,gfmFootnoteDefinitionLabelString:q9,gfmFootnoteDefinition:Z9}}}function K9(e){let r=!1;return e&&e.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:i,footnoteReference:i3},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(o,s,u,d){const f=u.createTracker(d);let p=f.move("[^");const m=u.enter("footnoteDefinition"),y=u.enter("label");return p+=f.move(u.safe(u.associationId(o),{before:p,after:"]"})),y(),p+=f.move("]:"),o.children&&o.children.length>0&&(f.shift(4),p+=f.move((r?`
|
|
60
|
-
`:" ")+
|
|
61
|
-
`)}function
|
|
62
|
-
`&&
|
|
63
|
-
`}function
|
|
58
|
+
`}),i}function V2(e){let r=0,i=e.charCodeAt(r);for(;i===9||i===32;)r++,i=e.charCodeAt(r);return e.slice(r)}function U2(e,r){const i=Q7(e,r),o=i.one(e,void 0),s=F7(i),a=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return s&&a.children.push({type:"text",value:`
|
|
59
|
+
`},s),a}function J7(e,r){return e&&"run"in e?async function(i,o){const s=U2(i,{file:o,...r});await e.run(s,o)}:function(i,o){return U2(i,{file:o,...e||r})}}function W2(e){if(e)throw e}var uu,q2;function e9(){if(q2)return uu;q2=1;var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(m){return typeof Array.isArray=="function"?Array.isArray(m):r.call(m)==="[object Array]"},a=function(m){if(!m||r.call(m)!=="[object Object]")return!1;var y=e.call(m,"constructor"),x=m.constructor&&m.constructor.prototype&&e.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!y&&!x)return!1;var v;for(v in m);return typeof v>"u"||e.call(m,v)},d=function(m,y){i&&y.name==="__proto__"?i(m,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):m[y.name]=y.newValue},f=function(m,y){if(y==="__proto__")if(e.call(m,y)){if(o)return o(m,y).value}else return;return m[y]};return uu=function p(){var m,y,x,v,C,k,P=arguments[0],R=1,j=arguments.length,V=!1;for(typeof P=="boolean"&&(V=P,P=arguments[1]||{},R=2),(P==null||typeof P!="object"&&typeof P!="function")&&(P={});R<j;++R)if(m=arguments[R],m!=null)for(y in m)x=f(P,y),v=f(m,y),P!==v&&(V&&v&&(a(v)||(C=s(v)))?(C?(C=!1,k=x&&s(x)?x:[]):k=x&&a(x)?x:{},d(P,{name:y,newValue:p(V,k,v)})):typeof v<"u"&&d(P,{name:y,newValue:v}));return P},uu}var t9=e9();const cu=Zu(t9);function Ou(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function n9(){const e=[],r={run:i,use:o};return r;function i(...s){let a=-1;const d=s.pop();if(typeof d!="function")throw new TypeError("Expected function as last argument, not "+d);f(null,...s);function f(p,...m){const y=e[++a];let x=-1;if(p){d(p);return}for(;++x<s.length;)(m[x]===null||m[x]===void 0)&&(m[x]=s[x]);s=m,y?r9(y,f)(...m):d(null,...m)}}function o(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),r}}function r9(e,r){let i;return o;function o(...d){const f=e.length>d.length;let p;f&&d.push(s);try{p=e.apply(this,d)}catch(m){const y=m;if(f&&i)throw y;return s(y)}f||(p&&p.then&&typeof p.then=="function"?p.then(a,s):p instanceof Error?s(p):a(p))}function s(d,...f){i||(i=!0,r(d,...f))}function a(d){s(null,d)}}const Dn={basename:i9,dirname:l9,extname:o9,join:s9,sep:"/"};function i9(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');Nl(e);let i=0,o=-1,s=e.length,a;if(r===void 0||r.length===0||r.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(a){i=s+1;break}}else o<0&&(a=!0,o=s+1);return o<0?"":e.slice(i,o)}if(r===e)return"";let d=-1,f=r.length-1;for(;s--;)if(e.codePointAt(s)===47){if(a){i=s+1;break}}else d<0&&(a=!0,d=s+1),f>-1&&(e.codePointAt(s)===r.codePointAt(f--)?f<0&&(o=s):(f=-1,o=d));return i===o?o=d:o<0&&(o=e.length),e.slice(i,o)}function l9(e){if(Nl(e),e.length===0)return".";let r=-1,i=e.length,o;for(;--i;)if(e.codePointAt(i)===47){if(o){r=i;break}}else o||(o=!0);return r<0?e.codePointAt(0)===47?"/":".":r===1&&e.codePointAt(0)===47?"//":e.slice(0,r)}function o9(e){Nl(e);let r=e.length,i=-1,o=0,s=-1,a=0,d;for(;r--;){const f=e.codePointAt(r);if(f===47){if(d){o=r+1;break}continue}i<0&&(d=!0,i=r+1),f===46?s<0?s=r:a!==1&&(a=1):s>-1&&(a=-1)}return s<0||i<0||a===0||a===1&&s===i-1&&s===o+1?"":e.slice(s,i)}function s9(...e){let r=-1,i;for(;++r<e.length;)Nl(e[r]),e[r]&&(i=i===void 0?e[r]:i+"/"+e[r]);return i===void 0?".":a9(i)}function a9(e){Nl(e);const r=e.codePointAt(0)===47;let i=u9(e,!r);return i.length===0&&!r&&(i="."),i.length>0&&e.codePointAt(e.length-1)===47&&(i+="/"),r?"/"+i:i}function u9(e,r){let i="",o=0,s=-1,a=0,d=-1,f,p;for(;++d<=e.length;){if(d<e.length)f=e.codePointAt(d);else{if(f===47)break;f=47}if(f===47){if(!(s===d-1||a===1))if(s!==d-1&&a===2){if(i.length<2||o!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(p=i.lastIndexOf("/"),p!==i.length-1){p<0?(i="",o=0):(i=i.slice(0,p),o=i.length-1-i.lastIndexOf("/")),s=d,a=0;continue}}else if(i.length>0){i="",o=0,s=d,a=0;continue}}r&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(s+1,d):i=e.slice(s+1,d),o=d-s-1;s=d,a=0}else f===46&&a>-1?a++:a=-1}return i}function Nl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const c9={cwd:d9};function d9(){return"/"}function $u(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function f9(e){if(typeof e=="string")e=new URL(e);else if(!$u(e)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(e.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return p9(e)}function p9(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const r=e.pathname;let i=-1;for(;++i<r.length;)if(r.codePointAt(i)===37&&r.codePointAt(i+1)===50){const o=r.codePointAt(i+2);if(o===70||o===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(r)}const du=["history","path","basename","stem","extname","dirname"];class s3{constructor(r){let i;r?$u(r)?i={path:r}:typeof r=="string"||h9(r)?i={value:r}:i=r:i={},this.cwd="cwd"in i?"":c9.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<du.length;){const a=du[o];a in i&&i[a]!==void 0&&i[a]!==null&&(this[a]=a==="history"?[...i[a]]:i[a])}let s;for(s in i)du.includes(s)||(this[s]=i[s])}get basename(){return typeof this.path=="string"?Dn.basename(this.path):void 0}set basename(r){pu(r,"basename"),fu(r,"basename"),this.path=Dn.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?Dn.dirname(this.path):void 0}set dirname(r){Z2(this.basename,"dirname"),this.path=Dn.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?Dn.extname(this.path):void 0}set extname(r){if(fu(r,"extname"),Z2(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Dn.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){$u(r)&&(r=f9(r)),pu(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?Dn.basename(this.path,this.extname):void 0}set stem(r){pu(r,"stem"),fu(r,"stem"),this.path=Dn.join(this.dirname||"",r+(this.extname||""))}fail(r,i,o){const s=this.message(r,i,o);throw s.fatal=!0,s}info(r,i,o){const s=this.message(r,i,o);return s.fatal=void 0,s}message(r,i,o){const s=new Rt(r,i,o);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function fu(e,r){if(e&&e.includes(Dn.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Dn.sep+"`")}function pu(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function Z2(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}function h9(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const m9=(function(e){const o=this.constructor.prototype,s=o[e],a=function(){return s.apply(a,arguments)};return Object.setPrototypeOf(a,o),a}),g9={}.hasOwnProperty;class p1 extends m9{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=n9()}copy(){const r=new p1;let i=-1;for(;++i<this.attachers.length;){const o=this.attachers[i];r.use(...o)}return r.data(cu(!0,{},this.namespace)),r}data(r,i){return typeof r=="string"?arguments.length===2?(gu("data",this.frozen),this.namespace[r]=i,this):g9.call(this.namespace,r)&&this.namespace[r]||void 0:r?(gu("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const s=i.call(r,...o);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const i=Vo(r),o=this.parser||this.Parser;return hu("parse",o),o(String(i),i)}process(r,i){const o=this;return this.freeze(),hu("process",this.parser||this.Parser),mu("process",this.compiler||this.Compiler),i?s(void 0,i):new Promise(s);function s(a,d){const f=Vo(r),p=o.parse(f);o.run(p,f,function(y,x,v){if(y||!x||!v)return m(y);const C=x,k=o.stringify(C,v);v9(k)?v.value=k:v.result=k,m(y,v)});function m(y,x){y||!x?d(y):a?a(x):i(void 0,x)}}}processSync(r){let i=!1,o;return this.freeze(),hu("processSync",this.parser||this.Parser),mu("processSync",this.compiler||this.Compiler),this.process(r,s),G2("processSync","process",i),o;function s(a,d){i=!0,W2(a),o=d}}run(r,i,o){Q2(r),this.freeze();const s=this.transformers;return!o&&typeof i=="function"&&(o=i,i=void 0),o?a(void 0,o):new Promise(a);function a(d,f){const p=Vo(i);s.run(r,p,m);function m(y,x,v){const C=x||r;y?f(y):d?d(C):o(void 0,C,v)}}}runSync(r,i){let o=!1,s;return this.run(r,i,a),G2("runSync","run",o),s;function a(d,f){W2(d),s=f,o=!0}}stringify(r,i){this.freeze();const o=Vo(i),s=this.compiler||this.Compiler;return mu("stringify",s),Q2(r),s(r,o)}use(r,...i){const o=this.attachers,s=this.namespace;if(gu("use",this.frozen),r!=null)if(typeof r=="function")p(r,i);else if(typeof r=="object")Array.isArray(r)?f(r):d(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function a(m){if(typeof m=="function")p(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[y,...x]=m;p(y,x)}else d(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function d(m){if(!("plugins"in m)&&!("settings"in m))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(m.plugins),m.settings&&(s.settings=cu(!0,s.settings,m.settings))}function f(m){let y=-1;if(m!=null)if(Array.isArray(m))for(;++y<m.length;){const x=m[y];a(x)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,y){let x=-1,v=-1;for(;++x<o.length;)if(o[x][0]===m){v=x;break}if(v===-1)o.push([m,...y]);else if(y.length>0){let[C,...k]=y;const P=o[v][1];Ou(P)&&Ou(C)&&(C=cu(!0,P,C)),o[v]=[m,C,...k]}}}}const x9=new p1().freeze();function hu(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function mu(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function gu(e,r){if(r)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Q2(e){if(!Ou(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function G2(e,r,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function Vo(e){return y9(e)?e:new s3(e)}function y9(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function v9(e){return typeof e=="string"||C9(e)}function C9(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const w9="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",K2=[],Y2={allowDangerousHtml:!0},k9=/^(https?|ircs?|mailto|xmpp)$/i,_9=[{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 b9(e){const r=S9(e),i=E9(e);return j9(r.runSync(r.parse(i),i),e)}function S9(e){const r=e.rehypePlugins||K2,i=e.remarkPlugins||K2,o=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Y2}:Y2;return x9().use(r7).use(i).use(J7,o).use(r)}function E9(e){const r=e.children||"",i=new s3;return typeof r=="string"&&(i.value=r),i}function j9(e,r){const i=r.allowedElements,o=r.allowElement,s=r.components,a=r.disallowedElements,d=r.skipHtml,f=r.unwrapDisallowed,p=r.urlTransform||L9;for(const y of _9)Object.hasOwn(r,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+w9+y.id,void 0);return f1(e,m),$6(e,{Fragment:c.Fragment,components:s,ignoreInvalidStyle:!0,jsx:c.jsx,jsxs:c.jsxs,passKeys:!0,passNode:!0});function m(y,x,v){if(y.type==="raw"&&v&&typeof x=="number")return d?v.children.splice(x,1):v.children[x]={type:"text",value:y.value},x;if(y.type==="element"){let C;for(C in ou)if(Object.hasOwn(ou,C)&&Object.hasOwn(y.properties,C)){const k=y.properties[C],P=ou[C];(P===null||P.includes(y.tagName))&&(y.properties[C]=p(String(k||""),C,y))}}if(y.type==="element"){let C=i?!i.includes(y.tagName):a?a.includes(y.tagName):!1;if(!C&&o&&typeof x=="number"&&(C=!o(y,x,v)),C&&v&&typeof x=="number")return f&&y.children?v.children.splice(x,1,...y.children):v.children.splice(x,1),x}}}function L9(e){const r=e.indexOf(":"),i=e.indexOf("?"),o=e.indexOf("#"),s=e.indexOf("/");return r===-1||s!==-1&&r>s||i!==-1&&r>i||o!==-1&&r>o||k9.test(e.slice(0,r))?e:""}function X2(e,r){const i=String(e);if(typeof r!="string")throw new TypeError("Expected character");let o=0,s=i.indexOf(r);for(;s!==-1;)o++,s=i.indexOf(r,s+r.length);return o}function N9(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function I9(e,r,i){const s=fs((i||{}).ignore||[]),a=P9(r);let d=-1;for(;++d<a.length;)o3(e,"text",f);function f(m,y){let x=-1,v;for(;++x<y.length;){const C=y[x],k=v?v.children:void 0;if(s(C,k?k.indexOf(C):void 0,v))return;v=C}if(v)return p(m,y)}function p(m,y){const x=y[y.length-1],v=a[d][0],C=a[d][1];let k=0;const R=x.children.indexOf(m);let j=!1,V=[];v.lastIndex=0;let S=v.exec(m.value);for(;S;){const F=S.index,B={index:S.index,input:S.input,stack:[...y,m]};let T=C(...S,B);if(typeof T=="string"&&(T=T.length>0?{type:"text",value:T}:void 0),T===!1?v.lastIndex=F+1:(k!==F&&V.push({type:"text",value:m.value.slice(k,F)}),Array.isArray(T)?V.push(...T):T&&V.push(T),k=F+S[0].length,j=!0),!v.global)break;S=v.exec(m.value)}return j?(k<m.value.length&&V.push({type:"text",value:m.value.slice(k)}),x.children.splice(R,1,...V)):V=[m],R+V.length}}function P9(e){const r=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const i=!e[0]||Array.isArray(e[0])?e:[e];let o=-1;for(;++o<i.length;){const s=i[o];r.push([M9(s[0]),T9(s[1])])}return r}function M9(e){return typeof e=="string"?new RegExp(N9(e),"g"):e}function T9(e){return typeof e=="function"?e:function(){return e}}const xu="phrasing",yu=["autolink","link","image","label"];function z9(){return{transforms:[B9],enter:{literalAutolink:D9,literalAutolinkEmail:vu,literalAutolinkHttp:vu,literalAutolinkWww:vu},exit:{literalAutolink:$9,literalAutolinkEmail:O9,literalAutolinkHttp:A9,literalAutolinkWww:F9}}}function R9(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:xu,notInConstruct:yu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:xu,notInConstruct:yu},{character:":",before:"[ps]",after:"\\/",inConstruct:xu,notInConstruct:yu}]}}function D9(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function vu(e){this.config.enter.autolinkProtocol.call(this,e)}function A9(e){this.config.exit.autolinkProtocol.call(this,e)}function F9(e){this.config.exit.data.call(this,e);const r=this.stack[this.stack.length-1];r.type,r.url="http://"+this.sliceSerialize(e)}function O9(e){this.config.exit.autolinkEmail.call(this,e)}function $9(e){this.exit(e)}function B9(e){I9(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,H9],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),V9]],{ignore:["link","linkReference"]})}function H9(e,r,i,o,s){let a="";if(!a3(s)||(/^w/i.test(r)&&(i=r+i,r="",a="http://"),!U9(i)))return!1;const d=W9(i+o);if(!d[0])return!1;const f={type:"link",title:null,url:a+r+d[0],children:[{type:"text",value:r+d[0]}]};return d[1]?[f,{type:"text",value:d[1]}]:f}function V9(e,r,i,o){return!a3(o,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+i,children:[{type:"text",value:r+"@"+i}]}}function U9(e){const r=e.split(".");return!(r.length<2||r[r.length-1]&&(/_/.test(r[r.length-1])||!/[a-zA-Z\d]/.test(r[r.length-1]))||r[r.length-2]&&(/_/.test(r[r.length-2])||!/[a-zA-Z\d]/.test(r[r.length-2])))}function W9(e){const r=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!r)return[e,void 0];e=e.slice(0,r.index);let i=r[0],o=i.indexOf(")");const s=X2(e,"(");let a=X2(e,")");for(;o!==-1&&s>a;)e+=i.slice(0,o+1),i=i.slice(o+1),o=i.indexOf(")"),a++;return[e,i]}function a3(e,r){const i=e.input.charCodeAt(e.index-1);return(e.index===0||qr(i)||us(i))&&(!r||i!==47)}u3.peek=em;function q9(){this.buffer()}function Z9(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Q9(){this.buffer()}function G9(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function K9(e){const r=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=En(this.sliceSerialize(e)).toLowerCase(),i.label=r}function Y9(e){this.exit(e)}function X9(e){const r=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=En(this.sliceSerialize(e)).toLowerCase(),i.label=r}function J9(e){this.exit(e)}function em(){return"["}function u3(e,r,i,o){const s=i.createTracker(o);let a=s.move("[^");const d=i.enter("footnoteReference"),f=i.enter("reference");return a+=s.move(i.safe(i.associationId(e),{after:"]",before:a})),f(),d(),a+=s.move("]"),a}function tm(){return{enter:{gfmFootnoteCallString:q9,gfmFootnoteCall:Z9,gfmFootnoteDefinitionLabelString:Q9,gfmFootnoteDefinition:G9},exit:{gfmFootnoteCallString:K9,gfmFootnoteCall:Y9,gfmFootnoteDefinitionLabelString:X9,gfmFootnoteDefinition:J9}}}function nm(e){let r=!1;return e&&e.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:i,footnoteReference:u3},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(o,s,a,d){const f=a.createTracker(d);let p=f.move("[^");const m=a.enter("footnoteDefinition"),y=a.enter("label");return p+=f.move(a.safe(a.associationId(o),{before:p,after:"]"})),y(),p+=f.move("]:"),o.children&&o.children.length>0&&(f.shift(4),p+=f.move((r?`
|
|
60
|
+
`:" ")+a.indentLines(a.containerFlow(o,f.current()),r?c3:rm))),m(),p}}function rm(e,r,i){return r===0?e:c3(e,r,i)}function c3(e,r,i){return(i?"":" ")+e}const im=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];d3.peek=um;function lm(){return{canContainEols:["delete"],enter:{strikethrough:sm},exit:{strikethrough:am}}}function om(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:im}],handlers:{delete:d3}}}function sm(e){this.enter({type:"delete",children:[]},e)}function am(e){this.exit(e)}function d3(e,r,i,o){const s=i.createTracker(o),a=i.enter("strikethrough");let d=s.move("~~");return d+=i.containerPhrasing(e,{...s.current(),before:d,after:"~"}),d+=s.move("~~"),a(),d}function um(){return"~"}function cm(e){return e.length}function dm(e,r){const i=r||{},o=(i.align||[]).concat(),s=i.stringLength||cm,a=[],d=[],f=[],p=[];let m=0,y=-1;for(;++y<e.length;){const P=[],R=[];let j=-1;for(e[y].length>m&&(m=e[y].length);++j<e[y].length;){const V=fm(e[y][j]);if(i.alignDelimiters!==!1){const S=s(V);R[j]=S,(p[j]===void 0||S>p[j])&&(p[j]=S)}P.push(V)}d[y]=P,f[y]=R}let x=-1;if(typeof o=="object"&&"length"in o)for(;++x<m;)a[x]=J2(o[x]);else{const P=J2(o);for(;++x<m;)a[x]=P}x=-1;const v=[],C=[];for(;++x<m;){const P=a[x];let R="",j="";P===99?(R=":",j=":"):P===108?R=":":P===114&&(j=":");let V=i.alignDelimiters===!1?1:Math.max(1,p[x]-R.length-j.length);const S=R+"-".repeat(V)+j;i.alignDelimiters!==!1&&(V=R.length+V+j.length,V>p[x]&&(p[x]=V),C[x]=V),v[x]=S}d.splice(1,0,v),f.splice(1,0,C),y=-1;const k=[];for(;++y<d.length;){const P=d[y],R=f[y];x=-1;const j=[];for(;++x<m;){const V=P[x]||"";let S="",F="";if(i.alignDelimiters!==!1){const B=p[x]-(R[x]||0),T=a[x];T===114?S=" ".repeat(B):T===99?B%2?(S=" ".repeat(B/2+.5),F=" ".repeat(B/2-.5)):(S=" ".repeat(B/2),F=S):F=" ".repeat(B)}i.delimiterStart!==!1&&!x&&j.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&V==="")&&(i.delimiterStart!==!1||x)&&j.push(" "),i.alignDelimiters!==!1&&j.push(S),j.push(V),i.alignDelimiters!==!1&&j.push(F),i.padding!==!1&&j.push(" "),(i.delimiterEnd!==!1||x!==m-1)&&j.push("|")}k.push(i.delimiterEnd===!1?j.join("").replace(/ +$/,""):j.join(""))}return k.join(`
|
|
61
|
+
`)}function fm(e){return e==null?"":String(e)}function J2(e){const r=typeof e=="string"?e.codePointAt(0):0;return r===67||r===99?99:r===76||r===108?108:r===82||r===114?114:0}function pm(e,r,i,o){const s=i.enter("blockquote"),a=i.createTracker(o);a.move("> "),a.shift(2);const d=i.indentLines(i.containerFlow(e,a.current()),hm);return s(),d}function hm(e,r,i){return">"+(i?"":" ")+e}function mm(e,r){return ed(e,r.inConstruct,!0)&&!ed(e,r.notInConstruct,!1)}function ed(e,r,i){if(typeof r=="string"&&(r=[r]),!r||r.length===0)return i;let o=-1;for(;++o<r.length;)if(e.includes(r[o]))return!0;return!1}function td(e,r,i,o){let s=-1;for(;++s<i.unsafe.length;)if(i.unsafe[s].character===`
|
|
62
|
+
`&&mm(i.stack,i.unsafe[s]))return/[ \t]/.test(o.before)?"":" ";return`\\
|
|
63
|
+
`}function gm(e,r){const i=String(e);let o=i.indexOf(r),s=o,a=0,d=0;if(typeof r!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===s?++a>d&&(d=a):a=1,s=o+r.length,o=i.indexOf(r,s);return d}function xm(e,r){return!!(r.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function ym(e){const r=e.options.fence||"`";if(r!=="`"&&r!=="~")throw new Error("Cannot serialize code with `"+r+"` for `options.fence`, expected `` ` `` or `~`");return r}function vm(e,r,i,o){const s=ym(i),a=e.value||"",d=s==="`"?"GraveAccent":"Tilde";if(xm(e,i)){const x=i.enter("codeIndented"),v=i.indentLines(a,Cm);return x(),v}const f=i.createTracker(o),p=s.repeat(Math.max(gm(a,s)+1,3)),m=i.enter("codeFenced");let y=f.move(p);if(e.lang){const x=i.enter(`codeFencedLang${d}`);y+=f.move(i.safe(e.lang,{before:y,after:" ",encode:["`"],...f.current()})),x()}if(e.lang&&e.meta){const x=i.enter(`codeFencedMeta${d}`);y+=f.move(" "),y+=f.move(i.safe(e.meta,{before:y,after:`
|
|
64
64
|
`,encode:["`"],...f.current()})),x()}return y+=f.move(`
|
|
65
|
-
`),
|
|
66
|
-
`)),y+=f.move(p),m(),y}function
|
|
67
|
-
`,...p.current()}))),f(),e.title&&(f=i.enter(`title${
|
|
65
|
+
`),a&&(y+=f.move(a+`
|
|
66
|
+
`)),y+=f.move(p),m(),y}function Cm(e,r,i){return(i?"":" ")+e}function h1(e){const r=e.options.quote||'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize title with `"+r+"` for `options.quote`, expected `\"`, or `'`");return r}function wm(e,r,i,o){const s=h1(i),a=s==='"'?"Quote":"Apostrophe",d=i.enter("definition");let f=i.enter("label");const p=i.createTracker(o);let m=p.move("[");return m+=p.move(i.safe(i.associationId(e),{before:m,after:"]",...p.current()})),m+=p.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=i.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(i.safe(e.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(f=i.enter("destinationRaw"),m+=p.move(i.safe(e.url,{before:m,after:e.title?" ":`
|
|
67
|
+
`,...p.current()}))),f(),e.title&&(f=i.enter(`title${a}`),m+=p.move(" "+s),m+=p.move(i.safe(e.title,{before:m,after:s,...p.current()})),m+=p.move(s),f()),d(),m}function km(e){const r=e.options.emphasis||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize emphasis with `"+r+"` for `options.emphasis`, expected `*`, or `_`");return r}function bl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ls(e,r,i){const o=ki(e),s=ki(r);return o===void 0?s===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:o===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}f3.peek=_m;function f3(e,r,i,o){const s=km(i),a=i.enter("emphasis"),d=i.createTracker(o),f=d.move(s);let p=d.move(i.containerPhrasing(e,{after:s,before:f,...d.current()}));const m=p.charCodeAt(0),y=ls(o.before.charCodeAt(o.before.length-1),m,s);y.inside&&(p=bl(m)+p.slice(1));const x=p.charCodeAt(p.length-1),v=ls(o.after.charCodeAt(0),x,s);v.inside&&(p=p.slice(0,-1)+bl(x));const C=d.move(s);return a(),i.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},f+p+C}function _m(e,r,i){return i.options.emphasis||"*"}function bm(e,r){let i=!1;return f1(e,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return i=!0,Au}),!!((!e.depth||e.depth<3)&&l1(e)&&(r.options.setext||i))}function Sm(e,r,i,o){const s=Math.max(Math.min(6,e.depth||1),1),a=i.createTracker(o);if(bm(e,i)){const y=i.enter("headingSetext"),x=i.enter("phrasing"),v=i.containerPhrasing(e,{...a.current(),before:`
|
|
68
68
|
`,after:`
|
|
69
69
|
`});return x(),y(),v+`
|
|
70
70
|
`+(s===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
|
|
71
|
-
`))+1))}const d="#".repeat(s),f=i.enter("headingAtx"),p=i.enter("phrasing");
|
|
72
|
-
`,...
|
|
71
|
+
`))+1))}const d="#".repeat(s),f=i.enter("headingAtx"),p=i.enter("phrasing");a.move(d+" ");let m=i.containerPhrasing(e,{before:"# ",after:`
|
|
72
|
+
`,...a.current()});return/^[\t ]/.test(m)&&(m=bl(m.charCodeAt(0))+m.slice(1)),m=m?d+" "+m:d,i.options.closeAtx&&(m+=" "+d),p(),f(),m}p3.peek=Em;function p3(e){return e.value||""}function Em(){return"<"}h3.peek=jm;function h3(e,r,i,o){const s=h1(i),a=s==='"'?"Quote":"Apostrophe",d=i.enter("image");let f=i.enter("label");const p=i.createTracker(o);let m=p.move("![");return m+=p.move(i.safe(e.alt,{before:m,after:"]",...p.current()})),m+=p.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=i.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(i.safe(e.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(f=i.enter("destinationRaw"),m+=p.move(i.safe(e.url,{before:m,after:e.title?" ":")",...p.current()}))),f(),e.title&&(f=i.enter(`title${a}`),m+=p.move(" "+s),m+=p.move(i.safe(e.title,{before:m,after:s,...p.current()})),m+=p.move(s),f()),m+=p.move(")"),d(),m}function jm(){return"!"}m3.peek=Lm;function m3(e,r,i,o){const s=e.referenceType,a=i.enter("imageReference");let d=i.enter("label");const f=i.createTracker(o);let p=f.move("![");const m=i.safe(e.alt,{before:p,after:"]",...f.current()});p+=f.move(m+"]["),d();const y=i.stack;i.stack=[],d=i.enter("reference");const x=i.safe(i.associationId(e),{before:p,after:"]",...f.current()});return d(),i.stack=y,a(),s==="full"||!m||m!==x?p+=f.move(x+"]"):s==="shortcut"?p=p.slice(0,-1):p+=f.move("]"),p}function Lm(){return"!"}g3.peek=Nm;function g3(e,r,i){let o=e.value||"",s="`",a=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(o);)s+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++a<i.unsafe.length;){const d=i.unsafe[a],f=i.compilePattern(d);let p;if(d.atBreak)for(;p=f.exec(o);){let m=p.index;o.charCodeAt(m)===10&&o.charCodeAt(m-1)===13&&m--,o=o.slice(0,m)+" "+o.slice(p.index+1)}}return s+o+s}function Nm(){return"`"}function x3(e,r){const i=l1(e);return!!(!r.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(i===e.url||"mailto:"+i===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}y3.peek=Im;function y3(e,r,i,o){const s=h1(i),a=s==='"'?"Quote":"Apostrophe",d=i.createTracker(o);let f,p;if(x3(e,i)){const y=i.stack;i.stack=[],f=i.enter("autolink");let x=d.move("<");return x+=d.move(i.containerPhrasing(e,{before:x,after:">",...d.current()})),x+=d.move(">"),f(),i.stack=y,x}f=i.enter("link"),p=i.enter("label");let m=d.move("[");return m+=d.move(i.containerPhrasing(e,{before:m,after:"](",...d.current()})),m+=d.move("]("),p(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(p=i.enter("destinationLiteral"),m+=d.move("<"),m+=d.move(i.safe(e.url,{before:m,after:">",...d.current()})),m+=d.move(">")):(p=i.enter("destinationRaw"),m+=d.move(i.safe(e.url,{before:m,after:e.title?" ":")",...d.current()}))),p(),e.title&&(p=i.enter(`title${a}`),m+=d.move(" "+s),m+=d.move(i.safe(e.title,{before:m,after:s,...d.current()})),m+=d.move(s),p()),m+=d.move(")"),f(),m}function Im(e,r,i){return x3(e,i)?"<":"["}v3.peek=Pm;function v3(e,r,i,o){const s=e.referenceType,a=i.enter("linkReference");let d=i.enter("label");const f=i.createTracker(o);let p=f.move("[");const m=i.containerPhrasing(e,{before:p,after:"]",...f.current()});p+=f.move(m+"]["),d();const y=i.stack;i.stack=[],d=i.enter("reference");const x=i.safe(i.associationId(e),{before:p,after:"]",...f.current()});return d(),i.stack=y,a(),s==="full"||!m||m!==x?p+=f.move(x+"]"):s==="shortcut"?p=p.slice(0,-1):p+=f.move("]"),p}function Pm(){return"["}function m1(e){const r=e.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function Mm(e){const r=m1(e),i=e.options.bulletOther;if(!i)return r==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===r)throw new Error("Expected `bullet` (`"+r+"`) and `bulletOther` (`"+i+"`) to be different");return i}function Tm(e){const r=e.options.bulletOrdered||".";if(r!=="."&&r!==")")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}function C3(e){const r=e.options.rule||"*";if(r!=="*"&&r!=="-"&&r!=="_")throw new Error("Cannot serialize rules with `"+r+"` for `options.rule`, expected `*`, `-`, or `_`");return r}function zm(e,r,i,o){const s=i.enter("list"),a=i.bulletCurrent;let d=e.ordered?Tm(i):m1(i);const f=e.ordered?d==="."?")":".":Mm(i);let p=r&&i.bulletLastUsed?d===i.bulletLastUsed:!1;if(!e.ordered){const y=e.children?e.children[0]:void 0;if((d==="*"||d==="-")&&y&&(!y.children||!y.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(p=!0),C3(i)===d&&y){let x=-1;for(;++x<e.children.length;){const v=e.children[x];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(d=f),i.bulletCurrent=d;const m=i.containerFlow(e,o);return i.bulletLastUsed=d,i.bulletCurrent=a,s(),m}function Rm(e){const r=e.options.listItemIndent||"one";if(r!=="tab"&&r!=="one"&&r!=="mixed")throw new Error("Cannot serialize items with `"+r+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return r}function Dm(e,r,i,o){const s=Rm(i);let a=i.bulletCurrent||m1(i);r&&r.type==="list"&&r.ordered&&(a=(typeof r.start=="number"&&r.start>-1?r.start:1)+(i.options.incrementListMarker===!1?0:r.children.indexOf(e))+a);let d=a.length+1;(s==="tab"||s==="mixed"&&(r&&r.type==="list"&&r.spread||e.spread))&&(d=Math.ceil(d/4)*4);const f=i.createTracker(o);f.move(a+" ".repeat(d-a.length)),f.shift(d);const p=i.enter("listItem"),m=i.indentLines(i.containerFlow(e,f.current()),y);return p(),m;function y(x,v,C){return v?(C?"":" ".repeat(d))+x:(C?a:a+" ".repeat(d-a.length))+x}}function Am(e,r,i,o){const s=i.enter("paragraph"),a=i.enter("phrasing"),d=i.containerPhrasing(e,o);return a(),s(),d}const Fm=fs(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Om(e,r,i,o){return(e.children.some(function(d){return Fm(d)})?i.containerPhrasing:i.containerFlow).call(i,e,o)}function $m(e){const r=e.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}w3.peek=Bm;function w3(e,r,i,o){const s=$m(i),a=i.enter("strong"),d=i.createTracker(o),f=d.move(s+s);let p=d.move(i.containerPhrasing(e,{after:s,before:f,...d.current()}));const m=p.charCodeAt(0),y=ls(o.before.charCodeAt(o.before.length-1),m,s);y.inside&&(p=bl(m)+p.slice(1));const x=p.charCodeAt(p.length-1),v=ls(o.after.charCodeAt(0),x,s);v.inside&&(p=p.slice(0,-1)+bl(x));const C=d.move(s+s);return a(),i.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},f+p+C}function Bm(e,r,i){return i.options.strong||"*"}function Hm(e,r,i,o){return i.safe(e.value,o)}function Vm(e){const r=e.options.ruleRepetition||3;if(r<3)throw new Error("Cannot serialize rules with repetition `"+r+"` for `options.ruleRepetition`, expected `3` or more");return r}function Um(e,r,i){const o=(C3(i)+(i.options.ruleSpaces?" ":"")).repeat(Vm(i));return i.options.ruleSpaces?o.slice(0,-1):o}const k3={blockquote:pm,break:td,code:vm,definition:wm,emphasis:f3,hardBreak:td,heading:Sm,html:p3,image:h3,imageReference:m3,inlineCode:g3,link:y3,linkReference:v3,list:zm,listItem:Dm,paragraph:Am,root:Om,strong:w3,text:Hm,thematicBreak:Um};function Wm(){return{enter:{table:qm,tableData:nd,tableHeader:nd,tableRow:Qm},exit:{codeText:Gm,table:Zm,tableData:Cu,tableHeader:Cu,tableRow:Cu}}}function qm(e){const r=e._align;this.enter({type:"table",align:r.map(function(i){return i==="none"?null:i}),children:[]},e),this.data.inTable=!0}function Zm(e){this.exit(e),this.data.inTable=void 0}function Qm(e){this.enter({type:"tableRow",children:[]},e)}function Cu(e){this.exit(e)}function nd(e){this.enter({type:"tableCell",children:[]},e)}function Gm(e){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,Km));const i=this.stack[this.stack.length-1];i.type,i.value=r,this.exit(e)}function Km(e,r){return r==="|"?r:e}function Ym(e){const r=e||{},i=r.tableCellPadding,o=r.tablePipeAlign,s=r.stringLength,a=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
73
73
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:d,tableCell:p,tableRow:f}};function d(C,k,P,R){return m(y(C,P,R),C.align)}function f(C,k,P,R){const j=x(C,P,R),V=m([j]);return V.slice(0,V.indexOf(`
|
|
74
|
-
`))}function p(C,k,P,R){const j=P.enter("tableCell"),V=P.enter("phrasing"),b=P.containerPhrasing(C,{...R,before:u,after:u});return V(),j(),b}function m(C,k){return lm(C,{align:k,alignDelimiters:o,padding:i,stringLength:s})}function y(C,k,P){const R=C.children;let j=-1;const V=[],b=k.enter("table");for(;++j<R.length;)V[j]=x(R[j],k,P);return b(),V}function x(C,k,P){const R=C.children;let j=-1;const V=[],b=k.enter("tableRow");for(;++j<R.length;)V[j]=p(R[j],C,k,P);return b(),V}function v(C,k,P){let R=x3.inlineCode(C,k,P);return P.stack.includes("tableCell")&&(R=R.replace(/\|/g,"\\$&")),R}}function qm(){return{exit:{taskListCheckValueChecked:J2,taskListCheckValueUnchecked:J2,paragraph:Qm}}}function Zm(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Gm}}}function J2(e){const r=this.stack[this.stack.length-2];r.type,r.checked=e.type==="taskListCheckValueChecked"}function Qm(e){const r=this.stack[this.stack.length-2];if(r&&r.type==="listItem"&&typeof r.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const o=i.children[0];if(o&&o.type==="text"){const s=r.children;let u=-1,d;for(;++u<s.length;){const f=s[u];if(f.type==="paragraph"){d=f;break}}d===i&&(o.value=o.value.slice(1),o.value.length===0?i.children.shift():i.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,i.position.start=Object.assign({},o.position.start)))}}this.exit(e)}function Gm(e,r,i,o){const s=e.children[0],u=typeof e.checked=="boolean"&&s&&s.type==="paragraph",d="["+(e.checked?"x":" ")+"] ",f=i.createTracker(o);u&&f.move(d);let p=x3.listItem(e,r,i,{...o,...f.current()});return u&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),p;function m(y){return y+d}}function Km(){return[L9(),G9(),J9(),Om(),qm()]}function Ym(e){return{extensions:[N9(),K9(e),em(),Wm(e),Zm()]}}const Xm={tokenize:ig,partial:!0},y3={tokenize:lg,partial:!0},v3={tokenize:og,partial:!0},C3={tokenize:sg,partial:!0},Jm={tokenize:ag,partial:!0},w3={name:"wwwAutolink",tokenize:ng,previous:_3},k3={name:"protocolAutolink",tokenize:rg,previous:S3},Kn={name:"emailAutolink",tokenize:tg,previous:b3},Rn={};function eg(){return{text:Rn}}let Fr=48;for(;Fr<123;)Rn[Fr]=Kn,Fr++,Fr===58?Fr=65:Fr===91&&(Fr=97);Rn[43]=Kn;Rn[45]=Kn;Rn[46]=Kn;Rn[95]=Kn;Rn[72]=[Kn,k3];Rn[104]=[Kn,k3];Rn[87]=[Kn,w3];Rn[119]=[Kn,w3];function tg(e,r,i){const o=this;let s,u;return d;function d(x){return!$1(x)||!b3.call(o,o.previous)||mu(o.events)?i(x):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(x))}function f(x){return $1(x)?(e.consume(x),f):x===64?(e.consume(x),p):i(x)}function p(x){return x===46?e.check(Jm,y,m)(x):x===45||x===95||zt(x)?(u=!0,e.consume(x),p):y(x)}function m(x){return e.consume(x),s=!0,p}function y(x){return u&&s&&Vt(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),r(x)):i(x)}}function ng(e,r,i){const o=this;return s;function s(d){return d!==87&&d!==119||!_3.call(o,o.previous)||mu(o.events)?i(d):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Xm,e.attempt(y3,e.attempt(v3,u),i),i)(d))}function u(d){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),r(d)}}function rg(e,r,i){const o=this;let s="",u=!1;return d;function d(x){return(x===72||x===104)&&S3.call(o,o.previous)&&!mu(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(x),e.consume(x),f):i(x)}function f(x){if(Vt(x)&&s.length<5)return s+=String.fromCodePoint(x),e.consume(x),f;if(x===58){const v=s.toLowerCase();if(v==="http"||v==="https")return e.consume(x),p}return i(x)}function p(x){return x===47?(e.consume(x),u?m:(u=!0,p)):i(x)}function m(x){return x===null||ts(x)||Ye(x)||Wr(x)||as(x)?i(x):e.attempt(y3,e.attempt(v3,y),i)(x)}function y(x){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),r(x)}}function ig(e,r,i){let o=0;return s;function s(d){return(d===87||d===119)&&o<3?(o++,e.consume(d),s):d===46&&o===3?(e.consume(d),u):i(d)}function u(d){return d===null?i(d):r(d)}}function lg(e,r,i){let o,s,u;return d;function d(m){return m===46||m===95?e.check(C3,p,f)(m):m===null||Ye(m)||Wr(m)||m!==45&&as(m)?p(m):(u=!0,e.consume(m),d)}function f(m){return m===95?o=!0:(s=o,o=void 0),e.consume(m),d}function p(m){return s||o||!u?i(m):r(m)}}function og(e,r){let i=0,o=0;return s;function s(d){return d===40?(i++,e.consume(d),s):d===41&&o<i?u(d):d===33||d===34||d===38||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===60||d===63||d===93||d===95||d===126?e.check(C3,r,u)(d):d===null||Ye(d)||Wr(d)?r(d):(e.consume(d),s)}function u(d){return d===41&&o++,e.consume(d),s}}function sg(e,r,i){return o;function o(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),o):f===38?(e.consume(f),u):f===93?(e.consume(f),s):f===60||f===null||Ye(f)||Wr(f)?r(f):i(f)}function s(f){return f===null||f===40||f===91||Ye(f)||Wr(f)?r(f):o(f)}function u(f){return Vt(f)?d(f):i(f)}function d(f){return f===59?(e.consume(f),o):Vt(f)?(e.consume(f),d):i(f)}}function ag(e,r,i){return o;function o(u){return e.consume(u),s}function s(u){return zt(u)?i(u):r(u)}}function _3(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ye(e)}function S3(e){return!Vt(e)}function b3(e){return!(e===47||$1(e))}function $1(e){return e===43||e===45||e===46||e===95||zt(e)}function mu(e){let r=e.length,i=!1;for(;r--;){const o=e[r][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){i=!0;break}if(o._gfmAutolinkLiteralWalkedInto){i=!1;break}}return e.length>0&&!i&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const ug={tokenize:xg,partial:!0};function cg(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:hg,continuation:{tokenize:mg},exit:gg}},text:{91:{name:"gfmFootnoteCall",tokenize:pg},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:dg,resolveTo:fg}}}}function dg(e,r,i){const o=this;let s=o.events.length;const u=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let d;for(;s--;){const p=o.events[s][1];if(p.type==="labelImage"){d=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return f;function f(p){if(!d||!d._balanced)return i(p);const m=En(o.sliceSerialize({start:d.end,end:o.now()}));return m.codePointAt(0)!==94||!u.includes(m.slice(1))?i(p):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),r(p))}}function fg(e,r){let i=e.length;for(;i--;)if(e[i][1].type==="labelImage"&&e[i][0]==="enter"){e[i][1];break}e[i+1][1].type="data",e[i+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[i+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[i+3][1].end),end:Object.assign({},e[i+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},d={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},f=[e[i+1],e[i+2],["enter",o,r],e[i+3],e[i+4],["enter",s,r],["exit",s,r],["enter",u,r],["enter",d,r],["exit",d,r],["exit",u,r],e[e.length-2],e[e.length-1],["exit",o,r]];return e.splice(i,e.length-i+1,...f),e}function pg(e,r,i){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let u=0,d;return f;function f(x){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(x),e.exit("gfmFootnoteCallLabelMarker"),p}function p(x){return x!==94?i(x):(e.enter("gfmFootnoteCallMarker"),e.consume(x),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",m)}function m(x){if(u>999||x===93&&!d||x===null||x===91||Ye(x))return i(x);if(x===93){e.exit("chunkString");const v=e.exit("gfmFootnoteCallString");return s.includes(En(o.sliceSerialize(v)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(x),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),r):i(x)}return Ye(x)||(d=!0),u++,e.consume(x),x===92?y:m}function y(x){return x===91||x===92||x===93?(e.consume(x),u++,m):m(x)}}function hg(e,r,i){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let u,d=0,f;return p;function p(k){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(k){return k===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",y):i(k)}function y(k){if(d>999||k===93&&!f||k===null||k===91||Ye(k))return i(k);if(k===93){e.exit("chunkString");const P=e.exit("gfmFootnoteDefinitionLabelString");return u=En(o.sliceSerialize(P)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),v}return Ye(k)||(f=!0),d++,e.consume(k),k===92?x:y}function x(k){return k===91||k===92||k===93?(e.consume(k),d++,y):y(k)}function v(k){return k===58?(e.enter("definitionMarker"),e.consume(k),e.exit("definitionMarker"),s.includes(u)||s.push(u),$e(e,C,"gfmFootnoteDefinitionWhitespace")):i(k)}function C(k){return r(k)}}function mg(e,r,i){return e.check(jl,r,e.attempt(ug,r,i))}function gg(e){e.exit("gfmFootnoteDefinition")}function xg(e,r,i){const o=this;return $e(e,s,"gfmFootnoteDefinitionIndent",5);function s(u){const d=o.events[o.events.length-1];return d&&d[1].type==="gfmFootnoteDefinitionIndent"&&d[2].sliceSerialize(d[1],!0).length===4?r(u):i(u)}}function yg(e){let i=(e||{}).singleTilde;const o={name:"strikethrough",tokenize:u,resolveAll:s};return i==null&&(i=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function s(d,f){let p=-1;for(;++p<d.length;)if(d[p][0]==="enter"&&d[p][1].type==="strikethroughSequenceTemporary"&&d[p][1]._close){let m=p;for(;m--;)if(d[m][0]==="exit"&&d[m][1].type==="strikethroughSequenceTemporary"&&d[m][1]._open&&d[p][1].end.offset-d[p][1].start.offset===d[m][1].end.offset-d[m][1].start.offset){d[p][1].type="strikethroughSequence",d[m][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},d[m][1].start),end:Object.assign({},d[p][1].end)},x={type:"strikethroughText",start:Object.assign({},d[m][1].end),end:Object.assign({},d[p][1].start)},v=[["enter",y,f],["enter",d[m][1],f],["exit",d[m][1],f],["enter",x,f]],C=f.parser.constructs.insideSpan.null;C&&rn(v,v.length,0,us(C,d.slice(m+1,p),f)),rn(v,v.length,0,[["exit",x,f],["enter",d[p][1],f],["exit",d[p][1],f],["exit",y,f]]),rn(d,m-1,p-m+3,v),p=m+v.length-2;break}}for(p=-1;++p<d.length;)d[p][1].type==="strikethroughSequenceTemporary"&&(d[p][1].type="data");return d}function u(d,f,p){const m=this.previous,y=this.events;let x=0;return v;function v(k){return m===126&&y[y.length-1][1].type!=="characterEscape"?p(k):(d.enter("strikethroughSequenceTemporary"),C(k))}function C(k){const P=wi(m);if(k===126)return x>1?p(k):(d.consume(k),x++,C);if(x<2&&!i)return p(k);const R=d.exit("strikethroughSequenceTemporary"),j=wi(k);return R._open=!j||j===2&&!!P,R._close=!P||P===2&&!!j,f(k)}}}class vg{constructor(){this.map=[],this.index=new Map}add(r,i,o){Cg(this,r,i,o)}consume(r){if(this.map.sort(function(u,d){return u[0]-d[0]}),this.map.length===0)return;let i=this.map.length;const o=[];for(;i>0;)i-=1,o.push(r.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),r.length=this.map[i][0];o.push(r.slice()),r.length=0;let s=o.pop();for(;s;){for(const u of s)r.push(u);s=o.pop()}this.map.length=0,this.index.clear()}}function Cg(e,r,i,o){if(i===0&&o.length===0)return;const s=e.index.get(r);if(s){s[1]+=i,s[2].push(...o);return}const u=[r,i,o];e.map.push(u),e.index.set(r,u)}function wg(e,r){let i=!1;const o=[];for(;r<e.length;){const s=e[r];if(i){if(s[0]==="enter")s[1].type==="tableContent"&&o.push(e[r+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[r-1][1].type==="tableDelimiterMarker"){const u=o.length-1;o[u]=o[u]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(i=!0);r+=1}return o}function kg(){return{flow:{null:{name:"table",tokenize:_g,resolveAll:Sg}}}}function _g(e,r,i){const o=this;let s=0,u=0,d;return f;function f(D){let L=o.events.length-1;for(;L>-1;){const{type:W}=o.events[L][1];if(W==="lineEnding"||W==="linePrefix")L--;else break}const Z=L>-1?o.events[L][1].type:null,te=Z==="tableHead"||Z==="tableRow"?T:p;return te===T&&o.parser.lazy[o.now().line]?i(D):te(D)}function p(D){return e.enter("tableHead"),e.enter("tableRow"),m(D)}function m(D){return D===124||(d=!0,u+=1),y(D)}function y(D){return D===null?i(D):Se(D)?u>1?(u=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),C):i(D):Fe(D)?$e(e,y,"whitespace")(D):(u+=1,d&&(d=!1,s+=1),D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),d=!0,y):(e.enter("data"),x(D)))}function x(D){return D===null||D===124||Ye(D)?(e.exit("data"),y(D)):(e.consume(D),D===92?v:x)}function v(D){return D===92||D===124?(e.consume(D),x):x(D)}function C(D){return o.interrupt=!1,o.parser.lazy[o.now().line]?i(D):(e.enter("tableDelimiterRow"),d=!1,Fe(D)?$e(e,k,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):k(D))}function k(D){return D===45||D===58?R(D):D===124?(d=!0,e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),P):B(D)}function P(D){return Fe(D)?$e(e,R,"whitespace")(D):R(D)}function R(D){return D===58?(u+=1,d=!0,e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),j):D===45?(u+=1,j(D)):D===null||Se(D)?$(D):B(D)}function j(D){return D===45?(e.enter("tableDelimiterFiller"),V(D)):B(D)}function V(D){return D===45?(e.consume(D),V):D===58?(d=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(D))}function b(D){return Fe(D)?$e(e,$,"whitespace")(D):$(D)}function $(D){return D===124?k(D):D===null||Se(D)?!d||s!==u?B(D):(e.exit("tableDelimiterRow"),e.exit("tableHead"),r(D)):B(D)}function B(D){return i(D)}function T(D){return e.enter("tableRow"),ee(D)}function ee(D){return D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),ee):D===null||Se(D)?(e.exit("tableRow"),r(D)):Fe(D)?$e(e,ee,"whitespace")(D):(e.enter("data"),ie(D))}function ie(D){return D===null||D===124||Ye(D)?(e.exit("data"),ee(D)):(e.consume(D),D===92?Y:ie)}function Y(D){return D===92||D===124?(e.consume(D),ie):ie(D)}}function Sg(e,r){let i=-1,o=!0,s=0,u=[0,0,0,0],d=[0,0,0,0],f=!1,p=0,m,y,x;const v=new vg;for(;++i<e.length;){const C=e[i],k=C[1];C[0]==="enter"?k.type==="tableHead"?(f=!1,p!==0&&(ed(v,r,p,m,y),y=void 0,p=0),m={type:"table",start:Object.assign({},k.start),end:Object.assign({},k.end)},v.add(i,0,[["enter",m,r]])):k.type==="tableRow"||k.type==="tableDelimiterRow"?(o=!0,x=void 0,u=[0,0,0,0],d=[0,i+1,0,0],f&&(f=!1,y={type:"tableBody",start:Object.assign({},k.start),end:Object.assign({},k.end)},v.add(i,0,[["enter",y,r]])),s=k.type==="tableDelimiterRow"?2:y?3:1):s&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")?(o=!1,d[2]===0&&(u[1]!==0&&(d[0]=d[1],x=Vo(v,r,u,s,void 0,x),u=[0,0,0,0]),d[2]=i)):k.type==="tableCellDivider"&&(o?o=!1:(u[1]!==0&&(d[0]=d[1],x=Vo(v,r,u,s,void 0,x)),u=d,d=[u[1],i,0,0])):k.type==="tableHead"?(f=!0,p=i):k.type==="tableRow"||k.type==="tableDelimiterRow"?(p=i,u[1]!==0?(d[0]=d[1],x=Vo(v,r,u,s,i,x)):d[1]!==0&&(x=Vo(v,r,d,s,i,x)),s=0):s&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")&&(d[3]=i)}for(p!==0&&ed(v,r,p,m,y),v.consume(r.events),i=-1;++i<r.events.length;){const C=r.events[i];C[0]==="enter"&&C[1].type==="table"&&(C[1]._align=wg(r.events,i))}return e}function Vo(e,r,i,o,s,u){const d=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",f="tableContent";i[0]!==0&&(u.end=Object.assign({},vi(r.events,i[0])),e.add(i[0],0,[["exit",u,r]]));const p=vi(r.events,i[1]);if(u={type:d,start:Object.assign({},p),end:Object.assign({},p)},e.add(i[1],0,[["enter",u,r]]),i[2]!==0){const m=vi(r.events,i[2]),y=vi(r.events,i[3]),x={type:f,start:Object.assign({},m),end:Object.assign({},y)};if(e.add(i[2],0,[["enter",x,r]]),o!==2){const v=r.events[i[2]],C=r.events[i[3]];if(v[1].end=Object.assign({},C[1].end),v[1].type="chunkText",v[1].contentType="text",i[3]>i[2]+1){const k=i[2]+1,P=i[3]-i[2]-1;e.add(k,P,[])}}e.add(i[3]+1,0,[["exit",x,r]])}return s!==void 0&&(u.end=Object.assign({},vi(r.events,s)),e.add(s,0,[["exit",u,r]]),u=void 0),u}function ed(e,r,i,o,s){const u=[],d=vi(r.events,i);s&&(s.end=Object.assign({},d),u.push(["exit",s,r])),o.end=Object.assign({},d),u.push(["exit",o,r]),e.add(i+1,0,u)}function vi(e,r){const i=e[r],o=i[0]==="enter"?"start":"end";return i[1][o]}const bg={name:"tasklistCheck",tokenize:jg};function Eg(){return{text:{91:bg}}}function jg(e,r,i){const o=this;return s;function s(p){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?i(p):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(p),e.exit("taskListCheckMarker"),u)}function u(p){return Ye(p)?(e.enter("taskListCheckValueUnchecked"),e.consume(p),e.exit("taskListCheckValueUnchecked"),d):p===88||p===120?(e.enter("taskListCheckValueChecked"),e.consume(p),e.exit("taskListCheckValueChecked"),d):i(p)}function d(p){return p===93?(e.enter("taskListCheckMarker"),e.consume(p),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):i(p)}function f(p){return Se(p)?r(p):Fe(p)?e.check({tokenize:Lg},r,i)(p):i(p)}}function Lg(e,r,i){return $e(e,o,"whitespace");function o(s){return s===null?i(s):r(s)}}function Ng(e){return Dd([eg(),cg(),yg(e),kg(),Eg()])}const Ig={};function Pg(e){const r=this,i=e||Ig,o=r.data(),s=o.micromarkExtensions||(o.micromarkExtensions=[]),u=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),d=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);s.push(Ng(i)),u.push(Km()),d.push(Ym(i))}const gu="pi-web-locale",B1=new Set;function Mg(){var e;return typeof navigator>"u"||(((e=navigator.languages)==null?void 0:e[0])??navigator.language??"zh").toLowerCase().startsWith("zh")?"zh":"en"}function E3(){try{const e=localStorage.getItem(gu);if(e==="zh"||e==="en")return e}catch{}return Mg()}let Sl=E3();function j3(e){Sl!==e&&(Sl=e,typeof document<"u"&&(document.documentElement.lang=e==="zh"?"zh-CN":"en"),B1.forEach(r=>r()))}function Tg(){document.documentElement.lang=Sl==="zh"?"zh-CN":"en",window.addEventListener("storage",e=>{e.key===gu&&j3(E3())})}function zg(e){try{localStorage.setItem(gu,e)}catch{}j3(e)}function kr(){return E.useSyncExternalStore(e=>(B1.add(e),()=>{B1.delete(e)}),()=>Sl)}function L3(e,r,i){return e==="zh"?r:i}function _(e,r){return L3(Sl,e,r)}function Dg({children:e}){const r=E.useRef(null),[i,o]=E.useState(!1);return c.jsxs("div",{className:"pi-code-block",children:[c.jsx("div",{className:"pi-code-toolbar",children:c.jsx("button",{type:"button",onClick:async()=>{var s;try{await navigator.clipboard.writeText(((s=r.current)==null?void 0:s.textContent)??""),o(!0),window.setTimeout(()=>o(!1),1800)}catch{o(!1)}},children:i?_("已复制","Copied"):_("复制代码","Copy code")})}),c.jsx("pre",{ref:r,children:e})]})}function N3({text:e}){return c.jsx("div",{className:"pi-markdown",children:c.jsx(y9,{remarkPlugins:[Pg],components:{pre:({children:r})=>c.jsx(Dg,{children:r}),a:({href:r,children:i})=>c.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",children:i})},children:e})})}const Rg="_root_rf6yg_9",Ag="_row_rf6yg_16",Fg="_leading_rf6yg_29",Og="_iconIdle_rf6yg_57",$g="_chevronHover_rf6yg_63",Bg="_title_rf6yg_79",gi={root:Rg,row:Ag,leading:Fg,iconIdle:Og,chevronHover:$g,title:Bg};function I3({icon:e,title:r,open:i,onToggle:o,collapsedContent:s,children:u,rowClassName:d,leadingClassName:f,titleClassName:p,chevronClassName:m}){const y=x=>{x.key!=="Enter"&&x.key!==" "||(x.preventDefault(),o())};return c.jsxs("div",{className:gi.root,"data-open":i||void 0,children:[c.jsxs("div",{className:`${gi.row} ${d??""}`,"data-disclosure-row":!0,"data-expandable":!0,role:"button",tabIndex:0,"aria-expanded":i,onClick:o,onKeyDown:y,children:[c.jsx("span",{className:`${gi.leading} ${f??""}`,children:i?c.jsx(wl,{className:m}):c.jsxs(c.Fragment,{children:[c.jsx("span",{className:gi.iconIdle,children:e}),c.jsx(wl,{className:`${gi.chevronHover} ${m??""}`})]})}),c.jsx("span",{className:`${gi.title} ${p??""}`,children:r}),!i&&s]}),i&&u]})}const Hg="_root_b8edg_1",Vg="_row_b8edg_11",Ug="_leading_b8edg_37",Wg="_chevron_b8edg_41",qg="_title_b8edg_45",Zg="_separator_b8edg_49",Qg="_summary_b8edg_61",Gg="_summaryText_b8edg_71",Kg="_thinkBody_b8edg_91",Qn={root:Hg,row:Vg,leading:Ug,chevron:Wg,title:qg,separator:Zg,summary:Qg,summaryText:Gg,thinkBody:Kg};function Yg({text:e,running:r}){const[i,o]=E.useState(!1),s=e.trimEnd(),u=(r?s.slice(s.lastIndexOf(`
|
|
74
|
+
`))}function p(C,k,P,R){const j=P.enter("tableCell"),V=P.enter("phrasing"),S=P.containerPhrasing(C,{...R,before:a,after:a});return V(),j(),S}function m(C,k){return dm(C,{align:k,alignDelimiters:o,padding:i,stringLength:s})}function y(C,k,P){const R=C.children;let j=-1;const V=[],S=k.enter("table");for(;++j<R.length;)V[j]=x(R[j],k,P);return S(),V}function x(C,k,P){const R=C.children;let j=-1;const V=[],S=k.enter("tableRow");for(;++j<R.length;)V[j]=p(R[j],C,k,P);return S(),V}function v(C,k,P){let R=k3.inlineCode(C,k,P);return P.stack.includes("tableCell")&&(R=R.replace(/\|/g,"\\$&")),R}}function Xm(){return{exit:{taskListCheckValueChecked:rd,taskListCheckValueUnchecked:rd,paragraph:eg}}}function Jm(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:tg}}}function rd(e){const r=this.stack[this.stack.length-2];r.type,r.checked=e.type==="taskListCheckValueChecked"}function eg(e){const r=this.stack[this.stack.length-2];if(r&&r.type==="listItem"&&typeof r.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const o=i.children[0];if(o&&o.type==="text"){const s=r.children;let a=-1,d;for(;++a<s.length;){const f=s[a];if(f.type==="paragraph"){d=f;break}}d===i&&(o.value=o.value.slice(1),o.value.length===0?i.children.shift():i.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,i.position.start=Object.assign({},o.position.start)))}}this.exit(e)}function tg(e,r,i,o){const s=e.children[0],a=typeof e.checked=="boolean"&&s&&s.type==="paragraph",d="["+(e.checked?"x":" ")+"] ",f=i.createTracker(o);a&&f.move(d);let p=k3.listItem(e,r,i,{...o,...f.current()});return a&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),p;function m(y){return y+d}}function ng(){return[z9(),tm(),lm(),Wm(),Xm()]}function rg(e){return{extensions:[R9(),nm(e),om(),Ym(e),Jm()]}}const ig={tokenize:cg,partial:!0},_3={tokenize:dg,partial:!0},b3={tokenize:fg,partial:!0},S3={tokenize:pg,partial:!0},lg={tokenize:hg,partial:!0},E3={name:"wwwAutolink",tokenize:ag,previous:L3},j3={name:"protocolAutolink",tokenize:ug,previous:N3},Xn={name:"emailAutolink",tokenize:sg,previous:I3},An={};function og(){return{text:An}}let $r=48;for(;$r<123;)An[$r]=Xn,$r++,$r===58?$r=65:$r===91&&($r=97);An[43]=Xn;An[45]=Xn;An[46]=Xn;An[95]=Xn;An[72]=[Xn,j3];An[104]=[Xn,j3];An[87]=[Xn,E3];An[119]=[Xn,E3];function sg(e,r,i){const o=this;let s,a;return d;function d(x){return!Bu(x)||!I3.call(o,o.previous)||g1(o.events)?i(x):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(x))}function f(x){return Bu(x)?(e.consume(x),f):x===64?(e.consume(x),p):i(x)}function p(x){return x===46?e.check(lg,y,m)(x):x===45||x===95||zt(x)?(a=!0,e.consume(x),p):y(x)}function m(x){return e.consume(x),s=!0,p}function y(x){return a&&s&&Vt(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),r(x)):i(x)}}function ag(e,r,i){const o=this;return s;function s(d){return d!==87&&d!==119||!L3.call(o,o.previous)||g1(o.events)?i(d):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ig,e.attempt(_3,e.attempt(b3,a),i),i)(d))}function a(d){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),r(d)}}function ug(e,r,i){const o=this;let s="",a=!1;return d;function d(x){return(x===72||x===104)&&N3.call(o,o.previous)&&!g1(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(x),e.consume(x),f):i(x)}function f(x){if(Vt(x)&&s.length<5)return s+=String.fromCodePoint(x),e.consume(x),f;if(x===58){const v=s.toLowerCase();if(v==="http"||v==="https")return e.consume(x),p}return i(x)}function p(x){return x===47?(e.consume(x),a?m:(a=!0,p)):i(x)}function m(x){return x===null||ns(x)||Ye(x)||qr(x)||us(x)?i(x):e.attempt(_3,e.attempt(b3,y),i)(x)}function y(x){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),r(x)}}function cg(e,r,i){let o=0;return s;function s(d){return(d===87||d===119)&&o<3?(o++,e.consume(d),s):d===46&&o===3?(e.consume(d),a):i(d)}function a(d){return d===null?i(d):r(d)}}function dg(e,r,i){let o,s,a;return d;function d(m){return m===46||m===95?e.check(S3,p,f)(m):m===null||Ye(m)||qr(m)||m!==45&&us(m)?p(m):(a=!0,e.consume(m),d)}function f(m){return m===95?o=!0:(s=o,o=void 0),e.consume(m),d}function p(m){return s||o||!a?i(m):r(m)}}function fg(e,r){let i=0,o=0;return s;function s(d){return d===40?(i++,e.consume(d),s):d===41&&o<i?a(d):d===33||d===34||d===38||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===60||d===63||d===93||d===95||d===126?e.check(S3,r,a)(d):d===null||Ye(d)||qr(d)?r(d):(e.consume(d),s)}function a(d){return d===41&&o++,e.consume(d),s}}function pg(e,r,i){return o;function o(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),o):f===38?(e.consume(f),a):f===93?(e.consume(f),s):f===60||f===null||Ye(f)||qr(f)?r(f):i(f)}function s(f){return f===null||f===40||f===91||Ye(f)||qr(f)?r(f):o(f)}function a(f){return Vt(f)?d(f):i(f)}function d(f){return f===59?(e.consume(f),o):Vt(f)?(e.consume(f),d):i(f)}}function hg(e,r,i){return o;function o(a){return e.consume(a),s}function s(a){return zt(a)?i(a):r(a)}}function L3(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ye(e)}function N3(e){return!Vt(e)}function I3(e){return!(e===47||Bu(e))}function Bu(e){return e===43||e===45||e===46||e===95||zt(e)}function g1(e){let r=e.length,i=!1;for(;r--;){const o=e[r][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){i=!0;break}if(o._gfmAutolinkLiteralWalkedInto){i=!1;break}}return e.length>0&&!i&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const mg={tokenize:_g,partial:!0};function gg(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Cg,continuation:{tokenize:wg},exit:kg}},text:{91:{name:"gfmFootnoteCall",tokenize:vg},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:xg,resolveTo:yg}}}}function xg(e,r,i){const o=this;let s=o.events.length;const a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let d;for(;s--;){const p=o.events[s][1];if(p.type==="labelImage"){d=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return f;function f(p){if(!d||!d._balanced)return i(p);const m=En(o.sliceSerialize({start:d.end,end:o.now()}));return m.codePointAt(0)!==94||!a.includes(m.slice(1))?i(p):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),r(p))}}function yg(e,r){let i=e.length;for(;i--;)if(e[i][1].type==="labelImage"&&e[i][0]==="enter"){e[i][1];break}e[i+1][1].type="data",e[i+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[i+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[i+3][1].end),end:Object.assign({},e[i+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},d={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},f=[e[i+1],e[i+2],["enter",o,r],e[i+3],e[i+4],["enter",s,r],["exit",s,r],["enter",a,r],["enter",d,r],["exit",d,r],["exit",a,r],e[e.length-2],e[e.length-1],["exit",o,r]];return e.splice(i,e.length-i+1,...f),e}function vg(e,r,i){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let a=0,d;return f;function f(x){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(x),e.exit("gfmFootnoteCallLabelMarker"),p}function p(x){return x!==94?i(x):(e.enter("gfmFootnoteCallMarker"),e.consume(x),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",m)}function m(x){if(a>999||x===93&&!d||x===null||x===91||Ye(x))return i(x);if(x===93){e.exit("chunkString");const v=e.exit("gfmFootnoteCallString");return s.includes(En(o.sliceSerialize(v)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(x),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),r):i(x)}return Ye(x)||(d=!0),a++,e.consume(x),x===92?y:m}function y(x){return x===91||x===92||x===93?(e.consume(x),a++,m):m(x)}}function Cg(e,r,i){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let a,d=0,f;return p;function p(k){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(k){return k===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",y):i(k)}function y(k){if(d>999||k===93&&!f||k===null||k===91||Ye(k))return i(k);if(k===93){e.exit("chunkString");const P=e.exit("gfmFootnoteDefinitionLabelString");return a=En(o.sliceSerialize(P)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),v}return Ye(k)||(f=!0),d++,e.consume(k),k===92?x:y}function x(k){return k===91||k===92||k===93?(e.consume(k),d++,y):y(k)}function v(k){return k===58?(e.enter("definitionMarker"),e.consume(k),e.exit("definitionMarker"),s.includes(a)||s.push(a),$e(e,C,"gfmFootnoteDefinitionWhitespace")):i(k)}function C(k){return r(k)}}function wg(e,r,i){return e.check(Ll,r,e.attempt(mg,r,i))}function kg(e){e.exit("gfmFootnoteDefinition")}function _g(e,r,i){const o=this;return $e(e,s,"gfmFootnoteDefinitionIndent",5);function s(a){const d=o.events[o.events.length-1];return d&&d[1].type==="gfmFootnoteDefinitionIndent"&&d[2].sliceSerialize(d[1],!0).length===4?r(a):i(a)}}function bg(e){let i=(e||{}).singleTilde;const o={name:"strikethrough",tokenize:a,resolveAll:s};return i==null&&(i=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function s(d,f){let p=-1;for(;++p<d.length;)if(d[p][0]==="enter"&&d[p][1].type==="strikethroughSequenceTemporary"&&d[p][1]._close){let m=p;for(;m--;)if(d[m][0]==="exit"&&d[m][1].type==="strikethroughSequenceTemporary"&&d[m][1]._open&&d[p][1].end.offset-d[p][1].start.offset===d[m][1].end.offset-d[m][1].start.offset){d[p][1].type="strikethroughSequence",d[m][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},d[m][1].start),end:Object.assign({},d[p][1].end)},x={type:"strikethroughText",start:Object.assign({},d[m][1].end),end:Object.assign({},d[p][1].start)},v=[["enter",y,f],["enter",d[m][1],f],["exit",d[m][1],f],["enter",x,f]],C=f.parser.constructs.insideSpan.null;C&&ln(v,v.length,0,cs(C,d.slice(m+1,p),f)),ln(v,v.length,0,[["exit",x,f],["enter",d[p][1],f],["exit",d[p][1],f],["exit",y,f]]),ln(d,m-1,p-m+3,v),p=m+v.length-2;break}}for(p=-1;++p<d.length;)d[p][1].type==="strikethroughSequenceTemporary"&&(d[p][1].type="data");return d}function a(d,f,p){const m=this.previous,y=this.events;let x=0;return v;function v(k){return m===126&&y[y.length-1][1].type!=="characterEscape"?p(k):(d.enter("strikethroughSequenceTemporary"),C(k))}function C(k){const P=ki(m);if(k===126)return x>1?p(k):(d.consume(k),x++,C);if(x<2&&!i)return p(k);const R=d.exit("strikethroughSequenceTemporary"),j=ki(k);return R._open=!j||j===2&&!!P,R._close=!P||P===2&&!!j,f(k)}}}class Sg{constructor(){this.map=[],this.index=new Map}add(r,i,o){Eg(this,r,i,o)}consume(r){if(this.map.sort(function(a,d){return a[0]-d[0]}),this.map.length===0)return;let i=this.map.length;const o=[];for(;i>0;)i-=1,o.push(r.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),r.length=this.map[i][0];o.push(r.slice()),r.length=0;let s=o.pop();for(;s;){for(const a of s)r.push(a);s=o.pop()}this.map.length=0,this.index.clear()}}function Eg(e,r,i,o){if(i===0&&o.length===0)return;const s=e.index.get(r);if(s){s[1]+=i,s[2].push(...o);return}const a=[r,i,o];e.map.push(a),e.index.set(r,a)}function jg(e,r){let i=!1;const o=[];for(;r<e.length;){const s=e[r];if(i){if(s[0]==="enter")s[1].type==="tableContent"&&o.push(e[r+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[r-1][1].type==="tableDelimiterMarker"){const a=o.length-1;o[a]=o[a]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(i=!0);r+=1}return o}function Lg(){return{flow:{null:{name:"table",tokenize:Ng,resolveAll:Ig}}}}function Ng(e,r,i){const o=this;let s=0,a=0,d;return f;function f(D){let L=o.events.length-1;for(;L>-1;){const{type:W}=o.events[L][1];if(W==="lineEnding"||W==="linePrefix")L--;else break}const Z=L>-1?o.events[L][1].type:null,te=Z==="tableHead"||Z==="tableRow"?T:p;return te===T&&o.parser.lazy[o.now().line]?i(D):te(D)}function p(D){return e.enter("tableHead"),e.enter("tableRow"),m(D)}function m(D){return D===124||(d=!0,a+=1),y(D)}function y(D){return D===null?i(D):be(D)?a>1?(a=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),C):i(D):Fe(D)?$e(e,y,"whitespace")(D):(a+=1,d&&(d=!1,s+=1),D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),d=!0,y):(e.enter("data"),x(D)))}function x(D){return D===null||D===124||Ye(D)?(e.exit("data"),y(D)):(e.consume(D),D===92?v:x)}function v(D){return D===92||D===124?(e.consume(D),x):x(D)}function C(D){return o.interrupt=!1,o.parser.lazy[o.now().line]?i(D):(e.enter("tableDelimiterRow"),d=!1,Fe(D)?$e(e,k,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):k(D))}function k(D){return D===45||D===58?R(D):D===124?(d=!0,e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),P):B(D)}function P(D){return Fe(D)?$e(e,R,"whitespace")(D):R(D)}function R(D){return D===58?(a+=1,d=!0,e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),j):D===45?(a+=1,j(D)):D===null||be(D)?F(D):B(D)}function j(D){return D===45?(e.enter("tableDelimiterFiller"),V(D)):B(D)}function V(D){return D===45?(e.consume(D),V):D===58?(d=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(D))}function S(D){return Fe(D)?$e(e,F,"whitespace")(D):F(D)}function F(D){return D===124?k(D):D===null||be(D)?!d||s!==a?B(D):(e.exit("tableDelimiterRow"),e.exit("tableHead"),r(D)):B(D)}function B(D){return i(D)}function T(D){return e.enter("tableRow"),ee(D)}function ee(D){return D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),ee):D===null||be(D)?(e.exit("tableRow"),r(D)):Fe(D)?$e(e,ee,"whitespace")(D):(e.enter("data"),ie(D))}function ie(D){return D===null||D===124||Ye(D)?(e.exit("data"),ee(D)):(e.consume(D),D===92?Y:ie)}function Y(D){return D===92||D===124?(e.consume(D),ie):ie(D)}}function Ig(e,r){let i=-1,o=!0,s=0,a=[0,0,0,0],d=[0,0,0,0],f=!1,p=0,m,y,x;const v=new Sg;for(;++i<e.length;){const C=e[i],k=C[1];C[0]==="enter"?k.type==="tableHead"?(f=!1,p!==0&&(id(v,r,p,m,y),y=void 0,p=0),m={type:"table",start:Object.assign({},k.start),end:Object.assign({},k.end)},v.add(i,0,[["enter",m,r]])):k.type==="tableRow"||k.type==="tableDelimiterRow"?(o=!0,x=void 0,a=[0,0,0,0],d=[0,i+1,0,0],f&&(f=!1,y={type:"tableBody",start:Object.assign({},k.start),end:Object.assign({},k.end)},v.add(i,0,[["enter",y,r]])),s=k.type==="tableDelimiterRow"?2:y?3:1):s&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")?(o=!1,d[2]===0&&(a[1]!==0&&(d[0]=d[1],x=Uo(v,r,a,s,void 0,x),a=[0,0,0,0]),d[2]=i)):k.type==="tableCellDivider"&&(o?o=!1:(a[1]!==0&&(d[0]=d[1],x=Uo(v,r,a,s,void 0,x)),a=d,d=[a[1],i,0,0])):k.type==="tableHead"?(f=!0,p=i):k.type==="tableRow"||k.type==="tableDelimiterRow"?(p=i,a[1]!==0?(d[0]=d[1],x=Uo(v,r,a,s,i,x)):d[1]!==0&&(x=Uo(v,r,d,s,i,x)),s=0):s&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")&&(d[3]=i)}for(p!==0&&id(v,r,p,m,y),v.consume(r.events),i=-1;++i<r.events.length;){const C=r.events[i];C[0]==="enter"&&C[1].type==="table"&&(C[1]._align=jg(r.events,i))}return e}function Uo(e,r,i,o,s,a){const d=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",f="tableContent";i[0]!==0&&(a.end=Object.assign({},Ci(r.events,i[0])),e.add(i[0],0,[["exit",a,r]]));const p=Ci(r.events,i[1]);if(a={type:d,start:Object.assign({},p),end:Object.assign({},p)},e.add(i[1],0,[["enter",a,r]]),i[2]!==0){const m=Ci(r.events,i[2]),y=Ci(r.events,i[3]),x={type:f,start:Object.assign({},m),end:Object.assign({},y)};if(e.add(i[2],0,[["enter",x,r]]),o!==2){const v=r.events[i[2]],C=r.events[i[3]];if(v[1].end=Object.assign({},C[1].end),v[1].type="chunkText",v[1].contentType="text",i[3]>i[2]+1){const k=i[2]+1,P=i[3]-i[2]-1;e.add(k,P,[])}}e.add(i[3]+1,0,[["exit",x,r]])}return s!==void 0&&(a.end=Object.assign({},Ci(r.events,s)),e.add(s,0,[["exit",a,r]]),a=void 0),a}function id(e,r,i,o,s){const a=[],d=Ci(r.events,i);s&&(s.end=Object.assign({},d),a.push(["exit",s,r])),o.end=Object.assign({},d),a.push(["exit",o,r]),e.add(i+1,0,a)}function Ci(e,r){const i=e[r],o=i[0]==="enter"?"start":"end";return i[1][o]}const Pg={name:"tasklistCheck",tokenize:Tg};function Mg(){return{text:{91:Pg}}}function Tg(e,r,i){const o=this;return s;function s(p){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?i(p):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(p),e.exit("taskListCheckMarker"),a)}function a(p){return Ye(p)?(e.enter("taskListCheckValueUnchecked"),e.consume(p),e.exit("taskListCheckValueUnchecked"),d):p===88||p===120?(e.enter("taskListCheckValueChecked"),e.consume(p),e.exit("taskListCheckValueChecked"),d):i(p)}function d(p){return p===93?(e.enter("taskListCheckMarker"),e.consume(p),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):i(p)}function f(p){return be(p)?r(p):Fe(p)?e.check({tokenize:zg},r,i)(p):i(p)}}function zg(e,r,i){return $e(e,o,"whitespace");function o(s){return s===null?i(s):r(s)}}function Rg(e){return $d([og(),gg(),bg(e),Lg(),Mg()])}const Dg={};function Ag(e){const r=this,i=e||Dg,o=r.data(),s=o.micromarkExtensions||(o.micromarkExtensions=[]),a=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),d=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);s.push(Rg(i)),a.push(ng()),d.push(rg(i))}const x1="pi-web-locale",Hu=new Set;function Fg(){var e;return typeof navigator>"u"||(((e=navigator.languages)==null?void 0:e[0])??navigator.language??"zh").toLowerCase().startsWith("zh")?"zh":"en"}function P3(){try{const e=localStorage.getItem(x1);if(e==="zh"||e==="en")return e}catch{}return Fg()}let Sl=P3();function M3(e){Sl!==e&&(Sl=e,typeof document<"u"&&(document.documentElement.lang=e==="zh"?"zh-CN":"en"),Hu.forEach(r=>r()))}function Og(){document.documentElement.lang=Sl==="zh"?"zh-CN":"en",window.addEventListener("storage",e=>{e.key===x1&&M3(P3())})}function $g(e){try{localStorage.setItem(x1,e)}catch{}M3(e)}function Jn(){return E.useSyncExternalStore(e=>(Hu.add(e),()=>{Hu.delete(e)}),()=>Sl)}function y1(e,r,i){return e==="zh"?r:i}function _(e,r){return y1(Sl,e,r)}function Bg({children:e}){const r=E.useRef(null),[i,o]=E.useState(!1);return c.jsxs("div",{className:"pi-code-block",children:[c.jsx("div",{className:"pi-code-toolbar",children:c.jsx("button",{type:"button",onClick:async()=>{var s;try{await navigator.clipboard.writeText(((s=r.current)==null?void 0:s.textContent)??""),o(!0),window.setTimeout(()=>o(!1),1800)}catch{o(!1)}},children:i?_("已复制","Copied"):_("复制代码","Copy code")})}),c.jsx("pre",{ref:r,children:e})]})}function T3({text:e}){return c.jsx("div",{className:"pi-markdown",children:c.jsx(b9,{remarkPlugins:[Ag],components:{pre:({children:r})=>c.jsx(Bg,{children:r}),a:({href:r,children:i})=>c.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",children:i})},children:e})})}const Hg="_root_rf6yg_9",Vg="_row_rf6yg_16",Ug="_leading_rf6yg_29",Wg="_iconIdle_rf6yg_57",qg="_chevronHover_rf6yg_63",Zg="_title_rf6yg_79",xi={root:Hg,row:Vg,leading:Ug,iconIdle:Wg,chevronHover:qg,title:Zg};function z3({icon:e,title:r,open:i,onToggle:o,collapsedContent:s,children:a,rowClassName:d,leadingClassName:f,titleClassName:p,chevronClassName:m}){const y=x=>{x.key!=="Enter"&&x.key!==" "||(x.preventDefault(),o())};return c.jsxs("div",{className:xi.root,"data-open":i||void 0,children:[c.jsxs("div",{className:`${xi.row} ${d??""}`,"data-disclosure-row":!0,"data-expandable":!0,role:"button",tabIndex:0,"aria-expanded":i,onClick:o,onKeyDown:y,children:[c.jsx("span",{className:`${xi.leading} ${f??""}`,children:i?c.jsx(kl,{className:m}):c.jsxs(c.Fragment,{children:[c.jsx("span",{className:xi.iconIdle,children:e}),c.jsx(kl,{className:`${xi.chevronHover} ${m??""}`})]})}),c.jsx("span",{className:`${xi.title} ${p??""}`,children:r}),!i&&s]}),i&&a]})}const Qg="_root_b8edg_1",Gg="_row_b8edg_11",Kg="_leading_b8edg_37",Yg="_chevron_b8edg_41",Xg="_title_b8edg_45",Jg="_separator_b8edg_49",ex="_summary_b8edg_61",tx="_summaryText_b8edg_71",nx="_thinkBody_b8edg_91",Gn={root:Qg,row:Gg,leading:Kg,chevron:Yg,title:Xg,separator:Jg,summary:ex,summaryText:tx,thinkBody:nx};function rx({text:e,running:r}){const[i,o]=E.useState(!1),s=e.trimEnd(),a=(r?s.slice(s.lastIndexOf(`
|
|
75
75
|
`)+1):e.split(`
|
|
76
|
-
`,1)[0]).replaceAll("**","");return c.jsx("div",{className:Qn.root,"data-variant":"think","data-state":r?"running":"ok","data-expanded":i||void 0,children:c.jsx(I3,{icon:c.jsx(w5,{size:14}),title:_("思考","Thinking"),open:i,onToggle:()=>o(d=>!d),rowClassName:Qn.row,leadingClassName:Qn.leading,titleClassName:Qn.title,chevronClassName:Qn.chevron,collapsedContent:c.jsxs(c.Fragment,{children:[c.jsx("span",{className:Qn.separator,"aria-hidden":!0}),c.jsx("span",{className:Qn.summary,"data-follow-end":r||void 0,children:c.jsx("span",{className:Qn.summaryText,children:u})})]}),children:c.jsx("div",{className:Qn.thinkBody,children:e})})})}var Nl=gd(),C1,td;function Xg(){if(td)return C1;td=1;const e=[[{color:"0, 0, 0",class:"ansi-black"},{color:"187, 0, 0",class:"ansi-red"},{color:"0, 187, 0",class:"ansi-green"},{color:"187, 187, 0",class:"ansi-yellow"},{color:"0, 0, 187",class:"ansi-blue"},{color:"187, 0, 187",class:"ansi-magenta"},{color:"0, 187, 187",class:"ansi-cyan"},{color:"255,255,255",class:"ansi-white"}],[{color:"85, 85, 85",class:"ansi-bright-black"},{color:"255, 85, 85",class:"ansi-bright-red"},{color:"0, 255, 0",class:"ansi-bright-green"},{color:"255, 255, 85",class:"ansi-bright-yellow"},{color:"85, 85, 255",class:"ansi-bright-blue"},{color:"255, 85, 255",class:"ansi-bright-magenta"},{color:"85, 255, 255",class:"ansi-bright-cyan"},{color:"255, 255, 255",class:"ansi-bright-white"}]],r=/(https?:\/\/(?:[A-Za-z0-9#;/?:@=+$',_.!~*()[\]-]|&|%[A-Fa-f0-9]{2})+)/gm;class i{static escapeForHtml(s){return new i().escapeForHtml(s)}static linkify(s){return new i().linkify(s)}static ansiToHtml(s,u){return new i().ansiToHtml(s,u)}static ansiToJson(s,u){return new i().ansiToJson(s,u)}static ansiToText(s){return new i().ansiToText(s)}constructor(){this.fg=this.bg=this.fg_truecolor=this.bg_truecolor=null,this.bright=0,this.decorations=[]}setupPalette(){this.PALETTE_COLORS=[];for(let f=0;f<2;++f)for(let p=0;p<8;++p)this.PALETTE_COLORS.push(e[f][p].color);let s=[0,95,135,175,215,255],u=(f,p,m)=>s[f]+", "+s[p]+", "+s[m];for(let f=0;f<6;++f)for(let p=0;p<6;++p)for(let m=0;m<6;++m)this.PALETTE_COLORS.push(u(f,p,m));let d=8;for(let f=0;f<24;++f,d+=10)this.PALETTE_COLORS.push(d+", "+d+", "+d)}escapeForHtml(s){return s.replace(/[&<>\"]/gm,u=>u=="&"?"&":u=='"'?""":u=="<"?"<":u==">"?">":"")}linkify(s){return s.replace(r,u=>`<a href="${u}">${u}</a>`)}ansiToHtml(s,u){return this.process(s,u,!0)}ansiToJson(s,u){return u=u||{},u.json=!0,u.clearLine=!1,this.process(s,u,!0)}ansiToText(s){return this.process(s,{},!1)}process(s,u,d){let f=this,p=s.split(/\033\[/),m=p.shift();u==null&&(u={}),u.clearLine=/\r/.test(s);let y=p.map(x=>this.processChunk(x,u,d));if(u&&u.json){let x=f.processChunkJson("");return x.content=m,x.clearLine=u.clearLine,y.unshift(x),u.remove_empty&&(y=y.filter(v=>!v.isEmpty())),y}else y.unshift(m);return y.join("")}processChunkJson(s,u,d){u=typeof u>"u"?{}:u;let f=u.use_classes=typeof u.use_classes<"u"&&u.use_classes,p=u.key=f?"class":"color",m={content:s,fg:null,bg:null,fg_truecolor:null,bg_truecolor:null,isInverted:!1,clearLine:u.clearLine,decoration:null,decorations:[],was_processed:!1,isEmpty:()=>!m.content},y=s.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m);if(!y)return m;m.content=y[4];let x=y[2].split(";");if(y[1]!==""||y[3]!=="m"||!d)return m;let v=this;for(;x.length>0;){let C=x.shift(),k=parseInt(C);if(isNaN(k)||k===0)v.fg=v.bg=null,v.decorations=[];else if(k===1)v.decorations.push("bold");else if(k===2)v.decorations.push("dim");else if(k===3)v.decorations.push("italic");else if(k===4)v.decorations.push("underline");else if(k===5)v.decorations.push("blink");else if(k===7)v.decorations.push("reverse");else if(k===8)v.decorations.push("hidden");else if(k===9)v.decorations.push("strikethrough");else if(k===21)v.removeDecoration("bold");else if(k===22)v.removeDecoration("bold"),v.removeDecoration("dim");else if(k===23)v.removeDecoration("italic");else if(k===24)v.removeDecoration("underline");else if(k===25)v.removeDecoration("blink");else if(k===27)v.removeDecoration("reverse");else if(k===28)v.removeDecoration("hidden");else if(k===29)v.removeDecoration("strikethrough");else if(k===39)v.fg=null;else if(k===49)v.bg=null;else if(k>=30&&k<38)v.fg=e[0][k%10][p];else if(k>=90&&k<98)v.fg=e[1][k%10][p];else if(k>=40&&k<48)v.bg=e[0][k%10][p];else if(k>=100&&k<108)v.bg=e[1][k%10][p];else if(k===38||k===48){let P=k===38;if(x.length>=1){let R=x.shift();if(R==="5"&&x.length>=1){let j=parseInt(x.shift());if(j>=0&&j<=255)if(!f)this.PALETTE_COLORS||v.setupPalette(),P?v.fg=this.PALETTE_COLORS[j]:v.bg=this.PALETTE_COLORS[j];else{let V=j>=16?"ansi-palette-"+j:e[j>7?1:0][j%8].class;P?v.fg=V:v.bg=V}}else if(R==="2"&&x.length>=3){let j=parseInt(x.shift()),V=parseInt(x.shift()),b=parseInt(x.shift());if(j>=0&&j<=255&&V>=0&&V<=255&&b>=0&&b<=255){let $=j+", "+V+", "+b;f?P?(v.fg="ansi-truecolor",v.fg_truecolor=$):(v.bg="ansi-truecolor",v.bg_truecolor=$):P?v.fg=$:v.bg=$}}}}}return v.fg===null&&v.bg===null&&v.decorations.length===0||(m.fg=v.fg,m.bg=v.bg,m.fg_truecolor=v.fg_truecolor,m.bg_truecolor=v.bg_truecolor,m.decorations=v.decorations,m.decoration=v.decorations.slice(-1).pop()||null,m.was_processed=!0),m}processChunk(s,u,d){u=u||{};let f=this.processChunkJson(s,u,d),p=u.use_classes;if(f.decorations=f.decorations.filter(k=>{if(k==="reverse"){f.fg||(f.fg=e[0][7][p?"class":"color"]),f.bg||(f.bg=e[0][0][p?"class":"color"]);let P=f.fg;f.fg=f.bg,f.bg=P;let R=f.fg_truecolor;return f.fg_truecolor=f.bg_truecolor,f.bg_truecolor=R,f.isInverted=!0,!1}return!0}),u.json)return f;if(f.isEmpty())return"";if(!f.was_processed)return f.content;let m=[],y=[],x=[],v={},C=k=>{let P=[],R;for(R in k)k.hasOwnProperty(R)&&P.push("data-"+R+'="'+this.escapeForHtml(k[R])+'"');return P.length>0?" "+P.join(" "):""};return f.isInverted&&(v["ansi-is-inverted"]="true"),f.fg&&(p?(m.push(f.fg+"-fg"),f.fg_truecolor!==null&&(v["ansi-truecolor-fg"]=f.fg_truecolor,f.fg_truecolor=null)):m.push("color:rgb("+f.fg+")")),f.bg&&(p?(m.push(f.bg+"-bg"),f.bg_truecolor!==null&&(v["ansi-truecolor-bg"]=f.bg_truecolor,f.bg_truecolor=null)):m.push("background-color:rgb("+f.bg+")")),f.decorations.forEach(k=>{if(p){y.push("ansi-"+k);return}k==="bold"?y.push("font-weight:bold"):k==="dim"?y.push("opacity:0.5"):k==="italic"?y.push("font-style:italic"):k==="hidden"?y.push("visibility:hidden"):k==="strikethrough"?x.push("line-through"):x.push(k)}),x.length&&y.push("text-decoration:"+x.join(" ")),p?'<span class="'+m.concat(y).join(" ")+'"'+C(v)+">"+f.content+"</span>":'<span style="'+m.concat(y).join(";")+'"'+C(v)+">"+f.content+"</span>"}removeDecoration(s){const u=this.decorations.indexOf(s);u>=0&&this.decorations.splice(u,1)}}return C1=i,C1}var Jg=Xg();const ex=q1(Jg),tx={"0,0,0":"var(--dsw-alias-label-primary)","255,255,255":"var(--dsw-alias-label-primary)","85,85,85":"var(--dsw-alias-label-tertiary)","187,0,0":"var(--dsw-alias-state-error-primary)","255,85,85":"var(--dsw-alias-state-error-secondary)","0,187,0":"var(--dsw-alias-state-success-primary)","0,255,0":"var(--dsw-alias-state-success-secondary)","187,187,0":"var(--dsw-alias-state-warn-primary)","255,255,85":"var(--dsw-alias-state-warn-secondary)","0,0,187":"var(--dsw-alias-state-business-primary)","85,85,255":"var(--dsw-static-blue-400)"},nx={bold:{fontWeight:700},dim:{opacity:.7},italic:{fontStyle:"italic"},underline:{textDecoration:"underline"},strikethrough:{textDecoration:"line-through"},hidden:{visibility:"hidden"}},rx=/\u001b\][^\u0007\u001b]*(?:\u0007|\u001b\\)?/g,ix=/\u001b(?!\[)[\u0020-\u002f]*[\u0030-\u007e]?/g,lx=/[\u0000-\u0007\u000b-\u001a\u001c-\u001f\u007f]/g,ox=/\r|\u0008|\u001b\[[\u0030-\u003f]*[\u0020-\u002f]*K/,sx=/\u001b\[([\u0030-\u003f]*)[\u0020-\u002f]*m/g,nd=8,ax=/^[\p{Mn}\p{Me}\p{Cf}\u200b-\u200f\u2060]$/u,ux=new RegExp("\\p{Script=Han}|\\p{Script=Hiragana}|\\p{Script=Katakana}|\\p{Script=Hangul}|\\p{Emoji_Presentation}|[\\uff01-\\uff60\\u3000-\\u303e]","u");function w1(e){const r=e.codePointAt(0);return r===void 0||r<4352?!1:ux.test(e)}const Cl={fg:"",bg:"",attrs:[]},cx={22:["1","2"],23:["3"],24:["4"],25:["5","6"],27:["7"],28:["8"],29:["9"]};function P3(e,r){const i=r===""?["0"]:r.split(";");let o=e;for(let s=0;s<i.length;s++){const u=String(i[s]);if(u===""||u==="0"){o=Cl;continue}if(u==="38"||u==="48"){const p=i[s+1]??"",m=p==="2"?4:p==="5"?2:0,y=i.slice(s,s+m+1).join(";");o=u==="38"?{...o,fg:y}:{...o,bg:y},s+=m;continue}const d=cx[u];if(d!==void 0){o={...o,attrs:o.attrs.filter(p=>!d.includes(p))};continue}const f=Number(u);if(u==="39"){o={...o,fg:""};continue}if(u==="49"){o={...o,bg:""};continue}if(f>=30&&f<=37||f>=90&&f<=97){o={...o,fg:u};continue}if(f>=40&&f<=47||f>=100&&f<=107){o={...o,bg:u};continue}o.attrs.includes(u)||(o={...o,attrs:[...o.attrs,u]})}return o}function rd(e){const r=[...e.attrs];return e.fg!==""&&r.push(e.fg),e.bg!==""&&r.push(e.bg),r.length===0?"":`\x1B[${r.join(";")}m`}function Uo(e,r){return e.fg===r.fg&&e.bg===r.bg&&e.attrs.length===r.attrs.length&&e.attrs.every((i,o)=>i===r.attrs[o])}function dx(e,r){var x;const i=/\u001b\[([\u0030-\u003f]*)[\u0020-\u002f]*([\u0040-\u007e])/g,o=[];let s=0,u=r,d=0;const f=(v,C)=>{var P;const k=o[v];(k==null?void 0:k.spacer)===!0&&v>0?o[v-1]={sgr:u,char:C}:k!==void 0&&w1(k.char)&&((P=o[v+1])==null?void 0:P.spacer)===!0&&(o[v+1]={sgr:u,char:C}),o[v]={sgr:u,char:C}},p=v=>{for(const C of v){if(C==="\r"){s=0;continue}if(C==="\b"){s=Math.max(0,s-1);continue}if(C===" "){const k=s+nd-s%nd;for(;s<k;s++)o[s]??(o[s]={sgr:u,char:" "});continue}if(ax.test(C)){const k=s>0?o[s-1]:void 0;k!==void 0&&(o[s-1]={sgr:k.sgr,char:k.char+C});continue}f(s," "),o[s]={sgr:u,char:C},s++,w1(C)&&(o[s]={sgr:u,char:"",spacer:!0},s++)}};for(const v of e.matchAll(i)){p(e.slice(d,v.index)),d=v.index+v[0].length;const C=String(v[1]),k=String(v[2]);if(k==="K"){const P=String(C.split(";")[0]);if(P==="1")for(let R=0;R<=s;R++)f(R," ");else o.length=P==="2"?0:s;continue}k==="m"&&(u=P3(u,C))}p(e.slice(d));let m="",y=r;for(let v=0;v<o.length;v++){const C=o[v]??{sgr:Cl,char:" "};Uo(C.sgr,y)||(Uo(y,Cl)||(m+="\x1B[0m"),m+=rd(C.sgr),y=C.sgr);const k=v>0&&w1(((x=o[v-1])==null?void 0:x.char)??"");m+=C.spacer===!0&&!k?" ":C.char}return Uo(y,u)||(Uo(y,Cl)||(m+="\x1B[0m"),m+=rd(u)),{text:m,sgr:u}}function fx(e){const r=[];let i=Cl;for(const o of e.split(`
|
|
77
|
-
`)){const s=o.replace(/\r+$/,"");if(
|
|
78
|
-
`)}function
|
|
79
|
-
`).entries())
|
|
76
|
+
`,1)[0]).replaceAll("**","");return c.jsx("div",{className:Gn.root,"data-variant":"think","data-state":r?"running":"ok","data-expanded":i||void 0,children:c.jsx(z3,{icon:c.jsx(j5,{size:14}),title:_("思考","Thinking"),open:i,onToggle:()=>o(d=>!d),rowClassName:Gn.row,leadingClassName:Gn.leading,titleClassName:Gn.title,chevronClassName:Gn.chevron,collapsedContent:c.jsxs(c.Fragment,{children:[c.jsx("span",{className:Gn.separator,"aria-hidden":!0}),c.jsx("span",{className:Gn.summary,"data-follow-end":r||void 0,children:c.jsx("span",{className:Gn.summaryText,children:a})})]}),children:c.jsx("div",{className:Gn.thinkBody,children:e})})})}var Il=wd(),wu,ld;function ix(){if(ld)return wu;ld=1;const e=[[{color:"0, 0, 0",class:"ansi-black"},{color:"187, 0, 0",class:"ansi-red"},{color:"0, 187, 0",class:"ansi-green"},{color:"187, 187, 0",class:"ansi-yellow"},{color:"0, 0, 187",class:"ansi-blue"},{color:"187, 0, 187",class:"ansi-magenta"},{color:"0, 187, 187",class:"ansi-cyan"},{color:"255,255,255",class:"ansi-white"}],[{color:"85, 85, 85",class:"ansi-bright-black"},{color:"255, 85, 85",class:"ansi-bright-red"},{color:"0, 255, 0",class:"ansi-bright-green"},{color:"255, 255, 85",class:"ansi-bright-yellow"},{color:"85, 85, 255",class:"ansi-bright-blue"},{color:"255, 85, 255",class:"ansi-bright-magenta"},{color:"85, 255, 255",class:"ansi-bright-cyan"},{color:"255, 255, 255",class:"ansi-bright-white"}]],r=/(https?:\/\/(?:[A-Za-z0-9#;/?:@=+$',_.!~*()[\]-]|&|%[A-Fa-f0-9]{2})+)/gm;class i{static escapeForHtml(s){return new i().escapeForHtml(s)}static linkify(s){return new i().linkify(s)}static ansiToHtml(s,a){return new i().ansiToHtml(s,a)}static ansiToJson(s,a){return new i().ansiToJson(s,a)}static ansiToText(s){return new i().ansiToText(s)}constructor(){this.fg=this.bg=this.fg_truecolor=this.bg_truecolor=null,this.bright=0,this.decorations=[]}setupPalette(){this.PALETTE_COLORS=[];for(let f=0;f<2;++f)for(let p=0;p<8;++p)this.PALETTE_COLORS.push(e[f][p].color);let s=[0,95,135,175,215,255],a=(f,p,m)=>s[f]+", "+s[p]+", "+s[m];for(let f=0;f<6;++f)for(let p=0;p<6;++p)for(let m=0;m<6;++m)this.PALETTE_COLORS.push(a(f,p,m));let d=8;for(let f=0;f<24;++f,d+=10)this.PALETTE_COLORS.push(d+", "+d+", "+d)}escapeForHtml(s){return s.replace(/[&<>\"]/gm,a=>a=="&"?"&":a=='"'?""":a=="<"?"<":a==">"?">":"")}linkify(s){return s.replace(r,a=>`<a href="${a}">${a}</a>`)}ansiToHtml(s,a){return this.process(s,a,!0)}ansiToJson(s,a){return a=a||{},a.json=!0,a.clearLine=!1,this.process(s,a,!0)}ansiToText(s){return this.process(s,{},!1)}process(s,a,d){let f=this,p=s.split(/\033\[/),m=p.shift();a==null&&(a={}),a.clearLine=/\r/.test(s);let y=p.map(x=>this.processChunk(x,a,d));if(a&&a.json){let x=f.processChunkJson("");return x.content=m,x.clearLine=a.clearLine,y.unshift(x),a.remove_empty&&(y=y.filter(v=>!v.isEmpty())),y}else y.unshift(m);return y.join("")}processChunkJson(s,a,d){a=typeof a>"u"?{}:a;let f=a.use_classes=typeof a.use_classes<"u"&&a.use_classes,p=a.key=f?"class":"color",m={content:s,fg:null,bg:null,fg_truecolor:null,bg_truecolor:null,isInverted:!1,clearLine:a.clearLine,decoration:null,decorations:[],was_processed:!1,isEmpty:()=>!m.content},y=s.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m);if(!y)return m;m.content=y[4];let x=y[2].split(";");if(y[1]!==""||y[3]!=="m"||!d)return m;let v=this;for(;x.length>0;){let C=x.shift(),k=parseInt(C);if(isNaN(k)||k===0)v.fg=v.bg=null,v.decorations=[];else if(k===1)v.decorations.push("bold");else if(k===2)v.decorations.push("dim");else if(k===3)v.decorations.push("italic");else if(k===4)v.decorations.push("underline");else if(k===5)v.decorations.push("blink");else if(k===7)v.decorations.push("reverse");else if(k===8)v.decorations.push("hidden");else if(k===9)v.decorations.push("strikethrough");else if(k===21)v.removeDecoration("bold");else if(k===22)v.removeDecoration("bold"),v.removeDecoration("dim");else if(k===23)v.removeDecoration("italic");else if(k===24)v.removeDecoration("underline");else if(k===25)v.removeDecoration("blink");else if(k===27)v.removeDecoration("reverse");else if(k===28)v.removeDecoration("hidden");else if(k===29)v.removeDecoration("strikethrough");else if(k===39)v.fg=null;else if(k===49)v.bg=null;else if(k>=30&&k<38)v.fg=e[0][k%10][p];else if(k>=90&&k<98)v.fg=e[1][k%10][p];else if(k>=40&&k<48)v.bg=e[0][k%10][p];else if(k>=100&&k<108)v.bg=e[1][k%10][p];else if(k===38||k===48){let P=k===38;if(x.length>=1){let R=x.shift();if(R==="5"&&x.length>=1){let j=parseInt(x.shift());if(j>=0&&j<=255)if(!f)this.PALETTE_COLORS||v.setupPalette(),P?v.fg=this.PALETTE_COLORS[j]:v.bg=this.PALETTE_COLORS[j];else{let V=j>=16?"ansi-palette-"+j:e[j>7?1:0][j%8].class;P?v.fg=V:v.bg=V}}else if(R==="2"&&x.length>=3){let j=parseInt(x.shift()),V=parseInt(x.shift()),S=parseInt(x.shift());if(j>=0&&j<=255&&V>=0&&V<=255&&S>=0&&S<=255){let F=j+", "+V+", "+S;f?P?(v.fg="ansi-truecolor",v.fg_truecolor=F):(v.bg="ansi-truecolor",v.bg_truecolor=F):P?v.fg=F:v.bg=F}}}}}return v.fg===null&&v.bg===null&&v.decorations.length===0||(m.fg=v.fg,m.bg=v.bg,m.fg_truecolor=v.fg_truecolor,m.bg_truecolor=v.bg_truecolor,m.decorations=v.decorations,m.decoration=v.decorations.slice(-1).pop()||null,m.was_processed=!0),m}processChunk(s,a,d){a=a||{};let f=this.processChunkJson(s,a,d),p=a.use_classes;if(f.decorations=f.decorations.filter(k=>{if(k==="reverse"){f.fg||(f.fg=e[0][7][p?"class":"color"]),f.bg||(f.bg=e[0][0][p?"class":"color"]);let P=f.fg;f.fg=f.bg,f.bg=P;let R=f.fg_truecolor;return f.fg_truecolor=f.bg_truecolor,f.bg_truecolor=R,f.isInverted=!0,!1}return!0}),a.json)return f;if(f.isEmpty())return"";if(!f.was_processed)return f.content;let m=[],y=[],x=[],v={},C=k=>{let P=[],R;for(R in k)k.hasOwnProperty(R)&&P.push("data-"+R+'="'+this.escapeForHtml(k[R])+'"');return P.length>0?" "+P.join(" "):""};return f.isInverted&&(v["ansi-is-inverted"]="true"),f.fg&&(p?(m.push(f.fg+"-fg"),f.fg_truecolor!==null&&(v["ansi-truecolor-fg"]=f.fg_truecolor,f.fg_truecolor=null)):m.push("color:rgb("+f.fg+")")),f.bg&&(p?(m.push(f.bg+"-bg"),f.bg_truecolor!==null&&(v["ansi-truecolor-bg"]=f.bg_truecolor,f.bg_truecolor=null)):m.push("background-color:rgb("+f.bg+")")),f.decorations.forEach(k=>{if(p){y.push("ansi-"+k);return}k==="bold"?y.push("font-weight:bold"):k==="dim"?y.push("opacity:0.5"):k==="italic"?y.push("font-style:italic"):k==="hidden"?y.push("visibility:hidden"):k==="strikethrough"?x.push("line-through"):x.push(k)}),x.length&&y.push("text-decoration:"+x.join(" ")),p?'<span class="'+m.concat(y).join(" ")+'"'+C(v)+">"+f.content+"</span>":'<span style="'+m.concat(y).join(";")+'"'+C(v)+">"+f.content+"</span>"}removeDecoration(s){const a=this.decorations.indexOf(s);a>=0&&this.decorations.splice(a,1)}}return wu=i,wu}var lx=ix();const ox=Zu(lx),sx={"0,0,0":"var(--dsw-alias-label-primary)","255,255,255":"var(--dsw-alias-label-primary)","85,85,85":"var(--dsw-alias-label-tertiary)","187,0,0":"var(--dsw-alias-state-error-primary)","255,85,85":"var(--dsw-alias-state-error-secondary)","0,187,0":"var(--dsw-alias-state-success-primary)","0,255,0":"var(--dsw-alias-state-success-secondary)","187,187,0":"var(--dsw-alias-state-warn-primary)","255,255,85":"var(--dsw-alias-state-warn-secondary)","0,0,187":"var(--dsw-alias-state-business-primary)","85,85,255":"var(--dsw-static-blue-400)"},ax={bold:{fontWeight:700},dim:{opacity:.7},italic:{fontStyle:"italic"},underline:{textDecoration:"underline"},strikethrough:{textDecoration:"line-through"},hidden:{visibility:"hidden"}},ux=/\u001b\][^\u0007\u001b]*(?:\u0007|\u001b\\)?/g,cx=/\u001b(?!\[)[\u0020-\u002f]*[\u0030-\u007e]?/g,dx=/[\u0000-\u0007\u000b-\u001a\u001c-\u001f\u007f]/g,fx=/\r|\u0008|\u001b\[[\u0030-\u003f]*[\u0020-\u002f]*K/,px=/\u001b\[([\u0030-\u003f]*)[\u0020-\u002f]*m/g,od=8,hx=/^[\p{Mn}\p{Me}\p{Cf}\u200b-\u200f\u2060]$/u,mx=new RegExp("\\p{Script=Han}|\\p{Script=Hiragana}|\\p{Script=Katakana}|\\p{Script=Hangul}|\\p{Emoji_Presentation}|[\\uff01-\\uff60\\u3000-\\u303e]","u");function ku(e){const r=e.codePointAt(0);return r===void 0||r<4352?!1:mx.test(e)}const wl={fg:"",bg:"",attrs:[]},gx={22:["1","2"],23:["3"],24:["4"],25:["5","6"],27:["7"],28:["8"],29:["9"]};function R3(e,r){const i=r===""?["0"]:r.split(";");let o=e;for(let s=0;s<i.length;s++){const a=String(i[s]);if(a===""||a==="0"){o=wl;continue}if(a==="38"||a==="48"){const p=i[s+1]??"",m=p==="2"?4:p==="5"?2:0,y=i.slice(s,s+m+1).join(";");o=a==="38"?{...o,fg:y}:{...o,bg:y},s+=m;continue}const d=gx[a];if(d!==void 0){o={...o,attrs:o.attrs.filter(p=>!d.includes(p))};continue}const f=Number(a);if(a==="39"){o={...o,fg:""};continue}if(a==="49"){o={...o,bg:""};continue}if(f>=30&&f<=37||f>=90&&f<=97){o={...o,fg:a};continue}if(f>=40&&f<=47||f>=100&&f<=107){o={...o,bg:a};continue}o.attrs.includes(a)||(o={...o,attrs:[...o.attrs,a]})}return o}function sd(e){const r=[...e.attrs];return e.fg!==""&&r.push(e.fg),e.bg!==""&&r.push(e.bg),r.length===0?"":`\x1B[${r.join(";")}m`}function Wo(e,r){return e.fg===r.fg&&e.bg===r.bg&&e.attrs.length===r.attrs.length&&e.attrs.every((i,o)=>i===r.attrs[o])}function xx(e,r){var x;const i=/\u001b\[([\u0030-\u003f]*)[\u0020-\u002f]*([\u0040-\u007e])/g,o=[];let s=0,a=r,d=0;const f=(v,C)=>{var P;const k=o[v];(k==null?void 0:k.spacer)===!0&&v>0?o[v-1]={sgr:a,char:C}:k!==void 0&&ku(k.char)&&((P=o[v+1])==null?void 0:P.spacer)===!0&&(o[v+1]={sgr:a,char:C}),o[v]={sgr:a,char:C}},p=v=>{for(const C of v){if(C==="\r"){s=0;continue}if(C==="\b"){s=Math.max(0,s-1);continue}if(C===" "){const k=s+od-s%od;for(;s<k;s++)o[s]??(o[s]={sgr:a,char:" "});continue}if(hx.test(C)){const k=s>0?o[s-1]:void 0;k!==void 0&&(o[s-1]={sgr:k.sgr,char:k.char+C});continue}f(s," "),o[s]={sgr:a,char:C},s++,ku(C)&&(o[s]={sgr:a,char:"",spacer:!0},s++)}};for(const v of e.matchAll(i)){p(e.slice(d,v.index)),d=v.index+v[0].length;const C=String(v[1]),k=String(v[2]);if(k==="K"){const P=String(C.split(";")[0]);if(P==="1")for(let R=0;R<=s;R++)f(R," ");else o.length=P==="2"?0:s;continue}k==="m"&&(a=R3(a,C))}p(e.slice(d));let m="",y=r;for(let v=0;v<o.length;v++){const C=o[v]??{sgr:wl,char:" "};Wo(C.sgr,y)||(Wo(y,wl)||(m+="\x1B[0m"),m+=sd(C.sgr),y=C.sgr);const k=v>0&&ku(((x=o[v-1])==null?void 0:x.char)??"");m+=C.spacer===!0&&!k?" ":C.char}return Wo(y,a)||(Wo(y,wl)||(m+="\x1B[0m"),m+=sd(a)),{text:m,sgr:a}}function yx(e){const r=[];let i=wl;for(const o of e.split(`
|
|
77
|
+
`)){const s=o.replace(/\r+$/,"");if(fx.test(s)){const a=xx(s,i);r.push(a.text),i=a.sgr;continue}r.push(s);for(const a of s.matchAll(px))i=R3(i,String(a[1]))}return r.join(`
|
|
78
|
+
`)}function vx(e){const r=e.replace(ux,"").replace(cx,"");return yx(r).replace(dx,"")}function Cx(e){const r={},i=e.bg===null?void 0:`rgb(${e.bg})`;if(i!==void 0&&(r.backgroundColor=i),e.fg!==null){const o=`rgb(${e.fg})`;r.color=i===void 0?sx[e.fg.replace(/\s+/g,"")]??o:o}for(const o of e.decorations)Object.assign(r,ax[o]);return Object.keys(r).length===0?void 0:r}function wx(e){let r=[];const i=[r];for(const o of ox.ansiToJson(vx(e),{json:!0,remove_empty:!0})){const s=Cx(o);for(const[a,d]of o.content.split(`
|
|
79
|
+
`).entries())a>0&&(r=[],i.push(r)),d!==""&&r.push({text:d,style:s})}return i}function kx(e,r,i){const o=e-r,s=Math.ceil(r/2);return{hidden:o,capped:o>0&&!i,headLines:s,tailLines:r-s}}async function _x(e){var o;if((o=navigator.clipboard)!=null&&o.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{return!1}const r=typeof document.execCommand=="function"?document.execCommand.bind(document):void 0;if(r===void 0)return!1;const i=document.createElement("textarea");i.value=e,i.setAttribute("readonly",""),i.style.position="fixed",i.style.left="-9999px",document.body.appendChild(i),i.select();try{return r("copy")}catch{return!1}finally{i.remove()}}const bx=1e3;function Sx(e){const[r,i]=E.useState(!1),o=E.useCallback(()=>{r||_x(e).then(s=>{s&&(i(!0),window.setTimeout(()=>{i(!1)},bx))})},[r,e]);return{copied:r,onCopy:o}}const Ex="_pill_e3ygd_1",jx="_interactive_e3ygd_15",Lx="_active_e3ygd_23",hl={pill:Ex,interactive:jx,active:Lx};function Nx({active:e=!1,className:r,children:i,onClick:o,...s}){return o?c.jsx("button",{type:"button",className:st(hl.pill,hl.interactive,e&&hl.active,r),onClick:o,...s,children:i}):c.jsx("span",{className:st(hl.pill,e&&hl.active,r),children:i})}const Ix="_block_1gdtu_1",Px="_header_1gdtu_32",Mx="_prompt_1gdtu_70",Tx="_promptLine_1gdtu_78",zx="_runState_1gdtu_91",Rx="_runStateLabel_1gdtu_99",Dx="_cwd_1gdtu_108",Ax="_command_1gdtu_116",Fx="_status_1gdtu_128",Ox="_copyButton_1gdtu_136",$x="_output_1gdtu_156",Bx="_line_1gdtu_180",Hx="_expand_1gdtu_185",Vx="_empty_1gdtu_201",Ht={block:Ix,header:Px,prompt:Mx,promptLine:Tx,runState:zx,runStateLabel:Rx,cwd:Dx,command:Ax,status:Fx,copyButton:Ox,output:$x,line:Bx,expand:Hx,empty:Vx},Ux=16;function Wx(e,r){const i=e.replace(/[/\\]+$/,"");if(r!==void 0&&i===r.replace(/[/\\]+$/,""))return"~";const o=i.split(/[/\\]/).pop();return o===void 0||o===""?e:o}function D3(e,r,i){if(r!==void 0)return i.signal(r);if(e!==void 0&&e!==0)return i.exitCode(e)}function qx(e,r,i,o){return e?{state:"ongoing",label:o.running}:D3(r,i,o)!==void 0?{state:"error",label:o.failed}:{state:"done",label:o.done}}function ad(e){return e.map((r,i)=>r.style===void 0?r.text:c.jsx("span",{style:r.style,children:r.text},i))}function Zx({command:e,cwd:r,home:i,output:o,exitCode:s,signal:a,running:d=!1,maxLines:f=Ux,className:p,labels:m}){const y=m,x=o??"",v=E.useMemo(()=>{const D=wx(x),L=D[D.length-1];return D.length>1&&L!==void 0&&L.every(te=>te.text==="")?D.slice(0,-1):D},[x]),[C,k]=E.useState(!1),{copied:P,onCopy:R}=Sx(x),j=E.useCallback(()=>{k(D=>!D)},[]),V=D3(s,a,y),S=qx(d,s,a,y),F=E.useMemo(()=>(e.endsWith(`
|
|
80
80
|
`)?e.slice(0,-1):e).split(`
|
|
81
|
-
`),[e]),B=v.every(D=>D.every(L=>L.text.trim()==="")),{hidden:T,capped:ee,headLines:ie,tailLines:Y}=
|
|
82
|
-
`))??null,p=r!=null&&r.isError?"error":r?"ok":i?"running":"pending",m=e.toolName==="bash"||e.toolName==="pwsh",y={bash:"Bash",pwsh:"PowerShell",read:_("读取","Read"),write:_("写入","Write"),edit:_("编辑","Edit"),grep:_("搜索","Search"),glob:_("搜索","Search")}[e.toolName||""]||e.toolName||_("工具调用","Tool call"),x=
|
|
83
|
-
`,1)[0]:x})]}),children:c.jsxs("div",{className:yt.bodyWrap,children:[m?c.jsx(Bx,{command:x,cwd:s,output:f??void 0,running:f===null,exitCode:r!=null&&r.isError?1:r?0:void 0,maxLines:1/0,className:yt.terminalBody,labels:{signal:v=>_(`信号 ${v}`,`Signal ${v}`),exitCode:v=>_(`退出码 ${v}`,`Exit code ${v}`),running:_("运行中","Running"),failed:_("失败","Failed"),done:_("已完成","Done"),copy:_("复制","Copy"),copied:_("已复制","Copied"),noOutput:_("无输出","No output"),collapseAria:_("收起输出","Collapse output"),collapse:_("收起","Collapse"),expandAria:v=>_(`展开其余 ${v} 行输出`,`Expand remaining ${v} output lines`),expand:v=>_(`… 其余 ${v} 行`,`… ${v} more lines`)}}):c.jsxs("div",{className:yt.ioCard,children:[c.jsxs("div",{className:yt.ioSection,children:[c.jsx("span",{className:yt.ioLabel,children:"IN"}),c.jsx("span",{className:yt.ioText,children:e.text})]}),f!==null&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:yt.ioDivider,"aria-hidden":!0}),c.jsxs("div",{className:yt.ioSection,children:[c.jsx("span",{className:yt.ioLabel,children:"OUT"}),c.jsx("span",{className:yt.ioText,"data-error":(r==null?void 0:r.isError)||void 0,children:f||_("无文本输出","No text output")})]})]})]}),o&&c.jsx("button",{className:yt.inspectButton,type:"button",onClick:o,children:_("查看轨迹","View trajectory")})]})})})}function _y({toolCount:e,messageCount:r,open:i,onToggle:o}){const s=[e>0&&_(`${e} 次工具调用`,`${e} tool calls`),r>0&&_(`${r} 条消息`,`${r} messages`)].filter(Boolean);return c.jsxs("button",{type:"button",className:k1.root,"data-open":i||void 0,"aria-expanded":i,onClick:o,children:[c.jsx("span",{className:k1.label,children:s.length?s.join(" · "):_("已思考","Thought")}),c.jsx(wl,{className:k1.chevron})]})}function yr(e){return`${e.toLocaleString()} tok`}function Sy({usage:e,model:r}){const[i,o]=E.useState(!1),s=E.useRef(null),u=E.useRef(null),[d,f]=E.useState(null);E.useLayoutEffect(()=>{if(!i)return;const y=()=>{var P,R;const C=(P=s.current)==null?void 0:P.getBoundingClientRect(),k=(R=u.current)==null?void 0:R.getBoundingClientRect();C&&k&&f({top:Math.max(12,Math.min(window.innerHeight-k.height-12,C.top-k.height-8)),left:Math.max(12,Math.min(C.left,window.innerWidth-k.width-12))})};y();const x=C=>{var k,P;!((k=s.current)!=null&&k.contains(C.target))&&!((P=u.current)!=null&&P.contains(C.target))&&o(!1)},v=C=>{C.key==="Escape"&&o(!1)};return document.addEventListener("pointerdown",x),document.addEventListener("keydown",v),document.addEventListener("scroll",y,!0),window.addEventListener("resize",y),()=>{document.removeEventListener("pointerdown",x),document.removeEventListener("keydown",v),document.removeEventListener("scroll",y,!0),window.removeEventListener("resize",y)}},[i]);const p=e.input+e.cacheRead+e.cacheWrite,m=p>0?Math.round(e.cacheRead/p*100):null;return c.jsxs("span",{ref:s,className:_1.root,children:[c.jsxs("button",{type:"button",className:_1.trigger,"aria-haspopup":"dialog","aria-expanded":i,onClick:()=>o(y=>!y),children:[c.jsx(N1,{}),c.jsxs("span",{className:_1.label,children:[_("用量","Usage")," ",yr(e.totalTokens)]})]}),i&&Nl.createPortal(c.jsxs("div",{ref:u,className:xr.panel,role:"dialog","aria-label":_("本轮用量","Turn usage"),style:d??{top:-1e3,left:-1e3},children:[c.jsxs("div",{className:xr.title,children:[c.jsxs("span",{className:xr.titleLabel,children:[c.jsx(N1,{}),_("本轮用量","Turn usage")]}),c.jsx("span",{className:xr.titleValue,children:yr(e.totalTokens)})]}),c.jsx("div",{className:xr.titleRule,"aria-hidden":!0}),c.jsxs("dl",{className:xr.details,children:[r&&c.jsxs(c.Fragment,{children:[c.jsx("dt",{children:_("提供方 / 模型","Provider / model")}),c.jsx("dd",{className:xr.route,children:r})]}),m!==null&&c.jsxs(c.Fragment,{children:[c.jsx("dt",{children:_("缓存命中","Cache hit")}),c.jsxs("dd",{children:[m,"%"]})]}),c.jsx("dt",{children:_("未缓存输入","Uncached input")}),c.jsx("dd",{children:yr(e.input)}),c.jsx("dt",{children:_("缓存读取","Cache read")}),c.jsx("dd",{children:yr(e.cacheRead)}),c.jsx("dt",{children:_("缓存写入","Cache write")}),c.jsx("dd",{children:yr(e.cacheWrite)}),c.jsx("dt",{children:_("输出","Output")}),c.jsxs("dd",{children:[yr(e.output),e.reasoning!==void 0&&c.jsx("span",{className:xr.reasoning,children:_(`(其中推理 ${yr(e.reasoning)})`,` (including ${yr(e.reasoning)} reasoning)`)})]})]})]}),document.body)]})}function by({text:e,timestamp:r,usage:i,model:o}){const[s,u]=E.useState(!1);return c.jsxs("div",{className:S1.actions,children:[e&&c.jsx("button",{className:S1.action,type:"button","aria-label":s?_("已复制","Copied"):_("复制回复","Copy reply"),onClick:()=>{navigator.clipboard.writeText(e).then(()=>{u(!0),window.setTimeout(()=>u(!1),1e3)})},children:c.jsx(v5,{})}),i&&c.jsx(Sy,{usage:i,model:o}),r&&c.jsx("time",{className:S1.timeEnd,dateTime:r,children:new Date(r).toLocaleTimeString(_("zh-CN","en-US"),{hour:"2-digit",minute:"2-digit"})})]})}function T3(e){const r=[];for(const i of e){(i.role==="user"||r.length===0)&&r.push({id:i.id,index:r.length+1,messages:[],usage:null});const o=r[r.length-1];if(o.messages.push(i),i.usage){const s=o.usage;o.usage={input:((s==null?void 0:s.input)??0)+i.usage.input,output:((s==null?void 0:s.output)??0)+i.usage.output,cacheRead:((s==null?void 0:s.cacheRead)??0)+i.usage.cacheRead,cacheWrite:((s==null?void 0:s.cacheWrite)??0)+i.usage.cacheWrite,totalTokens:((s==null?void 0:s.totalTokens)??0)+i.usage.totalTokens,cost:((s==null?void 0:s.cost)??0)+i.usage.cost,...(s==null?void 0:s.reasoning)!==void 0||i.usage.reasoning!==void 0?{reasoning:((s==null?void 0:s.reasoning)??0)+(i.usage.reasoning??0)}:{}}}}return r}function Ey(e){const r=new Set(e.flatMap(i=>i.blocks.filter(o=>o.kind==="toolCall"&&o.toolCallId).map(o=>o.toolCallId)));return new Map(e.filter(i=>i.role==="tool"&&i.toolCallId&&r.has(i.toolCallId)).map(i=>[i.toolCallId,i]))}const jy="_root_10hwk_2",Ly="_ledger_10hwk_16",ld={root:jy,ledger:Ly},Ny="_tablePane_m0qel_15",Iy="_table_m0qel_15",Py="_eventColumn_m0qel_136",My="_contentColumn_m0qel_140",Ty="_event_m0qel_136",zy="_selectionRail_m0qel_330",Dy="_turnLabel_m0qel_392",Ry="_eventInner_m0qel_435",Ay="_kindSlot_m0qel_443",Fy="_content_m0qel_140",Oy="_kindTag_m0qel_463",$y="_kindTagLabel_m0qel_491",By="_user_m0qel_594",Hy="_assistantVioletBright_m0qel_687",Vy="_toolAmber_m0qel_704",Uy="_contentText_m0qel_722",Wy="_collapsedTurnContent_m0qel_753",qy="_collapsedTurnEllipsis_m0qel_762",Zy="_collapsedTurnText_m0qel_770",Qy="_resultPreview_m0qel_777",Gy="_resultRequest_m0qel_791",Ky="_inlineResultText_m0qel_792",Yy="_toolCallNameTypeface_m0qel_799",Xy="_toolCallPayload_m0qel_805",Jy="_inlineResult_m0qel_792",ev="_arrow_m0qel_834",tv="_error_m0qel_840",nv="_overview_m0qel_844",rv="_details_m0qel_848",iv="_detailsResizeHandle_m0qel_879",lv="_detailsHeader_m0qel_898",ov="_detailsTitle_m0qel_909",sv="_requestDetailsDot_m0qel_917",av="_requestDetailsName_m0qel_926",uv="_detailsLocation_m0qel_931",cv="_close_m0qel_940",dv="_detailBody_m0qel_1021",fv="_markdownPayload_m0qel_1062",pv="_overviewHeading_m0qel_1188",hv="_payload_m0qel_1341",Ie={tablePane:Ny,table:Iy,eventColumn:Py,contentColumn:My,event:Ty,selectionRail:zy,turnLabel:Dy,eventInner:Ry,kindSlot:Ay,content:Fy,kindTag:Oy,kindTagLabel:$y,user:By,assistantVioletBright:Hy,toolAmber:Vy,contentText:Uy,collapsedTurnContent:Wy,collapsedTurnEllipsis:qy,collapsedTurnText:Zy,resultPreview:Qy,resultRequest:Gy,inlineResultText:Ky,toolCallNameTypeface:Yy,toolCallPayload:Xy,inlineResult:Jy,arrow:ev,error:tv,overview:nv,details:rv,detailsResizeHandle:iv,detailsHeader:lv,detailsTitle:ov,requestDetailsDot:sv,requestDetailsName:av,detailsLocation:uv,close:cv,detailBody:dv,markdownPayload:fv,overviewHeading:pv,payload:hv},mv="_root_wxaz8_1",gv="_plot_wxaz8_14",xv="_labels_wxaz8_22",yv="_track_wxaz8_53",vv="_empty_wxaz8_104",Cv="_lanes_wxaz8_118",wv="_turnBoundaries_wxaz8_127",kv="_turnBoundary_wxaz8_144",_v="_span_wxaz8_153",Sv="_selection_wxaz8_253",bv="_selectionEdges_wxaz8_272",Ev="_hoverLine_wxaz8_283",Mt={root:mv,plot:gv,labels:xv,track:yv,empty:vv,lanes:Cv,turnBoundaries:wv,turnBoundary:kv,span:_v,selection:Sv,selectionEdges:bv,hoverLine:Ev},jv="_timelineButton_1dmz1_1",Lv="_turnLabelButton_1dmz1_3",Nv="_empty_1dmz1_5",H1={timelineButton:jv,turnLabelButton:Lv,empty:Nv};function Gn(e,r,i){return Math.min(i,Math.max(r,e))}function Iv({t:e,model:r,actualTime:i,selectedIndex:o,matchingIndexes:s,range:u,onRangeChange:d,onSelect:f}){const p=E.useRef(null),m=E.useRef(null),y=E.useRef(null),[x,v]=E.useState(null),[C,k]=E.useState(null),[P,R]=E.useState(null),[j,V]=E.useState(!1),b=Math.max(1,((r==null?void 0:r.end)??1)-((r==null?void 0:r.start)??0)),$=C&&r?Gn(C.end-C.start,1,b):b,B=r?Gn((C==null?void 0:C.start)??r.start,r.start,r.end-$):0,T=L=>{const Z=L.currentTarget.getBoundingClientRect();return Gn((L.clientX-Z.left)/Math.max(1,Z.width),0,1)},ee=L=>{const Z=L.target instanceof Element?L.target.closest("[data-timeline-record-index]"):null,te=Number(Z==null?void 0:Z.dataset.timelineRecordIndex);return Z&&Number.isFinite(te)?te:null};if(E.useEffect(()=>{k(null),d(null)},[i]),E.useEffect(()=>{!r||!C||(C.end<r.start||C.start>r.end)&&k(null)},[r,C]),E.useEffect(()=>{if(!r||!C||o===null)return;const L=r.spans.find(te=>te.index===o);if(!L||L.start>=B&&L.start<=B+$)return;const Z=Gn(L.start-$/2,r.start,r.end-$);k({start:Z,end:Z+$})},[r,o]),E.useEffect(()=>{const L=p.current;if(!L||!r)return;const Z=te=>{var z;te.preventDefault();const W=(z=m.current)==null?void 0:z.getBoundingClientRect();if(!W)return;const O=Gn((te.clientX-W.left)/Math.max(1,W.width),0,1),I=Gn($*Math.exp(te.deltaY*.0015),Math.min(i?20:4,b),b);if(I>=b*.999){k(null);return}const J=Gn(B+O*($-I),r.start,r.end-I);k({start:J,end:J+I})};return L.addEventListener("wheel",Z,{passive:!1}),()=>L.removeEventListener("wheel",Z)},[r,B,$,b,i]),!r)return c.jsx("section",{ref:p,className:Mt.root,"aria-label":e("会话时间线","Session timeline"),children:c.jsxs("div",{className:Mt.plot,children:[c.jsxs("div",{className:Mt.labels,"aria-hidden":"true",children:[c.jsx("span",{children:e("输入","Input")}),c.jsx("span",{children:e("模型","Model")}),c.jsx("span",{children:e("工具","Tool")})]}),c.jsx("div",{className:Mt.track,children:c.jsx("span",{className:Mt.empty,children:e("暂无轨迹","No trajectory yet")})})]})});const ie={"--trajectory-domain-left":`${-(B-r.start)/$*100}%`,"--trajectory-domain-width":`${b/$*100}%`},Y=x??u,D=Y?{"--trajectory-selection-left":`${(Y.start-B)/$*100}%`,"--trajectory-selection-width":`${(Y.end-Y.start)/$*100}%`}:void 0;return c.jsx("section",{ref:p,className:Mt.root,"aria-label":e("会话时间线","Session timeline"),children:c.jsxs("div",{className:Mt.plot,children:[c.jsxs("div",{className:Mt.labels,"aria-hidden":"true",children:[c.jsx("span",{children:e("输入","Input")}),c.jsx("span",{children:e("模型","Model")}),c.jsx("span",{children:e("工具","Tool")})]}),c.jsxs("div",{ref:m,className:Mt.track,"data-panning":j||void 0,"aria-label":e("时间线概览;拖动选择范围,滚轮缩放,右键拖动平移","Timeline overview; drag to select, scroll to zoom, right drag to pan"),tabIndex:0,onKeyDown:L=>{L.key==="Escape"&&(d(null),k(null))},onDoubleClick:()=>d(null),onContextMenu:L=>L.preventDefault(),onPointerDown:L=>{if(L.button!==0&&L.button!==2)return;const Z=B+T(L)*$;y.current={pointerId:L.pointerId,clientX:L.clientX,time:Z,index:ee(L),pan:L.button===2,viewportStart:B},L.currentTarget.setPointerCapture(L.pointerId),L.button===2?V(!0):v({start:Z,end:Z})},onPointerMove:L=>{R(T(L));const Z=y.current;if(!(!Z||Z.pointerId!==L.pointerId))if(Z.pan){if(!C)return;const te=L.currentTarget.getBoundingClientRect(),W=Gn(Z.viewportStart-(L.clientX-Z.clientX)/Math.max(1,te.width)*$,r.start,r.end-$);k({start:W,end:W+$})}else{const te=B+T(L)*$;v({start:Math.min(Z.time,te),end:Math.max(Z.time,te)})}},onPointerUp:L=>{const Z=y.current;if(!Z||Z.pointerId!==L.pointerId)return;if(y.current=null,L.currentTarget.releasePointerCapture(L.pointerId),V(!1),v(null),Z.pan){Math.abs(L.clientX-Z.clientX)<3&&d(null);return}if(Math.abs(L.clientX-Z.clientX)<3&&Z.index!==null){d(null),f(Z.index);return}const te=B+T(L)*$,W=Math.min($,b/r.spans.length),O=(Z.time+te)/2,I=Math.max(W,Math.abs(te-Z.time)),J=Gn(O-I/2,r.start,r.end-I);d({start:J,end:J+I})},onPointerCancel:()=>{y.current=null,v(null),V(!1)},onPointerLeave:()=>{y.current||R(null)},children:[P!==null&&!x&&c.jsx("div",{className:Mt.hoverLine,style:{"--trajectory-hover-left":`${P*100}%`},"aria-hidden":"true"}),D&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:Mt.selection,style:D,"aria-hidden":"true"}),c.jsx("div",{className:Mt.selectionEdges,style:D,"aria-hidden":"true"})]}),c.jsx("div",{className:Mt.turnBoundaries,style:ie,"aria-hidden":"true",children:r.boundaries.slice(1).map(L=>c.jsx("span",{className:Mt.turnBoundary,style:{"--trajectory-turn-left":`${(L.time-r.start)/b*100}%`}},L.turn))}),c.jsx("div",{className:Mt.lanes,style:ie,children:r.spans.map(L=>{const Z=(L.end-L.start)/b*100;return c.jsx("button",{type:"button",className:`${Mt.span} ${H1.timelineButton}`,"data-timeline-record-index":L.index,"data-timeline-span":L.lane===0?"user":L.lane===2?"tool":"message","data-equal-duration":i&&L.end===L.start||void 0,"data-current":o===L.index||void 0,"data-error":L.error||void 0,"data-selected":Y?L.start<=Y.end&&L.end>=Y.start?"true":"false":void 0,"data-search-match":s?s.has(L.index)?"true":"false":void 0,"aria-label":e(`第 ${L.index} 条轨迹`,`Trajectory record ${L.index}`),title:e(`第 ${L.index} 条 · ${i?new Date(L.start).toLocaleTimeString():"事件顺序"}`,`Record ${L.index} · ${i?new Date(L.start).toLocaleTimeString():"event order"}`),style:{"--trajectory-span-left":`${(L.start-r.start)/b*100}%`,"--trajectory-span-width":`${Z}%`,"--trajectory-span-gap":`min(${Z*.08}%, 1px)`,"--trajectory-span-lane":L.lane},onClick:te=>{te.detail===0&&f(L.index)}},L.index)})})]})]})})}function Pv(e,r){if(e.length===0)return null;const i=e.map(p=>Date.parse(p.timestamp)).find(Number.isFinite)??0,o=e.map((p,m)=>{const y=Date.parse(p.timestamp),x=r&&Number.isFinite(y)?y:m,v=p.endTimestamp?Date.parse(p.endTimestamp):NaN;return{index:p.index,start:x,end:r&&Number.isFinite(v)&&v>x?v:r?x:m+1,lane:p.kind==="user"?0:p.kind==="tool"?2:1,error:p.error===!0}}),s=e.flatMap((p,m)=>m===0||p.turn!==e[m-1].turn?[{turn:p.turn,time:o[m].start}]:[]),u=r?Math.min(i,...o.map(p=>p.start)):0,d=Math.max(...o.map(p=>p.end)),f=r?d+Math.max(1,(d-u)/100):e.length;return{start:u,end:f,spans:o,boundaries:s}}function Mv(e,r,i){return new Set(e.spans.filter(o=>o.start<=i&&o.end>=r).map(o=>o.index))}const Tv="_root_15786_1",zv="_inner_15786_12",Dv="_actions_15786_22",Rv="_toggle_15786_29",Av="_toggleIcon_15786_59",Fv="_action_15786_22",Ov="_actionIcon_15786_163",$v="_search_15786_168",Bv="_searchIcon_15786_192",Hv="_searchInput_15786_196",pn={root:Tv,inner:zv,actions:Dv,toggle:Rv,toggleIcon:Av,action:Fv,actionIcon:Ov,search:$v,searchIcon:Bv,searchInput:Hv};function V1(e){return e.replace(/\s+/g," ").trim()}function Vv(e){try{return JSON.stringify(JSON.parse(e))}catch{return V1(e)}}function Uv(e){const r=new Map(e.filter(o=>o.role==="tool"&&o.toolCallId).map(o=>[o.toolCallId,o]));let i=0;return T3(e).flatMap(o=>{const s=[],u=new Set(o.messages.flatMap(d=>d.blocks.filter(f=>f.kind==="toolCall"&&f.toolCallId).map(f=>f.toolCallId)));for(const d of o.messages)if(!(d.role==="tool"&&d.toolCallId&&u.has(d.toolCallId)))for(const[f,p]of d.blocks.entries()){const m=d.role==="user"?"user":d.role==="tool"||p.kind==="toolCall"?"tool":"message",y=p.kind==="toolCall"&&p.toolCallId?r.get(p.toolCallId):void 0;s.push({id:`${d.id}-${f}`,...p.toolCallId||d.toolCallId?{callId:p.toolCallId??d.toolCallId}:{},kind:m,label:m==="tool"?_("工具","Tool"):d.role==="user"?_("用户","User"):_("助手","Assistant"),...m==="tool"?{toolName:p.kind==="toolCall"?p.toolName||_("工具","Tool"):d.toolName||_("工具","Tool")}:{},text:p.text,preview:p.kind==="toolCall"?Vv(p.text):V1(p.text),...y?{result:V1(y.blocks.map(x=>x.text).join(" "))}:{},timestamp:d.timestamp,...y?{endTimestamp:y.timestamp}:{},...d.usage&&f===d.blocks.length-1?{usage:d.usage}:{},...d.isError||y!=null&&y.isError?{error:!0}:{},turn:o.index,index:++i})}return s})}function Wo(e){return e===void 0?"":e.toLocaleString()}function od(e,r){return Math.round(Math.min(Math.max(e,320),Math.max(320,Math.min(720,r-280))))}function Wv({messages:e,inspectCallId:r}){var O;const i=kr(),o=E.useMemo(()=>Uv(e),[e,i]),s=((O=o.at(-1))==null?void 0:O.turn)??0,[u,d]=E.useState(""),[f,p]=E.useState(null),[m,y]=E.useState(new Set),[x,v]=E.useState(!1),[C,k]=E.useState(!1),[P,R]=E.useState(null),[j,V]=E.useState(null),b=E.useRef(null),$=E.useRef(null);E.useEffect(()=>{var I;r&&p(((I=o.find(J=>J.callId===r))==null?void 0:I.id)??null)},[r,o]);const B=o.find(I=>I.id===f)??null,T=u.trim().toLocaleLowerCase(),ee=E.useMemo(()=>Pv(o,C),[o,C]),ie=ee&&P?Mv(ee,P.start,P.end):null,Y=T?new Set(o.filter(I=>`${I.label} ${I.toolName??""} ${I.preview} ${I.result??""}`.toLocaleLowerCase().includes(T)).map(I=>I.index)):null,D=o.filter(I=>!m.has(I.turn)&&(!x||I.kind!=="tool")&&(!T||`${I.label} ${I.toolName??""} ${I.preview} ${I.result??""}`.toLocaleLowerCase().includes(T))),L=new Map;for(const I of D){const J=L.get(I.turn)??[];J.push(I),L.set(I.turn,J)}const Z=new Map;for(const I of o)Z.set(I.turn,(Z.get(I.turn)??0)+1);const te=Array.from({length:s},(I,J)=>J+1).flatMap(I=>m.has(I)?[{type:"collapsed",turn:I,count:Z.get(I)??0}]:(L.get(I)??[]).map((z,ne)=>({type:"record",record:z,firstInTurn:ne===0}))),W=I=>{var J,z;p(I.id),(z=(J=$.current)==null?void 0:J.querySelector(`[data-record-index="${I.index}"]`))==null||z.scrollIntoView({block:"center",behavior:"smooth"})};return c.jsxs("div",{className:ld.root,"data-conversation-composer-overlay":!0,"aria-label":_("会话轨迹","Session trajectory"),children:[c.jsx("div",{className:pn.root,role:"toolbar","aria-label":_("轨迹工具栏","Trajectory toolbar"),children:c.jsxs("div",{className:pn.inner,children:[c.jsxs("div",{className:pn.actions,children:[c.jsxs("button",{type:"button",className:pn.toggle,"aria-pressed":C,title:C?_("按事件顺序排列","Arrange by event order"):_("按记录时间排列","Arrange by recorded time"),onClick:()=>k(I=>!I),children:[c.jsxs("svg",{className:pn.toggleIcon,viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[c.jsx("circle",{cx:"8",cy:"8",r:"5.25"}),c.jsx("path",{d:"M8 4.75V8l2.25 1.5"})]}),_("时长","Duration")]}),c.jsxs("button",{type:"button",className:pn.action,"aria-pressed":s>0&&m.size===s,"aria-label":s>0&&m.size===s?_("展开轮次","Expand turns"):_("折叠轮次","Collapse turns"),onClick:()=>y(I=>I.size===s?new Set:new Set(Array.from({length:s},(J,z)=>z+1))),children:[c.jsx("span",{className:pn.actionIcon,"aria-hidden":"true",children:m.size===s?"⊞":"⊟"}),_("轮次","Turns")]}),c.jsxs("button",{type:"button",className:pn.action,"aria-pressed":x,"aria-label":x?_("展开调用","Expand calls"):_("折叠调用","Collapse calls"),onClick:()=>v(I=>!I),children:[c.jsx("span",{className:pn.actionIcon,"aria-hidden":"true",children:x?"⊞":"⊟"}),_("调用","Calls")]})]}),c.jsxs("label",{className:pn.search,children:[c.jsx(yd,{size:11,className:pn.searchIcon}),c.jsx("input",{type:"search",className:pn.searchInput,"aria-label":_("搜索轨迹","Search trajectory"),placeholder:_("搜索","Search"),value:u,onChange:I=>d(I.target.value)})]})]})}),c.jsx(Iv,{t:_,model:ee,actualTime:C,selectedIndex:(B==null?void 0:B.index)??null,matchingIndexes:Y,range:P,onRangeChange:R,onSelect:I=>{const J=o.find(z=>z.index===I);J&&W(J)}}),c.jsxs("div",{className:ld.ledger,children:[c.jsx("div",{ref:$,className:Ie.tablePane,children:c.jsxs("table",{className:Ie.table,"data-scroll-ready":"true","aria-label":_("轨迹记录","Trajectory records"),children:[c.jsxs("colgroup",{children:[c.jsx("col",{className:Ie.eventColumn}),c.jsx("col",{className:Ie.contentColumn})]}),c.jsxs("tbody",{children:[te.map(I=>I.type==="collapsed"?c.jsxs("tr",{tabIndex:0,"data-collapsed-summary":"turn","data-turn-start":"true","aria-label":_(`展开第 ${I.turn} 轮`,`Expand turn ${I.turn}`),onClick:()=>y(J=>{const z=new Set(J);return z.delete(I.turn),z}),onKeyDown:J=>{(J.key==="Enter"||J.key===" ")&&(J.preventDefault(),y(z=>{const ne=new Set(z);return ne.delete(I.turn),ne}))},children:[c.jsx("td",{className:Ie.event,children:c.jsx("span",{className:Ie.turnLabel,children:_(`第 ${I.turn} 轮`,`Turn ${I.turn}`)})}),c.jsx("td",{className:Ie.content,children:c.jsxs("span",{className:Ie.collapsedTurnContent,children:[c.jsx("span",{className:Ie.collapsedTurnEllipsis,children:"…"}),c.jsx("span",{className:Ie.collapsedTurnText,children:_(`${I.count} 条记录,点击展开`,`${I.count} records, click to expand`)})]})})]},`collapsed-${I.turn}`):c.jsxs("tr",{tabIndex:0,"data-record-index":I.record.index,"data-kind":I.record.kind,"data-turn-start":I.firstInTurn||void 0,"data-error":I.record.error||void 0,"data-selected":f===I.record.id||void 0,"data-timeline-focus":ie?ie.has(I.record.index)?"inside":"outside":void 0,"aria-selected":f===I.record.id,"aria-label":_(`第 ${I.record.turn} 轮,${I.record.label},${I.record.preview}`,`Turn ${I.record.turn}, ${I.record.label}, ${I.record.preview}`),onClick:()=>W(I.record),onKeyDown:J=>{(J.key==="Enter"||J.key===" ")&&(J.preventDefault(),W(I.record))},children:[c.jsxs("td",{className:Ie.event,children:[I.firstInTurn&&c.jsx("button",{type:"button",className:H1.turnLabelButton,"aria-label":_(`折叠第 ${I.record.turn} 轮`,`Collapse turn ${I.record.turn}`),onClick:J=>{J.stopPropagation(),y(z=>new Set([...z,I.record.turn]))},children:c.jsx("span",{className:Ie.turnLabel,children:_(`第 ${I.record.turn} 轮`,`Turn ${I.record.turn}`)})}),c.jsx("div",{className:Ie.eventInner,children:c.jsx("span",{className:Ie.kindSlot,children:c.jsx("span",{className:`${Ie.kindTag} ${I.record.kind==="user"?Ie.user:I.record.kind==="tool"?Ie.toolAmber:Ie.assistantVioletBright}`,children:c.jsx("span",{className:Ie.kindTagLabel,children:I.record.label})})})}),f===I.record.id&&c.jsx("span",{className:Ie.selectionRail,"aria-hidden":"true"})]}),c.jsx("td",{className:Ie.content,children:c.jsxs("span",{className:I.record.result===void 0?Ie.contentText:Ie.resultPreview,title:I.record.result===void 0?I.record.preview:`${I.record.label} ${I.record.preview} → ${I.record.result}`,children:[c.jsxs("span",{className:I.record.result===void 0?void 0:Ie.resultRequest,children:[I.record.kind==="tool"&&c.jsx("span",{className:Ie.toolCallNameTypeface,children:I.record.toolName}),c.jsx("span",{className:I.record.kind==="tool"?Ie.toolCallPayload:void 0,children:I.record.preview})]}),I.record.result!==void 0&&c.jsxs("span",{className:`${Ie.inlineResult} ${I.record.error?Ie.error:""}`,children:[c.jsx("span",{className:Ie.arrow,children:"→"}),c.jsx("span",{className:Ie.inlineResultText,children:I.record.result})]})]})})]},I.record.id)),te.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:2,className:H1.empty,children:o.length===0?_("暂无轨迹","No trajectory yet"):_("没有匹配的记录","No matching records")})})]})]})}),B&&c.jsxs("aside",{id:"trajectory-detail-panel",className:Ie.details,"aria-label":_("轨迹详情","Trajectory details"),style:j===null?void 0:{width:j},children:[c.jsx("div",{className:Ie.detailsResizeHandle,role:"separator","aria-label":_("调整轨迹详情宽度","Resize trajectory details"),"aria-controls":"trajectory-detail-panel","aria-orientation":"vertical",tabIndex:0,title:_("拖动调整详情宽度,双击恢复","Drag to resize details; double click to reset"),onDoubleClick:()=>V(null),onPointerDown:I=>{var ne;if(I.button!==0)return;const J=I.currentTarget.parentElement,z=(ne=J==null?void 0:J.parentElement)==null?void 0:ne.getBoundingClientRect().width;!J||!z||(b.current={pointerId:I.pointerId,startX:I.clientX,startWidth:J.getBoundingClientRect().width,splitWidth:z},I.currentTarget.setPointerCapture(I.pointerId),I.preventDefault())},onPointerMove:I=>{const J=b.current;!J||J.pointerId!==I.pointerId||V(od(J.startWidth+J.startX-I.clientX,J.splitWidth))},onPointerUp:I=>{var J;((J=b.current)==null?void 0:J.pointerId)===I.pointerId&&(b.current=null,I.currentTarget.releasePointerCapture(I.pointerId))},onPointerCancel:()=>{b.current=null},onKeyDown:I=>{var ne;if(I.key!=="ArrowLeft"&&I.key!=="ArrowRight")return;const J=I.currentTarget.parentElement,z=(ne=J==null?void 0:J.parentElement)==null?void 0:ne.getBoundingClientRect().width;!J||!z||(V(od(J.getBoundingClientRect().width+(I.key==="ArrowLeft"?16:-16),z)),I.preventDefault())}}),c.jsxs("div",{className:Ie.detailsHeader,children:[c.jsxs("span",{className:Ie.detailsTitle,children:[B.kind==="tool"?c.jsx("span",{className:Ie.requestDetailsDot}):c.jsx(N1,{size:14}),c.jsx("span",{className:Ie.requestDetailsName,children:B.toolName??B.label}),c.jsxs("span",{className:Ie.detailsLocation,children:[_(`第 ${B.turn} 轮`,`Turn ${B.turn}`)," · #",B.index]})]}),c.jsx("button",{type:"button",className:Ie.close,"aria-label":_("关闭详情","Close details"),onClick:()=>p(null),children:c.jsx(ss,{})})]}),c.jsxs("div",{className:Ie.detailBody,children:[c.jsxs("dl",{className:Ie.overview,children:[c.jsxs("div",{children:[c.jsx("dt",{children:_("时间","Time")}),c.jsx("dd",{children:new Date(B.timestamp).toLocaleString(_("zh-CN","en-US"))})]}),B.callId&&c.jsxs("div",{children:[c.jsx("dt",{children:_("调用 ID","Call ID")}),c.jsx("dd",{children:B.callId})]}),B.usage&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{children:[c.jsx("dt",{children:_("输入","Input")}),c.jsx("dd",{children:Wo(B.usage.input)})]}),c.jsxs("div",{children:[c.jsx("dt",{children:_("缓存读取","Cache read")}),c.jsx("dd",{children:Wo(B.usage.cacheRead)})]}),c.jsxs("div",{children:[c.jsx("dt",{children:_("缓存写入","Cache write")}),c.jsx("dd",{children:Wo(B.usage.cacheWrite)})]}),c.jsxs("div",{children:[c.jsx("dt",{children:_("输出","Output")}),c.jsx("dd",{children:Wo(B.usage.output)})]})]})]}),c.jsx("div",{className:Ie.overviewHeading,children:_("内容","Content")}),B.kind==="tool"?c.jsx("pre",{className:Ie.payload,children:B.text}):c.jsx("div",{className:Ie.markdownPayload,children:c.jsx(N3,{text:B.text})}),B.result!==void 0&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:Ie.overviewHeading,children:_("结果","Result")}),c.jsx("pre",{className:Ie.payload,children:B.result})]})]})]})]})]})}const qv="_root_aie2r_1",Zv="_trigger_aie2r_9",Qv="_triggerLabel_aie2r_45",Gv="_triggerEffort_aie2r_56",Kv="_triggerIcon_aie2r_67",Yv="_chevron_aie2r_88",Xv="_chevronOpen_aie2r_94",Jv="_menu_aie2r_101",eC="_empty_aie2r_132",tC="_groups_aie2r_123",nC="_group_aie2r_123",rC="_groupTitle_aie2r_179",iC="_option_aie2r_191",lC="_selected_aie2r_216",oC="_optionCopy_aie2r_225",sC="_modelName_aie2r_232",aC="_check_aie2r_242",uC="_cell_aie2r_252",cC="_cellLabel_aie2r_275",dC="_cellValue_aie2r_280",fC="_cellChevron_aie2r_290",We={root:qv,trigger:Zv,triggerLabel:Qv,triggerEffort:Gv,triggerIcon:Kv,chevron:Yv,chevronOpen:Xv,menu:Jv,empty:eC,groups:tC,group:nC,groupTitle:rC,option:iC,selected:lC,optionCopy:oC,modelName:sC,check:aC,cell:uC,cellLabel:cC,cellValue:dC,cellChevron:fC};function pC({openSignal:e=0,current:r,models:i,disabled:o,onSelect:s,thinkingLevel:u,thinkingLevels:d,onSelectThinkingLevel:f}){const p={off:_("关闭","Off"),minimal:_("极低","Minimal"),low:_("低","Low"),medium:_("中","Medium"),high:_("高","High"),xhigh:_("极高","Extra high")},[m,y]=E.useState(!1),x=E.useRef(e);E.useEffect(()=>{e!==x.current&&(x.current=e,o||y(!0))},[e,o]);const[v,C]=E.useState("root"),[k,P]=E.useState(!1),[R,j]=E.useState({visibility:"hidden",left:0,top:0}),V=E.useId(),b=E.useRef(null),$=E.useRef(null),B=E.useRef(null),T=E.useMemo(()=>{const W=new Map;for(const O of i)W.set(O.provider,[...W.get(O.provider)??[],O]);return[...W]},[i]),ee=i.find(W=>`${W.provider}/${W.id}`===r),ie=(ee==null?void 0:ee.name)||(r&&r!=="unknown/unknown"?r:_("选择模型","Choose a model")),Y=d.length>1&&u?p[u]??u:null,D=(W=!1)=>{var O;y(!1),C("root"),W&&((O=$.current)==null||O.focus())};E.useEffect(()=>{if(!m)return;const W=O=>{var I,J;!((I=b.current)!=null&&I.contains(O.target))&&!((J=B.current)!=null&&J.contains(O.target))&&D()};return document.addEventListener("mousedown",W),()=>document.removeEventListener("mousedown",W)},[m]),E.useLayoutEffect(()=>{if(!m||!$.current||!B.current)return;const W=()=>{if(!$.current||!B.current)return;const O=$.current.getBoundingClientRect(),I=B.current.getBoundingClientRect(),J=Math.max(16,Math.min(O.right-I.width,innerWidth-I.width-16)),z=O.top-I.height-8>=16?O.top-I.height-8:Math.min(O.bottom+8,innerHeight-I.height-16);j({left:J,top:z})};return W(),window.addEventListener("resize",W),window.addEventListener("scroll",W,!0),()=>{window.removeEventListener("resize",W),window.removeEventListener("scroll",W,!0)}},[m,v,i.length]);const L=W=>{var J,z;if(W.key==="Escape"){W.preventDefault(),v==="root"?D(!0):C("root");return}if(W.key!=="ArrowDown"&&W.key!=="ArrowUp")return;W.preventDefault();const O=[...((J=B.current)==null?void 0:J.querySelectorAll('button[role^="menuitem"]'))??[]].filter(ne=>!ne.disabled),I=O.indexOf(document.activeElement);(z=O[(I+(W.key==="ArrowDown"?1:-1)+O.length)%O.length])==null||z.focus()},Z=async W=>{if(`${W.provider}/${W.id}`===r){D(!0);return}P(!0);try{await s(W.provider,W.id),D(!0)}catch{}finally{P(!1)}},te=async W=>{if(W===u){D(!0);return}P(!0);try{await f(W),D(!0)}catch{}finally{P(!1)}};return c.jsxs("div",{ref:b,className:We.root,onKeyDown:L,children:[c.jsxs("button",{ref:$,className:We.trigger,type:"button","aria-label":_(`切换模型,当前 ${ie}${Y?`,推理强度${Y}`:""}`,`Change model, current ${ie}${Y?`, reasoning effort ${Y}`:""}`),"aria-haspopup":"menu","aria-expanded":m,"aria-controls":m?`${V}-menu`:void 0,title:Y?`${ie} · ${Y}`:ie,disabled:o||k,onClick:()=>m?D():y(!0),children:[c.jsx(Cd,{className:We.triggerIcon,size:16}),c.jsx("span",{className:We.triggerLabel,children:ie}),Y&&c.jsx("span",{className:We.triggerEffort,children:Y}),c.jsx(wl,{className:`${We.chevron} ${m?We.chevronOpen:""}`})]}),m&&Nl.createPortal(c.jsx("div",{ref:B,id:`${V}-menu`,role:"menu","aria-label":_("选择模型","Choose model"),className:We.menu,style:R,children:v==="root"?c.jsxs(c.Fragment,{children:[c.jsxs("button",{type:"button",role:"menuitem",className:We.cell,onClick:()=>C("model"),children:[c.jsx("span",{className:We.cellLabel,children:_("模型","Model")}),c.jsx("span",{className:We.cellValue,children:ie}),c.jsx(es,{className:We.cellChevron})]}),Y&&c.jsxs("button",{type:"button",role:"menuitem",className:We.cell,onClick:()=>C("effort"),children:[c.jsx("span",{className:We.cellLabel,children:_("推理强度","Reasoning effort")}),c.jsx("span",{className:We.cellValue,children:Y}),c.jsx(es,{className:We.cellChevron})]})]}):v==="model"?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:We.groups,children:T.map(([W,O])=>c.jsxs("section",{className:We.group,role:"group","aria-label":W,children:[c.jsx("div",{className:We.groupTitle,children:W}),O==null?void 0:O.map(I=>c.jsxs("button",{type:"button",role:"menuitemradio","aria-checked":`${I.provider}/${I.id}`===r,className:`${We.option} ${`${I.provider}/${I.id}`===r?We.selected:""}`,title:I.name||I.id,disabled:k,onClick:()=>{Z(I)},children:[c.jsx("span",{className:We.optionCopy,children:c.jsx("span",{className:We.modelName,children:I.name||I.id})}),c.jsx("span",{className:We.check,children:`${I.provider}/${I.id}`===r&&c.jsx(L1,{})})]},I.id))]},W))}),i.length===0&&c.jsx("div",{className:We.empty,children:_("暂无可用模型","No models available")})]}):c.jsx("div",{className:We.groups,children:d.map(W=>c.jsxs("button",{type:"button",role:"menuitemradio","aria-checked":W===u,className:`${We.option} ${W===u?We.selected:""}`,disabled:k,onClick:()=>{te(W)},children:[c.jsx("span",{className:We.optionCopy,children:c.jsx("span",{className:We.modelName,children:p[W]??W})}),c.jsx("span",{className:We.check,children:W===u&&c.jsx(L1,{})})]},W))})}),document.body)]})}const hC="_backdrop_1x9ns_1",mC="_mask_1x9ns_13",gC="_image_1x9ns_20",xC="_close_1x9ns_30",qo={backdrop:hC,mask:mC,image:gC,close:xC};function z3({src:e,alt:r,labels:i,onClose:o}){const s=E.useRef(null),u=E.useRef(null);return E.useEffect(()=>{var f;u.current=document.activeElement instanceof HTMLElement?document.activeElement:null,(f=s.current)==null||f.focus();const d=p=>{p.key==="Escape"&&o()};return window.addEventListener("keydown",d),()=>{var p;window.removeEventListener("keydown",d),(p=u.current)==null||p.focus()}},[o]),Nl.createPortal(c.jsxs("div",{className:qo.backdrop,role:"dialog","aria-modal":"true","aria-label":i.dialog,children:[c.jsx("div",{className:qo.mask,"aria-hidden":"true",onMouseDown:o}),c.jsx("img",{className:qo.image,src:e,alt:r}),c.jsx("button",{ref:s,type:"button",className:qo.close,"aria-label":i.close,onClick:o,children:c.jsx(ss,{size:16})})]}),document.body)}const yC="__PIW_CODE_ICON_INSTANCE__",vC=Object.freeze({angular:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F8ECEF" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#DD0031" d="M16.712 17.711H7.288l-1.204 2.916L12 24l5.916-3.373-1.204-2.916ZM14.692 0l7.832 16.855.814-12.856L14.692 0ZM9.308 0 .662 3.999l.814 12.856L9.308 0Zm-.405 13.93h6.198L12 6.396 8.903 13.93Z"/></g>',c:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EEF4F8" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#659AD2" d="M16.5921 9.1962s-.354-3.298-3.627-3.39c-3.2741-.09-4.9552 2.474-4.9552 6.14 0 3.6651 1.858 6.5972 5.0451 6.5972 3.184 0 3.5381-3.665 3.5381-3.665l6.1041.365s.36 3.31-2.196 5.836c-2.552 2.5241-5.6901 2.9371-7.8762 2.9201-2.19-.017-5.2261.034-8.1602-2.97-2.938-3.0101-3.436-5.9302-3.436-8.8002 0-2.8701.556-6.6702 4.047-9.5502C7.444.72 9.849 0 12.254 0c10.0422 0 10.7172 9.2602 10.7172 9.2602z"/></g>',clojure:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F1F7EC" stroke="#DCEAD2" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><g fill="none"><path d="M64 0C28.712 0 0 28.6 0 63.751c0 35.155 28.712 63.753 64 63.753s64-28.598 64-63.753C128 28.6 99.288 0 64 0" fill="#FFF"/><path d="M61.659 64.898a265.825 265.825 0 00-1.867 4.12c-2.322 5.241-4.894 11.62-5.834 15.706-.337 1.455-.546 3.258-.542 5.258 0 .79.043 1.622.11 2.469a30.74 30.74 0 0010.533 1.87 30.796 30.796 0 009.642-1.566 18.09 18.09 0 01-2.011-2.12c-4.11-5.221-6.403-12.872-10.031-25.737M46.485 38.96c-7.85 5.51-12.986 14.6-13.005 24.9.019 10.145 5.001 19.116 12.653 24.65 1.877-7.789 6.582-14.92 13.637-29.214a114.691 114.691 0 00-1.43-3.72c-1.955-4.884-4.776-10.556-7.294-13.124-1.283-1.342-2.84-2.502-4.561-3.492" fill="#91DC47"/><path d="M90.697 98.798c-4.05-.506-7.392-1.116-10.317-2.144a36.708 36.708 0 01-16.32 3.807c-20.293 0-36.742-16.383-36.745-36.602 0-10.97 4.852-20.805 12.528-27.512-2.053-.495-4.194-.783-6.38-.779-10.782.101-22.162 6.044-26.9 22.095-.443 2.337-.337 4.103-.337 6.197 0 31.818 25.895 57.613 57.835 57.613 19.561 0 36.841-9.682 47.305-24.489-5.66 1.405-11.103 2.077-15.763 2.091-1.747 0-3.387-.093-4.906-.277" fill="#63B132"/><path d="M79.829 87.634c.357.176 1.167.464 2.293.783 7.579-5.542 12.504-14.469 12.523-24.558h-.003c-.028-16.82-13.693-30.43-30.582-30.462a30.765 30.765 0 00-9.602 1.554c6.21 7.05 9.196 17.127 12.084 28.148l.005.013c.005.009.924 3.06 2.501 7.11 1.566 4.042 3.797 9.048 6.23 12.696 1.597 2.444 3.354 4.2 4.551 4.716" fill="#90B4FE"/><path d="M17.057 30.311c5.463-3.408 11.04-4.637 15.908-4.593 6.722.02 12.008 2.096 14.544 3.516.612.352 1.194.73 1.764 1.12a36.714 36.714 0 0114.786-3.096c20.295.003 36.747 16.386 36.75 36.601-.003 10.192-4.188 19.408-10.934 26.044a45.3 45.3 0 005.225.29c6.406.004 13.329-1.404 18.52-5.753 3.384-2.84 6.22-6.998 7.792-13.233.307-2.408.484-4.856.484-7.347 0-31.817-25.892-57.614-57.835-57.614-19.372 0-36.508 9.5-47.004 24.065z" fill="#5881D8"/></g></svg>',cmake:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F2F5F7" stroke="#D9E1E7" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#064F8C" d="M62.8.4L.3 123.8l68.1-57.9z"/><path fill="#249847" d="M123.8 127.7l-84-33.9L0 127.7z"/><path fill="#BE2128" d="M128 126.6L65.6 2.5l9.2 102.6z"/><path fill="#CDCDCE" d="M71.9 104l-3.1-34.9L42 92z"/></svg>',cpp:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#E8F2F8" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#00599C" d="M22.394 6c-.167-.29-.398-.543-.652-.69L12.926.22c-.509-.294-1.34-.294-1.848 0L2.26 5.31c-.508.293-.923 1.013-.923 1.6v10.18c0 .294.104.62.271.91.167.29.398.543.652.69l8.816 5.09c.508.293 1.34.293 1.848 0l8.816-5.09c.254-.147.485-.4.652-.69.167-.29.27-.616.27-.91V6.91c.003-.294-.1-.62-.268-.91zM12 19.11c-3.92 0-7.109-3.19-7.109-7.11 0-3.92 3.19-7.11 7.11-7.11a7.133 7.133 0 016.156 3.553l-3.076 1.78a3.567 3.567 0 00-3.08-1.78A3.56 3.56 0 008.444 12 3.56 3.56 0 0012 15.555a3.57 3.57 0 003.08-1.778l3.078 1.78A7.135 7.135 0 0112 19.11zm7.11-6.715h-.79v.79h-.79v-.79h-.79v-.79h.79v-.79h.79v.79h.79zm2.962 0h-.79v.79h-.79v-.79h-.79v-.79h.79v-.79h.79v.79h.79z"/></g>',csharp:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3EEF7" stroke="#E2D7EA" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#9B4F96" d="M115.4 30.7L67.1 2.9c-.8-.5-1.9-.7-3.1-.7-1.2 0-2.3.3-3.1.7l-48 27.9c-1.7 1-2.9 3.5-2.9 5.4v55.7c0 1.1.2 2.4 1 3.5l106.8-62c-.6-1.2-1.5-2.1-2.4-2.7z"/><path fill="#68217A" d="M10.7 95.3c.5.8 1.2 1.5 1.9 1.9l48.2 27.9c.8.5 1.9.7 3.1.7 1.2 0 2.3-.3 3.1-.7l48-27.9c1.7-1 2.9-3.5 2.9-5.4V36.1c0-.9-.1-1.9-.6-2.8l-106.6 62z"/><path fill="#fff" d="M85.3 76.1C81.1 83.5 73.1 88.5 64 88.5c-13.5 0-24.5-11-24.5-24.5s11-24.5 24.5-24.5c9.1 0 17.1 5 21.3 12.5l13-7.5c-6.8-11.9-19.6-20-34.3-20-21.8 0-39.5 17.7-39.5 39.5s17.7 39.5 39.5 39.5c14.6 0 27.4-8 34.2-19.8l-12.9-7.6zM97 66.2l.9-4.3h-4.2v-4.7h5.1L100 51h4.9l-1.2 6.1h3.8l1.2-6.1h4.8l-1.2 6.1h2.4v4.7h-3.3l-.9 4.3h4.2v4.7h-5.1l-1.2 6h-4.9l1.2-6h-3.8l-1.2 6h-4.8l1.2-6h-2.4v-4.7H97zm4.8 0h3.8l.9-4.3h-3.8l-.9 4.3z"/></svg>',css:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#1572B6"/><text x="10" y="12.8" text-anchor="middle" font-family="Arial,sans-serif" font-size="6.2" font-weight="900" fill="#fff">CSS</text>',dart:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECF7FA" stroke="#D5EAF0" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#00c4b3" d="M35.2 34.9l-8.3-8.3v59.7l.1 2.8c0 1.3.2 2.8.7 4.3l65.6 23.1 16.3-7.2-74.4-74.4z"/><path d="M27.7 93.4zm81.9 15.9l-16.3 7.2-65.4-23.1c1.3 4.8 4 10.1 7 13.2l21.3 21.2 47.6.1 5.8-18.6z" fill="#22d3c5"/><path fill="#0075c9" d="M1.7 65.1C-.4 67.3.7 72 4 75.5l14.7 14.8 9.2 3.3c-.3-1.5-.7-3-.7-4.3l-.1-2.8-.2-59.8m82.7 82.6l7.2-16.4-23-65.6c-1.5-.3-3-.6-4.3-.7l-2.9-.1-59.6.1"/><path d="M93.6 27.3c.2 0 .2 0 0 0 .2 0 .2 0 0 0zm16 82l17.7-5.8V54.8l-20.4-20.5c-3-3-8.3-5.8-13.2-7l23.1 65.6" fill="#00a8e1"/><path fill="#00c4b3" d="M90.5 18.2L75.7 3.5c-3.4-3.4-8-4.4-10.4-2.3L26.9 26.6h59.5l2.9.1c1.3 0 2.8.2 4.3.7l-3.1-9.2z"/></svg>',docker:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#E8F4FC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#2496ED" d="M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z"/></g>',elixir:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3EEF6" stroke="#E3D9E8" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-a" gradientUnits="userSpaceOnUse" x1="835.592" y1="-36.546" x2="821.211" y2="553.414" gradientTransform="matrix(.1297 0 0 .2 -46.03 17.198)"><stop offset="0" stop-color="#d9d8dc"/><stop offset="1" stop-color="#fff" stop-opacity=".385"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-a)" d="M64.4.5C36.7 13.9 1.9 83.4 30.9 113.9c26.8 33.5 85.4 1.3 68.4-40.5-21.5-36-35-37.9-34.9-72.9z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-b" gradientUnits="userSpaceOnUse" x1="942.357" y1="-40.593" x2="824.692" y2="472.243" gradientTransform="matrix(.1142 0 0 .2271 -47.053 17.229)"><stop offset="0" stop-color="#8d67af" stop-opacity=".672"/><stop offset="1" stop-color="#9f8daf"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-b)" d="M64.4.2C36.8 13.6 1.9 82.9 31 113.5c10.7 12.4 28 16.5 37.7 9.1 26.4-18.8 7.4-53.1 10.4-78.5C68.1 33.9 64.2 11.3 64.4.2z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-c" gradientUnits="userSpaceOnUse" x1="924.646" y1="120.513" x2="924.646" y2="505.851" gradientTransform="matrix(.1227 0 0 .2115 -46.493 17.206)"><stop offset="0" stop-color="#26053d" stop-opacity=".762"/><stop offset="1" stop-color="#b7b4b4" stop-opacity=".278"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-c)" d="M56.7 4.3c-22.3 15.9-28.2 75-24.1 94.2 8.2 48.1 75.2 28.3 69.6-16.5-6-29.2-48.8-39.2-45.5-77.7z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-d" gradientUnits="userSpaceOnUse" x1="428.034" y1="198.448" x2="607.325" y2="559.255" gradientTransform="matrix(.1848 0 0 .1404 -42.394 17.138)"><stop offset="0" stop-color="#91739f" stop-opacity=".46"/><stop offset="1" stop-color="#32054f" stop-opacity=".54"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-d)" d="M78.8 49.8c10.4 13.4 12.7 22.6 6.8 27.9-27.7 19.4-61.3 7.4-54-37.3C22.1 63 4.5 96.8 43.3 101.6c20.8 3.6 54 2 58.9-16.1-.2-15.9-10.8-22.9-23.4-35.7z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-e" gradientUnits="userSpaceOnUse" x1="907.895" y1="540.636" x2="590.242" y2="201.281" gradientTransform="matrix(.1418 0 0 .1829 -45.23 17.18)"><stop offset="0" stop-color="#463d49" stop-opacity=".331"/><stop offset="1" stop-color="#340a50" stop-opacity=".821"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-e)" d="M38.1 36.4c-2.9 21.2 35.1 77.9 58.3 71-17.7 35.6-56.9-21.2-64-41.7 1.5-11 2.2-16.4 5.7-29.3z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-f" gradientUnits="userSpaceOnUse" x1="1102.297" y1="100.542" x2="1008.071" y2="431.648" gradientTransform="matrix(.106 0 0 .2448 -47.595 17.242)"><stop offset="0" stop-color="#715383" stop-opacity=".145"/><stop offset="1" stop-color="#f4f4f4" stop-opacity=".234"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-f)" d="M60.4 49.7c.8 7.9 3.9 20.5 0 28.8S38.7 102 43.6 115.3c11.4 24.8 37.1-4.4 36.9-19 1.1-11.8-6.6-38.7-1.8-52.5L76.5 41l-13.6-4c-2.2 3.2-3 7.5-2.5 12.7z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-g" gradientUnits="userSpaceOnUse" x1="1354.664" y1="140.06" x2="1059.233" y2="84.466" gradientTransform="matrix(.09173 0 0 .2828 -48.536 17.28)"><stop offset="0" stop-color="#a5a1a8" stop-opacity=".356"/><stop offset="1" stop-color="#370c50" stop-opacity=".582"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-g)" d="M65.3 10.8C36 27.4 48 53.4 49.3 81.6l19.1-55.4c-1.4-5.7-2.3-9.5-3.1-15.4z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#330A4C" fill-opacity=".316" d="M68.3 26.1c-14.8 11.7-14.1 31.3-18.6 54 8.1-21.3 4.1-38.2 18.6-54z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#FFF" d="M45.8 119.7c8 1.1 12.1 2.2 12.5 3 .3 4.2-11.1 1.2-12.5-3z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#EDEDED" fill-opacity=".603" d="M49.8 10.8c-6.9 7.7-14.4 21.8-18.2 29.7-1 6.5-.5 15.7.6 23.5.9-18.2 7.5-39.2 17.6-53.2z"/></svg>',env:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECD53F"/><text x="10" y="12.9" text-anchor="middle" font-family="Arial,sans-serif" font-size="5.7" font-weight="900" fill="#24292F">.ENV</text>',erlang:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FAEDF1" stroke="#EED6DE" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path d="M20.7 103.9C11 93.5 5.2 79.2 5.3 62.1 5.2 47 10 34 18.2 24.1H1v79.7l19.7.1zm90.4 0c4.2-4.5 8-9.8 11.4-15.9l-19-9.5c-6.7 10.8-16.4 20.8-29.9 20.9-19.6-.1-27.3-16.9-27.3-38.5h73.3c.1-2.4.1-3.6 0-4.7.5-12.9-2.9-23.7-9.1-32.1H127v79.7l-15.9.1zM47.5 42.4c.8-9.8 8.5-16.3 17.6-16.4 9.1 0 15.7 6.6 15.9 16.4H47.5z" fill="#A90533"/></svg>',flutter:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EEF7FD" stroke="#D7EAF6" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><g fill="#3FB6D3"><path d="M12.3 64.2L76.3 0h39.4L32.1 83.6zM76.3 128h39.4L81.6 93.9l34.1-34.8H76.3L42.2 93.5z"/></g><path fill="#27AACD" d="M81.6 93.9l-20-20-19.4 19.6 19.4 19.6z"/><path fill="#19599A" d="M115.7 128L81.6 93.9l-20 19.2L76.3 128z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__flutter-original-a" gradientUnits="userSpaceOnUse" x1="59.365" y1="116.36" x2="86.825" y2="99.399"><stop offset="0" stop-color="#1b4e94"/><stop offset=".63" stop-color="#1a5497"/><stop offset="1" stop-color="#195a9b"/></linearGradient><path fill="url(#__PIW_CODE_ICON_INSTANCE__flutter-original-a)" d="M61.6 113.1l30.8-8.4-10.8-10.8z"/></svg>',git:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FFF0EC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#F05032" d="M13.09 23.549a1.54 1.54 0 0 1-2.18 0L.451 13.089a1.54 1.54 0 0 1 0-2.179l7.191-7.19 2.733 2.733a1.85 1.85 0 0 0 .964 2.326v6.66a1.849 1.849 0 1 0 1.54 0V8.957l2.508 2.508a1.85 1.85 0 1 0 1.09-1.09l-2.634-2.634a1.85 1.85 0 0 0-2.378-2.377L8.73 2.63 10.91.451a1.54 1.54 0 0 1 2.179 0l10.459 10.46a1.54 1.54 0 0 1 0 2.179z"/></g>',go:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#E7F9FC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#00ADD8" d="M1.811 10.231c-.047 0-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046 0 .058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047 11.306c-.047 0-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047 0 .07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828 1.075c-.047 0-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514-.176.046-.187.058-.34-.117-.174-.199-.303-.327-.548-.444-.737-.362-1.45-.257-2.115.175-.795.514-1.204 1.274-1.192 2.22.011.935.654 1.706 1.577 1.835.795.105 1.46-.175 1.987-.77.105-.13.198-.27.315-.434H10.47c-.245 0-.304-.152-.222-.35.152-.362.432-.97.596-1.274a.315.315 0 01.292-.187h4.253c-.023.316-.023.631-.07.947a4.983 4.983 0 01-.958 2.29c-.841 1.11-1.94 1.8-3.33 1.986-1.145.152-2.209-.07-3.143-.77-.865-.655-1.356-1.52-1.484-2.595-.152-1.274.222-2.419.993-3.424.83-1.086 1.928-1.776 3.272-2.02 1.098-.2 2.15-.07 3.096.571.62.41 1.063.97 1.356 1.648.07.105.023.164-.117.2m3.868 6.461c-1.064-.024-2.034-.328-2.852-1.029a3.665 3.665 0 01-1.262-2.255c-.21-1.32.152-2.489.947-3.529.853-1.122 1.881-1.706 3.272-1.95 1.192-.21 2.314-.095 3.33.595.923.63 1.496 1.484 1.648 2.605.198 1.578-.257 2.863-1.344 3.962-.771.783-1.718 1.273-2.805 1.495-.315.06-.63.07-.934.106zm2.78-4.72c-.011-.153-.011-.27-.034-.387-.21-1.157-1.274-1.81-2.384-1.554-1.087.245-1.788.935-2.045 2.033-.21.912.234 1.835 1.075 2.21.643.28 1.285.244 1.905-.07.923-.48 1.425-1.228 1.484-2.233z"/></g>',graphql:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCEAF6" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#E10098" d="M12.002 0a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm8.54 4.931a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm0 9.862a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm-8.54 4.931a2.138 2.138 0 1 0 0 4.276 2.138 2.138 0 1 0 0-4.276zm-8.542-4.93a2.138 2.138 0 1 0 0 4.276 2.138 2.138 0 1 0 0-4.277zm0-9.863a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm8.542-3.378L2.953 6.777v10.448l9.049 5.224 9.047-5.224V6.777zm0 1.601 7.66 13.27H4.34zm-1.387.371L3.97 15.037V7.363zm2.774 0 6.646 3.838v7.674zM5.355 17.44h13.293l-6.646 3.836z"/></g>',haskell:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3F0F7" stroke="#E1D9EA" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#463B63" d="M0 110.2L30.1 65 0 19.9h22.6L52.7 65l-30.1 45.1H0z"/><path fill="#5E5187" d="M30.1 110.2L60.2 65 30.1 19.9h22.6l60.2 90.3H90.4L71.5 81.9l-18.8 28.2H30.1z"/><path fill="#904F8C" d="M102.9 83.8l-10-15.1H128v15.1h-25.1zM87.8 61.3l-10-15.1H128v15.1H87.8z"/></svg>',ini:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#6E7781"/><text x="10" y="13.2" text-anchor="middle" font-family="Arial,sans-serif" font-size="7.2" font-weight="800" fill="#fff">INI</text>',java:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F4F7FA" stroke="#D9E2E8" stroke-width=".5"/><svg x="2.5" y="2.5" width="15" height="15" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#0074BD" d="M47.617 98.12s-4.767 2.774 3.397 3.71c9.892 1.13 14.947.968 25.845-1.092 0 0 2.871 1.795 6.873 3.351-24.439 10.47-55.308-.607-36.115-5.969zm-2.988-13.665s-5.348 3.959 2.823 4.805c10.567 1.091 18.91 1.18 33.354-1.6 0 0 1.993 2.025 5.132 3.131-29.542 8.64-62.446.68-41.309-6.336z"/><path fill="#EA2D2E" d="M69.802 61.271c6.025 6.935-1.58 13.17-1.58 13.17s15.289-7.891 8.269-17.777c-6.559-9.215-11.587-13.792 15.635-29.58 0 .001-42.731 10.67-22.324 34.187z"/><path fill="#0074BD" d="M102.123 108.229s3.529 2.91-3.888 5.159c-14.102 4.272-58.706 5.56-71.094.171-4.451-1.938 3.899-4.625 6.526-5.192 2.739-.593 4.303-.485 4.303-.485-4.953-3.487-32.013 6.85-13.743 9.815 49.821 8.076 90.817-3.637 77.896-9.468zM49.912 70.294s-22.686 5.389-8.033 7.348c6.188.828 18.518.638 30.011-.326 9.39-.789 18.813-2.474 18.813-2.474s-3.308 1.419-5.704 3.053c-23.042 6.061-67.544 3.238-54.731-2.958 10.832-5.239 19.644-4.643 19.644-4.643zm40.697 22.747c23.421-12.167 12.591-23.86 5.032-22.285-1.848.385-2.677.72-2.677.72s.688-1.079 2-1.543c14.953-5.255 26.451 15.503-4.823 23.725 0-.002.359-.327.468-.617z"/><path fill="#EA2D2E" d="M76.491 1.587S89.459 14.563 64.188 34.51c-20.266 16.006-4.621 25.13-.007 35.559-11.831-10.673-20.509-20.07-14.688-28.815C58.041 28.42 81.722 22.195 76.491 1.587z"/><path fill="#0074BD" d="M52.214 126.021c22.476 1.437 57-.8 57.817-11.436 0 0-1.571 4.032-18.577 7.231-19.186 3.612-42.854 3.191-56.887.874 0 .001 2.875 2.381 17.647 3.331z"/></svg>',javascript:'<defs><clipPath id="__PIW_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__PIW_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#F0DB4F" d="M1.408 1.408h125.184v125.185H1.408z"/><path fill="#323330" d="M116.347 96.736c-.917-5.711-4.641-10.508-15.672-14.981-3.832-1.761-8.104-3.022-9.377-5.926-.452-1.69-.512-2.642-.226-3.665.821-3.32 4.784-4.355 7.925-3.403 2.023.678 3.938 2.237 5.093 4.724 5.402-3.498 5.391-3.475 9.163-5.879-1.381-2.141-2.118-3.129-3.022-4.045-3.249-3.629-7.676-5.498-14.756-5.355l-3.688.477c-3.534.893-6.902 2.748-8.877 5.235-5.926 6.724-4.236 18.492 2.975 23.335 7.104 5.332 17.54 6.545 18.873 11.531 1.297 6.104-4.486 8.08-10.234 7.378-4.236-.881-6.592-3.034-9.139-6.949-4.688 2.713-4.688 2.713-9.508 5.485 1.143 2.499 2.344 3.63 4.26 5.795 9.068 9.198 31.76 8.746 35.83-5.176.165-.478 1.261-3.666.38-8.581zM69.462 58.943H57.753l-.048 30.272c0 6.438.333 12.34-.714 14.149-1.713 3.558-6.152 3.117-8.175 2.427-2.059-1.012-3.106-2.451-4.319-4.485-.333-.584-.583-1.036-.667-1.071l-9.52 5.83c1.583 3.249 3.915 6.069 6.902 7.901 4.462 2.678 10.459 3.499 16.731 2.059 4.082-1.189 7.604-3.652 9.448-7.401 2.666-4.915 2.094-10.864 2.07-17.444.06-10.735.001-21.468.001-32.237z"/></svg></g>',json:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F4F4F4" stroke="#DDDDDD" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><linearGradient id="__PIW_CODE_ICON_INSTANCE__a" x1="-670.564" x2="-583.105" y1="-280.831" y2="-368.306" gradientTransform="matrix(.9988 0 0 -.9987 689.011 -259.008)" gradientUnits="userSpaceOnUse"><stop offset="0"/><stop offset="1" stop-color="#fff"/></linearGradient><path fill="url(#__PIW_CODE_ICON_INSTANCE__a)" fill-rule="evenodd" d="M63.895 94.303c27.433 37.398 54.281-10.438 54.241-39.205-.046-34.012-34.518-53.021-54.263-53.021C32.182 2.077 2 28.269 2 64.105 2 103.937 36.596 126 63.873 126c-6.172-.889-26.742-5.296-27.019-52.674-.186-32.044 10.453-44.846 26.974-39.214.37.137 18.223 7.18 18.223 30.187 0 22.908-18.156 30.004-18.156 30.004z" clip-rule="evenodd"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__b" x1="-579.148" x2="-666.607" y1="-364.34" y2="-276.873" gradientTransform="matrix(.9988 0 0 -.9987 689.011 -259.008)" gradientUnits="userSpaceOnUse"><stop offset="0"/><stop offset="1" stop-color="#fff"/></linearGradient><path fill="url(#__PIW_CODE_ICON_INSTANCE__b)" fill-rule="evenodd" d="M63.863 34.086C45.736 27.838 23.53 42.778 23.53 72.703 23.53 121.565 59.739 126 64.128 126 95.818 126 126 99.808 126 63.972 126 24.14 91.404 2.077 64.127 2.077c7.555-1.046 40.719 8.176 40.719 53.504 0 29.559-24.764 45.651-40.87 38.776-.37-.137-18.223-7.18-18.223-30.187 0-22.91 18.11-30.085 18.11-30.084z" clip-rule="evenodd"/></svg>',kotlin:'<defs><linearGradient id="__PIW_CODE_ICON_INSTANCE__k" x1="1" y1="19" x2="19" y2="1"><stop stop-color="#0095D5"/><stop offset=".5" stop-color="#7F52FF"/><stop offset="1" stop-color="#F88909"/></linearGradient></defs><rect x="1" y="1" width="18" height="18" rx="4" fill="url(#__PIW_CODE_ICON_INSTANCE__k)"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#FFFFFF" d="M24 24H0V0h24L12 12Z"/></g>',lua:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECECF7" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#000080" d="M.38 10.377l-.272-.037c-.048.344-.082.695-.101 1.041l.275.016c.018-.34.051-.682.098-1.02zM4.136 3.289l-.184-.205c-.258.232-.509.48-.746.734l.202.188c.231-.248.476-.49.728-.717zM5.769 2.059l-.146-.235c-.296.186-.586.385-.863.594l.166.219c.27-.203.554-.399.843-.578zM1.824 18.369c.185.297.384.586.593.863l.22-.164c-.205-.271-.399-.555-.58-.844l-.233.145zM1.127 16.402l-.255.104c.129.318.274.635.431.943l.005.01.245-.125-.005-.01c-.153-.301-.295-.611-.421-.922zM.298 9.309l.269.063c.076-.332.168-.664.272-.986l-.261-.087c-.108.332-.202.672-.28 1.01zM.274 12.42l-.275.01c.012.348.04.699.083 1.043l.273-.033c-.042-.336-.069-.68-.081-1.02zM.256 14.506c.073.34.162.682.264 1.014l.263-.08c-.1-.326-.187-.658-.258-.99l-.269.056zM11.573.275L11.563 0c-.348.012-.699.039-1.044.082l.034.273c.338-.041.68-.068 1.02-.08zM23.221 8.566c.1.326.186.66.256.992l.27-.059c-.072-.34-.16-.682-.262-1.014l-.264.081zM17.621 1.389c-.309-.164-.627-.314-.947-.449l-.107.252c.314.133.625.281.926.439l.128-.242zM15.693.572c-.332-.105-.67-.199-1.01-.277l-.063.268c.332.076.664.168.988.273l.085-.264zM6.674 1.545c.298-.15.606-.291.916-.418L7.486.873c-.317.127-.632.272-.937.428l-.015.008.125.244.015-.008zM23.727 11.588l.275-.01a11.797 11.797 0 0 0-.082-1.045l-.273.033c.041.338.068.682.08 1.022zM13.654.105c-.346-.047-.696-.08-1.043-.098l-.014.273c.339.018.683.051 1.019.098l.038-.273zM9.544.527l-.058-.27c-.34.072-.681.16-1.014.264l.081.262c.325-.099.659-.185.991-.256zM1.921 5.469l.231.15c.185-.285.384-.566.592-.834l-.217-.17c-.213.276-.417.563-.606.854zM.943 7.318l.253.107c.132-.313.28-.625.439-.924l-.243-.128c-.163.307-.314.625-.449.945zM18.223 21.943l.145.234c.295-.186.586-.385.863-.594l-.164-.219c-.272.204-.557.4-.844.579zM21.248 19.219l.217.17c.215-.273.418-.561.607-.854l-.23-.148c-.186.285-.385.564-.594.832zM19.855 20.715l.184.203c.258-.23.51-.479.746-.732l-.201-.188c-.23.248-.477.488-.729.717zM22.359 17.504l.244.129c.162-.307.314-.625.449-.945l-.254-.107a11.27 11.27 0 0 1-.439.923zM23.617 13.629l.273.039c.049-.346.082-.695.102-1.043l-.275-.014c-.018.338-.051.682-.1 1.018zM23.156 15.621l.264.086c.107-.332.201-.67.279-1.01l-.268-.063c-.077.333-.169.665-.275.987zM22.453 6.672c.154.303.297.617.424.932l.256-.104c-.131-.322-.277-.643-.436-.953l-.244.125zM8.296 23.418c.331.107.67.201 1.009.279l.062-.268c-.331-.076-.663-.168-.986-.273l-.085.262zM10.335 23.889c.345.049.696.082 1.043.102l.014-.275c-.339-.018-.682-.051-1.019-.098l-.038.271zM17.326 22.449c-.303.154-.613.297-.926.424l.104.256c.318-.131.639-.275.947-.434l.004-.002-.123-.246-.006.002zM4.613 21.467c.274.213.562.418.854.605l.149-.23c-.285-.184-.565-.385-.833-.592l-.17.217zM12.417 23.725l.009.275c.348-.014.699-.041 1.045-.084l-.035-.271c-.336.041-.68.068-1.019.08zM6.37 22.604c.307.162.625.314.946.449l.107-.254c-.313-.133-.624-.279-.924-.439l-.129.244zM3.083 20.041c.233.258.48.51.734.746l.188-.201c-.249-.23-.49-.477-.717-.729l-.205.184zM14.445 23.475l.059.27c.34-.074.68-.162 1.014-.266l-.082-.262c-.325.099-.659.185-.991.258zM21.18.129A2.689 2.689 0 1 0 21.18 5.507 2.689 2.689 0 1 0 21.18.129zM15.324 15.447c0 .471.314.66.852.66.67 0 1.297-.396 1.297-1.016v-.645c-.23.107-.379.141-1.107.24-.735.109-1.042.306-1.042.761zM12 2.818c-5.07 0-9.18 4.109-9.18 9.18 0 5.068 4.11 9.18 9.18 9.18 5.07 0 9.18-4.111 9.18-9.18 0-5.07-4.11-9.18-9.18-9.18zm-2.487 13.77H5.771v-6.023h.769v5.346h2.974v.677zm4.13 0h-.619v-.67c-.405.57-.811.793-1.446.793-.843 0-1.38-.463-1.38-1.182v-3.271h.686v3c0 .52.347.85.893.85.719 0 1.181-.578 1.181-1.461v-2.389h.686v4.33zm-.53-8.393c0-1.484 1.205-2.689 2.689-2.689s2.688 1.205 2.688 2.689-1.203 2.688-2.688 2.688-2.689-1.203-2.689-2.688zm5.567 7.856v.52c-.223.059-.33.074-.471.074-.34 0-.637-.238-.711-.57-.381.406-.918.637-1.471.637-.877 0-1.422-.463-1.422-1.248 0-.527.256-.916.76-1.123.266-.107.414-.141 1.389-.264.545-.066.719-.191.719-.48v-.182c0-.412-.348-.645-.967-.645-.645 0-.957.24-1.016.77h-.693c.041-1 .686-1.404 1.734-1.404 1.066 0 1.627.412 1.627 1.182v2.412c0 .215.133.338.373.338.041-.002.074-.002.149-.017z"/></g>',makefile:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#427819"/><path fill="#fff" d="m5 4.5 2.3 2.3 2.3-2.3L11 5.9 8.7 8.2l2.4 2.4L9.7 12l-2.4-2.4L5 11.9 3.6 10.5l2.3-2.3-2.3-2.3zm7 6.5h4v1.5h-4zm0 2.8h4v1.5h-4z"/>',node:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EDF7EA" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#539E43" d="M11.998,24c-0.321,0-0.641-0.084-0.922-0.247l-2.936-1.737c-0.438-0.245-0.224-0.332-0.08-0.383 c0.585-0.203,0.703-0.25,1.328-0.604c0.065-0.037,0.151-0.023,0.218,0.017l2.256,1.339c0.082,0.045,0.197,0.045,0.272,0l8.795-5.076 c0.082-0.047,0.134-0.141,0.134-0.238V6.921c0-0.099-0.053-0.192-0.137-0.242l-8.791-5.072c-0.081-0.047-0.189-0.047-0.271,0 L3.075,6.68C2.99,6.729,2.936,6.825,2.936,6.921v10.15c0,0.097,0.054,0.189,0.139,0.235l2.409,1.392 c1.307,0.654,2.108-0.116,2.108-0.89V7.787c0-0.142,0.114-0.253,0.256-0.253h1.115c0.139,0,0.255,0.112,0.255,0.253v10.021 c0,1.745-0.95,2.745-2.604,2.745c-0.508,0-0.909,0-2.026-0.551L2.28,18.675c-0.57-0.329-0.922-0.945-0.922-1.604V6.921 c0-0.659,0.353-1.275,0.922-1.603l8.795-5.082c0.557-0.315,1.296-0.315,1.848,0l8.794,5.082c0.57,0.329,0.924,0.944,0.924,1.603 v10.15c0,0.659-0.354,1.273-0.924,1.604l-8.794,5.078C12.643,23.916,12.324,24,11.998,24z M19.099,13.993 c0-1.9-1.284-2.406-3.987-2.763c-2.731-0.361-3.009-0.548-3.009-1.187c0-0.528,0.235-1.233,2.258-1.233 c1.807,0,2.473,0.389,2.747,1.607c0.024,0.115,0.129,0.199,0.247,0.199h1.141c0.071,0,0.138-0.031,0.186-0.081 c0.048-0.054,0.074-0.123,0.067-0.196c-0.177-2.098-1.571-3.076-4.388-3.076c-2.508,0-4.004,1.058-4.004,2.833 c0,1.925,1.488,2.457,3.895,2.695c2.88,0.282,3.103,0.703,3.103,1.269c0,0.983-0.789,1.402-2.642,1.402 c-2.327,0-2.839-0.584-3.011-1.742c-0.02-0.124-0.126-0.215-0.253-0.215h-1.137c-0.141,0-0.254,0.112-0.254,0.253 c0,1.482,0.806,3.248,4.655,3.248C17.501,17.007,19.099,15.91,19.099,13.993z"/></g>',"objective-c":'<rect x="1" y="1" width="18" height="18" rx="4" fill="#438EFF"/><text x="10" y="13.2" text-anchor="middle" font-family="Arial,sans-serif" font-size="7.2" font-weight="800" fill="#fff">OC</text>',perl:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EAF2F7" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#0073A1" d="M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0m.157 1.103a10.91 10.91 0 0 1 9.214 5.404c-1.962.152-3.156 1.698-5.132 3.553-2.81 2.637-4.562.582-5.288-.898-.447-1.004-.847-2.117-1.544-2.769A.4.4 0 0 1 9.3 6.02l.08-.37a.083.083 0 0 0-.074-.1c-.33-.022-.601.093-.84.368a2.5 2.5 0 0 0-.375-.064c-.863-.093-1.036.345-1.873.345H5.81c-.758 0-1.391.361-1.7.892-.248.424-.257.884.15.93-.126.445.292.62 1.224.192 0 0 .733.421 1.749.421.549 0 .712.087.914.967.486 2.138 2.404 5.655 6.282 5.655l.118.166c.659.934.86 2.113.48 3.184-.307.867-.697 1.531-.697 1.531q.01.178.01.349c0 .81-.175 1.553-.387 2.23a10.91 10.91 0 0 1-11.989-6.342A10.91 10.91 0 0 1 7.608 2.01a10.9 10.9 0 0 1 4.55-.907M7.524 6.47c.288 0 .575.231.477.272a.4.4 0 0 1-.1.02.38.38 0 0 1-.375.327.384.384 0 0 1-.378-.326.4.4 0 0 1-.101-.02c-.098-.042.19-.273.477-.273m10.193 10.49q.05 0 .101.007.326.054.694.096.135.01.269.026a13.4 13.4 0 0 0 2.846-.007 10.9 10.9 0 0 1-2.007 2.705c-.11-.23-.547-1.19-.573-2.196q-.156-.01-.313-.026-.13-.014-.256-.022a18 18 0 0 1-.735-.102h-.003c-.032 0-.06.01-.074.035l-.003.012q-.081.265-.182.544c.428 1.084.652 2.078.652 2.078.14.22.258.432.363.64a11 11 0 0 1-2.168 1.264 11 11 0 0 1-1.205.426 13.3 13.3 0 0 1 1.055-2.531s.678-1.445 1.027-2.564v-.004a.55.55 0 0 1 .512-.38"/></g>',php:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F0EFF8" stroke="#DDDCEB" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#777BB4" d="M7.01 10.207h-.944l-.515 2.648h.838c.556 0 .97-.105 1.242-.314.272-.21.455-.559.55-1.049.092-.47.05-.802-.124-.995-.175-.193-.523-.29-1.047-.29zM12 5.688C5.373 5.688 0 8.514 0 12s5.373 6.313 12 6.313S24 15.486 24 12c0-3.486-5.373-6.312-12-6.312zm-3.26 7.451c-.261.25-.575.438-.917.551-.336.108-.765.164-1.285.164H5.357l-.327 1.681H3.652l1.23-6.326h2.65c.797 0 1.378.209 1.744.628.366.418.476 1.002.33 1.752a2.836 2.836 0 0 1-.305.847c-.143.255-.33.49-.561.703zm4.024.715l.543-2.799c.063-.318.039-.536-.068-.651-.107-.116-.336-.174-.687-.174H11.46l-.704 3.625H9.388l1.23-6.327h1.367l-.327 1.682h1.218c.767 0 1.295.134 1.586.401s.378.7.263 1.299l-.572 2.944h-1.389zm7.597-2.265a2.782 2.782 0 0 1-.305.847c-.143.255-.33.49-.561.703a2.44 2.44 0 0 1-.917.551c-.336.108-.765.164-1.286.164h-1.18l-.327 1.682h-1.378l1.23-6.326h2.649c.797 0 1.378.209 1.744.628.366.417.477 1.001.331 1.751zM17.766 10.207h-.943l-.516 2.648h.838c.557 0 .971-.105 1.242-.314.272-.21.455-.559.551-1.049.092-.47.049-.802-.125-.995s-.524-.29-1.047-.29z"/></g>',powershell:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#2671BE"/><path fill="#fff" fill-opacity=".16" d="M5.5 4h11l-3.5 12H2z"/><path d="m6.5 6.5 3 3-4.2 3.2m4 1h4" fill="none" stroke="#fff" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/>',protobuf:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#4285F4"/><path fill="none" stroke="#fff" stroke-width="1.2" stroke-linejoin="round" d="m10 3.5 6 3.3v6.4l-6 3.3-6-3.3V6.8z"/><path fill="#fff" d="M6.5 6.5h4.4c2.3 0 3.6 1.2 3.6 3.1s-1.3 3.1-3.6 3.1H9v2H6.5zM9 8.4v2.4h1.6c.8 0 1.2-.4 1.2-1.2s-.4-1.2-1.2-1.2z"/>',python:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F2F4F7" stroke="#D5DBE5" stroke-width=".5"/><g transform="matrix(.126 0 0 .126 2.30 2.24)"><path fill="#3776AB" d="M 60.510156,6.3979729 C 55.926503,6.4192712 51.549217,6.8101906 47.697656,7.4917229 C 36.35144,9.4962267 34.291407,13.691825 34.291406,21.429223 L 34.291406,31.647973 L 61.103906,31.647973 L 61.103906,35.054223 L 34.291406,35.054223 L 24.228906,35.054223 C 16.436447,35.054223 9.6131468,39.73794 7.4789058,48.647973 C 5.0170858,58.860939 4.9078907,65.233996 7.4789058,75.897973 C 9.3848341,83.835825 13.936449,89.491721 21.728906,89.491723 L 30.947656,89.491723 L 30.947656,77.241723 C 30.947656,68.391821 38.6048,60.585475 47.697656,60.585473 L 74.478906,60.585473 C 81.933857,60.585473 87.885159,54.447309 87.885156,46.960473 L 87.885156,21.429223 C 87.885156,14.162884 81.755176,8.7044455 74.478906,7.4917229 C 69.872919,6.7249976 65.093809,6.3766746 60.510156,6.3979729 z M 46.010156,14.616723 C 48.779703,14.616723 51.041406,16.915369 51.041406,19.741723 C 51.041404,22.558059 48.779703,24.835473 46.010156,24.835473 C 43.23068,24.835472 40.978906,22.558058 40.978906,19.741723 C 40.978905,16.91537 43.23068,14.616723 46.010156,14.616723 z "/><path fill="#FFD43B" d="M 91.228906,35.054223 L 91.228906,46.960473 C 91.228906,56.191228 83.403011,63.960472 74.478906,63.960473 L 47.697656,63.960473 C 40.361823,63.960473 34.291407,70.238956 34.291406,77.585473 L 34.291406,103.11672 C 34.291406,110.38306 40.609994,114.65704 47.697656,116.74172 C 56.184987,119.23733 64.323893,119.68835 74.478906,116.74172 C 81.229061,114.78733 87.885159,110.85411 87.885156,103.11672 L 87.885156,92.897973 L 61.103906,92.897973 L 61.103906,89.491723 L 87.885156,89.491723 L 101.29141,89.491723 C 109.08387,89.491723 111.98766,84.056315 114.69765,75.897973 C 117.49698,67.499087 117.37787,59.422197 114.69765,48.647973 C 112.77187,40.890532 109.09378,35.054223 101.29141,35.054223 L 91.228906,35.054223 z M 76.166406,99.710473 C 78.945884,99.710476 81.197656,101.98789 81.197656,104.80422 C 81.197654,107.63057 78.945881,109.92922 76.166406,109.92922 C 73.396856,109.92922 71.135156,107.63057 71.135156,104.80422 C 71.135158,101.98789 73.396853,99.710473 76.166406,99.710473 z "/></g>',r:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EEF2F6" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#276DC3" d="M12 2.746c-6.627 0-12 3.599-12 8.037 0 3.897 4.144 7.144 9.64 7.88V16.26c-2.924-.915-4.925-2.755-4.925-4.877 0-3.035 4.084-5.494 9.12-5.494 5.038 0 8.757 1.683 8.757 5.494 0 1.976-.999 3.379-2.662 4.272.09.066.174.128.258.216.169.149.25.363.372.544 2.128-1.45 3.44-3.437 3.44-5.631 0-4.44-5.373-8.038-12-8.038zm-2.111 4.99v13.516l4.093-.002-.002-5.291h1.1c.225 0 .321.066.549.25.272.22.715.982.715.982l2.164 4.063 4.627-.002-2.864-4.826s-.086-.193-.265-.383a2.22 2.22 0 00-.582-.416c-.422-.214-1.149-.434-1.149-.434s3.578-.264 3.578-3.826c0-3.562-3.744-3.63-3.744-3.63zm4.127 2.93l2.478.002s1.149-.062 1.149 1.127c0 1.165-1.149 1.17-1.149 1.17h-2.478zm1.754 6.119c-.494.049-1.012.079-1.54.088v1.807a16.622 16.622 0 002.37-.473l-.471-.891s-.108-.183-.248-.394c-.039-.054-.08-.098-.111-.137z"/></g>',react:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#20232A"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#61DAFB" d="M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z"/></g>',ruby:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCEDEC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#CC342D" d="M20.156.083c3.033.525 3.893 2.598 3.829 4.77L24 4.822 22.635 22.71 4.89 23.926h.016C3.433 23.864.15 23.729 0 19.139l1.645-3 2.819 6.586.503 1.172 2.805-9.144-.03.007.016-.03 9.255 2.956-1.396-5.431-.99-3.9 8.82-.569-.615-.51L16.5 2.114 20.159.073l-.003.01zM0 19.089zM5.13 5.073c3.561-3.533 8.157-5.621 9.922-3.84 1.762 1.777-.105 6.105-3.673 9.636-3.563 3.532-8.103 5.734-9.864 3.957-1.766-1.777.045-6.217 3.612-9.75l.003-.003z"/></g>',rust:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3E6DD" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#2B2B2B" d="M23.8346 11.7033l-1.0073-.6236a13.7268 13.7268 0 00-.0283-.2936l.8656-.8069a.3483.3483 0 00-.1154-.578l-1.1066-.414a8.4958 8.4958 0 00-.087-.2856l.6904-.9587a.3462.3462 0 00-.2257-.5446l-1.1663-.1894a9.3574 9.3574 0 00-.1407-.2622l.49-1.0761a.3437.3437 0 00-.0274-.3361.3486.3486 0 00-.3006-.154l-1.1845.0416a6.7444 6.7444 0 00-.1873-.2268l.2723-1.153a.3472.3472 0 00-.417-.4172l-1.1532.2724a14.0183 14.0183 0 00-.2278-.1873l.0415-1.1845a.3442.3442 0 00-.49-.328l-1.076.491c-.0872-.0476-.1742-.0952-.2623-.1407l-.1903-1.1673A.3483.3483 0 0016.256.955l-.9597.6905a8.4867 8.4867 0 00-.2855-.086l-.414-1.1066a.3483.3483 0 00-.5781-.1154l-.8069.8666a9.2936 9.2936 0 00-.2936-.0284L12.2946.1683a.3462.3462 0 00-.5892 0l-.6236 1.0073a13.7383 13.7383 0 00-.2936.0284L9.9803.3374a.3462.3462 0 00-.578.1154l-.4141 1.1065c-.0962.0274-.1903.0567-.2855.086L7.744.955a.3483.3483 0 00-.5447.2258L7.009 2.348a9.3574 9.3574 0 00-.2622.1407l-1.0762-.491a.3462.3462 0 00-.49.328l.0416 1.1845a7.9826 7.9826 0 00-.2278.1873L3.8413 3.425a.3472.3472 0 00-.4171.4171l.2713 1.1531c-.0628.075-.1255.1509-.1863.2268l-1.1845-.0415a.3462.3462 0 00-.328.49l.491 1.0761a9.167 9.167 0 00-.1407.2622l-1.1662.1894a.3483.3483 0 00-.2258.5446l.6904.9587a13.303 13.303 0 00-.087.2855l-1.1065.414a.3483.3483 0 00-.1155.5781l.8656.807a9.2936 9.2936 0 00-.0283.2935l-1.0073.6236a.3442.3442 0 000 .5892l1.0073.6236c.008.0982.0182.1964.0283.2936l-.8656.8079a.3462.3462 0 00.1155.578l1.1065.4141c.0273.0962.0567.1914.087.2855l-.6904.9587a.3452.3452 0 00.2268.5447l1.1662.1893c.0456.088.0922.1751.1408.2622l-.491 1.0762a.3462.3462 0 00.328.49l1.1834-.0415c.0618.0769.1235.1528.1873.2277l-.2713 1.1541a.3462.3462 0 00.4171.4161l1.153-.2713c.075.0638.151.1255.2279.1863l-.0415 1.1845a.3442.3442 0 00.49.327l1.0761-.49c.087.0486.1741.0951.2622.1407l.1903 1.1662a.3483.3483 0 00.5447.2268l.9587-.6904a9.299 9.299 0 00.2855.087l.414 1.1066a.3452.3452 0 00.5781.1154l.8079-.8656c.0972.0111.1954.0203.2936.0294l.6236 1.0073a.3472.3472 0 00.5892 0l.6236-1.0073c.0982-.0091.1964-.0183.2936-.0294l.8069.8656a.3483.3483 0 00.578-.1154l.4141-1.1066a8.4626 8.4626 0 00.2855-.087l.9587.6904a.3452.3452 0 00.5447-.2268l.1903-1.1662c.088-.0456.1751-.0931.2622-.1407l1.0762.49a.3472.3472 0 00.49-.327l-.0415-1.1845a6.7267 6.7267 0 00.2267-.1863l1.1531.2713a.3472.3472 0 00.4171-.416l-.2713-1.1542c.0628-.0749.1255-.1508.1863-.2278l1.1845.0415a.3442.3442 0 00.328-.49l-.49-1.076c.0475-.0872.0951-.1742.1407-.2623l1.1662-.1893a.3483.3483 0 00.2258-.5447l-.6904-.9587.087-.2855 1.1066-.414a.3462.3462 0 00.1154-.5781l-.8656-.8079c.0101-.0972.0202-.1954.0283-.2936l1.0073-.6236a.3442.3442 0 000-.5892zm-6.7413 8.3551a.7138.7138 0 01.2986-1.396.714.714 0 11-.2997 1.396zm-.3422-2.3142a.649.649 0 00-.7715.5l-.3573 1.6685c-1.1035.501-2.3285.7795-3.6193.7795a8.7368 8.7368 0 01-3.6951-.814l-.3574-1.6684a.648.648 0 00-.7714-.499l-1.473.3158a8.7216 8.7216 0 01-.7613-.898h7.1676c.081 0 .1356-.0141.1356-.088v-2.536c0-.074-.0536-.0881-.1356-.0881h-2.0966v-1.6077h2.2677c.2065 0 1.1065.0587 1.394 1.2088.0901.3533.2875 1.5044.4232 1.8729.1346.413.6833 1.2381 1.2685 1.2381h3.5716a.7492.7492 0 00.1296-.0131 8.7874 8.7874 0 01-.8119.9526zM6.8369 20.024a.714.714 0 11-.2997-1.396.714.714 0 01.2997 1.396zM4.1177 8.9972a.7137.7137 0 11-1.304.5791.7137.7137 0 011.304-.579zm-.8352 1.9813l1.5347-.6824a.65.65 0 00.33-.8585l-.3158-.7147h1.2432v5.6025H3.5669a8.7753 8.7753 0 01-.2834-3.348zm6.7343-.5437V8.7836h2.9601c.153 0 1.0792.1772 1.0792.8697 0 .575-.7107.7815-1.2948.7815zm10.7574 1.4862c0 .2187-.008.4363-.0243.651h-.9c-.09 0-.1265.0586-.1265.1477v.413c0 .973-.5487 1.1846-1.0296 1.2382-.4576.0517-.9648-.1913-1.0275-.4717-.2704-1.5186-.7198-1.8436-1.4305-2.4034.8817-.5599 1.799-1.386 1.799-2.4915 0-1.1936-.819-1.9458-1.3769-2.3153-.7825-.5163-1.6491-.6195-1.883-.6195H5.4682a8.7651 8.7651 0 014.907-2.7699l1.0974 1.151a.648.648 0 00.9182.0213l1.227-1.1743a8.7753 8.7753 0 016.0044 4.2762l-.8403 1.8982a.652.652 0 00.33.8585l1.6178.7188c.0283.2875.0425.577.0425.8717zm-9.3006-9.5993a.7128.7128 0 11.984 1.0316.7137.7137 0 01-.984-1.0316zm8.3389 6.71a.7107.7107 0 01.9395-.3625.7137.7137 0 11-.9405.3635z"/></g>',scala:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCECEB" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#DC322F" d="M4.589 24c4.537 0 13.81-1.516 14.821-3v-5.729c-.957 1.408-10.284 2.912-14.821 2.912V24zM4.589 16.365c4.537 0 13.81-1.516 14.821-3V7.636c-.957 1.408-10.284 2.912-14.821 2.912v5.817zM4.589 8.729c4.537 0 13.81-1.516 14.821-3V0C18.453 1.408 9.126 2.912 4.589 2.912v5.817z"/></g>',shell:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#303642"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#7EE787" d="M21.038,4.9l-7.577-4.498C13.009,0.134,12.505,0,12,0c-0.505,0-1.009,0.134-1.462,0.403L2.961,4.9 C2.057,5.437,1.5,6.429,1.5,7.503v8.995c0,1.073,0.557,2.066,1.462,2.603l7.577,4.497C10.991,23.866,11.495,24,12,24 c0.505,0,1.009-0.134,1.461-0.402l7.577-4.497c0.904-0.537,1.462-1.529,1.462-2.603V7.503C22.5,6.429,21.943,5.437,21.038,4.9z M15.17,18.946l0.013,0.646c0.001,0.078-0.05,0.167-0.111,0.198l-0.383,0.22c-0.061,0.031-0.111-0.007-0.112-0.085L14.57,19.29 c-0.328,0.136-0.66,0.169-0.872,0.084c-0.04-0.016-0.057-0.075-0.041-0.142l0.139-0.584c0.011-0.046,0.036-0.092,0.069-0.121 c0.012-0.011,0.024-0.02,0.036-0.026c0.022-0.011,0.043-0.014,0.062-0.006c0.229,0.077,0.521,0.041,0.802-0.101 c0.357-0.181,0.596-0.545,0.592-0.907c-0.003-0.328-0.181-0.465-0.613-0.468c-0.55,0.001-1.064-0.107-1.072-0.917 c-0.007-0.667,0.34-1.361,0.889-1.8l-0.007-0.652c-0.001-0.08,0.048-0.168,0.111-0.2l0.37-0.236 c0.061-0.031,0.111,0.007,0.112,0.087l0.006,0.653c0.273-0.109,0.511-0.138,0.726-0.088c0.047,0.012,0.067,0.076,0.048,0.151 l-0.144,0.578c-0.011,0.044-0.036,0.088-0.065,0.116c-0.012,0.012-0.025,0.021-0.038,0.028c-0.019,0.01-0.038,0.013-0.057,0.009 c-0.098-0.022-0.332-0.073-0.699,0.113c-0.385,0.195-0.52,0.53-0.517,0.778c0.003,0.297,0.155,0.387,0.681,0.396 c0.7,0.012,1.003,0.318,1.01,1.023C16.105,17.747,15.736,18.491,15.17,18.946z M19.143,17.859c0,0.06-0.008,0.116-0.058,0.145 l-1.916,1.164c-0.05,0.029-0.09,0.004-0.09-0.056v-0.494c0-0.06,0.037-0.093,0.087-0.122l1.887-1.129 c0.05-0.029,0.09-0.004,0.09,0.056V17.859z M20.459,6.797l-7.168,4.427c-0.894,0.523-1.553,1.109-1.553,2.187v8.833 c0,0.645,0.26,1.063,0.66,1.184c-0.131,0.023-0.264,0.039-0.398,0.039c-0.42,0-0.833-0.114-1.197-0.33L3.226,18.64 c-0.741-0.44-1.201-1.261-1.201-2.142V7.503c0-0.881,0.46-1.702,1.201-2.142l7.577-4.498c0.363-0.216,0.777-0.33,1.197-0.33 c0.419,0,0.833,0.114,1.197,0.33l7.577,4.498c0.624,0.371,1.046,1.013,1.164,1.732C21.686,6.557,21.12,6.411,20.459,6.797z"/></g>',solidity:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F0F0F0" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#363636" d="M4.409 6.608L7.981.255l3.572 6.353H4.409zM8.411 0l3.569 6.348L15.552 0H8.411zm4.036 17.392l3.572 6.354 3.575-6.354h-7.147zm-.608-10.284h-7.43l3.715 6.605 3.715-6.605zm.428-.25h7.428L15.982.255l-3.715 6.603zM15.589 24l-3.569-6.349L8.448 24h7.141zm-3.856-6.858H4.306l3.712 6.603 3.715-6.603zm.428-.25h7.433l-3.718-6.605-3.715 6.605z"/></g>',sql:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#336791"/><ellipse cx="10" cy="5.5" rx="5.8" ry="2.1" fill="#fff"/><path fill="#fff" fill-opacity=".88" d="M4.2 5.5v8.9c0 1.2 2.6 2.1 5.8 2.1s5.8-.9 5.8-2.1V5.5c0 1.2-2.6 2.1-5.8 2.1s-5.8-.9-5.8-2.1z"/><path d="M4.2 9.2c0 1.2 2.6 2.1 5.8 2.1s5.8-.9 5.8-2.1M4.2 12.9c0 1.2 2.6 2.1 5.8 2.1s5.8-.9 5.8-2.1" fill="none" stroke="#336791" stroke-opacity=".7" stroke-width=".7"/>',svelte:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FFF0EB" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#FF3E00" d="M10.354 21.125a4.44 4.44 0 0 1-4.765-1.767 4.109 4.109 0 0 1-.703-3.107 3.898 3.898 0 0 1 .134-.522l.105-.321.287.21a7.21 7.21 0 0 0 2.186 1.092l.208.063-.02.208a1.253 1.253 0 0 0 .226.83 1.337 1.337 0 0 0 1.435.533 1.231 1.231 0 0 0 .343-.15l5.59-3.562a1.164 1.164 0 0 0 .524-.778 1.242 1.242 0 0 0-.211-.937 1.338 1.338 0 0 0-1.435-.533 1.23 1.23 0 0 0-.343.15l-2.133 1.36a4.078 4.078 0 0 1-1.135.499 4.44 4.44 0 0 1-4.765-1.766 4.108 4.108 0 0 1-.702-3.108 3.855 3.855 0 0 1 1.742-2.582l5.589-3.563a4.072 4.072 0 0 1 1.135-.499 4.44 4.44 0 0 1 4.765 1.767 4.109 4.109 0 0 1 .703 3.107 3.943 3.943 0 0 1-.134.522l-.105.321-.286-.21a7.204 7.204 0 0 0-2.187-1.093l-.208-.063.02-.207a1.255 1.255 0 0 0-.226-.831 1.337 1.337 0 0 0-1.435-.532 1.231 1.231 0 0 0-.343.15L8.62 9.368a1.162 1.162 0 0 0-.524.778 1.24 1.24 0 0 0 .211.937 1.338 1.338 0 0 0 1.435.533 1.235 1.235 0 0 0 .344-.151l2.132-1.36a4.067 4.067 0 0 1 1.135-.498 4.44 4.44 0 0 1 4.765 1.766 4.108 4.108 0 0 1 .702 3.108 3.857 3.857 0 0 1-1.742 2.583l-5.589 3.562a4.072 4.072 0 0 1-1.135.499m10.358-17.95C18.484-.015 14.082-.96 10.9 1.068L5.31 4.63a6.412 6.412 0 0 0-2.896 4.295 6.753 6.753 0 0 0 .666 4.336 6.43 6.43 0 0 0-.96 2.396 6.833 6.833 0 0 0 1.168 5.167c2.229 3.19 6.63 4.135 9.812 2.108l5.59-3.562a6.41 6.41 0 0 0 2.896-4.295 6.756 6.756 0 0 0-.665-4.336 6.429 6.429 0 0 0 .958-2.396 6.831 6.831 0 0 0-1.167-5.168Z"/></g>',swift:'<defs><clipPath id="__PIW_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__PIW_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#f05138" d="M126.33 34.06a39.32 39.32 0 00-.79-7.83 28.78 28.78 0 00-2.65-7.58 28.84 28.84 0 00-4.76-6.32 23.42 23.42 0 00-6.62-4.55 27.27 27.27 0 00-7.68-2.53c-2.65-.51-5.56-.51-8.21-.76H30.25a45.46 45.46 0 00-6.09.51 21.82 21.82 0 00-5.82 1.52c-.53.25-1.32.51-1.85.76a33.82 33.82 0 00-5 3.28c-.53.51-1.06.76-1.59 1.26a22.41 22.41 0 00-4.76 6.32 23.61 23.61 0 00-2.65 7.58 78.5 78.5 0 00-.79 7.83v60.39a39.32 39.32 0 00.79 7.83 28.78 28.78 0 002.65 7.58 28.84 28.84 0 004.76 6.32 23.42 23.42 0 006.62 4.55 27.27 27.27 0 007.68 2.53c2.65.51 5.56.51 8.21.76h63.22a45.08 45.08 0 008.21-.76 27.27 27.27 0 007.68-2.53 30.13 30.13 0 006.62-4.55 22.41 22.41 0 004.76-6.32 23.61 23.61 0 002.65-7.58 78.49 78.49 0 00.79-7.83V34.06z"/><path fill="#fefefe" d="M85 96.5c-11.11 6.13-26.38 6.76-41.75.47A64.53 64.53 0 0113.84 73a50 50 0 0010.85 6.32c15.87 7.1 31.73 6.61 42.9 0-15.9-11.66-29.4-26.82-39.46-39.2a43.47 43.47 0 01-5.29-6.82c12.16 10.61 31.5 24 38.38 27.79a271.77 271.77 0 01-27-32.34 266.8 266.8 0 0044.47 34.87c.71.38 1.26.7 1.7 1a32.7 32.7 0 001.21-3.51c3.71-12.89-.53-27.54-9.79-39.67C93.25 33.81 106 57.05 100.66 76.51c-.14.53-.29 1-.45 1.55l.19.22c10.59 12.63 7.68 26 6.35 23.5C101 91 90.37 94.33 85 96.5z"/></svg></g>',toml:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F6EEEA" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#9C4121" d="M.014 0h5.34v2.652H2.888v18.681h2.468V24H.015V0Zm17.622 5.049v2.78h-4.274v12.935h-3.008V7.83H6.059V5.05h11.577ZM23.986 24h-5.34v-2.652h2.467V2.667h-2.468V0h5.34v24Z"/></g>',typescript:'<defs><clipPath id="__PIW_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__PIW_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#fff" d="M22.67 47h99.67v73.67H22.67z"/><path data-name="original" fill="#007acc" d="M1.5 63.91v62.5h125v-125H1.5zm100.73-5a15.56 15.56 0 017.82 4.5 20.58 20.58 0 013 4c0 .16-5.4 3.81-8.69 5.85-.12.08-.6-.44-1.13-1.23a7.09 7.09 0 00-5.87-3.53c-3.79-.26-6.23 1.73-6.21 5a4.58 4.58 0 00.54 2.34c.83 1.73 2.38 2.76 7.24 4.86 8.95 3.85 12.78 6.39 15.16 10 2.66 4 3.25 10.46 1.45 15.24-2 5.2-6.9 8.73-13.83 9.9a38.32 38.32 0 01-9.52-.1 23 23 0 01-12.72-6.63c-1.15-1.27-3.39-4.58-3.25-4.82a9.34 9.34 0 011.15-.73L82 101l3.59-2.08.75 1.11a16.78 16.78 0 004.74 4.54c4 2.1 9.46 1.81 12.16-.62a5.43 5.43 0 00.69-6.92c-1-1.39-3-2.56-8.59-5-6.45-2.78-9.23-4.5-11.77-7.24a16.48 16.48 0 01-3.43-6.25 25 25 0 01-.22-8c1.33-6.23 6-10.58 12.82-11.87a31.66 31.66 0 019.49.26zm-29.34 5.24v5.12H56.66v46.23H45.15V69.26H28.88v-5a49.19 49.19 0 01.12-5.17C29.08 59 39 59 51 59h21.83z"/></svg></g>',vue:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECF8F3" stroke="#D5EAE0" stroke-width=".5"/><path fill="#41B883" d="M3.5 5h3.2l3.3 5.7L13.3 5h3.2L10 16z"/><path fill="#35495E" d="M6.7 5H9l1 1.8L11 5h2.3L10 10.7z"/>',wasm:'<defs><clipPath id="__PIW_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__PIW_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#654ff0" d="M.223.222v127.555h127.555V.222H78.594c.014.227.036.455.036.686 0 8.08-6.55 14.626-14.63 14.626-8.078 0-14.625-6.546-14.625-14.626 0-.231.022-.459.031-.686zm29.595 68.746h8.445l5.782 30.738h.107l6.968-30.738h7.908l6.265 31.119h.106l6.597-31.119h8.284l-10.765 45.156H61.12l-6.213-30.738H54.8l-6.7 30.738h-8.557zm59.994 0h13.334l13.284 45.156h-8.77l-2.879-10.051H89.59l-2.212 10.05h-8.5ZM94.895 80.1l-3.684 16.57h11.473L98.448 80.1Z"/></svg></g>',xml:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EAF3FA" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#005FAD" d="M4.345 7.053c-.495.02-.44.725-.536 1.081-.157.583-.3 1.325-.347 1.926-.046.585-.008 1.127.066 1.719.058.46.191.767.07.89-.108.11-3.216 2.962-3.466 3.123-.26.169-.08.584.069.817.157.246.23.373.557.33.306-.042.405-.409.583-.606.228-.252 2.421-2.401 2.616-2.401.077.544.367 1.064.67 1.513.15.222.314.439.505.629.175.175.4.317.587.45.44.024.795-.301.35-.67-.17-.14-.735-.971-.927-1.43-.18-.43-.574-1.076-.146-1.428 1.494-1.23 3.72-2.262 4.247-2.313-.257 1.024-1.356 3.048-1.757 4.012-.14.333-.231.732-.185 1.094.055.434.383.774.587.806.417-.023.7-.387.946-.645.343-.357.634-.685.974-1.043.339-.356.672-.731.971-1.07.184-.207.674-.713.963-.713-.11.693-.716 1.552-.839 2.254-.125.716.531 1.596 1.217.956.623-.58 1.255-1.129 1.867-1.72.217-.208.175.037.224.242.05.208.176.91.275 1.1.18.346.496.592.897.598.362.006.727-.161.982-.414.19-.187.513-.699.154-.832-.23-.086-.217-.176-.495-.129-.172.029-.362.074-.507.179-.367-.003-.381-.89-.324-1.161.068-.327.207-.659.185-.998-.026-.418-.478-.69-.582-.72-.156-.076-.253.023-.458.212-.173.161-.363.332-.535.495-.34.322-.768.813-.942.813.305-.705.708-2.652-.643-2.48-.563.071-.95.377-1.394.71-.29.28-.683.641-.936.87-.236.216-.371.404-.496.404.132-.747 1.685-3.167.885-3.853-.158-.136-.313-.325-.515-.349a4.637 4.637 0 0 0-.833.19c-.565.18-2.78 1.28-4.19 2.289-.131.094-.214-.085-.231-.29-.087-1.058.199-2.19.496-3.188.208-.696-.557-1.225-.659-1.249zm18.177.874c-.166.364-.2.894-.248 1.319a24.307 24.307 0 0 0-1.246-.115c.238.296.691.588 1.056.724-.048.366-.434.67-.599 1.021.458-.127.676-.47.989-.821.362.22.791.627 1.26.636-.177-.376-.334-.695-.658-.966.269-.175.717-.362.924-.633-.345-.074-.718-.093-1.052-.015-.258-.284-.3-.772-.426-1.15zm-2.92.079c-.23.02-.613.49-.832.773-.807 1.039-1.542 3.15-1.661 3.542-.363 1.195-.502 2.672.28 3.722.456.612 1.258.66 2.041.434.405-.116.812-.406.95-.723.114-.263.174-.753-.404-.38-.224.145-.634.304-1.37.291-.247-.004-.651-.357-.76-.722-.192-.595-.11-1.393-.11-1.393.167-1.028.642-2.146 1.061-3.076.163-.36.658-1.259.842-1.546 0 0 .239-.373.131-.77-.031-.116-.091-.16-.168-.152zm3.072 2.976c-.12.264-.144.648-.18.956-.274-.031-.63-.066-.904-.083.172.215.501.426.766.525-.034.265-.314.486-.434.741.332-.092.49-.34.717-.596.263.16.575.456.914.462-.127-.273-.242-.504-.477-.701.195-.127.52-.262.67-.46a1.77 1.77 0 0 0-.763-.01c-.187-.206-.217-.56-.309-.834zm-1.123 2.422c-.083.183-.1.449-.125.662a12.6 12.6 0 0 0-.624-.058c.119.148.346.295.53.363-.025.184-.219.336-.301.513.23-.064.339-.236.496-.413.181.11.397.316.632.32-.088-.19-.168-.349-.33-.485.135-.087.36-.181.463-.317a1.22 1.22 0 0 0-.527-.008c-.13-.142-.151-.387-.214-.576z"/></g>',yaml:`<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCEEEF" stroke="#F0D8DB" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet">
|
|
81
|
+
`),[e]),B=v.every(D=>D.every(L=>L.text.trim()==="")),{hidden:T,capped:ee,headLines:ie,tailLines:Y}=kx(v.length,f,C);return c.jsxs("div",{className:st(Ht.block,p),"data-terminal":"","data-running":d?"":void 0,children:[c.jsxs("div",{className:Ht.header,children:[c.jsxs("div",{className:Ht.prompt,children:[c.jsx("span",{className:Ht.runStateLabel,children:S.label}),F.map((D,L)=>c.jsxs("div",{className:Ht.promptLine,children:[L===0&&c.jsx(Gu,{state:S.state,className:Ht.runState}),c.jsx("span",{className:Ht.cwd,children:L>0||r===void 0?"$":Wx(r,i)}),c.jsx("span",{className:Ht.command,children:D})]},L))]}),V!==void 0&&c.jsx(Nx,{className:Ht.status,children:V}),!d&&!B&&c.jsx("button",{type:"button",className:Ht.copyButton,onClick:R,children:P?y.copied:y.copy})]}),!d&&(B?c.jsx("div",{className:Ht.empty,children:y.noOutput}):c.jsxs("div",{className:Ht.output,children:[(ee?v.slice(0,ie):v).map((D,L)=>c.jsx("div",{className:Ht.line,children:ad(D)},L)),T>0&&c.jsx("button",{type:"button",className:Ht.expand,"aria-expanded":C,"aria-label":C?y.collapseAria:y.expandAria(T),onClick:j,children:C?y.collapse:y.expand(T)}),ee&&v.slice(v.length-Y).map((D,L)=>c.jsx("div",{className:Ht.line,children:ad(D)},L))]}))]})}const Qx="_root_1xitv_9",Gx="_row_1xitv_14",Kx="_leading_1xitv_45",Yx="_title_1xitv_52",Xx="_sep_1xitv_60",Jx="_chevron_1xitv_64",ey="_summary_1xitv_81",ty="_errorSummary_1xitv_154",ny="_bodyWrap_1xitv_159",ry="_inspectButton_1xitv_168",iy="_ioCard_1xitv_212",ly="_ioSection_1xitv_224",oy="_ioLabel_1xitv_253",sy="_ioDivider_1xitv_262",ay="_ioText_1xitv_268",uy="_terminalBody_1xitv_289",yt={root:Qx,row:Gx,leading:Kx,title:Yx,sep:Xx,chevron:Jx,summary:ey,errorSummary:ty,bodyWrap:ny,inspectButton:ry,ioCard:iy,ioSection:ly,ioLabel:oy,ioDivider:sy,ioText:ay,terminalBody:uy},cy="_root_1ulqw_1",dy="_chevron_1ulqw_21",fy="_label_1ulqw_35",_u={root:cy,chevron:dy,label:fy},py="_root_xlier_4",hy="_trigger_xlier_19",my="_label_xlier_39",bu={root:py,trigger:hy,label:my},gy="_panel_vk36c_10",xy="_title_vk36c_34",yy="_titleRule_vk36c_44",vy="_titleValue_vk36c_49",Cy="_titleLabel_vk36c_54",wy="_details_vk36c_67",ky="_route_vk36c_87",_y="_reasoning_vk36c_91",Cr={panel:gy,title:xy,titleRule:yy,titleValue:vy,titleLabel:Cy,details:wy,route:ky,reasoning:_y},by="_actions_qoqwk_5",Sy="_timeEnd_qoqwk_26",Ey="_action_qoqwk_5",Su={actions:by,timeEnd:Sy,action:Ey};function jy(e){try{const r=JSON.parse(e.text),i=r.command??r.file_path??r.path??r.url??r.query??r.pattern;if(typeof i=="string")return i}catch{}return e.text}function Ly({block:e,result:r,running:i,onInspect:o,cwd:s}){const[a,d]=E.useState(!1),f=(r==null?void 0:r.blocks.map(v=>v.text).join(`
|
|
82
|
+
`))??null,p=r!=null&&r.isError?"error":r?"ok":i?"running":"pending",m=e.toolName==="bash"||e.toolName==="pwsh",y={bash:"Bash",pwsh:"PowerShell",read:_("读取","Read"),write:_("写入","Write"),edit:_("编辑","Edit"),grep:_("搜索","Search"),glob:_("搜索","Search")}[e.toolName||""]||e.toolName||_("工具调用","Tool call"),x=jy(e);return c.jsx("div",{className:yt.root,"data-state":p,"data-tool":e.toolName,children:c.jsx(z3,{icon:c.jsx(N5,{size:14}),title:y,open:a,onToggle:()=>d(v=>!v),rowClassName:yt.row,leadingClassName:yt.leading,titleClassName:yt.title,chevronClassName:yt.chevron,collapsedContent:c.jsxs(c.Fragment,{children:[c.jsx("span",{className:yt.sep,"aria-hidden":!0}),c.jsx("span",{className:`${yt.summary} ${p==="error"?yt.errorSummary:""}`,children:p==="error"?f==null?void 0:f.split(`
|
|
83
|
+
`,1)[0]:x})]}),children:c.jsxs("div",{className:yt.bodyWrap,children:[m?c.jsx(Zx,{command:x,cwd:s,output:f??void 0,running:f===null,exitCode:r!=null&&r.isError?1:r?0:void 0,maxLines:1/0,className:yt.terminalBody,labels:{signal:v=>_(`信号 ${v}`,`Signal ${v}`),exitCode:v=>_(`退出码 ${v}`,`Exit code ${v}`),running:_("运行中","Running"),failed:_("失败","Failed"),done:_("已完成","Done"),copy:_("复制","Copy"),copied:_("已复制","Copied"),noOutput:_("无输出","No output"),collapseAria:_("收起输出","Collapse output"),collapse:_("收起","Collapse"),expandAria:v=>_(`展开其余 ${v} 行输出`,`Expand remaining ${v} output lines`),expand:v=>_(`… 其余 ${v} 行`,`… ${v} more lines`)}}):c.jsxs("div",{className:yt.ioCard,children:[c.jsxs("div",{className:yt.ioSection,children:[c.jsx("span",{className:yt.ioLabel,children:"IN"}),c.jsx("span",{className:yt.ioText,children:e.text})]}),f!==null&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:yt.ioDivider,"aria-hidden":!0}),c.jsxs("div",{className:yt.ioSection,children:[c.jsx("span",{className:yt.ioLabel,children:"OUT"}),c.jsx("span",{className:yt.ioText,"data-error":(r==null?void 0:r.isError)||void 0,children:f||_("无文本输出","No text output")})]})]})]}),o&&c.jsx("button",{className:yt.inspectButton,type:"button",onClick:o,children:_("查看轨迹","View trajectory")})]})})})}function Ny({toolCount:e,messageCount:r,open:i,onToggle:o}){const s=[e>0&&_(`${e} 次工具调用`,`${e} tool calls`),r>0&&_(`${r} 条消息`,`${r} messages`)].filter(Boolean);return c.jsxs("button",{type:"button",className:_u.root,"data-open":i||void 0,"aria-expanded":i,onClick:o,children:[c.jsx("span",{className:_u.label,children:s.length?s.join(" · "):_("已思考","Thought")}),c.jsx(kl,{className:_u.chevron})]})}function wr(e){return`${e.toLocaleString()} tok`}function Iy({usage:e,model:r}){const[i,o]=E.useState(!1),s=E.useRef(null),a=E.useRef(null),[d,f]=E.useState(null);E.useLayoutEffect(()=>{if(!i)return;const y=()=>{var P,R;const C=(P=s.current)==null?void 0:P.getBoundingClientRect(),k=(R=a.current)==null?void 0:R.getBoundingClientRect();C&&k&&f({top:Math.max(12,Math.min(window.innerHeight-k.height-12,C.top-k.height-8)),left:Math.max(12,Math.min(C.left,window.innerWidth-k.width-12))})};y();const x=C=>{var k,P;!((k=s.current)!=null&&k.contains(C.target))&&!((P=a.current)!=null&&P.contains(C.target))&&o(!1)},v=C=>{C.key==="Escape"&&o(!1)};return document.addEventListener("pointerdown",x),document.addEventListener("keydown",v),document.addEventListener("scroll",y,!0),window.addEventListener("resize",y),()=>{document.removeEventListener("pointerdown",x),document.removeEventListener("keydown",v),document.removeEventListener("scroll",y,!0),window.removeEventListener("resize",y)}},[i]);const p=e.input+e.cacheRead+e.cacheWrite,m=p>0?Math.round(e.cacheRead/p*100):null;return c.jsxs("span",{ref:s,className:bu.root,children:[c.jsxs("button",{type:"button",className:bu.trigger,"aria-haspopup":"dialog","aria-expanded":i,onClick:()=>o(y=>!y),children:[c.jsx(Iu,{}),c.jsxs("span",{className:bu.label,children:[_("用量","Usage")," ",wr(e.totalTokens)]})]}),i&&Il.createPortal(c.jsxs("div",{ref:a,className:Cr.panel,role:"dialog","aria-label":_("本轮用量","Turn usage"),style:d??{top:-1e3,left:-1e3},children:[c.jsxs("div",{className:Cr.title,children:[c.jsxs("span",{className:Cr.titleLabel,children:[c.jsx(Iu,{}),_("本轮用量","Turn usage")]}),c.jsx("span",{className:Cr.titleValue,children:wr(e.totalTokens)})]}),c.jsx("div",{className:Cr.titleRule,"aria-hidden":!0}),c.jsxs("dl",{className:Cr.details,children:[r&&c.jsxs(c.Fragment,{children:[c.jsx("dt",{children:_("提供方 / 模型","Provider / model")}),c.jsx("dd",{className:Cr.route,children:r})]}),m!==null&&c.jsxs(c.Fragment,{children:[c.jsx("dt",{children:_("缓存命中","Cache hit")}),c.jsxs("dd",{children:[m,"%"]})]}),c.jsx("dt",{children:_("未缓存输入","Uncached input")}),c.jsx("dd",{children:wr(e.input)}),c.jsx("dt",{children:_("缓存读取","Cache read")}),c.jsx("dd",{children:wr(e.cacheRead)}),c.jsx("dt",{children:_("缓存写入","Cache write")}),c.jsx("dd",{children:wr(e.cacheWrite)}),c.jsx("dt",{children:_("输出","Output")}),c.jsxs("dd",{children:[wr(e.output),e.reasoning!==void 0&&c.jsx("span",{className:Cr.reasoning,children:_(`(其中推理 ${wr(e.reasoning)})`,` (including ${wr(e.reasoning)} reasoning)`)})]})]})]}),document.body)]})}function Py({text:e,timestamp:r,usage:i,model:o}){const[s,a]=E.useState(!1);return c.jsxs("div",{className:Su.actions,children:[e&&c.jsx("button",{className:Su.action,type:"button","aria-label":s?_("已复制","Copied"):_("复制回复","Copy reply"),onClick:()=>{navigator.clipboard.writeText(e).then(()=>{a(!0),window.setTimeout(()=>a(!1),1e3)})},children:c.jsx(S5,{})}),i&&c.jsx(Iy,{usage:i,model:o}),r&&c.jsx("time",{className:Su.timeEnd,dateTime:r,children:new Date(r).toLocaleTimeString(_("zh-CN","en-US"),{hour:"2-digit",minute:"2-digit"})})]})}function A3(e){const r=[];for(const i of e){(i.role==="user"||r.length===0)&&r.push({id:i.id,index:r.length+1,messages:[],usage:null});const o=r[r.length-1];if(o.messages.push(i),i.usage){const s=o.usage;o.usage={input:((s==null?void 0:s.input)??0)+i.usage.input,output:((s==null?void 0:s.output)??0)+i.usage.output,cacheRead:((s==null?void 0:s.cacheRead)??0)+i.usage.cacheRead,cacheWrite:((s==null?void 0:s.cacheWrite)??0)+i.usage.cacheWrite,totalTokens:((s==null?void 0:s.totalTokens)??0)+i.usage.totalTokens,cost:((s==null?void 0:s.cost)??0)+i.usage.cost,...(s==null?void 0:s.reasoning)!==void 0||i.usage.reasoning!==void 0?{reasoning:((s==null?void 0:s.reasoning)??0)+(i.usage.reasoning??0)}:{}}}}return r}function My(e){const r=new Set(e.flatMap(i=>i.blocks.filter(o=>o.kind==="toolCall"&&o.toolCallId).map(o=>o.toolCallId)));return new Map(e.filter(i=>i.role==="tool"&&i.toolCallId&&r.has(i.toolCallId)).map(i=>[i.toolCallId,i]))}const Ty="_root_10hwk_2",zy="_ledger_10hwk_16",ud={root:Ty,ledger:zy},Ry="_tablePane_m0qel_15",Dy="_table_m0qel_15",Ay="_eventColumn_m0qel_136",Fy="_contentColumn_m0qel_140",Oy="_event_m0qel_136",$y="_selectionRail_m0qel_330",By="_turnLabel_m0qel_392",Hy="_eventInner_m0qel_435",Vy="_kindSlot_m0qel_443",Uy="_content_m0qel_140",Wy="_kindTag_m0qel_463",qy="_kindTagLabel_m0qel_491",Zy="_user_m0qel_594",Qy="_assistantVioletBright_m0qel_687",Gy="_toolAmber_m0qel_704",Ky="_contentText_m0qel_722",Yy="_collapsedTurnContent_m0qel_753",Xy="_collapsedTurnEllipsis_m0qel_762",Jy="_collapsedTurnText_m0qel_770",ev="_resultPreview_m0qel_777",tv="_resultRequest_m0qel_791",nv="_inlineResultText_m0qel_792",rv="_toolCallNameTypeface_m0qel_799",iv="_toolCallPayload_m0qel_805",lv="_inlineResult_m0qel_792",ov="_arrow_m0qel_834",sv="_error_m0qel_840",av="_overview_m0qel_844",uv="_details_m0qel_848",cv="_detailsResizeHandle_m0qel_879",dv="_detailsHeader_m0qel_898",fv="_detailsTitle_m0qel_909",pv="_requestDetailsDot_m0qel_917",hv="_requestDetailsName_m0qel_926",mv="_detailsLocation_m0qel_931",gv="_close_m0qel_940",xv="_detailBody_m0qel_1021",yv="_markdownPayload_m0qel_1062",vv="_overviewHeading_m0qel_1188",Cv="_payload_m0qel_1341",Ie={tablePane:Ry,table:Dy,eventColumn:Ay,contentColumn:Fy,event:Oy,selectionRail:$y,turnLabel:By,eventInner:Hy,kindSlot:Vy,content:Uy,kindTag:Wy,kindTagLabel:qy,user:Zy,assistantVioletBright:Qy,toolAmber:Gy,contentText:Ky,collapsedTurnContent:Yy,collapsedTurnEllipsis:Xy,collapsedTurnText:Jy,resultPreview:ev,resultRequest:tv,inlineResultText:nv,toolCallNameTypeface:rv,toolCallPayload:iv,inlineResult:lv,arrow:ov,error:sv,overview:av,details:uv,detailsResizeHandle:cv,detailsHeader:dv,detailsTitle:fv,requestDetailsDot:pv,requestDetailsName:hv,detailsLocation:mv,close:gv,detailBody:xv,markdownPayload:yv,overviewHeading:vv,payload:Cv},wv="_root_wxaz8_1",kv="_plot_wxaz8_14",_v="_labels_wxaz8_22",bv="_track_wxaz8_53",Sv="_empty_wxaz8_104",Ev="_lanes_wxaz8_118",jv="_turnBoundaries_wxaz8_127",Lv="_turnBoundary_wxaz8_144",Nv="_span_wxaz8_153",Iv="_selection_wxaz8_253",Pv="_selectionEdges_wxaz8_272",Mv="_hoverLine_wxaz8_283",Mt={root:wv,plot:kv,labels:_v,track:bv,empty:Sv,lanes:Ev,turnBoundaries:jv,turnBoundary:Lv,span:Nv,selection:Iv,selectionEdges:Pv,hoverLine:Mv},Tv="_timelineButton_1dmz1_1",zv="_turnLabelButton_1dmz1_3",Rv="_empty_1dmz1_5",Vu={timelineButton:Tv,turnLabelButton:zv,empty:Rv};function Kn(e,r,i){return Math.min(i,Math.max(r,e))}function Dv({t:e,model:r,actualTime:i,selectedIndex:o,matchingIndexes:s,range:a,onRangeChange:d,onSelect:f}){const p=E.useRef(null),m=E.useRef(null),y=E.useRef(null),[x,v]=E.useState(null),[C,k]=E.useState(null),[P,R]=E.useState(null),[j,V]=E.useState(!1),S=Math.max(1,((r==null?void 0:r.end)??1)-((r==null?void 0:r.start)??0)),F=C&&r?Kn(C.end-C.start,1,S):S,B=r?Kn((C==null?void 0:C.start)??r.start,r.start,r.end-F):0,T=L=>{const Z=L.currentTarget.getBoundingClientRect();return Kn((L.clientX-Z.left)/Math.max(1,Z.width),0,1)},ee=L=>{const Z=L.target instanceof Element?L.target.closest("[data-timeline-record-index]"):null,te=Number(Z==null?void 0:Z.dataset.timelineRecordIndex);return Z&&Number.isFinite(te)?te:null};if(E.useEffect(()=>{k(null),d(null)},[i]),E.useEffect(()=>{!r||!C||(C.end<r.start||C.start>r.end)&&k(null)},[r,C]),E.useEffect(()=>{if(!r||!C||o===null)return;const L=r.spans.find(te=>te.index===o);if(!L||L.start>=B&&L.start<=B+F)return;const Z=Kn(L.start-F/2,r.start,r.end-F);k({start:Z,end:Z+F})},[r,o]),E.useEffect(()=>{const L=p.current;if(!L||!r)return;const Z=te=>{var z;te.preventDefault();const W=(z=m.current)==null?void 0:z.getBoundingClientRect();if(!W)return;const $=Kn((te.clientX-W.left)/Math.max(1,W.width),0,1),I=Kn(F*Math.exp(te.deltaY*.0015),Math.min(i?20:4,S),S);if(I>=S*.999){k(null);return}const J=Kn(B+$*(F-I),r.start,r.end-I);k({start:J,end:J+I})};return L.addEventListener("wheel",Z,{passive:!1}),()=>L.removeEventListener("wheel",Z)},[r,B,F,S,i]),!r)return c.jsx("section",{ref:p,className:Mt.root,"aria-label":e("会话时间线","Session timeline"),children:c.jsxs("div",{className:Mt.plot,children:[c.jsxs("div",{className:Mt.labels,"aria-hidden":"true",children:[c.jsx("span",{children:e("输入","Input")}),c.jsx("span",{children:e("模型","Model")}),c.jsx("span",{children:e("工具","Tool")})]}),c.jsx("div",{className:Mt.track,children:c.jsx("span",{className:Mt.empty,children:e("暂无轨迹","No trajectory yet")})})]})});const ie={"--trajectory-domain-left":`${-(B-r.start)/F*100}%`,"--trajectory-domain-width":`${S/F*100}%`},Y=x??a,D=Y?{"--trajectory-selection-left":`${(Y.start-B)/F*100}%`,"--trajectory-selection-width":`${(Y.end-Y.start)/F*100}%`}:void 0;return c.jsx("section",{ref:p,className:Mt.root,"aria-label":e("会话时间线","Session timeline"),children:c.jsxs("div",{className:Mt.plot,children:[c.jsxs("div",{className:Mt.labels,"aria-hidden":"true",children:[c.jsx("span",{children:e("输入","Input")}),c.jsx("span",{children:e("模型","Model")}),c.jsx("span",{children:e("工具","Tool")})]}),c.jsxs("div",{ref:m,className:Mt.track,"data-panning":j||void 0,"aria-label":e("时间线概览;拖动选择范围,滚轮缩放,右键拖动平移","Timeline overview; drag to select, scroll to zoom, right drag to pan"),tabIndex:0,onKeyDown:L=>{L.key==="Escape"&&(d(null),k(null))},onDoubleClick:()=>d(null),onContextMenu:L=>L.preventDefault(),onPointerDown:L=>{if(L.button!==0&&L.button!==2)return;const Z=B+T(L)*F;y.current={pointerId:L.pointerId,clientX:L.clientX,time:Z,index:ee(L),pan:L.button===2,viewportStart:B},L.currentTarget.setPointerCapture(L.pointerId),L.button===2?V(!0):v({start:Z,end:Z})},onPointerMove:L=>{R(T(L));const Z=y.current;if(!(!Z||Z.pointerId!==L.pointerId))if(Z.pan){if(!C)return;const te=L.currentTarget.getBoundingClientRect(),W=Kn(Z.viewportStart-(L.clientX-Z.clientX)/Math.max(1,te.width)*F,r.start,r.end-F);k({start:W,end:W+F})}else{const te=B+T(L)*F;v({start:Math.min(Z.time,te),end:Math.max(Z.time,te)})}},onPointerUp:L=>{const Z=y.current;if(!Z||Z.pointerId!==L.pointerId)return;if(y.current=null,L.currentTarget.releasePointerCapture(L.pointerId),V(!1),v(null),Z.pan){Math.abs(L.clientX-Z.clientX)<3&&d(null);return}if(Math.abs(L.clientX-Z.clientX)<3&&Z.index!==null){d(null),f(Z.index);return}const te=B+T(L)*F,W=Math.min(F,S/r.spans.length),$=(Z.time+te)/2,I=Math.max(W,Math.abs(te-Z.time)),J=Kn($-I/2,r.start,r.end-I);d({start:J,end:J+I})},onPointerCancel:()=>{y.current=null,v(null),V(!1)},onPointerLeave:()=>{y.current||R(null)},children:[P!==null&&!x&&c.jsx("div",{className:Mt.hoverLine,style:{"--trajectory-hover-left":`${P*100}%`},"aria-hidden":"true"}),D&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:Mt.selection,style:D,"aria-hidden":"true"}),c.jsx("div",{className:Mt.selectionEdges,style:D,"aria-hidden":"true"})]}),c.jsx("div",{className:Mt.turnBoundaries,style:ie,"aria-hidden":"true",children:r.boundaries.slice(1).map(L=>c.jsx("span",{className:Mt.turnBoundary,style:{"--trajectory-turn-left":`${(L.time-r.start)/S*100}%`}},L.turn))}),c.jsx("div",{className:Mt.lanes,style:ie,children:r.spans.map(L=>{const Z=(L.end-L.start)/S*100;return c.jsx("button",{type:"button",className:`${Mt.span} ${Vu.timelineButton}`,"data-timeline-record-index":L.index,"data-timeline-span":L.lane===0?"user":L.lane===2?"tool":"message","data-equal-duration":i&&L.end===L.start||void 0,"data-current":o===L.index||void 0,"data-error":L.error||void 0,"data-selected":Y?L.start<=Y.end&&L.end>=Y.start?"true":"false":void 0,"data-search-match":s?s.has(L.index)?"true":"false":void 0,"aria-label":e(`第 ${L.index} 条轨迹`,`Trajectory record ${L.index}`),title:e(`第 ${L.index} 条 · ${i?new Date(L.start).toLocaleTimeString():"事件顺序"}`,`Record ${L.index} · ${i?new Date(L.start).toLocaleTimeString():"event order"}`),style:{"--trajectory-span-left":`${(L.start-r.start)/S*100}%`,"--trajectory-span-width":`${Z}%`,"--trajectory-span-gap":`min(${Z*.08}%, 1px)`,"--trajectory-span-lane":L.lane},onClick:te=>{te.detail===0&&f(L.index)}},L.index)})})]})]})})}function Av(e,r){if(e.length===0)return null;const i=e.map(p=>Date.parse(p.timestamp)).find(Number.isFinite)??0,o=e.map((p,m)=>{const y=Date.parse(p.timestamp),x=r&&Number.isFinite(y)?y:m,v=p.endTimestamp?Date.parse(p.endTimestamp):NaN;return{index:p.index,start:x,end:r&&Number.isFinite(v)&&v>x?v:r?x:m+1,lane:p.kind==="user"?0:p.kind==="tool"?2:1,error:p.error===!0}}),s=e.flatMap((p,m)=>m===0||p.turn!==e[m-1].turn?[{turn:p.turn,time:o[m].start}]:[]),a=r?Math.min(i,...o.map(p=>p.start)):0,d=Math.max(...o.map(p=>p.end)),f=r?d+Math.max(1,(d-a)/100):e.length;return{start:a,end:f,spans:o,boundaries:s}}function Fv(e,r,i){return new Set(e.spans.filter(o=>o.start<=i&&o.end>=r).map(o=>o.index))}const Ov="_root_15786_1",$v="_inner_15786_12",Bv="_actions_15786_22",Hv="_toggle_15786_29",Vv="_toggleIcon_15786_59",Uv="_action_15786_22",Wv="_actionIcon_15786_163",qv="_search_15786_168",Zv="_searchIcon_15786_192",Qv="_searchInput_15786_196",hn={root:Ov,inner:$v,actions:Bv,toggle:Hv,toggleIcon:Vv,action:Uv,actionIcon:Wv,search:qv,searchIcon:Zv,searchInput:Qv};function Uu(e){return e.replace(/\s+/g," ").trim()}function Gv(e){try{return JSON.stringify(JSON.parse(e))}catch{return Uu(e)}}function Kv(e){const r=new Map(e.filter(o=>o.role==="tool"&&o.toolCallId).map(o=>[o.toolCallId,o]));let i=0;return A3(e).flatMap(o=>{const s=[],a=new Set(o.messages.flatMap(d=>d.blocks.filter(f=>f.kind==="toolCall"&&f.toolCallId).map(f=>f.toolCallId)));for(const d of o.messages)if(!(d.role==="tool"&&d.toolCallId&&a.has(d.toolCallId)))for(const[f,p]of d.blocks.entries()){const m=d.role==="user"?"user":d.role==="tool"||p.kind==="toolCall"?"tool":"message",y=p.kind==="toolCall"&&p.toolCallId?r.get(p.toolCallId):void 0;s.push({id:`${d.id}-${f}`,...p.toolCallId||d.toolCallId?{callId:p.toolCallId??d.toolCallId}:{},kind:m,label:m==="tool"?_("工具","Tool"):d.role==="user"?_("用户","User"):_("助手","Assistant"),...m==="tool"?{toolName:p.kind==="toolCall"?p.toolName||_("工具","Tool"):d.toolName||_("工具","Tool")}:{},text:p.text,preview:p.kind==="toolCall"?Gv(p.text):Uu(p.text),...y?{result:Uu(y.blocks.map(x=>x.text).join(" "))}:{},timestamp:d.timestamp,...y?{endTimestamp:y.timestamp}:{},...d.usage&&f===d.blocks.length-1?{usage:d.usage}:{},...d.isError||y!=null&&y.isError?{error:!0}:{},turn:o.index,index:++i})}return s})}function qo(e){return e===void 0?"":e.toLocaleString()}function cd(e,r){return Math.round(Math.min(Math.max(e,320),Math.max(320,Math.min(720,r-280))))}function Yv({messages:e,inspectCallId:r}){var $;const i=Jn(),o=E.useMemo(()=>Kv(e),[e,i]),s=(($=o.at(-1))==null?void 0:$.turn)??0,[a,d]=E.useState(""),[f,p]=E.useState(null),[m,y]=E.useState(new Set),[x,v]=E.useState(!1),[C,k]=E.useState(!1),[P,R]=E.useState(null),[j,V]=E.useState(null),S=E.useRef(null),F=E.useRef(null);E.useEffect(()=>{var I;r&&p(((I=o.find(J=>J.callId===r))==null?void 0:I.id)??null)},[r,o]);const B=o.find(I=>I.id===f)??null,T=a.trim().toLocaleLowerCase(),ee=E.useMemo(()=>Av(o,C),[o,C]),ie=ee&&P?Fv(ee,P.start,P.end):null,Y=T?new Set(o.filter(I=>`${I.label} ${I.toolName??""} ${I.preview} ${I.result??""}`.toLocaleLowerCase().includes(T)).map(I=>I.index)):null,D=o.filter(I=>!m.has(I.turn)&&(!x||I.kind!=="tool")&&(!T||`${I.label} ${I.toolName??""} ${I.preview} ${I.result??""}`.toLocaleLowerCase().includes(T))),L=new Map;for(const I of D){const J=L.get(I.turn)??[];J.push(I),L.set(I.turn,J)}const Z=new Map;for(const I of o)Z.set(I.turn,(Z.get(I.turn)??0)+1);const te=Array.from({length:s},(I,J)=>J+1).flatMap(I=>m.has(I)?[{type:"collapsed",turn:I,count:Z.get(I)??0}]:(L.get(I)??[]).map((z,ne)=>({type:"record",record:z,firstInTurn:ne===0}))),W=I=>{var J,z;p(I.id),(z=(J=F.current)==null?void 0:J.querySelector(`[data-record-index="${I.index}"]`))==null||z.scrollIntoView({block:"center",behavior:"smooth"})};return c.jsxs("div",{className:ud.root,"data-conversation-composer-overlay":!0,"aria-label":_("会话轨迹","Session trajectory"),children:[c.jsx("div",{className:hn.root,role:"toolbar","aria-label":_("轨迹工具栏","Trajectory toolbar"),children:c.jsxs("div",{className:hn.inner,children:[c.jsxs("div",{className:hn.actions,children:[c.jsxs("button",{type:"button",className:hn.toggle,"aria-pressed":C,title:C?_("按事件顺序排列","Arrange by event order"):_("按记录时间排列","Arrange by recorded time"),onClick:()=>k(I=>!I),children:[c.jsxs("svg",{className:hn.toggleIcon,viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[c.jsx("circle",{cx:"8",cy:"8",r:"5.25"}),c.jsx("path",{d:"M8 4.75V8l2.25 1.5"})]}),_("时长","Duration")]}),c.jsxs("button",{type:"button",className:hn.action,"aria-pressed":s>0&&m.size===s,"aria-label":s>0&&m.size===s?_("展开轮次","Expand turns"):_("折叠轮次","Collapse turns"),onClick:()=>y(I=>I.size===s?new Set:new Set(Array.from({length:s},(J,z)=>z+1))),children:[c.jsx("span",{className:hn.actionIcon,"aria-hidden":"true",children:m.size===s?"⊞":"⊟"}),_("轮次","Turns")]}),c.jsxs("button",{type:"button",className:hn.action,"aria-pressed":x,"aria-label":x?_("展开调用","Expand calls"):_("折叠调用","Collapse calls"),onClick:()=>v(I=>!I),children:[c.jsx("span",{className:hn.actionIcon,"aria-hidden":"true",children:x?"⊞":"⊟"}),_("调用","Calls")]})]}),c.jsxs("label",{className:hn.search,children:[c.jsx(_d,{size:11,className:hn.searchIcon}),c.jsx("input",{type:"search",className:hn.searchInput,"aria-label":_("搜索轨迹","Search trajectory"),placeholder:_("搜索","Search"),value:a,onChange:I=>d(I.target.value)})]})]})}),c.jsx(Dv,{t:_,model:ee,actualTime:C,selectedIndex:(B==null?void 0:B.index)??null,matchingIndexes:Y,range:P,onRangeChange:R,onSelect:I=>{const J=o.find(z=>z.index===I);J&&W(J)}}),c.jsxs("div",{className:ud.ledger,children:[c.jsx("div",{ref:F,className:Ie.tablePane,children:c.jsxs("table",{className:Ie.table,"data-scroll-ready":"true","aria-label":_("轨迹记录","Trajectory records"),children:[c.jsxs("colgroup",{children:[c.jsx("col",{className:Ie.eventColumn}),c.jsx("col",{className:Ie.contentColumn})]}),c.jsxs("tbody",{children:[te.map(I=>I.type==="collapsed"?c.jsxs("tr",{tabIndex:0,"data-collapsed-summary":"turn","data-turn-start":"true","aria-label":_(`展开第 ${I.turn} 轮`,`Expand turn ${I.turn}`),onClick:()=>y(J=>{const z=new Set(J);return z.delete(I.turn),z}),onKeyDown:J=>{(J.key==="Enter"||J.key===" ")&&(J.preventDefault(),y(z=>{const ne=new Set(z);return ne.delete(I.turn),ne}))},children:[c.jsx("td",{className:Ie.event,children:c.jsx("span",{className:Ie.turnLabel,children:_(`第 ${I.turn} 轮`,`Turn ${I.turn}`)})}),c.jsx("td",{className:Ie.content,children:c.jsxs("span",{className:Ie.collapsedTurnContent,children:[c.jsx("span",{className:Ie.collapsedTurnEllipsis,children:"…"}),c.jsx("span",{className:Ie.collapsedTurnText,children:_(`${I.count} 条记录,点击展开`,`${I.count} records, click to expand`)})]})})]},`collapsed-${I.turn}`):c.jsxs("tr",{tabIndex:0,"data-record-index":I.record.index,"data-kind":I.record.kind,"data-turn-start":I.firstInTurn||void 0,"data-error":I.record.error||void 0,"data-selected":f===I.record.id||void 0,"data-timeline-focus":ie?ie.has(I.record.index)?"inside":"outside":void 0,"aria-selected":f===I.record.id,"aria-label":_(`第 ${I.record.turn} 轮,${I.record.label},${I.record.preview}`,`Turn ${I.record.turn}, ${I.record.label}, ${I.record.preview}`),onClick:()=>W(I.record),onKeyDown:J=>{(J.key==="Enter"||J.key===" ")&&(J.preventDefault(),W(I.record))},children:[c.jsxs("td",{className:Ie.event,children:[I.firstInTurn&&c.jsx("button",{type:"button",className:Vu.turnLabelButton,"aria-label":_(`折叠第 ${I.record.turn} 轮`,`Collapse turn ${I.record.turn}`),onClick:J=>{J.stopPropagation(),y(z=>new Set([...z,I.record.turn]))},children:c.jsx("span",{className:Ie.turnLabel,children:_(`第 ${I.record.turn} 轮`,`Turn ${I.record.turn}`)})}),c.jsx("div",{className:Ie.eventInner,children:c.jsx("span",{className:Ie.kindSlot,children:c.jsx("span",{className:`${Ie.kindTag} ${I.record.kind==="user"?Ie.user:I.record.kind==="tool"?Ie.toolAmber:Ie.assistantVioletBright}`,children:c.jsx("span",{className:Ie.kindTagLabel,children:I.record.label})})})}),f===I.record.id&&c.jsx("span",{className:Ie.selectionRail,"aria-hidden":"true"})]}),c.jsx("td",{className:Ie.content,children:c.jsxs("span",{className:I.record.result===void 0?Ie.contentText:Ie.resultPreview,title:I.record.result===void 0?I.record.preview:`${I.record.label} ${I.record.preview} → ${I.record.result}`,children:[c.jsxs("span",{className:I.record.result===void 0?void 0:Ie.resultRequest,children:[I.record.kind==="tool"&&c.jsx("span",{className:Ie.toolCallNameTypeface,children:I.record.toolName}),c.jsx("span",{className:I.record.kind==="tool"?Ie.toolCallPayload:void 0,children:I.record.preview})]}),I.record.result!==void 0&&c.jsxs("span",{className:`${Ie.inlineResult} ${I.record.error?Ie.error:""}`,children:[c.jsx("span",{className:Ie.arrow,children:"→"}),c.jsx("span",{className:Ie.inlineResultText,children:I.record.result})]})]})})]},I.record.id)),te.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:2,className:Vu.empty,children:o.length===0?_("暂无轨迹","No trajectory yet"):_("没有匹配的记录","No matching records")})})]})]})}),B&&c.jsxs("aside",{id:"trajectory-detail-panel",className:Ie.details,"aria-label":_("轨迹详情","Trajectory details"),style:j===null?void 0:{width:j},children:[c.jsx("div",{className:Ie.detailsResizeHandle,role:"separator","aria-label":_("调整轨迹详情宽度","Resize trajectory details"),"aria-controls":"trajectory-detail-panel","aria-orientation":"vertical",tabIndex:0,title:_("拖动调整详情宽度,双击恢复","Drag to resize details; double click to reset"),onDoubleClick:()=>V(null),onPointerDown:I=>{var ne;if(I.button!==0)return;const J=I.currentTarget.parentElement,z=(ne=J==null?void 0:J.parentElement)==null?void 0:ne.getBoundingClientRect().width;!J||!z||(S.current={pointerId:I.pointerId,startX:I.clientX,startWidth:J.getBoundingClientRect().width,splitWidth:z},I.currentTarget.setPointerCapture(I.pointerId),I.preventDefault())},onPointerMove:I=>{const J=S.current;!J||J.pointerId!==I.pointerId||V(cd(J.startWidth+J.startX-I.clientX,J.splitWidth))},onPointerUp:I=>{var J;((J=S.current)==null?void 0:J.pointerId)===I.pointerId&&(S.current=null,I.currentTarget.releasePointerCapture(I.pointerId))},onPointerCancel:()=>{S.current=null},onKeyDown:I=>{var ne;if(I.key!=="ArrowLeft"&&I.key!=="ArrowRight")return;const J=I.currentTarget.parentElement,z=(ne=J==null?void 0:J.parentElement)==null?void 0:ne.getBoundingClientRect().width;!J||!z||(V(cd(J.getBoundingClientRect().width+(I.key==="ArrowLeft"?16:-16),z)),I.preventDefault())}}),c.jsxs("div",{className:Ie.detailsHeader,children:[c.jsxs("span",{className:Ie.detailsTitle,children:[B.kind==="tool"?c.jsx("span",{className:Ie.requestDetailsDot}):c.jsx(Iu,{size:14}),c.jsx("span",{className:Ie.requestDetailsName,children:B.toolName??B.label}),c.jsxs("span",{className:Ie.detailsLocation,children:[_(`第 ${B.turn} 轮`,`Turn ${B.turn}`)," · #",B.index]})]}),c.jsx("button",{type:"button",className:Ie.close,"aria-label":_("关闭详情","Close details"),onClick:()=>p(null),children:c.jsx(as,{})})]}),c.jsxs("div",{className:Ie.detailBody,children:[c.jsxs("dl",{className:Ie.overview,children:[c.jsxs("div",{children:[c.jsx("dt",{children:_("时间","Time")}),c.jsx("dd",{children:new Date(B.timestamp).toLocaleString(_("zh-CN","en-US"))})]}),B.callId&&c.jsxs("div",{children:[c.jsx("dt",{children:_("调用 ID","Call ID")}),c.jsx("dd",{children:B.callId})]}),B.usage&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{children:[c.jsx("dt",{children:_("输入","Input")}),c.jsx("dd",{children:qo(B.usage.input)})]}),c.jsxs("div",{children:[c.jsx("dt",{children:_("缓存读取","Cache read")}),c.jsx("dd",{children:qo(B.usage.cacheRead)})]}),c.jsxs("div",{children:[c.jsx("dt",{children:_("缓存写入","Cache write")}),c.jsx("dd",{children:qo(B.usage.cacheWrite)})]}),c.jsxs("div",{children:[c.jsx("dt",{children:_("输出","Output")}),c.jsx("dd",{children:qo(B.usage.output)})]})]})]}),c.jsx("div",{className:Ie.overviewHeading,children:_("内容","Content")}),B.kind==="tool"?c.jsx("pre",{className:Ie.payload,children:B.text}):c.jsx("div",{className:Ie.markdownPayload,children:c.jsx(T3,{text:B.text})}),B.result!==void 0&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:Ie.overviewHeading,children:_("结果","Result")}),c.jsx("pre",{className:Ie.payload,children:B.result})]})]})]})]})]})}const Xv="_root_aie2r_1",Jv="_trigger_aie2r_9",eC="_triggerLabel_aie2r_45",tC="_triggerEffort_aie2r_56",nC="_triggerIcon_aie2r_67",rC="_chevron_aie2r_88",iC="_chevronOpen_aie2r_94",lC="_menu_aie2r_101",oC="_empty_aie2r_132",sC="_groups_aie2r_123",aC="_group_aie2r_123",uC="_groupTitle_aie2r_179",cC="_option_aie2r_191",dC="_selected_aie2r_216",fC="_optionCopy_aie2r_225",pC="_modelName_aie2r_232",hC="_check_aie2r_242",mC="_cell_aie2r_252",gC="_cellLabel_aie2r_275",xC="_cellValue_aie2r_280",yC="_cellChevron_aie2r_290",We={root:Xv,trigger:Jv,triggerLabel:eC,triggerEffort:tC,triggerIcon:nC,chevron:rC,chevronOpen:iC,menu:lC,empty:oC,groups:sC,group:aC,groupTitle:uC,option:cC,selected:dC,optionCopy:fC,modelName:pC,check:hC,cell:mC,cellLabel:gC,cellValue:xC,cellChevron:yC};function vC({openSignal:e=0,current:r,models:i,disabled:o,onSelect:s,thinkingLevel:a,thinkingLevels:d,onSelectThinkingLevel:f}){const p={off:_("关闭","Off"),minimal:_("极低","Minimal"),low:_("低","Low"),medium:_("中","Medium"),high:_("高","High"),xhigh:_("极高","Extra high")},[m,y]=E.useState(!1),x=E.useRef(e);E.useEffect(()=>{e!==x.current&&(x.current=e,o||y(!0))},[e,o]);const[v,C]=E.useState("root"),[k,P]=E.useState(!1),[R,j]=E.useState({visibility:"hidden",left:0,top:0}),V=E.useId(),S=E.useRef(null),F=E.useRef(null),B=E.useRef(null),T=E.useMemo(()=>{const W=new Map;for(const $ of i)W.set($.provider,[...W.get($.provider)??[],$]);return[...W]},[i]),ee=i.find(W=>`${W.provider}/${W.id}`===r),ie=(ee==null?void 0:ee.name)||(r&&r!=="unknown/unknown"?r:_("选择模型","Choose a model")),Y=d.length>1&&a?p[a]??a:null,D=(W=!1)=>{var $;y(!1),C("root"),W&&(($=F.current)==null||$.focus())};E.useEffect(()=>{if(!m)return;const W=$=>{var I,J;!((I=S.current)!=null&&I.contains($.target))&&!((J=B.current)!=null&&J.contains($.target))&&D()};return document.addEventListener("mousedown",W),()=>document.removeEventListener("mousedown",W)},[m]),E.useLayoutEffect(()=>{if(!m||!F.current||!B.current)return;const W=()=>{if(!F.current||!B.current)return;const $=F.current.getBoundingClientRect(),I=B.current.getBoundingClientRect(),J=Math.max(16,Math.min($.right-I.width,innerWidth-I.width-16)),z=$.top-I.height-8>=16?$.top-I.height-8:Math.min($.bottom+8,innerHeight-I.height-16);j({left:J,top:z})};return W(),window.addEventListener("resize",W),window.addEventListener("scroll",W,!0),()=>{window.removeEventListener("resize",W),window.removeEventListener("scroll",W,!0)}},[m,v,i.length]);const L=W=>{var J,z;if(W.key==="Escape"){W.preventDefault(),v==="root"?D(!0):C("root");return}if(W.key!=="ArrowDown"&&W.key!=="ArrowUp")return;W.preventDefault();const $=[...((J=B.current)==null?void 0:J.querySelectorAll('button[role^="menuitem"]'))??[]].filter(ne=>!ne.disabled),I=$.indexOf(document.activeElement);(z=$[(I+(W.key==="ArrowDown"?1:-1)+$.length)%$.length])==null||z.focus()},Z=async W=>{if(`${W.provider}/${W.id}`===r){D(!0);return}P(!0);try{await s(W.provider,W.id),D(!0)}catch{}finally{P(!1)}},te=async W=>{if(W===a){D(!0);return}P(!0);try{await f(W),D(!0)}catch{}finally{P(!1)}};return c.jsxs("div",{ref:S,className:We.root,onKeyDown:L,children:[c.jsxs("button",{ref:F,className:We.trigger,type:"button","aria-label":_(`切换模型,当前 ${ie}${Y?`,推理强度${Y}`:""}`,`Change model, current ${ie}${Y?`, reasoning effort ${Y}`:""}`),"aria-haspopup":"menu","aria-expanded":m,"aria-controls":m?`${V}-menu`:void 0,title:Y?`${ie} · ${Y}`:ie,disabled:o||k,onClick:()=>m?D():y(!0),children:[c.jsx(Sd,{className:We.triggerIcon,size:16}),c.jsx("span",{className:We.triggerLabel,children:ie}),Y&&c.jsx("span",{className:We.triggerEffort,children:Y}),c.jsx(kl,{className:`${We.chevron} ${m?We.chevronOpen:""}`})]}),m&&Il.createPortal(c.jsx("div",{ref:B,id:`${V}-menu`,role:"menu","aria-label":_("选择模型","Choose model"),className:We.menu,style:R,children:v==="root"?c.jsxs(c.Fragment,{children:[c.jsxs("button",{type:"button",role:"menuitem",className:We.cell,onClick:()=>C("model"),children:[c.jsx("span",{className:We.cellLabel,children:_("模型","Model")}),c.jsx("span",{className:We.cellValue,children:ie}),c.jsx(ts,{className:We.cellChevron})]}),Y&&c.jsxs("button",{type:"button",role:"menuitem",className:We.cell,onClick:()=>C("effort"),children:[c.jsx("span",{className:We.cellLabel,children:_("推理强度","Reasoning effort")}),c.jsx("span",{className:We.cellValue,children:Y}),c.jsx(ts,{className:We.cellChevron})]})]}):v==="model"?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:We.groups,children:T.map(([W,$])=>c.jsxs("section",{className:We.group,role:"group","aria-label":W,children:[c.jsx("div",{className:We.groupTitle,children:W}),$==null?void 0:$.map(I=>c.jsxs("button",{type:"button",role:"menuitemradio","aria-checked":`${I.provider}/${I.id}`===r,className:`${We.option} ${`${I.provider}/${I.id}`===r?We.selected:""}`,title:I.name||I.id,disabled:k,onClick:()=>{Z(I)},children:[c.jsx("span",{className:We.optionCopy,children:c.jsx("span",{className:We.modelName,children:I.name||I.id})}),c.jsx("span",{className:We.check,children:`${I.provider}/${I.id}`===r&&c.jsx(Nu,{})})]},I.id))]},W))}),i.length===0&&c.jsx("div",{className:We.empty,children:_("暂无可用模型","No models available")})]}):c.jsx("div",{className:We.groups,children:d.map(W=>c.jsxs("button",{type:"button",role:"menuitemradio","aria-checked":W===a,className:`${We.option} ${W===a?We.selected:""}`,disabled:k,onClick:()=>{te(W)},children:[c.jsx("span",{className:We.optionCopy,children:c.jsx("span",{className:We.modelName,children:p[W]??W})}),c.jsx("span",{className:We.check,children:W===a&&c.jsx(Nu,{})})]},W))})}),document.body)]})}const CC="_backdrop_1x9ns_1",wC="_mask_1x9ns_13",kC="_image_1x9ns_20",_C="_close_1x9ns_30",Zo={backdrop:CC,mask:wC,image:kC,close:_C};function F3({src:e,alt:r,labels:i,onClose:o}){const s=E.useRef(null),a=E.useRef(null);return E.useEffect(()=>{var f;a.current=document.activeElement instanceof HTMLElement?document.activeElement:null,(f=s.current)==null||f.focus();const d=p=>{p.key==="Escape"&&o()};return window.addEventListener("keydown",d),()=>{var p;window.removeEventListener("keydown",d),(p=a.current)==null||p.focus()}},[o]),Il.createPortal(c.jsxs("div",{className:Zo.backdrop,role:"dialog","aria-modal":"true","aria-label":i.dialog,children:[c.jsx("div",{className:Zo.mask,"aria-hidden":"true",onMouseDown:o}),c.jsx("img",{className:Zo.image,src:e,alt:r}),c.jsx("button",{ref:s,type:"button",className:Zo.close,"aria-label":i.close,onClick:o,children:c.jsx(as,{size:16})})]}),document.body)}const bC="__PIW_CODE_ICON_INSTANCE__",SC=Object.freeze({angular:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F8ECEF" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#DD0031" d="M16.712 17.711H7.288l-1.204 2.916L12 24l5.916-3.373-1.204-2.916ZM14.692 0l7.832 16.855.814-12.856L14.692 0ZM9.308 0 .662 3.999l.814 12.856L9.308 0Zm-.405 13.93h6.198L12 6.396 8.903 13.93Z"/></g>',c:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EEF4F8" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#659AD2" d="M16.5921 9.1962s-.354-3.298-3.627-3.39c-3.2741-.09-4.9552 2.474-4.9552 6.14 0 3.6651 1.858 6.5972 5.0451 6.5972 3.184 0 3.5381-3.665 3.5381-3.665l6.1041.365s.36 3.31-2.196 5.836c-2.552 2.5241-5.6901 2.9371-7.8762 2.9201-2.19-.017-5.2261.034-8.1602-2.97-2.938-3.0101-3.436-5.9302-3.436-8.8002 0-2.8701.556-6.6702 4.047-9.5502C7.444.72 9.849 0 12.254 0c10.0422 0 10.7172 9.2602 10.7172 9.2602z"/></g>',clojure:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F1F7EC" stroke="#DCEAD2" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><g fill="none"><path d="M64 0C28.712 0 0 28.6 0 63.751c0 35.155 28.712 63.753 64 63.753s64-28.598 64-63.753C128 28.6 99.288 0 64 0" fill="#FFF"/><path d="M61.659 64.898a265.825 265.825 0 00-1.867 4.12c-2.322 5.241-4.894 11.62-5.834 15.706-.337 1.455-.546 3.258-.542 5.258 0 .79.043 1.622.11 2.469a30.74 30.74 0 0010.533 1.87 30.796 30.796 0 009.642-1.566 18.09 18.09 0 01-2.011-2.12c-4.11-5.221-6.403-12.872-10.031-25.737M46.485 38.96c-7.85 5.51-12.986 14.6-13.005 24.9.019 10.145 5.001 19.116 12.653 24.65 1.877-7.789 6.582-14.92 13.637-29.214a114.691 114.691 0 00-1.43-3.72c-1.955-4.884-4.776-10.556-7.294-13.124-1.283-1.342-2.84-2.502-4.561-3.492" fill="#91DC47"/><path d="M90.697 98.798c-4.05-.506-7.392-1.116-10.317-2.144a36.708 36.708 0 01-16.32 3.807c-20.293 0-36.742-16.383-36.745-36.602 0-10.97 4.852-20.805 12.528-27.512-2.053-.495-4.194-.783-6.38-.779-10.782.101-22.162 6.044-26.9 22.095-.443 2.337-.337 4.103-.337 6.197 0 31.818 25.895 57.613 57.835 57.613 19.561 0 36.841-9.682 47.305-24.489-5.66 1.405-11.103 2.077-15.763 2.091-1.747 0-3.387-.093-4.906-.277" fill="#63B132"/><path d="M79.829 87.634c.357.176 1.167.464 2.293.783 7.579-5.542 12.504-14.469 12.523-24.558h-.003c-.028-16.82-13.693-30.43-30.582-30.462a30.765 30.765 0 00-9.602 1.554c6.21 7.05 9.196 17.127 12.084 28.148l.005.013c.005.009.924 3.06 2.501 7.11 1.566 4.042 3.797 9.048 6.23 12.696 1.597 2.444 3.354 4.2 4.551 4.716" fill="#90B4FE"/><path d="M17.057 30.311c5.463-3.408 11.04-4.637 15.908-4.593 6.722.02 12.008 2.096 14.544 3.516.612.352 1.194.73 1.764 1.12a36.714 36.714 0 0114.786-3.096c20.295.003 36.747 16.386 36.75 36.601-.003 10.192-4.188 19.408-10.934 26.044a45.3 45.3 0 005.225.29c6.406.004 13.329-1.404 18.52-5.753 3.384-2.84 6.22-6.998 7.792-13.233.307-2.408.484-4.856.484-7.347 0-31.817-25.892-57.614-57.835-57.614-19.372 0-36.508 9.5-47.004 24.065z" fill="#5881D8"/></g></svg>',cmake:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F2F5F7" stroke="#D9E1E7" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#064F8C" d="M62.8.4L.3 123.8l68.1-57.9z"/><path fill="#249847" d="M123.8 127.7l-84-33.9L0 127.7z"/><path fill="#BE2128" d="M128 126.6L65.6 2.5l9.2 102.6z"/><path fill="#CDCDCE" d="M71.9 104l-3.1-34.9L42 92z"/></svg>',cpp:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#E8F2F8" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#00599C" d="M22.394 6c-.167-.29-.398-.543-.652-.69L12.926.22c-.509-.294-1.34-.294-1.848 0L2.26 5.31c-.508.293-.923 1.013-.923 1.6v10.18c0 .294.104.62.271.91.167.29.398.543.652.69l8.816 5.09c.508.293 1.34.293 1.848 0l8.816-5.09c.254-.147.485-.4.652-.69.167-.29.27-.616.27-.91V6.91c.003-.294-.1-.62-.268-.91zM12 19.11c-3.92 0-7.109-3.19-7.109-7.11 0-3.92 3.19-7.11 7.11-7.11a7.133 7.133 0 016.156 3.553l-3.076 1.78a3.567 3.567 0 00-3.08-1.78A3.56 3.56 0 008.444 12 3.56 3.56 0 0012 15.555a3.57 3.57 0 003.08-1.778l3.078 1.78A7.135 7.135 0 0112 19.11zm7.11-6.715h-.79v.79h-.79v-.79h-.79v-.79h.79v-.79h.79v.79h.79zm2.962 0h-.79v.79h-.79v-.79h-.79v-.79h.79v-.79h.79v.79h.79z"/></g>',csharp:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3EEF7" stroke="#E2D7EA" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#9B4F96" d="M115.4 30.7L67.1 2.9c-.8-.5-1.9-.7-3.1-.7-1.2 0-2.3.3-3.1.7l-48 27.9c-1.7 1-2.9 3.5-2.9 5.4v55.7c0 1.1.2 2.4 1 3.5l106.8-62c-.6-1.2-1.5-2.1-2.4-2.7z"/><path fill="#68217A" d="M10.7 95.3c.5.8 1.2 1.5 1.9 1.9l48.2 27.9c.8.5 1.9.7 3.1.7 1.2 0 2.3-.3 3.1-.7l48-27.9c1.7-1 2.9-3.5 2.9-5.4V36.1c0-.9-.1-1.9-.6-2.8l-106.6 62z"/><path fill="#fff" d="M85.3 76.1C81.1 83.5 73.1 88.5 64 88.5c-13.5 0-24.5-11-24.5-24.5s11-24.5 24.5-24.5c9.1 0 17.1 5 21.3 12.5l13-7.5c-6.8-11.9-19.6-20-34.3-20-21.8 0-39.5 17.7-39.5 39.5s17.7 39.5 39.5 39.5c14.6 0 27.4-8 34.2-19.8l-12.9-7.6zM97 66.2l.9-4.3h-4.2v-4.7h5.1L100 51h4.9l-1.2 6.1h3.8l1.2-6.1h4.8l-1.2 6.1h2.4v4.7h-3.3l-.9 4.3h4.2v4.7h-5.1l-1.2 6h-4.9l1.2-6h-3.8l-1.2 6h-4.8l1.2-6h-2.4v-4.7H97zm4.8 0h3.8l.9-4.3h-3.8l-.9 4.3z"/></svg>',css:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#1572B6"/><text x="10" y="12.8" text-anchor="middle" font-family="Arial,sans-serif" font-size="6.2" font-weight="900" fill="#fff">CSS</text>',dart:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECF7FA" stroke="#D5EAF0" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#00c4b3" d="M35.2 34.9l-8.3-8.3v59.7l.1 2.8c0 1.3.2 2.8.7 4.3l65.6 23.1 16.3-7.2-74.4-74.4z"/><path d="M27.7 93.4zm81.9 15.9l-16.3 7.2-65.4-23.1c1.3 4.8 4 10.1 7 13.2l21.3 21.2 47.6.1 5.8-18.6z" fill="#22d3c5"/><path fill="#0075c9" d="M1.7 65.1C-.4 67.3.7 72 4 75.5l14.7 14.8 9.2 3.3c-.3-1.5-.7-3-.7-4.3l-.1-2.8-.2-59.8m82.7 82.6l7.2-16.4-23-65.6c-1.5-.3-3-.6-4.3-.7l-2.9-.1-59.6.1"/><path d="M93.6 27.3c.2 0 .2 0 0 0 .2 0 .2 0 0 0zm16 82l17.7-5.8V54.8l-20.4-20.5c-3-3-8.3-5.8-13.2-7l23.1 65.6" fill="#00a8e1"/><path fill="#00c4b3" d="M90.5 18.2L75.7 3.5c-3.4-3.4-8-4.4-10.4-2.3L26.9 26.6h59.5l2.9.1c1.3 0 2.8.2 4.3.7l-3.1-9.2z"/></svg>',docker:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#E8F4FC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#2496ED" d="M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z"/></g>',elixir:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3EEF6" stroke="#E3D9E8" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-a" gradientUnits="userSpaceOnUse" x1="835.592" y1="-36.546" x2="821.211" y2="553.414" gradientTransform="matrix(.1297 0 0 .2 -46.03 17.198)"><stop offset="0" stop-color="#d9d8dc"/><stop offset="1" stop-color="#fff" stop-opacity=".385"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-a)" d="M64.4.5C36.7 13.9 1.9 83.4 30.9 113.9c26.8 33.5 85.4 1.3 68.4-40.5-21.5-36-35-37.9-34.9-72.9z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-b" gradientUnits="userSpaceOnUse" x1="942.357" y1="-40.593" x2="824.692" y2="472.243" gradientTransform="matrix(.1142 0 0 .2271 -47.053 17.229)"><stop offset="0" stop-color="#8d67af" stop-opacity=".672"/><stop offset="1" stop-color="#9f8daf"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-b)" d="M64.4.2C36.8 13.6 1.9 82.9 31 113.5c10.7 12.4 28 16.5 37.7 9.1 26.4-18.8 7.4-53.1 10.4-78.5C68.1 33.9 64.2 11.3 64.4.2z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-c" gradientUnits="userSpaceOnUse" x1="924.646" y1="120.513" x2="924.646" y2="505.851" gradientTransform="matrix(.1227 0 0 .2115 -46.493 17.206)"><stop offset="0" stop-color="#26053d" stop-opacity=".762"/><stop offset="1" stop-color="#b7b4b4" stop-opacity=".278"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-c)" d="M56.7 4.3c-22.3 15.9-28.2 75-24.1 94.2 8.2 48.1 75.2 28.3 69.6-16.5-6-29.2-48.8-39.2-45.5-77.7z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-d" gradientUnits="userSpaceOnUse" x1="428.034" y1="198.448" x2="607.325" y2="559.255" gradientTransform="matrix(.1848 0 0 .1404 -42.394 17.138)"><stop offset="0" stop-color="#91739f" stop-opacity=".46"/><stop offset="1" stop-color="#32054f" stop-opacity=".54"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-d)" d="M78.8 49.8c10.4 13.4 12.7 22.6 6.8 27.9-27.7 19.4-61.3 7.4-54-37.3C22.1 63 4.5 96.8 43.3 101.6c20.8 3.6 54 2 58.9-16.1-.2-15.9-10.8-22.9-23.4-35.7z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-e" gradientUnits="userSpaceOnUse" x1="907.895" y1="540.636" x2="590.242" y2="201.281" gradientTransform="matrix(.1418 0 0 .1829 -45.23 17.18)"><stop offset="0" stop-color="#463d49" stop-opacity=".331"/><stop offset="1" stop-color="#340a50" stop-opacity=".821"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-e)" d="M38.1 36.4c-2.9 21.2 35.1 77.9 58.3 71-17.7 35.6-56.9-21.2-64-41.7 1.5-11 2.2-16.4 5.7-29.3z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-f" gradientUnits="userSpaceOnUse" x1="1102.297" y1="100.542" x2="1008.071" y2="431.648" gradientTransform="matrix(.106 0 0 .2448 -47.595 17.242)"><stop offset="0" stop-color="#715383" stop-opacity=".145"/><stop offset="1" stop-color="#f4f4f4" stop-opacity=".234"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-f)" d="M60.4 49.7c.8 7.9 3.9 20.5 0 28.8S38.7 102 43.6 115.3c11.4 24.8 37.1-4.4 36.9-19 1.1-11.8-6.6-38.7-1.8-52.5L76.5 41l-13.6-4c-2.2 3.2-3 7.5-2.5 12.7z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__elixir-original-g" gradientUnits="userSpaceOnUse" x1="1354.664" y1="140.06" x2="1059.233" y2="84.466" gradientTransform="matrix(.09173 0 0 .2828 -48.536 17.28)"><stop offset="0" stop-color="#a5a1a8" stop-opacity=".356"/><stop offset="1" stop-color="#370c50" stop-opacity=".582"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__PIW_CODE_ICON_INSTANCE__elixir-original-g)" d="M65.3 10.8C36 27.4 48 53.4 49.3 81.6l19.1-55.4c-1.4-5.7-2.3-9.5-3.1-15.4z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#330A4C" fill-opacity=".316" d="M68.3 26.1c-14.8 11.7-14.1 31.3-18.6 54 8.1-21.3 4.1-38.2 18.6-54z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#FFF" d="M45.8 119.7c8 1.1 12.1 2.2 12.5 3 .3 4.2-11.1 1.2-12.5-3z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#EDEDED" fill-opacity=".603" d="M49.8 10.8c-6.9 7.7-14.4 21.8-18.2 29.7-1 6.5-.5 15.7.6 23.5.9-18.2 7.5-39.2 17.6-53.2z"/></svg>',env:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECD53F"/><text x="10" y="12.9" text-anchor="middle" font-family="Arial,sans-serif" font-size="5.7" font-weight="900" fill="#24292F">.ENV</text>',erlang:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FAEDF1" stroke="#EED6DE" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path d="M20.7 103.9C11 93.5 5.2 79.2 5.3 62.1 5.2 47 10 34 18.2 24.1H1v79.7l19.7.1zm90.4 0c4.2-4.5 8-9.8 11.4-15.9l-19-9.5c-6.7 10.8-16.4 20.8-29.9 20.9-19.6-.1-27.3-16.9-27.3-38.5h73.3c.1-2.4.1-3.6 0-4.7.5-12.9-2.9-23.7-9.1-32.1H127v79.7l-15.9.1zM47.5 42.4c.8-9.8 8.5-16.3 17.6-16.4 9.1 0 15.7 6.6 15.9 16.4H47.5z" fill="#A90533"/></svg>',flutter:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EEF7FD" stroke="#D7EAF6" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><g fill="#3FB6D3"><path d="M12.3 64.2L76.3 0h39.4L32.1 83.6zM76.3 128h39.4L81.6 93.9l34.1-34.8H76.3L42.2 93.5z"/></g><path fill="#27AACD" d="M81.6 93.9l-20-20-19.4 19.6 19.4 19.6z"/><path fill="#19599A" d="M115.7 128L81.6 93.9l-20 19.2L76.3 128z"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__flutter-original-a" gradientUnits="userSpaceOnUse" x1="59.365" y1="116.36" x2="86.825" y2="99.399"><stop offset="0" stop-color="#1b4e94"/><stop offset=".63" stop-color="#1a5497"/><stop offset="1" stop-color="#195a9b"/></linearGradient><path fill="url(#__PIW_CODE_ICON_INSTANCE__flutter-original-a)" d="M61.6 113.1l30.8-8.4-10.8-10.8z"/></svg>',git:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FFF0EC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#F05032" d="M13.09 23.549a1.54 1.54 0 0 1-2.18 0L.451 13.089a1.54 1.54 0 0 1 0-2.179l7.191-7.19 2.733 2.733a1.85 1.85 0 0 0 .964 2.326v6.66a1.849 1.849 0 1 0 1.54 0V8.957l2.508 2.508a1.85 1.85 0 1 0 1.09-1.09l-2.634-2.634a1.85 1.85 0 0 0-2.378-2.377L8.73 2.63 10.91.451a1.54 1.54 0 0 1 2.179 0l10.459 10.46a1.54 1.54 0 0 1 0 2.179z"/></g>',go:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#E7F9FC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#00ADD8" d="M1.811 10.231c-.047 0-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046 0 .058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047 11.306c-.047 0-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047 0 .07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828 1.075c-.047 0-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514-.176.046-.187.058-.34-.117-.174-.199-.303-.327-.548-.444-.737-.362-1.45-.257-2.115.175-.795.514-1.204 1.274-1.192 2.22.011.935.654 1.706 1.577 1.835.795.105 1.46-.175 1.987-.77.105-.13.198-.27.315-.434H10.47c-.245 0-.304-.152-.222-.35.152-.362.432-.97.596-1.274a.315.315 0 01.292-.187h4.253c-.023.316-.023.631-.07.947a4.983 4.983 0 01-.958 2.29c-.841 1.11-1.94 1.8-3.33 1.986-1.145.152-2.209-.07-3.143-.77-.865-.655-1.356-1.52-1.484-2.595-.152-1.274.222-2.419.993-3.424.83-1.086 1.928-1.776 3.272-2.02 1.098-.2 2.15-.07 3.096.571.62.41 1.063.97 1.356 1.648.07.105.023.164-.117.2m3.868 6.461c-1.064-.024-2.034-.328-2.852-1.029a3.665 3.665 0 01-1.262-2.255c-.21-1.32.152-2.489.947-3.529.853-1.122 1.881-1.706 3.272-1.95 1.192-.21 2.314-.095 3.33.595.923.63 1.496 1.484 1.648 2.605.198 1.578-.257 2.863-1.344 3.962-.771.783-1.718 1.273-2.805 1.495-.315.06-.63.07-.934.106zm2.78-4.72c-.011-.153-.011-.27-.034-.387-.21-1.157-1.274-1.81-2.384-1.554-1.087.245-1.788.935-2.045 2.033-.21.912.234 1.835 1.075 2.21.643.28 1.285.244 1.905-.07.923-.48 1.425-1.228 1.484-2.233z"/></g>',graphql:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCEAF6" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#E10098" d="M12.002 0a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm8.54 4.931a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm0 9.862a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm-8.54 4.931a2.138 2.138 0 1 0 0 4.276 2.138 2.138 0 1 0 0-4.276zm-8.542-4.93a2.138 2.138 0 1 0 0 4.276 2.138 2.138 0 1 0 0-4.277zm0-9.863a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm8.542-3.378L2.953 6.777v10.448l9.049 5.224 9.047-5.224V6.777zm0 1.601 7.66 13.27H4.34zm-1.387.371L3.97 15.037V7.363zm2.774 0 6.646 3.838v7.674zM5.355 17.44h13.293l-6.646 3.836z"/></g>',haskell:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3F0F7" stroke="#E1D9EA" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#463B63" d="M0 110.2L30.1 65 0 19.9h22.6L52.7 65l-30.1 45.1H0z"/><path fill="#5E5187" d="M30.1 110.2L60.2 65 30.1 19.9h22.6l60.2 90.3H90.4L71.5 81.9l-18.8 28.2H30.1z"/><path fill="#904F8C" d="M102.9 83.8l-10-15.1H128v15.1h-25.1zM87.8 61.3l-10-15.1H128v15.1H87.8z"/></svg>',ini:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#6E7781"/><text x="10" y="13.2" text-anchor="middle" font-family="Arial,sans-serif" font-size="7.2" font-weight="800" fill="#fff">INI</text>',java:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F4F7FA" stroke="#D9E2E8" stroke-width=".5"/><svg x="2.5" y="2.5" width="15" height="15" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#0074BD" d="M47.617 98.12s-4.767 2.774 3.397 3.71c9.892 1.13 14.947.968 25.845-1.092 0 0 2.871 1.795 6.873 3.351-24.439 10.47-55.308-.607-36.115-5.969zm-2.988-13.665s-5.348 3.959 2.823 4.805c10.567 1.091 18.91 1.18 33.354-1.6 0 0 1.993 2.025 5.132 3.131-29.542 8.64-62.446.68-41.309-6.336z"/><path fill="#EA2D2E" d="M69.802 61.271c6.025 6.935-1.58 13.17-1.58 13.17s15.289-7.891 8.269-17.777c-6.559-9.215-11.587-13.792 15.635-29.58 0 .001-42.731 10.67-22.324 34.187z"/><path fill="#0074BD" d="M102.123 108.229s3.529 2.91-3.888 5.159c-14.102 4.272-58.706 5.56-71.094.171-4.451-1.938 3.899-4.625 6.526-5.192 2.739-.593 4.303-.485 4.303-.485-4.953-3.487-32.013 6.85-13.743 9.815 49.821 8.076 90.817-3.637 77.896-9.468zM49.912 70.294s-22.686 5.389-8.033 7.348c6.188.828 18.518.638 30.011-.326 9.39-.789 18.813-2.474 18.813-2.474s-3.308 1.419-5.704 3.053c-23.042 6.061-67.544 3.238-54.731-2.958 10.832-5.239 19.644-4.643 19.644-4.643zm40.697 22.747c23.421-12.167 12.591-23.86 5.032-22.285-1.848.385-2.677.72-2.677.72s.688-1.079 2-1.543c14.953-5.255 26.451 15.503-4.823 23.725 0-.002.359-.327.468-.617z"/><path fill="#EA2D2E" d="M76.491 1.587S89.459 14.563 64.188 34.51c-20.266 16.006-4.621 25.13-.007 35.559-11.831-10.673-20.509-20.07-14.688-28.815C58.041 28.42 81.722 22.195 76.491 1.587z"/><path fill="#0074BD" d="M52.214 126.021c22.476 1.437 57-.8 57.817-11.436 0 0-1.571 4.032-18.577 7.231-19.186 3.612-42.854 3.191-56.887.874 0 .001 2.875 2.381 17.647 3.331z"/></svg>',javascript:'<defs><clipPath id="__PIW_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__PIW_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#F0DB4F" d="M1.408 1.408h125.184v125.185H1.408z"/><path fill="#323330" d="M116.347 96.736c-.917-5.711-4.641-10.508-15.672-14.981-3.832-1.761-8.104-3.022-9.377-5.926-.452-1.69-.512-2.642-.226-3.665.821-3.32 4.784-4.355 7.925-3.403 2.023.678 3.938 2.237 5.093 4.724 5.402-3.498 5.391-3.475 9.163-5.879-1.381-2.141-2.118-3.129-3.022-4.045-3.249-3.629-7.676-5.498-14.756-5.355l-3.688.477c-3.534.893-6.902 2.748-8.877 5.235-5.926 6.724-4.236 18.492 2.975 23.335 7.104 5.332 17.54 6.545 18.873 11.531 1.297 6.104-4.486 8.08-10.234 7.378-4.236-.881-6.592-3.034-9.139-6.949-4.688 2.713-4.688 2.713-9.508 5.485 1.143 2.499 2.344 3.63 4.26 5.795 9.068 9.198 31.76 8.746 35.83-5.176.165-.478 1.261-3.666.38-8.581zM69.462 58.943H57.753l-.048 30.272c0 6.438.333 12.34-.714 14.149-1.713 3.558-6.152 3.117-8.175 2.427-2.059-1.012-3.106-2.451-4.319-4.485-.333-.584-.583-1.036-.667-1.071l-9.52 5.83c1.583 3.249 3.915 6.069 6.902 7.901 4.462 2.678 10.459 3.499 16.731 2.059 4.082-1.189 7.604-3.652 9.448-7.401 2.666-4.915 2.094-10.864 2.07-17.444.06-10.735.001-21.468.001-32.237z"/></svg></g>',json:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F4F4F4" stroke="#DDDDDD" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><linearGradient id="__PIW_CODE_ICON_INSTANCE__a" x1="-670.564" x2="-583.105" y1="-280.831" y2="-368.306" gradientTransform="matrix(.9988 0 0 -.9987 689.011 -259.008)" gradientUnits="userSpaceOnUse"><stop offset="0"/><stop offset="1" stop-color="#fff"/></linearGradient><path fill="url(#__PIW_CODE_ICON_INSTANCE__a)" fill-rule="evenodd" d="M63.895 94.303c27.433 37.398 54.281-10.438 54.241-39.205-.046-34.012-34.518-53.021-54.263-53.021C32.182 2.077 2 28.269 2 64.105 2 103.937 36.596 126 63.873 126c-6.172-.889-26.742-5.296-27.019-52.674-.186-32.044 10.453-44.846 26.974-39.214.37.137 18.223 7.18 18.223 30.187 0 22.908-18.156 30.004-18.156 30.004z" clip-rule="evenodd"/><linearGradient id="__PIW_CODE_ICON_INSTANCE__b" x1="-579.148" x2="-666.607" y1="-364.34" y2="-276.873" gradientTransform="matrix(.9988 0 0 -.9987 689.011 -259.008)" gradientUnits="userSpaceOnUse"><stop offset="0"/><stop offset="1" stop-color="#fff"/></linearGradient><path fill="url(#__PIW_CODE_ICON_INSTANCE__b)" fill-rule="evenodd" d="M63.863 34.086C45.736 27.838 23.53 42.778 23.53 72.703 23.53 121.565 59.739 126 64.128 126 95.818 126 126 99.808 126 63.972 126 24.14 91.404 2.077 64.127 2.077c7.555-1.046 40.719 8.176 40.719 53.504 0 29.559-24.764 45.651-40.87 38.776-.37-.137-18.223-7.18-18.223-30.187 0-22.91 18.11-30.085 18.11-30.084z" clip-rule="evenodd"/></svg>',kotlin:'<defs><linearGradient id="__PIW_CODE_ICON_INSTANCE__k" x1="1" y1="19" x2="19" y2="1"><stop stop-color="#0095D5"/><stop offset=".5" stop-color="#7F52FF"/><stop offset="1" stop-color="#F88909"/></linearGradient></defs><rect x="1" y="1" width="18" height="18" rx="4" fill="url(#__PIW_CODE_ICON_INSTANCE__k)"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#FFFFFF" d="M24 24H0V0h24L12 12Z"/></g>',lua:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECECF7" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#000080" d="M.38 10.377l-.272-.037c-.048.344-.082.695-.101 1.041l.275.016c.018-.34.051-.682.098-1.02zM4.136 3.289l-.184-.205c-.258.232-.509.48-.746.734l.202.188c.231-.248.476-.49.728-.717zM5.769 2.059l-.146-.235c-.296.186-.586.385-.863.594l.166.219c.27-.203.554-.399.843-.578zM1.824 18.369c.185.297.384.586.593.863l.22-.164c-.205-.271-.399-.555-.58-.844l-.233.145zM1.127 16.402l-.255.104c.129.318.274.635.431.943l.005.01.245-.125-.005-.01c-.153-.301-.295-.611-.421-.922zM.298 9.309l.269.063c.076-.332.168-.664.272-.986l-.261-.087c-.108.332-.202.672-.28 1.01zM.274 12.42l-.275.01c.012.348.04.699.083 1.043l.273-.033c-.042-.336-.069-.68-.081-1.02zM.256 14.506c.073.34.162.682.264 1.014l.263-.08c-.1-.326-.187-.658-.258-.99l-.269.056zM11.573.275L11.563 0c-.348.012-.699.039-1.044.082l.034.273c.338-.041.68-.068 1.02-.08zM23.221 8.566c.1.326.186.66.256.992l.27-.059c-.072-.34-.16-.682-.262-1.014l-.264.081zM17.621 1.389c-.309-.164-.627-.314-.947-.449l-.107.252c.314.133.625.281.926.439l.128-.242zM15.693.572c-.332-.105-.67-.199-1.01-.277l-.063.268c.332.076.664.168.988.273l.085-.264zM6.674 1.545c.298-.15.606-.291.916-.418L7.486.873c-.317.127-.632.272-.937.428l-.015.008.125.244.015-.008zM23.727 11.588l.275-.01a11.797 11.797 0 0 0-.082-1.045l-.273.033c.041.338.068.682.08 1.022zM13.654.105c-.346-.047-.696-.08-1.043-.098l-.014.273c.339.018.683.051 1.019.098l.038-.273zM9.544.527l-.058-.27c-.34.072-.681.16-1.014.264l.081.262c.325-.099.659-.185.991-.256zM1.921 5.469l.231.15c.185-.285.384-.566.592-.834l-.217-.17c-.213.276-.417.563-.606.854zM.943 7.318l.253.107c.132-.313.28-.625.439-.924l-.243-.128c-.163.307-.314.625-.449.945zM18.223 21.943l.145.234c.295-.186.586-.385.863-.594l-.164-.219c-.272.204-.557.4-.844.579zM21.248 19.219l.217.17c.215-.273.418-.561.607-.854l-.23-.148c-.186.285-.385.564-.594.832zM19.855 20.715l.184.203c.258-.23.51-.479.746-.732l-.201-.188c-.23.248-.477.488-.729.717zM22.359 17.504l.244.129c.162-.307.314-.625.449-.945l-.254-.107a11.27 11.27 0 0 1-.439.923zM23.617 13.629l.273.039c.049-.346.082-.695.102-1.043l-.275-.014c-.018.338-.051.682-.1 1.018zM23.156 15.621l.264.086c.107-.332.201-.67.279-1.01l-.268-.063c-.077.333-.169.665-.275.987zM22.453 6.672c.154.303.297.617.424.932l.256-.104c-.131-.322-.277-.643-.436-.953l-.244.125zM8.296 23.418c.331.107.67.201 1.009.279l.062-.268c-.331-.076-.663-.168-.986-.273l-.085.262zM10.335 23.889c.345.049.696.082 1.043.102l.014-.275c-.339-.018-.682-.051-1.019-.098l-.038.271zM17.326 22.449c-.303.154-.613.297-.926.424l.104.256c.318-.131.639-.275.947-.434l.004-.002-.123-.246-.006.002zM4.613 21.467c.274.213.562.418.854.605l.149-.23c-.285-.184-.565-.385-.833-.592l-.17.217zM12.417 23.725l.009.275c.348-.014.699-.041 1.045-.084l-.035-.271c-.336.041-.68.068-1.019.08zM6.37 22.604c.307.162.625.314.946.449l.107-.254c-.313-.133-.624-.279-.924-.439l-.129.244zM3.083 20.041c.233.258.48.51.734.746l.188-.201c-.249-.23-.49-.477-.717-.729l-.205.184zM14.445 23.475l.059.27c.34-.074.68-.162 1.014-.266l-.082-.262c-.325.099-.659.185-.991.258zM21.18.129A2.689 2.689 0 1 0 21.18 5.507 2.689 2.689 0 1 0 21.18.129zM15.324 15.447c0 .471.314.66.852.66.67 0 1.297-.396 1.297-1.016v-.645c-.23.107-.379.141-1.107.24-.735.109-1.042.306-1.042.761zM12 2.818c-5.07 0-9.18 4.109-9.18 9.18 0 5.068 4.11 9.18 9.18 9.18 5.07 0 9.18-4.111 9.18-9.18 0-5.07-4.11-9.18-9.18-9.18zm-2.487 13.77H5.771v-6.023h.769v5.346h2.974v.677zm4.13 0h-.619v-.67c-.405.57-.811.793-1.446.793-.843 0-1.38-.463-1.38-1.182v-3.271h.686v3c0 .52.347.85.893.85.719 0 1.181-.578 1.181-1.461v-2.389h.686v4.33zm-.53-8.393c0-1.484 1.205-2.689 2.689-2.689s2.688 1.205 2.688 2.689-1.203 2.688-2.688 2.688-2.689-1.203-2.689-2.688zm5.567 7.856v.52c-.223.059-.33.074-.471.074-.34 0-.637-.238-.711-.57-.381.406-.918.637-1.471.637-.877 0-1.422-.463-1.422-1.248 0-.527.256-.916.76-1.123.266-.107.414-.141 1.389-.264.545-.066.719-.191.719-.48v-.182c0-.412-.348-.645-.967-.645-.645 0-.957.24-1.016.77h-.693c.041-1 .686-1.404 1.734-1.404 1.066 0 1.627.412 1.627 1.182v2.412c0 .215.133.338.373.338.041-.002.074-.002.149-.017z"/></g>',makefile:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#427819"/><path fill="#fff" d="m5 4.5 2.3 2.3 2.3-2.3L11 5.9 8.7 8.2l2.4 2.4L9.7 12l-2.4-2.4L5 11.9 3.6 10.5l2.3-2.3-2.3-2.3zm7 6.5h4v1.5h-4zm0 2.8h4v1.5h-4z"/>',node:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EDF7EA" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#539E43" d="M11.998,24c-0.321,0-0.641-0.084-0.922-0.247l-2.936-1.737c-0.438-0.245-0.224-0.332-0.08-0.383 c0.585-0.203,0.703-0.25,1.328-0.604c0.065-0.037,0.151-0.023,0.218,0.017l2.256,1.339c0.082,0.045,0.197,0.045,0.272,0l8.795-5.076 c0.082-0.047,0.134-0.141,0.134-0.238V6.921c0-0.099-0.053-0.192-0.137-0.242l-8.791-5.072c-0.081-0.047-0.189-0.047-0.271,0 L3.075,6.68C2.99,6.729,2.936,6.825,2.936,6.921v10.15c0,0.097,0.054,0.189,0.139,0.235l2.409,1.392 c1.307,0.654,2.108-0.116,2.108-0.89V7.787c0-0.142,0.114-0.253,0.256-0.253h1.115c0.139,0,0.255,0.112,0.255,0.253v10.021 c0,1.745-0.95,2.745-2.604,2.745c-0.508,0-0.909,0-2.026-0.551L2.28,18.675c-0.57-0.329-0.922-0.945-0.922-1.604V6.921 c0-0.659,0.353-1.275,0.922-1.603l8.795-5.082c0.557-0.315,1.296-0.315,1.848,0l8.794,5.082c0.57,0.329,0.924,0.944,0.924,1.603 v10.15c0,0.659-0.354,1.273-0.924,1.604l-8.794,5.078C12.643,23.916,12.324,24,11.998,24z M19.099,13.993 c0-1.9-1.284-2.406-3.987-2.763c-2.731-0.361-3.009-0.548-3.009-1.187c0-0.528,0.235-1.233,2.258-1.233 c1.807,0,2.473,0.389,2.747,1.607c0.024,0.115,0.129,0.199,0.247,0.199h1.141c0.071,0,0.138-0.031,0.186-0.081 c0.048-0.054,0.074-0.123,0.067-0.196c-0.177-2.098-1.571-3.076-4.388-3.076c-2.508,0-4.004,1.058-4.004,2.833 c0,1.925,1.488,2.457,3.895,2.695c2.88,0.282,3.103,0.703,3.103,1.269c0,0.983-0.789,1.402-2.642,1.402 c-2.327,0-2.839-0.584-3.011-1.742c-0.02-0.124-0.126-0.215-0.253-0.215h-1.137c-0.141,0-0.254,0.112-0.254,0.253 c0,1.482,0.806,3.248,4.655,3.248C17.501,17.007,19.099,15.91,19.099,13.993z"/></g>',"objective-c":'<rect x="1" y="1" width="18" height="18" rx="4" fill="#438EFF"/><text x="10" y="13.2" text-anchor="middle" font-family="Arial,sans-serif" font-size="7.2" font-weight="800" fill="#fff">OC</text>',perl:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EAF2F7" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#0073A1" d="M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0m.157 1.103a10.91 10.91 0 0 1 9.214 5.404c-1.962.152-3.156 1.698-5.132 3.553-2.81 2.637-4.562.582-5.288-.898-.447-1.004-.847-2.117-1.544-2.769A.4.4 0 0 1 9.3 6.02l.08-.37a.083.083 0 0 0-.074-.1c-.33-.022-.601.093-.84.368a2.5 2.5 0 0 0-.375-.064c-.863-.093-1.036.345-1.873.345H5.81c-.758 0-1.391.361-1.7.892-.248.424-.257.884.15.93-.126.445.292.62 1.224.192 0 0 .733.421 1.749.421.549 0 .712.087.914.967.486 2.138 2.404 5.655 6.282 5.655l.118.166c.659.934.86 2.113.48 3.184-.307.867-.697 1.531-.697 1.531q.01.178.01.349c0 .81-.175 1.553-.387 2.23a10.91 10.91 0 0 1-11.989-6.342A10.91 10.91 0 0 1 7.608 2.01a10.9 10.9 0 0 1 4.55-.907M7.524 6.47c.288 0 .575.231.477.272a.4.4 0 0 1-.1.02.38.38 0 0 1-.375.327.384.384 0 0 1-.378-.326.4.4 0 0 1-.101-.02c-.098-.042.19-.273.477-.273m10.193 10.49q.05 0 .101.007.326.054.694.096.135.01.269.026a13.4 13.4 0 0 0 2.846-.007 10.9 10.9 0 0 1-2.007 2.705c-.11-.23-.547-1.19-.573-2.196q-.156-.01-.313-.026-.13-.014-.256-.022a18 18 0 0 1-.735-.102h-.003c-.032 0-.06.01-.074.035l-.003.012q-.081.265-.182.544c.428 1.084.652 2.078.652 2.078.14.22.258.432.363.64a11 11 0 0 1-2.168 1.264 11 11 0 0 1-1.205.426 13.3 13.3 0 0 1 1.055-2.531s.678-1.445 1.027-2.564v-.004a.55.55 0 0 1 .512-.38"/></g>',php:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F0EFF8" stroke="#DDDCEB" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#777BB4" d="M7.01 10.207h-.944l-.515 2.648h.838c.556 0 .97-.105 1.242-.314.272-.21.455-.559.55-1.049.092-.47.05-.802-.124-.995-.175-.193-.523-.29-1.047-.29zM12 5.688C5.373 5.688 0 8.514 0 12s5.373 6.313 12 6.313S24 15.486 24 12c0-3.486-5.373-6.312-12-6.312zm-3.26 7.451c-.261.25-.575.438-.917.551-.336.108-.765.164-1.285.164H5.357l-.327 1.681H3.652l1.23-6.326h2.65c.797 0 1.378.209 1.744.628.366.418.476 1.002.33 1.752a2.836 2.836 0 0 1-.305.847c-.143.255-.33.49-.561.703zm4.024.715l.543-2.799c.063-.318.039-.536-.068-.651-.107-.116-.336-.174-.687-.174H11.46l-.704 3.625H9.388l1.23-6.327h1.367l-.327 1.682h1.218c.767 0 1.295.134 1.586.401s.378.7.263 1.299l-.572 2.944h-1.389zm7.597-2.265a2.782 2.782 0 0 1-.305.847c-.143.255-.33.49-.561.703a2.44 2.44 0 0 1-.917.551c-.336.108-.765.164-1.286.164h-1.18l-.327 1.682h-1.378l1.23-6.326h2.649c.797 0 1.378.209 1.744.628.366.417.477 1.001.331 1.751zM17.766 10.207h-.943l-.516 2.648h.838c.557 0 .971-.105 1.242-.314.272-.21.455-.559.551-1.049.092-.47.049-.802-.125-.995s-.524-.29-1.047-.29z"/></g>',powershell:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#2671BE"/><path fill="#fff" fill-opacity=".16" d="M5.5 4h11l-3.5 12H2z"/><path d="m6.5 6.5 3 3-4.2 3.2m4 1h4" fill="none" stroke="#fff" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/>',protobuf:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#4285F4"/><path fill="none" stroke="#fff" stroke-width="1.2" stroke-linejoin="round" d="m10 3.5 6 3.3v6.4l-6 3.3-6-3.3V6.8z"/><path fill="#fff" d="M6.5 6.5h4.4c2.3 0 3.6 1.2 3.6 3.1s-1.3 3.1-3.6 3.1H9v2H6.5zM9 8.4v2.4h1.6c.8 0 1.2-.4 1.2-1.2s-.4-1.2-1.2-1.2z"/>',python:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F2F4F7" stroke="#D5DBE5" stroke-width=".5"/><g transform="matrix(.126 0 0 .126 2.30 2.24)"><path fill="#3776AB" d="M 60.510156,6.3979729 C 55.926503,6.4192712 51.549217,6.8101906 47.697656,7.4917229 C 36.35144,9.4962267 34.291407,13.691825 34.291406,21.429223 L 34.291406,31.647973 L 61.103906,31.647973 L 61.103906,35.054223 L 34.291406,35.054223 L 24.228906,35.054223 C 16.436447,35.054223 9.6131468,39.73794 7.4789058,48.647973 C 5.0170858,58.860939 4.9078907,65.233996 7.4789058,75.897973 C 9.3848341,83.835825 13.936449,89.491721 21.728906,89.491723 L 30.947656,89.491723 L 30.947656,77.241723 C 30.947656,68.391821 38.6048,60.585475 47.697656,60.585473 L 74.478906,60.585473 C 81.933857,60.585473 87.885159,54.447309 87.885156,46.960473 L 87.885156,21.429223 C 87.885156,14.162884 81.755176,8.7044455 74.478906,7.4917229 C 69.872919,6.7249976 65.093809,6.3766746 60.510156,6.3979729 z M 46.010156,14.616723 C 48.779703,14.616723 51.041406,16.915369 51.041406,19.741723 C 51.041404,22.558059 48.779703,24.835473 46.010156,24.835473 C 43.23068,24.835472 40.978906,22.558058 40.978906,19.741723 C 40.978905,16.91537 43.23068,14.616723 46.010156,14.616723 z "/><path fill="#FFD43B" d="M 91.228906,35.054223 L 91.228906,46.960473 C 91.228906,56.191228 83.403011,63.960472 74.478906,63.960473 L 47.697656,63.960473 C 40.361823,63.960473 34.291407,70.238956 34.291406,77.585473 L 34.291406,103.11672 C 34.291406,110.38306 40.609994,114.65704 47.697656,116.74172 C 56.184987,119.23733 64.323893,119.68835 74.478906,116.74172 C 81.229061,114.78733 87.885159,110.85411 87.885156,103.11672 L 87.885156,92.897973 L 61.103906,92.897973 L 61.103906,89.491723 L 87.885156,89.491723 L 101.29141,89.491723 C 109.08387,89.491723 111.98766,84.056315 114.69765,75.897973 C 117.49698,67.499087 117.37787,59.422197 114.69765,48.647973 C 112.77187,40.890532 109.09378,35.054223 101.29141,35.054223 L 91.228906,35.054223 z M 76.166406,99.710473 C 78.945884,99.710476 81.197656,101.98789 81.197656,104.80422 C 81.197654,107.63057 78.945881,109.92922 76.166406,109.92922 C 73.396856,109.92922 71.135156,107.63057 71.135156,104.80422 C 71.135158,101.98789 73.396853,99.710473 76.166406,99.710473 z "/></g>',r:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EEF2F6" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#276DC3" d="M12 2.746c-6.627 0-12 3.599-12 8.037 0 3.897 4.144 7.144 9.64 7.88V16.26c-2.924-.915-4.925-2.755-4.925-4.877 0-3.035 4.084-5.494 9.12-5.494 5.038 0 8.757 1.683 8.757 5.494 0 1.976-.999 3.379-2.662 4.272.09.066.174.128.258.216.169.149.25.363.372.544 2.128-1.45 3.44-3.437 3.44-5.631 0-4.44-5.373-8.038-12-8.038zm-2.111 4.99v13.516l4.093-.002-.002-5.291h1.1c.225 0 .321.066.549.25.272.22.715.982.715.982l2.164 4.063 4.627-.002-2.864-4.826s-.086-.193-.265-.383a2.22 2.22 0 00-.582-.416c-.422-.214-1.149-.434-1.149-.434s3.578-.264 3.578-3.826c0-3.562-3.744-3.63-3.744-3.63zm4.127 2.93l2.478.002s1.149-.062 1.149 1.127c0 1.165-1.149 1.17-1.149 1.17h-2.478zm1.754 6.119c-.494.049-1.012.079-1.54.088v1.807a16.622 16.622 0 002.37-.473l-.471-.891s-.108-.183-.248-.394c-.039-.054-.08-.098-.111-.137z"/></g>',react:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#20232A"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#61DAFB" d="M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z"/></g>',ruby:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCEDEC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#CC342D" d="M20.156.083c3.033.525 3.893 2.598 3.829 4.77L24 4.822 22.635 22.71 4.89 23.926h.016C3.433 23.864.15 23.729 0 19.139l1.645-3 2.819 6.586.503 1.172 2.805-9.144-.03.007.016-.03 9.255 2.956-1.396-5.431-.99-3.9 8.82-.569-.615-.51L16.5 2.114 20.159.073l-.003.01zM0 19.089zM5.13 5.073c3.561-3.533 8.157-5.621 9.922-3.84 1.762 1.777-.105 6.105-3.673 9.636-3.563 3.532-8.103 5.734-9.864 3.957-1.766-1.777.045-6.217 3.612-9.75l.003-.003z"/></g>',rust:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3E6DD" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#2B2B2B" d="M23.8346 11.7033l-1.0073-.6236a13.7268 13.7268 0 00-.0283-.2936l.8656-.8069a.3483.3483 0 00-.1154-.578l-1.1066-.414a8.4958 8.4958 0 00-.087-.2856l.6904-.9587a.3462.3462 0 00-.2257-.5446l-1.1663-.1894a9.3574 9.3574 0 00-.1407-.2622l.49-1.0761a.3437.3437 0 00-.0274-.3361.3486.3486 0 00-.3006-.154l-1.1845.0416a6.7444 6.7444 0 00-.1873-.2268l.2723-1.153a.3472.3472 0 00-.417-.4172l-1.1532.2724a14.0183 14.0183 0 00-.2278-.1873l.0415-1.1845a.3442.3442 0 00-.49-.328l-1.076.491c-.0872-.0476-.1742-.0952-.2623-.1407l-.1903-1.1673A.3483.3483 0 0016.256.955l-.9597.6905a8.4867 8.4867 0 00-.2855-.086l-.414-1.1066a.3483.3483 0 00-.5781-.1154l-.8069.8666a9.2936 9.2936 0 00-.2936-.0284L12.2946.1683a.3462.3462 0 00-.5892 0l-.6236 1.0073a13.7383 13.7383 0 00-.2936.0284L9.9803.3374a.3462.3462 0 00-.578.1154l-.4141 1.1065c-.0962.0274-.1903.0567-.2855.086L7.744.955a.3483.3483 0 00-.5447.2258L7.009 2.348a9.3574 9.3574 0 00-.2622.1407l-1.0762-.491a.3462.3462 0 00-.49.328l.0416 1.1845a7.9826 7.9826 0 00-.2278.1873L3.8413 3.425a.3472.3472 0 00-.4171.4171l.2713 1.1531c-.0628.075-.1255.1509-.1863.2268l-1.1845-.0415a.3462.3462 0 00-.328.49l.491 1.0761a9.167 9.167 0 00-.1407.2622l-1.1662.1894a.3483.3483 0 00-.2258.5446l.6904.9587a13.303 13.303 0 00-.087.2855l-1.1065.414a.3483.3483 0 00-.1155.5781l.8656.807a9.2936 9.2936 0 00-.0283.2935l-1.0073.6236a.3442.3442 0 000 .5892l1.0073.6236c.008.0982.0182.1964.0283.2936l-.8656.8079a.3462.3462 0 00.1155.578l1.1065.4141c.0273.0962.0567.1914.087.2855l-.6904.9587a.3452.3452 0 00.2268.5447l1.1662.1893c.0456.088.0922.1751.1408.2622l-.491 1.0762a.3462.3462 0 00.328.49l1.1834-.0415c.0618.0769.1235.1528.1873.2277l-.2713 1.1541a.3462.3462 0 00.4171.4161l1.153-.2713c.075.0638.151.1255.2279.1863l-.0415 1.1845a.3442.3442 0 00.49.327l1.0761-.49c.087.0486.1741.0951.2622.1407l.1903 1.1662a.3483.3483 0 00.5447.2268l.9587-.6904a9.299 9.299 0 00.2855.087l.414 1.1066a.3452.3452 0 00.5781.1154l.8079-.8656c.0972.0111.1954.0203.2936.0294l.6236 1.0073a.3472.3472 0 00.5892 0l.6236-1.0073c.0982-.0091.1964-.0183.2936-.0294l.8069.8656a.3483.3483 0 00.578-.1154l.4141-1.1066a8.4626 8.4626 0 00.2855-.087l.9587.6904a.3452.3452 0 00.5447-.2268l.1903-1.1662c.088-.0456.1751-.0931.2622-.1407l1.0762.49a.3472.3472 0 00.49-.327l-.0415-1.1845a6.7267 6.7267 0 00.2267-.1863l1.1531.2713a.3472.3472 0 00.4171-.416l-.2713-1.1542c.0628-.0749.1255-.1508.1863-.2278l1.1845.0415a.3442.3442 0 00.328-.49l-.49-1.076c.0475-.0872.0951-.1742.1407-.2623l1.1662-.1893a.3483.3483 0 00.2258-.5447l-.6904-.9587.087-.2855 1.1066-.414a.3462.3462 0 00.1154-.5781l-.8656-.8079c.0101-.0972.0202-.1954.0283-.2936l1.0073-.6236a.3442.3442 0 000-.5892zm-6.7413 8.3551a.7138.7138 0 01.2986-1.396.714.714 0 11-.2997 1.396zm-.3422-2.3142a.649.649 0 00-.7715.5l-.3573 1.6685c-1.1035.501-2.3285.7795-3.6193.7795a8.7368 8.7368 0 01-3.6951-.814l-.3574-1.6684a.648.648 0 00-.7714-.499l-1.473.3158a8.7216 8.7216 0 01-.7613-.898h7.1676c.081 0 .1356-.0141.1356-.088v-2.536c0-.074-.0536-.0881-.1356-.0881h-2.0966v-1.6077h2.2677c.2065 0 1.1065.0587 1.394 1.2088.0901.3533.2875 1.5044.4232 1.8729.1346.413.6833 1.2381 1.2685 1.2381h3.5716a.7492.7492 0 00.1296-.0131 8.7874 8.7874 0 01-.8119.9526zM6.8369 20.024a.714.714 0 11-.2997-1.396.714.714 0 01.2997 1.396zM4.1177 8.9972a.7137.7137 0 11-1.304.5791.7137.7137 0 011.304-.579zm-.8352 1.9813l1.5347-.6824a.65.65 0 00.33-.8585l-.3158-.7147h1.2432v5.6025H3.5669a8.7753 8.7753 0 01-.2834-3.348zm6.7343-.5437V8.7836h2.9601c.153 0 1.0792.1772 1.0792.8697 0 .575-.7107.7815-1.2948.7815zm10.7574 1.4862c0 .2187-.008.4363-.0243.651h-.9c-.09 0-.1265.0586-.1265.1477v.413c0 .973-.5487 1.1846-1.0296 1.2382-.4576.0517-.9648-.1913-1.0275-.4717-.2704-1.5186-.7198-1.8436-1.4305-2.4034.8817-.5599 1.799-1.386 1.799-2.4915 0-1.1936-.819-1.9458-1.3769-2.3153-.7825-.5163-1.6491-.6195-1.883-.6195H5.4682a8.7651 8.7651 0 014.907-2.7699l1.0974 1.151a.648.648 0 00.9182.0213l1.227-1.1743a8.7753 8.7753 0 016.0044 4.2762l-.8403 1.8982a.652.652 0 00.33.8585l1.6178.7188c.0283.2875.0425.577.0425.8717zm-9.3006-9.5993a.7128.7128 0 11.984 1.0316.7137.7137 0 01-.984-1.0316zm8.3389 6.71a.7107.7107 0 01.9395-.3625.7137.7137 0 11-.9405.3635z"/></g>',scala:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCECEB" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#DC322F" d="M4.589 24c4.537 0 13.81-1.516 14.821-3v-5.729c-.957 1.408-10.284 2.912-14.821 2.912V24zM4.589 16.365c4.537 0 13.81-1.516 14.821-3V7.636c-.957 1.408-10.284 2.912-14.821 2.912v5.817zM4.589 8.729c4.537 0 13.81-1.516 14.821-3V0C18.453 1.408 9.126 2.912 4.589 2.912v5.817z"/></g>',shell:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#303642"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#7EE787" d="M21.038,4.9l-7.577-4.498C13.009,0.134,12.505,0,12,0c-0.505,0-1.009,0.134-1.462,0.403L2.961,4.9 C2.057,5.437,1.5,6.429,1.5,7.503v8.995c0,1.073,0.557,2.066,1.462,2.603l7.577,4.497C10.991,23.866,11.495,24,12,24 c0.505,0,1.009-0.134,1.461-0.402l7.577-4.497c0.904-0.537,1.462-1.529,1.462-2.603V7.503C22.5,6.429,21.943,5.437,21.038,4.9z M15.17,18.946l0.013,0.646c0.001,0.078-0.05,0.167-0.111,0.198l-0.383,0.22c-0.061,0.031-0.111-0.007-0.112-0.085L14.57,19.29 c-0.328,0.136-0.66,0.169-0.872,0.084c-0.04-0.016-0.057-0.075-0.041-0.142l0.139-0.584c0.011-0.046,0.036-0.092,0.069-0.121 c0.012-0.011,0.024-0.02,0.036-0.026c0.022-0.011,0.043-0.014,0.062-0.006c0.229,0.077,0.521,0.041,0.802-0.101 c0.357-0.181,0.596-0.545,0.592-0.907c-0.003-0.328-0.181-0.465-0.613-0.468c-0.55,0.001-1.064-0.107-1.072-0.917 c-0.007-0.667,0.34-1.361,0.889-1.8l-0.007-0.652c-0.001-0.08,0.048-0.168,0.111-0.2l0.37-0.236 c0.061-0.031,0.111,0.007,0.112,0.087l0.006,0.653c0.273-0.109,0.511-0.138,0.726-0.088c0.047,0.012,0.067,0.076,0.048,0.151 l-0.144,0.578c-0.011,0.044-0.036,0.088-0.065,0.116c-0.012,0.012-0.025,0.021-0.038,0.028c-0.019,0.01-0.038,0.013-0.057,0.009 c-0.098-0.022-0.332-0.073-0.699,0.113c-0.385,0.195-0.52,0.53-0.517,0.778c0.003,0.297,0.155,0.387,0.681,0.396 c0.7,0.012,1.003,0.318,1.01,1.023C16.105,17.747,15.736,18.491,15.17,18.946z M19.143,17.859c0,0.06-0.008,0.116-0.058,0.145 l-1.916,1.164c-0.05,0.029-0.09,0.004-0.09-0.056v-0.494c0-0.06,0.037-0.093,0.087-0.122l1.887-1.129 c0.05-0.029,0.09-0.004,0.09,0.056V17.859z M20.459,6.797l-7.168,4.427c-0.894,0.523-1.553,1.109-1.553,2.187v8.833 c0,0.645,0.26,1.063,0.66,1.184c-0.131,0.023-0.264,0.039-0.398,0.039c-0.42,0-0.833-0.114-1.197-0.33L3.226,18.64 c-0.741-0.44-1.201-1.261-1.201-2.142V7.503c0-0.881,0.46-1.702,1.201-2.142l7.577-4.498c0.363-0.216,0.777-0.33,1.197-0.33 c0.419,0,0.833,0.114,1.197,0.33l7.577,4.498c0.624,0.371,1.046,1.013,1.164,1.732C21.686,6.557,21.12,6.411,20.459,6.797z"/></g>',solidity:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F0F0F0" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#363636" d="M4.409 6.608L7.981.255l3.572 6.353H4.409zM8.411 0l3.569 6.348L15.552 0H8.411zm4.036 17.392l3.572 6.354 3.575-6.354h-7.147zm-.608-10.284h-7.43l3.715 6.605 3.715-6.605zm.428-.25h7.428L15.982.255l-3.715 6.603zM15.589 24l-3.569-6.349L8.448 24h7.141zm-3.856-6.858H4.306l3.712 6.603 3.715-6.603zm.428-.25h7.433l-3.718-6.605-3.715 6.605z"/></g>',sql:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#336791"/><ellipse cx="10" cy="5.5" rx="5.8" ry="2.1" fill="#fff"/><path fill="#fff" fill-opacity=".88" d="M4.2 5.5v8.9c0 1.2 2.6 2.1 5.8 2.1s5.8-.9 5.8-2.1V5.5c0 1.2-2.6 2.1-5.8 2.1s-5.8-.9-5.8-2.1z"/><path d="M4.2 9.2c0 1.2 2.6 2.1 5.8 2.1s5.8-.9 5.8-2.1M4.2 12.9c0 1.2 2.6 2.1 5.8 2.1s5.8-.9 5.8-2.1" fill="none" stroke="#336791" stroke-opacity=".7" stroke-width=".7"/>',svelte:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FFF0EB" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#FF3E00" d="M10.354 21.125a4.44 4.44 0 0 1-4.765-1.767 4.109 4.109 0 0 1-.703-3.107 3.898 3.898 0 0 1 .134-.522l.105-.321.287.21a7.21 7.21 0 0 0 2.186 1.092l.208.063-.02.208a1.253 1.253 0 0 0 .226.83 1.337 1.337 0 0 0 1.435.533 1.231 1.231 0 0 0 .343-.15l5.59-3.562a1.164 1.164 0 0 0 .524-.778 1.242 1.242 0 0 0-.211-.937 1.338 1.338 0 0 0-1.435-.533 1.23 1.23 0 0 0-.343.15l-2.133 1.36a4.078 4.078 0 0 1-1.135.499 4.44 4.44 0 0 1-4.765-1.766 4.108 4.108 0 0 1-.702-3.108 3.855 3.855 0 0 1 1.742-2.582l5.589-3.563a4.072 4.072 0 0 1 1.135-.499 4.44 4.44 0 0 1 4.765 1.767 4.109 4.109 0 0 1 .703 3.107 3.943 3.943 0 0 1-.134.522l-.105.321-.286-.21a7.204 7.204 0 0 0-2.187-1.093l-.208-.063.02-.207a1.255 1.255 0 0 0-.226-.831 1.337 1.337 0 0 0-1.435-.532 1.231 1.231 0 0 0-.343.15L8.62 9.368a1.162 1.162 0 0 0-.524.778 1.24 1.24 0 0 0 .211.937 1.338 1.338 0 0 0 1.435.533 1.235 1.235 0 0 0 .344-.151l2.132-1.36a4.067 4.067 0 0 1 1.135-.498 4.44 4.44 0 0 1 4.765 1.766 4.108 4.108 0 0 1 .702 3.108 3.857 3.857 0 0 1-1.742 2.583l-5.589 3.562a4.072 4.072 0 0 1-1.135.499m10.358-17.95C18.484-.015 14.082-.96 10.9 1.068L5.31 4.63a6.412 6.412 0 0 0-2.896 4.295 6.753 6.753 0 0 0 .666 4.336 6.43 6.43 0 0 0-.96 2.396 6.833 6.833 0 0 0 1.168 5.167c2.229 3.19 6.63 4.135 9.812 2.108l5.59-3.562a6.41 6.41 0 0 0 2.896-4.295 6.756 6.756 0 0 0-.665-4.336 6.429 6.429 0 0 0 .958-2.396 6.831 6.831 0 0 0-1.167-5.168Z"/></g>',swift:'<defs><clipPath id="__PIW_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__PIW_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#f05138" d="M126.33 34.06a39.32 39.32 0 00-.79-7.83 28.78 28.78 0 00-2.65-7.58 28.84 28.84 0 00-4.76-6.32 23.42 23.42 0 00-6.62-4.55 27.27 27.27 0 00-7.68-2.53c-2.65-.51-5.56-.51-8.21-.76H30.25a45.46 45.46 0 00-6.09.51 21.82 21.82 0 00-5.82 1.52c-.53.25-1.32.51-1.85.76a33.82 33.82 0 00-5 3.28c-.53.51-1.06.76-1.59 1.26a22.41 22.41 0 00-4.76 6.32 23.61 23.61 0 00-2.65 7.58 78.5 78.5 0 00-.79 7.83v60.39a39.32 39.32 0 00.79 7.83 28.78 28.78 0 002.65 7.58 28.84 28.84 0 004.76 6.32 23.42 23.42 0 006.62 4.55 27.27 27.27 0 007.68 2.53c2.65.51 5.56.51 8.21.76h63.22a45.08 45.08 0 008.21-.76 27.27 27.27 0 007.68-2.53 30.13 30.13 0 006.62-4.55 22.41 22.41 0 004.76-6.32 23.61 23.61 0 002.65-7.58 78.49 78.49 0 00.79-7.83V34.06z"/><path fill="#fefefe" d="M85 96.5c-11.11 6.13-26.38 6.76-41.75.47A64.53 64.53 0 0113.84 73a50 50 0 0010.85 6.32c15.87 7.1 31.73 6.61 42.9 0-15.9-11.66-29.4-26.82-39.46-39.2a43.47 43.47 0 01-5.29-6.82c12.16 10.61 31.5 24 38.38 27.79a271.77 271.77 0 01-27-32.34 266.8 266.8 0 0044.47 34.87c.71.38 1.26.7 1.7 1a32.7 32.7 0 001.21-3.51c3.71-12.89-.53-27.54-9.79-39.67C93.25 33.81 106 57.05 100.66 76.51c-.14.53-.29 1-.45 1.55l.19.22c10.59 12.63 7.68 26 6.35 23.5C101 91 90.37 94.33 85 96.5z"/></svg></g>',toml:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F6EEEA" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#9C4121" d="M.014 0h5.34v2.652H2.888v18.681h2.468V24H.015V0Zm17.622 5.049v2.78h-4.274v12.935h-3.008V7.83H6.059V5.05h11.577ZM23.986 24h-5.34v-2.652h2.467V2.667h-2.468V0h5.34v24Z"/></g>',typescript:'<defs><clipPath id="__PIW_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__PIW_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#fff" d="M22.67 47h99.67v73.67H22.67z"/><path data-name="original" fill="#007acc" d="M1.5 63.91v62.5h125v-125H1.5zm100.73-5a15.56 15.56 0 017.82 4.5 20.58 20.58 0 013 4c0 .16-5.4 3.81-8.69 5.85-.12.08-.6-.44-1.13-1.23a7.09 7.09 0 00-5.87-3.53c-3.79-.26-6.23 1.73-6.21 5a4.58 4.58 0 00.54 2.34c.83 1.73 2.38 2.76 7.24 4.86 8.95 3.85 12.78 6.39 15.16 10 2.66 4 3.25 10.46 1.45 15.24-2 5.2-6.9 8.73-13.83 9.9a38.32 38.32 0 01-9.52-.1 23 23 0 01-12.72-6.63c-1.15-1.27-3.39-4.58-3.25-4.82a9.34 9.34 0 011.15-.73L82 101l3.59-2.08.75 1.11a16.78 16.78 0 004.74 4.54c4 2.1 9.46 1.81 12.16-.62a5.43 5.43 0 00.69-6.92c-1-1.39-3-2.56-8.59-5-6.45-2.78-9.23-4.5-11.77-7.24a16.48 16.48 0 01-3.43-6.25 25 25 0 01-.22-8c1.33-6.23 6-10.58 12.82-11.87a31.66 31.66 0 019.49.26zm-29.34 5.24v5.12H56.66v46.23H45.15V69.26H28.88v-5a49.19 49.19 0 01.12-5.17C29.08 59 39 59 51 59h21.83z"/></svg></g>',vue:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECF8F3" stroke="#D5EAE0" stroke-width=".5"/><path fill="#41B883" d="M3.5 5h3.2l3.3 5.7L13.3 5h3.2L10 16z"/><path fill="#35495E" d="M6.7 5H9l1 1.8L11 5h2.3L10 10.7z"/>',wasm:'<defs><clipPath id="__PIW_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__PIW_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#654ff0" d="M.223.222v127.555h127.555V.222H78.594c.014.227.036.455.036.686 0 8.08-6.55 14.626-14.63 14.626-8.078 0-14.625-6.546-14.625-14.626 0-.231.022-.459.031-.686zm29.595 68.746h8.445l5.782 30.738h.107l6.968-30.738h7.908l6.265 31.119h.106l6.597-31.119h8.284l-10.765 45.156H61.12l-6.213-30.738H54.8l-6.7 30.738h-8.557zm59.994 0h13.334l13.284 45.156h-8.77l-2.879-10.051H89.59l-2.212 10.05h-8.5ZM94.895 80.1l-3.684 16.57h11.473L98.448 80.1Z"/></svg></g>',xml:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EAF3FA" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#005FAD" d="M4.345 7.053c-.495.02-.44.725-.536 1.081-.157.583-.3 1.325-.347 1.926-.046.585-.008 1.127.066 1.719.058.46.191.767.07.89-.108.11-3.216 2.962-3.466 3.123-.26.169-.08.584.069.817.157.246.23.373.557.33.306-.042.405-.409.583-.606.228-.252 2.421-2.401 2.616-2.401.077.544.367 1.064.67 1.513.15.222.314.439.505.629.175.175.4.317.587.45.44.024.795-.301.35-.67-.17-.14-.735-.971-.927-1.43-.18-.43-.574-1.076-.146-1.428 1.494-1.23 3.72-2.262 4.247-2.313-.257 1.024-1.356 3.048-1.757 4.012-.14.333-.231.732-.185 1.094.055.434.383.774.587.806.417-.023.7-.387.946-.645.343-.357.634-.685.974-1.043.339-.356.672-.731.971-1.07.184-.207.674-.713.963-.713-.11.693-.716 1.552-.839 2.254-.125.716.531 1.596 1.217.956.623-.58 1.255-1.129 1.867-1.72.217-.208.175.037.224.242.05.208.176.91.275 1.1.18.346.496.592.897.598.362.006.727-.161.982-.414.19-.187.513-.699.154-.832-.23-.086-.217-.176-.495-.129-.172.029-.362.074-.507.179-.367-.003-.381-.89-.324-1.161.068-.327.207-.659.185-.998-.026-.418-.478-.69-.582-.72-.156-.076-.253.023-.458.212-.173.161-.363.332-.535.495-.34.322-.768.813-.942.813.305-.705.708-2.652-.643-2.48-.563.071-.95.377-1.394.71-.29.28-.683.641-.936.87-.236.216-.371.404-.496.404.132-.747 1.685-3.167.885-3.853-.158-.136-.313-.325-.515-.349a4.637 4.637 0 0 0-.833.19c-.565.18-2.78 1.28-4.19 2.289-.131.094-.214-.085-.231-.29-.087-1.058.199-2.19.496-3.188.208-.696-.557-1.225-.659-1.249zm18.177.874c-.166.364-.2.894-.248 1.319a24.307 24.307 0 0 0-1.246-.115c.238.296.691.588 1.056.724-.048.366-.434.67-.599 1.021.458-.127.676-.47.989-.821.362.22.791.627 1.26.636-.177-.376-.334-.695-.658-.966.269-.175.717-.362.924-.633-.345-.074-.718-.093-1.052-.015-.258-.284-.3-.772-.426-1.15zm-2.92.079c-.23.02-.613.49-.832.773-.807 1.039-1.542 3.15-1.661 3.542-.363 1.195-.502 2.672.28 3.722.456.612 1.258.66 2.041.434.405-.116.812-.406.95-.723.114-.263.174-.753-.404-.38-.224.145-.634.304-1.37.291-.247-.004-.651-.357-.76-.722-.192-.595-.11-1.393-.11-1.393.167-1.028.642-2.146 1.061-3.076.163-.36.658-1.259.842-1.546 0 0 .239-.373.131-.77-.031-.116-.091-.16-.168-.152zm3.072 2.976c-.12.264-.144.648-.18.956-.274-.031-.63-.066-.904-.083.172.215.501.426.766.525-.034.265-.314.486-.434.741.332-.092.49-.34.717-.596.263.16.575.456.914.462-.127-.273-.242-.504-.477-.701.195-.127.52-.262.67-.46a1.77 1.77 0 0 0-.763-.01c-.187-.206-.217-.56-.309-.834zm-1.123 2.422c-.083.183-.1.449-.125.662a12.6 12.6 0 0 0-.624-.058c.119.148.346.295.53.363-.025.184-.219.336-.301.513.23-.064.339-.236.496-.413.181.11.397.316.632.32-.088-.19-.168-.349-.33-.485.135-.087.36-.181.463-.317a1.22 1.22 0 0 0-.527-.008c-.13-.142-.151-.387-.214-.576z"/></g>',yaml:`<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCEEEF" stroke="#F0D8DB" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet">
|
|
84
84
|
<polygon transform="matrix(.24805 0 0 .24805 .5 5.6287)" points="87.702 137.67 0 0 63.25 0 119.02 88.646 175.24 0 235.79 0 143.98 137.67 143.98 224.95 87.702 224.95"/>
|
|
85
85
|
<path d="m82.428 49.149h-25.266l-5.1388 12.408h-11.188l23.659-55.798h11.444l22.699 55.798h-11.956l-4.2525-12.408zm-4.197-11.14-7.7455-20.476-8.6412 20.476z" fill="#cb171e"/>
|
|
86
86
|
<polygon transform="matrix(.24805 0 0 .24805 .5 5.6287)" points="87.701 250.18 87.701 470.65 135 470.65 135 318.57 184.51 420.79 221.74 420.79 272.94 314.98 272.94 470.6 318.32 470.6 318.32 250.18 256.36 250.18 201.38 349.88 149.02 250.18"/>
|
|
87
87
|
<polygon transform="matrix(.24805 0 0 .24805 .5 5.6287)" points="512 422.74 512 422.74 395.64 422.74 395.64 250.12 347.44 250.12 347.44 469.65 512 469.65"/>
|
|
88
|
-
</svg>`,zig:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FFF4DF" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#E18A00" d="m23.53 1.02-7.686 3.45h-7.06l-2.98 3.452h7.173L.47 22.98l7.681-3.607h7.065v-.002l2.978-3.45-7.148-.001 12.482-14.9zM0 4.47v14.901h1.883l2.98-3.45H3.451v-8h.942l2.824-3.45H0zm22.117 0-2.98 3.608h1.412v7.844h-.942l-2.98 3.45H24V4.47h-1.883z"/></g>'});function CC({type:e,size:r=20,className:i}){const o=`piw-code-icon-${E.useId().replaceAll(":","")}`,s=vC[e].replaceAll(yC,o);return c.jsx("svg",{width:r,height:r,className:i,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,dangerouslySetInnerHTML:{__html:s}})}const wC=["angular","c","clojure","cmake","cpp","csharp","css","dart","docker","elixir","env","erlang","flutter","git","go","graphql","haskell","ini","java","javascript","json","kotlin","lua","makefile","node","objective-c","perl","php","powershell","protobuf","python","r","react","ruby","rust","scala","shell","solidity","sql","svelte","swift","toml","typescript","vue","wasm","xml","yaml","zig"],kC=new Set(wC),_C={".bash_profile":"shell",".bashrc":"shell",".env":"env",".gitattributes":"git",".gitconfig":"git",".gitignore":"git",".gitmodules":"git",".mailmap":"git",".profile":"shell",".zprofile":"shell",".zshrc":"shell",bsdmakefile:"makefile","cmakelists.txt":"cmake",commit_editmsg:"git","compose.yaml":"docker","compose.yml":"docker","docker-compose.yaml":"docker","docker-compose.yml":"docker",dockerfile:"docker",gemfile:"ruby",gnumakefile:"makefile",guardfile:"ruby",makefile:"makefile","npm-shrinkwrap.json":"node","package-lock.json":"node","package.json":"node",podfile:"ruby",rakefile:"ruby"},SC=[["dockerfile.","docker"],[".env.","env"]],bC=[[".component.ts","angular"],[".component.html","angular"],[".directive.ts","angular"],[".service.ts","angular"],[".module.ts","angular"],[".pipe.ts","angular"],[".guard.ts","angular"],[".interceptor.ts","angular"],[".dockerfile","docker"]],EC={bash:"shell",c:"c","c++":"cpp",cc:"cpp",cfg:"ini",cjs:"javascript",clj:"clojure",cljc:"clojure",cljs:"clojure",cmake:"cmake",cpp:"cpp",cs:"csharp",csh:"shell",css:"css",csx:"csharp",cts:"typescript",cxx:"cpp",dart:"dart",dtd:"xml",edn:"clojure",env:"env",erl:"erlang",es6:"javascript",escript:"erlang",ex:"elixir",exs:"elixir",fish:"shell",gemspec:"ruby",go:"go",gql:"graphql",graphql:"graphql",h:"c","h++":"cpp",hh:"cpp",hpp:"cpp",hrl:"erlang",hs:"haskell",hxx:"cpp",ini:"ini",ipp:"cpp",java:"java",js:"javascript",json:"json",json5:"json",jsonc:"json",jsx:"react",ksh:"shell",kt:"kotlin",kts:"kotlin",lhs:"haskell",lua:"lua",m:"objective-c",mak:"makefile",mjs:"javascript",mk:"makefile",mm:"objective-c",mts:"typescript",node:"node",pch:"objective-c",php:"php",php3:"php",php4:"php",php5:"php",phps:"php",phtml:"php",pl:"perl",plist:"xml",pm:"perl",pod:"perl",proto:"protobuf",ps1:"powershell",psd1:"powershell",psm1:"powershell",py:"python",pyi:"python",pyw:"python",pyx:"python",r:"r",rake:"ruby",rb:"ruby",rmd:"r",rs:"rust",sc:"scala",scala:"scala",sh:"shell",sol:"solidity",sql:"sql",svelte:"svelte",swift:"swift",t:"perl",tcsh:"shell",toml:"toml",tpp:"cpp",ts:"typescript",tsx:"react",vue:"vue",wasm:"wasm",wast:"wasm",wat:"wasm",xml:"xml",xsd:"xml",xsl:"xml",xslt:"xml",yaml:"yaml",yml:"yaml",zig:"zig",zsh:"shell"};function jC(e){return e.slice(Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\"))+1)}function LC(e){return kC.has(e)}function NC(e,r,i){var s;const o=_C[e];if(o!==void 0)return o;for(const[u,d]of SC)if(e.startsWith(u))return d;for(const[u,d]of bC)if(e.endsWith(u))return d;if(r==="dart"&&i!==void 0){const u=(s=Object.entries(i.files).find(([d])=>jC(d).toLowerCase()==="pubspec.yaml"))==null?void 0:s[1];if((u==null?void 0:u.includes("flutter:"))===!0)return"flutter"}return EC[r]??null}const IC="_icon_1tiqm_1",PC="_code_1tiqm_8",MC="_excel_1tiqm_12",TC="_folder_1tiqm_16",zC="_html_1tiqm_20",DC="_image_1tiqm_24",RC="_markdown_1tiqm_28",AC="_other_1tiqm_32",FC="_pdf_1tiqm_36",OC="_ppt_1tiqm_40",$C="_video_1tiqm_44",BC="_word_1tiqm_48",sd={icon:IC,code:PC,excel:MC,folder:TC,html:zC,image:DC,markdown:RC,other:AC,pdf:FC,ppt:OC,video:$C,word:BC},HC={scss:"code",sass:"code",less:"code",vue:"code",svelte:"code",astro:"code",bat:"code",cmd:"code",csv:"code",tsv:"code",html:"html",htm:"html",png:"image",jpg:"image",jpeg:"image",gif:"image",svg:"image",webp:"image",avif:"image",bmp:"image",ico:"image",tif:"image",tiff:"image",heic:"image",heif:"image",md:"markdown",mdx:"markdown",markdown:"markdown",pdf:"pdf",ppt:"ppt",pptx:"ppt",key:"ppt",mp4:"video",mov:"video",m4v:"video",webm:"video",mkv:"video",avi:"video",mpg:"video",mpeg:"video",doc:"word",docx:"word",rtf:"word",odt:"word",pages:"word",xls:"excel",xlsx:"excel",xlsm:"excel",numbers:"excel"},VC={changelog:"markdown",contributing:"markdown",readme:"markdown"};function D3(e){return e.slice(Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\"))+1)}function xu(e){const r=D3(e),i=r.lastIndexOf(".");return i<0?"":r.slice(i+1)}function UC(e,r){const i=D3(e).toLowerCase(),o=xu(i).toLowerCase();return NC(i,o,r)??VC[i]??HC[o]??"other"}const WC="M8.48924 28H19.5108C21.6479 28 22.7165 28 23.5594 27.6509C24.6833 27.1853 25.5762 26.2924 26.0417 25.1685C26.3909 24.3256 26.3909 23.257 26.3909 21.1199V8.79443C26.3909 8.32877 26.3909 8.09593 26.3471 7.87507C26.2887 7.58058 26.173 7.30042 26.0067 7.05048C25.882 6.86303 25.7177 6.69799 25.3893 6.36792L20.0611 1.01354C19.7304 0.681235 19.5651 0.515081 19.3769 0.38885C19.126 0.220541 18.8443 0.103463 18.5481 0.0443412C18.3259 0 18.0915 0 17.6226 0H8.48924C6.35209 0 5.28351 0 4.4406 0.349145C3.31672 0.814671 2.4238 1.70759 1.95828 2.83147C1.60913 3.67438 1.60913 4.74296 1.60913 6.88011V21.1199C1.60913 23.257 1.60913 24.3256 1.95828 25.1685C2.4238 26.2924 3.31672 27.1853 4.4406 27.6509C5.28351 28 6.35209 28 8.48924 28Z",ad="M26.3909 7.37445L19.0525 0V3.77445C19.0525 4.89271 19.0525 5.45184 19.2352 5.89289C19.4788 6.48096 19.946 6.94818 20.5341 7.19176C20.9751 7.37445 21.5342 7.37445 22.6525 7.37445H26.3909Z",qC="translate(14 16) scale(1.12) translate(-14 -16)",hl="translate(14 16) scale(1.22) translate(-14 -16)",ZC="translate(14 13.0693) scale(1.12) translate(-14 -13.0693)";function Tn({size:e,className:r,children:i,markTransform:o=qC,muted:s=!1}){return c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:[c.jsx("path",{d:WC,fill:"currentColor"}),s?c.jsx("path",{d:ad,fill:"var(--dsw-static-neutral-400)"}):c.jsx("path",{d:ad,fill:"var(--dsw-static-neutral-00)",fillOpacity:".7"}),i!==void 0&&c.jsx("g",{color:"var(--dsw-static-neutral-00)","data-file-type-mark":!0,transform:o,children:i})]})}function QC({size:e,className:r}){return c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:[c.jsx("path",{d:"M2.80078 10.2112C2.80078 9.52802 2.80078 9.18642 2.85314 8.866C2.98648 8.05 3.36942 7.29538 3.94925 6.70595C4.17694 6.4745 4.45264 6.2728 5.00404 5.86939C5.29197 5.65874 5.43594 5.55342 5.58711 5.46632C5.97089 5.24521 6.39638 5.10618 6.83667 5.05803C7.01011 5.03906 7.18849 5.03906 7.54524 5.03906H11.6543C12.4669 5.03906 12.8732 5.03906 13.2599 5.13697C13.3882 5.16945 13.5143 5.20986 13.6375 5.25795C14.0091 5.40294 14.3398 5.63902 15.0012 6.1112L16.2632 7.01224C16.5526 7.21881 16.6972 7.3221 16.8598 7.38553C16.9137 7.40657 16.9689 7.42425 17.025 7.43846C17.1942 7.4813 17.372 7.4813 17.7275 7.4813H19.8008C22.0506 7.4813 23.1755 7.4813 23.9641 8.05425C24.2188 8.23928 24.4428 8.46326 24.6278 8.71794C25.2008 9.50654 25.2008 10.6315 25.2008 12.8813V18.7283C25.2008 20.9781 25.2008 22.1031 24.6278 22.8917C24.4428 23.1463 24.2188 23.3703 23.9641 23.5554C23.1755 24.1283 22.0506 24.1283 19.8008 24.1283H8.20077C5.95094 24.1283 4.82602 24.1283 4.03743 23.5554C3.78274 23.3703 3.55877 23.1463 3.37373 22.8917C2.80078 22.1031 2.80078 20.9781 2.80078 18.7283V10.2112Z",fill:"currentColor"}),c.jsx("g",{color:"var(--dsw-static-neutral-00)","data-file-type-mark":!0,transform:ZC,children:c.jsx("path",{d:"M6.31445 13.0693H21.6893",stroke:"currentColor",strokeWidth:"2.38"})})]})}function GC(e,r,i){switch(e){case"code":return c.jsxs(Tn,{size:r,className:i,children:[c.jsx("path",{d:"M8.61 16.3601L11.76 18.3901V20.1401L7 17.0601V15.6601L11.76 12.5801V14.3301L8.61 16.3601Z",fill:"currentColor"}),c.jsx("path",{d:"M16.1918 14.3301V12.5801L20.9518 15.6601V17.0601L16.1918 20.1401V18.3901L19.3418 16.3601L16.1918 14.3301Z",fill:"currentColor"})]});case"excel":return c.jsx(Tn,{size:r,className:i,markTransform:hl,children:c.jsx("path",{d:"M10.2932 20.5L13.3532 16.25L13.3432 17.66L10.4032 13.5H12.6332L14.5132 16.21L13.5632 16.22L15.4132 13.5H17.5532L14.6132 17.58V16.18L17.7132 20.5H15.4332L13.5232 17.65H14.4332L12.5532 20.5H10.2932Z",fill:"currentColor"})});case"folder":return c.jsx(QC,{size:r,className:i});case"html":return c.jsx(Tn,{size:r,className:i,children:c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.9994 9.68298C17.212 9.68298 19.8167 12.2872 19.8168 15.4997C19.8168 18.7123 17.2121 21.3171 13.9994 21.3171C10.7869 21.3169 8.18274 18.7122 8.18274 15.4997C8.1829 12.2873 10.787 9.68315 13.9994 9.68298ZM9.26213 16.0247C9.47025 17.9241 10.7936 19.4876 12.5639 20.0463C12.42 19.7977 12.2952 19.5152 12.1879 19.2116C11.885 18.3541 11.693 17.2434 11.6424 16.0247H9.26213ZM16.3565 16.0247C16.3059 17.2434 16.1145 18.3542 15.8116 19.2116C15.7044 19.5151 15.5788 19.7971 15.435 20.0456C17.2054 19.487 18.5293 17.9242 18.7374 16.0247H16.3565ZM12.6938 16.0247C12.7439 17.1459 12.9212 18.1334 13.1784 18.8616C13.332 19.2962 13.503 19.61 13.6686 19.805C13.834 19.9996 13.9473 20.0256 13.9994 20.0258C14.0514 20.0258 14.1651 20.0002 14.331 19.805C14.4966 19.61 14.6676 19.2962 14.8211 18.8616C15.0784 18.1334 15.2557 17.1459 15.3058 16.0247H12.6938ZM13.9994 10.733C13.9473 10.7331 13.834 10.7598 13.6686 10.9545C13.503 11.1494 13.3319 11.4633 13.1784 11.8978C12.903 12.6777 12.7188 13.7545 12.6849 14.9747H15.3147C15.2808 13.7545 15.0966 12.6777 14.8211 11.8978C14.6676 11.4633 14.4965 11.1494 14.331 10.9545C14.1651 10.7593 14.0514 10.733 13.9994 10.733ZM15.5888 11.0051C15.6701 11.1756 15.7444 11.3576 15.8116 11.5478C16.1343 12.4613 16.3308 13.6619 16.3647 14.9747H18.7374C18.5352 13.1307 17.2817 11.6036 15.5888 11.0051ZM12.4101 11.0051C10.7174 11.6037 9.46428 13.1308 9.26213 14.9747H11.6349C11.6688 13.6619 11.8652 12.4613 12.1879 11.5478C12.2551 11.3577 12.3288 11.1756 12.4101 11.0051Z",fill:"currentColor"})});case"image":return c.jsxs(Tn,{size:r,className:i,children:[c.jsx("path",{d:"M10.4212 15.9204C10.5756 15.6558 10.9579 15.6558 11.1123 15.9204L13.6493 20.2696C13.8048 20.5362 13.6125 20.8711 13.3037 20.8711H8.22974C7.92102 20.8711 7.72868 20.5362 7.88423 20.2696L10.4212 15.9204Z",fill:"currentColor"}),c.jsx("path",{d:"M15.4981 13.186C15.6505 12.9117 16.0451 12.9117 16.1975 13.186L20.1368 20.2769C20.2849 20.5435 20.0922 20.8711 19.7872 20.8711H11.9084C11.6034 20.8711 11.4107 20.5435 11.5588 20.2769L15.4981 13.186Z",fill:"currentColor"}),c.jsx("path",{d:"M11.8603 11.3997C11.8603 12.286 11.1418 13.0045 10.2555 13.0045C9.36924 13.0045 8.65076 12.286 8.65076 11.3997C8.65076 10.5134 9.36924 9.79492 10.2555 9.79492C11.1418 9.79492 11.8603 10.5134 11.8603 11.3997Z",fill:"currentColor"})]});case"markdown":return c.jsx(Tn,{size:r,className:i,markTransform:hl,children:c.jsx("path",{d:"M8.7588 19.5V14.6H9.8998L11.9298 17.932H11.3278L13.3018 14.6H14.4428L14.4568 19.5H13.1828L13.1688 16.539H13.3858L11.9088 19.017H11.2928L9.7738 16.539H10.0398V19.5H8.7588ZM15.4375 19.5V14.6H17.7545C18.2958 14.6 18.7718 14.7003 19.1825 14.901C19.5932 15.1017 19.9128 15.384 20.1415 15.748C20.3748 16.112 20.4915 16.546 20.4915 17.05C20.4915 17.5493 20.3748 17.9833 20.1415 18.352C19.9128 18.716 19.5932 18.9983 19.1825 19.199C18.7718 19.3997 18.2958 19.5 17.7545 19.5H15.4375ZM16.8235 18.394H17.6985C17.9785 18.394 18.2212 18.3427 18.4265 18.24C18.6365 18.1327 18.7998 17.9787 18.9165 17.778C19.0332 17.5727 19.0915 17.33 19.0915 17.05C19.0915 16.7653 19.0332 16.5227 18.9165 16.322C18.7998 16.1213 18.6365 15.9697 18.4265 15.867C18.2212 15.7597 17.9785 15.706 17.6985 15.706H16.8235V18.394Z",fill:"currentColor"})});case"other":return c.jsx(Tn,{size:r,className:i,muted:!0});case"pdf":return c.jsx(Tn,{size:r,className:i,markTransform:hl,children:c.jsx("path",{d:"M6.80616 19.5V14.6H9.04616C9.49416 14.6 9.87916 14.6723 10.2012 14.817C10.5278 14.9617 10.7798 15.1717 10.9572 15.447C11.1345 15.7177 11.2232 16.0397 11.2232 16.413C11.2232 16.7817 11.1345 17.1013 10.9572 17.372C10.7798 17.6427 10.5278 17.8527 10.2012 18.002C9.87916 18.1467 9.49416 18.219 9.04616 18.219H7.57616L8.19216 17.617V19.5H6.80616ZM8.19216 17.764L7.57616 17.127H8.96216C9.2515 17.127 9.46616 17.064 9.60616 16.938C9.75083 16.812 9.82316 16.637 9.82316 16.413C9.82316 16.1843 9.75083 16.007 9.60616 15.881C9.46616 15.755 9.2515 15.692 8.96216 15.692H7.57616L8.19216 15.055V17.764ZM11.8989 19.5V14.6H14.2159C14.7573 14.6 15.2333 14.7003 15.6439 14.901C16.0546 15.1017 16.3743 15.384 16.6029 15.748C16.8363 16.112 16.9529 16.546 16.9529 17.05C16.9529 17.5493 16.8363 17.9833 16.6029 18.352C16.3743 18.716 16.0546 18.9983 15.6439 19.199C15.2333 19.3997 14.7573 19.5 14.2159 19.5H11.8989ZM13.2849 18.394H14.1599C14.4399 18.394 14.6826 18.3427 14.8879 18.24C15.0979 18.1327 15.2613 17.9787 15.3779 17.778C15.4946 17.5727 15.5529 17.33 15.5529 17.05C15.5529 16.7653 15.4946 16.5227 15.3779 16.322C15.2613 16.1213 15.0979 15.9697 14.8879 15.867C14.6826 15.7597 14.4399 15.706 14.1599 15.706H13.2849V18.394ZM17.6821 19.5V14.6H21.5251V15.671H19.0681V19.5H17.6821ZM18.9701 17.82V16.749H21.2311V17.82H18.9701Z",fill:"currentColor"})});case"ppt":return c.jsx(Tn,{size:r,className:i,markTransform:hl,children:c.jsx("path",{d:"M11.0132 20.5V13.5H14.2132C14.8532 13.5 15.4032 13.6033 15.8632 13.81C16.3299 14.0167 16.6899 14.3167 16.9432 14.71C17.1966 15.0967 17.3232 15.5567 17.3232 16.09C17.3232 16.6167 17.1966 17.0733 16.9432 17.46C16.6899 17.8467 16.3299 18.1467 15.8632 18.36C15.4032 18.5667 14.8532 18.67 14.2132 18.67H12.1132L12.9932 17.81V20.5H11.0132ZM12.9932 18.02L12.1132 17.11H14.0932C14.5066 17.11 14.8132 17.02 15.0132 16.84C15.2199 16.66 15.3232 16.41 15.3232 16.09C15.3232 15.7633 15.2199 15.51 15.0132 15.33C14.8132 15.15 14.5066 15.06 14.0932 15.06H12.1132L12.9932 14.15V18.02Z",fill:"currentColor"})});case"video":return c.jsx(Tn,{size:r,className:i,children:c.jsx("path",{d:"M17.5 14.634C18.1667 15.0189 18.1667 15.9811 17.5 16.366L11.5 19.8301C10.8333 20.215 10 19.7339 10 18.9641L10 12.0359C10 11.2661 10.8333 10.785 11.5 11.1699L17.5 14.634Z",fill:"currentColor"})});case"word":return c.jsx(Tn,{size:r,className:i,markTransform:hl,children:c.jsx("path",{d:"M10.5118 20.5L8.24179 13.5H10.2818L12.1918 19.56H11.1618L13.1718 13.5H14.9918L16.8918 19.56H15.9018L17.8718 13.5H19.7618L17.4918 20.5H15.3718L13.7518 15.35H14.3218L12.6318 20.5H10.5118Z",fill:"currentColor"})});default:return KC(e)}}function KC(e){throw new Error(`unreachable traditional file type: ${String(e)}`)}function R3(e){const{size:r=28,className:i}=e,o="path"in e?UC(e.path,e.context):e.kind;return LC(o)?c.jsx(CC,{type:o,size:r,className:i}):GC(o,r,ot(sd.icon,sd[o],i))}function YC(e){if(e<1024)return`${e}B`;const r=e/1024;if(r<1024)return`${r<10?r.toFixed(1):Math.round(r)}KB`;const i=r/1024;if(i<1024)return`${i<10?i.toFixed(1):Math.round(i)}MB`;const o=i/1024;return`${o<10?o.toFixed(1):Math.round(o)}GB`}const XC="_card_p20fp_1",JC="_failed_p20fp_16",ew="_icon_p20fp_20",tw="_spinner_p20fp_29",nw="_body_p20fp_43",rw="_retry_p20fp_51",iw="_name_p20fp_61",lw="_meta_p20fp_71",ow="_metaFailed_p20fp_80",sw="_remove_p20fp_84",aw="_removeFailed_p20fp_126",uw="_progressTrack_p20fp_132",cw="_progressBar_p20fp_143",Tt={card:XC,failed:JC,icon:ew,spinner:tw,body:nw,retry:rw,name:iw,meta:lw,metaFailed:ow,remove:sw,removeFailed:aw,progressTrack:uw,progressBar:cw};function dw({name:e,bytes:r,status:i,error:o,onRemove:s,onRetry:u}){const d=xu(e).toUpperCase().slice(0,8),f=i==="uploading"?_("上传中…","Uploading…"):i==="error"?o||_("上传失败","Upload failed"):`${d} ${YC(r)}`;return c.jsxs("div",{className:`${Tt.card} ${i==="error"?Tt.failed:""}`,title:e,children:[c.jsx("span",{className:Tt.icon,"aria-hidden":"true",children:i==="uploading"?c.jsx("span",{className:Tt.spinner}):c.jsx(R3,{path:e,size:28})}),i==="error"?c.jsxs("button",{type:"button",className:`${Tt.body} ${Tt.retry}`,onClick:u,"aria-label":_(`重试上传 ${e}`,`Retry upload ${e}`),children:[c.jsx("span",{className:Tt.name,children:e}),c.jsx("span",{className:`${Tt.meta} ${Tt.metaFailed}`,children:f})]}):c.jsxs("span",{className:Tt.body,"aria-label":_(`待发送文件 ${e}`,`Pending file ${e}`),children:[c.jsx("span",{className:Tt.name,children:e}),c.jsx("span",{className:Tt.meta,children:f})]}),c.jsx("button",{type:"button",className:`${Tt.remove} ${i==="error"?Tt.removeFailed:""}`,"aria-label":_(`移除 ${e}`,`Remove ${e}`),onClick:s,children:c.jsx(K1,{size:12})}),i==="uploading"&&c.jsx("span",{className:Tt.progressTrack,"aria-hidden":"true",children:c.jsx("span",{className:Tt.progressBar})})]})}const fw="_imageItem_1b0gl_9",pw="_thumbnail_1b0gl_15",hw="_remove_1b0gl_33",mw="_retryImage_1b0gl_58",Zo={imageItem:fw,thumbnail:pw,remove:hw,retryImage:mw};function gw({file:e,status:r,error:i,onRemove:o,onRetry:s}){const[u,d]=E.useState(null),[f,p]=E.useState(!1),m=E.useCallback(()=>p(!1),[]),y=/^(image\/(png|jpeg|webp|gif))$/.test(e.type)||/\.(png|jpe?g|webp|gif)$/i.test(e.name);return E.useEffect(()=>{if(!y)return;const x=URL.createObjectURL(e);return d(x),()=>URL.revokeObjectURL(x)},[e,y]),y?c.jsxs("div",{className:Zo.imageItem,title:e.name,children:[c.jsx("button",{type:"button",className:Zo.thumbnail,"aria-label":_(`预览 ${e.name}`,`Preview ${e.name}`),disabled:u===null,onClick:()=>p(!0),children:u&&c.jsx("img",{src:u,alt:e.name})}),c.jsx("button",{type:"button",className:Zo.remove,"aria-label":_(`移除 ${e.name}`,`Remove ${e.name}`),onClick:o,children:c.jsx(K1,{size:12})}),r==="uploading"&&c.jsx("span",{className:"pi-image-uploading",role:"status",children:_("上传中","Uploading")}),r==="error"&&c.jsx("button",{type:"button",className:Zo.retryImage,"aria-label":_(`重试上传 ${e.name}`,`Retry upload ${e.name}`),title:i||_("上传失败","Upload failed"),onClick:s,children:_("重试","Retry")}),f&&u&&c.jsx(z3,{src:u,alt:e.name,labels:{dialog:_("图片预览","Image preview"),close:_("关闭预览","Close preview")},onClose:m})]}):c.jsx(dw,{name:e.name,bytes:e.size,status:r,error:i,onRemove:o,onRetry:s})}const xw="_frame_33xub_18",yw="_loading_33xub_51",vw="_error_33xub_52",b1={frame:xw,loading:yw,error:vw};function Cw(e,r){const i=e/r,o=Math.min(4,Math.max(.25,i)),s=o>=1?{width:240,height:240/o}:{width:240*o,height:240},u=Math.min(1,e/s.width,r/s.height);return{width:Math.max(1,Math.round(s.width*u)),height:Math.max(1,Math.round(s.height*u)),objectPosition:i<.25?"center top":i>4?"left center":"center"}}function ww({name:e,messageId:r,index:i,file:o,tile:s,loadImage:u}){const[d,f]=E.useState(null),[p,m]=E.useState(!1),[y,x]=E.useState(!1),[v,C]=E.useState(0),[k,P]=E.useState(null),R=E.useRef(u);R.current=u,E.useEffect(()=>{let V=!0,b=null;return f(null),m(!1),P(null),o?(b=URL.createObjectURL(o),f(b)):R.current(r,i).then($=>{const B=URL.createObjectURL($);V?(b=B,f(B)):URL.revokeObjectURL(B)}).catch(()=>{V&&m(!0)}),()=>{V=!1,b&&URL.revokeObjectURL(b)}},[o,r,i,v]);const j=!s&&k?Cw(k.width,k.height):null;return p?c.jsx("button",{type:"button",className:b1.error,"data-variant":s?"tile":"single",onClick:()=>C(V=>V+1),children:_("图片加载失败,重试","Image failed to load. Retry")}):c.jsxs(c.Fragment,{children:[c.jsx("button",{type:"button",className:b1.frame,"data-variant":s?"tile":"single","aria-label":_(`预览 ${e}`,`Preview ${e}`),title:_("查看原图","View original image"),disabled:!d,onClick:()=>x(!0),style:j?{width:j.width,height:j.height}:void 0,children:d?c.jsx("img",{src:d,alt:e,onLoad:V=>P({width:V.currentTarget.naturalWidth,height:V.currentTarget.naturalHeight}),onError:()=>m(!0),style:j?{objectPosition:j.objectPosition}:void 0}):c.jsx("span",{className:b1.loading,children:_("加载中","Loading")})}),y&&d&&c.jsx(z3,{src:d,alt:e,labels:{dialog:_("图片预览","Image preview"),close:_("关闭预览","Close preview")},onClose:()=>x(!1)})]})}const kw=12;function _w(e,r,i){const[o,s]=E.useState(r);return E.useLayoutEffect(()=>{const u=e.current;if(u===null)return;const d=()=>{s(Math.min(r,Math.max(0,u.getBoundingClientRect().bottom-kw)))};return d(),window.addEventListener("resize",d),window.addEventListener("scroll",d,!0),()=>{window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0)}},[e,r,i]),o}const Sw="_menu_rkz86_1",bw="_viewport_rkz86_46",Ew="_item_rkz86_53",jw="_active_rkz86_72",Lw="_itemName_rkz86_100",Nw="_itemDescription_rkz86_121",Iw="_groupTitle_rkz86_188",vr={menu:Sw,viewport:bw,item:Ew,active:jw,itemName:Lw,itemDescription:Nw,groupTitle:Iw};function Pw(){return[{name:"compact",description:_("压缩当前会话内容","Compact the current session")},{name:"model",description:_("选择本会话使用的模型","Choose the model for this session")},{name:"new",description:_("创建新会话","Create a new session")}]}function Mw({commands:e,active:r,onHover:i,onPick:o}){const s=E.useRef(null),u=_w(s,400,e.length);return c.jsx("div",{ref:s,className:vr.menu,"data-trigger-menu":"",style:{maxHeight:u},children:c.jsxs("div",{className:vr.viewport,role:"listbox","aria-label":_("指令","Commands"),"aria-activedescendant":e[r]?`pi-command-${r}`:void 0,children:[c.jsx("div",{className:vr.groupTitle,role:"presentation",children:_("指令","Commands")}),e.map((d,f)=>c.jsxs("button",{id:`pi-command-${f}`,type:"button",role:"option","aria-selected":f===r,className:`${vr.item} ${f===r?vr.active:""}`,onMouseDown:p=>{p.preventDefault(),o(d)},onMouseMove:()=>i(f),children:[c.jsx("span",{className:vr.itemName,children:d.name}),d.description&&c.jsx("span",{className:vr.itemDescription,children:d.description})]},d.name)),e.length===0&&c.jsx("div",{className:vr.groupTitle,children:_("没有匹配的指令","No matching commands")})]})})}const Tw="_mask_dzmab_3",zw="_wrap_dzmab_27",Dw="_illustration_dzmab_37",Rw="_title_dzmab_42",Aw="_desc_dzmab_47",ml={mask:Tw,wrap:zw,illustration:Dw,title:Rw,desc:Aw};function Fw({disabled:e,labels:r}){return Nl.createPortal(c.jsx("div",{className:ml.mask,role:"status",children:c.jsxs("div",{className:ml.wrap,children:[c.jsx("div",{className:ml.illustration,"aria-hidden":"true",children:e?c.jsx($w,{}):c.jsx(Ow,{})}),c.jsx("div",{className:ml.title,children:r.title}),!e&&r.desc!==void 0&&c.jsx("div",{className:ml.desc,children:r.desc})]})}),document.body)}const Ow=()=>c.jsxs("svg",{width:"115",height:"84",viewBox:"0 0 115 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{clipPath:"url(#piwDropOverlayClip)",children:[c.jsx("rect",{y:"17.0742",width:"44.1832",height:"43.6431",rx:"12",transform:"rotate(-22.7338 0 17.0742)",fill:"#9CE5ED"}),c.jsx("rect",{x:"73.4043",y:"8.54297",width:"43.7267",height:"50.5284",rx:"8",transform:"rotate(17.403 73.4043 8.54297)",fill:"#679EFE"}),c.jsx("path",{d:"M30.4917 28.1369L40.8865 33.4564L37.2232 34.9524L29.5302 31.0159L26.7919 39.2122L23.1285 40.7082L26.8287 29.6338L16.8967 24.5516L20.5601 23.0556L27.7902 26.7549L30.3639 19.052L34.0273 17.556L30.4917 28.1369Z",fill:"white"}),c.jsx("path",{d:"M77.5088 26.3047L101.057 33.7966",stroke:"white",strokeWidth:"3"}),c.jsx("path",{d:"M72.2646 42.7871L86.3938 47.2823",stroke:"white",strokeWidth:"3"}),c.jsx("path",{d:"M74.8867 34.5469L98.4353 42.0388",stroke:"white",strokeWidth:"3"}),c.jsx("rect",{x:"31.583",y:"38.6641",width:"44.9157",height:"44.3666",rx:"12",transform:"rotate(-0.134233 31.583 38.6641)",fill:"#3964FE"}),c.jsx("path",{d:"M38.9521 73.0337C39.6129 71.7086 41.7113 66.0937 43.5113 61.1663C44.1607 59.3885 46.7484 59.3923 47.4591 61.1465C48.9728 64.8828 50.7969 68.6922 51.9988 69.1925C54.2946 70.1482 57.9854 59.3573 68.0064 70.1801",stroke:"white",strokeWidth:"3"}),c.jsx("circle",{cx:"60.6157",cy:"52.247",r:"4.38794",transform:"rotate(22.5996 60.6157 52.247)",fill:"white"})]}),c.jsx("defs",{children:c.jsx("clipPath",{id:"piwDropOverlayClip",children:c.jsx("rect",{width:"115",height:"84",fill:"white"})})})]}),$w=()=>c.jsxs("svg",{width:"115",height:"84",viewBox:"0 0 115 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M29.6829 4.63701L11.0677 12.4368C4.95519 14.998 2.07624 22.0294 4.6374 28.1419L12.2285 46.259C14.7896 52.3715 21.8211 55.2505 27.9336 52.6893L46.5488 44.8895C52.6613 42.3283 55.5403 35.2969 52.9791 29.1844L45.388 11.0673C42.8269 4.9548 35.7954 2.07585 29.6829 4.63701Z",fill:"#979DA6"}),c.jsx("path",{d:"M30.4915 28.1375L40.8863 33.4569L37.223 34.9529L29.53 31.0165L26.7917 39.2128L23.1283 40.7088L26.8285 29.6344L16.8965 24.5522L20.5599 23.0562L27.79 26.7555L30.3637 19.0526L34.0271 17.5566L30.4915 28.1375Z",fill:"white"}),c.jsx("path",{d:"M107.496 19.2285L81.0381 10.9357C76.8221 9.61423 72.333 11.9607 71.0116 16.1768L60.6844 49.1246C59.363 53.3406 61.7095 57.8297 65.9255 59.1511L92.383 67.4439C96.599 68.7654 101.088 66.4189 102.41 62.2029L112.737 29.255C114.058 25.039 111.712 20.55 107.496 19.2285Z",fill:"#979DA6"}),c.jsx("path",{d:"M77.5088 26.3047L101.057 33.7967",stroke:"white",strokeWidth:"3"}),c.jsx("path",{d:"M72.2646 42.7871L86.3938 47.2823",stroke:"white",strokeWidth:"3"}),c.jsx("path",{d:"M74.8867 34.5469L98.4353 42.0388",stroke:"white",strokeWidth:"3"}),c.jsx("path",{d:"M66.5798 30.1418L41.481 30.2006C33.5281 30.2193 27.0962 36.6815 27.1148 44.6343L27.172 69.0742C27.1907 77.0271 33.6529 83.459 41.6057 83.4404L66.7045 83.3816C74.6574 83.363 81.0894 76.9008 81.0707 68.9479L81.0135 44.5081C80.9949 36.5552 74.5327 30.1232 66.5798 30.1418Z",fill:"#F59E0B"}),c.jsx("path",{d:"M54 70.7969C61.732 70.7969 68 64.5289 68 56.7969C68 49.0649 61.732 42.7969 54 42.7969C46.268 42.7969 40 49.0649 40 56.7969C40 64.5289 46.268 70.7969 54 70.7969Z",stroke:"white",strokeWidth:"3.5"}),c.jsx("path",{d:"M44 46.7969L64 66.7969",stroke:"white",strokeWidth:"3.5",strokeLinecap:"round"})]});function A3(e){const r=[];let i=e;for(;;){const o=/(^|\n\n)附件 ("(?:\\.|[^"\\])*"):([^\n]+)$/u.exec(i);if(!o||!/[\\/]pi-web[\\/]attachments[\\/][a-f0-9]{64}[\\/]/u.test(o[3]))break;let s;try{s=JSON.parse(o[2])}catch{break}r.unshift({name:s,image:/\.(?:png|jpe?g|webp|gif)$/iu.test(s)}),i=i.slice(0,o.index)}return{text:i,attachments:r}}function Qo({message:e,results:r,loadImage:i,running:o=!1,onInspect:s,cwd:u}){var d;if(e.role==="tool"&&e.toolCallId&&r.has(e.toolCallId))return null;if(e.role==="user"){const f=e.blocks.filter(v=>v.kind==="text").map(v=>v.text).join(`
|
|
89
|
-
`),p=e.localFiles?{text:f,attachments:e.localFiles.map(v=>({name:v.name,image:/\.(?:png|jpe?g|webp|gif)$/iu.test(v.name)||/^image\/(?:png|jpeg|webp|gif)$/.test(v.type)}))}:
|
|
90
|
-
`),P=u||y,R=e.messages.filter(j=>j.role==="assistant"&&j.error);return c.jsxs("div",{className:"pi-turn","data-turn":e.index,children:[e.messages.filter(j=>j.role==="user"||j.role==="notice").map(j=>c.jsx(Qo,{message:j,results:r,loadImage:o},j.id)),m.length>0&&c.jsxs(c.Fragment,{children:[p.length>0&&c.jsx(_y,{toolCount:v,messageCount:C,open:P,onToggle:()=>x(j=>!j)}),(P||p.length===0)&&c.jsx("div",{className:"pi-turn-process-content",children:m.map(({message:j,block:V,index:b})=>c.jsx(Qo,{message:{...j,blocks:[V]},results:r,loadImage:o,running:j.id==="stream",cwd:d,onInspect:s},`${j.id}-${b}`))})]}),p.length>0&&f&&c.jsx(Qo,{message:{...f,blocks:p},results:r,loadImage:o,running:f.id==="stream"}),e.messages.filter(j=>j.role==="tool"&&(!j.toolCallId||!r.has(j.toolCallId))).map(j=>c.jsx(Qo,{message:j,results:r,loadImage:o},j.id)),R.map(j=>c.jsxs("div",{className:"pi-model-error",role:"alert",children:[c.jsx("strong",{children:_("模型请求失败","Model request failed")}),c.jsx("span",{children:/usage limit has been reached/i.test(j.error??"")?_("模型服务的使用额度已耗尽。请切换模型或等待额度恢复后重试。","The model service usage limit has been reached. Switch models or try again after the limit resets."):j.error})]},`${j.id}-error`)),!u&&R.length===0&&(f||e.usage&&e.usage.totalTokens>0)&&c.jsx(by,{text:k,timestamp:f==null?void 0:f.timestamp,usage:e.usage,model:(f==null?void 0:f.model)??i})]})}function Hw({hero:e,session:r,connection:i,onSend:o,onUpload:s,onDiscardAttachment:u,onStop:d,onCompact:f,onNewSession:p,commands:m,models:y,modelsStatus:x,onConfigureModels:v,onSetModel:C,onSetThinkingLevel:k}){const P=kr(),[R,j]=E.useState(""),[V,b]=E.useState(!1),[$,B]=E.useState(null),[T,ee]=E.useState(0),[ie,Y]=E.useState(0),[D,L]=E.useState([]),[Z,te]=E.useState(""),[W,O]=E.useState(!1),I=E.useRef(0),J=E.useRef(null),z=E.useRef(new Map),ne=E.useRef(new Set),S=E.useRef(D);S.current=D;const A=E.useRef(null),K=E.useRef(null),N=i==="connected"&&r!==null,ge=N&&x==="ready"&&y.length===0,ve=N&&y.some(re=>`${re.provider}/${re.id}`===r.model),fe=N&&r.idle&&!V,Ne=D.length===0&&["/compact","/new","/model"].includes(R.trim()),Ee=fe&&x==="ready"&&(ve||Ne)&&(R.trim().length>0||D.length>0)&&D.every(re=>re.status==="ready"),ze=N&&!r.idle&&!V,Ue=E.useMemo(()=>{const re=new Map;for(const be of[...Pw(),...m])re.has(be.name)||re.set(be.name,be);return[...re.values()].sort((be,Q)=>be.name.localeCompare(Q.name))},[m,P]),Oe=$==="slash"?R.slice(1).toLowerCase():"",rt=$===null?[]:Ue.filter(re=>re.name.toLowerCase().includes(Oe));E.useEffect(()=>(L([]),te(""),B(null),()=>{for(const re of S.current)ne.current.add(re.key);for(const re of z.current.values())re.abort();for(const re of S.current)re.receipt&&u(re.receipt.id).catch(()=>{});z.current.clear()}),[r==null?void 0:r.sessionId]),E.useEffect(()=>{if($===null)return;const re=be=>{var Q;be.target instanceof Node&&!((Q=A.current)!=null&&Q.contains(be.target))&&B(null)};return document.addEventListener("pointerdown",re,!0),()=>document.removeEventListener("pointerdown",re,!0)},[$]);const Et=async re=>{var be;if($==="slash"&&["model","compact","new"].includes(re.name)&&j(""),B(null),re.name==="model"){Y(Q=>Q+1);return}if(re.name==="compact"||re.name==="new"){b(!0);try{await(re.name==="compact"?f():p())}catch{}finally{b(!1)}return}j(`/${re.name} `),(be=K.current)==null||be.focus()},Rt=E.useCallback((re,be)=>{const Q=new AbortController;z.current.set(re,Q),s(be,Q.signal).then(xe=>{if(ne.current.has(re)){u(xe.id).catch(()=>{});return}L(Me=>Me.map(st=>st.key===re?{...st,status:"ready",receipt:xe,error:void 0}:st))}).catch(xe=>{if(ne.current.has(re))return;const Me=xe instanceof Error?xe.message:_("上传失败","Upload failed");te(Me),L(st=>st.map(He=>He.key===re?{...He,status:"error",error:Me}:He))}).finally(()=>{z.current.get(re)===Q&&z.current.delete(re)})},[s,u]),At=re=>{var be;ne.current.add(re.key),(be=z.current.get(re.key))==null||be.abort(),re.receipt&&u(re.receipt.id).catch(()=>{}),re.status==="error"&&!D.some(Q=>Q.key!==re.key&&Q.status==="error")&&te(""),L(Q=>Q.filter(xe=>xe.key!==re.key))},jt=E.useCallback(re=>{if(!fe||re.length===0)return;const be=Math.max(0,20-D.length),Q=re.slice(0,be).filter(Me=>Me.size>0&&Me.size<=20*1024*1024);Q.length!==re.length?te(_("最多添加 20 个文件,单个文件不得超过 20 MB 且不能为空","Add up to 20 nonempty files, each no larger than 20 MB")):te("");const xe=Q.map(Me=>({key:crypto.randomUUID(),file:Me,status:"uploading"}));L(Me=>[...Me,...xe]),xe.forEach(Me=>Rt(Me.key,Me.file))},[D.length,fe,Rt]);E.useEffect(()=>{const re=He=>{var X;return((X=He.dataTransfer)==null?void 0:X.types.includes("Files"))??!1},be=()=>{I.current=0,O(!1)},Q=He=>{re(He)&&(He.preventDefault(),I.current++,O(!0))},xe=He=>{re(He)&&(He.preventDefault(),He.dataTransfer&&(He.dataTransfer.dropEffect=fe?"copy":"none"))},Me=He=>{re(He)&&(I.current=Math.max(0,I.current-1),I.current===0&&O(!1))},st=He=>{var ae;if(!re(He))return;He.preventDefault();const X=[...((ae=He.dataTransfer)==null?void 0:ae.files)??[]];be(),jt(X)};return document.addEventListener("dragenter",Q),document.addEventListener("dragover",xe),document.addEventListener("dragleave",Me),document.addEventListener("drop",st),window.addEventListener("dragend",be),()=>{document.removeEventListener("dragenter",Q),document.removeEventListener("dragover",xe),document.removeEventListener("dragleave",Me),document.removeEventListener("drop",st),window.removeEventListener("dragend",be)}},[fe,jt]);const Ft=async()=>{if(!Ee)return;b(!0);const re=R.trim(),be=D;Ne||(j(""),L([]),K.current&&(K.current.style.height=""));try{Ne?(re==="/model"?Y(Q=>Q+1):await(re==="/compact"?f():p()),j("")):await o(re,be.map(Q=>Q.receipt.id),be.map(Q=>Q.file))}catch{Ne||(j(re),L(be))}finally{b(!1)}},gn=async()=>{if(ze){b(!0);try{await d()}catch{}finally{b(!1)}}};return c.jsxs("div",{className:`${fn.root} ${e?fn.hero:""}`,children:[W&&c.jsx(Fw,{disabled:!fe,labels:{title:fe?_("松开以上传文件","Drop to upload files"):_("当前无法上传文件","Files cannot be uploaded now"),desc:fe?_("最多 20 个文件,每个不超过 20 MB","Up to 20 files, 20 MB each"):void 0}}),c.jsxs("form",{ref:A,className:fn.card,"data-composer-card":!0,onSubmit:re=>{re.preventDefault(),Ft()},children:[$!==null&&c.jsx(Mw,{commands:rt,active:T,onHover:ee,onPick:re=>{Et(re)}}),c.jsx("input",{ref:J,className:"pi-file-input",type:"file",multiple:!0,tabIndex:-1,"aria-label":_("选择要上传的文件","Choose files to upload"),onChange:re=>{jt([...re.target.files??[]]),re.target.value=""}}),D.length>0&&c.jsx("div",{className:"pi-attachment-rail",role:"group","aria-label":_("待发送附件","Pending attachments"),children:D.map(re=>c.jsx(gw,{file:re.file,status:re.status,error:re.error,onRemove:()=>At(re),onRetry:()=>{te(""),L(be=>be.map(Q=>Q.key===re.key?{...Q,status:"uploading",error:void 0}:Q)),Rt(re.key,re.file)}},re.key))}),c.jsx("div",{className:fn.scroll,"data-input-scroll":!0,children:c.jsx("div",{className:fn.grow,children:c.jsx("textarea",{ref:K,className:"pi-editor","aria-label":_("给当前 Pi 会话发送消息","Send a message to the current Pi session"),placeholder:ge?_("先连接模型,再开始对话","Connect a model to start chatting"):N&&x==="ready"&&!ve?_("先选择模型,再开始对话","Choose a model to start chatting"):N?_("给 Pi 发送消息","Message Pi"):_("打开 Pi 中 /web 给出的完整地址","Open the full address provided by /web in Pi"),value:R,onChange:re=>{const be=re.target.value;j(be),/^\/[^\s]*$/.test(be)?(B("slash"),ee(0)):$==="slash"&&B(null),re.target.style.height="auto",re.target.style.height=`${Math.min(re.target.scrollHeight,336)}px`},onPaste:re=>{const be=[...re.clipboardData.files];be.length&&(re.preventDefault(),jt(be))},onKeyDown:re=>{if($!==null){if(re.key==="Escape"){re.preventDefault(),B(null);return}if(re.key==="ArrowDown"||re.key==="ArrowUp"){re.preventDefault(),ee(be=>(be+(re.key==="ArrowDown"?1:-1)+rt.length)%Math.max(rt.length,1));return}if(re.key==="Enter"&&rt[T]){re.preventDefault(),Et(rt[T]);return}}re.key==="Enter"&&!re.shiftKey&&!re.nativeEvent.isComposing&&(re.preventDefault(),Ft())}})})}),c.jsxs("div",{className:fn.row,children:[c.jsxs("div",{className:fn.tools,children:[c.jsx("button",{className:fn.add,type:"button","aria-label":_("添加指令","Add command"),title:_("添加指令","Add command"),"aria-haspopup":"listbox","aria-expanded":$!==null,disabled:!fe,onMouseDown:re=>re.preventDefault(),onClick:()=>{var re;B($===null?"button":null),ee(0),(re=K.current)==null||re.focus()},children:c.jsx(G1,{size:16})}),c.jsx("button",{className:fn.add,type:"button","aria-label":_("添加文件","Add file"),title:_("添加文件","Add file"),disabled:!fe,onClick:()=>{var re;return(re=J.current)==null?void 0:re.click()},children:c.jsx(k5,{size:16})}),c.jsx("span",{className:"pi-input-context",children:_("当前 Pi 会话","Current Pi session")})]}),c.jsxs("div",{className:fn.trailing,children:[ge?c.jsx("button",{className:"pi-model-setup-trigger",type:"button",onClick:v,children:_("配置模型","Set up a model")}):c.jsx(pC,{openSignal:ie,current:(r==null?void 0:r.model)??null,models:y,disabled:!N||!(r!=null&&r.idle),onSelect:C,thinkingLevel:(r==null?void 0:r.thinkingLevel)??null,thinkingLevels:(r==null?void 0:r.thinkingLevels)??[],onSelectThinkingLevel:k}),ze?c.jsx("button",{className:fn.primary,type:"button","aria-label":_("停止运行","Stop running"),onClick:()=>{gn()},children:c.jsx("svg",{viewBox:"0 0 16 16",width:"16",height:"16","aria-hidden":"true",children:c.jsx("rect",{x:"3",y:"3",width:"10",height:"10",rx:"3",fill:"currentColor"})})}):c.jsx("button",{className:fn.primary,type:"submit","aria-label":_("发送消息","Send message"),disabled:!Ee,children:c.jsx("svg",{viewBox:"0 0 16 16",width:"16",height:"16","aria-hidden":"true",children:c.jsx("path",{d:"M8.3125 0.980183C8.66767 1.0531 8.97902 1.20418 9.2627 1.43233C9.48724 1.61297 9.73029 1.85793 9.97949 2.10714L14.707 6.83468L13.293 8.24874L9 3.95577V15.0417H7V3.95577L2.70703 8.24874L1.29297 6.83468L6.02051 2.10714C6.26971 1.85793 6.51277 1.61297 6.7373 1.43233C6.97662 1.23986 7.28445 1.04402 7.6875 0.980183C7.8973 0.947006 8.1031 0.95516 8.3125 0.980183Z",fill:"currentColor"})})})]})]})]}),Z&&c.jsx("div",{className:"pi-error",role:"alert",children:Z})]})}function Vw({session:e,streaming:r,connection:i,error:o,onSend:s,onLoadImage:u,onUpload:d,onDiscardAttachment:f,onStop:p,onCompact:m,onNewSession:y,commands:x,models:v,modelsStatus:C,onConfigureModels:k,onSetModel:P,onSetThinkingLevel:R}){const[j,V]=E.useState("chat"),[b,$]=E.useState(null),[B,T]=E.useState(null),ee=B&&(e==null?void 0:e.sessionId)===B.sessionId&&e.messages.some(S=>S.role==="user"&&!B.knownIds.has(S.id)&&A3(S.blocks.filter(A=>A.kind==="text").map(A=>A.text).join(`
|
|
91
|
-
`)).text===B.text);E.useEffect(()=>{B&&(ee||e&&e.sessionId!==B.sessionId)&&T(null)},[B,ee,e==null?void 0:e.sessionId]);const ie=B&&!ee&&(e==null?void 0:e.sessionId)===B.sessionId?{id:B.id,role:"user",timestamp:B.timestamp,blocks:[{kind:"text",text:B.text},...B.files.filter(S=>/\.(?:png|jpe?g|webp|gif)$/iu.test(S.name)||/^image\/(?:png|jpeg|webp|gif)$/.test(S.type)).map(()=>({kind:"image",text:""}))],localFiles:B.files}:null,Y=e===null||e.messages.length===0&&r===null&&ie===null,D=async(S,A,K)=>{if(!e)return;const N=`pending-${crypto.randomUUID()}`;T({id:N,sessionId:e.sessionId,text:S,files:K,knownIds:new Set(e.messages.map(ge=>ge.id)),timestamp:new Date().toISOString()});try{await s(S,A)}catch(ge){throw T(ve=>(ve==null?void 0:ve.id)===N?null:ve),ge}},L=E.useRef(null),Z=E.useRef(null),[te,W]=E.useState(0);E.useLayoutEffect(()=>{const S=L.current;if(!S)return;const A=()=>W(S.getBoundingClientRect().width);A();const K=new ResizeObserver(A);return K.observe(S),()=>K.disconnect()},[]),E.useEffect(()=>{!Y&&Z.current&&(Z.current.scrollTop=Z.current.scrollHeight)},[Y,e==null?void 0:e.messages.length,r==null?void 0:r.blocks,ie==null?void 0:ie.id]);const O=(e==null?void 0:e.cwd.split(/[\\/]/).filter(Boolean).at(-1))||_("Pi 工作区","Pi workspace"),I=[...(e==null?void 0:e.messages)??[],...ie?[ie]:[],...r?[r]:[]],J=Ey(I),z=T3(I),ne=S=>({"hero.headline":_("有什么可以帮你?","How can I help?"),"hero.preview":"Pi"})[S]??S;return c.jsxs("div",{ref:L,className:ht.root,"data-phase":Y?"hero":"active",style:{"--piw-conversation-column-width":`${te}px`},children:[e&&!Y&&c.jsxs("header",{className:ht.header,children:[c.jsxs("div",{className:ht.titleRow,children:[c.jsx("div",{className:ht.titleCluster,children:c.jsx("div",{className:ht.crumbs,children:c.jsx("span",{className:`${ht.crumb} ${ht.crumbCurrent}`,children:e.name})})}),c.jsxs("div",{className:ht.headerActions,children:[c.jsx(Q1,{state:i==="connected"?e.idle?"done":"ongoing":"error"}),c.jsx("span",{className:"pi-header-state",children:i==="connected"?e.idle?_("已连接","Connected"):_("运行中","Running"):_("已断开","Disconnected")})]})]}),c.jsxs("div",{className:ht.tabs,role:"tablist","aria-label":_("会话视图","Session views"),children:[c.jsx("button",{className:`${ht.tab} ${j==="chat"?ht.tabActive:""}`,role:"tab","aria-selected":j==="chat",type:"button",onClick:()=>V("chat"),children:_("对话","Chat")}),c.jsx("button",{className:`${ht.tab} ${j==="trajectory"?ht.tabActive:""}`,role:"tab","aria-selected":j==="trajectory",type:"button",onClick:()=>V("trajectory"),children:_("轨迹","Trajectory")})]})]}),c.jsx("div",{className:ht.body,children:c.jsxs("div",{ref:Z,className:ht.scrollBody,"data-conversation-scroll":"",children:[!Y&&c.jsx("div",{className:ht.viewArea,children:j==="chat"?c.jsx("div",{className:n1.root,children:c.jsx("div",{className:n1.scroll,children:c.jsx("div",{className:n1.column,children:c.jsx(c.Fragment,{children:z.map(S=>c.jsx(Bw,{turn:S,results:J,model:(e==null?void 0:e.model)??null,loadImage:u,cwd:e==null?void 0:e.cwd,running:S.messages.some(A=>A.id==="stream"),onInspect:A=>{$(A),V("trajectory")}},S.id))})})})}):c.jsx(Wv,{messages:I,inspectCallId:b})}),c.jsx("div",{className:ht.composerSeat,"data-composer-seat":"",children:c.jsxs("div",{className:`${ht.composerStack} ${Y?ht.composerHero:""}`,children:[Y&&c.jsx(v6,{t:ne,renderSlot:(S,A,K)=>(K==null?void 0:K.fallback)??null}),Y&&c.jsx("div",{className:ht.heroWorkspaceRow,children:c.jsxs("span",{className:bn.workspace,children:[c.jsx(Y1,{size:16}),c.jsx("span",{className:bn.workspaceLabel,children:O})]})}),c.jsx(Hw,{hero:Y,session:e,connection:i,onSend:D,onUpload:d,onDiscardAttachment:f,onStop:p,onCompact:m,onNewSession:y,commands:x,models:v,modelsStatus:C,onConfigureModels:k,onSetModel:P,onSetThinkingLevel:R}),o&&c.jsx("div",{className:"pi-error",role:"alert",children:o})]})})]})})]})}const Uw="_button_cfgyt_4",Ww="_md_cfgyt_24",qw="_sm_cfgyt_30",Zw="_primary_cfgyt_38",Qw="_ghost_cfgyt_47",Gw="_outline_cfgyt_56",Kw="_toolbar_cfgyt_65",Yw="_icon_cfgyt_73",Go={button:Uw,md:Ww,sm:qw,primary:Zw,ghost:Qw,outline:Gw,toolbar:Kw,icon:Yw};function Vr({variant:e="ghost",size:r="md",icon:i,className:o,children:s,...u}){return c.jsxs("button",{type:"button",className:ot(Go.button,Go[e],Go[r],o),...u,children:[i!=null&&c.jsx("span",{className:Go.icon,children:i}),s]})}const Xw="_root_w1urq_2",Jw="_mask_w1urq_14",ek="_dialog_w1urq_22",tk="_content_w1urq_37",nk="_header_w1urq_45",rk="_title_w1urq_53",ik="_close_w1urq_61",lk="_description_w1urq_80",ok="_body_w1urq_89",sk="_footer_w1urq_97",zn={root:Xw,mask:Jw,dialog:ek,content:tk,header:nk,title:rk,close:ik,description:lk,body:ok,footer:sk};function U1({open:e,onClose:r,title:i,closeLabel:o,description:s,children:u,footer:d,className:f,contentClassName:p,headless:m=!1}){return E.useEffect(()=>{if(!e)return;const y=x=>{x.key==="Escape"&&r()};return document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}},[e,r]),e?Nl.createPortal(c.jsxs("div",{className:zn.root,role:"presentation",children:[c.jsx("div",{className:zn.mask,"aria-hidden":"true",onClick:r}),c.jsx("div",{className:ot(zn.dialog,f),role:"dialog","aria-modal":"true","aria-label":i,children:m?u:c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:ot(zn.content,p),children:[c.jsxs("div",{className:zn.header,children:[c.jsx("h2",{className:zn.title,children:i}),c.jsx("button",{type:"button",className:zn.close,"aria-label":o,onClick:r,children:c.jsx(ss,{size:14})})]}),s!==void 0&&s!==""&&c.jsx("p",{className:zn.description,children:s}),u!==void 0&&c.jsx("div",{className:zn.body,children:u})]}),d!==void 0&&c.jsx("div",{className:zn.footer,children:d})]})})]}),document.body):null}const ak="_dialog_s0tgk_1",uk="_editorScope_s0tgk_21",ck="_header_s0tgk_26",dk="_title_s0tgk_35",fk="_crumbBar_s0tgk_51",pk="_crumbEditZone_s0tgk_65",hk="_pathInput_s0tgk_67",mk="_millerRow_s0tgk_78",gk="_crumbTrail_s0tgk_91",xk="_crumbSeat_s0tgk_101",yk="_crumb_s0tgk_51",vk="_crumbChevron_s0tgk_128",Ck="_crumbEditGlyph_s0tgk_151",wk="_content_s0tgk_187",kk="_column_s0tgk_186",_k="_divider_s0tgk_216",Sk="_rowSeat_s0tgk_222",bk="_row_s0tgk_222",Ek="_rowSelected_s0tgk_247",jk="_rowIcon_s0tgk_252",Lk="_rowIconSelected_s0tgk_257",Nk="_rowName_s0tgk_262",Ik="_rowChevron_s0tgk_274",Pk="_status_s0tgk_279",Mk="_error_s0tgk_280",Tk="_loadingFloat_s0tgk_192",zk="_footerBar_s0tgk_317",Dk="_showHiddenToggle_s0tgk_333",Rk="_showHiddenToggleActive_s0tgk_357",Ak="_footerGap_s0tgk_361",Fk="_footerAction_s0tgk_365",Ok="_createDialog_s0tgk_370",$k="_createBody_s0tgk_376",Bk="_createTitle_s0tgk_383",Hk="_createIn_s0tgk_391",Vk="_createInput_s0tgk_398",Uk="_createActions_s0tgk_416",De={dialog:ak,editorScope:uk,header:ck,title:dk,crumbBar:fk,crumbEditZone:pk,pathInput:hk,millerRow:mk,crumbTrail:gk,crumbSeat:xk,crumb:yk,crumbChevron:vk,crumbEditGlyph:Ck,content:wk,column:kk,divider:_k,rowSeat:Sk,row:bk,rowSelected:Ek,rowIcon:jk,rowIconSelected:Lk,rowName:Nk,rowChevron:Ik,status:Pk,error:Mk,loadingFloat:Tk,footerBar:zk,showHiddenToggle:Dk,showHiddenToggleActive:Rk,footerGap:Ak,footerAction:Fk,createDialog:Ok,createBody:$k,createTitle:Bk,createIn:Hk,createInput:Vk,createActions:Uk};function Ko(e){if(e!==null&&typeof e=="object"&&"rpcError"in e){const r=e.rpcError;if(r!==null&&typeof r=="object"&&"message"in r&&typeof r.message=="string")return r.message}return e instanceof Error?e.message:String(e)}const Wk=300,qk=200,Zk=250;function E1(e,r){const i=e.crumbs.findIndex(s=>s.path===e.home);if(i===-1)return e.crumbs;const o=e.crumbs.slice(i+1);return[{name:r,path:e.home,hidden:!1},...o]}function ls(e){return e.home.includes("\\")?"\\":"/"}function Qk(e){const r=ls(e);return e.path.endsWith(r)?e.path:`${e.path}${r}`}function Gk(e,r){const i=ls(e)==="\\"?Math.max(r.lastIndexOf("\\"),r.lastIndexOf("/")):r.lastIndexOf("/");return i===-1?null:r.slice(0,i+1)}function ud(e,r,i){const o=Gk(e,r);if(o===null)return{directory:null,tail:null};const s=o===Qk(e)||i!==null&&i.directory===o&&i.landed===e.path;return{directory:o,tail:s?r.slice(o.length):null}}function Kk(e,r,i,o){const s=o===null?"":o.toLowerCase(),u=p=>i||!p.hidden||s.startsWith("."),d=p=>u(p)&&p.name.toLowerCase().startsWith(s),f=s!==""&&e.some(d);return e.filter(p=>p.path===r?!0:f?d(p):i||!p.hidden)}function cd({entries:e,selectedPath:r,busy:i,onPick:o,showHidden:s,filterPrefix:u,pathEditing:d}){const f=Kk(e,r,s,u);return c.jsx("div",{className:De.column,role:"list",children:f.map(p=>{const m=p.path===r;return c.jsx("span",{role:"listitem",className:De.rowSeat,children:c.jsxs("button",{type:"button","aria-current":m||void 0,className:ot(De.row,m&&De.rowSelected),disabled:i,onMouseDown:d?y=>{y.preventDefault()}:void 0,onClick:()=>{o(p)},children:[m?c.jsx(Y1,{size:16,className:De.rowIconSelected}):c.jsx(E5,{size:16,className:De.rowIcon}),c.jsx("span",{className:De.rowName,children:p.name}),c.jsx(es,{size:12,className:De.rowChevron})]})},p.path)})})}function Yk({open:e,listDirectory:r,createDirectory:i,onOpen:o,onClose:s,busy:u,t:d}){var ft,ln;const[f,p]=E.useState(null),[m,y]=E.useState(null),[x,v]=E.useState(null),[C,k]=E.useState(!1),[P,R]=E.useState(!1),[j,V]=E.useState(0),[b,$]=E.useState(null),[B,T]=E.useState(null),[ee,ie]=E.useState(!1),[Y,D]=E.useState(null),[L,Z]=E.useState(!1),[te,W]=E.useState(null),O=E.useRef(0),I=E.useRef(null),J=E.useRef(0),z=E.useRef(null),ne=E.useRef(!1);E.useEffect(()=>()=>{var de;O.current+=1,J.current+=1,(de=I.current)==null||de.abort()},[]);const S={onCompositionStart:()=>{ne.current=!0},onCompositionEnd:()=>{ne.current=!1}},A=E.useCallback(()=>{var de;return(de=I.current)==null||de.abort(),I.current=null,++O.current},[]),K=E.useCallback(()=>{R(!1),V(de=>de+1)},[]),N=E.useCallback(de=>{const Te=A(),Ge=new AbortController;return I.current=Ge,K(),{seq:Te,scan:r(de,Ge.signal)}},[A,K,r]),ge=E.useCallback(de=>{const Te=new AbortController;return I.current=Te,K(),r(de,Te.signal)},[K,r]),ve=E.useRef(!1),fe=E.useRef({parent:null,child:null});E.useEffect(()=>{fe.current={parent:f,child:x}},[f,x]);const Ne=E.useRef(null),Ee=E.useRef(!1),ze=E.useCallback((de,Te)=>{const{seq:Ge,scan:Qe}=N(de);k(!0),Te.announce&&$(null);const Ot=()=>{if(k(!1),Te.closeEditor){T(null);return}$(null),Ee.current=!0};Qe.then(Xe=>{if(Ge!==O.current)return;!Te.closeEditor&&de!==void 0&&(Ne.current={directory:de,landed:Xe.path});let _r=!1;const An=()=>{_r||Ge!==O.current||(_r=!0,p(Xe),y(null),v(null),Ot())};if(E1(Xe,"").length<2){An();return}const Fn=Xe.crumbs.at(-2);if(Fn===void 0){An();return}ge(Fn.path).then(jn=>{if(Ge!==O.current)return;const Il=ls(jn),Si=Sr=>Il==="\\"?Sr.toLowerCase():Sr,bi=jn.entries.find(Sr=>Si(Sr.path)===Si(Xe.path));if(bi===void 0){An();return}_r=!0,p(jn),y(bi),v(Xe),Ot()},()=>{An()}),Te.closeEditor&&window.setTimeout(An,qk)},Xe=>{Ge===O.current&&(k(!1),Te.announce&&$(Ko(Xe)))})},[N,ge]),Ue=E.useCallback(de=>{ze(de,{closeEditor:!0,announce:!0})},[ze]),Oe=E.useRef(!1),rt=E.useRef(!1),Et=E.useRef(null),Rt=E.useRef(null),At=E.useCallback(de=>{const{seq:Te,scan:Ge}=N(de.path);B!==null&&(Oe.current=!0),T(null),y(de),v(null),k(!0),$(null),Ge.then(Qe=>{Te===O.current&&(v(Qe),k(!1))},Qe=>{Te===O.current&&(k(!1),$(Ko(Qe)),y(null),rt.current=!0)})},[N,B]),jt=E.useCallback(de=>{ze(de,{closeEditor:!1,announce:!1})},[ze]),Ft=E.useCallback(()=>{A(),k(!1),T(null),$(null),x===null&&y(null),f===null&&Ue()},[A,x,f,Ue]),gn=E.useCallback(de=>{x!==null&&(p(x),At(de))},[x,At]);E.useEffect(()=>{if(J.current+=1,e){p(null),y(null),v(null),Z(!1),ie(!1),Ue();return}A(),k(!1),$(null),T(null),D(null),W(null),Oe.current=!1,rt.current=!1},[e,Ue,A]);const re=(m==null?void 0:m.path)??(f==null?void 0:f.path)??null,be=(m==null?void 0:m.name)??(f===null?"":((ft=E1(f,d("browser.home")).at(-1))==null?void 0:ft.name)??f.path),Q=()=>{if(re===null||Y===null||L)return;const de=Y;if(de.trim()==="")return;Z(!0),W(null);const Te=J.current;i(re,de).then(Ge=>{if(Te!==J.current)return;Z(!1),D(null);const{seq:Qe,scan:Ot}=N(re);k(!0),$(null),Ot.then(Xe=>{Qe===O.current&&(p(Xe),k(!1),At({name:de,path:Ge,hidden:!1}))},Xe=>{Qe===O.current&&(k(!1),$(Ko(Xe)))})},Ge=>{Te===J.current&&(Z(!1),W(Ko(Ge)))})};E.useEffect(()=>{if(!C){R(!1);return}const de=window.setTimeout(()=>{R(!0)},Wk);return()=>{window.clearTimeout(de)}},[C,j]),E.useEffect(()=>{if(B===null)return;const de=window.setTimeout(()=>{if(ve.current)return;const Te=fe.current.child??fe.current.parent;if(Te===null)return;const{directory:Ge,tail:Qe}=ud(Te,B,Ne.current);Ge===null||Qe!==null||jt(Ge)},Zk);return()=>{window.clearTimeout(de)}},[B,jt]);const xe=x??f,Me=xe===null||B===null?null:ud(xe,B,Ne.current).tail,st=xe===null?[]:E1(xe,d("browser.home")),He=(ln=st.at(-1))==null?void 0:ln.path;E.useEffect(()=>{const de=z.current;de!==null&&(de.scrollLeft=de.scrollWidth)},[He]);const X=E.useRef(null),ae=x==null?void 0:x.path;if(E.useEffect(()=>{const de=X.current;de!==null&&ae!==void 0&&(de.scrollLeft=de.scrollWidth)},[ae]),E.useEffect(()=>{var de;if(Ee.current&&(Ee.current=!1,document.activeElement===document.body&&((de=Et.current)==null||de.focus())),B===null){if(Oe.current){Oe.current=!1,rt.current=!1;const Te=X.current;if(Te===null)return;const Ge=Te.querySelector('button[aria-current="true"]');if(Ge===null)return;Ge.focus();return}if(rt.current){if(rt.current=!1,document.activeElement!==document.body)return;const Te=Rt.current;if(Te===null)return;Te.focus()}}}),!e)return null;const we=m!==null,je=u||Y!==null,Re=B!==null;return c.jsxs(U1,{open:e,onClose:()=>{Y===null&&!u&&s()},title:d("browser.title"),className:ot(De.dialog),headless:!0,children:[c.jsxs("div",{className:De.editorScope,onKeyDown:de=>{de.key!=="Escape"||B===null||(de.stopPropagation(),rt.current=document.activeElement===Et.current,Ft())},onBlur:de=>{if(B===null||!document.hasFocus())return;const Te=de.currentTarget.closest('[role="dialog"]');Te!==null&&(de.relatedTarget instanceof Node&&Te.contains(de.relatedTarget)||(rt.current=!1,Ft()))},children:[c.jsxs("div",{className:De.header,children:[c.jsx("h2",{className:De.title,children:d("browser.title")}),c.jsx("div",{className:De.crumbBar,children:B===null?c.jsxs(c.Fragment,{children:[c.jsx("span",{className:De.crumbTrail,role:"navigation",ref:z,children:st.map((de,Te)=>c.jsxs("span",{className:De.crumbSeat,children:[Te>0&&c.jsx(es,{size:12,className:De.crumbChevron}),c.jsx("button",{type:"button",className:De.crumb,disabled:je,onClick:()=>{Ue(de.path)},children:de.name})]},de.path))}),c.jsx("button",{type:"button",className:De.crumbEditZone,"aria-label":d("browser.editPath"),title:d("browser.editPath"),disabled:je,ref:Rt,onClick:()=>{if(A(),k(!1),ve.current=!1,f===null){T("");return}const de=(m==null?void 0:m.path)??f.path,Te=ls(f);T(de.endsWith(Te)?de:`${de}${Te}`)},children:c.jsx(C5,{size:14,className:De.crumbEditGlyph})})]}):c.jsx("input",{className:De.pathInput,value:B,"aria-label":d("browser.editPath"),autoFocus:!0,ref:Et,disabled:je,onChange:de=>{A(),k(!1),ve.current=!1,T(de.target.value)},...S,onKeyDown:de=>{de.key==="Enter"&&!ne.current&&(de.preventDefault(),B.trim()!==""&&(rt.current=!0,ve.current=!0,Ue(B)))}})})]}),c.jsxs("div",{className:De.content,children:[c.jsxs("div",{className:De.millerRow,ref:X,children:[f!==null&&c.jsx(cd,{entries:f.entries,selectedPath:(m==null?void 0:m.path)??null,busy:je,onPick:At,showHidden:ee,filterPrefix:x===null?Me:null,pathEditing:Re}),we&&c.jsx("span",{className:De.divider}),we&&x!==null&&c.jsx(cd,{entries:x.entries,selectedPath:null,busy:je,onPick:gn,showHidden:ee,filterPrefix:Me,pathEditing:Re})]}),C&&P&&c.jsx("div",{className:ot(De.status,De.loadingFloat),role:"status",children:d("browser.loading")}),((f==null?void 0:f.truncated)===!0||(x==null?void 0:x.truncated)===!0)&&c.jsx("div",{className:De.status,role:"status",children:d("browser.truncated")}),b!==null&&c.jsx("div",{className:De.error,role:"alert",children:b})]}),c.jsxs("div",{className:De.footerBar,children:[c.jsx(Vr,{variant:"outline",icon:c.jsx(G1,{size:14}),disabled:f===null||C||je||Re,onClick:()=>{D(""),W(null)},children:d("browser.newFolder")}),c.jsxs("button",{type:"button",className:ot(De.showHiddenToggle,ee&&De.showHiddenToggleActive),"aria-pressed":ee,disabled:je,onMouseDown:Re?de=>{de.preventDefault()}:void 0,onClick:()=>{ie(de=>!de)},children:[d("browser.showHidden"),ee&&c.jsx(L1,{size:14})]}),c.jsx("span",{className:De.footerGap}),c.jsx(Vr,{variant:"outline",className:ot(De.footerAction),disabled:je,onClick:s,children:d("browser.cancel")}),c.jsx(Vr,{variant:"primary",className:ot(De.footerAction),disabled:re===null||C||je||Re,onClick:()=>{re!==null&&o(re)},children:d("browser.open")})]})]}),c.jsx(U1,{open:Y!==null,onClose:()=>{L||D(null)},title:d("browser.newFolder"),className:ot(De.createDialog),headless:!0,children:c.jsxs("div",{className:De.createBody,children:[c.jsx("h3",{className:De.createTitle,children:d("browser.newFolder")}),c.jsx("p",{className:De.createIn,children:d("browser.createIn",{name:be})}),c.jsx("input",{className:De.createInput,value:Y??"","aria-label":d("browser.folderName"),placeholder:d("browser.untitledFolder"),autoFocus:!0,disabled:L,onChange:de=>{D(de.target.value)},...S,onKeyDown:de=>{de.key==="Enter"&&!ne.current&&(de.preventDefault(),Q()),de.key==="Escape"&&(de.stopPropagation(),L||D(null))}}),te!==null&&c.jsx("div",{className:De.error,role:"alert",children:te}),c.jsxs("div",{className:De.createActions,children:[c.jsx(Vr,{variant:"outline",disabled:L,onClick:()=>{D(null)},children:d("browser.cancel")}),c.jsx(Vr,{variant:"primary",disabled:L||Y===null||Y.trim()==="",onClick:Q,children:d("browser.create")})]})]})})]})}const Xk="_root_x0rn4_1",Jk="_rail_x0rn4_13",e_="_iconButton_x0rn4_17",t_="_sectionHeader_x0rn4_39",n_="_sectionLabel_x0rn4_59",r_="_sectionLabelHidden_x0rn4_76",i_="_searchSlot_x0rn4_85",l_="_searchSlotExpanded_x0rn4_99",o_="_headerActions_x0rn4_104",s_="_headerActionsHidden_x0rn4_120",a_="_search_x0rn4_85",u_="_searchExpanded_x0rn4_155",c_="_searchButton_x0rn4_166",d_="_searchInput_x0rn4_195",f_="_clearButton_x0rn4_220",p_="_listArea_x0rn4_282",h_="_treeBody_x0rn4_302",m_="_wide_x0rn4_323",g_="_list_x0rn4_282",vt={root:Xk,rail:Jk,iconButton:e_,sectionHeader:t_,sectionLabel:n_,sectionLabelHidden:r_,searchSlot:i_,searchSlotExpanded:l_,headerActions:o_,headerActionsHidden:s_,search:a_,searchExpanded:u_,searchButton:c_,searchInput:d_,clearButton:f_,listArea:p_,treeBody:h_,wide:m_,list:g_},x_="_projectRow_1j5ag_1",y_="_sessionRow_1j5ag_2",v_="_selected_1j5ag_18",C_="_title_1j5ag_112",w_="_slot_1j5ag_124",Or={projectRow:x_,sessionRow:y_,selected:v_,title:C_,slot:w_},k_="_group_sxk9x_1",__="_workspaceLine_sxk9x_2",S_="_workspaceButton_sxk9x_3",b_="_active_sxk9x_4",E_="_folder_sxk9x_5",j_="_chevron_sxk9x_6",L_="_chevronOpen_sxk9x_7",N_="_sessionButton_sxk9x_10",I_="_rowAction_sxk9x_11",P_="_error_sxk9x_14",Sn={group:k_,workspaceLine:__,workspaceButton:S_,active:b_,folder:E_,chevron:j_,chevronOpen:L_,sessionButton:N_,rowAction:I_,error:P_},M_=(e,r)=>({"browser.title":_("选择工作区目录","Select workspace directory"),"browser.home":_("主目录","Home"),"browser.newFolder":_("新建文件夹","New folder"),"browser.folderName":_("文件夹名称","Folder name"),"browser.createIn":_('在"{name}"中新建文件夹','Create folder in "{name}"'),"browser.untitledFolder":_("未命名文件夹","Untitled folder"),"browser.create":_("创建","Create"),"browser.cancel":_("取消","Cancel"),"browser.open":_("打开","Open"),"browser.editPath":_("编辑路径","Edit path"),"browser.loading":_("加载中…","Loading…"),"browser.truncated":_("文件夹过多,仅显示开头部分。","Too many folders; only the first few are shown."),"browser.showHidden":_("显示隐藏文件","Show hidden files")}[e]??e).replace(/\{(\w+)\}/g,(o,s)=>(r==null?void 0:r[s])??"");function T_({wide:e,expandSidebar:r,session:i,workspaces:o,onAdd:s,directoryPickerKind:u,pickDirectory:d,listDirectory:f,createDirectory:p,onRemove:m,onSelectSession:y,onNewSession:x}){const[v,C]=E.useState(!1),[k,P]=E.useState(!1),[R,j]=E.useState(""),[V,b]=E.useState(""),[$,B]=E.useState(!1),[T,ee]=E.useState(""),[ie,Y]=E.useState(new Set);E.useEffect(()=>{o.activeId&&Y(O=>O.has(o.activeId)?O:new Set([...O,o.activeId]))},[o.activeId]);const D=E.useRef(null),L=T.trim().toLocaleLowerCase(),Z=async O=>{P(!0),j("");try{await O()}catch(I){j(I instanceof Error?I.message:_("操作失败","Operation failed"))}finally{P(!1)}},te=async O=>{P(!0);try{await s(O,!1),C(!1)}catch(I){C(!1),b(I instanceof Error?I.message:String(I))}finally{P(!1)}},W=async()=>{if(u!==null){if(e||r(),j(""),u==="browse"){C(!0);return}P(!0);try{const O=await d();O!==null&&await te(O)}catch(O){b(O instanceof Error?O.message:String(O))}finally{P(!1)}}};return c.jsxs("div",{className:`${vt.root} ${e?"":vt.rail}`,children:[c.jsxs("div",{className:vt.sectionHeader,children:[e&&c.jsx("span",{className:`${vt.sectionLabel} ${vt.wide} ${$?vt.sectionLabelHidden:""}`,children:_("工作区","Workspaces")}),e&&c.jsx("div",{className:`${vt.searchSlot} ${$?vt.searchSlotExpanded:""}`,children:c.jsxs("div",{className:`${vt.search} ${$?vt.searchExpanded:""}`,onClick:()=>{var O;B(!0),(O=D.current)==null||O.focus()},children:[c.jsx("button",{type:"button",className:vt.searchButton,"aria-label":_("搜索工作区和会话","Search workspaces and sessions"),"aria-expanded":$,onClick:()=>{var O;B(!0),(O=D.current)==null||O.focus()},children:c.jsx(yd,{size:$?11:14})}),c.jsx("input",{ref:D,className:vt.searchInput,type:"search",placeholder:_("搜索工作区和会话","Search workspaces and sessions"),maxLength:120,value:T,tabIndex:$?0:-1,onChange:O=>ee(O.target.value),onKeyDown:O=>{O.key==="Escape"&&(ee(""),B(!1))}}),$&&c.jsx("button",{type:"button",className:vt.clearButton,"aria-label":_("关闭搜索","Close search"),onClick:O=>{O.stopPropagation(),ee(""),B(!1)},children:c.jsx(K1,{})})]})}),c.jsx("div",{className:`${vt.headerActions} ${e&&$?vt.headerActionsHidden:""}`,children:c.jsx("button",{type:"button",className:vt.iconButton,"aria-label":_("添加工作区","Add workspace"),title:_("添加工作区","Add workspace"),disabled:k||u===null,onClick:()=>{W()},children:c.jsx(b5,{size:e?16:18})})})]}),e&&c.jsx("div",{className:vt.listArea,children:c.jsx("div",{className:vt.treeBody,children:c.jsxs("div",{className:vt.list,role:"tree","aria-label":_("工作区","Workspaces"),children:[o.items.filter(O=>!L||O.title.toLocaleLowerCase().includes(L)||O.path.toLocaleLowerCase().includes(L)||o.sessions.some(I=>I.workspaceId===O.id&&I.name.toLocaleLowerCase().includes(L))).map(O=>{const I=O.id===o.activeId,J=ie.has(O.id)||!!L;return c.jsxs("div",{className:Sn.group,role:"group",children:[c.jsxs("div",{className:Sn.workspaceLine,children:[c.jsxs("button",{type:"button",className:`${Or.projectRow} ${Sn.workspaceButton} ${I?Sn.active:""}`,role:"treeitem","aria-expanded":J,title:O.path,disabled:k,onClick:()=>Y(z=>{const ne=new Set(z);return ne.has(O.id)?ne.delete(O.id):ne.add(O.id),ne}),children:[c.jsxs("span",{className:Or.slot,children:[c.jsx("span",{className:Sn.folder,children:c.jsx(Y1,{size:16})}),c.jsx("span",{className:`${Sn.chevron} ${J?Sn.chevronOpen:""}`,children:c.jsx(wl,{size:14})})]}),c.jsx("span",{className:Or.title,children:O.title})]}),c.jsx("button",{type:"button",className:Sn.rowAction,title:_("新建会话","New session"),"aria-label":_(`在 ${O.title} 新建会话`,`Create a session in ${O.title}`),disabled:k,onClick:()=>{Z(()=>x(O.id))},children:c.jsx(G1,{size:16})}),!I&&c.jsx("button",{type:"button",className:Sn.rowAction,title:_("从列表移除工作区","Remove workspace from list"),"aria-label":_(`移除 ${O.title}`,`Remove ${O.title}`),disabled:k,onClick:()=>{Z(()=>m(O.id))},children:"×"})]}),J&&o.sessions.filter(z=>z.workspaceId===O.id&&(!L||O.title.toLocaleLowerCase().includes(L)||O.path.toLocaleLowerCase().includes(L)||z.name.toLocaleLowerCase().includes(L))).map(z=>c.jsxs("button",{type:"button",className:`${Or.sessionRow} ${Sn.sessionButton} ${I&&(i==null?void 0:i.sessionId)===z.id?Or.selected:""}`,role:"treeitem","aria-current":I&&(i==null?void 0:i.sessionId)===z.id?"page":void 0,disabled:k,onClick:()=>{Z(()=>y(O.id,z.id,z.path))},children:[c.jsx("span",{className:Or.slot,children:c.jsx(Q1,{state:(i==null?void 0:i.sessionId)===z.id&&!i.idle?"ongoing":"done"})}),c.jsx("span",{className:Or.title,children:z.name})]},z.id))]},O.id)}),R&&!v&&c.jsx("p",{className:Sn.error,role:"alert",children:R})]})})}),c.jsx(Yk,{open:v,busy:k,listDirectory:f,createDirectory:p,onOpen:O=>{te(O)},onClose:()=>{k||C(!1)},t:M_}),c.jsx(U1,{open:!!V,onClose:()=>b(""),title:_("无法添加工作区","Could not add workspace"),closeLabel:_("关闭","Close"),footer:c.jsxs(c.Fragment,{children:[c.jsx(Vr,{variant:"outline",onClick:()=>b(""),children:_("取消","Cancel")}),c.jsx(Vr,{variant:"primary",onClick:()=>{b(""),W()},children:_("重新选择","Choose again")})]}),children:c.jsx("div",{role:"alert",children:V})})]})}function dd(e){var f;const r=e.trim();if(!r)return;const i=/^(\d+(?:\.\d+)?)([km])?$/i.exec(r);if(!i)return Number.NaN;const o=(f=i[2])==null?void 0:f.toLowerCase(),s=o==="m"?1e6:o==="k"?1e3:1,u=Number(i[1])*s,d=Math.round(u);return Math.abs(u-d)<1e-6?d:u}function fd(e){return e===void 0?"":!Number.isInteger(e)||e<=0?String(e):e%1e6===0?`${e/1e6}M`:e%1e3===0?`${e/1e3}K`:String(e)}function pd({model:e,position:r,onSave:i,onRemove:o,onCancel:s}){var Z;const[u,d]=E.useState(e.id),[f,p]=E.useState(e.name??""),[m,y]=E.useState(fd(e.contextWindow)),[x,v]=E.useState(fd(e.maxTokens)),[C,k]=E.useState((Z=e.input)!=null&&Z.length?e.input:["text"]),[P,R]=E.useState(!e.id),[j,V]=E.useState(!1),[b,$]=E.useState(!1),[B,T]=E.useState(""),ee=!e.id,ie=!ee&&(e.source==="custom"||e.overridden),Y=async()=>{const te=dd(m),W=dd(x);if(!u.trim()||[te,W].some(O=>O!==void 0&&(!Number.isSafeInteger(O)||O<=0))){T(_("请填写模型 ID,并使用正整数或 K/M 单位填写容量。","Enter a model ID and positive token counts, optionally with K/M suffixes."));return}$(!0),T("");try{await i({id:u.trim(),...f.trim()?{name:f.trim()}:{},...te===void 0?{}:{contextWindow:te},...W===void 0?{}:{maxTokens:W},input:C})}catch(O){T(O instanceof Error?O.message:_("保存失败","Could not save"))}finally{$(!1)}},D=async()=>{$(!0),T("");try{await o()}catch(te){T(te instanceof Error?te.message:_("操作失败","Action failed")),V(!1)}finally{$(!1)}},L=te=>{k(W=>{const O=W.includes(te)?W.filter(I=>I!==te):[...W,te];return O.length?O:W})};return c.jsxs("div",{className:"pi-model-entry",children:[c.jsxs("div",{className:"pi-model-row",children:[c.jsx("input",{"aria-label":`${_("模型 ID","Model ID")} ${r}`,placeholder:_("模型 ID","Model ID"),value:u,disabled:b||!ee&&e.source==="builtin",onFocus:()=>R(!0),onChange:te=>d(te.target.value)}),c.jsx("input",{"aria-label":`${_("显示名称","Display name")} ${r}`,placeholder:_("显示名称","Display name"),value:f,disabled:b,onFocus:()=>R(!0),onChange:te=>p(te.target.value)}),c.jsx("button",{type:"button","aria-label":`${_("模型参数","Model settings")} ${r}`,"aria-expanded":P,onClick:()=>R(!P),children:P?"⌄":"›"})]}),P&&c.jsxs("div",{className:"pi-model-details",children:[c.jsxs("label",{children:[_("上下文窗口","Context window"),c.jsx("input",{"aria-label":`${_("上下文窗口","Context window")} ${r}`,inputMode:"decimal",placeholder:"128K",value:m,disabled:b,onChange:te=>y(te.target.value)})]}),c.jsxs("label",{children:[_("最大输出 token 数","Max output tokens"),c.jsx("input",{"aria-label":`${_("最大输出 token 数","Max output tokens")} ${r}`,inputMode:"decimal",placeholder:"16K",value:x,disabled:b,onChange:te=>v(te.target.value)})]}),c.jsxs("fieldset",{className:"pi-model-input-types",children:[c.jsx("legend",{children:_("输入类型","Input types")}),c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:C.includes("text"),disabled:b||C.length===1&&C.includes("text"),onChange:()=>L("text")}),_("文本","Text")]}),c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:C.includes("image"),disabled:b||C.length===1&&C.includes("image"),onChange:()=>L("image")}),_("图片","Image")]})]}),c.jsxs("div",{className:"pi-model-actions",children:[c.jsx("button",{type:"button",disabled:b,onClick:()=>{Y()},children:b?_("保存中…","Saving…"):_("保存模型","Save model")}),ee&&s&&c.jsx("button",{type:"button",disabled:b,onClick:s,children:_("取消","Cancel")}),ie&&c.jsx("button",{type:"button",disabled:b,onClick:()=>V(!j),children:e.source==="custom"?_("移除模型","Remove model"):_("恢复默认","Restore default")})]}),j&&c.jsxs("div",{className:"pi-model-confirm",children:[c.jsx("span",{children:e.source==="custom"?_("从配置中移除这个模型?","Remove this model from configuration?"):_("撤销这个模型的自定义参数?","Discard this model’s custom settings?")}),c.jsx("button",{type:"button",disabled:b,onClick:()=>{D()},children:_("确认","Confirm")}),c.jsx("button",{type:"button",disabled:b,onClick:()=>V(!1),children:_("取消","Cancel")})]}),B&&c.jsx("p",{className:"pi-settings-error",role:"alert",children:B})]})]})}function z_({providerId:e,getModels:r,updateModel:i}){const[o,s]=E.useState(null),[u,d]=E.useState(""),[f,p]=E.useState(""),[m,y]=E.useState(!1),x=async()=>{d("");try{s(await r(e))}catch(k){throw d(k instanceof Error?k.message:_("无法读取模型目录","Could not load model catalog")),k}};E.useEffect(()=>{x().catch(()=>{})},[e]);const v=async k=>{await i(e,k),y(!1),await x().catch(()=>{})},C=(o==null?void 0:o.models.filter(k=>`${k.id} ${k.name??""}`.toLocaleLowerCase().includes(f.toLocaleLowerCase())))??[];return c.jsxs("section",{className:"pi-provider-models","aria-label":_("模型目录","Model catalog"),children:[c.jsxs("div",{className:"pi-provider-models-head",children:[c.jsx("strong",{children:_("模型目录","Model catalog")}),c.jsxs("span",{children:[(o==null?void 0:o.models.length)??0," ",_("个模型","models")]})]}),(o==null?void 0:o.baseUrl)&&c.jsxs("p",{className:"pi-provider-models-endpoint",title:o.baseUrl,children:[_("API 地址","API URL"),": ",o.baseUrl]}),u&&c.jsxs("p",{className:"pi-settings-error",role:"alert",children:[u," ",o&&c.jsx("button",{type:"button",onClick:()=>{x().catch(()=>{})},children:_("重试读取","Retry")})]}),o?c.jsxs(c.Fragment,{children:[o.models.length>5&&c.jsx("input",{className:"pi-model-search",type:"search","aria-label":_("搜索模型","Search models"),placeholder:_("搜索模型","Search models"),value:f,onChange:k=>p(k.target.value)}),c.jsx("div",{className:"pi-model-list",children:C.map((k,P)=>c.jsx(pd,{model:k,position:P+1,onSave:R=>v({action:"save",originalId:k.id,model:R}),onRemove:()=>v({action:"remove",id:k.id})},`${k.id}:${k.name}:${k.contextWindow}:${k.maxTokens}:${k.overridden}`))}),C.length===0&&!m&&c.jsx("p",{className:"pi-provider-models-empty",children:_("没有匹配的模型","No matching models")}),m&&c.jsx(pd,{model:{id:"",source:"custom",overridden:!1},position:o.models.length+1,onSave:k=>v({action:"save",model:k}),onRemove:async()=>y(!1),onCancel:()=>y(!1)},"new"),!m&&c.jsx("button",{type:"button",className:"pi-model-add",onClick:()=>y(!0),children:_("+ 添加模型","+ Add model")})]}):u?c.jsx("button",{type:"button",className:"pi-model-add",onClick:()=>{x().catch(()=>{})},children:_("重试读取","Retry")}):c.jsx("p",{role:"status",children:_("正在读取模型…","Loading models…")})]})}const hd={id:"",name:"",baseUrl:"",api:"openai-completions",modelId:""};function Hr(e){try{const r=new URL(e);return r.protocol==="https:"||r.protocol==="http:"?r.href:null}catch{return null}}function D_(){let e=null;try{return e=window.open("about:blank","_blank"),e&&(e.opener=null,e.document.title=_("正在准备授权页面","Preparing sign-in"),e.document.body.textContent=_("正在准备授权页面…","Preparing sign-in…")),e}catch{return e==null||e.close(),null}}function md({provider:e,configured:r,busy:i,getProviderModels:o,updateProviderModel:s,onConnect:u}){const[d,f]=E.useState(""),[p,m]=E.useState(""),[y,x]=E.useState(""),[v,C]=E.useState(!0),[k,P]=E.useState(!1),[R,j]=E.useState("");E.useEffect(()=>{let b=!0;return C(!0),o(e.id).then($=>{b&&(m($.baseUrl??""),x($.baseUrl??""),C(!1))}).catch($=>{b&&(C(!1),j($ instanceof Error?$.message:_("无法读取 API 地址","Could not load API URL")))}),()=>{b=!1}},[e.id]);const V=async()=>{const b=d.trim(),$=p.trim();if(!(!b&&!r)){if($&&!Hr($)){j(_("请输入有效的 http 或 https 地址。","Enter a valid HTTP or HTTPS URL."));return}P(!0),j("");try{$!==y&&(await s(e.id,{action:"base_url",baseUrl:$||null}),x($)),b&&(f(""),await u(b))}catch(B){j(B instanceof Error?B.message:_("保存失败","Could not save"))}finally{P(!1)}}};return c.jsxs("form",{className:"pi-provider-key-form",onSubmit:b=>{b.preventDefault(),V()},children:[c.jsxs("label",{children:[_("API Key","API key"),c.jsx("input",{type:"password",autoComplete:"off",maxLength:16384,value:d,onChange:b=>f(b.target.value),placeholder:r?_("已配置,输入新值可替换","Configured; enter a new key to replace"):_("输入 API Key","Enter API key")})]}),c.jsxs("details",{className:"pi-provider-advanced",children:[c.jsx("summary",{children:_("自定义设置","Custom settings")}),c.jsxs("label",{children:[_("API 地址(可选)","API URL (optional)"),c.jsx("input",{type:"url",maxLength:2048,value:p,onChange:b=>m(b.target.value),placeholder:_("使用提供方默认地址","Use provider default URL")})]})]}),c.jsx("button",{type:"submit",disabled:i||k||v||!d.trim()&&(p.trim()===y||!r),children:k?_("保存中…","Saving…"):r?_("保存","Save"):_("连接","Connect")}),R&&c.jsx("p",{className:"pi-settings-error",role:"alert",children:R})]})}function R_({setupMode:e=!1,onReturnToConversation:r,getProviders:i,getProviderModels:o,updateProviderModel:s,logoutProvider:u,addCustomProvider:d,startLogin:f,getLogin:p,getActiveLogin:m,respondLogin:y,cancelLogin:x,refreshModels:v}){var Et,Rt,At,jt,Ft,gn,re,be;const[C,k]=E.useState([]),[P,R]=E.useState(!1),[j,V]=E.useState(e?"builtin":null),[b,$]=E.useState(""),[B,T]=E.useState(null),[ee,ie]=E.useState(null),[Y,D]=E.useState(hd),[L,Z]=E.useState(null),[te,W]=E.useState(""),[O,I]=E.useState(""),[J,z]=E.useState(!1),ne=E.useRef(null);E.useEffect(()=>{e&&V(Q=>Q??"builtin")},[e]),E.useEffect(()=>{let Q=!0;return m().then(xe=>{Q&&xe&&Z(Me=>Me??xe)}).catch(()=>{}),()=>{var xe,Me;Q=!1,(Me=(xe=ne.current)==null?void 0:xe.popup)==null||Me.close()}},[]);const S=async()=>{k(await i()),R(!0)},A=async Q=>{var st,He,X,ae;const xe=ne.current,Me=Q.authorization??(((st=Q.event)==null?void 0:st.type)==="auth_url"||((He=Q.event)==null?void 0:He.type)==="device_code"?Q.event:void 0);if((xe==null?void 0:xe.id)===Q.id&&Me){const we=Hr(Me.type==="auth_url"?Me.url:Me.verificationUri);if(we){try{xe.popup&&!xe.popup.closed?xe.popup.location.replace(we):window.open(we,"_blank","noopener,noreferrer")}catch{(X=xe.popup)==null||X.close()}ne.current=null}}(xe==null?void 0:xe.id)===Q.id&&(Q.status==="done"||Q.status==="error"||Q.status==="cancelled")&&((ae=xe.popup)==null||ae.close(),ne.current=null),Z(Q),Q.status==="done"&&(V(null),T(null),await Promise.all([S(),v()]))};E.useEffect(()=>{S().catch(Q=>{R(!0),I(Q instanceof Error?Q.message:_("无法读取模型提供方","Could not load model providers"))})},[]),E.useEffect(()=>{if(!L||L.status==="done"||L.status==="error"||L.status==="cancelled")return;let Q=!0;const xe=window.setInterval(()=>{p(L.id).then(async Me=>{Q&&await A(Me)}).catch(Me=>{Q&&I(Me instanceof Error?Me.message:_("登录状态不可用","Login status is unavailable"))})},700);return()=>{Q=!1,window.clearInterval(xe)}},[L==null?void 0:L.id,L==null?void 0:L.status]);const K=J||(L==null?void 0:L.status)==="running"||(L==null?void 0:L.status)==="waiting",N=(Et=C.find(Q=>Q.id===(L==null?void 0:L.providerId)))==null?void 0:Et.name,ge=C.filter(Q=>Q.configured),ve=C.filter(Q=>!Q.configured&&Q.methods.length>0),fe=ve.find(Q=>Q.id===b)??(e?ve.find(Q=>Q.id==="openai-codex")??ve.find(Q=>Q.methods.includes("oauth")):void 0)??ve.find(Q=>Q.id==="openai")??ve[0],Ne=async(Q,xe,Me)=>{var st,He;ne.current=xe==="oauth"?{id:null,popup:D_()}:null,z(!0),I(""),W("");try{const{id:X}=await f(Q,xe,Me);ne.current&&(ne.current.id=X),await A(await p(X))}catch(X){(He=(st=ne.current)==null?void 0:st.popup)==null||He.close(),ne.current=null,I(X instanceof Error?X.message:_("无法开始登录","Could not start sign-in")),L||m().then(ae=>{ae&&Z(ae)}).catch(()=>{})}finally{z(!1)}},Ee=async Q=>{if(L){z(!0),I("");try{await y(L.id,Q),W(""),await A(await p(L.id))}catch(xe){I(xe instanceof Error?xe.message:_("提交失败","Submission failed"))}finally{z(!1)}}},ze=async()=>{z(!0),I("");try{await d(Y);const Q=Y.id;await S(),$(Q),V("builtin"),D(hd)}catch(Q){I(Q instanceof Error?Q.message:_("无法添加自定义提供方","Could not add custom provider"))}finally{z(!1)}},Ue=async Q=>{z(!0),I("");try{await u(Q),await S(),ie(null),T(null)}catch(xe){I(xe instanceof Error?xe.message:_("移除认证失败","Could not remove credentials"))}finally{z(!1)}},Oe=(L==null?void 0:L.authorization)??(((Rt=L==null?void 0:L.event)==null?void 0:Rt.type)==="auth_url"||((At=L==null?void 0:L.event)==null?void 0:At.type)==="device_code"?L.event:void 0),rt=(L==null?void 0:L.status)==="waiting"&&L.prompt&&L.prompt.type!=="select"&&c.jsxs("form",{onSubmit:Q=>{Q.preventDefault(),te.trim()&&Ee(te.trim())},children:[c.jsx("label",{htmlFor:"pi-provider-answer",children:L.prompt.message}),c.jsxs("div",{children:[c.jsx("input",{id:"pi-provider-answer",type:L.prompt.type==="secret"?"password":"text",autoComplete:"off",placeholder:L.prompt.placeholder,value:te,onChange:Q=>W(Q.target.value)}),c.jsx("button",{type:"submit",disabled:J||!te.trim(),children:_("继续","Continue")})]})]});return c.jsxs("div",{className:"pi-settings-content",children:[c.jsx("h2",{children:e?_("先连接一个模型","Connect a model to begin"):_("模型","Models")}),c.jsx("p",{className:"pi-settings-intro",children:e?_("当前没有可用模型。选择提供方完成认证,再在会话中选择模型;也可以添加自定义提供方。","No models are available yet. Sign in to a provider, then choose a model in the conversation. You can also add a custom provider."):_("已接入的提供方显示在这里。添加新的提供方后,即可在会话中选择其模型。","Connected providers appear here. Add a provider to use its models in a conversation.")}),O&&c.jsx("p",{className:"pi-settings-error",role:"alert",children:O}),L&&c.jsxs("section",{className:"pi-provider-flow","aria-label":_("模型登录","Model sign-in"),children:[c.jsxs("div",{className:"pi-provider-flow-head",children:[c.jsxs("strong",{children:[_("模型登录","Model sign-in"),N?` · ${N}`:""]}),c.jsx("button",{type:"button",onClick:()=>{var Q,xe;((Q=ne.current)==null?void 0:Q.id)===L.id&&((xe=ne.current.popup)==null||xe.close(),ne.current=null),L.status==="running"||L.status==="waiting"?x(L.id).finally(()=>Z(null)):Z(null)},children:L.status==="running"||L.status==="waiting"?_("取消","Cancel"):_("关闭","Close")})]}),L.status==="done"&&c.jsxs("div",{role:"status",children:[c.jsx("p",{children:_("已连接。现在可以在会话中选择该提供方的模型。","Connected. You can now select this provider’s models in a conversation.")}),c.jsx("button",{type:"button",onClick:r,children:_("返回会话选择模型","Return to conversation and choose a model")})]}),L.status==="error"&&c.jsx("p",{role:"alert",children:L.error}),L.status==="running"&&!Oe&&c.jsx("p",{role:"status",children:_("正在等待提供方响应…","Waiting for the provider…")}),((jt=L.event)==null?void 0:jt.type)==="info"&&c.jsxs("p",{children:[L.event.message,(Ft=L.event.links)==null?void 0:Ft.map(Q=>{const xe=Hr(Q.url);return xe&&c.jsx("a",{href:xe,target:"_blank",rel:"noopener noreferrer",children:Q.label??_("打开链接","Open link")},xe)})]}),((gn=L.event)==null?void 0:gn.type)==="progress"&&(Oe==null?void 0:Oe.type)!=="auth_url"&&c.jsx("p",{children:L.event.message}),(Oe==null?void 0:Oe.type)==="auth_url"&&c.jsxs("p",{role:"status",children:[_("请在授权页面完成登录;若页面未自动打开,请点击右侧链接。完成后这里会自动更新。","Complete sign-in on the authorization page. If it did not open, use the link. This page will update automatically.")," ",Hr(Oe.url)&&c.jsx("a",{href:Hr(Oe.url),target:"_blank",rel:"noopener noreferrer",children:_("打开授权页面","Open authorization page")})]}),(Oe==null?void 0:Oe.type)==="device_code"&&c.jsxs("p",{children:[_("在","On the")," ",Hr(Oe.verificationUri)&&c.jsx("a",{href:Hr(Oe.verificationUri),target:"_blank",rel:"noopener noreferrer",children:_("验证页面","verification page")})," ",_("输入代码","enter code")," ",c.jsx("code",{children:Oe.userCode})]}),L.status==="waiting"&&((re=L.prompt)==null?void 0:re.type)==="select"&&c.jsxs("div",{className:"pi-provider-options",children:[c.jsx("p",{children:L.prompt.message}),L.prompt.options.map(Q=>c.jsxs("button",{type:"button",disabled:J,onClick:()=>{Ee(Q.id)},children:[Q.label,Q.description&&c.jsx("small",{children:Q.description})]},Q.id))]}),rt&&((be=L.prompt)==null?void 0:be.type)==="manual_code"&&(Oe==null?void 0:Oe.type)==="auth_url"?c.jsxs("details",{className:"pi-provider-manual-login",children:[c.jsx("summary",{children:_("无法自动完成?手动输入授权码","Can't finish automatically? Enter an authorization code")}),rt]}):rt]}),c.jsxs("section",{className:"pi-provider-list","aria-label":_("已接入的模型提供方","Connected model providers"),children:[ge.map(Q=>c.jsxs("div",{className:"pi-provider-card",children:[c.jsxs("div",{className:"pi-provider-card-head",children:[c.jsxs("span",{className:"pi-provider-name",children:[Q.name,c.jsx("span",{className:"pi-provider-dot",role:"img","aria-label":_("已配置认证","Authentication configured")}),c.jsx("small",{children:_("已配置","Configured")})]}),c.jsx("button",{type:"button",disabled:K,"aria-label":`${_("编辑","Edit")} ${Q.name}`,"aria-expanded":B===Q.id,onClick:()=>{V(null),T(B===Q.id?null:Q.id)},children:_("编辑","Edit")})]}),B===Q.id&&c.jsxs("div",{className:"pi-provider-editor",children:[Q.methods.includes("api_key")&&c.jsx(md,{provider:Q,configured:!0,busy:!!K,getProviderModels:o,updateProviderModel:s,onConnect:xe=>Ne(Q.id,"api_key",xe)},Q.id),Q.methods.includes("oauth")&&c.jsx("div",{className:"pi-provider-methods",children:c.jsx("button",{type:"button",disabled:!!K,onClick:()=>{Ne(Q.id,"oauth")},children:_("网页登录","Browser sign-in")})}),c.jsx(z_,{providerId:Q.id,getModels:o,updateModel:s}),Q.storedCredential&&c.jsx("div",{className:"pi-provider-credential-action",children:c.jsx("button",{type:"button",disabled:K,onClick:()=>ie(Q.id),children:_("移除认证","Remove credentials")})}),!Q.storedCredential&&c.jsx("p",{className:"pi-provider-auth-source",children:_("当前认证来自环境变量、模型配置或其他运行时来源,请在对应位置移除。","Authentication comes from an environment variable, model configuration, or another runtime source. Remove it at its source.")}),ee===Q.id&&c.jsxs("div",{className:"pi-model-confirm",role:"group","aria-label":_("确认移除认证","Confirm credential removal"),children:[c.jsx("span",{children:_("移除本机保存的认证后,该模型可能无法继续使用。","Removing stored credentials may make this provider unavailable.")}),c.jsx("button",{type:"button",disabled:J,onClick:()=>{Ue(Q.id)},children:_("确认移除","Remove")}),c.jsx("button",{type:"button",disabled:J,onClick:()=>ie(null),children:_("取消","Cancel")})]})]})]},Q.id)),P&&ge.length===0&&c.jsx("p",{className:"pi-provider-empty",children:_("尚未接入提供方","No providers connected yet")}),!P&&c.jsx("p",{role:"status",children:_("正在读取模型提供方…","Loading model providers…")})]}),j==="builtin"&&c.jsxs("section",{className:"pi-provider-add-card","aria-label":_("添加提供方","Add provider"),children:[c.jsxs("div",{className:"pi-provider-flow-head",children:[c.jsx("strong",{children:_("添加提供方","Add provider")}),c.jsx("button",{type:"button",onClick:()=>V(null),children:_("关闭","Close")})]}),fe?c.jsxs(c.Fragment,{children:[c.jsx("label",{htmlFor:"pi-provider-select",children:_("提供方","Provider")}),c.jsx("select",{id:"pi-provider-select",value:fe.id,onChange:Q=>$(Q.target.value),children:ve.map(Q=>c.jsx("option",{value:Q.id,children:Q.name},Q.id))}),fe.methods.includes("api_key")&&c.jsx(md,{provider:fe,configured:!1,busy:!!K,getProviderModels:o,updateProviderModel:s,onConnect:Q=>Ne(fe.id,"api_key",Q)},fe.id),fe.methods.includes("oauth")&&c.jsx("div",{className:"pi-provider-methods",children:c.jsx("button",{type:"button",disabled:!!K,onClick:()=>{Ne(fe.id,"oauth")},children:_("网页登录","Browser sign-in")})}),c.jsx("p",{children:_("认证完成后,可在提供方的“编辑”中调整模型目录。","After sign-in, open the provider’s Edit panel to adjust its model catalog.")})]}):c.jsx("p",{children:_("没有可添加的提供方。","No providers can be added.")})]}),j==="custom"&&c.jsxs("section",{className:"pi-provider-add-card","aria-label":_("添加自定义提供方","Add custom provider"),children:[c.jsxs("div",{className:"pi-provider-flow-head",children:[c.jsx("strong",{children:_("添加自定义提供方","Add custom provider")}),c.jsx("button",{type:"button",onClick:()=>V(null),children:_("关闭","Close")})]}),c.jsx("p",{children:_("适用于兼容 Pi 已支持协议的模型服务。保存后再添加 API Key;密钥不会写入 models.json。","For model services compatible with Pi’s supported protocols. Add an API key after saving; it will not be written to models.json.")}),c.jsxs("form",{className:"pi-provider-custom-form",onSubmit:Q=>{Q.preventDefault(),ze()},children:[c.jsxs("label",{children:[_("名称","Name"),c.jsx("input",{required:!0,maxLength:100,value:Y.name,onChange:Q=>D({...Y,name:Q.target.value}),placeholder:_("我的模型服务","My model service")})]}),c.jsxs("label",{children:[_("提供方 ID","Provider ID"),c.jsx("input",{required:!0,maxLength:64,value:Y.id,onChange:Q=>D({...Y,id:Q.target.value}),placeholder:"my-provider"})]}),c.jsxs("label",{children:[_("接口地址","API URL"),c.jsx("input",{required:!0,type:"url",maxLength:2048,value:Y.baseUrl,onChange:Q=>D({...Y,baseUrl:Q.target.value}),placeholder:"https://api.example.com/v1"})]}),c.jsxs("label",{children:[_("接口协议","API protocol"),c.jsxs("select",{value:Y.api,onChange:Q=>D({...Y,api:Q.target.value}),children:[c.jsx("option",{value:"openai-completions",children:"OpenAI Chat Completions"}),c.jsx("option",{value:"openai-responses",children:"OpenAI Responses"}),c.jsx("option",{value:"anthropic-messages",children:"Anthropic Messages"})]})]}),c.jsxs("label",{children:[_("模型 ID","Model ID"),c.jsx("input",{required:!0,maxLength:200,value:Y.modelId,onChange:Q=>D({...Y,modelId:Q.target.value}),placeholder:"model-name"})]}),c.jsx("button",{type:"submit",disabled:J,children:_("保存并继续","Save and continue")})]})]}),!j&&c.jsxs("div",{className:"pi-provider-add-actions",children:[c.jsx("button",{type:"button",disabled:!P||ve.length===0||K,onClick:()=>{T(null),V("builtin"),$("")},children:_("+ 添加提供方","+ Add provider")}),c.jsx("button",{type:"button",disabled:K,onClick:()=>{T(null),V("custom")},children:_("+ 添加自定义提供方","+ Add custom provider")})]})]})}const yu="pi-web-theme",os=new Set,F3=window.matchMedia("(prefers-color-scheme: dark)");let bl=O3();function O3(){try{const e=localStorage.getItem(yu);if(e==="light"||e==="dark"||e==="system")return e}catch{}return"system"}function Xo(){document.body.toggleAttribute("data-ds-dark-theme",bl==="dark"||bl==="system"&&F3.matches)}function A_(){Xo(),F3.addEventListener("change",Xo),window.addEventListener("storage",e=>{e.key===yu&&(bl=O3(),Xo(),os.forEach(r=>r()))})}function F_(e){bl=e;try{localStorage.setItem(yu,e)}catch{}Xo(),os.forEach(r=>r())}function O_(){return E.useSyncExternalStore(e=>(os.add(e),()=>{os.delete(e)}),()=>bl)}const $_="_group_8jvbt_4",B_="_title_8jvbt_12",H_="_cubeRow_8jvbt_19",V_="_themeCube_8jvbt_29",U_="_selected_8jvbt_48",gl={group:$_,title:B_,cubeRow:H_,themeCube:V_,selected:U_};function W_(){const e=O_(),r=kr(),i=[{id:"light",label:r==="zh"?"浅色":"Light",Icon:j5},{id:"dark",label:r==="zh"?"深色":"Dark",Icon:L5},{id:"system",label:r==="zh"?"跟随系统":"System",Icon:N5}];return c.jsxs("div",{className:gl.group,children:[c.jsx("div",{className:gl.title,children:r==="zh"?"外观":"Appearance"}),c.jsx("div",{className:gl.cubeRow,children:i.map(({id:o,label:s,Icon:u})=>c.jsxs("button",{type:"button",className:ot(gl.themeCube,e===o&&gl.selected),"aria-pressed":e===o,onClick:()=>F_(o),children:[c.jsx(u,{}),s]},o))})]})}const q_="_row_14tot_1",Z_="_title_14tot_9",Q_="_selectorWrap_14tot_17",G_="_selector_14tot_17",K_="_option_14tot_37",Y_="_chevron_14tot_38",X_="_menu_14tot_40",$r={row:q_,title:Z_,selectorWrap:Q_,selector:G_,option:K_,chevron:Y_,menu:X_},xi=[{id:"zh",label:"中文"},{id:"en",label:"English"}];function J_(){var f;const e=kr(),[r,i]=E.useState(!1),o=E.useRef(null),s=E.useRef(null),u=E.useRef(null);E.useEffect(()=>{var y;if(!r)return;(y=u.current)==null||y.focus();const p=x=>{var v;(v=o.current)!=null&&v.contains(x.target)||i(!1)},m=x=>{var v;x.key==="Escape"&&(x.preventDefault(),x.stopImmediatePropagation(),i(!1),(v=s.current)==null||v.focus())};return document.addEventListener("pointerdown",p),document.addEventListener("keydown",m),()=>{document.removeEventListener("pointerdown",p),document.removeEventListener("keydown",m)}},[r]);const d=p=>{var m;zg(p),i(!1),(m=s.current)==null||m.focus()};return c.jsxs("div",{className:$r.row,ref:o,children:[c.jsx("div",{className:$r.title,children:e==="zh"?"语言":"Language"}),c.jsxs("div",{className:$r.selectorWrap,children:[c.jsxs("button",{ref:s,type:"button",className:$r.selector,"aria-label":e==="zh"?"语言":"Language","aria-haspopup":"menu","aria-expanded":r,onClick:()=>i(p=>!p),children:[(f=xi.find(p=>p.id===e))==null?void 0:f.label,c.jsx("svg",{className:$r.chevron,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:c.jsx("path",{d:"m3.5 5.25 3.5 3.5 3.5-3.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})]}),r&&c.jsx("div",{className:$r.menu,role:"menu","aria-label":e==="zh"?"选择语言":"Choose language",onKeyDown:p=>{var x,v;if(p.key!=="ArrowDown"&&p.key!=="ArrowUp")return;p.preventDefault();const m=xi.findIndex(C=>{var k;return C.id===((k=document.activeElement)==null?void 0:k.dataset.locale)}),y=xi[(m+(p.key==="ArrowDown"?1:xi.length-1))%xi.length];(v=(x=o.current)==null?void 0:x.querySelector(`[data-locale="${y.id}"]`))==null||v.focus()},children:xi.map(p=>c.jsxs("button",{ref:p.id===e?u:void 0,type:"button",role:"menuitemradio","aria-checked":p.id===e,"data-locale":p.id,className:$r.option,onClick:()=>d(p.id),children:[c.jsx("span",{children:p.label}),p.id===e&&c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:c.jsx("path",{d:"m3 8 3.2 3.2L13 4.5",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round"})})]},p.id))})]})]})}const eS="_overlay_f00qz_61",tS="_mask_f00qz_70",nS="_panel_f00qz_83",rS="_nav_f00qz_105",iS="_navTitle_f00qz_116",lS="_navList_f00qz_125",oS="_navCell_f00qz_133",sS="_active_f00qz_156",aS="_navIcon_f00qz_160",uS="_navLabel_f00qz_164",cS="_content_f00qz_173",dS="_header_f00qz_181",fS="_actions_f00qz_192",pS="_close_f00qz_202",hS="_options_f00qz_82",Ct={overlay:eS,mask:tS,panel:nS,nav:rS,navTitle:iS,navList:lS,navCell:oS,active:sS,navIcon:aS,navLabel:uS,content:cS,header:dS,actions:fS,close:pS,options:hS};function mS(e){return e==="general"?c.jsx(vd,{className:Ct.navIcon,size:16}):e==="models"?c.jsx(Cd,{className:Ct.navIcon,size:16}):e==="packages"?c.jsx(P5,{className:Ct.navIcon,size:16}):e==="extensions"?c.jsx(S5,{className:Ct.navIcon,size:16}):c.jsx(I5,{className:Ct.navIcon,size:16})}function gS({title:e,sections:r,activeId:i,onSelect:o,onClose:s,children:u}){const d=kr(),f=E.useId(),p=E.useRef(null);return E.useEffect(()=>{var y;(y=p.current)==null||y.focus();const m=x=>{x.key==="Escape"&&!x.defaultPrevented&&!(x.target instanceof Element&&x.target.closest('[role="menu"]'))&&s()};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[s]),c.jsxs("div",{className:Ct.overlay,role:"presentation",children:[c.jsx("div",{className:Ct.mask,"aria-hidden":"true",onClick:s}),c.jsxs("div",{className:Ct.panel,role:"dialog","aria-modal":"true","aria-labelledby":f,children:[c.jsxs("nav",{className:Ct.nav,"aria-label":d==="zh"?"Pi 设置分类":"Pi settings sections",children:[c.jsx("div",{className:Ct.navTitle,id:f,children:e}),c.jsx("div",{className:Ct.navList,children:r.map(m=>c.jsxs("button",{type:"button",className:`${Ct.navCell} ${i===m.id?Ct.active:""}`,"aria-current":i===m.id?"true":void 0,onClick:()=>o(m.id),children:[mS(m.id),c.jsx("span",{className:Ct.navLabel,children:m.label})]},m.id))})]}),c.jsxs("div",{className:Ct.content,children:[c.jsxs("header",{className:Ct.header,children:[c.jsx("div",{className:Ct.actions}),c.jsx("button",{ref:p,className:Ct.close,type:"button",onClick:s,"aria-label":d==="zh"?"关闭 Pi 设置":"Close Pi settings",children:c.jsx(ss,{size:14})})]}),c.jsx("div",{className:Ct.options,children:u})]})]})]})}function yi(e){return/^(?:npm:|git:|https?:\/\/|ssh:\/\/|git@)/i.test(e.trim())}function xS(e){var J;const r=kr(),i=(z,ne)=>L3(r,z,ne),o=[{kind:"packages",title:i("包与扩展","Packages & extensions"),hint:i("包可以包含扩展和技能;本地扩展也可以单独加载。","Packages can contain extensions and skills; local extensions can also be loaded separately."),placeholder:i("npm 包名、Git 地址或本地目录","npm package, Git URL, or local directory")},{kind:"skills",title:i("技能","Skills"),hint:i("Pi 已发现和加载的技能。","Skills discovered and loaded by Pi."),placeholder:i("SKILL.md 文件或目录路径","SKILL.md file or directory path")}],s=[{id:"general",label:i("通用设置","General")},{id:"models",label:i("模型","Models")},...o.map(({kind:z,title:ne})=>({id:z,label:z==="packages"?i("包与扩展","Packages"):ne}))],{onBack:u,getConfig:d,updateConfig:f}=e,[p,m]=E.useState(null),[y,x]=E.useState({packages:"",extensions:"",skills:""}),[v,C]=E.useState(e.setupMode?"models":"general"),[k,P]=E.useState(!1),[R,j]=E.useState(!0),[V,b]=E.useState("");E.useEffect(()=>{e.setupMode&&C("models")},[e.setupMode]),E.useEffect(()=>{let z=!0;return d().then(ne=>{z&&m(ne)}).catch(ne=>{z&&b(ne instanceof Error?ne.message:i("无法读取 Pi 设置","Could not load Pi settings"))}).finally(()=>{z&&j(!1)}),()=>{z=!1}},[]);const $=async()=>{j(!0),b("");try{m(await d())}catch(z){b(z instanceof Error?z.message:i("无法读取 Pi 设置","Could not load Pi settings"))}finally{j(!1)}},B=async(z,ne,S)=>{P(!0),b("");try{m(await f(z,"global",ne,S)),ne==="add"&&x(A=>({...A,[z]:""}))}catch(A){b(A instanceof Error?A.message:i("保存失败","Save failed"))}finally{P(!1)}},T=o.find(({kind:z})=>z===v),ee=T?(p==null?void 0:p.global[T.kind])??[]:[],ie=T?((J=p==null?void 0:p.installed)==null?void 0:J[T.kind])??[]:[],Y=T?y[T.kind].trim():"",D=(T==null?void 0:T.kind)!=="packages"&&yi(Y),L=new Set((p==null?void 0:p.installed.packages.map(z=>z.source))??[]),Z=(p==null?void 0:p.installed.extensions.filter(z=>!L.has(z.source)))??[],te=(p==null?void 0:p.global.packages.filter(z=>!L.has(z)))??[],W=y.extensions.trim(),O=yi(W),I=z=>{x(ne=>({...ne,packages:z})),C("packages"),b("")};return c.jsxs(gS,{title:i("Pi 设置","Pi Settings"),sections:s,activeId:v,onSelect:z=>{C(z),b("")},onClose:u,children:[v==="general"&&c.jsxs("div",{className:"pi-settings-content",children:[c.jsx("h2",{children:i("通用设置","General")}),c.jsx("p",{className:"pi-settings-intro",children:i("调整网页的显示方式。","Choose how the web interface appears.")}),c.jsxs("div",{className:"pi-settings-general",children:[c.jsx(J_,{}),c.jsx(W_,{})]})]}),v==="models"&&c.jsx(R_,{setupMode:e.setupMode,onReturnToConversation:u,getProviders:e.getProviders,getProviderModels:e.getProviderModels,updateProviderModel:e.updateProviderModel,logoutProvider:e.logoutProvider,addCustomProvider:e.addCustomProvider,startLogin:e.startProviderLogin,getLogin:e.getProviderLogin,getActiveLogin:e.getActiveProviderLogin,respondLogin:e.respondProviderLogin,cancelLogin:e.cancelProviderLogin,refreshModels:e.refreshModels}),T&&c.jsxs("div",{className:"pi-settings-content",children:[c.jsx("h2",{children:T.title}),c.jsxs("p",{className:"pi-settings-intro",children:[T.hint," ",i("添加或移除后会重新加载 Pi 资源。","Pi resources reload after you add or remove one.")]}),V&&c.jsx("p",{className:"pi-settings-error",role:"alert",children:V}),p?c.jsxs(c.Fragment,{children:[c.jsxs("section",{className:"pi-settings-section","aria-label":`${i("已发现","Discovered ")}${T.title}`,children:[c.jsxs("h3",{children:[T.kind==="packages"?i("已安装的包","Installed packages"):i("已发现的技能","Discovered skills")," ",c.jsx("span",{children:ie.length})]}),c.jsx("ul",{children:ie.length?ie.map(z=>{const ne=T.kind==="packages"?p.installed.extensions.filter(S=>S.source===z.source):[];return c.jsxs("li",{className:"pi-resource-item",children:[c.jsxs("div",{className:"pi-resource-main",children:[c.jsx("strong",{title:z.name,children:z.name}),c.jsx("small",{title:z.path||z.source,children:z.path||z.source}),ne.length>0&&c.jsxs("div",{className:"pi-package-contents",children:[c.jsx("span",{children:i("包含扩展","Includes extensions")}),ne.map(S=>c.jsx("span",{title:S.path,children:S.name},S.path))]})]}),c.jsxs("div",{className:"pi-resource-actions",children:[c.jsxs("span",{className:"pi-resource-meta",children:[z.enabled?i("已启用","Enabled"):i("已停用","Disabled")," · ",z.scope==="project"?i("项目","Project"):z.scope==="user"?i("用户","User"):i("临时","Temporary")]}),T.kind==="packages"&&p.global.packages.includes(z.source)&&c.jsx("button",{type:"button",disabled:k,onClick:()=>{B("packages","remove",z.source)},children:i("移除","Remove")})]})]},`${z.path}:${z.source}`)}):c.jsxs("li",{className:"pi-settings-empty",children:[i("未发现","No "),T.title]})})]}),T.kind==="packages"&&c.jsxs("section",{className:"pi-settings-section","aria-label":i("独立扩展","Standalone extensions"),children:[c.jsxs("h3",{children:[i("独立扩展","Standalone extensions")," ",c.jsx("span",{children:Z.length})]}),c.jsx("ul",{children:Z.length?Z.map(z=>c.jsxs("li",{className:"pi-resource-item",children:[c.jsxs("div",{className:"pi-resource-main",children:[c.jsx("strong",{title:z.name,children:z.name}),c.jsx("small",{title:z.path,children:z.path})]}),c.jsxs("span",{className:"pi-resource-meta",children:[z.enabled?i("已启用","Enabled"):i("已停用","Disabled")," · ",z.scope==="project"?i("项目","Project"):z.scope==="user"?i("用户","User"):i("临时","Temporary")]})]},z.path)):c.jsx("li",{className:"pi-settings-empty",children:i("未发现独立扩展","No standalone extensions found")})})]}),c.jsxs("section",{className:"pi-settings-section","aria-label":`${i("手动配置","Configure ")}${T.title}`,children:[c.jsx("h3",{children:T.kind==="packages"?i("添加包","Add package"):i("手动配置技能","Configure skills manually")}),(T.kind==="packages"?te:ee).length>0&&c.jsx("ul",{children:(T.kind==="packages"?te:ee).map(z=>c.jsxs("li",{className:"pi-config-item",children:[c.jsxs("div",{className:"pi-resource-main",children:[c.jsx("code",{title:z,children:z}),T.kind==="packages"&&c.jsx("small",{children:i("已配置,但未发现安装目录","Configured, but installation directory was not found")}),T.kind!=="packages"&&yi(z)&&c.jsx("small",{className:"pi-config-warning",children:i("未加载:包来源请在“包与扩展”中添加。","Not loaded: add package sources under Packages & extensions.")})]}),c.jsxs("div",{className:"pi-resource-actions",children:[T.kind!=="packages"&&yi(z)&&c.jsx("button",{type:"button",disabled:k,onClick:()=>I(z),children:i("转到包","Go to packages")}),c.jsx("button",{type:"button",disabled:k,"aria-label":`${i("移除","Remove")} ${z}`,onClick:()=>{B(T.kind,"remove",z)},children:i("移除","Remove")})]})]},z))}),c.jsxs("form",{onSubmit:z=>{z.preventDefault(),Y&&!D&&B(T.kind,"add",Y)},children:[c.jsx("input",{"aria-label":`${i("添加","Add ")}${T.title}`,"aria-invalid":D||void 0,"aria-describedby":D?"pi-config-source-help":void 0,placeholder:T.placeholder,value:y[T.kind],onChange:z=>x(ne=>({...ne,[T.kind]:z.target.value}))}),c.jsx("button",{type:"submit",disabled:k||!Y||D,children:i("添加","Add")})]}),D&&c.jsxs("p",{id:"pi-config-source-help",className:"pi-config-hint",children:[i("这是包来源,请在「包」中添加。","This is a package source. Add it under Packages."),c.jsx("button",{type:"button",onClick:()=>I(Y),children:i("转到包","Go to packages")})]})]}),T.kind==="packages"&&c.jsxs("section",{className:"pi-settings-section","aria-label":i("手动配置扩展路径","Configure extension paths manually"),children:[c.jsx("h3",{children:i("扩展路径","Extension paths")}),p.global.extensions.length>0&&c.jsx("ul",{children:p.global.extensions.map(z=>c.jsxs("li",{className:"pi-config-item",children:[c.jsxs("div",{className:"pi-resource-main",children:[c.jsx("code",{title:z,children:z}),yi(z)&&c.jsx("small",{className:"pi-config-warning",children:i("未加载:包来源不能作为扩展路径,请在上方添加包。","Not loaded: package sources cannot be extension paths. Add the package above.")})]}),c.jsxs("div",{className:"pi-resource-actions",children:[yi(z)&&c.jsx("button",{type:"button",disabled:k,onClick:()=>I(z),children:i("填入包","Use as package")}),c.jsx("button",{type:"button",disabled:k,onClick:()=>{B("extensions","remove",z)},children:i("移除","Remove")})]})]},z))}),c.jsxs("form",{onSubmit:z=>{z.preventDefault(),W&&!O&&B("extensions","add",W)},children:[c.jsx("input",{"aria-label":i("添加扩展路径","Add extension path"),"aria-invalid":O||void 0,"aria-describedby":O?"pi-extension-source-help":void 0,placeholder:i("扩展文件或目录路径","Extension file or directory path"),value:y.extensions,onChange:z=>x(ne=>({...ne,extensions:z.target.value}))}),c.jsx("button",{type:"submit",disabled:k||!W||O,children:i("添加扩展","Add extension")})]}),O&&c.jsxs("p",{id:"pi-extension-source-help",className:"pi-config-hint",children:[i("这是包来源,请使用上方的“添加包”输入框。","This is a package source. Use the Add package field above."),c.jsx("button",{type:"button",onClick:()=>I(W),children:i("填入包","Use as package")})]})]})]}):R?c.jsx("p",{role:"status",children:i("正在读取设置…","Loading settings…")}):c.jsx("button",{className:"pi-settings-retry",type:"button",onClick:()=>{$()},children:i("重试读取设置","Retry loading settings")})]},T.kind)]})}const W1=location.hash.slice(1);W1&&(sessionStorage.setItem("pi-web-token",W1),history.replaceState(null,"",location.pathname));const Cr=W1||sessionStorage.getItem("pi-web-token");async function ut(e,r,i){const o=await fetch(e,{method:"POST",headers:{Authorization:`Bearer ${Cr}`,"Content-Type":"application/json"},body:JSON.stringify(r),signal:i}),s=await o.json();if(!o.ok)throw new Error(s.error||_(`请求失败:${o.status}`,`Request failed: ${o.status}`));return s}async function hn(e){const r=await fetch(e,{headers:{Authorization:`Bearer ${Cr}`}}),i=await r.json();if(!r.ok)throw new Error(i.error||_(`请求失败:${r.status}`,`Request failed: ${r.status}`));return i}function yS(){const e=kr(),[r,i]=E.useState(null),[o,s]=E.useState(null),[u,d]=E.useState(Cr?"connecting":"missing-token"),[f,p]=E.useState(""),[m,y]=E.useState([]),[x,v]=E.useState("loading"),[C,k]=E.useState([]),[P,R]=E.useState({items:[],activeId:null,sessions:[]}),[j,V]=E.useState(null);return E.useEffect(()=>{if(!Cr)return;const b=new AbortController;let $,B=!0;return(async()=>{var ee;for(;B;)try{d("connecting");const ie=await fetch("/api/events",{headers:{Authorization:`Bearer ${Cr}`},signal:b.signal});if(!ie.ok||!ie.body)throw new Error(ie.status===401?_("访问令牌无效,请在 Pi 中重新输入 /web。","Invalid access token. Run /web again in Pi."):_("连接 Pi 失败","Could not connect to Pi"));d("connected"),p("");const Y=ie.body.getReader(),D=new TextDecoder;let L="";for(;B;){const{done:Z,value:te}=await Y.read();if(Z)break;L+=D.decode(te,{stream:!0});let W=L.indexOf(`
|
|
92
|
-
`);for(;W!==-1;){const
|
|
93
|
-
`)}}throw new Error(_("Pi 网页连接已关闭","The Pi web connection has closed"))}catch(ie){if(!B)return;d("disconnected"),v("loading"),p(ie instanceof Error?ie.message:_("连接 Pi 失败","Could not connect to Pi")),await new Promise(Y=>{$=setTimeout(Y,1500)})}})(),()=>{B=!1,b.abort(),$&&clearTimeout($)}},[]),E.useEffect(()=>{Cr||p(_("请在 Pi 终端输入 /web,打开显示的完整地址。","Enter /web in the Pi terminal and open the full address shown."))},[e]),E.useEffect(()=>{if(u!=="connected")return;let b=!0;return v("loading"),hn("/api/models").then($=>{b&&(y($),v("ready"))}).catch($=>{b&&(v("error"),p($ instanceof Error?$.message:_("无法获取模型列表","Could not load the model list")))}),hn("/api/commands").then($=>{b&&k($)}).catch(()=>{b&&k([])}),()=>{b=!1}},[u,r==null?void 0:r.sessionId]),E.useEffect(()=>{if(u!=="connected")return;let b=!0;return hn("/api/workspaces").then($=>{b&&R($)}).catch(()=>{}),hn("/api/directory/capability").then($=>{b&&V($.kind)}).catch(()=>{b&&V("browse")}),()=>{b=!1}},[u]),{session:r,streaming:o,connection:u,error:f,models:m,modelsStatus:x,commands:C,workspaces:P,directoryPickerKind:j,async pickDirectory(){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));return(await ut("/api/directory/pick",{sessionId:r.sessionId})).path},async listDirectory(b,$){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));return ut("/api/directory/list",{sessionId:r.sessionId,...b===void 0?{}:{path:b}},$)},async createDirectory(b,$){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));return(await ut("/api/directory/create",{sessionId:r.sessionId,path:b,name:$})).path},clearError:()=>p(""),async upload(b,$){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));const B=`/api/attachment?sessionId=${encodeURIComponent(r.sessionId)}&name=${encodeURIComponent(b.name)}`,T=await fetch(B,{method:"POST",headers:{Authorization:`Bearer ${Cr}`,"Content-Type":b.type||"application/octet-stream"},body:b,signal:$}),ee=await T.json();if(T.status===404)throw new Error(_("当前 Pi 桥接服务仍是旧版。请在 Pi 中输入 /reload,再输入 /web 并打开新地址,然后重试上传。","The Pi bridge is outdated. Run /reload, then /web in Pi, open the new address, and retry the upload."));if(!T.ok)throw new Error(ee.error||_(`上传失败:${T.status}`,`Upload failed: ${T.status}`));return ee},async discardAttachment(b){!r||u!=="connected"||await ut("/api/attachment/remove",{sessionId:r.sessionId,id:b})},async send(b,$=[]){if(!(!r||u!=="connected")){p("");try{await ut("/api/message",{sessionId:r.sessionId,text:b,attachments:$})}catch(B){throw p(B instanceof Error?B.message:_("发送失败","Send failed")),B}}},async loadMessageImage(b,$){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));const B=`/api/image?sessionId=${encodeURIComponent(r.sessionId)}&messageId=${encodeURIComponent(b)}&index=${$}`,T=await fetch(B,{headers:{Authorization:`Bearer ${Cr}`}});if(!T.ok)throw new Error(_("图片读取失败","Could not load image"));return T.blob()},async stop(){if(!(!r||u!=="connected"))try{await ut("/api/abort",{sessionId:r.sessionId}),p("")}catch(b){throw p(b instanceof Error?b.message:_("停止失败","Could not stop")),b}},async compact(){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));try{await ut("/api/compact",{sessionId:r.sessionId}),p("")}catch(b){throw p(b instanceof Error?b.message:_("压缩失败","Compaction failed")),b}},async newSession(){if(!(!r||u!=="connected"))try{await ut("/api/new-session",{sessionId:r.sessionId})}catch(b){throw p(b instanceof Error?b.message:_("无法创建新会话","Could not create a new session")),b}},async addWorkspace(b,$){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ut("/api/workspace/add",{sessionId:r.sessionId,path:b,create:$})},async selectWorkspace(b){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ut("/api/workspace/select",{sessionId:r.sessionId,id:b})},async newSessionInWorkspace(b){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ut("/api/workspace/new-session",{sessionId:r.sessionId,id:b})},async removeWorkspace(b){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ut("/api/workspace/remove",{sessionId:r.sessionId,id:b})},async selectSession(b,$,B){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ut("/api/session/select",{sessionId:r.sessionId,workspaceId:b,id:$,path:B??""})},async setModel(b,$){if(!(!r||u!=="connected"))try{await ut("/api/model",{sessionId:r.sessionId,provider:b,id:$}),p("")}catch(B){throw p(B instanceof Error?B.message:_("切换模型失败","Could not change model")),B}},async setThinkingLevel(b){if(!(!r||u!=="connected"))try{await ut("/api/thinking-level",{sessionId:r.sessionId,level:b}),p("")}catch($){throw p($ instanceof Error?$.message:_("切换推理强度失败","Could not change reasoning effort")),$}},async getConfig(){return hn("/api/config")},async getProviders(){return hn("/api/providers")},async getProviderModels(b){return hn(`/api/provider/models?providerId=${encodeURIComponent(b)}`)},async updateProviderModel(b,$){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ut("/api/provider/models",{sessionId:r.sessionId,providerId:b,change:$});try{y(await hn("/api/models")),v("ready")}catch{p(_("模型已保存,但会话模型列表暂时无法刷新。","Model saved, but the conversation model list could not refresh."))}},async logoutProvider(b){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ut("/api/provider/logout",{sessionId:r.sessionId,providerId:b});try{y(await hn("/api/models")),v("ready")}catch{p(_("认证已移除,但会话模型列表暂时无法刷新。","Credentials removed, but the conversation model list could not refresh."))}},async addCustomProvider(b){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ut("/api/provider/custom",{sessionId:r.sessionId,provider:b})},async startProviderLogin(b,$,B){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));return ut("/api/provider/login",{sessionId:r.sessionId,providerId:b,method:$,...B===void 0?{}:{initialSecret:B}})},async getProviderLogin(b){return hn(`/api/provider/login?id=${encodeURIComponent(b)}`)},async getActiveProviderLogin(){return(await hn("/api/provider/login/active")).active},async respondProviderLogin(b,$){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ut("/api/provider/login/respond",{sessionId:r.sessionId,id:b,value:$})},async cancelProviderLogin(b){!r||u!=="connected"||await ut("/api/provider/login/cancel",{sessionId:r.sessionId,id:b})},async refreshModels(){y(await hn("/api/models")),v("ready")},async updateConfig(b,$,B,T){if(!r||u!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));return ut("/api/config",{sessionId:r.sessionId,kind:b,scope:$,action:B,value:T})}}}function vS(){kr();const e={"session.new.label":_("新会话","New session"),"session.new":_("新会话","New session"),"toggle.open":_("展开侧栏","Expand sidebar"),"toggle.collapse":_("收起侧栏","Collapse sidebar"),"panels.label":_("面板","Panels"),"brand.localBuild":"pi-webapp"},r=yS(),[i,o]=E.useState(!1),s=r.connection==="connected"&&r.session!==null&&r.modelsStatus==="ready"&&r.models.length===0;E.useEffect(()=>{s&&o(!0)},[s]);const u=E.useCallback(()=>{o(!1),requestAnimationFrame(()=>{var P;return(P=document.querySelector(".pi-settings-sidebar"))==null?void 0:P.focus()})},[]),[d,f]=E.useState(()=>({sidebar:280,viewportWidth:window.innerWidth,narrowExpanded:!1,rightbar:null,rightbarShown:!1,rightbarTrack:!1,rightbarFullscreen:!1,rightbarInstant:!1})),p=E.useMemo(()=>({setViewportWidth(P){f(R=>R.viewportWidth===P?R:{...R,viewportWidth:P,narrowExpanded:R.viewportWidth<1024!=P<1024?!1:R.narrowExpanded})},setSidebar(P){f(R=>({...R,sidebar:Math.min(420,Math.max(264,Math.round(P)))}))},setRightbar(P){}}),[]),m=()=>f(P=>P.viewportWidth<1024?{...P,narrowExpanded:!P.narrowExpanded}:{...P,sidebar:P.sidebar===0?280:0}),y=P=>P({layoutInfo:d}),x=P=>P({activePanelId:null}),v=P=>P([]),C=(P,R,j)=>P==="sidebar.brand.mark"?c.jsx(Jo,{size:24}):P==="sidebar.brand.name"?c.jsx("span",{children:"pi-webapp"}):P==="sidebar.settings"?c.jsx("div",{className:`pi-settings-trigger-row ${R.wide?"":"pi-settings-trigger-rail"}`,children:c.jsxs("button",{className:"pi-settings-sidebar","data-wide":R.wide,type:"button","aria-label":_("Pi 设置","Pi Settings"),"aria-haspopup":"dialog","aria-expanded":i,onClick:()=>o(!0),children:[R.wide?c.jsx(vd,{size:16}):c.jsx(x5,{size:18}),R.wide&&c.jsx("span",{children:_("Pi 设置","Pi Settings")})]})}):P==="sidebar.workspaces"?c.jsx(T_,{wide:R.wide,expandSidebar:R.expandSidebar,session:r.session,workspaces:r.workspaces,onAdd:r.addWorkspace,directoryPickerKind:r.directoryPickerKind,pickDirectory:r.pickDirectory,listDirectory:r.listDirectory,createDirectory:r.createDirectory,onRemove:r.removeWorkspace,onSelectSession:r.selectSession,onNewSession:r.newSessionInWorkspace}):(j==null?void 0:j.fallback)??null,k=(P,R)=>P==="sidebar"?c.jsx(a6,{collapsed:R.collapsed,width:R.width,startSession:()=>{r.newSession().catch(()=>{})},toggleSidebar:m,selectPanel:()=>{},usePanels:v,usePanelInfo:x,t:j=>e[j]??j,renderSlot:C}):P==="main"?c.jsx(Vw,{session:r.session,streaming:r.streaming,connection:r.connection,error:r.error,onSend:r.send,onLoadImage:r.loadMessageImage,onUpload:r.upload,onDiscardAttachment:r.discardAttachment,onStop:r.stop,onCompact:r.compact,onNewSession:r.newSession,commands:r.commands,models:r.models,modelsStatus:r.modelsStatus,onConfigureModels:()=>o(!0),onSetModel:r.setModel,onSetThinkingLevel:r.setThinkingLevel}):null;return c.jsxs(c.Fragment,{children:[c.jsx(a5,{useStore:y,usePanelInfo:x,actions:p,renderSlot:k,t:P=>e[P]??P}),i&&c.jsx(xS,{onBack:u,setupMode:s,getConfig:r.getConfig,updateConfig:r.updateConfig,getProviders:r.getProviders,getProviderModels:r.getProviderModels,updateProviderModel:r.updateProviderModel,logoutProvider:r.logoutProvider,addCustomProvider:r.addCustomProvider,startProviderLogin:r.startProviderLogin,getProviderLogin:r.getProviderLogin,getActiveProviderLogin:r.getActiveProviderLogin,respondProviderLogin:r.respondProviderLogin,cancelProviderLogin:r.cancelProviderLogin,refreshModels:r.refreshModels})]})}A_();Tg();const $3=document.getElementById("root");if(!$3)throw new Error("Missing #root");V4.createRoot($3).render(c.jsx(vS,{}));
|
|
88
|
+
</svg>`,zig:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FFF4DF" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#E18A00" d="m23.53 1.02-7.686 3.45h-7.06l-2.98 3.452h7.173L.47 22.98l7.681-3.607h7.065v-.002l2.978-3.45-7.148-.001 12.482-14.9zM0 4.47v14.901h1.883l2.98-3.45H3.451v-8h.942l2.824-3.45H0zm22.117 0-2.98 3.608h1.412v7.844h-.942l-2.98 3.45H24V4.47h-1.883z"/></g>'});function EC({type:e,size:r=20,className:i}){const o=`piw-code-icon-${E.useId().replaceAll(":","")}`,s=SC[e].replaceAll(bC,o);return c.jsx("svg",{width:r,height:r,className:i,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,dangerouslySetInnerHTML:{__html:s}})}const jC=["angular","c","clojure","cmake","cpp","csharp","css","dart","docker","elixir","env","erlang","flutter","git","go","graphql","haskell","ini","java","javascript","json","kotlin","lua","makefile","node","objective-c","perl","php","powershell","protobuf","python","r","react","ruby","rust","scala","shell","solidity","sql","svelte","swift","toml","typescript","vue","wasm","xml","yaml","zig"],LC=new Set(jC),NC={".bash_profile":"shell",".bashrc":"shell",".env":"env",".gitattributes":"git",".gitconfig":"git",".gitignore":"git",".gitmodules":"git",".mailmap":"git",".profile":"shell",".zprofile":"shell",".zshrc":"shell",bsdmakefile:"makefile","cmakelists.txt":"cmake",commit_editmsg:"git","compose.yaml":"docker","compose.yml":"docker","docker-compose.yaml":"docker","docker-compose.yml":"docker",dockerfile:"docker",gemfile:"ruby",gnumakefile:"makefile",guardfile:"ruby",makefile:"makefile","npm-shrinkwrap.json":"node","package-lock.json":"node","package.json":"node",podfile:"ruby",rakefile:"ruby"},IC=[["dockerfile.","docker"],[".env.","env"]],PC=[[".component.ts","angular"],[".component.html","angular"],[".directive.ts","angular"],[".service.ts","angular"],[".module.ts","angular"],[".pipe.ts","angular"],[".guard.ts","angular"],[".interceptor.ts","angular"],[".dockerfile","docker"]],MC={bash:"shell",c:"c","c++":"cpp",cc:"cpp",cfg:"ini",cjs:"javascript",clj:"clojure",cljc:"clojure",cljs:"clojure",cmake:"cmake",cpp:"cpp",cs:"csharp",csh:"shell",css:"css",csx:"csharp",cts:"typescript",cxx:"cpp",dart:"dart",dtd:"xml",edn:"clojure",env:"env",erl:"erlang",es6:"javascript",escript:"erlang",ex:"elixir",exs:"elixir",fish:"shell",gemspec:"ruby",go:"go",gql:"graphql",graphql:"graphql",h:"c","h++":"cpp",hh:"cpp",hpp:"cpp",hrl:"erlang",hs:"haskell",hxx:"cpp",ini:"ini",ipp:"cpp",java:"java",js:"javascript",json:"json",json5:"json",jsonc:"json",jsx:"react",ksh:"shell",kt:"kotlin",kts:"kotlin",lhs:"haskell",lua:"lua",m:"objective-c",mak:"makefile",mjs:"javascript",mk:"makefile",mm:"objective-c",mts:"typescript",node:"node",pch:"objective-c",php:"php",php3:"php",php4:"php",php5:"php",phps:"php",phtml:"php",pl:"perl",plist:"xml",pm:"perl",pod:"perl",proto:"protobuf",ps1:"powershell",psd1:"powershell",psm1:"powershell",py:"python",pyi:"python",pyw:"python",pyx:"python",r:"r",rake:"ruby",rb:"ruby",rmd:"r",rs:"rust",sc:"scala",scala:"scala",sh:"shell",sol:"solidity",sql:"sql",svelte:"svelte",swift:"swift",t:"perl",tcsh:"shell",toml:"toml",tpp:"cpp",ts:"typescript",tsx:"react",vue:"vue",wasm:"wasm",wast:"wasm",wat:"wasm",xml:"xml",xsd:"xml",xsl:"xml",xslt:"xml",yaml:"yaml",yml:"yaml",zig:"zig",zsh:"shell"};function TC(e){return e.slice(Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\"))+1)}function zC(e){return LC.has(e)}function RC(e,r,i){var s;const o=NC[e];if(o!==void 0)return o;for(const[a,d]of IC)if(e.startsWith(a))return d;for(const[a,d]of PC)if(e.endsWith(a))return d;if(r==="dart"&&i!==void 0){const a=(s=Object.entries(i.files).find(([d])=>TC(d).toLowerCase()==="pubspec.yaml"))==null?void 0:s[1];if((a==null?void 0:a.includes("flutter:"))===!0)return"flutter"}return MC[r]??null}const DC="_icon_1tiqm_1",AC="_code_1tiqm_8",FC="_excel_1tiqm_12",OC="_folder_1tiqm_16",$C="_html_1tiqm_20",BC="_image_1tiqm_24",HC="_markdown_1tiqm_28",VC="_other_1tiqm_32",UC="_pdf_1tiqm_36",WC="_ppt_1tiqm_40",qC="_video_1tiqm_44",ZC="_word_1tiqm_48",dd={icon:DC,code:AC,excel:FC,folder:OC,html:$C,image:BC,markdown:HC,other:VC,pdf:UC,ppt:WC,video:qC,word:ZC},QC={scss:"code",sass:"code",less:"code",vue:"code",svelte:"code",astro:"code",bat:"code",cmd:"code",csv:"code",tsv:"code",html:"html",htm:"html",png:"image",jpg:"image",jpeg:"image",gif:"image",svg:"image",webp:"image",avif:"image",bmp:"image",ico:"image",tif:"image",tiff:"image",heic:"image",heif:"image",md:"markdown",mdx:"markdown",markdown:"markdown",pdf:"pdf",ppt:"ppt",pptx:"ppt",key:"ppt",mp4:"video",mov:"video",m4v:"video",webm:"video",mkv:"video",avi:"video",mpg:"video",mpeg:"video",doc:"word",docx:"word",rtf:"word",odt:"word",pages:"word",xls:"excel",xlsx:"excel",xlsm:"excel",numbers:"excel"},GC={changelog:"markdown",contributing:"markdown",readme:"markdown"};function O3(e){return e.slice(Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\"))+1)}function v1(e){const r=O3(e),i=r.lastIndexOf(".");return i<0?"":r.slice(i+1)}function KC(e,r){const i=O3(e).toLowerCase(),o=v1(i).toLowerCase();return RC(i,o,r)??GC[i]??QC[o]??"other"}const YC="M8.48924 28H19.5108C21.6479 28 22.7165 28 23.5594 27.6509C24.6833 27.1853 25.5762 26.2924 26.0417 25.1685C26.3909 24.3256 26.3909 23.257 26.3909 21.1199V8.79443C26.3909 8.32877 26.3909 8.09593 26.3471 7.87507C26.2887 7.58058 26.173 7.30042 26.0067 7.05048C25.882 6.86303 25.7177 6.69799 25.3893 6.36792L20.0611 1.01354C19.7304 0.681235 19.5651 0.515081 19.3769 0.38885C19.126 0.220541 18.8443 0.103463 18.5481 0.0443412C18.3259 0 18.0915 0 17.6226 0H8.48924C6.35209 0 5.28351 0 4.4406 0.349145C3.31672 0.814671 2.4238 1.70759 1.95828 2.83147C1.60913 3.67438 1.60913 4.74296 1.60913 6.88011V21.1199C1.60913 23.257 1.60913 24.3256 1.95828 25.1685C2.4238 26.2924 3.31672 27.1853 4.4406 27.6509C5.28351 28 6.35209 28 8.48924 28Z",fd="M26.3909 7.37445L19.0525 0V3.77445C19.0525 4.89271 19.0525 5.45184 19.2352 5.89289C19.4788 6.48096 19.946 6.94818 20.5341 7.19176C20.9751 7.37445 21.5342 7.37445 22.6525 7.37445H26.3909Z",XC="translate(14 16) scale(1.12) translate(-14 -16)",ml="translate(14 16) scale(1.22) translate(-14 -16)",JC="translate(14 13.0693) scale(1.12) translate(-14 -13.0693)";function Tn({size:e,className:r,children:i,markTransform:o=XC,muted:s=!1}){return c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:[c.jsx("path",{d:YC,fill:"currentColor"}),s?c.jsx("path",{d:fd,fill:"var(--dsw-static-neutral-400)"}):c.jsx("path",{d:fd,fill:"var(--dsw-static-neutral-00)",fillOpacity:".7"}),i!==void 0&&c.jsx("g",{color:"var(--dsw-static-neutral-00)","data-file-type-mark":!0,transform:o,children:i})]})}function ew({size:e,className:r}){return c.jsxs("svg",{width:e,height:e,className:r,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:[c.jsx("path",{d:"M2.80078 10.2112C2.80078 9.52802 2.80078 9.18642 2.85314 8.866C2.98648 8.05 3.36942 7.29538 3.94925 6.70595C4.17694 6.4745 4.45264 6.2728 5.00404 5.86939C5.29197 5.65874 5.43594 5.55342 5.58711 5.46632C5.97089 5.24521 6.39638 5.10618 6.83667 5.05803C7.01011 5.03906 7.18849 5.03906 7.54524 5.03906H11.6543C12.4669 5.03906 12.8732 5.03906 13.2599 5.13697C13.3882 5.16945 13.5143 5.20986 13.6375 5.25795C14.0091 5.40294 14.3398 5.63902 15.0012 6.1112L16.2632 7.01224C16.5526 7.21881 16.6972 7.3221 16.8598 7.38553C16.9137 7.40657 16.9689 7.42425 17.025 7.43846C17.1942 7.4813 17.372 7.4813 17.7275 7.4813H19.8008C22.0506 7.4813 23.1755 7.4813 23.9641 8.05425C24.2188 8.23928 24.4428 8.46326 24.6278 8.71794C25.2008 9.50654 25.2008 10.6315 25.2008 12.8813V18.7283C25.2008 20.9781 25.2008 22.1031 24.6278 22.8917C24.4428 23.1463 24.2188 23.3703 23.9641 23.5554C23.1755 24.1283 22.0506 24.1283 19.8008 24.1283H8.20077C5.95094 24.1283 4.82602 24.1283 4.03743 23.5554C3.78274 23.3703 3.55877 23.1463 3.37373 22.8917C2.80078 22.1031 2.80078 20.9781 2.80078 18.7283V10.2112Z",fill:"currentColor"}),c.jsx("g",{color:"var(--dsw-static-neutral-00)","data-file-type-mark":!0,transform:JC,children:c.jsx("path",{d:"M6.31445 13.0693H21.6893",stroke:"currentColor",strokeWidth:"2.38"})})]})}function tw(e,r,i){switch(e){case"code":return c.jsxs(Tn,{size:r,className:i,children:[c.jsx("path",{d:"M8.61 16.3601L11.76 18.3901V20.1401L7 17.0601V15.6601L11.76 12.5801V14.3301L8.61 16.3601Z",fill:"currentColor"}),c.jsx("path",{d:"M16.1918 14.3301V12.5801L20.9518 15.6601V17.0601L16.1918 20.1401V18.3901L19.3418 16.3601L16.1918 14.3301Z",fill:"currentColor"})]});case"excel":return c.jsx(Tn,{size:r,className:i,markTransform:ml,children:c.jsx("path",{d:"M10.2932 20.5L13.3532 16.25L13.3432 17.66L10.4032 13.5H12.6332L14.5132 16.21L13.5632 16.22L15.4132 13.5H17.5532L14.6132 17.58V16.18L17.7132 20.5H15.4332L13.5232 17.65H14.4332L12.5532 20.5H10.2932Z",fill:"currentColor"})});case"folder":return c.jsx(ew,{size:r,className:i});case"html":return c.jsx(Tn,{size:r,className:i,children:c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.9994 9.68298C17.212 9.68298 19.8167 12.2872 19.8168 15.4997C19.8168 18.7123 17.2121 21.3171 13.9994 21.3171C10.7869 21.3169 8.18274 18.7122 8.18274 15.4997C8.1829 12.2873 10.787 9.68315 13.9994 9.68298ZM9.26213 16.0247C9.47025 17.9241 10.7936 19.4876 12.5639 20.0463C12.42 19.7977 12.2952 19.5152 12.1879 19.2116C11.885 18.3541 11.693 17.2434 11.6424 16.0247H9.26213ZM16.3565 16.0247C16.3059 17.2434 16.1145 18.3542 15.8116 19.2116C15.7044 19.5151 15.5788 19.7971 15.435 20.0456C17.2054 19.487 18.5293 17.9242 18.7374 16.0247H16.3565ZM12.6938 16.0247C12.7439 17.1459 12.9212 18.1334 13.1784 18.8616C13.332 19.2962 13.503 19.61 13.6686 19.805C13.834 19.9996 13.9473 20.0256 13.9994 20.0258C14.0514 20.0258 14.1651 20.0002 14.331 19.805C14.4966 19.61 14.6676 19.2962 14.8211 18.8616C15.0784 18.1334 15.2557 17.1459 15.3058 16.0247H12.6938ZM13.9994 10.733C13.9473 10.7331 13.834 10.7598 13.6686 10.9545C13.503 11.1494 13.3319 11.4633 13.1784 11.8978C12.903 12.6777 12.7188 13.7545 12.6849 14.9747H15.3147C15.2808 13.7545 15.0966 12.6777 14.8211 11.8978C14.6676 11.4633 14.4965 11.1494 14.331 10.9545C14.1651 10.7593 14.0514 10.733 13.9994 10.733ZM15.5888 11.0051C15.6701 11.1756 15.7444 11.3576 15.8116 11.5478C16.1343 12.4613 16.3308 13.6619 16.3647 14.9747H18.7374C18.5352 13.1307 17.2817 11.6036 15.5888 11.0051ZM12.4101 11.0051C10.7174 11.6037 9.46428 13.1308 9.26213 14.9747H11.6349C11.6688 13.6619 11.8652 12.4613 12.1879 11.5478C12.2551 11.3577 12.3288 11.1756 12.4101 11.0051Z",fill:"currentColor"})});case"image":return c.jsxs(Tn,{size:r,className:i,children:[c.jsx("path",{d:"M10.4212 15.9204C10.5756 15.6558 10.9579 15.6558 11.1123 15.9204L13.6493 20.2696C13.8048 20.5362 13.6125 20.8711 13.3037 20.8711H8.22974C7.92102 20.8711 7.72868 20.5362 7.88423 20.2696L10.4212 15.9204Z",fill:"currentColor"}),c.jsx("path",{d:"M15.4981 13.186C15.6505 12.9117 16.0451 12.9117 16.1975 13.186L20.1368 20.2769C20.2849 20.5435 20.0922 20.8711 19.7872 20.8711H11.9084C11.6034 20.8711 11.4107 20.5435 11.5588 20.2769L15.4981 13.186Z",fill:"currentColor"}),c.jsx("path",{d:"M11.8603 11.3997C11.8603 12.286 11.1418 13.0045 10.2555 13.0045C9.36924 13.0045 8.65076 12.286 8.65076 11.3997C8.65076 10.5134 9.36924 9.79492 10.2555 9.79492C11.1418 9.79492 11.8603 10.5134 11.8603 11.3997Z",fill:"currentColor"})]});case"markdown":return c.jsx(Tn,{size:r,className:i,markTransform:ml,children:c.jsx("path",{d:"M8.7588 19.5V14.6H9.8998L11.9298 17.932H11.3278L13.3018 14.6H14.4428L14.4568 19.5H13.1828L13.1688 16.539H13.3858L11.9088 19.017H11.2928L9.7738 16.539H10.0398V19.5H8.7588ZM15.4375 19.5V14.6H17.7545C18.2958 14.6 18.7718 14.7003 19.1825 14.901C19.5932 15.1017 19.9128 15.384 20.1415 15.748C20.3748 16.112 20.4915 16.546 20.4915 17.05C20.4915 17.5493 20.3748 17.9833 20.1415 18.352C19.9128 18.716 19.5932 18.9983 19.1825 19.199C18.7718 19.3997 18.2958 19.5 17.7545 19.5H15.4375ZM16.8235 18.394H17.6985C17.9785 18.394 18.2212 18.3427 18.4265 18.24C18.6365 18.1327 18.7998 17.9787 18.9165 17.778C19.0332 17.5727 19.0915 17.33 19.0915 17.05C19.0915 16.7653 19.0332 16.5227 18.9165 16.322C18.7998 16.1213 18.6365 15.9697 18.4265 15.867C18.2212 15.7597 17.9785 15.706 17.6985 15.706H16.8235V18.394Z",fill:"currentColor"})});case"other":return c.jsx(Tn,{size:r,className:i,muted:!0});case"pdf":return c.jsx(Tn,{size:r,className:i,markTransform:ml,children:c.jsx("path",{d:"M6.80616 19.5V14.6H9.04616C9.49416 14.6 9.87916 14.6723 10.2012 14.817C10.5278 14.9617 10.7798 15.1717 10.9572 15.447C11.1345 15.7177 11.2232 16.0397 11.2232 16.413C11.2232 16.7817 11.1345 17.1013 10.9572 17.372C10.7798 17.6427 10.5278 17.8527 10.2012 18.002C9.87916 18.1467 9.49416 18.219 9.04616 18.219H7.57616L8.19216 17.617V19.5H6.80616ZM8.19216 17.764L7.57616 17.127H8.96216C9.2515 17.127 9.46616 17.064 9.60616 16.938C9.75083 16.812 9.82316 16.637 9.82316 16.413C9.82316 16.1843 9.75083 16.007 9.60616 15.881C9.46616 15.755 9.2515 15.692 8.96216 15.692H7.57616L8.19216 15.055V17.764ZM11.8989 19.5V14.6H14.2159C14.7573 14.6 15.2333 14.7003 15.6439 14.901C16.0546 15.1017 16.3743 15.384 16.6029 15.748C16.8363 16.112 16.9529 16.546 16.9529 17.05C16.9529 17.5493 16.8363 17.9833 16.6029 18.352C16.3743 18.716 16.0546 18.9983 15.6439 19.199C15.2333 19.3997 14.7573 19.5 14.2159 19.5H11.8989ZM13.2849 18.394H14.1599C14.4399 18.394 14.6826 18.3427 14.8879 18.24C15.0979 18.1327 15.2613 17.9787 15.3779 17.778C15.4946 17.5727 15.5529 17.33 15.5529 17.05C15.5529 16.7653 15.4946 16.5227 15.3779 16.322C15.2613 16.1213 15.0979 15.9697 14.8879 15.867C14.6826 15.7597 14.4399 15.706 14.1599 15.706H13.2849V18.394ZM17.6821 19.5V14.6H21.5251V15.671H19.0681V19.5H17.6821ZM18.9701 17.82V16.749H21.2311V17.82H18.9701Z",fill:"currentColor"})});case"ppt":return c.jsx(Tn,{size:r,className:i,markTransform:ml,children:c.jsx("path",{d:"M11.0132 20.5V13.5H14.2132C14.8532 13.5 15.4032 13.6033 15.8632 13.81C16.3299 14.0167 16.6899 14.3167 16.9432 14.71C17.1966 15.0967 17.3232 15.5567 17.3232 16.09C17.3232 16.6167 17.1966 17.0733 16.9432 17.46C16.6899 17.8467 16.3299 18.1467 15.8632 18.36C15.4032 18.5667 14.8532 18.67 14.2132 18.67H12.1132L12.9932 17.81V20.5H11.0132ZM12.9932 18.02L12.1132 17.11H14.0932C14.5066 17.11 14.8132 17.02 15.0132 16.84C15.2199 16.66 15.3232 16.41 15.3232 16.09C15.3232 15.7633 15.2199 15.51 15.0132 15.33C14.8132 15.15 14.5066 15.06 14.0932 15.06H12.1132L12.9932 14.15V18.02Z",fill:"currentColor"})});case"video":return c.jsx(Tn,{size:r,className:i,children:c.jsx("path",{d:"M17.5 14.634C18.1667 15.0189 18.1667 15.9811 17.5 16.366L11.5 19.8301C10.8333 20.215 10 19.7339 10 18.9641L10 12.0359C10 11.2661 10.8333 10.785 11.5 11.1699L17.5 14.634Z",fill:"currentColor"})});case"word":return c.jsx(Tn,{size:r,className:i,markTransform:ml,children:c.jsx("path",{d:"M10.5118 20.5L8.24179 13.5H10.2818L12.1918 19.56H11.1618L13.1718 13.5H14.9918L16.8918 19.56H15.9018L17.8718 13.5H19.7618L17.4918 20.5H15.3718L13.7518 15.35H14.3218L12.6318 20.5H10.5118Z",fill:"currentColor"})});default:return nw(e)}}function nw(e){throw new Error(`unreachable traditional file type: ${String(e)}`)}function $3(e){const{size:r=28,className:i}=e,o="path"in e?KC(e.path,e.context):e.kind;return zC(o)?c.jsx(EC,{type:o,size:r,className:i}):tw(o,r,st(dd.icon,dd[o],i))}function rw(e){if(e<1024)return`${e}B`;const r=e/1024;if(r<1024)return`${r<10?r.toFixed(1):Math.round(r)}KB`;const i=r/1024;if(i<1024)return`${i<10?i.toFixed(1):Math.round(i)}MB`;const o=i/1024;return`${o<10?o.toFixed(1):Math.round(o)}GB`}const iw="_card_p20fp_1",lw="_failed_p20fp_16",ow="_icon_p20fp_20",sw="_spinner_p20fp_29",aw="_body_p20fp_43",uw="_retry_p20fp_51",cw="_name_p20fp_61",dw="_meta_p20fp_71",fw="_metaFailed_p20fp_80",pw="_remove_p20fp_84",hw="_removeFailed_p20fp_126",mw="_progressTrack_p20fp_132",gw="_progressBar_p20fp_143",Tt={card:iw,failed:lw,icon:ow,spinner:sw,body:aw,retry:uw,name:cw,meta:dw,metaFailed:fw,remove:pw,removeFailed:hw,progressTrack:mw,progressBar:gw};function xw({name:e,bytes:r,status:i,error:o,onRemove:s,onRetry:a}){const d=v1(e).toUpperCase().slice(0,8),f=i==="uploading"?_("上传中…","Uploading…"):i==="error"?o||_("上传失败","Upload failed"):`${d} ${rw(r)}`;return c.jsxs("div",{className:`${Tt.card} ${i==="error"?Tt.failed:""}`,title:e,children:[c.jsx("span",{className:Tt.icon,"aria-hidden":"true",children:i==="uploading"?c.jsx("span",{className:Tt.spinner}):c.jsx($3,{path:e,size:28})}),i==="error"?c.jsxs("button",{type:"button",className:`${Tt.body} ${Tt.retry}`,onClick:a,"aria-label":_(`重试上传 ${e}`,`Retry upload ${e}`),children:[c.jsx("span",{className:Tt.name,children:e}),c.jsx("span",{className:`${Tt.meta} ${Tt.metaFailed}`,children:f})]}):c.jsxs("span",{className:Tt.body,"aria-label":_(`待发送文件 ${e}`,`Pending file ${e}`),children:[c.jsx("span",{className:Tt.name,children:e}),c.jsx("span",{className:Tt.meta,children:f})]}),c.jsx("button",{type:"button",className:`${Tt.remove} ${i==="error"?Tt.removeFailed:""}`,"aria-label":_(`移除 ${e}`,`Remove ${e}`),onClick:s,children:c.jsx(Yu,{size:12})}),i==="uploading"&&c.jsx("span",{className:Tt.progressTrack,"aria-hidden":"true",children:c.jsx("span",{className:Tt.progressBar})})]})}const yw="_imageItem_1b0gl_9",vw="_thumbnail_1b0gl_15",Cw="_remove_1b0gl_33",ww="_retryImage_1b0gl_58",Qo={imageItem:yw,thumbnail:vw,remove:Cw,retryImage:ww};function kw({file:e,status:r,error:i,onRemove:o,onRetry:s}){const[a,d]=E.useState(null),[f,p]=E.useState(!1),m=E.useCallback(()=>p(!1),[]),y=/^(image\/(png|jpeg|webp|gif))$/.test(e.type)||/\.(png|jpe?g|webp|gif)$/i.test(e.name);return E.useEffect(()=>{if(!y)return;const x=URL.createObjectURL(e);return d(x),()=>URL.revokeObjectURL(x)},[e,y]),y?c.jsxs("div",{className:Qo.imageItem,title:e.name,children:[c.jsx("button",{type:"button",className:Qo.thumbnail,"aria-label":_(`预览 ${e.name}`,`Preview ${e.name}`),disabled:a===null,onClick:()=>p(!0),children:a&&c.jsx("img",{src:a,alt:e.name})}),c.jsx("button",{type:"button",className:Qo.remove,"aria-label":_(`移除 ${e.name}`,`Remove ${e.name}`),onClick:o,children:c.jsx(Yu,{size:12})}),r==="uploading"&&c.jsx("span",{className:"pi-image-uploading",role:"status",children:_("上传中","Uploading")}),r==="error"&&c.jsx("button",{type:"button",className:Qo.retryImage,"aria-label":_(`重试上传 ${e.name}`,`Retry upload ${e.name}`),title:i||_("上传失败","Upload failed"),onClick:s,children:_("重试","Retry")}),f&&a&&c.jsx(F3,{src:a,alt:e.name,labels:{dialog:_("图片预览","Image preview"),close:_("关闭预览","Close preview")},onClose:m})]}):c.jsx(xw,{name:e.name,bytes:e.size,status:r,error:i,onRemove:o,onRetry:s})}const _w="_frame_33xub_18",bw="_loading_33xub_51",Sw="_error_33xub_52",Eu={frame:_w,loading:bw,error:Sw};function Ew(e,r){const i=e/r,o=Math.min(4,Math.max(.25,i)),s=o>=1?{width:240,height:240/o}:{width:240*o,height:240},a=Math.min(1,e/s.width,r/s.height);return{width:Math.max(1,Math.round(s.width*a)),height:Math.max(1,Math.round(s.height*a)),objectPosition:i<.25?"center top":i>4?"left center":"center"}}function jw({name:e,messageId:r,index:i,file:o,tile:s,loadImage:a}){const[d,f]=E.useState(null),[p,m]=E.useState(!1),[y,x]=E.useState(!1),[v,C]=E.useState(0),[k,P]=E.useState(null),R=E.useRef(a);R.current=a,E.useEffect(()=>{let V=!0,S=null;return f(null),m(!1),P(null),o?(S=URL.createObjectURL(o),f(S)):R.current(r,i).then(F=>{const B=URL.createObjectURL(F);V?(S=B,f(B)):URL.revokeObjectURL(B)}).catch(()=>{V&&m(!0)}),()=>{V=!1,S&&URL.revokeObjectURL(S)}},[o,r,i,v]);const j=!s&&k?Ew(k.width,k.height):null;return p?c.jsx("button",{type:"button",className:Eu.error,"data-variant":s?"tile":"single",onClick:()=>C(V=>V+1),children:_("图片加载失败,重试","Image failed to load. Retry")}):c.jsxs(c.Fragment,{children:[c.jsx("button",{type:"button",className:Eu.frame,"data-variant":s?"tile":"single","aria-label":_(`预览 ${e}`,`Preview ${e}`),title:_("查看原图","View original image"),disabled:!d,onClick:()=>x(!0),style:j?{width:j.width,height:j.height}:void 0,children:d?c.jsx("img",{src:d,alt:e,onLoad:V=>P({width:V.currentTarget.naturalWidth,height:V.currentTarget.naturalHeight}),onError:()=>m(!0),style:j?{objectPosition:j.objectPosition}:void 0}):c.jsx("span",{className:Eu.loading,children:_("加载中","Loading")})}),y&&d&&c.jsx(F3,{src:d,alt:e,labels:{dialog:_("图片预览","Image preview"),close:_("关闭预览","Close preview")},onClose:()=>x(!1)})]})}const Lw=12;function Nw(e,r,i){const[o,s]=E.useState(r);return E.useLayoutEffect(()=>{const a=e.current;if(a===null)return;const d=()=>{s(Math.min(r,Math.max(0,a.getBoundingClientRect().bottom-Lw)))};return d(),window.addEventListener("resize",d),window.addEventListener("scroll",d,!0),()=>{window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0)}},[e,r,i]),o}const Iw="_menu_rkz86_1",Pw="_viewport_rkz86_46",Mw="_item_rkz86_53",Tw="_active_rkz86_72",zw="_itemName_rkz86_100",Rw="_itemDescription_rkz86_121",Dw="_groupTitle_rkz86_188",kr={menu:Iw,viewport:Pw,item:Mw,active:Tw,itemName:zw,itemDescription:Rw,groupTitle:Dw};function Aw(){return[{name:"compact",description:_("压缩当前会话内容","Compact the current session")},{name:"model",description:_("选择本会话使用的模型","Choose the model for this session")},{name:"new",description:_("创建新会话","Create a new session")}]}function Fw({commands:e,active:r,onHover:i,onPick:o}){const s=E.useRef(null),a=Nw(s,400,e.length);return c.jsx("div",{ref:s,className:kr.menu,"data-trigger-menu":"",style:{maxHeight:a},children:c.jsxs("div",{className:kr.viewport,role:"listbox","aria-label":_("指令","Commands"),"aria-activedescendant":e[r]?`pi-command-${r}`:void 0,children:[c.jsx("div",{className:kr.groupTitle,role:"presentation",children:_("指令","Commands")}),e.map((d,f)=>c.jsxs("button",{id:`pi-command-${f}`,type:"button",role:"option","aria-selected":f===r,className:`${kr.item} ${f===r?kr.active:""}`,onMouseDown:p=>{p.preventDefault(),o(d)},onMouseMove:()=>i(f),children:[c.jsx("span",{className:kr.itemName,children:d.name}),d.description&&c.jsx("span",{className:kr.itemDescription,children:d.description})]},d.name)),e.length===0&&c.jsx("div",{className:kr.groupTitle,children:_("没有匹配的指令","No matching commands")})]})})}const Ow="_mask_dzmab_3",$w="_wrap_dzmab_27",Bw="_illustration_dzmab_37",Hw="_title_dzmab_42",Vw="_desc_dzmab_47",gl={mask:Ow,wrap:$w,illustration:Bw,title:Hw,desc:Vw};function Uw({disabled:e,labels:r}){return Il.createPortal(c.jsx("div",{className:gl.mask,role:"status",children:c.jsxs("div",{className:gl.wrap,children:[c.jsx("div",{className:gl.illustration,"aria-hidden":"true",children:e?c.jsx(qw,{}):c.jsx(Ww,{})}),c.jsx("div",{className:gl.title,children:r.title}),!e&&r.desc!==void 0&&c.jsx("div",{className:gl.desc,children:r.desc})]})}),document.body)}const Ww=()=>c.jsxs("svg",{width:"115",height:"84",viewBox:"0 0 115 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{clipPath:"url(#piwDropOverlayClip)",children:[c.jsx("rect",{y:"17.0742",width:"44.1832",height:"43.6431",rx:"12",transform:"rotate(-22.7338 0 17.0742)",fill:"#9CE5ED"}),c.jsx("rect",{x:"73.4043",y:"8.54297",width:"43.7267",height:"50.5284",rx:"8",transform:"rotate(17.403 73.4043 8.54297)",fill:"#679EFE"}),c.jsx("path",{d:"M30.4917 28.1369L40.8865 33.4564L37.2232 34.9524L29.5302 31.0159L26.7919 39.2122L23.1285 40.7082L26.8287 29.6338L16.8967 24.5516L20.5601 23.0556L27.7902 26.7549L30.3639 19.052L34.0273 17.556L30.4917 28.1369Z",fill:"white"}),c.jsx("path",{d:"M77.5088 26.3047L101.057 33.7966",stroke:"white",strokeWidth:"3"}),c.jsx("path",{d:"M72.2646 42.7871L86.3938 47.2823",stroke:"white",strokeWidth:"3"}),c.jsx("path",{d:"M74.8867 34.5469L98.4353 42.0388",stroke:"white",strokeWidth:"3"}),c.jsx("rect",{x:"31.583",y:"38.6641",width:"44.9157",height:"44.3666",rx:"12",transform:"rotate(-0.134233 31.583 38.6641)",fill:"#3964FE"}),c.jsx("path",{d:"M38.9521 73.0337C39.6129 71.7086 41.7113 66.0937 43.5113 61.1663C44.1607 59.3885 46.7484 59.3923 47.4591 61.1465C48.9728 64.8828 50.7969 68.6922 51.9988 69.1925C54.2946 70.1482 57.9854 59.3573 68.0064 70.1801",stroke:"white",strokeWidth:"3"}),c.jsx("circle",{cx:"60.6157",cy:"52.247",r:"4.38794",transform:"rotate(22.5996 60.6157 52.247)",fill:"white"})]}),c.jsx("defs",{children:c.jsx("clipPath",{id:"piwDropOverlayClip",children:c.jsx("rect",{width:"115",height:"84",fill:"white"})})})]}),qw=()=>c.jsxs("svg",{width:"115",height:"84",viewBox:"0 0 115 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M29.6829 4.63701L11.0677 12.4368C4.95519 14.998 2.07624 22.0294 4.6374 28.1419L12.2285 46.259C14.7896 52.3715 21.8211 55.2505 27.9336 52.6893L46.5488 44.8895C52.6613 42.3283 55.5403 35.2969 52.9791 29.1844L45.388 11.0673C42.8269 4.9548 35.7954 2.07585 29.6829 4.63701Z",fill:"#979DA6"}),c.jsx("path",{d:"M30.4915 28.1375L40.8863 33.4569L37.223 34.9529L29.53 31.0165L26.7917 39.2128L23.1283 40.7088L26.8285 29.6344L16.8965 24.5522L20.5599 23.0562L27.79 26.7555L30.3637 19.0526L34.0271 17.5566L30.4915 28.1375Z",fill:"white"}),c.jsx("path",{d:"M107.496 19.2285L81.0381 10.9357C76.8221 9.61423 72.333 11.9607 71.0116 16.1768L60.6844 49.1246C59.363 53.3406 61.7095 57.8297 65.9255 59.1511L92.383 67.4439C96.599 68.7654 101.088 66.4189 102.41 62.2029L112.737 29.255C114.058 25.039 111.712 20.55 107.496 19.2285Z",fill:"#979DA6"}),c.jsx("path",{d:"M77.5088 26.3047L101.057 33.7967",stroke:"white",strokeWidth:"3"}),c.jsx("path",{d:"M72.2646 42.7871L86.3938 47.2823",stroke:"white",strokeWidth:"3"}),c.jsx("path",{d:"M74.8867 34.5469L98.4353 42.0388",stroke:"white",strokeWidth:"3"}),c.jsx("path",{d:"M66.5798 30.1418L41.481 30.2006C33.5281 30.2193 27.0962 36.6815 27.1148 44.6343L27.172 69.0742C27.1907 77.0271 33.6529 83.459 41.6057 83.4404L66.7045 83.3816C74.6574 83.363 81.0894 76.9008 81.0707 68.9479L81.0135 44.5081C80.9949 36.5552 74.5327 30.1232 66.5798 30.1418Z",fill:"#F59E0B"}),c.jsx("path",{d:"M54 70.7969C61.732 70.7969 68 64.5289 68 56.7969C68 49.0649 61.732 42.7969 54 42.7969C46.268 42.7969 40 49.0649 40 56.7969C40 64.5289 46.268 70.7969 54 70.7969Z",stroke:"white",strokeWidth:"3.5"}),c.jsx("path",{d:"M44 46.7969L64 66.7969",stroke:"white",strokeWidth:"3.5",strokeLinecap:"round"})]});function B3(e){const r=[];let i=e;for(;;){const o=/(^|\n\n)附件 ("(?:\\.|[^"\\])*"):([^\n]+)$/u.exec(i);if(!o||!/[\\/]pi-web[\\/]attachments[\\/][a-f0-9]{64}[\\/]/u.test(o[3]))break;let s;try{s=JSON.parse(o[2])}catch{break}r.unshift({name:s,image:/\.(?:png|jpe?g|webp|gif)$/iu.test(s)}),i=i.slice(0,o.index)}return{text:i,attachments:r}}function Go({message:e,results:r,loadImage:i,running:o=!1,onInspect:s,cwd:a}){var d;if(e.role==="tool"&&e.toolCallId&&r.has(e.toolCallId))return null;if(e.role==="user"){const f=e.blocks.filter(v=>v.kind==="text").map(v=>v.text).join(`
|
|
89
|
+
`),p=e.localFiles?{text:f,attachments:e.localFiles.map(v=>({name:v.name,image:/\.(?:png|jpe?g|webp|gif)$/iu.test(v.name)||/^image\/(?:png|jpeg|webp|gif)$/.test(v.type)}))}:B3(f),m=e.blocks.map((v,C)=>({block:v,index:C})).filter(({block:v})=>v.kind==="image"),y=p.attachments.filter(v=>v.image),x=(d=e.localFiles)==null?void 0:d.filter(v=>/\.(?:png|jpe?g|webp|gif)$/iu.test(v.name)||/^image\/(?:png|jpeg|webp|gif)$/.test(v.type));return c.jsx("div",{className:Qn.userRow,"data-message-role":"user",children:c.jsxs("div",{className:Qn.userStack,children:[(m.length>0||p.attachments.some(v=>!v.image))&&c.jsxs("div",{className:Qn.attachmentRow,"data-message-attachments":!0,children:[m.map(({index:v},C)=>{var k,P;return c.jsx(jw,{name:((k=y[C])==null?void 0:k.name)??((P=x==null?void 0:x[C])==null?void 0:P.name)??_("图片","Image"),messageId:e.id,index:v,file:x==null?void 0:x[C],tile:m.length>1||p.attachments.length>m.length,loadImage:i},v)}),p.attachments.filter(v=>!v.image).map((v,C)=>c.jsxs("span",{className:Qn.fileCard,title:v.name,children:[c.jsx($3,{path:v.name,className:Qn.fileIcon}),c.jsxs("span",{className:Qn.fileContent,children:[c.jsx("span",{className:Qn.fileName,children:v.name}),c.jsxs("span",{className:Qn.fileMeta,children:[v1(v.name).toUpperCase()," ",_("文件","file")]})]})]},`${v.name}-${C}`))]}),p.text&&c.jsx("div",{className:Qn.bubble,children:p.text})]})})}return c.jsx("div",{className:"pi-message","data-message-role":e.role,children:e.blocks.map((f,p)=>f.kind==="thinking"?c.jsx(rx,{text:f.text,running:o},p):f.kind==="toolCall"?c.jsx(Ly,{block:f,result:f.toolCallId?r.get(f.toolCallId):void 0,running:o,cwd:a,onInspect:f.toolCallId&&s?()=>s(f.toolCallId):void 0},f.toolCallId||p):f.kind==="image"?c.jsx("div",{className:"pi-image-note",children:f.text},p):c.jsx(T3,{text:f.text},p))})}function Zw({turn:e,results:r,model:i,loadImage:o,onInspect:s,running:a=!1,cwd:d}){const f=[...e.messages].reverse().find(j=>j.role==="assistant"&&j.blocks.some(V=>V.kind==="text"&&V.text.trim())),p=(f==null?void 0:f.blocks.filter(j=>j.kind==="text"))??[],m=[];for(const j of e.messages)j.role==="assistant"&&j.blocks.forEach((V,S)=>{j===f&&V.kind==="text"||m.push({message:j,block:V,index:S})});const[y,x]=E.useState(!1),v=m.filter(({block:j})=>j.kind==="toolCall").length,C=new Set(m.filter(({block:j})=>j.kind!=="toolCall").map(({message:j})=>j.id)).size,k=p.map(j=>j.text).join(`
|
|
90
|
+
`),P=a||y,R=e.messages.filter(j=>j.role==="assistant"&&j.error);return c.jsxs("div",{className:"pi-turn","data-turn":e.index,children:[e.messages.filter(j=>j.role==="user"||j.role==="notice").map(j=>c.jsx(Go,{message:j,results:r,loadImage:o},j.id)),m.length>0&&c.jsxs(c.Fragment,{children:[p.length>0&&c.jsx(Ny,{toolCount:v,messageCount:C,open:P,onToggle:()=>x(j=>!j)}),(P||p.length===0)&&c.jsx("div",{className:"pi-turn-process-content",children:m.map(({message:j,block:V,index:S})=>c.jsx(Go,{message:{...j,blocks:[V]},results:r,loadImage:o,running:j.id==="stream",cwd:d,onInspect:s},`${j.id}-${S}`))})]}),p.length>0&&f&&c.jsx(Go,{message:{...f,blocks:p},results:r,loadImage:o,running:f.id==="stream"}),e.messages.filter(j=>j.role==="tool"&&(!j.toolCallId||!r.has(j.toolCallId))).map(j=>c.jsx(Go,{message:j,results:r,loadImage:o},j.id)),R.map(j=>c.jsxs("div",{className:"pi-model-error",role:"alert",children:[c.jsx("strong",{children:_("模型请求失败","Model request failed")}),c.jsx("span",{children:/usage limit has been reached/i.test(j.error??"")?_("模型服务的使用额度已耗尽。请切换模型或等待额度恢复后重试。","The model service usage limit has been reached. Switch models or try again after the limit resets."):j.error})]},`${j.id}-error`)),!a&&R.length===0&&(f||e.usage&&e.usage.totalTokens>0)&&c.jsx(Py,{text:k,timestamp:f==null?void 0:f.timestamp,usage:e.usage,model:(f==null?void 0:f.model)??i})]})}function Qw({hero:e,session:r,connection:i,onSend:o,onUpload:s,onDiscardAttachment:a,onStop:d,onCompact:f,onNewSession:p,commands:m,models:y,modelsStatus:x,onConfigureModels:v,onSetModel:C,onSetThinkingLevel:k}){const P=Jn(),[R,j]=E.useState(""),[V,S]=E.useState(!1),[F,B]=E.useState(null),[T,ee]=E.useState(0),[ie,Y]=E.useState(0),[D,L]=E.useState([]),[Z,te]=E.useState(""),[W,$]=E.useState(!1),I=E.useRef(0),J=E.useRef(null),z=E.useRef(new Map),ne=E.useRef(new Set),b=E.useRef(D);b.current=D;const A=E.useRef(null),K=E.useRef(null),N=i==="connected"&&r!==null,ge=N&&x==="ready"&&y.length===0,ve=N&&y.some(re=>`${re.provider}/${re.id}`===r.model),fe=N&&r.idle&&!V,Ne=D.length===0&&["/compact","/new","/model"].includes(R.trim()),Ee=fe&&x==="ready"&&(ve||Ne)&&(R.trim().length>0||D.length>0)&&D.every(re=>re.status==="ready"),ze=N&&!r.idle&&!V,Ue=E.useMemo(()=>{const re=new Map;for(const Se of[...Aw(),...m])re.has(Se.name)||re.set(Se.name,Se);return[...re.values()].sort((Se,Q)=>Se.name.localeCompare(Q.name))},[m,P]),Oe=F==="slash"?R.slice(1).toLowerCase():"",rt=F===null?[]:Ue.filter(re=>re.name.toLowerCase().includes(Oe));E.useEffect(()=>(L([]),te(""),B(null),()=>{for(const re of b.current)ne.current.add(re.key);for(const re of z.current.values())re.abort();for(const re of b.current)re.receipt&&a(re.receipt.id).catch(()=>{});z.current.clear()}),[r==null?void 0:r.sessionId]),E.useEffect(()=>{if(F===null)return;const re=Se=>{var Q;Se.target instanceof Node&&!((Q=A.current)!=null&&Q.contains(Se.target))&&B(null)};return document.addEventListener("pointerdown",re,!0),()=>document.removeEventListener("pointerdown",re,!0)},[F]);const Et=async re=>{var Se;if(F==="slash"&&["model","compact","new"].includes(re.name)&&j(""),B(null),re.name==="model"){Y(Q=>Q+1);return}if(re.name==="compact"||re.name==="new"){S(!0);try{await(re.name==="compact"?f():p())}catch{}finally{S(!1)}return}j(`/${re.name} `),(Se=K.current)==null||Se.focus()},Dt=E.useCallback((re,Se)=>{const Q=new AbortController;z.current.set(re,Q),s(Se,Q.signal).then(xe=>{if(ne.current.has(re)){a(xe.id).catch(()=>{});return}L(Me=>Me.map(at=>at.key===re?{...at,status:"ready",receipt:xe,error:void 0}:at))}).catch(xe=>{if(ne.current.has(re))return;const Me=xe instanceof Error?xe.message:_("上传失败","Upload failed");te(Me),L(at=>at.map(He=>He.key===re?{...He,status:"error",error:Me}:He))}).finally(()=>{z.current.get(re)===Q&&z.current.delete(re)})},[s,a]),At=re=>{var Se;ne.current.add(re.key),(Se=z.current.get(re.key))==null||Se.abort(),re.receipt&&a(re.receipt.id).catch(()=>{}),re.status==="error"&&!D.some(Q=>Q.key!==re.key&&Q.status==="error")&&te(""),L(Q=>Q.filter(xe=>xe.key!==re.key))},jt=E.useCallback(re=>{if(!fe||re.length===0)return;const Se=Math.max(0,20-D.length),Q=re.slice(0,Se).filter(Me=>Me.size>0&&Me.size<=20*1024*1024);Q.length!==re.length?te(_("最多添加 20 个文件,单个文件不得超过 20 MB 且不能为空","Add up to 20 nonempty files, each no larger than 20 MB")):te("");const xe=Q.map(Me=>({key:crypto.randomUUID(),file:Me,status:"uploading"}));L(Me=>[...Me,...xe]),xe.forEach(Me=>Dt(Me.key,Me.file))},[D.length,fe,Dt]);E.useEffect(()=>{const re=He=>{var X;return((X=He.dataTransfer)==null?void 0:X.types.includes("Files"))??!1},Se=()=>{I.current=0,$(!1)},Q=He=>{re(He)&&(He.preventDefault(),I.current++,$(!0))},xe=He=>{re(He)&&(He.preventDefault(),He.dataTransfer&&(He.dataTransfer.dropEffect=fe?"copy":"none"))},Me=He=>{re(He)&&(I.current=Math.max(0,I.current-1),I.current===0&&$(!1))},at=He=>{var ae;if(!re(He))return;He.preventDefault();const X=[...((ae=He.dataTransfer)==null?void 0:ae.files)??[]];Se(),jt(X)};return document.addEventListener("dragenter",Q),document.addEventListener("dragover",xe),document.addEventListener("dragleave",Me),document.addEventListener("drop",at),window.addEventListener("dragend",Se),()=>{document.removeEventListener("dragenter",Q),document.removeEventListener("dragover",xe),document.removeEventListener("dragleave",Me),document.removeEventListener("drop",at),window.removeEventListener("dragend",Se)}},[fe,jt]);const Ft=async()=>{if(!Ee)return;S(!0);const re=R.trim(),Se=D;Ne||(j(""),L([]),K.current&&(K.current.style.height=""));try{Ne?(re==="/model"?Y(Q=>Q+1):await(re==="/compact"?f():p()),j("")):await o(re,Se.map(Q=>Q.receipt.id),Se.map(Q=>Q.file))}catch{Ne||(j(re),L(Se))}finally{S(!1)}},gn=async()=>{if(ze){S(!0);try{await d()}catch{}finally{S(!1)}}};return c.jsxs("div",{className:`${pn.root} ${e?pn.hero:""}`,children:[W&&c.jsx(Uw,{disabled:!fe,labels:{title:fe?_("松开以上传文件","Drop to upload files"):_("当前无法上传文件","Files cannot be uploaded now"),desc:fe?_("最多 20 个文件,每个不超过 20 MB","Up to 20 files, 20 MB each"):void 0}}),c.jsxs("form",{ref:A,className:pn.card,"data-composer-card":!0,onSubmit:re=>{re.preventDefault(),Ft()},children:[F!==null&&c.jsx(Fw,{commands:rt,active:T,onHover:ee,onPick:re=>{Et(re)}}),c.jsx("input",{ref:J,className:"pi-file-input",type:"file",multiple:!0,tabIndex:-1,"aria-label":_("选择要上传的文件","Choose files to upload"),onChange:re=>{jt([...re.target.files??[]]),re.target.value=""}}),D.length>0&&c.jsx("div",{className:"pi-attachment-rail",role:"group","aria-label":_("待发送附件","Pending attachments"),children:D.map(re=>c.jsx(kw,{file:re.file,status:re.status,error:re.error,onRemove:()=>At(re),onRetry:()=>{te(""),L(Se=>Se.map(Q=>Q.key===re.key?{...Q,status:"uploading",error:void 0}:Q)),Dt(re.key,re.file)}},re.key))}),c.jsx("div",{className:pn.scroll,"data-input-scroll":!0,children:c.jsx("div",{className:pn.grow,children:c.jsx("textarea",{ref:K,className:"pi-editor","aria-label":_("给当前 Pi 会话发送消息","Send a message to the current Pi session"),placeholder:ge?_("先连接模型,再开始对话","Connect a model to start chatting"):N&&x==="ready"&&!ve?_("先选择模型,再开始对话","Choose a model to start chatting"):N?_("给 Pi 发送消息","Message Pi"):_("打开 Pi 中 /web 给出的完整地址","Open the full address provided by /web in Pi"),value:R,onChange:re=>{const Se=re.target.value;j(Se),/^\/[^\s]*$/.test(Se)?(B("slash"),ee(0)):F==="slash"&&B(null),re.target.style.height="auto",re.target.style.height=`${Math.min(re.target.scrollHeight,336)}px`},onPaste:re=>{const Se=[...re.clipboardData.files];Se.length&&(re.preventDefault(),jt(Se))},onKeyDown:re=>{if(F!==null){if(re.key==="Escape"){re.preventDefault(),B(null);return}if(re.key==="ArrowDown"||re.key==="ArrowUp"){re.preventDefault(),ee(Se=>(Se+(re.key==="ArrowDown"?1:-1)+rt.length)%Math.max(rt.length,1));return}if(re.key==="Enter"&&rt[T]){re.preventDefault(),Et(rt[T]);return}}re.key==="Enter"&&!re.shiftKey&&!re.nativeEvent.isComposing&&(re.preventDefault(),Ft())}})})}),c.jsxs("div",{className:pn.row,children:[c.jsxs("div",{className:pn.tools,children:[c.jsx("button",{className:pn.add,type:"button","aria-label":_("添加指令","Add command"),title:_("添加指令","Add command"),"aria-haspopup":"listbox","aria-expanded":F!==null,disabled:!fe,onMouseDown:re=>re.preventDefault(),onClick:()=>{var re;B(F===null?"button":null),ee(0),(re=K.current)==null||re.focus()},children:c.jsx(Ku,{size:16})}),c.jsx("button",{className:pn.add,type:"button","aria-label":_("添加文件","Add file"),title:_("添加文件","Add file"),disabled:!fe,onClick:()=>{var re;return(re=J.current)==null?void 0:re.click()},children:c.jsx(L5,{size:16})}),c.jsx("span",{className:"pi-input-context",children:_("当前 Pi 会话","Current Pi session")})]}),c.jsxs("div",{className:pn.trailing,children:[ge?c.jsx("button",{className:"pi-model-setup-trigger",type:"button",onClick:v,children:_("配置模型","Set up a model")}):c.jsx(vC,{openSignal:ie,current:(r==null?void 0:r.model)??null,models:y,disabled:!N||!(r!=null&&r.idle),onSelect:C,thinkingLevel:(r==null?void 0:r.thinkingLevel)??null,thinkingLevels:(r==null?void 0:r.thinkingLevels)??[],onSelectThinkingLevel:k}),ze?c.jsx("button",{className:pn.primary,type:"button","aria-label":_("停止运行","Stop running"),onClick:()=>{gn()},children:c.jsx("svg",{viewBox:"0 0 16 16",width:"16",height:"16","aria-hidden":"true",children:c.jsx("rect",{x:"3",y:"3",width:"10",height:"10",rx:"3",fill:"currentColor"})})}):c.jsx("button",{className:pn.primary,type:"submit","aria-label":_("发送消息","Send message"),disabled:!Ee,children:c.jsx("svg",{viewBox:"0 0 16 16",width:"16",height:"16","aria-hidden":"true",children:c.jsx("path",{d:"M8.3125 0.980183C8.66767 1.0531 8.97902 1.20418 9.2627 1.43233C9.48724 1.61297 9.73029 1.85793 9.97949 2.10714L14.707 6.83468L13.293 8.24874L9 3.95577V15.0417H7V3.95577L2.70703 8.24874L1.29297 6.83468L6.02051 2.10714C6.26971 1.85793 6.51277 1.61297 6.7373 1.43233C6.97662 1.23986 7.28445 1.04402 7.6875 0.980183C7.8973 0.947006 8.1031 0.95516 8.3125 0.980183Z",fill:"currentColor"})})})]})]})]}),Z&&c.jsx("div",{className:"pi-error",role:"alert",children:Z})]})}function Gw({session:e,streaming:r,connection:i,error:o,onSend:s,onLoadImage:a,onUpload:d,onDiscardAttachment:f,onStop:p,onCompact:m,onNewSession:y,commands:x,models:v,modelsStatus:C,onConfigureModels:k,onSetModel:P,onSetThinkingLevel:R}){const[j,V]=E.useState("chat"),[S,F]=E.useState(null),[B,T]=E.useState(null),ee=B&&(e==null?void 0:e.sessionId)===B.sessionId&&e.messages.some(b=>b.role==="user"&&!B.knownIds.has(b.id)&&B3(b.blocks.filter(A=>A.kind==="text").map(A=>A.text).join(`
|
|
91
|
+
`)).text===B.text);E.useEffect(()=>{B&&(ee||e&&e.sessionId!==B.sessionId)&&T(null)},[B,ee,e==null?void 0:e.sessionId]);const ie=B&&!ee&&(e==null?void 0:e.sessionId)===B.sessionId?{id:B.id,role:"user",timestamp:B.timestamp,blocks:[{kind:"text",text:B.text},...B.files.filter(b=>/\.(?:png|jpe?g|webp|gif)$/iu.test(b.name)||/^image\/(?:png|jpeg|webp|gif)$/.test(b.type)).map(()=>({kind:"image",text:""}))],localFiles:B.files}:null,Y=e===null||e.messages.length===0&&r===null&&ie===null,D=async(b,A,K)=>{if(!e)return;const N=`pending-${crypto.randomUUID()}`;T({id:N,sessionId:e.sessionId,text:b,files:K,knownIds:new Set(e.messages.map(ge=>ge.id)),timestamp:new Date().toISOString()});try{await s(b,A)}catch(ge){throw T(ve=>(ve==null?void 0:ve.id)===N?null:ve),ge}},L=E.useRef(null),Z=E.useRef(null),[te,W]=E.useState(0);E.useLayoutEffect(()=>{const b=L.current;if(!b)return;const A=()=>W(b.getBoundingClientRect().width);A();const K=new ResizeObserver(A);return K.observe(b),()=>K.disconnect()},[]),E.useEffect(()=>{!Y&&Z.current&&(Z.current.scrollTop=Z.current.scrollHeight)},[Y,e==null?void 0:e.messages.length,r==null?void 0:r.blocks,ie==null?void 0:ie.id]);const $=(e==null?void 0:e.cwd.split(/[\\/]/).filter(Boolean).at(-1))||_("Pi 工作区","Pi workspace"),I=[...(e==null?void 0:e.messages)??[],...ie?[ie]:[],...r?[r]:[]],J=My(I),z=A3(I),ne=b=>({"hero.headline":_("有什么可以帮你?","How can I help?"),"hero.preview":"Pi"})[b]??b;return c.jsxs("div",{ref:L,className:ht.root,"data-phase":Y?"hero":"active",style:{"--piw-conversation-column-width":`${te}px`},children:[e&&!Y&&c.jsxs("header",{className:ht.header,children:[c.jsxs("div",{className:ht.titleRow,children:[c.jsx("div",{className:ht.titleCluster,children:c.jsx("div",{className:ht.crumbs,children:c.jsx("span",{className:`${ht.crumb} ${ht.crumbCurrent}`,children:e.name})})}),c.jsxs("div",{className:ht.headerActions,children:[c.jsx(Gu,{state:i==="connected"?e.idle?"done":"ongoing":"error"}),c.jsx("span",{className:"pi-header-state",children:i==="connected"?e.idle?_("已连接","Connected"):_("运行中","Running"):_("已断开","Disconnected")})]})]}),c.jsxs("div",{className:ht.tabs,role:"tablist","aria-label":_("会话视图","Session views"),children:[c.jsx("button",{className:`${ht.tab} ${j==="chat"?ht.tabActive:""}`,role:"tab","aria-selected":j==="chat",type:"button",onClick:()=>V("chat"),children:_("对话","Chat")}),c.jsx("button",{className:`${ht.tab} ${j==="trajectory"?ht.tabActive:""}`,role:"tab","aria-selected":j==="trajectory",type:"button",onClick:()=>V("trajectory"),children:_("轨迹","Trajectory")})]})]}),c.jsx("div",{className:ht.body,children:c.jsxs("div",{ref:Z,className:ht.scrollBody,"data-conversation-scroll":"",children:[!Y&&c.jsx("div",{className:ht.viewArea,children:j==="chat"?c.jsx("div",{className:ru.root,children:c.jsx("div",{className:ru.scroll,children:c.jsx("div",{className:ru.column,children:c.jsx(c.Fragment,{children:z.map(b=>c.jsx(Zw,{turn:b,results:J,model:(e==null?void 0:e.model)??null,loadImage:a,cwd:e==null?void 0:e.cwd,running:b.messages.some(A=>A.id==="stream"),onInspect:A=>{F(A),V("trajectory")}},b.id))})})})}):c.jsx(Yv,{messages:I,inspectCallId:S})}),c.jsx("div",{className:ht.composerSeat,"data-composer-seat":"",children:c.jsxs("div",{className:`${ht.composerStack} ${Y?ht.composerHero:""}`,children:[Y&&c.jsx(Sp,{t:ne,renderSlot:(b,A,K)=>(K==null?void 0:K.fallback)??null}),Y&&c.jsx("div",{className:ht.heroWorkspaceRow,children:c.jsxs("span",{className:Sn.workspace,children:[c.jsx(Xu,{size:16}),c.jsx("span",{className:Sn.workspaceLabel,children:$})]})}),c.jsx(Qw,{hero:Y,session:e,connection:i,onSend:D,onUpload:d,onDiscardAttachment:f,onStop:p,onCompact:m,onNewSession:y,commands:x,models:v,modelsStatus:C,onConfigureModels:k,onSetModel:P,onSetThinkingLevel:R}),o&&c.jsx("div",{className:"pi-error",role:"alert",children:o})]})})]})})]})}const Kw="_button_cfgyt_4",Yw="_md_cfgyt_24",Xw="_sm_cfgyt_30",Jw="_primary_cfgyt_38",ek="_ghost_cfgyt_47",tk="_outline_cfgyt_56",nk="_toolbar_cfgyt_65",rk="_icon_cfgyt_73",Ko={button:Kw,md:Yw,sm:Xw,primary:Jw,ghost:ek,outline:tk,toolbar:nk,icon:rk};function Yn({variant:e="ghost",size:r="md",icon:i,className:o,children:s,...a}){return c.jsxs("button",{type:"button",className:st(Ko.button,Ko[e],Ko[r],o),...a,children:[i!=null&&c.jsx("span",{className:Ko.icon,children:i}),s]})}const ik="_root_w1urq_2",lk="_mask_w1urq_14",ok="_dialog_w1urq_22",sk="_content_w1urq_37",ak="_header_w1urq_45",uk="_title_w1urq_53",ck="_close_w1urq_61",dk="_description_w1urq_80",fk="_body_w1urq_89",pk="_footer_w1urq_97",zn={root:ik,mask:lk,dialog:ok,content:sk,header:ak,title:uk,close:ck,description:dk,body:fk,footer:pk};function Wu({open:e,onClose:r,title:i,closeLabel:o,description:s,children:a,footer:d,className:f,contentClassName:p,headless:m=!1}){return E.useEffect(()=>{if(!e)return;const y=x=>{x.key==="Escape"&&r()};return document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}},[e,r]),e?Il.createPortal(c.jsxs("div",{className:zn.root,role:"presentation",children:[c.jsx("div",{className:zn.mask,"aria-hidden":"true",onClick:r}),c.jsx("div",{className:st(zn.dialog,f),role:"dialog","aria-modal":"true","aria-label":i,children:m?a:c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:st(zn.content,p),children:[c.jsxs("div",{className:zn.header,children:[c.jsx("h2",{className:zn.title,children:i}),c.jsx("button",{type:"button",className:zn.close,"aria-label":o,onClick:r,children:c.jsx(as,{size:14})})]}),s!==void 0&&s!==""&&c.jsx("p",{className:zn.description,children:s}),a!==void 0&&c.jsx("div",{className:zn.body,children:a})]}),d!==void 0&&c.jsx("div",{className:zn.footer,children:d})]})})]}),document.body):null}const hk="_dialog_s0tgk_1",mk="_editorScope_s0tgk_21",gk="_header_s0tgk_26",xk="_title_s0tgk_35",yk="_crumbBar_s0tgk_51",vk="_crumbEditZone_s0tgk_65",Ck="_pathInput_s0tgk_67",wk="_millerRow_s0tgk_78",kk="_crumbTrail_s0tgk_91",_k="_crumbSeat_s0tgk_101",bk="_crumb_s0tgk_51",Sk="_crumbChevron_s0tgk_128",Ek="_crumbEditGlyph_s0tgk_151",jk="_content_s0tgk_187",Lk="_column_s0tgk_186",Nk="_divider_s0tgk_216",Ik="_rowSeat_s0tgk_222",Pk="_row_s0tgk_222",Mk="_rowSelected_s0tgk_247",Tk="_rowIcon_s0tgk_252",zk="_rowIconSelected_s0tgk_257",Rk="_rowName_s0tgk_262",Dk="_rowChevron_s0tgk_274",Ak="_status_s0tgk_279",Fk="_error_s0tgk_280",Ok="_loadingFloat_s0tgk_192",$k="_footerBar_s0tgk_317",Bk="_showHiddenToggle_s0tgk_333",Hk="_showHiddenToggleActive_s0tgk_357",Vk="_footerGap_s0tgk_361",Uk="_footerAction_s0tgk_365",Wk="_createDialog_s0tgk_370",qk="_createBody_s0tgk_376",Zk="_createTitle_s0tgk_383",Qk="_createIn_s0tgk_391",Gk="_createInput_s0tgk_398",Kk="_createActions_s0tgk_416",Re={dialog:hk,editorScope:mk,header:gk,title:xk,crumbBar:yk,crumbEditZone:vk,pathInput:Ck,millerRow:wk,crumbTrail:kk,crumbSeat:_k,crumb:bk,crumbChevron:Sk,crumbEditGlyph:Ek,content:jk,column:Lk,divider:Nk,rowSeat:Ik,row:Pk,rowSelected:Mk,rowIcon:Tk,rowIconSelected:zk,rowName:Rk,rowChevron:Dk,status:Ak,error:Fk,loadingFloat:Ok,footerBar:$k,showHiddenToggle:Bk,showHiddenToggleActive:Hk,footerGap:Vk,footerAction:Uk,createDialog:Wk,createBody:qk,createTitle:Zk,createIn:Qk,createInput:Gk,createActions:Kk};function Yo(e){if(e!==null&&typeof e=="object"&&"rpcError"in e){const r=e.rpcError;if(r!==null&&typeof r=="object"&&"message"in r&&typeof r.message=="string")return r.message}return e instanceof Error?e.message:String(e)}const Yk=300,Xk=200,Jk=250;function ju(e,r){const i=e.crumbs.findIndex(s=>s.path===e.home);if(i===-1)return e.crumbs;const o=e.crumbs.slice(i+1);return[{name:r,path:e.home,hidden:!1},...o]}function os(e){return e.home.includes("\\")?"\\":"/"}function e_(e){const r=os(e);return e.path.endsWith(r)?e.path:`${e.path}${r}`}function t_(e,r){const i=os(e)==="\\"?Math.max(r.lastIndexOf("\\"),r.lastIndexOf("/")):r.lastIndexOf("/");return i===-1?null:r.slice(0,i+1)}function pd(e,r,i){const o=t_(e,r);if(o===null)return{directory:null,tail:null};const s=o===e_(e)||i!==null&&i.directory===o&&i.landed===e.path;return{directory:o,tail:s?r.slice(o.length):null}}function n_(e,r,i,o){const s=o===null?"":o.toLowerCase(),a=p=>i||!p.hidden||s.startsWith("."),d=p=>a(p)&&p.name.toLowerCase().startsWith(s),f=s!==""&&e.some(d);return e.filter(p=>p.path===r?!0:f?d(p):i||!p.hidden)}function hd({entries:e,selectedPath:r,busy:i,onPick:o,showHidden:s,filterPrefix:a,pathEditing:d}){const f=n_(e,r,s,a);return c.jsx("div",{className:Re.column,role:"list",children:f.map(p=>{const m=p.path===r;return c.jsx("span",{role:"listitem",className:Re.rowSeat,children:c.jsxs("button",{type:"button","aria-current":m||void 0,className:st(Re.row,m&&Re.rowSelected),disabled:i,onMouseDown:d?y=>{y.preventDefault()}:void 0,onClick:()=>{o(p)},children:[m?c.jsx(Xu,{size:16,className:Re.rowIconSelected}):c.jsx(M5,{size:16,className:Re.rowIcon}),c.jsx("span",{className:Re.rowName,children:p.name}),c.jsx(ts,{size:12,className:Re.rowChevron})]})},p.path)})})}function r_({open:e,listDirectory:r,createDirectory:i,onOpen:o,onClose:s,busy:a,t:d}){var ft,on;const[f,p]=E.useState(null),[m,y]=E.useState(null),[x,v]=E.useState(null),[C,k]=E.useState(!1),[P,R]=E.useState(!1),[j,V]=E.useState(0),[S,F]=E.useState(null),[B,T]=E.useState(null),[ee,ie]=E.useState(!1),[Y,D]=E.useState(null),[L,Z]=E.useState(!1),[te,W]=E.useState(null),$=E.useRef(0),I=E.useRef(null),J=E.useRef(0),z=E.useRef(null),ne=E.useRef(!1);E.useEffect(()=>()=>{var de;$.current+=1,J.current+=1,(de=I.current)==null||de.abort()},[]);const b={onCompositionStart:()=>{ne.current=!0},onCompositionEnd:()=>{ne.current=!1}},A=E.useCallback(()=>{var de;return(de=I.current)==null||de.abort(),I.current=null,++$.current},[]),K=E.useCallback(()=>{R(!1),V(de=>de+1)},[]),N=E.useCallback(de=>{const Te=A(),Ge=new AbortController;return I.current=Ge,K(),{seq:Te,scan:r(de,Ge.signal)}},[A,K,r]),ge=E.useCallback(de=>{const Te=new AbortController;return I.current=Te,K(),r(de,Te.signal)},[K,r]),ve=E.useRef(!1),fe=E.useRef({parent:null,child:null});E.useEffect(()=>{fe.current={parent:f,child:x}},[f,x]);const Ne=E.useRef(null),Ee=E.useRef(!1),ze=E.useCallback((de,Te)=>{const{seq:Ge,scan:Qe}=N(de);k(!0),Te.announce&&F(null);const Ot=()=>{if(k(!1),Te.closeEditor){T(null);return}F(null),Ee.current=!0};Qe.then(Xe=>{if(Ge!==$.current)return;!Te.closeEditor&&de!==void 0&&(Ne.current={directory:de,landed:Xe.path});let Sr=!1;const Fn=()=>{Sr||Ge!==$.current||(Sr=!0,p(Xe),y(null),v(null),Ot())};if(ju(Xe,"").length<2){Fn();return}const On=Xe.crumbs.at(-2);if(On===void 0){Fn();return}ge(On.path).then(jn=>{if(Ge!==$.current)return;const Pl=os(jn),Si=Er=>Pl==="\\"?Er.toLowerCase():Er,Ei=jn.entries.find(Er=>Si(Er.path)===Si(Xe.path));if(Ei===void 0){Fn();return}Sr=!0,p(jn),y(Ei),v(Xe),Ot()},()=>{Fn()}),Te.closeEditor&&window.setTimeout(Fn,Xk)},Xe=>{Ge===$.current&&(k(!1),Te.announce&&F(Yo(Xe)))})},[N,ge]),Ue=E.useCallback(de=>{ze(de,{closeEditor:!0,announce:!0})},[ze]),Oe=E.useRef(!1),rt=E.useRef(!1),Et=E.useRef(null),Dt=E.useRef(null),At=E.useCallback(de=>{const{seq:Te,scan:Ge}=N(de.path);B!==null&&(Oe.current=!0),T(null),y(de),v(null),k(!0),F(null),Ge.then(Qe=>{Te===$.current&&(v(Qe),k(!1))},Qe=>{Te===$.current&&(k(!1),F(Yo(Qe)),y(null),rt.current=!0)})},[N,B]),jt=E.useCallback(de=>{ze(de,{closeEditor:!1,announce:!1})},[ze]),Ft=E.useCallback(()=>{A(),k(!1),T(null),F(null),x===null&&y(null),f===null&&Ue()},[A,x,f,Ue]),gn=E.useCallback(de=>{x!==null&&(p(x),At(de))},[x,At]);E.useEffect(()=>{if(J.current+=1,e){p(null),y(null),v(null),Z(!1),ie(!1),Ue();return}A(),k(!1),F(null),T(null),D(null),W(null),Oe.current=!1,rt.current=!1},[e,Ue,A]);const re=(m==null?void 0:m.path)??(f==null?void 0:f.path)??null,Se=(m==null?void 0:m.name)??(f===null?"":((ft=ju(f,d("browser.home")).at(-1))==null?void 0:ft.name)??f.path),Q=()=>{if(re===null||Y===null||L)return;const de=Y;if(de.trim()==="")return;Z(!0),W(null);const Te=J.current;i(re,de).then(Ge=>{if(Te!==J.current)return;Z(!1),D(null);const{seq:Qe,scan:Ot}=N(re);k(!0),F(null),Ot.then(Xe=>{Qe===$.current&&(p(Xe),k(!1),At({name:de,path:Ge,hidden:!1}))},Xe=>{Qe===$.current&&(k(!1),F(Yo(Xe)))})},Ge=>{Te===J.current&&(Z(!1),W(Yo(Ge)))})};E.useEffect(()=>{if(!C){R(!1);return}const de=window.setTimeout(()=>{R(!0)},Yk);return()=>{window.clearTimeout(de)}},[C,j]),E.useEffect(()=>{if(B===null)return;const de=window.setTimeout(()=>{if(ve.current)return;const Te=fe.current.child??fe.current.parent;if(Te===null)return;const{directory:Ge,tail:Qe}=pd(Te,B,Ne.current);Ge===null||Qe!==null||jt(Ge)},Jk);return()=>{window.clearTimeout(de)}},[B,jt]);const xe=x??f,Me=xe===null||B===null?null:pd(xe,B,Ne.current).tail,at=xe===null?[]:ju(xe,d("browser.home")),He=(on=at.at(-1))==null?void 0:on.path;E.useEffect(()=>{const de=z.current;de!==null&&(de.scrollLeft=de.scrollWidth)},[He]);const X=E.useRef(null),ae=x==null?void 0:x.path;if(E.useEffect(()=>{const de=X.current;de!==null&&ae!==void 0&&(de.scrollLeft=de.scrollWidth)},[ae]),E.useEffect(()=>{var de;if(Ee.current&&(Ee.current=!1,document.activeElement===document.body&&((de=Et.current)==null||de.focus())),B===null){if(Oe.current){Oe.current=!1,rt.current=!1;const Te=X.current;if(Te===null)return;const Ge=Te.querySelector('button[aria-current="true"]');if(Ge===null)return;Ge.focus();return}if(rt.current){if(rt.current=!1,document.activeElement!==document.body)return;const Te=Dt.current;if(Te===null)return;Te.focus()}}}),!e)return null;const we=m!==null,je=a||Y!==null,De=B!==null;return c.jsxs(Wu,{open:e,onClose:()=>{Y===null&&!a&&s()},title:d("browser.title"),className:st(Re.dialog),headless:!0,children:[c.jsxs("div",{className:Re.editorScope,onKeyDown:de=>{de.key!=="Escape"||B===null||(de.stopPropagation(),rt.current=document.activeElement===Et.current,Ft())},onBlur:de=>{if(B===null||!document.hasFocus())return;const Te=de.currentTarget.closest('[role="dialog"]');Te!==null&&(de.relatedTarget instanceof Node&&Te.contains(de.relatedTarget)||(rt.current=!1,Ft()))},children:[c.jsxs("div",{className:Re.header,children:[c.jsx("h2",{className:Re.title,children:d("browser.title")}),c.jsx("div",{className:Re.crumbBar,children:B===null?c.jsxs(c.Fragment,{children:[c.jsx("span",{className:Re.crumbTrail,role:"navigation",ref:z,children:at.map((de,Te)=>c.jsxs("span",{className:Re.crumbSeat,children:[Te>0&&c.jsx(ts,{size:12,className:Re.crumbChevron}),c.jsx("button",{type:"button",className:Re.crumb,disabled:je,onClick:()=>{Ue(de.path)},children:de.name})]},de.path))}),c.jsx("button",{type:"button",className:Re.crumbEditZone,"aria-label":d("browser.editPath"),title:d("browser.editPath"),disabled:je,ref:Dt,onClick:()=>{if(A(),k(!1),ve.current=!1,f===null){T("");return}const de=(m==null?void 0:m.path)??f.path,Te=os(f);T(de.endsWith(Te)?de:`${de}${Te}`)},children:c.jsx(E5,{size:14,className:Re.crumbEditGlyph})})]}):c.jsx("input",{className:Re.pathInput,value:B,"aria-label":d("browser.editPath"),autoFocus:!0,ref:Et,disabled:je,onChange:de=>{A(),k(!1),ve.current=!1,T(de.target.value)},...b,onKeyDown:de=>{de.key==="Enter"&&!ne.current&&(de.preventDefault(),B.trim()!==""&&(rt.current=!0,ve.current=!0,Ue(B)))}})})]}),c.jsxs("div",{className:Re.content,children:[c.jsxs("div",{className:Re.millerRow,ref:X,children:[f!==null&&c.jsx(hd,{entries:f.entries,selectedPath:(m==null?void 0:m.path)??null,busy:je,onPick:At,showHidden:ee,filterPrefix:x===null?Me:null,pathEditing:De}),we&&c.jsx("span",{className:Re.divider}),we&&x!==null&&c.jsx(hd,{entries:x.entries,selectedPath:null,busy:je,onPick:gn,showHidden:ee,filterPrefix:Me,pathEditing:De})]}),C&&P&&c.jsx("div",{className:st(Re.status,Re.loadingFloat),role:"status",children:d("browser.loading")}),((f==null?void 0:f.truncated)===!0||(x==null?void 0:x.truncated)===!0)&&c.jsx("div",{className:Re.status,role:"status",children:d("browser.truncated")}),S!==null&&c.jsx("div",{className:Re.error,role:"alert",children:S})]}),c.jsxs("div",{className:Re.footerBar,children:[c.jsx(Yn,{variant:"outline",icon:c.jsx(Ku,{size:14}),disabled:f===null||C||je||De,onClick:()=>{D(""),W(null)},children:d("browser.newFolder")}),c.jsxs("button",{type:"button",className:st(Re.showHiddenToggle,ee&&Re.showHiddenToggleActive),"aria-pressed":ee,disabled:je,onMouseDown:De?de=>{de.preventDefault()}:void 0,onClick:()=>{ie(de=>!de)},children:[d("browser.showHidden"),ee&&c.jsx(Nu,{size:14})]}),c.jsx("span",{className:Re.footerGap}),c.jsx(Yn,{variant:"outline",className:st(Re.footerAction),disabled:je,onClick:s,children:d("browser.cancel")}),c.jsx(Yn,{variant:"primary",className:st(Re.footerAction),disabled:re===null||C||je||De,onClick:()=>{re!==null&&o(re)},children:d("browser.open")})]})]}),c.jsx(Wu,{open:Y!==null,onClose:()=>{L||D(null)},title:d("browser.newFolder"),className:st(Re.createDialog),headless:!0,children:c.jsxs("div",{className:Re.createBody,children:[c.jsx("h3",{className:Re.createTitle,children:d("browser.newFolder")}),c.jsx("p",{className:Re.createIn,children:d("browser.createIn",{name:Se})}),c.jsx("input",{className:Re.createInput,value:Y??"","aria-label":d("browser.folderName"),placeholder:d("browser.untitledFolder"),autoFocus:!0,disabled:L,onChange:de=>{D(de.target.value)},...b,onKeyDown:de=>{de.key==="Enter"&&!ne.current&&(de.preventDefault(),Q()),de.key==="Escape"&&(de.stopPropagation(),L||D(null))}}),te!==null&&c.jsx("div",{className:Re.error,role:"alert",children:te}),c.jsxs("div",{className:Re.createActions,children:[c.jsx(Yn,{variant:"outline",disabled:L,onClick:()=>{D(null)},children:d("browser.cancel")}),c.jsx(Yn,{variant:"primary",disabled:L||Y===null||Y.trim()==="",onClick:Q,children:d("browser.create")})]})]})})]})}const i_="_root_x0rn4_1",l_="_rail_x0rn4_13",o_="_iconButton_x0rn4_17",s_="_sectionHeader_x0rn4_39",a_="_sectionLabel_x0rn4_59",u_="_sectionLabelHidden_x0rn4_76",c_="_searchSlot_x0rn4_85",d_="_searchSlotExpanded_x0rn4_99",f_="_headerActions_x0rn4_104",p_="_headerActionsHidden_x0rn4_120",h_="_search_x0rn4_85",m_="_searchExpanded_x0rn4_155",g_="_searchButton_x0rn4_166",x_="_searchInput_x0rn4_195",y_="_clearButton_x0rn4_220",v_="_listArea_x0rn4_282",C_="_treeBody_x0rn4_302",w_="_wide_x0rn4_323",k_="_list_x0rn4_282",vt={root:i_,rail:l_,iconButton:o_,sectionHeader:s_,sectionLabel:a_,sectionLabelHidden:u_,searchSlot:c_,searchSlotExpanded:d_,headerActions:f_,headerActionsHidden:p_,search:h_,searchExpanded:m_,searchButton:g_,searchInput:x_,clearButton:y_,listArea:v_,treeBody:C_,wide:w_,list:k_},__="_projectRow_1j5ag_1",b_="_sessionRow_1j5ag_2",S_="_selected_1j5ag_18",E_="_title_1j5ag_112",j_="_slot_1j5ag_124",Br={projectRow:__,sessionRow:b_,selected:S_,title:E_,slot:j_},L_="_group_sxk9x_1",N_="_workspaceLine_sxk9x_2",I_="_workspaceButton_sxk9x_3",P_="_active_sxk9x_4",M_="_folder_sxk9x_5",T_="_chevron_sxk9x_6",z_="_chevronOpen_sxk9x_7",R_="_sessionButton_sxk9x_10",D_="_rowAction_sxk9x_11",A_="_error_sxk9x_14",bn={group:L_,workspaceLine:N_,workspaceButton:I_,active:P_,folder:M_,chevron:T_,chevronOpen:z_,sessionButton:R_,rowAction:D_,error:A_},F_=(e,r)=>({"browser.title":_("选择工作区目录","Select workspace directory"),"browser.home":_("主目录","Home"),"browser.newFolder":_("新建文件夹","New folder"),"browser.folderName":_("文件夹名称","Folder name"),"browser.createIn":_('在"{name}"中新建文件夹','Create folder in "{name}"'),"browser.untitledFolder":_("未命名文件夹","Untitled folder"),"browser.create":_("创建","Create"),"browser.cancel":_("取消","Cancel"),"browser.open":_("打开","Open"),"browser.editPath":_("编辑路径","Edit path"),"browser.loading":_("加载中…","Loading…"),"browser.truncated":_("文件夹过多,仅显示开头部分。","Too many folders; only the first few are shown."),"browser.showHidden":_("显示隐藏文件","Show hidden files")}[e]??e).replace(/\{(\w+)\}/g,(o,s)=>(r==null?void 0:r[s])??"");function O_({wide:e,expandSidebar:r,session:i,workspaces:o,onAdd:s,directoryPickerKind:a,pickDirectory:d,listDirectory:f,createDirectory:p,onRemove:m,onSelectSession:y,onNewSession:x}){const[v,C]=E.useState(!1),[k,P]=E.useState(!1),[R,j]=E.useState(""),[V,S]=E.useState(""),[F,B]=E.useState(!1),[T,ee]=E.useState(""),[ie,Y]=E.useState(new Set);E.useEffect(()=>{o.activeId&&Y($=>$.has(o.activeId)?$:new Set([...$,o.activeId]))},[o.activeId]);const D=E.useRef(null),L=T.trim().toLocaleLowerCase(),Z=async $=>{P(!0),j("");try{await $()}catch(I){j(I instanceof Error?I.message:_("操作失败","Operation failed"))}finally{P(!1)}},te=async $=>{P(!0);try{await s($,!1),C(!1)}catch(I){C(!1),S(I instanceof Error?I.message:String(I))}finally{P(!1)}},W=async()=>{if(a!==null){if(e||r(),j(""),a==="browse"){C(!0);return}P(!0);try{const $=await d();$!==null&&await te($)}catch($){S($ instanceof Error?$.message:String($))}finally{P(!1)}}};return c.jsxs("div",{className:`${vt.root} ${e?"":vt.rail}`,children:[c.jsxs("div",{className:vt.sectionHeader,children:[e&&c.jsx("span",{className:`${vt.sectionLabel} ${vt.wide} ${F?vt.sectionLabelHidden:""}`,children:_("工作区","Workspaces")}),e&&c.jsx("div",{className:`${vt.searchSlot} ${F?vt.searchSlotExpanded:""}`,children:c.jsxs("div",{className:`${vt.search} ${F?vt.searchExpanded:""}`,onClick:()=>{var $;B(!0),($=D.current)==null||$.focus()},children:[c.jsx("button",{type:"button",className:vt.searchButton,"aria-label":_("搜索工作区和会话","Search workspaces and sessions"),"aria-expanded":F,onClick:()=>{var $;B(!0),($=D.current)==null||$.focus()},children:c.jsx(_d,{size:F?11:14})}),c.jsx("input",{ref:D,className:vt.searchInput,type:"search",placeholder:_("搜索工作区和会话","Search workspaces and sessions"),maxLength:120,value:T,tabIndex:F?0:-1,onChange:$=>ee($.target.value),onKeyDown:$=>{$.key==="Escape"&&(ee(""),B(!1))}}),F&&c.jsx("button",{type:"button",className:vt.clearButton,"aria-label":_("关闭搜索","Close search"),onClick:$=>{$.stopPropagation(),ee(""),B(!1)},children:c.jsx(Yu,{})})]})}),c.jsx("div",{className:`${vt.headerActions} ${e&&F?vt.headerActionsHidden:""}`,children:c.jsx("button",{type:"button",className:vt.iconButton,"aria-label":_("添加工作区","Add workspace"),title:_("添加工作区","Add workspace"),disabled:k||a===null,onClick:()=>{W()},children:c.jsx(P5,{size:e?16:18})})})]}),e&&c.jsx("div",{className:vt.listArea,children:c.jsx("div",{className:vt.treeBody,children:c.jsxs("div",{className:vt.list,role:"tree","aria-label":_("工作区","Workspaces"),children:[o.items.filter($=>!L||$.title.toLocaleLowerCase().includes(L)||$.path.toLocaleLowerCase().includes(L)||o.sessions.some(I=>I.workspaceId===$.id&&I.name.toLocaleLowerCase().includes(L))).map($=>{const I=$.id===o.activeId,J=ie.has($.id)||!!L;return c.jsxs("div",{className:bn.group,role:"group",children:[c.jsxs("div",{className:bn.workspaceLine,children:[c.jsxs("button",{type:"button",className:`${Br.projectRow} ${bn.workspaceButton} ${I?bn.active:""}`,role:"treeitem","aria-expanded":J,title:$.path,disabled:k,onClick:()=>Y(z=>{const ne=new Set(z);return ne.has($.id)?ne.delete($.id):ne.add($.id),ne}),children:[c.jsxs("span",{className:Br.slot,children:[c.jsx("span",{className:bn.folder,children:c.jsx(Xu,{size:16})}),c.jsx("span",{className:`${bn.chevron} ${J?bn.chevronOpen:""}`,children:c.jsx(kl,{size:14})})]}),c.jsx("span",{className:Br.title,children:$.title})]}),c.jsx("button",{type:"button",className:bn.rowAction,title:_("新建会话","New session"),"aria-label":_(`在 ${$.title} 新建会话`,`Create a session in ${$.title}`),disabled:k,onClick:()=>{Z(()=>x($.id))},children:c.jsx(Ku,{size:16})}),!I&&c.jsx("button",{type:"button",className:bn.rowAction,title:_("从列表移除工作区","Remove workspace from list"),"aria-label":_(`移除 ${$.title}`,`Remove ${$.title}`),disabled:k,onClick:()=>{Z(()=>m($.id))},children:"×"})]}),J&&o.sessions.filter(z=>z.workspaceId===$.id&&(!L||$.title.toLocaleLowerCase().includes(L)||$.path.toLocaleLowerCase().includes(L)||z.name.toLocaleLowerCase().includes(L))).map(z=>c.jsxs("button",{type:"button",className:`${Br.sessionRow} ${bn.sessionButton} ${I&&(i==null?void 0:i.sessionId)===z.id?Br.selected:""}`,role:"treeitem","aria-current":I&&(i==null?void 0:i.sessionId)===z.id?"page":void 0,disabled:k,onClick:()=>{Z(()=>y($.id,z.id,z.path))},children:[c.jsx("span",{className:Br.slot,children:c.jsx(Gu,{state:(i==null?void 0:i.sessionId)===z.id&&!i.idle?"ongoing":"done"})}),c.jsx("span",{className:Br.title,children:z.name})]},z.id))]},$.id)}),R&&!v&&c.jsx("p",{className:bn.error,role:"alert",children:R})]})})}),c.jsx(r_,{open:v,busy:k,listDirectory:f,createDirectory:p,onOpen:$=>{te($)},onClose:()=>{k||C(!1)},t:F_}),c.jsx(Wu,{open:!!V,onClose:()=>S(""),title:_("无法添加工作区","Could not add workspace"),closeLabel:_("关闭","Close"),footer:c.jsxs(c.Fragment,{children:[c.jsx(Yn,{variant:"outline",onClick:()=>S(""),children:_("取消","Cancel")}),c.jsx(Yn,{variant:"primary",onClick:()=>{S(""),W()},children:_("重新选择","Choose again")})]}),children:c.jsx("div",{role:"alert",children:V})})]})}function md(e){var f;const r=e.trim();if(!r)return;const i=/^(\d+(?:\.\d+)?)([km])?$/i.exec(r);if(!i)return Number.NaN;const o=(f=i[2])==null?void 0:f.toLowerCase(),s=o==="m"?1e6:o==="k"?1e3:1,a=Number(i[1])*s,d=Math.round(a);return Math.abs(a-d)<1e-6?d:a}function gd(e){return e===void 0?"":!Number.isInteger(e)||e<=0?String(e):e%1e6===0?`${e/1e6}M`:e%1e3===0?`${e/1e3}K`:String(e)}function xd({model:e,position:r,onSave:i,onRemove:o,onCancel:s}){var Z;const[a,d]=E.useState(e.id),[f,p]=E.useState(e.name??""),[m,y]=E.useState(gd(e.contextWindow)),[x,v]=E.useState(gd(e.maxTokens)),[C,k]=E.useState((Z=e.input)!=null&&Z.length?e.input:["text"]),[P,R]=E.useState(!e.id),[j,V]=E.useState(!1),[S,F]=E.useState(!1),[B,T]=E.useState(""),ee=!e.id,ie=!ee&&(e.source==="custom"||e.overridden),Y=async()=>{const te=md(m),W=md(x);if(!a.trim()||[te,W].some($=>$!==void 0&&(!Number.isSafeInteger($)||$<=0))){T(_("请填写模型 ID,并使用正整数或 K/M 单位填写容量。","Enter a model ID and positive token counts, optionally with K/M suffixes."));return}F(!0),T("");try{await i({id:a.trim(),...f.trim()?{name:f.trim()}:{},...te===void 0?{}:{contextWindow:te},...W===void 0?{}:{maxTokens:W},input:C})}catch($){T($ instanceof Error?$.message:_("保存失败","Could not save"))}finally{F(!1)}},D=async()=>{F(!0),T("");try{await o()}catch(te){T(te instanceof Error?te.message:_("操作失败","Action failed")),V(!1)}finally{F(!1)}},L=te=>{k(W=>{const $=W.includes(te)?W.filter(I=>I!==te):[...W,te];return $.length?$:W})};return c.jsxs("div",{className:"pi-model-entry",children:[c.jsxs("div",{className:"pi-model-row",children:[c.jsx("input",{"aria-label":`${_("模型 ID","Model ID")} ${r}`,placeholder:_("模型 ID","Model ID"),value:a,disabled:S||!ee&&e.source==="builtin",onFocus:()=>R(!0),onChange:te=>d(te.target.value)}),c.jsx("input",{"aria-label":`${_("显示名称","Display name")} ${r}`,placeholder:_("显示名称","Display name"),value:f,disabled:S,onFocus:()=>R(!0),onChange:te=>p(te.target.value)}),c.jsx("button",{type:"button","aria-label":`${_("模型参数","Model settings")} ${r}`,"aria-expanded":P,onClick:()=>R(!P),children:P?"⌄":"›"})]}),P&&c.jsxs("div",{className:"pi-model-details",children:[c.jsxs("label",{children:[_("上下文窗口","Context window"),c.jsx("input",{"aria-label":`${_("上下文窗口","Context window")} ${r}`,inputMode:"decimal",placeholder:"128K",value:m,disabled:S,onChange:te=>y(te.target.value)})]}),c.jsxs("label",{children:[_("最大输出 token 数","Max output tokens"),c.jsx("input",{"aria-label":`${_("最大输出 token 数","Max output tokens")} ${r}`,inputMode:"decimal",placeholder:"16K",value:x,disabled:S,onChange:te=>v(te.target.value)})]}),c.jsxs("fieldset",{className:"pi-model-input-types",children:[c.jsx("legend",{children:_("输入类型","Input types")}),c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:C.includes("text"),disabled:S||C.length===1&&C.includes("text"),onChange:()=>L("text")}),_("文本","Text")]}),c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:C.includes("image"),disabled:S||C.length===1&&C.includes("image"),onChange:()=>L("image")}),_("图片","Image")]})]}),c.jsxs("div",{className:"pi-model-actions",children:[c.jsx("button",{type:"button",disabled:S,onClick:()=>{Y()},children:S?_("保存中…","Saving…"):_("保存模型","Save model")}),ee&&s&&c.jsx("button",{type:"button",disabled:S,onClick:s,children:_("取消","Cancel")}),ie&&c.jsx("button",{type:"button",disabled:S,onClick:()=>V(!j),children:e.source==="custom"?_("移除模型","Remove model"):_("恢复默认","Restore default")})]}),j&&c.jsxs("div",{className:"pi-model-confirm",children:[c.jsx("span",{children:e.source==="custom"?_("从配置中移除这个模型?","Remove this model from configuration?"):_("撤销这个模型的自定义参数?","Discard this model’s custom settings?")}),c.jsx("button",{type:"button",disabled:S,onClick:()=>{D()},children:_("确认","Confirm")}),c.jsx("button",{type:"button",disabled:S,onClick:()=>V(!1),children:_("取消","Cancel")})]}),B&&c.jsx("p",{className:"pi-settings-error",role:"alert",children:B})]})]})}function $_({providerId:e,getModels:r,updateModel:i}){const[o,s]=E.useState(null),[a,d]=E.useState(""),[f,p]=E.useState(""),[m,y]=E.useState(!1),x=async()=>{d("");try{s(await r(e))}catch(k){throw d(k instanceof Error?k.message:_("无法读取模型目录","Could not load model catalog")),k}};E.useEffect(()=>{x().catch(()=>{})},[e]);const v=async k=>{await i(e,k),y(!1),await x().catch(()=>{})},C=(o==null?void 0:o.models.filter(k=>`${k.id} ${k.name??""}`.toLocaleLowerCase().includes(f.toLocaleLowerCase())))??[];return c.jsxs("section",{className:"pi-provider-models","aria-label":_("模型目录","Model catalog"),children:[c.jsxs("div",{className:"pi-provider-models-head",children:[c.jsx("strong",{children:_("模型目录","Model catalog")}),c.jsxs("span",{children:[(o==null?void 0:o.models.length)??0," ",_("个模型","models")]})]}),(o==null?void 0:o.baseUrl)&&c.jsxs("p",{className:"pi-provider-models-endpoint",title:o.baseUrl,children:[_("API 地址","API URL"),": ",o.baseUrl]}),a&&c.jsxs("p",{className:"pi-settings-error",role:"alert",children:[a," ",o&&c.jsx("button",{type:"button",onClick:()=>{x().catch(()=>{})},children:_("重试读取","Retry")})]}),o?c.jsxs(c.Fragment,{children:[o.models.length>5&&c.jsx("input",{className:"pi-model-search",type:"search","aria-label":_("搜索模型","Search models"),placeholder:_("搜索模型","Search models"),value:f,onChange:k=>p(k.target.value)}),c.jsx("div",{className:"pi-model-list",children:C.map((k,P)=>c.jsx(xd,{model:k,position:P+1,onSave:R=>v({action:"save",originalId:k.id,model:R}),onRemove:()=>v({action:"remove",id:k.id})},`${k.id}:${k.name}:${k.contextWindow}:${k.maxTokens}:${k.overridden}`))}),C.length===0&&!m&&c.jsx("p",{className:"pi-provider-models-empty",children:_("没有匹配的模型","No matching models")}),m&&c.jsx(xd,{model:{id:"",source:"custom",overridden:!1},position:o.models.length+1,onSave:k=>v({action:"save",model:k}),onRemove:async()=>y(!1),onCancel:()=>y(!1)},"new"),!m&&c.jsx("button",{type:"button",className:"pi-model-add",onClick:()=>y(!0),children:_("+ 添加模型","+ Add model")})]}):a?c.jsx("button",{type:"button",className:"pi-model-add",onClick:()=>{x().catch(()=>{})},children:_("重试读取","Retry")}):c.jsx("p",{role:"status",children:_("正在读取模型…","Loading models…")})]})}const yd={id:"",name:"",baseUrl:"",api:"openai-completions",modelId:""};function Ur(e){try{const r=new URL(e);return r.protocol==="https:"||r.protocol==="http:"?r.href:null}catch{return null}}function B_(){let e=null;try{return e=window.open("about:blank","_blank"),e&&(e.opener=null,e.document.title=_("正在准备授权页面","Preparing sign-in"),e.document.body.textContent=_("正在准备授权页面…","Preparing sign-in…")),e}catch{return e==null||e.close(),null}}function vd({provider:e,configured:r,busy:i,getProviderModels:o,updateProviderModel:s,onConnect:a}){const[d,f]=E.useState(""),[p,m]=E.useState(""),[y,x]=E.useState(""),[v,C]=E.useState(!0),[k,P]=E.useState(!1),[R,j]=E.useState("");E.useEffect(()=>{let S=!0;return C(!0),o(e.id).then(F=>{S&&(m(F.baseUrl??""),x(F.baseUrl??""),C(!1))}).catch(F=>{S&&(C(!1),j(F instanceof Error?F.message:_("无法读取 API 地址","Could not load API URL")))}),()=>{S=!1}},[e.id]);const V=async()=>{const S=d.trim(),F=p.trim();if(!(!S&&!r)){if(F&&!Ur(F)){j(_("请输入有效的 http 或 https 地址。","Enter a valid HTTP or HTTPS URL."));return}P(!0),j("");try{F!==y&&(await s(e.id,{action:"base_url",baseUrl:F||null}),x(F)),S&&(f(""),await a(S))}catch(B){j(B instanceof Error?B.message:_("保存失败","Could not save"))}finally{P(!1)}}};return c.jsxs("form",{className:"pi-provider-key-form",onSubmit:S=>{S.preventDefault(),V()},children:[c.jsxs("label",{children:[_("API Key","API key"),c.jsx("input",{type:"password",autoComplete:"off",maxLength:16384,value:d,onChange:S=>f(S.target.value),placeholder:r?_("已配置,输入新值可替换","Configured; enter a new key to replace"):_("输入 API Key","Enter API key")})]}),c.jsxs("details",{className:"pi-provider-advanced",children:[c.jsx("summary",{children:_("自定义设置","Custom settings")}),c.jsxs("label",{children:[_("API 地址(可选)","API URL (optional)"),c.jsx("input",{type:"url",maxLength:2048,value:p,onChange:S=>m(S.target.value),placeholder:_("使用提供方默认地址","Use provider default URL")})]})]}),c.jsx("button",{type:"submit",disabled:i||k||v||!d.trim()&&(p.trim()===y||!r),children:k?_("保存中…","Saving…"):r?_("保存","Save"):_("连接","Connect")}),R&&c.jsx("p",{className:"pi-settings-error",role:"alert",children:R})]})}function H_({setupMode:e=!1,onReturnToConversation:r,getProviders:i,getProviderModels:o,updateProviderModel:s,logoutProvider:a,addCustomProvider:d,startLogin:f,getLogin:p,getActiveLogin:m,respondLogin:y,cancelLogin:x,refreshModels:v}){var Et,Dt,At,jt,Ft,gn,re,Se;const[C,k]=E.useState([]),[P,R]=E.useState(!1),[j,V]=E.useState(e?"builtin":null),[S,F]=E.useState(""),[B,T]=E.useState(null),[ee,ie]=E.useState(null),[Y,D]=E.useState(yd),[L,Z]=E.useState(null),[te,W]=E.useState(""),[$,I]=E.useState(""),[J,z]=E.useState(!1),ne=E.useRef(null);E.useEffect(()=>{e&&V(Q=>Q??"builtin")},[e]),E.useEffect(()=>{let Q=!0;return m().then(xe=>{Q&&xe&&Z(Me=>Me??xe)}).catch(()=>{}),()=>{var xe,Me;Q=!1,(Me=(xe=ne.current)==null?void 0:xe.popup)==null||Me.close()}},[]);const b=async()=>{k(await i()),R(!0)},A=async Q=>{var at,He,X,ae;const xe=ne.current,Me=Q.authorization??(((at=Q.event)==null?void 0:at.type)==="auth_url"||((He=Q.event)==null?void 0:He.type)==="device_code"?Q.event:void 0);if((xe==null?void 0:xe.id)===Q.id&&Me){const we=Ur(Me.type==="auth_url"?Me.url:Me.verificationUri);if(we){try{xe.popup&&!xe.popup.closed?xe.popup.location.replace(we):window.open(we,"_blank","noopener,noreferrer")}catch{(X=xe.popup)==null||X.close()}ne.current=null}}(xe==null?void 0:xe.id)===Q.id&&(Q.status==="done"||Q.status==="error"||Q.status==="cancelled")&&((ae=xe.popup)==null||ae.close(),ne.current=null),Z(Q),Q.status==="done"&&(V(null),T(null),await Promise.all([b(),v()]))};E.useEffect(()=>{b().catch(Q=>{R(!0),I(Q instanceof Error?Q.message:_("无法读取模型提供方","Could not load model providers"))})},[]),E.useEffect(()=>{if(!L||L.status==="done"||L.status==="error"||L.status==="cancelled")return;let Q=!0;const xe=window.setInterval(()=>{p(L.id).then(async Me=>{Q&&await A(Me)}).catch(Me=>{Q&&I(Me instanceof Error?Me.message:_("登录状态不可用","Login status is unavailable"))})},700);return()=>{Q=!1,window.clearInterval(xe)}},[L==null?void 0:L.id,L==null?void 0:L.status]);const K=J||(L==null?void 0:L.status)==="running"||(L==null?void 0:L.status)==="waiting",N=(Et=C.find(Q=>Q.id===(L==null?void 0:L.providerId)))==null?void 0:Et.name,ge=C.filter(Q=>Q.configured),ve=C.filter(Q=>!Q.configured&&Q.methods.length>0),fe=ve.find(Q=>Q.id===S)??(e?ve.find(Q=>Q.id==="openai-codex")??ve.find(Q=>Q.methods.includes("oauth")):void 0)??ve.find(Q=>Q.id==="openai")??ve[0],Ne=async(Q,xe,Me)=>{var at,He;ne.current=xe==="oauth"?{id:null,popup:B_()}:null,z(!0),I(""),W("");try{const{id:X}=await f(Q,xe,Me);ne.current&&(ne.current.id=X),await A(await p(X))}catch(X){(He=(at=ne.current)==null?void 0:at.popup)==null||He.close(),ne.current=null,I(X instanceof Error?X.message:_("无法开始登录","Could not start sign-in")),L||m().then(ae=>{ae&&Z(ae)}).catch(()=>{})}finally{z(!1)}},Ee=async Q=>{if(L){z(!0),I("");try{await y(L.id,Q),W(""),await A(await p(L.id))}catch(xe){I(xe instanceof Error?xe.message:_("提交失败","Submission failed"))}finally{z(!1)}}},ze=async()=>{z(!0),I("");try{await d(Y);const Q=Y.id;await b(),F(Q),V("builtin"),D(yd)}catch(Q){I(Q instanceof Error?Q.message:_("无法添加自定义提供方","Could not add custom provider"))}finally{z(!1)}},Ue=async Q=>{z(!0),I("");try{await a(Q),await b(),ie(null),T(null)}catch(xe){I(xe instanceof Error?xe.message:_("移除认证失败","Could not remove credentials"))}finally{z(!1)}},Oe=(L==null?void 0:L.authorization)??(((Dt=L==null?void 0:L.event)==null?void 0:Dt.type)==="auth_url"||((At=L==null?void 0:L.event)==null?void 0:At.type)==="device_code"?L.event:void 0),rt=(L==null?void 0:L.status)==="waiting"&&L.prompt&&L.prompt.type!=="select"&&c.jsxs("form",{onSubmit:Q=>{Q.preventDefault(),te.trim()&&Ee(te.trim())},children:[c.jsx("label",{htmlFor:"pi-provider-answer",children:L.prompt.message}),c.jsxs("div",{children:[c.jsx("input",{id:"pi-provider-answer",type:L.prompt.type==="secret"?"password":"text",autoComplete:"off",placeholder:L.prompt.placeholder,value:te,onChange:Q=>W(Q.target.value)}),c.jsx("button",{type:"submit",disabled:J||!te.trim(),children:_("继续","Continue")})]})]});return c.jsxs("div",{className:"pi-settings-content",children:[c.jsx("h2",{children:e?_("先连接一个模型","Connect a model to begin"):_("模型","Models")}),c.jsx("p",{className:"pi-settings-intro",children:e?_("当前没有可用模型。选择提供方完成认证,再在会话中选择模型;也可以添加自定义提供方。","No models are available yet. Sign in to a provider, then choose a model in the conversation. You can also add a custom provider."):_("已接入的提供方显示在这里。添加新的提供方后,即可在会话中选择其模型。","Connected providers appear here. Add a provider to use its models in a conversation.")}),$&&c.jsx("p",{className:"pi-settings-error",role:"alert",children:$}),L&&c.jsxs("section",{className:"pi-provider-flow","aria-label":_("模型登录","Model sign-in"),children:[c.jsxs("div",{className:"pi-provider-flow-head",children:[c.jsxs("strong",{children:[_("模型登录","Model sign-in"),N?` · ${N}`:""]}),c.jsx("button",{type:"button",onClick:()=>{var Q,xe;((Q=ne.current)==null?void 0:Q.id)===L.id&&((xe=ne.current.popup)==null||xe.close(),ne.current=null),L.status==="running"||L.status==="waiting"?x(L.id).finally(()=>Z(null)):Z(null)},children:L.status==="running"||L.status==="waiting"?_("取消","Cancel"):_("关闭","Close")})]}),L.status==="done"&&c.jsxs("div",{role:"status",children:[c.jsx("p",{children:_("已连接。现在可以在会话中选择该提供方的模型。","Connected. You can now select this provider’s models in a conversation.")}),c.jsx("button",{type:"button",onClick:r,children:_("返回会话选择模型","Return to conversation and choose a model")})]}),L.status==="error"&&c.jsx("p",{role:"alert",children:L.error}),L.status==="running"&&!Oe&&c.jsx("p",{role:"status",children:_("正在等待提供方响应…","Waiting for the provider…")}),((jt=L.event)==null?void 0:jt.type)==="info"&&c.jsxs("p",{children:[L.event.message,(Ft=L.event.links)==null?void 0:Ft.map(Q=>{const xe=Ur(Q.url);return xe&&c.jsx("a",{href:xe,target:"_blank",rel:"noopener noreferrer",children:Q.label??_("打开链接","Open link")},xe)})]}),((gn=L.event)==null?void 0:gn.type)==="progress"&&(Oe==null?void 0:Oe.type)!=="auth_url"&&c.jsx("p",{children:L.event.message}),(Oe==null?void 0:Oe.type)==="auth_url"&&c.jsxs("p",{role:"status",children:[_("请在授权页面完成登录;若页面未自动打开,请点击右侧链接。完成后这里会自动更新。","Complete sign-in on the authorization page. If it did not open, use the link. This page will update automatically.")," ",Ur(Oe.url)&&c.jsx("a",{href:Ur(Oe.url),target:"_blank",rel:"noopener noreferrer",children:_("打开授权页面","Open authorization page")})]}),(Oe==null?void 0:Oe.type)==="device_code"&&c.jsxs("p",{children:[_("在","On the")," ",Ur(Oe.verificationUri)&&c.jsx("a",{href:Ur(Oe.verificationUri),target:"_blank",rel:"noopener noreferrer",children:_("验证页面","verification page")})," ",_("输入代码","enter code")," ",c.jsx("code",{children:Oe.userCode})]}),L.status==="waiting"&&((re=L.prompt)==null?void 0:re.type)==="select"&&c.jsxs("div",{className:"pi-provider-options",children:[c.jsx("p",{children:L.prompt.message}),L.prompt.options.map(Q=>c.jsxs("button",{type:"button",disabled:J,onClick:()=>{Ee(Q.id)},children:[Q.label,Q.description&&c.jsx("small",{children:Q.description})]},Q.id))]}),rt&&((Se=L.prompt)==null?void 0:Se.type)==="manual_code"&&(Oe==null?void 0:Oe.type)==="auth_url"?c.jsxs("details",{className:"pi-provider-manual-login",children:[c.jsx("summary",{children:_("无法自动完成?手动输入授权码","Can't finish automatically? Enter an authorization code")}),rt]}):rt]}),c.jsxs("section",{className:"pi-provider-list","aria-label":_("已接入的模型提供方","Connected model providers"),children:[ge.map(Q=>c.jsxs("div",{className:"pi-provider-card",children:[c.jsxs("div",{className:"pi-provider-card-head",children:[c.jsxs("span",{className:"pi-provider-name",children:[Q.name,c.jsx("span",{className:"pi-provider-dot",role:"img","aria-label":_("已配置认证","Authentication configured")}),c.jsx("small",{children:_("已配置","Configured")})]}),c.jsx("button",{type:"button",disabled:K,"aria-label":`${_("编辑","Edit")} ${Q.name}`,"aria-expanded":B===Q.id,onClick:()=>{V(null),T(B===Q.id?null:Q.id)},children:_("编辑","Edit")})]}),B===Q.id&&c.jsxs("div",{className:"pi-provider-editor",children:[Q.methods.includes("api_key")&&c.jsx(vd,{provider:Q,configured:!0,busy:!!K,getProviderModels:o,updateProviderModel:s,onConnect:xe=>Ne(Q.id,"api_key",xe)},Q.id),Q.methods.includes("oauth")&&c.jsx("div",{className:"pi-provider-methods",children:c.jsx("button",{type:"button",disabled:!!K,onClick:()=>{Ne(Q.id,"oauth")},children:_("网页登录","Browser sign-in")})}),c.jsx($_,{providerId:Q.id,getModels:o,updateModel:s}),Q.storedCredential&&c.jsx("div",{className:"pi-provider-credential-action",children:c.jsx("button",{type:"button",disabled:K,onClick:()=>ie(Q.id),children:_("移除认证","Remove credentials")})}),!Q.storedCredential&&c.jsx("p",{className:"pi-provider-auth-source",children:_("当前认证来自环境变量、模型配置或其他运行时来源,请在对应位置移除。","Authentication comes from an environment variable, model configuration, or another runtime source. Remove it at its source.")}),ee===Q.id&&c.jsxs("div",{className:"pi-model-confirm",role:"group","aria-label":_("确认移除认证","Confirm credential removal"),children:[c.jsx("span",{children:_("移除本机保存的认证后,该模型可能无法继续使用。","Removing stored credentials may make this provider unavailable.")}),c.jsx("button",{type:"button",disabled:J,onClick:()=>{Ue(Q.id)},children:_("确认移除","Remove")}),c.jsx("button",{type:"button",disabled:J,onClick:()=>ie(null),children:_("取消","Cancel")})]})]})]},Q.id)),P&&ge.length===0&&c.jsx("p",{className:"pi-provider-empty",children:_("尚未接入提供方","No providers connected yet")}),!P&&c.jsx("p",{role:"status",children:_("正在读取模型提供方…","Loading model providers…")})]}),j==="builtin"&&c.jsxs("section",{className:"pi-provider-add-card","aria-label":_("添加提供方","Add provider"),children:[c.jsxs("div",{className:"pi-provider-flow-head",children:[c.jsx("strong",{children:_("添加提供方","Add provider")}),c.jsx("button",{type:"button",onClick:()=>V(null),children:_("关闭","Close")})]}),fe?c.jsxs(c.Fragment,{children:[c.jsx("label",{htmlFor:"pi-provider-select",children:_("提供方","Provider")}),c.jsx("select",{id:"pi-provider-select",value:fe.id,onChange:Q=>F(Q.target.value),children:ve.map(Q=>c.jsx("option",{value:Q.id,children:Q.name},Q.id))}),fe.methods.includes("api_key")&&c.jsx(vd,{provider:fe,configured:!1,busy:!!K,getProviderModels:o,updateProviderModel:s,onConnect:Q=>Ne(fe.id,"api_key",Q)},fe.id),fe.methods.includes("oauth")&&c.jsx("div",{className:"pi-provider-methods",children:c.jsx("button",{type:"button",disabled:!!K,onClick:()=>{Ne(fe.id,"oauth")},children:_("网页登录","Browser sign-in")})}),c.jsx("p",{children:_("认证完成后,可在提供方的“编辑”中调整模型目录。","After sign-in, open the provider’s Edit panel to adjust its model catalog.")})]}):c.jsx("p",{children:_("没有可添加的提供方。","No providers can be added.")})]}),j==="custom"&&c.jsxs("section",{className:"pi-provider-add-card","aria-label":_("添加自定义提供方","Add custom provider"),children:[c.jsxs("div",{className:"pi-provider-flow-head",children:[c.jsx("strong",{children:_("添加自定义提供方","Add custom provider")}),c.jsx("button",{type:"button",onClick:()=>V(null),children:_("关闭","Close")})]}),c.jsx("p",{children:_("适用于兼容 Pi 已支持协议的模型服务。保存后再添加 API Key;密钥不会写入 models.json。","For model services compatible with Pi’s supported protocols. Add an API key after saving; it will not be written to models.json.")}),c.jsxs("form",{className:"pi-provider-custom-form",onSubmit:Q=>{Q.preventDefault(),ze()},children:[c.jsxs("label",{children:[_("名称","Name"),c.jsx("input",{required:!0,maxLength:100,value:Y.name,onChange:Q=>D({...Y,name:Q.target.value}),placeholder:_("我的模型服务","My model service")})]}),c.jsxs("label",{children:[_("提供方 ID","Provider ID"),c.jsx("input",{required:!0,maxLength:64,value:Y.id,onChange:Q=>D({...Y,id:Q.target.value}),placeholder:"my-provider"})]}),c.jsxs("label",{children:[_("接口地址","API URL"),c.jsx("input",{required:!0,type:"url",maxLength:2048,value:Y.baseUrl,onChange:Q=>D({...Y,baseUrl:Q.target.value}),placeholder:"https://api.example.com/v1"})]}),c.jsxs("label",{children:[_("接口协议","API protocol"),c.jsxs("select",{value:Y.api,onChange:Q=>D({...Y,api:Q.target.value}),children:[c.jsx("option",{value:"openai-completions",children:"OpenAI Chat Completions"}),c.jsx("option",{value:"openai-responses",children:"OpenAI Responses"}),c.jsx("option",{value:"anthropic-messages",children:"Anthropic Messages"})]})]}),c.jsxs("label",{children:[_("模型 ID","Model ID"),c.jsx("input",{required:!0,maxLength:200,value:Y.modelId,onChange:Q=>D({...Y,modelId:Q.target.value}),placeholder:"model-name"})]}),c.jsx("button",{type:"submit",disabled:J,children:_("保存并继续","Save and continue")})]})]}),!j&&c.jsxs("div",{className:"pi-provider-add-actions",children:[c.jsx("button",{type:"button",disabled:!P||ve.length===0||K,onClick:()=>{T(null),V("builtin"),F("")},children:_("+ 添加提供方","+ Add provider")}),c.jsx("button",{type:"button",disabled:K,onClick:()=>{T(null),V("custom")},children:_("+ 添加自定义提供方","+ Add custom provider")})]})]})}const C1="pi-web-theme",ss=new Set,H3=window.matchMedia("(prefers-color-scheme: dark)");let El=V3();function V3(){try{const e=localStorage.getItem(C1);if(e==="light"||e==="dark"||e==="system")return e}catch{}return"system"}function Jo(){document.body.toggleAttribute("data-ds-dark-theme",El==="dark"||El==="system"&&H3.matches)}function V_(){Jo(),H3.addEventListener("change",Jo),window.addEventListener("storage",e=>{e.key===C1&&(El=V3(),Jo(),ss.forEach(r=>r()))})}function U_(e){El=e;try{localStorage.setItem(C1,e)}catch{}Jo(),ss.forEach(r=>r())}function W_(){return E.useSyncExternalStore(e=>(ss.add(e),()=>{ss.delete(e)}),()=>El)}const q_="_group_8jvbt_4",Z_="_title_8jvbt_12",Q_="_cubeRow_8jvbt_19",G_="_themeCube_8jvbt_29",K_="_selected_8jvbt_48",xl={group:q_,title:Z_,cubeRow:Q_,themeCube:G_,selected:K_};function Y_(){const e=W_(),r=Jn(),i=[{id:"light",label:r==="zh"?"浅色":"Light",Icon:T5},{id:"dark",label:r==="zh"?"深色":"Dark",Icon:z5},{id:"system",label:r==="zh"?"跟随系统":"System",Icon:R5}];return c.jsxs("div",{className:xl.group,children:[c.jsx("div",{className:xl.title,children:r==="zh"?"外观":"Appearance"}),c.jsx("div",{className:xl.cubeRow,children:i.map(({id:o,label:s,Icon:a})=>c.jsxs("button",{type:"button",className:st(xl.themeCube,e===o&&xl.selected),"aria-pressed":e===o,onClick:()=>U_(o),children:[c.jsx(a,{}),s]},o))})]})}const X_="_row_14tot_1",J_="_title_14tot_9",eb="_selectorWrap_14tot_17",tb="_selector_14tot_17",nb="_option_14tot_37",rb="_chevron_14tot_38",ib="_menu_14tot_40",Hr={row:X_,title:J_,selectorWrap:eb,selector:tb,option:nb,chevron:rb,menu:ib},yi=[{id:"zh",label:"中文"},{id:"en",label:"English"}];function lb(){var f;const e=Jn(),[r,i]=E.useState(!1),o=E.useRef(null),s=E.useRef(null),a=E.useRef(null);E.useEffect(()=>{var y;if(!r)return;(y=a.current)==null||y.focus();const p=x=>{var v;(v=o.current)!=null&&v.contains(x.target)||i(!1)},m=x=>{var v;x.key==="Escape"&&(x.preventDefault(),x.stopImmediatePropagation(),i(!1),(v=s.current)==null||v.focus())};return document.addEventListener("pointerdown",p),document.addEventListener("keydown",m),()=>{document.removeEventListener("pointerdown",p),document.removeEventListener("keydown",m)}},[r]);const d=p=>{var m;$g(p),i(!1),(m=s.current)==null||m.focus()};return c.jsxs("div",{className:Hr.row,ref:o,children:[c.jsx("div",{className:Hr.title,children:e==="zh"?"语言":"Language"}),c.jsxs("div",{className:Hr.selectorWrap,children:[c.jsxs("button",{ref:s,type:"button",className:Hr.selector,"aria-label":e==="zh"?"语言":"Language","aria-haspopup":"menu","aria-expanded":r,onClick:()=>i(p=>!p),children:[(f=yi.find(p=>p.id===e))==null?void 0:f.label,c.jsx("svg",{className:Hr.chevron,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:c.jsx("path",{d:"m3.5 5.25 3.5 3.5 3.5-3.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})]}),r&&c.jsx("div",{className:Hr.menu,role:"menu","aria-label":e==="zh"?"选择语言":"Choose language",onKeyDown:p=>{var x,v;if(p.key!=="ArrowDown"&&p.key!=="ArrowUp")return;p.preventDefault();const m=yi.findIndex(C=>{var k;return C.id===((k=document.activeElement)==null?void 0:k.dataset.locale)}),y=yi[(m+(p.key==="ArrowDown"?1:yi.length-1))%yi.length];(v=(x=o.current)==null?void 0:x.querySelector(`[data-locale="${y.id}"]`))==null||v.focus()},children:yi.map(p=>c.jsxs("button",{ref:p.id===e?a:void 0,type:"button",role:"menuitemradio","aria-checked":p.id===e,"data-locale":p.id,className:Hr.option,onClick:()=>d(p.id),children:[c.jsx("span",{children:p.label}),p.id===e&&c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:c.jsx("path",{d:"m3 8 3.2 3.2L13 4.5",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round"})})]},p.id))})]})]})}class w1 extends Error{constructor(i,o){super(i);t2(this,"status");this.name="HttpError",this.status=o}}function Cd(e,r,i){return e instanceof w1&&e.status===404?r==="zh"?"后台服务仍在运行旧版。请重启 pi-webapp 后重新打开页面,再检查更新。":"The background service is still running an older version. Restart pi-webapp, reopen this page, then check again.":e instanceof Error&&e.message?e.message:i==="check"?r==="zh"?"检查更新失败":"Could not check for updates":r==="zh"?"升级失败":"Update failed"}const ob="_group_18zai_1",sb="_row_18zai_8",ab="_details_18zai_15",ub="_title_18zai_17",cb="_summary_18zai_23",db="_note_18zai_23",fb="_error_18zai_23",pb="_actions_18zai_33",Rn={group:ob,row:sb,details:ab,title:ub,summary:cb,note:db,error:fb,actions:pb};function hb({getUpdate:e,getRunningVersion:r,update:i}){const o=Jn(),s=(F,B)=>y1(o,F,B),[a,d]=E.useState(null),[f,p]=E.useState(!0),[m,y]=E.useState(!1),[x,v]=E.useState(null),[C,k]=E.useState(!1),[P,R]=E.useState(""),j=async()=>{p(!0),R("");try{d(await e())}catch(F){d(null),R(Cd(F,o,"check"))}finally{p(!1)}};E.useEffect(()=>{j()},[]),E.useEffect(()=>{if(!x)return;let F=!1;const B=Date.now()+6e4;let T;const ee=async()=>{try{if((await r()).current===x){location.reload();return}}catch{}if(!F){if(Date.now()>=B){v(null),k(!0),R(s("新版启动超时。请运行 pi-webapp status 查看状态,或重新启动 pi-webapp。","The new version did not start in time. Check pi-webapp status or start pi-webapp again."));return}T=setTimeout(()=>{ee()},1200)}};return T=setTimeout(()=>{ee()},1200),()=>{F=!0,clearTimeout(T)}},[x]);const V=async()=>{y(!0),R("");try{v((await i()).version)}catch(F){R(Cd(F,o,"install"))}finally{y(!1)}},S=a?`${s("当前版本","Current version")} ${a.current}${a.latest?` · ${s("npm 最新版本","Latest on npm")} ${a.latest}`:""}`:f?s("正在读取版本…","Reading version…"):s("暂时无法读取版本","Version unavailable");return c.jsxs("section",{className:Rn.group,"aria-label":s("应用更新","App updates"),children:[c.jsxs("div",{className:Rn.row,children:[c.jsxs("div",{className:Rn.details,children:[c.jsx("div",{className:Rn.title,children:s("应用更新","App updates")}),c.jsx("p",{className:Rn.summary,children:S})]}),c.jsxs("div",{className:Rn.actions,children:[(a==null?void 0:a.available)&&a.canRestart&&!x&&!C&&c.jsx(Yn,{variant:"primary",disabled:m||f,onClick:()=>{V()},children:m?s("正在安装…","Installing…"):s("升级并重启","Update and restart")}),c.jsx(Yn,{variant:"outline",disabled:f||m||!!x,onClick:()=>{j()},children:f?s("检查中…","Checking…"):s("检查更新","Check for updates")})]})]}),a&&!a.available&&!f&&c.jsx("p",{className:Rn.note,role:"status",children:s("已是最新版本","Up to date")}),(a==null?void 0:a.reason)&&c.jsx("p",{className:Rn.note,children:a.reason}),x&&c.jsx("p",{className:Rn.note,role:"status",children:s("正在重启并等待新版连接…","Restarting and waiting for the new version…")}),P&&c.jsx("p",{className:Rn.error,role:"alert",children:P})]})}const mb="_overlay_f00qz_61",gb="_mask_f00qz_70",xb="_panel_f00qz_83",yb="_nav_f00qz_105",vb="_navTitle_f00qz_116",Cb="_navList_f00qz_125",wb="_navCell_f00qz_133",kb="_active_f00qz_156",_b="_navIcon_f00qz_160",bb="_navLabel_f00qz_164",Sb="_content_f00qz_173",Eb="_header_f00qz_181",jb="_actions_f00qz_192",Lb="_close_f00qz_202",Nb="_options_f00qz_82",Ct={overlay:mb,mask:gb,panel:xb,nav:yb,navTitle:vb,navList:Cb,navCell:wb,active:kb,navIcon:_b,navLabel:bb,content:Sb,header:Eb,actions:jb,close:Lb,options:Nb};function Ib(e){return e==="general"?c.jsx(bd,{className:Ct.navIcon,size:16}):e==="models"?c.jsx(Sd,{className:Ct.navIcon,size:16}):e==="packages"?c.jsx(A5,{className:Ct.navIcon,size:16}):e==="extensions"?c.jsx(I5,{className:Ct.navIcon,size:16}):c.jsx(D5,{className:Ct.navIcon,size:16})}function Pb({title:e,sections:r,activeId:i,onSelect:o,onClose:s,children:a}){const d=Jn(),f=E.useId(),p=E.useRef(null);return E.useEffect(()=>{var y;(y=p.current)==null||y.focus();const m=x=>{x.key==="Escape"&&!x.defaultPrevented&&!(x.target instanceof Element&&x.target.closest('[role="menu"]'))&&s()};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[s]),c.jsxs("div",{className:Ct.overlay,role:"presentation",children:[c.jsx("div",{className:Ct.mask,"aria-hidden":"true",onClick:s}),c.jsxs("div",{className:Ct.panel,role:"dialog","aria-modal":"true","aria-labelledby":f,children:[c.jsxs("nav",{className:Ct.nav,"aria-label":d==="zh"?"Pi 设置分类":"Pi settings sections",children:[c.jsx("div",{className:Ct.navTitle,id:f,children:e}),c.jsx("div",{className:Ct.navList,children:r.map(m=>c.jsxs("button",{type:"button",className:`${Ct.navCell} ${i===m.id?Ct.active:""}`,"aria-current":i===m.id?"true":void 0,onClick:()=>o(m.id),children:[Ib(m.id),c.jsx("span",{className:Ct.navLabel,children:m.label})]},m.id))})]}),c.jsxs("div",{className:Ct.content,children:[c.jsxs("header",{className:Ct.header,children:[c.jsx("div",{className:Ct.actions}),c.jsx("button",{ref:p,className:Ct.close,type:"button",onClick:s,"aria-label":d==="zh"?"关闭 Pi 设置":"Close Pi settings",children:c.jsx(as,{size:14})})]}),c.jsx("div",{className:Ct.options,children:a})]})]})]})}function vi(e){return/^(?:npm:|git:|https?:\/\/|ssh:\/\/|git@)/i.test(e.trim())}function Mb(e){var J;const r=Jn(),i=(z,ne)=>y1(r,z,ne),o=[{kind:"packages",title:i("包与扩展","Packages & extensions"),hint:i("包可以包含扩展和技能;本地扩展也可以单独加载。","Packages can contain extensions and skills; local extensions can also be loaded separately."),placeholder:i("npm 包名、Git 地址或本地目录","npm package, Git URL, or local directory")},{kind:"skills",title:i("技能","Skills"),hint:i("Pi 已发现和加载的技能。","Skills discovered and loaded by Pi."),placeholder:i("SKILL.md 文件或目录路径","SKILL.md file or directory path")}],s=[{id:"general",label:i("通用设置","General")},{id:"models",label:i("模型","Models")},...o.map(({kind:z,title:ne})=>({id:z,label:z==="packages"?i("包与扩展","Packages"):ne}))],{onBack:a,getConfig:d,updateConfig:f}=e,[p,m]=E.useState(null),[y,x]=E.useState({packages:"",extensions:"",skills:""}),[v,C]=E.useState(e.setupMode?"models":"general"),[k,P]=E.useState(!1),[R,j]=E.useState(!0),[V,S]=E.useState("");E.useEffect(()=>{e.setupMode&&C("models")},[e.setupMode]),E.useEffect(()=>{let z=!0;return d().then(ne=>{z&&m(ne)}).catch(ne=>{z&&S(ne instanceof Error?ne.message:i("无法读取 Pi 设置","Could not load Pi settings"))}).finally(()=>{z&&j(!1)}),()=>{z=!1}},[]);const F=async()=>{j(!0),S("");try{m(await d())}catch(z){S(z instanceof Error?z.message:i("无法读取 Pi 设置","Could not load Pi settings"))}finally{j(!1)}},B=async(z,ne,b)=>{P(!0),S("");try{m(await f(z,"global",ne,b)),ne==="add"&&x(A=>({...A,[z]:""}))}catch(A){S(A instanceof Error?A.message:i("保存失败","Save failed"))}finally{P(!1)}},T=o.find(({kind:z})=>z===v),ee=T?(p==null?void 0:p.global[T.kind])??[]:[],ie=T?((J=p==null?void 0:p.installed)==null?void 0:J[T.kind])??[]:[],Y=T?y[T.kind].trim():"",D=(T==null?void 0:T.kind)!=="packages"&&vi(Y),L=new Set((p==null?void 0:p.installed.packages.map(z=>z.source))??[]),Z=(p==null?void 0:p.installed.extensions.filter(z=>!L.has(z.source)))??[],te=(p==null?void 0:p.global.packages.filter(z=>!L.has(z)))??[],W=y.extensions.trim(),$=vi(W),I=z=>{x(ne=>({...ne,packages:z})),C("packages"),S("")};return c.jsxs(Pb,{title:i("Pi 设置","Pi Settings"),sections:s,activeId:v,onSelect:z=>{C(z),S("")},onClose:a,children:[v==="general"&&c.jsxs("div",{className:"pi-settings-content",children:[c.jsx("h2",{children:i("通用设置","General")}),c.jsx("p",{className:"pi-settings-intro",children:i("调整网页的显示方式。","Choose how the web interface appears.")}),c.jsxs("div",{className:"pi-settings-general",children:[c.jsx(lb,{}),c.jsx(Y_,{}),c.jsx(hb,{getUpdate:e.getUpdate,getRunningVersion:e.getRunningVersion,update:e.update})]})]}),v==="models"&&c.jsx(H_,{setupMode:e.setupMode,onReturnToConversation:a,getProviders:e.getProviders,getProviderModels:e.getProviderModels,updateProviderModel:e.updateProviderModel,logoutProvider:e.logoutProvider,addCustomProvider:e.addCustomProvider,startLogin:e.startProviderLogin,getLogin:e.getProviderLogin,getActiveLogin:e.getActiveProviderLogin,respondLogin:e.respondProviderLogin,cancelLogin:e.cancelProviderLogin,refreshModels:e.refreshModels}),T&&c.jsxs("div",{className:"pi-settings-content",children:[c.jsx("h2",{children:T.title}),c.jsxs("p",{className:"pi-settings-intro",children:[T.hint," ",i("添加或移除后会重新加载 Pi 资源。","Pi resources reload after you add or remove one.")]}),V&&c.jsx("p",{className:"pi-settings-error",role:"alert",children:V}),p?c.jsxs(c.Fragment,{children:[c.jsxs("section",{className:"pi-settings-section","aria-label":`${i("已发现","Discovered ")}${T.title}`,children:[c.jsxs("h3",{children:[T.kind==="packages"?i("已安装的包","Installed packages"):i("已发现的技能","Discovered skills")," ",c.jsx("span",{children:ie.length})]}),c.jsx("ul",{children:ie.length?ie.map(z=>{const ne=T.kind==="packages"?p.installed.extensions.filter(b=>b.source===z.source):[];return c.jsxs("li",{className:"pi-resource-item",children:[c.jsxs("div",{className:"pi-resource-main",children:[c.jsx("strong",{title:z.name,children:z.name}),c.jsx("small",{title:z.path||z.source,children:z.path||z.source}),ne.length>0&&c.jsxs("div",{className:"pi-package-contents",children:[c.jsx("span",{children:i("包含扩展","Includes extensions")}),ne.map(b=>c.jsx("span",{title:b.path,children:b.name},b.path))]})]}),c.jsxs("div",{className:"pi-resource-actions",children:[c.jsxs("span",{className:"pi-resource-meta",children:[z.enabled?i("已启用","Enabled"):i("已停用","Disabled")," · ",z.scope==="project"?i("项目","Project"):z.scope==="user"?i("用户","User"):i("临时","Temporary")]}),T.kind==="packages"&&p.global.packages.includes(z.source)&&c.jsx("button",{type:"button",disabled:k,onClick:()=>{B("packages","remove",z.source)},children:i("移除","Remove")})]})]},`${z.path}:${z.source}`)}):c.jsxs("li",{className:"pi-settings-empty",children:[i("未发现","No "),T.title]})})]}),T.kind==="packages"&&c.jsxs("section",{className:"pi-settings-section","aria-label":i("独立扩展","Standalone extensions"),children:[c.jsxs("h3",{children:[i("独立扩展","Standalone extensions")," ",c.jsx("span",{children:Z.length})]}),c.jsx("ul",{children:Z.length?Z.map(z=>c.jsxs("li",{className:"pi-resource-item",children:[c.jsxs("div",{className:"pi-resource-main",children:[c.jsx("strong",{title:z.name,children:z.name}),c.jsx("small",{title:z.path,children:z.path})]}),c.jsxs("span",{className:"pi-resource-meta",children:[z.enabled?i("已启用","Enabled"):i("已停用","Disabled")," · ",z.scope==="project"?i("项目","Project"):z.scope==="user"?i("用户","User"):i("临时","Temporary")]})]},z.path)):c.jsx("li",{className:"pi-settings-empty",children:i("未发现独立扩展","No standalone extensions found")})})]}),c.jsxs("section",{className:"pi-settings-section","aria-label":`${i("手动配置","Configure ")}${T.title}`,children:[c.jsx("h3",{children:T.kind==="packages"?i("添加包","Add package"):i("手动配置技能","Configure skills manually")}),(T.kind==="packages"?te:ee).length>0&&c.jsx("ul",{children:(T.kind==="packages"?te:ee).map(z=>c.jsxs("li",{className:"pi-config-item",children:[c.jsxs("div",{className:"pi-resource-main",children:[c.jsx("code",{title:z,children:z}),T.kind==="packages"&&c.jsx("small",{children:i("已配置,但未发现安装目录","Configured, but installation directory was not found")}),T.kind!=="packages"&&vi(z)&&c.jsx("small",{className:"pi-config-warning",children:i("未加载:包来源请在“包与扩展”中添加。","Not loaded: add package sources under Packages & extensions.")})]}),c.jsxs("div",{className:"pi-resource-actions",children:[T.kind!=="packages"&&vi(z)&&c.jsx("button",{type:"button",disabled:k,onClick:()=>I(z),children:i("转到包","Go to packages")}),c.jsx("button",{type:"button",disabled:k,"aria-label":`${i("移除","Remove")} ${z}`,onClick:()=>{B(T.kind,"remove",z)},children:i("移除","Remove")})]})]},z))}),c.jsxs("form",{onSubmit:z=>{z.preventDefault(),Y&&!D&&B(T.kind,"add",Y)},children:[c.jsx("input",{"aria-label":`${i("添加","Add ")}${T.title}`,"aria-invalid":D||void 0,"aria-describedby":D?"pi-config-source-help":void 0,placeholder:T.placeholder,value:y[T.kind],onChange:z=>x(ne=>({...ne,[T.kind]:z.target.value}))}),c.jsx("button",{type:"submit",disabled:k||!Y||D,children:i("添加","Add")})]}),D&&c.jsxs("p",{id:"pi-config-source-help",className:"pi-config-hint",children:[i("这是包来源,请在「包」中添加。","This is a package source. Add it under Packages."),c.jsx("button",{type:"button",onClick:()=>I(Y),children:i("转到包","Go to packages")})]})]}),T.kind==="packages"&&c.jsxs("section",{className:"pi-settings-section","aria-label":i("手动配置扩展路径","Configure extension paths manually"),children:[c.jsx("h3",{children:i("扩展路径","Extension paths")}),p.global.extensions.length>0&&c.jsx("ul",{children:p.global.extensions.map(z=>c.jsxs("li",{className:"pi-config-item",children:[c.jsxs("div",{className:"pi-resource-main",children:[c.jsx("code",{title:z,children:z}),vi(z)&&c.jsx("small",{className:"pi-config-warning",children:i("未加载:包来源不能作为扩展路径,请在上方添加包。","Not loaded: package sources cannot be extension paths. Add the package above.")})]}),c.jsxs("div",{className:"pi-resource-actions",children:[vi(z)&&c.jsx("button",{type:"button",disabled:k,onClick:()=>I(z),children:i("填入包","Use as package")}),c.jsx("button",{type:"button",disabled:k,onClick:()=>{B("extensions","remove",z)},children:i("移除","Remove")})]})]},z))}),c.jsxs("form",{onSubmit:z=>{z.preventDefault(),W&&!$&&B("extensions","add",W)},children:[c.jsx("input",{"aria-label":i("添加扩展路径","Add extension path"),"aria-invalid":$||void 0,"aria-describedby":$?"pi-extension-source-help":void 0,placeholder:i("扩展文件或目录路径","Extension file or directory path"),value:y.extensions,onChange:z=>x(ne=>({...ne,extensions:z.target.value}))}),c.jsx("button",{type:"submit",disabled:k||!W||$,children:i("添加扩展","Add extension")})]}),$&&c.jsxs("p",{id:"pi-extension-source-help",className:"pi-config-hint",children:[i("这是包来源,请使用上方的“添加包”输入框。","This is a package source. Use the Add package field above."),c.jsx("button",{type:"button",onClick:()=>I(W),children:i("填入包","Use as package")})]})]})]}):R?c.jsx("p",{role:"status",children:i("正在读取设置…","Loading settings…")}):c.jsx("button",{className:"pi-settings-retry",type:"button",onClick:()=>{F()},children:i("重试读取设置","Retry loading settings")})]},T.kind)]})}const qu=location.hash.slice(1);qu&&(sessionStorage.setItem("pi-web-token",qu),history.replaceState(null,"",location.pathname));const _r=qu||sessionStorage.getItem("pi-web-token");async function ot(e,r,i){const o=await fetch(e,{method:"POST",headers:{Authorization:`Bearer ${_r}`,"Content-Type":"application/json"},body:JSON.stringify(r),signal:i}),s=await o.json();if(!o.ok)throw new w1(s.error||_(`请求失败:${o.status}`,`Request failed: ${o.status}`),o.status);return s}async function Kt(e){const r=await fetch(e,{headers:{Authorization:`Bearer ${_r}`}}),i=await r.json();if(!r.ok)throw new w1(i.error||_(`请求失败:${r.status}`,`Request failed: ${r.status}`),r.status);return i}function Tb(){const e=Jn(),[r,i]=E.useState(null),[o,s]=E.useState(null),[a,d]=E.useState(_r?"connecting":"missing-token"),[f,p]=E.useState(""),[m,y]=E.useState([]),[x,v]=E.useState("loading"),[C,k]=E.useState([]),[P,R]=E.useState({items:[],activeId:null,sessions:[]}),[j,V]=E.useState(null);return E.useEffect(()=>{if(!_r)return;const S=new AbortController;let F,B=!0;return(async()=>{var ee;for(;B;)try{d("connecting");const ie=await fetch("/api/events",{headers:{Authorization:`Bearer ${_r}`},signal:S.signal});if(!ie.ok||!ie.body)throw new Error(ie.status===401?_("访问令牌无效,请在 Pi 中重新输入 /web。","Invalid access token. Run /web again in Pi."):_("连接 Pi 失败","Could not connect to Pi"));d("connected"),p("");const Y=ie.body.getReader(),D=new TextDecoder;let L="";for(;B;){const{done:Z,value:te}=await Y.read();if(Z)break;L+=D.decode(te,{stream:!0});let W=L.indexOf(`
|
|
92
|
+
`);for(;W!==-1;){const $=L.slice(0,W);if(L=L.slice(W+1),$){const I=JSON.parse($);I.type==="snapshot"&&((ee=I.session)==null?void 0:ee.schemaVersion)===1&&(i(I.session),I.session.idle&&s(null)),I.type==="stream"&&s(I.message),I.type==="workspaces"&&R(I.value),I.type==="error"&&p(I.message)}W=L.indexOf(`
|
|
93
|
+
`)}}throw new Error(_("Pi 网页连接已关闭","The Pi web connection has closed"))}catch(ie){if(!B)return;d("disconnected"),v("loading"),p(ie instanceof Error?ie.message:_("连接 Pi 失败","Could not connect to Pi")),await new Promise(Y=>{F=setTimeout(Y,1500)})}})(),()=>{B=!1,S.abort(),F&&clearTimeout(F)}},[]),E.useEffect(()=>{_r||p(_("请在 Pi 终端输入 /web,打开显示的完整地址。","Enter /web in the Pi terminal and open the full address shown."))},[e]),E.useEffect(()=>{if(a!=="connected")return;let S=!0;return v("loading"),Kt("/api/models").then(F=>{S&&(y(F),v("ready"))}).catch(F=>{S&&(v("error"),p(F instanceof Error?F.message:_("无法获取模型列表","Could not load the model list")))}),Kt("/api/commands").then(F=>{S&&k(F)}).catch(()=>{S&&k([])}),()=>{S=!1}},[a,r==null?void 0:r.sessionId]),E.useEffect(()=>{if(a!=="connected")return;let S=!0;return Kt("/api/workspaces").then(F=>{S&&R(F)}).catch(()=>{}),Kt("/api/directory/capability").then(F=>{S&&V(F.kind)}).catch(()=>{S&&V("browse")}),()=>{S=!1}},[a]),{session:r,streaming:o,connection:a,error:f,models:m,modelsStatus:x,commands:C,workspaces:P,directoryPickerKind:j,async pickDirectory(){if(!r||a!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));return(await ot("/api/directory/pick",{sessionId:r.sessionId})).path},async listDirectory(S,F){if(!r||a!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));return ot("/api/directory/list",{sessionId:r.sessionId,...S===void 0?{}:{path:S}},F)},async createDirectory(S,F){if(!r||a!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));return(await ot("/api/directory/create",{sessionId:r.sessionId,path:S,name:F})).path},clearError:()=>p(""),async upload(S,F){if(!r||a!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));const B=`/api/attachment?sessionId=${encodeURIComponent(r.sessionId)}&name=${encodeURIComponent(S.name)}`,T=await fetch(B,{method:"POST",headers:{Authorization:`Bearer ${_r}`,"Content-Type":S.type||"application/octet-stream"},body:S,signal:F}),ee=await T.json();if(T.status===404)throw new Error(_("当前 Pi 桥接服务仍是旧版。请在 Pi 中输入 /reload,再输入 /web 并打开新地址,然后重试上传。","The Pi bridge is outdated. Run /reload, then /web in Pi, open the new address, and retry the upload."));if(!T.ok)throw new Error(ee.error||_(`上传失败:${T.status}`,`Upload failed: ${T.status}`));return ee},async discardAttachment(S){!r||a!=="connected"||await ot("/api/attachment/remove",{sessionId:r.sessionId,id:S})},async send(S,F=[]){if(!(!r||a!=="connected")){p("");try{await ot("/api/message",{sessionId:r.sessionId,text:S,attachments:F})}catch(B){throw p(B instanceof Error?B.message:_("发送失败","Send failed")),B}}},async loadMessageImage(S,F){if(!r||a!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));const B=`/api/image?sessionId=${encodeURIComponent(r.sessionId)}&messageId=${encodeURIComponent(S)}&index=${F}`,T=await fetch(B,{headers:{Authorization:`Bearer ${_r}`}});if(!T.ok)throw new Error(_("图片读取失败","Could not load image"));return T.blob()},async stop(){if(!(!r||a!=="connected"))try{await ot("/api/abort",{sessionId:r.sessionId}),p("")}catch(S){throw p(S instanceof Error?S.message:_("停止失败","Could not stop")),S}},async compact(){if(!r||a!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));try{await ot("/api/compact",{sessionId:r.sessionId}),p("")}catch(S){throw p(S instanceof Error?S.message:_("压缩失败","Compaction failed")),S}},async newSession(){if(!(!r||a!=="connected"))try{await ot("/api/new-session",{sessionId:r.sessionId})}catch(S){throw p(S instanceof Error?S.message:_("无法创建新会话","Could not create a new session")),S}},async addWorkspace(S,F){if(!r||a!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ot("/api/workspace/add",{sessionId:r.sessionId,path:S,create:F})},async selectWorkspace(S){if(!r||a!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ot("/api/workspace/select",{sessionId:r.sessionId,id:S})},async newSessionInWorkspace(S){if(!r||a!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ot("/api/workspace/new-session",{sessionId:r.sessionId,id:S})},async removeWorkspace(S){if(!r||a!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ot("/api/workspace/remove",{sessionId:r.sessionId,id:S})},async selectSession(S,F,B){if(!r||a!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ot("/api/session/select",{sessionId:r.sessionId,workspaceId:S,id:F,path:B??""})},async setModel(S,F){if(!(!r||a!=="connected"))try{await ot("/api/model",{sessionId:r.sessionId,provider:S,id:F}),p("")}catch(B){throw p(B instanceof Error?B.message:_("切换模型失败","Could not change model")),B}},async setThinkingLevel(S){if(!(!r||a!=="connected"))try{await ot("/api/thinking-level",{sessionId:r.sessionId,level:S}),p("")}catch(F){throw p(F instanceof Error?F.message:_("切换推理强度失败","Could not change reasoning effort")),F}},async getConfig(){return Kt("/api/config")},async getUpdate(){return Kt("/api/update")},async getRunningVersion(){return Kt("/api/update/version")},async update(){if(!r||a!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));return ot("/api/update",{sessionId:r.sessionId})},async getProviders(){return Kt("/api/providers")},async getProviderModels(S){return Kt(`/api/provider/models?providerId=${encodeURIComponent(S)}`)},async updateProviderModel(S,F){if(!r||a!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ot("/api/provider/models",{sessionId:r.sessionId,providerId:S,change:F});try{y(await Kt("/api/models")),v("ready")}catch{p(_("模型已保存,但会话模型列表暂时无法刷新。","Model saved, but the conversation model list could not refresh."))}},async logoutProvider(S){if(!r||a!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ot("/api/provider/logout",{sessionId:r.sessionId,providerId:S});try{y(await Kt("/api/models")),v("ready")}catch{p(_("认证已移除,但会话模型列表暂时无法刷新。","Credentials removed, but the conversation model list could not refresh."))}},async addCustomProvider(S){if(!r||a!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ot("/api/provider/custom",{sessionId:r.sessionId,provider:S})},async startProviderLogin(S,F,B){if(!r||a!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));return ot("/api/provider/login",{sessionId:r.sessionId,providerId:S,method:F,...B===void 0?{}:{initialSecret:B}})},async getProviderLogin(S){return Kt(`/api/provider/login?id=${encodeURIComponent(S)}`)},async getActiveProviderLogin(){return(await Kt("/api/provider/login/active")).active},async respondProviderLogin(S,F){if(!r||a!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));await ot("/api/provider/login/respond",{sessionId:r.sessionId,id:S,value:F})},async cancelProviderLogin(S){!r||a!=="connected"||await ot("/api/provider/login/cancel",{sessionId:r.sessionId,id:S})},async refreshModels(){y(await Kt("/api/models")),v("ready")},async updateConfig(S,F,B,T){if(!r||a!=="connected")throw new Error(_("Pi 会话不可用","Pi session is unavailable"));return ot("/api/config",{sessionId:r.sessionId,kind:S,scope:F,action:B,value:T})}}}function zb(){Jn();const e={"session.new.label":_("新会话","New session"),"session.new":_("新会话","New session"),"toggle.open":_("展开侧栏","Expand sidebar"),"toggle.collapse":_("收起侧栏","Collapse sidebar"),"panels.label":_("面板","Panels"),"brand.localBuild":"pi-webapp"},r=Tb(),[i,o]=E.useState(!1),s=r.connection==="connected"&&r.session!==null&&r.modelsStatus==="ready"&&r.models.length===0;E.useEffect(()=>{s&&o(!0)},[s]);const a=E.useCallback(()=>{o(!1),requestAnimationFrame(()=>{var P;return(P=document.querySelector(".pi-settings-sidebar"))==null?void 0:P.focus()})},[]),[d,f]=E.useState(()=>({sidebar:280,viewportWidth:window.innerWidth,narrowExpanded:!1,rightbar:null,rightbarShown:!1,rightbarTrack:!1,rightbarFullscreen:!1,rightbarInstant:!1})),p=E.useMemo(()=>({setViewportWidth(P){f(R=>R.viewportWidth===P?R:{...R,viewportWidth:P,narrowExpanded:R.viewportWidth<1024!=P<1024?!1:R.narrowExpanded})},setSidebar(P){f(R=>({...R,sidebar:Math.min(420,Math.max(264,Math.round(P)))}))},setRightbar(P){}}),[]),m=()=>f(P=>P.viewportWidth<1024?{...P,narrowExpanded:!P.narrowExpanded}:{...P,sidebar:P.sidebar===0?280:0}),y=P=>P({layoutInfo:d}),x=P=>P({activePanelId:null}),v=P=>P([]),C=(P,R,j)=>P==="sidebar.brand.mark"?c.jsx(es,{size:24}):P==="sidebar.brand.name"?c.jsx("span",{children:"pi-webapp"}):P==="sidebar.settings"?c.jsx("div",{className:`pi-settings-trigger-row ${R.wide?"":"pi-settings-trigger-rail"}`,children:c.jsxs("button",{className:"pi-settings-sidebar","data-wide":R.wide,type:"button","aria-label":_("Pi 设置","Pi Settings"),"aria-haspopup":"dialog","aria-expanded":i,onClick:()=>o(!0),children:[R.wide?c.jsx(bd,{size:16}):c.jsx(_5,{size:18}),R.wide&&c.jsx("span",{children:_("Pi 设置","Pi Settings")})]})}):P==="sidebar.workspaces"?c.jsx(O_,{wide:R.wide,expandSidebar:R.expandSidebar,session:r.session,workspaces:r.workspaces,onAdd:r.addWorkspace,directoryPickerKind:r.directoryPickerKind,pickDirectory:r.pickDirectory,listDirectory:r.listDirectory,createDirectory:r.createDirectory,onRemove:r.removeWorkspace,onSelectSession:r.selectSession,onNewSession:r.newSessionInWorkspace}):(j==null?void 0:j.fallback)??null,k=(P,R)=>P==="sidebar"?c.jsx(hp,{collapsed:R.collapsed,width:R.width,startSession:()=>{r.newSession().catch(()=>{})},toggleSidebar:m,selectPanel:()=>{},usePanels:v,usePanelInfo:x,t:j=>e[j]??j,renderSlot:C}):P==="main"?c.jsx(Gw,{session:r.session,streaming:r.streaming,connection:r.connection,error:r.error,onSend:r.send,onLoadImage:r.loadMessageImage,onUpload:r.upload,onDiscardAttachment:r.discardAttachment,onStop:r.stop,onCompact:r.compact,onNewSession:r.newSession,commands:r.commands,models:r.models,modelsStatus:r.modelsStatus,onConfigureModels:()=>o(!0),onSetModel:r.setModel,onSetThinkingLevel:r.setThinkingLevel}):null;return c.jsxs(c.Fragment,{children:[c.jsx(h5,{useStore:y,usePanelInfo:x,actions:p,renderSlot:k,t:P=>e[P]??P}),i&&c.jsx(Mb,{onBack:a,setupMode:s,getConfig:r.getConfig,updateConfig:r.updateConfig,getUpdate:r.getUpdate,getRunningVersion:r.getRunningVersion,update:r.update,getProviders:r.getProviders,getProviderModels:r.getProviderModels,updateProviderModel:r.updateProviderModel,logoutProvider:r.logoutProvider,addCustomProvider:r.addCustomProvider,startProviderLogin:r.startProviderLogin,getProviderLogin:r.getProviderLogin,getActiveProviderLogin:r.getActiveProviderLogin,respondProviderLogin:r.respondProviderLogin,cancelProviderLogin:r.cancelProviderLogin,refreshModels:r.refreshModels})]})}V_();Og();const U3=document.getElementById("root");if(!U3)throw new Error("Missing #root");G4.createRoot(U3).render(c.jsx(zb,{}));
|