@tenonai/yew 1.3.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/CHANGELOG.md +41 -2
  2. package/README.md +9 -18
  3. package/dist/cli/app.js +23 -26
  4. package/dist/cli/export.js +5 -5
  5. package/dist/cli/main.js +0 -14
  6. package/dist/cli/mcp.js +7 -7
  7. package/dist/cli/remote.js +6 -6
  8. package/dist/cli/run.js +3 -3
  9. package/dist/cli/schedule.js +3 -3
  10. package/dist/cli/send.js +5 -6
  11. package/dist/cli/serve.js +13 -11
  12. package/dist/cli/service.js +14 -41
  13. package/dist/server/agent/context.js +2 -3
  14. package/dist/server/agent/runner.js +1 -1
  15. package/dist/server/data-usage.js +2 -3
  16. package/dist/server/db/database.js +1 -1
  17. package/dist/server/db/migrations.js +4 -0
  18. package/dist/server/export.js +2 -2
  19. package/dist/server/folder-picker.js +1 -1
  20. package/dist/server/http/api.js +3 -0
  21. package/dist/server/http/app.js +3 -3
  22. package/dist/server/http/data.js +1 -1
  23. package/dist/server/http/mcp.js +2 -2
  24. package/dist/server/http/problem.js +1 -1
  25. package/dist/server/http/security.js +5 -5
  26. package/dist/server/keys.js +5 -24
  27. package/dist/server/mail/post.js +2 -2
  28. package/dist/server/mcp-builtin.js +2 -3
  29. package/dist/server/mcp-config.js +4 -4
  30. package/dist/server/mcp-oauth.js +6 -6
  31. package/dist/server/paths.js +6 -15
  32. package/dist/server/settings.js +3 -0
  33. package/dist/server/skills.js +1 -2
  34. package/dist/server/store.js +2 -2
  35. package/dist/server/tools/mail.js +1 -1
  36. package/dist/server/tools/registry.js +2 -2
  37. package/dist/shared/policy.js +3 -3
  38. package/dist/shared/version.js +2 -0
  39. package/package.json +2 -2
  40. package/web/dist/THIRD-PARTY-NOTICES.txt +1 -1
  41. package/web/dist/assets/index-B_NesKxw.js +68 -0
  42. package/web/dist/assets/index-BqTqnE18.css +1 -0
  43. package/web/dist/index.html +3 -3
  44. package/web/dist/mascot/alarm.webp +0 -0
  45. package/web/dist/mascot/books.webp +0 -0
  46. package/web/dist/mascot/bow.webp +0 -0
  47. package/web/dist/mascot/branch.webp +0 -0
  48. package/web/dist/mascot/clipboard.webp +0 -0
  49. package/web/dist/mascot/dozing.webp +0 -0
  50. package/web/dist/mascot/fired-up.webp +0 -0
  51. package/web/dist/mascot/giftbox.webp +0 -0
  52. package/web/dist/mascot/halt.webp +0 -0
  53. package/web/dist/mascot/jump.webp +0 -0
  54. package/web/dist/mascot/letter-run.webp +0 -0
  55. package/web/dist/mascot/magnifier.webp +0 -0
  56. package/web/dist/mascot/mini.webp +0 -0
  57. package/web/dist/mascot/nap.webp +0 -0
  58. package/web/dist/mascot/pajamas.webp +0 -0
  59. package/web/dist/mascot/paper-plane.webp +0 -0
  60. package/web/dist/mascot/peek.webp +0 -0
  61. package/web/dist/mascot/phone.webp +0 -0
  62. package/web/dist/mascot/pointing.webp +0 -0
  63. package/web/dist/mascot/portrait.webp +0 -0
  64. package/web/dist/mascot/pout.webp +0 -0
  65. package/web/dist/mascot/proud.webp +0 -0
  66. package/web/dist/mascot/reading.webp +0 -0
  67. package/web/dist/mascot/stamp.webp +0 -0
  68. package/web/dist/mascot/stretch.webp +0 -0
  69. package/web/dist/mascot/surprised.webp +0 -0
  70. package/web/dist/mascot/tea.webp +0 -0
  71. package/web/dist/mascot/teary.webp +0 -0
  72. package/web/dist/mascot/typing.webp +0 -0
  73. package/dist/server/from-jig.js +0 -98
  74. package/web/dist/assets/index-BtK_SzpF.css +0 -1
  75. package/web/dist/assets/index-C0rnUFI-.js +0 -68
@@ -0,0 +1,68 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function ee(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function te(e,t){return E(e.type,t,e.props)}function ne(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function re(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ie=/\/+/g;function ae(e,t){return typeof e==`object`&&e&&e.key!=null?re(``+e.key):t.toString(36)}function oe(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(ee,ee):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function se(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,se(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ae(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(ie,`$&/`)+`/`),se(o,r,i,``,function(e){return e})):o!=null&&(ne(o)&&(o=te(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ie,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ae(a,u),c+=se(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ae(a,u++),c+=se(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return se(oe(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function D(e,t,n){if(e==null)return e;var r=[],i=0;return se(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function O(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var ce=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function le(e){var t=w.T,n={};n.types=t===null?null:t.types,w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(ee,ce)}catch(e){ce(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}}function ue(e){var t=w.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else le(ue.bind(null,e))}var de={map:D,forEach:function(e,t,n){D(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return D(e,function(){t++}),t},toArray:function(e){return D(e,function(e){return e})||[]},only:function(e){if(!ne(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=de,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.addTransitionType=ue,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=ne,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:O}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=le,e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.3.1`})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,te());else{var t=n(l);t!==null&&ie(x,t.startTime-e)}}}var S=!1,C=-1,ee=5,w=-1;function T(){return g?!0:!(e.unstable_now()-w<ee)}function E(){if(g=!1,S){var t=e.unstable_now();w=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&T());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ie(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?te():S=!1}}}var te;if(typeof y==`function`)te=function(){y(E)};else if(typeof MessageChannel<`u`){var ne=new MessageChannel,re=ne.port2;ne.port1.onmessage=E,te=function(){re.postMessage(null)}}else te=function(){_(E,0)};function ie(t,n){C=_(function(){t(e.unstable_now())},n)}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(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):ee=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ie(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,te()))),r},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.1`})),h=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=o((e=>{var t=p(),n=d(),r=h();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}function m(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&m(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function g(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function _(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function v(e){var t=[null,null],n=g(e);return n===null||y(t,e,n.child,{foundSelf:!1}),t}function y(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&y(e,t,n.child,r))return!0;n=n.sibling}return!1}function b(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var x=null,S=null;function C(e,t,n){return e===n||e===t&&(x=e,!0)}function ee(e,t,n){return e===n?(S=e,!1):e===t&&(S!==null&&(x=e),!0)}function w(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function T(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var E=Object.assign,te=Symbol.for(`react.element`),ne=Symbol.for(`react.transitional.element`),re=Symbol.for(`react.portal`),ie=Symbol.for(`react.fragment`),ae=Symbol.for(`react.strict_mode`),oe=Symbol.for(`react.profiler`),se=Symbol.for(`react.consumer`),D=Symbol.for(`react.context`),O=Symbol.for(`react.forward_ref`),ce=Symbol.for(`react.suspense`),le=Symbol.for(`react.suspense_list`),ue=Symbol.for(`react.memo`),de=Symbol.for(`react.lazy`),fe=Symbol.for(`react.activity`),pe=Symbol.for(`react.legacy_hidden`),me=Symbol.for(`react.memo_cache_sentinel`),he=Symbol.for(`react.view_transition`),ge=Symbol.for(`react.recoverable`),_e=Symbol.iterator;function ve(e){return typeof e!=`object`||!e?null:(e=_e&&e[_e]||e[`@@iterator`],typeof e==`function`?e:null)}var ye=Symbol.for(`react.client.reference`);function be(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ye?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ie:return`Fragment`;case oe:return`Profiler`;case ae:return`StrictMode`;case ce:return`Suspense`;case le:return`SuspenseList`;case fe:return`Activity`;case he:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case re:return`Portal`;case D:return e.displayName||`Context`;case se:return(e._context.displayName||`Context`)+`.Consumer`;case O:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ue:return t=e.displayName||null,t===null?be(e.type)||`Memo`:t;case de:t=e._payload,e=e._init;try{return be(e(t))}catch{}}return null}var xe=Array.isArray,k=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j={pending:!1,data:null,method:null,action:null},M=[],Se=-1;function N(e){return{current:e}}function Ce(e){0>Se||(e.current=M[Se],M[Se]=null,Se--)}function we(e,t){Se++,M[Se]=e.current,e.current=t}var Te=N(null),Ee=N(null),De=N(null),Oe=N(null);function ke(e,t){switch(we(De,t),we(Ee,e),we(Te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?hp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=hp(t),e=gp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}Ce(Te),we(Te,e)}function Ae(){Ce(Te),Ce(Ee),Ce(De)}function je(e){var t=e.memoizedState;t!==null&&(dh._currentValue=t.memoizedState,we(Oe,e)),t=Te.current;var n=gp(t,e.type);t!==n&&(we(Ee,e),we(Te,n))}function Me(e){Ee.current===e&&(Ce(Te),Ce(Ee)),Oe.current===e&&(Ce(Oe),dh._currentValue=j)}var Ne,Pe;function Fe(e){if(Ne===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ne=t&&t[1]||``,Pe=-1<e.stack.indexOf(`
2
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
3
+ `+Ne+e+Pe}var Ie=!1;function Le(e,t){if(!e||Ie)return``;Ie=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
4
+ `),l=s.split(`
5
+ `);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
6
+ `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Ie=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Fe(n):``}function Re(e,t){switch(e.tag){case 26:case 27:case 5:return Fe(e.type);case 16:return Fe(`Lazy`);case 13:return e.child!==t&&t!==null?Fe(`Suspense Fallback`):Fe(`Suspense`);case 19:return Fe(`SuspenseList`);case 0:case 15:return Le(e.type,!1);case 11:return Le(e.type.render,!1);case 1:return Le(e.type,!0);case 31:return Fe(`Activity`);case 30:return Fe(`ViewTransition`);default:return``}}function ze(e){try{var t=``,n=null;do t+=Re(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
7
+ Error generating stack: `+e.message+`
8
+ `+e.stack}}var Be=Object.prototype.hasOwnProperty,Ve=t.unstable_scheduleCallback,He=t.unstable_cancelCallback,Ue=t.unstable_shouldYield,We=t.unstable_requestPaint,Ge=t.unstable_now,Ke=t.unstable_getCurrentPriorityLevel,qe=t.unstable_ImmediatePriority,Je=t.unstable_UserBlockingPriority,Ye=t.unstable_NormalPriority,Xe=t.unstable_LowPriority,Ze=t.unstable_IdlePriority,Qe=t.log,$e=t.unstable_setDisableYieldValue,et=null,tt=null;function nt(e){if(typeof Qe==`function`&&$e(e),tt&&typeof tt.setStrictMode==`function`)try{tt.setStrictMode(et,e)}catch{}}var rt=Math.clz32?Math.clz32:ot,it=Math.log,at=Math.LN2;function ot(e){return e>>>=0,e===0?32:31-(it(e)/at|0)|0}var st=256,ct=262144,lt=4194304;function ut(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function dt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=ut(n))):i=ut(o):i=ut(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=ut(n))):i=ut(o)):i=ut(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function ft(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function pt(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-rt(n),i=1<<r;t|=e[r],n&=~i}return t}function mt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ht(){var e=lt;return lt<<=1,!(lt&62914560)&&(lt=4194304),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _t(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function vt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-rt(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&yt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function yt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-rt(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function xt(e,t){var n=t&-t;return n=n&42?1:St(n),(n&(e.suspendedLanes|t))===0?n:0}function St(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ct(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function wt(){var e=A.p;return e===0?(e=window.event,e===void 0?32:Dh(e.type)):e}function Tt(e,t){var n=A.p;try{return A.p=e,t()}finally{A.p=n}}var Et=Math.random().toString(36).slice(2),Dt=`__reactFiber$`+Et,Ot=`__reactProps$`+Et,kt=`__reactContainer$`+Et,At=`__reactEvents$`+Et,jt=`__reactListeners$`+Et,Mt=`__reactHandles$`+Et,Nt=`__reactResources$`+Et,Pt=`__reactMarker$`+Et,Ft=`__reactLoad$`+Et;function It(e){delete e[Dt],delete e[Ot],delete e[jt],delete e[Mt]}function Lt(e){var t;if(t=e[Dt])return t;for(var n=e.parentNode;n;){if(t=n[kt]||n[Dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gm(e);e!==null;){if(n=e[Dt])return n;e=gm(e)}return t}e=n,n=e.parentNode}return null}function Rt(e){if(e=e[Dt]||e[kt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function zt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Bt(e){var t=e[Nt];return t||=e[Nt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Vt(e){e[Pt]=!0}function Ht(e){e[Ft]=void 0}var Ut=new Set,Wt={};function Gt(e,t){Kt(e,t),Kt(e+`Capture`,t)}function Kt(e,t){for(Wt[e]=t,e=0;e<t.length;e++)Ut.add(t[e])}var qt=RegExp(`^[: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]*$`),Jt={},Yt={};function Xt(e){return Be.call(Yt,e)?!0:Be.call(Jt,e)?!1:qt.test(e)?Yt[e]=!0:(Jt[e]=!0,!1)}var P=!1;function Zt(){var e=P;return P=!1,e}function Qt(e,t,n){if(Xt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function $t(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function en(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function tn(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function nn(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function rn(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function an(e){if(!e._valueTracker){var t=nn(e)?`checked`:`value`;e._valueTracker=rn(e,t,``+e[t])}}function on(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=nn(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var sn=/[\n"\\]/g;function cn(e){return e.replace(sn,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function ln(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+tn(t)):e.value!==``+tn(t)&&(e.value=``+tn(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):dn(e,tn(n)):o===`number`&&e.value==t?dn(e,tn(e.value)):dn(e,tn(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+tn(s):e.removeAttribute(`name`)}function un(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){an(e);return}n=n==null?``:``+tn(n),t=t==null?n:``+tn(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),an(e)}function dn(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function fn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+tn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function pn(e,t,n){t!=null&&(t=``+tn(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+tn(n)}function mn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(xe(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=tn(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),an(e)}function hn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var gn=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function _n(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||gn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function vn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,P=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(_n(e,a,r),P=!0)}else for(var o in t)t.hasOwnProperty(o)&&_n(e,o,t[o])}function yn(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var bn=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`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`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`maskType`,`mask-type`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`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`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`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`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),xn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Sn(e){return xn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Cn(){}var wn=null;function Tn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var En=null,Dn=null;function On(e){var t=Rt(e);if(t&&(e=t.stateNode)){var n=e[Ot]||null;a:switch(e=t.stateNode,t.type){case`input`:if(ln(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+cn(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Ot]||null;if(!a)throw Error(i(90));ln(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&on(r)}break a;case`textarea`:pn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&fn(e,!!n.multiple,t,!1)}}}var kn=!1;function An(e,t,n){if(kn)return e(t,n);kn=!0;try{return e(t)}finally{if(kn=!1,(En!==null||Dn!==null)&&(Hd(),En&&(t=En,e=Dn,Dn=En=null,On(t),e)))for(t=0;t<e.length;t++)On(e[t])}}function jn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Ot]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var Mn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Nn=!1;if(Mn)try{var Pn={};Object.defineProperty(Pn,"passive",{get:function(){Nn=!0}}),window.addEventListener(`test`,Pn,Pn),window.removeEventListener(`test`,Pn,Pn)}catch{Nn=!1}var Fn=null,In=null,F=null;function Ln(){if(F)return F;var e,t=In,n=t.length,r,i=`value`in Fn?Fn.value:Fn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return F=i.slice(e,1<r?1-r:void 0)}function Rn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function I(){return!0}function zn(){return!1}function Bn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?I:zn,this.isPropagationStopped=zn,this}return E(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=I)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=I)},persist:function(){},isPersistent:I}),t}var Vn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hn=Bn(Vn),Un=E({},Vn,{view:0,detail:0}),Wn=Bn(Un),Gn,Kn,qn,Jn=E({},Un,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ar,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==qn&&(qn&&e.type===`mousemove`?(Gn=e.screenX-qn.screenX,Kn=e.screenY-qn.screenY):Kn=Gn=0,qn=e),Gn)},movementY:function(e){return`movementY`in e?e.movementY:Kn}}),Yn=Bn(Jn),Xn=Bn(E({},Jn,{dataTransfer:0})),Zn=Bn(E({},Un,{relatedTarget:0})),Qn=Bn(E({},Vn,{animationName:0,elapsedTime:0,pseudoElement:0})),$n=Bn(E({},Vn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),er=Bn(E({},Vn,{data:0})),tr={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},nr={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`},rr={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function ir(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=rr[e])?!!t[e]:!1}function ar(){return ir}var or=Bn(E({},Un,{key:function(e){if(e.key){var t=tr[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Rn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?nr[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ar,charCode:function(e){return e.type===`keypress`?Rn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Rn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),sr=Bn(E({},Jn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),cr=Bn(E({},Vn,{submitter:0})),lr=Bn(E({},Un,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ar})),ur=Bn(E({},Vn,{propertyName:0,elapsedTime:0,pseudoElement:0})),dr=Bn(E({},Jn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),fr=Bn(E({},Vn,{newState:0,oldState:0,source:0})),pr=[9,13,27,32],mr=Mn&&`CompositionEvent`in window,hr=null;Mn&&`documentMode`in document&&(hr=document.documentMode);var gr=Mn&&`TextEvent`in window&&!hr,_r=Mn&&(!mr||hr&&8<hr&&11>=hr),vr=` `,yr=!1;function br(e,t){switch(e){case`keyup`:return pr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function xr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Sr=!1;function Cr(e,t){switch(e){case`compositionend`:return xr(t);case`keypress`:return t.which===32?(yr=!0,vr):null;case`textInput`:return e=t.data,e===vr&&yr?null:e;default:return null}}function wr(e,t){if(Sr)return e===`compositionend`||!mr&&br(e,t)?(e=Ln(),F=In=Fn=null,Sr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return _r&&t.locale!==`ko`?null:t.data;default:return null}}var Tr={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 Er(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Tr[e.type]:t===`textarea`}function Dr(e,t,n,r){En?Dn?Dn.push(r):Dn=[r]:En=r,t=Qf(t,`onChange`),0<t.length&&(n=new Hn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Or=null,kr=null;function Ar(e){Gf(e,0)}function jr(e){if(on(zt(e)))return e}function Mr(e,t){if(e===`change`)return t}var Nr=!1;if(Mn){var Pr;if(Mn){var Fr=`oninput`in document;if(!Fr){var Ir=document.createElement(`div`);Ir.setAttribute(`oninput`,`return;`),Fr=typeof Ir.oninput==`function`}Pr=Fr}else Pr=!1;Nr=Pr&&(!document.documentMode||9<document.documentMode)}function Lr(){Or&&(Or.detachEvent(`onpropertychange`,Rr),kr=Or=null)}function Rr(e){if(e.propertyName===`value`&&jr(kr)){var t=[];Dr(t,kr,e,Tn(e)),An(Ar,t)}}function zr(e,t,n){e===`focusin`?(Lr(),Or=t,kr=n,Or.attachEvent(`onpropertychange`,Rr)):e===`focusout`&&Lr()}function Br(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return jr(kr)}function Vr(e,t){if(e===`click`)return jr(t)}function Hr(e,t){if(e===`input`||e===`change`)return jr(t)}function Ur(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Wr=typeof Object.is==`function`?Object.is:Ur;function Gr(e,t){if(Wr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Be.call(t,i)||!Wr(e[i],t[i]))return!1}return!0}function Kr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function qr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jr(e,t){var n=qr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=qr(n)}}function Yr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Kr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Kr(e.document)}return t}function Zr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Qr=Mn&&`documentMode`in document&&11>=document.documentMode,$r=null,ei=null,ti=null,ni=!1;function ri(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ni||$r==null||$r!==Kr(r)||(r=$r,`selectionStart`in r&&Zr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ti&&Gr(ti,r)||(ti=r,r=Qf(ei,`onSelect`),0<r.length&&(t=new Hn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=$r)))}function ii(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var ai={animationend:ii(`Animation`,`AnimationEnd`),animationiteration:ii(`Animation`,`AnimationIteration`),animationstart:ii(`Animation`,`AnimationStart`),transitionrun:ii(`Transition`,`TransitionRun`),transitionstart:ii(`Transition`,`TransitionStart`),transitioncancel:ii(`Transition`,`TransitionCancel`),transitionend:ii(`Transition`,`TransitionEnd`)},oi={},si={};Mn&&(si=document.createElement(`div`).style,`AnimationEvent`in window||(delete ai.animationend.animation,delete ai.animationiteration.animation,delete ai.animationstart.animation),`TransitionEvent`in window||delete ai.transitionend.transition);function ci(e){if(oi[e])return oi[e];if(!ai[e])return e;var t=ai[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in si)return oi[e]=t[n];return e}var li=ci(`animationend`),ui=ci(`animationiteration`),di=ci(`animationstart`),fi=ci(`transitionrun`),pi=ci(`transitionstart`),mi=ci(`transitioncancel`),hi=ci(`transitionend`),gi=new Map,_i=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(` `);_i.push(`scrollEnd`);function vi(e,t){gi.set(e,t),Gt(t,[e])}var yi=0;function bi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=Cd.identifierPrefix;var n=yi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function xi(e){if(e==null||typeof e==`string`)return e;var t=null,n=jd;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function Si(e,t){return e=xi(e),t=xi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var Ci=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},wi=[],Ti=0,Ei=0;function Di(){for(var e=Ti,t=Ei=Ti=0;t<e;){var n=wi[t];wi[t++]=null;var r=wi[t];wi[t++]=null;var i=wi[t];wi[t++]=null;var a=wi[t];if(wi[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ji(n,i,a)}}function Oi(e,t,n,r){wi[Ti++]=e,wi[Ti++]=t,wi[Ti++]=n,wi[Ti++]=r,Ei|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ki(e,t,n,r){return Oi(e,t,n,r),Mi(e)}function Ai(e,t){return Oi(e,null,null,t),Mi(e)}function ji(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-rt(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Mi(e){if(50<Md)throw Md=0,Nd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ni={};function Pi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fi(e,t,n,r){return new Pi(e,t,n,r)}function L(e){return e=e.prototype,!(!e||!e.isReactComponent)}function R(e,t){var n=e.alternate;return n===null?(n=Fi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function z(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ii(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)L(r)&&(s=1);else if(typeof r==`string`)s=Zm(e,n,Te.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case fe:return e=Fi(31,n,t,a),e.elementType=fe,e.lanes=o,e;case ie:return Li(n.children,a,o,t);case ae:s=8,a|=24;break;case oe:return e=Fi(12,n,t,a|2),e.elementType=oe,e.lanes=o,e;case ce:return e=Fi(13,n,t,a),e.elementType=ce,e.lanes=o,e;case le:return e=Fi(19,n,t,a),e.elementType=le,e.lanes=o,e;case pe:case he:return e=a|32,e=Fi(30,n,t,e),e.elementType=he,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case D:s=10;break a;case se:s=9;break a;case O:s=11;break a;case ue:s=14;break a;case de:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Fi(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Li(e,t,n,r){return e=Fi(7,e,r,t),e.lanes=n,e}function Ri(e,t,n){return e=Fi(6,e,null,t),e.lanes=n,e}function zi(e){var t=Fi(18,null,null,0);return t.stateNode=e,t}function B(e,t,n){return t=Fi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Bi=new WeakMap;function Vi(e,t){if(typeof e==`object`&&e){var n=Bi.get(e);return n===void 0?(t={value:e,source:t,stack:ze(t)},Bi.set(e,t),t):n}return{value:e,source:t,stack:ze(t)}}var Hi=[],Ui=0,Wi=null,Gi=0,Ki=[],qi=0,Ji=null,Yi=1,Xi=``;function Zi(e,t){Hi[Ui++]=Gi,Hi[Ui++]=Wi,Wi=e,Gi=t}function Qi(e,t,n){Ki[qi++]=Yi,Ki[qi++]=Xi,Ki[qi++]=Ji,Ji=e;var r=Yi;e=Xi;var i=32-rt(r)-1;r&=~(1<<i),n+=1;var a=32-rt(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Yi=1<<32-rt(t)+i|n<<i|r,Xi=a+e}else Yi=1<<a|n<<i|r,Xi=e}function $i(e){e.return!==null&&(Zi(e,1),Qi(e,1,0))}function ea(e){for(;e===Wi;)Wi=Hi[--Ui],Hi[Ui]=null,Gi=Hi[--Ui],Hi[Ui]=null;for(;e===Ji;)Ji=Ki[--qi],Ki[qi]=null,Xi=Ki[--qi],Ki[qi]=null,Yi=Ki[--qi],Ki[qi]=null}function ta(e,t){Ki[qi++]=Yi,Ki[qi++]=Xi,Ki[qi++]=Ji,Yi=t.id,Xi=t.overflow,Ji=e}var na=null,ra=null,V=!1,ia=null,aa=!1,oa=Error(i(519));function sa(e){throw pa(Vi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),oa}function ca(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Dt]=e,t[Ot]=r,n){case`dialog`:J(`cancel`,t),J(`close`,t);break;case`iframe`:case`object`:case`embed`:J(`load`,t);break;case`video`:case`audio`:for(n=0;n<Uf.length;n++)J(Uf[n],t);break;case`source`:J(`error`,t);break;case`img`:case`image`:case`link`:J(`error`,t),J(`load`,t);break;case`details`:J(`toggle`,t);break;case`input`:J(`invalid`,t),un(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:J(`invalid`,t);break;case`textarea`:J(`invalid`,t),mn(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||ip(t.textContent,n)?(r.popover!=null&&(J(`beforetoggle`,t),J(`toggle`,t)),r.onScroll!=null&&J(`scroll`,t),r.onScrollEnd!=null&&J(`scrollend`,t),r.onClick!=null&&(t.onclick=Cn),t=!0):t=!1,t||sa(e,!0)}function la(e){for(na=e.return;na;)switch(na.tag){case 5:case 31:case 13:aa=!1;return;case 27:case 3:aa=!0;return;default:na=na.return}}function ua(e){if(e!==na)return!1;if(!V)return la(e),V=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||vp(e.type,e.memoizedProps)),n=!n),n&&ra&&sa(e),la(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ra=hm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ra=hm(e)}else t===27?(t=ra,Ep(e.type)?(e=mm,mm=null,ra=e):ra=t):ra=na?pm(e.stateNode.nextSibling):null;return!0}function da(){ra=na=null,V=!1}function fa(){var e=ia;return e!==null&&(hd===null?hd=e:hd.push.apply(hd,e),ia=null),e}function pa(e){ia===null?ia=[e]:ia.push(e)}var ma=N(null),ha=null,ga=null;function _a(e,t,n){we(ma,t._currentValue),t._currentValue=n}function va(e){e._currentValue=ma.current,Ce(ma)}function ya(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ba(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ya(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ya(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),ya(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function xa(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Wr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===Oe.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[dh]:e.push(dh))}a=a.return}return e!==null&&ba(t,e,n,r),t.flags|=262144,e!==null}function Sa(e){for(e=e.firstContext;e!==null;){if(!Wr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ca(e){ha=e,ga=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function wa(e){return Ea(ha,e)}function Ta(e,t){return ha===null&&Ca(e),Ea(e,t)}function Ea(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ga===null){if(e===null)throw Error(i(308));ga=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ga=ga.next=t;return n}var Da=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Oa=t.unstable_scheduleCallback,ka=t.unstable_NormalPriority,Aa={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ja(){return{controller:new Da,data:new Map,refCount:0}}function Ma(e){e.refCount--,e.refCount===0&&Oa(ka,function(){e.controller.abort()})}function Na(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Pa=null;function Fa(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Ia=null,La=0,Ra=0,za=null;function Ba(e,t){if(Ia===null){var n=Ia=[];La=0,Ra=Rf(),za={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return La++,t.then(Va,Va),t}function Va(){if(--La===0&&(Pa=null,Ia!==null)){za!==null&&(za.status=`fulfilled`);var e=Ia;Ia=null,Ra=0,za=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ha(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Ua=k.S;k.S=function(e,t){if(vd=Ge(),typeof t==`object`&&t&&typeof t.then==`function`&&Ba(e,t),Pa!==null)for(var n=wf;n!==null;)Na(n,Pa),n=n.next;if(n=e.types,n!==null){for(var r=wf;r!==null;)Na(r,n),r=r.next;if(Ra!==0){r=Pa,r===null&&(r=Pa=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ua!==null&&Ua(e,t)};var Wa=N(null);function Ga(){var e=Wa.current;return e===null?td.pooledCache:e}function Ka(e,t){t===null?we(Wa,Wa.current):we(Wa,t.pool)}function qa(){var e=Ga();return e===null?null:{parent:Aa._currentValue,pool:e}}var Ja=Error(i(460)),Ya=Error(i(474)),Xa=Error(i(542)),Za={then:function(){}};function Qa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function $a(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Cn,Cn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ro(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(Cn,Cn);else{if(e=td,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ro(e),e}throw to=t,Ja}}function eo(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(to=e,Ja):e}}var to=null;function no(){if(to===null)throw Error(i(459));var e=to;return to=null,e}function ro(e){if(e===Ja||e===Xa)throw Error(i(483))}var io=null,ao=0;function oo(e){var t=ao;return ao+=1,io===null&&(io=[]),$a(io,e,t)}function so(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function co(e,t){throw t.$$typeof===te?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function lo(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=R(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Ri(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===ie?(e=d(e,t,n.props.children,r,n.key),so(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===de&&eo(i)===t.type)?(t=a(t,n.props),so(t,n),t.return=e,t):(t=Ii(n.type,n.key,n.props,null,e.mode,r),so(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=B(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Li(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Ri(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case ne:return n=Ii(t.type,t.key,t.props,null,e.mode,n),so(n,t),n.return=e,n;case re:return t=B(t,e.mode,n),t.return=e,t;case de:return t=eo(t),f(e,t,n)}if(xe(t)||ve(t))return t=Li(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,oo(t),n);if(t.$$typeof===D)return f(e,Ta(e,t),n);co(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case ne:return n.key===i?l(e,t,n,r):null;case re:return n.key===i?u(e,t,n,r):null;case de:return n=eo(n),p(e,t,n,r)}if(xe(n)||ve(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,oo(n),r);if(n.$$typeof===D)return p(e,t,Ta(e,n),r);co(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case ne:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case re:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case de:return r=eo(r),m(e,t,n,r,i)}if(xe(r)||ve(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,oo(r),i);if(r.$$typeof===D)return m(e,t,n,Ta(t,r),i);co(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),V&&Zi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return V&&Zi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),V&&Zi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),V&&Zi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return V&&Zi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),V&&Zi(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===ie&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case ne:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===ie){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),so(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===de&&eo(l)===r.type){n(e,r.sibling),c=a(r,o.props),so(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===ie?(c=Li(o.props.children,e.mode,c,o.key),so(c,o),c.return=e,e=c):(c=Ii(o.type,o.key,o.props,null,e.mode,c),so(c,o),c.return=e,e=c)}return s(e);case re:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=B(o,e.mode,c),c.return=e,e=c}return s(e);case de:return o=eo(o),_(e,r,o,c)}if(xe(o))return h(e,r,o,c);if(ve(o)){if(l=ve(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,oo(o),c);if(o.$$typeof===D)return _(e,r,Ta(e,o),c);co(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Ri(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{ao=0;var i=_(e,t,n,r);return io=null,i}catch(t){if(t===Ja||t===Xa)throw t;var a=Fi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var uo=lo(!0),fo=lo(!1),po=!1;function mo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ho(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function go(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function _o(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Mi(e),ji(e,null,n),t}return Oi(e,r,t,n),Mi(e)}function vo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bt(e,n)}}function yo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var bo=!1;function xo(){if(bo){var e=za;if(e!==null)throw e}}function So(e,t,n,r){bo=!1;var i=e.updateQueue;po=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(q&f)===f:(r&f)===f){f!==0&&f===Ra&&(bo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=E({},d,f);break a;case 2:po=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),ld|=o,e.lanes=o,e.memoizedState=d}}function Co(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function wo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Co(n[e],t)}var To=N(null),Eo=N(0);function Do(e,t){e=sd,we(Eo,e),we(To,t),sd=e|t.baseLanes}function Oo(){we(Eo,sd),we(To,To.current)}function ko(){sd=Eo.current,Ce(To),Ce(Eo)}var Ao=N(null),jo=null;function Mo(e){var t=e.alternate;we(Lo,Lo.current&1),we(Ao,e),jo===null&&(t===null||To.current!==null||t.memoizedState!==null)&&(jo=e)}function No(e){we(Lo,Lo.current),we(Ao,e),jo===null&&(jo=e)}function Po(e){e.tag===22?(we(Lo,Lo.current),we(Ao,e),jo===null&&(jo=e)):Fo()}function Fo(){we(Lo,Lo.current),we(Ao,Ao.current)}function Io(e){Ce(Ao),jo===e&&(jo=null),Ce(Lo)}var Lo=N(0);function Ro(e,t){we(Ao,Ao.current),we(Lo,t)}function zo(e){Ce(Lo),Ce(Ao),jo===e&&(jo=null)}function Bo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||um(n)||dm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Vo=0,H=null,Ho=null,Uo=null,Wo=!1,Go=!1,Ko=!1,qo=0,Jo=0,Yo=null,Xo=0;function Zo(){throw Error(i(321))}function Qo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Wr(e[n],t[n]))return!1;return!0}function $o(e,t,n,r,i,a){return Vo=a,H=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?gc:_c,Ko=!1,a=n(r,i),Ko=!1,Go&&(a=ts(t,n,r,i)),es(e),a}function es(e){k.H=hc;var t=Ho!==null&&Ho.next!==null;if(Vo=0,Uo=Ho=H=null,Wo=!1,Jo=0,Yo=null,t)throw Error(i(300));e===null||Pc||(e=e.dependencies,e!==null&&Sa(e)&&(Pc=!0))}function ts(e,t,n,r){H=e;var a=0;do{if(Go&&(Yo=null),Jo=0,Go=!1,25<=a)throw Error(i(301));if(a+=1,Uo=Ho=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}k.H=vc,o=t(n,r)}while(Go);return o}function ns(){var e=k.H,t=e.useState()[0];return t=typeof t.then==`function`?ls(t):t,e=e.useState()[0],(Ho===null?null:Ho.memoizedState)!==e&&(H.flags|=1024),t}function rs(){var e=qo!==0;return qo=0,e}function is(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function as(e){if(Wo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Wo=!1}Vo=0,Uo=Ho=H=null,Go=!1,Jo=qo=0,Yo=null}function os(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Uo===null?H.memoizedState=Uo=e:Uo=Uo.next=e,Uo}function ss(){if(Ho===null){var e=H.alternate;e=e===null?null:e.memoizedState}else e=Ho.next;var t=Uo===null?H.memoizedState:Uo.next;if(t!==null)Uo=t,Ho=e;else{if(e===null)throw H.alternate===null?Error(i(467)):Error(i(310));Ho=e,e={memoizedState:Ho.memoizedState,baseState:Ho.baseState,baseQueue:Ho.baseQueue,queue:Ho.queue,next:null},Uo===null?H.memoizedState=Uo=e:Uo=Uo.next=e}return Uo}function cs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ls(e){var t=Jo;return Jo+=1,Yo===null&&(Yo=[]),e=$a(Yo,e,t),t=H,(Uo===null?t.memoizedState:Uo.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?gc:_c),e}function us(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ls(e);if(e.$$typeof===ge)return;if(e.$$typeof===D)return wa(e)}throw Error(i(438,String(e)))}function ds(e){var t=null,n=H.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=H.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=cs(),H.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=me;return t.index++,n}function fs(e,t){return typeof t==`function`?t(e):t}function ps(e){return ms(ss(),Ho,e)}function ms(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Vo&f)===f:(q&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Ra&&(d=!0);else if((Vo&p)===p){u=u.next,p===Ra&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,H.lanes|=p,ld|=p;f=u.action,Ko&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,H.lanes|=f,ld|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Wr(o,e.memoizedState)&&(Pc=!0,d&&(n=za,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function hs(e){var t=ss(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Wr(o,t.memoizedState)||(Pc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function gs(e,t,n){var r=H,a=ss(),o=V;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Wr((Ho||a).memoizedState,n);if(s&&(a.memoizedState=n,Pc=!0),a=a.queue,Vs(ys.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Uo!==null&&!!(Uo.memoizedState.tag&1),Is(e?9:8,{destroy:void 0},vs.bind(null,r,a,n,t),null),e){if(r.flags|=2048,td===null)throw Error(i(349));o||Vo&127||_s(r,t,n)}return n}function _s(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=H.updateQueue,t===null?(t=cs(),H.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function vs(e,t,n,r){t.value=n,t.getSnapshot=r,bs(t)&&xs(e)}function ys(e,t,n){return n(function(){bs(t)&&xs(e)})}function bs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Wr(e,n)}catch{return!0}}function xs(e){var t=Ai(e,2);t!==null&&Ld(t,e,2)}function Ss(e){var t=os();if(typeof e==`function`){var n=e;if(e=n(),Ko){nt(!0);try{n()}finally{nt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fs,lastRenderedState:e},t}function Cs(e,t,n,r){return e.baseState=n,ms(e,Ho,typeof r==`function`?r:fs)}function ws(e,t,n,r,a){if(fc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};k.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ts(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ts(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=k.T,o={};o.types=a===null?null:a.types,k.T=o;try{var s=n(i,r),c=k.S;c!==null&&c(o,s),Es(e,t,s)}catch(n){Os(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),k.T=a}}else try{a=n(i,r),Es(e,t,a)}catch(n){Os(e,t,n)}}function Es(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Ds(e,t,n)},function(n){return Os(e,t,n)}):Ds(e,t,n)}function Ds(e,t,n){t.status=`fulfilled`,t.value=n,ks(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ts(e,n)))}function Os(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ks(t),t=t.next;while(t!==r)}e.action=null}function ks(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function As(e,t){return t}function js(e,t){if(V){var n=td.formState;if(n!==null){a:{var r=H;if(V){if(ra){b:{for(var i=ra,a=aa;i.nodeType!==8;)if(!a||(i=pm(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ra=pm(i.nextSibling),r=i.data===`F!`;break a}}sa(r)}r=!1}r&&(t=n[0])}}return n=os(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:As,lastRenderedState:t},n.queue=r,n=lc.bind(null,H,r),r.dispatch=n,r=Ss(!1),a=dc.bind(null,H,!1,r.queue),r=os(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=ws.bind(null,H,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ms(e){return Ns(ss(),Ho,e)}function Ns(e,t,n){if(t=ms(e,t,As)[0],e=ps(fs)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ls(t)}catch(e){throw e===Ja?Xa:e}else r=t;t=ss();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(H.flags|=2048,Is(9,{destroy:void 0},Ps.bind(null,i,n),null)),[r,a,e]}function Ps(e,t){e.action=t}function Fs(e){var t=ss(),n=Ho;if(n!==null)return Ns(t,n,e);ss(),t=t.memoizedState,n=ss();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Is(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=H.updateQueue,t===null&&(t=cs(),H.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ls(){return ss().memoizedState}function Rs(e,t,n,r){var i=os();H.flags|=e,i.memoizedState=Is(1|t,{destroy:void 0},n,r===void 0?null:r)}function zs(e,t,n,r){var i=ss();r=r===void 0?null:r;var a=i.memoizedState.inst;Ho!==null&&r!==null&&Qo(r,Ho.memoizedState.deps)?i.memoizedState=Is(t,a,n,r):(H.flags|=e,i.memoizedState=Is(1|t,a,n,r))}function Bs(e,t){Rs(8390656,8,e,t)}function Vs(e,t){zs(2048,8,e,t)}function Hs(e){H.flags|=4;var t=H.updateQueue;if(t===null)t=cs(),H.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Us(e){var t=ss().memoizedState;return Hs({ref:t,nextImpl:e}),function(){if(G&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Ws(e,t){return zs(4,2,e,t)}function Gs(e,t){return zs(4,4,e,t)}function Ks(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function qs(e,t,n){n=n==null?null:n.concat([e]),zs(4,4,Ks.bind(null,t,e),n)}function Js(){}function Ys(e,t){var n=ss();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Qo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xs(e,t){var n=ss();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Qo(t,r[1]))return r[0];if(r=e(),Ko){nt(!0);try{e()}finally{nt(!1)}}return n.memoizedState=[r,t],r}function Zs(e,t,n){return n===void 0||Vo&1073741824&&!(q&261930)?e.memoizedState=t:(e.memoizedState=n,e=Fd(),H.lanes|=e,ld|=e,n)}function Qs(e,t,n,r){return Wr(n,t)?n:To.current===null?!(Vo&106)||Vo&1073741824&&!(q&261930)?(Pc=!0,e.memoizedState=n):(e=Fd(),H.lanes|=e,ld|=e,t):(e=Zs(e,n,r),Wr(e,t)||(Pc=!0),e)}function $s(e,t,n,r,i){var a=A.p;A.p=a!==0&&8>a?a:8;var o=k.T,s={};s.types=o===null?null:o.types,k.T=s,dc(e,!1,t,n);try{var c=i(),l=k.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?uc(e,t,Ha(c,r),Pd(e)):uc(e,t,r,Pd(e))}catch(n){uc(e,t,{then:function(){},status:`rejected`,reason:n},Pd())}finally{A.p=a,o!==null&&s.types!==null&&(o.types=s.types),k.T=o}}function ec(){}function tc(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=nc(e).queue;$s(e,a,t,j,n===null?ec:function(){return rc(e),n(r)})}function nc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:j,baseState:j,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fs,lastRenderedState:j},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fs,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function rc(e){var t=nc(e);t.next===null&&(t=e.alternate.memoizedState),uc(e,t.next.queue,{},Pd())}function ic(){return wa(dh)}function ac(){return ss().memoizedState}function oc(){return ss().memoizedState}function sc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Pd();e=go(n);var r=_o(t,e,n);r!==null&&(Ld(r,t,n),vo(r,t,n)),t={cache:ja()},e.payload=t;return}t=t.return}}function cc(e,t,n){var r=Pd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},fc(e)?pc(t,n):(n=ki(e,t,n,r),n!==null&&(Ld(n,e,r),mc(n,t,r)))}function lc(e,t,n){uc(e,t,n,Pd())}function uc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(fc(e))pc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Wr(s,o))return Oi(e,t,i,0),td===null&&Di(),!1}catch{}if(n=ki(e,t,i,r),n!==null)return Ld(n,e,r),mc(n,t,r),!0}return!1}function dc(e,t,n,r){if(r={lane:2,revertLane:Rf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},fc(e)){if(t)throw Error(i(479))}else t=ki(e,n,r,2),t!==null&&Ld(t,e,2)}function fc(e){var t=e.alternate;return e===H||t!==null&&t===H}function pc(e,t){Go=Wo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function mc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bt(e,n)}}var hc={readContext:wa,use:us,useCallback:Zo,useContext:Zo,useEffect:Zo,useImperativeHandle:Zo,useLayoutEffect:Zo,useInsertionEffect:Zo,useMemo:Zo,useReducer:Zo,useRef:Zo,useState:Zo,useDebugValue:Zo,useDeferredValue:Zo,useTransition:Zo,useSyncExternalStore:Zo,useId:Zo,useHostTransitionStatus:Zo,useFormState:Zo,useActionState:Zo,useOptimistic:Zo,useMemoCache:Zo,useCacheRefresh:Zo,useEffectEvent:Zo},gc={readContext:wa,use:us,useCallback:function(e,t){return os().memoizedState=[e,t===void 0?null:t],e},useContext:wa,useEffect:Bs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Rs(4194308,4,Ks.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Rs(4194308,4,e,t)},useInsertionEffect:function(e,t){Rs(4,2,e,t)},useMemo:function(e,t){var n=os();t=t===void 0?null:t;var r=e();if(Ko){nt(!0);try{e()}finally{nt(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=os();if(n!==void 0){var i=n(t);if(Ko){nt(!0);try{n(t)}finally{nt(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=cc.bind(null,H,e),[r.memoizedState,e]},useRef:function(e){var t=os();return e={current:e},t.memoizedState=e},useState:function(e){e=Ss(e);var t=e.queue,n=lc.bind(null,H,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Js,useDeferredValue:function(e,t){return Zs(os(),e,t)},useTransition:function(){var e=Ss(!1);return e=$s.bind(null,H,e.queue,!0,!1),os().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=H,a=os();if(V){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),td===null)throw Error(i(349));q&127||_s(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Bs(ys.bind(null,r,o,e),[e]),r.flags|=2048,Is(9,{destroy:void 0},vs.bind(null,r,o,n,t),null),n},useId:function(){var e=os(),t=td.identifierPrefix;if(V){var n=Xi,r=Yi;n=(r&~(1<<32-rt(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=qo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Xo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:ic,useFormState:js,useActionState:js,useOptimistic:function(e){var t=os();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=dc.bind(null,H,!0,n),n.dispatch=t,[e,t]},useMemoCache:ds,useCacheRefresh:function(){return os().memoizedState=sc.bind(null,H)},useEffectEvent:function(e){var t=os(),n={impl:e};return t.memoizedState=n,function(){if(G&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},_c={readContext:wa,use:us,useCallback:Ys,useContext:wa,useEffect:Vs,useImperativeHandle:qs,useInsertionEffect:Ws,useLayoutEffect:Gs,useMemo:Xs,useReducer:ps,useRef:Ls,useState:function(){return ps(fs)},useDebugValue:Js,useDeferredValue:function(e,t){return Qs(ss(),Ho.memoizedState,e,t)},useTransition:function(){var e=ps(fs)[0],t=ss().memoizedState;return[typeof e==`boolean`?e:ls(e),t]},useSyncExternalStore:gs,useId:ac,useHostTransitionStatus:ic,useFormState:Ms,useActionState:Ms,useOptimistic:function(e,t){return Cs(ss(),Ho,e,t)},useMemoCache:ds,useCacheRefresh:oc,useEffectEvent:Us},vc={readContext:wa,use:us,useCallback:Ys,useContext:wa,useEffect:Vs,useImperativeHandle:qs,useInsertionEffect:Ws,useLayoutEffect:Gs,useMemo:Xs,useReducer:hs,useRef:Ls,useState:function(){return hs(fs)},useDebugValue:Js,useDeferredValue:function(e,t){var n=ss();return Ho===null?Zs(n,e,t):Qs(n,Ho.memoizedState,e,t)},useTransition:function(){var e=hs(fs)[0],t=ss().memoizedState;return[typeof e==`boolean`?e:ls(e),t]},useSyncExternalStore:gs,useId:ac,useHostTransitionStatus:ic,useFormState:Fs,useActionState:Fs,useOptimistic:function(e,t){var n=ss();return Ho===null?(n.baseState=e,[e,n.queue.dispatch]):Cs(n,Ho,e,t)},useMemoCache:ds,useCacheRefresh:oc,useEffectEvent:Us};function yc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:E({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var bc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Pd(),i=go(r);i.payload=t,n!=null&&(i.callback=n),t=_o(e,i,r),t!==null&&(Ld(t,e,r),vo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Pd(),i=go(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=_o(e,i,r),t!==null&&(Ld(t,e,r),vo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Pd(),r=go(n);r.tag=2,t!=null&&(r.callback=t),t=_o(e,r,n),t!==null&&(Ld(t,e,n),vo(t,e,n))}};function xc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Gr(n,r)||!Gr(i,a):!0}function Sc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&bc.enqueueReplaceState(t,t.state,null)}function Cc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=E({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function wc(e){Ci(e)}function Tc(e){console.error(e)}function Ec(e){Ci(e)}function Dc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Oc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function kc(e,t,n){return n=go(n),n.tag=3,n.payload={element:null},n.callback=function(){Dc(e,t)},n}function Ac(e){return e=go(e),e.tag=3,e}function jc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Oc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Oc(t,n,r),typeof i!=`function`&&(xd===null?xd=new Set([this]):xd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Mc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&xa(t,n,a,!0),n=Ao.current,n!==null){switch(n.tag){case 31:case 13:case 19:return jo===null?Yd():n.alternate===null&&cd===0&&(cd=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Za?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),vf(e,r,a)),!1;case 22:return n.flags|=65536,r===Za?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),vf(e,r,a)),!1}throw Error(i(435,n.tag))}return vf(e,r,a),Yd(),!1}if(V)return t=Ao.current,t===null?(r!==oa&&(t=Error(i(423),{cause:r}),pa(Vi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Vi(r,n),a=kc(e.stateNode,r,a),yo(e,a),cd!==4&&(cd=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==oa&&(e=Error(i(422),{cause:r}),pa(Vi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Vi(o,n),md===null?md=[o]:md.push(o),cd!==4&&(cd=2),t===null)return!0;r=Vi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=kc(n.stateNode,r,e),yo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(xd===null||!xd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Ac(a),jc(a,e,n,r),yo(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Nc=Error(i(461)),Pc=!1;function Fc(e,t,n,r){t.child=e===null?fo(t,null,n,r):uo(t,e.child,n,r)}function Ic(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Ca(t),r=$o(e,t,n,o,a,i),s=rs(),e!==null&&!Pc?(is(e,t,i),ul(e,t,i)):(V&&s&&$i(t),t.flags|=1,Fc(e,t,r,i),t.child)}function Lc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!L(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Rc(e,t,a,r,i)):(e=Ii(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!dl(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Gr:n,n(o,r)&&e.ref===t.ref)return ul(e,t,i)}return t.flags|=1,e=R(a,r),e.ref=t.ref,e.return=t,t.child=e}function Rc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Gr(a,r)&&e.ref===t.ref){if(Pc=!1,t.pendingProps=r=a,dl(e,i))e.flags&131072&&(Pc=!0);else return t.lanes=e.lanes,ul(e,t,i)}}return Kc(e,t,n,r,i)}function zc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Vc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ka(t,a===null?null:a.cachePool),a===null?Oo():Do(t,a),Po(t);else return r=t.lanes=536870912,Vc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ka(t,null),Oo(),Fo()):(Ka(t,a.cachePool),Do(t,a),Fo(),t.memoizedState=null);return Fc(e,t,i,n),t.child}function Bc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Vc(e,t,n,r,i){var a=Ga();return a=a===null?null:{parent:Aa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ka(t,null),Oo(),Po(t),e!==null&&xa(e,t,r,!0),t.childLanes=i,null}function Hc(e,t){return t=tl({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Uc(e,t,n){return uo(t,e.child,null,n),e=Hc(t,t.pendingProps),e.flags|=2,Io(t),t.memoizedState=null,e}function Wc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(V){if(r.mode===`hidden`)return e=Hc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Bc(null,e);if(No(t),(e=ra)?(e=lm(e,aa),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ji===null?null:{id:Yi,overflow:Xi},retryLane:536870912,hydrationErrors:null},n=zi(e),n.return=t,t.child=n,na=t,ra=null)):e=null,e===null)throw sa(t);return t.lanes=536870912,null}return Hc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(No(t),a){if(t.flags&256)t.flags&=-257,t=Uc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Pc||xa(e,t,n,!1),a=(n&e.childLanes)!==0,Pc||a){if(To.current===null){if(r=td,r!==null&&(s=xt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Ai(e,s),Ld(r,e,s),Nc;Yd()}t=Uc(e,t,n)}else e=o.treeContext,ra=pm(s.nextSibling),na=t,V=!0,ia=null,aa=!1,e!==null&&ta(t,e),t=Hc(t,r),t.flags|=134221824;return t}return e=R(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Gc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Kc(e,t,n,r,i){return Ca(t),n=$o(e,t,n,r,void 0,i),r=rs(),e!==null&&!Pc?(is(e,t,i),ul(e,t,i)):(V&&r&&$i(t),t.flags|=1,Fc(e,t,n,i),t.child)}function qc(e,t,n,r,i,a){return Ca(t),t.updateQueue=null,n=ts(t,r,n,i),es(e),r=rs(),e!==null&&!Pc?(is(e,t,a),ul(e,t,a)):(V&&r&&$i(t),t.flags|=1,Fc(e,t,n,a),t.child)}function Jc(e,t,n,r,i){if(Ca(t),t.stateNode===null){var a=Ni,o=n.contextType;typeof o==`object`&&o&&(a=wa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=bc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},mo(t),o=n.contextType,a.context=typeof o==`object`&&o?wa(o):Ni,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(yc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&bc.enqueueReplaceState(a,a.state,null),So(t,r,a,i),xo(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Cc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Ni,typeof u==`object`&&u&&(o=wa(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Sc(t,a,r,o),po=!1;var f=t.memoizedState;a.state=f,So(t,r,a,i),xo(),l=t.memoizedState,s||f!==l||po?(typeof d==`function`&&(yc(t,n,d,r),l=t.memoizedState),(c=po||xc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ho(e,t),o=t.memoizedProps,u=Cc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Ni,typeof l==`object`&&l&&(c=wa(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Sc(t,a,r,c),po=!1,f=t.memoizedState,a.state=f,So(t,r,a,i),xo();var p=t.memoizedState;o!==d||f!==p||po||e!==null&&e.dependencies!==null&&Sa(e.dependencies)?(typeof s==`function`&&(yc(t,n,s,r),p=t.memoizedState),(u=po||xc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Sa(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Gc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=uo(t,e.child,null,i),t.child=uo(t,null,n,i)):Fc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=ul(e,t,i),e}function Yc(e,t,n,r){return da(),t.flags|=256,Fc(e,t,n,r),t.child}var Xc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zc(e){return{baseLanes:e,cachePool:qa()}}function Qc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=fd),e}function $c(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Lo.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(V){if(i?Mo(t):Fo(),(e=ra)?(e=lm(e,aa),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ji===null?null:{id:Yi,overflow:Xi},retryLane:536870912,hydrationErrors:null},n=zi(e),n.return=t,t.child=n,na=t,ra=null)):e=null,e===null)throw sa(t);return t.lanes=dm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Fo(),i=t.mode,a=tl({mode:`hidden`,children:a},i),r=Li(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Zc(n),r.childLanes=Qc(e,o,n),t.memoizedState=Xc,Bc(null,r)):(Mo(t),el(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return rl(e,t,a,o,r,c,s,n)}return i?(Fo(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=R(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Li(i,a,n,null),i.flags|=2):i=R(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Bc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Zc(n):(a=i.cachePool,a===null?a=qa():(s=Aa._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Qc(e,o,n),t.memoizedState=Xc,Bc(e.child,r)):(Mo(t),n=e.child,e=n.sibling,n=R(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function el(e,t){return t=tl({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function tl(e,t){return e=Fi(22,e,null,t),e.lanes=0,e}function nl(e,t,n){return uo(t,e.child,null,n),e=el(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function rl(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(Mo(t),t.flags&=-257,nl(e,t,c)):t.memoizedState===null?(Fo(),o=a.fallback,s=t.mode,a=tl({mode:`visible`,children:a.children},s),o=Li(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,uo(t,e.child,null,c),a=t.child,a.memoizedState=Zc(c),a.childLanes=Qc(e,r,c),t.memoizedState=Xc,Bc(null,a)):(Fo(),t.child=e.child,t.flags|=128,null);if(Mo(t),dm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,pa({value:a,source:null,stack:null})),nl(e,t,c)}if(Pc||xa(e,t,c,!1),r=(c&e.childLanes)!==0,Pc||r){if(To.current!==null)return nl(e,t,c);if(r=td,r!==null&&(a=xt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,Ai(e,a),Ld(r,e,a),Nc;return um(o)||Yd(),nl(e,t,c)}return um(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,ra=pm(o.nextSibling),na=t,V=!0,ia=null,aa=!1,e!==null&&ta(t,e),t=el(t,a.children),t.flags|=134221824,t)}function il(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ya(e.return,t,n)}function al(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Bo(n)===null&&(t=e),e=e.sibling}return t}function ol(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function sl(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function cl(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Lo.current;if(t.flags&128)return Ro(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Ro(t,o),i===`backwards`&&e!==null?(sl(e),Fc(e,t,r,n),sl(e)):Fc(e,t,r,n),r=V?Gi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&il(e,n,t);else if(e.tag===19)il(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=al(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,sl(t)),ol(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Bo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ol(t,!0,n,null,a,r);break;case`together`:ol(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=al(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ol(t,!1,i,n,a,r)}return t.child}function ll(e,t,n){var r=t.pendingProps;return _a(t,t.type,r.value),Fc(e,t,r.children,n),t.child}function ul(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ld|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(xa(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=R(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=R(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function dl(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Sa(e)))}function fl(e,t,n){switch(t.tag){case 3:ke(t,t.stateNode.containerInfo),_a(t,Aa,e.memoizedState.cache),da();break;case 27:case 5:je(t);break;case 4:ke(t,t.stateNode.containerInfo);break;case 10:_a(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,No(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Mo(t),t.flags|=128,null;r=xa(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?$c(e,t,n):(Mo(t),e=ul(e,t,n),e===null?null:e.sibling)}Mo(t);break;case 19:if(t.flags&128)return cl(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(xa(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return cl(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ro(t,Lo.current),r)break;return null;case 22:return t.lanes=0,zc(e,t,n,t.pendingProps);case 24:_a(t,Aa,e.memoizedState.cache)}return ul(e,t,n)}function pl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Pc=!0;else{if(!dl(e,n)&&!(t.flags&128))return Pc=!1,fl(e,t,n);Pc=!!(e.flags&131072)}}else Pc=!1,V&&t.flags&1048576&&Qi(t,Gi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=eo(t.elementType),t.type=e,typeof e==`function`)L(e)?(r=Cc(e,r),t.tag=1,t=Jc(null,t,e,r,n)):(t.tag=0,t=Kc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===O){t.tag=11,t=Ic(null,t,e,r,n);break a}if(a===ue){t.tag=14,t=Lc(null,t,e,r,n);break a}if(a===D){t.tag=10,t.type=e,t=ll(null,t,n);break a}}throw t=be(e)||e,Error(i(306,t,``))}}return t;case 0:return Kc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Cc(r,t.pendingProps),Jc(e,t,r,a,n);case 3:a:{if(ke(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,ho(e,t),So(t,r,null,n);var s=t.memoizedState;if(r=s.cache,_a(t,Aa,r),r!==o.cache&&ba(t,[Aa],n,!0),xo(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Yc(e,t,r,n);break a}if(r!==a){a=Vi(Error(i(424)),t),pa(a),t=Yc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(ra=pm(e.firstChild),na=t,V=!0,ia=null,aa=!0,n=fo(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(da(),r===a){t=ul(e,t,n);break a}Fc(e,t,r,n)}t=t.child}return t;case 26:return Gc(e,t),e===null?(n=Lm(t.type,null,t.pendingProps,null))?t.memoizedState=n:V||(t.stateNode=_p(t.type,t.pendingProps,De.current,t)):t.memoizedState=Lm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return je(t),e===null&&V&&(r=t.stateNode=ym(t.type,t.pendingProps,De.current),na=t,aa=!0,a=ra,Ep(t.type)?(mm=a,ra=pm(r.firstChild)):ra=a),Fc(e,t,t.pendingProps.children,n),Gc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&V&&((a=r=ra)&&(r=sm(r,t.type,t.pendingProps,aa),r===null?a=!1:(t.stateNode=r,na=t,ra=pm(r.firstChild),aa=!1,a=!0)),a||sa(t)),je(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,vp(a,o)?r=null:s!==null&&vp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=$o(e,t,ns,null,null,n),dh._currentValue=a),Gc(e,t),Fc(e,t,r,n),t.child;case 6:return e===null&&V&&((e=n=ra)&&(n=cm(n,t.pendingProps,aa),n===null?e=!1:(t.stateNode=n,na=t,ra=null,e=!0)),e||sa(t)),null;case 13:return $c(e,t,n);case 4:return ke(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=uo(t,null,r,n):Fc(e,t,r,n),t.child;case 11:return Ic(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Gc(e,t),Fc(e,t,r,n),t.child;case 8:return Fc(e,t,t.pendingProps.children,n),t.child;case 12:return Fc(e,t,t.pendingProps.children,n),t.child;case 10:return ll(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,Ca(t),a=wa(a),r=r(a),t.flags|=1,Fc(e,t,r,n),t.child;case 14:return Lc(e,t,t.type,t.pendingProps,n);case 15:return Rc(e,t,t.type,t.pendingProps,n);case 19:return cl(e,t,n);case 31:return Wc(e,t,n);case 22:return zc(e,t,n,t.pendingProps);case 24:return Ca(t),r=wa(Aa),e===null?(a=Ga(),a===null&&(a=td,o=ja(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},mo(t),_a(t,Aa,a)):((e.lanes&n)!==0&&(ho(e,t),So(t,null,null,n),xo()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,_a(t,Aa,r),r!==a.cache&&ba(t,[Aa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),_a(t,Aa,r))),Fc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:V&&$i(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Gc(e,t),Fc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function ml(e){e.flags|=4}function U(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Qm(t,r):Qm(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Kd())e.flags|=8192;else throw to=Za,Ya}}else e.flags&=-16777217}function hl(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!$m(t)){if(Kd())e.flags|=8192;else throw to=Za,Ya}}function gl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:ht(),e.lanes|=t,pd|=t)}function _l(e,t){if(!V)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function vl(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function yl(e,t,n){var r=t.pendingProps;switch(ea(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vl(t),null;case 1:return vl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),va(Aa),Ae(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ua(t)?ml(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,fa())),vl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(ml(t),o===null?(vl(t),U(t,a,null,r,n)):(vl(t),hl(t,o))):o?o===e.memoizedState?(vl(t),t.flags&=-16777217):(ml(t),vl(t),hl(t,o)):(e=e.memoizedProps,e!==r&&ml(t),vl(t),U(t,a,e,r,n)),null;case 27:if(Me(t),n=De.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ml(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return vl(t),t.subtreeFlags&=-33554433,null}e=Te.current,ua(t)?ca(t,e):(e=ym(a,r,n),t.stateNode=e,ml(t))}return vl(t),t.subtreeFlags&=-33554433,null;case 5:if(Me(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ml(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return vl(t),t.subtreeFlags&=-33554433,null}if(o=Te.current,ua(t))ca(t,o);else{var s=mp(De.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[Dt]=t,o[Ot]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(sp(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&ml(t)}}return vl(t),t.subtreeFlags&=-33554433,U(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&ml(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=De.current,ua(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=na,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Dt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||ip(e.nodeValue,n)),e||sa(t,!0)}else e=mp(e).createTextNode(r),e[Dt]=t,t.stateNode=e}return vl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=ua(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[Dt]=t}else da(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;vl(t),e=!1}else n=fa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Io(t),t):(Io(t),null);if(t.flags&128)throw Error(i(558))}return vl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ua(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[Dt]=t}else da(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;vl(t),a=!1}else a=fa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Io(t),t):(Io(t),null)}return Io(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),gl(t,t.updateQueue),vl(t),null);case 4:return Ae(),e===null&&Jf(t.stateNode.containerInfo),t.flags|=67108864,vl(t),null;case 10:return va(t.type),vl(t),null;case 19:if(zo(t),r=t.memoizedState,r===null)return vl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)_l(r,!1);else{if(cd!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Bo(e),o!==null){for(t.flags|=128,_l(r,!1),e=o.updateQueue,t.updateQueue=e,gl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)z(n,e),n=n.sibling;return Ro(t,Lo.current&1|2),V&&Zi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ge()>yd&&(t.flags|=128,a=!0,_l(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Bo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,gl(t,e),_l(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!V)return vl(t),null}else 2*Ge()-r.renderingStartTime>yd&&n!==536870912&&(t.flags|=128,a=!0,_l(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ge(),e.sibling=null,o=Lo.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||V?Ro(t,o):(n=o,we(Ao,t),we(Lo,n),jo===null&&(jo=t)),V&&Zi(t,r.treeForkCount),e}return vl(t),null;case 22:case 23:return Io(t),ko(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(vl(t),t.subtreeFlags&6&&(t.flags|=8192)):vl(t),n=t.updateQueue,n!==null&&gl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&Ce(Wa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),va(Aa),vl(t),null;case 25:return null;case 30:return t.flags|=33554432,vl(t),null}throw Error(i(156,t.tag))}function bl(e,t){switch(ea(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return va(Aa),Ae(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Me(t),null;case 31:if(t.memoizedState!==null){if(Io(t),t.alternate===null)throw Error(i(340));da()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Io(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));da()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return zo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Ae(),null;case 10:return va(t.type),null;case 22:case 23:return Io(t),ko(),e!==null&&Ce(Wa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return va(Aa),null;case 25:return null;default:return null}}function xl(e,t){switch(ea(t),t.tag){case 3:va(Aa),Ae();break;case 26:case 27:case 5:Me(t);break;case 4:Ae();break;case 31:t.memoizedState!==null&&Io(t);break;case 13:Io(t);break;case 19:zo(t);break;case 10:va(t.type);break;case 22:case 23:Io(t),ko(),e!==null&&Ce(Wa);break;case 24:va(Aa)}}function Sl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){_f(t,t.return,e)}}function Cl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){_f(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){_f(t,t.return,e)}}function wl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{wo(t,n)}catch(t){_f(e,e.return,t)}}}function Tl(e,t,n){n.props=Cc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){_f(e,t,n)}}function El(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=bi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Rp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new zp(e);m(e.child,!1,nm,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){_f(e,t,n)}}function Dl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){_f(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){_f(e,t,n)}else n.current=null}}function Ol(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)im(e.stateNode,t[n])}function kl(e){for(var t=e.return;t!==null&&(Ml(t)&&im(e.stateNode,t.stateNode),!jl(t));)t=t.return}function Al(e){for(var t=e.return;t!==null&&(Ml(t)&&am(e.stateNode,t.stateNode),!jl(t));)t=t.return}function jl(e){return e.tag===5||e.tag===3||e.tag===27}function Ml(e){return e&&e.tag===7&&e.stateNode!==null}function Nl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){_f(e,e.return,t)}}function Pl(e,t,n){try{var r=e.stateNode;lp(r,e.type,n,t),r[Ot]=t}catch(t){_f(e,e.return,t)}}function Fl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ep(e.type)||e.tag===4}function Il(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Fl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ep(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ll(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Cn)),Ol(e,r),P=!0;else if(i!==4&&(i===27&&(Ol(e,r),r=null,Ep(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Ll(e,t,n,r),e=e.sibling;e!==null;)Ll(e,t,n,r),e=e.sibling}function Rl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Ol(e,r),P=!0;else if(i!==4&&(i===27&&(Ol(e,r),r=null,Ep(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Rl(e,t,n,r),e=e.sibling;e!==null;)Rl(e,t,n,r),e=e.sibling}function zl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);sp(t,r,n),t[Dt]=e,t[Ot]=n}catch(t){_f(e,e.return,t)}}var Bl=!1,Vl=null;function Hl(e){(e.tag===30||e.subtreeFlags&33554432)&&(Bl=!0)}var Ul=null;function Wl(){var e=Ul;return Ul=null,e}var Gl=0;function Kl(e,t,n,r,i){return Gl=0,ql(e.child,t,n,r,i)}function ql(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Mp(o);r.push(s),s.view&&(a=!0)}else a||Mp(o).view&&(a=!0);Bl=!0,kp(o,Gl===0?t:t+`_`+Gl,n),Gl++}else e.tag===22&&e.memoizedState!==null||e.tag===30&&i||ql(e.child,t,n,r,i)&&(a=!0);e=e.sibling}return a}function Jl(e,t){for(;e!==null;)e.tag===5?Ap(e.stateNode,e.memoizedProps):e.tag===22&&e.memoizedState!==null||e.tag===30&&t||Jl(e.child,t),e=e.sibling}function Yl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Yl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=Si(t.default,t.share),t!==`none`&&(Kl(e,n,t,null,!1)||Jl(e.child,!1))}e=e.sibling}}function Xl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=bi(r,n),a=Si(r.default,n.paired?r.share:r.enter);a===`none`?Yl(e):Kl(e,i,a,null,!1)?(Yl(e),n.paired||t||Id(e,r.onEnter)):Jl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Xl(e,t),e=e.sibling;else Yl(e)}function Zl(e){if(Vl!==null&&Vl.size!==0){var t=Vl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=Si(n.default,n.share);if(a!==`none`&&(Kl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Id(e,n.onShare)):Jl(e.child,!1)),t.delete(r),t.size===0)break}}}Zl(e)}e=e.sibling}}}function Ql(e){if(e.tag===30){var t=e.memoizedProps,n=bi(t,e.stateNode),r=Vl===null?void 0:Vl.get(n),i=Si(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Kl(e,n,i,null,!1)?r===void 0?Id(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Vl.delete(n),Id(e,t.onShare)):Jl(e.child,!1)),Vl!==null&&Zl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Ql(e),e=e.sibling;else Vl!==null&&Zl(e)}function $l(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=bi(t,e.stateNode);t=Si(t.default,t.update),e.flags&=-5,t!==`none`&&Kl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&$l(e);e=e.sibling}}function eu(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Jl(e.child,!1))}eu(e)}e=e.sibling}}function tu(e){if(e.tag===30)e.stateNode.paired=null,Jl(e.child,!1),eu(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)tu(e),e=e.sibling;else eu(e)}function nu(e){for(e=e.child;e!==null;)e.tag===30?Jl(e.child,!1):e.subtreeFlags&33554432&&nu(e),e=e.sibling}function ru(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Gl<a.length){var l=a[Gl],u=Mp(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&kp(c,Gl===0?n:n+`_`+Gl,i),s&&e.flags&4||(Ul===null&&(Ul=[]),Ul.push(c,Gl===0?r:r+`_`+Gl,t.memoizedProps)),Gl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:ru(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function iu(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=bi(n,r),a=Si(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Np)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Gl=0,i=ru(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Id(e,n.onUpdate))}else e.subtreeFlags&33554432&&iu(e,t);e=e.sibling}}var au=!1,W=!1,ou=!1,su=!1,cu=typeof WeakSet==`function`?WeakSet:Set,lu=null,uu=!1,du=!1,fu=!1,pu=!1;function mu(e,t,n){if(e=e.containerInfo,fp=bh,e=Xr(e),Zr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(pp={focusedElem:e,selectionRange:r},bh=!1,n=(n&335544064)===n,lu=t,t=n?9270:1024;lu!==null;){if(e=lu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Ql(r[a]);if(e.alternate===null&&e.flags&2)n&&Hl(e),hu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Ql(r),hu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Hl(e),hu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,lu=r):(n&&$l(e),hu(n))}}Vl=null}function hu(e){for(;lu!==null;){var t=lu,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=Cc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){_f(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)om(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:om(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=bi(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=Si(a.default,a.update),a!==`none`&&Kl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,lu=r;break}lu=t.return}}function gu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Iu(e,n),r&4&&Sl(5,n);break;case 1:if(Iu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){_f(n,n.return,e)}else{var i=Cc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){_f(n,n.return,e)}}}r&64&&wl(n),r&512&&El(n,n.return);break;case 3:if(Iu(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{wo(e,t)}catch(e){_f(n,n.return,e)}}break;case 27:t===null&&r&4&&zl(n);case 26:case 5:Iu(e,n),t===null&&r&4&&Nl(n),r&512&&El(n,n.return);break;case 12:Iu(e,n);break;case 31:Iu(e,n),r&4&&Tu(e,n);break;case 13:Iu(e,n),r&4&&Eu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=xf.bind(null,n),fm(e,n))));break;case 22:if(r=n.memoizedState!==null||au,!r){var a=t!==null&&t.memoizedState!==null||W;t=au,i=W,au=r,(W=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Ru(e,n,r)):Iu(e,n),au=t,W=i}break;case 30:Iu(e,n),r&512&&El(n,n.return);break;case 7:r&512&&El(n,n.return);default:Iu(e,n)}}function _u(e,t){for(e=e.child;e!==null;)vu(e,t),e=e.sibling}function vu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){_f(e,e.return,t)}yu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,P=!0}catch(t){_f(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Op(s,!0):Op(e.stateNode,!1)}catch(t){_f(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&_u(e,t);break;default:_u(e,t)}}function yu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:vu(n,r);break a;case 22:n.memoizedState===null&&yu(n,r);break a;default:yu(n,r)}}e=e.sibling}}function bu(e){var t=e.alternate;t!==null&&(e.alternate=null,bu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&It(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var xu=null,Su=!1;function Cu(e,t,n){for(n=n.child;n!==null;)wu(e,t,n),n=n.sibling}function wu(e,t,n){if(tt&&typeof tt.onCommitFiberUnmount==`function`)try{tt.onCommitFiberUnmount(et,n)}catch{}switch(n.tag){case 26:W||Dl(n,t),Cu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!W&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:W||Dl(n,t),Al(n);var r=xu,i=Su;Ep(n.type)&&(xu=n.stateNode,Su=!1),Cu(e,t,n),bm(n.stateNode,n.type,n.memoizedProps),xu=r,Su=i;break;case 5:W||Dl(n,t),Al(n);case 6:if(n.tag===6&&Al(n),r=xu,i=Su,xu=null,Cu(e,t,n),xu=r,Su=i,xu!==null){if(Su)try{(xu.nodeType===9?xu.body:xu.nodeName===`HTML`?xu.ownerDocument.body:xu).removeChild(n.stateNode),P=!0}catch(e){_f(n,t,e)}else try{xu.removeChild(n.stateNode),P=!0}catch(e){_f(n,t,e)}}break;case 18:xu!==null&&(Su?(e=xu,Dp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Gh(e)):Dp(xu,n.stateNode));break;case 4:r=xu,i=Su,xu=n.stateNode.containerInfo,Su=!0,Cu(e,t,n),xu=r,Su=i;break;case 0:case 11:case 14:case 15:Cl(2,n,t),W||Cl(4,n,t),Cu(e,t,n);break;case 1:W||(Dl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Tl(n,t,r)),Cu(e,t,n);break;case 21:Cu(e,t,n);break;case 22:W=(r=W)||n.memoizedState!==null,Cu(e,t,n),W=r;break;case 30:Dl(n,t),Cu(e,t,n);break;case 7:W||Dl(n,t),Cu(e,t,n);break;default:Cu(e,t,n)}}function Tu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Gh(e)}catch(e){_f(t,t.return,e)}}}function Eu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Gh(e)}catch(e){_f(t,t.return,e)}}function Du(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new cu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new cu),t;default:throw Error(i(435,e.tag))}}function Ou(e,t){var n=Du(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Sf.bind(null,e,t);t.then(r,r)}})}function ku(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Ep(l.type)){xu=l.stateNode,Su=!1;break a}break;case 5:xu=l.stateNode,Su=!1;break a;case 3:case 4:xu=l.stateNode.containerInfo,Su=!0;break a}l=l.return}if(xu===null)throw Error(i(160));wu(s,c,o),xu=null,Su=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ju(t,e,n),t=t.sibling}var Au=null;function ju(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}ku(t,e,n),Mu(e),a&4&&(Cl(3,e,e.return),Sl(3,e),Cl(5,e,e.return));break;case 1:ku(t,e,n),Mu(e),a&512&&(W||r===null||Dl(r,r.return)),a&64&&au&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Au,ku(t,e,n),Mu(e),a&512&&(W||r===null||Dl(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(au)e.stateNode=_p(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[Pt]||r[Dt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),sp(r,t,n),r[Dt]=e,Vt(r),t=r;break a;case`link`:if(o=Ym(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),sp(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Ym(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),sp(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[Dt]=e,Vt(r),t=r}e.stateNode=t}}else au||Xm(o,e.type,e.stateNode)}else e.stateNode=Wm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Pl(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||W||t.parentNode.removeChild(t)):a.count--,n===null?au||Xm(o,e.type,e.stateNode):Wm(o,n,e.memoizedProps))}break;case 27:ku(t,e,n),Mu(e),a&512&&(W||r===null||Dl(r,r.return)),r!==null&&a&4&&Pl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=ou,ou=!1,ku(t,e,n),ou=o,Mu(e),a&512&&(W||r===null||Dl(r,r.return)),e.flags&32){t=e.stateNode;try{hn(t,``),P=!0}catch(t){_f(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Pl(e,t,r===null?t:r.memoizedProps)),a&1024&&(su=!0);break;case 6:if(ku(t,e,n),Mu(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,P=!0}catch(t){_f(e,e.return,t)}}break;case 3:if(P=!1,Jm=null,o=Au,Au=wm(t.containerInfo),ku(t,e,n),Au=o,Mu(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Gh(t.containerInfo)}catch(t){_f(e,e.return,t)}su&&(su=!1,Nu(e)),P=!1;break;case 4:a=ou,ou=au,r=Zt(),o=Au,Au=wm(e.stateNode.containerInfo),ku(t,e,n),Mu(e),Au=o,P&&du&&(fu=!0),P=r,ou=a;break;case 12:ku(t,e,n),Mu(e);break;case 31:ku(t,e,n),Mu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 13:ku(t,e,n),Mu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(_d=Ge()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=au,l=W,u=ou;au=c||o,ou=u||o,W=l||s,ku(t,e,n),W=l,ou=u,au=c,Mu(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||au||W||(t=s||W,n=au,r=W,au=o||au,W=t,Lu(e,2),au=n,W=r),!o&&ou||_u(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Ou(e,n))));break;case 19:ku(t,e,n),Mu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 30:a&512&&(W||r===null||Dl(r,r.return)),a=Zt(),o=du,s=(n&335544064)===n,c=e.memoizedProps,du=s&&Si(c.default,c.update)!==`none`,ku(t,e,n),Mu(e),s&&r!==null&&P&&(e.flags|=4),du=o,P=a;break;case 21:break;case 7:a&512&&(W||r===null||Dl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:ku(t,e,n),Mu(e)}}function Mu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Fl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(Ml(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(jl(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Rl(e,Il(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(hn(l,``),n.flags&=-33),Rl(e,Il(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Ll(e,Il(e),u,s);break;default:throw Error(i(161))}}catch(t){_f(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Nu(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,bh=!0,t.reset(),bh=!1),e=e.sibling}}function Pu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Fu(t,e),t=t.sibling;else iu(t,!1)}function Fu(e,t){var n=e.alternate;if(n===null)Xl(e,!1);else switch(e.tag){case 3:if(pu=uu=!1,Wl(),Pu(t,e),!uu&&!fu){if(e=Ul,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Ap(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),pu=!0}Ul=null;break;case 5:Pu(t,e);break;case 4:r=uu,uu=!1,Pu(t,e),uu&&(fu=!0),uu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Pu(t,e):Xl(e,!1));break;case 30:r=uu,i=Wl(),uu=!1,Pu(t,e),uu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=bi(a,o),o=bi(n.memoizedProps,o);var s=Si(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Gl=0,t=ru(e,n,t,o,s,a,!0),Gl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Id(e,e.memoizedProps.onUpdate),Ul=i):i!==null&&(i.push.apply(i,Ul),Ul=i),uu=e.flags&32?!0:r;break;default:Pu(t,e)}}function Iu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)gu(e,t.alternate,t),t=t.sibling}function Lu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:Cl(4,n,n.return),Lu(n,r);break;case 1:Dl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&Tl(n,n.return,i),Lu(n,r);break;case 27:r&2&&bm(n.stateNode,n.type,n.memoizedProps);case 5:Dl(n,n.return),n.tag!==5&&n.tag!==27||Al(n),Lu(n,r);break;case 6:Al(n);break;case 26:Dl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||W||i.parentNode.removeChild(i),Lu(n,r);break;case 22:n.memoizedState===null&&Lu(n,r);break;case 30:Dl(n,n.return),Lu(n,r);break;case 7:Dl(n,n.return);default:Lu(n,r)}e=e.sibling}}function Ru(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Ru(i,a,n),Sl(4,a);break;case 1:if(Ru(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){_f(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)Co(l[i],c)}catch(e){_f(r,r.return,e)}}s&&o&64&&wl(a),El(a,a.return);break;case 27:n&2&&zl(a);case 5:a.tag!==5&&a.tag!==27||kl(a),Ru(i,a,n),s&&r===null&&o&4&&Nl(a),El(a,a.return);break;case 6:kl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||au||Xm(wm(c.ownerDocument),a.type,c),Ru(i,a,n),s&&r===null&&o&4&&Nl(a),El(a,a.return);break;case 12:Ru(i,a,n);break;case 31:Ru(i,a,n),s&&o&4&&Tu(i,a);break;case 13:Ru(i,a,n),s&&o&4&&Eu(i,a);break;case 22:a.memoizedState===null&&Ru(i,a,n),El(a,a.return);break;case 30:Ru(i,a,n),El(a,a.return);break;case 7:El(a,a.return);default:Ru(i,a,n)}t=t.sibling}}function zu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ma(n))}function Bu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ma(e))}function Vu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Hu(e,t,n,r),t=t.sibling;else i&&nu(t)}function Hu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&tu(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Vu(e,t,n,r),a&2048&&Sl(9,t);break;case 1:Vu(e,t,n,r);break;case 3:Vu(e,t,n,r),i&&pu&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Ma(a)));break;case 12:if(a&2048){Vu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){_f(t,t.return,e)}}else Vu(e,t,n,r);break;case 31:Vu(e,t,n,r);break;case 13:Vu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&tu(t),o._visibility&2?Vu(e,t,n,r):(o._visibility|=2,Uu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&tu(s),o._visibility&2?Vu(e,t,n,r):Wu(e,t)),a&2048&&zu(s,t);break;case 24:Vu(e,t,n,r),a&2048&&Bu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Jl(a.child,!0),Jl(t.child,!0))),Vu(e,t,n,r);break;default:Vu(e,t,n,r)}}function Uu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Uu(a,o,s,c,i),Sl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Uu(a,o,s,c,i)):u._visibility&2?Uu(a,o,s,c,i):Wu(a,o),i&&l&2048&&zu(o.alternate,o);break;case 24:Uu(a,o,s,c,i),i&&l&2048&&Bu(o.alternate,o);break;default:Uu(a,o,s,c,i)}t=t.sibling}}function Wu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Wu(n,r),i&2048&&zu(r.alternate,r);break;case 24:Wu(n,r),i&2048&&Bu(r.alternate,r);break;default:Wu(n,r)}t=t.sibling}}var Gu=8192;function Ku(e,t,n){if(e.subtreeFlags&Gu)for(e=e.child;e!==null;)qu(e,t,n),e=e.sibling}function qu(e,t,n){switch(e.tag){case 26:Ku(e,t,n),e.flags&Gu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&th(n,e)):nh(n,Au,e.memoizedState,e.memoizedProps));break;case 5:Ku(e,t,n),e.flags&Gu&&(e=e.stateNode,(t&335544128)===t&&th(n,e));break;case 3:case 4:var r=Au;Au=wm(e.stateNode.containerInfo),Ku(e,t,n),Au=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Gu,Gu=16777216,Ku(e,t,n),Gu=r):Ku(e,t,n));break;case 30:if((e.flags&Gu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Vl===null&&(Vl=new Map),Vl.set(r,i)}Ku(e,t,n);break;default:Ku(e,t,n)}}function Ju(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Yu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];lu=r,Qu(r,e)}Ju(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Xu(e),e=e.sibling}function Xu(e){switch(e.tag){case 0:case 11:case 15:Yu(e),e.flags&2048&&Cl(9,e,e.return);break;case 3:Yu(e);break;case 12:Yu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Zu(e)):Yu(e);break;default:Yu(e)}}function Zu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];lu=r,Qu(r,e)}Ju(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Cl(8,t,t.return),Zu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Zu(t));break;default:Zu(t)}e=e.sibling}}function Qu(e,t){for(;lu!==null;){var n=lu;switch(n.tag){case 0:case 11:case 15:Cl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Ma(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,lu=r;else a:for(n=e;lu!==null;){r=lu;var i=r.sibling,a=r.return;if(bu(r),r===n){lu=null;break a}if(i!==null){i.return=a,lu=i;break a}lu=a}}}var $u={getCacheForType:function(e){var t=wa(Aa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return wa(Aa).controller.signal}},ed=typeof WeakMap==`function`?WeakMap:Map,G=0,td=null,K=null,q=0,nd=0,rd=null,id=!1,ad=!1,od=!1,sd=0,cd=0,ld=0,ud=0,dd=0,fd=0,pd=0,md=null,hd=null,gd=!1,_d=0,vd=0,yd=1/0,bd=null,xd=null,Sd=0,Cd=null,wd=null,Td=0,Ed=0,Dd=null,Od=null,kd=null,Ad=null,jd=null,Md=0,Nd=null;function Pd(){return G&2&&q!==0?q&-q:k.T===null?wt():Rf()}function Fd(){if(fd===0){if(!(q&536870912)||V){var e=ct;ct<<=1,!(ct&3932160)&&(ct=262144),fd=e}else fd=536870912}return e=Ao.current,e!==null&&(e.flags|=32),fd}function Id(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Rp(bi(e.memoizedProps,n))),Ad===null&&(Ad=[]),Ad.push(t.bind(null,r))}}function Ld(e,t,n){(e===td&&(nd===2||nd===9)||e.cancelPendingCommit!==null)&&(Wd(e,0),Vd(e,q,fd,!1)),_t(e,n),G&2&&e===td||(e===td&&(!(G&2)&&(ud|=n),cd===4&&Vd(e,q,fd,!1)),Af(e))}function Rd(e,t,n){if(G&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||ft(e,t),a=r?Qd(e,t):Xd(e,t,!0),o=r;do{if(a===0){ad&&!r&&Vd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Bd(n))a=Xd(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=md;var l=c.current.memoizedState.isDehydrated;if(l&&(Wd(c,s).flags|=256),s=Xd(c,s,!1),s!==2&&s!==6){if(od&&!l){c.errorRecoveryDisabledLanes|=o,ud|=o,a=4;break a}o=hd,hd=a,o!==null&&(hd===null?hd=o:hd.push.apply(hd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Wd(e,0),Vd(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Vd(r,t,fd,!id);break a;case 2:hd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=_d+300-Ge(),10<a)){if(Vd(r,t,fd,!id),dt(r,0,!0)!==0)break a;Td=t,r.timeoutHandle=xp(zd.bind(null,r,n,hd,bd,gd,t,fd,ud,pd,id,o,`Throttled`,-0,0),a);break a}zd(r,n,hd,bd,gd,t,fd,ud,pd,id,o,null,-0,0)}break}}while(1);Af(e)}function zd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Cn},Vl=null,qu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=oh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?_d-Ge():(a&4194048)===a?vd-Ge():0,m=ih(d,m),m!==null)?(Td=a,e.cancelPendingCommit=m(of.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Vd(e,a,o,!l)):of(e,t,a,n,r,i,o,s,c,l,u,d)}function Bd(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Wr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Vd(e,t,n,r){t=pt(e,t),t&=~dd,t&=~ud,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-rt(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&yt(e,n,t)}function Hd(){return G&6?!0:(jf(0,!1),!1)}function Ud(){if(K!==null){if(nd===0)var e=K.return;else e=K,ga=ha=null,as(e),io=null,ao=0,e=K;for(;e!==null;)xl(e.alternate,e),e=e.return;K=null}}function Wd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,Sp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Td=0,Ud(),td=e,K=n=R(e.current,null),q=t,nd=0,rd=null,id=!1,ad=ft(e,t),od=!1,pd=fd=dd=ud=ld=cd=0,hd=md=null,gd=!1,sd=pt(e,t),Di(),n}function Gd(e,t){H=null,k.H=hc,t===Ja||t===Xa?(t=no(),nd=3):t===Ya?(t=no(),nd=4):nd=t===Nc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,rd=t,K===null&&(cd=1,Dc(e,Vi(t,e.current)))}function Kd(){var e=Ao.current;return e===null?!0:(q&4194048)===q?jo===null:(q&62914560)===q||q&536870912?e===jo:!1}function qd(){var e=k.H;return k.H=hc,e===null?hc:e}function Jd(){var e=k.A;return k.A=$u,e}function Yd(){cd=4,id||(q&4194048)!==q&&Ao.current!==null||(ad=!0),!(ld&134217727)&&!(ud&134217727)||td===null||Vd(td,q,fd,!1)}function Xd(e,t,n){var r=G;G|=2;var i=qd(),a=Jd();(td!==e||q!==t)&&(bd=null,Wd(e,t)),t=!1;var o=cd;a:do try{if(nd!==0&&K!==null){var s=K,c=rd;switch(nd){case 8:Ud(),o=6;break a;case 3:case 2:case 9:case 6:Ao.current===null&&(t=!0);var l=nd;if(nd=0,rd=null,nf(e,s,c,l),n&&ad){o=0;break a}break;default:l=nd,nd=0,rd=null,nf(e,s,c,l)}}Zd(),o=cd;break}catch(t){Gd(e,t)}while(1);return t&&e.shellSuspendCounter++,ga=ha=null,G=r,k.H=i,k.A=a,K===null&&(td=null,q=0,Di()),o}function Zd(){for(;K!==null;)ef(K)}function Qd(e,t){var n=G;G|=2;var r=qd(),a=Jd();td!==e||q!==t?(bd=null,yd=Ge()+500,Wd(e,t)):ad=ft(e,t);a:do try{if(nd!==0&&K!==null){t=K;var o=rd;b:switch(nd){case 1:nd=0,rd=null,nf(e,t,o,1);break;case 2:case 9:if(Qa(o)){nd=0,rd=null,tf(t);break}t=function(){nd!==2&&nd!==9||td!==e||(nd=7),Af(e)},o.then(t,t);break a;case 3:nd=7;break a;case 4:nd=5;break a;case 7:Qa(o)?(nd=0,rd=null,tf(t)):(nd=0,rd=null,nf(e,t,o,7));break;case 5:var s=null;switch(K.tag){case 26:s=K.memoizedState;case 5:case 27:var c=K;if(s?$m(s):c.stateNode.complete){nd=0,rd=null;var l=c.sibling;if(l!==null)K=l;else{var u=c.return;u===null?K=null:(K=u,rf(u))}break b}}nd=0,rd=null,nf(e,t,o,5);break;case 6:nd=0,rd=null,nf(e,t,o,6);break;case 8:Ud(),cd=6;break a;default:throw Error(i(462))}}$d();break}catch(t){Gd(e,t)}while(1);return ga=ha=null,k.H=r,k.A=a,G=n,K===null?(td=null,q=0,Di(),cd):0}function $d(){for(;K!==null&&!Ue();)ef(K)}function ef(e){var t=pl(e.alternate,e,sd);e.memoizedProps=e.pendingProps,t===null?rf(e):K=t}function tf(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=qc(n,t,t.pendingProps,t.type,void 0,q);break;case 11:t=qc(n,t,t.pendingProps,t.type.render,t.ref,q);break;case 5:as(t);var r=t;r===na&&(V?(la(r),r.tag===5&&r.stateNode!=null&&(ra=r.stateNode)):(la(r),V=!0));default:xl(n,t),t=K=z(t,sd),t=pl(n,t,sd)}e.memoizedProps=e.pendingProps,t===null?rf(e):K=t}function nf(e,t,n,r){ga=ha=null,as(t),io=null,ao=0;var i=t.return;try{if(Mc(e,i,t,n,q)){cd=1,Dc(e,Vi(n,e.current)),K=null;return}}catch(t){if(i!==null)throw K=i,t;cd=1,Dc(e,Vi(n,e.current)),K=null;return}t.flags&32768?(V||r===1?e=!0:ad||q&536870912?e=!1:(id=e=!0,(r===2||r===9||r===3||r===6)&&(r=Ao.current,r!==null&&r.tag===13&&(r.flags|=16384))),af(t,e)):rf(t)}function rf(e){var t=e;do{if(t.flags&32768){af(t,id);return}e=t.return;var n=yl(t.alternate,t,sd);if(n!==null){K=n;return}if(t=t.sibling,t!==null){K=t;return}K=t=e}while(t!==null);cd===0&&(cd=5)}function af(e,t){do{var n=bl(e.alternate,e);if(n!==null){n.flags&=32767,K=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){K=e;return}K=e=n}while(e!==null);cd=6,K=null}function of(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do mf();while(Sd!==0);if(G&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===td&&(K=td=null,q=0),wd=t,Cd=e,Td=n,Dd=a,Od=r,sf(e,t,n,s,c,l,f)}}function sf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Ed=s,s|=Ei,vt(e,n,s,r,i,a),Ad=null,(n&335544064)===n?(jd=Fa(e),r=10262):(jd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,Cf(Ye,function(){return hf(),null})):(e.callbackNode=null,e.callbackPriority=0),Bl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=k.T,k.T=null,i=A.p,A.p=2,a=G,G|=4;try{mu(e,t,n)}finally{G=a,A.p=i,k.T=r}}Sd=1,Bl?kd=Ip(o,e.containerInfo,jd,uf,df,lf,ff,hf,cf,null,null):(uf(),df(),ff())}function cf(e){if(Sd!==0){var t=Cd.onRecoverableError;t(e,{componentStack:null})}}function lf(){Sd===3&&(Sd=0,Fu(wd,Cd),Sd=4)}function uf(){if(Sd===1){Sd=0;var e=Cd,t=wd,n=Td,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=k.T,k.T=null;var i=A.p;A.p=2;var a=G;G|=4;try{du=fu=!1,ju(t,e,n),n=pp;var o=Xr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Yr(s.ownerDocument.documentElement,s)){if(c!==null&&Zr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Jr(s,h),v=Jr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}bh=!!fp,pp=fp=null}finally{G=a,A.p=i,k.T=r}}e.current=t,Sd=2}}function df(){if(Sd===2){Sd=0;var e=Cd,t=wd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=k.T,k.T=null;var r=A.p;A.p=2;var i=G;G|=4;try{gu(e,t.alternate,t)}finally{G=i,A.p=r,k.T=n}}Sd=3}}function ff(){if(Sd===4||Sd===3){Sd=0;var e=kd;kd=null,We();var t=Cd,n=wd,r=Td,i=Od,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?Sd=5:(Sd=0,wd=Cd=null,pf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(xd=null),Ct(r),n=n.stateNode,tt&&typeof tt.onCommitFiberRoot==`function`)try{tt.onCommitFiberRoot(et,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=k.T,a=A.p,A.p=2,k.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{k.T=n,A.p=a}}if(i=Ad,o=jd,jd=null,i!==null&&(Ad=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Td&3&&mf(),Af(t),a=t.pendingLanes,r&261930&&a&42?t===Nd?Md++:(Md=0,Nd=t):(Md=0,Nd=null),jf(0,!1)}}function pf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ma(t)))}function mf(){return kd!==null&&(kd.skipTransition(),kd=null),uf(),df(),ff(),hf()}function hf(){if(Sd!==5)return!1;var e=Cd,t=Ed;Ed=0;var n=Ct(Td),r=k.T,a=A.p;try{A.p=32>n?32:n,k.T=null,n=Dd,Dd=null;var o=Cd,s=Td;if(Sd=0,wd=Cd=null,Td=0,G&6)throw Error(i(331));var c=G;if(G|=4,Xu(o.current),Hu(o,o.current,s,n),G=c,jf(0,!1),tt&&typeof tt.onPostCommitFiberRoot==`function`)try{tt.onPostCommitFiberRoot(et,o)}catch{}return!0}finally{A.p=a,k.T=r,pf(e,t)}}function gf(e,t,n){t=Vi(n,t),t=kc(e.stateNode,t,2),e=_o(e,t,2),e!==null&&(_t(e,2),Af(e))}function _f(e,t,n){if(e.tag===3)gf(e,e,n);else for(;t!==null;){if(t.tag===3){gf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(xd===null||!xd.has(r))){e=Vi(n,e),n=Ac(2),r=_o(t,n,2),r!==null&&(jc(n,r,t,e),_t(r,2),Af(r));break}}t=t.return}}function vf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ed;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(od=!0,i.add(n),e=yf.bind(null,e,t,n),t.then(e,e))}function yf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,td===e&&(q&n)===n&&(cd===4||cd===3&&(q&62914560)===q&&300>Ge()-_d?G&2?dd|=n:Wd(e,0):dd|=n,pd===q&&(pd=0)),Af(e)}function bf(e,t){t===0&&(t=ht()),e=Ai(e,t),e!==null&&(_t(e,t),Af(e))}function xf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),bf(e,n)}function Sf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),bf(e,n)}function Cf(e,t){return Ve(e,t)}var wf=null,Tf=null,Ef=!1,Df=!1,Of=!1,kf=0;function Af(e){e!==Tf&&e.next===null&&(Tf===null?wf=Tf=e:Tf=Tf.next=e),Df=!0,Ef||(Ef=!0,Lf())}function jf(e,t){if(!Of&&Df){Of=!0;do for(var n=!1,r=wf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-rt(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,If(r,a))}else a=q,a=dt(r,r===td?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||ft(r,a)||(n=!0,If(r,a))}r=r.next}while(n);Of=!1}}function Mf(){Nf()}function Nf(){Df=Ef=!1;var e=0;kf!==0&&bp()&&(e=kf);for(var t=Ge(),n=null,r=wf;r!==null;){var i=r.next,a=Pf(r,t);a===0?(r.next=null,n===null?wf=i:n.next=i,i===null&&(Tf=n)):(n=r,(e!==0||a&3)&&(Df=!0)),r=i}Sd!==0&&Sd!==5||jf(e,!1),kf!==0&&(kf=0)}function Pf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-rt(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=mt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=td,n=q,n=dt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(nd===2||nd===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&He(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||ft(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&He(r),Ct(n)){case 2:case 8:n=Je;break;case 32:n=Ye;break;case 268435456:n=Ze;break;default:n=Ye}return r=Ff.bind(null,e),n=Ve(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&He(r),e.callbackPriority=2,e.callbackNode=null,2}function Ff(e,t){if(Sd!==0&&Sd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(mf()&&e.callbackNode!==n)return null;var r=q;return r=dt(e,e===td?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Rd(e,r,t),Pf(e,Ge()),e.callbackNode!=null&&e.callbackNode===n?Ff.bind(null,e):null)}function If(e,t){if(mf())return null;Rd(e,t,!0)}function Lf(){wp(function(){G&6?Ve(qe,Mf):Nf()})}function Rf(){if(kf===0){var e=Ra;e===0&&(e=st,st<<=1,!(st&261888)&&(st=256)),kf=e}return kf}function zf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Sn(e)}function Bf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=zf((i[Ot]||null).action),o=r.submitter;o&&(t=(t=o[Ot]||null)?zf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Hn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(kf!==0){var e=new FormData(i,o);tc(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),tc(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Vf=0;Vf<_i.length;Vf++){var Hf=_i[Vf];vi(Hf.toLowerCase(),`on`+(Hf[0].toUpperCase()+Hf.slice(1)))}vi(li,`onAnimationEnd`),vi(ui,`onAnimationIteration`),vi(di,`onAnimationStart`),vi(`dblclick`,`onDoubleClick`),vi(`focusin`,`onFocus`),vi(`focusout`,`onBlur`),vi(fi,`onTransitionRun`),vi(pi,`onTransitionStart`),vi(mi,`onTransitionCancel`),vi(hi,`onTransitionEnd`),Kt(`onMouseEnter`,[`mouseout`,`mouseover`]),Kt(`onMouseLeave`,[`mouseout`,`mouseover`]),Kt(`onPointerEnter`,[`pointerout`,`pointerover`]),Kt(`onPointerLeave`,[`pointerout`,`pointerover`]),Gt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Gt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Gt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Gt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Gt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Gt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Uf=`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(` `),Wf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Uf));function Gf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Ci(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Ci(e)}i.currentTarget=null,a=c}}}}function J(e,t){var n=t[At];n===void 0&&(n=t[At]=new Set);var r=e+`__bubble`;n.has(r)||(Yf(t,e,2,!1),n.add(r))}function Kf(e,t,n){var r=0;t&&(r|=4),Yf(n,e,r,t)}var qf=`_reactListening`+Math.random().toString(36).slice(2);function Jf(e){if(!e[qf]){e[qf]=!0,Ut.forEach(function(t){t!==`selectionchange`&&(Wf.has(t)||Kf(t,!1,e),Kf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[qf]||(t[qf]=!0,Kf(`selectionchange`,!1,t))}}function Yf(e,t,n,r){switch(Dh(t)){case 2:var i=xh;break;case 8:i=Sh;break;default:i=Ch}n=i.bind(null,t,n,e),i=void 0,!Nn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Xf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=Lt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}An(function(){var r=a,i=Tn(n),s=[];a:{var c=gi.get(e);if(c!==void 0){var l=Hn,u=e;switch(e){case`keypress`:if(Rn(n)===0)break a;case`keydown`:case`keyup`:l=or;break;case`focusin`:u=`focus`,l=Zn;break;case`focusout`:u=`blur`,l=Zn;break;case`beforeblur`:case`afterblur`:l=Zn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Yn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Xn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=lr;break;case li:case ui:case di:l=Qn;break;case hi:l=ur;break;case`scroll`:case`scrollend`:l=Wn;break;case`wheel`:l=dr;break;case`copy`:case`cut`:case`paste`:l=$n;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=sr;break;case`submit`:l=cr;break;case`toggle`:case`beforetoggle`:l=fr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=jn(m,p),g!=null&&d.push(Zf(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==wn&&(u=n.relatedTarget||n.fromElement)&&(Lt(u)||u[kt]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Lt(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Yn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=sr,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:zt(c),h=l==null?u:zt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,Lt(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?T(c,l,$f):null,c!==null&&ep(s,u,c,d,!1),l!==null&&f!==null&&ep(s,f,l,d,!0)))}a:{if(c=r?zt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Mr;else if(Er(c)){if(Nr)_=Hr;else{_=Br;var v=zr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&yn(r.elementType)&&(_=Mr):_=Vr;if(_&&=_(e,r)){Dr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?zt(r):window,e){case`focusin`:(Er(v)||v.contentEditable===`true`)&&($r=v,ei=r,ti=null);break;case`focusout`:ti=ei=$r=null;break;case`mousedown`:ni=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:ni=!1,ri(s,n,i);break;case`selectionchange`:if(Qr)break;case`keydown`:case`keyup`:ri(s,n,i)}var y;if(mr)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else Sr?br(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(_r&&n.locale!==`ko`&&(Sr||b!==`onCompositionStart`?b===`onCompositionEnd`&&Sr&&(y=Ln()):(Fn=i,In=`value`in Fn?Fn.value:Fn.textContent,Sr=!0)),v=Qf(r,b),0<v.length&&(b=new er(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=xr(n),y!==null&&(b.data=y)))),(y=gr?Cr(e,n):wr(e,n))&&(b=Qf(r,`onBeforeInput`),0<b.length&&(v=new er(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Bf(s,e,r,n,i)}Gf(s,t)})}function Zf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qf(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=jn(e,n),i!=null&&r.unshift(Zf(e,i,a)),i=jn(e,t),i!=null&&r.push(Zf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function $f(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ep(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=jn(n,a),l!=null&&o.unshift(Zf(n,l,c))):i||(l=jn(n,a),l!=null&&o.push(Zf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var tp=/\r\n?/g,np=/\u0000|\uFFFD/g;function rp(e){return(typeof e==`string`?e:``+e).replace(tp,`
9
+ `).replace(np,``)}function ip(e,t){return t=rp(t),rp(e)===t}function ap(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||hn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&hn(e,``+r);else return;break;case`className`:$t(e,`class`,r);break;case`tabIndex`:$t(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:$t(e,n,r);break;case`style`:vn(e,r,o);return;case`data`:if(t!==`object`){$t(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Sn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&ap(e,t,`name`,a.name,a,null),ap(e,t,`formEncType`,a.formEncType,a,null),ap(e,t,`formMethod`,a.formMethod,a,null),ap(e,t,`formTarget`,a.formTarget,a,null)):(ap(e,t,`encType`,a.encType,a,null),ap(e,t,`method`,a.method,a,null),ap(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Sn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Cn);return;case`onScroll`:r!=null&&J(`scroll`,e);return;case`onScrollEnd`:r!=null&&J(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Sn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:J(`beforetoggle`,e),J(`toggle`,e),Qt(e,`popover`,r);break;case`xlinkActuate`:en(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:en(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:en(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:en(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:en(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:en(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:en(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:en(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:en(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Qt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=bn.get(n)||n,Qt(e,n,r);else return}P=!0}function op(e,t,n,r,a,o){switch(n){case`style`:vn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)hn(e,r);else if(typeof r==`number`||typeof r==`bigint`)hn(e,``+r);else return;break;case`onScroll`:r!=null&&J(`scroll`,e);return;case`onScrollEnd`:r!=null&&J(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=Cn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Wt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[Ot]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}P=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Qt(e,n,r)}return}P=!0}function sp(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:J(`error`,e),J(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:ap(e,t,o,s,n,null)}}a&&ap(e,t,`srcSet`,n.srcSet,n,null),r&&ap(e,t,`src`,n.src,n,null);return;case`input`:J(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:ap(e,t,r,d,n,null)}}un(e,o,c,l,u,s,a,!1);return;case`select`:for(a in J(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:ap(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&fn(e,!!r,n,!0):fn(e,!!r,t,!1);return;case`textarea`:for(s in J(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:ap(e,t,s,c,n,null)}mn(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:ap(e,t,l,r,n,null)}return;case`dialog`:J(`beforetoggle`,e),J(`toggle`,e),J(`cancel`,e),J(`close`,e);break;case`iframe`:case`object`:J(`load`,e);break;case`video`:case`audio`:for(r=0;r<Uf.length;r++)J(Uf[r],e);break;case`image`:J(`error`,e),J(`load`,e);break;case`details`:J(`toggle`,e);break;case`embed`:case`source`:case`link`:J(`error`,e),J(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:ap(e,t,u,r,n,null)}return;default:if(yn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&op(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&ap(e,t,c,r,n,null))}var cp={};function lp(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||ap(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(P=!0),o=m;break;case`name`:m!==f&&(P=!0),a=m;break;case`checked`:m!==f&&(P=!0),u=m;break;case`defaultChecked`:m!==f&&(P=!0),d=m;break;case`value`:m!==f&&(P=!0),s=m;break;case`defaultValue`:m!==f&&(P=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&ap(e,t,p,m,r,f)}}ln(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||ap(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(P=!0),p=o;break;case`defaultValue`:o!==l&&(P=!0),c=o;break;case`multiple`:o!==l&&(P=!0),s=o;default:o!==l&&ap(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?fn(e,!!n,n?[]:``,!1):fn(e,!!n,t,!0)):fn(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:ap(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(P=!0),p=a;break;case`defaultValue`:a!==o&&(P=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&ap(e,t,s,a,r,o)}pn(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:ap(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(P=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:ap(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&ap(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:ap(e,t,u,p,r,m)}return;default:if(yn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&op(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||op(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&ap(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||ap(e,t,f,p,r,m)}function up(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function dp(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&up(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&up(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var fp=null,pp=null;function mp(e){return e.nodeType===9?e:e.ownerDocument}function hp(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function gp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function _p(e,t,n,r){return n=mp(n).createElement(e),n[Dt]=r,n[Ot]=t,sp(n,e,t),Vt(n),n}function vp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var yp=null;function bp(){var e=window.event;return e&&e.type===`popstate`?e!==yp&&(yp=e,!0):(yp=null,!1)}var xp=typeof setTimeout==`function`?setTimeout:void 0,Sp=typeof clearTimeout==`function`?clearTimeout:void 0,Cp=typeof Promise==`function`?Promise:void 0,Y=typeof requestAnimationFrame==`function`?requestAnimationFrame:xp,wp=typeof queueMicrotask==`function`?queueMicrotask:Cp===void 0?xp:function(e){return Cp.resolve(null).then(e).catch(Tp)};function Tp(e){setTimeout(function(){throw e})}function Ep(e){return e===`head`}function Dp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Gh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)xm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,xm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Pt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&xm(e.ownerDocument.body)}n=i}while(n);Gh(t)}function Op(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function kp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Ap(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function jp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Mp(e){return jp(e.getBoundingClientRect(),getComputedStyle(e),e)}function Np(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return jp(t,n,e)}function Pp(e){return e.documentElement.clientHeight}function Fp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Ip(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Pp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=eh(f),u>rh){s.length=o;break}f=new Promise(Fp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Lp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Lp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:E({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Lp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Lp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Rp(e){return{name:e,group:new Lp(`group`,e),imagePair:new Lp(`image-pair`,e),old:new Lp(`old`,e),new:new Lp(`new`,e)}}function zp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}zp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Wp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Hp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),m(this._fragmentFiber.child,!1,Bp,e,s,r)}this._eventListeners=a}};function Bp(e,t,n,r){return b(e).addEventListener(t,n,r),!1}zp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Wp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Hp(i.optionsOrUseCapture),m(this._fragmentFiber.child,!1,Vp,e,n,i),r.splice(t,1),a!==null&&a()}};function Vp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Hp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Up(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Wp(e,t,n,r){if(e.length===0)return-1;r=Up(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Up(a.optionsOrUseCapture)===r)return i}return-1}zp.prototype.dispatchEvent=function(e){var t=g(this._fragmentFiber);if(t===null)return!0;t=b(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Hp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Hp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},zp.prototype.focus=function(e){m(this._fragmentFiber.child,!0,Gp,e,void 0,void 0)};function Gp(e,t){return e.tag!==6&&(e=b(e),_m(e,t))}zp.prototype.focusLast=function(e){var t=[];m(this._fragmentFiber.child,!0,Kp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Gp(t[n],e);n--);};function Kp(e,t){return t.push(e),!1}zp.prototype.blur=function(){var e=g(this._fragmentFiber);e!==null&&(e=b(e),e=mp(e).activeElement,e!==null&&m(this._fragmentFiber.child,!1,qp,e,void 0,void 0))};function qp(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}zp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),m(this._fragmentFiber.child,!1,Jp,e,void 0,void 0)};function Jp(e,t){return e.tag===6||(e=b(e),t.observe(e)),!1}zp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),m(this._fragmentFiber.child,!1,Yp,e,void 0,void 0);for(var n=t=0;n<Xp.length;n++){var r=Xp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Xp[t++]=r}Xp.length=t}};function Yp(e,t){return e.tag===6||(e=b(e),t.unobserve(e)),!1}var Xp=[],Zp=!1;function Qp(e,t,n){Xp.push({fragmentInstance:e,observer:t,instance:n}),Zp||(Zp=!0,vm(function(){Zp=!1;var e=Xp;Xp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}zp.prototype.getClientRects=function(){var e=[];return m(this._fragmentFiber.child,!1,$p,e,void 0,void 0),e};function $p(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=b(e),t.push.apply(t,e.getClientRects());return!1}zp.prototype.getRootNode=function(e){var t=g(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},zp.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];m(this._fragmentFiber.child,!1,Kp,n,void 0,void 0);var r=b(t);if(n.length===0){if(n=r,_(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=v(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=b(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=b(n[0]),i=b(n[n.length-1]);var a=_(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||em(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function em(e,t,n,r,i){var a=Lt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=g(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=T(n,a,w),t===null?t=!1:(m(t,!0,C,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=T(r,a,w),t===null?t=!1:(m(t,!0,ee,a,r),a=x,S=x=null,t=a!==null)),t):!1}function tm(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}zp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];m(this._fragmentFiber.child,!1,Kp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=v(this._fragmentFiber);if(r=n?r[1]||r[0]||g(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=b(r),tm(e,n);return}if(r=b(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=b(a),tm(a,n)):b(a).scrollIntoView(e),r+=n?-1:1}};function nm(e,t){return e=b(e),rm(e,t),!1}function rm(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function im(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Hp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Xp.length;i++){var a=Xp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Xp[r++]=a)}Xp.length=r,n.observe(e)}),rm(e,t))}function am(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Hp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Qp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function om(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:om(n),It(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function sm(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[Pt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=pm(e.nextSibling),e===null)break}return null}function cm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=pm(e.nextSibling),e===null))return null;return e}function lm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=pm(e.nextSibling),e===null))return null;return e}function um(e){return e.data===`$?`||e.data===`$~`}function dm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function fm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function pm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var mm=null;function hm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return pm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function gm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function _m(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function vm(e){Y(function(){Y(function(t){return e(t)})})}function ym(e,t,n){switch(t=mp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function bm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&ap(e,t,r,null,cp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===Cn&&(e.onclick=null),It(e)}function xm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);It(e)}var Sm=new Map,Cm=new Set;function wm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Tm=A.d;A.d={f:Em,r:Dm,D:Am,C:jm,L:Mm,m:Nm,X:Fm,S:Pm,M:Im};function Em(){var e=Tm.f(),t=Hd();return e||t}function Dm(e){var t=Rt(e);t!==null&&t.tag===5&&t.type===`form`?rc(t):Tm.r(e)}var Om=typeof document>`u`?null:document;function km(e,t,n){var r=Om;if(r&&typeof t==`string`&&t){var i=cn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Cm.has(i)||(Cm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),sp(t,`link`,e),Vt(t),r.head.appendChild(t)))}}function Am(e){Tm.D(e),km(`dns-prefetch`,e,null)}function jm(e,t){Tm.C(e,t),km(`preconnect`,e,t)}function Mm(e,t,n){Tm.L(e,t,n);var r=Om;if(r&&e&&t){var i=`link[rel="preload"][as="`+cn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+cn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+cn(n.imageSizes)+`"]`)):i+=`[href="`+cn(e)+`"]`;var a=i;switch(t){case`style`:a=Rm(e);break;case`script`:a=Hm(e)}if(!(Sm.has(a)||(e=E({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Sm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(zm(a))||t===`script`&&r.querySelector(Um(a))))){var o=r.createElement(`link`);sp(o,`link`,e),t===`style`&&(o[Ft]=!0,o.onload=o.onerror=function(){Ht(o)}),Vt(o),r.head.appendChild(o)}}}function Nm(e,t){Tm.m(e,t);var n=Om;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+cn(r)+`"][href="`+cn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Hm(e)}if(!Sm.has(a)&&(e=E({rel:`modulepreload`,href:e},t),Sm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Um(a)))return}r=n.createElement(`link`),sp(r,`link`,e),Vt(r),n.head.appendChild(r)}}}function Pm(e,t,n){Tm.S(e,t,n);var r=Om;if(r&&e){var i=Bt(r).hoistableStyles,a=Rm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(zm(a)))s.loading=5;else{e=E({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Sm.get(a))&&Km(e,n);var c=o=r.createElement(`link`);Vt(c),sp(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Gm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Fm(e,t){Tm.X(e,t);var n=Om;if(n&&e){var r=Bt(n).hoistableScripts,i=Hm(e),a=r.get(i);a||(a=n.querySelector(Um(i)),a||(e=E({src:e,async:!0},t),(t=Sm.get(i))&&qm(e,t),a=n.createElement(`script`),Vt(a),sp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Im(e,t){Tm.M(e,t);var n=Om;if(n&&e){var r=Bt(n).hoistableScripts,i=Hm(e),a=r.get(i);a||(a=n.querySelector(Um(i)),a||(e=E({src:e,async:!0,type:`module`},t),(t=Sm.get(i))&&qm(e,t),a=n.createElement(`script`),Vt(a),sp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lm(e,t,n,r){var a=(a=De.current)?wm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Rm(n.href),t=Bt(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Rm(n.href);var o=Bt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(zm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=Sm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Sm.set(e,o)),Vm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Hm(n),t=Bt(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Rm(e){return`href="`+cn(e)+`"`}function zm(e){return`link[rel="stylesheet"][`+e+`]`}function Bm(e){return E({},e,{"data-precedence":e.precedence,precedence:null})}function Vm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Ft]){r.loading=1;return}}else t=e.createElement(`link`),t[Ft]=!0,t.onload=t.onerror=Ht.bind(null,t),sp(t,`link`,n),Vt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Hm(e){return`[src="`+cn(e)+`"]`}function Um(e){return`script[async]`+e}function Wm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+cn(n.href)+`"]`);if(r)return t.instance=r,Vt(r),r;var a=E({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Vt(r),sp(r,`style`,a),Gm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Rm(n.href);var o=e.querySelector(zm(a));if(o)return t.state.loading|=4,t.instance=o,Vt(o),o;r=Bm(n),(a=Sm.get(a))&&Km(r,a),o=(e.ownerDocument||e).createElement(`link`),Vt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),sp(o,`link`,r),t.state.loading|=4,Gm(o,n.precedence,e),t.instance=o;case`script`:return o=Hm(n.src),(a=e.querySelector(Um(o)))?(t.instance=a,Vt(a),a):(r=n,(a=Sm.get(o))&&(r=E({},n),qm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Vt(a),sp(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Gm(r,n.precedence,e));return t.instance}function Gm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Km(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function qm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Jm=null;function Ym(e,t,n){if(Jm===null){var r=new Map,i=Jm=new Map;i.set(n,r)}else i=Jm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Pt]||a[Dt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Xm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Zm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Qm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function $m(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function eh(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function th(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=eh(t),e.suspenseyImages.push(t)),e=sh.bind(e),t.decode().then(e,e))}function nh(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Rm(r.href),a=t.querySelector(zm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=oh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Vt(a);return}a=t.ownerDocument||t,r=Bm(r),(i=Sm.get(i))&&Km(r,i),a=a.createElement(`link`),Vt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),sp(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=oh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var rh=0;function ih(e,t){return e.stylesheets&&e.count===0&&lh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&lh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&rh===0&&(rh=62500*dp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&lh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>rh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ah(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)lh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function oh(){this.count--,ah(this)}function sh(){this.imgCount--,ah(this)}var ch=null;function lh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ch=new Map,t.forEach(uh,e),ch=null,oh.call(e))}function uh(e,t){if(!(t.state.loading&4)){var n=ch.get(e);if(n)var r=n.get(null);else{n=new Map,ch.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=oh.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var dh={$$typeof:D,Provider:null,Consumer:null,_currentValue:j,_currentValue2:j,_threadCount:0};function fh(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=gt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.hiddenUpdates=gt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function ph(e,t,n,r,i,a,o,s,c,l,u,d){return e=new fh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Fi(3,null,null,t),e.current=a,a.stateNode=e,t=ja(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},mo(a),e}function mh(e){return e?(e=Ni,e):Ni}function hh(e,t,n,r,i,a){i=mh(i),r.context===null?r.context=i:r.pendingContext=i,r=go(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=_o(e,r,t),n!==null&&(Ld(n,e,t),vo(n,e,t))}function gh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function _h(e,t){gh(e,t),(e=e.alternate)&&gh(e,t)}function vh(e){if(e.tag===13||e.tag===31){var t=Ai(e,67108864);t!==null&&Ld(t,e,67108864),_h(e,67108864)}}function yh(e){if(e.tag===13||e.tag===31){var t=Pd();t=St(t);var n=Ai(e,t);n!==null&&Ld(n,e,t),_h(e,t)}}var bh=!0;function xh(e,t,n,r){var i=k.T;k.T=null;var a=A.p;try{A.p=2,Ch(e,t,n,r)}finally{A.p=a,k.T=i}}function Sh(e,t,n,r){var i=k.T;k.T=null;var a=A.p;try{A.p=8,Ch(e,t,n,r)}finally{A.p=a,k.T=i}}function Ch(e,t,n,r){if(bh){var i=wh(r);if(i===null)Xf(e,t,r,Th,n),X(e,r);else if(Lh(i,e,t,n,r))r.stopPropagation();else if(X(e,r),t&4&&-1<Fh.indexOf(e)){for(;i!==null;){var a=Rt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=ut(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-rt(o);s.entanglements[1]|=c,o&=~c}Af(a),!(G&6)&&(yd=Ge()+500,jf(0,!1))}}break;case 31:case 13:s=Ai(a,2),s!==null&&Ld(s,a,2),Hd(),_h(a,2)}if(a=wh(r),a===null&&Xf(e,t,r,Th,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Xf(e,t,r,null,n)}}function wh(e){return e=Tn(e),Eh(e)}var Th=null;function Eh(e){if(Th=null,e=Lt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Th=e,null}function Dh(e){switch(e){case`beforetoggle`: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`seeked`:case`submit`:case`toggle`: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`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ke()){case qe:return 2;case Je:return 8;case Ye:case Xe:return 32;case Ze:return 268435456;default:return 32}default:return 32}}var Oh=!1,kh=null,Ah=null,jh=null,Mh=new Map,Nh=new Map,Ph=[],Fh=`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`.split(` `);function X(e,t){switch(e){case`focusin`:case`focusout`:kh=null;break;case`dragenter`:case`dragleave`:Ah=null;break;case`mouseover`:case`mouseout`:jh=null;break;case`pointerover`:case`pointerout`:Mh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Nh.delete(t.pointerId)}}function Ih(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Rt(t),t!==null&&vh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Lh(e,t,n,r,i){switch(t){case`focusin`:return kh=Ih(kh,e,t,n,r,i),!0;case`dragenter`:return Ah=Ih(Ah,e,t,n,r,i),!0;case`mouseover`:return jh=Ih(jh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Mh.set(a,Ih(Mh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Nh.set(a,Ih(Nh.get(a)||null,e,t,n,r,i)),!0}return!1}function Rh(e){var t=Lt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,Tt(e.priority,function(){yh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,Tt(e.priority,function(){yh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function zh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=wh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);wn=r,n.target.dispatchEvent(r),wn=null}else return t=Rt(n),t!==null&&vh(t),e.blockedOn=n,!1;t.shift()}return!0}function Bh(e,t,n){zh(e)&&n.delete(t)}function Vh(){Oh=!1,kh!==null&&zh(kh)&&(kh=null),Ah!==null&&zh(Ah)&&(Ah=null),jh!==null&&zh(jh)&&(jh=null),Mh.forEach(Bh),Nh.forEach(Bh)}function Hh(e,n){e.blockedOn===n&&(e.blockedOn=null,Oh||(Oh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Vh)))}var Uh=null;function Wh(e){Uh!==e&&(Uh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Uh===e&&(Uh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Eh(r||n)===null)continue;break}var a=Rt(n);a!==null&&(e.splice(t,3),t-=3,tc(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Gh(e){function t(t){return Hh(t,e)}kh!==null&&Hh(kh,e),Ah!==null&&Hh(Ah,e),jh!==null&&Hh(jh,e),Mh.forEach(t),Nh.forEach(t);for(var n=0;n<Ph.length;n++){var r=Ph[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ph.length&&(n=Ph[0],n.blockedOn===null);)Rh(n),n.blockedOn===null&&Ph.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Ot]||null;if(typeof a==`function`)o||Wh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Ot]||null)s=o.formAction;else if(Eh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Wh(n)}}}function Kh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function qh(e){this._internalRoot=e}Jh.prototype.render=qh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;hh(n,Pd(),e,t,null,null)},Jh.prototype.unmount=qh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hh(e.current,2,null,e,null,null),Hd(),t[kt]=null}};function Jh(e){this._internalRoot=e}Jh.prototype.unstable_scheduleHydration=function(e){if(e){var t=wt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ph.length&&t!==0&&t<Ph[n].priority;n++);Ph.splice(n,0,e),n===0&&Rh(e)}};var Yh=n.version;if(Yh!==`19.3.1`)throw Error(i(527,Yh,`19.3.1`));A.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var Xh={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:k,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Zh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zh.isDisabled&&Zh.supportsFiber)try{et=Zh.inject(Xh),tt=Zh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=wc,s=Tc,c=Ec;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ph(e,1,!1,null,null,n,r,null,o,s,c,Kh),e[kt]=t.current,Jf(e),new qh(t)}})),_=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=d(),y=_(),b=class extends Error{status;code;requestId;field;provider;constructor(e,t,n,r,i,a){super(n),this.status=e,this.code=t,this.requestId=r,this.field=i,this.provider=a}};async function x(e,t,n,r={}){let i={};n!==void 0&&(i[`Content-Type`]=`application/json`),r.idempotent&&(i[`Idempotency-Key`]=crypto.randomUUID());let a;try{a=await fetch(t,{method:e,headers:i,credentials:`same-origin`,...n===void 0?{}:{body:JSON.stringify(n)}})}catch{throw new b(0,`network`,`network`)}if(a.status===204)return;let o=await a.text();if(!a.ok)throw S(a,o);return o?JSON.parse(o):void 0}function S(e,t){let n={};try{n=JSON.parse(t)}catch{}let r=n.type?.split(`/`).pop()??`error`;return new b(e.status,r,n.detail??n.title??e.statusText,n.requestId??e.headers.get(`X-Request-Id`)??void 0,n.field,n.provider)}async function C(e){let t;try{t=await fetch(e,{credentials:`same-origin`})}catch{throw new b(0,`network`,`network`)}if(!t.ok)throw S(t,await t.text());return{blob:await t.blob(),filename:ee(t.headers.get(`Content-Disposition`))}}function ee(e){let t=/filename\*=UTF-8''([^;]+)/i.exec(e??``);if(t?.[1])try{return decodeURIComponent(t[1])}catch{}return/filename="([^"]+)"/i.exec(e??``)?.[1]??null}async function w(e){let t=[],n=null;do{let r=await x(`GET`,`${e}${e.includes(`?`)?`&`:`?`}limit=200${n?`&cursor=${encodeURIComponent(n)}`:``}`);t.push(...r.items),n=r.nextCursor}while(n);return t}var T={zh:{date:`2026 年 11 月 18 日`,privacy:[`Yew 是在你自己的电脑上运行的软件,手机上的 Yew(iPhone 和安卓)只连接你自己电脑上的 Yew。榫卯 Tenon AI 不收集、不接收你在 Yew 里的内容,Yew 里没有统计、遥测或上报代码。`,`保存在你电脑上的数据:会话、消息、工具调用记录、操作授权、会话之间的信件、你在审批中心做的决定、定时任务和设置存在 Yew 的数据目录(默认 ~/.yew)里的数据库中;服务商的 API Key,以及你在浏览器里登录 MCP 服务得到的访问令牌、刷新令牌和 Yew 为它注册的客户端,存在系统钥匙串里;MCP 服务的配置写在数据目录的 mcp.json 里,包括你填的密钥和你自己建的 Google 客户端的 ID 和密钥;超长的命令输出存在数据目录的 tmp 文件夹里;会话存下的产物(文档、页面、数据和图表)的各个版本存在数据目录的 artifacts 文件夹里。Yew 自带浏览器的资料(你在这个浏览器里登录过的网站的 Cookie、缓存和浏览记录)存在数据目录的 browser 文件夹里。用 yew service 设了开机启动时,运行日志(启动、出错和连接中继的记录,不含对话内容)存在数据目录的 logs 文件夹里。这些数据一直保存,直到你删除。你在设置里指定了审批记录文件时,Yew 把每个决定追加到那个文件里。`,`手机访问:你在电脑上打开「允许手机访问」后,电脑上的 Yew 连接中继服务,手机上的 Yew 经中继和它通信。默认的中继由榫卯 Tenon AI 运行,你也可以自己部署。两端之间端到端加密,中继只转发密文,看不到也不保存内容。榫卯 Tenon AI 运行的中继为保障网络安全记录连接日志:时间、IP 地址、请求的路径(其中有你电脑的标识,是它公钥的哈希)和状态,不含内容,保存 184 天后自动删除。中继服务器位于中国境内。电脑上的 Yew 记下配对的手机:名称、公钥、配对时间和最近连接的时间。iPhone 上的 Yew 把配对信息和自己的密钥存在 iOS 钥匙串里,只存在这台设备上。打开通知后,iPhone 把 Apple 给它的推送令牌经加密通道交给你的电脑保存;电脑把通知的内容为这台 iPhone 加密,经中继交给 Apple 的推送服务。中继和 Apple 经手推送令牌和密文,看不到通知的内容。安卓上的 Yew 把配对信息和自己的密钥存在应用的私有文件里,用 Android 密钥库里的密钥加密,只存在这台设备上,不进系统备份和换机传输。安卓上的 Yew 不使用推送服务,也没有推送令牌:打开通知后,它用一个前台服务在后台保持到中继的连接,电脑经端到端加密的通道把通知的内容发给手机,中继只转发密文;系统会为这条连接显示一条常驻通知,系统停掉 Yew 时收不到通知。扫描配对二维码时用到相机,画面只在手机上识别,不保存也不发出。手机上另记着通知的开关和已经看到的待办的编号,不含内容。`,`发给第三方的数据:你为会话选的模型服务商会收到发给它的对话内容,包括会话读到的文件、命令输出、MCP 工具返回的内容(比如你连接的邮箱、日历和云端硬盘里的邮件、日程和文件),以及会话使用浏览器和电脑操控工具时取得的网页内容和屏幕截图;屏幕截图会拍下当时屏幕上显示的内容,包括其他应用的窗口,这部分适用该服务商的隐私政策。默认服务商 DeepSeek 由中国公司深度求索提供,内容怎样处理和存放以它的隐私政策为准;你选境外服务商时,这些内容会发往境外。会话抓取网页或用自带浏览器打开网页时,网站会收到请求;在自带浏览器里登录过的网站,会收到带着你登录状态的请求。你配了搜索服务的密钥后,会话联网搜索时,这家搜索服务会收到查询词,适用该搜索服务的隐私政策;选境外的搜索服务(Tavily、Brave)时,查询词会发往境外。Yew 默认启动两个开源的 MCP 服务:浏览器(微软的 Playwright MCP)和电脑操控(computer-use-mcp),它们在你的电脑上运行,可以在设置里停用。这两个服务,以及你一键添加的、要在本机运行的常用服务,Yew 第一次使用时从 npm 下载安装,npm 会收到下载请求。你添加的 MCP 服务(写在 mcp.json 里)会收到会话调用它的工具时传的内容;你在浏览器里登录过的服务,会收到以你的账号发出的请求。这些服务适用各自的隐私政策;选境外的服务(比如 Google、Linear、Vercel)时,传给它的内容会发往境外。这些工具每次调用都先问你,你对某个工具选了「总是允许」后不再问;电脑操控的点击、输入和按键,以及 Yew 认出会发送、发布或删除东西的 MCP 工具,不能选「总是允许」,每次都问。`,`查询、导出与删除:你可以直接查看数据目录里的文件。删除某个服务商的 Key:在设置里删除,或运行 yew key delete;删除配对的手机:在电脑上的「手机访问」里移除,或在手机上断开配对;退出 MCP 服务的登录:在「MCP 服务」里点「退出登录」,服务支持时 Yew 先请它作废令牌,再删除本机保存的令牌;要确认授权已经撤销,到该服务的账号设置里查看或移除;删除自带浏览器的登录状态:删除数据目录的 browser 文件夹;删除全部数据:停掉 yew serve 后删除数据目录。`,`联系我们:support@tenonai.cn。`],terms:[`Yew 以 MIT 许可证开源,许可证全文见代码仓库的 LICENSE 文件。按许可证,你可以使用、复制、修改和分发 Yew;Yew 按现状提供,不附带任何担保,在法律允许的范围内,我们不对使用 Yew 造成的损失承担责任。`,`Yew 会按你的授权读写文件、执行命令和访问网络。请为会话选择合适的工作区和权限规则;删除文件、推送、发布等操作每次都会先问你。浏览器、电脑操控工具和你登录过的 MCP 服务能以你已登录的身份在网页、其他应用和这些服务里操作,包括发送、提交、购买和删除;对这类工具选「总是允许」前请想清楚,并留意会话正在做什么。你选的模型服务商和你连接的 MCP 服务适用它们自己的条款。`,`默认的中继由榫卯 Tenon AI 免费提供,只用于 Yew 的手机访问,按现状提供,我们可能调整或停止;滥用的连接会被限制或断开。你也可以自己部署中继。`,`Yew 和榫卯 Tenon 的名称和标志不在 MIT 许可证的授权范围内。`]},en:{date:`Nov 18, 2026`,privacy:[`Yew runs on your own computer, and Yew on your phone (iPhone or Android) connects only to Yew on your own computer. Tenon AI does not collect or receive your content in Yew, and Yew contains no analytics, telemetry or reporting code.`,`Data kept on your computer: sessions, messages, tool call records, permissions you granted, letters between sessions, the decisions you make in the approval center, scheduled tasks and settings are stored in a database in Yew's data folder (~/.yew by default); provider API keys, and the access tokens, refresh tokens and client registrations Yew gets when you sign in to an MCP server in your browser, are stored in the system keychain; MCP server settings are kept in mcp.json in the data folder, including keys you enter and the ID and secret of a Google client you created yourself; very long command output is stored in the tmp folder of the data folder; every version of the artifacts sessions save (documents, pages, data and charts) is stored in its artifacts folder. The profile of Yew's built-in browser (cookies, cache and history of the sites you signed in to there) is stored in the browser folder of the data folder. When you set Yew to start at login with yew service, its service log (start-up, errors and relay connection lines, without conversation content) is stored in the logs folder of the data folder. This data stays until you delete it. If you set a decision log file in Settings, Yew adds each decision to that file.`,`Phone access: when you turn on phone access on your computer, Yew on the computer connects to a relay, and Yew on your phone talks to it through the relay. The default relay is run by Tenon AI; you can also run your own. The two ends are encrypted end to end: the relay only passes ciphertext along and can neither read nor keep the content. For network security, the relay run by Tenon AI keeps a connection log: the time, the IP address, the path requested (which carries your computer's identifier, a hash of its public key) and the status, without content, deleted automatically after 184 days. The relay server is in mainland China. Yew on the computer records each paired phone: its name, public key, when it was paired and when it last connected. Yew on iPhone keeps the pairing and its own key in the iOS keychain, on that device only. With notifications on, Yew on iPhone gives the push token it got from Apple to your computer over the encrypted channel, and the computer keeps it; the computer encrypts what a notification says for that iPhone and hands it to Apple's push service through the relay. The relay and Apple handle the push token and the ciphertext, and cannot read what the notification says. Yew on Android keeps the pairing and its own key in a private file of the app, encrypted with a key in the Android Keystore, on that device only; it is left out of system backups and device transfers. Yew on Android uses no push service and has no push token: with notifications on, a foreground service keeps a connection to the relay open in the background, and the computer sends what a notification says to the phone over the end-to-end encrypted channel; the relay only passes ciphertext along. Android shows a standing notification for this connection, and notifications do not arrive while the system has stopped Yew. Scanning the pairing QR code uses the camera; the picture is read on the phone and is neither kept nor sent. The phone also remembers whether notifications are on and the ids of the items it has already seen, without their content.`,`Data sent to third parties: the model provider you choose for a session receives the conversation sent to it, including files the session read, command output, what MCP tools return (such as the emails, events and files in a mailbox, calendar or drive you connected), and the page content and screenshots a session obtains when it uses the browser and computer control tools; a screenshot captures whatever is on the screen at that moment, including other apps' windows; that provider's privacy policy applies. The default provider, DeepSeek, is a service of the Chinese company DeepSeek; how it handles and stores this content is set out in its privacy policy. If you choose a provider outside mainland China, this content goes abroad. When a session fetches a web page or opens one in the built-in browser, that site receives the request; a site you signed in to in the built-in browser receives requests that carry your sign-in. Once you save a key for a search service, that service receives the query when a session searches the web, and its privacy policy applies; with a search service outside mainland China (Tavily, Brave), the query goes abroad. By default Yew starts two open-source MCP servers: a browser (Microsoft's Playwright MCP) and computer control (computer-use-mcp). They run on your computer, and you can turn them off in Settings. Yew downloads and installs these two, and the common servers you add with one click that run on your computer, from npm the first time it uses them; npm receives the download request. An MCP server you add (it is written in mcp.json) receives what a session passes to its tools, and a service you signed in to in your browser receives requests made with your account. These services' own privacy policies apply; with a service outside mainland China (such as Google, Linear or Vercel), what is passed to it goes abroad. These tools ask you before each call, until you choose Always allow for a tool; the clicks, typing and key presses of computer control, and MCP tools that Yew recognizes as sending, publishing or deleting something, cannot be set to Always allow and ask every time.`,`Access, export and deletion: you can look at the files in the data folder directly. To delete a provider's key, delete it in Settings or run yew key delete; to remove a paired phone, remove it under Phone access on the computer, or unpair on the phone; to sign out of an MCP server, choose Sign out under MCP servers: where the service supports it, Yew first asks it to cancel the tokens, then deletes the ones kept on this computer; to make sure the access you granted is revoked, check or remove it in that service's account settings; to clear the built-in browser's sign-ins, delete the browser folder in the data folder; to delete everything, stop yew serve and delete the data folder.`,`Contact: support@tenonai.cn.`],terms:[`Yew is open source under the MIT License; see the LICENSE file in the code repository. Under that license you may use, copy, modify and distribute Yew. Yew is provided as is, without warranty of any kind, and to the extent the law allows we are not liable for losses arising from its use.`,`Yew reads and writes files, runs commands and goes online as you allow. Choose a suitable workspace and permission rules for each session; deleting files, pushing, publishing and similar operations always ask you first. The browser and computer control tools, and MCP servers you signed in to, can act with your sign-ins in web pages, other apps and those services, including sending, submitting, buying and deleting; think before you choose Always allow for them, and keep an eye on what the session is doing. The model provider you choose and the MCP servers you connect apply their own terms.`,`Tenon AI provides the default relay free of charge, only for Yew's phone access. It is provided as is, and we may change or stop it; connections that abuse it may be limited or closed. You can also run your own relay.`,`The Yew and Tenon AI names and logos are not licensed under the MIT License.`]}},E={definition:`AI 原生的多 Agent 工作台。`,loading:`正在加载…`,signInTitle:`需要登录`,signInBody:`用 yew serve 打印的链接打开 Yew Harness;链接用过或过期了,在终端运行 yew open 换一个新的。`,connectionLost:`和 Yew Harness 服务的连接断了,正在重连…`,retry:`重试`,cancel:`取消`,close:`关闭`,save:`保存`,saving:`正在保存…`,create:`创建`,delete:`删除`,rename:`重命名`,confirm:`确定`,edit:`修改`,remove:`撤回`,send:`发送`,stop:`停止`,more:`更多操作`,copy:`复制`,copied:`已复制`,requestId:`请求编号`,errorTitle:`出错了`,sessions:`会话`,newSession:`新建会话`,newGroup:`新建团队`,workspaces:`工作区`,newWorkspace:`新建工作区`,newWorkspaceItem:`新建工作区…`,workspaceFolder:`文件夹`,workspaceFolderHint:`选择或输入会话工作的文件夹,例如 ~/projects/demo`,chooseFolder:`选择`,createWorkspace:`创建工作区`,workspaceNamePlaceholder:`我的应用`,removeFromList:`从列表移除`,search:`搜索名称和消息`,searchResults:`搜索结果`,noResults:`没有找到`,archived:`已归档`,showArchived:`显示已归档`,hideArchived:`隐藏已归档`,settings:`设置`,providersMenu:`服务商与密钥…`,defaultsMenu:`默认设置…`,phonesMenu:`手机访问…`,phones:`手机访问`,phoneAccess:`访问`,phoneAccessSwitch:`允许手机访问`,phoneAccessHint:`手机上的 Yew Harness 经中继连接这台 Mac,两端之间端到端加密,中继只转发密文`,relay:`中继`,relayConnected:`已连上`,relayConnecting:`正在连接…`,pairedPhones:`已配对的手机`,noPairedPhones:`还没有配对的手机。`,lastConnected:`{ago}前连接过`,neverConnected:`还没连接过`,removePhone:`移除`,phoneNotify:`通知`,phoneNoPush:`这台手机还没有打开通知`,hintSeparator:` · `,removePhoneTitle:`移除「{name}」?`,removePhoneBody:`这台手机会立刻断开,以后要用需要重新配对。`,addPhone:`添加手机`,pairingQr:`配对二维码`,pairingHelp:`用手机上的 Yew Harness 扫描这个二维码。5 分钟内有效,只能用一次。`,pairingExpired:`二维码已过期。`,phonePaired:`已配对:{name}`,turnOnFirst:`先打开「允许手机访问」。`,defaultsTitle:`默认设置`,aboutMenu:`关于 Yew Harness…`,sendFeedback:`发送反馈`,pin:`置顶`,unpin:`取消置顶`,archive:`归档`,unarchive:`恢复`,removeFromGroup:`移出团队`,renameGroup:`改团队名`,deleteGroup:`删除团队`,deleteGroupBody:`团队删除后,里面的会话不再属于任何团队,不会被删除。`,unread:`{n} 条未读`,emptySidebar:`还没有会话`,emptyGroup:`这个团队还没有会话`,teams:`团队`,noTeams:`还没有团队`,teamCount:`{n} 个会话`,newSessionHere:`在这个团队新建会话`,showAllSessions:`看全部会话`,noWorkspaces:`还没有工作区`,goHome:`回到首页`,collapseSidebar:`收起侧栏`,expandSidebar:`展开侧栏`,openSidebar:`打开侧栏`,closeSidebar:`关闭侧栏`,status_idle:`空闲`,status_working:`在干活`,status_waiting:`在等你`,status_error:`出错`,status_needs_review:`待核对`,chat:`聊天`,workingFolder:`工作区`,model:`模型`,provider:`服务商`,thinking:`思考`,thinking_off:`关`,thinking_minimal:`最少`,thinking_low:`低`,thinking_medium:`中`,thinking_high:`高`,thinking_xhigh:`很高`,thinking_max:`最高`,usage:`用量`,tokens:`{n} token`,cost:`USD {n}`,contextUsed:`上下文 {used} / {total}`,contextPercent:`上下文已用 {p}%({used} / {total} token)`,mode_chat:`聊天`,mode_code:`代码`,continue:`继续`,continueHint:`从停下的地方接着跑。`,compact:`压缩上下文`,sessionSettings:`会话设置`,exportMarkdown:`Markdown`,exportAs:`导出`,duplicate:`创建副本`,forkFromHere:`从这里分叉`,forkFromHereHint:`新开一个会话,带上到这条回复为止的对话,原会话不受影响`,forkBeforeHint:`新开一个会话,带上这条消息之前的对话,这条消息放进新会话的输入框,原会话不受影响`,rewindHere:`回溯到这里`,rewindBusy:`会话在干活,停下后才能回溯`,rewindTitle:`回溯到这里?`,rewindBodyMine:`这条消息和之后的对话(消息、回复和工具调用)会从 Yew Harness 里删掉,不能恢复;这条消息放回输入框,可以改了再发。已经发给模型服务商的内容收不回;改过的文件、跑过的命令和发出的信也不会撤回,文件要恢复请用 git。`,rewindBodyReply:`这条回复之后的对话(消息、回复和工具调用)会从 Yew Harness 里删掉,不能恢复。已经发给模型服务商的内容收不回;改过的文件、跑过的命令和发出的信也不会撤回,文件要恢复请用 git。`,rewind:`回溯`,moveToTeam:`移到团队`,newTeamEllipsis:`新建团队…`,exporting:`正在导出…`,permissionMode:`授权方式`,perm_auto:`按需授权`,perm_auto_hint:`模型判断哪些操作要先问你`,perm_manual:`逐项授权`,perm_manual_hint:`改文件、运行命令、访问网址前都先问你`,perm_skip:`完全授权`,perm_skip_hint:`直接执行;删除、推送等操作仍会问你`,loadEarlier:`加载更早的记录`,emptyTranscript:`发一条消息开始。`,composerPlaceholder:`给 {name} 发消息(Enter 发送,Shift+Enter 换行)`,composerQueued:`会话在干活;现在发的消息会在两次工具调用之间送达`,queuedTitle:`排队中的消息`,you:`你`,thinkingLabel:`思考过程`,thinkingLevel:`思考:{level}`,homeTitle:`要做点什么?`,homePlaceholder:`描述任务,Enter 开始,Shift+Enter 换行`,noFolder:`不用工作区`,folderPath:`文件夹路径,例如 ~/projects/demo`,queueSend:`排队发送`,justNow:`刚刚`,minutesAgo:`{n} 分钟`,hoursAgo:`{n} 小时`,daysAgo:`{n} 天`,act_read:`读取`,act_read_ing:`正在读取`,act_write:`写入`,act_write_ing:`正在写入`,act_edit:`编辑`,act_edit_ing:`正在编辑`,act_glob:`查找文件`,act_glob_ing:`正在查找文件`,act_grep:`搜索`,act_grep_ing:`正在搜索`,act_shell:`运行`,act_shell_ing:`正在运行`,act_shell_job:`查看后台任务`,act_shell_job_ing:`正在查看后台任务`,act_todo:`更新任务清单`,todoTitle:`任务清单`,todoProgress:`任务 {done}/{total}`,act_todo_ing:`正在更新任务清单`,act_ask_user:`提问`,act_ask_user_ing:`正在提问`,act_web_fetch:`抓取网页`,act_web_fetch_ing:`正在抓取网页`,sum_read:`读取 {n} 个文件`,sum_read_one:`读取 1 个文件`,sum_edit:`编辑 {n} 处`,sum_edit_one:`编辑 1 处`,sum_write:`写入 {n} 个文件`,sum_write_one:`写入 1 个文件`,sum_search:`搜索 {n} 次`,sum_search_one:`搜索 1 次`,sum_shell:`运行 {n} 条命令`,sum_shell_one:`运行 1 条命令`,sum_web:`抓取 {n} 个网页`,sum_web_one:`抓取 1 个网页`,sum_think:`思考 {n} 次`,sum_think_one:`思考 1 次`,sum_other:`另有 {n} 步`,sum_other_one:`另有 1 步`,listSeparator:`,`,stepsFailed:`{n} 步出错`,tool_pending:`等待`,tool_waiting:`等你授权`,tool_running:`执行中`,tool_done:`完成`,tool_error:`出错`,tool_denied:`被拒`,tool_unattended:`无人值守,已拒绝`,tool_needs_review:`待核对`,toolArguments:`参数`,toolResult:`结果`,toolOutput:`输出`,diff:`改动`,linesAdded:`+{n}`,linesRemoved:`−{n}`,approvalTitle:`需要你授权`,askedInReply:`在回复里问你`,confirmEachTime:`每次确认`,confirmEachTimeHint:`这类操作每次都要你确认,不能设为总是允许`,ask_shell:`运行命令`,ask_write:`新建或覆盖文件`,ask_edit:`修改文件`,ask_read:`读取工作区外的文件`,ask_glob:`查找工作区外的文件`,ask_grep:`搜索工作区外的文件`,ask_web_fetch:`访问网址`,ask_open_session:`开任务会话`,ask_open_session_named:`开任务会话{name}`,ask_manage_yew:`管理 Yew Harness`,"confirm_delete-files":`删除文件`,"confirm_delete-untracked":`删除未跟踪的文件`,"confirm_delete-branch":`删除分支`,"confirm_delete-tag":`删除标签`,"confirm_delete-stash":`删除储藏的改动`,"confirm_delete-ref":`删除 Git 引用`,"confirm_delete-worktree":`删除工作树`,"confirm_discard-changes":`丢弃改动`,"confirm_rewrite-history":`改写提交历史`,confirm_push:`推送到远程仓库`,"confirm_publish-package":`发布软件包`,"confirm_change-package":`改动已发布的软件包`,"confirm_publish-image":`发布镜像`,confirm_github:`改动 GitHub 上的内容`,"confirm_remote-machine":`连接其他机器`,"confirm_remote-copy":`和其他机器互传文件`,"confirm_send-data":`向服务器发送数据`,"confirm_write-disk":`直接写磁盘`,confirm_cluster:`改动集群`,confirm_infrastructure:`改动基础设施`,"confirm_system-services":`改动系统服务`,"confirm_yew-cli":`运行 Yew Harness 的命令行`,confirm_credentials:`涉及密钥或 Yew Harness 自己的数据`,"confirm_write-credentials":`写入密钥所在的位置`,confirm_admin:`用管理员权限运行`,"confirm_computer-control":`操作整个屏幕(点击、输入或按键),每次都要你确认`,"confirm_service-action":`在你连接的服务里发送、发布或删除东西,每次都要你确认`,alwaysActsAsYou:`选「总是允许」后,本会话内这个工具的所有调用都不再问,包括在自带浏览器里以你的登录身份发送、付款、删除这类操作。`,"confirm_write-outside":`改动工作区外的文件`,"confirm_widen-permission":`调高会话的授权方式`,"confirm_change-folder":`改会话的工作区`,"confirm_open-letters":`让会话直接收信`,"confirm_raise-quota":`提高发信额度`,"confirm_raise-budget":`提高或取消费用上限`,"confirm_grant-rights":`给会话放卡片或管理 Yew Harness 的权利`,"confirm_change-main":`换主对话`,"confirm_decision-log":`改审批记录写入的文件`,approve:`允许`,approveAlways:`总是允许:{rules}`,quoted:`「{s}」`,enumSeparator:`、`,change_create_team:`新建团队{name}`,change_rename_team:`把团队{from}改名为{to}`,change_create_session:`新建常设会话{name}:{details}`,change_detail_model:`模型 {model}`,change_detail_folder:`工作区 {folder}`,change_detail_team:`团队{team}`,change_detail_role:`职责:{role}`,change_rename_session:`把{from}改名为{to}`,change_move_to_team:`把{sessions}移进团队{team}`,change_leave_team:`把{sessions}移出所在的团队`,change_set_role:`把{session}的职责改为:{role}`,change_set_model:`把{session}的模型从 {from} 换成 {to}`,change_set_folder:`把{session}的工作区从 {from} 改为 {to}`,change_no_folder:`无(聊天)`,change_set_permission:`把{session}的授权方式从{from}改为{to}`,change_set_receive:`把{session}的收信方式从{from}改为{to}`,change_set_letter_quota:`把{session}的发信额度从 {from} 改为 {to}`,change_set_daily_budget:`把{session}的每日费用上限从 {from} 改为 {to}`,change_set_daily_budget_all:`把全部会话的每日费用上限从 {from} 改为 {to}`,change_right_on:`允许{session}{right}`,change_right_off:`不再允许{session}{right}`,right_cards:`往审批中心放卡片`,right_manage:`管理 Yew Harness`,change_pin_on:`置顶{session}`,change_pin_off:`取消置顶{session}`,change_archive_on:`归档{session}`,change_archive_off:`恢复{session}`,change_set_main:`把主对话从{from}换成{to}`,change_set_main_first:`把{to}设为主对话`,change_clear_main:`取消主对话{from}`,change_set_default_model:`新会话的默认模型从 {from} 换成 {to}`,change_set_decision_log:`审批记录改写入 {to}`,change_clear_decision_log:`审批记录不再写入文件`,change_add_workspace:`添加工作区 {folder}`,change_remove_workspace:`移除工作区 {folder}`,change_set_theme:`主题改为{to}`,change_set_language:`界面语言改为{to}`,change_create_schedule:`新建定时任务{name}:{details}`,change_change_schedule:`修改定时任务{name}:{details}`,change_detail_cron:`时间 {cron}`,change_detail_to:`寄给{session}`,change_detail_letter:`内容「{message}」`,change_detail_run_mode:`运行时用{mode}`,change_detail_run_mode_change:`运行时的授权方式改为{mode}`,change_detail_rename:`改名为{name}`,change_detail_catch_up_on:`错过时补跑`,change_detail_catch_up_off:`错过时跳过`,change_detail_on:`开启`,change_detail_off:`关闭`,manage_organize:`整理会话和设置`,manage_configure:`改会话或 Yew Harness 的设置`,notice_changed:`{by}改了这个会话:{changes}`,confirmDeny:`确定拒绝`,rememberAs:`以后自动放行:{rules}`,allFilesInFolder:`{tool} 工作区里的所有文件`,allowedTitle:`总是允许的操作`,allowedHelp:`在授权卡上点「总是允许」,这类操作以后不再问你,记在这里;删掉一条就恢复询问。删除、推送这类每次都要确认的操作不会出现在这里。`,noAllowed:`还没有总是允许的操作。`,removeAllowed:`不再允许:{rule}`,ruleRun:`运行 {p}`,ruleWriteAll:`新建或覆盖工作区里的文件`,ruleEditAll:`修改工作区里的文件`,ruleFetch:`访问 {p}`,ruleRead:`读取 {p}`,ruleDeny:`禁止:{rule}`,ruleAsk:`询问:{rule}`,deny:`拒绝`,denyReason:`拒绝理由(可选,会告诉模型)`,decided_allow_once:`已授权`,decided_allow_always:`已授权并记住`,decided_deny:`已拒绝`,cancelled:`已取消`,questionTitle:`它在问你`,otherAnswer:`其他回答…`,pickSeveral:`可多选`,clauseSeparator:`;`,moreQuestions:`{q}(另有 {n} 个问题)`,answerPlaceholder:`写下你的回答`,answer:`回答`,answered:`你的回答:{a}`,notice_interrupted:`已停止`,notice_budget_reached:`今天的费用到了{scope}每日上限(USD {spent} / {limit}),已停下。点「继续」今天再给同样多的额度,也可以在设置里调高上限。`,notice_budget_warning:`今天的费用超过了{scope}每日上限的 80%(USD {spent} / {limit})。`,budgetScope_session:`这个会话的`,budgetScope_all:`全部会话的`,notice_error:`出错:{text}`,notice_model_changed:`换了模型:{text}`,notice_restarted:`Yew Harness 重启时这个会话在干活,已标为待核对。检查过后点「继续」接着运行。`,notice_compacted:`较早的记录已压成摘要`,notice_job_finished:`后台任务 {job}({command})结束了{exit}。`,instructionsUpdated:`说明文件有更新`,summaryTitle:`较早记录的摘要`,name:`名称`,kind:`期限`,kind_standing:`常设会话`,kind_task:`任务会话`,group:`团队`,noGroup:`不属于团队`,responsibility:`职责说明`,responsibilityPlaceholder:`这个会话负责什么、怎么做事`,groupName:`团队名称`,compactAt:`压缩阈值(token)`,compactAtHelp:`上下文达到这个数时压缩较早的记录。留空用默认值:模型上限的 80%,最多 20 万。`,providers:`服务商与密钥`,about:`关于 Yew Harness`,theme:`主题`,theme_system:`跟随系统`,theme_light:`浅色`,theme_dark:`深色`,language:`语言`,mascotMenu:`界面里的 Yew`,mascot_on:`显示`,mascot_off:`隐藏`,language_system:`跟随系统`,defaultModel:`新会话的默认模型`,region_cn:`国内`,region_global:`境外`,region_custom:`自定义`,keySaved:`已存密钥`,noKey:`没有密钥`,keyless:`不需要密钥`,testConnection:`测试连接`,testHint:`用已存的密钥发一条很短的请求,会用掉几个 token`,testOk:`连得上:{first}开始回答,{total}答完(用 {model} 测的)`,testFailed:`没连上({model}):{error}`,latencyMs:`{n} 毫秒`,latencySeconds:`{n} 秒`,setKey:`填写密钥`,replaceKey:`更换密钥`,deleteKey:`删除密钥`,deleteKeyBody:`从系统钥匙串删除 {name} 的 API Key?用到它的会话将无法请求模型。`,keyPlaceholder:`粘贴 API Key`,keyHelp:`密钥只存进系统钥匙串,不写进数据库和日志,也不会再显示。`,addProvider:`添加 OpenAI 兼容服务商`,providerId:`标识`,baseUrl:`接口地址`,keyRequired:`需要 API Key`,modelId:`模型名`,contextWindow:`上下文长度`,maxOutput:`最长输出`,deleteProvider:`删除服务商`,version:`版本 {v}`,build:`构建 {b}`,aboutBody:`AI 原生的多 Agent 工作台。Yew Harness 按 Session Engineering 的做法组织 Agent 会话:你只对接主对话,要你授权和决定的事都汇到审批中心。
10
+
11
+ 会话按团队组织:常设会话长期负责一块事,任务会话为一件事开设,做完回报。会话跑在你电脑上的 Yew Harness 服务里,网页关了也照常干活。`,publisher:`出品方`,publisherName:`榫卯 Tenon AI`,website:`官网`,privacy:`隐私`,feedback:`反馈`,required:`必填`,nameTaken:`这个名称已经有会话在用了。`,pinned:`已置顶`,moreOptions:`更多选项`,folderRequired:`这个会话要在一个工作区里工作,先选一个工作区。`,template_code:`写代码`,template_code_role:`在工作区里读代码、改代码,运行项目的检查和测试。改动前先看现有实现;改完说明改了什么、怎么验证的。`,template_docs:`整理资料`,template_docs_role:`阅读工作区里的资料,按要求整理成结构清楚的文档;引用原文时注明出自哪个文件。`,template_chat:`聊天`,defaultModelHelp:`新建会话时默认选这个服务商和模型;已有的会话不受影响。`,deleteProviderBody:`删除自定义服务商 {name}?它的配置和钥匙串里的 API Key 都会删除,用它的会话将无法请求模型。`,err_network:`连不上 Yew Harness 服务。确认 yew serve 还在运行,然后重试。`,err_signin:`登录已失效。在终端运行 yew open,用新链接打开。`,err_notFound:`要找的内容不存在,可能已被删除。刷新后再试。`,err_internal:`Yew Harness 内部出错了。重试一次;还不行的话,把请求编号和 yew serve 终端里的输出发给我们。`,err_invalid:`请求的内容不对,检查后再提交。`,err_field_name:`名称不能为空,最多 60 个字,不能含 @ 或控制字符。`,err_field_cwd:`工作区要选一个已经存在的文件夹,路径可以用 ~/ 开头。`,err_field_workspaces:`工作区要有名称,文件夹要已经存在,而且还没有保存成别的工作区。`,err_noPicker:`这台电脑上弹不出选择窗口,直接输入文件夹路径就行。`,err_pickerFailed:`选择窗口没能打开,直接输入文件夹路径就行。`,err_field_text:`消息不能为空,也不能超过 10 万字。`,err_field_decision:`这类操作每次都要确认,只能允许一次。`,err_field_answer:`回答不能为空。`,err_field_options:`压缩阈值要填不小于 10000 的整数,或者留空。`,err_field_key:`密钥不能为空。`,err_field_id:`标识只能用小写字母、数字和短横线,最多 40 个,不能和内置服务商重名。`,err_field_baseUrl:`接口地址要以 http:// 或 https:// 开头。`,err_field_models:`模型名、上下文长度(至少 1000)和最长输出(不超过上下文长度)都要填。`,err_field_rules:`每条规则都要选效果和工具。`,err_field_model:`找不到这个服务商或模型。`,err_missingKey:`没有 {provider} 的 API Key。在「设置 → 服务商与密钥」里填写,或在终端运行 yew key set {provider}。`,err_sessionBusy:`会话正在干活,等它停下再试。`,err_sessionArchived:`这个会话已归档,先恢复它。`,err_scheduleBusy:`上一轮还没结束,这次没有寄出。`,err_field_cron:`cron 表达式写得不对,或者这个日期不存在。`,err_field_session:`选一个没有归档的常设会话。`,err_field_message:`写上信的内容,最多 20000 字。`,err_nothingToContinue:`会话里还没有可以接着做的内容。`,err_alreadyAnswered:`这项请求已经处理过或被撤销了。`,err_alreadyDelivered:`这条消息已经送达或被撤回了。`,err_unknown:`操作没有完成。重试一次;还不行的话,把请求编号发给我们。`,notice_error_model:`模型请求失败:{text}`,notice_error_internal:`Yew Harness 内部出错了,详情在 yew serve 的终端输出里。`,notice_compact_failed:`压缩上下文失败:{text}`,notice_step_limit:`这一轮已经走了 {n} 步,Yew Harness 先停下。事情还没做完,点「继续」接着做。`,notice_output_cut:`回复连续几次在模型的输出上限处被截断,Yew Harness 先停下。点「继续」接着做。`,jobExit:`,退出码 {code}`,jumpToNew:`跳到新消息`,decidedWithReason:`{decision}:{reason}`,infoAbout:`{label}的说明`,unsavedChanges:`有未保存的修改`,copyRequestId:`复制请求编号`,lockupName:`Yew Harness,榫卯 Tenon AI 出品`,privacyPolicy:`隐私政策`,terms:`用户协议`,docVersion:`版本 {v} · {date}生效`,policyDate:T.zh.date,privacyPolicyBody:T.zh.privacy.join(`
12
+
13
+ `),termsBody:T.zh.terms.join(`
14
+
15
+ `),mainConversation:`主对话`,approvalCenter:`审批中心`,approvalCount:`{n} 件等你处理`,setMain:`设为主对话`,unsetMain:`取消主对话`,openedBy:`由 {name} 开`,outcome_done:`已完成`,outcome_given_up:`已放弃`,outcome_failed:`没做成`,interventions:`你介入 {n} 次`,tabPending:`待处理`,tabDecided:`审批记录`,tabLetters:`信件`,decisionsEmpty:`还没有做过决定。`,waitingApprovals:`等你授权的操作`,waitingQuestions:`等你回答的问题`,decisionsToMake:`待你审批的事`,heldLetters:`待放行的信`,centerEmpty:`没有等你处理的事。`,companion_morning:`早上好`,companion_afternoon:`下午好`,companion_evening:`晚上好`,companion_greet:`{greeting}!{line}`,companion_waiting:`有 {n} 件事等你处理`,companion_waiting_one:`有 1 件事等你处理`,companion_error:`{n} 个会话出错了`,companion_error_named:`「{name}」出错了`,companion_review:`{n} 个会话做完了,等你核对`,companion_review_named:`「{name}」做完了,等你核对`,companion_working:`{n} 个会话在干活`,companion_working_named:`「{name}」在干活`,companion_clear:`没有等你处理的事`,companion_night:`没有等你处理的事,早点休息`,boot_server:`连接本机的 Yew Harness`,boot_serverDone:`已连接本机的 Yew Harness {version}`,boot_settings:`读取设置`,boot_settingsDone:`已读取设置`,boot_sessions:`读取会话`,boot_sessionsDone:`已读取 {n} 个会话`,boot_center:`读取审批中心`,boot_centerWaiting:`{n} 件事等你处理`,boot_centerClear:`没有等你处理的事`,boot_skip:`点一下或按任意键跳过`,cardFrom:`{name} 提出`,cardPostedBy:`{name} 放入`,cardDeadline:`期限 {d}`,recommended:`建议`,cardOptions:`选项`,cardVia:`经{name}`,cardAlsoInvolves:`还涉及{names}`,undoable:`可撤回`,notUndoable:`不可撤回`,cardNote:`备注`,notePlaceholder:`写一句备注(可选)`,answerRequired:`写下你的答复`,byYou:`本人`,decidedChoice:`选择:{c}`,noteOnly:`只写了备注`,release:`放行`,refuse:`拒收`,letterKind_notice:`通知`,letterKind_request:`请求`,letterKind_decision:`决定`,letterKind_report:`回报`,letterStatus_queued:`排队中`,letterStatus_held:`待放行`,letterStatus_delivered:`已送达`,letterStatus_done:`已处理`,letterStatus_refused:`已拒收`,letterStatus_dropped:`已丢弃`,letterReason_quota:`额度用完了`,letterReason_rate:`一分钟内给同一个会话发得太多`,letterReason_burst:`一分钟内发得太多`,letterReason_duplicate:`和刚发的一封重复`,"letterReason_pair-limit":`短时间内给同一个会话发得太多`,letterReason_hops:`转发链太长`,letterReason_loop:`在几个会话之间来回打转`,"letterReason_refuse-policy":`对方拒收信件`,"letterReason_hold-policy":`对方设了暂存,等你放行`,"letterReason_lower-rank":`发信的会话权限比收信的低,等你放行`,"letterReason_person-refused":`你拒收了`,letterReason_archived:`收信的会话已归档`,fromCli:`命令行`,sentByYew:`Yew Harness 代发`,letterTo:`{from} → {to}`,lettersEmpty:`还没有信件。`,fromSchedule:`定时任务{name}`,artifacts:`产物`,artifactsCount:`{n} 个`,artifactsEmpty:`还没有产物。会话把做出来的文档、页面、数据和图表存成产物后,会出现在这里。`,artifactKind_markdown:`文档`,artifactKind_html:`页面`,artifactKind_json:`数据`,artifactKind_chart:`图表`,artifactVersion:`版本`,artifactVersionN:`第 {n} 版`,artifactUnreadable:`这个版本读不出来。`,artifactDeleteTitle:`删除「{name}」?`,artifactDeleteBody:`这个产物的所有版本都会删除,不能恢复。`,chartData:`数据表`,download:`下载`,usageToday:`今天已用`,usageOfLimit:`每日上限 USD {limit}`,usageLeft:`还剩 USD {n}`,usageOver:`超出 USD {n}`,usageNoLimit:`没有设每日上限`,usageChart:`最近 {n} 天每天的费用,单位美元`,usageBar:`{day},USD {n}`,usageLimitLine:`每日上限`,usageSession:`会话`,usageCost:`费用(USD)`,usageInput:`输入 token`,usageOutput:`输出 token`,usageCacheRead:`缓存读取`,usageTotal:`合计`,usageDayEmpty:`这一天没有会话用过模型。`,map:`会话关系`,mapEmpty:`还没有会话。`,mapPicture:`会话关系图`,mapCaption:`实线:上面的会话开了下面的会话。带箭头的细线:最近 24 小时的信,从寄信的会话指向收信的会话,多于一封时标出封数。指到或聚焦一个会话时,只突出它收发的信。`,mapCapped:`信只画了往来最多的 {n} 对,其余 {m} 对在下面的列表里。`,mapColumn_main:`主对话开的会话`,mapColumn_none:`未分团队`,mapOutline:`列表形式`,mapOutlineSessions:`会话和它开的会话`,mapOutlineLetters:`最近 24 小时的信`,mapFlow:`{from} → {to}:{n} 封`,mapNoLetters:`最近 24 小时没有会话之间的信。`,progressWaiting_permission:`在等你授权`,progressWaiting_question:`在等你回答`,progressWaiting_decision:`在等你审批`,progressWaitingMany:`有 {n} 件事在等你`,progressStarted:`{time} 开始`,progressSince:`从 {time} 等到现在`,progressSpent:`已用 {t}`,progressRetrying:`模型请求没成功,{s} 秒后重试(第 {n} 次,最多 {of} 次)`,progressWaited:`等了 {t}`,elapsed_s:`{s} 秒`,elapsed_ms:`{m} 分 {s} 秒`,elapsed_hm:`{h} 小时 {m} 分`,waitedNow:`刚到`,waitedMinutes:`等了 {n} 分钟`,waitedHours:`等了 {n} 小时`,waitedDays:`等了 {n} 天`,today:`今天`,schedules:`定时任务`,schedulesCount:`{n} 个`,schedulesIntro:`定时任务按时给一个常设会话寄一封信,会话照常干活,最后的回复回报给主对话。这一轮无人值守:要问你的操作直接拒绝,回报里写明。`,schedulesEmpty:`还没有定时任务。`,newSchedule:`新建定时任务`,editSchedule:`修改定时任务`,scheduleName:`名称`,scheduleWhen:`时间`,scheduleCronLabel:`cron 表达式`,scheduleCronHint:`五段:分、时、日、月、周,按这台电脑的时区`,scheduleNextRuns:`接下来:{times}`,scheduleNoRun:`这个日期不存在,不会运行`,cronFields:`要写五段:分、时、日、月、周`,cronField:`{field}「{part}」写得不对`,cronField_0:`分`,cronField_1:`时`,cronField_2:`日`,cronField_3:`月`,cronField_4:`周`,preset_daily:`每天 9:00`,preset_weekdays:`工作日 9:00`,preset_weekly:`每周一 9:00`,preset_monthly:`每月 1 日 9:00`,preset_hourly:`每小时整点`,preset_custom:`自定义`,scheduleSession:`寄给`,scheduleSessionHint:`只能寄给常设会话;任务算在它的团队里`,scheduleNoSessions:`还没有常设会话。先新建一个常设会话,再建定时任务。`,scheduleMessage:`信的内容`,scheduleMessagePlaceholder:`每次要做的事,例如:整理本周各会话的进展,写成周报。`,schedulePermission:`这次运行的授权方式`,schedulePermission_session:`沿用会话的({mode})`,scheduleModeSession:`沿用会话的`,scheduleTeam:`团队:{team}`,scheduleCatchUp:`错过时`,scheduleCatchUpHint:`Yew Harness 没运行或电脑睡眠时错过的时间`,scheduleCatchUp_yes:`补跑一次`,scheduleCatchUp_no:`跳过`,scheduleRunNow:`立即运行`,scheduleDelete:`删除定时任务`,scheduleDeleteBody:`删除{name}后它不再运行。已经寄出的信和回报会留着。`,scheduleNext:`下次 {time}`,scheduleOff:`已关闭`,scheduleNeverRan:`还没运行过`,scheduleLast:`上次 {time} · {status}`,scheduleResult:`{status}:{detail}`,scheduleNameTaken:`已经有同名的定时任务了。`,scheduleStatus_running:`运行中`,scheduleStatus_done:`完成`,scheduleStatus_error:`出错`,scheduleStatus_stopped:`你停下了`,scheduleStatus_skipped:`跳过`,scheduleSkip_busy:`上一轮还没结束`,scheduleSkip_archived:`会话已归档`,scheduleSkip_missed:`错过了,按设置跳过`,loadMore:`加载更多`,decisionHeading:`决定 #{n}`,verifiedDecision:`Yew Harness 核对过:#{n} 是你做的决定`,codeBlock:`代码`,act_send_letter:`发信给`,act_send_letter_ing:`等回信`,act_list_sessions:`查看会话列表`,act_list_sessions_ing:`正在查看会话列表`,act_check_decision:`查验决定`,act_check_decision_ing:`正在查验决定`,act_open_session:`开会话`,act_open_session_ing:`等子会话`,act_delegate:`助手查了`,act_delegate_ing:`助手在查`,act_finish_task:`记下任务结果`,act_finish_task_ing:`正在记下任务结果`,act_post_card:`放进审批中心`,act_post_card_ing:`正在放进审批中心`,act_update_card:`更新卡片`,act_update_card_ing:`正在更新卡片`,act_withdraw_card:`撤下卡片`,act_withdraw_card_ing:`正在撤下卡片`,act_manage_yew:`改设置`,act_manage_yew_ing:`正在改设置`,act_list_cards:`查看审批中心`,act_list_cards_ing:`正在查看审批中心`,sum_letter:`发信 {n} 封`,sum_letter_one:`发信 1 封`,sum_session:`开会话 {n} 个`,sum_session_one:`开会话 1 个`,sum_card:`改审批中心 {n} 次`,sum_card_one:`改审批中心 1 次`,sum_helper:`派助手 {n} 次`,sum_helper_one:`派助手 1 次`,lettersSection:`信件`,contextSection:`上下文`,compactAtHint:`留空时用模型上限的 80%,最多 20 万`,automatic:`自动`,receive:`收信`,receive_accept:`接收`,receive_accept_hint:`其他会话的信直接送达`,receive_hold:`暂存`,receive_hold_hint:`先放进审批中心,你放行后才送达`,receive_refuse:`拒收`,receive_refuse_hint:`不收其他会话的信`,letterQuota:`发信额度`,letterQuotaHelp:`你每给这个会话发一条消息或做一个决定,它最多发这么多封信。留空用默认值:主对话 30 封,其他会话 10 封。`,lettersLeft:`到你下一条消息前还能发 {n} 封`,budgetSection:`费用`,dailyBudget:`每日费用上限(美元)`,dailyBudgetHelp:`这个会话一天最多花这么多,按服务商的价格估算,按这台电脑的日期算一天。到 80% 时提醒,到上限时会话停下;点「继续」当天再给同样多的额度,也可以调高上限。留空不设。没有价格的模型不计费用。`,memoryDirs:`记忆目录`,memoryDirsHelp:`你跨会话保存笔记的文件夹,一行一个。会话能直接读这些文件夹,每个文件夹的索引(index.md、MEMORY.md 或 README.md)会随说明一起给它;写这些文件夹仍然要问你。`,memoryDirsPlaceholder:`例如 ~/memory`,dailyBudgetAll:`全部会话的每日费用上限(美元)`,dailyBudgetAllHelp:`所有会话一天加起来最多花这么多,按服务商的价格估算。到上限时,正在干活的会话在下一次请求模型前停下。留空不设。`,spentToday:`今天已用 USD {n}`,budgetNone:`不设`,canPostCards:`可以直接往审批中心放卡片`,canPostCardsHint:`主对话总是可以;其他会话默认要经主对话转交。`,dataMenu:`数据管理…`,dataTitle:`数据管理`,dataStorage:`占用`,dataFolder:`数据目录`,dataTotal:`合计`,dataReadAt:`{time} 读取`,dataPart_database:`会话记录、信件和设置`,dataPart_artifacts:`产物`,dataPart_logs:`运行日志`,dataPart_temp:`临时文件`,dataPart_other:`其他`,dataExport:`导出`,dataExportLabel:`导出全部数据`,dataExportHint:`每个会话写成 Markdown,信件、决定卡、定时任务和设置写成 JSON,产物的每个版本各一个文件,和 yew export 相同。要选一个新建的或空的文件夹。API Key、配对的手机和登录令牌不导出。`,dataExportButton:`选择文件夹并导出…`,dataExportFolder:`导出到的文件夹`,dataExportTyped:`导出`,dataExportDone:`已导出到 {folder}:{sessions} 个会话、{letters} 封信、{cards} 张决定卡、{schedules} 个定时任务、{artifacts} 个产物,共 {files} 个文件。`,dataTemp:`临时文件`,dataTempLabel:`超长的命令输出`,dataTempHint:`命令的输出超过 50 KB 时,完整内容存成文件,供会话读取。现在有 {n} 个文件,共 {size}。`,dataTempNone:`命令的输出超过 50 KB 时,完整内容存成文件,供会话读取。现在没有这样的文件。`,dataTempKept:`其中 {n} 个属于正在运行命令的会话,清理时保留。`,dataCleanButton:`清理…`,dataCleanTitle:`清理临时文件`,dataCleanBody:`将删除 {n} 个超长命令输出的文件,腾出 {size},不能撤回。删除后会话不能再读这些命令的完整输出,对话记录里显示的末尾部分还在。`,dataCleanBodyKept:`正在运行命令的会话的 {n} 个文件保留。`,dataCleanConfirm:`删除 {n} 个文件`,dataCleanDone:`已删除 {n} 个文件,腾出 {size}。`,dataCleanSkipped:`{n} 个文件保留。`,dataArchived:`归档会话`,deleteArchivedLabel:`永久删除所有归档会话`,deleteArchivedHint:`连同它们的对话记录、工具调用和收到的信,不能撤回。删除前会列出是哪些。`,deleteArchivedButton:`删除…`,err_field_folder:`导出要一个已经存在的空文件夹。选一个新建的或空的文件夹。`,err_tempOutside:`数据目录里的 tmp 是一个指向别处的链接,Yew Harness 不经过它删除文件。`,err_noExport:`Yew Harness 重启后不再记得上次导出到了哪个文件夹。`,deleteArchivedTitle:`删除所有归档会话`,deleteArchivedBody:`将永久删除 {n} 个归档会话,连同它们的对话记录、工具调用和收到的信,不能撤回。它们发出的信和提出的决定会保留。`,deleteArchivedConfirm:`永久删除 {n} 个`,noArchived:`没有归档的会话。`,andMore:` 等 {n} 个`,canOrganize:`可以管理 Yew Harness`,canOrganizeHint:`像主对话一样改会话、团队和 Yew Harness 的设置;放宽权限的改动仍要你确认`,chosenMark:`(你选的)`,decisionLog:`审批记录文件`,decisionLogHelp:`每做一个决定,Yew Harness 在这个 Markdown 文件末尾加一行,不改已有内容。留空就不同步。`,decisionLogPlaceholder:`例如 ~/notes/decisions.md`,modelProviders:`模型服务商`,searchServices:`搜索服务`,searchHelp:`存了密钥,会话才能联网搜索;几家都有密钥时,用排在前面的那家。搜索时只把搜索词发给这家服务。`,searchName_bocha:`博查`,searchName_tavily:`Tavily`,searchName_brave:`Brave Search`,search_cn:`由国内公司提供`,search_global:`由境外公司提供,搜索词会发给这家境外公司`,searchInUse:`正在使用`,deleteSearchKeyBody:`从系统钥匙串删除 {name} 的密钥?没有别家的密钥时,会话就不能联网搜索了。`,mcpMenu:`MCP 服务…`,mcpTitle:`MCP 服务`,mcpHelp:`MCP 服务给会话增加工具。服务记在 Yew Harness 数据目录的 mcp.json 里;会话第一次用某个服务的工具前会先问你。用命令添加的服务是在这台电脑上运行的程序,只添加你信得过的。`,mcpBuiltin:`Yew Harness 自带`,mcpBuiltin_browser:`浏览器`,mcpBuiltinHelp_browser:`会话可以打开网页、点击和填写。它开一个单独的 Chrome 窗口,在里面登录过的网站会一直保持登录,记录存在 Yew Harness 的数据目录里,和你平时用的 Chrome 分开。由微软的 Playwright MCP 提供,第一次使用时从 npm 安装到 Yew Harness 的数据目录。它的点击、输入可以选「总是允许」,只在当前会话有效。`,mcpBuiltin_computer:`电脑操控`,mcpBuiltinHelp_computer:`会话可以看屏幕截图、移动鼠标、敲键盘,能操作这台电脑上的任何程序。第一次用时 macOS 会请你给运行 Yew Harness 的程序「屏幕录制」和「辅助功能」权限。由开源的 computer-use-mcp 提供,第一次使用时从 npm 安装到 Yew Harness 的数据目录。它能越过 Yew Harness 的其他授权规则,所以点击、输入和按键每一次都要你确认,不能选「总是允许」。`,mcpAdded:`已添加的服务`,mcpPresets:`常用服务`,mcpPresetsInfo:`官方出品、填上令牌就能用的服务,加之前都实际连通过。添加后和手动添加的一样,记在 mcp.json 里。`,mcpPresetAddTitle:`添加 {name}`,mcpPresetToken:`令牌`,mcpPresetTokenOptional:`令牌(可不填,不填时调用次数有限制)`,mcpPresetWhere:`在 {publisher} 生成令牌`,mcpPresetStored:`保存后写进 Yew Harness 数据目录的 mcp.json,这里不再显示。`,mcpPresetRemote:`这是 {publisher} 运行的远程服务({host}):会话调用它的工具时,传的内容发给 {publisher}。`,mcpPresetLocal:`第一次用时,Yew Harness 按随 Yew Harness 发布的锁文件从 npm 把 {pkg} 装到数据目录(不运行安装脚本),在这台电脑上运行。`,mcpPreset_github:`仓库、议题、拉取请求、Actions 和发行版。`,mcpPreset_gitee:`Gitee 上的仓库、议题、拉取请求和发行版。`,mcpPreset_context7:`查各种开源库的最新文档和示例代码。`,mcpPreset_notion:`读写 Notion 里的页面和数据库。`,mcpPreset_sentry:`查 Sentry 里的报错、发行版和项目。`,mcpPreset_gmail:`搜索和阅读邮件、管理标签、写草稿。Google 的这个服务不能直接发信。`,"mcpPreset_google-calendar":`查看日历和日程,查空闲时间。`,"mcpPreset_google-drive":`搜索、阅读和下载云端硬盘里的文件,新建文件。`,mcpPreset_linear:`Linear 里的议题、项目和周期。`,mcpPreset_vercel:`Vercel 上的项目、部署和日志。`,mcpPresetSignIn:`添加后在上面的列表里点「登录」,在浏览器里登录 {publisher} 并同意 Yew Harness 访问。登录的凭据存进系统钥匙串。`,mcpGoogleStep1:`加入 Google Workspace 开发者预览计划:Google 的这些 MCP 服务还在预览阶段。`,mcpGoogleStep2:`在 Google Cloud 建一个项目,启用 {apis}。`,mcpGoogleStep3:`在 Google Auth Platform 配置同意屏幕:受众选「外部」并把自己加为测试用户,在「数据访问」里加上这些范围:`,mcpGoogleStep4:`新建「Web 应用」类型的 OAuth 客户端,勾选「Use this client for an AI-powered agent」,已获授权的重定向 URI 填:`,mcpGoogleStep5:`把客户端 ID 和客户端密钥填在下面,添加后在列表里点「登录」。`,mcpGoogleGuide:`Google 的设置说明`,mcpGoogleShared:`同一个客户端可以给 Gmail、日历和云端硬盘共用。`,mcpClientId:`客户端 ID`,mcpClientSecret:`客户端密钥`,mcpClientStored:`保存后写进 Yew Harness 数据目录的 mcp.json,这里不再显示。`,mcpSignIn:`登录`,mcpSignInAt:`登录页面在 {host}`,mcpSignOut:`退出登录`,"mcpState_sign-in":`需要登录`,mcpNone:`还没有 MCP 服务。`,mcpAdd:`添加服务`,mcpName:`名称`,mcpNameHint:`字母、数字、- 和 _,最多 32 个;它会出现在工具名里`,mcpKind:`连接方式`,mcpKind_stdio:`运行一个命令`,mcpKind_stdio_hint:`Yew Harness 在这台电脑上启动这个程序`,mcpKind_http:`连接一个网址`,mcpKind_http_hint:`服务已经在别处运行,经 HTTP 连接`,mcpCommand:`命令`,mcpPackage:`npm 包`,mcpArgs:`参数`,mcpArgsHint:`每行一个`,mcpEnv:`环境变量`,mcpEnvHelp:`值可能是密钥:保存后写进 mcp.json,这里不再显示,只显示变量名。`,mcpHeaders:`请求头`,mcpHeadersHelp:`值可能是密钥:保存后写进 mcp.json,这里不再显示,只显示名称。`,mcpUrl:`网址`,mcpPairName:`名称`,mcpPairValue:`值`,mcpAddEnv:`添加变量`,mcpAddHeader:`添加请求头`,mcpRemovePair:`去掉这一行`,mcpEnabled:`启用`,mcpDetails:`详情`,mcpRemove:`移除`,mcpRemoveTitle:`移除「{name}」?`,mcpRemoveBody:`它会从 mcp.json 里删掉并立刻停下,会话不能再用它的工具。以后要用需要重新添加。`,mcpState_ready:`已连上 · {n} 个工具`,mcpState_connecting:`正在连接…`,mcpState_error:`没连上`,mcpState_disabled:`已停用`,mcpTools:`工具`,mcpNoTools:`这个服务没有提供工具。`,mcpReenter:`重新填写`,mcpNewValue:`{name} 的新值`,mcpNoValues:`没有`,err_mcpExists:`mcp.json 里已经有同名的服务,换一个名称。`,err_mcpUnreadable:`mcp.json 不是合法的 JSON,Yew Harness 没有改它。先手动改好这个文件。`,err_field_server:`名称用字母、数字、- 和 _,最多 32 个;服务最多 50 个。`,err_field_command:`命令和网址填一个;命令只能有一行。`,err_field_url:`网址要以 http:// 或 https:// 开头,凭据放在请求头里,不写在网址里。`,err_field_args:`参数最多 100 个。`,err_field_env:`变量名用字母、数字和下划线,不以数字开头;值只能有一行。`,err_field_headers:`请求头的名称不能有空格和冒号;值只能有一行。`,skillsMenu:`技能…`,skillsTitle:`技能`,skillsHelp:`技能是一个含 SKILL.md 的文件夹,写着某一类任务的做法;会话遇到对应的任务时读它。Yew Harness 读这些位置的技能:{global},以及已保存工作区里的 .agents/skills、.claude/skills 和 .yew/skills。这里只能停用和启用,内容在文件夹里改。`,skillsGlobal:`全局`,skillsNone:`还没有技能。把技能的文件夹放进 {folder},这里就会列出它。`,skillNoDescription:`没有说明`,skillRevealFinder:`在访达中显示`,skillRevealFiles:`在文件管理器中显示`,skillUnread:`未读入`,"skillProblem_no-file":`文件夹里没有 SKILL.md。`,skillProblem_unreadable:`SKILL.md 读不出来,检查文件的权限。`,"skillProblem_bad-name":`名称只能用字母、数字、点、- 和 _,最多 64 个;改 SKILL.md 里的 name。`,err_revealFailed:`文件夹没能打开。`,relayChange:`更改`,relayTitle:`中继地址`,relayHelp:`手机经这个地址连到这台电脑。可以改成你自己部署的中继,地址以 wss:// 开头。`,relayRepair:`已配对的手机记的是配对时的中继地址。改了以后,它们要重新扫码配对才能连上。`,relayRestore:`恢复默认`,err_field_remote:`中继地址要以 wss:// 开头;ws:// 只能用于这台电脑和局域网里的地址。`,notifyTitle:`通知哪些事`,notifyHelp:`关掉的那一类不再通知任何一台手机。某一台手机要不要通知,在上面单独开关。`,notify_waiting:`要你处理的事`,notify_waiting_hint:`授权、提问、决定卡和待放行的信`,notify_error:`会话出错停下`,notify_error_hint:`也包括 Yew Harness 重启后待核对的会话`,notify_task:`任务做完`,notify_task_hint:`任务会话和定时任务结束时`,notify_budget:`费用到上限`,notify_budget_hint:`到每日上限的 80% 和到上限时`,defaultPermission:`新会话的默认授权方式`,defaultPermissionHelp:`新建的会话用这种授权方式,之后可以在会话里改。会话自己开的会话不会高于它本身的授权方式。已有的会话不受影响。`,defaultWorkspace:`新会话的默认工作区`,defaultWorkspaceHelp:`在首页和新建会话时先选中这个工作区,开始前可以改。`,defaultWorkspaceNone:`不选`,systemMenu:`启动…`,systemTitle:`启动`,startAtLogin:`登录时启动 Yew Harness`,startAtLoginHint:`登录这台电脑后在后台启动 Yew Harness,不开终端手机和定时任务也能用。从下次登录起生效,现在运行着的 Yew Harness 不受影响。`,startAtLoginUnsupported:`只支持 macOS 和 Linux。`,launcher:`「应用程序」里的 Yew Harness 图标`,launcherHint:`点它会启动 Yew Harness 并打开界面。移动或升级 Node.js、Yew Harness 之后,关掉再打开这个开关一次。`,launcherUnsupported:`只支持 macOS。`,writtenTo:`已写到 {path}`,err_notOnThisSystem:`这台电脑的系统不支持这一项。`,err_serviceFailed:`系统没有接受这个启动项。在终端运行 yew service install 看具体原因。`},te={zh:E,en:{definition:`An AI-native multi-agent workbench.`,loading:`Loading…`,signInTitle:`Sign-in needed`,signInBody:`Open Yew Harness with the link printed by yew serve. If the link was used or has expired, run yew open in a terminal for a new one.`,connectionLost:`Lost the connection to the Yew Harness service. Reconnecting…`,retry:`Retry`,cancel:`Cancel`,close:`Close`,save:`Save`,saving:`Saving…`,create:`Create`,delete:`Delete`,rename:`Rename`,confirm:`OK`,edit:`Edit`,remove:`Withdraw`,send:`Send`,stop:`Stop`,more:`More actions`,copy:`Copy`,copied:`Copied`,requestId:`Request ID`,errorTitle:`Something went wrong`,sessions:`Sessions`,newSession:`New session`,newGroup:`New team`,workspaces:`Workspaces`,newWorkspace:`New workspace`,newWorkspaceItem:`New workspace…`,workspaceFolder:`Folder`,workspaceFolderHint:`Choose or type the folder sessions work in, for example ~/projects/demo`,chooseFolder:`Choose`,createWorkspace:`Create workspace`,workspaceNamePlaceholder:`My app`,removeFromList:`Remove from list`,search:`Search names and messages`,searchResults:`Search results`,noResults:`Nothing found`,archived:`Archived`,showArchived:`Show archived`,hideArchived:`Hide archived`,settings:`Settings`,providersMenu:`Providers and keys…`,defaultsMenu:`Defaults…`,phonesMenu:`Phone access…`,phones:`Phone access`,phoneAccess:`Access`,phoneAccessSwitch:`Allow phone access`,phoneAccessHint:`Yew Harness on your phone reaches this Mac through the relay, end-to-end encrypted; the relay sees only ciphertext`,relay:`Relay`,relayConnected:`Connected`,relayConnecting:`Connecting…`,pairedPhones:`Paired phones`,noPairedPhones:`No phone is paired yet.`,lastConnected:`Connected {ago} ago`,neverConnected:`Not connected yet`,removePhone:`Remove`,phoneNotify:`Notify`,phoneNoPush:`notifications are not turned on on this phone`,hintSeparator:` · `,removePhoneTitle:`Remove “{name}”?`,removePhoneBody:`This phone disconnects at once; to use it again, pair it again.`,addPhone:`Add phone`,pairingQr:`Pairing QR code`,pairingHelp:`Scan this code with Yew Harness on your phone. It works once, within 5 minutes.`,pairingExpired:`The QR code has expired.`,phonePaired:`Paired: {name}`,turnOnFirst:`Turn on “Allow phone access” first.`,defaultsTitle:`Defaults`,aboutMenu:`About Yew Harness…`,sendFeedback:`Send feedback`,pin:`Pin`,unpin:`Unpin`,archive:`Archive`,unarchive:`Restore`,removeFromGroup:`Remove from team`,renameGroup:`Rename team`,deleteGroup:`Delete team`,deleteGroupBody:`Its sessions no longer belong to a team. They are not deleted.`,unread:`{n} unread`,emptySidebar:`No sessions yet`,emptyGroup:`No sessions in this team yet`,teams:`Teams`,noTeams:`No teams yet`,teamCount:`{n} sessions`,newSessionHere:`New session in this team`,showAllSessions:`Show all sessions`,noWorkspaces:`No workspaces yet`,goHome:`Go to the home page`,collapseSidebar:`Close sidebar`,expandSidebar:`Open sidebar`,openSidebar:`Open sidebar`,closeSidebar:`Close sidebar`,status_idle:`Idle`,status_working:`Working`,status_waiting:`Waiting for you`,status_error:`Error`,status_needs_review:`Needs review`,chat:`Chat`,workingFolder:`Workspace`,model:`Model`,provider:`Provider`,thinking:`Thinking`,thinking_off:`Off`,thinking_minimal:`Minimal`,thinking_low:`Low`,thinking_medium:`Medium`,thinking_high:`High`,thinking_xhigh:`Very high`,thinking_max:`Max`,usage:`Usage`,tokens:`{n} tokens`,cost:`USD {n}`,contextUsed:`Context {used} / {total}`,contextPercent:`Context {p}% used ({used} / {total} tokens)`,mode_chat:`Chat`,mode_code:`Code`,continue:`Continue`,continueHint:`Pick up where it stopped.`,compact:`Compact context`,sessionSettings:`Session settings`,exportMarkdown:`Markdown`,exportAs:`Export`,duplicate:`Duplicate`,forkFromHere:`Fork from here`,forkFromHereHint:`Open a new session with the conversation up to this reply; this one stays as it is`,forkBeforeHint:`Open a new session with the conversation before this message, with the message in its box; this one stays as it is`,rewindHere:`Go back to here`,rewindBusy:`The session is working; stop it first`,rewindTitle:`Go back to here?`,rewindBodyMine:`This message and what came after (messages, replies and tool calls) are deleted from Yew Harness and cannot be restored. The message goes back into the box to change and send again. What was already sent to the model provider cannot be called back, and files changed, commands run and letters sent are not undone; use git to restore files.`,rewindBodyReply:`What came after this reply (messages, replies and tool calls) is deleted from Yew Harness and cannot be restored. What was already sent to the model provider cannot be called back, and files changed, commands run and letters sent are not undone; use git to restore files.`,rewind:`Go back`,moveToTeam:`Move to team`,newTeamEllipsis:`New team…`,exporting:`Exporting…`,permissionMode:`Permission mode`,perm_auto:`Ask when needed`,perm_auto_hint:`The model decides what to ask you about`,perm_manual:`Ask each time`,perm_manual_hint:`Asks before edits, commands and web requests`,perm_skip:`Full access`,perm_skip_hint:`Runs without asking; still asks before deletes, pushes and the like`,loadEarlier:`Load earlier messages`,emptyTranscript:`Send a message to start.`,composerPlaceholder:`Message {name} (Enter to send, Shift+Enter for a new line)`,composerQueued:`The session is working. A message sent now arrives between tool calls`,queuedTitle:`Queued messages`,you:`You`,thinkingLabel:`Thinking`,thinkingLevel:`Thinking: {level}`,homeTitle:`What do you want to work on?`,homePlaceholder:`Describe the task. Enter to start, Shift+Enter for a new line`,noFolder:`No workspace`,folderPath:`Folder path, for example ~/projects/demo`,queueSend:`Queue message`,justNow:`now`,minutesAgo:`{n}m`,hoursAgo:`{n}h`,daysAgo:`{n}d`,act_read:`Read`,act_read_ing:`Reading`,act_write:`Wrote`,act_write_ing:`Writing`,act_edit:`Edited`,act_edit_ing:`Editing`,act_glob:`Listed files`,act_glob_ing:`Listing files`,act_grep:`Searched`,act_grep_ing:`Searching`,act_shell:`Ran`,act_shell_ing:`Running`,act_shell_job:`Checked job`,act_shell_job_ing:`Checking job`,act_todo:`Updated tasks`,todoTitle:`Tasks`,todoProgress:`Tasks {done}/{total}`,act_todo_ing:`Updating tasks`,act_ask_user:`Asked`,act_ask_user_ing:`Asking`,act_web_fetch:`Fetched`,act_web_fetch_ing:`Fetching`,sum_read:`Read {n} files`,sum_read_one:`Read 1 file`,sum_edit:`Made {n} edits`,sum_edit_one:`Made 1 edit`,sum_write:`Wrote {n} files`,sum_write_one:`Wrote 1 file`,sum_search:`Searched {n} times`,sum_search_one:`Searched once`,sum_shell:`Ran {n} commands`,sum_shell_one:`Ran 1 command`,sum_web:`Fetched {n} pages`,sum_web_one:`Fetched 1 page`,sum_think:`Thought {n} times`,sum_think_one:`Thought once`,sum_other:`{n} other steps`,sum_other_one:`1 other step`,listSeparator:`, `,stepsFailed:`{n} failed`,tool_pending:`Waiting`,tool_waiting:`Needs your permission`,tool_running:`Running`,tool_done:`Done`,tool_error:`Error`,tool_denied:`Declined`,tool_unattended:`Refused: nobody watching`,tool_needs_review:`Needs review`,toolArguments:`Arguments`,toolResult:`Result`,toolOutput:`Output`,diff:`Changes`,linesAdded:`+{n}`,linesRemoved:`−{n}`,approvalTitle:`Needs your permission`,askedInReply:`Asked in a reply`,confirmEachTime:`Asks every time`,confirmEachTimeHint:`Operations like this ask every time and can't be always allowed`,ask_shell:`Run a command`,ask_write:`Create or overwrite a file`,ask_edit:`Edit a file`,ask_read:`Read a file outside the working folder`,ask_glob:`Find files outside the working folder`,ask_grep:`Search files outside the working folder`,ask_web_fetch:`Open a web page`,ask_open_session:`Open a task session`,ask_open_session_named:`Open the task session {name}`,ask_manage_yew:`Manage Yew Harness`,"confirm_delete-files":`Delete files`,"confirm_delete-untracked":`Delete untracked files`,"confirm_delete-branch":`Delete a branch`,"confirm_delete-tag":`Delete a tag`,"confirm_delete-stash":`Delete stashed changes`,"confirm_delete-ref":`Delete a Git reference`,"confirm_delete-worktree":`Delete a working tree`,"confirm_discard-changes":`Discard changes`,"confirm_rewrite-history":`Rewrite history`,confirm_push:`Push to a remote repository`,"confirm_publish-package":`Publish a package`,"confirm_change-package":`Change a published package`,"confirm_publish-image":`Publish an image`,confirm_github:`Change something on GitHub`,"confirm_remote-machine":`Connect to another machine`,"confirm_remote-copy":`Copy to or from another machine`,"confirm_send-data":`Send data to a server`,"confirm_write-disk":`Write to a disk`,confirm_cluster:`Change a cluster`,confirm_infrastructure:`Change infrastructure`,"confirm_system-services":`Change system services`,"confirm_yew-cli":`Run Yew Harness's command line`,confirm_credentials:`Touch credentials or Yew Harness's own data`,"confirm_write-credentials":`Write where credentials live`,confirm_admin:`Run as administrator`,"confirm_computer-control":`Act on the whole screen (click, type or press keys); asked every time`,"confirm_service-action":`Send, publish or delete something in a service you connected; asked every time`,alwaysActsAsYou:`With Always allow, no call of this tool in this session is asked about again, including sending, paying and deleting in the built-in browser with your sign-ins.`,"confirm_write-outside":`Change files outside the working folder`,"confirm_widen-permission":`Raise a session's permission mode`,"confirm_change-folder":`Change a session's working folder`,"confirm_open-letters":`Let a session receive letters directly`,"confirm_raise-quota":`Raise a letter quota`,"confirm_raise-budget":`Raise or remove a spending limit`,"confirm_grant-rights":`Give a session rights over cards or Yew Harness`,"confirm_change-main":`Change the main conversation`,"confirm_decision-log":`Change the file decisions are written to`,approve:`Allow`,approveAlways:`Always allow: {rules}`,quoted:`“{s}”`,enumSeparator:`, `,change_create_team:`Create the team {name}`,change_rename_team:`Rename the team {from} to {to}`,change_create_session:`Create the standing session {name}: {details}`,change_detail_model:`model {model}`,change_detail_folder:`folder {folder}`,change_detail_team:`team {team}`,change_detail_role:`role: {role}`,change_rename_session:`Rename {from} to {to}`,change_move_to_team:`Move {sessions} into the team {team}`,change_leave_team:`Take {sessions} out of their team`,change_set_role:`Set the role of {session} to: {role}`,change_set_model:`Switch {session} from {from} to {to}`,change_set_folder:`Move the working folder of {session} from {from} to {to}`,change_no_folder:`none (a chat)`,change_set_permission:`Change the permission mode of {session} from {from} to {to}`,change_set_receive:`Change how {session} receives letters from {from} to {to}`,change_set_letter_quota:`Change the letter quota of {session} from {from} to {to}`,change_set_daily_budget:`Change the daily spending limit of {session} from {from} to {to}`,change_set_daily_budget_all:`Change the daily spending limit for all sessions from {from} to {to}`,change_right_on:`Let {session} {right}`,change_right_off:`No longer let {session} {right}`,right_cards:`post cards in the approval center`,right_manage:`manage Yew Harness`,change_pin_on:`Pin {session}`,change_pin_off:`Unpin {session}`,change_archive_on:`Archive {session}`,change_archive_off:`Restore {session}`,change_set_main:`Make {to} the main conversation instead of {from}`,change_set_main_first:`Make {to} the main conversation`,change_clear_main:`Stop using {from} as the main conversation`,change_set_default_model:`New sessions use {to} instead of {from}`,change_set_decision_log:`Write decisions to {to}`,change_clear_decision_log:`Stop writing decisions to a file`,change_add_workspace:`Add the workspace {folder}`,change_remove_workspace:`Remove the workspace {folder}`,change_set_theme:`Set the theme to {to}`,change_set_language:`Set the interface language to {to}`,change_create_schedule:`Create the scheduled task {name}: {details}`,change_change_schedule:`Change the scheduled task {name}: {details}`,change_detail_cron:`times {cron}`,change_detail_to:`sent to {session}`,change_detail_letter:`letter “{message}”`,change_detail_run_mode:`runs with {mode}`,change_detail_run_mode_change:`its runs now use {mode}`,change_detail_rename:`renamed to {name}`,change_detail_catch_up_on:`missed runs run once`,change_detail_catch_up_off:`missed runs are skipped`,change_detail_on:`turned on`,change_detail_off:`turned off`,manage_organize:`Organize sessions and settings`,manage_configure:`Change session or Yew Harness settings`,notice_changed:`{by} changed this session: {changes}`,confirmDeny:`Decline`,rememberAs:`Allow automatically from now on: {rules}`,allFilesInFolder:`{tool} on every file in the workspace`,allowedTitle:`Always allowed`,allowedHelp:`When you choose “Always allow” on a permission request, that kind of operation is no longer asked about and is listed here; remove a line to be asked again. Operations that are confirmed every time, such as deleting or pushing, never get here.`,noAllowed:`Nothing is always allowed yet.`,removeAllowed:`Stop allowing: {rule}`,ruleRun:`Run {p}`,ruleWriteAll:`Write any file in the workspace`,ruleEditAll:`Edit any file in the workspace`,ruleFetch:`Fetch {p}`,ruleRead:`Read {p}`,ruleDeny:`Never: {rule}`,ruleAsk:`Ask first: {rule}`,deny:`Decline`,denyReason:`Reason (optional, passed to the model)`,decided_allow_once:`Allowed`,decided_allow_always:`Allowed and remembered`,decided_deny:`Declined`,cancelled:`Cancelled`,questionTitle:`A question for you`,otherAnswer:`Something else…`,pickSeveral:`Pick any`,clauseSeparator:`; `,moreQuestions:`{q} (and {n} more)`,answerPlaceholder:`Write your answer`,answer:`Answer`,answered:`Your answer: {a}`,notice_interrupted:`Stopped`,notice_budget_reached:`Stopped: today's spending reached {scope} daily limit (USD {spent} of {limit}). Continue gives it the same amount again for today, or raise the limit in settings.`,notice_budget_warning:`Today's spending passed 80% of {scope} daily limit (USD {spent} of {limit}).`,budgetScope_session:`this session's`,budgetScope_all:`the shared`,notice_error:`Error: {text}`,notice_model_changed:`Model changed: {text}`,notice_restarted:`Yew Harness restarted while this session was working, so it is marked for review. Check it, then choose Continue.`,notice_compacted:`Earlier messages were summarized`,notice_job_finished:`Background job {job} ({command}) ended{exit}.`,instructionsUpdated:`Instruction files updated`,summaryTitle:`Summary of earlier messages`,name:`Name`,kind:`Lifetime`,kind_standing:`Standing session`,kind_task:`Task session`,group:`Team`,noGroup:`No team`,responsibility:`Role`,responsibilityPlaceholder:`What this session is for and how it should work`,groupName:`Team name`,compactAt:`Compaction threshold (tokens)`,compactAtHelp:`Older messages are summarized when the context reaches this size. Empty uses the default: 80% of the model's limit, at most 200,000.`,providers:`Providers and keys`,about:`About Yew Harness`,theme:`Theme`,theme_system:`Match system`,theme_light:`Light`,theme_dark:`Dark`,language:`Language`,mascotMenu:`Yew in the interface`,mascot_on:`Show`,mascot_off:`Hide`,language_system:`Match system`,defaultModel:`Default model for new sessions`,region_cn:`Chinese providers`,region_global:`Other providers`,region_custom:`Custom`,keySaved:`Key saved`,noKey:`No key`,keyless:`No key needed`,testConnection:`Test`,testHint:`Sends one very short request with the stored key; it uses a few tokens`,testOk:`Works: first reply after {first}, done after {total} (tested with {model})`,testFailed:`Did not work ({model}): {error}`,latencyMs:`{n} ms`,latencySeconds:`{n} s`,setKey:`Add key`,replaceKey:`Replace key`,deleteKey:`Delete key`,deleteKeyBody:`Delete the API key for {name} from the system keychain? Sessions using it will not be able to reach the model.`,keyPlaceholder:`Paste the API key`,keyHelp:`Keys are stored only in the system keychain, never in the database or logs, and are not shown again.`,addProvider:`Add an OpenAI-compatible provider`,providerId:`ID`,baseUrl:`Base URL`,keyRequired:`Needs an API key`,modelId:`Model name`,contextWindow:`Context window`,maxOutput:`Max output`,deleteProvider:`Delete provider`,version:`Version {v}`,build:`Build {b}`,aboutBody:`An AI-native multi-agent workbench. Yew Harness organizes agent sessions the Session Engineering way: you deal only with the main conversation, and everything that needs your approval or decision comes to the approval center.
16
+
17
+ Sessions are organized in teams: a standing session owns an area for the long term, and a task session is opened for one job and reports when it is done. Sessions run in the Yew Harness service on your computer and keep working when the page is closed.`,publisher:`Publisher`,publisherName:`Tenon AI`,website:`Website`,privacy:`Privacy`,feedback:`Feedback`,required:`Required`,nameTaken:`Another session already has this name.`,pinned:`Pinned`,moreOptions:`More options`,folderRequired:`This session works in a workspace; choose one first.`,template_code:`Write code`,template_code_role:`Read and change code in the workspace, and run the project's checks and tests. Look at the existing code before changing it; afterwards, say what changed and how you checked it.`,template_docs:`Organize notes`,template_docs_role:`Read the material in the workspace and organize it into clearly structured documents as asked; when quoting, name the file it came from.`,template_chat:`Chat`,defaultModelHelp:`New sessions start with this provider and model; existing sessions keep theirs.`,deleteProviderBody:`Delete the custom provider {name}? Its settings and its API key in the keychain are removed, and sessions using it will not be able to reach the model.`,err_network:`Cannot reach the Yew Harness service. Check that yew serve is still running, then try again.`,err_signin:`Your sign-in has expired. Run yew open in a terminal and use the new link.`,err_notFound:`This no longer exists; it may have been deleted. Refresh and try again.`,err_internal:`Something went wrong inside Yew Harness. Try again; if it keeps failing, send us the request ID and the output in the yew serve terminal.`,err_invalid:`Something in the request is not valid. Check it and submit again.`,err_field_name:`The name cannot be empty, can have at most 60 characters, and cannot contain @ or control characters.`,err_field_cwd:`A workspace must be an existing folder; its path may start with ~/.`,err_field_workspaces:`A workspace needs a name and an existing folder that is not already saved as another workspace.`,err_noPicker:`This computer cannot open a folder picker. Type the folder's path instead.`,err_pickerFailed:`The folder picker did not open. Type the folder's path instead.`,err_field_text:`The message cannot be empty or longer than 100,000 characters.`,err_field_decision:`Operations like this need confirmation every time; they can only be allowed once.`,err_field_answer:`The answer cannot be empty.`,err_field_options:`The compaction threshold must be a whole number of at least 10,000, or empty.`,err_field_key:`The key cannot be empty.`,err_field_id:`The ID may use lowercase letters, digits and dashes, up to 40, and cannot match a built-in provider.`,err_field_baseUrl:`The base URL must start with http:// or https://.`,err_field_models:`Fill in the model name, the context window (at least 1,000) and the max output (no larger than the context window).`,err_field_rules:`Every rule needs an effect and a tool.`,err_field_model:`This provider or model does not exist.`,err_missingKey:`There is no API key for {provider}. Add one in Settings → Providers and keys, or run yew key set {provider} in a terminal.`,err_sessionBusy:`The session is working. Try again when it stops.`,err_sessionArchived:`This session is archived. Restore it first.`,err_scheduleBusy:`The last run is not finished yet, so nothing was sent.`,err_field_cron:`The cron expression is not valid, or the date does not exist.`,err_field_session:`Choose a standing session that is not archived.`,err_field_message:`Write the letter, up to 20,000 characters.`,err_nothingToContinue:`There is nothing in this session to continue yet.`,err_alreadyAnswered:`This request was already answered or withdrawn.`,err_alreadyDelivered:`This message was already delivered or withdrawn.`,err_unknown:`That did not work. Try again; if it keeps failing, send us the request ID.`,notice_error_model:`The model request failed: {text}`,notice_error_internal:`Something went wrong inside Yew Harness; the yew serve terminal has the details.`,notice_compact_failed:`Could not compact the context: {text}`,notice_step_limit:`This turn has taken {n} steps, so Yew Harness stopped. The work is not finished; choose Continue to go on.`,notice_output_cut:`The reply was cut off at the model's output limit several times in a row, so Yew Harness stopped. Choose Continue to go on.`,jobExit:` with exit code {code}`,jumpToNew:`Jump to new messages`,decidedWithReason:`{decision}: {reason}`,infoAbout:`About {label}`,unsavedChanges:`Unsaved changes`,copyRequestId:`Copy request ID`,lockupName:`Yew Harness, by Tenon AI`,privacyPolicy:`Privacy Policy`,terms:`Terms of Service`,docVersion:`Version {v} · effective {date}`,policyDate:T.en.date,privacyPolicyBody:T.en.privacy.join(`
18
+
19
+ `),termsBody:T.en.terms.join(`
20
+
21
+ `),mainConversation:`Main conversation`,approvalCenter:`Approval center`,approvalCount:`{n} waiting for you`,setMain:`Make main conversation`,unsetMain:`Unset main conversation`,openedBy:`Opened by {name}`,outcome_done:`Done`,outcome_given_up:`Given up`,outcome_failed:`Failed`,interventions:`You stepped in {n} times`,tabPending:`Waiting`,tabDecided:`History`,tabLetters:`Letters`,decisionsEmpty:`No decisions yet.`,waitingApprovals:`Waiting for your permission`,waitingQuestions:`Questions for you`,decisionsToMake:`Decisions for you`,heldLetters:`Letters to release`,centerEmpty:`Nothing is waiting for you.`,companion_morning:`Good morning`,companion_afternoon:`Good afternoon`,companion_evening:`Good evening`,companion_greet:`{greeting}! {line}`,companion_waiting:`{n} things are waiting for you`,companion_waiting_one:`1 thing is waiting for you`,companion_error:`{n} sessions ran into errors`,companion_error_named:`{name} ran into an error`,companion_review:`{n} sessions are done and wait for your review`,companion_review_named:`{name} is done and waits for your review`,companion_working:`{n} sessions are working`,companion_working_named:`{name} is working`,companion_clear:`Nothing is waiting for you`,companion_night:`Nothing is waiting for you. Get some rest`,boot_server:`Connecting to Yew Harness on this computer`,boot_serverDone:`Connected to Yew Harness {version}`,boot_settings:`Reading settings`,boot_settingsDone:`Settings read`,boot_sessions:`Reading sessions`,boot_sessionsDone:`{n} sessions read`,boot_center:`Reading the approval center`,boot_centerWaiting:`{n} things are waiting for you`,boot_centerClear:`Nothing is waiting for you`,boot_skip:`Click or press any key to skip`,cardFrom:`From {name}`,cardPostedBy:`Posted by {name}`,cardDeadline:`Due {d}`,recommended:`Recommended`,cardOptions:`Options`,cardVia:`via {name}`,cardAlsoInvolves:`also {names}`,undoable:`Can be undone`,notUndoable:`Can't be undone`,cardNote:`Note`,notePlaceholder:`Add a note (optional)`,answerRequired:`Write your answer`,byYou:`By you`,decidedChoice:`Chose: {c}`,noteOnly:`Note only`,release:`Release`,refuse:`Refuse`,letterKind_notice:`Notice`,letterKind_request:`Request`,letterKind_decision:`Decision`,letterKind_report:`Report`,letterStatus_queued:`Queued`,letterStatus_held:`Held`,letterStatus_delivered:`Delivered`,letterStatus_done:`Done`,letterStatus_refused:`Refused`,letterStatus_dropped:`Dropped`,letterReason_quota:`Out of letters`,letterReason_rate:`Too many to one session in a minute`,letterReason_burst:`Too many in one minute`,letterReason_duplicate:`Same as one just sent`,"letterReason_pair-limit":`Too many to one session in a short time`,letterReason_hops:`The chain of hand-offs is too long`,letterReason_loop:`Going in circles between sessions`,"letterReason_refuse-policy":`The recipient refuses letters`,"letterReason_hold-policy":`The recipient holds letters until you release them`,"letterReason_lower-rank":`The sender has fewer permissions than the recipient; release it if it is fine`,"letterReason_person-refused":`You refused it`,letterReason_archived:`The recipient was archived`,fromCli:`Command line`,sentByYew:`Sent by Yew Harness`,letterTo:`{from} → {to}`,lettersEmpty:`No letters yet.`,fromSchedule:`Scheduled task {name}`,artifacts:`Artifacts`,artifactsCount:`{n}`,artifactsEmpty:`No artifacts yet. Documents, pages, data and charts that sessions save as artifacts show up here.`,artifactKind_markdown:`Document`,artifactKind_html:`Page`,artifactKind_json:`Data`,artifactKind_chart:`Chart`,artifactVersion:`Version`,artifactVersionN:`Version {n}`,artifactUnreadable:`This version cannot be read.`,artifactDeleteTitle:`Delete “{name}”?`,artifactDeleteBody:`Every version of this artifact is deleted and cannot be brought back.`,chartData:`Data table`,download:`Download`,usageToday:`Spent today`,usageOfLimit:`of the USD {limit} daily limit`,usageLeft:`USD {n} left`,usageOver:`USD {n} over`,usageNoLimit:`No daily limit is set`,usageChart:`Cost per day for the last {n} days, in US dollars`,usageBar:`{day}, USD {n}`,usageLimitLine:`Daily limit`,usageSession:`Session`,usageCost:`Cost (USD)`,usageInput:`Input tokens`,usageOutput:`Output tokens`,usageCacheRead:`Cache read`,usageTotal:`Total`,usageDayEmpty:`No session used a model on this day.`,map:`Sessions map`,mapEmpty:`No sessions yet.`,mapPicture:`Picture of the sessions map`,mapCaption:`Solid lines: the session above opened the one below. Thin lines with an arrow: letters of the last 24 hours, from the sender to the receiver, with the count when there is more than one. Point at a session or focus it to bring out its own letters.`,mapCapped:`Letters are drawn for the {n} busiest pairs only; the other {m} are in the list below.`,mapColumn_main:`Opened by the main conversation`,mapColumn_none:`No team`,mapOutline:`As a list`,mapOutlineSessions:`Sessions and the sessions they opened`,mapOutlineLetters:`Letters of the last 24 hours`,mapFlow:`{from} → {to}: {n}`,mapNoLetters:`No letters between sessions in the last 24 hours.`,progressWaiting_permission:`Waiting for your permission`,progressWaiting_question:`Waiting for your answer`,progressWaiting_decision:`Waiting for your decision`,progressWaitingMany:`{n} things are waiting for you`,progressStarted:`Started at {time}`,progressSince:`Waiting since {time}`,progressSpent:`{t} so far`,progressRetrying:`The model request failed; trying again in {s} s (retry {n} of {of})`,progressWaited:`{t} so far`,elapsed_s:`{s}s`,elapsed_ms:`{m}m {s}s`,elapsed_hm:`{h}h {m}m`,waitedNow:`Just arrived`,waitedMinutes:`Waiting {n} min`,waitedHours:`Waiting {n} h`,waitedDays:`Waiting {n} d`,today:`Today`,schedules:`Scheduled tasks`,schedulesCount:`{n}`,schedulesIntro:`A scheduled task sends a standing session a letter at set times. The session works as usual, and its last reply goes to the main conversation as the report. Nobody watches these runs: operations that would ask you are refused, and the report lists them.`,schedulesEmpty:`No scheduled tasks yet.`,newSchedule:`New scheduled task`,editSchedule:`Edit scheduled task`,scheduleName:`Name`,scheduleWhen:`Time`,scheduleCronLabel:`Cron expression`,scheduleCronHint:`Five fields: minute, hour, day of the month, month, day of the week, in this computer's time zone`,scheduleNextRuns:`Next: {times}`,scheduleNoRun:`This date does not exist, so it never runs`,cronFields:`Write five fields: minute, hour, day of the month, month, day of the week`,cronField:`The {field} “{part}” is not valid`,cronField_0:`minute`,cronField_1:`hour`,cronField_2:`day of the month`,cronField_3:`month`,cronField_4:`day of the week`,preset_daily:`Every day at 9:00`,preset_weekdays:`Weekdays at 9:00`,preset_weekly:`Mondays at 9:00`,preset_monthly:`The 1st of each month at 9:00`,preset_hourly:`Every hour, on the hour`,preset_custom:`Custom`,scheduleSession:`Send to`,scheduleSessionHint:`A standing session; the task belongs to its team`,scheduleNoSessions:`There are no standing sessions yet. Create one first.`,scheduleMessage:`Letter`,scheduleMessagePlaceholder:`What to do each time, for example: sum up this week's progress across the sessions as a weekly report.`,schedulePermission:`Permission mode for its runs`,schedulePermission_session:`The session's own ({mode})`,scheduleModeSession:`the session's own`,scheduleTeam:`Team: {team}`,scheduleCatchUp:`When missed`,scheduleCatchUpHint:`Times missed while Yew Harness was not running or the computer slept`,scheduleCatchUp_yes:`Run once`,scheduleCatchUp_no:`Skip`,scheduleRunNow:`Run now`,scheduleDelete:`Delete scheduled task`,scheduleDeleteBody:`{name} will not run again. The letters and reports it sent stay.`,scheduleNext:`Next {time}`,scheduleOff:`Off`,scheduleNeverRan:`Has not run yet`,scheduleLast:`Last {time} · {status}`,scheduleResult:`{status}: {detail}`,scheduleNameTaken:`There is already a scheduled task with this name.`,scheduleStatus_running:`Running`,scheduleStatus_done:`Done`,scheduleStatus_error:`Error`,scheduleStatus_stopped:`Stopped by you`,scheduleStatus_skipped:`Skipped`,scheduleSkip_busy:`the last run was not finished`,scheduleSkip_archived:`the session is archived`,scheduleSkip_missed:`missed; set to skip`,loadMore:`Load more`,decisionHeading:`Decision #{n}`,verifiedDecision:`Checked by Yew Harness: #{n} is your decision`,codeBlock:`Code`,act_send_letter:`Wrote to`,act_send_letter_ing:`Waiting for a reply from`,act_list_sessions:`Listed sessions`,act_list_sessions_ing:`Listing sessions`,act_check_decision:`Checked decision`,act_check_decision_ing:`Checking decision`,act_open_session:`Opened`,act_open_session_ing:`Waiting for`,act_delegate:`A helper looked into`,act_delegate_ing:`A helper is looking into`,act_finish_task:`Recorded the result`,act_finish_task_ing:`Recording the result`,act_post_card:`Posted to the approval center`,act_post_card_ing:`Posting to the approval center`,act_update_card:`Updated card`,act_update_card_ing:`Updating card`,act_withdraw_card:`Withdrew card`,act_withdraw_card_ing:`Withdrawing card`,act_manage_yew:`Changed settings`,act_manage_yew_ing:`Changing settings`,act_list_cards:`Listed cards`,act_list_cards_ing:`Listing cards`,sum_letter:`Wrote {n} letters`,sum_letter_one:`Wrote 1 letter`,sum_session:`Opened {n} sessions`,sum_session_one:`Opened 1 session`,sum_card:`Changed the approval center {n} times`,sum_card_one:`Changed the approval center once`,sum_helper:`Sent {n} helpers`,sum_helper_one:`Sent a helper`,lettersSection:`Letters`,contextSection:`Context`,compactAtHint:`Empty: 80% of the model's limit, at most 200,000`,automatic:`Auto`,receive:`Incoming letters`,receive_accept:`Accept`,receive_accept_hint:`Letters from other sessions arrive right away`,receive_hold:`Hold`,receive_hold_hint:`They wait in the approval center until you release them`,receive_refuse:`Refuse`,receive_refuse_hint:`Letters from other sessions are turned away`,letterQuota:`Letter quota`,letterQuotaHelp:`Each time you message this session or make a decision for it, it may send up to this many letters. Leave it empty for the default: 30 for the main conversation, 10 for others.`,lettersLeft:`{n} left until your next message`,budgetSection:`Spending`,dailyBudget:`Daily spending limit (USD)`,dailyBudgetHelp:`The most this session may spend in a day, estimated from the provider's prices; a day is a calendar day on this computer. Yew Harness tells you at 80% and stops the session at the limit. Continue gives it the same amount again for the day, or raise the limit. Leave empty for no limit. Models without a price are not counted.`,memoryDirs:`Memory folders`,memoryDirsHelp:`Folders where you keep notes across sessions, one per line. Sessions can read these folders directly, and each folder's index (index.md, MEMORY.md or README.md) is given to them with your instructions; writing there still asks you.`,memoryDirsPlaceholder:`For example ~/memory`,dailyBudgetAll:`Daily spending limit for all sessions (USD)`,dailyBudgetAllHelp:`The most all sessions together may spend in a day, estimated from the providers' prices. At the limit, working sessions stop before their next model request. Leave empty for no limit.`,spentToday:`USD {n} spent today`,budgetNone:`none`,canPostCards:`Can put cards in the approval center`,canPostCardsHint:`The main conversation always can; other sessions go through it by default.`,dataMenu:`Data…`,dataTitle:`Data`,dataStorage:`Storage`,dataFolder:`Data folder`,dataTotal:`Total`,dataReadAt:`Read at {time}`,dataPart_database:`Sessions, letters and settings`,dataPart_artifacts:`Artifacts`,dataPart_logs:`Logs`,dataPart_temp:`Temporary files`,dataPart_other:`Other`,dataExport:`Export`,dataExportLabel:`Export all data`,dataExportHint:`Each session is written as Markdown; letters, decision cards, scheduled tasks and settings as JSON; and every version of every artifact as a file, the same as yew export. Choose a new or empty folder. API keys, paired phones and sign-in tokens are not exported.`,dataExportButton:`Choose a folder and export…`,dataExportFolder:`Folder to export to`,dataExportTyped:`Export`,dataExportDone:`Exported to {folder}: {sessions} sessions, {letters} letters, {cards} decision cards, {schedules} scheduled tasks and {artifacts} artifacts, in {files} files.`,dataTemp:`Temporary files`,dataTempLabel:`Over-long command output`,dataTempHint:`When a command prints more than 50 KB, the full output is saved to a file for the session to read. Files now: {n}, {size} in all.`,dataTempNone:`When a command prints more than 50 KB, the full output is saved to a file for the session to read. There are no such files now.`,dataTempKept:`Kept in a cleanup because their session has a running command: {n}.`,dataCleanButton:`Clean up…`,dataCleanTitle:`Clean up temporary files`,dataCleanBody:`Files to delete: {n}, freeing {size}. They hold over-long command output. This cannot be undone. Sessions can no longer read the full output of those commands; the last part shown in the conversation stays.`,dataCleanBodyKept:`Files kept because their session has a running command: {n}.`,dataCleanConfirm:`Delete {n} for good`,dataCleanDone:`Files deleted: {n}. Freed {size}.`,dataCleanSkipped:`Files kept: {n}.`,dataArchived:`Archived sessions`,deleteArchivedLabel:`Delete all archived sessions for good`,deleteArchivedHint:`With their conversations, tool calls and the letters they received. It cannot be undone. They are listed before anything is deleted.`,deleteArchivedButton:`Delete…`,err_field_folder:`Export needs an existing empty folder. Choose a new or empty one.`,err_tempOutside:`The tmp folder in the data folder is a link to somewhere else. Yew Harness does not delete through it.`,err_noExport:`Yew Harness was restarted and no longer knows which folder the last export went to.`,deleteArchivedTitle:`Delete all archived sessions`,deleteArchivedBody:`This permanently deletes {n} archived sessions with their conversations, tool calls and the letters sent to them. It cannot be undone. Letters they sent and decisions they asked for stay.`,deleteArchivedConfirm:`Delete {n} for good`,noArchived:`There are no archived sessions.`,andMore:` and {n} more`,canOrganize:`Can manage Yew Harness`,canOrganizeHint:`Changes sessions, teams and Yew Harness's settings like the main conversation; widening a session still needs your confirmation`,chosenMark:` (your choice)`,decisionLog:`Approval log file`,decisionLogHelp:`Yew Harness adds a line to the end of this Markdown file for each decision and leaves the rest alone. Leave it empty to turn this off.`,decisionLogPlaceholder:`e.g. ~/notes/decisions.md`,modelProviders:`Model providers`,searchServices:`Search services`,searchHelp:`Sessions can search the web once a key is saved; when several have a key, the first in this list is used. A search sends only the query to that service.`,searchName_bocha:`Bocha`,searchName_tavily:`Tavily`,searchName_brave:`Brave Search`,search_cn:`Run by a company in China`,search_global:`Run by a company outside China; your queries are sent to that company`,searchInUse:`In use`,deleteSearchKeyBody:`Delete the key for {name} from the system keychain? Without a key for another service, sessions can no longer search the web.`,mcpMenu:`MCP servers…`,mcpTitle:`MCP servers`,mcpHelp:`MCP servers give sessions more tools. They are kept in mcp.json in Yew Harness's data folder; a session asks you before it first uses a server's tools. A server added as a command is a program run on this computer, so add only ones you trust.`,mcpBuiltin:`Set up by Yew Harness`,mcpBuiltin_browser:`Browser`,mcpBuiltinHelp_browser:`Sessions can open pages, click and fill in forms. It opens a Chrome window of its own; sites you sign in to there stay signed in, kept in Yew Harness's data folder and apart from the Chrome you use. Provided by Microsoft's Playwright MCP, installed from npm into Yew Harness's data folder the first time it is used. Its clicks and typing can be set to Always allow, for the current session only.`,mcpBuiltin_computer:`Computer control`,mcpBuiltinHelp_computer:`Sessions can take screenshots, move the mouse and type, so they can use any program on this computer. The first time, macOS asks you to give the program that runs Yew Harness the Screen Recording and Accessibility permissions. Provided by the open-source computer-use-mcp, installed from npm into Yew Harness's data folder the first time it is used. It can get past Yew Harness's other permission rules, so every click, keystroke and typed text is confirmed by you; Always allow is not offered.`,mcpAdded:`Added servers`,mcpPresets:`Common servers`,mcpPresetsInfo:`Official servers that work with a token; each was connected before it went in this list. Once added, it is kept in mcp.json like one you add by hand.`,mcpPresetAddTitle:`Add {name}`,mcpPresetToken:`Token`,mcpPresetTokenOptional:`Token (optional; without one, calls are limited)`,mcpPresetWhere:`Make a token at {publisher}`,mcpPresetStored:`Saved to mcp.json in Yew Harness's data folder and not shown here again.`,mcpPresetRemote:`A remote server run by {publisher} ({host}): what a session passes to its tools goes to {publisher}.`,mcpPresetLocal:`The first time it is used, Yew Harness installs {pkg} from npm into its data folder as the lock file that ships with Yew Harness says (without install scripts), and runs it on this computer.`,mcpPreset_github:`Repositories, issues, pull requests, Actions and releases.`,mcpPreset_gitee:`Repositories, issues, pull requests and releases on Gitee.`,mcpPreset_context7:`Up-to-date documentation and code examples for open-source libraries.`,mcpPreset_notion:`Read and write pages and databases in Notion.`,mcpPreset_sentry:`Errors, releases and projects in Sentry.`,mcpPreset_gmail:`Search and read mail, manage labels, write drafts. Google's server cannot send mail.`,"mcpPreset_google-calendar":`Read calendars and events, and find free time.`,"mcpPreset_google-drive":`Search, read and download files in Drive, and create files.`,mcpPreset_linear:`Issues, projects and cycles in Linear.`,mcpPreset_vercel:`Projects, deployments and logs on Vercel.`,mcpPresetSignIn:`After adding it, choose Sign in in the list above, sign in to {publisher} in the browser and allow Yew Harness access. The sign-in is kept in the system keychain.`,mcpGoogleStep1:`Join the Google Workspace Developer Preview Program: these Google MCP servers are still in preview.`,mcpGoogleStep2:`Create a project in Google Cloud and turn on {apis}.`,mcpGoogleStep3:`In Google Auth Platform, set up the consent screen: choose External as the audience, add yourself as a test user, and add these scopes under Data Access:`,mcpGoogleStep4:`Create an OAuth client of the type Web application, tick "Use this client for an AI-powered agent", and add this authorized redirect URI:`,mcpGoogleStep5:`Enter the client ID and secret below; once it is added, choose Sign in in the list.`,mcpGoogleGuide:`Google's setup guide`,mcpGoogleShared:`One client can serve Gmail, Calendar and Drive.`,mcpClientId:`Client ID`,mcpClientSecret:`Client secret`,mcpClientStored:`Saved to mcp.json in Yew Harness's data folder and not shown here again.`,mcpSignIn:`Sign in`,mcpSignInAt:`The sign-in page is at {host}`,mcpSignOut:`Sign out`,"mcpState_sign-in":`Needs sign-in`,mcpNone:`No MCP servers yet.`,mcpAdd:`Add server`,mcpName:`Name`,mcpNameHint:`Letters, digits, - and _, up to 32; it appears in the tool names`,mcpKind:`Connection`,mcpKind_stdio:`Run a command`,mcpKind_stdio_hint:`Yew Harness starts this program on this computer`,mcpKind_http:`Connect to a URL`,mcpKind_http_hint:`The server already runs elsewhere and is reached over HTTP`,mcpCommand:`Command`,mcpPackage:`npm package`,mcpArgs:`Arguments`,mcpArgsHint:`One per line`,mcpEnv:`Environment variables`,mcpEnvHelp:`Values may be secrets: once saved they are written to mcp.json and not shown here again, only the variable names.`,mcpHeaders:`Headers`,mcpHeadersHelp:`Values may be secrets: once saved they are written to mcp.json and not shown here again, only the names.`,mcpUrl:`URL`,mcpPairName:`Name`,mcpPairValue:`Value`,mcpAddEnv:`Add variable`,mcpAddHeader:`Add header`,mcpRemovePair:`Remove this line`,mcpEnabled:`Enabled`,mcpDetails:`Details`,mcpRemove:`Remove`,mcpRemoveTitle:`Remove “{name}”?`,mcpRemoveBody:`It is deleted from mcp.json and stopped at once; sessions can no longer use its tools. To use it again you add it again.`,mcpState_ready:`Connected · {n} tools`,mcpState_connecting:`Connecting…`,mcpState_error:`Not connected`,mcpState_disabled:`Disabled`,mcpTools:`Tools`,mcpNoTools:`This server offers no tools.`,mcpReenter:`Re-enter`,mcpNewValue:`New value for {name}`,mcpNoValues:`None`,err_mcpExists:`mcp.json already has a server with this name. Choose another name.`,err_mcpUnreadable:`mcp.json is not valid JSON, so Yew Harness did not change it. Correct the file by hand first.`,err_field_server:`The name uses letters, digits, - and _, up to 32; up to 50 servers.`,err_field_command:`Give either a command or a URL; the command must be one line.`,err_field_url:`The URL must start with http:// or https://; put credentials in a header, not in the URL.`,err_field_args:`Up to 100 arguments.`,err_field_env:`Variable names use letters, digits and underscores and do not start with a digit; a value is one line.`,err_field_headers:`Header names have no spaces or colons; a value is one line.`,skillsMenu:`Skills…`,skillsTitle:`Skills`,skillsHelp:`A skill is a folder with a SKILL.md that says how to do one kind of task; a session reads it when a task matches. Yew Harness reads skills from {global}, and from .agents/skills, .claude/skills and .yew/skills in your saved workspaces. Here you can only turn a skill off or on; edit its content in its folder.`,skillsGlobal:`Global`,skillsNone:`No skills yet. Put a skill's folder in {folder} and it is listed here.`,skillNoDescription:`No description`,skillRevealFinder:`Show in Finder`,skillRevealFiles:`Show in file manager`,skillUnread:`Not read`,"skillProblem_no-file":`The folder has no SKILL.md.`,skillProblem_unreadable:`SKILL.md cannot be read. Check the file's permissions.`,"skillProblem_bad-name":`A name may use letters, digits, dots, - and _, up to 64; change name in SKILL.md.`,err_revealFailed:`The folder could not be opened.`,relayChange:`Change`,relayTitle:`Relay address`,relayHelp:`Phones reach this computer through this address. You can use a relay you run yourself; the address starts with wss://.`,relayRepair:`Paired phones remember the relay address they were paired with. After a change they must scan a new code to connect.`,relayRestore:`Restore default`,err_field_remote:`The relay address must start with wss://; ws:// works only for this computer and addresses on your local network.`,notifyTitle:`What to notify about`,notifyHelp:`A kind that is off notifies no phone. Whether one phone gets notifications at all is its own switch above.`,notify_waiting:`Things waiting for you`,notify_waiting_hint:`Permissions, questions, decision cards and held letters`,notify_error:`A session stopped with an error`,notify_error_hint:`Also sessions marked for review after Yew Harness restarted`,notify_task:`A task finished`,notify_task_hint:`When a task session or a scheduled task ends`,notify_budget:`Spending reached a limit`,notify_budget_hint:`At 80% of a daily limit and at the limit`,defaultPermission:`Default permission mode for new sessions`,defaultPermissionHelp:`New sessions start with this mode; you can change it in the session. A session opened by another session never gets more than that session has. Existing sessions are not affected.`,defaultWorkspace:`Default workspace for new sessions`,defaultWorkspaceHelp:`Preselected on the home page and in the new session dialog; you can change it before you start.`,defaultWorkspaceNone:`None`,systemMenu:`Startup…`,systemTitle:`Startup`,startAtLogin:`Start Yew Harness at login`,startAtLoginHint:`Starts Yew Harness in the background after you log in to this computer, so your phone and scheduled tasks work without a terminal open. Takes effect at the next login; the Yew Harness running now is not affected.`,startAtLoginUnsupported:`Works on macOS and Linux only.`,launcher:`Yew Harness icon in Applications`,launcherHint:`Clicking it starts Yew Harness and opens the interface. After you move or update Node.js or Yew Harness, turn this off and on again.`,launcherUnsupported:`Works on macOS only.`,writtenTo:`Written to {path}`,err_notOnThisSystem:`This computer's system does not support this.`,err_serviceFailed:`The system did not accept the login item. Run yew service install in a terminal to see why.`}},ne=`zh`,re=new Set;function ie(){return navigator.language.toLowerCase().startsWith(`zh`)?`zh`:`en`}function ae(e){if(e!==ne){ne=e,document.documentElement.lang=e===`zh`?`zh-CN`:`en`;for(let e of re)e()}}function oe(){return ne}function se(e){return Object.hasOwn(E,e)}function D(e,t={}){return(te[ne][e]??e).replace(/\{(\w+)\}/g,(e,n)=>String(t[n]??``))}function O(){return(0,v.useSyncExternalStore)(e=>(re.add(e),()=>re.delete(e)),()=>ne)}function ce(e){return new Intl.NumberFormat(ne===`zh`?`zh-CN`:`en-US`).format(e)}function le(e){let t=[`B`,`KB`,`MB`,`GB`,`TB`],n=Math.max(0,e),r=0;for(;n>=999.5&&r<t.length-1;)n/=1e3,r+=1;let i=+(r>0&&n<9.95);return`${new Intl.NumberFormat(ne===`zh`?`zh-CN`:`en-US`,{minimumFractionDigits:i,maximumFractionDigits:i}).format(n)} ${t[r]}`}function ue(e){return e<.01&&e>0?`<0.01`:e.toFixed(2)}function de(e){return new Intl.DateTimeFormat(ne===`zh`?`zh-CN`:`en-US`,{month:ne===`zh`?`long`:`short`,day:`numeric`,weekday:`short`,hour:`2-digit`,minute:`2-digit`,hourCycle:`h23`}).format(e)}function fe(e,t){let n=Math.floor((t-e)/6e4);if(n<1)return D(`justNow`);if(n<60)return D(`minutesAgo`,{n});let r=Math.floor(n/60);if(r<24)return D(`hoursAgo`,{n:r});let i=Math.floor(r/24);return i<7?D(`daysAgo`,{n:i}):new Intl.DateTimeFormat(ne===`zh`?`zh-CN`:`en-US`,{month:`short`,day:`numeric`}).format(e)}function pe(e,t){let n=Math.floor((t-e)/6e4);if(n<1)return D(`waitedNow`);if(n<60)return D(`waitedMinutes`,{n});let r=Math.floor(n/60);return r<24?D(`waitedHours`,{n:r}):D(`waitedDays`,{n:Math.floor(r/24)})}function me(e){let t=Math.max(0,Math.floor(e/1e3)),n=e=>String(e).padStart(2,`0`),[r,i,a]=[Math.floor(t/3600),Math.floor(t%3600/60),t%60];return r>0?D(`elapsed_hm`,{h:r,m:n(i)}):i>0?D(`elapsed_ms`,{m:i,s:n(a)}):D(`elapsed_s`,{s:a})}function he(e){return new Intl.DateTimeFormat(ne===`zh`?`zh-CN`:`en-US`,{hour:`2-digit`,minute:`2-digit`,hourCycle:`h23`}).format(e)}var ge=`yew.mascot`,_e=[`waiting`,`error`,`task`,`budget`];function ve(e){return Object.keys(e.approvals).length+Object.keys(e.cards).length+Object.keys(e.held).length}var ye=`yew.sidebar`;function be(){try{return localStorage.getItem(ye)===`collapsed`}catch{return!1}}function xe(e){M({sidebarCollapsed:e});try{e?localStorage.setItem(ye,`collapsed`):localStorage.removeItem(ye)}catch{}}var k={phase:`loading`,booted:!1,failure:null,connection:`open`,health:null,settings:null,groups:[],sessions:{},providers:[],models:{},selectedId:null,transcript:null,showArchived:!1,hasArchived:!1,settingsDialog:null,phones:null,homeFolder:null,sidebarCollapsed:be(),drawerOpen:!1,center:{approvals:{},cards:{},held:{}},letters:{items:[],nextCursor:null,loaded:!1},decisions:{items:[],nextCursor:null,loaded:!1},page:null,centerTab:`pending`,schedules:null,artifacts:null,artifactId:null,teamFilter:null,prefill:{},letterTick:0},A=new Set;function j(){return k}function M(e){let t=typeof e==`function`?e(k):e;k={...k,...t};for(let e of A)e()}function Se(e,t){M(n=>{let r=n.transcript;return!r||r.sessionId!==e?{}:{transcript:{...r,...t(r)}}})}function N(e){return(0,v.useSyncExternalStore)(e=>(A.add(e),()=>A.delete(e)),()=>e(k))}function Ce(e,t){let n=e.findIndex(e=>e.id===t.id);if(n>=0){let r=e.slice();return r[n]=t,r}let r=e.at(-1);return!r||r.seq<t.seq?[...e,t]:[...e,t].sort((e,t)=>e.seq-t.seq)}var we=`yew.lastSession`;function Te(e,t){try{t===null?localStorage.removeItem(e):localStorage.setItem(e,t)}catch{}}function Ee(e){try{return localStorage.getItem(e)}catch{return null}}var De=`yew.view`,Oe=[`pending`,`decided`,`letters`];function ke(e){try{sessionStorage.setItem(De,e)}catch{}}function Ae(){try{return sessionStorage.getItem(De)}catch{return null}}var je=window.matchMedia(`(prefers-color-scheme: dark)`);function Me(e){let t=e?.theme??`system`,n=t===`dark`||t===`system`&&je.matches;document.documentElement.dataset.theme=n?`dark`:`light`;let r=e?.language??`system`;if(ae(r===`system`?ie():r),e)try{e.mascot===!1?localStorage.setItem(ge,`off`):localStorage.removeItem(ge)}catch{}}je.addEventListener(`change`,()=>Me(j().settings));async function Ne(){let e=/[#&]t=([\w-]+)/.exec(window.location.hash);if(e?.[1]){history.replaceState(null,``,window.location.pathname+window.location.search);try{await x(`POST`,`/api/auth/exchange`,{token:e[1]})}catch(e){if(!(e instanceof b)||e.status!==401)throw e}}}async function Pe(){Me(null);try{await Ne();let e=await x(`GET`,`/api/health`);M({health:{version:e.version,build:e.build??null}});let t=await x(`GET`,`/api/settings`);M({settings:t}),Me(t);let[n,r,i,a]=await Promise.all([w(`/api/groups`),w(`/api/sessions`),w(`/api/providers`),x(`GET`,`/api/sessions?archived=true&limit=1`)]);M({phase:`ready`,groups:n,sessions:Object.fromEntries(r.map(e=>[e.id,e])),providers:i,hasArchived:a.items.length>0}),await ft(),M({booted:!0});let o=Ae(),s=o?.startsWith(`center:`)?o.slice(7):null,c=o?.startsWith(`session:`)?o.slice(8):null,l=t.mainSessionId,u=Ee(we);s&&Oe.includes(s)?(Le(null,null),pt(s)):o===`schedules`?(Le(null,null),mt()):o===`artifacts`?(Le(null,null),ht()):o===`usage`?(Le(null,null),gt()):o===`map`?(Le(null,null),_t()):c&&j().sessions[c]?await qe(c):o===`home`?Le(null,null):l&&j().sessions[l]?await qe(l):u&&j().sessions[u]?await qe(u):Le(null,null)}catch(e){e instanceof b&&e.status===401?M({phase:`signin`}):M({phase:`failed`,failure:e.message})}}var Fe=null,Ie=!1;function Le(e,t){Fe?.close();let n=new URLSearchParams;e&&n.set(`session`,e),t!==null&&n.set(`after`,String(t));let r=new EventSource(`/api/events?${n}`);Fe=r,Ie=!1,r.addEventListener(`open`,()=>M({connection:`open`})),r.addEventListener(`error`,()=>{Fe===r&&(M({connection:`connecting`}),r.readyState===EventSource.CLOSED&&Re())}),r.addEventListener(`hello`,()=>{Ie&&(Ue(),ft(),M(e=>({letterTick:e.letterTick+1})),j().schedules&&Et(),j().artifacts&&St()),Ie=!0}),r.addEventListener(`reset`,()=>{Fe===r&&(Ue(),ft(),M(e=>({letterTick:e.letterTick+1})),e&&Ge(e))}),r.addEventListener(`global`,e=>{Ve(JSON.parse(e.data))}),e&&(r.addEventListener(`session`,t=>{He(e,JSON.parse(t.data))}),r.addEventListener(`live`,t=>{let n=JSON.parse(t.data);Se(e,e=>{if(n.type===`draft`)return{draft:n.draft,retry:null};if(n.type===`draftCleared`)return{draft:null,retry:null};if(n.type===`retrying`){let{type:e,...t}=n;return{draft:null,retry:t}}return{outputs:{...e.outputs,[n.toolCallId]:n.output}}})}))}async function Re(){try{await x(`GET`,`/api/settings`);let e=j().selectedId;e?await qe(e):Le(null,null)}catch(e){e instanceof b&&e.status===401?M({phase:`signin`}):setTimeout(()=>void Re(),3e3)}}function ze(e){let t=new Set(e);M(e=>({sessions:Object.fromEntries(Object.entries(e.sessions).filter(([e])=>!t.has(e))),hasArchived:Object.values(e.sessions).some(e=>e.archivedAt!==null&&!t.has(e.id))}));let n=j().selectedId;n&&t.has(n)&&qe(null)}function Be(e,t){if(!(t in e))return e;let n={...e};return delete n[t],n}function Ve(e){switch(e.type){case`groups`:M({groups:e.groups});return;case`sessionsDeleted`:ze(e.ids);return;case`devices`:M(t=>({phones:t.phones?{...t.phones,devices:e.devices}:t.phones}));return;case`schedules`:M({schedules:e.schedules});return;case`artifact`:M(t=>({artifacts:t.artifacts?[...t.artifacts.filter(t=>t.id!==e.artifact.id),e.artifact]:t.artifacts}));return;case`artifactDeleted`:M(t=>({artifacts:t.artifacts?.filter(t=>t.id!==e.id)??null,artifactId:t.artifactId===e.id?null:t.artifactId}));return;case`sessionSummary`:M(t=>({sessions:{...t.sessions,[e.session.id]:e.session}}));return;case`approval`:{let t=e.approval;M(e=>({center:{...e.center,approvals:t.status===`pending`?{...e.center.approvals,[t.id]:t}:Be(e.center.approvals,t.id)}}));return}case`card`:{let t=e.card;M(e=>({center:{...e.center,cards:t.status===`pending`?{...e.center.cards,[t.id]:t}:Be(e.center.cards,t.id)},decisions:t.status===`decided`&&e.decisions.loaded?{...e.decisions,items:[t,...e.decisions.items.filter(e=>e.id!==t.id)]}:e.decisions}));return}case`letter`:{let t=e.letter;M(e=>{let n=e.letters.items,r=n.findIndex(e=>e.id===t.id),i=r>=0?n.map((e,n)=>n===r?t:e):[t,...n];return{center:{...e.center,held:t.status===`held`?{...e.center.held,[t.id]:t}:Be(e.center.held,t.id)},letters:e.letters.loaded?{...e.letters,items:i}:e.letters,letterTick:e.letterTick+1}});return}}}function He(e,t){t.type===`session`?M(e=>({sessions:{...e.sessions,[t.session.id]:t.session}})):Se(e,e=>{switch(t.type){case`entry`:return{entries:Ce(e.entries,t.entry),...t.entry.role===`assistant`?{draft:null}:{},retry:null};case`toolCall`:return{toolCalls:{...e.toolCalls,[t.toolCall.id]:t.toolCall}};case`approval`:return{approvals:{...e.approvals,[t.approval.id]:t.approval}};case`queue`:return{queue:t.queue};case`rewound`:return{}}})}async function Ue(){let e=await w(`/api/sessions`);M(t=>{let n=Object.values(t.sessions).filter(e=>e.archivedAt!==null);return{sessions:Object.fromEntries([...n,...e].map(e=>[e.id,e]))}})}function We(e){return Object.fromEntries(e.map(e=>[e.id,e]))}async function Ge(e){let t=await x(`GET`,`/api/sessions/${e}/transcript?limit=150`);return M(n=>({sessions:{...n.sessions,[e]:t.session},...n.selectedId===e?{transcript:{sessionId:e,entries:t.entries,toolCalls:We(t.toolCalls),approvals:We(t.approvals),queue:t.queue,olderCursor:t.olderCursor,draft:null,retry:null,outputs:{}}}:{}})),t.session.eventSeq}function Ke(e){M({settingsDialog:e})}async function qe(e){if(M({selectedId:e,transcript:null,page:null}),Te(we,e),ke(e?`session:${e}`:`home`),!e){Le(null,null);return}let t=await Ge(e);if(j().selectedId!==e)return;Le(e,t);let n=j().sessions[e];n&&n.unread>0&&x(`PATCH`,`/api/sessions/${e}`,{read:!0})}async function Je(){let e=j().transcript;if(!e?.olderCursor)return;let t=await x(`GET`,`/api/sessions/${e.sessionId}/transcript?limit=150&before=${e.olderCursor}`);Se(e.sessionId,e=>({entries:[...t.entries,...e.entries.filter(e=>!t.entries.some(t=>t.id===e.id))],toolCalls:{...We(t.toolCalls),...e.toolCalls},approvals:{...We(t.approvals),...e.approvals},olderCursor:t.olderCursor}))}function Ye(e){let t=j().sessions[e];t&&t.unread>0&&document.visibilityState===`visible`&&x(`PATCH`,`/api/sessions/${e}`,{read:!0})}async function Xe(e){let t=await x(`POST`,`/api/sessions`,e,{idempotent:!0});return M(e=>({sessions:{...e.sessions,[t.id]:t}})),await qe(t.id),t}async function Ze(e){let t=await x(`POST`,`/api/sessions/${e}/duplicate`,void 0,{idempotent:!0});return M(e=>({sessions:{...e.sessions,[t.id]:t}})),await qe(t.id),t}async function Qe(e,t,n){let r=await x(`POST`,`/api/sessions/${e}/fork`,{entryId:t},{idempotent:!0});return M(e=>({sessions:{...e.sessions,[r.id]:r},prefill:n?{...e.prefill,[r.id]:n}:e.prefill})),await qe(r.id),r}async function $e(e,t,n){await x(`POST`,`/api/sessions/${e}/rewind`,{entryId:t}),n&&M(t=>({prefill:{...t.prefill,[e]:n}})),await Ge(e)}function et(e){let t=j().prefill[e];return t===void 0?null:(M(t=>{let{[e]:n,...r}=t.prefill;return{prefill:r}}),t)}async function tt(e,t){let n=await x(`PATCH`,`/api/sessions/${e}`,t);return M(e=>({sessions:{...e.sessions,[n.id]:n}})),t.archived!==void 0&&M({hasArchived:(await x(`GET`,`/api/sessions?archived=true&limit=1`)).items.length>0}),n}async function nt(e){let{blob:t,filename:n}=await C(`/api/sessions/${e.id}/export.md?lang=${oe()}`),r=URL.createObjectURL(t);try{let t=document.createElement(`a`);t.href=r,t.download=n??rt(e.name),document.body.append(t),t.click(),t.remove()}finally{setTimeout(()=>URL.revokeObjectURL(r),1e3)}}function rt(e){return`${e.replace(/[\\/:*?"<>|]/g,`-`).trim()||`session`}.md`}function it(e){let t=new Set(Object.values(j().sessions).map(e=>e.name.toLowerCase()));if(!t.has(e.toLowerCase()))return e;for(let n=2;;n++){let r=`${e} ${n}`;if(!t.has(r.toLowerCase()))return r}}async function at(e,t){let n=await x(`POST`,`/api/sessions`,e,{idempotent:!0});return M(e=>({sessions:{...e.sessions,[n.id]:n}})),await Lt(n.id,t),await qe(n.id),n}async function ot(){return w(`/api/sessions?archived=true`)}async function st(){let e=await x(`DELETE`,`/api/sessions/archived`);return ze(e.deleted),M({showArchived:!1}),e.deleted.length}async function ct(e){if(M({showArchived:e}),!e)return;let t=await w(`/api/sessions?archived=true`);M(e=>({sessions:{...e.sessions,...We(t)}}))}async function lt(e){return x(`POST`,`/api/groups`,{name:e},{idempotent:!0})}async function ut(e,t){await x(`PATCH`,`/api/groups/${e}`,{name:t})}async function dt(e){await x(`DELETE`,`/api/groups/${e}`)}async function ft(){let e=await x(`GET`,`/api/center`);M({center:{approvals:We(e.approvals),cards:We(e.cards),held:We(e.held)}})}function pt(e=j().centerTab){M({page:`center`,centerTab:e,drawerOpen:!1}),ke(`center:${e}`),e===`letters`&&!j().letters.loaded&&Mt(),e===`decided`&&!j().decisions.loaded&&jt()}function mt(){M({page:`schedules`,drawerOpen:!1}),ke(`schedules`),j().schedules||Et()}function ht(){M({page:`artifacts`,drawerOpen:!1}),ke(`artifacts`),j().artifacts||St()}function gt(){M({page:`usage`,drawerOpen:!1}),ke(`usage`)}function _t(){M({page:`map`,drawerOpen:!1}),ke(`map`)}var vt=()=>x(`GET`,`/api/map`),yt=(e=30)=>x(`GET`,`/api/usage?days=${e}`),bt=e=>x(`GET`,`/api/usage/${e}`);function xt(e){M({artifactId:e}),ht()}async function St(){M({artifacts:(await x(`GET`,`/api/artifacts?limit=500`)).items})}async function Ct(e){return(await x(`GET`,`/api/artifacts/${e}`)).versions}async function wt(e,t){let n=await fetch(`/api/artifacts/${e}/versions/${t}`,{credentials:`same-origin`});if(!n.ok)throw Error(`HTTP ${n.status}`);return n.text()}async function Tt(e){await x(`DELETE`,`/api/artifacts/${e}`),M(t=>({artifacts:t.artifacts?.filter(t=>t.id!==e)??null,artifactId:t.artifactId===e?null:t.artifactId}))}async function Et(){M({schedules:(await x(`GET`,`/api/schedules`)).items})}function Dt(e){M(t=>({schedules:[...(t.schedules??[]).filter(t=>t.id!==e.id),e]}))}async function Ot(e,t){let n=e?await x(`PATCH`,`/api/schedules/${e}`,t):await x(`POST`,`/api/schedules`,t,{idempotent:!0});return Dt(n),n}async function kt(e){Dt((await x(`POST`,`/api/schedules/${e}/run`)).schedule)}async function At(e){await x(`DELETE`,`/api/schedules/${e}`),M(t=>({schedules:(t.schedules??[]).filter(t=>t.id!==e)}))}async function jt(e=!1){let t=e?j().decisions.nextCursor:null,n=await x(`GET`,`/api/cards?status=decided&limit=50${t?`&cursor=${encodeURIComponent(t)}`:``}`);M(t=>({decisions:{items:e?[...t.decisions.items,...n.items]:n.items,nextCursor:n.nextCursor,loaded:!0}}))}async function Mt(e=!1){let t=e?j().letters.nextCursor:null,n=await x(`GET`,`/api/letters?limit=50${t?`&cursor=${encodeURIComponent(t)}`:``}`);M(t=>({letters:{items:e?[...t.letters.items,...n.items]:n.items,nextCursor:n.nextCursor,loaded:!0}}))}async function Nt(e,t,n){return x(`POST`,`/api/cards/${e}/decide`,{choice:t,...n?{note:n}:{}},{idempotent:!0})}var Pt=e=>x(`POST`,`/api/letters/${e}/release`),Ft=e=>x(`POST`,`/api/letters/${e}/refuse`);async function It(e){await xn({mainSessionId:e})}async function Lt(e,t){let n=await x(`POST`,`/api/sessions/${e}/messages`,{text:t},{idempotent:!0});if(n.entry){let t=n.entry;Se(e,e=>({entries:Ce(e.entries,t)}))}}var Rt=e=>x(`POST`,`/api/sessions/${e}/stop`),zt=e=>x(`POST`,`/api/sessions/${e}/continue`),Bt=e=>x(`POST`,`/api/sessions/${e}/compact`);async function Vt(e,t,n){await x(`PATCH`,`/api/sessions/${e}/queue/${t}`,{text:n})}async function Ht(e,t){await x(`DELETE`,`/api/sessions/${e}/queue/${t}`)}async function Ut(e,t){return x(`POST`,`/api/approvals/${e}`,t)}async function Wt(e){let t=j().models[e];if(t)return t;let n=await w(`/api/providers/${encodeURIComponent(e)}/models`);return M(t=>({models:{...t.models,[e]:n}})),n}async function Gt(){M({providers:await w(`/api/providers`),models:{}})}async function Kt(e,t){await x(`PUT`,`/api/providers/${encodeURIComponent(e)}/key`,{key:t}),await Gt()}function qt(e){return x(`POST`,`/api/providers/${encodeURIComponent(e)}/test`,{})}async function Jt(e){await x(`DELETE`,`/api/providers/${encodeURIComponent(e)}/key`),await Gt()}async function Yt(e,t){await x(`PUT`,`/api/providers/${encodeURIComponent(e)}`,t),await Gt()}async function Xt(e){await x(`DELETE`,`/api/providers/${encodeURIComponent(e)}`),await Gt()}var P=()=>w(`/api/search-services`);async function Zt(e,t){await x(`PUT`,`/api/search-services/${encodeURIComponent(e)}/key`,{key:t})}async function Qt(e){await x(`DELETE`,`/api/search-services/${encodeURIComponent(e)}/key`)}var $t=()=>w(`/api/mcp`),en=e=>x(`POST`,`/api/mcp/${encodeURIComponent(e)}/sign-out`),tn=e=>x(`POST`,`/api/mcp`,e,{idempotent:!0}),nn=(e,t)=>x(`PATCH`,`/api/mcp/${encodeURIComponent(e)}`,t);async function rn(e){await x(`DELETE`,`/api/mcp/${encodeURIComponent(e)}`)}var an=()=>x(`GET`,`/api/skills`),on=(e,t)=>x(`PATCH`,`/api/skills`,{id:e,disabled:t});async function sn(e){await x(`POST`,`/api/skills/reveal`,{id:e})}var cn=()=>x(`GET`,`/api/data`);async function ln(){return(await x(`POST`,`/api/folders/pick`)).path}var un=e=>x(`POST`,`/api/data/export`,{folder:e},{idempotent:!0}),dn=()=>x(`POST`,`/api/data/cleanup`,void 0,{idempotent:!0});async function fn(e){await x(`POST`,`/api/data/reveal`,{target:e})}var pn=()=>x(`GET`,`/api/system`),mn=e=>x(`PATCH`,`/api/system`,e);async function hn(){M({phones:await x(`GET`,`/api/devices`)})}async function gn(e){M({settings:await x(`PATCH`,`/api/settings`,{remote:{enabled:e}})}),await hn()}async function _n(){return x(`POST`,`/api/devices/pairing`)}async function vn(e,t){await x(`PATCH`,`/api/devices/${e}`,{push:t}),await hn()}async function yn(e){await x(`DELETE`,`/api/devices/${e}`),await hn()}var bn=()=>x(`GET`,`/api/usage/today`);async function xn(e){let t=await x(`PATCH`,`/api/settings`,e);M({settings:t}),Me(t)}function Sn(e,t,n){return Object.values(e).find(e=>e.messageId===t&&e.callId===n)}function Cn(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var wn=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Tn=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,En={};function Dn(e,t){return((t||En).jsx?Tn:wn).test(e)}var On=/[ \t\n\f\r]/g;function kn(e){return typeof e==`object`?e.type===`text`&&An(e.value):An(e)}function An(e){return e.replace(On,``)===``}var jn=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};jn.prototype.normal={},jn.prototype.property={},jn.prototype.space=void 0;function Mn(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new jn(n,r,t)}function Nn(e){return e.toLowerCase()}var Pn=class{constructor(e,t){this.attribute=t,this.property=e}};Pn.prototype.attribute=``,Pn.prototype.booleanish=!1,Pn.prototype.boolean=!1,Pn.prototype.commaOrSpaceSeparated=!1,Pn.prototype.commaSeparated=!1,Pn.prototype.defined=!1,Pn.prototype.mustUseProperty=!1,Pn.prototype.number=!1,Pn.prototype.overloadedBoolean=!1,Pn.prototype.property=``,Pn.prototype.spaceSeparated=!1,Pn.prototype.space=void 0;var Fn=s({boolean:()=>F,booleanish:()=>Ln,commaOrSpaceSeparated:()=>Vn,commaSeparated:()=>Bn,number:()=>I,overloadedBoolean:()=>Rn,spaceSeparated:()=>zn}),In=0,F=Hn(),Ln=Hn(),Rn=Hn(),I=Hn(),zn=Hn(),Bn=Hn(),Vn=Hn();function Hn(){return 2**++In}var Un=Object.keys(Fn),Wn=class extends Pn{constructor(e,t,n,r){let i=-1;if(super(e,t),Gn(this,`space`,r),typeof n==`number`)for(;++i<Un.length;){let e=Un[i];Gn(this,Un[i],(n&Fn[e])===Fn[e])}}};Wn.prototype.defined=!0;function Gn(e,t,n){n&&(e[t]=n)}function Kn(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Wn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Nn(r)]=r,n[Nn(a.attribute)]=r}return new jn(t,n,e.space)}var qn=Kn({properties:{ariaActiveDescendant:null,ariaAtomic:Ln,ariaAutoComplete:null,ariaBusy:Ln,ariaChecked:Ln,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:zn,ariaCurrent:null,ariaDescribedBy:zn,ariaDetails:null,ariaDisabled:Ln,ariaDropEffect:zn,ariaErrorMessage:null,ariaExpanded:Ln,ariaFlowTo:zn,ariaGrabbed:Ln,ariaHasPopup:null,ariaHidden:Ln,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:zn,ariaLevel:I,ariaLive:null,ariaModal:Ln,ariaMultiLine:Ln,ariaMultiSelectable:Ln,ariaOrientation:null,ariaOwns:zn,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:Ln,ariaReadOnly:Ln,ariaRelevant:null,ariaRequired:Ln,ariaRoleDescription:zn,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:Ln,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Jn(e,t){return t in e?e[t]:t}function Yn(e,t){return Jn(e,t.toLowerCase())}var Xn=Kn({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Bn,acceptCharset:zn,accessKey:zn,action:null,allow:null,allowFullScreen:F,allowPaymentRequest:F,allowUserMedia:F,alpha:F,alt:null,as:null,async:F,autoCapitalize:null,autoComplete:zn,autoFocus:F,autoPlay:F,blocking:zn,capture:null,charSet:null,checked:F,cite:null,className:zn,closedBy:null,colorSpace:null,cols:I,colSpan:I,command:null,commandFor:null,content:null,contentEditable:Ln,controls:F,controlsList:zn,coords:I|Bn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:F,defer:F,dir:null,dirName:null,disabled:F,download:Rn,draggable:Ln,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:F,formTarget:null,headers:zn,height:I,hidden:Rn,high:I,href:null,hrefLang:null,htmlFor:zn,httpEquiv:zn,id:null,imageSizes:null,imageSrcSet:null,inert:F,inputMode:null,integrity:null,is:null,isMap:F,itemId:null,itemProp:zn,itemRef:zn,itemScope:F,itemType:zn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:F,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:F,muted:F,name:null,nonce:null,noModule:F,noValidate:F,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:F,optimum:I,pattern:null,ping:zn,placeholder:null,playsInline:F,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:F,referrerPolicy:null,rel:zn,required:F,reversed:F,rows:I,rowSpan:I,sandbox:zn,scope:null,scoped:F,seamless:F,selected:F,shadowRootClonable:F,shadowRootCustomElementRegistry:F,shadowRootDelegatesFocus:F,shadowRootMode:null,shadowRootSerializable:F,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:Ln,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:F,useMap:null,value:Ln,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:zn,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:F,declare:F,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:F,noHref:F,noShade:F,noWrap:F,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:Ln,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:F,disablePictureInPicture:F,disableRemotePlayback:F,exportParts:Bn,part:zn,prefix:null,property:null,results:I,security:null,unselectable:null},space:`html`,transform:Yn}),Zn=Kn({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:Vn,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:zn,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:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:F,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,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:Bn,g2:Bn,glyphName:Bn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:Vn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,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:I,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:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:zn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Vn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Vn,rev:Vn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Vn,requiredFeatures:Vn,requiredFonts:Vn,requiredFormats:Vn,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:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:Vn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Vn,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Vn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Jn}),Qn=Kn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),$n=Kn({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Yn}),er=Kn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),tr={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`},nr=/[A-Z]/g,rr=/-[a-z]/g,ir=/^data[-\w.:]+$/i;function ar(e,t){let n=Nn(t),r=t,i=Pn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&ir.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(rr,sr);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!rr.test(e)){let n=e.replace(nr,or);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Wn}return new i(r,t)}function or(e){return`-`+e.toLowerCase()}function sr(e){return e.charAt(1).toUpperCase()}var cr=Mn([qn,Xn,Qn,$n,er],`html`),lr=Mn([qn,Zn,Qn,$n,er],`svg`);function ur(e){return e.join(` `).trim()}var dr=/\/\*(?:[^*]|\*(?!\/))*\*\//g,fr=/\n/g,pr=/^\s*/,mr=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,hr=/^:\s*/,gr=/^((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|url\((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|[^)]*)\)|[^};])+)/,_r=/^[;\s]*/,vr=`
22
+ `,yr=`/`,br=`*`,xr=``,Sr=`comment`,Cr=`declaration`;function wr(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var n=1,r=1;function i(e){var t=e.match(fr);t&&(n+=t.length);var i=e.lastIndexOf(vr);r=~i?e.length-i:r+e.length}function a(){var e={line:n,column:r};return function(t){return t.position=new o(e),l(),t}}function o(e){this.start=e,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(i){var a=Error(t.source+`:`+n+`:`+r+`: `+i);if(a.reason=i,a.filename=t.source,a.line=n,a.column=r,a.source=e,!t.silent)throw a}function c(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function l(){c(pr)}function u(e){for(var t;t=d();)e.push(t);return e}function d(){var t=a();if(yr==e.charAt(0)&&br==e.charAt(1)){for(var n=2;xr!=e.charAt(n)&&(br!=e.charAt(n)||yr!=e.charAt(n+1));)++n;if(n+=2,xr===e.charAt(n-1))return s(`End of comment missing`);var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:Sr,comment:o})}}function f(){var e=a(),t=c(mr);if(t){if(d(),!c(hr))return s(`property missing ':'`);var n=c(gr),r=e({type:Cr,property:t[0].replace(dr,xr).trim(),value:n?n[0].replace(dr,xr).trim():xr});return c(_r),r}}function p(){var e=[];u(e);for(var t;t=f();)e.push(t),u(e);return e}return l(),p()}function Tr(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=wr(e),i=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:a}=e;i?t(r,a,e):a&&(n??={},n[r]=a)}),n}var Er=Or(`end`),Dr=Or(`start`);function Or(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function kr(e){let t=Dr(e),n=Er(e);if(t&&n)return{start:t,end:n}}function Ar(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Mr(e.position):`start`in e||`end`in e?Mr(e):`line`in e||`column`in e?jr(e):``}function jr(e){return Nr(e&&e.line)+`:`+Nr(e&&e.column)}function Mr(e){return jr(e&&e.start)+`-`+jr(e&&e.end)}function Nr(e){return e&&typeof e==`number`?e:1}var Pr=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=Ar(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Object.defineProperties(Pr.prototype,{file:{configurable:!0,enumerable:!0,value:``,writable:!0},name:{configurable:!0,enumerable:!0,value:``,writable:!0},reason:{configurable:!0,enumerable:!0,value:``,writable:!0},message:{configurable:!0,enumerable:!0,value:``,writable:!0},stack:{configurable:!0,enumerable:!0,value:``,writable:!0},column:{configurable:!0,enumerable:!0,writable:!0},line:{configurable:!0,enumerable:!0,writable:!0},ancestors:{configurable:!0,enumerable:!0,writable:!0},cause:{configurable:!0,enumerable:!0,writable:!0},fatal:{configurable:!0,enumerable:!0,writable:!0},place:{configurable:!0,enumerable:!0,writable:!0},ruleId:{configurable:!0,enumerable:!0,writable:!0},source:{configurable:!0,enumerable:!0,writable:!0}});var Fr={}.hasOwnProperty,Ir=new Map,Lr=/[A-Z]/g,Rr=/-([a-z])/g,zr=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Br=new Set([`td`,`th`]),Vr=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function Hr(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=$r(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=Qr(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?lr:cr,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Ur(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Ur(e,t,n){if(t.type===`element`)return Wr(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Gr(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return qr(e,t,n);if(t.type===`mdxjsEsm`)return Kr(e,t);if(t.type===`root`)return Jr(e,t,n);if(t.type===`text`)return Yr(e,t)}function Wr(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=lr,e.schema=i),e.ancestors.push(t);let a=ai(e,t.tagName,!1),o=ei(e,t),s=ni(e,t);return zr.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!kn(e)})),Xr(e,o,a,t),Zr(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Gr(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}oi(e,t.position)}function Kr(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);oi(e,t.position)}function qr(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=lr,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:ai(e,t.name,!0),o=ti(e,t),s=ni(e,t);return Xr(e,o,a,t),Zr(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Jr(e,t,n){let r={};return Zr(r,ni(e,t)),e.create(t,e.Fragment,r,n)}function Yr(e,t){return t.value}function Xr(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Zr(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function Qr(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function $r(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=Dr(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function ei(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Fr.call(t.properties,i)){let a=ri(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Br.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function ti(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else oi(e,t.position)}else{let{name:i}=r,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else oi(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function ni(e,t){let n=[],r=-1,i=e.passKeys?new Map:Ir;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=Ur(e,a,o);s!==void 0&&n.push(s)}return n}function ri(e,t,n){if(n==null||typeof n==`number`&&Number.isNaN(n))return;let r=ar(e.schema,t);return Array.isArray(n)&&(n=r.commaSeparated?Cn(n):ur(n)),r.property===`style`?[`style`,typeof n==`object`?e.stylePropertyNameCase===`dom`?n:si(n):ii(e,String(n))]:[e.elementAttributeNameCase===`react`&&r.space?tr[r.property]||r.property:r.attribute,n]}function ii(e,t){let n={};try{Tr(t,function(t,r){if(t&&r){let i=t;i.slice(0,2)!==`--`&&(i=i.toLowerCase(),e.stylePropertyNameCase===`dom`&&(i.slice(0,4)===`-ms-`&&(i=i.slice(1)),i=i.replace(Rr,ui))),n[i]=r}})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new Pr("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=Vr+`#cannot-parse-style-attribute`,r}return n}function ai(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=Dn(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=Dn(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Fr.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);oi(e)}function oi(e,t){let n=new Pr("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=Vr+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function si(e){let t={},n;for(n in e)Fr.call(e,n)&&(t[ci(n)]=e[n]);return t}function ci(e){if(e.slice(0,2)===`--`)return e;let t=e.replace(Lr,li);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function li(e){return`-`+e.toLowerCase()}function ui(e,t){return t.toUpperCase()}var di={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`]},fi=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),pi=o(((e,t)=>{t.exports=fi()})),mi={};function hi(e,t){let n=t||mi;return gi(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function gi(e,t,n){if(vi(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return _i(e.children,t,n)}return Array.isArray(e)?_i(e,t,n):``}function _i(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=gi(e[i],t,n);return r.join(``)}function vi(e){return!!(e&&typeof e==`object`)}var yi=document.createElement(`i`);function bi(e){let t=`&`+e+`;`;yi.innerHTML=t;let n=yi.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function xi(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Si(e,t){return e.length>0?(xi(e,e.length,0,t),e):t}var Ci={}.hasOwnProperty;function wi(e){let t={},n=-1;for(;++n<e.length;)Ti(t,e[n]);return t}function Ti(e,t){let n;for(n in t){let r=(Ci.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){Ci.call(r,a)||(r[a]=[]);let e=i[a];Ei(r[a],Array.isArray(e)?e:e?[e]:[])}}}function Ei(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);xi(e,0,0,r)}function Di(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function Oi(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var ki=Ri(/[A-Za-z]/),Ai=Ri(/[\dA-Za-z]/),ji=Ri(/[#-'*+\--9=?A-Z^-~]/);function Mi(e){return e!==null&&(e<32||e===127)}var Ni=Ri(/\d/),Pi=Ri(/[\dA-Fa-f]/),Fi=Ri(/[!-/:-@[-`{-~]/);function L(e){return e!==null&&e<-2}function R(e){return e!==null&&(e<0||e===32)}function z(e){return e===-2||e===-1||e===32}var Ii=Ri(/\p{P}|\p{S}/u),Li=Ri(/\s/);function Ri(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function zi(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&Ai(e.charCodeAt(n+1))&&Ai(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function B(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return z(r)?(e.enter(n),s(r)):t(r)}function s(r){return z(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function Bi(e,t,n,r,i,a){let o=0;return s;function s(t){return a>0&&z(t)?(e.enter(r),c(t)):l(t)}function c(t){return z(t)&&o<a?(e.consume(t),o++,c):(e.exit(r),l(t))}function l(e){return o>=i?t(e):n(e)}}var Vi={tokenize:Hi};function Hi(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null)e.consume(n);else return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),B(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null)e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);else return L(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var Ui=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){Wi(this,e,t,n,!1)}addBefore(e,t,n){Wi(this,e,t,n,!0)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function Wi(e,t,n,r,i){if(n===0&&r.length===0)return;let a=e.index.get(t);if(a){a[1]+=n,i?(r.push(...a[2]),a[2]=r):a[2].push(...r);return}let o=[t,n,r];e.map.push(o),e.index.set(t,o)}var Gi={tokenize:qi},Ki={tokenize:Ji};function qi(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;let c=new Ui;return c.add(a+1,0,t.events.slice(n)),c.add(n,s-n,[]),c.consume(t.events),l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!(!i.currentConstruct||i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Ki,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(Ki,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null)i&&v(),_(0),e.consume(n);else return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null)g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);else return L(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;let l=new Ui;l.add(a+1,0,t.events.slice(n)),l.add(n,e-n,[]),l.consume(t.events)}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Ji(e,t,n){return B(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function Yi(e){if(e===null||R(e)||Li(e))return 1;if(Ii(e))return 2}function Xi(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var Zi={name:`attention`,resolveAll:Qi,tokenize:$i};function Qi(e,t){let n=-1,r;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){let i=n;for(;i--;)if(e[i][0]===`exit`&&e[i][1].type===`attentionSequence`&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;let a=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,o={...e[i][1].end},s={...e[n][1].start};ea(o,-a),ea(s,a);let c={type:a>1?`strongSequence`:`emphasisSequence`,start:o,end:{...e[i][1].end}},l={type:a>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:s},u={type:a>1?`strongText`:`emphasisText`,start:{...e[i][1].end},end:{...e[n][1].start}},d={type:a>1?`strong`:`emphasis`,start:{...c.start},end:{...l.end}};e[i][1].end={...c.start},e[n][1].start={...l.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=Si(r,[[`enter`,e[i][1],t],[`exit`,e[i][1],t]])),r=Si(r,[[`enter`,d,t],[`enter`,c,t],[`exit`,c,t],[`enter`,u,t]]),r=Si(r,Xi(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=Si(r,[[`exit`,u,t],[`enter`,l,t],[`exit`,l,t],[`exit`,d,t]]);let f=0;e[n][1].end.offset-e[n][1].start.offset&&(f=2,r=Si(r,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])),xi(e,i-1,n-i+3,r),n=i+r.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function $i(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Yi(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=Yi(o),u=!l||l===2&&i||n.includes(o)&&o!==42&&o!==95,d=!i||i===2&&l||n.includes(r)&&r!==42&&r!==95;return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function ea(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var ta={name:`autolink`,tokenize:na};function na(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return ki(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||Ai(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||Ai(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||Mi(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):ji(t)?(e.consume(t),l):n(t)}function u(e){return Ai(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||Ai(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var ra={partial:!0,tokenize:V};function V(e,t,n){return r;function r(t){return z(t)?B(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||L(e)?t(e):n(e)}}var ia={continuation:{tokenize:oa},exit:sa,name:`blockQuote`,tokenize:aa};function aa(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return z(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function oa(e,t,n){let r=this;return i;function i(t){return z(t)?B(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(ia,t,n)(r)}}function sa(e){e.exit(`blockQuote`)}var ca={name:`characterEscape`,tokenize:la};function la(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return Fi(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var ua={name:`characterReference`,tokenize:da};function da(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=Ai,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=Pi,u):(e.enter(`characterReferenceValue`),a=7,o=Ni,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===Ai&&!bi(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var fa={partial:!0,tokenize:pa};function pa(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var ma={concrete:!0,name:`codeFenced`,tokenize:ha};function ha(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),z(t)?B(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||L(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(fa,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||L(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):z(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),B(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||L(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||L(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&z(t)?B(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||L(t)?e.check(fa,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||L(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),z(t)?B(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),z(t)?B(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||L(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}var ga={name:`codeIndented`,tokenize:va},_a={partial:!0,tokenize:ya};function va(e,t,n){return r;function r(t){return e.enter(`codeIndented`),Bi(e,i,n,`linePrefix`,4,4)(t)}function i(t){return t===null?o(t):L(t)?e.attempt(_a,i,o)(t):(e.enter(`codeFlowValue`),a(t))}function a(t){return t===null||L(t)?(e.exit(`codeFlowValue`),i(t)):(e.consume(t),a)}function o(n){return e.exit(`codeIndented`),t(n)}}function ya(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):L(o)?(e.enter(`lineEnding`),e.consume(o),e.exit(`lineEnding`),i):Bi(e,t,a,`linePrefix`,4,4)(o)}function a(e){return L(e)?i(e):n(e)}}var ba={name:`codeText`,previous:Sa,resolve:xa,tokenize:Ca};function xa(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Sa(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function Ca(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):L(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||L(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var wa=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&Ta(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),Ta(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Ta(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e<this.left.length){let t=this.left.splice(e,1/0);Ta(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);Ta(this.left,t.reverse())}}}};function Ta(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Ea(e){let t={},n=-1,r,i,a,o,s,c,l,u=new wa(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,Da(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return xi(e,0,1/0,u.slice(0)),!l}function Da(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var Oa={resolve:Aa,tokenize:ja},ka={partial:!0,tokenize:Ma};function Aa(e){return Ea(e),e}function ja(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):L(t)?e.check(ka,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function Ma(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),B(e,a,`linePrefix`)}function a(i){if(i===null||L(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function Na(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||Mi(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||L(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||R(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||Mi(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function Pa(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):L(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||L(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!z(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function Fa(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):L(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),B(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||L(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function Ia(e,t){let n;return r;function r(i){return L(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):z(i)?B(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var La={name:`definition`,tokenize:za},Ra={partial:!0,tokenize:Ba};function za(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return Pa.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=Oi(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return R(t)?Ia(e,l)(t):l(t)}function l(t){return Na(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Ra,d,d)(t)}function d(t){return z(t)?B(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||L(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Ba(e,t,n){return r;function r(t){return R(t)?Ia(e,i)(t):n(t)}function i(t){return Fa(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return z(t)?B(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||L(e)?t(e):n(e)}}var Va={name:`hardBreakEscape`,tokenize:Ha};function Ha(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return L(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Ua={name:`headingAtx`,resolve:Wa,tokenize:Ga};function Wa(e,t){let n=e.length-2,r=3;if(e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r){let i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`};xi(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])}return e}function Ga(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||R(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||L(n)?(e.exit(`atxHeading`),t(n)):z(n)?B(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||R(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Ka=`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`.split(`.`),qa=[`pre`,`script`,`style`,`textarea`],Ja={concrete:!0,name:`htmlFlow`,resolveTo:Xa,tokenize:Za},Ya={partial:!0,tokenize:Qa};function Xa(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Za(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:O):ki(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):ki(a)?(e.consume(a),i=4,r.interrupt?t:O):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:O):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:te:m):n(i)}function h(t){return ki(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||R(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&qa.includes(l)?(i=1,r.interrupt?t(s):te(s)):Ka.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):te(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||Ai(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:te):n(i)}function v(t){return z(t)?(e.consume(t),v):T(t)}function y(t){return t===47?(e.consume(t),T):t===58||t===95||ki(t)?(e.consume(t),b):z(t)?(e.consume(t),y):T(t)}function b(t){return t===45||t===46||t===58||t===95||Ai(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):z(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):z(t)?(e.consume(t),S):ee(t)}function C(t){return t===c?(e.consume(t),c=null,w):t===null||L(t)?n(t):(e.consume(t),C)}function ee(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||R(t)?x(t):(e.consume(t),ee)}function w(e){return e===47||e===62||z(e)?y(e):n(e)}function T(t){return t===62?(e.consume(t),E):n(t)}function E(t){return t===null||L(t)?te(t):z(t)?(e.consume(t),E):n(t)}function te(t){return t===45&&i===2?(e.consume(t),ae):t===60&&i===1?(e.consume(t),oe):t===62&&i===4?(e.consume(t),ce):t===63&&i===3?(e.consume(t),O):t===93&&i===5?(e.consume(t),D):L(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(Ya,le,ne)(t)):t===null||L(t)?(e.exit(`htmlFlowData`),ne(t)):(e.consume(t),te)}function ne(t){return e.check(fa,re,le)(t)}function re(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),ie}function ie(t){return t===null||L(t)?ne(t):(e.enter(`htmlFlowData`),te(t))}function ae(t){return t===45?(e.consume(t),O):te(t)}function oe(t){return t===47?(e.consume(t),o=``,se):te(t)}function se(t){if(t===62){let n=o.toLowerCase();return qa.includes(n)?(e.consume(t),ce):te(t)}return ki(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),se):te(t)}function D(t){return t===93?(e.consume(t),O):te(t)}function O(t){return t===62?(e.consume(t),ce):t===45&&i===2?(e.consume(t),O):te(t)}function ce(t){return t===null||L(t)?(e.exit(`htmlFlowData`),le(t)):(e.consume(t),ce)}function le(n){return e.exit(`htmlFlow`),t(n)}}function Qa(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(ra,t,n)}}var $a={name:`htmlText`,tokenize:eo};function eo(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):ki(t)?(e.consume(t),ee):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):ki(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):L(t)?(o=d,oe(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?ae(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):L(t)?(o=h,oe(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?ae(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?ae(t):L(t)?(o=v,oe(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):L(t)?(o=y,oe(t)):(e.consume(t),y)}function b(e){return e===62?ae(e):y(e)}function x(t){return ki(t)?(e.consume(t),S):n(t)}function S(t){return t===45||Ai(t)?(e.consume(t),S):C(t)}function C(t){return L(t)?(o=C,oe(t)):z(t)?(e.consume(t),C):ae(t)}function ee(t){return t===45||Ai(t)?(e.consume(t),ee):t===47||t===62||R(t)?w(t):n(t)}function w(t){return t===47?(e.consume(t),ae):t===58||t===95||ki(t)?(e.consume(t),T):L(t)?(o=w,oe(t)):z(t)?(e.consume(t),w):ae(t)}function T(t){return t===45||t===46||t===58||t===95||Ai(t)?(e.consume(t),T):E(t)}function E(t){return t===61?(e.consume(t),te):L(t)?(o=E,oe(t)):z(t)?(e.consume(t),E):w(t)}function te(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,ne):L(t)?(o=te,oe(t)):z(t)?(e.consume(t),te):(e.consume(t),re)}function ne(t){return t===i?(e.consume(t),i=void 0,ie):t===null?n(t):L(t)?(o=ne,oe(t)):(e.consume(t),ne)}function re(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||R(t)?w(t):(e.consume(t),re)}function ie(e){return e===47||e===62||R(e)?w(e):n(e)}function ae(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function oe(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),se}function se(t){return z(t)?B(e,D,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):D(t)}function D(t){return e.enter(`htmlTextData`),o(t)}}var to={name:`labelEnd`,resolveAll:ao,resolveTo:oo,tokenize:so},no={tokenize:co},ro={tokenize:lo},io={tokenize:uo};function ao(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&xi(e,0,e.length,n),e}function oo(e,t){let n=e.length,r=0,i,a,o;for(;n--;){let t=e[n][1];if(i){if(t.type===`link`||t.type===`labelLink`&&t._inactive)break;e[n][0]===`enter`&&t.type===`labelLink`&&(t._inactive=!0)}else if(a){if(e[n][0]===`enter`&&(t.type===`labelImage`||t.type===`labelLink`)&&!t._balanced&&(i=n,t.type!==`labelLink`)){r=2;break}}else t.type===`labelEnd`&&(a=n)}let s={type:e[i][1].type===`labelLink`?`link`:`image`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:`label`,start:{...e[i][1].start},end:{...e[a][1].end}},l={type:`labelText`,start:{...e[i+r+2][1].end},end:{...e[a-2][1].start}};return o=[[`enter`,s,t],[`enter`,c,t]],o=Si(o,e.slice(i+1,i+r+3)),o=Si(o,[[`enter`,l,t]]),o=Si(o,Xi(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),o=Si(o,[[`exit`,l,t],e[a-2],e[a-1],[`exit`,c,t]]),o=Si(o,e.slice(a+1)),o=Si(o,[[`exit`,s,t]]),xi(e,i,e.length,o),e}function so(e,t,n){let r=this,i=r._labelStarts,a,o;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();a=i[i.length-1]}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(Oi(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(no,u,o?u:d)(t):t===91?e.attempt(ro,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(io,u,d)(t)}function u(e){return i.pop(),t(e)}function d(e){return a._balanced=!0,n(e)}}function co(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return R(t)?Ia(e,a)(t):a(t)}function a(t){return t===41?u(t):Na(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return R(t)?Ia(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?Fa(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return R(t)?Ia(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function lo(e,t,n){let r=this;return i;function i(t){return Pa.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(Oi(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function uo(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var fo={name:`labelStartImage`,resolveAll:to.resolveAll,tokenize:po};function po(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),o}function o(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelImage`),s):n(t)}function s(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var mo={name:`labelStartLink`,resolveAll:to.resolveAll,tokenize:ho};function ho(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelLink`),o}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var go={name:`lineEnding`,tokenize:_o};function _o(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),B(e,t,`linePrefix`)}}var vo={name:`thematicBreak`,tokenize:yo};function yo(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||L(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),z(t)?B(e,s,`whitespace`)(t):s(t))}}var bo={continuation:{tokenize:wo},exit:Eo,name:`list`,tokenize:Co},xo={partial:!0,tokenize:Do},So={partial:!0,tokenize:To};function Co(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:Ni(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(vo,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return Ni(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(ra,r.interrupt?n:u,e.attempt(xo,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return z(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function wo(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(ra,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,B(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!z(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(So,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,B(e,e.attempt(bo,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function To(e,t,n){let r=this;return B(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function Eo(e){e.exit(this.containerState.type)}function Do(e,t,n){let r=this;return B(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!z(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var Oo={name:`setextUnderline`,resolveTo:ko,tokenize:Ao};function ko(e,t){let n=new Ui,r=e.length,i,a,o;for(;r--;)if(e[r][0]===`enter`){if(e[r][1].type===`content`){i=r;break}e[r][1].type===`paragraph`&&(a=r)}else e[r][1].type===`content`&&n.add(r,1,[]),!o&&e[r][1].type===`definition`&&(o=r);let s={type:`setextHeading`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type=`setextHeadingText`,o?(n.add(a,0,[[`enter`,s,t]]),n.add(o+1,0,[[`exit`,e[i][1],t]]),e[i][1].end={...e[o][1].end}):e[i][1]=s,n.add(e.length,0,[[`exit`,s,t]]),n.consume(e),e}function Ao(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),z(t)?B(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||L(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var jo={tokenize:Mo};function Mo(e){let t=this,n=e.attempt(ra,r,e.attempt(this.parser.constructs.flowInitial,i,B(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Oa,i)),`linePrefix`)));return n;function r(r){if(r===null)e.consume(r);else return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null)e.consume(r);else return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var No={resolveAll:Lo()},Po=Io(`string`),Fo=Io(`text`);function Io(e){return{resolveAll:Lo(e===`text`?Ro:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null)t.consume(e);else return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function Lo(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):t[r]&&t[r][1].type===`data`||(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function Ro(e,t){let n=new Ui,r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type===`lineEnding`)&&e[r-1][1].type===`data`){let i=e[r-1][1],a=t.sliceStream(i),o=a.length,s=-1,c=0,l;for(;o--;){let e=a[o];if(typeof e==`string`){for(s=e.length;e.charCodeAt(s-1)===32;)c++,s--;if(s)break;s=-1}else if(e===-2)l=!0,c++;else if(e!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(c=0),c){let a={type:r===e.length||l||c<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):n.add(r,0,[[`enter`,a,t],[`exit`,a,t]])}r++}return n.consume(e),e}var zo=s({attentionMarkers:()=>Ko,contentInitial:()=>Vo,disable:()=>qo,document:()=>Bo,flow:()=>Ho,flowInitial:()=>H,insideSpan:()=>Go,string:()=>Uo,text:()=>Wo}),Bo={42:bo,43:bo,45:bo,48:bo,49:bo,50:bo,51:bo,52:bo,53:bo,54:bo,55:bo,56:bo,57:bo,62:ia},Vo={91:La},H={[-2]:ga,[-1]:ga,32:ga},Ho={35:Ua,42:vo,45:[Oo,vo],60:Ja,61:Oo,95:vo,96:ma,126:ma},Uo={38:ua,92:ca},Wo={[-5]:go,[-4]:go,[-3]:go,33:fo,38:ua,42:Zi,60:[ta,$a],91:mo,92:[Va,ca],93:to,95:Zi,96:ba},Go={null:[Zi,No]},Ko={null:[42,95]},qo={null:[]};function Jo(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=Si(o,e),g(),o[o.length-1]===null?(ee(t,0),l.events=Xi(a,l.events,l),l.events):[]}function f(e,t){return Xo(p(e),t)}function p(e){return Yo(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,T()}function g(){for(;r._index<o.length;){let e=o[r._index];if(typeof e==`string`){let t=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===t&&r._bufferIndex<e.length;)_(e.charCodeAt(r._bufferIndex))}else _(e)}}function _(e){u=u(e)}function v(e){L(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,T()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){ee(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=w(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function ee(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&xi(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function w(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,T()}}function T(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Yo(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Xo(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
23
+ `;break;case-3:o=`\r
24
+ `;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function Zo(e){let t={constructs:wi([zo,...(e||{}).extensions||[]]),content:n(Vi),defined:[],document:n(Gi),flow:n(jo),lazy:{},string:n(Po),text:n(Fo)};return t;function n(e){return n;function n(n){return Jo(t,e,n)}}}function Qo(e){for(;!Ea(e););return e}var $o=/[\0\t\n\r]/g;function es(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i));let s=[],c=0;for(t=``,n&&=(i.charCodeAt(0)===65279&&c++,void 0);c<i.length;){$o.lastIndex=c;let n=$o.exec(i),a=n&&n.index!==void 0?n.index:i.length,o=i.charCodeAt(a);if(!n){t=i.slice(c);break}if(o===10&&c===a&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),c<a&&(s.push(i.slice(c,a)),e+=a-c),o){case 0:s.push(65533),e++;break;case 9:{let t=Math.ceil(e/4)*4;for(s.push(-2);e++<t;)s.push(-1);break}case 10:s.push(-4),e=1;break;default:r=!0,e=1}c=a+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var ts=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ns(e){return e.replace(ts,rs)}function rs(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return Di(n.slice(t?2:1),t?16:10)}return bi(n)||e}var is={}.hasOwnProperty;function as(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),os(n)(Qo(Zo(n).document().write(es()(e,t,!0))))}function os(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:o(N),autolinkProtocol:T,autolinkEmail:T,atxHeading:o(A),blockQuote:o(ve),characterEscape:T,characterReference:T,codeFenced:o(ye),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(ye,s),codeText:o(be,s),codeTextData:T,data:T,codeFlowValue:T,definition:o(xe),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(k),hardBreakEscape:o(j),hardBreakTrailing:o(j),htmlFlow:o(M,s),htmlFlowData:T,htmlText:o(M,s),htmlTextData:T,image:o(Se),label:s,link:o(N),listItem:o(we),listItemValue:p,listOrdered:o(Ce,f),listUnordered:o(Ce),paragraph:o(Te),reference:de,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(A),strong:o(Ee),thematicBreak:o(Oe)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:_e,autolinkProtocol:ge,blockQuote:l(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:pe,characterReferenceMarkerNumeric:pe,characterReferenceValue:me,characterReference:he,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:E,codeIndented:l(v),codeText:l(ae),codeTextData:E,data:E,definition:l(),definitionDestinationString:x,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(ne),hardBreakTrailing:l(ne),htmlFlow:l(re),htmlFlowData:E,htmlText:l(ie),htmlTextData:E,image:l(se),label:O,labelText:D,lineEnding:te,link:l(oe),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:fe,resourceDestinationString:ce,resourceTitleString:le,resource:ue,setextHeading:l(w),setextHeadingLineSequence:ee,setextHeadingText:C,strong:l(),thematicBreak:l()}};cs(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[],position:void 0},o={stack:[r],tokenStack:[],config:t,enter:c,exit:u,buffer:s,resume:d,data:n},l=[],f=[],p=-1;for(;++p<e.length;)f.push(e[p]),(e[p][1].type===`listOrdered`||e[p][1].type===`listUnordered`)&&(e[p][0]===`enter`?l.push(f.length-1):a(f,l.pop()));for(e=f,p=-1;++p<e.length;){let n=t[e[p][0]];e[p][0]===`enter`&&t.beforeEnter.length>0&&i(t.beforeEnter,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),is.call(n,e[p][1].type)&&n[e[p][1].type].call({...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),e[p][0]===`exit`&&t.afterExit.length>0&&i(t.afterExit,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||us).call(o,void 0,e[0])}for(r.position={start:ss(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:ss(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<t.transforms.length;)r=t.transforms[p](r)||r;return r}function i(e,t,n){let r=-1;for(;++r<e.length;)e[r].call(t,n)}function a(e,t){let n=e.length-1,r=t-1,i=-1,a=!1,o,s,c,l,u=[];for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let n=r;for(s=void 0;n--;){let t=e[n];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=n}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),u.push({at:s||r,event:[`exit`,o,t[2]]})}if(t[1].type===`listItemPrefix`){let e={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=e,u.push({at:r,event:[`enter`,e,t[2]]}),c=void 0,l=!0}}}let d=e.splice(t),f=0;for(r=-1;++r<d.length;){for(;f<u.length&&u[f].at===t+r;)e.push(u[f++].event);e.push(d[r])}e[t][1]._spread=a}function o(e,t){return n;function n(n){c.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:`fragment`,children:[]})}function c(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:ss(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw Error("Cannot close `"+e.type+"` ("+Ar({start:e.start,end:e.end})+`): it’s not open`);r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||us).call(this,e,r[0])),n.position.end=ss(e.end)}function d(){return hi(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function h(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function v(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function y(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Oi(this.sliceSerialize(e)).toLowerCase()}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function x(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function S(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function C(){this.data.setextHeadingSlurpLineEnding=!0}function ee(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&n.type===`text`||(n=De(),n.position={start:ss(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=ss(e.end)}function te(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=ss(e.end),this.data.atHardBreak=void 0}else!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function ne(){this.data.atHardBreak=!0}function re(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ie(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ae(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function oe(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function se(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function D(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=ns(t),n.identifier=Oi(t).toLowerCase()}function O(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function ce(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function le(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function ue(){this.data.inReference=void 0}function de(){this.data.referenceType=`collapsed`}function fe(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Oi(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function pe(e){this.data.characterReferenceType=e.type}function me(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=Di(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=bi(t);let i=this.stack[this.stack.length-1];i.value+=r}function he(e){let t=this.stack.pop();t.position.end=ss(e.end)}function ge(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function _e(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function ve(){return{type:`blockquote`,children:[],position:void 0}}function ye(){return{type:`code`,lang:null,meta:null,value:``,position:void 0}}function be(){return{type:`inlineCode`,value:``,position:void 0}}function xe(){return{type:`definition`,identifier:``,label:null,title:null,url:``,position:void 0}}function k(){return{type:`emphasis`,children:[],position:void 0}}function A(){return{type:`heading`,depth:0,children:[],position:void 0}}function j(){return{type:`break`,position:void 0}}function M(){return{type:`html`,value:``,position:void 0}}function Se(){return{type:`image`,title:null,url:``,alt:null,position:void 0}}function N(){return{type:`link`,title:null,url:``,children:[],position:void 0}}function Ce(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[],position:void 0}}function we(e){return{type:`listItem`,spread:e._spread,checked:null,children:[],position:void 0}}function Te(){return{type:`paragraph`,children:[],position:void 0}}function Ee(){return{type:`strong`,children:[],position:void 0}}function De(){return{type:`text`,value:``,position:void 0}}function Oe(){return{type:`thematicBreak`,position:void 0}}}function ss(e){return{line:e.line,column:e.column,offset:e.offset}}function cs(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?cs(e,r):ls(e,r)}}function ls(e,t){let n;for(n in t)if(is.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`afterExit`:case`beforeEnter`:{let r=t[n];r&&e[n].push(r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function us(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+Ar({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ar({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+Ar({start:t.start,end:t.end})+`) is still open`)}function ds(e){let t=this;t.parser=n;function n(n){return as(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function fs(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function ps(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
25
+ `}]}function ms(e,t){let n=t.value?t.value+`
26
+ `:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function hs(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function gs(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _s(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=zi(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function vs(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ys(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function bs(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function xs(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return bs(e,t);let i={src:zi(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Ss(e,t){let n={src:zi(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Cs(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function ws(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return bs(e,t);let i={href:zi(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Ts(e,t){let n={href:zi(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Es(e,t,n){let r=e.all(t),i=n?Ds(n):Os(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
27
+ `}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
28
+ `});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function Ds(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=Os(n[r])}return t}function Os(e){return e.spread??e.children.length>1}function ks(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function As(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function js(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Ms(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ns(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=Dr(t.children[1]),o=Er(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Ps(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function Fs(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var Is=9,Ls=32;function Rs(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(zs(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(zs(t.slice(i),i>0,!1)),a.join(``)}function zs(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===Is||t===Ls;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===Is||t===Ls;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function Bs(e,t){let n={type:`text`,value:Rs(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Vs(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var Hs={blockquote:fs,break:ps,code:ms,delete:hs,emphasis:gs,footnoteReference:_s,heading:vs,html:ys,imageReference:xs,image:Ss,inlineCode:Cs,linkReference:ws,link:Ts,listItem:Es,list:ks,paragraph:As,root:js,strong:Ms,table:Ns,tableCell:Fs,tableRow:Ps,text:Bs,thematicBreak:Vs,toml:Us,yaml:Us,definition:Us,footnoteDefinition:Us};function Us(){}var{defineProperty:Ws}=Object,Gs=typeof self==`object`?self:globalThis,Ks=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new Gs[e](t)},qs=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o){let i=r(t),a=r(n);i===`__proto__`?Ws(e,i,{value:a,configurable:!0,enumerable:!0,writable:!0}):e[i]=a}return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof Gs[e]==`function`?Ks(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}case`-0`:return-0}return n(Ks(a,o),i)};return r},Js=e=>qs(new Map,e)(0),Ys=``,{toString:Xs}={},{keys:Zs,is:Qs}=Object,$s=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=Xs.call(e).slice(8,-1);switch(n){case`Array`:return[1,Ys];case`Object`:return[2,Ys];case`Date`:return[3,Ys];case`RegExp`:return[4,Ys];case`Map`:return[5,Ys];case`Set`:return[6,Ys];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},ec=([e,t])=>e===0&&(t===`function`||t===`symbol`),tc=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=o=>{if(n.has(o))return n.get(o);let[s,c]=$s(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&Qs(o,-0))return r.push([`-0`])-1;break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+c);t=null;break;case`undefined`:return i([-1],o)}return i([s,t],o)}case 1:{if(c){let e=o;return c===`DataView`?e=new Uint8Array(o.buffer):c===`ArrayBuffer`&&(e=new Uint8Array(o)),i([c,[...e]],o)}let e=[],t=i([s,e],o);for(let t of o)e.push(a(t));return t}case 2:{if(c)switch(c){case`BigInt`:return i([c,o.toString()],o);case`Boolean`:case`Number`:case`String`:return i([c,o.valueOf()],o)}if(t&&`toJSON`in o)return a(o.toJSON());let n=[],r=i([s,n],o);for(let t of Zs(o))(e||!ec($s(o[t])))&&n.push([a(t),a(o[t])]);return r}case 3:return i([s,isNaN(o.getTime())?Ys:o.toISOString()],o);case 4:{let{source:e,flags:t}=o;return i([s,{source:e,flags:t}],o)}case 5:{let t=[],n=i([s,t],o);for(let[n,r]of o)(e||!(ec($s(n))||ec($s(r))))&&t.push([a(n),a(r)]);return n}case 6:{let t=[],n=i([s,t],o);for(let n of o)(e||!ec($s(n)))&&t.push(a(n));return n}}let{message:l}=o;return i([s,{name:c,message:l}],o)};return a},nc=(e,{json:t,lossy:n}={})=>{let r=[];return tc(!(t||n),!!t,new Map,r)(e),r},rc=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?Js(nc(e,t)):structuredClone(e):(e,t)=>Js(nc(e,t));function ic(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function ac(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function oc(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||ic,r=e.options.footnoteBackLabel||ac,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=zi(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...rc(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
29
+ `},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
30
+ `}]}}var sc=(function(e){if(e==null)return fc;if(typeof e==`function`)return dc(e);if(typeof e==`object`)return Array.isArray(e)?cc(e):lc(e);if(typeof e==`string`)return uc(e);throw Error(`Expected function, string, or object as test`)});function cc(e){let t=[],n=-1;for(;++n<e.length;)t[n]=sc(e[n]);return dc(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function lc(e){let t=e;return dc(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function uc(e){return dc(t);function t(t){return t&&t.type===e}}function dc(e){return t;function t(t,n,r){return!!(pc(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function fc(){return!0}function pc(e){return typeof e==`object`&&!!e&&`type`in e}function mc(e){return e}var hc=[],gc=`skip`;function _c(e,t,n,r){if(!e||typeof e!=`object`)throw Error("Unexpected value `"+e+"` for `tree`, expected node");let i=!0,a,o,s,c;if(typeof n==`function`||n&&typeof n==`object`?(a=t,o=n,r&&(i=!1)):(o=t,n&&(i=!1)),typeof o==`function`)s=o;else if(o&&typeof o==`object`){if(o.enter!==null&&o.enter!==void 0){if(typeof o.enter==`function`)s=o.enter;else throw Error("Unexpected value `"+o.enter+"` for `visitors.enter`, expected optional visitor")}if(typeof o.exit==`function`)c=o.exit;else throw Error("Unexpected value `"+o.exit+"` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)")}else throw Error("Unexpected value `"+o+"` for `enter` or `visitors`, expected visitor or object with visitors");let l=sc(a),u=i?1:-1;d(e,void 0,[])();function d(e,t,n){let r=e&&typeof e==`object`?e:{};if(typeof r.type==`string`){let t=typeof r.tagName==`string`?r.tagName:typeof r.name==`string`?r.name:void 0;Object.defineProperty(o,"name",{value:`node (`+mc(e.type+(t?`<`+t+`>`:``))+`)`})}return o;function o(){let r=!a||l(e,t,n[n.length-1]||void 0),o=hc;if(s&&r&&(o=vc(s(e,n,t)),o[0]===!1))return o;if(`children`in e&&e.children){let t=e;if(t.children&&o[0]!==`skip`){let e=(i?-1:t.children.length)+u,r=[...n,t];for(;e>-1&&e<t.children.length;){let n=t.children[e],i=d(n,e,r)();if(i[0]===!1)return i;e=typeof i[1]==`number`?i[1]:e+u}}}if(c&&r){let r=vc(c(e,n,t));if(r[0]===`skip`)throw Error("Unexpected value `"+r[0]+"` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing");if(r[0]===!1||typeof r[1]==`number`)return r}return o}}}function vc(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?hc:[e]}function yc(e,t,n,r){let i,a,o;typeof n==`function`||n&&typeof n==`object`?(i=t,a=n,o=r):(a=t,o=n),typeof a==`function`?_c(e,i,xc(a),o):_c(e,i,bc(a),o)}function bc(e){return!e||typeof e!=`object`?e:{enter:typeof e.enter==`function`?xc(e.enter):e.enter,exit:typeof e.exit==`function`?xc(e.exit):e.exit}}function xc(e){return t;function t(t,n,r){return e(t,r,n[n.length-1])}}var Sc={}.hasOwnProperty,Cc={};function wc(e,t){let n=t||Cc,r=new Map,i=new Map,a={all:s,applyData:Ec,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...Hs,...n.handlers},one:o,options:n,patch:Tc,wrap:Oc};return yc(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(Sc.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=rc(n);return r.children=a.all(e),r}return rc(e)}return(a.options.unknownHandler||Dc)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=kc(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=kc(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function Tc(e,t){e.position&&(t.position=kr(e))}function Ec(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,rc(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function Dc(e,t){let n=t.data||{},r=`value`in t&&!(Sc.call(n,`hProperties`)||Sc.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Oc(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
31
+ `});++r<e.length;)r&&n.push({type:`text`,value:`
32
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
33
+ `}),n}function kc(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Ac(e,t){let n=wc(e,t),r=n.one(e,void 0),i=oc(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
34
+ `},i)),a}function jc(e,t){return e&&`run`in e?async function(n,r){let i=Ac(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Ac(n,{file:r,...e||t})}}function Mc(e){if(e)throw e}var Nc=o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function Pc(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Fc(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?Ic(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function Ic(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var Lc={basename:Rc,dirname:zc,extname:Bc,join:Vc,sep:`/`};function Rc(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);Wc(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function zc(e){if(Wc(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function Bc(e){Wc(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function Vc(...e){let t=-1,n;for(;++t<e.length;)Wc(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:Hc(n)}function Hc(e){Wc(e);let t=e.codePointAt(0)===47,n=Uc(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function Uc(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Wc(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var Gc={cwd:Kc};function Kc(){return`/`}function qc(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function Jc(e){if(typeof e==`string`)e=new URL(e);else if(!qc(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return Yc(e)}function Yc(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var Xc=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],Zc=class{constructor(e){let t;t=e?qc(e)?{path:e}:typeof e==`string`||tl(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:Gc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Xc.length;){let e=Xc[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)Xc.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?Lc.basename(this.path):void 0}set basename(e){$c(e,`basename`),Qc(e,`basename`),this.path=Lc.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?Lc.dirname(this.path):void 0}set dirname(e){el(this.basename,`dirname`),this.path=Lc.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?Lc.extname(this.path):void 0}set extname(e){if(Qc(e,`extname`),el(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=Lc.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){qc(e)&&(e=Jc(e)),$c(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?Lc.basename(this.path,this.extname):void 0}set stem(e){$c(e,`stem`),Qc(e,`stem`),this.path=Lc.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new Pr(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function Qc(e,t){if(e&&e.includes(Lc.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+Lc.sep+"`")}function $c(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function el(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function tl(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var nl=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),rl=l(Nc(),1),il={}.hasOwnProperty,al=new class e extends nl{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=Fc()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,rl.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(cl(`data`,this.frozen),this.namespace[e]=t,this):il.call(this.namespace,e)&&this.namespace[e]||void 0:e?(cl(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=dl(e),n=this.parser||this.Parser;return ol(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),ol(`process`,this.parser||this.Parser),sl(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=dl(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);pl(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),ol(`processSync`,this.parser||this.Parser),sl(`processSync`,this.compiler||this.Compiler),this.process(e,r),ul(`processSync`,`process`,t),n;function r(e,r){t=!0,Mc(e),n=r}}run(e,t,n){ll(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=dl(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),ul(`runSync`,`run`,n),r;function i(e,t){Mc(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=dl(t),r=this.compiler||this.Compiler;return sl(`stringify`,r),ll(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(cl(`use`,this.frozen),e!=null){if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`){if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw 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");o(e.plugins),e.settings&&(r.settings=(0,rl.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];Pc(o)&&Pc(r)&&(r=(0,rl.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function ol(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function sl(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function cl(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ll(e){if(!Pc(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function ul(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function dl(e){return fl(e)?e:new Zc(e)}function fl(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function pl(e){return typeof e==`string`||ml(e)}function ml(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var U=pi(),hl=[],gl={allowDangerousHtml:!0},_l=/^(https?|ircs?|mailto|xmpp)$/i,vl=[{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 yl(e){let t=bl(e),n=xl(e);return Sl(t.runSync(t.parse(n),n),e)}function bl(e){let t=e.rehypePlugins||hl,n=e.remarkPlugins||hl,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...gl}:gl;return al().use(ds).use(n).use(jc,r).use(t)}function xl(e){let t=e.children||``,n=new Zc;return typeof t==`string`?n.value=t:``+t,n}function Sl(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||Cl;for(let e of vl)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return yc(e,l),Hr(e,{Fragment:U.Fragment,components:i,ignoreInvalidStyle:!0,jsx:U.jsx,jsxs:U.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in di)if(Object.hasOwn(di,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=di[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function Cl(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||_l.test(e.slice(0,t))?e:``}function wl(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function Tl(e,t,n){let r=sc((n||{}).ignore||[]),i=El(t),a=-1;for(;++a<i.length;)_c(e,o);function o(e,t,n){if(e.type===`text`&&typeof n==`number`)return s(e,t,n);if(r(e,n,t[t.length-1]))return gc}function s(e,t,n){let r=t[t.length-1],o=i[a][0],s=i[a][1],c=0,l=!1,u=[];o.lastIndex=0;let d=o.exec(e.value);for(;d;){let n=d.index,r={index:d.index,input:d.input,stack:[...t,e]},i=s(...d,r);if(typeof i==`string`&&(i=i.length>0?{type:`text`,value:i}:void 0),i===!1)o.lastIndex=n+1;else{if(c!==n&&f({type:`text`,value:e.value.slice(c,n)}),Array.isArray(i))for(let e of i)f(e);else i&&f(i);c=n+d[0].length,l=!0}if(!o.global)break;d=o.exec(e.value)}return l?(c<e.value.length&&f({type:`text`,value:e.value.slice(c)}),r.children.splice(n,1,...u)):u=[e],n+u.length;function f(e){let t=u[u.length-1];t&&t.type===`text`&&e.type===`text`?t.value+=e.value:u.push(e)}}}function El(e){if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let t=[],n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([Dl(e[0]),Ol(e[1])])}return t}function Dl(e){return typeof e==`string`?new RegExp(wl(e),`g`):e}function Ol(e){return typeof e==`function`?e:function(){return e}}function kl(e){Tl(e,[/\r?\n|\r/g,Al])}function Al(){return{type:`break`}}function jl(){return function(e){kl(e)}}function Ml(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}var Nl=`phrasing`,Pl=[`autolink`,`link`,`image`,`label`];function Fl(){return{transforms:[Ul],enter:{literalAutolink:Ll,literalAutolinkEmail:Rl,literalAutolinkHttp:Rl,literalAutolinkWww:Rl},exit:{literalAutolink:Hl,literalAutolinkEmail:Vl,literalAutolinkHttp:zl,literalAutolinkWww:Bl}}}function Il(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:Nl,notInConstruct:Pl},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:Nl,notInConstruct:Pl},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:Nl,notInConstruct:Pl}]}}function Ll(e){this.enter({type:`link`,title:null,url:``,children:[],position:void 0},e)}function Rl(e){this.config.enter.autolinkProtocol.call(this,e)}function zl(e){this.config.exit.autolinkProtocol.call(this,e)}function Bl(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function Vl(e){this.config.exit.autolinkEmail.call(this,e)}function Hl(e){this.exit(e)}function Ul(e){Tl(e,[[/(?<![\da-z])(https?:\/\/|www(?=\.))([\w-]*\.[\w\-.]*)([^\t\n\r ]*)/gi,Wl],[/(?<![\w+\-.@])xmpp:([\w+\-.]+)@([\w-]+(?:\.[\w-]+)+)(\/(?:[\w\-/]|\.(?=[\dA-Za-z]))*)?/g,ql],[/(?<![\w+\-.@])mailto:([\w+\-.]+)@([\w-]+(?:\.[\w-]+)+)/g,Kl],[/(?<![\w+\-.]|(?:^|[^\d@A-Za-z])(?:mailto|xmpp):)([\w+\-.]+)@([\w-]+(?:\.[\w-]+)+)/g,Gl]],{ignore:[`link`,`linkReference`]})}function Wl(e,t,n,r,i){if(!Xl(i))return!1;let a=``;if(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),Ii(n.charCodeAt(0))||!Jl(n))return!1;let o=Yl(n+r),s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0],position:void 0}],position:void 0};return o[1]?[s,{type:`text`,value:o[1],position:void 0}]:s}function Gl(e,t,n){return!/[\d\-_]$/.test(n)&&{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n,position:void 0}],position:void 0}}function Kl(e,t,n){if(/[\d\-_]$/.test(n))return!1;let r=`mailto:`+t+`@`+n;return{type:`link`,title:null,url:r,children:[{type:`text`,value:r,position:void 0}],position:void 0}}function ql(e,t,n,r,i){if(/[\d\-_]$/.test(n)||r&&(!/[A-Za-z]$/.test(r)||i.input.charAt(i.index+e.length)===`@`))return!1;let a=`xmpp:`+t+`@`+n+(r||``);return{type:`link`,title:null,url:a,children:[{type:`text`,value:a,position:void 0}],position:void 0}}function Jl(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[\dA-Za-z]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[\dA-Za-z]/.test(t[t.length-2])))}function Yl(e){let t=e.length;for(;t>0;){let n=e.charCodeAt(t-1);if(n===33||n===34||n===38||n===39||n===41||n===44||n===46||n===58||n===59||n===60||n===62||n===63||n===93||n===125)t--;else break}if(t===e.length)return[e,void 0];let n=e.slice(t);e=e.slice(0,t);let r=n.indexOf(`)`),i=Ml(e,`(`),a=Ml(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function Xl(e){let t=e.input.charCodeAt(e.index-1);return e.index===0||Li(t)||Ii(t)}W.peek=au;function Zl(){this.buffer()}function Ql(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function $l(){this.buffer()}function eu(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function tu(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Oi(this.sliceSerialize(e)).toLowerCase(),n.label=t}function nu(e){this.exit(e)}function ru(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Oi(this.sliceSerialize(e)).toLowerCase(),n.label=t}function iu(e){this.exit(e)}function au(){return`[`}function W(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function ou(){return{enter:{gfmFootnoteCallString:Zl,gfmFootnoteCall:Ql,gfmFootnoteDefinitionLabelString:$l,gfmFootnoteDefinition:eu},exit:{gfmFootnoteCallString:tu,gfmFootnoteCall:nu,gfmFootnoteDefinitionLabelString:ru,gfmFootnoteDefinition:iu}}}function su(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:W},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
35
+ `:` `)+r.indentLines(r.containerFlow(e,a.current()),t?lu:cu))),s(),o}}function cu(e,t,n){return t===0?e:lu(e,t,n)}function lu(e,t,n){return(n?``:` `)+e}var uu=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];hu.attention=gu,hu.peek=_u;function du(){return{canContainEols:[`delete`],enter:{strikethrough:pu},exit:{strikethrough:mu}}}function fu(){return{handlers:{delete:hu},unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:uu}]}}function pu(e){this.enter({type:`delete`,children:[],position:void 0},e)}function mu(e){this.exit(e)}function hu(e,t,n,r){let i=n.createTracker(r),a=n.stack.includes(`strikethrough`)?`~`:`~~`,o=n.enter(`strikethrough`),s=i.move(a);return s+=n.containerPhrasing(e,{...i.current(),before:s,after:`~`}),s+=i.move(a),o(),s}function gu(){return{construct:`strikethrough`,markers:[`~`],sizes:[2,1]}}function _u(){return`~`}function vu(e){return e.length}function yu(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||vu,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=bu(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=xu(r[d]);else{let e=xu(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u],r=n.fillRows===!1?Math.max(1,o[u===1?0:u].length):l;d=-1;let i=[];for(;++d<r;){let o=e[d]||``,s=``,l=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];if(n===114)s=` `.repeat(e);else if(n===99){let t=e/2;e%2?(s=` `.repeat(t+.5),l=` `.repeat(t-.5)):(s=` `.repeat(t),l=s)}else l=` `.repeat(e)}n.delimiterStart!==!1&&!d&&i.push(`|`),n.padding===!1||n.alignDelimiters===!1&&o===``||n.delimiterStart===!1&&!d||i.push(` `),n.alignDelimiters!==!1&&i.push(s),i.push(o),n.alignDelimiters!==!1&&i.push(l),n.padding!==!1&&i.push(` `),(n.delimiterEnd!==!1||d!==r-1)&&i.push(`|`)}m.push(n.delimiterEnd===!1?i.join(``).replace(/ +$/,``):i.join(``))}return m.join(`
36
+ `)}function bu(e){return e==null?``:String(e)}function xu(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var Su=sc([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function Cu(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),wu);return i(),o}function wu(e,t,n){return`>`+(n?``:` `)+e}function Tu(e,t){return Eu(e,t.inConstruct,!0)&&!Eu(e,t.notInConstruct,!1)}function Eu(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Du(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;){let e=n.unsafe[i];if(e.character===`
37
+ `&&!e.before&&!e.after&&Tu(n.stack,e))return/[\t ]/.test(r.before)?``:` `}return`\\
38
+ `}function Ou(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function ku(e,t){return!(t.options.fences!==!1||!e.value||e.lang||!/[^\n\r ]/.test(e.value)||/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}function Au(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function ju(e,t,n,r){let i=Au(n),a=e.value||``;if(ku(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,Mu);return e(),t}let o=n.createTracker(r),s=i.repeat(Math.max(Ou(a,i)+1,3)),c=n.enter(`codeFenced`),l=i==="`"?`GraveAccent`:`Tilde`,u=o.move(s);if(e.lang){let t=n.enter(`codeFencedLang${l}`);u+=o.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...o.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${l}`);u+=o.move(` `),u+=o.move(n.safe(e.meta,{before:u,after:`
39
+ `,encode:["`"],...o.current()})),t()}return u+=o.move(`
40
+ `),a&&(u+=o.move(a+`
41
+ `)),u+=o.move(s),c(),u}function Mu(e,t,n){return(n?``:` `)+e}function Nu(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Pu(e,t,n,r){let i=Nu(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
42
+ `,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function Fu(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Iu(e){let t=e.codePointAt(0);return t===void 0?``:String.fromCodePoint(t)}function Lu(e){let t=e.codePointAt(e.length-2);return t!==void 0&&t>65535?e.slice(-2):e.slice(-1)}function Ru(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function zu(e,t,n){let r=Yi(e),i=Yi(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Bu(e){if(e.charCodeAt(0)!==60)return;let t=e.charCodeAt(1);if(t===33){let t=e.charCodeAt(2);return t===45?2:t===91?5:ki(t)?4:void 0}if(t===63)return 3;let n=t===47,r=n?2:1,i=r,a=e.charCodeAt(i);if(!ki(a))return;for(;a===45||Ai(a);)a=e.charCodeAt(++i);let o=e.slice(r,i).toLowerCase();return!n&&a!==47&&qa.includes(o)?1:Ka.includes(o)?6:7}var Vu=new Map([[`*`,!1],[`_`,!0]]);function Hu(e,t,n){let r=new Set;for(let i of e){let e=n.get(i);if(e&&i.attention&&t.some(e=>e.attention===i.attention))for(let t of e.tokens)r.add(t.attention)}let i=[];for(let t of e)t.attention&&r.delete(t.attention)&&i.push(t.attention);return i.reverse(),i}function Uu(e,t,n){let r=[],i=new Map,a=new Map,o=0;for(;o<e.length;){if(!e[o].attention){o++;continue}let s=e[o].value.charAt(0),c=Vu.get(s),l=o+1;for(;l<e.length&&e[l].attention&&e[l].value.charAt(0)===s;)l++;let u=o?e[o-1].value:t,d=Yi(u.charCodeAt(u.length-1)),f=Yi((l<e.length?e[l].value:n).charCodeAt(0)),p=!f||f===2&&!!d,m=!d||d===2&&!!f,h={tokens:e.slice(o,l),markers:[],start:0,end:0,open:c?p&&(!!d||!m):p,close:c?m&&(!!f||!p):m,split:c!==void 0};for(let e of h.tokens){i.set(e,[...h.tokens]),a.set(e,h);let t=e.value.length;for(;t--;)h.markers.push(e)}h.end=h.markers.length,r.push(h),o=l}for(Ku(r,i),o=-1;++o<e.length;){let t=i.get(e[o]);if(t)return{attention:Hu(e,t,a),index:o}}}function Wu(e,t){let n=e[t?0:e.length-1];if(!n||n.attention)return;let r=t?Iu(n.value):Lu(n.value),i=Ru(r.codePointAt(0));if(t)n.value=i+n.value.slice(r.length);else{let e=n.value.slice(0,n.value.length-r.length),t=0;for(;e.charCodeAt(e.length-1-t)===92;)t++;t%2&&(e+=`\\`),n.value=e+i}}function Gu(e,t,n,r,i){for(let a of n.attention){let o=t.get(a)||a.sequences[0];for(let s of a.sequences){if(s===o)continue;let c=new Map(t);c.set(a,s);let l=Qu(e,c,r,i),u=Uu(l,r,i);if(!u||u.index>n.index)return{chosen:c,mistake:u,tokens:l}}}}function Ku(e,t){let n=new Map;for(let r of e){let e=r.tokens[0].value.charAt(0),i=n.get(e);i||(i=[],n.set(e,i));let a=r.close?i.length:0;for(;a--&&r.start<r.end;){let e=i[a],n=e.end-e.start,o=r.end-r.start;if(r.split?(e.close||r.open)&&o%3&&!((n+o)%3):n!==e.markers.length||n!==o)continue;let s=r.split?n>1&&o>1?2:1:o,c=e.markers.slice(e.end-s,e.end),l=r.markers.slice(r.start,r.start+s),u=c[0],d=l[0];if(u===c[s-1]&&u.value.length===s&&d===l[s-1]&&d.value.length===s&&u.attention===d.attention)t.delete(u),t.delete(d);else{let e=[...new Set([...c,...l])];for(let n of e){let r=t.get(n);r&&r.push(...e)}}e.end-=s,r.start+=s,e.start===e.end&&i.splice(a,1),a=i.length}r.open&&r.start<r.end&&i.push(r)}}function qu(e,t,n){if(t.length===0)throw Error("Cannot serialize `"+e+"` as attention without markers, expected one or more markers");if(n.length===0)throw Error("Cannot serialize `"+e+"` as attention without sizes, expected one or more sizes");for(let t of n)if(!Number.isSafeInteger(t)||t<1)throw Error("Cannot serialize `"+e+"` as attention with `"+t+"` as size, expected positive integer");let r=[];for(let i of t){if(i.length!==1)throw Error("Cannot serialize `"+e+"` as attention with `"+i+"` as marker, expected a single ascii character");if(!Fi(i.charCodeAt(0)))throw Error("Cannot serialize `"+e+"` as attention with `"+i+"` as marker, expected ascii punctuation");for(let e of n)r.push(i.repeat(e))}return r}function Ju(e,t,n){let r=t.indexStack,i=e.children||[],a=[],o=-1,s=n.before;r.push(-1);let c=t.createTracker(n);for(;++o<i.length;){let l=i[o],u;if(r[r.length-1]=o,o+1<i.length){let n=t.handle.handlers[i[o+1].type];n&&n.peek&&(n=n.peek),u=n?Iu(n(i[o+1],e,t,{before:``,after:``,...c.current()})):``}else u=n.after;let d=a[a.length-1];typeof d==`string`&&(s===`\r`||s===`
43
+ `)&&l.type===`html`&&Bu(l.value)!==7&&(a[a.length-1]=d.replace(/(\r?\n|\r)$/,` `),s=` `,c=t.createTracker(n),c.move($u(a,n.before,n.after)));let f=t.handle.handlers[l.type];if(f&&f.attention){let e=Yu(l,f.attention,t,c);if(!e)continue;a.push(e),s=Lu(e.sequences[0])}else{let n=t.handle(l,e,t,{...c.current(),after:u,before:s});if(!n)continue;c.move(n),a.push(n),s=Lu(n)}}return r.pop(),a}function Yu(e,t,n,r){let{construct:i,markers:a,sizes:o}=t(e,n),s=qu(e.type,a,o),c=s[0],l=n.enter(i),u=n.createTracker(r.current());u.move(c);let d=Ju(e,n,{...u.current(),before:c,after:c});if(l(),d.length!==0)return r.move(c),r.move($u(d,c,c)),r.move(c),{children:d,sequences:s}}function Xu(e,t,n,r){let i=Qu(e,t,n,r),a=Uu(i,n,r);for(;a;){let o=Gu(e,t,a,n,r);if(!o)return;t=o.chosen,i=o.tokens,a=o.mistake}return i}function Zu(e,t,n,r){let i=n,a=-1;for(;++a<e.length;){let o=e[a];if(typeof o==`string`){i=``;continue}let s=a===e.length-1?r:``,c=o.sequences.find(function(t){let r=t.charAt(0);return r!==i.charAt(0)&&r!==s.charAt(0)||e.length===1&&Vu.has(r)&&t.length>n.length})||o.sequences[0];c!==o.sequences[0]&&t.set(o,c),Zu(o.children,t,c,c),i=c}}function Qu(e,t,n,r){let i=[],a,o=Lu(n),s=-1;for(;++s<e.length;){let n=e[s];if(typeof n==`string`){let e={value:n,attention:void 0};a&&a===Iu(n)&&Wu([e],!0),a=void 0,i.push(e),e.value&&(o=Lu(e.value));continue}let c=t.get(n)||n.sequences[0],l=c.charAt(0),u=e[s+1],d=o,f=Iu(u===void 0?r:typeof u==`string`?u:t.get(u)||u.sequences[0]),p=Qu(n.children,t,c,c),m=p[0].value,h=zu(d.charCodeAt(d.length-1),m.charCodeAt(0),l);h.inside&&Wu(p,!0);let g=Lu(p[p.length-1].value),_=zu(f.charCodeAt(0),g.charCodeAt(g.length-1),l);_.inside&&Wu(p,!1),h.outside&&d!==`
44
+ `&&d!==`\r`&&Wu(i,!1),_.outside&&(a=f),i.push({value:c,attention:n},...p,{value:c,attention:n}),o=c.charAt(c.length-1)}return i}function $u(e,t,n){let r=new Map;Zu(e,r,t,n);let i=(r.size>0?Xu(e,r,t,n):void 0)||Xu(e,new Map,t,n)||Qu(e,new Map,t,n),a=``;for(let e of i)a+=e.value;return a}ed.attention=G,ed.peek=td;function ed(e,t,n,r){let i=n.enter(`phrasing`),a=Yu(e,G,n,n.createTracker(r)),o=a?$u([a],r.before,r.after):``;return i(),o}function G(e,t){return{construct:`emphasis`,markers:Fu(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[1]}}function td(e,t,n){return n.options.emphasis||`*`}function K(e,t){let n=!1;return yc(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&hi(e)&&(t.options.setext||n))}function q(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(K(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
45
+ `,after:`
46
+ `});return r(),t(),o+`
47
+ `+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
48
+ `))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
49
+ `,...a.current()}),u=l.charCodeAt(0);return(u===9||u===32)&&(l=Ru(u)+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}nd.peek=rd;function nd(e){return e.value||``}function rd(){return`<`}id.peek=ad;function id(e,t,n,r){let i=Nu(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function ad(){return`!`}od.peek=sd;function od(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function sd(){return`!`}cd.peek=ld;function cd(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e);if(!e.atBreak)continue;let i;for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function ld(){return"`"}function ud(e,t){let n=hi(e);return!(t.options.resourceLink||!e.url||e.title||!e.children||e.children.length!==1||e.children[0].type!==`text`||n!==e.url&&`mailto:`+n!==e.url||!/^[a-z][+\-.a-z]+:/i.test(e.url)||/[\0- <>\u007F]/.test(e.url))}dd.peek=fd;function dd(e,t,n,r){let i=Nu(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r);if(ud(e,n)){let t=n.stack;n.stack=t.filter(function(e){return e!==`phrasing`});let r=n.enter(`autolink`),i=o.move(`<`);return i+=o.move(n.containerPhrasing(e,{before:i,after:`>`,...o.current()})),i+=o.move(`>`),r(),n.stack=t,i}let s=n.enter(`link`),c=n.enter(`label`),l=o.move(`[`),u=n.containerPhrasing(e,{before:l,after:`](`,...o.current()});l+=o.move(u),c(),l+=o.move(`](`);let d=/[\0- \u007F]/.test(e.url),f=r.before.charAt(r.before.length-1),p=e.title||void 0;if(!p&&!d&&(f===`
50
+ `||f===`\r`)){let e=0;for(;e<u.length&&u.charCodeAt(e)!==93;)e+=u.charCodeAt(e)===92?2:1;u.charCodeAt(e+1)===58&&(p=``)}return!e.url&&typeof p==`string`||d?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:typeof p==`string`?` `:`)`,...o.current()}))),c(),typeof p==`string`&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(p,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function fd(e,t,n){return ud(e,n)?`<`:`[`}pd.peek=md;function pd(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function md(){return`[`}function hd(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function gd(e){let t=hd(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function _d(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function vd(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function yd(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?_d(n):hd(n),s=e.ordered?o===`.`?`)`:`.`:gd(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if(o!==`*`&&o!==`-`||!t||t.children&&t.children[0]||n.stack[n.stack.length-1]!==`list`||n.stack[n.stack.length-2]!==`listItem`||n.stack[n.stack.length-3]!==`list`||n.stack[n.stack.length-4]!==`listItem`||n.indexStack[n.indexStack.length-1]!==0||n.indexStack[n.indexStack.length-2]!==0||n.indexStack[n.indexStack.length-3]!==0||(c=!0),vd(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function bd(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function xd(e,t,n,r){let i=bd(n),a=n.bulletCurrent||hd(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function Sd(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}function Cd(e,t,n,r){if(!e.children.some(function(e){return Su(e)}))return n.containerFlow(e,r);let i=n.enter(`phrasing`),a=n.containerPhrasing(e,r);return i(),a}function wd(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Td.attention=Ed,Td.peek=Dd;function Td(e,t,n,r){let i=n.enter(`phrasing`),a=Yu(e,Ed,n,n.createTracker(r)),o=a?$u([a],r.before,r.after):``;return i(),o}function Ed(e,t){return{construct:`strong`,markers:wd(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[2]}}function Dd(e,t,n){return n.options.strong||`*`}function Od(e,t,n,r){let i=t?t.children:[],a=n.indexStack[n.indexStack.length-1];return n.safe(e.value,{...r,afterNode:i[a+1],beforeNode:i[a-1]})}function kd(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Ad(e,t,n){let r=(vd(n)+(n.options.ruleSpaces?` `:``)).repeat(kd(n));return n.options.ruleSpaces?r.slice(0,-1):r}var jd={blockquote:Cu,break:Du,code:ju,definition:Pu,emphasis:ed,hardBreak:Du,heading:q,html:nd,image:id,imageReference:od,inlineCode:cd,link:dd,linkReference:pd,list:yd,listItem:xd,paragraph:Sd,root:Cd,strong:Td,text:Od,thematicBreak:Ad};function Md(){return{enter:{table:Nd,tableData:Ld,tableHeader:Ld,tableRow:Fd},exit:{codeText:Rd,table:Pd,tableData:Id,tableHeader:Id,tableRow:Id}}}function Nd(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[],position:void 0},e),this.data.inTable=!0}function Pd(e){this.exit(e),this.data.inTable=void 0}function Fd(e){this.enter({type:`tableRow`,children:[],position:void 0},e)}function Id(e){this.exit(e)}function Ld(e){this.enter({type:`tableCell`,children:[],position:void 0},e)}function Rd(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,zd));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function zd(e,t){return t===`|`?t:e}function Bd(e){let{tableCellPadding:t,tablePipeAlign:n,stringLength:r}=e||{},i=t?` `:`|`;return{handlers:{inlineCode:d,table:a,tableCell:s,tableRow:o},join:[Vd],unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
51
+ `,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}]};function a(e,t,n,r){let i=l(e,n,r),a=i[0];if(a){let t=e.align?e.align.length:0,n=-1;if(!t)for(;++n<i.length;)i[n].length>t&&(t=i[n].length);for(;a.length<t;)a.push(``)}return c(i,e.align)}function o(e,t,n,r){let i=c([u(e,n,r)]);return i.slice(0,i.indexOf(`
52
+ `))}function s(e,t,n,r){let a=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:i,after:i});return o(),a(),s}function c(e,i){return yu(e,{align:i,alignDelimiters:n,fillRows:!1,padding:t,stringLength:r})}function l(e,t,n){let{children:r}=e,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=u(r[i],t,n);return o(),a}function u(e,t,n){let{children:r}=e,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=s(r[i],e,t,n);return o(),a}function d(e,t,n){let r=jd.inlineCode(e,t,n);if(!n.stack.includes(`tableCell`))return r;let i=[],a=0,o=r.indexOf(`|`);for(;o!==-1;){let e=o;for(;e>a&&r.charCodeAt(e-1)===92;)e--;i.push(r.slice(a,o)),(o-e)%2==0&&i.push(`\\`),a=o,o=r.indexOf(`|`,o+1)}return i.push(r.slice(a)),i.join(``)}}function Vd(e,t,n,r){if(e.type===`table`&&n.type===`listItem`&&n.spread===!1&&(t.type===`definition`||t.type===`heading`&&Hd(t,r)||t.type===`paragraph`||t.type===`table`))return 1}function Hd(e,t){let n=!1;return yc(e,function(e){if(e.type===`break`||`value`in e&&/\r?\n|\r/.test(e.value))return n=!0,!1}),!!((!e.depth||e.depth<3)&&hi(e)&&(t.options.setext||n))}function Ud(){return{exit:{taskListCheckValueChecked:Gd,taskListCheckValueUnchecked:Gd,paragraph:Kd}}}function Wd(){return{handlers:{paragraph:qd},join:[Jd]}}function Gd(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function Kd(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start={...n.position.start}))}}this.exit(e)}function qd(e,t,n,r){if(!t||t.type!==`listItem`||Yd(t)!==e)return jd.paragraph(e,t,n,r);let i=`[`+(t.checked?`x`:` `)+`] `,a=n.createTracker(r);return a.move(i),i+jd.paragraph(e.children.length>0?e:{type:`paragraph`,children:[{type:`text`,value:` `}]},t,n,{...r,...a.current()})}function Jd(e,t,n){if(e.type!==`definition`||n.type!==`listItem`)return;let r=Yd(n);if(r&&n.children.indexOf(e)<n.children.indexOf(r))return 0}function Yd(e){if(typeof e.checked==`boolean`)for(let t of e.children){if(t.type===`paragraph`)return t;if(t.type!==`definition`)return}}function Xd(){return[Fl(),ou(),du(),Md(),Ud()]}function Zd(e){return{extensions:[Il(),su(e),fu(),Bd(e),Wd()]}}var Qd={tokenize:pf,partial:!0},$d={tokenize:mf,partial:!0},ef={tokenize:hf,partial:!0},tf={tokenize:gf,partial:!0},nf={tokenize:_f,partial:!0},rf={name:`wwwAutolink`,tokenize:df,previous:vf},af={name:`protocolAutolink`,tokenize:ff,previous:yf},of={name:`emailAutolink`,tokenize:uf,previous:bf},sf={};function cf(){return{text:sf}}for(var lf=48;lf<123;)sf[lf]=of,lf++,lf===58?lf=65:lf===91&&(lf=97);sf[43]=of,sf[45]=of,sf[46]=of,sf[95]=of,sf[72]=[of,af],sf[104]=[of,af],sf[87]=[of,rf],sf[119]=[of,rf];function uf(e,t,n){let r=this,i,a;return o;function o(t){return!xf(t)||!bf.call(r,r.previous)||Sf(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return xf(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(nf,u,l)(t):t===45||t===95||Ai(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&ki(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function df(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!vf.call(r,r.previous)||Sf(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(Qd,e.attempt($d,e.attempt(ef,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function ff(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&yf.call(r,r.previous)&&!Sf(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(ki(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||Mi(t)||R(t)||Li(t)||Ii(t)?n(t):e.attempt($d,e.attempt(ef,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function pf(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function mf(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(tf,c,s)(t):t===null||R(t)||Li(t)||t!==45&&Ii(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function hf(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(tf,t,a)(o):o===null||R(o)||Li(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function gf(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||R(o)||Li(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||R(e)||Li(e)?t(e):r(e)}function a(e){return ki(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):ki(t)?(e.consume(t),o):n(t)}}function _f(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return Ai(e)?n(e):t(e)}}function vf(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||R(e)}function yf(e){return!ki(e)}function bf(e){return!(e===47||xf(e))}function xf(e){return e===43||e===45||e===46||e===95||Ai(e)}function Sf(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var Cf={tokenize:jf,partial:!0};function wf(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:Of,continuation:{tokenize:kf},exit:Af}},text:{91:{name:`gfmFootnoteCall`,tokenize:Df},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:Tf,resolveTo:Ef}}}}function Tf(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=Oi(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function Ef(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function Df(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||R(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(Oi(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return R(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function Of(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||R(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=Oi(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return R(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),B(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function kf(e,t,n){return e.check(ra,t,e.attempt(Cf,t,n))}function Af(e){e.exit(`gfmFootnoteDefinition`)}function jf(e,t,n){let r=this;return B(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function Mf(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&xi(o,o.length,0,Xi(s,e.slice(r+1,n),t)),xi(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),xi(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=Yi(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=Yi(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var Nf=class{constructor(){this.map=[],this.index=new Map}add(e,t,n){Pf(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function Pf(e,t,n,r){if(n===0&&r.length===0)return;let i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}let a=[t,n,r];e.map.push(a),e.index.set(t,a)}function Ff(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function If(){return{flow:{null:{name:`table`,tokenize:Lf,resolveAll:Rf}}}}function Lf(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let{type:e}=r.events[t][1];if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124||(o=!0,a+=1),u(e)}function u(t){return t===null?n(t):L(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):z(t)?B(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||R(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,z(t)?B(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return z(t)?B(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||L(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return z(t)?B(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||L(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||L(n)?(e.exit(`tableRow`),t(n)):z(n)?B(e,C,`whitespace`)(n):(e.enter(`data`),ee(n))}function ee(t){return t===null||t===124||R(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?w:ee)}function w(t){return t===92||t===124?(e.consume(t),ee):ee(t)}}function Rf(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new Nf;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(Bf(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=zf(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=zf(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=zf(f,t,o,i,n,d)):(o[0]=o[1],d=zf(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&Bf(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=Ff(t.events,n))}return e}function zf(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},Vf(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=Vf(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=Vf(t.events,n[2]),a=Vf(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},Vf(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function Bf(e,t,n,r,i){let a=[],o=Vf(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function Vf(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var Hf={name:`tasklistCheck`,tokenize:Wf};function Uf(){return{text:{91:Hf}}}function Wf(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return R(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return L(r)?t(r):z(r)?e.check({tokenize:Gf},t,n)(r):n(r)}}function Gf(e,t,n){return B(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function J(e){return wi([cf(),wf(),Mf(e),If(),Uf()])}var Kf={};function qf(e){let t=this,n=e||Kf,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(J(n)),a.push(Xd()),o.push(Zd(n))}var Jf=/^(https?:|mailto:)/i;function Yf(e){return Jf.test(e.trim())?e:``}var Xf={a:({href:e,children:t})=>e?(0,U.jsx)(`a`,{href:e,target:`_blank`,rel:`noopener noreferrer`,children:t}):(0,U.jsx)(`span`,{children:t}),img:({src:e,alt:t})=>(0,U.jsx)(`a`,{href:typeof e==`string`?e:void 0,target:`_blank`,rel:`noopener noreferrer`,children:t||(typeof e==`string`?e:``)})};function Zf(e,t){let n=(0,v.useRef)(!0);return(0,v.useEffect)(()=>{let r=e.current;if(!r)return;let i=r.scrollTop,a=null,o=e=>{n.current!==e&&(n.current=e,t?.(e))},s=e=>{for(let t=e;t&&t!==r;t=t.parentElement)if(t.scrollHeight>t.clientHeight+1){let e=getComputedStyle(t).overflowY;if(e===`auto`||e===`scroll`)return!0}return!1},c=()=>{r.scrollHeight-r.scrollTop-r.clientHeight<=2?o(!0):r.scrollTop<i&&o(!1),i=r.scrollTop},l=e=>{e.deltaY<0&&!s(e.target)&&o(!1)},u=e=>{a=e.touches[0]?.clientY??null},d=e=>{let t=e.touches[0]?.clientY;t!==void 0&&(a!==null&&t>a+2&&!s(e.target)&&o(!1),a=t)},f=e=>{let t=e.target;t.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName)||(e.key===`ArrowUp`||e.key===`PageUp`||e.key===`Home`)&&o(!1)};return r.addEventListener(`scroll`,c,{passive:!0}),r.addEventListener(`wheel`,l,{passive:!0}),r.addEventListener(`touchstart`,u,{passive:!0}),r.addEventListener(`touchmove`,d,{passive:!0}),r.addEventListener(`keydown`,f),()=>{r.removeEventListener(`scroll`,c),r.removeEventListener(`wheel`,l),r.removeEventListener(`touchstart`,u),r.removeEventListener(`touchmove`,d),r.removeEventListener(`keydown`,f)}},[e,t]),n}function Qf({as:e=`div`,className:t,label:n,follow:r=!1,focusable:i=`overflow`,id:a,hidden:o,children:s}){let c=(0,v.useRef)(null),[l,u]=(0,v.useState)({overflow:!1,more:!1}),d=Zf(c),f=(0,v.useCallback)(()=>{let e=c.current;if(!e)return;let t=e.scrollHeight>e.clientHeight+1,n=t&&e.scrollHeight-e.scrollTop-e.clientHeight>1;u(e=>e.overflow===t&&e.more===n?e:{overflow:t,more:n})},[]);(0,v.useLayoutEffect)(()=>{let e=c.current;e&&r&&d.current&&(e.scrollTop=e.scrollHeight),f()}),(0,v.useEffect)(()=>{let e=c.current;if(!e)return;e.addEventListener(`scroll`,f,{passive:!0});let t=new ResizeObserver(f);return t.observe(e),()=>{e.removeEventListener(`scroll`,f),t.disconnect()}},[f]);let p=e,m=i===`always`||l.overflow;return(0,U.jsx)(p,{ref:c,id:a,hidden:o,className:t,"data-more":l.more?`true`:void 0,role:m?`group`:void 0,"aria-label":m?n:void 0,tabIndex:m?0:void 0,children:s})}function $f({label:e,className:t,follow:n=!1,children:r}){return(0,U.jsx)(Qf,{as:`pre`,className:t,label:e,follow:n,focusable:`always`,children:r})}var ep=[qf],tp=[qf,jl],np=(0,v.memo)(function({text:e,live:t=!1,breaks:n=!1}){let r=(0,v.useMemo)(()=>({...Xf,pre:({children:e})=>(0,U.jsx)(Qf,{as:`pre`,label:D(`codeBlock`),follow:t,children:e})}),[t]);return(0,U.jsx)(`div`,{className:`markdown`,children:(0,U.jsx)(yl,{remarkPlugins:n?tp:ep,urlTransform:Yf,components:r,skipHtml:!0,children:e})})});function rp({patch:e}){let t=e.split(`
53
+ `).filter(e=>!e.startsWith(`Index:`)&&!e.startsWith(`=====`));return(0,U.jsx)($f,{className:`diff`,label:D(`diff`),children:t.map((e,t)=>{let n=e.startsWith(`@@`)?`hunk`:e.startsWith(`+`)&&!e.startsWith(`+++`)?`add`:e.startsWith(`-`)&&!e.startsWith(`---`)?`del`:``;return(0,U.jsx)(`div`,{className:n,children:e||` `},t)})})}function ip({text:e}){let t=[],n=e;for(;n.length>0;){let e=n.indexOf(``),r=e>=0?n.indexOf(``,e):-1;if(e<0||r<0){t.push({mark:!1,text:n,key:`p${t.length}`});break}e>0&&t.push({mark:!1,text:n.slice(0,e),key:`p${t.length}`}),t.push({mark:!0,text:n.slice(e+1,r),key:`p${t.length}`}),n=n.slice(r+1)}return(0,U.jsx)(`span`,{children:t.map(e=>e.mark?(0,U.jsx)(`mark`,{children:e.text},e.key):(0,U.jsx)(`span`,{children:e.text},e.key))})}var ap=[`accept`,`hold`,`refuse`];function op(e,t){return e.letterQuota??(t?30:10)}var sp=`wss://relay.tenonai.cn`,cp=[`auto`,`manual`,`skip`];function lp(e){return e.permissionMode??(e.directEdits?`auto`:`manual`)}function up(e){if(e.questions&&e.questions.length>0)return e.questions;let t=e.options?.map(e=>({label:e}));return[{question:e.question??``,...t?.length?{options:t}:{}}]}var dp=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function fp(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:dp(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var pp=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},mp=e=>{let t=pp(e);return t.charAt(0).toUpperCase()+t.slice(1)},hp=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),gp={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function _p(e){return e!=null}function vp(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??gp.width,a=e.size??e.height??gp.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?hp(...c):hp(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??gp[`stroke-width`])*Number(e.size??e.width??gp.width)/Number(t.size??t.width??gp.width):t.strokeWidth??gp[`stroke-width`];return[`svg`,{...Object.entries(gp).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&_p(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&_p(t.width)&&{[r(`width`)]:t.width},...`height`in t&&_p(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function yp(e,t={}){return vp(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var bp=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},xp=(0,v.createContext)({}),Sp=()=>(0,v.useContext)(xp),Cp=(0,v.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:y=``}=Sp()??{},b=!!c||bp(d),[x,S,C=[]]=yp(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:hp(y,s),hasA11yProp:b,attributes:d});return(0,v.createElement)(x,{ref:f,...S},[...C.map(([e,t])=>(0,v.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function Y(e,t=[],n=[]){let r=typeof e==`string`?fp(e,t,n):e,i=(0,v.forwardRef)(({className:e,...t},n)=>(0,v.createElement)(Cp,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=mp(r.name)),i}var wp={name:`activity`,size:24,node:[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]};wp.node;var Tp=Y(wp),Ep={name:`archive`,size:24,node:[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]};Ep.node;var Dp=Y(Ep),Op={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};Op.node;var kp=Y(Op),Ap={name:`ban`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M4.929 4.929 19.07 19.071`,key:`196cmz`}]]};Ap.node;var jp=Y(Ap),Mp={name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]};Mp.node;var Np=Y(Mp),Pp={name:`chart-column`,size:24,node:[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]],aliases:[`bar-chart-3`]};Pp.node;var Fp=Y(Pp),Ip={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};Ip.node;var Lp=Y(Ip),Rp={name:`check-check`,size:24,node:[[`path`,{d:`M18 6 7 17l-5-5`,key:`116fxf`}],[`path`,{d:`m22 10-7.5 7.5L13 16`,key:`ke71qq`}]]};Rp.node;var zp=Y(Rp),Bp={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};Bp.node;var Vp=Y(Bp),Hp={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};Hp.node;var Up=Y(Hp),Wp={name:`circle-dot`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]};Wp.node;var Gp=Y(Wp),Kp={name:`circle`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]};Kp.node;var qp=Y(Kp),Jp={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};Jp.node;var Yp=Y(Jp),Xp={name:`code`,size:24,node:[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]};Xp.node;var Zp=Y(Xp),Qp={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};Qp.node;var $p=Y(Qp),em={name:`database`,size:24,node:[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]};em.node;var tm=Y(em),nm={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};nm.node;var rm=Y(nm),im={name:`face-slightly-smiling`,size:24,node:[[`path`,{d:`M15 10V9`,key:`4dkmfx`}],[`path`,{d:`M16.472 15a6 6 0 01-8.943 0`,key:`7qomzy`}],[`path`,{d:`M9 10V9`,key:`1lazqi`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]],aliases:[`smile`]};im.node;var am=Y(im),om={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};om.node;var sm=Y(om),cm={name:`folder-plus`,size:24,node:[[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]};cm.node;var lm=Y(cm),um={name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]};um.node;var dm=Y(um),fm={name:`inbox`,size:24,node:[[`polyline`,{points:`22 12 16 12 14 15 10 15 8 12 2 12`,key:`o97t9d`}],[`path`,{d:`M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`oot6mr`}]]};fm.node;var pm=Y(fm),mm={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};mm.node;var hm=Y(mm),gm={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};gm.node;var _m=Y(gm),vm={name:`languages`,size:24,node:[[`path`,{d:`m5 8 6 6`,key:`1wu5hv`}],[`path`,{d:`m4 14 6-6 2-3`,key:`1k1g8d`}],[`path`,{d:`M2 5h12`,key:`or177f`}],[`path`,{d:`M7 2h1`,key:`1t2jsx`}],[`path`,{d:`m22 22-5-10-5 10`,key:`don7ne`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]};vm.node;var ym=Y(vm),bm={name:`list-todo`,size:24,node:[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`rect`,{x:`3`,y:`4`,width:`6`,height:`6`,rx:`1`,key:`cif1o7`}]]};bm.node;var xm=Y(bm),Sm={name:`log-in`,size:24,node:[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]};Sm.node;var Cm=Y(Sm),wm={name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]};wm.node;var Tm=Y(wm),Em={name:`mail`,size:24,node:[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]};Em.node;var Dm=Y(Em),Om={name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]};Om.node;var km=Y(Om),Am={name:`message-circle-question-mark`,size:24,node:[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`message-circle-question`]};Am.node;var jm=Y(Am),Mm={name:`message-circle`,size:24,node:[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]};Mm.node;var Nm=Y(Mm),Pm={name:`messages-square`,size:24,node:[[`path`,{d:`M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z`,key:`1n2ejm`}],[`path`,{d:`M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1`,key:`1qfcsi`}]]};Pm.node;var Fm=Y(Pm),Im={name:`minimize-2`,size:24,node:[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]};Im.node;var Lm=Y(Im),Rm={name:`network`,size:24,node:[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]};Rm.node;var zm=Y(Rm),Bm={name:`panel-left-close`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m16 15-3-3 3-3`,key:`14y99z`}]],aliases:[`sidebar-close`]};Bm.node;var Vm=Y(Bm),Hm={name:`panel-left-open`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m14 9 3 3-3 3`,key:`8010ee`}]],aliases:[`sidebar-open`]};Hm.node;var Um=Y(Hm),Wm={name:`pencil-line`,size:24,node:[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]};Wm.node;var Gm=Y(Wm),Km={name:`pin`,size:24,node:[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]};Km.node;var qm=Y(Km),Jm={name:`play`,size:24,node:[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]};Jm.node;var Ym=Y(Jm),Xm={name:`plug`,size:24,node:[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z`,key:`1xoxul`}],[`path`,{d:`M9 8V2`,key:`14iosj`}]]};Xm.node;var Zm=Y(Xm),Qm={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};Qm.node;var $m=Y(Qm),eh={name:`power`,size:24,node:[[`path`,{d:`M12 2v10`,key:`mnfbl`}],[`path`,{d:`M18.4 6.6a9 9 0 1 1-12.77.04`,key:`obofu9`}]]};eh.node;var th=Y(eh),nh={name:`rotate-ccw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]};nh.node;var rh=Y(nh),ih={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};ih.node;var ah=Y(ih),oh={name:`send`,size:24,node:[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]};oh.node;var sh=Y(oh),ch={name:`settings`,size:24,node:[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};ch.node;var lh=Y(ch),uh={name:`shield-alert`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]};uh.node;var dh=Y(uh),fh={name:`sliders-horizontal`,size:24,node:[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]};fh.node;var ph=Y(fh),mh={name:`smartphone`,size:24,node:[[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,ry:`2`,key:`1yt0o3`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}]]};mh.node;var hh=Y(mh),gh={name:`split`,size:24,node:[[`path`,{d:`M16 3h5v5`,key:`1806ms`}],[`path`,{d:`M8 3H3v5`,key:`15dfkv`}],[`path`,{d:`M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3`,key:`1qrqzj`}],[`path`,{d:`m15 9 6-6`,key:`ko1vev`}]]};gh.node;var _h=Y(gh),vh={name:`square-pen`,size:24,node:[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`,key:`ohrbg2`}]],aliases:[`pen-box`,`edit`,`pen-square`]};vh.node;var yh=Y(vh),bh={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]};bh.node;var xh=Y(bh),Sh={name:`stamp`,size:24,node:[[`path`,{d:`M14 13V8.5C14 7 15 7 15 5a3 3 0 0 0-6 0c0 2 1 2 1 3.5V13`,key:`i9gjdv`}],[`path`,{d:`M20 15.5a2.5 2.5 0 0 0-2.5-2.5h-11A2.5 2.5 0 0 0 4 15.5V17a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1z`,key:`1vzg3v`}],[`path`,{d:`M5 22h14`,key:`ehvnwv`}]]};Sh.node;var Ch=Y(Sh),wh={name:`sun-moon`,size:24,node:[[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715`,key:`xlf6rm`}],[`path`,{d:`M16 12a4 4 0 0 0-4-4`,key:`6vsxu`}],[`path`,{d:`m19 5-1.256 1.256`,key:`1yg6a6`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}]]};wh.node;var Th=Y(wh),Eh={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};Eh.node;var Dh=Y(Eh),Oh={name:`undo-2`,size:24,node:[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]};Oh.node;var kh=Y(Oh),Ah={name:`user-round-plus`,size:24,node:[[`path`,{d:`M2 21a8 8 0 0 1 13.292-6`,key:`bjp14o`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M19 16v6`,key:`tddt3s`}],[`path`,{d:`M22 19h-6`,key:`vcuq98`}]],aliases:[`user-plus-2`]};Ah.node;var jh=Y(Ah),Mh={name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]};Mh.node;var Nh=Y(Mh),Ph={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Ph.node;var Fh=Y(Ph),X={size:16,strokeWidth:1.75,"aria-hidden":!0},Ih=()=>(0,U.jsx)($m,{...X}),Lh=()=>(0,U.jsx)(Zm,{...X}),Rh=()=>(0,U.jsx)(Np,{...X}),zh=()=>(0,U.jsx)(th,{...X}),Bh=()=>(0,U.jsx)(dm,{...X}),Vh=()=>(0,U.jsx)(lh,{...X}),Hh=()=>(0,U.jsx)(km,{...X}),Uh=()=>(0,U.jsx)(Zp,{...X}),Wh=()=>(0,U.jsx)(sm,{...X}),Gh=()=>(0,U.jsx)(Nm,{...X}),Kh=()=>(0,U.jsx)(kp,{...X,strokeWidth:2}),qh=()=>(0,U.jsx)(xh,{...X,fill:`currentColor`}),Jh=()=>(0,U.jsx)(ah,{...X}),Yh=()=>(0,U.jsx)(Vp,{...X,size:14,className:`chevron`}),Xh=()=>(0,U.jsx)(Vp,{...X,size:14,className:`menu-arrow`}),Zh=()=>(0,U.jsx)(qm,{...X,size:13,className:`pin-icon`}),Qh=()=>(0,U.jsx)(Lm,{...X}),$h=()=>(0,U.jsx)(Ym,{...X}),eg=()=>(0,U.jsx)(hm,{...X}),tg=()=>(0,U.jsx)(Fh,{...X}),ng=()=>(0,U.jsx)(yh,{...X}),rg=()=>(0,U.jsx)(_m,{...X}),ig=()=>(0,U.jsx)(dh,{...X}),ag=()=>(0,U.jsx)(jm,{...X}),og=()=>(0,U.jsx)(ph,{...X}),sg=()=>(0,U.jsx)(hh,{...X}),cg=()=>(0,U.jsx)(Dm,{...X}),lg=()=>(0,U.jsx)(pm,{...X}),ug=()=>(0,U.jsx)(Yp,{...X}),dg=()=>(0,U.jsx)(sm,{...X}),fg=()=>(0,U.jsx)(Fp,{...X}),pg=()=>(0,U.jsx)(zm,{...X}),mg=()=>(0,U.jsx)(Fm,{...X}),hg=()=>(0,U.jsx)(Nh,{...X}),gg=()=>(0,U.jsx)(jh,{...X}),_g=()=>(0,U.jsx)(lm,{...X}),vg=()=>(0,U.jsx)(sh,{...X}),yg=()=>(0,U.jsx)(Lp,{...X}),bg=()=>(0,U.jsx)(zp,{...X}),xg=()=>(0,U.jsx)(jp,{...X}),Sg=()=>(0,U.jsx)(Th,{...X}),Cg=()=>(0,U.jsx)(ym,{...X}),wg=()=>(0,U.jsx)(am,{...X}),Tg=()=>(0,U.jsx)(tm,{...X}),Eg=()=>(0,U.jsx)(qm,{...X}),Dg=()=>(0,U.jsx)(Gm,{...X}),Og=()=>(0,U.jsx)($p,{...X}),kg=()=>(0,U.jsx)(rm,{...X}),Ag=()=>(0,U.jsx)(Dp,{...X}),jg=()=>(0,U.jsx)(Ch,{...X}),Mg=()=>(0,U.jsx)(Vm,{...X}),Ng=()=>(0,U.jsx)(Um,{...X}),Pg=()=>(0,U.jsx)(xm,{...X}),Fg=()=>(0,U.jsx)(qp,{...X,size:14}),Ig=()=>(0,U.jsx)(Gp,{...X,size:14}),Lg=()=>(0,U.jsx)(Up,{...X,size:14});function Rg({className:e,size:t}){return(0,U.jsxs)(`svg`,{className:e,viewBox:`0 0 64 64`,width:t,height:t,"aria-hidden":`true`,children:[(0,U.jsx)(`path`,{className:`mark-leaf`,d:`M35.4 50.2C36.6 37.6 42.6 22.6 60 12.6C58.6 24.4 55.2 32.4 49.4 38.6C45 43.3 39.4 46.4 35.4 50.2Z`}),(0,U.jsx)(`ellipse`,{cx:`19.8`,cy:`35.4`,rx:`15.9`,ry:`15.4`,fill:`#C8323F`}),(0,U.jsx)(`ellipse`,{cx:`25.8`,cy:`22.6`,rx:`4.6`,ry:`3.1`,transform:`rotate(12 25.8 22.6)`,fill:`#1F3A2E`})]})}var zg=`M769 -750Q784 -750 784 -735V-705Q784 -690 769 -690Q736 -690 704.5 -667Q673 -644 644 -594L490 -333Q485 -326 485 -314V-155Q485 -115 499.5 -87.5Q514 -60 552 -60H559Q574 -60 574 -45V-15Q574 0 559 0H251Q236 0 236 -15V-45Q236 -60 251 -60H257Q295 -60 310 -87.5Q325 -115 325 -155V-309Q325 -318 319 -327L139 -594Q105 -644 81 -667Q57 -690 25 -690Q10 -690 10 -705V-735Q10 -750 25 -750H372Q387 -750 387 -735V-705Q387 -690 372 -690Q345 -690 323.5 -679.5Q302 -669 302 -643Q302 -622 319 -594L436 -407L544 -594Q566 -634 566 -657Q566 -690 520 -690Q505 -690 505 -705V-735Q505 -750 520 -750ZM829 -179Q846 -137 883.5 -104Q921 -71 979 -71Q1011 -71 1046 -89Q1081 -107 1107 -145Q1110 -150 1115 -150Q1120 -150 1125.5 -147Q1131 -144 1155 -130Q1159 -127 1159 -122Q1159 -115 1153 -105Q1125 -53 1077 -20Q1029 13 952 13Q869 13 809 -24Q749 -61 716.5 -122Q684 -183 684 -255Q684 -324 704.5 -373.5Q725 -423 759 -453.5Q793 -484 835.5 -498.5Q878 -513 922 -513Q972 -513 1010 -493.5Q1048 -474 1074.5 -444Q1101 -414 1114.5 -380.5Q1128 -347 1128 -318Q1128 -310 1119 -306ZM978 -322Q978 -370 955 -401Q932 -432 897 -432Q856 -432 832 -399.5Q808 -367 808 -318Q808 -303 809.5 -281Q811 -259 817 -241ZM2070 -500Q2085 -500 2085 -485V-455Q2085 -440 2070 -440H2055Q2039 -440 2026.5 -428Q2014 -416 1997 -378L1838 -11Q1834 0 1823 0H1766Q1755 0 1750 -11L1618 -317L1486 -11Q1482 0 1470 0H1414Q1403 0 1398 -11L1240 -377Q1224 -415 1213 -427.5Q1202 -440 1182 -440H1180Q1165 -440 1165 -455V-485Q1165 -500 1180 -500H1411Q1426 -500 1426 -485V-455Q1426 -440 1411 -440H1409Q1390 -440 1382.5 -432.5Q1375 -425 1375 -411Q1375 -398 1381.5 -381Q1388 -364 1396 -345L1476 -158L1562 -371Q1575 -401 1575 -419Q1575 -440 1554 -440H1532Q1519 -440 1519 -455V-485Q1519 -500 1533 -500H1773Q1788 -500 1788 -485V-455Q1788 -440 1773 -440H1761Q1742 -440 1734.5 -432.5Q1727 -425 1727 -411Q1727 -398 1733 -381Q1739 -364 1747 -345L1828 -158L1914 -371Q1927 -401 1927 -419Q1927 -440 1906 -440H1886Q1871 -440 1871 -455V-485Q1871 -500 1886 -500Z`;function Bg({className:e}){return(0,U.jsx)(`svg`,{className:e,viewBox:`0 -840 2091 1000`,"aria-hidden":`true`,children:(0,U.jsx)(`path`,{d:zg})})}function Vg({className:e}){return(0,U.jsxs)(`span`,{className:`product-name${e?` ${e}`:``}`,"aria-hidden":`true`,children:[(0,U.jsx)(Bg,{className:`wordmark`}),(0,U.jsx)(`span`,{className:`product-harness`,children:`Harness`})]})}var Hg=()=>(0,U.jsx)(Dh,{...X}),Ug=()=>(0,U.jsx)(Tp,{...X}),Wg=()=>(0,U.jsx)(rh,{...X}),Gg=()=>(0,U.jsx)(_h,{...X}),Kg=()=>(0,U.jsx)(kh,{...X}),qg=()=>(0,U.jsx)(Cm,{...X}),Jg=()=>(0,U.jsx)(Tm,{...X}),Yg=373,Xg=400;function Zg({pose:e,height:t,className:n}){return N(e=>e.settings?.mascot===!1)?null:(0,U.jsx)(`img`,{className:`mascot${n?` ${n}`:``}`,src:`/mascot/${e}.webp`,width:Math.round(t*Yg/Xg),height:t,alt:``,draggable:!1})}var Qg=[`read`,`edit`,`write`,`search`,`shell`,`web`,`letter`,`session`,`card`,`helper`];function $g(e){return e===`read`||e===`edit`||e===`write`?e:e===`grep`||e===`glob`?`search`:e===`shell`||e===`shell_job`?`shell`:e===`web_fetch`?`web`:e===`send_letter`?`letter`:e===`open_session`?`session`:e===`post_card`||e===`update_card`||e===`withdraw_card`?`card`:e===`delegate`?`helper`:null}function e_(e){let t={},n=0;for(let r of e){let e=$g(r);e?t[e]=(t[e]??0)+1:n++}return{counts:t,others:n}}var t_=`[From Yew, not from the person]`;function n_(e){if(e.role===`notice`)return[`interrupted`,`restarted`,`error`].includes(e.notice.kind);if(e.role!==`user`)return!1;if(e.letter)return!0;let t=e.message.content;return!(typeof t==`string`?t:t.map(e=>e.type===`text`?e.text:``).join(`
54
+ `)).startsWith(t_)}function r_(e,t){let n=-1;for(let t=e.length-1;t>=0;t--)if(n_(e[t])){n=t;break}let r=n>=0?e[n]:void 0,i=e.slice(n+1),a=r?r.role===`user`?r.createdAt:i[0]?.createdAt??null:null,o=[],s=e=>{for(let t of e.content)t.type===`toolCall`&&o.push(t.name)};for(let e of i)e.role===`assistant`&&s(e.message);return t&&s(t),{startedAt:a,tools:o}}function i_(e){return e.requestedBy??e.createdBy}function a_(e,t,n){let r=[];for(let n of t)n.sessionId===e&&n.status===`pending`&&r.push({kind:n.kind,since:n.createdAt});for(let t of n)t.status===`pending`&&i_(t)===e&&r.push({kind:`decision`,since:t.createdAt});let i=r.sort((e,t)=>e.since-t.since)[0];return i?{...i,count:r.length}:null}function o_(e,t){let n=new Set;for(let t of e)t.status===`pending`&&n.add(t.sessionId);for(let e of t){let t=i_(e);e.status===`pending`&&t&&n.add(t)}return n}function s_(e,t,n){let r=t.getBoundingClientRect(),i=n??Math.max(r.width,e.offsetWidth);e.style.minWidth=`${Math.max(r.width,180)}px`;let a=Math.min(r.left,window.innerWidth-i-16);a=Math.max(16,a);let o=window.innerHeight-r.bottom-8-16,s=e.offsetHeight,c=s>o&&r.top>o?Math.max(16,r.top-8-s):r.bottom+8;e.style.left=`${a}px`,e.style.top=`${c}px`}function Z({busy:e,variant:t=`default`,children:n,disabled:r,...i}){let a=[`btn`,t==="default"?``:`btn-${t}`,t===`icon`?`btn-ghost`:``];return(0,U.jsx)(`button`,{type:`button`,...i,className:`${a.join(` `)} ${i.className??``}`.trim(),disabled:r||e,"aria-busy":e?`true`:void 0,children:n})}function Q(e){let[t,n]=(0,v.useState)(!1),[r,i]=(0,v.useState)(null),a=(0,v.useRef)(!1);return{run:(0,v.useCallback)(async(...t)=>{if(a.current)return!1;a.current=!0,n(!0),i(null);try{return await e(...t),!0}catch(e){return i(e),!1}finally{a.current=!1,n(!1)}},[e]),busy:t,error:r,setError:i}}var c_={name:`err_field_name`,cwd:`err_field_cwd`,text:`err_field_text`,decision:`err_field_decision`,answer:`err_field_answer`,options:`err_field_options`,key:`err_field_key`,id:`err_field_id`,baseUrl:`err_field_baseUrl`,models:`err_field_models`,rules:`err_field_rules`,workspaces:`err_field_workspaces`,model:`err_field_model`,provider:`err_field_model`,cron:`err_field_cron`,session:`err_field_session`,message:`err_field_message`,server:`err_field_server`,command:`err_field_command`,url:`err_field_url`,args:`err_field_args`,env:`err_field_env`,headers:`err_field_headers`,remote:`err_field_remote`,folder:`err_field_folder`},l_={network:`err_network`,"sign-in-required":`err_signin`,"invalid-login-token":`err_signin`,"not-found":`err_notFound`,"internal-error":`err_internal`,"session-busy":`err_sessionBusy`,"session-archived":`err_sessionArchived`,"nothing-to-continue":`err_nothingToContinue`,"already-answered":`err_alreadyAnswered`,"already-delivered":`err_alreadyDelivered`,"not-supported":`err_noPicker`,"picker-failed":`err_pickerFailed`,"schedule-busy":`err_scheduleBusy`,"mcp-exists":`err_mcpExists`,"mcp-unreadable":`err_mcpUnreadable`,"not-on-this-system":`err_notOnThisSystem`,"service-failed":`err_serviceFailed`,"reveal-failed":`err_revealFailed`,"temp-outside":`err_tempOutside`,"no-export":`err_noExport`};function u_(e){if(!(e instanceof b))return D(`err_unknown`);if(e.code===`missing-api-key`)return D(`err_missingKey`,{provider:e.provider??``});if(e.code===`conflict`&&e.field===`name`)return D(`nameTaken`);if(e.field&&c_[e.field])return D(c_[e.field]);let t=l_[e.code];return t?D(t):e.status===400||e.status===422?D(`err_invalid`):D(`err_unknown`)}function $({error:e}){let[t,n]=(0,v.useState)(!1);if(!e)return null;let r=e instanceof b?e.requestId:void 0;return(0,U.jsxs)(`div`,{className:`error-box`,role:`alert`,children:[(0,U.jsx)(`strong`,{children:D(`errorTitle`)}),(0,U.jsx)(`span`,{children:u_(e)}),r&&(0,U.jsxs)(`span`,{className:`hint error-id`,children:[D(`requestId`),`: `,(0,U.jsx)(`code`,{className:`error-code`,children:r}),(0,U.jsx)(Z,{variant:`ghost`,onClick:()=>{navigator.clipboard?.writeText(r).then(()=>n(!0))},children:D(t?`copied`:`copyRequestId`)})]})]})}function d_({checked:e,onChange:t,label:n,labelledBy:r,disabled:i,busy:a,info:o}){return r?(0,U.jsx)(`button`,{type:`button`,role:`switch`,"aria-checked":e,"aria-labelledby":r,className:`switch`,disabled:i||a,"aria-busy":a?`true`:void 0,onClick:()=>t(!e),children:(0,U.jsx)(`span`,{className:`switch-track`,"aria-hidden":`true`,children:(0,U.jsx)(`span`,{className:`switch-thumb`})})}):(0,U.jsxs)(`span`,{className:`field-label`,children:[(0,U.jsxs)(`button`,{type:`button`,role:`switch`,"aria-checked":e,className:`switch`,disabled:i||a,"aria-busy":a?`true`:void 0,onClick:()=>t(!e),children:[(0,U.jsx)(`span`,{className:`switch-track`,"aria-hidden":`true`,children:(0,U.jsx)(`span`,{className:`switch-thumb`})}),(0,U.jsx)(`span`,{children:n})]}),o&&n&&(0,U.jsx)(f_,{label:n,text:o})]})}function f_({label:e,text:t}){let[n,r]=(0,v.useState)(!1),i=(0,v.useRef)(null),a=(0,v.useRef)(null),o=(0,v.useId)(),s=(0,v.useRef)(!1);(0,v.useLayoutEffect)(()=>{let e=a.current;e&&i.current&&(n?(e.showPopover?.(),s_(e,i.current,260)):e.matches(`:popover-open`)&&e.hidePopover?.())},[n]),(0,v.useEffect)(()=>{if(!n)return;let e=e=>e.key===`Escape`&&r(!1),t=e=>{let t=e.target;!a.current?.contains(t)&&!i.current?.contains(t)&&r(!1)};return document.addEventListener(`keydown`,e),document.addEventListener(`mousedown`,t),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`mousedown`,t)}},[n]);let c=window.matchMedia(`(hover: hover)`).matches;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`button`,{ref:i,type:`button`,className:`info-button`,"aria-label":D(`infoAbout`,{label:e}),"aria-expanded":n,"aria-describedby":n?o:void 0,onClick:()=>r(e=>!e),onFocus:()=>c&&r(!0),onMouseEnter:()=>{c&&(s.current=!0,r(!0))},onMouseLeave:()=>{s.current=!1},children:(0,U.jsx)(eg,{})}),(0,U.jsx)(`div`,{ref:a,id:o,popover:`manual`,className:`toggletip`,role:`tooltip`,children:t})]})}function p_({value:e,options:t,onChange:n,label:r,labelledBy:i,disabled:a,busy:o}){let[s,c]=(0,v.useState)(!1),[l,u]=(0,v.useState)(0),d=(0,v.useRef)(null),f=(0,v.useRef)(null),p=(0,v.useId)(),m=t.find(t=>t.value===e);(0,v.useLayoutEffect)(()=>{let e=f.current;e&&d.current&&(s?(e.showPopover?.(),s_(e,d.current),e.querySelector(`.active`)?.scrollIntoView({block:`nearest`})):e.matches(`:popover-open`)&&e.hidePopover?.())},[s]),(0,v.useEffect)(()=>{if(!s)return;let e=e=>{let t=e.target;!f.current?.contains(t)&&!d.current?.contains(t)&&c(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[s]);let h=(0,v.useRef)(!1);(0,v.useEffect)(()=>{h.current&&(h.current=!1,f.current?.querySelector(`.active`)?.scrollIntoView({block:`nearest`}))},[l]);let g=__(()=>s?c(!1):_()),_=()=>{u(Math.max(0,t.findIndex(t=>t.value===e))),c(!0)},y=r=>{let i=t[r];c(!1),d.current?.focus(),i&&i.value!==e&&n(i.value)},b=e=>{s?e.key===`Escape`||e.key===`Tab`?c(!1):(e.preventDefault(),h.current=!0,e.key===`ArrowDown`?u(e=>Math.min(t.length-1,e+1)):e.key===`ArrowUp`?u(e=>Math.max(0,e-1)):e.key===`Home`?u(0):e.key===`End`?u(t.length-1):(e.key===`Enter`||e.key===` `)&&y(l)):[`ArrowDown`,`ArrowUp`,`Enter`,` `].includes(e.key)&&(e.preventDefault(),_())},x;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`button`,{ref:d,type:`button`,role:`combobox`,className:`btn select-trigger`,"aria-haspopup":`listbox`,"aria-expanded":s,"aria-controls":p,"aria-label":r,"aria-labelledby":i,"aria-activedescendant":s?`${p}-${l}`:void 0,disabled:a||o,"aria-busy":o?`true`:void 0,...g,onKeyDown:b,children:(0,U.jsx)(`span`,{children:m?.label??e})}),(0,U.jsx)(`div`,{ref:f,id:p,role:`listbox`,popover:`manual`,className:`listbox`,"aria-label":r,children:t.map((t,n)=>{let r=t.group&&t.group!==x?t.group:null;return x=t.group,[r&&(0,U.jsx)(`div`,{className:`group-label`,role:`presentation`,children:r},`g-${t.group}`),(0,U.jsx)(`div`,{id:`${p}-${n}`,role:`option`,tabIndex:-1,"aria-selected":t.value===e,className:n===l?`active`:void 0,onMouseDown:e=>e.preventDefault(),onClick:()=>y(n),onMouseMove:()=>u(n),children:t.hint?(0,U.jsxs)(`span`,{className:`option-text`,children:[(0,U.jsx)(`span`,{children:t.label}),(0,U.jsx)(`span`,{className:`option-hint`,children:t.hint})]}):t.label},t.value)]})})]})}function m_(e,t){let n=t.getBoundingClientRect(),r=e.offsetWidth,i=e.offsetHeight,a=n.right+6;a+r>window.innerWidth-8&&(a=Math.max(8,n.left-r-6));let o=Math.max(8,Math.min(n.top-6,window.innerHeight-8-i));e.style.left=`${a}px`,e.style.top=`${o}px`}function h_({item:e,close:t,onPointerEnter:n,submenu:r}){let i=n=>{n.stopPropagation(),r?r.show(n.currentTarget,!0):(t(),e.onSelect?.())};if(r)return(0,U.jsxs)(`button`,{type:`button`,role:`menuitem`,tabIndex:-1,"aria-haspopup":`menu`,"aria-expanded":r.open,className:`menu-parent`,onClick:i,onPointerEnter:e=>r.show(e.currentTarget,!1),onKeyDown:e=>{e.key===`ArrowRight`&&(e.preventDefault(),e.stopPropagation(),r.show(e.currentTarget,!0))},children:[e.icon,(0,U.jsx)(`span`,{className:`menu-label`,children:e.label}),e.detail&&(0,U.jsx)(`span`,{className:`menu-detail`,children:e.detail}),(0,U.jsx)(Xh,{})]});let a=(0,U.jsxs)(U.Fragment,{children:[e.icon,(0,U.jsx)(`span`,{className:`menu-label`,children:e.label}),e.checked&&(0,U.jsx)(`span`,{className:`menu-check`,"aria-hidden":`true`,children:`✓`})]});return e.checked===void 0?(0,U.jsx)(`button`,{type:`button`,role:`menuitem`,tabIndex:-1,className:e.danger?`menu-danger`:void 0,onClick:i,onPointerEnter:e=>n?.(e.currentTarget),children:a}):(0,U.jsx)(`button`,{type:`button`,role:`menuitemradio`,"aria-checked":e.checked,tabIndex:-1,onClick:i,onPointerEnter:e=>n?.(e.currentTarget),children:a})}function g_({entries:e,render:t}){return(0,U.jsx)(U.Fragment,{children:e.map(e=>`separator`in e?(0,U.jsx)(`hr`,{className:`menu-separator`},e.id):`group`in e?(0,U.jsxs)(`div`,{role:`group`,"aria-label":e.group,children:[(0,U.jsx)(`div`,{className:`menu-heading`,"aria-hidden":`true`,children:e.group}),e.items.map(e=>t(e,e.id??e.label))]},e.group):t(e,e.id??e.label))})}function __(e){let t=(0,v.useRef)(``);return{onPointerDown:n=>{t.current=n.pointerType,n.pointerType===`mouse`&&n.button===0&&e()},onClick:n=>{n.stopPropagation(),n.detail>0&&t.current===`mouse`||e()}}}function v_({label:e,items:t,trigger:n,open:r,onOpenChange:i,width:a=200}){let[o,s]=(0,v.useState)(!1),c=r??o,l=e=>{r===void 0&&s(e),i?.(e)},u=(0,v.useRef)(null),d=(0,v.useRef)(null),f=(0,v.useRef)(null),p=(0,v.useId)(),[m,h]=(0,v.useState)(null),g=__(()=>l(!c)),_=(0,v.useRef)({x:0,y:0,dx:0,dy:0,timer:0}),y=()=>{window.clearTimeout(_.current.timer),_.current.timer=0},b=e=>{y();let t=f.current?.getBoundingClientRect(),n=d.current?.getBoundingClientRect(),{dx:r,dy:i}=_.current,a=t&&n?t.left>=n.left?r:-r:0,o=a>=2&&a>Math.abs(i)*.5;m&&o?_.current.timer=window.setTimeout(e,160):e()};(0,v.useLayoutEffect)(()=>{let e=d.current;e&&u.current&&(c?(e.showPopover?.(),s_(e,u.current,a),e.querySelector(`[role^=menuitem]`)?.focus()):e.matches(`:popover-open`)&&e.hidePopover?.(),c||(window.clearTimeout(_.current.timer),h(null)))},[c,a]),(0,v.useLayoutEffect)(()=>{let e=f.current;e&&m&&(e.showPopover?.(),m_(e,m.anchor),m.focus&&e.querySelector(`[role^=menuitem]`)?.focus())},[m]),(0,v.useEffect)(()=>{if(!c)return;let e=e=>{let t=e.target;d.current?.contains(t)||f.current?.contains(t)||u.current?.contains(t)||l(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[c]);let x=e=>{let t=[...d.current?.querySelectorAll(`[role^=menuitem]`)??[]],n=t.indexOf(document.activeElement);e.key===`Escape`?(l(!1),u.current?.focus()):e.key===`ArrowDown`?(e.preventDefault(),t[(n+1)%t.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),t[(n-1+t.length)%t.length]?.focus()):e.key===`Tab`&&l(!1)},S=()=>l(!1),C=m?t.find(e=>!(`separator`in e)&&!(`group`in e)&&(e.id??e.label)===m.key)?.items??null:null,ee=e=>{let t=[...f.current?.querySelectorAll(`[role^=menuitem]`)??[]],n=t.indexOf(document.activeElement);if(e.key===`Escape`||e.key===`ArrowLeft`){e.preventDefault(),e.stopPropagation();let t=m?.anchor;h(null),t?.focus()}else e.key===`ArrowDown`?(e.preventDefault(),t[(n+1)%t.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),t[(n-1+t.length)%t.length]?.focus()):e.key===`Tab`&&l(!1)},w=(e,t)=>e.items?(0,U.jsx)(h_,{item:e,close:S,submenu:{open:m?.key===t,show:(e,n)=>{let r=()=>h({key:t,anchor:e,focus:n});n||m?.key===t?(y(),r()):b(r)}}},t):(0,U.jsx)(h_,{item:e,close:S,onPointerEnter:()=>b(()=>h(null))},t);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`button`,{ref:u,type:`button`,className:n?.className??`btn btn-ghost btn-icon`,title:n?.title,"aria-label":n?void 0:e,"aria-haspopup":`menu`,"aria-expanded":c,"aria-controls":p,...g,children:n?n.content:(0,U.jsx)(`span`,{"aria-hidden":`true`,children:`⋯`})}),(0,U.jsx)(`div`,{ref:d,id:p,role:`menu`,"aria-label":e,popover:`manual`,className:`menu`,onKeyDown:x,onPointerMove:e=>{_.current.dx=e.clientX-_.current.x,_.current.dy=e.clientY-_.current.y,_.current.x=e.clientX,_.current.y=e.clientY},children:(0,U.jsx)(g_,{entries:t,render:w})}),c&&m&&C&&(0,U.jsx)(`div`,{ref:f,role:`menu`,"aria-label":m.anchor.textContent??e,popover:`manual`,className:`menu submenu`,onKeyDown:ee,onPointerEnter:y,children:(0,U.jsx)(g_,{entries:C,render:(e,t)=>(0,U.jsx)(h_,{item:e,close:S},t)})})]})}function y_({title:e,size:t,onClose:n,children:r,footer:i,tabs:a}){let o=(0,v.useRef)(null),s=(0,v.useId)();return(0,v.useEffect)(()=>{let e=o.current;if(e)return e.showModal(),document.body.classList.add(`scroll-locked`),()=>{document.body.classList.remove(`scroll-locked`),e.open&&e.close()}},[]),(0,U.jsx)(`dialog`,{ref:o,className:`dialog dialog-${t}`,"aria-labelledby":s,onCancel:e=>{e.preventDefault(),n()},children:(0,U.jsxs)(`div`,{className:`dialog-frame`,style:a?{gridTemplateRows:`auto auto 1fr auto`}:void 0,children:[(0,U.jsxs)(`div`,{className:`dialog-header`,children:[(0,U.jsx)(`h2`,{id:s,children:e}),(0,U.jsx)(Z,{variant:`icon`,"aria-label":D(`close`),onClick:n,children:(0,U.jsx)(tg,{})})]}),a,(0,U.jsx)(`div`,{className:`dialog-body`,children:r}),(0,U.jsx)(`div`,{className:`dialog-footer`,children:i})]})})}function b_({title:e,info:t,children:n}){let r=(0,v.useId)();return(0,U.jsxs)(`section`,{className:`setting-group`,"aria-labelledby":r,children:[(0,U.jsxs)(`h3`,{className:`setting-group-title`,children:[(0,U.jsx)(`span`,{id:r,children:e}),t&&(0,U.jsx)(f_,{label:e,text:t})]}),(0,U.jsx)(`div`,{className:`setting-box`,children:n})]})}function x_({label:e,hint:t,info:n,htmlFor:r,labelId:i,error:a,errorId:o,children:s}){return(0,U.jsxs)(`div`,{className:`setting-row`,children:[(0,U.jsxs)(`div`,{className:`setting-text`,children:[(0,U.jsxs)(`span`,{className:`setting-label`,children:[r?(0,U.jsx)(`label`,{htmlFor:r,id:i,children:e}):(0,U.jsx)(`span`,{id:i,children:e}),n&&(0,U.jsx)(f_,{label:e,text:n})]}),t&&(0,U.jsx)(`span`,{className:`hint`,children:t}),a&&(0,U.jsx)(`span`,{id:o,className:`field-error`,children:a})]}),(0,U.jsx)(`div`,{className:`setting-control`,children:s})]})}function S_({label:e,children:t,error:n,info:r,htmlFor:i,labelId:a,errorId:o}){return(0,U.jsxs)(`div`,{className:`field`,children:[(0,U.jsxs)(`span`,{className:`field-label`,children:[(0,U.jsx)(`label`,{htmlFor:i,id:a,children:e}),r&&(0,U.jsx)(f_,{label:e,text:r})]}),t,n&&(0,U.jsx)(`span`,{id:o,className:`field-error`,children:n})]})}function C_(e=6e4){let[t,n]=(0,v.useState)(()=>Date.now());return(0,v.useEffect)(()=>{if(e<=0)return;n(Date.now());let t=setInterval(()=>n(Date.now()),e);return()=>clearInterval(t)},[e]),t}function w_({icon:e,parts:t,tags:n}){return(0,U.jsxs)(`div`,{className:`card-head`,children:[e,(0,U.jsx)(`span`,{className:`card-head-parts`,children:t.filter(Boolean).map((e,t)=>(0,U.jsx)(`span`,{children:e},t))}),n&&(0,U.jsx)(`span`,{className:`card-head-tags`,children:n})]})}function T_(e){let t=e.pattern??``,n=e.pattern===`**`&&e.tool===`write`?D(`ruleWriteAll`):e.pattern===`**`&&e.tool===`edit`?D(`ruleEditAll`):e.pattern===`**`?D(`allFilesInFolder`,{tool:e.tool}):e.tool===`shell`&&t?D(`ruleRun`,{p:t}):e.tool===`web_fetch`&&t?D(`ruleFetch`,{p:t}):e.tool===`read`&&t?D(`ruleRead`,{p:t}):e.tool===`manage_yew`&&(t===`organize`||t===`configure`)?D(`manage_${t}`):!t&&se(`ask_${e.tool}`)?D(`ask_${e.tool}`):`${e.tool}${t?` ${t}`:``}`;return e.effect===`deny`?D(`ruleDeny`,{rule:n}):e.effect===`ask`?D(`ruleAsk`,{rule:n}):n}function E_({counts:e,others:t}){let n=Qg.filter(t=>e[t]).map(t=>{let n=e[t]??0;return D(n===1?`sum_${t}_one`:`sum_${t}`,{n})});return t>0&&n.push(D(t===1?`sum_other_one`:`sum_other`,{n:t})),n.map((e,t)=>t===0?e:e.charAt(0).toLowerCase()+e.slice(1)).join(D(`listSeparator`))}function D_({session:e,transcript:t}){O();let n=N(e=>e.center.cards),r=N(e=>e.center.approvals),i=a_(e.id,Object.values(r),Object.values(n)),a=e.status===`working`,o=a&&t?r_(t.entries,t.draft):null,s=a?null:i,c=s?s.since:o?.startedAt??null,l=C_(c===null?0:1e3),u=``,d=``,f=``;if(s)u=s.count>1?D(`progressWaitingMany`,{n:s.count}):D(`progressWaiting_${s.kind}`),d=D(`progressSince`,{time:he(s.since)});else if(a&&t?.retry){let{attempt:e,of:n,seconds:r}=t.retry;u=D(`progressRetrying`,{n:e,of:n,s:r}),f=t.retry.text}else o&&(u=E_(e_(o.tools))||D(`status_working`),o.startedAt!==null&&(d=D(`progressStarted`,{time:he(o.startedAt)})));return(0,U.jsxs)(`div`,{className:`progress-line`,children:[u&&(0,U.jsx)(`span`,{className:`dot row-dot dot-${s?`waiting`:`working`}`,"aria-hidden":`true`}),(0,U.jsxs)(`span`,{className:`progress-text`,role:`status`,title:f||void 0,children:[u,d&&(0,U.jsxs)(`span`,{className:`visually-hidden`,children:[` · `,d]})]}),u&&c!==null&&(0,U.jsx)(`span`,{className:`progress-time`,"aria-hidden":`true`,children:D(s?`progressWaited`:`progressSpent`,{t:me(Math.max(0,l-c))})})]})}function O_(e){return(e.trim().split(`
55
+ `)[0]??``).trim().replace(/^(#{1,6}\s+|>\s*|[-*+]\s+|\d+[.)]\s+)/,``).replace(/\[([^\]]+)\]\([^)]*\)/g,`$1`).replace(/\*\*(.+?)\*\*/g,`$1`).replace(/`([^`]+)`/g,`$1`).trim()}function k_(e,t){let[n=``,...r]=e.trim().split(`
56
+ `);return O_(n)===O_(t)?r.join(`
57
+ `).trim():e}function A_(e){let t=Array.isArray(e.questions)?e.questions:null,n=t?t[0]?.question:e.question;return typeof n==`string`?{question:n,count:t?t.length:1}:null}function j_(e){return e?e.content.map(e=>e.type===`text`?e.text:`[image]`).join(`
58
+ `):``}function M_(e,t){let n=e.arguments;switch(e.name){case`send_letter`:return`${t??String(n.to??``)} · ${String(n.summary??``)}`;case`open_session`:return String(n.name??``);case`post_card`:return String(n.title??``);case`update_card`:case`withdraw_card`:case`check_decision`:return`#${String(n.number??``)}`;case`finish_task`:return typeof n.result==`string`?D(`outcome_${n.result}`):``;case`todo`:case`list_sessions`:case`list_cards`:case`manage_yew`:return``}let r=A_(n);if(r)return r.count>1?D(`moreQuestions`,{q:r.question,n:r.count-1}):r.question;let i=n.command??n.path??n.pattern??n.url??n.job??n.task;return typeof i==`string`?i:JSON.stringify(n)}var N_=[`read`,`write`,`edit`,`glob`,`grep`,`shell`,`shell_job`,`todo`,`ask_user`,`web_fetch`,`send_letter`,`list_sessions`,`check_decision`,`open_session`,`finish_task`,`post_card`,`update_card`,`withdraw_card`,`list_cards`,`manage_yew`,`delegate`];function P_(e){return N_.includes(e)}function F_({text:e,live:t}){let[n,r]=(0,v.useState)(t);return(0,v.useEffect)(()=>{t||r(!1)},[t]),(0,U.jsxs)(`details`,{className:`activity`,open:n,onToggle:e=>r(e.target.open),children:[(0,U.jsxs)(`summary`,{children:[(0,U.jsx)(`span`,{className:t?`activity-verb shimmer`:`activity-verb`,children:D(`thinkingLabel`)}),(0,U.jsx)(Yh,{})]}),(0,U.jsx)(Qf,{className:`thinking-body`,label:D(`thinkingLabel`),follow:t,children:e})]})}function I_(e){if(e.reasons&&e.reasons.length>0)return e.reasons.map(e=>D(`confirm_${e}`)).join(D(`listSeparator`));if(e.reason)return e.reason;let t=e.rememberRules?.[0]?.pattern;if(e.tool===`manage_yew`&&(t===`organize`||t===`configure`))return D(`manage_${t}`);if(e.tool===`open_session`)return D(`ask_open_session_named`,{name:D(`quoted`,{s:e.summary})});let n=`ask_${e.tool}`;return se(n)?D(n):e.tool}var L_=(e,t=80)=>{let n=e.replace(/\s+/g,` `).trim();return[...n].length>t?`${[...n].slice(0,t).join(``)}…`:n};function R_(e){let t=e=>D(`quoted`,{s:e}),n=e=>e===null?D(`change_no_folder`):e;switch(e.action){case`create_team`:return D(`change_create_team`,{name:t(e.name)});case`rename_team`:return D(`change_rename_team`,{from:t(e.from),to:t(e.to)});case`create_session`:{let r=[D(`change_detail_model`,{model:e.model}),D(`change_detail_folder`,{folder:n(e.folder)}),...e.team?[D(`change_detail_team`,{team:t(e.team)})]:[],...e.role?[D(`change_detail_role`,{role:L_(e.role)})]:[]].join(D(`listSeparator`));return D(`change_create_session`,{name:t(e.name),details:r})}case`rename_session`:return D(`change_rename_session`,{from:t(e.from),to:t(e.to)});case`move_to_team`:{let n=e.sessions.map(t).join(D(`enumSeparator`));return e.team===null?D(`change_leave_team`,{sessions:n}):D(`change_move_to_team`,{sessions:n,team:t(e.team)})}case`set_role`:return D(`change_set_role`,{session:t(e.session),role:L_(e.role)});case`set_model`:return D(`change_set_model`,{session:t(e.session),from:e.from,to:e.to});case`set_folder`:return D(`change_set_folder`,{session:t(e.session),from:n(e.from),to:n(e.to)});case`set_permission`:return D(`change_set_permission`,{session:t(e.session),from:D(`perm_${e.from}`),to:D(`perm_${e.to}`)});case`set_receive`:return D(`change_set_receive`,{session:t(e.session),from:D(`receive_${e.from}`),to:D(`receive_${e.to}`)});case`set_letter_quota`:return D(`change_set_letter_quota`,{session:t(e.session),from:e.from,to:e.to});case`set_daily_budget`:{let n=e=>e===null?D(`budgetNone`):D(`cost`,{n:ue(e)});return e.session===null?D(`change_set_daily_budget_all`,{from:n(e.from),to:n(e.to)}):D(`change_set_daily_budget`,{session:t(e.session),from:n(e.from),to:n(e.to)})}case`set_right`:return D(e.on?`change_right_on`:`change_right_off`,{session:t(e.session),right:D(`right_${e.right}`)});case`pin`:return D(e.on?`change_pin_on`:`change_pin_off`,{session:t(e.session)});case`archive`:return D(e.on?`change_archive_on`:`change_archive_off`,{session:t(e.session)});case`set_main`:return e.to===null?D(`change_clear_main`,{from:t(e.from??``)}):e.from===null?D(`change_set_main_first`,{to:t(e.to)}):D(`change_set_main`,{from:t(e.from),to:t(e.to)});case`set_default_model`:return D(`change_set_default_model`,{from:e.from,to:e.to});case`set_decision_log`:return e.to===null?D(`change_clear_decision_log`):D(`change_set_decision_log`,{to:e.to});case`add_workspace`:return D(`change_add_workspace`,{folder:e.folder});case`remove_workspace`:return D(`change_remove_workspace`,{folder:e.folder});case`set_theme`:return D(`change_set_theme`,{to:D(`theme_${e.to}`)});case`set_language`:return D(`change_set_language`,{to:e.to===`system`?D(`language_system`):e.to===`zh`?`中文`:`English`});case`create_schedule`:{let n=[D(`change_detail_cron`,{cron:e.cron}),D(`change_detail_to`,{session:t(e.session)}),...e.permission?[D(`change_detail_run_mode`,{mode:D(`perm_${e.permission}`)})]:[],D(`change_detail_letter`,{message:L_(e.message)})].join(D(`listSeparator`));return D(`change_create_schedule`,{name:t(e.name),details:n})}case`change_schedule`:{let n=e=>D(e?`perm_${e}`:`scheduleModeSession`),r=[...e.name===void 0?[]:[D(`change_detail_rename`,{name:t(e.name)})],...e.cron===void 0?[]:[D(`change_detail_cron`,{cron:e.cron})],...e.session===void 0?[]:[D(`change_detail_to`,{session:t(e.session)})],...e.permission===void 0?[]:[D(`change_detail_run_mode_change`,{mode:n(e.permission)})],...e.message===void 0?[]:[D(`change_detail_letter`,{message:L_(e.message)})],...e.catchUp===void 0?[]:[D(e.catchUp?`change_detail_catch_up_on`:`change_detail_catch_up_off`)],...e.enabled===void 0?[]:[D(e.enabled?`change_detail_on`:`change_detail_off`)]].join(D(`listSeparator`));return D(`change_change_schedule`,{name:t(e.schedule),details:r})}}}function z_({approval:e,session:t}){let n=e.request,[r,i]=(0,v.useState)(``),[a,o]=(0,v.useState)(!1),s=C_(),c=Q(t=>Ut(e.id,t===`deny`&&r.trim()?{decision:t,reason:r.trim()}:{decision:t}));if(e.status!==`pending`){let t=e.response?.decision;return(0,U.jsx)(`p`,{className:`hint`,children:e.status===`cancelled`?D(`cancelled`):t&&e.response?.reason?D(`decidedWithReason`,{decision:D(`decided_${t}`),reason:e.response.reason}):t?D(`decided_${t}`):``})}let l=n.rememberRules?.map(T_).join(D(`listSeparator`)),u=I_(n);return(0,U.jsxs)(`section`,{className:`card request-card`,"aria-label":u,children:[(0,U.jsx)(w_,{icon:(0,U.jsx)(ig,{}),parts:t?[t,pe(e.createdAt,s)]:[D(`approvalTitle`)],tags:n.mustConfirm?(0,U.jsx)(`span`,{className:`tag`,title:D(`confirmEachTimeHint`),children:D(`confirmEachTime`)}):null}),(0,U.jsx)(`p`,{className:`request-title`,children:u}),n.description&&(0,U.jsx)(Qf,{className:`request-description`,label:u,children:n.description}),n.tool===`open_session`?null:n.changes?(0,U.jsx)(`ul`,{className:`request-list`,children:n.changes.map((e,t)=>(0,U.jsx)(`li`,{children:R_(e)},t))}):(0,U.jsx)($f,{className:`code request-code`,label:u,children:n.summary}),n.diff&&(0,U.jsx)(rp,{patch:n.diff}),a&&(0,U.jsx)(`input`,{className:`input`,placeholder:D(`denyReason`),"aria-label":D(`denyReason`),value:r,onChange:e=>i(e.target.value),onKeyDown:e=>e.key===`Enter`&&void c.run(`deny`)}),l&&n.warning===`acts-as-you`&&(0,U.jsx)(`p`,{className:`hint request-warning`,children:D(`alwaysActsAsYou`)}),(0,U.jsxs)(`div`,{className:`request-actions`,children:[(0,U.jsxs)(Z,{variant:`primary`,busy:c.busy,onClick:()=>void c.run(`allow_once`),children:[(0,U.jsx)(yg,{}),D(`approve`)]}),l&&(0,U.jsxs)(Z,{className:`request-always`,busy:c.busy,onClick:()=>void c.run(`allow_always`),title:D(`rememberAs`,{rules:l}),children:[(0,U.jsx)(bg,{}),D(`approveAlways`,{rules:l})]}),(0,U.jsxs)(Z,{variant:`danger`,busy:c.busy,onClick:()=>a?void c.run(`deny`):o(!0),children:[(0,U.jsx)(xg,{}),D(a?`confirmDeny`:`deny`)]})]}),(0,U.jsx)($,{error:c.error})]})}function B_(e,t){let n=t?.answers;return n?D(`answered`,{a:e.map((t,r)=>{let i=n[r],a=(i?.choices??[]).map(e=>t.options?.[e]?.label??``).join(D(`enumSeparator`)),o=i?.text??``,s=a&&o?`${a}${D(`clauseSeparator`)}${o}`:a||o;return e.length===1?s:`${t.header||t.question} ${s}`}).join(D(`clauseSeparator`))}):D(`answered`,{a:t?.answer??``})}function V_({approval:e,session:t}){let n=up(e.request),[r,i]=(0,v.useState)(()=>n.map(e=>({choices:e.recommended!==void 0&&e.options?.[e.recommended]?[e.recommended]:[],other:!e.options?.length,text:``}))),a=C_(),o=(0,v.useId)(),s=Q(()=>Ut(e.id,{answers:r.map(e=>({choices:e.choices,...e.other&&e.text.trim()?{text:e.text.trim()}:{}}))}));if(e.status!==`pending`)return(0,U.jsx)(`p`,{className:`hint`,children:e.status===`cancelled`?D(`cancelled`):B_(n,e.response)});let c=r.every(e=>e.choices.length>0||e.other&&e.text.trim()),l=(e,t)=>i(n=>n.map((n,r)=>r===e?t(n):n)),u=(e,t,n)=>l(e,e=>n?{...e,choices:e.choices.includes(t)?e.choices.filter(e=>e!==t):[...e.choices,t].sort((e,t)=>e-t)}:{...e,choices:[t],other:!1}),d=(e,t,n=!0)=>l(e,e=>t?{...e,other:n}:{...e,choices:n?[]:e.choices,other:n});return(0,U.jsxs)(`section`,{className:`card request-card`,"aria-label":D(`questionTitle`),children:[(0,U.jsx)(w_,{icon:(0,U.jsx)(ag,{}),parts:t?[t,e.request.fromReply&&D(`askedInReply`),pe(e.createdAt,a)]:[D(`questionTitle`)]}),n.map((e,t)=>{let n=r[t],i=`${o}-${t}`,a=e.options??[],s=e.multiple===!0,c=s?`checkbox`:`radio`,f=s?`decision-check`:`decision-radio`;return(0,U.jsxs)(`fieldset`,{className:`question-block`,"aria-labelledby":`${i}-q`,children:[(0,U.jsxs)(`p`,{id:`${i}-q`,className:`request-title request-question`,children:[e.header&&(0,U.jsx)(`span`,{className:`tag`,children:e.header}),e.question,s&&(0,U.jsx)(`span`,{className:`hint`,children:D(`pickSeveral`)})]}),a.map((r,a)=>(0,U.jsxs)(`label`,{className:`decision-option`,"data-checked":n.choices.includes(a)?`true`:void 0,children:[(0,U.jsx)(`input`,{type:c,className:`visually-hidden`,name:i,checked:n.choices.includes(a),onChange:()=>u(t,a,s)}),(0,U.jsx)(`span`,{className:f,"aria-hidden":`true`}),(0,U.jsxs)(`span`,{className:`decision-option-text`,children:[(0,U.jsxs)(`span`,{className:`decision-option-label`,children:[r.label,a===e.recommended&&(0,U.jsx)(`span`,{className:`tag`,children:D(`recommended`)})]}),r.detail&&(0,U.jsx)(`span`,{className:`hint`,children:r.detail})]})]},a)),a.length>0?(0,U.jsxs)(`div`,{className:`decision-option question-other`,"data-checked":n.other?`true`:void 0,children:[(0,U.jsx)(`input`,{id:`${i}-other`,type:c,className:`visually-hidden`,name:i,checked:n.other,onChange:e=>d(t,s,e.target.checked)}),(0,U.jsxs)(`label`,{htmlFor:`${i}-other`,children:[(0,U.jsx)(`span`,{className:f,"aria-hidden":`true`}),(0,U.jsx)(`span`,{className:`visually-hidden`,children:D(`otherAnswer`)})]}),(0,U.jsx)(`textarea`,{className:`question-other-input`,rows:1,placeholder:D(`otherAnswer`),"aria-label":D(`otherAnswer`),value:n.text,onFocus:()=>!s&&!n.other&&d(t,!1),onChange:e=>{let n=e.target.value;l(t,e=>({...e,text:n,other:!0,choices:s?e.choices:[]}))}})]}):(0,U.jsx)(`textarea`,{className:`textarea`,rows:1,placeholder:D(`answerPlaceholder`),"aria-labelledby":`${i}-q`,value:n.text,onChange:e=>{let n=e.target.value;l(t,e=>({...e,text:n,other:!0}))}})]},t)}),(0,U.jsx)(`div`,{className:`request-actions`,children:(0,U.jsxs)(Z,{variant:`primary`,busy:s.busy,disabled:!c,onClick:()=>void s.run(),children:[(0,U.jsx)(vg,{}),D(`answer`)]})}),(0,U.jsx)($,{error:s.error})]})}var H_=(0,v.memo)(function({call:e,view:t,result:n,approvals:r,output:i}){let a=t?.status??(n?n.isError?`error`:`done`:`pending`),o=r.some(e=>e.status===`pending`),s=t?.detail,c=s?.code===`unattended`,[l,u]=(0,v.useState)(!1),d=e.name===`send_letter`?e.arguments.to:void 0,f=N(e=>typeof d==`string`?e.sessions[d]?.name??null:null),p=a===`running`,m=P_(e.name)?D(p?`act_${e.name}_ing`:`act_${e.name}`):e.name,h=a!==`running`&&a!==`done`;return(0,U.jsxs)(`div`,{className:`msg-assistant msg-tool`,children:[!o&&(0,U.jsxs)(`details`,{className:`activity tool-card`,open:l,onToggle:e=>u(e.target.open),children:[(0,U.jsxs)(`summary`,{children:[(0,U.jsx)(`span`,{className:p?`activity-verb shimmer`:`activity-verb`,children:m}),(0,U.jsx)(`span`,{className:`tool-summary`,children:M_(e,f)}),s?.diff&&(0,U.jsxs)(`span`,{className:`tool-stat`,children:[(0,U.jsxs)(`span`,{className:`stat-add`,"aria-hidden":`true`,children:[`+`,s.added??0]}),` `,(0,U.jsxs)(`span`,{className:`stat-del`,"aria-hidden":`true`,children:[`−`,s.removed??0]}),(0,U.jsxs)(`span`,{className:`visually-hidden`,children:[D(`linesAdded`,{n:s.added??0}),` `,D(`linesRemoved`,{n:s.removed??0})]})]}),h&&(0,U.jsx)(`span`,{className:`tool-state tool-state-${a}`,children:D(a===`denied`&&c?`tool_unattended`:`tool_${a}`)}),(0,U.jsx)(Yh,{})]}),(0,U.jsxs)(`div`,{className:`tool-detail`,children:[(0,U.jsx)(`h2`,{children:D(`toolArguments`)}),(0,U.jsx)($f,{className:`code output`,label:D(`toolArguments`),children:JSON.stringify(e.arguments,null,2)}),a===`running`&&i&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`h2`,{children:D(`toolOutput`)}),(0,U.jsx)($f,{className:`code output`,label:D(`toolOutput`),follow:!0,children:i})]}),s?.diff&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`h2`,{children:D(`diff`)}),(0,U.jsx)(rp,{patch:s.diff})]}),n&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`h2`,{children:D(`toolResult`)}),(0,U.jsx)($f,{className:`code output`,label:D(`toolResult`),children:j_(n)})]})]})]}),r.map(e=>e.kind===`permission`?(0,U.jsx)(z_,{approval:e},e.id):(0,U.jsx)(V_,{approval:e},e.id))]})});function U_(e){return e.role===`assistant`?e.message.content.flatMap(e=>e.type===`text`&&e.text.trim()?[e.text]:[]).join(`
59
+
60
+ `):``}function W_(e){let t=e.message.content;return typeof t==`string`?t:t.map(e=>e.type===`text`?e.text:``).join(`
61
+ `)}function G_(e,t){let n=[],r=[],i=(e=!1)=>{let t=r[0];t&&n.push({kind:`steps`,key:t.key,steps:r,live:e,alone:!1}),r=[]},a=(t,a,o)=>{t.content.forEach((s,c)=>{let l=`${a??`draft`}:${c}`;if(s.type===`thinking`){let e=c===t.content.length-1;s.thinking.trim()&&r.push({kind:`thinking`,key:l,text:s.thinking,live:o&&e})}else if(s.type===`text`){if(!s.text.trim())return;i();let e=a!==null&&!o&&!t.content.some(e=>e.type===`toolCall`)&&!t.content.slice(c+1).some(e=>e.type===`text`&&e.text.trim());n.push({kind:`text`,key:l,text:s.text,live:o,forkFrom:e?a:null})}else{let t=a?Sn(e.toolCalls,a,s.id):void 0,o=t!==void 0&&Object.values(e.approvals).some(e=>e.toolCallId===t.id&&e.status===`pending`),c={kind:`tool`,key:s.id,block:s,entryId:a};if(!o){r.push(c);return}i(),n.push({kind:`steps`,key:s.id,steps:[c],live:!1,alone:!0})}})};for(let t of e.entries)t.role===`assistant`?a(t.message,t.id,!1):t.role===`system`||t.role===`compaction`?r.push({kind:`note`,key:t.id,entry:t}):t.role===`user`&&W_(t).startsWith(`[From Yew, not from the person]`)||t.role!==`toolResult`&&(i(),n.push({kind:`entry`,key:t.id,entry:t}));return e.draft&&a(e.draft,null,!0),i(t),n}function K_(e,t,n){if(e.kind!==`tool`)return!1;let r=(e.entryId?Sn(t.toolCalls,e.entryId,e.block.id):void 0)?.status??(n.get(e.block.id)?.isError?`error`:`done`);return r===`error`||r===`denied`}function q_(e){let t=e_(e.flatMap(e=>e.kind===`tool`?[e.block.name]:[])),n=e.filter(e=>e.kind===`note`).length,r=e.filter(e=>e.kind===`thinking`).length;return E_({...t,others:t.others+n})||D(r===1?`sum_think_one`:`sum_think`,{n:r})}function J_({session:e,entry:t,text:n,mine:r,canRewind:i}){O();let a=C_(),[o,s]=(0,v.useState)(!1),[c,l]=(0,v.useState)(!1),u=Q(()=>Qe(e.id,t.id,r?n:void 0)),d=Q(()=>$e(e.id,t.id,r?n:void 0)),f=async()=>{await navigator.clipboard?.writeText(n),s(!0),setTimeout(()=>s(!1),1500)},p=new Intl.DateTimeFormat(oe()===`zh`?`zh-CN`:`en-US`,{dateStyle:`medium`,timeStyle:`short`}).format(t.createdAt);return(0,U.jsxs)(`div`,{className:r?`message-actions message-actions-mine`:`message-actions`,children:[(0,U.jsx)(`time`,{className:`hint`,dateTime:new Date(t.createdAt).toISOString(),title:p,children:fe(t.createdAt,a)}),(0,U.jsx)(Z,{variant:`icon`,"aria-label":D(o?`copied`:`copy`),title:D(o?`copied`:`copy`),onClick:()=>void f(),children:o?(0,U.jsx)(yg,{}):(0,U.jsx)(Og,{})}),i&&(0,U.jsx)(Z,{variant:`icon`,"aria-label":D(`rewindHere`),title:e.status===`working`?D(`rewindBusy`):D(`rewindHere`),disabled:e.status===`working`,busy:d.busy,onClick:()=>l(!0),children:(0,U.jsx)(Kg,{})}),(0,U.jsx)(Z,{variant:`icon`,"aria-label":D(`forkFromHere`),title:D(r?`forkBeforeHint`:`forkFromHereHint`),busy:u.busy,onClick:()=>void u.run(),children:(0,U.jsx)(Gg,{})}),(0,U.jsx)($,{error:u.error??d.error}),c&&(0,U.jsx)(jv,{title:D(`rewindTitle`),body:D(r?`rewindBodyMine`:`rewindBodyReply`),confirmLabel:D(`rewind`),onConfirm:()=>d.run(),onClose:()=>l(!1)})]})}function Y_({step:e,transcript:t,results:n}){if(e.kind===`thinking`)return(0,U.jsx)(F_,{text:e.text,live:e.live});if(e.kind===`note`)return(0,U.jsx)(Z_,{entry:e.entry});let r=e.entryId?Sn(t.toolCalls,e.entryId,e.block.id):void 0,i=r?Object.values(t.approvals).filter(e=>e.toolCallId===r.id):[],a=e.block.name===`save_artifact`?r?.detail:null;return a&&typeof a.artifactId==`string`?(0,U.jsx)(Bv,{id:a.artifactId,name:String(a.name??``),kind:String(a.kind??`markdown`),version:Number(a.version??1)}):(0,U.jsx)(H_,{call:e.block,view:r,result:n.get(e.block.id),approvals:i,output:r?t.outputs[r.id]:void 0})}function X_({steps:e,live:t,transcript:n,results:r}){O();let[i,a]=(0,v.useState)(!1),o=e.filter(e=>K_(e,n,r)).length,s=e[e.length-1];return(0,U.jsxs)(`div`,{className:`step-group`,children:[(0,U.jsxs)(`details`,{className:`activity`,open:i,onToggle:e=>a(e.target.open),children:[(0,U.jsxs)(`summary`,{children:[(0,U.jsx)(`span`,{className:`activity-verb activity-count`,children:q_(e)}),o>0&&(0,U.jsx)(`span`,{className:`tool-state tool-state-error`,children:D(`stepsFailed`,{n:o})}),(0,U.jsx)(Yh,{})]}),(0,U.jsx)(Qf,{className:`step-list`,label:q_(e),follow:t,children:e.map(e=>(0,U.jsx)(Y_,{step:e,transcript:n,results:r},e.key))})]}),t&&!i&&s&&(0,U.jsx)(Y_,{step:s,transcript:n,results:r})]})}function Z_({entry:e}){return O(),e.role===`system`?(0,U.jsxs)(`details`,{className:`activity`,children:[(0,U.jsxs)(`summary`,{children:[(0,U.jsx)(`span`,{className:`activity-verb`,children:D(`instructionsUpdated`)}),(0,U.jsx)(Yh,{})]}),(0,U.jsx)($f,{className:`code output note-body`,label:D(`instructionsUpdated`),children:e.message.content})]}):e.role===`compaction`?(0,U.jsxs)(`details`,{className:`activity`,children:[(0,U.jsxs)(`summary`,{children:[(0,U.jsx)(`span`,{className:`activity-verb`,children:D(`summaryTitle`)}),(0,U.jsx)(Yh,{})]}),(0,U.jsx)(Qf,{className:`tool-detail note-summary`,label:D(`summaryTitle`),children:(0,U.jsx)(np,{text:e.compaction.summary})})]}):null}function Q_({letter:e}){O();let t=e.from.sessionId,n=N(e=>t?e.sessions[t]?.name??null:null);if(e.kind===`decision`&&e.decision&&e.from.kind===`person`){let t=e.decision;return(0,U.jsxs)(`section`,{className:`letter-card letter-decision`,"aria-label":D(`decisionHeading`,{n:t.number}),children:[(0,U.jsxs)(`div`,{className:`letter-head`,children:[(0,U.jsx)(jg,{}),(0,U.jsx)(`span`,{children:D(`decisionHeading`,{n:t.number})}),(0,U.jsx)(`span`,{className:`tag`,children:D(`byYou`)})]}),(0,U.jsx)(`p`,{className:`letter-summary`,children:t.title}),(0,U.jsx)(`p`,{children:t.choice?D(`decidedChoice`,{c:t.choice}):D(`noteOnly`)}),t.note&&(0,U.jsx)(`p`,{className:`letter-note`,children:t.note})]})}let r=e.from.kind===`cli`?D(`fromCli`):e.from.kind===`person`?D(`you`):e.from.kind===`yew`?D(`fromSchedule`,{name:D(`quoted`,{s:e.from.name})}):n??e.from.name,i=k_(e.body,e.summary),a=D(`letterKind_${e.kind}`);return(0,U.jsxs)(`section`,{className:`letter-card`,"aria-label":`${a} · ${r}`,children:[(0,U.jsxs)(`div`,{className:`letter-head`,children:[(0,U.jsx)(cg,{}),t&&n?(0,U.jsx)(`button`,{type:`button`,className:`link-button`,onClick:()=>void qe(t),children:r}):(0,U.jsx)(`span`,{children:r}),(0,U.jsx)(`span`,{className:`tag`,children:a}),e.schedule&&e.from.kind!==`yew`&&(0,U.jsx)(`span`,{className:`hint`,children:D(`fromSchedule`,{name:D(`quoted`,{s:e.schedule.name})})}),e.auto&&(0,U.jsx)(`span`,{className:`hint`,children:D(`sentByYew`)})]}),(0,U.jsx)(`p`,{className:`letter-summary`,children:O_(e.summary)||e.summary}),i&&(0,U.jsx)(Qf,{className:`letter-body`,label:e.summary,children:(0,U.jsx)(np,{text:i,breaks:!0})}),e.decision&&(0,U.jsxs)(`p`,{className:`hint`,children:[D(`verifiedDecision`,{n:e.decision.number}),` ·`,` `,e.decision.choice?D(`decidedChoice`,{c:e.decision.choice}):D(`noteOnly`)]})]})}function $_({entry:e}){switch(e.role){case`user`:return e.letter?(0,U.jsx)(Q_,{letter:e.letter}):(0,U.jsxs)(Qf,{className:`msg-user`,label:D(`you`),children:[(0,U.jsxs)(`span`,{className:`visually-hidden`,children:[D(`you`),`: `]}),W_(e)]});case`notice`:{let t=e.notice,n=t.data??{},r;if(t.kind===`error`){let e=String(n.code??``);r=e===`model-error`?D(`notice_error_model`,{text:t.text??``}):e===`compact-failed`?D(`notice_compact_failed`,{text:t.text??``}):e===`missing-api-key`?D(`err_missingKey`,{provider:String(n.provider??``)}):e===`step-limit`?D(`notice_step_limit`,{n:Number(n.steps??0)}):D(e===`output-cut`?`notice_output_cut`:`notice_error_internal`)}else if(t.kind===`job_finished`)r=D(`notice_job_finished`,{job:String(n.job??``),command:String(n.command??``),exit:n.exitCode===null||n.exitCode===void 0?``:D(`jobExit`,{code:n.exitCode})});else if(t.kind===`budget`)r=D(n.code===`budget-reached`?`notice_budget_reached`:`notice_budget_warning`,{scope:D(n.scope===`session`?`budgetScope_session`:`budgetScope_all`),spent:ue(Number(n.spent??0)),limit:ue(Number(n.limit??0))});else if(t.kind===`changed`){let e=t.data?.steps??[];r=D(`notice_changed`,{by:String(n.by??``),changes:e.map(R_).join(D(`clauseSeparator`))})}else r=D(`notice_${t.kind}`,{text:t.text??``});return(0,U.jsx)(`p`,{className:`notice ${t.kind===`error`?`notice-error`:``}`,children:r})}default:return null}}function ev({transcript:e}){O();let t=N(t=>t.sessions[e.sessionId]),n=(0,v.useMemo)(()=>new Map(e.entries.map(e=>[e.id,e])),[e.entries]),r=(0,v.useMemo)(()=>e.entries.reduce((e,t)=>t.role===`compaction`?Math.max(e,t.seq):e,0),[e.entries]),i=(0,v.useRef)(null),[a,o]=(0,v.useState)(!1),s=Zf(i,(0,v.useCallback)(e=>{e&&o(!1)},[])),c=Q(Je),l=new Map;for(let t of e.entries)t.role===`toolResult`&&l.set(t.message.toolCallId,t.message);let u=G_(e,t?.status===`working`),d=Object.values(e.approvals).filter(e=>!e.toolCallId&&e.status===`pending`),f=e.entries.at(-1)?.seq??0,p=`${f}:${e.draft?e.draft.content.reduce((e,t)=>e+(t.type===`text`?t.text.length:t.type===`thinking`?t.thinking.length:1),0):0}:${Object.keys(e.approvals).length}`;(0,v.useLayoutEffect)(()=>{let t=i.current;t&&(s.current?(t.scrollTop=t.scrollHeight,Ye(e.sessionId)):o(!0))},[p]);let m=e.sessionId;(0,v.useEffect)(()=>{s.current=!0,o(!1)},[m]);let h=t?.unread??0;return(0,v.useEffect)(()=>{h>0&&s.current&&Ye(e.sessionId)},[h,e.sessionId,s]),(0,U.jsx)(`section`,{ref:i,className:`transcript`,"aria-label":t?.name??``,"aria-live":`off`,tabIndex:0,"data-last-seq":f,children:(0,U.jsxs)(`div`,{className:`transcript-inner`,children:[e.olderCursor!==null&&(0,U.jsx)(Z,{busy:c.busy,onClick:()=>void c.run(),children:D(`loadEarlier`)}),e.entries.length===0&&!e.draft&&(0,U.jsx)(`p`,{className:`notice`,children:D(`emptyTranscript`)}),u.map(i=>{if(i.kind===`entry`){let e=i.entry;return t&&e.role===`user`&&!e.letter?(0,U.jsxs)(`div`,{className:`message message-mine`,children:[(0,U.jsx)($_,{entry:e}),(0,U.jsx)(J_,{session:t,entry:e,text:W_(e),mine:!0,canRewind:e.seq-1>=r})]},i.key):(0,U.jsx)($_,{entry:e},i.key)}if(i.kind===`text`)return(0,U.jsxs)(`div`,{className:`msg-assistant`,children:[(0,U.jsx)(np,{text:i.text,live:i.live}),i.forkFrom&&t&&n.get(i.forkFrom)&&(0,U.jsx)(J_,{session:t,entry:n.get(i.forkFrom),text:U_(n.get(i.forkFrom)),mine:!1,canRewind:n.get(i.forkFrom).seq>=r})]},i.key);let a=i.steps[0];return a&&(i.alone||i.steps.length===1)?(0,U.jsx)(Y_,{step:a,transcript:e,results:l},i.key):(0,U.jsx)(X_,{steps:i.steps,live:i.live,transcript:e,results:l},i.key)}),d.map(e=>(0,U.jsx)(V_,{approval:e},e.id)),a&&(0,U.jsxs)(Z,{className:`new-messages`,onClick:()=>{let e=i.current;e&&(e.scrollTop=e.scrollHeight),s.current=!0,o(!1)},children:[D(`jumpToNew`),` ↓`]})]})})}function tv(){return N(e=>e.settings?.workspaces)??[]}function nv(e){return e.replace(/^\/(Users|home)\/[^/]+(?=\/|$)/,`~`)}function rv(e,t){return e.find(e=>e.path===t)?.name??nv(t)}function iv(e){return e.split(`/`).filter(Boolean).pop()??e}function av({onClose:e,onCreated:t}){O();let n=tv(),[r,i]=(0,v.useState)(``),[a,o]=(0,v.useState)(``),s=(0,v.useId)(),c=(0,v.useId)(),l=Q(async()=>{let e=await x(`POST`,`/api/folders/pick`);e.path&&(o(e.path),r.trim()||i(iv(e.path)))}),u=Q(async()=>{let i=crypto.randomUUID(),o=a.trim();await xn({workspaces:[...n,{id:i,name:r.trim()||iv(o),path:o}]});let s=j().settings?.workspaces.find(e=>e.id===i);t?.(s?.path??o),e()});return(0,U.jsxs)(y_,{title:D(`newWorkspace`),size:`s`,onClose:e,footer:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Z,{onClick:e,children:D(`cancel`)}),(0,U.jsxs)(Z,{variant:`primary`,busy:u.busy,disabled:!a.trim(),onClick:()=>void u.run(),children:[(0,U.jsx)(Ih,{}),D(`createWorkspace`)]})]}),children:[(0,U.jsx)(S_,{label:D(`name`),htmlFor:s,children:(0,U.jsx)(`input`,{id:s,className:`input`,value:r,maxLength:60,placeholder:D(`workspaceNamePlaceholder`),autoFocus:!0,onChange:e=>i(e.target.value)})}),(0,U.jsxs)(`div`,{className:`field`,children:[(0,U.jsxs)(`div`,{className:`field-head`,children:[(0,U.jsx)(`label`,{className:`field-label`,htmlFor:c,children:D(`workspaceFolder`)}),(0,U.jsxs)(Z,{busy:l.busy,onClick:()=>void l.run(),children:[(0,U.jsx)(Ih,{}),D(`chooseFolder`)]})]}),(0,U.jsxs)(`div`,{className:`folder-box`,children:[(0,U.jsx)(Bh,{}),(0,U.jsx)(`input`,{id:c,value:a,placeholder:D(`workspaceFolderHint`),spellCheck:!1,onChange:e=>o(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.nativeEvent.isComposing&&a.trim()&&(e.preventDefault(),u.run())}})]})]}),(0,U.jsx)($,{error:l.error??u.error})]})}var ov=`new`;function sv({value:e,onChange:t,busy:n}){O();let r=tv(),[i,a]=(0,v.useState)(!1),o=e&&!r.some(t=>t.path===e)?e:null;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(p_,{label:D(`workingFolder`),value:e??``,busy:n,options:[{value:``,label:D(`noFolder`)},...r.map(e=>({value:e.path,label:e.name,group:D(`workspaces`)})),...o?[{value:o,label:nv(o),group:D(`workspaces`)}]:[],{value:ov,label:D(`newWorkspaceItem`)}],onChange:e=>{e===ov?a(!0):t(e||null)}}),i&&(0,U.jsx)(av,{onClose:()=>a(!1),onCreated:t})]})}function cv(e){let t=N(t=>t.models[e]);return(0,v.useEffect)(()=>{t||Wt(e).catch(()=>{})},[e,t]),t??[]}var lv=[`off`,`minimal`,`low`,`medium`,`high`,`xhigh`,`max`];function uv(e,t){if(e.includes(t))return t;let n=lv.indexOf(t);for(let t of lv.slice(n+1))if(e.includes(t))return t;for(let t of lv.slice(0,n).reverse())if(e.includes(t))return t;return e[0]??`off`}function dv({provider:e,model:t,thinking:n,onChange:r,busy:i,layout:a=`row`}){O();let o=N(e=>e.providers),s=cv(e),c=s.find(e=>e.id===t),l={provider:(0,v.useId)(),model:(0,v.useId)(),thinking:(0,v.useId)()},u=o.map(e=>({value:e.id,label:e.hasKey||!e.keyRequired?e.name:`${e.name} · ${D(`noKey`)}`,group:D(`region_${e.region}`)}));u.sort((e,t)=>e.group===t.group?0:e.group===D(`region_cn`)?-1:1);let d=a===`grid`,f={provider:(0,U.jsx)(p_,{...d?{labelledBy:l.provider}:{label:D(`provider`)},value:e,options:u,busy:i,onChange:async e=>{let t=(await Wt(e))[0];t&&r({provider:e,model:t.id})}}),model:(0,U.jsx)(p_,{...d?{labelledBy:l.model}:{label:D(`model`)},value:t,busy:i,options:s.map(e=>({value:e.id,label:e.name})),onChange:e=>r({model:e})}),thinking:c?.reasoning?(0,U.jsx)(p_,{...d?{labelledBy:l.thinking}:{label:D(`thinking`)},value:uv(c.thinkingLevels,n),busy:i,options:c.thinkingLevels.map(e=>({value:e,label:d?D(`thinking_${e}`):D(`thinkingLevel`,{level:D(`thinking_${e}`)})})),onChange:e=>r({thinking:e})}):null};return d?(0,U.jsxs)(`div`,{className:`model-grid`,children:[(0,U.jsxs)(`div`,{className:`field`,children:[(0,U.jsx)(`span`,{className:`field-label`,id:l.provider,children:D(`provider`)}),f.provider]}),(0,U.jsxs)(`div`,{className:`field`,children:[(0,U.jsx)(`span`,{className:`field-label`,id:l.model,children:D(`model`)}),f.model]}),f.thinking&&(0,U.jsxs)(`div`,{className:`field`,children:[(0,U.jsx)(`span`,{className:`field-label`,id:l.thinking,children:D(`thinking`)}),f.thinking]})]}):(0,U.jsxs)(`div`,{className:`model-picker`,children:[f.provider,f.model,f.thinking]})}function fv({className:e=``}){return O(),(0,U.jsx)(Z,{variant:`icon`,className:`only-narrow ${e}`.trim(),"aria-label":D(`openSidebar`),onClick:()=>M({drawerOpen:!0}),children:(0,U.jsx)(Hh,{})})}function pv({session:e,transcript:t}){O();let n=tv(),r=N(t=>t.settings?.mainSessionId===e.id),i=e.parentId,a=N(e=>i?e.sessions[i]?.name??null:null),o=e.usage.input+e.usage.output+e.usage.cacheRead+e.usage.cacheWrite;return(0,U.jsxs)(`header`,{className:`session-header`,children:[(0,U.jsx)(fv,{}),(0,U.jsxs)(`div`,{className:`session-title session-title-stack`,children:[(0,U.jsx)(`h1`,{children:e.name}),(0,U.jsx)(D_,{session:e,transcript:t})]}),(0,U.jsxs)(`div`,{className:`session-aside`,children:[r&&(0,U.jsx)(`span`,{className:`tag`,children:D(`mainConversation`)}),e.outcome&&(0,U.jsx)(`span`,{className:`tag`,children:D(`outcome_${e.outcome}`)}),i&&a&&(0,U.jsx)(`button`,{type:`button`,className:`link-button session-parent`,onClick:()=>void qe(i),children:D(`openedBy`,{name:a})}),(0,U.jsxs)(`span`,{className:`session-meta`,title:e.cwd??void 0,children:[D(`status_${e.status}`),` ·`,` `,e.cwd?rv(n,e.cwd):D(`chat`),` ·`,` `,D(`tokens`,{n:ce(o)}),` ·`,` `,D(`cost`,{n:ue(e.usage.cost)})]})]})]})}function mv({used:e,total:t}){O();let n=t>0?Math.min(100,Math.round(e/t*100)):0,r=D(`contextPercent`,{p:n,used:ce(e),total:ce(t)}),i=(n/100*360-90)*(Math.PI/180),a=12+6*Math.cos(i),o=12+6*Math.sin(i);return(0,U.jsx)(`span`,{className:n>=80?`context-pie context-pie-high`:`context-pie`,role:`meter`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n,"aria-label":r,title:r,children:(0,U.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:16,height:16,"aria-hidden":`true`,children:[(0,U.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9.5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.75`}),n>=100?(0,U.jsx)(`circle`,{cx:`12`,cy:`12`,r:`6`,fill:`currentColor`}):n>0?(0,U.jsx)(`path`,{d:`M12 12V6A6 6 0 ${+(n>50)} 1 ${a.toFixed(2)} ${o.toFixed(2)}Z`,fill:`currentColor`}):null]})})}function hv(e){let t=(0,v.useRef)(null);return(0,v.useEffect)(()=>{let e=t.current;e&&!CSS.supports(`field-sizing`,`content`)&&(e.style.height=`auto`,e.style.height=`${e.scrollHeight+2}px`)},[e]),t}function gv({sessionId:e,id:t,text:n}){let[r,i]=(0,v.useState)(!1),[a,o]=(0,v.useState)(n),s=Q(async()=>{await Vt(e,t,a),i(!1)}),c=Q(()=>Ht(e,t)),l=hv(a);return(0,U.jsxs)(`div`,{className:`queued-item`,children:[r?(0,U.jsx)(`textarea`,{ref:l,className:`textarea`,value:a,"aria-label":D(`edit`),onChange:e=>o(e.target.value)}):(0,U.jsx)(`span`,{children:n}),r?(0,U.jsxs)(Z,{busy:s.busy,onClick:()=>void s.run(),children:[(0,U.jsx)(yg,{}),D(`save`)]}):(0,U.jsxs)(Z,{onClick:()=>i(!0),children:[(0,U.jsx)(Dg,{}),` `,D(`edit`)]}),(0,U.jsxs)(Z,{busy:c.busy,onClick:()=>void c.run(),children:[(0,U.jsx)(Hg,{}),D(`remove`)]}),(0,U.jsx)($,{error:s.error??c.error})]})}function _v({session:e,transcript:t}){O();let[n,r]=(0,v.useState)(``),i=N(t=>t.prefill[e.id]);(0,v.useEffect)(()=>{if(i===void 0)return;let t=et(e.id);t!==null&&r(t)},[i,e.id]);let a=hv(n),o=e.status===`working`||e.status===`waiting`,s=Q(t=>tt(e.id,t)),c=Q(async()=>{let t=n;t.trim()&&(await Lt(e.id,t),r(``))}),l=Q(()=>Rt(e.id)),u=Q(()=>zt(e.id)),d=Q(()=>Bt(e.id)),f=cv(e.provider).find(t=>t.id===e.model),p=Q(async t=>{await tt(e.id,{cwd:t})}),m=D(o?`queueSend`:`send`);return(0,U.jsx)(`div`,{className:`composer`,children:(0,U.jsxs)(`div`,{className:`composer-inner`,children:[t.queue.length>0&&(0,U.jsx)(`section`,{className:`queued`,"aria-label":D(`queuedTitle`),children:t.queue.map(t=>(0,U.jsx)(gv,{sessionId:e.id,id:t.id,text:t.text},t.id))}),(0,U.jsxs)(`div`,{className:`composer-box`,children:[(0,U.jsx)(`textarea`,{ref:a,rows:1,value:n,placeholder:o?D(`composerQueued`):D(`composerPlaceholder`,{name:e.name}),"aria-label":D(`composerPlaceholder`,{name:e.name}),onChange:e=>r(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&!e.nativeEvent.isComposing&&(e.preventDefault(),c.run())}}),(0,U.jsxs)(`div`,{className:`composer-bar`,children:[(0,U.jsxs)(`div`,{className:`composer-chips`,children:[(0,U.jsx)(sv,{value:e.cwd,busy:p.busy,onChange:e=>void p.run(e)}),(0,U.jsx)(dv,{provider:e.provider,model:e.model,thinking:e.thinking,busy:s.busy,onChange:e=>void s.run(e)}),(0,U.jsx)(p_,{label:D(`permissionMode`),value:lp(e.options),options:cp.map(e=>({value:e,label:D(`perm_${e}`),hint:D(`perm_${e}_hint`)})),busy:s.busy,onChange:e=>void s.run({options:{permissionMode:e}})})]}),(0,U.jsxs)(`div`,{className:`composer-actions`,children:[!o&&e.contextTokens>0&&(0,U.jsx)(Z,{variant:`icon`,"aria-label":D(`compact`),title:D(`compact`),busy:d.busy,onClick:()=>void d.run(),children:(0,U.jsx)(Qh,{})}),!o&&(0,U.jsx)(Z,{variant:`icon`,"aria-label":D(`continue`),title:D(`continueHint`),busy:u.busy,onClick:()=>void u.run(),children:(0,U.jsx)($h,{})}),f&&(0,U.jsx)(mv,{used:e.contextTokens,total:f.contextWindow}),o&&!n.trim()?(0,U.jsx)(Z,{className:`send-button`,"aria-label":D(`stop`),title:D(`stop`),busy:l.busy,onClick:()=>void l.run(),children:(0,U.jsx)(qh,{})}):(0,U.jsx)(Z,{className:`send-button`,"aria-label":m,title:m,busy:c.busy,disabled:!n.trim(),onClick:()=>void c.run(),children:(0,U.jsx)(Kh,{})})]})]})]}),(0,U.jsx)($,{error:c.error??l.error??s.error??u.error??d.error??p.error})]})})}var vv={pending:(0,U.jsx)(Fg,{}),in_progress:(0,U.jsx)(Ig,{}),done:(0,U.jsx)(Lg,{})};function yv({session:e}){O();let[t,n]=(0,v.useState)(!1),r=(0,v.useId)(),i=e.todos;if(i.length===0)return null;let a=i.filter(e=>e.status===`done`).length,o=i.find(e=>e.status===`in_progress`);return(0,U.jsxs)(`aside`,{className:t?`todo-card open`:`todo-card`,"aria-label":D(`todoTitle`),children:[(0,U.jsxs)(`button`,{type:`button`,className:`todo-toggle`,"aria-expanded":t,"aria-controls":r,onClick:()=>n(!t),children:[(0,U.jsx)(Pg,{}),(0,U.jsx)(`span`,{className:`todo-count`,children:D(`todoProgress`,{done:a,total:i.length})}),o&&(0,U.jsx)(`span`,{className:`todo-current`,children:o.text}),(0,U.jsx)(Yh,{})]}),(0,U.jsx)(Qf,{as:`ol`,id:r,className:`todo-list`,hidden:!t,label:D(`todoTitle`),children:i.map((e,t)=>({...e,key:`todo-${t}`})).map(e=>(0,U.jsxs)(`li`,{className:`todo-${e.status}`,children:[vv[e.status],(0,U.jsx)(`span`,{children:e.text})]},e.key))})]})}var bv=[{key:`code`,icon:(0,U.jsx)(Uh,{})},{key:`docs`,icon:(0,U.jsx)(Wh,{})},{key:`chat`,icon:(0,U.jsx)(Gh,{})}];function xv(e){let t=(e.trim().split(`
62
+ `)[0]??``).replace(/[@\p{Cc}]/gu,``).trim(),n=[...t];return n.length>24?`${n.slice(0,24).join(``)}…`:t}function Sv(){O();let e=N(e=>e.settings),t=N(e=>e.homeFolder),[n,r]=(0,v.useState)(``),[i,a]=(0,v.useState)(()=>e?.workspaces.find(t=>t.id===e.defaultWorkspaceId)?.path??null),[o,s]=(0,v.useState)(null),[c,l]=(0,v.useState)(()=>e?.defaultModel??{provider:`deepseek`,model:`deepseek-v4-pro`,thinking:`medium`}),[u,d]=(0,v.useState)(!1),f=hv(n);(0,v.useEffect)(()=>{f.current?.focus()},[f]),(0,v.useEffect)(()=>{t&&(a(t),M({homeFolder:null}),f.current?.focus())},[t,f]);let p=o===`code`||o===`docs`?o:null,m=p!==null&&!i,h=Q(async()=>{let e=n.trim();e&&!m&&await at({name:it(xv(e)||D(`template_chat`)),kind:`task`,groupId:null,cwd:i,responsibility:p?D(`template_${p}_role`):``,...c,autoName:!0},e)}),g=e=>{let t=o===e?null:e;s(t),t===`chat`&&a(null),f.current?.focus()};return(0,U.jsxs)(`main`,{className:`main main-home`,children:[(0,U.jsx)(fv,{className:`home-menu`}),(0,U.jsxs)(`div`,{className:`home`,children:[(0,U.jsxs)(`div`,{className:`home-intro`,children:[(0,U.jsx)(Zg,{pose:`greeting`,height:104,className:`home-mascot`}),(0,U.jsx)(`h1`,{children:D(`homeTitle`)})]}),(0,U.jsxs)(`div`,{className:`composer-box`,children:[(0,U.jsx)(`textarea`,{ref:f,rows:2,value:n,placeholder:D(`homePlaceholder`),"aria-label":D(`homeTitle`),onChange:e=>r(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&!e.nativeEvent.isComposing&&(e.preventDefault(),h.run())}}),(0,U.jsxs)(`div`,{className:`composer-bar`,children:[(0,U.jsxs)(`div`,{className:`composer-chips`,children:[(0,U.jsx)(sv,{value:i,onChange:a}),(0,U.jsx)(dv,{...c,onChange:e=>l(t=>({...t,...e}))})]}),(0,U.jsx)(`div`,{className:`composer-actions`,children:(0,U.jsx)(Z,{className:`send-button`,"aria-label":D(`send`),title:D(`send`),busy:h.busy,disabled:!n.trim()||m,onClick:()=>void h.run(),children:(0,U.jsx)(Kh,{})})})]})]}),m&&(0,U.jsx)(`p`,{className:`hint`,role:`status`,children:D(`folderRequired`)}),(0,U.jsx)($,{error:h.error}),(0,U.jsx)(`div`,{className:`suggestions`,children:bv.map(({key:e,icon:t})=>(0,U.jsxs)(Z,{className:`suggestion`,"aria-pressed":o===e,onClick:()=>g(e),children:[t,D(`template_${e}`)]},e))}),(0,U.jsxs)(Z,{variant:`ghost`,className:`home-more`,onClick:()=>d(!0),children:[(0,U.jsx)(og,{}),D(`moreOptions`)]}),u&&(0,U.jsx)(Dv,{onClose:()=>d(!1)})]})]})}function Cv(){O();let e=N(e=>e.selectedId),t=N(e=>e.selectedId?e.sessions[e.selectedId]:void 0),n=N(e=>e.transcript);return!e||!t?(0,U.jsx)(Sv,{}):(0,U.jsxs)(`main`,{className:`main`,children:[(0,U.jsx)(pv,{session:t,transcript:n&&n.sessionId===t.id?n:null}),(0,U.jsxs)(`div`,{className:`session-body`,children:[n&&n.sessionId===t.id?(0,U.jsx)(ev,{transcript:n}):(0,U.jsx)(`p`,{className:`notice`,children:D(`loading`)}),(0,U.jsx)(yv,{session:t})]}),n&&n.sessionId===t.id&&(0,U.jsx)(_v,{session:t,transcript:n})]})}function wv(e,t){return!(e instanceof b)||e.field!==t?null:u_(e)}function Tv(e,t){return e instanceof b&&e.field&&t.includes(e.field)?null:e}function Ev({rules:e,onChange:t}){O();let n=(0,v.useId)();return(0,U.jsxs)(`section`,{className:`setting-group`,"aria-labelledby":n,children:[(0,U.jsxs)(`h3`,{className:`setting-group-title`,children:[(0,U.jsx)(`span`,{id:n,children:D(`allowedTitle`)}),(0,U.jsx)(f_,{label:D(`allowedTitle`),text:D(`allowedHelp`)})]}),(0,U.jsx)(`div`,{className:`setting-box`,children:e.length===0?(0,U.jsx)(`p`,{className:`rules-empty`,children:D(`noAllowed`)}):e.map((n,r)=>(0,U.jsxs)(`div`,{className:`allowed-row`,children:[(0,U.jsx)(`span`,{className:`allowed-text`,children:T_(n)}),(0,U.jsx)(Z,{variant:`icon`,"aria-label":D(`removeAllowed`,{rule:T_(n)}),title:D(`removeAllowed`,{rule:T_(n)}),onClick:()=>t(e.filter((e,t)=>t!==r)),children:(0,U.jsx)(tg,{})})]},r))})]})}function Dv({onClose:e,groupId:t}){O();let n=N(e=>e.settings),r=N(e=>e.groups),[i,a]=(0,v.useState)(``),[o,s]=(0,v.useState)(`task`),[c,l]=(0,v.useState)(t??``),[u,d]=(0,v.useState)(()=>n?.workspaces.find(e=>e.id===n.defaultWorkspaceId)?.path??``),[f,p]=(0,v.useState)(``),[m,h]=(0,v.useState)({provider:n?.defaultModel.provider??`deepseek`,model:n?.defaultModel.model??`deepseek-v4-pro`,thinking:n?.defaultModel.thinking??`medium`}),g={name:(0,v.useId)(),nameError:(0,v.useId)(),role:(0,v.useId)(),cwd:(0,v.useId)(),cwdError:(0,v.useId)(),cwdHint:(0,v.useId)()},_=Q(async()=>{await Xe({name:i,kind:o,groupId:c||null,cwd:u.trim()||null,responsibility:f,...m}),e()}),y=wv(_.error,`name`),b=wv(_.error,`cwd`);return(0,U.jsxs)(y_,{title:D(`newSession`),size:`m`,onClose:e,footer:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Z,{onClick:e,children:D(`cancel`)}),(0,U.jsxs)(Z,{variant:`primary`,busy:_.busy,disabled:!i.trim(),onClick:()=>void _.run(),children:[(0,U.jsx)(Ih,{}),D(`create`)]})]}),children:[(0,U.jsx)(S_,{label:D(`name`),htmlFor:g.name,error:y,errorId:g.nameError,children:(0,U.jsx)(`input`,{id:g.name,className:`input`,value:i,maxLength:60,autoFocus:!0,"aria-invalid":y?`true`:void 0,"aria-describedby":y?g.nameError:void 0,onChange:e=>a(e.target.value)})}),(0,U.jsx)(S_,{label:D(`responsibility`),htmlFor:g.role,children:(0,U.jsx)(`textarea`,{id:g.role,className:`textarea textarea-large`,placeholder:D(`responsibilityPlaceholder`),value:f,onChange:e=>p(e.target.value)})}),(0,U.jsx)(S_,{label:D(`workingFolder`),error:b,errorId:g.cwdError,children:(0,U.jsx)(sv,{value:u||null,onChange:e=>d(e??``)})}),(0,U.jsx)(dv,{...m,layout:`grid`,onChange:e=>h(t=>({...t,...e}))}),(0,U.jsxs)(`div`,{className:`field-row`,children:[(0,U.jsx)(S_,{label:D(`kind`),children:(0,U.jsx)(p_,{label:D(`kind`),value:o,options:[`task`,`standing`].map(e=>({value:e,label:D(`kind_${e}`)})),onChange:e=>s(e)})}),(0,U.jsx)(S_,{label:D(`group`),children:(0,U.jsx)(p_,{label:D(`group`),value:c,options:[{value:``,label:D(`noGroup`)},...r.map(e=>({value:e.id,label:e.name}))],onChange:l})})]}),(0,U.jsx)($,{error:Tv(_.error,[`name`,`cwd`])})]})}function Ov({session:e,onClose:t}){O();let[n,r]=(0,v.useState)(e.responsibility),[i,a]=(0,v.useState)(e.options.compactAt?String(e.options.compactAt):``),[o,s]=(0,v.useState)(e.rules),c=N(t=>t.settings?.mainSessionId===e.id),[l,u]=(0,v.useState)(e.options.receive??`accept`),d=e.options.letterQuota?String(e.options.letterQuota):``,[f,p]=(0,v.useState)(d),m=e.options.dailyBudget?String(e.options.dailyBudget):``,[h,g]=(0,v.useState)(m),[_,y]=(0,v.useState)(null);(0,v.useEffect)(()=>{bn().then(t=>y(t.sessions[e.id]??0)).catch(()=>{})},[e.id]);let b=(0,v.useId)(),[x,S]=(0,v.useState)(e.options.canPostCards===!0),[C,ee]=(0,v.useState)(e.options.canOrganize===!0),w=(0,v.useId)(),T=(0,v.useId)(),E=(0,v.useId)(),te=(0,v.useId)(),ne=(0,v.useId)(),re=(0,v.useId)(),ie=(0,v.useId)(),ae=Q(async()=>{await tt(e.id,{responsibility:n,rules:o,options:{compactAt:i.trim()?Number(i):null,receive:l,letterQuota:f.trim()?Number(f):null,...h===m?{}:{dailyBudget:Number(h)||null},canPostCards:x,canOrganize:C}}),t()}),oe=Math.max(0,op(e.options,c)-e.lettersSent),se=n!==e.responsibility||i!==(e.options.compactAt?String(e.options.compactAt):``)||JSON.stringify(o)!==JSON.stringify(e.rules)||l!==(e.options.receive??`accept`)||f!==d||h!==m||x!==(e.options.canPostCards===!0)||C!==(e.options.canOrganize===!0);return(0,U.jsxs)(y_,{title:D(`sessionSettings`),size:`l`,onClose:t,footer:(0,U.jsxs)(U.Fragment,{children:[se&&(0,U.jsx)(`span`,{className:`hint unsaved`,role:`status`,children:D(`unsavedChanges`)}),(0,U.jsx)(Z,{onClick:t,children:D(`cancel`)}),(0,U.jsxs)(Z,{variant:`primary`,busy:ae.busy,onClick:()=>void ae.run(),children:[(0,U.jsx)(yg,{}),D(`save`)]})]}),children:[(0,U.jsxs)(`section`,{className:`setting-group`,children:[(0,U.jsx)(`h3`,{className:`setting-group-title`,children:(0,U.jsx)(`label`,{htmlFor:w,children:D(`responsibility`)})}),(0,U.jsx)(`textarea`,{id:w,className:`textarea textarea-large`,placeholder:D(`responsibilityPlaceholder`),value:n,onChange:e=>r(e.target.value)})]}),(0,U.jsx)(Ev,{rules:o,onChange:s}),(0,U.jsxs)(b_,{title:D(`lettersSection`),children:[(0,U.jsx)(x_,{label:D(`receive`),labelId:ne,hint:D(`receive_${l}_hint`),children:(0,U.jsx)(p_,{labelledBy:ne,value:l,options:ap.map(e=>({value:e,label:D(`receive_${e}`),hint:D(`receive_${e}_hint`)})),onChange:e=>u(e)})}),(0,U.jsx)(x_,{label:D(`letterQuota`),htmlFor:te,info:D(`letterQuotaHelp`),hint:D(`lettersLeft`,{n:oe}),children:(0,U.jsx)(`input`,{id:te,className:`input input-number`,inputMode:`numeric`,placeholder:String(op({},c)),value:f,onChange:e=>p(e.target.value.replace(/[^\d]/g,``).slice(0,3))})}),!c&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(x_,{label:D(`canPostCards`),labelId:re,hint:D(`canPostCardsHint`),children:(0,U.jsx)(d_,{labelledBy:re,checked:x,onChange:S})}),(0,U.jsx)(x_,{label:D(`canOrganize`),labelId:ie,hint:D(`canOrganizeHint`),children:(0,U.jsx)(d_,{labelledBy:ie,checked:C,onChange:ee})})]})]}),(0,U.jsx)(b_,{title:D(`budgetSection`),children:(0,U.jsx)(x_,{label:D(`dailyBudget`),htmlFor:b,info:D(`dailyBudgetHelp`),..._===null?{}:{hint:D(`spentToday`,{n:ue(_)})},children:(0,U.jsx)(`input`,{id:b,className:`input input-number`,inputMode:`decimal`,placeholder:D(`budgetNone`),value:h,onChange:e=>g(kv(e.target.value))})})}),(0,U.jsx)(b_,{title:D(`contextSection`),children:(0,U.jsx)(x_,{label:D(`compactAt`),htmlFor:T,info:D(`compactAtHelp`),hint:D(`compactAtHint`),error:wv(ae.error,`options`),errorId:E,children:(0,U.jsx)(`input`,{id:T,className:`input input-number`,inputMode:`numeric`,placeholder:D(`automatic`),"aria-invalid":wv(ae.error,`options`)?`true`:void 0,"aria-describedby":wv(ae.error,`options`)?E:void 0,value:i,onChange:e=>a(e.target.value.replace(/[^\d]/g,``))})})}),(0,U.jsx)($,{error:Tv(ae.error,[`options`])})]})}function kv(e){let[t=``,...n]=e.replace(/[^\d.]/g,``).split(`.`),r=t.slice(0,6);return n.length>0?`${r}.${n.join(``).slice(0,2)}`:r}function Av({group:e,onClose:t,onCreated:n}){O();let[r,i]=(0,v.useState)(e?.name??``),a=(0,v.useId)(),o=Q(async()=>{e?await ut(e.id,r):await n?.(await lt(r)),t()});return(0,U.jsxs)(y_,{title:D(e?`renameGroup`:`newGroup`),size:`s`,onClose:t,footer:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Z,{onClick:t,children:D(`cancel`)}),(0,U.jsxs)(Z,{variant:`primary`,busy:o.busy,disabled:!r.trim(),onClick:()=>void o.run(),children:[(0,U.jsx)(yg,{}),D(e?`save`:`create`)]})]}),children:[(0,U.jsx)(S_,{label:D(`groupName`),htmlFor:a,children:(0,U.jsx)(`input`,{id:a,className:`input`,value:r,maxLength:60,onChange:e=>i(e.target.value),onKeyDown:e=>e.key===`Enter`&&r.trim()&&void o.run()})}),(0,U.jsx)($,{error:o.error})]})}function jv({title:e,body:t,confirmLabel:n,onConfirm:r,onClose:i}){let a=Q(async()=>{await r(),i()});return(0,U.jsxs)(y_,{title:e,size:`s`,onClose:i,footer:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Z,{onClick:i,children:D(`cancel`)}),(0,U.jsx)(Z,{variant:`danger`,busy:a.busy,onClick:()=>void a.run(),children:n})]}),children:[(0,U.jsx)(`p`,{children:t}),(0,U.jsx)($,{error:a.error})]})}var Mv=640,Nv=300,Pv={top:16,right:16,bottom:36,left:48},Fv=[1,.55,.3,.8,.42,.68,.2,.9];function Iv({data:e}){let t=e.series.flatMap(e=>e.values),n=Math.max(0,...t),r=Math.min(0,...t),i=n-r||1,a=Mv-Pv.left-Pv.right,o=Nv-Pv.top-Pv.bottom,s=e=>Pv.top+(n-e)/i*o,c=a/e.labels.length,l=[n,(n+r)/2,r],u=Math.ceil(e.labels.length/12);return(0,U.jsxs)(`figure`,{className:`chart`,children:[e.title&&(0,U.jsx)(`figcaption`,{children:e.title}),(0,U.jsxs)(`svg`,{className:`chart-svg`,viewBox:`0 0 ${Mv} ${Nv}`,role:`img`,"aria-label":e.title??D(`artifactKind_chart`),children:[l.map(e=>(0,U.jsxs)(`g`,{children:[(0,U.jsx)(`line`,{className:`chart-grid`,x1:Pv.left,x2:Mv-Pv.right,y1:s(e),y2:s(e)}),(0,U.jsx)(`text`,{className:`chart-tick`,x:Pv.left-6,y:s(e)+4,textAnchor:`end`,children:ce(Math.round(e*100)/100)})]},e)),e.labels.map((e,t)=>t%u===0&&(0,U.jsx)(`text`,{className:`chart-tick`,x:Pv.left+c*(t+.5),y:Nv-Pv.bottom+16,textAnchor:`middle`,children:String(e).slice(0,12)},t)),e.series.map((t,n)=>e.type===`bar`?(0,U.jsx)(`g`,{opacity:Fv[n%Fv.length],children:t.values.map((r,i)=>{let a=c*.8/e.series.length;return(0,U.jsx)(`rect`,{className:`chart-bar`,x:Pv.left+c*(i+.1)+a*n,y:Math.min(s(r),s(0)),width:Math.max(1,a-1),height:Math.abs(s(r)-s(0)),children:(0,U.jsx)(`title`,{children:`${t.name} · ${e.labels[i]}: ${ce(r)}`})},i)})},t.name):(0,U.jsx)(`polyline`,{className:`chart-line`,opacity:Fv[n%Fv.length],strokeDasharray:n===0?void 0:`${4+n*2} 3`,points:t.values.map((e,t)=>`${Pv.left+c*(t+.5)},${s(e)}`).join(` `)},t.name))]}),e.series.length>1&&(0,U.jsx)(`ul`,{className:`chart-legend`,children:e.series.map((e,t)=>(0,U.jsxs)(`li`,{children:[(0,U.jsx)(`span`,{className:`chart-swatch`,style:{opacity:Fv[t%Fv.length]}}),e.name]},e.name))}),(0,U.jsxs)(`details`,{className:`chart-table`,children:[(0,U.jsx)(`summary`,{children:D(`chartData`)}),(0,U.jsxs)(`table`,{children:[(0,U.jsx)(`thead`,{children:(0,U.jsxs)(`tr`,{children:[(0,U.jsx)(`th`,{}),e.series.map(e=>(0,U.jsx)(`th`,{children:e.name},e.name))]})}),(0,U.jsx)(`tbody`,{children:e.labels.map((t,n)=>(0,U.jsxs)(`tr`,{children:[(0,U.jsx)(`th`,{children:String(t)}),e.series.map(e=>(0,U.jsx)(`td`,{children:ce(e.values[n]??0)},e.name))]},n))})]})]})]})}function Lv({artifact:e,version:t}){let[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(!1);if((0,v.useEffect)(()=>{if(r(null),a(!1),e.kind===`html`)return;let n=!0;return wt(e.id,t).then(e=>n&&r(e)).catch(()=>n&&a(!0)),()=>{n=!1}},[e.id,e.kind,t]),e.kind===`html`)return(0,U.jsx)(`iframe`,{className:`artifact-frame`,title:e.name,sandbox:`allow-scripts`,referrerPolicy:`no-referrer`,src:`/artifact-view/${e.id}/${t}`});if(i)return(0,U.jsx)(`p`,{className:`hint`,children:D(`artifactUnreadable`)});if(n===null)return(0,U.jsx)(`p`,{className:`hint`,children:D(`loading`)});if(e.kind===`markdown`)return(0,U.jsx)(`div`,{className:`artifact-text`,children:(0,U.jsx)(np,{text:n})});if(e.kind===`chart`)try{return(0,U.jsx)(Iv,{data:JSON.parse(n)})}catch{return(0,U.jsx)(`p`,{className:`hint`,children:D(`artifactUnreadable`)})}let o=n;try{o=JSON.stringify(JSON.parse(n),null,2)}catch{}return(0,U.jsx)(`pre`,{className:`artifact-json`,children:o})}function Rv({artifact:e}){let t=N(t=>t.sessions[e.sessionId]?.name),[n,r]=(0,v.useState)(e.version),[i,a]=(0,v.useState)([]),[o,s]=(0,v.useState)(!1),c=(0,v.useId)();(0,v.useEffect)(()=>{r(e.version),Ct(e.id).then(a).catch(()=>a([]))},[e.id,e.version]);let l=Q(()=>Tt(e.id));return(0,U.jsxs)(`section`,{className:`artifact-viewer`,"aria-labelledby":c,children:[(0,U.jsxs)(`header`,{className:`artifact-head`,children:[(0,U.jsxs)(`div`,{className:`artifact-title`,children:[(0,U.jsx)(`h2`,{id:c,children:e.name}),(0,U.jsxs)(`span`,{className:`session-meta`,children:[D(`artifactKind_${e.kind}`),t&&(0,U.jsxs)(U.Fragment,{children:[` · `,(0,U.jsx)(`button`,{type:`button`,className:`link-button`,onClick:()=>void qe(e.sessionId),children:t})]})]})]}),(0,U.jsxs)(`div`,{className:`artifact-actions`,children:[i.length>1&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`span`,{id:`${c}-v`,className:`visually-hidden`,children:D(`artifactVersion`)}),(0,U.jsx)(p_,{labelledBy:`${c}-v`,value:String(n),options:i.map(e=>({value:String(e.version),label:D(`artifactVersionN`,{n:e.version}),hint:de(e.createdAt)})),onChange:e=>r(Number(e))})]}),(0,U.jsx)(`a`,{className:`btn`,href:`/api/artifacts/${e.id}/versions/${n}`,download:`${e.name}.${e.kind===`markdown`?`md`:e.kind===`html`?`html`:`json`}`,children:D(`download`)}),(0,U.jsxs)(Z,{variant:`danger`,onClick:()=>s(!0),children:[(0,U.jsx)(Hg,{}),D(`delete`)]})]})]}),(0,U.jsx)($,{error:l.error}),(0,U.jsx)(Lv,{artifact:e,version:n}),o&&(0,U.jsx)(jv,{title:D(`artifactDeleteTitle`,{name:e.name}),body:D(`artifactDeleteBody`),confirmLabel:D(`delete`),onClose:()=>s(!1),onConfirm:()=>l.run()})]})}function zv(){O();let e=N(e=>e.artifacts),t=N(e=>e.artifactId),n=N(e=>e.sessions),r=(0,v.useMemo)(()=>e?[...e].sort((e,t)=>t.updatedAt-e.updatedAt):null,[e]),i=r?.find(e=>e.id===t)??null;return(0,U.jsxs)(`main`,{className:`main center-main`,children:[(0,U.jsxs)(`header`,{className:`session-header`,children:[(0,U.jsx)(fv,{}),(0,U.jsxs)(`div`,{className:`session-title`,children:[(0,U.jsx)(`h1`,{children:D(`artifacts`)}),r&&r.length>0&&(0,U.jsx)(`span`,{className:`session-meta`,children:D(`artifactsCount`,{n:r.length})})]})]}),(0,U.jsx)(`div`,{className:`center-body`,tabIndex:0,children:(0,U.jsxs)(`div`,{className:`center-inner artifacts${i?` artifacts-open`:``}`,children:[r?r.length===0?(0,U.jsxs)(`div`,{className:`empty-state`,children:[(0,U.jsx)(Zg,{pose:`writing`,height:96}),(0,U.jsx)(`p`,{className:`empty-box`,children:D(`artifactsEmpty`)})]}):(0,U.jsx)(`ul`,{className:`artifact-list`,children:r.map(e=>(0,U.jsx)(`li`,{children:(0,U.jsxs)(`button`,{type:`button`,className:`artifact-row`,"aria-current":e.id===t?`true`:void 0,onClick:()=>xt(e.id),children:[(0,U.jsx)(`span`,{className:`artifact-name`,children:e.name}),(0,U.jsx)(`span`,{className:`artifact-meta`,children:[D(`artifactKind_${e.kind}`),n[e.sessionId]?.name,e.version>1?D(`artifactVersionN`,{n:e.version}):null,de(e.updatedAt)].filter(Boolean).join(` · `)})]})},e.id))}):(0,U.jsx)(`p`,{className:`hint`,children:D(`loading`)}),i&&(0,U.jsx)(Rv,{artifact:i},i.id)]})})]})}function Bv({id:e,name:t,kind:n,version:r}){return O(),(0,U.jsxs)(`button`,{type:`button`,className:`artifact-chip`,onClick:()=>xt(e),children:[(0,U.jsx)(`span`,{className:`artifact-name`,children:t}),(0,U.jsxs)(`span`,{className:`artifact-meta`,children:[D(`artifactKind_${n}`),r>1?` · ${D(`artifactVersionN`,{n:r})}`:``]})]})}function Vv(e){return N(t=>e?t.sessions[e]?.name??null:null)}function Hv({id:e,fallback:t}){let n=Vv(e);return!e||!n?(0,U.jsx)(`span`,{children:t??``}):(0,U.jsx)(`button`,{type:`button`,className:`link-button`,onClick:()=>void qe(e),children:n})}function Uv({letter:e}){return O(),e.fromKind===`cli`?(0,U.jsx)(`span`,{children:D(`fromCli`)}):e.fromKind===`person`?(0,U.jsx)(`span`,{children:D(`you`)}):e.fromKind===`yew`?(0,U.jsx)(`span`,{children:D(`fromSchedule`,{name:D(`quoted`,{s:e.fromName})})}):(0,U.jsx)(Hv,{id:e.fromSession,fallback:e.fromName})}function Wv(e,t){let n=e.createdAt-t.createdAt||e.number-t.number;return e.deadline&&t.deadline?e.deadline.localeCompare(t.deadline)||n:e.deadline?-1:t.deadline?1:n}function Gv({card:e}){O();let[t,n]=(0,v.useState)(e.recommended),[r,i]=(0,v.useState)(``),a=N(e=>e.sessions),o=C_(),s=(0,v.useId)(),c=(0,v.useId)(),l=Q(()=>Nt(e.id,t,r.trim()||null)),u=e.options.length>0,d=t!==null||r.trim().length>0,f=e.sessions.filter(t=>t!==e.requestedBy&&t!==e.createdBy).map(e=>a[e]?.name).filter(e=>!!e),p=e.createdBy&&e.createdBy!==e.requestedBy?e.createdBy:null;return(0,U.jsxs)(`section`,{className:`card decision-card`,"aria-labelledby":s,children:[(0,U.jsx)(w_,{icon:(0,U.jsx)(jg,{}),parts:[`#${e.number}`,e.requestedBy&&(0,U.jsx)(Jv,{text:D(`cardFrom`,{name:`\0`}),link:(0,U.jsx)(Hv,{id:e.requestedBy})}),p&&(0,U.jsx)(Jv,{text:D(`cardVia`,{name:`\0`}),link:(0,U.jsx)(Hv,{id:p})}),f.length>0&&D(`cardAlsoInvolves`,{names:f.join(D(`listSeparator`))}),pe(e.createdAt,o)],tags:(0,U.jsxs)(U.Fragment,{children:[e.deadline&&(0,U.jsx)(`span`,{className:`tag tag-deadline`,title:e.deadline,children:D(`cardDeadline`,{d:e.deadline})}),typeof e.undoable==`boolean`&&(0,U.jsx)(`span`,{className:e.undoable?`tag`:`tag tag-danger`,title:e.reversible||void 0,children:e.undoable?D(`undoable`):D(`notUndoable`)})]})}),(0,U.jsx)(`h3`,{id:s,children:e.title}),e.context&&(0,U.jsx)(Qf,{className:`decision-context`,label:e.title,children:(0,U.jsx)(np,{text:e.context})}),typeof e.undoable!=`boolean`&&e.reversible&&(0,U.jsx)(`p`,{className:`hint`,children:e.reversible}),u&&(0,U.jsxs)(`fieldset`,{className:`decision-options`,children:[(0,U.jsx)(`legend`,{className:`visually-hidden`,children:D(`cardOptions`)}),e.options.map((r,i)=>(0,U.jsxs)(`label`,{className:`decision-option`,"data-checked":t===i?`true`:void 0,children:[(0,U.jsx)(`input`,{type:`radio`,className:`visually-hidden`,name:`card-${e.id}`,checked:t===i,onChange:()=>n(i)}),(0,U.jsx)(`span`,{className:`decision-radio`,"aria-hidden":`true`}),(0,U.jsxs)(`span`,{className:`decision-option-text`,children:[(0,U.jsxs)(`span`,{className:`decision-option-label`,children:[r.label,i===e.recommended&&(0,U.jsx)(`span`,{className:`tag`,children:D(`recommended`)})]}),r.detail&&(0,U.jsx)(`span`,{className:`hint`,children:r.detail})]})]},i))]}),e.after&&(0,U.jsx)(`p`,{className:`hint`,children:e.after}),(0,U.jsx)(`label`,{className:`visually-hidden`,htmlFor:c,children:D(`cardNote`)}),(0,U.jsxs)(`div`,{className:`composer-row`,children:[(0,U.jsx)(`textarea`,{id:c,className:`textarea`,rows:1,placeholder:D(u?`notePlaceholder`:`answerRequired`),value:r,onChange:e=>i(e.target.value)}),(0,U.jsxs)(Z,{variant:`primary`,busy:l.busy,disabled:!d,onClick:()=>void l.run(),children:[(0,U.jsx)(vg,{}),D(`send`)]})]}),(0,U.jsx)($,{error:l.error})]})}function Kv({letter:e}){O();let t=C_(),n=Q(()=>Pt(e.id)),r=Q(()=>Ft(e.id));return(0,U.jsxs)(`section`,{className:`card request-card`,"aria-label":e.summary,children:[(0,U.jsx)(w_,{icon:(0,U.jsx)(cg,{}),parts:[(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Uv,{letter:e}),` → `,(0,U.jsx)(Hv,{id:e.toSession})]}),D(`letterKind_${e.kind}`),pe(e.createdAt,t)]}),(0,U.jsx)(`p`,{className:`request-title`,children:O_(e.summary)||e.summary}),e.body&&(0,U.jsx)(Qf,{className:`letter-body`,label:e.summary,children:(0,U.jsx)(np,{text:e.body,breaks:!0})}),(0,U.jsx)(`p`,{className:`hint`,children:D(`letterReason_${e.statusReason??`hold-policy`}`)}),(0,U.jsxs)(`div`,{className:`request-actions`,children:[(0,U.jsxs)(Z,{variant:`primary`,busy:n.busy,onClick:()=>void n.run(),children:[(0,U.jsx)(yg,{}),D(`release`)]}),(0,U.jsxs)(Z,{variant:`danger`,busy:r.busy,onClick:()=>void r.run(),children:[(0,U.jsx)(xg,{}),D(`refuse`)]})]}),(0,U.jsx)($,{error:n.error??r.error})]})}function qv({approval:e}){let t=(0,U.jsx)(Hv,{id:e.sessionId});return e.kind===`permission`?(0,U.jsx)(z_,{approval:e,session:t}):(0,U.jsx)(V_,{approval:e,session:t})}function Jv({text:e,link:t}){let[n=``,r=``]=e.split(`\0`);return(0,U.jsxs)(`span`,{children:[n,t,r]})}function Yv({card:e,now:t}){O();let[n,r]=(0,v.useState)(!1),i=(0,v.useId)(),a=e.choice===null?null:e.options[e.choice]?.label??null;return(0,U.jsxs)(`li`,{className:`letter-item`,"data-open":n,children:[(0,U.jsxs)(`button`,{type:`button`,className:`letter-line`,"aria-expanded":n,"aria-controls":i,onClick:()=>r(e=>!e),children:[(0,U.jsxs)(`span`,{className:`letter-line-route`,children:[`#`,e.number]}),(0,U.jsx)(`span`,{className:`letter-line-summary`,children:e.title}),(0,U.jsx)(`span`,{className:`tag`,children:a??D(`noteOnly`)}),(0,U.jsx)(`span`,{className:`letter-line-meta`,children:(0,U.jsx)(`span`,{className:`session-time`,children:fe(e.decidedAt??e.updatedAt,t)})}),(0,U.jsx)(Yh,{})]}),n&&(0,U.jsxs)(`div`,{className:`letter-panel`,id:i,children:[(0,U.jsxs)(Qf,{className:`letter-content`,label:e.title,children:[(0,U.jsx)(`p`,{className:`letter-summary`,children:e.title}),e.context&&(0,U.jsx)(np,{text:e.context,breaks:!0}),e.options.length>0&&(0,U.jsx)(`ul`,{className:`record-options`,"aria-label":D(`cardOptions`),children:e.options.map((t,n)=>(0,U.jsxs)(`li`,{"data-chosen":n===e.choice,children:[(0,U.jsx)(`span`,{className:`record-check`,"aria-hidden":`true`,children:n===e.choice?`✓`:``}),(0,U.jsxs)(`span`,{children:[t.label,n===e.choice&&(0,U.jsx)(`span`,{className:`visually-hidden`,children:D(`chosenMark`)})]}),n===e.recommended&&(0,U.jsx)(`span`,{className:`tag`,children:D(`recommended`)})]},n))}),e.note&&(0,U.jsxs)(`p`,{children:[D(`cardNote`),`:`,e.note]})]}),(0,U.jsxs)(`div`,{className:`letter-row-head`,children:[(0,U.jsx)(`span`,{children:D(`byYou`)}),e.requestedBy&&(0,U.jsx)(Jv,{text:D(`cardFrom`,{name:`\0`}),link:(0,U.jsx)(Hv,{id:e.requestedBy})}),e.createdBy&&e.createdBy!==e.requestedBy&&(0,U.jsx)(Jv,{text:D(`cardPostedBy`,{name:`\0`}),link:(0,U.jsx)(Hv,{id:e.createdBy})})]})]})]})}function Xv(){O();let e=N(e=>e.decisions),t=Q(()=>jt(!0)),n=Date.now();return e.loaded?e.items.length===0?(0,U.jsx)(`p`,{className:`empty-box`,children:D(`decisionsEmpty`)}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`ul`,{className:`letter-list decision-lines`,children:e.items.map(e=>(0,U.jsx)(Yv,{card:e,now:n},e.id))}),e.nextCursor&&(0,U.jsx)(Z,{busy:t.busy,onClick:()=>void t.run(),children:D(`loadMore`)}),(0,U.jsx)($,{error:t.error})]}):(0,U.jsx)(`p`,{className:`hint`,children:D(`loading`)})}function Zv(){O();let e=N(e=>e.center),t=Object.values(e.approvals).sort((e,t)=>e.createdAt-t.createdAt),n=t.filter(e=>e.kind===`permission`),r=t.filter(e=>e.kind===`question`),i=Object.values(e.cards).sort(Wv),a=Object.values(e.held).sort((e,t)=>e.createdAt-t.createdAt);return(0,U.jsxs)(U.Fragment,{children:[t.length+i.length+a.length===0&&(0,U.jsxs)(`div`,{className:`empty-state`,children:[(0,U.jsx)(Zg,{pose:`happy`,height:96}),(0,U.jsx)(`p`,{className:`empty-box`,children:D(`centerEmpty`)})]}),n.length>0&&(0,U.jsxs)(`section`,{className:`center-section`,"aria-label":D(`waitingApprovals`),children:[(0,U.jsx)(`h2`,{children:D(`waitingApprovals`)}),n.map(e=>(0,U.jsx)(qv,{approval:e},e.id))]}),r.length>0&&(0,U.jsxs)(`section`,{className:`center-section`,"aria-label":D(`waitingQuestions`),children:[(0,U.jsx)(`h2`,{children:D(`waitingQuestions`)}),r.map(e=>(0,U.jsx)(qv,{approval:e},e.id))]}),i.length>0&&(0,U.jsxs)(`section`,{className:`center-section`,"aria-label":D(`decisionsToMake`),children:[(0,U.jsx)(`h2`,{children:D(`decisionsToMake`)}),i.map(e=>(0,U.jsx)(Gv,{card:e},e.id))]}),a.length>0&&(0,U.jsxs)(`section`,{className:`center-section`,"aria-label":D(`heldLetters`),children:[(0,U.jsx)(`h2`,{children:D(`heldLetters`)}),a.map(e=>(0,U.jsx)(Kv,{letter:e},e.id))]})]})}function Qv(e){let t=Vv(e.fromSession);return e.fromKind===`cli`?D(`fromCli`):e.fromKind===`person`?D(`you`):e.fromKind===`yew`?D(`fromSchedule`,{name:D(`quoted`,{s:e.fromName})}):t??e.fromName}function $v({letter:e,now:t}){O();let[n,r]=(0,v.useState)(!1),i=(0,v.useId)(),a=Qv(e),o=Vv(e.toSession)??``,s=O_(e.summary)||e.summary,c=k_(e.body,e.summary),l=[`held`,`refused`,`dropped`].includes(e.status),u=e.statusReason&&l?D(`letterReason_${e.statusReason}`):null,d=(0,U.jsx)(`span`,{className:`letter-status letter-status-${e.status}`,children:D(`letterStatus_${e.status}`)});return(0,U.jsxs)(`li`,{className:`letter-item`,"data-open":n,children:[(0,U.jsxs)(`button`,{type:`button`,className:`letter-line`,"aria-expanded":n,"aria-controls":i,onClick:()=>r(e=>!e),children:[(0,U.jsxs)(`span`,{className:`letter-line-route`,children:[a,` → `,o]}),(0,U.jsx)(`span`,{className:`tag`,children:D(`letterKind_${e.kind}`)}),(0,U.jsx)(`span`,{className:`letter-line-summary`,children:s}),(0,U.jsxs)(`span`,{className:`letter-line-meta`,children:[l&&d,(0,U.jsx)(`span`,{className:`session-time`,children:fe(e.createdAt,t)})]}),(0,U.jsx)(Yh,{})]}),n&&(0,U.jsxs)(`div`,{className:`letter-panel`,id:i,children:[(0,U.jsxs)(Qf,{className:`letter-content`,label:s,children:[(0,U.jsx)(`p`,{className:`letter-summary`,children:s}),c&&(0,U.jsx)(np,{text:c,breaks:!0})]}),(0,U.jsxs)(`div`,{className:`letter-row-head`,children:[(0,U.jsxs)(`span`,{children:[(0,U.jsx)(Uv,{letter:e}),` → `,(0,U.jsx)(Hv,{id:e.toSession})]}),e.auto&&(0,U.jsx)(`span`,{children:D(`sentByYew`)}),d,u&&(0,U.jsx)(`span`,{children:u})]})]})]})}function ey(){O();let e=N(e=>e.letters),t=Q(()=>Mt(!0)),n=Date.now();return e.loaded?e.items.length===0?(0,U.jsx)(`p`,{className:`empty-box`,children:D(`lettersEmpty`)}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`ul`,{className:`letter-list letter-lines`,children:e.items.map(e=>(0,U.jsx)($v,{letter:e,now:n},e.id))}),e.nextCursor&&(0,U.jsx)(Z,{busy:t.busy,onClick:()=>void t.run(),children:D(`loadMore`)}),(0,U.jsx)($,{error:t.error})]}):(0,U.jsx)(`p`,{className:`hint`,children:D(`loading`)})}var ty=[`pending`,`decided`,`letters`];function ny(){O();let e=N(e=>e.centerTab),t=N(e=>ve(e.center)),n=(0,v.useId)(),r={pending:D(`tabPending`),decided:D(`tabDecided`),letters:D(`tabLetters`)},i={pending:(0,U.jsx)(lg,{}),decided:(0,U.jsx)(jg,{}),letters:(0,U.jsx)(cg,{})},a=t=>{let r=t.key===`ArrowRight`?1:t.key===`ArrowLeft`?-1:0;if(!r)return;t.preventDefault();let i=ty[(ty.indexOf(e)+r+ty.length)%ty.length];pt(i),document.getElementById(`${n}-${i}`)?.focus()};return(0,U.jsxs)(`main`,{className:`main center-main`,children:[(0,U.jsxs)(`header`,{className:`session-header`,children:[(0,U.jsx)(fv,{}),(0,U.jsxs)(`div`,{className:`session-title`,children:[(0,U.jsx)(`h1`,{children:D(`approvalCenter`)}),(0,U.jsx)(`span`,{className:`session-meta`,children:t>0?D(`approvalCount`,{n:t}):D(`centerEmpty`)})]})]}),(0,U.jsx)(`div`,{className:`center-body`,tabIndex:0,children:(0,U.jsxs)(`div`,{className:`center-inner`,children:[(0,U.jsx)(`div`,{className:`panel-tabs`,role:`tablist`,"aria-label":D(`approvalCenter`),children:ty.map(o=>(0,U.jsxs)(`button`,{id:`${n}-${o}`,type:`button`,role:`tab`,className:`panel-tab`,"aria-selected":e===o,"aria-controls":`${n}-panel`,tabIndex:e===o?0:-1,onKeyDown:a,onClick:()=>pt(o),children:[i[o],r[o],o===`pending`&&t>0?(0,U.jsx)(`span`,{className:`badge`,children:t}):null]},o))}),(0,U.jsx)(`div`,{id:`${n}-panel`,className:`center-panel`,role:`tabpanel`,"aria-labelledby":`${n}-${e}`,children:e===`pending`?(0,U.jsx)(Zv,{}):e===`decided`?(0,U.jsx)(Xv,{}):(0,U.jsx)(ey,{})})]})})]})}var ry=46,iy=(e,t)=>e.createdAt-t.createdAt||(e.id<t.id?-1:+(e.id>t.id));function ay(e){let t=[...e].sort(iy),n=new Map(t.map(e=>[e.id,e])),r=e=>{let t=new Set([e.id]),r=e.parentId;for(;r!==null&&n.has(r);){if(t.has(r))return!0;t.add(r),r=n.get(r)?.parentId??null}return!1},i=[],a=new Map;for(let e of t){let t=e.parentId;t===null||!n.has(t)||r(e)?i.push(e):a.set(t,[...a.get(t)??[],e])}return{roots:i,children:a}}function oy(e,t){let{roots:n,children:r}=ay(e),i=e=>({id:e.id,children:(r.get(e.id)??[]).map(i)});return[...n.filter(e=>e.id===t),...n.filter(e=>e.id!==t)].map(i)}function sy(e,t,n){let{roots:r,children:i}=ay(e),a=r.find(e=>e.id===n)??null,o=[],s=[],c=(e,t)=>[{session:e,depth:t},...(i.get(e.id)??[]).flatMap(e=>c(e,t+1))],l=16,u=16,d=a?72:16;a&&(o.push({id:a.id,x:16,y:16,depth:0,parentId:null}),u=52);let f=(e,t,n,r)=>{if(n.length===0)return;let i=l,a=d+26,f=0,p=0;for(let e of n){let t=c(e,+!!r);!r&&f>0&&f+t.length>12&&(l+=p+36,f=0,p=0);for(let{session:n,depth:i}of t){let t=i*22;o.push({id:n.id,x:l+t,y:a+f*ry,depth:i,parentId:n.id===e.id?r:n.parentId}),p=Math.max(p,t+184),f++,u=Math.max(u,a+f*ry-10)}}let m=r?22:0;s.push({kind:e,groupId:t,x:i+m,y:d,width:l+p-i-m}),l+=p+36};a&&f(`main`,null,i.get(a.id)??[],a.id);let p=r.filter(e=>e!==a),m=new Set(t.map(e=>e.id)),h=[...t].sort((e,t)=>e.position-t.position||(e.id<t.id?-1:+(e.id>t.id)));for(let e of h)f(`team`,e.id,p.filter(t=>t.groupId===e.id),null);return f(`none`,null,p.filter(e=>e.groupId===null||!m.has(e.groupId)),null),{nodes:o,columns:s,width:Math.max(200,...o.map(e=>e.x+184))+16+36,height:u+16}}function cy(e,t,n){let r=e.filter(e=>t.has(e.from)&&t.has(e.to));return{drawn:r.slice(0,n),hidden:Math.max(0,r.length-n)}}function ly(e,t,n){let r=e.id<t.id?-6:6,i=e.y+18+r,a=t.y+18+r;if(Math.abs(e.x-t.x)<184){let r=e.x+184,o=t.x+184,[s,c]=[Math.min(e.y,t.y),Math.max(e.y,t.y)],l=Math.max(r,o,...n.filter(e=>e.y>s&&e.y<c&&e.x<Math.max(r,o)).map(e=>e.x+184))+14+Math.min(16,Math.abs(a-i)/12);return{d:`M${r} ${i} C${l} ${i} ${l} ${a} ${o} ${a}`,labelX:(Math.max(r,o)+3*l)/4,labelY:(i+a)/2}}let o=t.x>e.x,s=o?e.x+184:e.x,c=o?t.x:t.x+184,l=(s+c)/2;return{d:`M${s} ${i} C${l} ${i} ${l} ${a} ${c} ${a}`,labelX:l,labelY:(i+a)/2}}function uy(e,t){let n=e.x+10,r=t.y+18;return`M${n} ${e.y+36} V${r} H${t.x}`}var dy=16,fy=[`working`,`waiting`,`error`,`needs_review`];function py(e,t){return e.status===`idle`&&t.has(e.id)?`waiting`:e.status}function my(e,t,n){let r=N(e=>e.center),i=o_(Object.values(r.approvals),Object.values(r.cards));return{facts:r=>{let a=t.find(e=>e.id===r.groupId)?.name,o=r.parentId?e[r.parentId]:void 0;return[...r.id===n?[D(`mainConversation`)]:[],a??D(`mapColumn_none`),r.cwd?D(`mode_code`):D(`mode_chat`),D(`status_${py(r,i)}`),...o&&o.archivedAt===null?[D(`openedBy`,{name:o.name})]:[]]},waiting:i}}function hy({items:e,sessions:t,facts:n,label:r}){return(0,U.jsx)(`ul`,{className:`map-list`,"aria-label":r,children:e.map(e=>{let r=t[e.id];return r?(0,U.jsxs)(`li`,{children:[(0,U.jsx)(`button`,{type:`button`,className:`link-button`,onClick:()=>void qe(r.id),children:r.name}),(0,U.jsxs)(`span`,{className:`hint`,children:[D(`hintSeparator`),n(r).join(D(`hintSeparator`))]}),e.children.length>0&&(0,U.jsx)(hy,{items:e.children,sessions:t,facts:n})]},e.id):null})})}function gy(){O();let e=N(e=>e.sessions),t=N(e=>e.groups),n=N(e=>e.settings?.mainSessionId??null),r=N(e=>e.letterTick),[i,a]=(0,v.useState)(null),[o,s]=(0,v.useState)(null),[c,l]=(0,v.useState)(0),[u,d]=(0,v.useState)(null),f=(0,v.useId)(),p=(0,v.useId)(),{facts:m,waiting:h}=my(e,t,n),g=Object.values(e).filter(e=>e.archivedAt===null),_=g.length;(0,v.useEffect)(()=>{let e=!0;return vt().then(t=>{e&&(a(t.letters),s(null))}).catch(t=>e&&s(t)),()=>{e=!1}},[r,_,c]);let y=sy(g,t,n),b=new Map(y.nodes.map(e=>[e.id,e])),x=new Set(b.keys()),{drawn:S,hidden:C}=cy(i??[],x,dy),ee=(i??[]).filter(e=>x.has(e.from)&&x.has(e.to)),w=e=>{let t=b.get(e.from),n=b.get(e.to);return t&&n?[t,n]:null};return(0,U.jsxs)(`main`,{className:`main center-main`,children:[(0,U.jsxs)(`header`,{className:`session-header`,children:[(0,U.jsx)(fv,{}),(0,U.jsx)(`div`,{className:`session-title`,children:(0,U.jsx)(`h1`,{children:D(`map`)})})]}),(0,U.jsx)(`div`,{className:`center-body`,tabIndex:0,children:(0,U.jsxs)(`div`,{className:`map-page`,children:[o?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)($,{error:o}),(0,U.jsx)(`div`,{children:(0,U.jsxs)(Z,{onClick:()=>l(e=>e+1),children:[(0,U.jsx)(Wg,{}),` `,D(`retry`)]})})]}):null,g.length===0?(0,U.jsx)(`p`,{className:`empty-box`,children:D(`mapEmpty`)}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`map-caption`,children:[(0,U.jsxs)(`p`,{className:`hint`,children:[D(`mapCaption`),C>0?` ${D(`mapCapped`,{n:dy,m:C})}`:``]}),(0,U.jsx)(`ul`,{className:`map-legend hint`,children:fy.map(e=>(0,U.jsxs)(`li`,{children:[(0,U.jsx)(`span`,{className:`dot row-dot dot-${e}`,"aria-hidden":`true`}),D(`status_${e}`)]},e))})]}),(0,U.jsx)(`div`,{className:`map-scroll`,role:`group`,"aria-label":D(`mapPicture`),tabIndex:0,children:(0,U.jsxs)(`div`,{className:`map-canvas`,style:{width:y.width,height:y.height},children:[(0,U.jsxs)(`svg`,{className:`map-lines`,width:y.width,height:y.height,"aria-hidden":`true`,children:[(0,U.jsx)(`defs`,{children:(0,U.jsx)(`marker`,{id:f,markerWidth:`7`,markerHeight:`7`,refX:`6.5`,refY:`3.5`,orient:`auto`,markerUnits:`userSpaceOnUse`,children:(0,U.jsx)(`path`,{className:`map-arrow`,d:`M0 0.5L7 3.5L0 6.5Z`})})}),y.nodes.map(e=>{let t=e.parentId?b.get(e.parentId):void 0;return t?(0,U.jsx)(`path`,{className:`map-opened`,d:uy(t,e)},e.id):null}),S.map(e=>{let t=w(e);if(!t)return null;let n=ly(t[0],t[1],y.nodes),r=u!==null&&e.from!==u&&e.to!==u;return(0,U.jsxs)(`g`,{className:r?`map-faded`:void 0,children:[(0,U.jsx)(`path`,{className:`map-flow`,d:n.d,markerEnd:`url(#${f})`}),e.count>1&&(0,U.jsx)(`text`,{className:`chart-tick map-flow-count`,x:n.labelX,y:n.labelY+4,textAnchor:`middle`,children:e.count})]},`${e.from}>${e.to}`)})]}),y.columns.map(e=>(0,U.jsx)(`span`,{className:`map-head`,style:{left:e.x,top:e.y,width:e.width,height:26},children:e.kind===`team`?t.find(t=>t.id===e.groupId)?.name??``:D(`mapColumn_${e.kind}`)},`${e.kind}:${e.groupId??``}`)),y.nodes.map(t=>{let r=e[t.id];if(!r)return null;let i=py(r,h),a=[r.name,...m(r)].join(D(`hintSeparator`));return(0,U.jsxs)(`button`,{type:`button`,className:`map-node`,"data-main":r.id===n?`true`:void 0,style:{left:t.x,top:t.y,width:184,height:36},"aria-label":a,title:a,onClick:()=>void qe(r.id),onPointerEnter:()=>d(r.id),onPointerLeave:()=>d(null),onFocus:()=>d(r.id),onBlur:()=>d(null),children:[(0,U.jsx)(`span`,{className:`session-icon`,"aria-hidden":`true`,children:r.cwd?(0,U.jsx)(Uh,{}):(0,U.jsx)(Gh,{})}),(0,U.jsx)(`span`,{className:`map-node-name`,children:r.name}),i!==`idle`&&(0,U.jsx)(`span`,{className:`dot row-dot dot-${i}`,"aria-hidden":`true`})]},t.id)})]})}),(0,U.jsxs)(`details`,{className:`map-outline`,children:[(0,U.jsx)(`summary`,{children:D(`mapOutline`)}),(0,U.jsx)(`h2`,{children:D(`mapOutlineSessions`)}),(0,U.jsx)(hy,{items:oy(g,n),sessions:e,facts:m,label:D(`mapOutlineSessions`)}),(0,U.jsx)(`h2`,{id:p,children:D(`mapOutlineLetters`)}),ee.length===0?(0,U.jsx)(`p`,{className:`hint`,children:D(i?`mapNoLetters`:`loading`)}):(0,U.jsx)(`ul`,{className:`map-list`,"aria-labelledby":p,children:ee.map(t=>(0,U.jsx)(`li`,{children:D(`mapFlow`,{from:e[t.from]?.name??``,to:e[t.to]?.name??``,n:t.count})},`${t.from}>${t.to}`))})]})]})]})})]})}var _y=`yew.opening`,vy=1100,yy=260;function by(){if(window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches)return!1;try{if(localStorage.getItem(`yew.mascot`)===`off`)return!1}catch{}try{if(sessionStorage.getItem(_y))return!1;sessionStorage.setItem(_y,`1`)}catch{}return!0}var xy=by(),Sy=Date.now();function Cy({done:e,text:t}){return(0,U.jsxs)(`li`,{className:e?`opening-step done`:`opening-step`,children:[(0,U.jsx)(`span`,{className:`opening-tick`,children:e?`✓`:`·`}),t]})}function wy(){O();let[e,t]=(0,v.useState)(!1),[n,r]=(0,v.useState)(!xy),i=N(e=>e.phase),a=N(e=>e.booted),o=N(e=>e.health),s=N(e=>e.settings),c=N(e=>e.sessions),l=N(e=>ve(e.center)),u=i===`signin`||i===`failed`||i===`ready`&&a,d=s?.mascot===!1;if((0,v.useEffect)(()=>{if(n||e)return;if(d){r(!0);return}if(!u)return;let i=setTimeout(()=>t(!0),Math.max(0,Sy+vy-Date.now()));return()=>clearTimeout(i)},[u,d,n,e]),(0,v.useEffect)(()=>{if(!e)return;let t=setTimeout(()=>r(!0),yy);return()=>clearTimeout(t)},[e]),(0,v.useEffect)(()=>{if(n)return;let e=()=>t(!0);return document.addEventListener(`keydown`,e),document.addEventListener(`pointerdown`,e),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`pointerdown`,e)}},[n]),n)return null;let f=i===`ready`,p=Object.values(c).filter(e=>e.archivedAt===null).length;return(0,U.jsxs)(`div`,{className:e?`opening opening-leaving`:`opening`,"aria-hidden":`true`,children:[(0,U.jsxs)(`div`,{className:`opening-stage`,children:[(0,U.jsxs)(`svg`,{className:`opening-mark`,viewBox:`0 0 64 64`,width:88,height:88,"aria-hidden":`true`,children:[(0,U.jsx)(`circle`,{className:`opening-ring`,cx:`32`,cy:`32`,r:`30`,pathLength:1}),(0,U.jsx)(`path`,{className:`opening-leaf`,pathLength:1,d:`M35.4 50.2C36.6 37.6 42.6 22.6 60 12.6C58.6 24.4 55.2 32.4 49.4 38.6C45 43.3 39.4 46.4 35.4 50.2Z`}),(0,U.jsx)(`ellipse`,{className:`opening-berry`,cx:`19.8`,cy:`35.4`,rx:`15.9`,ry:`15.4`,fill:`#C8323F`}),(0,U.jsx)(`ellipse`,{className:`opening-seed`,cx:`25.8`,cy:`22.6`,rx:`4.6`,ry:`3.1`,transform:`rotate(12 25.8 22.6)`,fill:`#1F3A2E`})]}),(0,U.jsx)(Vg,{className:`opening-word`}),(0,U.jsx)(Zg,{pose:`greeting`,height:112,className:`opening-mascot`})]}),(0,U.jsxs)(`ol`,{className:`opening-steps`,children:[(0,U.jsx)(Cy,{done:o!==null,text:o?D(`boot_serverDone`,{version:o.version}):D(`boot_server`)}),(0,U.jsx)(Cy,{done:s!==null,text:D(s?`boot_settingsDone`:`boot_settings`)}),(0,U.jsx)(Cy,{done:f,text:f?D(`boot_sessionsDone`,{n:p}):D(`boot_sessions`)}),(0,U.jsx)(Cy,{done:a,text:a?l>0?D(`boot_centerWaiting`,{n:l}):D(`boot_centerClear`):D(`boot_center`)})]}),(0,U.jsx)(`p`,{className:`opening-skip`,children:D(`boot_skip`)})]})}var Ty=class extends Error{field;part;constructor(e,t,n){super(e),this.field=t,this.part=n}},Ey=[{name:`minute`,min:0,max:59},{name:`hour`,min:0,max:23},{name:`day of the month`,min:1,max:31},{name:`month`,min:1,max:12},{name:`day of the week`,min:0,max:7}];function Dy(e,t){let{name:n,min:r,max:i}=Ey[t],a=new Set;for(let o of e.split(`,`)){let e=/^(?:(\*)|(\d+)(?:-(\d+))?)(?:\/(\d+))?$/.exec(o);if(!e)throw new Ty(`"${o}" is not a valid ${n}.`,t,o);let[,s,c,l,u]=e,d=u===void 0?1:Number(u),f=s?r:Number(c),p=s?i:l===void 0?u===void 0?f:i:Number(l);if(d<1||f<r||p>i||f>p)throw new Ty(`"${o}" is out of range for the ${n} (${r}–${i}).`,t,o);for(let e=f;e<=p;e+=d)a.add(e)}return[...a].sort((e,t)=>e-t)}function Oy(e){let t=e.trim().split(/\s+/);if(t.length!==5||t[0]===``)throw new Ty(`A cron expression has five fields: minute, hour, day of the month, month and day of the week.`,null,e);let[n,r,i,a,o]=t.map((e,t)=>Dy(e,t));return{minutes:n,hours:r,days:new Set(i),months:new Set(a),weekdays:new Set(o.map(e=>e%7)),anyDay:!t[2].startsWith(`*`)&&!t[4].startsWith(`*`)}}function ky(e,t){if(!e.months.has(t.getMonth()+1))return!1;let n=e.days.has(t.getDate()),r=e.weekdays.has(t.getDay());return e.anyDay?n||r:n&&r}var Ay=10248;function jy(e,t){let n=new Date(t);n.setSeconds(0,0),n.setMinutes(n.getMinutes()+1);let r=n.getTime();for(let t=0;t<Ay;t++){let i=new Date(n.getFullYear(),n.getMonth(),n.getDate()+t);if(ky(e,i))for(let t of e.hours)for(let n of e.minutes){let e=new Date(i.getFullYear(),i.getMonth(),i.getDate(),t,n);if(e.getHours()===t&&e.getMinutes()===n&&e.getTime()>=r)return e.getTime()}}return null}function My(e,t,n){let r=[],i=t;for(;r.length<n;){let t=jy(e,i);if(t===null)break;r.push(t),i=t}return r}var Ny=[[`daily`,`0 9 * * *`],[`weekdays`,`0 9 * * 1-5`],[`weekly`,`0 9 * * 1`],[`monthly`,`0 9 1 * *`],[`hourly`,`0 * * * *`]];function Py(e,t){try{let n=My(Oy(e),t,3);return{runs:n,error:n.length===0?D(`scheduleNoRun`):null}}catch(e){if(!(e instanceof Ty))throw e;return{runs:[],error:e.field===null?D(`cronFields`):D(`cronField`,{field:D(`cronField_${e.field}`),part:e.part})}}}function Fy(e){if(!e.lastStatus||e.lastRunAt===null)return D(`scheduleNeverRan`);let t=D(`scheduleStatus_${e.lastStatus}`),n=e.lastStatus===`skipped`?D(`scheduleSkip_${e.lastDetail??`busy`}`):e.lastDetail;return D(`scheduleLast`,{time:de(e.lastRunAt),status:n?D(`scheduleResult`,{status:t,detail:n}):t})}function Iy({schedule:e,onEdit:t}){O();let n=N(t=>t.sessions[e.sessionId]??null),r=N(e=>n?.groupId?e.groups.find(e=>e.id===n.groupId)?.name??null:null),i=Q(t=>Ot(e.id,{enabled:t})),a=Q(()=>kt(e.id)),[o,s]=(0,v.useState)(!1),c=(0,v.useId)(),l=D(`quoted`,{s:e.name}),[u=``]=e.message.split(`
63
+ `);return(0,U.jsxs)(`li`,{className:`card schedule-card`,children:[(0,U.jsxs)(`div`,{className:`schedule-head`,children:[(0,U.jsx)(`h3`,{id:c,children:e.name}),(0,U.jsx)(d_,{checked:e.enabled,labelledBy:c,busy:i.busy,onChange:e=>void i.run(e)})]}),(0,U.jsxs)(`p`,{className:`schedule-line`,children:[(0,U.jsx)(`code`,{className:`schedule-cron`,children:e.cron}),(0,U.jsx)(`span`,{children:e.enabled&&e.nextRunAt!==null?D(`scheduleNext`,{time:de(e.nextRunAt)}):D(`scheduleOff`)})]}),(0,U.jsxs)(`p`,{className:`schedule-line`,children:[(0,U.jsxs)(`span`,{children:[D(`scheduleSession`),` `,n?(0,U.jsx)(`button`,{type:`button`,className:`link-button`,onClick:()=>void qe(n.id),children:n.name}):`—`]}),r&&(0,U.jsx)(`span`,{children:D(`scheduleTeam`,{team:r})})]}),(0,U.jsx)(`p`,{className:`schedule-message`,children:u}),(0,U.jsx)(`p`,{className:`hint`,children:Fy(e)}),(0,U.jsxs)(`div`,{className:`schedule-actions`,children:[(0,U.jsxs)(Z,{busy:a.busy,onClick:()=>void a.run(),children:[(0,U.jsx)($h,{}),D(`scheduleRunNow`)]}),(0,U.jsxs)(Z,{onClick:t,children:[(0,U.jsx)(Dg,{}),` `,D(`edit`)]}),(0,U.jsxs)(Z,{variant:`ghost`,onClick:()=>s(!0),children:[(0,U.jsx)(Hg,{}),D(`delete`)]})]}),(0,U.jsx)($,{error:i.error??a.error}),o&&(0,U.jsx)(jv,{title:D(`scheduleDelete`),body:D(`scheduleDeleteBody`,{name:l}),confirmLabel:D(`delete`),onConfirm:()=>At(e.id),onClose:()=>s(!1)})]})}function Ly(){O();let e=N(e=>e.schedules),[t,n]=(0,v.useState)(null),r=(0,v.useMemo)(()=>e?[...e].sort((e,t)=>(e.nextRunAt??1/0)-(t.nextRunAt??1/0)||e.name.localeCompare(t.name)):null,[e]);return(0,U.jsxs)(`main`,{className:`main center-main`,children:[(0,U.jsxs)(`header`,{className:`session-header`,children:[(0,U.jsx)(fv,{}),(0,U.jsxs)(`div`,{className:`session-title`,children:[(0,U.jsx)(`h1`,{children:D(`schedules`)}),r&&r.length>0&&(0,U.jsx)(`span`,{className:`session-meta`,children:D(`schedulesCount`,{n:r.length})})]}),(0,U.jsxs)(Z,{onClick:()=>n(`new`),children:[(0,U.jsx)(Ih,{}),D(`newSchedule`)]})]}),(0,U.jsx)(`div`,{className:`center-body`,tabIndex:0,children:(0,U.jsxs)(`div`,{className:`center-inner`,children:[(0,U.jsx)(`p`,{className:`hint`,children:D(`schedulesIntro`)}),r?r.length===0?(0,U.jsxs)(`div`,{className:`empty-state`,children:[(0,U.jsx)(Zg,{pose:`sleepy`,height:96}),(0,U.jsx)(`p`,{className:`empty-box`,children:D(`schedulesEmpty`)})]}):(0,U.jsx)(`ul`,{className:`schedule-list`,children:r.map(e=>(0,U.jsx)(Iy,{schedule:e,onEdit:()=>n(e)},e.id))}):(0,U.jsx)(`p`,{className:`hint`,children:D(`loading`)})]})}),t&&(0,U.jsx)(By,{schedule:t===`new`?null:t,onClose:()=>n(null)})]})}function Ry(e,t){return!(e instanceof b)||e.field!==t?null:t===`name`&&e.code===`conflict`?D(`scheduleNameTaken`):u_(e)}var zy=[`name`,`cron`,`session`,`message`];function By({schedule:e,onClose:t}){O();let n=N(e=>e.sessions),r=(0,v.useMemo)(()=>Object.values(n).filter(e=>e.kind===`standing`&&e.archivedAt===null).sort((e,t)=>e.name.localeCompare(t.name)),[n]),[i,a]=(0,v.useState)(e?.name??``),[o,s]=(0,v.useState)(e?.cron??`0 9 * * *`),[c,l]=(0,v.useState)(e?.sessionId??r[0]?.id??``),[u,d]=(0,v.useState)(e?.message??``),[f,p]=(0,v.useState)(e?.permissionMode??``),[m,h]=(0,v.useState)(e?.catchUp??!0),g=C_(),_=(0,v.useMemo)(()=>Py(o,g),[o,g]),y={name:(0,v.useId)(),nameError:(0,v.useId)(),cron:(0,v.useId)(),cronNote:(0,v.useId)(),message:(0,v.useId)(),messageError:(0,v.useId)()},b=n[c],x=Q(async()=>{let n={name:i,cron:o,session:c,message:u,permissionMode:f||null,catchUp:m};await Ot(e?.id??null,n),t()}),S=Ny.find(([,e])=>e===o.trim().split(/\s+/).join(` `))?.[0],C=Ry(x.error,`name`),ee=Ry(x.error,`cron`)??_.error,w=Ry(x.error,`message`),T=i.trim()&&u.trim()&&c&&!_.error;return(0,U.jsxs)(y_,{title:D(e?`editSchedule`:`newSchedule`),size:`m`,onClose:t,footer:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Z,{onClick:t,children:D(`cancel`)}),(0,U.jsxs)(Z,{variant:`primary`,busy:x.busy,disabled:!T,onClick:()=>void x.run(),children:[(0,U.jsx)(yg,{}),D(e?`save`:`create`)]})]}),children:[(0,U.jsx)(S_,{label:D(`scheduleName`),htmlFor:y.name,error:C,errorId:y.nameError,children:(0,U.jsx)(`input`,{id:y.name,className:`input`,value:i,maxLength:60,autoFocus:!0,"aria-invalid":C?`true`:void 0,"aria-describedby":C?y.nameError:void 0,onChange:e=>a(e.target.value)})}),(0,U.jsxs)(`div`,{className:`field-row`,children:[(0,U.jsx)(S_,{label:D(`scheduleWhen`),children:(0,U.jsx)(p_,{label:D(`scheduleWhen`),value:S??`custom`,options:[...Ny.map(([e])=>({value:e,label:D(`preset_${e}`)})),{value:`custom`,label:D(`preset_custom`)}],onChange:e=>{let t=Ny.find(([t])=>t===e);t&&s(t[1])}})}),(0,U.jsx)(S_,{label:D(`scheduleCronLabel`),htmlFor:y.cron,info:D(`scheduleCronHint`),children:(0,U.jsx)(`input`,{id:y.cron,className:`input schedule-cron`,value:o,maxLength:200,spellCheck:!1,autoComplete:`off`,"aria-invalid":ee?`true`:void 0,"aria-describedby":y.cronNote,onChange:e=>s(e.target.value)})})]}),(0,U.jsx)(`p`,{id:y.cronNote,className:ee?`field-error`:`hint`,"aria-live":`polite`,children:ee??D(`scheduleNextRuns`,{times:_.runs.map(e=>de(e)).join(D(`enumSeparator`))})}),(0,U.jsx)(S_,{label:D(`scheduleSession`),info:D(`scheduleSessionHint`),error:Ry(x.error,`session`),children:r.length===0?(0,U.jsx)(`p`,{className:`empty-box`,children:D(`scheduleNoSessions`)}):(0,U.jsx)(p_,{label:D(`scheduleSession`),value:c,options:r.map(e=>({value:e.id,label:e.name})),onChange:l})}),(0,U.jsx)(S_,{label:D(`scheduleMessage`),htmlFor:y.message,error:w,errorId:y.messageError,children:(0,U.jsx)(`textarea`,{id:y.message,className:`textarea textarea-large`,placeholder:D(`scheduleMessagePlaceholder`),value:u,"aria-invalid":w?`true`:void 0,"aria-describedby":w?y.messageError:void 0,onChange:e=>d(e.target.value)})}),(0,U.jsxs)(`div`,{className:`field-row`,children:[(0,U.jsx)(S_,{label:D(`schedulePermission`),children:(0,U.jsx)(p_,{label:D(`schedulePermission`),value:f,options:[{value:``,label:D(`schedulePermission_session`,{mode:b?D(`perm_${lp(b.options)}`):`—`})},...cp.map(e=>({value:e,label:D(`perm_${e}`)}))],onChange:e=>p(e)})}),(0,U.jsx)(S_,{label:D(`scheduleCatchUp`),info:D(`scheduleCatchUpHint`),children:(0,U.jsx)(p_,{label:D(`scheduleCatchUp`),value:m?`yes`:`no`,options:[{value:`yes`,label:D(`scheduleCatchUp_yes`)},{value:`no`,label:D(`scheduleCatchUp_no`)}],onChange:e=>h(e===`yes`)})})]}),(0,U.jsx)($,{error:Vy(x.error)})]})}function Vy(e){return e instanceof b&&e.field&&zy.includes(e.field)?null:e}var Hy=[{id:`github`,name:`GitHub`,publisher:`GitHub`,docs:`https://github.com/github/github-mcp-server`,connect:{url:`https://api.githubcopilot.com/mcp/`},token:{in:`header`,key:`Authorization`,prefix:`Bearer `,where:`https://github.com/settings/personal-access-tokens`}},{id:`gitee`,name:`Gitee`,publisher:`Gitee`,docs:`https://gitee.com/oschina/mcp-gitee`,connect:{package:`@gitee/mcp-gitee@1.0.0`},token:{in:`env`,key:`GITEE_ACCESS_TOKEN`,where:`https://gitee.com/profile/personal_access_tokens`}},{id:`context7`,name:`Context7`,publisher:`Upstash`,docs:`https://context7.com`,connect:{url:`https://mcp.context7.com/mcp`},token:{in:`header`,key:`CONTEXT7_API_KEY`,optional:!0,where:`https://context7.com/dashboard`}},{id:`notion`,name:`Notion`,publisher:`Notion`,docs:`https://github.com/makenotion/notion-mcp-server`,connect:{package:`@notionhq/notion-mcp-server@2.6.1`},token:{in:`env`,key:`NOTION_TOKEN`,where:`https://www.notion.so/profile/integrations`}},{id:`gmail`,name:`Gmail`,publisher:`Google`,docs:`https://developers.google.com/workspace/gmail/api/guides/configure-mcp-server`,connect:{url:`https://gmailmcp.googleapis.com/mcp/v1`},signIn:{ownClient:{apis:[`gmail.googleapis.com`,`gmailmcp.googleapis.com`],scopes:[`https://www.googleapis.com/auth/gmail.readonly`,`https://www.googleapis.com/auth/gmail.compose`],guide:`https://developers.google.com/workspace/gmail/api/guides/configure-mcp-server`}}},{id:`google-calendar`,asksEveryTime:[`create_event`,`update_event`,`respond_to_event`],name:`Google Calendar`,publisher:`Google`,docs:`https://developers.google.com/workspace/calendar/api/guides/configure-mcp-server`,connect:{url:`https://calendarmcp.googleapis.com/mcp/v1`},signIn:{ownClient:{apis:[`calendar-json.googleapis.com`,`calendarmcp.googleapis.com`],scopes:[`https://www.googleapis.com/auth/calendar.calendarlist.readonly`,`https://www.googleapis.com/auth/calendar.events.freebusy`,`https://www.googleapis.com/auth/calendar.events.readonly`],guide:`https://developers.google.com/workspace/calendar/api/guides/configure-mcp-server`}}},{id:`google-drive`,name:`Google Drive`,publisher:`Google`,docs:`https://developers.google.com/workspace/drive/api/guides/configure-mcp-server`,connect:{url:`https://drivemcp.googleapis.com/mcp/v1`},signIn:{ownClient:{apis:[`drive.googleapis.com`,`drivemcp.googleapis.com`],scopes:[`https://www.googleapis.com/auth/drive.readonly`,`https://www.googleapis.com/auth/drive.file`],guide:`https://developers.google.com/workspace/drive/api/guides/configure-mcp-server`}}},{id:`linear`,name:`Linear`,publisher:`Linear`,docs:`https://linear.app/docs/mcp`,connect:{url:`https://mcp.linear.app/mcp`},signIn:{}},{id:`vercel`,name:`Vercel`,publisher:`Vercel`,docs:`https://vercel.com/docs/mcp/vercel-mcp`,connect:{url:`https://mcp.vercel.com`},signIn:{}},{id:`sentry`,name:`Sentry`,publisher:`Sentry`,docs:`https://github.com/getsentry/sentry-mcp`,connect:{package:`@sentry/mcp-server@0.49.0`},token:{in:`env`,key:`SENTRY_ACCESS_TOKEN`,where:`https://sentry.io/settings/account/api/auth-tokens/`}}];function Uy(e,t,n={id:``,secret:``}){let r=e.signIn?.ownClient;if(e.signIn&&`url`in e.connect)return{name:e.id,url:e.connect.url,...r?{oauth:{clientId:n.id.trim(),clientSecret:n.secret.trim(),scopes:[...r.scopes]}}:{}};let i=t.trim(),a=e.token&&i?{[e.token.key]:`${e.token.prefix??``}${i}`}:null;return`url`in e.connect?{name:e.id,url:e.connect.url,...a&&e.token?.in===`header`?{headers:a}:{}}:{name:e.id,preset:e.id,...a&&e.token?.in===`env`?{env:a}:{}}}function Wy({name:e,note:t,hasKey:n,takesKey:r,deleteBody:i,onSave:a,onDelete:o,extra:s,detail:c}){O();let[l,u]=(0,v.useState)(!1),[d,f]=(0,v.useState)(``),[p,m]=(0,v.useState)(!1),h=Q(async()=>{await a(d.trim()),f(``),u(!1)});return(0,U.jsxs)(`div`,{className:`provider-row`,children:[(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`strong`,{children:e}),` `,(0,U.jsxs)(`span`,{className:`hint`,children:[`· `,t]}),c,l&&(0,U.jsxs)(`div`,{className:`provider-key`,children:[(0,U.jsx)(`input`,{className:`input secret-input`,type:`text`,autoComplete:`off`,spellCheck:!1,"data-1p-ignore":`true`,"aria-label":`${e} · ${D(`keyPlaceholder`)}`,placeholder:D(`keyPlaceholder`),value:d,onChange:e=>f(e.target.value)}),(0,U.jsx)(`span`,{className:`hint`,children:D(`keyHelp`)}),(0,U.jsx)($,{error:h.error})]})]}),(0,U.jsxs)(`div`,{className:`request-actions`,children:[!l&&s,l?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Z,{onClick:()=>u(!1),children:D(`cancel`)}),(0,U.jsxs)(Z,{variant:`primary`,busy:h.busy,disabled:!d.trim(),onClick:()=>void h.run(),children:[(0,U.jsx)(yg,{}),D(`save`)]})]}):r&&(0,U.jsxs)(Z,{onClick:()=>u(!0),children:[(0,U.jsx)(rg,{}),D(n?`replaceKey`:`setKey`)]}),n&&r&&!l&&(0,U.jsxs)(Z,{variant:`danger`,onClick:()=>m(!0),children:[(0,U.jsx)(Hg,{}),D(`deleteKey`)]})]}),p&&(0,U.jsx)(jv,{title:D(`deleteKey`),body:i,confirmLabel:D(`delete`),onConfirm:o,onClose:()=>m(!1)})]})}function Gy(e){return e<1e3?D(`latencyMs`,{n:Math.round(e)}):D(`latencySeconds`,{n:(e/1e3).toFixed(1)})}function Ky({provider:e}){O();let[t,n]=(0,v.useState)(!1),[r,i]=(0,v.useState)(null),a=Q(async()=>{i(null),i(await qt(e.id))}),o=e.hasKey||!e.keyRequired,s=e.keyRequired?e.hasKey?D(`keySaved`):D(`noKey`):D(`keyless`);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Wy,{name:e.name,note:s,hasKey:e.hasKey,takesKey:e.keyRequired,deleteBody:D(`deleteKeyBody`,{name:e.name}),onSave:t=>Kt(e.id,t),onDelete:()=>Jt(e.id),detail:(0,U.jsxs)(`div`,{className:`provider-detail`,"aria-live":`polite`,children:[r&&(0,U.jsx)(`p`,{className:r.ok?`hint`:`hint provider-failed`,children:r.ok?D(`testOk`,{first:Gy(r.firstMs??r.totalMs),total:Gy(r.totalMs),model:r.model}):D(`testFailed`,{model:r.model,error:r.error??``})}),(0,U.jsx)($,{error:a.error})]}),extra:(0,U.jsxs)(U.Fragment,{children:[o&&(0,U.jsxs)(Z,{busy:a.busy,title:D(`testHint`),onClick:()=>void a.run(),children:[(0,U.jsx)(Ug,{}),D(`testConnection`)]}),e.custom&&(0,U.jsxs)(Z,{variant:`danger`,onClick:()=>n(!0),children:[(0,U.jsx)(Hg,{}),D(`deleteProvider`)]})]})}),t&&(0,U.jsx)(jv,{title:D(`deleteProvider`),body:D(`deleteProviderBody`,{name:e.name}),confirmLabel:D(`delete`),onConfirm:()=>Xt(e.id),onClose:()=>n(!1)})]})}function qy(e){let t=`searchName_${e.id.replace(/^search-/,``)}`;return se(t)?D(t):e.name}function Jy(){O();let[e,t]=(0,v.useState)(null),[n,r]=(0,v.useState)(null),i=(0,v.useCallback)(()=>P().then(t,r),[]);return(0,v.useEffect)(()=>{i()},[i]),(0,U.jsxs)(`section`,{className:`settings-section`,"aria-label":D(`searchServices`),children:[(0,U.jsx)(`p`,{className:`hint`,children:D(`searchHelp`)}),(0,U.jsx)(`div`,{className:`provider-group`,children:(e??[]).map(e=>(0,U.jsx)(Wy,{name:qy(e),note:[e.hasKey?D(`keySaved`):D(`noKey`),e.active?D(`searchInUse`):null,D(`search_${e.region}`)].filter(Boolean).join(D(`hintSeparator`)),hasKey:e.hasKey,takesKey:!0,deleteBody:D(`deleteSearchKeyBody`,{name:qy(e)}),onSave:async t=>{await Zt(e.id,t),await i()},onDelete:async()=>{await Qt(e.id),await i()}},e.id))}),(0,U.jsx)($,{error:n})]})}var Yy=[`models`,`search`];function Xy({onClose:e}){O();let[t,n]=(0,v.useState)(`models`),r=(0,v.useId)(),i=e=>{let i=e.key===`ArrowRight`?1:e.key===`ArrowLeft`?-1:0;if(!i)return;e.preventDefault();let a=Yy[(Yy.indexOf(t)+i+Yy.length)%Yy.length];a&&(n(a),document.getElementById(`${r}-${a}`)?.focus())};return(0,U.jsx)(y_,{title:D(`providers`),size:`l`,onClose:e,footer:(0,U.jsx)(Z,{onClick:e,children:D(`close`)}),tabs:(0,U.jsx)(`div`,{className:`panel-tabs dialog-tabs`,role:`tablist`,"aria-label":D(`providers`),children:Yy.map(e=>(0,U.jsx)(`button`,{id:`${r}-${e}`,type:`button`,role:`tab`,className:`panel-tab`,"aria-selected":t===e,"aria-controls":`${r}-panel`,tabIndex:t===e?0:-1,onKeyDown:i,onClick:()=>n(e),children:D(e===`models`?`modelProviders`:`searchServices`)},e))}),children:(0,U.jsx)(`div`,{id:`${r}-panel`,role:`tabpanel`,"aria-labelledby":`${r}-${t}`,children:t===`models`?(0,U.jsx)(Qy,{}):(0,U.jsx)(Jy,{})})})}function Zy(){O();let e={id:``,name:``,baseUrl:``,modelId:``,contextWindow:`32768`,maxTokens:`8192`,keyRequired:!0},[t,n]=(0,v.useState)(!1),[r,i]=(0,v.useState)(e),a=Q(async()=>{await Yt(r.id.trim(),{name:r.name.trim(),baseUrl:r.baseUrl.trim(),keyRequired:r.keyRequired,models:[{id:r.modelId.trim(),contextWindow:Number(r.contextWindow),maxTokens:Number(r.maxTokens)}]}),i(e),n(!1)}),o=e=>t=>i({...r,[e]:t.target.value}),s=(e,t,n)=>(0,U.jsxs)(`label`,{className:`field`,children:[(0,U.jsx)(`span`,{className:`field-label`,children:t}),(0,U.jsx)(`input`,{className:`input`,value:r[e],placeholder:n,inputMode:e===`contextWindow`||e===`maxTokens`?`numeric`:void 0,onChange:o(e)})]});return(0,U.jsxs)(`div`,{children:[(0,U.jsxs)(Z,{onClick:()=>n(!0),children:[(0,U.jsx)(Ih,{}),D(`addProvider`)]}),t&&(0,U.jsxs)(y_,{title:D(`addProvider`),size:`m`,onClose:()=>n(!1),footer:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Z,{onClick:()=>n(!1),children:D(`cancel`)}),(0,U.jsxs)(Z,{variant:`primary`,busy:a.busy,disabled:!r.id.trim()||!r.name.trim()||!r.baseUrl.trim()||!r.modelId.trim(),onClick:()=>void a.run(),children:[(0,U.jsx)(yg,{}),D(`save`)]})]}),children:[(0,U.jsxs)(`div`,{className:`field-row`,children:[s(`id`,D(`providerId`),`ollama`),s(`name`,D(`name`),`Ollama`)]}),s(`baseUrl`,D(`baseUrl`),`http://127.0.0.1:11434/v1`),s(`modelId`,D(`modelId`),`qwen3:8b`),(0,U.jsxs)(`div`,{className:`field-row`,children:[s(`contextWindow`,D(`contextWindow`)),s(`maxTokens`,D(`maxOutput`))]}),(0,U.jsx)(d_,{checked:r.keyRequired,onChange:e=>i({...r,keyRequired:e}),label:D(`keyRequired`)}),(0,U.jsx)($,{error:a.error})]})]})}function Qy(){O();let e=N(e=>e.providers);return(0,U.jsxs)(`section`,{className:`settings-section`,"aria-label":D(`providers`),children:[(0,U.jsx)(`p`,{className:`hint`,children:D(`keyHelp`)}),[`cn`,`custom`,`global`].map(t=>{let n=e.filter(e=>e.region===t).sort((e,t)=>e.name.localeCompare(t.name));return n.length===0?null:(0,U.jsxs)(`div`,{className:`provider-group`,children:[(0,U.jsx)(`h3`,{children:D(`region_${t}`)}),n.map(e=>(0,U.jsx)(Ky,{provider:e},e.id))]},t)}),(0,U.jsx)(Zy,{})]})}function $y({onClose:e}){O();let t=N(e=>e.settings),[n,r]=(0,v.useState)(t?.defaultModel),i=t?.defaultPermissionMode??`auto`,[a,o]=(0,v.useState)(i),s=(0,v.useId)(),c=t?.defaultWorkspaceId??``,[l,u]=(0,v.useState)(c),d=(0,v.useId)(),[f,p]=(0,v.useState)(t?.decisionLog??``),m=(0,v.useId)(),h=t?.dailyBudget?String(t.dailyBudget):``,[g,_]=(0,v.useState)(h),[y,b]=(0,v.useState)(null);(0,v.useEffect)(()=>{bn().then(e=>b(e.total)).catch(()=>{})},[]);let x=(0,v.useId)(),S=(t?.memoryDirs??[]).join(`
64
+ `),[C,ee]=(0,v.useState)(S),w=(0,v.useId)(),T=Q(async()=>{await xn({...n?{defaultModel:n}:{},...a===i?{}:{defaultPermissionMode:a},...l===c?{}:{defaultWorkspaceId:l||null},...C===S?{}:{memoryDirs:C.split(`
65
+ `).map(e=>e.trim()).filter(Boolean)},decisionLog:f.trim()||null,...g===h?{}:{dailyBudget:Number(g)||null}}),e()}),E=JSON.stringify(n)!==JSON.stringify(t?.defaultModel)||a!==i||l!==c||f.trim()!==(t?.decisionLog??``)||g!==h||C!==S;return(0,U.jsxs)(y_,{title:D(`defaultsTitle`),size:`l`,onClose:e,footer:(0,U.jsxs)(U.Fragment,{children:[E&&(0,U.jsx)(`span`,{className:`hint unsaved`,role:`status`,children:D(`unsavedChanges`)}),(0,U.jsx)(Z,{onClick:e,children:D(`cancel`)}),(0,U.jsxs)(Z,{variant:`primary`,busy:T.busy,disabled:!E,onClick:()=>void T.run(),children:[(0,U.jsx)(yg,{}),D(`save`)]})]}),children:[n&&(0,U.jsx)(S_,{label:D(`defaultModel`),info:D(`defaultModelHelp`),children:(0,U.jsx)(dv,{...n,layout:`grid`,onChange:e=>r(t=>t&&{...t,...e})})}),(0,U.jsx)(S_,{label:D(`defaultPermission`),labelId:s,info:D(`defaultPermissionHelp`),children:(0,U.jsx)(p_,{labelledBy:s,value:a,options:cp.map(e=>({value:e,label:D(`perm_${e}`),hint:D(`perm_${e}_hint`)})),onChange:e=>o(e)})}),(0,U.jsx)(S_,{label:D(`defaultWorkspace`),labelId:d,info:D(`defaultWorkspaceHelp`),children:(0,U.jsx)(p_,{labelledBy:d,value:l,options:[{value:``,label:D(`defaultWorkspaceNone`)},...(t?.workspaces??[]).map(e=>({value:e.id,label:e.name,hint:e.path}))],onChange:u})}),(0,U.jsx)(S_,{label:D(`decisionLog`),htmlFor:m,info:D(`decisionLogHelp`),children:(0,U.jsx)(`input`,{id:m,className:`input`,spellCheck:!1,placeholder:D(`decisionLogPlaceholder`),value:f,onChange:e=>p(e.target.value)})}),(0,U.jsx)(S_,{label:D(`memoryDirs`),htmlFor:w,info:D(`memoryDirsHelp`),children:(0,U.jsx)(`textarea`,{id:w,className:`textarea`,spellCheck:!1,rows:2,placeholder:D(`memoryDirsPlaceholder`),value:C,onChange:e=>ee(e.target.value)})}),(0,U.jsxs)(S_,{label:D(`dailyBudgetAll`),htmlFor:x,info:D(`dailyBudgetAllHelp`),children:[(0,U.jsx)(`input`,{id:x,className:`input input-number`,inputMode:`decimal`,placeholder:D(`budgetNone`),value:g,onChange:e=>_(kv(e.target.value))}),y!==null&&(0,U.jsx)(`span`,{className:`hint`,children:D(`spentToday`,{n:ue(y)})})]}),(0,U.jsx)($,{error:T.error})]})}function eb(){O();let e=N(e=>e.health),[t,n]=(0,v.useState)(null),r=e=>e.split(`
66
+
67
+ `).map(e=>(0,U.jsx)(`p`,{children:e},e.slice(0,24)));return(0,U.jsxs)(`section`,{className:`settings-section about`,"aria-labelledby":`settings-about`,children:[(0,U.jsx)(`h2`,{id:`settings-about`,className:`visually-hidden`,children:D(`about`)}),(0,U.jsxs)(`div`,{className:`about-head`,children:[(0,U.jsx)(Zg,{pose:`gift`,height:112,className:`about-mascot`}),(0,U.jsxs)(`div`,{className:`lockup`,role:`img`,"aria-label":D(`lockupName`),children:[(0,U.jsx)(Rg,{className:`lockup-mark`,size:22}),(0,U.jsxs)(`span`,{className:`lockup-word`,children:[(0,U.jsx)(Vg,{}),(0,U.jsx)(`img`,{className:`lockup-tenon`,src:`/icons/tenon-mark.svg`,alt:``,width:14,height:14})]})]}),(0,U.jsxs)(`p`,{className:`about-version`,children:[D(`version`,{v:e?.version??``}),e?.build?` · ${D(`build`,{b:e.build})}`:``]})]}),(0,U.jsx)(`div`,{className:`about-text`,children:r(D(`aboutBody`))}),(0,U.jsxs)(`div`,{className:`about-list`,children:[(0,U.jsxs)(`div`,{className:`about-row`,children:[(0,U.jsx)(`span`,{className:`about-label`,children:D(`publisher`)}),(0,U.jsxs)(`span`,{className:`about-value`,children:[(0,U.jsx)(`img`,{src:`/icons/tenon-mark.svg`,alt:``,width:18,height:18}),(0,U.jsx)(`strong`,{children:D(`publisherName`)})]})]}),(0,U.jsxs)(`div`,{className:`about-row`,children:[(0,U.jsx)(`span`,{className:`about-label`,children:D(`website`)}),(0,U.jsx)(`a`,{href:`https://tenonai.cn/`,target:`_blank`,rel:`noopener noreferrer`,children:`tenonai.cn`})]}),(0,U.jsxs)(`button`,{type:`button`,className:`about-row`,onClick:()=>n(`privacy`),children:[D(`privacyPolicy`),(0,U.jsx)(Yh,{})]}),(0,U.jsxs)(`button`,{type:`button`,className:`about-row`,onClick:()=>n(`terms`),children:[D(`terms`),(0,U.jsx)(Yh,{})]}),(0,U.jsxs)(`div`,{className:`about-row`,children:[(0,U.jsx)(`span`,{className:`about-label`,children:D(`feedback`)}),(0,U.jsx)(`a`,{href:`mailto:support@tenonai.cn`,children:`support@tenonai.cn`})]})]}),t&&(0,U.jsxs)(y_,{title:D(t===`privacy`?`privacyPolicy`:`terms`),size:`l`,onClose:()=>n(null),footer:(0,U.jsx)(Z,{onClick:()=>n(null),children:D(`close`)}),children:[(0,U.jsx)(`p`,{className:`hint`,children:D(`docVersion`,{v:`2.5`,date:D(`policyDate`)})}),r(D(t===`privacy`?`privacyPolicyBody`:`termsBody`))]})]})}function tb(){O();let e=N(e=>e.settingsDialog),t=()=>M({settingsDialog:null});return e===`defaults`?(0,U.jsx)($y,{onClose:t}):e===`phones`?(0,U.jsx)(ab,{onClose:t}):e===`mcp`?(0,U.jsx)(pb,{onClose:t}):e===`skills`?(0,U.jsx)(hb,{onClose:t}):e===`data`?(0,U.jsx)(rb,{onClose:t}):e===`system`?(0,U.jsx)(gb,{onClose:t}):e===`providers`?(0,U.jsx)(Xy,{onClose:t}):e===`about`?(0,U.jsx)(y_,{title:D(`about`),size:`l`,onClose:t,footer:(0,U.jsx)(Z,{onClick:t,children:D(`close`)}),children:(0,U.jsx)(eb,{})}):null}function nb({variant:e}){O();let t=N(e=>e.settings),[n,r]=(0,v.useState)(!1);(0,v.useEffect)(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&e.key===`,`&&(e.preventDefault(),r(!0))};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[]);let i=e=>void xn(e).catch(()=>{}),a=t?.theme??`system`,o=t?.language??`system`,s=t?.mascot!==!1,c=[{id:`language-system`,label:D(`language_system`),value:`system`},{id:`language-zh`,label:`简体中文`,value:`zh`},{id:`language-en`,label:`English`,value:`en`}],l=[{label:D(`theme`),detail:D(`theme_${a}`),icon:(0,U.jsx)(Sg,{}),items:[`system`,`light`,`dark`].map(e=>({id:`theme-${e}`,label:D(`theme_${e}`),checked:a===e,onSelect:()=>i({theme:e})}))},{label:D(`language`),detail:c.find(e=>e.value===o)?.label??``,icon:(0,U.jsx)(Cg,{}),items:c.map(({id:e,label:t,value:n})=>({id:e,label:t,checked:o===n,onSelect:()=>i({language:n})}))},{label:D(`mascotMenu`),detail:D(s?`mascot_on`:`mascot_off`),icon:(0,U.jsx)(wg,{}),items:[!0,!1].map(e=>({id:e?`mascot-on`:`mascot-off`,label:D(e?`mascot_on`:`mascot_off`),checked:s===e,onSelect:()=>i({mascot:e})}))},{separator:!0,id:`line-1`},{label:D(`providersMenu`),icon:(0,U.jsx)(rg,{}),onSelect:()=>Ke(`providers`)},{label:D(`mcpMenu`),icon:(0,U.jsx)(Lh,{}),onSelect:()=>Ke(`mcp`)},{label:D(`skillsMenu`),icon:(0,U.jsx)(Rh,{}),onSelect:()=>Ke(`skills`)},{label:D(`defaultsMenu`),icon:(0,U.jsx)(og,{}),onSelect:()=>Ke(`defaults`)},{label:D(`phonesMenu`),icon:(0,U.jsx)(sg,{}),onSelect:()=>Ke(`phones`)},{label:D(`systemMenu`),icon:(0,U.jsx)(zh,{}),onSelect:()=>Ke(`system`)},{label:D(`dataMenu`),icon:(0,U.jsx)(Tg,{}),onSelect:()=>Ke(`data`)},{separator:!0,id:`line-2`},{label:D(`aboutMenu`),icon:(0,U.jsx)(eg,{}),onSelect:()=>Ke(`about`)},{label:D(`sendFeedback`),icon:(0,U.jsx)(cg,{}),onSelect:()=>{window.location.href=`mailto:support@tenonai.cn`}}];return(0,U.jsx)(v_,{label:D(`settings`),items:l,open:n,onOpenChange:r,width:240,trigger:e===`row`?{className:`nav-row`,title:`${D(`settings`)}(⌘,)`,content:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Vh,{}),D(`settings`)]})}:{className:`btn btn-ghost btn-icon`,title:D(`settings`),content:(0,U.jsx)(Vh,{})}})}function rb({onClose:e}){O();let[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)(null),[a,o]=(0,v.useState)(null),[s,c]=(0,v.useState)(null),[l,u]=(0,v.useState)(!1),[d,f]=(0,v.useState)(``),[p,m]=(0,v.useState)(!1),[h,g]=(0,v.useState)(!1),_=(0,v.useId)(),y=(0,v.useCallback)(()=>cn().then(e=>{n(e),i(null)},i),[]);(0,v.useEffect)(()=>{y()},[y]);let b=Q(()=>fn(`home`)),x=Q(()=>fn(`export`)),S=async e=>{o(await un(e)),u(!1),f(``),await y()},C=Q(async()=>{let e;try{e=await ln()}catch(e){throw u(!0),e}e&&await S(e)}),ee=Q(()=>S(d.trim())),w=D(t?.reveal===`files`?`skillRevealFiles`:`skillRevealFinder`),T=t?.temp,E=T?T.files-T.removableFiles:0;return(0,U.jsxs)(y_,{title:D(`dataTitle`),size:`l`,onClose:e,footer:(0,U.jsx)(Z,{onClick:e,children:D(`close`)}),children:[t===null&&!r&&(0,U.jsx)(`p`,{className:`hint`,children:D(`loading`)}),(0,U.jsx)($,{error:r}),t&&T&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(b_,{title:D(`dataStorage`),children:[(0,U.jsxs)(`div`,{className:`setting-row data-row`,children:[(0,U.jsxs)(`div`,{className:`setting-text`,children:[(0,U.jsx)(`span`,{className:`setting-label`,children:D(`dataFolder`)}),(0,U.jsx)(`span`,{className:`hint data-path`,children:t.folder})]}),t.reveal&&(0,U.jsx)(`div`,{className:`setting-control`,children:(0,U.jsxs)(Z,{busy:b.busy,onClick:()=>void b.run(),children:[(0,U.jsx)(Bh,{}),w]})})]}),(0,U.jsxs)(`div`,{className:`setting-row data-usage`,children:[(0,U.jsxs)(`div`,{className:`data-line data-total`,children:[(0,U.jsx)(`span`,{children:D(`dataTotal`)}),(0,U.jsx)(`span`,{className:`data-size`,children:le(t.totalBytes)})]}),(0,U.jsx)(`ul`,{className:`data-parts`,children:t.parts.map(e=>(0,U.jsxs)(`li`,{className:`data-part`,children:[(0,U.jsxs)(`div`,{className:`data-line`,children:[(0,U.jsx)(`span`,{children:D(`dataPart_${e.id}`)}),(0,U.jsx)(`span`,{className:`data-size`,children:le(e.bytes)})]}),(0,U.jsx)(`div`,{className:`data-bar`,"aria-hidden":`true`,children:(0,U.jsx)(`span`,{style:{width:`${t.totalBytes>0?e.bytes/t.totalBytes*100:0}%`}})})]},e.id))}),(0,U.jsx)(`span`,{className:`hint`,children:D(`dataReadAt`,{time:he(t.readAt)})})]}),(0,U.jsx)($,{error:b.error})]}),(0,U.jsxs)(b_,{title:D(`dataExport`),children:[(0,U.jsxs)(`div`,{className:`setting-row data-row`,children:[(0,U.jsxs)(`div`,{className:`setting-text`,children:[(0,U.jsx)(`span`,{className:`setting-label`,children:D(`dataExportLabel`)}),(0,U.jsx)(`span`,{className:`hint`,children:D(`dataExportHint`)})]}),(0,U.jsx)(`div`,{className:`setting-control`,children:(0,U.jsxs)(Z,{busy:C.busy,onClick:()=>void C.run(),children:[(0,U.jsx)(kg,{}),D(`dataExportButton`)]})})]}),l&&(0,U.jsxs)(`div`,{className:`setting-row data-row`,children:[(0,U.jsxs)(`div`,{className:`setting-text data-typed`,children:[(0,U.jsx)(`label`,{className:`setting-label`,htmlFor:_,children:D(`dataExportFolder`)}),(0,U.jsx)(`input`,{id:_,className:`input mono-input`,value:d,placeholder:D(`folderPath`),spellCheck:!1,onChange:e=>f(e.target.value)})]}),(0,U.jsx)(`div`,{className:`setting-control`,children:(0,U.jsxs)(Z,{busy:ee.busy,disabled:!d.trim(),onClick:()=>void ee.run(),children:[(0,U.jsx)(kg,{}),D(`dataExportTyped`)]})})]}),a&&(0,U.jsxs)(`div`,{className:`setting-row data-row`,role:`status`,children:[(0,U.jsx)(`div`,{className:`setting-text`,children:(0,U.jsx)(`span`,{className:`data-result`,children:D(`dataExportDone`,{...a})})}),t.reveal&&(0,U.jsx)(`div`,{className:`setting-control`,children:(0,U.jsxs)(Z,{busy:x.busy,onClick:()=>void x.run(),children:[(0,U.jsx)(Bh,{}),w]})})]}),(0,U.jsx)($,{error:ee.error??C.error??x.error})]}),(0,U.jsxs)(b_,{title:D(`dataTemp`),children:[(0,U.jsxs)(`div`,{className:`setting-row data-row`,children:[(0,U.jsxs)(`div`,{className:`setting-text`,children:[(0,U.jsx)(`span`,{className:`setting-label`,children:D(`dataTempLabel`)}),(0,U.jsxs)(`span`,{className:`hint`,children:[T.files===0?D(`dataTempNone`):D(`dataTempHint`,{n:T.files,size:le(T.bytes)}),E>0&&` ${D(`dataTempKept`,{n:E})}`]})]}),(0,U.jsx)(`div`,{className:`setting-control`,children:(0,U.jsxs)(Z,{disabled:T.removableFiles===0,onClick:()=>m(!0),children:[(0,U.jsx)(Hg,{}),D(`dataCleanButton`)]})})]}),s&&(0,U.jsx)(`div`,{className:`setting-row data-row`,role:`status`,children:(0,U.jsxs)(`span`,{className:`data-result`,children:[D(`dataCleanDone`,{n:s.deletedFiles,size:le(s.freedBytes)}),s.skippedFiles>0&&` ${D(`dataCleanSkipped`,{n:s.skippedFiles})}`]})})]}),(0,U.jsx)(b_,{title:D(`dataArchived`),children:(0,U.jsxs)(`div`,{className:`setting-row data-row`,children:[(0,U.jsxs)(`div`,{className:`setting-text`,children:[(0,U.jsx)(`span`,{className:`setting-label`,children:D(`deleteArchivedLabel`)}),(0,U.jsx)(`span`,{className:`hint`,children:D(`deleteArchivedHint`)})]}),(0,U.jsx)(`div`,{className:`setting-control`,children:(0,U.jsxs)(Z,{variant:`danger`,onClick:()=>g(!0),children:[(0,U.jsx)(Hg,{}),D(`deleteArchivedButton`)]})})]})})]}),p&&T&&(0,U.jsx)(jv,{title:D(`dataCleanTitle`),body:`${D(`dataCleanBody`,{n:T.removableFiles,size:le(T.removableBytes)})}${E>0?` ${D(`dataCleanBodyKept`,{n:E})}`:``}`,confirmLabel:D(`dataCleanConfirm`,{n:T.removableFiles}),onConfirm:async()=>{try{c(await dn())}finally{await y()}},onClose:()=>m(!1)}),h&&(0,U.jsx)(ib,{onClose:()=>{g(!1),y()}})]})}function ib({onClose:e}){O();let[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)(null);(0,v.useEffect)(()=>{ot().then(n,i)},[]);let a=Q(async()=>{await st(),e()}),o=t?.length??0,s=(t??[]).slice(0,5).map(e=>e.name);return(0,U.jsxs)(y_,{title:D(`deleteArchivedTitle`),size:`s`,onClose:e,footer:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Z,{onClick:e,children:D(`cancel`)}),o>0&&(0,U.jsxs)(Z,{variant:`danger`,busy:a.busy,onClick:()=>void a.run(),children:[(0,U.jsx)(Hg,{}),D(`deleteArchivedConfirm`,{n:o})]})]}),children:[t===null?(0,U.jsx)(`p`,{className:`hint`,children:D(`loading`)}):o===0?(0,U.jsx)(`p`,{children:D(`noArchived`)}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`p`,{children:D(`deleteArchivedBody`,{n:o})}),(0,U.jsxs)(`p`,{className:`hint`,children:[s.join(D(`listSeparator`)),o>s.length?D(`andMore`,{n:o-s.length}):``]})]}),(0,U.jsx)($,{error:r??a.error})]})}function ab({onClose:e}){O();let t=N(e=>e.phones),[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(null),[o,s]=(0,v.useState)(!1),c=N(e=>e.settings),l=Q((e,t)=>xn({notify:{[e]:t}})),u=C_(),d=(0,v.useId)(),f=(0,v.useId)(),p=Q(e=>gn(e)),m=Q(async()=>{let e=await _n();r({...e,before:t?.devices.length??0})});(0,v.useEffect)(()=>{hn();let e=setInterval(()=>void hn(),3e3);return()=>clearInterval(e)},[]);let h=(0,v.useRef)(null);(0,v.useEffect)(()=>{n&&h.current?.scrollIntoView({block:`nearest`})},[n]);let g=t?.remote,_=t?.devices??[],y=n&&_.length>n.before?_.at(-1):null,b=n&&!y&&n.expiresAt<u;return(0,U.jsxs)(y_,{title:D(`phones`),size:`l`,onClose:e,footer:(0,U.jsx)(Z,{onClick:e,children:D(`close`)}),children:[(0,U.jsxs)(b_,{title:D(`phoneAccess`),children:[(0,U.jsx)(x_,{label:D(`phoneAccessSwitch`),hint:D(`phoneAccessHint`),labelId:d,children:(0,U.jsx)(d_,{checked:g?.enabled??!1,busy:p.busy,labelledBy:d,onChange:e=>void p.run(e)})}),(0,U.jsxs)(x_,{label:D(`relay`),hint:g?.enabled?g.connected?D(`relayConnected`):D(`relayConnecting`):void 0,children:[(0,U.jsx)(`code`,{className:`relay-url`,children:g?.relayUrl??c?.remote.relayUrl}),(0,U.jsxs)(Z,{onClick:()=>s(!0),children:[(0,U.jsx)(Dg,{}),` `,D(`relayChange`)]})]})]}),(0,U.jsxs)(b_,{title:D(`pairedPhones`),children:[_.length===0&&(0,U.jsx)(`p`,{className:`hint setting-empty`,children:D(`noPairedPhones`)}),_.map(e=>(0,U.jsxs)(x_,{label:e.name,hint:[e.lastSeenAt?D(`lastConnected`,{ago:fe(e.lastSeenAt,u)}):D(`neverConnected`),e.canPush?null:D(`phoneNoPush`)].filter(Boolean).join(D(`hintSeparator`)),children:[(0,U.jsx)(d_,{label:D(`phoneNotify`),checked:e.push,onChange:t=>void vn(e.id,t)}),(0,U.jsxs)(Z,{variant:`danger`,onClick:()=>a({id:e.id,name:e.name}),children:[(0,U.jsx)(Hg,{}),D(`removePhone`)]})]},e.id))]}),(0,U.jsx)(b_,{title:D(`notifyTitle`),info:D(`notifyHelp`),children:_e.map(e=>(0,U.jsx)(x_,{label:D(`notify_${e}`),hint:D(`notify_${e}_hint`),labelId:`${f}-${e}`,children:(0,U.jsx)(d_,{checked:c?.notify[e]??!0,busy:l.busy,labelledBy:`${f}-${e}`,onChange:t=>void l.run(e,t)})},e))}),(0,U.jsx)(`div`,{className:`pairing`,ref:h,children:y?(0,U.jsx)(`p`,{role:`status`,children:D(`phonePaired`,{name:y.name})}):n&&!b?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`img`,{className:`pairing-qr`,src:`data:image/svg+xml;utf8,${encodeURIComponent(n.svg)}`,alt:D(`pairingQr`)}),(0,U.jsx)(`p`,{className:`hint`,children:D(`pairingHelp`)})]}):(0,U.jsxs)(U.Fragment,{children:[b&&(0,U.jsx)(`p`,{className:`hint`,children:D(`pairingExpired`)}),(0,U.jsxs)(Z,{variant:`primary`,busy:m.busy,disabled:!g?.enabled,onClick:()=>void m.run(),children:[(0,U.jsx)(sg,{}),D(`addPhone`)]}),!g?.enabled&&(0,U.jsx)(`p`,{className:`hint`,children:D(`turnOnFirst`)})]})}),(0,U.jsx)($,{error:p.error??m.error??l.error}),o&&(0,U.jsx)(ob,{current:g?.relayUrl??c?.remote.relayUrl??`wss://relay.tenonai.cn`,paired:_.length>0,onClose:()=>s(!1)}),i&&(0,U.jsx)(jv,{title:D(`removePhoneTitle`,{name:i.name}),body:D(`removePhoneBody`),confirmLabel:D(`removePhone`),onConfirm:()=>yn(i.id),onClose:()=>a(null)})]})}function ob({current:e,paired:t,onClose:n}){O();let[r,i]=(0,v.useState)(e),a=(0,v.useId)(),o=(0,v.useId)(),s=Q(async()=>{let e=r.trim();await xn({remote:{relayUrl:e===`wss://relay.tenonai.cn`?null:e}}),await hn(),n()});return(0,U.jsxs)(y_,{title:D(`relayTitle`),size:`m`,onClose:n,footer:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(Z,{disabled:r.trim()===sp,onClick:()=>i(sp),children:[(0,U.jsx)(Wg,{}),D(`relayRestore`)]}),(0,U.jsx)(Z,{onClick:n,children:D(`cancel`)}),(0,U.jsxs)(Z,{variant:`primary`,busy:s.busy,disabled:!r.trim()||r.trim()===e,onClick:()=>void s.run(),children:[(0,U.jsx)(yg,{}),D(`save`)]})]}),children:[(0,U.jsxs)(S_,{label:D(`relayTitle`),htmlFor:a,children:[(0,U.jsx)(`input`,{id:a,className:`input mono-input`,spellCheck:!1,autoComplete:`off`,autoCapitalize:`off`,placeholder:sp,"aria-describedby":o,value:r,onChange:e=>i(e.target.value)}),(0,U.jsxs)(`span`,{className:`hint`,id:o,children:[D(`relayHelp`),t?` ${D(`relayRepair`)}`:``]})]}),(0,U.jsx)($,{error:s.error})]})}function sb({pairs:e,onChange:t,addLabel:n,namePlaceholder:r}){O();let i=(0,v.useRef)(1),a=(n,r)=>t(e.map(e=>e.id===n?{...e,...r}:e));return(0,U.jsxs)(`div`,{className:`pairs`,children:[e.map(n=>(0,U.jsxs)(`div`,{className:`pair-row`,children:[(0,U.jsx)(`input`,{className:`input mono-input`,spellCheck:!1,autoComplete:`off`,autoCapitalize:`off`,"aria-label":D(`mcpPairName`),placeholder:r,value:n.name,onChange:e=>a(n.id,{name:e.target.value})}),(0,U.jsx)(`input`,{className:`input secret-input`,type:`text`,spellCheck:!1,autoComplete:`off`,"data-1p-ignore":`true`,"aria-label":D(`mcpPairValue`),placeholder:D(`mcpPairValue`),value:n.value,onChange:e=>a(n.id,{value:e.target.value})}),(0,U.jsx)(Z,{variant:`icon`,"aria-label":D(`mcpRemovePair`),title:D(`mcpRemovePair`),onClick:()=>t(e.filter(e=>e.id!==n.id)),children:(0,U.jsx)(tg,{})})]},n.id)),(0,U.jsxs)(Z,{onClick:()=>{t([...e,{id:i.current,name:``,value:``}]),i.current+=1},children:[(0,U.jsx)(Ih,{}),n]})]})}var cb=e=>Object.fromEntries(e.filter(e=>e.name.trim()).map(e=>[e.name.trim(),e.value]));function lb({preset:e,onClose:t,onAdded:n}){O();let[r,i]=(0,v.useState)(``),[a,o]=(0,v.useState)({id:``,secret:``}),s=(0,v.useId)(),c=(0,v.useId)(),l=(0,v.useId)(),u=e.signIn?.ownClient,d=`http://127.0.0.1:${window.location.port}/oauth/callback`,f=Q(async()=>{await tn(Uy(e,r,a)),await n(),t()}),p=`url`in e.connect?D(`mcpPresetRemote`,{publisher:e.publisher,host:new URL(e.connect.url).host}):D(`mcpPresetLocal`,{pkg:e.connect.package});return(0,U.jsxs)(y_,{title:D(`mcpPresetAddTitle`,{name:e.name}),size:`m`,onClose:t,footer:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Z,{onClick:t,children:D(`cancel`)}),(0,U.jsxs)(Z,{variant:`primary`,busy:f.busy,disabled:u?!a.id.trim()||!a.secret.trim():!(!e.token||e.token.optional||r.trim()),onClick:()=>void f.run(),children:[(0,U.jsx)(Ih,{}),D(`mcpAdd`)]})]}),children:[(0,U.jsx)(`p`,{children:D(`mcpPreset_${e.id}`)}),(0,U.jsx)(`p`,{className:`hint`,children:p}),e.signIn&&!u&&(0,U.jsx)(`p`,{className:`hint`,children:D(`mcpPresetSignIn`,{publisher:e.publisher})}),u&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`ol`,{className:`preset-steps`,children:[(0,U.jsx)(`li`,{children:D(`mcpGoogleStep1`)}),(0,U.jsx)(`li`,{children:D(`mcpGoogleStep2`,{apis:u.apis.join(D(`listSeparator`))})}),(0,U.jsxs)(`li`,{children:[D(`mcpGoogleStep3`),u.scopes.map(e=>(0,U.jsx)(`code`,{className:`mcp-code preset-redirect`,children:e},e))]}),(0,U.jsxs)(`li`,{children:[D(`mcpGoogleStep4`),(0,U.jsx)(`code`,{className:`mcp-code preset-redirect`,children:d})]}),(0,U.jsx)(`li`,{children:D(`mcpGoogleStep5`)})]}),(0,U.jsxs)(`p`,{className:`hint`,children:[(0,U.jsx)(`a`,{href:u.guide,target:`_blank`,rel:`noopener noreferrer`,children:D(`mcpGoogleGuide`)}),D(`hintSeparator`),D(`mcpGoogleShared`)]}),(0,U.jsx)(S_,{label:D(`mcpClientId`),htmlFor:c,children:(0,U.jsx)(`input`,{id:c,className:`input mono-input`,autoComplete:`off`,spellCheck:!1,"data-1p-ignore":`true`,value:a.id,onChange:e=>o({...a,id:e.target.value})})}),(0,U.jsxs)(S_,{label:D(`mcpClientSecret`),htmlFor:l,children:[(0,U.jsx)(`input`,{id:l,className:`input secret-input`,type:`text`,autoComplete:`off`,spellCheck:!1,"data-1p-ignore":`true`,value:a.secret,onChange:e=>o({...a,secret:e.target.value})}),(0,U.jsx)(`span`,{className:`hint`,children:D(`mcpClientStored`)})]})]}),e.token&&(0,U.jsxs)(S_,{label:e.token.optional?D(`mcpPresetTokenOptional`):D(`mcpPresetToken`),htmlFor:s,children:[(0,U.jsx)(`input`,{id:s,className:`input secret-input`,type:`text`,autoComplete:`off`,spellCheck:!1,"data-1p-ignore":`true`,value:r,onChange:e=>i(e.target.value)}),(0,U.jsxs)(`span`,{className:`hint`,children:[(0,U.jsx)(`a`,{href:e.token.where,target:`_blank`,rel:`noopener noreferrer`,children:D(`mcpPresetWhere`,{publisher:e.publisher})}),D(`hintSeparator`),D(`mcpPresetStored`)]})]}),(0,U.jsx)($,{error:f.error})]})}function ub({onClose:e,onAdded:t}){O();let[n,r]=(0,v.useState)(``),[i,a]=(0,v.useState)(`stdio`),[o,s]=(0,v.useState)(``),[c,l]=(0,v.useState)(``),[u,d]=(0,v.useState)([]),[f,p]=(0,v.useState)(``),[m,h]=(0,v.useState)([]),g={name:(0,v.useId)(),nameHint:(0,v.useId)(),kind:(0,v.useId)(),command:(0,v.useId)(),args:(0,v.useId)(),url:(0,v.useId)()},_=Q(async()=>{await tn(i===`stdio`?{name:n.trim(),command:o.trim(),args:c.split(`
68
+ `).map(e=>e.trim()).filter(Boolean),env:cb(u)}:{name:n.trim(),url:f.trim(),headers:cb(m)}),await t(),e()});return(0,U.jsxs)(y_,{title:D(`mcpAdd`),size:`m`,onClose:e,footer:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Z,{onClick:e,children:D(`cancel`)}),(0,U.jsxs)(Z,{variant:`primary`,busy:_.busy,disabled:!n.trim()||!(i===`stdio`?o.trim():f.trim()),onClick:()=>void _.run(),children:[(0,U.jsx)(Ih,{}),D(`mcpAdd`)]})]}),children:[(0,U.jsxs)(S_,{label:D(`mcpName`),htmlFor:g.name,children:[(0,U.jsx)(`input`,{id:g.name,className:`input mono-input`,spellCheck:!1,autoComplete:`off`,autoCapitalize:`off`,maxLength:32,"aria-describedby":g.nameHint,value:n,onChange:e=>r(e.target.value)}),(0,U.jsx)(`span`,{className:`hint`,id:g.nameHint,children:D(`mcpNameHint`)})]}),(0,U.jsx)(S_,{label:D(`mcpKind`),labelId:g.kind,children:(0,U.jsx)(p_,{labelledBy:g.kind,value:i,options:[`stdio`,`http`].map(e=>({value:e,label:D(`mcpKind_${e}`),hint:D(`mcpKind_${e}_hint`)})),onChange:e=>a(e)})}),i===`stdio`?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(S_,{label:D(`mcpCommand`),htmlFor:g.command,children:(0,U.jsx)(`input`,{id:g.command,className:`input mono-input`,spellCheck:!1,autoComplete:`off`,autoCapitalize:`off`,placeholder:`npx`,value:o,onChange:e=>s(e.target.value)})}),(0,U.jsx)(S_,{label:D(`mcpArgs`),htmlFor:g.args,children:(0,U.jsx)(`textarea`,{id:g.args,className:`textarea mono-input`,spellCheck:!1,rows:2,placeholder:D(`mcpArgsHint`),value:c,onChange:e=>l(e.target.value)})}),(0,U.jsx)(S_,{label:D(`mcpEnv`),info:D(`mcpEnvHelp`),children:(0,U.jsx)(sb,{pairs:u,onChange:d,addLabel:D(`mcpAddEnv`),namePlaceholder:`API_KEY`})})]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(S_,{label:D(`mcpUrl`),htmlFor:g.url,children:(0,U.jsx)(`input`,{id:g.url,className:`input mono-input`,spellCheck:!1,autoComplete:`off`,autoCapitalize:`off`,inputMode:`url`,placeholder:`https://example.com/mcp`,value:f,onChange:e=>p(e.target.value)})}),(0,U.jsx)(S_,{label:D(`mcpHeaders`),info:D(`mcpHeadersHelp`),children:(0,U.jsx)(sb,{pairs:m,onChange:h,addLabel:D(`mcpAddHeader`),namePlaceholder:`Authorization`})})]}),(0,U.jsx)($,{error:_.error})]})}function db({name:e,onSave:t}){O();let[n,r]=(0,v.useState)(!1),[i,a]=(0,v.useState)(``),o=Q(async()=>{await t(i),a(``),r(!1)});return(0,U.jsxs)(`div`,{className:`mcp-value`,children:[(0,U.jsx)(`code`,{className:`mcp-code`,children:e}),n?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`input`,{className:`input secret-input`,type:`text`,spellCheck:!1,autoComplete:`off`,"data-1p-ignore":`true`,"aria-label":D(`mcpNewValue`,{name:e}),placeholder:D(`mcpNewValue`,{name:e}),value:i,onChange:e=>a(e.target.value)}),(0,U.jsx)(Z,{onClick:()=>r(!1),children:D(`cancel`)}),(0,U.jsxs)(Z,{variant:`primary`,busy:o.busy,onClick:()=>void o.run(),children:[(0,U.jsx)(yg,{}),D(`save`)]})]}):(0,U.jsxs)(Z,{variant:`ghost`,onClick:()=>r(!0),children:[(0,U.jsx)(rg,{}),D(`mcpReenter`)]}),(0,U.jsx)($,{error:o.error})]})}function fb({server:e,onChanged:t,onRemove:n}){O();let[r,i]=(0,v.useState)(!1),a=(0,v.useId)(),o=Q(async n=>{await nn(e.name,{disabled:!n}),await t()}),s=Q(async()=>{await en(e.name),await t()}),c=e.state===`ready`?D(`mcpState_ready`,{n:e.tools.length}):e.state===`error`&&e.error?`${D(`mcpState_error`)}${D(`hintSeparator`)}${e.error}`:D(`mcpState_${e.state}`),l=e.kind===`stdio`?e.envNames:e.headerNames,u=`mcpBuiltin_${e.name}`,d=`mcpBuiltinHelp_${e.name}`;return(0,U.jsxs)(`div`,{className:`mcp-server`,children:[(0,U.jsxs)(`div`,{className:`setting-row mcp-row`,children:[(0,U.jsxs)(`div`,{className:`setting-text`,children:[(0,U.jsxs)(`span`,{className:`setting-label`,children:[e.builtin&&se(u)&&(0,U.jsxs)(U.Fragment,{children:[D(u),` `]}),(0,U.jsx)(`span`,{className:`mcp-code`,children:e.name})]}),e.builtin&&se(d)&&(0,U.jsx)(`span`,{className:`hint`,children:D(d)}),(0,U.jsx)(`span`,{className:`hint`,role:`status`,children:c}),e.state===`sign-in`&&e.signInAt&&!e.disabled&&(0,U.jsx)(`span`,{className:`hint`,children:D(`mcpSignInAt`,{host:e.signInAt})})]}),(0,U.jsxs)(`div`,{className:`setting-control`,children:[e.state===`sign-in`&&!e.disabled&&(0,U.jsxs)(`a`,{className:`btn btn-primary`,href:`/api/mcp/${encodeURIComponent(e.name)}/sign-in`,target:`_blank`,rel:`noopener noreferrer`,children:[(0,U.jsx)(qg,{}),D(`mcpSignIn`)]}),e.signedIn&&(0,U.jsxs)(Z,{busy:s.busy,onClick:()=>void s.run(),children:[(0,U.jsx)(Jg,{}),D(`mcpSignOut`)]}),(0,U.jsxs)(Z,{variant:`ghost`,"aria-expanded":r,"aria-controls":a,onClick:()=>i(!r),children:[(0,U.jsx)(eg,{}),D(`mcpDetails`)]}),(0,U.jsx)(d_,{label:D(`mcpEnabled`),checked:!e.disabled,busy:o.busy,onChange:e=>void o.run(e)}),!e.builtin&&(0,U.jsxs)(Z,{variant:`danger`,onClick:n,children:[(0,U.jsx)(Hg,{}),D(`mcpRemove`)]})]})]}),r&&(0,U.jsxs)(`div`,{className:`mcp-detail`,id:a,children:[(0,U.jsxs)(`div`,{className:`mcp-line`,children:[(0,U.jsx)(`span`,{children:e.package?D(`mcpPackage`):e.kind===`stdio`?D(`mcpCommand`):D(`mcpUrl`)}),(0,U.jsx)(`code`,{className:`mcp-code`,children:e.package??(e.kind===`stdio`?[e.command,...e.args].join(` `):e.url)})]}),(0,U.jsxs)(`div`,{className:`mcp-line`,children:[(0,U.jsx)(`span`,{children:e.kind===`stdio`?D(`mcpEnv`):D(`mcpHeaders`)}),(0,U.jsxs)(`div`,{className:`mcp-values`,children:[l.length===0&&(0,U.jsx)(`span`,{className:`hint`,children:D(`mcpNoValues`)}),l.map(n=>(0,U.jsx)(db,{name:n,onSave:async r=>{await nn(e.name,e.kind===`stdio`?{env:{[n]:r}}:{headers:{[n]:r}}),await t()}},n))]})]}),e.state===`ready`&&(0,U.jsxs)(`div`,{className:`mcp-line`,children:[(0,U.jsx)(`span`,{children:D(`mcpTools`)}),e.tools.length===0?(0,U.jsx)(`span`,{className:`hint`,children:D(`mcpNoTools`)}):(0,U.jsx)(`ul`,{className:`mcp-tools`,children:e.tools.map(e=>(0,U.jsx)(`li`,{children:(0,U.jsx)(`code`,{className:`mcp-code`,children:e})},e))})]}),(0,U.jsx)($,{error:o.error})]}),!r&&(0,U.jsx)($,{error:o.error})]})}function pb({onClose:e}){O();let[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)(null),[a,o]=(0,v.useState)(!1),[s,c]=(0,v.useState)(null),[l,u]=(0,v.useState)(null),d=(0,v.useCallback)(()=>$t().then(e=>{n(e),i(null)},i),[]);return(0,v.useEffect)(()=>{d();let e=setInterval(()=>void d(),2e3);return()=>clearInterval(e)},[d]),(0,U.jsxs)(y_,{title:D(`mcpTitle`),size:`l`,onClose:e,footer:(0,U.jsx)(Z,{onClick:e,children:D(`close`)}),children:[(0,U.jsx)(`p`,{className:`hint`,children:D(`mcpHelp`)}),(t??[]).some(e=>e.builtin)&&(0,U.jsx)(b_,{title:D(`mcpBuiltin`),children:(t??[]).filter(e=>e.builtin).map(e=>(0,U.jsx)(fb,{server:e,onChanged:d,onRemove:()=>{}},e.name))}),(0,U.jsxs)(b_,{title:D(`mcpAdded`),children:[t===null&&!r&&(0,U.jsx)(`p`,{className:`hint setting-empty`,children:D(`loading`)}),t?.filter(e=>!e.builtin).length===0&&(0,U.jsx)(`p`,{className:`hint setting-empty`,children:D(`mcpNone`)}),(t??[]).filter(e=>!e.builtin).map(e=>(0,U.jsx)(fb,{server:e,onChanged:d,onRemove:()=>u(e.name)},e.name))]}),(0,U.jsx)(`div`,{children:(0,U.jsxs)(Z,{onClick:()=>o(!0),children:[(0,U.jsx)(Ih,{}),D(`mcpAdd`)]})}),t&&(0,U.jsx)(b_,{title:D(`mcpPresets`),info:D(`mcpPresetsInfo`),children:Hy.filter(e=>!t.some(t=>t.name===e.id)).map(e=>(0,U.jsxs)(`div`,{className:`setting-row`,children:[(0,U.jsxs)(`div`,{className:`setting-text`,children:[(0,U.jsx)(`span`,{className:`setting-label`,children:e.name}),(0,U.jsxs)(`span`,{className:`hint`,children:[e.publisher,D(`hintSeparator`),D(`mcpPreset_${e.id}`)]})]}),(0,U.jsx)(`div`,{className:`setting-control`,children:(0,U.jsxs)(Z,{onClick:()=>c(e),children:[(0,U.jsx)(Ih,{}),D(`mcpAdd`)]})})]},e.id))}),(0,U.jsx)($,{error:r}),a&&(0,U.jsx)(ub,{onClose:()=>o(!1),onAdded:d}),s&&(0,U.jsx)(lb,{preset:s,onClose:()=>c(null),onAdded:d}),l&&(0,U.jsx)(jv,{title:D(`mcpRemoveTitle`,{name:l}),body:D(`mcpRemoveBody`),confirmLabel:D(`mcpRemove`),onConfirm:async()=>{await rn(l),await d()},onClose:()=>u(null)})]})}function mb({skill:e,reveal:t,onChanged:n}){O();let[r,i]=(0,v.useState)(!1),a=(0,v.useId)(),o=Q(async t=>{await on(e.id,!t),await n()}),s=Q(()=>sn(e.id));return(0,U.jsxs)(`div`,{className:`skill`,children:[(0,U.jsxs)(`div`,{className:`setting-row skill-row`,children:[(0,U.jsxs)(`div`,{className:`setting-text`,children:[(0,U.jsxs)(`span`,{className:`setting-label skill-name`,children:[(0,U.jsx)(`span`,{id:a,children:e.name}),e.problem&&(0,U.jsx)(`span`,{className:`skill-mark`,children:D(`skillUnread`)})]}),e.problem?(0,U.jsx)(`span`,{className:`hint`,children:D(`skillProblem_${e.problem}`)}):e.description?(0,U.jsx)(`button`,{type:`button`,className:`hint skill-description${r?` open`:``}`,"aria-expanded":r,title:r?void 0:e.description,onClick:()=>i(!r),children:e.description}):(0,U.jsx)(`span`,{className:`hint`,children:D(`skillNoDescription`)})]}),(0,U.jsxs)(`div`,{className:`setting-control`,children:[t&&(0,U.jsxs)(Z,{variant:`ghost`,busy:s.busy,onClick:()=>void s.run(),children:[(0,U.jsx)(Bh,{}),D(t===`finder`?`skillRevealFinder`:`skillRevealFiles`)]}),!e.problem&&(0,U.jsx)(d_,{checked:!e.disabled,busy:o.busy,labelledBy:a,onChange:e=>void o.run(e)})]})]}),(0,U.jsx)($,{error:o.error??s.error})]})}function hb({onClose:e}){O();let[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)(null),a=(0,v.useCallback)(()=>an().then(e=>{n(e),i(null)},i),[]);(0,v.useEffect)(()=>{a()},[a]);let o=t?.folders.find(e=>e.source.kind===`global`)?.paths??[],s=e=>(t?.items??[]).filter(t=>e.kind===`global`?t.source.kind===`global`:t.source.kind===`workspace`&&t.source.path===e.path);return(0,U.jsxs)(y_,{title:D(`skillsTitle`),size:`l`,onClose:e,footer:(0,U.jsx)(Z,{onClick:e,children:D(`close`)}),children:[t&&(0,U.jsx)(`p`,{className:`hint`,children:D(`skillsHelp`,{global:o.join(D(`listSeparator`))})}),t===null&&!r&&(0,U.jsx)(`p`,{className:`hint`,children:D(`loading`)}),(t?.folders??[]).map(({source:e})=>{let n=s(e);return e.kind===`workspace`&&n.length===0?null:(0,U.jsxs)(b_,{title:e.kind===`global`?D(`skillsGlobal`):`${e.name}${D(`hintSeparator`)}${e.path}`,children:[n.length===0&&(0,U.jsx)(`p`,{className:`hint setting-empty`,children:D(`skillsNone`,{folder:o[0]??``})}),n.map(e=>(0,U.jsx)(mb,{skill:e,reveal:t?.reveal??null,onChanged:a},e.id))]},e.kind===`global`?`global`:e.path)}),(0,U.jsx)($,{error:r})]})}function gb({onClose:e}){O();let[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)(null);(0,v.useEffect)(()=>{pn().then(n,i)},[]);let a=Q(async e=>{n(await mn(e))}),o=(0,v.useId)(),s=(0,v.useId)(),c=t?.startAtLogin,l=t?.launcher,u=(e,t,n,r)=>n&&!n.supported?t:n?.on&&r?`${e} ${D(`writtenTo`,{path:r})}`:e;return(0,U.jsxs)(y_,{title:D(`systemTitle`),size:`l`,onClose:e,footer:(0,U.jsx)(Z,{onClick:e,children:D(`close`)}),children:[(0,U.jsxs)(b_,{title:D(`systemTitle`),children:[(0,U.jsx)(x_,{label:D(`startAtLogin`),hint:u(D(`startAtLoginHint`),D(`startAtLoginUnsupported`),c,c?.file),labelId:o,children:(0,U.jsx)(d_,{checked:c?.on??!1,disabled:!c?.supported,busy:a.busy,labelledBy:o,onChange:e=>void a.run({startAtLogin:e})})}),(0,U.jsx)(x_,{label:D(`launcher`),hint:u(D(`launcherHint`),D(`launcherUnsupported`),l,l?.path),labelId:s,children:(0,U.jsx)(d_,{checked:l?.on??!1,disabled:!l?.supported,busy:a.busy,labelledBy:s,onChange:e=>void a.run({launcher:e})})})]}),(0,U.jsx)($,{error:r??a.error})]})}var _b={waiting:[`greeting`,`stamp`,`pointing`,`halt`,`pout`],error:[`sorry`,`bow`,`teary`],review:[`gift`,`giftbox`,`proud`],working:[`thinking`,`writing`,`typing`,`clipboard`,`magnifier`,`books`,`fired-up`],clear:[`happy`,`tea`,`stretch`,`peek`,`branch`],night:[`sleepy`,`nap`,`pajamas`,`dozing`]},vb=6e5;function yb(e,t){return e[Math.floor(t/vb)%e.length]}function bb(e){return e>=5&&e<12?`morning`:e>=12&&e<18?`afternoon`:e>=18&&e<23?`evening`:null}function xb(e){return e>=23||e<5}function Sb(e){let{now:t,hour:n}=e,r=t-e.openedAt<6e4?bb(n):null;if(e.waiting>0)return{pose:r?`greeting`:yb(_b.waiting,t),greeting:r,line:{kind:`waiting`,count:e.waiting},target:{kind:`center`}};let i=[...e.sessions].filter(e=>e.archivedAt===null).sort((e,t)=>t.updatedAt-e.updatedAt);for(let e of[`error`,`review`,`working`]){let n=e===`review`?`needs_review`:e,a=i.filter(e=>e.status===n),o=a.length===1?a[0]:null;if(a.length>0)return{pose:yb(_b[e],t),greeting:r,line:{kind:e,count:a.length,name:o?.name??null},target:o?{kind:`session`,id:o.id}:null}}let a=xb(n);return{pose:a?yb(_b.night,t):r?`greeting`:yb(_b.clear,t),greeting:r,line:{kind:`clear`,night:a},target:null}}var Cb=Date.now();function wb(e){switch(e.kind){case`waiting`:return e.count===1?D(`companion_waiting_one`):D(`companion_waiting`,{n:e.count});case`clear`:return D(e.night?`companion_night`:`companion_clear`);default:return e.name?D(`companion_${e.kind}_named`,{name:e.name}):D(`companion_${e.kind}`,{n:e.count})}}function Tb(e){let t=wb(e.line);return e.greeting?D(`companion_greet`,{greeting:D(`companion_${e.greeting}`),line:t}):t}function Eb(){O();let e=N(e=>e.settings?.mascot!==!1),t=N(e=>e.sessions),n=N(e=>e.center),r=N(e=>e.page),i=N(e=>e.selectedId),a=C_(15e3);if(!e)return null;let o=Sb({sessions:Object.values(t),waiting:ve(n),now:a,hour:new Date(a).getHours(),openedAt:Cb}),s=Tb(o),c=o.target?.kind===`center`&&r===`center`||o.target?.kind===`session`&&r===null&&o.target.id===i?null:o.target,l=r===null&&i===null&&o.pose===`greeting`?`happy`:o.pose;return(0,U.jsxs)(`div`,{className:`companion`,children:[(0,U.jsx)(Zg,{pose:l,height:76,className:`companion-mascot`},l),c?(0,U.jsx)(`button`,{type:`button`,className:`companion-bubble companion-go`,onClick:()=>{M({drawerOpen:!1}),c?.kind===`center`?pt(`pending`):c?.kind===`session`&&qe(c.id)},children:s}):(0,U.jsx)(`p`,{className:`companion-bubble`,"aria-hidden":`true`,children:s})]})}function Db(){M({drawerOpen:!1})}function Ob(){let e=`(max-width: 760px)`,[t,n]=(0,v.useState)(()=>window.matchMedia(e).matches);return(0,v.useEffect)(()=>{let t=window.matchMedia(e),r=()=>n(t.matches);return t.addEventListener(`change`,r),()=>t.removeEventListener(`change`,r)},[]),t}function kb({icon:e,value:t,onSave:n,onDone:r}){O();let[i,a]=(0,v.useState)(t),o=(0,v.useRef)(null),s=(0,v.useRef)(!1);(0,v.useEffect)(()=>{o.current?.focus(),o.current?.select()},[]);let c=Q(async()=>{let e=i.trim();e&&e!==t&&await n(e),r()});return(0,U.jsxs)(`div`,{className:`session-row session-row-editing`,children:[(0,U.jsx)(`span`,{className:`session-icon`,"aria-hidden":`true`,children:e}),(0,U.jsx)(`input`,{ref:o,className:`row-input`,value:i,maxLength:60,"aria-label":D(`rename`),"aria-invalid":c.error?`true`:void 0,onChange:e=>a(e.target.value),onKeyDown:e=>{e.key===`Escape`&&(s.current=!0,r()),e.key===`Enter`&&!e.nativeEvent.isComposing&&(e.preventDefault(),c.run())},onBlur:()=>{!s.current&&!c.busy&&c.run()}}),c.error!==null&&c.error!==void 0&&(0,U.jsx)(`span`,{className:`field-error row-error`,role:`alert`,children:u_(c.error)})]})}var Ab=`application/x-yew-session`;function jb(e){let[t,n]=(0,v.useState)(!1),r=Q(e),i=e=>e.dataTransfer.types.includes(Ab);return{error:r.error,props:{"data-drop":t?`true`:void 0,onDragOver:e=>{i(e)&&(e.preventDefault(),e.dataTransfer.dropEffect=`move`,t||n(!0))},onDragLeave:e=>{let t=e.relatedTarget;t&&e.currentTarget.contains(t)||n(!1)},onDrop:e=>{if(!i(e))return;e.preventDefault(),n(!1);let t=e.dataTransfer.getData(Ab);t&&r.run(t)}}}}function Mb({workspace:e,all:t}){O();let[n,r]=(0,v.useState)(!1),i=jb(t=>tt(t,{cwd:e.path}));return(0,U.jsxs)(`div`,{className:`session-item`,...i.props,children:[n?(0,U.jsx)(kb,{icon:(0,U.jsx)(Bh,{}),value:e.name,onSave:n=>xn({workspaces:t.map(t=>t.id===e.id?{...t,name:n}:t)}),onDone:()=>r(!1)}):(0,U.jsxs)(`button`,{type:`button`,className:`session-row`,title:e.path,onClick:()=>{Db(),M({homeFolder:e.path}),qe(null)},onDoubleClick:()=>r(!0),children:[(0,U.jsx)(`span`,{className:`session-icon`,"aria-hidden":`true`,children:(0,U.jsx)(Bh,{})}),(0,U.jsxs)(`span`,{className:`session-name`,children:[e.name,(0,U.jsxs)(`span`,{className:`visually-hidden`,children:[` · `,nv(e.path)]})]})]}),!n&&(0,U.jsx)(`span`,{className:`session-row-menu`,children:(0,U.jsx)(v_,{label:`${e.name} – ${D(`more`)}`,items:[{label:D(`rename`),onSelect:()=>r(!0)},{label:D(`removeFromList`),onSelect:()=>void xn({workspaces:t.filter(t=>t.id!==e.id)})}]})}),i.error!==null&&i.error!==void 0&&(0,U.jsx)(`div`,{className:`row-error`,children:(0,U.jsx)($,{error:i.error})})]})}function Nb({group:e,count:t,active:n,onNewSession:r,onDelete:i}){O();let[a,o]=(0,v.useState)(!1),s=jb(t=>tt(t,{groupId:e.id}));return(0,U.jsxs)(`div`,{className:`session-item`,...s.props,children:[a?(0,U.jsx)(kb,{icon:(0,U.jsx)(hg,{}),value:e.name,onSave:t=>ut(e.id,t),onDone:()=>o(!1)}):(0,U.jsxs)(`button`,{type:`button`,className:`session-row`,"aria-pressed":n,onClick:()=>M({teamFilter:n?null:e.id}),onDoubleClick:()=>o(!0),children:[(0,U.jsx)(`span`,{className:`session-icon`,"aria-hidden":`true`,children:(0,U.jsx)(hg,{})}),(0,U.jsxs)(`span`,{className:`session-name`,children:[e.name,(0,U.jsxs)(`span`,{className:`visually-hidden`,children:[` · `,D(`teamCount`,{n:t})]})]}),(0,U.jsx)(`span`,{className:`session-time`,"aria-hidden":`true`,children:t})]}),!a&&(0,U.jsx)(`span`,{className:`session-row-menu`,children:(0,U.jsx)(v_,{label:`${e.name} – ${D(`more`)}`,items:[{label:D(`newSessionHere`),onSelect:r},{label:D(`rename`),onSelect:()=>o(!0)},{label:D(`deleteGroup`),danger:!0,onSelect:i}]})}),s.error!==null&&s.error!==void 0&&(0,U.jsx)(`div`,{className:`row-error`,children:(0,U.jsx)($,{error:s.error})})]})}function Pb(){O();let e=N(e=>e.groups),t=N(e=>e.sessions),n=N(e=>e.teamFilter),[r,i]=(0,v.useState)(null),a=new Map;for(let e of Object.values(t))e.archivedAt===null&&e.groupId&&a.set(e.groupId,(a.get(e.groupId)??0)+1);return(0,U.jsxs)(`section`,{"aria-label":D(`teams`),children:[(0,U.jsxs)(`div`,{className:`group-heading`,children:[(0,U.jsx)(`span`,{children:D(`teams`)}),(0,U.jsx)(Z,{variant:`icon`,className:`heading-add`,"aria-label":D(`newGroup`),title:D(`newGroup`),onClick:()=>i({kind:`create`}),children:(0,U.jsx)(gg,{})})]}),e.length===0?(0,U.jsx)(`p`,{className:`empty-box`,children:D(`noTeams`)}):e.map(e=>(0,U.jsx)(Nb,{group:e,count:a.get(e.id)??0,active:n===e.id,onNewSession:()=>i({kind:`session`,groupId:e.id}),onDelete:()=>i({kind:`delete`,group:e})},e.id)),r?.kind===`create`&&(0,U.jsx)(Av,{onClose:()=>i(null)}),r?.kind===`session`&&(0,U.jsx)(Dv,{groupId:r.groupId,onClose:()=>i(null)}),r?.kind===`delete`&&(0,U.jsx)(jv,{title:D(`deleteGroup`),body:D(`deleteGroupBody`),confirmLabel:D(`delete`),onConfirm:async()=>{await dt(r.group.id),n===r.group.id&&M({teamFilter:null})},onClose:()=>i(null)})]})}function Fb(){O();let e=tv(),[t,n]=(0,v.useState)(!1);return(0,U.jsxs)(`section`,{"aria-label":D(`workspaces`),children:[(0,U.jsxs)(`div`,{className:`group-heading`,children:[(0,U.jsx)(`span`,{children:D(`workspaces`)}),(0,U.jsx)(Z,{variant:`icon`,className:`heading-add`,"aria-label":D(`newWorkspace`),title:D(`newWorkspace`),onClick:()=>n(!0),children:(0,U.jsx)(_g,{})})]}),e.length===0?(0,U.jsx)(`p`,{className:`empty-box`,children:D(`noWorkspaces`)}):e.map(t=>(0,U.jsx)(Mb,{workspace:t,all:e},t.id)),t&&(0,U.jsx)(av,{onClose:()=>n(!1),onCreated:e=>{Db(),M({homeFolder:e}),qe(null)}})]})}function Ib({session:e,selected:t,groups:n,now:r,blocked:i=!1,depth:a=0}){O();let o=N(t=>t.settings?.mainSessionId===e.id),s=n.find(t=>t.id===e.groupId)?.name??null,[c,l]=(0,v.useState)(!1),[u,d]=(0,v.useState)(!1),f=Q(()=>nt(e)),p=Q(()=>Ze(e.id)),[m,h]=(0,v.useState)(!1),g=[...n.map(t=>({id:t.id,label:t.name,checked:t.id===e.groupId,onSelect:()=>void tt(e.id,{groupId:t.id})})),...n.length>0?[{separator:!0,id:`teams-end`}]:[],...e.groupId?[{label:D(`removeFromGroup`),onSelect:()=>void tt(e.id,{groupId:null})}]:[],{label:D(`newTeamEllipsis`),onSelect:()=>h(!0)}];return(0,U.jsxs)(`div`,{className:`session-item`,style:a>0?{"--depth":Math.min(a,3)}:void 0,"data-child":a>0?`true`:void 0,children:[u?(0,U.jsx)(kb,{icon:e.cwd?(0,U.jsx)(Uh,{}):(0,U.jsx)(Gh,{}),value:e.name,onSave:t=>tt(e.id,{name:t}),onDone:()=>d(!1)}):(0,U.jsxs)(`button`,{type:`button`,className:`session-row`,"aria-current":t?`true`:void 0,draggable:!0,onDragStart:t=>{t.dataTransfer.setData(Ab,e.id),t.dataTransfer.effectAllowed=`move`},onClick:()=>{Db(),qe(e.id)},onDoubleClick:()=>d(!0),children:[(0,U.jsx)(`span`,{className:`session-icon`,"aria-hidden":`true`,children:e.cwd?(0,U.jsx)(Uh,{}):(0,U.jsx)(Gh,{})}),(0,U.jsxs)(`span`,{className:`session-name`,children:[e.name,(0,U.jsxs)(`span`,{className:`visually-hidden`,children:[` `,`· `,e.cwd?D(`mode_code`):D(`mode_chat`),` ·`,` `,D(`status_${i&&e.status===`idle`?`waiting`:e.status}`),i&&![`idle`,`waiting`].includes(e.status)?` · ${D(`status_waiting`)}`:``,o?` · ${D(`mainConversation`)}`:``,s?` · ${s}`:``,e.pinned?` · ${D(`pinned`)}`:``,e.unread>0?` · ${D(`unread`,{n:e.unread})}`:``]})]}),e.pinned&&(0,U.jsx)(Zh,{}),e.status===`idle`?i?(0,U.jsx)(`span`,{className:`dot row-dot dot-waiting`,"aria-hidden":`true`}):e.unread>0?(0,U.jsx)(`span`,{className:`unread-count`,"aria-hidden":`true`,children:e.unread}):(0,U.jsx)(`span`,{className:`session-time`,"aria-hidden":`true`,children:fe(e.lastActivityAt,r)}):(0,U.jsx)(`span`,{className:`dot row-dot dot-${e.status}`,"aria-hidden":`true`})]}),!u&&(0,U.jsx)(`span`,{className:`session-row-menu`,children:(0,U.jsx)(v_,{label:`${e.name} – ${D(`more`)}`,items:[{label:e.pinned?D(`unpin`):D(`pin`),icon:(0,U.jsx)(Eg,{}),onSelect:()=>void tt(e.id,{pinned:!e.pinned})},{label:D(`rename`),icon:(0,U.jsx)(Dg,{}),onSelect:()=>d(!0)},{label:D(`duplicate`),icon:(0,U.jsx)(Og,{}),onSelect:()=>void p.run()},{separator:!0,id:`role`},...e.archivedAt===null?[{label:D(o?`unsetMain`:`setMain`),icon:(0,U.jsx)(mg,{}),onSelect:()=>void It(o?null:e.id)}]:[],{label:D(`sessionSettings`),icon:(0,U.jsx)(og,{}),onSelect:()=>l(!0)},{separator:!0,id:`move`},{label:D(`moveToTeam`),icon:(0,U.jsx)(hg,{}),items:g},{label:D(`exportAs`),icon:(0,U.jsx)(kg,{}),items:[{label:D(`exportMarkdown`),onSelect:()=>void f.run()}]},{separator:!0,id:`archive`},e.archivedAt?{label:D(`unarchive`),icon:(0,U.jsx)(Ag,{}),onSelect:()=>void tt(e.id,{archived:!1})}:{label:D(`archive`),icon:(0,U.jsx)(Ag,{}),onSelect:()=>void tt(e.id,{archived:!0})}]})}),c&&(0,U.jsx)(Ov,{session:e,onClose:()=>l(!1)}),m&&(0,U.jsx)(Av,{onClose:()=>h(!1),onCreated:t=>tt(e.id,{groupId:t.id})}),p.error!==null&&p.error!==void 0&&(0,U.jsx)(`div`,{className:`row-error`,children:(0,U.jsx)($,{error:p.error})}),f.busy&&(0,U.jsx)(`p`,{className:`hint row-error`,role:`status`,children:D(`exporting`)}),f.error!==null&&(0,U.jsx)(`div`,{className:`row-error`,children:(0,U.jsx)($,{error:f.error})})]})}function Lb(e){return[...e].sort((e,t)=>Number(t.pinned)-Number(e.pinned)||t.lastActivityAt-e.lastActivityAt)}function Rb(e){let t=new Set(e.map(e=>e.id)),n=new Map;for(let r of e)r.parentId&&t.has(r.parentId)&&n.set(r.parentId,[...n.get(r.parentId)??[],r]);let r=[],i=(e,t)=>{r.push({session:e,depth:t});let a=(n.get(e.id)??[]).sort((e,t)=>e.createdAt-t.createdAt);for(let e of a)i(e,t+1)};for(let n of e)n.parentId&&t.has(n.parentId)||i(n,0);return r}function zb(){O();let e=N(e=>e.settings?.mainSessionId??null),t=N(t=>e?t.sessions[e]?.name??null:null),n=N(e=>e.page?null:e.selectedId),r=N(e=>ve(e.center)),i=N(e=>e.page===`center`),a=N(e=>e.page===`schedules`),o=N(e=>e.page===`artifacts`),s=N(e=>e.page===`usage`),c=N(e=>e.page===`map`);return(0,U.jsxs)(U.Fragment,{children:[e&&t&&(0,U.jsxs)(`button`,{type:`button`,className:`nav-row`,"aria-current":n===e?`page`:void 0,onClick:()=>{Db(),qe(e)},children:[(0,U.jsx)(mg,{}),(0,U.jsx)(`span`,{className:`nav-label`,children:D(`mainConversation`)}),(0,U.jsx)(`span`,{className:`nav-detail`,children:t})]}),(0,U.jsxs)(`button`,{type:`button`,className:`nav-row`,"aria-current":i?`page`:void 0,onClick:()=>pt(`pending`),children:[(0,U.jsx)(lg,{}),(0,U.jsx)(`span`,{className:`nav-label`,children:D(`approvalCenter`)}),r>0&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`span`,{className:`badge`,"aria-hidden":`true`,children:r}),(0,U.jsx)(`span`,{className:`visually-hidden`,children:D(`approvalCount`,{n:r})})]})]}),(0,U.jsxs)(`button`,{type:`button`,className:`nav-row`,"aria-current":a?`page`:void 0,onClick:()=>mt(),children:[(0,U.jsx)(ug,{}),(0,U.jsx)(`span`,{className:`nav-label`,children:D(`schedules`)})]}),(0,U.jsxs)(`button`,{type:`button`,className:`nav-row`,"aria-current":o?`page`:void 0,onClick:()=>ht(),children:[(0,U.jsx)(dg,{}),(0,U.jsx)(`span`,{className:`nav-label`,children:D(`artifacts`)})]}),(0,U.jsxs)(`button`,{type:`button`,className:`nav-row`,"aria-current":c?`page`:void 0,onClick:()=>_t(),children:[(0,U.jsx)(pg,{}),(0,U.jsx)(`span`,{className:`nav-label`,children:D(`map`)})]}),(0,U.jsxs)(`button`,{type:`button`,className:`nav-row`,"aria-current":s?`page`:void 0,onClick:()=>gt(),children:[(0,U.jsx)(fg,{}),(0,U.jsx)(`span`,{className:`nav-label`,children:D(`usage`)})]})]})}function Bb(){O();let[e,t]=(0,v.useState)(``),[n,r]=(0,v.useState)(null),i=N(e=>e.sessions),a=N(e=>e.groups),o=tv(),s=e.trim().toLowerCase(),c=s?a.filter(e=>e.name.toLowerCase().includes(s)):[],l=s?o.filter(e=>e.name.toLowerCase().includes(s)||e.path.toLowerCase().includes(s)):[],u=(0,v.useRef)(null);(0,v.useEffect)(()=>{let t=e.trim();if(!t){r(null);return}let n=setTimeout(()=>{x(`GET`,`/api/search?q=${encodeURIComponent(t)}&limit=20`).then(r,()=>r(null))},200);return()=>clearTimeout(n)},[e]),(0,v.useEffect)(()=>{let e=e=>{u.current?.contains(e.target)||r(null)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[]);let d=()=>{t(``),r(null),Db()},f=e=>{d(),qe(e)};return(0,U.jsxs)(`div`,{className:`sidebar-search`,ref:u,children:[(0,U.jsxs)(`div`,{className:`search-field`,children:[(0,U.jsx)(Jh,{}),(0,U.jsx)(`input`,{className:`input`,type:`search`,placeholder:D(`search`),"aria-label":D(`search`),value:e,onChange:e=>t(e.target.value),onKeyDown:e=>e.key===`Escape`&&t(``)})]}),n&&(0,U.jsxs)(`section`,{className:`search-results`,"aria-label":D(`searchResults`),children:[n.sessions.length+n.hits.length+c.length+l.length===0&&(0,U.jsx)(`p`,{className:`hint`,children:D(`noResults`)}),c.map(e=>(0,U.jsxs)(`button`,{type:`button`,className:`search-hit search-hit-row`,onClick:()=>{d(),M({teamFilter:e.id})},children:[(0,U.jsx)(hg,{}),(0,U.jsx)(`strong`,{children:e.name}),(0,U.jsx)(`span`,{className:`hint`,children:D(`teams`)})]},e.id)),l.map(e=>(0,U.jsxs)(`button`,{type:`button`,className:`search-hit search-hit-row`,title:e.path,onClick:()=>{d(),M({homeFolder:e.path}),qe(null)},children:[(0,U.jsx)(Bh,{}),(0,U.jsx)(`strong`,{children:e.name}),(0,U.jsx)(`span`,{className:`hint`,children:nv(e.path)})]},e.id)),n.sessions.map(e=>(0,U.jsx)(`button`,{type:`button`,className:`search-hit`,onClick:()=>f(e.id),children:(0,U.jsx)(`strong`,{children:e.name})},e.id)),n.hits.map(e=>(0,U.jsxs)(`button`,{type:`button`,className:`search-hit`,onClick:()=>f(e.sessionId),children:[(0,U.jsx)(`span`,{className:`hint`,children:i[e.sessionId]?.name??``}),(0,U.jsx)(`br`,{}),(0,U.jsx)(ip,{text:e.snippet})]},e.entryId))]})]})}function Vb(){O();let e=N(e=>e.settings?.mainSessionId??null),t=N(t=>e?!!t.sessions[e]:!1),n=N(e=>ve(e.center)),r=N(e=>e.page===`center`),i=N(e=>e.page===`schedules`),a=N(e=>e.page===`artifacts`),o=N(e=>e.page===`usage`),s=N(e=>e.page===`map`),[c,l]=(0,v.useState)(null);return(0,U.jsxs)(`nav`,{className:`rail`,"aria-label":D(`sessions`),children:[(0,U.jsxs)(`button`,{type:`button`,className:`rail-brand`,"aria-label":D(`expandSidebar`),title:D(`expandSidebar`),onClick:()=>xe(!1),children:[(0,U.jsx)(`span`,{className:`rail-mark`,children:(0,U.jsx)(Rg,{size:22})}),(0,U.jsx)(`span`,{className:`rail-open`,children:(0,U.jsx)(Ng,{})})]}),e&&t&&(0,U.jsx)(Z,{variant:`icon`,"aria-label":D(`mainConversation`),title:D(`mainConversation`),onClick:()=>void qe(e),children:(0,U.jsx)(mg,{})}),(0,U.jsxs)(Z,{variant:`icon`,className:`rail-center`,"aria-label":n>0?`${D(`approvalCenter`)} · ${D(`approvalCount`,{n})}`:D(`approvalCenter`),title:D(`approvalCenter`),"aria-current":r?`page`:void 0,onClick:()=>pt(`pending`),children:[(0,U.jsx)(lg,{}),n>0&&(0,U.jsx)(`span`,{className:`rail-badge`,"aria-hidden":`true`,children:n})]}),(0,U.jsx)(Z,{variant:`icon`,"aria-label":D(`schedules`),title:D(`schedules`),"aria-current":i?`page`:void 0,onClick:()=>mt(),children:(0,U.jsx)(ug,{})}),(0,U.jsx)(Z,{variant:`icon`,"aria-label":D(`artifacts`),title:D(`artifacts`),"aria-current":a?`page`:void 0,onClick:()=>ht(),children:(0,U.jsx)(dg,{})}),(0,U.jsx)(Z,{variant:`icon`,"aria-label":D(`map`),title:D(`map`),"aria-current":s?`page`:void 0,onClick:()=>_t(),children:(0,U.jsx)(pg,{})}),(0,U.jsx)(Z,{variant:`icon`,"aria-label":D(`usage`),title:D(`usage`),"aria-current":o?`page`:void 0,onClick:()=>gt(),children:(0,U.jsx)(fg,{})}),(0,U.jsx)(Z,{variant:`icon`,"aria-label":D(`search`),title:D(`search`),onClick:()=>{xe(!1),requestAnimationFrame(()=>document.querySelector(`.sidebar-search input`)?.focus())},children:(0,U.jsx)(Jh,{})}),(0,U.jsx)(Z,{variant:`icon`,"aria-label":D(`newGroup`),title:D(`newGroup`),onClick:()=>l(`team`),children:(0,U.jsx)(gg,{})}),(0,U.jsx)(Z,{variant:`icon`,"aria-label":D(`newWorkspace`),title:D(`newWorkspace`),onClick:()=>l(`workspace`),children:(0,U.jsx)(_g,{})}),(0,U.jsx)(Z,{variant:`icon`,"aria-label":D(`newSession`),title:D(`newSession`),onClick:()=>void qe(null),children:(0,U.jsx)(ng,{})}),(0,U.jsx)(`span`,{className:`rail-spacer`}),(0,U.jsx)(nb,{variant:`icon`}),c===`team`&&(0,U.jsx)(Av,{onClose:()=>l(null)}),c===`workspace`&&(0,U.jsx)(av,{onClose:()=>l(null),onCreated:e=>{M({homeFolder:e}),qe(null)}})]})}function Hb(){O();let e=Ob(),t=N(e=>e.sessions),n=N(e=>e.groups),r=N(e=>e.page?null:e.selectedId),i=N(e=>e.showArchived),a=N(e=>e.hasArchived),o=N(e=>e.teamFilter),s=C_(),c=N(e=>e.center),l=o_(Object.values(c.approvals),Object.values(c.cards)),[u,d]=(0,v.useState)(null),f=n.some(e=>e.id===o)?o:null,p=n.find(e=>e.id===f)?.name??null,m=Object.values(t),h=Lb(m.filter(e=>e.archivedAt!==null)),g=Lb(m.filter(e=>e.archivedAt===null&&(f===null||e.groupId===f))),_=r,y=(e,t=0)=>(0,U.jsx)(Ib,{session:e,selected:e.id===_,groups:n,now:s,blocked:l.has(e.id),depth:t},e.id);return(0,U.jsxs)(`nav`,{className:`sidebar`,"aria-label":D(`sessions`),children:[(0,U.jsxs)(`div`,{className:`sidebar-top`,children:[(0,U.jsxs)(`button`,{type:`button`,className:`lockup lockup-button`,"aria-label":`${D(`lockupName`)},${D(`goHome`)}`,title:D(`goHome`),onClick:()=>{Db(),qe(null)},children:[(0,U.jsx)(Rg,{className:`lockup-mark`,size:22}),(0,U.jsxs)(`span`,{className:`lockup-word`,children:[(0,U.jsx)(Vg,{}),(0,U.jsx)(`img`,{className:`lockup-tenon`,src:`/icons/tenon-mark.svg`,alt:``,width:14,height:14})]})]}),e?(0,U.jsx)(Z,{variant:`icon`,"aria-label":D(`closeSidebar`),title:D(`closeSidebar`),onClick:Db,children:(0,U.jsx)(tg,{})}):(0,U.jsx)(Z,{variant:`icon`,"aria-label":D(`collapseSidebar`),title:D(`collapseSidebar`),onClick:()=>xe(!0),children:(0,U.jsx)(Mg,{})})]}),(0,U.jsxs)(`div`,{className:`sidebar-nav`,children:[(0,U.jsx)(zb,{}),(0,U.jsx)(Bb,{})]}),(0,U.jsxs)(`div`,{className:`sidebar-list`,children:[(0,U.jsx)(Pb,{}),(0,U.jsx)(Fb,{}),(0,U.jsxs)(`section`,{"aria-label":p?`${D(`sessions`)} · ${p}`:D(`sessions`),children:[(0,U.jsxs)(`div`,{className:`group-heading`,children:[(0,U.jsxs)(`span`,{className:`heading-text`,children:[D(`sessions`),p&&(0,U.jsxs)(`span`,{className:`heading-filter`,children:[` · `,p]})]}),f&&(0,U.jsx)(Z,{variant:`icon`,className:`heading-add`,"aria-label":D(`showAllSessions`),title:D(`showAllSessions`),onClick:()=>M({teamFilter:null}),children:(0,U.jsx)(tg,{})}),(0,U.jsx)(Z,{variant:`icon`,className:`heading-add`,"aria-label":D(f?`newSessionHere`:`newSession`),title:D(f?`newSessionHere`:`newSession`),onClick:()=>{f?d(f):(Db(),qe(null))},children:(0,U.jsx)(ng,{})})]}),g.length===0?(0,U.jsx)(`p`,{className:`empty-box`,children:D(f?`emptyGroup`:`emptySidebar`)}):(e=>Rb(e).map(({session:e,depth:t})=>y(e,t)))(g)]}),a&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Z,{variant:`ghost`,className:`archived-toggle`,onClick:()=>void ct(!i),children:D(i?`hideArchived`:`showArchived`)}),i&&h.map(e=>y(e))]})]}),(0,U.jsxs)(`div`,{className:`sidebar-bottom`,children:[(0,U.jsx)(Eb,{}),(0,U.jsx)(nb,{variant:`row`})]}),u&&(0,U.jsx)(Dv,{groupId:u,onClose:()=>d(null)})]})}var Ub=30,Wb=200,Gb={top:14,right:8,bottom:26,left:44};function Kb(e,t=!1){let[n,r,i]=e.split(`-`).map(Number);return new Intl.DateTimeFormat(oe()===`zh`?`zh-CN`:`en-US`,{month:oe()===`zh`?`long`:`short`,day:`numeric`,...t?{weekday:`short`}:{}}).format(new Date(n??0,(r??1)-1,i??1))}function qb(e){if(e<=0)return 1;let t=10**Math.floor(Math.log10(e)),n=[1,2,5,10].find(n=>n*t>=e*(1-1e-9))??10;return Math.max(.01,n*t)}function Jb(e,t){return new Intl.NumberFormat(oe()===`zh`?`zh-CN`:`en-US`,{maximumFractionDigits:t<.1?3:2}).format(e)}function Yb({days:e,budget:t,selected:n,onSelect:r}){let i=(0,v.useRef)(null),[a,o]=(0,v.useState)(640);(0,v.useLayoutEffect)(()=>{let e=i.current;if(!e)return;o(e.clientWidth);let t=new ResizeObserver(()=>o(e.clientWidth));return t.observe(e),()=>t.disconnect()},[]);let s=qb(Math.max(0,...e.map(e=>e.cost))),c=Math.max(1,a-Gb.left-Gb.right),l=Wb-Gb.top-Gb.bottom,u=Gb.top+l,d=e=>Gb.top+(1-e/s)*l,f=c/e.length,p=Math.max(1,Math.min(f-1,f*.7)),m=e.length-1,h=Math.floor(m/2),g=[[0,`start`,Gb.left],[h,`middle`,Gb.left+f*(h+.5)],[m,`end`,Gb.left+c]].filter(([e,t])=>t===`start`?!0:t===`end`?m>0:e>0&&e<m),_=t!==null&&t<=s?t:null;return(0,U.jsxs)(`div`,{className:`usage-chart`,ref:i,style:{height:Wb},children:[(0,U.jsx)(`div`,{className:`usage-hits`,style:{left:Gb.left,width:c,top:Gb.top,height:l+6},children:e.map(e=>(0,U.jsx)(`button`,{type:`button`,className:`usage-hit`,"aria-pressed":e.day===n,"aria-label":D(`usageBar`,{day:Kb(e.day),n:ue(e.cost)}),title:D(`usageBar`,{day:Kb(e.day),n:ue(e.cost)}),onClick:()=>r(e.day)},e.day))}),(0,U.jsxs)(`svg`,{className:`usage-svg`,width:a,height:Wb,"aria-hidden":`true`,children:[[s,s/2].map(e=>(0,U.jsx)(`line`,{className:`chart-grid`,x1:Gb.left,x2:Gb.left+c,y1:d(e),y2:d(e)},e)),[s,s/2,0].map(e=>(0,U.jsx)(`text`,{className:`chart-tick`,x:Gb.left-8,y:d(e)+4,textAnchor:`end`,children:Jb(e,s)},e)),e.map((e,t)=>{let r=e.cost>0?Math.max(1,u-d(e.cost)):0,i=Gb.left+f*t+(f-p)/2,a=e.day===n;return(0,U.jsxs)(`g`,{children:[r>0&&(0,U.jsx)(`rect`,{className:`usage-bar${a?` usage-bar-on`:``}`,x:i,y:u-r,width:p,height:r}),a&&(0,U.jsx)(`rect`,{className:`usage-bar-on`,x:i,y:u+3,width:p,height:2})]},e.day)}),(0,U.jsx)(`line`,{className:`usage-base`,x1:Gb.left,x2:Gb.left+c,y1:u,y2:u}),_!==null&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`line`,{className:`usage-limit`,x1:Gb.left,x2:Gb.left+c,y1:d(_),y2:d(_)}),(0,U.jsx)(`text`,{className:`chart-tick usage-limit-label`,x:Gb.left+c,y:d(_)-4,textAnchor:`end`,children:D(`usageLimitLine`)})]}),g.map(([t,n,r])=>(0,U.jsx)(`text`,{className:`chart-tick`,x:r,y:194,textAnchor:n,children:Kb(e[t]?.day??``)},n))]})]})}function Xb({spent:e,budget:t}){let n=t===null?0:t-e;return(0,U.jsxs)(`section`,{className:`usage-today`,children:[(0,U.jsxs)(`div`,{className:`usage-figure`,children:[(0,U.jsx)(`span`,{className:`hint`,children:D(`usageToday`)}),(0,U.jsx)(`strong`,{children:D(`cost`,{n:ue(e)})})]}),t===null?(0,U.jsx)(`p`,{className:`hint`,children:D(`usageNoLimit`)}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`p`,{className:`hint`,children:[D(`usageOfLimit`,{limit:ue(t)}),` · `,n>=0?D(`usageLeft`,{n:ue(n)}):D(`usageOver`,{n:ue(-n)})]}),(0,U.jsx)(`div`,{className:`usage-meter`,"aria-hidden":`true`,children:(0,U.jsx)(`span`,{style:{width:`${Math.min(100,Math.max(0,e/t*100))}%`}})})]})]})}function Zb({detail:e}){let t=t=>e.sessions.reduce((e,n)=>e+t(n),0);return(0,U.jsx)(`div`,{className:`usage-table-wrap`,tabIndex:0,children:(0,U.jsxs)(`table`,{className:`usage-table`,children:[(0,U.jsx)(`thead`,{children:(0,U.jsxs)(`tr`,{children:[(0,U.jsx)(`th`,{scope:`col`,children:D(`usageSession`)}),(0,U.jsx)(`th`,{scope:`col`,children:D(`usageCost`)}),(0,U.jsx)(`th`,{scope:`col`,children:D(`usageInput`)}),(0,U.jsx)(`th`,{scope:`col`,children:D(`usageOutput`)}),(0,U.jsx)(`th`,{scope:`col`,children:D(`usageCacheRead`)})]})}),(0,U.jsx)(`tbody`,{children:e.sessions.map(e=>(0,U.jsxs)(`tr`,{children:[(0,U.jsxs)(`th`,{scope:`row`,children:[(0,U.jsx)(`button`,{type:`button`,className:`link-button usage-name`,onClick:()=>void qe(e.sessionId),children:e.name}),e.archived&&(0,U.jsxs)(`span`,{className:`hint`,children:[` · `,D(`archived`)]})]}),(0,U.jsx)(`td`,{children:ue(e.cost)}),(0,U.jsx)(`td`,{children:ce(e.input)}),(0,U.jsx)(`td`,{children:ce(e.output)}),(0,U.jsx)(`td`,{children:ce(e.cacheRead)})]},e.sessionId))}),(0,U.jsx)(`tfoot`,{children:(0,U.jsxs)(`tr`,{children:[(0,U.jsx)(`th`,{scope:`row`,children:D(`usageTotal`)}),(0,U.jsx)(`td`,{children:ue(e.total)}),(0,U.jsx)(`td`,{children:ce(t(e=>e.input))}),(0,U.jsx)(`td`,{children:ce(t(e=>e.output))}),(0,U.jsx)(`td`,{children:ce(t(e=>e.cacheRead))})]})})]})})}function Qb(){O();let[e,t]=(0,v.useState)(null),[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(null),[o,s]=(0,v.useState)(null),[c,l]=(0,v.useState)(0),u=(0,v.useId)(),d=N(e=>Object.values(e.sessions).reduce((e,t)=>e+t.usage.cost,0)),f=N(e=>e.settings?.dailyBudget??null),p=i??e?.today??null;(0,v.useEffect)(()=>{let e=!0;return yt(Ub).then(n=>{e&&(t(n),s(null))}).catch(t=>e&&s(t)),()=>{e=!1}},[d,f,c]),(0,v.useEffect)(()=>{if(!p)return;let e=!0;return bt(p).then(t=>{e&&(r(t),s(null))}).catch(t=>e&&s(t)),()=>{e=!1}},[p,d,c]);let m=e?.days.find(t=>t.day===e.today),h=n&&n.day===p?n:null;return(0,U.jsxs)(`main`,{className:`main center-main`,children:[(0,U.jsxs)(`header`,{className:`session-header`,children:[(0,U.jsx)(fv,{}),(0,U.jsx)(`div`,{className:`session-title`,children:(0,U.jsx)(`h1`,{children:D(`usage`)})})]}),(0,U.jsx)(`div`,{className:`center-body`,tabIndex:0,children:(0,U.jsxs)(`div`,{className:`center-inner usage`,children:[o?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)($,{error:o}),(0,U.jsx)(`div`,{children:(0,U.jsxs)(Z,{onClick:()=>l(e=>e+1),children:[(0,U.jsx)(Wg,{}),` `,D(`retry`)]})})]}):null,!e||!p?!o&&(0,U.jsx)(`p`,{className:`hint`,children:D(`loading`)}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Xb,{spent:m?.cost??0,budget:e.budget}),(0,U.jsxs)(`section`,{className:`usage-section`,"aria-label":D(`usageChart`,{n:Ub}),children:[(0,U.jsx)(`p`,{className:`hint`,children:D(`usageChart`,{n:Ub})}),(0,U.jsx)(Yb,{days:e.days,budget:e.budget,selected:p,onSelect:a})]}),(0,U.jsxs)(`section`,{className:`usage-section`,"aria-labelledby":u,children:[(0,U.jsxs)(`h2`,{id:u,className:`usage-day`,children:[Kb(p,!0),p===e.today&&(0,U.jsxs)(`span`,{className:`hint usage-note`,children:[` · `,D(`today`)]})]}),h?h.sessions.length===0?(0,U.jsx)(`p`,{className:`empty-box`,children:D(`usageDayEmpty`)}):(0,U.jsx)(Zb,{detail:h}):!o&&(0,U.jsx)(`p`,{className:`hint`,children:D(`loading`)})]})]})]})})]})}var $b=12e4,ex=3e4;function tx(){let e=Date.now(),t=0,n=()=>{let n=Date.now();document.visibilityState===`visible`&&document.hasFocus()&&(n-e>$b||n-t<ex||(t=n,x(`POST`,`/api/presence`).catch(()=>{})))},r=()=>{e=Date.now(),n()};for(let e of[`pointerdown`,`pointermove`,`keydown`,`wheel`])window.addEventListener(e,r,{passive:!0});document.addEventListener(`visibilitychange`,r),window.addEventListener(`focus`,r),window.setInterval(n,ex),n()}function nx(){O();let e=N(e=>e.phase),t=N(e=>e.failure),n=N(e=>e.connection),r=N(e=>e.sidebarCollapsed),i=N(e=>e.drawerOpen),a=N(e=>ve(e.center)),o=N(e=>e.page),s=Ob(),c=N(e=>e.settings?.mascot!==!1)&&o===null&&!s;return(0,v.useEffect)(()=>{document.title=a>0?`(${a}) Yew Harness`:`Yew Harness`},[a]),(0,v.useEffect)(()=>{if(!i)return;let e=e=>{e.key===`Escape`&&M({drawerOpen:!1})};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[i]),e===`loading`?(0,U.jsx)(`div`,{className:`center-page`,"aria-busy":`true`,children:(0,U.jsx)(`p`,{children:D(`loading`)})}):e===`signin`?(0,U.jsx)(`div`,{className:`center-page`,children:(0,U.jsxs)(`div`,{children:[(0,U.jsx)(Zg,{pose:`waking`,height:120,className:`page-mascot`}),(0,U.jsx)(`h1`,{children:D(`signInTitle`)}),(0,U.jsx)(`p`,{children:D(`signInBody`)})]})}):e===`failed`?(0,U.jsx)(`div`,{className:`center-page`,children:(0,U.jsxs)(`div`,{children:[(0,U.jsx)(Zg,{pose:`sorry`,height:120,className:`page-mascot`}),(0,U.jsx)(`h1`,{children:D(`errorTitle`)}),(0,U.jsx)(`p`,{children:t===`network`?D(`connectionLost`):t}),(0,U.jsx)(Z,{variant:`primary`,onClick:()=>window.location.reload(),children:D(`retry`)})]})}):(0,U.jsxs)(U.Fragment,{children:[n===`connecting`&&(0,U.jsx)(`div`,{className:`banner`,role:`status`,children:D(`connectionLost`)}),(0,U.jsxs)(`div`,{className:`app${!s&&r?` app-collapsed`:``}${s&&i?` sidebar-open`:``}${c?` with-yew`:``}`,children:[!s&&r?(0,U.jsx)(Vb,{}):(0,U.jsx)(Hb,{}),s&&i&&(0,U.jsx)(`div`,{className:`drawer-backdrop`,"aria-hidden":`true`,onClick:()=>M({drawerOpen:!1})}),o===`center`?(0,U.jsx)(ny,{}):o===`schedules`?(0,U.jsx)(Ly,{}):o===`artifacts`?(0,U.jsx)(zv,{}):o===`usage`?(0,U.jsx)(Qb,{}):o===`map`?(0,U.jsx)(gy,{}):(0,U.jsx)(Cv,{}),c&&(0,U.jsx)(`img`,{className:`yew-backdrop`,src:`/mascot/portrait.webp`,alt:``,"aria-hidden":`true`,draggable:!1}),(0,U.jsx)(tb,{})]})]})}var rx=document.getElementById(`root`);rx&&((0,y.createRoot)(rx).render((0,U.jsxs)(v.StrictMode,{children:[(0,U.jsx)(nx,{}),(0,U.jsx)(wy,{})]})),Pe(),tx());