@ai-matrx/coding-sessions 0.1.103 → 0.1.105

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.
@@ -1,71 +0,0 @@
1
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(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},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(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 l=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(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 P(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,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=P(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=P(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return P(N(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 F(e,t,n){if(e==null)return e;var r=[],i=0;return P(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function I(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var L=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function ee(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,L)}catch(e){L(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function te(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else ee(te.bind(null,e))}var ne={map:F,forEach:function(e,t,n){F(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return F(e,function(){t++}),t},toArray:function(e){return F(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=ne,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=te,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.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 D(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)E.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 D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=ee,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.0`})),u=o(((e,t)=>{t.exports=l()})),d=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}}}})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{var t=u();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(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=d(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=d(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=d(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.0`})),m=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=p()})),h=o((e=>{var t=f(),n=u(),r=m();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function d(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 p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}function h(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&h(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function g(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function _(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function v(e){var t=[null,null],n=g(e);return n===null||y(t,e,n.child,{foundSelf:!1}),t}function y(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&y(e,t,n.child,r))return!0;n=n.sibling}return!1}function b(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var x=null,S=null;function C(e,t,n){return e===n||e===t&&(x=e,!0)}function w(e,t,n){return e===n?(S=e,!1):e===t&&(S!==null&&(x=e),!0)}function T(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function E(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var D=Object.assign,O=Symbol.for(`react.element`),k=Symbol.for(`react.transitional.element`),A=Symbol.for(`react.portal`),j=Symbol.for(`react.fragment`),M=Symbol.for(`react.strict_mode`),N=Symbol.for(`react.profiler`),P=Symbol.for(`react.consumer`),F=Symbol.for(`react.context`),I=Symbol.for(`react.forward_ref`),L=Symbol.for(`react.suspense`),ee=Symbol.for(`react.suspense_list`),te=Symbol.for(`react.memo`),ne=Symbol.for(`react.lazy`),R=Symbol.for(`react.activity`),re=Symbol.for(`react.legacy_hidden`),ie=Symbol.for(`react.memo_cache_sentinel`),ae=Symbol.for(`react.view_transition`),oe=Symbol.for(`react.recoverable`),se=Symbol.iterator;function ce(e){return typeof e!=`object`||!e?null:(e=se&&e[se]||e[`@@iterator`],typeof e==`function`?e:null)}var le=Symbol.for(`react.client.reference`);function z(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===le?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case j:return`Fragment`;case N:return`Profiler`;case M:return`StrictMode`;case L:return`Suspense`;case ee:return`SuspenseList`;case R:return`Activity`;case ae:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case A:return`Portal`;case F:return e.displayName||`Context`;case P:return(e._context.displayName||`Context`)+`.Consumer`;case I:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case te:return t=e.displayName||null,t===null?z(e.type)||`Memo`:t;case ne:t=e._payload,e=e._init;try{return z(e(t))}catch{}}return null}var ue=Array.isArray,B=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe={pending:!1,data:null,method:null,action:null},pe=[],me=-1;function he(e){return{current:e}}function ge(e){0>me||(e.current=pe[me],pe[me]=null,me--)}function _e(e,t){me++,pe[me]=e.current,e.current=t}var ve=he(null),ye=he(null),be=he(null),xe=he(null);function Se(e,t){switch(_e(be,t),_e(ye,e),_e(ve,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?dp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=dp(t),e=fp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ge(ve),_e(ve,e)}function Ce(){ge(ve),ge(ye),ge(be)}function we(e){var t=e.memoizedState;t!==null&&(ch._currentValue=t.memoizedState,_e(xe,e)),t=ve.current;var n=fp(t,e.type);t!==n&&(_e(ye,e),_e(ve,n))}function Te(e){ye.current===e&&(ge(ve),ge(ye)),xe.current===e&&(ge(xe),ch._currentValue=fe)}var Ee,De;function Oe(e){if(Ee===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ee=t&&t[1]||``,De=-1<e.stack.indexOf(`
2
- at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
3
- `+Ee+e+De}var ke=!1;function Ae(e,t){if(!e||ke)return``;ke=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
4
- `),l=s.split(`
5
- `);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
6
- `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ke=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Oe(n):``}function je(e,t){switch(e.tag){case 26:case 27:case 5:return Oe(e.type);case 16:return Oe(`Lazy`);case 13:return e.child!==t&&t!==null?Oe(`Suspense Fallback`):Oe(`Suspense`);case 19:return Oe(`SuspenseList`);case 0:case 15:return Ae(e.type,!1);case 11:return Ae(e.type.render,!1);case 1:return Ae(e.type,!0);case 31:return Oe(`Activity`);case 30:return Oe(`ViewTransition`);default:return``}}function Me(e){try{var t=``,n=null;do t+=je(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
7
- Error generating stack: `+e.message+`
8
- `+e.stack}}var Ne=Object.prototype.hasOwnProperty,Pe=t.unstable_scheduleCallback,Fe=t.unstable_cancelCallback,Ie=t.unstable_shouldYield,Le=t.unstable_requestPaint,Re=t.unstable_now,ze=t.unstable_getCurrentPriorityLevel,Be=t.unstable_ImmediatePriority,Ve=t.unstable_UserBlockingPriority,He=t.unstable_NormalPriority,Ue=t.unstable_LowPriority,We=t.unstable_IdlePriority,Ge=t.log,Ke=t.unstable_setDisableYieldValue,qe=null,Je=null;function Ye(e){if(typeof Ge==`function`&&Ke(e),Je&&typeof Je.setStrictMode==`function`)try{Je.setStrictMode(qe,e)}catch{}}var Xe=Math.clz32?Math.clz32:$e,Ze=Math.log,Qe=Math.LN2;function $e(e){return e>>>=0,e===0?32:31-(Ze(e)/Qe|0)|0}var et=256,tt=262144,nt=4194304;function rt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function it(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=rt(n))):i=rt(o):i=rt(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=rt(n))):i=rt(o)):i=rt(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 at(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ot(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Xe(n),i=1<<r;t|=e[r],n&=~i}return t}function st(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 ct(){var e=nt;return nt<<=1,!(nt&62914560)&&(nt=4194304),e}function lt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ut(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function dt(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-Xe(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&&ft(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function ft(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Xe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function pt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Xe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function mt(e,t){var n=t&-t;return n=n&42?1:ht(n),(n&(e.suspendedLanes|t))===0?n:0}function ht(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 gt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function _t(){var e=de.p;return e===0?(e=window.event,e===void 0?32:wh(e.type)):e}function vt(e,t){var n=de.p;try{return de.p=e,t()}finally{de.p=n}}var yt=Math.random().toString(36).slice(2),bt=`__reactFiber$`+yt,xt=`__reactProps$`+yt,St=`__reactContainer$`+yt,Ct=`__reactEvents$`+yt,wt=`__reactListeners$`+yt,Tt=`__reactHandles$`+yt,Et=`__reactResources$`+yt,Dt=`__reactMarker$`+yt,Ot=`__reactLoad$`+yt;function kt(e){delete e[bt],delete e[xt],delete e[wt],delete e[Tt]}function At(e){var t;if(t=e[bt])return t;for(var n=e.parentNode;n;){if(t=n[St]||n[bt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pm(e);e!==null;){if(n=e[bt])return n;e=pm(e)}return t}e=n,n=e.parentNode}return null}function jt(e){if(e=e[bt]||e[St]){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 Nt(e){var t=e[Et];return t||=e[Et]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Pt(e){e[Dt]=!0}function Ft(e){e[Ot]=void 0}var It=new Set,Lt={};function Rt(e,t){zt(e,t),zt(e+`Capture`,t)}function zt(e,t){for(Lt[e]=t,e=0;e<t.length;e++)It.add(t[e])}var Bt=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]*$`),Vt={},Ht={};function Ut(e){return Ne.call(Ht,e)?!0:Ne.call(Vt,e)?!1:Bt.test(e)?Ht[e]=!0:(Vt[e]=!0,!1)}var Wt=!1;function Gt(){var e=Wt;return Wt=!1,e}function Kt(e,t,n){if(Ut(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 qt(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 Jt(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 Yt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Xt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Zt(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 Qt(e){if(!e._valueTracker){var t=Xt(e)?`checked`:`value`;e._valueTracker=Zt(e,t,``+e[t])}}function $t(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Xt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var en=/[\n"\\]/g;function tn(e){return e.replace(en,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function nn(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=``+Yt(t)):e.value!==``+Yt(t)&&(e.value=``+Yt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):an(e,Yt(n)):o===`number`&&e.value==t?an(e,Yt(e.value)):an(e,Yt(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=``+Yt(s):e.removeAttribute(`name`)}function rn(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)){Qt(e);return}n=n==null?``:``+Yt(n),t=t==null?n:``+Yt(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),Qt(e)}function an(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function on(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=``+Yt(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 sn(e,t,n){if(t!=null&&(t=``+Yt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Yt(n)}function cn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ue(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Yt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Qt(e)}function ln(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var un=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 dn(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||un.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function fn(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]=``,Wt=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(dn(e,a,r),Wt=!0)}else for(var o in t)t.hasOwnProperty(o)&&dn(e,o,t[o])}function pn(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 mn=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`maskType`,`mask-type`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),hn=/^[\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 gn(e){return hn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function _n(){}var vn=null;function yn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bn=null,xn=null;function Sn(e){var t=jt(e);if(t&&(e=t.stateNode)){var n=e[xt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(nn(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="`+tn(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[xt]||null;if(!a)throw Error(i(90));nn(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&&$t(r)}break a;case`textarea`:sn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&on(e,!!n.multiple,t,!1)}}}var Cn=!1;function wn(e,t,n){if(Cn)return e(t,n);Cn=!0;try{return e(t)}finally{if(Cn=!1,(bn!==null||xn!==null)&&(Rd(),bn&&(t=bn,e=xn,xn=bn=null,Sn(t),e)))for(t=0;t<e.length;t++)Sn(e[t])}}function Tn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[xt]||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 En=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Dn=!1;if(En)try{var On={};Object.defineProperty(On,"passive",{get:function(){Dn=!0}}),window.addEventListener(`test`,On,On),window.removeEventListener(`test`,On,On)}catch{Dn=!1}var kn=null,An=null,jn=null;function Mn(){if(jn)return jn;var e,t=An,n=t.length,r,i=`value`in kn?kn.value:kn.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 jn=i.slice(e,1<r?1-r:void 0)}function Nn(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 Pn(){return!0}function Fn(){return!1}function In(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)?Pn:Fn,this.isPropagationStopped=Fn,this}return D(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=Pn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Pn)},persist:function(){},isPersistent:Pn}),t}var Ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rn=In(Ln),zn=D({},Ln,{view:0,detail:0}),Bn=In(zn),Vn,Hn,Un,Wn=D({},zn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tr,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!==Un&&(Un&&e.type===`mousemove`?(Vn=e.screenX-Un.screenX,Hn=e.screenY-Un.screenY):Hn=Vn=0,Un=e),Vn)},movementY:function(e){return`movementY`in e?e.movementY:Hn}}),Gn=In(Wn),Kn=In(D({},Wn,{dataTransfer:0})),qn=In(D({},zn,{relatedTarget:0})),Jn=In(D({},Ln,{animationName:0,elapsedTime:0,pseudoElement:0})),Yn=In(D({},Ln,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Xn=In(D({},Ln,{data:0})),Zn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Qn={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`},$n={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function er(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=$n[e])?!!t[e]:!1}function tr(){return er}var nr=In(D({},zn,{key:function(e){if(e.key){var t=Zn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Nn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Qn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tr,charCode:function(e){return e.type===`keypress`?Nn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Nn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),rr=In(D({},Wn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),ir=In(D({},Ln,{submitter:0})),ar=In(D({},zn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tr})),or=In(D({},Ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),sr=In(D({},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})),cr=In(D({},Ln,{newState:0,oldState:0,source:0})),lr=[9,13,27,32],ur=En&&`CompositionEvent`in window,dr=null;En&&`documentMode`in document&&(dr=document.documentMode);var fr=En&&`TextEvent`in window&&!dr,pr=En&&(!ur||dr&&8<dr&&11>=dr),mr=` `,hr=!1;function gr(e,t){switch(e){case`keyup`:return lr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function _r(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var vr=!1;function yr(e,t){switch(e){case`compositionend`:return _r(t);case`keypress`:return t.which===32?(hr=!0,mr):null;case`textInput`:return e=t.data,e===mr&&hr?null:e;default:return null}}function br(e,t){if(vr)return e===`compositionend`||!ur&&gr(e,t)?(e=Mn(),jn=An=kn=null,vr=!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 pr&&t.locale!==`ko`?null:t.data;default:return null}}var xr={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 Sr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!xr[e.type]:t===`textarea`}function Cr(e,t,n,r){bn?xn?xn.push(r):xn=[r]:bn=r,t=Jf(t,`onChange`),0<t.length&&(n=new Rn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var wr=null,Tr=null;function Er(e){Vf(e,0)}function Dr(e){if($t(Mt(e)))return e}function Or(e,t){if(e===`change`)return t}var kr=!1;if(En){var Ar;if(En){var jr=`oninput`in document;if(!jr){var Mr=document.createElement(`div`);Mr.setAttribute(`oninput`,`return;`),jr=typeof Mr.oninput==`function`}Ar=jr}else Ar=!1;kr=Ar&&(!document.documentMode||9<document.documentMode)}function Nr(){wr&&(wr.detachEvent(`onpropertychange`,Pr),Tr=wr=null)}function Pr(e){if(e.propertyName===`value`&&Dr(Tr)){var t=[];Cr(t,Tr,e,yn(e)),wn(Er,t)}}function Fr(e,t,n){e===`focusin`?(Nr(),wr=t,Tr=n,wr.attachEvent(`onpropertychange`,Pr)):e===`focusout`&&Nr()}function Ir(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Dr(Tr)}function Lr(e,t){if(e===`click`)return Dr(t)}function Rr(e,t){if(e===`input`||e===`change`)return Dr(t)}function zr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Br=typeof Object.is==`function`?Object.is:zr;function Vr(e,t){if(Br(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(!Ne.call(t,i)||!Br(e[i],t[i]))return!1}return!0}function Hr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wr(e,t){var n=Ur(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=Ur(n)}}function Gr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Hr(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=Hr(e.document)}return t}function qr(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 Jr=En&&`documentMode`in document&&11>=document.documentMode,Yr=null,Xr=null,Zr=null,Qr=!1;function $r(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qr||Yr==null||Yr!==Hr(r)||(r=Yr,`selectionStart`in r&&qr(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}),Zr&&Vr(Zr,r)||(Zr=r,r=Jf(Xr,`onSelect`),0<r.length&&(t=new Rn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Yr)))}function ei(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var ti={animationend:ei(`Animation`,`AnimationEnd`),animationiteration:ei(`Animation`,`AnimationIteration`),animationstart:ei(`Animation`,`AnimationStart`),transitionrun:ei(`Transition`,`TransitionRun`),transitionstart:ei(`Transition`,`TransitionStart`),transitioncancel:ei(`Transition`,`TransitionCancel`),transitionend:ei(`Transition`,`TransitionEnd`)},ni={},ri={};En&&(ri=document.createElement(`div`).style,`AnimationEvent`in window||(delete ti.animationend.animation,delete ti.animationiteration.animation,delete ti.animationstart.animation),`TransitionEvent`in window||delete ti.transitionend.transition);function ii(e){if(ni[e])return ni[e];if(!ti[e])return e;var t=ti[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ri)return ni[e]=t[n];return e}var ai=ii(`animationend`),oi=ii(`animationiteration`),si=ii(`animationstart`),ci=ii(`transitionrun`),li=ii(`transitionstart`),ui=ii(`transitioncancel`),di=ii(`transitionend`),fi=new Map,pi=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);pi.push(`scrollEnd`);function mi(e,t){fi.set(e,t),Rt(t,[e])}var hi=0;function gi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=yd.identifierPrefix;var n=hi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function _i(e){if(e==null||typeof e==`string`)return e;var t=null,n=Dd;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function vi(e,t){return e=_i(e),t=_i(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var yi=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)},bi=[],xi=0,Si=0;function Ci(){for(var e=xi,t=Si=xi=0;t<e;){var n=bi[t];bi[t++]=null;var r=bi[t];bi[t++]=null;var i=bi[t];bi[t++]=null;var a=bi[t];if(bi[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&&Ei(n,i,a)}}function wi(e,t,n,r){bi[xi++]=e,bi[xi++]=t,bi[xi++]=n,bi[xi++]=r,Si|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function V(e,t,n,r){return wi(e,t,n,r),Di(e)}function Ti(e,t){return wi(e,null,null,t),Di(e)}function Ei(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-Xe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Di(e){if(50<Od)throw Od=0,kd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Oi={};function ki(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 ki(e,t,n,r)}function ji(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mi(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&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function H(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ni(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)ji(r)&&(s=1);else if(typeof r==`string`)s=Jm(e,n,ve.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case R:return e=Ai(31,n,t,a),e.elementType=R,e.lanes=o,e;case j:return Pi(n.children,a,o,t);case M:s=8,a|=24;break;case N:return e=Ai(12,n,t,a|2),e.elementType=N,e.lanes=o,e;case L:return e=Ai(13,n,t,a),e.elementType=L,e.lanes=o,e;case ee:return e=Ai(19,n,t,a),e.elementType=ee,e.lanes=o,e;case re:case ae:return e=a|32,e=Ai(30,n,t,e),e.elementType=ae,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case F:s=10;break a;case P:s=9;break a;case I:s=11;break a;case te:s=14;break a;case ne: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 Pi(e,t,n,r){return e=Ai(7,e,r,t),e.lanes=n,e}function Fi(e,t,n){return e=Ai(6,e,null,t),e.lanes=n,e}function Ii(e){var t=Ai(18,null,null,0);return t.stateNode=e,t}function Li(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 Ri=new WeakMap;function zi(e,t){if(typeof e==`object`&&e){var n=Ri.get(e);return n===void 0?(t={value:e,source:t,stack:Me(t)},Ri.set(e,t),t):n}return{value:e,source:t,stack:Me(t)}}var Bi=[],Vi=0,Hi=null,Ui=0,Wi=[],Gi=0,Ki=null,qi=1,Ji=``;function Yi(e,t){Bi[Vi++]=Ui,Bi[Vi++]=Hi,Hi=e,Ui=t}function Xi(e,t,n){Wi[Gi++]=qi,Wi[Gi++]=Ji,Wi[Gi++]=Ki,Ki=e;var r=qi;e=Ji;var i=32-Xe(r)-1;r&=~(1<<i),n+=1;var a=32-Xe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,qi=1<<32-Xe(t)+i|n<<i|r,Ji=a+e}else qi=1<<a|n<<i|r,Ji=e}function Zi(e){e.return!==null&&(Yi(e,1),Xi(e,1,0))}function Qi(e){for(;e===Hi;)Hi=Bi[--Vi],Bi[Vi]=null,Ui=Bi[--Vi],Bi[Vi]=null;for(;e===Ki;)Ki=Wi[--Gi],Wi[Gi]=null,Ji=Wi[--Gi],Wi[Gi]=null,qi=Wi[--Gi],Wi[Gi]=null}function $i(e,t){Wi[Gi++]=qi,Wi[Gi++]=Ji,Wi[Gi++]=Ki,qi=t.id,Ji=t.overflow,Ki=e}var ea=null,ta=null,U=!1,W=null,na=!1,ra=Error(i(519));function ia(e){throw ua(zi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),ra}function aa(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[bt]=e,t[xt]=r,n){case`dialog`:Q(`cancel`,t),Q(`close`,t);break;case`iframe`:case`object`:case`embed`:Q(`load`,t);break;case`video`:case`audio`:for(n=0;n<zf.length;n++)Q(zf[n],t);break;case`source`:Q(`error`,t);break;case`img`:case`image`:case`link`:Q(`error`,t),Q(`load`,t);break;case`details`:Q(`toggle`,t);break;case`input`:Q(`invalid`,t),rn(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Q(`invalid`,t);break;case`textarea`:Q(`invalid`,t),cn(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||ep(t.textContent,n)?(r.popover!=null&&(Q(`beforetoggle`,t),Q(`toggle`,t)),r.onScroll!=null&&Q(`scroll`,t),r.onScrollEnd!=null&&Q(`scrollend`,t),r.onClick!=null&&(t.onclick=_n),t=!0):t=!1,t||ia(e,!0)}function oa(e){for(ea=e.return;ea;)switch(ea.tag){case 5:case 31:case 13:na=!1;return;case 27:case 3:na=!0;return;default:ea=ea.return}}function sa(e){if(e!==ea)return!1;if(!U)return oa(e),U=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||mp(e.type,e.memoizedProps)),n=!n),n&&ta&&ia(e),oa(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ta=fm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ta=fm(e)}else t===27?(t=ta,Cp(e.type)?(e=dm,dm=null,ta=e):ta=t):ta=ea?um(e.stateNode.nextSibling):null;return!0}function ca(){ta=ea=null,U=!1}function la(){var e=W;return e!==null&&(dd===null?dd=e:dd.push.apply(dd,e),W=null),e}function ua(e){W===null?W=[e]:W.push(e)}var da=he(null),fa=null,pa=null;function ma(e,t,n){_e(da,t._currentValue),t._currentValue=n}function ha(e){e._currentValue=da.current,ge(da)}function ga(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 _a(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),ga(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),ga(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),ga(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function va(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;Br(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===xe.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[ch]:e.push(ch))}a=a.return}return e!==null&&_a(t,e,n,r),t.flags|=262144,e!==null}function ya(e){for(e=e.firstContext;e!==null;){if(!Br(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ba(e){fa=e,pa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function xa(e){return Ca(fa,e)}function Sa(e,t){return fa===null&&ba(e),Ca(e,t)}function Ca(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},pa===null){if(e===null)throw Error(i(308));pa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else pa=pa.next=t;return n}var wa=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,Ea=t.unstable_NormalPriority,Da={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Oa(){return{controller:new wa,data:new Map,refCount:0}}function ka(e){e.refCount--,e.refCount===0&&Ta(Ea,function(){e.controller.abort()})}function Aa(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var ja=null;function Ma(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Na=null,Pa=0,Fa=0,Ia=null;function La(e,t){if(Na===null){var n=Na=[];Pa=0,Fa=Pf(),Ia={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Pa++,t.then(Ra,Ra),t}function Ra(){if(--Pa===0&&(ja=null,Na!==null)){Ia!==null&&(Ia.status=`fulfilled`);var e=Na;Na=null,Fa=0,Ia=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function za(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 Ba=B.S;B.S=function(e,t){if(md=Re(),typeof t==`object`&&t&&typeof t.then==`function`&&La(e,t),ja!==null)for(var n=bf;n!==null;)Aa(n,ja),n=n.next;if(n=e.types,n!==null){for(var r=bf;r!==null;)Aa(r,n),r=r.next;if(Fa!==0){r=ja,r===null&&(r=ja=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ba!==null&&Ba(e,t)};var Va=he(null);function Ha(){var e=Va.current;return e===null?Zu.pooledCache:e}function Ua(e,t){t===null?_e(Va,Va.current):_e(Va,t.pool)}function Wa(){var e=Ha();return e===null?null:{parent:Da._currentValue,pool:e}}var Ga=Error(i(460)),Ka=Error(i(474)),qa=Error(i(542)),Ja={then:function(){}};function Ya(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(_n,_n),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,eo(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(_n,_n);else{if(e=Zu,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,eo(e),e}throw Qa=t,Ga}}function Za(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Qa=e,Ga):e}}var Qa=null;function $a(){if(Qa===null)throw Error(i(459));var e=Qa;return Qa=null,e}function eo(e){if(e===Ga||e===qa)throw Error(i(483))}var to=null,no=0;function ro(e){var t=no;return no+=1,to===null&&(to=[]),Xa(to,e,t)}function io(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function ao(e,t){throw t.$$typeof===O?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function oo(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=Mi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Fi(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===j?(e=d(e,t,n.props.children,r,n.key),io(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===ne&&Za(i)===t.type)?(t=a(t,n.props),io(t,n),t.return=e,t):(t=Ni(n.type,n.key,n.props,null,e.mode,r),io(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=Li(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=Pi(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=Fi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case k:return n=Ni(t.type,t.key,t.props,null,e.mode,n),io(n,t),n.return=e,n;case A:return t=Li(t,e.mode,n),t.return=e,t;case ne:return t=Za(t),f(e,t,n)}if(ue(t)||ce(t))return t=Pi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,ro(t),n);if(t.$$typeof===F)return f(e,Sa(e,t),n);ao(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 k:return n.key===i?l(e,t,n,r):null;case A:return n.key===i?u(e,t,n,r):null;case ne:return n=Za(n),p(e,t,n,r)}if(ue(n)||ce(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,ro(n),r);if(n.$$typeof===F)return p(e,t,Sa(e,n),r);ao(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 k:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case A:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case ne:return r=Za(r),m(e,t,n,r,i)}if(ue(r)||ce(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,ro(r),i);if(r.$$typeof===F)return m(e,t,n,Sa(t,r),i);ao(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),U&&Yi(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 U&&Yi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),U&&Yi(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),U&&Yi(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 U&&Yi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),U&&Yi(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===j&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case k:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===j){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),io(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===ne&&Za(l)===r.type){n(e,r.sibling),c=a(r,o.props),io(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===j?(c=Pi(o.props.children,e.mode,c,o.key),io(c,o),c.return=e,e=c):(c=Ni(o.type,o.key,o.props,null,e.mode,c),io(c,o),c.return=e,e=c)}return s(e);case A: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=Li(o,e.mode,c),c.return=e,e=c}return s(e);case ne:return o=Za(o),_(e,r,o,c)}if(ue(o))return h(e,r,o,c);if(ce(o)){if(l=ce(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,ro(o),c);if(o.$$typeof===F)return _(e,r,Sa(e,o),c);ao(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=Fi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{no=0;var i=_(e,t,n,r);return to=null,i}catch(t){if(t===Ga||t===qa)throw t;var a=Ai(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var so=oo(!0),co=oo(!1),lo=!1;function uo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fo(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 po(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function mo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Xu&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Di(e),Ei(e,null,n),t}return wi(e,r,t,n),Di(e)}function ho(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,pt(e,n)}}function go(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;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var _o=!1;function vo(){if(_o){var e=Ia;if(e!==null)throw e}}function yo(e,t,n,r){_o=!1;var i=e.updateQueue;lo=!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?(Z&f)===f:(r&f)===f){f!==0&&f===Fa&&(_o=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=D({},d,f);break a;case 2:lo=!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),ad|=o,e.lanes=o,e.memoizedState=d}}function bo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function xo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)bo(n[e],t)}var So=he(null),Co=he(0);function wo(e,t){e=rd,_e(Co,e),_e(So,t),rd=e|t.baseLanes}function To(){_e(Co,rd),_e(So,So.current)}function Eo(){rd=Co.current,ge(So),ge(Co)}var Do=he(null),Oo=null;function ko(e){var t=e.alternate;_e(Po,Po.current&1),_e(Do,e),Oo===null&&(t===null||So.current!==null||t.memoizedState!==null)&&(Oo=e)}function Ao(e){_e(Po,Po.current),_e(Do,e),Oo===null&&(Oo=e)}function jo(e){e.tag===22?(_e(Po,Po.current),_e(Do,e),Oo===null&&(Oo=e)):Mo()}function Mo(){_e(Po,Po.current),_e(Do,Do.current)}function No(e){ge(Do),Oo===e&&(Oo=null),ge(Po)}var Po=he(0);function Fo(e,t){_e(Do,Do.current),_e(Po,t)}function Io(e){ge(Po),ge(Do),Oo===e&&(Oo=null)}function Lo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||sm(n)||cm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ro=0,G=null,zo=null,Bo=null,Vo=!1,Ho=!1,Uo=!1,Wo=0,Go=0,Ko=null,qo=0;function Jo(){throw Error(i(321))}function Yo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Br(e[n],t[n]))return!1;return!0}function Xo(e,t,n,r,i,a){return Ro=a,G=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?pc:mc,Uo=!1,a=n(r,i),Uo=!1,Ho&&(a=Qo(t,n,r,i)),Zo(e),a}function Zo(e){B.H=fc;var t=zo!==null&&zo.next!==null;if(Ro=0,Bo=zo=G=null,Vo=!1,Go=0,Ko=null,t)throw Error(i(300));e===null||jc||(e=e.dependencies,e!==null&&ya(e)&&(jc=!0))}function Qo(e,t,n,r){G=e;var a=0;do{if(Ho&&(Ko=null),Go=0,Ho=!1,25<=a)throw Error(i(301));if(a+=1,Bo=zo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}B.H=hc,o=t(n,r)}while(Ho);return o}function $o(){var e=B.H,t=e.useState()[0];return t=typeof t.then==`function`?os(t):t,e=e.useState()[0],(zo===null?null:zo.memoizedState)!==e&&(G.flags|=1024),t}function es(){var e=Wo!==0;return Wo=0,e}function ts(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ns(e){if(Vo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Vo=!1}Ro=0,Bo=zo=G=null,Ho=!1,Go=Wo=0,Ko=null}function rs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bo===null?G.memoizedState=Bo=e:Bo=Bo.next=e,Bo}function is(){if(zo===null){var e=G.alternate;e=e===null?null:e.memoizedState}else e=zo.next;var t=Bo===null?G.memoizedState:Bo.next;if(t!==null)Bo=t,zo=e;else{if(e===null)throw G.alternate===null?Error(i(467)):Error(i(310));zo=e,e={memoizedState:zo.memoizedState,baseState:zo.baseState,baseQueue:zo.baseQueue,queue:zo.queue,next:null},Bo===null?G.memoizedState=Bo=e:Bo=Bo.next=e}return Bo}function as(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var t=Go;return Go+=1,Ko===null&&(Ko=[]),e=Xa(Ko,e,t),t=G,(Bo===null?t.memoizedState:Bo.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?pc:mc),e}function ss(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return os(e);if(e.$$typeof===oe)return;if(e.$$typeof===F)return xa(e)}throw Error(i(438,String(e)))}function cs(e){var t=null,n=G.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=G.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=as(),G.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]=ie;return t.index++,n}function ls(e,t){return typeof t==`function`?t(e):t}function us(e){return ds(is(),zo,e)}function ds(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:(Z&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===Fa&&(d=!0);else if((Ro&p)===p){u=u.next,p===Fa&&(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,G.lanes|=p,ad|=p;f=u.action,Uo&&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,G.lanes|=f,ad|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Br(o,e.memoizedState)&&(jc=!0,d&&(n=Ia,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 fs(e){var t=is(),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);Br(o,t.memoizedState)||(jc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ps(e,t,n){var r=G,a=is(),o=U;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Br((zo||a).memoizedState,n);if(s&&(a.memoizedState=n,jc=!0),a=a.queue,Rs(gs.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Bo!==null&&!!(Bo.memoizedState.tag&1),Ns(e?9:8,{destroy:void 0},hs.bind(null,r,a,n,t),null),e){if(r.flags|=2048,Zu===null)throw Error(i(349));o||Ro&127||ms(r,t,n)}return n}function ms(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=G.updateQueue,t===null?(t=as(),G.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function hs(e,t,n,r){t.value=n,t.getSnapshot=r,_s(t)&&vs(e)}function gs(e,t,n){return n(function(){_s(t)&&vs(e)})}function _s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Br(e,n)}catch{return!0}}function vs(e){var t=Ti(e,2);t!==null&&Nd(t,e,2)}function ys(e){var t=rs();if(typeof e==`function`){var n=e;if(e=n(),Uo){Ye(!0);try{n()}finally{Ye(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:e},t}function bs(e,t,n,r){return e.baseState=n,ds(e,zo,typeof r==`function`?r:ls)}function xs(e,t,n,r,a){if(lc(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)}};B.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ss(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ss(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=B.T,o={};o.types=a===null?null:a.types,B.T=o;try{var s=n(i,r),c=B.S;c!==null&&c(o,s),Cs(e,t,s)}catch(n){Ts(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),B.T=a}}else try{a=n(i,r),Cs(e,t,a)}catch(n){Ts(e,t,n)}}function Cs(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){ws(e,t,n)},function(n){return Ts(e,t,n)}):ws(e,t,n)}function ws(e,t,n){t.status=`fulfilled`,t.value=n,Es(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ss(e,n)))}function Ts(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Es(t),t=t.next;while(t!==r)}e.action=null}function Es(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ds(e,t){return t}function Os(e,t){if(U){var n=Zu.formState;if(n!==null){a:{var r=G;if(U){if(ta){b:{for(var i=ta,a=na;i.nodeType!==8;){if(!a){i=null;break b}if(i=um(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ta=um(i.nextSibling),r=i.data===`F!`;break a}}ia(r)}r=!1}r&&(t=n[0])}}return n=rs(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ds,lastRenderedState:t},n.queue=r,n=oc.bind(null,G,r),r.dispatch=n,r=ys(!1),a=cc.bind(null,G,!1,r.queue),r=rs(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=xs.bind(null,G,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ks(e){return As(is(),zo,e)}function As(e,t,n){if(t=ds(e,t,Ds)[0],e=us(ls)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=os(t)}catch(e){throw e===Ga?qa:e}else r=t;t=is();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(G.flags|=2048,Ns(9,{destroy:void 0},js.bind(null,i,n),null)),[r,a,e]}function js(e,t){e.action=t}function Ms(e){var t=is(),n=zo;if(n!==null)return As(t,n,e);is(),t=t.memoizedState,n=is();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ns(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=G.updateQueue,t===null&&(t=as(),G.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 Ps(){return is().memoizedState}function Fs(e,t,n,r){var i=rs();G.flags|=e,i.memoizedState=Ns(1|t,{destroy:void 0},n,r===void 0?null:r)}function Is(e,t,n,r){var i=is();r=r===void 0?null:r;var a=i.memoizedState.inst;zo!==null&&r!==null&&Yo(r,zo.memoizedState.deps)?i.memoizedState=Ns(t,a,n,r):(G.flags|=e,i.memoizedState=Ns(1|t,a,n,r))}function Ls(e,t){Fs(8390656,8,e,t)}function Rs(e,t){Is(2048,8,e,t)}function zs(e){G.flags|=4;var t=G.updateQueue;if(t===null)t=as(),G.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Bs(e){var t=is().memoizedState;return zs({ref:t,nextImpl:e}),function(){if(Xu&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Vs(e,t){return Is(4,2,e,t)}function Hs(e,t){return Is(4,4,e,t)}function Us(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 Ws(e,t,n){n=n==null?null:n.concat([e]),Is(4,4,Us.bind(null,t,e),n)}function Gs(){}function Ks(e,t){var n=is();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Yo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qs(e,t){var n=is();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Yo(t,r[1]))return r[0];if(r=e(),Uo){Ye(!0);try{e()}finally{Ye(!1)}}return n.memoizedState=[r,t],r}function Js(e,t,n){return n===void 0||Ro&1073741824&&!(Z&261930)?e.memoizedState=t:(e.memoizedState=n,e=jd(),G.lanes|=e,ad|=e,n)}function Ys(e,t,n,r){return Br(n,t)?n:So.current===null?!(Ro&106)||Ro&1073741824&&!(Z&261930)?(jc=!0,e.memoizedState=n):(e=jd(),G.lanes|=e,ad|=e,t):(e=Js(e,n,r),Br(e,t)||(jc=!0),e)}function Xs(e,t,n,r,i){var a=de.p;de.p=a!==0&&8>a?a:8;var o=B.T,s={};s.types=o===null?null:o.types,B.T=s,cc(e,!1,t,n);try{var c=i(),l=B.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?sc(e,t,za(c,r),Ad(e)):sc(e,t,r,Ad(e))}catch(n){sc(e,t,{then:function(){},status:`rejected`,reason:n},Ad())}finally{de.p=a,o!==null&&s.types!==null&&(o.types=s.types),B.T=o}}function Zs(){}function Qs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=$s(e).queue;Xs(e,a,t,fe,n===null?Zs:function(){return ec(e),n(r)})}function $s(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:fe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ec(e){var t=$s(e);t.next===null&&(t=e.alternate.memoizedState),sc(e,t.next.queue,{},Ad())}function tc(){return xa(ch)}function nc(){return is().memoizedState}function rc(){return is().memoizedState}function ic(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ad();e=po(n);var r=mo(t,e,n);r!==null&&(Nd(r,t,n),ho(r,t,n)),t={cache:Oa()},e.payload=t;return}t=t.return}}function ac(e,t,n){var r=Ad();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},lc(e)?uc(t,n):(n=V(e,t,n,r),n!==null&&(Nd(n,e,r),dc(n,t,r)))}function oc(e,t,n){sc(e,t,n,Ad())}function sc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(lc(e))uc(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,Br(s,o))return wi(e,t,i,0),Zu===null&&Ci(),!1}catch{}if(n=V(e,t,i,r),n!==null)return Nd(n,e,r),dc(n,t,r),!0}return!1}function cc(e,t,n,r){if(r={lane:2,revertLane:Pf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},lc(e)){if(t)throw Error(i(479))}else t=V(e,n,r,2),t!==null&&Nd(t,e,2)}function lc(e){var t=e.alternate;return e===G||t!==null&&t===G}function uc(e,t){Ho=Vo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pt(e,n)}}var fc={readContext:xa,use:ss,useCallback:Jo,useContext:Jo,useEffect:Jo,useImperativeHandle:Jo,useLayoutEffect:Jo,useInsertionEffect:Jo,useMemo:Jo,useReducer:Jo,useRef:Jo,useState:Jo,useDebugValue:Jo,useDeferredValue:Jo,useTransition:Jo,useSyncExternalStore:Jo,useId:Jo,useHostTransitionStatus:Jo,useFormState:Jo,useActionState:Jo,useOptimistic:Jo,useMemoCache:Jo,useCacheRefresh:Jo,useEffectEvent:Jo},pc={readContext:xa,use:ss,useCallback:function(e,t){return rs().memoizedState=[e,t===void 0?null:t],e},useContext:xa,useEffect:Ls,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Fs(4194308,4,Us.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fs(4194308,4,e,t)},useInsertionEffect:function(e,t){Fs(4,2,e,t)},useMemo:function(e,t){var n=rs();t=t===void 0?null:t;var r=e();if(Uo){Ye(!0);try{e()}finally{Ye(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=rs();if(n!==void 0){var i=n(t);if(Uo){Ye(!0);try{n(t)}finally{Ye(!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=ac.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=rs();return e={current:e},t.memoizedState=e},useState:function(e){e=ys(e);var t=e.queue,n=oc.bind(null,G,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Gs,useDeferredValue:function(e,t){return Js(rs(),e,t)},useTransition:function(){var e=ys(!1);return e=Xs.bind(null,G,e.queue,!0,!1),rs().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=G,a=rs();if(U){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Zu===null)throw Error(i(349));Z&127||ms(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Ls(gs.bind(null,r,o,e),[e]),r.flags|=2048,Ns(9,{destroy:void 0},hs.bind(null,r,o,n,t),null),n},useId:function(){var e=rs(),t=Zu.identifierPrefix;if(U){var n=Ji,r=qi;n=(r&~(1<<32-Xe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Wo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=qo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:tc,useFormState:Os,useActionState:Os,useOptimistic:function(e){var t=rs();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=cc.bind(null,G,!0,n),n.dispatch=t,[e,t]},useMemoCache:cs,useCacheRefresh:function(){return rs().memoizedState=ic.bind(null,G)},useEffectEvent:function(e){var t=rs(),n={impl:e};return t.memoizedState=n,function(){if(Xu&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},mc={readContext:xa,use:ss,useCallback:Ks,useContext:xa,useEffect:Rs,useImperativeHandle:Ws,useInsertionEffect:Vs,useLayoutEffect:Hs,useMemo:qs,useReducer:us,useRef:Ps,useState:function(){return us(ls)},useDebugValue:Gs,useDeferredValue:function(e,t){return Ys(is(),zo.memoizedState,e,t)},useTransition:function(){var e=us(ls)[0],t=is().memoizedState;return[typeof e==`boolean`?e:os(e),t]},useSyncExternalStore:ps,useId:nc,useHostTransitionStatus:tc,useFormState:ks,useActionState:ks,useOptimistic:function(e,t){return bs(is(),zo,e,t)},useMemoCache:cs,useCacheRefresh:rc,useEffectEvent:Bs},hc={readContext:xa,use:ss,useCallback:Ks,useContext:xa,useEffect:Rs,useImperativeHandle:Ws,useInsertionEffect:Vs,useLayoutEffect:Hs,useMemo:qs,useReducer:fs,useRef:Ps,useState:function(){return fs(ls)},useDebugValue:Gs,useDeferredValue:function(e,t){var n=is();return zo===null?Js(n,e,t):Ys(n,zo.memoizedState,e,t)},useTransition:function(){var e=fs(ls)[0],t=is().memoizedState;return[typeof e==`boolean`?e:os(e),t]},useSyncExternalStore:ps,useId:nc,useHostTransitionStatus:tc,useFormState:Ms,useActionState:Ms,useOptimistic:function(e,t){var n=is();return zo===null?(n.baseState=e,[e,n.queue.dispatch]):bs(n,zo,e,t)},useMemoCache:cs,useCacheRefresh:rc,useEffectEvent:Bs};function gc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:D({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var _c={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ad(),i=po(r);i.payload=t,n!=null&&(i.callback=n),t=mo(e,i,r),t!==null&&(Nd(t,e,r),ho(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ad(),i=po(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=mo(e,i,r),t!==null&&(Nd(t,e,r),ho(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ad(),r=po(n);r.tag=2,t!=null&&(r.callback=t),t=mo(e,r,n),t!==null&&(Nd(t,e,n),ho(t,e,n))}};function vc(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?!Vr(n,r)||!Vr(i,a):!0}function yc(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&&_c.enqueueReplaceState(t,t.state,null)}function bc(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=D({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function xc(e){yi(e)}function Sc(e){console.error(e)}function Cc(e){yi(e)}function wc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Tc(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 Ec(e,t,n){return n=po(n),n.tag=3,n.payload={element:null},n.callback=function(){wc(e,t)},n}function Dc(e){return e=po(e),e.tag=3,e}function Oc(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(){Tc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Tc(t,n,r),typeof i!=`function`&&(_d===null?_d=new Set([this]):_d.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function kc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&va(t,n,a,!0),n=Do.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Oo===null?Gd():n.alternate===null&&id===0&&(id=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ja?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),mf(e,r,a)),!1;case 22:return n.flags|=65536,r===Ja?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)),mf(e,r,a)),!1}throw Error(i(435,n.tag))}return mf(e,r,a),Gd(),!1}if(U)return t=Do.current,t===null?(r!==ra&&(t=Error(i(423),{cause:r}),ua(zi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=zi(r,n),a=Ec(e.stateNode,r,a),go(e,a),id!==4&&(id=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==ra&&(e=Error(i(422),{cause:r}),ua(zi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=zi(o,n),ud===null?ud=[o]:ud.push(o),id!==4&&(id=2),t===null)return!0;r=zi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Ec(n.stateNode,r,e),go(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`&&(_d===null||!_d.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Dc(a),Oc(a,e,n,r),go(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Ac=Error(i(461)),jc=!1;function Mc(e,t,n,r){t.child=e===null?co(t,null,n,r):so(t,e.child,n,r)}function Nc(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 ba(t),r=Xo(e,t,n,o,a,i),s=es(),e!==null&&!jc?(ts(e,t,i),sl(e,t,i)):(U&&s&&Zi(t),t.flags|=1,Mc(e,t,r,i),t.child)}function Pc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ji(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Fc(e,t,a,r,i)):(e=Ni(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!cl(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Vr:n,n(o,r)&&e.ref===t.ref)return sl(e,t,i)}return t.flags|=1,e=Mi(a,r),e.ref=t.ref,e.return=t,t.child=e}function Fc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Vr(a,r)&&e.ref===t.ref){if(jc=!1,t.pendingProps=r=a,cl(e,i))e.flags&131072&&(jc=!0);else return t.lanes=e.lanes,sl(e,t,i)}}return Uc(e,t,n,r,i)}function Ic(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&&Ua(t,a===null?null:a.cachePool),a===null?To():wo(t,a),jo(t);else return r=t.lanes=536870912,Rc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ua(t,null),To(),Mo()):(Ua(t,a.cachePool),wo(t,a),Mo(),t.memoizedState=null);return Mc(e,t,i,n),t.child}function Lc(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=Ha();return a=a===null?null:{parent:Da._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ua(t,null),To(),jo(t),e!==null&&va(e,t,r,!0),t.childLanes=i,null}function zc(e,t){return t=Qc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Bc(e,t,n){return so(t,e.child,null,n),e=zc(t,t.pendingProps),e.flags|=2,No(t),t.memoizedState=null,e}function Vc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(U){if(r.mode===`hidden`)return e=zc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Lc(null,e);if(Ao(t),(e=ta)?(e=om(e,na),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ki===null?null:{id:qi,overflow:Ji},retryLane:536870912,hydrationErrors:null},n=Ii(e),n.return=t,t.child=n,ea=t,ta=null)):e=null,e===null)throw ia(t);return t.lanes=536870912,null}return zc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Ao(t),a){if(t.flags&256)t.flags&=-257,t=Bc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(jc||va(e,t,n,!1),a=(n&e.childLanes)!==0,jc||a){if(So.current===null){if(r=Zu,r!==null&&(s=mt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Ti(e,s),Nd(r,e,s),Ac;Gd()}t=Bc(e,t,n)}else e=o.treeContext,ta=um(s.nextSibling),ea=t,U=!0,W=null,na=!1,e!==null&&$i(t,e),t=zc(t,r),t.flags|=134221824;return t}return e=Mi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Hc(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 Uc(e,t,n,r,i){return ba(t),n=Xo(e,t,n,r,void 0,i),r=es(),e!==null&&!jc?(ts(e,t,i),sl(e,t,i)):(U&&r&&Zi(t),t.flags|=1,Mc(e,t,n,i),t.child)}function Wc(e,t,n,r,i,a){return ba(t),t.updateQueue=null,n=Qo(t,r,n,i),Zo(e),r=es(),e!==null&&!jc?(ts(e,t,a),sl(e,t,a)):(U&&r&&Zi(t),t.flags|=1,Mc(e,t,n,a),t.child)}function Gc(e,t,n,r,i){if(ba(t),t.stateNode===null){var a=Oi,o=n.contextType;typeof o==`object`&&o&&(a=xa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=_c,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},uo(t),o=n.contextType,a.context=typeof o==`object`&&o?xa(o):Oi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(gc(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&&_c.enqueueReplaceState(a,a.state,null),yo(t,r,a,i),vo(),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=bc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Oi,typeof u==`object`&&u&&(o=xa(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)&&yc(t,a,r,o),lo=!1;var f=t.memoizedState;a.state=f,yo(t,r,a,i),vo(),l=t.memoizedState,s||f!==l||lo?(typeof d==`function`&&(gc(t,n,d,r),l=t.memoizedState),(c=lo||vc(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,fo(e,t),o=t.memoizedProps,u=bc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Oi,typeof l==`object`&&l&&(c=xa(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)&&yc(t,a,r,c),lo=!1,f=t.memoizedState,a.state=f,yo(t,r,a,i),vo();var p=t.memoizedState;o!==d||f!==p||lo||e!==null&&e.dependencies!==null&&ya(e.dependencies)?(typeof s==`function`&&(gc(t,n,s,r),p=t.memoizedState),(u=lo||vc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ya(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,Hc(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=so(t,e.child,null,i),t.child=so(t,null,n,i)):Mc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=sl(e,t,i),e}function Kc(e,t,n,r){return ca(),t.flags|=256,Mc(e,t,n,r),t.child}var qc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Jc(e){return{baseLanes:e,cachePool:Wa()}}function Yc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=cd),e}function Xc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Po.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(U){if(i?ko(t):Mo(),(e=ta)?(e=om(e,na),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ki===null?null:{id:qi,overflow:Ji},retryLane:536870912,hydrationErrors:null},n=Ii(e),n.return=t,t.child=n,ea=t,ta=null)):e=null,e===null)throw ia(t);return t.lanes=cm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Mo(),i=t.mode,a=Qc({mode:`hidden`,children:a},i),r=Pi(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Jc(n),r.childLanes=Yc(e,o,n),t.memoizedState=qc,Lc(null,r)):(ko(t),Zc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return el(e,t,a,o,r,c,s,n)}return i?(Mo(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Mi(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Pi(i,a,n,null),i.flags|=2):i=Mi(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Lc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Jc(n):(a=i.cachePool,a===null?a=Wa():(s=Da._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Yc(e,o,n),t.memoizedState=qc,Lc(e.child,r)):(ko(t),n=e.child,e=n.sibling,n=Mi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Zc(e,t){return t=Qc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Qc(e,t){return e=Ai(22,e,null,t),e.lanes=0,e}function $c(e,t,n){return so(t,e.child,null,n),e=Zc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function el(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(ko(t),t.flags&=-257,$c(e,t,c)):t.memoizedState===null?(Mo(),o=a.fallback,s=t.mode,a=Qc({mode:`visible`,children:a.children},s),o=Pi(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,so(t,e.child,null,c),a=t.child,a.memoizedState=Jc(c),a.childLanes=Yc(e,r,c),t.memoizedState=qc,Lc(null,a)):(Mo(),t.child=e.child,t.flags|=128,null);if(ko(t),cm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,ua({value:a,source:null,stack:null})),$c(e,t,c)}if(jc||va(e,t,c,!1),r=(c&e.childLanes)!==0,jc||r){if(So.current!==null)return $c(e,t,c);if(r=Zu,r!==null&&(a=mt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,Ti(e,a),Nd(r,e,a),Ac;return sm(o)||Gd(),$c(e,t,c)}return sm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,ta=um(o.nextSibling),ea=t,U=!0,W=null,na=!1,e!==null&&$i(t,e),t=Zc(t,a.children),t.flags|=134221824,t)}function tl(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ga(e.return,t,n)}function nl(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Lo(n)===null&&(t=e),e=e.sibling}return t}function rl(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 il(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function al(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Po.current;if(t.flags&128)return Fo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Fo(t,o),i===`backwards`&&e!==null?(il(e),Mc(e,t,r,n),il(e)):Mc(e,t,r,n),r=U?Ui:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&tl(e,n,t);else if(e.tag===19)tl(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=nl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,il(t)),rl(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Lo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}rl(t,!0,n,null,a,r);break;case`together`:rl(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=nl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),rl(t,!1,i,n,a,r)}return t.child}function ol(e,t,n){var r=t.pendingProps;return ma(t,t.type,r.value),Mc(e,t,r.children,n),t.child}function sl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ad|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(va(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=Mi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Mi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function cl(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&ya(e)))}function ll(e,t,n){switch(t.tag){case 3:Se(t,t.stateNode.containerInfo),ma(t,Da,e.memoizedState.cache),ca();break;case 27:case 5:we(t);break;case 4:Se(t,t.stateNode.containerInfo);break;case 10:ma(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ao(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return ko(t),t.flags|=128,null;r=va(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Xc(e,t,n):(ko(t),e=sl(e,t,n),e===null?null:e.sibling)}ko(t);break;case 19:if(t.flags&128)return al(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(va(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return al(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Fo(t,Po.current),r)break;return null;case 22:return t.lanes=0,Ic(e,t,n,t.pendingProps);case 24:ma(t,Da,e.memoizedState.cache)}return sl(e,t,n)}function ul(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)jc=!0;else{if(!cl(e,n)&&!(t.flags&128))return jc=!1,ll(e,t,n);jc=!!(e.flags&131072)}}else jc=!1,U&&t.flags&1048576&&Xi(t,Ui,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Za(t.elementType),t.type=e,typeof e==`function`)ji(e)?(r=bc(e,r),t.tag=1,t=Gc(null,t,e,r,n)):(t.tag=0,t=Uc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===I){t.tag=11,t=Nc(null,t,e,r,n);break a}if(a===te){t.tag=14,t=Pc(null,t,e,r,n);break a}if(a===F){t.tag=10,t.type=e,t=ol(null,t,n);break a}}throw t=z(e)||e,Error(i(306,t,``))}}return t;case 0:return Uc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=bc(r,t.pendingProps),Gc(e,t,r,a,n);case 3:a:{if(Se(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,fo(e,t),yo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,ma(t,Da,r),r!==o.cache&&_a(t,[Da],n,!0),vo(),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=Kc(e,t,r,n);break a}if(r!==a){a=zi(Error(i(424)),t),ua(a),t=Kc(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(ta=um(e.firstChild),ea=t,U=!0,W=null,na=!0,n=co(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(ca(),r===a){t=sl(e,t,n);break a}Mc(e,t,r,n)}t=t.child}return t;case 26:return Hc(e,t),e===null?(n=Pm(t.type,null,t.pendingProps,null))?t.memoizedState=n:U||(t.stateNode=pp(t.type,t.pendingProps,be.current,t)):t.memoizedState=Pm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return we(t),e===null&&U&&(r=t.stateNode=gm(t.type,t.pendingProps,be.current),ea=t,na=!0,a=ta,Cp(t.type)?(dm=a,ta=um(r.firstChild)):ta=a),Mc(e,t,t.pendingProps.children,n),Hc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&U&&((a=r=ta)&&(r=im(r,t.type,t.pendingProps,na),r===null?a=!1:(t.stateNode=r,ea=t,ta=um(r.firstChild),na=!1,a=!0)),a||ia(t)),we(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,mp(a,o)?r=null:s!==null&&mp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Xo(e,t,$o,null,null,n),ch._currentValue=a),Hc(e,t),Mc(e,t,r,n),t.child;case 6:return e===null&&U&&((e=n=ta)&&(n=am(n,t.pendingProps,na),n===null?e=!1:(t.stateNode=n,ea=t,ta=null,e=!0)),e||ia(t)),null;case 13:return Xc(e,t,n);case 4:return Se(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=so(t,null,r,n):Mc(e,t,r,n),t.child;case 11:return Nc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Hc(e,t),Mc(e,t,r,n),t.child;case 8:return Mc(e,t,t.pendingProps.children,n),t.child;case 12:return Mc(e,t,t.pendingProps.children,n),t.child;case 10:return ol(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,ba(t),a=xa(a),r=r(a),t.flags|=1,Mc(e,t,r,n),t.child;case 14:return Pc(e,t,t.type,t.pendingProps,n);case 15:return Fc(e,t,t.type,t.pendingProps,n);case 19:return al(e,t,n);case 31:return Vc(e,t,n);case 22:return Ic(e,t,n,t.pendingProps);case 24:return ba(t),r=xa(Da),e===null?(a=Ha(),a===null&&(a=Zu,o=Oa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},uo(t),ma(t,Da,a)):((e.lanes&n)!==0&&(fo(e,t),yo(t,null,null,n),vo()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,ma(t,Da,r),r!==a.cache&&_a(t,[Da],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ma(t,Da,r))),Mc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:U&&Zi(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Hc(e,t),Mc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function dl(e){e.flags|=4}function fl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Ym(t,r):Ym(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Hd())e.flags|=8192;else throw Qa=Ja,Ka}}else e.flags&=-16777217}function pl(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Xm(t)){if(Hd())e.flags|=8192;else throw Qa=Ja,Ka}}function ml(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:ct(),e.lanes|=t,ld|=t)}function hl(e,t){if(!U)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function gl(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function _l(e,t,n){var r=t.pendingProps;switch(Qi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gl(t),null;case 1:return gl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ha(Da),Ce(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(sa(t)?dl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,la())),gl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(dl(t),o===null?(gl(t),fl(t,a,null,r,n)):(gl(t),pl(t,o))):o?o===e.memoizedState?(gl(t),t.flags&=-16777217):(dl(t),gl(t),pl(t,o)):(e=e.memoizedProps,e!==r&&dl(t),gl(t),fl(t,a,e,r,n)),null;case 27:if(Te(t),n=be.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&dl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return gl(t),t.subtreeFlags&=-33554433,null}e=ve.current,sa(t)?aa(t,e):(e=gm(a,r,n),t.stateNode=e,dl(t))}return gl(t),t.subtreeFlags&=-33554433,null;case 5:if(Te(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&dl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return gl(t),t.subtreeFlags&=-33554433,null}if(o=ve.current,sa(t))aa(t,o);else{var s=up(be.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[bt]=t,o[xt]=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(rp(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&&dl(t)}}return gl(t),t.subtreeFlags&=-33554433,fl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&dl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=be.current,sa(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ea,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[bt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||ep(e.nodeValue,n)),e||ia(t,!0)}else e=up(e).createTextNode(r),e[bt]=t,t.stateNode=e}return gl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=sa(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[bt]=t}else ca(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gl(t),e=!1}else n=la(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(No(t),t):(No(t),null);if(t.flags&128)throw Error(i(558))}return gl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=sa(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[bt]=t}else ca(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gl(t),a=!1}else a=la(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(No(t),t):(No(t),null)}return No(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),ml(t,t.updateQueue),gl(t),null);case 4:return Ce(),e===null&&Wf(t.stateNode.containerInfo),t.flags|=67108864,gl(t),null;case 10:return ha(t.type),gl(t),null;case 19:if(Io(t),r=t.memoizedState,r===null)return gl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)hl(r,!1);else{if(id!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Lo(e),o!==null){for(t.flags|=128,hl(r,!1),e=o.updateQueue,t.updateQueue=e,ml(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)H(n,e),n=n.sibling;return Fo(t,Po.current&1|2),U&&Yi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Re()>hd&&(t.flags|=128,a=!0,hl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Lo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,ml(t,e),hl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!U)return gl(t),null}else 2*Re()-r.renderingStartTime>hd&&n!==536870912&&(t.flags|=128,a=!0,hl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Re(),e.sibling=null,o=Po.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||U?Fo(t,o):(n=o,_e(Do,t),_e(Po,n),Oo===null&&(Oo=t)),U&&Yi(t,r.treeForkCount),e}return gl(t),null;case 22:case 23:return No(t),Eo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(gl(t),t.subtreeFlags&6&&(t.flags|=8192)):gl(t),n=t.updateQueue,n!==null&&ml(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&&ge(Va),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ha(Da),gl(t),null;case 25:return null;case 30:return t.flags|=33554432,gl(t),null}throw Error(i(156,t.tag))}function vl(e,t){switch(Qi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ha(Da),Ce(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Te(t),null;case 31:if(t.memoizedState!==null){if(No(t),t.alternate===null)throw Error(i(340));ca()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(No(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ca()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Io(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Ce(),null;case 10:return ha(t.type),null;case 22:case 23:return No(t),Eo(),e!==null&&ge(Va),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ha(Da),null;case 25:return null;default:return null}}function yl(e,t){switch(Qi(t),t.tag){case 3:ha(Da),Ce();break;case 26:case 27:case 5:Te(t);break;case 4:Ce();break;case 31:t.memoizedState!==null&&No(t);break;case 13:No(t);break;case 19:Io(t);break;case 10:ha(t.type);break;case 22:case 23:No(t),Eo(),e!==null&&ge(Va);break;case 24:ha(Da)}}function bl(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){pf(t,t.return,e)}}function xl(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){pf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){pf(t,t.return,e)}}function Sl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{xo(t,n)}catch(t){pf(e,e.return,t)}}}function Cl(e,t,n){n.props=bc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){pf(e,t,n)}}function wl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=gi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Fp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Ip(e);h(e.child,!1,$p,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){pf(e,t,n)}}function Tl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){pf(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){pf(e,t,n)}else n.current=null}}function El(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)tm(e.stateNode,t[n])}function Dl(e){for(var t=e.return;t!==null&&(Al(t)&&tm(e.stateNode,t.stateNode),!kl(t));)t=t.return}function Ol(e){for(var t=e.return;t!==null&&(Al(t)&&nm(e.stateNode,t.stateNode),!kl(t));)t=t.return}function kl(e){return e.tag===5||e.tag===3||e.tag===27}function Al(e){return e&&e.tag===7&&e.stateNode!==null}function jl(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){pf(e,e.return,t)}}function Ml(e,t,n){try{var r=e.stateNode;ap(r,e.type,n,t),r[xt]=t}catch(t){pf(e,e.return,t)}}function Nl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Cp(e.type)||e.tag===4}function Pl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Nl(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&&Cp(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 Fl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=_n)),El(e,r),Wt=!0;else if(i!==4&&(i===27&&(El(e,r),r=null,Cp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Fl(e,t,n,r),e=e.sibling;e!==null;)Fl(e,t,n,r),e=e.sibling}function Il(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),El(e,r),Wt=!0;else if(i!==4&&(i===27&&(El(e,r),r=null,Cp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Il(e,t,n,r),e=e.sibling;e!==null;)Il(e,t,n,r),e=e.sibling}function Ll(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);rp(t,r,n),t[bt]=e,t[xt]=n}catch(t){pf(e,e.return,t)}}var Rl=!1,zl=null;function Bl(e){(e.tag===30||e.subtreeFlags&33554432)&&(Rl=!0)}var Vl=null;function Hl(){var e=Vl;return Vl=null,e}var Ul=0;function Wl(e,t,n,r,i){return Ul=0,Gl(e.child,t,n,r,i)}function Gl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=kp(o);r.push(s),s.view&&(a=!0)}else a||kp(o).view&&(a=!0);Rl=!0,Ep(o,Ul===0?t:t+`_`+Ul,n),Ul++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Gl(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function Kl(e,t){for(;e!==null;)e.tag===5?Dp(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Kl(e.child,t)),e=e.sibling}function ql(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(ql(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=vi(t.default,t.share),t!==`none`&&(Wl(e,n,t,null,!1)||Kl(e.child,!1))}e=e.sibling}}function Jl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=gi(r,n),a=vi(r.default,n.paired?r.share:r.enter);a===`none`?ql(e):Wl(e,i,a,null,!1)?(ql(e),n.paired||t||Md(e,r.onEnter)):Kl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Jl(e,t),e=e.sibling;else ql(e)}function Yl(e){if(zl!==null&&zl.size!==0){var t=zl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=vi(n.default,n.share);if(a!==`none`&&(Wl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Md(e,n.onShare)):Kl(e.child,!1)),t.delete(r),t.size===0)break}}}Yl(e)}e=e.sibling}}}function Xl(e){if(e.tag===30){var t=e.memoizedProps,n=gi(t,e.stateNode),r=zl===null?void 0:zl.get(n),i=vi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Wl(e,n,i,null,!1)?r===void 0?Md(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,zl.delete(n),Md(e,t.onShare)):Kl(e.child,!1)),zl!==null&&Yl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Xl(e),e=e.sibling;else zl!==null&&Yl(e)}function Zl(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=gi(t,e.stateNode);t=vi(t.default,t.update),e.flags&=-5,t!==`none`&&Wl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Zl(e);e=e.sibling}}function Ql(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Kl(e.child,!1))}Ql(e)}e=e.sibling}}function $l(e){if(e.tag===30)e.stateNode.paired=null,Kl(e.child,!1),Ql(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)$l(e),e=e.sibling;else Ql(e)}function eu(e){for(e=e.child;e!==null;)e.tag===30?Kl(e.child,!1):e.subtreeFlags&33554432&&eu(e),e=e.sibling}function tu(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Ul<a.length){var l=a[Ul],u=kp(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Ep(c,Ul===0?n:n+`_`+Ul,i),s&&e.flags&4||(Vl===null&&(Vl=[]),Vl.push(c,Ul===0?r:r+`_`+Ul,t.memoizedProps)),Ul++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:tu(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function nu(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=gi(n,r),a=vi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Ap)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Ul=0,i=tu(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Md(e,n.onUpdate))}else e.subtreeFlags&33554432&&nu(e,t);e=e.sibling}}var ru=!1,iu=!1,au=!1,ou=!1,su=typeof WeakSet==`function`?WeakSet:Set,K=null,cu=!1,lu=!1,uu=!1,du=!1;function fu(e,t,n){if(e=e.containerInfo,cp=_h,e=Kr(e),qr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(lp={focusedElem:e,selectionRange:r},_h=!1,n=(n&335544064)===n,K=t,t=n?9270:1024;K!==null;){if(e=K,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Xl(r[a]);if(e.alternate===null&&e.flags&2)n&&Bl(e),pu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Xl(r),pu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Bl(e),pu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,K=r):(n&&Zl(e),pu(n))}}zl=null}function pu(e){for(;K!==null;){var t=K,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=bc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){pf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)rm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:rm(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=gi(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=vi(a.default,a.update),a!==`none`&&Wl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,K=r;break}K=t.return}}function mu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Mu(e,n),r&4&&bl(5,n);break;case 1:if(Mu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){pf(n,n.return,e)}else{var i=bc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){pf(n,n.return,e)}}}r&64&&Sl(n),r&512&&wl(n,n.return);break;case 3:if(Mu(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{xo(e,t)}catch(e){pf(n,n.return,e)}}break;case 27:t===null&&r&4&&Ll(n);case 26:case 5:Mu(e,n),t===null&&r&4&&jl(n),r&512&&wl(n,n.return);break;case 12:Mu(e,n);break;case 31:Mu(e,n),r&4&&Su(e,n);break;case 13:Mu(e,n),r&4&&Cu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=_f.bind(null,n),lm(e,n))));break;case 22:if(r=n.memoizedState!==null||ru,!r){var a=t!==null&&t.memoizedState!==null||iu;t=ru,i=iu,ru=r,(iu=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Pu(e,n,r)):Mu(e,n),ru=t,iu=i}break;case 30:Mu(e,n),r&512&&wl(n,n.return);break;case 7:r&512&&wl(n,n.return);default:Mu(e,n)}}function hu(e,t){for(e=e.child;e!==null;)gu(e,t),e=e.sibling}function gu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){pf(e,e.return,t)}_u(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,Wt=!0}catch(t){pf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Tp(s,!0):Tp(e.stateNode,!1)}catch(t){pf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&hu(e,t);break;default:hu(e,t)}}function _u(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:gu(n,r);break a;case 22:n.memoizedState===null&&_u(n,r);break a;default:_u(n,r)}}e=e.sibling}}function vu(e){var t=e.alternate;t!==null&&(e.alternate=null,vu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&kt(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 q=null,yu=!1;function bu(e,t,n){for(n=n.child;n!==null;)xu(e,t,n),n=n.sibling}function xu(e,t,n){if(Je&&typeof Je.onCommitFiberUnmount==`function`)try{Je.onCommitFiberUnmount(qe,n)}catch{}switch(n.tag){case 26:iu||Tl(n,t),bu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!iu&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:iu||Tl(n,t),Ol(n);var r=q,i=yu;Cp(n.type)&&(q=n.stateNode,yu=!1),bu(e,t,n),_m(n.stateNode,n.type,n.memoizedProps),q=r,yu=i;break;case 5:iu||Tl(n,t),Ol(n);case 6:if(n.tag===6&&Ol(n),r=q,i=yu,q=null,bu(e,t,n),q=r,yu=i,q!==null){if(yu)try{(q.nodeType===9?q.body:q.nodeName===`HTML`?q.ownerDocument.body:q).removeChild(n.stateNode),Wt=!0}catch(e){pf(n,t,e)}else try{q.removeChild(n.stateNode),Wt=!0}catch(e){pf(n,t,e)}}break;case 18:q!==null&&(yu?(e=q,wp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Uh(e)):wp(q,n.stateNode));break;case 4:r=q,i=yu,q=n.stateNode.containerInfo,yu=!0,bu(e,t,n),q=r,yu=i;break;case 0:case 11:case 14:case 15:xl(2,n,t),iu||xl(4,n,t),bu(e,t,n);break;case 1:iu||(Tl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Cl(n,t,r)),bu(e,t,n);break;case 21:bu(e,t,n);break;case 22:iu=(r=iu)||n.memoizedState!==null,bu(e,t,n),iu=r;break;case 30:Tl(n,t),bu(e,t,n);break;case 7:iu||Tl(n,t),bu(e,t,n);break;default:bu(e,t,n)}}function Su(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Uh(e)}catch(e){pf(t,t.return,e)}}}function Cu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Uh(e)}catch(e){pf(t,t.return,e)}}function wu(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new su),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new su),t;default:throw Error(i(435,e.tag))}}function Tu(e,t){var n=wu(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=vf.bind(null,e,t);t.then(r,r)}})}function J(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Cp(l.type)){q=l.stateNode,yu=!1;break a}break;case 5:q=l.stateNode,yu=!1;break a;case 3:case 4:q=l.stateNode.containerInfo,yu=!0;break a}l=l.return}if(q===null)throw Error(i(160));xu(s,c,o),q=null,yu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Du(t,e,n),t=t.sibling}var Eu=null;function Du(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}J(t,e,n),Ou(e),a&4&&(xl(3,e,e.return),bl(3,e),xl(5,e,e.return));break;case 1:J(t,e,n),Ou(e),a&512&&(iu||r===null||Tl(r,r.return)),a&64&&ru&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Eu,J(t,e,n),Ou(e),a&512&&(iu||r===null||Tl(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(ru)e.stateNode=pp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[Dt]||r[bt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),rp(r,t,n),r[bt]=e,Pt(r),t=r;break a;case`link`:if(o=Km(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),rp(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Km(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),rp(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[bt]=e,Pt(r),t=r}e.stateNode=t}}else ru||qm(o,e.type,e.stateNode)}else e.stateNode=Vm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Ml(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||iu||t.parentNode.removeChild(t)):a.count--,n===null?ru||qm(o,e.type,e.stateNode):Vm(o,n,e.memoizedProps))}break;case 27:J(t,e,n),Ou(e),a&512&&(iu||r===null||Tl(r,r.return)),r!==null&&a&4&&Ml(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=au,au=!1,J(t,e,n),au=o,Ou(e),a&512&&(iu||r===null||Tl(r,r.return)),e.flags&32){t=e.stateNode;try{ln(t,``),Wt=!0}catch(t){pf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Ml(e,t,r===null?t:r.memoizedProps)),a&1024&&(ou=!0);break;case 6:if(J(t,e,n),Ou(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Wt=!0}catch(t){pf(e,e.return,t)}}break;case 3:if(Wt=!1,Gm=null,o=Eu,Eu=xm(t.containerInfo),J(t,e,n),Eu=o,Ou(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Uh(t.containerInfo)}catch(t){pf(e,e.return,t)}ou&&(ou=!1,ku(e)),Wt=!1;break;case 4:a=au,au=ru,r=Gt(),o=Eu,Eu=xm(e.stateNode.containerInfo),J(t,e,n),Ou(e),Eu=o,Wt&&lu&&(uu=!0),Wt=r,au=a;break;case 12:J(t,e,n),Ou(e);break;case 31:J(t,e,n),Ou(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Tu(e,t)));break;case 13:J(t,e,n),Ou(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(pd=Re()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Tu(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=ru,l=iu,u=au;ru=c||o,au=u||o,iu=l||s,J(t,e,n),iu=l,au=u,ru=c,Ou(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||ru||iu||(t=s||iu,n=ru,r=iu,ru=o||ru,iu=t,Nu(e,2),ru=n,iu=r),!o&&au||hu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Tu(e,n))));break;case 19:J(t,e,n),Ou(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Tu(e,t)));break;case 30:a&512&&(iu||r===null||Tl(r,r.return)),a=Gt(),o=lu,s=(n&335544064)===n,c=e.memoizedProps,lu=s&&vi(c.default,c.update)!==`none`,J(t,e,n),Ou(e),s&&r!==null&&Wt&&(e.flags|=4),lu=o,Wt=a;break;case 21:break;case 7:a&512&&(iu||r===null||Tl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:J(t,e,n),Ou(e)}}function Ou(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Nl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(Al(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(kl(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Il(e,Pl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(ln(l,``),n.flags&=-33),Il(e,Pl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Fl(e,Pl(e),u,s);break;default:throw Error(i(161))}}catch(t){pf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ku(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ku(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,_h=!0,t.reset(),_h=!1),e=e.sibling}}function Au(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)ju(t,e),t=t.sibling;else nu(t,!1)}function ju(e,t){var n=e.alternate;if(n===null)Jl(e,!1);else switch(e.tag){case 3:if(du=cu=!1,Hl(),Au(t,e),!cu&&!uu){if(e=Vl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Dp(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),du=!0}Vl=null;break;case 5:Au(t,e);break;case 4:r=cu,cu=!1,Au(t,e),cu&&(uu=!0),cu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Au(t,e):Jl(e,!1));break;case 30:r=cu,i=Hl(),cu=!1,Au(t,e),cu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=gi(a,o),o=gi(n.memoizedProps,o);var s=vi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Ul=0,t=tu(e,n,t,o,s,a,!0),Ul!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Md(e,e.memoizedProps.onUpdate),Vl=i):i!==null&&(i.push.apply(i,Vl),Vl=i),cu=e.flags&32?!0:r;break;default:Au(t,e)}}function Mu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)mu(e,t.alternate,t),t=t.sibling}function Nu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:xl(4,n,n.return),Nu(n,r);break;case 1:Tl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&Cl(n,n.return,i),Nu(n,r);break;case 27:r&2&&_m(n.stateNode,n.type,n.memoizedProps);case 5:Tl(n,n.return),n.tag!==5&&n.tag!==27||Ol(n),Nu(n,r);break;case 6:Ol(n);break;case 26:Tl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||iu||i.parentNode.removeChild(i),Nu(n,r);break;case 22:n.memoizedState===null&&Nu(n,r);break;case 30:Tl(n,n.return),Nu(n,r);break;case 7:Tl(n,n.return);default:Nu(n,r)}e=e.sibling}}function Pu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Pu(i,a,n),bl(4,a);break;case 1:if(Pu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){pf(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)bo(l[i],c)}catch(e){pf(r,r.return,e)}}s&&o&64&&Sl(a),wl(a,a.return);break;case 27:n&2&&Ll(a);case 5:a.tag!==5&&a.tag!==27||Dl(a),Pu(i,a,n),s&&r===null&&o&4&&jl(a),wl(a,a.return);break;case 6:Dl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||ru||qm(xm(c.ownerDocument),a.type,c),Pu(i,a,n),s&&r===null&&o&4&&jl(a),wl(a,a.return);break;case 12:Pu(i,a,n);break;case 31:Pu(i,a,n),s&&o&4&&Su(i,a);break;case 13:Pu(i,a,n),s&&o&4&&Cu(i,a);break;case 22:a.memoizedState===null&&Pu(i,a,n),wl(a,a.return);break;case 30:Pu(i,a,n),wl(a,a.return);break;case 7:wl(a,a.return);default:Pu(i,a,n)}t=t.sibling}}function Fu(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&&ka(n))}function Iu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ka(e))}function Lu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Ru(e,t,n,r),t=t.sibling;else i&&eu(t)}function Ru(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&$l(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Lu(e,t,n,r),a&2048&&bl(9,t);break;case 1:Lu(e,t,n,r);break;case 3:Lu(e,t,n,r),i&&du&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&ka(a)));break;case 12:if(a&2048){Lu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){pf(t,t.return,e)}}else Lu(e,t,n,r);break;case 31:Lu(e,t,n,r);break;case 13:Lu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&$l(t),o._visibility&2?Lu(e,t,n,r):(o._visibility|=2,zu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&$l(s),o._visibility&2?Lu(e,t,n,r):Bu(e,t)),a&2048&&Fu(s,t);break;case 24:Lu(e,t,n,r),a&2048&&Iu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Kl(a.child,!0),Kl(t.child,!0))),Lu(e,t,n,r);break;default:Lu(e,t,n,r)}}function zu(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:zu(a,o,s,c,i),bl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,zu(a,o,s,c,i)):u._visibility&2?zu(a,o,s,c,i):Bu(a,o),i&&l&2048&&Fu(o.alternate,o);break;case 24:zu(a,o,s,c,i),i&&l&2048&&Iu(o.alternate,o);break;default:zu(a,o,s,c,i)}t=t.sibling}}function Bu(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:Bu(n,r),i&2048&&Fu(r.alternate,r);break;case 24:Bu(n,r),i&2048&&Iu(r.alternate,r);break;default:Bu(n,r)}t=t.sibling}}var Vu=8192;function Hu(e,t,n){if(e.subtreeFlags&Vu)for(e=e.child;e!==null;)Uu(e,t,n),e=e.sibling}function Uu(e,t,n){switch(e.tag){case 26:Hu(e,t,n),e.flags&Vu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&Qm(n,e)):$m(n,Eu,e.memoizedState,e.memoizedProps));break;case 5:Hu(e,t,n),e.flags&Vu&&(e=e.stateNode,(t&335544128)===t&&Qm(n,e));break;case 3:case 4:var r=Eu;Eu=xm(e.stateNode.containerInfo),Hu(e,t,n),Eu=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Vu,Vu=16777216,Hu(e,t,n),Vu=r):Hu(e,t,n));break;case 30:if((e.flags&Vu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,zl===null&&(zl=new Map),zl.set(r,i)}Hu(e,t,n);break;default:Hu(e,t,n)}}function Y(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 Wu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];K=r,qu(r,e)}Y(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Gu(e),e=e.sibling}function Gu(e){switch(e.tag){case 0:case 11:case 15:Wu(e),e.flags&2048&&xl(9,e,e.return);break;case 3:Wu(e);break;case 12:Wu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ku(e)):Wu(e);break;default:Wu(e)}}function Ku(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];K=r,qu(r,e)}Y(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:xl(8,t,t.return),Ku(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ku(t));break;default:Ku(t)}e=e.sibling}}function qu(e,t){for(;K!==null;){var n=K;switch(n.tag){case 0:case 11:case 15:xl(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:ka(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,K=r;else a:for(n=e;K!==null;){r=K;var i=r.sibling,a=r.return;if(vu(r),r===n){K=null;break a}if(i!==null){i.return=a,K=i;break a}K=a}}}var Ju={getCacheForType:function(e){var t=xa(Da),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return xa(Da).controller.signal}},Yu=typeof WeakMap==`function`?WeakMap:Map,Xu=0,Zu=null,X=null,Z=0,Qu=0,$u=null,ed=!1,td=!1,nd=!1,rd=0,id=0,ad=0,od=0,sd=0,cd=0,ld=0,ud=null,dd=null,fd=!1,pd=0,md=0,hd=1/0,gd=null,_d=null,vd=0,yd=null,bd=null,xd=0,Sd=0,Cd=null,wd=null,Td=null,Ed=null,Dd=null,Od=0,kd=null;function Ad(){return Xu&2&&Z!==0?Z&-Z:B.T===null?_t():Pf()}function jd(){if(cd===0){if(!(Z&536870912)||U){var e=tt;tt<<=1,!(tt&3932160)&&(tt=262144),cd=e}else cd=536870912}return e=Do.current,e!==null&&(e.flags|=32),cd}function Md(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Fp(gi(e.memoizedProps,n))),Ed===null&&(Ed=[]),Ed.push(t.bind(null,r))}}function Nd(e,t,n){(e===Zu&&(Qu===2||Qu===9)||e.cancelPendingCommit!==null)&&(Bd(e,0),Ld(e,Z,cd,!1)),ut(e,n),(!(Xu&2)||e!==Zu)&&(e===Zu&&(!(Xu&2)&&(od|=n),id===4&&Ld(e,Z,cd,!1)),Ef(e))}function Pd(e,t,n){if(Xu&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||at(e,t),a=r?Jd(e,t):Kd(e,t,!0),o=r;do{if(a===0){td&&!r&&Ld(e,t,0,!1);break}if(n=e.current.alternate,o&&!Id(n)){a=Kd(e,t,!1),o=!1;continue}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=ud;var l=c.current.memoizedState.isDehydrated;if(l&&(Bd(c,s).flags|=256),s=Kd(c,s,!1),s!==2&&s!==6){if(nd&&!l){c.errorRecoveryDisabledLanes|=o,od|=o,a=4;break a}o=dd,dd=a,o!==null&&(dd===null?dd=o:dd.push.apply(dd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Bd(e,0),Ld(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Ld(r,t,cd,!ed);break a;case 2:dd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=pd+300-Re(),10<a)){if(Ld(r,t,cd,!ed),it(r,0,!0)!==0)break a;xd=t,r.timeoutHandle=_p(Fd.bind(null,r,n,dd,gd,fd,t,cd,od,ld,ed,o,`Throttled`,-0,0),a);break a}Fd(r,n,dd,gd,fd,t,cd,od,ld,ed,o,null,-0,0)}break}while(1);Ef(e)}function Fd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;if(d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_n},zl=null,Uu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=rh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?pd-Re():(a&4194048)===a?md-Re():0,m=th(d,m),m!==null)){xd=a,e.cancelPendingCommit=m(tf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Ld(e,a,o,!l);return}tf(e,t,a,n,r,i,o,s,c,l,u,d)}function Id(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(!Br(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 Ld(e,t,n,r){t=ot(e,t),t&=~sd,t&=~od,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Xe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&ft(e,n,t)}function Rd(){return Xu&6?!0:(Df(0,!1),!1)}function zd(){if(X!==null){if(Qu===0)var e=X.return;else e=X,pa=fa=null,ns(e),to=null,no=0,e=X;for(;e!==null;)yl(e.alternate,e),e=e.return;X=null}}function Bd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,vp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),xd=0,zd(),Zu=e,X=n=Mi(e.current,null),Z=t,Qu=0,$u=null,ed=!1,td=at(e,t),nd=!1,ld=cd=sd=od=ad=id=0,dd=ud=null,fd=!1,rd=ot(e,t),Ci(),n}function Vd(e,t){G=null,B.H=fc,t===Ga||t===qa?(t=$a(),Qu=3):t===Ka?(t=$a(),Qu=4):Qu=t===Ac?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,$u=t,X===null&&(id=1,wc(e,zi(t,e.current)))}function Hd(){var e=Do.current;return e===null?!0:(Z&4194048)===Z?Oo===null:(Z&62914560)===Z||Z&536870912?e===Oo:!1}function Ud(){var e=B.H;return B.H=fc,e===null?fc:e}function Wd(){var e=B.A;return B.A=Ju,e}function Gd(){id=4,ed||(Z&4194048)!==Z&&Do.current!==null||(td=!0),!(ad&134217727)&&!(od&134217727)||Zu===null||Ld(Zu,Z,cd,!1)}function Kd(e,t,n){var r=Xu;Xu|=2;var i=Ud(),a=Wd();(Zu!==e||Z!==t)&&(gd=null,Bd(e,t)),t=!1;var o=id;a:do try{if(Qu!==0&&X!==null){var s=X,c=$u;switch(Qu){case 8:zd(),o=6;break a;case 3:case 2:case 9:case 6:Do.current===null&&(t=!0);var l=Qu;if(Qu=0,$u=null,Qd(e,s,c,l),n&&td){o=0;break a}break;default:l=Qu,Qu=0,$u=null,Qd(e,s,c,l)}}qd(),o=id;break}catch(t){Vd(e,t)}while(1);return t&&e.shellSuspendCounter++,pa=fa=null,Xu=r,B.H=i,B.A=a,X===null&&(Zu=null,Z=0,Ci()),o}function qd(){for(;X!==null;)Xd(X)}function Jd(e,t){var n=Xu;Xu|=2;var r=Ud(),a=Wd();Zu!==e||Z!==t?(gd=null,hd=Re()+500,Bd(e,t)):td=at(e,t);a:do try{if(Qu!==0&&X!==null){t=X;var o=$u;b:switch(Qu){case 1:Qu=0,$u=null,Qd(e,t,o,1);break;case 2:case 9:if(Ya(o)){Qu=0,$u=null,Zd(t);break}t=function(){Qu!==2&&Qu!==9||Zu!==e||(Qu=7),Ef(e)},o.then(t,t);break a;case 3:Qu=7;break a;case 4:Qu=5;break a;case 7:Ya(o)?(Qu=0,$u=null,Zd(t)):(Qu=0,$u=null,Qd(e,t,o,7));break;case 5:var s=null;switch(X.tag){case 26:s=X.memoizedState;case 5:case 27:var c=X;if(s?Xm(s):c.stateNode.complete){Qu=0,$u=null;var l=c.sibling;if(l!==null)X=l;else{var u=c.return;u===null?X=null:(X=u,$d(u))}break b}}Qu=0,$u=null,Qd(e,t,o,5);break;case 6:Qu=0,$u=null,Qd(e,t,o,6);break;case 8:zd(),id=6;break a;default:throw Error(i(462))}}Yd();break}catch(t){Vd(e,t)}while(1);return pa=fa=null,B.H=r,B.A=a,Xu=n,X===null?(Zu=null,Z=0,Ci(),id):0}function Yd(){for(;X!==null&&!Ie();)Xd(X)}function Xd(e){var t=ul(e.alternate,e,rd);e.memoizedProps=e.pendingProps,t===null?$d(e):X=t}function Zd(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Wc(n,t,t.pendingProps,t.type,void 0,Z);break;case 11:t=Wc(n,t,t.pendingProps,t.type.render,t.ref,Z);break;case 5:ns(t);var r=t;r===ea&&(U?(oa(r),r.tag===5&&r.stateNode!=null&&(ta=r.stateNode)):(oa(r),U=!0));default:yl(n,t),t=X=H(t,rd),t=ul(n,t,rd)}e.memoizedProps=e.pendingProps,t===null?$d(e):X=t}function Qd(e,t,n,r){pa=fa=null,ns(t),to=null,no=0;var i=t.return;try{if(kc(e,i,t,n,Z)){id=1,wc(e,zi(n,e.current)),X=null;return}}catch(t){if(i!==null)throw X=i,t;id=1,wc(e,zi(n,e.current)),X=null;return}t.flags&32768?(U||r===1?e=!0:td||Z&536870912?e=!1:(ed=e=!0,(r===2||r===9||r===3||r===6)&&(r=Do.current,r!==null&&r.tag===13&&(r.flags|=16384))),ef(t,e)):$d(t)}function $d(e){var t=e;do{if(t.flags&32768){ef(t,ed);return}e=t.return;var n=_l(t.alternate,t,rd);if(n!==null){X=n;return}if(t=t.sibling,t!==null){X=t;return}X=t=e}while(t!==null);id===0&&(id=5)}function ef(e,t){do{var n=vl(e.alternate,e);if(n!==null){n.flags&=32767,X=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){X=e;return}X=e=n}while(e!==null);id=6,X=null}function tf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do uf();while(vd!==0);if(Xu&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===Zu&&(X=Zu=null,Z=0),bd=t,yd=e,xd=n,Cd=a,wd=r,nf(e,t,n,s,c,l,f)}}function nf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Sd=s,s|=Si,dt(e,n,s,r,i,a),Ed=null,(n&335544064)===n?(Dd=Ma(e),r=10262):(Dd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,yf(He,function(){return df(),null})):(e.callbackNode=null,e.callbackPriority=0),Rl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=B.T,B.T=null,i=de.p,de.p=2,a=Xu,Xu|=4;try{fu(e,t,n)}finally{Xu=a,de.p=i,B.T=r}}vd=1,Rl?Td=Np(o,e.containerInfo,Dd,of,sf,af,cf,df,rf,null,null):(of(),sf(),cf())}function rf(e){if(vd!==0){var t=yd.onRecoverableError;t(e,{componentStack:null})}}function af(){vd===3&&(vd=0,ju(bd,yd),vd=4)}function of(){if(vd===1){vd=0;var e=yd,t=bd,n=xd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=B.T,B.T=null;var i=de.p;de.p=2;var a=Xu;Xu|=4;try{lu=uu=!1,Du(t,e,n),n=lp;var o=Kr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Gr(s.ownerDocument.documentElement,s)){if(c!==null&&qr(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 _=Wr(s,h),v=Wr(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}}_h=!!cp,lp=cp=null}finally{Xu=a,de.p=i,B.T=r}}e.current=t,vd=2}}function sf(){if(vd===2){vd=0;var e=yd,t=bd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=B.T,B.T=null;var r=de.p;de.p=2;var i=Xu;Xu|=4;try{mu(e,t.alternate,t)}finally{Xu=i,de.p=r,B.T=n}}vd=3}}function cf(){if(vd===4||vd===3){vd=0;var e=Td;Td=null,Le();var t=yd,n=bd,r=xd,i=wd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?vd=5:(vd=0,bd=yd=null,lf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(_d=null),gt(r),n=n.stateNode,Je&&typeof Je.onCommitFiberRoot==`function`)try{Je.onCommitFiberRoot(qe,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=B.T,a=de.p,de.p=2,B.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{B.T=n,de.p=a}}if(i=Ed,o=Dd,Dd=null,i!==null&&(Ed=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);xd&3&&uf(),Ef(t),a=t.pendingLanes,r&261930&&a&42?t===kd?Od++:(Od=0,kd=t):(Od=0,kd=null),Df(0,!1)}}function lf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ka(t)))}function uf(){return Td!==null&&(Td.skipTransition(),Td=null),of(),sf(),cf(),df()}function df(){if(vd!==5)return!1;var e=yd,t=Sd;Sd=0;var n=gt(xd),r=B.T,a=de.p;try{de.p=32>n?32:n,B.T=null,n=Cd,Cd=null;var o=yd,s=xd;if(vd=0,bd=yd=null,xd=0,Xu&6)throw Error(i(331));var c=Xu;if(Xu|=4,Gu(o.current),Ru(o,o.current,s,n),Xu=c,Df(0,!1),Je&&typeof Je.onPostCommitFiberRoot==`function`)try{Je.onPostCommitFiberRoot(qe,o)}catch{}return!0}finally{de.p=a,B.T=r,lf(e,t)}}function ff(e,t,n){t=zi(n,t),t=Ec(e.stateNode,t,2),e=mo(e,t,2),e!==null&&(ut(e,2),Ef(e))}function pf(e,t,n){if(e.tag===3)ff(e,e,n);else for(;t!==null;){if(t.tag===3){ff(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(_d===null||!_d.has(r))){e=zi(n,e),n=Dc(2),r=mo(t,n,2),r!==null&&(Oc(n,r,t,e),ut(r,2),Ef(r));break}}t=t.return}}function mf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Yu;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)||(nd=!0,i.add(n),e=hf.bind(null,e,t,n),t.then(e,e))}function hf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Zu===e&&(Z&n)===n&&(id===4||id===3&&(Z&62914560)===Z&&300>Re()-pd?Xu&2?sd|=n:Bd(e,0):sd|=n,ld===Z&&(ld=0)),Ef(e)}function gf(e,t){t===0&&(t=ct()),e=Ti(e,t),e!==null&&(ut(e,t),Ef(e))}function _f(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gf(e,n)}function vf(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),gf(e,n)}function yf(e,t){return Pe(e,t)}var bf=null,xf=null,Sf=!1,Cf=!1,wf=!1,Tf=0;function Ef(e){e!==xf&&e.next===null&&(xf===null?bf=xf=e:xf=xf.next=e),Cf=!0,Sf||(Sf=!0,Nf())}function Df(e,t){if(!wf&&Cf){wf=!0;do for(var n=!1,r=bf;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-Xe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Mf(r,a))}else a=Z,a=it(r,r===Zu?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||at(r,a)||(n=!0,Mf(r,a))}r=r.next}while(n);wf=!1}}function Of(){kf()}function kf(){Cf=Sf=!1;var e=0;Tf!==0&&gp()&&(e=Tf);for(var t=Re(),n=null,r=bf;r!==null;){var i=r.next,a=Af(r,t);a===0?(r.next=null,n===null?bf=i:n.next=i,i===null&&(xf=n)):(n=r,(e!==0||a&3)&&(Cf=!0)),r=i}vd!==0&&vd!==5||Df(e,!1),Tf!==0&&(Tf=0)}function Af(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Xe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=st(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Zu,n=Z,n=it(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Qu===2||Qu===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Fe(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||at(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Fe(r),gt(n)){case 2:case 8:n=Ve;break;case 32:n=He;break;case 268435456:n=We;break;default:n=He}return r=jf.bind(null,e),n=Pe(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Fe(r),e.callbackPriority=2,e.callbackNode=null,2}function jf(e,t){if(vd!==0&&vd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(uf()&&e.callbackNode!==n)return null;var r=Z;return r=it(e,e===Zu?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Pd(e,r,t),Af(e,Re()),e.callbackNode!=null&&e.callbackNode===n?jf.bind(null,e):null)}function Mf(e,t){if(uf())return null;Pd(e,t,!0)}function Nf(){xp(function(){Xu&6?Pe(Be,Of):kf()})}function Pf(){if(Tf===0){var e=Fa;e===0&&(e=et,et<<=1,!(et&261888)&&(et=256)),Tf=e}return Tf}function Ff(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:gn(e)}function If(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Ff((i[xt]||null).action),o=r.submitter;o&&(t=(t=o[xt]||null)?Ff(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Rn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Tf!==0){var e=new FormData(i,o);Qs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),Qs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Lf=0;Lf<pi.length;Lf++){var Rf=pi[Lf];mi(Rf.toLowerCase(),`on`+(Rf[0].toUpperCase()+Rf.slice(1)))}mi(ai,`onAnimationEnd`),mi(oi,`onAnimationIteration`),mi(si,`onAnimationStart`),mi(`dblclick`,`onDoubleClick`),mi(`focusin`,`onFocus`),mi(`focusout`,`onBlur`),mi(ci,`onTransitionRun`),mi(li,`onTransitionStart`),mi(ui,`onTransitionCancel`),mi(di,`onTransitionEnd`),zt(`onMouseEnter`,[`mouseout`,`mouseover`]),zt(`onMouseLeave`,[`mouseout`,`mouseover`]),zt(`onPointerEnter`,[`pointerout`,`pointerover`]),zt(`onPointerLeave`,[`pointerout`,`pointerover`]),Rt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Rt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Rt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Rt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Rt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Rt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var zf=`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(` `),Bf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(zf));function Vf(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){yi(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){yi(e)}i.currentTarget=null,a=c}}}}function Q(e,t){var n=t[Ct];n===void 0&&(n=t[Ct]=new Set);var r=e+`__bubble`;n.has(r)||(Gf(t,e,2,!1),n.add(r))}function Hf(e,t,n){var r=0;t&&(r|=4),Gf(n,e,r,t)}var Uf=`_reactListening`+Math.random().toString(36).slice(2);function Wf(e){if(!e[Uf]){e[Uf]=!0,It.forEach(function(t){t!==`selectionchange`&&(Bf.has(t)||Hf(t,!1,e),Hf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Uf]||(t[Uf]=!0,Hf(`selectionchange`,!1,t))}}function Gf(e,t,n,r){switch(wh(t)){case 2:var i=vh;break;case 8:i=yh;break;default:i=bh}n=i.bind(null,t,n,e),i=void 0,!Dn||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 Kf(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=At(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}wn(function(){var r=a,i=yn(n),s=[];a:{var c=fi.get(e);if(c!==void 0){var l=Rn,u=e;switch(e){case`keypress`:if(Nn(n)===0)break a;case`keydown`:case`keyup`:l=nr;break;case`focusin`:u=`focus`,l=qn;break;case`focusout`:u=`blur`,l=qn;break;case`beforeblur`:case`afterblur`:l=qn;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=Gn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Kn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=ar;break;case ai:case oi:case si:l=Jn;break;case di:l=or;break;case`scroll`:case`scrollend`:l=Bn;break;case`wheel`:l=sr;break;case`copy`:case`cut`:case`paste`:l=Yn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=rr;break;case`submit`:l=ir;break;case`toggle`:case`beforetoggle`:l=cr}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=Tn(m,p),g!=null&&d.push(qf(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==vn&&(u=n.relatedTarget||n.fromElement)&&(At(u)||u[St]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?At(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Gn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=rr,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Mt(c),h=l==null?u:Mt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,At(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?E(c,l,Yf):null,c!==null&&Xf(s,u,c,d,!1),l!==null&&f!==null&&Xf(s,f,l,d,!0)))}a:{if(c=r?Mt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Or;else if(Sr(c)){if(kr)_=Rr;else{_=Ir;var v=Fr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&pn(r.elementType)&&(_=Or):_=Lr;if(_&&=_(e,r)){Cr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Mt(r):window,e){case`focusin`:(Sr(v)||v.contentEditable===`true`)&&(Yr=v,Xr=r,Zr=null);break;case`focusout`:Zr=Xr=Yr=null;break;case`mousedown`:Qr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Qr=!1,$r(s,n,i);break;case`selectionchange`:if(Jr)break;case`keydown`:case`keyup`:$r(s,n,i)}var y;if(ur)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else vr?gr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(pr&&n.locale!==`ko`&&(vr||b!==`onCompositionStart`?b===`onCompositionEnd`&&vr&&(y=Mn()):(kn=i,An=`value`in kn?kn.value:kn.textContent,vr=!0)),v=Jf(r,b),0<v.length&&(b=new Xn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=_r(n),y!==null&&(b.data=y)))),(y=fr?yr(e,n):br(e,n))&&(b=Jf(r,`onBeforeInput`),0<b.length&&(v=new Xn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),If(s,e,r,n,i)}Vf(s,t)})}function qf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Jf(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=Tn(e,n),i!=null&&r.unshift(qf(e,i,a)),i=Tn(e,t),i!=null&&r.push(qf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Yf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Xf(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=Tn(n,a),l!=null&&o.unshift(qf(n,l,c))):i||(l=Tn(n,a),l!=null&&o.push(qf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Zf=/\r\n?/g,Qf=/\u0000|\uFFFD/g;function $f(e){return(typeof e==`string`?e:``+e).replace(Zf,`
9
- `).replace(Qf,``)}function ep(e,t){return t=$f(t),$f(e)===t}function tp(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||ln(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&ln(e,``+r);else return;break;case`className`:qt(e,`class`,r);break;case`tabIndex`:qt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:qt(e,n,r);break;case`style`:fn(e,r,o);return;case`data`:if(t!==`object`){qt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=gn(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`&&tp(e,t,`name`,a.name,a,null),tp(e,t,`formEncType`,a.formEncType,a,null),tp(e,t,`formMethod`,a.formMethod,a,null),tp(e,t,`formTarget`,a.formTarget,a,null)):(tp(e,t,`encType`,a.encType,a,null),tp(e,t,`method`,a.method,a,null),tp(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=gn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=_n);return;case`onScroll`:r!=null&&Q(`scroll`,e);return;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=gn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Q(`beforetoggle`,e),Q(`toggle`,e),Kt(e,`popover`,r);break;case`xlinkActuate`:Jt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Jt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Jt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Jt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Jt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Jt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Kt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=mn.get(n)||n,Kt(e,n,r);else return}Wt=!0}function np(e,t,n,r,a,o){switch(n){case`style`:fn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)ln(e,r);else if(typeof r==`number`||typeof r==`bigint`)ln(e,``+r);else return;break;case`onScroll`:r!=null&&Q(`scroll`,e);return;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=_n);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Lt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[xt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}Wt=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Kt(e,n,r)}return}Wt=!0}function rp(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Q(`error`,e),Q(`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:tp(e,t,o,s,n,null)}}a&&tp(e,t,`srcSet`,n.srcSet,n,null),r&&tp(e,t,`src`,n.src,n,null);return;case`input`:Q(`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:tp(e,t,r,d,n,null)}}rn(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Q(`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:tp(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&on(e,!!r,n,!0):on(e,!!r,t,!1);return;case`textarea`:for(s in Q(`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:tp(e,t,s,c,n,null)}cn(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:tp(e,t,l,r,n,null)}return;case`dialog`:Q(`beforetoggle`,e),Q(`toggle`,e),Q(`cancel`,e),Q(`close`,e);break;case`iframe`:case`object`:Q(`load`,e);break;case`video`:case`audio`:for(r=0;r<zf.length;r++)Q(zf[r],e);break;case`image`:Q(`error`,e),Q(`load`,e);break;case`details`:Q(`toggle`,e);break;case`embed`:case`source`:case`link`:Q(`error`,e),Q(`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:tp(e,t,u,r,n,null)}return;default:if(pn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&np(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&tp(e,t,c,r,n,null))}var ip={};function ap(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)||tp(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(Wt=!0),o=m;break;case`name`:m!==f&&(Wt=!0),a=m;break;case`checked`:m!==f&&(Wt=!0),u=m;break;case`defaultChecked`:m!==f&&(Wt=!0),d=m;break;case`value`:m!==f&&(Wt=!0),s=m;break;case`defaultValue`:m!==f&&(Wt=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&tp(e,t,p,m,r,f)}}nn(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)||tp(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(Wt=!0),p=o;break;case`defaultValue`:o!==l&&(Wt=!0),c=o;break;case`multiple`:o!==l&&(Wt=!0),s=o;default:o!==l&&tp(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?on(e,!!n,n?[]:``,!1):on(e,!!n,t,!0)):on(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:tp(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(Wt=!0),p=a;break;case`defaultValue`:a!==o&&(Wt=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&tp(e,t,s,a,r,o)}sn(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:tp(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(Wt=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:tp(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)&&tp(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:tp(e,t,u,p,r,m)}return;default:if(pn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&np(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||np(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&tp(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||tp(e,t,f,p,r,m)}function op(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function sp(){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&&op(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&&op(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 cp=null,lp=null;function up(e){return e.nodeType===9?e:e.ownerDocument}function dp(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 fp(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 pp(e,t,n,r){return n=up(n).createElement(e),n[bt]=r,n[xt]=t,rp(n,e,t),Pt(n),n}function mp(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 hp=null;function gp(){var e=window.event;return e&&e.type===`popstate`?e!==hp&&(hp=e,!0):(hp=null,!1)}var _p=typeof setTimeout==`function`?setTimeout:void 0,vp=typeof clearTimeout==`function`?clearTimeout:void 0,yp=typeof Promise==`function`?Promise:void 0,bp=typeof requestAnimationFrame==`function`?requestAnimationFrame:_p,xp=typeof queueMicrotask==`function`?queueMicrotask:yp===void 0?_p:function(e){return yp.resolve(null).then(e).catch(Sp)};function Sp(e){setTimeout(function(){throw e})}function Cp(e){return e===`head`}function wp(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),Uh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)vm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,vm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Dt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&vm(e.ownerDocument.body)}n=i}while(n);Uh(t)}function Tp(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 Ep(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Dp(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Op(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function kp(e){return Op(e.getBoundingClientRect(),getComputedStyle(e),e)}function Ap(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Op(t,n,e)}function jp(e){return e.documentElement.clientHeight}function Mp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Np(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(jp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=Zm(f),u>eh){s.length=o;break}f=new Promise(Mp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Pp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Pp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:D({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Pp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Pp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Fp(e){return{name:e,group:new Pp(`group`,e),imagePair:new Pp(`image-pair`,e),old:new Pp(`old`,e),new:new Pp(`new`,e)}}function Ip(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Ip.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Vp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=zp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),h(this._fragmentFiber.child,!1,Lp,e,s,r)}this._eventListeners=a}};function Lp(e,t,n,r){return b(e).addEventListener(t,n,r),!1}Ip.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Vp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=zp(i.optionsOrUseCapture),h(this._fragmentFiber.child,!1,Rp,e,n,i),r.splice(t,1),a!==null&&a()}};function Rp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function zp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Bp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Vp(e,t,n,r){if(e.length===0)return-1;r=Bp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Bp(a.optionsOrUseCapture)===r)return i}return-1}Ip.prototype.dispatchEvent=function(e){var t=g(this._fragmentFiber);if(t===null)return!0;t=b(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,zp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,zp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Ip.prototype.focus=function(e){h(this._fragmentFiber.child,!0,Hp,e,void 0,void 0)};function Hp(e,t){return e.tag!==6&&(e=b(e),mm(e,t))}Ip.prototype.focusLast=function(e){var t=[];h(this._fragmentFiber.child,!0,Up,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Hp(t[n],e);n--);};function Up(e,t){return t.push(e),!1}Ip.prototype.blur=function(){var e=g(this._fragmentFiber);e!==null&&(e=b(e),e=up(e).activeElement,e!==null&&h(this._fragmentFiber.child,!1,Wp,e,void 0,void 0))};function Wp(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Ip.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),h(this._fragmentFiber.child,!1,Gp,e,void 0,void 0)};function Gp(e,t){return e.tag!==6&&(e=b(e),t.observe(e),!1)}Ip.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),h(this._fragmentFiber.child,!1,Kp,e,void 0,void 0);for(var n=t=0;n<qp.length;n++){var r=qp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):qp[t++]=r}qp.length=t}};function Kp(e,t){return e.tag!==6&&(e=b(e),t.unobserve(e),!1)}var qp=[],Jp=!1;function Yp(e,t,n){qp.push({fragmentInstance:e,observer:t,instance:n}),Jp||(Jp=!0,hm(function(){Jp=!1;var e=qp;qp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Ip.prototype.getClientRects=function(){var e=[];return h(this._fragmentFiber.child,!1,Xp,e,void 0,void 0),e};function Xp(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=b(e),t.push.apply(t,e.getClientRects());return!1}Ip.prototype.getRootNode=function(e){var t=g(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Ip.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];h(this._fragmentFiber.child,!1,Up,n,void 0,void 0);var r=b(t);if(n.length===0){if(n=r,_(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=v(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=b(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=b(n[0]),i=b(n[n.length-1]);var a=_(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Zp(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Zp(e,t,n,r,i){var a=At(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=g(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=E(n,a,T),t===null?t=!1:(h(t,!0,C,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=E(r,a,T),t===null?t=!1:(h(t,!0,w,a,r),a=x,S=x=null,t=a!==null)),t):!1}function Qp(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Ip.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];h(this._fragmentFiber.child,!1,Up,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=v(this._fragmentFiber);if(r=n?r[1]||r[0]||g(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=b(r),Qp(e,n);return}if(r=b(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=b(a),Qp(a,n)):b(a).scrollIntoView(e),r+=n?-1:1}};function $p(e,t){return e=b(e),em(e,t),!1}function em(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function tm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,zp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<qp.length;i++){var a=qp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(qp[r++]=a)}qp.length=r,n.observe(e)}),em(e,t))}function nm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,zp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Yp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function rm(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`:rm(n),kt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function im(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[Dt])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=um(e.nextSibling),e===null)break}return null}function am(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=um(e.nextSibling),e===null))return null;return e}function om(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=um(e.nextSibling),e===null))return null;return e}function sm(e){return e.data===`$?`||e.data===`$~`}function cm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function lm(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 um(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 dm=null;function fm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return um(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function pm(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 mm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function hm(e){bp(function(){bp(function(t){return e(t)})})}function gm(e,t,n){switch(t=up(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 _m(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&tp(e,t,r,null,ip,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===_n&&(e.onclick=null),kt(e)}function vm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);kt(e)}var ym=new Map,bm=new Set;function xm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Sm=de.d;de.d={f:Cm,r:wm,D:Dm,C:Om,L:km,m:Am,X:Mm,S:jm,M:Nm};function Cm(){var e=Sm.f(),t=Rd();return e||t}function wm(e){var t=jt(e);t!==null&&t.tag===5&&t.type===`form`?ec(t):Sm.r(e)}var Tm=typeof document>`u`?null:document;function Em(e,t,n){var r=Tm;if(r&&typeof t==`string`&&t){var i=tn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),bm.has(i)||(bm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),rp(t,`link`,e),Pt(t),r.head.appendChild(t)))}}function Dm(e){Sm.D(e),Em(`dns-prefetch`,e,null)}function Om(e,t){Sm.C(e,t),Em(`preconnect`,e,t)}function km(e,t,n){Sm.L(e,t,n);var r=Tm;if(r&&e&&t){var i=`link[rel="preload"][as="`+tn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+tn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+tn(n.imageSizes)+`"]`)):i+=`[href="`+tn(e)+`"]`;var a=i;switch(t){case`style`:a=Fm(e);break;case`script`:a=zm(e)}if(!(ym.has(a)||(e=D({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),ym.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Im(a))||t===`script`&&r.querySelector(Bm(a))))){var o=r.createElement(`link`);rp(o,`link`,e),t===`style`&&(o[Ot]=!0,o.onload=o.onerror=function(){Ft(o)}),Pt(o),r.head.appendChild(o)}}}function Am(e,t){Sm.m(e,t);var n=Tm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+tn(r)+`"][href="`+tn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=zm(e)}if(!ym.has(a)&&(e=D({rel:`modulepreload`,href:e},t),ym.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Bm(a)))return}r=n.createElement(`link`),rp(r,`link`,e),Pt(r),n.head.appendChild(r)}}}function jm(e,t,n){Sm.S(e,t,n);var r=Tm;if(r&&e){var i=Nt(r).hoistableStyles,a=Fm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Im(a)))s.loading=5;else{e=D({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=ym.get(a))&&Um(e,n);var c=o=r.createElement(`link`);Pt(c),rp(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,Hm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Mm(e,t){Sm.X(e,t);var n=Tm;if(n&&e){var r=Nt(n).hoistableScripts,i=zm(e),a=r.get(i);a||(a=n.querySelector(Bm(i)),a||(e=D({src:e,async:!0},t),(t=ym.get(i))&&Wm(e,t),a=n.createElement(`script`),Pt(a),rp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t){Sm.M(e,t);var n=Tm;if(n&&e){var r=Nt(n).hoistableScripts,i=zm(e),a=r.get(i);a||(a=n.querySelector(Bm(i)),a||(e=D({src:e,async:!0,type:`module`},t),(t=ym.get(i))&&Wm(e,t),a=n.createElement(`script`),Pt(a),rp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Pm(e,t,n,r){var a=(a=be.current)?xm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Fm(n.href),t=Nt(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Fm(n.href);var o=Nt(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(Im(e)))?o._p||(s.instance=o,s.state.loading=5):(o=ym.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},ym.set(e,o)),Rm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=zm(n),t=Nt(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Fm(e){return`href="`+tn(e)+`"`}function Im(e){return`link[rel="stylesheet"][`+e+`]`}function Lm(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function Rm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Ot]){r.loading=1;return}}else t=e.createElement(`link`),t[Ot]=!0,t.onload=t.onerror=Ft.bind(null,t),rp(t,`link`,n),Pt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function zm(e){return`[src="`+tn(e)+`"]`}function Bm(e){return`script[async]`+e}function Vm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+tn(n.href)+`"]`);if(r)return t.instance=r,Pt(r),r;var a=D({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Pt(r),rp(r,`style`,a),Hm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Fm(n.href);var o=e.querySelector(Im(a));if(o)return t.state.loading|=4,t.instance=o,Pt(o),o;r=Lm(n),(a=ym.get(a))&&Um(r,a),o=(e.ownerDocument||e).createElement(`link`),Pt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),rp(o,`link`,r),t.state.loading|=4,Hm(o,n.precedence,e),t.instance=o;case`script`:return o=zm(n.src),(a=e.querySelector(Bm(o)))?(t.instance=a,Pt(a),a):(r=n,(a=ym.get(o))&&(r=D({},n),Wm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Pt(a),rp(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,Hm(r,n.precedence,e));return t.instance}function Hm(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 Um(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Wm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Gm=null;function Km(e,t,n){if(Gm===null){var r=new Map,i=Gm=new Map;i.set(n,r)}else i=Gm,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[Dt]||a[bt]||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 qm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Jm(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 Ym(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Xm(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Zm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Qm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Zm(t),e.suspenseyImages.push(t)),e=ih.bind(e),t.decode().then(e,e))}function $m(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=Fm(r.href),a=t.querySelector(Im(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=rh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Pt(a);return}a=t.ownerDocument||t,r=Lm(r),(i=ym.get(i))&&Um(r,i),a=a.createElement(`link`),Pt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),rp(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=rh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var eh=0;function th(e,t){return e.stylesheets&&e.count===0&&oh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&oh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&eh===0&&(eh=62500*sp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&oh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>eh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function nh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)oh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function rh(){this.count--,nh(this)}function ih(){this.imgCount--,nh(this)}var ah=null;function oh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ah=new Map,t.forEach(sh,e),ah=null,rh.call(e))}function sh(e,t){if(!(t.state.loading&4)){var n=ah.get(e);if(n)var r=n.get(null);else{n=new Map,ah.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=rh.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 ch={$$typeof:F,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function lh(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=lt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lt(0),this.hiddenUpdates=lt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function uh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new lh(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=Oa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},uo(a),e}function dh(e){return e?(e=Oi,e):Oi}function fh(e,t,n,r,i,a){i=dh(i),r.context===null?r.context=i:r.pendingContext=i,r=po(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=mo(e,r,t),n!==null&&(Nd(n,e,t),ho(n,e,t))}function ph(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function mh(e,t){ph(e,t),(e=e.alternate)&&ph(e,t)}function hh(e){if(e.tag===13||e.tag===31){var t=Ti(e,67108864);t!==null&&Nd(t,e,67108864),mh(e,67108864)}}function gh(e){if(e.tag===13||e.tag===31){var t=Ad();t=ht(t);var n=Ti(e,t);n!==null&&Nd(n,e,t),mh(e,t)}}var _h=!0;function vh(e,t,n,r){var i=B.T;B.T=null;var a=de.p;try{de.p=2,bh(e,t,n,r)}finally{de.p=a,B.T=i}}function yh(e,t,n,r){var i=B.T;B.T=null;var a=de.p;try{de.p=8,bh(e,t,n,r)}finally{de.p=a,B.T=i}}function bh(e,t,n,r){if(_h){var i=xh(r);if(i===null)Kf(e,t,r,Sh,n),Nh(e,r);else if(Fh(i,e,t,n,r))r.stopPropagation();else if(Nh(e,r),t&4&&-1<Mh.indexOf(e)){for(;i!==null;){var a=jt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=rt(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Xe(o);s.entanglements[1]|=c,o&=~c}Ef(a),!(Xu&6)&&(hd=Re()+500,Df(0,!1))}}break;case 31:case 13:s=Ti(a,2),s!==null&&Nd(s,a,2),Rd(),mh(a,2)}if(a=xh(r),a===null&&Kf(e,t,r,Sh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Kf(e,t,r,null,n)}}function xh(e){return e=yn(e),Ch(e)}var Sh=null;function Ch(e){if(Sh=null,e=At(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 Sh=e,null}function wh(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(ze()){case Be:return 2;case Ve:return 8;case He:case Ue:return 32;case We:return 268435456;default:return 32}default:return 32}}var Th=!1,Eh=null,Dh=null,Oh=null,kh=new Map,Ah=new Map,jh=[],Mh=`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 Nh(e,t){switch(e){case`focusin`:case`focusout`:Eh=null;break;case`dragenter`:case`dragleave`:Dh=null;break;case`mouseover`:case`mouseout`:Oh=null;break;case`pointerover`:case`pointerout`:kh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Ah.delete(t.pointerId)}}function Ph(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=jt(t),t!==null&&hh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Fh(e,t,n,r,i){switch(t){case`focusin`:return Eh=Ph(Eh,e,t,n,r,i),!0;case`dragenter`:return Dh=Ph(Dh,e,t,n,r,i),!0;case`mouseover`:return Oh=Ph(Oh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return kh.set(a,Ph(kh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Ah.set(a,Ph(Ah.get(a)||null,e,t,n,r,i)),!0}return!1}function Ih(e){var t=At(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,vt(e.priority,function(){gh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,vt(e.priority,function(){gh(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 Lh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=xh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);vn=r,n.target.dispatchEvent(r),vn=null}else return t=jt(n),t!==null&&hh(t),e.blockedOn=n,!1;t.shift()}return!0}function Rh(e,t,n){Lh(e)&&n.delete(t)}function zh(){Th=!1,Eh!==null&&Lh(Eh)&&(Eh=null),Dh!==null&&Lh(Dh)&&(Dh=null),Oh!==null&&Lh(Oh)&&(Oh=null),kh.forEach(Rh),Ah.forEach(Rh)}function Bh(e,n){e.blockedOn===n&&(e.blockedOn=null,Th||(Th=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,zh)))}var Vh=null;function Hh(e){Vh!==e&&(Vh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Vh===e&&(Vh=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(Ch(r||n)===null)continue;break}var a=jt(n);a!==null&&(e.splice(t,3),t-=3,Qs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Uh(e){function t(t){return Bh(t,e)}Eh!==null&&Bh(Eh,e),Dh!==null&&Bh(Dh,e),Oh!==null&&Bh(Oh,e),kh.forEach(t),Ah.forEach(t);for(var n=0;n<jh.length;n++){var r=jh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<jh.length&&(n=jh[0],n.blockedOn===null);)Ih(n),n.blockedOn===null&&jh.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[xt]||null;if(typeof a==`function`)o||Hh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[xt]||null)s=o.formAction;else if(Ch(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Hh(n)}}}function Wh(){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 Gh(e){this._internalRoot=e}Kh.prototype.render=Gh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;fh(n,Ad(),e,t,null,null)},Kh.prototype.unmount=Gh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fh(e.current,2,null,e,null,null),Rd(),t[St]=null}};function Kh(e){this._internalRoot=e}Kh.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jh.length&&t!==0&&t<jh[n].priority;n++);jh.splice(n,0,e),n===0&&Ih(e)}};var qh=n.version;if(qh!==`19.3.0`)throw Error(i(527,qh,`19.3.0`));de.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=d(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var Jh={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:B,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Yh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yh.isDisabled&&Yh.supportsFiber)try{qe=Yh.inject(Jh),Je=Yh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=xc,s=Sc,c=Cc;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=uh(e,1,!1,null,null,n,r,null,o,s,c,Wh),e[St]=t.current,Wf(e),new Gh(t)}})),g=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=h()})),_=c(u(),1),v=g();function y(e){let t=`${e.url??(typeof location<`u`?`ws://${location.host}/ws`:`ws://127.0.0.1:4789/ws`)}?token=${encodeURIComponent(e.token)}`,n=new Set,r=new Set,i=new Map,a=[],o=null,s={state:`connecting`},c=1,l=500,u=!1;function d(e){s=e;for(let t of r)t(e)}function f(){d({state:`connecting`});let r=new WebSocket(t);o=r,r.onopen=()=>{for(u=!0,l=500,d({state:`open`});a.length>0;)r.send(a.shift())},r.onmessage=e=>{let t;try{t=JSON.parse(String(e.data))}catch{return}if(t.event){for(let e of n)e(t.event);return}if(typeof t.id==`number`){let e=i.get(t.id);if(!e)return;i.delete(t.id),t.ok?e.resolve(t.result):e.reject(Error(t.error??`The request failed.`))}},r.onclose=()=>{o=null;for(let[,e]of i)e.reject(Error(`Lost the connection to the coding sessions host.`));i.clear(),d({state:`closed`,reason:u?`Lost the connection to the coding sessions host. Reconnecting…`:`Can't reach the coding sessions host. It may have stopped, or this link's access token is out of date.`});let t=e.maxBackoffMs??8e3;setTimeout(f,l),l=Math.min(t,l*2)}}return f(),{call(e,...t){let n=c++,r=JSON.stringify({id:n,method:e,args:t}),s=new Promise((e,t)=>{i.set(n,{resolve:e,reject:t})});return o&&o.readyState===WebSocket.OPEN?o.send(r):a.push(r),s},subscribe(e){return n.add(e),()=>{n.delete(e)}},status(){return s},onStatus(e){return r.add(e),()=>{r.delete(e)}}}}var b=0;function x(e){let t=globalThis.crypto;return typeof t?.randomUUID==`function`?`${e}_${t.randomUUID()}`:(b+=1,`${e}_${Date.now().toString(36)}_${b.toString(36)}_${Math.random().toString(36).slice(2,10)}`)}function S(e){return{id:e.id??x(`msg`),role:e.role,parts:e.parts??[],status:e.status??`complete`,metadata:{requestId:e.metadata?.requestId??null,serverMessageId:e.metadata?.serverMessageId??null,modelRef:e.metadata?.modelRef??null,createdAt:e.metadata?.createdAt??new Date().toISOString(),raw:e.metadata?.raw??null}}}function C(e){let t=``;for(let n of e.parts)n.type===`text`&&(t+=n.text);return t}var w=Object.freeze({sendKey:`enter`,density:`comfortable`,showReasoningByDefault:!1,expandToolCardsByDefault:!1,autoScroll:!0,readAloudAutoPlay:!1,retainDrafts:!0,sendWhileBusy:!1,hideArchivedConversations:!0,messageActions:!0,attachmentMaxBytes:26214400,reasoningSentinel:`split`,routing:`any`});function T(e={}){return{...w,...E(e.organization),...E(e.surface),...E(e.user)}}function E(e){if(!e)return{};let t={};for(let[n,r]of Object.entries(e))r!==void 0&&(t[n]=r);return t}function D(){return{notify(e){let t=e.remedy?`[ai-matrx/chat] ${e.message} — ${e.remedy}`:`[ai-matrx/chat] ${e.message}`;e.level===`error`?console.error(t):e.level===`warning`?console.warn(t):console.info(t)}}}function O(e=D()){let t=new Map,n=!1,r=()=>{n||(n=!0,e.notify({level:`warning`,message:`Chat preferences and drafts are being kept in memory only, so they will be lost when this page reloads.`,remedy:"Give the chat a `prefs` port backed by localStorage (or your own store) to keep drafts across reloads."}))};return{get:e=>t.get(e)??null,set:(e,n)=>{r(),t.set(e,n)},remove:e=>{t.delete(e)}}}function k(e=D()){let t=O(e),n=null;try{if(n=globalThis.localStorage??null,n){let e=`__ai_matrx_chat_probe__`;n.setItem(e,`1`),n.removeItem(e)}}catch{n=null}if(!n)return t;let r=n;return{get:e=>{try{let t=r.getItem(e);if(t!==null)return t}catch{}return t.get(e)},set:(e,n)=>{try{r.setItem(e,n)}catch{t.set(e,n)}},remove:e=>{try{r.removeItem(e)}catch{}t.remove(e)}}}var A=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})),j=o(((e,t)=>{t.exports=A()}))(),M=(0,_.createContext)(null),N=(0,_.createContext)({});function P({conversationId:e,children:t}){return(0,j.jsx)(N.Provider,{value:{conversationId:e??null},children:t})}function F(){return(0,_.useContext)(N)}var I={};function L(){return(0,_.useContext)(M)??I}var ee=(0,_.createContext)(null);function te(){return(0,_.useContext)(ee)}function ne(){let e=te();if(!e)throw Error(`[content-ir-react] No ContentIrRenderProvider above this component. Mount one at the app root with your host adapter (kind definitions, component resolver, renderBlock, renderValue, reportError).`);return e}var R=`__ir`,re=`__kind`,ie=2166136261,ae=16777619;function oe(e,t){let n=e>>>0;for(let e=0;e<t.length;e++)n^=t.charCodeAt(e),n=n+((n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24))>>>0;return n>>>0}function se(){let e=ie,t=ae,n=0;return{push(r){e=oe(e,r),t=oe(t,r),n+=r.length},current(){return`${n.toString(36)}-${e.toString(36)}${t.toString(36)}`}}}function ce(e){let t=se();return t.push(e),t.current()}function le(e,t,n){return{v:1,engine:`fe-kind-parser`,fingerprint:ce(JSON.stringify(e)),root:{role:`structured`,kind:t,kindState:`resolved`,discriminator:n?.discriminator??{format:`json`,key:`__kind`},path:[],status:`complete`,value:e,residue:null}}}var z=new Set([`ID`,`URL`,`PDF`,`HTML`,`JSON`,`API`,`AI`,`UI`,`CSV`,`SMS`,`SEO`,`LLM`,`MCP`,`UUID`,`ISO`].map(e=>e.toLowerCase()));function ue(e){return e.replace(/([a-z\d])([A-Z])/g,`$1 $2`).replace(/([A-Z]+)([A-Z][a-z])/g,`$1 $2`).split(/[_\-.\s]+/).filter(e=>e.length>0).map(e=>z.has(e.toLowerCase())?e.toUpperCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(` `)}var B=`directive_v`;`${B}`;var de=[`reference`,`view`,`create`,`update`,`delete`,`action`,`validation`,`secret`],fe={reference:`pure`,view:`pure`,validation:`pure`,secret:`sensitive`,create:`side_effect`,update:`side_effect`,delete:`side_effect`,action:`side_effect`},pe=new Set(de.filter(e=>fe[e]===`side_effect`)),me=new Set([`reference`,`secret`]);function he(e){return typeof e==`string`&&Object.prototype.hasOwnProperty.call(fe,e)}function ge(e){return typeof e==`string`&&e.startsWith(`directive_v`)}function _e(e){return/^[a-z][a-z0-9_]*$/.test(e)}function ve(e,t,n=1){if(!he(e))throw Error(`unknown directive class ${JSON.stringify(e)}; the vocabulary is CLOSED: ${de.join(`, `)}.`);if(typeof t!=`string`||!_e(t))throw Error(`invalid directive noun ${JSON.stringify(t)} for class ${JSON.stringify(e)}: a noun is lowercase [a-z0-9_], starts with a letter, and is non-empty.`);return`${B}${n}_${e}_${t}`}function ye(e){if(!ge(e))return null;let t=e.slice(11),n=t.indexOf(`_`);if(n<=0)return null;let r=t.slice(0,n);if(!/^[0-9]+$/.test(r))return null;let i=t.slice(n+1),a=i.indexOf(`_`);if(a<=0)return null;let o=i.slice(0,a),s=i.slice(a+1);return!he(o)||!_e(s)?null:{slug:e,version:Number.parseInt(r,10),directiveClass:o,noun:s,capability:fe[o],executes:be(o),inContent:xe(o)}}function be(e){return he(e)&&pe.has(e)}function xe(e){return he(e)&&me.has(e)}function Se(e){let t=e.trimStart().match(/^\{\s*"__kind"\s*:\s*"([^"]*)/);return!!t&&ge(t[1])}var Ce=`matrx_version`,we={reference:`reference`,secret:`secret`,validation:`validation`},Te=new Set([`output_directive`,`function`]),Ee=/^(create|update|delete):([a-z][a-z0-9_]*)$/,De=Symbol.for(`ai-matrx.content-ir.legacy-shell-uses`),Oe=globalThis[De]??={count:0};function ke(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=e;if(!(Ce in t))return!1;let n=t.kind;return typeof n==`string`&&(n in we||Te.has(n))}function Ae(e,t){let n,r;if(Te.has(e)){let e=Ee.exec(t);e?(n=e[1],r=e[2]):(n=`action`,r=t)}else{let i=we[e];if(!i)return null;n=i,r=t}try{return ve(n,r)}catch{return null}}function je(e){let t=e.kind,n=e.type;if(typeof t!=`string`||typeof n!=`string`)return null;let r=Ae(t,n);if(r===null)return null;let i=e.items;return Oe.count+=1,{[re]:r,items:Array.isArray(i)?[...i]:[]}}var Me=class extends Error{constructor(e){super(e),this.name=`DirectiveDecodeError`}};function Ne(e){return typeof e!=`object`||!e||Array.isArray(e)?null:e}function Pe(e){let t=Ne(e);if(t===null)return null;let n=!1;if(ke(t)){let e=je(t);if(e===null)throw new Me(`a retired 4-key shell with kind=${JSON.stringify(t.kind)} type=${JSON.stringify(t.type)} does not map onto the Kind Directives grammar. Emit the current shell: {"${re}": "directive_v1_<class>_<noun>", "items": [...]}.`);t=e,n=!0}let r=t[re];if(!ge(r))return null;let i=ye(r);if(i===null)throw new Me(`malformed directive slug ${JSON.stringify(r)} — it claims the reserved "directive_v" namespace but does not parse as directive_v<version>_<class>_<noun>.`);let a=t.items,o=Array.isArray(a)?a.filter(e=>Ne(e)!==null):[];return{parsed:i,slug:i.slug,directiveClass:i.directiveClass,noun:i.noun,items:o,shell:{[re]:i.slug,items:o},legacyShell:n}}function Fe(e,t){try{return Pe(e)}catch(e){return t?.(e instanceof Error?e.message:`directive decode failed`),null}}function Ie(e,t){if(typeof e!=`string`)return Fe(e,t);let n;try{n=JSON.parse(e)}catch{return null}return Fe(n,t)}function Le(e){let t=e.replace(/_/g,` `).trim();return t?t.charAt(0).toUpperCase()+t.slice(1):e}var Re={reference:`Reference`,view:`View`,create:`Create`,update:`Update`,delete:`Delete`,action:`Run`,validation:`Validate`,secret:`Secret`};function ze(e,t){let n=t?.(e)?.label;return n&&n.length>0?n:Le(e)}function Be(e,t){return t?.(e)?.family??``}function Ve(e,t){return t?.(e)?.titleColumn??null}function He(e,t,n){let r=ze(t,n),i=Re[e];return{noun:r,family:Be(t,n),action:i,title:`${i} ${r}`}}var Ue=[`name`,`title`,`label`,`heading`,`slug`,`key`,`question`,`summary`],We=new Set([`__kind`,...Ue,`id`,`description`,`about`,`notes`,`content`,`text`,`body`,`organization_id`,`user_id`,`created_by`,`resource_type`]);function Ge(e,t){for(let n of t){let t=e[n];if(typeof t==`string`&&t.trim())return t.trim()}return null}function Ke(e,t,n,r){return((t?Ge(e,[t]):null)??Ge(e,Ue))||(r>1?`Item ${n+1} of ${r}`:`Item`)}function qe(e){return Ge(e,[`description`,`about`,`summary`,`doc`])}var Je=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Ye={variable_definitions:`variables`,context_policies:`context`,custom_tools:`custom tools`};function Xe(e){return Ye[e]??e.replace(/_/g,` `)}function Ze(e,t=4){let n=[];for(let[r,i]of Object.entries(e)){if(n.length>=t)break;if(!We.has(r)){if(Array.isArray(i)){if(i.length===0)continue;n.push({key:r,label:Xe(r),value:String(i.length)});continue}if(typeof i==`string`){let e=i.trim();if(!e||e.length>40||Je.test(e))continue;n.push({key:r,label:Xe(r),value:e});continue}(typeof i==`number`||typeof i==`boolean`)&&n.push({key:r,label:Xe(r),value:String(i)})}}return n}function Qe(e,t){let n=e[re],r=typeof n==`string`&&n?n:t;return r?{[re]:r,...e}:null}var $e=new Set([`markdown`,`md`,`mdx`]);function et(e){return!!e&&$e.has(e.toLowerCase())}function tt(e){return e!==void 0&&e!==``&&`
10
- \r\f\v`.includes(e)}function nt(e){let t=0,n=e.length;for(;t<n&&tt(e[t]);)t++;for(;n>t&&tt(e[n-1]);)n--;return t===0&&n===e.length?e:e.slice(t,n)}function rt(e){return e!==void 0&&e!==``&&`
11
- \v\f\r \xA0            \u2028\u2029   `.includes(e)}function it(e){let t=0,n=e.length;for(;t<n&&rt(e[t]);)t++;for(;n>t&&rt(e[n-1]);)n--;let r=0;for(;t+r<n&&e[t+r]==="`";)r++;if(r<3||e.slice(t+r,n).includes("`"))return null;let i=t+r;for(;i<n&&rt(e[i]);)i++;let a=i;for(;a<n&&!rt(e[a]);)a++;return{ticks:r,lang:e.slice(i,a)}}function at(e,t,n,r){let i=0;for(;i<e.length&&e[i]==="`";)i++;if(i<3)return`content`;let a=nt(e.slice(i));return a===``?i<t?`content`:n&&r>0?`close-nested`:`close-outer`:n&&i>=t&&!a.includes("`")?`open-nested`:`content`}function ot(e){let t=e.trimStart();if(t.startsWith("```")){let e=it(t);return e?{char:"`",ticks:e.ticks,lang:e.lang}:null}if(e.length-t.length<=3&&t.startsWith(`~~~`)){let e=/^(~{3,})(.*)$/.exec(t);return e?{char:`~`,ticks:e[1].length,lang:e[2].trim().split(/\s/)[0]??``}:null}return null}function st(e){return ot(e)!==null}var ct=class{opener;state={inString:!1,escaped:!1};depth=0;sawNested=!1;isJson;nesting;tildeCloser;constructor(e,t={}){this.opener=e,this.isJson=e.char==="`"&&e.lang===`json`,this.nesting=e.char==="`"&&(t.nesting??et(e.lang)),this.tildeCloser=e.char===`~`?RegExp(`^ {0,3}~{${e.ticks},}[ \\t]*$`):null}get nestedDepth(){return this.depth}feed(e){if(this.tildeCloser)return this.tildeCloser.test(e);let t=nt(e),n=e.indexOf("```");if(n===-1)return this.isJson&&(this.state=dt(e,0,e.length,this.state)),!1;if(this.isJson){let t=dt(e,0,n,this.state);if(t.inString)return this.state=dt(e,n,e.length,t),!1}if(t.startsWith("```")){let e=at(t,this.opener.ticks,this.nesting,this.depth);if(e===`close-outer`)return!0;e===`open-nested`&&(this.depth++,this.sawNested=!0),e===`close-nested`&&this.depth--}else{let t=ft(e,n),r=nt(e.slice(n+t));if(t>=this.opener.ticks&&r===``&&this.depth===0)return!0}return this.isJson&&(this.state=dt(e,0,e.length,this.state)),!1}};function lt(e,t,n){let r=ut(e,t,new ct(n));if(r.closed||!r.reader.sawNested||r.reader.nestedDepth<=0)return{line:r.line,closed:r.closed};if(e.streaming)return{line:r.line,closed:!1};let i=ut(e,t,new ct(n,{nesting:!1}));return{line:i.line,closed:i.closed}}function ut(e,t,n){for(let r=t+1;r<e.count;r++){if(e.openTail?.(r))continue;let t=e.line(r);if(t===null)return{line:r-1,closed:!1,reader:n};if(n.feed(t))return{line:r,closed:!0,reader:n}}return{line:e.count-1,closed:!1,reader:n}}function dt(e,t,n,r){let{inString:i,escaped:a}=r;for(let r=t;r<n;r++){let t=e[r];if(a){a=!1;continue}if(t===`\\`&&i){a=!0;continue}t===`"`&&(i=!i)}return{inString:i,escaped:a}}function ft(e,t){let n=0;for(;t+n<e.length&&e[t+n]==="`";)n++;return n}function pt(e){let t=0,n=0;for(;;){let r=/^ {0,3}> ?/.exec(e.slice(n));if(!r)return{depth:t,offset:n};t++,n+=r[0].length}}function mt(e,t){let n=0;for(let r=0;r<t;r++){let t=/^ {0,3}> ?/.exec(e.slice(n));if(!t)return null;n+=t[0].length}return e.slice(n)}var ht=/^( *)([-*+]|\d{1,9}[.)])( +|\t|$)/;function gt(e){let t=0;for(;t<e.length&&e[t]===` `;)t++;return t}function _t(e){let t=[],n=[];for(let r=0;;){let i=e.indexOf(`
12
- `,r),a=i===-1?e.length:i;if(t.push(r),n.push(a>r&&e.charCodeAt(a-1)===13?a-1:a),i===-1)break;r=i+1}let r=t.length,i=r=>e.slice(t[r],n[r]),a={ranges:[],fences:[],paragraphs:[],endsInFence:!1,pendingPara:-1},o={count:r,line:i},s=0;for(let c=0;c<r;c++){let l=ot(i(c));if(!l||l.char!=="`")continue;vt(e,t,n,i,s,c,a);let u=lt(o,c,l);a.ranges.push({start:t[c],end:n[u.line],kind:`fence`}),a.fences.push([c,u.line,u.closed]),a.pendingPara=-1,!u.closed&&u.line===r-1&&(a.endsInFence=!0),c=u.line,s=c+1}return vt(e,t,n,i,s,r,a),a}function vt(e,t,n,r,i,a,o){let s=-1,c=0,l=[],u=e=>{s!==-1&&o.paragraphs.push([s,e]),s=-1};for(let e=i;e<a;e++){let i=r(e),{depth:d,offset:f}=pt(i);d!==c&&(c=d,l=[]);let p=i.slice(f);if(p.trim()===``){u(t[e]),(e!==t.length-1||i!==``)&&(o.pendingPara=-1);continue}let m=gt(p);for(;l.length&&m<l[l.length-1];)l.pop();let h=ht.exec(p),g=l.length?l[l.length-1]:0;if(h){let e=h[3].length;g=h[1].length+h[2].length+(e>=1&&e<=4?e:1),l.push(g),p=p.slice(Math.min(g,p.length))}else p=p.slice(Math.min(m,g));let _=ot(p);if(!_){s===-1&&(s=t[e]),o.pendingPara===-1&&(o.pendingPara=t[e]);continue}u(t[e]),o.pendingPara=-1;let v=g,y=lt({count:a,line:e=>{let t=mt(r(e),d);if(t===null)return null;if(_.char===`~`&&v>0){let e=gt(t);return t.trim()!==``&&e<v?null:t.slice(Math.min(e,v))}return t}},e,_);o.ranges.push({start:t[e],end:n[y.line],kind:`fence`}),o.fences.push([e,y.line,y.closed]),!y.closed&&y.line===t.length-1&&(o.endsInFence=!0),e=y.line}u(a<t.length?t[a]:e.length)}var yt=class{all=[];byLength=new Map;indexOf=new Map;constructor(e,t,n){for(let r=t;r<n;){if(e.charCodeAt(r)!==96){r++;continue}let t=1;for(;r+t<n&&e.charCodeAt(r+t)===96;)t++;this.indexOf.set(r,this.all.length),this.all.push([r,t]);let i=this.byLength.get(t);i?i.push(r):this.byLength.set(t,[r]),r+=t}}next(e,t){let n=this.byLength.get(e);if(!n)return-1;let r=0,i=n.length;for(;r<i;){let e=r+i>>>1;n[e]<t?r=e+1:i=e}return n[r]??-1}index(e){return this.indexOf.get(e)??-1}};function bt(e,t,n,r){let i=null;for(let a=t;a<n;){let o=e.charCodeAt(a);if(o===92){a+=2;continue}if(o!==96){a++;continue}let s=ft(e,a),c=Math.min(s,n-a);i??=new yt(e,t,n);let l=i.next(c,a+c);if(l===-1){a+=c;continue}r.push({start:a,end:l+c,kind:`span`}),a=l+c}}function xt(e){let t=_t(e),n=[...t.ranges];for(let[r,i]of t.paragraphs)bt(e,r,i,n);return n.sort((e,t)=>e.start-t.start)}function St(e){let t=[],n=0;for(let r=0;r<e.length;r+=1){let i=e[r];if(i===`\\`){r+=1;continue}i===`|`&&(t.push(e.slice(n,r)),n=r+1)}return t.push(e.slice(n)),t}function Ct(e){let t=St(e).map(e=>e.trim());return t.length>1&&t[0]===``&&t.shift(),(t.length>1&&t[t.length-1]===``||t.length===1&&t[0]===``&&!e.includes(`|`))&&t.pop(),t}function wt(e){return e.replace(/\\\|/g,`|`)}var Tt=/^(?:[-+*](?:\s|$)|\d{1,9}[.)](?:\s|$)|>|#{1,6}(?:\s|$)|(?:-\s*){3,}$|(?:\*\s*){3,}$|(?:_\s*){3,}$|\[\^[^\]\s]+\]:)/,Et=e=>Tt.test(e)||st(e)||Pt(e),Dt=/^<(?:script|pre|style|textarea)(?:[\s>]|$)/i,Ot=/^(?:<!--|<\?|<![A-Za-z]|<!\[CDATA\[)/,kt=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,At=RegExp(`^</?(?:${kt})(?:[\\s>]|/>|$)`,`i`),jt=RegExp(`^(?:<[A-Za-z][A-Za-z0-9-]*(?:\\s+[A-Za-z_:][A-Za-z0-9_.:-]*(?:\\s*=\\s*(?:[^\\s"'=<>\`]+|'[^']*'|"[^"]*"))?)*\\s*/?>|</[A-Za-z][A-Za-z0-9-]*\\s*>)\\s*$`),Mt=RegExp(`^</?(?:address|article|aside|base|basefont|body|center|dialog|dir|fieldset|footer|form|frame|frameset|head|header|html|iframe|legend|link|main|menu|menuitem|nav|noframes|optgroup|option|param|search|title|track)(?:[\\s>]|/>|$)`,`i`);function Nt(e){return Mt.test(e)}[...kt.replace(`h[1-6]`,`h1|h2|h3|h4|h5|h6`).split(`|`)];function Pt(e){return e.startsWith(`<`)?Dt.test(e)||Ot.test(e)||At.test(e)||jt.test(e):!1}function Ft(e){let t=0;for(let n of e)if(n===` `)t+=1;else if(n===` `)t+=4-t%4;else break;return t}var It=/^([ \t]*)([-+*]|\d{1,9}[.)])([ \t]+|$)/;function Lt(e){let t=Ft(e[1]??``)+(e[2]??``).length,n=e[3]?Ft(` `.repeat(t)+e[3])-t:1;return t+(n>=1&&n<=4?n:1)}function Rt(e,t){return zt(e,t,!1)}function zt(e,t,n){let r=n?It.exec(e[t]??``):null;if(r)return Lt(r);let i=Ft(e[t]??``);if(i===0)return 0;for(let n=t-1;n>=0;--n){let t=e[n]??``;if(!t.trim())continue;let r=Ft(t),a=It.exec(t);if(a&&r<i){let e=Lt(a);if(e<=i)return e;continue}if(r===0)return 0}return 0}var Bt=/^:?-+:?$/;function Vt(e){let t=e.trim();if(!t.includes(`|`))return!1;let n=Ct(t);return n.length>0&&n.every(e=>Bt.test(e))}function Ht(e){let t=e.trim();return t.startsWith(`|`)&&t.includes(`|`,1)}function Ut(e){return e===void 0||!Vt(e)?!1:!Tt.test(e.trim())}function Wt(e,t){let n=e.trim();return!n||Ht(n)||!n.startsWith(`|`)&&Et(n)||!Ut(t)?!1:Ct(n).length===Ct(t.trim()).length}function Gt(e,t=0){let n=e.trim();return!n||Ft(e)-t>=4?!1:n.startsWith(`|`)||!Et(n)}function Kt(e,t){let n=e[t]??``;return!Ht(n)&&!Wt(n,e[t+1])?!1:!Qt(e,t)&&!Zt(e,t)}var qt=/^ {0,3}>/,Jt=/^(?:(?:-[ \t]*){3,}|(?:\*[ \t]*){3,}|(?:_[ \t]*){3,})$/,Yt=e=>/^#{1,6}(?:\s|$)/.test(e)||Jt.test(e)||st(e)||Pt(e);function Xt(e){if(Dt.test(e))return/<\/(?:script|pre|style|textarea)>/i;if(e.startsWith(`<!--`))return/-->/;if(e.startsWith(`<?`))return/\?>/;if(e.startsWith(`<![CDATA[`))return/\]\]>/;if(/^<![A-Za-z]/.test(e))return/>/;if(At.test(e)||jt.test(e))return null}function Zt(e,t){let n=t;for(;n>0&&(e[n-1]??``).trim();)--n;let r,i=!1;for(let a=n;a<t;a+=1){let t=e[a]??``;if(r!==void 0){r&&r.test(t)&&(r=void 0);continue}let n=t.trim(),o=Ft(t)<4?Xt(n):void 0,s=o===null&&!At.test(n);if(o===void 0||i&&s){i=!0;continue}i=!1,!Nt(n)&&(r=o&&o.test(n.slice(2))?void 0:o)}return r!==void 0}function Qt(e,t){let n=e[t]??``,r=-1;for(let n=t-1;n>=0;--n){let t=e[n]??``,i=t.trim();if(!i||Yt(i))break;let a=It.exec(t);if(a){let e=t.slice(a[0].length).trim();if(!e||Yt(e))break;r=n;break}if(r=n,qt.test(t))break}if(r<0)return!1;let i=e[r]??``;return qt.test(i)?!qt.test(n):Ft(n)<zt(e,r,!0)}function $t(e,t){let n=e[t]??``,r=e[t+1];return!Kt(e,t)||!Ut(r)||Ct(n).length!==Ct(r).length?!1:Ft(n)-Rt(e,t)<4}function en(e,t){let n=Rt(e,t),r=Math.min(e.length,t+2);for(;r<e.length&&Gt(e[r]??``,n);)r+=1;return r}var tn=`generic_structured`,nn=Symbol.for(`ai-matrx.content-ir-react.sourceless-db-row-reports`);globalThis[nn]??=new Set;var rn=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function an(e){return typeof e==`string`&&rn.test(e)}var on=new Set([`update`,`delete`]),sn=new Set([`__kind`,`id`]);function cn(e){let t=e.id;return typeof t==`string`&&t.trim()?t.trim():typeof t==`number`?String(t):null}function ln(e){let t=e.replace(/_/g,` `).trim();return t.charAt(0).toUpperCase()+t.slice(1)}function un(e,t){return`${e} ${an(t)?t.slice(0,8):t.length>12?`${t.slice(0,12)}…`:t}`}function dn(e){if(e==null)return{value:`cleared`,full:`cleared`,clears:!0};if(typeof e==`string`){let t=e.trim();if(!t)return{value:`cleared`,full:`cleared`,clears:!0};let n=t.replace(/\s+/g,` `);return{value:n.length>60?`${n.slice(0,59)}…`:n,full:t,clears:!1}}if(typeof e==`number`||typeof e==`boolean`)return{value:String(e),full:String(e),clears:!1};if(Array.isArray(e)){let t=e.length;return{value:t===0?`cleared`:`${t} ${t===1?`entry`:`entries`}`,full:fn(e),clears:t===0}}let t=Object.keys(e).length;return{value:t===0?`cleared`:`${t} ${t===1?`field`:`fields`}`,full:fn(e),clears:t===0}}function fn(e){try{return JSON.stringify(e,null,2)}catch{return String(e)}}function pn(e,t){return e===t?!0:e==null||t==null?(e==null||e===``)&&(t==null||t===``):typeof e==`object`||typeof t==`object`?fn(e)===fn(t):!1}function mn(e,t,n={}){let r=[],i=n.titleColumn??null;for(let[n,a]of Object.entries(e)){if(sn.has(n))continue;let e={key:n,label:n===i?`Title`:ln(n),...dn(a)};t&&Object.prototype.hasOwnProperty.call(t,n)&&(e.before=dn(t[n]),e.same=pn(t[n],a)),r.push(e)}return r}var hn=Symbol.for(`@ai-matrx/content-ir-react/record-revisions`);function gn(){let e=globalThis,t=e[hn];return t||(t={revisions:new Map,listeners:new Set},e[hn]=t),t}var{revisions:_n,listeners:vn}=gn();function yn(e){return _n.get(e)??0}function bn(e){if(e){_n.set(e,yn(e)+1);for(let e of vn)e()}}function xn(e){return vn.add(e),()=>{vn.delete(e)}}function Sn(e){return(0,_.useSyncExternalStore)(xn,()=>yn(e),()=>0)}function Cn(e,t){let n=Sn(t?.id??``),r=t&&e?`${t.noun}:${t.id}#${n}`:``,[i,a]=(0,_.useState)({key:``,values:null,status:`idle`});return(0,_.useEffect)(()=>{if(!r||!e)return;let t=r.indexOf(`:`),n={noun:r.slice(0,t),id:r.slice(t+1,r.lastIndexOf(`#`))},i=!0;return a({key:r,values:null,status:`loading`}),e(n).then(e=>{i&&a({key:r,values:e,status:e?`ready`:`unavailable`})}).catch(()=>{i&&a({key:r,values:null,status:`unavailable`})}),()=>{i=!1}},[r,e]),r?i.key===r?{values:i.values,status:i.status}:{values:null,status:`loading`}:{values:null,status:`idle`}}var wn={create:`created`,update:`updated`,delete:`deleted`};function Tn(e){let t=wn[e.directiveClass]??`applied`,n=e.nounLabel.trim().toLowerCase()||`item`;return e.failed&&e.total&&e.total>1?{what:`${e.failed} of ${e.total} weren't ${t}.`,next:`Retry to try those again.`}:{what:`The ${n} wasn't ${t}.`,next:`Try again in a moment.`}}function En(e,t){return t?.(e)??Tn(e)}function Dn({children:e,...t}){return(0,j.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,...t,children:e})}var On=e=>(0,j.jsxs)(Dn,{...e,children:[(0,j.jsx)(`path`,{d:`M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4`}),(0,j.jsx)(`path`,{d:`M14 2v4a2 2 0 0 0 2 2h4`}),(0,j.jsx)(`path`,{d:`M3 15h6`}),(0,j.jsx)(`path`,{d:`M6 12v6`})]}),kn=e=>(0,j.jsxs)(Dn,{...e,children:[(0,j.jsx)(`path`,{d:`M12 20h9`}),(0,j.jsx)(`path`,{d:`M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z`})]}),An=e=>(0,j.jsxs)(Dn,{...e,children:[(0,j.jsx)(`path`,{d:`M3 6h18`}),(0,j.jsx)(`path`,{d:`M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6`}),(0,j.jsx)(`path`,{d:`M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2`}),(0,j.jsx)(`line`,{x1:`10`,x2:`10`,y1:`11`,y2:`17`}),(0,j.jsx)(`line`,{x1:`14`,x2:`14`,y1:`11`,y2:`17`})]}),jn=e=>(0,j.jsx)(Dn,{...e,children:(0,j.jsx)(`polygon`,{points:`6 3 20 12 6 21 6 3`})}),Mn=e=>(0,j.jsxs)(Dn,{...e,children:[(0,j.jsx)(`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`}),(0,j.jsx)(`path`,{d:`m6 17 3.13-5.78c.53-.97.1-2.01-.4-2.96A4 4 0 0 1 14 5.5c.63.42 1.13 1 1.44 1.66`}),(0,j.jsx)(`path`,{d:`m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8`})]}),Nn=e=>(0,j.jsxs)(Dn,{...e,children:[(0,j.jsx)(`path`,{d:`M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z`}),(0,j.jsx)(`path`,{d:`m7 16.5-4.74-2.85`}),(0,j.jsx)(`path`,{d:`m7 16.5 5-3`}),(0,j.jsx)(`path`,{d:`M7 16.5v5.17`}),(0,j.jsx)(`path`,{d:`M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z`}),(0,j.jsx)(`path`,{d:`m17 16.5-5-3`}),(0,j.jsx)(`path`,{d:`m17 16.5 4.74-2.85`}),(0,j.jsx)(`path`,{d:`M17 16.5v5.17`}),(0,j.jsx)(`path`,{d:`M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z`}),(0,j.jsx)(`path`,{d:`M12 8 7.26 5.15`}),(0,j.jsx)(`path`,{d:`m12 8 4.74-2.85`}),(0,j.jsx)(`path`,{d:`M12 13.5V8`})]}),Pn=e=>(0,j.jsx)(Dn,{...e,children:(0,j.jsx)(`path`,{d:`m6 9 6 6 6-6`})}),Fn=e=>(0,j.jsx)(Dn,{...e,children:(0,j.jsx)(`path`,{d:`m9 18 6-6-6-6`})}),In=e=>(0,j.jsxs)(Dn,{...e,children:[(0,j.jsx)(`polyline`,{points:`15 3 21 3 21 9`}),(0,j.jsx)(`polyline`,{points:`9 21 3 21 3 15`}),(0,j.jsx)(`line`,{x1:`21`,x2:`14`,y1:`3`,y2:`10`}),(0,j.jsx)(`line`,{x1:`3`,x2:`10`,y1:`21`,y2:`14`})]}),Ln=e=>(0,j.jsx)(Dn,{...e,children:(0,j.jsx)(`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`})}),Rn=e=>(0,j.jsxs)(Dn,{...e,children:[(0,j.jsx)(`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`}),(0,j.jsx)(`path`,{d:`M3 3v5h5`})]}),zn=e=>(0,j.jsxs)(Dn,{...e,children:[(0,j.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,j.jsx)(`path`,{d:`m9 12 2 2 4-4`})]}),Bn=e=>(0,j.jsxs)(Dn,{...e,children:[(0,j.jsx)(`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`}),(0,j.jsx)(`path`,{d:`M12 9v4`}),(0,j.jsx)(`path`,{d:`M12 17h.01`})]}),Vn=new Set([`create_agent`,`create_agent_definition`,`agent`]);function Hn(e,t){if(e===`action`&&Vn.has(t))return Mn;switch(e){case`create`:return On;case`update`:return kn;case`delete`:return An;default:return jn}}function Un(e,t){if(on.has(e.directiveClass))for(let e of t){let t=cn(e);t&&bn(t)}}var Wn=new WeakMap,Gn={},Kn=new Set;function qn(e){let t=Wn.get(e);return t||(t=new Map,Wn.set(e,t)),t}function Jn(e,t,n){qn(e).set(t,n);for(let e of Kn)e()}function Yn(e){return Kn.add(e),()=>{Kn.delete(e)}}function Xn(e,t){return(0,_.useSyncExternalStore)(Yn,()=>Wn.get(e)?.get(t)??null,()=>null)}var Zn=2e3,Qn=30;function $n(e,t){return!!e.applyState&&!!e.confirm&&t.parsed.executes&&t.items.length>0}function er({directive:e,label:t=`Apply`,itemCount:n,onApplied:r,onPhase:i,nothingToChange:a=!1}){let o=L(),s=F().conversationId||void 0,c=e.items,l=$n(o,e),u=l?{status:`checking`}:{status:`idle`},[d,f]=(0,_.useState)(u),[p,m]=(0,_.useState)(0),[h,g]=(0,_.useState)(!1),v=(0,_.useRef)(null),y=JSON.stringify([e.slug,c,s??null]),[b,x]=(0,_.useState)(y);b!==y&&(x(y),f(u),g(!1),m(0));let S=Xn(o.confirm??Gn,y),C=d.status===`asking`||!S?d:S,w=(0,_.useRef)(y);(0,_.useEffect)(()=>{w.current=y},[y]);let T=ze(e.noun,o.nouns),E=l?JSON.stringify([e.slug,c,s??null]):``,D=o.applyState,O=o.reportError;(0,_.useEffect)(()=>{if(!E||!D)return;let[e,t,n]=JSON.parse(E),r={__kind:e,items:t};n&&(r.conversationId=n);let i=!0,a=0,o=null,s=()=>{D(r).then(e=>{i&&(e.state===`applied`?f(n=>n.status===`checking`||n.status===`finishing`?{status:`applied`,applied:t.length,failed:0,message:e.message?.trim()?e.message.trim():null,records:e.records??[],copies:Math.max(1,e.copies??1),before:e.before??null}:n):e.state===`in_flight`&&a<Qn?(a+=1,f(e=>e.status===`checking`||e.status===`finishing`?{status:`finishing`}:e),o=setTimeout(s,Zn)):f(e=>e.status===`checking`||e.status===`finishing`?{status:`idle`}:e))}).catch(t=>{if(!i)return;let n=t instanceof Error&&t.message?t.message:String(t);(O??console.error)(`[kind-directives] Could not read whether ${e} was already applied: ${n}`),f(e=>e.status===`checking`||e.status===`finishing`?{status:`idle`}:e)})};return s(),()=>{i=!1,o&&clearTimeout(o)}},[E,D,O]);let k=C.status===`applied`&&C.failed===0?C:null,A=k?k.before:null,M=C.status===`checking`||C.status===`finishing`?`pending`:k?`applied:${JSON.stringify(A)}`:`open`;(0,_.useEffect)(()=>{i&&i(M===`pending`?{phase:`pending`}:M===`open`?{phase:`open`}:{phase:`applied`,before:A})},[M,i,A]);let N=C.status===`applying`?C.startedAt:null;if((0,_.useEffect)(()=>{if(N===null)return;v.current=N;let e=setInterval(()=>m(Math.round((Date.now()-(v.current??0))/1e3)),1e3);return()=>clearInterval(e)},[N]),!e.parsed.executes)return null;let P=o.confirm;if(!P)return null;async function I(t=!1){if(!P)return;let n=C,i=y,a=()=>w.current===i,l=C.status===`applied`?C.copies:0;if(o.ask){t?g(!0):f({status:`asking`});let r=!1;try{r=await o.ask({directive:e,items:c,nounLabel:T,...t?{again:!0}:{}})}catch(e){if(!a())return;g(!1),f({status:`error`,message:e instanceof Error&&e.message?e.message:`We could not ask you to confirm this, so nothing was done.`});return}if(!a())return;if(g(!1),!r){f(t?n:{status:`idle`});return}}m(0),f(e=>e.status===`asking`?{status:`idle`}:e),Jn(P,i,{status:`applying`,startedAt:Date.now()});try{let o={__kind:e.slug,items:c};s&&(o.conversationId=s),t&&(o.force=!0);let u;try{u=await P(o)}finally{Un(e,c)}for(let e of u.records??[])bn(e.id);Jn(P,i,{status:`applied`,applied:u.applied,failed:u.failed,message:u.message?.trim()?u.message.trim():null,records:u.records??[],copies:t?Math.max(1,l)+1:Math.max(1,l),before:t&&n.status===`applied`&&n.before?n.before:u.before??null}),a()&&r?.()}catch(e){Jn(P,i,{status:`error`,message:e instanceof Error&&e.message?e.message:`That couldn't be applied just now. Please try again.`})}}if(C.status===`applied`){let t=C.failed>0,n=e.directiveClass===`delete`,r=T,i=o.renderRecord?C.records:[];return(0,j.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-center gap-x-2 gap-y-0.5 text-xs ${t?`text-destructive`:`text-primary`}`,"data-apply-state":`applied`,children:[(0,j.jsxs)(`span`,{className:`inline-flex min-w-0 items-start gap-1`,children:[t?(0,j.jsx)(Bn,{className:`mt-px h-3.5 w-3.5 shrink-0`}):(0,j.jsx)(zn,{className:`mt-px h-3.5 w-3.5 shrink-0`}),t?(0,j.jsx)(tr,{words:En({raw:C.message??`${C.failed} failed`,directiveClass:e.directiveClass,noun:e.noun,nounLabel:T,failed:C.failed,total:C.applied+C.failed},o.explainFailure),raw:C.message}):(0,j.jsx)(`span`,{className:`min-w-0`,children:C.message??`Applied ${C.applied}`})]}),C.copies>1?(0,j.jsx)(`span`,{className:`shrink-0 text-muted-foreground`,"data-apply-copies":C.copies,title:i.length>0?e.directiveClass===`create`?`Links to the latest copy.`:`Links to the latest run.`:void 0,children:e.directiveClass===`create`?`${C.copies} copies`:`Ran ${C.copies} times`}):null,i.map(e=>(0,j.jsx)(`span`,{className:`inline-flex min-w-0 items-center`,children:o.renderRecord?.({...e,fallback:un(r,e.id),context:`applied`,trashed:n})},`${e.noun}:${e.id}`)),(0,j.jsxs)(`button`,{type:`button`,disabled:h,onClick:()=>void I(!t),className:`inline-flex items-center gap-1 rounded px-1 py-0.5 text-muted-foreground hover:bg-accent hover:text-accent-foreground disabled:opacity-50`,"data-apply-action":t?`retry`:`run-again`,children:[(0,j.jsx)(Rn,{className:`h-3 w-3`}),t?`Retry`:`Run again`]})]})}if(C.status===`checking`)return(0,j.jsx)(`span`,{className:`inline-flex h-6 w-6 items-center justify-center text-muted-foreground`,role:`status`,"aria-label":`Checking whether this already ran`,"data-apply-state":`checking`,children:(0,j.jsx)(Ln,{className:`h-3.5 w-3.5 animate-spin`})});if(C.status===`finishing`)return(0,j.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-xs text-muted-foreground`,role:`status`,"data-apply-state":`finishing`,children:[(0,j.jsx)(Ln,{className:`h-3.5 w-3.5 animate-spin`}),`Finishing…`]});let ee=e.directiveClass===`delete`,te=a&&C.status===`idle`;return(0,j.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[te?(0,j.jsx)(`span`,{className:`text-xs text-muted-foreground`,"data-apply-nothing":``,children:`Nothing to change`}):null,(0,j.jsxs)(`button`,{type:`button`,onClick:()=>void I(),disabled:C.status===`applying`||C.status===`asking`||c.length===0,"data-apply-tone":te?`muted`:ee?`destructive`:`default`,title:te?`It sets no fields, so applying it changes nothing.`:void 0,className:`inline-flex items-center gap-1 rounded-md border px-2 py-1 text-xs font-medium disabled:opacity-50 ${te?`border-border/60 bg-background text-muted-foreground hover:bg-accent`:ee?`border-destructive/50 bg-background text-destructive hover:bg-destructive/10`:`border-border bg-background hover:bg-accent`}`,children:[C.status===`applying`?(0,j.jsx)(Ln,{className:`h-3.5 w-3.5 animate-spin`}):(0,j.jsx)(jn,{className:`h-3.5 w-3.5`}),C.status===`applying`?`Applying${n?` ${n} ${n===1?`item`:`items`}`:``}…${p?` ${p}s`:``}`:t]}),C.status===`error`?(0,j.jsxs)(`span`,{className:`inline-flex max-w-sm items-start gap-1 text-xs text-destructive`,"data-apply-state":`error`,children:[(0,j.jsx)(Bn,{className:`mt-0.5 h-3.5 w-3.5 shrink-0`}),(0,j.jsx)(tr,{words:En({raw:C.message,directiveClass:e.directiveClass,noun:e.noun,nounLabel:T},o.explainFailure),raw:C.message})]}):null]})}function tr({words:e,raw:t}){let[n,r]=(0,_.useState)(!1),i=t?.trim()??``;return(0,j.jsxs)(`span`,{className:`flex min-w-0 flex-col gap-0.5`,"data-apply-failure":!0,children:[(0,j.jsxs)(`span`,{className:`min-w-0`,children:[e.what,` `,e.next,i?(0,j.jsx)(`button`,{type:`button`,onClick:()=>r(e=>!e),"aria-expanded":n,className:`ml-1 underline underline-offset-2 hover:no-underline`,"data-apply-failure-details-toggle":!0,children:n?`Hide details`:`Details`}):null]}),n&&i?(0,j.jsx)(`span`,{className:`block max-w-sm select-text break-words font-mono text-[11px] text-muted-foreground`,"data-apply-failure-details":!0,children:i}):null]})}function nr({directive:e,reason:t}){let n=L(),r=e.items.length,i=He(e.directiveClass,e.noun,n.nouns);return(0,j.jsxs)(`div`,{className:`my-3 inline-flex flex-wrap items-center gap-2 rounded-md border border-border bg-muted px-2.5 py-1 text-sm`,children:[(0,j.jsx)(Nn,{className:`h-3.5 w-3.5 shrink-0 text-muted-foreground`}),(0,j.jsx)(`span`,{className:`text-foreground`,children:i.title}),i.family?(0,j.jsxs)(`span`,{className:`text-muted-foreground`,children:[`· `,i.family]}):null,(0,j.jsxs)(`span`,{className:`text-muted-foreground`,children:[`· `,r,` `,r===1?`item`:`items`]}),t?(0,j.jsxs)(`span`,{className:`text-muted-foreground`,children:[`· `,t]}):null,(0,j.jsx)(er,{directive:e})]})}var rr=/^\{\s*"__kind"\s*:\s*"([^"]+)"/;function ir(e){return e.trimStart().match(rr)?.[1]??null}function ar({content:e,streaming:t,className:n}){let r=L(),i=ir(e),a=i?ye(i):null,o=a?He(a.directiveClass,a.noun,r.nouns):null,s=a?Hn(a.directiveClass,a.noun):Nn,c=o?.title??`Structured action`;return(0,j.jsxs)(`div`,{className:`my-3 rounded-md border border-border bg-card px-2.5 py-1.5${n?` ${n}`:``}`,"data-directive":i??void 0,"data-directive-state":t?`streaming`:`incomplete`,children:[(0,j.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,j.jsx)(s,{className:`h-3.5 w-3.5 shrink-0 text-muted-foreground`}),(0,j.jsx)(`span`,{className:`text-sm font-medium text-foreground`,children:c}),o?.family?(0,j.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:o.family}):null,t?(0,j.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-xs text-muted-foreground`,role:`status`,children:[(0,j.jsx)(`span`,{className:`h-1.5 w-1.5 animate-pulse rounded-full bg-primary`,"aria-hidden":!0}),`Writing…`]}):(0,j.jsx)(`span`,{className:`text-xs text-destructive`,role:`status`,children:`Cut off before it finished — nothing can be applied.`})]}),t?null:(0,j.jsxs)(`details`,{className:`mt-1 text-xs text-muted-foreground`,children:[(0,j.jsx)(`summary`,{className:`cursor-pointer select-none hover:text-foreground`,children:`Show what arrived`}),(0,j.jsx)(`pre`,{className:`mt-1 max-h-64 overflow-auto whitespace-pre-wrap break-all rounded bg-muted px-2 py-1 text-[11px]`,children:e})]})]})}var or=Symbol.for(`ai-matrx.content-ir-react.directive-renderers`),sr=globalThis[or]??={bySlug:new Map,byClass:new Map};function cr(e){return sr.bySlug.get(e.slug)??sr.byClass.get(e.directiveClass)??null}var lr=3;function ur({directive:e,item:t,index:n,total:r,phase:i}){let a=L(),o=on.has(e.directiveClass)?cn(t):null;if(o)return(0,j.jsx)(fr,{directive:e,item:t,recordId:o,index:n,phase:i});let s=Ke(t,Ve(e.noun,a.nouns),n,r),c=qe(t),l=Ze(t),u=a.itemKind?.(e.slug)??null,d=He(e.directiveClass,e.noun,a.nouns),f=a.openItem,p=(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{className:`min-w-0 shrink-0 truncate font-medium text-foreground`,children:s}),(0,j.jsx)(`span`,{className:`hidden min-w-0 flex-1 items-baseline gap-2 overflow-hidden sm:flex`,children:l.map(e=>(0,j.jsxs)(`span`,{className:`truncate text-[11px] text-muted-foreground`,children:[e.value,` `,e.label]},e.key))}),c&&l.length===0?(0,j.jsx)(`span`,{className:`hidden truncate text-[11px] text-muted-foreground sm:inline`,children:c}):null,f?(0,j.jsx)(In,{className:`ml-auto h-3 w-3 shrink-0 text-muted-foreground`}):null]});return(0,j.jsxs)(`div`,{className:`flex items-center gap-2 py-1 text-xs`,children:[f?(0,j.jsx)(`button`,{type:`button`,onClick:()=>f({item:Qe(t,u)??t,itemKind:u,title:s,subtitle:`${d.title} · item ${n+1} of ${r}`,directive:e,index:n,total:r}),className:`flex min-w-0 flex-1 items-center gap-2 rounded px-1 py-0.5 text-left hover:bg-accent hover:text-accent-foreground`,title:`Open to read it`,children:p}):(0,j.jsx)(`span`,{className:`flex min-w-0 flex-1 items-center gap-2 px-1 py-0.5`,children:p}),a.renderCopy?.({label:s,value:t,kind:u,size:`xs`})]})}function dr({changes:e,className:t}){return e.length===0?(0,j.jsx)(`p`,{className:`text-[11px] text-muted-foreground${t?` ${t}`:``}`,children:`Sets no fields — nothing would change.`}):(0,j.jsx)(`ul`,{className:`space-y-0.5${t?` ${t}`:``}`,"data-directive-changes":``,children:e.map(e=>{let t=e.before&&!e.same?e.before:null,n=t?t.clears?`empty`:t.value:null;return(0,j.jsxs)(`li`,{className:`flex min-w-0 items-baseline gap-1.5 text-[11px]`,title:t?`${e.label}: ${t.clears?`empty`:t.full} → ${e.full}`:`${e.label} → ${e.full}`,"data-change-key":e.key,children:[(0,j.jsx)(`span`,{className:`shrink-0 text-muted-foreground`,children:e.label}),n===null?null:(0,j.jsx)(`span`,{className:`min-w-0 max-w-[40%] shrink truncate text-muted-foreground line-through`,"data-change-before":``,children:n}),(0,j.jsx)(`span`,{"aria-hidden":!0,className:`shrink-0 text-muted-foreground`,children:`→`}),(0,j.jsx)(`span`,{className:`min-w-0 truncate ${e.clears?`italic text-muted-foreground`:`text-foreground`}`,"data-change-after":``,children:e.value}),e.same?(0,j.jsx)(`span`,{className:`shrink-0 text-muted-foreground`,children:`(no change)`}):null]},e.key)})})}function fr({directive:e,item:t,recordId:n,index:r,phase:i}){let a=L(),o=un(ze(e.noun,a.nouns),n),s=e.directiveClass===`update`,c=s&&i.phase===`open`,l=Cn(c?a.readRecord:void 0,c?{noun:e.noun,id:n}:null),u=i.phase===`applied`?i.before?.[r]??null:c?l.values:null,d=s?mn(t,u,{titleColumn:Ve(e.noun,a.nouns)}):[],f=a.renderRecord?a.renderRecord({noun:e.noun,id:n,fallback:o,context:`row`}):(0,j.jsx)(`span`,{className:`truncate font-medium text-foreground`,children:o});return(0,j.jsxs)(`div`,{className:`py-1 text-xs`,"data-directive-target":n,children:[(0,j.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,j.jsx)(`span`,{className:`flex min-w-0 flex-1 items-center gap-1 px-1`,children:f}),a.renderCopy?.({label:o,value:t,size:`xs`})]}),s?(0,j.jsx)(dr,{changes:d,className:`mt-0.5 px-1`}):null]})}function pr({directive:e}){let t=L(),[n,r]=(0,_.useState)(!1),i=e.items,a=i.length,o=He(e.directiveClass,e.noun,t.nouns),s=Hn(e.directiveClass,e.noun),[c,l]=(0,_.useState)(()=>$n(t,e)?{phase:`pending`}:{phase:`open`}),u=e.directiveClass===`update`&&a>0&&i.every(e=>mn(e).length===0),d=n?i:i.slice(0,lr),f=a-d.length;return(0,j.jsxs)(`div`,{className:`my-3 rounded-md border border-border bg-card px-2.5 py-1.5`,"data-directive":e.slug,children:[(0,j.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,j.jsx)(s,{className:`h-3.5 w-3.5 shrink-0 text-muted-foreground`}),(0,j.jsx)(`span`,{className:`text-sm font-medium text-foreground`,children:o.title}),o.family?(0,j.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:o.family}):null,(0,j.jsxs)(`span`,{className:`text-xs tabular-nums text-muted-foreground`,children:[a,` `,a===1?`item`:`items`]}),(0,j.jsxs)(`div`,{className:`ml-auto flex items-center gap-1`,children:[t.renderCopy?.({label:o.title,value:e.shell,size:`icon`}),(0,j.jsx)(er,{directive:e,itemCount:a,onPhase:l,nothingToChange:u})]})]}),a===0?(0,j.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`No items — nothing would be written.`}):(0,j.jsx)(`div`,{className:`mt-0.5 divide-y divide-border/60`,children:d.map((t,n)=>(0,j.jsx)(ur,{directive:e,item:t,index:n,total:a,phase:c},n))}),f>0||n?(0,j.jsxs)(`button`,{type:`button`,onClick:()=>r(e=>!e),className:`mt-0.5 inline-flex items-center gap-1 rounded px-1 py-0.5 text-[11px] text-muted-foreground hover:text-foreground`,children:[n?(0,j.jsx)(Pn,{className:`h-3 w-3`}):(0,j.jsx)(Fn,{className:`h-3 w-3`}),n?`Show less`:`Show ${f} more`]}):null]})}function mr(e){try{return JSON.parse(e),!0}catch{return!1}}function hr({conversationId:e,...t}){return e===void 0?(0,j.jsx)(gr,{...t}):(0,j.jsx)(P,{conversationId:e,children:(0,j.jsx)(gr,{...t})})}function gr({content:e,className:t,streaming:n}){let r=L(),i=Ie(e,e=>{let t=`[kind-directives] ${e}`;r.reportError?r.reportError(t):console.error(t)});if(!i){if(typeof e==`string`&&Se(e)&&!mr(e))return(0,j.jsx)(ar,{content:e,streaming:n!==!1,className:t});let r=typeof e==`string`?e:JSON.stringify(e,null,2);return(0,j.jsx)(`pre`,{className:`my-3 overflow-x-auto rounded-md border border-border bg-muted px-3 py-2 text-xs text-muted-foreground${t?` ${t}`:``}`,children:r})}let a=cr(i);return a?(0,j.jsx)(a,{directive:i}):i.parsed.executes?(0,j.jsx)(pr,{directive:i}):(0,j.jsx)(nr,{directive:i})}function _r(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function vr(e,t){if(ge(e)||t.kinds.getDefinition(e)?.legacyBlockType)return!0;let n=t.components.resolve(e,t.platform,`output`);return n?.isActive?n.componentKey!==tn:!1}function yr(e){return ge(e.kind)?(0,j.jsx)(hr,{content:e.value,...e.className===void 0?{}:{className:e.className}}):(0,j.jsx)(br,{...e})}function br({kind:e,value:t,showRoutingNote:n=!0,unroutableFallback:r,variant:i=`card`,className:a}){let o=ne(),[s,c]=(0,_.useState)(()=>vr(e,o)?`routable`:`checking`);(0,_.useEffect)(()=>{let t=!1,n=!1,r=()=>{t||c(vr(e,o)?`routable`:n?`unroutable`:`checking`)},i=o.components.subscribe(r);r(),o.components.requestComponent(e,o.platform,`output`);let a=o.components.getVersion()>0;return Promise.allSettled([o.kinds.ensureWarm(),o.components.ensureWarm()]).then(async()=>{n=!0,r(),a&&await o.components.refresh(),r()}),()=>{t=!0,i()}},[o,e]);let l=_r(t)?{type:`code`,content:JSON.stringify(t,null,2),language:`json`,metadata:{[R]:le(t,e)}}:null,u=i===`bare`?void 0:`rounded-md border border-border bg-card p-3`;if(s===`unroutable`&&r!==void 0)return(0,j.jsx)(j.Fragment,{children:r});let d=l===null||s===`unroutable`,f=`This shape has no custom component yet, so it renders through the universal viewer — exactly what production shows today.`;return(0,j.jsxs)(`div`,{className:a?`space-y-3 ${a}`:`space-y-3`,children:[n&&s===`unroutable`?o.renderNotice?.(f)??(0,j.jsx)(`div`,{className:`rounded-md border border-amber-500/30 bg-amber-500/5 px-3 py-2 text-xs text-amber-800 dark:text-amber-200`,children:f}):null,(0,j.jsx)(`div`,{className:u,children:d?o.renderValue({value:t,kind:e}):o.renderBlock(l)})]})}var xr=/^(https?:|mailto:|tel:)/i,Sr=/^([./#?]|[A-Za-z0-9_-]+\/)/;function Cr(e){let t=e.trim();return t===``?null:xr.test(t)?t:/^[A-Za-z][A-Za-z0-9+.-]*:/.test(t)?null:Sr.test(t)?t:null}function wr(e){let t=e.trim();return/^https?:\/\//i.test(t)?t:null}var Tr=400,Er=["(`+)([^\\n]{0,400}?)\\1",`!\\[([^\\]\\n]*)\\]\\(((?:[^()\\s]|\\([^()\\s]*\\))+)\\)`,`\\[([^\\]\\n]+)\\]\\(((?:[^()\\s]|\\([^()\\s]*\\))+)\\)`,`(\\*\\*|__)(?=\\S)([^\\n]{0,400}?\\S)\\7`,`(\\*|_)(?=\\S)([^*_\\n]{0,400}?\\S)\\9`,`(~~)(?=\\S)([^\\n]{0,400}?\\S)\\11`,`(https?://[^\\s<>()]+)`].join(`|`);function Dr(e,t,n=0){if(n>6||e.length>Tr*64)return[e];let r=[],i=new RegExp(Er,`g`),a=0,o=0,s=i.exec(e);for(;s!==null;){s.index>a&&r.push(e.slice(a,s.index));let c=`${t}i${o}`;if(o+=1,s[1]!==void 0)r.push((0,j.jsx)(`code`,{children:s[2]??``},c));else if(s[4]!==void 0){let e=wr(s[4]),t=s[3]??``;r.push(e===null?(0,j.jsx)(_.Fragment,{children:t===``?s[4]:t},c):(0,j.jsx)(`img`,{className:`mx-chat-md__image`,src:e,alt:t,loading:`lazy`,referrerPolicy:`no-referrer`},c))}else if(s[6]!==void 0){let e=Cr(s[6]),t=s[5]??``;r.push(e===null?(0,j.jsx)(_.Fragment,{children:t},c):(0,j.jsx)(`a`,{href:e,target:`_blank`,rel:`noreferrer noopener`,children:Dr(t,`${c}-`,n+1)},c))}else s[8]===void 0?s[10]===void 0?s[12]===void 0?s[13]!==void 0&&r.push((0,j.jsx)(`a`,{href:s[13],target:`_blank`,rel:`noreferrer noopener`,children:s[13]},c)):r.push((0,j.jsx)(`del`,{children:Dr(s[12],`${c}-`,n+1)},c)):r.push((0,j.jsx)(`em`,{children:Dr(s[10],`${c}-`,n+1)},c)):r.push((0,j.jsx)(`strong`,{children:Dr(s[8],`${c}-`,n+1)},c));a=s.index+s[0].length,s=i.exec(e)}return a<e.length&&r.push(e.slice(a)),r}var Or=/^\s{0,3}(`{3,}|~{3,})\s*([^\s`]*)/,kr=/^(#{1,6})\s+(.*)$/,Ar=/^\s{0,3}[-*+]\s+(.*)$/,jr=/^\s{0,3}\d{1,9}[.)]\s+(.*)$/,Mr=/^\s{0,3}>\s?(.*)$/,Nr=/^\s{0,3}([-*_])(\s*\1){2,}\s*$/;function Pr(e){return Ct(e).map(wt)}function Fr(e){let t=e.split(`
13
- `),n=[];{let e=0;for(let r of t)n.push(e),e+=r.length+1}let r=[],i=0,a=0;for(;i<t.length;){let e=t[i]??``;if(e.trim()===``){i+=1;continue}a=i;let n=Or.exec(e);if(n!==null){let e=n[1]??"```",a=n[2]??``,o=[];i+=1;let s=!1;for(;i<t.length;){let n=t[i]??``;if(n.trimStart().startsWith(e[0]??"`")&&n.trim().length>=3){let t=Or.exec(n);if(t!==null&&(t[1]??``).length>=e.length){s=!0,i+=1;break}}o.push(n),i+=1}r.push({type:`code`,language:a,body:o.join(`
14
- `),closed:s});continue}let o=kr.exec(e);if(o!==null){r.push({type:`heading`,level:(o[1]??`#`).length,body:o[2]??``}),i+=1;continue}if(Nr.test(e)){r.push({type:`rule`}),i+=1;continue}if(Mr.test(e)){let e=[];for(;i<t.length;){let n=Mr.exec(t[i]??``);if(n===null)break;e.push(n[1]??``),i+=1}r.push({type:`quote`,body:e.join(`
15
- `)});continue}let s=Ar.exec(e),c=jr.exec(e);if(s!==null||c!==null){let e=c!==null,n=[];for(;i<t.length;){let r=t[i]??``,a=e?jr.exec(r):Ar.exec(r);if(a===null)break;n.push(a[1]??``),i+=1}r.push({type:`list`,ordered:e,items:n});continue}if($t(t,i)){let n=Pr(e),a=en(t,i);i+=2;let o=[];for(;i<a;){let e=Pr(t[i]??``);o.push(n.map((t,n)=>e[n]??``)),i+=1}r.push({type:`table`,header:n,rows:o});continue}let l=[];for(;i<t.length;){let e=t[i]??``;if(e.trim()===``||Or.test(e)||kr.test(e)||Ar.test(e)||jr.test(e)||Mr.test(e)||Nr.test(e))break;l.push(e),i+=1}r.push({type:`paragraph`,body:l.join(`
16
- `)})}return{blocks:r,openFrom:n[a]??0}}function Ir(){let e=new Map,t=0,n=(n,r)=>{t+=1;let i=Fr(r);return e.set(n,{text:r,blocks:i.blocks,stable:i.blocks.slice(0,Math.max(0,i.blocks.length-1)),stableEnd:i.openFrom}),i.blocks};return{get parses(){return t},forget(t){e.delete(t)},parse(r,i){let a=e.get(r);if(a===void 0)return n(r,i);if(a.text===i)return a.blocks;if(!i.startsWith(a.text))return n(r,i);t+=1;let o=Fr(i.slice(a.stableEnd)),s=[...a.stable,...o.blocks];return e.set(r,{text:i,blocks:s,stable:s.slice(0,Math.max(0,s.length-1)),stableEnd:a.stableEnd+o.openFrom}),s}}}function Lr(e,t){switch(e.type){case`code`:return(0,j.jsx)(`pre`,{className:`mx-chat-md__pre`,"data-language":e.language||void 0,children:(0,j.jsx)(`code`,{children:e.body})},t);case`heading`:{let n=Math.min(6,Math.max(1,e.level)),r=`h${n}`;return(0,j.jsx)(r,{className:`mx-chat-md__heading`,"data-level":n,children:Dr(e.body,`${t}-`)},t)}case`quote`:return(0,j.jsx)(`blockquote`,{className:`mx-chat-md__quote`,children:Dr(e.body,`${t}-`)},t);case`list`:return e.ordered?(0,j.jsx)(`ol`,{className:`mx-chat-md__list`,children:e.items.map((e,n)=>(0,j.jsx)(`li`,{children:Dr(e,`${t}-${n}-`)},`${t}-${n}`))},t):(0,j.jsx)(`ul`,{className:`mx-chat-md__list`,children:e.items.map((e,n)=>(0,j.jsx)(`li`,{children:Dr(e,`${t}-${n}-`)},`${t}-${n}`))},t);case`table`:return(0,j.jsx)(`div`,{className:`mx-chat-md__table-scroll`,children:(0,j.jsxs)(`table`,{className:`mx-chat-md__table`,children:[(0,j.jsx)(`thead`,{children:(0,j.jsx)(`tr`,{children:e.header.map((e,n)=>(0,j.jsx)(`th`,{children:Dr(e,`${t}-h${n}-`)},`${t}-h${n}`))})}),(0,j.jsx)(`tbody`,{children:e.rows.map((e,n)=>(0,j.jsx)(`tr`,{children:e.map((e,r)=>(0,j.jsx)(`td`,{children:Dr(e,`${t}-r${n}c${r}-`)},`${t}-r${n}c${r}`))},`${t}-r${n}`))})]})},t);case`rule`:return(0,j.jsx)(`hr`,{className:`mx-chat-md__rule`},t);case`paragraph`:return(0,j.jsx)(`p`,{className:`mx-chat-md__paragraph`,children:Dr(e.body,`${t}-`)},t)}}function Rr(e){let t=e.cache.parse(e.cacheKey,e.text);return(0,j.jsx)(`div`,{className:`mx-chat-md`,children:t.map((e,t)=>Lr(e,`b${t}`))})}var zr=`This answer contains a structured block, and it is shown as plain text here because this app has not connected the content renderer.`,Br=`Mount <ContentIrRenderProvider host={…}> from @ai-matrx/content-ir-react above your chat to draw structured blocks properly.`;function Vr(e){let t=te(),n=e.announce;return(0,_.useEffect)(()=>{t===null&&n()},[t,n]),t===null?(0,j.jsxs)(`div`,{className:`mx-chat-content`,"data-mx-chat-content":`block-standin`,children:[(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:zr}),(0,j.jsx)(Rr,{text:e.request.text,cacheKey:`${e.request.messageId}:${e.request.kind}`,cache:e.cache})]}):(0,j.jsx)(`div`,{className:`mx-chat-content`,"data-mx-chat-content":`block`,"data-kind":e.request.kind,children:(0,j.jsx)(yr,{kind:e.request.kind,value:e.request.data??e.request.text,variant:`bare`})})}function Hr(e={}){let t=e.notifier??D(),n=e.cache??Ir(),r=!1,i=()=>{r||(r=!0,t.notify({level:`warning`,message:zr,remedy:Br}))};return function(e){return e.kind!==`markdown`&&e.kind!==`text`?(0,j.jsx)(Vr,{request:e,cache:n,notifier:t,announce:i}):e.text===``?null:(0,j.jsx)(`div`,{className:`mx-chat-content`,"data-mx-chat-content":`markdown`,children:(0,j.jsx)(Rr,{text:e.text,cacheKey:e.messageId,cache:n})})}}function Ur(e){return!!(/[zZ]$/.test(e)||/[+-]\d{2}(:?\d{2})?$/.test(e)||/\b(GMT|UTC)\b/i.test(e))}function Wr(e){let t=e.trim();return!t||!/\d{1,2}:\d{2}/.test(t)||Ur(t)?t:`${t.replace(` `,`T`)}Z`}function Gr(e){if(e==null)return null;if(e instanceof Date)return Number.isNaN(e.getTime())?null:e;if(typeof e==`number`){let t=new Date(e);return Number.isNaN(t.getTime())?null:t}if(typeof e!=`string`)return null;let t=Wr(e);if(!t)return null;let n=new Date(t);return Number.isNaN(n.getTime())?null:n}var Kr={year:`numeric`,month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`};function qr(e,t=Kr,n=`—`){let r=Gr(e);return r?r.toLocaleString(void 0,t):n}var Jr=[{limit:6e4,divisor:1e3,short:`s`,long:`second`},{limit:36e5,divisor:6e4,short:`m`,long:`minute`},{limit:864e5,divisor:36e5,short:`h`,long:`hour`},{limit:6048e5,divisor:864e5,short:`d`,long:`day`},{limit:2592e6,divisor:6048e5,short:`w`,long:`week`},{limit:31536e6,divisor:2592e6,short:`mo`,long:`month`}],Yr=[{unit:`year`,ms:31536e6},{unit:`month`,ms:2592e6},{unit:`week`,ms:6048e5},{unit:`day`,ms:864e5},{unit:`hour`,ms:36e5},{unit:`minute`,ms:6e4}];function Xr(e,t={}){let n=t.style??`short`,r=t.suffix===!1,i=t.now??Date.now(),a=Gr(e);if(!a)return t.fallbackToInput===!0&&typeof e==`string`?e:t.fallback??`—`;if(n===`intl`){let e=a.getTime()-i,t=Math.abs(e);if(t<6e4)return`just now`;let n=new Intl.RelativeTimeFormat(void 0,{numeric:`auto`});for(let{unit:r,ms:i}of Yr)if(t>=i)return n.format(Math.trunc(e/i),r);return`just now`}let o=i-a.getTime(),s=o<0;if(s&&-o<6e4)return`just now`;let c=Math.abs(o);for(let e of Jr)if(c<e.limit){let t=Math.max(1,Math.floor(c/e.divisor)),i=n===`long`?`${t} ${e.long}${t===1?``:`s`}`:`${t}${e.short}`;return r?i:s?`in ${i}`:`${i} ago`}return(t.absolute??(r?`date`:`datetime`))===`date`?a.toLocaleDateString():qr(a)}var Zr=[`B`,`KB`,`MB`,`GB`,`TB`,`PB`];function Qr(e,t={}){let n=t.fallback??`—`;if(e==null||!Number.isFinite(e)||e<0)return n;if(e<1024)return`${Math.round(e)} B`;let r=e,i=0;for(;r>=1024&&i<Zr.length-1;)r/=1024,i+=1;return`${r>=10?String(Math.round(r)):r.toFixed(1)} ${Zr[i]}`}function $r(e){return typeof e==`number`&&Number.isFinite(e)}function ei(e,t={}){let{digits:n=2,unknown:r=`—`}=t;if(!$r(e))return r;let i;if(n===`adaptive`||n===`trim`){let t=Math.abs(e);i=t===0||t>=1?2:t>=.01?4:6}else i=n;return`$${e.toLocaleString(`en-US`,{minimumFractionDigits:n===`trim`?Math.min(2,i):i,maximumFractionDigits:i})}`}var ti=[``,`k`,`M`,`B`,`T`];function ni(e,t={}){let{unknown:n=`—`,style:r=`plain`,locale:i}=t;if(!$r(e))return n;if(r!==`compact`)return e.toLocaleString(i);let a=e<0?`-`:``,o=Math.abs(e);if(o<1e3)return`${a}${Math.round(o)}`;let s=0;for(;o>=1e3&&s<ti.length-1;)o/=1e3,s+=1;let c=o>=10?Math.round(o):Number(o.toFixed(1));return c>=1e3&&s<ti.length-1&&(o/=1e3,s+=1,c=o>=10?Math.round(o):Number(o.toFixed(1))),`${a}${o>=10?String(c):c.toFixed(1)}${ti[s]}`}var ri=`Attachments aren't set up here, so this file has not been sent.`,ii="Give <ChatComposerProvider> a `files` port (your upload service) to attach files to a message.";function ai(e){let t=!1;return{available:!1,upload(){return t||(t=!0,e.notify({level:`warning`,message:ri,remedy:ii})),Promise.reject(Error(ri))}}}function oi(e,t){return`${e} is larger than the ${Qr(t)} limit for this chat, so it has not been attached.`}function si(e){return ue(e)||`Working…`}function ci(e){let t=new Set;return{request(n){if(t.size===0)return e.notify({level:`warning`,message:`There is nowhere to put your message back, so it has not been restored for you.`,remedy:`Copy your message from the conversation above and send it again, or mount this transcript inside a chat that has a message box.`}),!1;for(let e of t)e(n);return!0},subscribe(e){return t.add(e),()=>{t.delete(e)}}}}var li=(0,_.createContext)(null);function ui(e){let{thread:t,ports:n,slots:r,children:i}=e,[a]=(0,_.useState)(()=>{let e=D();return{notifier:e,prefs:k(e)}}),o=n?.notifier??a.notifier,s=(0,_.useRef)(null);(s.current===null||s.current.notifier!==o)&&(s.current={notifier:o,bus:ci(o),renderContent:Hr({notifier:o}),files:ai(o)});let c=s.current.bus,l=s.current.renderContent,u=s.current.files,d=(0,_.useMemo)(()=>({thread:t,ports:{renderContent:n?.renderContent??l,notifier:o,prefs:n?.prefs??a.prefs,files:n?.files??u,voice:n?.voice??null,toolLabel:n?.toolLabel??si,modelPicker:n?.modelPicker??null,quickset:n?.quickset??null},slots:r??{},retry:c}),[t,n?.renderContent,n?.prefs,n?.files,n?.voice,n?.toolLabel,n?.modelPicker,n?.quickset,o,r,c,l,u,a.prefs]),f=(0,_.useRef)(t);return(0,_.useEffect)(()=>{if(f.current===t)return;let e=f.current.getSnapshot().status;(e===`streaming`||e===`submitted`)&&o.notify({level:`warning`,message:`The previous answer was still arriving when this chat switched conversations.`,remedy:`Stop the answer before switching, or the run keeps going in the background.`}),f.current=t},[t,o]),(0,j.jsx)(li.Provider,{value:d,children:i})}function di(){let e=(0,_.useContext)(li);if(e===null)throw Error(`[@ai-matrx/chat] This component must be rendered inside <ChatProvider thread={…}>. Wrap your chat surface in one, passing a thread from createChatThread() or createExternalThreadSource().`);return e}function fi(){let{thread:e}=di(),t=(0,_.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot),n=(0,_.useCallback)((t,n)=>e.send(n===void 0?{text:t}:{text:t,fileIds:n}),[e]),r=(0,_.useCallback)(()=>e.cancel(),[e]);return(0,_.useMemo)(()=>({snapshot:t,messages:t.messages,status:t.status,isBusy:t.status===`submitted`||t.status===`streaming`,conversationId:t.conversationId,ephemeral:t.ephemeral,ephemeralReason:t.ephemeralReason,error:t.error,send:n,cancel:r}),[t,n,r])}function pi(e){let{thread:t}=di(),n=(0,_.useCallback)(n=>t.subscribeToMessage(e,n),[t,e]),r=(0,_.useCallback)(()=>t.getMessageSnapshot(e),[t,e]);return(0,_.useSyncExternalStore)(n,r,r)}function mi(){return di().thread.features}function hi(){return di().ports}function gi(){return di().slots}var _i=`ai-matrx.chat.draft.`;function vi(){let{thread:e,ports:t,retry:n}=di(),r=e.features,i=(0,_.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot),a=i.conversationId,o=i.status===`submitted`||i.status===`streaming`,s=`${_i}${a??`new`}`,[c,l]=(0,_.useState)(()=>r.retainDrafts?t.prefs.get(s)??``:``),[u,d]=(0,_.useState)(!1),f=(0,_.useRef)(s);(0,_.useEffect)(()=>{if(f.current===s)return;let e=f.current;if(f.current=s,!r.retainDrafts)return;let n=t.prefs.get(e);if(n!==null&&n!==``){t.prefs.set(s,n),t.prefs.remove(e),l(n);return}l(t.prefs.get(s)??``)},[s,r.retainDrafts,t.prefs]);let p=(0,_.useCallback)(e=>{l(e),d(!1),r.retainDrafts&&(e===``?t.prefs.remove(f.current):t.prefs.set(f.current,e))},[r.retainDrafts,t.prefs]);(0,_.useEffect)(()=>n.subscribe(e=>{l(e),d(!0),r.retainDrafts&&t.prefs.set(f.current,e)}),[n,r.retainDrafts,t.prefs]);let m=(0,_.useCallback)(async()=>{let n=c.trim();if(n===``||o&&!r.sendWhileBusy)return null;l(``),d(!1),r.retainDrafts&&t.prefs.remove(f.current);let i=await e.send({text:n});return i.accepted||(l(n),r.retainDrafts&&t.prefs.set(f.current,n)),i},[c,o,e,r.retainDrafts,r.sendWhileBusy,t.prefs]),h=(0,_.useCallback)(()=>e.cancel(),[e]),g=(0,_.useCallback)(t=>{if(t.key===`Escape`){if(!o)return;t.preventDefault(),e.cancel();return}if(t.key!==`Enter`)return;let n=t.metaKey||t.ctrlKey;(r.sendKey===`enter`?!t.shiftKey&&!n:n)&&(t.preventDefault(),m())},[r.sendKey,o,m,e]);return{text:c,setText:p,canSend:c.trim()!==``&&(!o||r.sendWhileBusy),isBusy:o,send:m,stop:h,onKeyDown:g,restoredFromFailure:u}}function yi(e,t){let n=e.findIndex(e=>e.id===t);if(n<=0)return``;for(let t=n-1;t>=0;--t){let n=e[t];if(n&&n.role===`user`)return C(n)}return``}function bi(){return(0,j.jsx)(`svg`,{className:`mx-chat-chevron`,width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,children:(0,j.jsx)(`path`,{d:`M6 3.5 10.5 8 6 12.5`})})}function xi(){return(0,j.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,children:(0,j.jsx)(`path`,{d:`M8 3v10M3.5 8.5 8 13l4.5-4.5`})})}var Si=Object.defineProperty,Ci=(e,t)=>Si(e,`name`,{value:t,configurable:!0}),wi=!!(typeof window<`u`&&window.document&&window.document.createElement);function V(e,t,{checkForDefaultPrevented:n=!0}={}){return Ci(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}Ci(V,`composeEventHandlers`);function Ti(e){if(!wi)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}Ci(Ti,`getOwnerWindow`);function Ei(e){if(!wi)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}Ci(Ei,`getOwnerDocument`);function Di(e,t=!1){let{activeElement:n}=Ei(e);if(!n?.nodeName)return null;if(Oi(n)&&n.contentDocument)return Di(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=Ei(n).getElementById(e);if(t)return t}}return n}Ci(Di,`getActiveElement`);function Oi(e){return e.tagName===`IFRAME`}Ci(Oi,`isFrame`);var ki=Object.defineProperty,Ai=(e,t)=>ki(e,`name`,{value:t,configurable:!0});function ji(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Ai(ji,`setRef`);function Mi(...e){return t=>{let n=!1,r=e.map(e=>{let r=ji(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():ji(e[t],null)}}}}Ai(Mi,`composeRefs`);function H(...e){return _.useCallback(Mi(...e),e)}Ai(H,`useComposedRefs`);var Ni=Object.defineProperty,Pi=(e,t)=>Ni(e,`name`,{value:t,configurable:!0});function Fi(e,t){let n=_.createContext(t);n.displayName=e+`Context`;let r=Pi(e=>{let{children:t,...r}=e,i=_.useMemo(()=>r,Object.values(r));return(0,j.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=_.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return Pi(i,`useContext`),[r,i]}Pi(Fi,`createContext`);function Ii(e,t=[]){let n=[];function r(t,r){let i=_.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=Pi(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=_.useMemo(()=>o,Object.values(o));return(0,j.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=_.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return Pi(s,`useContext`),[o,s]}Pi(r,`createContext`);let i=Pi(()=>{let t=n.map(e=>_.createContext(e));return Pi(function(n){let r=n?.[e]||t;return _.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,Li(i,...t)]}Pi(Ii,`createContextScope`);function Li(...e){let t=e[0];if(e.length===1)return t;let n=Pi(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return Pi(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return _.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}Pi(Li,`composeContextScopes`);var Ri=Object.defineProperty,zi=(e,t)=>Ri(e,`name`,{value:t,configurable:!0});function Bi(e){let t=_.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Yi(r)&&typeof $i==`function`&&(r=$i(r._payload)),_.Children.forEach(r,e=>{if(qi(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Yi(n)&&typeof $i==`function`&&(n=$i(n._payload)),a=Wi(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=_.cloneElement(a,void 0,s):!o&&_.Children.count(r)===1&&_.isValidElement(r)&&(a=r);let c=a?Ki(a):void 0,l=H(n,c);if(!a){if(r||r===0)throw Error(o?Qi(e):Zi(e));return r}let u=Gi(i,a.props??{});return a.type!==_.Fragment&&(u.ref=n?l:c),_.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}zi(Bi,`createSlot`);var Vi=Bi(`Slot`),Hi=Symbol.for(`radix.slottable`);function Ui(e){let t=zi(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=Hi,t}zi(Ui,`createSlottable`);var Wi=zi((e,t)=>{if(`child`in e.props){let t=e.props.child;return _.isValidElement(t)?_.cloneElement(t,void 0,e.props.children(t.props.children)):null}return _.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function Gi(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}zi(Gi,`mergeProps`);function Ki(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}zi(Ki,`getElementRef`);function qi(e){return _.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Hi}zi(qi,`isSlottable`);var Ji=Symbol.for(`react.lazy`);function Yi(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Ji&&`_payload`in e&&Xi(e._payload)}zi(Yi,`isLazyComponent`);function Xi(e){return typeof e==`object`&&!!e&&`then`in e}zi(Xi,`isPromiseLike`);var Zi=zi(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Qi=zi(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),$i=_.use,ea=c(m(),1),ta=Object.defineProperty,U=(e,t)=>ta(e,`name`,{value:t,configurable:!0}),W=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Bi(`Primitive.${t}`),r=_.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,j.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function na(e,t){e&&ea.flushSync(()=>e.dispatchEvent(t))}U(na,`dispatchDiscreteCustomEvent`);var ra=Object.defineProperty,ia=(e,t)=>ra(e,`name`,{value:t,configurable:!0});function aa(e){let t=_.useRef(e);return _.useEffect(()=>{t.current=e}),_.useMemo(()=>((...e)=>t.current?.(...e)),[])}ia(aa,`useCallbackRef`);var oa=Object.defineProperty,sa=(e,t)=>oa(e,`name`,{value:t,configurable:!0}),ca=`dismissableLayer.update`,la=`dismissableLayer.pointerDownOutside`,ua=`dismissableLayer.focusOutside`,da,fa=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),pa=_.forwardRef(sa(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=_.useContext(fa),[d,f]=_.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=_.useState({}),h=H(t,f),g=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v?g.indexOf(v):-1,b=d?g.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,C=_.useRef(!1),w=ga(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:C,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:_.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return S&&!t},[u.branches,S])}),T=_a(e=>{if(r&&C.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),E=d?b===g.length-1:!1,D=aa(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return _.useEffect(()=>{if(E)return p.addEventListener(`keydown`,D,{capture:!0}),()=>p.removeEventListener(`keydown`,D,{capture:!0})},[p,E,D]),_.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(da=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),va(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=da))}},[d,p,n,u]),_.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),va())},[d,u]),_.useEffect(()=>{let e=sa(()=>m({}),`handleUpdate`);return document.addEventListener(ca,e),()=>document.removeEventListener(ca,e)},[]),(0,j.jsx)(W.div,{...l,ref:h,style:{pointerEvents:x?S?`auto`:`none`:void 0,...e.style},onFocusCapture:V(e.onFocusCapture,T.onFocusCapture),onBlurCapture:V(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:V(e.onPointerDownCapture,w.onPointerDownCapture)})},`DismissableLayer`));function ma(){let e=_.useContext(fa),[t,n]=_.useState(null);return _.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}sa(ma,`useDismissableLayerSurface`);var ha=sa(()=>!0,`IS_TRUE`);function ga(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=ha}=t,s=aa(e),c=_.useRef(!1),l=_.useRef(!1),u=_.useRef(new Map),d=_.useRef(()=>{});return _.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}sa(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}sa(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}sa(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}sa(p,`handleInteractionBubble`);let m=sa(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||ya(la,s,p,{discrete:!0})};if(sa(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:sa(()=>c.current=!0,`onPointerDownCapture`)}}sa(ga,`usePointerDownOutside`);function _a(e,t=globalThis?.document){let n=aa(e),r=_.useRef(!1);return _.useEffect(()=>{let e=sa(e=>{e.target&&!r.current&&ya(ua,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:sa(()=>r.current=!0,`onFocusCapture`),onBlurCapture:sa(()=>r.current=!1,`onBlurCapture`)}}sa(_a,`useFocusOutside`);function va(){let e=new CustomEvent(ca);document.dispatchEvent(e)}sa(va,`dispatchUpdate`);function ya(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?na(i,a):i.dispatchEvent(a)}sa(ya,`handleAndDispatchCustomEvent`);var ba=globalThis?.document?_.useLayoutEffect:()=>{},xa=Object.defineProperty,Sa=(e,t)=>xa(e,`name`,{value:t,configurable:!0}),Ca=_.useId||(()=>void 0),wa=0;function Ta(e){let[t,n]=_.useState(Ca());return ba(()=>{e||n(e=>e??String(wa++))},[e]),e||(t?`radix-${t}`:``)}Sa(Ta,`useId`);var Ea=[`top`,`right`,`bottom`,`left`],Da=Math.min,Oa=Math.max,ka=Math.round,Aa=Math.floor,ja=e=>({x:e,y:e}),Ma={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Na(e,t,n){return Oa(e,Da(t,n))}function Pa(e,t){return typeof e==`function`?e(t):e}function Fa(e){return e.split(`-`)[0]}function Ia(e){return e.split(`-`)[1]}function La(e){return e===`x`?`y`:`x`}function Ra(e){return e===`y`?`height`:`width`}function za(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Ba(e){return La(za(e))}function Va(e,t,n){n===void 0&&(n=!1);let r=Ia(e),i=Ba(e),a=Ra(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Xa(o)),[o,Xa(o)]}function Ha(e){let t=Xa(e);return[Ua(e),t,Ua(t)]}function Ua(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Wa=[`left`,`right`],Ga=[`right`,`left`],Ka=[`top`,`bottom`],qa=[`bottom`,`top`];function Ja(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Ga:Wa:t?Wa:Ga;case`left`:case`right`:return t?Ka:qa;default:return[]}}function Ya(e,t,n,r){let i=Ia(e),a=Ja(Fa(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Ua)))),a}function Xa(e){let t=Fa(e);return Ma[t]+e.slice(t.length)}function Za(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Qa(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Za(e)}function $a(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function eo(e,t,n){let{reference:r,floating:i}=e,a=za(t),o=Ba(t),s=Ra(o),c=Fa(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Ia(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function to(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Pa(t,e),p=Qa(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=$a(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=$a(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var no=50,ro=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:to},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=eo(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<no&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=eo(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},io=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Pa(e,t)||{};if(l==null)return{};let d=Qa(u),f={x:n,y:r},p=Ba(i),m=Ra(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Da(d[_],T),D=Da(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=Na(E,k,O),j=!c.arrow&&Ia(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),ao=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Pa(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Fa(r),_=za(o),v=Fa(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Xa(o)]:Ha(o)),x=p!==`none`;!d&&x&&b.push(...Ya(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Va(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===za(t)||T.every(e=>za(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=za(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function oo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function so(e){return Ea.some(t=>e[t]>=0)}var co=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Pa(e,t);switch(i){case`referenceHidden`:{let e=oo(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:so(e)}}}case`escaped`:{let e=oo(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:so(e)}}}default:return{}}}}},lo=new Set([`left`,`top`]);async function uo(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Fa(n),s=Ia(n),c=za(n)===`y`,l=lo.has(o)?-1:1,u=a&&c?-1:1,d=Pa(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var fo=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await uo(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},po=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Pa(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=za(i),p=La(f),m=u[p],h=u[f],g=(e,t)=>Na(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},mo=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Pa(e,t),u={x:n,y:r},d=za(i),f=La(d),p=u[f],m=u[d],h=Pa(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=lo.has(Fa(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},ho=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Pa(e,t),c=await i.detectOverflow(t,s),l=Fa(n),u=Ia(n),d=za(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Da(p-c[m],g),y=Da(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Oa(c.left,c.right):S=p-2*Oa(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function go(){return typeof window<`u`}function _o(e){return bo(e)?(e.nodeName||``).toLowerCase():`#document`}function vo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function yo(e){return((bo(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function bo(e){return go()?e instanceof Node||e instanceof vo(e).Node:!1}function xo(e){return go()?e instanceof Element||e instanceof vo(e).Element:!1}function So(e){return go()?e instanceof HTMLElement||e instanceof vo(e).HTMLElement:!1}function Co(e){return!go()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof vo(e).ShadowRoot}function wo(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Fo(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function To(e){return/^(table|td|th)$/.test(_o(e))}function Eo(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Do=/transform|translate|scale|rotate|perspective|filter/,Oo=/paint|layout|strict|content/,ko=e=>!!e&&e!==`none`,Ao;function jo(e){let t=xo(e)?Fo(e):e;return ko(t.transform)||ko(t.translate)||ko(t.scale)||ko(t.rotate)||ko(t.perspective)||!No()&&(ko(t.backdropFilter)||ko(t.filter))||Do.test(t.willChange||``)||Oo.test(t.contain||``)}function Mo(e){let t=Lo(e);for(;So(t)&&!Po(t);){if(jo(t))return t;if(Eo(t))return null;t=Lo(t)}return null}function No(){return Ao??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Ao}function Po(e){return/^(html|body|#document)$/.test(_o(e))}function Fo(e){return vo(e).getComputedStyle(e)}function Io(e){return xo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Lo(e){if(_o(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Co(e)&&e.host||yo(e);return Co(t)?t.host:t}function Ro(e){let t=Lo(e);return Po(t)?(e.ownerDocument||e).body:So(t)&&wo(t)?t:Ro(t)}function G(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Ro(e),i=r===e.ownerDocument?.body,a=vo(r);if(i){let e=zo(a);return t.concat(a,a.visualViewport||[],wo(r)?r:[],e&&n?G(e):[])}return t.concat(r,G(r,[],n))}function zo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Bo(e){let t=Fo(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=So(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=ka(n)!==a||ka(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Vo(e){return xo(e)?e:e.contextElement}function Ho(e){let t=Vo(e);if(!So(t))return ja(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Bo(t),o=(a?ka(n.width):n.width)/r,s=(a?ka(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Uo=ja(0);function Wo(e){let t=vo(e);return!No()||!t.visualViewport?Uo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Go(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===vo(e)}function Ko(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Vo(e),o=ja(1);t&&(r?xo(r)&&(o=Ho(r)):o=Ho(e));let s=Go(a,n,r)?Wo(a):ja(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=vo(a),t=xo(r)?vo(r):r,n=e,i=zo(n);for(;i&&t!==n;){let e=Ho(i),t=i.getBoundingClientRect(),r=Fo(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=vo(i),i=zo(n)}}return $a({width:u,height:d,x:c,y:l})}function qo(e,t){let n=Io(e).scrollLeft;return t?t.left+n:Ko(yo(e)).left+n}function Jo(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-qo(e,n),y:n.top+t.scrollTop}}function Yo(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=yo(r),s=t?Eo(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ja(1),u=ja(0),d=So(r);if((d||!a)&&((_o(r)!==`body`||wo(o))&&(c=Io(r)),d)){let e=Ko(r);l=Ho(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Jo(o,c):ja(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Xo(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Zo(e){let t=Io(e),n=e.ownerDocument.body,r=Oa(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Oa(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+qo(e),o=-t.scrollTop;return Fo(n).direction===`rtl`&&(a+=Oa(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Qo=25;function $o(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=vo(e),a=yo(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!No()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(qo(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Qo&&(s-=o)}return{width:s,height:c,x:l,y:u}}function es(e,t){let n=Ko(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ho(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ts(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=$o(e,n,t);else if(t===`document`)r=Zo(yo(e));else if(xo(t))r=es(t,n);else{let n=Wo(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return $a(r)}function ns(e,t){let n=t.get(e);if(n)return n;let r=G(e,[],!1).filter(e=>xo(e)&&_o(e)!==`body`),i=null,a=Fo(e).position===`fixed`,o=a?Lo(e):e;for(;xo(o)&&!Po(o);){let e=Fo(o),t=jo(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Lo(o)}return t.set(e,r),r}function rs(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Eo(t)?[]:ns(t,this._c):[].concat(n),r],o=ts(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=ts(t,a[e],i);s=Oa(n.top,s),c=Da(n.right,c),l=Da(n.bottom,l),u=Oa(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function is(e){let{width:t,height:n}=Bo(e);return{width:t,height:n}}function as(e,t,n){let r=So(t),i=yo(t),a=n===`fixed`,o=Ko(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=ja(0);if((r||!a)&&((_o(t)!==`body`||wo(i))&&(s=Io(t)),r)){let e=Ko(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=qo(i));let l=i&&!r&&!a?Jo(i,s):ja(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function os(e){return Fo(e).position===`static`}function ss(e,t){if(!So(e)||Fo(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return yo(e)===n&&(n=n.ownerDocument.body),n}function cs(e,t){let n=vo(e);if(Eo(e))return n;if(!So(e)){let t=Lo(e);for(;t&&!Po(t);){if(xo(t)&&!os(t))return t;t=Lo(t)}return n}let r=ss(e,t);for(;r&&To(r)&&os(r);)r=ss(r,t);return r&&Po(r)&&os(r)&&!jo(r)?n:r||Mo(e)||n}var ls=async function(e){let t=this.getOffsetParent||cs,n=this.getDimensions,r=await n(e.floating);return{reference:as(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function us(e){return Fo(e).direction===`rtl`}var ds={convertOffsetParentRelativeRectToViewportRelativeRect:Yo,getDocumentElement:yo,getClippingRect:rs,getOffsetParent:cs,getElementRects:ls,getClientRects:Xo,getDimensions:is,getScale:Ho,isElement:xo,isRTL:us};function fs(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ps(e,t,n){let r=null,i,a=yo(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Aa(d),h=Aa(a.clientWidth-(u+f)),g=Aa(a.clientHeight-(d+p)),_=Aa(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Oa(0,Da(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!fs(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=vo(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function ms(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Vo(e),u=i||a?[...l?G(l):[],...t?G(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?ps(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Ko(e):null;c&&g();function g(){let t=Ko(e);h&&!fs(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var hs=fo,gs=po,_s=ao,vs=ho,ys=co,bs=io,xs=mo,Ss=(e,t,n)=>{let r=new Map,i=n??{},a={...ds,...i.platform,_c:r};return ro(e,t,{...i,platform:a})},Cs=typeof document<`u`?_.useLayoutEffect:function(){};function ws(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ws(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!ws(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Ts(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Es(e,t){let n=Ts(e);return Math.round(t*n)/n}function Ds(e){let t=_.useRef(e);return Cs(()=>{t.current=e}),t}function Os(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=_.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=_.useState(r);ws(f,r)||p(r);let[m,h]=_.useState(null),[g,v]=_.useState(null),y=_.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),b=_.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=a||m,S=o||g,C=_.useRef(null),w=_.useRef(null),T=_.useRef(u),E=c!=null,D=Ds(c),O=Ds(i),k=Ds(l),A=_.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),Ss(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!ws(T.current,t)&&(T.current=t,ea.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);Cs(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=_.useRef(!1);Cs(()=>(j.current=!0,()=>{j.current=!1}),[]),Cs(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=_.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=_.useMemo(()=>({reference:x,floating:S}),[x,S]),P=_.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=Es(N.floating,u.x),r=Es(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Ts(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return _.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:P}),[u,A,M,N,P])}var ks=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:bs({element:r.current,padding:i}).fn(n):r?bs({element:r,padding:i}).fn(n):{}}}},As=(e,t)=>{let n=hs(e);return{name:n.name,fn:n.fn,options:[e,t]}},js=(e,t)=>{let n=gs(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ms=(e,t)=>({fn:xs(e).fn,options:[e,t]}),Ns=(e,t)=>{let n=_s(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ps=(e,t)=>{let n=vs(e);return{name:n.name,fn:n.fn,options:[e,t]}},Fs=(e,t)=>{let n=ys(e);return{name:n.name,fn:n.fn,options:[e,t]}},Is=(e,t)=>{let n=ks(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ls=Object.defineProperty,Rs=(e,t)=>Ls(e,`name`,{value:t,configurable:!0});function zs(e){let[t,n]=_.useState(void 0);return ba(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}n(void 0)},[e]),t}Rs(zs,`useSize`);var Bs=Object.defineProperty,Vs=(e,t)=>Bs(e,`name`,{value:t,configurable:!0}),Hs=`Popper`,[Us,Ws]=Ii(Hs),[Gs,Ks]=Us(Hs),qs=Vs(e=>{let{__scopePopper:t,children:n}=e,[r,i]=_.useState(null),[a,o]=_.useState(void 0);return(0,j.jsx)(Gs,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),Js=`PopperAnchor`,Ys=_.forwardRef(Vs(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=Ks(Js,n),o=_.useRef(null),s=a.onAnchorChange,c=H(t,_.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=_.useRef(null);_.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&nc(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,j.jsx)(W.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),Xs=`PopperContent`,[Zs,Qs]=Us(Xs),$s=_.forwardRef(Vs(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=Ks(Xs,n),[v,y]=_.useState(null),b=H(t,y),[x,S]=_.useState(null),C=zs(x),w=C?.width??0,T=C?.height??0,E=r+(a===`center`?``:`-`+a),D=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},O=Array.isArray(l)?l:[l],k=O.length>0,A={padding:D,boundary:O.filter(ec),altBoundary:k},{refs:M,floatingStyles:N,placement:P,isPositioned:F,middlewareData:I}=Os({strategy:`fixed`,placement:E,whileElementsMounted:Vs((...e)=>ms(...e,{animationFrame:p===`always`}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[As({mainAxis:i+T,alignmentAxis:o}),c&&js({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?Ms():void 0,...A}),c&&Ns({...A}),Ps({...A,apply:Vs(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),x&&Is({element:x,padding:s}),tc({arrowWidth:w,arrowHeight:T}),f&&Fs({strategy:`referenceHidden`,...A,boundary:k?A.boundary:void 0})]}),L=g.setPlacementState;ba(()=>(L(P),()=>{L(void 0)}),[P,L]);let[ee,te]=nc(P),ne=aa(m);ba(()=>{F&&ne?.()},[F,ne]);let R=I.arrow?.x,re=I.arrow?.y,ie=I.arrow?.centerOffset!==0,[ae,oe]=_.useState();return ba(()=>{v&&oe(window.getComputedStyle(v).zIndex)},[v]),(0,j.jsx)(`div`,{ref:M.setFloating,"data-radix-popper-content-wrapper":``,style:{...N,transform:F?N.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ae,"--radix-popper-transform-origin":[I.transformOrigin?.x,I.transformOrigin?.y].join(` `),...I.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,j.jsx)(Zs,{scope:n,placedSide:ee,placedAlign:te,onArrowChange:S,arrowX:R,arrowY:re,shouldHideArrow:ie,children:(0,j.jsx)(W.div,{"data-side":ee,"data-align":te,...h,ref:b,style:{...h.style,animation:F?h.style?.animation:`none`}})})})},`PopperContent`));function ec(e){return e!==null}Vs(ec,`isNotNull`);var tc=Vs(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=nc(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function nc(e){let[t,n=`center`]=e.split(`-`);return[t,n]}Vs(nc,`getSideAndAlignFromPlacement`);var rc=qs,ic=Ys,ac=$s,oc=Object.defineProperty,sc=_.forwardRef(((e,t)=>oc(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=_.useState(!1);ba(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?ea.createPortal((0,j.jsx)(W.div,{...r,ref:t}),o):null},`Portal`)),cc=Object.defineProperty,lc=(e,t)=>cc(e,`name`,{value:t,configurable:!0});function uc(e,t){return _.useReducer((e,n)=>t[e][n]??e,e)}lc(uc,`useStateMachine`);var dc=lc(e=>{let{present:t,children:n}=e,r=fc(t),i=typeof n==`function`?n({present:r.isPresent}):_.Children.only(n),a=mc(r.ref,gc(i));return typeof n==`function`||r.isPresent?_.cloneElement(i,{ref:a}):null},`Presence`);function fc(e){let[t,n]=_.useState(),r=_.useRef(null),i=_.useRef(e),a=_.useRef(`none`),o=_.useRef(void 0),[s,c]=uc(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return _.useEffect(()=>{s===`mounted`?(a.current=o.current??hc(r.current),o.current=void 0):a.current=`none`},[s]),ba(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=hc(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),ba(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=lc(a=>{let o=hc(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=lc(e=>{e.target===t&&(a.current=hc(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:_.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=hc(t)}else r.current=null;n(e)},[])}}lc(fc,`usePresence`);function pc(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}lc(pc,`setRef`);function mc(...e){let t=_.useRef(e);return t.current=e,_.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=pc(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():pc(n[e],null)}}},[])}lc(mc,`useStableComposedRefs`);function hc(e){return e?.animationName||`none`}lc(hc,`getAnimationName`);function gc(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}lc(gc,`getElementRef`);var _c=Object.defineProperty,vc=(e,t)=>_c(e,`name`,{value:t,configurable:!0}),yc=_.useEffectEvent,bc=_.useInsertionEffect;function xc(e){if(typeof yc==`function`)return yc(e);let t=_.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof bc==`function`?bc(()=>{t.current=e}):ba(()=>{t.current=e}),_.useMemo(()=>((...e)=>t.current?.(...e)),[])}vc(xc,`useEffectEvent`);var Sc=Object.defineProperty,Cc=(e,t)=>Sc(e,`name`,{value:t,configurable:!0}),wc=_.useInsertionEffect||ba;function Tc({prop:e,defaultProp:t,onChange:n=Cc(()=>{},`onChange`),caller:r}){let[i,a,o]=Ec({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,_.useCallback(t=>{if(s){let n=Dc(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}Cc(Tc,`useControllableState`);function Ec({defaultProp:e,onChange:t}){let[n,r]=_.useState(e),i=_.useRef(n),a=_.useRef(t);return wc(()=>{a.current=t},[t]),_.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}Cc(Ec,`useUncontrolledState`);function Dc(e){return typeof e==`function`}Cc(Dc,`isFunction`);var Oc=Symbol(`RADIX:SYNC_STATE`);function kc(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=xc(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=_.useReducer((t,n)=>{if(n.type===Oc)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=_.useRef(p);_.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=_.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return _.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:Oc,state:i})},[i,d.state,c]),[h,f]}Cc(kc,`useControllableStateReducer`);var Ac=Object.defineProperty,jc=(e,t)=>Ac(e,`name`,{value:t,configurable:!0}),Mc=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),Nc=_.forwardRef(jc(function(e,t){return(0,j.jsx)(W.span,{...e,ref:t,style:{...Mc,...e.style}})},`VisuallyHidden`)),Pc=Object.defineProperty,Fc=(e,t)=>Pc(e,`name`,{value:t,configurable:!0}),[Ic,Lc]=Ii(`Tooltip`,[Ws]),Rc=Ws(),zc=`TooltipProvider`,Bc=700,Vc=`tooltip.open`,[Hc,Uc]=Ic(zc),Wc=Fc(e=>{let{__scopeTooltip:t,delayDuration:n=Bc,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=_.useRef(!0),s=_.useRef(!1),c=_.useRef(0);return _.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,j.jsx)(Hc,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:_.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:_.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:_.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),Gc=`Tooltip`,[Kc,qc]=Ic(Gc),Jc=Fc(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=Uc(Gc,e.__scopeTooltip),l=Rc(t),[u,d]=_.useState(null),[f,p]=_.useState(void 0),m=Ta(),h=_.useRef(0),g=o??c.disableHoverableContent,v=s??c.delayDuration,y=_.useRef(!1),[b,x]=Tc({prop:r,defaultProp:i??!1,onChange:Fc(e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(Vc))):c.onClose(),a?.(e)},`onChange`),caller:Gc}),S=_.useMemo(()=>b?y.current?`delayed-open`:`instant-open`:`closed`,[b]),C=_.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y.current=!1,x(!0)},[x]),w=_.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x(!1)},[x]),T=_.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{y.current=!0,x(!0),h.current=0},v)},[v,x]);_.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]);let E=f??m;return(0,j.jsx)(rc,{...l,children:(0,j.jsx)(Kc,{scope:t,contentId:E,setContentId:p,open:b,stateAttribute:S,trigger:u,onTriggerChange:d,onTriggerEnter:_.useCallback(()=>{c.isOpenDelayedRef.current?T():C()},[c.isOpenDelayedRef,T,C]),onTriggerLeave:_.useCallback(()=>{g?w():(window.clearTimeout(h.current),h.current=0)},[w,g]),onOpen:C,onClose:w,disableHoverableContent:g,children:n})})},`Tooltip`),Yc=`TooltipTrigger`,Xc=_.forwardRef(Fc(function(e,t){let{__scopeTooltip:n,...r}=e,i=qc(Yc,n),a=Uc(Yc,n),o=Rc(n),s=H(t,_.useRef(null),i.onTriggerChange),c=_.useRef(!1),l=_.useRef(!1),u=_.useCallback(()=>c.current=!1,[]);return _.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,j.jsx)(ic,{asChild:!0,...o,children:(0,j.jsx)(W.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:V(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:V(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:V(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:V(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:V(e.onBlur,i.onClose),onClick:V(e.onClick,i.onClose)})})},`TooltipTrigger`)),Zc=`TooltipPortal`,[Qc,$c]=Ic(Zc,{forceMount:void 0}),el=Fc(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=qc(Zc,t);return(0,j.jsx)(Qc,{scope:t,forceMount:n,children:(0,j.jsx)(dc,{present:n||a.open,children:(0,j.jsx)(sc,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),tl=`TooltipContent`,nl=_.forwardRef(Fc(function(e,t){let n=$c(tl,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=qc(tl,e.__scopeTooltip);return(0,j.jsx)(dc,{present:r||o.open,children:o.disableHoverableContent?(0,j.jsx)(al,{side:i,...a,ref:t}):(0,j.jsx)(rl,{side:i,...a,ref:t})})},`TooltipContent`)),rl=_.forwardRef(Fc(function(e,t){let n=qc(tl,e.__scopeTooltip),r=Uc(tl,e.__scopeTooltip),i=_.useRef(null),a=H(t,i),[o,s]=_.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=_.useCallback(()=>{s(null),d(!1)},[d]),p=_.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=sl(r,ol(r,n.getBoundingClientRect())),a=cl(t.getBoundingClientRect()),o=ul([...i,...a]);s(o),d(!0)},[d]);return _.useEffect(()=>()=>f(),[f]),_.useEffect(()=>{if(c&&u){let e=Fc(e=>p(e,u),`handleTriggerLeave`),t=Fc(e=>p(e,c),`handleContentLeave`);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),_.useEffect(()=>{if(o){let e=Fc(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!ll(n,o);r?f():i&&(f(),l())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,j.jsx)(al,{...e,ref:a})},`TooltipContentHoverable`)),il=Ui(`TooltipContent`),al=_.forwardRef(Fc(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,l=qc(tl,n),u=Rc(n),{onClose:d}=l;_.useEffect(()=>(document.addEventListener(Vc,d),()=>document.removeEventListener(Vc,d)),[d]),_.useEffect(()=>{if(l.trigger){let e=Fc(e=>{e.target instanceof Node&&e.target.contains(l.trigger)&&d()},`handleScroll`);return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]);let{setContentId:f}=l;return ba(()=>(f(a),()=>{f(void 0)}),[a,f]),(0,j.jsx)(pa,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,j.jsxs)(ac,{"data-state":l.stateAttribute,role:i?void 0:`tooltip`,id:i?void 0:l.contentId,...u,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,j.jsx)(il,{children:r}),i?(0,j.jsx)(Nc,{id:l.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`));function ol(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}Fc(ol,`getExitSideFromRect`);function sl(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}Fc(sl,`getPaddedExitPoints`);function cl(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}Fc(cl,`getPointsFromRect`);function ll(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}Fc(ll,`isPointInPolygon`);function ul(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),dl(t)}Fc(ul,`getHull`);function dl(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}Fc(dl,`getHullPresorted`);var fl=Wc,pl=Jc,ml=Xc,hl=el,gl=nl;function _l(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=_l(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function vl(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=_l(e))&&(r&&(r+=` `),r+=t);return r}var yl=(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},bl=(e,t)=>({classGroupId:e,validator:t}),xl=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Sl=`-`,Cl=[],wl=`arbitrary..`,Tl=e=>{let t=Ol(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Dl(e);let n=e.split(Sl);return El(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?yl(i,t):t:i||Cl}return n[e]||Cl}}},El=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=El(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Sl):e.slice(t).join(Sl),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Dl=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?wl+r:void 0})(),Ol=e=>{let{theme:t,classGroups:n}=e;return kl(n,t)},kl=(e,t)=>{let n=xl();for(let r in e){let i=e[r];Al(i,n,r,t)}return n},Al=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];jl(i,t,n,r)}},jl=(e,t,n,r)=>{if(typeof e==`string`){Ml(e,t,n);return}if(typeof e==`function`){Nl(e,t,n,r);return}Pl(e,t,n,r)},Ml=(e,t,n)=>{let r=e===``?t:Fl(t,e);r.classGroupId=n},Nl=(e,t,n,r)=>{if(Il(e)){Al(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(bl(n,e))},Pl=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Al(o,Fl(t,a),n,r)}},Fl=(e,t)=>{let n=e,r=t.split(Sl),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=xl(),n.nextPart.set(t,i)),n=i}return n},Il=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Ll=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)}}},Rl=`!`,zl=`:`,Bl=[],Vl=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Hl=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===zl){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(Rl)?(c=s.slice(0,-1),l=!0):s.startsWith(Rl)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Vl(t,l,c,u)};if(t){let e=t+zl,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Vl(Bl,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Ul=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}},Wl=e=>({cache:Ll(e.cacheSize),parseClassName:Hl(e),sortModifiers:Ul(e),postfixLookupClassGroupIds:Gl(e),...Tl(e)}),Gl=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},Kl=/\s+/,ql=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Kl),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){l=t+(l.length>0?` `+l:l);continue}if(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?_+Rl:_,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},Jl=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Yl(n))&&(i&&(i+=` `),i+=r);return i},Yl=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Yl(e[r]))&&(n&&(n+=` `),n+=t);return n},Xl=(e,...t)=>{let n,r,i,a,o=o=>(n=Wl(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=ql(e,n);return i(e,a),a};return a=o,(...e)=>a(Jl(...e))},Zl=[],Ql=e=>{let t=t=>t[e]||Zl;return t.isThemeGetter=!0,t.themeKey=e,t},$l=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,eu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,tu=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,nu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ru=/\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$/,iu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,au=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ou=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,su=e=>tu.test(e),K=e=>!!e&&!Number.isNaN(Number(e)),cu=e=>!!e&&Number.isInteger(Number(e)),lu=e=>e.endsWith(`%`)&&K(e.slice(0,-1)),uu=e=>nu.test(e),du=()=>!0,fu=e=>ru.test(e)&&!iu.test(e),pu=()=>!1,mu=e=>au.test(e),hu=e=>ou.test(e),gu=e=>!q(e)&&!J(e),_u=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)),vu=e=>Nu(e,Lu,pu),q=e=>$l.test(e),yu=e=>Nu(e,Ru,fu),bu=e=>Nu(e,zu,K),xu=e=>Nu(e,Vu,du),Su=e=>Nu(e,Bu,pu),Cu=e=>Nu(e,Fu,pu),wu=e=>Nu(e,Iu,hu),Tu=e=>Nu(e,Hu,mu),J=e=>eu.test(e),Eu=e=>Pu(e,Ru),Du=e=>Pu(e,Bu),Ou=e=>Pu(e,Fu),ku=e=>Pu(e,Lu),Au=e=>Pu(e,Iu),ju=e=>Pu(e,Hu,!0),Mu=e=>Pu(e,Vu,!0),Nu=(e,t,n)=>{let r=$l.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Pu=(e,t,n=!1)=>{let r=eu.exec(e);return r?r[1]?t(r[1]):n:!1},Fu=e=>e===`position`||e===`percentage`,Iu=e=>e===`image`||e===`url`,Lu=e=>e===`length`||e===`size`||e===`bg-size`,Ru=e=>e===`length`,zu=e=>e===`number`,Bu=e=>e===`family-name`,Vu=e=>e===`number`||e===`weight`,Hu=e=>e===`shadow`,Uu=Xl(()=>{let e=Ql(`color`),t=Ql(`font`),n=Ql(`text`),r=Ql(`font-weight`),i=Ql(`tracking`),a=Ql(`leading`),o=Ql(`breakpoint`),s=Ql(`container`),c=Ql(`spacing`),l=Ql(`radius`),u=Ql(`shadow`),d=Ql(`inset-shadow`),f=Ql(`text-shadow`),p=Ql(`drop-shadow`),m=Ql(`blur`),h=Ql(`perspective`),g=Ql(`aspect`),_=Ql(`ease`),v=Ql(`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(),J,q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[J,q,c],T=()=>[su,`full`,`auto`,...w()],E=()=>[cu,`none`,`subgrid`,J,q],D=()=>[`auto`,{span:[`full`,cu,J,q]},cu,J,q],O=()=>[cu,`auto`,J,q],k=()=>[`auto`,`min`,`max`,`fr`,J,q],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()],N=()=>[su,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[s,su,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],F=()=>[su,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],I=()=>[e,J,q],L=()=>[...b(),Ou,Cu,{position:[J,q]}],ee=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],te=()=>[`auto`,`cover`,`contain`,ku,vu,{size:[J,q]}],ne=()=>[lu,Eu,yu],R=()=>[``,`none`,`full`,l,J,q],re=()=>[``,K,Eu,yu],ie=()=>[`solid`,`dashed`,`dotted`,`double`],ae=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],oe=()=>[K,lu,Ou,Cu],se=()=>[``,`none`,m,J,q],ce=()=>[`none`,K,J,q],le=()=>[`none`,K,J,q],z=()=>[K,J,q],ue=()=>[su,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[uu],breakpoint:[uu],color:[du],container:[uu],"drop-shadow":[uu],ease:[`in`,`out`,`in-out`],font:[gu],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[uu],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[uu],shadow:[uu],spacing:[`px`,K],text:[uu],"text-shadow":[uu],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,su,q,J,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,J,q]}],"container-named":[_u],columns:[{columns:[K,`auto`,q,J,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:[cu,`auto`,J,q]}],basis:[{basis:[su,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[K,su,`auto`,`initial`,`none`,q]}],grow:[{grow:[``,K,J,q]}],shrink:[{shrink:[``,K,J,q]}],order:[{order:[cu,`first`,`last`,`none`,J,q]}],"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:N()}],"inline-size":[{inline:[`auto`,...P()]}],"min-inline-size":[{"min-inline":[`auto`,...P()]}],"max-inline-size":[{"max-inline":[`none`,...P()]}],"block-size":[{block:[`auto`,...F()]}],"min-block-size":[{"min-block":[`auto`,...F()]}],"max-block-size":[{"max-block":[`none`,...F()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...N()]}],"font-size":[{text:[`base`,n,Eu,yu]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Mu,xu]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,lu,q]}],"font-family":[{font:[Du,Su,t]}],"font-features":[{"font-features":[q]}],"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,J,q]}],"line-clamp":[{"line-clamp":[K,`none`,J,bu]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,J,q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,J,q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ie(),`wavy`]}],"text-decoration-thickness":[{decoration:[K,`from-font`,`auto`,J,yu]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[K,`auto`,J,q]}],"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:[cu,J,q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,J,q]}],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`,J,q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:te()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},cu,J,q],radial:[``,J,q],conic:[``,cu,J,q]},Au,wu]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:R()}],"rounded-s":[{"rounded-s":R()}],"rounded-e":[{"rounded-e":R()}],"rounded-t":[{"rounded-t":R()}],"rounded-r":[{"rounded-r":R()}],"rounded-b":[{"rounded-b":R()}],"rounded-l":[{"rounded-l":R()}],"rounded-ss":[{"rounded-ss":R()}],"rounded-se":[{"rounded-se":R()}],"rounded-ee":[{"rounded-ee":R()}],"rounded-es":[{"rounded-es":R()}],"rounded-tl":[{"rounded-tl":R()}],"rounded-tr":[{"rounded-tr":R()}],"rounded-br":[{"rounded-br":R()}],"rounded-bl":[{"rounded-bl":R()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":re()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ie(),`hidden`,`none`]}],"divide-style":[{divide:[...ie(),`hidden`,`none`]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...ie(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[K,J,q]}],"outline-w":[{outline:[``,K,Eu,yu]}],"outline-color":[{outline:I()}],shadow:[{shadow:[``,`inner`,`none`,u,ju,Tu]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":[`none`,d,ju,Tu]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:re()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[K,yu]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":[`none`,f,ju,Tu]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[K,J,q]}],"mix-blend":[{"mix-blend":[...ae(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ae()}],"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":[K]}],"mask-image-linear-from-pos":[{"mask-linear-from":oe()}],"mask-image-linear-to-pos":[{"mask-linear-to":oe()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":oe()}],"mask-image-t-to-pos":[{"mask-t-to":oe()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":oe()}],"mask-image-r-to-pos":[{"mask-r-to":oe()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":oe()}],"mask-image-b-to-pos":[{"mask-b-to":oe()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":oe()}],"mask-image-l-to-pos":[{"mask-l-to":oe()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":oe()}],"mask-image-x-to-pos":[{"mask-x-to":oe()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":oe()}],"mask-image-y-to-pos":[{"mask-y-to":oe()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[J,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":oe()}],"mask-image-radial-to-pos":[{"mask-radial-to":oe()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"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":[K]}],"mask-image-conic-from-pos":[{"mask-conic-from":oe()}],"mask-image-conic-to-pos":[{"mask-conic-to":oe()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:te()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,J,q]}],filter:[{filter:[``,`none`,J,q]}],blur:[{blur:se()}],brightness:[{brightness:[K,J,q]}],contrast:[{contrast:[K,J,q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,ju,Tu]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:[``,K,J,q]}],"hue-rotate":[{"hue-rotate":[K,J,q]}],invert:[{invert:[``,K,J,q]}],saturate:[{saturate:[K,J,q]}],sepia:[{sepia:[``,K,J,q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,J,q]}],"backdrop-blur":[{"backdrop-blur":se()}],"backdrop-brightness":[{"backdrop-brightness":[K,J,q]}],"backdrop-contrast":[{"backdrop-contrast":[K,J,q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,K,J,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[K,J,q]}],"backdrop-invert":[{"backdrop-invert":[``,K,J,q]}],"backdrop-opacity":[{"backdrop-opacity":[K,J,q]}],"backdrop-saturate":[{"backdrop-saturate":[K,J,q]}],"backdrop-sepia":[{"backdrop-sepia":[``,K,J,q]}],"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`,J,q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[K,`initial`,J,q]}],ease:[{ease:[`linear`,`initial`,_,J,q]}],delay:[{delay:[K,J,q]}],animate:[{animate:[`none`,v,J,q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,J,q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":[`scale-3d`],skew:[{skew:z()}],"skew-x":[{"skew-x":z()}],"skew-y":[{"skew-y":z()}],transform:[{transform:[J,q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ue()}],"translate-x":[{"translate-x":ue()}],"translate-y":[{"translate-y":ue()}],"translate-z":[{"translate-z":ue()}],"translate-none":[`translate-none`],zoom:[{zoom:[cu,J,q]}],accent:[{accent:I()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:I()}],"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`,J,q]}],"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":I()}],"scrollbar-track-color":[{"scrollbar-track":I()}],"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`,J,q]}],fill:[{fill:[`none`,...I()]}],"stroke-w":[{stroke:[K,Eu,yu,bu]}],stroke:[{stroke:[`none`,...I()]}],"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 Y(...e){return Uu(vl(e))}var Wu=`matrx-motion-overlay`,Gu=`matrx-motion-popper`,Ku={top:`matrx-motion-sheet-top`,bottom:`matrx-motion-sheet-bottom`,left:`matrx-motion-sheet-left`,right:`matrx-motion-sheet-right`,center:`matrx-motion-sheet-center`},qu=`matrx-spin`;[...Object.values(Ku)];var Ju=Symbol.for(`ai-matrx.design-system.portal-container-context`),Yu=globalThis,Xu=Yu[Ju]??=_.createContext(void 0);function Zu({container:e,children:t}){return(0,j.jsx)(Xu.Provider,{value:e??void 0,children:t})}function X(e){let t=_.useContext(Xu);return e===void 0?t??void 0:e??void 0}var Z=`data-matrx-title`,Qu=`data-matrx-tooltip-trigger`,$u=350,ed=500,td=6,nd=8,rd=`matrx-tooltip matrx-title-tooltip matrx-motion-popper z-[10001] rounded-md border border-border bg-popover px-2.5 py-1 text-xs font-medium text-popover-foreground`,id=Symbol.for(`@ai-matrx/design-system/title-tooltips`),ad={get:e=>e[id],set:(e,t)=>{e[id]=t},delete:e=>{delete e[id]}};function od(e=typeof document>`u`?void 0:document){if(!e)return()=>{};let t=ad.get(e);t?t.count+=1:ad.set(e,{count:1,uninstall:sd(e)});let n=!1;return()=>{if(n)return;n=!0;let t=ad.get(e);t&&(--t.count,t.count<=0&&(t.uninstall(),ad.delete(e)))}}function sd(e){let t=e.defaultView,n=null,r=null,i,a=0,o=t?.HTMLElement,s=e=>{if(!o||!(e instanceof t.Node))return null;let n=e instanceof o?e:e.parentElement;if(!n)return null;let r=n.closest(`[title], [${Z}]`);return!r||!(r instanceof o)||r.closest(`[data-native-title]`)?null:r},c=e=>(e.getAttribute(`data-matrx-title`)??e.getAttribute(`title`)??``).trim(),l=e=>{let t=e.getAttribute(`title`);t!==null&&(e.setAttribute(Z,t),e.removeAttribute(`title`))},u=e=>{let t=e.getAttribute(Z);t!==null&&(e.hasAttribute(`title`)||e.setAttribute(`title`,t),e.removeAttribute(Z))},d=()=>r&&r.isConnected?r:(r=e.createElement(`div`),r.setAttribute(`role`,`tooltip`),r.setAttribute(`data-slot`,`title-tooltip`),r.className=rd,r.style.visibility=`hidden`,e.body.appendChild(r),r),f=e=>{let t=e.closest(`[data-title-side]`)?.getAttribute(`data-title-side`);return t===`bottom`||t===`left`||t===`right`?t:`top`},p=(e,n)=>{let r=t?.innerWidth??0,i=t?.innerHeight??0,a=e.getBoundingClientRect(),o=n.getBoundingClientRect(),s={top:a.top-td-o.height>=nd,bottom:a.bottom+td+o.height<=i-nd,left:a.left-td-o.width>=nd,right:a.right+td+o.width<=r-nd},c={top:`bottom`,bottom:`top`,left:`right`,right:`left`},l=f(e),u=s[l]?l:s[c[l]]?c[l]:l,d,p;u===`top`||u===`bottom`?(d=a.left+a.width/2-o.width/2,p=u===`top`?a.top-td-o.height:a.bottom+td):(p=a.top+a.height/2-o.height/2,d=u===`left`?a.left-td-o.width:a.right+td),d=Math.min(Math.max(d,nd),Math.max(nd,r-nd-o.width)),p=Math.min(Math.max(p,nd),Math.max(nd,i-nd-o.height)),n.style.transform=`translate(${Math.round(d)}px, ${Math.round(p)}px)`,n.setAttribute(`data-side`,u)},m=(e,n)=>{let r=e.getBoundingClientRect();if(r.width<=0||r.height<=0)return!1;for(let r=e;r;r=r===n?null:r.parentElement){let e=t?.getComputedStyle(r);if(!e||e.display===`none`||e.visibility===`hidden`||Number(e.opacity)===0)return!1}return!0},h=(n,r)=>{let i=e=>e.replace(/\s+/g,` `).trim().toLowerCase(),a=i(r);if(!a||!t)return!1;let o=e.createTreeWalker(n,t.NodeFilter.SHOW_TEXT);for(let e=o.nextNode();e;e=o.nextNode()){if(i(e.textContent??``)!==a)continue;let t=e.parentElement;if(t&&m(t,n)&&!(t.scrollWidth>t.clientWidth+1))return!0}return!1},g=(e,t)=>{if(n!==e||e.closest(`[data-matrx-tooltip-trigger]`))return;let r=c(e);if(!r||!e.isConnected||h(e,r))return;let i=d();i.textContent=r,i.style.visibility=`hidden`,i.setAttribute(`data-state`,t?`instant-open`:`delayed-open`),p(e,i),i.style.visibility=`visible`,e.id&&(i.id=`${e.id}-title-tooltip`)},_=()=>{i!==void 0&&clearTimeout(i),i=void 0,r&&r.style.visibility===`visible`&&(a=Date.now()),r&&(r.style.visibility=`hidden`,r.removeAttribute(`data-state`))},v=e=>{n!==e&&(y(),n=e,l(e),Date.now()-a<ed?g(e,!0):i=setTimeout(()=>g(e,!1),$u))},y=()=>{_(),n&&u(n),n=null},b=e=>{if(e.pointerType===`touch`)return;let t=s(e.target);t?v(t):n&&y()},x=e=>{if(!n)return;let r=e.relatedTarget;r instanceof t.Node&&n.contains(r)||y()},S=e=>{let t=s(e.target);if(!t)return;let n=!0;try{n=e.target.matches(`:focus-visible`)}catch{n=!0}n&&v(t)},C=e=>{if(!n)return;let r=e.relatedTarget;r instanceof t.Node&&n.contains(r)||y()},w=()=>y(),T=e=>{e.key===`Escape`&&y()};return e.addEventListener(`pointerover`,b,!0),e.addEventListener(`pointerout`,x,!0),e.addEventListener(`focusin`,S,!0),e.addEventListener(`focusout`,C,!0),e.addEventListener(`pointerdown`,w,!0),e.addEventListener(`keydown`,T,!0),e.addEventListener(`scroll`,w,!0),t?.addEventListener(`blur`,w),()=>{y(),e.removeEventListener(`pointerover`,b,!0),e.removeEventListener(`pointerout`,x,!0),e.removeEventListener(`focusin`,S,!0),e.removeEventListener(`focusout`,C,!0),e.removeEventListener(`pointerdown`,w,!0),e.removeEventListener(`keydown`,T,!0),e.removeEventListener(`scroll`,w,!0),t?.removeEventListener(`blur`,w),r?.remove(),r=null}}function cd({titleTooltips:e=!0,...t}){return _.useEffect(()=>{if(e)return od()},[e]),(0,j.jsx)(fl,{...t})}var ld=pl,ud=_.forwardRef((e,t)=>(0,j.jsx)(ml,{ref:t,[Qu]:``,...e}));ud.displayName=ml.displayName;var dd=_.forwardRef(({className:e,sideOffset:t=4,container:n,animated:r=!0,...i},a)=>{let o=X(n);return(0,j.jsx)(hl,{container:o??null,children:(0,j.jsx)(gl,{ref:a,"data-slot":`tooltip-content`,sideOffset:t,className:Y(`matrx-tooltip z-[10001] overflow-hidden rounded-md border border-border bg-popover px-2.5 py-1 text-xs font-medium text-popover-foreground`,r&&`matrx-motion-popper`,e),...i})})});dd.displayName=gl.displayName;function fd(...e){return e.filter(Boolean).join(` `).trim()}var pd=Symbol.for(`@ai-matrx/tap-target:guard`);function md(){return globalThis[pd]===!0}var hd=[`--matrx-tap-box`,`--matrx-tap-gap`,`--matrx-tap-pill-size`,`--matrx-tap-pill-sm-size`,`--matrx-tap-wide-size`,`--matrx-tap-icon-size`,`--matrx-tap-touch-min`,`--matrx-tap-target-size`],gd=[{scope:`[data-matrx-table][data-matrx-table-density]`,tokens:new Set([`--matrx-tap-target-size`,`--matrx-tap-pill-size`,`--matrx-tap-wide-size`,`--matrx-tap-pill-sm-size`,`--matrx-tap-icon-size`])},{scope:`[data-alchemy-trigger]`,tokens:new Set([`--matrx-tap-icon-size`])}],_d=gd[0].scope,vd=`.matrx-tap-target, .matrx-tap-group`,yd=/^(?:[^\s:]+:)*!?-?(?:\[&|scale|translate|h|w|size|min-h|min-w|max-h|max-w|p|px|py|ps|pe|pt|pb|pl|pr|m|mx|my|ms|me|mt|mb|ml|mr|gap|space-x|space-y|bg|rounded|border|ring|shadow|absolute|relative|fixed|sticky|inset|top|left|right|bottom|flex|grid|block|inline|hidden|z|shrink|grow|basis|self|order)(?:-|$|\[)/;function bd(e){if(!md()||!e)return null;let t=e.split(/\s+/).filter(e=>e&&yd.test(e));return t.length?`className is the glyph colour only — remove "${t.join(` `)}"`:null}function xd(e){let t=Number.parseFloat(e);return Number.isFinite(t)?t:0}function Sd(e){let t=typeof e.className==`string`?e.className.trim().split(/\s+/).slice(0,4).join(`.`):``;return`<${e.tagName.toLowerCase()}${t?`.${t}`:``}>`}function Cd(e,t){let n=t.getComputedStyle(e);return n.position===`absolute`||n.position===`fixed`||n.display===`none`}function wd(e){return e.matches(vd)?1:e.querySelectorAll(vd).length}function Td(e,t,n){let r=``,i=e=>{e!==t&&(e.nodeType===3?r+=e.textContent??``:e.nodeType===1&&!Cd(e,n)&&e.childNodes.forEach(i))};return e.childNodes.forEach(i),r.trim()}function Ed(e,t){if(e.matches(vd))return!0;if(wd(e)!==1)return!1;let n=e.querySelector(vd);return!Array.from(e.querySelectorAll(`input, select, textarea, button, a, [role='button']`)).some(e=>e!==n&&!n.contains(e))&&Td(e,n,t)===``}var Dd=null;function Od(e){let t=e.defaultView,n=t.getComputedStyle(e.documentElement),r=hd.map(e=>n.getPropertyValue(e)).join(`|`);if(Dd?.key===r)return Dd;let i=e.createElement(`div`);i.setAttribute(`aria-hidden`,`true`),i.style.cssText=`position:absolute;visibility:hidden;pointer-events:none;left:-9999px;top:0`,i.innerHTML=`<button class="matrx-tap-target"><div class="matrx-tap-pill"><svg class="matrx-tap-icon"></svg></div></button><button class="matrx-tap-target matrx-tap-target-sm"><div class="matrx-tap-pill matrx-tap-pill-sm"></div></button><button class="matrx-tap-target matrx-tap-target-inline"><div class="matrx-tap-pill matrx-tap-pill-inline"></div></button>`,e.body.appendChild(i);let[a,o,s]=Array.from(i.children);return Dd={key:r,target:a.offsetHeight,pill:a.firstElementChild.offsetHeight,icon:xd(t.getComputedStyle(a.querySelector(`svg`)).height),sm:o.offsetHeight,smPill:o.firstElementChild.offsetHeight,wide:s.firstElementChild.offsetHeight},i.remove(),Dd}function kd(e){let t=e.ownerDocument,n=t.defaultView;if(!n||!e.isConnected)return null;let r=n.getComputedStyle(e);if(r.display===`none`)return null;let i=n.getComputedStyle(t.documentElement),a=e.closest(_d)!==null,o=new Set;for(let t of hd){let n=r.getPropertyValue(t).trim();if(n!==i.getPropertyValue(t).trim()){if(!gd.some(n=>n.tokens.has(t)&&e.closest(n.scope)))return`${t} overridden to "${n}" — tap geometry is not configurable`;o.add(t)}}let s=e.classList.contains(`matrx-tap-target-sm`),c=/matrx-tap-target-(?:inline|mobile-icon-only)/.test(e.className),l=e.querySelector(`:scope > .matrx-tap-pill`),u=l?.querySelector(`.matrx-tap-icon`)??null,d=xd(r.minHeight)>=e.offsetHeight-.5||xd(r.minWidth)>=e.offsetWidth-.5;if(!a&&l&&!d){let r=Od(t),i=s?r.sm:r.target,a=s?[r.smPill]:c?[r.pill,r.wide]:[r.pill];if(Math.abs(e.offsetHeight-i)>.5)return`button is ${e.offsetHeight}px tall, canon is ${i}px`;if(!c&&Math.abs(e.offsetWidth-i)>.5)return`button is ${e.offsetWidth}px wide, canon is ${i}px`;if(!a.some(e=>Math.abs(l.offsetHeight-e)<=.5))return`pill is ${l.offsetHeight}px, canon is ${a.join(` or `)}px`;if(u&&!o.has(`--matrx-tap-icon-size`)){let e=xd(n.getComputedStyle(u).height);if(Math.abs(e-r.icon)>.5)return`glyph is ${e}px, canon is ${r.icon}px`}}let f=e;if(e.parentElement?.matches(`.matrx-tap-group-row, .matrx-tap-search-measure`)){let t=e.closest(`.matrx-tap-group`);if(t&&wd(e.parentElement)>1)return null;f=t??e}for(let e=0;e<2;e+=1){let e=f.parentElement;if(!e||e===t.body||Array.from(e.children).filter(e=>e!==f&&!Cd(e,n)).length>0||Td(e,f,n)!==``)break;let r=n.getComputedStyle(e),i=xd(r.marginLeft)+xd(r.marginRight)+xd(r.paddingLeft)+xd(r.paddingRight);if(i>.5)return`${Sd(e)} adds ${i}px around a tap button — tap buttons space themselves`;f=e}let p=f.parentElement;if(p){let e=n.getComputedStyle(p),t=/flex|grid/.test(e.display),r=Array.from(p.children).filter(e=>e!==f&&Ed(e,n));if(t&&r.length>0){let t=xd(e.display.includes(`grid`)||!e.flexDirection.startsWith(`column`)?e.columnGap:e.rowGap);if(t>.5)return`${Sd(p)} adds a ${t}px gap between tap buttons — remove it; tap buttons space themselves`}}return null}var Ad=`.matrx-glass-thin-border, .matrx-glass-interactive`;function jd(e){if(e.hasAttribute(`data-matrx-glass`))return!0;if(e.matches(`.matrx-tap-group`))return e.querySelector(`:scope > .matrx-tap-group-capsule.matrx-glass-thin-border`)!==null;if(e.matches(`.matrx-tap-target`))return e.querySelector(`:scope > .matrx-tap-pill:is(${Ad})`)!==null;let t=e.ownerDocument.defaultView;return t&&Ed(e,t)?jd(e.querySelector(vd)):!1}var Md=/^(auto|scroll|overlay)$/;function Nd(e,t){for(let n=e;n&&n!==e.ownerDocument.body;n=n.parentElement){if(n.hasAttribute(`data-matrx-glass-plane`))return!0;let r=t.getComputedStyle(n);if(r.position===`fixed`||r.position===`sticky`)return!0;if(n!==e&&(Md.test(r.overflowY)||Md.test(r.overflowX)))return!1}return!1}function Pd(e,t){if(e.getAttribute(`aria-hidden`)===`true`||Cd(e,t))return!1;let n=e.getBoundingClientRect();return n.width>1&&n.height>1}function Fd(e){let t=e.ownerDocument.defaultView;if(!t||!e.isConnected)return null;let n=e.closest(`.matrx-tap-group`)??e,r=jd(n);if(r&&!Nd(n,t))return`glass on a solid surface — glass only floats over moving content; use variant="transparent" (or a solid group)`;let i=n.parentElement;if(!i)return null;if(r){let e=Array.from(i.children).find(e=>e!==n&&Pd(e,t)&&!jd(e));if(e)return`glass beside non-glass ${Sd(e)} — make the row all glass or none`}let a=e.querySelector(`:scope > .matrx-tap-pill`)??n.querySelector(`.matrx-tap-group-capsule`);if(!a)return null;let o=xd(t.getComputedStyle(e).getPropertyValue(`--matrx-tap-gap`))||6,s=a.getBoundingClientRect();if(s.width===0)return null;for(let[e,r]of[[`after`,n.nextElementSibling],[`before`,n.previousElementSibling]]){if(!r||!Pd(r,t)||Ed(r,t)||jd(r))continue;let n=r.getBoundingClientRect();if(Math.abs(n.top+n.height/2-(s.top+s.height/2))>s.height)continue;let i=t.getComputedStyle(r),a=e===`after`?n.left+xd(i.paddingLeft)-s.right:s.left-(n.right-xd(i.paddingRight));if(a<o-.5)return`${Sd(r)} sits ${Math.round(a)}px from the pill — anything beside a tap button adds its own ${o/2}px (the box only carries ${o/2}px)`}return null}var Id=new Set;function Ld(e,t){e.setAttribute(`data-matrx-tap-violation`,t);let n=`${t}@${e.getAttribute(`aria-label`)??e.textContent??``}`;Id.has(n)||(Id.add(n),console.error(`[tap-target] ${t}`,e))}var Rd=new Set,zd=null,Bd=!1;function Vd(e){let t=kd(e);if(t){Ld(e,t);return}e.removeAttribute(`data-matrx-tap-violation`);let n=Fd(e);if(n){e.setAttribute(`data-matrx-tap-warning`,n);let t=`w:${n}@${e.getAttribute(`aria-label`)??``}`;Id.has(t)||(Id.add(t),console.error(`[tap-target] ${n}`,e))}else e.removeAttribute(`data-matrx-tap-warning`)}function Hd(e){Bd||(Bd=!0,e.addEventListener(`resize`,()=>{zd&&clearTimeout(zd),zd=setTimeout(()=>Rd.forEach(e=>e.isConnected?Vd(e):Rd.delete(e)),200)}))}function Ud(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function Wd(e,t){let n=(0,_.useRef)(null);return(0,_.useCallback)(r=>{if(Ud(e,r),n.current&&n.current!==r&&Rd.delete(n.current),n.current=r,!md()||!r)return;if(t){Ld(r,t);return}let i=r.ownerDocument.defaultView;i&&(Rd.add(r),Hd(i),i.requestAnimationFrame(()=>Vd(r)))},[e,t])}var Gd={default:`text-foreground`,muted:`text-muted-foreground group-hover/tap:text-foreground`,primary:`text-primary`,destructive:`text-destructive`,success:`text-success`,warning:`text-warning`,info:`text-info`},Kd={primary:{fill:`bg-primary group-hover/tap:bg-primary/85`,glyph:`text-primary-foreground`},destructive:{fill:`bg-destructive group-hover/tap:bg-destructive/85`,glyph:`text-destructive-foreground`},success:{fill:`bg-success group-hover/tap:bg-success/85`,glyph:`text-success-foreground`},warning:{fill:`bg-warning group-hover/tap:bg-warning/85`,glyph:`text-warning-foreground`},neutral:{fill:`bg-foreground group-hover/tap:bg-foreground/85`,glyph:`text-background`}},qd=typeof navigator<`u`&&/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent);function Jd(e){let t=e.toLowerCase().split(`+`),n=t.pop()??``;return{mod:t.includes(`mod`),shift:t.includes(`shift`),alt:t.includes(`alt`),key:n}}function Yd(e){let t=Jd(e),n=t.key.length===1?t.key.toUpperCase():t.key[0].toUpperCase()+t.key.slice(1);return qd?`${t.alt?`⌥`:``}${t.shift?`⇧`:``}${t.mod?`⌘`:``}${n}`:[t.mod&&`Ctrl`,t.alt&&`Alt`,t.shift&&`Shift`,n].filter(Boolean).join(`+`)}function Xd(e){let t=e;return!!t&&(t.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName))}function Zd(e,t){let n=Jd(t);return(e.metaKey||e.ctrlKey)!==n.mod||e.altKey!==n.alt||/^[a-z0-9]$|^[a-z]{2,}$/.test(n.key)&&e.shiftKey!==n.shift||!n.mod&&Xd(e.target)?!1:e.key.toLowerCase()===n.key}function Qd(e,t,n){(0,_.useEffect)(()=>{if(!e||!n)return;let r=n=>{if(!Zd(n,e))return;let r=t();r&&r.isConnected&&(n.preventDefault(),r.click())};return window.addEventListener(`keydown`,r),()=>window.removeEventListener(`keydown`,r)},[e,n,t])}function $d({badge:e}){return e===`dot`?(0,j.jsx)(`span`,{"aria-hidden":`true`,className:`matrx-tap-badge`,"data-dot":``}):e<=0?null:(0,j.jsx)(`span`,{"aria-hidden":`true`,className:`matrx-tap-badge`,children:e>99?`99+`:e})}function ef({className:e}){return(0,j.jsx)(`svg`,{className:e,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`,strokeWidth:2,"aria-hidden":`true`,children:(0,j.jsx)(`circle`,{className:qu,cx:`12`,cy:`12`,r:`9`,strokeDasharray:`28.27`,strokeDashoffset:`9`,strokeLinecap:`round`,style:{transformOrigin:`12px 12px`}})})}function tf(){return(0,j.jsx)(`svg`,{className:`matrx-tap-chevron`,"aria-hidden":`true`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,j.jsx)(`path`,{d:`m6 9 6 6 6-6`})})}function nf(e,t){return t?(0,j.jsxs)(`span`,{className:`matrx-tap-tooltip`,children:[e,(0,j.jsx)(`kbd`,{className:`matrx-tap-kbd`,children:Yd(t)})]}):e}var rf=Symbol.for(`@ai-matrx/tap-target:link-component`);function af(){return globalThis[rf]??null}var of=/^(https?:|mailto:|tel:)/i,sf=`matrx-tap-target group group/tap`,cf=`matrx-tap-target matrx-tap-target-sm group group/tap`;function lf({icon:e,children:t,strokeWidth:n=2,className:r}){return e?(0,_.isValidElement)(e)?(0,_.cloneElement)(e,{className:fd(r,e.props.className)}):(0,j.jsx)(`span`,{className:r,children:e}):(0,j.jsx)(`svg`,{className:r,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`,strokeWidth:n,strokeLinecap:`round`,strokeLinejoin:`round`,children:t})}function uf(e,t,n){let r=!!e;return t===`sm`?{outerClassName:r&&n?`matrx-tap-target matrx-tap-target-sm matrx-tap-target-mobile-icon-only-sm group group/tap`:r?`matrx-tap-target matrx-tap-target-sm matrx-tap-target-inline-sm group group/tap`:cf,inlineModifier:n?`matrx-tap-pill-mobile-icon-only-sm`:`matrx-tap-pill-inline-sm`}:{outerClassName:r&&n?`${sf} matrx-tap-target-mobile-icon-only`:r?`${sf} matrx-tap-target-inline`:sf,inlineModifier:n?`matrx-tap-pill-mobile-icon-only`:`matrx-tap-pill-inline`}}function df({label:e,pillClassName:t,iconClassName:n,labelClassName:r,inlineModifier:i,icon:a,children:o,strokeWidth:s=2,loading:c,chevron:l}){let u=c?(0,j.jsx)(ef,{className:n}):(0,j.jsx)(lf,{icon:a,strokeWidth:s,className:n,children:o}),d=e?`${t} ${i}`.trim():t;return e?(0,j.jsxs)(`div`,{className:d,children:[u,(0,j.jsx)(`span`,{className:r??`matrx-tap-label`,children:e}),l?(0,j.jsx)(tf,{}):null]}):(0,j.jsx)(`div`,{className:d,children:u})}function ff({size:e=`default`,colorClassName:t,pillClassName:n,iconClassName:r,labelClassName:i,icon:a,children:o,strokeWidth:s,label:c,mobileIconOnly:l=!1,onClick:u,as:d,htmlFor:f,ariaLabel:p,disabled:m,href:h,target:g,rel:v,prefetch:y,linkComponent:b,tooltip:x,tooltipSide:S,tooltipAlign:C,rest:w,buttonRef:T}){let{tone:E,badge:D,pressed:O,loading:k,disabledReason:A,shortcut:M,chevron:N,...P}=w??{},F=!!(m||A),I=A||(typeof x==`string`&&x?x:void 0)||p||c,L=x===!1,ee=Wd(T,(I?null:`every tap button needs a tooltip — pass ariaLabel`)??bd(t??P.className)??(P.style?`style is not supported on a tap button`:null)),te=(0,_.useRef)(null),ne=(0,_.useCallback)(e=>{te.current=e,ee(e)},[ee]);Qd(M,(0,_.useCallback)(()=>te.current,[]),!F&&!k);let R=E?Gd[E]:O&&!t?Gd.primary:null;R&&(r=`matrx-tap-icon ${R}`,i=`matrx-tap-label ${R}`),O&&(n=`${n} matrx-tap-pressed`);let{outerClassName:re,inlineModifier:ie}=uf(c,e,l),ae=l?`${i??`matrx-tap-label`} matrx-tap-label-mobile-icon-only`:i,oe=df({label:c,pillClassName:n,iconClassName:r,labelClassName:ae,inlineModifier:c?ie:``,icon:a,children:o,strokeWidth:s,loading:k,chevron:N}),se=pf({href:h,target:g,rel:v,prefetch:y,linkComponent:b,as:d,htmlFor:f,onClick:k?void 0:u,ariaLabel:c&&!l?void 0:p??c,disabled:F,outerClassName:re,title:L&&I?M?`${I} (${Yd(M)})`:I:void 0,children:(0,j.jsxs)(j.Fragment,{children:[oe,D===void 0?null:(0,j.jsx)($d,{badge:D})]}),rest:{...P,...O===void 0?{}:{"aria-pressed":O},...k?{"aria-busy":!0}:{},...M?{"aria-keyshortcuts":M.replace(/mod/i,`Meta`)}:{}},triggerRef:ne});return L||!I?se:mf(se,{tooltip:I,ariaLabel:I,disabled:F,tooltipSide:S,tooltipAlign:C,shortcut:M})}function pf({href:e,target:t,rel:n,prefetch:r,linkComponent:i,as:a,htmlFor:o,onClick:s,ariaLabel:c,disabled:l,outerClassName:u,children:d,rest:f,triggerRef:p,title:m}){let{style:h,...g}=f??{};if(l&&e)return(0,j.jsx)(`span`,{ref:p,"aria-disabled":`true`,"aria-label":c,title:m,className:`${u} opacity-40 pointer-events-none`,children:d});if(e){if(of.test(e))return(0,j.jsx)(`a`,{ref:p,href:e,target:t??`_blank`,rel:n??`noopener noreferrer`,"aria-label":c,title:m,className:u,children:d});let a=i??af();return a?(0,j.jsx)(a,{ref:p,href:e,target:t,rel:n,prefetch:r,"aria-label":c,title:m,className:u,children:d}):(0,j.jsx)(`a`,{ref:p,href:e,target:t,rel:n,"aria-label":c,title:m,className:u,children:d})}return a===`label`?(0,j.jsx)(`label`,{ref:p,htmlFor:o,"aria-label":c,title:m,className:u,children:d}):(0,j.jsx)(`button`,{ref:p,type:`button`,onClick:s,"aria-label":c,title:m,disabled:l,...g,className:u,children:d})}function mf(e,{tooltip:t,ariaLabel:n,disabled:r,tooltipSide:i=`top`,tooltipAlign:a=`center`,shortcut:o}){if(t===!1)return e;let s=typeof t==`string`&&t.length>0?t:n;return s?(0,j.jsxs)(ld,{children:[(0,j.jsx)(ud,{asChild:!0,children:r?(0,j.jsx)(`span`,{className:`inline-flex`,children:e}):e}),(0,j.jsx)(dd,{side:i,align:a,children:nf(s,o)})]}):e}var hf=(0,_.forwardRef)(function({icon:e,children:t,strokeWidth:n=2,onClick:r,className:i,as:a,htmlFor:o,ariaLabel:s,disabled:c,href:l,target:u,rel:d,prefetch:f,linkComponent:p,tooltip:m,tooltipSide:h,tooltipAlign:g,label:_,mobileIconOnly:v,...y},b){return ff({colorClassName:i,icon:e,children:t,strokeWidth:n,onClick:r,as:a,htmlFor:o,ariaLabel:s,disabled:c,href:l,target:u,rel:d,prefetch:f,linkComponent:p,tooltip:m,tooltipSide:h,tooltipAlign:g,label:_,mobileIconOnly:v,pillClassName:`matrx-tap-pill matrx-glass-thin-border`,iconClassName:`matrx-tap-icon ${i??`text-foreground`}`,rest:y,buttonRef:b})});(0,_.forwardRef)(function({icon:e,children:t,strokeWidth:n=2,onClick:r,className:i,as:a,htmlFor:o,ariaLabel:s,disabled:c,href:l,target:u,rel:d,prefetch:f,linkComponent:p,tooltip:m,tooltipSide:h,tooltipAlign:g,label:_,mobileIconOnly:v,...y},b){return ff({colorClassName:i,icon:e,children:t,strokeWidth:n,onClick:r,as:a,htmlFor:o,ariaLabel:s,disabled:c,href:l,target:u,rel:d,prefetch:f,linkComponent:p,tooltip:m,tooltipSide:h,tooltipAlign:g,label:_,mobileIconOnly:v,pillClassName:`matrx-tap-pill group-hover/tap:bg-muted group-active/tap:bg-muted-foreground/15`,iconClassName:`matrx-tap-icon ${i??`text-foreground`}`,rest:y,buttonRef:b})}),(0,_.forwardRef)(function({icon:e,children:t,strokeWidth:n=2,onClick:r,className:i,as:a,htmlFor:o,ariaLabel:s,disabled:c,href:l,target:u,rel:d,prefetch:f,linkComponent:p,tooltip:m,tooltipSide:h,tooltipAlign:g,label:_,mobileIconOnly:v,...y},b){let x=i??`text-muted-foreground group-hover/tap:text-foreground`;return ff({colorClassName:i,icon:e,children:t,strokeWidth:n,onClick:r,as:a,htmlFor:o,ariaLabel:s,disabled:c,href:l,target:u,rel:d,prefetch:f,linkComponent:p,tooltip:m,tooltipSide:h,tooltipAlign:g,label:_,mobileIconOnly:v,pillClassName:`matrx-tap-pill border border-border bg-transparent transition-colors group-hover/tap:border-primary/60 group-active/tap:bg-muted`,iconClassName:`matrx-tap-icon ${x}`,labelClassName:`matrx-tap-label ${x}`,rest:y,buttonRef:b})});var gf=(0,_.forwardRef)(function({icon:e,children:t,strokeWidth:n=2,onClick:r,as:i,htmlFor:a,ariaLabel:o,disabled:s,href:c,target:l,rel:u,prefetch:d,linkComponent:f,tone:p,bgColor:m,iconColor:h,hoverBgColor:g,activeBgColor:_,tooltip:v,tooltipSide:y,tooltipAlign:b,label:x,mobileIconOnly:S,...C},w){return ff({icon:e,children:t,strokeWidth:n,onClick:r,as:i,htmlFor:a,ariaLabel:o,disabled:s,href:c,target:l,rel:u,prefetch:d,linkComponent:f,tooltip:v,tooltipSide:y,tooltipAlign:b,label:x,mobileIconOnly:S,..._f(p,m,h,g,_),rest:C,buttonRef:w})});function _f(e,t,n,r,i){if(!(!e&&(t||n||r||i))){let t=Kd[e??`primary`];return{pillClassName:`matrx-tap-pill ${t.fill} ${t.glyph} group-active/tap:brightness-90`,iconClassName:`matrx-tap-icon ${t.glyph}`,labelClassName:`matrx-tap-label ${t.glyph}`}}let a=n??`text-primary-foreground`;return{pillClassName:`matrx-tap-pill ${t??`bg-primary`} ${a} ${r??`group-hover/tap:bg-primary/80`} ${i??`group-active/tap:brightness-90`}`,iconClassName:`matrx-tap-icon ${a}`,labelClassName:`matrx-tap-label ${a}`}}(0,_.forwardRef)(function({tone:e=`destructive`,...t},n){return(0,j.jsx)(gf,{ref:n,tone:e,...t})}),(0,_.forwardRef)(function({icon:e,children:t,strokeWidth:n=2,onClick:r,className:i,as:a,htmlFor:o,ariaLabel:s,disabled:c,href:l,target:u,rel:d,prefetch:f,linkComponent:p,tooltip:m,tooltipSide:h,tooltipAlign:g,label:_,mobileIconOnly:v,...y},b){let x=i??`text-foreground`;return ff({colorClassName:i,size:`sm`,icon:e,children:t,strokeWidth:n,onClick:r,as:a,htmlFor:o,ariaLabel:s,disabled:c,href:l,target:u,rel:d,prefetch:f,linkComponent:p,tooltip:m,tooltipSide:h,tooltipAlign:g,label:_,mobileIconOnly:v,pillClassName:`matrx-tap-pill matrx-tap-pill-sm matrx-glass-interactive`,iconClassName:`matrx-tap-icon ${x}`,labelClassName:`matrx-tap-label ${x}`,rest:y,buttonRef:b})});function vf(e){let t=(0,_.useRef)(null),n=(0,_.useRef)(!0),r=(0,_.useRef)(!1),[i,a]=(0,_.useState)(!0),[o,s]=(0,_.useState)(!1),c=(0,_.useCallback)(e=>e.scrollHeight-e.scrollTop-e.clientHeight<=48,[]),l=(0,_.useCallback)(e=>{r.current=!0,e.scrollTop=e.scrollHeight},[]),u=(0,_.useCallback)(()=>{let e=t.current;if(e===null)return;if(r.current){r.current=!1;return}let i=c(e);n.current=i,a(i),i&&s(!1)},[c]),d=(0,_.useCallback)(e=>{let n=t.current;n!==null&&n.removeEventListener(`scroll`,u),t.current=e,e!==null&&e.addEventListener(`scroll`,u,{passive:!0})},[u]);(0,_.useEffect)(()=>()=>{let e=t.current;e!==null&&e.removeEventListener(`scroll`,u)},[u]);let f=(0,_.useCallback)(()=>{let r=t.current;if(r!==null&&e){if(n.current){l(r);return}s(!0)}},[e,l]);return{ref:d,pinned:i,hasUnseenBelow:o,jumpToLatest:(0,_.useCallback)(()=>{let e=t.current;e!==null&&(l(e),n.current=!0,a(!0),s(!1))},[l]),onContentChange:f}}function yf(e){let t=[],n=``,r=0;for(let i of xt(e)){if(i.start<r)continue;n+=e.slice(r,i.start);let a=e.slice(i.start,i.end);t.push(i.kind===`fence`?` code block `:bf(a)),n+=`\uE300${t.length-1}\uE301`,r=i.end}return n+=e.slice(r),n.replace(/!\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/^\s{0,3}#{1,6}\s+/gm,``).replace(/^\s{0,3}>\s?/gm,``).replace(/^\s{0,3}([*+-]|\d+\.)\s+/gm,``).replace(/(\*\*\*|___)(.+?)\1/g,`$2`).replace(/(\*\*|__)(.+?)\1/g,`$2`).replace(/(\*|_)(.+?)\1/g,`$2`).replace(/~~(.+?)~~/g,`$1`).replace(/^\s{0,3}([-*_]\s?){3,}$/gm,``).replace(/\uE300(\d+)\uE301/g,(e,n)=>t[Number(n)]??``).replace(/[ \t]{2,}/g,` `)}function bf(e){let t=/^`+/.exec(e)?.[0].length??0,n=e.slice(t,e.length-t);return/^ .* $/s.test(n)&&n.trim()?n.slice(1,-1):n}var xf=`Your message could not be copied.`,Sf=`Select the text and copy it with your keyboard — this browser did not allow the page to use the clipboard.`,Cf=2e3;function wf(e){let{message:t}=e,{notifier:n}=hi(),r=gi(),{thread:i,retry:a}=di(),[o,s]=(0,_.useState)(null),c=(0,_.useRef)(null);(0,_.useEffect)(()=>()=>{c.current!==null&&clearTimeout(c.current)},[]);let l=(0,_.useCallback)((e,t)=>{let r=globalThis.navigator?.clipboard,i=r?.writeText?.bind(r);if(i===void 0){n.notify({level:`warning`,message:xf,remedy:Sf});return}i(e).then(()=>{s(t),c.current!==null&&clearTimeout(c.current),c.current=setTimeout(()=>s(null),Cf)},()=>{n.notify({level:`warning`,message:xf,remedy:Sf})})},[n]);if(t.status===`streaming`||t.status===`pending`)return null;let u=C(t),d=r.messageActions?.(t),f=t.role===`user`,p=f?``:yi(i.getSnapshot().messages,t.id);return u===``&&d===void 0?null:(0,j.jsxs)(`div`,{className:`mx-chat-actions`,role:`group`,"aria-label":f?`Actions for your message`:`Actions for this answer`,"data-message-id":t.id,children:[u===``?null:(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-quiet-button mx-chat-focusable`,"data-action":`copy-text`,onClick:()=>l(yf(u),`text`),children:o===`text`?`Copied`:`Copy`}),u===``||f?null:(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-quiet-button mx-chat-focusable`,"data-action":`copy-markdown`,onClick:()=>l(u,`markdown`),children:o===`markdown`?`Copied`:`Copy as markdown`}),p===``?null:(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-quiet-button mx-chat-focusable`,"data-action":`retry`,onClick:()=>void i.send({text:p}),children:`Ask again`}),f&&u!==``?(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-quiet-button mx-chat-focusable`,"data-action":`edit`,onClick:()=>a.request(u),children:`Edit and send again`}):null,d,o===null?null:(0,j.jsx)(`span`,{className:`mx-chat__sr-only`,role:`status`,"aria-live":`polite`,children:`Copied to the clipboard`})]})}var Tf=Object.defineProperty,Ef=(e,t)=>Tf(e,`name`,{value:t,configurable:!0});function Df(e){let t=e+`CollectionProvider`,[n,r]=Ii(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=Ef(e=>{let{scope:t,children:n}=e,r=_.useRef(null),a=_.useRef(new Map).current;return(0,j.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=Bi(s),l=_.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=H(t,a(s,n).collectionRef);return(0,j.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=Bi(u),p=_.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=_.useRef(null),s=H(t,o),c=a(u,n);return _.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,j.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return _.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return Ef(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}Ef(Df,`createCollection`);var Of=new WeakMap,kf=class e extends Map{static{Ef(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],Of.set(this,!0)}set(e,t){return Of.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=this.#e.length,a=Mf(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=Af(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=Af(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return Af(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function Af(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=jf(e,t);return n===-1?void 0:e[n]}Ef(Af,`at`);function jf(e,t){let n=e.length,r=Mf(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}Ef(jf,`toSafeIndex`);function Mf(e){return e!==e||e===0?0:Math.trunc(e)}Ef(Mf,`toSafeInteger`);function Nf(e){let t=e+`CollectionProvider`,[n,r]=Ii(t),[i,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new kf,setItemMap:Ef(()=>void 0,`setItemMap`)}),o=Ef(({state:e,...t})=>e?(0,j.jsx)(c,{...t,state:e}):(0,j.jsx)(s,{...t}),`CollectionProvider`);o.displayName=t;let s=Ef(e=>{let t=h();return(0,j.jsx)(c,{...e,state:t})},`CollectionInit`);s.displayName=t+`Init`;let c=Ef(e=>{let{scope:t,children:n,state:r}=e,a=_.useRef(null),[o,s]=_.useState(null),c=H(a,s),[l,u]=r;return _.useEffect(()=>{if(!o)return;let e=Lf(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,j.jsx)(i,{scope:t,itemMap:l,setItemMap:u,collectionRef:c,collectionRefObject:a,collectionElement:o,children:n})},`CollectionProviderImpl`);c.displayName=t+`Impl`;let l=e+`CollectionSlot`,u=Bi(l),d=_.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=H(t,a(l,n).collectionRef);return(0,j.jsx)(u,{ref:i,children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,p=Bi(f),m=_.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=_.useRef(null),[s,c]=_.useState(null),l=H(t,o,c),{setItemMap:u}=a(f,n),d=_.useRef(i);Pf(d.current,i)||(d.current=i);let m=d.current;return _.useEffect(()=>{let e=m;return u(t=>s?t.has(s)?t.set(s,{...e,element:s}).toSorted(If):(t.set(s,{...e,element:s}),t.toSorted(If)):t),()=>{u(e=>!s||!e.has(s)?e:(e.delete(s),new kf(e)))}},[s,m,u]),(0,j.jsx)(p,{"data-radix-collection-item":``,ref:l,children:r})});m.displayName=f;function h(){return _.useState(new kf)}Ef(h,`useInitCollection`);function g(t){let{itemMap:n}=a(e+`CollectionConsumer`,t);return n}return Ef(g,`useCollection`),[{Provider:o,Slot:d,ItemSlot:m},{createCollectionScope:r,useCollection:g,useInitCollection:h}]}Ef(Nf,`createCollection`);function Pf(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}Ef(Pf,`shallowEqual`);function Ff(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Ef(Ff,`isElementPreceding`);function If(e,t){return!e[1].element||!t[1].element?0:Ff(e[1].element,t[1].element)?-1:1}Ef(If,`sortByDocumentPosition`);function Lf(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}Ef(Lf,`getChildListObserver`);var Rf=Object.defineProperty,zf=(e,t)=>Rf(e,`name`,{value:t,configurable:!0}),Bf=_.createContext(void 0);function Vf(e){let t=_.useContext(Bf);return e||t||`ltr`}zf(Vf,`useDirection`);function Q(e){return{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,...e}}function Hf(e){return(0,j.jsxs)(`svg`,{...Q(e),children:[(0,j.jsx)(`path`,{d:`M18 6 6 18`}),(0,j.jsx)(`path`,{d:`m6 6 12 12`})]})}function Uf(e){return{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 15 15`,width:15,height:15,fill:`none`,"aria-hidden":!0,...e}}function Wf(e){return(0,j.jsx)(`svg`,{...Uf(e),children:(0,j.jsx)(`path`,{d:`M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}function Gf(e){return(0,j.jsx)(`svg`,{...Uf(e),children:(0,j.jsx)(`path`,{d:`M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z`,fill:`currentColor`})})}function Kf(e){return(0,j.jsx)(`svg`,{...Uf(e),children:(0,j.jsx)(`path`,{d:`M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}function qf(e){return(0,j.jsx)(`svg`,{...Uf(e),children:(0,j.jsx)(`path`,{d:`M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}function Jf(e){return(0,j.jsx)(`svg`,{...Uf(e),children:(0,j.jsx)(`path`,{d:`M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}var Yf=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Xf=vl,Zf=(e,t)=>n=>{if(t?.variants==null)return Xf(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=Yf(t)||Yf(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 Xf(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)},Qf=Object.defineProperty,$f=(e,t)=>Qf(e,`name`,{value:t,configurable:!0}),ep=`focusScope.autoFocusOnMount`,tp=`focusScope.autoFocusOnUnmount`,np={bubbles:!1,cancelable:!0},rp=_.forwardRef($f(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=_.useState(null),l=aa(i),u=aa(a),d=_.useRef(null),f=H(t,c),p=_.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;_.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:up(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||up(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&up(s)};$f(e,`handleFocusIn`),$f(t,`handleFocusOut`),$f(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),_.useEffect(()=>{if(s){dp.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(ep,np);s.addEventListener(ep,l),s.dispatchEvent(t),t.defaultPrevented||(ip(mp(op(s)),{select:!0}),document.activeElement===e&&up(s))}return()=>{s.removeEventListener(ep,l),setTimeout(()=>{let t=new CustomEvent(tp,np);s.addEventListener(tp,u),s.dispatchEvent(t),t.defaultPrevented||up(e??document.body,{select:!0}),s.removeEventListener(tp,u),dp.remove(p)},0)}}},[s,l,u,p]);let m=_.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=ap(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&up(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&up(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,j.jsx)(W.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})},`FocusScope`));function ip(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(up(r,{select:t}),document.activeElement!==n)return}$f(ip,`focusFirst`);function ap(e){let t=op(e);return[sp(t,e),sp(t.reverse(),e)]}$f(ap,`getTabbableEdges`);function op(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:$f(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}$f(op,`getTabbableCandidates`);function sp(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):cp(r,{upTo:t})))return r}$f(sp,`findVisible`);function cp(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}$f(cp,`isHidden`);function lp(e){return e instanceof HTMLInputElement&&`select`in e}$f(lp,`isSelectableInput`);function up(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&lp(e)&&t&&e.select()}}$f(up,`focus`);var dp=fp();function fp(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=pp(e,t),e.unshift(t)},remove(t){e=pp(e,t),e[0]?.resume()}}}$f(fp,`createFocusScopesStack`);function pp(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}$f(pp,`arrayRemove`);function mp(e){return e.filter(e=>e.tagName!==`A`)}$f(mp,`removeLinks`);var hp=Object.defineProperty,gp=(e,t)=>hp(e,`name`,{value:t,configurable:!0}),_p=0,vp=null;function yp(e){return bp(),e.children}gp(yp,`FocusGuards`);function bp(){_.useEffect(()=>{vp||={start:xp(),end:xp()};let{start:e,end:t}=vp;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),_p++,()=>{_p===1&&(vp?.start.remove(),vp?.end.remove(),vp=null),_p=Math.max(0,_p-1)}},[])}gp(bp,`useFocusGuards`);function xp(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}gp(xp,`createFocusGuard`);var Sp=function(){return Sp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Sp.apply(this,arguments)};function Cp(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function wp(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Tp=`right-scroll-bar-position`,Ep=`width-before-scroll-bar`,Dp=`with-scroll-bars-hidden`,Op=`--removed-body-scroll-bar-size`;function kp(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Ap(e,t){var n=(0,_.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var jp=typeof window<`u`?_.useLayoutEffect:_.useEffect,Mp=new WeakMap;function Np(e,t){var n=Ap(t||null,function(t){return e.forEach(function(e){return kp(e,t)})});return jp(function(){var t=Mp.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||kp(e,null)}),i.forEach(function(e){r.has(e)||kp(e,a)})}Mp.set(n,e)},[e]),n}function Pp(e){return e}function Fp(e,t){t===void 0&&(t=Pp);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Ip(e){e===void 0&&(e={});var t=Fp(null);return t.options=Sp({async:!0,ssr:!1},e),t}var Lp=function(e){var t=e.sideCar,n=Cp(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return _.createElement(r,Sp({},n))};Lp.isSideCarExport=!0;function Rp(e,t){return e.useMedium(t),Lp}var zp=Ip(),Bp=function(){},Vp=_.forwardRef(function(e,t){var n=_.useRef(null),r=_.useState({onScrollCapture:Bp,onWheelCapture:Bp,onTouchMoveCapture:Bp}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=Cp(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=Np([n,t]),w=Sp(Sp({},x),i);return _.createElement(_.Fragment,null,u&&_.createElement(S,{sideCar:zp,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:b}),o?_.cloneElement(_.Children.only(s),Sp(Sp({},w),{ref:C})):_.createElement(y,Sp({},w,{className:c,ref:C}),s))});Vp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Vp.classNames={fullWidth:Ep,zeroRight:Tp};var Hp=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Up(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Hp();return t&&e.setAttribute(`nonce`,t),e}function Wp(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Gp(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Kp=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Up())&&(Wp(t,n),Gp(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},qp=function(){var e=Kp();return function(t,n){_.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Jp=function(){var e=qp();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Yp={left:0,top:0,right:0,gap:0},Xp=function(e){return parseInt(e||``,10)||0},Zp=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Xp(n),Xp(r),Xp(i)]},Qp=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Yp;var t=Zp(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},$p=Jp(),em=`data-scroll-locked`,tm=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
17
- .${Dp} {
18
- overflow: hidden ${r};
19
- padding-right: ${s}px ${r};
20
- }
21
- body[${em}] {
22
- overflow: hidden ${r};
23
- overscroll-behavior: contain;
24
- ${[t&&`position: relative ${r};`,n===`margin`&&`
25
- padding-left: ${i}px;
26
- padding-top: ${a}px;
27
- padding-right: ${o}px;
28
- margin-left:0;
29
- margin-top:0;
30
- margin-right: ${s}px ${r};
31
- `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
32
- }
33
-
34
- .${Tp} {
35
- right: ${s}px ${r};
36
- }
37
-
38
- .${Ep} {
39
- margin-right: ${s}px ${r};
40
- }
41
-
42
- .${Tp} .${Tp} {
43
- right: 0 ${r};
44
- }
45
-
46
- .${Ep} .${Ep} {
47
- margin-right: 0 ${r};
48
- }
49
-
50
- body[${em}] {
51
- ${Op}: ${s}px;
52
- }
53
- `},nm=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},rm=function(){_.useEffect(function(){return document.body.setAttribute(em,(nm()+1).toString()),function(){var e=nm()-1;e<=0?document.body.removeAttribute(em):document.body.setAttribute(em,e.toString())}},[])},im=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;rm();var a=_.useMemo(function(){return Qp(i)},[i]);return _.createElement($p,{styles:tm(a,!t,i,n?``:`!important`)})},am=!1;if(typeof window<`u`)try{var om=Object.defineProperty({},"passive",{get:function(){return am=!0,!0}});window.addEventListener(`test`,om,om),window.removeEventListener(`test`,om,om)}catch{am=!1}var sm=am?{passive:!1}:!1,cm=function(e){return e.tagName===`TEXTAREA`},lm=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!cm(e)&&n[t]===`visible`)},um=function(e){return lm(e,`overflowY`)},dm=function(e){return lm(e,`overflowX`)},fm=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),hm(e,r)){var i=gm(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},pm=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},mm=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},hm=function(e,t){return e===`v`?um(t):dm(t)},gm=function(e,t){return e===`v`?pm(t):mm(t)},_m=function(e,t){return e===`h`&&t===`rtl`?-1:1},vm=function(e,t,n,r,i){var a=_m(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=gm(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&hm(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},ym=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},bm=function(e){return[e.deltaX,e.deltaY]},xm=function(e){return e&&`current`in e?e.current:e},Sm=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Cm=function(e){return`
54
- .block-interactivity-${e} {pointer-events: none;}
55
- .allow-interactivity-${e} {pointer-events: all;}
56
- `},wm=0,Tm=[];function Em(e){var t=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),i=_.useState(wm++)[0],a=_.useState(Jp)[0],o=_.useRef(e);_.useEffect(function(){o.current=e},[e]),_.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=wp([e.lockRef.current],(e.shards||[]).map(xm),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=_.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=ym(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=fm(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=fm(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return vm(h,t,e,h===`h`?s:c,!0)},[]),c=_.useCallback(function(e){var n=e;if(Tm.length&&Tm[Tm.length-1]===a){var r=`deltaY`in n?bm(n):ym(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Sm(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(xm).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=_.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Dm(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=_.useCallback(function(e){n.current=ym(e),r.current=void 0},[]),d=_.useCallback(function(t){l(t.type,bm(t),t.target,s(t,e.lockRef.current))},[]),f=_.useCallback(function(t){l(t.type,ym(t),t.target,s(t,e.lockRef.current))},[]);_.useEffect(function(){return Tm.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,sm),document.addEventListener(`touchmove`,c,sm),document.addEventListener(`touchstart`,u,sm),function(){Tm=Tm.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,sm),document.removeEventListener(`touchmove`,c,sm),document.removeEventListener(`touchstart`,u,sm)}},[]);var p=e.removeScrollBar,m=e.inert;return _.createElement(_.Fragment,null,m?_.createElement(a,{styles:Cm(i)}):null,p?_.createElement(im,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Dm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Om=Rp(zp,Em),km=_.forwardRef(function(e,t){return _.createElement(Vp,Sp({},e,{ref:t,sideCar:Om}))});km.classNames=Vp.classNames;var Am=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},jm=new WeakMap,Mm=new WeakMap,Nm={},Pm=0,Fm=function(e){return e&&(e.host||Fm(e.parentNode))},Im=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Fm(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Lm=function(e,t,n,r){var i=Im(t,Array.isArray(e)?e:[e]);Nm[n]||(Nm[n]=new WeakMap);var a=Nm[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(jm.get(e)||0)+1,l=(a.get(e)||0)+1;jm.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Mm.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Pm++,function(){o.forEach(function(e){var t=jm.get(e)-1,i=a.get(e)-1;jm.set(e,t),a.set(e,i),t||(Mm.has(e)||e.removeAttribute(r),Mm.delete(e)),i||e.removeAttribute(n)}),Pm--,Pm||(jm=new WeakMap,jm=new WeakMap,Mm=new WeakMap,Nm={})}},Rm=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Am(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Lm(r,i,n,`aria-hidden`)):function(){return null}},zm=Object.defineProperty,Bm=(e,t)=>zm(e,`name`,{value:t,configurable:!0}),Vm=`Dialog`,[Hm,Um]=Ii(Vm),[Wm,Gm]=Hm(Vm),Km=Bm(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=_.useRef(null),c=_.useRef(null),[l,u]=Tc({prop:r,defaultProp:i??!1,onChange:a,caller:Vm}),[d,f]=_.useState(0),[p,m]=_.useState(0);return(0,j.jsx)(Wm,{scope:t,triggerRef:s,contentRef:c,contentId:Ta(),titleId:Ta(),descriptionId:Ta(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:m,open:l,onOpenChange:u,onOpenToggle:_.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})},`Dialog`),qm=`DialogTrigger`,Jm=_.forwardRef(Bm(function(e,t){let{__scopeDialog:n,...r}=e,i=Gm(qm,n),a=H(t,i.triggerRef);return(0,j.jsx)(W.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":mh(i.open),...r,ref:a,onClick:V(e.onClick,i.onOpenToggle)})},`DialogTrigger`)),Ym=`DialogPortal`,[Xm,Zm]=Hm(Ym,{forceMount:void 0}),Qm=Bm(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Gm(Ym,t);return(0,j.jsx)(Xm,{scope:t,forceMount:n,children:_.Children.map(r,e=>(0,j.jsx)(dc,{present:n||a.open,children:(0,j.jsx)(sc,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),$m=`DialogOverlay`,eh=_.forwardRef(Bm(function(e,t){let n=Zm($m,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Gm($m,e.__scopeDialog);return a.modal?(0,j.jsx)(dc,{present:r||a.open,children:(0,j.jsx)(nh,{...i,ref:t})}):null},`DialogOverlay`)),th=Bi(`DialogOverlay.RemoveScroll`),nh=_.forwardRef(Bm(function(e,t){let{__scopeDialog:n,...r}=e,i=Gm($m,n),a=H(t,ma());return(0,j.jsx)(km,{as:th,allowPinchZoom:!0,shards:[i.contentRef],children:(0,j.jsx)(W.div,{"data-state":mh(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),rh=`DialogContent`,ih=_.forwardRef(Bm(function(e,t){let n=Zm(rh,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Gm(rh,e.__scopeDialog);return(0,j.jsx)(dc,{present:r||a.open,children:a.modal?(0,j.jsx)(ah,{...i,ref:t}):(0,j.jsx)(oh,{...i,ref:t})})},`DialogContent`)),ah=_.forwardRef(Bm(function(e,t){let n=Gm(rh,e.__scopeDialog),r=_.useRef(null),i=H(t,n.contentRef,r);return _.useEffect(()=>{let e=r.current;if(e)return Rm(e)},[]),(0,j.jsx)(sh,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:V(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:V(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:V(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),oh=_.forwardRef(Bm(function(e,t){let n=Gm(rh,e.__scopeDialog),r=_.useRef(!1),i=_.useRef(!1);return(0,j.jsx)(sh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),sh=_.forwardRef(Bm(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=Gm(rh,n);return bp(),(0,j.jsx)(j.Fragment,{children:(0,j.jsx)(rp,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,j.jsx)(pa,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":mh(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},`DialogContentImpl`)),ch=`DialogTitle`,lh=_.forwardRef(Bm(function(e,t){let{__scopeDialog:n,...r}=e,i=Gm(ch,n),{setTitleCount:a}=i;return ba(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,j.jsx)(W.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),uh=`DialogDescription`,dh=_.forwardRef(Bm(function(e,t){let{__scopeDialog:n,...r}=e,i=Gm(uh,n),{setDescriptionCount:a}=i;return ba(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,j.jsx)(W.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),fh=`DialogClose`,ph=_.forwardRef(Bm(function(e,t){let{__scopeDialog:n,...r}=e,i=Gm(fh,n);return(0,j.jsx)(W.button,{type:`button`,...r,ref:t,onClick:V(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function mh(e){return e?`open`:`closed`}Bm(mh,`getState`);function hh(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var gh=_.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:`bottom`,shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),_h=()=>{let e=_.useContext(gh);if(!e)throw Error(`useDrawerContext must be used within a Drawer.Root`);return e};hh(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
57
- [data-state=closed]
58
- ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function vh(){let e=navigator.userAgent;return typeof window<`u`&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function yh(){return wh(/^Mac/)}function bh(){return wh(/^iPhone/)}function xh(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function Sh(){return wh(/^iPad/)||yh()&&navigator.maxTouchPoints>1}function Ch(){return bh()||Sh()}function wh(e){return typeof window<`u`&&window.navigator!=null?e.test(window.navigator.platform):void 0}var Th=24,Eh=typeof window<`u`?_.useLayoutEffect:_.useEffect;function Dh(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}var Oh=typeof document<`u`&&window.visualViewport;function kh(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Ah(e){for(kh(e)&&(e=e.parentElement);e&&!kh(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var jh=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),Mh=0,Nh;function Ph(e={}){let{isDisabled:t}=e;Eh(()=>{if(!t)return Mh++,Mh===1&&Ch()&&(Nh=Fh()),()=>{Mh--,Mh===0&&Nh?.()}},[t])}function Fh(){let e,t=0,n=n=>{e=Ah(n.target),(e!==document.documentElement||e!==document.body)&&(t=n.changedTouches[0].pageY)},r=n=>{if(!e||e===document.documentElement||e===document.body){n.preventDefault();return}let r=n.changedTouches[0].pageY,i=e.scrollTop,a=e.scrollHeight-e.clientHeight;a!==0&&((i<=0&&r>t||i>=a&&r<t)&&n.preventDefault(),t=r)},i=e=>{let t=e.target;zh(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform=`translateY(-2000px)`,t.focus(),requestAnimationFrame(()=>{t.style.transform=``}))},a=e=>{let t=e.target;zh(t)&&(t.style.transform=`translateY(-2000px)`,requestAnimationFrame(()=>{t.style.transform=``,Oh&&(Oh.height<window.innerHeight?requestAnimationFrame(()=>{Rh(t)}):Oh.addEventListener(`resize`,()=>Rh(t),{once:!0}))}))},o=()=>{window.scrollTo(0,0)},s=window.pageXOffset,c=window.pageYOffset,l=Dh(Ih(document.documentElement,`paddingRight`,`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let u=Dh(Lh(document,`touchstart`,n,{passive:!1,capture:!0}),Lh(document,`touchmove`,r,{passive:!1,capture:!0}),Lh(document,`touchend`,i,{passive:!1,capture:!0}),Lh(document,`focus`,a,!0),Lh(window,`scroll`,o));return()=>{l(),u(),window.scrollTo(s,c)}}function Ih(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Lh(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Rh(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=Ah(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+Th&&(t.scrollTop+=r-n)}e=t.parentElement}}function zh(e){return e instanceof HTMLInputElement&&!jh.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function Bh(e,t){typeof e==`function`?e(t):e!=null&&(e.current=t)}function Vh(...e){return t=>e.forEach(e=>Bh(e,t))}function Hh(...e){return _.useCallback(Vh(...e),e)}var Uh=new WeakMap;function Wh(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([t,n])=>{if(t.startsWith(`--`)){e.style.setProperty(t,n);return}r[t]=e.style[t],e.style[t]=n}),!n&&Uh.set(e,r)}function Gh(e,t){if(!e||!(e instanceof HTMLElement))return;let n=Uh.get(e);n&&(e.style[t]=n[t])}var Kh=e=>{switch(e){case`top`:case`bottom`:return!0;case`left`:case`right`:return!1;default:return e}};function qh(e,t){if(!e)return null;let n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform,i=r.match(/^matrix3d\((.+)\)$/);return i?parseFloat(i[1].split(`, `)[Kh(t)?13:12]):(i=r.match(/^matrix\((.+)\)$/),i?parseFloat(i[1].split(`, `)[Kh(t)?5:4]):null)}function Jh(e){return 8*(Math.log(e+1)-2)}function Yh(e,t){if(!e)return()=>{};let n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}var Xh={DURATION:.5,EASE:[.32,.72,0,1]},Zh=.4,Qh=.25,$h=100,eg=8,tg=16,ng=26,rg=`vaul-dragging`;function ig(e){let t=_.useRef(e);return _.useEffect(()=>{t.current=e}),_.useMemo(()=>(...e)=>t.current==null?void 0:t.current.call(t,...e),[])}function ag({defaultProp:e,onChange:t}){let n=_.useState(e),[r]=n,i=_.useRef(r),a=ig(t);return _.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}function og({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=ag({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:r,s=ig(n);return[o,_.useCallback(t=>{if(a){let n=typeof t==`function`?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}function sg({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:i,fadeFromIndex:a,onSnapPointChange:o,direction:s=`bottom`,container:c,snapToSequentialPoint:l}){let[u,d]=og({prop:e,defaultProp:n?.[0],onChange:t}),[f,p]=_.useState(typeof window<`u`?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);_.useEffect(()=>{function e(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]);let m=_.useMemo(()=>u===n?.[n.length-1]||null,[n,u]),h=_.useMemo(()=>n?.findIndex(e=>e===u)??null,[n,u]),g=n&&n.length>0&&(a||a===0)&&!Number.isNaN(a)&&n[a]===u||!n,v=_.useMemo(()=>{let e=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:typeof window<`u`?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};return n?.map(t=>{let n=typeof t==`string`,r=0;if(n&&(r=parseInt(t,10)),Kh(s)){let i=n?r:f?t*e.height:0;return f?s===`bottom`?e.height-i:-e.height+i:i}let i=n?r:f?t*e.width:0;return f?s===`right`?e.width-i:-e.width+i:i})??[]},[n,f,c]),y=_.useMemo(()=>h===null?null:v?.[h],[v,h]),b=_.useCallback(e=>{let t=v?.findIndex(t=>t===e)??null;o(t),Wh(r.current,{transition:`transform ${Xh.DURATION}s cubic-bezier(${Xh.EASE.join(`,`)})`,transform:Kh(s)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),v&&t!==v.length-1&&a!==void 0&&t!==a&&t<a?Wh(i.current,{transition:`opacity ${Xh.DURATION}s cubic-bezier(${Xh.EASE.join(`,`)})`,opacity:`0`}):Wh(i.current,{transition:`opacity ${Xh.DURATION}s cubic-bezier(${Xh.EASE.join(`,`)})`,opacity:`1`}),d(n?.[Math.max(t,0)])},[r.current,n,v,a,i,d]);_.useEffect(()=>{if(u||e){let t=n?.findIndex(t=>t===e||t===u)??-1;v&&t!==-1&&typeof v[t]==`number`&&b(v[t])}},[u,e,n,v,b]);function x({draggedDistance:e,closeDrawer:t,velocity:r,dismissible:o}){if(a===void 0)return;let c=s===`bottom`||s===`right`?(y??0)-e:(y??0)+e,u=h===a-1,d=h===0,f=e>0;if(u&&Wh(i.current,{transition:`opacity ${Xh.DURATION}s cubic-bezier(${Xh.EASE.join(`,`)})`}),!l&&r>2&&!f){o?t():b(v[0]);return}if(!l&&r>2&&f&&v&&n){b(v[n.length-1]);return}let p=v?.reduce((e,t)=>typeof e!=`number`||typeof t!=`number`?e:Math.abs(t-c)<Math.abs(e-c)?t:e),g=Kh(s)?window.innerHeight:window.innerWidth;if(r>Zh&&Math.abs(e)<g*.4){let e=f?1:-1;if(e>0&&m&&n){b(v[n.length-1]);return}if(d&&e<0&&o&&t(),h===null)return;b(v[h+e]);return}b(p)}function S({draggedDistance:e}){if(y===null)return;let t=s===`bottom`||s===`right`?y-e:y+e;(s===`bottom`||s===`right`)&&t<v[v.length-1]||(s===`top`||s===`left`)&&t>v[v.length-1]||Wh(r.current,{transform:Kh(s)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})}function C(e,t){if(!n||typeof h!=`number`||!v||a===void 0)return null;let r=h===a-1;if(h>=a&&t)return 0;if(r&&!t)return 1;if(!g&&!r)return null;let i=r?h+1:h-1,o=r?v[i]-v[i-1]:v[i+1]-v[i],s=e/Math.abs(o);return r?1-s:s}return{isLastSnapPoint:m,activeSnapPoint:u,shouldFade:g,getPercentageDragged:C,setActiveSnapPoint:d,activeSnapPointIndex:h,onRelease:x,onDrag:S,snapPointsOffset:v}}function cg(){let{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:i}=_h(),a=_.useRef(null),o=(0,_.useMemo)(()=>document.body.style.backgroundColor,[]);function s(){return(window.innerWidth-ng)/window.innerWidth}_.useEffect(()=>{if(t&&n){a.current&&clearTimeout(a.current);let t=document.querySelector(`[data-vaul-drawer-wrapper]`)||document.querySelector(`[vaul-drawer-wrapper]`);if(!t)return;r&&!i&&Yh(document.body,{background:`black`}),Yh(t,{transformOrigin:Kh(e)?`top`:`left`,transitionProperty:`transform, border-radius`,transitionDuration:`${Xh.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Xh.EASE.join(`,`)})`});let n=Yh(t,{borderRadius:`${eg}px`,overflow:`hidden`,...Kh(e)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{n(),a.current=window.setTimeout(()=>{o?document.body.style.background=o:document.body.style.removeProperty(`background`)},Xh.DURATION*1e3)}}},[t,n,o])}var lg=null;function ug({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:i,noBodyStyles:a}){let[o,s]=_.useState(()=>typeof window<`u`?window.location.href:``),c=_.useRef(0),l=_.useCallback(()=>{if(xh()&&lg===null&&e&&!a){lg={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:`unset`};let{scrollX:e,innerHeight:t}=window;document.body.style.setProperty(`position`,`fixed`,`important`),Object.assign(document.body.style,{top:`${-c.current}px`,left:`${-e}px`,right:`0px`,height:`auto`}),window.setTimeout(()=>window.requestAnimationFrame(()=>{let e=t-window.innerHeight;e&&c.current>=t&&(document.body.style.top=`${-(c.current+e)}px`)}),300)}},[e]),u=_.useCallback(()=>{if(xh()&&lg!==null&&!a){let e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,lg),window.requestAnimationFrame(()=>{if(i&&o!==window.location.href){s(window.location.href);return}window.scrollTo(t,e)}),lg=null}},[o]);return _.useEffect(()=>{function e(){c.current=window.scrollY}return e(),window.addEventListener(`scroll`,e),()=>{window.removeEventListener(`scroll`,e)}},[]),_.useEffect(()=>{if(t)return()=>{typeof document<`u`&&(document.querySelector(`[data-vaul-drawer]`)||u())}},[t,u]),_.useEffect(()=>{!n&&r&&(e?(!window.matchMedia(`(display-mode: standalone)`).matches&&l(),t||window.setTimeout(()=>{u()},500)):u())},[e,r,o,t,n,l,u]),{restorePositionSetting:u}}function dg({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:i,snapPoints:a,shouldScaleBackground:o=!1,setBackgroundColorOnScale:s=!0,closeThreshold:c=Qh,scrollLockTimeout:l=$h,dismissible:u=!0,handleOnly:d=!1,fadeFromIndex:f=a&&a.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:h,modal:g=!0,onClose:v,nested:y,noBodyStyles:b=!1,direction:x=`bottom`,defaultOpen:S=!1,disablePreventScroll:C=!0,snapToSequentialPoint:w=!1,preventScrollRestoration:T=!1,repositionInputs:E=!0,onAnimationEnd:D,container:O,autoFocus:k=!1}){let[A=!1,j]=og({defaultProp:S,prop:e,onChange:e=>{t?.(e),!e&&!y&&be(),setTimeout(()=>{D?.(e)},Xh.DURATION*1e3),e&&!g&&typeof window<`u`&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents=`auto`}),e||(document.body.style.pointerEvents=`auto`)}}),[M,N]=_.useState(!1),[P,F]=_.useState(!1),[I,L]=_.useState(!1),ee=_.useRef(null),te=_.useRef(null),ne=_.useRef(null),R=_.useRef(null),re=_.useRef(null),ie=_.useRef(!1),ae=_.useRef(null),oe=_.useRef(0),se=_.useRef(!1),ce=_.useRef(!S),le=_.useRef(0),z=_.useRef(null),ue=_.useRef(z.current?.getBoundingClientRect().height||0),B=_.useRef(z.current?.getBoundingClientRect().width||0),de=_.useRef(0),{activeSnapPoint:fe,activeSnapPointIndex:pe,setActiveSnapPoint:me,onRelease:he,snapPointsOffset:ge,onDrag:_e,shouldFade:ve,getPercentageDragged:ye}=sg({snapPoints:a,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:z,fadeFromIndex:f,overlayRef:ee,onSnapPointChange:_.useCallback(e=>{a&&e===ge.length-1&&(te.current=new Date)},[]),direction:x,container:O,snapToSequentialPoint:w});Ph({isDisabled:!A||P||!g||I||!M||!E||!C});let{restorePositionSetting:be}=ug({isOpen:A,modal:g,nested:y??!1,hasBeenOpened:M,preventScrollRestoration:T,noBodyStyles:b});function xe(){return(window.innerWidth-ng)/window.innerWidth}function Se(e){(u||a)&&(!z.current||z.current.contains(e.target))&&(ue.current=z.current?.getBoundingClientRect().height||0,B.current=z.current?.getBoundingClientRect().width||0,F(!0),ne.current=new Date,Ch()&&window.addEventListener(`touchend`,()=>ie.current=!1,{once:!0}),e.target.setPointerCapture(e.pointerId),oe.current=Kh(x)?e.pageY:e.pageX)}function Ce(e,t){let n=e,r=window.getSelection()?.toString(),i=z.current?qh(z.current,x):null,a=new Date;if(n.tagName===`SELECT`||n.hasAttribute(`data-vaul-no-drag`)||n.closest(`[data-vaul-no-drag]`))return!1;if(x===`right`||x===`left`)return!0;if(te.current&&a.getTime()-te.current.getTime()<500)return!1;if(i!==null&&(x===`bottom`?i>0:i<0))return!0;if(r&&r.length>0)return!1;if(re.current&&a.getTime()-re.current.getTime()<l&&i===0||t)return re.current=a,!1;for(;n;){if(n.scrollHeight>n.clientHeight){if(n.scrollTop!==0)return re.current=new Date,!1;if(n.getAttribute(`role`)===`dialog`)return!0}n=n.parentNode}return!0}function we(e){if(z.current&&P){let t=x===`bottom`||x===`right`?1:-1,n=(oe.current-(Kh(x)?e.pageY:e.pageX))*t,i=n>0,s=a&&!u&&!i;if(s&&pe===0)return;let c=Math.abs(n),l=document.querySelector(`[data-vaul-drawer-wrapper]`),d=c/(x===`bottom`||x===`top`?ue.current:B.current),p=ye(c,i);if(p!==null&&(d=p),s&&d>=1||!ie.current&&!Ce(e.target,i))return;if(z.current.classList.add(rg),ie.current=!0,Wh(z.current,{transition:`none`}),Wh(ee.current,{transition:`none`}),a&&_e({draggedDistance:n}),i&&!a){let e=Jh(n),r=Math.min(e*-1,0)*t;Wh(z.current,{transform:Kh(x)?`translate3d(0, ${r}px, 0)`:`translate3d(${r}px, 0, 0)`});return}let m=1-d;if((ve||f&&pe===f-1)&&(r?.(e,d),Wh(ee.current,{opacity:`${m}`,transition:`none`},!0)),l&&ee.current&&o){let e=Math.min(xe()+d*(1-xe()),1),t=8-d*8,n=Math.max(0,14-d*14);Wh(l,{borderRadius:`${t}px`,transform:Kh(x)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:`none`},!0)}if(!a){let e=c*t;Wh(z.current,{transform:Kh(x)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}}_.useEffect(()=>{window.requestAnimationFrame(()=>{ce.current=!0})},[]),_.useEffect(()=>{var e;function t(){if(!z.current||!E)return;let e=document.activeElement;if(zh(e)||se.current){let e=window.visualViewport?.height||0,t=window.innerHeight,n=t-e,r=z.current.getBoundingClientRect().height||0,i=r>t*.8;de.current||=r;let o=z.current.getBoundingClientRect().top;if(Math.abs(le.current-n)>60&&(se.current=!se.current),a&&a.length>0&&ge&&pe){let e=ge[pe]||0;n+=e}if(le.current=n,r>e||se.current){let t=z.current.getBoundingClientRect().height,r=t;t>e&&(r=e-(i?o:ng)),h?z.current.style.height=`${t-Math.max(n,0)}px`:z.current.style.height=`${Math.max(r,e-o)}px`}else vh()||(z.current.style.height=`${de.current}px`);a&&a.length>0&&!se.current?z.current.style.bottom=`0px`:z.current.style.bottom=`${Math.max(n,0)}px`}}return(e=window.visualViewport)==null||e.addEventListener(`resize`,t),()=>window.visualViewport?.removeEventListener(`resize`,t)},[pe,a,ge]);function Te(e){De(),v?.(),e||j(!1),setTimeout(()=>{a&&me(a[0])},Xh.DURATION*1e3)}function Ee(){if(!z.current)return;let e=document.querySelector(`[data-vaul-drawer-wrapper]`),t=qh(z.current,x);Wh(z.current,{transform:`translate3d(0, 0, 0)`,transition:`transform ${Xh.DURATION}s cubic-bezier(${Xh.EASE.join(`,`)})`}),Wh(ee.current,{transition:`opacity ${Xh.DURATION}s cubic-bezier(${Xh.EASE.join(`,`)})`,opacity:`1`}),o&&t&&t>0&&A&&Wh(e,{borderRadius:`${eg}px`,overflow:`hidden`,...Kh(x)?{transform:`scale(${xe()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:`top`}:{transform:`scale(${xe()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:`left`},transitionProperty:`transform, border-radius`,transitionDuration:`${Xh.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Xh.EASE.join(`,`)})`},!0)}function De(){P&&z.current&&(z.current.classList.remove(rg),ie.current=!1,F(!1),R.current=new Date)}function Oe(e){if(!P||!z.current)return;z.current.classList.remove(rg),ie.current=!1,F(!1),R.current=new Date;let t=qh(z.current,x);if(!e||!Ce(e.target,!1)||!t||Number.isNaN(t)||ne.current===null)return;let n=R.current.getTime()-ne.current.getTime(),r=oe.current-(Kh(x)?e.pageY:e.pageX),o=Math.abs(r)/n;if(o>.05&&(L(!0),setTimeout(()=>{L(!1)},200)),a){he({draggedDistance:r*(x===`bottom`||x===`right`?1:-1),closeDrawer:Te,velocity:o,dismissible:u}),i?.(e,!0);return}if(x===`bottom`||x===`right`?r>0:r<0){Ee(),i?.(e,!0);return}if(o>Zh){Te(),i?.(e,!1);return}let s=Math.min(z.current.getBoundingClientRect().height??0,window.innerHeight),l=Math.min(z.current.getBoundingClientRect().width??0,window.innerWidth);if(Math.abs(t)>=(x===`left`||x===`right`?l:s)*c){Te(),i?.(e,!1);return}i?.(e,!0),Ee()}_.useEffect(()=>(A&&(Wh(document.documentElement,{scrollBehavior:`auto`}),te.current=new Date),()=>{Gh(document.documentElement,`scrollBehavior`)}),[A]);function ke(e){let t=e?(window.innerWidth-tg)/window.innerWidth:1,n=e?-16:0;ae.current&&window.clearTimeout(ae.current),Wh(z.current,{transition:`transform ${Xh.DURATION}s cubic-bezier(${Xh.EASE.join(`,`)})`,transform:Kh(x)?`scale(${t}) translate3d(0, ${n}px, 0)`:`scale(${t}) translate3d(${n}px, 0, 0)`}),!e&&z.current&&(ae.current=setTimeout(()=>{let e=qh(z.current,x);Wh(z.current,{transition:`none`,transform:Kh(x)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})},500))}function Ae(e,t){if(t<0)return;let n=(window.innerWidth-tg)/window.innerWidth,r=n+t*(1-n),i=-16+t*tg;Wh(z.current,{transform:Kh(x)?`scale(${r}) translate3d(0, ${i}px, 0)`:`scale(${r}) translate3d(${i}px, 0, 0)`,transition:`none`})}function je(e,t){let n=Kh(x)?window.innerHeight:window.innerWidth,r=t?(n-tg)/n:1,i=t?-16:0;t&&Wh(z.current,{transition:`transform ${Xh.DURATION}s cubic-bezier(${Xh.EASE.join(`,`)})`,transform:Kh(x)?`scale(${r}) translate3d(0, ${i}px, 0)`:`scale(${r}) translate3d(${i}px, 0, 0)`})}return _.useEffect(()=>{g||window.requestAnimationFrame(()=>{document.body.style.pointerEvents=`auto`})},[g]),_.createElement(Km,{defaultOpen:S,onOpenChange:e=>{(u||e)&&(e?N(!0):Te(!0),j(e))},open:A},_.createElement(gh.Provider,{value:{activeSnapPoint:fe,snapPoints:a,setActiveSnapPoint:me,drawerRef:z,overlayRef:ee,onOpenChange:t,onPress:Se,onRelease:Oe,onDrag:we,dismissible:u,shouldAnimate:ce,handleOnly:d,isOpen:A,isDragging:P,shouldFade:ve,closeDrawer:Te,onNestedDrag:Ae,onNestedOpenChange:ke,onNestedRelease:je,keyboardIsOpen:se,modal:g,snapPointsOffset:ge,activeSnapPointIndex:pe,direction:x,shouldScaleBackground:o,setBackgroundColorOnScale:s,noBodyStyles:b,container:O,autoFocus:k}},n))}var fg=_.forwardRef(function({...e},t){let{overlayRef:n,snapPoints:r,onRelease:i,shouldFade:a,isOpen:o,modal:s,shouldAnimate:c}=_h(),l=Hh(t,n),u=r&&r.length>0;if(!s)return null;let d=_.useCallback(e=>i(e),[i]);return _.createElement(eh,{onMouseUp:d,ref:l,"data-vaul-overlay":``,"data-vaul-snap-points":o&&u?`true`:`false`,"data-vaul-snap-points-overlay":o&&a?`true`:`false`,"data-vaul-animate":c?.current?`true`:`false`,...e})});fg.displayName=`Drawer.Overlay`;var pg=_.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},i){let{drawerRef:a,onPress:o,onRelease:s,onDrag:c,keyboardIsOpen:l,snapPointsOffset:u,activeSnapPointIndex:d,modal:f,isOpen:p,direction:m,snapPoints:h,container:g,handleOnly:v,shouldAnimate:y,autoFocus:b}=_h(),[x,S]=_.useState(!1),C=Hh(i,a),w=_.useRef(null),T=_.useRef(null),E=_.useRef(!1),D=h&&h.length>0;cg();let O=(e,t,n=0)=>{if(E.current)return!0;let r=Math.abs(e.y),i=Math.abs(e.x),a=i>r,o=[`bottom`,`right`].includes(t)?1:-1;if(t===`left`||t===`right`){if(!(e.x*o<0)&&i>=0&&i<=n)return a}else if(!(e.y*o<0)&&r>=0&&r<=n)return!a;return E.current=!0,!0};_.useEffect(()=>{D&&window.requestAnimationFrame(()=>{S(!0)})},[]);function k(e){w.current=null,E.current=!1,s(e)}return _.createElement(ih,{"data-vaul-drawer-direction":m,"data-vaul-drawer":``,"data-vaul-delayed-snap-points":x?`true`:`false`,"data-vaul-snap-points":p&&D?`true`:`false`,"data-vaul-custom-container":g?`true`:`false`,"data-vaul-animate":y?.current?`true`:`false`,...r,ref:C,style:u&&u.length>0?{"--snap-point-height":`${u[d??0]}px`,...t}:t,onPointerDown:e=>{v||(r.onPointerDown==null||r.onPointerDown.call(r,e),w.current={x:e.pageX,y:e.pageY},o(e))},onOpenAutoFocus:e=>{n?.(e),b||e.preventDefault()},onPointerDownOutside:t=>{if(e?.(t),!f||t.defaultPrevented){t.preventDefault();return}l.current&&=!1},onFocusOutside:e=>{if(!f){e.preventDefault();return}},onPointerMove:e=>{if(T.current=e,v||(r.onPointerMove==null||r.onPointerMove.call(r,e),!w.current))return;let t=e.pageY-w.current.y,n=e.pageX-w.current.x,i=e.pointerType===`touch`?10:2;O({x:n,y:t},m,i)?c(e):(Math.abs(n)>i||Math.abs(t)>i)&&(w.current=null)},onPointerUp:e=>{r.onPointerUp==null||r.onPointerUp.call(r,e),w.current=null,E.current=!1,s(e)},onPointerOut:e=>{r.onPointerOut==null||r.onPointerOut.call(r,e),k(T.current)},onContextMenu:e=>{r.onContextMenu==null||r.onContextMenu.call(r,e),T.current&&k(T.current)}})});pg.displayName=`Drawer.Content`;var mg=250,hg=120,gg=_.forwardRef(function({preventCycle:e=!1,children:t,...n},r){let{closeDrawer:i,isDragging:a,snapPoints:o,activeSnapPoint:s,setActiveSnapPoint:c,dismissible:l,handleOnly:u,isOpen:d,onPress:f,onDrag:p}=_h(),m=_.useRef(null),h=_.useRef(!1);function g(){if(h.current){b();return}window.setTimeout(()=>{v()},hg)}function v(){if(a||e||h.current){b();return}if(b(),!o||o.length===0){l||i();return}if(s===o[o.length-1]&&l){i();return}let t=o.findIndex(e=>e===s);if(t===-1)return;let n=o[t+1];c(n)}function y(){m.current=window.setTimeout(()=>{h.current=!0},mg)}function b(){m.current&&window.clearTimeout(m.current),h.current=!1}return _.createElement(`div`,{onClick:g,onPointerCancel:b,onPointerDown:e=>{u&&f(e),y()},onPointerMove:e=>{u&&p(e)},ref:r,"data-vaul-drawer-visible":d?`true`:`false`,"data-vaul-handle":``,"aria-hidden":`true`,...n},_.createElement(`span`,{"data-vaul-handle-hitarea":``,"aria-hidden":`true`},t))});gg.displayName=`Drawer.Handle`;function _g({onDrag:e,onOpenChange:t,open:n,...r}){let{onNestedDrag:i,onNestedOpenChange:a,onNestedRelease:o}=_h();if(!i)throw Error(`Drawer.NestedRoot must be placed in another drawer`);return _.createElement(dg,{nested:!0,open:n,onClose:()=>{a(!1)},onDrag:(t,n)=>{i(t,n),e?.(t,n)},onOpenChange:e=>{e&&a(e),t?.(e)},onRelease:o,...r})}function vg(e){let t=_h(),{container:n=t.container,...r}=e;return _.createElement(Qm,{container:n,...r})}var yg={Root:dg,NestedRoot:_g,Content:pg,Overlay:fg,Trigger:Jm,Portal:vg,Handle:gg,Close:ph,Title:lh,Description:dh},bg=Symbol.for(`react.portal`);function xg(e,t){if(e==null||typeof e==`boolean`)return!1;if(Array.isArray(e))return e.some(e=>xg(e,t));if(_.isValidElement(e)){if(e.type===t)return!0;let n=e.props;return n.children!=null&&xg(n.children,t)}if(typeof e==`string`||typeof e==`number`)return!1;if(typeof e==`object`&&e.$$typeof===bg)return xg(e.children,t);if(typeof e==`object`&&Symbol.iterator in e)return Array.from(e).some(e=>xg(e,t));if(globalThis.process?.env?.NODE_ENV!==`production`){let t=typeof e==`object`?` with keys {${Object.keys(e).join(`, `)}}`:``;console.error(`[treeContainsComponent] A non-renderable value${t} is being passed as a React child. React will throw 'Objects are not valid as a React child' at the real render site. Stringify it (e.g. JSON.stringify) before rendering.`,e)}return!1}var Sg=`data-matrx-floating-layer`,Cg=Symbol.for(`ai-matrx.design-system.modal-layer-registry`),wg=globalThis,Tg=wg[Cg]??={count:0,listeners:new Set};function Eg(){for(let e of Tg.listeners)e()}var Dg=[`wheel`,`touchmove`];function Og(e){Pg(e.target)&&e.stopPropagation()}function kg(e){if(typeof document<`u`&&document.body)for(let t of Dg)e?document.body.addEventListener(t,Og,{passive:!0}):document.body.removeEventListener(t,Og)}function Ag(){Tg.count+=1,Tg.count===1&&kg(!0),Eg();let e=!1;return()=>{e||(e=!0,Tg.count=Math.max(0,Tg.count-1),Tg.count===0&&kg(!1),Eg())}}function jg(){return Tg.count>0}function Mg(e){_.useLayoutEffect(()=>e?Ag():void 0,[e])}var Ng=`[data-radix-popper-content-wrapper]`;function Pg(e){return e instanceof Element?e.closest(`[data-matrx-floating-layer]`)?!0:e.closest(Ng)!==null&&e.ownerDocument.querySelector(`[data-matrx-floating-layer]`)!==null:!1}function Fg(e){return t=>{e?.(t),Pg(t.target)&&t.preventDefault()}}var Ig=e=>e.preventDefault(),Lg=_.forwardRef(({children:e},t)=>{let[n]=_.useState(()=>typeof document>`u`?null:document.activeElement);return(0,j.jsx)(rp,{asChild:!0,trapped:!1,loop:!1,onMountAutoFocus:Ig,onUnmountAutoFocus:e=>{e.preventDefault();let t=document.activeElement;(!t||t===document.body||!t.isConnected)&&jg()&&n instanceof HTMLElement&&n.isConnected&&n.focus({preventScroll:!0})},children:(0,j.jsx)(Vi,{ref:t,[Sg]:``,style:{pointerEvents:`auto`},children:e})})});Lg.displayName=`FloatingLayer`;var Rg=Symbol.for(`ai-matrx.design-system.dialog-modal-context`),zg=globalThis,Bg=zg[Rg]??=_.createContext(!0);function Vg({children:e,modal:t}){return(0,j.jsx)(Bg.Provider,{value:t,children:e})}function Hg(){return _.useContext(Bg)}var Ug=_.createContext(`bottom`),Wg=()=>_.useContext(Ug),Gg=({children:e,shouldScaleBackground:t=!0,onOpenChange:n,...r})=>{let i=r.direction??`bottom`,a=e=>{e&&typeof document<`u`&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),n?.(e)};return(0,j.jsx)(Vg,{modal:!0,children:(0,j.jsx)(Ug.Provider,{value:i,children:(0,j.jsx)(yg.Root,{modal:!0,shouldScaleBackground:t,...r,onOpenChange:a,direction:i,children:e})})})};Gg.displayName=`Drawer`;var Kg=yg.Trigger,qg=yg.Portal;yg.Close;var Jg=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(yg.Overlay,{ref:n,"data-slot":`drawer-overlay`,className:Y(`fixed inset-0 z-[10000] bg-[var(--matrx-overlay-scrim)]`,e),...t}));Jg.displayName=yg.Overlay.displayName;var Yg=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(yg.Description,{ref:n,"data-slot":`drawer-description`,className:Y(`text-sm text-muted-foreground`,e),...t}));Yg.displayName=yg.Description.displayName;var Xg=_.forwardRef(({onInteractOutside:e,...t},n)=>(Mg(!0),(0,j.jsx)(yg.Content,{"data-matrx-entrance":`none`,...t,ref:n,"aria-modal":`true`,onInteractOutside:Fg(e)})));Xg.displayName=`DrawerContentPrimitive`;var Zg={bottom:`inset-x-0 bottom-0 mt-24 flex-col rounded-t-[10px] border-t pb-safe`,top:`inset-x-0 top-0 mb-24 flex-col rounded-b-[10px] border-b pt-safe`,left:`inset-y-0 left-0 mr-24 flex-row rounded-r-[10px] border-r`,right:`inset-y-0 right-0 ml-24 flex-row rounded-l-[10px] border-l`},Qg={bottom:{adaptive:`h-auto max-h-[90dvh]`,full:`h-[92dvh]`},top:{adaptive:`h-auto max-h-[90dvh]`,full:`h-[92dvh]`},left:{adaptive:`w-auto max-w-[92vw]`,full:`h-dvh w-[92vw] max-w-sm`},right:{adaptive:`w-auto max-w-[92vw]`,full:`h-dvh w-[92vw] max-w-sm`}},$g=_.forwardRef(({className:e,children:t,size:n=`adaptive`,showHandle:r,...i},a)=>{let o=Wg(),s=xg(t,Yg)||xg(t,yg.Description),c=r??(o===`bottom`||o===`top`);return(0,j.jsxs)(qg,{children:[(0,j.jsx)(Jg,{}),(0,j.jsxs)(Xg,{ref:a,"data-slot":`drawer-content`,"data-direction":o,className:Y(`fixed z-[10000] flex min-w-0 border bg-background`,Zg[o],Qg[o][n],e),...s?{}:{"aria-describedby":void 0},...i,children:[c?(0,j.jsx)(`div`,{"aria-hidden":!0,"data-slot":`drawer-handle`,className:Y(`flex min-h-11 w-full shrink-0 cursor-grab items-center justify-center active:cursor-grabbing`,o===`top`&&`order-last`),children:(0,j.jsx)(`div`,{className:`h-1 w-[100px] rounded-full bg-muted`})}):null,t]})]})});$g.displayName=`DrawerContent`;var e_=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(yg.Title,{ref:n,"data-slot":`drawer-title`,className:Y(`text-lg font-semibold leading-none tracking-tight`,e),...t}));e_.displayName=yg.Title.displayName;var t_=Symbol.for(`@ai-matrx/design-system/error-actions`),n_=globalThis,r_=n_[t_]??(n_[t_]=_.createContext(null));function i_(){return _.useContext(r_)}function a_(e){let t=i_();return t?(0,j.jsx)(j.Fragment,{children:t(e)}):null}var o_=_.forwardRef(function({as:e=`p`,message:t,title:n,error:r,operation:i,records:a,unsavedInput:o,origin:s,children:c,...l},u){let d=e,f={...t===void 0?{}:{message:t},...n===void 0?{}:{title:n},...r===void 0?{}:{error:r},...i===void 0?{}:{operation:i},...a===void 0?{}:{records:a},...o===void 0?{}:{unsavedInput:o},...s===void 0?{}:{origin:s}};return(0,j.jsxs)(d,{ref:u,role:`alert`,"data-error-box":``,...l,children:[c??t,(0,j.jsx)(a_,{...f})]})}),s_=Zf(`inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-0 disabled:pointer-events-none disabled:opacity-50 active:scale-[0.98] [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow-sm hover:bg-primary/90`,primary:`bg-primary text-primary-foreground shadow-sm hover:bg-primary/90`,destructive:`bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90`,success:`bg-success text-success-foreground shadow-sm hover:bg-success/90`,outline:`border border-border bg-card shadow-sm hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`,subtle:`border border-transparent bg-muted/50 text-foreground hover:border-border hover:bg-muted`},size:{xs:`h-6 rounded-md px-1 text-xs`,sm:`h-8 rounded-md px-3 text-xs`,default:`h-9 px-4 py-2`,md:`h-9 px-4 py-2`,lg:`h-10 rounded-md px-6`,xl:`h-12 px-8 py-3 text-base`,"2xl":`h-14 px-10 py-3 text-base`,"3xl":`h-16 px-12 py-3 text-base`,icon:`h-9 w-9`,"icon-sm":`h-7 w-7`,roundIcon:`h-8 w-8 rounded-full p-0`}},defaultVariants:{variant:`default`,size:`default`}}),c_=new Set([`xs`,`sm`,`default`,`md`,`lg`,`icon`,`icon-sm`,`roundIcon`]),l_=new Set([`icon`,`icon-sm`,`roundIcon`]),u_=_.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>{let o=r?Vi:`button`,s=n??`default`;return(0,j.jsx)(o,{className:Y(s_({variant:t,size:n,className:e})),"data-matrx-button":``,"data-tap-floor":c_.has(s)?``:void 0,"data-tap-floor-square":l_.has(s)?``:void 0,ref:a,...i})});u_.displayName=`Button`;var d_=`(max-width: 767px)`;function f_(){return typeof window<`u`&&typeof window.matchMedia==`function`}function p_(e){if(!f_())return()=>{};let t=window.matchMedia(d_);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)}function m_(){return f_()?window.matchMedia(d_).matches:typeof window<`u`&&window.innerWidth<768}function h_(){return!1}function g_(){return _.useSyncExternalStore(p_,m_,h_)}var __=Object.defineProperty,v_=(e,t)=>__(e,`name`,{value:t,configurable:!0}),y_=!1;function b_(){let[e,t]=_.useState(y_);return _.useEffect(()=>{y_||(y_=!0,t(!0))},[]),e}v_(b_,`useIsHydrated`);var x_=_.useSyncExternalStore;function S_(){return()=>{}}v_(S_,`subscribe`);function C_(){return x_(S_,()=>!0,()=>!1)}v_(C_,`useIsHydratedModern`);var w_=typeof x_==`function`?C_:b_,T_=Object.defineProperty,E_=(e,t)=>T_(e,`name`,{value:t,configurable:!0}),D_=`rovingFocusGroup.onEntryFocus`,O_={bubbles:!1,cancelable:!0},k_=`RovingFocusGroup`,[A_,j_,M_]=Df(k_),[N_,P_]=Ii(k_,[M_]),[F_,I_]=N_(k_),L_=_.forwardRef(E_(function(e,t){return(0,j.jsx)(A_.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,j.jsx)(A_.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,j.jsx)(R_,{...e,ref:t})})})},`RovingFocusGroup`)),R_=_.forwardRef(E_(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=_.useRef(null),p=H(t,f),m=Vf(a),[h,g]=Tc({prop:o,defaultProp:s??null,onChange:c,caller:k_}),[v,y]=_.useState(!1),b=aa(l),x=j_(n),S=_.useRef(!1),[C,w]=_.useState(0);return _.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(D_,b),()=>e.removeEventListener(D_,b)},[b]),(0,j.jsx)(F_,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:_.useCallback(e=>g(e),[g]),onItemShiftTab:_.useCallback(()=>y(!0),[]),onFocusableItemAdd:_.useCallback(()=>w(e=>e+1),[]),onFocusableItemRemove:_.useCallback(()=>w(e=>e-1),[]),children:(0,j.jsx)(W.div,{tabIndex:v||C===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:V(e.onMouseDown,()=>{S.current=!0}),onFocus:V(e.onFocus,e=>{let t=!S.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(D_,O_);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=x().filter(e=>e.focusable);W_([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}S.current=!1}),onBlur:V(e.onBlur,()=>y(!1))})})},`RovingFocusGroupImpl`)),z_=`RovingFocusGroupItem`,B_=_.forwardRef(E_(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=Ta(),l=a||c,u=I_(z_,n),d=u.currentTabStopId===l,f=j_(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u,g=w_();return ba(()=>{if(g&&r)return p(),()=>m()},[g,r,p,m]),_.useEffect(()=>{if(!g&&r)return p(),()=>m()},[g,r,p,m]),(0,j.jsx)(A_.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,j.jsx)(W.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:V(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:V(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:V(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=U_(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?G_(n,r+1):n.slice(r+1)}setTimeout(()=>W_(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})},`RovingFocusGroupItem`)),V_={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function H_(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}E_(H_,`getDirectionAwareKey`);function U_(e,t,n){let r=H_(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return V_[r]}E_(U_,`getFocusIntent`);function W_(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}E_(W_,`focusFirst`);function G_(e,t){return e.map((n,r)=>e[(t+r)%e.length])}E_(G_,`wrapArray`);var K_=L_,q_=B_,J_=Object.defineProperty,Y_=(e,t)=>J_(e,`name`,{value:t,configurable:!0}),X_=[`Enter`,` `],Z_=[`ArrowDown`,`PageUp`,`Home`],Q_=[`ArrowUp`,`PageDown`,`End`],$_=[...Z_,...Q_],ev={ltr:[...X_,`ArrowRight`],rtl:[...X_,`ArrowLeft`]},tv={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},nv=`Menu`,[rv,iv,av]=Df(nv),[ov,sv]=Ii(nv,[av,Ws,P_]),cv=Ws(),lv=P_(),[uv,dv]=ov(nv),[fv,pv]=ov(nv),mv=Y_(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=cv(t),[c,l]=_.useState(null),u=_.useRef(!1),d=aa(a),f=Vf(i);return _.useEffect(()=>{let e=Y_(()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},`handleKeyDown`),t=Y_(()=>u.current=!1,`handlePointer`);return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),_.useEffect(()=>{if(!n)return;let e=Y_(()=>d(!1),`handleBlur`);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,d]),(0,j.jsx)(rc,{...s,children:(0,j.jsx)(uv,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,j.jsx)(fv,{scope:t,onClose:_.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})},`Menu`),hv=_.forwardRef(Y_(function(e,t){let{__scopeMenu:n,...r}=e,i=cv(n);return(0,j.jsx)(ic,{...i,...r,ref:t})},`MenuAnchor`)),gv=`MenuPortal`,[_v,vv]=ov(gv,{forceMount:void 0}),yv=Y_(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=dv(gv,t);return(0,j.jsx)(_v,{scope:t,forceMount:n,children:(0,j.jsx)(dc,{present:n||a.open,children:(0,j.jsx)(sc,{asChild:!0,container:i,children:r})})})},`MenuPortal`),bv=`MenuContent`,[xv,Sv]=ov(bv),Cv=_.forwardRef(Y_(function(e,t){let n=vv(bv,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=dv(bv,e.__scopeMenu),o=pv(bv,e.__scopeMenu);return(0,j.jsx)(rv.Provider,{scope:e.__scopeMenu,children:(0,j.jsx)(dc,{present:r||a.open,children:(0,j.jsx)(rv.Slot,{scope:e.__scopeMenu,children:o.modal?(0,j.jsx)(wv,{...i,ref:t}):(0,j.jsx)(Tv,{...i,ref:t})})})})},`MenuContent`)),wv=_.forwardRef(Y_(function(e,t){let n=dv(bv,e.__scopeMenu),r=_.useRef(null),i=H(t,r);return _.useEffect(()=>{let e=r.current;if(e)return Rm(e)},[]),(0,j.jsx)(Dv,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:V(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentModal`)),Tv=_.forwardRef(Y_(function(e,t){let n=dv(bv,e.__scopeMenu);return(0,j.jsx)(Dv,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentNonModal`)),Ev=Bi(`MenuContent.ScrollLock`),Dv=_.forwardRef(Y_(function(e,t){let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=dv(bv,n),v=pv(bv,n),y=cv(n),b=lv(n),x=iv(n),[S,C]=_.useState(null),w=_.useRef(null),T=H(t,w,g.onContentChange),E=_.useRef(0),D=_.useRef(``),O=_.useRef(0),k=_.useRef(null),A=_.useRef(`right`),M=_.useRef(0),N=m?km:_.Fragment,P=m?{as:Ev,allowPinchZoom:!0}:void 0,F=Y_(e=>{let t=D.current+e,n=x().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=iy(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;Y_((function e(t){D.current=t,window.clearTimeout(E.current),t!==``&&(E.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(t),o&&setTimeout(()=>o.focus())},`handleTypeaheadSearch`);_.useEffect(()=>()=>window.clearTimeout(E.current),[]),bp();let I=_.useCallback(e=>A.current===k.current?.side&&oy(e,k.current?.area),[]);return(0,j.jsx)(xv,{scope:n,searchRef:D,onItemEnter:_.useCallback(e=>{I(e)&&e.preventDefault()},[I]),onItemLeave:_.useCallback(e=>{I(e)||(w.current?.focus(),C(null))},[I]),onTriggerLeave:_.useCallback(e=>{I(e)&&e.preventDefault()},[I]),pointerGraceTimerRef:O,onPointerGraceIntentChange:_.useCallback(e=>{k.current=e},[]),children:(0,j.jsx)(N,{...P,children:(0,j.jsx)(rp,{asChild:!0,trapped:i,onMountAutoFocus:V(a,e=>{e.preventDefault(),w.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,j.jsx)(pa,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,j.jsx)(K_,{asChild:!0,...b,dir:v.dir,orientation:`vertical`,loop:r,currentTabStopId:S,onCurrentTabStopIdChange:C,onEntryFocus:V(c,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,j.jsx)(ac,{role:`menu`,"aria-orientation":`vertical`,"data-state":$v(g.open),"data-radix-menu-content":``,dir:v.dir,...y,...h,ref:T,style:{outline:`none`,...h.style},onKeyDown:V(h.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&F(e.key));let i=w.current;if(e.target!==i||!$_.includes(e.key))return;e.preventDefault();let a=x().filter(e=>!e.disabled).map(e=>e.ref.current);Q_.includes(e.key)&&a.reverse(),ny(a)}),onBlur:V(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),D.current=``)}),onPointerMove:V(e.onPointerMove,sy(e=>{let t=e.target,n=M.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>M.current?`right`:`left`;A.current=t,M.current=e.clientX}}))})})})})})})},`MenuContentImpl`)),Ov=_.forwardRef(Y_(function(e,t){let{__scopeMenu:n,...r}=e;return(0,j.jsx)(W.div,{role:`group`,...r,ref:t})},`MenuGroup`)),kv=_.forwardRef(Y_(function(e,t){let{__scopeMenu:n,...r}=e;return(0,j.jsx)(W.div,{...r,ref:t})},`MenuLabel`)),Av=`MenuItem`,jv=`menu.itemSelect`,Mv=_.forwardRef(Y_(function(e,t){let{disabled:n=!1,onSelect:r,...i}=e,a=_.useRef(null),o=pv(Av,e.__scopeMenu),s=Sv(Av,e.__scopeMenu),c=H(t,a),l=_.useRef(!1),u=Y_(()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(jv,{bubbles:!0,cancelable:!0});e.addEventListener(jv,e=>r?.(e),{once:!0}),na(e,t),t.defaultPrevented?l.current=!1:o.onClose()}},`handleSelect`);return(0,j.jsx)(Nv,{...i,ref:c,disabled:n,onClick:V(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:V(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:V(e.onKeyDown,e=>{n||e.target!==e.currentTarget||(s.searchRef.current===``||e.key!==` `)&&X_.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},`MenuItem`)),Nv=_.forwardRef(Y_(function(e,t){let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=Sv(Av,n),s=lv(n),c=_.useRef(null),l=H(t,c),[u,d]=_.useState(!1),[f,p]=_.useState(``);return _.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,j.jsx)(rv.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,j.jsx)(q_,{asChild:!0,...s,focusable:!r,children:(0,j.jsx)(W.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:V(e.onPointerMove,sy(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:V(e.onPointerLeave,sy(e=>o.onItemLeave(e))),onFocus:V(e.onFocus,()=>d(!0)),onBlur:V(e.onBlur,()=>d(!1))})})})},`MenuItemImpl`)),Pv=_.forwardRef(Y_(function(e,t){let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,j.jsx)(Vv,{scope:e.__scopeMenu,checked:n,children:(0,j.jsx)(Mv,{role:`menuitemcheckbox`,"aria-checked":ey(n)?`mixed`:n,...i,ref:t,"data-state":ty(n),onSelect:V(i.onSelect,()=>r?.(ey(n)?!0:!n),{checkForDefaultPrevented:!1})})})},`MenuCheckboxItem`)),[Fv,Iv]=ov(`MenuRadioGroup`,{value:void 0,onValueChange:Y_(()=>{},`onValueChange`)}),Lv=_.forwardRef(Y_(function(e,t){let{value:n,onValueChange:r,...i}=e,a=aa(r);return(0,j.jsx)(Fv,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,j.jsx)(Ov,{...i,ref:t})})},`MenuRadioGroup`)),Rv=`MenuRadioItem`,zv=_.forwardRef(Y_(function(e,t){let{value:n,...r}=e,i=Iv(Rv,e.__scopeMenu),a=n===i.value;return(0,j.jsx)(Vv,{scope:e.__scopeMenu,checked:a,children:(0,j.jsx)(Mv,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":ty(a),onSelect:V(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})},`MenuRadioItem`)),Bv=`MenuItemIndicator`,[Vv,Hv]=ov(Bv,{checked:!1}),Uv=_.forwardRef(Y_(function(e,t){let{__scopeMenu:n,forceMount:r,...i}=e,a=Hv(Bv,n);return(0,j.jsx)(dc,{present:r||ey(a.checked)||a.checked===!0,children:(0,j.jsx)(W.span,{...i,ref:t,"data-state":ty(a.checked)})})},`MenuItemIndicator`)),Wv=_.forwardRef(Y_(function(e,t){let{__scopeMenu:n,...r}=e;return(0,j.jsx)(W.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})},`MenuSeparator`)),Gv=`MenuSub`,[Kv,qv]=ov(Gv),Jv=Y_(e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=dv(Gv,t),o=cv(t),[s,c]=_.useState(null),[l,u]=_.useState(null),d=aa(i);return _.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,j.jsx)(rc,{...o,children:(0,j.jsx)(uv,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,j.jsx)(Kv,{scope:t,contentId:Ta(),triggerId:Ta(),trigger:s,onTriggerChange:c,children:n})})})},`MenuSub`),Yv=`MenuSubTrigger`,Xv=_.forwardRef(Y_(function(e,t){let n=dv(Yv,e.__scopeMenu),r=pv(Yv,e.__scopeMenu),i=qv(Yv,e.__scopeMenu),a=Sv(Yv,e.__scopeMenu),o=_.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=_.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);_.useEffect(()=>u,[u]),_.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]);let d=H(t,i.onTriggerChange);return(0,j.jsx)(hv,{asChild:!0,...l,children:(0,j.jsx)(Nv,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":n.open?i.contentId:void 0,"data-state":$v(n.open),...e,ref:d,onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:V(e.onPointerMove,sy(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:V(e.onPointerLeave,sy(e=>{u();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:V(e.onKeyDown,t=>{e.disabled||t.target!==t.currentTarget||(a.searchRef.current===``||t.key!==` `)&&ev[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})},`MenuSubTrigger`)),Zv=`MenuSubContent`,Qv=_.forwardRef(Y_(function(e,t){let n=vv(bv,e.__scopeMenu),{forceMount:r=n.forceMount,align:i=`start`,...a}=e,o=dv(bv,e.__scopeMenu),s=pv(bv,e.__scopeMenu),c=qv(Zv,e.__scopeMenu),l=_.useRef(null),u=H(t,l);return(0,j.jsx)(rv.Provider,{scope:e.__scopeMenu,children:(0,j.jsx)(dc,{present:r||o.open,children:(0,j.jsx)(rv.Slot,{scope:e.__scopeMenu,children:(0,j.jsx)(Dv,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:u,align:i,side:s.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:V(e.onFocusOutside,e=>{e.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:V(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:V(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=tv[s.dir].includes(e.key);t&&n&&(o.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})},`MenuSubContent`));function $v(e){return e?`open`:`closed`}Y_($v,`getOpenState`);function ey(e){return e===`indeterminate`}Y_(ey,`isIndeterminate`);function ty(e){return ey(e)?`indeterminate`:e?`checked`:`unchecked`}Y_(ty,`getCheckedState`);function ny(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}Y_(ny,`focusFirst`);function ry(e,t){return e.map((n,r)=>e[(t+r)%e.length])}Y_(ry,`wrapArray`);function iy(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=ry(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}Y_(iy,`getNextMatch`);function ay(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}Y_(ay,`isPointInPolygon`);function oy(e,t){return t?ay({x:e.clientX,y:e.clientY},t):!1}Y_(oy,`isPointerInGraceArea`);function sy(e){return t=>t.pointerType===`mouse`?e(t):void 0}Y_(sy,`whenMouse`);var cy=mv,ly=hv,uy=yv,dy=Cv,fy=kv,py=Mv,my=Pv,hy=Lv,gy=zv,_y=Uv,vy=Wv,yy=Jv,by=Xv,xy=Qv,Sy=Object.defineProperty,Cy=(e,t)=>Sy(e,`name`,{value:t,configurable:!0}),wy=`ContextMenu`,[Ty,Ey]=Ii(wy,[sv]),Dy=sv(),[Oy,ky]=Ty(wy),Ay=Cy(e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,dir:a,modal:o=!0}=e,s=_.useRef(!1),[c,l]=Tc({prop:i,defaultProp:!1,onChange:r,caller:wy}),u=Dy(t);return(0,j.jsx)(Oy,{scope:t,open:c,onOpenChange:l,modal:o,hasInteractedRef:s,children:(0,j.jsx)(cy,{...u,dir:a,open:c,onOpenChange:l,modal:o,children:n})})},`ContextMenu`),jy=`ContextMenuTrigger`,My=_.forwardRef(Cy(function(e,t){let{__scopeContextMenu:n,disabled:r=!1,...i}=e,a=ky(jy,n),o=Dy(n),[s,c]=_.useState({x:0,y:0}),l=_.useMemo(()=>({current:{getBoundingClientRect:Cy(()=>DOMRect.fromRect({width:0,height:0,...s}),`getBoundingClientRect`)}}),[s]),u=_.useRef(0),d=_.useCallback(()=>window.clearTimeout(u.current),[]),f=Cy(e=>{a.hasInteractedRef.current=!0,c({x:e.clientX,y:e.clientY}),a.onOpenChange(!0)},`handleOpen`);return _.useEffect(()=>d,[d]),_.useEffect(()=>void(r&&d()),[r,d]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(ly,{...o,virtualRef:l}),(0,j.jsx)(W.span,{"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,...i,ref:t,style:{WebkitTouchCallout:`none`,...e.style},onContextMenu:r?e.onContextMenu:V(e.onContextMenu,e=>{d(),f(e),e.preventDefault()}),onPointerDown:r?e.onPointerDown:V(e.onPointerDown,Ky(e=>{d(),a.open&&a.onOpenChange(!1),u.current=window.setTimeout(()=>f(e),700)})),onPointerMove:r?e.onPointerMove:V(e.onPointerMove,Ky(d)),onPointerCancel:r?e.onPointerCancel:V(e.onPointerCancel,Ky(d)),onPointerUp:r?e.onPointerUp:V(e.onPointerUp,Ky(d))})]})},`ContextMenuTrigger`)),Ny=Cy(e=>{let{__scopeContextMenu:t,...n}=e,r=Dy(t);return(0,j.jsx)(uy,{...r,...n})},`ContextMenuPortal`),Py=`ContextMenuContent`,Fy=_.forwardRef(Cy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=ky(Py,n),a=Dy(n),o=_.useRef(!1);return(0,j.jsx)(dy,{...a,...r,ref:t,side:`right`,sideOffset:2,align:`start`,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&o.current&&t.preventDefault(),o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),!t.defaultPrevented&&!i.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`ContextMenuContent`)),Iy=_.forwardRef(Cy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Dy(n);return(0,j.jsx)(fy,{...i,...r,ref:t})},`ContextMenuLabel`)),Ly=_.forwardRef(Cy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Dy(n);return(0,j.jsx)(py,{...i,...r,ref:t})},`ContextMenuItem`)),Ry=_.forwardRef(Cy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Dy(n);return(0,j.jsx)(my,{...i,...r,ref:t})},`ContextMenuCheckboxItem`)),zy=_.forwardRef(Cy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Dy(n);return(0,j.jsx)(gy,{...i,...r,ref:t})},`ContextMenuRadioItem`)),By=_.forwardRef(Cy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Dy(n);return(0,j.jsx)(_y,{...i,...r,ref:t})},`ContextMenuItemIndicator`)),Vy=_.forwardRef(Cy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Dy(n);return(0,j.jsx)(vy,{...i,...r,ref:t})},`ContextMenuSeparator`)),Hy=`ContextMenuSub`,Uy=Cy(e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,defaultOpen:a}=e,o=Dy(t),[s,c]=Tc({prop:i,defaultProp:a??!1,onChange:r,caller:Hy});return(0,j.jsx)(yy,{...o,open:s,onOpenChange:c,children:n})},`ContextMenuSub`),Wy=_.forwardRef(Cy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Dy(n);return(0,j.jsx)(by,{...i,...r,ref:t})},`ContextMenuSubTrigger`)),Gy=_.forwardRef(Cy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Dy(n);return(0,j.jsx)(xy,{...i,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`ContextMenuSubContent`));function Ky(e){return t=>t.pointerType===`mouse`?void 0:e(t)}Cy(Ky,`whenTouchOrPen`);var qy=Ay,Jy=My,Yy=Ny,Xy=Fy,Zy=Iy,Qy=Ly,$y=Ry,eb=zy,tb=By,nb=Vy,rb=Uy,ib=Wy,ab=Gy,ob=2;function sb(){let[e,t]=(0,_.useState)({top:!1,bottom:!1}),n=(0,_.useRef)(null),r=(0,_.useRef)(null),i=(0,_.useCallback)(()=>{let e=n.current;if(!e)return;let r=e.scrollHeight-e.clientHeight>ob,i={top:r&&e.scrollTop>ob,bottom:r&&e.scrollTop+e.clientHeight<e.scrollHeight-ob};t(e=>e.top===i.top&&e.bottom===i.bottom?e:i)},[]),a=(0,_.useCallback)(e=>{if(r.current?.(),r.current=null,n.current=e,!e)return;e.addEventListener(`scroll`,i,{passive:!0});let t=typeof ResizeObserver>`u`?null:new ResizeObserver(i);t?.observe(e);let a=new MutationObserver(i);a.observe(e,{childList:!0,subtree:!0}),r.current=()=>{e.removeEventListener(`scroll`,i),t?.disconnect(),a.disconnect()},requestAnimationFrame(i)},[i]);return(0,_.useEffect)(()=>()=>r.current?.(),[]),{ref:a,state:e,fadeProps:{"data-fade-top":e.top?``:void 0,"data-fade-bottom":e.bottom?``:void 0,className:`matrx-scroll-fade`}}}var cb=.6,lb=48;function ub(...e){return t=>{for(let n of e)typeof n==`function`?n(t):n&&(n.current=t)}}function db({side:e,scroller:t}){let n=_.useRef(null),r=e===`top`?-1:1,i=_.useCallback(()=>{n.current!==null&&cancelAnimationFrame(n.current),n.current=null},[]),a=_.useCallback(()=>{i();let e=performance.now(),a=o=>{let s=t.current;if(!s)return i();s.scrollTop+=r*cb*(o-e),e=o,n.current=requestAnimationFrame(a)};n.current=requestAnimationFrame(a)},[r,t,i]);return _.useEffect(()=>i,[i]),(0,j.jsx)(`div`,{"aria-hidden":!0,"data-menu-scroll-edge":e,className:`matrx-menu-scroll-edge`,children:(0,j.jsx)(`div`,{className:`matrx-menu-scroll-fade`,children:(0,j.jsx)(`div`,{"data-menu-scroll-button":``,className:`matrx-menu-scroll-button`,onPointerEnter:e=>{e.pointerType!==`touch`&&a()},onPointerLeave:i,onPointerDown:e=>{e.preventDefault();let n=t.current;n&&(n.scrollTop+=r*Math.max(n.clientHeight-lb,lb))},children:e===`top`?(0,j.jsx)(Jf,{}):(0,j.jsx)(qf,{})})})})}function fb(...e){let t=sb(),n=_.useRef(null);return{ref:_.useCallback(ub(n,t.ref,...e),[t.ref,...e]),wrap:e=>(0,j.jsxs)(j.Fragment,{children:[t.state.top?(0,j.jsx)(db,{side:`top`,scroller:n}):null,e,t.state.bottom?(0,j.jsx)(db,{side:`bottom`,scroller:n}):null]}),surfaceClassName:`matrx-menu-surface`}}function pb(e,t){let n=_.useRef(null);return{ref:_.useCallback(t=>{n.current=t,typeof e==`function`?e(t):e&&(e.current=t)},[e]),onFocusOutside:e=>{if(t?.(e),e.defaultPrevented)return;let r=e.target,i=n.current?.id;r instanceof Element&&i&&r.getAttribute(`role`)===`menu`&&Array.from(r.querySelectorAll(`[aria-controls]`)).some(e=>e.getAttribute(`aria-controls`)===i)&&e.preventDefault()}}}var mb=qy,hb=Jy,gb=rb,_b=`z-[10001] min-w-[8rem] max-h-[var(--radix-context-menu-content-available-height)] overflow-y-auto overflow-x-hidden overscroll-contain rounded-md border bg-popover p-1 text-popover-foreground`,vb=`relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,yb=`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,bb=_.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,j.jsxs)(ib,{ref:i,"data-slot":`context-menu-sub-trigger`,className:Y(`flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground`,t&&`pl-8`,e),...r,children:[n,(0,j.jsx)(Kf,{className:`ml-auto h-4 w-4`})]}));bb.displayName=ib.displayName;var xb=_.forwardRef(({className:e,container:t,onFocusOutside:n,children:r,...i},a)=>{let o=X(t),s=pb(a,n),c=fb(s.ref);return(0,j.jsx)(Yy,{container:o,children:(0,j.jsx)(ab,{ref:c.ref,onFocusOutside:s.onFocusOutside,"data-slot":`context-menu-sub-content`,className:Y(_b,c.surfaceClassName,`shadow-lg`,Gu,e),...i,children:c.wrap(r)})})});xb.displayName=ab.displayName;var Sb=_.forwardRef(({className:e,container:t,children:n,...r},i)=>{let a=X(t),o=fb(i);return(0,j.jsx)(Yy,{container:a,children:(0,j.jsx)(Xy,{ref:o.ref,"data-slot":`context-menu-content`,className:Y(_b,o.surfaceClassName,`shadow-md`,Gu,e),...r,children:o.wrap(n)})})});Sb.displayName=Xy.displayName;var Cb=_.forwardRef(({className:e,inset:t,...n},r)=>(0,j.jsx)(Qy,{ref:r,"data-slot":`context-menu-item`,className:Y(vb,`gap-2 [&>svg]:size-4 [&>svg]:shrink-0`,t&&`pl-8`,e),...n}));Cb.displayName=Qy.displayName;var wb=_.forwardRef(({className:e,children:t,...n},r)=>(0,j.jsxs)($y,{ref:r,"data-slot":`context-menu-checkbox-item`,className:Y(yb,e),...n,children:[(0,j.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(tb,{children:(0,j.jsx)(Wf,{className:`h-4 w-4`})})}),t]}));wb.displayName=$y.displayName;var Tb=_.forwardRef(({className:e,children:t,...n},r)=>(0,j.jsxs)(eb,{ref:r,"data-slot":`context-menu-radio-item`,className:Y(yb,e),...n,children:[(0,j.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(tb,{children:(0,j.jsx)(Gf,{className:`h-4 w-4 fill-current`})})}),t]}));Tb.displayName=eb.displayName;var Eb=_.forwardRef(({className:e,inset:t,...n},r)=>(0,j.jsx)(Zy,{ref:r,"data-slot":`context-menu-label`,className:Y(`px-2 py-1.5 text-sm font-semibold text-foreground`,t&&`pl-8`,e),...n}));Eb.displayName=Zy.displayName;var Db=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(nb,{ref:n,"data-slot":`context-menu-separator`,className:Y(`-mx-1 my-1 h-px bg-border`,e),...t}));Db.displayName=nb.displayName;var Ob=Object.defineProperty,kb=(e,t)=>Ob(e,`name`,{value:t,configurable:!0});function Ab(e,[t,n]){return Math.min(n,Math.max(t,e))}kb(Ab,`clamp`);var jb=Object.defineProperty,Mb=(e,t)=>jb(e,`name`,{value:t,configurable:!0});function Nb(e){let t=_.useRef({value:e,previous:e});return _.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}Mb(Nb,`usePrevious`);var Pb=Object.defineProperty,$=(e,t)=>Pb(e,`name`,{value:t,configurable:!0}),Fb=[` `,`Enter`,`ArrowUp`,`ArrowDown`],Ib=[` `,`Enter`],Lb=`Select`,[Rb,zb,Bb]=Df(Lb),[Vb,Hb]=Ii(Lb,[Bb,Ws]),Ub=Ws(),[Wb,Gb]=Vb(Lb),[Kb,qb]=Vb(Lb);function Jb(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:m,internal_do_not_use_render:h}=e,g=Ub(t),[v,y]=_.useState(null),[b,x]=_.useState(null),[S,C]=_.useState(!1),w=Vf(l),[T,E]=Tc({prop:r,defaultProp:i??!1,onChange:a,caller:Lb}),[D,O]=Tc({prop:o,defaultProp:s,onChange:c,caller:Lb}),k=_.useRef(null),A=_.useRef(D);_.useEffect(()=>{let e=m?v?.ownerDocument.getElementById(m):v?.form;if(e instanceof HTMLFormElement){let t=$(()=>O(A.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[m,v,O]);let M=!v||!!m||!!v.closest(`form`),[N,P]=_.useState(new Set),F=Ta(),I=Array.from(N).map(e=>e.props.value).join(`;`),L=_.useCallback(e=>{P(t=>new Set(t).add(e))},[]),ee=_.useCallback(e=>{P(t=>{let n=new Set(t);return n.delete(e),n})},[]),te={required:p,trigger:v,onTriggerChange:y,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:F,value:D,onValueChange:O,open:T,onOpenChange:E,dir:w,triggerPointerDownPosRef:k,disabled:f,name:u,autoComplete:d,form:m,nativeOptions:N,nativeSelectKey:I,isFormControl:M};return(0,j.jsx)(rc,{...g,children:(0,j.jsx)(Wb,{scope:t,...te,children:(0,j.jsx)(Rb.Provider,{scope:t,children:(0,j.jsx)(Kb,{scope:t,onNativeOptionAdd:L,onNativeOptionRemove:ee,children:Rx(h)?h(te):n})})})})}$(Jb,`SelectProvider`);var Yb=$(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,j.jsx)(Jb,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,j.jsxs)(j.Fragment,{children:[n,e?(0,j.jsx)(Lx,{__scopeSelect:t}):null]})})},`Select`),Xb=`SelectTrigger`,Zb=_.forwardRef($(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,a=Ub(n),o=Gb(Xb,n),s=o.disabled||r,c=H(t,o.onTriggerChange),l=zb(n),u=_.useRef(`touch`),[d,f,p]=Bx(e=>{let t=l().filter(e=>!e.disabled),n=Vx(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),m=$(e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,j.jsx)(ic,{asChild:!0,...a,children:(0,j.jsx)(W.button,{type:`button`,role:`combobox`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":zx(o.value)?``:void 0,...i,ref:c,onClick:V(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:V(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(m(e),e.preventDefault())}),onKeyDown:V(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&f(e.key),!(t&&e.key===` `)&&Fb.includes(e.key)&&(m(),e.preventDefault())})})})},`SelectTrigger`)),Qb=`SelectValue`,$b=_.forwardRef($(function(e,t){let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=Gb(Qb,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=H(t,c.onValueNodeChange);ba(()=>{l(u)},[l,u]);let f=zx(c.value);return(0,j.jsx)(W.span,{...s,asChild:!f&&s.asChild,ref:d,style:{pointerEvents:`none`},children:(0,j.jsx)(_.Fragment,{children:f?o:a},f?`placeholder`:`value`)})},`SelectValue`)),ex=_.forwardRef($(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,j.jsx)(W.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[tx,nx]=Vb(`SelectPortal`,{forceMount:void 0}),rx=$(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,j.jsx)(tx,{scope:e.__scopeSelect,forceMount:n,children:(0,j.jsx)(sc,{asChild:!0,...r})})},`SelectPortal`),ix=`SelectContent`,ax=_.forwardRef($(function(e,t){let n=nx(ix,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=Gb(ix,e.__scopeSelect),[o,s]=_.useState();return ba(()=>{s(new DocumentFragment)},[]),(0,j.jsx)(dc,{present:r||a.open,children:({present:e})=>e?(0,j.jsx)(dx,{...i,ref:t}):(0,j.jsx)(ox,{...i,fragment:o})})},`SelectContent`)),ox=_.forwardRef($(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?ea.createPortal((0,j.jsx)(cx,{scope:n,children:(0,j.jsx)(Rb.Slot,{scope:n,children:(0,j.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),sx=10,[cx,lx]=Vb(ix),ux=Bi(`SelectContent.RemoveScroll`),dx=_.forwardRef($(function(e,t){let{__scopeSelect:n}=e,{position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g,...v}=e,y=Gb(ix,n),[b,x]=_.useState(null),[S,C]=_.useState(null),w=H(t,x),[T,E]=_.useState(null),[D,O]=_.useState(null),k=zb(n),[A,M]=_.useState(!1),N=_.useRef(!1);_.useEffect(()=>{if(b)return Rm(b)},[b]),bp();let P=_.useCallback(e=>{let[t,...n]=k().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&S&&(S.scrollTop=0),n===r&&S&&(S.scrollTop=S.scrollHeight),n?.focus(),document.activeElement!==i))return},[k,S]),F=_.useCallback(()=>P([T,b]),[P,T,b]);_.useEffect(()=>{A&&F()},[A,F]);let{onOpenChange:I,triggerPointerDownPosRef:L}=y;_.useEffect(()=>{if(b){let e={x:0,y:0},t=$(t=>{e={x:Math.abs(Math.round(t.pageX)-(L.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(L.current?.y??0))}},`handlePointerMove`),n=$(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(b)||I(!1),document.removeEventListener(`pointermove`,t),L.current=null},`handlePointerUp`);return L.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[b,I,L]),_.useEffect(()=>{let e=$(()=>I(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[I]);let[ee,te]=Bx(e=>{let t=k().filter(e=>!e.disabled),n=Vx(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),ne=_.useCallback((e,t,n)=>{let r=!N.current&&!n;(y.value!==void 0&&y.value===t||r)&&(E(e),r&&(N.current=!0))},[y.value]),R=_.useCallback(()=>b?.focus(),[b]),re=_.useCallback((e,t,n)=>{let r=!N.current&&!n;(y.value!==void 0&&y.value===t||r)&&O(e)},[y.value]),ie=r===`popper`?px:fx,ae=ie===px?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,j.jsx)(cx,{scope:n,content:b,viewport:S,onViewportChange:C,itemRefCallback:ne,selectedItem:T,onItemLeave:R,itemTextRefCallback:re,focusSelectedItem:F,selectedItemText:D,position:r,isPositioned:A,searchRef:ee,children:(0,j.jsx)(km,{as:ux,allowPinchZoom:!0,children:(0,j.jsx)(rp,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:V(i,e=>{y.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,j.jsx)(pa,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:(0,j.jsx)(ie,{role:`listbox`,id:y.contentId,"data-state":y.open?`open`:`closed`,dir:y.dir,onContextMenu:e=>e.preventDefault(),...v,...ae,onPlaced:()=>M(!0),ref:w,style:{display:`flex`,flexDirection:`column`,outline:`none`,...v.style},onKeyDown:V(v.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&te(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=k().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>P(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),fx=_.forwardRef($(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=Gb(ix,n),o=lx(ix,n),[s,c]=_.useState(null),[l,u]=_.useState(null),d=H(t,u),f=zb(n),p=_.useRef(!1),m=_.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:v,focusSelectedItem:y}=o,b=_.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&g&&v){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=v.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-sx,d=Ab(a,[sx,Math.max(sx,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-sx,d=Ab(a,[sx,Math.max(sx,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-sx*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),_=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+_+u+b+y,S=Math.min(g.offsetHeight*5,x),C=window.getComputedStyle(h),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-sx,D=c-E,O=g.offsetHeight/2,k=g.offsetTop+O,A=m+_+k,j=x-A;if(A<=E){let e=o.length>0&&g===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-h.offsetTop-h.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&g===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,m+h.offsetTop+(e?w:0)+O)+j;s.style.height=t+`px`,h.scrollTop=A-E+h.offsetTop}s.style.margin=`${sx}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,h,g,v,a.dir,r]);ba(()=>b(),[b]);let[x,S]=_.useState();ba(()=>{l&&S(window.getComputedStyle(l).zIndex)},[l]);let C=_.useCallback(e=>{e&&m.current===!0&&(b(),y?.(),m.current=!1)},[b,y]);return(0,j.jsx)(mx,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:C,children:(0,j.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:x},children:(0,j.jsx)(W.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),px=_.forwardRef($(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=sx,...a}=e,o=Ub(n);return(0,j.jsx)(ac,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})},`SelectPopperPosition`)),[mx,hx]=Vb(ix,{}),gx=`SelectViewport`,_x=_.forwardRef($(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,a=lx(gx,n),o=hx(gx,n),s=H(t,a.onViewportChange),c=_.useRef(0);return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,j.jsx)(Rb.Slot,{scope:n,children:(0,j.jsx)(W.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:V(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-sx*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})},`SelectViewport`)),[vx,yx]=Vb(`SelectGroup`),bx=`SelectLabel`,xx=_.forwardRef($(function(e,t){let{__scopeSelect:n,...r}=e,i=yx(bx,n);return(0,j.jsx)(W.div,{id:i.id,...r,ref:t})},`SelectLabel`)),Sx=`SelectItem`,[Cx,wx]=Vb(Sx),Tx=_.forwardRef($(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=Gb(Sx,n),c=lx(Sx,n),l=s.value===r,[u,d]=_.useState(a??``),[f,p]=_.useState(!1),m=H(t,aa(e=>c.itemRefCallback?.(e,r,i))),h=Ta(),g=_.useRef(`touch`),v=$(()=>{i||(s.onValueChange(r),s.onOpenChange(!1))},`handleSelect`);return(0,j.jsx)(Cx,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:_.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,j.jsx)(Rb.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,j.jsx)(W.div,{role:`option`,"aria-labelledby":h,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:V(o.onFocus,()=>p(!0)),onBlur:V(o.onBlur,()=>p(!1)),onClick:V(o.onClick,()=>{g.current!==`mouse`&&v()}),onPointerUp:V(o.onPointerUp,()=>{g.current===`mouse`&&v()}),onPointerDown:V(o.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:V(o.onPointerMove,e=>{g.current=e.pointerType,i?c.onItemLeave?.():g.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:V(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:V(o.onKeyDown,e=>{i||e.target!==e.currentTarget||(c.searchRef?.current===``||e.key!==` `)&&(Ib.includes(e.key)&&v(),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),Ex=`SelectItemText`,Dx=_.forwardRef($(function(e,t){let{__scopeSelect:n,className:r,style:i,...a}=e,o=Gb(Ex,n),s=lx(Ex,n),c=wx(Ex,n),l=qb(Ex,n),[u,d]=_.useState(null),f=aa(e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=H(t,d,c.onItemTextChange,f),m=u?.textContent,h=_.useMemo(()=>(0,j.jsx)(`option`,{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:v}=l;return ba(()=>(g(h),()=>v(h)),[g,v,h]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(W.span,{id:c.textId,...a,ref:p}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!zx(o.value)?ea.createPortal(a.children,o.valueNode):null]})},`SelectItemText`)),Ox=`SelectItemIndicator`,kx=_.forwardRef($(function(e,t){let{__scopeSelect:n,...r}=e;return wx(Ox,n).isSelected?(0,j.jsx)(W.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),Ax=`SelectScrollUpButton`,jx=_.forwardRef($(function(e,t){let n=lx(Ax,e.__scopeSelect),r=hx(Ax,e.__scopeSelect),[i,a]=_.useState(!1),o=H(t,r.onScrollButtonChange);return ba(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;a(e)};$(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,j.jsx)(Px,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null},`SelectScrollUpButton`)),Mx=`SelectScrollDownButton`,Nx=_.forwardRef($(function(e,t){let n=lx(Mx,e.__scopeSelect),r=hx(Mx,e.__scopeSelect),[i,a]=_.useState(!1),o=H(t,r.onScrollButtonChange);return ba(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};$(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,j.jsx)(Px,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null},`SelectScrollDownButton`)),Px=_.forwardRef($(function(e,t){let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=lx(`SelectScrollButton`,n),o=_.useRef(null),s=zb(n),c=_.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return _.useEffect(()=>()=>c(),[c]),ba(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,j.jsx)(W.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:V(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:V(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:V(i.onPointerLeave,()=>{c()})})},`SelectScrollButtonImpl`)),Fx=_.forwardRef($(function(e,t){let{__scopeSelect:n,...r}=e;return(0,j.jsx)(W.div,{"aria-hidden":!0,...r,ref:t})},`SelectSeparator`)),Ix=`SelectBubbleInput`,Lx=_.forwardRef($(function({__scopeSelect:e,...t},n){let r=Gb(Ix,e),{value:i,onValueChange:a,required:o,disabled:s,name:c,autoComplete:l,form:u}=r,{nativeOptions:d,nativeSelectKey:f}=r,p=_.useRef(null),m=H(n,p),h=i??``,g=Nb(h),v=Array.from(d).some(e=>(e.props.value??``)===``);return _.useEffect(()=>{let e=p.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(g!==h&&n){let t=new Event(`change`,{bubbles:!0});n.call(e,h),e.dispatchEvent(t)}},[g,h]),(0,j.jsxs)(W.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:c,autoComplete:l,disabled:s,form:u,onChange:e=>a(e.target.value),...t,style:{...Mc,...t.style},ref:m,defaultValue:h,children:[zx(i)&&!v?(0,j.jsx)(`option`,{value:``}):null,Array.from(d)]},f)},`SelectBubbleInput`));function Rx(e){return typeof e==`function`}$(Rx,`isFunction`);function zx(e){return e===``||e===void 0}$(zx,`shouldShowPlaceholder`);function Bx(e){let t=aa(e),n=_.useRef(``),r=_.useRef(0),i=_.useCallback(e=>{let i=n.current+e;t(i),$((function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(i)},[t]),a=_.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return _.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}$(Bx,`useTypeaheadSearch`);function Vx(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Hx(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}$(Vx,`findNextItem`);function Hx(e,t){return e.map((n,r)=>e[(t+r)%e.length])}$(Hx,`wrapArray`);var Ux=`border border-border bg-card`,Wx=Yb,Gx=$b,Kx=Zf(`flex w-full items-center justify-between gap-2 whitespace-nowrap rounded-md ${Ux} text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground transition-colors hover:bg-accent hover:border-accent-foreground/20 focus:outline-none focus:ring-1 focus:ring-primary/30 focus:border-primary/40 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:min-w-0 [&>span]:line-clamp-1`,{variants:{size:{sm:`h-7 px-2 py-1 text-xs`,default:`h-9 px-3 py-1`,lg:`h-10 px-3 py-2`}},defaultVariants:{size:`default`}});function qx({className:e,size:t=`default`}){return(0,j.jsx)(qf,{"aria-hidden":`true`,"data-select-chevron":``,className:Y(t===`sm`?`h-3.5 w-3.5`:`h-4 w-4`,`shrink-0 opacity-50`,e)})}var Jx=_.forwardRef(({className:e,children:t,hideArrow:n=!1,size:r,...i},a)=>(0,j.jsxs)(Zb,{ref:a,className:Y(Kx({size:r,className:e})),...i,children:[t,!n&&(0,j.jsx)(ex,{asChild:!0,children:(0,j.jsx)(qx,{size:r===`sm`?`sm`:`default`})})]}));Jx.displayName=Zb.displayName;var Yx=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(jx,{ref:n,className:Y(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,j.jsx)(Jf,{})}));Yx.displayName=jx.displayName;var Xx=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Nx,{ref:n,className:Y(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,j.jsx)(qf,{})}));Xx.displayName=Nx.displayName;var Zx=_.forwardRef(({className:e,children:t,position:n=`popper`,container:r,animated:i=!0,...a},o)=>{let s=X(r);return(0,j.jsx)(rx,{container:s,children:(0,j.jsxs)(ax,{ref:o,className:Y(`relative z-[10001] max-h-96 min-w-[8rem] max-w-[calc(100vw-2rem)] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md`,i&&`matrx-motion-popper`,n===`popper`&&`matrx-popper-offset`,e),position:n,...a,children:[(0,j.jsx)(Yx,{}),(0,j.jsx)(_x,{className:Y(`max-w-full overflow-y-auto p-0.5`,n===`popper`&&`w-full min-w-[var(--radix-select-trigger-width)] max-h-[var(--radix-select-content-available-height)]`),children:t}),(0,j.jsx)(Xx,{})]})})});Zx.displayName=ax.displayName;var Qx=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(xx,{ref:n,className:Y(`px-2 py-1.5 text-sm font-semibold`,e),...t}));Qx.displayName=xx.displayName;var $x=_.forwardRef(({className:e,children:t,description:n,...r},i)=>(0,j.jsxs)(Tx,{ref:i,className:Y(`relative flex w-full min-w-0 cursor-default select-none rounded-sm py-1 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,n?`flex-col items-start gap-0.5 py-1.5`:`items-center`,e),...r,children:[(0,j.jsx)(`span`,{className:`absolute right-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(kx,{children:(0,j.jsx)(Wf,{className:`h-4 w-4`})})}),(0,j.jsx)(`span`,{className:`min-w-0 whitespace-normal break-words [overflow-wrap:anywhere]`,children:(0,j.jsx)(Dx,{children:t})}),n?(0,j.jsx)(`span`,{className:`block min-w-0 break-words text-xs leading-snug text-muted-foreground [overflow-wrap:anywhere]`,children:n}):null]}));$x.displayName=Tx.displayName;var eS=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Fx,{ref:n,className:Y(`-mx-1 my-1 h-px bg-muted`,e),...t}));eS.displayName=Fx.displayName;var tS=Object.defineProperty,nS=(e,t)=>tS(e,`name`,{value:t,configurable:!0}),rS=`Popover`,[iS,aS]=Ii(rS,[Ws]),oS=Ws(),[sS,cS]=iS(rS),lS=nS(e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=oS(t),c=_.useRef(null),[l,u]=_.useState(!1),[d,f]=Tc({prop:r,defaultProp:i??!1,onChange:a,caller:rS});return(0,j.jsx)(rc,{...s,children:(0,j.jsx)(sS,{scope:t,contentId:Ta(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:_.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:_.useCallback(()=>u(!0),[]),onCustomAnchorRemove:_.useCallback(()=>u(!1),[]),modal:o,children:n})})},`Popover`),uS=`PopoverTrigger`,dS=_.forwardRef(nS(function(e,t){let{__scopePopover:n,...r}=e,i=cS(uS,n),a=oS(n),o=H(t,i.triggerRef),s=(0,j.jsx)(W.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":SS(i.open),...r,ref:o,onClick:V(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,j.jsx)(ic,{asChild:!0,...a,children:s})},`PopoverTrigger`)),fS=`PopoverPortal`,[pS,mS]=iS(fS,{forceMount:void 0}),hS=nS(e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=cS(fS,t);return(0,j.jsx)(pS,{scope:t,forceMount:n,children:(0,j.jsx)(dc,{present:n||a.open,children:(0,j.jsx)(sc,{asChild:!0,container:i,children:r})})})},`PopoverPortal`),gS=`PopoverContent`,_S=_.forwardRef(nS(function(e,t){let n=mS(gS,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=cS(gS,e.__scopePopover);return(0,j.jsx)(dc,{present:r||a.open,children:a.modal?(0,j.jsx)(yS,{...i,ref:t}):(0,j.jsx)(bS,{...i,ref:t})})},`PopoverContent`)),vS=Bi(`PopoverContent.RemoveScroll`),yS=_.forwardRef(nS(function(e,t){let n=cS(gS,e.__scopePopover),r=_.useRef(null),i=H(t,r),a=_.useRef(!1);return _.useEffect(()=>{let e=r.current;if(e)return Rm(e)},[]),(0,j.jsx)(km,{as:vS,allowPinchZoom:!0,children:(0,j.jsx)(xS,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:V(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:V(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:V(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},`PopoverContentModal`)),bS=_.forwardRef(nS(function(e,t){let n=cS(gS,e.__scopePopover),r=_.useRef(!1),i=_.useRef(!1);return(0,j.jsx)(xS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`PopoverContentNonModal`)),xS=_.forwardRef(nS(function(e,t){let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=cS(gS,n),p=oS(n);return bp(),(0,j.jsx)(rp,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,j.jsx)(pa,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,j.jsx)(ac,{"data-state":SS(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})},`PopoverContentImpl`));function SS(e){return e?`open`:`closed`}nS(SS,`getState`);var CS=lS,wS=dS,TS=hS,ES=_S,DS=CS,OS=wS,kS=_.forwardRef(({className:e,align:t=`center`,sideOffset:n=4,container:r,animated:i=!0,sizing:a=`fixed`,collisionPadding:o=16,...s},c)=>{let l=X(r);return(0,j.jsx)(TS,{container:l,children:(0,j.jsx)(ES,{ref:c,align:t,sideOffset:n,collisionPadding:o,className:Y(`z-[10000] max-h-[var(--radix-popover-content-available-height)] overflow-y-auto overscroll-contain rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none`,a===`content`?`w-auto min-w-[min(max(var(--radix-popover-trigger-width),20rem),calc(100vw-2rem))] max-w-[min(28rem,calc(100vw-2rem))]`:`w-72 max-w-[calc(100vw-2rem)]`,i&&`matrx-motion-popper`,e),...s})})});kS.displayName=ES.displayName;var AS=`matrx:layer-front`;function jS(e){typeof document<`u`&&document.dispatchEvent(new CustomEvent(AS,{detail:{element:e}}))}var MS=_.createContext(!1),NS=({children:e,...t})=>{let n=g_(),r=t.modal??n;return(0,j.jsx)(MS.Provider,{value:t.modal===void 0,children:(0,j.jsx)(Vg,{modal:r,children:(0,j.jsx)(Km,{...t,modal:r,children:e})})})};NS.displayName=`Dialog`;var PS=({container:e,...t})=>{let n=X(e);return(0,j.jsx)(Qm,{container:n??null,...t})};PS.displayName=`DialogPortal`;var FS=Symbol.for(`ai-matrx.design-system.dialog-container-context`),IS=globalThis,LS=IS[FS]??=_.createContext(null),RS=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(eh,{ref:n,"data-slot":`dialog-overlay`,className:Y(`fixed inset-0 z-[10000] bg-[var(--matrx-overlay-scrim-soft)]`,Wu,e),...t}));RS.displayName=eh.displayName;var zS=_.forwardRef(({onInteractOutside:e,...t},n)=>{let r=Hg();return Mg(r),(0,j.jsx)(ih,{...t,ref:n,"aria-modal":r||void 0,onInteractOutside:Fg(e)})});zS.displayName=`DialogContentPrimitive`;var BS=`matrx-dialog-card fixed inset-0 z-[10000] m-auto grid h-fit min-w-0 w-full max-w-lg gap-4 max-h-[85dvh] overflow-y-auto overscroll-contain [--dialog-pad:1.5rem] overflow-x-clip border bg-background p-6 shadow-lg [overflow-wrap:anywhere] [&>*]:min-w-0 [&>*]:max-w-full sm:rounded-lg`,VS=`matrx-mobile-sheet matrx-dialog-card fixed inset-x-0 bottom-0 left-0 right-0 top-auto z-[10000] flex min-w-0 flex-col w-full max-w-full max-h-[90dvh] gap-4 [--dialog-pad:1rem] overflow-x-clip border-t bg-background p-4 pb-safe shadow-lg [overflow-wrap:anywhere] [&>*]:min-w-0 [&>*]:max-w-full rounded-t-2xl rounded-b-none overflow-y-auto overscroll-contain`,HS=`inset-x-0 bottom-0 left-0 right-0 top-auto translate-none w-full max-w-full max-h-[90dvh] rounded-b-none rounded-t-2xl overflow-y-auto`,US=_.createContext(null),WS=80;function GS(e){return e instanceof Element&&!!e.closest(`button, a, input, textarea, select, [role='button'], [contenteditable='true']`)}var KS=_.forwardRef(({className:e,children:t,mobileSheet:n=!0,animated:r=!0,showCloseButton:i=!0,container:a,dismissOnOutsideClick:o=!1,onInteractOutside:s,onEscapeKeyDown:c,onPointerDownCapture:l,onFocusCapture:u,style:d,...f},p)=>{let m=g_(),h=Hg(),g=X(a),v=n&&m,y=!h&&!v,b=_.useContext(MS),[x,S]=_.useState(null),C=y&&b,[w,T]=_.useState(!1);_.useEffect(()=>{if(!C||!x)return;let e=e=>{let t=e.detail?.element??null;(!t||t!==x&&!x.contains(t))&&T(!0)};return document.addEventListener(AS,e),jS(x),()=>document.removeEventListener(AS,e)},[C,x]);let E=()=>{C&&x&&(T(!1),jS(x))},[D,O]=_.useState({x:0,y:0}),k=_.useRef(null),A=_.useMemo(()=>{if(!y)return null;let e=(e,t)=>Math.max(-t,Math.min(t,e));return{onPointerDown:e=>{e.button!==0||GS(e.target)||(k.current={x:e.clientX,y:e.clientY,baseX:D.x,baseY:D.y},e.currentTarget.setPointerCapture?.(e.pointerId))},onPointerMove:t=>{let n=k.current;n&&O({x:e(n.baseX+t.clientX-n.x,window.innerWidth/2-WS/2),y:e(n.baseY+t.clientY-n.y,window.innerHeight/2-WS/2)})},onPointerUp:e=>{k.current&&(k.current=null,e.currentTarget.releasePointerCapture?.(e.pointerId))},onPointerCancel:()=>{k.current=null},onDoubleClick:()=>O({x:0,y:0})}},[y,D.x,D.y]),M=_.useCallback(e=>{S(e),typeof p==`function`?p(e):p&&(p.current=e)},[p]),N=xg(t,YS)||xg(t,lh),P=xg(t,XS)||xg(t,dh);return(0,j.jsxs)(PS,{container:a,children:[h?(0,j.jsx)(RS,{}):null,(0,j.jsxs)(zS,{ref:M,"data-slot":`dialog-content`,className:Y(v?VS:BS,r&&(v?`matrx-motion-bottom-sheet`:`matrx-motion-dialog`),e,v&&HS,!h&&!b&&`z-[900]`,C&&w&&`z-[999]`,y&&`shadow-2xl ring-1 ring-border/60`),style:y&&(D.x!==0||D.y!==0)?{...d,translate:`${D.x}px ${D.y}px`}:d,onPointerDownCapture:e=>{l?.(e),w&&E()},onFocusCapture:e=>{u?.(e),w&&E()},onInteractOutside:e=>{s?.(e),y&&!o&&e.preventDefault()},onEscapeKeyDown:e=>{c?.(e);let t=e.target instanceof Node&&e.target!==document.body?e.target:document.activeElement;y&&x&&!(t&&x.contains(t))&&e.preventDefault()},...P?{}:{"aria-describedby":void 0},...f,children:[N?null:(0,j.jsx)(Nc,{children:(0,j.jsx)(lh,{children:`Dialog`})}),(0,j.jsx)(LS.Provider,{value:x,children:(0,j.jsx)(US.Provider,{value:A,children:(0,j.jsx)(Zu,{container:x??g??null,children:t})})}),i?(0,j.jsxs)(ph,{"data-slot":`dialog-close`,"aria-label":`Close`,className:`absolute right-2 top-4 flex h-11 w-11 items-center justify-center rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground sm:right-4 lg:h-10 lg:w-10`,children:[(0,j.jsx)(Hf,{className:`h-4 w-4`}),(0,j.jsx)(`span`,{className:`sr-only`,children:`Close`})]}):null]})]})});KS.displayName=ih.displayName;var qS=({className:e,...t})=>{let n=_.useContext(US);return(0,j.jsx)(`div`,{"data-slot":`dialog-header`,...n?{...n,"data-window-handle":``,title:`Drag to move · double-click to recenter`}:{},className:Y(`flex flex-col space-y-1.5 pr-12 text-center sm:text-left`,n&&`cursor-grab select-none active:cursor-grabbing`,e),...t})};qS.displayName=`DialogHeader`;var JS=({className:e,...t})=>(0,j.jsx)(`div`,{"data-slot":`dialog-footer`,className:Y(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,`sticky bottom-0 z-10 bg-background pt-3`,`mx-[calc(var(--dialog-pad,0px)*-1)] px-[var(--dialog-pad,0px)] pb-[var(--dialog-pad,0px)]`,e),...t});JS.displayName=`DialogFooter`;var YS=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(lh,{ref:n,"data-slot":`dialog-title`,className:Y(`text-lg font-semibold leading-none tracking-tight`,e),...t}));YS.displayName=lh.displayName;var XS=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(dh,{ref:n,"data-slot":`dialog-description`,className:Y(`text-sm text-muted-foreground`,e),...t}));XS.displayName=dh.displayName;var ZS=Object.defineProperty,QS=(e,t)=>ZS(e,`name`,{value:t,configurable:!0}),$S=`DropdownMenu`,[eC,tC]=Ii($S,[sv]),nC=sv(),[rC,iC]=eC($S),aC=QS(e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=nC(t),l=_.useRef(null),[u,d]=Tc({prop:i,defaultProp:a??!1,onChange:o,caller:$S});return(0,j.jsx)(rC,{scope:t,triggerId:Ta(),triggerRef:l,contentId:Ta(),open:u,onOpenChange:d,onOpenToggle:_.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,j.jsx)(cy,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})},`DropdownMenu`),oC=`DropdownMenuTrigger`,sC=_.forwardRef(QS(function(e,t){let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=iC(oC,n),o=nC(n),s=H(t,a.triggerRef);return(0,j.jsx)(ly,{asChild:!0,...o,children:(0,j.jsx)(W.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:s,onPointerDown:V(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:V(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})},`DropdownMenuTrigger`)),cC=QS(e=>{let{__scopeDropdownMenu:t,...n}=e,r=nC(t);return(0,j.jsx)(uy,{...r,...n})},`DropdownMenuPortal`),lC=`DropdownMenuContent`,uC=_.forwardRef(QS(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=iC(lC,n),a=nC(n),o=_.useRef(!1);return(0,j.jsx)(dy,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:V(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:V(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuContent`)),dC=_.forwardRef(QS(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=nC(n);return(0,j.jsx)(fy,{...i,...r,ref:t})},`DropdownMenuLabel`)),fC=_.forwardRef(QS(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=nC(n);return(0,j.jsx)(py,{...i,...r,ref:t})},`DropdownMenuItem`)),pC=_.forwardRef(QS(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=nC(n);return(0,j.jsx)(my,{...i,...r,ref:t})},`DropdownMenuCheckboxItem`)),mC=_.forwardRef(QS(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=nC(n);return(0,j.jsx)(hy,{...i,...r,ref:t})},`DropdownMenuRadioGroup`)),hC=_.forwardRef(QS(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=nC(n);return(0,j.jsx)(gy,{...i,...r,ref:t})},`DropdownMenuRadioItem`)),gC=_.forwardRef(QS(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=nC(n);return(0,j.jsx)(_y,{...i,...r,ref:t})},`DropdownMenuItemIndicator`)),_C=_.forwardRef(QS(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=nC(n);return(0,j.jsx)(vy,{...i,...r,ref:t})},`DropdownMenuSeparator`)),vC=QS(e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:i,defaultOpen:a}=e,o=nC(t),[s,c]=Tc({prop:r,defaultProp:a??!1,onChange:i,caller:`DropdownMenuSub`});return(0,j.jsx)(yy,{...o,open:s,onOpenChange:c,children:n})},`DropdownMenuSub`),yC=_.forwardRef(QS(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=nC(n);return(0,j.jsx)(by,{...i,...r,ref:t})},`DropdownMenuSubTrigger`)),bC=_.forwardRef(QS(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=nC(n);return(0,j.jsx)(xy,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuSubContent`)),xC=aC,SC=sC,CC=cC,wC=uC,TC=dC,EC=fC,DC=pC,OC=mC,kC=hC,AC=gC,jC=_C,MC=vC,NC=yC,PC=bC,FC=xC,IC=SC,LC=MC,RC=OC,zC=`z-[10001] min-w-[8rem] max-h-[var(--radix-dropdown-menu-content-available-height)] overflow-y-auto overflow-x-hidden overscroll-contain rounded-md border bg-popover p-1 text-popover-foreground`,BC=`relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,VC=`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,HC=_.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,j.jsxs)(NC,{ref:i,"data-slot":`dropdown-menu-sub-trigger`,className:Y(`flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent`,t&&`pl-8`,e),...r,children:[n,(0,j.jsx)(Kf,{className:`ml-auto h-4 w-4`})]}));HC.displayName=NC.displayName;var UC=_.forwardRef(({className:e,container:t,sideOffset:n=2,alignOffset:r=-4,collisionPadding:i=8,onFocusOutside:a,children:o,...s},c)=>{let l=X(t),u=pb(c,a),d=fb(u.ref);return(0,j.jsx)(CC,{container:l,children:(0,j.jsx)(PC,{ref:d.ref,onFocusOutside:u.onFocusOutside,"data-slot":`dropdown-menu-sub-content`,sideOffset:n,alignOffset:r,collisionPadding:i,className:Y(zC,d.surfaceClassName,`shadow-lg`,Gu,e),...s,children:d.wrap(o)})})});UC.displayName=PC.displayName;var WC=_.forwardRef(({className:e,sideOffset:t=4,container:n,children:r,...i},a)=>{let o=X(n),s=fb(a);return(0,j.jsx)(CC,{container:o,children:(0,j.jsx)(wC,{ref:s.ref,"data-slot":`dropdown-menu-content`,sideOffset:t,className:Y(zC,s.surfaceClassName,`shadow-md`,Gu,e),...i,children:s.wrap(r)})})});WC.displayName=wC.displayName;var GC=_.forwardRef(({className:e,inset:t,...n},r)=>(0,j.jsx)(EC,{ref:r,"data-slot":`dropdown-menu-item`,className:Y(BC,t&&`pl-8`,e),...n}));GC.displayName=EC.displayName;var KC=_.forwardRef(({className:e,children:t,...n},r)=>(0,j.jsxs)(DC,{ref:r,"data-slot":`dropdown-menu-checkbox-item`,className:Y(VC,e),...n,children:[(0,j.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(AC,{children:(0,j.jsx)(Wf,{className:`h-4 w-4`})})}),t]}));KC.displayName=DC.displayName;var qC=_.forwardRef(({className:e,children:t,...n},r)=>(0,j.jsxs)(kC,{ref:r,"data-slot":`dropdown-menu-radio-item`,className:Y(VC,e),...n,children:[(0,j.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(AC,{children:(0,j.jsx)(Gf,{className:`h-4 w-4 fill-current`})})}),t]}));qC.displayName=kC.displayName;var JC=_.forwardRef(({className:e,inset:t,...n},r)=>(0,j.jsx)(TC,{ref:r,"data-slot":`dropdown-menu-label`,className:Y(`px-2 py-1.5 text-sm font-semibold`,t&&`pl-8`,e),...n}));JC.displayName=TC.displayName;var YC=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(jC,{ref:n,"data-slot":`dropdown-menu-separator`,className:Y(`-mx-1 my-1 h-px bg-muted`,e),...t}));YC.displayName=jC.displayName;var XC=(e=`default`)=>{let t=`flex h-10 w-full ${Ux} text-foreground shadow-input rounded-md px-3 py-2 text-sm file:border-0 file:bg-transparent
59
- file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground
60
- focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-ring
61
- disabled:cursor-not-allowed disabled:opacity-50
62
- dark:shadow-none
63
- transition duration-400
64
- [&:-webkit-autofill]:bg-card [&:-webkit-autofill]:shadow-[0_0_0_1000px_hsl(var(--card))_inset] [&:-webkit-autofill]:[caret-color:currentColor]
65
- dark:[&:-webkit-autofill]:shadow-[0_0_0_1000px_hsl(var(--card))_inset] dark:[&:-webkit-autofill]:[-webkit-text-fill-color:hsl(var(--foreground))]
66
- [&:-webkit-autofill:hover]:shadow-[0_0_0_1000px_hsl(var(--card))_inset] [&:-webkit-autofill:focus]:shadow-[0_0_0_1000px_hsl(var(--card))_inset]`;switch(e){case`destructive`:return`${t} bg-destructive text-destructive-foreground`;case`outline`:return`${t} border-2`;case`secondary`:return`${t} bg-secondary text-secondary-foreground`;case`ghost`:return`${t} bg-transparent shadow-none`;case`link`:return`${t} bg-transparent underline-offset-4 hover:underline`;case`primary`:return`${t} bg-primary text-primary-foreground`;default:return t}},ZC=_.forwardRef(({className:e,type:t,variant:n=`default`,...r},i)=>(0,j.jsx)(`input`,{type:t,className:Y(XC(n),e),ref:i,...r}));ZC.displayName=`Input`;var QC=_.forwardRef(({onEnter:e,...t},n)=>{let r=t=>{t.key===`Enter`&&e&&(t.preventDefault(),e())};return(0,j.jsx)(ZC,{...t,ref:n,onKeyDown:e=>{r(e),t.onKeyDown&&t.onKeyDown(e)}})});QC.displayName=`EnterInput`;var $C=_.forwardRef(({className:e,type:t,variant:n=`default`,...r},i)=>(0,j.jsx)(`input`,{type:t,className:Y(`flex h-9 w-full rounded-md ${Ux} px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,e),ref:i,...r}));$C.displayName=`BasicInput`;var ew=_.forwardRef(({prefix:e,className:t,wrapperClassName:n,...r},i)=>(0,j.jsxs)(`div`,{className:Y(`relative`,n),children:[e&&(0,j.jsx)(`div`,{className:`absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground`,children:e}),(0,j.jsx)(ZC,{ref:i,className:Y(e&&`pl-10`,t),...r})]}));ew.displayName=`InputWithPrefix`;var tw=/(?:^|\s)(h-full|h-dvh|flex-1|grow)(?:\s|$)/,nw=/(?:^|\s)(w-full|w-screen)(?:\s|$)/;function rw(e){if(!e)return;let t=[];return tw.test(e)&&t.push(`h-full min-h-0`),nw.test(e)&&t.push(`w-full`),t.length?t.join(` `):void 0}var iw=`flex h-auto w-full rounded-md ${Ux} px-3 py-2 text-sm text-foreground shadow-textarea transition duration-400 placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,aw=`flex w-full rounded-md ${Ux} px-3 py-2 text-sm text-foreground shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`;function ow(e,t,n=!1,r,i){_.useEffect(()=>{if(!n||!e.current)return;let t=e.current;t.style.height=`auto`;let a=t.scrollHeight;r&&(a=Math.max(a,r)),i&&a>=i?(t.style.height=`${i}px`,t.style.overflowY=`auto`):(t.style.height=`${a}px`,t.style.overflowY=`hidden`)},[t,n,r,i,e])}function sw(e){let t=_.useRef(null);return{ref:t,callback:_.useCallback(n=>{t.current=n,typeof e==`function`?e(n):e&&(e.current=n)},[e])}}function cw(e,t){if(e!==void 0||t!==void 0)return{minHeight:e?`${e}px`:void 0,maxHeight:t?`${t}px`:void 0}}var lw=_.forwardRef(({className:e,autoGrow:t,minHeight:n,maxHeight:r,wrapperClassName:i,...a},o)=>{let{ref:s,callback:c}=sw(o),l=rw(e),u=!!(i||l);ow(s,a.value,t,n,r);let d=(0,j.jsx)(`textarea`,{ref:c,"data-slot":`textarea`,className:Y(iw,t&&`resize-none`,l,e),style:cw(n,r),...a});return u?(0,j.jsx)(`div`,{className:Y(l,i),children:d}):d});lw.displayName=`Textarea`;var uw=_.forwardRef(({className:e,autoGrow:t,minHeight:n,maxHeight:r,...i},a)=>{let{ref:o,callback:s}=sw(a);return ow(o,i.value,t,n,r),(0,j.jsx)(`textarea`,{ref:s,"data-slot":`textarea`,className:Y(aw,`h-auto min-h-[60px]`,t&&`resize-none`,e),style:cw(n,r),...i})});uw.displayName=`BasicTextarea`;var dw=_.forwardRef(({prefix:e,className:t,wrapperClassName:n,autoGrow:r,minHeight:i,maxHeight:a,...o},s)=>{let{ref:c,callback:l}=sw(s);return ow(c,o.value,r,i,a),(0,j.jsxs)(`div`,{className:Y(`relative`,rw(t),n),children:[e?(0,j.jsx)(`div`,{className:`pointer-events-none absolute left-3 top-3 z-10 text-muted-foreground`,children:e}):null,(0,j.jsx)(`textarea`,{ref:l,"data-slot":`textarea`,className:Y(aw,`resize-y`,e&&`pl-10`,r&&`resize-none`,t),style:cw(i,a),...o})]})});dw.displayName=`TextareaWithPrefix`;var fw={"input-streaming":`Preparing`,"input-available":`Running`,"approval-requested":`Needs your approval`,"output-available":`Done`,"output-error":`Failed`,"output-denied":`Declined`};function pw(e){if(e===void 0)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e,null,2)}catch{return String(e)}}function mw(e){let{part:t,defaultExpanded:n,body:r}=e,[i,a]=(0,_.useState)(n),{toolLabel:o}=hi(),s=t.progress[t.progress.length-1],c=pw(t.input),l=pw(t.output),u=fw[t.state],d=s!==void 0&&s.message!==``&&s.message.trim().toLowerCase()!==u.toLowerCase()?s.message:null,f=c!==``||l!==``||t.errorText!==null||t.progress.length>0;return(0,j.jsxs)(`div`,{className:`mx-chat-tool`,"data-state":t.state,"data-tool":t.toolName,...e.rendererTag===void 0?{}:{"data-mx-chat-tool-renderer":e.rendererTag},children:[(0,j.jsxs)(`button`,{type:`button`,className:`mx-chat-tool__header mx-chat-focusable`,"aria-expanded":i,onClick:()=>a(e=>!e),children:[(0,j.jsx)(`span`,{"data-open":i,className:`mx-chat-chevron-wrap`,children:(0,j.jsx)(bi,{})}),(0,j.jsx)(`span`,{className:`mx-chat-tool__name`,children:o(t.toolName)}),d===null?null:(0,j.jsx)(`span`,{className:`mx-chat-tool__beat`,children:d}),(0,j.jsx)(`span`,{className:`mx-chat-tool__state`,children:u})]}),i?r===void 0?(0,j.jsxs)(`div`,{className:`mx-chat-tool__body`,children:[c===``?null:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{className:`mx-chat-tool__label`,children:`What it was asked`}),(0,j.jsx)(`pre`,{className:`mx-chat-tool__payload`,children:c})]}),t.progress.length>0?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{className:`mx-chat-tool__label`,children:`Progress`}),(0,j.jsx)(`ul`,{className:`mx-chat-tool__progress`,children:t.progress.map((e,t)=>(0,j.jsxs)(`li`,{children:[(0,j.jsx)(`span`,{"data-tool-beat":e.toolName,children:e.toolName}),e.message===``?null:` — ${e.message}`,e.percent===null?null:` (${Math.round(e.percent)}%)`]},`${e.toolName}-${t}`))})]}):null,t.errorText===null?null:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{className:`mx-chat-tool__label`,children:`What went wrong`}),(0,j.jsx)(`p`,{className:`mx-chat-failure__sentence`,children:t.errorText})]}),l===``?null:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{className:`mx-chat-tool__label`,children:`What it returned`}),(0,j.jsx)(`pre`,{className:`mx-chat-tool__payload`,children:l})]}),f?null:(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:t.state===`input-streaming`?`This tool has not said what it is doing yet.`:`This tool ran without reporting any details.`})]}):r:null]})}function hw(e){return(0,j.jsx)(j.Fragment,{children:e.renderContent({kind:`markdown`,text:e.part.text,streaming:e.streaming,role:e.role,messageId:e.messageId})})}function gw(e){let{part:t,defaultOpen:n}=e,[r,i]=(0,_.useState)(n),a=t.state===`streaming`;return(0,j.jsxs)(`div`,{className:`mx-chat-reasoning`,"data-streaming":a,children:[(0,j.jsxs)(`button`,{type:`button`,className:`mx-chat-quiet-button mx-chat-focusable`,"aria-expanded":r,onClick:()=>i(e=>!e),children:[(0,j.jsx)(`span`,{"data-open":r,className:`mx-chat-chevron-wrap`,children:(0,j.jsx)(bi,{})}),a?`Thinking…`:`Thought process`]}),r?(0,j.jsx)(`div`,{className:`mx-chat-reasoning__body`,"data-mx-chat-reasoning":`body`,children:t.text}):null]})}function _w(e){let{part:t}=e;return(0,j.jsxs)(`div`,{className:`mx-chat-notice`,"data-level":t.level,role:`note`,children:[(0,j.jsx)(`span`,{children:t.userMessage}),t.remedy===null?null:(0,j.jsx)(`span`,{className:`mx-chat-notice__remedy`,children:t.remedy})]})}function vw(e){let{part:t,retryText:n,onRetry:r}=e;return(0,j.jsxs)(o_,{as:`div`,className:`mx-chat-failure`,"data-code":t.code??`unknown`,message:t.userMessage,error:t,operation:`Answer the last message`,unsavedInput:n===``?void 0:{message:n},origin:`chat/ChatFailurePart`,children:[(0,j.jsx)(`p`,{className:`mx-chat-failure__sentence`,children:t.userMessage}),t.remedy===null?null:(0,j.jsx)(`p`,{className:`mx-chat-failure__remedy`,children:t.remedy}),n===``?null:(0,j.jsx)(u_,{type:`button`,size:`sm`,variant:`outline`,className:`mx-chat-focusable`,onClick:()=>r(n),children:`Try again`})]})}function yw(e){return(0,j.jsx)(mw,{part:e.part,defaultExpanded:e.defaultExpanded})}function bw(e){let{part:t}=e;return(0,j.jsx)(`div`,{"data-mx-chat-block":t.kind,"data-status":t.status,children:e.renderContent({kind:t.kind,text:t.content??``,data:t.data,streaming:t.status===`streaming`,role:e.role,messageId:e.messageId})})}function xw(e){let t=e.part.name??e.part.fileId;return(0,j.jsx)(`span`,{className:`mx-chat-standin`,"data-mx-chat-standin":`file`,children:`Attached file: ${t}. Previews appear once the attachments capability is turned on for this chat.`})}function Sw(e){let{part:t}=e,n=t.title??t.url??t.sourceId;return(0,j.jsx)(`span`,{className:`mx-chat-standin`,"data-mx-chat-standin":`source`,children:`Source: ${n}`})}function Cw(e){return(0,j.jsx)(`span`,{className:`mx-chat-standin`,"data-mx-chat-standin":`ask-user`,children:e.part.answered?`You already answered: ${e.part.prompt}`:`The assistant is waiting for your answer: ${e.part.prompt}. This chat cannot collect it yet — answer in a chat with the approvals capability turned on, or stop this run.`})}var ww=(0,_.memo)(function(e){let t=pi(e.messageId),n=mi(),{renderContent:r}=hi(),i=gi(),{thread:a,retry:o}=di();if(t===void 0)return null;let s=t.status===`streaming`||t.status===`pending`,c=t.role;if(c===`user`)return(0,j.jsxs)(`article`,{className:`mx-chat-turn`,"data-role":`user`,...e.continued?{"data-continued":`true`}:{},"data-message-id":t.id,"aria-label":`Your message`,children:[(0,j.jsx)(`div`,{className:`mx-chat-turn__bubble`,children:r({kind:`markdown`,text:C(t),streaming:!1,role:c,messageId:t.id})}),Dw(t,i.renderTurnMeta),n.messageActions?(0,j.jsx)(wf,{message:t}):null]});let l=yi(a.getSnapshot().messages,t.id);return(0,j.jsxs)(`article`,{className:`mx-chat-turn`,"data-role":c,...e.continued?{"data-continued":`true`}:{},"data-status":t.status,"data-message-id":t.id,"aria-label":`Assistant message`,"aria-busy":s||void 0,children:[(0,j.jsxs)(`div`,{className:`mx-chat-turn__body`,children:[t.parts.map((e,a)=>{let c=i.renderPart?.(e,{message:t,index:a,streaming:s});return c===void 0?(0,j.jsx)(`div`,{children:Ow(e,{message:t,streaming:s,renderContent:r,expandTools:n.expandToolCardsByDefault,showReasoning:n.showReasoningByDefault,retryText:l,onRetry:e=>o.request(e)})},Ew(e,a)):(0,j.jsx)(`div`,{children:c},Ew(e,a))}),s&&t.parts.length===0?(0,j.jsx)(`span`,{className:`mx-chat-caret`,"data-mx-chat":`waiting`,"aria-hidden":`true`}):null,Tw(t)?(0,j.jsx)(`p`,{className:`mx-chat-turn__stopped`,role:`note`,children:`Stopped`}):null]}),Dw(t,i.renderTurnMeta),n.messageActions?(0,j.jsx)(wf,{message:t}):null]})});function Tw(e){return e.status===`cancelled`&&!e.parts.some(e=>e.type===`error`&&e.errorType===`cancelled`)}function Ew(e,t){return e.type===`tool`?`tool:${e.toolCallId}`:e.type===`render-block`?`block:${e.blockId}`:`${e.type}:${t}`}function Dw(e,t){let n=t?.(e);return n===void 0?e.metadata.modelRef===null?null:(0,j.jsx)(`div`,{className:`mx-chat-turn__meta`,children:e.metadata.modelRef}):n}function Ow(e,t){switch(e.type){case`text`:return(0,j.jsx)(hw,{part:e,renderContent:t.renderContent,streaming:t.streaming,role:t.message.role,messageId:t.message.id});case`reasoning`:return(0,j.jsx)(gw,{part:e,defaultOpen:t.showReasoning});case`tool`:return(0,j.jsx)(yw,{part:e,defaultExpanded:t.expandTools});case`notice`:return(0,j.jsx)(_w,{part:e});case`error`:return(0,j.jsx)(vw,{part:e,retryText:t.retryText,onRetry:t.onRetry});case`render-block`:return(0,j.jsx)(bw,{part:e,renderContent:t.renderContent,messageId:t.message.id,role:t.message.role});case`file`:return(0,j.jsx)(xw,{part:e});case`source`:return(0,j.jsx)(Sw,{part:e});case`ask-user`:return(0,j.jsx)(Cw,{part:e});default:return e}}var kw=80,Aw=40;function jw(e){let t=e.virtualizeAbove??kw,n=e.pageSize??Aw,r=e.label??`Conversation`,i=fi(),a=mi(),o=gi(),s=i.messages,[c,l]=(0,_.useState)(t),u=(0,_.useMemo)(()=>s.length<=c?s:s.slice(s.length-c),[s,c]),d=s.length-u.length,f=vf(a.autoScroll),{onContentChange:p}=f,m=i.snapshot.revision;(0,_.useEffect)(()=>{p()},[m,p]);let h=Iw(s,i.conversationId);return(0,j.jsxs)(`div`,{className:Mw(`mx-chat__viewport`,e.className),children:[i.ephemeral&&i.ephemeralReason!==null?(0,j.jsx)(`p`,{className:`mx-chat__ephemeral`,role:`note`,children:i.ephemeralReason}):null,(0,j.jsxs)(`div`,{className:`mx-chat__scroll`,ref:f.ref,role:`log`,"aria-live":`polite`,"aria-relevant":`additions`,"aria-label":r,"data-pinned":f.pinned,tabIndex:0,children:[o.transcriptHeader??null,s.length===0?Nw(o.empty):(0,j.jsxs)(`ol`,{className:`mx-chat__messages`,children:[d>0?(0,j.jsx)(`li`,{className:`mx-chat__earlier`,children:(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-quiet-button mx-chat-focusable`,onClick:()=>l(e=>e+n),children:`Show earlier messages (${d} hidden)`})}):null,u.map((e,t)=>{let n=t>0&&u[t-1]?.role===e.role;return(0,j.jsx)(`li`,{...n?{"data-continued":`true`}:{},children:(0,j.jsx)(ww,{messageId:e.id,continued:n})},e.id)})]}),o.transcriptFooter??null]}),(0,j.jsx)(`p`,{className:`mx-chat__sr-only`,role:`status`,"aria-live":`polite`,children:h}),f.hasUnseenBelow?(0,j.jsx)(`div`,{className:`mx-chat__jump`,children:(0,j.jsx)(hf,{icon:(0,j.jsx)(xi,{}),ariaLabel:`Jump to the latest message`,tooltip:!1,onClick:f.jumpToLatest})}):null]})}function Mw(e,t){return t===void 0||t===``?e:`${e} ${t}`}function Nw(e){return typeof e==`function`?e():e===void 0?(0,j.jsx)(Pw,{}):e}function Pw(e){return(0,j.jsxs)(`div`,{className:`mx-chat-empty`,children:[(0,j.jsx)(`span`,{className:`mx-chat-empty__title`,children:e.title??`Start the conversation`}),(0,j.jsx)(`span`,{children:e.body??`Ask a question, describe what you need, or paste something in.`})]})}var Fw=/[.!?。!?]["')\]]?\s/g;function Iw(e,t){let[n,r]=(0,_.useState)(``),i=(0,_.useRef)(0),a=e[e.length-1],o=a!==void 0&&a.role===`assistant`,s=o?yf(C(a)):``,c=o&&a.status!==`streaming`&&a.status!==`pending`,l=a?.id??``,u=(0,_.useRef)(l);u.current!==l&&(u.current=l,i.current=0);let d=(0,_.useRef)(t);if(d.current!==t){let e=d.current!==null;d.current=t,e&&(u.current=l,i.current=s.length,n!==``&&r(``))}return(0,_.useEffect)(()=>{if(!o)return;Fw.lastIndex=0;let e=0,t=Fw.exec(s);for(;t!==null;)e=t.index+t[0].length,t=Fw.exec(s);let n=c?s.length:e;if(n<=i.current)return;let a=s.slice(i.current,n).trim();i.current=n,a!==``&&r(a)},[s,c,o]),n}function Lw(e){return(0,j.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,children:e})}function Rw(){return Lw((0,j.jsx)(`path`,{d:`M8 13V3.5M3.75 7.75 8 3.5l4.25 4.25`}))}function zw(){return Lw((0,j.jsx)(`rect`,{x:`4.25`,y:`4.25`,width:`7.5`,height:`7.5`,rx:`1.5`,fill:`currentColor`,stroke:`none`}))}function Bw(){return Lw((0,j.jsx)(`path`,{d:`M10.6 5.1 5.9 9.8a1.7 1.7 0 0 0 2.4 2.4l4.7-4.7a3.2 3.2 0 0 0-4.5-4.5L3.6 7.9a4.7 4.7 0 0 0 6.7 6.7`}))}function Vw(){return Lw((0,j.jsx)(`path`,{d:`M4.5 4.5l7 7M11.5 4.5l-7 7`}))}function Hw(e){return(0,j.jsx)(`ul`,{className:`mx-chat-attachments`,"aria-label":`Attachments on this message`,children:e.attachments.map(t=>(0,j.jsxs)(`li`,{className:`mx-chat-attachment`,"data-status":t.status,children:[(0,j.jsx)(`span`,{className:`mx-chat-attachment__name`,title:t.name,children:t.name}),(0,j.jsx)(`span`,{className:`mx-chat-attachment__meta`,children:t.status===`uploading`?t.progress===null?`Uploading…`:`Uploading ${Math.round(t.progress*100)}%`:t.status===`failed`?`Not attached`:Qr(t.sizeBytes)}),t.status===`uploading`?(0,j.jsx)(`span`,{className:`mx-chat-attachment__bar`,role:`progressbar`,"aria-label":`Uploading ${t.name}`,...t.progress===null?{}:{"aria-valuenow":Math.round(t.progress*100),"aria-valuemin":0,"aria-valuemax":100},"data-indeterminate":t.progress===null||void 0,children:(0,j.jsx)(`span`,{className:`mx-chat-attachment__fill`,style:t.progress===null?void 0:{width:`${Math.round(t.progress*100)}%`}})}):null,t.failure===null?null:(0,j.jsx)(`span`,{className:`mx-chat-attachment__failure`,children:t.failure}),t.status===`failed`&&t.retryable?(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-attachment__retry mx-chat-focusable`,onClick:()=>e.onRetry(t.key),children:`Try again`}):null,(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-attachment__remove mx-chat-focusable`,"aria-label":`Remove ${t.name}`,title:`Remove ${t.name}`,onClick:()=>e.onRemove(t.key),children:(0,j.jsx)(Vw,{})})]},t.key))})}function Uw(e){let t=gi(),{quickset:n}=hi(),{thread:r}=di(),i=r.getSnapshot(),a=n===null||e.busy||e.drafting?[]:n.chips({conversationId:i.conversationId,busy:e.busy,empty:i.messages.length===0}),o=t.composerControls;return o===void 0&&a.length===0?null:(0,j.jsxs)(`div`,{className:`mx-chat-run-controls`,children:[o,a.length===0?null:(0,j.jsx)(`div`,{className:`mx-chat-quickset`,role:`group`,"aria-label":`Things you could ask`,children:a.map(t=>(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-quickset__chip mx-chat-focusable`,"data-quickset":t.id,onClick:()=>e.onFill(t.text),children:t.label},t.id))})]})}var Ww=(0,_.createContext)(null);function Gw(){let e=(0,_.useContext)(Ww),t=hi();return(0,_.useMemo)(()=>e??{files:t.files,voice:t.voice},[e,t.files,t.voice])}function Kw(e,t){if(e.isComposing)return`pass`;if(e.key===`Escape`)return e.isBusy?`stop`:`pass`;if(e.key!==`Enter`)return`pass`;let n=e.metaKey||e.ctrlKey;return(t===`enter`?!e.shiftKey&&!n:n)?`send`:`newline`}function qw(e,t,n){if(!Number.isFinite(t)||t<=0)return e;let r=Number.isFinite(n)&&n>0?n:0;return Math.max(1,Math.round((e-r)/t))*t+r}function Jw(e){let t=(0,_.useRef)(null),n=(0,_.useCallback)(()=>{let n=t.current;if(n===null)return;let r=n.offsetHeight,i=n.scrollTop,a=getComputedStyle(n),o=Number.parseFloat(a.lineHeight),s=Number.parseFloat(a.paddingTop||`0`)+Number.parseFloat(a.paddingBottom||`0`)+Number.parseFloat(a.borderTopWidth||`0`)+Number.parseFloat(a.borderBottomWidth||`0`);n.style.transitionProperty=`none`,n.style.height=`0px`;let c=n.scrollHeight;n.style.height=`${r}px`,n.offsetHeight,n.style.transitionProperty=``,n.scrollTop=i;let l=qw(c,o,s),u=Math.max(e.minHeightPx,Math.min(l,e.maxHeightPx));u!==r&&(n.style.height=`${u}px`)},[e.maxHeightPx,e.minHeightPx]);(0,_.useLayoutEffect)(()=>{n()},[n,e.value]);let r=(0,_.useCallback)(n=>{t.current=n;let r=e.inputRef;typeof r==`function`?r(n):r!=null&&(r.current=n)},[e.inputRef]),i={maxHeight:e.maxHeightPx};return(0,j.jsx)(`textarea`,{ref:r,className:`mx-chat-composer__field`,value:e.value,rows:1,style:i,placeholder:e.placeholder,"aria-label":e.label,...e.describedBy===void 0?{}:{"aria-describedby":e.describedBy},disabled:e.disabled,autoFocus:e.autoFocus===!0,onChange:t=>e.onValueChange(t.target.value),onKeyDown:e.onKeyDown,...e.onPaste===void 0?{}:{onPaste:e.onPaste}})}function Yw(e){let{files:t,maxBytes:n,notifier:r}=e,[i,a]=(0,_.useState)([]),o=(0,_.useRef)(new Map),s=(0,_.useRef)(new Map),c=(0,_.useRef)(!0);(0,_.useEffect)(()=>(c.current=!0,()=>{c.current=!1;for(let e of o.current.values())e.controller.abort();o.current.clear()}),[]);let l=(0,_.useCallback)((e,t)=>{c.current&&a(n=>n.map(n=>n.key===e?{...n,...t}:n))},[]),u=(0,_.useCallback)((e,n)=>{let r=new AbortController;o.current.set(e,{file:n,controller:r}),s.current.set(e,n),l(e,{status:`uploading`,progress:null,failure:null}),t.upload(n,{signal:r.signal,onProgress:t=>{r.signal.aborted||l(e,{progress:Math.max(0,Math.min(1,t))})}}).then(t=>{o.current.delete(e),!r.signal.aborted&&l(e,{status:`ready`,progress:1,fileId:t.fileId,previewUrl:t.previewUrl??null,mediaType:t.mediaType,failure:null})}).catch(t=>{o.current.delete(e),!r.signal.aborted&&l(e,{status:`failed`,progress:null,failure:t instanceof Error&&t.message!==``?t.message:`This file could not be uploaded.`,retryable:!0})})},[t,l]),d=(0,_.useCallback)(e=>{if(e.length===0)return;let t=[],i=[];for(let a of e){let e=x(`att`);if(a.size>n){let i=oi(a.name,n);t.push({key:e,name:a.name,sizeBytes:a.size,mediaType:a.type===``?null:a.type,status:`failed`,progress:null,fileId:null,previewUrl:null,failure:i,retryable:!1}),r.notify({level:`warning`,message:i,remedy:`Attach a smaller file, or ask an administrator to raise the limit for this workspace.`});continue}t.push({key:e,name:a.name,sizeBytes:a.size,mediaType:a.type===``?null:a.type,status:`uploading`,progress:null,fileId:null,previewUrl:null,failure:null,retryable:!0}),i.push({key:e,file:a})}a(e=>[...e,...t]);for(let e of i)u(e.key,e.file)},[n,r,u]),f=(0,_.useCallback)(e=>{let t=o.current.get(e);t!==void 0&&(t.controller.abort(),o.current.delete(e)),s.current.delete(e),a(t=>t.filter(t=>t.key!==e))},[]),p=(0,_.useCallback)(e=>{let t=s.current.get(e);t!==void 0&&u(e,t)},[u]),m=(0,_.useCallback)(()=>{for(let e of o.current.values())e.controller.abort();o.current.clear(),s.current.clear(),a([])},[]);return{attachments:i,readyFileIds:i.filter(e=>e.status===`ready`&&e.fileId!==null).map(e=>e.fileId),uploading:i.some(e=>e.status===`uploading`),add:d,remove:f,retry:p,clear:m}}var Xw=24,Zw=208;function Qw(e){let t=e.dataTransfer?.types;return t!==void 0&&Array.from(t).includes(`Files`)}function $w(e){let t=vi(),n=mi(),{notifier:r}=hi(),i=gi(),{files:a,voice:o}=Gw(),{thread:s}=di(),c=(0,_.useRef)(null),l=(0,_.useId)(),[u,d]=(0,_.useState)(!1),[f,p]=(0,_.useState)(!1),[m,h]=(0,_.useState)(!1),g=(0,_.useRef)(0),v=(0,_.useRef)(async()=>void 0),y=Yw({files:a,maxBytes:n.attachmentMaxBytes,notifier:r}),b=(0,_.useRef)(null);(0,_.useEffect)(()=>{let n=e.draftSeed;n!=null&&n!==``&&b.current!==n&&(b.current=n,t.text.trim()===``&&t.setText(n))},[e.draftSeed]);let x=(0,_.useCallback)(e=>{if(e.length!==0){if(!a.available){a.upload(e[0],{signal:new AbortController().signal,onProgress:()=>void 0}).catch(()=>void 0),h(!0);return}y.add(e)}},[y,a]),S=(0,_.useCallback)(e=>{let t=e.clipboardData?.files;t!==void 0&&t.length!==0&&(e.preventDefault(),x(Array.from(t)))},[x]),w=(0,_.useCallback)(e=>{Qw(e)&&(e.preventDefault(),g.current=0,p(!1),x(Array.from(e.dataTransfer.files)))},[x]),T=(0,_.useCallback)(e=>{let r=e.nativeEvent.isComposing;if(!r&&e.key===`ArrowUp`&&t.text===``&&!e.shiftKey&&!e.metaKey&&!e.ctrlKey){let n=s.getSnapshot().messages;for(let r=n.length-1;r>=0;--r){let i=n[r];if(i===void 0||i.role!==`user`)continue;let a=C(i);if(a===``)break;e.preventDefault(),t.setText(a);return}return}let i=Kw({key:e.key,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,isComposing:r,isBusy:t.isBusy},n.sendKey);if(i===`send`){e.preventDefault(),v.current();return}i===`stop`&&(e.preventDefault(),t.stop())},[t,n.sendKey,s]),E=e.held??null,D=E===null?u?`Finish recording to send your message.`:y.uploading?`Your files are still uploading.`:null:E.reason,O=t.canSend&&D===null,k=(0,_.useCallback)(async()=>{if(!O)return;let e=t.text.trim(),n=y.readyFileIds;n.length===0?await t.send():(t.setText(``),(await s.send({text:e,fileIds:n})).accepted?y.clear():t.setText(e)),c.current?.focus()},[y,O,t,s]);v.current=k;let A=(0,_.useCallback)(e=>{e.preventDefault(),k()},[k]),M=t.isBusy?`Stop the answer`:D===null?`Send message`:D,N=t.isBusy&&n.sendWhileBusy&&t.text.trim()!==``,P=D===null?`Queue message — it sends when this answer finishes`:D,F={value:t.text,onValueChange:t.setText,busy:t.isBusy,onBusyChange:d,className:`mx-chat-composer__icon-button mx-chat-focusable`};return(0,j.jsxs)(`form`,{className:`mx-chat-composer${e.className===void 0?``:` ${e.className}`}`,"data-dragging":f||void 0,"data-busy":t.isBusy||void 0,onSubmit:A,onDragEnter:e=>{Qw(e)&&(g.current+=1,p(!0))},onDragOver:e=>{Qw(e)&&e.preventDefault()},onDragLeave:e=>{Qw(e)&&(g.current=Math.max(0,g.current-1),g.current===0&&p(!1))},onDrop:w,children:[i.composerAbove,(0,j.jsx)(Uw,{onFill:t.setText,busy:t.isBusy,drafting:t.text.trim()!==``}),(0,j.jsxs)(`div`,{className:`mx-chat-composer__shell`,children:[y.attachments.length>0?(0,j.jsx)(Hw,{attachments:y.attachments,onRemove:y.remove,onRetry:y.retry}):null,(0,j.jsx)(Jw,{value:t.text,onValueChange:t.setText,onKeyDown:T,onPaste:S,placeholder:e.placeholder??`Send a message`,minHeightPx:Xw,maxHeightPx:Zw,disabled:E!==null,label:`Message`,describedBy:l,inputRef:c,...e.autoFocus===void 0?{}:{autoFocus:e.autoFocus}}),(0,j.jsxs)(`div`,{className:`mx-chat-composer__row`,children:[(0,j.jsxs)(`div`,{className:`mx-chat-composer__left`,children:[a.available?(0,j.jsxs)(`label`,{className:`mx-chat-composer__icon-button mx-chat-focusable`,children:[(0,j.jsx)(Bw,{}),(0,j.jsx)(`span`,{className:`mx-chat__sr-only`,children:`Attach files`}),(0,j.jsx)(`input`,{type:`file`,multiple:!0,"aria-label":`Attach files`,...a.accept===void 0?{}:{accept:a.accept},onChange:e=>{let t=e.target.files;t!==null&&x(Array.from(t)),e.target.value=``}})]}):null,o===null?null:o.renderButton(F),i.composerPickers,i.composerToolbar]}),(0,j.jsxs)(`div`,{className:`mx-chat-composer__right`,children:[i.composerRunControls,N?(0,j.jsx)(`button`,{type:`submit`,className:`mx-chat-composer__send mx-chat-focusable`,"data-mode":`queue`,"aria-label":P,title:P,disabled:!O,children:(0,j.jsx)(Rw,{})}):null,t.isBusy?(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-composer__send mx-chat-focusable`,"data-mode":`stop`,"aria-label":M,title:M,onClick:()=>void t.stop(),children:(0,j.jsx)(zw,{})}):(0,j.jsx)(`button`,{type:`submit`,className:`mx-chat-composer__send mx-chat-focusable`,"data-mode":`send`,"aria-label":M,title:M,disabled:!O,children:(0,j.jsx)(Rw,{})})]})]})]}),(0,j.jsxs)(`div`,{className:`mx-chat-composer__notice`,id:l,role:`status`,"aria-live":`polite`,children:[E===null?m?(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:`${ri} ${ii}`}):D!==null&&t.text.trim()!==``?(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:D}):t.restoredFromFailure?(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:`Your message is back in the box. Send it again when you are ready.`}):null:(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:E.reason}),o?.renderRecovery?.(F)??null]}),i.composerBelow,f?(0,j.jsx)(`div`,{className:`mx-chat-composer__drop`,"aria-live":`polite`,children:a.available?`Drop files to attach them to your message`:ri}):null]})}function eT(e){let t=T(e.features),n=new Set,r=new Map,i=0,a=new Map,o=c(e.getSnapshot());a=s(o.messages);function s(e){let t=new Map;for(let n of e)t.set(n.id,n);return t}function c(e){let t=e.ephemeral===!0;return{conversationId:e.conversationId,messages:e.messages,status:e.status,requestId:e.requestId??null,phase:e.phase??null,ephemeral:t,ephemeralReason:t?e.ephemeralReason??`This conversation is not being saved by the application hosting it.`:null,revision:i,error:e.error??null}}let l=e.subscribe(()=>{i+=1,o=c(e.getSnapshot());let t=s(o.messages);for(let[e,n]of r)if(a.get(e)!==t.get(e))for(let e of n)e();a=t;for(let e of n)e()});return{getSnapshot:()=>o,subscribe(e){return n.add(e),()=>{n.delete(e)}},subscribeToMessage(e,t){let n=r.get(e)??new Set;return n.add(t),r.set(e,n),()=>{n.delete(t),n.size===0&&r.delete(e)}},getMessageSnapshot:e=>o.messages.find(t=>t.id===e),features:t,async send(t){return await e.onSubmit(t),{accepted:!0,refusal:null}},async cancel(){await e.onCancel?.()},setMessages(t){if(!e.onSetMessages)throw Error(`This chat thread's state is owned by the host application, which did not provide onSetMessages. Replace the transcript through the host's own store, or provide onSetMessages.`);e.onSetMessages(t)},async loadConversation(t){if(!e.onLoadConversation)throw Error(`This chat thread's state is owned by the host application, which did not provide onLoadConversation. Open the conversation through the host's own routing, or provide onLoadConversation.`);await e.onLoadConversation(t)},canStartNewConversation:e.onStartNewConversation!==void 0,settleToolCall(t){return e.onSettleToolCall?e.onSettleToolCall(t):{messages:o.messages,messageId:null,applied:!1,refusal:`This chat thread's state is owned by the host application, which did not provide onSettleToolCall. Mark the tool call done in the host's own store when it answers, or provide onSettleToolCall.`}},async startNewConversation(){if(!e.onStartNewConversation)throw Error(`This chat thread's state is owned by the host application, which did not provide onStartNewConversation. Start a new conversation through the host's own store, or provide onStartNewConversation.`);await e.onStartNewConversation()},dispose(){l?.(),l=null,n.clear(),r.clear()}}}var tT={claude:`Claude Code`,codex:`Codex`};function nT(e,t,n){return t?`${e}:${t}`:`session:${n??``}`}var rT=[`completed`,`stopped`,`failed`];function iT(e){return rT.includes(e)}function aT(e){if(!e)return null;let t=Date.parse(e);return Number.isNaN(t)?e:new Date(t).toLocaleString(void 0,{month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`})}var oT=[/model is not supported when using codex/i,/\bmodel[\s:'"`][^.\n]{0,80}\b(?:not supported|does not exist|not available|not found)\b/i,/\bmodel_not_found\b/i,/issue with the selected model/i,/may not exist or you may not have access to it/i],sT=`Model not available on this account`;function cT(e){let t=(e??``).trim();return t!==``&&oT.some(e=>e.test(t))}function lT(e){return cT(e)?sT:e}var uT={Bash:`Run command`,Shell:`Run command`,BashOutput:`Read command output`,KillShell:`Stop command`,Read:`Read file`,Write:`Write file`,Edit:`Edit file`,MultiEdit:`Edit file`,NotebookEdit:`Edit notebook`,Glob:`Find files`,Grep:`Search code`,LS:`List folder`,WebFetch:`Fetch page`,WebSearch:`Web search`,"Web search":`Web search`,Task:`Sub-agent`,Agent:`Sub-agent`,TodoWrite:`Update plan`,Plan:`Update plan`,"Edit files":`Edit files`,ExitPlanMode:`Finish planning`,Skill:`Use skill`,ToolSearch:`Load tools`};function dT(e){let t=e.replace(/[._-]+/g,` `).replace(/([a-z\d])([A-Z])/g,`$1 $2`).replace(/\s+/g,` `).trim().toLowerCase();return t?t.charAt(0).toUpperCase()+t.slice(1):``}function fT(e){let t=/^mcp__(.+?)__(.+)$/.exec(e);return t?.[1]&&t[2]?{server:t[1],tool:t[2]}:null}function pT(e){let t=uT[e];if(t)return t;let n=fT(e);if(n)return`${dT(n.tool)||`Tool`} · ${dT(n.server)}`;let r=/^([\w-]+)\.([\w-]+)$/.exec(e);return r?.[1]&&r[2]?`${dT(r[2])} · ${dT(r[1])}`:dT(e)||`Working…`}function mT(e){let t=e.match(/^\/(?:Users|home)\/[^/]+/)?.[0];return t?`~${e.slice(t.length)}`:e}function hT(e,t=90){let n=e.replace(/\s+/g,` `).trim();return n.length>t?`${n.slice(0,t-1)}…`:n}function gT(e,t){if(typeof t!=`object`||!t)return typeof t==`string`&&t?hT(t):null;let n=t,r=(...e)=>{for(let t of e){let e=n[t];if(typeof e==`string`&&e.trim())return e}return null};switch(e){case`Bash`:case`Shell`:{let e=r(`command`,`description`);return e?hT(e):null}case`Read`:case`Write`:case`Edit`:case`MultiEdit`:case`NotebookEdit`:{let e=r(`file_path`,`notebook_path`,`path`);return e?hT(mT(e)):null}case`Glob`:case`Grep`:return r(`pattern`)?hT(r(`pattern`)):null;case`WebFetch`:return r(`url`)?hT(r(`url`)):null;case`WebSearch`:case`Web search`:return r(`query`)?hT(r(`query`)):null;case`Task`:case`Agent`:return r(`description`,`prompt`)?hT(r(`description`,`prompt`)):null;case`Edit files`:{let e=n.changes,t=Array.isArray(e)?e.map(e=>typeof e==`object`&&e?e.path:null).filter(e=>typeof e==`string`):typeof e==`object`&&e?Object.keys(e):[];return t.length?hT(t.map(mT).join(`, `)):null}default:{let e=r(`url`,`query`,`command`,`path`,`file_path`,`name`,`description`);return e?hT(e):null}}}function _T(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function vT(e){return typeof e==`string`?e:null}function yT(e){let t=_T(e)?vT(e.type):vT(e);return t===`add`||t===`create`?`created`:t===`delete`?`deleted`:t===`move`||t===`rename`?`moved`:`edited`}function bT(e){let t=new Map,n=(e,n,r)=>{let i=t.get(e);i?(i.edits.push(r),n===`deleted`&&(i.kind=`deleted`)):t.set(e,{path:e,kind:n,edits:[r]})};for(let t of e)for(let e of t.parts){if(e.type!==`tool`)continue;let t=e.input;if(!_T(t))continue;let r=e.state===`output-error`||!!e.errorText,i={toolCallId:e.toolCallId,failed:r};switch(e.toolName){case`Write`:{let e=vT(t.file_path);e&&n(e,`created`,{...i,removed:null,added:vT(t.content),diff:null});break}case`Edit`:{let e=vT(t.file_path);e&&n(e,`edited`,{...i,removed:vT(t.old_string),added:vT(t.new_string),diff:null});break}case`MultiEdit`:{let e=vT(t.file_path),r=Array.isArray(t.edits)?t.edits:[];if(e)for(let t of r.filter(_T))n(e,`edited`,{...i,removed:vT(t.old_string),added:vT(t.new_string),diff:null});break}case`NotebookEdit`:{let e=vT(t.notebook_path);e&&n(e,`edited`,{...i,removed:null,added:vT(t.new_source),diff:null});break}case`Edit files`:{let e=t.changes;if(Array.isArray(e))for(let t of e.filter(_T)){let e=vT(t.path);e&&n(e,yT(t.kind),{...i,removed:null,added:null,diff:null})}else if(_T(e))for(let[t,r]of Object.entries(e)){let e=_T(r)?vT(r.unified_diff):null;n(t,yT(r),{...i,removed:null,added:null,diff:e})}break}}}return[...t.values()]}function xT(e){let t=0,n=0,r=e=>e?e.split(`
67
- `).length:0;for(let i of e.edits)if(!i.failed){if(i.diff)for(let e of i.diff.split(`
68
- `))e.startsWith(`+`)&&!e.startsWith(`+++`)?t+=1:e.startsWith(`-`)&&!e.startsWith(`---`)&&(n+=1);else t+=r(i.added),n+=r(i.removed)}return{added:t,removed:n}}function ST(e,t){let n=nT(e.provider,e.providerSessionId,e.id),r=t[n]??t[nT(e.provider,null,e.id)]??{};return{key:n,kind:`session`,provider:e.provider,providerSessionId:e.providerSessionId,title:r.title||e.title,originalTitle:e.title,cwd:e.cwd,updatedAt:e.updatedAt,pinned:r.pinned===!0,hidden:r.hidden===!0,session:e,discovered:null}}function CT(e,t){let n=nT(e.provider,e.providerSessionId),r=t[n]??{};return{key:n,kind:`discovered`,provider:e.provider,providerSessionId:e.providerSessionId,title:r.title||e.title,originalTitle:e.title,cwd:e.cwd,updatedAt:e.updatedAt,pinned:r.pinned===!0,hidden:r.hidden===!0,session:null,discovered:e}}var wT=864e5;function TT(e){let t=new Date(e);return t.setHours(0,0,0,0),t.getTime()}function ET(e,t){let n=Date.parse(e);if(Number.isNaN(n))return`Older`;let r=TT(t);if(n>=r)return`Today`;if(n>=r-wT)return`Yesterday`;if(n>=r-7*wT)return`Previous 7 days`;if(n>=r-30*wT)return`Previous 30 days`;let i=new Date(n),a=new Date(t).getFullYear();return i.getFullYear()===a?i.toLocaleDateString(void 0,{month:`long`}):String(i.getFullYear())}function DT(e){if(!e)return`Unknown folder`;let t=e.split(`/`).filter(Boolean);return t[t.length-1]??e}function OT(e,t,n){let r=new Map;for(let i of e){let e=t===`date`?ET(i.updatedAt,n):i.cwd??``,a=r.get(e);a||(a={label:t===`date`?e:DT(i.cwd),entries:[]},r.set(e,a)),a.entries.push(i)}if(t===`folder`){let e=new Map;for(let t of r.values())e.set(t.label,(e.get(t.label)??0)+1);for(let[t,n]of r)(e.get(n.label)??0)>1&&t&&(n.label=t.split(`/`).filter(Boolean).slice(-2).join(`/`))}return[...r.values()]}function kT(e,t){let n=t.trim().toLowerCase();return!n||e.title.toLowerCase().includes(n)||e.originalTitle.toLowerCase().includes(n)||(e.cwd??``).toLowerCase().includes(n)}function AT(e,t){return t.updatedAt.localeCompare(e.updatedAt)}function jT(e){if(!e.providerSessionId)return null;let t=e.provider===`claude`?`claude --resume ${e.providerSessionId}`:`codex resume ${e.providerSessionId}`;return e.cwd?`cd ${/^[A-Za-z0-9_./~-]+$/.test(e.cwd)?e.cwd:`'${e.cwd.replace(/'/g,`'\\''`)}'`} && ${t}`:t}var MT=(0,_.createContext)(null);function NT(){let e=(0,_.useContext)(MT);if(!e)throw Error(`[@ai-matrx/coding-sessions] Render this inside <CodingSessionsProvider transport={…}> (or <CodingSessionsApp>).`);return e}function PT(){let e=NT();return(0,_.useSyncExternalStore)(e.subscribe,e.getState,e.getState)}function FT(e){let t=NT().transcript(e),[,n]=(0,_.useState)(0);return(0,_.useEffect)(()=>t.thread.subscribe(()=>n(e=>e+1)),[t]),t}function IT(){let[e,t]=(0,_.useState)(()=>Date.now());return(0,_.useEffect)(()=>{let e=setInterval(()=>t(Date.now()),6e4);return()=>clearInterval(e)},[]),e}function LT(e,t){return e?Xr(e,{style:`long`,now:t,fallback:``}):``}function RT(e){if(!e)return``;let t=e.match(/^\/(?:Users|home)\/[^/]+/)?.[0],n=t?`~${e.slice(t.length)}`:e;return n.length<=48?n:`…/${n.split(`/`).slice(-3).join(`/`)}`}function zT({size:e=16,children:t,...n}){return(0,j.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:1.8,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,...n,children:t})}var BT=e=>(0,j.jsx)(zT,{...e,children:(0,j.jsx)(`path`,{d:`M12 5v14M5 12h14`})}),VT=e=>(0,j.jsx)(zT,{...e,children:(0,j.jsx)(`rect`,{x:`6`,y:`6`,width:`12`,height:`12`,rx:`2`,fill:`currentColor`,stroke:`none`})}),HT=e=>(0,j.jsx)(zT,{...e,children:(0,j.jsx)(`path`,{d:`M3 7.5A2.5 2.5 0 0 1 5.5 5H9l2 2.5h7.5A2.5 2.5 0 0 1 21 10v7.5a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 17.5z`})}),UT=e=>(0,j.jsx)(zT,{...e,children:(0,j.jsx)(`path`,{d:`m5 12.5 4.5 4.5L19 7.5`})}),WT=e=>(0,j.jsxs)(zT,{...e,children:[(0,j.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,j.jsx)(`path`,{d:`M12 7.5v5.5M12 16.5h.01`})]}),GT=e=>(0,j.jsx)(zT,{...e,children:(0,j.jsx)(`path`,{d:`M20 11a8 8 0 0 0-14.3-4.9L4 8M4 4v4h4M4 13a8 8 0 0 0 14.3 4.9L20 16M20 20v-4h-4`})}),KT=e=>(0,j.jsxs)(zT,{...e,children:[(0,j.jsx)(`path`,{d:`M5 12h12M13 7l5 5-5 5`}),(0,j.jsx)(`path`,{d:`M5 5v14`})]}),qT=e=>(0,j.jsxs)(zT,{...e,children:[(0,j.jsx)(`circle`,{cx:`12`,cy:`12`,r:`4`}),(0,j.jsx)(`path`,{d:`M12 2.5v2M12 19.5v2M4.2 4.2l1.4 1.4M18.4 18.4l1.4 1.4M2.5 12h2M19.5 12h2M4.2 19.8l1.4-1.4M18.4 5.6l1.4-1.4`})]}),JT=e=>(0,j.jsx)(zT,{...e,children:(0,j.jsx)(`path`,{d:`M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z`})}),YT=e=>(0,j.jsxs)(zT,{...e,children:[(0,j.jsx)(`rect`,{x:`3`,y:`4.5`,width:`18`,height:`12`,rx:`2`}),(0,j.jsx)(`path`,{d:`M8.5 20h7M12 16.5V20`})]}),XT=e=>(0,j.jsx)(zT,{...e,children:(0,j.jsx)(`path`,{d:`M20 12.5a7.5 7.5 0 0 1-10.9 6.7L4 20.5l1.3-4.6A7.5 7.5 0 1 1 20 12.5z`})}),ZT=({size:e=16,className:t})=>(0,j.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,"aria-hidden":`true`,className:`cs-spin ${t??``}`,children:[(0,j.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`,fill:`none`,stroke:`currentColor`,strokeOpacity:`0.2`,strokeWidth:`2.5`}),(0,j.jsx)(`path`,{d:`M21 12a9 9 0 0 0-9-9`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`})]}),QT=`m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z`,$T=`M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z`;function eE({provider:e,size:t=16}){return(0,j.jsx)(`svg`,{className:`cs-provider-mark cs-provider-mark--${e}`,width:t,height:t,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,"data-provider-mark":e,children:(0,j.jsx)(`path`,{d:e===`claude`?QT:$T})})}var tE=e=>(0,j.jsxs)(zT,{...e,children:[(0,j.jsx)(`circle`,{cx:`11`,cy:`11`,r:`6.5`}),(0,j.jsx)(`path`,{d:`m20 20-4.2-4.2`})]}),nE=e=>(0,j.jsxs)(zT,{...e,children:[(0,j.jsx)(`circle`,{cx:`5.5`,cy:`12`,r:`1.2`,fill:`currentColor`,stroke:`none`}),(0,j.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1.2`,fill:`currentColor`,stroke:`none`}),(0,j.jsx)(`circle`,{cx:`18.5`,cy:`12`,r:`1.2`,fill:`currentColor`,stroke:`none`})]}),rE=e=>(0,j.jsxs)(zT,{...e,children:[(0,j.jsx)(`path`,{d:`M9 4h6l-1 5 3 3v2H7v-2l3-3z`}),(0,j.jsx)(`path`,{d:`M12 14v6`})]}),iE=e=>(0,j.jsxs)(zT,{...e,children:[(0,j.jsx)(`path`,{d:`M3 3l18 18`}),(0,j.jsx)(`path`,{d:`M10.6 5.1A9.8 9.8 0 0 1 12 5c5 0 8.5 4.5 9.5 7a13 13 0 0 1-2.6 3.9M6.4 6.4C4.3 7.8 2.9 9.9 2.5 12c1 2.5 4.5 7 9.5 7 1.8 0 3.4-.6 4.8-1.4`}),(0,j.jsx)(`path`,{d:`M9.9 9.9a3 3 0 0 0 4.2 4.2`})]}),aE=e=>(0,j.jsxs)(zT,{...e,children:[(0,j.jsx)(`rect`,{x:`8.5`,y:`8.5`,width:`11`,height:`11`,rx:`2`}),(0,j.jsx)(`path`,{d:`M15.5 8.5V6.5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h2`})]}),oE=e=>(0,j.jsxs)(zT,{...e,children:[(0,j.jsx)(`path`,{d:`M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16z`}),(0,j.jsx)(`path`,{d:`m13.5 6.5 4 4`})]}),sE=e=>(0,j.jsxs)(zT,{...e,children:[(0,j.jsx)(`rect`,{x:`3.5`,y:`4.5`,width:`17`,height:`15`,rx:`2.5`}),(0,j.jsx)(`path`,{d:`M9.5 4.5v15`})]}),cE=e=>(0,j.jsx)(zT,{...e,children:(0,j.jsx)(`path`,{d:`m6.5 9.5 5.5 5.5 5.5-5.5`})}),lE=e=>(0,j.jsxs)(zT,{...e,children:[(0,j.jsx)(`path`,{d:`M14 3.5H7.5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2V8z`}),(0,j.jsx)(`path`,{d:`M14 3.5V8h4.5`})]}),uE=e=>(0,j.jsx)(zT,{...e,children:(0,j.jsx)(`path`,{d:`M6.5 6.5l11 11M17.5 6.5l-11 11`})}),dE=e=>(0,j.jsxs)(zT,{...e,children:[(0,j.jsx)(`rect`,{x:`3`,y:`6.5`,width:`18`,height:`11`,rx:`2`}),(0,j.jsx)(`path`,{d:`M7 10.5h.01M11 10.5h.01M15 10.5h.01M8 14h8`})]}),fE=e=>(0,j.jsxs)(zT,{...e,children:[(0,j.jsx)(`path`,{d:`M6 16.5V11a6 6 0 1 1 12 0v5.5l1.5 1.5h-15z`}),(0,j.jsx)(`path`,{d:`M10 20.5a2 2 0 0 0 4 0`})]}),pE=(0,_.createContext)(()=>void 0);function mE(){return(0,_.useContext)(pE)}var hE=[{target:`finder`,label:`Finder`},{target:`vscode`,label:`VS Code`},{target:`cursor`,label:`Cursor`},{target:`terminal`,label:`Terminal`}];async function gE(e,t,n){try{await navigator.clipboard.writeText(e),t(`${n} copied.`)}catch{t(`This browser didn't allow copying. Select the text and copy it with your keyboard instead: ${e}`)}}async function _E(e,t,n){try{let r=await e.readRawTranscript(t.provider,t.providerSessionId);if(!r.available){n(r.reason);return}let i=URL.createObjectURL(new Blob([r.content],{type:`application/x-ndjson`})),a=document.createElement(`a`);a.href=i,a.download=r.fileName,a.click(),setTimeout(()=>URL.revokeObjectURL(i),1e4),n(`Downloaded ${r.fileName} (${Qr(r.bytes)}).`)}catch(e){n(`Full Download failed: ${e instanceof Error?e.message:String(e)}`)}}function vE(e){let t=NT(),n=mE(),{entry:r}=e,i=e.variant===`dropdown`?{Item:GC,Separator:YC,Sub:LC,SubTrigger:HC,SubContent:UC}:{Item:Cb,Separator:Db,Sub:gb,SubTrigger:bb,SubContent:xb},a=(e,i)=>{t.setPreference(r.key,e).then(()=>n(i),e=>n(`That didn't save: ${e instanceof Error?e.message:String(e)}`))},o=jT(r);return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(i.Item,{onSelect:e.onRename,children:[(0,j.jsx)(oE,{size:14}),`Rename`]}),(0,j.jsxs)(i.Item,{onSelect:()=>a({pinned:!r.pinned},r.pinned?`Unpinned.`:`Pinned to the top.`),children:[(0,j.jsx)(rE,{size:14}),r.pinned?`Unpin`:`Pin to top`]}),(0,j.jsxs)(i.Item,{onSelect:()=>a({hidden:!r.hidden},r.hidden?`Back in the list.`:`Hidden from the list. Search still finds it.`),children:[(0,j.jsx)(iE,{size:14}),r.hidden?`Show in the list`:`Hide from the list`]}),r.providerSessionId||r.cwd?(0,j.jsx)(i.Separator,{}):null,r.providerSessionId?(0,j.jsxs)(i.Item,{onSelect:()=>void gE(r.providerSessionId,n,`Chat ID`),children:[(0,j.jsx)(aE,{size:14}),`Copy chat ID`]}):null,o?(0,j.jsxs)(i.Item,{onSelect:()=>void gE(o,n,`Resume command`),children:[(0,j.jsx)(aE,{size:14}),`Copy resume command`]}):null,r.providerSessionId?(0,j.jsxs)(i.Item,{onSelect:()=>void _E(t,r,n),children:[(0,j.jsx)(aE,{size:14}),`Full Download`]}):null,r.cwd?(0,j.jsxs)(i.Item,{onSelect:()=>void gE(r.cwd,n,`Folder path`),children:[(0,j.jsx)(aE,{size:14}),`Copy folder path`]}):null,r.cwd?(0,j.jsxs)(i.Sub,{children:[(0,j.jsxs)(i.SubTrigger,{className:`gap-2`,children:[(0,j.jsx)(HT,{size:14}),`Open folder in`]}),(0,j.jsx)(i.SubContent,{children:hE.map(({target:e,label:a})=>(0,j.jsx)(i.Item,{onSelect:()=>t.openFolder(r.cwd,e).catch(e=>n(e instanceof Error?e.message:String(e))),children:a},e))})]}):null]})}var yE=400;function bE(e,t){if(t){let n=t.replace(/\/+$/,``);for(let t of[n,`/private${n}`,n.replace(/^\/private(?=\/)/,``)])if(e.startsWith(`${t}/`))return e.slice(t.length+1)}return RT(e)}function xE({edit:e}){let t=[];if(e.diff)for(let n of e.diff.split(`
69
- `))n.startsWith(`@@`)?t.push({kind:`hunk`,text:n}):n.startsWith(`+`)?t.push({kind:`add`,text:n}):n.startsWith(`-`)?t.push({kind:`del`,text:n}):n!==``&&t.push({kind:`ctx`,text:n});else{if(e.removed)for(let n of e.removed.split(`
70
- `))t.push({kind:`del`,text:`-${n}`});if(e.added)for(let n of e.added.split(`
71
- `))t.push({kind:`add`,text:`+${n}`})}if(t.length===0)return(0,j.jsx)(`p`,{className:`text-[12px] text-muted-foreground`,children:e.failed?`This change failed.`:`The agent didn't record the text of this change.`});let n=t.slice(0,yE);return(0,j.jsxs)(j.Fragment,{children:[e.failed?(0,j.jsx)(`p`,{className:`mb-1 text-[11.5px] text-destructive`,children:`This change failed and was not applied.`}):null,(0,j.jsx)(`pre`,{className:Y(`cs-diff`,e.failed&&`opacity-60`),children:n.map((e,t)=>(0,j.jsx)(`span`,{className:Y(`cs-diff__line`,e.kind!==`ctx`&&`cs-diff__line--${e.kind}`),children:e.text||` `},t))}),t.length>yE?(0,j.jsxs)(`p`,{className:`mt-1 text-[11.5px] text-muted-foreground`,children:[`Showing the first `,yE,` of `,t.length,` lines.`]}):null]})}function SE({file:e,cwd:t}){let[n,r]=(0,_.useState)(!1),i=mE(),a=xT(e),o=bE(e.path,t),s={created:`New`,edited:`Edited`,deleted:`Deleted`,moved:`Moved`}[e.kind];return(0,j.jsxs)(`li`,{className:`border-b border-border`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2 px-4 py-2`,children:[(0,j.jsxs)(`button`,{type:`button`,onClick:()=>r(e=>!e),"aria-expanded":n,className:`flex min-w-0 flex-1 items-center gap-2 text-left`,children:[(0,j.jsx)(cE,{size:13,className:Y(`shrink-0 transition-transform`,!n&&`-rotate-90`)}),(0,j.jsx)(lE,{size:14,className:`shrink-0 text-muted-foreground`}),(0,j.jsx)(`span`,{className:`min-w-0 truncate text-[12.5px] font-medium`,title:e.path,children:o})]}),(0,j.jsx)(`span`,{className:`shrink-0 text-[11px] text-muted-foreground`,children:s}),(0,j.jsxs)(`span`,{className:`shrink-0 font-mono text-[11px]`,children:[a.added?(0,j.jsxs)(`span`,{className:`cs-count-add`,children:[`+`,a.added]}):null,` `,a.removed?(0,j.jsxs)(`span`,{className:`cs-count-del`,children:[`−`,a.removed]}):null]}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>void gE(e.path,i,`File path`),"aria-label":`Copy the path of ${o}`,title:`Copy path`,children:(0,j.jsx)(lE,{size:12})})]}),n?(0,j.jsx)(`div`,{className:`space-y-3 px-4 pb-3`,children:e.edits.map((e,t)=>(0,j.jsx)(xE,{edit:e},`${e.toolCallId}-${t}`))}):null]})}function CE(e){return(0,_.useMemo)(()=>bT(e),[e])}function wE(e){return(0,j.jsxs)(`aside`,{className:`cs-changes`,"aria-label":`Files changed in this chat`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border px-4 py-3`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`h2`,{className:`text-[13.5px] font-semibold`,children:`Files changed`}),(0,j.jsxs)(`p`,{className:`text-[11.5px] text-muted-foreground`,children:[e.files.length===0?`Nothing yet`:`${e.files.length} ${e.files.length===1?`file`:`files`}, from this chat's own record`,e.truncated?` · only the part of the chat shown here`:``]})]}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:e.onClose,"aria-label":`Close files changed`,children:(0,j.jsx)(uE,{size:14})})]}),e.files.length===0?(0,j.jsx)(`p`,{className:`px-4 py-6 text-center text-[12.5px] leading-5 text-muted-foreground`,children:`The agent hasn't written any files in this chat yet.`}):(0,j.jsx)(`ul`,{className:`min-h-0 flex-1 overflow-y-auto`,children:e.files.map(t=>(0,j.jsx)(SE,{file:t,cwd:e.cwd},t.path))})]})}function TE(e){let t=e?.defaultModel;return t?t.source===`settings`?`${t.id}, from your settings`:`${t.id}, the built-in default`:`${e?.label??`the agent`}'s own default`}function EE(e,t){let n=e.model??t?.defaultModel?.id??`Default model`,r=e.effort??t?.defaultEffort??null;return r?`${n} · ${r}`:n}function DE(e){let[t,n]=(0,_.useState)(!1),[r,i]=(0,_.useState)(``),a=e.status?.models??[],o=e.status?.efforts??[],s=e.value.model===null||a.some(t=>t.id===e.value.model),c=t=>e.onChange({...e.value,...t});return(0,j.jsxs)(DS,{open:t,onOpenChange:n,children:[(0,j.jsx)(OS,{asChild:!0,children:(0,j.jsxs)(`button`,{type:`button`,disabled:e.disabled,className:Y(e.appearance===`field`?`cs-model-field`:`cs-chip-button`),"aria-label":`Model and effort: ${EE(e.value,e.status)}. Change`,title:`Model and effort`,children:[(0,j.jsx)(`span`,{className:`truncate`,children:EE(e.value,e.status)}),(0,j.jsx)(cE,{size:12,className:`shrink-0`})]})}),(0,j.jsxs)(kS,{align:`start`,className:`w-[300px] p-0`,children:[(0,j.jsxs)(`div`,{className:`max-h-[320px] overflow-y-auto p-1`,role:`listbox`,"aria-label":`Model`,children:[(0,j.jsx)(`p`,{className:`px-2 pb-1 pt-1.5 text-[11px] font-medium uppercase tracking-[0.05em] text-muted-foreground`,children:`Model`}),(0,j.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":e.value.model===null,className:`cs-option`,onClick:()=>c({model:null}),children:[(0,j.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,j.jsx)(`span`,{className:`block text-[13px]`,children:`Default`}),(0,j.jsx)(`span`,{className:`block truncate text-[11.5px] text-muted-foreground`,children:TE(e.status)})]}),e.value.model===null?(0,j.jsx)(UT,{size:14}):null]}),a.map(t=>(0,j.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":e.value.model===t.id,className:`cs-option`,onClick:()=>c({model:t.id}),children:[(0,j.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[13px]`,children:t.label}),e.value.model===t.id?(0,j.jsx)(UT,{size:14}):null]},t.id)),s?null:(0,j.jsxs)(`div`,{className:`cs-option`,"aria-selected":`true`,role:`option`,children:[(0,j.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[13px]`,children:e.value.model}),(0,j.jsx)(UT,{size:14})]}),(0,j.jsx)(`div`,{className:`flex gap-1 px-1 pb-1 pt-1.5`,children:(0,j.jsx)(`input`,{value:r,onChange:e=>i(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.stopPropagation(),r.trim()&&(c({model:r.trim()}),i(``)))},placeholder:`Another model name…`,"aria-label":`Another model name`,spellCheck:!1,className:`cs-option-input`})})]}),o.length>0?(0,j.jsxs)(`div`,{className:`border-t border-border p-2`,children:[(0,j.jsx)(`p`,{className:`px-1 pb-1.5 text-[11px] font-medium uppercase tracking-[0.05em] text-muted-foreground`,children:`Thinking effort`}),(0,j.jsx)(`div`,{className:`flex flex-wrap gap-1`,role:`radiogroup`,"aria-label":`Thinking effort`,children:[null,...o].map(t=>(0,j.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":e.value.effort===t,className:Y(`cs-seg`,e.value.effort===t&&`cs-seg--on`),onClick:()=>c({effort:t}),title:t===null?`Default${e.status?.defaultEffort?` (${e.status.defaultEffort}, from your settings)`:``}`:void 0,children:t===null?`Default`:t},t??`default`))})]}):null]})]})}var OE=[`subject`,`character`,`style`,`mask`,`edit_target`,`composition_control`],kE=[`first_frame`,`last_frame`,`asset`,`style`];[...OE,...kE];var AE={subject:{label:`Subject`,ask:`Subject reference`,explanation:`Keeps this exact product or object recognisable: shape, materials, labels.`},character:{label:`Character`,ask:`Character reference`,explanation:`Keeps this person or character looking the same.`},style:{label:`Style`,ask:`Style reference`,explanation:`Borrows only the look (colours, lighting, medium), never the content.`},mask:{label:`Mask`,ask:`Mask`,explanation:`Marks the only area of the edited image that is allowed to change.`},edit_target:{label:`Edit this`,ask:`Image to edit`,explanation:`The image being edited; everything not asked for stays the same.`},composition_control:{label:`Composition`,ask:`Composition reference`,explanation:`Follows its layout, pose and geometry, not its appearance.`},first_frame:{label:`First frame`,ask:`First frame`,explanation:`The video starts on exactly this image.`},last_frame:{label:`Last frame`,ask:`Last frame`,explanation:`The video ends on exactly this image (needs a first frame).`},asset:{label:`Asset`,ask:`Asset reference`,explanation:`Keeps this product, object or character recognisable throughout the clip.`},extend:{label:`Extend`,ask:`Video to extend`,explanation:`The new clip continues this video from its last frame.`},restyle:{label:`Restyle`,ask:`Reference video`,explanation:`Re-renders this video: same motion and timing, a new look.`},lip_sync:{label:`Lip sync`,ask:`Lip-sync audio`,explanation:`The speech the on-screen face mouths, word for word.`}};function jE(e){return typeof e==`string`&&e in AE}var ME=[`image`,`video`,`audio`,`document`,`youtube`];function NE(e){return typeof e.control?.key==`string`&&e.control.key.length>0}function PE(e){let t=[],n=[];for(let r of e)(NE(r)?n:t).push(r);return{content:t,settings:n}}function FE(e){let{content:t,settings:n}=PE(e);if(n.length===0)return e;let r=[...t,...n];return r.every((t,n)=>t===e[n])?e:r}function IE(e){let t=e.customComponent?.type,n=e.customComponent?.imageRole;return(t===`image`||t===`video`||t===`audio`)&&jE(n)?n:null}function LE(e,t){let n=IE(e);return n?AE[n].ask:t(e.name)}function RE(e){if(e.helpText)return e.helpText;let t=IE(e);return t?AE[t].explanation:void 0}function zE(e,t){return FE([...e??[]]).map(e=>{let n=e.customComponent?.type??`textarea`,r=e.customComponent?.options??void 0;return{name:e.name,label:LE(e,t),hint:RE(e),group:NE(e)?`settings`:`content`,required:!!e.required,component:n,options:r&&r.length>0?r:void 0,mediaKind:ME.includes(n)?n:null,role:IE(e),controlKey:NE(e)?e.control?.key??null:null,variable:e}})}function BE(e){return e}function VE(e){return`mandate:${e}`}function HE(e){return e.startsWith(`mandate:`)}var UE=[{value:`updated-desc`,label:`Recent`},{value:`created-desc`,label:`Created`},{value:`name-asc`,label:`A → Z`},{value:`name-desc`,label:`Z → A`},{value:`category-asc`,label:`Category`}],WE=[`active`,`both`,`archived`],GE=[{value:`active`,label:`Hide archived`,chip:`Archive`},{value:`both`,label:`Show all`,chip:`All + archived`},{value:`archived`,label:`Archived only`,chip:`Archived only`}];function KE(e){let t=WE.indexOf(e);return t<0?WE[0]:WE[(t+1)%WE.length]}function qE(e){return e===`active`||e===`archived`||e===`both`}var JE={tab:`mine`,sortBy:`updated-desc`,searchTerm:``,includedCats:[],includedTags:[],favFilter:`all`,archFilter:`active`,accessFilter:`any`,favoritesFirst:!0,listPage:1,sharedPage:1,serverMatchedIds:[],isServerSearching:!1,deepSearch:!1},YE=class extends Error{name=`AgentCatalogConfigError`;code;remedy;constructor(e){super(`${e.message} — ${e.remedy}`),this.code=e.code,this.remedy=e.remedy}},XE={publicTab:`Public`,systemBadge:`system`,archivedBadge:`Archived`,searchPlaceholder:`Search agents...`,currentAgentHeading:`Current agent`,emptyDefault:`No agents found`,emptyShared:`No shared agents found`,emptySystem:`No system agents found`,emptySignedOut:`Sign in to see your agents`,loading:`Loading...`,triggerFallback:`Agents`,triggerResolving:`Naming the agent…`,triggerUnnameable:`An agent this list cannot name`,hoverHint:`Hover an agent to preview its details, or click to select.`};function ZE(e){return e.ok===!1}function QE(){let e=!1;return t=>{e||(e=!0,console.error("[associations] no errorSink port bound — using the package default. Bind the `errorSink` port on createAssociationsStore({ errorSink }) to route these into your diagnostics surface; until then they only reach the console.")),console.error(`[associations] ${t.code}: ${t.message}`,t.context??{})}}var $E={access_delta_probe:{token:`access_delta_probe`,schema:`iam`,table:`access_delta_probe`,label:`Access Delta Probe`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},access_delta_run:{token:`access_delta_run`,schema:`iam`,table:`access_delta_run`,label:`Access Delta Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},access_request:{token:`access_request`,schema:`iam`,table:`access_requests`,label:`Access Request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`System`,referencePickable:!1,titleColumn:null,contentRole:`utility`,referenceCategory:null},account_addon:{token:`account_addon`,schema:`billing`,table:`account_addon`,label:`Account Addon`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},acquisition_block:{token:`acquisition_block`,schema:`platform`,table:`acquisition_block`,label:`Acquisition Block`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},activity:{token:`activity`,schema:`platform`,table:`activity_log`,label:`Activity Log Entry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},admin_audit_log:{token:`admin_audit_log`,schema:`admin`,table:`admin_audit_log`,label:`Admin audit log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},admin_email_log:{token:`admin_email_log`,schema:`admin`,table:`admin_email_logs`,label:`Admin email log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},admin_markdown_sample:{token:`admin_markdown_sample`,schema:`admin`,table:`admin_markdown_samples`,label:`Admin markdown sample`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},admin_user:{token:`admin_user`,schema:`admin`,table:`admins`,label:`Platform admin`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},admission_config:{token:`admission_config`,schema:`content_ir`,table:`admission_config`,label:`Admission Config`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent:{token:`agent`,schema:`agent`,table:`definition`,label:`Agent`,baseTier:1,isComponent:!1,isModule:!0,isListed:!0,scopeable:!0,category:`Agents`,referencePickable:!0,titleColumn:`name`,contentRole:`utility`,referenceCategory:null},agent_card:{token:`agent_card`,schema:`agent`,table:`card`,label:`Agent Card`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_definition_version:{token:`agent_definition_version`,schema:`agent`,table:`definition_version`,label:`Agent Definition Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},agent_drift_alert:{token:`agent_drift_alert`,schema:`agent`,table:`drift_alert`,label:`Agent Drift Alert`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_exemplar:{token:`agent_exemplar`,schema:`agent`,table:`exemplar`,label:`Agent Test Case`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_mandate_note:{token:`agent_mandate_note`,schema:`agent`,table:`mandate_note`,label:`Mandate Note`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_prompt_remediation:{token:`agent_prompt_remediation`,schema:`agent`,table:`prompt_remediation`,label:`Agent Prompt Remediation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_run:{token:`agent_run`,schema:`chat`,table:`agent_run`,label:`Agent Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_run_stage:{token:`agent_run_stage`,schema:`chat`,table:`agent_run_stage`,label:`Agent Run Stage`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_schedule:{token:`agent_schedule`,schema:`scheduler`,table:`agent_schedule`,label:`Agent Schedule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_schedule_claim:{token:`agent_schedule_claim`,schema:`scheduler`,table:`agent_schedule_claim`,label:`Agent Schedule Claim`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_shortcut:{token:`agent_shortcut`,schema:`agent`,table:`shortcut`,label:`Agent Shortcut`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!0,titleColumn:`label`,contentRole:`utility`,referenceCategory:null},agent_surface_binding:{token:`agent_surface_binding`,schema:`platform`,table:`associations`,label:`Agent Surface Binding`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},agent_template:{token:`agent_template`,schema:`agent`,table:`template`,label:`Agent Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},agent_term_list:{token:`agent_term_list`,schema:`agent`,table:`term_list`,label:`Term List`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},agent_usage:{token:`agent_usage`,schema:`agent`,table:`usage`,label:`Agent Usage`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_api:{token:`ai_api`,schema:`ai`,table:`api`,label:`AI API`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},ai_calls:{token:`ai_calls`,schema:`runtime`,table:`_ai_calls`,label:`AI model calls`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_endpoint:{token:`ai_endpoint`,schema:`ai`,table:`endpoint`,label:`AI Endpoint`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},ai_model:{token:`ai_model`,schema:`ai`,table:`model_definition`,label:`AI Model`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},ai_model_alias:{token:`ai_model_alias`,schema:`ai`,table:`model_alias`,label:`AI Model Alias`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_offering:{token:`ai_offering`,schema:`ai`,table:`offering`,label:`AI Offering`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_provider:{token:`ai_provider`,schema:`ai`,table:`provider`,label:`AI Provider`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},ai_setting:{token:`ai_setting`,schema:`ai`,table:`setting`,label:`AI Setting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`key`,contentRole:null,referenceCategory:null},ai_usage_executions:{token:`ai_usage_executions`,schema:`runtime`,table:`_ai_usage_calls`,label:`AI usage by execution`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_usage_hourly:{token:`ai_usage_hourly`,schema:`runtime`,table:`_ai_usage_hourly`,label:`AI usage by hour`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_usage_hourly_watermark:{token:`ai_usage_hourly_watermark`,schema:`runtime`,table:`_ai_usage_hourly_watermark`,label:`AI usage counted through`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},analysis_result:{token:`analysis_result`,schema:`files`,table:`analysis_result`,label:`Analysis Result`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_form:{token:`anon_form`,schema:`custom`,table:`anon_form`,label:`Public form`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},anon_function_birth_grandfather:{token:`anon_function_birth_grandfather`,schema:`platform`,table:`anon_function_birth_grandfather`,label:`Anon Function Birth Grandfather`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_hit:{token:`anon_hit`,schema:`custom`,table:`anon_hit`,label:`Anonymous rate window`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_inbound:{token:`anon_inbound`,schema:`custom`,table:`anon_inbound`,label:`Inbound address`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_replay:{token:`anon_replay`,schema:`custom`,table:`anon_replay`,label:`Offline capture ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_submission:{token:`anon_submission`,schema:`custom`,table:`anon_submission`,label:`Quarantined submission`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_token:{token:`anon_token`,schema:`custom`,table:`anon_token`,label:`Embed token`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},api_field_warning:{token:`api_field_warning`,schema:`ops`,table:`api_field_warnings`,label:`API field warning`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},api_request_log:{token:`api_request_log`,schema:`ops`,table:`api_request_log`,label:`API request log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app:{token:`app`,schema:`app`,table:`definition`,label:`App`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Apps`,referencePickable:!0,titleColumn:`name`,contentRole:`utility`,referenceCategory:null},app_config:{token:`app_config`,schema:`public`,table:`app_config`,label:`App config`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_config_history:{token:`app_config_history`,schema:`public`,table:`app_config_history`,label:`App Config History`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_definition_version:{token:`app_definition_version`,schema:`app`,table:`definition_version`,label:`App Definition Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Apps`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},app_error:{token:`app_error`,schema:`app`,table:`error`,label:`App Error`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Apps`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_execution:{token:`app_execution`,schema:`app`,table:`execution`,label:`App Execution`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Apps`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_instance:{token:`app_instance`,schema:`public`,table:`app_instances`,label:`App Instance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_log:{token:`app_log`,schema:`ops`,table:`app_log`,label:`App Log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_log_muted_pattern:{token:`app_log_muted_pattern`,schema:`ops`,table:`app_log_muted_pattern`,label:`Muted log pattern`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_log_norm_exception:{token:`app_log_norm_exception`,schema:`ops`,table:`app_log_norm_exception`,label:`Log normalisation exception`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_rate_limit:{token:`app_rate_limit`,schema:`app`,table:`rate_limit`,label:`App Rate Limit`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Apps`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_setting:{token:`app_setting`,schema:`public`,table:`app_settings`,label:`App Setting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_sync_status:{token:`app_sync_status`,schema:`public`,table:`app_sync_status`,label:`App Sync Status`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},approach:{token:`approach`,schema:`platform`,table:`approach`,label:`Approach`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},artifact:{token:`artifact`,schema:`chat`,table:`artifact`,label:`Artifact`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},assessment:{token:`assessment`,schema:`education`,table:`assessment`,label:`Assessment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},assessment_item:{token:`assessment_item`,schema:`education`,table:`assessment_item`,label:`Assessment Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},assessment_result:{token:`assessment_result`,schema:`education`,table:`assessment_result`,label:`Assessment Result`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},assignment_session:{token:`assignment_session`,schema:`assignment`,table:`session`,label:`Assignment session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},assist:{token:`assist`,schema:`platform`,table:`assists`,label:`Assist`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`platform`,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},assist_producer_policy:{token:`assist_producer_policy`,schema:`platform`,table:`assist_producer_policy`,label:`Assist producer policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},assist_producer_policy_history:{token:`assist_producer_policy_history`,schema:`platform`,table:`assist_producer_policy_history`,label:`Assist Producer Policy History`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},association_type:{token:`association_type`,schema:`platform`,table:`association_types`,label:`Association type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},assurance_level:{token:`assurance_level`,schema:`platform`,table:`assurance_level`,label:`Assurance level`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},attempt:{token:`attempt`,schema:`assignment`,table:`attempt`,label:`Attempt`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_broken_functions:{token:`audit_broken_functions`,schema:`audit`,table:`broken_functions`,label:`Broken functions`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_canonical_findings:{token:`audit_canonical_findings`,schema:`audit`,table:`canonical_findings`,label:`Canonical findings`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_exemption:{token:`audit_exemption`,schema:`meta`,table:`audit_exemption`,label:`Audit exemption`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_function_deps:{token:`audit_function_deps`,schema:`audit`,table:`function_deps`,label:`Function dependencies`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_function_runtime_probe:{token:`audit_function_runtime_probe`,schema:`audit`,table:`function_runtime_probe`,label:`Function runtime probe`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_m2m_candidates:{token:`audit_m2m_candidates`,schema:`audit`,table:`m2m_candidates`,label:`M2M candidates`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_refresh_log:{token:`audit_refresh_log`,schema:`audit`,table:`refresh_log`,label:`Audit refresh log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_stale_registry:{token:`audit_stale_registry`,schema:`audit`,table:`stale_registry`,label:`Stale registry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_unregistered_candidates:{token:`audit_unregistered_candidates`,schema:`audit`,table:`unregistered_candidates`,label:`Unregistered candidates`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},base_entity_template:{token:`base_entity_template`,schema:`platform`,table:`_base_entity`,label:`Base entity template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},batch_cost_event:{token:`batch_cost_event`,schema:`batch`,table:`cost_event`,label:`Batch Cost Event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},batch_provider_batch:{token:`batch_provider_batch`,schema:`batch`,table:`provider_batch`,label:`Provider Batch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},batch_work_item:{token:`batch_work_item`,schema:`batch`,table:`work_item`,label:`Batch Work Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_capability:{token:`billing_capability`,schema:`billing`,table:`capability`,label:`Billing capability`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_capability_limit:{token:`billing_capability_limit`,schema:`billing`,table:`capability_limit`,label:`Billing capability limit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_connect_account:{token:`billing_connect_account`,schema:`billing`,table:`connect_account`,label:`Billing connect account`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_customer:{token:`billing_customer`,schema:`billing`,table:`customer`,label:`Billing customer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_plan:{token:`billing_plan`,schema:`billing`,table:`plan`,label:`Billing plan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_plan_limit:{token:`billing_plan_limit`,schema:`billing`,table:`plan_limit`,label:`Billing plan limit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_price:{token:`billing_price`,schema:`billing`,table:`price`,label:`Billing price`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_product:{token:`billing_product`,schema:`billing`,table:`product`,label:`Billing product`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_spend_approval:{token:`billing_spend_approval`,schema:`billing`,table:`spend_approval`,label:`Spend Approval`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_spend_guardrail:{token:`billing_spend_guardrail`,schema:`billing`,table:`spend_guardrail`,label:`Spend Guardrail`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_stripe_event:{token:`billing_stripe_event`,schema:`billing`,table:`stripe_event`,label:`Stripe webhook event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_subscription:{token:`billing_subscription`,schema:`billing`,table:`subscription`,label:`Billing subscription`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_usage_ledger:{token:`billing_usage_ledger`,schema:`billing`,table:`usage_ledger`,label:`Usage ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_user_plan:{token:`billing_user_plan`,schema:`billing`,table:`user_plan`,label:`User plan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_account_binding:{token:`browser_account_binding`,schema:`browser`,table:`account_binding`,label:`Browser Account Binding`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_action_event:{token:`browser_action_event`,schema:`browser`,table:`action_event`,label:`Browser Action Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_authenticator_window:{token:`browser_authenticator_window`,schema:`browser`,table:`authenticator_window`,label:`Browser Authenticator Window`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_capture:{token:`browser_capture`,schema:`browser`,table:`capture`,label:`Browser Capture`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_control_request:{token:`browser_control_request`,schema:`browser`,table:`control_request`,label:`Browser Control Request`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_handoff:{token:`browser_handoff`,schema:`browser`,table:`handoff`,label:`Browser Handoff`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_login_attempt:{token:`browser_login_attempt`,schema:`browser`,table:`login_attempt`,label:`Browser Login Attempt`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_login_recipe:{token:`browser_login_recipe`,schema:`browser`,table:`login_recipe`,label:`Browser Login Recipe`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_profile:{token:`browser_profile`,schema:`browser`,table:`profile`,label:`Cloud Browser Profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_profile_checkpoint:{token:`browser_profile_checkpoint`,schema:`browser`,table:`profile_checkpoint`,label:`Browser Profile Checkpoint`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_run:{token:`browser_run`,schema:`browser`,table:`run`,label:`Cloud Browser Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_site_observation:{token:`browser_site_observation`,schema:`browser`,table:`site_observation`,label:`Browser Site Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_site_policy:{token:`browser_site_policy`,schema:`browser`,table:`site_policy`,label:`Browser Site Policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_stream_ticket:{token:`browser_stream_ticket`,schema:`browser`,table:`stream_ticket`,label:`Browser Stream Ticket`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},build_lock:{token:`build_lock`,schema:`campaign_watch`,table:`build_lock`,label:`Build Lock`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},calendar_event:{token:`calendar_event`,schema:`communication`,table:`calendar_event`,label:`Calendar event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},campaign_watch_ramp_gate_run:{token:`campaign_watch_ramp_gate_run`,schema:`campaign_watch`,table:`ramp_gate_run`,label:`Ramp gate run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},campaign_watch_switch_outbox:{token:`campaign_watch_switch_outbox`,schema:`campaign_watch`,table:`switch_outbox`,label:`Switch outbox`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},campaign_watch_switch_window:{token:`campaign_watch_switch_window`,schema:`campaign_watch`,table:`switch_window`,label:`Switch window`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},canvas_comment:{token:`canvas_comment`,schema:`canvas`,table:`canvas_comments`,label:`Canvas Comment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},canvas_comment_like:{token:`canvas_comment_like`,schema:`canvas`,table:`canvas_comment_likes`,label:`Canvas Comment Like`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},canvas_item:{token:`canvas_item`,schema:`canvas`,table:`canvas_items`,label:`Canvas Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},canvas_item_state:{token:`canvas_item_state`,schema:`canvas`,table:`canvas_item_state`,label:`Canvas Item State`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},canvas_like:{token:`canvas_like`,schema:`canvas`,table:`canvas_likes`,label:`Canvas Like`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},canvas_score:{token:`canvas_score`,schema:`canvas`,table:`canvas_scores`,label:`Canvas Score`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},canvas_view:{token:`canvas_view`,schema:`canvas`,table:`canvas_views`,label:`Canvas View`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},capture_window:{token:`capture_window`,schema:`history`,table:`capture_window`,label:`Capture Window`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},carrying_rule:{token:`carrying_rule`,schema:`custom`,table:`carrying_rule`,label:`Carrying Rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},catalog_entries_history:{token:`catalog_entries_history`,schema:`public`,table:`catalog_entries_history`,label:`Catalog Entries History`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},catalog_entry:{token:`catalog_entry`,schema:`public`,table:`catalog_entries`,label:`Catalog entry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},category:{token:`category`,schema:`platform`,table:`categories`,label:`Category`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},change_type_default:{token:`change_type_default`,schema:`platform`,table:`change_type_default`,label:`Change type default`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},chat_user_usage_summary:{token:`chat_user_usage_summary`,schema:`chat`,table:`user_usage_summary`,label:`Chat usage summary`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},citations:{token:`citations`,schema:`legal`,table:`citations`,label:`Citations`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},class_purchase:{token:`class_purchase`,schema:`billing`,table:`class_purchase`,label:`Class Purchase`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},classifier_revision_ledger:{token:`classifier_revision_ledger`,schema:`seo`,table:`classifier_revision_ledger`,label:`Classifier Revision Ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},client_callable_door:{token:`client_callable_door`,schema:`platform`,table:`client_callable_door`,label:`Client Callable Door`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},client_callable_door_retirement:{token:`client_callable_door_retirement`,schema:`platform`,table:`client_callable_door_retirement`,label:`Client Callable Door Retirement`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},client_excluded_column_unregistered:{token:`client_excluded_column_unregistered`,schema:`platform`,table:`client_excluded_column_unregistered`,label:`Client Excluded Column Unregistered`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cmp_entry:{token:`cmp_entry`,schema:`agent`,table:`cmp_comparison_entries`,label:`Comparison Entry`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cmp_feedback:{token:`cmp_feedback`,schema:`agent`,table:`cmp_response_feedback`,label:`Comparison Response Feedback`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},code_file:{token:`code_file`,schema:`code`,table:`code_files`,label:`Code File`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`source`,referenceCategory:null},code_folder:{token:`code_folder`,schema:`code`,table:`code_file_folders`,label:`Code Folder`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},code_repository:{token:`code_repository`,schema:`code`,table:`code_repositories`,label:`Code Repository`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},coding_session:{token:`coding_session`,schema:`chat`,table:`coding_session`,label:`Coding Session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},coding_session_entry:{token:`coding_session_entry`,schema:`chat`,table:`coding_session_entry`,label:`Coding Session Entry`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},comment:{token:`comment`,schema:`platform`,table:`comments`,label:`Comment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_allocation:{token:`commerce_asset_allocation`,schema:`commerce`,table:`asset_allocation`,label:`Asset Allocation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_grading:{token:`commerce_asset_grading`,schema:`commerce`,table:`asset_grading`,label:`Asset Grading`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_identifier:{token:`commerce_asset_identifier`,schema:`commerce`,table:`asset_identifier`,label:`Asset Identifier`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_lot_event:{token:`commerce_asset_lot_event`,schema:`commerce`,table:`asset_lot_event`,label:`Asset Lot Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_mandate_result:{token:`commerce_asset_mandate_result`,schema:`commerce`,table:`asset_mandate_result`,label:`Asset Mandate Result`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_price_factor:{token:`commerce_asset_price_factor`,schema:`commerce`,table:`asset_price_factor`,label:`Asset Price Factor`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_reshoot_request:{token:`commerce_asset_reshoot_request`,schema:`commerce`,table:`asset_reshoot_request`,label:`Asset Reshoot Request`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_review:{token:`commerce_asset_review`,schema:`commerce`,table:`asset_review`,label:`Asset Review`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_unknown:{token:`commerce_asset_unknown`,schema:`commerce`,table:`asset_unknown`,label:`Asset Unknown`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_certified_printer:{token:`commerce_certified_printer`,schema:`commerce`,table:`certified_printer`,label:`Certified Printer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_cloud_sync_connection:{token:`commerce_cloud_sync_connection`,schema:`commerce`,table:`cloud_sync_connection`,label:`Cloud Sync Connection`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_business_policy:{token:`commerce_ebay_business_policy`,schema:`commerce`,table:`ebay_business_policy`,label:`eBay Business Policy`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_category:{token:`commerce_ebay_category`,schema:`commerce`,table:`ebay_category`,label:`eBay Category`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_category_aspect:{token:`commerce_ebay_category_aspect`,schema:`commerce`,table:`ebay_category_aspect`,label:`eBay Category Aspect`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_category_tree:{token:`commerce_ebay_category_tree`,schema:`commerce`,table:`ebay_category_tree`,label:`eBay Category Tree`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_custom_policy:{token:`commerce_ebay_custom_policy`,schema:`commerce`,table:`ebay_custom_policy`,label:`eBay Custom Policy`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_inventory_item:{token:`commerce_ebay_inventory_item`,schema:`commerce`,table:`ebay_inventory_item`,label:`eBay Inventory Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_inventory_item_group:{token:`commerce_ebay_inventory_item_group`,schema:`commerce`,table:`ebay_inventory_item_group`,label:`eBay Inventory Item Group`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_inventory_item_group_member:{token:`commerce_ebay_inventory_item_group_member`,schema:`commerce`,table:`ebay_inventory_item_group_member`,label:`eBay Inventory Item Group Member`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_inventory_location:{token:`commerce_ebay_inventory_location`,schema:`commerce`,table:`ebay_inventory_location`,label:`eBay Inventory Location`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_listing:{token:`commerce_ebay_listing`,schema:`commerce`,table:`ebay_listing`,label:`eBay Listing`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_marketplace_policy:{token:`commerce_ebay_marketplace_policy`,schema:`commerce`,table:`ebay_marketplace_policy`,label:`eBay Marketplace Policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_media_asset:{token:`commerce_ebay_media_asset`,schema:`commerce`,table:`ebay_media_asset`,label:`eBay Media Asset`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_notification_destination:{token:`commerce_ebay_notification_destination`,schema:`commerce`,table:`ebay_notification_destination`,label:`eBay Notification Destination`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_notification_event:{token:`commerce_ebay_notification_event`,schema:`commerce`,table:`ebay_notification_event`,label:`eBay Notification Event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_notification_subscription:{token:`commerce_ebay_notification_subscription`,schema:`commerce`,table:`ebay_notification_subscription`,label:`eBay Notification Subscription`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_notification_topic:{token:`commerce_ebay_notification_topic`,schema:`commerce`,table:`ebay_notification_topic`,label:`eBay Notification Topic`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_offer:{token:`commerce_ebay_offer`,schema:`commerce`,table:`ebay_offer`,label:`eBay Offer`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_order:{token:`commerce_ebay_order`,schema:`commerce`,table:`ebay_order`,label:`eBay Order`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_order_line_item:{token:`commerce_ebay_order_line_item`,schema:`commerce`,table:`ebay_order_line_item`,label:`eBay Order Line Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_shipping_fulfillment:{token:`commerce_ebay_shipping_fulfillment`,schema:`commerce`,table:`ebay_shipping_fulfillment`,label:`eBay Shipping Fulfillment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_store_category:{token:`commerce_ebay_store_category`,schema:`commerce`,table:`ebay_store_category`,label:`eBay Store Category`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_human_correction:{token:`commerce_human_correction`,schema:`commerce`,table:`human_correction`,label:`Human Correction`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_intake_artifact:{token:`commerce_intake_artifact`,schema:`commerce`,table:`intake_artifact`,label:`Intake Artifact`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_intake_asset:{token:`commerce_intake_asset`,schema:`commerce`,table:`intake_asset`,label:`Intake Asset`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_intake_batch:{token:`commerce_intake_batch`,schema:`commerce`,table:`intake_batch`,label:`Intake Batch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_label_batch:{token:`commerce_label_batch`,schema:`commerce`,table:`label_batch`,label:`Label Batch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_label_code:{token:`commerce_label_code`,schema:`commerce`,table:`label_code`,label:`Label Code`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_account:{token:`commerce_marketplace_account`,schema:`commerce`,table:`marketplace_account`,label:`Marketplace Account`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_account_deletion_audit:{token:`commerce_marketplace_account_deletion_audit`,schema:`commerce`,table:`marketplace_account_deletion_audit`,label:`Marketplace Account Deletion Audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_api_call:{token:`commerce_marketplace_api_call`,schema:`commerce`,table:`marketplace_api_call`,label:`Marketplace API Call`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_rate_budget:{token:`commerce_marketplace_rate_budget`,schema:`commerce`,table:`marketplace_rate_budget`,label:`Marketplace Rate Budget`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_site:{token:`commerce_marketplace_site`,schema:`commerce`,table:`marketplace_site`,label:`Marketplace Site`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_sync_run:{token:`commerce_marketplace_sync_run`,schema:`commerce`,table:`marketplace_sync_run`,label:`Marketplace Sync Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_prediction_outcome:{token:`commerce_prediction_outcome`,schema:`commerce`,table:`prediction_outcome`,label:`Prediction Outcome`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_print_order:{token:`commerce_print_order`,schema:`commerce`,table:`print_order`,label:`Print Order`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_product:{token:`commerce_product`,schema:`commerce`,table:`product`,label:`Product`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_product_channel_ref:{token:`commerce_product_channel_ref`,schema:`commerce`,table:`product_channel_ref`,label:`Product Channel Reference`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_product_media:{token:`commerce_product_media`,schema:`commerce`,table:`product_media`,label:`Product Media`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_product_variant:{token:`commerce_product_variant`,schema:`commerce`,table:`product_variant`,label:`Product Variant`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_recall_audit:{token:`commerce_recall_audit`,schema:`commerce`,table:`recall_audit`,label:`Recall Audit`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},communication_calendar_selected_snapshot_state:{token:`communication_calendar_selected_snapshot_state`,schema:`communication`,table:`calendar_selected_snapshot_state`,label:`Calendar snapshot state`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},communication_channel_readiness:{token:`communication_channel_readiness`,schema:`communication`,table:`channel_readiness`,label:`Channel readiness`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},comparison_set:{token:`comparison_set`,schema:`agent`,table:`cmp_comparison_sets`,label:`Comparison Set`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},contact_medium:{token:`contact_medium`,schema:`crm`,table:`contact_medium`,label:`Contact Medium`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`display_value`,contentRole:`utility`,referenceCategory:null},contact_submission:{token:`contact_submission`,schema:`communication`,table:`contact_submissions`,label:`Contact Submission`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},content_certification:{token:`content_certification`,schema:`education`,table:`content_certification`,label:`Content certification`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_ir_kind:{token:`content_ir_kind`,schema:`content_ir`,table:`kind_definition`,label:`Content-IR Kind`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},content_ir_kind_component:{token:`content_ir_kind_component`,schema:`content_ir`,table:`kind_component`,label:`Kind Component`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_ir_kind_component_incident:{token:`content_ir_kind_component_incident`,schema:`content_ir`,table:`kind_component_incident`,label:`Kind Component Incident`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_ir_kind_conformance:{token:`content_ir_kind_conformance`,schema:`content_ir`,table:`kind_conformance`,label:`Shape Conformance`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_ir_kind_edge:{token:`content_ir_kind_edge`,schema:`content_ir`,table:`kind_edge`,label:`Content-IR Kind Edge`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_ir_kind_example:{token:`content_ir_kind_example`,schema:`content_ir`,table:`kind_example`,label:`Kind Example`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},content_ir_kind_instance:{token:`content_ir_kind_instance`,schema:`content_ir`,table:`kind_instance`,label:`Saved Result`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},content_ir_kind_surface:{token:`content_ir_kind_surface`,schema:`content_ir`,table:`kind_surface`,label:`Kind Surface`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_lane:{token:`content_lane`,schema:`iam`,table:`content_lane`,label:`Content Lane`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},context_access_log:{token:`context_access_log`,schema:`context`,table:`context_access_log`,label:`Context access log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},context_item:{token:`context_item`,schema:`context`,table:`context_items`,label:`Context Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},context_item_suggestion:{token:`context_item_suggestion`,schema:`rag`,table:`context_item_suggestions`,label:`Context Item Suggestion`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},context_item_value:{token:`context_item_value`,schema:`context`,table:`context_item_values`,label:`Record Value`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},context_value_refs:{token:`context_value_refs`,schema:`context`,table:`context_value_refs`,label:`Context Value Refs`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},conversation:{token:`conversation`,schema:`chat`,table:`conversation`,label:`Conversation`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Outputs`,referencePickable:!0,titleColumn:`title`,contentRole:`destination`,referenceCategory:null},conversation_value:{token:`conversation_value`,schema:`chat`,table:`conversation_value`,label:`Conversation Value`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!1,titleColumn:`key`,contentRole:null,referenceCategory:null},courts:{token:`courts`,schema:`legal`,table:`courts`,label:`Courts`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},credential_attachment:{token:`credential_attachment`,schema:`users`,table:`credential_attachments`,label:`Credential attachment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},credential_item:{token:`credential_item`,schema:`users`,table:`credential_items`,label:`Credential item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`display_name`,contentRole:null,referenceCategory:null},credential_mutation_receipt:{token:`credential_mutation_receipt`,schema:`users`,table:`credential_mutation_receipts`,label:`Credential Mutation Receipt`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_address:{token:`crm_address`,schema:`crm`,table:`address`,label:`Address`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},crm_affiliation:{token:`crm_affiliation`,schema:`crm`,table:`affiliation`,label:`Affiliation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},crm_blocklist_entry:{token:`crm_blocklist_entry`,schema:`crm`,table:`blocklist_entry`,label:`Blocklist Entry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_contact_candidate:{token:`crm_contact_candidate`,schema:`crm`,table:`contact_candidate`,label:`Contact Candidate`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_deal:{token:`crm_deal`,schema:`crm`,table:`deal`,label:`Deal`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`source`,referenceCategory:null},crm_deal_stage_event:{token:`crm_deal_stage_event`,schema:`crm`,table:`deal_stage_event`,label:`Deal Stage Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_enrichment_call:{token:`crm_enrichment_call`,schema:`crm`,table:`enrichment_call`,label:`Enrichment Call`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_interaction:{token:`crm_interaction`,schema:`crm`,table:`interaction`,label:`Interaction`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`subject`,contentRole:null,referenceCategory:null},crm_merge_candidate:{token:`crm_merge_candidate`,schema:`crm`,table:`merge_candidate`,label:`Merge Candidate`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_outreach_list:{token:`crm_outreach_list`,schema:`crm`,table:`outreach_list`,label:`Outreach List`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},crm_outreach_list_member:{token:`crm_outreach_list_member`,schema:`crm`,table:`outreach_list_member`,label:`Outreach List Member`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_party_merge:{token:`crm_party_merge`,schema:`crm`,table:`party_merge`,label:`Party Merge`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_party_research:{token:`crm_party_research`,schema:`crm`,table:`party_research`,label:`Private contact research`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`CRM`,referencePickable:!1,titleColumn:`label`,contentRole:`utility`,referenceCategory:null},crm_registry_ingest_run:{token:`crm_registry_ingest_run`,schema:`crm`,table:`registry_ingest_run`,label:`Registry Ingest Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_registry_source:{token:`crm_registry_source`,schema:`crm`,table:`registry_source`,label:`Registry Source`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_sending_event:{token:`crm_sending_event`,schema:`crm`,table:`sending_event`,label:`Sending Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`subject`,contentRole:null,referenceCategory:null},crm_sending_identity:{token:`crm_sending_identity`,schema:`crm`,table:`sending_identity`,label:`Sending Identity`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_sending_identity_check:{token:`crm_sending_identity_check`,schema:`crm`,table:`sending_identity_check`,label:`Sending Check`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`check_kind`,contentRole:null,referenceCategory:null},crm_sending_policy:{token:`crm_sending_policy`,schema:`crm`,table:`sending_policy`,label:`Sending Policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_agg_digest_checked:{token:`custom_agg_digest_checked`,schema:`custom`,table:`agg_digest_checked`,label:`Aggregate digest checked`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_entity_definition:{token:`custom_entity_definition`,schema:`platform`,table:`custom_entity_definition`,label:`Custom Object`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_field_definition:{token:`custom_field_definition`,schema:`platform`,table:`custom_field_definition`,label:`Custom Field`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_field_target:{token:`custom_field_target`,schema:`platform`,table:`custom_field_target`,label:`Custom Field Target`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_record:{token:`custom_record`,schema:`platform`,table:`custom_record`,label:`Custom Record`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_share_tails_mine_repair:{token:`custom_share_tails_mine_repair`,schema:`custom`,table:`_share_tails_mine_repair`,label:`Share tails repair`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_agent_memory:{token:`cx_agent_memory`,schema:`chat`,table:`agent_memory`,label:`Agent Memory`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!0,titleColumn:`key`,contentRole:null,referenceCategory:null},cx_agent_plan:{token:`cx_agent_plan`,schema:`chat`,table:`agent_plan`,label:`Agent Plan`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},cx_agent_task:{token:`cx_agent_task`,schema:`chat`,table:`agent_task`,label:`Agent Task`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},cx_code_edit:{token:`cx_code_edit`,schema:`chat`,table:`code_edit`,label:`Code Edit`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_code_message_file:{token:`cx_code_message_file`,schema:`chat`,table:`code_message_file`,label:`Code Message File`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_media:{token:`cx_media`,schema:`chat`,table:`media`,label:`Media`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_observational_memory:{token:`cx_observational_memory`,schema:`chat`,table:`observational_memory`,label:`Observational Memory`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_observational_memory_event:{token:`cx_observational_memory_event`,schema:`chat`,table:`observational_memory_event`,label:`Observational Memory Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_pending_injection:{token:`cx_pending_injection`,schema:`chat`,table:`pending_injection`,label:`Pending Injection`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_request:{token:`cx_request`,schema:`chat`,table:`request`,label:`Conversation Request`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_request_snapshot:{token:`cx_request_snapshot`,schema:`chat`,table:`request_snapshot`,label:`Request Snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_tool_trace:{token:`cx_tool_trace`,schema:`chat`,table:`tool_trace`,label:`Tool Trace`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_user_request:{token:`cx_user_request`,schema:`chat`,table:`user_request`,label:`User Request`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_user_todo:{token:`cx_user_todo`,schema:`chat`,table:`user_todo`,label:`User Todo`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},data_rights_event:{token:`data_rights_event`,schema:`education`,table:`data_rights_event`,label:`Data rights event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},data_store:{token:`data_store`,schema:`rag`,table:`data_stores`,label:`Data Store`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`source`,referenceCategory:null},data_store_members:{token:`data_store_members`,schema:`rag`,table:`data_store_members`,label:`Data Store Members`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ddl_guard_log:{token:`ddl_guard_log`,schema:`platform`,table:`ddl_guard_log`,label:`DDL guard log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},deck_suggestion:{token:`deck_suggestion`,schema:`education`,table:`deck_suggestion`,label:`Deck Suggestion`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},definer_class_exemption:{token:`definer_class_exemption`,schema:`iam`,table:`definer_class_exemption`,label:`Definer Class Exemption`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},definer_client_grant_grandfather:{token:`definer_client_grant_grandfather`,schema:`platform`,table:`definer_client_grant_grandfather`,label:`Definer Client Grant Grandfather`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},definer_grant_baseline:{token:`definer_grant_baseline`,schema:`hr`,table:`definer_grant_baseline`,label:`Definer Grant Baseline`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},deprecated_relation:{token:`deprecated_relation`,schema:`platform`,table:`deprecated_relations`,label:`Deprecated relation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},derive_run:{token:`derive_run`,schema:`docproc`,table:`derive_runs`,label:`Derive Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dev_login_audit:{token:`dev_login_audit`,schema:`admin`,table:`dev_login_audit`,label:`Dev login audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dict_entry:{token:`dict_entry`,schema:`dictionary`,table:`dict_entries`,label:`Dictionary entry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dict_provider_publication:{token:`dict_provider_publication`,schema:`dictionary`,table:`dict_provider_publication`,label:`Dict Provider Publication`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dict_setting:{token:`dict_setting`,schema:`dictionary`,table:`dict_settings`,label:`Dict Setting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dm_conversation:{token:`dm_conversation`,schema:`communication`,table:`dm_conversations`,label:`Direct Conversation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dm_message:{token:`dm_message`,schema:`communication`,table:`dm_messages`,label:`Direct Message`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dm_participant:{token:`dm_participant`,schema:`communication`,table:`dm_conversation_participants`,label:`DM Conversation Participant`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},doc_render:{token:`doc_render`,schema:`custom`,table:`doc_render`,label:`Rendered Document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},doc_signature:{token:`doc_signature`,schema:`custom`,table:`doc_signature`,label:`Document Signature`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dockets:{token:`dockets`,schema:`legal`,table:`dockets`,label:`Dockets`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},document:{token:`document`,schema:`content`,table:`document`,label:`Markdown document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`Documents`,referencePickable:!1,titleColumn:`title`,contentRole:`hybrid`,referenceCategory:null},document_version:{token:`document_version`,schema:`content`,table:`document_version`,label:`Document Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Documents`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},domain_classification:{token:`domain_classification`,schema:`platform`,table:`domain_classification`,label:`Domain Classification`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},edge_payload_kind:{token:`edge_payload_kind`,schema:`platform`,table:`edge_payload_kind`,label:`Edge payload kind`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},egress_device:{token:`egress_device`,schema:`platform`,table:`egress_device`,label:`Home connection computer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},egress_pairing:{token:`egress_pairing`,schema:`platform`,table:`egress_pairing`,label:`Home connection pairing`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},egress_ticket:{token:`egress_ticket`,schema:`platform`,table:`egress_ticket`,label:`Home connection ticket`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},emails:{token:`emails`,schema:`communication`,table:`emails`,label:`Emails`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},embedding_cache:{token:`embedding_cache`,schema:`rag`,table:`embedding_cache`,label:`Embedding Cache`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},embeddings_google_gemini_2_1536:{token:`embeddings_google_gemini_2_1536`,schema:`rag`,table:`embeddings_google_gemini_2_1536`,label:`Embeddings Google Gemini 2 1536`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},embeddings_oai_3_small_1536:{token:`embeddings_oai_3_small_1536`,schema:`rag`,table:`embeddings_oai_3_small_1536`,label:`Embeddings Oai 3 Small 1536`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},embeddings_voyage_4_large_1024:{token:`embeddings_voyage_4_large_1024`,schema:`rag`,table:`embeddings_voyage_4_large_1024`,label:`Embeddings Voyage 4 Large 1024`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},embeddings_voyage_code_3_1024:{token:`embeddings_voyage_code_3_1024`,schema:`rag`,table:`embeddings_voyage_code_3_1024`,label:`Embeddings Voyage Code 3 1024`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},endpoint_family_sweep_state:{token:`endpoint_family_sweep_state`,schema:`web`,table:`endpoint_family_sweep_state`,label:`Endpoint Family Sweep State`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},engine_owner_task:{token:`engine_owner_task`,schema:`seo`,table:`engine_owner_task`,label:`Engine Owner Task`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},entity_grant:{token:`entity_grant`,schema:`platform`,table:`entity_grants`,label:`Entity grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},entity_relationship:{token:`entity_relationship`,schema:`platform`,table:`entity_relationships`,label:`Entity relationship`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},entity_type:{token:`entity_type`,schema:`platform`,table:`entity_types`,label:`Entity type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_campaign:{token:`esign_campaign`,schema:`esign`,table:`campaign`,label:`Signature campaign`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_campaign_member:{token:`esign_campaign_member`,schema:`esign`,table:`campaign_member`,label:`Campaign member`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_consent_disclosure:{token:`esign_consent_disclosure`,schema:`esign`,table:`consent_disclosure`,label:`E-sign consent disclosure`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope:{token:`esign_envelope`,schema:`esign`,table:`envelope`,label:`Signature envelope`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope_certificate:{token:`esign_envelope_certificate`,schema:`esign`,table:`envelope_certificate`,label:`Completion certificate`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope_document:{token:`esign_envelope_document`,schema:`esign`,table:`envelope_document`,label:`Envelope document`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope_event:{token:`esign_envelope_event`,schema:`esign`,table:`envelope_event`,label:`Envelope event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope_external_ref:{token:`esign_envelope_external_ref`,schema:`esign`,table:`envelope_external_ref`,label:`Envelope external reference`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope_signer:{token:`esign_envelope_signer`,schema:`esign`,table:`envelope_signer`,label:`Envelope signer`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_provider:{token:`esign_provider`,schema:`esign`,table:`provider`,label:`E-sign provider`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_provider_binding:{token:`esign_provider_binding`,schema:`esign`,table:`provider_binding`,label:`E-sign provider binding`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_signing_key:{token:`esign_signing_key`,schema:`esign`,table:`signing_key`,label:`E-sign certificate signing key`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},execution_event_cursor:{token:`execution_event_cursor`,schema:`runtime`,table:`execution_event_cursor`,label:`Execution event cursor`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},extension_auth_code:{token:`extension_auth_code`,schema:`extend`,table:`extension_auth_codes`,label:`Extension auth code`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},external_link:{token:`external_link`,schema:`custom`,table:`external_link`,label:`External Link`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},external_source:{token:`external_source`,schema:`custom`,table:`external_source`,label:`External Source`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},extract_sweep_state:{token:`extract_sweep_state`,schema:`workflow`,table:`extract_sweep_state`,label:`Extract sweep state`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},fc_card:{token:`fc_card`,schema:`education`,table:`fc_card`,label:`Flashcard`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`front`,contentRole:null,referenceCategory:null},fc_detail:{token:`fc_detail`,schema:`education`,table:`fc_detail`,label:`Flashcard Detail`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},fc_set:{token:`fc_set`,schema:`education`,table:`fc_set`,label:`Flashcard Deck`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},feature_doc:{token:`feature_doc`,schema:`admin`,table:`feature_docs`,label:`Feature Doc`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`documentation`,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},feature_knob:{token:`feature_knob`,schema:`platform`,table:`feature_knob`,label:`Feature Knob`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},feedback_comments:{token:`feedback_comments`,schema:`users`,table:`feedback_comments`,label:`Feedback Comments`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},feedback_user_messages:{token:`feedback_user_messages`,schema:`users`,table:`feedback_user_messages`,label:`Feedback User Messages`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},file:{token:`file`,schema:`files`,table:`files`,label:`File`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Sources`,referencePickable:!0,titleColumn:`file_name`,contentRole:`source`,referenceCategory:null},file_analysis:{token:`file_analysis`,schema:`files`,table:`analysis`,label:`File Analysis`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},file_entities:{token:`file_entities`,schema:`files`,table:`entities`,label:`Extracted Term`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},file_overrides:{token:`file_overrides`,schema:`files`,table:`overrides`,label:`File Override`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},file_page_annotations:{token:`file_page_annotations`,schema:`files`,table:`page_annotations`,label:`Page Annotation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},file_pages:{token:`file_pages`,schema:`files`,table:`pages`,label:`File Page`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},file_rag_job:{token:`file_rag_job`,schema:`files`,table:`file_rag_jobs`,label:`File RAG job`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},file_version:{token:`file_version`,schema:`files`,table:`file_versions`,label:`File Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Sources`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},files_account_tier:{token:`files_account_tier`,schema:`files`,table:`account_tiers`,label:`File account tier`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},files_machine_written_prefix:{token:`files_machine_written_prefix`,schema:`files`,table:`machine_written_prefixes`,label:`Machine-Written Prefix`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},files_sync_mapping:{token:`files_sync_mapping`,schema:`files`,table:`sync_mappings`,label:`Sync Mapping`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},files_user_account:{token:`files_user_account`,schema:`files`,table:`user_account`,label:`File account`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},flexible_data:{token:`flexible_data`,schema:`platform`,table:`flexible_data`,label:`Flexible Data`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},folder:{token:`folder`,schema:`files`,table:`folders`,label:`Folder`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Sources`,referencePickable:!0,titleColumn:`folder_name`,contentRole:`source`,referenceCategory:null},function_contract:{token:`function_contract`,schema:`hr`,table:`function_contract`,label:`Function Contract`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},game_badge:{token:`game_badge`,schema:`education`,table:`game_badge`,label:`Game Badge`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},game_result:{token:`game_result`,schema:`education`,table:`game_result`,label:`Game Result`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},game_room:{token:`game_room`,schema:`education`,table:`game_room`,label:`Game Room`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_execution:{token:`global_execution`,schema:`runtime`,table:`global_execution`,label:`Runtime Execution`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_execution_checkpoint:{token:`global_execution_checkpoint`,schema:`runtime`,table:`global_execution_checkpoint`,label:`Runtime Checkpoint`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_execution_control:{token:`global_execution_control`,schema:`runtime`,table:`global_execution_control`,label:`Global execution control`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_execution_event:{token:`global_execution_event`,schema:`runtime`,table:`global_execution_event`,label:`Runtime Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_meter_entry:{token:`global_meter_entry`,schema:`runtime`,table:`global_meter_entry`,label:`Runtime Meter Entry`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},global_origin:{token:`global_origin`,schema:`runtime`,table:`global_origin`,label:`Runtime Origin`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_request:{token:`global_request`,schema:`runtime`,table:`global_request`,label:`Runtime Request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},google_document:{token:`google_document`,schema:`workbench`,table:`google_document`,label:`Google document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},growth_loop_event:{token:`growth_loop_event`,schema:`growth`,table:`loop_event`,label:`Growth Loop Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},growth_loop_run:{token:`growth_loop_run`,schema:`growth`,table:`loop_run`,label:`Growth Loop Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},growth_loop_stage_run:{token:`growth_loop_stage_run`,schema:`growth`,table:`loop_stage_run`,label:`Growth Loop Stage Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},guardian_link:{token:`guardian_link`,schema:`education`,table:`guardian_link`,label:`Guardian link`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},guest_conversion_audit:{token:`guest_conversion_audit`,schema:`users`,table:`guest_conversion_audit`,label:`Guest conversion audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},guest_execution_log:{token:`guest_execution_log`,schema:`users`,table:`guest_execution_log`,label:`Guest Execution Log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},guest_executions:{token:`guest_executions`,schema:`users`,table:`guest_executions`,label:`Guest Executions`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},guided_checklist_run:{token:`guided_checklist_run`,schema:`platform`,table:`guided_checklist_run`,label:`Guided Checklist Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},heatmap_save:{token:`heatmap_save`,schema:`workbench`,table:`heatmap_saves`,label:`Heatmap Save`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},hindsight_enrollment:{token:`hindsight_enrollment`,schema:`hindsight`,table:`enrollment`,label:`Hindsight Enrollment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`display_name`,contentRole:null,referenceCategory:null},hindsight_finding:{token:`hindsight_finding`,schema:`hindsight`,table:`finding`,label:`Hindsight Finding`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hindsight_regression_case:{token:`hindsight_regression_case`,schema:`hindsight`,table:`regression_case`,label:`Regression Case`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hindsight_replay:{token:`hindsight_replay`,schema:`hindsight`,table:`replay`,label:`Hindsight Replay`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hindsight_replay_step:{token:`hindsight_replay_step`,schema:`hindsight`,table:`replay_step`,label:`Wire Replay Step`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hindsight_review:{token:`hindsight_review`,schema:`hindsight`,table:`review`,label:`Hindsight Review`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_access_audit:{token:`hr_access_audit`,schema:`hr`,table:`access_audit`,label:`Access audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_access_role:{token:`hr_access_role`,schema:`hr`,table:`access_role`,label:`HR access role`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},hr_accommodation_request:{token:`hr_accommodation_request`,schema:`hr`,table:`accommodation_request`,label:`Accommodation request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_ai_evidence:{token:`hr_ai_evidence`,schema:`hr`,table:`ai_evidence`,label:`AI evidence`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_alert_routing_rule:{token:`hr_alert_routing_rule`,schema:`hr`,table:`alert_routing_rule`,label:`Alert routing rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_application:{token:`hr_application`,schema:`hr`,table:`application`,label:`Application`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_approval_authority:{token:`hr_approval_authority`,schema:`hr`,table:`approval_authority`,label:`Approval authority`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_approval_delegation:{token:`hr_approval_delegation`,schema:`hr`,table:`approval_delegation`,label:`Approval delegation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_asset:{token:`hr_asset`,schema:`hr`,table:`asset`,label:`Asset`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_asset_assignment:{token:`hr_asset_assignment`,schema:`hr`,table:`asset_assignment`,label:`Asset assignment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_attendance_exception:{token:`hr_attendance_exception`,schema:`hr`,table:`attendance_exception`,label:`Attendance exception`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_auto_close_rule:{token:`hr_auto_close_rule`,schema:`hr`,table:`auto_close_rule`,label:`Auto-close rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_availability:{token:`hr_availability`,schema:`hr`,table:`availability`,label:`Availability`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_background_check:{token:`hr_background_check`,schema:`hr`,table:`background_check`,label:`Background check`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_benefits_event:{token:`hr_benefits_event`,schema:`hr`,table:`benefits_event`,label:`Benefits event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_calculation_snapshot:{token:`hr_calculation_snapshot`,schema:`hr`,table:`calculation_snapshot`,label:`Calculation snapshot`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_candidate:{token:`hr_candidate`,schema:`hr`,table:`candidate`,label:`Candidate`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`preferred_name`,contentRole:null,referenceCategory:null},hr_candidate_conversion:{token:`hr_candidate_conversion`,schema:`hr`,table:`candidate_conversion`,label:`Candidate conversion`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_candidate_message:{token:`hr_candidate_message`,schema:`hr`,table:`candidate_message`,label:`Candidate message`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_careers_portal:{token:`hr_careers_portal`,schema:`hr`,table:`careers_portal`,label:`Careers portal`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},hr_checklist_item:{token:`hr_checklist_item`,schema:`hr`,table:`checklist_item`,label:`Checklist item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_checklist_run:{token:`hr_checklist_run`,schema:`hr`,table:`checklist_run`,label:`Checklist run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_checklist_template:{token:`hr_checklist_template`,schema:`hr`,table:`checklist_template`,label:`Checklist template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_checklist_template_item:{token:`hr_checklist_template_item`,schema:`hr`,table:`checklist_template_item`,label:`Checklist template item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_compensation:{token:`hr_compensation`,schema:`hr`,table:`compensation`,label:`Compensation record`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_corrective_action:{token:`hr_corrective_action`,schema:`hr`,table:`corrective_action`,label:`Corrective action`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_course:{token:`hr_course`,schema:`hr`,table:`course`,label:`Course`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},hr_course_version:{token:`hr_course_version`,schema:`hr`,table:`course_version`,label:`Course version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_credential:{token:`hr_credential`,schema:`hr`,table:`credential`,label:`Credential`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_crew:{token:`hr_crew`,schema:`hr`,table:`crew`,label:`Crew`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_deduction_code:{token:`hr_deduction_code`,schema:`hr`,table:`deduction_code`,label:`Deduction code`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_department:{token:`hr_department`,schema:`hr`,table:`department`,label:`Department`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_derived_grant:{token:`hr_derived_grant`,schema:`hr`,table:`derived_grant`,label:`Derived grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_disposition_event:{token:`hr_disposition_event`,schema:`hr`,table:`disposition_event`,label:`Disposition event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_earning_code:{token:`hr_earning_code`,schema:`hr`,table:`earning_code`,label:`Earning code`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_eeo_response:{token:`hr_eeo_response`,schema:`hr`,table:`eeo_response`,label:`EEO self-identification response`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_emergency_contact:{token:`hr_emergency_contact`,schema:`hr`,table:`emergency_contact`,label:`Emergency contact`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_employee:{token:`hr_employee`,schema:`hr`,table:`employee`,label:`Employee`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:`container`,referenceCategory:null},hr_employee_private:{token:`hr_employee_private`,schema:`hr`,table:`employee_private`,label:`Employee private record`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_employer_profile:{token:`hr_employer_profile`,schema:`hr`,table:`employer_profile`,label:`Employer profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`legal_name`,contentRole:null,referenceCategory:null},hr_employment:{token:`hr_employment`,schema:`hr`,table:`employment`,label:`Employment spell`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_employment_pin:{token:`hr_employment_pin`,schema:`hr`,table:`employment_pin`,label:`Employment PIN`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_engagement:{token:`hr_engagement`,schema:`hr`,table:`engagement`,label:`Engagement`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_establishment:{token:`hr_establishment`,schema:`hr`,table:`establishment`,label:`Establishment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_external_identity:{token:`hr_external_identity`,schema:`hr`,table:`external_identity`,label:`External identity`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_field_policy:{token:`hr_field_policy`,schema:`hr`,table:`field_policy`,label:`Self-service field policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_holiday:{token:`hr_holiday`,schema:`hr`,table:`holiday`,label:`Holiday`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_holiday_calendar:{token:`hr_holiday_calendar`,schema:`hr`,table:`holiday_calendar`,label:`Holiday calendar`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_i9:{token:`hr_i9`,schema:`hr`,table:`i9`,label:`Form I-9`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_i9_document:{token:`hr_i9_document`,schema:`hr`,table:`i9_document`,label:`I-9 document`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_incident:{token:`hr_incident`,schema:`hr`,table:`incident`,label:`Incident`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_incident_party:{token:`hr_incident_party`,schema:`hr`,table:`incident_party`,label:`Incident party`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_interview:{token:`hr_interview`,schema:`hr`,table:`interview`,label:`Interview`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_interview_kit:{token:`hr_interview_kit`,schema:`hr`,table:`interview_kit`,label:`Interview kit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_job_title:{token:`hr_job_title`,schema:`hr`,table:`job_title`,label:`Job title`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},hr_jurisdiction:{token:`hr_jurisdiction`,schema:`hr`,table:`jurisdiction`,label:`Jurisdiction`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_jurisdiction_rule:{token:`hr_jurisdiction_rule`,schema:`hr`,table:`jurisdiction_rule`,label:`Jurisdiction rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_jurisdiction_rule_class:{token:`hr_jurisdiction_rule_class`,schema:`hr`,table:`jurisdiction_rule_class`,label:`Jurisdiction rule class`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},hr_jurisdiction_rule_org_decision:{token:`hr_jurisdiction_rule_org_decision`,schema:`hr`,table:`jurisdiction_rule_org_decision`,label:`Jurisdiction rule org decision`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_jurisdiction_rule_test:{token:`hr_jurisdiction_rule_test`,schema:`hr`,table:`jurisdiction_rule_test`,label:`Jurisdiction rule fixture`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},hr_kiosk_device:{token:`hr_kiosk_device`,schema:`hr`,table:`kiosk_device`,label:`Kiosk device`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_kiosk_session:{token:`hr_kiosk_session`,schema:`hr`,table:`kiosk_session`,label:`Kiosk session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_labor_target:{token:`hr_labor_target`,schema:`hr`,table:`labor_target`,label:`Labor target`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_leave_case:{token:`hr_leave_case`,schema:`hr`,table:`leave_case`,label:`Leave case`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_leave_enrollment:{token:`hr_leave_enrollment`,schema:`hr`,table:`leave_enrollment`,label:`Leave enrollment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_leave_ledger:{token:`hr_leave_ledger`,schema:`hr`,table:`leave_ledger`,label:`Leave ledger entry`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_leave_policy:{token:`hr_leave_policy`,schema:`hr`,table:`leave_policy`,label:`Leave policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_leave_request:{token:`hr_leave_request`,schema:`hr`,table:`leave_request`,label:`Leave request`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_legal_hold:{token:`hr_legal_hold`,schema:`hr`,table:`legal_hold`,label:`Legal hold`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`matter_name`,contentRole:null,referenceCategory:null},hr_legal_hold_item:{token:`hr_legal_hold_item`,schema:`hr`,table:`legal_hold_item`,label:`Legal hold item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_location:{token:`hr_location`,schema:`hr`,table:`location`,label:`Location`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_new_hire_report:{token:`hr_new_hire_report`,schema:`hr`,table:`new_hire_report`,label:`New hire report`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_offer:{token:`hr_offer`,schema:`hr`,table:`offer`,label:`Offer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_opening:{token:`hr_opening`,schema:`hr`,table:`opening`,label:`Opening`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_overtime_alert:{token:`hr_overtime_alert`,schema:`hr`,table:`overtime_alert`,label:`Overtime alert`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_overtime_alert_rule:{token:`hr_overtime_alert_rule`,schema:`hr`,table:`overtime_alert_rule`,label:`Overtime alert rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_overtime_preapproval:{token:`hr_overtime_preapproval`,schema:`hr`,table:`overtime_preapproval`,label:`Overtime pre-approval`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_pay_group:{token:`hr_pay_group`,schema:`hr`,table:`pay_group`,label:`Pay group`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_pay_period:{token:`hr_pay_period`,schema:`hr`,table:`pay_period`,label:`Pay period`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_pay_period_employment:{token:`hr_pay_period_employment`,schema:`hr`,table:`pay_period_employment`,label:`Pay period timesheet`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_payroll_export:{token:`hr_payroll_export`,schema:`hr`,table:`payroll_export`,label:`Payroll export`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_payroll_export_line:{token:`hr_payroll_export_line`,schema:`hr`,table:`payroll_export_line`,label:`Payroll export line`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_position_assignment:{token:`hr_position_assignment`,schema:`hr`,table:`position_assignment`,label:`Position assignment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_posting:{token:`hr_posting`,schema:`hr`,table:`posting`,label:`Job posting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},hr_posting_publication:{token:`hr_posting_publication`,schema:`hr`,table:`posting_publication`,label:`Posting publication`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_provider_binding:{token:`hr_provider_binding`,schema:`hr`,table:`provider_binding`,label:`Provider binding`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_provider_event:{token:`hr_provider_event`,schema:`hr`,table:`provider_event`,label:`Provider seam event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_provisioning_result:{token:`hr_provisioning_result`,schema:`hr`,table:`provisioning_result`,label:`Provisioning result`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_punch:{token:`hr_punch`,schema:`hr`,table:`punch`,label:`Punch`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_recalculation_batch:{token:`hr_recalculation_batch`,schema:`hr`,table:`recalculation_batch`,label:`Recalculation batch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_record_class:{token:`hr_record_class`,schema:`hr`,table:`record_class`,label:`Record class`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},hr_records_request:{token:`hr_records_request`,schema:`hr`,table:`records_request`,label:`Records request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_reference_check:{token:`hr_reference_check`,schema:`hr`,table:`reference_check`,label:`Reference check`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_reporting_line:{token:`hr_reporting_line`,schema:`hr`,table:`reporting_line`,label:`Reporting line`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_requisition:{token:`hr_requisition`,schema:`hr`,table:`requisition`,label:`Requisition`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`requisition_number`,contentRole:null,referenceCategory:null},hr_restricted_note:{token:`hr_restricted_note`,schema:`hr`,table:`restricted_note`,label:`Restricted note`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_retention_rule:{token:`hr_retention_rule`,schema:`hr`,table:`retention_rule`,label:`Retention rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_role_assignment:{token:`hr_role_assignment`,schema:`hr`,table:`role_assignment`,label:`HR role assignment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_schedule:{token:`hr_schedule`,schema:`hr`,table:`schedule`,label:`Schedule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_schedule_change:{token:`hr_schedule_change`,schema:`hr`,table:`schedule_change`,label:`Schedule change`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_schedule_guidance:{token:`hr_schedule_guidance`,schema:`hr`,table:`schedule_guidance`,label:`Schedule guidance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},hr_schedule_template:{token:`hr_schedule_template`,schema:`hr`,table:`schedule_template`,label:`Schedule template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_schedule_template_shift:{token:`hr_schedule_template_shift`,schema:`hr`,table:`schedule_template_shift`,label:`Schedule template shift`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_scorecard:{token:`hr_scorecard`,schema:`hr`,table:`scorecard`,label:`Scorecard`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_separation:{token:`hr_separation`,schema:`hr`,table:`separation`,label:`Separation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_shift:{token:`hr_shift`,schema:`hr`,table:`shift`,label:`Shift`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_shift_claim:{token:`hr_shift_claim`,schema:`hr`,table:`shift_claim`,label:`Shift claim`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_staffing_requirement:{token:`hr_staffing_requirement`,schema:`hr`,table:`staffing_requirement`,label:`Staffing requirement`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_survey:{token:`hr_survey`,schema:`hr`,table:`survey`,label:`Survey`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_survey_invitation:{token:`hr_survey_invitation`,schema:`hr`,table:`survey_invitation`,label:`Survey invitation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_survey_question:{token:`hr_survey_question`,schema:`hr`,table:`survey_question`,label:`Survey question`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_survey_response:{token:`hr_survey_response`,schema:`hr`,table:`survey_response`,label:`Survey response`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_tax_registration:{token:`hr_tax_registration`,schema:`hr`,table:`tax_registration`,label:`Tax registration`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_tax_withholding:{token:`hr_tax_withholding`,schema:`hr`,table:`tax_withholding`,label:`Tax withholding certificate`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_time_adjustment:{token:`hr_time_adjustment`,schema:`hr`,table:`time_adjustment`,label:`Time adjustment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_training_assignment:{token:`hr_training_assignment`,schema:`hr`,table:`training_assignment`,label:`Training assignment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_training_attempt:{token:`hr_training_attempt`,schema:`hr`,table:`training_attempt`,label:`Training attempt`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_transcript_entry:{token:`hr_transcript_entry`,schema:`hr`,table:`transcript_entry`,label:`Transcript entry`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_verification_letter_request:{token:`hr_verification_letter_request`,schema:`hr`,table:`verification_letter_request`,label:`Verification letter request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_work_interval:{token:`hr_work_interval`,schema:`hr`,table:`work_interval`,label:`Work interval`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_binding:{token:`hr_workflow_binding`,schema:`hr`,table:`workflow_binding`,label:`HR Workflow Binding`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_decision:{token:`hr_workflow_decision`,schema:`hr`,table:`workflow_decision`,label:`HR Workflow Decision`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_definition:{token:`hr_workflow_definition`,schema:`hr`,table:`workflow_definition`,label:`HR Workflow Definition`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_event:{token:`hr_workflow_event`,schema:`hr`,table:`workflow_event`,label:`HR Workflow Event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_failure:{token:`hr_workflow_failure`,schema:`hr`,table:`workflow_failure`,label:`HR Workflow Failure`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_flow_type:{token:`hr_workflow_flow_type`,schema:`hr`,table:`workflow_flow_type`,label:`HR Workflow Flow Type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_instance:{token:`hr_workflow_instance`,schema:`hr`,table:`workflow_instance`,label:`HR Workflow Instance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_step:{token:`hr_workflow_step`,schema:`hr`,table:`workflow_step`,label:`HR Workflow Step`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_step_definition:{token:`hr_workflow_step_definition`,schema:`hr`,table:`workflow_step_definition`,label:`HR Workflow Step Definition`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workweek:{token:`hr_workweek`,schema:`hr`,table:`workweek`,label:`Workweek`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},html_extraction:{token:`html_extraction`,schema:`api`,table:`html_extractions`,label:`HTML extraction`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},iam_access_audit:{token:`iam_access_audit`,schema:`iam`,table:`access_audit`,label:`Access audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},iam_api_key:{token:`iam_api_key`,schema:`iam`,table:`api_keys`,label:`API Key`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},iam_emergency_door_request:{token:`iam_emergency_door_request`,schema:`iam`,table:`emergency_door_request`,label:`Emergency access request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},iam_org_availability_key:{token:`iam_org_availability_key`,schema:`iam`,table:`_org_availability_key`,label:`Organization availability key`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},iam_read_lane_v2_rollout:{token:`iam_read_lane_v2_rollout`,schema:`iam`,table:`read_lane_v2_rollout`,label:`Read lane v2 rollout`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},idempotency:{token:`idempotency`,schema:`files`,table:`idempotency`,label:`Idempotency`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},industry:{token:`industry`,schema:`iam`,table:`industries`,label:`Industry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},industry_curator:{token:`industry_curator`,schema:`iam`,table:`industry_curators`,label:`Industry Curator`,baseTier:2,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},infra_status:{token:`infra_status`,schema:`public`,table:`infra_status`,label:`Infra status`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ingest_runs:{token:`ingest_runs`,schema:`legal`,table:`ingest_runs`,label:`Ingest Runs`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},integration_connection:{token:`integration_connection`,schema:`users`,table:`integration_connections`,label:`Integration connection`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},integration_connection_resource:{token:`integration_connection_resource`,schema:`users`,table:`integration_connection_resources`,label:`Integration connection resource`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_decision_interview:{token:`interview_decision_interview`,schema:`interview`,table:`decision_interview`,label:`Decision Interview`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_decision_question:{token:`interview_decision_question`,schema:`interview`,table:`decision_question`,label:`Decision Question`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_document_revision:{token:`interview_document_revision`,schema:`interview`,table:`document_revision`,label:`Interview Document Revision`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_hole:{token:`interview_hole`,schema:`interview`,table:`hole`,label:`Interview Adversary Hole`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_question:{token:`interview_question`,schema:`interview`,table:`question`,label:`Interview Open Question`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_session:{token:`interview_session`,schema:`interview`,table:`session`,label:`Vision Interview Session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_turn:{token:`interview_turn`,schema:`interview`,table:`turn`,label:`Interview Turn`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},invitation:{token:`invitation`,schema:`iam`,table:`invitations`,label:`Invitation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},invitation_code:{token:`invitation_code`,schema:`users`,table:`invitation_codes`,label:`Invitation Code`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},invitation_request:{token:`invitation_request`,schema:`users`,table:`invitation_requests`,label:`Invitation Request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},io_comment:{token:`io_comment`,schema:`custom`,table:`io_comment`,label:`Record comment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},io_contract:{token:`io_contract`,schema:`content_ir`,table:`io_contract`,label:`Io Contract`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},io_import:{token:`io_import`,schema:`custom`,table:`io_import`,label:`Import run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},io_outbox:{token:`io_outbox`,schema:`custom`,table:`io_outbox`,label:`Record change outbox`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},item:{token:`item`,schema:`assignment`,table:`item`,label:`Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},item_mastery:{token:`item_mastery`,schema:`education`,table:`item_mastery`,label:`Item Mastery`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},judge_verdict:{token:`judge_verdict`,schema:`platform`,table:`judge_verdict`,label:`Judge Verdict`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},jurisdiction_policy:{token:`jurisdiction_policy`,schema:`crm`,table:`jurisdiction_policy`,label:`Jurisdiction policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},keyword_classification_queue:{token:`keyword_classification_queue`,schema:`seo`,table:`keyword_classification_queue`,label:`Keyword Classification Queue`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_alert:{token:`kg_alert`,schema:`rag`,table:`kg_alerts`,label:`KG Alert`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_chunk_entities:{token:`kg_chunk_entities`,schema:`rag`,table:`kg_chunk_entities`,label:`Kg Chunk Entities`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_chunks:{token:`kg_chunks`,schema:`rag`,table:`kg_chunks`,label:`Kg Chunks`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_clusters:{token:`kg_clusters`,schema:`rag`,table:`kg_clusters`,label:`Kg Clusters`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_edges:{token:`kg_edges`,schema:`rag`,table:`kg_edges`,label:`Kg Edges`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_entities:{token:`kg_entities`,schema:`rag`,table:`kg_entities`,label:`Kg Entities`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_entity_aliases:{token:`kg_entity_aliases`,schema:`rag`,table:`kg_entity_aliases`,label:`Kg Entity Aliases`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_suggestion_ack:{token:`kg_suggestion_ack`,schema:`rag`,table:`kg_suggestion_ack`,label:`KG Suggestion Ack`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_sweep_queue:{token:`kg_sweep_queue`,schema:`rag`,table:`kg_sweep_queue`,label:`KG Sweep Queue`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_sweep_run:{token:`kg_sweep_run`,schema:`rag`,table:`kg_sweep_run`,label:`KG Sweep Run`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_sweep_state:{token:`kg_sweep_state`,schema:`rag`,table:`kg_sweep_state`,label:`KG Sweep State`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_value_match:{token:`kg_value_match`,schema:`rag`,table:`kg_value_matches`,label:`KG Value Match`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},knob_override:{token:`knob_override`,schema:`platform`,table:`knob_override`,label:`Knob Override`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},knob_override_audit:{token:`knob_override_audit`,schema:`platform`,table:`knob_override_audit`,label:`Knob override audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},knob_rung_lock:{token:`knob_rung_lock`,schema:`platform`,table:`knob_rung_lock`,label:`Knob Rung Lock`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},knob_scope_kind:{token:`knob_scope_kind`,schema:`platform`,table:`knob_scope_kind`,label:`Knob scope kind`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},knob_write_door:{token:`knob_write_door`,schema:`platform`,table:`knob_write_door`,label:`Knob write door`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},league_membership:{token:`league_membership`,schema:`education`,table:`league_membership`,label:`League Membership`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},learn_doc:{token:`learn_doc`,schema:`education`,table:`learn_doc`,label:`Study Guide`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},library_doc:{token:`library_doc`,schema:`rag`,table:`library_docs`,label:`Library Document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},lifecycle_archive:{token:`lifecycle_archive`,schema:`platform`,table:`lifecycle_archive`,label:`Lifecycle archive`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_archive_row:{token:`lifecycle_archive_row`,schema:`platform`,table:`lifecycle_archive_row`,label:`Lifecycle archive row`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_audit:{token:`lifecycle_audit`,schema:`platform`,table:`lifecycle_audit`,label:`Lifecycle audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_entity_plan:{token:`lifecycle_entity_plan`,schema:`platform`,table:`lifecycle_entity_plan`,label:`Lifecycle entity plan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_map_build:{token:`lifecycle_map_build`,schema:`platform`,table:`lifecycle_map_build`,label:`Lifecycle map build`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_reference_map:{token:`lifecycle_reference_map`,schema:`platform`,table:`lifecycle_reference_map`,label:`Lifecycle reference map`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_run:{token:`lifecycle_run`,schema:`platform`,table:`lifecycle_run`,label:`Lifecycle run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_tier_ledger:{token:`lifecycle_tier_ledger`,schema:`platform`,table:`lifecycle_tier_ledger`,label:`Lifecycle tier ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},location:{token:`location`,schema:`seo`,table:`location`,label:`Location`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate:{token:`mandate`,schema:`mandate`,table:`definition`,label:`Mandate`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},mandate_advance_batch_row:{token:`mandate_advance_batch_row`,schema:`mandate`,table:`advance_batch_row`,label:`Pin advance batch row`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_binding:{token:`mandate_binding`,schema:`mandate`,table:`binding`,label:`Mandate Binding (new)`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_candidate:{token:`mandate_candidate`,schema:`mandate`,table:`candidate`,label:`Mandate Candidate`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_candidate_run:{token:`mandate_candidate_run`,schema:`mandate`,table:`candidate_run`,label:`Mandate Candidate Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_candidate_run_payload:{token:`mandate_candidate_run_payload`,schema:`mandate`,table:`candidate_run_payload`,label:`Mandate Candidate Run Payload`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_goal_clauses:{token:`mandate_goal_clauses`,schema:`mandate`,table:`goal_clauses`,label:`Mandate Goal Clauses`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_observation:{token:`mandate_observation`,schema:`mandate`,table:`observation`,label:`Mandate Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_reference:{token:`mandate_reference`,schema:`mandate`,table:`reference`,label:`Mandate Reference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_scan:{token:`mandate_scan`,schema:`mandate`,table:`scan`,label:`Mandate Scan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_treatment:{token:`mandate_treatment`,schema:`mandate`,table:`treatment`,label:`Mandate Treatment (new)`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},marketing_initiative:{token:`marketing_initiative`,schema:`marketing`,table:`initiative`,label:`Initiative`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},masterwork_corpus_item:{token:`masterwork_corpus_item`,schema:`platform`,table:`masterwork_corpus_item`,label:`Masterwork Corpus Piece`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},masterwork_run:{token:`masterwork_run`,schema:`platform`,table:`masterwork_run`,label:`Masterwork Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Masterwork`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},masterwork_run_kind:{token:`masterwork_run_kind`,schema:`platform`,table:`masterwork_run_kind`,label:`Masterwork Run Kind`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},masterwork_source:{token:`masterwork_source`,schema:`platform`,table:`masterwork_source`,label:`Masterwork Source`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},math_course_structure:{token:`math_course_structure`,schema:`education`,table:`math_course_structure`,label:`Math Course Structure`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},math_problem:{token:`math_problem`,schema:`education`,table:`math_problems`,label:`Math problem`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},matrx_action_ledger:{token:`matrx_action_ledger`,schema:`platform`,table:`matrx_action_ledger`,label:`Action ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mcp_config:{token:`mcp_config`,schema:`tool`,table:`mcp_config`,label:`MCP config`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mcp_server:{token:`mcp_server`,schema:`tool`,table:`mcp_server`,label:`MCP server`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mcp_user_conn:{token:`mcp_user_conn`,schema:`tool`,table:`mcp_user_conn`,label:`MCP user connection`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_capture_handoff:{token:`media_capture_handoff`,schema:`media`,table:`capture_handoff`,label:`Capture Handoff`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_catalog_setting:{token:`media_catalog_setting`,schema:`media`,table:`catalog_setting`,label:`Media Catalog Setting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_library_item:{token:`media_library_item`,schema:`media`,table:`library_item`,label:`Library Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_selection_item:{token:`media_selection_item`,schema:`media`,table:`selection_item`,label:`Selection Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_selection_job:{token:`media_selection_job`,schema:`media`,table:`selection_job`,label:`Selection Job`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_source_library:{token:`media_source_library`,schema:`media`,table:`source_library`,label:`Source Library`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_call_invite:{token:`meet_call_invite`,schema:`communication`,table:`meet_call_invites`,label:`Call Invite`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_chat_message:{token:`meet_chat_message`,schema:`communication`,table:`meet_chat_messages`,label:`Meeting Chat Message`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_invitee:{token:`meet_invitee`,schema:`communication`,table:`meet_invitees`,label:`Meeting Invitee`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_meeting:{token:`meet_meeting`,schema:`communication`,table:`meet_meetings`,label:`Meeting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},meet_note:{token:`meet_note`,schema:`communication`,table:`meet_notes`,label:`Meeting Note`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_occurrence_override:{token:`meet_occurrence_override`,schema:`communication`,table:`meet_occurrence_overrides`,label:`Meeting Occurrence Override`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_participant:{token:`meet_participant`,schema:`communication`,table:`meet_participants`,label:`Meeting Participant`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_recording:{token:`meet_recording`,schema:`communication`,table:`meet_recordings`,label:`Meeting Recording`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_transcript_segment:{token:`meet_transcript_segment`,schema:`communication`,table:`meet_transcript_segments`,label:`Meeting Transcript Segment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},membership:{token:`membership`,schema:`iam`,table:`memberships`,label:`Membership`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},membership_grant:{token:`membership_grant`,schema:`iam`,table:`membership_grant`,label:`Membership Grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},merge_field_provenance:{token:`merge_field_provenance`,schema:`custom`,table:`merge_field_provenance`,label:`Merge Field Provenance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},message:{token:`message`,schema:`chat`,table:`message`,label:`Message`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},message_template:{token:`message_template`,schema:`agent`,table:`message_template`,label:`Message Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:`utility`,referenceCategory:null},message_template_detail:{token:`message_template_detail`,schema:`agent`,table:`message_template_detail`,label:`Message Template Detail`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Documents`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meta_excluded_schema:{token:`meta_excluded_schema`,schema:`meta`,table:`excluded_schema`,label:`Excluded schema`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meta_table_stats_history:{token:`meta_table_stats_history`,schema:`meta`,table:`table_stats_history`,label:`Table stats history`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},metadata_reserved_keys:{token:`metadata_reserved_keys`,schema:`platform`,table:`metadata_reserved_keys`,label:`Metadata Reserved Keys`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},migration_log:{token:`migration_log`,schema:`history`,table:`migration_log`,label:`Migration Log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mtx_media_heal_queue:{token:`mtx_media_heal_queue`,schema:`platform`,table:`mtx_media_heal_queue`,label:`Mtx Media Heal Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mtx_public_url_guard:{token:`mtx_public_url_guard`,schema:`platform`,table:`mtx_public_url_guard`,label:`Public URL guard`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ner_shadow:{token:`ner_shadow`,schema:`rag`,table:`ner_canonicalizer_shadow`,label:`NER Shadow`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},note:{token:`note`,schema:`workbench`,table:`notes`,label:`Note`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Sources & Outputs`,referencePickable:!0,titleColumn:`label`,contentRole:`hybrid`,referenceCategory:null},note_folder:{token:`note_folder`,schema:`workbench`,table:`note_folders`,label:`Note Folder`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},notification:{token:`notification`,schema:`communication`,table:`notification`,label:`Notification`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notification_channel_preference:{token:`notification_channel_preference`,schema:`communication`,table:`notification_channel_preference`,label:`Notification Channel Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notification_event_override:{token:`notification_event_override`,schema:`communication`,table:`notification_event_override`,label:`Notification Event Override`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notification_event_type:{token:`notification_event_type`,schema:`communication`,table:`notification_event_type`,label:`Notification Event Type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notification_preference:{token:`notification_preference`,schema:`communication`,table:`notification_preference`,label:`Notification Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notification_submission:{token:`notification_submission`,schema:`communication`,table:`notification_submission`,label:`Self notification submission`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notify_outsider_door_baseline:{token:`notify_outsider_door_baseline`,schema:`hr`,table:`notify_outsider_door_baseline`,label:`Notify Outsider Door Baseline`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},oauth_handoff_claim:{token:`oauth_handoff_claim`,schema:`platform`,table:`_oauth_handoff_claim`,label:`Oauth Handoff Claim`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},opinion_clusters:{token:`opinion_clusters`,schema:`legal`,table:`opinion_clusters`,label:`Opinion Clusters`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},opinions:{token:`opinions`,schema:`legal`,table:`opinions`,label:`Opinions`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_check_item:{token:`ops_check_item`,schema:`ops`,table:`check_item`,label:`Check Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_check_run:{token:`ops_check_run`,schema:`ops`,table:`check_run`,label:`Check Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_db_host_sample:{token:`ops_db_host_sample`,schema:`ops`,table:`db_host_sample`,label:`Database host sample`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_issue_class:{token:`ops_issue_class`,schema:`ops`,table:`ops_issue_class`,label:`Ops Issue Class`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_issue_event:{token:`ops_issue_event`,schema:`ops`,table:`ops_issue_event`,label:`Ops Issue Event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_proof_check:{token:`ops_proof_check`,schema:`ops`,table:`proof_check`,label:`Proof Check`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_proof_run:{token:`ops_proof_run`,schema:`ops`,table:`proof_run`,label:`Proof Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_proof_scenario:{token:`ops_proof_scenario`,schema:`ops`,table:`proof_scenario`,label:`Proof Scenario`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_admin_audit:{token:`org_admin_audit`,schema:`iam`,table:`org_admin_audit`,label:`Org admin audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_change_policy:{token:`org_change_policy`,schema:`platform`,table:`org_change_policy`,label:`Org Change Policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_context_ledger:{token:`org_context_ledger`,schema:`platform`,table:`org_context_ledger`,label:`Org Context Ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_industries:{token:`org_industries`,schema:`iam`,table:`org_industries`,label:`Org Industries`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_member_control:{token:`org_member_control`,schema:`iam`,table:`org_member_controls`,label:`Org member control`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_module_config:{token:`org_module_config`,schema:`platform`,table:`org_module_config`,label:`Organization module configuration`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_plan:{token:`org_plan`,schema:`billing`,table:`org_plan`,label:`Org Plan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},organization:{token:`organization`,schema:`iam`,table:`organizations`,label:`Organization`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},organization_preferences:{token:`organization_preferences`,schema:`iam`,table:`organization_preferences`,label:`Organization Preferences`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},organization_visibility_version:{token:`organization_visibility_version`,schema:`custom`,table:`organization_visibility_version`,label:`Organization Visibility Version`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},output_feedback:{token:`output_feedback`,schema:`platform`,table:`output_feedback`,label:`Output Feedback`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},outreach_acceptance:{token:`outreach_acceptance`,schema:`crm`,table:`outreach_acceptance`,label:`Outreach Acceptance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},page_extraction_job:{token:`page_extraction_job`,schema:`docproc`,table:`page_extraction_jobs`,label:`Extraction Dataset`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},page_extraction_page_run:{token:`page_extraction_page_run`,schema:`docproc`,table:`page_extraction_page_runs`,label:`Page Extraction Page Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},page_extraction_results:{token:`page_extraction_results`,schema:`docproc`,table:`page_extraction_results`,label:`Page Extraction Results`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},page_extraction_runs:{token:`page_extraction_runs`,schema:`docproc`,table:`page_extraction_runs`,label:`Page Extraction Runs`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},page_intent_queue:{token:`page_intent_queue`,schema:`seo`,table:`page_intent_queue`,label:`Page Intent Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},page_mapping_queue:{token:`page_mapping_queue`,schema:`seo`,table:`page_mapping_queue`,label:`Page Mapping Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},part_config:{token:`part_config`,schema:`partman`,table:`part_config`,label:`Part Config`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},part_config_sub:{token:`part_config_sub`,schema:`partman`,table:`part_config_sub`,label:`Part Config Sub`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},party:{token:`party`,schema:`crm`,table:`party`,label:`Entity`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:`source`,referenceCategory:null},party_contact_point:{token:`party_contact_point`,schema:`crm`,table:`party_contact_point`,label:`Contact Point`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},passkey_credential:{token:`passkey_credential`,schema:`users`,table:`passkey_credentials`,label:`Passkey credential`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},pc_article:{token:`pc_article`,schema:`podcast`,table:`pc_articles`,label:`Podcast Article`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},pc_episode:{token:`pc_episode`,schema:`podcast`,table:`pc_episodes`,label:`Podcast Episode`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},pc_show:{token:`pc_show`,schema:`podcast`,table:`pc_shows`,label:`Podcast Show`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},pc_studio_run:{token:`pc_studio_run`,schema:`podcast`,table:`pc_studio_runs`,label:`Podcast Studio Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},pc_studio_run_asset:{token:`pc_studio_run_asset`,schema:`podcast`,table:`pc_studio_run_assets`,label:`Podcast Studio Run Asset`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},pdf_consolidation_log:{token:`pdf_consolidation_log`,schema:`pdf`,table:`pdf_consolidation_log`,label:`Pdf Consolidation Log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},pdf_redaction_audit:{token:`pdf_redaction_audit`,schema:`pdf`,table:`pdf_redaction_audits`,label:`PDF Redaction Audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},pdf_redaction_key_escrow:{token:`pdf_redaction_key_escrow`,schema:`pdf`,table:`pdf_redaction_key_escrow`,label:`Pdf Redaction Key Escrow`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},permission_grant:{token:`permission_grant`,schema:`iam`,table:`permissions`,label:`Permission grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},plan_cms_fill_item:{token:`plan_cms_fill_item`,schema:`plan`,table:`cms_fill_item`,label:`CMS Fill Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},plan_cms_fill_job:{token:`plan_cms_fill_job`,schema:`plan`,table:`cms_fill_job`,label:`CMS Fill Job`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},plan_entity:{token:`plan_entity`,schema:`plan`,table:`entity`,label:`Plan Entity`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},plan_node:{token:`plan_node`,schema:`plan`,table:`node`,label:`Plan Node`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},plan_node_artifact:{token:`plan_node_artifact`,schema:`plan`,table:`node_artifact`,label:`Plan Node Artifact`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},plan_node_step:{token:`plan_node_step`,schema:`plan`,table:`node_step`,label:`Plan Node Step`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},plan_profile:{token:`plan_profile`,schema:`plan`,table:`profile`,label:`Plan Vertical Profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`vertical`,contentRole:null,referenceCategory:null},platform_action_request:{token:`platform_action_request`,schema:`platform`,table:`action_request`,label:`Action Request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_actor_session:{token:`platform_actor_session`,schema:`platform`,table:`actor_session`,label:`Actor session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_actor_token:{token:`platform_actor_token`,schema:`platform`,table:`actor_token`,label:`Actor token`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_actor_token_event:{token:`platform_actor_token_event`,schema:`platform`,table:`actor_token_event`,label:`Actor token event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_class_approval_by_arman:{token:`platform_class_approval_by_arman`,schema:`platform`,table:`class_approval_by_arman`,label:`Class approval by Arman`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_continued_access:{token:`platform_continued_access`,schema:`platform`,table:`continued_access`,label:`Continued Access`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_census_run:{token:`platform_cutover_census_run`,schema:`platform`,table:`cutover_census_run`,label:`Cutover census run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_evaluation_replaced:{token:`platform_cutover_evaluation_replaced`,schema:`platform`,table:`cutover_evaluation_replaced`,label:`Cutover evaluation replaced`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_evaluation_write:{token:`platform_cutover_evaluation_write`,schema:`platform`,table:`cutover_evaluation_write`,label:`Cutover evaluation write`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_seam:{token:`platform_cutover_seam`,schema:`platform`,table:`cutover_seam`,label:`Cutover seam`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_seam_measure:{token:`platform_cutover_seam_measure`,schema:`platform`,table:`cutover_seam_measure`,label:`Cutover seam measure`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_seam_press:{token:`platform_cutover_seam_press`,schema:`platform`,table:`cutover_seam_press`,label:`Cutover seam press`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_dated_change:{token:`platform_dated_change`,schema:`platform`,table:`dated_change`,label:`Dated Change`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_doors_only_pending_cutover:{token:`platform_doors_only_pending_cutover`,schema:`platform`,table:`doors_only_pending_cutover`,label:`Doors-only pending cutover`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_google_calendar_event_create_intent:{token:`platform_google_calendar_event_create_intent`,schema:`platform`,table:`_google_calendar_event_create_intent`,label:`Google calendar event create intent`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_google_task_create_intent:{token:`platform_google_task_create_intent`,schema:`platform`,table:`_google_task_create_intent`,label:`Google task create intent`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_kernel_fingerprint_record:{token:`platform_kernel_fingerprint_record`,schema:`platform`,table:`kernel_fingerprint_record`,label:`Kernel fingerprint record`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_outcome_event:{token:`platform_outcome_event`,schema:`platform`,table:`outcome_event`,label:`Outcome Event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_outsider_consumer:{token:`platform_outsider_consumer`,schema:`platform`,table:`outsider_consumer`,label:`Outsider consumer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_provision_base_contract_pending:{token:`platform_provision_base_contract_pending`,schema:`platform`,table:`provision_base_contract_pending`,label:`Provision base contract pending`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_reachability:{token:`platform_reachability`,schema:`platform`,table:`reachability`,label:`Reachability`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_reachability_rebuild_pending:{token:`platform_reachability_rebuild_pending`,schema:`platform`,table:`reachability_rebuild_pending`,label:`Reachability rebuild pending`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_realtime_topic_prefix:{token:`platform_realtime_topic_prefix`,schema:`platform`,table:`realtime_topic_prefix`,label:`Realtime topic prefix`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_reference_category:{token:`platform_reference_category`,schema:`platform`,table:`reference_categories`,label:`Reference category`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_reference_declaration:{token:`platform_reference_declaration`,schema:`platform`,table:`reference_declaration`,label:`Reference declaration`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_repo:{token:`platform_repo`,schema:`platform`,table:`repo`,label:`Repository`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_saved_view:{token:`platform_saved_view`,schema:`platform`,table:`saved_view`,label:`Saved view`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_schema:{token:`platform_schema`,schema:`platform`,table:`schemas`,label:`Schema`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_secure_delivery:{token:`platform_secure_delivery`,schema:`platform`,table:`secure_delivery`,label:`Secure Delivery`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_share_link:{token:`platform_share_link`,schema:`platform`,table:`share_links`,label:`Share link`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_strict_class_probe:{token:`platform_strict_class_probe`,schema:`platform`,table:`strict_class_probe`,label:`Strict class probe`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},podcast_race:{token:`podcast_race`,schema:`podcast`,table:`pc_race`,label:`Podcast Race Episode`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},processed_document:{token:`processed_document`,schema:`docproc`,table:`processed_documents`,label:`Processed document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`source`,referenceCategory:null},processed_document_page:{token:`processed_document_page`,schema:`docproc`,table:`processed_document_pages`,label:`Processed document page`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},product_capture_file:{token:`product_capture_file`,schema:`workbench`,table:`product_capture_file`,label:`Product Capture File`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},product_capture_item:{token:`product_capture_item`,schema:`workbench`,table:`product_capture_item`,label:`Product Capture Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},product_capture_payload:{token:`product_capture_payload`,schema:`workbench`,table:`product_capture_payload`,label:`Product Capture Payload`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},product_capture_product:{token:`product_capture_product`,schema:`workbench`,table:`product_capture_product`,label:`Product Capture Product`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},product_capture_question:{token:`product_capture_question`,schema:`workbench`,table:`product_capture_question`,label:`Product Capture Question`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},project:{token:`project`,schema:`projects`,table:`projects`,label:`Project`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Workspaces`,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},provider_account:{token:`provider_account`,schema:`provider`,table:`account`,label:`Provider operating account`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provider_account_credential:{token:`provider_account_credential`,schema:`provider`,table:`account_credential`,label:`Provider account credential association`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision:{token:`provision`,schema:`mandate`,table:`provision`,label:`Mandate Provision (new)`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_generate_target:{token:`provision_generate_target`,schema:`platform`,table:`provision_generate_target`,label:`Provision Generate Target`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_grant:{token:`provision_grant`,schema:`platform`,table:`provision_grant`,label:`Provision Grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_marker:{token:`provision_marker`,schema:`platform`,table:`provision_marker`,label:`Provision Marker`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_rule_message:{token:`provision_rule_message`,schema:`platform`,table:`provision_rule_message`,label:`Provision Rule Message`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_schema:{token:`provision_schema`,schema:`platform`,table:`provision_schema`,label:`Provision Schema`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_shape_debt:{token:`provision_shape_debt`,schema:`platform`,table:`provision_shape_debt`,label:`Provision Shape Debt`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_spec:{token:`provision_spec`,schema:`platform`,table:`provision_spec`,label:`Provision Spec`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_spec_grandfather:{token:`provision_spec_grandfather`,schema:`platform`,table:`provision_spec_grandfather`,label:`Provision Spec Grandfather`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_vocabulary:{token:`provision_vocabulary`,schema:`platform`,table:`provision_vocabulary`,label:`Provision Vocabulary`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},purpose:{token:`purpose`,schema:`platform`,table:`purpose`,label:`Purpose`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},quiz_session:{token:`quiz_session`,schema:`education`,table:`quiz_sessions`,label:`Quiz Session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:`destination`,referenceCategory:null},rag_ingest_run:{token:`rag_ingest_run`,schema:`rag`,table:`ingest_run`,label:`Ingest Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},rag_library_audit_log:{token:`rag_library_audit_log`,schema:`rag`,table:`library_audit_log`,label:`Library audit log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},rate_limit_buckets:{token:`rate_limit_buckets`,schema:`files`,table:`rate_limit_buckets`,label:`Rate Limit Buckets`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},reachability_pending:{token:`reachability_pending`,schema:`platform`,table:`reachability_pending`,label:`Reachability pending`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},recompute_queue:{token:`recompute_queue`,schema:`hr`,table:`_recompute_queue`,label:`Recompute Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},record:{token:`record`,schema:`custom`,table:`record`,label:`Record`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},record_alias:{token:`record_alias`,schema:`custom`,table:`record_alias`,label:`Record Alias`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},redaction_mapping:{token:`redaction_mapping`,schema:`pdf`,table:`redaction_mapping`,label:`Redaction Mapping`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_analysis:{token:`research_analysis`,schema:`research`,table:`rs_analysis`,label:`Research Analysis`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_content:{token:`research_content`,schema:`research`,table:`rs_content`,label:`Research Content`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_context_bundle:{token:`research_context_bundle`,schema:`research`,table:`rs_context_bundle`,label:`Research Context Bundle`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`research`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},research_document:{token:`research_document`,schema:`research`,table:`rs_document`,label:`Research Document`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},research_intent:{token:`research_intent`,schema:`research`,table:`research_intent`,label:`Research Intent`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_keyword:{token:`research_keyword`,schema:`research`,table:`rs_keyword`,label:`Research Keyword`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_media:{token:`research_media`,schema:`research`,table:`rs_media`,label:`Research Media`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_source:{token:`research_source`,schema:`research`,table:`rs_source`,label:`Research Source`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},research_synthesis:{token:`research_synthesis`,schema:`research`,table:`rs_synthesis`,label:`Research Synthesis`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_tag:{token:`research_tag`,schema:`research`,table:`rs_tag`,label:`Research Tag`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},research_template:{token:`research_template`,schema:`research`,table:`rs_template`,label:`Research Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},research_topic:{token:`research_topic`,schema:`research`,table:`rs_topic`,label:`Research Topic`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},retention_policy:{token:`retention_policy`,schema:`platform`,table:`retention_policy`,label:`Retention policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},retrieval_audit:{token:`retrieval_audit`,schema:`rag`,table:`retrieval_audit`,label:`Retrieval audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},review_queue:{token:`review_queue`,schema:`agent`,table:`review_queue`,label:`Review Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},route_manifest_entry:{token:`route_manifest_entry`,schema:`platform`,table:`route_manifest`,label:`Route Manifest Entry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},row_version:{token:`row_version`,schema:`history`,table:`row_versions`,label:`Row version`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},rulebook:{token:`rulebook`,schema:`platform`,table:`rulebook`,label:`Rulebook`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`Knowledge`,referencePickable:!0,titleColumn:`name`,contentRole:`source`,referenceCategory:null},runtime_operation_stream:{token:`runtime_operation_stream`,schema:`runtime`,table:`operation_stream`,label:`Operation stream`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},runtime_operation_stream_batch:{token:`runtime_operation_stream_batch`,schema:`runtime`,table:`operation_stream_batch`,label:`Operation stream batch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sandbox_instance:{token:`sandbox_instance`,schema:`public`,table:`sandbox_instances`,label:`Sandbox Instance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sch_agent_task:{token:`sch_agent_task`,schema:`scheduler`,table:`sch_agent_task`,label:`Agent Task Config`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sch_run:{token:`sch_run`,schema:`scheduler`,table:`sch_run`,label:`Task Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sch_task:{token:`sch_task`,schema:`scheduler`,table:`sch_task`,label:`Scheduled Task`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},sch_trigger:{token:`sch_trigger`,schema:`scheduler`,table:`sch_trigger`,label:`Task Trigger`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},schema_client_exposure:{token:`schema_client_exposure`,schema:`platform`,table:`schema_client_exposure`,label:`Schema Client Exposure`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},schema_migration_ledger:{token:`schema_migration_ledger`,schema:`public`,table:`_schema_migrations`,label:`Migration ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},schema_migration_legacy:{token:`schema_migration_legacy`,schema:`public`,table:`schema_migrations`,label:`Legacy migration ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},schema_migration_slot_grandfather:{token:`schema_migration_slot_grandfather`,schema:`public`,table:`_schema_migration_slot_grandfather`,label:`Schema Migration Slot Grandfather`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},schema_templates:{token:`schema_templates`,schema:`workbench`,table:`schema_templates`,label:`Schema Templates`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope:{token:`scope`,schema:`context`,table:`scopes`,label:`Scope`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},scope_association_suggestion:{token:`scope_association_suggestion`,schema:`rag`,table:`scope_association_suggestions`,label:`Scope Association Suggestion`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope_dataset_instance:{token:`scope_dataset_instance`,schema:`context`,table:`scope_dataset_instances`,label:`Scope dataset instance`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope_door_registry:{token:`scope_door_registry`,schema:`context`,table:`scope_door_registry`,label:`Scope Door Registry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope_item_value_suggestion:{token:`scope_item_value_suggestion`,schema:`rag`,table:`scope_item_value_suggestions`,label:`Scope Item Value Suggestion`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope_suggestion:{token:`scope_suggestion`,schema:`rag`,table:`scope_suggestions`,label:`Scope Suggestion`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope_type:{token:`scope_type`,schema:`context`,table:`scope_types`,label:`Scope Type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`slug`,contentRole:`container`,referenceCategory:null},scrape_domain:{token:`scrape_domain`,schema:`scraper`,table:`scrape_domain`,label:`Scrape Domain`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_domain_settings:{token:`scrape_domain_settings`,schema:`scraper`,table:`scrape_domain_settings`,label:`Scrape Domain Settings`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_failure_log:{token:`scrape_failure_log`,schema:`scraper`,table:`scrape_failure_log`,label:`Scrape Failure Log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_parsed_page:{token:`scrape_parsed_page`,schema:`scraper`,table:`scrape_parsed_page`,label:`Parsed page`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_path_override:{token:`scrape_path_override`,schema:`scraper`,table:`scrape_path_override`,label:`Scrape Path Override`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_path_pattern:{token:`scrape_path_pattern`,schema:`scraper`,table:`scrape_path_pattern`,label:`Scrape Path Pattern`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_retry_queue:{token:`scrape_retry_queue`,schema:`scraper`,table:`scrape_retry_queue`,label:`Scrape Retry Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},search_item:{token:`search_item`,schema:`platform`,table:`search_item`,label:`Search item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_capability:{token:`seo_ai_capability`,schema:`seo`,table:`ai_capability`,label:`SEO AI capability`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_visibility_citation:{token:`seo_ai_visibility_citation`,schema:`seo`,table:`ai_visibility_citation`,label:`AI Visibility Citation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_visibility_claim:{token:`seo_ai_visibility_claim`,schema:`seo`,table:`ai_visibility_claim`,label:`AI Visibility Claim`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_visibility_panel:{token:`seo_ai_visibility_panel`,schema:`seo`,table:`ai_visibility_panel`,label:`AI Visibility Panel`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_visibility_response:{token:`seo_ai_visibility_response`,schema:`seo`,table:`ai_visibility_response`,label:`AI Visibility Response`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_visibility_signal:{token:`seo_ai_visibility_signal`,schema:`seo`,table:`ai_visibility_signal`,label:`AI Visibility Signal`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_backlink:{token:`seo_backlink`,schema:`seo`,table:`backlink`,label:`SEO Backlink`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_backlink_change_event:{token:`seo_backlink_change_event`,schema:`seo`,table:`backlink_change_event`,label:`Backlink Change Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_backlink_dimension_snapshot:{token:`seo_backlink_dimension_snapshot`,schema:`seo`,table:`backlink_dimension_snapshot`,label:`Backlink Dimension Snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_backlink_observation:{token:`seo_backlink_observation`,schema:`seo`,table:`backlink_observation`,label:`Backlink Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_backlink_snapshot:{token:`seo_backlink_snapshot`,schema:`seo`,table:`backlink_snapshot`,label:`Backlink Snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_change_assessment:{token:`seo_change_assessment`,schema:`seo`,table:`change_assessment`,label:`SEO Change Assessment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_change_event:{token:`seo_change_event`,schema:`seo`,table:`change_event`,label:`SEO Change Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_change_item:{token:`seo_change_item`,schema:`seo`,table:`change_item`,label:`SEO Change Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_change_metric:{token:`seo_change_metric`,schema:`seo`,table:`change_metric`,label:`SEO Change Metric`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_change_set:{token:`seo_change_set`,schema:`seo`,table:`change_set`,label:`SEO Change`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:`title`,contentRole:`source`,referenceCategory:null},seo_change_theory:{token:`seo_change_theory`,schema:`seo`,table:`change_theory`,label:`SEO Change Theory`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_collection_run:{token:`seo_collection_run`,schema:`seo`,table:`collection_run`,label:`SEO Collection Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_competitor:{token:`seo_competitor`,schema:`seo`,table:`competitor`,label:`SEO Competitor`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_competitor_observation:{token:`seo_competitor_observation`,schema:`seo`,table:`competitor_observation`,label:`Competitor Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_competitor_opportunity:{token:`seo_competitor_opportunity`,schema:`seo`,table:`competitor_opportunity`,label:`Competitor Opportunity`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_coverage_mention:{token:`seo_coverage_mention`,schema:`seo`,table:`coverage_mention`,label:`Coverage Mention`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_coverage_tracker:{token:`seo_coverage_tracker`,schema:`seo`,table:`coverage_tracker`,label:`Coverage Tracker`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_dimension_value_matcher:{token:`seo_dimension_value_matcher`,schema:`seo`,table:`dimension_value_matcher`,label:`Dimension Value Matcher`,baseTier:1,isComponent:!0,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_engine_schedule:{token:`seo_engine_schedule`,schema:`seo`,table:`engine_schedule`,label:`SEO Engine Schedule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_geo_place:{token:`seo_geo_place`,schema:`seo`,table:`geo_place`,label:`Geo Place`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_gsc_dig_rule:{token:`seo_gsc_dig_rule`,schema:`seo`,table:`gsc_dig_rule`,label:`GSC Dig Rule`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword:{token:`seo_keyword`,schema:`seo`,table:`keyword`,label:`SEO Keyword`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:`phrase`,contentRole:null,referenceCategory:null},seo_keyword_class_rule:{token:`seo_keyword_class_rule`,schema:`seo`,table:`keyword_class_rule`,label:`Keyword Class Rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_edge:{token:`seo_keyword_edge`,schema:`seo`,table:`keyword_edge`,label:`Keyword Edge`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_facet:{token:`seo_keyword_facet`,schema:`seo`,table:`keyword_facet`,label:`Keyword Facet`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_market:{token:`seo_keyword_market`,schema:`seo`,table:`keyword_market`,label:`Keyword Market Data`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_market_observation:{token:`seo_keyword_market_observation`,schema:`seo`,table:`keyword_market_observation`,label:`Keyword Market Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_place:{token:`seo_keyword_place`,schema:`seo`,table:`keyword_place`,label:`Keyword Place`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_saved_view:{token:`seo_keyword_saved_view`,schema:`seo`,table:`keyword_saved_view`,label:`Keyword Saved View`,baseTier:1,isComponent:!0,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_topic:{token:`seo_keyword_topic`,schema:`seo`,table:`keyword_topic`,label:`Keyword Topic Assignment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_landscape_brief:{token:`seo_landscape_brief`,schema:`seo`,table:`landscape_brief`,label:`Competitive Landscape Brief`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_link_gap_domain:{token:`seo_link_gap_domain`,schema:`seo`,table:`link_gap_domain`,label:`Link Gap Domain`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_link_gap_match:{token:`seo_link_gap_match`,schema:`seo`,table:`link_gap_match`,label:`Link Gap Match`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_map_facet:{token:`seo_map_facet`,schema:`seo`,table:`map_facet`,label:`Topical map facet`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_map_facet_value:{token:`seo_map_facet_value`,schema:`seo`,table:`map_facet_value`,label:`Topical map facet value`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_map_topic:{token:`seo_map_topic`,schema:`seo`,table:`map_topic`,label:`Topical map topic`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_page_measurement_health:{token:`seo_page_measurement_health`,schema:`seo`,table:`page_measurement_health`,label:`Page Measurement Health`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_page_performance:{token:`seo_page_performance`,schema:`seo`,table:`page_performance`,label:`Page Performance`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_pr_moment:{token:`seo_pr_moment`,schema:`seo`,table:`pr_moment`,label:`PR Moment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_provider_call:{token:`seo_provider_call`,schema:`seo`,table:`provider_call`,label:`SEO Provider Call`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_provider_task:{token:`seo_provider_task`,schema:`seo`,table:`provider_task`,label:`SEO Provider Task`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_rank_observation:{token:`seo_rank_observation`,schema:`seo`,table:`rank_observation`,label:`Rank Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_rank_target:{token:`seo_rank_target`,schema:`seo`,table:`rank_target`,label:`SEO Rank Target`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_raw_payload:{token:`seo_raw_payload`,schema:`seo`,table:`raw_payload`,label:`SEO Raw Payload`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_referring_domain_profile:{token:`seo_referring_domain_profile`,schema:`seo`,table:`referring_domain_profile`,label:`Referring Domain Profile`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_reputation_case:{token:`seo_reputation_case`,schema:`seo`,table:`reputation_case`,label:`Reputation Case`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_search_performance_daily:{token:`seo_search_performance_daily`,schema:`seo`,table:`search_performance_daily`,label:`Search Performance Daily`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_serp_mention:{token:`seo_serp_mention`,schema:`seo`,table:`serp_mention`,label:`SERP Prospect Mention`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_serp_opportunity:{token:`seo_serp_opportunity`,schema:`seo`,table:`serp_opportunity`,label:`SERP Prospect Opportunity`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_serp_result:{token:`seo_serp_result`,schema:`seo`,table:`serp_result`,label:`SERP Result`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_serp_snapshot:{token:`seo_serp_snapshot`,schema:`seo`,table:`serp_snapshot`,label:`SERP Snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_geo_area:{token:`seo_site_geo_area`,schema:`seo`,table:`site_geo_area`,label:`Site Geo Area`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_keyword_offering:{token:`seo_site_keyword_offering`,schema:`seo`,table:`site_keyword_offering`,label:`Site Keyword Offering`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_keyword_value:{token:`seo_site_keyword_value`,schema:`seo`,table:`site_keyword_value`,label:`Site Keyword Value`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_offering_value:{token:`seo_site_offering_value`,schema:`seo`,table:`site_offering_value`,label:`Site Offering Value`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_topic_value:{token:`seo_site_topic_value`,schema:`seo`,table:`site_topic_value`,label:`Site Topic Value`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_value_combo:{token:`seo_site_value_combo`,schema:`seo`,table:`site_value_combo`,label:`Site Value Combination`,baseTier:1,isComponent:!0,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_value_worth:{token:`seo_site_value_worth`,schema:`seo`,table:`site_value_worth`,label:`Site Value Worth`,baseTier:1,isComponent:!0,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_vocabulary:{token:`seo_site_vocabulary`,schema:`seo`,table:`site_vocabulary`,label:`Site Vocabulary`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_source_request:{token:`seo_source_request`,schema:`seo`,table:`source_request`,label:`SEO Source Request`,baseTier:2,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_starter_pack:{token:`seo_starter_pack`,schema:`seo`,table:`starter_pack`,label:`SEO Industry Starter Pack`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_starter_pack_item:{token:`seo_starter_pack_item`,schema:`seo`,table:`starter_pack_item`,label:`SEO Starter Pack Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_story_angle:{token:`seo_story_angle`,schema:`seo`,table:`story_angle`,label:`SEO Story Angle`,baseTier:2,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_topic:{token:`seo_topic`,schema:`seo`,table:`topic`,label:`SEO Topic`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},seo_topical_map:{token:`seo_topical_map`,schema:`seo`,table:`topical_map`,label:`Topical map`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_tracker_story:{token:`seo_tracker_story`,schema:`seo`,table:`tracker_story`,label:`Monitor Story`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_web_analytics_daily:{token:`seo_web_analytics_daily`,schema:`seo`,table:`web_analytics_daily`,label:`Web Analytics Daily`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},shareable_resource_registry:{token:`shareable_resource_registry`,schema:`platform`,table:`shareable_resource_registry`,label:`Shareable resource registry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},shared_canvas_item:{token:`shared_canvas_item`,schema:`canvas`,table:`shared_canvas_items`,label:`Shared Canvas Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},short_link:{token:`short_link`,schema:`platform`,table:`short_links`,label:`Short Link`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sign_in_fk_legacy:{token:`sign_in_fk_legacy`,schema:`platform`,table:`sign_in_fk_legacy`,label:`Sign-in reference baseline`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},skill:{token:`skill`,schema:`skill`,table:`definition`,label:`Skill`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Skills`,referencePickable:!0,titleColumn:`label`,contentRole:`utility`,referenceCategory:null},skill_detail:{token:`skill_detail`,schema:`skill`,table:`skill_detail`,label:`Skill Detail`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Skills`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},skill_render_definition:{token:`skill_render_definition`,schema:`skill`,table:`render_definition`,label:`Skill Render Definition`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Skills`,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},sms_consent:{token:`sms_consent`,schema:`communication`,table:`sms_consent`,label:`SMS Consent`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_conversation:{token:`sms_conversation`,schema:`communication`,table:`sms_conversations`,label:`SMS Conversation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_message:{token:`sms_message`,schema:`communication`,table:`sms_messages`,label:`SMS Message`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_message_media:{token:`sms_message_media`,schema:`communication`,table:`sms_media`,label:`SMS Media`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`file_name`,contentRole:null,referenceCategory:null},sms_notification:{token:`sms_notification`,schema:`communication`,table:`sms_notifications`,label:`SMS Notification`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_notification_preference:{token:`sms_notification_preference`,schema:`communication`,table:`sms_notification_preferences`,label:`SMS Notification Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_phone_number:{token:`sms_phone_number`,schema:`communication`,table:`sms_phone_numbers`,label:`SMS Phone Number`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_rate_limits:{token:`sms_rate_limits`,schema:`communication`,table:`sms_rate_limits`,label:`Sms Rate Limits`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_webhook_logs:{token:`sms_webhook_logs`,schema:`communication`,table:`sms_webhook_logs`,label:`Sms Webhook Logs`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},soft_delete_cascade_job:{token:`soft_delete_cascade_job`,schema:`platform`,table:`soft_delete_cascade_job`,label:`Soft-delete cascade job`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},soft_delete_edge:{token:`soft_delete_edge`,schema:`platform`,table:`soft_delete_edge`,label:`Soft Delete Edge`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},source_authority:{token:`source_authority`,schema:`platform`,table:`source_authority`,label:`Source authority`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},spatial_board:{token:`spatial_board`,schema:`projects`,table:`spatial_boards`,label:`Spatial Board`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},stage_ref_kind:{token:`stage_ref_kind`,schema:`growth`,table:`stage_ref_kind`,label:`Stage reference kind`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},stamped_write_table:{token:`stamped_write_table`,schema:`platform`,table:`stamped_write_table`,label:`Stamped Write Table`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},structure:{token:`structure`,schema:`files`,table:`structure`,label:`Structure`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_cleaned_segments:{token:`studio_cleaned_segments`,schema:`transcripts`,table:`studio_cleaned_segments`,label:`Studio Cleaned Segments`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_concept_items:{token:`studio_concept_items`,schema:`transcripts`,table:`studio_concept_items`,label:`Studio Concept Items`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_documents:{token:`studio_documents`,schema:`transcripts`,table:`studio_documents`,label:`Studio Document`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},studio_module_segments:{token:`studio_module_segments`,schema:`transcripts`,table:`studio_module_segments`,label:`Studio Module Segments`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_raw_segments:{token:`studio_raw_segments`,schema:`transcripts`,table:`studio_raw_segments`,label:`Studio Raw Segments`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_recording_chunks:{token:`studio_recording_chunks`,schema:`transcripts`,table:`studio_recording_chunks`,label:`Studio Recording Chunk`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_recording_segments:{token:`studio_recording_segments`,schema:`transcripts`,table:`studio_recording_segments`,label:`Studio Recording Segment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_run:{token:`studio_run`,schema:`transcripts`,table:`studio_runs`,label:`Studio Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_session:{token:`studio_session`,schema:`transcripts`,table:`studio_sessions`,label:`Audio Session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:`source`,referenceCategory:null},studio_session_settings:{token:`studio_session_settings`,schema:`transcripts`,table:`studio_session_settings`,label:`Studio Session Settings`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_attempt:{token:`study_attempt`,schema:`education`,table:`study_attempt`,label:`Study Attempt`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_goal:{token:`study_goal`,schema:`education`,table:`study_goal`,label:`Study Goal`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},study_media:{token:`study_media`,schema:`education`,table:`study_media`,label:`Study Media`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},study_plan:{token:`study_plan`,schema:`education`,table:`study_plan`,label:`Study Plan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},study_plan_block:{token:`study_plan_block`,schema:`education`,table:`study_plan_block`,label:`Study Plan Block`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},study_plan_day:{token:`study_plan_day`,schema:`education`,table:`study_plan_day`,label:`Study Plan Day`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_reminder_context:{token:`study_reminder_context`,schema:`education`,table:`study_reminder_context`,label:`Study Reminder Context`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_reminder_delivery:{token:`study_reminder_delivery`,schema:`education`,table:`study_reminder_delivery`,label:`Study Reminder Delivery`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_session:{token:`study_session`,schema:`education`,table:`study_session`,label:`Study Session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_source_chunk:{token:`study_source_chunk`,schema:`education`,table:`study_source_chunk`,label:`Study Source Chunk`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_streak:{token:`study_streak`,schema:`education`,table:`study_streak`,label:`Study streak`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_structured_section:{token:`study_structured_section`,schema:`education`,table:`study_structured_section`,label:`Study Structured Section`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},superseded_policy:{token:`superseded_policy`,schema:`iam`,table:`superseded_policy`,label:`Superseded Policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},surface:{token:`surface`,schema:`ui`,table:`ui_surface`,label:`UI Surface`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},system_announcement:{token:`system_announcement`,schema:`users`,table:`system_announcements`,label:`System announcement`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},system_context_item:{token:`system_context_item`,schema:`context`,table:`system_context_item`,label:`System Context Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},system_error:{token:`system_error`,schema:`ops`,table:`system_error`,label:`System Error`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},system_orgs:{token:`system_orgs`,schema:`iam`,table:`system_orgs`,label:`System Orgs`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},system_write_failure:{token:`system_write_failure`,schema:`ops`,table:`system_write_failure`,label:`System Write Failure`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},t13_backfill_ledger:{token:`t13_backfill_ledger`,schema:`ops`,table:`t13_backfill_ledger`,label:`T-13 backfill ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},t13_default_ledger:{token:`t13_default_ledger`,schema:`ops`,table:`t13_default_ledger`,label:`T-13 default ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},t13_row_column_events:{token:`t13_row_column_events`,schema:`ops`,table:`t13_row_column_events`,label:`T-13 row column events`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},task:{token:`task`,schema:`projects`,table:`tasks`,label:`Task`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Workspaces`,referencePickable:!0,titleColumn:`title`,contentRole:`container`,referenceCategory:null},task_user_state:{token:`task_user_state`,schema:`projects`,table:`task_user_state`,label:`Task user state`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},taxonomy_node:{token:`taxonomy_node`,schema:`platform`,table:`taxonomy_node`,label:`Taxonomy node`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},team:{token:`team`,schema:`iam`,table:`team`,label:`Team`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!1,category:`Organizations`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},template_context_items:{token:`template_context_items`,schema:`context`,table:`template_context_items`,label:`Template Context Items`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},template_scope_types:{token:`template_scope_types`,schema:`context`,table:`template_scope_types`,label:`Template Scope Types`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},templates:{token:`templates`,schema:`context`,table:`templates`,label:`Templates`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},test_handset_inbox:{token:`test_handset_inbox`,schema:`communication`,table:`test_handset_inbox`,label:`Test Handset Inbox`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},test_handset_verification:{token:`test_handset_verification`,schema:`communication`,table:`test_handset_verification`,label:`Test Handset Verification`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},thread:{token:`thread`,schema:`projects`,table:`threads`,label:`Thread`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},tool:{token:`tool`,schema:`tool`,table:`definition`,label:`Tool`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},tool_binding:{token:`tool_binding`,schema:`tool`,table:`binding`,label:`Tool binding`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_bundle:{token:`tool_bundle`,schema:`tool`,table:`bundle`,label:`Tool Bundle`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},tool_call:{token:`tool_call`,schema:`chat`,table:`tool_call`,label:`Tool Call`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_definition_version:{token:`tool_definition_version`,schema:`tool`,table:`definition_version`,label:`Tool Definition Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},tool_executor:{token:`tool_executor`,schema:`tool`,table:`executor`,label:`Tool executor`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_surface_defaults:{token:`tool_surface_defaults`,schema:`tool`,table:`surface_defaults`,label:`Tool surface defaults`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_test_sample:{token:`tool_test_sample`,schema:`tool`,table:`test_sample`,label:`Tool Test Sample`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_ui:{token:`tool_ui`,schema:`tool`,table:`ui`,label:`Tool UI`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!1,titleColumn:`display_name`,contentRole:null,referenceCategory:null},tool_ui_incident:{token:`tool_ui_incident`,schema:`tool`,table:`ui_incident`,label:`Tool UI Incident`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_ui_version:{token:`tool_ui_version`,schema:`tool`,table:`ui_version`,label:`Tool UI Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!1,titleColumn:`display_name`,contentRole:null,referenceCategory:null},topic_placement_queue:{token:`topic_placement_queue`,schema:`seo`,table:`topic_placement_queue`,label:`Topic Placement Queue`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},transcript:{token:`transcript`,schema:`transcripts`,table:`transcripts`,label:`Transcript`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Sources`,referencePickable:!0,titleColumn:`title`,contentRole:`source`,referenceCategory:null},trigger_event:{token:`trigger_event`,schema:`workflow`,table:`trigger_event`,label:`Trigger Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},udt_dataset_template:{token:`udt_dataset_template`,schema:`workbench`,table:`udt_dataset_templates`,label:`Dataset template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},udt_dataset_template_fields:{token:`udt_dataset_template_fields`,schema:`workbench`,table:`udt_dataset_template_fields`,label:`Udt Dataset Template Fields`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},udt_document:{token:`udt_document`,schema:`workbench`,table:`udt_documents`,label:`Cloud document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`document_name`,contentRole:`hybrid`,referenceCategory:null},udt_document_snapshot:{token:`udt_document_snapshot`,schema:`workbench`,table:`udt_document_snapshots`,label:`Document snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},udt_workbook_snapshot:{token:`udt_workbook_snapshot`,schema:`workbench`,table:`udt_workbook_snapshots`,label:`Workbook snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_client:{token:`ui_client`,schema:`ui`,table:`ui_client`,label:`UI client`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_agent_pref:{token:`ui_surface_agent_pref`,schema:`ui`,table:`ui_surface_agent_pref`,label:`UI Surface Agent Pref`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_agent_role:{token:`ui_surface_agent_role`,schema:`ui`,table:`ui_surface_agent_role`,label:`UI surface agent role`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_client_tool:{token:`ui_surface_client_tool`,schema:`ui`,table:`ui_surface_client_tool`,label:`UI surface client tool`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_config:{token:`ui_surface_config`,schema:`ui`,table:`ui_surface_config`,label:`UI Surface Config`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_item_type:{token:`ui_surface_item_type`,schema:`ui`,table:`ui_surface_item_type`,label:`UI surface item type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_value:{token:`ui_surface_value`,schema:`ui`,table:`ui_surface_value`,label:`UI surface value`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_write_target:{token:`ui_surface_write_target`,schema:`ui`,table:`ui_surface_write_target`,label:`UI surface write target`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},univer_payload:{token:`univer_payload`,schema:`content`,table:`univer_payload`,label:`Univer Payload`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Documents`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},unsubscribe_token:{token:`unsubscribe_token`,schema:`crm`,table:`unsubscribe_token`,label:`Unsubscribe Token`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},uploads_inflight:{token:`uploads_inflight`,schema:`files`,table:`uploads_inflight`,label:`Uploads Inflight`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user:{token:`user`,schema:`iam`,table:`users`,label:`User`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_achievement:{token:`user_achievement`,schema:`users`,table:`user_achievements`,label:`User Achievement`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_active_context:{token:`user_active_context`,schema:`context`,table:`user_active_context`,label:`Active context`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_analysis_preference:{token:`user_analysis_preference`,schema:`users`,table:`user_analysis_preferences`,label:`User Analysis Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_email_preference:{token:`user_email_preference`,schema:`users`,table:`user_email_preferences`,label:`User Email Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_entity_state:{token:`user_entity_state`,schema:`platform`,table:`user_entity_state`,label:`User entity state`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_feedback:{token:`user_feedback`,schema:`users`,table:`user_feedback`,label:`User Feedback`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_follows:{token:`user_follows`,schema:`users`,table:`user_follows`,label:`User Follows`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_form_profile:{token:`user_form_profile`,schema:`users`,table:`user_form_profile`,label:`User Form Profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_markdown_sample:{token:`user_markdown_sample`,schema:`users`,table:`user_markdown_samples`,label:`User Markdown Sample`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},user_memory:{token:`user_memory`,schema:`users`,table:`user_memory`,label:`User Memory`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_preference:{token:`user_preference`,schema:`users`,table:`user_preferences`,label:`User Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_profile:{token:`user_profile`,schema:`users`,table:`profiles`,label:`User Profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},user_secret:{token:`user_secret`,schema:`users`,table:`user_secrets`,label:`User secret`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_secret_audit:{token:`user_secret_audit`,schema:`users`,table:`user_secret_audit`,label:`Secret audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_secret_grant:{token:`user_secret_grant`,schema:`users`,table:`user_secret_grants`,label:`Secret grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_stat:{token:`user_stat`,schema:`users`,table:`user_stats`,label:`User Stats`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_storage_usage:{token:`user_storage_usage`,schema:`files`,table:`user_storage_usage`,label:`Storage usage`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_surface_state:{token:`user_surface_state`,schema:`users`,table:`user_surface_state`,label:`User Surface State`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},vault_fill_approvals:{token:`vault_fill_approvals`,schema:`users`,table:`_vault_fill_approvals`,label:`Vault fill approvals`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},vault_fill_devices:{token:`vault_fill_devices`,schema:`users`,table:`_vault_fill_devices`,label:`Vault fill devices`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},vault_fill_nonces:{token:`vault_fill_nonces`,schema:`users`,table:`_vault_fill_nonces`,label:`Vault fill nonces`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},visibility_cache:{token:`visibility_cache`,schema:`custom`,table:`visibility_cache`,label:`Visibility Cache`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},visibility_epoch:{token:`visibility_epoch`,schema:`custom`,table:`visibility_epoch`,label:`Visibility Epoch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},voice:{token:`voice`,schema:`ai`,table:`voices`,label:`Voice`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},war_room:{token:`war_room`,schema:`projects`,table:`war_rooms`,label:`War Room`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},wbx_demo:{token:`wbx_demo`,schema:`extend`,table:`wbx_demo`,label:`Extension demo record`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wbx_guidance:{token:`wbx_guidance`,schema:`extend`,table:`wbx_guidance`,label:`Extension Guidance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wbx_highlight:{token:`wbx_highlight`,schema:`extend`,table:`wbx_highlight`,label:`Extension Highlight`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wbx_pattern:{token:`wbx_pattern`,schema:`extend`,table:`wbx_pattern`,label:`Extension Scrape Pattern`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},wbx_recipe:{token:`wbx_recipe`,schema:`extend`,table:`wbx_recipe`,label:`Extension recipe`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wbx_screenshot:{token:`wbx_screenshot`,schema:`extend`,table:`wbx_screenshot`,label:`Extension Screenshot`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wbx_seo_audit:{token:`wbx_seo_audit`,schema:`extend`,table:`wbx_seo_audit`,label:`Extension SEO Audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wc_claim:{token:`wc_claim`,schema:`legal`,table:`wc_claim`,label:`WC Claim`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wc_impairment_definition:{token:`wc_impairment_definition`,schema:`legal`,table:`wc_impairment_definition`,label:`WC Impairment Definition`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},wc_injury:{token:`wc_injury`,schema:`legal`,table:`wc_injury`,label:`WC Injury`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wc_report:{token:`wc_report`,schema:`legal`,table:`wc_report`,label:`WC Report`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_analysis_item:{token:`web_analysis_item`,schema:`web`,table:`analysis_item`,label:`Analysis Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},web_brand:{token:`web_brand`,schema:`web`,table:`brand`,label:`Brand`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},web_brand_asset:{token:`web_brand_asset`,schema:`web`,table:`brand_asset`,label:`Brand Asset`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},web_brand_offering:{token:`web_brand_offering`,schema:`web`,table:`brand_offering`,label:`Brand Offering`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_business_fact:{token:`web_business_fact`,schema:`web`,table:`business_fact`,label:`Business Fact`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},web_business_location:{token:`web_business_location`,schema:`web`,table:`business_location`,label:`Business Location`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_channel_analytics_daily:{token:`web_channel_analytics_daily`,schema:`web`,table:`channel_analytics_daily`,label:`Channel analytics (daily)`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_crawl_event:{token:`web_crawl_event`,schema:`web`,table:`crawl_event`,label:`Web Crawl Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_crawl_preset:{token:`web_crawl_preset`,schema:`web`,table:`crawl_preset`,label:`Web Crawl Preset`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},web_crawl_schedule:{token:`web_crawl_schedule`,schema:`web`,table:`crawl_schedule`,label:`Web Crawl Schedule`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},web_crawl_session:{token:`web_crawl_session`,schema:`web`,table:`crawl_session`,label:`Crawl Session`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_crawl_url:{token:`web_crawl_url`,schema:`web`,table:`crawl_url`,label:`Web Crawl URL`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_discovered_item:{token:`web_discovered_item`,schema:`web`,table:`discovered_item`,label:`Discovered Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_finding:{token:`web_finding`,schema:`web`,table:`finding`,label:`Finding`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_gsc_page_stat:{token:`web_gsc_page_stat`,schema:`web`,table:`gsc_page_stat`,label:`GSC Page Stat`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_link_edge:{token:`web_link_edge`,schema:`web`,table:`link_edge`,label:`Link Edge`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_listing_publisher:{token:`web_listing_publisher`,schema:`web`,table:`listing_publisher`,label:`Listing Publisher`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_location_listing:{token:`web_location_listing`,schema:`web`,table:`location_listing`,label:`Location Listing`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_news_item:{token:`web_news_item`,schema:`web`,table:`news_item`,label:`News Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_offering_template:{token:`web_offering_template`,schema:`web`,table:`offering_template`,label:`Offering Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_page:{token:`web_page`,schema:`web`,table:`page`,label:`Canonical Page`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`url`,contentRole:`source`,referenceCategory:null},web_page_content:{token:`web_page_content`,schema:`web`,table:`page_content`,label:`Page Draft Content`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_page_evidence:{token:`web_page_evidence`,schema:`web`,table:`page_evidence`,label:`Web Page Evidence`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_page_sitemap:{token:`web_page_sitemap`,schema:`web`,table:`page_sitemap`,label:`Page Sitemap Membership`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_property:{token:`web_property`,schema:`web`,table:`property`,label:`Brand Property`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`display_name`,contentRole:null,referenceCategory:null},web_provider:{token:`web_provider`,schema:`web`,table:`provider`,label:`Provider`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},web_result:{token:`web_result`,schema:`web`,table:`analysis_result`,label:`Analysis Result`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_screenshot:{token:`web_screenshot`,schema:`web`,table:`screenshot`,label:`Screenshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_site:{token:`web_site`,schema:`web`,table:`site`,label:`Site`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},web_site_endpoint_rule:{token:`web_site_endpoint_rule`,schema:`web`,table:`site_endpoint_rule`,label:`Site Endpoint Rule`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`path_prefix`,contentRole:null,referenceCategory:null},web_site_item_config:{token:`web_site_item_config`,schema:`web`,table:`site_item_config`,label:`Site Item Config`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_site_offering:{token:`web_site_offering`,schema:`web`,table:`site_offering`,label:`Site Offering`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_sitemap:{token:`web_sitemap`,schema:`web`,table:`sitemap`,label:`Sitemap`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`url`,contentRole:null,referenceCategory:null},web_snapshot:{token:`web_snapshot`,schema:`web`,table:`snapshot`,label:`Snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_tag_manager_snapshot:{token:`web_tag_manager_snapshot`,schema:`web`,table:`tag_manager_snapshot`,label:`Tag Manager snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_voice_fingerprint:{token:`web_voice_fingerprint`,schema:`web`,table:`voice_fingerprint`,label:`Voice Fingerprint`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_youtube_video:{token:`web_youtube_video`,schema:`web`,table:`youtube_video`,label:`YouTube video`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},webhook_deliveries:{token:`webhook_deliveries`,schema:`files`,table:`webhook_deliveries`,label:`Webhook Deliveries`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},webhook_dispatch_state:{token:`webhook_dispatch_state`,schema:`files`,table:`webhook_dispatch_state`,label:`Webhook Dispatch State`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},webhooks:{token:`webhooks`,schema:`files`,table:`webhooks`,label:`Webhooks`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wf_node_data_slot:{token:`wf_node_data_slot`,schema:`workflow`,table:`node_data_slot`,label:`Workflow Node Data Slot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},work_claim:{token:`work_claim`,schema:`platform`,table:`_work_claim`,label:`Work Claim`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},work_item:{token:`work_item`,schema:`runtime`,table:`work_item`,label:`Runtime Work Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workbook:{token:`workbook`,schema:`workbench`,table:`udt_workbooks`,label:`Workbook`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`workbook_name`,contentRole:`hybrid`,referenceCategory:null},worker_heartbeat:{token:`worker_heartbeat`,schema:`workflow`,table:`worker_heartbeat`,label:`Worker Heartbeat`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow:{token:`workflow`,schema:`workflow`,table:`definition`,label:`Workflow`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`utility`,referenceCategory:null},workflow_card:{token:`workflow_card`,schema:`workflow`,table:`card`,label:`Workflow Card`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_checkpoint:{token:`workflow_checkpoint`,schema:`workflow`,table:`checkpoint`,label:`Workflow Checkpoint`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_comparison:{token:`workflow_comparison`,schema:`workflow`,table:`comparison`,label:`Workflow Comparison`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_definition_version:{token:`workflow_definition_version`,schema:`workflow`,table:`definition_version`,label:`Workflow Definition Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},workflow_idempotency:{token:`workflow_idempotency`,schema:`workflow`,table:`idempotency`,label:`Workflow Idempotency`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_job:{token:`workflow_job`,schema:`workflow`,table:`job`,label:`Workflow Job`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_node_events:{token:`workflow_node_events`,schema:`workflow`,table:`node_events`,label:`Workflow Node Events`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_node_outcome:{token:`workflow_node_outcome`,schema:`workflow`,table:`node_outcome`,label:`Workflow Node Outcome`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_plan:{token:`workflow_plan`,schema:`workflow`,table:`plan`,label:`Workflow Plan`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},workflow_plan_event:{token:`workflow_plan_event`,schema:`workflow`,table:`plan_event`,label:`Workflow Plan Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_plan_sample:{token:`workflow_plan_sample`,schema:`workflow`,table:`plan_sample`,label:`Workflow Plan Sample`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_recovery_audit:{token:`workflow_recovery_audit`,schema:`workflow`,table:`recovery_audit`,label:`Workflow Recovery Audit`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_run:{token:`workflow_run`,schema:`workflow`,table:`run`,label:`Workflow Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_run_cost:{token:`workflow_run_cost`,schema:`workflow`,table:`_run_cost`,label:`Workflow run cost`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_run_facts:{token:`workflow_run_facts`,schema:`workflow`,table:`_run_facts`,label:`Workflow run facts`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_run_log:{token:`workflow_run_log`,schema:`workflow`,table:`run_log`,label:`Workflow Run Log`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_runtime_surface:{token:`workflow_runtime_surface`,schema:`workflow`,table:`runtime_surface`,label:`Run Surface`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_template:{token:`workflow_template`,schema:`workflow`,table:`template`,label:`Workflow Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},workflow_trigger:{token:`workflow_trigger`,schema:`workflow`,table:`trigger`,label:`Workflow Trigger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},workflow_trigger_fire:{token:`workflow_trigger_fire`,schema:`workflow`,table:`trigger_fire`,label:`Workflow Trigger Fire`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_work_item:{token:`workflow_work_item`,schema:`workflow`,table:`work_item`,label:`Work Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},working_document:{token:`working_document`,schema:`workbench`,table:`working_documents`,label:`Working Document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!0,titleColumn:`title`,contentRole:`destination`,referenceCategory:null},write_guard_key:{token:`write_guard_key`,schema:`hr`,table:`_write_guard_key`,label:`Write Guard Key`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},youtube_quota_day:{token:`youtube_quota_day`,schema:`research`,table:`youtube_quota_day`,label:`Youtube Quota Day`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},youtube_search:{token:`youtube_search`,schema:`research`,table:`youtube_search`,label:`YouTube Search`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},youtube_video:{token:`youtube_video`,schema:`research`,table:`youtube_video`,label:`YouTube Video`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:`source`,referenceCategory:null}},eD=new Set(`access_delta_probe.access_delta_run.access_request.account_addon.acquisition_block.activity.admin_audit_log.admin_email_log.admin_markdown_sample.admin_user.admission_config.agent.agent_card.agent_definition_version.agent_drift_alert.agent_exemplar.agent_mandate_note.agent_prompt_remediation.agent_run.agent_run_stage.agent_schedule.agent_schedule_claim.agent_shortcut.agent_surface_binding.agent_template.agent_term_list.agent_usage.ai_api.ai_calls.ai_endpoint.ai_model.ai_model_alias.ai_offering.ai_provider.ai_setting.ai_usage_executions.ai_usage_hourly.ai_usage_hourly_watermark.analysis_result.anon_form.anon_function_birth_grandfather.anon_hit.anon_inbound.anon_replay.anon_submission.anon_token.api_field_warning.api_request_log.app.app_config.app_config_history.app_definition_version.app_error.app_execution.app_instance.app_log.app_log_muted_pattern.app_log_norm_exception.app_rate_limit.app_setting.app_sync_status.approach.artifact.assessment.assessment_item.assessment_result.assignment_session.assist.assist_producer_policy.assist_producer_policy_history.association_type.assurance_level.attempt.audit_broken_functions.audit_canonical_findings.audit_exemption.audit_function_deps.audit_function_runtime_probe.audit_m2m_candidates.audit_refresh_log.audit_stale_registry.audit_unregistered_candidates.base_entity_template.batch_cost_event.batch_provider_batch.batch_work_item.billing_capability.billing_capability_limit.billing_connect_account.billing_customer.billing_plan.billing_plan_limit.billing_price.billing_product.billing_spend_approval.billing_spend_guardrail.billing_stripe_event.billing_subscription.billing_usage_ledger.billing_user_plan.browser_account_binding.browser_action_event.browser_authenticator_window.browser_capture.browser_control_request.browser_handoff.browser_login_attempt.browser_login_recipe.browser_profile.browser_profile_checkpoint.browser_run.browser_site_observation.browser_site_policy.browser_stream_ticket.build_lock.calendar_event.campaign_watch_ramp_gate_run.campaign_watch_switch_outbox.campaign_watch_switch_window.canvas_comment.canvas_comment_like.canvas_item.canvas_item_state.canvas_like.canvas_score.canvas_view.capture_window.carrying_rule.catalog_entries_history.catalog_entry.category.change_type_default.chat_user_usage_summary.citations.class_purchase.classifier_revision_ledger.client_callable_door.client_callable_door_retirement.client_excluded_column_unregistered.cmp_entry.cmp_feedback.code_file.code_folder.code_repository.coding_session.coding_session_entry.comment.commerce_asset_allocation.commerce_asset_grading.commerce_asset_identifier.commerce_asset_lot_event.commerce_asset_mandate_result.commerce_asset_price_factor.commerce_asset_reshoot_request.commerce_asset_review.commerce_asset_unknown.commerce_certified_printer.commerce_cloud_sync_connection.commerce_ebay_business_policy.commerce_ebay_category.commerce_ebay_category_aspect.commerce_ebay_category_tree.commerce_ebay_custom_policy.commerce_ebay_inventory_item.commerce_ebay_inventory_item_group.commerce_ebay_inventory_item_group_member.commerce_ebay_inventory_location.commerce_ebay_listing.commerce_ebay_marketplace_policy.commerce_ebay_media_asset.commerce_ebay_notification_destination.commerce_ebay_notification_event.commerce_ebay_notification_subscription.commerce_ebay_notification_topic.commerce_ebay_offer.commerce_ebay_order.commerce_ebay_order_line_item.commerce_ebay_shipping_fulfillment.commerce_ebay_store_category.commerce_human_correction.commerce_intake_artifact.commerce_intake_asset.commerce_intake_batch.commerce_label_batch.commerce_label_code.commerce_marketplace_account.commerce_marketplace_account_deletion_audit.commerce_marketplace_api_call.commerce_marketplace_rate_budget.commerce_marketplace_site.commerce_marketplace_sync_run.commerce_prediction_outcome.commerce_print_order.commerce_product.commerce_product_channel_ref.commerce_product_media.commerce_product_variant.commerce_recall_audit.communication_calendar_selected_snapshot_state.communication_channel_readiness.comparison_set.contact_medium.contact_submission.content_certification.content_ir_kind.content_ir_kind_component.content_ir_kind_component_incident.content_ir_kind_conformance.content_ir_kind_edge.content_ir_kind_example.content_ir_kind_instance.content_ir_kind_surface.content_lane.context_access_log.context_item.context_item_suggestion.context_item_value.context_value_refs.conversation.conversation_value.courts.credential_attachment.credential_item.credential_mutation_receipt.crm_address.crm_affiliation.crm_blocklist_entry.crm_contact_candidate.crm_deal.crm_deal_stage_event.crm_enrichment_call.crm_interaction.crm_merge_candidate.crm_outreach_list.crm_outreach_list_member.crm_party_merge.crm_party_research.crm_registry_ingest_run.crm_registry_source.crm_sending_event.crm_sending_identity.crm_sending_identity_check.crm_sending_policy.custom_agg_digest_checked.custom_entity_definition.custom_field_definition.custom_field_target.custom_record.custom_share_tails_mine_repair.cx_agent_memory.cx_agent_plan.cx_agent_task.cx_code_edit.cx_code_message_file.cx_media.cx_observational_memory.cx_observational_memory_event.cx_pending_injection.cx_request.cx_request_snapshot.cx_tool_trace.cx_user_request.cx_user_todo.data_rights_event.data_store.data_store_members.ddl_guard_log.deck_suggestion.definer_class_exemption.definer_client_grant_grandfather.definer_grant_baseline.deprecated_relation.derive_run.dev_login_audit.dict_entry.dict_provider_publication.dict_setting.dm_conversation.dm_message.dm_participant.doc_render.doc_signature.dockets.document.document_version.domain_classification.edge_payload_kind.egress_device.egress_pairing.egress_ticket.emails.embedding_cache.embeddings_google_gemini_2_1536.embeddings_oai_3_small_1536.embeddings_voyage_4_large_1024.embeddings_voyage_code_3_1024.endpoint_family_sweep_state.engine_owner_task.entity_grant.entity_relationship.entity_type.esign_campaign.esign_campaign_member.esign_consent_disclosure.esign_envelope.esign_envelope_certificate.esign_envelope_document.esign_envelope_event.esign_envelope_external_ref.esign_envelope_signer.esign_provider.esign_provider_binding.esign_signing_key.execution_event_cursor.extension_auth_code.external_link.external_source.extract_sweep_state.fc_card.fc_detail.fc_set.feature_doc.feature_knob.feedback_comments.feedback_user_messages.file.file_analysis.file_entities.file_overrides.file_page_annotations.file_pages.file_rag_job.file_version.files_account_tier.files_machine_written_prefix.files_sync_mapping.files_user_account.flexible_data.folder.function_contract.game_badge.game_result.game_room.global_execution.global_execution_checkpoint.global_execution_control.global_execution_event.global_meter_entry.global_origin.global_request.google_document.growth_loop_event.growth_loop_run.growth_loop_stage_run.guardian_link.guest_conversion_audit.guest_execution_log.guest_executions.guided_checklist_run.heatmap_save.hindsight_enrollment.hindsight_finding.hindsight_regression_case.hindsight_replay.hindsight_replay_step.hindsight_review.hr_access_audit.hr_access_role.hr_accommodation_request.hr_ai_evidence.hr_alert_routing_rule.hr_application.hr_approval_authority.hr_approval_delegation.hr_asset.hr_asset_assignment.hr_attendance_exception.hr_auto_close_rule.hr_availability.hr_background_check.hr_benefits_event.hr_calculation_snapshot.hr_candidate.hr_candidate_conversion.hr_candidate_message.hr_careers_portal.hr_checklist_item.hr_checklist_run.hr_checklist_template.hr_checklist_template_item.hr_compensation.hr_corrective_action.hr_course.hr_course_version.hr_credential.hr_crew.hr_deduction_code.hr_department.hr_derived_grant.hr_disposition_event.hr_earning_code.hr_eeo_response.hr_emergency_contact.hr_employee.hr_employee_private.hr_employer_profile.hr_employment.hr_employment_pin.hr_engagement.hr_establishment.hr_external_identity.hr_field_policy.hr_holiday.hr_holiday_calendar.hr_i9.hr_i9_document.hr_incident.hr_incident_party.hr_interview.hr_interview_kit.hr_job_title.hr_jurisdiction.hr_jurisdiction_rule.hr_jurisdiction_rule_class.hr_jurisdiction_rule_org_decision.hr_jurisdiction_rule_test.hr_kiosk_device.hr_kiosk_session.hr_labor_target.hr_leave_case.hr_leave_enrollment.hr_leave_ledger.hr_leave_policy.hr_leave_request.hr_legal_hold.hr_legal_hold_item.hr_location.hr_new_hire_report.hr_offer.hr_opening.hr_overtime_alert.hr_overtime_alert_rule.hr_overtime_preapproval.hr_pay_group.hr_pay_period.hr_pay_period_employment.hr_payroll_export.hr_payroll_export_line.hr_position_assignment.hr_posting.hr_posting_publication.hr_provider_binding.hr_provider_event.hr_provisioning_result.hr_punch.hr_recalculation_batch.hr_record_class.hr_records_request.hr_reference_check.hr_reporting_line.hr_requisition.hr_restricted_note.hr_retention_rule.hr_role_assignment.hr_schedule.hr_schedule_change.hr_schedule_guidance.hr_schedule_template.hr_schedule_template_shift.hr_scorecard.hr_separation.hr_shift.hr_shift_claim.hr_staffing_requirement.hr_survey.hr_survey_invitation.hr_survey_question.hr_survey_response.hr_tax_registration.hr_tax_withholding.hr_time_adjustment.hr_training_assignment.hr_training_attempt.hr_transcript_entry.hr_verification_letter_request.hr_work_interval.hr_workflow_binding.hr_workflow_decision.hr_workflow_definition.hr_workflow_event.hr_workflow_failure.hr_workflow_flow_type.hr_workflow_instance.hr_workflow_step.hr_workflow_step_definition.hr_workweek.html_extraction.iam_access_audit.iam_api_key.iam_emergency_door_request.iam_org_availability_key.iam_read_lane_v2_rollout.idempotency.industry.industry_curator.infra_status.ingest_runs.integration_connection.integration_connection_resource.interview_decision_interview.interview_decision_question.interview_document_revision.interview_hole.interview_question.interview_session.interview_turn.invitation.invitation_code.invitation_request.io_comment.io_contract.io_import.io_outbox.item.item_mastery.judge_verdict.jurisdiction_policy.keyword_classification_queue.kg_alert.kg_chunk_entities.kg_chunks.kg_clusters.kg_edges.kg_entities.kg_entity_aliases.kg_suggestion_ack.kg_sweep_queue.kg_sweep_run.kg_sweep_state.kg_value_match.knob_override.knob_override_audit.knob_rung_lock.knob_scope_kind.knob_write_door.league_membership.learn_doc.library_doc.lifecycle_archive.lifecycle_archive_row.lifecycle_audit.lifecycle_entity_plan.lifecycle_map_build.lifecycle_reference_map.lifecycle_run.lifecycle_tier_ledger.location.mandate.mandate_advance_batch_row.mandate_binding.mandate_candidate.mandate_candidate_run.mandate_candidate_run_payload.mandate_goal_clauses.mandate_observation.mandate_reference.mandate_scan.mandate_treatment.marketing_initiative.masterwork_corpus_item.masterwork_run.masterwork_run_kind.masterwork_source.math_course_structure.math_problem.matrx_action_ledger.mcp_config.mcp_server.mcp_user_conn.media_capture_handoff.media_catalog_setting.media_library_item.media_selection_item.media_selection_job.media_source_library.meet_call_invite.meet_chat_message.meet_invitee.meet_meeting.meet_note.meet_occurrence_override.meet_participant.meet_recording.meet_transcript_segment.membership.membership_grant.merge_field_provenance.message.message_template.message_template_detail.meta_excluded_schema.meta_table_stats_history.metadata_reserved_keys.migration_log.mtx_media_heal_queue.mtx_public_url_guard.ner_shadow.note.note_folder.notification.notification_channel_preference.notification_event_override.notification_event_type.notification_preference.notification_submission.notify_outsider_door_baseline.oauth_handoff_claim.opinion_clusters.opinions.ops_check_item.ops_check_run.ops_db_host_sample.ops_issue_class.ops_issue_event.ops_proof_check.ops_proof_run.ops_proof_scenario.org_admin_audit.org_change_policy.org_context_ledger.org_industries.org_member_control.org_module_config.org_plan.organization.organization_preferences.organization_visibility_version.output_feedback.outreach_acceptance.page_extraction_job.page_extraction_page_run.page_extraction_results.page_extraction_runs.page_intent_queue.page_mapping_queue.part_config.part_config_sub.party.party_contact_point.passkey_credential.pc_article.pc_episode.pc_show.pc_studio_run.pc_studio_run_asset.pdf_consolidation_log.pdf_redaction_audit.pdf_redaction_key_escrow.permission_grant.plan_cms_fill_item.plan_cms_fill_job.plan_entity.plan_node.plan_node_artifact.plan_node_step.plan_profile.platform_action_request.platform_actor_session.platform_actor_token.platform_actor_token_event.platform_class_approval_by_arman.platform_continued_access.platform_cutover_census_run.platform_cutover_evaluation_replaced.platform_cutover_evaluation_write.platform_cutover_seam.platform_cutover_seam_measure.platform_cutover_seam_press.platform_dated_change.platform_doors_only_pending_cutover.platform_google_calendar_event_create_intent.platform_google_task_create_intent.platform_kernel_fingerprint_record.platform_outcome_event.platform_outsider_consumer.platform_provision_base_contract_pending.platform_reachability.platform_reachability_rebuild_pending.platform_realtime_topic_prefix.platform_reference_category.platform_reference_declaration.platform_repo.platform_saved_view.platform_schema.platform_secure_delivery.platform_share_link.platform_strict_class_probe.podcast_race.processed_document.processed_document_page.product_capture_file.product_capture_item.product_capture_payload.product_capture_product.product_capture_question.project.provider_account.provider_account_credential.provision.provision_generate_target.provision_grant.provision_marker.provision_rule_message.provision_schema.provision_shape_debt.provision_spec.provision_spec_grandfather.provision_vocabulary.purpose.quiz_session.rag_ingest_run.rag_library_audit_log.rate_limit_buckets.reachability_pending.recompute_queue.record.record_alias.redaction_mapping.research_analysis.research_content.research_context_bundle.research_document.research_intent.research_keyword.research_media.research_source.research_synthesis.research_tag.research_template.research_topic.retention_policy.retrieval_audit.review_queue.route_manifest_entry.row_version.rulebook.runtime_operation_stream.runtime_operation_stream_batch.sandbox_instance.sch_agent_task.sch_run.sch_task.sch_trigger.schema_client_exposure.schema_migration_ledger.schema_migration_legacy.schema_migration_slot_grandfather.schema_templates.scope.scope_association_suggestion.scope_dataset_instance.scope_door_registry.scope_item_value_suggestion.scope_suggestion.scope_type.scrape_domain.scrape_domain_settings.scrape_failure_log.scrape_parsed_page.scrape_path_override.scrape_path_pattern.scrape_retry_queue.search_item.seo_ai_capability.seo_ai_visibility_citation.seo_ai_visibility_claim.seo_ai_visibility_panel.seo_ai_visibility_response.seo_ai_visibility_signal.seo_backlink.seo_backlink_change_event.seo_backlink_dimension_snapshot.seo_backlink_observation.seo_backlink_snapshot.seo_change_assessment.seo_change_event.seo_change_item.seo_change_metric.seo_change_set.seo_change_theory.seo_collection_run.seo_competitor.seo_competitor_observation.seo_competitor_opportunity.seo_coverage_mention.seo_coverage_tracker.seo_dimension_value_matcher.seo_engine_schedule.seo_geo_place.seo_gsc_dig_rule.seo_keyword.seo_keyword_class_rule.seo_keyword_edge.seo_keyword_facet.seo_keyword_market.seo_keyword_market_observation.seo_keyword_place.seo_keyword_saved_view.seo_keyword_topic.seo_landscape_brief.seo_link_gap_domain.seo_link_gap_match.seo_map_facet.seo_map_facet_value.seo_map_topic.seo_page_measurement_health.seo_page_performance.seo_pr_moment.seo_provider_call.seo_provider_task.seo_rank_observation.seo_rank_target.seo_raw_payload.seo_referring_domain_profile.seo_reputation_case.seo_search_performance_daily.seo_serp_mention.seo_serp_opportunity.seo_serp_result.seo_serp_snapshot.seo_site_geo_area.seo_site_keyword_offering.seo_site_keyword_value.seo_site_offering_value.seo_site_topic_value.seo_site_value_combo.seo_site_value_worth.seo_site_vocabulary.seo_source_request.seo_starter_pack.seo_starter_pack_item.seo_story_angle.seo_topic.seo_topical_map.seo_tracker_story.seo_web_analytics_daily.shareable_resource_registry.shared_canvas_item.short_link.sign_in_fk_legacy.skill.skill_detail.skill_render_definition.sms_consent.sms_conversation.sms_message.sms_message_media.sms_notification.sms_notification_preference.sms_phone_number.sms_rate_limits.sms_webhook_logs.soft_delete_cascade_job.soft_delete_edge.source_authority.spatial_board.stage_ref_kind.stamped_write_table.structure.studio_cleaned_segments.studio_concept_items.studio_documents.studio_module_segments.studio_raw_segments.studio_recording_chunks.studio_recording_segments.studio_run.studio_session.studio_session_settings.study_attempt.study_goal.study_media.study_plan.study_plan_block.study_plan_day.study_reminder_context.study_reminder_delivery.study_session.study_source_chunk.study_streak.study_structured_section.superseded_policy.surface.system_announcement.system_context_item.system_error.system_orgs.system_write_failure.t13_backfill_ledger.t13_default_ledger.t13_row_column_events.task.task_user_state.taxonomy_node.team.template_context_items.template_scope_types.templates.test_handset_inbox.test_handset_verification.thread.tool.tool_binding.tool_bundle.tool_call.tool_definition_version.tool_executor.tool_surface_defaults.tool_test_sample.tool_ui.tool_ui_incident.tool_ui_version.topic_placement_queue.transcript.trigger_event.udt_dataset_template.udt_dataset_template_fields.udt_document.udt_document_snapshot.udt_workbook_snapshot.ui_client.ui_surface_agent_pref.ui_surface_agent_role.ui_surface_client_tool.ui_surface_config.ui_surface_item_type.ui_surface_value.ui_surface_write_target.univer_payload.unsubscribe_token.uploads_inflight.user.user_achievement.user_active_context.user_analysis_preference.user_email_preference.user_entity_state.user_feedback.user_follows.user_form_profile.user_markdown_sample.user_memory.user_preference.user_profile.user_secret.user_secret_audit.user_secret_grant.user_stat.user_storage_usage.user_surface_state.vault_fill_approvals.vault_fill_devices.vault_fill_nonces.visibility_cache.visibility_epoch.voice.war_room.wbx_demo.wbx_guidance.wbx_highlight.wbx_pattern.wbx_recipe.wbx_screenshot.wbx_seo_audit.wc_claim.wc_impairment_definition.wc_injury.wc_report.web_analysis_item.web_brand.web_brand_asset.web_brand_offering.web_business_fact.web_business_location.web_channel_analytics_daily.web_crawl_event.web_crawl_preset.web_crawl_schedule.web_crawl_session.web_crawl_url.web_discovered_item.web_finding.web_gsc_page_stat.web_link_edge.web_listing_publisher.web_location_listing.web_news_item.web_offering_template.web_page.web_page_content.web_page_evidence.web_page_sitemap.web_property.web_provider.web_result.web_screenshot.web_site.web_site_endpoint_rule.web_site_item_config.web_site_offering.web_sitemap.web_snapshot.web_tag_manager_snapshot.web_voice_fingerprint.web_youtube_video.webhook_deliveries.webhook_dispatch_state.webhooks.wf_node_data_slot.work_claim.work_item.workbook.worker_heartbeat.workflow.workflow_card.workflow_checkpoint.workflow_comparison.workflow_definition_version.workflow_idempotency.workflow_job.workflow_node_events.workflow_node_outcome.workflow_plan.workflow_plan_event.workflow_plan_sample.workflow_recovery_audit.workflow_run.workflow_run_cost.workflow_run_facts.workflow_run_log.workflow_runtime_surface.workflow_template.workflow_trigger.workflow_trigger_fire.workflow_work_item.working_document.write_guard_key.youtube_quota_day.youtube_search.youtube_video`.split(`.`));function tD(e){return typeof e==`string`&&eD.has(e)}function nD(e){return typeof e==`string`?JSON.stringify(e):e==null?String(e):JSON.stringify(e)}var rD={cx_message:`message`,cx_conversation:`conversation`,user_file:`file`,agent_app:`app`,chat_block:`message`};function iD(...e){for(let t of e)if(t)return t;return null}function aD(e){function t(t,n,r){let i=`association ${t} ${r} (got ${nD(n)})`;return e({code:`invalid_argument`,message:`[associations] invalid argument — ${i}`,context:{field:t}}),{code:`invalid_argument`,message:i}}return{checkUuid(e,n){return an(n)?null:t(e,n,`must be a UUID`)},checkUuidArray(e,n){for(let r=0;r<n.length;r++)if(!an(n[r]))return t(`${e}[${r}]`,n[r],`must be a UUID`);return null},checkToken(e,n){return typeof n!=`string`||n.length===0?t(e,n,`must be a non-empty entity-type token`):tD(n)?null:t(e,n,`is not a registered entity type (platform.entity_types) — add it to the registry + upgrade @ai-matrx/associations, never guess a token`)},normalizeEntityToken(t){let n=rD[t];return n?(e({code:`legacy_token_alias`,message:`[associations] phantom entity token ${JSON.stringify(t)} mapped to canonical ${JSON.stringify(n)} — fix the callsite to emit the canonical token (FOUND_DEFECTS D27)`,context:{value:t,canonical:n}}),n):t}}}function oD(e,t,n,r){let i={code:e,message:t};return n!==void 0&&(i.detail=n),r!==void 0&&(i.hint=r),{ok:!1,error:i}}function sD(e){return{ok:!0,data:e}}function cD(e){if(typeof navigator<`u`&&navigator.onLine===!1||e instanceof TypeError)return!0;if(e&&typeof e==`object`){let t=e;if(t.code||t.status)return!1;let n=`${typeof t.name==`string`?t.name:``} ${typeof t.message==`string`?t.message:``}`.toLowerCase();return n.includes(`failed to fetch`)||n.includes(`networkerror`)||n.includes(`network request failed`)||n.includes(`load failed`)||n.includes(`upstream connect error or disconnect/reset before headers`)}return!1}function lD(e){if(!e||typeof e!=`object`)return!1;let t=e;return typeof t.code==`string`&&typeof t.message==`string`}function uD(e){if(e&&typeof e==`object`){let t=e;return{pgCode:typeof t.code==`string`&&t.code?t.code:null,pgMessage:typeof t.message==`string`&&t.message?t.message:null,pgHint:typeof t.hint==`string`&&t.hint?t.hint:void 0}}return{pgCode:null,pgMessage:null,pgHint:void 0}}function dD(e){function t(t){let{pgCode:n,pgMessage:r,pgHint:i}=uD(t);if(n===`PGRST202`){let a=`demanded schema violation: the database this client is pointed at cannot answer a demanded @ai-matrx/associations RPC (PostgREST PGRST202 — function not found). This package DEMANDS the platform `+`schema (README § The demanded schema). ${r??``}`.trim();e({code:`demanded_schema_violation`,message:a,context:{pgCode:n,detail:t}});let o={code:`demanded_schema_violation`,message:a,detail:t};return i!==void 0&&(o.hint=i),o}if(cD(t)?e({code:`transport_failure`,message:`network unreachable (browser offline?)`,context:{transient:!0,detail:t}}):lD(t)||e({code:`internal`,message:r??`Unexpected error talking to the data source`,context:{detail:t}}),n===`PGRST116`)return{code:`not_found`,message:`Not found`};if(n===`42501`)return{code:`forbidden_org`,message:`Permission denied`};if(n===`PGRST301`||n===`PGRST303`)return{code:`unauthorized`,message:`Your session expired`};if(n===`57014`){let e={code:`internal`,message:`The database took too long to respond`,detail:t};return i!==void 0&&(e.hint=i),e}let a={message:r??`Unexpected error talking to the data source`,code:`internal`,detail:t};return i!==void 0&&(a.hint=i),a}function n(e){let n=t(e);return[n.code,n.message,n.detail,n.hint]}return{ok:sD,err:oD,mapPgError:t,mapPgErrorPair:n}}var fD=`created_by`,pD=`organization_id`,mD=new Set([`utility`,`source`,`destination`,`hybrid`,`container`]);function hD(e){return e!==null&&mD.has(e)}var gD={cld_file:`file`};function _D(e){return gD[e]??e}var vD=(()=>{let e={};for(let t of Object.keys($E)){let n=$E[t],r=`${n.schema}.${n.table}`;r in e||(e[r]=t)}return e})(),yD=(()=>{let e={};for(let t of Object.keys($E)){let n=$E[t].table;e[n]=n in e?null:t}return e})();function bD(e,t){let n={...t??{}},r=new Set;function i(t){return r.has(t)||(r.add(t),e({code:`retired_entity_token`,message:`[entityRegistry] "${t}" is not in the live entity vocabulary (retired or renamed in platform.entity_types). The host still references it; rename the reference to the live token, or drop it. Serving a stand-in so the page can render.`,context:{token:t}})),{token:t,schema:``,table:``,label:`${t} (retired)`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null}}function a(t){let r=$E[t]??i(t),a=n[t],o=a?.labelPlural??`${r.label}s`,s=r.titleColumn,c=hD(r.contentRole)?r.contentRole:`destination`;r.contentRole!==null&&!hD(r.contentRole)&&e({code:`invalid_content_role`,message:`[entityRegistry] "${t}" has invalid content_role "${r.contentRole}" in platform.entity_types; using destination as a loud recovery.`,context:{token:t,contentRole:r.contentRole}});let l=a?.ownerColumn===void 0?fD:a.ownerColumn??``,u=a?.orgColumn===void 0?pD:a.orgColumn??``;return{token:t,label:r.label,labelPlural:o,schema:r.schema,table:r.table,titleColumn:s,ownerColumn:l,orgColumn:u,Icon:a?.Icon??null,hrefFor:a?.hrefFor??null,scopeable:r.scopeable,category:r.category,contentRole:c,listCandidates:a?.listCandidates??null,canListCandidates:s!==null||a?.listCandidates!==void 0}}return{registerEntityOverlay(e){for(let t of Object.keys(e)){let r=e[t];r&&(n[t]={...n[t],...r})}},getEntityInfo:a,tryGetEntityInfo(e){let t=_D(e);return tD(t)?a(t):null},tryGetEntityInfoByTable(e,t){let n=vD[`${e}.${t}`];return n?a(n):null},tryGetEntityInfoByUniqueTableName(e){let t=yD[e];return t?a(t):null},curatedTokens(){return Object.keys($E).filter(e=>{let t=$E[e],r=n[e];return hD(t.contentRole)&&(t.titleColumn!=null||r?.listCandidates!==void 0)})},listableTokens(){return Object.keys($E).filter(t=>{let r=$E[t];if(!r.referencePickable)return!1;let i=n[t],a=r.titleColumn!=null||i?.listCandidates!==void 0;return a||e({code:`unlistable_pickable_token`,message:`[entityRegistry] "${t}" is reference_pickable in platform.entity_types but has NO title_column and no host candidate source — set its title_column in the registry or register a listCandidates override.`,context:{token:t}}),a})}}}var xD={"artifact>processed_document":`source`,"calendar_event>conversation":`conversation_attached_resource`,"calendar_event>party":`attendee`,"code_file>code_repository":`in_repository`,"content_ir_kind_instance>content_ir_kind_instance":`part_of`,"conversation>party":`produced_by`,"fc_set>processed_document":`source`,"file>hr_application":`evidence`,"file>hr_employee":`personnel_document`,"file>hr_employment":`evidence`,"file>hr_incident":`evidence`,"file>hr_leave_case":`evidence`,"google_document>crm_deal":`attached_to`,"google_document>party":`attached_to`,"google_document>project":`attached_to`,"google_document>task":`attached_to`,"hr_candidate>party":`candidate_party`,"hr_course>hr_job_title":`role_curriculum`,"hr_credential>hr_job_title":`required_credential`,"hr_employee>record":`scope_member`,"hr_employee>scope":`scope_member`,"integration_connection_resource>conversation":`conversation_attached_resource`,"media_source_library>youtube_video":`catalogued_source`,"message>content_ir_kind_instance":`produced_by`,"note>calendar_event":`about`,"note>hr_candidate":`hr_note`,"note>hr_employee":`hr_note`,"organization>seo_keyword":`keyword_library`,"pc_episode>processed_document":`source`,"processed_document>code_repository":`in_repository`,"processed_document>media_source_library":`catalogued_source`,"processed_document>record":`about`,"processed_document>research_topic":`research_source`,"processed_document>scope":`about`,"processed_document>web_site":`crawled_page`,"quiz_session>processed_document":`source`,"research_source>youtube_video":`Canonical YouTube video`,"web_youtube_video>seo_map_topic":`covers`,"youtube_video>transcript":`video_transcript`};function SD(e,t){return xD[`${e}>${t}`]}function CD(e){return{id:e.id,direction:e.direction===`incoming`?`incoming`:`outgoing`,otherType:e.other_type,otherId:e.other_id,role:e.role??null,label:e.label??null,position:e.position??null,metadata:e.metadata??{},orgId:e.organization_id??null,createdAt:e.created_at}}function wD(e){return{id:e.id,targetId:e.target_id,sourceType:e.source_type,sourceId:e.source_id,role:e.role??null,label:e.label??null,position:e.position??null,metadata:e.metadata??{},orgId:e.organization_id??null,createdAt:e.created_at}}function TD(e){return{id:e.id,sourceId:e.source_id,targetType:e.target_type,targetId:e.target_id,role:e.role??null,label:e.label??null,position:e.position??null,metadata:e.metadata??{},orgId:e.organization_id??null,createdAt:e.created_at}}function ED(e){let{dataSource:t,identity:n,guards:r}=e,{ok:i,err:a,mapPgError:o,mapPgErrorPair:s}=e.rpc,{checkToken:c,checkUuid:l,checkUuidArray:u,normalizeEntityToken:d}=r;return{async listForEntity(e,r){try{n.requireUserId();let o=d(e),u=iD(c(`type`,o),l(`id`,r));if(u)return{ok:!1,error:u};let{data:f,error:p}=await t.rpc(`assoc_for_entity`,{p_type:o,p_id:r});return p?a(...s(p)):i({edges:(Array.isArray(f)?f:[]).map(CD)})}catch(e){return{ok:!1,error:o(e)}}},async listConversationFiles(e){try{n.requireUserId();let r=l(`conversationId`,e);if(r)return{ok:!1,error:r};let{data:o,error:c}=await t.rpc(`conversation_files`,{p_conversation_id:e});return c?a(...s(c)):i({files:(Array.isArray(o)?o:[]).map(e=>({fileId:e.file_id,label:e.label??null,metadata:e.metadata??{},createdAt:e.created_at}))})}catch(e){return{ok:!1,error:o(e)}}},async listForTargets(e,r){try{n.requireUserId();let o=d(e),l=Array.from(new Set(r));if(l.length===0)return i({edges:[]});let f=iD(c(`targetType`,o),u(`targetIds`,l));if(f)return{ok:!1,error:f};let{data:p,error:m}=await t.rpc(`assoc_for_targets`,{p_target_type:o,p_target_ids:l});return m?a(...s(m)):i({edges:(Array.isArray(p)?p:[]).map(wD)})}catch(e){return{ok:!1,error:o(e)}}},async listForTargetsVisible(e,r){try{n.requireUserId();let o=d(e),l=Array.from(new Set(r));if(l.length===0)return i({edges:[]});let f=iD(c(`targetType`,o),u(`targetIds`,l));if(f)return{ok:!1,error:f};let{data:p,error:m}=await t.rpc(`assoc_members_visible`,{p_target_type:o,p_target_ids:l});return m?a(...s(m)):i({edges:(Array.isArray(p)?p:[]).map(wD)})}catch(e){return{ok:!1,error:o(e)}}},async listForSources(e,r,l){try{n.requireUserId();let o=d(e),f=l==null?void 0:d(l),p=Array.from(new Set(r));if(p.length===0)return i({edges:[]});let m=iD(c(`sourceType`,o),u(`sourceIds`,p),f?c(`targetType`,f):null);if(m)return{ok:!1,error:m};let{data:h,error:g}=await t.rpc(`assoc_for_sources`,{p_source_type:o,p_source_ids:p,...f?{p_target_type:f}:{}});return g?a(...s(g)):i({edges:(Array.isArray(h)?h:[]).map(TD)})}catch(e){return{ok:!1,error:o(e)}}},async add(e){try{n.requireUserId();let r=d(e.sourceType),o=d(e.targetType),u=iD(c(`sourceType`,r),l(`sourceId`,e.sourceId),c(`targetType`,o),l(`targetId`,e.targetId),e.orgId==null?null:l(`orgId`,e.orgId));if(u)return{ok:!1,error:u};if(r===`file`&&o===`conversation`){if(e.role!=null||e.position!=null||e.payloadKind!=null||e.payload!=null)return a(`invalid_argument`,`File conversation attachments support only the canonical role-less edge`);let{data:n,error:r}=await t.rpc(`conversation_file_add`,{p_conversation_id:e.targetId,p_file_id:e.sourceId,p_label:e.label,p_metadata:e.metadata??{},p_replace_metadata:e.replaceMetadata??!1});return r?a(...s(r)):!n||typeof n!=`string`?a(`internal`,`conversation_file_add returned no association id`):i({id:n})}if(e.replaceMetadata!=null)return a(`invalid_argument`,`replaceMetadata is supported only for file conversation attachments`);let{data:f,error:p}=await t.rpc(`assoc_add`,{p_source_type:r,p_source_id:e.sourceId,p_target_type:o,p_target_id:e.targetId,p_org_id:e.orgId,p_label:SD(r,o)??e.label,p_metadata:e.metadata??{},p_role:e.role,p_position:e.position,p_payload_kind:e.payloadKind,p_payload:e.payload??void 0});return p?a(...s(p)):!f||typeof f!=`string`?a(`internal`,`assoc_add returned no association id`):i({id:f})}catch(e){return{ok:!1,error:o(e)}}},async remove(e){try{n.requireUserId();let r=d(e.sourceType),o=d(e.targetType),u=iD(c(`sourceType`,r),l(`sourceId`,e.sourceId),c(`targetType`,o),l(`targetId`,e.targetId));if(u)return{ok:!1,error:u};if(r===`file`&&o===`conversation`){if(e.role!=null)return a(`invalid_argument`,`File conversation attachments support only the canonical role-less edge`);let{error:n}=await t.rpc(`conversation_file_remove`,{p_conversation_id:e.targetId,p_file_id:e.sourceId});return n?a(...s(n)):i(null)}let{error:f}=await t.rpc(`assoc_remove`,{p_source_type:r,p_source_id:e.sourceId,p_target_type:o,p_target_id:e.targetId,p_role:e.role});return f?a(...s(f)):i(null)}catch(e){return{ok:!1,error:o(e)}}},async setTargets(e){try{n.requireUserId();let r=d(e.sourceType),o=d(e.targetType),f=Array.from(new Set(e.targetIds)),p=iD(c(`sourceType`,r),l(`sourceId`,e.sourceId),c(`targetType`,o),u(`targetIds`,f),e.orgId==null?null:l(`orgId`,e.orgId));if(p)return{ok:!1,error:p};let{error:m}=await t.rpc(`assoc_set_targets`,{p_source_type:r,p_source_id:e.sourceId,p_target_type:o,p_target_ids:f,p_org_id:e.orgId,p_role:e.role});return m?a(...s(m)):i(null)}catch(e){return{ok:!1,error:o(e)}}},async addAgentResource(e){try{n.requireUserId();let r=d(e.sourceType),o=iD(l(`agentId`,e.agentId),c(`sourceType`,r),l(`sourceId`,e.sourceId));if(o)return{ok:!1,error:o};let{data:u,error:f}=await t.rpc(`agent_resource_add`,{p_agent_id:e.agentId,p_source_type:r,p_source_id:e.sourceId,p_label:e.label,p_metadata:e.metadata??{}});return f?a(...s(f)):!u||typeof u!=`string`?a(`internal`,`agent_resource_add returned no association id`):i({id:u})}catch(e){return{ok:!1,error:o(e)}}},async removeAgentResource(e){try{n.requireUserId();let r=d(e.sourceType),o=iD(l(`agentId`,e.agentId),c(`sourceType`,r),l(`sourceId`,e.sourceId));if(o)return{ok:!1,error:o};let{error:u}=await t.rpc(`agent_resource_remove`,{p_agent_id:e.agentId,p_source_type:r,p_source_id:e.sourceId});return u?a(...s(u)):i(null)}catch(e){return{ok:!1,error:o(e)}}},async removeForEntity(e,r){try{n.requireUserId();let o=d(e),u=iD(c(`type`,o),l(`id`,r));if(u)return{ok:!1,error:u};let{error:f}=await t.rpc(`assoc_remove_for_entity`,{p_type:o,p_id:r});return f?a(...s(f)):i(null)}catch(e){return{ok:!1,error:o(e)}}}}}function DD(e){return{id:e.id,orgId:e.organization_id??null,dimension:e.dimension,name:e.name,slug:e.slug??null,parentId:e.parent_id??null,isSystem:!!e.is_system,color:e.color??null,icon:e.icon??null,position:e.position??null,metadata:e.metadata&&typeof e.metadata==`object`&&!Array.isArray(e.metadata)?e.metadata:null}}function OD(e){let{dataSource:t,identity:n}=e,{ok:r,err:i,mapPgError:a,mapPgErrorPair:o}=e.rpc;return{async list(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`cat_list`,{p_dimension:e});return s?i(...o(s)):r({categories:(Array.isArray(a)?a:[]).map(DD)})}catch(e){return{ok:!1,error:a(e)}}},async create(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`cat_create`,{p_dimension:e.dimension,p_name:e.name,p_org_id:e.orgId,p_parent_id:e.parentId??void 0,p_color:e.color??void 0,p_icon:e.icon??void 0,p_slug:e.slug??void 0});return s?i(...o(s)):!a||typeof a!=`string`?i(`internal`,`cat_create returned no category id`):r({id:a})}catch(e){return{ok:!1,error:a(e)}}},async update(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`cat_update`,{p_category_id:e.id,p_name:e.name,p_slug:e.slug??void 0,p_color:e.color??void 0,p_icon:e.icon??void 0,p_position:e.position??void 0});return s?i(...o(s)):!a||typeof a!=`string`?i(`internal`,`cat_update returned no category id`):r({id:a})}catch(e){return{ok:!1,error:a(e)}}},async reparent(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`cat_reparent`,{p_category_id:e.id,p_parent_id:e.parentId??void 0});return s?i(...o(s)):!a||typeof a!=`string`?i(`internal`,`cat_reparent returned no category id`):r({id:a})}catch(e){return{ok:!1,error:a(e)}}},async delete(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`cat_delete`,{p_category_id:e});return s?i(...o(s)):!a||typeof a!=`string`?i(`internal`,`cat_delete returned no category id`):r({id:a})}catch(e){return{ok:!1,error:a(e)}}}}}function kD(e){return{entityType:e.entity_type,entityId:e.entity_id,isFavorite:e.is_favorite,isPinned:e.is_pinned,isHidden:e.is_hidden,lastViewedAt:e.last_viewed_at??null}}function AD(e){let{dataSource:t,identity:n}=e,{ok:r,err:i,mapPgError:a,mapPgErrorPair:o}=e.rpc,s={async setState(e){try{n.requireUserId();let{error:a}=await t.rpc(`ues_set`,{p_entity_type:e.entityType,p_entity_id:e.entityId,p_is_favorite:e.isFavorite,p_is_pinned:e.isPinned,p_is_hidden:e.isHidden});return a?i(...o(a)):r(null)}catch(e){return{ok:!1,error:a(e)}}},async setFavorite(e,t,n){return s.setState({entityType:e,entityId:t,isFavorite:n})},async setPinned(e,t,n){return s.setState({entityType:e,entityId:t,isPinned:n})},async setHidden(e,t,n){return s.setState({entityType:e,entityId:t,isHidden:n})},async list(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`ues_list`,{p_kind:e});return s?i(...o(s)):r({items:(Array.isArray(a)?a:[]).map(kD)})}catch(e){return{ok:!1,error:a(e)}}},async getBulk(e,s){try{n.requireUserId();let a=Array.from(new Set(s)),{data:c,error:l}=await t.rpc(`ues_get_bulk`,{p_entity_type:e,p_entity_ids:a});return l?i(...o(l)):r({items:(Array.isArray(c)?c:[]).map(t=>({entityType:e,entityId:t.entity_id,isFavorite:t.is_favorite,isPinned:t.is_pinned,isHidden:t.is_hidden,lastViewedAt:t.last_viewed_at??null}))})}catch(e){return{ok:!1,error:a(e)}}},async touch(e,s){try{n.requireUserId();let{error:a}=await t.rpc(`ues_touch`,{p_entity_type:e,p_entity_id:s});return a?i(...o(a)):r(null)}catch(e){return{ok:!1,error:a(e)}}}};return s}function jD(e){let{dataSource:t,registry:n,errorSink:r}=e,i=async e=>{let{data:n,error:r}=await t.rpc(`reference_search_candidates`,e);return r?{data:null,error:r}:{data:Array.isArray(n)?n:[],error:null}};async function a(e){let{token:t,search:a,limit:o=100}=e,s=n.getEntityInfo(t);if(s.listCandidates)try{return await s.listCandidates({...a===void 0?{}:{search:a},limit:o})}catch(e){let n=e instanceof Error?e.message:`Failed to load candidates`;return r({code:`candidate_override_failed`,message:`[listAssociationCandidates] override failed for "${t}": ${n}`,context:{token:t,detail:e}}),{ok:!1,error:n}}if(!s.canListCandidates||!s.titleColumn){let e=`Entity "${t}" has no title column — set one in platform.entity_types (or register a listCandidates override) before listing candidates`;return r({code:`unlistable_token`,message:`[listAssociationCandidates] ${e}`,context:{token:t}}),{ok:!1,error:e}}let c=a?.trim()||void 0,{data:l,error:u}=await i({p_token:t,...c===void 0?{}:{p_search:c},p_limit:o});return u?(r({code:`candidate_rpc_failed`,message:`[listAssociationCandidates] candidate RPC failed for "${t}": ${u.message}`,context:{token:t,detail:u}}),{ok:!1,error:u.message}):{ok:!0,data:l.map(e=>({id:e.id,title:e.title?.trim()||`Untitled`}))}}async function o(e){let{tokens:t,search:r,perTokenLimit:i=5,concurrency:o=6}=e,s=t??n.listableTokens();if(s.length===0)return{results:[],failures:[]};let c=[],l=[],u=0;async function d(){for(;u<s.length;){let e=s[u];if(u+=1,!e)continue;let t=await a({token:e,search:r,limit:i});if(t.ok)for(let n of t.data)c.push({...n,token:e});else l.push({token:e,error:t.error})}}await Promise.all(Array.from({length:Math.min(o,s.length)},d));let f=new Map(s.map((e,t)=>[e,t]));return c.sort((e,t)=>{let n=f.get(e.token)??0,r=f.get(t.token)??0;return n===r?e.title.localeCompare(t.title):n-r}),l.sort((e,t)=>(f.get(e.token)??0)-(f.get(t.token)??0)),{results:c,failures:l}}return{callReferenceSearchCandidates:i,listAssociationCandidates:a,searchCandidatesAcrossTokens:o}}var MD=200;function ND(e,t){return`${e}:${t}`}function PD(e,t){let{registry:n,errorSink:r}=e,i=new Map;return{get(e,t){return i.get(ND(e,t))??null},prime(e,t,n){let r=n.trim();r&&i.set(ND(e,t),r)},fallback(e){return`Untitled ${n.tryGetEntityInfo(e)?.label??e}`},async fetch(e,a){let o=new Map;if(a.length===0)return o;let s=n.tryGetEntityInfo(e),c=[];for(let t of a){let n=i.get(ND(e,t));n===void 0?c.push(t):o.set(t,n)}if(c.length===0||!s?.titleColumn)return o;for(let n=0;n<c.length;n+=MD){let a=c.slice(n,n+MD),{data:s,error:l}=await t.callReferenceSearchCandidates({p_token:e,p_ids:a,p_limit:a.length});if(l){r({code:`title_rpc_failed`,message:`[fetchEntityTitles] candidate RPC failed for "${e}": ${l.message}`,context:{token:e,chunkStart:n,chunkSize:a.length,detail:l}});continue}for(let t of s){let n=t.title?.trim();n&&(i.set(ND(e,t.id),n),o.set(t.id,n))}}return o}}}function FD(e,t){let{dataSource:n,registry:r,errorSink:i}=e;function a(e,t){if(!r.getEntityInfo(e).titleColumn){let n=`Entity "${e}" has no title_column in platform.entity_types — add one in the registry before ${t}`;return i({code:`missing_title_column`,message:`[entityRows] ${n}`,context:{token:e}}),{ok:!1,error:n}}return{ok:!0}}return{async createEntityRow(e,o){let s=a(e,`creating rows`);if(!s.ok)return s;let c=o.title.trim();if(!c)return{ok:!1,error:`Name is required`};let l=Object.keys(o.extraColumns??{});if(l.length>0){let t=`A new ${r.getEntityInfo(e).label} cannot be created here with ${l.join(`, `)}: the shared create door writes the name, the owner and the organization and nothing else. Create it with this feature's own create service, then attach it.`;return i({code:`entity_row_extra_columns_unsupported`,message:`[createEntityRow] extraColumns are not writable through entity_row_create for "${e}": ${l.join(`, `)}`,context:{token:e,extras:l}}),{ok:!1,error:t}}if(!o.orgId){let t=`Name the organization this ${r.getEntityInfo(e).label} belongs to.`;return i({code:`entity_row_missing_organization`,message:`[createEntityRow] no organization supplied for "${e}"; entity_row_create requires one`,context:{token:e}}),{ok:!1,error:t}}try{let{data:r,error:a}=await n.rpc(`entity_row_create`,{p_token:e,p_title:c,p_organization_id:o.orgId});if(a)return i({code:`entity_row_insert_failed`,message:`[createEntityRow] entity_row_create failed for "${e}": ${a.message}`,context:{token:e,detail:a}}),{ok:!1,error:a.message};let s=r;if(!s||typeof s.id!=`string`||!s.id)return i({code:`entity_row_insert_failed`,message:`[createEntityRow] entity_row_create returned no id for "${e}"`,context:{token:e,detail:r}}),{ok:!1,error:`The create door returned no record.`};let l=s.id,u=typeof s.title==`string`&&s.title?s.title:c;return t.prime(e,l,u),{ok:!0,data:{id:l,title:u}}}catch(t){let n=t instanceof Error?t.message:`Failed to create`;return i({code:`entity_row_insert_failed`,message:`[createEntityRow] exception for "${e}": ${n}`,context:{token:e,detail:t}}),{ok:!1,error:n}}},async renameEntityRow(e,r,o){let s=a(e,`renaming rows`);if(!s.ok)return s;let c=o.trim();if(!c)return{ok:!1,error:`Name is required`};try{let{error:a}=await n.rpc(`entity_row_rename`,{p_token:e,p_id:r,p_title:c});return a?(i({code:`entity_row_update_failed`,message:`[renameEntityRow] entity_row_rename failed for "${e}": ${a.message}`,context:{token:e,id:r,detail:a}}),{ok:!1,error:a.message}):(t.prime(e,r,c),{ok:!0})}catch(t){let n=t instanceof Error?t.message:`Failed to rename`;return i({code:`entity_row_update_failed`,message:`[renameEntityRow] exception for "${e}": ${n}`,context:{token:e,id:r,detail:t}}),{ok:!1,error:n}}}}}function ID(e,t){let n=e[0]??{code:`internal`,message:`unknown failure`};return{code:e.every(e=>e.code===n.code)?n.code:`internal`,message:`${e.length}/${t} association edge(s) failed: ${n.message}`,detail:e}}function LD(e){return[e.code,e.message,e.detail]}function RD(e){async function t(t){if(t.length===0)return sD({ids:[]});let n=await Promise.all(t.map(t=>e.add({sourceType:t.source.type,sourceId:t.source.id,targetType:t.target.type,targetId:t.target.id,...t.orgId===void 0?{}:{orgId:t.orgId},...t.label===void 0?{}:{label:t.label},...t.metadata===void 0?{}:{metadata:t.metadata},...t.role===void 0?{}:{role:t.role},...t.position===void 0?{}:{position:t.position}}))),r=[],i=[];for(let e of n)ZE(e)?i.push(e.error):r.push(e.data.id);return i.length>0?oD(...LD(ID(i,t.length))):sD({ids:r})}return{linkEdges:t,async linkOneToMany({source:e,targets:n,attrs:r}){return t(n.map(t=>({source:e,target:t,...r})))},async linkManyToOne({sources:e,target:n,attrs:r}){return t(e.map(e=>({source:e,target:n,...r})))},async replaceTargets(t){return e.setTargets({sourceType:t.source.type,sourceId:t.source.id,targetType:t.targetType,targetIds:t.targetIds,...t.orgId===void 0?{}:{orgId:t.orgId},...t.role===void 0?{}:{role:t.role}})},async linkCreated(e){return t(e.targets.map(t=>({source:e.created,target:t,...e.attrs})))},async unlinkEdges(t){if(t.length===0)return sD(null);let n=await Promise.all(t.map(t=>e.remove({sourceType:t.source.type,sourceId:t.source.id,targetType:t.target.type,targetId:t.target.id,...t.role===void 0?{}:{role:t.role}}))),r=[];for(let e of n)ZE(e)&&r.push(e.error);return r.length>0?oD(...LD(ID(r,t.length))):sD(null)}}}function zD(e){return{id:e.id,orgId:e.organization_id??null,entityType:e.entity_type,entityId:e.entity_id,parentId:e.parent_id??null,body:e.body,createdAt:e.created_at,updatedAt:e.updated_at,createdBy:e.created_by??null,author:{email:e.author_email??null,displayName:e.author_display_name??null,avatarUrl:e.author_avatar_url??null}}}function BD(e){let{dataSource:t,identity:n,guards:r}=e,{ok:i,err:a,mapPgError:o,mapPgErrorPair:s}=e.rpc;return{async listForEntity(e,c){try{n.requireUserId();let o=r.normalizeEntityToken(e),l=iD(r.checkToken(`entityType`,o),r.checkUuid(`entityId`,c));if(l)return{ok:!1,error:l};let{data:u,error:d}=await t.rpc(`cmt_list`,{p_entity_type:o,p_entity_id:c});return d?a(...s(d)):i({comments:(Array.isArray(u)?u:[]).map(zD)})}catch(e){return{ok:!1,error:o(e)}}},async add(e){try{n.requireUserId();let o=r.normalizeEntityToken(e.entityType),c=iD(r.checkToken(`entityType`,o),r.checkUuid(`entityId`,e.entityId),e.parentId==null?null:r.checkUuid(`parentId`,e.parentId));if(c)return{ok:!1,error:c};if(!e.body||e.body.trim().length===0)return a(`invalid_argument`,`comment body must be non-empty`);let{data:l,error:u}=await t.rpc(`cmt_add`,{p_entity_type:o,p_entity_id:e.entityId,p_body:e.body,p_parent_id:e.parentId??void 0,p_org_id:e.orgId??void 0});return u?a(...s(u)):!l||typeof l!=`string`?a(`internal`,`cmt_add returned no comment id`):i({id:l})}catch(e){return{ok:!1,error:o(e)}}},async edit(e,c){try{n.requireUserId();let o=r.checkUuid(`commentId`,e);if(o)return{ok:!1,error:o};if(!c||c.trim().length===0)return a(`invalid_argument`,`comment body must be non-empty`);let{error:l}=await t.rpc(`cmt_edit`,{p_id:e,p_body:c});return l?a(...s(l)):i(null)}catch(e){return{ok:!1,error:o(e)}}},async remove(e){try{n.requireUserId();let o=r.checkUuid(`commentId`,e);if(o)return{ok:!1,error:o};let{error:c}=await t.rpc(`cmt_delete`,{p_id:e});return c?a(...s(c)):i(null)}catch(e){return{ok:!1,error:o(e)}}}}}function VD(e,t){return`${e}:${t}`}var HD=Object.freeze({status:`idle`,edges:Object.freeze([]),fetchedAt:null,error:null}),UD=Object.freeze({status:`idle`,categories:Object.freeze([]),fetchedAt:null,error:null}),WD=Object.freeze({status:`idle`,comments:Object.freeze([]),fetchedAt:null,error:null});function GD(e){if(!e||typeof e.dataSource?.rpc!=`function`)throw Error(`@ai-matrx/associations: the REQUIRED dataSource port is missing (need an object with rpc(fn, args) — a supabase-js client satisfies it structurally). The package IS data operations; there is no degraded mode without one.`);if(typeof e.identity?.requireUserId!=`function`)throw Error(`@ai-matrx/associations: the REQUIRED identity port is missing (need requireUserId(): string that THROWS when unauthenticated). Identity never comes from a store import.`);let t=typeof e.errorSink==`function`?e.errorSink:QE(),n=bD(t,e.entityOverlay),r={dataSource:e.dataSource,identity:e.identity,errorSink:t,guards:aD(t),rpc:dD(t),registry:n},i=ED(r),a=OD(r),o=AD(r),s=jD(r),c=PD(r,s),l=FD(r,c),u=RD(i),d=BD(r),f=new Map,p=new Map,m=new Map,h=new Map,g=new Map,_=new Map,v=new Map,y=new Map,b=new Map;function x(e){let t=p.get(e);if(t)for(let e of[...t])e()}function S(e){let t=g.get(e);if(t)for(let e of[...t])e()}function C(e,t){f.set(e,t),x(e)}function w(e,t){h.set(e,t),S(e)}function T(e){let t=y.get(e);if(t)for(let e of[...t])e()}function E(e,t){v.set(e,t),T(e)}async function D(e,t,n={}){let r=n.force??!1;if(!e||!t)return;let a=VD(e,t),o=f.get(a);if(!r&&o?.status===`ready`)return;let s=m.get(a);if(!r&&o?.status===`loading`&&s)return s;let c=f.get(a);C(a,{status:`loading`,edges:c?.edges??[],fetchedAt:c?.fetchedAt??null,error:c?.error??null});let l=(async()=>{try{let n=await i.listForEntity(e,t);if(ZE(n)){let e=f.get(a);C(a,{status:`error`,edges:e?.edges??[],fetchedAt:e?.fetchedAt??null,error:n.error.message})}else C(a,{status:`ready`,edges:n.data.edges,fetchedAt:Date.now(),error:null})}finally{m.delete(a)}})();return m.set(a,l),l}async function O(e,t,n,r){await Promise.all([D(e,t,{force:!0}),D(n,r,{force:!0})])}async function k(e,t={}){let n=t.force??!1;if(!e)return;let r=h.get(e);if(!n&&r?.status===`ready`)return;let i=_.get(e);if(!n&&r?.status===`loading`&&i)return i;let o=h.get(e);w(e,{status:`loading`,categories:o?.categories??[],fetchedAt:o?.fetchedAt??null,error:null});let s=(async()=>{try{let t=await a.list(e);if(ZE(t)){let n=h.get(e);w(e,{status:`error`,categories:n?.categories??[],fetchedAt:n?.fetchedAt??null,error:t.error.message})}else w(e,{status:`ready`,categories:t.data.categories,fetchedAt:Date.now(),error:null})}finally{_.delete(e)}})();return _.set(e,s),s}async function A(e,t,n={}){let r=n.force??!1;if(!e||!t)return;let i=VD(e,t),a=v.get(i);if(!r&&a?.status===`ready`)return;let o=b.get(i);if(!r&&a?.status===`loading`&&o)return o;let s=v.get(i);E(i,{status:`loading`,comments:s?.comments??[],fetchedAt:s?.fetchedAt??null,error:s?.error??null});let c=(async()=>{try{let n=await d.listForEntity(e,t);if(ZE(n)){let e=v.get(i);E(i,{status:`error`,comments:e?.comments??[],fetchedAt:e?.fetchedAt??null,error:n.error.message})}else E(i,{status:`ready`,comments:n.data.comments,fetchedAt:Date.now(),error:null})}finally{b.delete(i)}})();return b.set(i,c),c}return{getEdges(e,t){return!e||!t?HD:f.get(VD(e,t))??HD},load:D,subscribe(e,t){let n=p.get(e);return n||(n=new Set,p.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&p.delete(e)}},async add(e){let t=await i.add(e);return ZE(t)?{ok:!1,error:t.error.message}:(await O(e.sourceType,e.sourceId,e.targetType,e.targetId),{ok:!0,id:t.data.id})},async remove(e){let t=await i.remove(e);return ZE(t)?{ok:!1,error:t.error.message}:(await O(e.sourceType,e.sourceId,e.targetType,e.targetId),{ok:!0})},async setTargets(e){let t=await i.setTargets(e);return ZE(t)?{ok:!1,error:t.error.message}:(await D(e.sourceType,e.sourceId,{force:!0}),{ok:!0})},invalidate(e,t){let n=VD(e,t);f.delete(n)&&x(n)},invalidateAll(){let e=[...f.keys()];f.clear();for(let t of e)x(t);let t=[...h.keys()];h.clear();for(let e of t)S(e);let n=[...v.keys()];v.clear();for(let e of n)T(e)},getCategories(e){return e?h.get(e)??UD:UD},loadCategories:k,subscribeCategories(e,t){let n=g.get(e);return n||(n=new Set,g.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&g.delete(e)}},async createCategory(e){let t=await a.create(e);if(ZE(t))return{ok:!1,error:t.error.message};let n={id:t.data.id,orgId:e.orgId,dimension:e.dimension,name:e.name,slug:e.slug??null,parentId:e.parentId??null,isSystem:!1,color:e.color??null,icon:e.icon??null,metadata:null,position:null},r=h.get(e.dimension),i=r?.categories??[];return i.some(e=>e.id===n.id)||w(e.dimension,{status:`ready`,categories:[...i,n],fetchedAt:r?.fetchedAt??Date.now(),error:null}),await k(e.dimension,{force:!0}),{ok:!0,id:t.data.id}},async updateCategory(e){let t=await a.update(e);return ZE(t)?{ok:!1,error:t.error.message}:(await k(e.dimension,{force:!0}),{ok:!0,id:t.data.id})},async reparentCategory(e){let t=await a.reparent(e);return ZE(t)?{ok:!1,error:t.error.message}:(await k(e.dimension,{force:!0}),{ok:!0,id:t.data.id})},async deleteCategory(e){let t=await a.delete(e.id);return ZE(t)?{ok:!1,error:t.error.message}:(await k(e.dimension,{force:!0}),{ok:!0,id:t.data.id})},getComments(e,t){return!e||!t?WD:v.get(VD(e,t))??WD},loadComments:A,subscribeComments(e,t){let n=y.get(e);return n||(n=new Set,y.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&y.delete(e)}},async addComment(e){let t=await d.add(e);return ZE(t)?{ok:!1,error:t.error.message}:(await A(e.entityType,e.entityId,{force:!0}),{ok:!0,id:t.data.id})},async editComment(e){let t=await d.edit(e.id,e.body);return ZE(t)?{ok:!1,error:t.error.message}:(await A(e.entityType,e.entityId,{force:!0}),{ok:!0,id:e.id})},async deleteComment(e){let t=await d.remove(e.id);return ZE(t)?{ok:!1,error:t.error.message}:(await A(e.entityType,e.entityId,{force:!0}),{ok:!0,id:e.id})},invalidateComments(e,t){let n=VD(e,t);v.delete(n)&&T(n)},titles:c,favorites:o,candidates:s,entityRows:l,helpers:u,registry:n,services:{associations:i,categories:a,comments:d},registerEntityOverlay:n.registerEntityOverlay,errorSink:t,dataSource:e.dataSource,identity:e.identity}}var KD=1e3,qD=5e5,JD=class extends Error{label;collected;expected;constructor(e,t,n,r){super(`readAllRows(${e}): ${r} — collected ${t}`+(n===null?``:` of ${n}`)+`. Refusing to return a partial list: a truncated read used for an existence/diff decision produces a confidently WRONG answer.`),this.label=e,this.collected=t,this.expected=n,this.name=`IncompleteReadError`}};async function YD(e,t){let n=t.pageSize??KD,r=t.maxRows??qD,i=[],a=null;for(let o=0;;o+=n){let s=await e({from:o,to:o+n-1});if(s.error)throw Error(`readAllRows(${t.label}): query failed — ${s.error.message}`);let c=s.data??[];if(i.push(...c),typeof s.count==`number`&&(a=s.count),a===null){if(c.length<n)return i;throw new JD(t.label,i.length,null,`the query returned no count — pass { count: "exact" } to select() so completeness can be verified`)}if(i.length>=a)break;if(c.length===0)throw new JD(t.label,i.length,a,`a page came back empty before the declared total was reached`);if(i.length>r)throw new JD(t.label,i.length,a,`exceeded the ${r}-row safety limit`)}if(i.length!==a)throw new JD(t.label,i.length,a,`final row count does not match the total the server reported`);return i}function XD(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function ZD(e){return typeof e==`string`?e:null}function QD(e){return e===!0}function $D(e){return typeof e==`boolean`?e:null}function eO(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}function tO(e){return e===`builtin`?`builtin`:`user`}function nO(e){if(!XD(e))return null;let t=e.depth_budget,n=e.member_count;return{mode:ZD(e.mode)??`supervisor`,tagline:ZD(e.tagline),depthBudget:typeof t==`number`&&Number.isFinite(t)&&t>0?t:null,memberCount:typeof n==`number`&&Number.isFinite(n)&&n>=0?n:0,memberTitles:eO(e.member_titles)}}function rO(e){if(!XD(e))return null;let t=ZD(e.id);return t?{id:BE(t),name:ZD(e.name),description:ZD(e.description),category:ZD(e.category),tags:eO(e.tags),agentType:tO(e.agent_type),modelId:ZD(e.model_id),isActive:QD(e.is_active),isArchived:QD(e.is_archived),isFavorite:!1,createdBy:ZD(e.created_by),organizationId:ZD(e.organization_id),taskId:ZD(e.task_id),sourceAgentId:ZD(e.source_agent_id),createdAt:ZD(e.created_at),updatedAt:ZD(e.updated_at),isOwner:$D(e.is_owner),accessLevel:ZD(e.access_level),sharedByEmail:ZD(e.shared_by_email),orchestra:nO(e.orchestra),...`offering_id`in e?{offeringId:ZD(e.offering_id)}:{}}:null}var iO=1e3,aO=class extends Error{name=`AgentCatalogReadError`;source;constructor(e,t){super(`${e}: ${t}`),this.source=e}};function oO(e){return e.code?`${e.message} (${e.code})`:e.message}async function sO(e){let t=await YD(({from:t,to:n})=>Promise.resolve(e.rpc(`agx_get_list_full`,{},{count:`exact`}).order(`id`,{ascending:!0}).range(t,n)).then(e=>({data:Array.isArray(e.data)?e.data:null,error:e.error,count:e.count??null})),{label:`agx_get_list_full`,pageSize:iO}),n=[],r=0;for(let e of t){let t=rO(e);t?n.push(t):r+=1}if(r>0)throw new aO(`agx_get_list_full`,`${r} row(s) came back without an id and were refused. A row that cannot be identified cannot be selected, so the catalogue is not trustworthy — check the RPC's return shape.`);return n}async function cO(e,t){let n=t.query.trim();if(!n)return{ids:[],rows:[]};let{data:r,error:i}=await e.rpc(`agx_search`,{p_query:n,p_deep:t.deep??!1,p_limit:t.limit??50,p_offset:0});if(i)throw new aO(`agx_search`,oO(i));let a=[];if(Array.isArray(r))for(let e of r){let t=rO(e);t&&a.push(t)}return{ids:a.map(e=>e.id),rows:a}}async function lO(e,t){try{let n=(await cO(e,{query:t,limit:5})).rows.find(e=>e.id===t);if(n)return n}catch{}let{data:n,error:r}=await e.rpc(`agx_resolve_agent_address`,{p_ids:[t]});if(r)throw new aO(`agx_resolve_agent_address`,oO(r));if(!Array.isArray(n))return null;for(let e of n){if(typeof e!=`object`||!e)continue;let n=e;if(n.agent_id!==t)continue;let r=n.agent_name;return rO({id:t,name:typeof r==`string`?r:null,agent_type:n.agent_type,is_active:!0})}return null}var uO=`agent`;async function dO(e,t,n){if(t.length===0)return t;let r=null;try{let i=await e.getBulk(uO,t.map(e=>e.id));i.ok?r=new Set(i.data.items.filter(e=>e.isFavorite).map(e=>e.entityId)):n(i.error.message)}catch(e){n(e instanceof Error?e.message:String(e))}return t.map(e=>{let t=r?.has(e.id)??!1;return e.isFavorite===t?e:{...e,isFavorite:t}})}async function fO(e,t,n){let r=await e.setFavorite(uO,t,n);if(!r.ok)throw new aO(`user_entity_state (ues_set)`,r.error.code?`${r.error.message} (${r.error.code})`:r.error.message)}var pO=`ai-matrx.agents.catalog.default-row:`,mO=class extends Error{name=`MandateDefaultRowError`;mandateKey;remedy;constructor(e){super(`${e.message} — ${e.remedy}`),this.mandateKey=e.mandateKey,this.remedy=e.remedy}};function hO(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function gO(e,t){if(!hO(t))throw new mO({mandateKey:e,message:`mandate "${e}": the resolution endpoint did not return an object`,remedy:`check that the transport points at the AI Matrx server and that GET /mandates/{key}/resolution is reachable`});let n=t.agent_id,r=t.definition_agent_id,i=t.provenance,a=t.holder_type;return{mandateKey:typeof t.mandate_key==`string`?t.mandate_key:e,holderType:typeof a==`string`?a:`agent`,agentId:typeof n==`string`?n:null,isVersion:t.is_version===!0,definitionAgentId:typeof r==`string`?r:null,provenance:typeof i==`string`?i:`system`}}async function _O(e,t){let n=`/mandates/${encodeURIComponent(t)}/resolution`,r=await e.fetch(n,{method:`GET`,headers:{Accept:`application/json`}});if(!r.ok)throw new mO({mandateKey:t,message:`mandate "${t}": the server refused to resolve it (HTTP ${r.status})`,remedy:r.status===404?`the mandate does not exist — check the key this picker was given`:`check the caller's session and organization context, then retry`});return gO(t,await r.json())}function vO(){let e=new Map;return{getItem:t=>e.get(t)??null,setItem:(t,n)=>{e.set(t,n)},removeItem:t=>{e.delete(t)}}}function yO(){try{let e=globalThis.localStorage;if(e){let t=`${pO}__probe__`;return e.setItem(t,`1`),e.removeItem(t),e}}catch{}return vO()}function bO(e,t){try{if(!t)return null;let n=JSON.parse(t);if(!hO(n))return null;let r=n.holderId,i=n.holderName;if(typeof r!=`string`||typeof i!=`string`)return null;let a=n.holderDescription,o=n.provenance,s=n.at;return{mandateKey:e,holderId:r,holderName:i,holderDescription:typeof a==`string`?a:null,provenance:typeof o==`string`?o:`system`,at:typeof s==`number`?s:0}}catch{return null}}async function xO(e,t){let n;try{n=await e.getItem(pO+t)}catch{return null}return bO(t,n)}async function SO(e,t){try{await e.setItem(pO+t.mandateKey,JSON.stringify(t))}catch{}}function CO(e){return{id:VE(e.mandateKey),name:e.holderName,description:e.holderDescription,category:null,tags:[],agentType:`builtin`,modelId:null,isActive:!0,isArchived:!1,isFavorite:!1,createdBy:null,organizationId:null,taskId:null,sourceAgentId:e.holderId,createdAt:null,updatedAt:null,isOwner:null,accessLevel:null,sharedByEmail:null,orchestra:null,mandateKey:e.mandateKey}}function wO(e,t){return e?e.holderId===t.holderId?e.holderName===t.holderName?null:`The default agent for "${t.mandateKey}" was renamed: "${e.holderName}" is now "${t.holderName}".`:`The default agent for "${t.mandateKey}" changed: this screen was showing "${e.holderName}", and the platform now resolves it to "${t.holderName}". The list below is correct; anything that cached the old name is not.`:null}async function TO(e){let{mandateKey:t,transport:n,client:r,storage:i,lookupRow:a}=e,o=await xO(i,t),s=await _O(n,t);if(s.holderType!==`agent`)throw new mO({mandateKey:t,message:`mandate "${t}": the ${s.provenance} rung names a ${s.holderType} Holder, and an agent picker can only offer an agent`,remedy:`rebind the ${s.provenance} rung to an agent, or drop defaultMandateKey from this picker`});let c=s.definitionAgentId??s.agentId;if(!c)throw new mO({mandateKey:t,message:`mandate "${t}": the server resolved it without naming an agent`,remedy:`bind the ${s.provenance} rung to an agent`});let l=await a(c);if(l||=await lO(r,c)??void 0,!l||!l.name)throw new mO({mandateKey:t,message:`mandate "${t}": its Holder resolved, but nothing this caller can read could name that agent`,remedy:`grant this user access to the Holder, or make it a platform agent — the picker will not print a placeholder name in its place`});let u={mandateKey:t,holderId:c,holderName:l.name,holderDescription:l.description,provenance:s.provenance,at:Date.now()},d=wO(o,u);return await SO(i,u),{resolved:u,row:CO(u),drift:d}}var EO=Symbol.for(`ai-matrx.agents.catalog`);function DO(){let e=globalThis,t=e[EO];return t||(t={catalogs:new Map,listInFlight:new Map,listFetchedAt:new Map,defaultRows:new Map},e[EO]=t),t}var OO=`00000000-0000-0000-0000-000000000000`,kO=`agx_this_function_does_not_exist_probe`,AO={agx_get_list_full:{},agx_search:{p_query:`__probe__`,p_deep:!1,p_limit:1,p_offset:0},agx_resolve_agent_address:{p_ids:[OO]},ues_get_bulk:{p_entity_type:`agent`,p_entity_ids:[OO]}};function jO(e){if(!e||typeof e!=`object`)return!1;let t=e.code;return t===`PGRST202`||t===`42883`}async function MO(e,t={}){let{selfTest:n=!1,throwOnViolation:r=!0}=t,i=Object.keys(AO);n&&i.push(kO);let a=[],o=[],s=[],c=null;for(let t of i){let n=AO[t]??{};try{let{data:r,error:i}=await e.rpc(t,n);t===`agx_get_list_full`&&i==null&&(c=NO(r)),i==null?s.push(t):jO(i)?a.push(t):s.push(t)}catch(e){o.push({fn:t,error:e})}}if(n){let e=a.includes(kO),t=a.indexOf(kO);t>=0&&a.splice(t,1);let n=s.indexOf(kO);if(n>=0&&s.splice(n,1),!e)throw Error(`assertAgentCatalogSchema self-test FAILED: the fabricated function "${kO}" did not come back as missing. This probe cannot currently fail, so its green result proves nothing — the client is swallowing or faking errors.`)}if(o.length>0)throw Error(`assertAgentCatalogSchema could not complete: ${o.length} probe call(s) failed to reach the database (${o.map(e=>e.fn).join(`, `)}). This is NOT a schema verdict — fix connectivity and re-run.`);let l=a.length===0,u={ok:l,missing:a,unreachable:o,answered:s,orchestraColumn:c};if(!l&&r)throw Error(`DEMANDED SCHEMA VIOLATION: the database this client points at cannot answer ${a.length} demanded function(s): ${a.join(`, `)}. @ai-matrx/agents/catalog cannot render a correct picker against it — point the client at Matrx Main, or apply the agx_* migrations.`);return u}function NO(e){return!Array.isArray(e)||e.length===0?null:e.some(e=>typeof e==`object`&&!!e&&Object.prototype.hasOwnProperty.call(e,`orchestra`))}var PO=9e5,FO=144e5;function IO(){let e=!1;return t=>{e||(e=!0,console.error("[@ai-matrx/agents/catalog] no errorSink is bound, so failures are only reaching the console. Pass `errorSink` to createAgentCatalog to route them into your diagnostics surface.")),console.error(`[@ai-matrx/agents/catalog] ${t.code}: ${t.message}`,{...t.context??{}})}}function LO(e){return e instanceof Error?e.message:String(e)}function RO(e){if(!e||typeof e!=`object`)throw new YE({code:`missing_config`,message:`createAgentCatalog was called without a config object`,remedy:`pass { client, identity }`});if(!e.client||typeof e.client.rpc!=`function`)throw new YE({code:`missing_client`,message:`createAgentCatalog needs a Supabase client — it IS the catalogue read`,remedy:"pass `client` (a supabase-js client, or anything with rpc() and schema().from())"});if(!e.identity||typeof e.identity.requireUserId!=`function`)throw new YE({code:`missing_identity`,message:`createAgentCatalog needs to know who is asking`,remedy:"pass `identity: { requireUserId() }` — never a silent anonymous read"});let t=e.defaults?.archiveFilter;if(t!==void 0&&!qE(t))throw new YE({code:`invalid_archive_default`,message:`defaults.archiveFilter was ${JSON.stringify(t)}, which is not one of the three states of the platform archive filter`,remedy:`pass "active" (hide archived), "both" (show all) or "archived" (archived only)`});let n={...JE,...t?{archFilter:t}:{}},r=e.catalogId??`default`,i=e.client,a=e.identity,o=e.errorSink??IO(),s=e.notifier,c=e.storage??yO(),l=e.transport,u=e.favorites??GD({dataSource:i,identity:a,errorSink:o}).favorites;function d(e){o({code:`favorite_read_failed`,message:`your starred agents could not be read (${e}); every star is shown unset until the next catalogue load`,context:{catalogId:r}})}let f={...XE,...e.labels??{}},p=DO();p.catalogs.has(r)&&o({code:`catalog_replaced`,message:`a second agent catalog was created under id "${r}" and has REPLACED the first. Two catalogs with one id share a freshness stamp and an in-flight promise; give each one its own \`catalogId\`.`});let m={rows:[],byId:{},status:`idle`,error:null,consumers:{},defaultRows:{}},h=new Set;function g(e){m=e;for(let e of h)e()}function _(e){if(e.length===0)return;let t={...m.byId};for(let n of e)t[n.id]=n;g({...m,byId:t,rows:Object.values(t)})}function v(e){let t={};for(let n of e)t[n.id]=n;g({...m,byId:t,rows:Object.values(t)})}let y=!1;function b(){if(typeof a.getUserId==`function`)return a.getUserId();try{return a.requireUserId()}catch(e){return y||(y=!0,o({code:`identity_unavailable`,message:`identity.requireUserId() threw, so the picker is treating this session as signed out and opening on the public catalogue. Favoriting is unavailable until a session exists.`,context:{detail:LO(e)}})),null}}function x(){let e=p.listFetchedAt.get(r);return e!==void 0&&Date.now()-e<PO}function S(){let e=p.listFetchedAt.get(r);return e===void 0||Date.now()-e>FO}async function C(){if(b()===null){m.rows.length>0&&v([]),g({...m,status:`succeeded`,error:null});return}g({...m,status:`loading`,error:null});try{v(await dO(u,await sO(i),d)),g({...m,status:`succeeded`,error:null}),p.listFetchedAt.set(r,Date.now())}catch(e){let t=LO(e);throw g({...m,status:`failed`,error:t}),o({code:`list_read_failed`,message:`the agent catalogue could not be read: ${t}`,context:{catalogId:r}}),e}}async function w(e){if(!(e?.force??!1)&&x())return;let t=p.listInFlight.get(r);if(t)return t;let n=C().finally(()=>{p.listInFlight.get(r)===n&&p.listInFlight.delete(r)});return p.listInFlight.set(r,n),n}function T(e){return m.consumers[e]??n}function E(e,t){g({...m,consumers:{...m.consumers,[e]:t}})}function D(e,t){m.consumers[e]||E(e,{...n,...t??{}})}function O(e){if(!m.consumers[e])return;let t={...m.consumers};delete t[e],g({...m,consumers:t})}function k(e,t){E(e,{...m.consumers[e]??{...n},...t,listPage:1,sharedPage:1})}function A(e,t,n){let r=m.consumers[e];r&&E(e,t===`list`?{...r,listPage:n}:{...r,sharedPage:n})}function j(e,t){let r=m.consumers[e]??{...n},i={...r};t.matchedIds!==void 0&&(i.serverMatchedIds=t.matchedIds),t.isSearching!==void 0&&(i.isServerSearching=t.isSearching),(i.serverMatchedIds!==r.serverMatchedIds||i.isServerSearching!==r.isServerSearching)&&E(e,i)}function M(e){m.consumers[e]&&E(e,{...n})}async function N(e,t=!1){let n=await cO(i,{query:e,deep:t});return _(await dO(u,n.rows,d)),n.ids}async function P(e,t){let n=m.byId[e];if(!n){o({code:`favorite_unknown_agent`,message:`cannot favorite ${e}: it is not in this catalogue`});return}_([{...n,isFavorite:t}]);try{await fO(u,e,t)}catch(r){throw _([n]),o({code:`favorite_write_failed`,message:`the favorite could not be saved: ${LO(r)}`,context:{agentId:e,isFavorite:t}}),s?.({level:`error`,title:`Favorite not saved`,message:`The star was put back because the change could not be saved. Check your connection and try again.`}),r}}function F(e,t){g({...m,defaultRows:{...m.defaultRows,[e]:t}})}let I=new Set;function L(e){if(!e||I.has(e))return;let t=m.defaultRows[e];if(!t||t.error){if(!l)throw new YE({code:`missing_transport`,message:`a picker asked for the default row of mandate "${e}", but this catalog has no transport`,remedy:"pass `transport` (createMatrxTransport from @ai-matrx/agents/matrx) to createAgentCatalog — clients never walk the mandate ladder themselves, they ask the server"});I.add(e),F(e,{mandateKey:e,row:null,resolved:null,loading:!0,drift:null,error:null}),(async()=>{try{let t=await TO({mandateKey:e,transport:l,client:i,storage:c,errorSink:o,lookupRow:async e=>{let t=m.byId[e];if(t)return t;let n=p.listInFlight.get(r);if(n)return await n.catch(()=>void 0),m.byId[e]}});DO().defaultRows.set(`${r}::${e}`,t.resolved),F(e,{mandateKey:e,row:t.row,resolved:t.resolved,loading:!1,drift:t.drift,error:null}),t.drift&&(o({code:`default_row_drift`,message:t.drift,context:{mandateKey:e,holderId:t.resolved.holderId}}),s?.({level:`warning`,title:`The default agent changed`,message:t.drift}))}catch(t){let n=t instanceof mO?t.message:LO(t);F(e,{mandateKey:e,row:null,resolved:null,loading:!1,drift:null,error:n}),o({code:`default_row_unresolved`,message:n,context:{mandateKey:e}})}finally{I.delete(e)}})()}}function ee(e){return m.defaultRows[e]}function te(e){let t=m.defaultRows[e];t&&t.drift&&F(e,{...t,drift:null})}function ne(e){if(!e||I.has(e))return;let{[e]:t,...n}=m.defaultRows;g({...m,defaultRows:n}),L(e)}let R={catalogId:r,labels:f,errorSink:o,notifier:s,canResolveMandates:l!==void 0,consumerDefaults:n,getState:()=>m,subscribe:e=>(h.add(e),()=>{h.delete(e)}),getAgent:e=>m.byId[e],getUserIdOrNull:b,ensureLoaded:w,isFresh:x,isStale:S,getConsumer:T,registerConsumer:D,unregisterConsumer:O,setConsumerFilter:k,setConsumerPage:A,setConsumerServerSearch:j,resetConsumerFilters:M,searchServer:N,setFavorite:P,ensureDefaultRow:L,getDefaultRow:ee,dismissDefaultRowDrift:te,retryDefaultRow:ne,assertSchema:e=>MO(i,e)};return p.catalogs.set(r,R),R}var zO={supervisor:`supervisor`,sequential:`in order`,parallel:`together`,dag:`custom flow`};function BO(e){return zO[e]??e}function VO(e){let t=e.memberCount;return`Orchestra · ${BO(e.mode)} · ${t} ${t===1?`member`:`members`}`}function HO(e){let t=e.depthBudget;return typeof t!=`number`||t<=0?null:`Team members can call helpers up to ${t} ${t===1?`level`:`levels`} deep`}function UO(e,t=3){let n=e.memberTitles;if(n.length===0)return null;let r=n.slice(0,t),i=n.length-r.length;return`Delegates to: ${r.join(`, `)}${i>0?` +${i} more`:``}`}function WO(e,t){switch(e){case`system`:return t.emptySystem;case`shared`:return t.emptyShared;default:return t.emptyDefault}}function GO(e){return e.userId?e.agentsLoaded?e.ownedCount===0:!1:!0}function KO(e){return GE.find(t=>t.value===e)?.chip??`Archive`}function qO(e){return GE.find(t=>t.value===e)?.label??`Hide archived`}function JO(e){return`Archive filter: ${qO(e).toLowerCase()}. Click for ${qO(KE(e)).toLowerCase()}`}function YO(e){let{count:t,archFilter:n,archivedHiddenCount:r}=e;if(n===`archived`)return`${t} archived shown`;let i=`${t} agent${t===1?``:`s`}`;return n===`both`?`${i} · archived shown`:r>0?`${i} · ${r} archived hidden`:i}function XO(e,t){let n=t.trim().toLowerCase();if(!n)return 0;let r=0,i=(e.name??``).toLowerCase(),a=(e.description??``).toLowerCase();i===n?r+=1e4:i.startsWith(n)?r+=5e3:ZO(i,n)?r+=3e3:i.includes(n)&&(r+=2e3),a===n?r+=1e3:a.includes(n)&&(r+=500),e.category?.toLowerCase().includes(n)&&(r+=300),e.tags?.some(e=>e.toLowerCase().includes(n))&&(r+=300),e.modelId?.toLowerCase().includes(n)&&(r+=100),e.agentType?.toLowerCase().includes(n)&&(r+=100),e.outputFormat?.toLowerCase().includes(n)&&(r+=100);let o=e.id.toLowerCase();if(o===n?r+=1e5:o.includes(n)&&(r+=5e3),e.sharedByEmail?.toLowerCase().includes(n)&&(r+=200),r===0&&n.includes(` `)){let t=n.split(/\s+/).filter(Boolean),o=0,s=0;for(let n of t){let t=i.includes(n);(t||a.includes(n)||(e.category?.toLowerCase().includes(n)??!1)||(e.tags?.some(e=>e.toLowerCase().includes(n))??!1))&&(o+=1,s+=t?400:100)}o===t.length&&(r+=s)}return r}function ZO(e,t){let n=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);return RegExp(`\\b${n}\\b`).test(e)}function QO(e,t){return XO(e,t)>0}function $O(e){let t,n,r=!1;return i=>((!r||t!==i)&&(n=e(i),t=i,r=!0),n)}function ek(e){let t,n,r,i=!1;return(a,o)=>((!i||t!==a||n!==o)&&(r=e(a,o),t=a,n=o,i=!0),r)}function tk(e,t){let n=e.id??``,r=t.id??``;return n<r?-1:+(n>r)}function nk(e,t,n){let r=rk(e,t,n);return!Number.isFinite(r)||r===0?tk(e,t):r}function rk(e,t,n){switch(n){case`name-asc`:return(e.name??``).localeCompare(t.name??``);case`name-desc`:return(t.name??``).localeCompare(e.name??``);case`created-desc`:return+new Date(t.createdAt??0)-new Date(e.createdAt??0);case`category-asc`:return(e.category??``).localeCompare(t.category??``);default:return+new Date(t.updatedAt??0)-new Date(e.updatedAt??0)}}var ik=$O(e=>{let t=new Set;for(let n of e)n.agentType===`user`&&n.category&&t.add(n.category);return Array.from(t).sort()}),ak=$O(e=>{let t=new Set;for(let n of e)n.agentType===`builtin`&&n.category&&t.add(n.category);return Array.from(t).sort()}),ok=$O(e=>{let t=new Set;for(let n of e)n.agentType===`user`&&n.tags?.forEach(e=>t.add(e));return Array.from(t).sort()}),sk=$O(e=>{let t=new Set;for(let n of e)n.agentType===`builtin`&&n.tags?.forEach(e=>t.add(e));return Array.from(t).sort()}),ck=$O(e=>e.filter(e=>e.agentType===`user`)),lk=$O(e=>e.filter(e=>e.agentType===`builtin`));function uk(e,t){let{searchTerm:n,sortBy:r,favFilter:i,favoritesFirst:a}=t;if(n){let i=new Map;e.forEach(e=>{i.set(e.id,XO(e,n))});let a=new Map;return t.serverMatchedIds.forEach((e,t)=>a.set(e,t)),[...e].sort((e,t)=>{let n=i.get(e.id)??0,o=i.get(t.id)??0;if(o!==n)return o-n;if(n===0){let n=a.get(e.id),r=a.get(t.id);if(n!==void 0&&r!==void 0&&n!==r)return n-r}return nk(e,t,r)})}return[...e].sort((e,t)=>{if(a&&i===`all`){let n=+!!e.isFavorite,r=+!!t.isFavorite;if(r!==n)return r-n}return nk(e,t,r)})}function dk(e,t){let{searchTerm:n,includedCats:r,includedTags:i,favFilter:a,archFilter:o,accessFilter:s,tab:c}=t,l=new Set(t.serverMatchedIds);return uk(e.filter(e=>{if(c===`mine`&&e.isOwner!==!0||c===`shared`&&(e.isOwner!==!1||e.accessLevel==null)||!mk(e,o)||a===`yes`&&!e.isFavorite||a===`no`&&e.isFavorite||s===`owned`&&e.isOwner!==!0||s===`shared`&&e.isOwner!==!1||s===`editable`&&e.accessLevel!==`owner`&&e.accessLevel!==`admin`&&e.accessLevel!==`editor`)return!1;if(r.length>0){let t=e.category;if(!t){if(!r.includes(`__none__`))return!1}else if(!r.includes(t))return!1}if(i.length>0){if(!e.tags?.length){if(!i.includes(`__none__`))return!1}else if(!e.tags?.some(e=>i.includes(e)))return!1}return!(n&&!QO(e,n)&&!l.has(e.id))}),t)}function fk(e,t){let{searchTerm:n,favFilter:r,archFilter:i,includedCats:a,includedTags:o}=t,s=new Set(t.serverMatchedIds);return uk(e.filter(e=>{if(!mk(e,i)||r===`yes`&&!e.isFavorite||r===`no`&&e.isFavorite)return!1;if(a.length>0){let t=e.category;if(!t){if(!a.includes(`__none__`))return!1}else if(!a.includes(t))return!1}if(o.length>0){if(!e.tags?.length){if(!o.includes(`__none__`))return!1}else if(!e.tags?.some(e=>o.includes(e)))return!1}return!(n&&!QO(e,n)&&!s.has(e.id))}),t)}var pk=(e=!1)=>ek((t,n)=>{let r=ck(t),i=lk(t);return n.tab===`system`?fk(i,n):e&&n.tab===`all`?[...dk(r,n),...fk(i,n)]:dk(r,n)});function mk(e,t){return t===`active`?!e.isArchived:t!==`archived`||!!e.isArchived}function hk(e,t){let n=0;for(let r of e)r.agentType===`builtin`&&mk(r,t)&&(n+=1);return n}function gk(e,t,n){let r=0;for(let i of e)i.agentType===`user`&&mk(i,t)&&n(i)&&(r+=1);return r}var _k=e=>e.isOwner===!0,vk=e=>e.isOwner===!1&&e.accessLevel!=null,yk=()=>!0,bk=ek((e,t)=>({mine:gk(e,t,_k),shared:gk(e,t,vk),all:gk(e,t,yk),system:hk(e,t)})),xk=(0,_.createContext)(null);function Sk({catalog:e,platform:t,children:n,...r}){let i=(0,_.useMemo)(()=>({catalog:e,platform:t,...r}),[e,t,r.navigate,r.LinkComponent,r.renderModelRef,r.openPeek,r.popoverContainer]);return(0,j.jsx)(xk.Provider,{value:i,children:n})}function Ck(){let e=(0,_.useContext)(xk);if(!e)throw Error(`@ai-matrx/agents/catalog: no <AgentCatalogProvider> is mounted above this component. Create the catalog once with createAgentCatalog({ client, identity }) and mount <AgentCatalogProvider catalog={catalog}> at the top of your tree.`);return e}function wk(){return Ck().catalog}function Tk(){let e=Ck(),t=e.navigate,n=e.platform.navigate;return{navigate:(0,_.useCallback)(e=>{if(t){t(e);return}n(e)},[t,n]),LinkComponent:e.LinkComponent??e.platform.LinkComponent,renderModelRef:e.renderModelRef??e.platform.renderModelRef,openPeek:e.openPeek,popoverContainer:e.popoverContainer}}function Ek(e){let t=wk(),n=(0,_.useCallback)(()=>e(t.getState()),[t,e]);return(0,_.useSyncExternalStore)(t.subscribe,n,n)}function Dk(){return Ek(Ok)}var Ok=e=>e.rows,kk={navigate:e=>{typeof window<`u`&&window.location.assign(e)},LinkComponent:({children:e,...t})=>(0,j.jsx)(`a`,{...t,children:e}),renderModelRef:({modelId:e,className:t})=>(0,j.jsx)(`span`,{className:t,children:e})};function Ak({catalog:e,children:t,...n}){let r=(0,_.useMemo)(()=>kk,[]);return(0,j.jsx)(Sk,{catalog:e,platform:r,...n,children:t})}var jk=250,Mk=2;function Nk(e,t){let n=wk(),r=n.consumerDefaults,i=Ek((0,_.useCallback)(t=>t.consumers[e]??r,[e,r])),a=(0,_.useRef)(t);a.current=t,(0,_.useEffect)(()=>{let t=a.current,r={...t?.initialTab?{tab:t.initialTab}:{},...t?.initialArchFilter?{archFilter:t.initialArchFilter}:{}};return n.registerConsumer(e,Object.keys(r).length>0?r:void 0),()=>{a.current?.unregisterOnUnmount&&n.unregisterConsumer(e)}},[e,n]);let o=(0,_.useCallback)(t=>n.setConsumerFilter(e,{searchTerm:t}),[e,n]),s=(0,_.useCallback)(t=>n.setConsumerFilter(e,{deepSearch:t}),[e,n]),c=(0,_.useCallback)(t=>n.setConsumerFilter(e,{sortBy:t}),[e,n]),l=(0,_.useCallback)(t=>n.setConsumerFilter(e,{tab:t}),[e,n]),u=(0,_.useCallback)(t=>n.setConsumerFilter(e,{favFilter:t}),[e,n]),d=(0,_.useCallback)(t=>n.setConsumerFilter(e,{archFilter:t}),[e,n]),f=(0,_.useCallback)(t=>n.setConsumerFilter(e,{accessFilter:t}),[e,n]),p=(0,_.useCallback)(t=>{let r=n.getConsumer(e).includedCats,i=r.includes(t)?r.filter(e=>e!==t):[...r,t];n.setConsumerFilter(e,{includedCats:i})},[e,n]),m=(0,_.useCallback)(t=>{let r=n.getConsumer(e).includedTags,i=r.includes(t)?r.filter(e=>e!==t):[...r,t];n.setConsumerFilter(e,{includedTags:i})},[e,n]),h=(0,_.useCallback)(t=>n.setConsumerFilter(e,{includedCats:t}),[e,n]),g=(0,_.useCallback)(t=>n.setConsumerFilter(e,{includedTags:t}),[e,n]),v=(0,_.useCallback)(()=>n.setConsumerFilter(e,{favoritesFirst:!n.getConsumer(e).favoritesFirst}),[e,n]),y=(0,_.useCallback)(()=>n.setConsumerPage(e,`list`,n.getConsumer(e).listPage+1),[e,n]),b=(0,_.useCallback)(()=>n.setConsumerPage(e,`shared`,n.getConsumer(e).sharedPage+1),[e,n]),x=(0,_.useCallback)(()=>n.resetConsumerFilters(e),[e,n]),[S,C]=(0,_.useState)(!1),[w,T]=(0,_.useState)(null),E=(0,_.useRef)(0),D=i.searchTerm,O=i.deepSearch;(0,_.useEffect)(()=>{let e=D.trim();if(e.length<Mk){C(!1),T(null);return}let t=++E.current;C(!0);let r=setTimeout(()=>{n.searchServer(e,O).then(e=>{t===E.current&&(T(e),C(!1))}).catch(r=>{t===E.current&&(n.errorSink({code:`server_search_failed`,message:`agent search failed: ${r instanceof Error?r.message:String(r)}`,context:{query:e,deep:O}}),C(!1))})},jk);return()=>clearTimeout(r)},[D,O,n]),(0,_.useEffect)(()=>{n.setConsumerServerSearch(e,{matchedIds:w??[],isSearching:S})},[e,n,w,S]);let k=i.searchTerm!==``||i.includedCats.length>0||i.includedTags.length>0||i.favFilter!==`all`||i.archFilter!==r.archFilter||i.accessFilter!==`any`||!i.favoritesFirst;return{tab:i.tab,sortBy:i.sortBy,searchTerm:i.searchTerm,includedCats:i.includedCats,includedTags:i.includedTags,favFilter:i.favFilter,archFilter:i.archFilter,archFilterDefault:r.archFilter,accessFilter:i.accessFilter,favoritesFirst:i.favoritesFirst,listPage:i.listPage,sharedPage:i.sharedPage,state:i,hasActiveFilters:k,deepSearch:i.deepSearch,isServerSearching:i.isServerSearching,setSearchTerm:o,setDeepSearch:s,setSortBy:c,setTab:l,setFavFilter:u,setArchFilter:d,setAccessFilter:f,toggleCategory:p,toggleTag:m,setIncludedCats:h,setIncludedTags:g,toggleFavoritesFirst:v,loadMoreList:y,loadMoreShared:b,resetFilters:x}}function Pk(e,t,n){return t.length===0||t.includes(e)?null:n&&t.includes(n)?n:t[0]??null}var Fk=[];function Ik({consumerId:e,onSelect:t,navigateTo:n,activeAgentIdOverride:r,initialTab:i,includeSystemInAll:a=!1,visibleTabs:o,initialArchFilter:s,excludeAgentIds:c=Fk,defaultMandateKey:l}){let u=wk(),{navigate:d}=Tk(),f=(0,_.useRef)(!1),[p,m]=(0,_.useState)(null),h=(0,_.useRef)(null),g=(0,_.useRef)(!1),v=Nk(e,{unregisterOnUnmount:!0,...s?{initialArchFilter:s}:{}}),y=Dk(),b=u.getUserIdOrNull(),x=bk(y,v.state.archFilter),S=x.mine,C=(0,_.useMemo)(()=>pk(a),[a])(y,v.state),w=(0,_.useMemo)(()=>new Set(c),[c]),T=(0,_.useCallback)(e=>w.size===0?e:e.filter(e=>!w.has(e.id)),[w]),E=T(C),D=(0,_.useMemo)(()=>pk(a),[a]),O=(0,_.useMemo)(()=>({...v.state,archFilter:`archived`}),[v.state]),k=v.archFilter===`active`?T(D(y,O)).length:0,A=Ek(Lk),j=r??null,M=j?u.getAgent(j):void 0,N=v.tab===`system`,P=N?ak(y):ik(y),F=N?sk(y):ok(y),I=x,L=A===`loading`,ee=A===`succeeded`||A===`failed`,te=(0,_.useCallback)(()=>{f.current||(f.current=!0,u.ensureLoaded().catch(()=>{}))},[u]),ne=Ek((0,_.useCallback)(e=>l?e.defaultRows[l]:void 0,[l]));(0,_.useEffect)(()=>{l&&u.ensureDefaultRow(l)},[u,l]),(0,_.useEffect)(()=>{if(!g.current){if(i){g.current=!0,v.tab!==i&&v.setTab(i);return}if(v.tab!==`mine`){g.current=!0;return}if(!GO({userId:b,ownedCount:S,agentsLoaded:ee})){(!b||ee)&&(g.current=!0);return}v.setTab(`system`),g.current=!0}},[b,S,ee,i,v.tab,v.setTab]);let R=o?o.join(`,`):``;(0,_.useEffect)(()=>{if(!R)return;let e=Pk(v.tab,R.split(`,`),i);e&&v.setTab(e)},[R,i,v.tab,v.setTab]),(0,_.useEffect)(()=>{te()},[te]);let re=(0,_.useCallback)(r=>{t?t(r.id):n?d(n.replace(`{id}`,r.id)):u.errorSink({code:`select_has_nowhere_to_go`,message:`an agent was chosen but this picker was given neither onSelect nor navigateTo, so the choice went nowhere.`,context:{consumerId:e,agentId:r.id}})},[t,n,d,u,e]),ie=(v.sortBy===`updated-desc`?0:1)+ +(v.includedCats.length>0)+ +(v.includedTags.length>0)+(v.favFilter===`all`?0:1)+(v.archFilter===v.archFilterDefault?0:1),ae=(0,_.useCallback)((e,t)=>{t||(h.current&&=(clearTimeout(h.current),null),m(e))},[]),oe=(0,_.useCallback)((e,t)=>{p?.id===e.id&&(h.current=setTimeout(()=>{m(null),t()},900))},[p]),se=(0,_.useCallback)(()=>{h.current&&=(clearTimeout(h.current),null)},[]),ce=(0,_.useCallback)(e=>{h.current=setTimeout(()=>{m(null),e()},900)},[]);return(0,_.useEffect)(()=>()=>{h.current&&clearTimeout(h.current)},[]),{agents:E,archivedHiddenCount:k,footerLabel:YO({count:E.length,archFilter:v.archFilter,archivedHiddenCount:k}),isLoading:L,activeAgentId:j,pinnedAgent:M??null,defaultRow:ne??null,allCategories:P,allTags:F,consumer:v,tabCounts:I,activeFilterCount:ie,hoveredAgent:p,setHoveredAgent:m,ensureLoaded:te,handleSelectAgent:re,handleAgentHover:ae,handleAgentHoverEnd:oe,handleDetailPanelMouseEnter:se,handleDetailPanelMouseLeave:ce}}var Lk=e=>e.status,Rk={star:{paths:[`M11.5 3.2a.6.6 0 0 1 1 0l2.3 4.7 5.2.8a.6.6 0 0 1 .3 1l-3.8 3.7.9 5.2a.6.6 0 0 1-.9.6L12 16.8l-4.6 2.4a.6.6 0 0 1-.9-.6l.9-5.2-3.8-3.7a.6.6 0 0 1 .3-1l5.2-.8Z`],fillable:!0},chevronRight:{paths:[`m9 18 6-6-6-6`]},chevronDown:{paths:[`m6 9 6 6 6-6`]},search:{paths:[`m21 21-4.3-4.3`],circles:[{cx:11,cy:11,r:8}]},x:{paths:[`M18 6 6 18`,`m6 6 12 12`]},check:{paths:[`M20 6 9 17l-5-5`]},arrowUpDown:{paths:[`m21 16-4 4-4-4`,`M17 20V4`,`m3 8 4-4 4 4`,`M7 4v16`]},folder:{paths:[`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`]},tag:{paths:[`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`],circles:[{cx:7.5,cy:7.5,r:.5,filled:!0}]},rotateCcw:{paths:[`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,`M3 3v5h5`]},loader:{paths:[`M21 12a9 9 0 1 1-6.219-8.56`]},alertTriangle:{paths:[`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`,`M12 9v4`,`M12 17h.01`]},music4:{paths:[`M9 18V5l12-2v13`,`m9 9 12-2`],circles:[{cx:6,cy:18,r:3},{cx:18,cy:16,r:3}]},clock:{paths:[`M12 6v6l4 2`],circles:[{cx:12,cy:12,r:10}]},globe:{paths:[`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,`M2 12h20`],circles:[{cx:12,cy:12,r:10}]},users:{paths:[`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,`M22 21v-2a4 4 0 0 0-3-3.87`,`M16 3.13a4 4 0 0 1 0 7.75`],circles:[{cx:9,cy:7,r:4}]},externalLink:{paths:[`M15 3h6v6`,`M10 14 21 3`,`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`]},messageCircle:{paths:[`M7.9 20A9 9 0 1 0 4 16.1L2 22Z`]},rocket:{paths:[`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 0`,`m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2`,`M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0`,`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`]},archive:{paths:[`M3 3h18a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z`,`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,`M10 12h4`]},circleCheck:{paths:[`m9 12 2 2 4-4`],circles:[{cx:12,cy:12,r:10}]}};Object.keys(Rk);function zk({children:e,...t}){return(0,j.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,...t,children:e})}function Bk({name:e,filled:t}){let n=Rk[e];return(0,j.jsxs)(j.Fragment,{children:[n.paths.map((e,r)=>(0,j.jsx)(`path`,{d:e,...t&&n.fillable?{fill:`currentColor`}:{}},`p${r}`)),(n.circles??[]).map((e,t)=>(0,j.jsx)(`circle`,{cx:e.cx,cy:e.cy,r:e.r,...e.filled?{fill:`currentColor`}:{}},`c${t}`))]})}function Vk(e){return function(t){return(0,j.jsx)(zk,{...t,children:(0,j.jsx)(Bk,{name:e,filled:!1})})}}function Hk({filled:e=!1,...t}){return(0,j.jsx)(zk,{...t,fill:e?`currentColor`:`none`,children:(0,j.jsx)(Bk,{name:`star`,filled:e})})}var Uk=Vk(`chevronRight`),Wk=Vk(`chevronDown`),Gk=Vk(`search`),Kk=Vk(`x`),qk=Vk(`check`),Jk=Vk(`arrowUpDown`),Yk=Vk(`folder`),Xk=Vk(`tag`),Zk=Vk(`rotateCcw`),Qk=Vk(`archive`),$k=Vk(`loader`),eA=Vk(`users`),tA=Vk(`clock`),nA=Vk(`globe`),rA=Vk(`externalLink`),iA=Vk(`messageCircle`),aA=Vk(`rocket`),oA=Vk(`alertTriangle`),sA=Vk(`music4`);function cA(e){return(0,j.jsxs)(zk,{...e,children:[(0,j.jsx)(`path`,{d:`M14 4.1 12 6`}),(0,j.jsx)(`path`,{d:`m5.1 8-2.9-.8`}),(0,j.jsx)(`path`,{d:`m6 12-1.9 2`}),(0,j.jsx)(`path`,{d:`M7.2 2.2 8 5.1`}),(0,j.jsx)(`path`,{d:`M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z`})]})}var lA=({ref:e,value:t,onChange:n,placeholder:r})=>(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5 h-7 px-2 rounded-md bg-muted/40 border border-border/50`,children:[(0,j.jsx)(Gk,{className:`w-3 h-3 text-muted-foreground shrink-0`}),(0,j.jsx)(`input`,{ref:e,type:`text`,value:t,onChange:e=>n(e.target.value),placeholder:r,className:`flex-1 bg-transparent text-xs text-foreground placeholder:text-muted-foreground/50 outline-none min-w-0`,style:{fontSize:`16px`}}),t&&(0,j.jsx)(`button`,{type:`button`,onClick:()=>n(``),className:`text-muted-foreground hover:text-foreground`,"aria-label":`Clear search`,children:(0,j.jsx)(Kk,{className:`w-3 h-3`})})]});function uA({icon:e,label:t,active:n,focused:r,onClick:i,ariaLabel:a,testId:o}){return(0,j.jsxs)(`button`,{type:`button`,onClick:i,...a?{"aria-label":a}:{},...o?{"data-testid":o}:{},className:Y(`inline-flex items-center gap-1 h-6 px-1.5 rounded text-[11px] font-medium shrink-0 transition-colors`,r?`bg-primary/15 text-primary border border-primary/30 ring-1 ring-primary/20`:n?`bg-primary/10 text-primary border border-primary/20`:`text-muted-foreground hover:text-foreground hover:bg-muted/50 border border-transparent`),children:[(0,j.jsx)(e,{className:`w-3 h-3`}),(0,j.jsx)(`span`,{children:t})]})}function dA({label:e,selected:t,onClick:n}){return(0,j.jsxs)(`button`,{type:`button`,onClick:n,className:Y(`flex items-center w-full px-3 py-2 text-xs transition-colors`,`hover:bg-muted/50 active:bg-muted/70`,t&&`text-primary font-medium`),children:[(0,j.jsx)(`span`,{className:`flex-1 text-left`,children:e}),t&&(0,j.jsx)(qk,{className:`w-3.5 h-3.5 text-primary shrink-0`})]})}function fA({label:e,checked:t,onClick:n}){return(0,j.jsxs)(`button`,{type:`button`,onClick:n,className:`flex items-center gap-2 w-full px-3 py-1.5 text-xs hover:bg-muted/50 active:bg-muted/70 transition-colors`,children:[(0,j.jsx)(`div`,{className:Y(`w-3.5 h-3.5 rounded-sm border flex items-center justify-center shrink-0 transition-colors`,t?`bg-primary border-primary`:`border-muted-foreground/30`),children:t&&(0,j.jsx)(qk,{className:`w-2.5 h-2.5 text-primary-foreground`})}),(0,j.jsx)(`span`,{className:`flex-1 text-left truncate`,children:e})]})}function pA({title:e,onClose:t}){return(0,j.jsxs)(`div`,{className:`flex items-center justify-between px-3 py-2 border-b border-border shrink-0`,children:[(0,j.jsx)(`span`,{className:`text-xs font-semibold text-foreground`,children:e}),(0,j.jsx)(`button`,{type:`button`,onClick:t,className:`w-5 h-5 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors`,"aria-label":`Close`,children:(0,j.jsx)(Kk,{className:`w-3.5 h-3.5`})})]})}function mA({consumer:e,allCategories:t,search:n,setSearch:r,onClose:i}){let a=t.filter(e=>!n||e.toLowerCase().includes(n.toLowerCase()));return(0,j.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,j.jsx)(pA,{title:`Categories`,onClose:i}),(0,j.jsx)(`div`,{className:`px-2 pt-2 pb-1 shrink-0`,children:(0,j.jsx)(lA,{value:n,onChange:r,placeholder:`Filter categories...`})}),e.includedCats.length>0&&(0,j.jsxs)(`button`,{type:`button`,onClick:()=>e.setIncludedCats([]),className:`mx-2 mb-1 h-6 rounded text-[11px] font-medium text-primary hover:bg-muted/50 transition-colors text-left shrink-0`,children:[`Clear (`,e.includedCats.length,`)`]}),(0,j.jsx)(`div`,{className:`overflow-y-auto flex-1`,children:a.length===0?(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground text-center py-6`,children:`No categories`}):a.map(t=>(0,j.jsx)(fA,{label:t,checked:e.includedCats.includes(t),onClick:()=>e.toggleCategory(t)},t))})]})}function hA({id:e,variant:t=`card`,disabled:n}){let r=wk(),i=Ek((0,_.useCallback)(t=>t.byId[e],[e]))?.isFavorite??!1,a=t=>{t.stopPropagation(),!n&&r.setFavorite(e,!i).catch(()=>{})},o=i?`Remove from favorites`:`Add to favorites`;return t===`list`?(0,j.jsx)(`button`,{type:`button`,className:Y(`flex-shrink-0 p-0.5 rounded transition-all duration-150`,`focus:outline-none focus-visible:ring-2 focus-visible:ring-primary`,n?`cursor-not-allowed`:`hover:scale-110 cursor-pointer`),onClick:a,disabled:n,title:o,"aria-label":i?`Remove from favorites`:`Add to favorites`,children:(0,j.jsx)(Hk,{filled:i,className:Y(`h-3.5 w-3.5 transition-all duration-150`,i?`matrx-agent-star-on`:`text-muted-foreground/40 hover:matrx-agent-star-on`)})}):(0,j.jsx)(`button`,{type:`button`,className:Y(`absolute top-2.5 right-2.5 z-10 p-0.5 rounded transition-all duration-150`,`focus:outline-none focus-visible:ring-2 focus-visible:ring-primary`,n?`cursor-not-allowed`:`hover:scale-110 cursor-pointer`,i?`matrx-agent-star-on`:`text-muted-foreground/40 hover:matrx-agent-star-on`),onClick:a,disabled:n,title:o,"aria-label":i?`Remove from favorites`:`Add to favorites`,children:(0,j.jsx)(Hk,{filled:i,className:`w-4 h-4 transition-all duration-150`})})}function gA({agent:e,onSelect:t}){let{LinkComponent:n,renderModelRef:r,openPeek:i}=Tk(),a=e.updatedAt?new Date(e.updatedAt):null,o=e.createdAt?new Date(e.createdAt):null,s=HE(e.id),c=e=>e?e.toLocaleDateString(void 0,{month:`short`,day:`numeric`,year:`numeric`}):null;return(0,j.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,j.jsx)(`div`,{className:`px-4 pt-4 pb-3`,children:(0,j.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,j.jsx)(`div`,{className:`w-9 h-9 rounded-lg bg-primary/10 flex items-center justify-center shrink-0`}),(0,j.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,j.jsx)(`h3`,{className:`text-sm font-semibold text-foreground leading-tight truncate`,children:e.name||`Untitled`}),e.isFavorite&&(0,j.jsx)(`div`,{className:`flex items-center gap-1 mt-0.5`,children:(0,j.jsx)(`span`,{className:`text-[11px] matrx-agent-star-on`,children:`Pinned to favorites`})})]}),!s&&(0,j.jsx)(hA,{id:e.id,variant:`list`})]})}),(0,j.jsx)(`div`,{className:`h-px bg-border mx-3`}),(0,j.jsxs)(`div`,{className:`flex-1 overflow-y-auto px-4 py-3 space-y-3`,children:[e.orchestra&&(0,j.jsxs)(`div`,{className:`rounded-md border border-primary/20 bg-primary/5 px-2.5 py-2`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,j.jsx)(sA,{className:`w-3.5 h-3.5 text-primary shrink-0`}),(0,j.jsx)(`span`,{className:`text-[11px] font-medium text-primary`,children:VO(e.orchestra)})]}),e.orchestra.tagline&&(0,j.jsx)(`p`,{className:`mt-1 text-xs text-foreground/80 leading-relaxed`,children:e.orchestra.tagline}),UO(e.orchestra)&&(0,j.jsx)(`p`,{className:`mt-1 text-[11px] text-muted-foreground`,title:`Delegates to: ${e.orchestra.memberTitles.join(`, `)}`,children:UO(e.orchestra)}),HO(e.orchestra)&&(0,j.jsx)(`p`,{className:`mt-0.5 text-[11px] text-muted-foreground`,children:HO(e.orchestra)})]}),e.description&&(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`p`,{className:`text-[11px] font-medium text-muted-foreground uppercase tracking-wider mb-1`,children:`Description`}),(0,j.jsx)(`p`,{className:`text-xs text-foreground/80 leading-relaxed`,children:e.description})]}),e.category&&(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(Yk,{className:`w-3.5 h-3.5 text-muted-foreground shrink-0`}),(0,j.jsx)(`span`,{className:`text-xs text-foreground/80`,children:e.category})]}),e.tags&&e.tags.length>0&&(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5 mb-1.5`,children:[(0,j.jsx)(Xk,{className:`w-3.5 h-3.5 text-muted-foreground shrink-0`}),(0,j.jsx)(`span`,{className:`text-[11px] font-medium text-muted-foreground`,children:`Tags`})]}),(0,j.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:e.tags.map(e=>(0,j.jsx)(`span`,{className:`inline-flex items-center h-5 px-1.5 rounded text-[10px] font-medium bg-muted text-muted-foreground`,children:e},e))})]}),e.accessLevel&&(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[e.isOwner===!1?(0,j.jsx)(eA,{className:`w-3.5 h-3.5 text-muted-foreground shrink-0`}):(0,j.jsx)(nA,{className:`w-3.5 h-3.5 text-muted-foreground shrink-0`}),(0,j.jsxs)(`div`,{className:`flex flex-col`,children:[(0,j.jsx)(`span`,{className:`text-xs text-foreground/80 capitalize`,children:e.accessLevel===`owner`?`You own this`:`Shared — ${e.accessLevel}`}),e.sharedByEmail&&(0,j.jsxs)(`span`,{className:`text-[10px] text-muted-foreground`,children:[`by `,e.sharedByEmail]})]})]}),e.modelId&&(0,j.jsx)(`div`,{className:`flex items-center gap-2`,children:r({modelId:e.modelId,...e.offeringId===void 0?{}:{offeringId:e.offeringId},className:`max-w-full text-xs text-foreground/80`})}),(a||o)&&(0,j.jsxs)(`div`,{className:`pt-1 space-y-1`,children:[a&&(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(tA,{className:`w-3.5 h-3.5 text-muted-foreground shrink-0`}),(0,j.jsxs)(`span`,{className:`text-[11px] text-muted-foreground`,children:[`Updated `,c(a)]})]}),o&&(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(tA,{className:`w-3.5 h-3.5 text-muted-foreground/50 shrink-0`}),(0,j.jsxs)(`span`,{className:`text-[11px] text-muted-foreground/70`,children:[`Created `,c(o)]})]})]})]}),(0,j.jsx)(`div`,{className:`h-px bg-border mx-3 mt-auto`}),(0,j.jsxs)(`div`,{className:`px-3 py-2 shrink-0 flex items-center gap-1.5`,children:[(0,j.jsx)(`button`,{type:`button`,onClick:t,className:`flex-1 h-7 rounded-md bg-primary text-primary-foreground text-[11px] font-medium hover:bg-primary/90 active:bg-primary/80 transition-colors`,children:`Select`}),i&&(0,j.jsx)(`button`,{type:`button`,onClick:t=>{t.stopPropagation(),i(e)},title:`Sneak Peek`,"aria-label":`Sneak Peek`,className:_A,children:(0,j.jsx)(aA,{className:`w-3.5 h-3.5`})}),!s&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(n,{href:`/chat/a/${e.id}`,onClick:e=>e.stopPropagation(),title:`Open in chat`,"aria-label":`Open in chat`,className:_A,children:(0,j.jsx)(iA,{className:`w-3.5 h-3.5`})}),(0,j.jsx)(n,{href:`/agents/go/${e.id}`,target:`_blank`,rel:`noopener noreferrer`,onClick:e=>e.stopPropagation(),title:`Open in new tab`,"aria-label":`Open in new tab`,className:Y(_A,`hover:text-foreground`),children:(0,j.jsx)(rA,{className:`w-3.5 h-3.5`})})]})]})]})}var _A=`flex items-center justify-center h-7 w-7 rounded-md border border-border bg-background text-muted-foreground hover:text-primary hover:bg-muted/50 transition-colors shrink-0`;function vA(e,t={}){if(!e||typeof window>`u`)return null;let n=t.full??528,r=t.minUsable??300,i=t.gap??16,a=window.innerHeight-e.getBoundingClientRect().bottom-i;return a>=n?null:a>=r?`${Math.floor(a)}px`:null}function yA(e,t,n={}){if(!e||typeof window>`u`||t!==`left`&&t!==`right`)return t;let r=n.width??680,i=n.gap??16,a=e.getBoundingClientRect(),o={left:a.left-i,right:window.innerWidth-a.right-i};if(o[t]>=r)return t;let s=t===`left`?`right`:`left`;return o[s]>=r?s:`bottom`}function bA({consumer:e,allCategories:t,allTags:n,activeFilterCount:r,isMobile:i,rightPanel:a,onFilterChipClick:o,onReset:s}){return(0,j.jsxs)(`div`,{className:`flex items-center gap-1 px-2 pb-1.5 overflow-x-auto matrx-agent-scrollbar-none shrink-0`,children:[(0,j.jsx)(uA,{icon:Jk,label:UE.find(t=>t.value===e.sortBy)?.label??`Sort`,active:e.sortBy!==`updated-desc`,focused:!i&&a===`sort`,onClick:()=>o(`sort`)}),(0,j.jsx)(uA,{icon:Hk,label:e.favFilter===`no`?`No Favs`:`Favs`,active:e.favFilter!==`all`,onClick:()=>{let t=e.favFilter===`all`?`yes`:e.favFilter===`yes`?`no`:`all`;e.setFavFilter(t)}}),(0,j.jsx)(uA,{icon:Qk,label:KO(e.archFilter),active:e.archFilter!==e.archFilterDefault,ariaLabel:JO(e.archFilter),testId:`agent-archive-filter`,onClick:()=>e.setArchFilter(KE(e.archFilter))}),t.length>0&&(0,j.jsx)(uA,{icon:Yk,label:e.includedCats.length>0?`${e.includedCats.length}`:`Category`,active:e.includedCats.length>0,focused:!i&&a===`categories`,onClick:()=>o(`categories`)}),n.length>0&&(0,j.jsx)(uA,{icon:Xk,label:e.includedTags.length>0?`${e.includedTags.length}`:`Tags`,active:e.includedTags.length>0,focused:!i&&a===`tags`,onClick:()=>o(`tags`)}),r>0&&(0,j.jsx)(`button`,{type:`button`,onClick:s,"aria-label":`Reset filters`,className:`flex items-center gap-0.5 h-6 px-1.5 rounded text-[11px] text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors shrink-0`,children:(0,j.jsx)(Zk,{className:`w-3 h-3`})})]})}function xA({consumer:e,tabCounts:t,systemTabLabel:n,visibleTabs:r}){let{labels:i}=wk(),a=[{value:`mine`,label:`Mine`,countKey:`mine`},{value:`shared`,label:`Shared`,countKey:`shared`},{value:`all`,label:`All`,countKey:`all`},{value:`system`,label:i.publicTab,countKey:`system`}];return(0,j.jsx)(`div`,{className:`flex items-center gap-0.5 px-2 pb-1 overflow-x-auto matrx-agent-scrollbar-none shrink-0`,role:`tablist`,"aria-label":`Agent ownership`,children:a.filter(({value:e})=>!r||r.includes(e)).map(({value:r,label:i,countKey:a})=>{let o=r===`system`?n??i:i,s=e.tab===r,c=t[a];return(0,j.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":s,onClick:()=>e.setTab(r),className:Y(`inline-flex items-center gap-1 rounded-md px-2 py-1 text-[10px] font-medium transition-colors shrink-0`,s?`bg-primary text-primary-foreground`:`text-muted-foreground hover:text-foreground hover:bg-muted/50`),children:[(0,j.jsx)(`span`,{children:o}),(0,j.jsx)(`span`,{className:Y(`tabular-nums opacity-70`,s&&`opacity-90`),children:c})]},r)})})}function SA({agent:e,isActive:t,isHovered:n,isMobile:r,href:i,onClick:a,onHover:o,onHoverEnd:s,onDetailPress:c}){let{LinkComponent:l}=Tk(),{labels:u}=wk(),d=i??`/agents/go/${e.id}`;return(0,j.jsxs)(`div`,{"data-testid":`agent-row-${e.id}`,className:Y(`flex items-center w-full text-left transition-colors group`,`hover:bg-muted/50 active:bg-muted/70`,t&&`bg-primary/5`,!r&&n&&`bg-muted/40`),onMouseEnter:r?void 0:o,onMouseLeave:r?void 0:s,children:[(0,j.jsxs)(l,{href:d,onClick:e=>{e.metaKey||e.ctrlKey||(e.preventDefault(),a())},className:`flex items-center gap-2 flex-1 min-w-0 px-3 py-2`,children:[e.isFavorite&&(0,j.jsx)(Hk,{filled:!0,className:`w-3 h-3 matrx-agent-star-on shrink-0`}),(0,j.jsx)(`span`,{className:Y(`text-[13px] font-medium truncate`,t?`text-primary`:`text-foreground`),children:e.name||`Untitled`}),e.orchestra&&(0,j.jsxs)(`span`,{className:`flex shrink-0 items-center gap-0.5 rounded-sm bg-primary/10 px-1 py-px text-[9px] font-medium text-primary`,title:UO(e.orchestra)??VO(e.orchestra),children:[(0,j.jsx)(sA,{className:`w-2.5 h-2.5`}),e.orchestra.memberCount]}),e.isArchived?(0,j.jsx)(`span`,{"data-testid":`agent-archived-badge-${e.id}`,className:`text-[9px] font-medium text-muted-foreground bg-muted px-1 py-px rounded shrink-0 ml-auto`,children:u.archivedBadge}):null,e.agentType===`builtin`?(0,j.jsx)(`span`,{className:Y(`text-[9px] font-medium text-primary bg-primary/10 px-1 py-px rounded shrink-0`,!e.isArchived&&`ml-auto`),children:u.systemBadge}):e.isOwner===!1?(0,j.jsx)(`span`,{className:Y(`text-[9px] text-muted-foreground bg-muted px-1 py-px rounded shrink-0`,!e.isArchived&&`ml-auto`),children:`shared`}):null]}),r&&(0,j.jsx)(`button`,{type:`button`,"aria-label":`Show details`,onClick:e=>{e.stopPropagation(),c()},className:`flex items-center justify-center w-10 h-full shrink-0 text-muted-foreground/40 active:text-muted-foreground`,children:(0,j.jsx)(Uk,{className:`w-4 h-4`})})]})}function CA({agents:e,isLoading:t,consumer:n,activeAgentId:r,allCategories:i,allTags:a,inputRef:o,onSelectAgent:s,resolveAgentHref:c,onReset:l,activeFilterCount:u,isMobile:d,hoveredAgent:f,onAgentHover:p,onAgentHoverEnd:m,onDetailPress:h,onFilterChipClick:g,rightPanel:v,tabCounts:y,visibleTabs:b,systemTabLabel:x,pinnedAgent:S=null,defaultRow:C=null,listOpen:w=!1,archivedHiddenCount:T=0}){let E=wk(),D=(0,_.useRef)(null);(0,_.useEffect)(()=>{w&&S&&D.current?.scrollTo({top:0})},[w,S?.id]);let{labels:O}=E,k=E.getUserIdOrNull()===null?O.emptySignedOut:WO(n.tab,O),A=C?.row??null;return(0,j.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,j.jsx)(`div`,{className:`px-2 pt-2 pb-1 shrink-0`,children:(0,j.jsx)(lA,{ref:o,value:n.searchTerm,onChange:n.setSearchTerm,placeholder:O.searchPlaceholder})}),(0,j.jsx)(xA,{consumer:n,tabCounts:y,systemTabLabel:x,visibleTabs:b}),(0,j.jsx)(bA,{consumer:n,allCategories:i,allTags:a,activeFilterCount:u,isMobile:d,rightPanel:v,onFilterChipClick:g,onReset:l}),C?.drift&&(0,j.jsxs)(`div`,{role:`status`,className:`matrx-agent-drift-banner mx-2 mb-1.5 flex items-start gap-2 rounded-md px-2 py-1.5 shrink-0`,children:[(0,j.jsx)(oA,{className:`w-3.5 h-3.5 shrink-0 mt-px`}),(0,j.jsx)(`span`,{className:`text-[11px] leading-snug flex-1`,children:C.drift}),(0,j.jsx)(`button`,{type:`button`,"aria-label":`Dismiss`,onClick:()=>E.dismissDefaultRowDrift(C.mandateKey),className:`shrink-0 opacity-70 hover:opacity-100`,children:(0,j.jsx)(Kk,{className:`w-3 h-3`})})]}),C?.error&&(0,j.jsxs)(o_,{as:`div`,className:`matrx-agent-drift-banner mx-2 mb-1.5 flex items-start gap-2 rounded-md px-2 py-1.5 shrink-0`,message:C.error,operation:`Load the default agent for ${C.mandateKey}`,origin:`agents/AgentListContent`,children:[(0,j.jsx)(oA,{className:`w-3.5 h-3.5 shrink-0 mt-px`}),(0,j.jsx)(`span`,{className:`text-[11px] leading-snug flex-1`,children:C.error}),(0,j.jsx)(`button`,{type:`button`,onClick:()=>E.retryDefaultRow(C.mandateKey),className:`shrink-0 text-[11px] font-medium underline underline-offset-2 opacity-80 hover:opacity-100`,children:`Try again`})]}),(0,j.jsx)(`div`,{className:`h-px bg-border shrink-0`}),(0,j.jsx)(`div`,{ref:D,className:`overflow-y-auto flex-1 min-h-0`,children:t?(0,j.jsxs)(`div`,{className:`flex items-center justify-center py-8 gap-2 text-muted-foreground`,children:[(0,j.jsx)($k,{className:`w-4 h-4 matrx-agent-spin`}),(0,j.jsx)(`span`,{className:`text-xs`,children:O.loading})]}):e.length===0&&!S&&!A?(0,j.jsx)(`div`,{className:`flex flex-col items-center py-8 text-muted-foreground`,children:(0,j.jsx)(`span`,{className:`text-xs`,children:k})}):(0,j.jsxs)(`div`,{className:`py-0.5`,children:[A&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`div`,{className:`px-3 pt-1.5 pb-0.5`,children:(0,j.jsx)(`span`,{className:`text-[10px] font-medium uppercase tracking-wide text-muted-foreground`,children:`Default`})}),(0,j.jsx)(SA,{agent:A,isActive:A.id===r,isHovered:f?.id===A.id,isMobile:d,onClick:()=>s(A),href:c?.(A),onHover:()=>p(A),onHoverEnd:()=>m(A),onDetailPress:()=>h(A)},`default-${A.id}`),(0,j.jsx)(`div`,{className:`mx-2 my-0.5 h-px bg-border`})]}),S&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`div`,{className:`px-3 pt-1.5 pb-0.5`,children:(0,j.jsx)(`span`,{className:`text-[10px] font-medium uppercase tracking-wide text-muted-foreground`,children:O.currentAgentHeading})}),(0,j.jsx)(SA,{agent:S,isActive:!0,isHovered:f?.id===S.id,isMobile:d,onClick:()=>s(S),href:c?.(S),onHover:()=>p(S),onHoverEnd:()=>m(S),onDetailPress:()=>h(S)},`pinned-${S.id}`),(0,j.jsx)(`div`,{className:`mx-2 my-0.5 h-px bg-border`})]}),e.map(e=>(0,j.jsx)(SA,{agent:e,isActive:e.id===r,isHovered:f?.id===e.id,isMobile:d,onClick:()=>s(e),href:c?.(e),onHover:()=>p(e),onHoverEnd:()=>m(e),onDetailPress:()=>h(e)},e.id)),e.length===0&&(S||A)&&(0,j.jsx)(`div`,{className:`flex flex-col items-center py-4 text-muted-foreground`,children:(0,j.jsx)(`span`,{className:`text-xs`,children:k})})]})}),(0,j.jsx)(`div`,{className:`h-px bg-border shrink-0`}),(0,j.jsxs)(`div`,{className:`flex items-center justify-between px-2.5 py-1.5 shrink-0`,children:[(0,j.jsx)(`span`,{"data-testid":`agent-list-footer`,className:`text-[10px] text-muted-foreground tabular-nums`,children:YO({count:e.length,archFilter:n.archFilter,archivedHiddenCount:T})}),n.searchTerm&&(0,j.jsx)(`button`,{type:`button`,onClick:()=>n.setSearchTerm(``),className:`text-[10px] text-muted-foreground hover:text-foreground transition-colors`,children:`Clear search`})]})]})}function wA({view:e,consumer:t,allCategories:n,allTags:r,catSearch:i,setCatSearch:a,tagSearch:o,setTagSearch:s,onBack:c}){return(0,j.jsxs)(`div`,{className:`flex flex-col`,children:[(0,j.jsxs)(`button`,{type:`button`,onClick:c,className:`flex items-center gap-1.5 px-3 py-2.5 text-sm font-medium text-primary hover:bg-muted/30 transition-colors border-b border-border shrink-0`,children:[(0,j.jsx)(Uk,{className:`w-4 h-4 rotate-180`}),e===`sort`?`Sort`:e===`categories`?`Categories`:`Tags`]}),e===`sort`&&UE.map(e=>(0,j.jsx)(dA,{label:e.label,selected:t.sortBy===e.value,onClick:()=>{t.setSortBy(e.value),c()}},e.value)),e===`categories`&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`div`,{className:`px-2 pt-2 pb-1`,children:(0,j.jsx)(lA,{value:i,onChange:a,placeholder:`Filter categories...`})}),t.includedCats.length>0&&(0,j.jsxs)(`button`,{type:`button`,onClick:()=>t.setIncludedCats([]),className:`mx-2 mb-1 h-6 rounded text-[11px] font-medium text-primary hover:bg-muted/50 transition-colors text-left`,children:[`Clear (`,t.includedCats.length,`)`]}),(0,j.jsx)(`div`,{className:`overflow-y-auto max-h-[300px]`,children:n.filter(e=>!i||e.toLowerCase().includes(i.toLowerCase())).map(e=>(0,j.jsx)(fA,{label:e,checked:t.includedCats.includes(e),onClick:()=>t.toggleCategory(e)},e))})]}),e===`tags`&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`div`,{className:`px-2 pt-2 pb-1`,children:(0,j.jsx)(lA,{value:o,onChange:s,placeholder:`Filter tags...`})}),t.includedTags.length>0&&(0,j.jsxs)(`button`,{type:`button`,onClick:()=>t.setIncludedTags([]),className:`mx-2 mb-1 h-6 rounded text-[11px] font-medium text-primary hover:bg-muted/50 transition-colors text-left`,children:[`Clear (`,t.includedTags.length,`)`]}),(0,j.jsx)(`div`,{className:`overflow-y-auto max-h-[300px]`,children:r.filter(e=>!o||e.toLowerCase().includes(o.toLowerCase())).map(e=>(0,j.jsx)(fA,{label:e,checked:t.includedTags.includes(e),onClick:()=>t.toggleTag(e)},e))})]})]})}function TA({consumer:e,onClose:t}){return(0,j.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,j.jsx)(pA,{title:`Sort By`,onClose:t}),(0,j.jsx)(`div`,{className:`overflow-y-auto flex-1`,children:UE.map(t=>(0,j.jsx)(dA,{label:t.label,selected:e.sortBy===t.value,onClick:()=>e.setSortBy(t.value)},t.value))})]})}function EA({consumer:e,allTags:t,search:n,setSearch:r,onClose:i}){let a=t.filter(e=>!n||e.toLowerCase().includes(n.toLowerCase()));return(0,j.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,j.jsx)(pA,{title:`Tags`,onClose:i}),(0,j.jsx)(`div`,{className:`px-2 pt-2 pb-1 shrink-0`,children:(0,j.jsx)(lA,{value:n,onChange:r,placeholder:`Filter tags...`})}),e.includedTags.length>0&&(0,j.jsxs)(`button`,{type:`button`,onClick:()=>e.setIncludedTags([]),className:`mx-2 mb-1 h-6 rounded text-[11px] font-medium text-primary hover:bg-muted/50 transition-colors text-left shrink-0`,children:[`Clear (`,e.includedTags.length,`)`]}),(0,j.jsx)(`div`,{className:`overflow-y-auto flex-1`,children:a.length===0?(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground text-center py-6`,children:`No tags`}):a.map(t=>(0,j.jsx)(fA,{label:t,checked:e.includedTags.includes(t),onClick:()=>e.toggleTag(t)},t))})]})}var DA=`680px`;function OA({core:e,visibleTabs:t,systemTabLabel:n,includeSystemInAll:r=!1,resolveAgentHref:i,showPinnedAgent:a=!0,autoFocusSearch:o=!0,onAfterSelect:s,className:c}){let l=g_(),{labels:u}=wk(),[d,f]=(0,_.useState)(null),[p,m]=(0,_.useState)(``),[h,g]=(0,_.useState)(``),[v,y]=(0,_.useState)(null),[b,x]=(0,_.useState)(null),S=(0,_.useRef)(null),{agents:C,archivedHiddenCount:w,isLoading:T,activeAgentId:E,pinnedAgent:D,defaultRow:O,allCategories:k,allTags:A,consumer:M,tabCounts:N,activeFilterCount:P,hoveredAgent:F,setHoveredAgent:I,ensureLoaded:L,handleSelectAgent:ee,handleAgentHover:te,handleAgentHoverEnd:ne,handleDetailPanelMouseEnter:R,handleDetailPanelMouseLeave:re}=e;(0,_.useEffect)(()=>{if(L(),!o)return;let e=setTimeout(()=>S.current?.focus(),50);return()=>clearTimeout(e)},[L,o]);let ie=(0,_.useRef)(!1);(0,_.useEffect)(()=>{ie.current||l||!D||(ie.current=!0,d===null&&(I(D),f(`detail`)))},[D,l,d,I]);let ae=e=>{ee(e),y(null),x(null),s?.(e)},oe=e=>{l?x(e):f(d===e?null:e)},se=(0,_.useCallback)(e=>{if(l)return;let t=d===`sort`||d===`categories`||d===`tags`;te(e,t),t||f(`detail`)},[l,d,te]),ce=(0,_.useCallback)(e=>{l||d===`detail`&&ne(e,()=>f(null))},[l,d,ne]),le=(0,_.useCallback)(()=>{re(()=>f(null))},[re]),z=n??(r?`System`:void 0),ue=(0,j.jsx)(CA,{agents:C,isLoading:T,consumer:M,activeAgentId:E,allCategories:k,allTags:A,inputRef:S,onSelectAgent:ae,...i?{resolveAgentHref:i}:{},onReset:M.resetFilters,activeFilterCount:P,isMobile:l,hoveredAgent:F,onAgentHover:se,onAgentHoverEnd:ce,onDetailPress:y,onFilterChipClick:oe,rightPanel:d,tabCounts:N,archivedHiddenCount:w,...t?{visibleTabs:t}:{},...z?{systemTabLabel:z}:{},pinnedAgent:a?D:null,defaultRow:O,listOpen:!0});return l?(0,j.jsx)(`div`,{className:Y(`flex min-h-0 flex-1 flex-col overflow-hidden`,c),children:v?(0,j.jsxs)(`div`,{className:`flex flex-col overflow-hidden`,children:[(0,j.jsxs)(`button`,{type:`button`,onClick:()=>y(null),className:`flex items-center gap-1.5 px-3 py-2.5 text-sm font-medium text-primary hover:bg-muted/30 transition-colors border-b border-border shrink-0`,children:[(0,j.jsx)(Uk,{className:`w-4 h-4 rotate-180`}),`Back`]}),(0,j.jsx)(`div`,{className:`overflow-y-auto`,children:(0,j.jsx)(gA,{agent:v,onSelect:()=>ae(v)})})]}):b?(0,j.jsx)(wA,{view:b,consumer:M,allCategories:k,allTags:A,catSearch:p,setCatSearch:m,tagSearch:h,setTagSearch:g,onBack:()=>{x(null),m(``),g(``)}}):ue}):(0,j.jsxs)(`div`,{className:Y(`flex h-full`,c),children:[(0,j.jsx)(`div`,{className:`flex flex-col min-w-[340px] flex-1 border-r border-border`,children:ue}),(0,j.jsxs)(`div`,{className:`h-full w-[340px] shrink-0 overflow-hidden flex flex-col`,onMouseEnter:d===`detail`?R:void 0,onMouseLeave:d===`detail`?le:void 0,children:[d===`detail`&&F&&(0,j.jsx)(`div`,{className:`h-full matrx-agent-fade-in`,children:(0,j.jsx)(gA,{agent:F,onSelect:()=>ae(F)})},F.id),d===`sort`&&(0,j.jsx)(TA,{consumer:M,onClose:()=>f(null)}),d===`categories`&&(0,j.jsx)(mA,{consumer:M,allCategories:k,search:p,setSearch:m,onClose:()=>{f(null),m(``)}}),d===`tags`&&(0,j.jsx)(EA,{consumer:M,allTags:A,search:h,setSearch:g,onClose:()=>{f(null),g(``)}}),d===null&&(0,j.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-2 px-6 text-center`,children:[(0,j.jsx)(cA,{className:`h-6 w-6 text-muted-foreground/40`}),(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground/70 leading-relaxed`,children:u.hoverHint})]})]})]})}var kA=`agent-list-dropdown`;function AA({onSelect:e,navigateTo:t,className:n,label:r,triggerSlot:i,noBorder:a=!1,compact:o=!1,activeAgentId:s,contentSide:c,consumerId:l=kA,initialTab:u,includeSystemInAll:d=!1,visibleTabs:f,systemTabLabel:p,resolveAgentHref:m,showPinnedAgent:h=!0,excludeAgentIds:g,defaultMandateKey:v}){let y=g_(),{labels:b}=wk(),{popoverContainer:x}=Tk(),[S,C]=(0,_.useState)(!1),w=(0,_.useRef)(null),[T,E]=(0,_.useState)(null),[D,O]=(0,_.useState)(c),k=Ik({consumerId:l,...e?{onSelect:e}:{},...t?{navigateTo:t}:{},...s===void 0?{}:{activeAgentIdOverride:s},...u?{initialTab:u}:{},includeSystemInAll:d,...f?{visibleTabs:f}:{},...g?{excludeAgentIds:g}:{},...v?{defaultMandateKey:v}:{}}),{pinnedAgent:A,defaultRow:M,activeAgentId:N,isLoading:P,activeFilterCount:F}=k,I=M?.row?.id===N?M.row:null,L=r??A?.name??I?.name??(N?P?b.triggerResolving:b.triggerUnnameable:b.triggerFallback),ee=!!N&&L.trim().length>0&&L!==`Select an agent`&&L!==b.triggerFallback,te=e=>{C(e),e&&(E(c||y?null:vA(w.current)),O(c&&!y?yA(w.current,c):c))},ne=(0,_.useMemo)(()=>{if(m)return m;if(t)return e=>t.replace(`{id}`,e.id)},[t,m]),R=i??(0,j.jsxs)(`button`,{type:`button`,className:Y(`inline-flex items-center rounded-md text-xs font-medium transition-colors`,`bg-background hover:bg-muted/50 text-foreground/80 hover:text-foreground`,o?`h-5 gap-1 px-1.5`:`h-7 gap-1.5 px-2.5`,!a&&`border border-border`,n),children:[(0,j.jsx)(`span`,{className:`min-w-0 max-w-[200px] flex-1 truncate text-left`,children:L}),F>0&&(0,j.jsx)(`span`,{className:`flex items-center justify-center w-4 h-4 rounded-md bg-primary text-primary-foreground text-[10px]`,children:F}),(0,j.jsx)(Wk,{className:`w-3 h-3 text-muted-foreground/60`})]}),re=e=>ee?(0,j.jsxs)(ld,{...S?{open:!1}:{},children:[(0,j.jsx)(e,{asChild:!0,ref:w,children:(0,j.jsx)(ud,{asChild:!0,children:R})}),(0,j.jsx)(dd,{side:`bottom`,className:`max-w-xs`,children:L})]}):(0,j.jsx)(e,{asChild:!0,ref:w,children:R}),ie=(0,j.jsx)(OA,{core:k,includeSystemInAll:d,showPinnedAgent:h,onAfterSelect:()=>C(!1),...f?{visibleTabs:f}:{},...p?{systemTabLabel:p}:{},...ne?{resolveAgentHref:ne}:{}});return y?(0,j.jsxs)(Gg,{open:S,onOpenChange:te,children:[re(Kg),(0,j.jsxs)($g,{className:`h-[85dvh]`,children:[(0,j.jsx)(e_,{className:`sr-only`,children:`Select Agent`}),(0,j.jsx)(`div`,{className:`flex flex-col overflow-hidden flex-1 min-h-0`,children:ie})]})]}):(0,j.jsxs)(DS,{open:S,onOpenChange:te,modal:!1,children:[re(OS),(0,j.jsx)(kS,{...D?{side:D}:T?{side:`bottom`}:{},align:`start`,sideOffset:4,collisionPadding:12,sticky:`always`,...x?{container:x}:{},className:`p-0 overflow-hidden`,style:{width:DA,height:T??`528px`,maxHeight:T??`min(528px, var(--radix-popper-available-height, 528px))`},children:ie})]})}var jA=ue,MA=`Sign in to AI Matrx to use your agents`,NA=`latest`;function PA(e){let t=n=>{let r=()=>e.call(`agentCatalogRpc`,n).then(e=>({data:e.data,error:e.error?{message:e.error.message,...e.error.code?{code:e.error.code}:{},details:e.error.details??null,hint:e.error.hint??null}:null,count:e.count??null}));return{then:(e,t)=>r().then(e,t),range:(e,r)=>t({...n,range:[e,r]}),order:(e,r)=>t({...n,order:{column:e,ascending:r?.ascending!==!1}})}};return{rpc:(e,n,r)=>t({fn:e,...n?{args:n}:{},...r?.count?{count:r.count}:{}})}}function FA(e,t){let[n,r]=(0,_.useState)(null);return(0,_.useEffect)(()=>{if(!t)return;let n=!0;return e.call(`agentAccess`).then(e=>n&&r(e)).catch(()=>n&&r({signedIn:!1,userId:null,organizationId:null,configured:!1})),()=>{n=!1}},[e,t]),n}function IA(e,t,n){let r=(0,_.useRef)(n);return r.current=n,(0,_.useMemo)(()=>t?RO({client:PA(e),identity:{requireUserId:()=>t,getUserId:()=>t},catalogId:`coding-sessions:${t}`,errorSink:e=>{console.error(`[coding-sessions] agent catalogue: ${e.code}: ${e.message}`),e.code===`list_read_failed`&&r.current(`Couldn't load your agents. Reopen to retry.`)}}):null,[e,t])}function LA(e){return e.flatMap(e=>typeof e.name==`string`?[e]:[])}function RA(e){let t=FA(e.transport,e.open),[n,r]=(0,_.useState)(null),[i,a]=(0,_.useState)(null),o=IA(e.transport,t?.signedIn?t.userId:null,a),s=e.value?.agentId??null;(0,_.useEffect)(()=>{if(r(null),a(null),!s)return;let t=!0;return e.transport.call(`agentDetails`,s).then(e=>t&&r(e)).catch(e=>t&&a(e instanceof Error?e.message:String(e))),()=>{t=!1}},[s,e.transport]);let{onDetails:c}=e;(0,_.useEffect)(()=>{c?.(n)},[n,c]);let l=(0,_.useMemo)(()=>zE(LA(n?.variables??[]),jA),[n]);if(t===null)return(0,j.jsx)(`div`,{className:`cs-skeleton h-9 rounded-lg`});if(!t.signedIn||!o)return(0,j.jsx)(`p`,{className:`text-[12.5px] text-muted-foreground`,children:MA});let u=(t,n)=>{e.value&&e.onChange({...e.value,variables:{...e.value.variables??{},[t]:n}})};return(0,j.jsxs)(`div`,{className:`space-y-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(cd,{children:(0,j.jsx)(Ak,{catalog:o,children:(0,j.jsx)(AA,{consumerId:`coding-sessions-new-session`,activeAgentId:s,label:n?.name??(s?`Loading…`:`None`),onSelect:t=>e.onChange({agentId:t,versionId:null,variables:{}})})})}),s?(0,j.jsx)(u_,{type:`button`,size:`sm`,variant:`ghost`,onClick:()=>e.onChange(null),children:`Remove`}):null]}),i?(0,j.jsx)(`p`,{className:`text-[12px] text-destructive`,children:i}):null,n&&e.value?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`span`,{className:`w-[72px] shrink-0 text-[12px] text-muted-foreground`,children:`Version`}),(0,j.jsxs)(Wx,{value:e.value.versionId??NA,onValueChange:t=>e.value&&e.onChange({...e.value,versionId:t===NA?null:t}),children:[(0,j.jsx)(Jx,{className:`h-8 w-[200px] text-[12.5px]`,"aria-label":`Agent version`,children:(0,j.jsx)(Gx,{})}),(0,j.jsxs)(Zx,{children:[(0,j.jsx)($x,{value:NA,children:n.latestVersionNumber===null?`Latest`:`Latest (v${n.latestVersionNumber})`}),n.versions.map(e=>(0,j.jsxs)($x,{value:e.id,children:[`v`,e.versionNumber]},e.id))]})]})]}),l.map(t=>{let n=e.value?.variables?.[t.name],r=typeof n==`string`?n:``,i=`cs-agent-var-${t.name}`,a=e.missing===t.name;return(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsxs)(`label`,{htmlFor:i,className:`text-[12px] font-medium`,children:[t.label,t.required?(0,j.jsx)(`span`,{className:`text-muted-foreground`,children:` · required`}):null]}),t.options&&t.options.length>0?(0,j.jsxs)(Wx,{value:r,onValueChange:e=>u(t.name,e),children:[(0,j.jsx)(Jx,{id:i,className:`h-8 text-[12.5px]`,"aria-invalid":a||void 0,children:(0,j.jsx)(Gx,{placeholder:`Choose…`})}),(0,j.jsx)(Zx,{children:t.options.map(e=>(0,j.jsx)($x,{value:e,children:e},e))})]}):t.variable.customComponent?.type===`textarea`?(0,j.jsx)(lw,{id:i,rows:2,value:r,onChange:e=>u(t.name,e.target.value),placeholder:t.hint??``,"aria-invalid":a||void 0}):(0,j.jsx)(ZC,{id:i,value:r,onChange:e=>u(t.name,e.target.value),placeholder:t.hint??``,"aria-invalid":a||void 0}),a?(0,j.jsx)(`p`,{className:`text-[12px] text-destructive`,children:`Fill this in to use the agent`}):null]},t.name)})]}):null]})}function zA(e,t){if(!e||!t)return null;for(let n of zE(LA(e.variables),jA)){if(!n.required)continue;let e=t.variables?.[n.name];if(typeof e!=`string`||!e.trim())return n.name}return null}var BA={instructions:`Instructions`,skills:`Skills`,tools:`Tools`};function VA(e){let t=e.loaded.map(e=>e.part===`instructions`?`${BA.instructions} ${e.loaded===1?`✓`:`—`}`:`${BA[e.part]} ${e.loaded}/${e.total}`);return`${e.name}${e.versionNumber===null?``:` v${e.versionNumber}`} · ${t.join(` · `)}`}function HA(e){let{agent:t}=e,n=mE(),[r,i]=(0,_.useState)(!1),[a,o]=(0,_.useState)(!1),[s,c]=(0,_.useState)(null),[l,u]=(0,_.useState)(null);(0,_.useEffect)(()=>{if(!r)return;let n=!0;return e.transport.call(`agentAccess`).then(e=>n&&u(e)).catch(()=>void 0),t&&e.transport.call(`agentDetails`,t.agentId).then(e=>{n&&e.latestVersionId&&e.latestVersionNumber!==null&&c({id:e.latestVersionId,number:e.latestVersionNumber})}).catch(()=>void 0),()=>{n=!1}},[r,t,e.transport]);let d=async(t,r)=>{try{await e.transport.call(`setAgent`,e.sessionId,t),n(r),e.onChange()}catch(e){n(`That didn't change: ${e instanceof Error?e.message:String(e)}`)}},f=t&&s&&t.versionNumber!==null&&s.number>t.versionNumber?s:null,p=!t||t.loaded.every(e=>e.loaded===e.total),m=l?.signedIn??!1;return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(FC,{open:r,onOpenChange:i,children:[(0,j.jsx)(IC,{asChild:!0,children:(0,j.jsxs)(`button`,{type:`button`,className:Y(`cs-agent-chip`,t?`cs-agent-chip--set`:`cs-agent-chip--none`,!p&&`cs-agent-chip--partial`),"data-testid":`cs-agent-chip`,"aria-label":t?`AI Matrx agent: ${t.name}`:`Add an AI Matrx agent`,children:[t?VA(t):`No agent`,f?(0,j.jsx)(`span`,{className:`cs-agent-chip-dot`,"aria-label":`Update available`}):null,(0,j.jsx)(cE,{size:12,className:`ml-1 inline shrink-0`})]})}),(0,j.jsxs)(WC,{align:`end`,className:`w-[320px]`,children:[t?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(JC,{className:`truncate`,children:[t.name,t.versionNumber===null?``:` · v${t.versionNumber}`]}),(0,j.jsxs)(`div`,{className:`cs-agent-parts`,children:[t.blockDue?(0,j.jsx)(`p`,{className:`text-[12px] text-muted-foreground`,children:`Sent with your next message`}):null,(0,j.jsx)(UA,{title:`Skills`,items:t.skills??[]}),(0,j.jsx)(UA,{title:`Tools`,items:t.tools??[]}),t.unavailable.length>0?(0,j.jsx)(UA,{title:`Not loaded`,items:t.unavailable.map(e=>`${e.name} — ${e.reason}`)}):null]}),(0,j.jsx)(YC,{})]}):null,m?(0,j.jsxs)(j.Fragment,{children:[f&&t?(0,j.jsxs)(GC,{onSelect:()=>void d({agentId:t.agentId,versionId:f.id,variables:t.variables??{}},`The next message uses ${t.name} v${f.number}.`),children:[`Update to v`,f.number]}):null,(0,j.jsx)(GC,{onSelect:()=>o(!0),children:t?`Change agent…`:`Choose agent…`}),t?(0,j.jsx)(GC,{onSelect:()=>void d(null,`The next message runs without an agent.`),children:`Remove agent`}):null]}):l?(0,j.jsx)(`p`,{className:`px-2 py-1.5 text-[12px] text-muted-foreground`,children:MA}):null]})]}),(0,j.jsx)(WA,{transport:e.transport,open:a,onOpenChange:o,title:t?`Change agent`:`Choose an agent`,action:`Use this agent`,onConfirm:e=>d(e,`The next message uses the new agent.`)})]})}function UA({title:e,items:t}){return(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`p`,{className:`text-[11.5px] font-medium text-muted-foreground`,children:[e,` · `,t.length]}),t.length>0?(0,j.jsx)(`ul`,{className:`cs-agent-part-list`,children:t.map(e=>(0,j.jsx)(`li`,{className:`truncate`,title:e,children:e},e))}):null]})}function WA(e){let[t,n]=(0,_.useState)(null),[r,i]=(0,_.useState)(null),[a,o]=(0,_.useState)(null),[s,c]=(0,_.useState)(!1);(0,_.useEffect)(()=>{e.open&&(n(null),o(null))},[e.open]);let l=async()=>{if(!t)return;let n=zA(r,t);if(o(n),!n){c(!0);try{await e.onConfirm(t),e.onOpenChange(!1)}finally{c(!1)}}};return(0,j.jsx)(NS,{open:e.open,onOpenChange:e.onOpenChange,children:(0,j.jsxs)(KS,{className:`max-w-[480px]`,children:[(0,j.jsx)(qS,{children:(0,j.jsx)(YS,{children:e.title})}),(0,j.jsx)(RA,{transport:e.transport,open:e.open,value:t,onChange:e=>{n(e),o(null)},missing:a,onDetails:i}),(0,j.jsxs)(JS,{children:[(0,j.jsx)(u_,{type:`button`,variant:`ghost`,onClick:()=>e.onOpenChange(!1),children:`Cancel`}),t?(0,j.jsx)(u_,{type:`button`,disabled:s,onClick:()=>void l(),children:e.action}):null]})]})})}function GA(e,t,n){try{let r=localStorage.getItem(e);return t.includes(r??``)?r:n}catch{return n}}function KA(e,t){try{localStorage.setItem(e,t)}catch{}}function qA({children:e,action:t}){return(0,j.jsxs)(`div`,{"data-cs-section-label":!0,className:`flex h-8 items-center justify-between px-3 pt-3`,children:[(0,j.jsx)(`span`,{className:`text-[12px] font-medium text-muted-foreground`,children:e}),t]})}function JA({children:e}){return(0,j.jsx)(`div`,{className:`truncate px-4 pb-0.5 pt-2.5 text-[12px] font-medium text-muted-foreground`,children:e})}function YA(e){let[t,n]=(0,_.useState)(e.initial),r=(0,_.useRef)(!1),i=t=>{r.current||(r.current=!0,e.onDone(t))};return(0,j.jsx)(`input`,{autoFocus:!0,value:t,onChange:e=>n(e.target.value),onFocus:e=>e.currentTarget.select(),onKeyDown:e=>{e.key===`Enter`&&i(t),e.key===`Escape`&&i(null)},onBlur:()=>i(t),"aria-label":`New name for this chat`,className:`cs-rename-input`})}function XA(e){return e.kind===`session`&&e.session?`#s/${e.session.id}`:e.providerSessionId?`#d/${e.provider}/${e.providerSessionId}`:``}function ZA(e){let t=NT(),n=mE(),[r,i]=(0,_.useState)(!1),[a,o]=(0,_.useState)(!1),{entry:s}=e;return(0,j.jsxs)(mb,{children:[(0,j.jsx)(hb,{asChild:!0,children:(0,j.jsxs)(`div`,{className:Y(`cs-row group`,e.active&&`cs-row--active`,a&&`cs-row--menu`),"data-hidden":s.hidden||void 0,"data-cs-row":s.key,"data-cs-target":XA(s),"data-cs-provider":s.provider,"data-cs-title":s.title,"data-cs-live":e.live?`true`:void 0,"data-cs-active":e.active?`true`:void 0,children:[(0,j.jsx)(`button`,{type:`button`,onClick:e.onSelect,className:`cs-row__hit`,"aria-current":e.active?`true`:void 0,"aria-label":s.title,title:s.title===s.originalTitle?s.title:`${s.title}\n(${s.originalTitle})`}),(0,j.jsx)(`span`,{className:`pointer-events-none mt-0.5 shrink-0`,children:e.live?(0,j.jsx)(ZT,{size:16,className:`text-primary`}):(0,j.jsx)(eE,{provider:s.provider,size:16})}),(0,j.jsxs)(`span`,{className:`cs-row__body`,children:[r?(0,j.jsx)(`span`,{className:`pointer-events-auto relative z-10 block`,children:(0,j.jsx)(YA,{initial:s.title,onDone:e=>{if(i(!1),e===null||e.trim()===s.title)return;let r=e.trim()===``||e.trim()===s.originalTitle?null:e;t.setPreference(s.key,{title:r}).catch(e=>n(`The new name didn't save: ${e instanceof Error?e.message:String(e)}`))}})}):(0,j.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,j.jsx)(`span`,{className:`min-w-0 truncate text-[13px] font-medium leading-5`,children:s.title}),s.pinned?(0,j.jsx)(rE,{size:11,className:`shrink-0 text-muted-foreground`,"aria-label":`Pinned`}):null]}),(0,j.jsx)(`span`,{className:`block truncate text-[11.5px] leading-4 text-muted-foreground`,children:e.meta}),e.snippet?(0,j.jsx)(`span`,{className:`cs-row__snippet`,children:e.snippet}):null]}),r?null:(0,j.jsxs)(`span`,{className:`cs-row__actions`,children:[e.takeover,(0,j.jsxs)(FC,{open:a,onOpenChange:o,children:[(0,j.jsx)(IC,{asChild:!0,children:(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,"aria-label":`More for ${s.title}`,title:`More`,children:(0,j.jsx)(nE,{size:15})})}),(0,j.jsx)(WC,{align:`start`,className:`w-60`,onCloseAutoFocus:e=>e.preventDefault(),children:(0,j.jsx)(vE,{entry:s,variant:`dropdown`,onRename:()=>i(!0)})})]})]})]})}),(0,j.jsx)(Sb,{className:`w-60`,onCloseAutoFocus:e=>e.preventDefault(),children:(0,j.jsx)(vE,{entry:s,variant:`context`,onRename:()=>i(!0)})})]})}function QA(){return(0,j.jsx)(`div`,{className:`space-y-1.5 px-3 py-2`,"aria-hidden":`true`,children:[0,1,2].map(e=>(0,j.jsx)(`div`,{className:`cs-skeleton h-9 rounded-lg`},e))})}function $A({text:e,query:t}){let n=t.trim().toLowerCase();if(!n)return e;let r=e.toLowerCase().indexOf(n);return r<0?e:(0,j.jsxs)(j.Fragment,{children:[e.slice(0,r),(0,j.jsx)(`mark`,{className:`cs-mark`,children:e.slice(r,r+n.length)}),e.slice(r+n.length)]})}var ej={query:``,loading:!1,error:null,hits:[],scanned:0,total:0,nextCursor:null};function tj(e){let t=NT(),[n,r]=(0,_.useState)(ej),i=(0,_.useRef)(e);i.current=e;let a=(0,_.useCallback)(async(e,n,a)=>{r(t=>({...a?t:ej,query:e,loading:!0,error:null}));try{let o=await t.search(e,n);if(i.current.trim()!==e)return;r(t=>({query:e,loading:!1,error:null,hits:a?[...t.hits,...o.hits]:o.hits,scanned:(a?t.scanned:n)+o.scanned,total:o.total,nextCursor:o.nextCursor}))}catch(t){if(i.current.trim()!==e)return;r(e=>({...e,loading:!1,error:t instanceof Error?t.message:String(t)}))}},[t]);return(0,_.useEffect)(()=>{let t=e.trim();if(t.length<2){r(ej);return}let n=setTimeout(()=>void a(t,0,!1),350);return()=>clearTimeout(n)},[e,a]),[n,(0,_.useCallback)(()=>{n.nextCursor!==null&&!n.loading&&a(n.query,n.nextCursor,!0)},[a,n.nextCursor,n.loading,n.query])]}function nj(e){return{provider:e.provider,providerSessionId:e.providerSessionId,cwd:e.cwd,title:e.title,updatedAt:e.updatedAt,source:null,activeElsewhere:null}}function rj(e){let t=NT(),n=PT(),r=IT(),[i,a]=(0,_.useState)(``),[o,s]=tj(i),[c,l]=(0,_.useState)(()=>GA(`coding-sessions.group`,[`date`,`folder`],`date`)),[u,d]=(0,_.useState)(!1),[f,p]=(0,_.useState)(null),[m,h]=(0,_.useState)(null),g=n.preferences,v=n.sessions.data,y=e=>{let t=n.runs[e];return t!==void 0&&!iT(t.status)},{ours:b,others:x,hiddenCount:S}=(0,_.useMemo)(()=>{let e=v.map(e=>ST(e,g)),t=new Set(v.map(e=>e.providerSessionId).filter(Boolean)),r=n.discovered.data.filter(e=>!t.has(e.providerSessionId)).map(e=>CT(e,g));return{ours:e,others:r,hiddenCount:[...e,...r].filter(e=>e.hidden).length}},[v,n.discovered.data,g]),C=e=>u||!e.hidden,w=[...b,...x].filter(e=>e.pinned&&C(e)).sort(AT),T=b.filter(e=>!e.pinned&&e.session&&y(e.session.id)&&C(e)),E=b.filter(e=>!e.pinned&&!(e.session&&y(e.session.id))&&C(e)),D=x.filter(e=>!e.pinned&&C(e)),O=e=>{l(e),KA(`coding-sessions.group`,e)},k=t=>{t.session?e.select({kind:`session`,id:t.session.id}):t.providerSessionId&&e.select({kind:`discovered`,provider:t.provider,id:t.providerSessionId})},A=t=>t.session?e.selection.kind===`session`&&e.selection.id===t.session.id:e.selection.kind===`discovered`&&e.selection.id===t.providerSessionId,M=async n=>{p(n.providerSessionId),h(null);try{let r=await t.takeover(n);e.select({kind:`session`,id:r.id})}catch(e){h({id:n.providerSessionId,message:e instanceof Error?e.message:String(e)})}finally{p(null)}},N=(e,t)=>{let i=e.session?y(e.session.id):!1,a=e.session?n.runs[e.session.id]:void 0,o=e.discovered,s;if(i)s=`${tT[e.provider]} is working…`;else if(o?.activeElsewhere)s=(0,j.jsxs)(`span`,{className:`cs-live-elsewhere`,children:[(0,j.jsx)(`span`,{className:`cs-live-dot`,"aria-hidden":`true`}),`Running in `,tT[e.provider]]});else{let n=a?a.status===`failed`?`Failed · `:a.status===`stopped`?`Stopped · `:``:``,i=e.cwd?RT(e.cwd):`unknown folder`;s=`${n}${e.kind===`discovered`?`${tT[e.provider]} · `:``}${c===`folder`&&!t?``:`${i} · `}${LT(e.updatedAt,r)}`}return(0,j.jsxs)(`div`,{children:[(0,j.jsx)(ZA,{entry:e,active:A(e),onSelect:()=>k(e),live:i,meta:s,snippet:t?.snippet,takeover:o?.cwd?(0,j.jsxs)(`button`,{type:`button`,className:`cs-takeover-chip`,onClick:()=>o.activeElsewhere?k(e):void M(o),title:o.activeElsewhere?o.activeElsewhere.message:`Continue this chat here`,disabled:f===o.providerSessionId,children:[f===o.providerSessionId?(0,j.jsx)(ZT,{size:11}):null,`Take over`]}):null}),m&&o&&m.id===o.providerSessionId?(0,j.jsx)(`p`,{className:`mx-4 mb-1 text-[11.5px] text-destructive`,children:m.message}):null]},e.key)},P=e=>OT(e,c,r).map(e=>(0,j.jsxs)(`div`,{role:`group`,"aria-label":e.label,children:[(0,j.jsx)(JA,{children:e.label}),e.entries.map(e=>N(e))]},e.label)),F=i.trim().length>0,I=F?[...b,...x].filter(e=>kT(e,i)).sort(AT):[],L=new Set(I.map(e=>e.key)),ee=new Map([...b,...x].map(e=>[e.key,e])),te=o.hits.filter(e=>!L.has(nT(e.provider,e.providerSessionId))),ne=t=>{let n=ee.get(nT(t.provider,t.providerSessionId));if(n){k(n);return}e.onFound(nj(t)),e.select({kind:`discovered`,provider:t.provider,id:t.providerSessionId})},R=(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(qA,{children:`Chats`}),I.length===0?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] text-muted-foreground`,children:`No listed chat has that in its name or folder.`}):I.map(e=>N(e,{query:i})),(0,j.jsx)(qA,{children:`In conversations`}),i.trim().length<2?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] text-muted-foreground`,children:`Type at least two letters to search what was said.`}):(0,j.jsxs)(j.Fragment,{children:[te.map(t=>{let n=ee.get(nT(t.provider,t.providerSessionId)),r=n??CT(nj(t),g);return(0,j.jsx)(`div`,{onClickCapture:n?void 0:()=>e.onFound(nj(t)),children:N(r,{query:i,snippet:t.snippet?(0,j.jsx)($A,{text:t.snippet,query:i}):void 0})},`hit:${r.key}`)}),(0,j.jsx)(`div`,{className:`px-4 py-2 text-[11.5px] leading-4 text-muted-foreground`,role:`status`,"aria-live":`polite`,children:o.error?(0,j.jsxs)(`span`,{className:`text-destructive`,children:[`Search stopped: `,o.error]}):o.loading?(0,j.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,j.jsx)(ZT,{size:12}),` Searching your chats…`]}):o.query?(0,j.jsxs)(j.Fragment,{children:[te.length===0&&o.hits.length===0?`Nothing found. `:null,o.nextCursor===null?`Searched all ${o.total.toLocaleString()} chats on this computer.`:`Searched the ${o.scanned.toLocaleString()} most recent of ${o.total.toLocaleString()} chats.`,o.nextCursor===null?null:(0,j.jsx)(`button`,{type:`button`,className:`cs-link ml-1`,onClick:s,children:`Search older chats`})]}):null})]})]}),re=(0,j.jsxs)(j.Fragment,{children:[w.length>0?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(qA,{children:`Pinned`}),w.map(e=>N(e))]}):null,T.length>0?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(qA,{children:`Running`}),T.map(e=>N(e))]}):null,(0,j.jsx)(qA,{children:`Recent`}),n.sessions.loading&&n.sessions.loadedAt===null?(0,j.jsx)(QA,{}):n.sessions.error?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] text-destructive`,children:n.sessions.error}):E.length===0?T.length===0?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] leading-5 text-muted-foreground`,children:`Sessions you start or take over here will appear here.`}):null:E.map(e=>N(e)),(0,j.jsx)(qA,{action:(0,j.jsxs)(`span`,{className:`flex items-center gap-0.5`,children:[(0,j.jsxs)(FC,{children:[(0,j.jsx)(IC,{asChild:!0,children:(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button cs-icon-button--text`,"aria-label":`How to list your other chats`,children:c===`date`?`By date`:`By folder`})}),(0,j.jsxs)(WC,{align:`end`,className:`w-52`,children:[(0,j.jsx)(JC,{children:`Group your other chats`}),(0,j.jsxs)(RC,{value:c,onValueChange:e=>O(e),children:[(0,j.jsx)(qC,{value:`date`,children:`By date`}),(0,j.jsx)(qC,{value:`folder`,children:`By folder`})]}),(0,j.jsx)(YC,{}),(0,j.jsx)(GC,{onSelect:()=>d(e=>!e),children:u?`Leave hidden chats out`:`Show hidden chats${S?` (${S})`:``}`})]})]}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>void t.refreshDiscovered(),"aria-label":`Look again for your other chats`,title:`Look again`,children:n.discovered.loading?(0,j.jsx)(ZT,{size:13}):(0,j.jsx)(GT,{size:13})})]}),children:`Your other chats`}),n.discovered.loading&&n.discovered.loadedAt===null?(0,j.jsx)(QA,{}):n.discovered.error?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] text-destructive`,children:n.discovered.error}):D.length===0?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] leading-5 text-muted-foreground`,children:x.length>0?`Every chat found here is pinned or hidden.`:`No other Claude Code or Codex chats were found on this computer.`}):(0,j.jsxs)(j.Fragment,{children:[P(D),n.discovered.data.length>=n.discoveredLimit?(0,j.jsx)(`div`,{className:`px-3 pt-2`,children:(0,j.jsxs)(u_,{variant:`ghost`,size:`sm`,className:`w-full text-muted-foreground`,onClick:()=>void t.showMoreDiscovered(),disabled:n.discovered.loading,children:[n.discovered.loading?(0,j.jsx)(ZT,{size:13}):null,`Show older chats`]})}):null]}),u?null:S>0?(0,j.jsxs)(`button`,{type:`button`,className:`cs-link mx-4 mt-3 text-[11.5px]`,onClick:()=>d(!0),children:[S,` hidden `,S===1?`chat`:`chats`,` — show`]}):null]});return(0,j.jsxs)(`aside`,{className:`cs-sidebar flex h-full shrink-0 flex-col border-r border-border bg-sidebar-background`,style:{width:e.width},"aria-label":`Sessions`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between gap-2 px-4 pb-2 pt-3.5`,children:[(0,j.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,j.jsx)(`span`,{className:`cs-app-mark`,"aria-hidden":`true`}),(0,j.jsx)(`span`,{className:`truncate text-[14px] font-semibold tracking-[-0.01em]`,children:`Coding sessions`})]}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:e.onCollapse,"aria-label":`Hide the sidebar (⌘B)`,title:`Hide sidebar ⌘B`,children:(0,j.jsx)(sE,{size:15})})]}),(0,j.jsxs)(`div`,{className:`space-y-1.5 px-3 pb-1`,children:[(0,j.jsxs)(u_,{className:`w-full justify-start gap-2`,variant:`outline`,size:`sm`,onClick:e.onNew,children:[(0,j.jsx)(BT,{size:15}),`New session`,(0,j.jsx)(`kbd`,{className:`cs-kbd ml-auto`,children:`⌥⌘N`})]}),(0,j.jsxs)(`div`,{className:`cs-search`,children:[(0,j.jsx)(tE,{size:14,className:`cs-search__icon`}),(0,j.jsx)(`input`,{ref:e.searchRef,type:`search`,value:i,onChange:e=>a(e.target.value),onKeyDown:e=>{if(e.key===`Escape`&&(i?a(``):e.currentTarget.blur(),e.preventDefault()),e.key===`Enter`){let e=I[0],t=te[0];e?k(e):t&&ne(t)}},placeholder:`Search chats`,"aria-label":`Search chats by name, folder or what was said`,spellCheck:!1,className:`cs-search__input`}),i?(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button cs-search__clear`,onClick:()=>a(``),"aria-label":`Clear search`,children:(0,j.jsx)(uE,{size:13})}):(0,j.jsx)(`kbd`,{className:`cs-search__kbd`,children:`⌘K`})]})]}),(0,j.jsx)(`nav`,{className:`min-h-0 flex-1 overflow-y-auto pb-3`,children:F?R:re}),e.footer]})}function ij(){let e=[],t=null,n=0,r=null,i=new Map;function a(t,n,r){let i={...t.message,parts:n,status:r??t.message.status};t.message=i;let a=e.findIndex(e=>e.id===i.id);a>=0&&(e[a]=i)}function o(){if(t)return t;n+=1;let r=S({id:`turn-${n}-${e.length}`,role:`assistant`,status:`streaming`});return e.push(r),t={message:r,index:new Map},t}function s(e,t){let n=o(),r=[...n.message.parts],i=n.index.get(e);i===void 0?(n.index.set(e,r.length),r.push(t(null))):r[i]=t(r[i]??null),a(n,r)}function c(e){if(!t)return;let n=t;a(n,n.message.parts.map(t=>{if(t.type===`reasoning`&&t.state===`streaming`)return{...t,state:`done`};if(t.type===`tool`&&t.state===`input-available`&&e!==`streaming`){if(e===`cancelled`)return{...t,state:`output-error`,errorText:`Stopped before this finished.`};if(e===`error`)return{...t,state:`output-error`,errorText:`The run ended before this finished.`}}return t}),e),t=null}let l={apply(n){switch(n.kind){case`user`:c(`complete`),e.push(S({id:`user-${n.id}`,role:`user`,parts:[{type:`text`,text:n.text}],status:`complete`,metadata:n.at?{createdAt:n.at}:void 0}));return;case`text-delta`:s(n.id,e=>e&&e.type===`text`?{type:`text`,text:e.text+n.text}:{type:`text`,text:n.text});return;case`text`:s(n.id,()=>({type:`text`,text:n.text}));return;case`reasoning`:s(n.id,()=>({type:`reasoning`,text:n.text,state:`done`}));return;case`tool-call`:{let r=gT(n.name,n.input),a=r?[{toolName:n.name,message:r,percent:null,at:null}]:[];s(n.id,e=>e&&e.type===`tool`?{...e,input:n.input,progress:a}:{type:`tool`,toolCallId:n.id,toolName:n.name,state:`input-available`,input:n.input,output:null,errorText:null,progress:a,delegated:!1});let o=t;if(o){let t=o.index.get(n.id),r=e.findIndex(e=>e.id===o.message.id);t!==void 0&&r>=0&&i.set(n.id,{messageIndex:r,partIndex:t})}return}case`tool-result`:{let r=i.get(n.id);if(!r){s(n.id,()=>({type:`tool`,toolCallId:n.id,toolName:`Tool`,state:n.isError?`output-error`:`output-available`,input:null,output:n.isError?null:n.output,errorText:n.isError?n.output||`The tool reported an error.`:null,progress:[],delegated:!1}));return}let a=e[r.messageIndex],o=a?.parts[r.partIndex];if(!a||!o||o.type!==`tool`)return;let c=n.isError?{...o,state:`output-error`,errorText:n.output||`The tool reported an error.`,output:null}:{...o,state:`output-available`,output:n.output},l=[...a.parts];l[r.partIndex]=c;let u={...a,parts:l};e[r.messageIndex]=u,t&&t.message.id===u.id&&(t.message=u);return}case`usage`:r={usage:n.usage,costUsd:n.costUsd};return;case`notice`:s(n.id,()=>({type:`notice`,level:n.level===`warning`?`medium`:`info`,code:null,userMessage:n.text,remedy:null}));return;case`error`:{let e=lT(n.text);if(t?.message.parts.some(t=>t.type===`error`&&t.message.trim()===e.trim()))return;s(n.id,()=>({type:`error`,errorType:`provider`,code:null,message:e,userMessage:e,recoverable:!0,remedy:null}));return}}},applyAll(e){for(let t of e)l.apply(t)},beginTurn(){o()},endTurn(n,r){n===`failed`&&r&&l.apply({kind:`error`,id:`run-error-${e.length}`,text:r}),n===`stopped`&&t&&l.apply({kind:`notice`,id:`run-stopped-${e.length}`,level:`info`,text:`You stopped this run.`}),c(n===`stopped`?`cancelled`:n===`failed`?`error`:`complete`)},messages(){return e.slice()},lastUsage(){return r}};return l}var aj=60,oj=25165824;function sj(e){return{data:e,loading:!1,error:null,loadedAt:null}}function cj(e){return e instanceof Error?e.message:String(e)}var lj=class{sessionId;client;thread;builder=ij();messages=[];listeners=new Set;seqMark=0;pending=[];activeRunId=null;activity=null;state={loading:!0,unavailable:null,truncated:!1};maxBytes=oj;constructor(e,t){this.sessionId=e,this.client=t,this.thread=eT({getSnapshot:()=>({messages:this.messages,status:this.status(),conversationId:this.sessionId,ephemeral:!1}),features:{surface:{sendWhileBusy:!0}},subscribe:e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}),onSubmit:async e=>{await this.client.send(this.sessionId,e.text)},onCancel:async()=>{let e=this.client.getState().runs[this.sessionId];e&&!iT(e.status)&&await this.client.stop(e.runId)}})}status(){let e=this.client.getState().runs[this.sessionId];return e?e.status===`starting`?`submitted`:e.status===`running`?`streaming`:`idle`:`idle`}notify(){this.messages=this.builder.messages();for(let e of this.listeners)e()}async loadEarlier(){this.state.truncated&&!this.state.loadingEarlier&&(this.maxBytes*=4,this.state={...this.state,loadingEarlier:!0},this.notify(),await this.load(!0))}async load(e=!1){e||(this.state={loading:!0,unavailable:null,truncated:!1},this.notify());try{let e=await this.client.transport.call(`history`,this.sessionId,{maxBytes:this.maxBytes});this.builder=ij(),this.builder.applyAll(e.items),this.seqMark=e.seq;let t=this.client.getState().runs[this.sessionId];t&&!iT(t.status)?(this.activeRunId=t.runId,this.builder.beginTurn()):this.builder.endTurn(`completed`),this.state={loading:!1,unavailable:e.unavailable,truncated:e.truncated};let n=this.pending;this.pending=[];for(let e of n)this.onEvent(e.event)}catch(e){this.state={loading:!1,unavailable:cj(e),truncated:!1}}this.notify()}onEvent(e){if(this.state.loading){e.type===`item`&&this.pending.push({seq:e.seq,event:e});return}if(e.type===`item`){if(e.seq<=this.seqMark)return;this.seqMark=e.seq,this.builder.apply(e.item),e.item.kind===`user`&&(this.activeRunId=e.runId,this.builder.beginTurn()),this.activity=uj(this.activity,e.item),this.notify();return}if(e.type===`run`){let t=e.run;iT(t.status)&&(this.activity=null,this.activeRunId===t.runId?(this.builder.endTurn(t.status,t.error),this.activeRunId=null):t.status===`failed`&&t.error&&this.builder.endTurn(`failed`,t.error)),this.notify()}}};function uj(e,t){switch(t.kind){case`user`:return`Thinking…`;case`text-delta`:return`Writing…`;case`text`:case`reasoning`:case`tool-result`:return`Thinking…`;case`tool-call`:{let e=gT(t.name,t.input);return`${pT(t.name)}${e?` — ${e}`:``}`}default:return e}}var dj=class{transport;state;listeners=new Set;transcripts=new Map;finishedListeners=new Set;onRunFinished=e=>(this.finishedListeners.add(e),()=>{this.finishedListeners.delete(e)});constructor(e){this.transport=e,this.state={connection:e.status(),providers:sj([]),sessions:sj([]),discovered:sj([]),folders:sj([]),runs:{},preferences:{},discoveredLimit:aj},e.onStatus(e=>{let t=this.state.connection.state===`open`;this.set({connection:e}),e.state===`open`&&!t&&this.refreshAll()}),e.subscribe(e=>this.onEvent(e))}getState=()=>this.state;subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});set(e){this.state={...this.state,...e};for(let e of this.listeners)e()}onEvent(e){if(e.type===`session`){let t=this.state.sessions.data.filter(t=>t.id!==e.session.id);t.unshift(e.session),t.sort((e,t)=>t.updatedAt.localeCompare(e.updatedAt)),this.set({sessions:{...this.state.sessions,data:t}})}else if(e.type===`run`){let t=this.state.runs[e.run.sessionId];if(this.set({runs:{...this.state.runs,[e.run.sessionId]:e.run}}),iT(e.run.status)&&(!t||t.runId!==e.run.runId||!iT(t.status))){let t=this.state.sessions.data.find(t=>t.id===e.run.sessionId)??null;for(let n of this.finishedListeners)n({run:e.run,session:t})}}else if(e.type===`preferences`){this.set({preferences:e.preferences});return}let t=e.type===`session`?e.session.id:e.type===`run`?e.run.sessionId:e.sessionId;this.transcripts.get(t)?.onEvent(e)}async load(e,t){this.set({[e]:{...this.state[e],loading:!0,error:null}});try{let n=await t();this.set({[e]:{data:n,loading:!1,error:null,loadedAt:Date.now()}})}catch(t){this.set({[e]:{...this.state[e],loading:!1,error:cj(t)}})}}refreshProviders=()=>this.load(`providers`,()=>this.transport.call(`providers`));refreshDiscovered=()=>this.load(`discovered`,()=>this.transport.call(`discoverSessions`,{limit:this.state.discoveredLimit}));showMoreDiscovered=async()=>{this.set({discoveredLimit:this.state.discoveredLimit+aj}),await this.refreshDiscovered()};refreshPreferences=async()=>{try{this.set({preferences:await this.transport.call(`chatPreferences`)})}catch{}};setPreference=async(e,t)=>{let n=this.state.preferences,r={...n[e],...t};this.set({preferences:{...n,[e]:r}});try{this.set({preferences:await this.transport.call(`setChatPreference`,e,t)})}catch(e){throw this.set({preferences:n}),e}};search(e,t=0){return this.transport.call(`searchChats`,e,{cursor:t,limit:30})}readRawTranscript(e,t){return this.transport.call(`readRawTranscript`,e,t)}openFolder(e,t){return this.transport.call(`openFolder`,e,t)}setSessionOptions(e,t){return this.transport.call(`setSessionOptions`,e,t)}refreshFolders=()=>this.load(`folders`,()=>this.transport.call(`recentFolders`));refreshSessions=async()=>{await this.load(`sessions`,()=>this.transport.call(`listSessions`));let e={};await Promise.all(this.state.sessions.data.map(async t=>{let n=await this.transport.call(`listRuns`,t.id).catch(()=>[]),r=n[n.length-1];r&&(e[t.id]=r)})),this.set({runs:{...e,...this.pickLive()}})};pickLive(){let e={};for(let[t,n]of Object.entries(this.state.runs))iT(n.status)||(e[t]=n);return e}refreshAll=async()=>{await Promise.all([this.refreshSessions(),this.refreshProviders(),this.refreshDiscovered(),this.refreshFolders(),this.refreshPreferences()]);for(let e of this.transcripts.values())e.load()};transcript(e){let t=this.transcripts.get(e);return t||(t=new lj(e,this),this.transcripts.set(e,t),t.load()),t}async readPreview(e,t,n){try{let r=await this.transport.call(`readTranscript`,e,t,n?{maxBytes:n}:void 0),i=ij();return i.applyAll(r.items),i.endTurn(`completed`),{loading:!1,messages:i.messages(),unavailable:r.unavailable,truncated:r.truncated}}catch(e){return{loading:!1,messages:[],unavailable:cj(e),truncated:!1}}}start(e){return this.transport.call(`start`,e)}takeover(e,t){return this.transport.call(`takeover`,{provider:e.provider,providerSessionId:e.providerSessionId,cwd:e.cwd??``,title:e.title,...t?{agent:t}:{}})}send(e,t){return this.transport.call(`send`,e,t)}stop(e){return this.transport.call(`stop`,e)}},fj=[`agent`,`folder`,`prompt`];async function pj(e){let t={},n=e.provider;if(n&&(!n.installed||!n.loggedIn)&&(t.agent=`${n.problem??`${n.label} can't run here yet.`} ${n.fix??``}`.trim()),!e.folder.trim())t.folder=`Choose a folder, or type one, for it to work in.`;else try{let n=await e.checkFolder(e.folder);n.exists?n.isDirectory||(t.folder=`That path is a file, not a folder.`):(t.folder=`That folder doesn't exist on this computer.`,t.createFolder=n.path)}catch(e){t.folder=`Couldn't check that folder: ${e instanceof Error?e.message:String(e)}`}return e.prompt.trim()||(t.prompt=`Tell it what to do first.`),t}function mj(e){return fj.find(t=>e[t]!==void 0)??null}function hj({transport:e,children:t}){let[n]=(0,_.useState)(()=>new dj(e));return(0,_.useEffect)(()=>{e.status().state===`open`&&n.refreshAll()},[n,e]),(0,j.jsx)(MT.Provider,{value:n,children:t})}function gj(){if(typeof location>`u`)return{kind:`none`};let[e,t,n]=location.hash.replace(/^#/,``).split(`/`);return e===`s`&&t?{kind:`session`,id:t}:e===`d`&&(t===`claude`||t===`codex`)&&n?{kind:`discovered`,provider:t,id:n}:{kind:`none`}}function _j(e){if(typeof history>`u`)return;let t=e.kind===`session`?`#s/${e.id}`:e.kind===`discovered`?`#d/${e.provider}/${e.id}`:``;history.replaceState(null,``,`${location.pathname}${location.search}${t}`)}function vj(){try{let e=localStorage.getItem(`coding-sessions.theme`);return e===`light`||e===`dark`?e:`system`}catch{return`system`}}function yj(){let[e,t]=(0,_.useState)(vj);return(0,_.useEffect)(()=>{let t=typeof window.matchMedia==`function`?window.matchMedia(`(prefers-color-scheme: dark)`):null,n=()=>{let n=e===`dark`||e===`system`&&t?.matches===!0;document.documentElement.classList.toggle(`dark`,n),document.documentElement.setAttribute(`data-theme`,n?`dark`:`light`)};return n(),t?.addEventListener(`change`,n),()=>t?.removeEventListener(`change`,n)},[e]),[e,(0,_.useCallback)(e=>{t(e);try{localStorage.setItem(`coding-sessions.theme`,e)}catch{}},[])]}var bj={starting:`Starting`,running:`Working`,completed:`Done`,stopped:`Stopped`,failed:`Failed`};function xj({run:e}){if(!e)return null;let t=!iT(e.status);return(0,j.jsxs)(`span`,{className:Y(`cs-pill`,`cs-pill--${e.status}`),children:[t?(0,j.jsx)(`span`,{className:`cs-pill__dot`,"aria-hidden":`true`}):null,bj[e.status]]})}function Sj(){let{connection:e}=PT();if(e.state===`open`)return null;let t=e.state===`closed`;return(0,j.jsxs)(`div`,{role:`status`,className:Y(`flex items-center gap-2 border-b px-4 py-2 text-[13px]`,t?`border-destructive/30 bg-destructive/10 text-destructive`:`border-border bg-muted/60 text-muted-foreground`),children:[t?(0,j.jsx)(WT,{size:15}):(0,j.jsx)(ZT,{size:14}),(0,j.jsx)(`span`,{children:t?e.reason:`Connecting to the coding sessions host…`})]})}function Cj(e){let t=PT(),n=NT(),r={system:`light`,light:`dark`,dark:`system`},i={system:`Match system`,light:`Light`,dark:`Dark`};return(0,j.jsx)(`div`,{className:`border-t border-border px-3 py-2.5`,children:(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,j.jsx)(`div`,{className:`flex min-w-0 flex-1 flex-wrap gap-1.5`,children:t.providers.loading&&t.providers.loadedAt===null?(0,j.jsx)(`span`,{className:`text-[11.5px] text-muted-foreground`,children:`Checking Claude Code and Codex…`}):t.providers.data.map(e=>(0,j.jsxs)(`span`,{className:Y(`cs-provider-chip`,e.ready?``:`cs-provider-chip--problem`),title:e.problem?`${e.problem} ${e.fix??``}`:[Aj(e)??e.label,e.plan,jj(e)].filter(Boolean).join(` · `),children:[(0,j.jsx)(eE,{provider:e.provider,size:13}),e.label,e.lastProblem?(0,j.jsx)(`span`,{className:`cs-provider-chip__note`,children:e.lastProblem.kind===`signed-out`?`· sign in again`:`· limit${aT(e.lastProblem.until)?` until ${aT(e.lastProblem.until)}`:``}`}):null,e.ready?(0,j.jsx)(UT,{size:12}):(0,j.jsx)(WT,{size:12})]},e.provider))}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>void n.refreshProviders(),"aria-label":`Check Claude Code and Codex again`,title:`Check again`,children:t.providers.loading?(0,j.jsx)(ZT,{size:13}):(0,j.jsx)(GT,{size:13})}),e.extra,(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>e.setTheme(r[e.theme]),"aria-label":`Theme: ${i[e.theme]}. Switch to ${i[r[e.theme]]}.`,title:`Theme: ${i[e.theme]}`,children:e.theme===`system`?(0,j.jsx)(YT,{size:14}):e.theme===`light`?(0,j.jsx)(qT,{size:14}):(0,j.jsx)(JT,{size:14})})]})})}function wj(){let e=(0,_.useContext)(pE);return(0,_.useMemo)(()=>({notify(t){e(t.message)}}),[e])}function Tj(e,t,n=null){let r=NT(),[i,a]=(0,_.useState)(n);return(0,_.useEffect)(()=>{if(!e||!t){a(null);return}let n=!1,i=()=>r.transport.call(`sessionActivity`,e,t).then(e=>{n||a(e)}).catch(()=>void 0);i();let o=setInterval(i,1e4);return()=>{n=!0,clearInterval(o)}},[r,e,t]),i}function Ej(e,t){let n=NT(),[r,i]=(0,_.useState)(null);return(0,_.useEffect)(()=>{let t=!1;return n.transport.call(`listRuns`,e).then(e=>{if(t)return;let n=0,r=null,a=null;for(let t of e)t.usage&&(n+=t.usage.inputTokens+t.usage.outputTokens+t.usage.cachedInputTokens),t.costUsd!==null&&(r=(r??0)+t.costUsd),a=t.billing??a;i(n>0||r!==null?{tokens:n,cost:r,billing:a,runs:e.length}:null)}).catch(()=>void 0),()=>{t=!0}},[n,e,t]),r}function Dj(e){return(0,j.jsxs)(FC,{children:[(0,j.jsx)(IC,{asChild:!0,children:(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button shrink-0`,"aria-label":`More for this chat`,title:`More`,children:(0,j.jsx)(nE,{size:16})})}),(0,j.jsxs)(WC,{align:`end`,className:`w-64`,onCloseAutoFocus:e=>e.preventDefault(),children:[e.onChanges?(0,j.jsxs)(GC,{onSelect:e.onChanges,children:[(0,j.jsx)(lE,{size:14}),e.changesOpen?`Hide changed files`:`Files this chat changed`]}):null,(0,j.jsx)(vE,{entry:e.entry,variant:`dropdown`,onRename:e.onRename})]})]})}function Oj(e){let t=NT(),n=(0,_.useContext)(pE),[r,i]=(0,_.useState)(e.entry.title);(0,_.useEffect)(()=>i(e.entry.title),[e.entry.title,e.renaming]);let a=(0,_.useRef)(null);if((0,_.useEffect)(()=>{if(!e.renaming)return;let t=setTimeout(()=>{let e=a.current;e&&document.activeElement!==e&&(e.focus(),e.select())},0);return()=>clearTimeout(t)},[e.renaming]),!e.renaming)return(0,j.jsx)(`h1`,{className:`truncate text-[15px] font-semibold leading-5 tracking-[-0.01em]`,title:e.entry.title===e.entry.originalTitle?e.entry.title:`${e.entry.title} (${e.entry.originalTitle})`,onDoubleClick:()=>e.setRenaming(!0),children:e.entry.title});let o=()=>{e.setRenaming(!1);let i=r.trim();if(i===e.entry.title)return;let a=i===``||i===e.entry.originalTitle?null:i;t.setPreference(e.entry.key,{title:a}).catch(e=>n(`The new name didn't save: ${e instanceof Error?e.message:String(e)}`))};return(0,j.jsx)(`input`,{ref:a,autoFocus:!0,value:r,onChange:e=>i(e.target.value),onFocus:e=>e.currentTarget.select(),onBlur:o,onKeyDown:t=>{t.key===`Enter`&&o(),t.key===`Escape`&&e.setRenaming(!1)},"aria-label":`New name for this chat`,className:`cs-rename-input !m-0 !h-6 !text-[15px] !font-semibold`})}function kj(e){return(0,j.jsxs)(`p`,{className:`mx-auto mt-3 flex items-center gap-2 text-[12px] text-muted-foreground`,children:[`This chat is very long — showing its most recent part.`,(0,j.jsx)(`button`,{type:`button`,className:`cs-link`,onClick:e.onEarlier,disabled:e.loading,children:e.loading?`Reading…`:`Show earlier`})]})}function Aj(e){return e.version?`${e.label} ${e.version}${e.binary?` · ${e.binary.sourceLabel}`:``}`:null}function jj(e){return e.binary?.newer?`Newer: ${e.binary.newer.version} ${e.binary.newer.sourceLabel}`:null}function Mj({session:e,changesOpen:t,setChangesOpen:n}){let r=NT(),i=PT(),a=(0,_.useContext)(pE),o=FT(e.id),s=i.runs[e.id],c=s!==void 0&&!iT(s.status),l=wj(),u=i.providers.data.find(t=>t.provider===e.provider)??null,d=u&&(!u.installed||!u.loggedIn)?u:null,f=!d&&u?.lastProblem?u:null,p=s?.status===`failed`&&cT(s.error),[m,h]=(0,_.useState)(!1),[g,v]=(0,_.useState)(!1),y=Tj(e.origin===`takeover`&&!c?e.provider:null,e.providerSessionId),b=ST(e,i.preferences),x=o.thread.getSnapshot().messages,S=CE(x),C=Ej(e.id,`${s?.runId??``}:${s?.status??``}`);(0,_.useEffect)(()=>{c||h(!1)},[c]);let w=async()=>{s&&(h(!0),await r.stop(s.runId).catch(()=>h(!1)))},T=t=>{r.setSessionOptions(e.id,{model:t.model,effort:t.effort}).then(()=>a(`The next message uses ${EE(t,u)}.`)).catch(e=>a(`That didn't save: ${e instanceof Error?e.message:String(e)}`))},E=C?`${ni(C.tokens,{style:`compact`})} tokens${C.cost===null?``:` · ${ei(C.cost)}`}`:null,D=C?`${ni(C.tokens)} tokens over ${C.runs} ${C.runs===1?`message`:`messages`} sent from here.`+(C.cost===null?``:C.billing===`subscription`?` ${ei(C.cost)} is what this would cost at API prices — it's covered by your ${u?.plan??``} plan.`.replace(` `,` `):` Billed ${ei(C.cost)} to your API key.`):``;return(0,j.jsxs)(`div`,{className:`flex min-w-0 flex-1`,children:[(0,j.jsxs)(`section`,{className:`flex min-w-0 flex-1 flex-col`,"aria-label":b.title,children:[(0,j.jsxs)(`header`,{className:`@container/header flex items-center gap-2 border-b border-border px-5 pt-2.5 pb-2.5`,children:[(0,j.jsx)(eE,{provider:e.provider,size:22}),(0,j.jsxs)(`div`,{className:`min-w-0 flex-1 overflow-hidden`,children:[(0,j.jsx)(Oj,{entry:b,renaming:g,setRenaming:v}),(0,j.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1 text-[12px] leading-5 text-muted-foreground`,children:[(0,j.jsx)(`span`,{className:`shrink-0`,children:tT[e.provider]}),(0,j.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,j.jsx)(DE,{status:u,value:{model:e.model,effort:e.effort??null},onChange:T}),(0,j.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,j.jsx)(HT,{size:12,className:`shrink-0`}),(0,j.jsx)(`span`,{className:`min-w-[4rem] truncate`,title:e.cwd,children:RT(e.cwd)}),E?(0,j.jsxs)(`span`,{className:`shrink-0`,title:D,children:[`· `,E]}):null]})]}),(0,j.jsx)(HA,{transport:r.transport,sessionId:e.id,agent:e.agent??null,onChange:()=>void 0}),(0,j.jsxs)(`button`,{type:`button`,className:Y(`cs-chip-button shrink-0 @max-[620px]/header:hidden`,t&&`cs-chip-button--on`),onClick:()=>n(!t),"aria-pressed":t,title:`Files this chat changed`,children:[(0,j.jsx)(lE,{size:13}),S.length>0?`${S.length} ${S.length===1?`file`:`files`} changed`:`Changes`]}),(0,j.jsx)(xj,{run:s}),c?(0,j.jsxs)(u_,{variant:`outline`,size:`sm`,onClick:()=>void w(),disabled:m,className:`gap-1.5`,title:`Stop Esc`,children:[m?(0,j.jsx)(ZT,{size:13}):(0,j.jsx)(VT,{size:13}),m?`Stopping…`:`Stop`]}):null,(0,j.jsx)(Dj,{entry:b,onRename:()=>v(!0),onChanges:()=>n(!t),changesOpen:t})]}),(0,j.jsx)(`div`,{className:`mx-chat flex min-h-0 flex-1 flex-col`,children:(0,j.jsxs)(ui,{thread:o.thread,ports:{notifier:l,toolLabel:pT},children:[(0,j.jsx)(`div`,{className:`min-h-0 flex-1 overflow-hidden`,children:o.state.loading?(0,j.jsxs)(`div`,{className:`flex h-full items-center justify-center gap-2 text-[13px] text-muted-foreground`,children:[(0,j.jsx)(ZT,{size:15}),` Loading the conversation…`]}):(0,j.jsxs)(`div`,{className:`flex h-full flex-col`,children:[o.state.unavailable?(0,j.jsx)(`p`,{className:`mx-auto mt-4 max-w-[720px] rounded-lg border border-border bg-muted/50 px-4 py-2.5 text-[13px] text-muted-foreground`,children:o.state.unavailable}):null,o.state.truncated?(0,j.jsx)(kj,{loading:o.state.loadingEarlier===!0,onEarlier:()=>void o.loadEarlier()}):null,x.length===0&&!c?(0,j.jsx)(`div`,{className:`flex flex-1 items-center justify-center text-[13px] text-muted-foreground`,children:e.origin===`takeover`?`You've taken over this chat. Send a message to continue it.`:`Nothing here yet.`}):(0,j.jsx)(jw,{className:`min-h-0 flex-1`,label:`Conversation: ${b.title}`})]})}),(0,j.jsxs)(`div`,{"data-cs-composer":!0,className:`mx-auto w-full max-w-[820px] px-4 pb-4`,children:[f?(0,j.jsxs)(`div`,{className:`mb-2 flex items-start gap-2 rounded-lg border border-warning/40 bg-warning/10 px-3 py-2 text-[12.5px]`,children:[(0,j.jsx)(WT,{size:15,className:`mt-0.5 shrink-0 text-warning`}),(0,j.jsxs)(`span`,{children:[f.problem,` `,f.fix]})]}):null,p&&!d?(0,j.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 rounded-lg border border-warning/40 bg-warning/10 px-3 py-2 text-[12.5px]`,role:`alert`,children:[(0,j.jsx)(WT,{size:15,className:`shrink-0 text-warning`}),(0,j.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,title:s?.error??void 0,children:sT}),(0,j.jsx)(DE,{status:u,value:{model:e.model,effort:e.effort??null},onChange:T})]}):null,d?(0,j.jsxs)(`div`,{className:`mb-2 flex items-start gap-2 rounded-lg border border-warning/40 bg-warning/10 px-3 py-2 text-[12.5px]`,children:[(0,j.jsx)(WT,{size:15,className:`mt-0.5 shrink-0 text-warning`}),(0,j.jsxs)(`span`,{children:[d.problem,` `,d.fix]})]}):null,(0,j.jsx)(`div`,{className:`cs-activity`,role:`status`,"aria-live":`polite`,"data-idle":!c||void 0,children:c?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(ZT,{size:13}),(0,j.jsx)(`span`,{className:`truncate`,children:s?.status===`starting`?`Starting ${tT[e.provider]}…`:o.activity??`Thinking…`}),(0,j.jsx)(`span`,{className:`ml-auto shrink-0 text-[11px] opacity-70`,children:`Esc to stop`})]}):null}),y?(0,j.jsxs)(`div`,{className:`mb-2 flex items-start gap-2 rounded-lg border border-warning/40 bg-warning/10 px-3 py-2 text-[12.5px]`,children:[(0,j.jsx)(WT,{size:15,className:`mt-0.5 shrink-0 text-warning`}),(0,j.jsxs)(`span`,{children:[y.message,` A message sent here would put a second agent on the same chat.`]})]}):null,e.queued.length>0?(0,j.jsx)(`ul`,{className:`mb-2 space-y-1.5`,"aria-label":`Queued messages`,children:e.queued.map((e,t)=>(0,j.jsxs)(`li`,{className:`cs-queued`,children:[(0,j.jsx)(`span`,{className:`cs-queued__label`,children:`Queued · sends when this run finishes`}),(0,j.jsx)(`span`,{className:`cs-queued__text`,children:e})]},`${t}-${e.slice(0,16)}`))}):null,(0,j.jsx)($w,{placeholder:`Message ${tT[e.provider]}…`,autoFocus:!0,...d?{held:{reason:`${d.problem} ${d.fix??``}`.trim()}}:{}})]})]})})]}),t?(0,j.jsx)(wE,{files:S,cwd:e.cwd,truncated:o.state.truncated,onClose:()=>n(!1)}):null]})}function Nj(e,t){let n=(0,_.useRef)({messages:[],listeners:new Set}),r=(0,_.useRef)(t);return r.current=t,[(0,_.useMemo)(()=>eT({getSnapshot:()=>({messages:n.current.messages,status:`idle`,conversationId:e}),subscribe:e=>(n.current.listeners.add(e),()=>{n.current.listeners.delete(e)}),onSubmit:()=>r.current()}),[e]),(0,_.useCallback)(e=>{n.current.messages=e;for(let e of n.current.listeners)e()},[])]}function Pj(e){let t=NT(),n=PT(),r=(0,_.useContext)(pE),i=IT(),[a,o]=(0,_.useState)({loading:!0,messages:[],unavailable:null,truncated:!1}),[s,c]=(0,_.useState)(!1),[l,u]=(0,_.useState)(null),[d,f]=(0,_.useState)(!1),[p,m]=(0,_.useState)(!1),[h,g]=(0,_.useState)(void 0),[v,y]=(0,_.useState)(!1),b=Tj(e.provider,e.id,e.session?.activeElsewhere??null),x=CE(a.messages),S=e.session,[C,w]=Nj(e.id,()=>r(S?.cwd?`This chat is read-only until you take it over. Press Take over to continue it here.`:`This chat is read-only here: it doesn't record its folder, so it can't be continued.`));(0,_.useEffect)(()=>{let n=!1,r=r=>t.readPreview(e.provider,e.id,h).then(e=>{n||(w(e.messages),o(e),r&&y(!1))});h===void 0&&o({loading:!0,messages:[],unavailable:null,truncated:!1}),r(!0);let i=b?setInterval(()=>void r(!1),8e3):null;return()=>{n=!0,i&&clearInterval(i)}},[t,e.provider,e.id,h,b!==null,w]);let T=wj(),E=CT(S??{provider:e.provider,providerSessionId:e.id,cwd:null,title:`Chat`,updatedAt:``,source:null,activeElsewhere:null},n.preferences),D=()=>{b?f(!0):A()},[O,k]=(0,_.useState)(!1),A=async n=>{if(S){f(!1),c(!0),u(null);try{let r=await t.takeover(S,n);e.onTakenOver(r.id)}catch(e){u(e instanceof Error?e.message:String(e))}finally{c(!1)}}};return(0,j.jsxs)(`div`,{className:`flex min-w-0 flex-1`,children:[(0,j.jsxs)(`section`,{className:`flex min-w-0 flex-1 flex-col`,"aria-label":E.title,children:[(0,j.jsxs)(`header`,{className:`@container/header flex items-center gap-2 border-b border-border px-5 pt-2.5 pb-2.5`,children:[(0,j.jsx)(eE,{provider:e.provider,size:22}),(0,j.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,j.jsx)(Oj,{entry:E,renaming:p,setRenaming:m}),(0,j.jsxs)(`p`,{className:`flex items-center gap-1.5 truncate text-[12px] leading-4 text-muted-foreground`,children:[(0,j.jsx)(`span`,{children:tT[e.provider]}),S?.cwd?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,j.jsx)(HT,{size:12}),(0,j.jsx)(`span`,{className:`truncate`,title:S.cwd,children:RT(S.cwd)})]}):null,S?(0,j.jsxs)(`span`,{children:[`· last active `,LT(S.updatedAt,i)]}):null]})]}),x.length>0?(0,j.jsxs)(`button`,{type:`button`,className:`cs-chip-button`,onClick:()=>e.setChangesOpen(!e.changesOpen),"aria-pressed":e.changesOpen,title:`Files this chat changed`,children:[(0,j.jsx)(lE,{size:13}),`${x.length} ${x.length===1?`file`:`files`} changed`]}):null,S?.cwd?(0,j.jsxs)(u_,{size:`sm`,variant:b?`outline`:`default`,onClick:D,disabled:s,className:`gap-1.5`,title:b?b.message:void 0,children:[s?(0,j.jsx)(ZT,{size:13}):b?(0,j.jsx)(WT,{size:14,className:`text-warning`}):(0,j.jsx)(KT,{size:14}),b?`Take over anyway…`:`Take over`]}):null,S?.cwd&&!b?(0,j.jsx)(u_,{size:`sm`,variant:`outline`,onClick:()=>k(!0),disabled:s,children:`Continue with agent…`}):null,(0,j.jsx)(WA,{transport:t.transport,open:O,onOpenChange:k,title:`Continue with an agent`,action:`Take over with this agent`,onConfirm:e=>A(e)}),S?(0,j.jsx)(Dj,{entry:E,onRename:()=>m(!0)}):null]}),b?(0,j.jsxs)(`div`,{role:`status`,className:`flex items-start gap-2 border-b border-warning/40 bg-warning/10 px-5 py-2.5 text-[13px]`,children:[(0,j.jsx)(WT,{size:15,className:`mt-0.5 shrink-0 text-warning`}),(0,j.jsxs)(`span`,{children:[(0,j.jsx)(`span`,{className:`font-medium`,children:b.message}),` Taking it over now would put two agents on the same chat, and they could overwrite each other's work. Finish or stop it there first if you can. This preview follows it as it runs.`]})]}):null,(0,j.jsx)(NS,{open:d,onOpenChange:f,children:(0,j.jsxs)(KS,{className:`max-w-[460px]`,children:[(0,j.jsxs)(qS,{children:[(0,j.jsxs)(YS,{children:[`This chat is running right now in `,tT[e.provider]]}),(0,j.jsxs)(XS,{children:[b?.message,` If you take it over, two agents will work in the same conversation at once and may overwrite each other's changes.`]})]}),(0,j.jsxs)(JS,{children:[(0,j.jsx)(u_,{variant:`ghost`,onClick:()=>f(!1),children:`Cancel`}),(0,j.jsx)(u_,{variant:`destructive`,onClick:()=>void A(),children:`Take over anyway`})]})]})}),l?(0,j.jsx)(`p`,{className:`border-b border-destructive/30 bg-destructive/10 px-5 py-2 text-[13px] text-destructive`,children:l}):null,S&&!S.cwd?(0,j.jsx)(`p`,{className:`border-b border-border bg-muted/50 px-5 py-2 text-[13px] text-muted-foreground`,children:`This chat doesn't record which folder it ran in, so it can't be continued from here.`}):null,(0,j.jsxs)(`div`,{className:`mx-chat flex min-h-0 flex-1 flex-col`,children:[a.loading?(0,j.jsxs)(`div`,{className:`flex flex-1 items-center justify-center gap-2 text-[13px] text-muted-foreground`,children:[(0,j.jsx)(ZT,{size:15}),` Reading this chat…`]}):a.unavailable?(0,j.jsx)(`div`,{className:`flex flex-1 items-center justify-center px-6 text-center text-[13px] text-muted-foreground`,children:a.unavailable}):(0,j.jsxs)(ui,{thread:C,ports:{notifier:T,toolLabel:pT},children:[a.truncated?(0,j.jsx)(kj,{loading:v,onEarlier:()=>{y(!0),g(e=>(e??25165824)*4)}}):null,(0,j.jsx)(jw,{className:`min-h-0 flex-1`,label:`Chat preview`})]}),S?.cwd?(0,j.jsxs)(`div`,{className:`border-t border-border bg-muted/30 px-5 py-3 text-center text-[13px] text-muted-foreground`,children:[`This chat was started in `,tT[e.provider],`.`,` `,(0,j.jsx)(`button`,{type:`button`,className:`font-medium text-foreground underline-offset-4 hover:underline`,onClick:D,children:`Take it over`}),` `,`to continue it here — it stays in your `,tT[e.provider],` history too.`]}):null]})]}),e.changesOpen&&x.length>0?(0,j.jsx)(wE,{files:x,cwd:S?.cwd??null,truncated:a.truncated,onClose:()=>e.setChangesOpen(!1)}):null]})}function Fj(e){let t=e.status.ready;return(0,j.jsxs)(`button`,{type:`button`,onClick:e.onSelect,"aria-pressed":e.selected,className:Y(`flex flex-1 flex-col gap-1.5 rounded-xl border px-3.5 py-3 text-left transition-colors`,e.selected?`border-primary bg-primary/5 ring-1 ring-primary`:`border-border hover:bg-accent/50`),children:[(0,j.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(eE,{provider:e.status.provider,size:18}),(0,j.jsx)(`span`,{className:`text-[13.5px] font-semibold`,children:e.status.label})]}),t?(0,j.jsxs)(`span`,{className:`flex items-center gap-1 text-[12px] text-success`,children:[(0,j.jsx)(UT,{size:13}),e.status.billing===`subscription`?`Signed in${e.status.plan?` · ${e.status.plan} plan`:``}`:`Signed in with an API key (billed per use)`]}):(0,j.jsxs)(`span`,{className:`flex items-start gap-1 text-[12px] leading-4 text-warning`,children:[(0,j.jsx)(WT,{size:13,className:`mt-px shrink-0`}),e.status.problem]}),e.status.quota.filter(e=>e.usedPercent!==null).length>0?(0,j.jsx)(`span`,{className:`text-[11.5px] leading-4 text-muted-foreground`,children:e.status.quota.filter(e=>e.usedPercent!==null).map(e=>`${e.label}: ${e.usedPercent}% used`).join(` · `)}):null]})}function Ij({id:e,children:t}){return(0,j.jsxs)(`p`,{id:e,role:`alert`,className:`flex items-start gap-1.5 text-[12.5px] leading-5 text-destructive`,children:[(0,j.jsx)(WT,{size:14,className:`mt-0.5 shrink-0`}),(0,j.jsx)(`span`,{children:t})]})}function Lj(e){let t=NT(),n=PT(),r=IT(),[i,a]=(0,_.useState)(`claude`),[o,s]=(0,_.useState)(``),[c,l]=(0,_.useState)({model:null,effort:null}),[u,d]=(0,_.useState)(``),[f,p]=(0,_.useState)({}),[m,h]=(0,_.useState)(null),[g,v]=(0,_.useState)(!1),[y,b]=(0,_.useState)(!1),[x,S]=(0,_.useState)(null),[C,w]=(0,_.useState)(null),[T,E]=(0,_.useState)(null),D=(0,_.useRef)(null),O=(0,_.useRef)(null),k=(0,_.useRef)(null);(0,_.useEffect)(()=>{e.open&&(h(null),p({}),t.refreshProviders(),t.refreshFolders())},[e.open,t]),(0,_.useEffect)(()=>{!o&&n.folders.data[0]?.exists&&s(n.folders.data[0].path)},[n.folders.data,o]),(0,_.useEffect)(()=>{let e=n.providers.data.filter(e=>e.ready),t=n.providers.data.find(e=>e.provider===i);t&&!t.ready&&e[0]&&a(e[0].provider)},[n.providers.loadedAt]);let A=n.providers.data.find(e=>e.provider===i)??null,M=e=>{e===`prompt`?D.current?.focus():e===`folder`?O.current?.focus():e===`agent`&&k.current?.querySelector(`button`)?.focus()},N=async()=>{if(g)return;h(null);let n=await pj({provider:A,folder:o,prompt:u,checkFolder:e=>t.transport.call(`checkFolder`,e)});p(n);let r=mj(n);if(r){M(r);return}let a=zA(C,x);if(E(a),a){document.getElementById(`cs-agent-var-${a}`)?.focus();return}v(!0);try{let n=await t.start({provider:i,cwd:o.trim(),prompt:u,model:c.model,effort:c.effort,...x?{agent:x}:{}});d(``),e.onStarted(n.session.id)}catch(e){h(e instanceof Error?e.message:String(e))}finally{v(!1)}},P=async()=>{if(f.createFolder){b(!0);try{let e=await t.transport.call(`createFolder`,f.createFolder);s(e.path),p(e=>{let t={...e};return delete t.folder,delete t.createFolder,t}),t.refreshFolders(),O.current?.focus()}catch(e){p(t=>({...t,folder:`Couldn't create it: ${e instanceof Error?e.message:String(e)}`}))}finally{b(!1)}}},F=e=>p(t=>{if(t[e]===void 0)return t;let n={...t};return delete n[e],e===`folder`&&delete n.createFolder,n});return(0,j.jsx)(NS,{open:e.open,onOpenChange:e.onOpenChange,children:(0,j.jsxs)(KS,{className:`max-w-[560px]`,children:[(0,j.jsxs)(qS,{children:[(0,j.jsx)(YS,{children:`New coding session`}),(0,j.jsxs)(XS,{children:[`Runs on your own `,i===`claude`?`Claude`:`ChatGPT`,` sign-in, in a folder on this computer.`]})]}),(0,j.jsxs)(`form`,{noValidate:!0,onSubmit:e=>{e.preventDefault(),N()},className:`flex min-h-0 flex-col`,children:[(0,j.jsxs)(`div`,{className:`cs-dialog-body space-y-5 py-1 pr-1`,children:[(0,j.jsxs)(`fieldset`,{className:`space-y-2`,ref:k,children:[(0,j.jsx)(`legend`,{className:`mb-2 text-[12.5px] font-medium`,children:`Agent`}),n.providers.loading&&n.providers.loadedAt===null?(0,j.jsxs)(`div`,{className:`flex gap-2`,children:[(0,j.jsx)(`div`,{className:`cs-skeleton h-[68px] flex-1 rounded-xl`}),(0,j.jsx)(`div`,{className:`cs-skeleton h-[68px] flex-1 rounded-xl`})]}):n.providers.error?(0,j.jsx)(`p`,{className:`text-[12.5px] text-destructive`,children:n.providers.error}):(0,j.jsx)(`div`,{className:`flex gap-2`,children:n.providers.data.map(e=>(0,j.jsx)(Fj,{status:e,selected:e.provider===i,onSelect:()=>{e.provider!==i&&l({model:null,effort:null}),a(e.provider),F(`agent`)}},e.provider))}),f.agent?(0,j.jsx)(Ij,{id:`cs-err-agent`,children:f.agent}):A&&!A.ready&&A.fix?(0,j.jsxs)(`p`,{className:`text-[12px] leading-4 text-muted-foreground`,children:[A.fix,A.installed&&A.loggedIn?` You can still try — the run will say if it's still blocked.`:``]}):null]}),(0,j.jsxs)(`fieldset`,{className:`space-y-2`,children:[(0,j.jsx)(`legend`,{className:`mb-2 text-[12.5px] font-medium`,children:`AI Matrx agent`}),(0,j.jsx)(RA,{transport:t.transport,open:e.open,value:x,onChange:e=>{S(e),E(null)},missing:T,onDetails:w})]}),(0,j.jsxs)(`fieldset`,{className:`space-y-2`,children:[(0,j.jsx)(`legend`,{className:`mb-2 text-[12.5px] font-medium`,children:`Folder`}),n.folders.data.length>0?(0,j.jsx)(`div`,{className:`max-h-[132px] space-y-0.5 overflow-y-auto rounded-lg border border-border p-1`,children:n.folders.data.map(e=>(0,j.jsxs)(`button`,{type:`button`,onClick:()=>{s(e.path),F(`folder`)},disabled:!e.exists,title:e.exists?e.path:`${e.path} no longer exists`,className:Y(`flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-[12.5px]`,o===e.path?`bg-accent text-accent-foreground`:`hover:bg-accent/50`,!e.exists&&`opacity-50`),children:[(0,j.jsx)(HT,{size:14,className:`shrink-0 text-muted-foreground`}),(0,j.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:RT(e.path)}),(0,j.jsx)(`span`,{className:`shrink-0 text-[11px] text-muted-foreground`,children:e.exists?LT(e.lastUsedAt,r):`missing`})]},e.path))}):n.folders.loading?(0,j.jsx)(`div`,{className:`cs-skeleton h-10 rounded-lg`}):null,(0,j.jsx)(ZC,{ref:O,value:o,onChange:e=>{s(e.target.value),F(`folder`)},placeholder:`Or type a folder path, like ~/code/my-app`,"aria-label":`Folder path`,"aria-invalid":f.folder?!0:void 0,"aria-describedby":f.folder?`cs-err-folder`:void 0,spellCheck:!1}),f.folder?(0,j.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1`,children:[(0,j.jsx)(Ij,{id:`cs-err-folder`,children:f.folder}),f.createFolder?(0,j.jsxs)(u_,{type:`button`,size:`sm`,variant:`outline`,onClick:()=>void P(),disabled:y,className:`gap-1.5`,children:[y?(0,j.jsx)(ZT,{size:13}):(0,j.jsx)(HT,{size:13}),`Create this folder`]}):null]}):null]}),(0,j.jsxs)(`fieldset`,{className:`space-y-2`,children:[(0,j.jsx)(`legend`,{className:`mb-2 text-[12.5px] font-medium`,children:`What should it do?`}),(0,j.jsx)(lw,{ref:D,value:u,onChange:e=>{d(e.target.value),F(`prompt`)},onKeyDown:e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),N())},placeholder:`Describe the change, the bug, or the question…`,rows:4,"aria-label":`First message`,"aria-invalid":f.prompt?!0:void 0,"aria-describedby":f.prompt?`cs-err-prompt`:void 0}),f.prompt?(0,j.jsx)(Ij,{id:`cs-err-prompt`,children:f.prompt}):null]}),(0,j.jsxs)(`fieldset`,{className:`space-y-2`,children:[(0,j.jsx)(`legend`,{className:`mb-2 text-[12.5px] font-medium`,children:`Model and thinking effort`}),(0,j.jsx)(DE,{status:A,value:c,onChange:l,appearance:`field`}),(0,j.jsxs)(`p`,{className:`text-[11.5px] leading-4 text-muted-foreground`,children:[`Default is `,TE(A),`. You can change it later from the chat's header.`]})]}),m?(0,j.jsx)(Ij,{id:`cs-err-start`,children:m}):null]}),(0,j.jsxs)(JS,{className:`pt-4`,children:[(0,j.jsx)(u_,{type:`button`,variant:`ghost`,onClick:()=>e.onOpenChange(!1),children:`Cancel`}),(0,j.jsxs)(u_,{type:`submit`,disabled:g,className:`gap-1.5`,children:[g?(0,j.jsx)(ZT,{size:14}):null,g?`Starting…`:`Start session`,g?null:(0,j.jsx)(`kbd`,{className:`cs-kbd`,children:`⌘↵`})]})]})]})]})})}function Rj({onNew:e}){let t=PT();return(0,j.jsx)(`section`,{className:`flex flex-1 items-center justify-center px-6`,children:(0,j.jsxs)(`div`,{className:`w-full max-w-[460px] text-center`,children:[(0,j.jsx)(`span`,{className:`mx-auto mb-4 flex h-11 w-11 items-center justify-center rounded-2xl bg-primary/10 text-primary`,children:(0,j.jsx)(XT,{size:22})}),(0,j.jsx)(`h1`,{className:`text-[15px] font-semibold leading-5 tracking-[-0.01em]`,children:`Drive Claude Code and Codex from here`}),(0,j.jsx)(`p`,{className:`mx-auto mt-2 max-w-[400px] text-[13.5px] leading-6 text-muted-foreground`,children:`Start a session in any folder, or pick up a chat you began somewhere else. Everything runs on your own subscriptions — no API keys.`}),(0,j.jsxs)(u_,{className:`mt-5 gap-1.5`,onClick:e,children:[(0,j.jsx)(BT,{size:15}),`New session`]}),(0,j.jsxs)(`p`,{className:`mt-3 text-[12px] text-muted-foreground`,children:[(0,j.jsx)(`kbd`,{className:`cs-kbd`,children:`⌥⌘N`}),` new session · `,(0,j.jsx)(`kbd`,{className:`cs-kbd`,children:`⌘K`}),` search your chats ·`,` `,(0,j.jsx)(`kbd`,{className:`cs-kbd`,children:`⌘/`}),` all shortcuts`]}),(0,j.jsx)(`div`,{className:`mt-6 flex flex-wrap justify-center gap-2 text-left`,children:t.providers.data.map(e=>(0,j.jsxs)(`div`,{"data-provider-card":e.provider,title:e.installed&&e.version?[Aj(e),jj(e)??e.binary?.path].filter(Boolean).join(` · `):void 0,className:`flex w-[260px] items-start gap-2.5 rounded-lg border border-border bg-card px-3 py-2.5`,children:[(0,j.jsx)(eE,{provider:e.provider,size:16}),(0,j.jsxs)(`div`,{className:`min-w-0 flex-1 leading-5`,children:[(0,j.jsx)(`span`,{className:`block truncate text-[14px] font-semibold`,children:e.label}),e.ready?(0,j.jsxs)(`span`,{className:`block truncate text-[12px] text-muted-foreground`,children:[`Ready`,e.plan?` on your ${e.plan} plan`:``,e.billing===`api`?` (API key, billed per use)`:``]}):(0,j.jsxs)(`span`,{className:`block text-[12px] text-muted-foreground`,children:[e.problem,` `,e.fix]})]}),e.ready?(0,j.jsx)(UT,{size:15,className:`mt-0.5 text-success`}):(0,j.jsx)(WT,{size:15,className:`mt-0.5 text-warning`})]},e.provider))})]})})}function zj(){let[e,t]=(0,_.useState)(null),n=(0,_.useRef)(null);(0,_.useEffect)(()=>()=>{n.current&&clearTimeout(n.current)},[]);let r=(0,_.useCallback)((e,r=null)=>{t({text:e,sessionId:r}),n.current&&clearTimeout(n.current),n.current=setTimeout(()=>t(null),6e3)},[]),i=(0,_.useCallback)(()=>{n.current&&clearTimeout(n.current),t(null)},[]);return{text:e?.text??null,sessionId:e?.sessionId??null,show:r,dismiss:i}}function Bj({text:e}){let t=(0,_.useRef)(null);return(0,_.useLayoutEffect)(()=>{let e=t.current,n=e?.parentElement;if(!e||!n)return;let r=n.querySelector(`[data-cs-composer]`),i=r?n.getBoundingClientRect().bottom-r.getBoundingClientRect().top+8:20;e.style.setProperty(`--cs-toast-bottom`,`${Math.max(20,Math.round(i))}px`)},[e]),e?(0,j.jsx)(`div`,{ref:t,role:`status`,"data-cs-toast":!0,className:`cs-toast`,children:e}):null}var Vj=300,Hj=220,Uj=560;function Wj(e){return Math.round(Math.min(Uj,Math.max(Hj,e)))}function Gj(){let[e,t]=(0,_.useState)(()=>{try{let e=Number(localStorage.getItem(`coding-sessions.sidebar-width`));return Number.isFinite(e)&&e>0?Wj(e):Vj}catch{return Vj}}),[n,r]=(0,_.useState)(()=>{try{return localStorage.getItem(`coding-sessions.sidebar-collapsed`)===`1`}catch{return!1}});return{width:e,setWidth:(0,_.useCallback)(e=>{let n=Wj(e);t(n);try{localStorage.setItem(`coding-sessions.sidebar-width`,String(n))}catch{}},[]),collapsed:n,setCollapsed:(0,_.useCallback)(e=>{r(e);try{localStorage.setItem(`coding-sessions.sidebar-collapsed`,e?`1`:`0`)}catch{}},[])}}function Kj(e){let[t,n]=(0,_.useState)(!1);return(0,j.jsx)(`div`,{className:Y(`cs-resizer`,t&&`cs-resizer--dragging`),children:(0,j.jsx)(`button`,{type:`button`,className:`cs-resizer__grip`,role:`separator`,"aria-orientation":`vertical`,"aria-label":`Resize the sidebar`,"aria-valuenow":e.width,"aria-valuemin":Hj,"aria-valuemax":Uj,title:`Drag to resize · double-click to reset`,onDoubleClick:()=>e.setWidth(Vj),onKeyDown:t=>{t.key===`ArrowLeft`&&e.setWidth(e.width-16),t.key===`ArrowRight`&&e.setWidth(e.width+16)},onPointerDown:t=>{t.preventDefault();let r=t.clientX,i=e.width;n(!0),document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`;let a=t=>e.setWidth(i+t.clientX-r),o=()=>{n(!1),document.body.style.cursor=``,document.body.style.userSelect=``,window.removeEventListener(`pointermove`,a),window.removeEventListener(`pointerup`,o)};window.addEventListener(`pointermove`,a),window.addEventListener(`pointerup`,o)}})})}var qj=[{keys:`⌘K`,what:`Search chats`},{keys:`⌥⌘N`,what:`New session`},{keys:`Enter`,what:`Send (Shift+Enter for a new line)`},{keys:`Esc`,what:`Stop the run in the open chat`},{keys:`⌘B`,what:`Show or hide the sidebar`},{keys:`⌥↑ / ⌥↓`,what:`Previous or next chat in the list`},{keys:`⌘/`,what:`These shortcuts`}];function Jj(e){return(0,j.jsx)(NS,{open:e.open,onOpenChange:e.onOpenChange,children:(0,j.jsxs)(KS,{className:`max-w-[420px]`,children:[(0,j.jsxs)(qS,{children:[(0,j.jsx)(YS,{children:`Keyboard shortcuts`}),(0,j.jsx)(XS,{children:`Ctrl works in place of ⌘ on Windows and Linux.`})]}),(0,j.jsx)(`dl`,{className:`divide-y divide-border text-[13px]`,children:qj.map(e=>(0,j.jsxs)(`div`,{className:`flex items-center justify-between gap-4 py-2`,children:[(0,j.jsx)(`dt`,{className:`text-muted-foreground`,children:e.what}),(0,j.jsx)(`dd`,{children:(0,j.jsx)(`kbd`,{className:`rounded border border-border px-1.5 py-0.5 font-sans text-[12px]`,children:e.keys})})]},e.keys))})]})})}var Yj=`Coding sessions`;function Xj(e,t){let{show:n,dismiss:r,sessionId:i}=t,a=PT();(0,_.useEffect)(()=>{if(!i)return;let t=a.runs[i];(e===i||t&&(t.status===`starting`||t.status===`running`))&&r()},[i,e,a.runs,r]);let o=NT(),s=(0,_.useRef)(0),c=(0,_.useRef)(e);c.current=e,(0,_.useEffect)(()=>{let e=()=>{document.visibilityState===`visible`&&(s.current=0,document.title=Yj)};document.addEventListener(`visibilitychange`,e);let t=o.onRunFinished(({run:e,session:t})=>{let r=t?.title??`A session`,i=e.status===`completed`?`finished`:e.status===`failed`?`failed`:`was stopped`,a=`${tT[e.provider]} ${i}: ${r}`;if(document.visibilityState===`hidden`){if(s.current+=1,document.title=`(${s.current}) ${Yj}`,typeof Notification<`u`&&Notification.permission===`granted`){let t=new Notification(a,e.error?{tag:e.runId,body:lT(e.error)}:{tag:e.runId});t.onclick=()=>{window.focus(),location.hash=`#s/${e.sessionId}`,t.close()}}}else c.current!==e.sessionId&&e.status!==`stopped`&&n(a,e.sessionId)});return()=>{t(),document.removeEventListener(`visibilitychange`,e)}},[o,n])}function Zj(){let e=typeof Notification<`u`,[t,n]=(0,_.useState)(e?Notification.permission:`denied`);return!e||t===`granted`?null:(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>void Notification.requestPermission().then(n),"aria-label":t===`denied`?`Notifications are blocked for this page in your browser's site settings`:`Notify me when a run finishes`,title:t===`denied`?`Notifications are blocked in your browser's site settings`:`Notify me when a run finishes`,disabled:t===`denied`,children:(0,j.jsx)(fE,{size:14})})}function Qj(e){let t=e;return t?t.isContentEditable||t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.tagName===`SELECT`:!1}function $j(){let e=NT(),t=PT(),[n,r]=(0,_.useState)(gj),[i,a]=(0,_.useState)(!1),[o,s]=(0,_.useState)(!1),[c,l]=(0,_.useState)(!1),[u,d]=(0,_.useState)({}),[f,p]=yj(),m=zj(),h=m.show,g=Gj(),v=(0,_.useRef)(null),y=(0,_.useCallback)(e=>{r(e),_j(e)},[]);(0,_.useEffect)(()=>{let e=()=>r(gj());return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},[]),Xj(n.kind===`session`?n.id:null,m);let b=n.kind===`session`?t.sessions.data.find(e=>e.id===n.id)??null:null,x=n.kind===`discovered`?t.discovered.data.find(e=>e.providerSessionId===n.id)??u[`${n.provider}:${n.id}`]??null:null,S=b?t.runs[b.id]:void 0,C=S!==void 0&&!iT(S.status),w=(0,_.useMemo)(()=>{let e=new Set(t.sessions.data.map(e=>e.providerSessionId).filter(Boolean));return[...t.sessions.data.map(e=>({kind:`session`,id:e.id})),...t.discovered.data.filter(t=>!e.has(t.providerSessionId)).map(e=>({kind:`discovered`,provider:e.provider,id:e.providerSessionId}))]},[t.sessions.data,t.discovered.data]);(0,_.useEffect)(()=>{let t=t=>{let r=t.metaKey||t.ctrlKey,i=t.key.toLowerCase();if(r&&!t.shiftKey&&!t.altKey&&i===`k`){t.preventDefault(),g.setCollapsed(!1),requestAnimationFrame(()=>{v.current?.focus(),v.current?.select()});return}if(r&&t.altKey&&(i===`n`||t.code===`KeyN`)||r&&t.shiftKey&&i===`o`){t.preventDefault(),a(!0);return}if(r&&!t.shiftKey&&!t.altKey&&i===`b`){t.preventDefault(),g.setCollapsed(!g.collapsed);return}if(r&&i===`/`){t.preventDefault(),s(!0);return}if(t.altKey&&!r&&(t.key===`ArrowUp`||t.key===`ArrowDown`)){let e=w.findIndex(e=>(e.kind===`session`&&n.kind===`session`||e.kind===`discovered`&&n.kind===`discovered`)&&e.id===n.id),r=w[t.key===`ArrowUp`?Math.max(0,e-1):Math.min(w.length-1,e+1)];r&&(t.preventDefault(),y(r));return}if(t.key===`Escape`&&C&&S&&!t.defaultPrevented){if(document.querySelector(`[role="dialog"], [role="menu"], [data-radix-popper-content-wrapper]`)||t.target===v.current)return;t.preventDefault(),e.stop(S.runId),h(`Stopping…`);return}t.key===`?`&&!Qj(t.target)&&s(!0)};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e,g,C,S,w,n,y,h]);let T;return T=n.kind===`session`?b?(0,j.jsx)(Mj,{session:b,changesOpen:c,setChangesOpen:l},b.id):t.sessions.loadedAt===null?(0,j.jsxs)(`div`,{className:`flex flex-1 items-center justify-center gap-2 text-[13px] text-muted-foreground`,children:[(0,j.jsx)(ZT,{size:15}),` Loading…`]}):(0,j.jsx)(`div`,{className:`flex flex-1 items-center justify-center text-[13px] text-muted-foreground`,children:`That session is not in the list anymore.`}):n.kind===`discovered`?(0,j.jsx)(Pj,{session:x,provider:n.provider,id:n.id,onTakenOver:e=>y({kind:`session`,id:e}),changesOpen:c,setChangesOpen:l},`${n.provider}:${n.id}`):(0,j.jsx)(Rj,{onNew:()=>a(!0)}),(0,j.jsx)(pE.Provider,{value:h,children:(0,j.jsxs)(`div`,{className:`cs-app flex h-full flex-col bg-background text-foreground`,children:[(0,j.jsx)(Sj,{}),(0,j.jsxs)(`div`,{className:`flex min-h-0 flex-1`,children:[g.collapsed?(0,j.jsxs)(`div`,{className:`flex flex-col items-center gap-1 border-r border-border bg-muted/30 px-1.5 py-3`,children:[(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>g.setCollapsed(!1),"aria-label":`Show the sidebar (⌘B)`,title:`Show sidebar ⌘B`,children:(0,j.jsx)(sE,{size:15})}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>a(!0),"aria-label":`New session`,title:`New session ⌥⌘N`,children:(0,j.jsx)(BT,{size:15})})]}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(rj,{selection:n,select:y,onNew:()=>a(!0),onCollapse:()=>g.setCollapsed(!0),width:g.width,searchRef:v,onFound:e=>d(t=>({...t,[`${e.provider}:${e.providerSessionId}`]:e})),footer:(0,j.jsx)(Cj,{theme:f,setTheme:p,extra:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(Zj,{}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>s(!0),"aria-label":`Keyboard shortcuts (⌘/)`,title:`Keyboard shortcuts ⌘/`,children:(0,j.jsx)(dE,{size:14})})]})})}),(0,j.jsx)(Kj,{width:g.width,setWidth:g.setWidth})]}),(0,j.jsxs)(`main`,{className:`relative flex min-w-0 flex-1`,children:[T,(0,j.jsx)(Bj,{text:m.text})]})]}),(0,j.jsx)(Lj,{open:i,onOpenChange:a,onStarted:e=>{a(!1),y({kind:`session`,id:e})}}),(0,j.jsx)(Jj,{open:o,onOpenChange:s})]})})}function eM({transport:e}){return(0,j.jsx)(hj,{transport:e,children:(0,j.jsx)($j,{})})}var tM=`coding-sessions.token`;function nM(){let e=new URL(location.href),t=e.searchParams.get(`token`);if(t){try{sessionStorage.setItem(tM,t)}catch{}return e.searchParams.delete(`token`),history.replaceState(null,``,`${e.pathname}${e.search}${e.hash}`),t}try{return sessionStorage.getItem(tM)}catch{return null}}var rM=(0,v.createRoot)(document.getElementById(`root`)),iM=nM();if(!iM)rM.render((0,j.jsx)(`div`,{className:`flex h-full items-center justify-center p-8`,children:(0,j.jsxs)(`div`,{className:`max-w-[440px] text-center`,children:[(0,j.jsx)(`h1`,{className:`text-[18px] font-semibold`,children:`This link is missing its access code`}),(0,j.jsx)(`p`,{className:`mt-2 text-[13.5px] leading-6 text-muted-foreground`,children:`Open the coding sessions page from the full link AI Matrx gave you — it ends in a long access code that keeps other websites from reaching your coding agents.`})]})}));else{let e=y({token:iM});rM.render((0,j.jsx)(_.StrictMode,{children:(0,j.jsx)(eM,{transport:e})}))}