@capagents/forgeqe 2.4.0 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/HOW_TO_USE.md +28 -7
  2. package/README.md +4 -2
  3. package/dist/forgeqe.js +1041 -1007
  4. package/dist/web/assets/ApiTests-B-0nk720.js +2 -0
  5. package/dist/web/assets/Chat-Be6J6POH.js +3 -0
  6. package/dist/web/assets/{Data-Qolfhsd7.js → Data-BtcD7_T2.js} +4 -4
  7. package/dist/web/assets/Features-DHIGL43K.js +1 -0
  8. package/dist/web/assets/Jobs-C-cEyrrH.js +3 -0
  9. package/dist/web/assets/Quality-C6hKykoO.js +1 -0
  10. package/dist/web/assets/Record-B5395d_b.js +1 -0
  11. package/dist/web/assets/Regression-BS5g4T3v.js +2 -0
  12. package/dist/web/assets/Reports-CHqfhNR8.js +2 -0
  13. package/dist/web/assets/Response-P2oku3_B.js +8 -0
  14. package/dist/web/assets/Runs-DPmd5QPL.js +2 -0
  15. package/dist/web/assets/chevron-right-Cwpv0kJi.js +1 -0
  16. package/dist/web/assets/circle-dashed-COka5oNi.js +1 -0
  17. package/dist/web/assets/external-link-B9T-hxHX.js +1 -0
  18. package/dist/web/assets/file-chart-column-increasing-Ch7H145u.js +1 -0
  19. package/dist/web/assets/filters-C5e4Y0To.js +1 -0
  20. package/dist/web/assets/index-BI_5kNwE.css +2 -0
  21. package/dist/web/assets/index-KUNDUjo0.js +26 -0
  22. package/dist/web/assets/{markdown-GKy06efH.js → markdown-DclrGj2e.js} +7 -7
  23. package/dist/web/assets/rotate-ccw-BizUsxuR.js +1 -0
  24. package/dist/web/assets/sticky-note-CFIxnO7K.js +1 -0
  25. package/dist/web/assets/terminal-BnhGgg6d.js +1 -0
  26. package/dist/web/assets/trash-CtWVl2Xk.js +1 -0
  27. package/dist/web/assets/trending-up-BnzWZEhg.js +1 -0
  28. package/dist/web/assets/when-CHnpLdYw.js +1 -0
  29. package/dist/web/index.html +2 -3
  30. package/docs/ARCHITECTURE.md +5 -2
  31. package/docs/user-guide.html +32 -13
  32. package/evals/prompts/brain/browser-test-intent.yaml +30 -0
  33. package/forgeqe.example.yaml +4 -3
  34. package/package.json +1 -1
  35. package/prompts/brain.md +4 -1
  36. package/py/forgeqe_engine/flowmatch.py +72 -1
  37. package/py/forgeqe_engine/logins.py +17 -5
  38. package/py/forgeqe_engine/loops.py +26 -3
  39. package/py/forgeqe_engine/memory.py +11 -0
  40. package/py/forgeqe_engine/service.py +29 -1
  41. package/dist/web/assets/ApiTests-CSSed9hU.js +0 -2
  42. package/dist/web/assets/Chat-CFfiv7wI.js +0 -2
  43. package/dist/web/assets/Features-BM48eq6x.js +0 -1
  44. package/dist/web/assets/Jobs-BjVNQUaK.js +0 -3
  45. package/dist/web/assets/Quality-F0sKErYg.js +0 -1
  46. package/dist/web/assets/Record-CkwV9gN8.js +0 -1
  47. package/dist/web/assets/Regression-DKaNfFu1.js +0 -2
  48. package/dist/web/assets/Reports-o_82URX6.js +0 -3
  49. package/dist/web/assets/Response-YL9AIB8R.js +0 -8
  50. package/dist/web/assets/Runs-Dp-DzyW1.js +0 -2
  51. package/dist/web/assets/circle-dashed-DbpKfamm.js +0 -1
  52. package/dist/web/assets/external-link-pvVHJFAZ.js +0 -1
  53. package/dist/web/assets/file-chart-column-increasing-b-Yh6rmz.js +0 -1
  54. package/dist/web/assets/index-Bkx3fVbr.js +0 -21
  55. package/dist/web/assets/index-DSEYuBEd.css +0 -2
  56. package/dist/web/assets/rotate-ccw-BL6YOAPy.js +0 -1
  57. package/dist/web/assets/search-YLg3uzAx.js +0 -1
  58. package/dist/web/assets/status-CL_clA0J.js +0 -3
  59. package/dist/web/assets/sticky-note-DIQ2FWMw.js +0 -1
  60. package/dist/web/assets/terminal-BdTFlGZR.js +0 -1
  61. package/dist/web/assets/timer-NLZ0XmVl.js +0 -1
  62. package/dist/web/assets/trash-DIUJbRpw.js +0 -1
@@ -0,0 +1,26 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Chat-Be6J6POH.js","assets/Response-P2oku3_B.js","assets/markdown-DclrGj2e.js","assets/external-link-B9T-hxHX.js","assets/when-CHnpLdYw.js","assets/Reports-CHqfhNR8.js","assets/circle-dashed-COka5oNi.js","assets/trending-up-BnzWZEhg.js","assets/Runs-DPmd5QPL.js","assets/rotate-ccw-BizUsxuR.js","assets/chevron-right-Cwpv0kJi.js","assets/file-chart-column-increasing-Ch7H145u.js","assets/terminal-BnhGgg6d.js","assets/Record-B5395d_b.js","assets/sticky-note-CFIxnO7K.js","assets/trash-CtWVl2Xk.js","assets/filters-C5e4Y0To.js","assets/Regression-BS5g4T3v.js","assets/ApiTests-B-0nk720.js","assets/Quality-C6hKykoO.js","assets/Data-BtcD7_T2.js","assets/Features-DHIGL43K.js","assets/Jobs-C-cEyrrH.js"])))=>i.map(i=>d[i]);
2
+ 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));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var 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.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.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`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}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 D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(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 ee(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,ee(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),ee(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=ee(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=ee(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ee(M(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 N(e,t,n){if(e==null)return e;var r=[],i=0;return ee(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function te(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var P=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)},F={map:N,forEach:function(e,t,n){N(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return N(e,function(){t++}),t},toArray:function(e){return N(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=F,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,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.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=g({},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=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:te}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};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(C,P)}catch(e){P(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},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.2.7`})),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,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=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&&E());){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&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(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`):w=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,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,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`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(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.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 o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.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=c(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=c(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})}}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=c(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=c(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})}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 s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.7`})),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){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function 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}var m=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function M(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var ee=Symbol.for(`react.client.reference`);function N(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ee?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?N(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return N(e(t))}catch{}}return null}var te=Array.isArray,P=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},re=[],I=-1;function L(e){return{current:e}}function R(e){0>I||(e.current=re[I],re[I]=null,I--)}function z(e,t){I++,re[I]=e.current,e.current=t}var ie=L(null),ae=L(null),oe=L(null),se=L(null);function ce(e,t){switch(z(oe,t),z(ae,e),z(ie,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}R(ie),z(ie,e)}function le(){R(ie),R(ae),R(oe)}function B(e){e.memoizedState!==null&&z(se,e);var t=ie.current,n=Hd(t,e.type);t!==n&&(z(ae,e),z(ie,n))}function ue(e){ae.current===e&&(R(ie),R(ae)),se.current===e&&(R(se),Qf._currentValue=ne)}var de,fe;function pe(e){if(de===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);de=t&&t[1]||``,fe=-1<e.stack.indexOf(`
3
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
+ `+de+e+fe}var me=!1;function he(e,t){if(!e||me)return``;me=!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}e.call(n.prototype)}}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(`
5
+ `),l=s.split(`
6
+ `);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=`
7
+ `+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{me=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?pe(n):``}function ge(e,t){switch(e.tag){case 26:case 27:case 5:return pe(e.type);case 16:return pe(`Lazy`);case 13:return e.child!==t&&t!==null?pe(`Suspense Fallback`):pe(`Suspense`);case 19:return pe(`SuspenseList`);case 0:case 15:return he(e.type,!1);case 11:return he(e.type.render,!1);case 1:return he(e.type,!0);case 31:return pe(`Activity`);default:return``}}function _e(e){try{var t=``,n=null;do t+=ge(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
8
+ Error generating stack: `+e.message+`
9
+ `+e.stack}}var ve=Object.prototype.hasOwnProperty,ye=t.unstable_scheduleCallback,be=t.unstable_cancelCallback,xe=t.unstable_shouldYield,Se=t.unstable_requestPaint,V=t.unstable_now,Ce=t.unstable_getCurrentPriorityLevel,we=t.unstable_ImmediatePriority,Te=t.unstable_UserBlockingPriority,Ee=t.unstable_NormalPriority,De=t.unstable_LowPriority,Oe=t.unstable_IdlePriority,ke=t.log,Ae=t.unstable_setDisableYieldValue,je=null,Me=null;function Ne(e){if(typeof ke==`function`&&Ae(e),Me&&typeof Me.setStrictMode==`function`)try{Me.setStrictMode(je,e)}catch{}}var Pe=Math.clz32?Math.clz32:Le,Fe=Math.log,Ie=Math.LN2;function Le(e){return e>>>=0,e===0?32:31-(Fe(e)/Ie|0)|0}var Re=256,ze=262144,Be=4194304;function Ve(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&261888;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 He(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=Ve(n))):i=Ve(o):i=Ve(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ve(n))):i=Ve(o)):i=Ve(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 Ue(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function We(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 Ge(){var e=Be;return Be<<=1,!(Be&62914560)&&(Be=4194304),e}function Ke(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function qe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Je(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-Pe(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&&Ye(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Ye(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Pe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Xe(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Pe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Ze(e,t){var n=t&-t;return n=n&42?1:Qe(n),(n&(e.suspendedLanes|t))===0?n:0}function Qe(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 $e(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function et(){var e=F.p;return e===0?(e=window.event,e===void 0?32:mp(e.type)):e}function tt(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var nt=Math.random().toString(36).slice(2),rt=`__reactFiber$`+nt,it=`__reactProps$`+nt,at=`__reactContainer$`+nt,ot=`__reactEvents$`+nt,st=`__reactListeners$`+nt,ct=`__reactHandles$`+nt,lt=`__reactResources$`+nt,ut=`__reactMarker$`+nt;function dt(e){delete e[rt],delete e[it],delete e[ot],delete e[st],delete e[ct]}function ft(e){var t=e[rt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[at]||n[rt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=df(e);e!==null;){if(n=e[rt])return n;e=df(e)}return t}e=n,n=e.parentNode}return null}function pt(e){if(e=e[rt]||e[at]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function mt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function ht(e){var t=e[lt];return t||=e[lt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function gt(e){e[ut]=!0}var _t=new Set,vt={};function yt(e,t){bt(e,t),bt(e+`Capture`,t)}function bt(e,t){for(vt[e]=t,e=0;e<t.length;e++)_t.add(t[e])}var xt=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]*$`),St={},Ct={};function wt(e){return ve.call(Ct,e)?!0:ve.call(St,e)?!1:xt.test(e)?Ct[e]=!0:(St[e]=!0,!1)}function Tt(e,t,n){if(wt(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 Et(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 Dt(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 Ot(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function kt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function At(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 jt(e){if(!e._valueTracker){var t=kt(e)?`checked`:`value`;e._valueTracker=At(e,t,``+e[t])}}function Mt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=kt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function Nt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Pt=/[\n"\\]/g;function Ft(e){return e.replace(Pt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function It(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=``+Ot(t)):e.value!==``+Ot(t)&&(e.value=``+Ot(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Rt(e,o,Ot(n)):Rt(e,o,Ot(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=``+Ot(s):e.removeAttribute(`name`)}function Lt(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)){jt(e);return}n=n==null?``:``+Ot(n),t=t==null?n:``+Ot(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),jt(e)}function Rt(e,t,n){t===`number`&&Nt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function zt(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=``+Ot(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 Bt(e,t,n){t!=null&&(t=``+Ot(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Ot(n)}function Vt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(te(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Ot(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),jt(e)}function Ht(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ut=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 Wt(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||Ut.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Gt(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]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Wt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Wt(e,o,t[o])}function Kt(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 qt=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`],[`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`]]),Jt=/^[\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 Yt(e){return Jt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Xt(){}var Zt=null;function Qt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $t=null,en=null;function tn(e){var t=pt(e);if(t&&(e=t.stateNode)){var n=e[it]||null;a:switch(e=t.stateNode,t.type){case`input`:if(It(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="`+Ft(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[it]||null;if(!a)throw Error(i(90));It(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&&Mt(r)}break a;case`textarea`:Bt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&zt(e,!!n.multiple,t,!1)}}}var nn=!1;function rn(e,t,n){if(nn)return e(t,n);nn=!0;try{return e(t)}finally{if(nn=!1,($t!==null||en!==null)&&(vu(),$t&&(t=$t,e=en,en=$t=null,tn(t),e)))for(t=0;t<e.length;t++)tn(e[t])}}function an(e,t){var n=e.stateNode;if(n===null)return null;var r=n[it]||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 on=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,sn=!1;if(on)try{var cn={};Object.defineProperty(cn,"passive",{get:function(){sn=!0}}),window.addEventListener(`test`,cn,cn),window.removeEventListener(`test`,cn,cn)}catch{sn=!1}var ln=null,un=null,dn=null;function fn(){if(dn)return dn;var e,t=un,n=t.length,r,i=`value`in ln?ln.value:ln.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 dn=i.slice(e,1<r?1-r:void 0)}function pn(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 mn(){return!0}function hn(){return!1}function gn(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)?mn:hn,this.isPropagationStopped=hn,this}return m(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=mn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=mn)},persist:function(){},isPersistent:mn}),t}var _n={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vn=gn(_n),yn=m({},_n,{view:0,detail:0}),bn=gn(yn),xn,Sn,Cn,wn=m({},yn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fn,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!==Cn&&(Cn&&e.type===`mousemove`?(xn=e.screenX-Cn.screenX,Sn=e.screenY-Cn.screenY):Sn=xn=0,Cn=e),xn)},movementY:function(e){return`movementY`in e?e.movementY:Sn}}),Tn=gn(wn),En=gn(m({},wn,{dataTransfer:0})),Dn=gn(m({},yn,{relatedTarget:0})),On=gn(m({},_n,{animationName:0,elapsedTime:0,pseudoElement:0})),kn=gn(m({},_n,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),An=gn(m({},_n,{data:0})),jn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Mn={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`},Nn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Pn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Nn[e])?!!t[e]:!1}function Fn(){return Pn}var In=gn(m({},yn,{key:function(e){if(e.key){var t=jn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=pn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Mn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fn,charCode:function(e){return e.type===`keypress`?pn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?pn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Ln=gn(m({},wn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=gn(m({},yn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fn})),zn=gn(m({},_n,{propertyName:0,elapsedTime:0,pseudoElement:0})),Bn=gn(m({},wn,{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})),Vn=gn(m({},_n,{newState:0,oldState:0})),Hn=[9,13,27,32],Un=on&&`CompositionEvent`in window,Wn=null;on&&`documentMode`in document&&(Wn=document.documentMode);var Gn=on&&`TextEvent`in window&&!Wn,Kn=on&&(!Un||Wn&&8<Wn&&11>=Wn),qn=` `,Jn=!1;function Yn(e,t){switch(e){case`keyup`:return Hn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Xn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Zn=!1;function Qn(e,t){switch(e){case`compositionend`:return Xn(t);case`keypress`:return t.which===32?(Jn=!0,qn):null;case`textInput`:return e=t.data,e===qn&&Jn?null:e;default:return null}}function $n(e,t){if(Zn)return e===`compositionend`||!Un&&Yn(e,t)?(e=fn(),dn=un=ln=null,Zn=!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 Kn&&t.locale!==`ko`?null:t.data;default:return null}}var er={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 tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!er[e.type]:t===`textarea`}function nr(e,t,n,r){$t?en?en.push(r):en=[r]:$t=r,t=Td(t,`onChange`),0<t.length&&(n=new vn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var rr=null,ir=null;function ar(e){vd(e,0)}function or(e){if(Mt(mt(e)))return e}function sr(e,t){if(e===`change`)return t}var cr=!1;if(on){var lr;if(on){var ur=`oninput`in document;if(!ur){var dr=document.createElement(`div`);dr.setAttribute(`oninput`,`return;`),ur=typeof dr.oninput==`function`}lr=ur}else lr=!1;cr=lr&&(!document.documentMode||9<document.documentMode)}function fr(){rr&&(rr.detachEvent(`onpropertychange`,pr),ir=rr=null)}function pr(e){if(e.propertyName===`value`&&or(ir)){var t=[];nr(t,ir,e,Qt(e)),rn(ar,t)}}function mr(e,t,n){e===`focusin`?(fr(),rr=t,ir=n,rr.attachEvent(`onpropertychange`,pr)):e===`focusout`&&fr()}function hr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return or(ir)}function gr(e,t){if(e===`click`)return or(t)}function _r(e,t){if(e===`input`||e===`change`)return or(t)}function vr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var yr=typeof Object.is==`function`?Object.is:vr;function br(e,t){if(yr(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(!ve.call(t,i)||!yr(e[i],t[i]))return!1}return!0}function xr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sr(e,t){var n=xr(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=xr(n)}}function Cr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Nt(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=Nt(e.document)}return t}function Tr(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 Er=on&&`documentMode`in document&&11>=document.documentMode,Dr=null,Or=null,kr=null,Ar=!1;function jr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ar||Dr==null||Dr!==Nt(r)||(r=Dr,`selectionStart`in r&&Tr(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}),kr&&br(kr,r)||(kr=r,r=Td(Or,`onSelect`),0<r.length&&(t=new vn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Dr)))}function Mr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Nr={animationend:Mr(`Animation`,`AnimationEnd`),animationiteration:Mr(`Animation`,`AnimationIteration`),animationstart:Mr(`Animation`,`AnimationStart`),transitionrun:Mr(`Transition`,`TransitionRun`),transitionstart:Mr(`Transition`,`TransitionStart`),transitioncancel:Mr(`Transition`,`TransitionCancel`),transitionend:Mr(`Transition`,`TransitionEnd`)},Pr={},Fr={};on&&(Fr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Nr.animationend.animation,delete Nr.animationiteration.animation,delete Nr.animationstart.animation),`TransitionEvent`in window||delete Nr.transitionend.transition);function Ir(e){if(Pr[e])return Pr[e];if(!Nr[e])return e;var t=Nr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Fr)return Pr[e]=t[n];return e}var Lr=Ir(`animationend`),Rr=Ir(`animationiteration`),zr=Ir(`animationstart`),Br=Ir(`transitionrun`),Vr=Ir(`transitionstart`),Hr=Ir(`transitioncancel`),Ur=Ir(`transitionend`),Wr=new Map,Gr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Gr.push(`scrollEnd`);function Kr(e,t){Wr.set(e,t),yt(t,[e])}var qr=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)},Jr=[],Yr=0,Xr=0;function Zr(){for(var e=Yr,t=Xr=Yr=0;t<e;){var n=Jr[t];Jr[t++]=null;var r=Jr[t];Jr[t++]=null;var i=Jr[t];Jr[t++]=null;var a=Jr[t];if(Jr[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&&ti(n,i,a)}}function Qr(e,t,n,r){Jr[Yr++]=e,Jr[Yr++]=t,Jr[Yr++]=n,Jr[Yr++]=r,Xr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function $r(e,t,n,r){return Qr(e,t,n,r),ni(e)}function ei(e,t){return Qr(e,null,null,t),ni(e)}function ti(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-Pe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ni(e){if(50<lu)throw lu=0,uu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ri={};function ii(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 ai(e,t,n,r){return new ii(e,t,n,r)}function oi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function si(e,t){var n=e.alternate;return n===null?(n=ai(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&65011712,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 ci(e,t){e.flags&=65011714;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 li(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)oi(e)&&(s=1);else if(typeof e==`string`)s=Uf(e,n,ie.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case k:return e=ai(31,n,t,a),e.elementType=k,e.lanes=o,e;case y:return ui(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=ai(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=ai(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=ai(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ai(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ui(e,t,n,r){return e=ai(7,e,r,t),e.lanes=n,e}function di(e,t,n){return e=ai(6,e,null,t),e.lanes=n,e}function fi(e){var t=ai(18,null,null,0);return t.stateNode=e,t}function pi(e,t,n){return t=ai(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var mi=new WeakMap;function hi(e,t){if(typeof e==`object`&&e){var n=mi.get(e);return n===void 0?(t={value:e,source:t,stack:_e(t)},mi.set(e,t),t):n}return{value:e,source:t,stack:_e(t)}}var gi=[],_i=0,vi=null,yi=0,bi=[],xi=0,Si=null,Ci=1,wi=``;function Ti(e,t){gi[_i++]=yi,gi[_i++]=vi,vi=e,yi=t}function Ei(e,t,n){bi[xi++]=Ci,bi[xi++]=wi,bi[xi++]=Si,Si=e;var r=Ci;e=wi;var i=32-Pe(r)-1;r&=~(1<<i),n+=1;var a=32-Pe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ci=1<<32-Pe(t)+i|n<<i|r,wi=a+e}else Ci=1<<a|n<<i|r,wi=e}function Di(e){e.return!==null&&(Ti(e,1),Ei(e,1,0))}function Oi(e){for(;e===vi;)vi=gi[--_i],gi[_i]=null,yi=gi[--_i],gi[_i]=null;for(;e===Si;)Si=bi[--xi],bi[xi]=null,wi=bi[--xi],bi[xi]=null,Ci=bi[--xi],bi[xi]=null}function ki(e,t){bi[xi++]=Ci,bi[xi++]=wi,bi[xi++]=Si,Ci=t.id,wi=t.overflow,Si=e}var Ai=null,ji=null,H=!1,Mi=null,Ni=!1,Pi=Error(i(519));function Fi(e){throw Vi(hi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Pi}function Ii(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[rt]=e,t[it]=r,n){case`dialog`:$(`cancel`,t),$(`close`,t);break;case`iframe`:case`object`:case`embed`:$(`load`,t);break;case`video`:case`audio`:for(n=0;n<gd.length;n++)$(gd[n],t);break;case`source`:$(`error`,t);break;case`img`:case`image`:case`link`:$(`error`,t),$(`load`,t);break;case`details`:$(`toggle`,t);break;case`input`:$(`invalid`,t),Lt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:$(`invalid`,t);break;case`textarea`:$(`invalid`,t),Vt(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||jd(t.textContent,n)?(r.popover!=null&&($(`beforetoggle`,t),$(`toggle`,t)),r.onScroll!=null&&$(`scroll`,t),r.onScrollEnd!=null&&$(`scrollend`,t),r.onClick!=null&&(t.onclick=Xt),t=!0):t=!1,t||Fi(e,!0)}function Li(e){for(Ai=e.return;Ai;)switch(Ai.tag){case 5:case 31:case 13:Ni=!1;return;case 27:case 3:Ni=!0;return;default:Ai=Ai.return}}function Ri(e){if(e!==Ai)return!1;if(!H)return Li(e),H=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||Ud(e.type,e.memoizedProps)),n=!n),n&&ji&&Fi(e),Li(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ji=uf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ji=uf(e)}else t===27?(t=ji,Zd(e.type)?(e=lf,lf=null,ji=e):ji=t):ji=Ai?cf(e.stateNode.nextSibling):null;return!0}function zi(){ji=Ai=null,H=!1}function Bi(){var e=Mi;return e!==null&&(Yl===null?Yl=e:Yl.push.apply(Yl,e),Mi=null),e}function Vi(e){Mi===null?Mi=[e]:Mi.push(e)}var Hi=L(null),Ui=null,Wi=null;function Gi(e,t,n){z(Hi,t._currentValue),t._currentValue=n}function Ki(e){e._currentValue=Hi.current,R(Hi)}function qi(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 Ji(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),qi(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),qi(s,n,e),s=null}else 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 Yi(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;yr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===se.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Qf]:e.push(Qf))}a=a.return}e!==null&&Ji(t,e,n,r),t.flags|=262144}function Xi(e){for(e=e.firstContext;e!==null;){if(!yr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Zi(e){Ui=e,Wi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Qi(e){return $i(Ui,e)}function U(e,t){return Ui===null&&Zi(e),$i(e,t)}function $i(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Wi===null){if(e===null)throw Error(i(308));Wi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wi=Wi.next=t;return n}var ea=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()})}},ta=t.unstable_scheduleCallback,na=t.unstable_NormalPriority,ra={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ia(){return{controller:new ea,data:new Map,refCount:0}}function aa(e){e.refCount--,e.refCount===0&&ta(na,function(){e.controller.abort()})}var oa=null,sa=0,ca=0,la=null;function W(e,t){if(oa===null){var n=oa=[];sa=0,ca=ud(),la={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return sa++,t.then(ua,ua),t}function ua(){if(--sa===0&&oa!==null){la!==null&&(la.status=`fulfilled`);var e=oa;oa=null,ca=0,la=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function da(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 fa=P.S;P.S=function(e,t){Ql=V(),typeof t==`object`&&t&&typeof t.then==`function`&&W(e,t),fa!==null&&fa(e,t)};var pa=L(null);function ma(){var e=pa.current;return e===null?Fl.pooledCache:e}function ha(e,t){t===null?z(pa,pa.current):z(pa,t.pool)}function ga(){var e=ma();return e===null?null:{parent:ra._currentValue,pool:e}}var G=Error(i(460)),_a=Error(i(474)),va=Error(i(542)),ya={then:function(){}};function ba(e){return e=e.status,e===`fulfilled`||e===`rejected`}function xa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Xt,Xt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ta(e),e;default:if(typeof t.status==`string`)t.then(Xt,Xt);else{if(e=Fl,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,Ta(e),e}throw Ca=t,G}}function Sa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ca=e,G):e}}var Ca=null;function wa(){if(Ca===null)throw Error(i(459));var e=Ca;return Ca=null,e}function Ta(e){if(e===G||e===va)throw Error(i(483))}var Ea=null,Da=0;function Oa(e){var t=Da;return Da+=1,Ea===null&&(Ea=[]),xa(Ea,e,t)}function ka(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Aa(e,t){throw t.$$typeof===g?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ja(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=si(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|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=di(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===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&Sa(i)===t.type)?(t=a(t,n.props),ka(t,n),t.return=e,t):(t=li(n.type,n.key,n.props,null,e.mode,r),ka(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=pi(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=ui(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=di(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=li(t.type,t.key,t.props,null,e.mode,n),ka(n,t),n.return=e,n;case v:return t=pi(t,e.mode,n),t.return=e,t;case O:return t=Sa(t),f(e,t,n)}if(te(t)||M(t))return t=ui(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Oa(t),n);if(t.$$typeof===C)return f(e,U(e,t),n);Aa(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 _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=Sa(n),p(e,t,n,r)}if(te(n)||M(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Oa(n),r);if(n.$$typeof===C)return p(e,t,U(e,n),r);Aa(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 _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=Sa(r),m(e,t,n,r,i)}if(te(r)||M(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Oa(r),i);if(r.$$typeof===C)return m(e,t,n,U(t,r),i);Aa(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),H&&Ti(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 H&&Ti(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(g.key===null?h:g.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)}),H&&Ti(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),H&&Ti(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 H&&Ti(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(v.key===null?g:v.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)}),H&&Ti(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&Sa(l)===r.type){n(e,r.sibling),c=a(r,o.props),ka(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===y?(c=ui(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=li(o.type,o.key,o.props,null,e.mode,c),ka(c,o),c.return=e,e=c)}return s(e);case v: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=pi(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=Sa(o),b(e,r,o,c)}if(te(o))return h(e,r,o,c);if(M(o)){if(l=M(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Oa(o),c);if(o.$$typeof===C)return b(e,r,U(e,o),c);Aa(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=di(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Da=0;var i=b(e,t,n,r);return Ea=null,i}catch(t){if(t===G||t===va)throw t;var a=ai(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ma=ja(!0),Na=ja(!1),Pa=!1;function K(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fa(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 Ia(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function La(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Pl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ni(e),ti(e,null,n),t}return Qr(e,r,t,n),ni(e)}function q(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,Xe(e,n)}}function Ra(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 J=!1;function za(){if(J){var e=la;if(e!==null)throw e}}function Ba(e,t,n,r){J=!1;var i=e.updateQueue;Pa=!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===ca&&(J=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=m({},d,f);break a;case 2:Pa=!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),Ul|=o,e.lanes=o,e.memoizedState=d}}function Va(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ha(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Va(n[e],t)}var Ua=L(null),Wa=L(0);function Ga(e,t){e=Vl,z(Wa,e),z(Ua,t),Vl=e|t.baseLanes}function Ka(){z(Wa,Vl),z(Ua,Ua.current)}function qa(){Vl=Wa.current,R(Ua),R(Wa)}var Ja=L(null),Ya=null;function Xa(e){var t=e.alternate;z(to,to.current&1),z(Ja,e),Ya===null&&(t===null||Ua.current!==null||t.memoizedState!==null)&&(Ya=e)}function Za(e){z(to,to.current),z(Ja,e),Ya===null&&(Ya=e)}function Qa(e){e.tag===22?(z(to,to.current),z(Ja,e),Ya===null&&(Ya=e)):$a(e)}function $a(){z(to,to.current),z(Ja,Ja.current)}function eo(e){R(Ja),Ya===e&&(Ya=null),R(to)}var to=L(0);function no(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||af(n)||of(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){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 ro=0,Y=null,io=null,ao=null,oo=!1,so=!1,co=!1,lo=0,uo=0,fo=null,po=0;function mo(){throw Error(i(321))}function ho(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!yr(e[n],t[n]))return!1;return!0}function go(e,t,n,r,i,a){return ro=a,Y=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,P.H=e===null||e.memoizedState===null?Ms:Ns,co=!1,a=n(r,i),co=!1,so&&(a=vo(t,n,r,i)),_o(e),a}function _o(e){P.H=js;var t=io!==null&&io.next!==null;if(ro=0,ao=io=Y=null,oo=!1,uo=0,fo=null,t)throw Error(i(300));e===null||Xs||(e=e.dependencies,e!==null&&Xi(e)&&(Xs=!0))}function vo(e,t,n,r){Y=e;var a=0;do{if(so&&(fo=null),uo=0,so=!1,25<=a)throw Error(i(301));if(a+=1,ao=io=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}P.H=Ps,o=t(n,r)}while(so);return o}function yo(){var e=P.H,t=e.useState()[0];return t=typeof t.then==`function`?Eo(t):t,e=e.useState()[0],(io===null?null:io.memoizedState)!==e&&(Y.flags|=1024),t}function bo(){var e=lo!==0;return lo=0,e}function xo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function So(e){if(oo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}oo=!1}ro=0,ao=io=Y=null,so=!1,uo=lo=0,fo=null}function Co(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ao===null?Y.memoizedState=ao=e:ao=ao.next=e,ao}function wo(){if(io===null){var e=Y.alternate;e=e===null?null:e.memoizedState}else e=io.next;var t=ao===null?Y.memoizedState:ao.next;if(t!==null)ao=t,io=e;else{if(e===null)throw Y.alternate===null?Error(i(467)):Error(i(310));io=e,e={memoizedState:io.memoizedState,baseState:io.baseState,baseQueue:io.baseQueue,queue:io.queue,next:null},ao===null?Y.memoizedState=ao=e:ao=ao.next=e}return ao}function To(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Eo(e){var t=uo;return uo+=1,fo===null&&(fo=[]),e=xa(fo,e,t),t=Y,(ao===null?t.memoizedState:ao.next)===null&&(t=t.alternate,P.H=t===null||t.memoizedState===null?Ms:Ns),e}function Do(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Eo(e);if(e.$$typeof===C)return Qi(e)}throw Error(i(438,String(e)))}function Oo(e){var t=null,n=Y.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Y.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=To(),Y.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]=A;return t.index++,n}function ko(e,t){return typeof t==`function`?t(e):t}function Ao(e){return jo(wo(),io,e)}function jo(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?(ro&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===ca&&(d=!0);else if((ro&p)===p){u=u.next,p===ca&&(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,Y.lanes|=p,Ul|=p;f=u.action,co&&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,Y.lanes|=f,Ul|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!yr(o,e.memoizedState)&&(Xs=!0,d&&(n=la,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 Mo(e){var t=wo(),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);yr(o,t.memoizedState)||(Xs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function No(e,t,n){var r=Y,a=wo(),o=H;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!yr((io||a).memoizedState,n);if(s&&(a.memoizedState=n,Xs=!0),a=a.queue,is(Io.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||ao!==null&&ao.memoizedState.tag&1){if(r.flags|=2048,$o(9,{destroy:void 0},Fo.bind(null,r,a,n,t),null),Fl===null)throw Error(i(349));o||ro&127||Po(r,t,n)}return n}function Po(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Y.updateQueue,t===null?(t=To(),Y.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Fo(e,t,n,r){t.value=n,t.getSnapshot=r,Lo(t)&&Ro(e)}function Io(e,t,n){return n(function(){Lo(t)&&Ro(e)})}function Lo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yr(e,n)}catch{return!0}}function Ro(e){var t=ei(e,2);t!==null&&pu(t,e,2)}function zo(e){var t=Co();if(typeof e==`function`){var n=e;if(e=n(),co){Ne(!0);try{n()}finally{Ne(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:e},t}function Bo(e,t,n,r){return e.baseState=n,jo(e,io,typeof r==`function`?r:ko)}function Vo(e,t,n,r,a){if(Os(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)}};P.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ho(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ho(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=P.T,o={};P.T=o;try{var s=n(i,r),c=P.S;c!==null&&c(o,s),Uo(e,t,s)}catch(n){Go(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),P.T=a}}else try{a=n(i,r),Uo(e,t,a)}catch(n){Go(e,t,n)}}function Uo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Wo(e,t,n)},function(n){return Go(e,t,n)}):Wo(e,t,n)}function Wo(e,t,n){t.status=`fulfilled`,t.value=n,Ko(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ho(e,n)))}function Go(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ko(t),t=t.next;while(t!==r)}e.action=null}function Ko(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function qo(e,t){return t}function Jo(e,t){if(H){var n=Fl.formState;if(n!==null){a:{var r=Y;if(H){if(ji){b:{for(var i=ji,a=Ni;i.nodeType!==8;)if(!a||(i=cf(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ji=cf(i.nextSibling),r=i.data===`F!`;break a}}Fi(r)}r=!1}r&&(t=n[0])}}return n=Co(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:t},n.queue=r,n=Ts.bind(null,Y,r),r.dispatch=n,r=zo(!1),a=Ds.bind(null,Y,!1,r.queue),r=Co(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Vo.bind(null,Y,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Yo(e){return Xo(wo(),io,e)}function Xo(e,t,n){if(t=jo(e,t,qo)[0],e=Ao(ko)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Eo(t)}catch(e){throw e===G?va:e}else r=t;t=wo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Y.flags|=2048,$o(9,{destroy:void 0},Zo.bind(null,i,n),null)),[r,a,e]}function Zo(e,t){e.action=t}function Qo(e){var t=wo(),n=io;if(n!==null)return Xo(t,n,e);wo(),t=t.memoizedState,n=wo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function $o(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Y.updateQueue,t===null&&(t=To(),Y.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 es(){return wo().memoizedState}function ts(e,t,n,r){var i=Co();Y.flags|=e,i.memoizedState=$o(1|t,{destroy:void 0},n,r===void 0?null:r)}function ns(e,t,n,r){var i=wo();r=r===void 0?null:r;var a=i.memoizedState.inst;io!==null&&r!==null&&ho(r,io.memoizedState.deps)?i.memoizedState=$o(t,a,n,r):(Y.flags|=e,i.memoizedState=$o(1|t,a,n,r))}function rs(e,t){ts(8390656,8,e,t)}function is(e,t){ns(2048,8,e,t)}function as(e){Y.flags|=4;var t=Y.updateQueue;if(t===null)t=To(),Y.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function os(e){var t=wo().memoizedState;return as({ref:t,nextImpl:e}),function(){if(Pl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ss(e,t){return ns(4,2,e,t)}function cs(e,t){return ns(4,4,e,t)}function ls(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 us(e,t,n){n=n==null?null:n.concat([e]),ns(4,4,ls.bind(null,t,e),n)}function ds(){}function fs(e,t){var n=wo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&ho(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ps(e,t){var n=wo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&ho(t,r[1]))return r[0];if(r=e(),co){Ne(!0);try{e()}finally{Ne(!1)}}return n.memoizedState=[r,t],r}function X(e,t,n){return n===void 0||ro&1073741824&&!(Q&261930)?e.memoizedState=t:(e.memoizedState=n,e=fu(),Y.lanes|=e,Ul|=e,n)}function ms(e,t,n,r){return yr(n,t)?n:Ua.current===null?!(ro&42)||ro&1073741824&&!(Q&261930)?(Xs=!0,e.memoizedState=n):(e=fu(),Y.lanes|=e,Ul|=e,t):(e=X(e,n,r),yr(e,t)||(Xs=!0),e)}function hs(e,t,n,r,i){var a=F.p;F.p=a!==0&&8>a?a:8;var o=P.T,s={};P.T=s,Ds(e,!1,t,n);try{var c=i(),l=P.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Es(e,t,da(c,r),du(e)):Es(e,t,r,du(e))}catch(n){Es(e,t,{then:function(){},status:`rejected`,reason:n},du())}finally{F.p=a,o!==null&&s.types!==null&&(o.types=s.types),P.T=o}}function gs(){}function _s(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=vs(e).queue;hs(e,a,t,ne,n===null?gs:function(){return ys(e),n(r)})}function vs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:ne},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ys(e){var t=vs(e);t.next===null&&(t=e.alternate.memoizedState),Es(e,t.next.queue,{},du())}function bs(){return Qi(Qf)}function xs(){return wo().memoizedState}function Ss(){return wo().memoizedState}function Cs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=du();e=Ia(n);var r=La(t,e,n);r!==null&&(pu(r,t,n),q(r,t,n)),t={cache:ia()},e.payload=t;return}t=t.return}}function ws(e,t,n){var r=du();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Os(e)?ks(t,n):(n=$r(e,t,n,r),n!==null&&(pu(n,e,r),As(n,t,r)))}function Ts(e,t,n){Es(e,t,n,du())}function Es(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Os(e))ks(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,yr(s,o))return Qr(e,t,i,0),Fl===null&&Zr(),!1}catch{}if(n=$r(e,t,i,r),n!==null)return pu(n,e,r),As(n,t,r),!0}return!1}function Ds(e,t,n,r){if(r={lane:2,revertLane:ud(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Os(e)){if(t)throw Error(i(479))}else t=$r(e,n,r,2),t!==null&&pu(t,e,2)}function Os(e){var t=e.alternate;return e===Y||t!==null&&t===Y}function ks(e,t){so=oo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function As(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xe(e,n)}}var js={readContext:Qi,use:Do,useCallback:mo,useContext:mo,useEffect:mo,useImperativeHandle:mo,useLayoutEffect:mo,useInsertionEffect:mo,useMemo:mo,useReducer:mo,useRef:mo,useState:mo,useDebugValue:mo,useDeferredValue:mo,useTransition:mo,useSyncExternalStore:mo,useId:mo,useHostTransitionStatus:mo,useFormState:mo,useActionState:mo,useOptimistic:mo,useMemoCache:mo,useCacheRefresh:mo};js.useEffectEvent=mo;var Ms={readContext:Qi,use:Do,useCallback:function(e,t){return Co().memoizedState=[e,t===void 0?null:t],e},useContext:Qi,useEffect:rs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ts(4194308,4,ls.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){ts(4,2,e,t)},useMemo:function(e,t){var n=Co();t=t===void 0?null:t;var r=e();if(co){Ne(!0);try{e()}finally{Ne(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Co();if(n!==void 0){var i=n(t);if(co){Ne(!0);try{n(t)}finally{Ne(!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=ws.bind(null,Y,e),[r.memoizedState,e]},useRef:function(e){var t=Co();return e={current:e},t.memoizedState=e},useState:function(e){e=zo(e);var t=e.queue,n=Ts.bind(null,Y,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ds,useDeferredValue:function(e,t){return X(Co(),e,t)},useTransition:function(){var e=zo(!1);return e=hs.bind(null,Y,e.queue,!0,!1),Co().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Y,a=Co();if(H){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Fl===null)throw Error(i(349));Q&127||Po(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,rs(Io.bind(null,r,o,e),[e]),r.flags|=2048,$o(9,{destroy:void 0},Fo.bind(null,r,o,n,t),null),n},useId:function(){var e=Co(),t=Fl.identifierPrefix;if(H){var n=wi,r=Ci;n=(r&~(1<<32-Pe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=lo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=po++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:bs,useFormState:Jo,useActionState:Jo,useOptimistic:function(e){var t=Co();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ds.bind(null,Y,!0,n),n.dispatch=t,[e,t]},useMemoCache:Oo,useCacheRefresh:function(){return Co().memoizedState=Cs.bind(null,Y)},useEffectEvent:function(e){var t=Co(),n={impl:e};return t.memoizedState=n,function(){if(Pl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Ns={readContext:Qi,use:Do,useCallback:fs,useContext:Qi,useEffect:is,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Ao,useRef:es,useState:function(){return Ao(ko)},useDebugValue:ds,useDeferredValue:function(e,t){return ms(wo(),io.memoizedState,e,t)},useTransition:function(){var e=Ao(ko)[0],t=wo().memoizedState;return[typeof e==`boolean`?e:Eo(e),t]},useSyncExternalStore:No,useId:xs,useHostTransitionStatus:bs,useFormState:Yo,useActionState:Yo,useOptimistic:function(e,t){return Bo(wo(),io,e,t)},useMemoCache:Oo,useCacheRefresh:Ss};Ns.useEffectEvent=os;var Ps={readContext:Qi,use:Do,useCallback:fs,useContext:Qi,useEffect:is,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Mo,useRef:es,useState:function(){return Mo(ko)},useDebugValue:ds,useDeferredValue:function(e,t){var n=wo();return io===null?X(n,e,t):ms(n,io.memoizedState,e,t)},useTransition:function(){var e=Mo(ko)[0],t=wo().memoizedState;return[typeof e==`boolean`?e:Eo(e),t]},useSyncExternalStore:No,useId:xs,useHostTransitionStatus:bs,useFormState:Qo,useActionState:Qo,useOptimistic:function(e,t){var n=wo();return io===null?(n.baseState=e,[e,n.queue.dispatch]):Bo(n,io,e,t)},useMemoCache:Oo,useCacheRefresh:Ss};Ps.useEffectEvent=os;function Fs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:m({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Is={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=du(),i=Ia(r);i.payload=t,n!=null&&(i.callback=n),t=La(e,i,r),t!==null&&(pu(t,e,r),q(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=du(),i=Ia(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=La(e,i,r),t!==null&&(pu(t,e,r),q(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=du(),r=Ia(n);r.tag=2,t!=null&&(r.callback=t),t=La(e,r,n),t!==null&&(pu(t,e,n),q(t,e,n))}};function Ls(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?!br(n,r)||!br(i,a):!0}function Rs(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&&Is.enqueueReplaceState(t,t.state,null)}function zs(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=m({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Bs(e){qr(e)}function Vs(e){console.error(e)}function Hs(e){qr(e)}function Us(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ws(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 Gs(e,t,n){return n=Ia(n),n.tag=3,n.payload={element:null},n.callback=function(){Us(e,t)},n}function Ks(e){return e=Ia(e),e.tag=3,e}function qs(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(){Ws(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ws(t,n,r),typeof i!=`function`&&(tu===null?tu=new Set([this]):tu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Js(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Yi(t,n,a,!0),n=Ja.current,n!==null){switch(n.tag){case 31:case 13:return Ya===null?Tu():n.alternate===null&&Hl===0&&(Hl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ya?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Wu(e,r,a)),!1;case 22:return n.flags|=65536,r===ya?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)),Wu(e,r,a)),!1}throw Error(i(435,n.tag))}return Wu(e,r,a),Tu(),!1}if(H)return t=Ja.current,t===null?(r!==Pi&&(t=Error(i(423),{cause:r}),Vi(hi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=hi(r,n),a=Gs(e.stateNode,r,a),Ra(e,a),Hl!==4&&(Hl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Pi&&(e=Error(i(422),{cause:r}),Vi(hi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=hi(o,n),Jl===null?Jl=[o]:Jl.push(o),Hl!==4&&(Hl=2),t===null)return!0;r=hi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Gs(n.stateNode,r,e),Ra(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`&&(tu===null||!tu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Ks(a),qs(a,e,n,r),Ra(n,a),!1}n=n.return}while(n!==null);return!1}var Ys=Error(i(461)),Xs=!1;function Zs(e,t,n,r){t.child=e===null?Na(t,null,n,r):Ma(t,e.child,n,r)}function Qs(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 Zi(t),r=go(e,t,n,o,a,i),s=bo(),e!==null&&!Xs?(xo(e,t,i),Sc(e,t,i)):(H&&s&&Di(t),t.flags|=1,Zs(e,t,r,i),t.child)}function $s(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!oi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,ec(e,t,a,r,i)):(e=li(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Cc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?br:n,n(o,r)&&e.ref===t.ref)return Sc(e,t,i)}return t.flags|=1,e=si(a,r),e.ref=t.ref,e.return=t,t.child=e}function ec(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(br(a,r)&&e.ref===t.ref){if(Xs=!1,t.pendingProps=r=a,Cc(e,i))e.flags&131072&&(Xs=!0);else return t.lanes=e.lanes,Sc(e,t,i)}}return cc(e,t,n,r,i)}function tc(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 rc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ha(t,a===null?null:a.cachePool),a===null?Ka():Ga(t,a),Qa(t);else return r=t.lanes=536870912,rc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ha(t,null),Ka(),$a(t)):(ha(t,a.cachePool),Ga(t,a),$a(t),t.memoizedState=null);return Zs(e,t,i,n),t.child}function nc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function rc(e,t,n,r,i){var a=ma();return a=a===null?null:{parent:ra._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ha(t,null),Ka(),Qa(t),e!==null&&Yi(e,t,r,!0),t.childLanes=i,null}function ic(e,t){return t=_c({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ac(e,t,n){return Ma(t,e.child,null,n),e=ic(t,t.pendingProps),e.flags|=2,eo(t),t.memoizedState=null,e}function oc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(H){if(r.mode===`hidden`)return e=ic(t,r),t.lanes=536870912,nc(null,e);if(Za(t),(e=ji)?(e=rf(e,Ni),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Si===null?null:{id:Ci,overflow:wi},retryLane:536870912,hydrationErrors:null},n=fi(e),n.return=t,t.child=n,Ai=t,ji=null)):e=null,e===null)throw Fi(t);return t.lanes=536870912,null}return ic(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Za(t),a){if(t.flags&256)t.flags&=-257,t=ac(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Xs||Yi(e,t,n,!1),a=(n&e.childLanes)!==0,Xs||a){if(r=Fl,r!==null&&(s=Ze(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ei(e,s),pu(r,e,s),Ys;Tu(),t=ac(e,t,n)}else e=o.treeContext,ji=cf(s.nextSibling),Ai=t,H=!0,Mi=null,Ni=!1,e!==null&&ki(t,e),t=ic(t,r),t.flags|=4096;return t}return e=si(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function sc(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 cc(e,t,n,r,i){return Zi(t),n=go(e,t,n,r,void 0,i),r=bo(),e!==null&&!Xs?(xo(e,t,i),Sc(e,t,i)):(H&&r&&Di(t),t.flags|=1,Zs(e,t,n,i),t.child)}function lc(e,t,n,r,i,a){return Zi(t),t.updateQueue=null,n=vo(t,r,n,i),_o(e),r=bo(),e!==null&&!Xs?(xo(e,t,a),Sc(e,t,a)):(H&&r&&Di(t),t.flags|=1,Zs(e,t,n,a),t.child)}function uc(e,t,n,r,i){if(Zi(t),t.stateNode===null){var a=ri,o=n.contextType;typeof o==`object`&&o&&(a=Qi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Is,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},K(t),o=n.contextType,a.context=typeof o==`object`&&o?Qi(o):ri,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Fs(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&&Is.enqueueReplaceState(a,a.state,null),Ba(t,r,a,i),za(),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=zs(n,s);a.props=c;var l=a.context,u=n.contextType;o=ri,typeof u==`object`&&u&&(o=Qi(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)&&Rs(t,a,r,o),Pa=!1;var f=t.memoizedState;a.state=f,Ba(t,r,a,i),za(),l=t.memoizedState,s||f!==l||Pa?(typeof d==`function`&&(Fs(t,n,d,r),l=t.memoizedState),(c=Pa||Ls(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,Fa(e,t),o=t.memoizedProps,u=zs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ri,typeof l==`object`&&l&&(c=Qi(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)&&Rs(t,a,r,c),Pa=!1,f=t.memoizedState,a.state=f,Ba(t,r,a,i),za();var p=t.memoizedState;o!==d||f!==p||Pa||e!==null&&e.dependencies!==null&&Xi(e.dependencies)?(typeof s==`function`&&(Fs(t,n,s,r),p=t.memoizedState),(u=Pa||Ls(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Xi(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,sc(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=Ma(t,e.child,null,i),t.child=Ma(t,null,n,i)):Zs(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Sc(e,t,i),e}function dc(e,t,n,r){return zi(),t.flags|=256,Zs(e,t,n,r),t.child}var fc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pc(e){return{baseLanes:e,cachePool:ga()}}function mc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Kl),e}function hc(e,t,n){var r=t.pendingProps,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(to.current&2)),s&&(a=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(H){if(a?Xa(t):$a(t),(e=ji)?(e=rf(e,Ni),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Si===null?null:{id:Ci,overflow:wi},retryLane:536870912,hydrationErrors:null},n=fi(e),n.return=t,t.child=n,Ai=t,ji=null)):e=null,e===null)throw Fi(t);return of(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?($a(t),a=t.mode,c=_c({mode:`hidden`,children:c},a),r=ui(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=pc(n),r.childLanes=mc(e,s,n),t.memoizedState=fc,nc(null,r)):(Xa(t),gc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(Xa(t),t.flags&=-257,t=vc(e,t,n)):t.memoizedState===null?($a(t),c=r.fallback,a=t.mode,r=_c({mode:`visible`,children:r.children},a),c=ui(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ma(t,e.child,null,n),r=t.child,r.memoizedState=pc(n),r.childLanes=mc(e,s,n),t.memoizedState=fc,t=nc(null,r)):($a(t),t.child=e.child,t.flags|=128,t=null);else if(Xa(t),of(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Vi({value:r,source:null,stack:null}),t=vc(e,t,n)}else if(Xs||Yi(e,t,n,!1),s=(n&e.childLanes)!==0,Xs||s){if(s=Fl,s!==null&&(r=Ze(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ei(e,r),pu(s,e,r),Ys;af(c)||Tu(),t=vc(e,t,n)}else af(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,ji=cf(c.nextSibling),Ai=t,H=!0,Mi=null,Ni=!1,e!==null&&ki(t,e),t=gc(t,r.children),t.flags|=4096);return t}return a?($a(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=si(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=ui(c,a,n,null),c.flags|=2):c=si(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,nc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=pc(n):(a=c.cachePool,a===null?a=ga():(l=ra._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=mc(e,s,n),t.memoizedState=fc,nc(e.child,r)):(Xa(t),n=e.child,e=n.sibling,n=si(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function gc(e,t){return t=_c({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function _c(e,t){return e=ai(22,e,null,t),e.lanes=0,e}function vc(e,t,n){return Ma(t,e.child,null,n),e=gc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function yc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),qi(e.return,t,n)}function bc(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 xc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=to.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,z(to,o),Zs(e,t,r,n),r=H?yi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&yc(e,n,t);else if(e.tag===19)yc(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`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&no(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),bc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&no(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}bc(t,!0,n,null,a,r);break;case`together`:bc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Sc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ul|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Yi(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=si(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=si(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Cc(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Xi(e)))}function wc(e,t,n){switch(t.tag){case 3:ce(t,t.stateNode.containerInfo),Gi(t,ra,e.memoizedState.cache),zi();break;case 27:case 5:B(t);break;case 4:ce(t,t.stateNode.containerInfo);break;case 10:Gi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Za(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Xa(t),e=Sc(e,t,n),e===null?null:e.sibling):hc(e,t,n):(Xa(t),t.flags|=128,null);Xa(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=(Yi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return xc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),z(to,to.current),r)break;return null;case 22:return t.lanes=0,tc(e,t,n,t.pendingProps);case 24:Gi(t,ra,e.memoizedState.cache)}return Sc(e,t,n)}function Tc(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Xs=!0;else{if(!Cc(e,n)&&!(t.flags&128))return Xs=!1,wc(e,t,n);Xs=!!(e.flags&131072)}}else Xs=!1,H&&t.flags&1048576&&Ei(t,yi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Sa(t.elementType),t.type=e,typeof e==`function`)oi(e)?(r=zs(e,r),t.tag=1,t=uc(null,t,e,r,n)):(t.tag=0,t=cc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=Qs(null,t,e,r,n);break a}if(a===D){t.tag=14,t=$s(null,t,e,r,n);break a}}throw t=N(e)||e,Error(i(306,t,``))}}return t;case 0:return cc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=zs(r,t.pendingProps),uc(e,t,r,a,n);case 3:a:{if(ce(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Fa(e,t),Ba(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Gi(t,ra,r),r!==o.cache&&Ji(t,[ra],n,!0),za(),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=dc(e,t,r,n);break a}if(r!==a){a=hi(Error(i(424)),t),Vi(a),t=dc(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(ji=cf(e.firstChild),Ai=t,H=!0,Mi=null,Ni=!0,n=Na(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(zi(),r===a){t=Sc(e,t,n);break a}Zs(e,t,r,n)}t=t.child}return t;case 26:return sc(e,t),e===null?(n=kf(t.type,null,t.pendingProps,null))?t.memoizedState=n:H||(n=t.type,e=t.pendingProps,r=Bd(oe.current).createElement(n),r[rt]=t,r[it]=e,Pd(r,n,e),gt(r),t.stateNode=r):t.memoizedState=kf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return B(t),e===null&&H&&(r=t.stateNode=ff(t.type,t.pendingProps,oe.current),Ai=t,Ni=!0,a=ji,Zd(t.type)?(lf=a,ji=cf(r.firstChild)):ji=a),Zs(e,t,t.pendingProps.children,n),sc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&H&&((a=r=ji)&&(r=tf(r,t.type,t.pendingProps,Ni),r===null?a=!1:(t.stateNode=r,Ai=t,ji=cf(r.firstChild),Ni=!1,a=!0)),a||Fi(t)),B(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Ud(a,o)?r=null:s!==null&&Ud(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=go(e,t,yo,null,null,n),Qf._currentValue=a),sc(e,t),Zs(e,t,r,n),t.child;case 6:return e===null&&H&&((e=n=ji)&&(n=nf(n,t.pendingProps,Ni),n===null?e=!1:(t.stateNode=n,Ai=t,ji=null,e=!0)),e||Fi(t)),null;case 13:return hc(e,t,n);case 4:return ce(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ma(t,null,r,n):Zs(e,t,r,n),t.child;case 11:return Qs(e,t,t.type,t.pendingProps,n);case 7:return Zs(e,t,t.pendingProps,n),t.child;case 8:return Zs(e,t,t.pendingProps.children,n),t.child;case 12:return Zs(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Gi(t,t.type,r.value),Zs(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Zi(t),a=Qi(a),r=r(a),t.flags|=1,Zs(e,t,r,n),t.child;case 14:return $s(e,t,t.type,t.pendingProps,n);case 15:return ec(e,t,t.type,t.pendingProps,n);case 19:return xc(e,t,n);case 31:return oc(e,t,n);case 22:return tc(e,t,n,t.pendingProps);case 24:return Zi(t),r=Qi(ra),e===null?(a=ma(),a===null&&(a=Fl,o=ia(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},K(t),Gi(t,ra,a)):((e.lanes&n)!==0&&(Fa(e,t),Ba(t,null,null,n),za()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Gi(t,ra,r),r!==a.cache&&Ji(t,[ra],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Gi(t,ra,r))),Zs(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Ec(e){e.flags|=4}function Dc(e,t,n,r,i){if((t=!!(e.mode&32))&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Su())e.flags|=8192;else throw Ca=ya,_a}}else e.flags&=-16777217}function Oc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Wf(t)){if(Su())e.flags|=8192;else throw Ca=ya,_a}}function kc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ge(),e.lanes|=t,ql|=t)}function Ac(e,t){if(!H)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function jc(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&65011712,r|=i.flags&65011712,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 Mc(e,t,n){var r=t.pendingProps;switch(Oi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jc(t),null;case 1:return jc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ki(ra),le(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ri(t)?Ec(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Bi())),jc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Ec(t),o===null?(jc(t),Dc(t,a,null,r,n)):(jc(t),Oc(t,o))):o?o===e.memoizedState?(jc(t),t.flags&=-16777217):(Ec(t),jc(t),Oc(t,o)):(e=e.memoizedProps,e!==r&&Ec(t),jc(t),Dc(t,a,e,r,n)),null;case 27:if(ue(t),n=oe.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ec(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return jc(t),null}e=ie.current,Ri(t)?Ii(t,e):(e=ff(a,r,n),t.stateNode=e,Ec(t))}return jc(t),null;case 5:if(ue(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ec(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return jc(t),null}if(o=ie.current,Ri(t))Ii(t,o);else{var s=Bd(oe.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[rt]=t,o[it]=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(Pd(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&&Ec(t)}}return jc(t),Dc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ec(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=oe.current,Ri(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ai,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[rt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||jd(e.nodeValue,n)),e||Fi(t,!0)}else e=Bd(e).createTextNode(r),e[rt]=t,t.stateNode=e}return jc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ri(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[rt]=t}else zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jc(t),e=!1}else n=Bi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(eo(t),t):(eo(t),null);if(t.flags&128)throw Error(i(558))}return jc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ri(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[rt]=t}else zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jc(t),a=!1}else a=Bi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(eo(t),t):(eo(t),null)}return eo(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),kc(t,t.updateQueue),jc(t),null);case 4:return le(),e===null&&xd(t.stateNode.containerInfo),jc(t),null;case 10:return Ki(t.type),jc(t),null;case 19:if(R(to),r=t.memoizedState,r===null)return jc(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)Ac(r,!1);else{if(Hl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=no(e),o!==null){for(t.flags|=128,Ac(r,!1),e=o.updateQueue,t.updateQueue=e,kc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ci(n,e),n=n.sibling;return z(to,to.current&1|2),H&&Ti(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&V()>$l&&(t.flags|=128,a=!0,Ac(r,!1),t.lanes=4194304)}}else{if(!a){if(e=no(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,kc(t,e),Ac(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!H)return jc(t),null}else 2*V()-r.renderingStartTime>$l&&n!==536870912&&(t.flags|=128,a=!0,Ac(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)}return r.tail===null?(jc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=V(),e.sibling=null,n=to.current,z(to,a?n&1|2:n&1),H&&Ti(t,r.treeForkCount),e);case 22:case 23:return eo(t),qa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(jc(t),t.subtreeFlags&6&&(t.flags|=8192)):jc(t),n=t.updateQueue,n!==null&&kc(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&&R(pa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ki(ra),jc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Nc(e,t){switch(Oi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ki(ra),le(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ue(t),null;case 31:if(t.memoizedState!==null){if(eo(t),t.alternate===null)throw Error(i(340));zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(eo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return R(to),null;case 4:return le(),null;case 10:return Ki(t.type),null;case 22:case 23:return eo(t),qa(),e!==null&&R(pa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ki(ra),null;case 25:return null;default:return null}}function Pc(e,t){switch(Oi(t),t.tag){case 3:Ki(ra),le();break;case 26:case 27:case 5:ue(t);break;case 4:le();break;case 31:t.memoizedState!==null&&eo(t);break;case 13:eo(t);break;case 19:R(to);break;case 10:Ki(t.type);break;case 22:case 23:eo(t),qa(),e!==null&&R(pa);break;case 24:Ki(ra)}}function Fc(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){Uu(t,t.return,e)}}function Ic(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){Uu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Uu(t,t.return,e)}}function Lc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ha(t,n)}catch(t){Uu(e,e.return,t)}}}function Rc(e,t,n){n.props=zs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Uu(e,t,n)}}function zc(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:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Uu(e,t,n)}}function Bc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Uu(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){Uu(e,t,n)}else n.current=null}}function Vc(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){Uu(e,e.return,t)}}function Hc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[it]=t}catch(t){Uu(e,e.return,t)}}function Uc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Wc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Uc(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&&Zd(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 Gc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Xt));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Gc(e,t,n),e=e.sibling;e!==null;)Gc(e,t,n),e=e.sibling}function Kc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Kc(e,t,n),e=e.sibling;e!==null;)Kc(e,t,n),e=e.sibling}function qc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[rt]=e,t[it]=n}catch(t){Uu(e,e.return,t)}}var Jc=!1,Yc=!1,Xc=!1,Zc=typeof WeakSet==`function`?WeakSet:Set,Qc=null;function $c(e,t){if(e=e.containerInfo,Rd=sp,e=wr(e),Tr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,Qc=t;Qc!==null;)if(t=Qc,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Qc=e;else for(;Qc!==null;){switch(t=Qc,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=zs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Uu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ef(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:ef(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,Qc=e;break}Qc=t.return}}function el(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:hl(e,n),r&4&&Fc(5,n);break;case 1:if(hl(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Uu(n,n.return,e)}else{var i=zs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Uu(n,n.return,e)}}}r&64&&Lc(n),r&512&&zc(n,n.return);break;case 3:if(hl(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{Ha(e,t)}catch(e){Uu(n,n.return,e)}}break;case 27:t===null&&r&4&&qc(n);case 26:case 5:hl(e,n),t===null&&r&4&&Vc(n),r&512&&zc(n,n.return);break;case 12:hl(e,n);break;case 31:hl(e,n),r&4&&ol(e,n);break;case 13:hl(e,n),r&4&&sl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=qu.bind(null,n),sf(e,n))));break;case 22:if(r=n.memoizedState!==null||Jc,!r){t=t!==null&&t.memoizedState!==null||Yc,i=Jc;var a=Yc;Jc=r,(Yc=t)&&!a?_l(e,n,!!(n.subtreeFlags&8772)):hl(e,n),Jc=i,Yc=a}break;case 30:break;default:hl(e,n)}}function tl(e){var t=e.alternate;t!==null&&(e.alternate=null,tl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&dt(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 nl=null,rl=!1;function il(e,t,n){for(n=n.child;n!==null;)al(e,t,n),n=n.sibling}function al(e,t,n){if(Me&&typeof Me.onCommitFiberUnmount==`function`)try{Me.onCommitFiberUnmount(je,n)}catch{}switch(n.tag){case 26:Yc||Bc(n,t),il(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Yc||Bc(n,t);var r=nl,i=rl;Zd(n.type)&&(nl=n.stateNode,rl=!1),il(e,t,n),pf(n.stateNode),nl=r,rl=i;break;case 5:Yc||Bc(n,t);case 6:if(r=nl,i=rl,nl=null,il(e,t,n),nl=r,rl=i,nl!==null){if(rl)try{(nl.nodeType===9?nl.body:nl.nodeName===`HTML`?nl.ownerDocument.body:nl).removeChild(n.stateNode)}catch(e){Uu(n,t,e)}else try{nl.removeChild(n.stateNode)}catch(e){Uu(n,t,e)}}break;case 18:nl!==null&&(rl?(e=nl,Qd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Np(e)):Qd(nl,n.stateNode));break;case 4:r=nl,i=rl,nl=n.stateNode.containerInfo,rl=!0,il(e,t,n),nl=r,rl=i;break;case 0:case 11:case 14:case 15:Ic(2,n,t),Yc||Ic(4,n,t),il(e,t,n);break;case 1:Yc||(Bc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Rc(n,t,r)),il(e,t,n);break;case 21:il(e,t,n);break;case 22:Yc=(r=Yc)||n.memoizedState!==null,il(e,t,n),Yc=r;break;default:il(e,t,n)}}function ol(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Np(e)}catch(e){Uu(t,t.return,e)}}}function sl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Np(e)}catch(e){Uu(t,t.return,e)}}function cl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Zc),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Zc),t;default:throw Error(i(435,e.tag))}}function ll(e,t){var n=cl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Ju.bind(null,e,t);t.then(r,r)}})}function ul(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Zd(c.type)){nl=c.stateNode,rl=!1;break a}break;case 5:nl=c.stateNode,rl=!1;break a;case 3:case 4:nl=c.stateNode.containerInfo,rl=!0;break a}c=c.return}if(nl===null)throw Error(i(160));al(o,s,a),nl=null,rl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)fl(t,e),t=t.sibling}var dl=null;function fl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ul(t,e),pl(e),r&4&&(Ic(3,e,e.return),Fc(3,e),Ic(5,e,e.return));break;case 1:ul(t,e),pl(e),r&512&&(Yc||n===null||Bc(n,n.return)),r&64&&Jc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=dl;if(ul(t,e),pl(e),r&512&&(Yc||n===null||Bc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null){if(r===null){if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[ut]||o[rt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Pd(o,r,n),o[rt]=e,gt(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Vf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[rt]=e,gt(o),r=o}e.stateNode=r}else Hf(a,e.type,e.stateNode)}else e.stateNode=If(a,r,e.memoizedProps)}else o===r?r===null&&e.stateNode!==null&&Hc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Hf(a,e.type,e.stateNode):If(a,r,e.memoizedProps))}break;case 27:ul(t,e),pl(e),r&512&&(Yc||n===null||Bc(n,n.return)),n!==null&&r&4&&Hc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ul(t,e),pl(e),r&512&&(Yc||n===null||Bc(n,n.return)),e.flags&32){a=e.stateNode;try{Ht(a,``)}catch(t){Uu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Hc(e,a,n===null?a:n.memoizedProps)),r&1024&&(Xc=!0);break;case 6:if(ul(t,e),pl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Uu(e,e.return,t)}}break;case 3:if(Bf=null,a=dl,dl=gf(t.containerInfo),ul(t,e),dl=a,pl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Np(t.containerInfo)}catch(t){Uu(e,e.return,t)}Xc&&(Xc=!1,ml(e));break;case 4:r=dl,dl=gf(e.stateNode.containerInfo),ul(t,e),pl(e),dl=r;break;case 12:ul(t,e),pl(e);break;case 31:ul(t,e),pl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ll(e,r)));break;case 13:ul(t,e),pl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Zl=V()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ll(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Jc,d=Yc;if(Jc=u||a,Yc=d||l,ul(t,e),Yc=d,Jc=u,pl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Jc||Yc||gl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Uu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Uu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?$d(m,!0):$d(l.stateNode,!1)}catch(e){Uu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ll(e,n))));break;case 19:ul(t,e),pl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ll(e,r)));break;case 30:break;case 21:break;default:ul(t,e),pl(e)}}function pl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Uc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Kc(e,Wc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Ht(o,``),n.flags&=-33),Kc(e,Wc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Gc(e,Wc(e),s);break;default:throw Error(i(161))}}catch(t){Uu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ml(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ml(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function hl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)el(e,t.alternate,t),t=t.sibling}function gl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ic(4,t,t.return),gl(t);break;case 1:Bc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Rc(t,t.return,n),gl(t);break;case 27:pf(t.stateNode);case 26:case 5:Bc(t,t.return),gl(t);break;case 22:t.memoizedState===null&&gl(t);break;case 30:gl(t);break;default:gl(t)}e=e.sibling}}function _l(e,t,n){for(n&&=!!(t.subtreeFlags&8772),t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:_l(i,a,n),Fc(4,a);break;case 1:if(_l(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Uu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Va(c[i],s)}catch(e){Uu(r,r.return,e)}}n&&o&64&&Lc(a),zc(a,a.return);break;case 27:qc(a);case 26:case 5:_l(i,a,n),n&&r===null&&o&4&&Vc(a),zc(a,a.return);break;case 12:_l(i,a,n);break;case 31:_l(i,a,n),n&&o&4&&ol(i,a);break;case 13:_l(i,a,n),n&&o&4&&sl(i,a);break;case 22:a.memoizedState===null&&_l(i,a,n),zc(a,a.return);break;case 30:break;default:_l(i,a,n)}t=t.sibling}}function vl(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&&aa(n))}function yl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&aa(e))}function bl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)xl(e,t,n,r),t=t.sibling}function xl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:bl(e,t,n,r),i&2048&&Fc(9,t);break;case 1:bl(e,t,n,r);break;case 3:bl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&aa(e)));break;case 12:if(i&2048){bl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Uu(t,t.return,e)}}else bl(e,t,n,r);break;case 31:bl(e,t,n,r);break;case 13:bl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?bl(e,t,n,r):(a._visibility|=2,Sl(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?bl(e,t,n,r):Cl(e,t),i&2048&&vl(o,t);break;case 24:bl(e,t,n,r),i&2048&&yl(t.alternate,t);break;default:bl(e,t,n,r)}}function Sl(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:Sl(a,o,s,c,i),Fc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Sl(a,o,s,c,i)):u._visibility&2?Sl(a,o,s,c,i):Cl(a,o),i&&l&2048&&vl(o.alternate,o);break;case 24:Sl(a,o,s,c,i),i&&l&2048&&yl(o.alternate,o);break;default:Sl(a,o,s,c,i)}t=t.sibling}}function Cl(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:Cl(n,r),i&2048&&vl(r.alternate,r);break;case 24:Cl(n,r),i&2048&&yl(r.alternate,r);break;default:Cl(n,r)}t=t.sibling}}var wl=8192;function Tl(e,t,n){if(e.subtreeFlags&wl)for(e=e.child;e!==null;)El(e,t,n),e=e.sibling}function El(e,t,n){switch(e.tag){case 26:Tl(e,t,n),e.flags&wl&&e.memoizedState!==null&&Gf(n,dl,e.memoizedState,e.memoizedProps);break;case 5:Tl(e,t,n);break;case 3:case 4:var r=dl;dl=gf(e.stateNode.containerInfo),Tl(e,t,n),dl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=wl,wl=16777216,Tl(e,t,n),wl=r):Tl(e,t,n));break;default:Tl(e,t,n)}}function Dl(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 Ol(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Qc=r,jl(r,e)}Dl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)kl(e),e=e.sibling}function kl(e){switch(e.tag){case 0:case 11:case 15:Ol(e),e.flags&2048&&Ic(9,e,e.return);break;case 3:Ol(e);break;case 12:Ol(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Al(e)):Ol(e);break;default:Ol(e)}}function Al(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Qc=r,jl(r,e)}Dl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ic(8,t,t.return),Al(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Al(t));break;default:Al(t)}e=e.sibling}}function jl(e,t){for(;Qc!==null;){var n=Qc;switch(n.tag){case 0:case 11:case 15:Ic(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:aa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Qc=r;else a:for(n=e;Qc!==null;){r=Qc;var i=r.sibling,a=r.return;if(tl(r),r===n){Qc=null;break a}if(i!==null){i.return=a,Qc=i;break a}Qc=a}}}var Ml={getCacheForType:function(e){var t=Qi(ra),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Qi(ra).controller.signal}},Nl=typeof WeakMap==`function`?WeakMap:Map,Pl=0,Fl=null,Z=null,Q=0,Il=0,Ll=null,Rl=!1,zl=!1,Bl=!1,Vl=0,Hl=0,Ul=0,Wl=0,Gl=0,Kl=0,ql=0,Jl=null,Yl=null,Xl=!1,Zl=0,Ql=0,$l=1/0,eu=null,tu=null,nu=0,ru=null,iu=null,au=0,ou=0,su=null,cu=null,lu=0,uu=null;function du(){return Pl&2&&Q!==0?Q&-Q:P.T===null?et():ud()}function fu(){if(Kl===0){if(!(Q&536870912)||H){var e=ze;ze<<=1,!(ze&3932160)&&(ze=262144),Kl=e}else Kl=536870912}return e=Ja.current,e!==null&&(e.flags|=32),Kl}function pu(e,t,n){(e===Fl&&(Il===2||Il===9)||e.cancelPendingCommit!==null)&&(bu(e,0),_u(e,Q,Kl,!1)),qe(e,n),Pl&2&&e===Fl||(e===Fl&&(!(Pl&2)&&(Wl|=n),Hl===4&&_u(e,Q,Kl,!1)),nd(e))}function mu(e,t,n){if(Pl&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||Ue(e,t),a=r?Ou(e,t):Eu(e,t,!0),o=r;do{if(a===0){zl&&!r&&_u(e,t,0,!1);break}if(n=e.current.alternate,o&&!gu(n))a=Eu(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=Jl;var l=c.current.memoizedState.isDehydrated;if(l&&(bu(c,s).flags|=256),s=Eu(c,s,!1),s!==2){if(Bl&&!l){c.errorRecoveryDisabledLanes|=o,Wl|=o,a=4;break a}o=Yl,Yl=a,o!==null&&(Yl===null?Yl=o:Yl.push.apply(Yl,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){bu(e,0),_u(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)break;case 6:_u(r,t,Kl,!Rl);break a;case 2:Yl=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=Zl+300-V(),10<a)){if(_u(r,t,Kl,!Rl),He(r,0,!0)!==0)break a;au=t,r.timeoutHandle=Kd(hu.bind(null,r,n,Yl,eu,Xl,t,Kl,Wl,ql,Rl,o,`Throttled`,-0,0),a);break a}hu(r,n,Yl,eu,Xl,t,Kl,Wl,ql,Rl,o,null,-0,0)}break}}while(1);nd(e)}function hu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Xt},El(t,a,d);var m=(a&62914560)===a?Zl-V():(a&4194048)===a?Ql-V():0;if(m=qf(d,m),m!==null){au=a,e.cancelPendingCommit=m(Fu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),_u(e,a,o,!l);return}}Fu(e,t,a,n,r,i,o,s,c)}function gu(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(!yr(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 _u(e,t,n,r){t&=~Gl,t&=~Wl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Pe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Ye(e,n,t)}function vu(){return Pl&6?!0:(rd(0,!1),!1)}function yu(){if(Z!==null){if(Il===0)var e=Z.return;else e=Z,Wi=Ui=null,So(e),Ea=null,Da=0,e=Z;for(;e!==null;)Pc(e.alternate,e),e=e.return;Z=null}}function bu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,qd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),au=0,yu(),Fl=e,Z=n=si(e.current,null),Q=t,Il=0,Ll=null,Rl=!1,zl=Ue(e,t),Bl=!1,ql=Kl=Gl=Wl=Ul=Hl=0,Yl=Jl=null,Xl=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Pe(r),a=1<<i;t|=e[i],r&=~a}return Vl=t,Zr(),n}function xu(e,t){Y=null,P.H=js,t===G||t===va?(t=wa(),Il=3):t===_a?(t=wa(),Il=4):Il=t===Ys?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Ll=t,Z===null&&(Hl=1,Us(e,hi(t,e.current)))}function Su(){var e=Ja.current;return e===null?!0:(Q&4194048)===Q?Ya===null:(Q&62914560)===Q||Q&536870912?e===Ya:!1}function Cu(){var e=P.H;return P.H=js,e===null?js:e}function wu(){var e=P.A;return P.A=Ml,e}function Tu(){Hl=4,Rl||(Q&4194048)!==Q&&Ja.current!==null||(zl=!0),!(Ul&134217727)&&!(Wl&134217727)||Fl===null||_u(Fl,Q,Kl,!1)}function Eu(e,t,n){var r=Pl;Pl|=2;var i=Cu(),a=wu();(Fl!==e||Q!==t)&&(eu=null,bu(e,t)),t=!1;var o=Hl;a:do try{if(Il!==0&&Z!==null){var s=Z,c=Ll;switch(Il){case 8:yu(),o=6;break a;case 3:case 2:case 9:case 6:Ja.current===null&&(t=!0);var l=Il;if(Il=0,Ll=null,Mu(e,s,c,l),n&&zl){o=0;break a}break;default:l=Il,Il=0,Ll=null,Mu(e,s,c,l)}}Du(),o=Hl;break}catch(t){xu(e,t)}while(1);return t&&e.shellSuspendCounter++,Wi=Ui=null,Pl=r,P.H=i,P.A=a,Z===null&&(Fl=null,Q=0,Zr()),o}function Du(){for(;Z!==null;)Au(Z)}function Ou(e,t){var n=Pl;Pl|=2;var r=Cu(),a=wu();Fl!==e||Q!==t?(eu=null,$l=V()+500,bu(e,t)):zl=Ue(e,t);a:do try{if(Il!==0&&Z!==null){t=Z;var o=Ll;b:switch(Il){case 1:Il=0,Ll=null,Mu(e,t,o,1);break;case 2:case 9:if(ba(o)){Il=0,Ll=null,ju(t);break}t=function(){Il!==2&&Il!==9||Fl!==e||(Il=7),nd(e)},o.then(t,t);break a;case 3:Il=7;break a;case 4:Il=5;break a;case 7:ba(o)?(Il=0,Ll=null,ju(t)):(Il=0,Ll=null,Mu(e,t,o,7));break;case 5:var s=null;switch(Z.tag){case 26:s=Z.memoizedState;case 5:case 27:var c=Z;if(s?Wf(s):c.stateNode.complete){Il=0,Ll=null;var l=c.sibling;if(l!==null)Z=l;else{var u=c.return;u===null?Z=null:(Z=u,Nu(u))}break b}}Il=0,Ll=null,Mu(e,t,o,5);break;case 6:Il=0,Ll=null,Mu(e,t,o,6);break;case 8:yu(),Hl=6;break a;default:throw Error(i(462))}}ku();break}catch(t){xu(e,t)}while(1);return Wi=Ui=null,P.H=r,P.A=a,Pl=n,Z===null?(Fl=null,Q=0,Zr(),Hl):0}function ku(){for(;Z!==null&&!xe();)Au(Z)}function Au(e){var t=Tc(e.alternate,e,Vl);e.memoizedProps=e.pendingProps,t===null?Nu(e):Z=t}function ju(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=lc(n,t,t.pendingProps,t.type,void 0,Q);break;case 11:t=lc(n,t,t.pendingProps,t.type.render,t.ref,Q);break;case 5:So(t);default:Pc(n,t),t=Z=ci(t,Vl),t=Tc(n,t,Vl)}e.memoizedProps=e.pendingProps,t===null?Nu(e):Z=t}function Mu(e,t,n,r){Wi=Ui=null,So(t),Ea=null,Da=0;var i=t.return;try{if(Js(e,i,t,n,Q)){Hl=1,Us(e,hi(n,e.current)),Z=null;return}}catch(t){if(i!==null)throw Z=i,t;Hl=1,Us(e,hi(n,e.current)),Z=null;return}t.flags&32768?(H||r===1?e=!0:zl||Q&536870912?e=!1:(Rl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Ja.current,r!==null&&r.tag===13&&(r.flags|=16384))),Pu(t,e)):Nu(t)}function Nu(e){var t=e;do{if(t.flags&32768){Pu(t,Rl);return}e=t.return;var n=Mc(t.alternate,t,Vl);if(n!==null){Z=n;return}if(t=t.sibling,t!==null){Z=t;return}Z=t=e}while(t!==null);Hl===0&&(Hl=5)}function Pu(e,t){do{var n=Nc(e.alternate,e);if(n!==null){n.flags&=32767,Z=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Z=e;return}Z=e=n}while(e!==null);Hl=6,Z=null}function Fu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Bu();while(nu!==0);if(Pl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Xr,Je(e,n,o,s,c,l),e===Fl&&(Z=Fl=null,Q=0),iu=t,ru=e,au=n,ou=o,su=a,cu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Yu(Ee,function(){return Vu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=P.T,P.T=null,a=F.p,F.p=2,s=Pl,Pl|=4;try{$c(e,t,n)}finally{Pl=s,F.p=a,P.T=r}}nu=1,Iu(),Lu(),Ru()}}function Iu(){if(nu===1){nu=0;var e=ru,t=iu,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=Pl;Pl|=4;try{fl(t,e);var a=zd,o=wr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Cr(s.ownerDocument.documentElement,s)){if(c!==null&&Tr(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 _=Sr(s,h),v=Sr(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}}sp=!!Rd,zd=Rd=null}finally{Pl=i,F.p=r,P.T=n}}e.current=t,nu=2}}function Lu(){if(nu===2){nu=0;var e=ru,t=iu,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=Pl;Pl|=4;try{el(e,t.alternate,t)}finally{Pl=i,F.p=r,P.T=n}}nu=3}}function Ru(){if(nu===4||nu===3){nu=0,Se();var e=ru,t=iu,n=au,r=cu;t.subtreeFlags&10256||t.flags&10256?nu=5:(nu=0,iu=ru=null,zu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(tu=null),$e(n),t=t.stateNode,Me&&typeof Me.onCommitFiberRoot==`function`)try{Me.onCommitFiberRoot(je,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=P.T,i=F.p,F.p=2,P.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{P.T=t,F.p=i}}au&3&&Bu(),nd(e),i=e.pendingLanes,n&261930&&i&42?e===uu?lu++:(lu=0,uu=e):lu=0,rd(0,!1)}}function zu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,aa(t)))}function Bu(){return Iu(),Lu(),Ru(),Vu()}function Vu(){if(nu!==5)return!1;var e=ru,t=ou;ou=0;var n=$e(au),r=P.T,a=F.p;try{F.p=32>n?32:n,P.T=null,n=su,su=null;var o=ru,s=au;if(nu=0,iu=ru=null,au=0,Pl&6)throw Error(i(331));var c=Pl;if(Pl|=4,kl(o.current),xl(o,o.current,s,n),Pl=c,rd(0,!1),Me&&typeof Me.onPostCommitFiberRoot==`function`)try{Me.onPostCommitFiberRoot(je,o)}catch{}return!0}finally{F.p=a,P.T=r,zu(e,t)}}function Hu(e,t,n){t=hi(n,t),t=Gs(e.stateNode,t,2),e=La(e,t,2),e!==null&&(qe(e,2),nd(e))}function Uu(e,t,n){if(e.tag===3)Hu(e,e,n);else for(;t!==null;){if(t.tag===3){Hu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(tu===null||!tu.has(r))){e=hi(n,e),n=Ks(2),r=La(t,n,2),r!==null&&(qs(n,r,t,e),qe(r,2),nd(r));break}}t=t.return}}function Wu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Nl;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)||(Bl=!0,i.add(n),e=Gu.bind(null,e,t,n),t.then(e,e))}function Gu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Fl===e&&(Q&n)===n&&(Hl===4||Hl===3&&(Q&62914560)===Q&&300>V()-Zl?!(Pl&2)&&bu(e,0):Gl|=n,ql===Q&&(ql=0)),nd(e)}function Ku(e,t){t===0&&(t=Ge()),e=ei(e,t),e!==null&&(qe(e,t),nd(e))}function qu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ku(e,n)}function Ju(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),Ku(e,n)}function Yu(e,t){return ye(e,t)}var Xu=null,Zu=null,Qu=!1,$u=!1,ed=!1,td=0;function nd(e){e!==Zu&&e.next===null&&(Zu===null?Xu=Zu=e:Zu=Zu.next=e),$u=!0,Qu||(Qu=!0,ld())}function rd(e,t){if(!ed&&$u){ed=!0;do for(var n=!1,r=Xu;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-Pe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,cd(r,a))}else a=Q,a=He(r,r===Fl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ue(r,a)||(n=!0,cd(r,a))}r=r.next}while(n);ed=!1}}function id(){ad()}function ad(){$u=Qu=!1;var e=0;td!==0&&Gd()&&(e=td);for(var t=V(),n=null,r=Xu;r!==null;){var i=r.next,a=od(r,t);a===0?(r.next=null,n===null?Xu=i:n.next=i,i===null&&(Zu=n)):(n=r,(e!==0||a&3)&&($u=!0)),r=i}nu!==0&&nu!==5||rd(e,!1),td!==0&&(td=0)}function od(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Pe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=We(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Fl,n=Q,n=He(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Il===2||Il===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&be(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ue(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&be(r),$e(n)){case 2:case 8:n=Te;break;case 32:n=Ee;break;case 268435456:n=Oe;break;default:n=Ee}return r=sd.bind(null,e),n=ye(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&be(r),e.callbackPriority=2,e.callbackNode=null,2}function sd(e,t){if(nu!==0&&nu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Bu()&&e.callbackNode!==n)return null;var r=Q;return r=He(e,e===Fl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(mu(e,r,t),od(e,V()),e.callbackNode!=null&&e.callbackNode===n?sd.bind(null,e):null)}function cd(e,t){if(Bu())return null;mu(e,t,!0)}function ld(){Yd(function(){Pl&6?ye(we,id):ad()})}function ud(){if(td===0){var e=ca;e===0&&(e=Re,Re<<=1,!(Re&261888)&&(Re=256)),td=e}return td}function dd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Yt(``+e)}function fd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function pd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=dd((i[it]||null).action),o=r.submitter;o&&(t=(t=o[it]||null)?dd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new vn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(td!==0){var e=o?fd(i,o):new FormData(i);_s(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?fd(i,o):new FormData(i),_s(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var md=0;md<Gr.length;md++){var hd=Gr[md];Kr(hd.toLowerCase(),`on`+(hd[0].toUpperCase()+hd.slice(1)))}Kr(Lr,`onAnimationEnd`),Kr(Rr,`onAnimationIteration`),Kr(zr,`onAnimationStart`),Kr(`dblclick`,`onDoubleClick`),Kr(`focusin`,`onFocus`),Kr(`focusout`,`onBlur`),Kr(Br,`onTransitionRun`),Kr(Vr,`onTransitionStart`),Kr(Hr,`onTransitionCancel`),Kr(Ur,`onTransitionEnd`),bt(`onMouseEnter`,[`mouseout`,`mouseover`]),bt(`onMouseLeave`,[`mouseout`,`mouseover`]),bt(`onPointerEnter`,[`pointerout`,`pointerover`]),bt(`onPointerLeave`,[`pointerout`,`pointerover`]),yt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),yt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),yt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),yt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),yt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),yt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var gd=`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(` `),_d=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(gd));function vd(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){qr(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){qr(e)}i.currentTarget=null,a=c}}}}function $(e,t){var n=t[ot];n===void 0&&(n=t[ot]=new Set);var r=e+`__bubble`;n.has(r)||(Sd(t,e,2,!1),n.add(r))}function yd(e,t,n){var r=0;t&&(r|=4),Sd(n,e,r,t)}var bd=`_reactListening`+Math.random().toString(36).slice(2);function xd(e){if(!e[bd]){e[bd]=!0,_t.forEach(function(t){t!==`selectionchange`&&(_d.has(t)||yd(t,!1,e),yd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bd]||(t[bd]=!0,yd(`selectionchange`,!1,t))}}function Sd(e,t,n,r){switch(mp(t)){case 2:var i=cp;break;case 8:i=lp;break;default:i=up}n=i.bind(null,t,n,e),i=void 0,!sn||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 Cd(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=ft(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}rn(function(){var r=a,i=Qt(n),s=[];a:{var c=Wr.get(e);if(c!==void 0){var l=vn,u=e;switch(e){case`keypress`:if(pn(n)===0)break a;case`keydown`:case`keyup`:l=In;break;case`focusin`:u=`focus`,l=Dn;break;case`focusout`:u=`blur`,l=Dn;break;case`beforeblur`:case`afterblur`:l=Dn;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=Tn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=En;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Rn;break;case Lr:case Rr:case zr:l=On;break;case Ur:l=zn;break;case`scroll`:case`scrollend`:l=bn;break;case`wheel`:l=Bn;break;case`copy`:case`cut`:case`paste`:l=kn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Ln;break;case`toggle`:case`beforetoggle`:l=Vn}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=an(m,p),g!=null&&d.push(wd(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(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==Zt&&(u=n.relatedTarget||n.fromElement)&&(ft(u)||u[at]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?ft(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Tn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Ln,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:mt(l),h=u==null?c:mt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,ft(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Ed,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Dd(s,c,l,d,!1),u!==null&&f!==null&&Dd(s,f,u,d,!0)}}a:{if(c=r?mt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=sr;else if(tr(c)){if(cr)v=_r;else{v=hr;var y=mr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Kt(r.elementType)&&(v=sr):v=gr;if(v&&=v(e,r)){nr(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Rt(c,`number`,c.value)}switch(y=r?mt(r):window,e){case`focusin`:(tr(y)||y.contentEditable===`true`)&&(Dr=y,Or=r,kr=null);break;case`focusout`:kr=Or=Dr=null;break;case`mousedown`:Ar=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Ar=!1,jr(s,n,i);break;case`selectionchange`:if(Er)break;case`keydown`:case`keyup`:jr(s,n,i)}var b;if(Un)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Zn?Yn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Kn&&n.locale!==`ko`&&(Zn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Zn&&(b=fn()):(ln=i,un=`value`in ln?ln.value:ln.textContent,Zn=!0)),y=Td(r,x),0<y.length&&(x=new An(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Xn(n),b!==null&&(x.data=b)))),(b=Gn?Qn(e,n):$n(e,n))&&(x=Td(r,`onBeforeInput`),0<x.length&&(y=new An(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),pd(s,e,r,n,i)}vd(s,t)})}function wd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Td(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=an(e,n),i!=null&&r.unshift(wd(e,i,a)),i=an(e,t),i!=null&&r.push(wd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Ed(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Dd(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=an(n,a),l!=null&&o.unshift(wd(n,l,c))):i||(l=an(n,a),l!=null&&o.push(wd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Od=/\r\n?/g,kd=/\u0000|\uFFFD/g;function Ad(e){return(typeof e==`string`?e:``+e).replace(Od,`
10
+ `).replace(kd,``)}function jd(e,t){return t=Ad(t),Ad(e)===t}function Md(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Ht(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Ht(e,``+r);break;case`className`:Et(e,`class`,r);break;case`tabIndex`:Et(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Et(e,n,r);break;case`style`:Gt(e,r,o);break;case`data`:if(t!==`object`){Et(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=Yt(``+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`&&Md(e,t,`name`,a.name,a,null),Md(e,t,`formEncType`,a.formEncType,a,null),Md(e,t,`formMethod`,a.formMethod,a,null),Md(e,t,`formTarget`,a.formTarget,a,null)):(Md(e,t,`encType`,a.encType,a,null),Md(e,t,`method`,a.method,a,null),Md(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Yt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Xt);break;case`onScroll`:r!=null&&$(`scroll`,e);break;case`onScrollEnd`:r!=null&&$(`scrollend`,e);break;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));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=Yt(``+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`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`:$(`beforetoggle`,e),$(`toggle`,e),Tt(e,`popover`,r);break;case`xlinkActuate`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Dt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Dt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Dt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Tt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=qt.get(n)||n,Tt(e,n,r))}}function Nd(e,t,n,r,a,o){switch(n){case`style`:Gt(e,r,o);break;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));e.innerHTML=n}}break;case`children`:typeof r==`string`?Ht(e,r):(typeof r==`number`||typeof r==`bigint`)&&Ht(e,``+r);break;case`onScroll`:r!=null&&$(`scroll`,e);break;case`onScrollEnd`:r!=null&&$(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Xt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!vt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[it]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Tt(e,n,r)}}}function Pd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:$(`error`,e),$(`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:Md(e,t,o,s,n,null)}}a&&Md(e,t,`srcSet`,n.srcSet,n,null),r&&Md(e,t,`src`,n.src,n,null);return;case`input`:$(`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:Md(e,t,r,d,n,null)}}Lt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in $(`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:Md(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&zt(e,!!r,n,!0):zt(e,!!r,t,!1);return;case`textarea`:for(s in $(`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:Md(e,t,s,c,n,null)}Vt(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:Md(e,t,l,r,n,null)}return;case`dialog`:$(`beforetoggle`,e),$(`toggle`,e),$(`cancel`,e),$(`close`,e);break;case`iframe`:case`object`:$(`load`,e);break;case`video`:case`audio`:for(r=0;r<gd.length;r++)$(gd[r],e);break;case`image`:$(`error`,e),$(`load`,e);break;case`details`:$(`toggle`,e);break;case`embed`:case`source`:case`link`:$(`error`,e),$(`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:Md(e,t,u,r,n,null)}return;default:if(Kt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Nd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Md(e,t,c,r,n,null))}function Fd(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)||Md(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`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Md(e,t,p,m,r,f)}}It(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)||Md(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`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Md(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?zt(e,!!n,n?[]:``,!1):zt(e,!!n,t,!0)):zt(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:Md(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`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Md(e,t,s,a,r,o)}Bt(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:Md(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`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Md(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)&&Md(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:Md(e,t,u,p,r,m)}return;default:if(Kt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Nd(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||Nd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Md(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||Md(e,t,f,p,r,m)}function Id(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ld(){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&&Id(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&&Id(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 Rd=null,zd=null;function Bd(e){return e.nodeType===9?e:e.ownerDocument}function Vd(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 Hd(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 Ud(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 Wd=null;function Gd(){var e=window.event;return e&&e.type===`popstate`?e!==Wd&&(Wd=e,!0):(Wd=null,!1)}var Kd=typeof setTimeout==`function`?setTimeout:void 0,qd=typeof clearTimeout==`function`?clearTimeout:void 0,Jd=typeof Promise==`function`?Promise:void 0,Yd=typeof queueMicrotask==`function`?queueMicrotask:Jd===void 0?Kd:function(e){return Jd.resolve(null).then(e).catch(Xd)};function Xd(e){setTimeout(function(){throw e})}function Zd(e){return e===`head`}function Qd(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),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)pf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,pf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ut]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&pf(e.ownerDocument.body)}n=i}while(n);Np(t)}function $d(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 ef(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`:ef(n),dt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tf(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[ut])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=cf(e.nextSibling),e===null)break}return null}function nf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cf(e.nextSibling),e===null))return null;return e}function rf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cf(e.nextSibling),e===null))return null;return e}function af(e){return e.data===`$?`||e.data===`$~`}function of(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function sf(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 cf(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 lf=null;function uf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return cf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function df(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 ff(e,t,n){switch(t=Bd(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 pf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);dt(e)}var mf=new Map,hf=new Set;function gf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _f=F.d;F.d={f:vf,r:yf,D:Sf,C:Cf,L:wf,m:Tf,X:Df,S:Ef,M:Of};function vf(){var e=_f.f(),t=vu();return e||t}function yf(e){var t=pt(e);t!==null&&t.tag===5&&t.type===`form`?ys(t):_f.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Ft(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),gt(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Ft(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Ft(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Ft(n.imageSizes)+`"]`)):i+=`[href="`+Ft(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),gt(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Ft(r)+`"][href="`+Ft(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),gt(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=ht(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);gt(c),Pd(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,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=ht(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=m({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),gt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=ht(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),gt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var a=(a=oe.current)?gf(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`?(t=Af(n.href),n=ht(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,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=Af(n.href);var o=ht(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(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),o||Nf(a,e,n,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`?(t=Pf(n),n=ht(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Af(e){return`href="`+Ft(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),gt(t),e.head.appendChild(t))}function Pf(e){return`[src="`+Ft(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Ft(n.href)+`"]`);if(r)return t.instance=r,gt(r),r;var a=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),gt(r),Pd(r,`style`,a),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Af(n.href);var o=e.querySelector(jf(a));if(o)return t.state.loading|=4,t.instance=o,gt(o),o;r=Mf(n),(a=mf.get(a))&&Rf(r,a),o=(e.ownerDocument||e).createElement(`link`),gt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(a=e.querySelector(Ff(o)))?(t.instance=a,gt(a),a):(r=n,(a=mf.get(o))&&(r=m({},n),zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),gt(a),Pd(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,Lf(r,n.precedence,e));return t.instance}function Lf(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 Rf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Bf=null;function Vf(e,t,n){if(Bf===null){var r=new Map,i=Bf=new Map;i.set(n,r)}else i=Bf,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[ut]||a[rt]||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 Hf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Uf(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 Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(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=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,gt(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),gt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(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=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Ld());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.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=Jf.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 Qf={$$typeof:C,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function $f(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=Ke(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ke(0),this.hiddenUpdates=Ke(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ai(3,null,null,t),e.current=a,a.stateNode=e,t=ia(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},K(a),e}function tp(e){return e?(e=ri,e):ri}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=Ia(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=La(e,r,t),n!==null&&(pu(n,e,t),q(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=ei(e,67108864);t!==null&&pu(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=du();t=Qe(t);var n=ei(e,t);n!==null&&pu(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=2,up(e,t,n,r)}finally{F.p=a,P.T=i}}function lp(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=8,up(e,t,n,r)}finally{F.p=a,P.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)Cd(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=pt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ve(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Pe(o);s.entanglements[1]|=c,o&=~c}nd(a),!(Pl&6)&&($l=V()+500,rd(0,!1))}}break;case 31:case 13:s=ei(a,2),s!==null&&pu(s,a,2),vu(),ip(a,2)}if(a=dp(r),a===null&&Cd(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Cd(e,t,r,null,n)}}function dp(e){return e=Qt(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=ft(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 fp=e,null}function mp(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`resize`: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`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`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ce()){case we:return 2;case Te:return 8;case Ee:case De:return 32;case Oe:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`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 Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(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=pt(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=ft(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(){op(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,tt(e.priority,function(){op(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 Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Zt=r,n.target.dispatchEvent(r),Zt=null}else return t=pt(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,n){e.blockedOn===n&&(e.blockedOn=null,hp||(hp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jp===e&&(jp=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(pp(r||n)===null)continue;break}var a=pt(n);a!==null&&(e.splice(t,3),t-=3,_s(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.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[it]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[it]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){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 Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;np(n,du(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),vu(),t[at]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=n.version;if(Lp!==`19.2.7`)throw Error(i(527,Lp,`19.2.7`));F.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 Rp={bundleType:0,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:P,reconcilerVersion:`19.2.7`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{je=zp.inject(Rp),Me=zp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Bs,s=Vs,c=Hs;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=ep(e,1,!1,null,null,n,r,null,o,s,c,Pp),e[at]=t.current,xd(e),new Fp(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=l(d(),1),y=_(),b=`forgeqe-web-token`,x=``;function S(e){return/(?:^#|&)token=([A-Za-z0-9]+)(?:&|$)/.exec(e)?.[1]}function C(){let e=S(location.hash);if(!e)return!1;let t=e!==T();x=e;try{sessionStorage.setItem(b,x)}catch{}return history.replaceState(null,``,`${location.pathname}${location.search}#/`),t}function w(){window.addEventListener(`hashchange`,()=>{C()&&location.reload()})}function T(){if(x)return x;try{return sessionStorage.getItem(b)||``}catch{return``}}var E=`forgeqe-web-signed-out`,D=`ForgeQE web does not accept this page's sign-in: it was started again, with a new token. Open the address it printed last (with its #token=…) in this tab.`,O=class extends Error{status;constructor(e,t){super(e),this.status=t}};async function k(e,t,n){let r;try{r=await fetch(t,{method:e,headers:{Authorization:`Bearer ${T()}`,...n===void 0?{}:{"Content-Type":`application/json`}},body:n===void 0?void 0:JSON.stringify(n)})}catch{throw new O(`ForgeQE web is not running. Start it in your project folder with forgeqe web, then open the address it prints.`,0)}let i=await r.json().catch(()=>({}));if(r.status===401)throw window.dispatchEvent(new Event(E)),new O(D,401);if(!r.ok)throw new O(i.error||`The request failed (${r.status}).`,r.status);return i}var A={settings:()=>k(`GET`,`/api/settings`),save:(e,t,n)=>k(`PUT`,`/api/settings/${e}`,{value:t,version:n}),saveText:(e,t,n,r)=>k(`PUT`,`/api/settings/${e}`,{text:t,env:n,version:r}),splitEnvironments:()=>k(`PUT`,`/api/settings/split`,{}),saveGrid:(e,t,n)=>k(`PUT`,`/api/settings/grid`,{grid:e,value:t,version:n}),test:(e,t,n,r)=>k(`POST`,`/api/test`,{kind:e,id:t,settings:n,values:r}),saveSecrets:e=>k(`PUT`,`/api/secrets`,{values:e}),saveGuardrails:(e,t)=>k(`PUT`,`/api/settings/guardrails`,{rules:e,version:t})},j={state:()=>k(`GET`,`/api/setup`),machine:()=>k(`GET`,`/api/setup/machine`),folders:e=>k(`GET`,`/api/folders${e?`?path=${encodeURIComponent(e)}`:``}`),newFolder:(e,t)=>k(`POST`,`/api/folders`,{parent:e,name:t}),open:e=>k(`PUT`,`/api/project`,{path:e}),init:()=>k(`POST`,`/api/project/init`),run:()=>k(`POST`,`/api/setup/run`)},M={get:()=>k(`GET`,`/api/fx`)},ee={list:()=>k(`GET`,`/api/background`)},N={prompts:()=>k(`GET`,`/api/prompts`),addTeamPrompt:e=>k(`POST`,`/api/prompts/team`,e),saveTeamPrompt:(e,t)=>k(`PUT`,`/api/prompts/team/${encodeURIComponent(e)}`,t),deleteTeamPrompt:e=>k(`DELETE`,`/api/prompts/team/${encodeURIComponent(e)}`),agentPrompt:e=>k(`GET`,`/api/prompts/agent/${encodeURIComponent(e)}`),prompt:e=>k(`GET`,`/api/prompts/${encodeURIComponent(e)}`),savePrompt:(e,t)=>k(`PUT`,`/api/prompts/${encodeURIComponent(e)}`,{text:t}),resetPrompt:e=>k(`DELETE`,`/api/prompts/${encodeURIComponent(e)}`),skills:()=>k(`GET`,`/api/skills`),skill:e=>k(`GET`,`/api/skills/${encodeURIComponent(e)}`),addSkill:e=>k(`POST`,`/api/skills`,e),saveSkill:(e,t)=>k(`PUT`,`/api/skills/${encodeURIComponent(e)}`,t),removeSkill:e=>k(`DELETE`,`/api/skills/${encodeURIComponent(e)}`),registry:()=>k(`GET`,`/api/registry`),logs:()=>k(`GET`,`/api/logs`),log:e=>k(`GET`,`/api/logs/${encodeURIComponent(e)}`),audit:()=>k(`GET`,`/api/audit`),tokenomics:()=>k(`GET`,`/api/tokenomics`)},te={start:(e,t)=>k(`POST`,`/api/chats`,{text:e,...t}),list:()=>k(`GET`,`/api/chats`),events:(e,t,n)=>k(`GET`,`/api/chats/${encodeURIComponent(e)}?after=${t}${n?`&wait=1`:``}`),send:(e,t)=>k(`POST`,`/api/chats/${encodeURIComponent(e)}/messages`,{text:t}),answer:(e,t,n)=>k(`POST`,`/api/chats/${encodeURIComponent(e)}/answer`,{ask:t,choice:n}),proceed:(e,t,n)=>k(`POST`,`/api/chats/${encodeURIComponent(e)}/continue`,{wait:t,ok:n}),stop:e=>k(`POST`,`/api/chats/${encodeURIComponent(e)}/stop`,{}),settings:(e,t)=>k(`POST`,`/api/chats/${encodeURIComponent(e)}/settings`,t),close:e=>k(`DELETE`,`/api/chats/${encodeURIComponent(e)}`)},P={knowledge:()=>k(`GET`,`/api/knowledge`),knowledgeFile:e=>k(`GET`,`/api/knowledge/file?rel=${encodeURIComponent(e)}`),saveKnowledgeFile:(e,t)=>k(`PUT`,`/api/knowledge/file`,{rel:e,text:t}),memory:()=>k(`GET`,`/api/memory`),clearMemory:e=>k(`POST`,`/api/memory/clear`,{...e?{target:e.name,kind:e.kind}:{},confirmed:!0})},F={get:()=>k(`GET`,`/api/workspace`)},ne={open:e=>k(`POST`,`/api/files/open`,{path:e})},re={list:()=>k(`GET`,`/api/reports`),build:()=>k(`POST`,`/api/reports/project/build`),buildStatus:()=>k(`GET`,`/api/reports/project/build`)},I={list:()=>k(`GET`,`/api/jobs`),detail:e=>k(`GET`,`/api/jobs/${encodeURIComponent(e)}`),log:(e,t)=>k(`GET`,`/api/jobs/${encodeURIComponent(e)}/log?tail=400${t?`&run=${encodeURIComponent(t)}`:``}`),add:e=>k(`POST`,`/api/jobs`,e),act:(e,t)=>k(`POST`,`/api/jobs/${encodeURIComponent(e)}/${t}`),remove:e=>k(`DELETE`,`/api/jobs/${encodeURIComponent(e)}`)},L={list:()=>k(`GET`,`/api/runs`),detail:e=>k(`GET`,`/api/runs/${encodeURIComponent(e)}`),cancel:e=>k(`POST`,`/api/runs/${encodeURIComponent(e)}/cancel`)},R={get:()=>k(`GET`,`/api/record`),start:e=>k(`POST`,`/api/record`,e),command:e=>k(`POST`,`/api/record/command`,e)},z={list:()=>k(`GET`,`/api/packs`),detail:e=>k(`GET`,`/api/packs/${encodeURIComponent(e)}`),build:e=>k(`POST`,`/api/packs/build`,e),run:(e,t)=>k(`POST`,`/api/packs/${encodeURIComponent(e)}/run`,{on:t}),heal:(e,t)=>k(`POST`,`/api/packs/${encodeURIComponent(e)}/heal`,{tests:t}),stop:()=>k(`POST`,`/api/packs/stop`,{})},ie={view:()=>k(`GET`,`/api/apitests`),set:e=>k(`GET`,`/api/apitests/${encodeURIComponent(e)}`),contracts:e=>k(`POST`,`/api/apitests/contracts`,e),run:(e,t)=>k(`POST`,`/api/apitests/${encodeURIComponent(e)}/run`,t),scenarios:(e,t)=>k(`POST`,`/api/apitests/${encodeURIComponent(e)}/scenarios`,t),runScenarios:(e,t)=>k(`POST`,`/api/apitests/${encodeURIComponent(e)}/run-scenarios`,t),stop:()=>k(`POST`,`/api/apitests/stop`,{})};async function ae(e){let t=await fetch(e,{headers:{Authorization:`Bearer ${T()}`}});if(!t.ok||t.headers.get(`content-type`)!==`image/png`)throw new O(`The image could not be loaded.`,t.status);let n=new Blob([await t.arrayBuffer()],{type:`image/png`}),r=await new Promise((e,t)=>{let r=new FileReader;r.onload=()=>e(String(r.result)),r.onerror=()=>t(new O(`The image could not be read.`,0)),r.readAsDataURL(n)});if(!r.startsWith(`data:image/png;base64,`))throw new O(`The image could not be read.`,0);return r}var oe={view:()=>k(`GET`,`/api/quality`),run:e=>k(`GET`,`/api/quality/${encodeURIComponent(e)}`),compare:e=>k(`POST`,`/api/quality/${encodeURIComponent(e)}/compare`,{}),approve:(e,t,n)=>k(`POST`,`/api/quality/${encodeURIComponent(e)}/approve`,{pages:t,...n?{reason:n}:{}}),image:(e,t,n)=>ae(`/api/quality/${encodeURIComponent(e)}/image/${t}/${n}`)},se={view:()=>k(`GET`,`/api/data`),impact:e=>k(`GET`,`/api/data/impact?of=${encodeURIComponent(e)}`),stop:()=>k(`POST`,`/api/data/stop`,{}),run:(e,t)=>k(`POST`,`/api/data/${e}`,t)},ce={view:()=>k(`GET`,`/api/features`),detail:e=>k(`GET`,`/api/features/${encodeURIComponent(e)}`),scope:(e,t)=>k(`POST`,`/api/features/${encodeURIComponent(e)}/scope`,{to:t})},le={job:()=>k(`GET`,`/api/refine`),start:(e,t)=>k(`POST`,`/api/refine`,{text:e,key:t}),stop:()=>k(`POST`,`/api/refine/stop`,{})},B={view:()=>k(`GET`,`/api/about`),generated:()=>k(`GET`,`/api/generated`),run:(e,t={})=>k(`POST`,`/api/about/${e}`,t),stop:()=>k(`POST`,`/api/about/stop`,{})},ue=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function de(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:ue(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var fe=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},pe=e=>{let t=fe(e);return t.charAt(0).toUpperCase()+t.slice(1)},me=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),he={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 ge(e){return e!=null}function _e(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??he.width,a=e.size??e.height??he.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?me(...c):me(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??he[`stroke-width`])*Number(e.size??e.width??he.width)/Number(t.size??t.width??he.width):t.strokeWidth??he[`stroke-width`];return[`svg`,{...Object.entries(he).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&ge(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&ge(t.width)&&{[r(`width`)]:t.width},...`height`in t&&ge(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 ve(e,t={}){return _e(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var ye=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},be=(0,v.createContext)({}),xe=()=>(0,v.useContext)(be),Se=(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=``}=xe()??{},b=!!c||ye(d),[x,S,C=[]]=ve(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:me(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 V(e,t=[],n=[]){let r=typeof e==`string`?de(e,t,n):e,i=(0,v.forwardRef)(({className:e,...t},n)=>(0,v.createElement)(Se,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=pe(r.name)),i}var Ce={name:`app-window`,size:24,node:[[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}],[`path`,{d:`M10 4v4`,key:`pp8u80`}],[`path`,{d:`M2 8h20`,key:`d11cs7`}],[`path`,{d:`M6 4v4`,key:`1svtjw`}]]};Ce.node;var we=V(Ce),Te={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};Te.node;var Ee=V(Te),De={name:`badge-check`,size:24,node:[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`verified`]};De.node;var Oe=V(De),ke={name:`bell-ring`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M22 8c0-2.3-.8-4.3-2-6`,key:`5bb3ad`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}],[`path`,{d:`M4 2C2.8 3.7 2 5.7 2 8`,key:`tap9e0`}]]};ke.node;var Ae=V(ke),je={name:`blocks`,size:24,node:[[`path`,{d:`M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2`,key:`1ah6g2`}],[`rect`,{x:`14`,y:`2`,width:`8`,height:`8`,rx:`1`,key:`88lufb`}]]};je.node;var Me=V(je),Ne={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`}]]};Ne.node;var Pe=V(Ne),Fe={name:`bot`,size:24,node:[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]};Fe.node;var Ie=V(Fe),Le={name:`brain`,size:24,node:[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 01-3-4 4.17 4.17 0 01-3 4`,key:`5nuw1p`}],[`path`,{d:`M17.707 6.294A3 3 0 1012 5a3 3 0 10-5.707 1.294`,key:`18ldcf`}],[`path`,{d:`M17.996 5.125a4 4 0 012.526 5.77`,key:`1sdu8q`}],[`path`,{d:`M18 18a4 4 0 002-7.465`,key:`7xqqvr`}],[`path`,{d:`M19.967 17.482a4 4 0 11-7.967.517 4 4 0 11-7.967-.517`,key:`t46ysz`}],[`path`,{d:`M6 18a4 4 0 01-2-7.465`,key:`1y2m15`}],[`path`,{d:`M6.004 5.125a4 4 0 00-2.526 5.77`,key:`3cw1ss`}]]};Le.node;var Re=V(Le),ze={name:`bug`,size:24,node:[[`path`,{d:`M12 20v-9`,key:`1qisl0`}],[`path`,{d:`M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z`,key:`uouzyp`}],[`path`,{d:`M14.12 3.88 16 2`,key:`qol33r`}],[`path`,{d:`M21 21a4 4 0 0 0-3.81-4`,key:`1b0z45`}],[`path`,{d:`M21 5a4 4 0 0 1-3.55 3.97`,key:`5cxbf6`}],[`path`,{d:`M22 13h-4`,key:`1jl80f`}],[`path`,{d:`M3 21a4 4 0 0 1 3.81-4`,key:`1fjd4g`}],[`path`,{d:`M3 5a4 4 0 0 0 3.55 3.97`,key:`1d7oge`}],[`path`,{d:`M6 13H2`,key:`82j7cp`}],[`path`,{d:`m8 2 1.88 1.88`,key:`fmnt4t`}],[`path`,{d:`M9 7.13V6a3 3 0 1 1 6 0v1.13`,key:`1vgav8`}]]};ze.node;var Be=V(ze),Ve={name:`calendar-clock`,size:24,node:[[`path`,{d:`M16 14v2.2l1.6 1`,key:`fo4ql5`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`path`,{d:`M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338`,key:`7hb8p4`}],[`path`,{d:`M3 9h5.859`,key:`numkqi`}],[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}]]};Ve.node;var He=V(Ve),Ue={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`]};Ue.node;var We=V(Ue),Ge={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};Ge.node;var Ke=V(Ge),qe={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};qe.node;var Je=V(qe),Ye={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};Ye.node;var Xe=V(Ye),Ze={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`]};Ze.node;var Qe=V(Ze),$e={name:`circle-dot`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]};$e.node;var et=V($e),tt={name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`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:[`help-circle`,`circle-help`]};tt.node;var nt=V(tt),rt={name:`circle-x`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]],aliases:[`x-circle`]};rt.node;var it=V(rt),at={name:`clipboard-list`,size:24,node:[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]};at.node;var ot=V(at),st={name:`cloud`,size:24,node:[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]};st.node;var ct=V(st),lt={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`}]]};lt.node;var ut=V(lt),dt={name:`coins`,size:24,node:[[`path`,{d:`M13.744 17.736a6 6 0 1 1-7.48-7.48`,key:`bq4yh3`}],[`path`,{d:`M15 6h1v4`,key:`11y1tn`}],[`path`,{d:`m6.134 14.768.866-.5 2 3.464`,key:`17snzx`}],[`circle`,{cx:`16`,cy:`8`,r:`6`,key:`14bfc9`}]]};dt.node;var ft=V(dt),pt={name:`compass`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z`,key:`9ktpf1`}]]};pt.node;var mt=V(pt),ht={name:`container`,size:24,node:[[`path`,{d:`M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z`,key:`1t2lqe`}],[`path`,{d:`M10 21.9V14L2.1 9.1`,key:`o7czzq`}],[`path`,{d:`m10 14 11.9-6.9`,key:`zm5e20`}],[`path`,{d:`M14 19.8v-8.1`,key:`159ecu`}],[`path`,{d:`M18 17.5V9.4`,key:`11uown`}]]};ht.node;var gt=V(ht),_t={name:`database-zap`,size:24,node:[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 15 21.84`,key:`14ibmq`}],[`path`,{d:`M21 5V8`,key:`1marbg`}],[`path`,{d:`M21 12L18 17H22L19 22`,key:`zafso`}],[`path`,{d:`M3 12A9 3 0 0 0 14.59 14.87`,key:`1y4wr8`}]]};_t.node;var vt=V(_t),yt={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`}]]};yt.node;var bt=V(yt),xt={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`}]]};xt.node;var St=V(xt),Ct={name:`eraser`,size:24,node:[[`path`,{d:`M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21`,key:`g5wo59`}],[`path`,{d:`m5.082 11.09 8.828 8.828`,key:`1wx5vj`}]]};Ct.node;var wt=V(Ct),Tt={name:`eye`,size:24,node:[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};Tt.node;var Et=V(Tt),Dt={name:`file-chart-column`,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:`M8 18v-1`,key:`zg0ygc`}],[`path`,{d:`M12 18v-6`,key:`17g6i2`}],[`path`,{d:`M16 18v-3`,key:`j5jt4h`}]],aliases:[`file-bar-chart-2`]};Dt.node;var Ot=V(Dt),kt={name:`file-code-corner`,size:24,node:[[`path`,{d:`M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35`,key:`1wthlu`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m5 16-3 3 3 3`,key:`331omg`}],[`path`,{d:`m9 22 3-3-3-3`,key:`lsp7cz`}]],aliases:[`file-code-2`]};kt.node;var At=V(kt),jt={name:`file-code`,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 12.5 8 15l2 2.5`,key:`1tg20x`}],[`path`,{d:`m14 12.5 2 2.5-2 2.5`,key:`yinavb`}]]};jt.node;var Mt=V(jt),Nt={name:`file-diff`,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:`M9 10h6`,key:`9gxzsh`}],[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}]]};Nt.node;var Pt=V(Nt),Ft={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`}]]};Ft.node;var It=V(Ft),Lt={name:`flask-conical`,size:24,node:[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]};Lt.node;var Rt=V(Lt),zt={name:`folder-check`,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`}],[`path`,{d:`m9 13 2 2 4-4`,key:`6343dt`}]]};zt.node;var Bt=V(zt),Vt={name:`folder-open`,size:24,node:[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]};Vt.node;var Ht=V(Vt),Ut={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`}]]};Ut.node;var Wt=V(Ut),Gt={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`}]]};Gt.node;var Kt=V(Gt),qt={name:`gauge`,size:24,node:[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]};qt.node;var Jt=V(qt),Yt={name:`git-branch`,size:24,node:[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]};Yt.node;var Xt=V(Yt),Zt={name:`git-pull-request`,size:24,node:[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M13 6h3a2 2 0 0 1 2 2v7`,key:`1yeb86`}],[`line`,{x1:`6`,x2:`6`,y1:`9`,y2:`21`,key:`rroup`}]]};Zt.node;var Qt=V(Zt),$t={name:`globe`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]};$t.node;var en=V($t),tn={name:`graduation-cap`,size:24,node:[[`path`,{d:`M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z`,key:`j76jl0`}],[`path`,{d:`M22 10v6`,key:`1lu8f3`}],[`path`,{d:`M6 12.5V16a6 3 0 0 0 12 0v-3.5`,key:`1r8lef`}]]};tn.node;var nn=V(tn),rn={name:`heart-pulse`,size:24,node:[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}],[`path`,{d:`M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27`,key:`auskq0`}]]};rn.node;var an=V(rn),on={name:`house`,size:24,node:[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]],aliases:[`home`]};on.node;var sn=V(on),cn={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`}]]};cn.node;var ln=V(cn),un={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`}]]};un.node;var dn=V(un),fn={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`}]]};fn.node;var pn=V(fn),mn={name:`layers`,size:24,node:[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]],aliases:[`layers-3`]};mn.node;var hn=V(mn),gn={name:`list-checks`,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`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]};gn.node;var _n=V(gn),vn={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};vn.node;var yn=V(vn),bn={name:`lock`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]};bn.node;var xn=V(bn),Sn={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`}]]};Sn.node;var Cn=V(Sn),wn={name:`message-square-text`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M7 11h10`,key:`1twpyw`}],[`path`,{d:`M7 15h6`,key:`d9of3u`}],[`path`,{d:`M7 7h8`,key:`af5zfr`}]]};wn.node;var Tn=V(wn),En={name:`message-square`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]};En.node;var Dn=V(En),On={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`}]]};On.node;var kn=V(On),An={name:`monitor-play`,size:24,node:[[`path`,{d:`M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z`,key:`vbtd3f`}],[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`rect`,{x:`2`,y:`3`,width:`20`,height:`14`,rx:`2`,key:`x3v2xh`}]]};An.node;var jn=V(An),Mn={name:`monitor`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]};Mn.node;var Nn=V(Mn),Pn={name:`package-check`,size:24,node:[[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`path`,{d:`m16 17 2 2 4-4`,key:`uh5qu3`}],[`path`,{d:`M21 11.127V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.32-.753`,key:`kpkbpo`}],[`path`,{d:`M3.29 7 12 12l8.71-5`,key:`19ckod`}],[`path`,{d:`m7.5 4.27 8.997 5.148`,key:`9yrvtv`}]]};Pn.node;var Fn=V(Pn),In={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`]};In.node;var Ln=V(In),Rn={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`]};Rn.node;var zn=V(Rn),Bn={name:`panel-right-close`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m8 9 3 3-3 3`,key:`12hl5m`}]]};Bn.node;var Vn=V(Bn),Hn={name:`panel-right-open`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m10 15-3-3 3-3`,key:`1pgupc`}]]};Hn.node;var Un=V(Hn),Wn={name:`paperclip`,size:24,node:[[`path`,{d:`m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551`,key:`1miecu`}]]};Wn.node;var Gn=V(Wn),Kn={name:`piggy-bank`,size:24,node:[[`path`,{d:`M11 17h3v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a3.16 3.16 0 0 0 2-2h1a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-1a5 5 0 0 0-2-4V3a4 4 0 0 0-3.2 1.6l-.3.4H11a6 6 0 0 0-6 6v1a5 5 0 0 0 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1z`,key:`1piglc`}],[`path`,{d:`M16 10h.01`,key:`1m94wz`}],[`path`,{d:`M2 8v1a2 2 0 0 0 2 2h1`,key:`1env43`}]]};Kn.node;var qn=V(Kn),Jn={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`}]]};Jn.node;var Yn=V(Jn),Xn={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`}]]};Xn.node;var Zn=V(Xn),Qn={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};Qn.node;var $n=V(Qn),er={name:`refresh-cw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]};er.node;var tr=V(er),nr={name:`repeat`,size:24,node:[[`path`,{d:`m17 2 4 4-4 4`,key:`nntrym`}],[`path`,{d:`M3 11v-1a4 4 0 0 1 4-4h14`,key:`84bu3i`}],[`path`,{d:`m7 22-4-4 4-4`,key:`1wqhfi`}],[`path`,{d:`M21 13v1a4 4 0 0 1-4 4H3`,key:`1rx37r`}]]};nr.node;var rr=V(nr),ir={name:`rocket`,size:24,node:[[`path`,{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`,key:`qeys4`}],[`path`,{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09`,key:`u4xsad`}],[`path`,{d:`M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z`,key:`676m9`}],[`path`,{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05`,key:`92ym6u`}]]};ir.node;var ar=V(ir),or={name:`rotate-ccw-clock`,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`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]};or.node;var sr=V(or),cr={name:`route`,size:24,node:[[`circle`,{cx:`6`,cy:`19`,r:`3`,key:`1kj8tv`}],[`path`,{d:`M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15`,key:`1d8sl`}],[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}]]};cr.node;var lr=V(cr),ur={name:`scroll-text`,size:24,node:[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]};ur.node;var dr=V(ur),fr={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};fr.node;var pr=V(fr),mr={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`}]]};mr.node;var hr=V(mr),gr={name:`server`,size:24,node:[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]};gr.node;var _r=V(gr),vr={name:`settings-2`,size:24,node:[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]};vr.node;var yr=V(vr),br={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`}]]};br.node;var xr=V(br),Sr={name:`shield-check`,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:`m9 12 2 2 4-4`,key:`dzmm74`}]]};Sr.node;var Cr=V(Sr),wr={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`}]]};wr.node;var Tr=V(wr),Er={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`}]]};Er.node;var Dr=V(Er),Or={name:`sparkle`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}]]};Or.node;var kr=V(Or),Ar={name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]};Ar.node;var jr=V(Ar),Mr={name:`square-kanban`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M8 7v7`,key:`1x2jlm`}],[`path`,{d:`M12 7v4`,key:`xawao1`}],[`path`,{d:`M16 7v9`,key:`1hp2iy`}]],aliases:[`kanban-square`]};Mr.node;var Nr=V(Mr),Pr={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`]};Pr.node;var Fr=V(Pr),Ir={name:`square-split-horizontal`,size:24,node:[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`M16 3h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-3`,key:`saxlbk`}],[`path`,{d:`M8 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3`,key:`m1vog4`}]],aliases:[`split-square-horizontal`]};Ir.node;var Lr=V(Ir),Rr={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]};Rr.node;var zr=V(Rr),Br={name:`ticket`,size:24,node:[[`path`,{d:`M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z`,key:`qn84l0`}],[`path`,{d:`M13 5v2`,key:`dyzc3o`}],[`path`,{d:`M13 17v2`,key:`1ont0d`}],[`path`,{d:`M13 11v2`,key:`1wjjxi`}]]};Br.node;var Vr=V(Br),Hr={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};Hr.node;var Ur=V(Hr),Wr={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`}]]};Wr.node;var Gr=V(Wr),Kr={name:`user-pen`,size:24,node:[[`path`,{d:`M11.5 15H7a4 4 0 0 0-4 4v2`,key:`15lzij`}],[`path`,{d:`M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`1817ys`}],[`circle`,{cx:`10`,cy:`7`,r:`4`,key:`e45bow`}]]};Kr.node;var qr=V(Kr),Jr={name:`wallet`,size:24,node:[[`path`,{d:`M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1`,key:`18etb6`}],[`path`,{d:`M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4`,key:`xoc0q4`}]]};Jr.node;var Yr=V(Jr),Xr={name:`wand-sparkles`,size:24,node:[[`path`,{d:`m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72`,key:`ul74o6`}],[`path`,{d:`m14 7 3 3`,key:`1r5n42`}],[`path`,{d:`M5 6v4`,key:`ilb8ba`}],[`path`,{d:`M19 14v4`,key:`blhpug`}],[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M7 8H3`,key:`zfb6yr`}],[`path`,{d:`M21 16h-4`,key:`1cnmox`}],[`path`,{d:`M11 3H9`,key:`1obp7u`}]],aliases:[`wand-2`]};Xr.node;var Zr=V(Xr),Qr={name:`webhook`,size:24,node:[[`path`,{d:`M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2`,key:`q3hayz`}],[`path`,{d:`m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06`,key:`1go1hn`}],[`path`,{d:`m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8`,key:`qlwsc0`}]]};Qr.node;var $r=V(Qr),ei={name:`workflow`,size:24,node:[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,key:`by2w9f`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`,key:`xkn7yn`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,key:`1cgmvn`}]]};ei.node;var ti=V(ei),ni={name:`wrench`,size:24,node:[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]};ni.node;var ri=V(ni),ii={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};ii.node;var ai=V(ii);function oi(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=oi(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function si(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=oi(e))&&(r&&(r+=` `),r+=t);return r}var ci=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,li=si,ui=(e,t)=>n=>{if(t?.variants==null)return li(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=ci(t)||ci(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return li(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},di=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},fi=(e,t)=>({classGroupId:e,validator:t}),pi=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),mi=`-`,hi=[],gi=`arbitrary..`,_i=e=>{let t=bi(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return yi(e);let n=e.split(mi);return vi(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?di(i,t):t:i||hi}return n[e]||hi}}},vi=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=vi(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(mi):e.slice(t).join(mi),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},yi=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?gi+r:void 0})(),bi=e=>{let{theme:t,classGroups:n}=e;return xi(n,t)},xi=(e,t)=>{let n=pi();for(let r in e){let i=e[r];Si(i,n,r,t)}return n},Si=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Ci(i,t,n,r)}},Ci=(e,t,n,r)=>{typeof e==`string`?wi(e,t,n):typeof e==`function`?Ti(e,t,n,r):Ei(e,t,n,r)},wi=(e,t,n)=>{let r=e===``?t:Di(t,e);r.classGroupId=n},Ti=(e,t,n,r)=>{Oi(e)?Si(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(fi(n,e)))},Ei=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Si(o,Di(t,a),n,r)}},Di=(e,t)=>{let n=e,r=t.split(mi),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=pi(),n.nextPart.set(t,i)),n=i}return n},Oi=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,ki=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Ai=`!`,ji=`:`,H=[],Mi=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Ni=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===ji){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Ai)?(c=s.slice(0,-1),l=!0):s.startsWith(Ai)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Mi(t,l,c,u)};if(t){let e=t+ji,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Mi(H,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Pi=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Fi=e=>({cache:ki(e.cacheSize),parseClassName:Ni(e),sortModifiers:Pi(e),postfixLookupClassGroupIds:Ii(e),..._i(e)}),Ii=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Li=/\s+/,Ri=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Li),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h||(g=r(p),!g)){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Ai:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},zi=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Bi(n))&&(i&&(i+=` `),i+=r);return i},Bi=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Bi(e[r]))&&(n&&(n+=` `),n+=t);return n},Vi=(e,...t)=>{let n,r,i,a,o=o=>(n=Fi(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Ri(e,n);return i(e,a),a};return a=o,(...e)=>a(zi(...e))},Hi=[],Ui=e=>{let t=t=>t[e]||Hi;return t.isThemeGetter=!0,t.themeKey=e,t},Wi=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Gi=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ki=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,qi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ji=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Yi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,Xi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Zi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qi=e=>Ki.test(e),U=e=>!!e&&!Number.isNaN(Number(e)),$i=e=>!!e&&Number.isInteger(Number(e)),ea=e=>e.endsWith(`%`)&&U(e.slice(0,-1)),ta=e=>qi.test(e),na=()=>!0,ra=e=>Ji.test(e)&&!Yi.test(e),ia=()=>!1,aa=e=>Xi.test(e),oa=e=>Zi.test(e),sa=e=>!W(e)&&!G(e),ca=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),la=e=>wa(e,Oa,ia),W=e=>Wi.test(e),ua=e=>wa(e,ka,ra),da=e=>wa(e,Aa,U),fa=e=>wa(e,Ma,na),pa=e=>wa(e,ja,ia),ma=e=>wa(e,Ea,ia),ha=e=>wa(e,Da,oa),ga=e=>wa(e,Na,aa),G=e=>Gi.test(e),_a=e=>Ta(e,ka),va=e=>Ta(e,ja),ya=e=>Ta(e,Ea),ba=e=>Ta(e,Oa),xa=e=>Ta(e,Da),Sa=e=>Ta(e,Na,!0),Ca=e=>Ta(e,Ma,!0),wa=(e,t,n)=>{let r=Wi.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ta=(e,t,n=!1)=>{let r=Gi.exec(e);return r?r[1]?t(r[1]):n:!1},Ea=e=>e===`position`||e===`percentage`,Da=e=>e===`image`||e===`url`,Oa=e=>e===`length`||e===`size`||e===`bg-size`,ka=e=>e===`length`,Aa=e=>e===`number`,ja=e=>e===`family-name`,Ma=e=>e===`number`||e===`weight`,Na=e=>e===`shadow`,Pa=Vi(()=>{let e=Ui(`color`),t=Ui(`font`),n=Ui(`text`),r=Ui(`font-weight`),i=Ui(`tracking`),a=Ui(`leading`),o=Ui(`breakpoint`),s=Ui(`container`),c=Ui(`spacing`),l=Ui(`radius`),u=Ui(`shadow`),d=Ui(`inset-shadow`),f=Ui(`text-shadow`),p=Ui(`drop-shadow`),m=Ui(`blur`),h=Ui(`perspective`),g=Ui(`aspect`),_=Ui(`ease`),v=Ui(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),G,W],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[G,W,c],T=()=>[Qi,`full`,`auto`,...w()],E=()=>[$i,`none`,`subgrid`,G,W],D=()=>[`auto`,{span:[`full`,$i,G,W]},$i,G,W],O=()=>[$i,`auto`,G,W],k=()=>[`auto`,`min`,`max`,`fr`,G,W],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],ee=()=>[Qi,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],N=()=>[s,Qi,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],te=()=>[Qi,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[e,G,W],F=()=>[...b(),ya,ma,{position:[G,W]}],ne=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],re=()=>[`auto`,`cover`,`contain`,ba,la,{size:[G,W]}],I=()=>[ea,_a,ua],L=()=>[``,`none`,`full`,l,G,W],R=()=>[``,U,_a,ua],z=()=>[`solid`,`dashed`,`dotted`,`double`],ie=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],ae=()=>[U,ea,ya,ma],oe=()=>[``,`none`,m,G,W],se=()=>[`none`,U,G,W],ce=()=>[`none`,U,G,W],le=()=>[U,G,W],B=()=>[Qi,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[ta],breakpoint:[ta],color:[na],container:[ta],"drop-shadow":[ta],ease:[`in`,`out`,`in-out`],font:[sa],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[ta],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[ta],shadow:[ta],spacing:[`px`,U],text:[ta],"text-shadow":[ta],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Qi,W,G,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,G,W]}],"container-named":[ca],columns:[{columns:[U,`auto`,W,G,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[$i,`auto`,G,W]}],basis:[{basis:[Qi,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[U,Qi,`auto`,`initial`,`none`,W]}],grow:[{grow:[``,U,G,W]}],shrink:[{shrink:[``,U,G,W]}],order:[{order:[$i,`first`,`last`,`none`,G,W]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ee()}],"inline-size":[{inline:[`auto`,...N()]}],"min-inline-size":[{"min-inline":[`auto`,...N()]}],"max-inline-size":[{"max-inline":[`none`,...N()]}],"block-size":[{block:[`auto`,...te()]}],"min-block-size":[{"min-block":[`auto`,...te()]}],"max-block-size":[{"max-block":[`none`,...te()]}],w:[{w:[s,`screen`,...ee()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ee()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ee()]}],h:[{h:[`screen`,`lh`,...ee()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ee()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...ee()]}],"font-size":[{text:[`base`,n,_a,ua]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Ca,fa]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,ea,W]}],"font-family":[{font:[va,pa,t]}],"font-features":[{"font-features":[W]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,G,W]}],"line-clamp":[{"line-clamp":[U,`none`,G,da]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,G,W]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,G,W]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...z(),`wavy`]}],"text-decoration-thickness":[{decoration:[U,`from-font`,`auto`,G,ua]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[U,`auto`,G,W]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[$i,G,W]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,G,W]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,G,W]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:re()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},$i,G,W],radial:[``,G,W],conic:[``,$i,G,W]},xa,ha]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:I()}],"gradient-via-pos":[{via:I()}],"gradient-to-pos":[{to:I()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-bs":[{"border-bs":R()}],"border-w-be":[{"border-be":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}],"divide-x":[{"divide-x":R()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":R()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...z(),`hidden`,`none`]}],"divide-style":[{divide:[...z(),`hidden`,`none`]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...z(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[U,G,W]}],"outline-w":[{outline:[``,U,_a,ua]}],"outline-color":[{outline:P()}],shadow:[{shadow:[``,`inner`,`none`,u,Sa,ga]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":[`none`,d,Sa,ga]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:R()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[U,ua]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":[`none`,f,Sa,ga]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[U,G,W]}],"mix-blend":[{"mix-blend":[...ie(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ie()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[U]}],"mask-image-linear-from-pos":[{"mask-linear-from":ae()}],"mask-image-linear-to-pos":[{"mask-linear-to":ae()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":ae()}],"mask-image-t-to-pos":[{"mask-t-to":ae()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":ae()}],"mask-image-r-to-pos":[{"mask-r-to":ae()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":ae()}],"mask-image-b-to-pos":[{"mask-b-to":ae()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":ae()}],"mask-image-l-to-pos":[{"mask-l-to":ae()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":ae()}],"mask-image-x-to-pos":[{"mask-x-to":ae()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":ae()}],"mask-image-y-to-pos":[{"mask-y-to":ae()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[G,W]}],"mask-image-radial-from-pos":[{"mask-radial-from":ae()}],"mask-image-radial-to-pos":[{"mask-radial-to":ae()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[U]}],"mask-image-conic-from-pos":[{"mask-conic-from":ae()}],"mask-image-conic-to-pos":[{"mask-conic-to":ae()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,G,W]}],filter:[{filter:[``,`none`,G,W]}],blur:[{blur:oe()}],brightness:[{brightness:[U,G,W]}],contrast:[{contrast:[U,G,W]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Sa,ga]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:[``,U,G,W]}],"hue-rotate":[{"hue-rotate":[U,G,W]}],invert:[{invert:[``,U,G,W]}],saturate:[{saturate:[U,G,W]}],sepia:[{sepia:[``,U,G,W]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,G,W]}],"backdrop-blur":[{"backdrop-blur":oe()}],"backdrop-brightness":[{"backdrop-brightness":[U,G,W]}],"backdrop-contrast":[{"backdrop-contrast":[U,G,W]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,U,G,W]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[U,G,W]}],"backdrop-invert":[{"backdrop-invert":[``,U,G,W]}],"backdrop-opacity":[{"backdrop-opacity":[U,G,W]}],"backdrop-saturate":[{"backdrop-saturate":[U,G,W]}],"backdrop-sepia":[{"backdrop-sepia":[``,U,G,W]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,G,W]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[U,`initial`,G,W]}],ease:[{ease:[`linear`,`initial`,_,G,W]}],delay:[{delay:[U,G,W]}],animate:[{animate:[`none`,v,G,W]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,G,W]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:ce()}],"scale-x":[{"scale-x":ce()}],"scale-y":[{"scale-y":ce()}],"scale-z":[{"scale-z":ce()}],"scale-3d":[`scale-3d`],skew:[{skew:le()}],"skew-x":[{"skew-x":le()}],"skew-y":[{"skew-y":le()}],transform:[{transform:[G,W,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:B()}],"translate-x":[{"translate-x":B()}],"translate-y":[{"translate-y":B()}],"translate-z":[{"translate-z":B()}],"translate-none":[`translate-none`],zoom:[{zoom:[$i,G,W]}],accent:[{accent:P()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,G,W]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":P()}],"scrollbar-track-color":[{"scrollbar-track":P()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,G,W]}],fill:[{fill:[`none`,...P()]}],"stroke-w":[{stroke:[U,_a,ua,da]}],stroke:[{stroke:[`none`,...P()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function K(...e){return Pa(si(e))}var Fa=(e,t,n=`${t}s`)=>`${e} ${e===1?t:n}`,Ia=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})),La=o(((e,t)=>{t.exports=Ia()})),q=La(),Ra=ui(`inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap font-medium no-underline transition-colors disabled:cursor-not-allowed disabled:opacity-50`,{variants:{variant:{outline:`rounded-full border border-line bg-bg text-ink hover:bg-surface-muted hover:text-ink`,primary:`rounded-full border border-accent bg-accent text-white hover:border-accent-hover hover:bg-accent-hover hover:text-white`,ghost:`rounded-[10px] border-0 bg-transparent text-ink hover:bg-surface-strong`,icon:`rounded-[10px] border-0 bg-transparent text-ink-2 hover:bg-surface-strong hover:text-ink`},size:{default:`min-h-10 px-4 text-sm`,lg:`min-h-11 px-5 text-sm`,sm:`min-h-10 px-4 text-[13px]`,icon:`size-10`}},defaultVariants:{variant:`outline`,size:`default`}});function J({className:e,variant:t,size:n,type:r=`button`,...i}){return(0,q.jsx)(`button`,{type:r,className:K(Ra({variant:t,size:n}),e),...i})}function za({open:e,onClose:t,children:n,className:r,label:i,role:a=`menu`,side:o=`up`}){let s=(0,v.useRef)(null),[c,l]=(0,v.useState)({});return(0,v.useLayoutEffect)(()=>{if(!e||o!==`auto`||!s.current?.parentElement)return;let t=s.current.parentElement.getBoundingClientRect(),n=window.innerHeight-t.bottom-16,r=t.top-16;l(n>=s.current.scrollHeight||n>=r?{top:t.height+8,bottom:`auto`,maxHeight:n}:{bottom:t.height+8,top:`auto`,maxHeight:r})},[e,o]),(0,v.useEffect)(()=>{if(!e)return;let n=e=>{s.current&&!s.current.parentElement?.contains(e.target)&&t()},r=e=>{e.key===`Escape`&&t()};return document.addEventListener(`mousedown`,n),document.addEventListener(`keydown`,r),()=>{document.removeEventListener(`mousedown`,n),document.removeEventListener(`keydown`,r)}},[e,t]),e?(0,q.jsx)(`div`,{ref:s,role:a,"aria-label":i,style:c,className:K(`fade-in absolute bottom-[52px] z-10 min-w-[260px] overflow-y-auto rounded-[14px] border border-line bg-bg p-1.5 shadow-menu`,r),children:n}):null}var Ba={idle:[`default`,`blink`],working:[`default`,`gyro`],reasoning:[`default`,`twins`],searching:[`default`,`lighthouse`],background:[`default`,`spiral`],retrying:[`default`,`surge`],compacting:[`default`,`squeeze`,`fuse`],waiting:[`default`],using:[`default`,`tap`,`scroll`,`type`,`zoom`,`snap`,`record`]},Va=Math.PI*2,Ha=Math.PI*(3-Math.sqrt(5)),Ua=e=>(1-Math.cos(Math.PI*e))/2,Wa=e=>{let t=Math.sin(e*127.1)*43758.5453;return t-Math.floor(t)},Ga=(e,t)=>(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2,Ka=(e,t,n)=>{let r=[],i=[],a=e[t];for(let o=0;o<e.length;o++){if(o===t)continue;let s=Ga(a,e[o]),c=r.length;if(c===n){if(s>=i[n-1])continue;c--}for(;c>0&&i[c-1]>s;)r[c]=r[c-1],i[c]=i[c-1],c--;r[c]=o,i[c]=s}return r},qa={idle:6500,"idle-blink":13e3,working:3e3,"working-gyro":3e3,reasoning:6500,"reasoning-twins":6500,searching:13e3,"searching-lighthouse":13e3,background:13e3,"background-spiral":13e3,retrying:13e3,"retrying-surge":13e3,compacting:1e4,"compacting-squeeze":1e4,"compacting-fuse":1e4,waiting:13e3,using:13e3,"using-tap":13e3,"using-scroll":13e3,"using-type":13e3,"using-zoom":13e3,"using-snap":13e3,"using-record":13e3},Ja=new Map;function Ya(e,t,n){let r=Ja.get(e);return r||Ja.set(e,r={t:0,last:t}),t>r.last&&(r.t+=Math.min(t-r.last,100)*n,r.last=t),r.t}var Xa=e=>1-Math.exp(-4.5*e)*Math.cos(3*Math.PI*e)-e*Math.exp(-4.5);function Za(e,t){let n=3200,r=Math.floor(e/n),i=e-r*n,a=1260*t,o=2200*t,s;if(i<2e3)s=i*t;else if(i<2200){let e=(i-2e3)/200;s=(2e3+200*(e-e*e/2))*t}else if(i<3e3)s=2100*t-a*Xa((i-2200)/800);else{let e=(i-3e3)/200;s=2100*t-a+100*e*e*t}return r*(o-a)+s}function Qa(e,t){if(e===`retrying`)return Za(2*t,Va/9e3);if(e===`retrying-surge`){let e=t/3250,n=e-Math.floor(e);return(Math.floor(e)+(1-(1-n)**3))*Va}return e===`using-scroll`?.4:e===`using-snap`?(Math.floor(t/Eo)*Do+Math.min(t%Eo,Do))/qa[e]*Va:t/qa[e]*Va}var $a=(()=>{let e=30*Math.PI/180,t=10*Math.PI/180;return[-Math.sin(t)*Math.cos(e),Math.cos(t)*Math.cos(e),Math.sin(e)]})(),eo=1.4,to=30*Math.PI/180,no=Math.PI/2,ro=1800,Y=.4,io=.6;function ao(e){let t=e*2.45+Wa(e)*1.5,n=(15+30*Wa(e+.5))*Math.PI/180;return[Math.sin(n)*Math.cos(t),Math.sin(n)*Math.sin(t),Math.cos(n)]}function oo(e){let t=Math.floor(e/ro),n=e/ro-t,r=n<Y?(1-Math.cos(n/Y*Math.PI))/2:1,i=ao(t),a=ao(t+1),o=i.map((e,t)=>e+(a[t]-e)*r),s=Math.hypot(o[0],o[1],o[2]);return o.map(e=>e/s)}var so=.45,co=.5,lo=600,uo=e=>ao(e+57),fo=(e,t,n)=>{let r=e.map((e,r)=>e+(t[r]-e)*n),i=Math.hypot(r[0],r[1],r[2]);return r.map(e=>e/i)},po=(e,t)=>e<t?(1-(e/t)**2)**2:0,mo=1400;function ho(e){let t=Math.floor(e/mo),n=e/mo-t;return{at:fo(uo(t),uo(t+1),n<.35?Ua(n/.35):1),click:uo(n<.5?t:t+1),since:(n<.5?n+.5:n-.5)*mo}}var go=e=>e<60?e/60:Math.max(0,1-(e-60)/240)**2,_o=1,vo=[[0,0],[0,16],[4,12],[7,18],[9,17],[6,11],[11,11]].map(([e,t])=>[e/18*_o,t/18*_o]);function yo(e,t,n){let r=!1;for(let i=0,a=e.length-1;i<e.length;a=i++){let[o,s]=e[i],[c,l]=e[a];s>n!=l>n&&t<(c-o)*(n-s)/(l-s)+o&&(r=!r)}return r}var bo=[-.3,.5],xo=(e,t)=>[e,t,Math.sqrt(Math.max(0,1-e*e-t*t))],So=e=>xo(bo[0]+.35*e[0],bo[1]+.35*e[1]),Co=1800;function wo(e,t){let n=e%Co/Co,r=n<.3?Ua(n/.3):n<.6?1:n<.85?1-Ua((n-.6)/.25):0,i=e=>xo(bo[0]+.3*e*Math.cos(t),bo[1]+.3*e*Math.sin(t));return{at:i(r),click:i(1),since:(n<.45?n+.55:n-.45)*Co}}var To=2600,Eo=2600,Do=2100;function Oo(e){let t=e%Eo-Do;return t<0?0:Math.exp(-t/220)}function ko(e){let t=e%Eo;return t<120?1.2*(1-Ua(t/120)):t<180?0:t<430?1.2*Ua((t-180)/250):1.2}var Ao=1200,jo=e=>Math.abs(1-2*(e%Ao/Ao));function Mo(e){let t=e%To/To;return t<.25?Ua(t/.25):t<.5?1:t<.75?1-Ua((t-.5)/.25):0}var No=1500,Po=1.1;function Fo(e){let t=Math.floor(e/No),n=Math.min(1,(e/No-t)/.75);return{by:(t+1-(1-n)**3)*Po,pace:(1-n)**2}}var Io={right:0,"up-right":45,up:90,"up-left":135,left:180,"down-left":225,down:270,"down-right":315},Lo=[90,270,45,180,0,225].map(e=>e*Math.PI/180);function Ro(e,t){let n=-Math.sin(e),r=Math.cos(e),i=Math.sin(t),a=Math.cos(t),o=1-a;return[a+n*n*o,n*r*o,r*i,n*r*o,a+r*r*o,-n*i,-r*i,n*i,a]}var zo=(e,t)=>e.map((n,r)=>e[r-r%3]*t[r%3]+e[r-r%3+1]*t[r%3+3]+e[r-r%3+2]*t[r%3+6]),Bo=[`xxxx xxx xx`,`xxxxx xx xxxx`,`xxx xxxxx`],Vo=.09,Ho=.3,Uo=.33,Wo=-.5,Go=(()=>{let e=0;return Bo.flatMap((t,n)=>[...t].map((r,i)=>{let a={row:n,col:i,at:e};return e+=r===` `?200:i===t.length-1?350:70+60*Wa(n*31+i),a}))})(),Ko=Bo.map((e,t)=>Go.flatMap((e,n)=>e.row===t?[n]:[])),qo=Go[Go.length-1].at,Jo=qo+1300;function Yo(e){let t=e%Jo,n=0;for(;n<Go.length&&Go[n].at<=t;)n++;let r=n?t-Go[n-1].at:1/0,i=Go[n]??{row:Bo.length-1,col:Bo[Bo.length-1].length},a=r<300?1:+(Math.floor(t/450)%2==0);return{n,since:r,blink:a,caret:[Wo+i.col*Vo,Uo-i.row*Ho],fade:t<qo+900?1:Math.max(0,1-(t-qo-900)/300)}}var Xo=220,Zo=5,Qo=24,$o=16,es={mount:({make:e,pts:t})=>{let n=t.map(()=>e(`circle`)),r=new Uint8Array(t.length);return{dot(e,t,i,a,o){let s=n[e],c=o.toFixed(2);c===`0.00`&&r[e]||(r[e]=+(c===`0.00`),s.setAttribute(`cx`,t.toFixed(2)),s.setAttribute(`cy`,i.toFixed(2)),s.setAttribute(`r`,Math.max(.45,a).toFixed(2)),s.setAttribute(`fill-opacity`,c))}}}};function ts(e){let t=(e,t)=>[Math.cos(e)*Math.cos(t),Math.sin(e),Math.cos(e)*Math.sin(t)],n=Math.sqrt(4*Math.PI/e),r=.6*n;return Array.from({length:8},(e,i)=>{let a=i?i&-i:8,o=Math.min(85*Math.PI/180,Math.acos(Math.min(1,n*8/(Va*a)))),s=[];for(let e=-o+i*.618%1*r;e<=o;e+=r/Math.sqrt(1+Math.cos(e)**2))s.push(t(e,i/8*Va-e));return s}).flat()}function ns(e,t,n){return n?n.points(t,e):e===`background-spiral`?ts(t):Array.from({length:t},(e,n)=>{let r=1-2*(n+.5)/t,i=Math.sqrt(1-r*r),a=n*Ha;return[i*Math.cos(a),r,i*Math.sin(a)]})}function rs(e,{state:t,variant:n,size:r=20,speed:i=1,label:a,shape:o,render:s=es,density:c=1,dotSize:l=1,tilt:u=20,direction:d}={}){let f=t===`base`?`idle`:t,p=f&&Object.hasOwn(Ba,f)?f:`idle`,m=n!=="default"&&Ba[p].includes(n??``)?`${p}-${n}`:p,h={width:r,height:r,viewBox:`0 0 ${r} ${r}`,fill:`currentColor`};for(let[t,n]of Object.entries(h))e.setAttribute(t,String(n));a?(e.setAttribute(`role`,`img`),e.setAttribute(`aria-label`,a),e.removeAttribute(`aria-hidden`)):(e.setAttribute(`aria-hidden`,`true`),e.removeAttribute(`role`),e.removeAttribute(`aria-label`));let g=m===`background`?1:m===`using`||m===`using-type`?Math.max(4,1e3/r):4,_=Math.max(8,Math.round(r*g*c)),v=typeof o==`function`?{points:o}:o,y=r/2,b=y*.8*(v?.scale??1),x=(r/64)**.6*(.72*Math.sqrt(4/g))*l,S=ns(m,_,v),C=s.mount({make:t=>e.appendChild(document.createElementNS(`http://www.w3.org/2000/svg`,t)),pts:S,size:r,radius:x}),w=!!s.flat,T=(m===`reasoning`||m===`reasoning-twins`)&&S.length>1,E=m===`compacting`||m===`compacting-fuse`,D=T?S.map((e,t)=>Ka(S,t,Qo)):[],O=Array.from({length:m===`reasoning-twins`?2:1},()=>[]),k=0,A={k:0,m:[1,0,0,0,1,0,0,0,1]},j=e=>{let t=qa[m],n=Qa(m,e),i=m===`using-scroll`?Fo(e):null,a=d&&Io[d],o=null;if(i&&a!==void 0)o=Ro(a*Math.PI/180+Math.PI,i.by);else if(i){let t=Math.floor(e/No);for(t<A.k&&(A={k:0,m:[1,0,0,0,1,0,0,0,1]});A.k<t;A.k++)A.m=zo(Ro(Lo[A.k%Lo.length],Po),A.m);o=zo(Ro(Lo[t%Lo.length],i.by-t*Po),A.m)}let s=m===`working-gyro`?e/5e3*Va:null,c=((w?0:u)+(v?.tip??0)+(s===null?0:10*Math.cos(s)))*Math.PI/180,l=s===null?0:12*Math.sin(s)*Math.PI/180,f=Math.sin(l),p=Math.cos(l),h=Math.sin(n),g=Math.cos(n),_=Math.sin(c),j=Math.cos(c),M=e=>S[e][1]*_+(-S[e][0]*h+S[e][2]*g)*j,ee=new Map;if(T){let t=e/Xo,n=Math.floor(t),r=t-n;if(!O[0].length){let e=[...S.keys()].reduce((e,t)=>M(t)>M(e)?t:e,0),t=t=>M(t)+Ga(S[t],S[e]);O.forEach((n,r)=>n.push(r?[...S.keys()].reduce((e,n)=>t(n)>t(e)?n:e,0):e))}for(k=Math.max(k,n-$o);k<n;k++)O.forEach((e,t)=>{let n=e.slice(-8),r=e[e.length-1],i=-1,a=-1/0,o=m===`reasoning-twins`?O[1-t].at(-1):void 0;D[r].forEach((e,r)=>{let s=o===void 0?0:1.2*Math.min(Math.sqrt(Ga(S[e],S[o])),.8),c=M(e)+.35*Wa(k*31+r+t*977)+s;!n.includes(e)&&c>a&&(a=c,i=e)}),e.push(i<0?D[r][0]:i),e.length>$o&&e.shift()});let i=(e,t)=>e!==void 0&&ee.set(e,Math.max(ee.get(e)??0,t));for(let e of O)for(let t=4;t>=0;t--)i(e[e.length-1-t],t===0?Ua(Math.min(1,r*2)):1-(t-1+r)/Zo)}let N=e/2e3*Va+n,te=Va/2e3+Va/t,P=e=>70*Math.PI/180*(1-2*(e%6e3/6e3)),F=Math.min(1,3*Math.sin(Math.PI*(e%6e3/6e3))),ne=m===`searching`?oo(e):null,re=m===`working-gyro`?.5*Math.sin(e/2600*Va):m===`compacting-squeeze`?Math.sin(e/2600*Va):0,I=null;if(E){let t=e%2800/2800,n=(t-.7)/.3,r=m===`compacting-fuse`?(1-n)**3:n<.45?1-1.25*Ua(n/.45):n<.7?-.25*(1-(n-.45)/.25)**2:0;I={at:-1.15+2.3*Math.min(1,t/.7),hold:t<.7?1:r}}let L=null;m===`using-tap`&&(L=ho(e));let R=m===`using`;if(R){let t=a===void 0?ho(e):null;L=t?{...t,at:So(t.at),click:So(t.click)}:wo(e,(a??0)*Math.PI/180)}let z=R&&L?1-.15*go(L.since):1,ie=m===`using-type`?Yo(e):null,ae=m===`using-zoom`?Mo(e):null,oe=m===`using-snap`?Oo(e):null,se=m===`idle-blink`?ko(e):null,ce=m===`using-record`?jo(e):null;S.forEach(([t,a,s],c)=>{let u=n+eo*re*a,[d,v]=re?[Math.sin(u),Math.cos(u)]:[h,g],S=-t*d+s*v,E=t*v+s*d,D=a*j-S*_,O=S,k=E*_,A=a*_+S*j;o&&([E,D,A]=[0,3,6].map(e=>o[e]*E+o[e+1]*D+o[e+2]*A));let M=(A+1)/2,le=(.5+1.4*M)*x,B=Math.max(0,(M-.3)/.7);if(ne){let e=Math.acos(Math.min(1,(E*ne[0]+D*ne[1]+A*ne[2])/Math.hypot(E,D,A))),t=e<io?(1-(e/io)**2)**2:0;B*=1-.55*(1-t),r<=24&&(le*=1+.5*t),t&&(E*=1+.12*t,D*=1+.12*t,E+=(E-ne[0])*.35*t,D+=(D-ne[1])*.35*t,le*=1+.9*t,B+=(1-B)*t)}if(I){let e=E,t=Math.min(1,Math.max(0,(I.at-e)/.2))*I.hold,n=m===`compacting`?1.5:1;if(E*=1-.2*n*t,D*=1-.2*n*t,le*=1-.3*n*t,m===`compacting-fuse`){B*=1-.5*t;let n=Math.exp(-(((e-I.at)/.08)**2))*Math.max(0,I.hold)*Math.min(1,M/.5);le*=1+.8*n,B+=(1-B)*n}}if(m===`working`){let t=e%1700,n=1.3-2.6*Ua(Math.min(1,t/1200)),r=w?D:E*$a[0]+D*$a[1]+A*$a[2],i=t<1200?Math.exp(-(((r-n)/.2)**2)):0;le*=1+.6*i,B+=(1-B)*i;let a=Math.min(1,Math.max(0,(r-n)/.2))*(t<1200?1:1-Math.min(1,1.6*((t-1200)/800)));E*=1-.08*a,D*=1-.08*a,le*=1-.15*a}if(m===`searching-lighthouse`){B*=.5;let t=Math.sin(to),n=Math.cos(to),r=E*n-D*t,i=-_*(E*t+D*n)+j*A,a=((Math.atan2(r,i)-(e/2500%1*Va-Math.PI)+Math.PI)%Va+Va)%Va-Math.PI,o=(a<0?Math.max(0,1+a/no):Math.exp(-((a/.45)**2)))*(.25+.75*Math.min(1,Math.max(0,(M-.4)/.3)));le*=1+.6*o,B+=(1-B)*o}if(T){let e=ee.get(c)??0;B*=.5,e&&(le*=1+.8*e,B+=(1-B)*e)}if(m===`waiting`){let n=Math.asin(a/(Math.hypot(t,a,s)||1)),r=Math.atan2(s,t),i=Math.atan2(Math.sin(r-N),Math.cos(r-N)),o=i*Math.cos(n),c=Math.exp(-(((n-P(e+i/te))/.28)**2))*Math.exp(-((o/(i*te>0?.12:1))**2)),l=F*c**.6;B=B*.5+(1-B*.5)*l,le*=1+1.1*l}if(L){let e=Math.hypot(E,D,A)||1,t=t=>Math.acos(Math.min(1,Math.max(-1,(E*t[0]+D*t[1]+A*t[2])/e)));B*=R?.25:.5;let n=L.since,r=R?0:po(t(L.at),so),i=t(L.click),a=go(n),o=a*po(i,co),s=Math.min(1,n/lo),c=Math.exp(-(((i-(.15+1.3*(1-(1-s)**2)))/.18)**2))*(1-s)**2;if(E*=1-.14*o,D*=1-.14*o,le*=(1-.35*o)*(1+.7*Math.max(c,r*(1-a))),B+=(1-B)*Math.max(r,c),R&&yo(vo,(E-L.at[0])/z,(L.at[1]-D)/z)){let e=Math.min(1,Math.max(0,(M-.5)/.2));le*=1+.15*e,B+=(1-B)*e}}if(ie){B*=.25;let e=Math.round((Uo-D)/Ho),t=Math.floor((E-Wo)/Vo),n=Ko[e]?.[t],r=0;n!==void 0&&n<ie.n&&Bo[e][t]===`x`&&Math.abs(Uo-e*Ho-D)<.085&&(r=.75+(n===ie.n-1?.25*Math.exp(-ie.since/120):0));let[i,a]=ie.caret;Math.abs(D-a)<.1&&(r=Math.max(r,ie.blink*Math.exp(-(((E-i)/.04)**2)))),B+=(1-B)*r*ie.fade*Math.min(1,Math.max(0,(M-.5)/.2))}if(ae){let e=ae*Math.max(0,A);E*=1+.45*e,D*=1+.45*e,le*=1+.8*e,B*=Math.min(1,Math.max(0,(1.05-Math.hypot(E,D))/.1))}if(i&&(B*=.55+.45*i.pace),oe!==null&&(B*=.55,le*=1+.25*oe,B+=(1-B)*oe),se!==null){let e=Math.exp(-(((Math.abs(D)-se)/.06)**2))*+(se<1.2);B*=Math.min(1,Math.max(0,(se-Math.abs(D))/.08)),le*=1+.4*e,B+=(1-B)*e*Math.min(1,Math.max(0,(M-.4)/.3))}ce!==null&&(E*=.92+.08*ce,D*=.92+.08*ce,B*=.3+.7*ce),l&&([E,D]=[E*p-D*f,E*f+D*p]),C.dot(c,y+E*b,y-D*b,le,B,O,-k)}),C.frame?.()},M=`${m}@${i}`;j(Ya(M,performance.now(),i));let ee=matchMedia(`(prefers-reduced-motion: reduce)`).matches,N=!1,te=0,P=!1,F=new IntersectionObserver(e=>N=e[e.length-1].isIntersecting);F.observe(e);function ne(e){N&&j(Ya(M,e,i)),te=requestAnimationFrame(ne)}let re=()=>{cancelAnimationFrame(te),te=0},I=()=>{te||ee||P||(te=requestAnimationFrame(ne))};return I(),{pause:re,play:I,destroy(){P=!0,re(),F.disconnect(),e.replaceChildren()}}}function is({state:e,variant:t,size:n=20,speed:r=1,paused:i=!1,label:a,shape:o,render:s,density:c,dotSize:l,tilt:u,direction:d,className:f}){let p=(0,v.useRef)(null),m=(0,v.useRef)(null);(0,v.useEffect)(()=>(m.current=rs(p.current,{state:e,variant:t,size:n,speed:r,label:a,shape:o,render:s,density:c,dotSize:l,tilt:u,direction:d})).destroy,[e,t,n,r,a,o,s,c,l,u,d]),(0,v.useEffect)(()=>{i?m.current.pause():m.current.play()},[i,e,t,n,r,a,o,s,c,l,u,d]);let h=a?{role:`img`,"aria-label":a}:{"aria-hidden":!0};return(0,q.jsx)(`svg`,{ref:p,width:n,height:n,viewBox:`0 0 ${n} ${n}`,fill:`currentColor`,className:f,...h})}var as={thinking:{state:`reasoning`},searching:{state:`searching`},reading:{state:`searching`,variant:`lighthouse`},working:{state:`working`},writing:{state:`working`,variant:`gyro`},browsing:{state:`using`,variant:`tap`},recording:{state:`using`,variant:`record`},handing:{state:`background`},retrying:{state:`retrying`},compacting:{state:`compacting`},waiting:{state:`waiting`},idle:{state:`idle`}};function os({state:e=`working`,label:t,px:n=16,className:r}){return(0,q.jsx)(is,{...as[e],size:n,label:t,className:K(`block flex-none text-ink`,r)})}function ss({id:e,value:t,onChange:n,onSend:r,onStop:i,busy:a,disabled:o,placeholder:s,label:c,left:l,right:u,top:d,rows:f=2}){let p=t.trim().length>0,m=(0,v.useRef)(null);return(0,v.useLayoutEffect)(()=>{let e=m.current;e&&(e.style.height=`auto`,e.style.height=`${e.scrollHeight}px`)},[t]),(0,q.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),a?i?.():p&&!o&&r()},className:`relative box-border w-full rounded-[22px] border border-line bg-bg py-[18px] pr-3.5 pl-5 shadow-composer has-[textarea:focus-visible]:outline-2 has-[textarea:focus-visible]:outline-offset-2 has-[textarea:focus-visible]:outline-accent`,children:[(0,q.jsx)(`label`,{htmlFor:e,className:`sr-only`,children:c}),d,(0,q.jsx)(`textarea`,{ref:m,id:e,rows:f,value:t,disabled:o,onChange:e=>n(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&!e.nativeEvent.isComposing&&(e.preventDefault(),!a&&p&&!o&&r())},placeholder:s,className:`box-border max-h-[50vh] w-full resize-none overflow-y-auto border-0 bg-transparent p-0 text-base leading-[1.55] text-ink outline-none placeholder:text-muted focus-visible:outline-none disabled:opacity-60`}),(0,q.jsxs)(`div`,{className:`mt-2.5 -ml-2.5 flex items-center gap-1`,children:[l,(0,q.jsx)(`div`,{className:`flex-auto`}),u,a?(0,q.jsx)(`button`,{type:`submit`,"aria-label":`Stop`,className:`ml-1.5 inline-flex size-11 flex-none cursor-pointer items-center justify-center rounded-full border-0 bg-ink text-white hover:bg-ink-2`,children:(0,q.jsx)(zr,{size:14,fill:`currentColor`,"aria-hidden":`true`})}):(0,q.jsx)(`button`,{type:`submit`,"aria-label":`Send`,disabled:o,className:K(`ml-1.5 inline-flex size-11 flex-none cursor-pointer items-center justify-center rounded-full border-0 transition-colors disabled:cursor-not-allowed`,p&&!o?`bg-accent text-white hover:bg-accent-hover`:`bg-line text-muted`),children:(0,q.jsx)(Ee,{size:20,strokeWidth:2.2,"aria-hidden":`true`})})]})]})}function cs(e,t){let[n,r]=(0,v.useState)(null),i=(0,v.useRef)(null),a=(0,v.useRef)(t);a.current=t;let o=()=>{i.current&&clearInterval(i.current),i.current=null};return(0,v.useEffect)(()=>o,[]),{state:n,start:(0,v.useCallback)(async t=>{if(t.trim()){o(),r({original:t,job:null,error:``});try{let n=await le.start(t,e);r({original:t,job:n,error:``}),i.current=setInterval(async()=>{try{let t=await le.job();if(!t||t.target!==e||t.startedAt!==n.startedAt)return;if(t.running)return r(e=>e&&{...e,job:t});o();let i=t.exitCode===0?t.result:void 0;i?.refined&&a.current(i.refined),r(e=>e&&{...e,job:t,result:i})}catch(e){o(),r(t=>t&&{...t,error:e.message})}},700)}catch(e){r({original:t,job:null,error:e.message})}}},[e]),stop:(0,v.useCallback)(async()=>{o(),await le.stop().catch(()=>{}),r(null)},[]),close:(0,v.useCallback)(()=>{o(),r(null)},[]),undo:(0,v.useCallback)(()=>{r(e=>(e&&a.current(e.original),null))},[]),running:!!n&&!n.error&&(!n.job||n.job.running)}}function ls({onClick:e,running:t,disabled:n}){return(0,q.jsxs)(J,{variant:`ghost`,className:`px-2.5 text-[15px]`,disabled:n||t,onClick:e,title:`Make the request precise before sending it: nothing runs`,children:[t?(0,q.jsx)(os,{state:`thinking`,px:18}):(0,q.jsx)(Zr,{size:18,strokeWidth:1.8,"aria-hidden":`true`}),`Refine`]})}function us({state:e,onStop:t,onUndo:n,onClose:r}){let[i,a]=(0,v.useState)(!1),o=e.job,s=e.result,c=!e.error&&(!o||o.running),l=e.error||o?.lines.filter(e=>!/^→ |^args /.test(e)).slice(-3).join(` `)||`Refine gave no result.`;return(0,q.jsxs)(`div`,{"aria-live":`polite`,className:`-mt-1 mb-3 flex flex-col gap-2 border-b border-line-soft pb-3 text-[13px]`,children:[(0,q.jsxs)(`div`,{className:`flex min-h-7 flex-wrap items-center gap-x-2 gap-y-1`,children:[c?(0,q.jsx)(os,{state:`thinking`,px:18,label:`Refining`}):(0,q.jsx)(Zr,{size:16,"aria-hidden":`true`,className:s?`text-accent`:`text-fail`}),(0,q.jsx)(`span`,{className:K(`font-medium`,c&&`shimmer`),children:(0,q.jsx)(`span`,{children:c?`Refining your request…`:s?`Refined: your request below, made precise`:`Refine did not finish`})}),c&&(0,q.jsx)(`span`,{className:`text-muted`,children:`Checking it against the capabilities, the systems and the project. Nothing runs.`}),s&&(0,q.jsxs)(`span`,{className:`text-muted`,children:[s.grounded.filter(e=>e.checked).length,` of `,s.grounded.length,` facts checked`]}),(0,q.jsx)(`span`,{className:`flex-auto`}),c?(0,q.jsx)(J,{size:`sm`,variant:`ghost`,onClick:t,children:`Stop`}):(0,q.jsxs)(q.Fragment,{children:[s&&(s.assumed.length>0||typeof s.ste==`number`)&&(0,q.jsxs)(`button`,{type:`button`,"aria-expanded":i,onClick:()=>a(!i),className:`inline-flex min-h-7 cursor-pointer items-center gap-1 rounded-full border-0 bg-transparent px-2 font-medium text-muted hover:bg-surface-strong hover:text-ink`,children:[`Details`,(0,q.jsx)(Je,{size:14,"aria-hidden":`true`,className:K(`transition-transform`,i&&`rotate-180`)})]}),s&&(0,q.jsxs)(`button`,{type:`button`,onClick:n,title:`Put your own words back`,className:`inline-flex min-h-7 cursor-pointer items-center gap-1 rounded-full border-0 bg-transparent px-2 font-medium text-muted hover:bg-surface-strong hover:text-ink`,children:[(0,q.jsx)(Gr,{size:14,"aria-hidden":`true`}),`Undo`]}),(0,q.jsx)(`button`,{type:`button`,"aria-label":`Close the note`,onClick:r,className:`inline-flex size-7 flex-none cursor-pointer items-center justify-center rounded-full border-0 bg-transparent text-muted hover:bg-surface-strong hover:text-ink`,children:(0,q.jsx)(ai,{size:14,"aria-hidden":`true`})})]})]}),!c&&!s&&(0,q.jsx)(`p`,{className:`m-0 rounded-[10px] bg-fail-soft px-3 py-1.5 text-fail [overflow-wrap:anywhere]`,children:l}),s&&s.missing.length>0&&(0,q.jsxs)(`div`,{className:`flex flex-col gap-0.5 rounded-[10px] bg-warn-soft px-3 py-1.5`,children:[(0,q.jsxs)(`span`,{className:`flex items-center gap-1.5 font-medium text-warn`,children:[(0,q.jsx)(Ur,{size:14,"aria-hidden":`true`}),`Still missing: add it before you send`]}),(0,q.jsx)(`ul`,{className:`m-0 list-disc pl-5 text-ink-2`,children:s.missing.map(e=>(0,q.jsx)(`li`,{children:e},e))})]}),s&&i&&(0,q.jsxs)(`div`,{className:`flex flex-col gap-1 text-muted [overflow-wrap:anywhere]`,children:[s.assumed.length>0&&(0,q.jsxs)(`p`,{className:`m-0`,children:[`Assumed: `,s.assumed.join(`; `)]}),typeof s.ste==`number`&&(0,q.jsxs)(`p`,{className:`m-0`,children:[Math.round(s.ste*100),`% of its sentences in plain technical English`]})]})]})}function ds(e){requestAnimationFrame(()=>{let t=document.getElementById(e);t&&(t.focus(),t.setSelectionRange(0,0),t.scrollTop=0)})}function fs({icon:e,logo:t,size:n=`md`,className:r}){return(0,q.jsx)(`span`,{"aria-hidden":`true`,className:K(`inline-flex flex-none items-center justify-center rounded-[10px]`,t?`border border-line bg-bg`:`bg-surface-strong text-ink-2`,n===`lg`?`size-10`:`size-9`,r),children:t?(0,q.jsx)(t,{className:n===`lg`?`size-5`:`size-[18px]`}):e?(0,q.jsx)(e,{size:n===`lg`?20:18,strokeWidth:1.8}):null})}function ps({checked:e,onChange:t,label:n,id:r,disabled:i}){return(0,q.jsx)(`button`,{type:`button`,role:`switch`,id:r,"aria-checked":e,"aria-label":n,disabled:i,onClick:()=>t(!e),className:K(`relative h-[26px] w-11 flex-none cursor-pointer rounded-full border-0 p-0 transition-colors disabled:cursor-not-allowed disabled:opacity-50`,e?`bg-accent`:`bg-line`),children:(0,q.jsx)(`span`,{"aria-hidden":`true`,className:K(`absolute top-[3px] size-5 rounded-full bg-white shadow-[0_1px_2px_rgba(0,0,0,.25)] transition-[left]`,e?`left-[21px]`:`left-[3px]`)})})}var X=e=>e&&typeof e==`object`&&!Array.isArray(e)?e:{};function ms(e,t){let n=e;for(let e of t)n=X(n)[e];return n}var hs=e=>e===void 0||e===``||typeof e==`number`&&Number.isNaN(e);function gs(e,t,n){let[r,...i]=t;if(r===void 0)return e;let a={...e},o=i.length?gs(X(e[r]),i,n):n;return hs(o)||i.length&&hs(n)&&!Object.keys(X(o)).length?delete a[r]:a[r]=o,a}function _s(e,t,n){let r={};for(let[i,a]of Object.entries(e))r[i===t?n:i]=a;return r}function vs(e,t){if(!(t in e))return t;for(let n=2;;n++)if(!(`${t}-${n}`in e))return`${t}-${n}`}var ys=(e,t)=>JSON.stringify(e)===JSON.stringify(t),bs=(0,v.forwardRef)(({title:e,titleId:t,...n},r)=>(0,q.jsxs)(`svg`,{viewBox:`0 0 256 150`,width:`2.06em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,q.jsx)(`title`,{id:t,children:e}):null,(0,q.jsx)(`path`,{fill:`#34a853`,d:`M255.285 143.47c-.084-.524-.164-1.042-.251-1.56a128.1 128.1 0 0 0-12.794-38.288a128.8 128.8 0 0 0-23.45-31.86a129.2 129.2 0 0 0-22.713-18.005c.049-.08.09-.168.14-.25c2.582-4.461 5.172-8.917 7.755-13.38l7.576-13.068c1.818-3.126 3.632-6.26 5.438-9.386q.643-1.115 1.023-2.297a11.78 11.78 0 0 0-.36-8.188q-.32-.76-.743-1.472a11.7 11.7 0 0 0-4.08-4.064a11.85 11.85 0 0 0-5.005-1.61a12 12 0 0 0-2.218.02q-.912.094-1.814.33a11.74 11.74 0 0 0-7.154 5.467c-1.814 3.127-3.628 6.26-5.438 9.386l-7.576 13.069c-2.583 4.462-5.173 8.918-7.755 13.38c-.282.487-.567.973-.848 1.467q-.586-.237-1.172-.462c-14.24-5.43-29.688-8.4-45.836-8.4c-.442 0-.879 0-1.324.006c-14.357.143-28.152 2.64-41.022 7.12a119 119 0 0 0-4.42 1.642c-.262-.455-.532-.911-.79-1.367c-2.583-4.462-5.173-8.918-7.755-13.38l-7.576-13.07a3915 3915 0 0 1-5.439-9.386A11.74 11.74 0 0 0 48.5.048a11.7 11.7 0 0 0-5.01 1.612a11.7 11.7 0 0 0-4.077 4.063c-.281.474-.532.967-.742 1.473a11.8 11.8 0 0 0-.365 8.188c.259.786.594 1.554 1.023 2.296a3973 3973 0 0 1 5.439 9.386q3.793 6.535 7.58 13.069c2.582 4.462 5.168 8.918 7.75 13.38c.02.038.046.075.065.112A129 129 0 0 0 45.32 64.38a129.7 129.7 0 0 0-22.2 24.015a128 128 0 0 0-9.34 15.24a128.2 128.2 0 0 0-10.843 28.764a131 131 0 0 0-1.951 9.524c-.087.518-.167 1.042-.247 1.56A125 125 0 0 0 0 149.118h256q-.307-2.837-.734-5.636z`}),(0,q.jsx)(`path`,{fill:`#202124`,d:`M194.59 113.712c5.122-3.41 5.867-11.3 1.661-17.62c-4.203-6.323-11.763-8.682-16.883-5.273c-5.122 3.41-5.868 11.3-1.662 17.621c4.203 6.322 11.764 8.682 16.883 5.272m-116.071-5.25c4.206-6.321 3.46-14.21-1.662-17.62c-5.123-3.41-12.68-1.05-16.886 5.27c-4.203 6.323-3.458 14.212 1.662 17.622c5.122 3.41 12.683 1.05 16.886-5.272`})]})),xs=(0,v.forwardRef)(({title:e,titleId:t,...n},r)=>(0,q.jsxs)(`svg`,{viewBox:`0 0 256 315`,width:`0.99em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,q.jsx)(`title`,{id:t,children:e}):null,(0,q.jsx)(`path`,{d:`M213.803 167.03c.442 47.58 41.74 63.413 42.197 63.615c-.35 1.116-6.599 22.563-21.757 44.716c-13.104 19.153-26.705 38.235-48.13 38.63c-21.05.388-27.82-12.483-51.888-12.483c-24.061 0-31.582 12.088-51.51 12.871c-20.68.783-36.428-20.71-49.64-39.793c-27-39.033-47.633-110.3-19.928-158.406c13.763-23.89 38.36-39.017 65.056-39.405c20.307-.387 39.475 13.662 51.889 13.662c12.406 0 35.699-16.895 60.186-14.414c10.25.427 39.026 4.14 57.503 31.186c-1.49.923-34.335 20.044-33.978 59.822M174.24 50.199c10.98-13.29 18.369-31.79 16.353-50.199c-15.826.636-34.962 10.546-46.314 23.828c-10.173 11.763-19.082 30.589-16.678 48.633c17.64 1.365 35.66-8.964 46.64-22.262`})]})),Ss=(0,v.forwardRef)(({title:e,titleId:t,...n},r)=>(0,q.jsxs)(`svg`,{viewBox:`0 0 256 242`,width:`1.28em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,q.jsx)(`title`,{id:t,children:e}):null,(0,q.jsxs)(`defs`,{children:[(0,q.jsxs)(`linearGradient`,{id:`SVG4V795Kgq`,x1:`58.972%`,x2:`37.191%`,y1:`7.411%`,y2:`103.762%`,children:[(0,q.jsx)(`stop`,{offset:`0%`,stopColor:`#114a8b`}),(0,q.jsx)(`stop`,{offset:`100%`,stopColor:`#0669bc`})]}),(0,q.jsxs)(`linearGradient`,{id:`SVGzpurqcJr`,x1:`59.719%`,x2:`52.691%`,y1:`52.313%`,y2:`54.864%`,children:[(0,q.jsx)(`stop`,{offset:`0%`,stopOpacity:.3}),(0,q.jsx)(`stop`,{offset:`7.1%`,stopOpacity:.2}),(0,q.jsx)(`stop`,{offset:`32.1%`,stopOpacity:.1}),(0,q.jsx)(`stop`,{offset:`62.3%`,stopOpacity:.05}),(0,q.jsx)(`stop`,{offset:`100%`,stopOpacity:0})]}),(0,q.jsxs)(`linearGradient`,{id:`SVGZ5kCkZNr`,x1:`37.279%`,x2:`62.473%`,y1:`4.6%`,y2:`99.979%`,children:[(0,q.jsx)(`stop`,{offset:`0%`,stopColor:`#3ccbf4`}),(0,q.jsx)(`stop`,{offset:`100%`,stopColor:`#2892df`})]})]}),(0,q.jsx)(`path`,{fill:`url(#SVG4V795Kgq)`,d:`M85.343.003h75.753L82.457 233a12.08 12.08 0 0 1-11.442 8.216H12.06A12.06 12.06 0 0 1 .633 225.303L73.898 8.219A12.08 12.08 0 0 1 85.343 0z`}),(0,q.jsx)(`path`,{fill:`#0078d4`,d:`M195.423 156.282H75.297a5.56 5.56 0 0 0-3.796 9.627l77.19 72.047a12.14 12.14 0 0 0 8.28 3.26h68.02z`}),(0,q.jsx)(`path`,{fill:`url(#SVGzpurqcJr)`,d:`M85.343.003a11.98 11.98 0 0 0-11.471 8.376L.723 225.105a12.045 12.045 0 0 0 11.37 16.112h60.475a12.93 12.93 0 0 0 9.921-8.437l14.588-42.991l52.105 48.6a12.33 12.33 0 0 0 7.757 2.828h67.766l-29.721-84.935l-86.643.02L161.37.003z`}),(0,q.jsx)(`path`,{fill:`url(#SVGZ5kCkZNr)`,d:`M182.098 8.207A12.06 12.06 0 0 0 170.67.003H86.245c5.175 0 9.773 3.301 11.428 8.204L170.94 225.3a12.062 12.062 0 0 1-11.428 15.92h84.429a12.062 12.062 0 0 0 11.425-15.92z`})]})),Cs=(0,v.forwardRef)(({title:e,titleId:t,...n},r)=>(0,q.jsxs)(`svg`,{viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,q.jsx)(`title`,{id:t,children:e}):null,(0,q.jsx)(`defs`,{children:(0,q.jsxs)(`radialGradient`,{id:`SVGwZwAicDR`,cx:`50.141%`,cy:`50.003%`,r:`50.119%`,fx:`50.141%`,fy:`50.003%`,children:[(0,q.jsx)(`stop`,{offset:`0%`,stopColor:`#797979`}),(0,q.jsx)(`stop`,{offset:`100%`,stopColor:`#4c4c4c`})]})}),(0,q.jsx)(`circle`,{cx:127.949,cy:128.603,r:127.397,fill:`#f5bb60`}),(0,q.jsx)(`circle`,{cx:114.961,cy:115.615,r:114.685,fill:`#e86f32`}),(0,q.jsx)(`circle`,{cx:130.16,cy:100.416,r:99.485,fill:`#e53d42`}),(0,q.jsx)(`circle`,{cx:138.174,cy:108.43,r:91.471,fill:`#bfd141`}),(0,q.jsx)(`circle`,{cx:131.542,cy:115.062,r:84.839,fill:`#6db64c`}),(0,q.jsx)(`circle`,{cx:118.001,cy:101.798,r:71.298,fill:`#afdbe7`}),(0,q.jsx)(`circle`,{cx:129.607,cy:89.915,r:59.691,fill:`#57badf`}),(0,q.jsx)(`circle`,{cx:137.069,cy:97.376,r:52.506,fill:`#02b2d6`}),(0,q.jsx)(`circle`,{cx:129.331,cy:104.837,r:44.768,fill:`url(#SVGwZwAicDR)`}),(0,q.jsx)(`circle`,{cx:129.331,cy:104.837,r:44.768,fill:`#231f20`}),(0,q.jsx)(`path`,{fill:`#fff`,d:`M141.088 98.971c4.439 1.992 10.56-2.016 13.672-8.951s2.036-14.173-2.402-16.164c-4.44-1.992-10.56 2.016-13.672 8.951s-2.037 14.173 2.402 16.164`})]})),ws=(0,v.forwardRef)(({title:e,titleId:t,...n},r)=>(0,q.jsxs)(`svg`,{viewBox:`0 0 256 246`,width:`1.26em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,q.jsx)(`title`,{id:t,children:e}):null,(0,q.jsxs)(`defs`,{children:[(0,q.jsxs)(`linearGradient`,{id:`SVGvnhR7dox`,x1:`99.14%`,x2:`33.859%`,y1:`112.708%`,y2:`37.755%`,children:[(0,q.jsx)(`stop`,{offset:`18%`,stopColor:`#0052cc`}),(0,q.jsx)(`stop`,{offset:`100%`,stopColor:`#2684ff`})]}),(0,q.jsxs)(`linearGradient`,{id:`SVGgker3cTp`,x1:`.926%`,x2:`66.18%`,y1:`-12.582%`,y2:`62.306%`,children:[(0,q.jsx)(`stop`,{offset:`18%`,stopColor:`#0052cc`}),(0,q.jsx)(`stop`,{offset:`100%`,stopColor:`#2684ff`})]})]}),(0,q.jsx)(`path`,{fill:`url(#SVGvnhR7dox)`,d:`M9.26 187.33c-2.64 4.307-5.607 9.305-8.126 13.287a8.127 8.127 0 0 0 2.722 11.052l52.823 32.507a8.127 8.127 0 0 0 11.256-2.763c2.113-3.536 4.835-8.127 7.801-13.044c20.926-34.538 41.974-30.312 79.925-12.19l52.376 24.908a8.127 8.127 0 0 0 10.93-4.063l25.152-56.886a8.127 8.127 0 0 0-4.063-10.646c-11.052-5.201-33.034-15.562-52.823-25.111c-71.189-34.579-131.691-32.344-177.972 42.949`}),(0,q.jsx)(`path`,{fill:`url(#SVGgker3cTp)`,d:`M246.115 58.232c2.641-4.307 5.607-9.305 8.127-13.287a8.127 8.127 0 0 0-2.723-11.052L198.696 1.386a8.127 8.127 0 0 0-11.58 2.682c-2.113 3.535-4.835 8.127-7.802 13.043c-20.926 34.538-41.974 30.313-79.925 12.19L47.176 4.515a8.127 8.127 0 0 0-10.93 4.063L11.093 65.465a8.127 8.127 0 0 0 4.063 10.645c11.052 5.202 33.035 15.563 52.823 25.112c71.351 34.538 131.854 32.222 178.135-42.99`})]})),Ts=(0,v.forwardRef)(({title:e,titleId:t,...n},r)=>(0,q.jsxs)(`svg`,{viewBox:`0 0 256 208`,width:`1.49em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,q.jsx)(`title`,{id:t,children:e}):null,(0,q.jsx)(`path`,{d:`M205.28 31.36c14.096 14.88 20.016 35.2 22.512 63.68c6.626 0 12.805 1.47 16.976 7.152l7.792 10.56A17.55 17.55 0 0 1 256 123.2v28.688c-.008 3.704-1.843 7.315-4.832 9.504C215.885 187.222 172.35 208 128 208c-49.066 0-98.19-28.273-123.168-46.608c-2.989-2.189-4.825-5.8-4.832-9.504V123.2c0-3.776 1.2-7.424 3.424-10.464l7.792-10.544c4.173-5.657 10.38-7.152 16.992-7.152c2.496-28.48 8.4-48.8 22.512-63.68C77.331 3.165 112.567.06 127.552 0H128c14.72 0 50.4 2.88 77.28 31.36m-77.264 47.376c-3.04 0-6.544.176-10.272.544c-1.312 4.896-3.248 9.312-6.08 12.128c-11.2 11.2-24.704 12.928-31.936 12.928c-6.802 0-13.927-1.42-19.744-5.088c-5.502 1.808-10.786 4.415-11.136 10.912c-.586 12.28-.637 24.55-.688 36.824c-.026 6.16-.05 12.322-.144 18.488c.024 3.579 2.182 6.903 5.44 8.384C79.936 185.92 104.976 192 128.016 192c23.008 0 48.048-6.08 74.512-18.144c3.258-1.48 5.415-4.805 5.44-8.384c.317-18.418.062-36.912-.816-55.312h.016c-.342-6.534-5.648-9.098-11.168-10.912c-5.82 3.652-12.927 5.088-19.728 5.088c-7.232 0-20.72-1.728-31.936-12.928c-2.832-2.816-4.768-7.232-6.08-12.128a106 106 0 0 0-10.24-.544m-26.941 43.93c5.748 0 10.408 4.66 10.408 10.409v19.183c0 5.749-4.66 10.409-10.408 10.409s-10.408-4.66-10.408-10.409v-19.183c0-5.748 4.66-10.408 10.408-10.408m53.333 0c5.749 0 10.409 4.66 10.409 10.409v19.183c0 5.749-4.66 10.409-10.409 10.409c-5.748 0-10.408-4.66-10.408-10.409v-19.183c0-5.748 4.66-10.408 10.408-10.408M81.44 28.32c-11.2 1.12-20.64 4.8-25.44 9.92c-10.4 11.36-8.16 40.16-2.24 46.24c4.32 4.32 12.48 7.2 21.28 7.2c6.72 0 19.52-1.44 30.08-12.16c4.64-4.48 7.52-15.68 7.2-27.04c-.32-9.12-2.88-16.64-6.72-19.84c-4.16-3.68-13.6-5.28-24.16-4.32m68.96 4.32c-3.84 3.2-6.4 10.72-6.72 19.84c-.32 11.36 2.56 22.56 7.2 27.04c10.56 10.72 23.36 12.16 30.08 12.16c8.8 0 16.96-2.88 21.28-7.2c5.92-6.08 8.16-34.88-2.24-46.24c-4.8-5.12-14.24-8.8-25.44-9.92c-10.56-.96-20 .64-24.16 4.32M128 56c-2.56 0-5.6.16-8.96.48c.32 1.76.48 3.68.64 5.76c0 1.44 0 2.88-.16 4.48c3.2-.32 5.92-.32 8.48-.32s5.28 0 8.48.32c-.16-1.6-.16-3.04-.16-4.48c.16-2.08.32-4 .64-5.76c-3.36-.32-6.4-.48-8.96-.48`})]})),Es=(0,v.forwardRef)(({title:e,titleId:t,...n},r)=>(0,q.jsxs)(`svg`,{viewBox:`0 0 256 250`,width:`1.24em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,q.jsx)(`title`,{id:t,children:e}):null,(0,q.jsx)(`path`,{fill:`#161614`,d:`M128.001 0C57.317 0 0 57.307 0 128.001c0 56.554 36.676 104.535 87.535 121.46c6.397 1.185 8.746-2.777 8.746-6.158c0-3.052-.12-13.135-.174-23.83c-35.61 7.742-43.124-15.103-43.124-15.103c-5.823-14.795-14.213-18.73-14.213-18.73c-11.613-7.944.876-7.78.876-7.78c12.853.902 19.621 13.19 19.621 13.19c11.417 19.568 29.945 13.911 37.249 10.64c1.149-8.272 4.466-13.92 8.127-17.116c-28.431-3.236-58.318-14.212-58.318-63.258c0-13.975 5-25.394 13.188-34.358c-1.329-3.224-5.71-16.242 1.24-33.874c0 0 10.749-3.44 35.21 13.121c10.21-2.836 21.16-4.258 32.038-4.307c10.878.049 21.837 1.47 32.066 4.307c24.431-16.56 35.165-13.12 35.165-13.12c6.967 17.63 2.584 30.65 1.255 33.873c8.207 8.964 13.173 20.383 13.173 34.358c0 49.163-29.944 59.988-58.447 63.157c4.591 3.972 8.682 11.762 8.682 23.704c0 17.126-.148 30.91-.148 35.126c0 3.407 2.304 7.398 8.792 6.14C219.37 232.5 256 184.537 256 128.002C256 57.307 198.691 0 128.001 0m-80.06 182.34c-.282.636-1.283.827-2.194.39c-.929-.417-1.45-1.284-1.15-1.922c.276-.655 1.279-.838 2.205-.399c.93.418 1.46 1.293 1.139 1.931m6.296 5.618c-.61.566-1.804.303-2.614-.591c-.837-.892-.994-2.086-.375-2.66c.63-.566 1.787-.301 2.626.591c.838.903 1 2.088.363 2.66m4.32 7.188c-.785.545-2.067.034-2.86-1.104c-.784-1.138-.784-2.503.017-3.05c.795-.547 2.058-.055 2.861 1.075c.782 1.157.782 2.522-.019 3.08m7.304 8.325c-.701.774-2.196.566-3.29-.49c-1.119-1.032-1.43-2.496-.726-3.27c.71-.776 2.213-.558 3.315.49c1.11 1.03 1.45 2.505.701 3.27m9.442 2.81c-.31 1.003-1.75 1.459-3.199 1.033c-1.448-.439-2.395-1.613-2.103-2.626c.301-1.01 1.747-1.484 3.207-1.028c1.446.436 2.396 1.602 2.095 2.622m10.744 1.193c.036 1.055-1.193 1.93-2.715 1.95c-1.53.034-2.769-.82-2.786-1.86c0-1.065 1.202-1.932 2.733-1.958c1.522-.03 2.768.818 2.768 1.868m10.555-.405c.182 1.03-.875 2.088-2.387 2.37c-1.485.271-2.861-.365-3.05-1.386c-.184-1.056.893-2.114 2.376-2.387c1.514-.263 2.868.356 3.061 1.403`})]})),Ds=(0,v.forwardRef)(({title:e,titleId:t,...n},r)=>(0,q.jsxs)(`svg`,{viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,q.jsx)(`title`,{id:t,children:e}):null,(0,q.jsxs)(`defs`,{children:[(0,q.jsxs)(`linearGradient`,{id:`SVGSBI7obaC`,x1:`98.031%`,x2:`58.888%`,y1:`.161%`,y2:`40.766%`,children:[(0,q.jsx)(`stop`,{offset:`18%`,stopColor:`#0052cc`}),(0,q.jsx)(`stop`,{offset:`100%`,stopColor:`#2684ff`})]}),(0,q.jsxs)(`linearGradient`,{id:`SVGHifZlbzE`,x1:`100.665%`,x2:`55.402%`,y1:`.455%`,y2:`44.727%`,children:[(0,q.jsx)(`stop`,{offset:`18%`,stopColor:`#0052cc`}),(0,q.jsx)(`stop`,{offset:`100%`,stopColor:`#2684ff`})]})]}),(0,q.jsx)(`path`,{fill:`#2684ff`,d:`M244.658 0H121.707a55.5 55.5 0 0 0 55.502 55.502h22.649V77.37c.02 30.625 24.841 55.447 55.466 55.467V10.666C255.324 4.777 250.55 0 244.658 0`}),(0,q.jsx)(`path`,{fill:`url(#SVGSBI7obaC)`,d:`M183.822 61.262H60.872c.019 30.625 24.84 55.447 55.466 55.467h22.649v21.938c.039 30.625 24.877 55.43 55.502 55.43V71.93c0-5.891-4.776-10.667-10.667-10.667`}),(0,q.jsx)(`path`,{fill:`url(#SVGHifZlbzE)`,d:`M122.951 122.489H0c0 30.653 24.85 55.502 55.502 55.502h22.72v21.867c.02 30.597 24.798 55.408 55.396 55.466V133.156c0-5.891-4.776-10.667-10.667-10.667`})]})),Os=(0,v.forwardRef)(({title:e,titleId:t,...n},r)=>(0,q.jsxs)(`svg`,{viewBox:`0 0 256 339`,width:`0.92em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,q.jsx)(`title`,{id:t,children:e}):null,(0,q.jsx)(`path`,{d:`M189.485 144.651c-3.445.99-6.306 3.4-7.867 6.626l-1.015 2.087l.014 2.918c0 2.721.057 3.06.832 4.977c1.072 2.72 2.143 4.399 4.103 6.316c3.383 3.355 7.19 4.23 12.294 2.89a12.13 12.13 0 0 0 7.288-6.147a10.6 10.6 0 0 0 1.128-7.02c-.902-6.387-4.652-11.026-10.207-12.647a14.94 14.94 0 0 0-6.57 0m-129.746.07c-4.3 1.354-7.515 4.512-9.164 9.01a16.7 16.7 0 0 0-.846 7.33c.803 4.357 4.37 8.319 8.43 9.404c5.104 1.34 8.91.465 12.294-2.89c1.974-1.917 3.031-3.595 4.103-6.316c.775-1.917.832-2.256.832-4.977l.014-2.918l-1.015-2.087a12.6 12.6 0 0 0-7.966-6.654a14.4 14.4 0 0 0-6.682.099m58.987 28.197c-1.847 1.001-3.144 3.525-2.75 5.4c.438 2.016 2.214 4.06 4.977 5.738c1.48.888 1.58 1.015 1.65 1.917c.056.536-.141 2.059-.409 3.426c-.282 1.325-.507 2.735-.507 3.13c.028 1.043.986 2.75 2.016 3.567c.902.733 1.071.761 3.595.832c2.312.07 2.791.014 3.722-.423c2.382-1.156 2.988-3.3 2.114-7.402c-.733-3.426-.592-3.947 1.227-5.005c1.931-1.128 3.962-3.087 4.568-4.427a5.146 5.146 0 0 0-2.467-6.767a5.56 5.56 0 0 0-2.552-.465c-1.777 0-2.919.423-5.005 1.748l-1.198.747l-.748-.45c-3.087-1.834-3.651-2.045-5.512-2.017a5.6 5.6 0 0 0-2.721.451m5.498-30.946c-5.258.508-6.696.705-9.22 1.213c-4.103.846-9.587 2.75-13.408 4.624c-13.252 6.485-22.402 17.285-25.193 29.804c-.564 2.481-.635 3.299-.635 7.472c0 4.145.07 5.033.607 7.388c3.722 16.354 18.779 28.436 38.262 30.635c4.23.465 22.501.465 26.73 0c15.65-1.762 29.1-10.25 35.148-22.148c1.607-3.186 2.382-5.245 3.101-8.487c.55-2.355.62-3.243.62-7.374c0-4.187-.07-5.005-.634-7.486c-4.06-18.187-21.697-32.482-43.31-35.203a97 97 0 0 0-12.054-.438zm9.094 13.21a46.3 46.3 0 0 1 20.301 7.247c3.144 2.087 7.571 6.457 9.46 9.333c2.34 3.539 3.666 7.162 4.272 11.56c.282 2.017.14 3.54-.606 6.796c-1.128 4.864-4.68 9.94-9.474 13.492a44 44 0 0 1-9.714 4.906c-5.386 1.72-8.91 2.03-21.5 1.946c-8.205-.085-9.671-.141-12.026-.592c-8.036-1.509-14.408-4.709-19.033-9.587c-3.721-3.947-5.427-7.543-6.344-13.337c-.423-2.707.353-7.176 1.932-10.94c1.917-4.596 6.88-10.292 11.786-13.577c5.681-3.792 13.168-6.485 20.048-7.218c2.636-.282 8.261-.282 10.898-.028M55.735.103a23.3 23.3 0 0 0-9.63 4.2c-8.092 6.133-14.352 19.188-17.002 35.444c-.987 6.147-1.678 14.662-1.678 21.19c0 7.669.903 17.481 2.186 24.263c.282 1.508.437 2.847.324 2.932q-1.302 1.091-2.637 2.143a75 75 0 0 0-13.379 14.38A77.4 77.4 0 0 0 .667 137.63a93.4 93.4 0 0 0-.325 19.132c1.283 10.996 4.582 20.273 10.25 28.76l1.833 2.75l-.522.902c-3.792 6.372-7.02 15.578-8.53 24.418c-1.184 6.993-1.339 8.868-1.339 18.243c0 9.446.127 11.321 1.24 17.848c1.34 7.825 4.061 16.115 7.092 21.627c1.001 1.805 3.426 5.54 3.722 5.738c.099.043-.197.945-.648 1.988a104.4 104.4 0 0 0-7.726 26.406c-.874 5.88-1.001 7.783-1.001 13.972c0 7.895.437 11.73 2.087 18.031l.24.917h20.836l-.704-1.283c-4.188-7.782-4.582-22.205-.96-36.613c1.65-6.655 3.525-11.547 7.022-18.272l2.086-4.088v-2.496c0-2.326-.042-2.594-.803-4.13a12.9 12.9 0 0 0-2.735-3.525a24.5 24.5 0 0 1-5.428-7.655c-5.978-12.97-7.134-32.23-2.933-48.654c1.749-6.851 4.639-12.942 7.67-16.27a11.1 11.1 0 0 0 3.144-7.485c0-2.75-.987-5.005-3.158-7.36a44.2 44.2 0 0 1-11.519-24.376c-1.973-13.534 1.608-28.267 9.728-39.954c7.938-11.476 19.075-18.836 31.538-20.795c2.806-.465 8.036-.395 10.94.14c3.187.565 5.175.396 7.219-.577c2.523-1.199 3.778-2.679 5.273-6.077c1.31-3.03 2.326-4.694 5.075-8.12c3.299-4.089 6.485-6.894 11.589-10.278c5.822-3.806 12.463-6.584 19.06-7.909c2.397-.493 3.525-.564 8.023-.564s5.61.07 8.022.564a57.4 57.4 0 0 1 26.984 14.056c1.65 1.537 5.61 6.443 6.88 8.487c.479.804 1.339 2.496 1.86 3.764c1.48 3.398 2.75 4.878 5.273 6.063c1.974.958 4.032 1.156 7.092.634c4.836-.818 8.557-.747 13.294.226c16.129 3.242 30.17 16.537 36.388 34.357c5.428 15.621 3.891 31.961-4.173 44.452c-1.367 2.115-2.72 3.807-4.695 5.907c-4.243 4.54-4.243 10.18-.014 14.846c6.95 7.599 11.293 26.307 9.982 42.802c-.874 10.884-3.666 20.626-7.515 26.139a29.6 29.6 0 0 1-3.158 3.637a12.9 12.9 0 0 0-2.735 3.524c-.76 1.537-.803 1.805-.803 4.131v2.51l2.086 4.088c3.497 6.711 5.358 11.603 7.021 18.258c3.567 14.21 3.257 28.337-.832 36.387q-.353.671-.62 1.382c0 .084 4.639.127 10.32.127h10.292l.282-1.043l.507-1.89c.268-1.071.804-4.23 1.241-7.274c.409-3.06.409-14.324 0-17.736c-1.55-12.336-4.159-22.134-8.417-31.383c-.45-1.043-.747-1.945-.648-1.988c.113-.07.803-1.043 1.522-2.143c5.301-8.022 8.558-18.102 10.208-31.41c.437-3.666.437-19.428 0-22.953c-1.17-9.093-2.566-15.254-4.907-21.5a86 86 0 0 0-4.638-9.868l-.536-.903l1.847-2.735c5.668-8.515 8.967-17.792 10.25-28.76a93.4 93.4 0 0 0-.339-19.146a77.7 77.7 0 0 0-13.238-32.976a75 75 0 0 0-13.393-14.38a114 114 0 0 1-2.623-2.143a9.8 9.8 0 0 1 .325-2.932c2.932-15.325 2.833-34.443-.24-49.387c-2.679-13.027-7.543-23.375-13.816-29.352c-4.991-4.766-10.095-6.796-16.213-6.415c-14.042.832-25.377 16.988-29.832 42.436a96 96 0 0 0-1.368 10.235c0 .508-.099.93-.211.93a13.5 13.5 0 0 1-2.101-1.099a68.5 68.5 0 0 0-34.611-9.827c-11.73 0-23.784 3.426-34.626 9.841c-.662.427-1.36.795-2.086 1.1c-.113 0-.212-.423-.212-.93a95 95 0 0 0-1.367-10.222C85.665 19.627 76.36 4.5 63.996.679A29.6 29.6 0 0 0 55.75.101zm4.13 19.765c3.497 2.777 7.374 10.7 9.616 19.569c.422 1.593.845 3.44.972 4.116c.099.663.367 2.143.578 3.285c.945 5.146 1.382 10.715 1.438 17.482l.029 6.697l-1.692 2.467l-1.664 2.51h-3.92c-4.567 0-9.107.577-13.449 1.748l-3.355.846c-.466.098-.536-.043-.804-2.03a119 119 0 0 1 .226-32.751c1.748-11.11 5.822-21.162 9.812-24.122c.945-.705 1.114-.691 2.213.183m138.516-.17c2.397 1.777 5.047 6.486 7.021 12.52c3.948 12.04 5.076 28.592 2.99 44.34c-.269 1.973-.34 2.128-.805 2.03l-3.355-.846a52 52 0 0 0-13.45-1.749h-3.919l-1.678-2.509l-1.677-2.467l.028-6.683c.056-9.432.93-16.777 3.017-24.982c2.213-8.783 6.118-16.707 9.587-19.484c1.1-.874 1.268-.888 2.241-.17`})]})),ks=(0,v.forwardRef)(({title:e,titleId:t,...n},r)=>(0,q.jsxs)(`svg`,{viewBox:`0 0 256 260`,width:`1.19em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,q.jsx)(`title`,{id:t,children:e}):null,(0,q.jsx)(`path`,{d:`M239.184 106.203a64.72 64.72 0 0 0-5.576-53.103C219.452 28.459 191 15.784 163.213 21.74A65.586 65.586 0 0 0 52.096 45.22a64.72 64.72 0 0 0-43.23 31.36c-14.31 24.602-11.061 55.634 8.033 76.74a64.67 64.67 0 0 0 5.525 53.102c14.174 24.65 42.644 37.324 70.446 31.36a64.72 64.72 0 0 0 48.754 21.744c28.481.025 53.714-18.361 62.414-45.481a64.77 64.77 0 0 0 43.229-31.36c14.137-24.558 10.875-55.423-8.083-76.483m-97.56 136.338a48.4 48.4 0 0 1-31.105-11.255l1.535-.87l51.67-29.825a8.6 8.6 0 0 0 4.247-7.367v-72.85l21.845 12.636c.218.111.37.32.409.563v60.367c-.056 26.818-21.783 48.545-48.601 48.601M37.158 197.93a48.35 48.35 0 0 1-5.781-32.589l1.534.921l51.722 29.826a8.34 8.34 0 0 0 8.441 0l63.181-36.425v25.221a.87.87 0 0 1-.358.665l-52.335 30.184c-23.257 13.398-52.97 5.431-66.404-17.803M23.549 85.38a48.5 48.5 0 0 1 25.58-21.333v61.39a8.29 8.29 0 0 0 4.195 7.316l62.874 36.272l-21.845 12.636a.82.82 0 0 1-.767 0L41.353 151.53c-23.211-13.454-31.171-43.144-17.804-66.405zm179.466 41.695l-63.08-36.63L161.73 77.86a.82.82 0 0 1 .768 0l52.233 30.184a48.6 48.6 0 0 1-7.316 87.635v-61.391a8.54 8.54 0 0 0-4.4-7.213m21.742-32.69l-1.535-.922l-51.619-30.081a8.39 8.39 0 0 0-8.492 0L99.98 99.808V74.587a.72.72 0 0 1 .307-.665l52.233-30.133a48.652 48.652 0 0 1 72.236 50.391zM88.061 139.097l-21.845-12.585a.87.87 0 0 1-.41-.614V65.685a48.652 48.652 0 0 1 79.757-37.346l-1.535.87l-51.67 29.825a8.6 8.6 0 0 0-4.246 7.367zm11.868-25.58L128.067 97.3l28.188 16.218v32.434l-28.086 16.218l-28.188-16.218z`})]})),As=(0,v.forwardRef)(({title:e,titleId:t,...n},r)=>(0,q.jsxs)(`svg`,{viewBox:`0 0 256 239`,width:`1.3em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,q.jsx)(`title`,{id:t,children:e}):null,(0,q.jsxs)(`defs`,{children:[(0,q.jsxs)(`linearGradient`,{id:`SVGCo9xpmZW`,x1:`17.372%`,x2:`82.628%`,y1:`-6.51%`,y2:`106.51%`,children:[(0,q.jsx)(`stop`,{offset:`0%`,stopColor:`#5a62c3`}),(0,q.jsx)(`stop`,{offset:`50%`,stopColor:`#4d55bd`}),(0,q.jsx)(`stop`,{offset:`100%`,stopColor:`#3940ab`})]}),(0,q.jsx)(`path`,{id:`SVGhJCUgeMn`,d:`M136.93 64.476v12.8a32.7 32.7 0 0 1-5.953-.952a38.7 38.7 0 0 1-26.79-22.742h21.848c6.008.022 10.872 4.887 10.895 10.894`})]}),(0,q.jsx)(`path`,{fill:`#5059c9`,d:`M178.563 89.302h66.125c6.248 0 11.312 5.065 11.312 11.312v60.231c0 22.96-18.613 41.574-41.573 41.574h-.197c-22.96.003-41.576-18.607-41.579-41.568V95.215a5.91 5.91 0 0 1 5.912-5.913`}),(0,q.jsx)(`circle`,{cx:223.256,cy:50.605,r:26.791,fill:`#5059c9`}),(0,q.jsx)(`circle`,{cx:139.907,cy:38.698,r:38.698,fill:`#7b83eb`}),(0,q.jsx)(`path`,{fill:`#7b83eb`,d:`M191.506 89.302H82.355c-6.173.153-11.056 5.276-10.913 11.449v68.697c-.862 37.044 28.445 67.785 65.488 68.692c37.043-.907 66.35-31.648 65.489-68.692v-68.697c.143-6.173-4.74-11.296-10.913-11.449`}),(0,q.jsx)(`path`,{d:`M142.884 89.302v96.268a10.96 10.96 0 0 1-6.787 10.062c-1.3.55-2.697.833-4.108.833H76.68c-.774-1.965-1.488-3.93-2.084-5.953a72.5 72.5 0 0 1-3.155-21.076v-68.703c-.143-6.163 4.732-11.278 10.895-11.43z`,opacity:.1}),(0,q.jsx)(`path`,{d:`M136.93 89.302v102.222c0 1.411-.283 2.808-.833 4.108a10.96 10.96 0 0 1-10.062 6.787H79.48c-1.012-1.965-1.965-3.93-2.798-5.954a59 59 0 0 1-2.084-5.953a72.5 72.5 0 0 1-3.155-21.076v-68.703c-.143-6.163 4.732-11.278 10.895-11.43z`,opacity:.2}),(0,q.jsx)(`path`,{d:`M136.93 89.302v90.315c-.045 5.998-4.896 10.85-10.895 10.895H74.597a72.5 72.5 0 0 1-3.155-21.076v-68.703c-.143-6.163 4.732-11.278 10.895-11.43z`,opacity:.2}),(0,q.jsx)(`path`,{d:`M130.977 89.302v90.315c-.046 5.998-4.897 10.85-10.895 10.895H74.597a72.5 72.5 0 0 1-3.155-21.076v-68.703c-.143-6.163 4.732-11.278 10.895-11.43z`,opacity:.2}),(0,q.jsx)(`path`,{d:`M142.884 58.523v18.753c-1.012.06-1.965.12-2.977.12s-1.965-.06-2.977-.12a32.7 32.7 0 0 1-5.953-.952a38.7 38.7 0 0 1-26.791-22.742a33 33 0 0 1-1.905-5.954h29.708c6.007.023 10.872 4.887 10.895 10.895`,opacity:.1}),(0,q.jsx)(`use`,{href:`#SVGhJCUgeMn`,opacity:.2}),(0,q.jsx)(`use`,{href:`#SVGhJCUgeMn`,opacity:.2}),(0,q.jsx)(`path`,{d:`M130.977 64.476v11.848a38.7 38.7 0 0 1-26.791-22.743h15.896c6.008.023 10.872 4.888 10.895 10.895`,opacity:.2}),(0,q.jsx)(`path`,{fill:`url(#SVGCo9xpmZW)`,d:`M10.913 53.581h109.15c6.028 0 10.914 4.886 10.914 10.913v109.151c0 6.027-4.886 10.913-10.913 10.913H10.913C4.886 184.558 0 179.672 0 173.645V64.495C0 58.466 4.886 53.58 10.913 53.58`}),(0,q.jsx)(`path`,{fill:`#fff`,d:`M94.208 95.125h-21.82v59.416H58.487V95.125H36.769V83.599h57.439z`})]})),js=(0,v.forwardRef)(({title:e,titleId:t,...n},r)=>(0,q.jsxs)(`svg`,{viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,q.jsx)(`title`,{id:t,children:e}):null,(0,q.jsx)(`path`,{fill:`#0078d4`,d:`M0 0h121.329v121.329H0zm134.671 0H256v121.329H134.671zM0 134.671h121.329V256H0zm134.671 0H256V256H134.671z`})]})),Ms=(0,v.forwardRef)(({title:e,titleId:t,...n},r)=>(0,q.jsxs)(`svg`,{viewBox:`0 0 128 128`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,q.jsx)(`title`,{id:t,children:e}):null,(0,q.jsx)(`defs`,{children:(0,q.jsxs)(`linearGradient`,{id:`SVG6uMEBcPj`,x1:9,x2:9,y1:16.97,y2:1.03,gradientTransform:`scale(7.11111)`,gradientUnits:`userSpaceOnUse`,children:[(0,q.jsx)(`stop`,{offset:0,stopColor:`#0078d4`}),(0,q.jsx)(`stop`,{offset:.16,stopColor:`#1380da`}),(0,q.jsx)(`stop`,{offset:.53,stopColor:`#3c91e5`}),(0,q.jsx)(`stop`,{offset:.82,stopColor:`#559cec`}),(0,q.jsx)(`stop`,{offset:1,stopColor:`#5ea0ef`})]})}),(0,q.jsx)(`path`,{fill:`url(#SVG6uMEBcPj)`,d:`M120.89 28.445v69.262l-28.445 23.324l-44.09-16.07v15.93L23.395 88.25l72.746 5.688V31.574ZM96.64 31.93L55.82 7.11v16.285L18.348 34.418L7.109 48.852v32.785l16.075 7.11V46.718Zm0 0`})]})),Ns=(0,v.forwardRef)(({title:e,titleId:t,...n},r)=>(0,q.jsxs)(`svg`,{viewBox:`0 0 128 128`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,q.jsx)(`title`,{id:t,children:e}):null,(0,q.jsx)(`path`,{fill:`#1a62b3`,d:`M50.782 42.96h26.436a7.536 7.536 0 0 1 7.553 7.552v26.976a7.536 7.536 0 0 1-7.553 7.552H50.782a7.536 7.536 0 0 1-7.553-7.552V50.512a7.536 7.536 0 0 1 7.553-7.553zm55.803 41.611V34.477A13.566 13.566 0 0 0 92.99 20.88H35.01a13.566 13.566 0 0 0-13.595 13.596v59.046a13.566 13.566 0 0 0 13.595 13.595l92.171.002c-.935 11.716-10.67 20.88-22.623 20.88H23.442A22.61 22.61 0 0 1 .783 105.341V22.66A22.61 22.61 0 0 1 23.443 0h81.115a22.61 22.61 0 0 1 22.659 22.66v61.91z`})]})),Ps={jira:Ds,azure_devops:Ms,confluence:ws,testrail:(0,v.forwardRef)(({title:e,titleId:t,...n},r)=>(0,q.jsxs)(`svg`,{viewBox:`0 0 128 128`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,q.jsx)(`title`,{id:t,children:e}):null,(0,q.jsx)(`path`,{fill:`#50d18d`,d:`m37.701 127.439l-15.398-14.782a1.813 1.813 0 0 1 0-2.666l15.41-14.773a2.005 2.005 0 0 1 2.78 0l15.412 14.783c.778.73.778 1.936 0 2.666L40.494 127.44a2.003 2.003 0 0 1-2.78 0zm24.907-23.89l-15.41-14.783a1.813 1.813 0 0 1 0-2.656l15.41-14.782a2.005 2.005 0 0 1 2.78 0L80.79 86.11c.778.73.778 1.936 0 2.666l-15.4 14.773a2.01 2.01 0 0 1-2.774 0zm24.908-23.892l-15.4-14.783a1.81 1.81 0 0 1 0-2.656L87.52 47.437a2.005 2.005 0 0 1 2.78 0l15.402 14.781a1.81 1.81 0 0 1 0 2.656L90.29 79.657a2.006 2.006 0 0 1-2.779 0h.01zm-49.346.447L22.758 65.333a1.817 1.817 0 0 1 0-2.66l15.412-14.79a2.004 2.004 0 0 1 2.779 0l15.41 14.784a1.81 1.81 0 0 1 0 2.656L40.95 80.116a2.007 2.007 0 0 1-2.78 0zm24.906-23.89L47.664 41.441a1.817 1.817 0 0 1 0-2.668l15.412-14.781a2.004 2.004 0 0 1 2.78 0l15.4 14.781a1.81 1.81 0 0 1 0 2.658l-15.4 14.781a2.006 2.006 0 0 1-2.774 0v-.01v.005zm-24.43-23.41l-15.42-14.828a1.814 1.814 0 0 1 0-2.667L38.647.56a2.004 2.004 0 0 1 2.78 0l15.41 14.782c.78.731.78 1.937 0 2.667l-15.42 14.75a2.004 2.004 0 0 1-2.78 0l.01.032z`})]})),qtest:Ns,github:Es,browserstack:Cs},Fs={openai:ks,azure:Ss,github_copilot:Ts,ollama:Os},Is={android:bs,ios:xs,windows:js};function Ls(){let e=()=>location.hash.replace(/^#\/?/,``).split(`/`).filter(Boolean),[t,n]=(0,v.useState)(e);return(0,v.useEffect)(()=>{let t=()=>n(e());return window.addEventListener(`hashchange`,t),()=>window.removeEventListener(`hashchange`,t)},[]),t}var Rs=(...e)=>`#/${e.join(`/`)}`;function zs(e){let t=e?.config||{},n=X(t.browser),r=X(t.sources),i=[`jira`,`azure_devops`,`testrail`,`xray`,`zephyr`,`qtest`,`github`].find(e=>r[e]),a={jira:`Jira`,azure_devops:`Azure DevOps`,testrail:`TestRail`,xray:`Xray`,zephyr:`Zephyr`,qtest:`qTest`,github:`GitHub`},o=String(n.provider||`local`);return{code:!0,headed:n.headless===!1,repo:X(t.code).repo?String(X(t.code).repo):`the project folder`,browser:o===`local`?`Chrome on this machine`:o===`testmu`?`TestMu AI`:o===`browserstack`?`BrowserStack`:o,cases:i?a[i]:`Files in the project`}}var Bs={azure:`Azure OpenAI`,openai:`OpenAI`,ollama:`Ollama`,openai_compatible:`OpenAI-compatible`,github_copilot:`GitHub Copilot`,github:`GitHub Models`,anthropic:`Anthropic`};function Vs({children:e}){return(0,q.jsx)(`div`,{className:`px-3 pt-2 pb-1 text-[11.5px] font-semibold tracking-wide text-muted uppercase`,children:e})}function Hs({tools:e,onChange:t,chat:n}){let r=(n,r,i,a)=>(0,q.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-3 rounded-[10px] px-3 py-2.5 hover:bg-surface-muted`,children:[(0,q.jsx)(fs,{icon:n}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,q.jsx)(`span`,{className:`text-sm font-medium text-ink`,children:i}),(0,q.jsx)(`span`,{className:`text-[12.5px] text-muted [overflow-wrap:anywhere]`,children:a})]}),(0,q.jsx)(ps,{checked:e[r],label:i,onChange:n=>t({...e,[r]:n})})]}),i=(e,t,n)=>(0,q.jsxs)(`div`,{className:`flex items-center gap-3 px-3 py-2`,children:[(0,q.jsx)(e,{size:16,"aria-hidden":`true`,className:`flex-none text-muted`}),(0,q.jsx)(`span`,{className:`flex-1 text-sm text-ink-2`,children:t}),(0,q.jsx)(`span`,{className:`truncate text-sm text-ink`,children:n})]});return(0,q.jsxs)(`div`,{className:`flex flex-col`,children:[(0,q.jsx)(Vs,{children:n?`This chat, from your next message`:`This chat`}),r(ut,`code`,`Write the test`,`Turn a passed run into a test in ${e.repo}`),r(jn,`headed`,`Show the browser`,`Watch each run in a Chrome window`),(0,q.jsx)(`div`,{className:`mx-3 my-1.5 border-t border-line-soft`}),(0,q.jsx)(Vs,{children:`From your settings`}),i(en,`Browsers run on`,e.browser),i(_n,`Test cases from`,e.cases),n?.model&&(0,q.jsxs)(`div`,{className:`flex items-center gap-3 px-3 py-2`,children:[Fs[n.provider||``]?(()=>{let e=Fs[n.provider||``];return(0,q.jsx)(e,{"aria-hidden":`true`,className:`size-4 flex-none`})})():(0,q.jsx)(jr,{size:16,"aria-hidden":`true`,className:`flex-none text-muted`}),(0,q.jsx)(`span`,{className:`flex-1 text-sm text-ink-2`,children:`Model`}),(0,q.jsx)(`span`,{className:`truncate text-sm text-ink`,children:n.model})]}),(0,q.jsxs)(`div`,{className:`mx-1.5 mt-1 mb-1 flex flex-wrap gap-x-1`,children:[(0,q.jsxs)(`a`,{href:Rs(`settings`),className:`flex min-h-9 items-center gap-2 rounded-[10px] px-1.5 text-[13px] font-medium no-underline hover:bg-surface-muted`,children:[(0,q.jsx)(yr,{size:14,"aria-hidden":`true`}),`Change them in Settings`]}),n&&(0,q.jsxs)(`a`,{href:Rs(),className:`flex min-h-9 items-center gap-2 rounded-[10px] px-1.5 text-[13px] font-medium no-underline hover:bg-surface-muted`,children:[(0,q.jsx)(Fr,{size:14,"aria-hidden":`true`}),`New chat with another model`]})]})]})}function Us({models:e,current:t,onPick:n}){let r=(e,r=!1)=>{let i=t===e.name;return(0,q.jsxs)(`button`,{type:`button`,role:`menuitemradio`,"aria-checked":i,onClick:()=>n(e.name),className:K(`flex w-full cursor-pointer items-center gap-3 rounded-[10px] border-0 px-3 py-2 text-left hover:bg-surface-muted`,i?`bg-accent-soft hover:bg-accent-soft`:`bg-transparent`),children:[r?(0,q.jsx)(`span`,{className:`flex size-9 flex-none items-center justify-center rounded-[10px] bg-[linear-gradient(135deg,#3758f9,#8a97fb)] text-white`,children:(0,q.jsx)(jr,{size:17,"aria-hidden":`true`})}):Fs[e.provider]?(0,q.jsx)(fs,{logo:Fs[e.provider]}):(0,q.jsx)(fs,{icon:Zn}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,q.jsxs)(`span`,{className:`flex items-baseline gap-2`,children:[(0,q.jsx)(`span`,{className:`truncate text-sm font-medium text-ink`,children:e.name}),!r&&Bs[e.provider]&&(0,q.jsx)(`span`,{className:`flex-none text-[11.5px] text-muted`,children:Bs[e.provider]})]}),e.note&&(0,q.jsx)(`span`,{className:`truncate text-[12.5px] text-muted`,children:e.note})]}),(0,q.jsx)(Ke,{size:16,"aria-hidden":`true`,className:K(`flex-none text-accent`,!i&&`invisible`)})]},e.name)};return(0,q.jsxs)(`div`,{className:`flex flex-col`,children:[(0,q.jsx)(Vs,{children:`Model for this chat`}),r({name:`Auto routing`,provider:``,note:`The cheapest model good enough for each step`},!0),e.length>0&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`div`,{className:`mx-3 my-1.5 border-t border-line-soft`}),(0,q.jsx)(Vs,{children:`Your models`}),(0,q.jsx)(`div`,{className:`flex flex-col`,children:e.map(e=>r(e))})]}),(0,q.jsx)(`div`,{className:`mx-3 my-1.5 border-t border-line-soft`}),(0,q.jsxs)(`a`,{href:Rs(`settings`,`models`),className:`mx-1.5 mb-1 flex min-h-9 items-center gap-2 rounded-[10px] px-1.5 text-[13px] font-medium no-underline hover:bg-surface-muted`,children:[(0,q.jsx)(yr,{size:14,"aria-hidden":`true`}),`Manage models`]})]})}async function Ws(e){let t=window.open(`about:blank`,`_blank`);try{let n=await ne.open(e);if(n.kind===`download`){t?.close();let e=document.createElement(`a`);return e.href=n.url,e.download=n.name,e.click(),``}return t?(t.opener=null,t.location.href=n.url,``):`The browser blocked the new tab.`}catch(e){return t?.close(),e.message}}function Gs({open:e,onClose:t,title:n,description:r,children:i,footer:a,wide:o}){let s=(0,v.useRef)(null),c=(0,v.useId)();return(0,v.useEffect)(()=>{let t=s.current;t&&(e&&!t.open&&t.showModal(),!e&&t.open&&t.close())},[e]),(0,q.jsx)(`dialog`,{ref:s,"aria-labelledby":c,onCancel:e=>{e.preventDefault(),t()},onClick:e=>{e.target===s.current&&t()},className:K(`sheet fixed inset-y-0 right-0 left-auto m-0 h-dvh max-h-none w-full border-0 border-l border-line bg-bg p-0 text-ink shadow-menu backdrop:bg-[rgba(17,25,40,0.28)]`,o?`max-w-[760px]`:`max-w-[480px]`),children:e&&(0,q.jsxs)(`div`,{className:`flex h-full flex-col`,children:[(0,q.jsxs)(`div`,{className:`flex items-start gap-3 border-b border-line-soft px-6 pt-5 pb-4`,children:[(0,q.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,q.jsx)(`h2`,{id:c,className:`m-0 text-lg font-semibold`,children:n}),r&&(0,q.jsx)(`p`,{className:`m-0 text-sm leading-relaxed text-muted`,children:r})]}),(0,q.jsx)(J,{variant:`icon`,size:`icon`,"aria-label":`Close`,onClick:t,className:`-mt-1 -mr-2`,children:(0,q.jsx)(ai,{size:20,"aria-hidden":`true`})})]}),(0,q.jsx)(`div`,{className:`flex-1 overflow-y-auto px-6 pb-6`,children:i}),(0,q.jsx)(`div`,{className:`flex flex-wrap justify-end gap-2 border-t border-line-soft px-6 py-4`,children:a})]})})}var Ks=`w-full min-w-0 rounded-[10px] border border-line bg-bg px-3 text-[15px] text-ink placeholder:text-muted hover:border-line-strong focus:border-accent focus:outline-none focus-visible:outline-2 focus-visible:outline-accent`;function qs({className:e,...t}){return(0,q.jsx)(`input`,{className:K(Ks,`min-h-10`,e),...t})}function Js({className:e,...t}){return(0,q.jsx)(`textarea`,{className:K(Ks,`py-2 leading-relaxed`,e),...t})}function Ys({className:e,children:t,...n}){return(0,q.jsx)(`select`,{className:K(Ks,`min-h-10 cursor-pointer appearance-none bg-[length:16px] bg-[right_10px_center] bg-no-repeat pr-9`,e),style:{backgroundImage:Xs},...n,children:t})}var Xs=`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")`,Zs=(0,v.createContext)({pending:{},set:()=>{},saved:new Set,vars:{},store:`the credential store`}),Qs=()=>(0,v.useContext)(Zs);function $s(e){return/[\\/]/.test(e)?`ForgeQE's private credentials file (readable only by you)`:e}var ec=/^[A-Za-z_][A-Za-z0-9_]*$/;function tc(e,t){return t in e.pending?e.pending[t]===null?`removing`:`pending`:e.saved.has(t)?`saved`:e.vars[t]?`environment`:`missing`}var nc={pending:`Not saved yet`,removing:`Removed when you save`,saved:`Saved`,environment:`Set in the environment`,missing:`Not set`},rc=(e,t)=>[`pending`,`saved`,`environment`].includes(tc(e,t));function ic({name:e}){let t=Qs();if(!e)return null;if(!ec.test(e))return(0,q.jsx)(`span`,{className:`text-[13px] text-fail`,children:`Not a variable name`});let n=tc(t,e);return(0,q.jsx)(`span`,{className:K(`text-[13px]`,n===`saved`||n===`environment`?`text-pass`:n===`missing`?`text-muted`:`text-accent`),children:nc[n]})}var ac=/user|email|login|client_id|account/i;function oc({id:e,name:t,field:n,onRename:r,compact:i}){let a=Qs(),o=(0,v.useId)(),s=e||o,[c,l]=(0,v.useState)(!1),u=tc(a,t),d=typeof a.pending[t]==`string`?a.pending[t]:``,f=ac.test(n)||ac.test(t);return(0,q.jsxs)(`div`,{className:`flex w-full min-w-0 flex-col gap-1.5`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(qs,{id:s,type:f?`text`:`password`,autoComplete:`off`,spellCheck:!1,value:d,disabled:!ec.test(t),placeholder:u===`saved`?`Saved. Type a new value to replace it`:u===`environment`?`Set in the environment. Type a value to save one`:f?`Type it once`:`Paste it once`,onChange:e=>a.set(t,e.target.value||void 0)}),u===`saved`&&(0,q.jsx)(J,{size:`sm`,onClick:()=>a.set(t,null),"aria-label":`Remove the saved value of ${t}`,children:`Remove`}),u===`removing`&&(0,q.jsx)(J,{size:`sm`,onClick:()=>a.set(t,void 0),children:`Keep`})]}),!i&&(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1 text-[13px] text-muted`,children:[(0,q.jsx)(ic,{name:t}),(0,q.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),c&&r?(0,q.jsx)(qs,{"aria-label":`Variable name`,autoFocus:!0,defaultValue:t,spellCheck:!1,onBlur:e=>{let n=e.target.value.trim();n&&ec.test(n)&&n!==t&&r(n),l(!1)},onKeyDown:e=>e.key===`Enter`&&e.target.blur(),className:`min-h-8 max-w-[260px] font-mono text-[12px]`}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`span`,{children:[`Kept as `,(0,q.jsx)(`span`,{className:`font-mono text-[12px]`,children:t})]}),r&&(0,q.jsx)(`button`,{type:`button`,onClick:()=>l(!0),className:`min-h-8 cursor-pointer border-0 bg-transparent p-0 text-[13px] font-medium text-accent hover:text-accent-hover`,children:`Change name`})]})]})]})}function sc({name:e}){return(0,q.jsx)(ic,{name:e})}function cc({id:e,name:t,field:n,named:r,onName:i}){let a=Qs();return(0,q.jsx)(lc,{onFirstValue:()=>{!r&&t&&i(t)},secrets:a,children:(0,q.jsx)(oc,{id:e,name:t,field:n,onRename:i})})}function lc({secrets:e,onFirstValue:t,children:n}){return(0,q.jsx)(Zs.Provider,{value:{...e,set:(n,r)=>{r&&t(),e.set(n,r)}},children:n})}function uc({label:e,help:t,htmlFor:n,children:r,className:i,stacked:a,yamlKey:o}){let s=o?(0,q.jsx)(`code`,{className:`font-mono text-[11.5px] text-muted [overflow-wrap:anywhere]`,children:o}):null;return a?(0,q.jsxs)(`div`,{className:K(`flex flex-col gap-2 py-3`,i),children:[(0,q.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[n?(0,q.jsx)(`label`,{htmlFor:n,className:`font-medium`,children:e}):(0,q.jsx)(`span`,{className:`font-medium`,children:e}),t&&(0,q.jsx)(`span`,{className:`text-sm leading-normal text-muted`,children:t}),s]}),(0,q.jsx)(`div`,{className:`[&>*]:max-w-none`,children:r})]}):(0,q.jsxs)(`div`,{className:K(`flex min-h-[68px] flex-wrap items-center gap-x-4 gap-y-2 border-t border-line-soft py-3`,i),children:[(0,q.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-0.5`,children:[n?(0,q.jsx)(`label`,{htmlFor:n,className:`font-medium`,children:e}):(0,q.jsx)(`span`,{className:`font-medium`,children:e}),t&&(0,q.jsx)(`span`,{className:`text-sm leading-normal text-muted`,children:t}),s]}),r]})}function dc({children:e,help:t,first:n}){return(0,q.jsxs)(`div`,{className:K(`mb-2 flex flex-col gap-0.5`,n?`mt-0`:`mt-8`),children:[(0,q.jsx)(`h3`,{className:`m-0 text-base font-semibold`,children:e}),t&&(0,q.jsx)(`p`,{className:`m-0 max-w-[60ch] text-sm leading-relaxed text-muted`,children:t})]})}var fc=e=>Array.isArray(e)?e.map(String).join(`, `):typeof e==`string`?e:``,pc=e=>e.split(`,`).map(e=>e.trim()).filter(Boolean);function mc({id:e,value:t,onChange:n,placeholder:r,mono:i}){let[a,o]=(0,v.useState)(fc(t)),[s,c]=(0,v.useState)(t);return JSON.stringify(s)!==JSON.stringify(t)&&(c(t),o(fc(t))),(0,q.jsx)(qs,{id:e,value:a,placeholder:r,className:K(i&&`font-mono text-[13px]`),onChange:e=>{o(e.target.value);let t=pc(e.target.value);c(t.length?t:void 0),n(t.length?t:void 0)}})}function hc({def:e,edit:t,base:n,stacked:r}){let i=(0,v.useId)(),a=e.key?[...n,...e.key.split(`.`)]:n,o=ms(t.value,a),s=e=>t.set(gs(t.value,a,e)),c=`flex-[1_1_280px] max-w-[420px]`,l=t.file?a.join(`.`):void 0,u;switch(e.type){case`switch`:{let t=o===void 0?!!e.default:o===!0||o===`true`||o===`on`;return(0,q.jsx)(uc,{label:e.label,help:e.help,yamlKey:l,children:(0,q.jsx)(ps,{checked:t,onChange:s,label:e.label})})}case`select`:u=(0,q.jsxs)(Ys,{id:i,value:String(o===void 0?e.default??``:o),onChange:e=>s(e.target.value!==`false`&&e.target.value),className:`max-w-[260px] flex-[0_1_220px]`,children:[e.default===void 0&&(0,q.jsx)(`option`,{value:``,children:e.emptyLabel||`Not set`}),e.options.map(e=>(0,q.jsx)(`option`,{value:e.value,children:e.label},e.value))]});break;case`number`:u=(0,q.jsx)(qs,{id:i,type:`number`,inputMode:`numeric`,value:o==null?``:String(o),placeholder:e.default===void 0?e.placeholder:String(e.default),onChange:e=>s(e.target.value===``?void 0:Number(e.target.value)),className:`max-w-[160px] flex-[0_1_140px]`});break;case`list`:u=(0,q.jsx)(`div`,{className:c,children:(0,q.jsx)(mc,{id:i,value:o,onChange:s,placeholder:e.placeholder})});break;case`kv`:u=(0,q.jsx)(`div`,{className:c,children:(0,q.jsx)(gc,{id:i,value:o,onChange:s,placeholder:e.placeholder})});break;case`textarea`:u=(0,q.jsx)(Js,{id:i,rows:3,value:o===void 0?``:String(o),placeholder:e.placeholder,onChange:e=>s(e.target.value),className:c});break;case`var`:{let t=String(o??e.default??e.placeholder??``);return u=(0,q.jsx)(`div`,{className:c,children:(0,q.jsx)(cc,{id:i,name:t,field:e.key,named:o!==void 0||e.default!==void 0,onName:e=>s(e)})}),(0,q.jsx)(uc,{label:e.label.replace(/ variable$/,``),help:e.help,htmlFor:i,stacked:r,yamlKey:l,children:u})}default:u=(0,q.jsx)(qs,{id:i,type:e.type===`url`?`url`:`text`,value:o===void 0?``:String(o),placeholder:e.placeholder??(e.default===void 0?void 0:String(e.default)),spellCheck:e.type===`text`,onChange:e=>s(e.target.value),className:K(c,e.type===`path`&&`font-mono text-[13px]`)})}return(0,q.jsx)(uc,{label:e.label,help:e.help,htmlFor:i,stacked:r,yamlKey:l,children:u})}function gc({id:e,value:t,onChange:n,placeholder:r}){let i=e=>Object.entries(e&&typeof e==`object`&&!Array.isArray(e)?e:{}).map(([e,t])=>`${e} = ${typeof t==`object`?JSON.stringify(t):String(t)}`).join(`
11
+ `),[a,o]=(0,v.useState)(i(t)),[s,c]=(0,v.useState)(t);return JSON.stringify(s)!==JSON.stringify(t)&&(c(t),o(i(t))),(0,q.jsx)(Js,{id:e,rows:3,value:a,spellCheck:!1,placeholder:r??`NAME = value`,className:`font-mono text-[13px]`,onChange:e=>{o(e.target.value);let t={};for(let n of e.target.value.split(`
12
+ `)){let e=n.indexOf(`=`),r=(e<0?n:n.slice(0,e)).trim();if(!r)continue;let i=e<0?``:n.slice(e+1).trim();t[r]=/^-?\d+(\.\d+)?$/.test(i)?Number(i):i===`true`||i!==`false`&&i}let r=Object.keys(t).length?t:void 0;c(r),n(r)}})}function _c({defs:e,edit:t,base:n,stacked:r}){return(0,q.jsx)(q.Fragment,{children:e.map(e=>(0,q.jsx)(hc,{def:e,edit:t,base:n,stacked:r},e.key))})}function vc({title:e,meta:t,state:n,open:r,onToggle:i,lead:a,actions:o,children:s,expandable:c}){let l=(0,v.useId)();return(0,q.jsxs)(`div`,{className:`border-t border-line-soft`,children:[(0,q.jsxs)(`div`,{className:`flex min-h-[68px] flex-wrap items-center gap-x-4 gap-y-2 py-3`,children:[a,c===!1?(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:e}),t&&(0,q.jsx)(`span`,{className:`text-sm text-muted`,children:t})]}):(0,q.jsxs)(`button`,{type:`button`,"aria-expanded":r,"aria-controls":l,onClick:i,className:`flex min-w-0 flex-[1_1_260px] cursor-pointer items-center gap-3 rounded-[10px] border-0 bg-transparent p-0 text-left text-ink`,children:[(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:e}),t&&(0,q.jsx)(`span`,{className:`text-sm text-muted`,children:t})]}),(0,q.jsx)(Je,{size:18,"aria-hidden":`true`,className:K(`flex-none text-muted transition-transform`,r&&`rotate-180`)})]}),n,o]}),r&&c!==!1&&(0,q.jsx)(`div`,{id:l,className:`fade-in mb-4 rounded-[14px] bg-surface-muted px-4 pb-2 sm:px-5 [&>*:first-child]:border-t-0`,children:s})]})}function yc(e){let[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)(``),a=(0,v.useCallback)(()=>{i(``),e().then(n,e=>i(e.message))},[e]);return(0,v.useEffect)(a,[a]),{data:t,error:r,reload:a}}function bc({error:e,reload:t}){return e?(0,q.jsxs)(`div`,{role:`alert`,className:`flex flex-col items-start gap-3 rounded-[14px] border border-line p-5`,children:[(0,q.jsx)(`p`,{className:`m-0 text-sm leading-relaxed text-ink-2`,children:e}),(0,q.jsx)(J,{onClick:t,children:`Try again`})]}):(0,q.jsx)(`p`,{role:`status`,className:`m-0 py-3 text-sm text-muted`,children:`Loading…`})}function xc({children:e}){return(0,q.jsx)(`p`,{className:`m-0 rounded-[14px] bg-surface-muted px-5 py-4 text-sm leading-relaxed text-ink-2`,children:e})}function Sc(e){return e>=1e9?`${(e/1e9).toFixed(1)}B`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e4?`${Math.round(e/1e3)}k`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}var Cc=null;function wc(e){Cc=e}function Tc(e,t){if(!t)return`—`;let n=Cc?.to,r=Cc?.perEur?.[t],i=n?Cc?.perEur?.[n]:void 0,[a,o]=n&&n!==t&&r&&i?[e/r*i,n]:[e,t];try{return new Intl.NumberFormat(void 0,{style:`currency`,currency:o,maximumFractionDigits:a<1?3:2}).format(a)}catch{return`${a.toFixed(2)} ${o}`}}function Ec(e){if(!Cc?.perEur||!e||Cc.to===e||!Cc.perEur[e])return``;let t=Tc(1,e);return`Shown in ${Cc.to}, converted from ${e} at the European Central Bank's rate of ${Cc.date}: ${new Intl.NumberFormat(void 0,{style:`currency`,currency:e}).format(1)} = ${t}.`}var Dc=e=>{let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleString(void 0,{dateStyle:`medium`,timeStyle:`short`})},Oc=e=>e>=1048576?`${(e/1048576).toFixed(1)} MB`:e>=1024?`${Math.round(e/1024)} KB`:`${e} bytes`;function kc({label:e,value:t,note:n,icon:r}){return(0,q.jsxs)(`div`,{className:`flex min-w-[112px] flex-[1_1_112px] flex-col gap-1 rounded-[14px] border border-line-soft px-4 py-3`,children:[(0,q.jsxs)(`span`,{className:`flex items-center gap-1.5 text-[13px] text-muted`,children:[r&&(0,q.jsx)(r,{size:14,"aria-hidden":`true`,className:`flex-none`}),e]}),(0,q.jsx)(`span`,{className:`text-[28px] leading-tight font-semibold tracking-[-0.02em]`,children:t}),n&&(0,q.jsx)(`span`,{className:`text-[13px] text-muted`,children:n})]})}function Ac({head:e,children:t,label:n}){return(0,q.jsx)(`div`,{className:`overflow-x-auto rounded-[12px] border border-line-soft`,children:(0,q.jsxs)(`table`,{"aria-label":n,className:`w-full border-collapse text-sm`,children:[(0,q.jsx)(`thead`,{children:(0,q.jsx)(`tr`,{className:`bg-surface-muted text-left text-[13px] text-muted`,children:e.map((e,t)=>(0,q.jsx)(`th`,{scope:`col`,className:K(`px-3 py-2 font-medium whitespace-nowrap`,t>0&&`text-right`),children:e},e))})}),(0,q.jsx)(`tbody`,{children:t})]})})}function jc({cells:e}){return(0,q.jsx)(`tr`,{className:`border-t border-line-soft`,children:e.map((e,t)=>(0,q.jsx)(`td`,{className:K(`px-3 py-2 align-top`,t>0?`text-right whitespace-nowrap tabular-nums`:`min-w-[200px]`),children:e},t))})}var Mc={title:`How skills are used`,base:[`skills`],fields:[{key:`enabled`,label:`Use skills`,type:`switch`,default:!0},{key:`external`,label:`Also read Claude and agent skills`,help:`~/.claude/skills, ~/.agents/skills, and the repository's own.`,type:`switch`,default:!1},{key:`dirs`,label:`More skill folders`,help:`Comma separated. They win over the others.`,type:`list`,placeholder:`../shared-skills`},{key:`browser_max_chars`,label:`Skill text per browser run`,help:`Characters.`,type:`number`,default:6e3}]};function Nc({edit:e}){let{data:t,error:n,reload:r}=yc(N.registry);return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(_c,{defs:[{key:`registry.mode`,label:`Rerun passed runs without the agent`,help:`On: a rerun of a passed run replays it with no model when its checks hold. Shadow only records what it would have done.`,type:`select`,default:`on`,options:[{value:`on`,label:`On`},{value:`shadow`,label:`Shadow`},{value:`off`,label:`Off`}]}],edit:e,base:[]}),t?t.exists?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`mt-4 flex flex-wrap gap-3`,children:[(0,q.jsx)(kc,{icon:ot,label:`Recorded plans`,value:String(t.plans.length)}),(0,q.jsx)(kc,{icon:ln,label:`Requests`,value:String(t.total)}),(0,q.jsx)(kc,{icon:rr,label:`Replayed without the agent`,value:String(t.replayed)}),(0,q.jsx)(kc,{icon:qn,label:`Input tokens not spent`,value:Sc(t.tokensSaved),note:`Against the run that recorded each plan`})]}),(0,q.jsx)(dc,{children:`Plans`}),t.plans.length===0?(0,q.jsx)(xc,{children:`No plans recorded yet.`}):(0,q.jsx)(Ac,{label:`Recorded plans`,head:[`Goal`,`Passed`,`Failed`,`Tokens first run`,`Last used`],children:t.plans.map(e=>(0,q.jsx)(jc,{cells:[(0,q.jsxs)(`span`,{className:`flex flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{className:`line-clamp-2`,children:e.goal}),e.stale&&(0,q.jsx)(`span`,{className:`text-[13px] text-warn`,children:`Out of date: the next run takes the agent's path`})]}),e.successes,e.failures,e.firstTokens?Sc(e.firstTokens):`—`,Dc(e.lastAt)]},e.id))}),(0,q.jsx)(dc,{children:`Recent requests`}),t.requests.length===0?(0,q.jsx)(xc,{children:`No requests logged yet.`}):(0,q.jsx)(Ac,{label:`Recent requests`,head:[`Request`,`Decision`,`Outcome`,`Tokens`,`When`],children:t.requests.map(e=>(0,q.jsx)(jc,{cells:[(0,q.jsx)(`span`,{className:`line-clamp-2`,children:e.request||e.planGoal||e.id}),e.decision===`tier0`?`Replayed`:e.decision===`no match`?`Agent: no plan yet`:`Agent: ${e.decision}`,e.outcome||`—`,Sc(e.tokens),Dc(e.startedAt)]},e.id))})]}):(0,q.jsxs)(xc,{children:[`No registry yet. ForgeQE starts one the first time a run passes; it is kept in `,t.file,`.`]}):(0,q.jsx)(bc,{error:n,reload:r})]})}function Pc(){let{data:e,error:t,reload:n}=yc(N.logs),[r,i]=(0,v.useState)(null),[a,o]=(0,v.useState)(``);return e?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:[`Kept in `,(0,q.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.dir}),`. Secrets are replaced with their names before a log is shown.`]}),a&&(0,q.jsx)(`p`,{role:`alert`,className:`mt-0 mb-3 text-sm text-fail`,children:a}),e.logs.length===0?(0,q.jsx)(xc,{children:`No session logs yet. ForgeQE writes one for each chat, run and suite.`}):e.logs.map(e=>(0,q.jsxs)(`div`,{className:`flex min-h-[60px] flex-wrap items-center gap-x-4 gap-y-2 border-t border-line-soft py-2`,children:[(0,q.jsx)(fs,{icon:dr}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_240px] flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{className:`font-mono text-[13px] break-all`,children:e.name}),(0,q.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[Dc(e.modified),`, `,Oc(e.size)]})]}),(0,q.jsx)(J,{size:`sm`,"aria-label":`Open ${e.name}`,onClick:()=>{o(``),N.log(e.name).then(i,e=>o(e.message))},children:`Open`})]},e.name)),(0,q.jsx)(Gs,{wide:!0,open:!!r,onClose:()=>i(null),title:r?.name||``,description:r?.truncated?`The end of the log; the start is cut to keep it quick to open.`:void 0,footer:(0,q.jsx)(J,{onClick:()=>i(null),children:`Close`}),children:r&&(0,q.jsx)(`pre`,{className:`m-0 mt-4 font-mono text-[12px] leading-relaxed whitespace-pre-wrap break-all`,children:r.text})})]}):(0,q.jsx)(bc,{error:t,reload:n})}var Fc={error:`Error`,tool:`Tool call failed`,run:`Run failed`,engine:`Browser engine stopped`,agent:`Agent error`,model:`Model call failed`},Ic={chat:`Chat`,start:`Shell`,run:`Run`,suite:`Suite`,code:`Write tests`,heal:`Heal`,monitor:`Monitor`,mcp:`MCP`,explore:`Explore`};function Lc(){let[e,t]=(0,v.useState)(null),[n,r]=(0,v.useState)(``);return{show:e=>{r(``),N.log(e).then(t,e=>r(e.message))},error:n,sheet:(0,q.jsx)(Gs,{wide:!0,open:!!e,onClose:()=>t(null),title:e?.name||``,description:e?.truncated?`The end of the log; the start is cut to keep it quick to open.`:void 0,footer:(0,q.jsx)(J,{onClick:()=>t(null),children:`Close`}),children:e&&(0,q.jsx)(`pre`,{className:`m-0 mt-4 font-mono text-[12px] leading-relaxed break-all whitespace-pre-wrap`,children:e.text})})}}function Rc({entries:e}){let[t,n]=(0,v.useState)(-1);return e.length?(0,q.jsx)(q.Fragment,{children:e.map((e,r)=>(0,q.jsx)(vc,{lead:(0,q.jsx)(fs,{icon:sr}),title:`${e.action}: ${e.file}`,meta:`${Dc(e.at)}, ${e.user} on ${e.machine}, ${e.changes.length} change${e.changes.length===1?``:`s`}`,open:t===r,onToggle:()=>n(t===r?-1:r),children:(0,q.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-2 p-0 py-3`,children:e.changes.map((e,t)=>(0,q.jsxs)(`li`,{className:`flex flex-wrap items-baseline gap-x-2 gap-y-0.5 text-sm`,children:[(0,q.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.key}),(0,q.jsx)(`span`,{className:`text-muted`,children:e.before===void 0?(0,q.jsxs)(q.Fragment,{children:[`added `,(0,q.jsx)(`span`,{className:`text-ink`,children:e.after})]}):e.after===void 0?(0,q.jsxs)(q.Fragment,{children:[`removed `,(0,q.jsx)(`span`,{className:`text-ink line-through`,children:e.before})]}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{className:`text-ink line-through`,children:e.before}),` → `,(0,q.jsx)(`span`,{className:`text-ink`,children:e.after})]})})]},t))})},r))}):(0,q.jsx)(xc,{children:`No changes made in Settings yet.`})}function zc({tabs:e,current:t,onPick:n,label:r}){return(0,q.jsx)(`div`,{role:`tablist`,"aria-label":r,className:`mb-5 flex flex-wrap gap-x-5 border-b border-line-soft`,children:e.map((r,i)=>(0,q.jsx)(`button`,{id:`tab-${r.id}`,type:`button`,role:`tab`,"aria-selected":t===r.id,"aria-controls":`panel-${r.id}`,tabIndex:t===r.id?0:-1,onClick:()=>n(r.id),onKeyDown:t=>{let r=t.key===`ArrowRight`?e[(i+1)%e.length]:t.key===`ArrowLeft`?e[(i-1+e.length)%e.length]:void 0;r&&(n(r.id),document.getElementById(`tab-${r.id}`)?.focus())},className:K(`-mb-px min-h-11 cursor-pointer border-0 border-b-2 bg-transparent px-0.5 text-sm font-medium`,t===r.id?`border-ink text-ink`:`border-transparent text-muted hover:text-ink`),children:r.label},r.id))})}function Bc(){let{data:e,error:t,reload:n}=yc(N.audit),[r,i]=(0,v.useState)(`summary`),a=Lc();if(!e)return(0,q.jsx)(bc,{error:t,reload:n});let o=e.summary,s=o.totals,c=e=>e?`${e} failed`:`None failed`;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:`The last 30 days, from the session logs on this machine and its usage ledger. Model calls count every project on this machine.`}),(0,q.jsx)(zc,{label:`Audit`,current:r,onPick:i,tabs:[{id:`summary`,label:`Summary`},{id:`problems`,label:`Problems (${o.problems.length})`},{id:`sessions`,label:`Sessions (${o.sessions.length})`},{id:`changes`,label:`Settings changes (${e.entries.length})`}]}),a.error&&(0,q.jsx)(`p`,{role:`alert`,className:`mt-0 mb-3 text-sm text-fail`,children:a.error}),(0,q.jsxs)(`div`,{id:`panel-${r}`,role:`tabpanel`,"aria-labelledby":`tab-${r}`,children:[r===`summary`&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap gap-3`,children:[(0,q.jsx)(kc,{icon:kn,label:`Sessions`,value:String(s.sessions),note:s.replays?`${s.replays} request${s.replays===1?``:`s`} replayed without the agent`:void 0}),(0,q.jsx)(kc,{icon:ri,label:`Tool calls`,value:String(s.toolCalls),note:c(s.toolErrors)}),(0,q.jsx)(kc,{icon:Yn,label:`Runs`,value:String(s.runs),note:c(s.runsFailed)}),(0,q.jsx)(kc,{icon:jr,label:`Model calls`,value:String(s.modelCalls),note:c(s.modelErrors)}),(0,q.jsx)(kc,{icon:Ur,label:`Errors`,value:String(s.errors),note:s.escalations?`${s.escalations} switch${s.escalations===1?``:`es`} to a stronger model`:void 0})]}),o.problems.length>0&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(dc,{children:`Latest problems`}),(0,q.jsx)(Vc,{problems:o.problems.slice(0,5),onLog:a.show}),o.problems.length>5&&(0,q.jsxs)(`button`,{type:`button`,onClick:()=>i(`problems`),className:`mt-3 min-h-10 cursor-pointer border-0 bg-transparent p-0 text-sm font-medium text-accent hover:text-accent-hover`,children:[`All `,o.problems.length,` problems`]})]}),(0,q.jsx)(dc,{children:`Tools used`}),o.tools.length===0?(0,q.jsx)(xc,{children:`No tool calls logged in the last 30 days.`}):(0,q.jsx)(Ac,{label:`Tools used`,head:[`Tool`,`Calls`,`Failed`,`Average time`],children:o.tools.map(e=>(0,q.jsx)(jc,{cells:[(0,q.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.name}),e.calls,e.errors?(0,q.jsx)(`span`,{className:`text-fail`,children:e.errors}):0,e.calls?`${(e.ms/e.calls/1e3).toFixed(1)} s`:`—`]},e.name))}),(0,q.jsx)(dc,{children:`Model calls`}),o.models.length===0?(0,q.jsx)(xc,{children:`No model calls in the usage ledger in the last 30 days.`}):(0,q.jsx)(Ac,{label:`Model calls`,head:[`Model`,`Calls`,`Failed`,`Tokens`],children:o.models.map(e=>(0,q.jsx)(jc,{cells:[e.model,e.calls,e.errors?(0,q.jsx)(`span`,{className:`text-fail`,children:e.errors}):0,Sc(e.tokens)]},e.model))})]}),r===`problems`&&(o.problems.length?(0,q.jsx)(Vc,{problems:o.problems,onLog:a.show}):(0,q.jsx)(xc,{children:`Nothing failed in the last 30 days.`})),r===`sessions`&&(o.sessions.length?(0,q.jsx)(Ac,{label:`Sessions`,head:[`Session`,`Tool calls`,`Runs`,`Errors`,`Tokens`,``],children:o.sessions.map(e=>(0,q.jsx)(jc,{cells:[(0,q.jsxs)(`span`,{className:`flex flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:Ic[e.command]||e.command}),(0,q.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[Dc(e.started),e.model?`, ${e.model}`:``]})]}),e.toolErrors?`${e.tools} (${e.toolErrors} failed)`:e.tools,e.runsFailed?`${e.runs} (${e.runsFailed} failed)`:e.runs,e.errors?(0,q.jsx)(`span`,{className:`text-fail`,children:e.errors}):0,Sc(e.tokens),(0,q.jsx)(J,{size:`sm`,"aria-label":`Open the log of the ${Ic[e.command]||e.command} session at ${Dc(e.started)}`,onClick:()=>a.show(e.log),children:`Log`})]},e.log))}):(0,q.jsx)(xc,{children:`No sessions logged in the last 30 days.`})),r===`changes`&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:[`Every change made in Settings, kept in `,(0,q.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.file}),`. Changes made to the files by hand are not here.`]}),(0,q.jsx)(Rc,{entries:e.entries})]})]}),a.sheet]})}function Vc({problems:e,onLog:t}){return(0,q.jsx)(q.Fragment,{children:e.map((e,n)=>(0,q.jsxs)(`div`,{className:`flex min-h-[64px] flex-wrap items-center gap-x-4 gap-y-2 border-t border-line-soft py-3`,children:[(0,q.jsx)(fs,{icon:e.kind===`run`||e.kind===`tool`?it:Ur,className:`bg-fail-soft text-fail`}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:Fc[e.kind]}),(0,q.jsx)(`span`,{className:`text-sm break-words text-ink-2`,children:e.text}),(0,q.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[Dc(e.at),`, `,Ic[e.command]||e.command]})]}),e.log&&(0,q.jsx)(J,{size:`sm`,"aria-label":`Open the log for: ${e.text.slice(0,60)}`,onClick:()=>t(e.log),children:`Log`})]},n))})}var Hc={title:`Budgets`,help:`In the model's price currency. They only warn, at 80, 90 and 100 percent, and never stop a run. Day and month count every ForgeQE process on this machine.`,base:[`budget`],fields:[{key:`run`,label:`Per browser run`,type:`number`},{key:`day`,label:`Per day`,type:`number`},{key:`month`,label:`Per month`,type:`number`},{key:`currency`,label:`Currency`,type:`text`,placeholder:`USD`}]},Uc={suite:`Suites`,monitor:`Monitor rounds`,run:`Browser runs`,explore:`Exploratory`,api:`API tests`,desktop:`Desktop runs`,mobile:`Mobile runs`};function Wc({days:e,currency:t}){let[n,r]=(0,v.useState)(-1),i=Math.max(1,...e.map(e=>e.input+e.output)),a=e.reduce((e,t)=>e+t.input+t.output,0),o=e.filter(e=>e.runs>0).length,s=e.reduce((e,t)=>t.input+t.output>e.input+e.output?t:e,e[0]),c=n>=0?e[n]:e[e.length-1],l=e=>new Date(`${e}T12:00:00Z`).toLocaleDateString(void 0,{month:`short`,day:`numeric`});return(0,q.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,q.jsxs)(`p`,{"aria-live":`polite`,className:`m-0 text-sm text-ink-2`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:l(c.day)}),`: `,Sc(c.input+c.output),` tokens, `,c.runs,` run`,c.runs===1?``:`s`,t?`, ${Tc(c.amount,t)}`:``]}),(0,q.jsx)(`div`,{role:`img`,"aria-label":`Tokens a day for the last 30 days: ${Sc(a)} in all, on ${o} days with runs; the busiest was ${l(s.day)} with ${Sc(s.input+s.output)}.`,className:`flex h-[160px] items-end gap-[2px] border-b border-line`,onMouseLeave:()=>r(-1),children:e.map((t,a)=>{let o=t.input+t.output;return(0,q.jsx)(`div`,{className:`flex h-full flex-1 cursor-default items-end`,onMouseEnter:()=>r(a),children:(0,q.jsx)(`div`,{className:K(`w-full rounded-t-[4px] transition-[height]`,a===e.length-1||a===n?`bg-accent`:`bg-[#dbe1fe]`),style:{height:o?`${Math.max(2,o/i*100)}%`:`0`}})},t.day)})}),(0,q.jsxs)(`div`,{"aria-hidden":`true`,className:`flex justify-between text-[12px] text-muted`,children:[(0,q.jsx)(`span`,{children:l(e[0].day)}),(0,q.jsx)(`span`,{children:l(e[e.length-1].day)})]})]})}function Gc({rows:e,currency:t,label:n}){if(!e.length)return(0,q.jsx)(xc,{children:`Nothing yet.`});let r=Math.max(1,...e.map(e=>e.sum.input+e.sum.output));return(0,q.jsx)(`ul`,{"aria-label":n,className:`m-0 flex list-none flex-col gap-3 p-0`,children:e.map(e=>{let n=e.sum.input+e.sum.output;return(0,q.jsxs)(`li`,{className:`flex flex-col gap-1`,children:[(0,q.jsxs)(`div`,{className:`flex items-baseline justify-between gap-3 text-sm`,children:[(0,q.jsx)(`span`,{className:`min-w-0 truncate font-medium`,children:e.name}),(0,q.jsxs)(`span`,{className:`whitespace-nowrap text-ink-2 tabular-nums`,children:[Sc(n),` tokens`,t&&e.sum.amount?`, ${Tc(e.sum.amount,t)}`:``]})]}),(0,q.jsx)(`div`,{"aria-hidden":`true`,className:`h-2 rounded-full bg-surface-strong`,children:(0,q.jsx)(`div`,{className:`h-2 rounded-full bg-accent`,style:{width:`${Math.max(1,n/r*100)}%`}})})]},e.name)})})}function Kc({label:e,spent:t,limit:n,currency:r}){let i=t/n*100,a=i>=100?`fail`:i>=80?`warn`:`ok`;return(0,q.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,q.jsxs)(`div`,{className:`flex items-baseline justify-between gap-3 text-sm`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:e}),(0,q.jsxs)(`span`,{className:K(`tabular-nums`,a===`fail`?`text-fail`:a===`warn`?`text-warn`:`text-ink-2`),children:[Tc(t,r),` of `,Tc(n,r),a===`fail`?`, over budget`:a===`warn`?`, ${Math.round(i)} percent used`:``]})]}),(0,q.jsx)(`div`,{role:`img`,"aria-label":`${e}: ${Tc(t,r)} of ${Tc(n,r)}, ${Math.round(i)} percent`,className:`h-2 rounded-full bg-surface-strong`,children:(0,q.jsx)(`div`,{className:K(`h-2 rounded-full`,a===`fail`?`bg-fail`:a===`warn`?`bg-warn`:`bg-accent`),style:{width:`${Math.min(100,Math.max(1,i))}%`}})})]})}function qc({edit:e}){let{data:t,error:n,reload:r}=yc(N.tokenomics),i=(0,q.jsx)(_c,{defs:Hc.fields,edit:e,base:Hc.base});if(!t)return(0,q.jsx)(bc,{error:n,reload:r});let a=t,o=a.currency,s=a.totals.input+a.totals.output,c=a.budget,l=c?.currency||a.spent?.currency||o;return(0,q.jsxs)(q.Fragment,{children:[a.totals.runs===0?(0,q.jsx)(xc,{children:`No reports with token counts yet. Every run and suite ForgeQE reports on is counted here.`}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:[`From `,a.totals.runs,` run`,a.totals.runs===1?``:`s`,` in this project's reports`,a.from?`, ${a.from} to ${a.to}`:``,`. Models and agents come from the `,a.totals.withCalls,` run`,a.totals.withCalls===1?``:`s`,` that kept their model calls.`]}),(0,q.jsxs)(`div`,{className:`flex flex-wrap gap-3`,children:[(0,q.jsx)(kc,{icon:ft,label:`Tokens`,value:Sc(s),note:`${Sc(a.totals.input)} in, ${Sc(a.totals.output)} out`}),(0,q.jsx)(kc,{icon:Yr,label:`Cost`,value:Tc(a.totals.amount,o),note:a.totals.unpriced?`${a.totals.unpriced} run${a.totals.unpriced===1?``:`s`} had no price`:o?`At the models' prices`:`No prices known`}),(0,q.jsx)(kc,{icon:Jt,label:`Per run`,value:Sc(Math.round(s/a.totals.runs)),note:o?Tc(a.totals.amount/a.totals.runs,o):void 0}),(0,q.jsx)(kc,{icon:vt,label:`Cached input`,value:a.totals.input?`${Math.round(a.totals.cached/a.totals.input*100)}%`:`—`,note:`Of the input tokens`})]}),Ec(a.currency)&&(0,q.jsx)(`p`,{className:`mt-3 mb-0 text-[13px] text-muted`,children:Ec(a.currency)}),a.otherCurrency>0&&(0,q.jsxs)(`p`,{className:`mt-3 mb-0 text-[13px] text-muted`,children:[a.otherCurrency,` run`,a.otherCurrency===1?` was`:`s were`,` priced in another currency and left out of the cost.`]}),(0,q.jsx)(dc,{children:`Last 30 days`}),(0,q.jsx)(Wc,{days:a.days,currency:o}),(0,q.jsxs)(`div`,{className:`mt-8 flex flex-wrap gap-x-10 gap-y-8`,children:[(0,q.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-3`,children:[(0,q.jsx)(`h3`,{className:`m-0 text-base font-semibold`,children:`By model`}),(0,q.jsx)(Gc,{label:`Tokens by model`,rows:a.byModel.map(e=>({name:e.model,sum:e})),currency:o})]}),(0,q.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-3`,children:[(0,q.jsx)(`h3`,{className:`m-0 text-base font-semibold`,children:`By agent`}),(0,q.jsx)(Gc,{label:`Tokens by agent`,rows:a.byAgent.map(e=>({name:e.agent,sum:e})),currency:o})]})]}),(0,q.jsx)(dc,{children:`By kind of run`}),(0,q.jsx)(Gc,{label:`Tokens by kind of run`,rows:a.byKind.map(e=>({name:`${Uc[e.kind]||e.kind} (${e.runs})`,sum:e})),currency:o}),(0,q.jsx)(dc,{children:`Runs that used the most`}),(0,q.jsx)(Ac,{label:`Runs that used the most tokens`,head:[`Run`,`Kind`,`Tokens`,`Cost`,`When`],children:a.top.map(e=>(0,q.jsx)(jc,{cells:[(0,q.jsx)(`span`,{className:`line-clamp-2`,children:e.title}),Uc[e.kind]||e.kind,Sc(e.tokens),e.amount===void 0?`—`:Tc(e.amount,o),e.startedAt?Dc(e.startedAt):`—`]},`${e.kind}/${e.id}`))})]}),(0,q.jsx)(dc,{help:Hc.help,children:Hc.title}),c&&a.spent&&(c.day||c.month)?(0,q.jsxs)(`div`,{className:`mb-4 flex flex-col gap-4 rounded-[14px] border border-line-soft p-4`,children:[c.day?(0,q.jsx)(Kc,{label:`Today`,spent:a.spent.today,limit:c.day,currency:l}):null,c.month?(0,q.jsx)(Kc,{label:`This month`,spent:a.spent.month,limit:c.month,currency:l}):null]}):null,i]})}var Jc=`forgeqe-sidebar-panels`;function Yc(e,t){let[n,r]=(0,v.useState)(()=>{try{return JSON.parse(localStorage.getItem(Jc)||`{}`)[e]??t}catch{return t}});return[n,()=>{r(!n);try{let t=JSON.parse(localStorage.getItem(Jc)||`{}`);localStorage.setItem(Jc,JSON.stringify({...t,[e]:!n}))}catch{}}]}function Xc({id:e,title:t,children:n,initial:r=!0}){let[i,a]=Yc(e,r);return(0,q.jsxs)(`section`,{"aria-labelledby":`panel-${e}`,className:`flex flex-col rounded-[14px] border border-line-soft bg-bg p-1.5`,children:[(0,q.jsx)(`h3`,{id:`panel-${e}`,className:`m-0`,children:(0,q.jsxs)(`button`,{type:`button`,"aria-expanded":i,onClick:a,className:`flex min-h-9 w-full cursor-pointer items-center gap-1 rounded-[10px] border-0 bg-transparent px-2.5 text-left text-sm font-semibold text-ink hover:bg-surface-muted`,children:[(0,q.jsx)(`span`,{className:`flex-1`,children:t}),(0,q.jsx)(Je,{size:16,"aria-hidden":`true`,className:K(`text-muted transition-transform`,!i&&`-rotate-90`)})]})}),i&&(0,q.jsx)(`div`,{className:`flex flex-col gap-0.5 pt-1 pb-0.5`,children:n})]})}function Zc({icon:e,label:t,value:n,to:r,title:i}){let a=(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(e,{size:16,strokeWidth:1.8,"aria-hidden":`true`,className:`mt-0.5 flex-none text-muted`}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,q.jsx)(`span`,{className:`text-[12px] leading-tight text-muted`,children:t}),(0,q.jsx)(`span`,{className:`truncate text-[13px] text-ink`,children:n})]})]}),o=`flex items-start gap-2.5 rounded-[10px] px-3 py-1.5 no-underline`;return r?(0,q.jsx)(`a`,{href:r,title:i,className:K(o,`hover:bg-surface-muted`),children:a}):(0,q.jsx)(`div`,{title:i,className:o,children:a})}function Qc({value:e,max:t,warnAt:n}){let r=t>0?Math.min(1,e/t):0,i=n?e>=n*.9:r>.75;return(0,q.jsx)(`span`,{role:`meter`,"aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":e,"aria-label":`Context used`,className:`mt-1 block h-1.5 w-full overflow-hidden rounded-full bg-line`,children:(0,q.jsx)(`span`,{className:K(`block h-full rounded-full`,i?`bg-warn`:`bg-accent`),style:{width:`${Math.max(2,r*100)}%`}})})}var $c=e=>{try{return e?new URL(e).host:``}catch{return``}},el=e=>e.split(/[\\/]/).filter(Boolean).pop()||e;function tl({path:e,icon:t,extra:n}){let[r,i]=(0,v.useState)(``);return(0,q.jsxs)(`li`,{className:`flex flex-col`,children:[(0,q.jsxs)(`button`,{type:`button`,title:`Open ${e}`,onClick:async()=>i(await Ws(e)),className:`flex min-h-8 w-full cursor-pointer items-center gap-2 rounded-[10px] border-0 bg-transparent px-3 text-left hover:bg-surface-muted`,children:[(0,q.jsx)(t,{size:15,strokeWidth:1.8,"aria-hidden":`true`,className:`flex-none text-muted`}),(0,q.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-[12px] text-accent`,children:el(e)}),n]}),r&&(0,q.jsx)(`span`,{className:`px-3 text-[12px] text-fail`,children:r})]})}function nl(e){let t=e?Date.parse(e):NaN;if(Number.isNaN(t))return``;let n=Math.max(0,Math.round((Date.now()-t)/1e3));return n<60?`${n}s`:`${Math.floor(n/60)} min`}function rl({chat:e}){let[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)(null),[a,o]=(0,v.useState)(null),[s,c]=(0,v.useState)(!1),[l,u]=(0,v.useState)([]);(0,v.useEffect)(()=>{let e=!1,t=()=>ee.list().then(t=>!e&&u(t.tasks),()=>{});t();let n=setInterval(t,4e3);return()=>{e=!0,clearInterval(n)}},[]);let d=location.hash.replace(/^#\/?/,``),f=l.filter(e=>e.to!==d);(0,v.useEffect)(()=>{let e=!1,t=()=>j.state().then(t=>{if(!e){if(n(t),!t.ready)return i(null);F.get().then(t=>!e&&i(t),()=>{})}},()=>{});return t(),window.addEventListener(`hashchange`,t),()=>{e=!0,window.removeEventListener(`hashchange`,t)}},[]),(0,v.useEffect)(()=>{if(!t?.ready)return;let e=!1,n=()=>N.tokenomics().then(t=>!e&&o(t),()=>{});n();let r=setInterval(n,18e4);return()=>{e=!0,clearInterval(r)}},[t?.ready,t?.project]);let p=t?t.project.split(/[\\/]/).filter(Boolean).pop()||t.project:``,m=r?.codeRepo||r?.repo,h=a?.days.find(e=>e.day===new Date().toISOString().slice(0,10)),g=r?.environment;return(0,q.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,q.jsxs)(Xc,{id:`env`,title:`Environment`,children:[(0,q.jsx)(Zc,{icon:Kt,label:`Project`,value:t?.ready?p:`Not set up`,to:Rs(`settings`,`setup`),title:t?.project}),r&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Zc,{icon:Xt,label:r.codeRepo?`Tests go to`:`Repository`,value:m?`${m.name}${m.branch?` · ${m.branch}`:m.commit?` · ${m.commit}`:``}`:`Not a git repository`,title:m?`${m.root}${m.commit?` @ ${m.commit}`:``}`:void 0,to:Rs(`settings`,`tests`)}),(0,q.jsx)(Zc,{icon:_r,label:`Test environment`,value:g?.active?`${g.active}${$c(g.startUrl)?` · ${$c(g.startUrl)}`:``}`:g?.names.length?`None active`:`None yet`,title:g?.names.length?`${g.names.length} environment${g.names.length===1?``:`s`}: ${g.names.join(`, `)}${g.apps.length?`. Apps: ${g.apps.join(`, `)}`:``}`:void 0,to:Rs(`settings`,`environments`)}),(0,q.jsxs)(`button`,{type:`button`,"aria-expanded":s,onClick:()=>c(!s),className:`flex cursor-pointer items-start gap-2.5 rounded-[10px] border-0 bg-transparent px-3 py-1.5 text-left hover:bg-surface-muted`,children:[(0,q.jsx)(Mt,{size:16,strokeWidth:1.8,"aria-hidden":`true`,className:`mt-0.5 flex-none text-muted`}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,q.jsx)(`span`,{className:`text-[12px] leading-tight text-muted`,children:`Files`}),(0,q.jsxs)(`span`,{className:`text-[13px] text-ink`,children:[r.files.filter(e=>e.exists).length,` in this project`]})]}),(0,q.jsx)(Je,{size:14,"aria-hidden":`true`,className:K(`mt-1 flex-none text-muted transition-transform`,!s&&`-rotate-90`)})]}),s&&(0,q.jsx)(`ul`,{className:`m-0 mb-1 ml-9 flex list-none flex-col gap-0.5 p-0`,children:r.files.map(e=>(0,q.jsx)(`li`,{children:(0,q.jsxs)(`a`,{href:Rs(`settings`,`files`),title:e.path,className:K(`flex flex-col rounded-md px-2 py-1 no-underline hover:bg-surface-muted`,!e.exists&&`opacity-60`),children:[(0,q.jsx)(`span`,{className:`text-[12px] text-muted`,children:e.label}),(0,q.jsx)(`span`,{className:`truncate font-mono text-[12px] text-ink`,children:e.path})]})},e.label))})]})]}),t?.ready&&(0,q.jsxs)(Xc,{id:`usage`,title:`Context and tokens`,children:[e?.context&&(0,q.jsxs)(`div`,{className:`px-3 py-1.5`,title:e.context.compactsAt?`The agent summarises the conversation at ${Sc(e.context.compactsAt)} tokens.`:void 0,children:[(0,q.jsxs)(`span`,{className:`flex items-baseline gap-2 text-[12px] text-muted`,children:[(0,q.jsx)(`span`,{className:`flex-1`,children:`This chat's context`}),(0,q.jsxs)(`span`,{className:`text-ink tabular-nums`,children:[Sc(e.context.tokens),` / `,Sc(e.context.limit)]})]}),(0,q.jsx)(Qc,{value:e.context.tokens,max:e.context.limit,warnAt:e.context.compactsAt})]}),e?.usage&&(0,q.jsx)(Zc,{icon:Jt,label:`This chat`,value:(0,q.jsxs)(`span`,{className:`tabular-nums`,children:[Sc(e.usage.input),` in · `,Sc(e.usage.output),` out`]}),title:e.usage.cached?`${Sc(e.usage.cached)} of the input came from the provider's cache.`:void 0}),(0,q.jsx)(Zc,{icon:Jt,label:`Today, this project`,value:(0,q.jsx)(`span`,{className:`tabular-nums`,children:h?`${Sc(h.input+h.output)} tokens${a?.currency&&h.amount?` · ${Tc(h.amount,a.currency)}`:``}`:`No runs yet`}),to:Rs(`settings`,`tokenomics`)}),a?.spent&&a.budget?.month?(0,q.jsxs)(`div`,{className:`px-3 py-1.5`,children:[(0,q.jsxs)(`span`,{className:`flex items-baseline gap-2 text-[12px] text-muted`,children:[(0,q.jsx)(`span`,{className:`flex-1`,children:`This month`}),(0,q.jsxs)(`span`,{className:`text-ink tabular-nums`,children:[Tc(a.spent.month,a.spent.currency),` / `,Tc(a.budget.month,a.budget.currency||a.spent.currency)]})]}),(0,q.jsx)(Qc,{value:a.spent.month,max:a.budget.month})]}):a&&(0,q.jsx)(Zc,{icon:Jt,label:`Last 30 days`,value:(0,q.jsxs)(`span`,{className:`tabular-nums`,children:[Sc(a.totals.input+a.totals.output),` tokens`,a.currency&&a.totals.amount?` · ${Tc(a.totals.amount,a.currency)}`:``]}),to:Rs(`settings`,`tokenomics`)})]}),f.length>0&&(0,q.jsx)(Xc,{id:`background`,title:`Background tasks · ${f.length}`,children:(0,q.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:f.map((e,t)=>(0,q.jsx)(`li`,{children:(0,q.jsxs)(`a`,{href:Rs(...e.to.split(`/`).filter(Boolean)),className:`flex items-start gap-2.5 rounded-[10px] px-3 py-1.5 no-underline hover:bg-surface-muted`,children:[(0,q.jsx)(yn,{size:15,"aria-hidden":`true`,className:`mt-0.5 flex-none animate-spin text-accent motion-reduce:animate-none`}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,q.jsx)(`span`,{className:`truncate text-[13px] text-ink`,children:e.label}),(0,q.jsxs)(`span`,{className:`text-[12px] text-muted`,children:[e.detail||`Running`,nl(e.startedAt)&&` · ${nl(e.startedAt)}`]})]})]})},`${e.kind}-${t}`))})}),e?.changes&&e.changes.length>0&&(0,q.jsxs)(Xc,{id:`changes`,title:`Changes · ${e.changes.length}`,children:[(0,q.jsxs)(`span`,{className:`px-3 pb-1 font-mono text-[12px] tabular-nums`,children:[Fa(e.changes.length,`file`),` · `,(0,q.jsxs)(`span`,{className:`text-pass`,children:[`+`,e.changes.reduce((e,t)=>e+t.added,0)]}),` `,(0,q.jsxs)(`span`,{className:`text-fail`,children:[`−`,e.changes.reduce((e,t)=>e+t.removed,0)]})]}),(0,q.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:e.changes.map(e=>(0,q.jsx)(tl,{path:e.path,icon:Pt,extra:(0,q.jsxs)(`span`,{className:`flex-none font-mono text-[11.5px] tabular-nums`,children:[(0,q.jsxs)(`span`,{className:`text-pass`,children:[`+`,e.added]}),` `,(0,q.jsxs)(`span`,{className:`text-fail`,children:[`−`,e.removed]})]})},e.path))}),e.onCreatePr&&(0,q.jsx)(`div`,{className:`px-2 pt-1.5 pb-1`,children:(0,q.jsxs)(J,{size:`sm`,variant:`primary`,disabled:e.busy,title:e.busy?`When ForgeQE has finished`:`Ask ForgeQE to open a pull request with these changes`,onClick:e.onCreatePr,className:`w-full justify-center`,children:[(0,q.jsx)(Qt,{size:15,"aria-hidden":`true`}),`Create pull request`]})})]}),e?.outputs&&e.outputs.length>0&&(0,q.jsx)(Xc,{id:`outputs`,title:`Outputs · ${e.outputs.length}`,children:(0,q.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:e.outputs.map(e=>(0,q.jsx)(tl,{path:e.path,icon:e.kind===`test`?Mt:/\.html?$/i.test(e.path)?Ot:e.kind===`report`?Ht:It,extra:(0,q.jsx)(`span`,{className:`flex-none text-[11.5px] text-muted`,children:e.label})},e.path))})})]})}var il=[{id:``,label:`Home`,icon:sn},{id:`record`,label:`Record`,icon:et},{id:`regression`,label:`Regression`,icon:Fn},{id:`api-tests`,label:`API tests`,icon:$r},{id:`quality`,label:`Quality`,icon:Jt},{id:`data`,label:`Data`,icon:bt},{id:`runs`,label:`Runs`,icon:Yn},{id:`reports`,label:`Reports`,icon:Ot},{id:`jobs`,label:`Jobs`,icon:He}],al=[{id:`knowledge`,label:`Knowledge`,icon:Pe},{id:`memory`,label:`Memory`,icon:Re},{id:`guardrails`,label:`Guardrails`,icon:Cr},{id:`skills`,label:`Skills`,icon:nn},{id:`prompts`,label:`Prompts`,icon:Tn},{id:`features`,label:`What's ready`,icon:Oe}],ol=(0,v.createContext)({hidden:!1,open:()=>{},setChat:()=>{}});function sl(e){let{setChat:t}=(0,v.useContext)(ol),n=JSON.stringify(e);(0,v.useEffect)(()=>(t(e),()=>t(null)),[n,t])}var cl=`forgeqe-sidebar`,ll=()=>{try{return localStorage.getItem(cl)===`closed`}catch{return!1}};function ul({className:e}){let{hidden:t,open:n}=(0,v.useContext)(ol);return(0,q.jsx)(J,{variant:`icon`,size:`icon`,"aria-label":`Open the sidebar`,onClick:n,className:K(t?`inline-flex`:`inline-flex md:hidden`,e),children:(0,q.jsx)(zn,{size:20,strokeWidth:1.8,"aria-hidden":`true`})})}function dl(){let{hidden:e}=(0,v.useContext)(ol);return(0,q.jsxs)(`div`,{className:K(`sticky top-0 z-20 items-center gap-1 border-b border-line-soft bg-bg px-3 py-2`,e?`flex`:`flex md:hidden`),children:[(0,q.jsx)(ul,{}),(0,q.jsx)(`a`,{href:Rs(),className:`ml-1 text-base font-semibold text-ink no-underline hover:text-ink`,children:`ForgeQE`})]})}function fl({item:e,current:t}){let n=t===e.id;return(0,q.jsxs)(`a`,{href:Rs(e.id),"aria-current":n?`page`:void 0,className:K(`flex min-h-9 items-center gap-3 rounded-[10px] px-3 text-sm font-medium no-underline`,n?`bg-surface-strong text-ink hover:text-ink`:`text-ink-2 hover:bg-surface-strong hover:text-ink`),children:[(0,q.jsx)(e.icon,{size:18,strokeWidth:1.8,"aria-hidden":`true`,className:`flex-none`}),e.label]})}function pl({current:e,chat:t,onClose:n}){let[r,i]=(0,v.useState)([]);(0,v.useEffect)(()=>{let e=!1,t=()=>{j.state().then(t=>{e||t.ready&&te.list().then(t=>!e&&i(t.chats.slice(0,12)),()=>{})},()=>{})};return t(),window.addEventListener(`hashchange`,t),()=>{e=!0,window.removeEventListener(`hashchange`,t)}},[]);let a=r.some(e=>e.state===`busy`||e.state===`starting`);return(0,v.useEffect)(()=>{if(!a)return;let e=setInterval(()=>te.list().then(e=>i(e.chats.slice(0,12)),()=>{}),4e3);return()=>clearInterval(e)},[a]),(0,q.jsxs)(`nav`,{"aria-label":`ForgeQE`,className:`flex h-full w-[264px] flex-col gap-1 border-r border-line-soft bg-surface-muted px-3 pt-3 pb-3`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-1 pl-2`,children:[(0,q.jsx)(`a`,{href:Rs(),className:`flex-1 text-base font-semibold text-ink no-underline hover:text-ink`,children:`ForgeQE`}),(0,q.jsx)(J,{variant:`icon`,size:`icon`,"aria-label":`Close the sidebar`,onClick:n,children:(0,q.jsx)(Ln,{size:20,strokeWidth:1.8,"aria-hidden":`true`})})]}),(0,q.jsxs)(`a`,{href:Rs(),className:K(Ra(),`mt-2 mb-3 justify-start gap-3 px-3`),children:[(0,q.jsx)(Fr,{size:18,strokeWidth:1.8,"aria-hidden":`true`}),`New chat`]}),(0,q.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-5 overflow-y-auto`,children:[(0,q.jsxs)(`div`,{role:`group`,"aria-labelledby":`nav-work`,className:`flex flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{id:`nav-work`,className:`px-3 pb-1 text-[13px] font-medium text-muted`,children:`Work`}),il.map(t=>(0,q.jsx)(fl,{item:t,current:e},t.id))]}),(0,q.jsxs)(`div`,{role:`group`,"aria-labelledby":`nav-knowledge`,className:`flex flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{id:`nav-knowledge`,className:`px-3 pb-1 text-[13px] font-medium text-muted`,children:`Agents`}),al.map(t=>(0,q.jsx)(fl,{item:t,current:e},t.id))]}),(r.length>0||e===`chats`)&&(0,q.jsxs)(`div`,{role:`group`,"aria-labelledby":`nav-recent`,className:`flex flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{id:`nav-recent`,className:`px-3 pb-1 text-[13px] font-medium text-muted`,children:`Recent`}),r.map(e=>(0,q.jsxs)(`a`,{href:Rs(`chats`,e.id),"aria-current":t===e.id?`page`:void 0,title:e.title,className:K(`flex min-h-9 items-center gap-2 rounded-[10px] px-3 text-sm no-underline`,t===e.id?`bg-surface-strong text-ink hover:text-ink`:`text-ink-2 hover:bg-surface-strong hover:text-ink`),children:[(0,q.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.title}),(e.state===`busy`||e.state===`starting`)&&(0,q.jsx)(os,{state:e.state===`busy`?`working`:`waiting`,label:`Working`,px:16})]},e.id)),(0,q.jsxs)(`a`,{href:Rs(`chats`),"aria-current":e===`chats`&&!t?`page`:void 0,className:K(`flex min-h-9 items-center gap-2 rounded-[10px] px-3 text-[13px] font-medium no-underline`,e===`chats`&&!t?`bg-surface-strong text-ink hover:text-ink`:`text-muted hover:bg-surface-strong hover:text-ink`),children:[(0,q.jsx)(Dn,{size:15,strokeWidth:1.8,"aria-hidden":`true`,className:`flex-none`}),`All chats`]})]})]}),(0,q.jsxs)(`div`,{className:`flex flex-none flex-col gap-0.5 border-t border-line pt-2`,children:[(0,q.jsxs)(`a`,{href:`/help/docs/user-guide.html`,target:`_blank`,rel:`noreferrer noopener`,className:`flex min-h-9 items-center gap-3 rounded-[10px] px-3 text-sm font-medium text-ink-2 no-underline hover:bg-surface-strong hover:text-ink`,children:[(0,q.jsx)(nt,{size:18,strokeWidth:1.8,"aria-hidden":`true`,className:`flex-none`}),`Help`]}),(0,q.jsx)(fl,{item:{id:`settings`,label:`Settings`,icon:xr},current:e})]})]})}function ml(){let[e,t]=(0,v.useState)(!1);return(0,v.useEffect)(()=>{let e=()=>t(!0);return window.addEventListener(E,e),()=>window.removeEventListener(E,e)},[]),e?(0,q.jsx)(`p`,{role:`alert`,className:`mx-4 mt-4 mb-0 rounded-[12px] bg-fail-soft px-3 py-2 text-sm text-fail [overflow-wrap:anywhere]`,children:D}):null}function hl({stats:e,onClose:t}){return(0,q.jsxs)(`aside`,{"aria-label":`Workspace`,className:`flex h-full w-[300px] flex-col border-l border-line-soft bg-surface-muted`,children:[(0,q.jsx)(`div`,{className:`flex justify-end px-3 pt-3`,children:(0,q.jsx)(J,{variant:`icon`,size:`icon`,"aria-label":`Close the workspace panel`,onClick:t,children:(0,q.jsx)(Vn,{size:20,strokeWidth:1.8,"aria-hidden":`true`})})}),(0,q.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-3 pt-1 pb-3`,children:(0,q.jsx)(rl,{chat:e})})]})}var gl=`forgeqe-workspace-panel`,_l=()=>{try{return localStorage.getItem(gl)!==`closed`}catch{return!0}};function vl({current:e,chat:t,children:n}){let[r,i]=(0,v.useState)(ll),[a,o]=(0,v.useState)(null),[s,c]=(0,v.useState)(!1),[l,u]=(0,v.useState)(_l),[d,f]=(0,v.useState)(!1),p=()=>window.matchMedia(`(min-width: 1280px)`).matches,m=e=>{u(e);try{localStorage.setItem(gl,e?`open`:`closed`)}catch{}};(0,v.useEffect)(()=>{if(!d)return;let e=()=>f(!1),t=t=>t.key===`Escape`&&e();return window.addEventListener(`hashchange`,e),window.addEventListener(`keydown`,t),()=>{window.removeEventListener(`hashchange`,e),window.removeEventListener(`keydown`,t)}},[d]);let h=e=>{i(e);try{localStorage.setItem(cl,e?`closed`:`open`)}catch{}};(0,v.useEffect)(()=>{if(!s)return;let e=()=>c(!1),t=t=>t.key===`Escape`&&e();return window.addEventListener(`hashchange`,e),window.addEventListener(`keydown`,t),()=>{window.removeEventListener(`hashchange`,e),window.removeEventListener(`keydown`,t)}},[s]);let g=()=>window.matchMedia(`(min-width: 768px)`).matches;return(0,q.jsx)(ol.Provider,{value:{hidden:r,open:()=>g()?h(!1):c(!0),setChat:o},children:(0,q.jsxs)(`div`,{className:`flex min-h-screen bg-bg`,children:[(0,q.jsx)(`aside`,{className:K(`sticky top-0 h-screen flex-none`,r?`hidden`:`hidden md:block`),children:(0,q.jsx)(pl,{current:e,chat:t,onClose:()=>h(!0)})}),s&&(0,q.jsxs)(`div`,{className:`fixed inset-0 z-40 md:hidden`,children:[(0,q.jsx)(`div`,{"aria-hidden":`true`,className:`absolute inset-0 bg-[rgba(17,25,40,0.28)]`,onClick:()=>c(!1)}),(0,q.jsx)(`aside`,{className:`fade-in absolute inset-y-0 left-0 max-w-[85vw] shadow-menu`,children:(0,q.jsx)(pl,{current:e,chat:t,onClose:()=>c(!1)})})]}),(0,q.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,q.jsx)(`div`,{"aria-hidden":`true`,className:K(`h-4 flex-none`,r?`hidden`:`hidden md:block`,l&&`xl:hidden`)}),(0,q.jsx)(ml,{}),n,(0,q.jsx)(J,{variant:`icon`,size:`icon`,"aria-label":`Show the workspace panel`,onClick:()=>p()?m(!0):f(!0),className:K(`fixed top-3 right-3 z-30 bg-bg/80`,l&&`xl:hidden`),children:(0,q.jsx)(Un,{size:20,strokeWidth:1.8,"aria-hidden":`true`})})]}),(0,q.jsx)(`div`,{className:K(`sticky top-0 h-screen flex-none`,l?`hidden xl:block`:`hidden`),children:(0,q.jsx)(hl,{stats:a,onClose:()=>m(!1)})}),d&&(0,q.jsxs)(`div`,{className:`fixed inset-0 z-40 xl:hidden`,children:[(0,q.jsx)(`div`,{"aria-hidden":`true`,className:`absolute inset-0 bg-[rgba(17,25,40,0.28)]`,onClick:()=>f(!1)}),(0,q.jsx)(`div`,{className:`fade-in absolute inset-y-0 right-0 max-w-[85vw] shadow-menu`,children:(0,q.jsx)(hl,{stats:a,onClose:()=>f(!1)})})]})]})})}var yl=[{label:`Run test cases`,Icon:Yn,text:`Run SHOP-12 and SHOP-14 on Chrome and Edge`},{label:`Explore a journey`,Icon:mt,text:`Go to the shop on QA and buy a pair of trail shoes with a saved card`},{label:`Write a test`,Icon:ut,text:`Write a Playwright test for the login flow on QA`},{label:`Review requirements`,Icon:It,text:`Review the payments refund brief and list its gaps`}];function bl(){let[e,t]=(0,v.useState)(null),[n,r]=(0,v.useState)(``),[i,a]=(0,v.useState)(``),[o,s]=(0,v.useState)(()=>zs(null)),[c,l]=(0,v.useState)(``),[u,d]=(0,v.useState)(``),[f,p]=(0,v.useState)(null),[m,h]=(0,v.useState)(!1);(0,v.useEffect)(()=>{j.state().then(e=>{p(e),e.ready&&A.settings().then(e=>{t(e),s(zs(e))},()=>{})},()=>{})},[]);let g=Object.entries(X(e?.models.models)).map(([e,t])=>({name:e,provider:String(X(t).provider||``),note:String(X(t).description||``)})).filter(e=>e.provider!==`mock`&&e.name!==`mock`),_=String(X(e?.config.llm).routing||`off`)===`auto`,y=e=>typeof e==`string`&&g.some(t=>t.name===e)?e:``,b=y(e?.models.default)||g[0]?.name||``,x=c||(_?`Auto routing`:y(X(e?.config.llm).active)||b||`Auto routing`),S=cs(`home`,e=>{r(e),ds(`msg`)}),C=async(e=n)=>{if(e.trim()&&!m){h(!0),d(``);try{let{id:t}=await te.start(e.trim(),{profile:g.some(e=>e.name===x)?x:void 0,headed:o.headed,code:o.code});location.hash=Rs(`chats`,t)}catch(e){d(e.message),h(!1)}}};return(0,q.jsxs)(`div`,{className:`flex min-h-screen flex-col`,children:[(0,q.jsx)(`header`,{className:`flex items-center gap-1 px-5 py-3.5`,children:(0,q.jsx)(ul,{})}),(0,q.jsx)(`main`,{className:`flex flex-auto flex-col items-center justify-center px-5 pt-6 pb-[120px]`,children:(0,q.jsxs)(`div`,{className:`flex w-full max-w-[780px] flex-col items-center gap-9`,children:[(0,q.jsxs)(`div`,{className:`flex flex-col items-center gap-3.5 text-center`,children:[(0,q.jsx)(os,{state:`idle`,px:112,label:`ForgeQE is ready`,className:`mb-1`}),(0,q.jsx)(`h1`,{className:`m-0 bg-[linear-gradient(90deg,#3758f9_0%,#8a97fb_100%)] bg-clip-text text-[34px] leading-tight font-medium tracking-[-0.01em] text-accent [-webkit-text-fill-color:transparent]`,children:`What should we test today?`}),(0,q.jsx)(`p`,{className:`m-0 max-w-[46ch] text-[15px] leading-relaxed text-muted`,children:`ForgeQE runs your test cases in a real browser, finds what broke, and writes the automated test for you.`})]}),f&&!f.ready&&(0,q.jsxs)(`div`,{role:`status`,className:`flex w-full flex-wrap items-center gap-x-4 gap-y-3 rounded-[18px] border border-line bg-surface-muted px-5 py-4`,children:[(0,q.jsx)(ar,{size:20,strokeWidth:1.8,"aria-hidden":`true`,className:`flex-none text-accent`}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_280px] flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:`Set up ForgeQE first`}),(0,q.jsxs)(`span`,{className:`text-sm text-muted [overflow-wrap:anywhere]`,children:[`Choose your project folder and set ForgeQE up in it. It is not set up in `,f.project,` yet.`]})]}),(0,q.jsx)(`a`,{className:Ra({variant:`primary`}),href:Rs(`settings`,`setup`),children:`Set up`})]}),(0,q.jsx)(ss,{id:`msg`,label:`Message ForgeQE`,value:n,onChange:e=>{r(e),d(``)},onSend:()=>void C(),disabled:m||!!f&&!f.ready||S.running,placeholder:`Ask ForgeQE to test something…`,top:S.state&&(0,q.jsx)(us,{state:S.state,onStop:()=>void S.stop(),onUndo:S.undo,onClose:S.close}),left:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(J,{variant:`icon`,size:`icon`,className:`flex-none`,"aria-label":`Attach a file`,onClick:()=>d(`Attachments come with chats in the web app.`),children:(0,q.jsx)(Gn,{size:20,strokeWidth:1.8,"aria-hidden":`true`})}),(0,q.jsxs)(`div`,{className:`relative`,children:[(0,q.jsxs)(J,{variant:`ghost`,className:`px-2.5 text-[15px]`,"aria-expanded":i===`tools`,"aria-haspopup":`menu`,onClick:()=>a(i===`tools`?``:`tools`),children:[(0,q.jsx)(Tr,{size:18,strokeWidth:1.8,"aria-hidden":`true`}),`Tools`,(o.headed||!o.code)&&(0,q.jsx)(`span`,{"aria-hidden":`true`,className:`size-1.5 rounded-full bg-accent`})]}),(0,q.jsx)(za,{open:i===`tools`,onClose:()=>a(``),label:`Tools for this chat`,role:`dialog`,side:`auto`,className:`left-0 w-[min(380px,calc(100vw-48px))]`,children:(0,q.jsx)(Hs,{tools:o,onChange:s})})]}),(0,q.jsx)(ls,{running:S.running,disabled:!n.trim()||m||!!f&&!f.ready,onClick:()=>void S.start(n)})]}),right:(0,q.jsxs)(`div`,{className:`relative`,children:[(0,q.jsxs)(J,{variant:`ghost`,className:`max-w-[46vw] px-2.5 text-[15px]`,"aria-expanded":i===`model`,"aria-haspopup":`menu`,"aria-label":`Model: ${x}`,onClick:()=>a(i===`model`?``:`model`),children:[x===`Auto routing`||!Fs[g.find(e=>e.name===x)?.provider||``]?(0,q.jsx)(kr,{size:16,fill:`currentColor`,"aria-hidden":`true`,className:`text-accent`}):(()=>{let e=Fs[g.find(e=>e.name===x).provider];return(0,q.jsx)(e,{"aria-hidden":`true`,className:`size-4`})})(),(0,q.jsx)(`span`,{className:`truncate`,children:x}),(0,q.jsx)(Je,{size:16,"aria-hidden":`true`})]}),(0,q.jsx)(za,{open:i===`model`,onClose:()=>a(``),label:`Model`,side:`auto`,className:`right-0 w-[min(400px,calc(100vw-48px))]`,children:(0,q.jsx)(Us,{models:g,current:x,onPick:e=>{l(e),a(``)}})})]})}),(0,q.jsx)(`p`,{role:`status`,"aria-live":`polite`,className:K(`-mt-5 m-0 min-h-5 text-center text-sm text-ink-2`,!u&&`invisible`),children:u}),(0,q.jsx)(`div`,{className:`flex flex-wrap justify-center gap-3`,children:yl.map(({label:e,Icon:t,text:n})=>(0,q.jsxs)(`button`,{type:`button`,onClick:()=>{r(n),a(``),d(``),document.getElementById(`msg`)?.focus()},className:`inline-flex min-h-11 cursor-pointer items-center gap-2.5 rounded-full border border-line bg-bg px-[18px] text-sm font-medium text-ink-2 hover:border-accent-line hover:bg-accent-soft hover:text-ink`,children:[(0,q.jsx)(t,{size:18,strokeWidth:1.8,"aria-hidden":`true`}),e]},e))})]})})]})}var xl={pass:`bg-pass-soft text-pass`,fail:`bg-fail-soft text-fail`,warn:`bg-warn-soft text-warn`,running:`bg-accent-soft text-accent`,neutral:`bg-surface-strong text-ink-2`},Sl={pass:Ke,fail:ai,warn:Ur};function Cl({tone:e,children:t,className:n,icon:r=!0,orb:i=`working`}){let a=r?Sl[e]:void 0,o=r&&e===`running`;return(0,q.jsxs)(`span`,{className:K(`inline-flex min-h-6 items-center gap-1 rounded-full px-2.5 text-xs font-medium whitespace-nowrap`,(a||o)&&`pl-1.5`,xl[e],n),children:[o&&(0,q.jsx)(os,{state:i,px:16}),a&&(0,q.jsx)(a,{size:12,strokeWidth:2.5,"aria-hidden":`true`,className:`flex-none`}),t]})}function wl({icon:e,title:t,intro:n,children:r}){return(0,q.jsxs)(`div`,{className:`flex min-h-screen flex-col`,children:[(0,q.jsx)(dl,{}),(0,q.jsxs)(`main`,{className:`mx-auto box-border flex w-full max-w-[800px] flex-col px-6 pt-10 pb-12`,children:[(0,q.jsxs)(`div`,{className:`mb-1 flex items-center gap-3`,children:[(0,q.jsx)(fs,{icon:e,size:`lg`}),(0,q.jsx)(`h1`,{className:`m-0 text-[26px] font-semibold tracking-[-0.01em]`,children:t})]}),(0,q.jsx)(`p`,{className:`mt-1 mb-6 max-w-[64ch] text-sm leading-relaxed text-muted`,children:n}),r]})]})}function Tl({text:e,onRetry:t}){return(0,q.jsxs)(`div`,{role:`alert`,className:`flex flex-col items-start gap-3 rounded-[14px] bg-fail-soft px-4 py-3 text-sm text-fail`,children:[(0,q.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:e}),t&&(0,q.jsx)(J,{onClick:t,children:`Try again`})]})}function El(){let[e,t]=(0,v.useState)(null),[n,r]=(0,v.useState)(``),[i,a]=(0,v.useState)(null),[o,s]=(0,v.useState)(!1),[c,l]=(0,v.useState)(``),[u,d]=(0,v.useState)(``),f=(0,v.useCallback)(()=>{r(``),P.knowledge().then(t,e=>r(e.message))},[]);(0,v.useEffect)(f,[f]);let p=async e=>{l(``);try{let t=await P.knowledgeFile(e);a({rel:e,text:t.text,was:t.text,isNew:!1})}catch(e){r(e.message)}},m=async()=>{if(i){s(!0),l(``);try{let e=i.rel.trim();await P.saveKnowledgeFile(e,i.text),a(null),d(`Saved ${e}. Agents read it from their next request.`),f()}catch(e){l(e.message)}finally{s(!1)}}},h=e?.files.filter(e=>e.used).length??0;return(0,q.jsxs)(wl,{icon:Pe,title:`Knowledge`,intro:(0,q.jsxs)(q.Fragment,{children:[`What the agents know about your product: its features, business rules and terms, as Markdown files in`,` `,(0,q.jsx)(`span`,{className:`font-mono text-[13px]`,children:e?.dir||`.forgeqe/knowledge`}),`. Each agent reads the parts that match its task. The industry, regulations and folders are in`,` `,(0,q.jsx)(`a`,{href:Rs(`settings`,`agents`),children:`Settings, Agents`}),`.`]}),children:[n&&(0,q.jsx)(Tl,{text:n,onRetry:f}),!e&&!n&&(0,q.jsx)(`p`,{role:`status`,className:`m-0 text-sm text-muted`,children:`Loading…`}),e&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`mb-6 flex flex-wrap gap-3`,children:[(0,q.jsx)(kc,{icon:It,label:`Files`,value:String(e.files.length)}),(0,q.jsx)(kc,{icon:Ie,label:`Read by agents`,value:String(h),note:h<e.files.length?`The others are templates still to fill in`:void 0}),(0,q.jsx)(kc,{icon:en,label:`Per browser run`,value:e.maxChars?`${e.maxChars.toLocaleString()}`:`Off`,note:e.maxChars?`characters at most`:void 0})]}),(0,q.jsx)(`div`,{"aria-live":`polite`,children:u&&(0,q.jsx)(`p`,{className:`mt-0 mb-4 rounded-[12px] bg-pass-soft px-3 py-2 text-sm text-pass`,children:u})}),(0,q.jsxs)(`ul`,{"aria-label":`Knowledge files`,className:`m-0 flex list-none flex-col p-0`,children:[e.files.length===0&&(0,q.jsx)(`li`,{className:`border-t border-line-soft py-5 text-sm text-muted`,children:`No knowledge files yet. Add one for each product area: what it does, its rules, its words.`}),e.files.map(e=>(0,q.jsxs)(`li`,{className:`flex min-h-[64px] flex-wrap items-center gap-x-4 gap-y-2 border-t border-line-soft py-3`,children:[(0,q.jsx)(It,{size:18,strokeWidth:1.8,"aria-hidden":`true`,className:`flex-none text-muted`}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_240px] flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{className:`font-medium [overflow-wrap:anywhere]`,children:e.title}),(0,q.jsx)(`span`,{className:`font-mono text-[12px] text-muted [overflow-wrap:anywhere]`,children:e.rel})]}),(0,q.jsx)(Cl,{tone:e.used?`pass`:`neutral`,children:e.used?e.state===`edited`?`Filled in`:`Read by agents`:`Template`}),(0,q.jsx)(J,{size:`sm`,"aria-label":`Edit ${e.rel}`,onClick:()=>void p(e.rel),children:`Edit`})]},e.rel))]}),(0,q.jsx)(`div`,{className:`pt-4`,children:(0,q.jsx)(J,{onClick:()=>{l(``),a({rel:``,text:`#
13
+
14
+ ## Rules
15
+
16
+ -
17
+ `,was:``,isNew:!0})},children:`Add a file`})})]}),(0,q.jsx)(Gs,{wide:!0,open:!!i,onClose:()=>a(null),title:i?.isNew?`Add a knowledge file`:i?.rel||``,description:`Markdown. Headings split it into parts; an agent gets the parts that match its task. Never put passwords or keys here.`,footer:(0,q.jsxs)(q.Fragment,{children:[c&&(0,q.jsx)(`span`,{role:`alert`,className:`mr-auto self-center text-sm text-fail [overflow-wrap:anywhere]`,children:c}),(0,q.jsx)(J,{onClick:()=>a(null),children:`Cancel`}),(0,q.jsx)(J,{variant:`primary`,disabled:o||!i||!i.rel.trim()||!i.isNew&&i.text===i.was,onClick:()=>void m(),children:o?`Saving…`:`Save`})]}),children:i&&(0,q.jsxs)(`div`,{className:`flex flex-col gap-4 pt-4`,children:[i.isNew&&(0,q.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,q.jsx)(`label`,{htmlFor:`knowledge-name`,className:`font-medium`,children:`File name`}),(0,q.jsx)(qs,{id:`knowledge-name`,value:i.rel,spellCheck:!1,placeholder:`products/checkout.md`,className:`font-mono text-[13px]`,onChange:e=>a({...i,rel:e.target.value})}),(0,q.jsx)(`span`,{className:`text-sm text-muted`,children:`In the knowledge folder; a folder before the name groups files.`})]}),(0,q.jsx)(`label`,{htmlFor:`knowledge-text`,className:`sr-only`,children:`Text`}),(0,q.jsx)(Js,{id:`knowledge-text`,value:i.text,spellCheck:!0,rows:22,onChange:e=>a({...i,text:e.target.value}),className:`min-h-[50vh] font-mono text-[13px] leading-relaxed`})]})})]})}var Dl=50,Ol=``;function kl(e){let t=e?Date.parse(e):NaN;if(Number.isNaN(t))return``;let n=(Date.now()-t)/1e3;return n<3600?`${Math.max(1,Math.floor(n/60))} min ago`:n<86400?`${Math.floor(n/3600)} h ago`:n<604800?`${Math.floor(n/86400)} d ago`:new Date(t).toLocaleDateString([],{day:`numeric`,month:`short`})}var Al=e=>!!e.lastStatus&&/pass|success|complete/i.test(e.lastStatus),jl=e=>e.successes===0?`never`:e.lastStatus&&!Al(e)?`failing`:e.replays>0?`replaying`:`ok`,Ml=e=>e||`Other`;function Nl({view:e}){let t=e.stats.areas.find(e=>e.area===`browser`),n=(t?.replayedSteps??0)+(t?.modelSteps??0),r=n?Math.round((t?.replayedSteps??0)/n*100):0,i=new Set([...e.flows.map(e=>Ml(e.host)),...e.pages.map(e=>Ml(e.host))]).size,a=[{icon:lr,label:`Flows`,value:e.flows.length},{icon:we,label:`Pages`,value:e.pages.length},{icon:en,label:`Sites`,value:i},{icon:rr,label:`Reruns without the agent`,value:e.stats.reruns.tier0}];return(0,q.jsxs)(`section`,{className:`mb-5 flex flex-col gap-3 rounded-[14px] border border-line-soft bg-bg px-4 py-3`,children:[(0,q.jsxs)(`p`,{className:`m-0 text-[15px] leading-relaxed text-ink`,children:[`ForgeQE remembers `,(0,q.jsx)(`b`,{children:Fa(e.flows.length,`flow`)}),` and `,(0,q.jsx)(`b`,{children:Fa(e.pages.length,`page`)}),` on `,Fa(i,`site`),`.`,` `,n?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`b`,{children:[r,`%`]}),` of the steps of recent runs came from memory, without asking a model (`,e.flows.reduce((e,t)=>e+t.replays,0),` replays).`]}):`No run has used it yet.`]}),(0,q.jsx)(`div`,{className:`flex flex-wrap gap-x-6 gap-y-1 text-[13px] text-muted`,children:a.map(e=>(0,q.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,q.jsx)(e.icon,{size:14,"aria-hidden":`true`}),e.label,` `,(0,q.jsx)(`b`,{className:`text-ink tabular-nums`,children:e.value})]},e.label))})]})}function Pl({f:e,onOpen:t}){let n=jl(e);return(0,q.jsxs)(`button`,{type:`button`,onClick:t,className:`grid w-full cursor-pointer grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-x-3 rounded-[10px] border-0 bg-transparent px-3 py-2 text-left hover:bg-surface-muted @2xl:grid-cols-[auto_minmax(0,1fr)_88px_88px_90px]`,children:[n===`failing`||n===`never`?(0,q.jsx)(it,{size:16,"aria-label":`Last run failed`,className:`text-fail`}):(0,q.jsx)(Qe,{size:16,"aria-label":`Passed`,className:`text-pass`}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,q.jsx)(`span`,{className:`truncate text-[14px] text-ink`,children:e.goal}),(0,q.jsxs)(`span`,{className:`truncate text-[12px] text-muted`,children:[Fa(e.steps,`step`),` · passed `,e.successes,` of `,e.runs,e.replays?` · replayed ${e.replays}×`:``]})]}),(0,q.jsx)(`span`,{className:`hidden text-right text-[12.5px] text-muted tabular-nums @2xl:block`,children:e.replayedSteps+e.modelSteps?`${Math.round(e.replayedSteps/(e.replayedSteps+e.modelSteps)*100)}% replayed`:`—`}),(0,q.jsx)(`span`,{className:K(`hidden text-right text-[12.5px] @2xl:block`,n===`failing`||n===`never`?`text-fail`:`text-muted`),children:n===`never`?`Never passed`:n===`failing`?`Failed last`:n===`replaying`?`Replaying`:`Learned`}),(0,q.jsx)(`span`,{className:`text-right text-[12.5px] text-muted tabular-nums`,children:kl(e.lastRun)})]})}function Fl({p:e}){return(0,q.jsxs)(`div`,{className:`grid grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-x-3 rounded-[10px] px-3 py-2 hover:bg-surface-muted @2xl:grid-cols-[auto_minmax(0,1fr)_100px_80px_90px]`,children:[(0,q.jsx)(we,{size:16,"aria-hidden":`true`,className:`text-muted`}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,q.jsx)(`span`,{className:`truncate text-[14px] text-ink`,children:e.title||e.path}),(0,q.jsx)(`span`,{className:`truncate font-mono text-[11.5px] text-muted`,title:`${e.host}${e.path}`,children:e.path})]}),(0,q.jsx)(`span`,{className:`hidden text-right text-[12.5px] text-muted tabular-nums @2xl:block`,children:Fa(e.elements,`element`)}),(0,q.jsx)(`span`,{className:`hidden text-right text-[12.5px] text-muted tabular-nums @2xl:block`,children:Fa(e.visits,`visit`)}),(0,q.jsx)(`span`,{className:`text-right text-[12.5px] text-muted tabular-nums`,children:kl(e.lastSeen)})]})}function Z({view:e,site:t,onCleared:n}){let r=t?e.targets.find(e=>e.name===t):void 0,i=t?r?.files??0:e.files,[a,o]=(0,v.useState)(!1),[s,c]=(0,v.useState)(!1);if((0,v.useEffect)(()=>o(!1),[t]),!i)return null;let l=t||`everything`,u=async()=>{c(!0);try{let e=await P.clearMemory(r?{name:r.name,kind:r.kind}:void 0);n(e,`Removed ${Fa(e.removed??0,`file`)} of memory${r?` for ${r.name}`:``}. The next runs learn it again.`)}catch(t){n(e,t.message)}finally{c(!1),o(!1)}};return a?(0,q.jsxs)(`span`,{role:`alertdialog`,"aria-label":`Clear memory`,className:`inline-flex flex-wrap items-center gap-2 rounded-[10px] border border-fail bg-fail-soft px-3 py-1.5 text-[13px] text-ink`,children:[`Remove `,Fa(i,`file`),` for `,l,`? Runs learn it again.`,(0,q.jsx)(J,{size:`sm`,disabled:s,onClick:()=>void u(),className:`border-fail bg-fail text-white hover:bg-fail hover:text-white`,children:`Clear`}),(0,q.jsx)(J,{size:`sm`,onClick:()=>o(!1),children:`Keep`})]}):(0,q.jsxs)(J,{size:`sm`,variant:`ghost`,onClick:()=>o(!0),className:`text-fail hover:bg-fail-soft`,children:[(0,q.jsx)(wt,{size:14,"aria-hidden":`true`}),t?`Clear this site`:`Clear everything`]})}function Q(){let[e,t]=(0,v.useState)(null),[n,r]=(0,v.useState)(``),[i,a]=(0,v.useState)(Ol),[o,s]=(0,v.useState)(`flows`),[c,l]=(0,v.useState)(`all`),[u,d]=(0,v.useState)(``),[f,p]=(0,v.useState)(Dl),[m,h]=(0,v.useState)(null),[g,_]=(0,v.useState)(``),y=(0,v.useCallback)(()=>{r(``),P.memory().then(t,e=>r(e.message))},[]);(0,v.useEffect)(y,[y]),(0,v.useEffect)(()=>p(Dl),[i,o,c,u]);let b=(0,v.useMemo)(()=>{let t=new Map,n=e=>t.get(Ml(e))??t.set(Ml(e),{flows:0,pages:0,failing:0}).get(Ml(e));for(let t of e?.flows||[]){let e=n(t.host);e.flows++,(jl(t)===`failing`||jl(t)===`never`)&&e.failing++}for(let t of e?.pages||[])n(t.host).pages++;for(let t of e?.targets||[])n(t.name);return[...t.entries()].map(([e,t])=>({name:e,...t})).sort((e,t)=>t.flows+t.pages-(e.flows+e.pages))},[e]),x=u.toLowerCase().split(/\s+/).filter(Boolean),S=(0,v.useMemo)(()=>(e?.flows||[]).filter(e=>(!i||Ml(e.host)===i)&&(c===`all`||jl(e)===c)&&x.every(t=>`${e.goal} ${e.host||``}`.toLowerCase().includes(t))).sort((e,t)=>(Date.parse(t.lastRun||``)||0)-(Date.parse(e.lastRun||``)||0)),[e,i,c,u]),C=(0,v.useMemo)(()=>(e?.pages||[]).filter(e=>(!i||Ml(e.host)===i)&&x.every(t=>`${e.title||``} ${e.path} ${e.host}`.toLowerCase().includes(t))).sort((e,t)=>(Date.parse(t.lastSeen||``)||0)-(Date.parse(e.lastSeen||``)||0)),[e,i,u]),w=(0,v.useMemo)(()=>{let t={all:0,replaying:0,failing:0,never:0};for(let n of e?.flows||[]){if(i&&Ml(n.host)!==i)continue;t.all++;let e=jl(n);e!==`ok`&&t[e]++}return t},[e,i]),T=o===`flows`?S:C;return(0,q.jsxs)(`div`,{className:`flex min-h-screen flex-col`,children:[(0,q.jsx)(dl,{}),(0,q.jsxs)(`main`,{className:`@container mx-auto box-border flex w-full max-w-[1180px] flex-col px-6 pt-8 pb-12`,children:[(0,q.jsxs)(`div`,{className:`mb-1 flex flex-wrap items-center gap-3`,children:[(0,q.jsx)(fs,{icon:Re,size:`lg`}),(0,q.jsx)(`h1`,{className:`m-0 flex-1 text-[26px] font-semibold tracking-[-0.01em]`,children:`Memory`}),(0,q.jsxs)(`a`,{href:Rs(`settings`,`runs`),className:K(Ra({size:`sm`,variant:`ghost`}),`gap-1.5`),children:[(0,q.jsx)(yr,{size:14,"aria-hidden":`true`}),`Memory settings`]})]}),(0,q.jsxs)(`p`,{className:`mt-1 mb-5 max-w-[78ch] text-sm leading-relaxed text-muted`,children:[`What ForgeQE learned from runs that passed: each `,(0,q.jsx)(`b`,{className:`font-medium text-ink-2`,children:`flow`}),` is the steps of a task, replayed next time without asking a model, and each `,(0,q.jsx)(`b`,{className:`font-medium text-ink-2`,children:`page`}),` keeps its elements with the locators that found them.`]}),n&&(0,q.jsxs)(`div`,{role:`alert`,className:`flex flex-col items-start gap-3 rounded-[14px] bg-fail-soft px-4 py-3 text-sm text-fail`,children:[n,(0,q.jsx)(J,{onClick:y,children:`Try again`})]}),!e&&!n&&(0,q.jsx)(`p`,{className:`m-0 text-sm text-muted`,children:`Loading…`}),e&&(0,q.jsxs)(q.Fragment,{children:[!e.enabled&&(0,q.jsxs)(`p`,{className:`mt-0 mb-4 rounded-[12px] bg-warn-soft px-4 py-3 text-sm text-warn`,children:[`Memory is off for this project: runs neither use nor add to it. Turn it on in `,(0,q.jsx)(`a`,{href:Rs(`settings`,`runs`),children:`Memory settings`}),`.`]}),(0,q.jsx)(Nl,{view:e}),g&&(0,q.jsx)(`p`,{role:`status`,className:`mt-0 mb-4 rounded-[10px] bg-surface-muted px-3 py-2 text-sm text-ink-2`,children:g}),e.flows.length+e.pages.length===0?(0,q.jsxs)(`div`,{className:`flex flex-col items-start gap-3 rounded-[14px] border border-dashed border-line px-5 py-6`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:`Nothing remembered yet`}),(0,q.jsx)(`span`,{className:`max-w-[60ch] text-sm text-muted`,children:`Each browser run that passes adds its pages and steps, and the next run of the same task replays them.`}),(0,q.jsx)(`a`,{className:Ra(),href:Rs(),children:`Run something`})]}):(0,q.jsxs)(`div`,{className:`grid gap-4 @2xl:grid-cols-[220px_minmax(0,1fr)]`,children:[(0,q.jsx)(`nav`,{"aria-label":`Sites`,className:`hidden flex-col gap-0.5 self-start @2xl:sticky @2xl:top-4 @2xl:flex`,children:[{name:Ol,flows:e.flows.length,pages:e.pages.length,failing:0},...b].map(t=>(0,q.jsxs)(`button`,{type:`button`,"aria-current":i===t.name?`true`:void 0,onClick:()=>a(t.name),className:K(`flex min-h-11 w-full cursor-pointer items-center gap-2 rounded-[10px] border-0 px-3 text-left`,i===t.name?`bg-surface-strong text-ink`:`bg-transparent text-ink-2 hover:bg-surface-muted`),children:[t.name?(0,q.jsx)(en,{size:15,"aria-hidden":`true`,className:`flex-none text-muted`}):(0,q.jsx)(hn,{size:15,"aria-hidden":`true`,className:`flex-none text-muted`}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,q.jsx)(`span`,{className:`truncate text-[13.5px] font-medium`,children:t.name||`All sites`}),(0,q.jsx)(`span`,{className:`text-[12px] text-muted`,children:t.flows+t.pages||!t.name?`${Fa(t.flows,`flow`)} · ${Fa(t.pages,`page`)}`:Fa(e.targets.find(e=>e.name===t.name)?.files??0,`file`)})]}),t.failing>0&&(0,q.jsx)(`span`,{className:`rounded-full bg-fail-soft px-1.5 text-[11.5px] font-medium text-fail tabular-nums`,title:`${t.failing} failed last time`,children:t.failing})]},t.name||`all`))}),(0,q.jsxs)(Ys,{"aria-label":`Site`,value:i,onChange:e=>a(e.target.value),className:`@2xl:hidden`,children:[(0,q.jsx)(`option`,{value:Ol,children:`All sites`}),b.map(e=>(0,q.jsxs)(`option`,{value:e.name,children:[e.name,` (`,Fa(e.flows,`flow`),`, `,Fa(e.pages,`page`),`)`]},e.name))]}),(0,q.jsxs)(`section`,{className:`flex min-w-0 flex-col rounded-[14px] border border-line-soft bg-bg`,children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 border-b border-line-soft px-3 py-2.5`,children:[(0,q.jsx)(`div`,{role:`tablist`,"aria-label":`What to show`,className:`flex gap-1 rounded-full bg-surface-strong p-1`,children:[[`flows`,`Flows`,S.length],[`pages`,`Pages`,C.length]].map(([e,t,n])=>(0,q.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":o===e,onClick:()=>s(e),className:K(`inline-flex min-h-8 cursor-pointer items-center gap-1.5 rounded-full border-0 px-3 text-sm font-medium`,o===e?`bg-bg text-ink shadow-sm`:`bg-transparent text-muted hover:text-ink`),children:[t,(0,q.jsx)(`span`,{className:`text-[12px] text-muted tabular-nums`,children:n})]},e))}),(0,q.jsxs)(`div`,{className:`relative min-w-0 flex-[1_1_200px]`,children:[(0,q.jsx)(pr,{size:15,"aria-hidden":`true`,className:`pointer-events-none absolute top-1/2 left-3 -translate-y-1/2 text-muted`}),(0,q.jsx)(qs,{type:`search`,"aria-label":o===`flows`?`Find a flow`:`Find a page`,value:u,placeholder:o===`flows`?`Find a flow by its task`:`Find a page by title or path`,onChange:e=>d(e.target.value),className:`h-9 pl-9`})]}),(0,q.jsx)(Z,{view:e,site:i,onCleared:(e,n)=>{t({...e}),_(n)}})]}),o===`flows`&&(0,q.jsx)(`div`,{className:`flex flex-wrap gap-1.5 px-3 pt-2.5`,children:[[`all`,`All`],[`replaying`,`Replaying`],[`failing`,`Failed last time`],[`never`,`Never passed`]].map(([e,t])=>(0,q.jsxs)(`button`,{type:`button`,"aria-pressed":c===e,onClick:()=>l(e),className:K(`inline-flex min-h-7 cursor-pointer items-center gap-1 rounded-full border px-2.5 text-[12.5px] font-medium`,c===e?`border-accent bg-accent-soft text-ink`:`border-line-soft bg-bg text-muted hover:text-ink`),children:[t,(0,q.jsx)(`span`,{className:K(`tabular-nums`,(e===`failing`||e===`never`)&&w[e]?`text-fail`:``),children:w[e]})]},e))}),(0,q.jsxs)(`div`,{className:`@container flex flex-col p-1.5`,children:[T.length===0&&(0,q.jsx)(`p`,{className:`m-0 px-3 py-4 text-sm text-muted`,children:`Nothing matches.`}),o===`flows`?S.slice(0,f).map((e,t)=>(0,q.jsx)(Pl,{f:e,onOpen:()=>h(e)},`${e.goal}-${t}`)):C.slice(0,f).map(e=>(0,q.jsx)(Fl,{p:e},`${e.host}${e.path}`))]}),T.length>f&&(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-t border-line-soft px-4 py-2.5 text-[13px] text-muted`,children:[(0,q.jsxs)(`span`,{children:[`Showing `,f,` of `,T.length]}),(0,q.jsxs)(J,{size:`sm`,onClick:()=>p(f+Dl),children:[`Show `,Math.min(Dl,T.length-f),` more`]})]})]})]})]})]}),(0,q.jsx)(Gs,{open:!!m,onClose:()=>h(null),title:`Flow`,description:m?.host?`On ${m.host}`:void 0,footer:(0,q.jsx)(J,{onClick:()=>h(null),children:`Close`}),children:m&&(0,q.jsxs)(`div`,{className:`flex flex-col gap-4 pt-4 text-sm`,children:[(0,q.jsx)(`p`,{className:`m-0 leading-relaxed whitespace-pre-wrap text-ink [overflow-wrap:anywhere]`,children:m.goal}),(0,q.jsxs)(`dl`,{className:`m-0 grid grid-cols-[auto_1fr] gap-x-4 gap-y-2`,children:[(0,q.jsx)(`dt`,{className:`text-muted`,children:`Steps`}),(0,q.jsx)(`dd`,{className:`m-0`,children:m.steps}),(0,q.jsx)(`dt`,{className:`text-muted`,children:`Runs`}),(0,q.jsxs)(`dd`,{className:`m-0`,children:[m.runs,`, `,m.successes,` passed, `,m.failures,` failed`]}),(0,q.jsx)(`dt`,{className:`text-muted`,children:`Replayed`}),(0,q.jsxs)(`dd`,{className:`m-0`,children:[Fa(m.replays,`time`),`; `,m.replayedSteps,` of `,m.replayedSteps+m.modelSteps,` steps without a model`]}),(0,q.jsx)(`dt`,{className:`text-muted`,children:`Last run`}),(0,q.jsxs)(`dd`,{className:`m-0`,children:[m.lastRun?new Date(m.lastRun).toLocaleString([],{dateStyle:`medium`,timeStyle:`short`}):`—`,m.lastStatus?`, ${m.lastStatus}`:``]})]}),(0,q.jsx)(`p`,{className:`m-0 rounded-[10px] bg-surface-muted px-3 py-2 text-ink-2`,children:jl(m)===`never`?`It has not passed yet, so nothing replays: the next run of this task asks the model at each step.`:jl(m)===`failing`?`Its last run failed. The next run replays the steps that worked, then the agent takes over from where it went wrong.`:`The next run of this task replays its steps without a model, and the agent looks once to confirm the result.`})]})})]})}var Il=[];function Ll({section:e}){return(0,q.jsxs)(`div`,{className:`flex min-h-screen flex-col`,children:[(0,q.jsx)(dl,{}),(0,q.jsxs)(`main`,{className:`mx-auto box-border flex w-full max-w-[720px] flex-col gap-3 px-6 py-16`,children:[(0,q.jsx)(`h1`,{className:`m-0 text-[26px] font-semibold tracking-[-0.01em]`,children:e.label}),(0,q.jsxs)(`p`,{className:`m-0 max-w-[60ch] leading-relaxed text-ink-2`,children:[e.what,` are not in the web app yet. In a terminal in your project folder, run`,` `,(0,q.jsx)(`code`,{className:`rounded-md bg-surface-strong px-1.5 py-0.5 font-mono text-[13px]`,children:e.command}),`.`]})]})]})}var Rl=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2086%2076'%20width='172'%20height='152'%20role='img'%20aria-label='api'%3e%3cg%3e%3crect%20x='11'%20y='65'%20width='10'%20height='10'%20fill='%234f86e0'%20stroke='%234b7fd5'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M21%2065L25%2061L35%2061L31%2065Z'%20fill='%238db0eb'/%3e%3cpath%20d='M31%2065L35%2061L35%2071L31%2075Z'%20fill='%23375e9d'/%3e%3crect%20x='21'%20y='65'%20width='10'%20height='10'%20fill='%234f86e0'%20stroke='%234b7fd5'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%2065L55%2061L65%2061L61%2065Z'%20fill='%238db0eb'/%3e%3crect%20x='51'%20y='65'%20width='10'%20height='10'%20fill='%234f86e0'%20stroke='%234b7fd5'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M71%2065L75%2061L75%2071L71%2075Z'%20fill='%23375e9d'/%3e%3crect%20x='61'%20y='65'%20width='10'%20height='10'%20fill='%234f86e0'%20stroke='%234b7fd5'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M21%2055L25%2051L25%2061L21%2065Z'%20fill='%23375e9d'/%3e%3crect%20x='11'%20y='55'%20width='10'%20height='10'%20fill='%234f86e0'%20stroke='%234b7fd5'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M71%2055L75%2051L75%2061L71%2065Z'%20fill='%23375e9d'/%3e%3crect%20x='61'%20y='55'%20width='10'%20height='10'%20fill='%234f86e0'%20stroke='%234b7fd5'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2045L15%2041L25%2041L21%2045Z'%20fill='%238db0eb'/%3e%3cpath%20d='M21%2045L25%2041L25%2051L21%2055Z'%20fill='%23375e9d'/%3e%3crect%20x='11'%20y='45'%20width='10'%20height='10'%20fill='%234f86e0'%20stroke='%234b7fd5'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M61%2045L65%2041L75%2041L71%2045Z'%20fill='%238db0eb'/%3e%3cpath%20d='M71%2045L75%2041L75%2051L71%2055Z'%20fill='%23375e9d'/%3e%3crect%20x='61'%20y='45'%20width='10'%20height='10'%20fill='%234f86e0'%20stroke='%234b7fd5'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M1%2035L5%2031L15%2031L11%2035Z'%20fill='%238db0eb'/%3e%3cpath%20d='M11%2035L15%2031L15%2041L11%2045Z'%20fill='%23375e9d'/%3e%3crect%20x='1'%20y='35'%20width='10'%20height='10'%20fill='%234f86e0'%20stroke='%234b7fd5'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M31%2035L35%2031L45%2031L41%2035Z'%20fill='%237594d5'/%3e%3crect%20x='31'%20y='35'%20width='10'%20height='10'%20fill='%232a5bbf'%20stroke='%232856b5'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M41%2035L45%2031L55%2031L51%2035Z'%20fill='%237594d5'/%3e%3cpath%20d='M51%2035L55%2031L55%2041L51%2045Z'%20fill='%231d4086'/%3e%3crect%20x='41'%20y='35'%20width='10'%20height='10'%20fill='%232a5bbf'%20stroke='%232856b5'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M71%2035L75%2031L85%2031L81%2035Z'%20fill='%238db0eb'/%3e%3cpath%20d='M81%2035L85%2031L85%2041L81%2045Z'%20fill='%23375e9d'/%3e%3crect%20x='71'%20y='35'%20width='10'%20height='10'%20fill='%234f86e0'%20stroke='%234b7fd5'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M21%2025L25%2021L25%2031L21%2035Z'%20fill='%23375e9d'/%3e%3crect%20x='11'%20y='25'%20width='10'%20height='10'%20fill='%234f86e0'%20stroke='%234b7fd5'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M71%2025L75%2021L75%2031L71%2035Z'%20fill='%23375e9d'/%3e%3crect%20x='61'%20y='25'%20width='10'%20height='10'%20fill='%234f86e0'%20stroke='%234b7fd5'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M21%2015L25%2011L25%2021L21%2025Z'%20fill='%23375e9d'/%3e%3crect%20x='11'%20y='15'%20width='10'%20height='10'%20fill='%234f86e0'%20stroke='%234b7fd5'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M71%2015L75%2011L75%2021L71%2025Z'%20fill='%23375e9d'/%3e%3crect%20x='61'%20y='15'%20width='10'%20height='10'%20fill='%234f86e0'%20stroke='%234b7fd5'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%205L15%201L25%201L21%205Z'%20fill='%238db0eb'/%3e%3crect%20x='11'%20y='5'%20width='10'%20height='10'%20fill='%234f86e0'%20stroke='%234b7fd5'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M21%205L25%201L35%201L31%205Z'%20fill='%238db0eb'/%3e%3cpath%20d='M31%205L35%201L35%2011L31%2015Z'%20fill='%23375e9d'/%3e%3crect%20x='21'%20y='5'%20width='10'%20height='10'%20fill='%234f86e0'%20stroke='%234b7fd5'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%205L55%201L65%201L61%205Z'%20fill='%238db0eb'/%3e%3crect%20x='51'%20y='5'%20width='10'%20height='10'%20fill='%234f86e0'%20stroke='%234b7fd5'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M61%205L65%201L75%201L71%205Z'%20fill='%238db0eb'/%3e%3cpath%20d='M71%205L75%201L75%2011L71%2015Z'%20fill='%23375e9d'/%3e%3crect%20x='61'%20y='5'%20width='10'%20height='10'%20fill='%234f86e0'%20stroke='%234b7fd5'%20stroke-width='.25'/%3e%3c/g%3e%3c/svg%3e`,zl=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2086%2066'%20width='172'%20height='132'%20role='img'%20aria-label='browser%20agent'%3e%3cg%3e%3crect%20x='1'%20y='55'%20width='10'%20height='10'%20fill='%23c8dcf5'%20stroke='%23bed1e9'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2055L15%2051L25%2051L21%2055Z'%20fill='%23dbe8f8'/%3e%3crect%20x='11'%20y='55'%20width='10'%20height='10'%20fill='%23c8dcf5'%20stroke='%23bed1e9'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M21%2055L25%2051L35%2051L31%2055Z'%20fill='%23dbe8f8'/%3e%3crect%20x='21'%20y='55'%20width='10'%20height='10'%20fill='%23c8dcf5'%20stroke='%23bed1e9'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M31%2055L35%2051L45%2051L41%2055Z'%20fill='%23dbe8f8'/%3e%3crect%20x='31'%20y='55'%20width='10'%20height='10'%20fill='%23c8dcf5'%20stroke='%23bed1e9'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M41%2055L45%2051L55%2051L51%2055Z'%20fill='%23dbe8f8'/%3e%3crect%20x='41'%20y='55'%20width='10'%20height='10'%20fill='%23c8dcf5'%20stroke='%23bed1e9'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%2055L55%2051L65%2051L61%2055Z'%20fill='%23dbe8f8'/%3e%3crect%20x='51'%20y='55'%20width='10'%20height='10'%20fill='%23c8dcf5'%20stroke='%23bed1e9'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M61%2055L65%2051L75%2051L71%2055Z'%20fill='%23dbe8f8'/%3e%3crect%20x='61'%20y='55'%20width='10'%20height='10'%20fill='%23c8dcf5'%20stroke='%23bed1e9'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M81%2055L85%2051L85%2061L81%2065Z'%20fill='%238c9aac'/%3e%3crect%20x='71'%20y='55'%20width='10'%20height='10'%20fill='%23c8dcf5'%20stroke='%23bed1e9'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2045L15%2041L15%2051L11%2055Z'%20fill='%238c9aac'/%3e%3crect%20x='1'%20y='45'%20width='10'%20height='10'%20fill='%23c8dcf5'%20stroke='%23bed1e9'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M81%2045L85%2041L85%2051L81%2055Z'%20fill='%238c9aac'/%3e%3crect%20x='71'%20y='45'%20width='10'%20height='10'%20fill='%23c8dcf5'%20stroke='%23bed1e9'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2035L15%2031L15%2041L11%2045Z'%20fill='%238c9aac'/%3e%3crect%20x='1'%20y='35'%20width='10'%20height='10'%20fill='%23c8dcf5'%20stroke='%23bed1e9'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M81%2035L85%2031L85%2041L81%2045Z'%20fill='%238c9aac'/%3e%3crect%20x='71'%20y='35'%20width='10'%20height='10'%20fill='%23c8dcf5'%20stroke='%23bed1e9'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2025L15%2021L15%2031L11%2035Z'%20fill='%238c9aac'/%3e%3crect%20x='1'%20y='25'%20width='10'%20height='10'%20fill='%23c8dcf5'%20stroke='%23bed1e9'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M81%2025L85%2021L85%2031L81%2035Z'%20fill='%238c9aac'/%3e%3crect%20x='71'%20y='25'%20width='10'%20height='10'%20fill='%23c8dcf5'%20stroke='%23bed1e9'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2015L15%2011L15%2021L11%2025Z'%20fill='%238c9aac'/%3e%3crect%20x='1'%20y='15'%20width='10'%20height='10'%20fill='%23c8dcf5'%20stroke='%23bed1e9'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M81%2015L85%2011L85%2021L81%2025Z'%20fill='%238c9aac'/%3e%3crect%20x='71'%20y='15'%20width='10'%20height='10'%20fill='%23c8dcf5'%20stroke='%23bed1e9'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M1%205L5%201L15%201L11%205Z'%20fill='%23a1c5f0'/%3e%3crect%20x='1'%20y='5'%20width='10'%20height='10'%20fill='%236fa6e8'%20stroke='%23699edc'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%205L15%201L25%201L21%205Z'%20fill='%23a1c5f0'/%3e%3crect%20x='11'%20y='5'%20width='10'%20height='10'%20fill='%236fa6e8'%20stroke='%23699edc'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M21%205L25%201L35%201L31%205Z'%20fill='%23a1c5f0'/%3e%3crect%20x='21'%20y='5'%20width='10'%20height='10'%20fill='%236fa6e8'%20stroke='%23699edc'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M31%205L35%201L45%201L41%205Z'%20fill='%23a1c5f0'/%3e%3crect%20x='31'%20y='5'%20width='10'%20height='10'%20fill='%236fa6e8'%20stroke='%23699edc'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M41%205L45%201L55%201L51%205Z'%20fill='%23a1c5f0'/%3e%3crect%20x='41'%20y='5'%20width='10'%20height='10'%20fill='%236fa6e8'%20stroke='%23699edc'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%205L55%201L65%201L61%205Z'%20fill='%23a1c5f0'/%3e%3crect%20x='51'%20y='5'%20width='10'%20height='10'%20fill='%236fa6e8'%20stroke='%23699edc'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M61%205L65%201L75%201L71%205Z'%20fill='%23a1c5f0'/%3e%3crect%20x='61'%20y='5'%20width='10'%20height='10'%20fill='%236fa6e8'%20stroke='%23699edc'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M71%205L75%201L85%201L81%205Z'%20fill='%23a1c5f0'/%3e%3cpath%20d='M81%205L85%201L85%2011L81%2015Z'%20fill='%234e74a2'/%3e%3crect%20x='71'%20y='5'%20width='10'%20height='10'%20fill='%236fa6e8'%20stroke='%23699edc'%20stroke-width='.25'/%3e%3c/g%3e%3c/svg%3e`,Bl=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2056%2076'%20width='112'%20height='152'%20role='img'%20aria-label='case'%3e%3cg%3e%3crect%20x='1'%20y='65'%20width='10'%20height='10'%20fill='%236fd6aa'%20stroke='%2369cba2'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2065L15%2061L25%2061L21%2065Z'%20fill='%23a1e4c8'/%3e%3crect%20x='11'%20y='65'%20width='10'%20height='10'%20fill='%236fd6aa'%20stroke='%2369cba2'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M21%2065L25%2061L35%2061L31%2065Z'%20fill='%23a1e4c8'/%3e%3crect%20x='21'%20y='65'%20width='10'%20height='10'%20fill='%236fd6aa'%20stroke='%2369cba2'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M31%2065L35%2061L45%2061L41%2065Z'%20fill='%23a1e4c8'/%3e%3crect%20x='31'%20y='65'%20width='10'%20height='10'%20fill='%236fd6aa'%20stroke='%2369cba2'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%2065L55%2061L55%2071L51%2075Z'%20fill='%234e9677'/%3e%3crect%20x='41'%20y='65'%20width='10'%20height='10'%20fill='%236fd6aa'%20stroke='%2369cba2'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2055L15%2051L15%2061L11%2065Z'%20fill='%234e9677'/%3e%3crect%20x='1'%20y='55'%20width='10'%20height='10'%20fill='%236fd6aa'%20stroke='%2369cba2'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%2055L55%2051L55%2061L51%2065Z'%20fill='%234e9677'/%3e%3crect%20x='41'%20y='55'%20width='10'%20height='10'%20fill='%236fd6aa'%20stroke='%2369cba2'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2045L15%2041L15%2051L11%2055Z'%20fill='%234e9677'/%3e%3crect%20x='1'%20y='45'%20width='10'%20height='10'%20fill='%236fd6aa'%20stroke='%2369cba2'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%2045L55%2041L55%2051L51%2055Z'%20fill='%234e9677'/%3e%3crect%20x='41'%20y='45'%20width='10'%20height='10'%20fill='%236fd6aa'%20stroke='%2369cba2'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2035L15%2031L15%2041L11%2045Z'%20fill='%234e9677'/%3e%3crect%20x='1'%20y='35'%20width='10'%20height='10'%20fill='%236fd6aa'%20stroke='%2369cba2'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M21%2035L25%2031L35%2031L31%2035Z'%20fill='%23a1e4c8'/%3e%3cpath%20d='M31%2035L35%2031L35%2041L31%2045Z'%20fill='%234e9677'/%3e%3crect%20x='21'%20y='35'%20width='10'%20height='10'%20fill='%236fd6aa'%20stroke='%2369cba2'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%2035L55%2031L55%2041L51%2045Z'%20fill='%234e9677'/%3e%3crect%20x='41'%20y='35'%20width='10'%20height='10'%20fill='%236fd6aa'%20stroke='%2369cba2'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2025L15%2021L15%2031L11%2035Z'%20fill='%234e9677'/%3e%3crect%20x='1'%20y='25'%20width='10'%20height='10'%20fill='%236fd6aa'%20stroke='%2369cba2'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%2025L55%2021L55%2031L51%2035Z'%20fill='%234e9677'/%3e%3crect%20x='41'%20y='25'%20width='10'%20height='10'%20fill='%236fd6aa'%20stroke='%2369cba2'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2015L15%2011L15%2021L11%2025Z'%20fill='%234e9677'/%3e%3crect%20x='1'%20y='15'%20width='10'%20height='10'%20fill='%236fd6aa'%20stroke='%2369cba2'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%2015L55%2011L55%2021L51%2025Z'%20fill='%234e9677'/%3e%3crect%20x='41'%20y='15'%20width='10'%20height='10'%20fill='%236fd6aa'%20stroke='%2369cba2'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M1%205L5%201L15%201L11%205Z'%20fill='%23a1e4c8'/%3e%3crect%20x='1'%20y='5'%20width='10'%20height='10'%20fill='%236fd6aa'%20stroke='%2369cba2'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%205L15%201L25%201L21%205Z'%20fill='%2378bda3'/%3e%3crect%20x='11'%20y='5'%20width='10'%20height='10'%20fill='%232f9a72'%20stroke='%232d926c'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M21%205L25%201L35%201L31%205Z'%20fill='%2378bda3'/%3e%3crect%20x='21'%20y='5'%20width='10'%20height='10'%20fill='%232f9a72'%20stroke='%232d926c'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M31%205L35%201L45%201L41%205Z'%20fill='%2378bda3'/%3e%3crect%20x='31'%20y='5'%20width='10'%20height='10'%20fill='%232f9a72'%20stroke='%232d926c'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M41%205L45%201L55%201L51%205Z'%20fill='%23a1e4c8'/%3e%3cpath%20d='M51%205L55%201L55%2011L51%2015Z'%20fill='%234e9677'/%3e%3crect%20x='41'%20y='5'%20width='10'%20height='10'%20fill='%236fd6aa'%20stroke='%2369cba2'%20stroke-width='.25'/%3e%3c/g%3e%3c/svg%3e`,Vl=`/assets/context-engine-BIWf1ZIT.svg`,Hl=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2066%2076'%20width='132'%20height='152'%20role='img'%20aria-label='explorer'%3e%3cg%3e%3cpath%20d='M11%2065L15%2061L15%2071L11%2075Z'%20fill='%23ac7597'/%3e%3crect%20x='1'%20y='65'%20width='10'%20height='10'%20fill='%23f6a7d8'%20stroke='%23ea9fcd'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2055L15%2051L15%2061L11%2065Z'%20fill='%23ac7597'/%3e%3crect%20x='1'%20y='55'%20width='10'%20height='10'%20fill='%23f6a7d8'%20stroke='%23ea9fcd'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2045L15%2041L15%2051L11%2055Z'%20fill='%23ac7597'/%3e%3crect%20x='1'%20y='45'%20width='10'%20height='10'%20fill='%23f6a7d8'%20stroke='%23ea9fcd'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2035L15%2031L15%2041L11%2045Z'%20fill='%23ac7597'/%3e%3crect%20x='1'%20y='35'%20width='10'%20height='10'%20fill='%23f6a7d8'%20stroke='%23ea9fcd'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='1'%20y='25'%20width='10'%20height='10'%20fill='%23f6a7d8'%20stroke='%23ea9fcd'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='11'%20y='25'%20width='10'%20height='10'%20fill='%23c8399a'%20stroke='%23be3692'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='21'%20y='25'%20width='10'%20height='10'%20fill='%23c8399a'%20stroke='%23be3692'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M41%2025L45%2021L45%2031L41%2035Z'%20fill='%238c286c'/%3e%3crect%20x='31'%20y='25'%20width='10'%20height='10'%20fill='%23c8399a'%20stroke='%23be3692'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='1'%20y='15'%20width='10'%20height='10'%20fill='%23f6a7d8'%20stroke='%23ea9fcd'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='11'%20y='15'%20width='10'%20height='10'%20fill='%23c8399a'%20stroke='%23be3692'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='21'%20y='15'%20width='10'%20height='10'%20fill='%23c8399a'%20stroke='%23be3692'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='31'%20y='15'%20width='10'%20height='10'%20fill='%23c8399a'%20stroke='%23be3692'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='41'%20y='15'%20width='10'%20height='10'%20fill='%23c8399a'%20stroke='%23be3692'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M61%2015L65%2011L65%2021L61%2025Z'%20fill='%238c286c'/%3e%3crect%20x='51'%20y='15'%20width='10'%20height='10'%20fill='%23c8399a'%20stroke='%23be3692'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M1%205L5%201L15%201L11%205Z'%20fill='%23f9c6e6'/%3e%3crect%20x='1'%20y='5'%20width='10'%20height='10'%20fill='%23f6a7d8'%20stroke='%23ea9fcd'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%205L15%201L25%201L21%205Z'%20fill='%23db7ebd'/%3e%3crect%20x='11'%20y='5'%20width='10'%20height='10'%20fill='%23c8399a'%20stroke='%23be3692'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M21%205L25%201L35%201L31%205Z'%20fill='%23db7ebd'/%3e%3crect%20x='21'%20y='5'%20width='10'%20height='10'%20fill='%23c8399a'%20stroke='%23be3692'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M31%205L35%201L45%201L41%205Z'%20fill='%23db7ebd'/%3e%3crect%20x='31'%20y='5'%20width='10'%20height='10'%20fill='%23c8399a'%20stroke='%23be3692'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M41%205L45%201L55%201L51%205Z'%20fill='%23db7ebd'/%3e%3crect%20x='41'%20y='5'%20width='10'%20height='10'%20fill='%23c8399a'%20stroke='%23be3692'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%205L55%201L65%201L61%205Z'%20fill='%23db7ebd'/%3e%3cpath%20d='M61%205L65%201L65%2011L61%2015Z'%20fill='%238c286c'/%3e%3crect%20x='51'%20y='5'%20width='10'%20height='10'%20fill='%23c8399a'%20stroke='%23be3692'%20stroke-width='.25'/%3e%3c/g%3e%3c/svg%3e`,Ul=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2066%2076'%20width='132'%20height='152'%20role='img'%20aria-label='healer'%3e%3cg%3e%3crect%20x='21'%20y='65'%20width='10'%20height='10'%20fill='%23cde67a'%20stroke='%23c3da74'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M41%2065L45%2061L45%2071L41%2075Z'%20fill='%2390a155'/%3e%3crect%20x='31'%20y='65'%20width='10'%20height='10'%20fill='%23cde67a'%20stroke='%23c3da74'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='21'%20y='55'%20width='10'%20height='10'%20fill='%23cde67a'%20stroke='%23c3da74'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M41%2055L45%2051L45%2061L41%2065Z'%20fill='%2390a155'/%3e%3crect%20x='31'%20y='55'%20width='10'%20height='10'%20fill='%23cde67a'%20stroke='%23c3da74'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='21'%20y='45'%20width='10'%20height='10'%20fill='%2386b02b'%20stroke='%237fa729'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M41%2045L45%2041L45%2051L41%2055Z'%20fill='%235e7b1e'/%3e%3crect%20x='31'%20y='45'%20width='10'%20height='10'%20fill='%2386b02b'%20stroke='%237fa729'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='1'%20y='35'%20width='10'%20height='10'%20fill='%23cde67a'%20stroke='%23c3da74'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='11'%20y='35'%20width='10'%20height='10'%20fill='%23cde67a'%20stroke='%23c3da74'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='21'%20y='35'%20width='10'%20height='10'%20fill='%2386b02b'%20stroke='%237fa729'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='31'%20y='35'%20width='10'%20height='10'%20fill='%2386b02b'%20stroke='%237fa729'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='41'%20y='35'%20width='10'%20height='10'%20fill='%23cde67a'%20stroke='%23c3da74'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M61%2035L65%2031L65%2041L61%2045Z'%20fill='%2390a155'/%3e%3crect%20x='51'%20y='35'%20width='10'%20height='10'%20fill='%23cde67a'%20stroke='%23c3da74'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M1%2025L5%2021L15%2021L11%2025Z'%20fill='%23deefa9'/%3e%3crect%20x='1'%20y='25'%20width='10'%20height='10'%20fill='%23cde67a'%20stroke='%23c3da74'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2025L15%2021L25%2021L21%2025Z'%20fill='%23deefa9'/%3e%3crect%20x='11'%20y='25'%20width='10'%20height='10'%20fill='%23cde67a'%20stroke='%23c3da74'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='21'%20y='25'%20width='10'%20height='10'%20fill='%2386b02b'%20stroke='%237fa729'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='31'%20y='25'%20width='10'%20height='10'%20fill='%2386b02b'%20stroke='%237fa729'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M41%2025L45%2021L55%2021L51%2025Z'%20fill='%23deefa9'/%3e%3crect%20x='41'%20y='25'%20width='10'%20height='10'%20fill='%23cde67a'%20stroke='%23c3da74'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%2025L55%2021L65%2021L61%2025Z'%20fill='%23deefa9'/%3e%3cpath%20d='M61%2025L65%2021L65%2031L61%2035Z'%20fill='%2390a155'/%3e%3crect%20x='51'%20y='25'%20width='10'%20height='10'%20fill='%23cde67a'%20stroke='%23c3da74'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='21'%20y='15'%20width='10'%20height='10'%20fill='%2386b02b'%20stroke='%237fa729'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M41%2015L45%2011L45%2021L41%2025Z'%20fill='%235e7b1e'/%3e%3crect%20x='31'%20y='15'%20width='10'%20height='10'%20fill='%2386b02b'%20stroke='%237fa729'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M21%205L25%201L35%201L31%205Z'%20fill='%23deefa9'/%3e%3crect%20x='21'%20y='5'%20width='10'%20height='10'%20fill='%23cde67a'%20stroke='%23c3da74'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M31%205L35%201L45%201L41%205Z'%20fill='%23deefa9'/%3e%3cpath%20d='M41%205L45%201L45%2011L41%2015Z'%20fill='%2390a155'/%3e%3crect%20x='31'%20y='5'%20width='10'%20height='10'%20fill='%23cde67a'%20stroke='%23c3da74'%20stroke-width='.25'/%3e%3c/g%3e%3c/svg%3e`,Wl=`/assets/knowledge-base-CMsi5KtZ.svg`,Gl=`/assets/model-CGrmjuJz.svg`,Kl=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2086%2066'%20width='172'%20height='132'%20role='img'%20aria-label='orchestrator'%3e%3cg%3e%3crect%20x='11'%20y='55'%20width='10'%20height='10'%20fill='%23a98bf3'%20stroke='%23a184e7'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M31%2055L35%2051L35%2061L31%2065Z'%20fill='%237661aa'/%3e%3crect%20x='21'%20y='55'%20width='10'%20height='10'%20fill='%23a98bf3'%20stroke='%23a184e7'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='51'%20y='55'%20width='10'%20height='10'%20fill='%23a98bf3'%20stroke='%23a184e7'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M71%2055L75%2051L75%2061L71%2065Z'%20fill='%237661aa'/%3e%3crect%20x='61'%20y='55'%20width='10'%20height='10'%20fill='%23a98bf3'%20stroke='%23a184e7'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='11'%20y='45'%20width='10'%20height='10'%20fill='%23a98bf3'%20stroke='%23a184e7'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M31%2045L35%2041L35%2051L31%2055Z'%20fill='%237661aa'/%3e%3crect%20x='21'%20y='45'%20width='10'%20height='10'%20fill='%23a98bf3'%20stroke='%23a184e7'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='51'%20y='45'%20width='10'%20height='10'%20fill='%23a98bf3'%20stroke='%23a184e7'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M71%2045L75%2041L75%2051L71%2055Z'%20fill='%237661aa'/%3e%3crect%20x='61'%20y='45'%20width='10'%20height='10'%20fill='%23a98bf3'%20stroke='%23a184e7'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M1%2035L5%2031L15%2031L11%2035Z'%20fill='%23c7b4f7'/%3e%3crect%20x='1'%20y='35'%20width='10'%20height='10'%20fill='%23a98bf3'%20stroke='%23a184e7'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='11'%20y='35'%20width='10'%20height='10'%20fill='%23a98bf3'%20stroke='%23a184e7'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='21'%20y='35'%20width='10'%20height='10'%20fill='%236a3fd6'%20stroke='%23653ccb'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='31'%20y='35'%20width='10'%20height='10'%20fill='%236a3fd6'%20stroke='%23653ccb'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='41'%20y='35'%20width='10'%20height='10'%20fill='%236a3fd6'%20stroke='%23653ccb'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='51'%20y='35'%20width='10'%20height='10'%20fill='%236a3fd6'%20stroke='%23653ccb'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='61'%20y='35'%20width='10'%20height='10'%20fill='%23a98bf3'%20stroke='%23a184e7'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M71%2035L75%2031L85%2031L81%2035Z'%20fill='%23c7b4f7'/%3e%3cpath%20d='M81%2035L85%2031L85%2041L81%2045Z'%20fill='%237661aa'/%3e%3crect%20x='71'%20y='35'%20width='10'%20height='10'%20fill='%23a98bf3'%20stroke='%23a184e7'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2025L15%2021L25%2021L21%2025Z'%20fill='%23c7b4f7'/%3e%3crect%20x='11'%20y='25'%20width='10'%20height='10'%20fill='%23a98bf3'%20stroke='%23a184e7'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='21'%20y='25'%20width='10'%20height='10'%20fill='%23a98bf3'%20stroke='%23a184e7'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='31'%20y='25'%20width='10'%20height='10'%20fill='%236a3fd6'%20stroke='%23653ccb'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='41'%20y='25'%20width='10'%20height='10'%20fill='%236a3fd6'%20stroke='%23653ccb'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='51'%20y='25'%20width='10'%20height='10'%20fill='%23a98bf3'%20stroke='%23a184e7'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M61%2025L65%2021L75%2021L71%2025Z'%20fill='%23c7b4f7'/%3e%3cpath%20d='M71%2025L75%2021L75%2031L71%2035Z'%20fill='%237661aa'/%3e%3crect%20x='61'%20y='25'%20width='10'%20height='10'%20fill='%23a98bf3'%20stroke='%23a184e7'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M21%2015L25%2011L35%2011L31%2015Z'%20fill='%23c7b4f7'/%3e%3crect%20x='21'%20y='15'%20width='10'%20height='10'%20fill='%23a98bf3'%20stroke='%23a184e7'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='31'%20y='15'%20width='10'%20height='10'%20fill='%23a98bf3'%20stroke='%23a184e7'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='41'%20y='15'%20width='10'%20height='10'%20fill='%23a98bf3'%20stroke='%23a184e7'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%2015L55%2011L65%2011L61%2015Z'%20fill='%23c7b4f7'/%3e%3cpath%20d='M61%2015L65%2011L65%2021L61%2025Z'%20fill='%237661aa'/%3e%3crect%20x='51'%20y='15'%20width='10'%20height='10'%20fill='%23a98bf3'%20stroke='%23a184e7'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M31%205L35%201L45%201L41%205Z'%20fill='%23c7b4f7'/%3e%3crect%20x='31'%20y='5'%20width='10'%20height='10'%20fill='%23a98bf3'%20stroke='%23a184e7'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M41%205L45%201L55%201L51%205Z'%20fill='%23c7b4f7'/%3e%3cpath%20d='M51%205L55%201L55%2011L51%2015Z'%20fill='%237661aa'/%3e%3crect%20x='41'%20y='5'%20width='10'%20height='10'%20fill='%23a98bf3'%20stroke='%23a184e7'%20stroke-width='.25'/%3e%3c/g%3e%3c/svg%3e`,ql=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2096%2056'%20width='192'%20height='112'%20role='img'%20aria-label='pr%20reviewer'%3e%3cg%3e%3cpath%20d='M21%2045L25%2041L25%2051L21%2055Z'%20fill='%2396575f'/%3e%3crect%20x='11'%20y='45'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='11'%20y='35'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M31%2035L35%2031L35%2041L31%2045Z'%20fill='%2396575f'/%3e%3crect%20x='21'%20y='35'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='1'%20y='25'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='11'%20y='25'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='21'%20y='25'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='31'%20y='25'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='41'%20y='25'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='51'%20y='25'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='61'%20y='25'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='71'%20y='25'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M91%2025L95%2021L95%2031L91%2035Z'%20fill='%2396575f'/%3e%3crect%20x='81'%20y='25'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='1'%20y='15'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='11'%20y='15'%20width='10'%20height='10'%20fill='%23b0223f'%20stroke='%23a7203c'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='21'%20y='15'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='31'%20y='15'%20width='10'%20height='10'%20fill='%23b0223f'%20stroke='%23a7203c'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='41'%20y='15'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='51'%20y='15'%20width='10'%20height='10'%20fill='%23b0223f'%20stroke='%23a7203c'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='61'%20y='15'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='71'%20y='15'%20width='10'%20height='10'%20fill='%23b0223f'%20stroke='%23a7203c'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M91%2015L95%2011L95%2021L91%2025Z'%20fill='%2396575f'/%3e%3crect%20x='81'%20y='15'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M1%205L5%201L15%201L11%205Z'%20fill='%23e5aab2'/%3e%3crect%20x='1'%20y='5'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%205L15%201L25%201L21%205Z'%20fill='%23e5aab2'/%3e%3crect%20x='11'%20y='5'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M21%205L25%201L35%201L31%205Z'%20fill='%23e5aab2'/%3e%3crect%20x='21'%20y='5'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M31%205L35%201L45%201L41%205Z'%20fill='%23e5aab2'/%3e%3crect%20x='31'%20y='5'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M41%205L45%201L55%201L51%205Z'%20fill='%23e5aab2'/%3e%3crect%20x='41'%20y='5'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%205L55%201L65%201L61%205Z'%20fill='%23e5aab2'/%3e%3crect%20x='51'%20y='5'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M61%205L65%201L75%201L71%205Z'%20fill='%23e5aab2'/%3e%3crect%20x='61'%20y='5'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M71%205L75%201L85%201L81%205Z'%20fill='%23e5aab2'/%3e%3crect%20x='71'%20y='5'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M81%205L85%201L95%201L91%205Z'%20fill='%23e5aab2'/%3e%3cpath%20d='M91%205L95%201L95%2011L91%2015Z'%20fill='%2396575f'/%3e%3crect%20x='81'%20y='5'%20width='10'%20height='10'%20fill='%23d77c88'%20stroke='%23cc7681'%20stroke-width='.25'/%3e%3c/g%3e%3c/svg%3e`,Jl=`/assets/report-mkgMJOFK.svg`,Yl=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2096%2056'%20width='192'%20height='112'%20role='img'%20aria-label='result'%3e%3cg%3e%3crect%20x='21'%20y='45'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M31%2045L35%2041L45%2041L41%2045Z'%20fill='%2394d1b9'/%3e%3crect%20x='31'%20y='45'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%2045L55%2041L55%2051L51%2055Z'%20fill='%23408168'/%3e%3crect%20x='41'%20y='45'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='11'%20y='35'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M21%2035L25%2031L35%2031L31%2035Z'%20fill='%2394d1b9'/%3e%3cpath%20d='M31%2035L35%2031L35%2041L31%2045Z'%20fill='%23408168'/%3e%3crect%20x='21'%20y='35'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M41%2035L45%2031L55%2031L51%2035Z'%20fill='%2394d1b9'/%3e%3crect%20x='41'%20y='35'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M61%2035L65%2031L65%2041L61%2045Z'%20fill='%23408168'/%3e%3crect%20x='51'%20y='35'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M1%2025L5%2021L15%2021L11%2025Z'%20fill='%2394d1b9'/%3e%3crect%20x='1'%20y='25'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2025L15%2021L25%2021L21%2025Z'%20fill='%2394d1b9'/%3e%3cpath%20d='M21%2025L25%2021L25%2031L21%2035Z'%20fill='%23408168'/%3e%3crect%20x='11'%20y='25'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%2025L55%2021L65%2021L61%2025Z'%20fill='%2394d1b9'/%3e%3crect%20x='51'%20y='25'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M71%2025L75%2021L75%2031L71%2035Z'%20fill='%23408168'/%3e%3crect%20x='61'%20y='25'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M61%2015L65%2011L75%2011L71%2015Z'%20fill='%2394d1b9'/%3e%3crect%20x='61'%20y='15'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M81%2015L85%2011L85%2021L81%2025Z'%20fill='%23408168'/%3e%3crect%20x='71'%20y='15'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M71%205L75%201L85%201L81%205Z'%20fill='%2394d1b9'/%3e%3crect%20x='71'%20y='5'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M81%205L85%201L95%201L91%205Z'%20fill='%2394d1b9'/%3e%3cpath%20d='M91%205L95%201L95%2011L91%2015Z'%20fill='%23408168'/%3e%3crect%20x='81'%20y='5'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3c/svg%3e`,Xl=`/assets/rule-DycAnn4u.svg`,Zl=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20116%2056'%20width='232'%20height='112'%20role='img'%20aria-label='scribe'%3e%3cg%3e%3cpath%20d='M21%2045L25%2041L35%2041L31%2045Z'%20fill='%2394d1b9'/%3e%3cpath%20d='M31%2045L35%2041L35%2051L31%2055Z'%20fill='%23408168'/%3e%3crect%20x='21'%20y='45'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%2045L55%2041L55%2051L51%2055Z'%20fill='%2321614b'/%3e%3crect%20x='41'%20y='45'%20width='10'%20height='10'%20fill='%232f8a6b'%20stroke='%232d8366'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M81%2045L85%2041L95%2041L91%2045Z'%20fill='%2394d1b9'/%3e%3cpath%20d='M91%2045L95%2041L95%2051L91%2055Z'%20fill='%23408168'/%3e%3crect%20x='81'%20y='45'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2035L15%2031L25%2031L21%2035Z'%20fill='%2394d1b9'/%3e%3cpath%20d='M21%2035L25%2031L25%2041L21%2045Z'%20fill='%23408168'/%3e%3crect%20x='11'%20y='35'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M41%2035L45%2031L55%2031L51%2035Z'%20fill='%2378b39f'/%3e%3cpath%20d='M51%2035L55%2031L55%2041L51%2045Z'%20fill='%2321614b'/%3e%3crect%20x='41'%20y='35'%20width='10'%20height='10'%20fill='%232f8a6b'%20stroke='%232d8366'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M91%2035L95%2031L105%2031L101%2035Z'%20fill='%2394d1b9'/%3e%3cpath%20d='M101%2035L105%2031L105%2041L101%2045Z'%20fill='%23408168'/%3e%3crect%20x='91'%20y='35'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M1%2025L5%2021L15%2021L11%2025Z'%20fill='%2394d1b9'/%3e%3cpath%20d='M11%2025L15%2021L15%2031L11%2035Z'%20fill='%23408168'/%3e%3crect%20x='1'%20y='25'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M61%2025L65%2021L65%2031L61%2035Z'%20fill='%2321614b'/%3e%3crect%20x='51'%20y='25'%20width='10'%20height='10'%20fill='%232f8a6b'%20stroke='%232d8366'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M101%2025L105%2021L115%2021L111%2025Z'%20fill='%2394d1b9'/%3e%3cpath%20d='M111%2025L115%2021L115%2031L111%2035Z'%20fill='%23408168'/%3e%3crect%20x='101'%20y='25'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2015L15%2011L25%2011L21%2015Z'%20fill='%2394d1b9'/%3e%3cpath%20d='M21%2015L25%2011L25%2021L21%2025Z'%20fill='%23408168'/%3e%3crect%20x='11'%20y='15'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%2015L55%2011L65%2011L61%2015Z'%20fill='%2378b39f'/%3e%3cpath%20d='M61%2015L65%2011L65%2021L61%2025Z'%20fill='%2321614b'/%3e%3crect%20x='51'%20y='15'%20width='10'%20height='10'%20fill='%232f8a6b'%20stroke='%232d8366'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M91%2015L95%2011L105%2011L101%2015Z'%20fill='%2394d1b9'/%3e%3cpath%20d='M101%2015L105%2011L105%2021L101%2025Z'%20fill='%23408168'/%3e%3crect%20x='91'%20y='15'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M21%205L25%201L35%201L31%205Z'%20fill='%2394d1b9'/%3e%3cpath%20d='M31%205L35%201L35%2011L31%2015Z'%20fill='%23408168'/%3e%3crect%20x='21'%20y='5'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M61%205L65%201L75%201L71%205Z'%20fill='%2378b39f'/%3e%3cpath%20d='M71%205L75%201L75%2011L71%2015Z'%20fill='%2321614b'/%3e%3crect%20x='61'%20y='5'%20width='10'%20height='10'%20fill='%232f8a6b'%20stroke='%232d8366'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M81%205L85%201L95%201L91%205Z'%20fill='%2394d1b9'/%3e%3cpath%20d='M91%205L95%201L95%2011L91%2015Z'%20fill='%23408168'/%3e%3crect%20x='81'%20y='5'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3c/svg%3e`,Ql=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2056%2076'%20width='112'%20height='152'%20role='img'%20aria-label='specs'%3e%3cg%3e%3crect%20x='1'%20y='65'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2065L15%2061L25%2061L21%2065Z'%20fill='%2394d1b9'/%3e%3crect%20x='11'%20y='65'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M21%2065L25%2061L35%2061L31%2065Z'%20fill='%2394d1b9'/%3e%3crect%20x='21'%20y='65'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M31%2065L35%2061L45%2061L41%2065Z'%20fill='%2394d1b9'/%3e%3crect%20x='31'%20y='65'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%2065L55%2061L55%2071L51%2075Z'%20fill='%23408168'/%3e%3crect%20x='41'%20y='65'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2055L15%2051L15%2061L11%2065Z'%20fill='%23408168'/%3e%3crect%20x='1'%20y='55'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%2055L55%2051L55%2061L51%2065Z'%20fill='%23408168'/%3e%3crect%20x='41'%20y='55'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2045L15%2041L15%2051L11%2055Z'%20fill='%23408168'/%3e%3crect%20x='1'%20y='45'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%2045L55%2041L55%2051L51%2055Z'%20fill='%23408168'/%3e%3crect%20x='41'%20y='45'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2035L15%2031L15%2041L11%2045Z'%20fill='%23408168'/%3e%3crect%20x='1'%20y='35'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M21%2035L25%2031L35%2031L31%2035Z'%20fill='%2394d1b9'/%3e%3cpath%20d='M31%2035L35%2031L35%2041L31%2045Z'%20fill='%23408168'/%3e%3crect%20x='21'%20y='35'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%2035L55%2031L55%2041L51%2045Z'%20fill='%23408168'/%3e%3crect%20x='41'%20y='35'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2025L15%2021L15%2031L11%2035Z'%20fill='%23408168'/%3e%3crect%20x='1'%20y='25'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%2025L55%2021L55%2031L51%2035Z'%20fill='%23408168'/%3e%3crect%20x='41'%20y='25'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%2015L15%2011L15%2021L11%2025Z'%20fill='%23408168'/%3e%3crect%20x='1'%20y='15'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%2015L55%2011L55%2021L51%2025Z'%20fill='%23408168'/%3e%3crect%20x='41'%20y='15'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M1%205L5%201L15%201L11%205Z'%20fill='%2394d1b9'/%3e%3crect%20x='1'%20y='5'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%205L15%201L25%201L21%205Z'%20fill='%2378b39f'/%3e%3crect%20x='11'%20y='5'%20width='10'%20height='10'%20fill='%232f8a6b'%20stroke='%232d8366'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M21%205L25%201L35%201L31%205Z'%20fill='%2378b39f'/%3e%3crect%20x='21'%20y='5'%20width='10'%20height='10'%20fill='%232f8a6b'%20stroke='%232d8366'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M31%205L35%201L45%201L41%205Z'%20fill='%2378b39f'/%3e%3crect%20x='31'%20y='5'%20width='10'%20height='10'%20fill='%232f8a6b'%20stroke='%232d8366'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M41%205L45%201L55%201L51%205Z'%20fill='%2394d1b9'/%3e%3cpath%20d='M51%205L55%201L55%2011L51%2015Z'%20fill='%23408168'/%3e%3crect%20x='41'%20y='5'%20width='10'%20height='10'%20fill='%235bb894'%20stroke='%2356af8d'%20stroke-width='.25'/%3e%3c/g%3e%3c/svg%3e`,$l=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2086%2066'%20width='172'%20height='132'%20role='img'%20aria-label='test%20finder'%3e%3cg%3e%3crect%20x='61'%20y='55'%20width='10'%20height='10'%20fill='%238fdcef'%20stroke='%2388d1e3'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M71%2055L75%2051L85%2051L81%2055Z'%20fill='%23b6e8f5'/%3e%3cpath%20d='M81%2055L85%2051L85%2061L81%2065Z'%20fill='%23649aa7'/%3e%3crect%20x='71'%20y='55'%20width='10'%20height='10'%20fill='%238fdcef'%20stroke='%2388d1e3'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M61%2045L65%2041L75%2041L71%2045Z'%20fill='%23b6e8f5'/%3e%3cpath%20d='M71%2045L75%2041L75%2051L71%2055Z'%20fill='%23649aa7'/%3e%3crect%20x='61'%20y='45'%20width='10'%20height='10'%20fill='%238fdcef'%20stroke='%2388d1e3'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='11'%20y='35'%20width='10'%20height='10'%20fill='%238fdcef'%20stroke='%2388d1e3'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='21'%20y='35'%20width='10'%20height='10'%20fill='%238fdcef'%20stroke='%2388d1e3'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M41%2035L45%2031L45%2041L41%2045Z'%20fill='%23649aa7'/%3e%3crect%20x='31'%20y='35'%20width='10'%20height='10'%20fill='%238fdcef'%20stroke='%2388d1e3'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%2035L55%2031L65%2031L61%2035Z'%20fill='%23b6e8f5'/%3e%3cpath%20d='M61%2035L65%2031L65%2041L61%2045Z'%20fill='%23649aa7'/%3e%3crect%20x='51'%20y='35'%20width='10'%20height='10'%20fill='%238fdcef'%20stroke='%2388d1e3'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='1'%20y='25'%20width='10'%20height='10'%20fill='%238fdcef'%20stroke='%2388d1e3'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='11'%20y='25'%20width='10'%20height='10'%20fill='%231f9fc0'%20stroke='%231d97b6'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='21'%20y='25'%20width='10'%20height='10'%20fill='%231f9fc0'%20stroke='%231d97b6'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='31'%20y='25'%20width='10'%20height='10'%20fill='%231f9fc0'%20stroke='%231d97b6'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M51%2025L55%2021L55%2031L51%2035Z'%20fill='%23649aa7'/%3e%3crect%20x='41'%20y='25'%20width='10'%20height='10'%20fill='%238fdcef'%20stroke='%2388d1e3'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M1%2015L5%2011L15%2011L11%2015Z'%20fill='%23b6e8f5'/%3e%3crect%20x='1'%20y='15'%20width='10'%20height='10'%20fill='%238fdcef'%20stroke='%2388d1e3'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='11'%20y='15'%20width='10'%20height='10'%20fill='%231f9fc0'%20stroke='%231d97b6'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='21'%20y='15'%20width='10'%20height='10'%20fill='%231f9fc0'%20stroke='%231d97b6'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3crect%20x='31'%20y='15'%20width='10'%20height='10'%20fill='%231f9fc0'%20stroke='%231d97b6'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M41%2015L45%2011L55%2011L51%2015Z'%20fill='%23b6e8f5'/%3e%3cpath%20d='M51%2015L55%2011L55%2021L51%2025Z'%20fill='%23649aa7'/%3e%3crect%20x='41'%20y='15'%20width='10'%20height='10'%20fill='%238fdcef'%20stroke='%2388d1e3'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11%205L15%201L25%201L21%205Z'%20fill='%23b6e8f5'/%3e%3crect%20x='11'%20y='5'%20width='10'%20height='10'%20fill='%238fdcef'%20stroke='%2388d1e3'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M21%205L25%201L35%201L31%205Z'%20fill='%23b6e8f5'/%3e%3crect%20x='21'%20y='5'%20width='10'%20height='10'%20fill='%238fdcef'%20stroke='%2388d1e3'%20stroke-width='.25'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M31%205L35%201L45%201L41%205Z'%20fill='%23b6e8f5'/%3e%3cpath%20d='M41%205L45%201L45%2011L41%2015Z'%20fill='%23649aa7'/%3e%3crect%20x='31'%20y='5'%20width='10'%20height='10'%20fill='%238fdcef'%20stroke='%2388d1e3'%20stroke-width='.25'/%3e%3c/g%3e%3c/svg%3e`,eu=`/assets/trace-YEplLreO.svg`,tu=`forgeqe`,nu={forgeqe:{name:`Orchestrator`,icon:`orchestrator`,hue:`#a78bfa`},"forgeqe-refine":{name:`Refine`,icon:`specs`,hue:`#8fa2ff`},"forgeqe-api-plan":{name:`API planner`,icon:`api`,hue:`#e0a3f5`},"forgeqe-explore-plan":{name:`Explorer`,icon:`explorer`,hue:`#f59fe0`},"forgeqe-test-plan":{name:`Test planner`,icon:`case`,hue:`#c9b3ff`},engine:{name:`Browser agent`,icon:`browser-agent`,hue:`#5ea6f0`},"forgeqe-find":{name:`Test finder`,icon:`test-finder`,hue:`#1fa3c4`},"forgeqe-bi":{name:`Insights`,icon:`report`,hue:`#b8a32a`},"forgeqe-test":{name:`Scribe`,icon:`scribe`,hue:`#3a9a7e`},"forgeqe-read":{name:`Scribe, reading`,icon:`knowledge-base`,hue:`#3fa34d`},"forgeqe-heal":{name:`Healer`,icon:`healer`,hue:`#86a92c`},"forgeqe-api":{name:`API test writer`,icon:`api`,hue:`#1f9c90`},"forgeqe-review":{name:`Reviewer`,icon:`result`,hue:`#e0457b`},"forgeqe-pr-review":{name:`PR reviewer`,icon:`pr-reviewer`,hue:`#d93a52`},"forgeqe-judge":{name:`Judge`,icon:`rule`,hue:`#e0603a`},"forgeqe-defect-rca":{name:`Root cause`,icon:`trace`,hue:`#d6701f`},"forgeqe-model-profile":{name:`Model profiler`,icon:`model`,hue:`#b88a14`},explore:{name:`Scout`,icon:`explorer`,hue:`#62789e`},general:{name:`Helper`,icon:`context-engine`,hue:`#a07c43`}};function ru(e){let t=Object.hasOwn(nu,e)?nu[e]:void 0;if(t)return t;let n=e.replace(/^forgeqe-/,``).replace(/[-_]+/g,` `).trim().slice(0,40);return{name:n?n.charAt(0).toUpperCase()+n.slice(1):`Agent`,icon:`context-engine`,hue:`#62789e`}}var iu=Object.assign({"./agents/api.svg":Rl,"./agents/browser-agent.svg":zl,"./agents/case.svg":Bl,"./agents/context-engine.svg":Vl,"./agents/explorer.svg":Hl,"./agents/healer.svg":Ul,"./agents/knowledge-base.svg":Wl,"./agents/model.svg":Gl,"./agents/orchestrator.svg":Kl,"./agents/pr-reviewer.svg":ql,"./agents/report.svg":Jl,"./agents/result.svg":Yl,"./agents/rule.svg":Xl,"./agents/scribe.svg":Zl,"./agents/specs.svg":Ql,"./agents/test-finder.svg":$l,"./agents/trace.svg":eu});function au({agent:e,px:t=20,decorative:n=!1,className:r}){let i=ru(e),a=iu[`./agents/${i.icon}.svg`];return(0,q.jsx)(`img`,{src:a,alt:n?``:i.name,width:t,height:t,draggable:!1,className:K(`block flex-none object-contain`,r),style:{width:t,height:t}})}var ou={prebuilt:`ForgeQE's`,project:`This project`,user:`Yours`,external:`Claude / agent skill`,extra:`Shared folder`};function su({agents:e,max:t=6}){return(0,q.jsxs)(`span`,{className:`flex items-center -space-x-1`,children:[e.slice(0,t).map(e=>(0,q.jsx)(`span`,{title:ru(e).name,className:`rounded-md bg-bg p-0.5 ring-1 ring-line-soft`,children:(0,q.jsx)(au,{agent:e,px:18,decorative:!0})},e)),e.length>t&&(0,q.jsxs)(`span`,{className:`pl-2 text-[12px] text-muted`,children:[`+`,e.length-t]})]})}function cu({edit:e}){let{data:t,error:n,reload:r}=yc(N.skills),i=ms(e.value,[`skills`,`disable`])||[],a=t=>e.set(gs(e.value,[`skills`,`disable`],t.length?t:void 0)),[o,s]=(0,v.useState)(`agents`),[c,l]=(0,v.useState)(``),[u,d]=(0,v.useState)(!1),[f,p]=(0,v.useState)(null),[m,h]=(0,v.useState)(null),[g,_]=(0,v.useState)(!1),[y,b]=(0,v.useState)(``),[x,S]=(0,v.useState)(``),C=c.toLowerCase().split(/\s+/).filter(Boolean),w=(0,v.useMemo)(()=>(t?.skills||[]).filter(e=>C.every(t=>`${e.name} ${e.description} ${e.users.map(e=>ru(e).name).join(` `)}`.toLowerCase().includes(t))),[t,c]),T=async(e,t,n)=>{_(!0),b(``);try{await e(),n(),r(),S(t)}catch(e){b(e.message)}finally{_(!1)}},E=async e=>{try{let t=await N.skill(e.name);p({name:e.name,text:t.text,editable:t.editable})}catch(e){S(e.message)}},D=(e,t)=>{let n=t.replace(/^---\n[\s\S]*?\n---\n?/,``).trim();b(``),p(null),h({name:e.name,description:e.description,agents:e.agents,body:n,existing:e.name})},O=ms(e.value,[`skills`,`enabled`])!==!1,k=(e,n)=>{let r=!i.includes(e.name);return(0,q.jsxs)(`div`,{className:`grid grid-cols-[minmax(0,1fr)_auto] items-center gap-x-4 rounded-[10px] px-3 py-2.5 hover:bg-surface-muted`,children:[(0,q.jsxs)(`button`,{type:`button`,onClick:()=>E(e),"aria-label":`Read ${e.name}`,className:`flex min-w-0 cursor-pointer flex-col gap-0.5 border-0 bg-transparent p-0 text-left`,children:[(0,q.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[(0,q.jsx)(`span`,{className:K(`font-mono text-[13px] font-medium`,r?`text-ink`:`text-muted line-through`),children:e.name}),(0,q.jsx)(`span`,{className:K(`rounded-full px-2 py-px text-[11.5px] font-medium`,e.source===`project`?`bg-pass-soft text-pass`:`bg-surface-strong text-muted`),children:ou[e.source]||e.source})]}),(0,q.jsx)(`span`,{className:`line-clamp-2 text-[13px] text-muted`,children:e.description}),n&&(0,q.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2 pt-0.5`,children:[(0,q.jsx)(su,{agents:e.users}),(0,q.jsx)(`span`,{className:`text-[12px] text-muted`,children:t?.audiences.filter(t=>e.agents.includes(t.id)).map(e=>e.label).join(`, `)})]})]}),(0,q.jsx)(ps,{checked:r,onChange:t=>a(t?i.filter(t=>t!==e.name):[...i,e.name]),label:`Use ${e.name}`})]},e.name)};return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`section`,{className:`mb-4 rounded-[14px] border border-line-soft bg-bg`,children:[(0,q.jsxs)(`button`,{type:`button`,"aria-expanded":u,onClick:()=>d(!u),className:`flex min-h-12 w-full cursor-pointer items-center gap-3 rounded-[14px] border-0 bg-transparent px-4 text-left hover:bg-surface-muted`,children:[(0,q.jsx)(yr,{size:16,"aria-hidden":`true`,className:`text-muted`}),(0,q.jsx)(`span`,{className:`flex-1 text-sm font-medium`,children:`How skills are used`}),(0,q.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[O?`On`:`Off`,` · `,Fa(i.length,`turned off`,`turned off`),` · `,String(ms(e.value,[`skills`,`browser_max_chars`])??6e3),` characters a browser run`]}),(0,q.jsx)(Je,{size:16,"aria-hidden":`true`,className:K(`text-muted transition-transform`,!u&&`-rotate-90`)})]}),u&&(0,q.jsx)(`div`,{className:`border-t border-line-soft px-4 pb-2`,children:(0,q.jsx)(_c,{defs:Mc.fields,edit:e,base:Mc.base})})]}),t?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 pb-3`,children:[(0,q.jsx)(`div`,{role:`radiogroup`,"aria-label":`Show`,className:`flex gap-1 rounded-full bg-surface-strong p-1`,children:[[`agents`,`By agent`,t.audiences.length],[`all`,`All skills`,t.skills.length]].map(([e,t,n])=>(0,q.jsxs)(`button`,{type:`button`,role:`radio`,"aria-checked":o===e,onClick:()=>s(e),className:K(`inline-flex min-h-8 cursor-pointer items-center gap-1.5 rounded-full border-0 px-3 text-sm font-medium`,o===e?`bg-bg text-ink shadow-sm`:`bg-transparent text-muted hover:text-ink`),children:[t,(0,q.jsx)(`span`,{className:`text-[12px] text-muted tabular-nums`,children:n})]},e))}),(0,q.jsxs)(`div`,{className:`relative min-w-0 flex-[1_1_200px]`,children:[(0,q.jsx)(pr,{size:16,"aria-hidden":`true`,className:`pointer-events-none absolute top-1/2 left-3 -translate-y-1/2 text-muted`}),(0,q.jsx)(qs,{type:`search`,"aria-label":`Find a skill`,value:c,placeholder:`Find a skill or agent`,onChange:e=>l(e.target.value),className:`pl-9`})]}),(0,q.jsxs)(J,{variant:`primary`,onClick:()=>(b(``),h({name:``,description:``,agents:[],body:``})),children:[(0,q.jsx)($n,{size:16,"aria-hidden":`true`}),`Add skill`]})]}),x&&(0,q.jsx)(`p`,{role:`status`,className:`m-0 mb-3 rounded-[10px] bg-surface-muted px-3 py-2 text-sm text-ink-2`,children:x}),t.skills.length===0&&(0,q.jsx)(xc,{children:`No skills found. Add one for your framework, conventions or app.`}),o===`agents`&&t.audiences.map(e=>{let t=w.filter(t=>t.agents.includes(e.id));return!t.length&&C.length?null:(0,q.jsxs)(`section`,{"aria-labelledby":`aud-${e.id}`,className:`mb-3 rounded-[14px] border border-line-soft bg-bg p-1.5`,children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 px-3 py-2`,children:[(0,q.jsx)(su,{agents:e.agents,max:8}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,q.jsx)(`h3`,{id:`aud-${e.id}`,className:`m-0 text-[15px] font-semibold`,children:e.label}),(0,q.jsx)(`span`,{className:`truncate text-[12.5px] text-muted`,children:e.agents.map(e=>ru(e).name).filter((e,t,n)=>n.indexOf(e)===t).join(`, `)})]}),(0,q.jsx)(`span`,{className:`text-[12.5px] text-muted`,children:Fa(t.length,`skill`)})]}),(0,q.jsx)(`div`,{className:`flex flex-col border-t border-line-soft pt-1`,children:t.length?t.map(e=>k(e,!1)):(0,q.jsx)(`p`,{className:`m-0 px-3 py-2 text-[13px] text-muted`,children:`No skills for them yet.`})})]},e.id)}),o===`all`&&(0,q.jsx)(`div`,{className:`flex flex-col rounded-[14px] border border-line-soft bg-bg p-1.5`,children:w.length?w.map(e=>k(e,!0)):(0,q.jsx)(xc,{children:`No skill matches.`})}),t.problems.length?(0,q.jsx)(`div`,{role:`alert`,className:`mt-4 rounded-[12px] bg-warn-soft px-4 py-3 text-sm text-warn`,children:t.problems.map(e=>(0,q.jsx)(`p`,{className:`m-0`,children:e},e))}):null]}):(0,q.jsx)(bc,{error:n,reload:r}),(0,q.jsx)(Gs,{wide:!0,open:!!f,onClose:()=>p(null),title:f?.name||``,description:f?.editable?`This project's skill, in .forgeqe/skills.`:`Read only: add your own skill to change how the agents work.`,footer:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(J,{onClick:()=>p(null),children:`Close`}),f?.editable&&(0,q.jsx)(J,{variant:`primary`,onClick:()=>f&&t&&D(t.skills.find(e=>e.name===f.name),f.text),children:`Edit`})]}),children:f&&(0,q.jsx)(`pre`,{className:`m-0 mt-4 max-h-[70vh] overflow-auto rounded-[12px] bg-surface-muted p-4 font-mono text-[12px] leading-relaxed whitespace-pre-wrap`,children:f.text})}),(0,q.jsx)(Gs,{wide:!0,open:!!m,onClose:()=>h(null),title:m?.existing?`Edit ${m.existing}`:`Add a skill`,description:(0,q.jsxs)(q.Fragment,{children:[`Saved in `,(0,q.jsxs)(`span`,{className:`font-mono text-[12px]`,children:[`.forgeqe/skills/`,m?.name||`name`,`/SKILL.md`]}),`, shared with the project. The agents read a skill when its "use when" matches the work.`]}),footer:(0,q.jsxs)(q.Fragment,{children:[y&&(0,q.jsx)(`span`,{role:`alert`,className:`mr-auto self-center text-sm text-fail [overflow-wrap:anywhere]`,children:y}),m?.existing&&(0,q.jsx)(J,{disabled:g,onClick:()=>m.existing&&T(()=>N.removeSkill(m.existing),`Removed ${m.existing}.`,()=>h(null)),className:`mr-auto text-fail`,children:`Delete`}),(0,q.jsx)(J,{onClick:()=>h(null),children:`Cancel`}),(0,q.jsx)(J,{variant:`primary`,disabled:g||!m?.name||!m.description.trim()||!m.agents.length||!!m.existing&&!m.body.trim(),onClick:()=>m&&T(()=>m.existing?N.saveSkill(m.existing,m):N.addSkill(m),`${m.existing?`Saved`:`Added`} ${m.name}.`,()=>h(null)),children:g?`Saving…`:m?.existing?`Save skill`:`Add skill`})]}),children:m&&t&&(0,q.jsxs)(`div`,{className:`flex flex-col gap-4 pt-4`,children:[(0,q.jsxs)(`label`,{className:`flex flex-col gap-1.5`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:`Name`}),(0,q.jsx)(qs,{value:m.name,disabled:!!m.existing,placeholder:`sap-fiori`,onChange:e=>h({...m,name:e.target.value.toLowerCase().replace(/[^a-z0-9-]+/g,`-`).slice(0,64)}),className:`font-mono`})]}),(0,q.jsxs)(`label`,{className:`flex flex-col gap-1.5`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:`Use when`}),(0,q.jsx)(qs,{value:m.description,placeholder:`Use when the site is SAP Fiori: tiles, smart tables, value help dialogs.`,onChange:e=>h({...m,description:e.target.value})}),(0,q.jsx)(`span`,{className:`text-[12.5px] text-muted`,children:`The agents choose skills by this line: say when it applies.`})]}),(0,q.jsxs)(`fieldset`,{className:`m-0 flex flex-col gap-2 border-0 p-0`,children:[(0,q.jsx)(`legend`,{className:`mb-1.5 p-0 font-medium`,children:`Who it is for`}),(0,q.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:t.audiences.map(e=>{let t=m.agents.includes(e.id);return(0,q.jsxs)(`button`,{type:`button`,role:`checkbox`,"aria-checked":t,onClick:()=>h({...m,agents:t?m.agents.filter(t=>t!==e.id):[...m.agents,e.id]}),className:K(`inline-flex min-h-10 cursor-pointer items-center gap-2 rounded-full border px-3 text-[13px] font-medium`,t?`border-accent bg-accent-soft text-ink`:`border-line bg-bg text-ink-2 hover:border-accent-line`),children:[(0,q.jsx)(su,{agents:e.agents,max:3}),e.label]},e.id)})})]}),(0,q.jsxs)(`label`,{className:`flex flex-col gap-1.5`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:`Instructions`}),(0,q.jsx)(Js,{rows:14,spellCheck:!0,value:m.body,placeholder:`- Open apps from their tile on the launchpad.
18
+ - Wait until the busy indicator is gone before the next step.`,onChange:e=>h({...m,body:e.target.value}),className:`text-[14px] leading-[1.6]`}),(0,q.jsxs)(`span`,{className:`text-[12.5px] text-muted`,children:[m.existing?``:`Leave it empty to start from ForgeQE's outline for that agent. `,`Markdown; short rules the agent can follow step by step.`]})]})]})})]})}function lu({names:e,max:t=4}){let n=e.slice(0,t);return(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1`,children:[n.map(e=>(0,q.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-[12.5px] text-ink-2`,title:ru(e).name,children:[(0,q.jsx)(au,{agent:e,px:16,decorative:!0}),ru(e).name]},e)),e.length>t&&(0,q.jsxs)(`span`,{className:`text-[12.5px] text-muted`,children:[`+`,e.length-t,` more`]}),!e.length&&(0,q.jsx)(`span`,{className:`text-[12.5px] text-muted`,children:`Not used by an agent`})]})}function uu({p:e}){return(0,q.jsx)(`span`,{className:K(`rounded-full px-2 py-0.5 text-[12px] font-medium whitespace-nowrap`,e.outdated?`bg-warn-soft text-warn`:e.edited?`bg-accent-soft text-accent`:`bg-surface-strong text-muted`),children:e.outdated?`Edited, older base`:e.edited?`Edited`:`ForgeQE's`})}function du({p:e,onOpen:t,agents:n=!0}){return(0,q.jsxs)(`button`,{type:`button`,onClick:t,"aria-label":`Open ${e.name}`,className:`grid w-full cursor-pointer grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-x-3 rounded-[10px] border-0 bg-transparent px-3 py-2 text-left hover:bg-surface-muted`,children:[(0,q.jsx)(It,{size:16,strokeWidth:1.8,"aria-hidden":`true`,className:`text-muted`}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{className:`font-mono text-[13px] font-medium text-ink`,children:e.name}),(0,q.jsx)(`span`,{className:`truncate text-[13px] text-muted`,children:e.description||e.usedBy}),n?(0,q.jsx)(lu,{names:e.agents}):e.agents.length>1&&(0,q.jsxs)(`span`,{className:`text-[12px] text-muted`,children:[`Shared with `,Fa(e.agents.length-1,`other agent`),`: editing it changes them too`]})]}),(0,q.jsx)(uu,{p:e})]})}function fu({t:e,onOpen:t}){return(0,q.jsxs)(`button`,{type:`button`,onClick:t,"aria-label":`Edit ${e.name}`,className:`grid w-full cursor-pointer grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-x-3 rounded-[10px] border-0 bg-transparent px-3 py-2 text-left hover:bg-surface-muted`,children:[(0,q.jsx)(qr,{size:16,strokeWidth:1.8,"aria-hidden":`true`,className:`text-accent`}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{className:`font-mono text-[13px] font-medium text-ink`,children:e.name}),(0,q.jsx)(`span`,{className:`truncate text-[13px] text-muted`,children:e.description||e.text.split(`
19
+ `)[0]}),(0,q.jsx)(lu,{names:e.agents})]}),(0,q.jsx)(`span`,{className:`rounded-full bg-pass-soft px-2 py-0.5 text-[12px] font-medium whitespace-nowrap text-pass`,children:`Yours`})]})}function pu({onChanged:e}){let{data:t,error:n,reload:r}=yc(N.prompts),[i,a]=(0,v.useState)(`agents`),[o,s]=(0,v.useState)(``),[c,l]=(0,v.useState)(null),[u,d]=(0,v.useState)(``),[f,p]=(0,v.useState)(!1),[m,h]=(0,v.useState)(null),[g,_]=(0,v.useState)(null),[y,b]=(0,v.useState)(!1),[x,S]=(0,v.useState)(``),C=o.toLowerCase().split(/\s+/).filter(Boolean),w=e=>C.every(t=>e.toLowerCase().includes(t)),T=(0,v.useMemo)(()=>(t?.prompts||[]).filter(e=>w(`${e.name} ${e.description} ${e.usedBy} ${e.agents.map(e=>ru(e).name).join(` `)}`)),[t,o]),E=(0,v.useMemo)(()=>(t?.team||[]).filter(e=>w(`${e.name} ${e.description} ${e.text} ${e.agents.map(e=>ru(e).name).join(` `)}`)),[t,o]),D=async t=>{S(``);try{let e=await N.prompt(t);l(e),d(e.text),p(!1)}catch(t){e(t.message)}},O=async t=>{try{let e=await N.agentPrompt(t);_({agent:t,text:e.text})}catch(t){e(t.message)}},k=async(t,n,i)=>{b(!0),S(``);try{await t(),i(),r(),e(n)}catch(e){S(e.message)}finally{b(!1)}};if(!t)return(0,q.jsx)(bc,{error:n,reload:r});let A=t.prompts.find(e=>e.name===c?.name),j=t.agents,M=[{id:`agents`,label:`By agent`,n:j.length},{id:`all`,label:`All prompts`,n:t.prompts.length},{id:`team`,label:`Your prompts`,n:t.team.length}];return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 pb-3`,children:[(0,q.jsx)(`div`,{role:`radiogroup`,"aria-label":`Show`,className:`flex gap-1 rounded-full bg-surface-strong p-1`,children:M.map(e=>(0,q.jsxs)(`button`,{type:`button`,role:`radio`,"aria-checked":i===e.id,onClick:()=>a(e.id),className:K(`inline-flex min-h-8 cursor-pointer items-center gap-1.5 rounded-full border-0 px-3 text-sm font-medium`,i===e.id?`bg-bg text-ink shadow-sm`:`bg-transparent text-muted hover:text-ink`),children:[e.label,(0,q.jsx)(`span`,{className:`text-[12px] text-muted tabular-nums`,children:e.n})]},e.id))}),(0,q.jsxs)(`div`,{className:`relative min-w-0 flex-[1_1_200px]`,children:[(0,q.jsx)(pr,{size:16,"aria-hidden":`true`,className:`pointer-events-none absolute top-1/2 left-3 -translate-y-1/2 text-muted`}),(0,q.jsx)(qs,{type:`search`,"aria-label":`Find a prompt`,value:o,placeholder:`Find a prompt or agent`,onChange:e=>s(e.target.value),className:`pl-9`})]}),(0,q.jsxs)(J,{variant:`primary`,onClick:()=>(S(``),h({name:``,description:``,agents:[],text:``})),children:[(0,q.jsx)($n,{size:16,"aria-hidden":`true`}),`Add prompt`]})]}),i===`agents`&&(0,q.jsx)(`div`,{className:`flex flex-col gap-3`,children:j.filter(e=>T.some(t=>t.agents.includes(e.name))||E.some(t=>t.agents.includes(e.name))).map(e=>{let t=ru(e.name),n=T.filter(t=>t.agents.includes(e.name)).sort((t,n)=>t.name===e.prompt?-1:n.name===e.prompt?1:t.name.localeCompare(n.name)),r=E.filter(t=>t.agents.includes(e.name));return(0,q.jsxs)(`section`,{"aria-labelledby":`agent-${e.name}`,className:`rounded-[14px] border border-line-soft bg-bg p-1.5`,children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 px-3 py-2`,children:[(0,q.jsx)(au,{agent:e.name,px:28,decorative:!0}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,q.jsx)(`h3`,{id:`agent-${e.name}`,className:`m-0 text-[15px] font-semibold`,style:{color:t.hue},children:t.name}),(0,q.jsx)(`span`,{className:`truncate text-[13px] text-muted`,children:e.title})]}),(0,q.jsxs)(`span`,{className:`text-[12.5px] text-muted`,children:[Fa(n.length,`prompt`),r.length?` · ${r.length} yours`:``]}),(0,q.jsxs)(J,{size:`sm`,variant:`ghost`,onClick:()=>O(e.name),children:[(0,q.jsx)(Et,{size:14,"aria-hidden":`true`}),`Full prompt`]})]}),(0,q.jsxs)(`div`,{className:`flex flex-col border-t border-line-soft pt-1`,children:[n.map(e=>(0,q.jsx)(du,{p:e,agents:!1,onOpen:()=>D(e.name)},e.name)),r.map(e=>(0,q.jsx)(fu,{t:e,onOpen:()=>(S(``),h({name:e.name,description:e.description,agents:e.agents,text:e.text,existing:e.name}))},e.name))]})]},e.name)})}),i===`all`&&(0,q.jsx)(`div`,{className:`flex flex-col rounded-[14px] border border-line-soft bg-bg p-1.5`,children:T.length?T.map(e=>(0,q.jsx)(du,{p:e,onOpen:()=>D(e.name)},e.name)):(0,q.jsx)(xc,{children:`No prompt matches.`})}),i===`team`&&(t.team.length===0?(0,q.jsxs)(`div`,{className:`flex flex-col items-start gap-3 rounded-[14px] border border-dashed border-line px-5 py-6`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:`No prompts of your own yet`}),(0,q.jsx)(`span`,{className:`max-w-[64ch] text-sm text-muted`,children:`Write instructions once for the agents that should follow them: "Tag every test with its Azure DevOps work item id" for Scribe, or "Answer in British English" for the Orchestrator. They are added at the end of those agents' instructions, saved in .forgeqe/prompts/team, and shared with the project.`}),(0,q.jsxs)(J,{variant:`primary`,onClick:()=>h({name:``,description:``,agents:[],text:``}),children:[(0,q.jsx)($n,{size:16,"aria-hidden":`true`}),`Add prompt`]})]}):(0,q.jsx)(`div`,{className:`flex flex-col rounded-[14px] border border-line-soft bg-bg p-1.5`,children:E.length?E.map(e=>(0,q.jsx)(fu,{t:e,onOpen:()=>(S(``),h({name:e.name,description:e.description,agents:e.agents,text:e.text,existing:e.name}))},e.name)):(0,q.jsx)(xc,{children:`No prompt matches.`})})),(0,q.jsx)(Gs,{wide:!0,open:!!c,onClose:()=>l(null),title:c?.name||``,description:(0,q.jsxs)(q.Fragment,{children:[A?.agents.length?`Used by ${A.agents.map(e=>ru(e).name).join(`, `)}. `:A?.usedBy?`Used by ${A.usedBy}. `:``,`Saving writes `,(0,q.jsxs)(`span`,{className:`font-mono text-[12px]`,children:[`.forgeqe/prompts/`,c?.name,`.md`]}),` straight away; new chats and runs use it.`]}),footer:(0,q.jsxs)(q.Fragment,{children:[x&&(0,q.jsx)(`span`,{role:`alert`,className:`mr-auto self-center text-sm text-fail`,children:x}),A?.edited&&A.source===`project`&&(0,q.jsx)(J,{disabled:y,onClick:()=>c&&k(()=>N.resetPrompt(c.name),`${c.name} is ForgeQE's own prompt again.`,()=>l(null)),className:`mr-auto`,children:`Reset to ForgeQE's`}),(0,q.jsx)(J,{onClick:()=>l(null),children:`Cancel`}),(0,q.jsx)(J,{variant:`primary`,disabled:y||!c||u===c.text,onClick:()=>c&&k(()=>N.savePrompt(c.name,u),`Saved your copy of ${c.name}.`,()=>l(null)),children:y?`Saving…`:`Save prompt`})]}),children:c&&(0,q.jsxs)(`div`,{className:`flex flex-col gap-3 pt-4`,children:[A&&A.agents.length>0&&(0,q.jsx)(lu,{names:A.agents,max:8}),A?.edited&&A.source!==`project`&&(0,q.jsxs)(`p`,{className:`m-0 rounded-[10px] bg-surface-muted px-3 py-2 text-sm text-ink-2`,children:[`This prompt comes from a `,A.source,` copy; saving here makes a project copy, which the shared folder still wins over.`]}),(0,q.jsx)(`button`,{type:`button`,"aria-expanded":f,onClick:()=>p(!f),className:`min-h-10 cursor-pointer self-start border-0 bg-transparent p-0 text-sm font-medium text-accent hover:text-accent-hover`,children:f?`Hide ForgeQE's text`:`Show ForgeQE's text`}),f&&(0,q.jsx)(`pre`,{className:`m-0 max-h-[40vh] overflow-auto rounded-[12px] bg-surface-muted p-4 font-mono text-[12px] leading-relaxed whitespace-pre-wrap`,children:c.builtin}),(0,q.jsx)(`label`,{htmlFor:`prompt-text`,className:`font-medium`,children:`Prompt`}),(0,q.jsx)(Js,{id:`prompt-text`,spellCheck:!1,rows:22,value:u,onChange:e=>d(e.target.value),className:`font-mono text-[13px] leading-[1.6]`})]})}),(0,q.jsx)(Gs,{wide:!0,open:!!m,onClose:()=>h(null),title:m?.existing?`Edit ${m.existing}`:`Add a prompt`,description:(0,q.jsxs)(q.Fragment,{children:[`Added at the end of the chosen agents' instructions, from their next start. Saved in `,(0,q.jsxs)(`span`,{className:`font-mono text-[12px]`,children:[`.forgeqe/prompts/team/`,m?.name||`name`,`.md`]}),`, shared with the project.`]}),footer:(0,q.jsxs)(q.Fragment,{children:[x&&(0,q.jsx)(`span`,{role:`alert`,className:`mr-auto self-center text-sm text-fail [overflow-wrap:anywhere]`,children:x}),m?.existing&&(0,q.jsx)(J,{disabled:y,onClick:()=>m.existing&&k(()=>N.deleteTeamPrompt(m.existing),`Removed ${m.existing}.`,()=>h(null)),className:`mr-auto text-fail`,children:`Delete`}),(0,q.jsx)(J,{onClick:()=>h(null),children:`Cancel`}),(0,q.jsx)(J,{variant:`primary`,disabled:y||!m?.name||!m.agents.length||!m.text.trim(),onClick:()=>m&&k(()=>m.existing?N.saveTeamPrompt(m.existing,m):N.addTeamPrompt(m),`${m.existing?`Saved`:`Added`} ${m.name}: ${m.agents.map(e=>ru(e).name).join(`, `)} use it from their next start.`,()=>h(null)),children:y?`Saving…`:m?.existing?`Save prompt`:`Add prompt`})]}),children:m&&(0,q.jsxs)(`div`,{className:`flex flex-col gap-4 pt-4`,children:[(0,q.jsxs)(`label`,{className:`flex flex-col gap-1.5`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:`Name`}),(0,q.jsx)(qs,{value:m.name,disabled:!!m.existing,placeholder:`tag-tests-with-work-items`,onChange:e=>h({...m,name:e.target.value.toLowerCase().replace(/[^a-z0-9-]+/g,`-`).slice(0,48)}),className:`font-mono`}),(0,q.jsx)(`span`,{className:`text-[12.5px] text-muted`,children:`Lowercase letters, digits and dashes.`})]}),(0,q.jsxs)(`label`,{className:`flex flex-col gap-1.5`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:`What it is for`}),(0,q.jsx)(qs,{value:m.description,maxLength:200,placeholder:`Tests carry the work item they cover`,onChange:e=>h({...m,description:e.target.value})})]}),(0,q.jsxs)(`fieldset`,{className:`m-0 flex flex-col gap-2 border-0 p-0`,children:[(0,q.jsx)(`legend`,{className:`mb-1.5 p-0 font-medium`,children:`Agents that follow it`}),(0,q.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:j.map(e=>{let t=m.agents.includes(e.name);return(0,q.jsxs)(`button`,{type:`button`,role:`checkbox`,"aria-checked":t,title:e.title,onClick:()=>h({...m,agents:t?m.agents.filter(t=>t!==e.name):[...m.agents,e.name]}),className:K(`inline-flex min-h-9 cursor-pointer items-center gap-2 rounded-full border px-3 text-[13px] font-medium`,t?`border-accent bg-accent-soft text-ink`:`border-line bg-bg text-ink-2 hover:border-accent-line`),children:[(0,q.jsx)(au,{agent:e.name,px:18,decorative:!0}),ru(e.name).name]},e.name)})})]}),(0,q.jsxs)(`label`,{className:`flex flex-col gap-1.5`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:`Instructions`}),(0,q.jsx)(Js,{rows:14,spellCheck:!0,value:m.text,placeholder:`Tag every test with the Azure DevOps work item it covers, as [Property("WorkItem", "1234")].
20
+ If the request names no work item, ask for it.`,onChange:e=>h({...m,text:e.target.value}),className:`text-[14px] leading-[1.6]`}),(0,q.jsx)(`span`,{className:`text-[12.5px] text-muted`,children:`Plain words, as you would tell a colleague. Use MUST for a rule the agent may never break.`})]})]})}),(0,q.jsx)(Gs,{wide:!0,open:!!g,onClose:()=>_(null),title:g?`${ru(g.agent).name}: full prompt`:``,description:`What the agent starts with now: ForgeQE's prompt (or your edited copy), with the included parts and your prompts for it.`,footer:(0,q.jsx)(J,{onClick:()=>_(null),children:`Close`}),children:g&&(0,q.jsx)(`pre`,{className:`m-0 mt-4 max-h-[70vh] overflow-auto rounded-[12px] bg-surface-muted p-4 font-mono text-[12px] leading-relaxed whitespace-pre-wrap`,children:g.text})})]})}function mu({checked:e,onSelect:t,label:n}){return(0,q.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":e,"aria-label":n,onClick:t,className:K(`relative inline-flex size-5 flex-none cursor-pointer items-center justify-center rounded-full border-[1.5px] bg-bg p-0 before:absolute before:-inset-2.5 before:content-['']`,e?`border-accent`:`border-muted`),children:(0,q.jsx)(`span`,{"aria-hidden":`true`,className:K(`size-2.5 rounded-full`,e?`bg-accent`:`bg-transparent`)})})}var hu=[[`web`,`Web`],[`api`,`API`],[`desktop`,`Windows desktop`],[`mobile`,`Mobile`]],gu={web:en,api:_r,desktop:Nn,mobile:Dr};function _u(e){let t=String(e.kind||`web`),n=[{key:`kind`,label:`Kind`,type:`select`,default:`web`,options:hu.map(([e,t])=>({value:e,label:t}))}];return(t===`web`||t===`api`)&&n.push({key:`url`,label:`Address`,type:`url`,placeholder:t===`api`?`https://qa.api.example.com/v1`:`https://qa.shop.example.com`}),t===`desktop`&&n.push({key:`path`,label:`Program`,type:`path`,placeholder:`C:\\Program Files\\Contoso\\Billing\\Billing.exe`},{key:`args`,label:`Arguments`,help:`Comma separated.`,type:`list`,placeholder:`--server, qa-db01`}),t===`mobile`&&n.push({key:`platform`,label:`Platform`,type:`select`,options:[{value:`android`,label:`Android`},{value:`ios`,label:`iOS`}]},{key:`app_id`,label:`App id`,type:`path`,placeholder:`com.contoso.courier`},{key:`activity`,label:`Activity`,help:`Android: the activity to start.`,type:`path`,placeholder:`.MainActivity`},{key:`app`,label:`Build to install`,help:`An .apk or .ipa, an https address, or bs://…`,type:`path`}),n.push({key:`description`,label:`Description`,help:`The agent picks apps by this, so say what the app is for.`,type:`text`}),t===`web`&&n.push({key:`login`,label:`Sign-in`,help:`A sign-in from Sign-ins.`,type:`text`,placeholder:`shop-qa`}),n}function vu({value:e,onChange:t}){let n=Object.entries(e);return(0,q.jsxs)(`div`,{className:`flex flex-col gap-2 border-t border-surface-strong py-3`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:`Variables`}),(0,q.jsx)(`span`,{className:`text-sm text-muted`,children:`Plain values tests read as FORGEQE_VAR_NAME. No secrets here: list those under Secrets.`}),n.map(([n,r],i)=>(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,q.jsx)(qs,{"aria-label":`Variable name`,value:n,spellCheck:!1,onChange:r=>t(_s(e,n,r.target.value)),className:`max-w-[200px] flex-[1_1_140px] font-mono text-[13px]`}),(0,q.jsx)(qs,{"aria-label":`Value of ${n}`,value:String(r??``),onChange:r=>t({...e,[n]:r.target.value}),className:`flex-[2_1_200px]`}),(0,q.jsx)(J,{size:`sm`,"aria-label":`Remove ${n}`,onClick:()=>{let r={...e};delete r[n],t(r)},children:`Remove`})]},i)),(0,q.jsx)(`div`,{children:(0,q.jsx)(J,{size:`sm`,onClick:()=>t({...e,[vs(e,`name`)]:``}),children:`Add a variable`})})]})}function yu({value:e,onChange:t}){let n=Array.isArray(e)?e.map(String):[],[r,i]=(0,v.useState)(``),a=/^[A-Za-z_][A-Za-z0-9_]*$/.test(r.trim());return(0,q.jsxs)(`div`,{className:`flex flex-col gap-2 border-t border-surface-strong py-3`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:`Secrets`}),(0,q.jsx)(`span`,{className:`text-sm text-muted`,children:`Passwords and keys this environment's tests and desktop flows read, by name. Their values are kept in your credential store.`}),n.map(e=>(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1 border-t border-line-soft pt-2`,children:[(0,q.jsx)(`code`,{className:`w-full font-mono text-[13px] sm:w-[200px]`,children:e}),(0,q.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,q.jsx)(oc,{name:e,field:e,compact:!0})}),(0,q.jsx)(ic,{name:e}),(0,q.jsx)(J,{size:`sm`,"aria-label":`Stop using ${e} here`,onClick:()=>t(n.filter(t=>t!==e)),children:`Remove`})]},e)),(0,q.jsxs)(`form`,{className:`flex flex-wrap items-center gap-2`,onSubmit:e=>{e.preventDefault(),a&&!n.includes(r.trim())&&t([...n,r.trim()]),i(``)},children:[(0,q.jsx)(qs,{"aria-label":`Secret's variable name`,value:r,placeholder:`BILLING_PASSWORD_QA`,spellCheck:!1,onChange:e=>i(e.target.value),className:`max-w-[280px] flex-[1_1_200px] font-mono text-[13px]`}),(0,q.jsx)(J,{size:`sm`,type:`submit`,disabled:!a,children:`Add`})]})]})}var bu=(e,t)=>(t.startsWith(e)?t.slice(e.length).replace(/^[\\/]+/,``):t).replace(/\\/g,`/`);function xu({envs:e,layout:t,files:n,base:r,onSplit:i,splitBlocked:a,config:o}){let[s,c]=(0,v.useState)(``),[l,u]=(0,v.useState)(``),d=t.layout===`dir`?bu(r,t.dir):``,f=e=>{let t=n.find(t=>t.name===e);return t?bu(r,t.path):`${d}/${e}.yaml`},p=X(e.value.environments),m=Object.keys(p),h=typeof e.value.default==`string`?e.value.default:m[0]||``,g=(t,n)=>e.set({...e.value,environments:{...p,[t]:n}});return(0,q.jsxs)(q.Fragment,{children:[o&&(0,q.jsx)(`div`,{className:`mb-5`,children:t.layout===`dir`?(0,q.jsx)(hc,{def:{key:`dir`,label:`Environments folder`,help:`One YAML file per environment, named after it. Relative to forgeqe.yaml; read from there after you save.`,type:`path`,placeholder:`./environments`},edit:o,base:[`environments`]}):(0,q.jsx)(hc,{def:{key:`file`,label:`Environments file`,help:`All environments in one YAML file. Relative to forgeqe.yaml; read from there after you save. --env NAME or FORGEQE_ENV picks one for a run.`,type:`path`,default:`./env.yaml`},edit:o,base:[`environments`]})}),t.layout===`file`?(0,q.jsxs)(`div`,{className:`mb-5 flex flex-wrap items-center gap-x-4 gap-y-3 rounded-[14px] bg-surface-muted px-5 py-4`,children:[(0,q.jsxs)(`p`,{className:`m-0 flex-[1_1_300px] text-sm leading-relaxed text-ink-2`,children:[`All environments are in one file, `,(0,q.jsx)(`span`,{className:`font-mono text-[13px]`,children:bu(r,t.file)}),`. One file per environment is easier to change and review: each goes into`,` `,(0,q.jsx)(`span`,{className:`font-mono text-[13px]`,children:`environments/`}),`, and the old file is left as it is.`,a&&(0,q.jsx)(`span`,{className:`mt-1 block text-muted`,children:a})]}),(0,q.jsx)(J,{onClick:i,disabled:!!a,children:`Split into one file each`})]}):(0,q.jsxs)(`p`,{className:`mt-0 mb-4 text-sm leading-relaxed text-muted`,children:[`Each environment is its own file in `,(0,q.jsxs)(`span`,{className:`font-mono text-[13px]`,children:[d,`/`]}),`. The active one is set in forgeqe.yaml.`]}),(0,q.jsxs)(`div`,{role:`radiogroup`,"aria-label":`Active environment`,children:[m.length===0&&(0,q.jsx)(`p`,{className:`m-0 py-5 text-sm text-muted`,children:`No environments yet. Add one with the apps your tests use.`}),m.map((r,i)=>{let a=X(p[r]),o=X(a.apps),d={value:a,set:e=>g(r,e),vars:e.vars},m=Object.entries(o).filter(([,e])=>(X(e).kind||`web`)===`web`),_=Object.entries(o).filter(([,e])=>X(e).kind===`api`);return(0,q.jsxs)(vc,{lead:(0,q.jsx)(mu,{checked:h===r,onSelect:()=>e.set({...e.value,default:r}),label:`Use ${r}`}),title:r,meta:(0,q.jsxs)(q.Fragment,{children:[[a.description,`${Object.keys(o).length} app${Object.keys(o).length===1?``:`s`}`].filter(Boolean).map(String).join(`, `),t.layout===`dir`&&(0,q.jsxs)(`span`,{className:`block font-mono text-[12px]`,children:[f(r),n.some(e=>e.name===r)?``:` (new)`]})]}),state:h===r?(0,q.jsx)(`span`,{className:`text-sm text-pass`,children:`Active`}):void 0,open:s===r,onToggle:()=>c(s===r?``:r),actions:(0,q.jsx)(J,{size:`sm`,"aria-label":`Remove ${r}`,onClick:()=>{let t={...p};delete t[r];let n={...e.value,environments:t};h===r&&delete n.default,e.set(n)},children:`Remove`}),children:[(0,q.jsx)(uc,{label:`Name`,help:t.layout===`dir`?`Also its file's name. Pick it with --env NAME or FORGEQE_ENV.`:`Pick it with --env NAME or FORGEQE_ENV.`,htmlFor:`env-${i}`,children:(0,q.jsx)(qs,{id:`env-${i}`,defaultValue:r,spellCheck:!1,onBlur:t=>{let n=t.target.value.trim();n&&n!==r&&/^[A-Za-z0-9_-][A-Za-z0-9_.-]*$/.test(n)&&!(n in p)?(e.set({...e.value,...h===r?{default:n}:{},environments:_s(p,r,n)}),c(n)):t.target.value=r},className:`max-w-[420px] flex-[1_1_280px] font-mono text-[13px]`})}),(0,q.jsx)(_c,{defs:[{key:`description`,label:`Description`,type:`text`}],edit:d,base:[]}),m.length>1&&(0,q.jsx)(hc,{def:{key:`start_app`,label:`Start app`,help:`Where browser runs start when no app or address is given.`,type:`select`,options:m.map(([e])=>({value:e,label:e}))},edit:d,base:[]}),_.length>1&&(0,q.jsx)(hc,{def:{key:`api_app`,label:`API app`,help:`The API that API tests call.`,type:`select`,options:_.map(([e])=>({value:e,label:e}))},edit:d,base:[]}),(0,q.jsx)(dc,{children:`Apps`}),Object.entries(o).map(([t,n],i)=>{let s=X(n),c=`${r}/${i}`;return(0,q.jsxs)(vc,{lead:(0,q.jsx)(fs,{icon:gu[String(s.kind||`web`)]||en,logo:s.kind===`mobile`?Is[String(s.platform)]:s.kind===`desktop`?Is.windows:void 0}),title:t,meta:[hu.find(([e])=>e===(s.kind||`web`))?.[1],s.url||s.path||s.app_id].filter(Boolean).map(String).join(`, `),open:l===c,onToggle:()=>u(l===c?``:c),actions:(0,q.jsx)(J,{size:`sm`,"aria-label":`Remove ${t}`,onClick:()=>{let e={...o};delete e[t],g(r,{...a,apps:e})},children:`Remove`}),children:[(0,q.jsx)(uc,{label:`Name`,htmlFor:`app-${c}`,children:(0,q.jsx)(qs,{id:`app-${c}`,defaultValue:t,spellCheck:!1,onBlur:e=>{let n=e.target.value.trim();n&&n!==t&&/^[A-Za-z0-9_.-]+$/.test(n)&&!(n in o)?g(r,{...a,apps:_s(o,t,n)}):e.target.value=t},className:`max-w-[420px] flex-[1_1_280px] font-mono text-[13px]`})}),(0,q.jsx)(_c,{defs:_u(s),edit:{value:s,set:e=>g(r,{...a,apps:{...o,[t]:e}}),vars:e.vars},base:[]})]},i)}),(0,q.jsx)(`div`,{className:`py-3`,children:(0,q.jsx)(J,{size:`sm`,onClick:()=>{let e=vs(o,`app`);g(r,{...a,apps:{...o,[e]:{kind:`web`}}}),u(`${r}/${Object.keys(o).length}`)},children:`Add an app`})}),(0,q.jsx)(vu,{value:X(a.variables),onChange:e=>g(r,gs(a,[`variables`],Object.keys(e).length?e:void 0))}),(0,q.jsx)(yu,{value:a.secrets,onChange:e=>g(r,gs(a,[`secrets`],e.length?e:void 0))})]},i)})]}),(0,q.jsx)(`div`,{className:`pt-4`,children:(0,q.jsx)(J,{onClick:()=>{let t=vs(p,m.length?`new-environment`:`qa`);e.set({...e.value,...m.length?{}:{default:t},environments:{...p,[t]:{description:``,apps:{}}}}),c(t)},children:`Add an environment`})})]})}var Su=[[`openai`,`OpenAI`],[`azure`,`Azure OpenAI`],[`github_copilot`,`GitHub Copilot seat`],[`ollama`,`Ollama on this machine`],[`openai_compatible`,`OpenAI-compatible endpoint`]],Cu=e=>Su.find(([t])=>t===e)?.[1]||String(e||`No provider`),wu={openai:{provider:`openai`,model:`gpt-4o`,api_key_env:`OPENAI_API_KEY`,temperature:.2},azure:{provider:`azure`,model:`gpt-4o`,deployment:`gpt-4o`,api_key_env:`WP_AZURE_API_KEY`,api_version:`2024-05-01-preview`,temperature:.2,deployment_type:`global`},github_copilot:{provider:`github_copilot`,model:`gpt-4.1`},ollama:{provider:`ollama`,model:`llama3.2`,endpoint:`http://127.0.0.1:11434/v1`,context:32768,temperature:.2},openai_compatible:{provider:`openai_compatible`,model:`gpt-4o`,api_key_env:`WP_API_KEY`,temperature:.2}};function Tu(e){let t=String(e.provider||``),n=e.auth===`entra`,r=[{key:`model`,label:`Model`,type:`text`,placeholder:t===`ollama`?`llama3.2`:`gpt-4o`}];return t===`azure`&&(r.push({key:`endpoint`,label:`Endpoint`,type:`url`,placeholder:`https://YOUR_RESOURCE.openai.azure.com/`},{key:`deployment`,label:`Deployment`,type:`text`,placeholder:`gpt-4o`},{key:`auth`,label:`Sign-in`,help:`Entra ID uses a managed identity, workload identity or az login; no key.`,type:`select`,emptyLabel:`API key`,options:[{value:`entra`,label:`Microsoft Entra ID`}]}),n&&r.push({key:`managed_identity_client_id`,label:`Managed identity client id`,type:`text`})),(t===`ollama`||t===`openai_compatible`)&&r.push({key:`endpoint`,label:`Endpoint`,type:`url`,placeholder:t===`ollama`?`http://127.0.0.1:11434/v1`:`https://your-gateway.example/v1`}),t!==`github_copilot`&&!n&&r.push({key:`api_key_env`,label:`API key`,help:`Kept in your credential store, never in llms.json.`,type:`var`}),r.push({key:`description`,label:`Description`,help:`Shown in the model picker.`,type:`text`}),r}function Eu(e){let t=String(e.provider||``),n=[];return t===`azure`&&n.push({key:`api_version`,label:`API version`,type:`text`,placeholder:`2024-05-01-preview`},{key:`deployment_type`,label:`Deployment type`,help:`For prices.`,type:`select`,options:[`global`,`data_zone`].map(e=>({value:e,label:e}))}),t===`ollama`&&n.push({key:`context`,label:`Context window`,help:`Tokens.`,type:`number`,default:32768}),t!==`github_copilot`&&n.push({key:`temperature`,label:`Temperature`,type:`number`,placeholder:`0.2`}),n}var Du=/^[A-Za-z0-9_.-]+$/;function Ou({panel:e,setPanel:t,taken:n,onApply:r,vars:i}){let[a,o]=(0,v.useState)(!1),s=e?.profile||{},c=e?.name?Du.test(e.name)?e.name!==e.from&&n(e.name)?`Another model has this name.`:``:`Use letters, digits and _ . -`:``,l=String(s.provider||``),u=[...e&&!e.name?[[``,`a name`]]:[],[`model`,`a model`],...l===`azure`?[[`endpoint`,`an endpoint`],[`deployment`,`a deployment`]]:[],...l===`openai_compatible`?[[`endpoint`,`an endpoint`]]:[]].filter(([e])=>!e||!String(s[e]??``).trim()),d=!!e&&!c&&!u.length,f={value:s,set:n=>e&&t({...e,profile:n}),vars:i},p=()=>{t(null),o(!1)},m=Eu(s);return(0,q.jsx)(Gs,{open:!!e,onClose:p,title:e?.mode===`add`?`Add a model`:`Edit ${e?.from}`,description:`Saved to llms.json, and its key to ${$s(Qs().store)}, as soon as you add it.`,footer:(0,q.jsxs)(q.Fragment,{children:[u.length>0&&(0,q.jsxs)(`span`,{className:`mr-auto self-center text-sm text-muted`,children:[`Needs `,u.map(([,e])=>e).join(` and `)]}),(0,q.jsx)(J,{onClick:p,children:`Cancel`}),(0,q.jsx)(J,{variant:`primary`,disabled:!d,onClick:()=>{r(e),p()},children:e?.mode===`add`?`Add model`:`Done`})]}),children:e&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`fieldset`,{className:`m-0 border-0 p-0 pt-5`,children:[(0,q.jsx)(`legend`,{className:`mb-2 font-medium`,children:`Provider`}),(0,q.jsx)(`div`,{className:`flex flex-col gap-1`,children:Su.map(([n,r])=>(0,q.jsxs)(`label`,{className:`flex min-h-12 cursor-pointer items-center gap-3 rounded-[10px] px-3 hover:bg-surface-muted has-[:checked]:bg-surface-strong`,children:[(0,q.jsx)(`input`,{type:`radio`,name:`provider`,checked:s.provider===n,onChange:()=>t({...e,profile:e.mode===`add`?{...wu[n],...s.description?{description:s.description}:{}}:{...s,provider:n}}),className:`size-4 accent-accent`}),(0,q.jsx)(fs,{icon:Zn,logo:Fs[n]}),r]},n))})]}),(0,q.jsx)(uc,{label:`Name`,help:c?(0,q.jsx)(`span`,{className:`text-fail`,children:c}):`How you pick it in chats and with --profile.`,htmlFor:`model-name`,className:`mt-4`,stacked:!0,children:(0,q.jsx)(qs,{id:`model-name`,value:e.name,spellCheck:!1,placeholder:`openai-gpt4o`,"aria-invalid":!!c,onChange:n=>t({...e,name:n.target.value.trim()})})}),(0,q.jsx)(_c,{defs:Tu(s),edit:f,base:[],stacked:!0}),m.length>0&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`button`,{type:`button`,"aria-expanded":a,onClick:()=>o(!a),className:`mt-2 min-h-10 cursor-pointer border-0 bg-transparent p-0 text-sm font-medium text-accent hover:text-accent-hover`,children:a?`Fewer settings`:`More settings`}),a&&(0,q.jsx)(_c,{defs:m,edit:f,base:[],stacked:!0})]})]})})}function ku({config:e,models:t,vars:n}){let[r,i]=(0,v.useState)(null),a=X(t.value.models),o=Object.keys(a),s=typeof t.value.default==`string`?t.value.default:``,c=String(ms(e.value,[`llm`,`active`])??``);return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(dc,{first:!0,help:`The models are in their own file, so keys and profiles can be shared or kept apart from forgeqe.yaml.`,children:`Models file`}),(0,q.jsx)(hc,{def:{key:`models_file`,label:`Models file`,help:`Where the model profiles are. Relative to forgeqe.yaml.`,type:`path`,default:`./llms.json`},edit:e,base:[`llm`]}),(0,q.jsx)(uc,{label:`Profile in use`,help:`Empty: the default below. Tab switches it in the shell; --profile overrides it for one command.`,htmlFor:`llm-active`,yamlKey:e.file?`llm.active`:void 0,children:(0,q.jsxs)(Ys,{id:`llm-active`,value:c,onChange:t=>e.set(gs(e.value,[`llm`,`active`],t.target.value||void 0)),className:`max-w-[260px] flex-[0_1_220px]`,children:[(0,q.jsxs)(`option`,{value:``,children:[`The default (`,s||`none`,`)`]}),o.map(e=>(0,q.jsx)(`option`,{value:e,children:e},e)),c&&!o.includes(c)&&(0,q.jsxs)(`option`,{value:c,children:[c,` (not in the file)`]})]})}),(0,q.jsx)(dc,{children:`Default model`}),(0,q.jsxs)(`div`,{role:`radiogroup`,"aria-label":`Default model`,children:[o.length===0&&(0,q.jsx)(`p`,{className:`m-0 border-t border-line-soft py-5 text-sm text-muted`,children:`No models yet. Add one to start.`}),o.map(e=>{let r=X(a[e]),o=typeof r.api_key_env==`string`&&r.auth!==`entra`?r.api_key_env:``;return(0,q.jsxs)(`div`,{className:`flex min-h-[68px] flex-wrap items-center gap-x-4 gap-y-2 border-t border-line-soft py-3`,children:[(0,q.jsx)(mu,{checked:s===e,onSelect:()=>t.set({...t.value,default:e}),label:`Make ${e} the default`}),(0,q.jsx)(fs,{icon:Zn,logo:Fs[String(r.provider)]}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_220px] flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:e}),(0,q.jsx)(`span`,{className:`text-sm text-muted`,children:[Cu(r.provider),r.model].filter(Boolean).map(String).join(`, `)})]}),(0,q.jsxs)(`span`,{className:`flex items-center gap-3`,children:[o&&(0,q.jsx)(sc,{name:o,vars:n}),s===e&&(0,q.jsx)(`span`,{className:`text-[13px] text-muted`,children:`Default`})]}),(0,q.jsxs)(`span`,{className:`flex gap-2`,children:[(0,q.jsx)(J,{size:`sm`,"aria-label":`Edit ${e}`,onClick:()=>i({mode:`edit`,from:e,name:e,profile:r}),children:`Edit`}),(0,q.jsx)(J,{size:`sm`,"aria-label":`Remove ${e}`,onClick:()=>{let n={...a};delete n[e];let r=s===e?Object.keys(n)[0]||``:s,i={...t.value,models:n};r?i.default=r:delete i.default,t.set(i)},children:`Remove`})]})]},e)})]}),(0,q.jsx)(`div`,{className:`pt-4`,children:(0,q.jsx)(J,{onClick:()=>i({mode:`add`,from:``,name:``,profile:{...wu.openai}}),children:`Add a model`})}),(0,q.jsx)(Ou,{panel:r,setPanel:i,taken:e=>e in a,onApply:e=>{let n={...e.mode===`edit`&&e.name!==e.from?_s(a,e.from,e.name):a,[e.name]:e.profile},r=!s||e.mode===`edit`&&s===e.from?e.name:s;t.set({...t.value,default:r,models:n})},vars:n})]})}var Au=[[`agent`,`Orchestrator`,`The shell, forgeqe run and forgeqe mcp`],[`browser`,`Browser, desktop and mobile driving`,`Works from screenshots: only models that take images`],[`coding`,`Writing and healing tests`,`Asks for the best model: a weaker one costs more in failed attempts`],[`review`,`Reviews and judging results`,``],[`analysis`,`Root cause of defects`,`Asks for the best model`],[`planning`,`Refining requests and planning tests`,``]];function ju({config:e,models:t}){let n=Object.keys(X(t.value.models)),r=String(ms(e.value,[`llm`,`routing`])??`off`),i=ms(e.value,[`llm`,`fallback`])!==!1,a=X(ms(e.value,[`llm`,`routes`])),o=t=>e.file?`llm.${t}`:void 0,s=e=>{let t=a[e];return t===void 0||t===`auto`?[]:(Array.isArray(t)?t:[t]).map(String)},c=(t,n)=>{let r=s(t),i=r.includes(n)?r.filter(e=>e!==n):[...r,n];e.set(gs(e.value,[`llm`,`routes`,t],i.length?i:void 0))};return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(uc,{label:`Routing`,help:`Off: the profile in use does everything. Auto: each area of work gets the cheapest model good enough for it (rated once with a few calls). Shadow: decides and logs which it would use, and changes nothing.`,htmlFor:`llm-routing`,className:`border-t-0 pt-0`,yamlKey:o(`routing`),children:(0,q.jsxs)(Ys,{id:`llm-routing`,value:r,onChange:t=>e.set(gs(e.value,[`llm`,`routing`],t.target.value===`off`?void 0:t.target.value)),className:`max-w-[260px] flex-[0_1_220px]`,children:[(0,q.jsx)(`option`,{value:`off`,children:`Off`}),(0,q.jsx)(`option`,{value:`auto`,children:`Auto`}),(0,q.jsx)(`option`,{value:`shadow`,children:`Shadow (log only)`})]})}),(0,q.jsx)(uc,{label:`Fall back to a working model`,help:`When a model has no key or its sign-in is refused, use one that works, Copilot first, and say why. Off: keep the model and show its error.`,yamlKey:o(`fallback`),children:(0,q.jsx)(ps,{checked:i,onChange:t=>e.set(gs(e.value,[`llm`,`fallback`],t?void 0:!1)),label:`Fall back to a working model`})}),(0,q.jsx)(dc,{help:r===`off`?`Used when routing is auto or shadow. None picked: any model in the file that is good enough.`:`None picked: any model in the file that is good enough. One picked pins the area to it.`,children:`Models per area of work`}),n.length===0&&(0,q.jsx)(`p`,{className:`m-0 border-t border-line-soft py-4 text-sm text-muted`,children:`Add models under Models first.`}),n.length>0&&Au.map(([e,t,r])=>{let i=s(e),a=i.filter(e=>!n.includes(e));return(0,q.jsx)(uc,{label:t,help:a.length?(0,q.jsxs)(`span`,{className:`text-fail`,children:[`Not in the models file: `,a.join(`, `)]}):r||void 0,yamlKey:o(`routes.${e}`),children:(0,q.jsxs)(`div`,{role:`group`,"aria-label":`Models for ${t}`,className:`flex max-w-[420px] flex-[1_1_280px] flex-wrap gap-1.5`,children:[n.map(t=>(0,q.jsx)(`button`,{type:`button`,"aria-pressed":i.includes(t),onClick:()=>c(e,t),className:K(`min-h-8 cursor-pointer rounded-full border px-3 text-[13px]`,i.includes(t)?`border-accent bg-accent-soft text-accent`:`border-line bg-bg text-ink-2 hover:bg-surface-muted`),children:t},t)),!i.length&&(0,q.jsx)(`span`,{className:`self-center text-[13px] text-muted`,children:`Any (auto)`})]})},e)})]})}var Mu=(...e)=>e.map(([e,t])=>({value:e,label:t})),Nu=[{title:`Where runs happen`,base:[`browser`],fields:[{key:`provider`,label:`Browser`,help:`Where the browser agent runs. Remote grids need their sign-in under Integrations.`,type:`select`,default:`local`,options:Mu([`local`,`Chrome on this machine`],[`docker`,`Chrome in Docker`],[`browserstack`,`BrowserStack`],[`testmu`,`TestMu AI (LambdaTest)`])},{key:`start_url`,label:`Start page`,help:`Leave empty to let the agent choose, or to start at the active environment's app.`,type:`url`,placeholder:`https://staging.example.com`},{key:`allowed_hosts`,label:`Allowed sites`,help:`Hosts the agent may open, comma separated. Empty: the environment's apps.`,type:`list`,placeholder:`staging.example.com, auth.example.com`}]},{title:`The browser window`,base:[`browser`],fields:[{key:`headless`,label:`Run without a window`,help:`Off shows the browser while the agent works.`,type:`switch`,default:!0},{key:`window`,label:`Visible window`,type:`select`,default:`maximized`,options:Mu([`maximized`,`Maximized`],[`viewport`,`The size below`])},{key:`viewport.width`,label:`Page width`,type:`number`,default:1280},{key:`viewport.height`,label:`Page height`,type:`number`,default:800},{key:`overlay`,label:`Show what the agent does`,help:`In a visible browser: a bar with the current step, and your mouse and keyboard locked while it works.`,type:`switch`,default:!0}]},{title:`Limits and checks`,base:[`browser`],fields:[{key:`max_steps`,label:`Steps before a checkpoint`,help:`A run still making progress carries on, up to three times this.`,type:`number`,default:40},{key:`timeout_seconds`,label:`Time limit per run`,help:`In seconds.`,type:`number`,default:600},{key:`vision_detail`,label:`Screenshot detail`,help:`High reads small text better and costs more.`,type:`select`,default:`low`,options:Mu([`low`,`Low`],[`high`,`High`])},{key:`video`,label:`Record a video`,type:`switch`,default:!0},{key:`judge`,label:`Second check of each result`,help:`Another model call checks each finished run against its goal, and can fail it.`,type:`switch`,default:!1},{key:`rulebook`,label:`Learn rules per site`,help:`One-line rules the agent keeps after it recovers from a failed action.`,type:`switch`,default:!0}]},{title:`Remote browser, set here`,help:`For BrowserStack or TestMu AI set inline in forgeqe.yaml. These win over the grid's own file under Integrations when both are set.`,base:[`browser`,`remote`],fields:[{key:`browser`,label:`Browser`,type:`text`,placeholder:`chrome`},{key:`browser_version`,label:`Browser version`,type:`text`,placeholder:`latest`},{key:`os`,label:`Operating system`,help:`BrowserStack: Windows or OS X.`,type:`text`,placeholder:`Windows`},{key:`os_version`,label:`Its version`,type:`text`,placeholder:`11, or Sequoia`},{key:`platform`,label:`Platform`,help:`TestMu AI; or set the two above and ForgeQE joins them.`,type:`text`,placeholder:`Windows 11`},{key:`username_env`,label:`User name`,type:`var`,placeholder:`BROWSERSTACK_USERNAME`},{key:`access_key_env`,label:`Access key`,type:`var`,placeholder:`BROWSERSTACK_ACCESS_KEY`},{key:`project`,label:`Project`,type:`text`,placeholder:`ForgeQE`},{key:`build`,label:`Build`,type:`text`,placeholder:`nightly`},{key:`name`,label:`Session name`,type:`text`,placeholder:`checkout smoke`},{key:`local`,label:`Through a tunnel`,help:`BrowserStack Local or the LambdaTest tunnel, for sites only your network reaches.`,type:`switch`,default:!1},{key:`extra`,label:`More capabilities`,help:`The provider's own, one per line.`,type:`kv`,placeholder:`browserstack.console = errors`}]}],Pu=[{title:`Where tests go`,base:[`code`],fields:[{key:`repo`,label:`Repository`,help:`Where passed runs become tests. Empty: this folder.`,type:`path`,placeholder:`../my-app`},{key:`test_command`,label:`Test command`,help:`Empty: the agent finds it.`,type:`path`,placeholder:`npx playwright test`},{key:`model`,label:`Model`,help:`Empty: the default model.`,type:`text`,placeholder:`anthropic/claude-sonnet-4-5`},{key:`review_profile`,label:`Reviewer's model`,help:`A profile from Models. The reviewer only reads and judges, so a cheaper one is enough.`,type:`text`},{key:`runtime`,label:`Agent runtime`,help:`Empty: the runtime ForgeQE downloads.`,type:`path`,placeholder:`/path/to/agent-runtime`}]},{title:`How hard it tries`,base:[`code`],fields:[{key:`max_attempts`,label:`Attempts`,help:`Test runs before it gives up, and healing attempts.`,type:`number`,default:3},{key:`test_timeout_seconds`,label:`Time limit per test run`,help:`In seconds.`,type:`number`,default:600},{key:`confirm_runs`,label:`Passes in a row before a test counts`,help:`A new test is run again until it has passed this many times in a row, to catch a flaky test. 1 runs it once.`,type:`number`,default:3},{key:`stall_after`,label:`Stop after repeated failures`,help:`When one command has failed this many times.`,type:`number`,default:5},{key:`max_tokens`,label:`Token limit per job`,help:`Cached input counts at its share of the input price. 0 turns the limit off.`,type:`number`,default:15e5}]},{title:`Help it gets`,base:[`code`],fields:[{key:`replay`,label:`Replay the steps first`,help:`Runs the steps as a Playwright script and hands over what worked.`,type:`switch`,default:!0},{key:`live_browser`,label:`Look at the failing page`,help:`Once a step fails, the agent looks at that page in a browser.`,type:`switch`,default:!0},{key:`graph`,label:`Read the repository's code`,help:`Links the run's elements to the page objects that already locate them.`,type:`switch`,default:!0},{key:`header`,label:`Mark generated files`,help:`Files ForgeQE creates start with a “Generated with ForgeQE” line.`,type:`switch`,default:!0},{key:`rulebook`,label:`Learn from its own mistakes`,type:`switch`,default:!0}]}],Fu=[{title:`Reports`,base:[],fields:[{key:`export.out_dir`,label:`Report folder`,help:`One folder per run.`,type:`path`,default:`./.forgeqe/reports`},{key:`export.format`,label:`Test format`,type:`select`,default:`playwright`,options:Mu([`playwright`,`Playwright`])},{key:`report.screenshots`,label:`Screenshots in reports`,type:`select`,default:`all`,options:Mu([`all`,`Every step`],[`failures`,`Failures only`],[`off`,`None`])},{key:`report.accessibility`,label:`Check accessibility of each page`,type:`switch`,default:!0},{key:`suite.out_dir`,label:`Suite report folder`,type:`path`,default:`./.forgeqe/reports/suites`}]},{title:`Memory and replays`,base:[],fields:[{key:`memory.enabled`,label:`Remember pages and flows`,type:`switch`,default:!0},{key:`memory.dir`,label:`Memory folder`,type:`path`,default:`./.forgeqe/memory`},{key:`memory.replay`,label:`Replays`,help:`Verify checks each recorded step; trust replays without a model.`,type:`select`,default:`verify`,options:Mu([`verify`,`Verify`],[`trust`,`Trust`],[`off`,`Off`])},{key:`registry.mode`,label:`Rerun passed runs without the agent`,help:`On: a rerun of a passed run replays as recorded, with no model when its checks hold. Shadow only records what it would have done.`,type:`select`,default:`on`,options:Mu([`on`,`On`],[`shadow`,`Shadow`],[`off`,`Off`])}]},{title:`Suites`,base:[],fields:[{key:`suite.code`,label:`Write tests for passed cases`,help:`With a repository set under Code.`,type:`switch`,default:!0},{key:`suite.restore_sessions`,label:`Start each case signed in`,help:`Cases start from the saved logins' sessions. Off runs each case as its test starts, signed out.`,type:`switch`,default:!1},{key:`suite.case_check`,label:`Before a run, check the cases`,help:`Warn shows what the check found and runs every case; block leaves out the ones that cannot run as written.`,type:`select`,default:`warn`,options:Mu([`warn`,`Warn`],[`block`,`Block`],[`off`,`Off`])}]},{title:`Flaky tests`,help:`A test that fails and then passes is flaky; quarantine keeps it running, but its failures stop failing the run and CI.`,base:[`flaky`],fields:[{key:`retries`,label:`Runs again in the same run`,help:`0 to 3.`,type:`number`,default:1},{key:`quarantine`,label:`Quarantine`,type:`select`,default:`suggest`,options:Mu([`suggest`,`The agent asks first`],[`auto`,`ForgeQE does it`],[`off`,`Off: history only`])},{key:`flaky_after`,label:`Flaky from this score`,type:`number`,default:2}]},{title:`Release readiness`,help:`When a release reads GO, GO WITH RISKS or NO-GO.`,base:[`release`],fields:[{key:`max_critical`,label:`Open critical bugs allowed`,type:`number`,default:0},{key:`max_high`,label:`Open high bugs allowed`,type:`number`,default:0},{key:`min_pass_rate`,label:`Pass rate needed`,help:`Percent of executed test cases.`,type:`number`,default:95},{key:`require_tests`,label:`A story needs a test case`,help:`Without one it is a risk.`,type:`switch`,default:!0}]},{title:`Regression packs in a pipeline`,help:`Where Run in the pipeline sends a pack (forgeqe pack run --on pipeline).`,base:[`packs`,`pipeline`],fields:[{key:`default`,label:`Pipeline`,type:`select`,options:Mu([`github`,`GitHub Actions`],[`azure_devops`,`Azure Pipelines`])},{key:`github.repo`,label:`GitHub repository`,type:`text`,placeholder:`acme/shop-tests`},{key:`github.workflow`,label:`Workflow file`,type:`text`,default:`forgeqe-pack.yml`},{key:`github.ref`,label:`Branch`,type:`text`,default:`main`},{key:`azure_devops.project`,label:`Azure DevOps project`,type:`text`,placeholder:`Shop`},{key:`azure_devops.pipeline_id`,label:`Pipeline id`,type:`number`,placeholder:`42`},{key:`azure_devops.ref`,label:`Branch`,type:`text`,default:`refs/heads/main`},{key:`timeout_minutes`,label:`Wait for it`,help:`In minutes.`,type:`number`,default:60}]},{title:`Defect analysis`,help:`For a failed case that is a defect: a repro, suspect commits in the product's repository, and a root-cause hypothesis.`,base:[`defects`],fields:[{key:`product_repo`,label:`Product repository`,help:`The application's code: suspect commits, and what the analysis reads.`,type:`path`,placeholder:`../shop`},{key:`reproduce`,label:`Run a new defect's case once more`,help:`To see whether it repeats.`,type:`switch`,default:!0},{key:`analyze`,label:`Write a root-cause hypothesis`,help:`One model session per new defect or regression.`,type:`switch`,default:!0},{key:`max_analyses`,label:`Analyses per suite`,type:`number`,default:3}]}],Iu=[{title:`Accessibility`,base:[`quality`],fields:[{key:`accessibility.standard`,label:`Standard`,type:`select`,default:`wcag21aa`,options:Mu([`wcag2a`,`WCAG 2.0 A`],[`wcag21aa`,`WCAG 2.1 AA`],[`wcag22aa`,`WCAG 2.2 AA`],[`wcag21aaa`,`WCAG 2.1 AAA`],[`section508`,`Section 508`],[`en301549`,`EN 301 549`],[`best-practice`,`Best practice`])},{key:`budgets.accessibility.critical`,label:`Critical issues allowed`,help:`Empty: reported, never failed on.`,type:`number`},{key:`budgets.accessibility.serious`,label:`Serious issues allowed`,type:`number`},{key:`budgets.accessibility.ignore`,label:`Rules to ignore`,type:`list`,placeholder:`region`}]},{title:`Performance and visual changes`,base:[`quality`],fields:[{key:`budgets.performance`,label:`Performance budget`,help:`web-vitals uses Google's thresholds. Per-page budgets are edited under Files.`,type:`select`,options:Mu([`web-vitals`,`Core Web Vitals`])},{key:`budgets.visual`,label:`Visual change allowed`,help:`Percent of a page's pixels.`,type:`number`},{key:`visual.full_page`,label:`Compare whole pages`,type:`switch`,default:!1},{key:`visual.mask`,label:`Hide before comparing`,help:`CSS selectors, comma separated.`,type:`list`,placeholder:`.clock, #ad-slot`}]},{title:`API tests`,base:[`api`],fields:[{key:`capture`,label:`Record the app's API calls`,help:`In every browser run, with secrets redacted.`,type:`switch`,default:!0},{key:`base_url`,label:`API address`,type:`url`,placeholder:`https://staging.shop.example`},{key:`third_party`,label:`Keep calls to other sites`,type:`switch`,default:!1},{key:`timeout_seconds`,label:`Time limit per call`,help:`In seconds.`,type:`number`,default:30},{key:`headers`,label:`Headers on every call`,help:"Values are ${NAME} references to environment variables, never the values.",type:`kv`,placeholder:"Authorization = Bearer ${API_TOKEN}"}]}],Lu=[{title:`The product`,help:`Agents design and judge tests as an expert in this industry, and add the obligations of each regulation a feature touches.`,base:[`domain`],fields:[{key:`industry`,label:`Industry`,type:`text`,placeholder:`retail banking`},{key:`regulations`,label:`Regulations`,type:`list`,placeholder:`DORA, PSD2, GDPR`},{key:`notes`,label:`Notes`,type:`textarea`,placeholder:`Payments to UK and EU accounts; customers are consumers and small businesses.`}]},{title:`Instructions and knowledge`,base:[],fields:[{key:`prompts.step_instruction`,label:`Extra instruction for the browser agent`,type:`textarea`},{key:`prompts.dir`,label:`Shared prompts folder`,help:`Wins over .forgeqe/prompts.`,type:`path`,placeholder:`../shared-prompts`},{key:`knowledge.dir`,label:`Product knowledge folder`,type:`path`,default:`.forgeqe/knowledge`},{key:`knowledge.browser_max_chars`,label:`Knowledge per browser run`,help:`Characters. 0: none.`,type:`number`,default:1500},{key:`rag.url`,label:`Requirements search service`,help:`Checking a test case adds the passages it finds. POST {query, top_k}.`,type:`url`,placeholder:`http://localhost:8080/search`},{key:`rag.command`,label:`Or a local search command`,help:`Gets the query on stdin, prints passages. Comma separated.`,type:`list`,placeholder:`python, rag/search.py`},{key:`rag.token_env`,label:`Search service token`,type:`var`,placeholder:`RAG_TOKEN`},{key:`rag.top_k`,label:`Passages per search`,type:`number`,default:5},{key:`rag.timeout_seconds`,label:`Search time limit`,help:`In seconds.`,type:`number`,default:20},{key:`guardrails.dir`,label:`Guardrails folder`,type:`path`,default:`.forgeqe/guardrails`},{key:`prompts.guiderails`,label:`Guardrails kept in forgeqe.yaml`,help:`The older way: one rule per line. Prefer Guardrails.`,type:`textarea`}]},{title:`Capabilities`,help:`The agent gets the tools a request is about. Pin some on, or turn some off for this project (forgeqe features lists them).`,base:[`agent`,`capabilities`],fields:[{key:`always`,label:`Always given`,type:`list`,placeholder:`regression-packs`},{key:`off`,label:`Never given`,type:`list`,placeholder:`desktop-apps`}]}],Ru=[{id:`jira`,icon:Vr,name:`Jira`,note:`Test cases, results and bugs`,base:[`sources`,`jira`],vars:[`email_env`,`token_env`],fields:[{key:`url`,label:`Site`,type:`url`,placeholder:`https://acme.atlassian.net`},{key:`email_env`,label:`Email variable`,help:`Cloud only.`,type:`var`,default:`JIRA_EMAIL`},{key:`token_env`,label:`Token variable`,type:`var`,default:`JIRA_API_TOKEN`},{key:`mcp`,label:`MCP server`,type:`select`,default:`mcp-atlassian`,options:Mu([`mcp-atlassian`,`mcp-atlassian (Cloud and Server)`],[`rovo`,`Rovo (Atlassian's, Cloud)`],[`false`,`None`])}]},{id:`azure_devops`,icon:ti,name:`Azure DevOps`,note:`Test plans, work items and wiki`,base:[`sources`,`azure_devops`],vars:[`token_env`],fields:[{key:`org_url`,label:`Organization`,type:`url`,placeholder:`https://dev.azure.com/acme`},{key:`project`,label:`Project`,help:`Empty: every project.`,type:`text`,placeholder:`Shop`},{key:`token_env`,label:`Token variable`,help:`A PAT with Test Management and Work Items, read and write.`,type:`var`,default:`ADO_PAT`},{key:`mcp`,label:`Use Microsoft's MCP server`,type:`switch`,default:!0},{key:`mcp_domains`,label:`MCP tool groups`,type:`list`,placeholder:`core, work, work-items, pipelines`}]},{id:`xray`,icon:Rt,name:`Xray`,note:`Test cases in Jira, through Xray Cloud`,base:[`sources`,`xray`],vars:[`client_id_env`,`client_secret_env`],fields:[{key:`url`,label:`Address`,type:`url`,default:`https://xray.cloud.getxray.app`},{key:`client_id_env`,label:`Client id variable`,type:`var`,default:`XRAY_CLIENT_ID`},{key:`client_secret_env`,label:`Client secret variable`,type:`var`,default:`XRAY_CLIENT_SECRET`}]},{id:`confluence`,icon:Pe,name:`Confluence`,note:`Requirements pages`,base:[`sources`,`confluence`],vars:[`email_env`,`token_env`],fields:[{key:`url`,label:`Site`,help:`Empty: the Jira site, same account.`,type:`url`,placeholder:`https://acme.atlassian.net/wiki`},{key:`email_env`,label:`Email variable`,type:`var`,default:`CONFLUENCE_EMAIL`},{key:`token_env`,label:`Token variable`,type:`var`,default:`CONFLUENCE_TOKEN`},{key:`space`,label:`Space`,help:`Search this space only.`,type:`text`,placeholder:`QA`}]},{id:`testrail`,icon:_n,name:`TestRail`,note:`Test cases and results`,base:[`sources`,`testrail`],vars:[`email_env`,`token_env`],fields:[{key:`url`,label:`Site`,type:`url`,placeholder:`https://acme.testrail.io`},{key:`email_env`,label:`Email variable`,type:`var`,default:`TESTRAIL_EMAIL`},{key:`token_env`,label:`API key variable`,type:`var`,default:`TESTRAIL_API_KEY`},{key:`project_id`,label:`Project id`,type:`number`}]},{id:`zephyr`,icon:ot,name:`Zephyr Scale`,note:`Test cases and results`,base:[`sources`,`zephyr`],vars:[`token_env`],fields:[{key:`token_env`,label:`Token variable`,type:`var`,default:`ZEPHYR_API_TOKEN`},{key:`project_key`,label:`Project key`,type:`text`,placeholder:`SHOP`}]},{id:`qtest`,icon:Nr,name:`qTest`,note:`Test cases and results`,base:[`sources`,`qtest`],vars:[`token_env`],fields:[{key:`url`,label:`Site`,type:`url`,placeholder:`https://acme.qtestnet.com`},{key:`token_env`,label:`Token variable`,type:`var`,default:`QTEST_TOKEN`},{key:`project_id`,label:`Project id`,type:`number`},{key:`statuses`,label:`Status names`,help:`Your qTest's automation status for each result, one per line.`,type:`kv`,placeholder:`passed = PASS
21
+ failed = FAIL
22
+ error = BLOCKED`}]},{id:`github`,icon:Xt,name:`GitHub`,note:`Issues as test cases, bugs, pull requests`,base:[`sources`,`github`],vars:[`token_env`],fields:[{key:`repo`,label:`Repository`,type:`text`,placeholder:`acme/shop`},{key:`token_env`,label:`Token variable`,help:`Without it, the GitHub CLI's sign-in.`,type:`var`,default:`GITHUB_TOKEN`},{key:`toolsets`,label:`MCP tool groups`,type:`list`,placeholder:`repos, issues, pull_requests, actions`}]}],zu={title:`Bugs`,help:`A bug for each defect a run finds; a comment on the open bug while it still fails.`,base:[`sources`,`bugs`],fields:[{key:`system`,label:`Where bugs go`,type:`select`,options:Mu([`jira`,`Jira`],[`azure_devops`,`Azure DevOps`],[`github`,`GitHub`])},{key:`project`,label:`Project`,help:`Jira project key, or GitHub owner/repo.`,type:`text`,placeholder:`SHOP`},{key:`type`,label:`Issue type`,type:`text`,default:`Bug`},{key:`labels`,label:`Labels`,help:`Jira labels, or Azure DevOps tags.`,type:`list`,placeholder:`forgeqe`},{key:`area_path`,label:`Area path`,help:`Azure DevOps.`,type:`text`,placeholder:`Shop\\Web`},{key:`group_by`,label:`One bug per`,type:`select`,default:`defect`,options:Mu([`defect`,`Defect (cases failing the same way share one)`],[`case`,`Case`])},{key:`on_error`,label:`Also for cases that could not run`,type:`switch`,default:!1}]},Bu=[[`suite_failed`,`A suite failed`],[`suite_passed`,`A suite passed`],[`release`,`Release verdict`],[`eval_failed`,`An eval failed`],[`job_failed`,`A schedule failed`],[`job_recovered`,`A schedule recovered`],[`job_done`,`A schedule finished`],[`job_investigated`,`A failure was investigated`]],Vu=[{title:`Project report`,help:`forgeqe bi builds a static site from ForgeQE's data and the datasets below, with no server (Reports, Build project report).`,base:[`bi`],fields:[{key:`title`,label:`Title`,type:`text`,default:`ForgeQE BI`},{key:`evidence_dir`,label:`Evidence project`,type:`path`,default:`./evidence`},{key:`data_dir`,label:`Data folder`,type:`path`,default:`./evidence/sources/forgeqe`},{key:`build_dir`,label:`Built site`,type:`path`,default:`./.forgeqe/reports/bi`},{key:`collect`,label:`Teammates' exports`,help:`Files or folders of forgeqe bi export, comma separated.`,type:`list`,placeholder:`//share/qa-reports`}]}],Hu=[{key:`kind`,label:`From`,type:`select`,options:Mu([`ado_wiql`,`Azure DevOps (WIQL)`],[`jira_jql`,`Jira (JQL)`])},{key:`title`,label:`Title`,type:`text`,placeholder:`Current sprint stories`},{key:`project`,label:`Azure DevOps project`,type:`text`,placeholder:`Shop`},{key:`wiql`,label:`WIQL`,type:`textarea`,placeholder:`SELECT [System.Id] FROM WorkItems WHERE ...`},{key:`jql`,label:`JQL`,type:`textarea`,placeholder:`project = SHOP AND issuetype = Bug`}],Uu=[{title:`Running in parallel`,help:`More at once finishes sooner, and uses more of this machine (or of your grid's sessions) and more model calls at the same time.`,base:[],fields:[{key:`suite.parallel`,label:`Browsers at once in a suite`,help:`Test cases of one suite run side by side. Coding jobs always go one at a time.`,type:`number`,default:1},{key:`jobs.parallel`,label:`Scheduled runs at once`,help:`Over all jobs of the jobs service.`,type:`number`,default:2},{key:`monitor.parallel`,label:`Monitor checks at once`,help:`In each monitor round.`,type:`number`,default:1}]}],Wu=`Kept in your credential store; the file has only the variable's name.`,Gu=[{title:`Driver`,help:`Appium runs workflows step by step and explores goals; Maestro replays them and runs your team's own flows. The apps themselves are in Environments (kind: mobile).`,base:[`mobile`],fields:[{key:`driver`,label:`Replays run on`,type:`select`,default:`appium`,options:Mu([`appium`,`Appium`],[`maestro`,`Maestro`])},{key:`heal`,label:`Heal a replay that breaks`,help:`A step that no longer finds its element is found again from the screen.`,type:`switch`,default:!0},{key:`secrets`,label:`Secrets a flow may read`,help:`The only environment variables {{secret:…}} may read, comma separated.`,type:`list`,placeholder:`COURIER_PASSWORD`}]},{title:`Appium`,base:[`mobile`,`appium`],fields:[{key:`url`,label:`Appium server`,help:`Yours, or a device cloud's hub. No user or key in it.`,type:`url`,default:`http://127.0.0.1:4723`},{key:`capabilities`,label:`Capabilities`,help:`Added to every session, one per line.`,type:`kv`,placeholder:`appium:deviceName = Pixel 8
23
+ appium:udid = emulator-5554`},{key:`username_env`,label:`Device cloud user`,help:Wu,type:`var`,placeholder:`BROWSERSTACK_USERNAME`},{key:`access_key_env`,label:`Device cloud key`,help:Wu,type:`var`,placeholder:`BROWSERSTACK_ACCESS_KEY`}]},{title:`Maestro`,base:[`mobile`,`maestro`],fields:[{key:`command`,label:`Maestro program`,help:`With its arguments, comma separated.`,type:`list`,placeholder:`maestro`},{key:`device`,label:`Device`,help:`From adb devices or xcrun simctl list. Empty: the one connected.`,type:`text`,placeholder:`emulator-5554`},{key:`testmu.devices`,label:`TestMu AI devices`,help:`Run flows on TestMu AI's devices instead, comma separated.`,type:`list`,placeholder:`Pixel 6-14`},{key:`testmu.region`,label:`TestMu AI region`,type:`text`,placeholder:`us`},{key:`testmu.real_device`,label:`Real devices`,help:`Off: emulators and simulators.`,type:`switch`,default:!0},{key:`testmu.cli`,label:`hyperexecute program`,type:`path`,placeholder:`hyperexecute`},{key:`testmu.username_env`,label:`TestMu AI user`,help:Wu,type:`var`,default:`LT_USERNAME`},{key:`testmu.access_key_env`,label:`TestMu AI key`,help:Wu,type:`var`,default:`LT_ACCESS_KEY`}]}],Ku=[{title:`Windows desktop apps`,help:`The apps themselves are in Environments (kind: desktop).`,base:[`desktop`],fields:[{key:`heal`,label:`Heal a replay that breaks`,help:`The model re-finds a control that moved.`,type:`switch`,default:!0},{key:`screenshots`,label:`Screenshot each replayed step`,type:`switch`,default:!0},{key:`secrets`,label:`Secrets a workflow may read`,help:`The only environment variables {{secret:…}} may read, comma separated.`,type:`list`,placeholder:`BILLING_PASSWORD`}]}],qu=[{title:`Runtime`,help:`ForgeQE starts only what is declared here, with ports on 127.0.0.1 and read-only mounts inside the project. Images take an exact version or a digest, never latest.`,base:[`containers`],fields:[{key:`runtime`,label:`Runtime`,type:`select`,emptyLabel:`Docker, else Podman`,options:Mu([`docker`,`Docker`],[`podman`,`Podman`])},{key:`compose`,label:`Compose files`,help:`Services from a compose file too, checked by the same rules.`,type:`list`,placeholder:`docker-compose.yml`},{key:`mock.image`,label:`Mocks' image`,type:`text`,placeholder:`wiremock/wiremock:3.9.1`}]},{title:`Tests in a container`,help:`run_tests runs the repository's tests in this image, its services started first and reachable by name.`,base:[`containers`,`tests`],fields:[{key:`image`,label:`Image`,type:`text`,placeholder:`mcr.microsoft.com/playwright:v1.48.2-jammy`},{key:`services`,label:`Services first`,type:`list`,placeholder:`db`},{key:`env`,label:`Environment`,type:`kv`,placeholder:`CI = true`},{key:`secrets`,label:`Secrets`,help:`Environment variable names.`,type:`list`,placeholder:`TEST_DB_PASSWORD`}]},{title:`The coding agents' workspace`,help:`Their shell commands, builds and test runs happen in this image, with the repository mounted; the agents and their keys stay on this machine.`,base:[`containers`,`workspace`],fields:[{key:`image`,label:`Image`,type:`text`,placeholder:`node:20.18.0`},{key:`services`,label:`Services first`,type:`list`,placeholder:`db`},{key:`env`,label:`Environment`,type:`kv`},{key:`secrets`,label:`Secrets`,type:`list`}]},{title:`Browser in a container`,help:`Used when Browser is set to Chrome in Docker.`,base:[`containers`,`browser`],fields:[{key:`image`,label:`Image`,type:`text`,placeholder:`the image ForgeQE ships`},{key:`headless`,label:`Without a window`,type:`switch`,default:!0}]}],Ju=[{key:`image`,label:`Image`,help:`An exact version or a digest.`,type:`text`,placeholder:`postgres:16.4`},{key:`description`,label:`What it is`,type:`text`,placeholder:`Orders database`},{key:`ports`,label:`Ports`,help:`5432, or 15432:5432 (this machine:container). On 127.0.0.1 only.`,type:`list`,placeholder:`5432`},{key:`env`,label:`Environment`,type:`kv`,placeholder:`POSTGRES_DB = shop`},{key:`secrets`,label:`Secrets`,help:`Environment variable names (.env works).`,type:`list`,placeholder:`POSTGRES_PASSWORD`},{key:`volumes`,label:`Mounts`,help:`Read-only, inside the project: ./host:/container.`,type:`list`,placeholder:`./db/init:/docker-entrypoint-initdb.d`},{key:`command`,label:`Command`,help:`Its arguments, comma separated.`,type:`list`},{key:`depends_on`,label:`Starts after`,type:`list`,placeholder:`db`},{key:`ready.tcp`,label:`Ready when this port answers`,type:`number`,placeholder:`5432`},{key:`ready.http`,label:`Or when this path answers`,type:`text`,placeholder:`/health`},{key:`ready.port`,label:`On port`,type:`number`,placeholder:`8080`},{key:`timeout`,label:`Wait for it`,help:`In seconds.`,type:`number`,placeholder:`60`}],Yu=[{key:`description`,label:`What it holds`,type:`text`,placeholder:`Orders written by the checkout app`},{key:`url_env`,label:`Connection string`,help:`A whole URI, JDBC or ADO.NET string. Or give the parts below.`,type:`var`,placeholder:`ORDERS_DB_URL`},{key:`engine`,label:`Engine`,type:`select`,options:Mu([`postgres`,`PostgreSQL`],[`mysql`,`MySQL`],[`mariadb`,`MariaDB`],[`mssql`,`SQL Server`],[`oracle`,`Oracle`],[`snowflake`,`Snowflake`],[`redshift`,`Redshift`],[`cockroachdb`,`CockroachDB`],[`sqlite`,`SQLite`],[`duckdb`,`DuckDB`],[`mongodb`,`MongoDB`],[`kafka`,`Kafka`])},{key:`host`,label:`Host`,type:`text`,placeholder:`localhost`},{key:`port`,label:`Port`,type:`number`,placeholder:`5432`},{key:`database`,label:`Database`,type:`text`,placeholder:`test`},{key:`schema`,label:`Schema`,type:`text`},{key:`path`,label:`File`,help:`SQLite or DuckDB.`,type:`path`,placeholder:`./data/test.db`},{key:`user`,label:`User`,type:`text`,placeholder:`qa`},{key:`auth`,label:`Signs in with`,type:`select`,default:`password`,options:Mu([`password`,`A password`],[`azure`,`Microsoft Entra`],[`aws_iam`,`AWS IAM`],[`none`,`Nothing`])},{key:`password_env`,label:`Password`,type:`var`,placeholder:`FIXTURES_DB_PASSWORD`},{key:`region`,label:`AWS region`,type:`text`,placeholder:`eu-west-1`},{key:`ssl`,label:`TLS`,type:`select`,emptyLabel:`The driver's default`,options:Mu([`verify`,`Verify the certificate`],[`require`,`Require`],[`disable`,`Off`])},{key:`ssl_ca`,label:`CA certificate`,type:`path`,placeholder:`./certs/ca.pem`},{key:`writable`,label:`Writable`,help:`Allows confirmed INSERT, and UPDATE or DELETE with a WHERE clause. Each one is asked first.`,type:`switch`,default:!1},{key:`timeout_seconds`,label:`Query time limit`,help:`In seconds.`,type:`number`,placeholder:`30`},{key:`options`,label:`Driver options`,type:`kv`}];function Xu({groups:e,edit:t,continued:n}){return(0,q.jsx)(q.Fragment,{children:e.map((e,r)=>(0,q.jsxs)(`div`,{children:[(0,q.jsx)(dc,{help:e.help,first:r===0&&!n,children:e.title}),(0,q.jsx)(_c,{defs:e.fields,edit:t,base:e.base})]},e.title))})}function Zu(e,t,n,r){return t.map(t=>{let r=e[t]??n.find(e=>e.key===t)?.default;return typeof r==`string`?r:``}).filter(e=>e&&!r(e))}function Qu(e,t,n,r){let i=X(ms(e.value,t));return!r||r===n||!/^[A-Za-z0-9_.-]+$/.test(r)||r in i?!1:(e.set(gs(e.value,t,_s(i,n,r))),!0)}var $u=[{key:`url`,label:`Sign-in page`,type:`url`,placeholder:`https://staging.shop.example/login`},{key:`domains`,label:`Or sites`,help:`Comma separated; * matches a subdomain.`,type:`list`,placeholder:`https://staging.shop.example, https://*.shop.example`},{key:`username_env`,label:`User name variable`,type:`var`,placeholder:`SHOP_USER`},{key:`password_env`,label:`Password variable`,type:`var`,placeholder:`SHOP_PASSWORD`},{key:`totp_env`,label:`Authenticator secret variable`,help:`Optional: a base32 secret for two-factor codes.`,type:`var`,placeholder:`SHOP_TOTP_SECRET`},{key:`save_session`,label:`Keep the session`,help:`The next run starts signed in (.forgeqe/sessions). Off signs in every run.`,type:`switch`,default:!0}];function ed({edit:e}){let[t,n]=(0,v.useState)(``),r=Qs(),i=X(e.value.logins);return(0,q.jsxs)(q.Fragment,{children:[Object.keys(i).length===0&&(0,q.jsx)(`p`,{className:`m-0 py-5 text-sm text-muted`,children:`No sign-ins yet. Add one for each app the agent signs in to.`}),Object.entries(i).map(([i,a],o)=>{let s=X(a),c=Zu(s,[`username_env`,`password_env`],$u,e=>rc(r,e)),l=s.username_env||s.password_env;return(0,q.jsxs)(vc,{lead:(0,q.jsx)(fs,{icon:pn}),title:i,meta:String(s.url||(Array.isArray(s.domains)?s.domains.join(`, `):``)||`No site yet`),state:l?c.length?(0,q.jsx)(`span`,{className:`text-sm text-warn`,title:c.join(`, `),children:c.length===1?`Needs ${c[0]}`:`Needs ${c.length} variables`}):(0,q.jsx)(`span`,{className:`text-sm text-pass`,children:`Ready`}):(0,q.jsx)(`span`,{className:`text-sm text-muted`,children:`Not set up`}),open:t===i,onToggle:()=>n(t===i?``:i),actions:(0,q.jsx)(J,{size:`sm`,"aria-label":`Remove ${i}`,onClick:()=>e.set(gs(e.value,[`logins`,i],void 0)),children:`Remove`}),children:[(0,q.jsx)(uc,{label:`Name`,help:(0,q.jsxs)(q.Fragment,{children:[`Sign in by hand (SSO, captcha) with `,(0,q.jsxs)(`code`,{className:`font-mono text-[13px]`,children:[`forgeqe login `,i]}),`.`]}),htmlFor:`login-${o}`,children:(0,q.jsx)(qs,{id:`login-${o}`,defaultValue:i,spellCheck:!1,onBlur:t=>{Qu(e,[`logins`],i,t.target.value.trim())?n(t.target.value.trim()):t.target.value=i},className:`max-w-[420px] flex-[1_1_280px] font-mono text-[13px]`})}),(0,q.jsx)(_c,{defs:$u,edit:e,base:[`logins`,i]})]},o)}),(0,q.jsx)(`div`,{className:`pt-4`,children:(0,q.jsx)(J,{onClick:()=>{let t=vs(i,`shop`);e.set(gs(e.value,[`logins`,t],{username_env:`${t.toUpperCase().replace(/[^A-Z0-9]/g,`_`)}_USER`,password_env:`${t.toUpperCase().replace(/[^A-Z0-9]/g,`_`)}_PASSWORD`})),n(t)},children:`Add a sign-in`})})]})}function td({rules:e,others:t,onChange:n}){let[r,i]=(0,v.useState)(``),[a,o]=(0,v.useState)(``),s=r.trim().length>0;return(0,q.jsxs)(q.Fragment,{children:[e.length===0&&t.length===0&&(0,q.jsx)(`p`,{className:`m-0 py-5 text-sm text-muted`,children:`No rules yet. Add the first one below.`}),e.map((t,r)=>(0,q.jsxs)(`div`,{className:`flex min-h-14 flex-wrap items-center gap-x-4 gap-y-2 border-t border-line-soft py-2.5`,children:[(0,q.jsx)(`span`,{className:`flex-[1_1_300px] leading-normal`,children:t}),(0,q.jsx)(J,{size:`sm`,"aria-label":`Remove rule: ${t}`,onClick:()=>n(e.filter((e,t)=>t!==r)),children:`Remove`})]},r)),t.map(e=>(0,q.jsxs)(`div`,{className:`flex min-h-14 flex-wrap items-center gap-x-4 gap-y-1 border-t border-line-soft py-2.5`,children:[(0,q.jsx)(`span`,{className:`flex-[1_1_300px] leading-normal`,children:e.text}),(0,q.jsx)(`span`,{className:`font-mono text-[13px] text-muted`,children:e.source})]},e.text)),(0,q.jsxs)(`form`,{onSubmit:a=>{a.preventDefault();let s=r.replace(/^\s*[-*+]\s+/,``).trim();if(s){if(s.length>300)return o(`A rule is at most 300 characters: make it shorter.`);if([...e,...t.map(e=>e.text)].some(e=>e.toLowerCase()===s.toLowerCase()))return o(`That rule is already in force.`);o(``),n([...e,s]),i(``)}},className:`mt-4 flex items-center gap-2 rounded-full border border-line py-1.5 pr-1.5 pl-5 has-[input:focus-visible]:outline-2 has-[input:focus-visible]:outline-offset-2 has-[input:focus-visible]:outline-accent`,children:[(0,q.jsx)(`label`,{htmlFor:`rule`,className:`sr-only`,children:`New rule`}),(0,q.jsx)(`input`,{id:`rule`,value:r,maxLength:300,onChange:e=>{i(e.target.value),o(``)},placeholder:`Add a rule every agent must follow`,className:`min-h-10 min-w-0 flex-auto border-0 bg-transparent text-[15px] outline-none focus-visible:outline-none`}),(0,q.jsx)(`button`,{type:`submit`,disabled:!s,className:K(`inline-flex min-h-10 cursor-pointer items-center rounded-full border-0 px-4 text-sm font-medium disabled:cursor-not-allowed`,s?`bg-accent text-white hover:bg-accent-hover`:`bg-surface-strong text-muted`),children:`Add`})]}),a&&(0,q.jsx)(`p`,{role:`alert`,className:`mt-2 mb-0 text-sm text-fail`,children:a})]})}function nd(e){let t=e=>e.split(/[\\/]/).pop()||e,n=e.paths.environments;return[{id:`config`,label:t(e.paths.config),file:`config`,path:e.paths.config,text:e.raw.config},{id:`models`,label:t(e.paths.models),file:`models`,path:e.paths.models,text:e.raw.models},...e.raw.environments.map(e=>({id:`env:${e.name}`,label:t(e.path),file:`environments`,env:n.layout===`dir`?e.name:void 0,path:e.path,text:e.text}))]}function rd({snap:e,dirty:t,onSave:n}){let r=nd(e),[i,a]=(0,v.useState)(`config`),[o,s]=(0,v.useState)({}),[c,l]=(0,v.useState)(!1),u=r.find(e=>e.id===i)||r[0],d=o[u.id]??u.text,f=d!==u.text,p=e=>`file-tab-${e.id.replace(/[^A-Za-z0-9_-]/g,`_`)}`;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`div`,{role:`tablist`,"aria-label":`Files`,className:`mb-4 flex flex-wrap gap-x-4 border-b border-line-soft`,children:r.map(e=>(0,q.jsx)(`button`,{id:p(e),type:`button`,role:`tab`,"aria-selected":u.id===e.id,"aria-controls":`file-panel`,tabIndex:u.id===e.id?0:-1,onClick:()=>a(e.id),onKeyDown:t=>{let n=r.indexOf(e),i=t.key===`ArrowRight`?r[(n+1)%r.length]:t.key===`ArrowLeft`?r[(n-1+r.length)%r.length]:void 0;i&&(a(i.id),document.getElementById(p(i))?.focus())},className:K(`-mb-px min-h-10 cursor-pointer border-0 border-b-2 bg-transparent px-0.5 font-mono text-[13px]`,u.id===e.id?`border-ink text-ink`:`border-transparent text-muted hover:text-ink`),children:e.label},e.id))}),(0,q.jsxs)(`div`,{id:`file-panel`,role:`tabpanel`,"aria-labelledby":p(u),className:`flex flex-col gap-3`,children:[(0,q.jsx)(`p`,{className:`m-0 font-mono text-[13px] break-all text-muted`,children:u.path}),e.errors[u.file]&&(0,q.jsxs)(`p`,{role:`alert`,className:`m-0 rounded-[10px] bg-fail-soft px-3 py-2 text-sm text-fail`,children:[`Does not parse: `,e.errors[u.file]]}),(0,q.jsx)(`label`,{htmlFor:`file-text`,className:`sr-only`,children:u.label}),(0,q.jsx)(Js,{id:`file-text`,spellCheck:!1,rows:24,value:d,onChange:e=>s({...o,[u.id]:e.target.value}),className:`font-mono text-[13px] leading-[1.6] whitespace-pre`}),(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,q.jsx)(J,{variant:`primary`,disabled:!f||c||t[u.file],onClick:async()=>{l(!0);try{if(await n(u.file,d,u.env)){let e={...o};delete e[u.id],s(e)}}finally{l(!1)}},children:c?`Saving…`:`Save file`}),f&&(0,q.jsx)(J,{onClick:()=>{let e={...o};delete e[u.id],s(e)},disabled:c,children:`Discard`}),t[u.file]&&(0,q.jsx)(`span`,{className:`text-sm text-muted`,children:`Save or discard the form's changes to this file first.`})]})]})]})}var id=/^[A-Za-z0-9][A-Za-z0-9_-]{0,62}$/;function ad({edit:e,base:t,defs:n,noun:r,meta:i,start:a={},placeholder:o}){let s=X(ms(e.value,t)),[c,l]=(0,v.useState)(null),[u,d]=(0,v.useState)(``),f=u&&!id.test(u)?`Letters, digits, - and _.`:u in s?`There is a ${r} named ${u}.`:``,p=()=>{u&&!f&&(e.set(gs(e.value,[...t,u],{...a})),l(u),d(``))};return(0,q.jsxs)(q.Fragment,{children:[Object.keys(s).length===0&&(0,q.jsx)(`p`,{className:`m-0 border-t border-line-soft py-4 text-sm text-muted`,children:`None yet.`}),Object.entries(s).map(([r,a])=>(0,q.jsx)(vc,{title:r,meta:i(X(a))||void 0,open:c===r,onToggle:()=>l(c===r?null:r),actions:(0,q.jsx)(J,{size:`sm`,"aria-label":`Remove ${r}`,onClick:()=>e.set(gs(e.value,[...t,r],void 0)),children:`Remove`}),children:(0,q.jsx)(_c,{defs:n,edit:e,base:[...t,r]})},r)),(0,q.jsxs)(`div`,{className:`flex flex-wrap items-start gap-2 border-t border-line-soft pt-4`,children:[(0,q.jsxs)(`div`,{className:`flex flex-[0_1_260px] flex-col gap-1`,children:[(0,q.jsx)(qs,{"aria-label":`New ${r}'s name`,value:u,spellCheck:!1,placeholder:`Name, such as ${o}`,"aria-invalid":!!f,onChange:e=>d(e.target.value.trim()),onKeyDown:e=>e.key===`Enter`&&p()}),f&&(0,q.jsx)(`span`,{className:`text-[13px] text-fail`,children:f})]}),(0,q.jsxs)(J,{disabled:!u||!!f,onClick:p,children:[`Add a `,r]})]})]})}var od=[`Test cases and bugs`,`Browser grids`,`Notifications`,`Other tools`],sd=[...Ru.map(e=>({id:e.id,kind:`source`,group:od[0],name:e.name,note:e.note,icon:e.icon,logo:Ps[e.id]})),{id:`browserstack`,kind:`grid`,group:od[1],name:`BrowserStack`,note:`Remote browsers and devices`,icon:ct,logo:Ps.browserstack},{id:`testmu`,kind:`grid`,group:od[1],name:`TestMu AI`,note:`Remote browsers (LambdaTest)`,icon:ct},{id:`teams`,kind:`teams`,group:od[2],name:`Microsoft Teams`,note:`A channel's webhook, for suites, releases and schedules`,icon:Cn,logo:As,many:!0},{id:`email`,kind:`email`,group:od[2],name:`Email`,note:`The same alerts by email`,icon:Cn,many:!0},{id:`mcp`,kind:`mcp`,group:od[3],name:`MCP server`,note:`Any other system with an MCP server, as tools for ForgeQE's agent`,icon:Me,many:!0}],cd={browserstack:[{key:`username_env`,label:`User name variable`,type:`var`,default:`BROWSERSTACK_USERNAME`},{key:`access_key_env`,label:`Access key variable`,type:`var`,default:`BROWSERSTACK_ACCESS_KEY`},{key:`browser`,label:`Browser`,help:`ForgeQE drives the browser over CDP: Chrome or Edge.`,type:`select`,default:`chrome`,options:[{value:`chrome`,label:`Chrome`},{value:`edge`,label:`Edge`}]},{key:`browser_version`,label:`Browser version`,type:`text`,default:`latest`},{key:`os`,label:`Operating system`,type:`select`,default:`Windows`,options:[{value:`Windows`,label:`Windows`},{value:`OS X`,label:`macOS`}]},{key:`os_version`,label:`Its version`,type:`text`,placeholder:`11, or Sequoia`},{key:`project`,label:`Project`,type:`text`,placeholder:`ForgeQE`},{key:`build`,label:`Build`,type:`text`,placeholder:`nightly`},{key:`local`,label:`Through BrowserStack Local`,help:`For sites only your network reaches.`,type:`switch`,default:!1}],testmu:[{key:`username_env`,label:`User name variable`,type:`var`,default:`LT_USERNAME`},{key:`access_key_env`,label:`Access key variable`,type:`var`,default:`LT_ACCESS_KEY`},{key:`browser`,label:`Browser`,help:`TestMu AI's CDP endpoint serves Chrome.`,type:`select`,default:`Chrome`,options:[{value:`Chrome`,label:`Chrome`}]},{key:`browser_version`,label:`Browser version`,type:`text`,default:`latest`},{key:`platform`,label:`Platform`,type:`text`,default:`Windows 11`,placeholder:`Windows 11, or macOS Sequoia`},{key:`project`,label:`Project`,type:`text`,placeholder:`ForgeQE`},{key:`build`,label:`Build`,type:`text`,placeholder:`nightly`},{key:`local`,label:`Through the LambdaTest tunnel`,help:`For sites only your network reaches.`,type:`switch`,default:!1}]},ld={browserstack:{provider:`browserstack`,remote:{browser:`chrome`,browser_version:`latest`,os:`Windows`,os_version:`11`,username_env:`BROWSERSTACK_USERNAME`,access_key_env:`BROWSERSTACK_ACCESS_KEY`,project:`ForgeQE`,local:!1}},testmu:{provider:`testmu`,remote:{browser:`Chrome`,browser_version:`latest`,platform:`Windows 11`,username_env:`LT_USERNAME`,access_key_env:`LT_ACCESS_KEY`,project:`ForgeQE`,local:!1}}},ud=[{key:`host`,label:`Mail server`,type:`text`,placeholder:`smtp.office365.com`},{key:`port`,label:`Port`,help:`587 is STARTTLS; 465 is TLS from the start.`,type:`number`,default:587},{key:`username_env`,label:`User name variable`,type:`var`,placeholder:`SMTP_USERNAME`},{key:`password_env`,label:`Password variable`,type:`var`,placeholder:`SMTP_PASSWORD`},{key:`from`,label:`From`,help:`Empty: the user name.`,type:`text`,placeholder:`ForgeQE <qa-bot@example.com>`},{key:`to`,label:`To`,help:`Comma separated.`,type:`list`,placeholder:`qa-team@example.com`}],dd=/^[A-Za-z0-9_-][A-Za-z0-9_.-]*$/;function fd({entry:e,title:t,meta:n,state:r,onEdit:i,onRemove:a}){return(0,q.jsxs)(`div`,{className:`flex min-h-[68px] flex-wrap items-center gap-x-4 gap-y-2 border-t border-line-soft py-3`,children:[(0,q.jsx)(fs,{icon:e.icon,logo:e.logo}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_220px] flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:t}),(0,q.jsx)(`span`,{className:`text-sm text-muted`,children:n}),r]}),(0,q.jsxs)(`span`,{className:`flex gap-2`,children:[(0,q.jsx)(J,{size:`sm`,"aria-label":`Edit ${t}`,onClick:i,children:`Edit`}),(0,q.jsx)(J,{size:`sm`,"aria-label":`Disconnect ${t}`,onClick:a,children:`Disconnect`})]})]})}var pd=e=>e.length?(0,q.jsx)(`span`,{className:`text-[13px] text-warn`,children:e.length===1?`Needs its key or password: Edit to add it`:`Needs ${e.length} values: Edit to add them`}):(0,q.jsx)(`span`,{className:`text-[13px] text-pass`,children:`Connected`}),md={integrations:[od[0],od[1]],notifications:[od[2]],mcp:[od[3]]};function hd({edit:e,grids:t,setGrids:n,gridPaths:r,view:i=`integrations`}){let[a,o]=(0,v.useState)(null),s=Qs(),c=e=>rc(s,e),l=e.value,u=e.vars,d=X(ms(l,[`notify`,`channels`])),f=X(l.mcp),p=String(ms(l,[`browser`,`provider`])??`local`),m=e=>sd.find(t=>t.id===e),h=e=>{let t=Ru.find(t=>t.id===e),n=ms(l,t.base);return n!==void 0&&n!==!1},g=e=>e.kind===`source`?h(e.id):e.kind===`grid`&&!!t[e.id],_=Object.fromEntries(od.map(e=>[e,[]]));for(let t of Ru){if(!h(t.id))continue;let n=X(ms(l,t.base));_[od[0]].push((0,q.jsx)(fd,{entry:m(t.id),title:t.name,meta:String(n.url||n.org_url||n.repo||t.note),state:pd(Zu(n,t.vars,t.fields,c)),onEdit:()=>o({step:`form`,entry:m(t.id),mode:`edit`,name:t.id,from:t.id,value:n}),onRemove:()=>e.set(gs(l,t.base,void 0))},t.id))}for(let e of[`browserstack`,`testmu`]){let n=t[e];if(!n)continue;let r=X(n.remote),i=m(e),a=[(e=>typeof e==`string`&&e?e[0].toUpperCase()+e.slice(1):e)(r.browser),r.os?`${r.os} ${r.os_version||``}`.trim():r.platform].filter(Boolean).join(`, `);_[od[1]].push((0,q.jsx)(fd,{entry:i,title:i.name,meta:`${a}${p===e?`, used for browser runs`:``}`,state:pd(Zu(r,[`username_env`,`access_key_env`],cd[e],c)),onEdit:()=>o({step:`form`,entry:i,mode:`edit`,name:e,from:e,value:n,useGrid:p===e}),onRemove:()=>y(e)},e))}for(let[t,n]of Object.entries(d)){let r=X(n),i=m(r.teams?`teams`:`email`),a=Array.isArray(r.on)?r.on.length:0,s=[...r.teams?Zu(X(r.teams),[`webhook_env`],[],c):[],...r.email?Zu(X(r.email),[`username_env`,`password_env`],[],c):[]];_[od[2]].push((0,q.jsx)(fd,{entry:i,title:t,meta:`${[r.teams&&`Teams`,r.email&&`Email`].filter(Boolean).join(` and `)||`No way to reach it yet`}, ${a} event${a===1?``:`s`}`,state:pd(s),onEdit:()=>o({step:`form`,entry:i,mode:`edit`,name:t,from:t,value:r}),onRemove:()=>e.set(gs(l,[`notify`,`channels`,t],void 0))},`ch-${t}`))}for(let[t,n]of Object.entries(f)){let r=X(n);_[od[3]].push((0,q.jsx)(fd,{entry:{...m(`mcp`),icon:_r},title:t,meta:String(r.url||r.command||`MCP server`),onEdit:()=>o({step:`form`,entry:m(`mcp`),mode:`edit`,name:t,from:t,value:r}),onRemove:()=>e.set(gs(l,[`mcp`,t],void 0))},`mcp-${t}`))}function y(r){let i=gs(l,[`browser`,`providers`,r],void 0);p===r&&(i=gs(i,[`browser`,`provider`],`local`)),e.set(i),n({...t,[r]:null})}function b(e){if(e.kind===`source`){let t=Ru.find(t=>t.id===e.id);o({step:`form`,entry:e,mode:`add`,name:e.id,from:e.id,value:Object.fromEntries(t.fields.filter(e=>e.type===`var`&&e.default).map(e=>[e.key,e.default]))})}else e.kind===`grid`?o({step:`form`,entry:e,mode:`add`,name:e.id,from:e.id,value:ld[e.id],useGrid:p===`local`}):e.kind===`teams`?o({step:`form`,entry:e,mode:`add`,name:``,from:``,value:{teams:{webhook_env:`TEAMS_WEBHOOK_URL`},on:[`suite_failed`,`job_failed`]}}):e.kind===`email`?o({step:`form`,entry:e,mode:`add`,name:``,from:``,value:{email:{port:587},on:[`suite_failed`,`job_failed`]}}):o({step:`form`,entry:e,mode:`add`,name:``,from:``,value:{url:``}})}function x(i){let a=i.entry.kind;if(a===`source`)e.set(gs(l,Ru.find(e=>e.id===i.entry.id).base,i.value));else if(a===`grid`){let a=i.entry.id,o=gs(l,[`browser`,`providers`,a],r[a]);i.useGrid?o=gs(o,[`browser`,`provider`],a):p===a&&(o=gs(o,[`browser`,`provider`],`local`)),e.set(o),n({...t,[a]:i.value})}else{let t=a===`mcp`?[`mcp`]:[`notify`,`channels`],n=l;i.mode===`edit`&&i.from!==i.name&&(n=gs(n,[...t,i.from],void 0)),e.set(gs(n,[...t,i.name],i.value))}o(null)}let S=md[i],C=S.filter(e=>_[e].length),w=i===`mcp`?`Add an MCP server`:i===`notifications`?`Add a channel`:`Add an integration`,T=i===`mcp`?`No other MCP servers. The test case systems' own MCP servers are set with each system under Integrations.`:i===`notifications`?`No channels yet: add a Teams channel or an email list, and pick the events it gets.`:`Nothing connected yet.`;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,q.jsx)(`p`,{className:`m-0 max-w-[60ch] text-sm text-muted`,children:C.length?i===`mcp`?`Their tools show to ForgeQE's agent as <name>_<tool>. Secrets are {env:NAME} references, never values.`:i===`notifications`?`Each channel gets the events it picks.`:`Connected to ForgeQE.`:T}),(0,q.jsxs)(J,{onClick:()=>i===`mcp`?b(m(`mcp`)):o({step:`catalog`}),children:[(0,q.jsx)($n,{size:18,"aria-hidden":`true`}),w]})]}),C.map(e=>(0,q.jsxs)(`div`,{children:[S.length>1&&(0,q.jsx)(dc,{children:e}),_[e]]},e)),i===`notifications`&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(dc,{children:`Links in alerts`}),(0,q.jsx)(hc,{def:{key:`notify.report_url`,label:`Where reports are published`,help:`Teams and email alerts link each report there.`,type:`url`,placeholder:`https://reports.example.com/forgeqe`},edit:e,base:[]})]}),i===`integrations`&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(dc,{children:`Results and bugs`}),(0,q.jsx)(hc,{def:{key:`sources.write_back`,label:`Post results back`,help:`To the system each test case came from.`,type:`switch`,default:!0},edit:e,base:[]}),(0,q.jsx)(dc,{help:zu.help,children:(0,q.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,q.jsx)(Be,{size:18,"aria-hidden":`true`}),zu.title]})}),(0,q.jsx)(_c,{defs:zu.fields,edit:e,base:zu.base})]}),(0,q.jsx)(gd,{panel:a,setPanel:o,isOn:g,onPick:b,onApply:x,vars:u,taken:(e,t)=>t in(e===`mcp`?f:d),groups:S})]})}function gd({panel:e,setPanel:t,isOn:n,onPick:r,onApply:i,vars:a,taken:o,groups:s}){let c=Qs(),[l,u]=(0,v.useState)({busy:!1}),d=e?.step===`form`?`${e.entry.id}/${e.from}`:e?.step||``;(0,v.useEffect)(()=>u({busy:!1}),[d]);let f=()=>{t(null),u({busy:!1})};if(e?.step===`form`){let n=e,r=n.entry.kind,s=e=>t({...n,value:e}),d=r===`teams`||r===`email`||r===`mcp`,p=d&&n.name?dd.test(n.name)?n.name!==n.from&&o(r,n.name)?`Another one has this name.`:``:`Use letters, digits and _ . -`:``,m=r===`mcp`&&X(n.value).command===void 0,h=(!d||n.name&&!p)&&(r!==`mcp`||String(X(n.value)[m?`url`:`command`]||``).trim()),g=n.mode===`add`?`Connect ${n.entry.name}`:`Edit ${d?n.name:n.entry.name}`,_=!(r===`mcp`&&!m);return(0,q.jsxs)(Gs,{open:!0,onClose:f,title:g,description:`Saved as soon as you connect it. Keys and passwords you type are kept in ${$s(c.store)}, never in the settings files.`,footer:(0,q.jsxs)(q.Fragment,{children:[n.mode===`add`&&(0,q.jsx)(J,{onClick:()=>t({step:`catalog`}),children:`Back`}),_&&(0,q.jsx)(J,{onClick:async()=>{u({busy:!0});let e=Object.fromEntries(Object.entries(c.pending).filter(e=>typeof e[1]==`string`));try{let t=await A.test(r,n.entry.id,n.value,e);u({busy:!1,ok:t.ok,message:t.message})}catch(e){u({busy:!1,ok:!1,message:e.message})}},disabled:l.busy,className:`mr-auto`,children:l.busy?`Testing…`:r===`teams`||r===`email`?`Send a test message`:`Test connection`}),!_&&(0,q.jsx)(`span`,{className:`mr-auto`}),(0,q.jsx)(J,{onClick:f,children:`Cancel`}),(0,q.jsx)(J,{variant:`primary`,disabled:!h,onClick:()=>i(n),children:n.mode===`add`?`Connect`:`Done`})]}),children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-3 pt-5 pb-2`,children:[(0,q.jsx)(fs,{icon:n.entry.icon,logo:n.entry.logo,size:`lg`}),(0,q.jsx)(`span`,{className:`text-sm text-muted`,children:n.entry.note})]}),(0,q.jsx)(`div`,{"aria-live":`polite`,children:l.message&&(0,q.jsxs)(`p`,{role:l.ok?`status`:`alert`,className:K(`mt-2 mb-1 flex items-start gap-2 rounded-[12px] px-3 py-2 text-sm`,l.ok?`bg-pass-soft text-pass`:`bg-fail-soft text-fail`),children:[l.ok?(0,q.jsx)(Qe,{size:18,"aria-hidden":`true`,className:`mt-0.5 flex-none`}):(0,q.jsx)(it,{size:18,"aria-hidden":`true`,className:`mt-0.5 flex-none`}),(0,q.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:l.message})]})}),d&&(0,q.jsx)(uc,{label:`Name`,help:p?(0,q.jsx)(`span`,{className:`text-fail`,children:p}):r===`mcp`?`Its tools show as <name>_<tool> to ForgeQE's agent.`:`A short name for the channel, such as qa or release.`,htmlFor:`int-name`,stacked:!0,children:(0,q.jsx)(qs,{id:`int-name`,value:n.name,spellCheck:!1,"aria-invalid":!!p,placeholder:r===`mcp`?`xray`:`qa`,onChange:e=>t({...n,name:e.target.value.trim()})})}),r===`source`&&(0,q.jsx)(_c,{defs:Ru.find(e=>e.id===n.entry.id).fields,edit:{value:n.value,set:s,vars:a},base:[],stacked:!0}),r===`grid`&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(_c,{defs:cd[n.entry.id],edit:{value:n.value,set:s,vars:a},base:[`remote`],stacked:!0}),(0,q.jsxs)(`label`,{className:`mt-2 flex min-h-11 cursor-pointer items-center gap-3 text-sm`,children:[(0,q.jsx)(`input`,{type:`checkbox`,checked:!!n.useGrid,onChange:e=>t({...n,useGrid:e.target.checked}),className:`size-4 accent-accent`}),`Run browser tests here by default`]})]}),(r===`teams`||r===`email`)&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(_d,{value:n.value,set:s}),r===`teams`||X(n.value).teams?(0,q.jsx)(hc,{def:{key:`teams.webhook_env`,label:`Webhook variable`,help:`The address of a Teams Workflows webhook (post to a channel when a webhook request is received). It is a secret, so it is kept in your credential store.`,type:`var`,placeholder:`TEAMS_WEBHOOK_URL`},edit:{value:n.value,set:s,vars:a},base:[],stacked:!0}):null,r===`email`||X(n.value).email?(0,q.jsx)(_c,{defs:ud,edit:{value:n.value,set:s,vars:a},base:[`email`],stacked:!0}):null]}),r===`mcp`&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`fieldset`,{className:`m-0 border-0 p-0 py-3`,children:[(0,q.jsx)(`legend`,{className:`mb-2 font-medium`,children:`Where it runs`}),[[!0,`A server at an address`],[!1,`A command on this machine`]].map(([e,t])=>(0,q.jsxs)(`label`,{className:`flex min-h-10 cursor-pointer items-center gap-3 text-sm`,children:[(0,q.jsx)(`input`,{type:`radio`,name:`mcp-kind`,checked:m===e,onChange:()=>s(e?{url:``}:{command:``}),className:`size-4 accent-accent`}),t]},String(e)))]}),m?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(hc,{def:{key:`url`,label:`Address`,type:`url`,placeholder:`https://api.githubcopilot.com/mcp/`},edit:{value:n.value,set:s,vars:a},base:[],stacked:!0}),(0,q.jsx)(vd,{value:n.value,set:s,vars:a})]}):(0,q.jsx)(hc,{def:{key:`command`,label:`Command`,help:`Started by ForgeQE's agent runtime. Name secrets as {env:NAME}, never their values.`,type:`path`,placeholder:`npx -y @triparc/xray-mcp`},edit:{value:n.value,set:s,vars:a},base:[],stacked:!0})]})]})}return(0,q.jsx)(Gs,{open:e?.step===`catalog`,onClose:f,title:`Add an integration`,description:`Pick a service to connect.`,footer:(0,q.jsx)(J,{onClick:f,children:`Close`}),children:s.map(e=>(0,q.jsxs)(`div`,{className:`pt-4`,children:[(0,q.jsx)(`h3`,{className:`m-0 mb-1 text-sm font-medium text-muted`,children:e}),sd.filter(t=>t.group===e).map(e=>{let t=!e.many&&n(e);return(0,q.jsxs)(`button`,{type:`button`,disabled:t,onClick:()=>r(e),className:K(`flex min-h-14 w-full items-center gap-3 rounded-[12px] border-0 bg-transparent px-2 py-2 text-left text-ink`,t?`cursor-default`:`cursor-pointer hover:bg-surface-muted`),children:[(0,q.jsx)(fs,{icon:e.icon,logo:e.logo}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:e.name}),(0,q.jsx)(`span`,{className:`text-sm text-muted`,children:e.note})]}),(0,q.jsx)(`span`,{className:K(`text-[13px]`,t?`text-pass`:`text-accent`),children:t?`Connected`:e.many?`Add`:`Connect`})]},e.id)})]},e))})}function _d({value:e,set:t}){let n=Array.isArray(e.on)?e.on.map(String):[];return(0,q.jsxs)(`fieldset`,{className:`m-0 border-0 p-0 py-3`,children:[(0,q.jsx)(`legend`,{className:`mb-2 font-medium`,children:`Tell it when`}),(0,q.jsx)(`div`,{className:`grid grid-cols-1 gap-x-4 sm:grid-cols-2`,children:Bu.map(([r,i])=>(0,q.jsxs)(`label`,{className:`flex min-h-10 cursor-pointer items-center gap-2 text-sm`,children:[(0,q.jsx)(`input`,{type:`checkbox`,checked:n.includes(r),onChange:i=>t({...e,on:i.target.checked?[...n,r]:n.filter(e=>e!==r)}),className:`size-4 accent-accent`}),i]},r))})]})}function vd({value:e,set:t,vars:n}){let r=String(X(e.headers).Authorization||``),i=/\{env:([A-Za-z_][A-Za-z0-9_]*)\}/.exec(r)?.[1]||``;return(0,q.jsx)(hc,{def:{key:`token`,label:`Token`,help:`Sent as a bearer token. Leave it empty for none.`,type:`var`,placeholder:`MCP_TOKEN`},edit:{value:{token:i},set:n=>{let r=String(n.token||``),i={...X(e.headers)};r?i.Authorization=`Bearer {env:${r}}`:delete i.Authorization,t(Object.keys(i).length?{...e,headers:i}:(({headers:e,...t})=>t)(e))},vars:n},base:[],stacked:!0})}var $=[{key:`checks`,label:`Checks`,help:`Test case sources, comma separated: files or folders, jira:…, ado:…, testrail:…`,type:`list`,placeholder:`checks/smoke.yaml, jira:SHOP-12`},{key:`every`,label:`How often`,help:`30s, 15m, 1h or 1h30m; at least 10s.`,type:`text`,default:`15m`},{key:`replay`,label:`Checking a recorded run`,help:`Verify: one model call per check confirms the result. Trust: none.`,type:`select`,default:`verify`,options:[{value:`verify`,label:`Verify`},{value:`trust`,label:`Trust`}]},{key:`parallel`,label:`Checks at once`,type:`number`,default:1},{key:`write_back`,label:`Post each round's results`,help:`To the system each check came from.`,type:`switch`,default:!1}],yd=[{key:`fail_after`,label:`Failing rounds before the first alert`,help:`2 or more rides out a flaky run.`,type:`number`,default:1},{key:`remind_every`,label:`Remind while it keeps failing`,help:`Every 2h, for example. Empty: never.`,type:`text`,placeholder:`2h`},{key:`report_url`,label:`Where rounds are published`,help:`Alerts link each round's report there.`,type:`url`,placeholder:`https://reports.example.com/monitor`},{key:`keep`,label:`Rounds kept`,help:`Older round folders are deleted.`,type:`number`,default:100},{key:`out_dir`,label:`Round folder`,help:`Rounds and state.json: which checks are failing, and since when.`,type:`path`,default:`./.forgeqe/reports/monitor`}];function bd({kind:e,settings:t}){let n=Qs(),[r,i]=(0,v.useState)({busy:!1});return(0,q.jsxs)(`div`,{className:`flex flex-col gap-2 py-2`,children:[(0,q.jsx)(J,{size:`sm`,className:`self-start`,disabled:r.busy,onClick:async()=>{i({busy:!0});let r=Object.fromEntries(Object.entries(n.pending).filter(e=>typeof e[1]==`string`));try{let n=await A.test(e,e,t,r);i({busy:!1,ok:n.ok,message:n.message})}catch(e){i({busy:!1,ok:!1,message:e.message})}},children:r.busy?`Sending…`:`Send a test message`}),(0,q.jsx)(`div`,{"aria-live":`polite`,children:r.message&&(0,q.jsxs)(`p`,{role:r.ok?`status`:`alert`,className:K(`m-0 flex items-start gap-2 rounded-[12px] px-3 py-2 text-sm`,r.ok?`bg-pass-soft text-pass`:`bg-fail-soft text-fail`),children:[r.ok?(0,q.jsx)(Qe,{size:18,"aria-hidden":`true`,className:`mt-0.5 flex-none`}):(0,q.jsx)(it,{size:18,"aria-hidden":`true`,className:`mt-0.5 flex-none`}),(0,q.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:r.message})]})})]})}function xd({edit:e}){let t=X(ms(e.value,[`monitor`,`alerts`])),n=(t,n)=>e.set(gs(e.value,[`monitor`,`alerts`,t],n));return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`p`,{className:`mt-0 mb-2 text-sm text-muted`,children:[`Start it with `,(0,q.jsx)(`code`,{className:`rounded-md bg-surface-strong px-1.5 py-0.5 font-mono text-[13px]`,children:`forgeqe monitor`}),`, or as a schedule.`]}),(0,q.jsx)(dc,{first:!0,children:`What runs`}),(0,q.jsx)(_c,{defs:$,edit:e,base:[`monitor`]}),(0,q.jsx)(dc,{children:`When to alert`}),(0,q.jsx)(_c,{defs:yd,edit:e,base:[`monitor`]}),(0,q.jsx)(dc,{help:`The monitor's own alerts: when a check starts failing, keeps failing, or recovers.`,children:`Alerts`}),(0,q.jsx)(uc,{label:`Microsoft Teams`,help:`A channel's Workflows webhook.`,children:(0,q.jsx)(ps,{checked:!!t.teams,onChange:e=>n(`teams`,e?{webhook_env:`TEAMS_MONITOR_WEBHOOK_URL`}:void 0),label:`Alert in Microsoft Teams`})}),!!t.teams&&(0,q.jsxs)(`div`,{className:`rounded-[14px] bg-surface-muted px-4 pb-2`,children:[(0,q.jsx)(hc,{def:{key:`teams.webhook_env`,label:`Webhook address`,help:`Kept in your credential store.`,type:`var`,placeholder:`TEAMS_MONITOR_WEBHOOK_URL`},edit:e,base:[`monitor`,`alerts`],stacked:!0}),(0,q.jsx)(bd,{kind:`teams`,settings:{teams:X(t.teams)}})]}),(0,q.jsx)(uc,{label:`Email`,help:`The same alerts by email.`,children:(0,q.jsx)(ps,{checked:!!t.email,onChange:e=>n(`email`,e?{port:587}:void 0),label:`Alert by email`})}),!!t.email&&(0,q.jsxs)(`div`,{className:`rounded-[14px] bg-surface-muted px-4 pb-2`,children:[(0,q.jsx)(_c,{defs:ud,edit:e,base:[`monitor`,`alerts`,`email`],stacked:!0}),(0,q.jsx)(bd,{kind:`email`,settings:{email:X(t.email)}})]})]})}var Sd=[`llm.models_file`,`llm.active`,`llm.routing`,`llm.fallback`,`llm.routes.*`,`environments.file`,`environments.dir`,`environments.default`,`logins.*.url`,`logins.*.domains`,`logins.*.username_env`,`logins.*.password_env`,`logins.*.totp_env`,`logins.*.save_session`,`browser.providers.browserstack`,`browser.providers.testmu`,`notify.report_url`,`notify.channels.*.teams`,`notify.channels.*.email`,`notify.channels.*.on`,`mcp.*.url`,`mcp.*.headers`,`mcp.*.command`,`mcp.*.env`,...[`checks`,`every`,`replay`,`parallel`,`write_back`,`fail_after`,`remind_every`,`report_url`,`keep`,`out_dir`,`alerts.teams.webhook_env`,`alerts.email.host`,`alerts.email.port`,`alerts.email.username_env`,`alerts.email.password_env`,`alerts.email.from`,`alerts.email.to`].map(e=>`monitor.${e}`),...[`enabled`,`external`,`dirs`,`browser_max_chars`,`disable`].map(e=>`skills.${e}`),...[`run`,`day`,`month`,`currency`].map(e=>`budget.${e}`),`export.format`];[...(e=>e.flatMap(e=>e.fields.map(t=>[...e.base,t.key].join(`.`))))([...Nu,...Pu,...Fu,...Uu,...Iu,...Lu,...Gu,...Ku,...qu,...Vu,zu]),...Ru.flatMap(e=>e.fields.map(t=>[...e.base,t.key].join(`.`))),...Ju.map(e=>`containers.services.*.${e.key}`),...Yu.map(e=>`databases.*.${e.key}`),...Hu.map(e=>`bi.datasets.*.${e.key}`),...Sd];var Cd=(e,t)=>t.flatMap(t=>t.fields.map(n=>({section:e,label:n.label,key:[...t.base,n.key].join(`.`)}))),wd=(e,t,n)=>n.map(n=>({section:e,label:n.label,key:`${t}.*.${n.key}`})),Td=[...Cd(`browser`,Nu),...Cd(`tests`,Pu),...Cd(`runs`,[...Fu,...Vu]),...wd(`runs`,`bi.datasets`,Hu),...Cd(`parallel`,Uu),...Cd(`quality`,Iu),...Cd(`agents`,Lu),...Cd(`mobile`,[...Gu,...Ku]),...Cd(`containers`,qu),...wd(`containers`,`containers.services`,Ju),...wd(`databases`,`databases`,Yu),...Cd(`integrations`,[zu]),...Ru.flatMap(e=>e.fields.map(t=>({section:`integrations`,label:`${e.name}: ${t.label}`,key:[...e.base,t.key].join(`.`)}))),{section:`integrations`,label:`Post results back`,key:`sources.write_back`},{section:`integrations`,label:`Remote browser grids`,key:`browser.providers`},{section:`models`,label:`Models file`,key:`llm.models_file`},{section:`models`,label:`Profile in use`,key:`llm.active`},{section:`routing`,label:`Routing`,key:`llm.routing`},{section:`routing`,label:`Fall back to a working model`,key:`llm.fallback`},{section:`routing`,label:`Models per area of work`,key:`llm.routes`},{section:`environments`,label:`Environments file`,key:`environments.file`},{section:`environments`,label:`Environments folder`,key:`environments.dir`},{section:`environments`,label:`Active environment`,key:`environments.default`},{section:`signins`,label:`Sign-ins`,key:`logins`},{section:`notifications`,label:`Teams and email channels`,key:`notify.channels`},{section:`notifications`,label:`Where reports are published`,key:`notify.report_url`},{section:`mcp`,label:`MCP servers`,key:`mcp`},{section:`monitor`,label:`Monitor checks, schedule and alerts`,key:`monitor`},{section:`monitor`,label:`Monitor alerts by Teams or email`,key:`monitor.alerts`},{section:`skills`,label:`Skills`,key:`skills`},{section:`tokenomics`,label:`Spending budgets`,key:`budget`},{section:`about`,label:`Version and updates`,key:`forgeqe update`},{section:`about`,label:`Guides: user guide, how to use, architecture`,key:`forgeqe docs`},{section:`notifications`,label:`Send a test notification`,key:`forgeqe notify test`},{section:`agents`,label:`Check the agent's domain knowledge`,key:`forgeqe eval domain`},{section:`generated`,label:`Generated code still in the repository`,key:`forgeqe generated`}],Ed=`font-mono text-[13px] [overflow-wrap:anywhere]`;function Dd({ok:e,children:t}){return(0,q.jsxs)(`p`,{role:e?`status`:`alert`,className:K(`m-0 flex items-start gap-2 rounded-[12px] px-3 py-2 text-sm leading-relaxed`,e?`bg-pass-soft text-pass`:`bg-fail-soft text-fail`),children:[e?(0,q.jsx)(Qe,{size:18,"aria-hidden":`true`,className:`mt-0.5 flex-none`}):(0,q.jsx)(Xe,{size:18,"aria-hidden":`true`,className:`mt-0.5 flex-none`}),(0,q.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:t})]})}function Od({open:e,start:t,onClose:n,onPick:r}){let[i,a]=(0,v.useState)(null),[o,s]=(0,v.useState)(``),[c,l]=(0,v.useState)(``),[u,d]=(0,v.useState)(null),[f,p]=(0,v.useState)(!1),m=(0,v.useCallback)(async e=>{l(``);try{let t=await j.folders(e);a(t),s(t.path)}catch(e){l(e.message)}},[]);(0,v.useEffect)(()=>{e?m(t||void 0):(d(null),l(``))},[e,t,m]);let h=async()=>{if(i&&u!==null){l(``);try{let e=await j.newFolder(i.path,u);a(e),s(e.path),d(null)}catch(e){l(e.message)}}};return(0,q.jsxs)(Gs,{open:e,onClose:n,wide:!0,title:`Choose the project folder`,description:`The folder of the app or test repository ForgeQE works on. Its settings, reports and logs are kept in it.`,footer:(0,q.jsxs)(q.Fragment,{children:[i?.project&&(0,q.jsx)(`span`,{className:`mr-auto self-center text-sm text-pass`,children:`ForgeQE is set up here`}),(0,q.jsx)(J,{onClick:n,children:`Cancel`}),(0,q.jsx)(J,{variant:`primary`,disabled:!i||f,onClick:async()=>{p(!0);try{await r(i.path)}catch(e){l(e.message)}finally{p(!1)}},children:`Use this folder`})]}),children:[(0,q.jsxs)(`form`,{className:`flex gap-2 pt-5`,onSubmit:e=>{e.preventDefault(),m(o.trim())},children:[(0,q.jsx)(`label`,{htmlFor:`folder-path`,className:`sr-only`,children:`Folder path`}),(0,q.jsx)(qs,{id:`folder-path`,value:o,spellCheck:!1,onChange:e=>s(e.target.value),className:`font-mono text-[13px]`,placeholder:`/Users/you/shop`}),(0,q.jsx)(J,{type:`submit`,children:`Go`})]}),(0,q.jsxs)(`div`,{className:`flex flex-wrap gap-2 pt-3`,children:[(0,q.jsxs)(J,{size:`sm`,disabled:!i?.parent,onClick:()=>i?.parent&&void m(i.parent),children:[(0,q.jsx)(Ee,{size:16,"aria-hidden":`true`}),`Up`]}),(0,q.jsxs)(J,{size:`sm`,onClick:()=>void m(i?.home),children:[(0,q.jsx)(sn,{size:16,"aria-hidden":`true`}),`Home`]}),(0,q.jsxs)(J,{size:`sm`,disabled:!i,onClick:()=>d(``),children:[(0,q.jsx)(Wt,{size:16,"aria-hidden":`true`}),`New folder`]})]}),u!==null&&(0,q.jsxs)(`form`,{className:`flex flex-wrap gap-2 pt-3`,onSubmit:e=>{e.preventDefault(),h()},children:[(0,q.jsx)(`label`,{htmlFor:`new-folder`,className:`sr-only`,children:`New folder's name`}),(0,q.jsx)(qs,{id:`new-folder`,autoFocus:!0,value:u,placeholder:`my-shop-tests`,onChange:e=>d(e.target.value),className:`flex-[1_1_200px]`}),(0,q.jsx)(J,{type:`submit`,variant:`primary`,disabled:!u.trim(),children:`Make it`}),(0,q.jsx)(J,{onClick:()=>d(null),children:`Cancel`})]}),(0,q.jsx)(`div`,{"aria-live":`polite`,className:`pt-3`,children:c&&(0,q.jsx)(Dd,{ok:!1,children:c})}),i&&(0,q.jsxs)(`ul`,{"aria-label":`Folders in ${i.path}`,className:`m-0 mt-2 flex list-none flex-col p-0`,children:[i.folders.length===0&&(0,q.jsx)(`li`,{className:`border-t border-line-soft py-4 text-sm text-muted`,children:`No folders in here.`}),i.folders.map(e=>(0,q.jsx)(`li`,{className:`border-t border-line-soft`,children:(0,q.jsxs)(`button`,{type:`button`,onClick:()=>void m(e.path),className:`flex min-h-12 w-full cursor-pointer items-center gap-3 border-0 bg-transparent px-2 text-left text-ink hover:bg-surface-muted`,children:[e.project?(0,q.jsx)(Bt,{size:18,"aria-hidden":`true`,className:`flex-none text-pass`}):(0,q.jsx)(Kt,{size:18,"aria-hidden":`true`,className:`flex-none text-muted`}),(0,q.jsx)(`span`,{className:`min-w-0 flex-1 [overflow-wrap:anywhere]`,children:e.name}),e.project&&(0,q.jsx)(Cl,{tone:`pass`,children:`ForgeQE`})]})},e.path))]})]})}function kd({state:e,onState:t}){let[n,r]=(0,v.useState)(!1),[i,a]=(0,v.useState)({busy:!1}),[o,s]=(0,v.useState)(null),[c,l]=(0,v.useState)(``),[u,d]=(0,v.useState)(!1),f=(0,v.useCallback)(()=>{l(``),j.machine().then(s,e=>l(e.message))},[]);(0,v.useEffect)(f,[f,e.project,e.ready]);let p=!!o?.job?.running;(0,v.useEffect)(()=>{if(!p)return;let e=setInterval(f,1500);return()=>clearInterval(e)},[p,f]);let m=async e=>{let n=await j.open(e);a({busy:!1}),t(n),r(!1)},h=o?.job,g=o?.checks.filter(e=>!/^(Models?\b|Copilot sign-in)/.test(e.name))||[],_=g.filter(e=>!e.ok&&/forgeqe setup/.test(e.fix||``));return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(dc,{first:!0,help:`The folder of the app or test repository you test. ForgeQE keeps its settings, reports and logs there.`,children:`1. Project folder`}),(0,q.jsxs)(`div`,{className:`flex min-h-[68px] flex-wrap items-center gap-x-4 gap-y-2 border-t border-line-soft py-3`,children:[(0,q.jsx)(fs,{icon:e.ready?Bt:Kt}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{className:K(`font-medium`,Ed),children:e.project}),(0,q.jsx)(`span`,{className:`text-sm text-muted`,children:e.ready?`ForgeQE is set up here (${e.config}).`:`ForgeQE is not set up in this folder yet.`})]}),(0,q.jsx)(J,{onClick:()=>r(!0),children:e.ready?`Open another folder`:`Choose a folder`})]}),e.recent.length>0&&(0,q.jsx)(`ul`,{"aria-label":`Recent projects`,className:`m-0 flex list-none flex-col p-0`,children:e.recent.map(e=>(0,q.jsxs)(`li`,{className:`flex min-h-[56px] flex-wrap items-center gap-x-4 gap-y-2 border-t border-line-soft py-2 pl-[52px]`,children:[(0,q.jsx)(`span`,{className:K(`min-w-0 flex-[1_1_260px] text-ink-2`,Ed),children:e}),(0,q.jsx)(J,{size:`sm`,"aria-label":`Open ${e}`,onClick:()=>void m(e).catch(e=>l(e.message)),children:`Open`})]},e))}),(0,q.jsx)(dc,{help:`forgeqe.yaml, llms.json, env.yaml and a .forgeqe folder with prompts, skills and guardrails to change. Files already there are kept.`,children:`2. ForgeQE in this folder`}),(0,q.jsx)(uc,{label:e.ready?`Set up`:`Not set up yet`,help:e.ready?`${e.config} is in this folder, so every section of Settings is open.`:`Until it is, the other sections of Settings stay locked: there is nothing for them to change.`,children:e.ready?(0,q.jsx)(Cl,{tone:`pass`,children:`Done`}):(0,q.jsx)(J,{variant:`primary`,disabled:i.busy,onClick:async()=>{a({busy:!0});try{let e=await j.init();a({busy:!1,result:e}),t(e.setup)}catch(e){a({busy:!1,error:e.message})}},children:i.busy?`Setting up…`:`Set up this folder`})}),(0,q.jsxs)(`div`,{"aria-live":`polite`,className:`flex flex-col gap-2`,children:[i.error&&(0,q.jsx)(Dd,{ok:!1,children:i.error}),i.result&&(0,q.jsxs)(Dd,{ok:!i.result.failed.length,children:[i.result.created.length?`Made ${i.result.created.join(`, `)}.`:`Nothing new was needed.`,i.result.failed.length>0&&` Could not write: ${i.result.failed.join(`; `)}.`]})]}),(0,q.jsx)(dc,{help:`What ForgeQE runs with: its browser engine and the agent runtime. Installing them needs no admin rights${o?`. ForgeQE ${o.version}`:``}.`,children:`3. This computer`}),c&&(0,q.jsx)(Dd,{ok:!1,children:c}),!o&&!c&&(0,q.jsx)(`p`,{role:`status`,className:`m-0 border-t border-line-soft py-5 text-sm text-muted`,children:`Checking this computer…`}),o&&(0,q.jsx)(`ul`,{"aria-label":`What this computer has`,className:`m-0 flex list-none flex-col p-0`,children:g.map(e=>(0,q.jsxs)(`li`,{className:`flex min-h-[56px] items-start gap-3 border-t border-line-soft py-3`,children:[e.ok?(0,q.jsx)(Qe,{size:18,"aria-label":`Ready`,className:`mt-0.5 flex-none text-pass`}):(0,q.jsx)(Xe,{size:18,"aria-label":`Missing`,className:`mt-0.5 flex-none text-warn`}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:e.name}),(0,q.jsxs)(`span`,{className:`text-sm text-muted [overflow-wrap:anywhere]`,children:[e.detail,!e.ok&&e.fix&&(0,q.jsxs)(q.Fragment,{children:[`. `,/forgeqe setup/.test(e.fix)?`Install what's missing, below, sets it up.`:e.fix]})]})]})]},e.name))}),o&&(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 border-t border-line-soft py-4`,children:[(0,q.jsx)(J,{variant:_.length?`primary`:`outline`,disabled:p||u,onClick:async()=>{d(!0);try{await j.run(),f()}catch(e){l(e.message)}finally{d(!1)}},children:p?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(os,{state:`handing`,px:16}),`Installing…`]}):_.length?`Install what's missing`:`Check and repair`}),(0,q.jsx)(`span`,{className:`text-sm text-muted`,children:`Runs forgeqe setup. The first time it downloads a few hundred MB and takes a few minutes.`})]}),h&&(0,q.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[!h.running&&(0,q.jsx)(Dd,{ok:!!h.ok,children:h.ok?`forgeqe setup finished.`:`forgeqe setup stopped with a problem. The last lines below say what.`}),(0,q.jsx)(`pre`,{"aria-label":`forgeqe setup output`,"aria-live":`polite`,className:`m-0 max-h-[280px] overflow-auto rounded-[12px] bg-surface-muted px-4 py-3 font-mono text-[12px] leading-relaxed whitespace-pre-wrap text-ink-2 [overflow-wrap:anywhere]`,children:h.lines.length?h.lines.join(`
24
+ `):`Starting…`})]}),(0,q.jsx)(dc,{help:`At least one model with its key or sign-in, for the agents to think with.`,children:`4. A model`}),(0,q.jsx)(uc,{label:o?.model.ready?`Ready`:`Not yet`,help:o?.model.detail||``,children:e.ready?(0,q.jsx)(`a`,{className:Ra({variant:o?.model.ready?`outline`:`primary`}),href:Rs(`settings`,`models`),children:o?.model.ready?`Models`:`Add a model`}):(0,q.jsx)(`span`,{className:`text-sm text-muted`,children:`After step 2`})}),(0,q.jsx)(Od,{open:n,start:e.project,onClose:()=>r(!1),onPick:m})]})}var Ad={"notify-test":[`Sending a test card`,`Sent a test card`,`working`],"update-check":[`Looking for a new version`,`Looked for a new version`,`searching`],update:[`Updating ForgeQE`,`Updated ForgeQE`,`working`],"eval-domain":[`Checking the agent's domain knowledge`,`Checked the agent's domain knowledge`,`thinking`]};function jd(){let[e,t]=(0,v.useState)(null),[n,r]=(0,v.useState)(``),i=(0,v.useCallback)(()=>B.view().then(t,e=>r(e.message)),[]);(0,v.useEffect)(()=>void i(),[i]);let a=!!e?.job?.running;return(0,v.useEffect)(()=>{if(!a)return;let e=setInterval(i,1e3);return()=>clearInterval(e)},[a,i]),{view:e,error:n,run:async(e,t={})=>{r(``);try{await B.run(e,t),i()}catch(e){r(e.message)}},running:a,load:i}}function Md({job:e,kinds:t,onStop:n}){let r=(0,v.useRef)(null);if((0,v.useEffect)(()=>{r.current&&(r.current.scrollTop=r.current.scrollHeight)},[e?.lines.length]),!e||!t.includes(e.kind))return null;let[i,a,o]=Ad[e.kind];return(0,q.jsxs)(`div`,{className:`mt-3 flex flex-col gap-2 rounded-[12px] border border-line-soft p-3`,children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,q.jsx)(`span`,{className:`flex-1 text-sm font-medium`,children:e.running?i:a}),(0,q.jsx)(Cl,{tone:e.running?`running`:e.exitCode===0?`pass`:`fail`,orb:o,children:e.running?`Working`:e.exitCode===0?`Done`:`Did not finish`}),e.running&&(0,q.jsxs)(J,{size:`sm`,onClick:n,className:`border-fail text-fail hover:bg-fail-soft`,children:[(0,q.jsx)(zr,{size:12,fill:`currentColor`,"aria-hidden":`true`}),`Stop`]})]}),(0,q.jsx)(`pre`,{ref:r,className:`m-0 max-h-[260px] overflow-auto rounded-[10px] bg-surface-muted p-3 font-mono text-[12px] leading-relaxed whitespace-pre-wrap text-ink-2`,children:e.lines.join(`
25
+ `)||`Starting…`})]})}function Nd({text:e,note:t,yes:n,onYes:r,onNo:i}){return(0,q.jsxs)(`div`,{role:`alertdialog`,"aria-label":e,className:`mt-3 flex flex-col gap-2 rounded-[12px] border border-warn bg-warn-soft p-3`,children:[(0,q.jsx)(`span`,{className:`text-sm font-medium`,children:e}),(0,q.jsx)(`span`,{className:`text-[13px] text-ink-2`,children:t}),(0,q.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,q.jsx)(J,{variant:`primary`,onClick:r,children:n}),(0,q.jsx)(J,{onClick:i,children:`Not now`})]})]})}function Pd(){let{view:e,error:t,run:n,running:r}=jd(),[i,a]=(0,v.useState)(!1),o=e?.job,s=o?.kind===`update-check`&&!o.running?o.lines.join(`
26
+ `):``,c=/installs (\d[\w.-]*)/.exec(s)?.[1];return(0,q.jsxs)(q.Fragment,{children:[t&&(0,q.jsx)(`p`,{className:`m-0 mb-3 rounded-[12px] bg-fail-soft px-3 py-2 text-sm text-fail`,children:t}),(0,q.jsx)(uc,{label:`Version`,help:c?`${c} is out.`:s&&/latest/.test(s)?`This is the latest.`:`forgeqe update installs a new one for every forgeqe on this computer (bun, npm, pip).`,className:`border-t-0 pt-0`,children:(0,q.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[(0,q.jsx)(`span`,{className:`font-mono text-[15px]`,children:e?.version??`…`}),(0,q.jsxs)(J,{disabled:r,onClick:()=>void n(`update-check`),children:[(0,q.jsx)(tr,{size:16,"aria-hidden":`true`}),`Check for updates`]}),(0,q.jsxs)(J,{variant:c?`primary`:`outline`,disabled:r,onClick:()=>a(!0),children:[(0,q.jsx)(St,{size:16,"aria-hidden":`true`}),`Update`,c?` to ${c}`:``]})]})}),i&&(0,q.jsx)(Nd,{text:`Update ForgeQE${c?` to ${c}`:` to the latest version`} on this computer?`,note:`It replaces every forgeqe on PATH. Restart forgeqe web when it is done; on Windows the update starts once ForgeQE exits.`,yes:`Update`,onYes:()=>{a(!1),n(`update`,{confirmed:!0})},onNo:()=>a(!1)}),(0,q.jsx)(Md,{job:o,kinds:[`update-check`,`update`],onStop:()=>void B.stop()}),(0,q.jsx)(dc,{children:`Guides`}),[[`User guide`,`Every feature, with examples, in one page.`,e?.help.guide],[`How to use`,`The full reference: settings, commands and how each feature works.`,e?.help.howTo],[`Architecture`,`How ForgeQE is built: its agents, the engine and where data goes.`,e?.help.architecture]].map(([e,t,n])=>(0,q.jsx)(uc,{label:e,help:t,children:(0,q.jsxs)(`a`,{href:n||`#`,target:`_blank`,rel:`noreferrer noopener`,className:`inline-flex min-h-10 items-center gap-2 rounded-full border border-line px-4 text-sm font-medium text-ink no-underline hover:bg-surface-muted hover:text-ink`,children:[(0,q.jsx)(Pe,{size:16,"aria-hidden":`true`}),`Open`]})},e))]})}function Fd(){let{view:e,error:t,run:n,running:r}=jd(),[i,a]=(0,v.useState)(``);return e?.channels.length?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(dc,{help:`A card says it is a test and which events each channel gets; nothing else is sent.`,children:`Send a test`}),(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,q.jsxs)(Ys,{"aria-label":`Channel`,value:i,onChange:e=>a(e.target.value),className:`w-[220px]`,children:[(0,q.jsx)(`option`,{value:``,children:`Every channel`}),e.channels.map(e=>(0,q.jsx)(`option`,{children:e},e))]}),(0,q.jsxs)(J,{disabled:r,onClick:()=>void n(`notify-test`,i?{channel:i}:{}),children:[(0,q.jsx)(hr,{size:16,"aria-hidden":`true`}),`Send a test`]})]}),t&&(0,q.jsx)(`p`,{className:`m-0 mt-2 text-sm text-fail`,children:t}),(0,q.jsx)(Md,{job:e.job,kinds:[`notify-test`],onStop:()=>void B.stop()})]}):null}function Id(){let{view:e,error:t,run:n,running:r}=jd(),[i,a]=(0,v.useState)(``),[o,s]=(0,v.useState)(!1);return e?.evalCases.length?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(dc,{help:`Runs stories from ForgeQE's evaluation cases (banking, insurance, lending, privacy) with the domain declared and without, and scores how many domain and regulation expectations the agent's test design meets. It makes model calls for each case.`,children:`Check the agent's domain knowledge`}),(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,q.jsxs)(Ys,{"aria-label":`Cases`,value:i,onChange:e=>a(e.target.value),className:`w-[320px] max-w-full`,children:[(0,q.jsxs)(`option`,{value:``,children:[`All `,e.evalCases.length,` cases`]}),e.evalCases.map(e=>(0,q.jsx)(`option`,{value:e.id,children:e.title},e.id))]}),(0,q.jsxs)(J,{disabled:r,onClick:()=>s(!0),children:[(0,q.jsx)(Rt,{size:16,"aria-hidden":`true`}),`Run the check`]})]}),o&&(0,q.jsx)(Nd,{text:`Run ${i?`one case`:`all ${e.evalCases.length} cases`} of the domain check?`,note:`Each case is a model session with the domain and one without, plus a judge; it takes a few minutes and costs tokens.`,yes:`Run it`,onYes:()=>{s(!1),n(`eval-domain`,{confirmed:!0,...i?{only:[i]}:{}})},onNo:()=>s(!1)}),t&&(0,q.jsx)(`p`,{className:`m-0 mt-2 text-sm text-fail`,children:t}),(0,q.jsx)(Md,{job:e.job,kinds:[`eval-domain`],onStop:()=>void B.stop()})]}):null}function Ld(){let[e,t]=(0,v.useState)(null),[n,r]=(0,v.useState)(``);if((0,v.useEffect)(()=>{B.generated().then(t,e=>r(e.message))},[]),n)return(0,q.jsx)(`p`,{className:`m-0 rounded-[12px] bg-fail-soft px-3 py-2 text-sm text-fail`,children:n});if(!e)return(0,q.jsx)(`p`,{className:`m-0 text-sm text-muted`,children:`Loading…`});let i=(e,t)=>t?`${Math.round(e/t*100)}%`:`–`;return e.runs?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:[`In `,(0,q.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.repo}),`, from .forgeqe/generated.jsonl: every line ForgeQE added, checked against the files as they are now.`]}),(0,q.jsxs)(`div`,{className:`flex flex-wrap gap-3`,children:[(0,q.jsx)(kc,{label:`Lines written`,value:e.written.toLocaleString(),note:`${Fa(e.files,`file`)}: ${e.created} created, ${e.edited} edited`}),(0,q.jsx)(kc,{label:`Still in the code`,value:i(e.present,e.written),note:`${e.present.toLocaleString()} lines`}),(0,q.jsx)(kc,{label:`Share of those files`,value:i(e.present,e.totalLines),note:`of ${e.totalLines.toLocaleString()} lines`}),(0,q.jsx)(kc,{label:`Files it created`,value:String(e.headers.unchanged),note:`as written; ${e.headers.changed} changed, ${e.headers.removed} gone`})]}),(0,q.jsx)(dc,{children:`By run, newest first`}),(0,q.jsx)(Ac,{label:`Runs that wrote code`,head:[`Run`,`Files`,`Lines still there`],children:e.byRun.map(e=>(0,q.jsx)(jc,{cells:[(0,q.jsxs)(`span`,{className:`flex flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{className:`font-mono text-[12px]`,children:e.fq}),(0,q.jsxs)(`span`,{className:`text-[13px] text-muted [overflow-wrap:anywhere]`,children:[e.run,e.test?` · ${e.test}`:``]})]},`r`),e.files,`${e.present} of ${e.written}`]},e.fq))}),e.missing.length>0&&(0,q.jsxs)(`p`,{className:`m-0 mt-3 text-[13px] text-muted [overflow-wrap:anywhere]`,children:[`Not found now: `,e.missing.slice(0,10).join(`, `)]})]}):(0,q.jsxs)(`p`,{className:`m-0 flex items-center gap-2 text-sm text-muted`,children:[(0,q.jsx)(At,{size:16,"aria-hidden":`true`}),`ForgeQE has not written code in `,(0,q.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.repo}),` yet.`]})}var Rd=[{id:`setup`,group:`Start`,icon:ar,label:`Set up`,file:``,intro:`The project folder ForgeQE works on, ForgeQE in it, and what this computer needs to run it.`},{id:`environments`,group:`General`,icon:hn,label:`Environments`,file:``,intro:`Where tests run and the apps in each place. The active one is used unless a request names another.`},{id:`browser`,group:`General`,icon:en,label:`Browser`,file:`forgeqe.yaml`,intro:`How the browser agent runs: where, how it looks, and how long it may take.`},{id:`signins`,group:`General`,icon:pn,label:`Sign-ins`,file:`forgeqe.yaml`,intro:`Logins for the apps you test. Passwords are kept in your credential store, and the model only ever sees a placeholder.`},{id:`integrations`,group:`General`,icon:Zn,label:`Integrations`,file:`forgeqe.yaml`,intro:`Test case systems and bugs (sources:), and remote browser grids (browser.providers).`},{id:`notifications`,group:`General`,icon:Ae,label:`Notifications`,file:`forgeqe.yaml`,intro:`Teams channels and email lists, and the events each one gets (notify:). Monitor alerts are set under Monitor.`},{id:`mcp`,group:`General`,icon:_r,label:`MCP servers`,file:`forgeqe.yaml`,intro:`More MCP servers whose tools ForgeQE's agent gets (mcp:). Each test case system's own server is set with it under Integrations.`},{id:`models`,group:`AI`,icon:jr,label:`Models`,file:`llms.json and forgeqe.yaml`,intro:`Which model the agents use, and where the models file is (llm:). API keys you type are kept in your credential store, never in the settings files.`},{id:`routing`,group:`AI`,icon:lr,label:`Routing`,file:`forgeqe.yaml`,intro:`Which model each area of work gets (llm.routing, llm.routes), and falling back to one that works.`},{id:`skills`,group:`AI`,icon:nn,label:`Skills`,file:`forgeqe.yaml`,intro:`What the agents know how to do: your test conventions, frameworks and apps, as folders with a SKILL.md, grouped by the agents that use them. Add your own for this project.`},{id:`prompts`,group:`AI`,icon:Tn,label:`Prompts`,file:``,intro:`The instructions each agent starts from, with the agents that use each. Edit one to change how that agent works in this project, or add your own prompt for the agents you choose.`},{id:`guardrails`,group:`AI`,icon:Cr,label:`Guardrails`,file:`guardrails.md`,intro:`Rules every agent follows, in every chat and schedule.`},{id:`agents`,group:`AI`,icon:Ie,label:`Agents`,file:`forgeqe.yaml`,intro:`What the agents know about your product and its rules, where their knowledge and guardrails are, and the tools they get.`},{id:`tests`,group:`Testing`,icon:ut,label:`Code`,file:`forgeqe.yaml`,intro:`Writing tests (code:): where passed runs become tests, how hard the coding agent tries, its time limits, and the help it gets.`},{id:`runs`,group:`Testing`,icon:We,label:`Reports and memory`,file:`forgeqe.yaml`,intro:`Where reports are exported (export:, report:), page memory and replays (memory:, registry:), suites, flaky tests, release readiness, defect analysis, and the project report (bi:).`},{id:`parallel`,group:`Testing`,icon:Lr,label:`Parallel execution`,file:`forgeqe.yaml`,intro:`How many browsers, scheduled runs and monitor checks go at once.`},{id:`monitor`,group:`Testing`,icon:an,label:`Monitor`,file:`forgeqe.yaml`,intro:`Checks that run on a schedule, and the alerts when one starts failing, keeps failing, or recovers.`},{id:`mobile`,group:`Testing`,icon:Dr,label:`Mobile and desktop`,file:`forgeqe.yaml`,intro:`How Android and iOS apps run (mobile:): Appium or Maestro, devices and device clouds; and how Windows desktop apps replay (desktop:). The apps themselves are in Environments.`},{id:`containers`,group:`Testing`,icon:gt,label:`Containers`,file:`forgeqe.yaml`,intro:`Services for test runs in Docker or Podman (containers:): databases, queues, the API under test, mocks, and the images tests and agents run in.`},{id:`databases`,group:`Testing`,icon:bt,label:`Databases`,file:`forgeqe.yaml`,intro:`Databases the agent may read, and write to after you confirm (databases:), for questions, test data and data flows. An environment can add its own.`},{id:`quality`,group:`Testing`,icon:Jt,label:`Quality`,file:`forgeqe.yaml`,intro:`Accessibility, performance, visual and API checks on every page a run visits.`},{id:`registry`,group:`Activity`,icon:rr,label:`Registry`,file:`forgeqe.yaml`,intro:`The plans ForgeQE recorded from passed runs, which it replays without a model, and what each request cost.`},{id:`logs`,group:`Activity`,icon:dr,label:`Logs`,file:``,intro:`A log of each chat, run and suite on this machine, for finding out what happened.`},{id:`audit`,group:`Activity`,icon:sr,label:`Audit`,file:``,intro:`What ForgeQE did and what went wrong: sessions, tool and model calls, runs and errors, and who changed which setting.`},{id:`tokenomics`,group:`Activity`,icon:ft,label:`Tokenomics`,file:`forgeqe.yaml`,intro:`Where the tokens and money went, from this project's reports, and the budgets that warn before they run out.`},{id:`generated`,group:`Activity`,icon:At,label:`Generated code`,file:``,intro:`How much of the code ForgeQE wrote in the repository is still there, by run (forgeqe generated).`},{id:`files`,group:`Advanced`,icon:Mt,label:`Files`,file:``,intro:`Each file as text, for the settings the form does not cover: mobile, containers, databases, BI and defect analysis.`},{id:`about`,group:`Advanced`,icon:dn,label:`About ForgeQE`,file:``,intro:`The version of ForgeQE on this computer, updating it, and its guides.`}],zd=[`guardrails`,`skills`,`prompts`],Bd=Rd.filter(e=>!zd.includes(e.id)),Vd=[...new Set(Bd.map(e=>e.group))],Hd={config:`forgeqe.yaml`,models:`llms.json`,environments:`the environment files`,guardrails:`guardrails.md`,grids:`the browser grid files`,secrets:`keys and passwords`};function Ud(e,t){let n=e.paths.base.replace(/[\\/]+$/,``);return t.startsWith(`${n}/`)||t.startsWith(`${n}\\`)?`./${t.slice(n.length+1).replace(/\\/g,`/`)}`:t}function Wd(e){return{config:e.config,models:e.models,environments:e.environments,guardrails:e.guardrails.filter(e=>e.editable).map(e=>e.text),grids:{browserstack:e.grids.browserstack.linked?e.grids.browserstack.value:null,testmu:e.grids.testmu.linked?e.grids.testmu.value:null},secrets:{}}}function Gd({section:e,only:t}){let n=t??e,[r,i]=(0,v.useState)(null),[a,o]=(0,v.useState)(null),[s,c]=(0,v.useState)(``),[l,u]=(0,v.useState)(``),[d,f]=(0,v.useState)(``),[p,m]=(0,v.useState)(!1),[h,g]=(0,v.useState)(!1),[_,y]=(0,v.useState)(null),b=(0,v.useCallback)(()=>{c(``),A.settings().then(e=>{i(e),o(Wd(e))},e=>c(e.message))},[]),x=(0,v.useCallback)(()=>{c(``),j.state().then(e=>{y(e),e.ready&&b()},e=>c(e.message))},[b]);(0,v.useEffect)(x,[x]);let S=e=>{e.project===_?.project&&e.ready||(i(null),o(null)),y(e),e.ready&&b()},C=!!_?.ready;(0,v.useEffect)(()=>{_&&!C&&n!==`setup`?location.replace(Rs(`settings`,`setup`)):!t&&n&&zd.includes(n)&&location.replace(Rs(n))},[_,C,n]);let w=(_&&!C?Rd[0]:Rd.find(e=>e.id===n))||Rd.find(e=>e.id===`models`);(0,v.useEffect)(()=>{f(``),u(``),g(!1)},[w.id]);let T=r?Wd(r):null,E=e=>!!a&&!!T&&!ys(a[e],T[e]),D=Object.keys(Hd).filter(E);(0,v.useEffect)(()=>{if(!D.length)return;let e=e=>e.preventDefault();return window.addEventListener(`beforeunload`,e),()=>window.removeEventListener(`beforeunload`,e)},[D.length]);let k=e=>({value:a[e],set:t=>{f(``),o(n=>({...n,[e]:t}))},vars:r.variables,...e===`config`?{file:`forgeqe.yaml`}:{}}),M=(0,v.useRef)(a);M.current=a;let ee=(0,v.useRef)(r);ee.current=r;let[N,te]=(0,v.useState)(``),P=(0,v.useCallback)(async()=>{let e=M.current,t=ee.current;if(!e||!t)return;let n=Wd(t),r=Object.keys(Hd).filter(t=>!ys(e[t],n[t]));if(!r.length)return;m(!0),u(``),g(!1);let a=t,s=(t,n)=>o(r=>{if(!r)return r;let i=Wd(t),a={...r};for(let t of Object.keys(Hd))if(t===`secrets`){if(!n)continue;a.secrets=Object.fromEntries(Object.entries(r.secrets).filter(([t,n])=>e.secrets[t]!==n))}else(n?ys(r[t],e[t]):ys(r[t],i[t]))&&(a[t]=i[t]);return a});try{for(let i of r)if(i===`secrets`)a=await A.saveSecrets(e.secrets);else if(i===`grids`)for(let[r,i]of Object.entries(e.grids))i&&!ys(i,n.grids[r])&&(a=await A.saveGrid(r,i,t.versions[`grid:${r}`]));else a=i===`guardrails`?await A.saveGuardrails(e.guardrails,t.versions.guardrails):await A.save(i,e[i],t.versions[i]);i(a),s(a,!0),te(``),f(`Saved`)}catch(n){u(n.message),g(n instanceof O&&n.status===409),te(JSON.stringify(e)),a!==t&&(i(a),s(a,!1))}finally{m(!1)}},[]);(0,v.useEffect)(()=>{if(!d)return;let e=setTimeout(()=>f(``),4e3);return()=>clearTimeout(e)},[d]);let F=a?JSON.stringify(a):``;(0,v.useEffect)(()=>{if(!D.length||p||h||N&&N===F)return;let e=D.every(e=>e===`secrets`),t=setTimeout(P,e?2e3:1e3);return()=>clearTimeout(t)},[F,p,h,N]);let ne=async()=>{u(``);try{let e=await A.splitEnvironments();i(e),o(Wd(e)),f(`Each environment is now its own file in environments/. The old file is left as it is; ForgeQE no longer reads it.`)}catch(e){u(e.message)}},re=async(e,t,n)=>{u(``);try{let a=await A.saveText(e,t,n,r?.versions[e]);return i(a),o(Wd(a)),f(`Saved ${Hd[e]}.`),!0}catch(e){return u(e.message),!1}},I=null;if(w.id===`setup`)I=_&&(0,q.jsx)(kd,{state:_,onState:S});else if(r&&a){let e=(w.id===`models`||w.id===`routing`?[`models`,`config`]:w.id===`environments`?[`environments`,`config`]:[`files`,`guardrails`,`prompts`,`logs`,`audit`,`generated`,`about`].includes(w.id)?[]:[`config`]).find(e=>r.errors[e]);switch(w.id){case`models`:I=(0,q.jsx)(ku,{config:k(`config`),models:k(`models`),vars:r.variables});break;case`environments`:I=(0,q.jsx)(xu,{envs:k(`environments`),layout:r.paths.environments,files:r.raw.environments,base:r.paths.base,onSplit:ne,config:k(`config`),splitBlocked:E(`environments`)||E(`config`)?`Save or discard your changes to the environments and forgeqe.yaml first.`:``});break;case`browser`:I=(0,q.jsx)(Xu,{groups:Nu,edit:k(`config`)});break;case`routing`:I=(0,q.jsx)(ju,{config:k(`config`),models:k(`models`)});break;case`generated`:I=(0,q.jsx)(Ld,{});break;case`about`:I=(0,q.jsx)(Pd,{});break;case`notifications`:case`mcp`:I=(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(hd,{view:w.id,edit:k(`config`),grids:a.grids,setGrids:e=>o(t=>({...t,grids:e})),gridPaths:{browserstack:Ud(r,r.grids.browserstack.file),testmu:Ud(r,r.grids.testmu.file)}}),w.id===`notifications`&&(0,q.jsx)(Fd,{})]});break;case`parallel`:I=(0,q.jsx)(Xu,{groups:Uu,edit:k(`config`)});break;case`mobile`:I=(0,q.jsx)(Xu,{groups:[...Gu,...Ku],edit:k(`config`)});break;case`containers`:I=(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Xu,{groups:qu.slice(0,1),edit:k(`config`)}),(0,q.jsx)(dc,{help:`Each one ForgeQE may start, stop and read: a database, a queue, the API under test.`,children:`Services`}),(0,q.jsx)(ad,{edit:k(`config`),base:[`containers`,`services`],defs:Ju,noun:`service`,placeholder:`db`,meta:e=>[e.image,Array.isArray(e.ports)?`ports ${e.ports.join(`, `)}`:``].filter(Boolean).map(String).join(`, `)}),(0,q.jsx)(Xu,{groups:qu.slice(1),edit:k(`config`),continued:!0})]});break;case`databases`:I=(0,q.jsx)(ad,{edit:k(`config`),base:[`databases`],defs:Yu,noun:`database`,placeholder:`orders`,meta:e=>[e.description,e.engine,e.url_env?`from ${e.url_env}`:e.host,e.writable?`writable`:`read only`].filter(Boolean).map(String).join(`, `)});break;case`signins`:I=(0,q.jsx)(ed,{edit:k(`config`)});break;case`integrations`:I=(0,q.jsx)(hd,{edit:k(`config`),grids:a.grids,setGrids:e=>{f(``),o(t=>({...t,grids:e}))},gridPaths:{browserstack:Ud(r,r.grids.browserstack.file),testmu:Ud(r,r.grids.testmu.file)}});break;case`tests`:I=(0,q.jsx)(Xu,{groups:Pu,edit:k(`config`)});break;case`runs`:I=(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Xu,{groups:Fu,edit:k(`config`)}),(0,q.jsx)(Xu,{groups:Vu,edit:k(`config`),continued:!0}),(0,q.jsx)(dc,{help:`Each one a table of the project report: forgeqe.<name>.`,children:`Report datasets`}),(0,q.jsx)(ad,{edit:k(`config`),base:[`bi`,`datasets`],defs:Hu,noun:`dataset`,placeholder:`open_bugs`,meta:e=>[e.title,e.kind===`jira_jql`?`Jira`:e.kind===`ado_wiql`?`Azure DevOps`:``].filter(Boolean).map(String).join(`, `)})]});break;case`quality`:I=(0,q.jsx)(Xu,{groups:Iu,edit:k(`config`)});break;case`agents`:I=(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Xu,{groups:Lu,edit:k(`config`)}),(0,q.jsx)(Id,{})]});break;case`guardrails`:I=(0,q.jsx)(td,{rules:a.guardrails,others:r.guardrails.filter(e=>!e.editable),onChange:e=>o({...a,guardrails:e})});break;case`monitor`:I=(0,q.jsx)(xd,{edit:k(`config`)});break;case`skills`:I=(0,q.jsx)(cu,{edit:k(`config`)});break;case`prompts`:I=(0,q.jsx)(pu,{onChanged:f});break;case`registry`:I=(0,q.jsx)(Nc,{edit:k(`config`)});break;case`logs`:I=(0,q.jsx)(Pc,{});break;case`audit`:I=(0,q.jsx)(Bc,{});break;case`tokenomics`:I=(0,q.jsx)(qc,{edit:k(`config`)});break;case`files`:I=(0,q.jsx)(rd,{snap:r,dirty:{config:E(`config`),models:E(`models`),environments:E(`environments`)},onSave:re})}e&&(I=(0,q.jsxs)(`p`,{role:`alert`,className:`m-0 rounded-[12px] bg-fail-soft px-4 py-3 text-sm leading-relaxed text-fail`,children:[e===`environments`?`An environment file`:Hd[e],` does not parse, so the form cannot show it: `,r.errors[e],`. Fix it under `,(0,q.jsx)(`a`,{href:Rs(`settings`,`files`),children:`Files`}),`.`]}))}let L=l?(0,q.jsxs)(`div`,{role:`alert`,className:`flex w-full flex-wrap items-center gap-3 rounded-[14px] border border-fail-soft bg-fail-soft px-4 py-3 text-sm leading-relaxed text-fail shadow-composer`,children:[(0,q.jsx)(`span`,{className:`flex-[1_1_260px] [overflow-wrap:anywhere]`,children:l}),h?(0,q.jsx)(J,{onClick:()=>{g(!1),u(``),te(``),x()},children:`Reload, and lose my unsaved changes`}):(0,q.jsxs)(`span`,{className:`flex gap-2`,children:[D.length>0&&(0,q.jsx)(J,{onClick:()=>{o(T),u(``),te(``)},children:`Undo my change`}),(0,q.jsx)(J,{onClick:()=>{u(``),te(``),P()},children:`Try again`})]})]}):null,R={pending:a?.secrets||{},set:(e,t)=>{f(``),o(n=>{let r={...n.secrets};return t===void 0?delete r[e]:r[e]=t,{...n,secrets:r}})},saved:new Set(r?.saved||[]),vars:r?.variables||{},store:r?.store||`the credential store`};return(0,q.jsx)(Zs.Provider,{value:R,children:(0,q.jsxs)(`div`,{className:`flex min-h-screen flex-col`,children:[(0,q.jsx)(dl,{}),(0,q.jsxs)(`main`,{className:K(`mx-auto box-border flex w-full flex-auto flex-col items-stretch gap-x-10 gap-y-6 px-6 pt-10 pb-12 sm:flex-row sm:items-start`,t?`max-w-[800px]`:`max-w-[1080px]`),children:[(0,q.jsxs)(`div`,{className:K(`w-full flex-col gap-1 sm:sticky sm:top-6 sm:max-h-[calc(100vh-48px)] sm:w-[220px] sm:flex-none sm:overflow-y-auto sm:pb-4`,t?`hidden`:`flex`),children:[(0,q.jsxs)(`div`,{className:`mb-4 ml-3 flex items-center gap-3`,children:[(0,q.jsx)(fs,{icon:xr,size:`lg`}),(0,q.jsx)(`h1`,{className:`m-0 text-[26px] font-semibold tracking-[-0.01em]`,children:`Settings`})]}),(0,q.jsx)(Kd,{ready:C}),(0,q.jsx)(`label`,{htmlFor:`section-pick`,className:`sr-only`,children:`Section`}),(0,q.jsx)(Ys,{id:`section-pick`,value:w.id,onChange:e=>location.hash=Rs(`settings`,e.target.value),className:`sm:hidden`,children:Vd.map(e=>(0,q.jsx)(`optgroup`,{label:e,children:Bd.filter(t=>t.group===e).map(e=>(0,q.jsx)(`option`,{value:e.id,disabled:!C&&e.id!==`setup`,children:e.label},e.id))},e))}),(0,q.jsx)(`nav`,{"aria-label":`Settings sections`,className:`hidden flex-col gap-5 sm:flex`,children:Vd.map(e=>(0,q.jsxs)(`div`,{role:`group`,"aria-labelledby":`group-${e}`,className:`flex flex-col gap-0.5`,children:[(0,q.jsx)(`span`,{id:`group-${e}`,className:`px-3 pb-1 text-[13px] font-medium text-muted`,children:e}),Bd.filter(t=>t.group===e).map(e=>_&&!C&&e.id!==`setup`?(0,q.jsxs)(`span`,{"aria-disabled":`true`,title:`Set up ForgeQE in a project folder first`,className:`flex min-h-10 cursor-not-allowed items-center gap-3 rounded-[10px] px-3 text-sm font-medium text-muted opacity-60`,children:[(0,q.jsx)(e.icon,{size:18,strokeWidth:1.8,"aria-hidden":`true`,className:`flex-none`}),(0,q.jsx)(`span`,{className:`flex-1`,children:e.label}),(0,q.jsx)(xn,{size:14,"aria-label":`Locked`,className:`flex-none`})]},e.id):(0,q.jsxs)(`a`,{href:Rs(`settings`,e.id),"aria-current":w.id===e.id?`page`:void 0,className:K(`flex min-h-10 items-center gap-3 rounded-[10px] px-3 text-sm font-medium no-underline`,w.id===e.id?`bg-surface-strong text-ink hover:text-ink`:`text-muted hover:bg-surface-muted hover:text-ink`),children:[(0,q.jsx)(e.icon,{size:18,strokeWidth:1.8,"aria-hidden":`true`,className:`flex-none`}),e.label]},e.id))]},e))})]}),(0,q.jsxs)(`section`,{"aria-labelledby":`sec-h`,className:`flex min-w-0 flex-1 flex-col`,children:[(0,q.jsxs)(`div`,{className:`mb-1 flex items-center gap-3`,children:[(0,q.jsx)(fs,{icon:w.icon,size:`lg`}),t?(0,q.jsx)(`h1`,{id:`sec-h`,className:`m-0 text-[26px] font-semibold tracking-[-0.01em]`,children:w.label}):(0,q.jsx)(`h2`,{id:`sec-h`,className:`m-0 text-lg font-semibold`,children:w.label})]}),(0,q.jsxs)(`p`,{className:`mt-0 mb-5 max-w-[60ch] text-sm leading-relaxed text-muted`,children:[w.intro,w.file&&r&&(0,q.jsxs)(q.Fragment,{children:[` `,`Saved in `,(0,q.jsx)(`span`,{className:`font-mono text-[13px]`,children:w.file}),`.`]})]}),s&&(0,q.jsxs)(`div`,{role:`alert`,className:`flex flex-col items-start gap-4 rounded-[18px] border border-line p-6`,children:[(0,q.jsx)(`p`,{className:`m-0 max-w-[60ch] leading-relaxed text-ink-2`,children:s}),(0,q.jsx)(J,{onClick:x,children:`Try again`})]}),_&&!C&&(0,q.jsxs)(`p`,{className:`mt-0 mb-5 flex items-start gap-2 rounded-[12px] bg-surface-muted px-4 py-3 text-sm leading-relaxed text-ink-2`,children:[(0,q.jsx)(xn,{size:16,"aria-hidden":`true`,className:`mt-0.5 flex-none`}),`The other sections open once ForgeQE is set up in a project folder: choose the folder, then Set up this folder.`]}),!s&&(!_||w.id!==`setup`&&!r)&&(0,q.jsx)(`p`,{role:`status`,className:`m-0 text-sm text-muted`,children:`Loading settings…`}),I,(0,q.jsxs)(`div`,{className:`sticky bottom-4 z-10 mt-8 flex flex-col items-end gap-2`,children:[L,(0,q.jsx)(`div`,{"aria-live":`polite`,className:`contents`,children:!l&&(D.length>0||p||d)&&(0,q.jsx)(`span`,{className:K(`inline-flex min-h-9 items-center gap-2 rounded-full border border-line bg-bg px-4 text-[13px] shadow-composer`,D.length||p?`text-ink-2`:`text-pass`),children:D.length||p?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(os,{state:`working`,px:16}),`Saving…`]}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Ke,{size:14,"aria-hidden":`true`}),d]})})})]})]})]})]})})}function Kd({ready:e}){let[t,n]=(0,v.useState)(``),r=t.toLowerCase().split(/\s+/).filter(Boolean),i=e=>Rd.find(t=>t.id===e)?.label||e,a=r.length?Td.filter(e=>r.every(t=>`${e.label} ${e.key} ${i(e.section)}`.toLowerCase().includes(t))).slice(0,12):[];return(0,q.jsxs)(`div`,{className:`mb-4 flex flex-col gap-1 px-1`,children:[(0,q.jsx)(`label`,{htmlFor:`find-setting`,className:`sr-only`,children:`Find a setting`}),(0,q.jsx)(qs,{id:`find-setting`,type:`search`,value:t,disabled:!e,placeholder:`Find a setting`,title:`By its name or its forgeqe.yaml key: max attempts, memory.dir`,onChange:e=>n(e.target.value)}),r.length>0&&(0,q.jsxs)(`ul`,{"aria-label":`Settings found`,className:`m-0 flex list-none flex-col p-0`,children:[a.length===0&&(0,q.jsx)(`li`,{className:`px-2 py-2 text-[13px] text-muted`,children:`Nothing called that. Every key can also be edited as text under Files.`}),a.map(e=>(0,q.jsx)(`li`,{children:(0,q.jsxs)(`a`,{href:Rs(`settings`,e.section),onClick:()=>n(``),className:`flex flex-col rounded-[10px] px-2 py-1.5 text-ink no-underline hover:bg-surface-muted hover:text-ink`,children:[(0,q.jsx)(`span`,{className:`text-sm`,children:e.label}),(0,q.jsxs)(`span`,{className:`text-[12px] text-muted`,children:[i(e.section),` · `,(0,q.jsx)(`code`,{className:`font-mono text-[11.5px]`,children:e.key})]})]})},`${e.section}:${e.key}`))]})]})}var qd=`modulepreload`,Jd=function(e){return`/`+e},Yd={},Xd=function(e){return e.pathname.endsWith(`.css`)},Zd=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},Qd=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=Jd(t,n);let r=s(t),i=Xd(r);return Zd(Yd,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:qd,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},$d=(0,v.lazy)(()=>Qd(()=>import(`./Chat-Be6J6POH.js`).then(e=>({default:e.Chat})),__vite__mapDeps([0,1,2,3,4]))),ef=(0,v.lazy)(()=>Qd(()=>import(`./Chat-Be6J6POH.js`).then(e=>({default:e.Chats})),__vite__mapDeps([0,1,2,3,4]))),tf=(0,v.lazy)(()=>Qd(()=>import(`./Reports-CHqfhNR8.js`).then(e=>({default:e.Reports})),__vite__mapDeps([5,6,2,3,7,4]))),nf=(0,v.lazy)(()=>Qd(()=>import(`./Runs-DPmd5QPL.js`).then(e=>({default:e.Runs})),__vite__mapDeps([8,9,10,6,2,3,11,1,12,4]))),rf=(0,v.lazy)(()=>Qd(()=>import(`./Record-B5395d_b.js`).then(e=>({default:e.Record})),__vite__mapDeps([13,9,2,3,11,14,15,16,10,4]))),af=(0,v.lazy)(()=>Qd(()=>import(`./Regression-BS5g4T3v.js`).then(e=>({default:e.Regression})),__vite__mapDeps([17,3,14]))),of=(0,v.lazy)(()=>Qd(()=>import(`./ApiTests-B-0nk720.js`).then(e=>({default:e.ApiTests})),__vite__mapDeps([18,6,2,3,16,10,4]))),sf=(0,v.lazy)(()=>Qd(()=>import(`./Quality-C6hKykoO.js`).then(e=>({default:e.Quality})),__vite__mapDeps([19,6,2,3,7,16,10,4]))),cf=(0,v.lazy)(()=>Qd(()=>import(`./Data-BtcD7_T2.js`).then(e=>({default:e.Data})),__vite__mapDeps([20,2,3,11,15]))),lf=(0,v.lazy)(()=>Qd(()=>import(`./Features-DHIGL43K.js`).then(e=>({default:e.Features})),__vite__mapDeps([21,6,2,3]))),uf=(0,v.lazy)(()=>Qd(()=>import(`./Jobs-C-cEyrrH.js`).then(e=>({default:e.Jobs})),__vite__mapDeps([22,2,3,12,15])));function df(){let[e=``,t,...n]=Ls(),[,r]=(0,v.useState)(0);return(0,v.useEffect)(()=>{M.get().then(e=>{wc(e),r(e=>e+1)},()=>{})},[]),(0,q.jsx)(vl,{current:e,chat:e===`chats`?t:void 0,children:(0,q.jsx)(ff,{page:e,sub:e===`data`&&t?[t,...n].join(`/`):t})})}function ff({page:e,sub:t}){if(e===`settings`)return(0,q.jsx)(Gd,{section:t});if(e===`chats`)return(0,q.jsx)(v.Suspense,{fallback:(0,q.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:t?(0,q.jsx)($d,{id:t}):(0,q.jsx)(ef,{})});if(e===`reports`)return(0,q.jsx)(v.Suspense,{fallback:(0,q.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,q.jsx)(tf,{sub:t})});if(e===`jobs`||e===`schedules`)return(0,q.jsx)(v.Suspense,{fallback:(0,q.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,q.jsx)(uf,{sub:e===`jobs`?t:void 0})});if(e===`regression`)return(0,q.jsx)(v.Suspense,{fallback:(0,q.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,q.jsx)(af,{sub:t})});if(e===`api-tests`)return(0,q.jsx)(v.Suspense,{fallback:(0,q.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,q.jsx)(of,{sub:t})});if(e===`quality`)return(0,q.jsx)(v.Suspense,{fallback:(0,q.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,q.jsx)(sf,{sub:t})});if(e===`data`)return(0,q.jsx)(v.Suspense,{fallback:(0,q.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,q.jsx)(cf,{sub:t})});if(e===`features`)return(0,q.jsx)(v.Suspense,{fallback:(0,q.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,q.jsx)(lf,{})});if(e===`record`)return(0,q.jsx)(v.Suspense,{fallback:(0,q.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,q.jsx)(rf,{})});if(e===`runs`)return(0,q.jsx)(v.Suspense,{fallback:(0,q.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,q.jsx)(nf,{sub:t})});if(e===`knowledge`)return(0,q.jsx)(El,{});if(e===`memory`)return(0,q.jsx)(Q,{});if(zd.includes(e))return(0,q.jsx)(Gd,{only:e},e);let n=Il.find(t=>t.id===e);return n?(0,q.jsx)(Ll,{section:n}):(0,q.jsx)(bl,{})}C(),w(),(0,y.createRoot)(document.getElementById(`root`)).render((0,q.jsx)(v.StrictMode,{children:(0,q.jsx)(df,{})}));export{sr as $,J as A,He as At,Gr as B,ne as Bt,ls as C,it as Ct,ss as D,Xe as Dt,cs as E,Qe as Et,ai as F,A as Ft,jr as G,re as Gt,Vr as H,z as Ht,ri as I,ie as It,yr as J,o as Jt,kr as K,L as Kt,ti as L,te as Lt,La as M,Ae as Mt,K as N,Oe as Nt,os as O,Je as Ot,Fa as P,V as Pt,lr as Q,$r as R,se as Rt,fs as S,bt as St,ds as T,et as Tt,zr as U,oe as Ut,Ur as V,I as Vt,Fr as W,R as Wt,pr as X,l as Xt,hr as Y,s as Yt,dr as Z,Ws as _,It as _t,ul as a,Nn as at,Rs as b,Ot as bt,kc as c,_n as ct,Sc as d,en as dt,rr as et,vc as f,Qt as ft,Gs as g,Rt as gt,Js as h,Ht as ht,Cl as i,Fn as it,Ra as j,Re as jt,za as k,Ke as kt,zc as l,an as lt,Ys as m,Jt as mt,tu as n,$n as nt,dl as o,Dn as ot,qs as p,Xt as pt,Tr as q,d as qt,ru as r,Yn as rt,sl as s,yn as st,au as t,tr as tt,Tc as u,nn as ut,Hs as v,Pt as vt,us as w,nt as wt,ps as x,St as xt,zs as y,Mt as yt,Zr as z,ce as zt};