@aotter/mantle-admin-ui 0.1.0-alpha.14 → 0.1.0-alpha.16

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.
@@ -0,0 +1,62 @@
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,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(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,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=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)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.8`})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.8`})),h=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=o((e=>{var t=p(),n=d(),r=h();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var m=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function M(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var N=Symbol.for(`react.client.reference`);function P(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===N?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?P(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return P(e(t))}catch{}}return null}var F=Array.isArray,I=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},te=[],ne=-1;function R(e){return{current:e}}function z(e){0>ne||(e.current=te[ne],te[ne]=null,ne--)}function B(e,t){ne++,te[ne]=e.current,e.current=t}var re=R(null),ie=R(null),ae=R(null),oe=R(null);function se(e,t){switch(B(ae,t),B(ie,e),B(re,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Yd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Yd(t),e=Xd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}z(re),B(re,e)}function ce(){z(re),z(ie),z(ae)}function le(e){e.memoizedState!==null&&B(oe,e);var t=re.current,n=Xd(t,e.type);t!==n&&(B(ie,e),B(re,n))}function ue(e){ie.current===e&&(z(re),z(ie)),oe.current===e&&(z(oe),op._currentValue=ee)}var de,fe;function pe(e){if(de===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);de=t&&t[1]||``,fe=-1<e.stack.indexOf(`
2
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
3
+ `+de+e+fe}var me=!1;function he(e,t){if(!e||me)return``;me=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
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{me=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?pe(n):``}function ge(e,t){switch(e.tag){case 26:case 27:case 5:return pe(e.type);case 16:return pe(`Lazy`);case 13:return e.child!==t&&t!==null?pe(`Suspense Fallback`):pe(`Suspense`);case 19:return pe(`SuspenseList`);case 0:case 15:return he(e.type,!1);case 11:return he(e.type.render,!1);case 1:return he(e.type,!0);case 31:return pe(`Activity`);default:return``}}function _e(e){try{var t=``,n=null;do t+=ge(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
7
+ Error generating stack: `+e.message+`
8
+ `+e.stack}}var ve=Object.prototype.hasOwnProperty,ye=t.unstable_scheduleCallback,be=t.unstable_cancelCallback,xe=t.unstable_shouldYield,Se=t.unstable_requestPaint,Ce=t.unstable_now,we=t.unstable_getCurrentPriorityLevel,Te=t.unstable_ImmediatePriority,Ee=t.unstable_UserBlockingPriority,De=t.unstable_NormalPriority,Oe=t.unstable_LowPriority,ke=t.unstable_IdlePriority,Ae=t.log,je=t.unstable_setDisableYieldValue,Me=null,Ne=null;function Pe(e){if(typeof Ae==`function`&&je(e),Ne&&typeof Ne.setStrictMode==`function`)try{Ne.setStrictMode(Me,e)}catch{}}var Fe=Math.clz32?Math.clz32:Re,Ie=Math.log,Le=Math.LN2;function Re(e){return e>>>=0,e===0?32:31-(Ie(e)/Le|0)|0}var ze=256,Be=262144,Ve=4194304;function V(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function H(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=V(n))):i=V(o):i=V(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=V(n))):i=V(o)):i=V(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 He(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ue(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 We(){var e=Ve;return Ve<<=1,!(Ve&62914560)&&(Ve=4194304),e}function Ge(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ke(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function qe(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-Fe(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&&Je(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Je(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Fe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Ye(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Fe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Xe(e,t){var n=t&-t;return n=n&42?1:Ze(n),(n&(e.suspendedLanes|t))===0?n:0}function Ze(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 Qe(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function $e(){var e=L.p;return e===0?(e=window.event,e===void 0?32:Sp(e.type)):e}function et(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var tt=Math.random().toString(36).slice(2),nt=`__reactFiber$`+tt,rt=`__reactProps$`+tt,it=`__reactContainer$`+tt,at=`__reactEvents$`+tt,ot=`__reactListeners$`+tt,st=`__reactHandles$`+tt,ct=`__reactResources$`+tt,lt=`__reactMarker$`+tt;function ut(e){delete e[nt],delete e[rt],delete e[at],delete e[ot],delete e[st]}function dt(e){var t=e[nt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[it]||n[nt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=yf(e);e!==null;){if(n=e[nt])return n;e=yf(e)}return t}e=n,n=e.parentNode}return null}function ft(e){if(e=e[nt]||e[it]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function pt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function mt(e){var t=e[ct];return t||=e[ct]={hoistableStyles:new Map,hoistableScripts:new Map},t}function U(e){e[lt]=!0}var ht=new Set,gt={};function _t(e,t){vt(e,t),vt(e+`Capture`,t)}function vt(e,t){for(gt[e]=t,e=0;e<t.length;e++)ht.add(t[e])}var yt=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]*$`),bt={},xt={};function St(e){return ve.call(xt,e)?!0:ve.call(bt,e)?!1:yt.test(e)?xt[e]=!0:(bt[e]=!0,!1)}function Ct(e,t,n){if(St(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 wt(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 Tt(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 Et(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Dt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Ot(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 kt(e){if(!e._valueTracker){var t=Dt(e)?`checked`:`value`;e._valueTracker=Ot(e,t,``+e[t])}}function At(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Dt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function jt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Mt=/[\n"\\]/g;function Nt(e){return e.replace(Mt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Pt(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=``+Et(t)):e.value!==``+Et(t)&&(e.value=``+Et(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):It(e,o,Et(n)):It(e,o,Et(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=``+Et(s):e.removeAttribute(`name`)}function Ft(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)){kt(e);return}n=n==null?``:``+Et(n),t=t==null?n:``+Et(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),kt(e)}function It(e,t,n){t===`number`&&jt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Lt(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=``+Et(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 Rt(e,t,n){if(t!=null&&(t=``+Et(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Et(n)}function zt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(F(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Et(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),kt(e)}function Bt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vt=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 Ht(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||Vt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Ut(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Ht(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Ht(e,o,t[o])}function Wt(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 Gt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Kt=/^[\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 qt(e){return Kt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Jt(){}var Yt=null;function Xt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zt=null,Qt=null;function $t(e){var t=ft(e);if(t&&(e=t.stateNode)){var n=e[rt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Pt(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="`+Nt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[rt]||null;if(!a)throw Error(i(90));Pt(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&&At(r)}break a;case`textarea`:Rt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Lt(e,!!n.multiple,t,!1)}}}var en=!1;function tn(e,t,n){if(en)return e(t,n);en=!0;try{return e(t)}finally{if(en=!1,(Zt!==null||Qt!==null)&&(Tu(),Zt&&(t=Zt,e=Qt,Qt=Zt=null,$t(t),e)))for(t=0;t<e.length;t++)$t(e[t])}}function nn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[rt]||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 rn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),an=!1;if(rn)try{var on={};Object.defineProperty(on,"passive",{get:function(){an=!0}}),window.addEventListener(`test`,on,on),window.removeEventListener(`test`,on,on)}catch{an=!1}var sn=null,cn=null,ln=null;function un(){if(ln)return ln;var e,t=cn,n=t.length,r,i=`value`in sn?sn.value:sn.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 ln=i.slice(e,1<r?1-r:void 0)}function dn(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 fn(){return!0}function pn(){return!1}function mn(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)?fn:pn,this.isPropagationStopped=pn,this}return m(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=fn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=fn)},persist:function(){},isPersistent:fn}),t}var hn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gn=mn(hn),_n=m({},hn,{view:0,detail:0}),vn=mn(_n),yn,bn,xn,Sn=m({},_n,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nn,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!==xn&&(xn&&e.type===`mousemove`?(yn=e.screenX-xn.screenX,bn=e.screenY-xn.screenY):bn=yn=0,xn=e),yn)},movementY:function(e){return`movementY`in e?e.movementY:bn}}),Cn=mn(Sn),wn=mn(m({},Sn,{dataTransfer:0})),Tn=mn(m({},_n,{relatedTarget:0})),En=mn(m({},hn,{animationName:0,elapsedTime:0,pseudoElement:0})),Dn=mn(m({},hn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),On=mn(m({},hn,{data:0})),kn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},An={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`},jn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Mn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jn[e])?!!t[e]:!1}function Nn(){return Mn}var Pn=mn(m({},_n,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=dn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?An[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nn,charCode:function(e){return e.type===`keypress`?dn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?dn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Fn=mn(m({},Sn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),In=mn(m({},_n,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nn})),Ln=mn(m({},hn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=mn(m({},Sn,{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})),zn=mn(m({},hn,{newState:0,oldState:0})),Bn=[9,13,27,32],Vn=rn&&`CompositionEvent`in window,Hn=null;rn&&`documentMode`in document&&(Hn=document.documentMode);var Un=rn&&`TextEvent`in window&&!Hn,Wn=rn&&(!Vn||Hn&&8<Hn&&11>=Hn),Gn=` `,Kn=!1;function qn(e,t){switch(e){case`keyup`:return Bn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Jn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Yn=!1;function Xn(e,t){switch(e){case`compositionend`:return Jn(t);case`keypress`:return t.which===32?(Kn=!0,Gn):null;case`textInput`:return e=t.data,e===Gn&&Kn?null:e;default:return null}}function Zn(e,t){if(Yn)return e===`compositionend`||!Vn&&qn(e,t)?(e=un(),ln=cn=sn=null,Yn=!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 Wn&&t.locale!==`ko`?null:t.data;default:return null}}var Qn={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 $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Qn[e.type]:t===`textarea`}function er(e,t,n,r){Zt?Qt?Qt.push(r):Qt=[r]:Zt=r,t=Nd(t,`onChange`),0<t.length&&(n=new gn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var tr=null,nr=null;function rr(e){Td(e,0)}function ir(e){if(At(pt(e)))return e}function ar(e,t){if(e===`change`)return t}var or=!1;if(rn){var sr;if(rn){var cr=`oninput`in document;if(!cr){var lr=document.createElement(`div`);lr.setAttribute(`oninput`,`return;`),cr=typeof lr.oninput==`function`}sr=cr}else sr=!1;or=sr&&(!document.documentMode||9<document.documentMode)}function ur(){tr&&(tr.detachEvent(`onpropertychange`,dr),nr=tr=null)}function dr(e){if(e.propertyName===`value`&&ir(nr)){var t=[];er(t,nr,e,Xt(e)),tn(rr,t)}}function fr(e,t,n){e===`focusin`?(ur(),tr=t,nr=n,tr.attachEvent(`onpropertychange`,dr)):e===`focusout`&&ur()}function pr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return ir(nr)}function mr(e,t){if(e===`click`)return ir(t)}function hr(e,t){if(e===`input`||e===`change`)return ir(t)}function gr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var _r=typeof Object.is==`function`?Object.is:gr;function vr(e,t){if(_r(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ve.call(t,i)||!_r(e[i],t[i]))return!1}return!0}function yr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function br(e,t){var n=yr(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=yr(n)}}function xr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=jt(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=jt(e.document)}return t}function Cr(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 wr=rn&&`documentMode`in document&&11>=document.documentMode,Tr=null,Er=null,Dr=null,Or=!1;function kr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Or||Tr==null||Tr!==jt(r)||(r=Tr,`selectionStart`in r&&Cr(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}),Dr&&vr(Dr,r)||(Dr=r,r=Nd(Er,`onSelect`),0<r.length&&(t=new gn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Tr)))}function W(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Ar={animationend:W(`Animation`,`AnimationEnd`),animationiteration:W(`Animation`,`AnimationIteration`),animationstart:W(`Animation`,`AnimationStart`),transitionrun:W(`Transition`,`TransitionRun`),transitionstart:W(`Transition`,`TransitionStart`),transitioncancel:W(`Transition`,`TransitionCancel`),transitionend:W(`Transition`,`TransitionEnd`)},jr={},Mr={};rn&&(Mr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Ar.animationend.animation,delete Ar.animationiteration.animation,delete Ar.animationstart.animation),`TransitionEvent`in window||delete Ar.transitionend.transition);function Nr(e){if(jr[e])return jr[e];if(!Ar[e])return e;var t=Ar[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Mr)return jr[e]=t[n];return e}var Pr=Nr(`animationend`),Fr=Nr(`animationiteration`),Ir=Nr(`animationstart`),Lr=Nr(`transitionrun`),Rr=Nr(`transitionstart`),zr=Nr(`transitioncancel`),Br=Nr(`transitionend`),Vr=new Map,Hr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Hr.push(`scrollEnd`);function Ur(e,t){Vr.set(e,t),_t(t,[e])}var Wr=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)},Gr=[],Kr=0,qr=0;function Jr(){for(var e=Kr,t=qr=Kr=0;t<e;){var n=Gr[t];Gr[t++]=null;var r=Gr[t];Gr[t++]=null;var i=Gr[t];Gr[t++]=null;var a=Gr[t];if(Gr[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&&Qr(n,i,a)}}function Yr(e,t,n,r){Gr[Kr++]=e,Gr[Kr++]=t,Gr[Kr++]=n,Gr[Kr++]=r,qr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Xr(e,t,n,r){return Yr(e,t,n,r),$r(e)}function Zr(e,t){return Yr(e,null,null,t),$r(e)}function Qr(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-Fe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function $r(e){if(50<gu)throw gu=0,_u=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ei={};function ti(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 G(e,t,n,r){return new ti(e,t,n,r)}function ni(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ri(e,t){var n=e.alternate;return n===null?(n=G(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ii(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ai(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)ni(e)&&(s=1);else if(typeof e==`string`)s=Zf(e,n,re.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case k:return e=G(31,n,t,a),e.elementType=k,e.lanes=o,e;case y:return oi(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=G(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=G(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=G(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=G(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function oi(e,t,n,r){return e=G(7,e,r,t),e.lanes=n,e}function si(e,t,n){return e=G(6,e,null,t),e.lanes=n,e}function ci(e){var t=G(18,null,null,0);return t.stateNode=e,t}function li(e,t,n){return t=G(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ui=new WeakMap;function di(e,t){if(typeof e==`object`&&e){var n=ui.get(e);return n===void 0?(t={value:e,source:t,stack:_e(t)},ui.set(e,t),t):n}return{value:e,source:t,stack:_e(t)}}var fi=[],pi=0,mi=null,hi=0,gi=[],_i=0,vi=null,yi=1,bi=``;function xi(e,t){fi[pi++]=hi,fi[pi++]=mi,mi=e,hi=t}function Si(e,t,n){gi[_i++]=yi,gi[_i++]=bi,gi[_i++]=vi,vi=e;var r=yi;e=bi;var i=32-Fe(r)-1;r&=~(1<<i),n+=1;var a=32-Fe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,yi=1<<32-Fe(t)+i|n<<i|r,bi=a+e}else yi=1<<a|n<<i|r,bi=e}function Ci(e){e.return!==null&&(xi(e,1),Si(e,1,0))}function wi(e){for(;e===mi;)mi=fi[--pi],fi[pi]=null,hi=fi[--pi],fi[pi]=null;for(;e===vi;)vi=gi[--_i],gi[_i]=null,bi=gi[--_i],gi[_i]=null,yi=gi[--_i],gi[_i]=null}function Ti(e,t){gi[_i++]=yi,gi[_i++]=bi,gi[_i++]=vi,yi=t.id,bi=t.overflow,vi=e}var Ei=null,Di=null,Oi=!1,ki=null,Ai=!1,ji=Error(i(519));function Mi(e){throw Ri(di(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),ji}function Ni(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[nt]=e,t[rt]=r,n){case`dialog`:Ed(`cancel`,t),Ed(`close`,t);break;case`iframe`:case`object`:case`embed`:Ed(`load`,t);break;case`video`:case`audio`:for(n=0;n<Cd.length;n++)Ed(Cd[n],t);break;case`source`:Ed(`error`,t);break;case`img`:case`image`:case`link`:Ed(`error`,t),Ed(`load`,t);break;case`details`:Ed(`toggle`,t);break;case`input`:Ed(`invalid`,t),Ft(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Ed(`invalid`,t);break;case`textarea`:Ed(`invalid`,t),zt(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||zd(t.textContent,n)?(r.popover!=null&&(Ed(`beforetoggle`,t),Ed(`toggle`,t)),r.onScroll!=null&&Ed(`scroll`,t),r.onScrollEnd!=null&&Ed(`scrollend`,t),r.onClick!=null&&(t.onclick=Jt),t=!0):t=!1,t||Mi(e,!0)}function Pi(e){for(Ei=e.return;Ei;)switch(Ei.tag){case 5:case 31:case 13:Ai=!1;return;case 27:case 3:Ai=!0;return;default:Ei=Ei.return}}function Fi(e){if(e!==Ei)return!1;if(!Oi)return Pi(e),Oi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||Zd(e.type,e.memoizedProps)),n=!n),n&&Di&&Mi(e),Pi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Di=vf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Di=vf(e)}else t===27?(t=Di,of(e.type)?(e=_f,_f=null,Di=e):Di=t):Di=Ei?gf(e.stateNode.nextSibling):null;return!0}function Ii(){Di=Ei=null,Oi=!1}function Li(){var e=ki;return e!==null&&(nu===null?nu=e:nu.push.apply(nu,e),ki=null),e}function Ri(e){ki===null?ki=[e]:ki.push(e)}var zi=R(null),Bi=null,Vi=null;function Hi(e,t,n){B(zi,t._currentValue),t._currentValue=n}function Ui(e){e._currentValue=zi.current,z(zi)}function Wi(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 Gi(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),Wi(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),Wi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Ki(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;_r(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===oe.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[op]:e.push(op))}a=a.return}e!==null&&Gi(t,e,n,r),t.flags|=262144}function qi(e){for(e=e.firstContext;e!==null;){if(!_r(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ji(e){Bi=e,Vi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Yi(e){return Zi(Bi,e)}function Xi(e,t){return Bi===null&&Ji(e),Zi(e,t)}function Zi(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Vi===null){if(e===null)throw Error(i(308));Vi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Vi=Vi.next=t;return n}var Qi=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()})}},$i=t.unstable_scheduleCallback,ea=t.unstable_NormalPriority,ta={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function na(){return{controller:new Qi,data:new Map,refCount:0}}function ra(e){e.refCount--,e.refCount===0&&$i(ea,function(){e.controller.abort()})}var ia=null,aa=0,oa=0,sa=null;function ca(e,t){if(ia===null){var n=ia=[];aa=0,oa=_d(),sa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return aa++,t.then(la,la),t}function la(){if(--aa===0&&ia!==null){sa!==null&&(sa.status=`fulfilled`);var e=ia;ia=null,oa=0,sa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ua(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 da=I.S;I.S=function(e,t){au=Ce(),typeof t==`object`&&t&&typeof t.then==`function`&&ca(e,t),da!==null&&da(e,t)};var fa=R(null);function pa(){var e=fa.current;return e===null?Bl.pooledCache:e}function ma(e,t){t===null?B(fa,fa.current):B(fa,t.pool)}function ha(){var e=pa();return e===null?null:{parent:ta._currentValue,pool:e}}var ga=Error(i(460)),_a=Error(i(474)),va=Error(i(542)),ya={then:function(){}};function ba(e){return e=e.status,e===`fulfilled`||e===`rejected`}function xa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Jt,Jt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ta(e),e;default:if(typeof t.status==`string`)t.then(Jt,Jt);else{if(e=Bl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ta(e),e}throw Ca=t,ga}}function Sa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ca=e,ga):e}}var Ca=null;function wa(){if(Ca===null)throw Error(i(459));var e=Ca;return Ca=null,e}function Ta(e){if(e===ga||e===va)throw Error(i(483))}var Ea=null,Da=0;function Oa(e){var t=Da;return Da+=1,Ea===null&&(Ea=[]),xa(Ea,e,t)}function ka(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Aa(e,t){throw t.$$typeof===g?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ja(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=ri(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=si(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&Sa(i)===t.type)?(t=a(t,n.props),ka(t,n),t.return=e,t):(t=ai(n.type,n.key,n.props,null,e.mode,r),ka(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=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=oi(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=si(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=ai(t.type,t.key,t.props,null,e.mode,n),ka(n,t),n.return=e,n;case v:return t=li(t,e.mode,n),t.return=e,t;case O:return t=Sa(t),f(e,t,n)}if(F(t)||M(t))return t=oi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Oa(t),n);if(t.$$typeof===C)return f(e,Xi(e,t),n);Aa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=Sa(n),p(e,t,n,r)}if(F(n)||M(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Oa(n),r);if(n.$$typeof===C)return p(e,t,Xi(e,n),r);Aa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=Sa(r),m(e,t,n,r,i)}if(F(r)||M(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Oa(r),i);if(r.$$typeof===C)return m(e,t,n,Xi(t,r),i);Aa(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Oi&&xi(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 Oi&&xi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Oi&&xi(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),Oi&&xi(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 Oi&&xi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Oi&&xi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&Sa(l)===r.type){n(e,r.sibling),c=a(r,o.props),ka(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===y?(c=oi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ai(o.type,o.key,o.props,null,e.mode,c),ka(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=li(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=Sa(o),b(e,r,o,c)}if(F(o))return h(e,r,o,c);if(M(o)){if(l=M(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Oa(o),c);if(o.$$typeof===C)return b(e,r,Xi(e,o),c);Aa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=si(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Da=0;var i=b(e,t,n,r);return Ea=null,i}catch(t){if(t===ga||t===va)throw t;var a=G(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ma=ja(!0),Na=ja(!1),Pa=!1;function Fa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ia(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 La(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,zl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=$r(e),Qr(e,null,n),t}return Yr(e,r,t,n),$r(e)}function za(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,Ye(e,n)}}function Ba(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 Va=!1;function Ha(){if(Va){var e=sa;if(e!==null)throw e}}function Ua(e,t,n,r){Va=!1;var i=e.updateQueue;Pa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Hl&f)===f:(r&f)===f){f!==0&&f===oa&&(Va=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=m({},d,f);break a;case 2:Pa=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Xl|=o,e.lanes=o,e.memoizedState=d}}function Wa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ga(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Wa(n[e],t)}var Ka=R(null),qa=R(0);function Ja(e,t){e=Jl,B(qa,e),B(Ka,t),Jl=e|t.baseLanes}function Ya(){B(qa,Jl),B(Ka,Ka.current)}function Xa(){Jl=qa.current,z(Ka),z(qa)}var Za=R(null),Qa=null;function $a(e){var t=e.alternate;B(io,io.current&1),B(Za,e),Qa===null&&(t===null||Ka.current!==null||t.memoizedState!==null)&&(Qa=e)}function eo(e){B(io,io.current),B(Za,e),Qa===null&&(Qa=e)}function to(e){e.tag===22?(B(io,io.current),B(Za,e),Qa===null&&(Qa=e)):no(e)}function no(){B(io,io.current),B(Za,Za.current)}function ro(e){z(Za),Qa===e&&(Qa=null),z(io)}var io=R(0);function ao(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||pf(n)||mf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var oo=0,so=null,co=null,lo=null,uo=!1,fo=!1,po=!1,mo=0,ho=0,go=null,_o=0;function vo(){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(!_r(e[n],t[n]))return!1;return!0}function bo(e,t,n,r,i,a){return oo=a,so=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?Ls:Rs,po=!1,a=n(r,i),po=!1,fo&&(a=So(t,n,r,i)),xo(e),a}function xo(e){I.H=Is;var t=co!==null&&co.next!==null;if(oo=0,lo=co=so=null,uo=!1,ho=0,go=null,t)throw Error(i(300));e===null||tc||(e=e.dependencies,e!==null&&qi(e)&&(tc=!0))}function So(e,t,n,r){so=e;var a=0;do{if(fo&&(go=null),ho=0,fo=!1,25<=a)throw Error(i(301));if(a+=1,lo=co=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}I.H=zs,o=t(n,r)}while(fo);return o}function Co(){var e=I.H,t=e.useState()[0];return t=typeof t.then==`function`?Ao(t):t,e=e.useState()[0],(co===null?null:co.memoizedState)!==e&&(so.flags|=1024),t}function wo(){var e=mo!==0;return mo=0,e}function To(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Eo(e){if(uo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}uo=!1}oo=0,lo=co=so=null,fo=!1,ho=mo=0,go=null}function Do(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lo===null?so.memoizedState=lo=e:lo=lo.next=e,lo}function Oo(){if(co===null){var e=so.alternate;e=e===null?null:e.memoizedState}else e=co.next;var t=lo===null?so.memoizedState:lo.next;if(t!==null)lo=t,co=e;else{if(e===null)throw so.alternate===null?Error(i(467)):Error(i(310));co=e,e={memoizedState:co.memoizedState,baseState:co.baseState,baseQueue:co.baseQueue,queue:co.queue,next:null},lo===null?so.memoizedState=lo=e:lo=lo.next=e}return lo}function ko(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ao(e){var t=ho;return ho+=1,go===null&&(go=[]),e=xa(go,e,t),t=so,(lo===null?t.memoizedState:lo.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?Ls:Rs),e}function jo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Ao(e);if(e.$$typeof===C)return Yi(e)}throw Error(i(438,String(e)))}function Mo(e){var t=null,n=so.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=so.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=ko(),so.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=A;return t.index++,n}function No(e,t){return typeof t==`function`?t(e):t}function Po(e){return Fo(Oo(),co,e)}function Fo(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?(oo&f)===f:(Hl&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===oa&&(d=!0);else if((oo&p)===p){u=u.next,p===oa&&(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,so.lanes|=p,Xl|=p;f=u.action,po&&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,so.lanes|=f,Xl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!_r(o,e.memoizedState)&&(tc=!0,d&&(n=sa,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 Io(e){var t=Oo(),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);_r(o,t.memoizedState)||(tc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Lo(e,t,n){var r=so,a=Oo(),o=Oi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!_r((co||a).memoizedState,n);if(s&&(a.memoizedState=n,tc=!0),a=a.queue,cs(Bo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||lo!==null&&lo.memoizedState.tag&1){if(r.flags|=2048,rs(9,{destroy:void 0},zo.bind(null,r,a,n,t),null),Bl===null)throw Error(i(349));o||oo&127||Ro(r,t,n)}return n}function Ro(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=so.updateQueue,t===null?(t=ko(),so.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function zo(e,t,n,r){t.value=n,t.getSnapshot=r,Vo(t)&&Ho(e)}function Bo(e,t,n){return n(function(){Vo(t)&&Ho(e)})}function Vo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_r(e,n)}catch{return!0}}function Ho(e){var t=Zr(e,2);t!==null&&bu(t,e,2)}function Uo(e){var t=Do();if(typeof e==`function`){var n=e;if(e=n(),po){Pe(!0);try{n()}finally{Pe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:e},t}function Wo(e,t,n,r){return e.baseState=n,Fo(e,co,typeof r==`function`?r:No)}function Go(e,t,n,r,a){if(Ns(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)}};I.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ko(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ko(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=I.T,o={};I.T=o;try{var s=n(i,r),c=I.S;c!==null&&c(o,s),qo(e,t,s)}catch(n){Yo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),I.T=a}}else try{a=n(i,r),qo(e,t,a)}catch(n){Yo(e,t,n)}}function qo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Jo(e,t,n)},function(n){return Yo(e,t,n)}):Jo(e,t,n)}function Jo(e,t,n){t.status=`fulfilled`,t.value=n,Xo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ko(e,n)))}function Yo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Xo(t),t=t.next;while(t!==r)}e.action=null}function Xo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Zo(e,t){return t}function Qo(e,t){if(Oi){var n=Bl.formState;if(n!==null){a:{var r=so;if(Oi){if(Di){b:{for(var i=Di,a=Ai;i.nodeType!==8;){if(!a){i=null;break b}if(i=gf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Di=gf(i.nextSibling),r=i.data===`F!`;break a}}Mi(r)}r=!1}r&&(t=n[0])}}return n=Do(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zo,lastRenderedState:t},n.queue=r,n=As.bind(null,so,r),r.dispatch=n,r=Uo(!1),a=Ms.bind(null,so,!1,r.queue),r=Do(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Go.bind(null,so,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function $o(e){return es(Oo(),co,e)}function es(e,t,n){if(t=Fo(e,t,Zo)[0],e=Po(No)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Ao(t)}catch(e){throw e===ga?va:e}else r=t;t=Oo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(so.flags|=2048,rs(9,{destroy:void 0},ts.bind(null,i,n),null)),[r,a,e]}function ts(e,t){e.action=t}function ns(e){var t=Oo(),n=co;if(n!==null)return es(t,n,e);Oo(),t=t.memoizedState,n=Oo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function rs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=so.updateQueue,t===null&&(t=ko(),so.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 is(){return Oo().memoizedState}function as(e,t,n,r){var i=Do();so.flags|=e,i.memoizedState=rs(1|t,{destroy:void 0},n,r===void 0?null:r)}function os(e,t,n,r){var i=Oo();r=r===void 0?null:r;var a=i.memoizedState.inst;co!==null&&r!==null&&yo(r,co.memoizedState.deps)?i.memoizedState=rs(t,a,n,r):(so.flags|=e,i.memoizedState=rs(1|t,a,n,r))}function ss(e,t){as(8390656,8,e,t)}function cs(e,t){os(2048,8,e,t)}function ls(e){so.flags|=4;var t=so.updateQueue;if(t===null)t=ko(),so.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function us(e){var t=Oo().memoizedState;return ls({ref:t,nextImpl:e}),function(){if(zl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ds(e,t){return os(4,2,e,t)}function fs(e,t){return os(4,4,e,t)}function ps(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 ms(e,t,n){n=n==null?null:n.concat([e]),os(4,4,ps.bind(null,t,e),n)}function hs(){}function gs(e,t){var n=Oo();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 _s(e,t){var n=Oo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&yo(t,r[1]))return r[0];if(r=e(),po){Pe(!0);try{e()}finally{Pe(!1)}}return n.memoizedState=[r,t],r}function vs(e,t,n){return n===void 0||oo&1073741824&&!(Hl&261930)?e.memoizedState=t:(e.memoizedState=n,e=yu(),so.lanes|=e,Xl|=e,n)}function ys(e,t,n,r){return _r(n,t)?n:Ka.current===null?!(oo&42)||oo&1073741824&&!(Hl&261930)?(tc=!0,e.memoizedState=n):(e=yu(),so.lanes|=e,Xl|=e,t):(e=vs(e,n,r),_r(e,t)||(tc=!0),e)}function bs(e,t,n,r,i){var a=L.p;L.p=a!==0&&8>a?a:8;var o=I.T,s={};I.T=s,Ms(e,!1,t,n);try{var c=i(),l=I.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?js(e,t,ua(c,r),vu(e)):js(e,t,r,vu(e))}catch(n){js(e,t,{then:function(){},status:`rejected`,reason:n},vu())}finally{L.p=a,o!==null&&s.types!==null&&(o.types=s.types),I.T=o}}function xs(){}function Ss(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Cs(e).queue;bs(e,a,t,ee,n===null?xs:function(){return ws(e),n(r)})}function Cs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:ee},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ws(e){var t=Cs(e);t.next===null&&(t=e.alternate.memoizedState),js(e,t.next.queue,{},vu())}function Ts(){return Yi(op)}function Es(){return Oo().memoizedState}function Ds(){return Oo().memoizedState}function Os(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=vu();e=La(n);var r=Ra(t,e,n);r!==null&&(bu(r,t,n),za(r,t,n)),t={cache:na()},e.payload=t;return}t=t.return}}function ks(e,t,n){var r=vu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ns(e)?Ps(t,n):(n=Xr(e,t,n,r),n!==null&&(bu(n,e,r),Fs(n,t,r)))}function As(e,t,n){js(e,t,n,vu())}function js(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ns(e))Ps(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,_r(s,o))return Yr(e,t,i,0),Bl===null&&Jr(),!1}catch{}if(n=Xr(e,t,i,r),n!==null)return bu(n,e,r),Fs(n,t,r),!0}return!1}function Ms(e,t,n,r){if(r={lane:2,revertLane:_d(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ns(e)){if(t)throw Error(i(479))}else t=Xr(e,n,r,2),t!==null&&bu(t,e,2)}function Ns(e){var t=e.alternate;return e===so||t!==null&&t===so}function Ps(e,t){fo=uo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ye(e,n)}}var Is={readContext:Yi,use:jo,useCallback:vo,useContext:vo,useEffect:vo,useImperativeHandle:vo,useLayoutEffect:vo,useInsertionEffect:vo,useMemo:vo,useReducer:vo,useRef:vo,useState:vo,useDebugValue:vo,useDeferredValue:vo,useTransition:vo,useSyncExternalStore:vo,useId:vo,useHostTransitionStatus:vo,useFormState:vo,useActionState:vo,useOptimistic:vo,useMemoCache:vo,useCacheRefresh:vo};Is.useEffectEvent=vo;var Ls={readContext:Yi,use:jo,useCallback:function(e,t){return Do().memoizedState=[e,t===void 0?null:t],e},useContext:Yi,useEffect:ss,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),as(4194308,4,ps.bind(null,t,e),n)},useLayoutEffect:function(e,t){return as(4194308,4,e,t)},useInsertionEffect:function(e,t){as(4,2,e,t)},useMemo:function(e,t){var n=Do();t=t===void 0?null:t;var r=e();if(po){Pe(!0);try{e()}finally{Pe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Do();if(n!==void 0){var i=n(t);if(po){Pe(!0);try{n(t)}finally{Pe(!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=ks.bind(null,so,e),[r.memoizedState,e]},useRef:function(e){var t=Do();return e={current:e},t.memoizedState=e},useState:function(e){e=Uo(e);var t=e.queue,n=As.bind(null,so,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:hs,useDeferredValue:function(e,t){return vs(Do(),e,t)},useTransition:function(){var e=Uo(!1);return e=bs.bind(null,so,e.queue,!0,!1),Do().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=so,a=Do();if(Oi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Bl===null)throw Error(i(349));Hl&127||Ro(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ss(Bo.bind(null,r,o,e),[e]),r.flags|=2048,rs(9,{destroy:void 0},zo.bind(null,r,o,n,t),null),n},useId:function(){var e=Do(),t=Bl.identifierPrefix;if(Oi){var n=bi,r=yi;n=(r&~(1<<32-Fe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=mo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=_o++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ts,useFormState:Qo,useActionState:Qo,useOptimistic:function(e){var t=Do();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ms.bind(null,so,!0,n),n.dispatch=t,[e,t]},useMemoCache:Mo,useCacheRefresh:function(){return Do().memoizedState=Os.bind(null,so)},useEffectEvent:function(e){var t=Do(),n={impl:e};return t.memoizedState=n,function(){if(zl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Rs={readContext:Yi,use:jo,useCallback:gs,useContext:Yi,useEffect:cs,useImperativeHandle:ms,useInsertionEffect:ds,useLayoutEffect:fs,useMemo:_s,useReducer:Po,useRef:is,useState:function(){return Po(No)},useDebugValue:hs,useDeferredValue:function(e,t){return ys(Oo(),co.memoizedState,e,t)},useTransition:function(){var e=Po(No)[0],t=Oo().memoizedState;return[typeof e==`boolean`?e:Ao(e),t]},useSyncExternalStore:Lo,useId:Es,useHostTransitionStatus:Ts,useFormState:$o,useActionState:$o,useOptimistic:function(e,t){return Wo(Oo(),co,e,t)},useMemoCache:Mo,useCacheRefresh:Ds};Rs.useEffectEvent=us;var zs={readContext:Yi,use:jo,useCallback:gs,useContext:Yi,useEffect:cs,useImperativeHandle:ms,useInsertionEffect:ds,useLayoutEffect:fs,useMemo:_s,useReducer:Io,useRef:is,useState:function(){return Io(No)},useDebugValue:hs,useDeferredValue:function(e,t){var n=Oo();return co===null?vs(n,e,t):ys(n,co.memoizedState,e,t)},useTransition:function(){var e=Io(No)[0],t=Oo().memoizedState;return[typeof e==`boolean`?e:Ao(e),t]},useSyncExternalStore:Lo,useId:Es,useHostTransitionStatus:Ts,useFormState:ns,useActionState:ns,useOptimistic:function(e,t){var n=Oo();return co===null?(n.baseState=e,[e,n.queue.dispatch]):Wo(n,co,e,t)},useMemoCache:Mo,useCacheRefresh:Ds};zs.useEffectEvent=us;function Bs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:m({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Vs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=vu(),i=La(r);i.payload=t,n!=null&&(i.callback=n),t=Ra(e,i,r),t!==null&&(bu(t,e,r),za(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=vu(),i=La(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ra(e,i,r),t!==null&&(bu(t,e,r),za(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=vu(),r=La(n);r.tag=2,t!=null&&(r.callback=t),t=Ra(e,r,n),t!==null&&(bu(t,e,n),za(t,e,n))}};function Hs(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 Us(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&&Vs.enqueueReplaceState(t,t.state,null)}function Ws(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=m({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Gs(e){Wr(e)}function Ks(e){console.error(e)}function qs(e){Wr(e)}function Js(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ys(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 Xs(e,t,n){return n=La(n),n.tag=3,n.payload={element:null},n.callback=function(){Js(e,t)},n}function Zs(e){return e=La(e),e.tag=3,e}function Qs(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Ys(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ys(t,n,r),typeof i!=`function`&&(cu===null?cu=new Set([this]):cu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function $s(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Ki(t,n,a,!0),n=Za.current,n!==null){switch(n.tag){case 31:case 13:return Qa===null?Mu():n.alternate===null&&Yl===0&&(Yl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ya?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Zu(e,r,a)),!1;case 22:return n.flags|=65536,r===ya?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Zu(e,r,a)),!1}throw Error(i(435,n.tag))}return Zu(e,r,a),Mu(),!1}if(Oi)return t=Za.current,t===null?(r!==ji&&(t=Error(i(423),{cause:r}),Ri(di(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=di(r,n),a=Xs(e.stateNode,r,a),Ba(e,a),Yl!==4&&(Yl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==ji&&(e=Error(i(422),{cause:r}),Ri(di(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=di(o,n),tu===null?tu=[o]:tu.push(o),Yl!==4&&(Yl=2),t===null)return!0;r=di(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Xs(n.stateNode,r,e),Ba(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`&&(cu===null||!cu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Zs(a),Qs(a,e,n,r),Ba(n,a),!1}n=n.return}while(n!==null);return!1}var ec=Error(i(461)),tc=!1;function nc(e,t,n,r){t.child=e===null?Na(t,null,n,r):Ma(t,e.child,n,r)}function rc(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 Ji(t),r=bo(e,t,n,o,a,i),s=wo(),e!==null&&!tc?(To(e,t,i),Dc(e,t,i)):(Oi&&s&&Ci(t),t.flags|=1,nc(e,t,r,i),t.child)}function ic(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ni(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,ac(e,t,a,r,i)):(e=ai(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Oc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?vr:n,n(o,r)&&e.ref===t.ref)return Dc(e,t,i)}return t.flags|=1,e=ri(a,r),e.ref=t.ref,e.return=t,t.child=e}function ac(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(vr(a,r)&&e.ref===t.ref){if(tc=!1,t.pendingProps=r=a,Oc(e,i))e.flags&131072&&(tc=!0);else return t.lanes=e.lanes,Dc(e,t,i)}}return pc(e,t,n,r,i)}function oc(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 cc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ma(t,a===null?null:a.cachePool),a===null?Ya():Ja(t,a),to(t);else return r=t.lanes=536870912,cc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ma(t,null),Ya(),no(t)):(ma(t,a.cachePool),Ja(t,a),no(t),t.memoizedState=null);return nc(e,t,i,n),t.child}function sc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function cc(e,t,n,r,i){var a=pa();return a=a===null?null:{parent:ta._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ma(t,null),Ya(),to(t),e!==null&&Ki(e,t,r,!0),t.childLanes=i,null}function lc(e,t){return t=Sc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function uc(e,t,n){return Ma(t,e.child,null,n),e=lc(t,t.pendingProps),e.flags|=2,ro(t),t.memoizedState=null,e}function dc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(Oi){if(r.mode===`hidden`)return e=lc(t,r),t.lanes=536870912,sc(null,e);if(eo(t),(e=Di)?(e=ff(e,Ai),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vi===null?null:{id:yi,overflow:bi},retryLane:536870912,hydrationErrors:null},n=ci(e),n.return=t,t.child=n,Ei=t,Di=null)):e=null,e===null)throw Mi(t);return t.lanes=536870912,null}return lc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(eo(t),a){if(t.flags&256)t.flags&=-257,t=uc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(tc||Ki(e,t,n,!1),a=(n&e.childLanes)!==0,tc||a){if(r=Bl,r!==null&&(s=Xe(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Zr(e,s),bu(r,e,s),ec;Mu(),t=uc(e,t,n)}else e=o.treeContext,Di=gf(s.nextSibling),Ei=t,Oi=!0,ki=null,Ai=!1,e!==null&&Ti(t,e),t=lc(t,r),t.flags|=4096;return t}return e=ri(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function fc(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 pc(e,t,n,r,i){return Ji(t),n=bo(e,t,n,r,void 0,i),r=wo(),e!==null&&!tc?(To(e,t,i),Dc(e,t,i)):(Oi&&r&&Ci(t),t.flags|=1,nc(e,t,n,i),t.child)}function mc(e,t,n,r,i,a){return Ji(t),t.updateQueue=null,n=So(t,r,n,i),xo(e),r=wo(),e!==null&&!tc?(To(e,t,a),Dc(e,t,a)):(Oi&&r&&Ci(t),t.flags|=1,nc(e,t,n,a),t.child)}function hc(e,t,n,r,i){if(Ji(t),t.stateNode===null){var a=ei,o=n.contextType;typeof o==`object`&&o&&(a=Yi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Vs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Fa(t),o=n.contextType,a.context=typeof o==`object`&&o?Yi(o):ei,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Bs(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&&Vs.enqueueReplaceState(a,a.state,null),Ua(t,r,a,i),Ha(),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=Ws(n,s);a.props=c;var l=a.context,u=n.contextType;o=ei,typeof u==`object`&&u&&(o=Yi(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)&&Us(t,a,r,o),Pa=!1;var f=t.memoizedState;a.state=f,Ua(t,r,a,i),Ha(),l=t.memoizedState,s||f!==l||Pa?(typeof d==`function`&&(Bs(t,n,d,r),l=t.memoizedState),(c=Pa||Hs(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,Ia(e,t),o=t.memoizedProps,u=Ws(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ei,typeof l==`object`&&l&&(c=Yi(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)&&Us(t,a,r,c),Pa=!1,f=t.memoizedState,a.state=f,Ua(t,r,a,i),Ha();var p=t.memoizedState;o!==d||f!==p||Pa||e!==null&&e.dependencies!==null&&qi(e.dependencies)?(typeof s==`function`&&(Bs(t,n,s,r),p=t.memoizedState),(u=Pa||Hs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&qi(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,fc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ma(t,e.child,null,i),t.child=Ma(t,null,n,i)):nc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Dc(e,t,i),e}function gc(e,t,n,r){return Ii(),t.flags|=256,nc(e,t,n,r),t.child}var _c={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vc(e){return{baseLanes:e,cachePool:ha()}}function yc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=$l),e}function bc(e,t,n){var r=t.pendingProps,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(io.current&2)),s&&(a=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(Oi){if(a?$a(t):no(t),(e=Di)?(e=ff(e,Ai),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vi===null?null:{id:yi,overflow:bi},retryLane:536870912,hydrationErrors:null},n=ci(e),n.return=t,t.child=n,Ei=t,Di=null)):e=null,e===null)throw Mi(t);return mf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(no(t),a=t.mode,c=Sc({mode:`hidden`,children:c},a),r=oi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=vc(n),r.childLanes=yc(e,s,n),t.memoizedState=_c,sc(null,r)):($a(t),xc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?($a(t),t.flags&=-257,t=Cc(e,t,n)):t.memoizedState===null?(no(t),c=r.fallback,a=t.mode,r=Sc({mode:`visible`,children:r.children},a),c=oi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ma(t,e.child,null,n),r=t.child,r.memoizedState=vc(n),r.childLanes=yc(e,s,n),t.memoizedState=_c,t=sc(null,r)):(no(t),t.child=e.child,t.flags|=128,t=null);else if($a(t),mf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Ri({value:r,source:null,stack:null}),t=Cc(e,t,n)}else if(tc||Ki(e,t,n,!1),s=(n&e.childLanes)!==0,tc||s){if(s=Bl,s!==null&&(r=Xe(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Zr(e,r),bu(s,e,r),ec;pf(c)||Mu(),t=Cc(e,t,n)}else pf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Di=gf(c.nextSibling),Ei=t,Oi=!0,ki=null,Ai=!1,e!==null&&Ti(t,e),t=xc(t,r.children),t.flags|=4096);return t}return a?(no(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=ri(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=oi(c,a,n,null),c.flags|=2):c=ri(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,sc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=vc(n):(a=c.cachePool,a===null?a=ha():(l=ta._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=yc(e,s,n),t.memoizedState=_c,sc(e.child,r)):($a(t),n=e.child,e=n.sibling,n=ri(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function xc(e,t){return t=Sc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Sc(e,t){return e=G(22,e,null,t),e.lanes=0,e}function Cc(e,t,n){return Ma(t,e.child,null,n),e=xc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Wi(e.return,t,n)}function Tc(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 Ec(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=io.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,B(io,o),nc(e,t,r,n),r=Oi?hi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wc(e,n,t);else if(e.tag===19)wc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ao(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Tc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ao(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Tc(t,!0,n,null,a,r);break;case`together`:Tc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Dc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xl|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Ki(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=ri(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ri(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Oc(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&qi(e)))}function kc(e,t,n){switch(t.tag){case 3:se(t,t.stateNode.containerInfo),Hi(t,ta,e.memoizedState.cache),Ii();break;case 27:case 5:le(t);break;case 4:se(t,t.stateNode.containerInfo);break;case 10:Hi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,eo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?($a(t),e=Dc(e,t,n),e===null?null:e.sibling):bc(e,t,n):($a(t),t.flags|=128,null);$a(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=(Ki(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Ec(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),B(io,io.current),r)break;return null;case 22:return t.lanes=0,oc(e,t,n,t.pendingProps);case 24:Hi(t,ta,e.memoizedState.cache)}return Dc(e,t,n)}function Ac(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)tc=!0;else{if(!Oc(e,n)&&!(t.flags&128))return tc=!1,kc(e,t,n);tc=!!(e.flags&131072)}}else tc=!1,Oi&&t.flags&1048576&&Si(t,hi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Sa(t.elementType),t.type=e,typeof e==`function`)ni(e)?(r=Ws(e,r),t.tag=1,t=hc(null,t,e,r,n)):(t.tag=0,t=pc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=rc(null,t,e,r,n);break a}if(a===D){t.tag=14,t=ic(null,t,e,r,n);break a}}throw t=P(e)||e,Error(i(306,t,``))}}return t;case 0:return pc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Ws(r,t.pendingProps),hc(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,Ia(e,t),Ua(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Hi(t,ta,r),r!==o.cache&&Gi(t,[ta],n,!0),Ha(),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=gc(e,t,r,n);break a}if(r!==a){a=di(Error(i(424)),t),Ri(a),t=gc(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(Di=gf(e.firstChild),Ei=t,Oi=!0,ki=null,Ai=!0,n=Na(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ii(),r===a){t=Dc(e,t,n);break a}nc(e,t,r,n)}t=t.child}return t;case 26:return fc(e,t),e===null?(n=Lf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Oi||(n=t.type,e=t.pendingProps,r=Jd(ae.current).createElement(n),r[nt]=t,r[rt]=e,Hd(r,n,e),U(r),t.stateNode=r):t.memoizedState=Lf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return le(t),e===null&&Oi&&(r=t.stateNode=bf(t.type,t.pendingProps,ae.current),Ei=t,Ai=!0,a=Di,of(t.type)?(_f=a,Di=gf(r.firstChild)):Di=a),nc(e,t,t.pendingProps.children,n),fc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oi&&((a=r=Di)&&(r=uf(r,t.type,t.pendingProps,Ai),r===null?a=!1:(t.stateNode=r,Ei=t,Di=gf(r.firstChild),Ai=!1,a=!0)),a||Mi(t)),le(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Zd(a,o)?r=null:s!==null&&Zd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=bo(e,t,Co,null,null,n),op._currentValue=a),fc(e,t),nc(e,t,r,n),t.child;case 6:return e===null&&Oi&&((e=n=Di)&&(n=df(n,t.pendingProps,Ai),n===null?e=!1:(t.stateNode=n,Ei=t,Di=null,e=!0)),e||Mi(t)),null;case 13:return bc(e,t,n);case 4:return se(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ma(t,null,r,n):nc(e,t,r,n),t.child;case 11:return rc(e,t,t.type,t.pendingProps,n);case 7:return nc(e,t,t.pendingProps,n),t.child;case 8:return nc(e,t,t.pendingProps.children,n),t.child;case 12:return nc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Hi(t,t.type,r.value),nc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Ji(t),a=Yi(a),r=r(a),t.flags|=1,nc(e,t,r,n),t.child;case 14:return ic(e,t,t.type,t.pendingProps,n);case 15:return ac(e,t,t.type,t.pendingProps,n);case 19:return Ec(e,t,n);case 31:return dc(e,t,n);case 22:return oc(e,t,n,t.pendingProps);case 24:return Ji(t),r=Yi(ta),e===null?(a=pa(),a===null&&(a=Bl,o=na(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Fa(t),Hi(t,ta,a)):((e.lanes&n)!==0&&(Ia(e,t),Ua(t,null,null,n),Ha()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Hi(t,ta,r),r!==a.cache&&Gi(t,[ta],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Hi(t,ta,r))),nc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function jc(e){e.flags|=4}function Mc(e,t,n,r,i){if((t=!!(e.mode&32))&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(ku())e.flags|=8192;else throw Ca=ya,_a}}else e.flags&=-16777217}function Nc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Qf(t)){if(ku())e.flags|=8192;else throw Ca=ya,_a}}function Pc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:We(),e.lanes|=t,eu|=t)}function Fc(e,t){if(!Oi)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ic(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Lc(e,t,n){var r=t.pendingProps;switch(wi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ic(t),null;case 1:return Ic(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ui(ta),ce(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Fi(t)?jc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Li())),Ic(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(jc(t),o===null?(Ic(t),Mc(t,a,null,r,n)):(Ic(t),Nc(t,o))):o?o===e.memoizedState?(Ic(t),t.flags&=-16777217):(jc(t),Ic(t),Nc(t,o)):(e=e.memoizedProps,e!==r&&jc(t),Ic(t),Mc(t,a,e,r,n)),null;case 27:if(ue(t),n=ae.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Ic(t),null}e=re.current,Fi(t)?Ni(t,e):(e=bf(a,r,n),t.stateNode=e,jc(t))}return Ic(t),null;case 5:if(ue(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Ic(t),null}if(o=re.current,Fi(t))Ni(t,o);else{var s=Jd(ae.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[nt]=t,o[rt]=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(Hd(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&&jc(t)}}return Ic(t),Mc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ae.current,Fi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ei,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[nt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||zd(e.nodeValue,n)),e||Mi(t,!0)}else e=Jd(e).createTextNode(r),e[nt]=t,t.stateNode=e}return Ic(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Fi(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[nt]=t}else Ii(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),e=!1}else n=Li(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ro(t),t):(ro(t),null);if(t.flags&128)throw Error(i(558))}return Ic(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Fi(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[nt]=t}else Ii(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),a=!1}else a=Li(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(ro(t),t):(ro(t),null)}return ro(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),Pc(t,t.updateQueue),Ic(t),null);case 4:return ce(),e===null&&kd(t.stateNode.containerInfo),Ic(t),null;case 10:return Ui(t.type),Ic(t),null;case 19:if(z(io),r=t.memoizedState,r===null)return Ic(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)Fc(r,!1);else{if(Yl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ao(e),o!==null){for(t.flags|=128,Fc(r,!1),e=o.updateQueue,t.updateQueue=e,Pc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ii(n,e),n=n.sibling;return B(io,io.current&1|2),Oi&&xi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ce()>ou&&(t.flags|=128,a=!0,Fc(r,!1),t.lanes=4194304)}}else{if(!a){if(e=ao(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Pc(t,e),Fc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Oi)return Ic(t),null}else 2*Ce()-r.renderingStartTime>ou&&n!==536870912&&(t.flags|=128,a=!0,Fc(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Ic(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ce(),e.sibling=null,n=io.current,B(io,a?n&1|2:n&1),Oi&&xi(t,r.treeForkCount),e);case 22:case 23:return ro(t),Xa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Ic(t),t.subtreeFlags&6&&(t.flags|=8192)):Ic(t),n=t.updateQueue,n!==null&&Pc(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&&z(fa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ui(ta),Ic(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Rc(e,t){switch(wi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ui(ta),ce(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ue(t),null;case 31:if(t.memoizedState!==null){if(ro(t),t.alternate===null)throw Error(i(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ro(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return z(io),null;case 4:return ce(),null;case 10:return Ui(t.type),null;case 22:case 23:return ro(t),Xa(),e!==null&&z(fa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ui(ta),null;case 25:return null;default:return null}}function zc(e,t){switch(wi(t),t.tag){case 3:Ui(ta),ce();break;case 26:case 27:case 5:ue(t);break;case 4:ce();break;case 31:t.memoizedState!==null&&ro(t);break;case 13:ro(t);break;case 19:z(io);break;case 10:Ui(t.type);break;case 22:case 23:ro(t),Xa(),e!==null&&z(fa);break;case 24:Ui(ta)}}function Bc(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){Xu(t,t.return,e)}}function Vc(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){Xu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Xu(t,t.return,e)}}function Hc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ga(t,n)}catch(t){Xu(e,e.return,t)}}}function Uc(e,t,n){n.props=Ws(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Xu(e,t,n)}}function Wc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Xu(e,t,n)}}function Gc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Xu(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){Xu(e,t,n)}else n.current=null}}function Kc(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){Xu(e,e.return,t)}}function qc(e,t,n){try{var r=e.stateNode;Ud(r,e.type,n,t),r[rt]=t}catch(t){Xu(e,e.return,t)}}function Jc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&of(e.type)||e.tag===4}function Yc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Jc(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&&of(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 Xc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Jt));else if(r!==4&&(r===27&&of(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&of(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function Qc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Hd(t,r,n),t[nt]=e,t[rt]=n}catch(t){Xu(e,e.return,t)}}var $c=!1,el=!1,tl=!1,nl=typeof WeakSet==`function`?WeakSet:Set,rl=null;function il(e,t){if(e=e.containerInfo,Kd=hp,e=Sr(e),Cr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(qd={focusedElem:e,selectionRange:n},hp=!1,rl=t;rl!==null;)if(t=rl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,rl=e;else for(;rl!==null;){switch(t=rl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Ws(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Xu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)lf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:lf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,rl=e;break}rl=t.return}}function al(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:bl(e,n),r&4&&Bc(5,n);break;case 1:if(bl(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Xu(n,n.return,e)}else{var i=Ws(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Xu(n,n.return,e)}}}r&64&&Hc(n),r&512&&Wc(n,n.return);break;case 3:if(bl(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{Ga(e,t)}catch(e){Xu(n,n.return,e)}}break;case 27:t===null&&r&4&&Qc(n);case 26:case 5:bl(e,n),t===null&&r&4&&Kc(n),r&512&&Wc(n,n.return);break;case 12:bl(e,n);break;case 31:bl(e,n),r&4&&dl(e,n);break;case 13:bl(e,n),r&4&&fl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=ed.bind(null,n),hf(e,n))));break;case 22:if(r=n.memoizedState!==null||$c,!r){t=t!==null&&t.memoizedState!==null||el,i=$c;var a=el;$c=r,(el=t)&&!a?Sl(e,n,!!(n.subtreeFlags&8772)):bl(e,n),$c=i,el=a}break;case 30:break;default:bl(e,n)}}function ol(e){var t=e.alternate;t!==null&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ut(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 sl=null,cl=!1;function ll(e,t,n){for(n=n.child;n!==null;)ul(e,t,n),n=n.sibling}function ul(e,t,n){if(Ne&&typeof Ne.onCommitFiberUnmount==`function`)try{Ne.onCommitFiberUnmount(Me,n)}catch{}switch(n.tag){case 26:el||Gc(n,t),ll(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:el||Gc(n,t);var r=sl,i=cl;of(n.type)&&(sl=n.stateNode,cl=!1),ll(e,t,n),xf(n.stateNode),sl=r,cl=i;break;case 5:el||Gc(n,t);case 6:if(r=sl,i=cl,sl=null,ll(e,t,n),sl=r,cl=i,sl!==null){if(cl)try{(sl.nodeType===9?sl.body:sl.nodeName===`HTML`?sl.ownerDocument.body:sl).removeChild(n.stateNode)}catch(e){Xu(n,t,e)}else try{sl.removeChild(n.stateNode)}catch(e){Xu(n,t,e)}}break;case 18:sl!==null&&(cl?(e=sl,sf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Vp(e)):sf(sl,n.stateNode));break;case 4:r=sl,i=cl,sl=n.stateNode.containerInfo,cl=!0,ll(e,t,n),sl=r,cl=i;break;case 0:case 11:case 14:case 15:Vc(2,n,t),el||Vc(4,n,t),ll(e,t,n);break;case 1:el||(Gc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Uc(n,t,r)),ll(e,t,n);break;case 21:ll(e,t,n);break;case 22:el=(r=el)||n.memoizedState!==null,ll(e,t,n),el=r;break;default:ll(e,t,n)}}function dl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Vp(e)}catch(e){Xu(t,t.return,e)}}}function fl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Vp(e)}catch(e){Xu(t,t.return,e)}}function pl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new nl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new nl),t;default:throw Error(i(435,e.tag))}}function ml(e,t){var n=pl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=td.bind(null,e,t);t.then(r,r)}})}function hl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(of(c.type)){sl=c.stateNode,cl=!1;break a}break;case 5:sl=c.stateNode,cl=!1;break a;case 3:case 4:sl=c.stateNode.containerInfo,cl=!0;break a}c=c.return}if(sl===null)throw Error(i(160));ul(o,s,a),sl=null,cl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)_l(t,e),t=t.sibling}var gl=null;function _l(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:hl(t,e),vl(e),r&4&&(Vc(3,e,e.return),Bc(3,e),Vc(5,e,e.return));break;case 1:hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),r&64&&$c&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=gl;if(hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null){if(r===null){if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[lt]||o[nt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Hd(o,r,n),o[nt]=e,U(o),r=o;break a;case`link`:var s=Yf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Hd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Yf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Hd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[nt]=e,U(o),r=o}e.stateNode=r}else Xf(a,e.type,e.stateNode)}else e.stateNode=Wf(a,r,e.memoizedProps)}else o===r?r===null&&e.stateNode!==null&&qc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Xf(a,e.type,e.stateNode):Wf(a,r,e.memoizedProps))}break;case 27:hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),n!==null&&r&4&&qc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),e.flags&32){a=e.stateNode;try{Bt(a,``)}catch(t){Xu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,qc(e,a,n===null?a:n.memoizedProps)),r&1024&&(tl=!0);break;case 6:if(hl(t,e),vl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Xu(e,e.return,t)}}break;case 3:if(Jf=null,a=gl,gl=wf(t.containerInfo),hl(t,e),gl=a,vl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Vp(t.containerInfo)}catch(t){Xu(e,e.return,t)}tl&&(tl=!1,yl(e));break;case 4:r=gl,gl=wf(e.stateNode.containerInfo),hl(t,e),vl(e),gl=r;break;case 12:hl(t,e),vl(e);break;case 31:hl(t,e),vl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 13:hl(t,e),vl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(iu=Ce()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=$c,d=el;if($c=u||a,el=d||l,hl(t,e),el=d,$c=u,vl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||$c||el||xl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Xu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Xu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?cf(m,!0):cf(l.stateNode,!1)}catch(e){Xu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ml(e,n))));break;case 19:hl(t,e),vl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 30:break;case 21:break;default:hl(t,e),vl(e)}}function vl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Jc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Zc(e,Yc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Bt(o,``),n.flags&=-33),Zc(e,Yc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Xc(e,Yc(e),s);break;default:throw Error(i(161))}}catch(t){Xu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;yl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function bl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)al(e,t.alternate,t),t=t.sibling}function xl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Vc(4,t,t.return),xl(t);break;case 1:Gc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Uc(t,t.return,n),xl(t);break;case 27:xf(t.stateNode);case 26:case 5:Gc(t,t.return),xl(t);break;case 22:t.memoizedState===null&&xl(t);break;case 30:xl(t);break;default:xl(t)}e=e.sibling}}function Sl(e,t,n){for(n&&=!!(t.subtreeFlags&8772),t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Sl(i,a,n),Bc(4,a);break;case 1:if(Sl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Xu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Wa(c[i],s)}catch(e){Xu(r,r.return,e)}}n&&o&64&&Hc(a),Wc(a,a.return);break;case 27:Qc(a);case 26:case 5:Sl(i,a,n),n&&r===null&&o&4&&Kc(a),Wc(a,a.return);break;case 12:Sl(i,a,n);break;case 31:Sl(i,a,n),n&&o&4&&dl(i,a);break;case 13:Sl(i,a,n),n&&o&4&&fl(i,a);break;case 22:a.memoizedState===null&&Sl(i,a,n),Wc(a,a.return);break;case 30:break;default:Sl(i,a,n)}t=t.sibling}}function Cl(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&&ra(n))}function wl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ra(e))}function Tl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)El(e,t,n,r),t=t.sibling}function El(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Tl(e,t,n,r),i&2048&&Bc(9,t);break;case 1:Tl(e,t,n,r);break;case 3:Tl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ra(e)));break;case 12:if(i&2048){Tl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Xu(t,t.return,e)}}else Tl(e,t,n,r);break;case 31:Tl(e,t,n,r);break;case 13:Tl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Tl(e,t,n,r):(a._visibility|=2,Dl(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?Tl(e,t,n,r):Ol(e,t),i&2048&&Cl(o,t);break;case 24:Tl(e,t,n,r),i&2048&&wl(t.alternate,t);break;default:Tl(e,t,n,r)}}function Dl(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:Dl(a,o,s,c,i),Bc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Dl(a,o,s,c,i)):u._visibility&2?Dl(a,o,s,c,i):Ol(a,o),i&&l&2048&&Cl(o.alternate,o);break;case 24:Dl(a,o,s,c,i),i&&l&2048&&wl(o.alternate,o);break;default:Dl(a,o,s,c,i)}t=t.sibling}}function Ol(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:Ol(n,r),i&2048&&Cl(r.alternate,r);break;case 24:Ol(n,r),i&2048&&wl(r.alternate,r);break;default:Ol(n,r)}t=t.sibling}}var kl=8192;function Al(e,t,n){if(e.subtreeFlags&kl)for(e=e.child;e!==null;)jl(e,t,n),e=e.sibling}function jl(e,t,n){switch(e.tag){case 26:Al(e,t,n),e.flags&kl&&e.memoizedState!==null&&$f(n,gl,e.memoizedState,e.memoizedProps);break;case 5:Al(e,t,n);break;case 3:case 4:var r=gl;gl=wf(e.stateNode.containerInfo),Al(e,t,n),gl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=kl,kl=16777216,Al(e,t,n),kl=r):Al(e,t,n));break;default:Al(e,t,n)}}function Ml(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 Nl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rl=r,Il(r,e)}Ml(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pl(e),e=e.sibling}function Pl(e){switch(e.tag){case 0:case 11:case 15:Nl(e),e.flags&2048&&Vc(9,e,e.return);break;case 3:Nl(e);break;case 12:Nl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Fl(e)):Nl(e);break;default:Nl(e)}}function Fl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rl=r,Il(r,e)}Ml(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Vc(8,t,t.return),Fl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Fl(t));break;default:Fl(t)}e=e.sibling}}function Il(e,t){for(;rl!==null;){var n=rl;switch(n.tag){case 0:case 11:case 15:Vc(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:ra(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,rl=r;else a:for(n=e;rl!==null;){r=rl;var i=r.sibling,a=r.return;if(ol(r),r===n){rl=null;break a}if(i!==null){i.return=a,rl=i;break a}rl=a}}}var Ll={getCacheForType:function(e){var t=Yi(ta),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Yi(ta).controller.signal}},Rl=typeof WeakMap==`function`?WeakMap:Map,zl=0,Bl=null,Vl=null,Hl=0,Ul=0,Wl=null,Gl=!1,Kl=!1,ql=!1,Jl=0,Yl=0,Xl=0,Zl=0,Ql=0,$l=0,eu=0,tu=null,nu=null,ru=!1,iu=0,au=0,ou=1/0,su=null,cu=null,lu=0,uu=null,du=null,fu=0,pu=0,mu=null,hu=null,gu=0,_u=null;function vu(){return zl&2&&Hl!==0?Hl&-Hl:I.T===null?$e():_d()}function yu(){if($l===0){if(!(Hl&536870912)||Oi){var e=Be;Be<<=1,!(Be&3932160)&&(Be=262144),$l=e}else $l=536870912}return e=Za.current,e!==null&&(e.flags|=32),$l}function bu(e,t,n){(e===Bl&&(Ul===2||Ul===9)||e.cancelPendingCommit!==null)&&(Du(e,0),wu(e,Hl,$l,!1)),Ke(e,n),(!(zl&2)||e!==Bl)&&(e===Bl&&(!(zl&2)&&(Zl|=n),Yl===4&&wu(e,Hl,$l,!1)),ld(e))}function xu(e,t,n){if(zl&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||He(e,t),a=r?Fu(e,t):Nu(e,t,!0),o=r;do{if(a===0){Kl&&!r&&wu(e,t,0,!1);break}if(n=e.current.alternate,o&&!Cu(n)){a=Nu(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=tu;var l=c.current.memoizedState.isDehydrated;if(l&&(Du(c,s).flags|=256),s=Nu(c,s,!1),s!==2){if(ql&&!l){c.errorRecoveryDisabledLanes|=o,Zl|=o,a=4;break a}o=nu,nu=a,o!==null&&(nu===null?nu=o:nu.push.apply(nu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Du(e,0),wu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:wu(r,t,$l,!Gl);break a;case 2:nu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=iu+300-Ce(),10<a)){if(wu(r,t,$l,!Gl),H(r,0,!0)!==0)break a;fu=t,r.timeoutHandle=ef(Su.bind(null,r,n,nu,su,ru,t,$l,Zl,eu,Gl,o,`Throttled`,-0,0),a);break a}Su(r,n,nu,su,ru,t,$l,Zl,eu,Gl,o,null,-0,0)}break}while(1);ld(e)}function Su(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Jt},jl(t,a,d);var m=(a&62914560)===a?iu-Ce():(a&4194048)===a?au-Ce():0;if(m=tp(d,m),m!==null){fu=a,e.cancelPendingCommit=m(Hu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),wu(e,a,o,!l);return}}Hu(e,t,a,n,r,i,o,s,c)}function Cu(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(!_r(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 wu(e,t,n,r){t&=~Ql,t&=~Zl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Fe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Je(e,n,t)}function Tu(){return zl&6?!0:(ud(0,!1),!1)}function Eu(){if(Vl!==null){if(Ul===0)var e=Vl.return;else e=Vl,Vi=Bi=null,Eo(e),Ea=null,Da=0,e=Vl;for(;e!==null;)zc(e.alternate,e),e=e.return;Vl=null}}function Du(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,tf(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),fu=0,Eu(),Bl=e,Vl=n=ri(e.current,null),Hl=t,Ul=0,Wl=null,Gl=!1,Kl=He(e,t),ql=!1,eu=$l=Ql=Zl=Xl=Yl=0,nu=tu=null,ru=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Fe(r),a=1<<i;t|=e[i],r&=~a}return Jl=t,Jr(),n}function Ou(e,t){so=null,I.H=Is,t===ga||t===va?(t=wa(),Ul=3):t===_a?(t=wa(),Ul=4):Ul=t===ec?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Wl=t,Vl===null&&(Yl=1,Js(e,di(t,e.current)))}function ku(){var e=Za.current;return e===null?!0:(Hl&4194048)===Hl?Qa===null:(Hl&62914560)===Hl||Hl&536870912?e===Qa:!1}function Au(){var e=I.H;return I.H=Is,e===null?Is:e}function ju(){var e=I.A;return I.A=Ll,e}function Mu(){Yl=4,Gl||(Hl&4194048)!==Hl&&Za.current!==null||(Kl=!0),!(Xl&134217727)&&!(Zl&134217727)||Bl===null||wu(Bl,Hl,$l,!1)}function Nu(e,t,n){var r=zl;zl|=2;var i=Au(),a=ju();(Bl!==e||Hl!==t)&&(su=null,Du(e,t)),t=!1;var o=Yl;a:do try{if(Ul!==0&&Vl!==null){var s=Vl,c=Wl;switch(Ul){case 8:Eu(),o=6;break a;case 3:case 2:case 9:case 6:Za.current===null&&(t=!0);var l=Ul;if(Ul=0,Wl=null,zu(e,s,c,l),n&&Kl){o=0;break a}break;default:l=Ul,Ul=0,Wl=null,zu(e,s,c,l)}}Pu(),o=Yl;break}catch(t){Ou(e,t)}while(1);return t&&e.shellSuspendCounter++,Vi=Bi=null,zl=r,I.H=i,I.A=a,Vl===null&&(Bl=null,Hl=0,Jr()),o}function Pu(){for(;Vl!==null;)Lu(Vl)}function Fu(e,t){var n=zl;zl|=2;var r=Au(),a=ju();Bl!==e||Hl!==t?(su=null,ou=Ce()+500,Du(e,t)):Kl=He(e,t);a:do try{if(Ul!==0&&Vl!==null){t=Vl;var o=Wl;b:switch(Ul){case 1:Ul=0,Wl=null,zu(e,t,o,1);break;case 2:case 9:if(ba(o)){Ul=0,Wl=null,Ru(t);break}t=function(){Ul!==2&&Ul!==9||Bl!==e||(Ul=7),ld(e)},o.then(t,t);break a;case 3:Ul=7;break a;case 4:Ul=5;break a;case 7:ba(o)?(Ul=0,Wl=null,Ru(t)):(Ul=0,Wl=null,zu(e,t,o,7));break;case 5:var s=null;switch(Vl.tag){case 26:s=Vl.memoizedState;case 5:case 27:var c=Vl;if(s?Qf(s):c.stateNode.complete){Ul=0,Wl=null;var l=c.sibling;if(l!==null)Vl=l;else{var u=c.return;u===null?Vl=null:(Vl=u,Bu(u))}break b}}Ul=0,Wl=null,zu(e,t,o,5);break;case 6:Ul=0,Wl=null,zu(e,t,o,6);break;case 8:Eu(),Yl=6;break a;default:throw Error(i(462))}}Iu();break}catch(t){Ou(e,t)}while(1);return Vi=Bi=null,I.H=r,I.A=a,zl=n,Vl===null?(Bl=null,Hl=0,Jr(),Yl):0}function Iu(){for(;Vl!==null&&!xe();)Lu(Vl)}function Lu(e){var t=Ac(e.alternate,e,Jl);e.memoizedProps=e.pendingProps,t===null?Bu(e):Vl=t}function Ru(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=mc(n,t,t.pendingProps,t.type,void 0,Hl);break;case 11:t=mc(n,t,t.pendingProps,t.type.render,t.ref,Hl);break;case 5:Eo(t);default:zc(n,t),t=Vl=ii(t,Jl),t=Ac(n,t,Jl)}e.memoizedProps=e.pendingProps,t===null?Bu(e):Vl=t}function zu(e,t,n,r){Vi=Bi=null,Eo(t),Ea=null,Da=0;var i=t.return;try{if($s(e,i,t,n,Hl)){Yl=1,Js(e,di(n,e.current)),Vl=null;return}}catch(t){if(i!==null)throw Vl=i,t;Yl=1,Js(e,di(n,e.current)),Vl=null;return}t.flags&32768?(Oi||r===1?e=!0:Kl||Hl&536870912?e=!1:(Gl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Za.current,r!==null&&r.tag===13&&(r.flags|=16384))),Vu(t,e)):Bu(t)}function Bu(e){var t=e;do{if(t.flags&32768){Vu(t,Gl);return}e=t.return;var n=Lc(t.alternate,t,Jl);if(n!==null){Vl=n;return}if(t=t.sibling,t!==null){Vl=t;return}Vl=t=e}while(t!==null);Yl===0&&(Yl=5)}function Vu(e,t){do{var n=Rc(e.alternate,e);if(n!==null){n.flags&=32767,Vl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Vl=e;return}Vl=e=n}while(e!==null);Yl=6,Vl=null}function Hu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do qu();while(lu!==0);if(zl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=qr,qe(e,n,o,s,c,l),e===Bl&&(Vl=Bl=null,Hl=0),du=t,uu=e,fu=n,pu=o,mu=a,hu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,nd(De,function(){return Ju(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=I.T,I.T=null,a=L.p,L.p=2,s=zl,zl|=4;try{il(e,t,n)}finally{zl=s,L.p=a,I.T=r}}lu=1,Uu(),Wu(),Gu()}}function Uu(){if(lu===1){lu=0;var e=uu,t=du,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=zl;zl|=4;try{_l(t,e);var a=qd,o=Sr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&xr(s.ownerDocument.documentElement,s)){if(c!==null&&Cr(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 _=br(s,h),v=br(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}}hp=!!Kd,qd=Kd=null}finally{zl=i,L.p=r,I.T=n}}e.current=t,lu=2}}function Wu(){if(lu===2){lu=0;var e=uu,t=du,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=zl;zl|=4;try{al(e,t.alternate,t)}finally{zl=i,L.p=r,I.T=n}}lu=3}}function Gu(){if(lu===4||lu===3){lu=0,Se();var e=uu,t=du,n=fu,r=hu;t.subtreeFlags&10256||t.flags&10256?lu=5:(lu=0,du=uu=null,Ku(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(cu=null),Qe(n),t=t.stateNode,Ne&&typeof Ne.onCommitFiberRoot==`function`)try{Ne.onCommitFiberRoot(Me,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=I.T,i=L.p,L.p=2,I.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{I.T=t,L.p=i}}fu&3&&qu(),ld(e),i=e.pendingLanes,n&261930&&i&42?e===_u?gu++:(gu=0,_u=e):gu=0,ud(0,!1)}}function Ku(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ra(t)))}function qu(){return Uu(),Wu(),Gu(),Ju()}function Ju(){if(lu!==5)return!1;var e=uu,t=pu;pu=0;var n=Qe(fu),r=I.T,a=L.p;try{L.p=32>n?32:n,I.T=null,n=mu,mu=null;var o=uu,s=fu;if(lu=0,du=uu=null,fu=0,zl&6)throw Error(i(331));var c=zl;if(zl|=4,Pl(o.current),El(o,o.current,s,n),zl=c,ud(0,!1),Ne&&typeof Ne.onPostCommitFiberRoot==`function`)try{Ne.onPostCommitFiberRoot(Me,o)}catch{}return!0}finally{L.p=a,I.T=r,Ku(e,t)}}function Yu(e,t,n){t=di(n,t),t=Xs(e.stateNode,t,2),e=Ra(e,t,2),e!==null&&(Ke(e,2),ld(e))}function Xu(e,t,n){if(e.tag===3)Yu(e,e,n);else for(;t!==null;){if(t.tag===3){Yu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(cu===null||!cu.has(r))){e=di(n,e),n=Zs(2),r=Ra(t,n,2),r!==null&&(Qs(n,r,t,e),Ke(r,2),ld(r));break}}t=t.return}}function Zu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rl;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)||(ql=!0,i.add(n),e=Qu.bind(null,e,t,n),t.then(e,e))}function Qu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Bl===e&&(Hl&n)===n&&(Yl===4||Yl===3&&(Hl&62914560)===Hl&&300>Ce()-iu?!(zl&2)&&Du(e,0):Ql|=n,eu===Hl&&(eu=0)),ld(e)}function $u(e,t){t===0&&(t=We()),e=Zr(e,t),e!==null&&(Ke(e,t),ld(e))}function ed(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$u(e,n)}function td(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),$u(e,n)}function nd(e,t){return ye(e,t)}var rd=null,id=null,ad=!1,od=!1,sd=!1,cd=0;function ld(e){e!==id&&e.next===null&&(id===null?rd=id=e:id=id.next=e),od=!0,ad||(ad=!0,gd())}function ud(e,t){if(!sd&&od){sd=!0;do for(var n=!1,r=rd;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-Fe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,hd(r,a))}else a=Hl,a=H(r,r===Bl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||He(r,a)||(n=!0,hd(r,a))}r=r.next}while(n);sd=!1}}function dd(){fd()}function fd(){od=ad=!1;var e=0;cd!==0&&$d()&&(e=cd);for(var t=Ce(),n=null,r=rd;r!==null;){var i=r.next,a=pd(r,t);a===0?(r.next=null,n===null?rd=i:n.next=i,i===null&&(id=n)):(n=r,(e!==0||a&3)&&(od=!0)),r=i}lu!==0&&lu!==5||ud(e,!1),cd!==0&&(cd=0)}function pd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Fe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ue(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Bl,n=Hl,n=H(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Ul===2||Ul===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&be(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||He(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&be(r),Qe(n)){case 2:case 8:n=Ee;break;case 32:n=De;break;case 268435456:n=ke;break;default:n=De}return r=md.bind(null,e),n=ye(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&be(r),e.callbackPriority=2,e.callbackNode=null,2}function md(e,t){if(lu!==0&&lu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(qu()&&e.callbackNode!==n)return null;var r=Hl;return r=H(e,e===Bl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(xu(e,r,t),pd(e,Ce()),e.callbackNode!=null&&e.callbackNode===n?md.bind(null,e):null)}function hd(e,t){if(qu())return null;xu(e,t,!0)}function gd(){rf(function(){zl&6?ye(Te,dd):fd()})}function _d(){if(cd===0){var e=oa;e===0&&(e=ze,ze<<=1,!(ze&261888)&&(ze=256)),cd=e}return cd}function vd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:qt(``+e)}function yd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function bd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=vd((i[rt]||null).action),o=r.submitter;o&&(t=(t=o[rt]||null)?vd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new gn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(cd!==0){var e=o?yd(i,o):new FormData(i);Ss(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?yd(i,o):new FormData(i),Ss(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var xd=0;xd<Hr.length;xd++){var Sd=Hr[xd];Ur(Sd.toLowerCase(),`on`+(Sd[0].toUpperCase()+Sd.slice(1)))}Ur(Pr,`onAnimationEnd`),Ur(Fr,`onAnimationIteration`),Ur(Ir,`onAnimationStart`),Ur(`dblclick`,`onDoubleClick`),Ur(`focusin`,`onFocus`),Ur(`focusout`,`onBlur`),Ur(Lr,`onTransitionRun`),Ur(Rr,`onTransitionStart`),Ur(zr,`onTransitionCancel`),Ur(Br,`onTransitionEnd`),vt(`onMouseEnter`,[`mouseout`,`mouseover`]),vt(`onMouseLeave`,[`mouseout`,`mouseover`]),vt(`onPointerEnter`,[`pointerout`,`pointerover`]),vt(`onPointerLeave`,[`pointerout`,`pointerover`]),_t(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),_t(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),_t(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),_t(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),_t(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),_t(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Cd=`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(` `),wd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Cd));function Td(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){Wr(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){Wr(e)}i.currentTarget=null,a=c}}}}function Ed(e,t){var n=t[at];n===void 0&&(n=t[at]=new Set);var r=e+`__bubble`;n.has(r)||(Ad(t,e,2,!1),n.add(r))}function Dd(e,t,n){var r=0;t&&(r|=4),Ad(n,e,r,t)}var Od=`_reactListening`+Math.random().toString(36).slice(2);function kd(e){if(!e[Od]){e[Od]=!0,ht.forEach(function(t){t!==`selectionchange`&&(wd.has(t)||Dd(t,!1,e),Dd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Od]||(t[Od]=!0,Dd(`selectionchange`,!1,t))}}function Ad(e,t,n,r){switch(Sp(t)){case 2:var i=gp;break;case 8:i=_p;break;default:i=vp}n=i.bind(null,t,n,e),i=void 0,!an||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 jd(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=dt(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}tn(function(){var r=a,i=Xt(n),s=[];a:{var c=Vr.get(e);if(c!==void 0){var l=gn,u=e;switch(e){case`keypress`:if(dn(n)===0)break a;case`keydown`:case`keyup`:l=Pn;break;case`focusin`:u=`focus`,l=Tn;break;case`focusout`:u=`blur`,l=Tn;break;case`beforeblur`:case`afterblur`:l=Tn;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=Cn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=wn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=In;break;case Pr:case Fr:case Ir:l=En;break;case Br:l=Ln;break;case`scroll`:case`scrollend`:l=vn;break;case`wheel`:l=Rn;break;case`copy`:case`cut`:case`paste`:l=Dn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Fn;break;case`toggle`:case`beforetoggle`:l=zn}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=nn(m,p),g!=null&&d.push(Md(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==Yt&&(u=n.relatedTarget||n.fromElement)&&(dt(u)||u[it]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?dt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Cn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Fn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:pt(l),h=u==null?c:pt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,dt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Pd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Fd(s,c,l,d,!1),u!==null&&f!==null&&Fd(s,f,u,d,!0)}}a:{if(c=r?pt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=ar;else if($n(c)){if(or)v=hr;else{v=pr;var y=fr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Wt(r.elementType)&&(v=ar):v=mr;if(v&&=v(e,r)){er(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&It(c,`number`,c.value)}switch(y=r?pt(r):window,e){case`focusin`:($n(y)||y.contentEditable===`true`)&&(Tr=y,Er=r,Dr=null);break;case`focusout`:Dr=Er=Tr=null;break;case`mousedown`:Or=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Or=!1,kr(s,n,i);break;case`selectionchange`:if(wr)break;case`keydown`:case`keyup`:kr(s,n,i)}var b;if(Vn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Yn?qn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Wn&&n.locale!==`ko`&&(Yn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Yn&&(b=un()):(sn=i,cn=`value`in sn?sn.value:sn.textContent,Yn=!0)),y=Nd(r,x),0<y.length&&(x=new On(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Jn(n),b!==null&&(x.data=b)))),(b=Un?Xn(e,n):Zn(e,n))&&(x=Nd(r,`onBeforeInput`),0<x.length&&(y=new On(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),bd(s,e,r,n,i)}Td(s,t)})}function Md(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Nd(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=nn(e,n),i!=null&&r.unshift(Md(e,i,a)),i=nn(e,t),i!=null&&r.push(Md(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Pd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Fd(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=nn(n,a),l!=null&&o.unshift(Md(n,l,c))):i||(l=nn(n,a),l!=null&&o.push(Md(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Id=/\r\n?/g,Ld=/\u0000|\uFFFD/g;function Rd(e){return(typeof e==`string`?e:``+e).replace(Id,`
9
+ `).replace(Ld,``)}function zd(e,t){return t=Rd(t),Rd(e)===t}function Bd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Bt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Bt(e,``+r);break;case`className`:wt(e,`class`,r);break;case`tabIndex`:wt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:wt(e,n,r);break;case`style`:Ut(e,r,o);break;case`data`:if(t!==`object`){wt(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=qt(``+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`&&Bd(e,t,`name`,a.name,a,null),Bd(e,t,`formEncType`,a.formEncType,a,null),Bd(e,t,`formMethod`,a.formMethod,a,null),Bd(e,t,`formTarget`,a.formTarget,a,null)):(Bd(e,t,`encType`,a.encType,a,null),Bd(e,t,`method`,a.method,a,null),Bd(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=qt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Jt);break;case`onScroll`:r!=null&&Ed(`scroll`,e);break;case`onScrollEnd`:r!=null&&Ed(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=qt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Ed(`beforetoggle`,e),Ed(`toggle`,e),Ct(e,`popover`,r);break;case`xlinkActuate`:Tt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Tt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Tt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Tt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Tt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Tt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Tt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Tt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Tt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Ct(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Gt.get(n)||n,Ct(e,n,r))}}function Vd(e,t,n,r,a,o){switch(n){case`style`:Ut(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Bt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Bt(e,``+r);break;case`onScroll`:r!=null&&Ed(`scroll`,e);break;case`onScrollEnd`:r!=null&&Ed(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Jt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!gt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[rt]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Ct(e,n,r)}}}function Hd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Ed(`error`,e),Ed(`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:Bd(e,t,o,s,n,null)}}a&&Bd(e,t,`srcSet`,n.srcSet,n,null),r&&Bd(e,t,`src`,n.src,n,null);return;case`input`:Ed(`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:Bd(e,t,r,d,n,null)}}Ft(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Ed(`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:Bd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Lt(e,!!r,n,!0):Lt(e,!!r,t,!1);return;case`textarea`:for(s in Ed(`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:Bd(e,t,s,c,n,null)}zt(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:Bd(e,t,l,r,n,null)}return;case`dialog`:Ed(`beforetoggle`,e),Ed(`toggle`,e),Ed(`cancel`,e),Ed(`close`,e);break;case`iframe`:case`object`:Ed(`load`,e);break;case`video`:case`audio`:for(r=0;r<Cd.length;r++)Ed(Cd[r],e);break;case`image`:Ed(`error`,e),Ed(`load`,e);break;case`details`:Ed(`toggle`,e);break;case`embed`:case`source`:case`link`:Ed(`error`,e),Ed(`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:Bd(e,t,u,r,n,null)}return;default:if(Wt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Vd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Bd(e,t,c,r,n,null))}function Ud(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)||Bd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Bd(e,t,p,m,r,f)}}Pt(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)||Bd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Bd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Lt(e,!!n,n?[]:``,!1):Lt(e,!!n,t,!0)):Lt(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:Bd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Bd(e,t,s,a,r,o)}Rt(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:Bd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Bd(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)&&Bd(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:Bd(e,t,u,p,r,m)}return;default:if(Wt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Vd(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||Vd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Bd(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||Bd(e,t,f,p,r,m)}function Wd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Gd(){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&&Wd(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&&Wd(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 Kd=null,qd=null;function Jd(e){return e.nodeType===9?e:e.ownerDocument}function Yd(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 Xd(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 Zd(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 Qd=null;function $d(){var e=window.event;return e&&e.type===`popstate`?e!==Qd&&(Qd=e,!0):(Qd=null,!1)}var ef=typeof setTimeout==`function`?setTimeout:void 0,tf=typeof clearTimeout==`function`?clearTimeout:void 0,nf=typeof Promise==`function`?Promise:void 0,rf=typeof queueMicrotask==`function`?queueMicrotask:nf===void 0?ef:function(e){return nf.resolve(null).then(e).catch(af)};function af(e){setTimeout(function(){throw e})}function of(e){return e===`head`}function sf(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),Vp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)xf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,xf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[lt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&xf(e.ownerDocument.body)}n=i}while(n);Vp(t)}function cf(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 lf(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`:lf(n),ut(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function uf(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[lt])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=gf(e.nextSibling),e===null)break}return null}function df(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=gf(e.nextSibling),e===null))return null;return e}function ff(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=gf(e.nextSibling),e===null))return null;return e}function pf(e){return e.data===`$?`||e.data===`$~`}function mf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function hf(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 gf(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 _f=null;function vf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return gf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function yf(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 bf(e,t,n){switch(t=Jd(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 xf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ut(e)}var Sf=new Map,Cf=new Set;function wf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Tf=L.d;L.d={f:Ef,r:Df,D:Af,C:jf,L:Mf,m:Nf,X:Ff,S:Pf,M:If};function Ef(){var e=Tf.f(),t=Tu();return e||t}function Df(e){var t=ft(e);t!==null&&t.tag===5&&t.type===`form`?ws(t):Tf.r(e)}var Of=typeof document>`u`?null:document;function kf(e,t,n){var r=Of;if(r&&typeof t==`string`&&t){var i=Nt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Cf.has(i)||(Cf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Hd(t,`link`,e),U(t),r.head.appendChild(t)))}}function Af(e){Tf.D(e),kf(`dns-prefetch`,e,null)}function jf(e,t){Tf.C(e,t),kf(`preconnect`,e,t)}function Mf(e,t,n){Tf.L(e,t,n);var r=Of;if(r&&e&&t){var i=`link[rel="preload"][as="`+Nt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Nt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Nt(n.imageSizes)+`"]`)):i+=`[href="`+Nt(e)+`"]`;var a=i;switch(t){case`style`:a=Rf(e);break;case`script`:a=Hf(e)}Sf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Sf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(zf(a))||t===`script`&&r.querySelector(Uf(a))||(t=r.createElement(`link`),Hd(t,`link`,e),U(t),r.head.appendChild(t)))}}function Nf(e,t){Tf.m(e,t);var n=Of;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Nt(r)+`"][href="`+Nt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Hf(e)}if(!Sf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),Sf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Uf(a)))return}r=n.createElement(`link`),Hd(r,`link`,e),U(r),n.head.appendChild(r)}}}function Pf(e,t,n){Tf.S(e,t,n);var r=Of;if(r&&e){var i=mt(r).hoistableStyles,a=Rf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(zf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Sf.get(a))&&Kf(e,n);var c=o=r.createElement(`link`);U(c),Hd(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,Gf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Ff(e,t){Tf.X(e,t);var n=Of;if(n&&e){var r=mt(n).hoistableScripts,i=Hf(e),a=r.get(i);a||(a=n.querySelector(Uf(i)),a||(e=m({src:e,async:!0},t),(t=Sf.get(i))&&qf(e,t),a=n.createElement(`script`),U(a),Hd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function If(e,t){Tf.M(e,t);var n=Of;if(n&&e){var r=mt(n).hoistableScripts,i=Hf(e),a=r.get(i);a||(a=n.querySelector(Uf(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=Sf.get(i))&&qf(e,t),a=n.createElement(`script`),U(a),Hd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lf(e,t,n,r){var a=(a=ae.current)?wf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Rf(n.href),n=mt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Rf(n.href);var o=mt(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(zf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Sf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Sf.set(e,n),o||Vf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Hf(n),n=mt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Rf(e){return`href="`+Nt(e)+`"`}function zf(e){return`link[rel="stylesheet"][`+e+`]`}function Bf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Vf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Hd(t,`link`,n),U(t),e.head.appendChild(t))}function Hf(e){return`[src="`+Nt(e)+`"]`}function Uf(e){return`script[async]`+e}function Wf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Nt(n.href)+`"]`);if(r)return t.instance=r,U(r),r;var a=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),U(r),Hd(r,`style`,a),Gf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Rf(n.href);var o=e.querySelector(zf(a));if(o)return t.state.loading|=4,t.instance=o,U(o),o;r=Bf(n),(a=Sf.get(a))&&Kf(r,a),o=(e.ownerDocument||e).createElement(`link`),U(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Hd(o,`link`,r),t.state.loading|=4,Gf(o,n.precedence,e),t.instance=o;case`script`:return o=Hf(n.src),(a=e.querySelector(Uf(o)))?(t.instance=a,U(a),a):(r=n,(a=Sf.get(o))&&(r=m({},n),qf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),U(a),Hd(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,Gf(r,n.precedence,e));return t.instance}function Gf(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 Kf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function qf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Jf=null;function Yf(e,t,n){if(Jf===null){var r=new Map,i=Jf=new Map;i.set(n,r)}else i=Jf,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[lt]||a[nt]||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 Xf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Zf(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 Qf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function $f(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=Rf(r.href),a=t.querySelector(zf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=np.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,U(a);return}a=t.ownerDocument||t,r=Bf(r),(i=Sf.get(i))&&Kf(r,i),a=a.createElement(`link`),U(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Hd(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=np.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var ep=0;function tp(e,t){return e.stylesheets&&e.count===0&&ip(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ip(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&ep===0&&(ep=62500*Gd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ip(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>ep?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function np(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ip(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var rp=null;function ip(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,rp=new Map,t.forEach(ap,e),rp=null,np.call(e))}function ap(e,t){if(!(t.state.loading&4)){var n=rp.get(e);if(n)var r=n.get(null);else{n=new Map,rp.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=np.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 op={$$typeof:C,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function sp(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=Ge(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ge(0),this.hiddenUpdates=Ge(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function cp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new sp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=G(3,null,null,t),e.current=a,a.stateNode=e,t=na(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Fa(a),e}function lp(e){return e?(e=ei,e):ei}function up(e,t,n,r,i,a){i=lp(i),r.context===null?r.context=i:r.pendingContext=i,r=La(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ra(e,r,t),n!==null&&(bu(n,e,t),za(n,e,t))}function dp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function fp(e,t){dp(e,t),(e=e.alternate)&&dp(e,t)}function pp(e){if(e.tag===13||e.tag===31){var t=Zr(e,67108864);t!==null&&bu(t,e,67108864),fp(e,67108864)}}function mp(e){if(e.tag===13||e.tag===31){var t=vu();t=Ze(t);var n=Zr(e,t);n!==null&&bu(n,e,t),fp(e,t)}}var hp=!0;function gp(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=2,vp(e,t,n,r)}finally{L.p=a,I.T=i}}function _p(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=8,vp(e,t,n,r)}finally{L.p=a,I.T=i}}function vp(e,t,n,r){if(hp){var i=yp(r);if(i===null)jd(e,t,r,bp,n),jp(e,r);else if(Np(i,e,t,n,r))r.stopPropagation();else if(jp(e,r),t&4&&-1<Ap.indexOf(e)){for(;i!==null;){var a=ft(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=V(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Fe(o);s.entanglements[1]|=c,o&=~c}ld(a),!(zl&6)&&(ou=Ce()+500,ud(0,!1))}}break;case 31:case 13:s=Zr(a,2),s!==null&&bu(s,a,2),Tu(),fp(a,2)}if(a=yp(r),a===null&&jd(e,t,r,bp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else jd(e,t,r,null,n)}}function yp(e){return e=Xt(e),xp(e)}var bp=null;function xp(e){if(bp=null,e=dt(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 bp=e,null}function Sp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(we()){case Te:return 2;case Ee:return 8;case De:case Oe:return 32;case ke:return 268435456;default:return 32}default:return 32}}var Cp=!1,wp=null,Tp=null,Ep=null,Dp=new Map,Op=new Map,kp=[],Ap=`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 jp(e,t){switch(e){case`focusin`:case`focusout`:wp=null;break;case`dragenter`:case`dragleave`:Tp=null;break;case`mouseover`:case`mouseout`:Ep=null;break;case`pointerover`:case`pointerout`:Dp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Op.delete(t.pointerId)}}function Mp(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=ft(t),t!==null&&pp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Np(e,t,n,r,i){switch(t){case`focusin`:return wp=Mp(wp,e,t,n,r,i),!0;case`dragenter`:return Tp=Mp(Tp,e,t,n,r,i),!0;case`mouseover`:return Ep=Mp(Ep,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Dp.set(a,Mp(Dp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Op.set(a,Mp(Op.get(a)||null,e,t,n,r,i)),!0}return!1}function Pp(e){var t=dt(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,et(e.priority,function(){mp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,et(e.priority,function(){mp(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 Fp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=yp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Yt=r,n.target.dispatchEvent(r),Yt=null}else return t=ft(n),t!==null&&pp(t),e.blockedOn=n,!1;t.shift()}return!0}function Ip(e,t,n){Fp(e)&&n.delete(t)}function Lp(){Cp=!1,wp!==null&&Fp(wp)&&(wp=null),Tp!==null&&Fp(Tp)&&(Tp=null),Ep!==null&&Fp(Ep)&&(Ep=null),Dp.forEach(Ip),Op.forEach(Ip)}function Rp(e,n){e.blockedOn===n&&(e.blockedOn=null,Cp||(Cp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Lp)))}var zp=null;function Bp(e){zp!==e&&(zp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){zp===e&&(zp=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(xp(r||n)===null)continue;break}var a=ft(n);a!==null&&(e.splice(t,3),t-=3,Ss(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Vp(e){function t(t){return Rp(t,e)}wp!==null&&Rp(wp,e),Tp!==null&&Rp(Tp,e),Ep!==null&&Rp(Ep,e),Dp.forEach(t),Op.forEach(t);for(var n=0;n<kp.length;n++){var r=kp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<kp.length&&(n=kp[0],n.blockedOn===null);)Pp(n),n.blockedOn===null&&kp.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[rt]||null;if(typeof a==`function`)o||Bp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[rt]||null)s=o.formAction;else if(xp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Bp(n)}}}function Hp(){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 Up(e){this._internalRoot=e}Wp.prototype.render=Up.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;up(n,vu(),e,t,null,null)},Wp.prototype.unmount=Up.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;up(e.current,2,null,e,null,null),Tu(),t[it]=null}};function Wp(e){this._internalRoot=e}Wp.prototype.unstable_scheduleHydration=function(e){if(e){var t=$e();e={blockedOn:null,target:e,priority:t};for(var n=0;n<kp.length&&t!==0&&t<kp[n].priority;n++);kp.splice(n,0,e),n===0&&Pp(e)}};var Gp=n.version;if(Gp!==`19.2.8`)throw Error(i(527,Gp,`19.2.8`));L.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var Kp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:I,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var qp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qp.isDisabled&&qp.supportsFiber)try{Me=qp.inject(Kp),Ne=qp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Gs,s=Ks,c=qs;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=cp(e,1,!1,null,null,n,r,null,o,s,c,Hp),e[it]=t.current,kd(e),new Up(t)}})),_=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},y=new class extends v{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},b={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},x=new class{#e=b;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function S(e){setTimeout(e,0)}var C=typeof window>`u`||`Deno`in globalThis;function w(){}function T(e,t){return typeof e==`function`?e(t):e}function E(e){return typeof e==`number`&&e>=0&&e!==1/0}function D(e,t){return Math.max(e+(t||0)-Date.now(),0)}function O(e,t){return typeof e==`function`?e(t):e}function k(e,t){return typeof e==`function`?e(t):e}function A(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==M(o,t.options))return!1}else if(!P(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function j(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(N(t.options.mutationKey)!==N(a))return!1}else if(!P(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function M(e,t){return(t?.queryKeyHashFn||N)(e)}function N(e){return JSON.stringify(e,(e,t)=>te(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function P(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<t.length;n++)if(!P(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!P(e[r],t[r]))return!1;return!0}return!1}var F=Object.prototype.hasOwnProperty;function I(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=ee(e)&&ee(t);if(!r&&!(te(e)&&te(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:F.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=I(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function L(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function ee(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function te(e){if(!ne(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!ne(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function ne(e){return Object.prototype.toString.call(e)===`[object Object]`}function R(e){return new Promise(t=>{x.setTimeout(t,e)})}function z(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:I(e,t)}function B(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function re(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ie=Symbol();function ae(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ie?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function oe(e,t){return typeof e==`function`?e(...t):!!e}function se(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var ce=(()=>{let e=()=>C;return{isServer(){return e()},setIsServer(t){e=t}}})();function le(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var ue=S;function de(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=ue,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var fe=de(),pe=new class extends v{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function me(e){return Math.min(1e3*2**e,3e4)}function he(e){return(e??`online`)!==`online`||pe.isOnline()}var ge=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function _e(e){let t=!1,n=0,r,i=le(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new ge(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>y.isFocused()&&(e.networkMode===`always`||pe.isOnline())&&e.canRun(),u=()=>he(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(ce.isServer()?0:3),o=e.retryDelay??me,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),R(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var ve=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),E(this.gcTime)&&(this.#e=x.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ce.isServer()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(x.clearTimeout(this.#e),this.#e=void 0)}};function ye(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{se(e,()=>t.signal,()=>n=!0)},u=ae(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?re:B;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?xe:be,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:be(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function be(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function xe(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Se=class extends ve{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Te(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Te(this.options);e.data!==void 0&&(this.setState(we(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=z(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(w).catch(w):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>k(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ie||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>O(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!D(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=ae(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?ye(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=_e({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof ge&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof ge){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Ce(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...we(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),fe.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Ce(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:he(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function we(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Te(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Ee=class extends v{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=le(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Oe(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ke(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ke(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof k(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!L(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&Ae(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||k(this.options.enabled,this.#t)!==k(t.enabled,this.#t)||O(this.options.staleTime,this.#t)!==O(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||k(this.options.enabled,this.#t)!==k(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Me(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(w)),t}#g(){this.#b();let e=O(this.options.staleTime,this.#t);if(ce.isServer()||this.#r.isStale||!E(e))return;let t=D(this.#r.dataUpdatedAt,e)+1;this.#d=x.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(ce.isServer()||k(this.options.enabled,this.#t)===!1||!E(this.#p)||this.#p===0)&&(this.#f=x.setInterval(()=>{(this.options.refetchIntervalInBackground||y.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(x.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(x.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Oe(e,t),o=i&&Ae(e,n,t,r);(a||o)&&(l={...l,...Ce(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=z(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h){if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=z(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:je(e,t),refetch:this.refetch,promise:this.#o,isEnabled:k(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{let e=this.#o=x.promise=le();i(e)},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a()}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!L(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){fe.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function De(e,t){return k(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||k(t.retryOnMount,e)!==!1)}function Oe(e,t){return De(e,t)||e.state.data!==void 0&&ke(e,t,t.refetchOnMount)}function ke(e,t,n){if(k(t.enabled,e)!==!1&&O(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&je(e,t)}return!1}function Ae(e,t,n,r){return(e!==t||k(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&je(e,n)}function je(e,t){return k(t.enabled,e)!==!1&&e.isStaleByTime(O(t.staleTime,e))}function Me(e,t){return!L(e.getCurrentResult(),t)}var Ne=class extends ve{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Pe(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=_e({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),fe.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Pe(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Fe=class extends v{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Ne({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Ie(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Ie(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Ie(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=Ie(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){fe.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>j(t,e))}findAll(e={}){return this.getAll().filter(t=>j(e,t))}notify(e){fe.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return fe.batch(()=>Promise.all(e.map(e=>e.continue().catch(w))))}};function Ie(e){return e.options.scope?.id}var Le=class extends v{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),L(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&N(t.mutationKey)!==N(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Pe();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){fe.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},Re=class extends v{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??M(r,t),a=this.get(i);return a||(a=new Se({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){fe.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>A(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>A(e,t)):t}notify(e){fe.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){fe.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){fe.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},ze=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Re,this.#t=e.mutationCache||new Fe,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=y.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=pe.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(O(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=T(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return fe.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;fe.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return fe.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=fe.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(w).catch(w)}invalidateQueries(e,t={}){return fe.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=fe.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(w)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(w)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(O(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(w).catch(w)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(w).catch(w)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return pe.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(N(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{P(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(N(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{P(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=M(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===ie&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Be=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})),Ve=o(((e,t)=>{t.exports=Be()})),V=l(d(),1),H=Ve(),He=V.createContext(void 0),Ue=e=>{let t=V.useContext(He);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},We=({client:e,children:t})=>(V.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,H.jsx)(He.Provider,{value:e,children:t})),Ge=V.createContext(!1),Ke=()=>V.useContext(Ge);Ge.Provider;function qe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Je=V.createContext(qe()),Ye=()=>V.useContext(Je),Xe=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?oe(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Ze=e=>{V.useEffect(()=>{e.clearReset()},[e])},Qe=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||oe(n,[e.error,r])),$e=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},et=(e,t)=>e.isLoading&&e.isFetching&&!t,tt=(e,t)=>e?.suspense&&t.isPending,nt=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function rt(e,t,n){let r=Ke(),i=Ye(),a=Ue(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,$e(o),Xe(o,i,s),Ze(i);let l=!a.getQueryCache().get(o.queryHash),[u]=V.useState(()=>new t(a,o)),d=u.getOptimisticResult(o),f=!r&&c;if(V.useSyncExternalStore(V.useCallback(e=>{let t=f?u.subscribe(fe.batchCalls(e)):w;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),V.useEffect(()=>{u.setOptions(o)},[o,u]),tt(o,d))throw nt(o,u,i);if(Qe({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw d.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!ce.isServer()&&et(d,r)&&(l?nt(o,u,i):s?.promise)?.catch(w).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?d:u.trackResult(d)}function it(e,t){return rt(e,Ee,t)}function at(e,t){let n=Ue(t),[r]=V.useState(()=>new Le(n,e));V.useEffect(()=>{r.setOptions(e)},[r,e]);let i=V.useSyncExternalStore(V.useCallback(e=>r.subscribe(fe.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=V.useCallback((e,t)=>{r.mutate(e,t).catch(w)},[r]);if(i.error&&oe(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var ot=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),st=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),ct=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),lt=e=>{let t=ct(e);return t.charAt(0).toUpperCase()+t.slice(1)},ut={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},dt=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},ft=(0,V.createContext)({}),pt=()=>(0,V.useContext)(ft),mt=(0,V.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=pt()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,V.createElement)(`svg`,{ref:c,...ut,width:t??l??ut.width,height:t??l??ut.height,stroke:e??f,strokeWidth:m,className:ot(`lucide`,p,i),...!a&&!dt(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,V.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),U=(e,t)=>{let n=(0,V.forwardRef)(({className:n,...r},i)=>(0,V.createElement)(mt,{ref:i,iconNode:t,className:ot(`lucide-${st(lt(e))}`,`lucide-${e}`,n),...r}));return n.displayName=lt(e),n},ht=U(`arrow-down-right`,[[`path`,{d:`m7 7 10 10`,key:`1fmybs`}],[`path`,{d:`M17 7v10H7`,key:`6fjiku`}]]),gt=U(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),_t=U(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),vt=U(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),yt=U(`arrow-up-down`,[[`path`,{d:`m21 16-4 4-4-4`,key:`f6ql7i`}],[`path`,{d:`M17 20V4`,key:`1ejh1v`}],[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}]]),bt=U(`arrow-up-right`,[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]),xt=U(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),St=U(`baseline`,[[`path`,{d:`M4 20h16`,key:`14thso`}],[`path`,{d:`m6 16 6-12 6 12`,key:`1b4byz`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),Ct=U(`bold`,[[`path`,{d:`M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8`,key:`mg9rjx`}]]),wt=U(`book-open-text`,[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M16 13h2`,key:`weia3s`}],[`path`,{d:`M16 9h2`,key:`1n7gjm`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}],[`path`,{d:`M6 13h2`,key:`1cckiz`}],[`path`,{d:`M6 9h2`,key:`1k7j9f`}]]),Tt=U(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),Et=U(`braces`,[[`path`,{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`,key:`ezmyqa`}],[`path`,{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`,key:`e1hn23`}]]),Dt=U(`calendar`,[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]),Ot=U(`chart-column`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]]),kt=U(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),At=U(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),jt=U(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Mt=U(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),Nt=U(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Pt=U(`chevrons-up-down`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),Ft=U(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),It=U(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Lt=U(`code-xml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),Rt=U(`contact-round`,[[`path`,{d:`M16 2v2`,key:`scm5qe`}],[`path`,{d:`M17.915 21a6 6 0 10-12 0`,key:`13n4mv`}],[`path`,{d:`M8 2v2`,key:`pbkmx`}],[`circle`,{cx:`12`,cy:`11`,r:`4`,key:`1gt34v`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),zt=U(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),Bt=U(`database`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]),Vt=U(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),Ht=U(`earth`,[[`path`,{d:`M21.54 15H17a2 2 0 0 0-2 2v4.54`,key:`1djwo0`}],[`path`,{d:`M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17`,key:`1tzkfa`}],[`path`,{d:`M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05`,key:`14pb5j`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),Ut=U(`ellipsis`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]]),Wt=U(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),Gt=U(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Kt=U(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),qt=U(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),Jt=U(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),Yt=U(`highlighter`,[[`path`,{d:`m9 11-6 6v3h9l3-3`,key:`1a3l36`}],[`path`,{d:`m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4`,key:`14a9rk`}]]),Xt=U(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),Zt=U(`image-plus`,[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),Qt=U(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),$t=U(`images`,[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]),en=U(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),tn=U(`italic`,[[`line`,{x1:`19`,x2:`10`,y1:`4`,y2:`4`,key:`15jd3p`}],[`line`,{x1:`14`,x2:`5`,y1:`20`,y2:`20`,key:`bu0au3`}],[`line`,{x1:`15`,x2:`9`,y1:`4`,y2:`20`,key:`uljnxc`}]]),nn=U(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]),rn=U(`languages`,[[`path`,{d:`m5 8 6 6`,key:`1wu5hv`}],[`path`,{d:`m4 14 6-6 2-3`,key:`1k1g8d`}],[`path`,{d:`M2 5h12`,key:`or177f`}],[`path`,{d:`M7 2h1`,key:`1t2jsx`}],[`path`,{d:`m22 22-5-10-5 10`,key:`don7ne`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]),an=U(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),on=U(`layout-grid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),sn=U(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),cn=U(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),ln=U(`list-checks`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]),un=U(`list-indent-increase`,[[`path`,{d:`M21 5H11`,key:`us1j55`}],[`path`,{d:`M21 12H11`,key:`wd7e0v`}],[`path`,{d:`M21 19H11`,key:`saa85w`}],[`path`,{d:`m3 8 4 4-4 4`,key:`1a3j6y`}]]),dn=U(`list-ordered`,[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]),fn=U(`list-tree`,[[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`M3 10a2 2 0 0 0 2 2h3`,key:`1npucw`}],[`path`,{d:`M3 5v12a2 2 0 0 0 2 2h3`,key:`x1gjn2`}]]),pn=U(`list`,[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]),mn=U(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),hn=U(`lock-keyhole`,[[`circle`,{cx:`12`,cy:`16`,r:`1`,key:`1au0dj`}],[`rect`,{x:`3`,y:`10`,width:`18`,height:`12`,rx:`2`,key:`6s8ecr`}],[`path`,{d:`M7 10V7a5 5 0 0 1 10 0v3`,key:`1pqi11`}]]),gn=U(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),_n=U(`mail-warning`,[[`path`,{d:`M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5`,key:`e61zoh`}],[`path`,{d:`m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7`,key:`1ocrg3`}],[`path`,{d:`M20 14v4`,key:`1hm744`}],[`path`,{d:`M20 22v.01`,key:`12bgn6`}]]),vn=U(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),yn=U(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),bn=U(`octagon-x`,[[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),xn=U(`palette`,[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]),Sn=U(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),Cn=U(`panel-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),wn=U(`pencil-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),Tn=U(`pilcrow`,[[`path`,{d:`M13 4v16`,key:`8vvj80`}],[`path`,{d:`M17 4v16`,key:`7dpous`}],[`path`,{d:`M19 4H9.5a4.5 4.5 0 0 0 0 9H13`,key:`sh4n9v`}]]),En=U(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),Dn=U(`redo-2`,[[`path`,{d:`m15 14 5-5-5-5`,key:`12vg1m`}],[`path`,{d:`M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13`,key:`6uklza`}]]),On=U(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),kn=U(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),An=U(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),jn=U(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),Mn=U(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),Nn=U(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Pn=U(`strikethrough`,[[`path`,{d:`M16 4H9a3 3 0 0 0-2.83 4`,key:`43sutm`}],[`path`,{d:`M14 12a4 4 0 0 1 0 8H6`,key:`nlfj13`}],[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}]]),Fn=U(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),In=U(`table-2`,[[`path`,{d:`M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18`,key:`gugj83`}]]),Ln=U(`text-align-center`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M17 12H7`,key:`16if0g`}],[`path`,{d:`M19 19H5`,key:`vjpgq2`}]]),Rn=U(`text-align-end`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M21 19H7`,key:`4cu937`}]]),zn=U(`text-align-start`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M17 19H3`,key:`z6ezky`}]]),Bn=U(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),Vn=U(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Hn=U(`type`,[[`path`,{d:`M12 4v16`,key:`1654pz`}],[`path`,{d:`M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2`,key:`e0r10z`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]),Un=U(`underline`,[[`path`,{d:`M6 4v6a6 6 0 0 0 12 0V4`,key:`9kb039`}],[`line`,{x1:`4`,x2:`20`,y1:`20`,y2:`20`,key:`nun2al`}]]),Wn=U(`undo-2`,[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]),Gn=U(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),Kn=U(`user-plus`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]),qn=U(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),Jn=U(`video`,[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]),Yn=U(`wand-sparkles`,[[`path`,{d:`m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72`,key:`ul74o6`}],[`path`,{d:`m14 7 3 3`,key:`1r5n42`}],[`path`,{d:`M5 6v4`,key:`ilb8ba`}],[`path`,{d:`M19 14v4`,key:`blhpug`}],[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M7 8H3`,key:`zfb6yr`}],[`path`,{d:`M21 16h-4`,key:`1cnmox`}],[`path`,{d:`M11 3H9`,key:`1obp7u`}]]),Xn=U(`workflow`,[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,key:`by2w9f`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`,key:`xkn7yn`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,key:`1cgmvn`}]]),Zn=U(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),Qn=U(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),$n=U(`zap`,[[`path`,{d:`M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z`,key:`1v7up4`}]]),er=l(_(),1);function tr(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=tr(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function nr(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=tr(e))&&(r&&(r+=` `),r+=t);return r}var rr=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,ir=nr,ar=(e,t)=>n=>{if(t?.variants==null)return ir(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=rr(t)||rr(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 ir(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)},or=Object.defineProperty,sr=(e,t)=>or(e,`name`,{value:t,configurable:!0});function cr(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}sr(cr,`setRef`);function lr(...e){return t=>{let n=!1,r=e.map(e=>{let r=cr(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():cr(e[t],null)}}}}sr(lr,`composeRefs`);function ur(...e){return V.useCallback(lr(...e),e)}sr(ur,`useComposedRefs`);var dr=Object.defineProperty,fr=(e,t)=>dr(e,`name`,{value:t,configurable:!0});function pr(e){let t=V.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Sr(r)&&typeof Er==`function`&&(r=Er(r._payload)),V.Children.forEach(r,e=>{if(br(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Sr(n)&&typeof Er==`function`&&(n=Er(n._payload)),a=_r(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=V.cloneElement(a,void 0,s):!o&&V.Children.count(r)===1&&V.isValidElement(r)&&(a=r);let c=a?yr(a):void 0,l=ur(n,c);if(!a){if(r||r===0)throw Error(o?Tr(e):wr(e));return r}let u=vr(i,a.props??{});return a.type!==V.Fragment&&(u.ref=n?l:c),V.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}fr(pr,`createSlot`);var mr=pr(`Slot`),hr=Symbol.for(`radix.slottable`);function gr(e){let t=fr(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=hr,t}fr(gr,`createSlottable`);var _r=fr((e,t)=>{if(`child`in e.props){let t=e.props.child;return V.isValidElement(t)?V.cloneElement(t,void 0,e.props.children(t.props.children)):null}return V.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function vr(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}}fr(vr,`mergeProps`);function yr(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)}fr(yr,`getElementRef`);function br(e){return V.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===hr}fr(br,`isSlottable`);var xr=Symbol.for(`react.lazy`);function Sr(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===xr&&`_payload`in e&&Cr(e._payload)}fr(Sr,`isLazyComponent`);function Cr(e){return typeof e==`object`&&!!e&&`then`in e}fr(Cr,`isPromiseLike`);var wr=fr(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Tr=fr(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),Er=V.use,Dr=l(h(),1),Or=Object.defineProperty,kr=(e,t)=>Or(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=pr(`Primitive.${t}`),r=V.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,H.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ar(e,t){e&&Dr.flushSync(()=>e.dispatchEvent(t))}kr(Ar,`dispatchDiscreteCustomEvent`);var jr=Object.defineProperty,Mr=(e,t)=>jr(e,`name`,{value:t,configurable:!0}),Nr=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`}),Pr=V.forwardRef(Mr(function(e,t){return(0,H.jsx)(W.span,{...e,ref:t,style:{...Nr,...e.style}})},`VisuallyHidden`)),Fr=Object.defineProperty,Ir=(e,t)=>Fr(e,`name`,{value:t,configurable:!0});function Lr(e,t){let n=V.createContext(t);n.displayName=e+`Context`;let r=Ir(e=>{let{children:t,...r}=e,i=V.useMemo(()=>r,Object.values(r));return(0,H.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=V.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return Ir(i,`useContext`),[r,i]}Ir(Lr,`createContext`);function Rr(e,t=[]){let n=[];function r(t,r){let i=V.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=Ir(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=V.useMemo(()=>o,Object.values(o));return(0,H.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=V.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return Ir(s,`useContext`),[o,s]}Ir(r,`createContext`);let i=Ir(()=>{let t=n.map(e=>V.createContext(e));return Ir(function(n){let r=n?.[e]||t;return V.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,zr(i,...t)]}Ir(Rr,`createContextScope`);function zr(...e){let t=e[0];if(e.length===1)return t;let n=Ir(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return Ir(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return V.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}Ir(zr,`composeContextScopes`);var Br=Object.defineProperty,Vr=(e,t)=>Br(e,`name`,{value:t,configurable:!0});function Hr(e){let t=e+`CollectionProvider`,[n,r]=Rr(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=Vr(e=>{let{scope:t,children:n}=e,r=V.useRef(null),a=V.useRef(new Map).current;return(0,H.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=pr(s),l=V.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=ur(t,a(s,n).collectionRef);return(0,H.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=pr(u),p=V.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=V.useRef(null),s=ur(t,o),c=a(u,n);return V.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,H.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return V.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 Vr(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}Vr(Hr,`createCollection`);var Ur=new WeakMap,Wr=class e extends Map{static{Vr(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],Ur.set(this,!0)}set(e,t){return Ur.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=qr(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=Gr(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=Gr(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return Gr(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 Gr(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=Kr(e,t);return n===-1?void 0:e[n]}Vr(Gr,`at`);function Kr(e,t){let n=e.length,r=qr(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}Vr(Kr,`toSafeIndex`);function qr(e){return e!==e||e===0?0:Math.trunc(e)}Vr(qr,`toSafeInteger`);function Jr(e){let t=e+`CollectionProvider`,[n,r]=Rr(t),[i,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Wr,setItemMap:Vr(()=>void 0,`setItemMap`)}),o=Vr(({state:e,...t})=>e?(0,H.jsx)(c,{...t,state:e}):(0,H.jsx)(s,{...t}),`CollectionProvider`);o.displayName=t;let s=Vr(e=>{let t=h();return(0,H.jsx)(c,{...e,state:t})},`CollectionInit`);s.displayName=t+`Init`;let c=Vr(e=>{let{scope:t,children:n,state:r}=e,a=V.useRef(null),[o,s]=V.useState(null),c=ur(a,s),[l,u]=r;return V.useEffect(()=>{if(!o)return;let e=Qr(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,H.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=pr(l),d=V.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=ur(t,a(l,n).collectionRef);return(0,H.jsx)(u,{ref:i,children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,p=pr(f),m=V.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=V.useRef(null),[s,c]=V.useState(null),l=ur(t,o,c),{setItemMap:u}=a(f,n),d=V.useRef(i);Yr(d.current,i)||(d.current=i);let m=d.current;return V.useEffect(()=>{let e=m;return u(t=>s?t.has(s)?t.set(s,{...e,element:s}).toSorted(Zr):(t.set(s,{...e,element:s}),t.toSorted(Zr)):t),()=>{u(e=>!s||!e.has(s)?e:(e.delete(s),new Wr(e)))}},[s,m,u]),(0,H.jsx)(p,{"data-radix-collection-item":``,ref:l,children:r})});m.displayName=f;function h(){return V.useState(new Wr)}Vr(h,`useInitCollection`);function g(t){let{itemMap:n}=a(e+`CollectionConsumer`,t);return n}return Vr(g,`useCollection`),[{Provider:o,Slot:d,ItemSlot:m},{createCollectionScope:r,useCollection:g,useInitCollection:h}]}Vr(Jr,`createCollection`);function Yr(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}Vr(Yr,`shallowEqual`);function Xr(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Vr(Xr,`isElementPreceding`);function Zr(e,t){return!e[1].element||!t[1].element?0:Xr(e[1].element,t[1].element)?-1:1}Vr(Zr,`sortByDocumentPosition`);function Qr(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}Vr(Qr,`getChildListObserver`);var $r=Object.defineProperty,ei=(e,t)=>$r(e,`name`,{value:t,configurable:!0}),ti=!!(typeof window<`u`&&window.document&&window.document.createElement);function G(e,t,{checkForDefaultPrevented:n=!0}={}){return ei(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}ei(G,`composeEventHandlers`);function ni(e){if(!ti)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}ei(ni,`getOwnerWindow`);function ri(e){if(!ti)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}ei(ri,`getOwnerDocument`);function ii(e,t=!1){let{activeElement:n}=ri(e);if(!n?.nodeName)return null;if(ai(n)&&n.contentDocument)return ii(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=ri(n).getElementById(e);if(t)return t}}return n}ei(ii,`getActiveElement`);function ai(e){return e.tagName===`IFRAME`}ei(ai,`isFrame`);var oi=globalThis?.document?V.useLayoutEffect:()=>{},si=Object.defineProperty,ci=(e,t)=>si(e,`name`,{value:t,configurable:!0}),li=V.useEffectEvent,ui=V.useInsertionEffect;function di(e){if(typeof li==`function`)return li(e);let t=V.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof ui==`function`?ui(()=>{t.current=e}):oi(()=>{t.current=e}),V.useMemo(()=>((...e)=>t.current?.(...e)),[])}ci(di,`useEffectEvent`);var fi=Object.defineProperty,pi=(e,t)=>fi(e,`name`,{value:t,configurable:!0}),mi=V.useInsertionEffect||oi;function hi({prop:e,defaultProp:t,onChange:n=pi(()=>{},`onChange`),caller:r}){let[i,a,o]=gi({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,V.useCallback(t=>{if(s){let n=_i(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}pi(hi,`useControllableState`);function gi({defaultProp:e,onChange:t}){let[n,r]=V.useState(e),i=V.useRef(n),a=V.useRef(t);return mi(()=>{a.current=t},[t]),V.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}pi(gi,`useUncontrolledState`);function _i(e){return typeof e==`function`}pi(_i,`isFunction`);var vi=Symbol(`RADIX:SYNC_STATE`);function yi(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=di(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=V.useReducer((t,n)=>{if(n.type===vi)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=V.useRef(p);V.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=V.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return V.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:vi,state:i})},[i,d.state,c]),[h,f]}pi(yi,`useControllableStateReducer`);var bi=Object.defineProperty,xi=(e,t)=>bi(e,`name`,{value:t,configurable:!0});function Si(e,t){return V.useReducer((e,n)=>t[e][n]??e,e)}xi(Si,`useStateMachine`);var Ci=xi(e=>{let{present:t,children:n}=e,r=wi(t),i=typeof n==`function`?n({present:r.isPresent}):V.Children.only(n),a=Ei(r.ref,Oi(i));return typeof n==`function`||r.isPresent?V.cloneElement(i,{ref:a}):null},`Presence`);function wi(e){let[t,n]=V.useState(),r=V.useRef(null),i=V.useRef(e),a=V.useRef(`none`),o=V.useRef(void 0),[s,c]=Si(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return V.useEffect(()=>{s===`mounted`?(a.current=o.current??Di(r.current),o.current=void 0):a.current=`none`},[s]),oi(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=Di(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]),oi(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=xi(a=>{let o=Di(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=xi(e=>{e.target===t&&(a.current=Di(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:V.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=Di(t)}else r.current=null;n(e)},[])}}xi(wi,`usePresence`);function Ti(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}xi(Ti,`setRef`);function Ei(...e){let t=V.useRef(e);return t.current=e,V.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Ti(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():Ti(n[e],null)}}},[])}xi(Ei,`useStableComposedRefs`);function Di(e){return e?.animationName||`none`}xi(Di,`getAnimationName`);function Oi(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)}xi(Oi,`getElementRef`);var ki=Object.defineProperty,Ai=(e,t)=>ki(e,`name`,{value:t,configurable:!0}),ji=V.useId||(()=>void 0),Mi=0;function Ni(e){let[t,n]=V.useState(ji());return oi(()=>{e||n(e=>e??String(Mi++))},[e]),e||(t?`radix-${t}`:``)}Ai(Ni,`useId`);var Pi=Object.defineProperty,Fi=(e,t)=>Pi(e,`name`,{value:t,configurable:!0}),Ii=`Collapsible`,[Li,Ri]=Rr(Ii),[zi,Bi]=Li(Ii),Vi=V.forwardRef(Fi(function(e,t){let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,l]=hi({prop:r,defaultProp:i??!1,onChange:o,caller:Ii});return(0,H.jsx)(zi,{scope:n,disabled:a,contentId:Ni(),open:c,onOpenToggle:V.useCallback(()=>l(e=>!e),[l]),children:(0,H.jsx)(W.div,{"data-state":qi(c),"data-disabled":a?``:void 0,...s,ref:t})})},`Collapsible`)),Hi=`CollapsibleTrigger`,Ui=V.forwardRef(Fi(function(e,t){let{__scopeCollapsible:n,...r}=e,i=Bi(Hi,n);return(0,H.jsx)(W.button,{type:`button`,"aria-controls":i.open?i.contentId:void 0,"aria-expanded":i.open||!1,"data-state":qi(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:G(e.onClick,i.onOpenToggle)})},`CollapsibleTrigger`)),Wi=`CollapsibleContent`,Gi=V.forwardRef(Fi(function(e,t){let{forceMount:n,...r}=e,i=Bi(Wi,e.__scopeCollapsible);return(0,H.jsx)(Ci,{present:n||i.open,children:({present:e})=>(0,H.jsx)(Ki,{...r,ref:t,present:e})})},`CollapsibleContent`)),Ki=V.forwardRef(Fi(function(e,t){let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=Bi(Wi,n),[s,c]=V.useState(r),l=V.useRef(null),u=ur(t,l),d=V.useRef(0),f=d.current,p=V.useRef(0),m=p.current,h=o.open||s,g=V.useRef(h),_=V.useRef(void 0);return V.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),oi(()=>{let e=l.current;if(e){_.current=_.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();d.current=t.height,p.current=t.width,g.current||(e.style.transitionDuration=_.current.transitionDuration,e.style.animationName=_.current.animationName),c(r)}},[o.open,r]),(0,H.jsx)(W.div,{"data-state":qi(o.open),"data-disabled":o.disabled?``:void 0,id:o.contentId,hidden:!h,...a,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:h&&i})},`CollapsibleContentImpl`));function qi(e){return e?`open`:`closed`}Fi(qi,`getState`);var Ji=Vi,Yi=Object.defineProperty,Xi=(e,t)=>Yi(e,`name`,{value:t,configurable:!0}),Zi=V.createContext(void 0);function Qi(e){let t=V.useContext(Zi);return e||t||`ltr`}Xi(Qi,`useDirection`);var $i=Object.defineProperty,ea=(e,t)=>$i(e,`name`,{value:t,configurable:!0});function ta(e){let t=V.useRef(e);return V.useEffect(()=>{t.current=e}),V.useMemo(()=>((...e)=>t.current?.(...e)),[])}ea(ta,`useCallbackRef`);var na=Object.defineProperty,ra=(e,t)=>na(e,`name`,{value:t,configurable:!0}),ia=`dismissableLayer.update`,aa=`dismissableLayer.pointerDownOutside`,oa=`dismissableLayer.focusOutside`,sa,ca=V.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),la=V.forwardRef(ra(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=V.useContext(ca),[d,f]=V.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=V.useState({}),h=ur(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=V.useRef(!1),C=fa(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:V.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return x&&!t},[u.branches,x])}),w=pa(e=>{if(r&&S.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),T=d?y===g.length-1:!1,E=ta(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return V.useEffect(()=>{if(T)return p.addEventListener(`keydown`,E,{capture:!0}),()=>p.removeEventListener(`keydown`,E,{capture:!0})},[p,T,E]),V.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(sa=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),ma(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=sa))}},[d,p,n,u]),V.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),ma())},[d,u]),V.useEffect(()=>{let e=ra(()=>m({}),`handleUpdate`);return document.addEventListener(ia,e),()=>document.removeEventListener(ia,e)},[]),(0,H.jsx)(W.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:G(e.onFocusCapture,w.onFocusCapture),onBlurCapture:G(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:G(e.onPointerDownCapture,C.onPointerDownCapture)})},`DismissableLayer`));function ua(){let e=V.useContext(ca),[t,n]=V.useState(null);return V.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}ra(ua,`useDismissableLayerSurface`);var da=ra(()=>!0,`IS_TRUE`);function fa(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=da}=t,s=ta(e),c=V.useRef(!1),l=V.useRef(!1),u=V.useRef(new Map),d=V.useRef(()=>{});return V.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}ra(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}ra(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)}ra(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}ra(p,`handleInteractionBubble`);let m=ra(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||ha(aa,s,p,{discrete:!0})};if(ra(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:ra(()=>c.current=!0,`onPointerDownCapture`)}}ra(fa,`usePointerDownOutside`);function pa(e,t=globalThis?.document){let n=ta(e),r=V.useRef(!1);return V.useEffect(()=>{let e=ra(e=>{e.target&&!r.current&&ha(oa,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:ra(()=>r.current=!0,`onFocusCapture`),onBlurCapture:ra(()=>r.current=!1,`onBlurCapture`)}}ra(pa,`useFocusOutside`);function ma(){let e=new CustomEvent(ia);document.dispatchEvent(e)}ra(ma,`dispatchUpdate`);function ha(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?Ar(i,a):i.dispatchEvent(a)}ra(ha,`handleAndDispatchCustomEvent`);var ga=Object.defineProperty,_a=(e,t)=>ga(e,`name`,{value:t,configurable:!0}),va=`focusScope.autoFocusOnMount`,ya=`focusScope.autoFocusOnUnmount`,ba={bubbles:!1,cancelable:!0},xa=V.forwardRef(_a(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=V.useState(null),l=ta(i),u=ta(a),d=V.useRef(null),f=ur(t,c),p=V.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;V.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:Oa(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||Oa(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Oa(s)};_a(e,`handleFocusIn`),_a(t,`handleFocusOut`),_a(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]),V.useEffect(()=>{if(s){ka.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(va,ba);s.addEventListener(va,l),s.dispatchEvent(t),t.defaultPrevented||(Sa(Ma(wa(s)),{select:!0}),document.activeElement===e&&Oa(s))}return()=>{s.removeEventListener(va,l),setTimeout(()=>{let t=new CustomEvent(ya,ba);s.addEventListener(ya,u),s.dispatchEvent(t),t.defaultPrevented||Oa(e??document.body,{select:!0}),s.removeEventListener(ya,u),ka.remove(p)},0)}}},[s,l,u,p]);let m=V.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]=Ca(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Oa(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Oa(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,H.jsx)(W.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})},`FocusScope`));function Sa(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Oa(r,{select:t}),document.activeElement!==n)return}_a(Sa,`focusFirst`);function Ca(e){let t=wa(e);return[Ta(t,e),Ta(t.reverse(),e)]}_a(Ca,`getTabbableEdges`);function wa(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:_a(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}_a(wa,`getTabbableCandidates`);function Ta(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Ea(r,{upTo:t})))return r}_a(Ta,`findVisible`);function Ea(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}_a(Ea,`isHidden`);function Da(e){return e instanceof HTMLInputElement&&`select`in e}_a(Da,`isSelectableInput`);function Oa(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Da(e)&&t&&e.select()}}_a(Oa,`focus`);var ka=Aa();function Aa(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=ja(e,t),e.unshift(t)},remove(t){e=ja(e,t),e[0]?.resume()}}}_a(Aa,`createFocusScopesStack`);function ja(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}_a(ja,`arrayRemove`);function Ma(e){return e.filter(e=>e.tagName!==`A`)}_a(Ma,`removeLinks`);var Na=Object.defineProperty,Pa=V.forwardRef(((e,t)=>Na(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=V.useState(!1);oi(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Dr.createPortal((0,H.jsx)(W.div,{...r,ref:t}),o):null},`Portal`)),Fa=Object.defineProperty,Ia=(e,t)=>Fa(e,`name`,{value:t,configurable:!0}),La=0,Ra=null;function za(e){return Ba(),e.children}Ia(za,`FocusGuards`);function Ba(){V.useEffect(()=>{Ra||={start:Va(),end:Va()};let{start:e,end:t}=Ra;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),La++,()=>{La===1&&(Ra?.start.remove(),Ra?.end.remove(),Ra=null),La=Math.max(0,La-1)}},[])}Ia(Ba,`useFocusGuards`);function Va(){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}Ia(Va,`createFocusGuard`);var Ha=function(){return Ha=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},Ha.apply(this,arguments)};function Ua(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 Wa(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 Ga=`right-scroll-bar-position`,Ka=`width-before-scroll-bar`,qa=`with-scroll-bars-hidden`,Ja=`--removed-body-scroll-bar-size`;function Ya(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Xa(e,t){var n=(0,V.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 Za=typeof window<`u`?V.useLayoutEffect:V.useEffect,Qa=new WeakMap;function $a(e,t){var n=Xa(t||null,function(t){return e.forEach(function(e){return Ya(e,t)})});return Za(function(){var t=Qa.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Ya(e,null)}),i.forEach(function(e){r.has(e)||Ya(e,a)})}Qa.set(n,e)},[e]),n}function eo(e){return e}function to(e,t){t===void 0&&(t=eo);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 no(e){e===void 0&&(e={});var t=to(null);return t.options=Ha({async:!0,ssr:!1},e),t}var ro=function(e){var t=e.sideCar,n=Ua(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 V.createElement(r,Ha({},n))};ro.isSideCarExport=!0;function io(e,t){return e.useMedium(t),ro}var ao=no(),oo=function(){},so=V.forwardRef(function(e,t){var n=V.useRef(null),r=V.useState({onScrollCapture:oo,onWheelCapture:oo,onTouchMoveCapture:oo}),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,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=Ua(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=$a([n,t]),C=Ha(Ha({},b),i);return V.createElement(V.Fragment,null,u&&V.createElement(x,{sideCar:ao,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?V.cloneElement(V.Children.only(s),Ha(Ha({},C),{ref:S})):V.createElement(v,Ha({},C,{className:c,ref:S}),s))});so.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},so.classNames={fullWidth:Ka,zeroRight:Ga};var co=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function lo(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=co();return t&&e.setAttribute(`nonce`,t),e}function uo(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function fo(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var po=function(){var e=0,t=null;return{add:function(n){e==0&&(t=lo())&&(uo(t,n),fo(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},mo=function(){var e=po();return function(t,n){V.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ho=function(){var e=mo();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},go={left:0,top:0,right:0,gap:0},_o=function(e){return parseInt(e||``,10)||0},vo=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[_o(n),_o(r),_o(i)]},yo=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return go;var t=vo(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])}},bo=ho(),xo=`data-scroll-locked`,So=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
10
+ .${qa} {
11
+ overflow: hidden ${r};
12
+ padding-right: ${s}px ${r};
13
+ }
14
+ body[${xo}] {
15
+ overflow: hidden ${r};
16
+ overscroll-behavior: contain;
17
+ ${[t&&`position: relative ${r};`,n===`margin`&&`
18
+ padding-left: ${i}px;
19
+ padding-top: ${a}px;
20
+ padding-right: ${o}px;
21
+ margin-left:0;
22
+ margin-top:0;
23
+ margin-right: ${s}px ${r};
24
+ `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
25
+ }
26
+
27
+ .${Ga} {
28
+ right: ${s}px ${r};
29
+ }
30
+
31
+ .${Ka} {
32
+ margin-right: ${s}px ${r};
33
+ }
34
+
35
+ .${Ga} .${Ga} {
36
+ right: 0 ${r};
37
+ }
38
+
39
+ .${Ka} .${Ka} {
40
+ margin-right: 0 ${r};
41
+ }
42
+
43
+ body[${xo}] {
44
+ ${Ja}: ${s}px;
45
+ }
46
+ `},Co=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},wo=function(){V.useEffect(function(){return document.body.setAttribute(xo,(Co()+1).toString()),function(){var e=Co()-1;e<=0?document.body.removeAttribute(xo):document.body.setAttribute(xo,e.toString())}},[])},To=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;wo();var a=V.useMemo(function(){return yo(i)},[i]);return V.createElement(bo,{styles:So(a,!t,i,n?``:`!important`)})},Eo=!1;if(typeof window<`u`)try{var Do=Object.defineProperty({},"passive",{get:function(){return Eo=!0,!0}});window.addEventListener(`test`,Do,Do),window.removeEventListener(`test`,Do,Do)}catch{Eo=!1}var Oo=Eo?{passive:!1}:!1,ko=function(e){return e.tagName===`TEXTAREA`},Ao=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!ko(e)&&n[t]===`visible`)},jo=function(e){return Ao(e,`overflowY`)},Mo=function(e){return Ao(e,`overflowX`)},No=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Io(e,r)){var i=Lo(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Po=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Fo=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Io=function(e,t){return e===`v`?jo(t):Mo(t)},Lo=function(e,t){return e===`v`?Po(t):Fo(t)},Ro=function(e,t){return e===`h`&&t===`rtl`?-1:1},zo=function(e,t,n,r,i){var a=Ro(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=Lo(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Io(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},Bo=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Vo=function(e){return[e.deltaX,e.deltaY]},Ho=function(e){return e&&`current`in e?e.current:e},Uo=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Wo=function(e){return`
47
+ .block-interactivity-${e} {pointer-events: none;}
48
+ .allow-interactivity-${e} {pointer-events: all;}
49
+ `},Go=0,Ko=[];function qo(e){var t=V.useRef([]),n=V.useRef([0,0]),r=V.useRef(),i=V.useState(Go++)[0],a=V.useState(ho)[0],o=V.useRef(e);V.useEffect(function(){o.current=e},[e]),V.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Wa([e.lockRef.current],(e.shards||[]).map(Ho),!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=V.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Bo(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=No(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=No(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 zo(h,t,e,h===`h`?s:c,!0)},[]),c=V.useCallback(function(e){var n=e;if(!(!Ko.length||Ko[Ko.length-1]!==a)){var r=`deltaY`in n?Vo(n):Bo(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Uo(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Ho).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=V.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Jo(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=V.useCallback(function(e){n.current=Bo(e),r.current=void 0},[]),d=V.useCallback(function(t){l(t.type,Vo(t),t.target,s(t,e.lockRef.current))},[]),f=V.useCallback(function(t){l(t.type,Bo(t),t.target,s(t,e.lockRef.current))},[]);V.useEffect(function(){return Ko.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Oo),document.addEventListener(`touchmove`,c,Oo),document.addEventListener(`touchstart`,u,Oo),function(){Ko=Ko.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Oo),document.removeEventListener(`touchmove`,c,Oo),document.removeEventListener(`touchstart`,u,Oo)}},[]);var p=e.removeScrollBar,m=e.inert;return V.createElement(V.Fragment,null,m?V.createElement(a,{styles:Wo(i)}):null,p?V.createElement(To,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Jo(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Yo=io(ao,qo),Xo=V.forwardRef(function(e,t){return V.createElement(so,Ha({},e,{ref:t,sideCar:Yo}))});Xo.classNames=so.classNames;var Zo=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Qo=new WeakMap,$o=new WeakMap,es={},ts=0,ns=function(e){return e&&(e.host||ns(e.parentNode))},rs=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=ns(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})},is=function(e,t,n,r){var i=rs(t,Array.isArray(e)?e:[e]);es[n]||(es[n]=new WeakMap);var a=es[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=(Qo.get(e)||0)+1,l=(a.get(e)||0)+1;Qo.set(e,c),a.set(e,l),o.push(e),c===1&&i&&$o.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(),ts++,function(){o.forEach(function(e){var t=Qo.get(e)-1,i=a.get(e)-1;Qo.set(e,t),a.set(e,i),t||($o.has(e)||e.removeAttribute(r),$o.delete(e)),i||e.removeAttribute(n)}),ts--,ts||(Qo=new WeakMap,Qo=new WeakMap,$o=new WeakMap,es={})}},as=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Zo(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),is(r,i,n,`aria-hidden`)):function(){return null}},os=Object.defineProperty,ss=(e,t)=>os(e,`name`,{value:t,configurable:!0}),cs=`Dialog`,[ls,us]=Rr(cs),[ds,fs]=ls(cs),ps=ss(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=V.useRef(null),c=V.useRef(null),[l,u]=hi({prop:r,defaultProp:i??!1,onChange:a,caller:cs}),[d,f]=V.useState(0),[p,m]=V.useState(0);return(0,H.jsx)(ds,{scope:t,triggerRef:s,contentRef:c,contentId:Ni(),titleId:Ni(),descriptionId:Ni(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:m,open:l,onOpenChange:u,onOpenToggle:V.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})},`Dialog`),ms=`DialogTrigger`,hs=V.forwardRef(ss(function(e,t){let{__scopeDialog:n,...r}=e,i=fs(ms,n),a=ur(t,i.triggerRef);return(0,H.jsx)(W.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":Fs(i.open),...r,ref:a,onClick:G(e.onClick,i.onOpenToggle)})},`DialogTrigger`)),gs=`DialogPortal`,[_s,vs]=ls(gs,{forceMount:void 0}),ys=ss(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=fs(gs,t);return(0,H.jsx)(_s,{scope:t,forceMount:n,children:V.Children.map(r,e=>(0,H.jsx)(Ci,{present:n||a.open,children:(0,H.jsx)(Pa,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),bs=`DialogOverlay`,xs=V.forwardRef(ss(function(e,t){let n=vs(bs,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=fs(bs,e.__scopeDialog);return a.modal?(0,H.jsx)(Ci,{present:r||a.open,children:(0,H.jsx)(Cs,{...i,ref:t})}):null},`DialogOverlay`)),Ss=pr(`DialogOverlay.RemoveScroll`),Cs=V.forwardRef(ss(function(e,t){let{__scopeDialog:n,...r}=e,i=fs(bs,n),a=ur(t,ua());return(0,H.jsx)(Xo,{as:Ss,allowPinchZoom:!0,shards:[i.contentRef],children:(0,H.jsx)(W.div,{"data-state":Fs(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),ws=`DialogContent`,Ts=V.forwardRef(ss(function(e,t){let n=vs(ws,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=fs(ws,e.__scopeDialog);return(0,H.jsx)(Ci,{present:r||a.open,children:a.modal?(0,H.jsx)(Es,{...i,ref:t}):(0,H.jsx)(Ds,{...i,ref:t})})},`DialogContent`)),Es=V.forwardRef(ss(function(e,t){let n=fs(ws,e.__scopeDialog),r=V.useRef(null),i=ur(t,n.contentRef,r);return V.useEffect(()=>{let e=r.current;if(e)return as(e)},[]),(0,H.jsx)(Os,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:G(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:G(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:G(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),Ds=V.forwardRef(ss(function(e,t){let n=fs(ws,e.__scopeDialog),r=V.useRef(!1),i=V.useRef(!1);return(0,H.jsx)(Os,{...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`)),Os=V.forwardRef(ss(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=fs(ws,n);return Ba(),(0,H.jsx)(H.Fragment,{children:(0,H.jsx)(xa,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,H.jsx)(la,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":Fs(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},`DialogContentImpl`)),ks=`DialogTitle`,As=V.forwardRef(ss(function(e,t){let{__scopeDialog:n,...r}=e,i=fs(ks,n),{setTitleCount:a}=i;return oi(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,H.jsx)(W.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),js=`DialogDescription`,Ms=V.forwardRef(ss(function(e,t){let{__scopeDialog:n,...r}=e,i=fs(js,n),{setDescriptionCount:a}=i;return oi(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,H.jsx)(W.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),Ns=`DialogClose`,Ps=V.forwardRef(ss(function(e,t){let{__scopeDialog:n,...r}=e,i=fs(Ns,n);return(0,H.jsx)(W.button,{type:`button`,...r,ref:t,onClick:G(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function Fs(e){return e?`open`:`closed`}ss(Fs,`getState`);var Is=Object.defineProperty,Ls=(e,t)=>Is(e,`name`,{value:t,configurable:!0}),[Rs,zs]=Rr(`AlertDialog`,[us]),Bs=us(),Vs=Ls(e=>{let{__scopeAlertDialog:t,...n}=e,r=Bs(t);return(0,H.jsx)(ps,{...r,...n,modal:!0})},`AlertDialog`);V.forwardRef(Ls(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=Bs(n);return(0,H.jsx)(hs,{...i,...r,ref:t})},`AlertDialogTrigger`));var Hs=Ls(e=>{let{__scopeAlertDialog:t,...n}=e,r=Bs(t);return(0,H.jsx)(ys,{...r,...n})},`AlertDialogPortal`),Us=V.forwardRef(Ls(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=Bs(n);return(0,H.jsx)(xs,{...i,...r,ref:t})},`AlertDialogOverlay`)),[Ws,Gs]=Rs(`AlertDialogContent`),Ks=V.forwardRef(Ls(function(e,t){let{__scopeAlertDialog:n,children:r,...i}=e,a=Bs(n),o=ur(t,V.useRef(null)),s=V.useRef(null);return(0,H.jsx)(Ws,{scope:n,cancelRef:s,children:(0,H.jsx)(Ts,{role:`alertdialog`,...a,...i,ref:o,onOpenAutoFocus:G(i.onOpenAutoFocus,e=>{e.preventDefault(),s.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:r})})},`AlertDialogContent`)),qs=V.forwardRef(Ls(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=Bs(n);return(0,H.jsx)(As,{...i,...r,ref:t})},`AlertDialogTitle`)),Js=V.forwardRef(Ls(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=Bs(n);return(0,H.jsx)(Ms,{...i,...r,ref:t})},`AlertDialogDescription`)),Ys=V.forwardRef(Ls(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=Bs(n);return(0,H.jsx)(Ps,{...i,...r,ref:t})},`AlertDialogAction`)),Xs=`AlertDialogCancel`,Zs=V.forwardRef(Ls(function(e,t){let{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=Gs(Xs,n),a=Bs(n),o=ur(t,i);return(0,H.jsx)(Ps,{...a,...r,ref:o})},`AlertDialogCancel`)),Qs=Vs,$s=Hs,ec=Us,tc=Ks,nc=Ys,rc=Zs,ic=qs,ac=Js,oc=Object.defineProperty,sc=(e,t)=>oc(e,`name`,{value:t,configurable:!0}),cc=`Avatar`,[lc,uc]=Rr(cc),dc=[0,()=>void 0],[fc,pc]=lc(cc),mc=V.forwardRef(sc(function(e,t){let{__scopeAvatar:n,...r}=e,[i,a]=V.useState(`idle`),[o,s]=xc();return(0,H.jsx)(fc,{scope:n,imageLoadingStatus:i,setImageLoadingStatus:a,imageCount:o,setImageCount:s,children:(0,H.jsx)(W.span,{...r,ref:t})})},`Avatar`)),hc=`AvatarImage`,gc=V.forwardRef(sc(function(e,t){let{__scopeAvatar:n,src:r,onLoadingStatusChange:i,...a}=e,o=pc(hc,n);o.setImageCount;let s=yc(r,{referrerPolicy:a.referrerPolicy,crossOrigin:a.crossOrigin,loadingStatus:o.imageLoadingStatus,setLoadingStatus:o.setImageLoadingStatus}),c=ta(e=>{i?.(e)}),l=V.useRef(s);return oi(()=>{let e=l.current;l.current=s,s!==e&&c(s)},[s,c]),s===`loaded`?(0,H.jsx)(W.img,{...a,ref:t,src:r}):null},`AvatarImage`)),_c=`AvatarFallback`,vc=V.forwardRef(sc(function(e,t){let{__scopeAvatar:n,delayMs:r,...i}=e,a=pc(_c,n),[o,s]=V.useState(r===void 0);return V.useEffect(()=>{if(r!==void 0){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),o&&a.imageLoadingStatus!==`loaded`?(0,H.jsx)(W.span,{...i,ref:t}):null},`AvatarFallback`));function yc(e,{loadingStatus:t,setLoadingStatus:n,referrerPolicy:r,crossOrigin:i}){return oi(()=>{if(!e){n(`error`);return}let t=new window.Image,a=sc(e=>{let t=e.currentTarget;n(bc(t))},`handleLoad`),o=sc(()=>n(`error`),`handleError`);return t.addEventListener(`load`,a),t.addEventListener(`error`,o),r&&(t.referrerPolicy=r),t.crossOrigin=i??null,t.src=e,n(bc(t)),()=>{t.removeEventListener(`load`,a),t.removeEventListener(`error`,o),n(`idle`)}},[e,i,r,n]),t}sc(yc,`useImageLoadingStatus`);function bc(e){return e.complete?e.naturalWidth>0?`loaded`:`error`:`loading`}sc(bc,`getImageLoadingStatus`);function xc(){return dc}sc(xc,`useImageCount`);function Sc(e){}sc(Sc,`useUpdateImageCount`);var Cc=Object.defineProperty,wc=(e,t)=>Cc(e,`name`,{value:t,configurable:!0});function Tc(e){let[t,n]=V.useState(void 0);return oi(()=>{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}wc(Tc,`useSize`);var Ec=Object.defineProperty,Dc=(e,t)=>Ec(e,`name`,{value:t,configurable:!0}),Oc=`Checkbox`,[kc,Ac]=Rr(Oc),[jc,Mc]=kc(Oc);function Nc(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:l,value:u=`on`,internal_do_not_use_render:d}=e,[f,p]=hi({prop:n,defaultProp:i??!1,onChange:c,caller:Oc}),[m,h]=V.useState(null),[g,_]=V.useState(null),v=V.useRef(!1),[y,b]=V.useReducer(e=>e+1,0),x=!m||!!o||!!m.closest(`form`),S={checked:f,disabled:a,setChecked:p,control:m,setControl:h,name:s,form:o,value:u,hasConsumerStoppedPropagationRef:v,userInteractionCount:y,onUserInteraction:b,required:l,defaultChecked:!Hc(i)&&i,isFormControl:x,bubbleInput:g,setBubbleInput:_};return(0,H.jsx)(jc,{scope:t,...S,children:Vc(d)?d(S):r})}Dc(Nc,`CheckboxProvider`);var Pc=`CheckboxTrigger`,Fc=V.forwardRef(Dc(function({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i){let{control:a,value:o,disabled:s,checked:c,required:l,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:f,onUserInteraction:p,isFormControl:m,bubbleInput:h}=Mc(Pc,e),g=ur(i,u),_=V.useRef(c);return V.useEffect(()=>{let e=a?.form;if(e){let t=Dc(()=>d(_.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,d]),(0,H.jsx)(W.button,{type:`button`,role:`checkbox`,"aria-checked":Hc(c)?`mixed`:c,"aria-required":l,"data-state":Uc(c),"data-disabled":s?``:void 0,disabled:s,value:o,...r,ref:g,onKeyDown:G(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:G(n,e=>{p(),d(e=>Hc(e)?!0:!e),h&&m&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})})},`CheckboxTrigger`)),Ic=V.forwardRef(Dc(function(e,t){let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,H.jsx)(Nc,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Fc,{...d,ref:t,__scopeCheckbox:n}),e&&(0,H.jsx)(Bc,{__scopeCheckbox:n})]})})},`Checkbox`)),Lc=`CheckboxIndicator`,Rc=V.forwardRef(Dc(function(e,t){let{__scopeCheckbox:n,forceMount:r,...i}=e,a=Mc(Lc,n);return(0,H.jsx)(Ci,{present:r||Hc(a.checked)||a.checked===!0,children:(0,H.jsx)(W.span,{"data-state":Uc(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})},`CheckboxIndicator`)),zc=`CheckboxBubbleInput`,Bc=V.forwardRef(Dc(function({__scopeCheckbox:e,onClick:t,...n},r){let{control:i,hasConsumerStoppedPropagationRef:a,userInteractionCount:o,checked:s,defaultChecked:c,required:l,disabled:u,name:d,value:f,form:p,bubbleInput:m,setBubbleInput:h}=Mc(zc,e),g=ur(r,h),_=Tc(i),v=V.useRef(!1),y=V.useRef(s),b=V.useRef(o);V.useEffect(()=>{let e=m;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=o!==b.current;b.current=o;let i=y.current!==s;y.current=s;let c=!(r&&a.current);if(i&&n){v.current=!r;let t=new Event(`click`,{bubbles:c});e.indeterminate=Hc(s),n.call(e,!Hc(s)&&s),e.dispatchEvent(t),v.current=!1}},[m,s,a,o]);let x=V.useRef(!Hc(s)&&s);return(0,H.jsx)(W.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:c??x.current,required:l,disabled:u,name:d,value:f,form:p,...n,tabIndex:-1,ref:g,onClick:G(t,e=>{v.current&&e.stopPropagation()}),style:{...n.style,..._,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})},`CheckboxBubbleInput`));function Vc(e){return typeof e==`function`}Dc(Vc,`isFunction`);function Hc(e){return e===`indeterminate`}Dc(Hc,`isIndeterminate`);function Uc(e){return Hc(e)?`indeterminate`:e?`checked`:`unchecked`}Dc(Uc,`getState`);var Wc=[`top`,`right`,`bottom`,`left`],Gc=Math.min,Kc=Math.max,qc=Math.round,Jc=Math.floor,Yc=e=>({x:e,y:e}),Xc={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Zc(e,t,n){return Kc(e,Gc(t,n))}function Qc(e,t){return typeof e==`function`?e(t):e}function $c(e){return e.split(`-`)[0]}function el(e){return e.split(`-`)[1]}function tl(e){return e===`x`?`y`:`x`}function nl(e){return e===`y`?`height`:`width`}function rl(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function il(e){return tl(rl(e))}function al(e,t,n){n===void 0&&(n=!1);let r=el(e),i=il(e),a=nl(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=ml(o)),[o,ml(o)]}function ol(e){let t=ml(e);return[sl(e),t,sl(t)]}function sl(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var cl=[`left`,`right`],ll=[`right`,`left`],ul=[`top`,`bottom`],dl=[`bottom`,`top`];function fl(e,t,n){switch(e){case`top`:case`bottom`:return n?t?ll:cl:t?cl:ll;case`left`:case`right`:return t?ul:dl;default:return[]}}function pl(e,t,n,r){let i=el(e),a=fl($c(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(sl)))),a}function ml(e){let t=$c(e);return Xc[t]+e.slice(t.length)}function hl(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function gl(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:hl(e)}function _l(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 vl(e,t,n){let{reference:r,floating:i}=e,a=rl(t),o=il(t),s=nl(o),c=$c(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=el(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function yl(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}=Qc(t,e),p=gl(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=_l(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=_l(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 bl=50,xl=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:yl},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=vl(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<bl&&(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}=vl(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Sl=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}=Qc(e,t)||{};if(l==null)return{};let d=gl(u),f={x:n,y:r},p=il(i),m=nl(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=Gc(d[_],T),D=Gc(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=Zc(E,k,O),j=!c.arrow&&el(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}}}),Cl=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}=Qc(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=$c(r),_=rl(o),v=$c(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[ml(o)]:ol(o)),x=p!==`none`;!d&&x&&b.push(...pl(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=al(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`||_===rl(t)||T.every(e=>rl(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=rl(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 wl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Tl(e){return Wc.some(t=>e[t]>=0)}var El=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Qc(e,t);switch(i){case`referenceHidden`:{let e=wl(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Tl(e)}}}case`escaped`:{let e=wl(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Tl(e)}}}default:return{}}}}},Dl=new Set([`left`,`top`]);async function Ol(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=$c(n),s=el(n),c=rl(n)===`y`,l=Dl.has(o)?-1:1,u=a&&c?-1:1,d=Qc(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 kl=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 Ol(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}}}}},Al=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}=Qc(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=rl(i),p=tl(f),m=u[p],h=u[f],g=(e,t)=>Zc(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}}}}}},jl=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}=Qc(e,t),u={x:n,y:r},d=rl(i),f=tl(d),p=u[f],m=u[d],h=Qc(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=Dl.has($c(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}}}},Ml=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}=Qc(e,t),c=await i.detectOverflow(t,s),l=$c(n),u=el(n),d=rl(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=Gc(p-c[m],g),y=Gc(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*Kc(c.left,c.right):S=p-2*Kc(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 Nl(){return typeof window<`u`}function Pl(e){return Ll(e)?(e.nodeName||``).toLowerCase():`#document`}function Fl(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Il(e){return((Ll(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Ll(e){return Nl()?e instanceof Node||e instanceof Fl(e).Node:!1}function Rl(e){return Nl()?e instanceof Element||e instanceof Fl(e).Element:!1}function zl(e){return Nl()?e instanceof HTMLElement||e instanceof Fl(e).HTMLElement:!1}function Bl(e){return!Nl()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Fl(e).ShadowRoot}function Vl(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Ql(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Hl(e){return/^(table|td|th)$/.test(Pl(e))}function Ul(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Wl=/transform|translate|scale|rotate|perspective|filter/,Gl=/paint|layout|strict|content/,Kl=e=>!!e&&e!==`none`,ql;function Jl(e){let t=Rl(e)?Ql(e):e;return Kl(t.transform)||Kl(t.translate)||Kl(t.scale)||Kl(t.rotate)||Kl(t.perspective)||!Xl()&&(Kl(t.backdropFilter)||Kl(t.filter))||Wl.test(t.willChange||``)||Gl.test(t.contain||``)}function Yl(e){let t=eu(e);for(;zl(t)&&!Zl(t);){if(Jl(t))return t;if(Ul(t))return null;t=eu(t)}return null}function Xl(){return ql??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ql}function Zl(e){return/^(html|body|#document)$/.test(Pl(e))}function Ql(e){return Fl(e).getComputedStyle(e)}function $l(e){return Rl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eu(e){if(Pl(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Bl(e)&&e.host||Il(e);return Bl(t)?t.host:t}function tu(e){let t=eu(e);return Zl(t)?(e.ownerDocument||e).body:zl(t)&&Vl(t)?t:tu(t)}function nu(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=tu(e),i=r===e.ownerDocument?.body,a=Fl(r);if(i){let e=ru(a);return t.concat(a,a.visualViewport||[],Vl(r)?r:[],e&&n?nu(e):[])}return t.concat(r,nu(r,[],n))}function ru(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function iu(e){let t=Ql(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=zl(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=qc(n)!==a||qc(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function au(e){return Rl(e)?e:e.contextElement}function ou(e){let t=au(e);if(!zl(t))return Yc(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=iu(t),o=(a?qc(n.width):n.width)/r,s=(a?qc(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var su=Yc(0);function cu(e){let t=Fl(e);return!Xl()||!t.visualViewport?su:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function lu(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Fl(e)}function uu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=au(e),o=Yc(1);t&&(r?Rl(r)&&(o=ou(r)):o=ou(e));let s=lu(a,n,r)?cu(a):Yc(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=Fl(a),t=Rl(r)?Fl(r):r,n=e,i=ru(n);for(;i&&t!==n;){let e=ou(i),t=i.getBoundingClientRect(),r=Ql(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=Fl(i),i=ru(n)}}return _l({width:u,height:d,x:c,y:l})}function du(e,t){let n=$l(e).scrollLeft;return t?t.left+n:uu(Il(e)).left+n}function fu(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-du(e,n),y:n.top+t.scrollTop}}function pu(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Il(r),s=t?Ul(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Yc(1),u=Yc(0),d=zl(r);if((d||!a)&&((Pl(r)!==`body`||Vl(o))&&(c=$l(r)),d)){let e=uu(r);l=ou(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?fu(o,c):Yc(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 mu(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function hu(e){let t=$l(e),n=e.ownerDocument.body,r=Kc(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Kc(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+du(e),o=-t.scrollTop;return Ql(n).direction===`rtl`&&(a+=Kc(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var gu=25;function _u(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Fl(e),a=Il(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Xl()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(du(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<=gu&&(s-=o)}return{width:s,height:c,x:l,y:u}}function vu(e,t){let n=uu(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=ou(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function yu(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=_u(e,n,t);else if(t===`document`)r=hu(Il(e));else if(Rl(t))r=vu(t,n);else{let n=cu(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return _l(r)}function bu(e,t){let n=t.get(e);if(n)return n;let r=nu(e,[],!1).filter(e=>Rl(e)&&Pl(e)!==`body`),i=null,a=Ql(e).position===`fixed`,o=a?eu(e):e;for(;Rl(o)&&!Zl(o);){let e=Ql(o),t=Jl(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=eu(o)}return t.set(e,r),r}function xu(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Ul(t)?[]:bu(t,this._c):[].concat(n),r],o=yu(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=yu(t,a[e],i);s=Kc(n.top,s),c=Gc(n.right,c),l=Gc(n.bottom,l),u=Kc(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Su(e){let{width:t,height:n}=iu(e);return{width:t,height:n}}function Cu(e,t,n){let r=zl(t),i=Il(t),a=n===`fixed`,o=uu(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Yc(0);if((r||!a)&&((Pl(t)!==`body`||Vl(i))&&(s=$l(t)),r)){let e=uu(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=du(i));let l=i&&!r&&!a?fu(i,s):Yc(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 wu(e){return Ql(e).position===`static`}function Tu(e,t){if(!zl(e)||Ql(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Il(e)===n&&(n=n.ownerDocument.body),n}function Eu(e,t){let n=Fl(e);if(Ul(e))return n;if(!zl(e)){let t=eu(e);for(;t&&!Zl(t);){if(Rl(t)&&!wu(t))return t;t=eu(t)}return n}let r=Tu(e,t);for(;r&&Hl(r)&&wu(r);)r=Tu(r,t);return r&&Zl(r)&&wu(r)&&!Jl(r)?n:r||Yl(e)||n}var Du=async function(e){let t=this.getOffsetParent||Eu,n=this.getDimensions,r=await n(e.floating);return{reference:Cu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ou(e){return Ql(e).direction===`rtl`}var ku={convertOffsetParentRelativeRectToViewportRelativeRect:pu,getDocumentElement:Il,getClippingRect:xu,getOffsetParent:Eu,getElementRects:Du,getClientRects:mu,getDimensions:Su,getScale:ou,isElement:Rl,isRTL:Ou};function Au(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ju(e,t,n){let r=null,i,a=Il(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=Jc(d),h=Jc(a.clientWidth-(u+f)),g=Jc(a.clientHeight-(d+p)),_=Jc(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Kc(0,Gc(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Au(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=Fl(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Mu(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=au(e),u=i||a?[...l?nu(l):[],...t?nu(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?ju(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?uu(e):null;c&&g();function g(){let t=uu(e);h&&!Au(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 Nu=kl,Pu=Al,Fu=Cl,Iu=Ml,Lu=El,Ru=Sl,zu=jl,Bu=(e,t,n)=>{let r=new Map,i=n??{},a={...ku,...i.platform,_c:r};return xl(e,t,{...i,platform:a})},Vu=typeof document<`u`?V.useLayoutEffect:function(){};function Hu(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(!Hu(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)&&!Hu(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Uu(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Wu(e,t){let n=Uu(e);return Math.round(t*n)/n}function Gu(e){let t=V.useRef(e);return Vu(()=>{t.current=e}),t}function Ku(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]=V.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=V.useState(r);Hu(f,r)||p(r);let[m,h]=V.useState(null),[g,_]=V.useState(null),v=V.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=V.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=V.useRef(null),C=V.useRef(null),w=V.useRef(u),T=c!=null,E=Gu(c),D=Gu(i),O=Gu(l),k=V.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Bu(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!Hu(w.current,t)&&(w.current=t,Dr.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);Vu(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=V.useRef(!1);Vu(()=>(A.current=!0,()=>{A.current=!1}),[]),Vu(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=V.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=V.useMemo(()=>({reference:b,floating:x}),[b,x]),N=V.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=Wu(M.floating,u.x),r=Wu(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Uu(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return V.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var qu=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?{}:Ru({element:r.current,padding:i}).fn(n):r?Ru({element:r,padding:i}).fn(n):{}}}},Ju=(e,t)=>{let n=Nu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Yu=(e,t)=>{let n=Pu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Xu=(e,t)=>({fn:zu(e).fn,options:[e,t]}),Zu=(e,t)=>{let n=Fu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Qu=(e,t)=>{let n=Iu(e);return{name:n.name,fn:n.fn,options:[e,t]}},$u=(e,t)=>{let n=Lu(e);return{name:n.name,fn:n.fn,options:[e,t]}},ed=(e,t)=>{let n=qu(e);return{name:n.name,fn:n.fn,options:[e,t]}},td=Object.defineProperty,nd=V.forwardRef(((e,t)=>td(e,`name`,{value:t,configurable:!0}))(function(e,t){let{children:n,width:r=10,height:i=5,...a}=e;return(0,H.jsx)(W.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,H.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})},`Arrow`)),rd=Object.defineProperty,id=(e,t)=>rd(e,`name`,{value:t,configurable:!0}),ad=`Popper`,[od,sd]=Rr(ad),[cd,ld]=od(ad),ud=id(e=>{let{__scopePopper:t,children:n}=e,[r,i]=V.useState(null),[a,o]=V.useState(void 0);return(0,H.jsx)(cd,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),dd=`PopperAnchor`,fd=V.forwardRef(id(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=ld(dd,n),o=V.useRef(null),s=a.onAnchorChange,c=ur(t,V.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=V.useRef(null);V.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&Sd(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,H.jsx)(W.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),pd=`PopperContent`,[md,hd]=od(pd),gd=V.forwardRef(id(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=ld(pd,n),[_,v]=V.useState(null),y=ur(t,v),[b,x]=V.useState(null),S=Tc(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),E=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},D=Array.isArray(l)?l:[l],O=D.length>0,k={padding:E,boundary:D.filter(bd),altBoundary:O},{refs:A,floatingStyles:j,placement:M,isPositioned:N,middlewareData:P}=Ku({strategy:`fixed`,placement:T,whileElementsMounted:id((...e)=>Mu(...e,{animationFrame:p===`always`}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[Ju({mainAxis:i+w,alignmentAxis:o}),c&&Yu({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?Xu():void 0,...k}),c&&Zu({...k}),Qu({...k,apply:id(({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`)}),b&&ed({element:b,padding:s}),xd({arrowWidth:C,arrowHeight:w}),f&&$u({strategy:`referenceHidden`,...k,boundary:O?k.boundary:void 0})]}),F=g.setPlacementState;oi(()=>(F(M),()=>{F(void 0)}),[M,F]);let[I,L]=Sd(M),ee=ta(m);oi(()=>{N&&ee?.()},[N,ee]);let te=P.arrow?.x,ne=P.arrow?.y,R=P.arrow?.centerOffset!==0,[z,B]=V.useState();return oi(()=>{_&&B(window.getComputedStyle(_).zIndex)},[_]),(0,H.jsx)(`div`,{ref:A.setFloating,"data-radix-popper-content-wrapper":``,style:{...j,transform:N?j.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:z,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(` `),...P.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,H.jsx)(md,{scope:n,placedSide:I,placedAlign:L,onArrowChange:x,arrowX:te,arrowY:ne,shouldHideArrow:R,children:(0,H.jsx)(W.div,{"data-side":I,"data-align":L,...h,ref:y,style:{...h.style,animation:N?h.style?.animation:`none`}})})})},`PopperContent`)),_d=`PopperArrow`,vd={top:`bottom`,right:`left`,bottom:`top`,left:`right`},yd=V.forwardRef(id(function(e,t){let{__scopePopper:n,...r}=e,i=hd(_d,n),a=vd[i.placedSide];return(0,H.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,H.jsx)(nd,{...r,ref:t,style:{...r.style,display:`block`}})})},`PopperArrow`));function bd(e){return e!==null}id(bd,`isNotNull`);var xd=id(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]=Sd(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 Sd(e){let[t,n=`center`]=e.split(`-`);return[t,n]}id(Sd,`getSideAndAlignFromPlacement`);var Cd=ud,wd=fd,Td=gd,Ed=yd,Dd=Object.defineProperty,Od=(e,t)=>Dd(e,`name`,{value:t,configurable:!0}),kd=!1;function Ad(){let[e,t]=V.useState(kd);return V.useEffect(()=>{kd||(kd=!0,t(!0))},[]),e}Od(Ad,`useIsHydrated`);var jd=V.useSyncExternalStore;function Md(){return()=>{}}Od(Md,`subscribe`);function Nd(){return jd(Md,()=>!0,()=>!1)}Od(Nd,`useIsHydratedModern`);var Pd=typeof jd==`function`?Nd:Ad,Fd=Object.defineProperty,Id=(e,t)=>Fd(e,`name`,{value:t,configurable:!0}),Ld=`rovingFocusGroup.onEntryFocus`,Rd={bubbles:!1,cancelable:!0},zd=`RovingFocusGroup`,[Bd,Vd,Hd]=Hr(zd),[Ud,Wd]=Rr(zd,[Hd]),[Gd,Kd]=Ud(zd),qd=V.forwardRef(Id(function(e,t){return(0,H.jsx)(Bd.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,H.jsx)(Bd.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,H.jsx)(Jd,{...e,ref:t})})})},`RovingFocusGroup`)),Jd=V.forwardRef(Id(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=V.useRef(null),p=ur(t,f),m=Qi(a),[h,g]=hi({prop:o,defaultProp:s??null,onChange:c,caller:zd}),[_,v]=V.useState(!1),y=ta(l),b=Vd(n),x=V.useRef(!1),[S,C]=V.useState(0);return V.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(Ld,y),()=>e.removeEventListener(Ld,y)},[y]),(0,H.jsx)(Gd,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:V.useCallback(e=>g(e),[g]),onItemShiftTab:V.useCallback(()=>v(!0),[]),onFocusableItemAdd:V.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:V.useCallback(()=>C(e=>e-1),[]),children:(0,H.jsx)(W.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:G(e.onMouseDown,()=>{x.current=!0}),onFocus:G(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(Ld,Rd);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);ef([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:G(e.onBlur,()=>v(!1))})})},`RovingFocusGroupImpl`)),Yd=`RovingFocusGroupItem`,Xd=V.forwardRef(Id(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=Ni(),l=a||c,u=Kd(Yd,n),d=u.currentTabStopId===l,f=Vd(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u,g=Pd();return oi(()=>{if(!(!g||!r))return p(),()=>m()},[g,r,p,m]),V.useEffect(()=>{if(!(g||!r))return p(),()=>m()},[g,r,p,m]),(0,H.jsx)(Bd.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,H.jsx)(W.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:G(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:G(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:G(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=$d(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?tf(n,r+1):n.slice(r+1)}setTimeout(()=>ef(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})},`RovingFocusGroupItem`)),Zd={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Qd(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}Id(Qd,`getDirectionAwareKey`);function $d(e,t,n){let r=Qd(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Zd[r]}Id($d,`getFocusIntent`);function ef(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}Id(ef,`focusFirst`);function tf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}Id(tf,`wrapArray`);var nf=qd,rf=Xd,af=Object.defineProperty,of=(e,t)=>af(e,`name`,{value:t,configurable:!0}),sf=[`Enter`,` `],cf=[`ArrowDown`,`PageUp`,`Home`],lf=[`ArrowUp`,`PageDown`,`End`],uf=[...cf,...lf];[...sf],[...sf];var df=`Menu`,[ff,pf,mf]=Hr(df),[hf,gf]=Rr(df,[mf,sd,Wd]),_f=sd(),vf=Wd(),[yf,bf]=hf(df),[xf,Sf]=hf(df),Cf=of(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=_f(t),[c,l]=V.useState(null),u=V.useRef(!1),d=ta(a),f=Qi(i);return V.useEffect(()=>{let e=of(()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},`handleKeyDown`),t=of(()=>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})}},[]),V.useEffect(()=>{if(!n)return;let e=of(()=>d(!1),`handleBlur`);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,d]),(0,H.jsx)(Cd,{...s,children:(0,H.jsx)(yf,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,H.jsx)(xf,{scope:t,onClose:V.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})},`Menu`),wf=V.forwardRef(of(function(e,t){let{__scopeMenu:n,...r}=e,i=_f(n);return(0,H.jsx)(wd,{...i,...r,ref:t})},`MenuAnchor`)),Tf=`MenuPortal`,[Ef,Df]=hf(Tf,{forceMount:void 0}),Of=of(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=bf(Tf,t);return(0,H.jsx)(Ef,{scope:t,forceMount:n,children:(0,H.jsx)(Ci,{present:n||a.open,children:(0,H.jsx)(Pa,{asChild:!0,container:i,children:r})})})},`MenuPortal`),kf=`MenuContent`,[Af,jf]=hf(kf),Mf=V.forwardRef(of(function(e,t){let n=Df(kf,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=bf(kf,e.__scopeMenu),o=Sf(kf,e.__scopeMenu);return(0,H.jsx)(ff.Provider,{scope:e.__scopeMenu,children:(0,H.jsx)(Ci,{present:r||a.open,children:(0,H.jsx)(ff.Slot,{scope:e.__scopeMenu,children:o.modal?(0,H.jsx)(Nf,{...i,ref:t}):(0,H.jsx)(Pf,{...i,ref:t})})})})},`MenuContent`)),Nf=V.forwardRef(of(function(e,t){let n=bf(kf,e.__scopeMenu),r=V.useRef(null),i=ur(t,r);return V.useEffect(()=>{let e=r.current;if(e)return as(e)},[]),(0,H.jsx)(If,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:G(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentModal`)),Pf=V.forwardRef(of(function(e,t){let n=bf(kf,e.__scopeMenu);return(0,H.jsx)(If,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentNonModal`)),Ff=pr(`MenuContent.ScrollLock`),If=V.forwardRef(of(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=bf(kf,n),_=Sf(kf,n),v=_f(n),y=vf(n),b=pf(n),[x,S]=V.useState(null),C=V.useRef(null),w=ur(t,C,g.onContentChange),T=V.useRef(0),E=V.useRef(``),D=V.useRef(0),O=V.useRef(null),k=V.useRef(`right`),A=V.useRef(0),j=m?Xo:V.Fragment,M=m?{as:Ff,allowPinchZoom:!0}:void 0,N=of(e=>{let t=E.current+e,n=b().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=ep(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;of((function e(t){E.current=t,window.clearTimeout(T.current),t!==``&&(T.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(t),o&&setTimeout(()=>o.focus())},`handleTypeaheadSearch`);V.useEffect(()=>()=>window.clearTimeout(T.current),[]),Ba();let P=V.useCallback(e=>k.current===O.current?.side&&np(e,O.current?.area),[]);return(0,H.jsx)(Af,{scope:n,searchRef:E,onItemEnter:V.useCallback(e=>{P(e)&&e.preventDefault()},[P]),onItemLeave:V.useCallback(e=>{P(e)||(C.current?.focus(),S(null))},[P]),onTriggerLeave:V.useCallback(e=>{P(e)&&e.preventDefault()},[P]),pointerGraceTimerRef:D,onPointerGraceIntentChange:V.useCallback(e=>{O.current=e},[]),children:(0,H.jsx)(j,{...M,children:(0,H.jsx)(xa,{asChild:!0,trapped:i,onMountAutoFocus:G(a,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,H.jsx)(la,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,H.jsx)(nf,{asChild:!0,...y,dir:_.dir,orientation:`vertical`,loop:r,currentTabStopId:x,onCurrentTabStopIdChange:S,onEntryFocus:G(c,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,H.jsx)(Td,{role:`menu`,"aria-orientation":`vertical`,"data-state":Yf(g.open),"data-radix-menu-content":``,dir:_.dir,...v,...h,ref:w,style:{outline:`none`,...h.style},onKeyDown:G(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&&N(e.key));let i=C.current;if(e.target!==i||!uf.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled).map(e=>e.ref.current);lf.includes(e.key)&&a.reverse(),Qf(a)}),onBlur:G(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),E.current=``)}),onPointerMove:G(e.onPointerMove,rp(e=>{let t=e.target,n=A.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>A.current?`right`:`left`;k.current=t,A.current=e.clientX}}))})})})})})})},`MenuContentImpl`)),Lf=V.forwardRef(of(function(e,t){let{__scopeMenu:n,...r}=e;return(0,H.jsx)(W.div,{...r,ref:t})},`MenuLabel`)),Rf=`MenuItem`,zf=`menu.itemSelect`,Bf=V.forwardRef(of(function(e,t){let{disabled:n=!1,onSelect:r,...i}=e,a=V.useRef(null),o=Sf(Rf,e.__scopeMenu),s=jf(Rf,e.__scopeMenu),c=ur(t,a),l=V.useRef(!1),u=of(()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(zf,{bubbles:!0,cancelable:!0});e.addEventListener(zf,e=>r?.(e),{once:!0}),Ar(e,t),t.defaultPrevented?l.current=!1:o.onClose()}},`handleSelect`);return(0,H.jsx)(Vf,{...i,ref:c,disabled:n,onClick:G(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:G(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:G(e.onKeyDown,e=>{n||e.target!==e.currentTarget||(s.searchRef.current===``||e.key!==` `)&&sf.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},`MenuItem`)),Vf=V.forwardRef(of(function(e,t){let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=jf(Rf,n),s=vf(n),c=V.useRef(null),l=ur(t,c),[u,d]=V.useState(!1),[f,p]=V.useState(``);return V.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,H.jsx)(ff.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,H.jsx)(rf,{asChild:!0,...s,focusable:!r,children:(0,H.jsx)(W.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:G(e.onPointerMove,rp(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:G(e.onPointerLeave,rp(e=>o.onItemLeave(e))),onFocus:G(e.onFocus,()=>d(!0)),onBlur:G(e.onBlur,()=>d(!1))})})})},`MenuItemImpl`)),[Hf,Uf]=hf(`MenuRadioGroup`,{value:void 0,onValueChange:of(()=>{},`onValueChange`)}),[Wf,Gf]=hf(`MenuItemIndicator`,{checked:!1}),Kf=V.forwardRef(of(function(e,t){let{__scopeMenu:n,...r}=e;return(0,H.jsx)(W.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})},`MenuSeparator`)),[qf,Jf]=hf(`MenuSub`);function Yf(e){return e?`open`:`closed`}of(Yf,`getOpenState`);function Xf(e){return e===`indeterminate`}of(Xf,`isIndeterminate`);function Zf(e){return Xf(e)?`indeterminate`:e?`checked`:`unchecked`}of(Zf,`getCheckedState`);function Qf(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}of(Qf,`focusFirst`);function $f(e,t){return e.map((n,r)=>e[(t+r)%e.length])}of($f,`wrapArray`);function ep(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=$f(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}of(ep,`getNextMatch`);function tp(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}of(tp,`isPointInPolygon`);function np(e,t){return t?tp({x:e.clientX,y:e.clientY},t):!1}of(np,`isPointerInGraceArea`);function rp(e){return t=>t.pointerType===`mouse`?e(t):void 0}of(rp,`whenMouse`);var ip=Cf,ap=wf,op=Of,sp=Mf,cp=Lf,lp=Bf,up=Kf,dp=Object.defineProperty,fp=(e,t)=>dp(e,`name`,{value:t,configurable:!0}),pp=`DropdownMenu`,[mp,hp]=Rr(pp,[gf]),gp=gf(),[_p,vp]=mp(pp),yp=fp(e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=gp(t),l=V.useRef(null),[u,d]=hi({prop:i,defaultProp:a??!1,onChange:o,caller:pp});return(0,H.jsx)(_p,{scope:t,triggerId:Ni(),triggerRef:l,contentId:Ni(),open:u,onOpenChange:d,onOpenToggle:V.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,H.jsx)(ip,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})},`DropdownMenu`),bp=`DropdownMenuTrigger`,xp=V.forwardRef(fp(function(e,t){let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=vp(bp,n),o=gp(n),s=ur(t,a.triggerRef);return(0,H.jsx)(ap,{asChild:!0,...o,children:(0,H.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:G(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:G(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})},`DropdownMenuTrigger`)),Sp=fp(e=>{let{__scopeDropdownMenu:t,...n}=e,r=gp(t);return(0,H.jsx)(op,{...r,...n})},`DropdownMenuPortal`),Cp=`DropdownMenuContent`,wp=V.forwardRef(fp(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=vp(Cp,n),a=gp(n),o=V.useRef(!1);return(0,H.jsx)(sp,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:G(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:G(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`)),Tp=V.forwardRef(fp(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=gp(n);return(0,H.jsx)(cp,{...i,...r,ref:t})},`DropdownMenuLabel`)),Ep=V.forwardRef(fp(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=gp(n);return(0,H.jsx)(lp,{...i,...r,ref:t})},`DropdownMenuItem`)),Dp=V.forwardRef(fp(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=gp(n);return(0,H.jsx)(up,{...i,...r,ref:t})},`DropdownMenuSeparator`)),Op=yp,kp=xp,Ap=Sp,jp=wp,Mp=Tp,Np=Ep,Pp=Dp,Fp=Object.defineProperty,Ip=V.forwardRef(((e,t)=>Fp(e,`name`,{value:t,configurable:!0}))(function(e,t){return(0,H.jsx)(W.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},`Label`)),Lp=Object.defineProperty,Rp=(e,t)=>Lp(e,`name`,{value:t,configurable:!0});function zp(e){let t=V.useRef({value:e,previous:e});return V.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}Rp(zp,`usePrevious`);var Bp=Object.defineProperty,Vp=(e,t)=>Bp(e,`name`,{value:t,configurable:!0});function Hp(e,[t,n]){return Math.min(n,Math.max(t,e))}Vp(Hp,`clamp`);var Up=Object.defineProperty,Wp=(e,t)=>Up(e,`name`,{value:t,configurable:!0}),Gp=`Popover`,[Kp,qp]=Rr(Gp,[sd]),Jp=sd(),[Yp,Xp]=Kp(Gp),Zp=Wp(e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=Jp(t),c=V.useRef(null),[l,u]=V.useState(!1),[d,f]=hi({prop:r,defaultProp:i??!1,onChange:a,caller:Gp});return(0,H.jsx)(Cd,{...s,children:(0,H.jsx)(Yp,{scope:t,contentId:Ni(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:V.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:V.useCallback(()=>u(!0),[]),onCustomAnchorRemove:V.useCallback(()=>u(!1),[]),modal:o,children:n})})},`Popover`),Qp=`PopoverTrigger`,$p=V.forwardRef(Wp(function(e,t){let{__scopePopover:n,...r}=e,i=Xp(Qp,n),a=Jp(n),o=ur(t,i.triggerRef),s=(0,H.jsx)(W.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":um(i.open),...r,ref:o,onClick:G(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,H.jsx)(wd,{asChild:!0,...a,children:s})},`PopoverTrigger`)),em=`PopoverPortal`,[tm,nm]=Kp(em,{forceMount:void 0}),rm=Wp(e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=Xp(em,t);return(0,H.jsx)(tm,{scope:t,forceMount:n,children:(0,H.jsx)(Ci,{present:n||a.open,children:(0,H.jsx)(Pa,{asChild:!0,container:i,children:r})})})},`PopoverPortal`),im=`PopoverContent`,am=V.forwardRef(Wp(function(e,t){let n=nm(im,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=Xp(im,e.__scopePopover);return(0,H.jsx)(Ci,{present:r||a.open,children:a.modal?(0,H.jsx)(sm,{...i,ref:t}):(0,H.jsx)(cm,{...i,ref:t})})},`PopoverContent`)),om=pr(`PopoverContent.RemoveScroll`),sm=V.forwardRef(Wp(function(e,t){let n=Xp(im,e.__scopePopover),r=V.useRef(null),i=ur(t,r),a=V.useRef(!1);return V.useEffect(()=>{let e=r.current;if(e)return as(e)},[]),(0,H.jsx)(Xo,{as:om,allowPinchZoom:!0,children:(0,H.jsx)(lm,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:G(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:G(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:G(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},`PopoverContentModal`)),cm=V.forwardRef(Wp(function(e,t){let n=Xp(im,e.__scopePopover),r=V.useRef(!1),i=V.useRef(!1);return(0,H.jsx)(lm,{...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`)),lm=V.forwardRef(Wp(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=Xp(im,n),p=Jp(n);return Ba(),(0,H.jsx)(xa,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,H.jsx)(la,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,H.jsx)(Td,{"data-state":um(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 um(e){return e?`open`:`closed`}Wp(um,`getState`);var dm=Zp,fm=$p,pm=rm,mm=am,hm=Object.defineProperty,gm=(e,t)=>hm(e,`name`,{value:t,configurable:!0}),_m=[` `,`Enter`,`ArrowUp`,`ArrowDown`],vm=[` `,`Enter`],ym=`Select`,[bm,xm,Sm]=Hr(ym),[Cm,wm]=Rr(ym,[Sm,sd]),Tm=sd(),[Em,Dm]=Cm(ym),[Om,km]=Cm(ym);function Am(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=Tm(t),[_,v]=V.useState(null),[y,b]=V.useState(null),[x,S]=V.useState(!1),C=Qi(l),[w,T]=hi({prop:r,defaultProp:i??!1,onChange:a,caller:ym}),[E,D]=hi({prop:o,defaultProp:s,onChange:c,caller:ym}),O=V.useRef(null),k=V.useRef(E);V.useEffect(()=>{let e=m?_?.ownerDocument.getElementById(m):_?.form;if(e instanceof HTMLFormElement){let t=gm(()=>D(k.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[m,_,D]);let A=!_||!!m||!!_.closest(`form`),[j,M]=V.useState(new Set),N=Ni(),P=Array.from(j).map(e=>e.props.value).join(`;`),F=V.useCallback(e=>{M(t=>new Set(t).add(e))},[]),I=V.useCallback(e=>{M(t=>{let n=new Set(t);return n.delete(e),n})},[]),L={required:p,trigger:_,onTriggerChange:v,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:x,onValueNodeHasChildrenChange:S,contentId:N,value:E,onValueChange:D,open:w,onOpenChange:T,dir:C,triggerPointerDownPosRef:O,disabled:f,name:u,autoComplete:d,form:m,nativeOptions:j,nativeSelectKey:P,isFormControl:A};return(0,H.jsx)(Cd,{...g,children:(0,H.jsx)(Em,{scope:t,...L,children:(0,H.jsx)(bm.Provider,{scope:t,children:(0,H.jsx)(Om,{scope:t,onNativeOptionAdd:F,onNativeOptionRemove:I,children:_h(h)?h(L):n})})})})}gm(Am,`SelectProvider`);var jm=gm(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,H.jsx)(Am,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,H.jsxs)(H.Fragment,{children:[n,e?(0,H.jsx)(gh,{__scopeSelect:t}):null]})})},`Select`),Mm=`SelectTrigger`,Nm=V.forwardRef(gm(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,a=Tm(n),o=Dm(Mm,n),s=o.disabled||r,c=ur(t,o.onTriggerChange),l=xm(n),u=V.useRef(`touch`),[d,f,p]=yh(e=>{let t=l().filter(e=>!e.disabled),n=bh(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),m=gm(e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,H.jsx)(wd,{asChild:!0,...a,children:(0,H.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":vh(o.value)?``:void 0,...i,ref:c,onClick:G(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:G(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:G(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&f(e.key),!(t&&e.key===` `)&&_m.includes(e.key)&&(m(),e.preventDefault())})})})},`SelectTrigger`)),Pm=`SelectValue`,Fm=V.forwardRef(gm(function(e,t){let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=Dm(Pm,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=ur(t,c.onValueNodeChange);oi(()=>{l(u)},[l,u]);let f=vh(c.value);return(0,H.jsx)(W.span,{...s,asChild:!f&&s.asChild,ref:d,style:{pointerEvents:`none`},children:(0,H.jsx)(V.Fragment,{children:f?o:a},f?`placeholder`:`value`)})},`SelectValue`)),Im=V.forwardRef(gm(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,H.jsx)(W.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[Lm,Rm]=Cm(`SelectPortal`,{forceMount:void 0}),zm=gm(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,H.jsx)(Lm,{scope:e.__scopeSelect,forceMount:n,children:(0,H.jsx)(Pa,{asChild:!0,...r})})},`SelectPortal`),Bm=`SelectContent`,Vm=V.forwardRef(gm(function(e,t){let n=Rm(Bm,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=Dm(Bm,e.__scopeSelect),[o,s]=V.useState();return oi(()=>{s(new DocumentFragment)},[]),(0,H.jsx)(Ci,{present:r||a.open,children:({present:e})=>e?(0,H.jsx)(qm,{...i,ref:t}):(0,H.jsx)(Hm,{...i,fragment:o})})},`SelectContent`)),Hm=V.forwardRef(gm(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?Dr.createPortal((0,H.jsx)(Wm,{scope:n,children:(0,H.jsx)(bm.Slot,{scope:n,children:(0,H.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),Um=10,[Wm,Gm]=Cm(Bm),Km=pr(`SelectContent.RemoveScroll`),qm=V.forwardRef(gm(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,..._}=e,v=Dm(Bm,n),[y,b]=V.useState(null),[x,S]=V.useState(null),C=ur(t,b),[w,T]=V.useState(null),[E,D]=V.useState(null),O=xm(n),[k,A]=V.useState(!1),j=V.useRef(!1);V.useEffect(()=>{if(y)return as(y)},[y]),Ba();let M=V.useCallback(e=>{let[t,...n]=O().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&&x&&(x.scrollTop=0),n===r&&x&&(x.scrollTop=x.scrollHeight),n?.focus(),document.activeElement!==i))return},[O,x]),N=V.useCallback(()=>M([w,y]),[M,w,y]);V.useEffect(()=>{k&&N()},[k,N]);let{onOpenChange:P,triggerPointerDownPosRef:F}=v;V.useEffect(()=>{if(y){let e={x:0,y:0},t=gm(t=>{e={x:Math.abs(Math.round(t.pageX)-(F.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(F.current?.y??0))}},`handlePointerMove`),n=gm(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(y)||P(!1),document.removeEventListener(`pointermove`,t),F.current=null},`handlePointerUp`);return F.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[y,P,F]),V.useEffect(()=>{let e=gm(()=>P(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[P]);let[I,L]=yh(e=>{let t=O().filter(e=>!e.disabled),n=bh(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),ee=V.useCallback((e,t,n)=>{let r=!j.current&&!n;(v.value!==void 0&&v.value===t||r)&&(T(e),r&&(j.current=!0))},[v.value]),te=V.useCallback(()=>y?.focus(),[y]),ne=V.useCallback((e,t,n)=>{let r=!j.current&&!n;(v.value!==void 0&&v.value===t||r)&&D(e)},[v.value]),R=r===`popper`?Ym:Jm,z=R===Ym?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,H.jsx)(Wm,{scope:n,content:y,viewport:x,onViewportChange:S,itemRefCallback:ee,selectedItem:w,onItemLeave:te,itemTextRefCallback:ne,focusSelectedItem:N,selectedItemText:E,position:r,isPositioned:k,searchRef:I,children:(0,H.jsx)(Xo,{as:Km,allowPinchZoom:!0,children:(0,H.jsx)(xa,{asChild:!0,trapped:v.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:G(i,e=>{v.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,H.jsx)(la,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:(0,H.jsx)(R,{role:`listbox`,id:v.contentId,"data-state":v.open?`open`:`closed`,dir:v.dir,onContextMenu:e=>e.preventDefault(),..._,...z,onPlaced:()=>A(!0),ref:C,style:{display:`flex`,flexDirection:`column`,outline:`none`,..._.style},onKeyDown:G(_.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&L(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=O().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(()=>M(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),Jm=V.forwardRef(gm(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=Dm(Bm,n),o=Gm(Bm,n),[s,c]=V.useState(null),[l,u]=V.useState(null),d=ur(t,u),f=xm(n),p=V.useRef(!1),m=V.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:_,focusSelectedItem:v}=o,y=V.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&g&&_){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=_.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-Um,d=Hp(a,[Um,Math.max(Um,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-Um,d=Hp(a,[Um,Math.max(Um,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-Um*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+v+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-Um,D=c-E,O=g.offsetHeight/2,k=g.offsetTop+O,A=m+v+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=`${Um}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,_,a.dir,r]);oi(()=>y(),[y]);let[b,x]=V.useState();oi(()=>{l&&x(window.getComputedStyle(l).zIndex)},[l]);let S=V.useCallback(e=>{e&&m.current===!0&&(y(),v?.(),m.current=!1)},[y,v]);return(0,H.jsx)(Xm,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:S,children:(0,H.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:b},children:(0,H.jsx)(W.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),Ym=V.forwardRef(gm(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=Um,...a}=e,o=Tm(n);return(0,H.jsx)(Td,{...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`)),[Xm,Zm]=Cm(Bm,{}),Qm=`SelectViewport`,$m=V.forwardRef(gm(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,a=Gm(Qm,n),o=Zm(Qm,n),s=ur(t,a.onViewportChange),c=V.useRef(0);return(0,H.jsxs)(H.Fragment,{children:[(0,H.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,H.jsx)(bm.Slot,{scope:n,children:(0,H.jsx)(W.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:G(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-Um*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`)),[eh,th]=Cm(`SelectGroup`),nh=`SelectItem`,[rh,ih]=Cm(nh),ah=V.forwardRef(gm(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=Dm(nh,n),c=Gm(nh,n),l=s.value===r,[u,d]=V.useState(a??``),[f,p]=V.useState(!1),m=ur(t,ta(e=>c.itemRefCallback?.(e,r,i))),h=Ni(),g=V.useRef(`touch`),_=gm(()=>{i||(s.onValueChange(r),s.onOpenChange(!1))},`handleSelect`);return(0,H.jsx)(rh,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:V.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,H.jsx)(bm.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,H.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:G(o.onFocus,()=>p(!0)),onBlur:G(o.onBlur,()=>p(!1)),onClick:G(o.onClick,()=>{g.current!==`mouse`&&_()}),onPointerUp:G(o.onPointerUp,()=>{g.current===`mouse`&&_()}),onPointerDown:G(o.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:G(o.onPointerMove,e=>{g.current=e.pointerType,i?c.onItemLeave?.():g.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:G(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:G(o.onKeyDown,e=>{i||e.target!==e.currentTarget||(c.searchRef?.current===``||e.key!==` `)&&(vm.includes(e.key)&&_(),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),oh=`SelectItemText`,sh=V.forwardRef(gm(function(e,t){let{__scopeSelect:n,className:r,style:i,...a}=e,o=Dm(oh,n),s=Gm(oh,n),c=ih(oh,n),l=km(oh,n),[u,d]=V.useState(null),f=ta(e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=ur(t,d,c.onItemTextChange,f),m=u?.textContent,h=V.useMemo(()=>(0,H.jsx)(`option`,{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:_}=l;return oi(()=>(g(h),()=>_(h)),[g,_,h]),(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(W.span,{id:c.textId,...a,ref:p}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!vh(o.value)?Dr.createPortal(a.children,o.valueNode):null]})},`SelectItemText`)),ch=`SelectItemIndicator`,lh=V.forwardRef(gm(function(e,t){let{__scopeSelect:n,...r}=e;return ih(ch,n).isSelected?(0,H.jsx)(W.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),uh=`SelectScrollUpButton`,dh=V.forwardRef(gm(function(e,t){let n=Gm(uh,e.__scopeSelect),r=Zm(uh,e.__scopeSelect),[i,a]=V.useState(!1),o=ur(t,r.onScrollButtonChange);return oi(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;a(e)};gm(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,H.jsx)(mh,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null},`SelectScrollUpButton`)),fh=`SelectScrollDownButton`,ph=V.forwardRef(gm(function(e,t){let n=Gm(fh,e.__scopeSelect),r=Zm(fh,e.__scopeSelect),[i,a]=V.useState(!1),o=ur(t,r.onScrollButtonChange);return oi(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};gm(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,H.jsx)(mh,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null},`SelectScrollDownButton`)),mh=V.forwardRef(gm(function(e,t){let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=Gm(`SelectScrollButton`,n),o=V.useRef(null),s=xm(n),c=V.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return V.useEffect(()=>()=>c(),[c]),oi(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,H.jsx)(W.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:G(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:G(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:G(i.onPointerLeave,()=>{c()})})},`SelectScrollButtonImpl`)),hh=`SelectBubbleInput`,gh=V.forwardRef(gm(function({__scopeSelect:e,...t},n){let r=Dm(hh,e),{value:i,onValueChange:a,required:o,disabled:s,name:c,autoComplete:l,form:u}=r,{nativeOptions:d,nativeSelectKey:f}=r,p=V.useRef(null),m=ur(n,p),h=i??``,g=zp(h),_=Array.from(d).some(e=>(e.props.value??``)===``);return V.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,H.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:{...Nr,...t.style},ref:m,defaultValue:h,children:[vh(i)&&!_?(0,H.jsx)(`option`,{value:``}):null,Array.from(d)]},f)},`SelectBubbleInput`));function _h(e){return typeof e==`function`}gm(_h,`isFunction`);function vh(e){return e===``||e===void 0}gm(vh,`shouldShowPlaceholder`);function yh(e){let t=ta(e),n=V.useRef(``),r=V.useRef(0),i=V.useCallback(e=>{let i=n.current+e;t(i),gm((function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(i)},[t]),a=V.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return V.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}gm(yh,`useTypeaheadSearch`);function bh(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=xh(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}gm(bh,`findNextItem`);function xh(e,t){return e.map((n,r)=>e[(t+r)%e.length])}gm(xh,`wrapArray`);var Sh=Object.defineProperty,Ch=(e,t)=>Sh(e,`name`,{value:t,configurable:!0}),wh=`horizontal`,Th=[`horizontal`,`vertical`],Eh=V.forwardRef(Ch(function(e,t){let{decorative:n,orientation:r=wh,...i}=e,a=Dh(r)?r:wh,o=n?{role:`none`}:{"aria-orientation":a===`vertical`?a:void 0,role:`separator`};return(0,H.jsx)(W.div,{"data-orientation":a,...o,...i,ref:t})},`Separator`));function Dh(e){return Th.includes(e)}Ch(Dh,`isValidOrientation`);var Oh=Eh,kh=Object.defineProperty,Ah=(e,t)=>kh(e,`name`,{value:t,configurable:!0}),jh=`Tabs`,[Mh,Nh]=Rr(jh,[Wd]),Ph=Wd(),[Fh,Ih]=Mh(jh),Lh=V.forwardRef(Ah(function(e,t){let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o=`horizontal`,dir:s,activationMode:c=`automatic`,...l}=e,u=Qi(s),[d,f]=hi({prop:r,onChange:i,defaultProp:a??``,caller:jh});return(0,H.jsx)(Fh,{scope:n,baseId:Ni(),value:d,onValueChange:f,orientation:o,dir:u,activationMode:c,children:(0,H.jsx)(W.div,{dir:u,"data-orientation":o,...l,ref:t})})},`Tabs`)),Rh=`TabsList`,zh=V.forwardRef(Ah(function(e,t){let{__scopeTabs:n,loop:r=!0,...i}=e,a=Ih(Rh,n),o=Ph(n);return(0,H.jsx)(nf,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,H.jsx)(W.div,{role:`tablist`,"aria-orientation":a.orientation,...i,ref:t})})},`TabsList`)),Bh=`TabsTrigger`,Vh=V.forwardRef(Ah(function(e,t){let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=Ih(Bh,n),s=Ph(n),c=Wh(o.baseId,r),l=Gh(o.baseId,r),u=r===o.value;return(0,H.jsx)(rf,{asChild:!0,...s,focusable:!i,active:u,children:(0,H.jsx)(W.button,{type:`button`,role:`tab`,"aria-selected":u,"aria-controls":l,"data-state":u?`active`:`inactive`,"data-disabled":i?``:void 0,disabled:i,id:c,...a,ref:t,onMouseDown:G(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?o.onValueChange(r):e.preventDefault()}),onKeyDown:G(e.onKeyDown,e=>{i||e.target!==e.currentTarget||[` `,`Enter`].includes(e.key)&&o.onValueChange(r)}),onFocus:G(e.onFocus,()=>{let e=o.activationMode!==`manual`;!u&&!i&&e&&o.onValueChange(r)})})})},`TabsTrigger`)),Hh=`TabsContent`,Uh=V.forwardRef(Ah(function(e,t){let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=Ih(Hh,n),c=Wh(s.baseId,r),l=Gh(s.baseId,r),u=r===s.value,d=V.useRef(u);return V.useEffect(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,H.jsx)(Ci,{present:i||u,children:({present:n})=>(0,H.jsx)(W.div,{"data-state":u?`active`:`inactive`,"data-orientation":s.orientation,role:`tabpanel`,"aria-labelledby":c,hidden:!n,id:l,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:d.current?`0s`:void 0},children:n&&a})})},`TabsContent`));function Wh(e,t){return`${e}-trigger-${t}`}Ah(Wh,`makeTriggerId`);function Gh(e,t){return`${e}-content-${t}`}Ah(Gh,`makeContentId`);var Kh=Lh,qh=zh,Jh=Vh,Yh=Uh,Xh=Object.defineProperty,Zh=(e,t)=>Xh(e,`name`,{value:t,configurable:!0}),[Qh,$h]=Rr(`Tooltip`,[sd]),eg=sd(),tg=`TooltipProvider`,ng=700,rg=`tooltip.open`,[ig,ag]=Qh(tg),og=Zh(e=>{let{__scopeTooltip:t,delayDuration:n=ng,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=V.useRef(!0),s=V.useRef(!1),c=V.useRef(0);return V.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,H.jsx)(ig,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:V.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:V.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:V.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),sg=`Tooltip`,[cg,lg]=Qh(sg),ug=Zh(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=ag(sg,e.__scopeTooltip),l=eg(t),[u,d]=V.useState(null),[f,p]=V.useState(void 0),m=Ni(),h=V.useRef(0),g=o??c.disableHoverableContent,_=s??c.delayDuration,v=V.useRef(!1),[y,b]=hi({prop:r,defaultProp:i??!1,onChange:Zh(e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(rg))):c.onClose(),a?.(e)},`onChange`),caller:sg}),x=V.useMemo(()=>y?v.current?`delayed-open`:`instant-open`:`closed`,[y]),S=V.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,b(!0)},[b]),C=V.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b(!1)},[b]),w=V.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,b(!0),h.current=0},_)},[_,b]);V.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]);let T=f??m;return(0,H.jsx)(Cd,{...l,children:(0,H.jsx)(cg,{scope:t,contentId:T,setContentId:p,open:y,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:V.useCallback(()=>{c.isOpenDelayedRef.current?w():S()},[c.isOpenDelayedRef,w,S]),onTriggerLeave:V.useCallback(()=>{g?C():(window.clearTimeout(h.current),h.current=0)},[C,g]),onOpen:S,onClose:C,disableHoverableContent:g,children:n})})},`Tooltip`),dg=`TooltipTrigger`,fg=V.forwardRef(Zh(function(e,t){let{__scopeTooltip:n,...r}=e,i=lg(dg,n),a=ag(dg,n),o=eg(n),s=ur(t,V.useRef(null),i.onTriggerChange),c=V.useRef(!1),l=V.useRef(!1),u=V.useCallback(()=>c.current=!1,[]);return V.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,H.jsx)(wd,{asChild:!0,...o,children:(0,H.jsx)(W.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:G(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:G(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:G(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:G(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:G(e.onBlur,i.onClose),onClick:G(e.onClick,i.onClose)})})},`TooltipTrigger`)),pg=`TooltipPortal`,[mg,hg]=Qh(pg,{forceMount:void 0}),gg=Zh(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=lg(pg,t);return(0,H.jsx)(mg,{scope:t,forceMount:n,children:(0,H.jsx)(Ci,{present:n||a.open,children:(0,H.jsx)(Pa,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),_g=`TooltipContent`,vg=V.forwardRef(Zh(function(e,t){let n=hg(_g,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=lg(_g,e.__scopeTooltip);return(0,H.jsx)(Ci,{present:r||o.open,children:o.disableHoverableContent?(0,H.jsx)(xg,{side:i,...a,ref:t}):(0,H.jsx)(yg,{side:i,...a,ref:t})})},`TooltipContent`)),yg=V.forwardRef(Zh(function(e,t){let n=lg(_g,e.__scopeTooltip),r=ag(_g,e.__scopeTooltip),i=V.useRef(null),a=ur(t,i),[o,s]=V.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=V.useCallback(()=>{s(null),d(!1)},[d]),p=V.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=wg(r,Cg(r,n.getBoundingClientRect())),a=Tg(t.getBoundingClientRect()),o=Dg([...i,...a]);s(o),d(!0)},[d]);return V.useEffect(()=>()=>f(),[f]),V.useEffect(()=>{if(c&&u){let e=Zh(e=>p(e,u),`handleTriggerLeave`),t=Zh(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]),V.useEffect(()=>{if(o){let e=Zh(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!Eg(n,o);r?f():i&&(f(),l())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,H.jsx)(xg,{...e,ref:a})},`TooltipContentHoverable`)),bg=gr(`TooltipContent`),xg=V.forwardRef(Zh(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,l=lg(_g,n),u=eg(n),{onClose:d}=l;V.useEffect(()=>(document.addEventListener(rg,d),()=>document.removeEventListener(rg,d)),[d]),V.useEffect(()=>{if(l.trigger){let e=Zh(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 oi(()=>(f(a),()=>{f(void 0)}),[a,f]),(0,H.jsx)(la,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,H.jsxs)(Td,{"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,H.jsx)(bg,{children:r}),i?(0,H.jsx)(Pr,{id:l.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`)),Sg=V.forwardRef(Zh(function(e,t){let{__scopeTooltip:n,...r}=e,i=eg(n);return(0,H.jsx)(Ed,{...i,...r,ref:t})},`TooltipArrow`));function Cg(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`)}}Zh(Cg,`getExitSideFromRect`);function wg(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}Zh(wg,`getPaddedExitPoints`);function Tg(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}]}Zh(Tg,`getPointsFromRect`);function Eg(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}Zh(Eg,`isPointInPolygon`);function Dg(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)),Og(t)}Zh(Dg,`getHull`);function Og(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)}Zh(Og,`getHullPresorted`);var kg=og,Ag=ug,jg=fg,Mg=gg,Ng=vg,Pg=Sg,Fg=768;function Ig(){let[e,t]=V.useState(void 0);return V.useEffect(()=>{let e=window.matchMedia(`(max-width: 767px)`),n=()=>{t(window.innerWidth<Fg)};return e.addEventListener(`change`,n),t(window.innerWidth<Fg),()=>e.removeEventListener(`change`,n)},[]),!!e}var Lg=(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},Rg=(e,t)=>({classGroupId:e,validator:t}),zg=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Bg=`-`,Vg=[],Hg=`arbitrary..`,Ug=e=>{let t=Kg(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Gg(e);let n=e.split(Bg);return Wg(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Lg(i,t):t:i||Vg}return n[e]||Vg}}},Wg=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Wg(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Bg):e.slice(t).join(Bg),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Gg=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?Hg+r:void 0})(),Kg=e=>{let{theme:t,classGroups:n}=e;return qg(n,t)},qg=(e,t)=>{let n=zg();for(let r in e){let i=e[r];Jg(i,n,r,t)}return n},Jg=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Yg(i,t,n,r)}},Yg=(e,t,n,r)=>{if(typeof e==`string`){Xg(e,t,n);return}if(typeof e==`function`){Zg(e,t,n,r);return}Qg(e,t,n,r)},Xg=(e,t,n)=>{let r=e===``?t:$g(t,e);r.classGroupId=n},Zg=(e,t,n,r)=>{if(e_(e)){Jg(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Rg(n,e))},Qg=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Jg(o,$g(t,a),n,r)}},$g=(e,t)=>{let n=e,r=t.split(Bg),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=zg(),n.nextPart.set(t,i)),n=i}return n},e_=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,t_=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)}}},n_=`!`,r_=`:`,i_=[],a_=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),o_=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===r_){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(n_)?(c=s.slice(0,-1),l=!0):s.startsWith(n_)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return a_(t,l,c,u)};if(t){let e=t+r_,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):a_(i_,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},s_=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}},c_=e=>({cache:t_(e.cacheSize),parseClassName:o_(e),sortModifiers:s_(e),postfixLookupClassGroupIds:l_(e),...Ug(e)}),l_=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},u_=/\s+/,d_=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(u_),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?_+n_:_,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},f_=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=p_(n))&&(i&&(i+=` `),i+=r);return i},p_=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=p_(e[r]))&&(n&&(n+=` `),n+=t);return n},m_=(e,...t)=>{let n,r,i,a,o=o=>(n=c_(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=d_(e,n);return i(e,a),a};return a=o,(...e)=>a(f_(...e))},h_=[],g_=e=>{let t=t=>t[e]||h_;return t.isThemeGetter=!0,t},__=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,v_=/^\((?:(\w[\w-]*):)?(.+)\)$/i,y_=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,b_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,x_=/\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$/,S_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,C_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,w_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,T_=e=>y_.test(e),E_=e=>!!e&&!Number.isNaN(Number(e)),D_=e=>!!e&&Number.isInteger(Number(e)),O_=e=>e.endsWith(`%`)&&E_(e.slice(0,-1)),k_=e=>b_.test(e),A_=()=>!0,j_=e=>x_.test(e)&&!S_.test(e),M_=()=>!1,N_=e=>C_.test(e),P_=e=>w_.test(e),F_=e=>!K(e)&&!q(e),I_=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)),L_=e=>Q_(e,nv,M_),K=e=>__.test(e),R_=e=>Q_(e,rv,j_),z_=e=>Q_(e,iv,E_),B_=e=>Q_(e,ov,A_),V_=e=>Q_(e,av,M_),H_=e=>Q_(e,ev,M_),U_=e=>Q_(e,tv,P_),W_=e=>Q_(e,sv,N_),q=e=>v_.test(e),G_=e=>$_(e,rv),K_=e=>$_(e,av),q_=e=>$_(e,ev),J_=e=>$_(e,nv),Y_=e=>$_(e,tv),X_=e=>$_(e,sv,!0),Z_=e=>$_(e,ov,!0),Q_=(e,t,n)=>{let r=__.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},$_=(e,t,n=!1)=>{let r=v_.exec(e);return r?r[1]?t(r[1]):n:!1},ev=e=>e===`position`||e===`percentage`,tv=e=>e===`image`||e===`url`,nv=e=>e===`length`||e===`size`||e===`bg-size`,rv=e=>e===`length`,iv=e=>e===`number`,av=e=>e===`family-name`,ov=e=>e===`number`||e===`weight`,sv=e=>e===`shadow`,cv=m_(()=>{let e=g_(`color`),t=g_(`font`),n=g_(`text`),r=g_(`font-weight`),i=g_(`tracking`),a=g_(`leading`),o=g_(`breakpoint`),s=g_(`container`),c=g_(`spacing`),l=g_(`radius`),u=g_(`shadow`),d=g_(`inset-shadow`),f=g_(`text-shadow`),p=g_(`drop-shadow`),m=g_(`blur`),h=g_(`perspective`),g=g_(`aspect`),_=g_(`ease`),v=g_(`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(),q,K],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[q,K,c],T=()=>[T_,`full`,`auto`,...w()],E=()=>[D_,`none`,`subgrid`,q,K],D=()=>[`auto`,{span:[`full`,D_,q,K]},D_,q,K],O=()=>[D_,`auto`,q,K],k=()=>[`auto`,`min`,`max`,`fr`,q,K],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=()=>[T_,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[T_,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],F=()=>[T_,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],I=()=>[e,q,K],L=()=>[...b(),q_,H_,{position:[q,K]}],ee=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],te=()=>[`auto`,`cover`,`contain`,J_,L_,{size:[q,K]}],ne=()=>[O_,G_,R_],R=()=>[``,`none`,`full`,l,q,K],z=()=>[``,E_,G_,R_],B=()=>[`solid`,`dashed`,`dotted`,`double`],re=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],ie=()=>[E_,O_,q_,H_],ae=()=>[``,`none`,m,q,K],oe=()=>[`none`,E_,q,K],se=()=>[`none`,E_,q,K],ce=()=>[E_,q,K],le=()=>[T_,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[k_],breakpoint:[k_],color:[A_],container:[k_],"drop-shadow":[k_],ease:[`in`,`out`,`in-out`],font:[F_],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[k_],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[k_],shadow:[k_],spacing:[`px`,E_],text:[k_],"text-shadow":[k_],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,T_,K,q,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,q,K]}],"container-named":[I_],columns:[{columns:[E_,K,q,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:[D_,`auto`,q,K]}],basis:[{basis:[T_,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[E_,T_,`auto`,`initial`,`none`,K]}],grow:[{grow:[``,E_,q,K]}],shrink:[{shrink:[``,E_,q,K]}],order:[{order:[D_,`first`,`last`,`none`,q,K]}],"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`,...N()]}],"font-size":[{text:[`base`,n,G_,R_]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Z_,B_]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,O_,K]}],"font-family":[{font:[K_,V_,t]}],"font-features":[{"font-features":[K]}],"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,q,K]}],"line-clamp":[{"line-clamp":[E_,`none`,q,z_]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,q,K]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,q,K]}],"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:[...B(),`wavy`]}],"text-decoration-thickness":[{decoration:[E_,`from-font`,`auto`,q,R_]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[E_,`auto`,q,K]}],"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:[D_,q,K]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,q,K]}],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`,q,K]}],"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`]},D_,q,K],radial:[``,q,K],conic:[D_,q,K]},Y_,U_]}],"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:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-bs":[{"border-bs":z()}],"border-w-be":[{"border-be":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":z()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...B(),`hidden`,`none`]}],"divide-style":[{divide:[...B(),`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:[...B(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[E_,q,K]}],"outline-w":[{outline:[``,E_,G_,R_]}],"outline-color":[{outline:I()}],shadow:[{shadow:[``,`none`,u,X_,W_]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":[`none`,d,X_,W_]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:z()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[E_,R_]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":[`none`,f,X_,W_]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[E_,q,K]}],"mix-blend":[{"mix-blend":[...re(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":re()}],"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":[E_]}],"mask-image-linear-from-pos":[{"mask-linear-from":ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":ie()}],"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":ie()}],"mask-image-t-to-pos":[{"mask-t-to":ie()}],"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":ie()}],"mask-image-r-to-pos":[{"mask-r-to":ie()}],"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":ie()}],"mask-image-b-to-pos":[{"mask-b-to":ie()}],"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":ie()}],"mask-image-l-to-pos":[{"mask-l-to":ie()}],"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":ie()}],"mask-image-x-to-pos":[{"mask-x-to":ie()}],"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":ie()}],"mask-image-y-to-pos":[{"mask-y-to":ie()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[q,K]}],"mask-image-radial-from-pos":[{"mask-radial-from":ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":ie()}],"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":[E_]}],"mask-image-conic-from-pos":[{"mask-conic-from":ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":ie()}],"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`,q,K]}],filter:[{filter:[``,`none`,q,K]}],blur:[{blur:ae()}],brightness:[{brightness:[E_,q,K]}],contrast:[{contrast:[E_,q,K]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,X_,W_]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:[``,E_,q,K]}],"hue-rotate":[{"hue-rotate":[E_,q,K]}],invert:[{invert:[``,E_,q,K]}],saturate:[{saturate:[E_,q,K]}],sepia:[{sepia:[``,E_,q,K]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,q,K]}],"backdrop-blur":[{"backdrop-blur":ae()}],"backdrop-brightness":[{"backdrop-brightness":[E_,q,K]}],"backdrop-contrast":[{"backdrop-contrast":[E_,q,K]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,E_,q,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[E_,q,K]}],"backdrop-invert":[{"backdrop-invert":[``,E_,q,K]}],"backdrop-opacity":[{"backdrop-opacity":[E_,q,K]}],"backdrop-saturate":[{"backdrop-saturate":[E_,q,K]}],"backdrop-sepia":[{"backdrop-sepia":[``,E_,q,K]}],"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`,q,K]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[E_,`initial`,q,K]}],ease:[{ease:[`linear`,`initial`,_,q,K]}],delay:[{delay:[E_,q,K]}],animate:[{animate:[`none`,v,q,K]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,q,K]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:se()}],"scale-x":[{"scale-x":se()}],"scale-y":[{"scale-y":se()}],"scale-z":[{"scale-z":se()}],"scale-3d":[`scale-3d`],skew:[{skew:ce()}],"skew-x":[{"skew-x":ce()}],"skew-y":[{"skew-y":ce()}],transform:[{transform:[q,K,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":[`translate-none`],zoom:[{zoom:[D_,q,K]}],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`,q,K]}],"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`,q,K]}],fill:[{fill:[`none`,...I()]}],"stroke-w":[{stroke:[E_,G_,R_,z_]}],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":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`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-r`,`border-w-l`],"border-w-y":[`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-r`,`border-color-l`],"border-color-y":[`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-mr`,`scroll-ml`],"scroll-my":[`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-pr`,`scroll-pl`],"scroll-py":[`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 J(...e){return cv(nr(e))}var lv=ar(`group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2`,xs:`h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&_svg:not([class*='size-'])]:size-3.5`,lg:`h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2`,icon:`size-8`,"icon-xs":`size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg`,"icon-lg":`size-9`}},defaultVariants:{variant:`default`,size:`default`}});function Y({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){let a=r?mr:`button`;return(0,H.jsx)(a,{"data-slot":`button`,"data-variant":t,"data-size":n,className:J(lv({variant:t,size:n,className:e})),...i})}function uv({className:e,type:t,...n}){return(0,H.jsx)(`input`,{type:t,"data-slot":`input`,className:J(`h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground/70 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,e),...n})}function dv({className:e,orientation:t=`horizontal`,decorative:n=!0,...r}){return(0,H.jsx)(Oh,{"data-slot":`separator`,decorative:n,orientation:t,className:J(`shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch`,e),...r})}function fv({...e}){return(0,H.jsx)(ps,{"data-slot":`sheet`,...e})}function pv({...e}){return(0,H.jsx)(hs,{"data-slot":`sheet-trigger`,...e})}function mv({...e}){return(0,H.jsx)(ys,{"data-slot":`sheet-portal`,...e})}function hv({className:e,...t}){return(0,H.jsx)(xs,{"data-slot":`sheet-overlay`,className:J(`fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function gv({className:e,children:t,side:n=`right`,showCloseButton:r=!0,closeLabel:i,...a}){return(0,H.jsxs)(mv,{children:[(0,H.jsx)(hv,{}),(0,H.jsxs)(Ts,{"data-slot":`sheet-content`,"data-side":n,className:J(`fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-e data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-s data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10`,e),...a,children:[t,r&&(0,H.jsx)(Ps,{"data-slot":`sheet-close`,asChild:!0,children:(0,H.jsxs)(Y,{variant:`ghost`,className:`absolute top-3 end-3`,size:`icon-sm`,children:[(0,H.jsx)(Qn,{}),(0,H.jsx)(`span`,{className:`sr-only`,children:i})]})})]})]})}function _v({className:e,...t}){return(0,H.jsx)(`div`,{"data-slot":`sheet-header`,className:J(`flex flex-col gap-0.5 p-4`,e),...t})}function vv({className:e,...t}){return(0,H.jsx)(As,{"data-slot":`sheet-title`,className:J(`font-heading text-base font-medium text-foreground`,e),...t})}function yv({className:e,...t}){return(0,H.jsx)(Ms,{"data-slot":`sheet-description`,className:J(`text-sm text-muted-foreground`,e),...t})}function bv({className:e,...t}){return(0,H.jsx)(`div`,{"data-slot":`skeleton`,className:J(`animate-pulse rounded-md bg-muted`,e),...t})}function xv({delayDuration:e=0,...t}){return(0,H.jsx)(kg,{"data-slot":`tooltip-provider`,delayDuration:e,...t})}function Sv({...e}){return(0,H.jsx)(Ag,{"data-slot":`tooltip`,...e})}function Cv({...e}){return(0,H.jsx)(jg,{"data-slot":`tooltip-trigger`,...e})}function wv({className:e,sideOffset:t=0,children:n,...r}){return(0,H.jsx)(Mg,{children:(0,H.jsxs)(Ng,{"data-slot":`tooltip-content`,sideOffset:t,className:J(`z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pe-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r,children:[n,(0,H.jsx)(Pg,{className:`z-50 fill-foreground`})]})})}var Tv=`sidebar_state`,Ev=604800,Dv=`16rem`,Ov=`18rem`,kv=`3rem`,Av=`b`,jv=V.createContext(null);function Mv(){let e=V.useContext(jv);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function Nv({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:a,...o}){let s=Ig(),[c,l]=V.useState(!1),[u,d]=V.useState(e),f=t??u,p=V.useCallback(e=>{let t=typeof e==`function`?e(f):e;n?n(t):d(t),document.cookie=`${Tv}=${t}; path=/; max-age=${Ev}`},[n,f]),m=V.useCallback(()=>s?l(e=>!e):p(e=>!e),[s,p,l]);V.useEffect(()=>{let e=e=>{e.key===Av&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),m())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[m]);let h=f?`expanded`:`collapsed`,g=V.useMemo(()=>({state:h,open:f,setOpen:p,isMobile:s,openMobile:c,setOpenMobile:l,toggleSidebar:m}),[h,f,p,s,c,l,m]);return(0,H.jsx)(jv.Provider,{value:g,children:(0,H.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":Dv,"--sidebar-width-icon":kv,...i},className:J(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,r),...o,children:a})})}function Pv({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,dir:a,mobileTitle:o,mobileDescription:s,closeLabel:c,...l}){let{isMobile:u,state:d,openMobile:f,setOpenMobile:p}=Mv();return n===`none`?(0,H.jsx)(`div`,{"data-slot":`sidebar`,className:J(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),...l,children:i}):u?(0,H.jsx)(fv,{open:f,onOpenChange:p,...l,children:(0,H.jsxs)(gv,{dir:a,"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden`,style:{"--sidebar-width":Ov},side:e,closeLabel:c,children:[(0,H.jsxs)(_v,{className:`sr-only`,children:[(0,H.jsx)(vv,{children:o}),(0,H.jsx)(yv,{children:s})]}),(0,H.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:i})]})}):(0,H.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-state":d,"data-collapsible":d===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,H.jsx)(`div`,{"data-slot":`sidebar-gap`,className:J(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),(0,H.jsx)(`div`,{"data-slot":`sidebar-container`,"data-side":e,className:J(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s`,r),...l,children:(0,H.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:`flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border`,children:i})})]})}function Fv({className:e,onClick:t,"aria-label":n,...r}){let{toggleSidebar:i}=Mv();return(0,H.jsx)(Y,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon-sm`,"aria-label":n,className:J(e),onClick:e=>{t?.(e),i()},...r,children:(0,H.jsx)(Sn,{className:`rtl:rotate-180`})})}function Iv({className:e,"aria-label":t,...n}){let{toggleSidebar:r}=Mv();return(0,H.jsx)(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":t,tabIndex:-1,onClick:r,title:t,className:J(`absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:start-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex ltr:-translate-x-1/2 rtl:-translate-x-1/2`,`in-data-[side=left]:cursor-w-resize rtl:in-data-[side=left]:cursor-e-resize in-data-[side=right]:cursor-e-resize rtl:in-data-[side=right]:cursor-w-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize rtl:[[data-side=left][data-state=collapsed]_&]:cursor-w-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize rtl:[[data-side=right][data-state=collapsed]_&]:cursor-e-resize`,`group-data-[collapsible=offcanvas]:translate-x-0 rtl:group-data-[collapsible=offcanvas]:-translate-x-0 group-data-[collapsible=offcanvas]:after:start-full hover:group-data-[collapsible=offcanvas]:bg-sidebar`,`[[data-side=left][data-collapsible=offcanvas]_&]:-end-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-start-2`,e),...n})}function Lv({className:e,...t}){return(0,H.jsx)(`main`,{"data-slot":`sidebar-inset`,className:J(`relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2`,e),...t})}function Rv({className:e,...t}){return(0,H.jsx)(uv,{"data-slot":`sidebar-input`,"data-sidebar":`input`,className:J(`h-8 w-full bg-background shadow-none`,e),...t})}function zv({className:e,...t}){return(0,H.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:J(`flex flex-col gap-2 p-2`,e),...t})}function Bv({className:e,...t}){return(0,H.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:J(`flex flex-col gap-2 p-2`,e),...t})}function Vv({className:e,...t}){return(0,H.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:J(`no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function Hv({className:e,...t}){return(0,H.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:J(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function Uv({className:e,asChild:t=!1,...n}){let r=t?mr:`div`;return(0,H.jsx)(r,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:J(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,e),...n})}function Wv({className:e,...t}){return(0,H.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:J(`flex w-full min-w-0 flex-col gap-0`,e),...t})}function Gv({className:e,...t}){return(0,H.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:J(`group/menu-item relative`,e),...t})}var Kv=ar(`peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pe-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function qv({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:i,className:a,...o}){let s=e?mr:`button`,{isMobile:c,state:l}=Mv(),u=(0,H.jsx)(s,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":r,"data-active":t,className:J(Kv({variant:n,size:r}),a),...o});return i?(typeof i==`string`&&(i={children:i}),(0,H.jsxs)(Sv,{children:[(0,H.jsx)(Cv,{asChild:!0,children:u}),(0,H.jsx)(wv,{side:`right`,align:`center`,hidden:l!==`collapsed`||c,...i})]})):u}function Jv({className:e,...t}){return(0,H.jsx)(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:J(`mx-3.5 flex min-w-0 translate-x-px rtl:-translate-x-px flex-col gap-1 border-s border-sidebar-border px-2.5 py-0.5 group-data-[collapsible=icon]:hidden`,e),...t})}function Yv({className:e,...t}){return(0,H.jsx)(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:J(`group/menu-sub-item relative`,e),...t})}function Xv({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){let a=e?mr:`a`;return(0,H.jsx)(a,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":t,"data-active":n,className:J(`flex h-7 min-w-0 -translate-x-px rtl:translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground ring-sidebar-ring outline-hidden group-data-[collapsible=icon]:hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground`,r),...i})}var Zv=`/admin/api`,Qv=class extends Error{status;body;constructor(e,t,n){super(e),this.status=t,this.body=n,this.name=`ApiError`}};async function $v(e,t){let n=await fetch(`${Zv}${e}`,{credentials:`same-origin`,...t,headers:{Accept:`application/json`,...t?.headers??{}}}),r=await n.text(),i=null;if(r)try{i=JSON.parse(r)}catch{i=r}if(!n.ok)throw new Qv(`${n.status} ${n.statusText}`,n.status,i);return i}var ey={get:e=>$v(e),post:(e,t)=>$v(e,ty(`POST`,t)),patch:(e,t)=>$v(e,ty(`PATCH`,t)),delete:e=>$v(e,{method:`DELETE`})};function ty(e,t){return{method:e,headers:{"Content-Type":`application/json`},body:t===void 0?void 0:JSON.stringify(t)}}function ny(e,t,n){if(e==null)return null;if(typeof e==`string`)return e;if(Object.prototype.hasOwnProperty.call(e,t))return e[t];if(n&&Object.prototype.hasOwnProperty.call(e,n))return e[n];let r=Object.keys(e)[0];return r===void 0?null:e[r]}function ry(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1 $2`).replace(/[_-]+/g,` `).replace(/\b\w/g,e=>e.toUpperCase())}function iy(e,t,n,r){return ny(t?.title,n,r)??ry(e)}function ay(e,t,n){return ny(e?.description,t,n)??void 0}function oy(){return{queryKey:[`developer-console`],queryFn:()=>ey.get(`/developer-console`)}}function sy(){return{queryKey:[`auth-methods`],queryFn:async()=>{let e=await fetch(`/api/auth/methods`,{credentials:`include`});if(!e.ok)throw Error(`HTTP ${e.status}`);return(await e.json()).methods??[]},retry:!1}}function cy(){return{queryKey:[`views-manifest`],queryFn:async()=>(await ey.get(`/views-manifest`)).views}}function ly(){return{queryKey:[`operations`],queryFn:async()=>(await ey.get(`/operations`)).operations}}var uy=[`draft`,`published`,`archived`],dy=V.createContext(null);function fy(){return typeof window>`u`?{pathname:`/admin`,search:``}:{pathname:window.location.pathname,search:window.location.search}}function py(e){if(typeof window>`u`)return!1;let t=new URL(e,window.location.href);return!(t.origin!==window.location.origin||!t.pathname.startsWith(`/admin`)||t.pathname.startsWith(`/admin/api/`)||t.pathname.startsWith(`/admin/auth/`))}function my({children:e}){let[t,n]=V.useState(fy),r=V.useCallback((e,t={})=>{if(typeof window>`u`)return;let r=new URL(e,window.location.href),i=`${r.pathname}${r.search}${r.hash}`,a=`${window.location.pathname}${window.location.search}${window.location.hash}`,o={pathname:r.pathname,search:r.search};i!==a&&(t.replace?window.history.replaceState(null,``,i):window.history.pushState(null,``,i)),(0,Dr.flushSync)(()=>n(o))},[]);V.useEffect(()=>{let e=()=>n(fy());return window.addEventListener(`popstate`,e),()=>window.removeEventListener(`popstate`,e)},[]),V.useEffect(()=>{let e=e=>{if(e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let t=e.target;if(!(t instanceof Element))return;let n=t.closest(`a[href]`);n instanceof HTMLAnchorElement&&(n.target&&n.target!==`_self`||n.hasAttribute(`download`)||py(n.href)&&(e.preventDefault(),r(n.href)))};return document.addEventListener(`click`,e,{capture:!0}),()=>document.removeEventListener(`click`,e,{capture:!0})},[r]);let i=V.useMemo(()=>({location:t,navigate:r}),[t,r]);return(0,H.jsx)(dy.Provider,{value:i,children:e})}function hy(){let e=V.useContext(dy);if(!e)throw Error(`useAdminRouter must be used inside AdminRouterProvider.`);return e}function gy(){return hy().location}var _y=[{value:`en`,label:`English`,nativeLabel:`English`,htmlLang:`en`,direction:`ltr`},{value:`de`,label:`German`,nativeLabel:`Deutsch`,htmlLang:`de`,direction:`ltr`},{value:`es`,label:`Spanish`,nativeLabel:`Español`,htmlLang:`es`,direction:`ltr`},{value:`fr`,label:`French`,nativeLabel:`Français`,htmlLang:`fr`,direction:`ltr`},{value:`it`,label:`Italian`,nativeLabel:`Italiano`,htmlLang:`it`,direction:`ltr`},{value:`ja`,label:`Japanese`,nativeLabel:`日本語`,htmlLang:`ja`,direction:`ltr`},{value:`ko`,label:`Korean`,nativeLabel:`한국어`,htmlLang:`ko`,direction:`ltr`},{value:`pt-BR`,label:`Portuguese (Brazil)`,nativeLabel:`Português (BR)`,htmlLang:`pt-BR`,direction:`ltr`},{value:`ru`,label:`Russian`,nativeLabel:`Русский`,htmlLang:`ru`,direction:`ltr`},{value:`zh-CN`,label:`Simplified Chinese`,nativeLabel:`简体中文`,htmlLang:`zh-Hans-CN`,direction:`ltr`},{value:`zh-TW`,label:`Traditional Chinese`,nativeLabel:`繁體中文`,htmlLang:`zh-Hant-TW`,direction:`ltr`},{value:`id`,label:`Indonesian`,nativeLabel:`Bahasa Indonesia`,htmlLang:`id`,direction:`ltr`},{value:`nl`,label:`Dutch`,nativeLabel:`Nederlands`,htmlLang:`nl`,direction:`ltr`},{value:`pl`,label:`Polish`,nativeLabel:`Polski`,htmlLang:`pl`,direction:`ltr`},{value:`tr`,label:`Turkish`,nativeLabel:`Türkçe`,htmlLang:`tr`,direction:`ltr`},{value:`vi`,label:`Vietnamese`,nativeLabel:`Tiếng Việt`,htmlLang:`vi`,direction:`ltr`},{value:`cs`,label:`Czech`,nativeLabel:`Čeština`,htmlLang:`cs`,direction:`ltr`},{value:`uk`,label:`Ukrainian`,nativeLabel:`Українська`,htmlLang:`uk`,direction:`ltr`},{value:`ar`,label:`Arabic`,nativeLabel:`العربية`,htmlLang:`ar`,direction:`rtl`},{value:`he`,label:`Hebrew`,nativeLabel:`עברית`,htmlLang:`he`,direction:`rtl`},{value:`fa`,label:`Persian`,nativeLabel:`فارسی`,htmlLang:`fa`,direction:`rtl`},{value:`th`,label:`Thai`,nativeLabel:`ไทย`,htmlLang:`th`,direction:`ltr`}],vy=`cms.preference.language`,yy=`cms.preference.theme`,by=V.createContext(null);function xy({children:e}){let[t,n]=V.useState(Sy),r=Oy(t),[i,a]=V.useState(Cy),o=V.useCallback(e=>{Ty(vy,e),n(e)},[]),s=V.useCallback(e=>{Ty(yy,e),a(e)},[]);V.useEffect(()=>{document.documentElement.lang=_y.find(e=>e.value===t)?.htmlLang??`en`,document.documentElement.dir=r},[t,r]),V.useEffect(()=>{let e=()=>{let e=typeof matchMedia<`u`&&matchMedia(`(prefers-color-scheme: dark)`).matches;document.documentElement.classList.toggle(`dark`,i===`dark`||i===`system`&&e)};if(e(),i!==`system`||typeof matchMedia>`u`)return;let t=matchMedia(`(prefers-color-scheme: dark)`);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)},[i]);let c=V.useMemo(()=>({language:t,direction:r,theme:i,setLanguage:o,setTheme:s}),[t,r,i,o,s]);return(0,H.jsx)(by.Provider,{value:c,children:e})}function X(){let e=V.useContext(by);if(!e)throw Error(`usePreferences must be used inside PreferencesProvider.`);return e}function Sy(){let e=wy(vy);if(Ey(e))return e;if(typeof navigator>`u`)return`en`;for(let e of navigator.languages??[]){let t=Dy(e);if(t!==`en`||e.toLowerCase().startsWith(`en`))return t}return Dy(navigator.language)}function Cy(){let e=wy(yy);return e===`light`||e===`dark`||e===`system`?e:`system`}function wy(e){try{return localStorage.getItem(e)}catch{return null}}function Ty(e,t){try{localStorage.setItem(e,t)}catch{}}function Ey(e){return _y.some(t=>t.value===e)}function Dy(e){let t=(e??``).toLowerCase();if(t===`zh-tw`||t===`zh-hant`||t.startsWith(`zh-hant`))return`zh-TW`;if(t===`zh-cn`||t===`zh-hans`||t.startsWith(`zh-hans`))return`zh-CN`;if(t.startsWith(`pt-br`)||t===`pt`)return`pt-BR`;let n=t.split(`-`)[0];return n===`ar`?`ar`:n===`cs`?`cs`:n===`de`?`de`:n===`es`?`es`:n===`fa`?`fa`:n===`fr`?`fr`:n===`he`||n===`iw`?`he`:n===`id`?`id`:n===`it`?`it`:n===`ja`?`ja`:n===`ko`?`ko`:n===`nl`?`nl`:n===`pl`?`pl`:n===`pt`?`pt-BR`:n===`ru`?`ru`:n===`th`?`th`:n===`tr`?`tr`:n===`uk`?`uk`:n===`vi`?`vi`:n===`zh`?`zh-TW`:`en`}function Oy(e){return _y.find(t=>t.value===e)?.direction??`ltr`}var ky={en:{"admin.consoleTitle":`Admin console`,"developer.workspaceTitle":`Developer`,"auth.accessDenied.title":`Access denied`,"auth.accessDenied.noStaff":`You're signed in, but this account doesn't have access to the admin console.`,"auth.accessDenied.askOwner":`Ask a site owner to add you to the team, or sign out to try a different account.`,"auth.error.title":`Something went wrong`,"auth.signIn.eyebrow":`Admin console`,"auth.signIn.title":`Sign in`,"auth.signIn.methodsLoadFailed":`Couldn't load sign-in methods. Try refreshing.`,"auth.signIn.startFailed":`Couldn't start sign-in. Try again.`,"auth.signIn.requestFailed":`Something went wrong. Try again.`,"auth.signIn.noMethods":`No sign-in methods are configured for this site.`,"auth.signIn.unknownMethod":`Unsupported sign-in method: {kind}.`,"auth.signIn.method.social.button":`Continue with {provider}`,"auth.signIn.method.oauth.button":`Continue with {provider}`,"auth.signIn.method.email-otp.body":`Sign in with a one-time code sent to your email.`,"auth.signIn.method.email-otp.emailLabel":`Email address`,"auth.signIn.method.email-otp.emailPlaceholder":`you@example.com`,"auth.signIn.method.email-otp.sendButton":`Send code`,"auth.signIn.method.email-otp.sendFailed":`Couldn't send the code. Check the email and try again.`,"auth.signIn.method.email-otp.sentTo":`We sent a code to {email}.`,"auth.signIn.method.email-otp.otpLabel":`One-time code`,"auth.signIn.method.email-otp.otpPlaceholder":`Enter the 6-digit code`,"auth.signIn.method.email-otp.verifyButton":`Verify and sign in`,"auth.signIn.method.email-otp.verifyFailed":`That code didn't match. Try again.`,"auth.signIn.method.email-otp.back":`Use a different email`,"auth.signIn.method.magic-link.body":`We'll email you a one-tap sign-in link.`,"auth.signIn.method.magic-link.emailLabel":`Email address`,"auth.signIn.method.magic-link.emailPlaceholder":`you@example.com`,"auth.signIn.method.magic-link.sendButton":`Send sign-in link`,"auth.signIn.method.magic-link.sendFailed":`Couldn't send the link. Check the email and try again.`,"auth.signIn.method.magic-link.sentTo":`We sent a sign-in link to {email}.`,"auth.signIn.method.magic-link.clickHint":`Click the link in the email to finish signing in. The link expires shortly.`,"auth.signIn.method.magic-link.anotherEmail":`Use a different email`,"common.signOut":`Sign out`,"common.viewSite":`View site`,"common.contentAdmin":`Content Admin`,"common.copy":`Copy`,"common.open":`Open`,"common.failedToLoad":`Failed to load`,"common.unknownError":`Unknown error`,"common.signedIn":`Signed in`,"common.close":`Close`,"common.skipToMain":`Skip to main content`,"common.breadcrumb":`Breadcrumb`,"common.toggleSidebar":`Toggle sidebar`,"common.mobileSidebar":`Navigation`,"common.mobileSidebarDescription":`Site administration navigation`,"common.saved":`Saved`,"common.unsavedChanges":`Unsaved changes`,"console.eyebrow":`Site administration`,"console.description":`Manage {title}'s content and operations here. MCP-capable agents can work alongside you.`,"console.descriptionFallback":`Manage this site's content and operations here. MCP-capable agents can work alongside you.`,"console.connector.title":`Connect Claude to the admin console`,"console.connector.body":`Authorize Claude to help manage this site's content and operations.`,"console.connector.step1.title":`Copy the management connection URL`,"console.connector.step1.body":`You'll paste this URL into Claude in the next step.`,"console.connector.step1.label":`Management connection URL`,"console.connector.step2.title":`Add a custom connector`,"console.connector.step2.body":`Open Claude Customize, name the connector, and paste the URL.`,"console.connector.step2.action":`Open Claude Customize`,"console.connector.step3.title":`Sign in and start`,"console.connector.step3.body":`Sign in with a site administrator account, then ask Claude to help manage this site.`,"console.connector.step3.action":`Open Claude`,"console.collections.title":`Data collections`,"console.collections.emptyTitle":`No collections defined yet`,"console.collections.emptyBody":`No data collections yet. Start from a template, or ask your agent to create the first one.`,"collection.breadcrumb":`Collections`,"collection.create":`New entry`,"collection.availableLanguage":`Has {language} ({locale})`,"collection.missingLanguage":`Missing {language} ({locale})`,"collection.moreLanguages":`{count} more`,"collection.schemaDetails":`Schema notes`,"collection.searchPlaceholder":`Search id or searchable fields...`,"collection.search":`Search`,"collection.pagination":`Collection pages`,"collection.previousPage":`Previous`,"collection.nextPage":`Next`,"collection.filter.all":`All`,"collection.empty.title":`No data yet`,"collection.empty.search":`No entries matched “{search}”.`,"collection.empty.withStatus":`No {status} data in {collection}.`,"collection.empty.all":`{collection} has no data yet.`,"collection.refreshing":`Updating the list...`,"collection.export":`Export CSV`,"collection.copyId":`Copy full ID`,"collection.table.id":`ID`,"collection.table.title":`Title`,"collection.table.status":`Status`,"collection.table.locale":`Locale`,"collection.table.version":`Version`,"collection.table.updated":`Updated`,"collection.table.actions":`Actions`,"collection.table.selectAll":`Select all rows on this page`,"collection.table.selectRow":`Select {name}`,"rowActions.menuLabel":`Row operations`,"rowActions.cancel":`Cancel`,"collection.untitled":`(untitled)`,"collection.bulk.selectedCount":`{count} selected`,"collection.bulk.publish":`Publish`,"collection.bulk.unpublish":`Unpublish`,"collection.bulk.delete":`Delete`,"collection.bulk.deleteConfirm":`Delete {count} selected entries? This cannot be undone.`,"crud.editTooltip":`Edit {name}.`,"crud.viewTooltip":`View {name}.`,"crud.deleteTooltip":`Delete {name}.`,"crud.saveTitle":`Save title`,"crud.cancelTitle":`Cancel editing`,"crud.deleteConfirm":`Delete {name}? This cannot be undone.`,"crud.saving":`Saving...`,"entryEdit.back":`Back to {name}`,"entryEdit.body":`Edit this {name} entry. Related records show up alongside automatically.`,"entryEdit.parent":`Parent: {name}`,"entryEdit.save":`Save changes`,"entryEdit.saveTooltip":`Save this entry.`,"entryEdit.fields":`Entry fields`,"entryEdit.meta":`Entry details`,"entryEdit.noChildEntries":`No child entries match this entry yet.`,"entryEdit.relationship":`Joined by {child} from parent {parent}.`,"entryEdit.addItem":`Add item`,"entryEdit.removeItem":`Remove item`,"entryEdit.emptyOption":`No value`,"entryEdit.boolean":`Enabled`,"entryEdit.operationalHint":`System-written record — edits may be overwritten by the next sync.`,"entryEdit.unlockOperational":`Unlock editing`,"entryEdit.readOnlyHint":`Procedure-managed record — use the available row actions to make changes.`,"entryEdit.contentLanguage":`Content language`,"entryEdit.selectLanguage":`Select language`,"entryEdit.languageLocked":`A saved entry's language cannot be changed. Open or create another translation instead.`,"entryEdit.languageTabs":`Content languages`,"entryEdit.sharedFields":`Shared fields`,"entryEdit.saveSharedFirst":`Save the shared fields before adding a translation.`,"entryEdit.publish":`Publish`,"entryEdit.publishing":`Publishing...`,"entryEdit.publishTooltip":`Publish this draft.`,"entryEdit.publishDisabledDirty":`Save changes before publishing.`,"entryEdit.publishMissingRequired":`Complete the required fields before publishing.`,"entryEdit.unpublish":`Unpublish`,"entryEdit.unpublishing":`Unpublishing...`,"entryEdit.unpublishTooltip":`Move this entry back to draft so it can be edited.`,"entryEdit.uploadMedia":`Upload`,"entryEdit.uploadingMedia":`Uploading...`,"entryEdit.noMediaPurpose":`No media upload purpose is configured.`,"settings.page.title":`Site settings`,"settings.page.body":`Manage the Admin name, default site metadata, and visitor analytics.`,"settings.tabsLabel":`Site settings sections`,"settings.tab.brand":`General`,"settings.tab.tracking":`Analytics`,"settings.brandSection":`Site identity`,"settings.brandSectionBody":`These defaults identify the site in Admin and generated public pages.`,"settings.siteBrand":`Admin name`,"settings.siteBrandHelp":`Shown in the Admin sidebar and sign-in screen. It does not replace the public page title.`,"settings.siteTitle":`Default page title`,"settings.siteTitleHelp":`Used when a page has no title of its own and as the default SEO site name.`,"settings.siteDescription":`Default site description`,"settings.siteDescriptionHelp":`Used as the SEO and sharing summary when a page has no description of its own.`,"settings.trackingSection":`Visitor analytics`,"settings.trackingSectionBody":`Optional. Mantle injects standard provider scripts into generated public HTML after you save a valid ID.`,"settings.notConfigured":`Not configured`,"settings.ga4MeasurementId":`GA4 Measurement ID`,"settings.ga4MeasurementIdHelp":`Leave blank to disable. Enter only an ID such as G-XXXXXXXXXX, not the whole gtag script.`,"settings.facebookPixelId":`Facebook Pixel ID`,"settings.facebookPixelIdHelp":`Leave blank to disable. Enter only the numeric Pixel ID; Mantle generates the base code.`,"nav.home":`Home`,"nav.overview":`Overview`,"nav.model":`Data model`,"nav.logic":`Logic`,"nav.docs":`Interfaces`,"nav.build":`Build`,"nav.content":`Content`,"nav.operations":`Records`,"nav.media":`Media library`,"nav.more":`More`,"nav.settings":`Settings`,"nav.staff":`Admin users`,"nav.members":`Members`,"nav.reports":`Reports`,"nav.localizedContent":`Contains localized content`,"common.yes":`Yes`,"common.no":`No`,"model.title":`Data model`,"model.schemas":`Schemas`,"model.views":`Views`,"model.objects":`Data model objects`,"model.search":`Search data model`,"model.fields":`Fields`,"model.path":`Path`,"model.type":`Type`,"model.required":`Required`,"model.constraints":`Constraints`,"model.noFields":`No object properties are declared.`,"model.rawSchema":`JSON Schema`,"model.rawQuery":`Query plan`,"model.queryKind":`Query`,"model.source":`Source`,"model.allFields":`All fields`,"model.order":`Order`,"model.limit":`Limit`,"model.dialect":`Dialect`,"model.filter":`Filter`,"model.params":`Parameters`,"model.relationships":`Relationships`,"model.references":`This item references`,"model.referencedBy":`References this item`,"model.noRelations":`No manifest relationships declared.`,"model.openGraph":`Show in graph`,"model.openDeclaration":`Open manifest declaration`,"model.manifest":`Manifest`,"model.compiledManifest":`Compiled manifest`,"model.marker.reference":`Reference to {target}`,"model.marker.translationParent":`Translation join to parent {target}`,"model.marker.translationChild":`Translation join from child {target}`,"model.marker.unique":`Unique index UQ{index}: {fields}`,"model.marker.index":`Index IDX{index}: {fields}`,"logic.title":`Logic`,"logic.objects":`Logic objects`,"logic.search":`Search logic`,"logic.triggers":`Triggers`,"logic.procedures":`Procedures`,"logic.overview":`Overview`,"logic.contract":`Contract`,"logic.configuration":`Configuration`,"logic.contractFrom":`This entry point uses the contract declared by {target}.`,"logic.input":`Input`,"logic.output":`Output`,"logic.noContract":`No target procedure contract is available.`,"logic.execution":`Execution path`,"logic.target":`Target procedure`,"logic.authorization":`Authorization`,"logic.noAuthorization":`No authorization predicates are declared.`,"logic.guard":`Guard procedure`,"logic.method":`Method`,"docs.title":`API & agent interfaces`,"docs.intro":`RuntimePlan-derived reference for HTTP, MCP, and browser WebMCP entry points.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`HTTP Triggers and automatically exposed public View routes.`,"docs.mcpIntro":`Tools projected from Views and explicit MCP Triggers. Authorization is still enforced when a tool runs.`,"docs.webmcpIntro":`This server-backed binding discovers public-surface Views over HTTP and registers them as read-only browser tools. Each View keeps its own audience rules.`,"docs.publicEndpoint":`Public endpoint`,"docs.staffEndpoint":`Staff endpoint`,"docs.catalogEndpoint":`Discovery catalog`,"docs.target":`Target`,"docs.inputSchema":`Input schema`,"docs.outputSchema":`Output schema`,"docs.readOnly":`Read only`,"docs.noEntries":`No entry points are declared for this interface.`,"docs.webmcpNote":`Public Procedure tools remain on MCP. The server-backed WebMCP HTTP wrapper intentionally registers public Views only.`,"logic.surface":`Surface`,"logic.hooks":`Hooks`,"logic.errorPolicy":`Error policy`,"developer.graph.title":`Manifest graph`,"developer.graph.details":`Item details`,"developer.graph.openModel":`Open in data model`,"developer.graph.openLogic":`Open logic details`,"developer.graph.relayout":`Auto layout`,"developer.graph.previous":`Previous step`,"developer.graph.next":`Next step`,"developer.graph.step":`Step {current} of {total}`,"developer.graph.comesFrom":`Comes from`,"developer.graph.continuesTo":`Continues to`,"developer.graph.manifestSource":`Manifest source`,"developer.graph.builtin":`Built-in`,"developer.graph.kind.schema":`Schema`,"developer.graph.kind.view":`View`,"developer.graph.kind.procedure":`Procedure`,"developer.graph.kind.trigger":`Trigger`,"developer.graph.fact.audience":`Audience`,"developer.graph.fact.transport":`Transport`,"developer.graph.fact.handler":`Handler`,"developer.graph.fact.operation":`Operation`,"developer.graph.fact.schema":`Schema`,"developer.graph.fact.match":`Match`,"developer.graph.summary.trigger":`Requests from {audience} enter through {transport} and continue to {target}.`,"developer.graph.summary.builtin":`A built-in {op} operation writes to {schema}.`,"developer.graph.summary.ref":`This procedure runs the registered code handler {ref}.`,"developer.graph.summary.view":`A read-only view over {target} for {audience}.`,"developer.graph.summary.schema":`{incoming} items use this schema; it references {outgoing} other items.`,"developer.graph.audience.public":`Public`,"developer.graph.audience.members":`Members`,"developer.graph.audience.staff":`Staff`,"developer.graph.audience.system":`System`,"developer.graph.audience.apiClients":`API clients`,"developer.graph.audienceDescription.public":`Available without signing in.`,"developer.graph.audienceDescription.members":`Any signed-in member. No site role is required.`,"developer.graph.audienceDescription.staff":`A signed-in member with a site role: contributor, editor, or owner. Staff is an access level, not a separate admin account.`,"developer.graph.audienceDescription.system":`Runs automatically from lifecycle, queue, or schedule events.`,"developer.graph.audienceDescription.apiClients":`Requires an authenticated API client or scope.`,"developer.graph.relation.translationParent":`translates`,"developer.graph.relation.schemaReference":`references`,"developer.graph.relation.viewSource":`reads from`,"developer.graph.relation.guard":`guarded by`,"developer.graph.relation.procedureSchema":`handles schema`,"developer.graph.relation.collectionAction":`acts on`,"developer.graph.relation.inputReference":`references`,"developer.graph.relation.triggerTarget":`invokes`,"developer.graph.relation.lifecycleSource":`watches lifecycle`,"ops.run":`Run`,"ops.running":`Running...`,"views.page.body":`A read-only report over {schema}.`,"views.publicService":`Public service`,"views.publicServices":`Public services`,"views.openInAdmin":`Open in Admin`,"views.staffReport":`Staff report`,"views.publicBody":`A live Admin preview of the public API backed by {schema}.`,"views.params.title":`Parameters`,"views.run":`Query`,"views.running":`Querying...`,"views.empty.title":`No rows`,"views.empty.body":`No data under the current filters.`,"views.notFound.title":`View not found`,"staff.page.title":`Admin users`,"staff.page.body":`Invite by email, or ask a user to sign in first and grant them Admin access from Members. Only site owners can make changes here.`,"staff.invite.title":`Invite a teammate`,"staff.invite.emailLabel":`Email address`,"staff.invite.emailPlaceholder":`teammate@example.com`,"staff.invite.roleLabel":`Role`,"staff.invite.button":`Invite`,"staff.invite.sending":`Inviting…`,"staff.invite.revoke":`Revoke`,"staff.invite.hint":`Your teammate joins after signing in with the same email address.`,"staff.emailSetup.title":`Email sign-in is not enabled`,"staff.emailSetup.body":`To enable email sign-in, give the setup instructions to your coding agent to connect a transactional email service and redeploy the site.`,"staff.emailSetup.copy":`Copy setup steps`,"staff.emailSetup.copied":`Copied`,"staff.emailSetup.guide":`Cloudflare guide`,"staff.table.name":`Name`,"staff.table.email":`Email`,"staff.table.status":`Status / sign-in`,"staff.table.role":`Role`,"staff.role.owner":`Owner`,"staff.role.owner.help":`Everything, including settings and team access.`,"staff.role.editor":`Editor`,"staff.role.editor.help":`Content, publishing, operations, and media.`,"staff.role.contributor":`Contributor`,"staff.role.contributor.help":`Create and edit drafts only.`,"staff.role.none":`No role`,"staff.badge.invited":`Invited`,"staff.status.emailSignIn":`Email sign-in`,"staff.self":`you`,"members.page.title":`Members`,"members.page.body":`People who have signed in to this site and do not have admin access.`,"members.searchPlaceholder":`Search name or email...`,"members.search":`Search`,"members.table.name":`Name`,"members.table.email":`Email`,"members.table.status":`Status`,"members.table.joined":`Joined`,"members.table.teamAccess":`Team access`,"members.promote":`Grant Admin access`,"members.verified":`Verified`,"members.unverified":`Unverified`,"members.empty.title":`No members yet`,"members.empty.body":`People appear here after they sign in to the site.`,"members.emptySearch.title":`No matching members`,"members.emptySearch.body":`Try a different name or email.`,"members.pagination":`Member pages`,"members.previousPage":`Previous`,"members.nextPage":`Next`,"status.draft":`Drafts`,"status.published":`Published`,"status.archived":`Archived`,"preferences.heading":`Preferences`,"preferences.language":`Admin language`,"preferences.language.search":`Search languages...`,"preferences.language.noResults":`No languages found.`,"preferences.direction":`Text direction`,"preferences.direction.auto":`Text direction follows the selected language.`,"preferences.appearance":`Appearance`,"preferences.light":`Light`,"preferences.dark":`Dark`,"preferences.system":`System`,"preferences.ltr":`Left to right`,"preferences.rtl":`Right to left`,"preferences.page.title":`Personal preferences`,"preferences.page.body":`These preferences stay on this browser. They change the admin console only and do not modify site settings.`,"preferences.page.languageBody":`Choose the language used by system pages and admin chrome.`,"preferences.page.appearanceBody":`Choose light, dark, or follow your operating system.`,"preferences.page.open":`Preferences`,"system.notFound.title":`Not found`,"system.notFound.body":`No view registered for`,"system.notFound.back":`Back to home`,"editor.page.title":`Content editor`,"editor.page.body":`Draft copy in Markdown, HTML, or rich text before handing it to an agent or publishing workflow.`,"editor.mode.markdown":`Markdown`,"editor.mode.html":`HTML`,"editor.mode.rich":`Rich editor`,"editor.titleLabel":`Title`,"editor.slugLabel":`Slug`,"editor.bodyLabel":`Body`,"editor.preview":`Preview`,"editor.saveDraft":`Save draft`,"editor.markdownHint":`Supports headings, lists, links, and fenced code blocks.`,"editor.htmlHint":`Edit trusted HTML fragments with a plain source view.`,"editor.richHint":`Format sections, callouts, and copy without touching markup.`,"editor.toolbar":`Rich editor toolbar`,"editor.undo":`Undo`,"editor.redo":`Redo`,"editor.aiClean":`Insert callout`,"editor.uploadImage":`Upload image`,"editor.uploading":`Uploading image...`,"editor.textStyle":`Text style`,"editor.paragraph":`Paragraph`,"editor.quote":`Quote`,"editor.code":`Code`,"editor.headingPlaceholder":`Heading`,"editor.selectedText":`selected text`,"editor.bold":`Bold`,"editor.italic":`Italic`,"editor.underline":`Underline`,"editor.strike":`Strikethrough`,"editor.inlineCode":`Inline code`,"editor.textColor":`Text color`,"editor.highlight":`Highlight`,"editor.palette":`Brand color`,"editor.alignLeft":`Align left`,"editor.alignCenter":`Align center`,"editor.alignRight":`Align right`,"editor.bulletList":`Bullet list`,"editor.numberList":`Numbered list`,"editor.checkList":`Checklist`,"editor.indent":`Indent`,"editor.link":`Link`,"editor.linkText":`link text`,"editor.table":`Table`,"editor.mediaLibrary":`Media library`,"editor.imageUrl":`Image URL`,"editor.insertImage":`Insert image`,"editor.videoUrl":`YouTube / Dailymotion URL`,"editor.insertVideo":`Insert video`,"media.alt":`Alt text`,"media.title":`Media library`,"media.description":`Every image uploaded to this site. Reuse one in an entry, tidy up its alt text, or remove it.`,"media.upload":`Upload`,"media.uploading":`Uploading...`,"media.dropHere":`Drop images here to upload`,"media.searchPlaceholder":`Search alt text, caption, or id`,"media.empty.title":`No images yet`,"media.empty.all":`Upload an image to start building the library.`,"media.empty.search":`No images match “{search}”.`,"media.noPurpose":`No upload purpose is configured for this site, so uploads are disabled.`,"media.setup.title":`Media storage isn't enabled`,"media.setup.body":`Ask your coding agent to connect storage for this deployment, then redeploy the site.`,"media.setup.cloudflare":`Cloudflare deployments use R2. Enabling R2 may require billing details.`,"media.setup.copy":`Copy setup instructions`,"media.setup.copied":`Instructions copied`,"media.setup.guide":`Cloudflare R2 setup`,"media.caption":`Caption`,"media.altPlaceholder":`Describe this image`,"media.captionPlaceholder":`Optional caption`,"media.save":`Save`,"media.saving":`Saving...`,"media.saved":`Saved`,"media.delete":`Delete`,"media.deleteConfirm":`Delete this image? It will be removed everywhere it is used.`,"media.open":`Open original`,"media.copyId":`Copy id`,"media.uploaded":`Uploaded {date}`,"media.pick":`Choose from library`,"media.pickTitle":`Choose an image`,"media.pickDescription":`Pick an existing image to reuse, or upload a new one.`,"media.use":`Use this image`,"media.loadMore":`Load more`,"media.uploadFailed":`{count} of {total} uploads failed.`,"media.capabilityMissing":`The upload could not be prepared for {mime}.`,"media.variantUploadFailed":`The {mime} upload failed. Try again.`,"media.rasterOnly":`Upload a JPEG, PNG, WebP, AVIF, or GIF image.`,"media.noRequiredVariants":`The media policy has no required image variants.`,"media.prepareFailed":`The image could not be prepared for upload.`,"media.encoderUnsupported":`This site's media policy requires an image format this browser cannot produce ({mime}). Contact the site developer to update the policy.`,"ops.error.executionFailed":`The operation ran but failed to complete.`,"ops.error.detailsLabel":`Show details`,"ops.success":`{name} completed.`,"confirm.title":`Are you sure?`,"confirm.cancel":`Cancel`,"confirm.confirm":`Confirm`,"collection.schemaSummary.lifecycleAndI18n":`Manage items, publishing state, and localized content for {name}.`,"collection.schemaSummary.lifecycleOnly":`Manage items and publishing state for {name}.`,"collection.schemaSummary.i18nOnly":`Manage items and localized content for {name}.`,"collection.schemaSummary.plain":`Manage items for {name}.`,"entryEdit.mediaMissing":`This image is missing or was deleted.`,"entryEdit.dateTime.select":`Select date and time`,"entryEdit.dateTime.time":`Time`},"zh-TW":{"admin.consoleTitle":`管理後台`,"developer.workspaceTitle":`開發者檢視`,"auth.accessDenied.title":`無法存取`,"auth.accessDenied.noStaff":`你已登入,但這個帳號沒有管理後台權限。`,"auth.accessDenied.askOwner":`請網站擁有者將你加入團隊,或登出改用其他帳號。`,"auth.error.title":`發生錯誤`,"auth.signIn.eyebrow":`管理後台`,"auth.signIn.title":`登入`,"auth.signIn.methodsLoadFailed":`讀取登入方式失敗,請重新整理頁面。`,"auth.signIn.startFailed":`無法開始登入,請再試一次。`,"auth.signIn.requestFailed":`發生錯誤,請再試一次。`,"auth.signIn.noMethods":`這個站台還沒設定任何登入方式。`,"auth.signIn.unknownMethod":`不支援的登入方式:{kind}。`,"auth.signIn.method.social.button":`使用 {provider} 繼續`,"auth.signIn.method.oauth.button":`使用 {provider} 繼續`,"auth.signIn.method.email-otp.body":`輸入 email,我們會寄一次性驗證碼給你。`,"auth.signIn.method.email-otp.emailLabel":`電子郵件`,"auth.signIn.method.email-otp.emailPlaceholder":`you@example.com`,"auth.signIn.method.email-otp.sendButton":`寄送驗證碼`,"auth.signIn.method.email-otp.sendFailed":`驗證碼寄送失敗,請確認 email 後重試。`,"auth.signIn.method.email-otp.sentTo":`已寄驗證碼到 {email}。`,"auth.signIn.method.email-otp.otpLabel":`驗證碼`,"auth.signIn.method.email-otp.otpPlaceholder":`輸入 6 位驗證碼`,"auth.signIn.method.email-otp.verifyButton":`驗證並登入`,"auth.signIn.method.email-otp.verifyFailed":`驗證碼錯誤,請再試一次。`,"auth.signIn.method.email-otp.back":`用其他 email`,"auth.signIn.method.magic-link.body":`我們會寄一個一鍵登入連結給你。`,"auth.signIn.method.magic-link.emailLabel":`電子郵件`,"auth.signIn.method.magic-link.emailPlaceholder":`you@example.com`,"auth.signIn.method.magic-link.sendButton":`寄送登入連結`,"auth.signIn.method.magic-link.sendFailed":`連結寄送失敗,請確認 email 後重試。`,"auth.signIn.method.magic-link.sentTo":`已將登入連結寄到 {email}。`,"auth.signIn.method.magic-link.clickHint":`請點 email 裡的連結完成登入。連結很快會過期。`,"auth.signIn.method.magic-link.anotherEmail":`用其他 email`,"common.signOut":`登出`,"common.contentAdmin":`內容管理後台`,"common.viewSite":`查看網站`,"common.copy":`複製`,"common.open":`開啟`,"common.failedToLoad":`載入失敗`,"common.unknownError":`發生未知錯誤`,"common.signedIn":`已登入`,"common.close":`關閉`,"common.skipToMain":`跳到主要內容`,"common.breadcrumb":`導覽路徑`,"common.toggleSidebar":`切換側邊欄`,"common.mobileSidebar":`網站導覽`,"common.mobileSidebarDescription":`網站管理導覽`,"common.saved":`已儲存`,"common.unsavedChanges":`尚未儲存的變更`,"console.eyebrow":`網站管理`,"console.description":`在這裡管理 {title} 的內容與營運資料。支援 MCP 的 agent 也能與你並行協作。`,"console.descriptionFallback":`在這裡管理這個網站的內容與營運資料。支援 MCP 的 agent 也能與你並行協作。`,"console.connector.title":`把 Claude 連接到管理後台`,"console.connector.body":`授權 Claude 協助管理這個網站的內容與營運資料。`,"console.connector.step1.title":`複製管理連線網址`,"console.connector.step1.body":`下一步會把這個網址貼到 Claude。`,"console.connector.step1.label":`管理連線網址`,"console.connector.step2.title":`新增自訂 connector`,"console.connector.step2.body":`開啟 Claude Customize,命名 connector,再貼上網址。`,"console.connector.step2.action":`開啟 Claude Customize`,"console.connector.step3.title":`登入並開始使用`,"console.connector.step3.body":`使用網站管理員帳號完成授權,之後即可請 Claude 協助管理這個網站。`,"console.connector.step3.action":`前往 Claude`,"console.collections.title":`資料集合`,"console.collections.emptyTitle":`尚未定義 collections`,"console.collections.emptyBody":`還沒有任何資料集合。可以從範本開始,或請你的 agent 建立第一個。`,"collection.breadcrumb":`內容清單`,"collection.create":`新增`,"collection.availableLanguage":`已有 {language}({locale})`,"collection.missingLanguage":`缺少 {language}({locale})`,"collection.moreLanguages":`{count} 個`,"collection.schemaDetails":`Schema 說明`,"collection.searchPlaceholder":`搜尋 ID 或可搜尋欄位...`,"collection.search":`搜尋`,"collection.pagination":`資料分頁`,"collection.previousPage":`上一頁`,"collection.nextPage":`下一頁`,"collection.filter.all":`全部`,"collection.empty.title":`目前沒有資料`,"collection.empty.search":`沒有符合「{search}」的資料。`,"collection.empty.withStatus":`{collection} 目前沒有 {status} 資料。`,"collection.empty.all":`{collection} 目前沒有資料。`,"collection.refreshing":`清單更新中...`,"collection.export":`匯出 CSV`,"collection.copyId":`複製完整 ID`,"collection.table.id":`ID`,"collection.table.title":`標題`,"collection.table.status":`狀態`,"collection.table.locale":`語言`,"collection.table.version":`版本`,"collection.table.updated":`更新時間`,"collection.table.actions":`操作`,"collection.table.selectAll":`選取這一頁的所有項目`,"collection.table.selectRow":`選取 {name}`,"rowActions.menuLabel":`資料列操作`,"rowActions.cancel":`取消`,"collection.untitled":`(未命名)`,"collection.bulk.selectedCount":`已選取 {count} 筆`,"collection.bulk.publish":`發布`,"collection.bulk.unpublish":`下架`,"collection.bulk.delete":`刪除`,"collection.bulk.deleteConfirm":`刪除已選取的 {count} 筆資料?這個動作無法復原。`,"crud.editTooltip":`編輯{name}。`,"crud.viewTooltip":`查看{name}。`,"crud.deleteTooltip":`刪除{name}。`,"crud.saveTitle":`儲存標題`,"crud.cancelTitle":`取消編輯`,"crud.deleteConfirm":`確定要刪除{name}?這個動作無法復原。`,"crud.saving":`儲存中...`,"entryEdit.back":`回到 {name}`,"entryEdit.body":`編輯 {name} 的內容,相關資料會自動帶出。`,"entryEdit.parent":`父層:{name}`,"entryEdit.save":`儲存變更`,"entryEdit.saveTooltip":`儲存這筆資料。`,"entryEdit.fields":`資料欄位`,"entryEdit.meta":`資料資訊`,"entryEdit.noChildEntries":`目前沒有符合這筆資料的子資料。`,"entryEdit.relationship":`透過子欄位 {child} 對應父欄位 {parent}。`,"entryEdit.addItem":`新增項目`,"entryEdit.removeItem":`移除項目`,"entryEdit.emptyOption":`無值`,"entryEdit.boolean":`啟用`,"entryEdit.operationalHint":`系統寫入的資料——手動修改可能在下次同步時被覆蓋。`,"entryEdit.unlockOperational":`解鎖編輯`,"entryEdit.readOnlyHint":`此資料由程序管理,請使用列上的可用操作進行變更。`,"entryEdit.contentLanguage":`內容語言`,"entryEdit.selectLanguage":`選擇語言`,"entryEdit.languageLocked":`儲存後不能直接更改語言,請開啟或建立另一筆翻譯。`,"entryEdit.languageTabs":`內容語言`,"entryEdit.sharedFields":`共用欄位`,"entryEdit.saveSharedFirst":`請先儲存共用欄位,再新增翻譯。`,"settings.page.title":`網站設定`,"settings.page.body":`管理後台名稱、網站預設資訊與訪客分析。`,"settings.tabsLabel":`網站設定分頁`,"settings.tab.brand":`一般`,"settings.tab.tracking":`分析`,"settings.brandSection":`網站識別`,"settings.brandSectionBody":`這些預設值會用於管理後台與 Mantle 產生的前台頁面。`,"settings.siteBrand":`後台名稱`,"settings.siteBrandHelp":`顯示在管理後台側欄與登入畫面,不會取代公開頁面的標題。`,"settings.siteTitle":`預設頁面標題`,"settings.siteTitleHelp":`頁面沒有自己的標題時使用,也是預設的 SEO 網站名稱。`,"settings.siteDescription":`預設網站描述`,"settings.siteDescriptionHelp":`頁面沒有自己的描述時,作為 SEO 與分享摘要。`,"settings.trackingSection":`訪客分析`,"settings.trackingSectionBody":`選填。儲存有效 ID 後,Mantle 會在產生的前台 HTML 自動加入標準追蹤碼。`,"settings.notConfigured":`尚未設定`,"settings.ga4MeasurementId":`GA4 Measurement ID`,"settings.ga4MeasurementIdHelp":`留空即停用。只填入 G-XXXXXXXXXX 形式的 ID,不要貼整段 gtag script。`,"settings.facebookPixelId":`Facebook Pixel ID`,"settings.facebookPixelIdHelp":`留空即停用。只填入數字 Pixel ID,Mantle 會產生標準 base code。`,"nav.home":`首頁`,"nav.overview":`總覽`,"nav.model":`資料模型`,"nav.logic":`業務邏輯`,"nav.docs":`介面文件`,"nav.build":`產品結構`,"nav.content":`內容`,"nav.operations":`營運資料`,"nav.media":`媒體庫`,"nav.more":`更多`,"nav.settings":`設定`,"nav.staff":`後台使用者`,"nav.members":`會員管理`,"nav.reports":`報表`,"nav.localizedContent":`包含多語內容`,"common.yes":`是`,"common.no":`否`,"model.title":`資料模型`,"model.schemas":`資料結構`,"model.views":`資料檢視`,"model.objects":`資料模型物件`,"model.search":`搜尋資料模型`,"model.fields":`欄位`,"model.path":`路徑`,"model.type":`型別`,"model.required":`必填`,"model.constraints":`限制`,"model.noFields":`未宣告任何物件欄位。`,"model.rawSchema":`JSON 結構`,"model.rawQuery":`查詢計畫`,"model.queryKind":`查詢`,"model.source":`來源`,"model.allFields":`全部欄位`,"model.order":`排序`,"model.limit":`筆數上限`,"model.dialect":`語法`,"model.filter":`篩選條件`,"model.params":`查詢參數`,"model.relationships":`關聯`,"model.references":`此項目引用`,"model.referencedBy":`引用此項目`,"model.noRelations":`未宣告 manifest 關聯。`,"model.openGraph":`在關係圖中顯示`,"model.openDeclaration":`開啟 manifest 宣告位置`,"model.manifest":`Manifest 定義`,"model.compiledManifest":`編譯後的 Manifest`,"model.marker.reference":`引用 {target}`,"model.marker.translationParent":`連結至翻譯母表 {target}`,"model.marker.translationChild":`翻譯子表 {target} 連結至此欄位`,"model.marker.unique":`唯一索引 UQ{index}:{fields}`,"model.marker.index":`索引 IDX{index}:{fields}`,"logic.title":`業務邏輯`,"logic.objects":`業務邏輯物件`,"logic.search":`搜尋業務邏輯`,"logic.triggers":`觸發器`,"logic.procedures":`程序`,"logic.overview":`總覽`,"logic.contract":`輸入輸出`,"logic.configuration":`設定`,"logic.contractFrom":`此入口使用 {target} 宣告的輸入輸出合約。`,"logic.input":`輸入`,"logic.output":`輸出`,"logic.noContract":`找不到目標程序的輸入輸出合約。`,"logic.execution":`執行路徑`,"logic.target":`目標程序`,"logic.authorization":`存取條件`,"logic.noAuthorization":`未宣告存取條件。`,"logic.guard":`守衛程序`,"logic.method":`請求方法`,"docs.title":`API 與 Agent 介面`,"docs.intro":`由 RuntimePlan 投影出的 HTTP、MCP 與瀏覽器 WebMCP 入口文件。`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`HTTP 觸發器與自動公開的資料檢視路由。`,"docs.mcpIntro":`由資料檢視與明確宣告的 MCP 觸發器投影成工具;實際呼叫時仍會執行授權。`,"docs.webmcpIntro":`此伺服器端綁定會透過 HTTP 發現公開資料檢視,並註冊成唯讀瀏覽器工具;每個資料檢視仍保留自己的存取規則。`,"docs.publicEndpoint":`公開端點`,"docs.staffEndpoint":`Staff 端點`,"docs.catalogEndpoint":`探索目錄`,"docs.target":`目標`,"docs.inputSchema":`輸入格式`,"docs.outputSchema":`輸出格式`,"docs.readOnly":`唯讀`,"docs.noEntries":`此介面沒有宣告任何入口。`,"docs.webmcpNote":`公開程序工具仍由 MCP 提供;伺服器端 WebMCP HTTP 包裝器只註冊公開資料檢視。`,"logic.surface":`服務範圍`,"logic.hooks":`事件`,"logic.errorPolicy":`錯誤處理`,"developer.graph.title":`Manifest 關係圖`,"developer.graph.details":`項目詳細資料`,"developer.graph.openModel":`在資料模型中開啟`,"developer.graph.openLogic":`開啟業務邏輯詳細資料`,"developer.graph.relayout":`自動排版`,"developer.graph.previous":`上一步`,"developer.graph.next":`下一步`,"developer.graph.step":`第 {current} 步,共 {total} 步`,"developer.graph.comesFrom":`從這裡來`,"developer.graph.continuesTo":`接著到這裡`,"developer.graph.manifestSource":`Manifest 來源`,"developer.graph.builtin":`內建處理器`,"developer.graph.kind.schema":`資料結構`,"developer.graph.kind.view":`資料檢視`,"developer.graph.kind.procedure":`程序`,"developer.graph.kind.trigger":`觸發器`,"developer.graph.fact.audience":`使用者`,"developer.graph.fact.transport":`入口`,"developer.graph.fact.handler":`處理方式`,"developer.graph.fact.operation":`操作`,"developer.graph.fact.schema":`資料模型`,"developer.graph.fact.match":`比對欄位`,"developer.graph.summary.trigger":`{audience}請求透過 {transport} 進入,接著執行 {target}。`,"developer.graph.summary.builtin":`以內建 {op} 操作寫入 {schema}。`,"developer.graph.summary.ref":`此程序執行已註冊的程式處理器 {ref}。`,"developer.graph.summary.view":`提供給{audience}的唯讀檢視,資料來自 {target}。`,"developer.graph.summary.schema":`有 {incoming} 個項目使用此資料模型;它引用 {outgoing} 個其他項目。`,"developer.graph.audience.public":`公開`,"developer.graph.audience.members":`會員`,"developer.graph.audience.staff":`管理人員`,"developer.graph.audience.system":`系統`,"developer.graph.audience.apiClients":`API 用戶端`,"developer.graph.audienceDescription.public":`不需登入即可使用。`,"developer.graph.audienceDescription.members":`任何已登入會員皆可使用,不需具備站台角色。`,"developer.graph.audienceDescription.staff":`具協作者、編輯者或擁有者站台角色的已登入會員。管理人員是權限層級,不是另一種管理員帳號。`,"developer.graph.audienceDescription.system":`由生命週期、佇列或排程事件自動執行。`,"developer.graph.audienceDescription.apiClients":`需由已驗證的 API 用戶端或具備對應權限範圍的請求使用。`,"developer.graph.relation.translationParent":`翻譯至`,"developer.graph.relation.schemaReference":`引用`,"developer.graph.relation.viewSource":`讀取自`,"developer.graph.relation.guard":`由此守衛`,"developer.graph.relation.procedureSchema":`處理資料結構`,"developer.graph.relation.collectionAction":`作用於`,"developer.graph.relation.inputReference":`引用`,"developer.graph.relation.triggerTarget":`呼叫`,"developer.graph.relation.lifecycleSource":`監看生命週期`,"ops.run":`執行`,"ops.running":`執行中...`,"views.page.body":`{schema} 的唯讀報表。`,"views.publicService":`公開服務`,"views.publicServices":`公開服務`,"views.openInAdmin":`在管理後台開啟`,"views.staffReport":`Staff 報表`,"views.publicBody":`由 {schema} 支援的公開 API 即時 Admin 預覽。`,"views.params.title":`查詢參數`,"views.run":`查詢`,"views.running":`查詢中...`,"views.empty.title":`沒有資料`,"views.empty.body":`目前的條件下沒有資料。`,"views.notFound.title":`找不到這個 View`,"staff.page.title":`後台使用者`,"staff.page.body":`可使用 Email 邀請,或請使用者先登入網站,再到「會員管理」授予後台權限。只有網站擁有者可以變更權限。`,"staff.invite.title":`邀請協作者`,"staff.invite.emailLabel":`Email`,"staff.invite.emailPlaceholder":`teammate@example.com`,"staff.invite.roleLabel":`角色`,"staff.invite.button":`建立邀請`,"staff.invite.sending":`邀請中…`,"staff.invite.revoke":`撤銷`,"staff.invite.hint":`對方使用相同 Email 登入後,就會加入團隊。`,"staff.emailSetup.title":`尚未開啟 Email 登入`,"staff.emailSetup.body":`若要開啟 Email 登入,請將設定指引交給 coding agent,連接交易型寄信服務並重新部署網站。`,"staff.emailSetup.copy":`複製設定步驟`,"staff.emailSetup.copied":`已複製`,"staff.emailSetup.guide":`Cloudflare 指南`,"staff.table.name":`姓名`,"staff.table.email":`Email`,"staff.table.status":`狀態/登入方式`,"staff.table.role":`角色`,"staff.role.owner":`擁有者`,"staff.role.owner.help":`可管理所有功能,包含設定與團隊權限。`,"staff.role.editor":`編輯者`,"staff.role.editor.help":`可管理內容、發布、站務操作與媒體。`,"staff.role.contributor":`協作者`,"staff.role.contributor.help":`只能建立與編輯草稿。`,"staff.role.none":`無角色`,"staff.badge.invited":`邀請中`,"staff.status.emailSignIn":`Email 登入`,"staff.self":`你自己`,"members.page.title":`會員管理`,"members.page.body":`曾登入網站且沒有管理後台權限的會員。`,"members.searchPlaceholder":`搜尋姓名或 Email...`,"members.search":`搜尋`,"members.table.name":`姓名`,"members.table.email":`Email`,"members.table.status":`狀態`,"members.table.joined":`加入時間`,"members.table.teamAccess":`團隊權限`,"members.promote":`授予後台權限`,"members.verified":`已驗證`,"members.unverified":`未驗證`,"members.empty.title":`目前沒有會員`,"members.empty.body":`使用者登入網站後會顯示在這裡。`,"members.emptySearch.title":`找不到相符會員`,"members.emptySearch.body":`請改用其他姓名或 Email 搜尋。`,"members.pagination":`會員分頁`,"members.previousPage":`上一頁`,"members.nextPage":`下一頁`,"status.draft":`草稿`,"status.published":`已發布`,"status.archived":`已封存`,"preferences.heading":`偏好設定`,"preferences.language":`後台語言`,"preferences.language.search":`搜尋語言...`,"preferences.language.noResults":`找不到語言。`,"preferences.direction":`文字方向`,"preferences.direction.auto":`文字方向會跟隨選擇的語言。`,"preferences.appearance":`外觀`,"preferences.light":`淺色`,"preferences.dark":`深色`,"preferences.system":`跟隨系統`,"preferences.ltr":`左到右`,"preferences.rtl":`右到左`,"preferences.page.title":`個人偏好`,"preferences.page.body":`這些偏好只保存在這個瀏覽器,只影響 admin console,不會改動站台設定。`,"preferences.page.languageBody":`選擇系統頁與 admin chrome 使用的語言。`,"preferences.page.appearanceBody":`選擇淺色、深色,或跟隨作業系統。`,"preferences.page.open":`個人偏好`,"system.notFound.title":`找不到頁面`,"system.notFound.body":`沒有 view 註冊在`,"system.notFound.back":`回首頁`,"editor.page.title":`內容編輯器`,"editor.page.body":`在交給 agent 或發布流程之前,先用 Markdown、HTML 或 Rich Editor 編輯內容草稿。`,"editor.mode.markdown":`Markdown`,"editor.mode.html":`HTML`,"editor.mode.rich":`Rich Editor`,"editor.titleLabel":`標題`,"editor.slugLabel":`Slug`,"editor.bodyLabel":`本文`,"editor.preview":`預覽`,"editor.saveDraft":`儲存草稿`,"editor.markdownHint":`支援標題、清單、連結與 fenced code blocks。`,"editor.htmlHint":`用原始碼模式編輯可信任的 HTML 片段。`,"editor.richHint":`不碰 markup 也能整理段落、提示框與內文。`,"editor.toolbar":`Rich Editor 工具列`,"editor.undo":`復原`,"editor.redo":`重做`,"editor.aiClean":`插入提示區塊`,"editor.uploadImage":`上傳圖片`,"editor.uploading":`圖片上傳中...`,"editor.textStyle":`文字樣式`,"editor.paragraph":`段落`,"editor.quote":`引言`,"editor.code":`程式碼`,"editor.headingPlaceholder":`標題`,"editor.selectedText":`選取文字`,"editor.bold":`粗體`,"editor.italic":`斜體`,"editor.underline":`底線`,"editor.strike":`刪除線`,"editor.inlineCode":`行內程式碼`,"editor.textColor":`文字顏色`,"editor.highlight":`螢光標記`,"editor.palette":`品牌色`,"editor.alignLeft":`靠左對齊`,"editor.alignCenter":`置中對齊`,"editor.alignRight":`靠右對齊`,"editor.bulletList":`項目清單`,"editor.numberList":`編號清單`,"editor.checkList":`待辦清單`,"editor.indent":`縮排`,"editor.link":`連結`,"editor.linkText":`連結文字`,"editor.table":`表格`,"editor.mediaLibrary":`媒體庫`,"editor.imageUrl":`圖片網址`,"editor.insertImage":`插入圖片`,"editor.videoUrl":`YouTube / Dailymotion 連結`,"editor.insertVideo":`插入影片`,"media.alt":`替代文字`,"media.title":`媒體庫`,"media.description":`這個網站上傳過的所有圖片。可以在內容中重複使用、整理替代文字,或刪除不需要的圖片。`,"media.upload":`上傳`,"media.uploading":`上傳中...`,"media.dropHere":`把圖片拖曳到這裡上傳`,"media.searchPlaceholder":`搜尋替代文字、說明或 id`,"media.empty.title":`還沒有圖片`,"media.empty.all":`上傳一張圖片,開始建立媒體庫。`,"media.empty.search":`沒有符合「{search}」的圖片。`,"media.noPurpose":`這個網站沒有設定上傳用途,無法上傳。`,"media.setup.title":`媒體儲存尚未啟用`,"media.setup.body":`請將設定指引交給 coding agent,為這個部署連接儲存空間並重新部署網站。`,"media.setup.cloudflare":`Cloudflare 部署使用 R2;啟用 R2 可能需要先設定帳務資料。`,"media.setup.copy":`複製設定指引`,"media.setup.copied":`已複製指引`,"media.setup.guide":`Cloudflare R2 設定`,"media.caption":`說明文字`,"media.altPlaceholder":`描述這張圖片`,"media.captionPlaceholder":`選填說明`,"media.save":`儲存`,"media.saving":`儲存中...`,"media.saved":`已儲存`,"media.delete":`刪除`,"media.deleteConfirm":`確定要刪除這張圖片嗎?所有使用到的地方都會一併移除。`,"media.open":`開啟原圖`,"media.copyId":`複製 id`,"media.uploaded":`上傳於 {date}`,"media.pick":`從媒體庫選擇`,"media.pickTitle":`選擇圖片`,"media.pickDescription":`挑一張現有圖片重複使用,或上傳新圖片。`,"media.use":`使用這張圖片`,"media.loadMore":`載入更多`,"media.uploadFailed":`{total} 張圖片中有 {count} 張上傳失敗。`,"media.capabilityMissing":`無法準備 {mime} 上傳。`,"media.variantUploadFailed":`{mime} 上傳失敗,請再試一次。`,"media.rasterOnly":`請上傳 JPEG、PNG、WebP、AVIF 或 GIF 圖片。`,"media.noRequiredVariants":`媒體政策尚未設定必要的圖片格式。`,"media.prepareFailed":`無法準備圖片上傳。`,"media.encoderUnsupported":`這個網站的媒體政策要求此瀏覽器無法產生的圖片格式({mime})。請聯絡網站開發者調整政策。`,"entryEdit.publish":`發布`,"entryEdit.publishing":`發布中...`,"entryEdit.publishTooltip":`發布這筆草稿。`,"entryEdit.publishDisabledDirty":`請先儲存變更才能發布。`,"entryEdit.publishMissingRequired":`請先完成必填欄位才能發布。`,"entryEdit.unpublish":`取消發布`,"entryEdit.unpublishing":`取消發布中...`,"entryEdit.unpublishTooltip":`將這筆資料改回草稿以便編輯。`,"entryEdit.uploadMedia":`上傳`,"entryEdit.uploadingMedia":`上傳中...`,"entryEdit.noMediaPurpose":`尚未設定媒體上傳用途。`,"ops.error.executionFailed":`操作已執行,但未能完成。`,"ops.error.detailsLabel":`顯示詳細資訊`,"ops.success":`{name} 已完成。`,"confirm.title":`確定要這麼做嗎?`,"confirm.cancel":`取消`,"confirm.confirm":`確定`,"collection.schemaSummary.lifecycleAndI18n":`管理 {name} 的項目、發布狀態與多語內容。`,"collection.schemaSummary.lifecycleOnly":`管理 {name} 的項目與發布狀態。`,"collection.schemaSummary.i18nOnly":`管理 {name} 的項目與多語內容。`,"collection.schemaSummary.plain":`管理 {name} 的項目。`,"entryEdit.mediaMissing":`這張圖片已遺失或已被刪除。`,"entryEdit.dateTime.select":`選擇日期與時間`,"entryEdit.dateTime.time":`時間`},"zh-CN":{"admin.consoleTitle":`管理后台`,"developer.workspaceTitle":`开发`,"auth.accessDenied.noStaff":`你已登录,但这个账号没有管理后台权限。`,"auth.accessDenied.askOwner":`请网站所有者将你加入团队,或登出改用其他账号。`,"auth.signIn.title":`登录`,"common.signOut":`登出`,"common.viewSite":`查看网站`,"common.contentAdmin":`内容管理`,"common.copy":`复制`,"common.open":`打开`,"common.failedToLoad":`加载失败`,"common.unknownError":`发生未知错误`,"common.signedIn":`已登录`,"common.close":`关闭`,"common.skipToMain":`跳到主要内容`,"common.breadcrumb":`导航路径`,"common.toggleSidebar":`切换侧边栏`,"common.mobileSidebar":`网站导航`,"common.mobileSidebarDescription":`网站管理导航`,"common.saved":`已保存`,"common.unsavedChanges":`尚未保存的变更`,"console.eyebrow":`网站管理`,"console.description":`在这里管理 {title} 的内容与运营数据。支持 MCP 的 agent 也能与你并行协作。`,"console.descriptionFallback":`在这里管理这个网站的内容与运营数据。支持 MCP 的 agent 也能与你并行协作。`,"console.connector.title":`把 Claude 连接到管理后台`,"console.connector.body":`授权 Claude 协助管理这个网站的内容与运营数据。`,"console.connector.step1.title":`复制管理连接网址`,"console.connector.step1.body":`下一步会把这个网址粘贴到 Claude。`,"console.connector.step1.label":`管理连接网址`,"console.connector.step2.title":`添加自定义 connector`,"console.connector.step2.body":`打开 Claude Customize,命名 connector,再粘贴网址。`,"console.connector.step2.action":`打开 Claude Customize`,"console.connector.step3.title":`登录并开始使用`,"console.connector.step3.body":`使用网站管理员账号完成授权,之后即可请 Claude 协助管理这个网站。`,"console.connector.step3.action":`前往 Claude`,"console.collections.title":`数据集合`,"collection.breadcrumb":`内容清单`,"collection.create":`新增`,"collection.availableLanguage":`已有 {language}({locale})`,"collection.missingLanguage":`缺少 {language}({locale})`,"collection.moreLanguages":`{count} 个`,"collection.filter.all":`全部`,"collection.table.title":`标题`,"collection.table.status":`状态`,"collection.table.locale":`语言`,"collection.table.version":`版本`,"collection.table.updated":`更新时间`,"collection.table.actions":`操作`,"rowActions.menuLabel":`数据行操作`,"rowActions.cancel":`取消`,"collection.untitled":`(未命名)`,"collection.searchPlaceholder":`搜索 ID 或可搜索字段...`,"collection.search":`搜索`,"collection.pagination":`资料分页`,"collection.previousPage":`上一页`,"collection.nextPage":`下一页`,"collection.empty.title":`目前没有资料`,"collection.empty.search":`没有符合“{search}”的资料。`,"collection.empty.withStatus":`{collection} 目前没有 {status} 资料。`,"collection.empty.all":`{collection} 目前没有资料。`,"collection.refreshing":`列表更新中...`,"collection.export":`导出 CSV`,"collection.copyId":`复制完整 ID`,"collection.table.id":`ID`,"collection.table.selectAll":`选取本页所有项目`,"collection.table.selectRow":`选取 {name}`,"collection.bulk.selectedCount":`已选取 {count} 笔`,"collection.bulk.publish":`发布`,"collection.bulk.unpublish":`下架`,"collection.bulk.delete":`删除`,"collection.bulk.deleteConfirm":`删除已选取的 {count} 笔资料?这个动作无法复原。`,"crud.editTooltip":`编辑{name}。`,"crud.viewTooltip":`查看{name}。`,"crud.deleteTooltip":`删除{name}。`,"crud.saveTitle":`保存标题`,"crud.cancelTitle":`取消编辑`,"crud.deleteConfirm":`确定要删除{name}?这个动作无法复原。`,"crud.saving":`保存中...`,"entryEdit.back":`回到 {name}`,"entryEdit.body":`编辑 {name} 的内容,相关资料会自动带出。`,"entryEdit.parent":`父层:{name}`,"entryEdit.save":`保存变更`,"entryEdit.saveTooltip":`保存这笔资料。`,"entryEdit.fields":`资料字段`,"entryEdit.meta":`资料信息`,"entryEdit.noChildEntries":`目前没有符合这笔资料的子资料。`,"entryEdit.relationship":`透过子字段 {child} 对应父字段 {parent}。`,"entryEdit.addItem":`新增项目`,"entryEdit.removeItem":`移除项目`,"entryEdit.emptyOption":`无值`,"entryEdit.boolean":`启用`,"entryEdit.operationalHint":`系统写入的资料——手动修改可能在下次同步时被覆盖。`,"entryEdit.unlockOperational":`解锁编辑`,"entryEdit.readOnlyHint":`此资料由程序管理,请使用行上的可用操作进行变更。`,"entryEdit.contentLanguage":`内容语言`,"entryEdit.selectLanguage":`选择语言`,"entryEdit.languageLocked":`保存后不能直接更改语言,请打开或创建另一笔翻译。`,"entryEdit.languageTabs":`内容语言`,"entryEdit.sharedFields":`共用字段`,"entryEdit.saveSharedFirst":`请先保存共用字段,再新增翻译。`,"settings.page.title":`网站设置`,"settings.page.body":`管理后台名称、网站默认信息与访客分析。`,"settings.tabsLabel":`网站设置分页`,"settings.tab.brand":`一般`,"settings.tab.tracking":`分析`,"settings.brandSection":`网站识别`,"settings.brandSectionBody":`这些默认值会用于管理后台与 Mantle 生成的前台页面。`,"settings.siteBrand":`后台名称`,"settings.siteBrandHelp":`显示在管理后台侧栏与登录页面,不会取代公开页面标题。`,"settings.siteTitle":`默认页面标题`,"settings.siteTitleHelp":`页面没有自己的标题时使用,也是默认 SEO 网站名称。`,"settings.siteDescription":`默认网站描述`,"settings.siteDescriptionHelp":`页面没有自己的描述时,作为 SEO 与分享摘要。`,"settings.trackingSection":`访客分析`,"settings.trackingSectionBody":`选填。保存有效 ID 后,Mantle 会在生成的前台 HTML 自动加入标准追踪码。`,"settings.notConfigured":`尚未设置`,"settings.ga4MeasurementId":`GA4 Measurement ID`,"settings.ga4MeasurementIdHelp":`留空即停用。只填入 G-XXXXXXXXXX 形式的 ID,不要贴整段 gtag script。`,"settings.facebookPixelId":`Facebook Pixel ID`,"settings.facebookPixelIdHelp":`留空即停用。只填入数字 Pixel ID,Mantle 会生成标准 base code。`,"nav.home":`首页`,"nav.overview":`总览`,"nav.model":`数据模型`,"nav.logic":`业务逻辑`,"nav.docs":`接口`,"nav.build":`构建`,"nav.content":`内容`,"nav.operations":`运营数据`,"nav.media":`媒体库`,"nav.more":`更多`,"nav.settings":`设置`,"nav.members":`会员`,"common.yes":`是`,"common.no":`否`,"model.title":`数据模型`,"model.schemas":`数据结构`,"model.views":`数据视图`,"model.objects":`数据模型对象`,"model.search":`搜索数据模型`,"model.fields":`字段`,"model.path":`路径`,"model.type":`类型`,"model.required":`必填`,"model.constraints":`限制`,"model.noFields":`未声明任何对象字段。`,"model.rawSchema":`JSON 结构`,"model.rawQuery":`查询计划`,"model.queryKind":`查询`,"model.source":`来源`,"model.allFields":`全部字段`,"model.order":`排序`,"model.limit":`数量上限`,"model.dialect":`语法`,"model.filter":`筛选条件`,"model.params":`查询参数`,"model.relationships":`关联`,"model.references":`此项目引用`,"model.referencedBy":`引用此项目`,"model.noRelations":`未声明 Manifest 关联。`,"model.openGraph":`在关系图中显示`,"model.openDeclaration":`打开 Manifest 声明位置`,"model.manifest":`Manifest 定义`,"model.compiledManifest":`编译后的 Manifest`,"model.marker.reference":`引用 {target}`,"model.marker.translationParent":`连接至翻译母表 {target}`,"model.marker.translationChild":`翻译子表 {target} 连接至此字段`,"model.marker.unique":`唯一索引 UQ{index}:{fields}`,"model.marker.index":`索引 IDX{index}:{fields}`,"logic.title":`业务逻辑`,"logic.objects":`业务逻辑对象`,"logic.search":`搜索业务逻辑`,"logic.triggers":`触发器`,"logic.procedures":`程序`,"logic.overview":`总览`,"logic.contract":`输入输出`,"logic.configuration":`设置`,"logic.contractFrom":`此入口使用 {target} 声明的输入输出合约。`,"logic.input":`输入`,"logic.output":`输出`,"logic.noContract":`找不到目标程序的输入输出合约。`,"logic.execution":`执行路径`,"logic.target":`目标程序`,"logic.authorization":`访问条件`,"logic.noAuthorization":`未声明访问条件。`,"logic.guard":`守卫程序`,"logic.method":`请求方法`,"docs.title":`API 与 Agent 接口`,"docs.intro":`由 RuntimePlan 投影出的 HTTP、MCP 与浏览器 WebMCP 入口文档。`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`HTTP 触发器与自动公开的数据视图路由。`,"docs.mcpIntro":`由数据视图与明确声明的 MCP 触发器投影成工具;实际调用时仍会执行授权。`,"docs.webmcpIntro":`此服务器端绑定会通过 HTTP 发现公开数据视图,并注册成只读浏览器工具;每个数据视图仍保留自己的访问规则。`,"docs.publicEndpoint":`公开端点`,"docs.staffEndpoint":`Staff 端点`,"docs.catalogEndpoint":`探索目录`,"docs.target":`目标`,"docs.inputSchema":`输入格式`,"docs.outputSchema":`输出格式`,"docs.readOnly":`只读`,"docs.noEntries":`此接口没有声明任何入口。`,"docs.webmcpNote":`公开程序工具仍由 MCP 提供;服务器端 WebMCP HTTP 包装器只注册公开数据视图。`,"logic.surface":`服务范围`,"logic.hooks":`事件`,"logic.errorPolicy":`错误处理`,"developer.graph.title":`Manifest 关系图`,"developer.graph.details":`项目详细资料`,"developer.graph.openModel":`在数据模型中查看`,"developer.graph.openLogic":`查看业务逻辑详情`,"developer.graph.relayout":`重新整理图面`,"developer.graph.previous":`上一步`,"developer.graph.next":`下一步`,"developer.graph.step":`第 {current} 步,共 {total} 步`,"developer.graph.comesFrom":`从这里进入`,"developer.graph.continuesTo":`接着到这里`,"developer.graph.manifestSource":`Manifest 来源`,"developer.graph.builtin":`内置处理器`,"developer.graph.kind.schema":`数据结构`,"developer.graph.kind.view":`数据视图`,"developer.graph.kind.procedure":`程序`,"developer.graph.kind.trigger":`触发器`,"developer.graph.fact.audience":`用户`,"developer.graph.fact.transport":`入口`,"developer.graph.fact.handler":`处理方式`,"developer.graph.fact.operation":`操作`,"developer.graph.fact.schema":`数据结构`,"developer.graph.fact.match":`触发条件`,"developer.graph.summary.trigger":`{audience}请求从 {transport} 进入,然后调用 {target}。`,"developer.graph.summary.builtin":`系统使用内置的 {op} 操作写入 {schema}。`,"developer.graph.summary.ref":`此程序执行已注册的代码处理器 {ref}。`,"developer.graph.summary.view":`提供给{audience}的只读数据视图,来源为 {target}。`,"developer.graph.summary.schema":`有 {incoming} 个项目使用此数据结构;它还引用了 {outgoing} 个项目。`,"developer.graph.audience.public":`访客`,"developer.graph.audience.members":`会员`,"developer.graph.audience.staff":`管理人员`,"developer.graph.audience.system":`系统`,"developer.graph.audience.apiClients":`API 客户端`,"developer.graph.audienceDescription.public":`无需登录即可使用。`,"developer.graph.audienceDescription.members":`任何已登录会员都可使用,不需要具备站点角色。`,"developer.graph.audienceDescription.staff":`具协作者、编辑者或所有者站点角色的已登录会员。管理人员是权限级别,不是另一种管理员账号。`,"developer.graph.audienceDescription.system":`由生命周期、队列或排程事件自动执行。`,"developer.graph.audienceDescription.apiClients":`需由已验证的 API 客户端或具备对应权限范围的请求使用。`,"developer.graph.relation.translationParent":`翻译至`,"developer.graph.relation.schemaReference":`引用`,"developer.graph.relation.viewSource":`读取自`,"developer.graph.relation.guard":`由此守卫`,"developer.graph.relation.procedureSchema":`处理数据结构`,"developer.graph.relation.collectionAction":`作用于`,"developer.graph.relation.inputReference":`引用`,"developer.graph.relation.triggerTarget":`调用`,"developer.graph.relation.lifecycleSource":`监听生命周期`,"nav.staff":`后台用户`,"nav.reports":`报表`,"nav.localizedContent":`包含多语言内容`,"ops.run":`执行`,"ops.running":`执行中...`,"views.page.body":`{schema} 的只读报表。`,"views.params.title":`查询参数`,"views.run":`查询`,"views.running":`查询中...`,"views.empty.title":`没有数据`,"views.empty.body":`当前条件下没有数据。`,"views.notFound.title":`找不到这个 View`,"staff.page.title":`后台用户`,"staff.page.body":`可使用 Email 邀请,或请用户先登录网站,再到“会员管理”授予后台权限。只有网站所有者可以更改权限。`,"staff.invite.title":`邀请协作者`,"staff.invite.hint":`对方使用相同 Email 登录后,就会加入团队。`,"staff.emailSetup.title":`尚未开启 Email 登录`,"staff.emailSetup.body":`若要开启 Email 登录,请将设置指引交给 coding agent,连接事务型邮件服务并重新部署网站。`,"staff.emailSetup.copy":`复制设置步骤`,"staff.emailSetup.copied":`已复制`,"staff.emailSetup.guide":`Cloudflare 指南`,"staff.role.owner":`所有者`,"staff.role.owner.help":`可管理所有功能,包括设置与团队权限。`,"staff.role.editor":`编辑者`,"staff.role.editor.help":`可管理内容、发布、站务操作与媒体。`,"staff.role.contributor":`协作者`,"staff.role.contributor.help":`只能创建和编辑草稿。`,"members.table.teamAccess":`团队权限`,"members.promote":`授予后台权限`,"status.draft":`草稿`,"status.published":`已发布`,"status.archived":`已归档`,"preferences.heading":`偏好设置`,"preferences.language":`后台语言`,"preferences.language.search":`搜索语言...`,"preferences.language.noResults":`找不到语言。`,"preferences.direction":`文字方向`,"preferences.direction.auto":`文字方向会跟随选择的语言。`,"preferences.appearance":`外观`,"preferences.light":`浅色`,"preferences.dark":`深色`,"preferences.system":`跟随系统`,"preferences.ltr":`从左到右`,"preferences.rtl":`从右到左`,"preferences.page.open":`个人偏好`,"preferences.page.title":`个人偏好`,"preferences.page.body":`这些偏好只保存在此浏览器,只影响 admin console,不会修改站点设置。`,"preferences.page.languageBody":`选择系统页面和 admin chrome 使用的语言。`,"preferences.page.appearanceBody":`选择浅色、深色,或跟随操作系统。`,"editor.page.title":`内容编辑器`,"editor.page.body":`在交给 agent 或发布流程前,先用 Markdown、HTML 或 Rich Editor 编辑内容草稿。`,"editor.mode.markdown":`Markdown`,"editor.mode.html":`HTML`,"editor.mode.rich":`Rich Editor`,"editor.titleLabel":`标题`,"editor.slugLabel":`Slug`,"editor.bodyLabel":`正文`,"editor.preview":`预览`,"editor.saveDraft":`保存草稿`,"editor.markdownHint":`支持标题、列表、链接与 fenced code blocks。`,"editor.htmlHint":`用源码模式编辑可信任的 HTML 片段。`,"editor.richHint":`不用碰 markup 也能整理段落、提示框与内文。`,"editor.toolbar":`Rich Editor 工具栏`,"editor.undo":`撤销`,"editor.redo":`重做`,"editor.aiClean":`插入提示区块`,"editor.uploadImage":`上传图片`,"editor.uploading":`图片上传中...`,"editor.textStyle":`文字样式`,"editor.paragraph":`段落`,"editor.quote":`引用`,"editor.code":`代码`,"editor.headingPlaceholder":`标题`,"editor.selectedText":`选取文字`,"editor.bold":`粗体`,"editor.italic":`斜体`,"editor.underline":`下划线`,"editor.strike":`删除线`,"editor.inlineCode":`行内代码`,"editor.textColor":`文字颜色`,"editor.highlight":`高亮标记`,"editor.palette":`品牌色`,"editor.alignLeft":`左对齐`,"editor.alignCenter":`居中对齐`,"editor.alignRight":`右对齐`,"editor.bulletList":`项目列表`,"editor.numberList":`编号列表`,"editor.checkList":`待办列表`,"editor.indent":`缩进`,"editor.link":`链接`,"editor.linkText":`链接文字`,"editor.table":`表格`,"editor.mediaLibrary":`媒体库`,"editor.imageUrl":`图片网址`,"editor.insertImage":`插入图片`,"editor.videoUrl":`YouTube / Dailymotion 链接`,"editor.insertVideo":`插入视频`,"media.alt":`替代文字`,"media.title":`媒体库`,"media.description":`这个网站上传过的所有图片。可以在内容中重复使用、整理替代文字,或删除不需要的图片。`,"media.upload":`上传`,"media.uploading":`上传中...`,"media.dropHere":`把图片拖到这里上传`,"media.searchPlaceholder":`搜索替代文字、说明或 id`,"media.empty.title":`还没有图片`,"media.empty.all":`上传一张图片,开始建立媒体库。`,"media.empty.search":`没有符合“{search}”的图片。`,"media.noPurpose":`这个网站没有设置上传用途,无法上传。`,"media.setup.title":`媒体存储尚未启用`,"media.setup.body":`请将设置指引交给 coding agent,为这个部署连接存储空间并重新部署网站。`,"media.setup.cloudflare":`Cloudflare 部署使用 R2;启用 R2 可能需要先设置账务信息。`,"media.setup.copy":`复制设置指引`,"media.setup.copied":`已复制指引`,"media.setup.guide":`Cloudflare R2 设置`,"media.caption":`说明文字`,"media.altPlaceholder":`描述这张图片`,"media.captionPlaceholder":`选填说明`,"media.save":`保存`,"media.saving":`保存中...`,"media.saved":`已保存`,"media.delete":`删除`,"media.deleteConfirm":`确定要删除这张图片吗?所有使用到的地方都会一并移除。`,"media.open":`打开原图`,"media.copyId":`复制 id`,"media.uploaded":`上传于 {date}`,"media.pick":`从媒体库选择`,"media.pickTitle":`选择图片`,"media.pickDescription":`挑一张现有图片重复使用,或上传新图片。`,"media.use":`使用这张图片`,"media.loadMore":`加载更多`,"media.uploadFailed":`{total} 张图片中有 {count} 张上传失败。`,"media.capabilityMissing":`无法准备 {mime} 上传。`,"media.variantUploadFailed":`{mime} 上传失败,请重试。`,"media.rasterOnly":`请上传 JPEG、PNG、WebP、AVIF 或 GIF 图片。`,"media.noRequiredVariants":`媒体策略尚未设置必要的图片格式。`,"media.prepareFailed":`无法准备图片上传。`,"media.encoderUnsupported":`这个网站的媒体政策要求此浏览器无法生成的图片格式({mime})。请联系网站开发者调整政策。`,"entryEdit.publish":`发布`,"entryEdit.publishing":`发布中...`,"entryEdit.publishTooltip":`发布这笔草稿。`,"entryEdit.publishDisabledDirty":`请先保存变更才能发布。`,"entryEdit.publishMissingRequired":`请先完成必填字段才能发布。`,"entryEdit.unpublish":`取消发布`,"entryEdit.unpublishing":`取消发布中...`,"entryEdit.unpublishTooltip":`将这笔资料改回草稿以便编辑。`,"ops.error.executionFailed":`操作已执行,但未能完成。`,"ops.error.detailsLabel":`显示详细信息`,"ops.success":`{name} 已完成。`,"confirm.title":`确定要这么做吗?`,"confirm.cancel":`取消`,"confirm.confirm":`确定`,"collection.schemaSummary.lifecycleAndI18n":`管理 {name} 的项目、发布状态与多语内容。`,"collection.schemaSummary.lifecycleOnly":`管理 {name} 的项目与发布状态。`,"collection.schemaSummary.i18nOnly":`管理 {name} 的项目与多语内容。`,"collection.schemaSummary.plain":`管理 {name} 的项目。`,"entryEdit.mediaMissing":`这张图片已丢失或已被删除。`,"entryEdit.dateTime.select":`选择日期与时间`,"entryEdit.dateTime.time":`时间`},de:{"admin.consoleTitle":`Admin-Konsole`,"developer.workspaceTitle":`Entwicklung`,"auth.signIn.title":`Anmelden`,"common.signOut":`Abmelden`,"common.viewSite":`Website ansehen`,"common.copy":`Kopieren`,"common.open":`Öffnen`,"common.failedToLoad":`Laden fehlgeschlagen`,"common.signedIn":`Angemeldet`,"common.contentAdmin":`Inhaltsverwaltung`,"common.close":`Schließen`,"common.skipToMain":`Zum Hauptinhalt springen`,"common.breadcrumb":`Brotkrümelnavigation`,"common.toggleSidebar":`Seitenleiste umschalten`,"common.mobileSidebar":`Navigation`,"common.mobileSidebarDescription":`Navigation der Website-Verwaltung`,"collection.filter.all":`Alle`,"nav.home":`Start`,"nav.overview":`Übersicht`,"nav.model":`Datenmodell`,"nav.logic":`Logik`,"nav.docs":`Schnittstellen`,"nav.build":`Build`,"nav.content":`Inhalte`,"nav.operations":`Datensätze`,"nav.media":`Medienbibliothek`,"nav.more":`Mehr`,"nav.settings":`Einstellungen`,"nav.staff":`Admin-Benutzer`,"nav.members":`Mitglieder`,"nav.reports":`Berichte`,"nav.localizedContent":`Enthält lokalisierte Inhalte`,"common.yes":`Ja`,"common.no":`Nein`,"model.title":`Datenmodell`,"model.schemas":`Schemas`,"model.views":`Ansichten`,"model.objects":`Datenmodellobjekte`,"model.search":`Datenmodell durchsuchen`,"model.fields":`Felder`,"model.path":`Pfad`,"model.type":`Typ`,"model.required":`Erforderlich`,"model.constraints":`Einschränkungen`,"model.noFields":`Es sind keine Objekteigenschaften deklariert.`,"model.rawSchema":`JSON-Schema`,"model.rawQuery":`Abfrageplan`,"model.queryKind":`Abfrage`,"model.source":`Quelle`,"model.allFields":`Alle Felder`,"model.order":`Reihenfolge`,"model.limit":`Limit`,"model.dialect":`Dialekt`,"model.filter":`Filter`,"model.params":`Parameter`,"model.relationships":`Beziehungen`,"model.references":`Dieses Element verweist auf`,"model.referencedBy":`Verweist auf dieses Element`,"model.noRelations":`Keine Manifest-Beziehungen deklariert.`,"model.openGraph":`Im Graph anzeigen`,"model.openDeclaration":`Manifest-Deklaration öffnen`,"model.manifest":`Manifest`,"model.compiledManifest":`Kompiliertes Manifest`,"model.marker.reference":`Verweis auf {target}`,"model.marker.translationParent":`Übersetzungsverknüpfung zum übergeordneten Element {target}`,"model.marker.translationChild":`Übersetzungsverknüpfung vom untergeordneten Element {target}`,"model.marker.unique":`Eindeutiger Index UQ{index}: {fields}`,"model.marker.index":`Index IDX{index}: {fields}`,"logic.title":`Logik`,"logic.objects":`Logikobjekte`,"logic.search":`Logik durchsuchen`,"logic.triggers":`Trigger`,"logic.procedures":`Prozeduren`,"logic.overview":`Übersicht`,"logic.contract":`Vertrag`,"logic.configuration":`Konfiguration`,"logic.contractFrom":`Dieser Einstiegspunkt verwendet den von {target} deklarierten Vertrag.`,"logic.input":`Eingabe`,"logic.output":`Ausgabe`,"logic.noContract":`Für die Zielprozedur ist kein Vertrag verfügbar.`,"logic.execution":`Ausführungspfad`,"logic.target":`Zielprozedur`,"logic.authorization":`Autorisierung`,"logic.noAuthorization":`Es sind keine Autorisierungsbedingungen deklariert.`,"logic.guard":`Wächterprozedur`,"logic.method":`Methode`,"logic.surface":`Oberfläche`,"logic.hooks":`Hooks`,"logic.errorPolicy":`Fehlerrichtlinie`,"docs.title":`API- und Agentenschnittstellen`,"docs.intro":`Aus RuntimePlan abgeleitete Referenz für HTTP-, MCP- und Browser-WebMCP-Einstiegspunkte.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`HTTP-Trigger und automatisch veröffentlichte Routen öffentlicher Ansichten.`,"docs.mcpIntro":`Aus Ansichten und expliziten MCP-Triggern erzeugte Werkzeuge. Die Autorisierung wird bei der Ausführung weiterhin geprüft.`,"docs.webmcpIntro":`Diese servergestützte Anbindung erkennt öffentliche Ansichten über HTTP und registriert sie als schreibgeschützte Browser-Werkzeuge. Jede Ansicht behält ihre eigenen Zielgruppenregeln.`,"docs.publicEndpoint":`Öffentlicher Endpunkt`,"docs.staffEndpoint":`Mitarbeiter-Endpunkt`,"docs.catalogEndpoint":`Erkennungskatalog`,"docs.target":`Ziel`,"docs.inputSchema":`Eingabeschema`,"docs.outputSchema":`Ausgabeschema`,"docs.readOnly":`Schreibgeschützt`,"docs.noEntries":`Für diese Schnittstelle sind keine Einstiegspunkte deklariert.`,"docs.webmcpNote":`Öffentliche Prozedurwerkzeuge bleiben über MCP verfügbar. Der servergestützte WebMCP-HTTP-Wrapper registriert absichtlich nur öffentliche Ansichten.`,"developer.graph.title":`Manifest-Graph`,"developer.graph.details":`Elementdetails`,"developer.graph.openModel":`Im Datenmodell öffnen`,"developer.graph.openLogic":`Logikdetails öffnen`,"developer.graph.relayout":`Automatisch anordnen`,"developer.graph.previous":`Vorheriger Schritt`,"developer.graph.next":`Nächster Schritt`,"developer.graph.step":`Schritt {current} von {total}`,"developer.graph.comesFrom":`Kommt von`,"developer.graph.continuesTo":`Weiter zu`,"developer.graph.manifestSource":`Manifest-Quelle`,"developer.graph.builtin":`Integriert`,"developer.graph.kind.schema":`Schema`,"developer.graph.kind.view":`Ansicht`,"developer.graph.kind.procedure":`Prozedur`,"developer.graph.kind.trigger":`Trigger`,"developer.graph.fact.audience":`Zielgruppe`,"developer.graph.fact.transport":`Transport`,"developer.graph.fact.handler":`Handler`,"developer.graph.fact.operation":`Operation`,"developer.graph.fact.schema":`Schema`,"developer.graph.fact.match":`Übereinstimmung`,"developer.graph.summary.trigger":`Anfragen von {audience} gehen über {transport} ein und werden an {target} weitergeleitet.`,"developer.graph.summary.builtin":`Eine integrierte {op}-Operation schreibt in {schema}.`,"developer.graph.summary.ref":`Diese Prozedur führt den registrierten Code-Handler {ref} aus.`,"developer.graph.summary.view":`Eine schreibgeschützte Ansicht von {target} für {audience}.`,"developer.graph.summary.schema":`{incoming} Elemente verwenden dieses Schema; es verweist auf {outgoing} weitere Elemente.`,"developer.graph.audience.public":`Öffentlich`,"developer.graph.audience.members":`Mitglieder`,"developer.graph.audience.staff":`Mitarbeiter`,"developer.graph.audience.system":`System`,"developer.graph.audience.apiClients":`API-Clients`,"developer.graph.audienceDescription.public":`Ohne Anmeldung verfügbar.`,"developer.graph.audienceDescription.members":`Jedes angemeldete Mitglied. Keine Website-Rolle erforderlich.`,"developer.graph.audienceDescription.staff":`Ein angemeldetes Mitglied mit der Website-Rolle Mitwirkender, Redakteur oder Eigentümer. Mitarbeiter ist eine Zugriffsstufe, kein separates Admin-Konto.`,"developer.graph.audienceDescription.system":`Wird automatisch durch Lebenszyklus-, Warteschlangen- oder Zeitplanereignisse ausgeführt.`,"developer.graph.audienceDescription.apiClients":`Erfordert einen authentifizierten API-Client oder passenden Geltungsbereich.`,"developer.graph.relation.translationParent":`übersetzt`,"developer.graph.relation.schemaReference":`verweist auf`,"developer.graph.relation.viewSource":`liest aus`,"developer.graph.relation.guard":`geschützt durch`,"developer.graph.relation.procedureSchema":`verarbeitet Schema`,"developer.graph.relation.collectionAction":`wirkt auf`,"developer.graph.relation.inputReference":`verweist auf`,"developer.graph.relation.triggerTarget":`ruft auf`,"developer.graph.relation.lifecycleSource":`überwacht Lebenszyklus`,"status.draft":`Entwürfe`,"status.published":`Veröffentlicht`,"status.archived":`Archiviert`,"preferences.heading":`Präferenzen`,"preferences.language":`Admin-Sprache`,"preferences.language.search":`Sprachen suchen...`,"preferences.language.noResults":`Keine Sprachen gefunden.`,"preferences.direction":`Textrichtung`,"preferences.direction.auto":`Die Textrichtung folgt der gewählten Sprache.`,"preferences.appearance":`Darstellung`,"preferences.light":`Hell`,"preferences.dark":`Dunkel`,"preferences.system":`System`,"preferences.ltr":`Links nach rechts`,"preferences.rtl":`Rechts nach links`,"preferences.page.open":`Präferenzen`,"preferences.page.title":`Persönliche Präferenzen`,"preferences.page.body":`Diese Präferenzen bleiben in diesem Browser. Sie ändern nur die Admin-Konsole und keine Website-Einstellungen.`,"preferences.page.languageBody":`Wähle die Sprache für Systemseiten und Admin-Chrome.`,"preferences.page.appearanceBody":`Wähle hell, dunkel oder dein Betriebssystem.`},es:{"admin.consoleTitle":`Consola de administración`,"developer.workspaceTitle":`Desarrollo`,"auth.signIn.title":`Iniciar sesión`,"common.signOut":`Cerrar sesión`,"common.viewSite":`Ver sitio`,"common.copy":`Copiar`,"common.open":`Abrir`,"common.failedToLoad":`Error al cargar`,"common.signedIn":`Sesión iniciada`,"common.contentAdmin":`Administración de contenido`,"common.close":`Cerrar`,"common.skipToMain":`Ir al contenido principal`,"common.breadcrumb":`Ruta de navegación`,"common.toggleSidebar":`Alternar barra lateral`,"common.mobileSidebar":`Navegación`,"common.mobileSidebarDescription":`Navegación de administración del sitio`,"collection.filter.all":`Todo`,"nav.home":`Inicio`,"nav.overview":`Resumen`,"nav.model":`Modelo de datos`,"nav.logic":`Lógica`,"nav.docs":`Interfaces`,"nav.build":`Compilación`,"nav.content":`Contenido`,"nav.operations":`Registros`,"nav.media":`Biblioteca multimedia`,"nav.more":`Más`,"nav.settings":`Configuración`,"nav.staff":`Usuarios administradores`,"nav.members":`Miembros`,"nav.reports":`Informes`,"nav.localizedContent":`Contiene contenido localizado`,"common.yes":`Sí`,"common.no":`No`,"model.title":`Modelo de datos`,"model.schemas":`Esquemas`,"model.views":`Vistas`,"model.objects":`Objetos del modelo de datos`,"model.search":`Buscar en el modelo de datos`,"model.fields":`Campos`,"model.path":`Ruta`,"model.type":`Tipo`,"model.required":`Obligatorio`,"model.constraints":`Restricciones`,"model.noFields":`No se han declarado propiedades del objeto.`,"model.rawSchema":`Esquema JSON`,"model.rawQuery":`Plan de consulta`,"model.queryKind":`Consulta`,"model.source":`Origen`,"model.allFields":`Todos los campos`,"model.order":`Orden`,"model.limit":`Límite`,"model.dialect":`Dialecto`,"model.filter":`Filtro`,"model.params":`Parámetros`,"model.relationships":`Relaciones`,"model.references":`Este elemento hace referencia a`,"model.referencedBy":`Hace referencia a este elemento`,"model.noRelations":`No se declararon relaciones en el Manifest.`,"model.openGraph":`Mostrar en el grafo`,"model.openDeclaration":`Abrir declaración del Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Manifest compilado`,"model.marker.reference":`Referencia a {target}`,"model.marker.translationParent":`Unión de traducción al elemento superior {target}`,"model.marker.translationChild":`Unión de traducción desde el elemento secundario {target}`,"model.marker.unique":`Índice único UQ{index}: {fields}`,"model.marker.index":`Índice IDX{index}: {fields}`,"logic.title":`Lógica`,"logic.objects":`Objetos lógicos`,"logic.search":`Buscar lógica`,"logic.triggers":`Disparadores`,"logic.procedures":`Procedimientos`,"logic.overview":`Resumen`,"logic.contract":`Contrato`,"logic.configuration":`Configuración`,"logic.contractFrom":`Este punto de entrada usa el contrato declarado por {target}.`,"logic.input":`Entrada`,"logic.output":`Salida`,"logic.noContract":`No hay un contrato disponible para el procedimiento de destino.`,"logic.execution":`Ruta de ejecución`,"logic.target":`Procedimiento de destino`,"logic.authorization":`Autorización`,"logic.noAuthorization":`No se declararon condiciones de autorización.`,"logic.guard":`Procedimiento de protección`,"logic.method":`Método`,"logic.surface":`Ámbito`,"logic.hooks":`Enlaces`,"logic.errorPolicy":`Política de errores`,"docs.title":`Interfaces de API y agentes`,"docs.intro":`Referencia derivada de RuntimePlan para puntos de entrada HTTP, MCP y WebMCP del navegador.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`Disparadores HTTP y rutas de vistas públicas expuestas automáticamente.`,"docs.mcpIntro":`Herramientas generadas a partir de vistas y disparadores MCP explícitos. La autorización sigue aplicándose al ejecutar una herramienta.`,"docs.webmcpIntro":`Esta integración respaldada por el servidor descubre vistas públicas mediante HTTP y las registra como herramientas de navegador de solo lectura. Cada vista conserva sus propias reglas de audiencia.`,"docs.publicEndpoint":`Punto de conexión público`,"docs.staffEndpoint":`Punto de conexión del personal`,"docs.catalogEndpoint":`Catálogo de descubrimiento`,"docs.target":`Destino`,"docs.inputSchema":`Esquema de entrada`,"docs.outputSchema":`Esquema de salida`,"docs.readOnly":`Solo lectura`,"docs.noEntries":`No se declararon puntos de entrada para esta interfaz.`,"docs.webmcpNote":`Las herramientas de procedimientos públicos permanecen en MCP. El contenedor HTTP de WebMCP respaldado por el servidor registra intencionalmente solo vistas públicas.`,"developer.graph.title":`Grafo del Manifest`,"developer.graph.details":`Detalles del elemento`,"developer.graph.openModel":`Abrir en el modelo de datos`,"developer.graph.openLogic":`Abrir detalles de lógica`,"developer.graph.relayout":`Diseño automático`,"developer.graph.previous":`Paso anterior`,"developer.graph.next":`Paso siguiente`,"developer.graph.step":`Paso {current} de {total}`,"developer.graph.comesFrom":`Proviene de`,"developer.graph.continuesTo":`Continúa en`,"developer.graph.manifestSource":`Origen del Manifest`,"developer.graph.builtin":`Integrado`,"developer.graph.kind.schema":`Esquema`,"developer.graph.kind.view":`Vista`,"developer.graph.kind.procedure":`Procedimiento`,"developer.graph.kind.trigger":`Disparador`,"developer.graph.fact.audience":`Audiencia`,"developer.graph.fact.transport":`Transporte`,"developer.graph.fact.handler":`Controlador`,"developer.graph.fact.operation":`Operación`,"developer.graph.fact.schema":`Esquema`,"developer.graph.fact.match":`Coincidencia`,"developer.graph.summary.trigger":`Las solicitudes de {audience} entran por {transport} y continúan hacia {target}.`,"developer.graph.summary.builtin":`Una operación integrada {op} escribe en {schema}.`,"developer.graph.summary.ref":`Este procedimiento ejecuta el controlador de código registrado {ref}.`,"developer.graph.summary.view":`Una vista de solo lectura de {target} para {audience}.`,"developer.graph.summary.schema":`{incoming} elementos usan este esquema; hace referencia a otros {outgoing} elementos.`,"developer.graph.audience.public":`Público`,"developer.graph.audience.members":`Miembros`,"developer.graph.audience.staff":`Personal`,"developer.graph.audience.system":`Sistema`,"developer.graph.audience.apiClients":`Clientes de API`,"developer.graph.audienceDescription.public":`Disponible sin iniciar sesión.`,"developer.graph.audienceDescription.members":`Cualquier miembro con sesión iniciada. No se requiere un rol del sitio.`,"developer.graph.audienceDescription.staff":`Un miembro con sesión iniciada y un rol de colaborador, editor o propietario. Personal es un nivel de acceso, no una cuenta de administrador independiente.`,"developer.graph.audienceDescription.system":`Se ejecuta automáticamente a partir de eventos de ciclo de vida, cola o programación.`,"developer.graph.audienceDescription.apiClients":`Requiere un cliente de API autenticado o un ámbito adecuado.`,"developer.graph.relation.translationParent":`traduce`,"developer.graph.relation.schemaReference":`hace referencia a`,"developer.graph.relation.viewSource":`lee de`,"developer.graph.relation.guard":`protegido por`,"developer.graph.relation.procedureSchema":`procesa el esquema`,"developer.graph.relation.collectionAction":`actúa sobre`,"developer.graph.relation.inputReference":`hace referencia a`,"developer.graph.relation.triggerTarget":`invoca`,"developer.graph.relation.lifecycleSource":`observa el ciclo de vida`,"status.draft":`Borradores`,"status.published":`Publicado`,"status.archived":`Archivado`,"preferences.heading":`Preferencias`,"preferences.language":`Idioma del admin`,"preferences.language.search":`Buscar idiomas...`,"preferences.language.noResults":`No se encontraron idiomas.`,"preferences.direction":`Dirección del texto`,"preferences.direction.auto":`La dirección del texto sigue el idioma seleccionado.`,"preferences.appearance":`Apariencia`,"preferences.light":`Claro`,"preferences.dark":`Oscuro`,"preferences.system":`Sistema`,"preferences.ltr":`Izquierda a derecha`,"preferences.rtl":`Derecha a izquierda`,"preferences.page.open":`Preferencias`,"preferences.page.title":`Preferencias personales`,"preferences.page.body":`Estas preferencias se guardan en este navegador. Solo cambian la consola de administración y no modifican la configuración del sitio.`,"preferences.page.languageBody":`Elige el idioma de las páginas del sistema y la interfaz de administración.`,"preferences.page.appearanceBody":`Elige claro, oscuro o seguir el sistema operativo.`},fr:{"admin.consoleTitle":`Console d’administration`,"developer.workspaceTitle":`Développement`,"auth.signIn.title":`Se connecter`,"common.signOut":`Se déconnecter`,"common.viewSite":`Voir le site`,"common.copy":`Copier`,"common.open":`Ouvrir`,"common.failedToLoad":`Échec du chargement`,"common.signedIn":`Connecté`,"common.contentAdmin":`Administration du contenu`,"common.close":`Fermer`,"common.skipToMain":`Aller au contenu principal`,"common.breadcrumb":`Fil d’Ariane`,"common.toggleSidebar":`Afficher ou masquer la barre latérale`,"common.mobileSidebar":`Navigation`,"common.mobileSidebarDescription":`Navigation d’administration du site`,"collection.filter.all":`Tout`,"nav.home":`Accueil`,"nav.overview":`Vue d’ensemble`,"nav.model":`Modèle de données`,"nav.logic":`Logique`,"nav.docs":`Interfaces`,"nav.build":`Build`,"nav.content":`Contenu`,"nav.operations":`Enregistrements`,"nav.media":`Médiathèque`,"nav.more":`Plus`,"nav.settings":`Paramètres`,"nav.staff":`Utilisateurs administrateurs`,"nav.members":`Membres`,"nav.reports":`Rapports`,"nav.localizedContent":`Contient du contenu localisé`,"common.yes":`Oui`,"common.no":`Non`,"model.title":`Modèle de données`,"model.schemas":`Schémas`,"model.views":`Vues`,"model.objects":`Objets du modèle de données`,"model.search":`Rechercher dans le modèle de données`,"model.fields":`Champs`,"model.path":`Chemin`,"model.type":`Type`,"model.required":`Obligatoire`,"model.constraints":`Contraintes`,"model.noFields":`Aucune propriété d’objet n’est déclarée.`,"model.rawSchema":`Schéma JSON`,"model.rawQuery":`Plan de requête`,"model.queryKind":`Requête`,"model.source":`Source`,"model.allFields":`Tous les champs`,"model.order":`Ordre`,"model.limit":`Limite`,"model.dialect":`Dialecte`,"model.filter":`Filtre`,"model.params":`Paramètres`,"model.relationships":`Relations`,"model.references":`Cet élément fait référence à`,"model.referencedBy":`Fait référence à cet élément`,"model.noRelations":`Aucune relation n’est déclarée dans le Manifest.`,"model.openGraph":`Afficher dans le graphe`,"model.openDeclaration":`Ouvrir la déclaration du Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Manifest compilé`,"model.marker.reference":`Référence à {target}`,"model.marker.translationParent":`Jointure de traduction vers le parent {target}`,"model.marker.translationChild":`Jointure de traduction depuis l’enfant {target}`,"model.marker.unique":`Index unique UQ{index} : {fields}`,"model.marker.index":`Index IDX{index} : {fields}`,"logic.title":`Logique`,"logic.objects":`Objets logiques`,"logic.search":`Rechercher dans la logique`,"logic.triggers":`Déclencheurs`,"logic.procedures":`Procédures`,"logic.overview":`Vue d’ensemble`,"logic.contract":`Contrat`,"logic.configuration":`Configuration`,"logic.contractFrom":`Ce point d’entrée utilise le contrat déclaré par {target}.`,"logic.input":`Entrée`,"logic.output":`Sortie`,"logic.noContract":`Aucun contrat de procédure cible n’est disponible.`,"logic.execution":`Chemin d’exécution`,"logic.target":`Procédure cible`,"logic.authorization":`Autorisation`,"logic.noAuthorization":`Aucune condition d’autorisation n’est déclarée.`,"logic.guard":`Procédure de garde`,"logic.method":`Méthode`,"logic.surface":`Portée`,"logic.hooks":`Hooks`,"logic.errorPolicy":`Politique d’erreur`,"docs.title":`Interfaces API et agents`,"docs.intro":`Référence dérivée de RuntimePlan pour les points d’entrée HTTP, MCP et WebMCP du navigateur.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`Déclencheurs HTTP et routes de vues publiques exposées automatiquement.`,"docs.mcpIntro":`Outils générés à partir des vues et des déclencheurs MCP explicites. L’autorisation reste appliquée à l’exécution.`,"docs.webmcpIntro":`Cette intégration côté serveur découvre les vues publiques via HTTP et les enregistre comme outils de navigateur en lecture seule. Chaque vue conserve ses propres règles d’audience.`,"docs.publicEndpoint":`Point d’entrée public`,"docs.staffEndpoint":`Point d’entrée du personnel`,"docs.catalogEndpoint":`Catalogue de découverte`,"docs.target":`Cible`,"docs.inputSchema":`Schéma d’entrée`,"docs.outputSchema":`Schéma de sortie`,"docs.readOnly":`Lecture seule`,"docs.noEntries":`Aucun point d’entrée n’est déclaré pour cette interface.`,"docs.webmcpNote":`Les outils de procédures publiques restent disponibles via MCP. Le wrapper HTTP WebMCP côté serveur n’enregistre volontairement que les vues publiques.`,"developer.graph.title":`Graphe du Manifest`,"developer.graph.details":`Détails de l’élément`,"developer.graph.openModel":`Ouvrir dans le modèle de données`,"developer.graph.openLogic":`Ouvrir les détails de la logique`,"developer.graph.relayout":`Disposition automatique`,"developer.graph.previous":`Étape précédente`,"developer.graph.next":`Étape suivante`,"developer.graph.step":`Étape {current} sur {total}`,"developer.graph.comesFrom":`Provient de`,"developer.graph.continuesTo":`Continue vers`,"developer.graph.manifestSource":`Source du Manifest`,"developer.graph.builtin":`Intégré`,"developer.graph.kind.schema":`Schéma`,"developer.graph.kind.view":`Vue`,"developer.graph.kind.procedure":`Procédure`,"developer.graph.kind.trigger":`Déclencheur`,"developer.graph.fact.audience":`Audience`,"developer.graph.fact.transport":`Transport`,"developer.graph.fact.handler":`Gestionnaire`,"developer.graph.fact.operation":`Opération`,"developer.graph.fact.schema":`Schéma`,"developer.graph.fact.match":`Correspondance`,"developer.graph.summary.trigger":`Les requêtes de {audience} arrivent via {transport} et continuent vers {target}.`,"developer.graph.summary.builtin":`Une opération intégrée {op} écrit dans {schema}.`,"developer.graph.summary.ref":`Cette procédure exécute le gestionnaire de code enregistré {ref}.`,"developer.graph.summary.view":`Une vue en lecture seule de {target} pour {audience}.`,"developer.graph.summary.schema":`{incoming} éléments utilisent ce schéma ; il référence {outgoing} autres éléments.`,"developer.graph.audience.public":`Public`,"developer.graph.audience.members":`Membres`,"developer.graph.audience.staff":`Personnel`,"developer.graph.audience.system":`Système`,"developer.graph.audience.apiClients":`Clients API`,"developer.graph.audienceDescription.public":`Disponible sans connexion.`,"developer.graph.audienceDescription.members":`Tout membre connecté. Aucun rôle de site n’est requis.`,"developer.graph.audienceDescription.staff":`Un membre connecté ayant le rôle de contributeur, éditeur ou propriétaire. Le personnel est un niveau d’accès, pas un compte administrateur distinct.`,"developer.graph.audienceDescription.system":`S’exécute automatiquement à partir d’événements de cycle de vie, de file d’attente ou de planification.`,"developer.graph.audienceDescription.apiClients":`Nécessite un client API authentifié ou une portée appropriée.`,"developer.graph.relation.translationParent":`traduit`,"developer.graph.relation.schemaReference":`référence`,"developer.graph.relation.viewSource":`lit depuis`,"developer.graph.relation.guard":`protégé par`,"developer.graph.relation.procedureSchema":`traite le schéma`,"developer.graph.relation.collectionAction":`agit sur`,"developer.graph.relation.inputReference":`référence`,"developer.graph.relation.triggerTarget":`appelle`,"developer.graph.relation.lifecycleSource":`surveille le cycle de vie`,"status.draft":`Brouillons`,"status.published":`Publié`,"status.archived":`Archivé`,"preferences.heading":`Préférences`,"preferences.language":`Langue admin`,"preferences.language.search":`Rechercher une langue...`,"preferences.language.noResults":`Aucune langue trouvée.`,"preferences.direction":`Direction du texte`,"preferences.direction.auto":`La direction du texte suit la langue sélectionnée.`,"preferences.appearance":`Apparence`,"preferences.light":`Clair`,"preferences.dark":`Sombre`,"preferences.system":`Système`,"preferences.ltr":`Gauche à droite`,"preferences.rtl":`Droite à gauche`,"preferences.page.open":`Préférences`,"preferences.page.title":`Préférences personnelles`,"preferences.page.body":`Ces préférences restent dans ce navigateur. Elles modifient seulement la console admin, pas les paramètres du site.`,"preferences.page.languageBody":`Choisissez la langue des pages système et de l'interface admin.`,"preferences.page.appearanceBody":`Choisissez clair, sombre ou le thème du système.`},it:{"admin.consoleTitle":`Console di amministrazione`,"developer.workspaceTitle":`Sviluppo`,"auth.signIn.title":`Accedi`,"common.signOut":`Esci`,"common.viewSite":`Vedi sito`,"common.copy":`Copia`,"common.open":`Apri`,"common.failedToLoad":`Caricamento non riuscito`,"common.signedIn":`Accesso effettuato`,"common.contentAdmin":`Amministrazione contenuti`,"common.close":`Chiudi`,"common.skipToMain":`Vai al contenuto principale`,"common.breadcrumb":`Percorso di navigazione`,"common.toggleSidebar":`Mostra o nascondi barra laterale`,"common.mobileSidebar":`Navigazione`,"common.mobileSidebarDescription":`Navigazione di amministrazione del sito`,"collection.filter.all":`Tutto`,"nav.home":`Home`,"nav.overview":`Panoramica`,"nav.model":`Modello dati`,"nav.logic":`Logica`,"nav.docs":`Interfacce`,"nav.build":`Build`,"nav.content":`Contenuti`,"nav.operations":`Record`,"nav.media":`Libreria multimediale`,"nav.more":`Altro`,"nav.settings":`Impostazioni`,"nav.staff":`Utenti amministratori`,"nav.members":`Membri`,"nav.reports":`Report`,"nav.localizedContent":`Contiene contenuti localizzati`,"common.yes":`Sì`,"common.no":`No`,"model.title":`Modello dati`,"model.schemas":`Schemi`,"model.views":`Viste`,"model.objects":`Oggetti del modello dati`,"model.search":`Cerca nel modello dati`,"model.fields":`Campi`,"model.path":`Percorso`,"model.type":`Tipo`,"model.required":`Obbligatorio`,"model.constraints":`Vincoli`,"model.noFields":`Non sono dichiarate proprietà dell’oggetto.`,"model.rawSchema":`Schema JSON`,"model.rawQuery":`Piano di query`,"model.queryKind":`Query`,"model.source":`Origine`,"model.allFields":`Tutti i campi`,"model.order":`Ordinamento`,"model.limit":`Limite`,"model.dialect":`Dialetto`,"model.filter":`Filtro`,"model.params":`Parametri`,"model.relationships":`Relazioni`,"model.references":`Questo elemento fa riferimento a`,"model.referencedBy":`Fa riferimento a questo elemento`,"model.noRelations":`Nessuna relazione dichiarata nel Manifest.`,"model.openGraph":`Mostra nel grafo`,"model.openDeclaration":`Apri dichiarazione del Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Manifest compilato`,"model.marker.reference":`Riferimento a {target}`,"model.marker.translationParent":`Collegamento di traduzione al genitore {target}`,"model.marker.translationChild":`Collegamento di traduzione dal figlio {target}`,"model.marker.unique":`Indice univoco UQ{index}: {fields}`,"model.marker.index":`Indice IDX{index}: {fields}`,"logic.title":`Logica`,"logic.objects":`Oggetti logici`,"logic.search":`Cerca nella logica`,"logic.triggers":`Trigger`,"logic.procedures":`Procedure`,"logic.overview":`Panoramica`,"logic.contract":`Contratto`,"logic.configuration":`Configurazione`,"logic.contractFrom":`Questo punto di ingresso usa il contratto dichiarato da {target}.`,"logic.input":`Input`,"logic.output":`Output`,"logic.noContract":`Non è disponibile alcun contratto per la procedura di destinazione.`,"logic.execution":`Percorso di esecuzione`,"logic.target":`Procedura di destinazione`,"logic.authorization":`Autorizzazione`,"logic.noAuthorization":`Non sono dichiarate condizioni di autorizzazione.`,"logic.guard":`Procedura di protezione`,"logic.method":`Metodo`,"logic.surface":`Ambito`,"logic.hooks":`Hook`,"logic.errorPolicy":`Criterio errori`,"docs.title":`Interfacce API e agenti`,"docs.intro":`Riferimento derivato da RuntimePlan per punti di ingresso HTTP, MCP e WebMCP del browser.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`Trigger HTTP e route delle viste pubbliche esposte automaticamente.`,"docs.mcpIntro":`Strumenti generati dalle viste e dai trigger MCP espliciti. L’autorizzazione viene comunque applicata durante l’esecuzione.`,"docs.webmcpIntro":`Questa integrazione lato server rileva le viste pubbliche tramite HTTP e le registra come strumenti del browser di sola lettura. Ogni vista conserva le proprie regole di pubblico.`,"docs.publicEndpoint":`Endpoint pubblico`,"docs.staffEndpoint":`Endpoint del personale`,"docs.catalogEndpoint":`Catalogo di rilevamento`,"docs.target":`Destinazione`,"docs.inputSchema":`Schema di input`,"docs.outputSchema":`Schema di output`,"docs.readOnly":`Sola lettura`,"docs.noEntries":`Non sono dichiarati punti di ingresso per questa interfaccia.`,"docs.webmcpNote":`Gli strumenti delle procedure pubbliche restano disponibili tramite MCP. Il wrapper HTTP WebMCP lato server registra intenzionalmente solo le viste pubbliche.`,"developer.graph.title":`Grafo del Manifest`,"developer.graph.details":`Dettagli elemento`,"developer.graph.openModel":`Apri nel modello dati`,"developer.graph.openLogic":`Apri dettagli logica`,"developer.graph.relayout":`Disposizione automatica`,"developer.graph.previous":`Passaggio precedente`,"developer.graph.next":`Passaggio successivo`,"developer.graph.step":`Passaggio {current} di {total}`,"developer.graph.comesFrom":`Proviene da`,"developer.graph.continuesTo":`Continua verso`,"developer.graph.manifestSource":`Origine del Manifest`,"developer.graph.builtin":`Integrato`,"developer.graph.kind.schema":`Schema`,"developer.graph.kind.view":`Vista`,"developer.graph.kind.procedure":`Procedura`,"developer.graph.kind.trigger":`Trigger`,"developer.graph.fact.audience":`Pubblico`,"developer.graph.fact.transport":`Trasporto`,"developer.graph.fact.handler":`Gestore`,"developer.graph.fact.operation":`Operazione`,"developer.graph.fact.schema":`Schema`,"developer.graph.fact.match":`Corrispondenza`,"developer.graph.summary.trigger":`Le richieste da {audience} entrano tramite {transport} e continuano verso {target}.`,"developer.graph.summary.builtin":`Un’operazione integrata {op} scrive in {schema}.`,"developer.graph.summary.ref":`Questa procedura esegue il gestore di codice registrato {ref}.`,"developer.graph.summary.view":`Una vista di sola lettura di {target} per {audience}.`,"developer.graph.summary.schema":`{incoming} elementi usano questo schema; fa riferimento ad altri {outgoing} elementi.`,"developer.graph.audience.public":`Pubblico`,"developer.graph.audience.members":`Membri`,"developer.graph.audience.staff":`Personale`,"developer.graph.audience.system":`Sistema`,"developer.graph.audience.apiClients":`Client API`,"developer.graph.audienceDescription.public":`Disponibile senza accesso.`,"developer.graph.audienceDescription.members":`Qualsiasi membro autenticato. Non è richiesto alcun ruolo del sito.`,"developer.graph.audienceDescription.staff":`Un membro autenticato con ruolo di collaboratore, editor o proprietario. Il personale è un livello di accesso, non un account amministratore separato.`,"developer.graph.audienceDescription.system":`Viene eseguito automaticamente da eventi del ciclo di vita, della coda o pianificati.`,"developer.graph.audienceDescription.apiClients":`Richiede un client API autenticato o un ambito appropriato.`,"developer.graph.relation.translationParent":`traduce`,"developer.graph.relation.schemaReference":`fa riferimento a`,"developer.graph.relation.viewSource":`legge da`,"developer.graph.relation.guard":`protetto da`,"developer.graph.relation.procedureSchema":`gestisce lo schema`,"developer.graph.relation.collectionAction":`agisce su`,"developer.graph.relation.inputReference":`fa riferimento a`,"developer.graph.relation.triggerTarget":`richiama`,"developer.graph.relation.lifecycleSource":`osserva il ciclo di vita`,"status.draft":`Bozze`,"status.published":`Pubblicato`,"status.archived":`Archiviato`,"preferences.heading":`Preferenze`,"preferences.language":`Lingua admin`,"preferences.language.search":`Cerca lingue...`,"preferences.language.noResults":`Nessuna lingua trovata.`,"preferences.direction":`Direzione testo`,"preferences.direction.auto":`La direzione del testo segue la lingua selezionata.`,"preferences.appearance":`Aspetto`,"preferences.light":`Chiaro`,"preferences.dark":`Scuro`,"preferences.system":`Sistema`,"preferences.ltr":`Da sinistra a destra`,"preferences.rtl":`Da destra a sinistra`,"preferences.page.open":`Preferenze`,"preferences.page.title":`Preferenze personali`,"preferences.page.body":`Queste preferenze restano in questo browser. Modificano solo la console admin e non le impostazioni del sito.`,"preferences.page.languageBody":`Scegli la lingua delle pagine di sistema e dell'interfaccia admin.`,"preferences.page.appearanceBody":`Scegli chiaro, scuro o segui il sistema operativo.`},ja:{"admin.consoleTitle":`管理コンソール`,"developer.workspaceTitle":`開発`,"auth.signIn.title":`サインイン`,"auth.signIn.methodsLoadFailed":`サインイン方法を読み込めませんでした。再読み込みしてください。`,"auth.signIn.noMethods":`このサイトにはサインイン方法が設定されていません。`,"auth.signIn.unknownMethod":`未対応のサインイン方法: {kind}`,"auth.signIn.method.social.button":`{provider} でサインイン`,"auth.signIn.method.email-otp.body":`メールに届くワンタイムコードでサインインします。`,"auth.signIn.method.email-otp.emailLabel":`メールアドレス`,"auth.signIn.method.email-otp.emailPlaceholder":`you@example.com`,"auth.signIn.method.email-otp.sendButton":`コードを送信`,"auth.signIn.method.email-otp.sendFailed":`コードの送信に失敗しました。メールを確認してもう一度お試しください。`,"auth.signIn.method.email-otp.sentTo":`{email} にコードを送信しました。`,"auth.signIn.method.email-otp.otpLabel":`ワンタイムコード`,"auth.signIn.method.email-otp.otpPlaceholder":`6 桁のコードを入力`,"auth.signIn.method.email-otp.verifyButton":`コードを確認してサインイン`,"auth.signIn.method.email-otp.verifyFailed":`コードが一致しません。もう一度入力してください。`,"auth.signIn.method.email-otp.back":`別のメールアドレスを使う`,"auth.signIn.method.magic-link.body":`ワンタップでサインインできるリンクをメールでお送りします。`,"auth.signIn.method.magic-link.emailLabel":`メールアドレス`,"auth.signIn.method.magic-link.emailPlaceholder":`you@example.com`,"auth.signIn.method.magic-link.sendButton":`サインインリンクを送信`,"auth.signIn.method.magic-link.sendFailed":`リンクの送信に失敗しました。メールを確認してもう一度お試しください。`,"auth.signIn.method.magic-link.sentTo":`{email} にサインインリンクを送信しました。`,"auth.signIn.method.magic-link.clickHint":`メール内のリンクをクリックしてサインインを完了してください。リンクはまもなく失効します。`,"auth.signIn.method.magic-link.anotherEmail":`別のメールアドレスを使う`,"common.signOut":`サインアウト`,"common.viewSite":`サイトを見る`,"common.contentAdmin":`コンテンツ管理`,"common.copy":`コピー`,"common.open":`開く`,"common.failedToLoad":`読み込みに失敗しました`,"common.signedIn":`サインイン済み`,"common.close":`閉じる`,"common.skipToMain":`メインコンテンツへ移動`,"common.breadcrumb":`パンくずリスト`,"common.toggleSidebar":`サイドバーを切り替え`,"common.mobileSidebar":`ナビゲーション`,"common.mobileSidebarDescription":`サイト管理ナビゲーション`,"collection.filter.all":`すべて`,"nav.home":`ホーム`,"nav.overview":`概要`,"nav.model":`データモデル`,"nav.logic":`ロジック`,"nav.docs":`インターフェース`,"nav.build":`ビルド`,"nav.content":`コンテンツ`,"nav.operations":`レコード`,"nav.media":`メディアライブラリ`,"nav.more":`その他`,"nav.settings":`設定`,"nav.staff":`管理ユーザー`,"nav.members":`メンバー`,"nav.reports":`レポート`,"nav.localizedContent":`多言語コンテンツを含む`,"common.yes":`はい`,"common.no":`いいえ`,"model.title":`データモデル`,"model.schemas":`スキーマ`,"model.views":`ビュー`,"model.objects":`データモデルオブジェクト`,"model.search":`データモデルを検索`,"model.fields":`フィールド`,"model.path":`パス`,"model.type":`型`,"model.required":`必須`,"model.constraints":`制約`,"model.noFields":`オブジェクトのプロパティは宣言されていません。`,"model.rawSchema":`JSON スキーマ`,"model.rawQuery":`クエリプラン`,"model.queryKind":`クエリ`,"model.source":`ソース`,"model.allFields":`すべてのフィールド`,"model.order":`並び順`,"model.limit":`上限`,"model.dialect":`ダイアレクト`,"model.filter":`フィルター`,"model.params":`パラメーター`,"model.relationships":`リレーション`,"model.references":`この項目の参照先`,"model.referencedBy":`この項目を参照`,"model.noRelations":`Manifest にリレーションは宣言されていません。`,"model.openGraph":`グラフで表示`,"model.openDeclaration":`Manifest の宣言を開く`,"model.manifest":`Manifest`,"model.compiledManifest":`コンパイル済み Manifest`,"model.marker.reference":`{target} への参照`,"model.marker.translationParent":`親 {target} への翻訳結合`,"model.marker.translationChild":`子 {target} からの翻訳結合`,"model.marker.unique":`一意インデックス UQ{index}: {fields}`,"model.marker.index":`インデックス IDX{index}: {fields}`,"logic.title":`ロジック`,"logic.objects":`ロジックオブジェクト`,"logic.search":`ロジックを検索`,"logic.triggers":`トリガー`,"logic.procedures":`プロシージャ`,"logic.overview":`概要`,"logic.contract":`コントラクト`,"logic.configuration":`設定`,"logic.contractFrom":`このエントリーポイントは {target} で宣言されたコントラクトを使用します。`,"logic.input":`入力`,"logic.output":`出力`,"logic.noContract":`対象プロシージャのコントラクトはありません。`,"logic.execution":`実行経路`,"logic.target":`対象プロシージャ`,"logic.authorization":`認可`,"logic.noAuthorization":`認可条件は宣言されていません。`,"logic.guard":`ガードプロシージャ`,"logic.method":`メソッド`,"logic.surface":`提供範囲`,"logic.hooks":`フック`,"logic.errorPolicy":`エラーポリシー`,"docs.title":`API・エージェントインターフェース`,"docs.intro":`RuntimePlan から生成された HTTP、MCP、ブラウザ WebMCP のエントリーポイント一覧です。`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`HTTP トリガーと、自動公開された一般向けビューのルートです。`,"docs.mcpIntro":`ビューと明示的な MCP トリガーから生成されたツールです。実行時にも認可が適用されます。`,"docs.webmcpIntro":`このサーバー連携は一般公開ビューを HTTP 経由で検出し、読み取り専用のブラウザツールとして登録します。各ビューの公開範囲ルールは維持されます。`,"docs.publicEndpoint":`公開エンドポイント`,"docs.staffEndpoint":`スタッフ用エンドポイント`,"docs.catalogEndpoint":`ディスカバリーカタログ`,"docs.target":`対象`,"docs.inputSchema":`入力スキーマ`,"docs.outputSchema":`出力スキーマ`,"docs.readOnly":`読み取り専用`,"docs.noEntries":`このインターフェースにはエントリーポイントが宣言されていません。`,"docs.webmcpNote":`一般公開のプロシージャツールは MCP で提供されます。サーバー連携の WebMCP HTTP ラッパーは、意図的に一般公開ビューのみを登録します。`,"developer.graph.title":`Manifest グラフ`,"developer.graph.details":`項目の詳細`,"developer.graph.openModel":`データモデルで開く`,"developer.graph.openLogic":`ロジックの詳細を開く`,"developer.graph.relayout":`自動配置`,"developer.graph.previous":`前のステップ`,"developer.graph.next":`次のステップ`,"developer.graph.step":`ステップ {current} / {total}`,"developer.graph.comesFrom":`入力元`,"developer.graph.continuesTo":`次の処理`,"developer.graph.manifestSource":`Manifest ソース`,"developer.graph.builtin":`組み込み`,"developer.graph.kind.schema":`スキーマ`,"developer.graph.kind.view":`ビュー`,"developer.graph.kind.procedure":`プロシージャ`,"developer.graph.kind.trigger":`トリガー`,"developer.graph.fact.audience":`対象ユーザー`,"developer.graph.fact.transport":`トランスポート`,"developer.graph.fact.handler":`ハンドラー`,"developer.graph.fact.operation":`操作`,"developer.graph.fact.schema":`スキーマ`,"developer.graph.fact.match":`一致条件`,"developer.graph.summary.trigger":`{audience} からのリクエストは {transport} を経由し、{target} に進みます。`,"developer.graph.summary.builtin":`組み込みの {op} 操作が {schema} に書き込みます。`,"developer.graph.summary.ref":`このプロシージャは登録済みのコードハンドラー {ref} を実行します。`,"developer.graph.summary.view":`{audience} 向けの {target} の読み取り専用ビューです。`,"developer.graph.summary.schema":`{incoming} 件の項目がこのスキーマを使用し、ほかの {outgoing} 件の項目を参照しています。`,"developer.graph.audience.public":`一般公開`,"developer.graph.audience.members":`メンバー`,"developer.graph.audience.staff":`スタッフ`,"developer.graph.audience.system":`システム`,"developer.graph.audience.apiClients":`API クライアント`,"developer.graph.audienceDescription.public":`サインインせずに利用できます。`,"developer.graph.audienceDescription.members":`サインイン済みのすべてのメンバーが対象です。サイト上の役割は不要です。`,"developer.graph.audienceDescription.staff":`コントリビューター、編集者、または所有者のサイト役割を持つメンバーが対象です。スタッフはアクセスレベルであり、別の管理者アカウントではありません。`,"developer.graph.audienceDescription.system":`ライフサイクル、キュー、またはスケジュールイベントから自動実行されます。`,"developer.graph.audienceDescription.apiClients":`認証済みの API クライアントまたはスコープが必要です。`,"developer.graph.relation.translationParent":`翻訳`,"developer.graph.relation.schemaReference":`参照`,"developer.graph.relation.viewSource":`読み取り元`,"developer.graph.relation.guard":`ガード`,"developer.graph.relation.procedureSchema":`処理するスキーマ`,"developer.graph.relation.collectionAction":`操作対象`,"developer.graph.relation.inputReference":`参照`,"developer.graph.relation.triggerTarget":`呼び出し`,"developer.graph.relation.lifecycleSource":`ライフサイクルを監視`,"status.draft":`下書き`,"status.published":`公開済み`,"status.archived":`アーカイブ済み`,"preferences.heading":`環境設定`,"preferences.language":`管理画面の言語`,"preferences.language.search":`言語を検索...`,"preferences.language.noResults":`言語が見つかりません。`,"preferences.direction":`文字方向`,"preferences.direction.auto":`文字方向は選択した言語に従います。`,"preferences.appearance":`外観`,"preferences.light":`ライト`,"preferences.dark":`ダーク`,"preferences.system":`システム`,"preferences.ltr":`左から右`,"preferences.rtl":`右から左`,"preferences.page.open":`環境設定`,"preferences.page.title":`個人設定`,"preferences.page.body":`これらの設定はこのブラウザにのみ保存されます。管理コンソールだけに影響し、サイト設定は変更しません。`,"preferences.page.languageBody":`システムページと管理 UI で使う言語を選びます。`,"preferences.page.appearanceBody":`ライト、ダーク、またはシステム設定に合わせます。`},ko:{"admin.consoleTitle":`관리자 콘솔`,"developer.workspaceTitle":`개발`,"auth.signIn.title":`로그인`,"common.signOut":`로그아웃`,"common.viewSite":`사이트 보기`,"common.copy":`복사`,"common.open":`열기`,"common.failedToLoad":`로드 실패`,"common.signedIn":`로그인됨`,"common.contentAdmin":`콘텐츠 관리`,"common.close":`닫기`,"common.skipToMain":`본문으로 건너뛰기`,"common.breadcrumb":`이동 경로`,"common.toggleSidebar":`사이드바 전환`,"common.mobileSidebar":`탐색`,"common.mobileSidebarDescription":`사이트 관리 탐색`,"collection.filter.all":`전체`,"nav.home":`홈`,"nav.overview":`개요`,"nav.model":`데이터 모델`,"nav.logic":`로직`,"nav.docs":`인터페이스`,"nav.build":`빌드`,"nav.content":`콘텐츠`,"nav.operations":`레코드`,"nav.media":`미디어 라이브러리`,"nav.more":`더보기`,"nav.settings":`설정`,"nav.staff":`관리자 사용자`,"nav.members":`회원`,"nav.reports":`보고서`,"nav.localizedContent":`현지화된 콘텐츠 포함`,"common.yes":`예`,"common.no":`아니요`,"model.title":`데이터 모델`,"model.schemas":`스키마`,"model.views":`뷰`,"model.objects":`데이터 모델 객체`,"model.search":`데이터 모델 검색`,"model.fields":`필드`,"model.path":`경로`,"model.type":`유형`,"model.required":`필수`,"model.constraints":`제약 조건`,"model.noFields":`객체 속성이 선언되지 않았습니다.`,"model.rawSchema":`JSON 스키마`,"model.rawQuery":`쿼리 계획`,"model.queryKind":`쿼리`,"model.source":`소스`,"model.allFields":`모든 필드`,"model.order":`정렬`,"model.limit":`제한`,"model.dialect":`방언`,"model.filter":`필터`,"model.params":`매개변수`,"model.relationships":`관계`,"model.references":`이 항목이 참조하는 대상`,"model.referencedBy":`이 항목을 참조하는 대상`,"model.noRelations":`Manifest 관계가 선언되지 않았습니다.`,"model.openGraph":`그래프에서 보기`,"model.openDeclaration":`Manifest 선언 열기`,"model.manifest":`Manifest`,"model.compiledManifest":`컴파일된 Manifest`,"model.marker.reference":`{target} 참조`,"model.marker.translationParent":`상위 {target}에 대한 번역 조인`,"model.marker.translationChild":`하위 {target}에서 오는 번역 조인`,"model.marker.unique":`고유 인덱스 UQ{index}: {fields}`,"model.marker.index":`인덱스 IDX{index}: {fields}`,"logic.title":`로직`,"logic.objects":`로직 객체`,"logic.search":`로직 검색`,"logic.triggers":`트리거`,"logic.procedures":`프로시저`,"logic.overview":`개요`,"logic.contract":`계약`,"logic.configuration":`구성`,"logic.contractFrom":`이 진입점은 {target}에서 선언한 계약을 사용합니다.`,"logic.input":`입력`,"logic.output":`출력`,"logic.noContract":`대상 프로시저 계약이 없습니다.`,"logic.execution":`실행 경로`,"logic.target":`대상 프로시저`,"logic.authorization":`권한 부여`,"logic.noAuthorization":`권한 부여 조건이 선언되지 않았습니다.`,"logic.guard":`가드 프로시저`,"logic.method":`메서드`,"logic.surface":`제공 범위`,"logic.hooks":`후크`,"logic.errorPolicy":`오류 정책`,"docs.title":`API 및 에이전트 인터페이스`,"docs.intro":`RuntimePlan에서 파생된 HTTP, MCP 및 브라우저 WebMCP 진입점 참조입니다.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`HTTP 트리거와 자동으로 공개된 공용 뷰 경로입니다.`,"docs.mcpIntro":`뷰와 명시적 MCP 트리거에서 생성된 도구입니다. 도구 실행 시에도 권한 부여가 적용됩니다.`,"docs.webmcpIntro":`이 서버 기반 연동은 HTTP를 통해 공용 뷰를 찾고 읽기 전용 브라우저 도구로 등록합니다. 각 뷰의 대상 규칙은 유지됩니다.`,"docs.publicEndpoint":`공용 엔드포인트`,"docs.staffEndpoint":`스태프 엔드포인트`,"docs.catalogEndpoint":`검색 카탈로그`,"docs.target":`대상`,"docs.inputSchema":`입력 스키마`,"docs.outputSchema":`출력 스키마`,"docs.readOnly":`읽기 전용`,"docs.noEntries":`이 인터페이스에 선언된 진입점이 없습니다.`,"docs.webmcpNote":`공용 프로시저 도구는 MCP에서 계속 제공됩니다. 서버 기반 WebMCP HTTP 래퍼는 의도적으로 공용 뷰만 등록합니다.`,"developer.graph.title":`Manifest 그래프`,"developer.graph.details":`항목 세부정보`,"developer.graph.openModel":`데이터 모델에서 열기`,"developer.graph.openLogic":`로직 세부정보 열기`,"developer.graph.relayout":`자동 배치`,"developer.graph.previous":`이전 단계`,"developer.graph.next":`다음 단계`,"developer.graph.step":`{total}단계 중 {current}단계`,"developer.graph.comesFrom":`이전 항목`,"developer.graph.continuesTo":`다음 항목`,"developer.graph.manifestSource":`Manifest 소스`,"developer.graph.builtin":`기본 제공`,"developer.graph.kind.schema":`스키마`,"developer.graph.kind.view":`뷰`,"developer.graph.kind.procedure":`프로시저`,"developer.graph.kind.trigger":`트리거`,"developer.graph.fact.audience":`대상`,"developer.graph.fact.transport":`전송 방식`,"developer.graph.fact.handler":`핸들러`,"developer.graph.fact.operation":`작업`,"developer.graph.fact.schema":`스키마`,"developer.graph.fact.match":`일치 조건`,"developer.graph.summary.trigger":`{audience}의 요청이 {transport}을 통해 들어와 {target}(으)로 이어집니다.`,"developer.graph.summary.builtin":`기본 제공 {op} 작업이 {schema}에 씁니다.`,"developer.graph.summary.ref":`이 프로시저는 등록된 코드 핸들러 {ref}을(를) 실행합니다.`,"developer.graph.summary.view":`{audience}을(를) 위한 {target}의 읽기 전용 뷰입니다.`,"developer.graph.summary.schema":`{incoming}개 항목이 이 스키마를 사용하며 다른 {outgoing}개 항목을 참조합니다.`,"developer.graph.audience.public":`공개`,"developer.graph.audience.members":`회원`,"developer.graph.audience.staff":`스태프`,"developer.graph.audience.system":`시스템`,"developer.graph.audience.apiClients":`API 클라이언트`,"developer.graph.audienceDescription.public":`로그인하지 않고 사용할 수 있습니다.`,"developer.graph.audienceDescription.members":`로그인한 모든 회원이 사용할 수 있습니다. 사이트 역할은 필요하지 않습니다.`,"developer.graph.audienceDescription.staff":`기여자, 편집자 또는 소유자 사이트 역할을 가진 로그인 회원입니다. 스태프는 액세스 수준이며 별도의 관리자 계정이 아닙니다.`,"developer.graph.audienceDescription.system":`수명 주기, 대기열 또는 예약 이벤트에서 자동으로 실행됩니다.`,"developer.graph.audienceDescription.apiClients":`인증된 API 클라이언트 또는 범위가 필요합니다.`,"developer.graph.relation.translationParent":`번역`,"developer.graph.relation.schemaReference":`참조`,"developer.graph.relation.viewSource":`읽는 소스`,"developer.graph.relation.guard":`보호 대상`,"developer.graph.relation.procedureSchema":`스키마 처리`,"developer.graph.relation.collectionAction":`작업 대상`,"developer.graph.relation.inputReference":`참조`,"developer.graph.relation.triggerTarget":`호출`,"developer.graph.relation.lifecycleSource":`수명 주기 감시`,"status.draft":`초안`,"status.published":`게시됨`,"status.archived":`보관됨`,"preferences.heading":`환경설정`,"preferences.language":`관리 언어`,"preferences.language.search":`언어 검색...`,"preferences.language.noResults":`언어를 찾을 수 없습니다.`,"preferences.direction":`텍스트 방향`,"preferences.direction.auto":`텍스트 방향은 선택한 언어를 따릅니다.`,"preferences.appearance":`화면 모드`,"preferences.light":`라이트`,"preferences.dark":`다크`,"preferences.system":`시스템`,"preferences.ltr":`왼쪽에서 오른쪽`,"preferences.rtl":`오른쪽에서 왼쪽`,"preferences.page.open":`환경설정`,"preferences.page.title":`개인 환경설정`,"preferences.page.body":`이 설정은 이 브라우저에만 저장됩니다. 관리 콘솔에만 적용되며 사이트 설정은 변경하지 않습니다.`,"preferences.page.languageBody":`시스템 페이지와 관리 UI에 사용할 언어를 선택합니다.`,"preferences.page.appearanceBody":`라이트, 다크 또는 운영체제 설정을 따르도록 선택합니다.`},"pt-BR":{"admin.consoleTitle":`Console de administração`,"developer.workspaceTitle":`Desenvolvimento`,"auth.signIn.title":`Entrar`,"common.signOut":`Sair`,"common.viewSite":`Ver site`,"common.copy":`Copiar`,"common.open":`Abrir`,"common.failedToLoad":`Falha ao carregar`,"common.signedIn":`Conectado`,"common.contentAdmin":`Administração de conteúdo`,"common.close":`Fechar`,"common.skipToMain":`Ir para o conteúdo principal`,"common.breadcrumb":`Trilha de navegação`,"common.toggleSidebar":`Alternar barra lateral`,"common.mobileSidebar":`Navegação`,"common.mobileSidebarDescription":`Navegação de administração do site`,"collection.filter.all":`Todos`,"nav.home":`Início`,"nav.overview":`Visão geral`,"nav.model":`Modelo de dados`,"nav.logic":`Lógica`,"nav.docs":`Interfaces`,"nav.build":`Build`,"nav.content":`Conteúdo`,"nav.operations":`Registros`,"nav.media":`Biblioteca de mídia`,"nav.more":`Mais`,"nav.settings":`Configurações`,"nav.staff":`Usuários administradores`,"nav.members":`Membros`,"nav.reports":`Relatórios`,"nav.localizedContent":`Contém conteúdo localizado`,"common.yes":`Sim`,"common.no":`Não`,"model.title":`Modelo de dados`,"model.schemas":`Esquemas`,"model.views":`Visões`,"model.objects":`Objetos do modelo de dados`,"model.search":`Pesquisar modelo de dados`,"model.fields":`Campos`,"model.path":`Caminho`,"model.type":`Tipo`,"model.required":`Obrigatório`,"model.constraints":`Restrições`,"model.noFields":`Nenhuma propriedade de objeto foi declarada.`,"model.rawSchema":`Esquema JSON`,"model.rawQuery":`Plano de consulta`,"model.queryKind":`Consulta`,"model.source":`Origem`,"model.allFields":`Todos os campos`,"model.order":`Ordem`,"model.limit":`Limite`,"model.dialect":`Dialeto`,"model.filter":`Filtro`,"model.params":`Parâmetros`,"model.relationships":`Relacionamentos`,"model.references":`Este item referencia`,"model.referencedBy":`Referencia este item`,"model.noRelations":`Nenhum relacionamento foi declarado no Manifest.`,"model.openGraph":`Mostrar no grafo`,"model.openDeclaration":`Abrir declaração do Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Manifest compilado`,"model.marker.reference":`Referência a {target}`,"model.marker.translationParent":`Junção de tradução com o pai {target}`,"model.marker.translationChild":`Junção de tradução a partir do filho {target}`,"model.marker.unique":`Índice exclusivo UQ{index}: {fields}`,"model.marker.index":`Índice IDX{index}: {fields}`,"logic.title":`Lógica`,"logic.objects":`Objetos de lógica`,"logic.search":`Pesquisar lógica`,"logic.triggers":`Gatilhos`,"logic.procedures":`Procedimentos`,"logic.overview":`Visão geral`,"logic.contract":`Contrato`,"logic.configuration":`Configuração`,"logic.contractFrom":`Este ponto de entrada usa o contrato declarado por {target}.`,"logic.input":`Entrada`,"logic.output":`Saída`,"logic.noContract":`Não há contrato disponível para o procedimento de destino.`,"logic.execution":`Caminho de execução`,"logic.target":`Procedimento de destino`,"logic.authorization":`Autorização`,"logic.noAuthorization":`Nenhuma condição de autorização foi declarada.`,"logic.guard":`Procedimento de proteção`,"logic.method":`Método`,"logic.surface":`Escopo`,"logic.hooks":`Ganchos`,"logic.errorPolicy":`Política de erros`,"docs.title":`Interfaces de API e agentes`,"docs.intro":`Referência derivada do RuntimePlan para pontos de entrada HTTP, MCP e WebMCP do navegador.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`Gatilhos HTTP e rotas de visões públicas expostas automaticamente.`,"docs.mcpIntro":`Ferramentas geradas a partir de visões e gatilhos MCP explícitos. A autorização continua sendo aplicada durante a execução.`,"docs.webmcpIntro":`Esta integração no servidor descobre visões públicas por HTTP e as registra como ferramentas de navegador somente leitura. Cada visão mantém suas próprias regras de público.`,"docs.publicEndpoint":`Endpoint público`,"docs.staffEndpoint":`Endpoint da equipe`,"docs.catalogEndpoint":`Catálogo de descoberta`,"docs.target":`Destino`,"docs.inputSchema":`Esquema de entrada`,"docs.outputSchema":`Esquema de saída`,"docs.readOnly":`Somente leitura`,"docs.noEntries":`Nenhum ponto de entrada foi declarado para esta interface.`,"docs.webmcpNote":`As ferramentas de procedimentos públicos permanecem no MCP. O wrapper HTTP WebMCP no servidor registra intencionalmente apenas visões públicas.`,"developer.graph.title":`Grafo do Manifest`,"developer.graph.details":`Detalhes do item`,"developer.graph.openModel":`Abrir no modelo de dados`,"developer.graph.openLogic":`Abrir detalhes da lógica`,"developer.graph.relayout":`Layout automático`,"developer.graph.previous":`Etapa anterior`,"developer.graph.next":`Próxima etapa`,"developer.graph.step":`Etapa {current} de {total}`,"developer.graph.comesFrom":`Vem de`,"developer.graph.continuesTo":`Continua para`,"developer.graph.manifestSource":`Origem do Manifest`,"developer.graph.builtin":`Integrado`,"developer.graph.kind.schema":`Esquema`,"developer.graph.kind.view":`Visão`,"developer.graph.kind.procedure":`Procedimento`,"developer.graph.kind.trigger":`Gatilho`,"developer.graph.fact.audience":`Público`,"developer.graph.fact.transport":`Transporte`,"developer.graph.fact.handler":`Manipulador`,"developer.graph.fact.operation":`Operação`,"developer.graph.fact.schema":`Esquema`,"developer.graph.fact.match":`Correspondência`,"developer.graph.summary.trigger":`Solicitações de {audience} entram por {transport} e continuam para {target}.`,"developer.graph.summary.builtin":`Uma operação integrada {op} grava em {schema}.`,"developer.graph.summary.ref":`Este procedimento executa o manipulador de código registrado {ref}.`,"developer.graph.summary.view":`Uma visão somente leitura de {target} para {audience}.`,"developer.graph.summary.schema":`{incoming} itens usam este esquema; ele referencia outros {outgoing} itens.`,"developer.graph.audience.public":`Público`,"developer.graph.audience.members":`Membros`,"developer.graph.audience.staff":`Equipe`,"developer.graph.audience.system":`Sistema`,"developer.graph.audience.apiClients":`Clientes de API`,"developer.graph.audienceDescription.public":`Disponível sem entrar.`,"developer.graph.audienceDescription.members":`Qualquer membro conectado. Nenhuma função do site é necessária.`,"developer.graph.audienceDescription.staff":`Um membro conectado com função de colaborador, editor ou proprietário. Equipe é um nível de acesso, não uma conta de administrador separada.`,"developer.graph.audienceDescription.system":`Executado automaticamente por eventos de ciclo de vida, fila ou agendamento.`,"developer.graph.audienceDescription.apiClients":`Requer um cliente de API autenticado ou um escopo apropriado.`,"developer.graph.relation.translationParent":`traduz`,"developer.graph.relation.schemaReference":`referencia`,"developer.graph.relation.viewSource":`lê de`,"developer.graph.relation.guard":`protegido por`,"developer.graph.relation.procedureSchema":`processa o esquema`,"developer.graph.relation.collectionAction":`atua sobre`,"developer.graph.relation.inputReference":`referencia`,"developer.graph.relation.triggerTarget":`invoca`,"developer.graph.relation.lifecycleSource":`observa o ciclo de vida`,"status.draft":`Rascunhos`,"status.published":`Publicado`,"status.archived":`Arquivado`,"preferences.heading":`Preferências`,"preferences.language":`Idioma do admin`,"preferences.language.search":`Pesquisar idiomas...`,"preferences.language.noResults":`Nenhum idioma encontrado.`,"preferences.direction":`Direção do texto`,"preferences.direction.auto":`A direção do texto segue o idioma selecionado.`,"preferences.appearance":`Aparência`,"preferences.light":`Claro`,"preferences.dark":`Escuro`,"preferences.system":`Sistema`,"preferences.ltr":`Esquerda para direita`,"preferences.rtl":`Direita para esquerda`,"preferences.page.open":`Preferências`,"preferences.page.title":`Preferências pessoais`,"preferences.page.body":`Estas preferências ficam neste navegador. Elas mudam apenas o console admin e não alteram as configurações do site.`,"preferences.page.languageBody":`Escolha o idioma das páginas do sistema e da interface admin.`,"preferences.page.appearanceBody":`Escolha claro, escuro ou seguir o sistema operacional.`},ru:{"admin.consoleTitle":`Панель администратора`,"developer.workspaceTitle":`Разработка`,"auth.signIn.title":`Войти`,"common.signOut":`Выйти`,"common.viewSite":`Открыть сайт`,"common.copy":`Копировать`,"common.open":`Открыть`,"common.failedToLoad":`Не удалось загрузить`,"common.signedIn":`Вы вошли`,"common.contentAdmin":`Управление контентом`,"common.close":`Закрыть`,"common.skipToMain":`Перейти к основному содержимому`,"common.breadcrumb":`Навигационная цепочка`,"common.toggleSidebar":`Переключить боковую панель`,"common.mobileSidebar":`Навигация`,"common.mobileSidebarDescription":`Навигация по управлению сайтом`,"collection.filter.all":`Все`,"nav.home":`Главная`,"nav.overview":`Обзор`,"nav.model":`Модель данных`,"nav.logic":`Логика`,"nav.docs":`Интерфейсы`,"nav.build":`Сборка`,"nav.content":`Контент`,"nav.operations":`Записи`,"nav.media":`Медиатека`,"nav.more":`Еще`,"nav.settings":`Настройки`,"nav.staff":`Администраторы`,"nav.members":`Участники`,"nav.reports":`Отчёты`,"nav.localizedContent":`Содержит локализованный контент`,"common.yes":`Да`,"common.no":`Нет`,"model.title":`Модель данных`,"model.schemas":`Схемы`,"model.views":`Представления`,"model.objects":`Объекты модели данных`,"model.search":`Поиск в модели данных`,"model.fields":`Поля`,"model.path":`Путь`,"model.type":`Тип`,"model.required":`Обязательно`,"model.constraints":`Ограничения`,"model.noFields":`Свойства объекта не объявлены.`,"model.rawSchema":`Схема JSON`,"model.rawQuery":`План запроса`,"model.queryKind":`Запрос`,"model.source":`Источник`,"model.allFields":`Все поля`,"model.order":`Порядок`,"model.limit":`Лимит`,"model.dialect":`Диалект`,"model.filter":`Фильтр`,"model.params":`Параметры`,"model.relationships":`Связи`,"model.references":`Этот элемент ссылается на`,"model.referencedBy":`Ссылается на этот элемент`,"model.noRelations":`Связи в Manifest не объявлены.`,"model.openGraph":`Показать на графе`,"model.openDeclaration":`Открыть объявление Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Скомпилированный Manifest`,"model.marker.reference":`Ссылка на {target}`,"model.marker.translationParent":`Связь перевода с родителем {target}`,"model.marker.translationChild":`Связь перевода от потомка {target}`,"model.marker.unique":`Уникальный индекс UQ{index}: {fields}`,"model.marker.index":`Индекс IDX{index}: {fields}`,"logic.title":`Логика`,"logic.objects":`Объекты логики`,"logic.search":`Поиск логики`,"logic.triggers":`Триггеры`,"logic.procedures":`Процедуры`,"logic.overview":`Обзор`,"logic.contract":`Контракт`,"logic.configuration":`Конфигурация`,"logic.contractFrom":`Эта точка входа использует контракт, объявленный в {target}.`,"logic.input":`Вход`,"logic.output":`Выход`,"logic.noContract":`Контракт целевой процедуры недоступен.`,"logic.execution":`Путь выполнения`,"logic.target":`Целевая процедура`,"logic.authorization":`Авторизация`,"logic.noAuthorization":`Условия авторизации не объявлены.`,"logic.guard":`Защитная процедура`,"logic.method":`Метод`,"logic.surface":`Область доступа`,"logic.hooks":`Перехватчики`,"logic.errorPolicy":`Политика ошибок`,"docs.title":`Интерфейсы API и агентов`,"docs.intro":`Справочник точек входа HTTP, MCP и браузерного WebMCP, сформированный из RuntimePlan.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`HTTP-триггеры и автоматически опубликованные маршруты общедоступных представлений.`,"docs.mcpIntro":`Инструменты, сформированные из представлений и явно заданных MCP-триггеров. Авторизация по-прежнему проверяется при запуске.`,"docs.webmcpIntro":`Эта серверная интеграция обнаруживает общедоступные представления через HTTP и регистрирует их как браузерные инструменты только для чтения. Правила аудитории каждого представления сохраняются.`,"docs.publicEndpoint":`Общедоступная точка входа`,"docs.staffEndpoint":`Точка входа для сотрудников`,"docs.catalogEndpoint":`Каталог обнаружения`,"docs.target":`Цель`,"docs.inputSchema":`Схема входа`,"docs.outputSchema":`Схема выхода`,"docs.readOnly":`Только чтение`,"docs.noEntries":`Для этого интерфейса точки входа не объявлены.`,"docs.webmcpNote":`Инструменты общедоступных процедур остаются в MCP. Серверная HTTP-обёртка WebMCP намеренно регистрирует только общедоступные представления.`,"developer.graph.title":`Граф Manifest`,"developer.graph.details":`Сведения об элементе`,"developer.graph.openModel":`Открыть в модели данных`,"developer.graph.openLogic":`Открыть сведения о логике`,"developer.graph.relayout":`Автоматическая раскладка`,"developer.graph.previous":`Предыдущий шаг`,"developer.graph.next":`Следующий шаг`,"developer.graph.step":`Шаг {current} из {total}`,"developer.graph.comesFrom":`Приходит из`,"developer.graph.continuesTo":`Продолжается в`,"developer.graph.manifestSource":`Источник Manifest`,"developer.graph.builtin":`Встроено`,"developer.graph.kind.schema":`Схема`,"developer.graph.kind.view":`Представление`,"developer.graph.kind.procedure":`Процедура`,"developer.graph.kind.trigger":`Триггер`,"developer.graph.fact.audience":`Аудитория`,"developer.graph.fact.transport":`Транспорт`,"developer.graph.fact.handler":`Обработчик`,"developer.graph.fact.operation":`Операция`,"developer.graph.fact.schema":`Схема`,"developer.graph.fact.match":`Условие`,"developer.graph.summary.trigger":`Запросы от {audience} поступают через {transport} и переходят к {target}.`,"developer.graph.summary.builtin":`Встроенная операция {op} записывает данные в {schema}.`,"developer.graph.summary.ref":`Эта процедура запускает зарегистрированный обработчик кода {ref}.`,"developer.graph.summary.view":`Представление {target} только для чтения для аудитории {audience}.`,"developer.graph.summary.schema":`{incoming} элементов используют эту схему; она ссылается ещё на {outgoing} элементов.`,"developer.graph.audience.public":`Публично`,"developer.graph.audience.members":`Участники`,"developer.graph.audience.staff":`Сотрудники`,"developer.graph.audience.system":`Система`,"developer.graph.audience.apiClients":`Клиенты API`,"developer.graph.audienceDescription.public":`Доступно без входа.`,"developer.graph.audienceDescription.members":`Любой вошедший участник. Роль на сайте не требуется.`,"developer.graph.audienceDescription.staff":`Вошедший участник с ролью автора, редактора или владельца. Сотрудники — это уровень доступа, а не отдельная учётная запись администратора.`,"developer.graph.audienceDescription.system":`Запускается автоматически событиями жизненного цикла, очереди или расписания.`,"developer.graph.audienceDescription.apiClients":`Требуется аутентифицированный клиент API или область доступа.`,"developer.graph.relation.translationParent":`переводит`,"developer.graph.relation.schemaReference":`ссылается на`,"developer.graph.relation.viewSource":`читает из`,"developer.graph.relation.guard":`защищено`,"developer.graph.relation.procedureSchema":`обрабатывает схему`,"developer.graph.relation.collectionAction":`действует на`,"developer.graph.relation.inputReference":`ссылается на`,"developer.graph.relation.triggerTarget":`вызывает`,"developer.graph.relation.lifecycleSource":`следит за жизненным циклом`,"status.draft":`Черновики`,"status.published":`Опубликовано`,"status.archived":`Архив`,"preferences.heading":`Предпочтения`,"preferences.language":`Язык админки`,"preferences.language.search":`Поиск языков...`,"preferences.language.noResults":`Языки не найдены.`,"preferences.direction":`Направление текста`,"preferences.direction.auto":`Направление текста следует выбранному языку.`,"preferences.appearance":`Внешний вид`,"preferences.light":`Светлая`,"preferences.dark":`Темная`,"preferences.system":`Система`,"preferences.ltr":`Слева направо`,"preferences.rtl":`Справа налево`,"preferences.page.open":`Предпочтения`,"preferences.page.title":`Личные предпочтения`,"preferences.page.body":`Эти предпочтения хранятся в этом браузере. Они меняют только админ-консоль и не изменяют настройки сайта.`,"preferences.page.languageBody":`Выберите язык системных страниц и интерфейса админки.`,"preferences.page.appearanceBody":`Выберите светлую, темную тему или тему системы.`},nl:{"admin.consoleTitle":`Beheerconsole`,"developer.workspaceTitle":`Ontwikkeling`,"auth.signIn.title":`Inloggen`,"common.signOut":`Uitloggen`,"common.viewSite":`Site bekijken`,"common.copy":`Kopiëren`,"common.open":`Openen`,"common.failedToLoad":`Laden mislukt`,"common.signedIn":`Ingelogd`,"common.contentAdmin":`Contentbeheer`,"common.close":`Sluiten`,"common.skipToMain":`Naar hoofdinhoud`,"common.breadcrumb":`Kruimelpad`,"common.toggleSidebar":`Zijbalk wisselen`,"common.mobileSidebar":`Navigatie`,"common.mobileSidebarDescription":`Navigatie voor sitebeheer`,"collection.filter.all":`Alles`,"nav.home":`Home`,"nav.overview":`Overzicht`,"nav.model":`Datamodel`,"nav.logic":`Logica`,"nav.docs":`Interfaces`,"nav.build":`Build`,"nav.content":`Content`,"nav.operations":`Records`,"nav.media":`Mediabibliotheek`,"nav.more":`Meer`,"nav.settings":`Instellingen`,"nav.staff":`Beheerders`,"nav.members":`Leden`,"nav.reports":`Rapporten`,"nav.localizedContent":`Bevat gelokaliseerde content`,"common.yes":`Ja`,"common.no":`Nee`,"model.title":`Datamodel`,"model.schemas":`Schema’s`,"model.views":`Weergaven`,"model.objects":`Datamodelobjecten`,"model.search":`Datamodel doorzoeken`,"model.fields":`Velden`,"model.path":`Pad`,"model.type":`Type`,"model.required":`Verplicht`,"model.constraints":`Beperkingen`,"model.noFields":`Er zijn geen objecteigenschappen gedeclareerd.`,"model.rawSchema":`JSON-schema`,"model.rawQuery":`Queryplan`,"model.queryKind":`Query`,"model.source":`Bron`,"model.allFields":`Alle velden`,"model.order":`Volgorde`,"model.limit":`Limiet`,"model.dialect":`Dialect`,"model.filter":`Filter`,"model.params":`Parameters`,"model.relationships":`Relaties`,"model.references":`Dit item verwijst naar`,"model.referencedBy":`Verwijst naar dit item`,"model.noRelations":`Er zijn geen Manifest-relaties gedeclareerd.`,"model.openGraph":`In grafiek weergeven`,"model.openDeclaration":`Manifest-declaratie openen`,"model.manifest":`Manifest`,"model.compiledManifest":`Gecompileerd Manifest`,"model.marker.reference":`Verwijzing naar {target}`,"model.marker.translationParent":`Vertalingskoppeling naar bovenliggend item {target}`,"model.marker.translationChild":`Vertalingskoppeling vanuit onderliggend item {target}`,"model.marker.unique":`Unieke index UQ{index}: {fields}`,"model.marker.index":`Index IDX{index}: {fields}`,"logic.title":`Logica`,"logic.objects":`Logicaobjecten`,"logic.search":`Logica doorzoeken`,"logic.triggers":`Triggers`,"logic.procedures":`Procedures`,"logic.overview":`Overzicht`,"logic.contract":`Contract`,"logic.configuration":`Configuratie`,"logic.contractFrom":`Dit toegangspunt gebruikt het contract dat door {target} is gedeclareerd.`,"logic.input":`Invoer`,"logic.output":`Uitvoer`,"logic.noContract":`Er is geen contract voor de doelprocedure beschikbaar.`,"logic.execution":`Uitvoeringspad`,"logic.target":`Doelprocedure`,"logic.authorization":`Autorisatie`,"logic.noAuthorization":`Er zijn geen autorisatievoorwaarden gedeclareerd.`,"logic.guard":`Bewakingsprocedure`,"logic.method":`Methode`,"logic.surface":`Bereik`,"logic.hooks":`Hooks`,"logic.errorPolicy":`Foutbeleid`,"docs.title":`API- en agentinterfaces`,"docs.intro":`Uit RuntimePlan afgeleide referentie voor HTTP-, MCP- en browser-WebMCP-toegangspunten.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`HTTP-triggers en automatisch gepubliceerde routes voor openbare weergaven.`,"docs.mcpIntro":`Hulpmiddelen die uit weergaven en expliciete MCP-triggers zijn afgeleid. Autorisatie blijft tijdens uitvoering van kracht.`,"docs.webmcpIntro":`Deze serverintegratie ontdekt openbare weergaven via HTTP en registreert ze als alleen-lezen browserhulpmiddelen. Elke weergave behoudt haar eigen doelgroepsregels.`,"docs.publicEndpoint":`Openbaar toegangspunt`,"docs.staffEndpoint":`Toegangspunt voor medewerkers`,"docs.catalogEndpoint":`Ontdekkingscatalogus`,"docs.target":`Doel`,"docs.inputSchema":`Invoerschema`,"docs.outputSchema":`Uitvoerschema`,"docs.readOnly":`Alleen-lezen`,"docs.noEntries":`Voor deze interface zijn geen toegangspunten gedeclareerd.`,"docs.webmcpNote":`Hulpmiddelen voor openbare procedures blijven via MCP beschikbaar. De servergestuurde WebMCP HTTP-wrapper registreert bewust alleen openbare weergaven.`,"developer.graph.title":`Manifest-grafiek`,"developer.graph.details":`Itemdetails`,"developer.graph.openModel":`Openen in datamodel`,"developer.graph.openLogic":`Logicadetails openen`,"developer.graph.relayout":`Automatisch indelen`,"developer.graph.previous":`Vorige stap`,"developer.graph.next":`Volgende stap`,"developer.graph.step":`Stap {current} van {total}`,"developer.graph.comesFrom":`Komt van`,"developer.graph.continuesTo":`Gaat verder naar`,"developer.graph.manifestSource":`Manifest-bron`,"developer.graph.builtin":`Ingebouwd`,"developer.graph.kind.schema":`Schema`,"developer.graph.kind.view":`Weergave`,"developer.graph.kind.procedure":`Procedure`,"developer.graph.kind.trigger":`Trigger`,"developer.graph.fact.audience":`Doelgroep`,"developer.graph.fact.transport":`Transport`,"developer.graph.fact.handler":`Handler`,"developer.graph.fact.operation":`Bewerking`,"developer.graph.fact.schema":`Schema`,"developer.graph.fact.match":`Overeenkomst`,"developer.graph.summary.trigger":`Verzoeken van {audience} komen binnen via {transport} en gaan verder naar {target}.`,"developer.graph.summary.builtin":`Een ingebouwde {op}-bewerking schrijft naar {schema}.`,"developer.graph.summary.ref":`Deze procedure voert de geregistreerde codehandler {ref} uit.`,"developer.graph.summary.view":`Een alleen-lezen weergave van {target} voor {audience}.`,"developer.graph.summary.schema":`{incoming} items gebruiken dit schema; het verwijst naar {outgoing} andere items.`,"developer.graph.audience.public":`Openbaar`,"developer.graph.audience.members":`Leden`,"developer.graph.audience.staff":`Medewerkers`,"developer.graph.audience.system":`Systeem`,"developer.graph.audience.apiClients":`API-clients`,"developer.graph.audienceDescription.public":`Beschikbaar zonder inloggen.`,"developer.graph.audienceDescription.members":`Elk ingelogd lid. Geen siterol vereist.`,"developer.graph.audienceDescription.staff":`Een ingelogd lid met de siterol bijdrager, redacteur of eigenaar. Medewerker is een toegangsniveau, geen afzonderlijk beheerdersaccount.`,"developer.graph.audienceDescription.system":`Wordt automatisch uitgevoerd door levenscyclus-, wachtrij- of planninggebeurtenissen.`,"developer.graph.audienceDescription.apiClients":`Vereist een geverifieerde API-client of passend bereik.`,"developer.graph.relation.translationParent":`vertaalt`,"developer.graph.relation.schemaReference":`verwijst naar`,"developer.graph.relation.viewSource":`leest uit`,"developer.graph.relation.guard":`bewaakt door`,"developer.graph.relation.procedureSchema":`verwerkt schema`,"developer.graph.relation.collectionAction":`werkt op`,"developer.graph.relation.inputReference":`verwijst naar`,"developer.graph.relation.triggerTarget":`roept aan`,"developer.graph.relation.lifecycleSource":`bewaakt levenscyclus`,"status.draft":`Concepten`,"status.published":`Gepubliceerd`,"status.archived":`Gearchiveerd`,"preferences.heading":`Voorkeuren`,"preferences.language":`Beheertaal`,"preferences.language.search":`Talen zoeken...`,"preferences.language.noResults":`Geen talen gevonden.`,"preferences.direction":`Tekstrichting`,"preferences.direction.auto":`De tekstrichting volgt de gekozen taal.`,"preferences.appearance":`Weergave`,"preferences.light":`Licht`,"preferences.dark":`Donker`,"preferences.system":`Systeem`,"preferences.ltr":`Links naar rechts`,"preferences.rtl":`Rechts naar links`,"preferences.page.open":`Voorkeuren`,"preferences.page.title":`Persoonlijke voorkeuren`,"preferences.page.body":`Deze voorkeuren blijven in deze browser. Ze wijzigen alleen de adminconsole en niet de site-instellingen.`,"preferences.page.languageBody":`Kies de taal voor systeempagina's en de admininterface.`,"preferences.page.appearanceBody":`Kies licht, donker of volg het besturingssysteem.`},pl:{"admin.consoleTitle":`Konsola administracyjna`,"developer.workspaceTitle":`Programowanie`,"auth.signIn.title":`Zaloguj się`,"common.signOut":`Wyloguj się`,"common.viewSite":`Zobacz stronę`,"common.copy":`Kopiuj`,"common.open":`Otwórz`,"common.failedToLoad":`Nie udało się załadować`,"common.signedIn":`Zalogowano`,"common.contentAdmin":`Zarządzanie treścią`,"common.close":`Zamknij`,"common.skipToMain":`Przejdź do głównej treści`,"common.breadcrumb":`Ścieżka nawigacji`,"common.toggleSidebar":`Przełącz pasek boczny`,"common.mobileSidebar":`Nawigacja`,"common.mobileSidebarDescription":`Nawigacja administracyjna witryny`,"collection.filter.all":`Wszystkie`,"nav.home":`Start`,"nav.overview":`Przegląd`,"nav.model":`Model danych`,"nav.logic":`Logika`,"nav.docs":`Interfejsy`,"nav.build":`Kompilacja`,"nav.content":`Treści`,"nav.operations":`Rekordy`,"nav.media":`Biblioteka mediów`,"nav.more":`Więcej`,"nav.settings":`Ustawienia`,"nav.staff":`Administratorzy`,"nav.members":`Członkowie`,"nav.reports":`Raporty`,"nav.localizedContent":`Zawiera zlokalizowaną treść`,"common.yes":`Tak`,"common.no":`Nie`,"model.title":`Model danych`,"model.schemas":`Schematy`,"model.views":`Widoki`,"model.objects":`Obiekty modelu danych`,"model.search":`Przeszukaj model danych`,"model.fields":`Pola`,"model.path":`Ścieżka`,"model.type":`Typ`,"model.required":`Wymagane`,"model.constraints":`Ograniczenia`,"model.noFields":`Nie zadeklarowano właściwości obiektu.`,"model.rawSchema":`Schemat JSON`,"model.rawQuery":`Plan zapytania`,"model.queryKind":`Zapytanie`,"model.source":`Źródło`,"model.allFields":`Wszystkie pola`,"model.order":`Kolejność`,"model.limit":`Limit`,"model.dialect":`Dialekt`,"model.filter":`Filtr`,"model.params":`Parametry`,"model.relationships":`Relacje`,"model.references":`Ten element odwołuje się do`,"model.referencedBy":`Odwołuje się do tego elementu`,"model.noRelations":`Nie zadeklarowano relacji w Manifest.`,"model.openGraph":`Pokaż na grafie`,"model.openDeclaration":`Otwórz deklarację Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Skompilowany Manifest`,"model.marker.reference":`Odwołanie do {target}`,"model.marker.translationParent":`Połączenie tłumaczenia z rodzicem {target}`,"model.marker.translationChild":`Połączenie tłumaczenia od elementu podrzędnego {target}`,"model.marker.unique":`Unikalny indeks UQ{index}: {fields}`,"model.marker.index":`Indeks IDX{index}: {fields}`,"logic.title":`Logika`,"logic.objects":`Obiekty logiki`,"logic.search":`Przeszukaj logikę`,"logic.triggers":`Wyzwalacze`,"logic.procedures":`Procedury`,"logic.overview":`Przegląd`,"logic.contract":`Kontrakt`,"logic.configuration":`Konfiguracja`,"logic.contractFrom":`Ten punkt wejścia używa kontraktu zadeklarowanego przez {target}.`,"logic.input":`Wejście`,"logic.output":`Wyjście`,"logic.noContract":`Kontrakt procedury docelowej jest niedostępny.`,"logic.execution":`Ścieżka wykonania`,"logic.target":`Procedura docelowa`,"logic.authorization":`Autoryzacja`,"logic.noAuthorization":`Nie zadeklarowano warunków autoryzacji.`,"logic.guard":`Procedura ochronna`,"logic.method":`Metoda`,"logic.surface":`Zakres`,"logic.hooks":`Punkty zaczepienia`,"logic.errorPolicy":`Zasady obsługi błędów`,"docs.title":`Interfejsy API i agentów`,"docs.intro":`Dokumentacja punktów wejścia HTTP, MCP i przeglądarkowego WebMCP utworzona z RuntimePlan.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`Wyzwalacze HTTP i automatycznie udostępnione trasy widoków publicznych.`,"docs.mcpIntro":`Narzędzia utworzone z widoków i jawnych wyzwalaczy MCP. Autoryzacja nadal obowiązuje podczas uruchamiania.`,"docs.webmcpIntro":`Ta integracja serwerowa wykrywa widoki publiczne przez HTTP i rejestruje je jako narzędzia przeglądarkowe tylko do odczytu. Każdy widok zachowuje własne reguły odbiorców.`,"docs.publicEndpoint":`Publiczny punkt wejścia`,"docs.staffEndpoint":`Punkt wejścia dla personelu`,"docs.catalogEndpoint":`Katalog wykrywania`,"docs.target":`Cel`,"docs.inputSchema":`Schemat wejścia`,"docs.outputSchema":`Schemat wyjścia`,"docs.readOnly":`Tylko do odczytu`,"docs.noEntries":`Nie zadeklarowano punktów wejścia dla tego interfejsu.`,"docs.webmcpNote":`Narzędzia procedur publicznych pozostają dostępne w MCP. Serwerowa otoczka HTTP WebMCP celowo rejestruje tylko widoki publiczne.`,"developer.graph.title":`Graf Manifest`,"developer.graph.details":`Szczegóły elementu`,"developer.graph.openModel":`Otwórz w modelu danych`,"developer.graph.openLogic":`Otwórz szczegóły logiki`,"developer.graph.relayout":`Automatyczny układ`,"developer.graph.previous":`Poprzedni krok`,"developer.graph.next":`Następny krok`,"developer.graph.step":`Krok {current} z {total}`,"developer.graph.comesFrom":`Pochodzi z`,"developer.graph.continuesTo":`Przechodzi do`,"developer.graph.manifestSource":`Źródło Manifest`,"developer.graph.builtin":`Wbudowane`,"developer.graph.kind.schema":`Schemat`,"developer.graph.kind.view":`Widok`,"developer.graph.kind.procedure":`Procedura`,"developer.graph.kind.trigger":`Wyzwalacz`,"developer.graph.fact.audience":`Odbiorcy`,"developer.graph.fact.transport":`Transport`,"developer.graph.fact.handler":`Procedura obsługi`,"developer.graph.fact.operation":`Operacja`,"developer.graph.fact.schema":`Schemat`,"developer.graph.fact.match":`Dopasowanie`,"developer.graph.summary.trigger":`Żądania od {audience} przychodzą przez {transport} i przechodzą do {target}.`,"developer.graph.summary.builtin":`Wbudowana operacja {op} zapisuje do {schema}.`,"developer.graph.summary.ref":`Ta procedura uruchamia zarejestrowaną procedurę obsługi kodu {ref}.`,"developer.graph.summary.view":`Widok {target} tylko do odczytu dla {audience}.`,"developer.graph.summary.schema":`{incoming} elementów używa tego schematu; odwołuje się on do {outgoing} innych elementów.`,"developer.graph.audience.public":`Publiczne`,"developer.graph.audience.members":`Członkowie`,"developer.graph.audience.staff":`Personel`,"developer.graph.audience.system":`System`,"developer.graph.audience.apiClients":`Klienci API`,"developer.graph.audienceDescription.public":`Dostępne bez logowania.`,"developer.graph.audienceDescription.members":`Każdy zalogowany członek. Rola w witrynie nie jest wymagana.`,"developer.graph.audienceDescription.staff":`Zalogowany członek z rolą współtwórcy, redaktora lub właściciela. Personel to poziom dostępu, a nie osobne konto administratora.`,"developer.graph.audienceDescription.system":`Uruchamiane automatycznie przez zdarzenia cyklu życia, kolejki lub harmonogramu.`,"developer.graph.audienceDescription.apiClients":`Wymaga uwierzytelnionego klienta API lub odpowiedniego zakresu.`,"developer.graph.relation.translationParent":`tłumaczy`,"developer.graph.relation.schemaReference":`odwołuje się do`,"developer.graph.relation.viewSource":`czyta z`,"developer.graph.relation.guard":`chronione przez`,"developer.graph.relation.procedureSchema":`obsługuje schemat`,"developer.graph.relation.collectionAction":`działa na`,"developer.graph.relation.inputReference":`odwołuje się do`,"developer.graph.relation.triggerTarget":`wywołuje`,"developer.graph.relation.lifecycleSource":`obserwuje cykl życia`,"status.draft":`Szkice`,"status.published":`Opublikowane`,"status.archived":`Zarchiwizowane`,"preferences.heading":`Preferencje`,"preferences.language":`Język panelu`,"preferences.language.search":`Szukaj języków...`,"preferences.language.noResults":`Nie znaleziono języków.`,"preferences.direction":`Kierunek tekstu`,"preferences.direction.auto":`Kierunek tekstu wynika z wybranego języka.`,"preferences.appearance":`Wygląd`,"preferences.light":`Jasny`,"preferences.dark":`Ciemny`,"preferences.system":`System`,"preferences.ltr":`Od lewej do prawej`,"preferences.rtl":`Od prawej do lewej`,"preferences.page.open":`Preferencje`,"preferences.page.title":`Preferencje osobiste`,"preferences.page.body":`Te preferencje są zapisane w tej przeglądarce. Zmieniają tylko konsolę administracyjną, nie ustawienia strony.`,"preferences.page.languageBody":`Wybierz język stron systemowych i interfejsu admina.`,"preferences.page.appearanceBody":`Wybierz jasny, ciemny lub zgodny z systemem.`},tr:{"admin.consoleTitle":`Yönetim konsolu`,"developer.workspaceTitle":`Geliştirme`,"auth.signIn.title":`Oturum aç`,"common.signOut":`Çıkış yap`,"common.viewSite":`Siteyi görüntüle`,"common.copy":`Kopyala`,"common.open":`Aç`,"common.failedToLoad":`Yüklenemedi`,"common.signedIn":`Oturum açık`,"common.contentAdmin":`İçerik yönetimi`,"common.close":`Kapat`,"common.skipToMain":`Ana içeriğe geç`,"common.breadcrumb":`Gezinti yolu`,"common.toggleSidebar":`Kenar çubuğunu aç/kapat`,"common.mobileSidebar":`Gezinme`,"common.mobileSidebarDescription":`Site yönetimi gezinmesi`,"collection.filter.all":`Tümü`,"nav.home":`Ana sayfa`,"nav.overview":`Genel bakış`,"nav.model":`Veri modeli`,"nav.logic":`Mantık`,"nav.docs":`Arayüzler`,"nav.build":`Derleme`,"nav.content":`İçerik`,"nav.operations":`Kayıtlar`,"nav.media":`Medya kitaplığı`,"nav.more":`Daha fazla`,"nav.settings":`Ayarlar`,"nav.staff":`Yönetici kullanıcılar`,"nav.members":`Üyeler`,"nav.reports":`Raporlar`,"nav.localizedContent":`Yerelleştirilmiş içerik barındırır`,"common.yes":`Evet`,"common.no":`Hayır`,"model.title":`Veri modeli`,"model.schemas":`Şemalar`,"model.views":`Görünümler`,"model.objects":`Veri modeli nesneleri`,"model.search":`Veri modelinde ara`,"model.fields":`Alanlar`,"model.path":`Yol`,"model.type":`Tür`,"model.required":`Zorunlu`,"model.constraints":`Kısıtlamalar`,"model.noFields":`Nesne özelliği bildirilmemiş.`,"model.rawSchema":`JSON şeması`,"model.rawQuery":`Sorgu planı`,"model.queryKind":`Sorgu`,"model.source":`Kaynak`,"model.allFields":`Tüm alanlar`,"model.order":`Sıralama`,"model.limit":`Sınır`,"model.dialect":`Lehçe`,"model.filter":`Filtre`,"model.params":`Parametreler`,"model.relationships":`İlişkiler`,"model.references":`Bu öğenin başvurduğu öğeler`,"model.referencedBy":`Bu öğeye başvuran öğeler`,"model.noRelations":`Manifest ilişkisi bildirilmemiş.`,"model.openGraph":`Grafikte göster`,"model.openDeclaration":`Manifest bildirimini aç`,"model.manifest":`Manifest`,"model.compiledManifest":`Derlenmiş Manifest`,"model.marker.reference":`{target} başvurusu`,"model.marker.translationParent":`Üst öğe {target} ile çeviri bağlantısı`,"model.marker.translationChild":`Alt öğe {target} üzerinden çeviri bağlantısı`,"model.marker.unique":`Benzersiz dizin UQ{index}: {fields}`,"model.marker.index":`Dizin IDX{index}: {fields}`,"logic.title":`Mantık`,"logic.objects":`Mantık nesneleri`,"logic.search":`Mantıkta ara`,"logic.triggers":`Tetikleyiciler`,"logic.procedures":`Prosedürler`,"logic.overview":`Genel bakış`,"logic.contract":`Sözleşme`,"logic.configuration":`Yapılandırma`,"logic.contractFrom":`Bu giriş noktası {target} tarafından bildirilen sözleşmeyi kullanır.`,"logic.input":`Girdi`,"logic.output":`Çıktı`,"logic.noContract":`Hedef prosedür sözleşmesi yok.`,"logic.execution":`Yürütme yolu`,"logic.target":`Hedef prosedür`,"logic.authorization":`Yetkilendirme`,"logic.noAuthorization":`Yetkilendirme koşulu bildirilmemiş.`,"logic.guard":`Koruma prosedürü`,"logic.method":`Yöntem`,"logic.surface":`Kapsam`,"logic.hooks":`Kancalar`,"logic.errorPolicy":`Hata politikası`,"docs.title":`API ve ajan arayüzleri`,"docs.intro":`HTTP, MCP ve tarayıcı WebMCP giriş noktaları için RuntimePlan’den türetilen başvuru.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`HTTP tetikleyicileri ve otomatik olarak yayınlanan genel görünüm yolları.`,"docs.mcpIntro":`Görünümlerden ve açık MCP tetikleyicilerinden üretilen araçlar. Araç çalıştırılırken yetkilendirme uygulanmaya devam eder.`,"docs.webmcpIntro":`Bu sunucu destekli bağlantı, genel görünümleri HTTP üzerinden keşfeder ve salt okunur tarayıcı araçları olarak kaydeder. Her görünüm kendi hedef kitle kurallarını korur.`,"docs.publicEndpoint":`Genel uç nokta`,"docs.staffEndpoint":`Personel uç noktası`,"docs.catalogEndpoint":`Keşif kataloğu`,"docs.target":`Hedef`,"docs.inputSchema":`Girdi şeması`,"docs.outputSchema":`Çıktı şeması`,"docs.readOnly":`Salt okunur`,"docs.noEntries":`Bu arayüz için giriş noktası bildirilmemiş.`,"docs.webmcpNote":`Genel prosedür araçları MCP’de kalır. Sunucu destekli WebMCP HTTP sarmalayıcısı kasıtlı olarak yalnızca genel görünümleri kaydeder.`,"developer.graph.title":`Manifest grafiği`,"developer.graph.details":`Öğe ayrıntıları`,"developer.graph.openModel":`Veri modelinde aç`,"developer.graph.openLogic":`Mantık ayrıntılarını aç`,"developer.graph.relayout":`Otomatik yerleşim`,"developer.graph.previous":`Önceki adım`,"developer.graph.next":`Sonraki adım`,"developer.graph.step":`{total} adımın {current}. adımı`,"developer.graph.comesFrom":`Geldiği yer`,"developer.graph.continuesTo":`Devam ettiği yer`,"developer.graph.manifestSource":`Manifest kaynağı`,"developer.graph.builtin":`Yerleşik`,"developer.graph.kind.schema":`Şema`,"developer.graph.kind.view":`Görünüm`,"developer.graph.kind.procedure":`Prosedür`,"developer.graph.kind.trigger":`Tetikleyici`,"developer.graph.fact.audience":`Hedef kitle`,"developer.graph.fact.transport":`Aktarım`,"developer.graph.fact.handler":`İşleyici`,"developer.graph.fact.operation":`İşlem`,"developer.graph.fact.schema":`Şema`,"developer.graph.fact.match":`Eşleşme`,"developer.graph.summary.trigger":`{audience} istekleri {transport} üzerinden girer ve {target} hedefine devam eder.`,"developer.graph.summary.builtin":`Yerleşik bir {op} işlemi {schema} üzerine yazar.`,"developer.graph.summary.ref":`Bu prosedür kayıtlı {ref} kod işleyicisini çalıştırır.`,"developer.graph.summary.view":`{audience} için {target} üzerinde salt okunur bir görünüm.`,"developer.graph.summary.schema":`{incoming} öğe bu şemayı kullanır; şema başka {outgoing} öğeye başvurur.`,"developer.graph.audience.public":`Genel`,"developer.graph.audience.members":`Üyeler`,"developer.graph.audience.staff":`Personel`,"developer.graph.audience.system":`Sistem`,"developer.graph.audience.apiClients":`API istemcileri`,"developer.graph.audienceDescription.public":`Oturum açmadan kullanılabilir.`,"developer.graph.audienceDescription.members":`Oturum açmış herhangi bir üye. Site rolü gerekmez.`,"developer.graph.audienceDescription.staff":`Katkıda bulunan, editör veya sahip site rolüne sahip oturum açmış bir üye. Personel ayrı bir yönetici hesabı değil, erişim düzeyidir.`,"developer.graph.audienceDescription.system":`Yaşam döngüsü, kuyruk veya zamanlama olaylarından otomatik çalışır.`,"developer.graph.audienceDescription.apiClients":`Kimliği doğrulanmış bir API istemcisi veya kapsam gerektirir.`,"developer.graph.relation.translationParent":`çevirir`,"developer.graph.relation.schemaReference":`başvurur`,"developer.graph.relation.viewSource":`şuradan okur`,"developer.graph.relation.guard":`şununla korunur`,"developer.graph.relation.procedureSchema":`şemayı işler`,"developer.graph.relation.collectionAction":`üzerinde işlem yapar`,"developer.graph.relation.inputReference":`başvurur`,"developer.graph.relation.triggerTarget":`çağırır`,"developer.graph.relation.lifecycleSource":`yaşam döngüsünü izler`,"status.draft":`Taslaklar`,"status.published":`Yayında`,"status.archived":`Arşivlendi`,"preferences.heading":`Tercihler`,"preferences.language":`Yönetici dili`,"preferences.language.search":`Dil ara...`,"preferences.language.noResults":`Dil bulunamadı.`,"preferences.direction":`Metin yönü`,"preferences.direction.auto":`Metin yönü seçilen dili izler.`,"preferences.appearance":`Görünüm`,"preferences.light":`Açık`,"preferences.dark":`Koyu`,"preferences.system":`Sistem`,"preferences.ltr":`Soldan sağa`,"preferences.rtl":`Sağdan sola`,"preferences.page.open":`Tercihler`,"preferences.page.title":`Kişisel tercihler`,"preferences.page.body":`Bu tercihler bu tarayıcıda kalır. Yalnızca yönetim konsolunu değiştirir, site ayarlarını değiştirmez.`,"preferences.page.languageBody":`Sistem sayfaları ve yönetim arayüzü için dili seçin.`,"preferences.page.appearanceBody":`Açık, koyu veya işletim sistemini takip et seçeneğini seçin.`},vi:{"admin.consoleTitle":`Bảng điều khiển quản trị`,"developer.workspaceTitle":`Phát triển`,"auth.signIn.title":`Đăng nhập`,"common.signOut":`Đăng xuất`,"common.viewSite":`Xem trang`,"common.copy":`Sao chép`,"common.open":`Mở`,"common.failedToLoad":`Tải thất bại`,"common.signedIn":`Đã đăng nhập`,"common.contentAdmin":`Quản trị nội dung`,"common.close":`Đóng`,"common.skipToMain":`Chuyển đến nội dung chính`,"common.breadcrumb":`Đường dẫn điều hướng`,"common.toggleSidebar":`Bật/tắt thanh bên`,"common.mobileSidebar":`Điều hướng`,"common.mobileSidebarDescription":`Điều hướng quản trị trang`,"collection.filter.all":`Tất cả`,"nav.home":`Trang chủ`,"nav.overview":`Tổng quan`,"nav.model":`Mô hình dữ liệu`,"nav.logic":`Logic`,"nav.docs":`Giao diện`,"nav.build":`Bản dựng`,"nav.content":`Nội dung`,"nav.operations":`Bản ghi`,"nav.media":`Thư viện phương tiện`,"nav.more":`Thêm`,"nav.settings":`Cài đặt`,"nav.staff":`Người dùng quản trị`,"nav.members":`Thành viên`,"nav.reports":`Báo cáo`,"nav.localizedContent":`Có nội dung bản địa hóa`,"common.yes":`Có`,"common.no":`Không`,"model.title":`Mô hình dữ liệu`,"model.schemas":`Lược đồ`,"model.views":`Khung nhìn`,"model.objects":`Đối tượng mô hình dữ liệu`,"model.search":`Tìm kiếm mô hình dữ liệu`,"model.fields":`Trường`,"model.path":`Đường dẫn`,"model.type":`Kiểu`,"model.required":`Bắt buộc`,"model.constraints":`Ràng buộc`,"model.noFields":`Chưa khai báo thuộc tính đối tượng nào.`,"model.rawSchema":`Lược đồ JSON`,"model.rawQuery":`Kế hoạch truy vấn`,"model.queryKind":`Truy vấn`,"model.source":`Nguồn`,"model.allFields":`Tất cả trường`,"model.order":`Thứ tự`,"model.limit":`Giới hạn`,"model.dialect":`Phương ngữ`,"model.filter":`Bộ lọc`,"model.params":`Tham số`,"model.relationships":`Quan hệ`,"model.references":`Mục này tham chiếu`,"model.referencedBy":`Tham chiếu mục này`,"model.noRelations":`Chưa khai báo quan hệ Manifest nào.`,"model.openGraph":`Hiển thị trong đồ thị`,"model.openDeclaration":`Mở khai báo Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Manifest đã biên dịch`,"model.marker.reference":`Tham chiếu đến {target}`,"model.marker.translationParent":`Liên kết bản dịch đến mục cha {target}`,"model.marker.translationChild":`Liên kết bản dịch từ mục con {target}`,"model.marker.unique":`Chỉ mục duy nhất UQ{index}: {fields}`,"model.marker.index":`Chỉ mục IDX{index}: {fields}`,"logic.title":`Logic`,"logic.objects":`Đối tượng logic`,"logic.search":`Tìm kiếm logic`,"logic.triggers":`Trình kích hoạt`,"logic.procedures":`Thủ tục`,"logic.overview":`Tổng quan`,"logic.contract":`Hợp đồng`,"logic.configuration":`Cấu hình`,"logic.contractFrom":`Điểm vào này dùng hợp đồng do {target} khai báo.`,"logic.input":`Đầu vào`,"logic.output":`Đầu ra`,"logic.noContract":`Không có hợp đồng cho thủ tục đích.`,"logic.execution":`Đường thực thi`,"logic.target":`Thủ tục đích`,"logic.authorization":`Ủy quyền`,"logic.noAuthorization":`Chưa khai báo điều kiện ủy quyền nào.`,"logic.guard":`Thủ tục bảo vệ`,"logic.method":`Phương thức`,"logic.surface":`Phạm vi`,"logic.hooks":`Móc`,"logic.errorPolicy":`Chính sách lỗi`,"docs.title":`Giao diện API và tác nhân`,"docs.intro":`Tài liệu tham chiếu suy ra từ RuntimePlan cho các điểm vào HTTP, MCP và WebMCP trên trình duyệt.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`Trình kích hoạt HTTP và tuyến khung nhìn công khai được tự động cung cấp.`,"docs.mcpIntro":`Công cụ được tạo từ khung nhìn và trình kích hoạt MCP khai báo rõ ràng. Việc ủy quyền vẫn được áp dụng khi chạy công cụ.`,"docs.webmcpIntro":`Liên kết phía máy chủ này phát hiện khung nhìn công khai qua HTTP và đăng ký chúng làm công cụ trình duyệt chỉ đọc. Mỗi khung nhìn giữ nguyên quy tắc đối tượng của mình.`,"docs.publicEndpoint":`Điểm cuối công khai`,"docs.staffEndpoint":`Điểm cuối nhân viên`,"docs.catalogEndpoint":`Danh mục khám phá`,"docs.target":`Đích`,"docs.inputSchema":`Lược đồ đầu vào`,"docs.outputSchema":`Lược đồ đầu ra`,"docs.readOnly":`Chỉ đọc`,"docs.noEntries":`Chưa khai báo điểm vào nào cho giao diện này.`,"docs.webmcpNote":`Công cụ thủ tục công khai vẫn nằm trên MCP. Trình bao HTTP WebMCP phía máy chủ chủ ý chỉ đăng ký khung nhìn công khai.`,"developer.graph.title":`Đồ thị Manifest`,"developer.graph.details":`Chi tiết mục`,"developer.graph.openModel":`Mở trong mô hình dữ liệu`,"developer.graph.openLogic":`Mở chi tiết logic`,"developer.graph.relayout":`Bố cục tự động`,"developer.graph.previous":`Bước trước`,"developer.graph.next":`Bước tiếp theo`,"developer.graph.step":`Bước {current} / {total}`,"developer.graph.comesFrom":`Đến từ`,"developer.graph.continuesTo":`Tiếp tục đến`,"developer.graph.manifestSource":`Nguồn Manifest`,"developer.graph.builtin":`Tích hợp sẵn`,"developer.graph.kind.schema":`Lược đồ`,"developer.graph.kind.view":`Khung nhìn`,"developer.graph.kind.procedure":`Thủ tục`,"developer.graph.kind.trigger":`Trình kích hoạt`,"developer.graph.fact.audience":`Đối tượng`,"developer.graph.fact.transport":`Phương thức truyền`,"developer.graph.fact.handler":`Trình xử lý`,"developer.graph.fact.operation":`Thao tác`,"developer.graph.fact.schema":`Lược đồ`,"developer.graph.fact.match":`Điều kiện khớp`,"developer.graph.summary.trigger":`Yêu cầu từ {audience} đi vào qua {transport} và tiếp tục đến {target}.`,"developer.graph.summary.builtin":`Thao tác {op} tích hợp sẵn ghi vào {schema}.`,"developer.graph.summary.ref":`Thủ tục này chạy trình xử lý mã đã đăng ký {ref}.`,"developer.graph.summary.view":`Khung nhìn chỉ đọc của {target} dành cho {audience}.`,"developer.graph.summary.schema":`{incoming} mục dùng lược đồ này; lược đồ tham chiếu {outgoing} mục khác.`,"developer.graph.audience.public":`Công khai`,"developer.graph.audience.members":`Thành viên`,"developer.graph.audience.staff":`Nhân viên`,"developer.graph.audience.system":`Hệ thống`,"developer.graph.audience.apiClients":`Máy khách API`,"developer.graph.audienceDescription.public":`Có thể dùng mà không cần đăng nhập.`,"developer.graph.audienceDescription.members":`Bất kỳ thành viên đã đăng nhập nào. Không yêu cầu vai trò trên trang.`,"developer.graph.audienceDescription.staff":`Thành viên đã đăng nhập có vai trò cộng tác viên, biên tập viên hoặc chủ sở hữu. Nhân viên là cấp truy cập, không phải tài khoản quản trị riêng.`,"developer.graph.audienceDescription.system":`Tự động chạy từ sự kiện vòng đời, hàng đợi hoặc lịch biểu.`,"developer.graph.audienceDescription.apiClients":`Yêu cầu máy khách API đã xác thực hoặc phạm vi phù hợp.`,"developer.graph.relation.translationParent":`dịch`,"developer.graph.relation.schemaReference":`tham chiếu`,"developer.graph.relation.viewSource":`đọc từ`,"developer.graph.relation.guard":`được bảo vệ bởi`,"developer.graph.relation.procedureSchema":`xử lý lược đồ`,"developer.graph.relation.collectionAction":`tác động lên`,"developer.graph.relation.inputReference":`tham chiếu`,"developer.graph.relation.triggerTarget":`gọi`,"developer.graph.relation.lifecycleSource":`theo dõi vòng đời`,"status.draft":`Bản nháp`,"status.published":`Đã xuất bản`,"status.archived":`Đã lưu trữ`,"preferences.heading":`Tùy chọn`,"preferences.language":`Ngôn ngữ quản trị`,"preferences.language.search":`Tìm ngôn ngữ...`,"preferences.language.noResults":`Không tìm thấy ngôn ngữ.`,"preferences.direction":`Hướng văn bản`,"preferences.direction.auto":`Hướng văn bản theo ngôn ngữ đã chọn.`,"preferences.appearance":`Giao diện`,"preferences.light":`Sáng`,"preferences.dark":`Tối`,"preferences.system":`Hệ thống`,"preferences.ltr":`Trái sang phải`,"preferences.rtl":`Phải sang trái`,"preferences.page.open":`Tùy chọn`,"preferences.page.title":`Tùy chọn cá nhân`,"preferences.page.body":`Các tùy chọn này chỉ lưu trong trình duyệt này. Chúng chỉ thay đổi admin console và không sửa cài đặt trang.`,"preferences.page.languageBody":`Chọn ngôn ngữ cho trang hệ thống và giao diện quản trị.`,"preferences.page.appearanceBody":`Chọn sáng, tối hoặc theo hệ điều hành.`},cs:{"admin.consoleTitle":`Administrační konzole`,"developer.workspaceTitle":`Vývoj`,"auth.signIn.title":`Přihlásit se`,"common.signOut":`Odhlásit se`,"common.viewSite":`Zobrazit web`,"common.copy":`Kopírovat`,"common.open":`Otevřít`,"common.failedToLoad":`Načtení selhalo`,"common.signedIn":`Přihlášeno`,"common.contentAdmin":`Správa obsahu`,"common.close":`Zavřít`,"common.skipToMain":`Přejít na hlavní obsah`,"common.breadcrumb":`Drobečková navigace`,"common.toggleSidebar":`Přepnout postranní panel`,"common.mobileSidebar":`Navigace`,"common.mobileSidebarDescription":`Navigace správy webu`,"collection.filter.all":`Vše`,"nav.home":`Domů`,"nav.overview":`Přehled`,"nav.model":`Datový model`,"nav.logic":`Logika`,"nav.docs":`Rozhraní`,"nav.build":`Sestavení`,"nav.content":`Obsah`,"nav.operations":`Záznamy`,"nav.media":`Knihovna médií`,"nav.more":`Více`,"nav.settings":`Nastavení`,"nav.staff":`Administrátoři`,"nav.members":`Členové`,"nav.reports":`Přehledy`,"nav.localizedContent":`Obsahuje lokalizovaný obsah`,"common.yes":`Ano`,"common.no":`Ne`,"model.title":`Datový model`,"model.schemas":`Schémata`,"model.views":`Pohledy`,"model.objects":`Objekty datového modelu`,"model.search":`Prohledat datový model`,"model.fields":`Pole`,"model.path":`Cesta`,"model.type":`Typ`,"model.required":`Povinné`,"model.constraints":`Omezení`,"model.noFields":`Nejsou deklarovány žádné vlastnosti objektu.`,"model.rawSchema":`Schéma JSON`,"model.rawQuery":`Plán dotazu`,"model.queryKind":`Dotaz`,"model.source":`Zdroj`,"model.allFields":`Všechna pole`,"model.order":`Pořadí`,"model.limit":`Limit`,"model.dialect":`Dialekt`,"model.filter":`Filtr`,"model.params":`Parametry`,"model.relationships":`Vztahy`,"model.references":`Tato položka odkazuje na`,"model.referencedBy":`Odkazuje na tuto položku`,"model.noRelations":`V Manifest nejsou deklarovány žádné vztahy.`,"model.openGraph":`Zobrazit v grafu`,"model.openDeclaration":`Otevřít deklaraci Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Zkompilovaný Manifest`,"model.marker.reference":`Odkaz na {target}`,"model.marker.translationParent":`Překladové propojení s nadřazenou položkou {target}`,"model.marker.translationChild":`Překladové propojení z podřízené položky {target}`,"model.marker.unique":`Jedinečný index UQ{index}: {fields}`,"model.marker.index":`Index IDX{index}: {fields}`,"logic.title":`Logika`,"logic.objects":`Objekty logiky`,"logic.search":`Prohledat logiku`,"logic.triggers":`Spouštěče`,"logic.procedures":`Procedury`,"logic.overview":`Přehled`,"logic.contract":`Kontrakt`,"logic.configuration":`Konfigurace`,"logic.contractFrom":`Tento vstupní bod používá kontrakt deklarovaný v {target}.`,"logic.input":`Vstup`,"logic.output":`Výstup`,"logic.noContract":`Kontrakt cílové procedury není k dispozici.`,"logic.execution":`Cesta spuštění`,"logic.target":`Cílová procedura`,"logic.authorization":`Autorizace`,"logic.noAuthorization":`Nejsou deklarovány žádné autorizační podmínky.`,"logic.guard":`Ochranná procedura`,"logic.method":`Metoda`,"logic.surface":`Rozsah`,"logic.hooks":`Hooky`,"logic.errorPolicy":`Zásady chyb`,"docs.title":`Rozhraní API a agentů`,"docs.intro":`Reference vstupních bodů HTTP, MCP a prohlížečového WebMCP odvozená z RuntimePlan.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`Spouštěče HTTP a automaticky zveřejněné trasy veřejných pohledů.`,"docs.mcpIntro":`Nástroje odvozené z pohledů a explicitních spouštěčů MCP. Při spuštění nástroje se stále uplatňuje autorizace.`,"docs.webmcpIntro":`Tato serverová integrace vyhledá veřejné pohledy přes HTTP a zaregistruje je jako prohlížečové nástroje pouze pro čtení. Každý pohled si zachová vlastní pravidla cílové skupiny.`,"docs.publicEndpoint":`Veřejný koncový bod`,"docs.staffEndpoint":`Koncový bod pro personál`,"docs.catalogEndpoint":`Katalog zjišťování`,"docs.target":`Cíl`,"docs.inputSchema":`Vstupní schéma`,"docs.outputSchema":`Výstupní schéma`,"docs.readOnly":`Pouze pro čtení`,"docs.noEntries":`Pro toto rozhraní nejsou deklarovány žádné vstupní body.`,"docs.webmcpNote":`Nástroje veřejných procedur zůstávají dostupné přes MCP. Serverový HTTP wrapper WebMCP záměrně registruje pouze veřejné pohledy.`,"developer.graph.title":`Graf Manifest`,"developer.graph.details":`Podrobnosti položky`,"developer.graph.openModel":`Otevřít v datovém modelu`,"developer.graph.openLogic":`Otevřít podrobnosti logiky`,"developer.graph.relayout":`Automatické rozložení`,"developer.graph.previous":`Předchozí krok`,"developer.graph.next":`Další krok`,"developer.graph.step":`Krok {current} z {total}`,"developer.graph.comesFrom":`Přichází z`,"developer.graph.continuesTo":`Pokračuje do`,"developer.graph.manifestSource":`Zdroj Manifest`,"developer.graph.builtin":`Vestavěné`,"developer.graph.kind.schema":`Schéma`,"developer.graph.kind.view":`Pohled`,"developer.graph.kind.procedure":`Procedura`,"developer.graph.kind.trigger":`Spouštěč`,"developer.graph.fact.audience":`Cílová skupina`,"developer.graph.fact.transport":`Přenos`,"developer.graph.fact.handler":`Obslužná rutina`,"developer.graph.fact.operation":`Operace`,"developer.graph.fact.schema":`Schéma`,"developer.graph.fact.match":`Shoda`,"developer.graph.summary.trigger":`Požadavky od {audience} vstupují přes {transport} a pokračují do {target}.`,"developer.graph.summary.builtin":`Vestavěná operace {op} zapisuje do {schema}.`,"developer.graph.summary.ref":`Tato procedura spouští registrovanou obslužnou rutinu kódu {ref}.`,"developer.graph.summary.view":`Pohled na {target} pouze pro čtení pro skupinu {audience}.`,"developer.graph.summary.schema":`{incoming} položek používá toto schéma; odkazuje na dalších {outgoing} položek.`,"developer.graph.audience.public":`Veřejné`,"developer.graph.audience.members":`Členové`,"developer.graph.audience.staff":`Personál`,"developer.graph.audience.system":`Systém`,"developer.graph.audience.apiClients":`Klienti API`,"developer.graph.audienceDescription.public":`Dostupné bez přihlášení.`,"developer.graph.audienceDescription.members":`Kterýkoli přihlášený člen. Role na webu není vyžadována.`,"developer.graph.audienceDescription.staff":`Přihlášený člen s rolí přispěvatele, editora nebo vlastníka. Personál je úroveň přístupu, nikoli samostatný účet správce.`,"developer.graph.audienceDescription.system":`Spouští se automaticky z událostí životního cyklu, fronty nebo plánu.`,"developer.graph.audienceDescription.apiClients":`Vyžaduje ověřeného klienta API nebo odpovídající rozsah.`,"developer.graph.relation.translationParent":`překládá`,"developer.graph.relation.schemaReference":`odkazuje na`,"developer.graph.relation.viewSource":`čte z`,"developer.graph.relation.guard":`chráněno pomocí`,"developer.graph.relation.procedureSchema":`zpracovává schéma`,"developer.graph.relation.collectionAction":`působí na`,"developer.graph.relation.inputReference":`odkazuje na`,"developer.graph.relation.triggerTarget":`volá`,"developer.graph.relation.lifecycleSource":`sleduje životní cyklus`,"status.draft":`Koncepty`,"status.published":`Publikováno`,"status.archived":`Archivováno`,"preferences.heading":`Předvolby`,"preferences.language":`Jazyk administrace`,"preferences.language.search":`Hledat jazyky...`,"preferences.language.noResults":`Nenalezeny žádné jazyky.`,"preferences.direction":`Směr textu`,"preferences.direction.auto":`Směr textu se řídí vybraným jazykem.`,"preferences.appearance":`Vzhled`,"preferences.light":`Světlý`,"preferences.dark":`Tmavý`,"preferences.system":`Systém`,"preferences.ltr":`Zleva doprava`,"preferences.rtl":`Zprava doleva`,"preferences.page.open":`Předvolby`,"preferences.page.title":`Osobní předvolby`,"preferences.page.body":`Tyto předvolby zůstávají v tomto prohlížeči. Mění jen administrační konzoli, ne nastavení webu.`,"preferences.page.languageBody":`Vyberte jazyk systémových stránek a administračního rozhraní.`,"preferences.page.appearanceBody":`Vyberte světlý, tmavý nebo systémový režim.`},uk:{"admin.consoleTitle":`Консоль адміністратора`,"developer.workspaceTitle":`Розробка`,"auth.signIn.title":`Увійти`,"common.signOut":`Вийти`,"common.viewSite":`Переглянути сайт`,"common.copy":`Копіювати`,"common.open":`Відкрити`,"common.failedToLoad":`Не вдалося завантажити`,"common.signedIn":`Ви увійшли`,"common.contentAdmin":`Керування вмістом`,"common.close":`Закрити`,"common.skipToMain":`Перейти до основного вмісту`,"common.breadcrumb":`Навігаційний ланцюжок`,"common.toggleSidebar":`Перемкнути бічну панель`,"common.mobileSidebar":`Навігація`,"common.mobileSidebarDescription":`Навігація керування сайтом`,"collection.filter.all":`Усі`,"nav.home":`Головна`,"nav.overview":`Огляд`,"nav.model":`Модель даних`,"nav.logic":`Логіка`,"nav.docs":`Інтерфейси`,"nav.build":`Збірка`,"nav.content":`Контент`,"nav.operations":`Записи`,"nav.media":`Медіатека`,"nav.more":`Більше`,"nav.settings":`Налаштування`,"nav.staff":`Адміністратори`,"nav.members":`Учасники`,"nav.reports":`Звіти`,"nav.localizedContent":`Містить локалізований вміст`,"common.yes":`Так`,"common.no":`Ні`,"model.title":`Модель даних`,"model.schemas":`Схеми`,"model.views":`Подання`,"model.objects":`Об’єкти моделі даних`,"model.search":`Пошук у моделі даних`,"model.fields":`Поля`,"model.path":`Шлях`,"model.type":`Тип`,"model.required":`Обов’язково`,"model.constraints":`Обмеження`,"model.noFields":`Властивості об’єкта не оголошено.`,"model.rawSchema":`Схема JSON`,"model.rawQuery":`План запиту`,"model.queryKind":`Запит`,"model.source":`Джерело`,"model.allFields":`Усі поля`,"model.order":`Порядок`,"model.limit":`Ліміт`,"model.dialect":`Діалект`,"model.filter":`Фільтр`,"model.params":`Параметри`,"model.relationships":`Зв’язки`,"model.references":`Цей елемент посилається на`,"model.referencedBy":`Посилається на цей елемент`,"model.noRelations":`Зв’язки в Manifest не оголошено.`,"model.openGraph":`Показати на графі`,"model.openDeclaration":`Відкрити оголошення Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Скомпільований Manifest`,"model.marker.reference":`Посилання на {target}`,"model.marker.translationParent":`Зв’язок перекладу з батьківським елементом {target}`,"model.marker.translationChild":`Зв’язок перекладу від дочірнього елемента {target}`,"model.marker.unique":`Унікальний індекс UQ{index}: {fields}`,"model.marker.index":`Індекс IDX{index}: {fields}`,"logic.title":`Логіка`,"logic.objects":`Об’єкти логіки`,"logic.search":`Пошук логіки`,"logic.triggers":`Тригери`,"logic.procedures":`Процедури`,"logic.overview":`Огляд`,"logic.contract":`Контракт`,"logic.configuration":`Конфігурація`,"logic.contractFrom":`Ця точка входу використовує контракт, оголошений у {target}.`,"logic.input":`Вхід`,"logic.output":`Вихід`,"logic.noContract":`Контракт цільової процедури недоступний.`,"logic.execution":`Шлях виконання`,"logic.target":`Цільова процедура`,"logic.authorization":`Авторизація`,"logic.noAuthorization":`Умови авторизації не оголошено.`,"logic.guard":`Захисна процедура`,"logic.method":`Метод`,"logic.surface":`Область доступу`,"logic.hooks":`Перехоплювачі`,"logic.errorPolicy":`Політика помилок`,"docs.title":`Інтерфейси API та агентів`,"docs.intro":`Довідник точок входу HTTP, MCP і браузерного WebMCP, сформований із RuntimePlan.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`HTTP-тригери та автоматично оприлюднені маршрути публічних подань.`,"docs.mcpIntro":`Інструменти, сформовані з подань і явно заданих MCP-тригерів. Авторизація й надалі перевіряється під час виконання.`,"docs.webmcpIntro":`Ця серверна інтеграція виявляє публічні подання через HTTP і реєструє їх як браузерні інструменти лише для читання. Кожне подання зберігає власні правила аудиторії.`,"docs.publicEndpoint":`Публічна точка входу`,"docs.staffEndpoint":`Точка входу для персоналу`,"docs.catalogEndpoint":`Каталог виявлення`,"docs.target":`Ціль`,"docs.inputSchema":`Схема входу`,"docs.outputSchema":`Схема виходу`,"docs.readOnly":`Лише читання`,"docs.noEntries":`Для цього інтерфейсу точки входу не оголошено.`,"docs.webmcpNote":`Інструменти публічних процедур залишаються в MCP. Серверна HTTP-обгортка WebMCP навмисно реєструє лише публічні подання.`,"developer.graph.title":`Граф Manifest`,"developer.graph.details":`Відомості про елемент`,"developer.graph.openModel":`Відкрити в моделі даних`,"developer.graph.openLogic":`Відкрити відомості про логіку`,"developer.graph.relayout":`Автоматичне розташування`,"developer.graph.previous":`Попередній крок`,"developer.graph.next":`Наступний крок`,"developer.graph.step":`Крок {current} із {total}`,"developer.graph.comesFrom":`Надходить із`,"developer.graph.continuesTo":`Продовжується в`,"developer.graph.manifestSource":`Джерело Manifest`,"developer.graph.builtin":`Вбудовано`,"developer.graph.kind.schema":`Схема`,"developer.graph.kind.view":`Подання`,"developer.graph.kind.procedure":`Процедура`,"developer.graph.kind.trigger":`Тригер`,"developer.graph.fact.audience":`Аудиторія`,"developer.graph.fact.transport":`Транспорт`,"developer.graph.fact.handler":`Обробник`,"developer.graph.fact.operation":`Операція`,"developer.graph.fact.schema":`Схема`,"developer.graph.fact.match":`Умова`,"developer.graph.summary.trigger":`Запити від {audience} надходять через {transport} і переходять до {target}.`,"developer.graph.summary.builtin":`Вбудована операція {op} записує дані в {schema}.`,"developer.graph.summary.ref":`Ця процедура запускає зареєстрований обробник коду {ref}.`,"developer.graph.summary.view":`Подання {target} лише для читання для аудиторії {audience}.`,"developer.graph.summary.schema":`{incoming} елементів використовують цю схему; вона посилається ще на {outgoing} елементів.`,"developer.graph.audience.public":`Публічно`,"developer.graph.audience.members":`Учасники`,"developer.graph.audience.staff":`Персонал`,"developer.graph.audience.system":`Система`,"developer.graph.audience.apiClients":`Клієнти API`,"developer.graph.audienceDescription.public":`Доступно без входу.`,"developer.graph.audienceDescription.members":`Будь-який учасник, який увійшов. Роль на сайті не потрібна.`,"developer.graph.audienceDescription.staff":`Учасник, який увійшов і має роль автора, редактора або власника. Персонал — це рівень доступу, а не окремий обліковий запис адміністратора.`,"developer.graph.audienceDescription.system":`Запускається автоматично подіями життєвого циклу, черги або розкладу.`,"developer.graph.audienceDescription.apiClients":`Потрібен автентифікований клієнт API або відповідна область доступу.`,"developer.graph.relation.translationParent":`перекладає`,"developer.graph.relation.schemaReference":`посилається на`,"developer.graph.relation.viewSource":`читає з`,"developer.graph.relation.guard":`захищено`,"developer.graph.relation.procedureSchema":`обробляє схему`,"developer.graph.relation.collectionAction":`діє на`,"developer.graph.relation.inputReference":`посилається на`,"developer.graph.relation.triggerTarget":`викликає`,"developer.graph.relation.lifecycleSource":`стежить за життєвим циклом`,"status.draft":`Чернетки`,"status.published":`Опубліковано`,"status.archived":`Архівовано`,"preferences.heading":`Параметри`,"preferences.language":`Мова адмінки`,"preferences.language.search":`Пошук мов...`,"preferences.language.noResults":`Мови не знайдено.`,"preferences.direction":`Напрям тексту`,"preferences.direction.auto":`Напрям тексту відповідає вибраній мові.`,"preferences.appearance":`Вигляд`,"preferences.light":`Світла`,"preferences.dark":`Темна`,"preferences.system":`Система`,"preferences.ltr":`Зліва направо`,"preferences.rtl":`Справа наліво`,"preferences.page.open":`Параметри`,"preferences.page.title":`Особисті параметри`,"preferences.page.body":`Ці параметри зберігаються в цьому браузері. Вони змінюють лише адмін-консоль, а не налаштування сайту.`,"preferences.page.languageBody":`Виберіть мову системних сторінок та адмін-інтерфейсу.`,"preferences.page.appearanceBody":`Виберіть світлу, темну тему або тему системи.`},ar:{"admin.consoleTitle":`لوحة الإدارة`,"developer.workspaceTitle":`التطوير`,"auth.signIn.title":`تسجيل الدخول`,"common.signOut":`تسجيل الخروج`,"common.viewSite":`عرض الموقع`,"common.copy":`نسخ`,"common.open":`فتح`,"common.failedToLoad":`فشل التحميل`,"common.signedIn":`تم تسجيل الدخول`,"common.contentAdmin":`إدارة المحتوى`,"common.close":`إغلاق`,"common.skipToMain":`الانتقال إلى المحتوى الرئيسي`,"common.breadcrumb":`مسار التنقل`,"common.toggleSidebar":`تبديل الشريط الجانبي`,"common.mobileSidebar":`التنقل`,"common.mobileSidebarDescription":`تنقل إدارة الموقع`,"collection.filter.all":`الكل`,"nav.home":`الرئيسية`,"nav.overview":`نظرة عامة`,"nav.model":`نموذج البيانات`,"nav.logic":`المنطق`,"nav.docs":`الواجهات`,"nav.build":`البناء`,"nav.content":`المحتوى`,"nav.operations":`السجلات`,"nav.media":`مكتبة الوسائط`,"nav.more":`المزيد`,"nav.settings":`الإعدادات`,"nav.staff":`المستخدمون المسؤولون`,"nav.members":`الأعضاء`,"nav.reports":`التقارير`,"nav.localizedContent":`يتضمن محتوى مترجمًا`,"common.yes":`نعم`,"common.no":`لا`,"model.title":`نموذج البيانات`,"model.schemas":`المخططات`,"model.views":`طرق العرض`,"model.objects":`كائنات نموذج البيانات`,"model.search":`البحث في نموذج البيانات`,"model.fields":`الحقول`,"model.path":`المسار`,"model.type":`النوع`,"model.required":`مطلوب`,"model.constraints":`القيود`,"model.noFields":`لم يتم تعريف خصائص للكائن.`,"model.rawSchema":`مخطط JSON`,"model.rawQuery":`خطة الاستعلام`,"model.queryKind":`الاستعلام`,"model.source":`المصدر`,"model.allFields":`كل الحقول`,"model.order":`الترتيب`,"model.limit":`الحد`,"model.dialect":`اللهجة`,"model.filter":`عامل التصفية`,"model.params":`المعلمات`,"model.relationships":`العلاقات`,"model.references":`يشير هذا العنصر إلى`,"model.referencedBy":`يشير إلى هذا العنصر`,"model.noRelations":`لم يتم تعريف علاقات في Manifest.`,"model.openGraph":`إظهار في الرسم البياني`,"model.openDeclaration":`فتح تعريف Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Manifest المترجم برمجيًا`,"model.marker.reference":`مرجع إلى {target}`,"model.marker.translationParent":`ربط الترجمة بالأصل {target}`,"model.marker.translationChild":`ربط الترجمة من الفرع {target}`,"model.marker.unique":`فهرس فريد UQ{index}: {fields}`,"model.marker.index":`الفهرس IDX{index}: {fields}`,"logic.title":`المنطق`,"logic.objects":`كائنات المنطق`,"logic.search":`البحث في المنطق`,"logic.triggers":`المشغلات`,"logic.procedures":`الإجراءات`,"logic.overview":`نظرة عامة`,"logic.contract":`العقد`,"logic.configuration":`التكوين`,"logic.contractFrom":`تستخدم نقطة الدخول هذه العقد المعرّف بواسطة {target}.`,"logic.input":`الإدخال`,"logic.output":`الإخراج`,"logic.noContract":`لا يتوفر عقد للإجراء الهدف.`,"logic.execution":`مسار التنفيذ`,"logic.target":`الإجراء الهدف`,"logic.authorization":`التفويض`,"logic.noAuthorization":`لم يتم تعريف شروط تفويض.`,"logic.guard":`إجراء الحماية`,"logic.method":`الطريقة`,"logic.surface":`نطاق الإتاحة`,"logic.hooks":`الخطافات`,"logic.errorPolicy":`سياسة الأخطاء`,"docs.title":`واجهات API والوكلاء`,"docs.intro":`مرجع مشتق من RuntimePlan لنقاط دخول HTTP وMCP وWebMCP في المتصفح.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`مشغلات HTTP ومسارات طرق العرض العامة المنشورة تلقائيًا.`,"docs.mcpIntro":`أدوات مشتقة من طرق العرض ومشغلات MCP الصريحة. يستمر تطبيق التفويض عند تشغيل الأداة.`,"docs.webmcpIntro":`يكتشف هذا الربط المدعوم من الخادم طرق العرض العامة عبر HTTP ويسجلها كأدوات متصفح للقراءة فقط. يحتفظ كل عرض بقواعد جمهوره.`,"docs.publicEndpoint":`نقطة النهاية العامة`,"docs.staffEndpoint":`نقطة نهاية الموظفين`,"docs.catalogEndpoint":`دليل الاكتشاف`,"docs.target":`الهدف`,"docs.inputSchema":`مخطط الإدخال`,"docs.outputSchema":`مخطط الإخراج`,"docs.readOnly":`للقراءة فقط`,"docs.noEntries":`لم يتم تعريف نقاط دخول لهذه الواجهة.`,"docs.webmcpNote":`تبقى أدوات الإجراءات العامة على MCP. يسجل مغلف HTTP الخاص بـ WebMCP والمدعوم من الخادم طرق العرض العامة فقط عن قصد.`,"developer.graph.title":`رسم Manifest البياني`,"developer.graph.details":`تفاصيل العنصر`,"developer.graph.openModel":`فتح في نموذج البيانات`,"developer.graph.openLogic":`فتح تفاصيل المنطق`,"developer.graph.relayout":`تخطيط تلقائي`,"developer.graph.previous":`الخطوة السابقة`,"developer.graph.next":`الخطوة التالية`,"developer.graph.step":`الخطوة {current} من {total}`,"developer.graph.comesFrom":`يأتي من`,"developer.graph.continuesTo":`يتابع إلى`,"developer.graph.manifestSource":`مصدر Manifest`,"developer.graph.builtin":`مدمج`,"developer.graph.kind.schema":`مخطط`,"developer.graph.kind.view":`عرض`,"developer.graph.kind.procedure":`إجراء`,"developer.graph.kind.trigger":`مشغل`,"developer.graph.fact.audience":`الجمهور`,"developer.graph.fact.transport":`النقل`,"developer.graph.fact.handler":`المعالج`,"developer.graph.fact.operation":`العملية`,"developer.graph.fact.schema":`المخطط`,"developer.graph.fact.match":`المطابقة`,"developer.graph.summary.trigger":`تدخل طلبات {audience} عبر {transport} وتتابع إلى {target}.`,"developer.graph.summary.builtin":`تكتب عملية {op} مدمجة إلى {schema}.`,"developer.graph.summary.ref":`يشغّل هذا الإجراء معالج الشيفرة المسجل {ref}.`,"developer.graph.summary.view":`عرض للقراءة فقط لـ {target} مخصص لـ {audience}.`,"developer.graph.summary.schema":`يستخدم {incoming} من العناصر هذا المخطط؛ ويشير إلى {outgoing} من العناصر الأخرى.`,"developer.graph.audience.public":`عام`,"developer.graph.audience.members":`الأعضاء`,"developer.graph.audience.staff":`الموظفون`,"developer.graph.audience.system":`النظام`,"developer.graph.audience.apiClients":`عملاء API`,"developer.graph.audienceDescription.public":`متاح دون تسجيل الدخول.`,"developer.graph.audienceDescription.members":`أي عضو مسجل الدخول. لا يلزم دور في الموقع.`,"developer.graph.audienceDescription.staff":`عضو مسجل الدخول بدور مساهم أو محرر أو مالك. الموظفون مستوى وصول وليسوا حساب مسؤول منفصلًا.`,"developer.graph.audienceDescription.system":`يعمل تلقائيًا من أحداث دورة الحياة أو قائمة الانتظار أو الجدولة.`,"developer.graph.audienceDescription.apiClients":`يتطلب عميل API مصادقًا عليه أو نطاقًا مناسبًا.`,"developer.graph.relation.translationParent":`يترجم`,"developer.graph.relation.schemaReference":`يشير إلى`,"developer.graph.relation.viewSource":`يقرأ من`,"developer.graph.relation.guard":`محمي بواسطة`,"developer.graph.relation.procedureSchema":`يعالج المخطط`,"developer.graph.relation.collectionAction":`يؤثر في`,"developer.graph.relation.inputReference":`يشير إلى`,"developer.graph.relation.triggerTarget":`يستدعي`,"developer.graph.relation.lifecycleSource":`يراقب دورة الحياة`,"status.draft":`مسودات`,"status.published":`منشور`,"status.archived":`مؤرشف`,"preferences.heading":`التفضيلات`,"preferences.language":`لغة الإدارة`,"preferences.language.search":`ابحث عن اللغات...`,"preferences.language.noResults":`لم يتم العثور على لغات.`,"preferences.direction":`اتجاه النص`,"preferences.direction.auto":`يتبع اتجاه النص اللغة المحددة.`,"preferences.appearance":`المظهر`,"preferences.light":`فاتح`,"preferences.dark":`داكن`,"preferences.system":`النظام`,"preferences.ltr":`من اليسار إلى اليمين`,"preferences.rtl":`من اليمين إلى اليسار`,"preferences.page.open":`التفضيلات`,"preferences.page.title":`التفضيلات الشخصية`,"preferences.page.body":`تبقى هذه التفضيلات في هذا المتصفح. إنها تغيّر وحدة الإدارة فقط ولا تعدّل إعدادات الموقع.`,"preferences.page.languageBody":`اختر لغة صفحات النظام وواجهة الإدارة.`,"preferences.page.appearanceBody":`اختر الوضع الفاتح أو الداكن أو اتبع نظام التشغيل.`},he:{"admin.consoleTitle":`מסוף ניהול`,"developer.workspaceTitle":`פיתוח`,"auth.signIn.title":`כניסה`,"common.signOut":`יציאה`,"common.viewSite":`הצג אתר`,"common.copy":`העתק`,"common.open":`פתח`,"common.failedToLoad":`הטעינה נכשלה`,"common.signedIn":`מחובר`,"common.contentAdmin":`ניהול תוכן`,"common.close":`סגירה`,"common.skipToMain":`דילוג לתוכן הראשי`,"common.breadcrumb":`נתיב ניווט`,"common.toggleSidebar":`הצגה או הסתרה של סרגל הצד`,"common.mobileSidebar":`ניווט`,"common.mobileSidebarDescription":`ניווט ניהול האתר`,"collection.filter.all":`הכול`,"nav.home":`בית`,"nav.overview":`סקירה`,"nav.model":`מודל נתונים`,"nav.logic":`לוגיקה`,"nav.docs":`ממשקים`,"nav.build":`בנייה`,"nav.content":`תוכן`,"nav.operations":`רשומות`,"nav.media":`ספריית מדיה`,"nav.more":`עוד`,"nav.settings":`הגדרות`,"nav.staff":`משתמשי ניהול`,"nav.members":`חברים`,"nav.reports":`דוחות`,"nav.localizedContent":`כולל תוכן מותאם לשפה`,"common.yes":`כן`,"common.no":`לא`,"model.title":`מודל נתונים`,"model.schemas":`סכמות`,"model.views":`תצוגות`,"model.objects":`אובייקטים של מודל הנתונים`,"model.search":`חיפוש במודל הנתונים`,"model.fields":`שדות`,"model.path":`נתיב`,"model.type":`סוג`,"model.required":`נדרש`,"model.constraints":`אילוצים`,"model.noFields":`לא הוגדרו מאפייני אובייקט.`,"model.rawSchema":`סכמת JSON`,"model.rawQuery":`תוכנית שאילתה`,"model.queryKind":`שאילתה`,"model.source":`מקור`,"model.allFields":`כל השדות`,"model.order":`סדר`,"model.limit":`מגבלה`,"model.dialect":`ניב`,"model.filter":`מסנן`,"model.params":`פרמטרים`,"model.relationships":`קשרים`,"model.references":`פריט זה מפנה אל`,"model.referencedBy":`מפנה אל פריט זה`,"model.noRelations":`לא הוגדרו קשרים ב-Manifest.`,"model.openGraph":`הצגה בגרף`,"model.openDeclaration":`פתיחת הצהרת Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Manifest שעבר הידור`,"model.marker.reference":`הפניה אל {target}`,"model.marker.translationParent":`קישור תרגום להורה {target}`,"model.marker.translationChild":`קישור תרגום מהילד {target}`,"model.marker.unique":`אינדקס ייחודי UQ{index}: {fields}`,"model.marker.index":`אינדקס IDX{index}: {fields}`,"logic.title":`לוגיקה`,"logic.objects":`אובייקטים לוגיים`,"logic.search":`חיפוש בלוגיקה`,"logic.triggers":`גורמים מפעילים`,"logic.procedures":`תהליכים`,"logic.overview":`סקירה`,"logic.contract":`חוזה`,"logic.configuration":`תצורה`,"logic.contractFrom":`נקודת כניסה זו משתמשת בחוזה שהוגדר על ידי {target}.`,"logic.input":`קלט`,"logic.output":`פלט`,"logic.noContract":`אין חוזה זמין לתהליך היעד.`,"logic.execution":`נתיב ביצוע`,"logic.target":`תהליך יעד`,"logic.authorization":`הרשאה`,"logic.noAuthorization":`לא הוגדרו תנאי הרשאה.`,"logic.guard":`תהליך הגנה`,"logic.method":`שיטה`,"logic.surface":`תחום חשיפה`,"logic.hooks":`נקודות חיבור`,"logic.errorPolicy":`מדיניות שגיאות`,"docs.title":`ממשקי API וסוכנים`,"docs.intro":`תיעוד שנגזר מ-RuntimePlan עבור נקודות כניסה של HTTP,‏ MCP ו-WebMCP בדפדפן.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`גורמי הפעלה של HTTP ונתיבים של תצוגות ציבוריות שנחשפו אוטומטית.`,"docs.mcpIntro":`כלים שנוצרו מתצוגות ומגורמי הפעלה מפורשים של MCP. ההרשאה עדיין נאכפת בעת הפעלת כלי.`,"docs.webmcpIntro":`חיבור זה בצד השרת מגלה תצוגות ציבוריות דרך HTTP ורושם אותן ככלי דפדפן לקריאה בלבד. כל תצוגה שומרת על כללי הקהל שלה.`,"docs.publicEndpoint":`נקודת קצה ציבורית`,"docs.staffEndpoint":`נקודת קצה לצוות`,"docs.catalogEndpoint":`קטלוג גילוי`,"docs.target":`יעד`,"docs.inputSchema":`סכמת קלט`,"docs.outputSchema":`סכמת פלט`,"docs.readOnly":`קריאה בלבד`,"docs.noEntries":`לא הוגדרו נקודות כניסה לממשק זה.`,"docs.webmcpNote":`כלי התהליכים הציבוריים נשארים ב-MCP. מעטפת ה-HTTP של WebMCP בצד השרת רושמת בכוונה רק תצוגות ציבוריות.`,"developer.graph.title":`גרף Manifest`,"developer.graph.details":`פרטי פריט`,"developer.graph.openModel":`פתיחה במודל הנתונים`,"developer.graph.openLogic":`פתיחת פרטי הלוגיקה`,"developer.graph.relayout":`סידור אוטומטי`,"developer.graph.previous":`השלב הקודם`,"developer.graph.next":`השלב הבא`,"developer.graph.step":`שלב {current} מתוך {total}`,"developer.graph.comesFrom":`מגיע מ-`,"developer.graph.continuesTo":`ממשיך אל`,"developer.graph.manifestSource":`מקור Manifest`,"developer.graph.builtin":`מובנה`,"developer.graph.kind.schema":`סכמה`,"developer.graph.kind.view":`תצוגה`,"developer.graph.kind.procedure":`תהליך`,"developer.graph.kind.trigger":`גורם מפעיל`,"developer.graph.fact.audience":`קהל`,"developer.graph.fact.transport":`תעבורה`,"developer.graph.fact.handler":`מטפל`,"developer.graph.fact.operation":`פעולה`,"developer.graph.fact.schema":`סכמה`,"developer.graph.fact.match":`התאמה`,"developer.graph.summary.trigger":`בקשות מ-{audience} נכנסות דרך {transport} וממשיכות אל {target}.`,"developer.graph.summary.builtin":`פעולת {op} מובנית כותבת אל {schema}.`,"developer.graph.summary.ref":`תהליך זה מפעיל את מטפל הקוד הרשום {ref}.`,"developer.graph.summary.view":`תצוגה לקריאה בלבד של {target} עבור {audience}.`,"developer.graph.summary.schema":`{incoming} פריטים משתמשים בסכמה זו; היא מפנה אל {outgoing} פריטים אחרים.`,"developer.graph.audience.public":`ציבורי`,"developer.graph.audience.members":`חברים`,"developer.graph.audience.staff":`צוות`,"developer.graph.audience.system":`מערכת`,"developer.graph.audience.apiClients":`לקוחות API`,"developer.graph.audienceDescription.public":`זמין ללא כניסה.`,"developer.graph.audienceDescription.members":`כל חבר שנכנס למערכת. לא נדרש תפקיד באתר.`,"developer.graph.audienceDescription.staff":`חבר שנכנס למערכת עם תפקיד תורם, עורך או בעלים. צוות הוא רמת גישה, לא חשבון מנהל נפרד.`,"developer.graph.audienceDescription.system":`פועל אוטומטית מאירועי מחזור חיים, תור או לוח זמנים.`,"developer.graph.audienceDescription.apiClients":`דורש לקוח API מאומת או תחום הרשאה מתאים.`,"developer.graph.relation.translationParent":`מתרגם`,"developer.graph.relation.schemaReference":`מפנה אל`,"developer.graph.relation.viewSource":`קורא מ-`,"developer.graph.relation.guard":`מוגן על ידי`,"developer.graph.relation.procedureSchema":`מטפל בסכמה`,"developer.graph.relation.collectionAction":`פועל על`,"developer.graph.relation.inputReference":`מפנה אל`,"developer.graph.relation.triggerTarget":`מפעיל`,"developer.graph.relation.lifecycleSource":`עוקב אחר מחזור החיים`,"status.draft":`טיוטות`,"status.published":`פורסם`,"status.archived":`בארכיון`,"preferences.heading":`העדפות`,"preferences.language":`שפת ניהול`,"preferences.language.search":`חפש שפות...`,"preferences.language.noResults":`לא נמצאו שפות.`,"preferences.direction":`כיוון טקסט`,"preferences.direction.auto":`כיוון הטקסט נקבע לפי השפה שנבחרה.`,"preferences.appearance":`מראה`,"preferences.light":`בהיר`,"preferences.dark":`כהה`,"preferences.system":`מערכת`,"preferences.ltr":`משמאל לימין`,"preferences.rtl":`מימין לשמאל`,"preferences.page.open":`העדפות`,"preferences.page.title":`העדפות אישיות`,"preferences.page.body":`העדפות אלה נשמרות בדפדפן הזה. הן משנות רק את מסוף הניהול ולא את הגדרות האתר.`,"preferences.page.languageBody":`בחר את שפת דפי המערכת וממשק הניהול.`,"preferences.page.appearanceBody":`בחר בהיר, כהה או לפי מערכת ההפעלה.`},fa:{"admin.consoleTitle":`کنسول مدیریت`,"developer.workspaceTitle":`توسعه`,"auth.signIn.title":`ورود`,"common.signOut":`خروج`,"common.viewSite":`مشاهده سایت`,"common.copy":`کپی`,"common.open":`باز کردن`,"common.failedToLoad":`بارگذاری ناموفق بود`,"common.signedIn":`وارد شده‌اید`,"common.contentAdmin":`مدیریت محتوا`,"common.close":`بستن`,"common.skipToMain":`رفتن به محتوای اصلی`,"common.breadcrumb":`مسیر پیمایش`,"common.toggleSidebar":`تغییر وضعیت نوار کناری`,"common.mobileSidebar":`پیمایش`,"common.mobileSidebarDescription":`پیمایش مدیریت سایت`,"collection.filter.all":`همه`,"nav.home":`خانه`,"nav.overview":`نمای کلی`,"nav.model":`مدل داده`,"nav.logic":`منطق`,"nav.docs":`رابط‌ها`,"nav.build":`ساخت`,"nav.content":`محتوا`,"nav.operations":`رکوردها`,"nav.media":`کتابخانه رسانه`,"nav.more":`بیشتر`,"nav.settings":`تنظیمات`,"nav.staff":`کاربران مدیر`,"nav.members":`اعضا`,"nav.reports":`گزارش‌ها`,"nav.localizedContent":`شامل محتوای بومی‌سازی‌شده`,"common.yes":`بله`,"common.no":`خیر`,"model.title":`مدل داده`,"model.schemas":`طرحواره‌ها`,"model.views":`نماها`,"model.objects":`اشیای مدل داده`,"model.search":`جست‌وجوی مدل داده`,"model.fields":`فیلدها`,"model.path":`مسیر`,"model.type":`نوع`,"model.required":`الزامی`,"model.constraints":`محدودیت‌ها`,"model.noFields":`هیچ ویژگی‌ای برای شیء تعریف نشده است.`,"model.rawSchema":`طرحواره JSON`,"model.rawQuery":`برنامه پرس‌وجو`,"model.queryKind":`پرس‌وجو`,"model.source":`منبع`,"model.allFields":`همه فیلدها`,"model.order":`ترتیب`,"model.limit":`محدودیت`,"model.dialect":`گویش`,"model.filter":`فیلتر`,"model.params":`پارامترها`,"model.relationships":`رابطه‌ها`,"model.references":`این مورد ارجاع می‌دهد به`,"model.referencedBy":`به این مورد ارجاع می‌دهد`,"model.noRelations":`هیچ رابطه‌ای در Manifest تعریف نشده است.`,"model.openGraph":`نمایش در نمودار`,"model.openDeclaration":`باز کردن تعریف Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Manifest کامپایل‌شده`,"model.marker.reference":`ارجاع به {target}`,"model.marker.translationParent":`اتصال ترجمه به والد {target}`,"model.marker.translationChild":`اتصال ترجمه از فرزند {target}`,"model.marker.unique":`شاخص یکتا UQ{index}: {fields}`,"model.marker.index":`شاخص IDX{index}: {fields}`,"logic.title":`منطق`,"logic.objects":`اشیای منطقی`,"logic.search":`جست‌وجوی منطق`,"logic.triggers":`راه‌اندازها`,"logic.procedures":`رویه‌ها`,"logic.overview":`نمای کلی`,"logic.contract":`قرارداد`,"logic.configuration":`پیکربندی`,"logic.contractFrom":`این نقطه ورود از قراردادی استفاده می‌کند که {target} تعریف کرده است.`,"logic.input":`ورودی`,"logic.output":`خروجی`,"logic.noContract":`قراردادی برای رویه مقصد در دسترس نیست.`,"logic.execution":`مسیر اجرا`,"logic.target":`رویه مقصد`,"logic.authorization":`مجوزدهی`,"logic.noAuthorization":`هیچ شرط مجوزدهی تعریف نشده است.`,"logic.guard":`رویه محافظ`,"logic.method":`روش`,"logic.surface":`دامنه دسترسی`,"logic.hooks":`قلاب‌ها`,"logic.errorPolicy":`سیاست خطا`,"docs.title":`رابط‌های API و عامل‌ها`,"docs.intro":`مرجع مشتق‌شده از RuntimePlan برای نقاط ورود HTTP، ‏MCP و WebMCP مرورگر.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`راه‌اندازهای HTTP و مسیرهای نماهای عمومی که خودکار ارائه شده‌اند.`,"docs.mcpIntro":`ابزارهای تولیدشده از نماها و راه‌اندازهای صریح MCP. هنگام اجرای ابزار همچنان مجوزدهی اعمال می‌شود.`,"docs.webmcpIntro":`این اتصال سمت سرور نماهای عمومی را از طریق HTTP پیدا می‌کند و آن‌ها را به‌عنوان ابزارهای فقط‌خواندنی مرورگر ثبت می‌کند. هر نما قوانین مخاطبان خود را حفظ می‌کند.`,"docs.publicEndpoint":`نقطه پایانی عمومی`,"docs.staffEndpoint":`نقطه پایانی کارکنان`,"docs.catalogEndpoint":`فهرست کشف`,"docs.target":`مقصد`,"docs.inputSchema":`طرحواره ورودی`,"docs.outputSchema":`طرحواره خروجی`,"docs.readOnly":`فقط خواندنی`,"docs.noEntries":`هیچ نقطه ورودی برای این رابط تعریف نشده است.`,"docs.webmcpNote":`ابزارهای رویه عمومی همچنان در MCP باقی می‌مانند. پوشش HTTP سمت سرور WebMCP عمداً فقط نماهای عمومی را ثبت می‌کند.`,"developer.graph.title":`نمودار Manifest`,"developer.graph.details":`جزئیات مورد`,"developer.graph.openModel":`باز کردن در مدل داده`,"developer.graph.openLogic":`باز کردن جزئیات منطق`,"developer.graph.relayout":`چیدمان خودکار`,"developer.graph.previous":`گام قبل`,"developer.graph.next":`گام بعد`,"developer.graph.step":`گام {current} از {total}`,"developer.graph.comesFrom":`می‌آید از`,"developer.graph.continuesTo":`ادامه به`,"developer.graph.manifestSource":`منبع Manifest`,"developer.graph.builtin":`داخلی`,"developer.graph.kind.schema":`طرحواره`,"developer.graph.kind.view":`نما`,"developer.graph.kind.procedure":`رویه`,"developer.graph.kind.trigger":`راه‌انداز`,"developer.graph.fact.audience":`مخاطب`,"developer.graph.fact.transport":`انتقال`,"developer.graph.fact.handler":`پردازشگر`,"developer.graph.fact.operation":`عملیات`,"developer.graph.fact.schema":`طرحواره`,"developer.graph.fact.match":`تطبیق`,"developer.graph.summary.trigger":`درخواست‌های {audience} از طریق {transport} وارد می‌شوند و به {target} ادامه می‌یابند.`,"developer.graph.summary.builtin":`یک عملیات داخلی {op} در {schema} می‌نویسد.`,"developer.graph.summary.ref":`این رویه پردازشگر کد ثبت‌شده {ref} را اجرا می‌کند.`,"developer.graph.summary.view":`نمای فقط‌خواندنی از {target} برای {audience}.`,"developer.graph.summary.schema":`{incoming} مورد از این طرحواره استفاده می‌کنند؛ این طرحواره به {outgoing} مورد دیگر ارجاع می‌دهد.`,"developer.graph.audience.public":`عمومی`,"developer.graph.audience.members":`اعضا`,"developer.graph.audience.staff":`کارکنان`,"developer.graph.audience.system":`سیستم`,"developer.graph.audience.apiClients":`کلاینت‌های API`,"developer.graph.audienceDescription.public":`بدون ورود در دسترس است.`,"developer.graph.audienceDescription.members":`هر عضو واردشده. نقش سایت لازم نیست.`,"developer.graph.audienceDescription.staff":`عضو واردشده با نقش مشارکت‌کننده، ویرایشگر یا مالک. کارکنان یک سطح دسترسی است، نه حساب مدیر جداگانه.`,"developer.graph.audienceDescription.system":`به‌طور خودکار از رویدادهای چرخه عمر، صف یا زمان‌بندی اجرا می‌شود.`,"developer.graph.audienceDescription.apiClients":`به کلاینت API احراز هویت‌شده یا دامنه مناسب نیاز دارد.`,"developer.graph.relation.translationParent":`ترجمه می‌کند`,"developer.graph.relation.schemaReference":`ارجاع می‌دهد به`,"developer.graph.relation.viewSource":`می‌خواند از`,"developer.graph.relation.guard":`محافظت‌شده توسط`,"developer.graph.relation.procedureSchema":`طرحواره را پردازش می‌کند`,"developer.graph.relation.collectionAction":`عمل می‌کند روی`,"developer.graph.relation.inputReference":`ارجاع می‌دهد به`,"developer.graph.relation.triggerTarget":`فراخوانی می‌کند`,"developer.graph.relation.lifecycleSource":`چرخه عمر را پایش می‌کند`,"status.draft":`پیش‌نویس‌ها`,"status.published":`منتشر شده`,"status.archived":`بایگانی شده`,"preferences.heading":`ترجیحات`,"preferences.language":`زبان مدیریت`,"preferences.language.search":`جستجوی زبان‌ها...`,"preferences.language.noResults":`زبانی پیدا نشد.`,"preferences.direction":`جهت متن`,"preferences.direction.auto":`جهت متن از زبان انتخاب‌شده پیروی می‌کند.`,"preferences.appearance":`ظاهر`,"preferences.light":`روشن`,"preferences.dark":`تیره`,"preferences.system":`سیستم`,"preferences.ltr":`چپ به راست`,"preferences.rtl":`راست به چپ`,"preferences.page.open":`ترجیحات`,"preferences.page.title":`ترجیحات شخصی`,"preferences.page.body":`این ترجیحات در همین مرورگر ذخیره می‌شود. فقط کنسول مدیریت را تغییر می‌دهد و تنظیمات سایت را تغییر نمی‌دهد.`,"preferences.page.languageBody":`زبان صفحات سیستمی و رابط مدیریت را انتخاب کنید.`,"preferences.page.appearanceBody":`روشن، تیره یا پیروی از سیستم‌عامل را انتخاب کنید.`},th:{"admin.consoleTitle":`คอนโซลผู้ดูแล`,"developer.workspaceTitle":`การพัฒนา`,"auth.signIn.title":`เข้าสู่ระบบ`,"common.signOut":`ออกจากระบบ`,"common.viewSite":`ดูเว็บไซต์`,"common.copy":`คัดลอก`,"common.open":`เปิด`,"common.failedToLoad":`โหลดไม่สำเร็จ`,"common.signedIn":`เข้าสู่ระบบแล้ว`,"common.contentAdmin":`การจัดการเนื้อหา`,"common.close":`ปิด`,"common.skipToMain":`ข้ามไปยังเนื้อหาหลัก`,"common.breadcrumb":`เส้นทางนำทาง`,"common.toggleSidebar":`สลับแถบด้านข้าง`,"common.mobileSidebar":`การนำทาง`,"common.mobileSidebarDescription":`การนำทางสำหรับการดูแลเว็บไซต์`,"collection.filter.all":`ทั้งหมด`,"nav.home":`หน้าแรก`,"nav.overview":`ภาพรวม`,"nav.model":`โมเดลข้อมูล`,"nav.logic":`ตรรกะ`,"nav.docs":`อินเทอร์เฟซ`,"nav.build":`บิลด์`,"nav.content":`เนื้อหา`,"nav.operations":`ระเบียน`,"nav.media":`คลังสื่อ`,"nav.more":`เพิ่มเติม`,"nav.settings":`การตั้งค่า`,"nav.staff":`ผู้ใช้ผู้ดูแล`,"nav.members":`สมาชิก`,"nav.reports":`รายงาน`,"nav.localizedContent":`มีเนื้อหาที่แปลภาษา`,"common.yes":`ใช่`,"common.no":`ไม่`,"model.title":`โมเดลข้อมูล`,"model.schemas":`สคีมา`,"model.views":`มุมมอง`,"model.objects":`ออบเจ็กต์โมเดลข้อมูล`,"model.search":`ค้นหาโมเดลข้อมูล`,"model.fields":`ฟิลด์`,"model.path":`พาธ`,"model.type":`ชนิด`,"model.required":`จำเป็น`,"model.constraints":`ข้อจำกัด`,"model.noFields":`ยังไม่ได้ประกาศพร็อพเพอร์ตีของออบเจ็กต์`,"model.rawSchema":`สคีมา JSON`,"model.rawQuery":`แผนคิวรี`,"model.queryKind":`คิวรี`,"model.source":`แหล่งที่มา`,"model.allFields":`ฟิลด์ทั้งหมด`,"model.order":`ลำดับ`,"model.limit":`ขีดจำกัด`,"model.dialect":`ภาษาถิ่น`,"model.filter":`ตัวกรอง`,"model.params":`พารามิเตอร์`,"model.relationships":`ความสัมพันธ์`,"model.references":`รายการนี้อ้างอิงถึง`,"model.referencedBy":`อ้างอิงรายการนี้`,"model.noRelations":`ยังไม่ได้ประกาศความสัมพันธ์ใน Manifest`,"model.openGraph":`แสดงในกราฟ`,"model.openDeclaration":`เปิดการประกาศ Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Manifest ที่คอมไพล์แล้ว`,"model.marker.reference":`อ้างอิงถึง {target}`,"model.marker.translationParent":`การเชื่อมคำแปลไปยังรายการแม่ {target}`,"model.marker.translationChild":`การเชื่อมคำแปลจากรายการลูก {target}`,"model.marker.unique":`ดัชนีไม่ซ้ำ UQ{index}: {fields}`,"model.marker.index":`ดัชนี IDX{index}: {fields}`,"logic.title":`ตรรกะ`,"logic.objects":`ออบเจ็กต์ตรรกะ`,"logic.search":`ค้นหาตรรกะ`,"logic.triggers":`ทริกเกอร์`,"logic.procedures":`โพรซีเยอร์`,"logic.overview":`ภาพรวม`,"logic.contract":`สัญญา`,"logic.configuration":`การกำหนดค่า`,"logic.contractFrom":`จุดเข้านี้ใช้สัญญาที่ประกาศโดย {target}`,"logic.input":`อินพุต`,"logic.output":`เอาต์พุต`,"logic.noContract":`ไม่มีสัญญาสำหรับโพรซีเยอร์เป้าหมาย`,"logic.execution":`เส้นทางการทำงาน`,"logic.target":`โพรซีเยอร์เป้าหมาย`,"logic.authorization":`การอนุญาต`,"logic.noAuthorization":`ยังไม่ได้ประกาศเงื่อนไขการอนุญาต`,"logic.guard":`โพรซีเยอร์ป้องกัน`,"logic.method":`เมธอด`,"logic.surface":`ขอบเขตการให้บริการ`,"logic.hooks":`ฮุก`,"logic.errorPolicy":`นโยบายข้อผิดพลาด`,"docs.title":`อินเทอร์เฟซ API และเอเจนต์`,"docs.intro":`เอกสารอ้างอิงที่ได้จาก RuntimePlan สำหรับจุดเข้า HTTP, MCP และ WebMCP บนเบราว์เซอร์`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`ทริกเกอร์ HTTP และเส้นทางมุมมองสาธารณะที่เปิดโดยอัตโนมัติ`,"docs.mcpIntro":`เครื่องมือที่สร้างจากมุมมองและทริกเกอร์ MCP ที่ประกาศไว้อย่างชัดเจน ระบบยังตรวจสอบสิทธิ์เมื่อเรียกใช้เครื่องมือ`,"docs.webmcpIntro":`การเชื่อมต่อฝั่งเซิร์ฟเวอร์นี้ค้นหามุมมองสาธารณะผ่าน HTTP และลงทะเบียนเป็นเครื่องมือเบราว์เซอร์แบบอ่านอย่างเดียว แต่ละมุมมองยังคงใช้กฎกลุ่มผู้ใช้ของตนเอง`,"docs.publicEndpoint":`จุดปลายทางสาธารณะ`,"docs.staffEndpoint":`จุดปลายทางสำหรับเจ้าหน้าที่`,"docs.catalogEndpoint":`แค็ตตาล็อกการค้นหา`,"docs.target":`เป้าหมาย`,"docs.inputSchema":`สคีมาอินพุต`,"docs.outputSchema":`สคีมาเอาต์พุต`,"docs.readOnly":`อ่านอย่างเดียว`,"docs.noEntries":`ยังไม่ได้ประกาศจุดเข้าสำหรับอินเทอร์เฟซนี้`,"docs.webmcpNote":`เครื่องมือโพรซีเยอร์สาธารณะยังคงอยู่บน MCP ส่วนตัวห่อ HTTP ของ WebMCP ฝั่งเซิร์ฟเวอร์จะลงทะเบียนเฉพาะมุมมองสาธารณะโดยตั้งใจ`,"developer.graph.title":`กราฟ Manifest`,"developer.graph.details":`รายละเอียดรายการ`,"developer.graph.openModel":`เปิดในโมเดลข้อมูล`,"developer.graph.openLogic":`เปิดรายละเอียดตรรกะ`,"developer.graph.relayout":`จัดวางอัตโนมัติ`,"developer.graph.previous":`ขั้นตอนก่อนหน้า`,"developer.graph.next":`ขั้นตอนถัดไป`,"developer.graph.step":`ขั้นตอน {current} จาก {total}`,"developer.graph.comesFrom":`มาจาก`,"developer.graph.continuesTo":`ดำเนินต่อไปยัง`,"developer.graph.manifestSource":`แหล่ง Manifest`,"developer.graph.builtin":`มีในตัว`,"developer.graph.kind.schema":`สคีมา`,"developer.graph.kind.view":`มุมมอง`,"developer.graph.kind.procedure":`โพรซีเยอร์`,"developer.graph.kind.trigger":`ทริกเกอร์`,"developer.graph.fact.audience":`กลุ่มผู้ใช้`,"developer.graph.fact.transport":`การรับส่ง`,"developer.graph.fact.handler":`ตัวจัดการ`,"developer.graph.fact.operation":`การดำเนินการ`,"developer.graph.fact.schema":`สคีมา`,"developer.graph.fact.match":`เงื่อนไขตรงกัน`,"developer.graph.summary.trigger":`คำขอจาก {audience} เข้ามาทาง {transport} และดำเนินต่อไปยัง {target}`,"developer.graph.summary.builtin":`การดำเนินการ {op} ที่มีในตัวจะเขียนไปยัง {schema}`,"developer.graph.summary.ref":`โพรซีเยอร์นี้เรียกใช้ตัวจัดการโค้ดที่ลงทะเบียนไว้ {ref}`,"developer.graph.summary.view":`มุมมองแบบอ่านอย่างเดียวของ {target} สำหรับ {audience}`,"developer.graph.summary.schema":`มี {incoming} รายการที่ใช้สคีมานี้ และสคีมาอ้างอิงรายการอื่นอีก {outgoing} รายการ`,"developer.graph.audience.public":`สาธารณะ`,"developer.graph.audience.members":`สมาชิก`,"developer.graph.audience.staff":`เจ้าหน้าที่`,"developer.graph.audience.system":`ระบบ`,"developer.graph.audience.apiClients":`ไคลเอนต์ API`,"developer.graph.audienceDescription.public":`ใช้งานได้โดยไม่ต้องลงชื่อเข้าใช้`,"developer.graph.audienceDescription.members":`สมาชิกที่ลงชื่อเข้าใช้ทุกคน ไม่จำเป็นต้องมีบทบาทในเว็บไซต์`,"developer.graph.audienceDescription.staff":`สมาชิกที่ลงชื่อเข้าใช้และมีบทบาทผู้ร่วมเขียน ผู้แก้ไข หรือเจ้าของ เจ้าหน้าที่คือระดับการเข้าถึง ไม่ใช่บัญชีผู้ดูแลแยกต่างหาก`,"developer.graph.audienceDescription.system":`ทำงานอัตโนมัติจากเหตุการณ์วงจรชีวิต คิว หรือกำหนดการ`,"developer.graph.audienceDescription.apiClients":`ต้องใช้ไคลเอนต์ API ที่ผ่านการตรวจสอบสิทธิ์หรือขอบเขตที่เหมาะสม`,"developer.graph.relation.translationParent":`แปล`,"developer.graph.relation.schemaReference":`อ้างอิง`,"developer.graph.relation.viewSource":`อ่านจาก`,"developer.graph.relation.guard":`ป้องกันโดย`,"developer.graph.relation.procedureSchema":`จัดการสคีมา`,"developer.graph.relation.collectionAction":`ดำเนินการกับ`,"developer.graph.relation.inputReference":`อ้างอิง`,"developer.graph.relation.triggerTarget":`เรียกใช้`,"developer.graph.relation.lifecycleSource":`เฝ้าดูวงจรชีวิต`,"status.draft":`ฉบับร่าง`,"status.published":`เผยแพร่แล้ว`,"status.archived":`เก็บถาวร`,"preferences.heading":`ค่ากำหนด`,"preferences.language":`ภาษาผู้ดูแล`,"preferences.language.search":`ค้นหาภาษา...`,"preferences.language.noResults":`ไม่พบภาษา`,"preferences.direction":`ทิศทางข้อความ`,"preferences.direction.auto":`ทิศทางข้อความจะตามภาษาที่เลือก`,"preferences.appearance":`รูปลักษณ์`,"preferences.light":`สว่าง`,"preferences.dark":`มืด`,"preferences.system":`ระบบ`,"preferences.ltr":`ซ้ายไปขวา`,"preferences.rtl":`ขวาไปซ้าย`,"preferences.page.open":`ค่ากำหนด`,"preferences.page.title":`ค่ากำหนดส่วนตัว`,"preferences.page.body":`ค่ากำหนดเหล่านี้จะอยู่ในเบราว์เซอร์นี้เท่านั้น และมีผลกับ admin console โดยไม่แก้การตั้งค่าเว็บไซต์`,"preferences.page.languageBody":`เลือกภาษาสำหรับหน้าระบบและส่วนติดต่อผู้ดูแล`,"preferences.page.appearanceBody":`เลือกสว่าง มืด หรือใช้ตามระบบปฏิบัติการ`},id:{"admin.consoleTitle":`Konsol admin`,"developer.workspaceTitle":`Pengembangan`,"auth.signIn.title":`Masuk`,"common.signOut":`Keluar`,"common.viewSite":`Lihat situs`,"common.copy":`Salin`,"common.open":`Buka`,"common.failedToLoad":`Gagal memuat`,"common.signedIn":`Sudah masuk`,"common.contentAdmin":`Administrasi konten`,"common.close":`Tutup`,"common.skipToMain":`Lewati ke konten utama`,"common.breadcrumb":`Jejak navigasi`,"common.toggleSidebar":`Alihkan bilah samping`,"common.mobileSidebar":`Navigasi`,"common.mobileSidebarDescription":`Navigasi administrasi situs`,"collection.filter.all":`Semua`,"nav.home":`Beranda`,"nav.overview":`Ringkasan`,"nav.model":`Model data`,"nav.logic":`Logika`,"nav.docs":`Antarmuka`,"nav.build":`Build`,"nav.content":`Konten`,"nav.operations":`Rekaman`,"nav.media":`Pustaka media`,"nav.more":`Lainnya`,"nav.settings":`Pengaturan`,"nav.staff":`Pengguna admin`,"nav.members":`Anggota`,"nav.reports":`Laporan`,"nav.localizedContent":`Berisi konten yang dilokalkan`,"common.yes":`Ya`,"common.no":`Tidak`,"model.title":`Model data`,"model.schemas":`Skema`,"model.views":`Tampilan`,"model.objects":`Objek model data`,"model.search":`Cari model data`,"model.fields":`Bidang`,"model.path":`Jalur`,"model.type":`Jenis`,"model.required":`Wajib`,"model.constraints":`Batasan`,"model.noFields":`Tidak ada properti objek yang dideklarasikan.`,"model.rawSchema":`Skema JSON`,"model.rawQuery":`Rencana kueri`,"model.queryKind":`Kueri`,"model.source":`Sumber`,"model.allFields":`Semua bidang`,"model.order":`Urutan`,"model.limit":`Batas`,"model.dialect":`Dialek`,"model.filter":`Filter`,"model.params":`Parameter`,"model.relationships":`Relasi`,"model.references":`Item ini merujuk ke`,"model.referencedBy":`Merujuk ke item ini`,"model.noRelations":`Tidak ada relasi yang dideklarasikan dalam Manifest.`,"model.openGraph":`Tampilkan dalam grafik`,"model.openDeclaration":`Buka deklarasi Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Manifest terkompilasi`,"model.marker.reference":`Referensi ke {target}`,"model.marker.translationParent":`Gabungan terjemahan ke induk {target}`,"model.marker.translationChild":`Gabungan terjemahan dari anak {target}`,"model.marker.unique":`Indeks unik UQ{index}: {fields}`,"model.marker.index":`Indeks IDX{index}: {fields}`,"logic.title":`Logika`,"logic.objects":`Objek logika`,"logic.search":`Cari logika`,"logic.triggers":`Pemicu`,"logic.procedures":`Prosedur`,"logic.overview":`Ringkasan`,"logic.contract":`Kontrak`,"logic.configuration":`Konfigurasi`,"logic.contractFrom":`Titik masuk ini menggunakan kontrak yang dideklarasikan oleh {target}.`,"logic.input":`Masukan`,"logic.output":`Keluaran`,"logic.noContract":`Kontrak prosedur target tidak tersedia.`,"logic.execution":`Jalur eksekusi`,"logic.target":`Prosedur target`,"logic.authorization":`Otorisasi`,"logic.noAuthorization":`Tidak ada kondisi otorisasi yang dideklarasikan.`,"logic.guard":`Prosedur penjaga`,"logic.method":`Metode`,"logic.surface":`Cakupan`,"logic.hooks":`Hook`,"logic.errorPolicy":`Kebijakan kesalahan`,"docs.title":`Antarmuka API dan agen`,"docs.intro":`Referensi yang diturunkan dari RuntimePlan untuk titik masuk HTTP, MCP, dan WebMCP browser.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`Pemicu HTTP dan rute tampilan publik yang diekspos secara otomatis.`,"docs.mcpIntro":`Alat yang dihasilkan dari tampilan dan pemicu MCP eksplisit. Otorisasi tetap diberlakukan saat alat dijalankan.`,"docs.webmcpIntro":`Integrasi berbasis server ini menemukan tampilan publik melalui HTTP dan mendaftarkannya sebagai alat browser hanya-baca. Setiap tampilan mempertahankan aturan audiensnya sendiri.`,"docs.publicEndpoint":`Titik akhir publik`,"docs.staffEndpoint":`Titik akhir staf`,"docs.catalogEndpoint":`Katalog penemuan`,"docs.target":`Target`,"docs.inputSchema":`Skema masukan`,"docs.outputSchema":`Skema keluaran`,"docs.readOnly":`Hanya baca`,"docs.noEntries":`Tidak ada titik masuk yang dideklarasikan untuk antarmuka ini.`,"docs.webmcpNote":`Alat prosedur publik tetap tersedia melalui MCP. Pembungkus HTTP WebMCP berbasis server sengaja hanya mendaftarkan tampilan publik.`,"developer.graph.title":`Grafik Manifest`,"developer.graph.details":`Detail item`,"developer.graph.openModel":`Buka dalam model data`,"developer.graph.openLogic":`Buka detail logika`,"developer.graph.relayout":`Tata letak otomatis`,"developer.graph.previous":`Langkah sebelumnya`,"developer.graph.next":`Langkah berikutnya`,"developer.graph.step":`Langkah {current} dari {total}`,"developer.graph.comesFrom":`Berasal dari`,"developer.graph.continuesTo":`Berlanjut ke`,"developer.graph.manifestSource":`Sumber Manifest`,"developer.graph.builtin":`Bawaan`,"developer.graph.kind.schema":`Skema`,"developer.graph.kind.view":`Tampilan`,"developer.graph.kind.procedure":`Prosedur`,"developer.graph.kind.trigger":`Pemicu`,"developer.graph.fact.audience":`Audiens`,"developer.graph.fact.transport":`Transport`,"developer.graph.fact.handler":`Penangan`,"developer.graph.fact.operation":`Operasi`,"developer.graph.fact.schema":`Skema`,"developer.graph.fact.match":`Kecocokan`,"developer.graph.summary.trigger":`Permintaan dari {audience} masuk melalui {transport} dan berlanjut ke {target}.`,"developer.graph.summary.builtin":`Operasi bawaan {op} menulis ke {schema}.`,"developer.graph.summary.ref":`Prosedur ini menjalankan penangan kode terdaftar {ref}.`,"developer.graph.summary.view":`Tampilan hanya-baca atas {target} untuk {audience}.`,"developer.graph.summary.schema":`{incoming} item menggunakan skema ini; skema merujuk ke {outgoing} item lain.`,"developer.graph.audience.public":`Publik`,"developer.graph.audience.members":`Anggota`,"developer.graph.audience.staff":`Staf`,"developer.graph.audience.system":`Sistem`,"developer.graph.audience.apiClients":`Klien API`,"developer.graph.audienceDescription.public":`Tersedia tanpa masuk.`,"developer.graph.audienceDescription.members":`Anggota mana pun yang sudah masuk. Peran situs tidak diperlukan.`,"developer.graph.audienceDescription.staff":`Anggota yang sudah masuk dengan peran kontributor, editor, atau pemilik. Staf adalah tingkat akses, bukan akun admin terpisah.`,"developer.graph.audienceDescription.system":`Berjalan otomatis dari peristiwa siklus hidup, antrean, atau jadwal.`,"developer.graph.audienceDescription.apiClients":`Memerlukan klien API terautentikasi atau cakupan yang sesuai.`,"developer.graph.relation.translationParent":`menerjemahkan`,"developer.graph.relation.schemaReference":`merujuk ke`,"developer.graph.relation.viewSource":`membaca dari`,"developer.graph.relation.guard":`dilindungi oleh`,"developer.graph.relation.procedureSchema":`menangani skema`,"developer.graph.relation.collectionAction":`bertindak pada`,"developer.graph.relation.inputReference":`merujuk ke`,"developer.graph.relation.triggerTarget":`memanggil`,"developer.graph.relation.lifecycleSource":`mengawasi siklus hidup`,"status.draft":`Draf`,"status.published":`Terbit`,"status.archived":`Arsip`,"preferences.heading":`Preferensi`,"preferences.language":`Bahasa admin`,"preferences.language.search":`Cari bahasa...`,"preferences.language.noResults":`Bahasa tidak ditemukan.`,"preferences.direction":`Arah teks`,"preferences.direction.auto":`Arah teks mengikuti bahasa yang dipilih.`,"preferences.appearance":`Tampilan`,"preferences.light":`Terang`,"preferences.dark":`Gelap`,"preferences.system":`Sistem`,"preferences.ltr":`Kiri ke kanan`,"preferences.rtl":`Kanan ke kiri`,"preferences.page.open":`Preferensi`,"preferences.page.title":`Preferensi pribadi`,"preferences.page.body":`Preferensi ini tetap di browser ini. Preferensi hanya mengubah konsol admin dan tidak mengubah pengaturan situs.`,"preferences.page.languageBody":`Pilih bahasa untuk halaman sistem dan antarmuka admin.`,"preferences.page.appearanceBody":`Pilih terang, gelap, atau ikuti sistem operasi.`}};function Z(e,t,n={}){let r=ky[e]?.[t]??ky.en[t];for(let[e,t]of Object.entries(n))r=r.split(`{${e}}`).join(t);return r}function Ay({className:e,size:t=`default`,...n}){return(0,H.jsx)(mc,{"data-slot":`avatar`,"data-size":t,className:J(`group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten`,e),...n})}function jy({className:e,...t}){return(0,H.jsx)(gc,{"data-slot":`avatar-image`,className:J(`aspect-square size-full rounded-full object-cover`,e),...t})}function My({className:e,...t}){return(0,H.jsx)(vc,{"data-slot":`avatar-fallback`,className:J(`flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs`,e),...t})}function Ny(e){let t=e?.trim().split(/[\s._-]+/).filter(Boolean)??[];return(t.length>1?`${t[0]?.[0]??``}${t[t.length-1]?.[0]??``}`:(t[0]??`?`).slice(0,2)).toUpperCase()}function Py({brand:e}){let{setOpenMobile:t}=Mv(),n=e.href??`/admin`;return(0,H.jsx)(Wv,{className:`min-w-0 flex-1 group-data-[collapsible=icon]:hidden`,children:(0,H.jsx)(Gv,{children:(0,H.jsx)(qv,{asChild:!0,className:`p-1`,children:(0,H.jsxs)(`a`,{href:n,onClick:()=>t(!1),children:[e.image===null?null:(0,H.jsxs)(Ay,{className:`size-7 rounded-md`,children:[e.image?(0,H.jsx)(jy,{src:e.image,alt:``}):null,(0,H.jsx)(My,{className:`rounded-md text-xs`,children:Ny(e.title)})]}),(0,H.jsx)(`span`,{className:`truncate font-semibold`,children:e.title})]})})})})}function Fy({...e}){return(0,H.jsx)(Ji,{"data-slot":`collapsible`,...e})}function Iy({...e}){return(0,H.jsx)(Ui,{"data-slot":`collapsible-trigger`,...e})}function Ly({...e}){return(0,H.jsx)(Gi,{"data-slot":`collapsible-content`,...e})}function Ry({...e}){return(0,H.jsx)(Op,{"data-slot":`dropdown-menu`,...e})}function zy({...e}){return(0,H.jsx)(kp,{"data-slot":`dropdown-menu-trigger`,...e})}function By({className:e,align:t=`start`,sideOffset:n=4,...r}){return(0,H.jsx)(Ap,{children:(0,H.jsx)(jp,{"data-slot":`dropdown-menu-content`,sideOffset:n,align:t,className:J(`z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:overflow-hidden data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r})})}function Vy({className:e,inset:t,variant:n=`default`,...r}){return(0,H.jsx)(Np,{"data-slot":`dropdown-menu-item`,"data-inset":t,"data-variant":n,className:J(`group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:ps-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive`,e),...r})}function Hy({className:e,inset:t,...n}){return(0,H.jsx)(Mp,{"data-slot":`dropdown-menu-label`,"data-inset":t,className:J(`px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:ps-7`,e),...n})}function Uy({className:e,...t}){return(0,H.jsx)(Pp,{"data-slot":`dropdown-menu-separator`,className:J(`-mx-1 my-1 h-px bg-border`,e),...t})}function Wy(e){return Array.isArray(e.items)}function Gy({group:e,pathname:t,search:n}){return(0,H.jsxs)(Hv,{children:[e.title&&(0,H.jsx)(Uv,{title:e.title,children:e.title}),(0,H.jsx)(Wv,{children:e.items.map(e=>(0,H.jsx)(qy,{item:e,pathname:t,search:n},Ky(e)))})]})}function Ky(e){return Wy(e)?`g:${e.title}`:`l:${e.url}`}function qy({item:e,pathname:t,search:n}){let{state:r,isMobile:i}=Mv();return Wy(e)?r===`collapsed`&&!i?(0,H.jsx)(Zy,{item:e,pathname:t,search:n}):(0,H.jsx)(Yy,{item:e,pathname:t,search:n}):(0,H.jsx)(Jy,{item:e,pathname:t,search:n})}function Jy({item:e,pathname:t,search:n}){let{setOpenMobile:r}=Mv(),i=$y(e,t,n,!0);return(0,H.jsx)(Gv,{children:(0,H.jsx)(qv,{asChild:!0,isActive:i,children:(0,H.jsxs)(`a`,{href:e.url,title:e.title,onClick:()=>r(!1),...e.external?{target:`_blank`,rel:`noreferrer`}:null,children:[e.icon&&(0,H.jsx)(e.icon,{"aria-hidden":!0}),(0,H.jsx)(`span`,{"data-sidebar-label":!0,className:`flex-1 truncate`,children:e.title}),(0,H.jsx)(Qy,{item:e})]})})})}function Yy({item:e,pathname:t,search:n}){let r=tb(e,t,n),[i,a]=V.useState(r);return V.useEffect(()=>{r&&a(!0)},[r]),(0,H.jsx)(Fy,{open:i,onOpenChange:a,className:`group/collapsible`,asChild:!0,children:(0,H.jsxs)(Gv,{children:[(0,H.jsx)(Iy,{asChild:!0,children:(0,H.jsxs)(qv,{isActive:r,children:[e.icon&&(0,H.jsx)(e.icon,{"aria-hidden":!0}),(0,H.jsx)(`span`,{"data-sidebar-label":!0,className:`flex-1 truncate`,title:e.title,children:e.title}),(0,H.jsx)(Qy,{item:e}),(0,H.jsx)(Mt,{"aria-hidden":!0,"data-sidebar-label":!0,className:`transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90 rtl:rotate-180 rtl:group-data-[state=open]/collapsible:-rotate-90`})]})}),(0,H.jsx)(Ly,{children:(0,H.jsx)(Jv,{children:e.items.map(r=>(0,H.jsx)(Xy,{link:r,siblings:e.items,pathname:t,search:n},r.url))})})]})})}function Xy({link:e,siblings:t,pathname:n,search:r}){let{setOpenMobile:i}=Mv(),a=eb(e,t,n,r);return(0,H.jsx)(Yv,{children:(0,H.jsx)(Xv,{asChild:!0,isActive:a,children:(0,H.jsxs)(`a`,{href:e.url,title:e.title,onClick:()=>i(!1),children:[e.icon&&(0,H.jsx)(e.icon,{"aria-hidden":!0}),(0,H.jsx)(`span`,{children:e.title})]})})})}function Zy({item:e,pathname:t,search:n}){let r=tb(e,t,n),{direction:i}=X();return(0,H.jsx)(Gv,{children:(0,H.jsxs)(Ry,{children:[(0,H.jsx)(zy,{asChild:!0,children:(0,H.jsxs)(qv,{isActive:r,tooltip:e.markerLabel?`${e.title} · ${e.markerLabel}`:e.title,children:[e.icon&&(0,H.jsx)(e.icon,{"aria-hidden":!0}),(0,H.jsx)(`span`,{"data-sidebar-label":!0,title:e.title,children:e.title}),(0,H.jsx)(Mt,{"aria-hidden":!0,"data-sidebar-label":!0,className:`ms-auto`})]})}),(0,H.jsxs)(By,{side:i===`rtl`?`left`:`right`,align:`start`,sideOffset:4,children:[(0,H.jsx)(Hy,{children:e.title}),(0,H.jsx)(Uy,{}),e.items.map(r=>(0,H.jsx)(Vy,{asChild:!0,children:(0,H.jsx)(`a`,{href:r.url,className:J(eb(r,e.items,t,n)&&`font-medium`),children:r.title})},r.url))]})]})})}function Qy({item:e}){if(!e.marker)return null;let t=e.marker,n=(0,H.jsx)(`span`,{"data-sidebar-label":!0,className:`inline-flex text-primary group-data-[active=true]/menu-button:text-sidebar-accent-foreground`,children:(0,H.jsx)(t,{"aria-hidden":!0,className:`size-3.5`})});return e.markerLabel?(0,H.jsxs)(Sv,{children:[(0,H.jsx)(Cv,{asChild:!0,children:n}),(0,H.jsx)(wv,{side:`right`,children:e.markerLabel})]}):n}function $y(e,t,n,r=!1){let i=new URL(e.url,`http://x`);if(i.pathname!==t&&!(r&&i.pathname.startsWith(`/admin/c/`)&&t.startsWith(`${i.pathname}/`)))return!1;if(!i.search)return!0;let a=new URLSearchParams(i.search),o=new URLSearchParams(n);for(let[e,t]of a.entries())if(o.get(e)!==t)return!1;return!0}function eb(e,t,n,r){return $y(e,n,r,!0)?new URL(e.url,`http://x`).search?!0:!t.some(t=>t.url===e.url||!new URL(t.url,`http://x`).search?!1:$y(t,n,r,!0)):!1}function tb(e,t,n){return e.items.some(e=>$y(e,t,n,!0))?!0:e.items.some(e=>new URL(e.url,`http://x`).pathname===t)}function nb(){fetch(`/api/auth/sign-out`,{method:`POST`,credentials:`include`}).then(()=>{window.location.href=`/admin/sign-in`})}function rb({login:e,image:t,role:n}){let{isMobile:r}=Mv(),{language:i}=X(),a=Ny(e);return(0,H.jsx)(Wv,{children:(0,H.jsx)(Gv,{children:(0,H.jsxs)(Ry,{children:[(0,H.jsx)(zy,{asChild:!0,children:(0,H.jsxs)(qv,{size:`lg`,className:`data-[state=open]:bg-sidebar-accent`,children:[(0,H.jsx)(ib,{src:t,fallback:a}),(0,H.jsxs)(`div`,{className:`grid min-w-0 flex-1 text-start text-sm leading-tight`,children:[(0,H.jsx)(`span`,{className:`truncate font-medium`,children:e??Z(i,`common.signedIn`)}),(0,H.jsx)(`span`,{className:`truncate text-xs text-muted-foreground`,children:n??Z(i,`common.signedIn`)})]}),(0,H.jsx)(Pt,{className:`ms-auto`,"aria-hidden":!0})]})}),(0,H.jsxs)(By,{align:`end`,side:r?`bottom`:`right`,sideOffset:4,className:`w-(--radix-dropdown-menu-trigger-width) min-w-56`,children:[(0,H.jsxs)(Hy,{className:`flex items-center gap-2`,children:[(0,H.jsx)(ib,{src:t,fallback:a}),(0,H.jsxs)(`div`,{className:`grid min-w-0 flex-1 leading-tight`,children:[(0,H.jsx)(`span`,{className:`truncate font-medium`,children:e??Z(i,`common.signedIn`)}),(0,H.jsx)(`span`,{className:`truncate text-xs text-muted-foreground`,children:n??Z(i,`common.signedIn`)})]})]}),(0,H.jsx)(Uy,{}),(0,H.jsx)(Vy,{asChild:!0,children:(0,H.jsxs)(`a`,{href:`/admin/preferences`,children:[(0,H.jsx)(Nn,{"aria-hidden":!0}),Z(i,`preferences.page.open`)]})}),(0,H.jsxs)(Vy,{variant:`destructive`,onSelect:()=>nb(),children:[(0,H.jsx)(gn,{"aria-hidden":!0}),Z(i,`common.signOut`)]})]})]})})})}function ib({src:e,fallback:t}){return(0,H.jsxs)(Ay,{className:`size-8 rounded-lg`,children:[e?(0,H.jsx)(jy,{src:e,alt:``}):null,(0,H.jsx)(My,{className:`rounded-lg`,children:t})]})}function ab({brand:e,groups:t,pathname:n,search:r,user:i}){let{direction:a,language:o}=X();return(0,H.jsxs)(Pv,{side:a===`rtl`?`right`:`left`,collapsible:`icon`,dir:a,mobileTitle:Z(o,`common.mobileSidebar`),mobileDescription:Z(o,`common.mobileSidebarDescription`),closeLabel:Z(o,`common.close`),children:[(0,H.jsx)(zv,{className:`h-14 justify-center border-b border-sidebar-border px-2 py-0`,children:(0,H.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1`,children:[(0,H.jsx)(Py,{brand:e}),(0,H.jsx)(Fv,{className:`shrink-0 group-data-[collapsible=icon]:mx-auto`,"aria-label":Z(o,`common.toggleSidebar`)})]})}),(0,H.jsx)(Vv,{children:t.map((e,t)=>(0,H.jsx)(Gy,{group:e,pathname:n,search:r},e.title??`g-${t}`))}),(0,H.jsx)(Bv,{className:`border-t border-sidebar-border`,children:(0,H.jsx)(rb,{login:i.login,image:i.image,role:i.role})}),(0,H.jsx)(Iv,{"aria-label":Z(o,`common.toggleSidebar`)})]})}function ob({className:e,...t}){return(0,H.jsx)(`nav`,{"data-slot":`breadcrumb`,className:J(e),...t})}function sb({className:e,...t}){return(0,H.jsx)(`ol`,{"data-slot":`breadcrumb-list`,className:J(`flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground`,e),...t})}function cb({className:e,...t}){return(0,H.jsx)(`li`,{"data-slot":`breadcrumb-item`,className:J(`inline-flex items-center gap-1`,e),...t})}function lb({asChild:e,className:t,...n}){let r=e?mr:`a`;return(0,H.jsx)(r,{"data-slot":`breadcrumb-link`,className:J(`transition-colors hover:text-foreground`,t),...n})}function ub({className:e,...t}){return(0,H.jsx)(`span`,{"data-slot":`breadcrumb-page`,role:`link`,"aria-disabled":`true`,"aria-current":`page`,className:J(`font-normal text-foreground`,e),...t})}function db({children:e,className:t,...n}){return(0,H.jsx)(`li`,{"data-slot":`breadcrumb-separator`,role:`presentation`,"aria-hidden":`true`,className:J(`[&>svg]:size-3.5`,t),...n,children:e??(0,H.jsx)(Mt,{className:`rtl:rotate-180`})})}function fb({compact:e=!1}){let{language:t,setLanguage:n}=X(),r=_y.find(e=>e.value===t)??_y[0];return(0,H.jsxs)(Ry,{children:[(0,H.jsxs)(Sv,{children:[(0,H.jsx)(Cv,{asChild:!0,children:(0,H.jsx)(`span`,{className:`inline-flex`,children:(0,H.jsx)(zy,{asChild:!0,children:(0,H.jsxs)(Y,{type:`button`,variant:`ghost`,size:e?`icon-sm`:`sm`,"aria-label":Z(t,`preferences.language`),children:[(0,H.jsx)(rn,{"aria-hidden":!0}),(0,H.jsx)(`span`,{className:e?`sr-only`:`hidden text-xs font-medium sm:inline`,children:r.nativeLabel})]})})})}),(0,H.jsx)(wv,{children:Z(t,`preferences.language`)})]}),(0,H.jsxs)(By,{align:`end`,className:`max-h-[min(28rem,80vh)] w-52 overflow-y-auto`,children:[(0,H.jsx)(Hy,{children:Z(t,`preferences.language`)}),_y.map(e=>(0,H.jsxs)(Vy,{onSelect:()=>n(e.value),className:`justify-between`,children:[(0,H.jsx)(`span`,{children:e.nativeLabel}),(0,H.jsx)(kt,{"aria-hidden":!0,className:J(`size-4 text-primary`,e.value===t?`opacity-100`:`opacity-0`)})]},e.value))]})]})}function pb({compact:e=!1}){let{language:t,theme:n,setTheme:r}=X(),i=mb(t).find(e=>e.value===n),a=i?.icon??vn;return(0,H.jsxs)(Ry,{children:[(0,H.jsxs)(Sv,{children:[(0,H.jsx)(Cv,{asChild:!0,children:(0,H.jsx)(`span`,{className:`inline-flex`,children:(0,H.jsx)(zy,{asChild:!0,children:(0,H.jsxs)(Y,{type:`button`,variant:`ghost`,size:e?`icon-sm`:`sm`,"aria-label":Z(t,`preferences.appearance`),children:[(0,H.jsx)(a,{"aria-hidden":!0}),(0,H.jsx)(`span`,{className:e?`sr-only`:`hidden text-xs font-medium sm:inline`,children:i?.label??Z(t,`preferences.system`)})]})})})}),(0,H.jsx)(wv,{children:Z(t,`preferences.appearance`)})]}),(0,H.jsxs)(By,{align:`end`,className:`w-44`,children:[(0,H.jsx)(Hy,{children:Z(t,`preferences.appearance`)}),mb(t).map(e=>{let t=e.icon;return(0,H.jsxs)(Vy,{onSelect:()=>r(e.value),className:`justify-between`,children:[(0,H.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,H.jsx)(t,{className:`size-4`,"aria-hidden":!0}),e.label]}),(0,H.jsx)(kt,{"aria-hidden":!0,className:J(`size-4 text-primary`,e.value===n?`opacity-100`:`opacity-0`)})]},e.value)})]})]})}function mb(e){return[{value:`light`,label:Z(e,`preferences.light`),icon:Fn},{value:`dark`,label:Z(e,`preferences.dark`),icon:yn},{value:`system`,label:Z(e,`preferences.system`),icon:vn}]}function hb({className:e,site:t,publicUrl:n,pageTitle:r,workspaceLink:i}){let{pathname:a}=gy(),{language:o}=X(),s=r??gb(a,o);return(0,H.jsxs)(`header`,{"data-slot":`app-header`,className:J(`flex h-14 shrink-0 items-center gap-2 border-b px-4`,e),children:[(0,H.jsx)(Fv,{className:`-ms-1 md:hidden`,"aria-label":Z(o,`common.toggleSidebar`)}),(0,H.jsx)(ob,{className:`min-w-0`,"aria-label":Z(o,`common.breadcrumb`),children:(0,H.jsxs)(sb,{className:`flex-nowrap`,children:[(0,H.jsx)(cb,{className:`hidden sm:block`,children:(0,H.jsx)(lb,{href:t?.href??`/admin`,children:t?.title??Z(o,`admin.consoleTitle`)})}),s?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(db,{className:`hidden sm:block`}),(0,H.jsx)(cb,{className:`min-w-0`,children:(0,H.jsx)(ub,{className:`truncate`,children:s})})]}):null]})}),(0,H.jsxs)(`div`,{className:`ms-auto flex shrink-0 items-center gap-1`,children:[i?(0,H.jsxs)(Sv,{children:[(0,H.jsx)(Cv,{asChild:!0,children:(0,H.jsx)(Y,{asChild:!0,variant:`ghost`,size:`icon-sm`,children:(0,H.jsx)(`a`,{href:i.href,"aria-label":i.label,children:(0,H.jsx)(i.icon,{"aria-hidden":!0})})})}),(0,H.jsx)(wv,{children:i.label})]}):null,n?(0,H.jsxs)(Sv,{children:[(0,H.jsx)(Cv,{asChild:!0,children:(0,H.jsx)(Y,{asChild:!0,variant:`ghost`,size:`icon-sm`,children:(0,H.jsx)(`a`,{href:n,target:`_blank`,rel:`noreferrer`,"aria-label":Z(o,`common.viewSite`),children:(0,H.jsx)(Wt,{"aria-hidden":!0})})})}),(0,H.jsx)(wv,{children:Z(o,`common.viewSite`)})]}):null,(0,H.jsx)(fb,{compact:!0}),(0,H.jsx)(pb,{compact:!0})]})]})}function gb(e,t){if(e===`/admin`||e===`/admin/`)return null;let n=e.match(/^\/admin\/c\/([^/]+)/);if(n)return ry(decodeURIComponent(n[1]));let r=e.split(`/`).filter(Boolean),i=decodeURIComponent(r[r.length-1]??``);return e===`/admin/media`?Z(t,`nav.media`):e===`/admin/settings`?Z(t,`nav.settings`):e===`/admin/staff`?Z(t,`nav.staff`):e===`/admin/members`?Z(t,`nav.members`):e===`/admin/dev`?Z(t,`nav.overview`):e===`/admin/dev/model`?Z(t,`model.title`):e===`/admin/dev/logic`?Z(t,`logic.title`):e===`/admin/dev/docs`?Z(t,`docs.title`):i?ry(i):null}var _b=`content`;function vb({className:e}){let{language:t}=X();return(0,H.jsx)(`a`,{href:`#${_b}`,className:J(`fixed inset-inline-start-3 top-3 z-[999]`,`-translate-y-52 rounded-md bg-primary px-3 py-2 text-sm font-medium`,`text-primary-foreground shadow`,`focus-visible:translate-y-0 transition-transform`,`outline-2 outline-offset-2 outline-ring/40`,e),children:Z(t,`common.skipToMain`)})}function yb({className:e,children:t}){return(0,H.jsx)(`div`,{id:_b,className:J(`@container/content`,`mx-auto w-full max-w-[1440px] flex-1 px-4 py-6 sm:px-6`,e),children:t})}function bb(e,t){switch(t){case`draft`:return Z(e,`status.draft`);case`published`:return Z(e,`status.published`);case`archived`:return Z(e,`status.archived`)}}function xb({className:e,size:t=`default`,...n}){return(0,H.jsx)(`div`,{"data-slot":`card`,"data-size":t,className:J(`group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl`,e),...n})}function Sb({className:e,...t}){return(0,H.jsx)(`div`,{"data-slot":`card-header`,className:J(`group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)`,e),...t})}function Cb({className:e,...t}){return(0,H.jsx)(`div`,{"data-slot":`card-title`,className:J(`font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,e),...t})}function wb({className:e,...t}){return(0,H.jsx)(`div`,{"data-slot":`card-description`,className:J(`text-sm text-muted-foreground`,e),...t})}function Tb({className:e,...t}){return(0,H.jsx)(`div`,{"data-slot":`card-content`,className:J(`px-(--card-spacing)`,e),...t})}var Eb=V.createContext(null);function Db({eyebrow:e,title:t,description:n,actions:r}){return(0,H.jsxs)(`div`,{className:`mb-6 flex flex-wrap items-end justify-between gap-4`,children:[(0,H.jsxs)(`div`,{className:`min-w-0`,children:[e?(0,H.jsx)(`div`,{className:`mb-1 text-sm text-muted-foreground`,children:e}):null,(0,H.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight`,children:t}),n?(0,H.jsx)(`div`,{className:`mt-1 max-w-3xl text-sm text-muted-foreground`,children:n}):null]}),r?(0,H.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:r}):null]})}function Ob({id:e,className:t,children:n}){return(0,H.jsx)(xb,{id:e,className:J(`p-5`,t),children:n})}function kb({status:e,children:t}){let n=V.useContext(Eb);return n?(0,Dr.createPortal)((0,H.jsxs)(`div`,{"data-slot":`form-action-bar`,className:`flex w-full flex-wrap items-center justify-between gap-3`,children:[(0,H.jsx)(`div`,{className:`min-h-5 min-w-0 text-sm text-muted-foreground`,"aria-live":`polite`,children:e}),(0,H.jsx)(`div`,{className:`ms-auto flex shrink-0 items-center gap-2`,children:t})]}),n):(0,H.jsx)(H.Fragment,{})}function Ab({icon:e=Ft,title:t,description:n,action:r}){return(0,H.jsxs)(`div`,{className:`rounded-lg border border-dashed border-border p-8 text-center`,children:[(0,H.jsx)(`div`,{className:`mx-auto mb-3 inline-flex size-10 items-center justify-center rounded-full bg-accent text-accent-foreground`,children:(0,H.jsx)(e,{className:`size-5`,"aria-hidden":!0})}),(0,H.jsx)(`h2`,{className:`text-lg`,children:t}),n?(0,H.jsx)(`p`,{className:`mx-auto mt-1 max-w-xl text-sm text-muted-foreground`,children:n}):null,r?(0,H.jsx)(`div`,{className:`mt-4`,children:r}):null]})}function jb({error:e}){let{language:t}=X();if(Nb(e))return null;let n=e instanceof Error?e.message:Z(t,`common.unknownError`);return(0,H.jsxs)(`div`,{className:`rounded-lg border border-destructive/30 bg-destructive/5 p-4 text-sm text-destructive`,children:[Z(t,`common.failedToLoad`),`: `,n]})}function Mb({error:e}){let{language:t}=X();if(Nb(e))return null;let n=e instanceof Error?e.message:String(e);return(0,H.jsxs)(`div`,{className:`rounded-lg border border-destructive/30 bg-destructive/5 p-4 text-sm text-destructive`,children:[(0,H.jsx)(`p`,{children:Z(t,`ops.error.executionFailed`)}),(0,H.jsxs)(`details`,{className:`group mt-2`,children:[(0,H.jsx)(`summary`,{className:`inline-flex cursor-pointer list-none items-center rounded-md border border-destructive/30 bg-card/40 px-2.5 py-1 text-xs font-semibold text-destructive/80 transition hover:bg-destructive/10`,children:Z(t,`ops.error.detailsLabel`)}),(0,H.jsx)(`p`,{className:`mt-2 max-w-3xl whitespace-pre-wrap break-words rounded-md border border-destructive/20 bg-card/30 p-3 font-mono text-xs leading-relaxed text-destructive/90`,children:n})]})]})}function Nb(e){let t=e instanceof Qv&&e.status===401;return V.useEffect(()=>{if(!t||typeof window>`u`)return;let e=window.location.pathname+window.location.search;window.location.href=`/admin/sign-in?return=${encodeURIComponent(e)}`},[t]),t}function Pb({description:e,summaryLabel:t,collapsedIntro:n}){return Fb(e)?(0,H.jsxs)(`div`,{className:`space-y-2`,children:[(0,H.jsx)(`p`,{children:n}),(0,H.jsxs)(`details`,{className:`group`,children:[(0,H.jsx)(`summary`,{className:`inline-flex cursor-pointer list-none items-center rounded-md border border-border bg-card/70 px-2.5 py-1 text-xs font-semibold text-foreground/70 transition hover:bg-accent hover:text-accent-foreground`,children:t}),(0,H.jsx)(`p`,{className:`mt-2 max-w-3xl rounded-md border border-border bg-card/55 p-3 text-xs leading-relaxed text-muted-foreground`,children:e})]})]}):(0,H.jsx)(H.Fragment,{children:e})}function Fb(e){return e.length>180||e.includes("`")}function Ib({label:e,value:t,href:n}){let{language:r}=X(),[i,a]=V.useState(!1);async function o(){try{await navigator.clipboard.writeText(t),a(!0),window.setTimeout(()=>a(!1),1400)}catch{a(!1)}}return(0,H.jsxs)(`div`,{className:`rounded-lg border bg-muted/30 p-3`,children:[(0,H.jsxs)(`div`,{className:`mb-1 flex items-center justify-between gap-3`,children:[(0,H.jsx)(`span`,{className:`text-xs font-medium text-muted-foreground`,children:e}),(0,H.jsxs)(`div`,{className:`flex items-center gap-1`,children:[n?(0,H.jsx)(Y,{asChild:!0,variant:`ghost`,size:`icon`,className:`size-7`,children:(0,H.jsx)(`a`,{href:n,target:`_blank`,rel:`noreferrer`,"aria-label":`${Z(r,`common.open`)} ${e}`,children:(0,H.jsx)(Wt,{className:`size-3.5`,"aria-hidden":!0})})}):null,(0,H.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon`,className:`size-7`,onClick:o,"aria-label":`${Z(r,`common.copy`)} ${e}`,children:i?(0,H.jsx)(kt,{className:`size-3.5 text-[color:var(--success)]`,"aria-hidden":!0}):(0,H.jsx)(zt,{className:`size-3.5`,"aria-hidden":!0})})]})]}),(0,H.jsx)(`code`,{className:`block truncate font-mono text-xs text-foreground`,children:t})]})}function Lb({children:e,workspace:t=`content`}){let[n,r]=V.useState(null),{pathname:i,search:a}=gy(),o=t===`developer`&&[`/admin/dev`,`/admin/dev/model`,`/admin/dev/logic`,`/admin/dev/docs`].includes(i),{language:s}=X(),c=it({queryKey:[`me`],queryFn:()=>ey.get(`/me`),retry:!1}),l=it({queryKey:[`collections`],queryFn:async()=>(await ey.get(`/collections`)).collections,enabled:t===`content`}),u=it({queryKey:[`site`],queryFn:()=>ey.get(`/site`)}),d=it({...cy(),enabled:t===`content`});V.useEffect(()=>{if(u.data?.icons.length){document.querySelectorAll(`link[rel~='icon']`).forEach(e=>e.remove());for(let e of u.data.icons){let t=document.createElement(`link`);t.rel=`icon`,t.href=e.src,e.mimeType&&(t.type=e.mimeType),e.sizes&&t.sizes.add(...e.sizes),e.theme&&(t.media=`(prefers-color-scheme: ${e.theme})`),document.head.append(t)}}},[u.data?.icons]);let f=V.useMemo(()=>({title:t===`developer`?Z(s,`developer.workspaceTitle`):u.data?.brand??Z(s,`admin.consoleTitle`),href:t===`developer`?`/admin/dev`:`/admin`,image:t===`developer`?null:Rb(u.data?.icons)}),[s,u.data,t]),p=u.data?.canonicalLocale??null,m=V.useMemo(()=>t===`developer`?Bb(s):zb(l.data??[],d.data??[],s,p,c.data?.role??null),[l.data,d.data,s,p,c.data?.role,t]),h=i.match(/^\/admin\/c\/([^/]+)/)?.[1],g=i.match(/^\/admin\/views\/([^/]+)/)?.[1],_=h?l.data?.find(e=>e.name===decodeURIComponent(h)):d.data?.find(e=>e.name===decodeURIComponent(g??``)),v=_?ny(_.title,s,p)??ry(_.name):void 0;return(0,H.jsx)(Eb.Provider,{value:n,children:(0,H.jsxs)(Nv,{className:`h-svh min-h-0 overflow-hidden`,children:[(0,H.jsx)(vb,{}),(0,H.jsx)(ab,{brand:f,groups:m,pathname:i,search:a,user:{login:c.data?.login??null,image:c.data?.image??null,role:c.data?.role??null}}),(0,H.jsxs)(Lv,{className:`min-h-0 overflow-hidden`,children:[(0,H.jsx)(hb,{className:`absolute inset-x-0 top-0 z-30`,site:f,publicUrl:u.data?.publicUrl,pageTitle:v,workspaceLink:t===`developer`?{href:`/admin`,label:Z(s,`common.contentAdmin`),icon:an}:c.data?.role===`owner`?{href:`/admin/dev`,label:Z(s,`developer.workspaceTitle`),icon:Zn}:void 0}),(0,H.jsx)(yb,{className:o?`min-h-0 max-w-none overflow-hidden px-0 py-0 pt-14 pb-10 sm:px-0`:`min-h-0 overflow-y-auto overscroll-contain pt-20 ${t===`developer`?`pb-14`:`pb-20`}`,children:e}),(0,H.jsxs)(`footer`,{"data-slot":`status-bar`,className:`absolute inset-x-0 bottom-0 z-30 flex items-center border-t px-4 sm:px-6 ${t===`developer`?`min-h-10 py-1.5`:`min-h-16 py-3`}`,children:[(0,H.jsx)(`div`,{ref:r,"data-slot":`status-bar-action-host`,className:`contents`}),(0,H.jsx)(`div`,{"data-slot":`status-bar-meta`,className:`ms-auto flex items-center justify-end`,children:(0,H.jsxs)(`a`,{href:`https://www.npmjs.com/package/@aotter/mantle/v/0.1.0-alpha.16`,target:`_blank`,rel:`noreferrer`,className:`rounded-md px-2 py-1 font-mono text-xs text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground`,children:[`@aotter/mantle-`,`0.1.0-alpha.16`]})})]})]})]})})}function Rb(e){return e?.find(e=>e.sizes?.includes(`64x64`)&&!e.theme)?.src??e?.find(e=>!e.theme)?.src??e?.[0]?.src}function zb(e,t,n,r,i){let a=e.filter(e=>!e.parent),o=a.filter(e=>e.lifecycle!==`operational`),s=a.filter(e=>e.lifecycle===`operational`),c={items:[{title:Z(n,`nav.home`),url:`/admin`,icon:Xt}]},l={title:Z(n,`nav.content`),items:o.map(e=>Vb(e,n,r))},u=s.length>0?{title:Z(n,`nav.operations`),items:s.map(e=>Vb(e,n,r))}:null,d=t.filter(e=>e.surface===`public`),f=t.filter(e=>e.surface===`staff`),p=d.length>0?{title:Z(n,`views.publicServices`),items:d.map(e=>({title:ny(e.title,n,r)??ry(e.name),icon:Jt,url:`/admin/views/${encodeURIComponent(e.name)}`}))}:null,m=f.length>0?{title:Z(n,`nav.reports`),items:f.map(e=>({title:ny(e.title,n,r)??ry(e.name),icon:Ot,url:`/admin/views/${encodeURIComponent(e.name)}`}))}:null,h={title:Z(n,`nav.more`),items:[...i===`owner`||i===`editor`?[{title:Z(n,`nav.media`),url:`/admin/media`,icon:$t},{title:Z(n,`nav.members`),url:`/admin/members`,icon:Rt}]:[],...i===`owner`?[{title:Z(n,`nav.settings`),url:`/admin/settings`,icon:Nn},{title:Z(n,`nav.staff`),url:`/admin/staff`,icon:qn}]:[]]};return[c,l,...u?[u]:[],...p?[p]:[],...m?[m]:[],...h.items.length>0?[h]:[]]}function Bb(e){return[{title:Z(e,`nav.build`),items:[{title:Z(e,`nav.overview`),url:`/admin/dev`,icon:an},{title:Z(e,`nav.model`),url:`/admin/dev/model`,icon:Bt},{title:Z(e,`nav.logic`),url:`/admin/dev/logic`,icon:Xn},{title:Z(e,`nav.docs`),url:`/admin/dev/docs`,icon:wt}]}]}function Vb(e,t,n){let r=e.localized||e.hasTranslations,i={title:ny(e.title,t,n)??ry(e.name),icon:qt,marker:r?Jt:void 0,markerLabel:r?Z(t,`nav.localizedContent`):void 0};if(e.lifecycle===`operational`&&e.filter)return{...i,items:[{title:Z(t,`collection.filter.all`),url:`/admin/c/${e.name}`},...e.filter.values.map(t=>({title:ry(t),url:`/admin/c/${e.name}?filter_field=${encodeURIComponent(e.filter.field)}&filter_value=${encodeURIComponent(t)}`}))]};let a=Hb(e);return a.length===0?{...i,url:`/admin/c/${e.name}`}:{...i,items:[{title:Z(t,`collection.filter.all`),url:`/admin/c/${e.name}`},...a.map(n=>({title:bb(t,n),url:`/admin/c/${e.name}?status=${n}`}))]}}function Hb(e){return e.lifecycle===`operational`?[]:uy}function Ub({children:e,wide:t=!1}){return(0,H.jsx)(`main`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,H.jsx)(xb,{className:t?`w-full max-w-md`:`w-full max-w-sm`,children:e})})}function Wb(){return(0,H.jsxs)(Ub,{children:[(0,H.jsx)(Sb,{children:(0,H.jsx)(bv,{className:`h-4 w-24`})}),(0,H.jsxs)(Tb,{className:`space-y-2`,"aria-busy":`true`,children:[(0,H.jsx)(bv,{className:`h-3 w-full`}),(0,H.jsx)(bv,{className:`h-3 w-2/3`})]})]})}function Gb({error:e}){let{language:t}=X(),n=e instanceof Error?e.message:Z(t,`common.unknownError`);return(0,H.jsx)(Ub,{children:(0,H.jsxs)(Sb,{className:`text-center`,children:[(0,H.jsx)(Cb,{className:`text-xl`,children:(0,H.jsx)(`h1`,{children:Z(t,`auth.error.title`)})}),(0,H.jsx)(wb,{role:`alert`,children:n})]})})}function Kb({login:e}){let{language:t}=X();return(0,H.jsxs)(Ub,{wide:!0,children:[(0,H.jsxs)(Sb,{className:`text-center`,children:[(0,H.jsx)(`div`,{className:`mx-auto mb-3 inline-flex size-10 items-center justify-center rounded-full bg-destructive/10 text-destructive`,children:(0,H.jsx)(Vn,{className:`size-5`,"aria-hidden":!0})}),(0,H.jsx)(Cb,{className:`text-xl`,children:(0,H.jsx)(`h1`,{children:Z(t,`auth.accessDenied.title`)})}),e?(0,H.jsxs)(wb,{className:`font-medium text-foreground`,children:[`GitHub: `,e]}):null]}),(0,H.jsxs)(Tb,{className:`text-center`,children:[(0,H.jsx)(`p`,{className:`mb-1 text-sm text-muted-foreground`,children:Z(t,`auth.accessDenied.noStaff`)}),(0,H.jsx)(`p`,{className:`mb-6 text-sm text-muted-foreground`,children:Z(t,`auth.accessDenied.askOwner`)}),(0,H.jsxs)(Y,{variant:`outline`,className:`w-full`,onClick:nb,children:[(0,H.jsx)(gn,{className:`me-2 size-4`,"aria-hidden":!0}),Z(t,`common.signOut`)]})]})]})}var qb=`first:mt-0 mt-4`,Jb=`first:mt-0 first:border-t-0 first:pt-0 mt-6 border-t border-border pt-4`;function Yb(e){if(!e?.startsWith(`/`))return`/admin`;try{let t=`https://mantle.invalid`,n=new URL(e,t);return n.origin===t?`${n.pathname}${n.search}${n.hash}`:`/admin`}catch{return`/admin`}}function Xb(e){let t=new URLSearchParams(e);if(!t.has(`sig`))return;let n=new Set(t.getAll(`ba_param`));if(n.size===0)return;let r=new URLSearchParams;for(let[e,i]of t)(e===`sig`||e===`ba_param`||n.has(e))&&r.append(e,i);return r.toString()}function Zb({busy:e,children:t,disabled:n,...r}){return(0,H.jsxs)(Y,{...r,disabled:e||n,"aria-busy":e||void 0,children:[e?(0,H.jsx)(mn,{className:`animate-spin`,"aria-hidden":!0}):null,t]})}function Qb(){let{language:e}=X(),t=Yb(new URLSearchParams(window.location.search).get(`return`)),n=Xb(window.location.search),r=it(sy());return(0,H.jsxs)(Ub,{children:[(0,H.jsxs)(Sb,{children:[(0,H.jsx)(wb,{children:Z(e,`auth.signIn.eyebrow`)}),(0,H.jsx)(Cb,{className:`text-xl`,children:(0,H.jsx)(`h1`,{children:Z(e,`auth.signIn.title`)})})]}),(0,H.jsxs)(Tb,{children:[r.isError?(0,H.jsx)(`p`,{className:`mb-4 text-sm text-destructive`,role:`alert`,children:Z(e,`auth.signIn.methodsLoadFailed`)}):null,r.isLoading?(0,H.jsx)(bv,{className:`h-9 w-full`}):null,r.data?.length===0?(0,H.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Z(e,`auth.signIn.noMethods`)}):null,r.data&&r.data.length>0?(0,H.jsx)(`div`,{children:r.data.map(e=>(0,H.jsx)($b,{method:e,returnTo:t,oauthQuery:n},e.kind===`social`?`social:${e.provider}`:e.kind===`oauth`?`oauth:${e.providerId}`:e.kind))}):null]})]})}function $b({method:e,returnTo:t,oauthQuery:n}){switch(e.kind){case`social`:return(0,H.jsx)(tx,{endpoint:`/api/auth/sign-in/social`,body:{provider:e.provider,callbackURL:t,...n?{oauth_query:n}:{}},buttonKey:`auth.signIn.method.social.button`,displayName:ex[e.provider]??e.provider});case`oauth`:return(0,H.jsx)(tx,{endpoint:`/api/auth/sign-in/social`,body:{provider:e.providerId,callbackURL:t,...n?{oauth_query:n}:{}},buttonKey:`auth.signIn.method.oauth.button`,displayName:e.displayName??e.providerId});case`email-otp`:return(0,H.jsx)(nx,{returnTo:t,oauthQuery:n});case`magic-link`:return(0,H.jsx)(rx,{returnTo:t,oauthQuery:n});default:return(0,H.jsx)(ix,{kind:e.kind})}}var ex={github:`GitHub`,google:`Google`,apple:`Apple`,"microsoft-entra-id":`Microsoft`,facebook:`Facebook`,discord:`Discord`,twitter:`Twitter / X`,linkedin:`LinkedIn`,spotify:`Spotify`,twitch:`Twitch`,gitlab:`GitLab`,tiktok:`TikTok`,reddit:`Reddit`,kick:`Kick`,vk:`VK`,naver:`Naver`,kakao:`Kakao`,line:`LINE`,slack:`Slack`,atlassian:`Atlassian`,zoom:`Zoom`,notion:`Notion`,figma:`Figma`,linear:`Linear`,vercel:`Vercel`,paypal:`PayPal`,huggingface:`Hugging Face`,cognito:`Cognito`,salesforce:`Salesforce`,polar:`Polar`,railway:`Railway`,roblox:`Roblox`,paybin:`Paybin`,wechat:`WeChat`,dropbox:`Dropbox`};function tx({endpoint:e,body:t,buttonKey:n,displayName:r}){let{language:i}=X(),[a,o]=V.useState(!1),[s,c]=V.useState(null),l=async()=>{o(!0),c(null);try{let n=await fetch(e,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)});if(!n.ok)throw Error(`HTTP ${n.status}`);let r=await n.json();if(!r.url)throw Error(`Missing sign-in URL`);window.location.assign(r.url)}catch{c(Z(i,`auth.signIn.startFailed`)),o(!1)}};return(0,H.jsxs)(`div`,{className:qb,children:[(0,H.jsx)(Zb,{busy:a,onClick:()=>void l(),className:`w-full`,children:Z(i,n,{provider:r})}),s?(0,H.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,role:`alert`,children:s}):null]})}function nx({returnTo:e,oauthQuery:t}){let{language:n}=X(),[r,i]=V.useState(`email`),[a,o]=V.useState(``),[s,c]=V.useState(``),[l,u]=V.useState(!1),[d,f]=V.useState(null),p=async e=>{u(!0),f(null);try{await e()}catch{f(Z(n,`auth.signIn.requestFailed`))}finally{u(!1)}};return(0,H.jsxs)(`div`,{className:Jb,children:[(0,H.jsx)(`p`,{className:`mb-2 text-sm text-muted-foreground`,children:Z(n,`auth.signIn.method.email-otp.body`)}),r===`email`?(0,H.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),a&&p(async()=>{if(!(await fetch(`/api/auth/email-otp/send-verification-otp`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:a,type:`sign-in`,...t?{oauth_query:t}:{}})})).ok){f(Z(n,`auth.signIn.method.email-otp.sendFailed`));return}i(`otp`)})},className:`space-y-2`,children:[(0,H.jsx)(`label`,{htmlFor:`signin-email`,className:`sr-only`,children:Z(n,`auth.signIn.method.email-otp.emailLabel`)}),(0,H.jsx)(uv,{id:`signin-email`,type:`email`,value:a,onChange:e=>o(e.currentTarget.value),placeholder:Z(n,`auth.signIn.method.email-otp.emailPlaceholder`),required:!0,autoComplete:`email`}),(0,H.jsx)(Zb,{type:`submit`,className:`w-full`,busy:l,disabled:!a,children:Z(n,`auth.signIn.method.email-otp.sendButton`)})]}):(0,H.jsxs)(`form`,{onSubmit:r=>{r.preventDefault(),s&&p(async()=>{let r=await fetch(`/api/auth/sign-in/email-otp`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:a,otp:s,...t?{oauth_query:t}:{}})});if(!r.ok){f(Z(n,`auth.signIn.method.email-otp.verifyFailed`));return}let i=await r.json();window.location.assign(i.url??e)})},className:`space-y-2`,children:[(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:Z(n,`auth.signIn.method.email-otp.sentTo`,{email:a})}),(0,H.jsx)(`label`,{htmlFor:`signin-otp`,className:`sr-only`,children:Z(n,`auth.signIn.method.email-otp.otpLabel`)}),(0,H.jsx)(uv,{id:`signin-otp`,type:`text`,inputMode:`numeric`,autoComplete:`one-time-code`,value:s,onChange:e=>c(e.currentTarget.value),placeholder:Z(n,`auth.signIn.method.email-otp.otpPlaceholder`),required:!0}),(0,H.jsx)(Zb,{type:`submit`,className:`w-full`,busy:l,disabled:!s,children:Z(n,`auth.signIn.method.email-otp.verifyButton`)}),(0,H.jsx)(`button`,{type:`button`,onClick:()=>i(`email`),className:`text-xs text-muted-foreground underline-offset-2 hover:underline`,children:Z(n,`auth.signIn.method.email-otp.back`)})]}),d?(0,H.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,role:`alert`,children:d}):null]})}function rx({returnTo:e,oauthQuery:t}){let{language:n}=X(),[r,i]=V.useState(``),[a,o]=V.useState(!1),[s,c]=V.useState(!1),[l,u]=V.useState(null),d=async e=>{o(!0),u(null);try{await e()}catch{u(Z(n,`auth.signIn.requestFailed`))}finally{o(!1)}};return(0,H.jsxs)(`div`,{className:Jb,children:[(0,H.jsx)(`p`,{className:`mb-2 text-sm text-muted-foreground`,children:Z(n,`auth.signIn.method.magic-link.body`)}),s?(0,H.jsxs)(`div`,{className:`space-y-2`,children:[(0,H.jsx)(`p`,{className:`text-sm text-foreground`,children:Z(n,`auth.signIn.method.magic-link.sentTo`,{email:r})}),(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:Z(n,`auth.signIn.method.magic-link.clickHint`)}),(0,H.jsx)(`button`,{type:`button`,onClick:()=>{c(!1),i(``)},className:`text-xs text-muted-foreground underline-offset-2 hover:underline`,children:Z(n,`auth.signIn.method.magic-link.anotherEmail`)})]}):(0,H.jsxs)(`form`,{onSubmit:i=>{i.preventDefault(),r&&d(async()=>{if(!(await fetch(`/api/auth/sign-in/magic-link`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:r,callbackURL:e,...t?{oauth_query:t}:{}})})).ok){u(Z(n,`auth.signIn.method.magic-link.sendFailed`));return}c(!0)})},className:`space-y-2`,children:[(0,H.jsx)(`label`,{htmlFor:`signin-mlink-email`,className:`sr-only`,children:Z(n,`auth.signIn.method.magic-link.emailLabel`)}),(0,H.jsx)(uv,{id:`signin-mlink-email`,type:`email`,value:r,onChange:e=>i(e.currentTarget.value),placeholder:Z(n,`auth.signIn.method.magic-link.emailPlaceholder`),required:!0,autoComplete:`email`}),(0,H.jsx)(Zb,{type:`submit`,className:`w-full`,busy:a,disabled:!r,children:Z(n,`auth.signIn.method.magic-link.sendButton`)})]}),l?(0,H.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,role:`alert`,children:l}):null]})}function ix({kind:e}){let{language:t}=X();return(0,H.jsx)(`p`,{className:`mt-4 text-xs text-muted-foreground`,children:Z(t,`auth.signIn.unknownMethod`,{kind:e})})}var ax=ar(`group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80`,destructive:`bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20`,outline:`border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground`,ghost:`hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50`,link:`text-primary underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}});function ox({className:e,variant:t=`default`,asChild:n=!1,...r}){let i=n?mr:`span`;return(0,H.jsx)(i,{"data-slot":`badge`,"data-variant":t,className:J(ax({variant:t}),e),...r})}var sx=`https://claude.ai/customize/connectors?modal=add-custom-connector`,cx=`https://claude.ai/new`;function lx(){let{language:e}=X(),t=it({queryKey:[`site`],queryFn:()=>ey.get(`/site`)}),n=it({queryKey:[`collections`],queryFn:async()=>(await ey.get(`/collections`)).collections}),r=(n.data??[]).filter(e=>!e.parent),i=[{title:Z(e,`nav.content`),items:r.filter(e=>e.lifecycle!==`operational`)},{title:Z(e,`nav.operations`),items:r.filter(e=>e.lifecycle===`operational`)}].filter(e=>e.items.length>0),a=t.data,o=a?.canonicalLocale??null;return(0,H.jsxs)(`div`,{className:`space-y-6`,children:[(0,H.jsx)(Db,{eyebrow:Z(e,`console.eyebrow`),title:a?.brand??Z(e,`admin.consoleTitle`),description:a?Z(e,`console.description`,{title:a.title}):Z(e,`console.descriptionFallback`),actions:a?.publicUrl?(0,H.jsx)(Y,{asChild:!0,variant:`outline`,children:(0,H.jsxs)(`a`,{href:a.publicUrl,target:`_blank`,rel:`noreferrer`,children:[(0,H.jsx)(Jt,{className:`size-4`,"aria-hidden":!0}),Z(e,`common.viewSite`)]})}):null}),t.isLoading?(0,H.jsx)(bv,{className:`h-72 w-full`}):t.isError?(0,H.jsx)(jb,{error:t.error}):a?(0,H.jsxs)(Ob,{className:`overflow-hidden p-0`,children:[(0,H.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-4 border-b border-border/70 p-5`,children:[(0,H.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,H.jsx)(`div`,{className:`rounded-xl bg-primary/15 p-2 text-primary`,children:(0,H.jsx)(Tt,{className:`size-5`,"aria-hidden":!0})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h2`,{className:`text-lg`,children:Z(e,`console.connector.title`)}),(0,H.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Z(e,`console.connector.body`)})]})]}),(0,H.jsxs)(`div`,{className:`flex gap-2`,children:[(0,H.jsx)(ox,{children:`Claude`}),(0,H.jsx)(ox,{variant:`secondary`,children:`MCP`})]})]}),(0,H.jsxs)(`div`,{className:`grid divide-y divide-border/70 md:grid-cols-3 md:divide-x md:divide-y-0`,children:[(0,H.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-4 p-5`,children:[(0,H.jsx)(ux,{children:`1`}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{children:Z(e,`console.connector.step1.title`)}),(0,H.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:Z(e,`console.connector.step1.body`)})]}),(0,H.jsx)(`div`,{className:`mt-auto`,children:(0,H.jsx)(Ib,{label:Z(e,`console.connector.step1.label`),value:a.mcpUrl})})]}),(0,H.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-4 p-5`,children:[(0,H.jsx)(ux,{children:`2`}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{children:Z(e,`console.connector.step2.title`)}),(0,H.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:Z(e,`console.connector.step2.body`)})]}),(0,H.jsx)(`div`,{className:`mt-auto`,children:(0,H.jsx)(Y,{asChild:!0,variant:`outline`,children:(0,H.jsxs)(`a`,{href:sx,target:`_blank`,rel:`noreferrer`,children:[(0,H.jsx)(Wt,{className:`size-4`,"aria-hidden":!0}),Z(e,`console.connector.step2.action`)]})})})]}),(0,H.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-4 p-5`,children:[(0,H.jsx)(ux,{children:`3`}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{children:Z(e,`console.connector.step3.title`)}),(0,H.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:Z(e,`console.connector.step3.body`)})]}),(0,H.jsx)(`div`,{className:`mt-auto`,children:(0,H.jsx)(Y,{asChild:!0,children:(0,H.jsxs)(`a`,{href:cx,target:`_blank`,rel:`noreferrer`,children:[Z(e,`console.connector.step3.action`),(0,H.jsx)(Wt,{className:`size-4`,"aria-hidden":!0})]})})})]})]})]}):null,(0,H.jsxs)(`section`,{"aria-labelledby":`collections-heading`,children:[(0,H.jsx)(`h2`,{id:`collections-heading`,className:`mb-4 text-xl font-semibold`,children:Z(e,`console.collections.title`)}),n.isLoading&&(0,H.jsx)(`div`,{className:`space-y-2`,children:[0,1,2].map(e=>(0,H.jsx)(bv,{className:`h-16 w-full`},e))}),n.isError&&(0,H.jsx)(jb,{error:n.error}),n.data&&r.length===0&&(0,H.jsx)(Ab,{icon:Bt,title:Z(e,`console.collections.emptyTitle`),description:Z(e,`console.collections.emptyBody`)}),r.length>0&&(0,H.jsx)(Ob,{className:`overflow-hidden p-0`,children:i.map((t,n)=>(0,H.jsxs)(`div`,{className:n>0?`border-t`:void 0,children:[(0,H.jsx)(`h3`,{className:`border-b bg-muted/30 px-4 py-2 text-xs font-medium text-muted-foreground`,children:t.title}),(0,H.jsx)(`div`,{className:`divide-y`,children:t.items.map(t=>{let n=ny(t.title,e,o)??ry(t.name),r=ny(t.description,e,o),i=n.toLocaleLowerCase()!==ry(t.name).toLocaleLowerCase();return(0,H.jsxs)(`a`,{href:`/admin/c/${encodeURIComponent(t.name)}`,className:`grid min-h-16 grid-cols-[minmax(0,1fr)_auto] items-center gap-3 px-4 py-3 transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset`,children:[(0,H.jsxs)(`div`,{className:`min-w-0`,children:[(0,H.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-baseline gap-x-2`,children:[(0,H.jsx)(`span`,{className:`truncate font-medium`,children:n}),i?(0,H.jsx)(`span`,{className:`font-mono text-xs text-muted-foreground`,children:t.name}):null]}),r?(0,H.jsx)(`p`,{className:`truncate text-sm text-muted-foreground`,children:r}):null]}),(0,H.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:(0,H.jsx)(Mt,{className:`size-4 text-muted-foreground`,"aria-hidden":!0})})]},t.name)})})]},t.title))})]})]})}function ux({children:e}){return(0,H.jsx)(`span`,{className:`inline-flex size-6 items-center justify-center rounded-full bg-foreground/10 text-xs font-semibold text-foreground`,children:e})}function dx({className:e,...t}){return(0,H.jsx)(Ic,{"data-slot":`checkbox`,className:J(`peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary`,e),...t,children:(0,H.jsx)(Rc,{"data-slot":`checkbox-indicator`,className:`grid place-content-center text-current transition-none [&>svg]:size-3.5`,children:(0,H.jsx)(kt,{})})})}function fx({className:e,...t}){return(0,H.jsx)(`nav`,{role:`navigation`,"data-slot":`pagination`,className:J(`mx-auto flex w-full justify-center`,e),...t})}function px({className:e,...t}){return(0,H.jsx)(`ul`,{"data-slot":`pagination-content`,className:J(`flex items-center gap-0.5`,e),...t})}function mx({...e}){return(0,H.jsx)(`li`,{"data-slot":`pagination-item`,...e})}function hx({className:e,isActive:t,size:n=`icon`,...r}){return(0,H.jsx)(Y,{asChild:!0,variant:t?`outline`:`ghost`,size:n,className:J(e),children:(0,H.jsx)(`a`,{"aria-current":t?`page`:void 0,"data-slot":`pagination-link`,"data-active":t,...r})})}function gx({className:e,text:t,...n}){return(0,H.jsxs)(hx,{size:`default`,className:J(`ps-1.5!`,e),...n,children:[(0,H.jsx)(jt,{"data-icon":`inline-start`,className:`rtl:rotate-180`}),(0,H.jsx)(`span`,{className:`hidden sm:block`,children:t})]})}function _x({className:e,text:t,...n}){return(0,H.jsxs)(hx,{size:`default`,className:J(`pe-1.5!`,e),...n,children:[(0,H.jsx)(`span`,{className:`hidden sm:block`,children:t}),(0,H.jsx)(Mt,{"data-icon":`inline-end`,className:`rtl:rotate-180`})]})}function vx({className:e,...t}){return(0,H.jsx)(`div`,{"data-slot":`table-container`,className:`relative w-full overflow-x-auto`,children:(0,H.jsx)(`table`,{"data-slot":`table`,className:J(`w-full caption-bottom text-sm`,e),...t})})}function yx({className:e,...t}){return(0,H.jsx)(`thead`,{"data-slot":`table-header`,className:J(`[&_tr]:border-b`,e),...t})}function bx({className:e,...t}){return(0,H.jsx)(`tbody`,{"data-slot":`table-body`,className:J(`[&_tr:last-child]:border-0`,e),...t})}function xx({className:e,...t}){return(0,H.jsx)(`tr`,{"data-slot":`table-row`,className:J(`border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted`,e),...t})}function Sx({className:e,...t}){return(0,H.jsx)(`th`,{"data-slot":`table-head`,className:J(`h-10 px-2 text-start align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pe-0`,e),...t})}function Cx({className:e,...t}){return(0,H.jsx)(`td`,{"data-slot":`table-cell`,className:J(`p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0`,e),...t})}function wx({...e}){return(0,H.jsx)(Qs,{"data-slot":`alert-dialog`,...e})}function Tx({...e}){return(0,H.jsx)($s,{"data-slot":`alert-dialog-portal`,...e})}function Ex({className:e,...t}){return(0,H.jsx)(ec,{"data-slot":`alert-dialog-overlay`,className:J(`fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function Dx({className:e,size:t=`default`,...n}){return(0,H.jsxs)(Tx,{children:[(0,H.jsx)(Ex,{}),(0,H.jsx)(tc,{"data-slot":`alert-dialog-content`,"data-size":t,className:J(`group/alert-dialog-content fixed top-1/2 start-1/2 z-50 grid w-full -translate-x-1/2 rtl:translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...n})]})}function Ox({className:e,...t}){return(0,H.jsx)(`div`,{"data-slot":`alert-dialog-header`,className:J(`grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-start sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,e),...t})}function kx({className:e,...t}){return(0,H.jsx)(`div`,{"data-slot":`alert-dialog-footer`,className:J(`-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,e),...t})}function Ax({className:e,...t}){return(0,H.jsx)(ic,{"data-slot":`alert-dialog-title`,className:J(`font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,e),...t})}function jx({className:e,...t}){return(0,H.jsx)(ac,{"data-slot":`alert-dialog-description`,className:J(`text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}function Mx({className:e,variant:t=`default`,size:n=`default`,...r}){return(0,H.jsx)(Y,{variant:t,size:n,asChild:!0,children:(0,H.jsx)(nc,{"data-slot":`alert-dialog-action`,className:J(e),...r})})}function Nx({className:e,variant:t=`outline`,size:n=`default`,...r}){return(0,H.jsx)(Y,{variant:t,size:n,asChild:!0,children:(0,H.jsx)(rc,{"data-slot":`alert-dialog-cancel`,className:J(e),...r})})}var Px=V.createContext(null);function Fx({children:e}){let{language:t}=X(),[n,r]=V.useState(null),i=V.useCallback(e=>new Promise(t=>r({...e,resolve:t})),[]),a=e=>{n?.resolve(e),r(null)};return(0,H.jsxs)(Px.Provider,{value:i,children:[e,(0,H.jsx)(wx,{open:n!=null,onOpenChange:e=>!e&&a(!1),children:(0,H.jsxs)(Dx,{children:[(0,H.jsxs)(Ox,{children:[(0,H.jsx)(Ax,{children:Z(t,`confirm.title`)}),(0,H.jsx)(jx,{children:n?.description})]}),(0,H.jsxs)(kx,{children:[(0,H.jsx)(Nx,{onClick:()=>a(!1),children:Z(t,`confirm.cancel`)}),(0,H.jsx)(Mx,{variant:`destructive`,onClick:()=>a(!0),children:Z(t,`confirm.confirm`)})]})]})})]})}function Ix(){let e=V.useContext(Px);if(!e)throw Error(`useConfirm() must be used within <ConfirmProvider>.`);return e}var Lx={draft:`bg-muted text-muted-foreground`,published:`bg-[color-mix(in_srgb,var(--success)_18%,transparent)] text-[color:var(--success)]`,archived:`bg-secondary text-muted-foreground`},Rx={draft:`status.draft`,published:`status.published`,archived:`status.archived`};function zx({status:e,className:t}){let{language:n}=X(),r=Bx(e),i=Rx[e];return(0,H.jsx)(ox,{variant:`secondary`,className:J(r?Lx[e]:`bg-accent text-accent-foreground`,t),children:i?Z(n,i):e})}function Bx(e){return e in Lx}var Vx=new Intl.DateTimeFormat(void 0,{dateStyle:`short`,timeStyle:`short`});function Hx(e){return e?.[`x-mcp-hint`]===`money-minor`}function Ux(e){return e?.[`x-mcp-hint`]===`timestamp-ms`}function Wx(e,t){if(typeof e!=`number`||!Number.isFinite(e))return null;let n=e/100;if(typeof t==`string`&&t)try{return new Intl.NumberFormat(void 0,{style:`currency`,currency:t}).format(n)}catch{}return new Intl.NumberFormat().format(n)}function Gx(e){if(typeof e!=`number`||!Number.isFinite(e))return null;try{return Vx.format(new Date(e))}catch{return null}}function Kx(e){if(typeof e!=`number`&&typeof e!=`string`)return;let t=new Date(e);return Number.isNaN(t.getTime())?void 0:t}function qx(e,t=8){return e.length<=t?e:e.slice(-t)}function Jx(e){if(e instanceof Qv){let t=e.body?.diagnostic?.message;if(t)return Error(t)}return e}function Yx(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 Xx=e=>{switch(e){case`success`:return $x;case`info`:return tS;case`warning`:return eS;case`error`:return nS;default:return null}},Zx=Array(12).fill(0),Qx=({visible:e,className:t})=>V.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},V.createElement(`div`,{className:`sonner-spinner`},Zx.map((e,t)=>V.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),$x=V.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},V.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),eS=V.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},V.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),tS=V.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},V.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),nS=V.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},V.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),rS=V.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`},V.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),V.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),iS=()=>{let[e,t]=V.useState(document.hidden);return V.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[]),e},aS=1,oS=100,sS=e=>typeof e?.id==`number`||e?.id?.length>0?e.id:aS++,cS=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),this.getActiveToasts().forEach(t=>e(t)),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e],this.trimHistory()},this.trimHistory=()=>{let e=this.toasts.length-oS;e<=0||(this.toasts=this.toasts.filter(t=>e>0&&this.dismissedToasts.has(t.id)?(this.dismissedToasts.delete(t.id),e--,!1):!0))},this.create=e=>{let{message:t,...n}=e,r=sS(e),i=this.pendingDismissals.get(r);i!==void 0&&(cancelAnimationFrame(i),this.pendingDismissals.delete(r),this.dismissedToasts.delete(r));let a=this.dismissedToasts.has(r),o=e.dismissible===void 0||e.dismissible;return a&&(this.dismissedToasts.delete(r),this.toasts=this.toasts.filter(e=>e.id!==r)),!a&&this.toasts.find(e=>e.id===r)?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:o,title:t}):n):this.addToast({title:t,...n,dismissible:o,id:r}),r},this.dismiss=e=>{if(e==null)return this.getActiveToasts().forEach(e=>{this.dismissedToasts.add(e.id),this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e;this.dismissedToasts.add(e);let t=this.pendingDismissals.get(e);return t!==void 0&&cancelAnimationFrame(t),this.pendingDismissals.set(e,requestAnimationFrame(()=>{this.pendingDismissals.delete(e),this.subscribers.forEach(t=>t({id:e,dismiss:!0}))})),e},this.message=(e,t)=>this.create({...t,message:e,type:void 0}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],V.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(uS(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!V.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!V.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!V.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!V.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=sS(t);return this.create({...t,jsx:e(n),id:n,type:void 0}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}},lS=(e,t)=>cS.message(e,t),uS=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,dS=Object.assign(lS,{success:cS.success,info:cS.info,warning:cS.warning,error:cS.error,custom:cS.custom,message:cS.message,promise:cS.promise,dismiss:cS.dismiss,loading:cS.loading},{getHistory:()=>cS.toasts,getToasts:()=>cS.getActiveToasts()});Yx(`[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}`);function fS(e){return e.label!==void 0}var pS=3,mS=`24px`,hS=`16px`,gS=4e3,_S=356,vS=14,yS=45,bS=200;function xS(...e){return e.filter(Boolean).join(` `)}function SS(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var CS=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:v=``,duration:y,position:b,gap:x,expandByDefault:S,classNames:C,icons:w,closeButtonAriaLabel:T=`Close toast`}=e,[E,D]=V.useState(null),[O,k]=V.useState(null),[A,j]=V.useState(!1),[M,N]=V.useState(!1),[P,F]=V.useState(!1),[I,L]=V.useState(!1),[ee,te]=V.useState(!1),[ne,R]=V.useState(0),[z,B]=V.useState(0),re=V.useRef(n.duration||y||gS),ie=V.useRef(null),ae=V.useRef(null),oe=c===0,se=c+1<=o,ce=n.type,le=ce??`default`,ue=n.dismissible!==!1,de=n.className||``,fe=n.descriptionClassName||``,pe=V.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),me=V.useMemo(()=>n.closeButton??p,[n.closeButton,p]),he=V.useMemo(()=>n.duration||y||gS,[n.duration,y]),ge=V.useRef(0),_e=V.useRef(0),ve=V.useRef(0),ye=V.useRef(null),[be,xe]=b.split(`-`),Se=V.useMemo(()=>s.reduce((e,t,n)=>n>=pe?e:e+t.height,0),[s,pe]),Ce=iS(),we=V.useMemo(()=>e.swipeDirections??SS(b),[e.swipeDirections,b]),Te=n.invert||t,Ee=ce===`loading`;_e.current=V.useMemo(()=>pe*x+Se,[pe,Se]),V.useEffect(()=>{re.current=he},[he]),V.useEffect(()=>{j(!0)},[]),V.useEffect(()=>{let e=ae.current;if(e){let t=e.getBoundingClientRect().height;return B(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),V.useLayoutEffect(()=>{if(!A)return;let e=ae.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,B(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[A,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let De=V.useCallback(()=>{N(!0),R(_e.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},bS)},[n,d,a,_e]);V.useEffect(()=>{if(n.promise&&ce===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||Ce?(()=>{if(ve.current<ge.current){let e=new Date().getTime()-ge.current;re.current-=e}ve.current=new Date().getTime()})():re.current!==1/0&&(ge.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),De()},re.current)),()=>clearTimeout(e)},[u,i,n,ce,Ce,De]),V.useEffect(()=>{n.delete&&(De(),n.onDismiss==null||n.onDismiss.call(n,n))},[De,n.delete]);function Oe(){return w?.loading?V.createElement(`div`,{className:xS(C?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":ce===`loading`},w.loading):V.createElement(Qx,{className:xS(C?.loader,n?.classNames?.loader),visible:ce===`loading`})}let ke=n.icon||w?.[ce]||Xx(ce);return V.createElement(`li`,{tabIndex:0,ref:ae,className:xS(_,de,C?.toast,n?.classNames?.toast,C?.[le],n?.classNames?.[le]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":A,"data-promise":!!n.promise,"data-swiped":ee,"data-removed":M,"data-visible":se,"data-y-position":be,"data-x-position":xe,"data-index":c,"data-front":oe,"data-swiping":P,"data-dismissible":ue,"data-type":ce,"data-invert":Te,"data-swipe-out":I,"data-swipe-direction":O,"data-expanded":!!(u||S&&A),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${M?ne:_e.current}px`,"--initial-height":S?`auto`:`${z}px`,...m,...n.style},onDragEnd:()=>{F(!1),D(null),ye.current=null},onPointerDown:e=>{e.button!==2&&(Ee||!ue||(ie.current=new Date,R(_e.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(F(!0),ye.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(I||!ue)return;ye.current=null;let e=Number(ae.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(ae.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-ie.current?.getTime(),i=E===`x`?e:t,a=Math.abs(i)/r;if((E===`x`?we.includes(e>0?`right`:`left`):we.includes(t>0?`bottom`:`top`))&&(Math.abs(i)>=yS||a>.11)){R(_e.current),n.onDismiss==null||n.onDismiss.call(n,n),k(E===`x`?e>0?`right`:`left`:t>0?`down`:`up`),De(),L(!0);return}var o,s;(o=ae.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=ae.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`),te(!1),F(!1),D(null)},onPointerMove:e=>{var t,n;if(!ye.current||!ue||window.getSelection()?.toString().length>0)return;let r=e.clientY-ye.current.y,i=e.clientX-ye.current.x;!E&&(Math.abs(i)>1||Math.abs(r)>1)&&D(Math.abs(i)>Math.abs(r)?`x`:`y`);let a={x:0,y:0},o=e=>1/(1.5+Math.abs(e)/20);if(E===`y`){if(we.includes(`top`)||we.includes(`bottom`)){if(we.includes(`top`)&&r<0||we.includes(`bottom`)&&r>0)a.y=r;else{let e=r*o(r);a.y=Math.abs(e)<Math.abs(r)?e:r}}}else if(E===`x`&&(we.includes(`left`)||we.includes(`right`))){if(we.includes(`left`)&&i<0||we.includes(`right`)&&i>0)a.x=i;else{let e=i*o(i);a.x=Math.abs(e)<Math.abs(i)?e:i}}(Math.abs(a.x)>0||Math.abs(a.y)>0)&&te(!0),(t=ae.current)==null||t.style.setProperty(`--swipe-amount-x`,`${a.x}px`),(n=ae.current)==null||n.style.setProperty(`--swipe-amount-y`,`${a.y}px`)}},me&&!n.jsx&&ce!==`loading`?V.createElement(`button`,{"aria-label":T,"data-disabled":Ee,"data-close-button":!0,onClick:Ee||!ue?()=>{}:()=>{De(),n.onDismiss==null||n.onDismiss.call(n,n)},className:xS(C?.closeButton,n?.classNames?.closeButton)},w?.close??rS):null,(ce||n.icon||n.promise)&&n.icon!==null&&(w?.[ce]!==null||n.icon)?V.createElement(`div`,{"data-icon":``,className:xS(C?.icon,n?.classNames?.icon)},ce===`loading`?n.icon||Oe():n.promise?Oe():null,ce===`loading`?null:ke):null,V.createElement(`div`,{"data-content":``,className:xS(C?.content,n?.classNames?.content)},V.createElement(`div`,{"data-title":``,className:xS(C?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?V.createElement(`div`,{"data-description":``,className:xS(v,fe,C?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),V.isValidElement(n.cancel)?n.cancel:n.cancel&&fS(n.cancel)?V.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{fS(n.cancel)&&ue&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),De())},className:xS(C?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,V.isValidElement(n.action)?n.action:n.action&&fS(n.action)?V.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{fS(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&De())},className:xS(C?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function wS(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function TS(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?hS:mS;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var ES=V.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:p,style:m,visibleToasts:h=pS,toastOptions:g,dir:_=wS(),gap:v=vS,icons:y,customAriaLabel:b,containerAriaLabel:x=`Notifications`}=e,[S,C]=V.useState([]),w=V.useMemo(()=>n?S.filter(e=>e.toasterId===n):S.filter(e=>!e.toasterId),[S,n]),T=V.useMemo(()=>Array.from(new Set([i].concat(w.filter(e=>e.position).map(e=>e.position)))),[w,i]),[E,D]=V.useState([]),[O,k]=V.useState(!1),[A,j]=V.useState(!1),[M,N]=V.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),P=V.useRef(null),F=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),I=V.useRef(null),L=V.useRef(!1),ee=V.useCallback(e=>{C(t=>(t.find(t=>t.id===e.id)?.delete||cS.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return V.useEffect(()=>cS.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{C(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{Dr.flushSync(()=>{C(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[]),V.useEffect(()=>{if(d!==`system`){N(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?N(`dark`):N(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{N(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{N(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),V.useEffect(()=>{S.length<=1&&k(!1)},[S]),V.useEffect(()=>{let e=e=>{if(a.length>0&&a.every(t=>e[t]||e.code===t)){var t;k(!0),(t=P.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===P.current||P.current?.contains(document.activeElement))&&k(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),V.useEffect(()=>{if(P.current)return()=>{I.current&&(I.current.focus({preventScroll:!0}),I.current=null,L.current=!1)}},[P.current]),V.createElement(`section`,{ref:t,"aria-label":b??`${x} ${F}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},T.map((t,n)=>{let[i,a]=t.split(`-`);return w.length?V.createElement(`ol`,{key:t,dir:_===`auto`?wS():_,tabIndex:-1,ref:P,className:c,"data-sonner-toaster":!0,"data-sonner-theme":M,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${E[0]?.height||0}px`,"--width":`${_S}px`,"--gap":`${v}px`,...m,...TS(l,u)},onBlur:e=>{L.current&&!e.currentTarget.contains(e.relatedTarget)&&(L.current=!1,I.current&&=(I.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||L.current||(L.current=!0,I.current=e.relatedTarget)},onMouseEnter:()=>k(!0),onMouseMove:()=>k(!0),onMouseLeave:()=>{A||k(!1)},onDragEnd:()=>k(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||j(!0)},onPointerUp:()=>j(!1)},w.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>V.createElement(CS,{key:n.id,icons:y,index:i,toast:n,defaultRichColors:f,duration:g?.duration??p,className:g?.className,descriptionClassName:g?.descriptionClassName,invert:r,visibleToasts:h,closeButton:g?.closeButton??s,interacting:A,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:ee,toasts:w.filter(e=>e.position==n.position),heights:E.filter(e=>e.position==n.position),setHeights:D,expandByDefault:o,gap:v,expanded:O,swipeDirections:e.swipeDirections}))):null}))});function DS({...e}){return(0,H.jsx)(ps,{"data-slot":`dialog`,...e})}function OS({...e}){return(0,H.jsx)(ys,{"data-slot":`dialog-portal`,...e})}function kS({className:e,...t}){return(0,H.jsx)(xs,{"data-slot":`dialog-overlay`,className:J(`fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function AS({className:e,children:t,showCloseButton:n=!0,closeLabel:r,...i}){return(0,H.jsxs)(OS,{children:[(0,H.jsx)(kS,{}),(0,H.jsxs)(Ts,{"data-slot":`dialog-content`,className:J(`fixed top-1/2 start-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 rtl:translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...i,children:[t,n&&(0,H.jsx)(Ps,{"data-slot":`dialog-close`,asChild:!0,children:(0,H.jsxs)(Y,{variant:`ghost`,className:`absolute top-2 end-2`,size:`icon-sm`,children:[(0,H.jsx)(Qn,{}),(0,H.jsx)(`span`,{className:`sr-only`,children:r})]})})]})]})}function jS({className:e,...t}){return(0,H.jsx)(`div`,{"data-slot":`dialog-header`,className:J(`flex flex-col gap-2`,e),...t})}function MS({className:e,children:t,...n}){return(0,H.jsx)(`div`,{"data-slot":`dialog-footer`,className:J(`-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end`,e),...n,children:t})}function NS({className:e,...t}){return(0,H.jsx)(As,{"data-slot":`dialog-title`,className:J(`font-heading text-base leading-none font-medium`,e),...t})}function PS({className:e,...t}){return(0,H.jsx)(Ms,{"data-slot":`dialog-description`,className:J(`text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}function FS(e,t,n=`long`){return new Intl.DateTimeFormat(`en-US`,{hour:`numeric`,timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(` `)}var IS={},LS={};function RS(e,t){try{let n=(IS[e]||=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).format)(t).split(`GMT`)[1];return n in LS?LS[n]:BS(n,n.split(`:`))}catch{if(e in LS)return LS[e];let t=e?.match(zS);return t?BS(e,t.slice(1)):NaN}}var zS=/([+-]\d\d):?(\d\d)?/;function BS(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return LS[e]=n*60+r>0?n*60+r+i:n*60-r-i}var VS=class e extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]==`string`&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(RS(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]==`number`&&(e.length===1||e.length===2&&typeof e[1]!=`number`)?this.setTime(e[0]):typeof e[0]==`string`?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),GS(this,e)):this.setTime(Date.now())}static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){let e=-RS(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),US(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},HS=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!HS.test(e))return;let t=e.replace(HS,`$1UTC`);VS.prototype[t]&&(e.startsWith(`get`)?VS.prototype[e]=function(){return this.internal[t]()}:(VS.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),WS(this),+this},VS.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),US(this),+this}))});function US(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-RS(e.timeZone,e)*60))}function WS(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),GS(e)}function GS(e,t){let n=Array.isArray(t)?KS(t):+e.internal,r=RS(e.timeZone,e),i=r>0?Math.floor(r):Math.ceil(r),a=new Date(+e);a.setUTCHours(a.getUTCHours()-1);let o=-new Date(+e).getTimezoneOffset(),s=-new Date(+a).getTimezoneOffset(),c=o-s,l=o;if(c&&o!==i&&Date.prototype.getHours.apply(e)!==(Array.isArray(t)?t[3]||0:e.internal.getUTCHours())){let t=new Date(+e),n=o-i;n&&t.setUTCMinutes(t.getUTCMinutes()+n);let r=RS(e.timeZone,t);(r>0?Math.floor(r):Math.ceil(r))===i&&(l=s)}let u=l-i;u&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+u);let d=new Date(+e);d.setUTCSeconds(0);let f=o>0?d.getSeconds():(d.getSeconds()-60)%60,p=Math.round(-(RS(e.timeZone,e)*60))%60;(p||f)&&Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+p+f);let m=RS(e.timeZone,e),h=m>0?Math.floor(m):Math.ceil(m),g=-new Date(+e).getTimezoneOffset()-h,_=h!==i,v=g-u,y=h-i,b=n-h*60*1e3,x=y>0&&qS(e)-n===y*60*1e3&&qS(e,b)!==n;if(_&&v&&!x){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+v);let t=RS(e.timeZone,e),n=h-(t>0?Math.floor(t):Math.ceil(t));n&&v<0&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n)}US(e);let S=(t?n:n+p*1e3)-+e.internal;S&&Math.abs(S)<18e5&&(Date.prototype.setTime.call(e,+e+S),US(e))}function KS(e){return Date.UTC(e[0],e.length>1?e[1]:0,e.length>2?e[2]:1,...e.slice(3))}function qS(e,t){let n=new Date(t??+e);return n.setUTCSeconds(n.getUTCSeconds()-Math.round(-RS(e.timeZone,n)*60)),+n}var JS=class e extends VS{static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}toISOString(){let[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[e,t,n,r]=this.internal.toUTCString().split(` `);return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){let e=this.internal.toUTCString().split(` `)[4],[t,n,r]=this.tzComponents();return`${e} GMT${t}${n}${r} (${FS(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset();return[e>0?`-`:`+`,String(Math.floor(Math.abs(e)/60)).padStart(2,`0`),String(Math.abs(e)%60).padStart(2,`0`)]}withTimeZone(t){return new e(+this,t)}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},YS=365.2425,XS=6048e5,ZS=864e5,QS=86400;QS*7,QS*YS/12*3;var $S=Symbol.for(`constructDateFrom`);function eC(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&$S in e?e[$S](t):e instanceof Date?new e.constructor(t):new Date(t)}function tC(e,t){return eC(t||e,e)}function nC(e,t,n){let r=tC(e,n?.in);return isNaN(t)?eC(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function rC(e,t,n){let r=tC(e,n?.in);if(isNaN(t))return eC(n?.in||e,NaN);if(!t)return r;let i=r.getDate(),a=eC(n?.in||e,r.getTime());return a.setMonth(r.getMonth()+t+1,0),i>=a.getDate()?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}var iC={};function aC(){return iC}function oC(e,t){let n=aC(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=tC(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function sC(e,t){return oC(e,{...t,weekStartsOn:1})}function cC(e,t){let n=tC(e,t?.in),r=n.getFullYear(),i=eC(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let a=sC(i),o=eC(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);let s=sC(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function lC(e){let t=tC(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-+n}function uC(e,...t){let n=eC.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function dC(e,t){let n=tC(e,t?.in);return n.setHours(0,0,0,0),n}function fC(e,t,n){let[r,i]=uC(n?.in,e,t),a=dC(r),o=dC(i),s=+a-lC(a),c=+o-lC(o);return Math.round((s-c)/ZS)}function pC(e,t){let n=cC(e,t),r=eC(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),sC(r)}function mC(e,t,n){return nC(e,t*7,n)}function hC(e,t,n){return rC(e,t*12,n)}function gC(e,t){let n,r=t?.in;return e.forEach(e=>{!r&&typeof e==`object`&&(r=eC.bind(null,e));let t=tC(e,r);(!n||n<t||isNaN(+t))&&(n=t)}),eC(r,n||NaN)}function _C(e,t){let n,r=t?.in;return e.forEach(e=>{!r&&typeof e==`object`&&(r=eC.bind(null,e));let t=tC(e,r);(!n||n>t||isNaN(+t))&&(n=t)}),eC(r,n||NaN)}function vC(e,t,n){let[r,i]=uC(n?.in,e,t);return+dC(r)==+dC(i)}function yC(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function bC(e){return!(!yC(e)&&typeof e!=`number`||isNaN(+tC(e)))}function xC(e,t,n){let[r,i]=uC(n?.in,e,t),a=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return a*12+o}function SC(e,t){let n=tC(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function CC(e,t){let[n,r]=uC(e,t.start,t.end);return{start:n,end:r}}function wC(e,t){let{start:n,end:r}=CC(t?.in,e),i=+n>+r,a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setDate(1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,i=!i);let c=[];for(;+o<=a;)c.push(eC(n,o)),o.setMonth(o.getMonth()+s);return i?c.reverse():c}function TC(e,t){let n=tC(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function EC(e,t){let n=tC(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function DC(e,t){let n=tC(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function OC(e,t){let{start:n,end:r}=CC(t?.in,e),i=+n>+r,a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setMonth(0,1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,i=!i);let c=[];for(;+o<=a;)c.push(eC(n,o)),o.setFullYear(o.getFullYear()+s);return i?c.reverse():c}function kC(e,t){let n=aC(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=tC(e,t?.in),a=i.getDay(),o=(a<r?-7:0)+6-(a-r);return i.setDate(i.getDate()+o),i.setHours(23,59,59,999),i}function AC(e,t){return kC(e,{...t,weekStartsOn:1})}var jC={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},MC=(e,t,n)=>{let r,i=jC[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function NC(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var PC={date:NC({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:NC({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:NC({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},FC={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},IC=(e,t,n,r)=>FC[e];function LC(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}var RC={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:LC({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:LC({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:LC({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:LC({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:LC({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function zC(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?VC(s,e=>e.test(o)):BC(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function BC(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function VC(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function HC(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var UC={code:`en-US`,formatDistance:MC,formatLong:PC,formatRelative:IC,localize:RC,match:{ordinalNumber:HC({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:zC({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:zC({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:zC({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:zC({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:zC({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function WC(e,t){let n=tC(e,t?.in);return fC(n,DC(n))+1}function GC(e,t){let n=tC(e,t?.in),r=sC(n)-+pC(n);return Math.round(r/XS)+1}function KC(e,t){let n=tC(e,t?.in),r=n.getFullYear(),i=aC(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=eC(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=oC(o,t),c=eC(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=oC(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function qC(e,t){let n=aC(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=KC(e,t),a=eC(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),oC(a,t)}function JC(e,t){let n=tC(e,t?.in),r=oC(n,t)-+qC(n,t);return Math.round(r/XS)+1}function YC(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var XC={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return YC(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):YC(n+1,2)},d(e,t){return YC(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return YC(e.getHours()%12||12,t.length)},H(e,t){return YC(e.getHours(),t.length)},m(e,t){return YC(e.getMinutes(),t.length)},s(e,t){return YC(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds();return YC(Math.trunc(r*10**(n-3)),t.length)}},ZC={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},QC={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return XC.y(e,t)},Y:function(e,t,n,r){let i=KC(e,r),a=i>0?i:1-i;return t===`YY`?YC(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):YC(a,t.length)},R:function(e,t){return YC(cC(e),t.length)},u:function(e,t){return YC(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return YC(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return YC(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return XC.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return YC(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=JC(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):YC(i,t.length)},I:function(e,t,n){let r=GC(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):YC(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):XC.d(e,t)},D:function(e,t,n){let r=WC(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):YC(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return YC(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return YC(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return YC(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?ZC.noon:r===0?ZC.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?ZC.evening:r>=12?ZC.afternoon:r>=4?ZC.morning:ZC.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return XC.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):XC.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):YC(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):YC(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):XC.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):XC.s(e,t)},S:function(e,t){return XC.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return ew(r);case`XXXX`:case`XX`:return tw(r);default:return tw(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return ew(r);case`xxxx`:case`xx`:return tw(r);default:return tw(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+$C(r,`:`);default:return`GMT`+tw(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+$C(r,`:`);default:return`GMT`+tw(r,`:`)}},t:function(e,t,n){return YC(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return YC(+e,t.length)}};function $C(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+YC(a,2)}function ew(e,t){return e%60==0?(e>0?`-`:`+`)+YC(Math.abs(e)/60,2):tw(e,t)}function tw(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=YC(Math.trunc(r/60),2),a=YC(r%60,2);return n+i+t+a}var nw=(e,t)=>{switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},rw=(e,t)=>{switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},iw={p:rw,P:(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return nw(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`})}return a.replace(`{{date}}`,nw(r,t)).replace(`{{time}}`,rw(i,t))}},aw=/^D+$/,ow=/^Y+$/,sw=[`D`,`DD`,`YY`,`YYYY`];function cw(e){return aw.test(e)}function lw(e){return ow.test(e)}function uw(e,t,n){let r=dw(e,t,n);if(console.warn(r),sw.includes(e))throw RangeError(r)}function dw(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var fw=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,pw=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mw=/^'([^]*?)'?$/,hw=/''/g,gw=/[a-zA-Z]/;function _w(e,t,n){let r=aC(),i=n?.locale??r.locale??UC,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=tC(e,n?.in);if(!bC(s))throw RangeError(`Invalid time value`);let c=t.match(pw).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=iw[t];return n(e,i.formatLong)}return e}).join(``).match(fw).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:vw(e)};if(QC[t])return{isToken:!0,value:e};if(t.match(gw))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&lw(a)||!n?.useAdditionalDayOfYearTokens&&cw(a))&&uw(a,t,String(e));let o=QC[a[0]];return o(s,a,i.localize,l)}).join(``)}function vw(e){let t=e.match(mw);return t?t[1].replace(hw,`'`):e}function yw(e,t){let n=tC(e,t?.in),r=n.getFullYear(),i=n.getMonth(),a=eC(n,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}function bw(e,t){return tC(e,t?.in).getMonth()}function xw(e,t){return tC(e,t?.in).getFullYear()}function Sw(e,t){return+tC(e)>+tC(t)}function Cw(e,t){return+tC(e)<+tC(t)}function ww(e,t,n){let[r,i]=uC(n?.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function Tw(e,t,n){let[r,i]=uC(n?.in,e,t);return r.getFullYear()===i.getFullYear()}function Ew(e,t,n){let r=tC(e,n?.in),i=r.getFullYear(),a=r.getDate(),o=eC(n?.in||e,0);o.setFullYear(i,t,15),o.setHours(0,0,0,0);let s=yw(o);return r.setMonth(t,Math.min(a,s)),r}function Dw(e,t,n){let r=tC(e,n?.in);return isNaN(+r)?eC(n?.in||e,NaN):(r.setFullYear(t),r)}var Ow=5,kw=4;function Aw(e,t){let n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,i=t.addDays(e,-r+1),a=t.addDays(i,34);return t.getMonth(e)===t.getMonth(a)?Ow:kw}function jw(e,t){let n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function Mw(e,t){let n=jw(e,t),r=Aw(e,t);return t.addDays(n,r*7-1)}var Nw={...UC,labels:{labelDayButton:(e,t,n,r)=>{let i;i=r&&typeof r.format==`function`?r.format.bind(r):(e,t)=>_w(e,t,{locale:UC,...n});let a=i(e,`PPPP`);return t.today&&(a=`Today, ${a}`),t.selected&&(a=`${a}, selected`),a},labelMonthDropdown:`Choose the Month`,labelNext:`Go to the Next Month`,labelPrevious:`Go to the Previous Month`,labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:`Choose the Year`,labelGrid:(e,t,n)=>{let r;return r=n&&typeof n.format==`function`?n.format.bind(n):(e,n)=>_w(e,n,{locale:UC,...t}),r(e,`LLLL yyyy`)},labelGridcell:(e,t,n,r)=>{let i;i=r&&typeof r.format==`function`?r.format.bind(r):(e,t)=>_w(e,t,{locale:UC,...n});let a=i(e,`PPPP`);return t?.today&&(a=`Today, ${a}`),a},labelNav:`Navigation bar`,labelWeekNumberHeader:`Week Number`,labelWeekday:(e,t,n)=>{let r;return r=n&&typeof n.format==`function`?n.format.bind(n):(e,n)=>_w(e,n,{locale:UC,...t}),r(e,`cccc`)}}},Pw=class e{constructor(e,t){this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?JS.tz(this.options.timeZone):new(this.options.Date??Date),this.newDate=(e,t,n)=>this.overrides?.newDate?this.overrides.newDate(e,t,n):this.options.timeZone?new JS(e,t,n,this.options.timeZone):new Date(e,t,n),this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):nC(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):rC(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):mC(e,t),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):hC(e,t),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):fC(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):xC(e,t),this.eachMonthOfInterval=e=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(e):wC(e),this.eachYearOfInterval=e=>{let t=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(e):OC(e),n=new Set(t.map(e=>this.getYear(e)));if(n.size===t.length)return t;let r=[];return n.forEach(e=>{r.push(new Date(e,0,1))}),r},this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e):Mw(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):AC(e),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):SC(e),this.endOfWeek=(e,t)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,t):kC(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):EC(e),this.format=(e,t,n)=>{let r=this.overrides?.format?this.overrides.format(e,t,this.options):_w(e,t,this.options);return this.options.numerals&&this.options.numerals!==`latn`?this.replaceDigits(r):r},this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):GC(e),this.getMonth=(e,t)=>this.overrides?.getMonth?this.overrides.getMonth(e,this.options):bw(e,this.options),this.getYear=(e,t)=>this.overrides?.getYear?this.overrides.getYear(e,this.options):xw(e,this.options),this.getWeek=(e,t)=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):JC(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):Sw(e,t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):Cw(e,t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):yC(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):vC(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):ww(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):Tw(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):gC(e),this.min=e=>this.overrides?.min?this.overrides.min(e):_C(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):Ew(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):Dw(e,t),this.startOfBroadcastWeek=(e,t)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):jw(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):dC(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):sC(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):TC(e),this.startOfWeek=(e,t)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):oC(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):DC(e),this.options={locale:Nw,...e},this.overrides=t}getDigitMap(){let{numerals:e=`latn`}=this.options,t=new Intl.NumberFormat(`en-US`,{numberingSystem:e}),n={};for(let e=0;e<10;e++)n[e.toString()]=t.format(e);return n}replaceDigits(e){let t=this.getDigitMap();return e.replace(/\d/g,e=>t[e]||e)}formatNumber(e){return this.replaceDigits(e.toString())}getMonthYearOrder(){let t=this.options.locale?.code;return t&&e.yearFirstLocales.has(t)?`year-first`:`month-first`}formatMonthYear(t){let{locale:n,timeZone:r,numerals:i}=this.options,a=n?.code;if(a&&e.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:`long`,year:`numeric`,timeZone:r,numberingSystem:i}).format(t)}catch{}let o=this.getMonthYearOrder()===`year-first`?`y LLLL`:`LLLL y`;return this.format(t,o)}};Pw.yearFirstLocales=new Set([`eu`,`hu`,`ja`,`ja-Hira`,`ja-JP`,`ko`,`ko-KR`,`lt`,`lt-LT`,`lv`,`lv-LV`,`mn`,`mn-MN`,`zh`,`zh-CN`,`zh-HK`,`zh-TW`]);var Fw=new Pw,Iw=class{constructor(e,t,n=Fw){this.date=e,this.displayMonth=t,this.outside=!!(t&&!n.isSameMonth(e,t)),this.dateLib=n,this.isoDate=n.format(e,`yyyy-MM-dd`),this.displayMonthId=n.format(t,`yyyy-MM`),this.dateMonthId=n.format(e,`yyyy-MM`)}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}},Lw=class{constructor(e,t){this.date=e,this.weeks=t}},Rw=class{constructor(e,t){this.days=t,this.weekNumber=e}};function zw(e){return V.createElement(`span`,{...e})}function Bw(e){let{size:t=24,orientation:n=`left`,className:r,style:i}=e;return V.createElement(`svg`,{className:r,style:i,width:t,height:t,viewBox:`0 0 24 24`},n===`up`&&V.createElement(`polygon`,{points:`6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28`}),n===`down`&&V.createElement(`polygon`,{points:`6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72`}),n===`left`&&V.createElement(`polygon`,{points:`16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20`}),n===`right`&&V.createElement(`polygon`,{points:`8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20`}))}function Vw(e){let{day:t,modifiers:n,...r}=e;return V.createElement(`td`,{...r})}function Hw(e){let{day:t,modifiers:n,...r}=e,i=V.useRef(null);return V.useEffect(()=>{n.focused&&i.current?.focus()},[n.focused]),V.createElement(`button`,{ref:i,...r})}var Q;(function(e){e.Root=`root`,e.Chevron=`chevron`,e.Day=`day`,e.DayButton=`day_button`,e.CaptionLabel=`caption_label`,e.Dropdowns=`dropdowns`,e.Dropdown=`dropdown`,e.DropdownRoot=`dropdown_root`,e.Footer=`footer`,e.MonthGrid=`month_grid`,e.MonthCaption=`month_caption`,e.MonthsDropdown=`months_dropdown`,e.Month=`month`,e.Months=`months`,e.Nav=`nav`,e.NextMonthButton=`button_next`,e.PreviousMonthButton=`button_previous`,e.Week=`week`,e.Weeks=`weeks`,e.Weekday=`weekday`,e.Weekdays=`weekdays`,e.WeekNumber=`week_number`,e.WeekNumberHeader=`week_number_header`,e.YearsDropdown=`years_dropdown`})(Q||={});var Uw;(function(e){e.disabled=`disabled`,e.hidden=`hidden`,e.outside=`outside`,e.focused=`focused`,e.today=`today`})(Uw||={});var Ww;(function(e){e.range_end=`range_end`,e.range_middle=`range_middle`,e.range_start=`range_start`,e.selected=`selected`})(Ww||={});var Gw;(function(e){e.weeks_before_enter=`weeks_before_enter`,e.weeks_before_exit=`weeks_before_exit`,e.weeks_after_enter=`weeks_after_enter`,e.weeks_after_exit=`weeks_after_exit`,e.caption_after_enter=`caption_after_enter`,e.caption_after_exit=`caption_after_exit`,e.caption_before_enter=`caption_before_enter`,e.caption_before_exit=`caption_before_exit`})(Gw||={});var Kw=(0,V.createContext)(void 0);function qw(){let e=(0,V.useContext)(Kw);if(e===void 0)throw Error(`useDayPicker() must be used within a custom component.`);return e}function Jw(e){let{options:t,className:n,...r}=e,{classNames:i,components:a,styles:o}=qw(),s=[i[Q.Dropdown],n].join(` `),c=t?.find(({value:e})=>e===r.value);return V.createElement(`span`,{"data-disabled":r.disabled,className:i[Q.DropdownRoot],style:o?.[Q.DropdownRoot]},V.createElement(a.Select,{className:s,...r},t?.map(({value:e,label:t,disabled:n})=>V.createElement(a.Option,{key:e,value:e,disabled:n},t))),V.createElement(`span`,{className:i[Q.CaptionLabel],style:o?.[Q.CaptionLabel],"aria-hidden":!0},c?.label,V.createElement(a.Chevron,{orientation:`down`,size:18,className:i[Q.Chevron],style:o?.[Q.Chevron]})))}function Yw(e){return V.createElement(`div`,{...e})}function Xw(e){return V.createElement(`div`,{...e})}function Zw(e){let{calendarMonth:t,displayIndex:n,...r}=e;return V.createElement(`div`,{...r},e.children)}function Qw(e){let{calendarMonth:t,displayIndex:n,...r}=e;return V.createElement(`div`,{...r})}function $w(e){return V.createElement(`table`,{...e})}function eT(e){return V.createElement(`div`,{...e})}function tT(e){let{components:t}=qw();return V.createElement(t.Dropdown,{...e})}function nT(e){let{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:i,...a}=e,{components:o,classNames:s,styles:c,labels:{labelPrevious:l,labelNext:u}}=qw(),d=(0,V.useCallback)(e=>{i&&n?.(e)},[i,n]),f=(0,V.useCallback)(e=>{r&&t?.(e)},[r,t]);return V.createElement(`nav`,{...a},V.createElement(o.PreviousMonthButton,{type:`button`,className:s[Q.PreviousMonthButton],style:c?.[Q.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":!r||void 0,"aria-label":l(r),onClick:f},V.createElement(o.Chevron,{disabled:!r||void 0,className:s[Q.Chevron],style:c?.[Q.Chevron],orientation:`left`})),V.createElement(o.NextMonthButton,{type:`button`,className:s[Q.NextMonthButton],style:c?.[Q.NextMonthButton],tabIndex:i?void 0:-1,"aria-disabled":!i||void 0,"aria-label":u(i),onClick:d},V.createElement(o.Chevron,{disabled:!i||void 0,orientation:`right`,className:s[Q.Chevron],style:c?.[Q.Chevron]})))}function rT(e){return V.createElement(`button`,{...e})}function iT(e){return V.createElement(`option`,{...e})}function aT(e){return V.createElement(`button`,{...e})}function oT(e){let{rootRef:t,...n}=e;return V.createElement(`div`,{...n,ref:t})}function sT(e){return V.createElement(`select`,{...e})}function cT(e){let{week:t,...n}=e;return V.createElement(`tr`,{...n})}function lT(e){return V.createElement(`th`,{...e})}function uT(e){return V.createElement(`thead`,{"aria-hidden":!0},V.createElement(`tr`,{...e}))}function dT(e){let{week:t,...n}=e;return V.createElement(`th`,{...n})}function fT(e){return V.createElement(`th`,{...e})}function pT(e){return V.createElement(`tbody`,{...e})}function mT(e){let{components:t}=qw();return V.createElement(t.Dropdown,{...e})}var hT=s({CaptionLabel:()=>zw,Chevron:()=>Bw,Day:()=>Vw,DayButton:()=>Hw,Dropdown:()=>Jw,DropdownNav:()=>Yw,Footer:()=>Xw,Month:()=>Zw,MonthCaption:()=>Qw,MonthGrid:()=>$w,Months:()=>eT,MonthsDropdown:()=>tT,Nav:()=>nT,NextMonthButton:()=>rT,Option:()=>iT,PreviousMonthButton:()=>aT,Root:()=>oT,Select:()=>sT,Week:()=>cT,WeekNumber:()=>dT,WeekNumberHeader:()=>fT,Weekday:()=>lT,Weekdays:()=>uT,Weeks:()=>pT,YearsDropdown:()=>mT});function gT(e,t,n=!1,r=Fw){let{from:i,to:a}=e,{differenceInCalendarDays:o,isSameDay:s}=r;return i&&a?(o(a,i)<0&&([i,a]=[a,i]),o(t,i)>=+!!n&&o(a,t)>=+!!n):!n&&a?s(a,t):!n&&i?s(i,t):!1}function _T(e){return!!(e&&typeof e==`object`&&`before`in e&&`after`in e)}function vT(e){return!!(e&&typeof e==`object`&&`from`in e)}function yT(e){return!!(e&&typeof e==`object`&&`after`in e)}function bT(e){return!!(e&&typeof e==`object`&&`before`in e)}function xT(e){return!!(e&&typeof e==`object`&&`dayOfWeek`in e)}function ST(e,t){return Array.isArray(e)&&e.every(t.isDate)}function CT(e,t,n=Fw){let r=Array.isArray(t)?t:[t],{isSameDay:i,differenceInCalendarDays:a,isAfter:o}=n;return r.some(t=>{if(typeof t==`boolean`)return t;if(n.isDate(t))return i(e,t);if(ST(t,n))return t.some(t=>i(e,t));if(vT(t))return gT(t,e,!1,n);if(xT(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(_T(t)){let n=a(t.before,e),r=a(t.after,e),i=n>0,s=r<0;return o(t.before,t.after)?s&&i:i||s}return yT(t)?a(e,t.after)>0:bT(t)?a(t.before,e)>0:typeof t==`function`&&t(e)})}function wT(e,t,n,r,i){let{disabled:a,hidden:o,modifiers:s,showOutsideDays:c,broadcastCalendar:l,today:u=i.today()}=t,{isSameDay:d,isSameMonth:f,startOfMonth:p,isBefore:m,endOfMonth:h,isAfter:g}=i,_=n&&p(n),v=r&&h(r),y={[Uw.focused]:[],[Uw.outside]:[],[Uw.disabled]:[],[Uw.hidden]:[],[Uw.today]:[]},b={};for(let t of e){let{date:e,displayMonth:n}=t,r=!!(n&&!f(e,n)),p=!!(_&&m(e,_)),h=!!(v&&g(e,v)),x=!!(a&&CT(e,a,i)),S=!!(o&&CT(e,o,i))||p||h||!l&&!c&&r||l&&c===!1&&r,C=d(e,u);r&&y.outside.push(t),x&&y.disabled.push(t),S&&y.hidden.push(t),C&&y.today.push(t),s&&Object.keys(s).forEach(n=>{let r=s?.[n];r&&CT(e,r,i)&&(b[n]?b[n].push(t):b[n]=[t])})}return e=>{let t={[Uw.focused]:!1,[Uw.disabled]:!1,[Uw.hidden]:!1,[Uw.outside]:!1,[Uw.today]:!1},n={};for(let n in y)t[n]=y[n].some(t=>t===e);for(let t in b)n[t]=b[t].some(t=>t===e);return{...t,...n}}}function TT(e,t,n={}){return Object.entries(e).filter(([,e])=>e===!0).reduce((e,[r])=>(n[r]?e.push(n[r]):t[Uw[r]]?e.push(t[Uw[r]]):t[Ww[r]]&&e.push(t[Ww[r]]),e),[t[Q.Day]])}function ET(e){return{...hT,...e}}function DT(e){let t={"data-mode":e.mode??void 0,"data-required":`required`in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([e,n])=>{e.startsWith(`data-`)&&(t[e]=n)}),t}function OT(){let e={};for(let t in Q)e[Q[t]]=`rdp-${Q[t]}`;for(let t in Uw)e[Uw[t]]=`rdp-${Uw[t]}`;for(let t in Ww)e[Ww[t]]=`rdp-${Ww[t]}`;for(let t in Gw)e[Gw[t]]=`rdp-${Gw[t]}`;return e}function kT(e,t,n){return(n??new Pw(t)).formatMonthYear(e)}function AT(e,t,n){return(n??new Pw(t)).format(e,`d`)}function jT(e,t=Fw){return t.format(e,`LLLL`)}function MT(e,t,n){return(n??new Pw(t)).format(e,`cccccc`)}function NT(e,t=Fw){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function PT(){return``}function FT(e,t=Fw){return t.format(e,`yyyy`)}var IT=s({formatCaption:()=>kT,formatDay:()=>AT,formatMonthDropdown:()=>jT,formatWeekNumber:()=>NT,formatWeekNumberHeader:()=>PT,formatWeekdayName:()=>MT,formatYearDropdown:()=>FT});function LT(e){return{...IT,...e}}function RT(e,t,n,r){let i=(r??new Pw(n)).format(e,`PPPP`);return t.today&&(i=`Today, ${i}`),t.selected&&(i=`${i}, selected`),i}function zT(e,t,n){return(n??new Pw(t)).formatMonthYear(e)}function BT(e,t,n,r){let i=(r??new Pw(n)).format(e,`PPPP`);return t?.today&&(i=`Today, ${i}`),i}function VT(e){return`Choose the Month`}function HT(){return``}var UT=`Go to the Next Month`;function WT(e,t){return UT}function GT(e){return`Go to the Previous Month`}function KT(e,t,n){return(n??new Pw(t)).format(e,`cccc`)}function qT(e,t){return`Week ${e}`}function JT(e){return`Week Number`}function YT(e){return`Choose the Year`}var XT=s({labelDayButton:()=>RT,labelGrid:()=>zT,labelGridcell:()=>BT,labelMonthDropdown:()=>VT,labelNav:()=>HT,labelNext:()=>WT,labelPrevious:()=>GT,labelWeekNumber:()=>qT,labelWeekNumberHeader:()=>JT,labelWeekday:()=>KT,labelYearDropdown:()=>YT}),ZT=(e,t,n)=>t||(n?typeof n==`function`?n:(...e)=>n:e);function QT(e,t){let n=t.locale?.labels??{};return{...XT,...e??{},labelDayButton:ZT(RT,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:ZT(VT,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:ZT(WT,e?.labelNext,n.labelNext),labelPrevious:ZT(GT,e?.labelPrevious,n.labelPrevious),labelWeekNumber:ZT(qT,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:ZT(YT,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:ZT(zT,e?.labelGrid,n.labelGrid),labelGridcell:ZT(BT,e?.labelGridcell,n.labelGridcell),labelNav:ZT(HT,e?.labelNav,n.labelNav),labelWeekNumberHeader:ZT(JT,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:ZT(KT,e?.labelWeekday,n.labelWeekday)}}function $T(e,t,n,r,i){let{startOfMonth:a,startOfYear:o,endOfYear:s,eachMonthOfInterval:c,getMonth:l}=i;return c({start:o(e),end:s(e)}).map(e=>{let o=r.formatMonthDropdown(e,i);return{value:l(e),label:o,disabled:t&&e<a(t)||n&&e>a(n)||!1}})}function eE(e,t={},n={}){let r={...t?.[Q.Day]};return Object.entries(e).filter(([,e])=>e===!0).forEach(([e])=>{r={...r,...n?.[e]}}),r}function tE(e,t,n,r){let i=r??e.today(),a=n?e.startOfBroadcastWeek(i,e):t?e.startOfISOWeek(i):e.startOfWeek(i),o=[];for(let t=0;t<7;t++){let n=e.addDays(a,t);o.push(n)}return o}function nE(e,t,n,r,i=!1){if(!e||!t)return;let{startOfYear:a,endOfYear:o,eachYearOfInterval:s,getYear:c}=r,l=s({start:a(e),end:o(t)});return i&&l.reverse(),l.map(e=>{let t=n.formatYearDropdown(e,r);return{value:c(e),label:t,disabled:!1}})}function rE(e,t={}){let{weekStartsOn:n,locale:r}=t,i=n??r?.options?.weekStartsOn??0,a=t=>{let n=typeof t==`number`||typeof t==`string`?new Date(t):t;return new JS(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0,e)},o=e=>{let t=a(e);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)};return{today:()=>a(JS.tz(e)),newDate:(t,n,r)=>new JS(t,n,r,12,0,0,e),startOfDay:e=>a(e),startOfWeek:(e,t)=>{let n=a(e),r=t?.weekStartsOn??i,o=(n.getDay()-r+7)%7;return n.setDate(n.getDate()-o),n},startOfISOWeek:e=>{let t=a(e),n=(t.getDay()-1+7)%7;return t.setDate(t.getDate()-n),t},startOfMonth:e=>{let t=a(e);return t.setDate(1),t},startOfYear:e=>{let t=a(e);return t.setMonth(0,1),t},endOfWeek:(e,t)=>{let n=a(e),r=(((t?.weekStartsOn??i)+6)%7-n.getDay()+7)%7;return n.setDate(n.getDate()+r),n},endOfISOWeek:e=>{let t=a(e),n=(7-t.getDay())%7;return t.setDate(t.getDate()+n),t},endOfMonth:e=>{let t=a(e);return t.setMonth(t.getMonth()+1,0),t},endOfYear:e=>{let t=a(e);return t.setMonth(11,31),t},eachMonthOfInterval:t=>{let n=a(t.start),r=a(t.end),i=[],o=new JS(n.getFullYear(),n.getMonth(),1,12,0,0,e),s=r.getFullYear()*12+r.getMonth();for(;o.getFullYear()*12+o.getMonth()<=s;)i.push(new JS(o,e)),o.setMonth(o.getMonth()+1,1);return i},addDays:(e,t)=>{let n=a(e);return n.setDate(n.getDate()+t),n},addWeeks:(e,t)=>{let n=a(e);return n.setDate(n.getDate()+t*7),n},addMonths:(e,t)=>{let n=a(e);return n.setMonth(n.getMonth()+t),n},addYears:(e,t)=>{let n=a(e);return n.setFullYear(n.getFullYear()+t),n},eachYearOfInterval:t=>{let n=a(t.start),r=a(t.end),i=[],o=new JS(n.getFullYear(),0,1,12,0,0,e);for(;o.getFullYear()<=r.getFullYear();)i.push(new JS(o,e)),o.setFullYear(o.getFullYear()+1,0,1);return i},getWeek:(e,t)=>JC(o(e),{weekStartsOn:t?.weekStartsOn??i,firstWeekContainsDate:t?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1}),getISOWeek:e=>GC(o(e)),differenceInCalendarDays:(e,t)=>fC(o(e),o(t)),differenceInCalendarMonths:(e,t)=>xC(o(e),o(t))}}var iE=e=>e instanceof HTMLElement?e:null,aE=e=>[...e.querySelectorAll(`[data-animated-month]`)??[]],oE=e=>iE(e.querySelector(`[data-animated-month]`)),sE=e=>iE(e.querySelector(`[data-animated-caption]`)),cE=e=>iE(e.querySelector(`[data-animated-weeks]`)),lE=e=>iE(e.querySelector(`[data-animated-nav]`)),uE=e=>iE(e.querySelector(`[data-animated-weekdays]`));function dE(e,t,{classNames:n,months:r,focused:i,dateLib:a}){let o=(0,V.useRef)(null),s=(0,V.useRef)(r),c=(0,V.useRef)(!1);(0,V.useLayoutEffect)(()=>{let l=s.current;if(s.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||l.length===0||r.length!==l.length)return;let u=a.isSameMonth(r[0].date,l[0].date),d=a.isAfter(r[0].date,l[0].date),f=d?n[Gw.caption_after_enter]:n[Gw.caption_before_enter],p=d?n[Gw.weeks_after_enter]:n[Gw.weeks_before_enter],m=o.current,h=e.current.cloneNode(!0);if(h instanceof HTMLElement?(aE(h).forEach(e=>{if(!(e instanceof HTMLElement))return;let t=oE(e);t&&e.contains(t)&&e.removeChild(t);let n=sE(e);n&&n.classList.remove(f);let r=cE(e);r&&r.classList.remove(p)}),o.current=h):o.current=null,c.current||u||i)return;let g=m instanceof HTMLElement?aE(m):[],_=aE(e.current);if(_?.every(e=>e instanceof HTMLElement)&&g?.every(e=>e instanceof HTMLElement)){c.current=!0;let t=[];e.current.style.isolation=`isolate`;let r=lE(e.current);r&&(r.style.zIndex=`1`),_.forEach((i,a)=>{let o=g[a];if(!o)return;i.style.position=`relative`,i.style.overflow=`hidden`;let s=sE(i);s&&s.classList.add(f);let l=cE(i);l&&l.classList.add(p);let u=()=>{c.current=!1,e.current&&(e.current.style.isolation=``),r&&(r.style.zIndex=``),s&&s.classList.remove(f),l&&l.classList.remove(p),i.style.position=``,i.style.overflow=``,i.contains(o)&&i.removeChild(o)};t.push(u),o.style.pointerEvents=`none`,o.style.position=`absolute`,o.style.overflow=`hidden`,o.setAttribute(`aria-hidden`,`true`);let m=uE(o);m&&(m.style.opacity=`0`);let h=sE(o);h&&(h.classList.add(d?n[Gw.caption_before_exit]:n[Gw.caption_after_exit]),h.addEventListener(`animationend`,u));let _=cE(o);_&&_.classList.add(d?n[Gw.weeks_before_exit]:n[Gw.weeks_after_exit]),i.insertBefore(o,i.firstChild)})}})}function fE(e,t,n,r){let i=e[0],a=e[e.length-1],{ISOWeek:o,fixedWeeks:s,broadcastCalendar:c}=n??{},{addDays:l,differenceInCalendarDays:u,differenceInCalendarMonths:d,endOfBroadcastWeek:f,endOfISOWeek:p,endOfMonth:m,endOfWeek:h,isAfter:g,startOfBroadcastWeek:_,startOfISOWeek:v,startOfWeek:y}=r,b=c?_(i,r):o?v(i):y(i),x=c?f(a):o?p(m(a)):h(m(a)),S=t&&(c?f(t):o?p(t):h(t)),C=u(S&&g(x,S)?S:x,b),w=d(a,i)+1,T=[];for(let e=0;e<=C;e++){let t=l(b,e);T.push(t)}let E=(c?35:42)*w;if(s&&T.length<E){let e=E-T.length;for(let t=0;t<e;t++){let e=l(T[T.length-1],1);T.push(e)}}return T}function pE(e){let t=[];return e.reduce((e,n)=>{let r=n.weeks.reduce((e,t)=>e.concat(t.days.slice()),t.slice());return e.concat(r.slice())},t.slice())}function mE(e,t,n,r){let{numberOfMonths:i=1}=n,a=[];for(let n=0;n<i;n++){let i=r.addMonths(e,n);if(t&&i>t)break;a.push(i)}return a}function hE(e,t,n,r){let{month:i,defaultMonth:a,today:o=r.today(),numberOfMonths:s=1}=e,c=i||a||o,{differenceInCalendarMonths:l,addMonths:u,startOfMonth:d}=r;return n&&l(n,c)<s-1&&(c=u(n,-1*(s-1))),t&&l(c,t)<0&&(c=t),d(c)}function gE(e,t,n,r){let{addDays:i,endOfBroadcastWeek:a,endOfISOWeek:o,endOfMonth:s,endOfWeek:c,getISOWeek:l,getWeek:u,startOfBroadcastWeek:d,startOfISOWeek:f,startOfWeek:p}=r,m=e.reduce((e,m)=>{let h=n.broadcastCalendar?d(m,r):n.ISOWeek?f(m):p(m),g=n.broadcastCalendar?a(m):n.ISOWeek?o(s(m)):c(s(m)),_=t.filter(e=>e>=h&&e<=g),v=n.broadcastCalendar?35:42;if(n.fixedWeeks&&_.length<v){let e=t.filter(e=>{let t=v-_.length;return e>g&&e<=i(g,t)});_.push(...e)}let y=new Lw(m,_.reduce((e,t)=>{let i=n.ISOWeek?l(t):u(t),a=e.find(e=>e.weekNumber===i),o=new Iw(t,m,r);return a?a.days.push(o):e.push(new Rw(i,[o])),e},[]));return e.push(y),e},[]);return n.reverseMonths?m.reverse():m}function _E(e,t){let{startMonth:n,endMonth:r}=e,{startOfYear:i,startOfDay:a,startOfMonth:o,endOfMonth:s,addYears:c,endOfYear:l,today:u}=t,d=e.captionLayout===`dropdown`||e.captionLayout===`dropdown-years`;return n?n=o(n):!n&&d&&(n=i(c(e.today??u(),-100))),r?r=s(r):!r&&d&&(r=l(e.today??u())),[n&&a(n),r&&a(r)]}function vE(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:a=1}=n,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:c}=r,l=i?a:1,u=o(e);if(!t||!(c(t,e)<a))return s(u,l)}function yE(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:a}=n,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:c}=r,l=i?a??1:1,u=o(e);if(!t||!(c(u,t)<=0))return s(u,-l)}function bE(e){return e.reduce((e,t)=>e.concat(t.weeks.slice()),[].slice())}function xE(e,t){let[n,r]=(0,V.useState)(e);return[t===void 0?n:t,r]}function SE(e,t){let[n,r]=_E(e,t),{startOfMonth:i,endOfMonth:a}=t,o=hE(e,n,r,t),[s,c]=xE(o,e.month?o:void 0);(0,V.useEffect)(()=>{let i=hE(e,n,r,t);c(i)},[e.timeZone]);let{months:l,weeks:u,days:d,previousMonth:f,nextMonth:p}=(0,V.useMemo)(()=>{let i=mE(s,r,{numberOfMonths:e.numberOfMonths},t),o=gE(i,fE(i,e.endMonth?a(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t);return{months:o,weeks:bE(o),days:pE(o),previousMonth:yE(s,n,e,t),nextMonth:vE(s,r,e,t)}},[t,s.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:m,onMonthChange:h}=e,g=e=>u.some(t=>t.days.some(t=>t.isEqualTo(e))),_=e=>{if(m)return;let t=i(e);n&&t<i(n)&&(t=i(n)),r&&t>i(r)&&(t=i(r)),c(t),h?.(t)};return{months:l,weeks:u,days:d,navStart:n,navEnd:r,previousMonth:f,nextMonth:p,goToMonth:_,goToDay:e=>{g(e)||_(e.date)}}}var CE;(function(e){e[e.Today=0]=`Today`,e[e.Selected=1]=`Selected`,e[e.LastFocused=2]=`LastFocused`,e[e.FocusedModifier=3]=`FocusedModifier`})(CE||={});function wE(e){return!e[Uw.disabled]&&!e[Uw.hidden]&&!e[Uw.outside]}function TE(e,t,n,r){let i,a=-1;for(let o of e){let e=t(o);wE(e)&&(e[Uw.focused]&&a<CE.FocusedModifier?(i=o,a=CE.FocusedModifier):r?.isEqualTo(o)&&a<CE.LastFocused?(i=o,a=CE.LastFocused):n(o.date)&&a<CE.Selected?(i=o,a=CE.Selected):e[Uw.today]&&a<CE.Today&&(i=o,a=CE.Today))}return i||=e.find(e=>wE(t(e))),i}function EE(e,t,n,r,i,a,o){let{ISOWeek:s,broadcastCalendar:c}=a,{addDays:l,addMonths:u,addWeeks:d,addYears:f,endOfBroadcastWeek:p,endOfISOWeek:m,endOfWeek:h,max:g,min:_,startOfBroadcastWeek:v,startOfISOWeek:y,startOfWeek:b}=o,x={day:l,week:d,month:u,year:f,startOfWeek:e=>c?v(e,o):s?y(e):b(e),endOfWeek:e=>c?p(e):s?m(e):h(e)}[e](n,t===`after`?1:-1);return t===`before`&&r?x=g([r,x]):t===`after`&&i&&(x=_([i,x])),x}function DE(e,t,n,r,i,a,o,s=0){if(s>365)return;let c=EE(e,t,n.date,r,i,a,o),l=!!(a.disabled&&CT(c,a.disabled,o)),u=!!(a.hidden&&CT(c,a.hidden,o)),d=new Iw(c,c,o);return!l&&!u?d:DE(e,t,d,r,i,a,o,s+1)}function OE(e,t,n,r,i){let{autoFocus:a}=e,[o,s]=(0,V.useState)(),c=TE(t.days,n,r||(()=>!1),o),[l,u]=(0,V.useState)(a?c:void 0);return{isFocusTarget:e=>!!c?.isEqualTo(e),setFocused:u,focused:l,blur:()=>{s(l),u(void 0)},moveFocus:(n,r)=>{if(!l)return;let a=DE(n,r,l,t.navStart,t.navEnd,e,i);a&&(e.disableNavigation&&!t.days.some(e=>e.isEqualTo(a))||(t.goToDay(a),u(a)))}}}function kE(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=xE(n,i?n:void 0),s=i?n:a,{isSameDay:c}=t,l=e=>s?.some(t=>c(t,e))??!1,{min:u,max:d}=e;return{selected:s,select:(e,t,n)=>{let a=[...s??[]];if(l(e)){if(s?.length===u||r&&s?.length===1)return;a=s?.filter(t=>!c(t,e))}else a=s?.length===d?[e]:[...a,e];return i||o(a),i?.(a,e,t,n),a},isSelected:l}}function AE(e,t,n=0,r=0,i=!1,a=Fw){let{from:o,to:s}=t||{},{isSameDay:c,isAfter:l,isBefore:u}=a,d;if(!o&&!s)d={from:e,to:n>0?void 0:e};else if(o&&!s)d=c(o,e)?n===0?{from:o,to:e}:i?{from:o,to:void 0}:void 0:u(e,o)?{from:e,to:o}:{from:o,to:e};else if(o&&s){if(c(o,e)&&c(s,e))d=i?{from:o,to:s}:void 0;else if(c(o,e))d={from:o,to:n>0?void 0:e};else if(c(s,e))d={from:e,to:n>0?void 0:e};else if(u(e,o))d={from:e,to:s};else if(l(e,o))d={from:o,to:e};else if(l(e,s))d={from:o,to:e};else throw Error(`Invalid range`)}if(d?.from&&d?.to){let t=a.differenceInCalendarDays(d.to,d.from);(r>0&&t>r||n>1&&t<n)&&(d={from:e,to:void 0})}return d}function jE(e,t,n=Fw){let r=Array.isArray(t)?t:[t],i=e.from,a=n.differenceInCalendarDays(e.to,e.from),o=Math.min(a,6);for(let e=0;e<=o;e++){if(r.includes(i.getDay()))return!0;i=n.addDays(i,1)}return!1}function ME(e,t,n=Fw){return gT(e,t.from,!1,n)||gT(e,t.to,!1,n)||gT(t,e.from,!1,n)||gT(t,e.to,!1,n)}function NE(e,t,n=Fw){let r=Array.isArray(t)?t:[t];if(r.filter(e=>typeof e!=`function`).some(t=>typeof t==`boolean`?t:n.isDate(t)?gT(e,t,!1,n):ST(t,n)?t.some(t=>gT(e,t,!1,n)):vT(t)?t.from&&t.to?ME(e,{from:t.from,to:t.to},n):!1:xT(t)?jE(e,t.dayOfWeek,n):_T(t)?n.isAfter(t.before,t.after)?ME(e,{from:n.addDays(t.after,1),to:n.addDays(t.before,-1)},n):CT(e.from,t,n)||CT(e.to,t,n):yT(t)||bT(t)?CT(e.from,t,n)||CT(e.to,t,n):!1))return!0;let i=r.filter(e=>typeof e==`function`);if(i.length){let t=e.from,r=n.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=r;e++){if(i.some(e=>e(t)))return!0;t=n.addDays(t,1)}}return!1}function PE(e,t){let{disabled:n,excludeDisabled:r,resetOnSelect:i,selected:a,required:o,onSelect:s}=e,[c,l]=xE(a,s?a:void 0),u=s?a:c;return{selected:u,select:(a,c,d)=>{let{min:f,max:p}=e,m;if(a){let e=u?.from,n=u?.to,r=!!e&&!!n,s=!!e&&!!n&&t.isSameDay(e,n)&&t.isSameDay(a,e);m=i&&(r||!u?.from)?!o&&s?void 0:{from:a,to:void 0}:AE(a,u,f,p,o,t)}return r&&n&&m?.from&&m.to&&NE({from:m.from,to:m.to},n,t)&&(m.from=a,m.to=void 0),s||l(m),s?.(m,a,c,d),m},isSelected:e=>u&&gT(u,e,!1,t)}}function FE(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=xE(n,i?n:void 0),s=i?n:a,{isSameDay:c}=t;return{selected:s,select:(e,t,n)=>{let a=e;return!r&&s&&s&&c(e,s)&&(a=void 0),i||o(a),i?.(a,e,t,n),a},isSelected:e=>s?c(s,e):!1}}function IE(e,t){let n=FE(e,t),r=kE(e,t),i=PE(e,t);switch(e.mode){case`single`:return n;case`multiple`:return r;case`range`:return i;default:return}}function LE(e,t){return e instanceof JS&&e.timeZone===t?e:new JS(e,t)}function RE(e,t,n){if(!n)return LE(e,t);let r=LE(e,t),i=new JS(r.getFullYear(),r.getMonth(),r.getDate(),12,0,0,t);return new Date(i.getTime())}function zE(e,t,n){return typeof e==`boolean`||typeof e==`function`?e:e instanceof Date?RE(e,t,n):Array.isArray(e)?e.map(e=>e instanceof Date?RE(e,t,n):e):vT(e)?{...e,from:e.from?LE(e.from,t):e.from,to:e.to?LE(e.to,t):e.to}:_T(e)?{before:RE(e.before,t,n),after:RE(e.after,t,n)}:yT(e)?{after:RE(e.after,t,n)}:bT(e)?{before:RE(e.before,t,n)}:e}function BE(e,t,n){return e&&(Array.isArray(e)?e.map(e=>zE(e,t,n)):zE(e,t,n))}function VE(e){let t=e,n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=LE(t.today,n)),t.month&&(t.month=LE(t.month,n)),t.defaultMonth&&(t.defaultMonth=LE(t.defaultMonth,n)),t.startMonth&&(t.startMonth=LE(t.startMonth,n)),t.endMonth&&(t.endMonth=LE(t.endMonth,n)),t.mode===`single`&&t.selected?t.selected=LE(t.selected,n):t.mode===`multiple`&&t.selected?t.selected=t.selected?.map(e=>LE(e,n)):t.mode===`range`&&t.selected&&(t.selected={from:t.selected.from?LE(t.selected.from,n):t.selected.from,to:t.selected.to?LE(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=BE(t.disabled,n)),t.hidden!==void 0&&(t.hidden=BE(t.hidden,n)),t.modifiers)){let e={};Object.keys(t.modifiers).forEach(r=>{e[r]=BE(t.modifiers?.[r],n)}),t.modifiers=e}let{components:r,formatters:i,labels:a,dateLib:o,locale:s,classNames:c}=(0,V.useMemo)(()=>{let e={...Nw,...t.locale},n=t.broadcastCalendar?1:t.weekStartsOn,r=t.noonSafe&&t.timeZone?rE(t.timeZone,{weekStartsOn:n,locale:e}):void 0,i=t.dateLib&&r?{...r,...t.dateLib}:t.dateLib??r,a=new Pw({locale:e,weekStartsOn:n,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},i);return{dateLib:a,components:ET(t.components),formatters:LT(t.formatters),labels:QT(t.labels,a.options),locale:e,classNames:{...OT(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:o.today()});let{captionLayout:l,mode:u,navLayout:d,numberOfMonths:f=1,onDayBlur:p,onDayClick:m,onDayFocus:h,onDayKeyDown:g,onDayMouseEnter:_,onDayMouseLeave:v,onNextClick:y,onPrevClick:b,showWeekNumber:x,styles:S}=t,{formatCaption:C,formatDay:w,formatMonthDropdown:T,formatWeekNumber:E,formatWeekNumberHeader:D,formatWeekdayName:O,formatYearDropdown:k}=i,A=SE(t,o),{days:j,months:M,navStart:N,navEnd:P,previousMonth:F,nextMonth:I,goToMonth:L}=A,ee=wT(j,t,N,P,o),{isSelected:te,select:ne,selected:R}=IE(t,o)??{},{blur:z,focused:B,isFocusTarget:re,moveFocus:ie,setFocused:ae}=OE(t,A,ee,te??(()=>!1),o),{labelDayButton:oe,labelGridcell:se,labelGrid:ce,labelMonthDropdown:le,labelNav:ue,labelPrevious:de,labelNext:fe,labelWeekday:pe,labelWeekNumber:me,labelWeekNumberHeader:he,labelYearDropdown:ge}=a,_e=(0,V.useMemo)(()=>tE(o,t.ISOWeek,t.broadcastCalendar,t.today),[o,t.ISOWeek,t.broadcastCalendar,t.today]),ve=u!==void 0||m!==void 0,ye=(0,V.useCallback)(()=>{F&&(L(F),b?.(F))},[F,L,b]),be=(0,V.useCallback)(()=>{I&&(L(I),y?.(I))},[L,I,y]),xe=(0,V.useCallback)((e,t)=>n=>{n.preventDefault(),n.stopPropagation(),ae(e),!t.disabled&&(ne?.(e.date,t,n),m?.(e.date,t,n))},[ne,m,ae]),Se=(0,V.useCallback)((e,t)=>n=>{ae(e),h?.(e.date,t,n)},[h,ae]),Ce=(0,V.useCallback)((e,t)=>n=>{z(),p?.(e.date,t,n)},[z,p]),we=(0,V.useCallback)((e,n)=>r=>{let i={ArrowLeft:[r.shiftKey?`month`:`day`,t.dir===`rtl`?`after`:`before`],ArrowRight:[r.shiftKey?`month`:`day`,t.dir===`rtl`?`before`:`after`],ArrowDown:[r.shiftKey?`year`:`week`,`after`],ArrowUp:[r.shiftKey?`year`:`week`,`before`],PageUp:[r.shiftKey?`year`:`month`,`before`],PageDown:[r.shiftKey?`year`:`month`,`after`],Home:[`startOfWeek`,`before`],End:[`endOfWeek`,`after`]};if(i[r.key]){r.preventDefault(),r.stopPropagation();let[e,t]=i[r.key];ie(e,t)}g?.(e.date,n,r)},[ie,g,t.dir]),Te=(0,V.useCallback)((e,t)=>n=>{_?.(e.date,t,n)},[_]),Ee=(0,V.useCallback)((e,t)=>n=>{v?.(e.date,t,n)},[v]),De=(0,V.useCallback)((e,t)=>n=>{let r=Number(n.target.value),i=o.setMonth(o.startOfMonth(e),r);L(o.addMonths(i,-t))},[o,L]),Oe=(0,V.useCallback)((e,t)=>n=>{let r=Number(n.target.value),i=o.setYear(o.startOfMonth(e),r);L(o.addMonths(i,-t))},[o,L]),{className:ke,style:Ae}=(0,V.useMemo)(()=>({className:[c[Q.Root],t.className].filter(Boolean).join(` `),style:{...S?.[Q.Root],...t.style}}),[c,t.className,t.style,S]),je=DT(t),Me=e=>{let t=S?.[Q.Dropdown],n=S?.[e];if(!(!t&&!n))return{...t,...n}},Ne=(0,V.useRef)(null);dE(Ne,!!t.animate,{classNames:c,months:M,focused:B,dateLib:o});let Pe={dayPickerProps:t,selected:R,select:ne,isSelected:te,months:M,nextMonth:I,previousMonth:F,goToMonth:L,getModifiers:ee,components:r,classNames:c,styles:S,labels:a,formatters:i};return V.createElement(Kw.Provider,{value:Pe},V.createElement(r.Root,{rootRef:t.animate?Ne:void 0,className:ke,style:Ae,dir:t.dir,id:t.id,lang:t.lang??s.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t[`aria-label`],"aria-labelledby":t[`aria-labelledby`],...je},V.createElement(r.Months,{className:c[Q.Months],style:S?.[Q.Months]},!t.hideNavigation&&!d&&V.createElement(r.Nav,{"data-animated-nav":t.animate?`true`:void 0,className:c[Q.Nav],style:S?.[Q.Nav],"aria-label":ue(),onPreviousClick:ye,onNextClick:be,previousMonth:F,nextMonth:I}),M.map((e,n)=>{let a=t.reverseMonths?M.length-1-n:n;return V.createElement(r.Month,{"data-animated-month":t.animate?`true`:void 0,className:c[Q.Month],style:S?.[Q.Month],key:n,displayIndex:n,calendarMonth:e},d===`around`&&!t.hideNavigation&&n===0&&V.createElement(r.PreviousMonthButton,{type:`button`,className:c[Q.PreviousMonthButton],style:S?.[Q.PreviousMonthButton],tabIndex:F?void 0:-1,"aria-disabled":!F||void 0,"aria-label":de(F),onClick:ye,"data-animated-button":t.animate?`true`:void 0},V.createElement(r.Chevron,{disabled:!F||void 0,className:c[Q.Chevron],style:S?.[Q.Chevron],orientation:t.dir===`rtl`?`right`:`left`})),V.createElement(r.MonthCaption,{"data-animated-caption":t.animate?`true`:void 0,className:c[Q.MonthCaption],style:S?.[Q.MonthCaption],calendarMonth:e,displayIndex:n},l?.startsWith(`dropdown`)?V.createElement(r.DropdownNav,{className:c[Q.Dropdowns],style:S?.[Q.Dropdowns]},(()=>{let n=l===`dropdown`||l===`dropdown-months`?V.createElement(r.MonthsDropdown,{key:`month`,className:c[Q.MonthsDropdown],"aria-label":le(),disabled:!!t.disableNavigation,onChange:De(e.date,a),options:$T(e.date,N,P,i,o),style:Me(Q.MonthsDropdown),value:o.getMonth(e.date)}):V.createElement(`span`,{key:`month`},T(e.date,o)),s=l===`dropdown`||l===`dropdown-years`?V.createElement(r.YearsDropdown,{key:`year`,className:c[Q.YearsDropdown],"aria-label":ge(o.options),disabled:!!t.disableNavigation,onChange:Oe(e.date,a),options:nE(N,P,i,o,!!t.reverseYears),style:Me(Q.YearsDropdown),value:o.getYear(e.date)}):V.createElement(`span`,{key:`year`},k(e.date,o));return o.getMonthYearOrder()===`year-first`?[s,n]:[n,s]})(),V.createElement(`span`,{role:`status`,"aria-live":`polite`,style:{border:0,clip:`rect(0 0 0 0)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`,wordWrap:`normal`}},C(e.date,o.options,o))):V.createElement(r.CaptionLabel,{className:c[Q.CaptionLabel],style:S?.[Q.CaptionLabel],role:`status`,"aria-live":`polite`},C(e.date,o.options,o))),d===`around`&&!t.hideNavigation&&n===f-1&&V.createElement(r.NextMonthButton,{type:`button`,className:c[Q.NextMonthButton],style:S?.[Q.NextMonthButton],tabIndex:I?void 0:-1,"aria-disabled":!I||void 0,"aria-label":fe(I),onClick:be,"data-animated-button":t.animate?`true`:void 0},V.createElement(r.Chevron,{disabled:!I||void 0,className:c[Q.Chevron],style:S?.[Q.Chevron],orientation:t.dir===`rtl`?`left`:`right`})),n===f-1&&d===`after`&&!t.hideNavigation&&V.createElement(r.Nav,{"data-animated-nav":t.animate?`true`:void 0,className:c[Q.Nav],style:S?.[Q.Nav],"aria-label":ue(),onPreviousClick:ye,onNextClick:be,previousMonth:F,nextMonth:I}),V.createElement(r.MonthGrid,{role:`grid`,"aria-multiselectable":u===`multiple`||u===`range`,"aria-label":ce(e.date,o.options,o)||void 0,className:c[Q.MonthGrid],style:S?.[Q.MonthGrid]},!t.hideWeekdays&&V.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?`true`:void 0,className:c[Q.Weekdays],style:S?.[Q.Weekdays]},x&&V.createElement(r.WeekNumberHeader,{"aria-label":he(o.options),className:c[Q.WeekNumberHeader],style:S?.[Q.WeekNumberHeader],scope:`col`},D()),_e.map(e=>V.createElement(r.Weekday,{"aria-label":pe(e,o.options,o),className:c[Q.Weekday],key:String(e),style:S?.[Q.Weekday],scope:`col`},O(e,o.options,o)))),V.createElement(r.Weeks,{"data-animated-weeks":t.animate?`true`:void 0,className:c[Q.Weeks],style:S?.[Q.Weeks]},e.weeks.map(e=>V.createElement(r.Week,{className:c[Q.Week],key:e.weekNumber,style:S?.[Q.Week],week:e},x&&V.createElement(r.WeekNumber,{week:e,style:S?.[Q.WeekNumber],"aria-label":me(e.weekNumber,{locale:s}),className:c[Q.WeekNumber],scope:`row`,role:`rowheader`},E(e.weekNumber,o)),e.days.map(e=>{let{date:n}=e,i=ee(e);if(i[Uw.focused]=!i.hidden&&!!B?.isEqualTo(e),i[Ww.selected]=te?.(n)||i.selected,vT(R)){let{from:e,to:t}=R;i[Ww.range_start]=!!(e&&t&&o.isSameDay(n,e)),i[Ww.range_end]=!!(e&&t&&o.isSameDay(n,t)),i[Ww.range_middle]=gT(R,n,!0,o)}let a=eE(i,S,t.modifiersStyles),s=TT(i,c,t.modifiersClassNames),l=!ve&&!i.hidden?se(n,i,o.options,o):void 0;return V.createElement(r.Day,{key:`${e.isoDate}_${e.displayMonthId}`,day:e,modifiers:i,className:s.join(` `),style:a,role:`gridcell`,"aria-selected":i.selected||void 0,"aria-label":l,"data-day":e.isoDate,"data-month":e.outside?e.dateMonthId:void 0,"data-selected":i.selected||void 0,"data-disabled":i.disabled||void 0,"data-hidden":i.hidden||void 0,"data-outside":e.outside||void 0,"data-focused":i.focused||void 0,"data-today":i.today||void 0},!i.hidden&&ve?V.createElement(r.DayButton,{className:c[Q.DayButton],style:S?.[Q.DayButton],type:`button`,day:e,modifiers:i,disabled:!i.focused&&i.disabled||void 0,"aria-disabled":i.focused&&i.disabled||void 0,tabIndex:re(e)?0:-1,"aria-label":oe(n,i,o.options,o),onClick:xe(e,i),onBlur:Ce(e,i),onFocus:Se(e,i),onKeyDown:we(e,i),onMouseEnter:Te(e,i),onMouseLeave:Ee(e,i)},w(n,o.options,o)):!i.hidden&&w(e.date,o.options,o))}))))))})),t.footer&&V.createElement(r.Footer,{className:c[Q.Footer],style:S?.[Q.Footer],role:`status`,"aria-live":`polite`},t.footer)))}function HE({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r=`label`,buttonVariant:i=`ghost`,locale:a,formatters:o,components:s,...c}){let l=OT();return(0,H.jsx)(VE,{showOutsideDays:n,className:J(`group/calendar bg-background p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(7)] in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent`,String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:r,locale:a,formatters:{formatMonthDropdown:e=>e.toLocaleString(a?.code,{month:`short`}),...o},classNames:{root:J(`w-fit`,l.root),months:J(`relative flex flex-col gap-4 md:flex-row`,l.months),month:J(`flex w-full flex-col gap-4`,l.month),nav:J(`absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1`,l.nav),button_previous:J(lv({variant:i}),`size-(--cell-size) p-0 select-none aria-disabled:opacity-50`,l.button_previous),button_next:J(lv({variant:i}),`size-(--cell-size) p-0 select-none aria-disabled:opacity-50`,l.button_next),month_caption:J(`flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)`,l.month_caption),dropdowns:J(`flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium`,l.dropdowns),dropdown_root:J(`relative rounded-(--cell-radius)`,l.dropdown_root),dropdown:J(`absolute inset-0 bg-popover opacity-0`,l.dropdown),caption_label:J(`font-medium select-none`,r===`label`?`text-sm`:`flex items-center gap-1 rounded-(--cell-radius) text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground`,l.caption_label),month_grid:J(`w-full border-collapse`,l.month_grid),weekdays:J(`flex`,l.weekdays),weekday:J(`flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal text-muted-foreground select-none`,l.weekday),week:J(`mt-2 flex w-full`,l.week),week_number_header:J(`w-(--cell-size) select-none`,l.week_number_header),week_number:J(`text-[0.8rem] text-muted-foreground select-none`,l.week_number),day:J(`group/day relative aspect-square h-full w-full rounded-(--cell-radius) p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-e-(--cell-radius)`,c.showWeekNumber?`[&:nth-child(2)[data-selected=true]_button]:rounded-s-(--cell-radius)`:`[&:first-child[data-selected=true]_button]:rounded-s-(--cell-radius)`,l.day),range_start:J(`relative isolate z-0 rounded-s-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:end-0 after:w-4 after:bg-muted`,l.range_start),range_middle:J(`rounded-none`,l.range_middle),range_end:J(`relative isolate z-0 rounded-e-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:start-0 after:w-4 after:bg-muted`,l.range_end),today:J(`rounded-(--cell-radius) bg-muted text-foreground data-[selected=true]:rounded-none`,l.today),outside:J(`text-muted-foreground aria-selected:text-muted-foreground`,l.outside),disabled:J(`text-muted-foreground opacity-50`,l.disabled),hidden:J(`invisible`,l.hidden),...t},components:{Root:({className:e,rootRef:t,...n})=>(0,H.jsx)(`div`,{"data-slot":`calendar`,ref:t,className:J(e),...n}),Chevron:({className:e,orientation:t,...n})=>t===`left`?(0,H.jsx)(jt,{className:J(`rtl:rotate-180 size-4`,e),...n}):t===`right`?(0,H.jsx)(Mt,{className:J(`rtl:rotate-180 size-4`,e),...n}):(0,H.jsx)(At,{className:J(`size-4`,e),...n}),DayButton:({...e})=>(0,H.jsx)(UE,{locale:a,...e}),WeekNumber:({children:e,...t})=>(0,H.jsx)(`td`,{...t,children:(0,H.jsx)(`div`,{className:`flex size-(--cell-size) items-center justify-center text-center`,children:e})}),...s},...c})}function UE({className:e,day:t,modifiers:n,locale:r,...i}){let a=OT(),o=V.useRef(null);return V.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),(0,H.jsx)(Y,{ref:o,variant:`ghost`,size:`icon`,"data-day":t.date.toLocaleDateString(r?.code),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:J(`relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-e-(--cell-radius) data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-muted data-[range-middle=true]:text-foreground data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-s-(--cell-radius) data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-foreground [&>span]:text-xs [&>span]:opacity-70`,a.day,e),...i})}function WE({...e}){return(0,H.jsx)(dm,{"data-slot":`popover`,...e})}function GE({...e}){return(0,H.jsx)(fm,{"data-slot":`popover-trigger`,...e})}function KE({className:e,align:t=`center`,sideOffset:n=4,...r}){return(0,H.jsx)(pm,{children:(0,H.jsx)(mm,{"data-slot":`popover-content`,align:t,sideOffset:n,className:J(`z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r})})}function qE({...e}){return(0,H.jsx)(jm,{"data-slot":`select`,...e})}function JE({...e}){return(0,H.jsx)(Fm,{"data-slot":`select-value`,...e})}function YE({className:e,size:t=`default`,children:n,...r}){return(0,H.jsxs)(Nm,{"data-slot":`select-trigger`,"data-size":t,className:J(`flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pe-2 ps-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground/70 data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...r,children:[n,(0,H.jsx)(Im,{asChild:!0,children:(0,H.jsx)(At,{className:`pointer-events-none size-4 text-muted-foreground`})})]})}function XE({className:e,children:t,position:n=`item-aligned`,align:r=`center`,...i}){return(0,H.jsx)(zm,{children:(0,H.jsxs)(Vm,{"data-slot":`select-content`,"data-align-trigger":n===`item-aligned`,className:J(`relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 rtl:data-[side=left]:translate-x-1 data-[side=right]:translate-x-1 rtl:data-[side=right]:-translate-x-1 data-[side=top]:-translate-y-1`,e),position:n,align:r,...i,children:[(0,H.jsx)(QE,{}),(0,H.jsx)($m,{"data-position":n,className:J(`data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)`,n===`popper`&&``),children:t}),(0,H.jsx)($E,{})]})})}function ZE({className:e,children:t,...n}){return(0,H.jsxs)(ah,{"data-slot":`select-item`,className:J(`relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pe-8 ps-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...n,children:[(0,H.jsx)(`span`,{className:`pointer-events-none absolute end-2 flex size-4 items-center justify-center`,children:(0,H.jsx)(lh,{children:(0,H.jsx)(kt,{className:`pointer-events-none`})})}),(0,H.jsx)(sh,{children:t})]})}function QE({className:e,...t}){return(0,H.jsx)(dh,{"data-slot":`select-scroll-up-button`,className:J(`z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4`,e),...t,children:(0,H.jsx)(Nt,{})})}function $E({className:e,...t}){return(0,H.jsx)(ph,{"data-slot":`select-scroll-down-button`,className:J(`z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4`,e),...t,children:(0,H.jsx)(At,{})})}function eD({className:e,...t}){return(0,H.jsx)(`textarea`,{"data-slot":`textarea`,className:J(`flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground/70 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,e),...t})}function tD({className:e,...t}){return(0,H.jsx)(Ip,{"data-slot":`label`,className:J(`flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,e),...t})}async function nD(e){let t=e.language??`en`,n=rD(e.purposes,e.preferredPurpose);if(!n)throw Error(Z(t,`media.noPurpose`));let r=await oD(e.file,n,t),i=await ey.post(`/media/uploads`,{filename:e.file.name,purpose:n.name,variants:r.map(e=>({mimeType:e.mimeType,byteSize:e.blob.size,role:e.role})),alt:e.alt??gD(e.file),caption:e.caption});for(let e of r){let n=i.capabilities.find(t=>t.mimeType===e.mimeType&&t.role===e.role);if(!n)throw Error(Z(t,`media.capabilityMissing`,{mime:e.mimeType}));if(!(await fetch(n.uploadUrl,{method:n.method,headers:n.requiredHeaders??{"Content-Type":e.mimeType},body:e.blob})).ok)throw Error(Z(t,`media.variantUploadFailed`,{mime:e.mimeType}))}return ey.post(`/media/uploads/${encodeURIComponent(i.uploadGroupId)}/commit`,{alt:e.alt??gD(e.file),caption:e.caption})}function rD(e,t){if(t){let n=e.find(e=>e.name===t);if(n)return n}return e.find(e=>e.name===`content`)??e[0]??null}function iD(e,t,n){let r=n[n.length-1]??``,i=hD(t.replace(/-translations$/,``)),a=[];/cover/i.test(r)&&a.push(`${i}-cover`),/image|asset|media/i.test(r)&&(a.push(`${i}-image`),a.push(`${i}-media`)),a.push(`content`);for(let t of a)if(e.some(e=>e.name===t))return t;return e[0]?.name}function aD(e){return(e.variants.find(e=>e.role===`primary`)??e.variants[0])?.publicUrl??null}async function oD(e,t,n){if(!e.type.startsWith(`image/`)||e.type===`image/svg+xml`)throw Error(Z(n,`media.rasterOnly`));let r=sD(t.required);if(r.length===0)throw Error(Z(n,`media.noRequiredVariants`));let i=await createImageBitmap(e);try{let e=await Promise.all(r.map(e=>dD(e,t,n))),a=e.find(mD)??e[0],o=[];for(let r of e){let e=t.maxBytes[r]??2**53-1;o.push({mimeType:r,role:r===a?`primary`:`alternate`,blob:await fD(i,r,e,n)})}return o}finally{i.close?.()}}function sD(e){return e.map(e=>e.split(`,`).map(cD).filter(e=>!!e)).filter(e=>e.length>0)}function cD(e){let t=e.trim().toLowerCase();return t?t===`jpg`||t===`jpeg`||t===`image/jpg`?`image/jpeg`:t===`png`?`image/png`:t===`webp`?`image/webp`:t===`avif`?`image/avif`:t===`gif`?`image/gif`:t.includes(`/`)?t:null:null}var lD=new Map;function uD(e){let t=lD.get(e);return t||(t=(async()=>{try{let t=document.createElement(`canvas`);return t.width=1,t.height=1,(await new Promise(n=>t.toBlob(n,e)))?.type===e}catch{return!0}})(),lD.set(e,t)),t}async function dD(e,t,n){for(let n of e)if(n.startsWith(`image/`)&&t.maxBytes[n]!=null&&await uD(n))return n;let r=e.find(e=>e.startsWith(`image/`)&&t.maxBytes[e]!=null);throw Error(Z(n,`media.encoderUnsupported`,{mime:r??e[0]??`?`}))}async function fD(e,t,n,r){let i=1,a=t===`image/jpeg`?[.88,.78,.68,.58]:[.78,.68,.58,.48],o=null;for(let s=0;s<6;s+=1){for(let c of a){let a=await pD(e,t,i,c,r);if(a.type!==t){if(s===0&&o===null)throw Error(Z(r,`media.encoderUnsupported`,{mime:t}));continue}if(o=a,a.size<=n)return a}i*=.82}if(o)return o;throw Error(Z(r,`media.encoderUnsupported`,{mime:t}))}async function pD(e,t,n,r,i){let a=document.createElement(`canvas`);a.width=Math.max(1,Math.round(e.width*n)),a.height=Math.max(1,Math.round(e.height*n));let o=a.getContext(`2d`);if(!o)throw Error(Z(i,`media.prepareFailed`));o.drawImage(e,0,0,a.width,a.height);let s=await new Promise(e=>a.toBlob(e,t,r));if(!s)throw Error(Z(i,`media.encoderUnsupported`,{mime:t}));return s}function mD(e){return e===`image/jpeg`||e===`image/png`||e===`image/gif`}function hD(e){return e.endsWith(`ies`)?`${e.slice(0,-3)}y`:e.endsWith(`ses`)?e.slice(0,-2):e.endsWith(`s`)&&e.length>1?e.slice(0,-1):e}function gD(e){return e.name.replace(/\.[^.]+$/,``)}function _D({value:e,onChange:t,compact:n=!1}){let{language:r}=X(),i=V.useRef(null),a=V.useRef(null),[o,s]=V.useState(!1),[c,l]=V.useState(!1),[u,d]=V.useState(!1),[f,p]=V.useState(null),m=it({queryKey:[`site`],queryFn:()=>ey.get(`/site`)}),h=V.useCallback((n,r=``,a=``)=>{let o=i.current;if(!o){t(`${e}${n}${a}${r}`);return}let s=o.selectionStart,c=o.selectionEnd,l=e.slice(s,c)||a;t(`${e.slice(0,s)}${n}${l}${r}${e.slice(c)}`),window.requestAnimationFrame(()=>{o.focus();let e=s+n.length,t=e+l.length;o.setSelectionRange(e,t)})},[t,e]),g=V.useCallback(t=>{let n=e.endsWith(`
50
+ `)||e.length===0?``:`
51
+
52
+ `;h(`${n}${t}`,``,``)},[h,e]);async function _(e){d(!0),p(null);try{let t=await nD({file:e,purposes:m.data?.media?.purposes??[],preferredPurpose:`content`,language:r}),n=aD(t);if(!n)throw Error(Z(r,`common.unknownError`));v(n,t.alt??e.name)}catch(e){p(e instanceof Error?e.message:String(e))}finally{d(!1),a.current&&(a.current.value=``)}}function v(e,t){g(`![${t}](${e})`)}function y(e){let t=CD(e);g(t),l(!1)}function b(e){if(e!==`paragraph`){if(/^h[1-6]$/.test(e)){let t=Number(e.slice(1));h(`${`#`.repeat(t)} `,``,Z(r,`editor.headingPlaceholder`));return}e===`quote`&&g(`> `),e===`code`&&h("```\n","\n```")}}return(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1 rounded-t-lg border bg-muted/30 p-1`,"aria-label":Z(r,`editor.toolbar`),children:[(0,H.jsx)(vD,{title:Z(r,`editor.undo`),onClick:()=>SD(`undo`,i.current),children:(0,H.jsx)(Wn,{className:`size-4`,"aria-hidden":!0})}),(0,H.jsx)(vD,{title:Z(r,`editor.redo`),onClick:()=>SD(`redo`,i.current),children:(0,H.jsx)(Dn,{className:`size-4`,"aria-hidden":!0})}),(0,H.jsx)(yD,{}),(0,H.jsx)(vD,{title:Z(r,`editor.aiClean`),onClick:()=>g(`> `),children:(0,H.jsx)(Yn,{className:`size-4`,"aria-hidden":!0})}),(0,H.jsx)(vD,{title:Z(r,`editor.uploadImage`),onClick:()=>a.current?.click(),disabled:u,children:(0,H.jsx)(Gn,{className:`size-4`,"aria-hidden":!0})}),(0,H.jsx)(`input`,{ref:a,type:`file`,accept:`image/*`,className:`hidden`,onChange:e=>{let t=e.currentTarget.files?.[0];t&&_(t)}}),(0,H.jsx)(yD,{}),(0,H.jsxs)(`label`,{className:`flex h-8 items-center gap-1 rounded-md px-2 text-sm text-muted-foreground hover:bg-accent hover:text-accent-foreground`,title:Z(r,`editor.textStyle`),children:[(0,H.jsx)(Hn,{className:`size-4`,"aria-hidden":!0}),(0,H.jsxs)(`select`,{className:`bg-transparent text-sm outline-none`,onChange:e=>{b(e.target.value),e.target.value=`paragraph`},defaultValue:`paragraph`,children:[(0,H.jsx)(`option`,{value:`paragraph`,children:Z(r,`editor.paragraph`)}),(0,H.jsx)(`option`,{value:`h1`,children:`H1`}),(0,H.jsx)(`option`,{value:`h2`,children:`H2`}),(0,H.jsx)(`option`,{value:`h3`,children:`H3`}),(0,H.jsx)(`option`,{value:`h4`,children:`H4`}),(0,H.jsx)(`option`,{value:`h5`,children:`H5`}),(0,H.jsx)(`option`,{value:`h6`,children:`H6`}),(0,H.jsx)(`option`,{value:`quote`,children:Z(r,`editor.quote`)}),(0,H.jsx)(`option`,{value:`code`,children:Z(r,`editor.code`)})]})]}),(0,H.jsx)(yD,{}),(0,H.jsx)(vD,{title:Z(r,`editor.bold`),onClick:()=>h(`**`,`**`,Z(r,`editor.selectedText`)),children:(0,H.jsx)(Ct,{className:`size-4`,"aria-hidden":!0})}),(0,H.jsx)(vD,{title:Z(r,`editor.italic`),onClick:()=>h(`_`,`_`,Z(r,`editor.selectedText`)),children:(0,H.jsx)(tn,{className:`size-4`,"aria-hidden":!0})}),(0,H.jsx)(vD,{title:Z(r,`editor.underline`),onClick:()=>h(`<u>`,`</u>`,Z(r,`editor.selectedText`)),children:(0,H.jsx)(Un,{className:`size-4`,"aria-hidden":!0})}),(0,H.jsx)(vD,{title:Z(r,`editor.strike`),onClick:()=>h(`~~`,`~~`,Z(r,`editor.selectedText`)),children:(0,H.jsx)(Pn,{className:`size-4`,"aria-hidden":!0})}),(0,H.jsx)(vD,{title:Z(r,`editor.inlineCode`),onClick:()=>h("`","`"),children:(0,H.jsx)(Lt,{className:`size-4`,"aria-hidden":!0})}),(0,H.jsx)(vD,{title:Z(r,`editor.textColor`),onClick:()=>h(`<span class="text-accent">`,`</span>`,Z(r,`editor.selectedText`)),children:(0,H.jsx)(St,{className:`size-4`,"aria-hidden":!0})}),(0,H.jsx)(vD,{title:Z(r,`editor.highlight`),onClick:()=>h(`<mark>`,`</mark>`,Z(r,`editor.selectedText`)),children:(0,H.jsx)(Yt,{className:`size-4`,"aria-hidden":!0})}),(0,H.jsx)(vD,{title:Z(r,`editor.palette`),onClick:()=>h(`<span class="brand-tone">`,`</span>`,Z(r,`editor.selectedText`)),children:(0,H.jsx)(xn,{className:`size-4`,"aria-hidden":!0})}),(0,H.jsx)(yD,{}),(0,H.jsx)(vD,{title:Z(r,`editor.alignLeft`),onClick:()=>g(`<p style="text-align:left"></p>`),children:(0,H.jsx)(zn,{className:`size-4`,"aria-hidden":!0})}),(0,H.jsx)(vD,{title:Z(r,`editor.alignCenter`),onClick:()=>g(`<p style="text-align:center"></p>`),children:(0,H.jsx)(Ln,{className:`size-4`,"aria-hidden":!0})}),(0,H.jsx)(vD,{title:Z(r,`editor.alignRight`),onClick:()=>g(`<p style="text-align:right"></p>`),children:(0,H.jsx)(Rn,{className:`size-4`,"aria-hidden":!0})}),(0,H.jsx)(vD,{title:Z(r,`editor.bulletList`),onClick:()=>g(`- `),children:(0,H.jsx)(pn,{className:`size-4`,"aria-hidden":!0})}),(0,H.jsx)(vD,{title:Z(r,`editor.numberList`),onClick:()=>g(`1. `),children:(0,H.jsx)(dn,{className:`size-4`,"aria-hidden":!0})}),(0,H.jsx)(vD,{title:Z(r,`editor.checkList`),onClick:()=>g(`- [ ] `),children:(0,H.jsx)(ln,{className:`size-4`,"aria-hidden":!0})}),(0,H.jsx)(vD,{title:Z(r,`editor.indent`),onClick:()=>h(` `,``,``),children:(0,H.jsx)(un,{className:`size-4`,"aria-hidden":!0})}),(0,H.jsx)(yD,{}),(0,H.jsx)(vD,{title:Z(r,`editor.link`),onClick:()=>h(`[`,`](https://)`,Z(r,`editor.linkText`)),children:(0,H.jsx)(cn,{className:`size-4`,"aria-hidden":!0})}),(0,H.jsx)(vD,{title:Z(r,`editor.table`),onClick:()=>g(`| | |
53
+ | --- | --- |
54
+ | | |`),children:(0,H.jsx)(In,{className:`size-4`,"aria-hidden":!0})}),(0,H.jsx)(vD,{title:Z(r,`editor.mediaLibrary`),onClick:()=>s(!0),children:(0,H.jsx)($t,{className:`size-4`,"aria-hidden":!0})}),(0,H.jsx)(vD,{title:Z(r,`editor.imageUrl`),onClick:()=>s(!0),children:(0,H.jsx)(Qt,{className:`size-4`,"aria-hidden":!0})}),(0,H.jsx)(vD,{title:Z(r,`editor.videoUrl`),onClick:()=>l(!0),children:(0,H.jsx)(Jn,{className:`size-4`,"aria-hidden":!0})})]}),(0,H.jsx)(eD,{ref:i,className:`${n?`min-h-32`:`min-h-64`} rounded-t-none border-t-0 resize-y font-mono`,value:e,onChange:e=>t(e.target.value)}),f?(0,H.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:f}):null,u?(0,H.jsx)(`p`,{className:`mt-2 text-xs text-muted-foreground`,children:Z(r,`editor.uploading`)}):null,o?(0,H.jsx)(bD,{language:r,onClose:()=>s(!1),onInsert:(e,t)=>{v(e,t),s(!1)}}):null,c?(0,H.jsx)(xD,{language:r,onClose:()=>l(!1),onInsert:y}):null]})}function vD({title:e,onClick:t,disabled:n,children:r}){return(0,H.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon-sm`,title:e,"aria-label":e,onClick:t,disabled:n,children:r})}function yD(){return(0,H.jsx)(dv,{orientation:`vertical`,className:`mx-1 h-5`,"aria-hidden":!0})}function bD({language:e,onClose:t,onInsert:n}){let[r,i]=V.useState(``),[a,o]=V.useState(``);return(0,H.jsx)(DS,{open:!0,onOpenChange:e=>{e||t()},children:(0,H.jsxs)(AS,{closeLabel:Z(e,`common.close`),children:[(0,H.jsxs)(jS,{children:[(0,H.jsx)(NS,{children:Z(e,`editor.insertImage`)}),(0,H.jsx)(PS,{className:`sr-only`,children:Z(e,`editor.mediaLibrary`)})]}),(0,H.jsxs)(`div`,{className:`grid gap-4`,children:[(0,H.jsxs)(`div`,{className:`grid gap-2`,children:[(0,H.jsx)(tD,{htmlFor:`rich-editor-image-url`,children:Z(e,`editor.imageUrl`)}),(0,H.jsx)(uv,{id:`rich-editor-image-url`,value:r,onChange:e=>i(e.target.value),placeholder:`https://...`})]}),(0,H.jsxs)(`div`,{className:`grid gap-2`,children:[(0,H.jsx)(tD,{htmlFor:`rich-editor-image-alt`,children:Z(e,`media.alt`)}),(0,H.jsx)(uv,{id:`rich-editor-image-alt`,value:a,onChange:e=>o(e.target.value)})]})]}),(0,H.jsx)(MS,{children:(0,H.jsxs)(Y,{type:`button`,disabled:!r.trim(),onClick:()=>n(r.trim(),a.trim()),children:[(0,H.jsx)(kt,{className:`size-4`,"aria-hidden":!0}),Z(e,`editor.insertImage`)]})})]})})}function xD({language:e,onClose:t,onInsert:n}){let[r,i]=V.useState(``);return(0,H.jsx)(DS,{open:!0,onOpenChange:e=>{e||t()},children:(0,H.jsxs)(AS,{closeLabel:Z(e,`common.close`),children:[(0,H.jsxs)(jS,{children:[(0,H.jsx)(NS,{children:Z(e,`editor.insertVideo`)}),(0,H.jsx)(PS,{className:`sr-only`,children:Z(e,`editor.videoUrl`)})]}),(0,H.jsxs)(`div`,{className:`grid gap-2`,children:[(0,H.jsx)(tD,{htmlFor:`rich-editor-video-url`,children:Z(e,`editor.videoUrl`)}),(0,H.jsx)(uv,{id:`rich-editor-video-url`,value:r,onChange:e=>i(e.target.value),placeholder:Z(e,`editor.videoUrl`)})]}),(0,H.jsx)(MS,{children:(0,H.jsxs)(Y,{type:`button`,disabled:!r.trim(),onClick:()=>n(r.trim()),children:[(0,H.jsx)(Jn,{className:`size-4`,"aria-hidden":!0}),Z(e,`editor.insertVideo`)]})})]})})}function SD(e,t){t?.focus(),document.execCommand(e)}function CD(e){let t=wD(e);if(!t)return`<a href="${OD(e)}">${DD(e)}</a>`;let n=TD(t);if(n)return`<iframe src="https://www.youtube.com/embed/${n}" title="YouTube" loading="lazy" allowfullscreen></iframe>`;let r=ED(t);return r?`<iframe src="https://www.dailymotion.com/embed/video/${r}" title="Dailymotion" loading="lazy" allowfullscreen></iframe>`:`<a href="${OD(t.toString())}">${DD(t.toString())}</a>`}function wD(e){try{return new URL(e)}catch{return null}}function TD(e){return e.hostname===`youtu.be`?e.pathname.split(`/`).filter(Boolean)[0]??null:e.hostname.includes(`youtube.com`)?e.pathname.startsWith(`/shorts/`)?e.pathname.split(`/`).filter(Boolean)[1]??null:e.searchParams.get(`v`):null}function ED(e){if(e.hostname===`dai.ly`)return e.pathname.split(`/`).filter(Boolean)[0]??null;if(!e.hostname.includes(`dailymotion.com`))return null;let t=e.pathname.split(`/`).filter(Boolean),n=t.indexOf(`video`);return n>=0?t[n+1]??null:null}function DD(e){return e.replace(/[&<>"']/g,e=>{switch(e){case`&`:return`&amp;`;case`<`:return`&lt;`;case`>`:return`&gt;`;case`"`:return`&quot;`;default:return`&#39;`}})}function OD(e){return DD(e).replace(/`/g,`&#96;`)}function kD(e,t){let[n,r]=V.useState([]),[i,a]=V.useState(),[o,s]=V.useState(!1),[c,l]=V.useState(null),u=t.resetOnPageChange?e:null;V.useEffect(()=>{r([]),a(void 0),l(null)},[t.resetKey,u]);let d=i===void 0?e?.next_cursor??null:i;return{items:V.useMemo(()=>[...e?.items??[],...n],[e,n]),nextCursor:d,isLoadingMore:o,loadMoreError:c,loadMore:V.useCallback(async()=>{if(d){s(!0),l(null);try{let e=await t.loadPage(d);r(t=>[...t,...e.items]),a(e.next_cursor)}catch(e){l(e)}finally{s(!1)}}},[d,t.loadPage])}}var AD=`https://developers.cloudflare.com/r2/get-started/workers-api/`,jD=`Enable Mantle media storage for this site using the runtime's supported storage adapter. If this is a Cloudflare deployment, follow node_modules/@aotter/mantle/docs/media-uploads.md: create and bind an R2 bucket, configure its S3 credentials and public URL, wire mediaStorage, validate, deploy, and verify /admin/media.`;function MD(){let{language:e}=X(),t=gy(),n=new URLSearchParams(t.search).get(`search`)?.trim()??``,r=it({queryKey:[`site`],queryFn:()=>ey.get(`/site`)}).data?.media?.purposes??[];return(0,H.jsxs)(`div`,{children:[(0,H.jsx)(Db,{eyebrow:Z(e,`nav.media`),title:Z(e,`media.title`),description:Z(e,`media.description`)}),(0,H.jsx)(ND,{language:e,purposes:r,searchTerm:n,emptyIcon:$t,showSearch:!0})]})}function ND({language:e,purposes:t,searchTerm:n,emptyIcon:r,onPick:i,showSearch:a=!1}){let o=Ue(),s=it({queryKey:[`media`,n],queryFn:()=>{let e=new URLSearchParams({limit:`60`});return n&&e.set(`search`,n),ey.get(`/media?${e.toString()}`)}}),c=V.useCallback(async e=>{let t=new URLSearchParams({limit:`60`,cursor:e});return n&&t.set(`search`,n),ey.get(`/media?${t.toString()}`)},[n]),l=kD(s.data,{resetKey:n,resetOnPageChange:!1,loadPage:c}),u=l.items,d=FD(s.error),[f,p]=V.useState(!1),[m,h]=V.useState(null),[g,_]=V.useState(!1),v=V.useRef(null),y=t.length>0&&!f,b=V.useCallback(()=>{o.invalidateQueries({queryKey:[`media`]})},[o]);async function x(n){let r=Array.from(n).filter(e=>e.type.startsWith(`image/`));if(r.length!==0){p(!0),h(null);try{let n=await Promise.allSettled(r.map(n=>nD({file:n,purposes:t,language:e}))),i=n.filter(e=>e.status===`fulfilled`).length,a=n.filter(e=>e.status===`rejected`);if(i>0&&b(),a.length>0){let t=a[0]?.reason,n=t instanceof Error?t.message:String(t);h(`${Z(e,`media.uploadFailed`,{count:String(a.length),total:String(r.length)})} ${n}`.trim())}}finally{p(!1),v.current&&(v.current.value=``)}}}return d?(0,H.jsx)(PD,{language:e}):(0,H.jsxs)(H.Fragment,{children:[a?(0,H.jsx)(LD,{searchTerm:n,language:e}):null,(0,H.jsxs)(`div`,{onDragOver:e=>{y&&(e.preventDefault(),_(!0))},onDragLeave:()=>_(!1),onDrop:e=>{y&&(e.preventDefault(),_(!1),x(e.dataTransfer.files))},className:J(`rounded-xl border border-dashed p-4 transition-colors`,g?`border-primary bg-accent/40`:`border-transparent`),children:[(0,H.jsxs)(`div`,{className:`mb-4 flex flex-wrap items-center gap-2`,children:[(0,H.jsxs)(Y,{type:`button`,variant:`default`,onClick:()=>v.current?.click(),disabled:!y,title:t.length===0?Z(e,`media.noPurpose`):void 0,children:[(0,H.jsx)(Gn,{className:`size-4`,"aria-hidden":!0}),f?Z(e,`media.uploading`):Z(e,`media.upload`)]}),(0,H.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:Z(e,`media.dropHere`)}),(0,H.jsx)(`input`,{ref:v,type:`file`,accept:`image/*`,multiple:!0,className:`hidden`,onChange:e=>{e.currentTarget.files&&x(e.currentTarget.files)}})]}),m?(0,H.jsx)(`p`,{className:`mb-3 text-xs text-destructive`,children:m}):null,s.isError?(0,H.jsx)(jb,{error:s.error}):null,s.isLoading?(0,H.jsx)(RD,{}):u.length===0?(0,H.jsx)(Ab,{icon:r,title:Z(e,`media.empty.title`),description:n?Z(e,`media.empty.search`,{search:n}):Z(e,`media.empty.all`)}):(0,H.jsx)(`div`,{className:`grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4`,children:u.map(t=>(0,H.jsx)(ID,{item:t,language:e,onChanged:b,onPick:i},t.id))}),l.loadMoreError?(0,H.jsx)(jb,{error:l.loadMoreError}):null,l.nextCursor?(0,H.jsx)(`div`,{className:`mt-4`,children:(0,H.jsx)(Y,{type:`button`,variant:`secondary`,onClick:()=>void l.loadMore(),disabled:l.isLoadingMore,children:l.isLoadingMore?Z(e,`media.saving`):Z(e,`media.loadMore`)})}):null]})]})}function PD({language:e}){let[t,n]=V.useState(!1);async function r(){try{await navigator.clipboard.writeText(jD),n(!0),window.setTimeout(()=>n(!1),1400)}catch{n(!1)}}return(0,H.jsx)(Ab,{icon:$t,title:Z(e,`media.setup.title`),description:(0,H.jsxs)(H.Fragment,{children:[Z(e,`media.setup.body`),(0,H.jsx)(`span`,{className:`mt-2 block`,children:Z(e,`media.setup.cloudflare`)})]}),action:(0,H.jsxs)(`div`,{className:`flex flex-wrap justify-center gap-2`,children:[(0,H.jsxs)(Y,{type:`button`,onClick:()=>void r(),children:[t?(0,H.jsx)(kt,{"aria-hidden":!0}):(0,H.jsx)(zt,{"aria-hidden":!0}),Z(e,t?`media.setup.copied`:`media.setup.copy`)]}),(0,H.jsx)(Y,{asChild:!0,variant:`outline`,children:(0,H.jsxs)(`a`,{href:AD,target:`_blank`,rel:`noreferrer`,children:[(0,H.jsx)(Wt,{"aria-hidden":!0}),Z(e,`media.setup.guide`)]})})]})})}function FD(e){return!(e instanceof Qv)||e.status!==501?!1:e.body?.diagnostic?.code===`MEDIA_NOT_CONFIGURED`}function ID({item:e,language:t,onChanged:n,onPick:r}){let[i,a]=V.useState(e.alt??``),[o,s]=V.useState(e.caption??``),[c,l]=V.useState(!1),u=i!==(e.alt??``)||o!==(e.caption??``),d=at({mutationFn:()=>ey.patch(`/media/${encodeURIComponent(e.id)}`,{alt:i,caption:o}),onSuccess:n}),f=at({mutationFn:()=>ey.delete(`/media/${encodeURIComponent(e.id)}`),onSuccess:n}),p=Ix();async function m(){await p({description:Z(t,`media.deleteConfirm`)})&&f.mutate()}async function h(){try{await navigator.clipboard.writeText(e.id),l(!0),window.setTimeout(()=>l(!1),1400)}catch{l(!1)}}return(0,H.jsxs)(`div`,{className:`flex flex-col overflow-hidden rounded-lg border bg-card`,children:[(0,H.jsxs)(`div`,{className:`relative aspect-square bg-muted/40`,children:[e.primaryUrl?(0,H.jsx)(`img`,{src:e.primaryUrl,alt:e.alt??``,loading:`lazy`,className:`size-full object-cover`}):(0,H.jsx)(`div`,{className:`flex size-full items-center justify-center text-muted-foreground`,children:(0,H.jsx)($t,{className:`size-6`,"aria-hidden":!0})}),r?(0,H.jsx)(`button`,{type:`button`,className:`absolute inset-0 flex items-end justify-center bg-black/0 p-2 opacity-0 transition hover:bg-black/40 hover:opacity-100`,onClick:()=>r(e),children:(0,H.jsx)(`span`,{className:`rounded-md bg-primary px-3 py-1 text-xs font-semibold text-primary-foreground`,children:Z(t,`media.use`)})}):null]}),(0,H.jsxs)(`div`,{className:`flex flex-1 flex-col gap-2 p-3`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between gap-2 text-xs text-muted-foreground`,children:[(0,H.jsxs)(`button`,{type:`button`,className:`group inline-flex items-center gap-1 font-mono hover:text-foreground`,title:Z(t,`media.copyId`),onClick:()=>void h(),children:[e.id.slice(0,8),c?(0,H.jsx)(kt,{className:`size-3 text-[color:var(--success)]`,"aria-hidden":!0}):(0,H.jsx)(zt,{className:`size-3 opacity-40 transition-opacity group-hover:opacity-80`,"aria-hidden":!0})]}),(0,H.jsx)(`span`,{children:zD(e.byteSize)})]}),r?null:(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(uv,{value:i,placeholder:Z(t,`media.altPlaceholder`),"aria-label":Z(t,`media.alt`),onChange:e=>a(e.target.value)}),(0,H.jsx)(uv,{value:o,placeholder:Z(t,`media.captionPlaceholder`),"aria-label":Z(t,`media.caption`),onChange:e=>s(e.target.value)}),(0,H.jsxs)(`div`,{className:`mt-1 flex items-center justify-between gap-2`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-1`,children:[e.primaryUrl?(0,H.jsx)(Y,{asChild:!0,variant:`ghost`,size:`icon-sm`,children:(0,H.jsx)(`a`,{href:e.primaryUrl,target:`_blank`,rel:`noreferrer`,title:Z(t,`media.open`),"aria-label":Z(t,`media.open`),children:(0,H.jsx)(Wt,{className:`size-3.5`,"aria-hidden":!0})})}):null,(0,H.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon-sm`,title:Z(t,`media.delete`),"aria-label":Z(t,`media.delete`),disabled:f.isPending,onClick:()=>void m(),children:(0,H.jsx)(Bn,{className:`size-3.5`,"aria-hidden":!0})})]}),(0,H.jsx)(Y,{type:`button`,size:`sm`,variant:`secondary`,disabled:!u||d.isPending,onClick:()=>d.mutate(),children:d.isPending?Z(t,`media.saving`):d.isSuccess&&!u?Z(t,`media.saved`):Z(t,`media.save`)})]}),d.isError?(0,H.jsx)(jb,{error:d.error}):null,f.isError?(0,H.jsx)(jb,{error:f.error}):null]}),(0,H.jsx)(`p`,{className:`text-[11px] text-muted-foreground`,children:Z(t,`media.uploaded`,{date:Gx(e.createdAt)??`-`})})]})]})}function LD({searchTerm:e,language:t}){let{navigate:n}=hy(),[r,i]=V.useState(e);return V.useEffect(()=>i(e),[e]),(0,H.jsx)(`form`,{className:`mb-4 max-w-xl`,role:`search`,onSubmit:e=>{e.preventDefault();let t=r.trim(),i=new URLSearchParams;t&&i.set(`search`,t);let a=i.toString();n(`/admin/media${a?`?${a}`:``}`)},children:(0,H.jsxs)(`label`,{className:`relative block`,children:[(0,H.jsx)(An,{className:`pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground`,"aria-hidden":!0}),(0,H.jsx)(uv,{className:`pl-9`,value:r,onChange:e=>i(e.target.value),placeholder:Z(t,`media.searchPlaceholder`)})]})})}function RD(){return(0,H.jsx)(`div`,{className:`grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4`,children:[0,1,2,3,4,5,6,7].map(e=>(0,H.jsxs)(`div`,{className:`overflow-hidden rounded-lg border`,children:[(0,H.jsx)(bv,{className:`aspect-square rounded-none`}),(0,H.jsxs)(`div`,{className:`space-y-2 p-3`,children:[(0,H.jsx)(bv,{className:`h-3 w-1/2`}),(0,H.jsx)(bv,{className:`h-8`})]})]},e))})}function zD(e){return e==null||!Number.isFinite(e)?``:e<1024?`${e} B`:e<1048576?`${Math.round(e/1024)} KB`:`${(e/1048576).toFixed(1)} MB`}function BD({locale:e}){return e?(0,H.jsxs)(ox,{variant:`outline`,title:e,children:[(0,H.jsx)(Jt,{"aria-hidden":!0}),VD(e),(0,H.jsx)(`span`,{className:`font-mono text-[0.625rem] text-muted-foreground`,children:e})]}):(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})}function VD(e){try{return new Intl.DisplayNames([e],{type:`language`}).of(e)??e}catch{return e}}function HD({locales:e,available:t,language:n}){let[r,i]=V.useState(!1);if(e.length===0)return null;let a=new Set(t),[o,s]=GD(e),c=s.every(e=>a.has(e));return(0,H.jsxs)(`div`,{className:`flex flex-wrap gap-1`,children:[o.map(e=>(0,H.jsx)(UD,{locale:e,available:a.has(e),language:n,showTooltip:!r},e)),s.length>0?(0,H.jsxs)(WE,{open:r,onOpenChange:i,children:[(0,H.jsx)(GE,{asChild:!0,children:(0,H.jsx)(ox,{asChild:!0,variant:c?`secondary`:`outline`,className:c?void 0:`border-dashed text-muted-foreground opacity-60`,children:(0,H.jsxs)(`button`,{type:`button`,"aria-label":Z(n,`collection.moreLanguages`,{count:String(s.length)}),children:[c?(0,H.jsx)(kt,{className:`text-[color:var(--success)]`,"aria-hidden":!0}):null,`…`,Z(n,`collection.moreLanguages`,{count:String(s.length)})]})})}),(0,H.jsx)(KE,{align:`end`,className:`w-56 max-w-[calc(100vw-2rem)] p-1.5`,children:(0,H.jsx)(`ul`,{className:`grid gap-0.5`,children:s.map(e=>{let t=a.has(e),r=WD(e,t,n);return(0,H.jsxs)(`li`,{"aria-label":r,className:t?`flex items-center gap-2 rounded-md px-2 py-1.5 text-xs`:`flex items-center gap-2 rounded-md px-2 py-1.5 text-xs text-muted-foreground opacity-60`,children:[t?(0,H.jsx)(kt,{className:`size-3 text-[color:var(--success)]`,"aria-hidden":!0}):(0,H.jsx)(`span`,{className:`size-3`,"aria-hidden":!0}),(0,H.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:VD(e)}),(0,H.jsx)(`span`,{className:`font-mono text-[0.625rem] text-muted-foreground`,children:e})]},e)})})})]}):null]})}function UD({locale:e,available:t,language:n,showTooltip:r=!0}){let i=WD(e,t,n),a=(0,H.jsxs)(ox,{variant:t?`secondary`:`outline`,className:t?void 0:`border-dashed text-muted-foreground opacity-60`,"aria-label":i,children:[t?(0,H.jsx)(kt,{className:`text-[color:var(--success)]`,"aria-hidden":!0}):null,e]});return r?(0,H.jsxs)(Sv,{children:[(0,H.jsx)(Cv,{asChild:!0,children:a}),(0,H.jsx)(wv,{className:`bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 [&>svg]:fill-popover!`,children:i})]}):a}function WD(e,t,n){return Z(n,t?`collection.availableLanguage`:`collection.missingLanguage`,{language:VD(e),locale:e})}function GD(e){return e.length<=3?[[...e],[]]:[e.slice(0,2),e.slice(2)]}function KD(e,t,n=``){let r=e?.properties?.locale?.enum?.filter(e=>typeof e==`string`)??[];return[...new Set([...t??[],...r,...n?[n]:[]])]}function qD({collectionName:e,entryId:t}){let{language:n}=X(),r=Ue(),i=V.useMemo(()=>[`entry-editor`,e,t],[e,t]),a=it({queryKey:i,queryFn:()=>ey.get(`/entries/${encodeURIComponent(t)}`)}),o=it({queryKey:[`site`],queryFn:()=>ey.get(`/site`)}),s=it({queryKey:[`me`],queryFn:()=>ey.get(`/me`),retry:!1}),c=it(ly()),l=V.useMemo(()=>EO(c.data,e),[c.data,e]),[u,d]=V.useState(null),[f,p]=V.useState(!1);V.useEffect(()=>p(!1),[e,t]),V.useEffect(()=>{a.data&&d(a.data.entry.data)},[a.data]);let m=V.useCallback(e=>{d(e.entry.data),r.setQueryData(i,e)},[r,i]),h=at({mutationFn:e=>ey.patch(`/entries/${encodeURIComponent(t)}`,{data:e,expectedVersion:a.data?.entry.version}),onSuccess:m}),g=at({mutationFn:()=>ey.post(`/entries/${encodeURIComponent(t)}/publish`,{}),onSuccess:m}),_=at({mutationFn:()=>ey.post(`/entries/${encodeURIComponent(t)}/unpublish`,{}),onSuccess:m}),v=at({mutationFn:({section:e,locale:t})=>ey.post(`/entries`,{collection:e.collection.name,data:{[e.relationship.childField]:e.relationship.parentValue,locale:t}}),onSuccess:e=>{window.location.href=`/admin/c/${encodeURIComponent(e.entry.collection)}/${encodeURIComponent(e.entry.id)}`}});if(a.isLoading)return(0,H.jsx)(JD,{});if(a.isError)return(0,H.jsx)(jb,{error:a.error});if(!a.data||!u)return(0,H.jsx)(jb,{error:Error(Z(n,`common.unknownError`))});let y=a.data,b=o.data?.canonicalLocale??null,x=fO(u,Z(n,`collection.untitled`),y.collection,y.entry.id),S=ny(y.collection.title,n,b)??y.collection.name,C=y.collection.translates?.parent??e,w=y.collection.translates?.parent??S,T=ny(y.collection.description,n,b),E=JSON.stringify(u)!==JSON.stringify(y.entry.data),D=y.collection.lifecycle===`operational`,O=y.collection.schema.readOnly===!0,k=y.entry.status===`draft`,A=pO(u,y.collection.schema),j=s.data?.role===`owner`||s.data?.role===`editor`,M=$D({role:s.data?.role,isReadOnly:O,isOperational:D,isDraft:k,operationalEditUnlocked:f}),N=M&&E&&(k||D),P=h.isPending||g.isPending||_.isPending,F=o.data?.media?.purposes??[],I=uO(y.collection,u,y.parentEntryId),L=y.related.filter(e=>e.relationship.kind===`translation`),ee=y.related.filter(dO),te=typeof u.locale==`string`?u.locale:``,ne=KD(y.collection.schema,o.data?.locales,te),R=QD(y.collection);return(0,H.jsxs)(`div`,{className:`flex min-h-full flex-col gap-6`,children:[(0,H.jsx)(Db,{eyebrow:(0,H.jsxs)(`span`,{className:`inline-flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,H.jsxs)(`a`,{href:`/admin/c/${encodeURIComponent(C)}`,className:`inline-flex items-center gap-2 hover:underline`,children:[(0,H.jsx)(_t,{className:`size-3.5`,"aria-hidden":!0}),Z(n,`entryEdit.back`,{name:w})]}),I?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`span`,{className:`text-foreground/30`,children:`/`}),(0,H.jsx)(`a`,{href:I.href,className:`hover:underline`,children:Z(n,`entryEdit.parent`,{name:I.label})})]}):null]}),title:x,description:Z(n,`entryEdit.body`,{name:S}),actions:(0,H.jsxs)(H.Fragment,{children:[y.collection.localized&&!y.collection.translates?(0,H.jsx)(lO,{language:n,locale:te,locales:ne,disabled:!M||y.entry.locale!==null,onChange:e=>d({...u,locale:e})}):null,!D&&(0,H.jsx)(zx,{status:y.entry.status}),(0,H.jsx)(AO,{row:y.entry,operations:l,language:n,canonical:b,onSuccess:()=>void r.invalidateQueries({queryKey:i}),trigger:(0,H.jsxs)(Y,{type:`button`,variant:`secondary`,children:[(0,H.jsx)(Ut,{className:`size-4`,"aria-hidden":!0}),Z(n,`rowActions.menuLabel`)]})})]})}),L.map(e=>(0,H.jsx)(cO,{section:e,currentCollection:y.collection.name,currentEntryId:y.entry.id,sharedHref:I?.href,language:n,siteLocales:o.data?.locales,canCreate:!!s.data?.role,pending:v.isPending&&v.variables?.section.collection.name===e.collection.name,onCreate:t=>v.mutate({section:e,locale:t})},`${e.collection.name}:${e.relationship.childField}`)),O?(0,H.jsx)(`p`,{className:`-mt-4 text-sm text-muted-foreground`,children:Z(n,`entryEdit.readOnlyHint`)}):D?(0,H.jsxs)(`div`,{className:`-mt-4 flex flex-wrap items-center gap-3 text-sm text-muted-foreground`,children:[(0,H.jsx)(`p`,{children:Z(n,`entryEdit.operationalHint`)}),j&&!f?(0,H.jsxs)(Y,{type:`button`,variant:`outline`,size:`sm`,onClick:()=>p(!0),children:[(0,H.jsx)(hn,{className:`size-4`,"aria-hidden":!0}),Z(n,`entryEdit.unlockOperational`)]}):null]}):null,h.isError?(0,H.jsx)(Mb,{error:h.error}):null,g.isError?(0,H.jsx)(Mb,{error:g.error}):null,_.isError?(0,H.jsx)(Mb,{error:_.error}):null,v.isError?(0,H.jsx)(Mb,{error:v.error}):null,(0,H.jsxs)(`div`,{className:`grid gap-5 lg:grid-cols-[minmax(0,1fr)_22rem]`,children:[(0,H.jsxs)(`div`,{className:`space-y-5`,children:[(0,H.jsxs)(Ob,{children:[(0,H.jsx)(YD,{title:Z(n,`entryEdit.fields`),body:T?(0,H.jsx)(Pb,{description:T,summaryLabel:Z(n,`collection.schemaDetails`),collapsedIntro:Z(n,UO(y.collection),{name:S})}):void 0}),(0,H.jsx)(`fieldset`,{disabled:!M,className:M?void 0:`pointer-events-none opacity-70`,children:(0,H.jsx)(ZD,{schema:y.collection.schema,uiSchema:y.collection.uiSchema,value:u,path:[],onChange:d,language:n,canonical:b,collectionName:y.collection.name,mediaPurposes:F,hiddenRootFields:R})})]}),ee.length>0?(0,H.jsx)(sO,{sections:ee,language:n,canonical:b,operations:c.data,onOperationSuccess:()=>void r.invalidateQueries({queryKey:i})}):null]}),(0,H.jsx)(`div`,{className:`space-y-4`,children:(0,H.jsxs)(Ob,{children:[(0,H.jsx)(YD,{title:Z(n,`entryEdit.meta`),body:`${y.entry.collection} / ${y.entry.id}`}),(0,H.jsxs)(`dl`,{className:`space-y-3 text-sm`,children:[!D&&(0,H.jsx)(XD,{label:Z(n,`collection.table.status`),value:(0,H.jsx)(zx,{status:y.entry.status})}),(0,H.jsx)(XD,{label:Z(n,`collection.table.version`),value:`v${y.entry.version}`})]})]})})]}),M||j&&!D?(0,H.jsxs)(kb,{status:h.isPending?Z(n,`crud.saving`):g.isPending?Z(n,`entryEdit.publishing`):_.isPending?Z(n,`entryEdit.unpublishing`):E?Z(n,`common.unsavedChanges`):k&&!D&&A?Z(n,`entryEdit.publishMissingRequired`):h.isSuccess?Z(n,`common.saved`):void 0,children:[j&&!D&&(k?(0,H.jsxs)(Y,{type:`button`,variant:`secondary`,onClick:()=>g.mutate(),disabled:P||E||A,title:E?Z(n,`entryEdit.publishDisabledDirty`):A?Z(n,`entryEdit.publishMissingRequired`):Z(n,`entryEdit.publishTooltip`),children:[(0,H.jsx)(jn,{className:`size-4`,"aria-hidden":!0}),g.isPending?Z(n,`entryEdit.publishing`):Z(n,`entryEdit.publish`)]}):(0,H.jsxs)(Y,{type:`button`,variant:`secondary`,onClick:()=>_.mutate(),disabled:P,title:Z(n,`entryEdit.unpublishTooltip`),children:[(0,H.jsx)(On,{className:`size-4`,"aria-hidden":!0}),_.isPending?Z(n,`entryEdit.unpublishing`):Z(n,`entryEdit.unpublish`)]})),M?(0,H.jsxs)(Y,{type:`button`,onClick:()=>h.mutate(u),disabled:P||!N,title:Z(n,`entryEdit.saveTooltip`),children:[(0,H.jsx)(kn,{className:`size-4`,"aria-hidden":!0}),h.isPending?Z(n,`crud.saving`):Z(n,`entryEdit.save`)]}):null]}):null]})}function JD(){return(0,H.jsxs)(`div`,{className:`flex min-h-full flex-col gap-6`,"aria-busy":`true`,children:[(0,H.jsxs)(`div`,{className:`space-y-2`,"aria-hidden":!0,children:[(0,H.jsx)(bv,{className:`h-4 w-32`}),(0,H.jsx)(bv,{className:`h-8 w-56 max-w-full`}),(0,H.jsx)(bv,{className:`h-4 w-80 max-w-full`})]}),(0,H.jsxs)(`div`,{className:`grid gap-5 lg:grid-cols-[minmax(0,1fr)_22rem]`,"aria-hidden":!0,children:[(0,H.jsxs)(Ob,{children:[(0,H.jsxs)(`div`,{className:`mb-6 space-y-2`,children:[(0,H.jsx)(bv,{className:`h-6 w-28`}),(0,H.jsx)(bv,{className:`h-4 w-2/3`})]}),(0,H.jsx)(`div`,{className:`space-y-5`,children:[`w-24`,`w-36`,`w-20`,`w-32`,`w-24`].map((e,t)=>(0,H.jsxs)(`div`,{className:`space-y-2`,children:[(0,H.jsx)(bv,{className:`h-4 ${e}`}),(0,H.jsx)(bv,{className:t===2?`h-24 w-full`:`h-9 w-full`})]},t))})]}),(0,H.jsxs)(Ob,{className:`h-fit`,children:[(0,H.jsxs)(`div`,{className:`mb-5 space-y-2`,children:[(0,H.jsx)(bv,{className:`h-6 w-24`}),(0,H.jsx)(bv,{className:`h-4 w-48 max-w-full`})]}),(0,H.jsx)(`div`,{className:`space-y-4`,children:[`w-20`,`w-28`,`w-24`].map((e,t)=>(0,H.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,H.jsx)(bv,{className:`h-4 ${e}`}),(0,H.jsx)(bv,{className:`h-4 w-16`})]},t))})]})]}),(0,H.jsx)(kb,{status:(0,H.jsx)(bv,{className:`h-4 w-28`}),children:(0,H.jsx)(bv,{className:`h-9 w-24`})})]})}function YD({title:e,body:t}){return(0,H.jsxs)(`div`,{className:`mb-4`,children:[(0,H.jsx)(`h2`,{className:`text-lg font-semibold`,children:e}),t?(0,H.jsx)(`div`,{className:`mt-1 text-sm leading-6 text-muted-foreground`,children:t}):null]})}function XD({label:e,value:t}){return(0,H.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,H.jsx)(`dt`,{className:`text-muted-foreground`,children:e}),(0,H.jsx)(`dd`,{className:`min-w-0 text-right font-medium`,children:t})]})}function ZD({schema:e,uiSchema:t=null,value:n,path:r,onChange:i,language:a,canonical:o=null,collectionName:s,mediaPurposes:c,hiddenRootFields:l=[]}){let u=e.properties??{},d=new Set(e.required??[]);return(0,H.jsx)(`div`,{className:`space-y-5`,children:Object.entries(u).filter(([e])=>r.length>0||!l.includes(e)).map(([e,l])=>(0,H.jsx)(eO,{name:e,schema:l,widget:r.length===0?gO(t,e):null,required:d.has(e),value:SO(n,[...r,e]),path:[...r,e],rootValue:n,onChange:i,language:a,canonical:o,collectionName:s,mediaPurposes:c},[...r,e].join(`.`)))})}function QD(e){return[...e.localized?[`locale`]:[],...e.translates?[e.translates.on]:[]]}function $D({role:e,isReadOnly:t,isOperational:n,isDraft:r,operationalEditUnlocked:i}){return t?!1:e===`owner`||e===`editor`?!n||i:e===`contributor`&&!n&&r}function eO({name:e,schema:t,widget:n,required:r,value:i,path:a,rootValue:o,onChange:s,language:c,canonical:l=null,collectionName:u,mediaPurposes:d}){let f=mO(t),p=iy(e,t,c,l),m=ay(t,c,l),h=e=>s(CO(o,a,e)),g=vO(t);return(0,H.jsxs)(`div`,{className:`space-y-2`,children:[(0,H.jsxs)(`label`,{className:`flex items-center gap-1.5 text-sm font-semibold text-foreground`,children:[p,r&&!g?(0,H.jsx)(`span`,{className:`text-destructive`,children:`*`}):null]}),m?(0,H.jsx)(`p`,{className:`text-xs leading-5 text-muted-foreground`,children:m}):null,g?(0,H.jsxs)(`p`,{role:`textbox`,"aria-readonly":`true`,className:`flex min-h-9 cursor-not-allowed items-center justify-between gap-3 rounded-lg border border-transparent bg-muted px-3 py-2 text-sm text-muted-foreground`,children:[(0,H.jsx)(`span`,{children:(Ux(t)?Gx(i):yO(i))||Z(c,`entryEdit.emptyOption`)}),(0,H.jsx)(hn,{className:`size-4 shrink-0`,"aria-hidden":`true`})]}):t.enum?(0,H.jsxs)(qE,{value:yO(i)||`__empty__`,onValueChange:e=>h(e===`__empty__`?``:e),children:[(0,H.jsx)(YE,{className:`w-full`,"aria-label":p,children:(0,H.jsx)(JE,{})}),(0,H.jsxs)(XE,{children:[(0,H.jsx)(ZE,{value:`__empty__`,children:Z(c,`entryEdit.emptyOption`)}),t.enum.map(e=>(0,H.jsx)(ZE,{value:String(e),children:String(e)},String(e)))]})]}):f===`boolean`?(0,H.jsxs)(`label`,{className:`inline-flex items-center gap-2 text-sm text-muted-foreground`,children:[(0,H.jsx)(dx,{checked:!!i,onCheckedChange:e=>h(e===!0)}),Z(c,`entryEdit.boolean`)]}):f===`number`||f===`integer`?(0,H.jsxs)(`div`,{className:`space-y-1`,children:[Ux(t)?(0,H.jsx)(tO,{label:p,language:c,value:i,onChange:e=>h(e?.getTime()??null)}):(0,H.jsx)(uv,{type:`number`,"aria-label":p,value:bO(i),min:t.minimum,max:t.maximum,onChange:e=>{let t=e.target.value;h(t===``?null:Number(t))}}),(0,H.jsx)(nO,{schema:t,value:i,rootValue:o})]}):f===`object`?(0,H.jsx)(`div`,{className:`rounded-lg border bg-muted/20 p-4`,children:t.properties?(0,H.jsx)(ZD,{schema:t,value:o,path:a,onChange:s,language:c,canonical:l,collectionName:u,mediaPurposes:d}):(0,H.jsx)(oO,{value:i,onChange:h})}):_O(t)?(0,H.jsx)(iO,{value:i,path:a,collectionName:u,mediaPurposes:d,language:c,onChange:h}):f===`array`?(0,H.jsx)(rO,{schema:t,value:Array.isArray(i)?i:[],path:a,rootValue:o,onChange:s,language:c,canonical:l,collectionName:u,mediaPurposes:d}):hO(t,n)===`richtext`?(0,H.jsx)(_D,{compact:!0,value:yO(i),onChange:h}):hO(t,n)===`textarea`?(0,H.jsx)(eD,{"aria-label":p,className:`min-h-24`,value:yO(i),maxLength:t.maxLength,onChange:e=>h(e.target.value)}):t.format===`date-time`?(0,H.jsx)(tO,{label:p,language:c,value:i,onChange:e=>h(e?.toISOString()??``)}):(0,H.jsx)(uv,{type:`text`,"aria-label":p,value:yO(i),onChange:e=>h(e.target.value)})]})}function tO({label:e,language:t,value:n,onChange:r}){let i=Kx(n),a=V.useId();return(0,H.jsxs)(WE,{children:[(0,H.jsx)(GE,{asChild:!0,children:(0,H.jsxs)(Y,{type:`button`,variant:`outline`,className:`w-full justify-start font-normal`,"aria-label":e,children:[(0,H.jsx)(Dt,{}),i?Gx(i.getTime()):Z(t,`entryEdit.dateTime.select`)]})}),(0,H.jsxs)(KE,{className:`w-auto p-0`,align:`start`,children:[(0,H.jsx)(HE,{mode:`single`,selected:i,defaultMonth:i,onSelect:e=>{if(!e)return;let t=new Date(e);t.setHours(i?.getHours()??0,i?.getMinutes()??0,0,0),r(t)}}),(0,H.jsxs)(`div`,{className:`flex items-center gap-3 border-t p-3`,children:[(0,H.jsx)(`label`,{className:`text-sm font-medium`,htmlFor:a,children:Z(t,`entryEdit.dateTime.time`)}),(0,H.jsx)(uv,{id:a,type:`time`,className:`w-32`,disabled:!i,value:i?`${String(i.getHours()).padStart(2,`0`)}:${String(i.getMinutes()).padStart(2,`0`)}`:``,onChange:e=>{if(!i)return;let[t,n]=e.target.value.split(`:`).map(Number),a=new Date(i);a.setHours(t,n,0,0),r(a)}})]})]})]})}function nO({schema:e,value:t,rootValue:n}){if(Hx(e)){let e=Wx(t,n.currency);return e?(0,H.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`= `,e]}):null}if(Ux(e)){let e=Gx(t);return e?(0,H.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`= `,e]}):null}return null}function rO({schema:e,value:t,path:n,rootValue:r,onChange:i,language:a,canonical:o=null,collectionName:s,mediaPurposes:c}){let l=e.items??{},u=e=>i(CO(r,n,e));return(0,H.jsxs)(`div`,{className:`space-y-3 rounded-lg border bg-muted/20 p-3`,children:[t.map((e,d)=>(0,H.jsxs)(`div`,{className:`rounded-lg border border-border/70 bg-card/50 p-3`,children:[(0,H.jsxs)(`div`,{className:`mb-3 flex items-center justify-between gap-2`,children:[(0,H.jsxs)(`span`,{className:`text-xs font-semibold text-muted-foreground`,children:[`#`,d+1]}),(0,H.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon-sm`,title:Z(a,`entryEdit.removeItem`),"aria-label":Z(a,`entryEdit.removeItem`),onClick:()=>u(t.filter((e,t)=>t!==d)),children:(0,H.jsx)(Bn,{className:`size-3.5`,"aria-hidden":!0})})]}),mO(l)===`object`&&l.properties?(0,H.jsx)(ZD,{schema:l,value:r,path:[...n,String(d)],onChange:i,language:a,canonical:o,collectionName:s,mediaPurposes:c}):(0,H.jsx)(uv,{value:yO(e),onChange:e=>{let n=[...t];n[d]=e.target.value,u(n)}})]},d)),(0,H.jsxs)(Y,{type:`button`,variant:`secondary`,size:`sm`,onClick:()=>u([...t,xO(l)]),children:[(0,H.jsx)(En,{className:`size-3.5`,"aria-hidden":!0}),Z(a,`entryEdit.addItem`)]})]})}function iO({value:e,path:t,collectionName:n,mediaPurposes:r,language:i,onChange:a}){let o=V.useRef(null),[s,c]=V.useState(!1),[l,u]=V.useState(null),[d,f]=V.useState(null),[p,m]=V.useState(!1),h=iD(r,n,t),g=typeof e==`string`?e:``,_=it({queryKey:[`media-asset`,g],queryFn:()=>ey.get(`/media/${encodeURIComponent(g)}`),enabled:g.length>0,retry:!1});async function v(e){c(!0),u(null);try{let t=await nD({file:e,purposes:r,preferredPurpose:h,language:i});a(t.id),f(aD(t))}catch(e){u(e instanceof Error?e.message:String(e))}finally{c(!1),o.current&&(o.current.value=``)}}return(0,H.jsxs)(`div`,{className:`space-y-2`,children:[(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,H.jsx)(aO,{assetId:g,asset:_.data,isError:_.isError,language:i}),(0,H.jsx)(uv,{className:`min-w-0 flex-1`,value:yO(e),onChange:e=>a(e.target.value)}),(0,H.jsxs)(Y,{type:`button`,variant:`secondary`,onClick:()=>m(!0),children:[(0,H.jsx)($t,{className:`size-4`,"aria-hidden":!0}),Z(i,`media.pick`)]}),(0,H.jsxs)(Y,{type:`button`,variant:`secondary`,onClick:()=>o.current?.click(),disabled:s||r.length===0,title:h??Z(i,`entryEdit.noMediaPurpose`),children:[(0,H.jsx)(Zt,{className:`size-4`,"aria-hidden":!0}),s?Z(i,`entryEdit.uploadingMedia`):Z(i,`entryEdit.uploadMedia`)]})]}),(0,H.jsx)(`input`,{ref:o,type:`file`,accept:`image/*`,className:`hidden`,onChange:e=>{let t=e.currentTarget.files?.[0];t&&v(t)}}),h?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:h}):null,d?(0,H.jsx)(`a`,{className:`text-xs text-primary hover:underline`,href:d,target:`_blank`,rel:`noreferrer`,children:d}):null,l?(0,H.jsx)(`p`,{className:`text-xs text-destructive`,children:l}):null,(0,H.jsx)(DS,{open:p,onOpenChange:m,children:(0,H.jsxs)(AS,{closeLabel:Z(i,`common.close`),className:`max-h-[85vh] w-full max-w-3xl overflow-y-auto`,children:[(0,H.jsxs)(jS,{children:[(0,H.jsx)(NS,{children:Z(i,`media.pickTitle`)}),(0,H.jsx)(PS,{children:Z(i,`media.pickDescription`)})]}),(0,H.jsx)(ND,{language:i,purposes:r,searchTerm:``,emptyIcon:$t,onPick:e=>{a(e.id),f(e.primaryUrl),m(!1)}})]})})]})}function aO({assetId:e,asset:t,isError:n,language:r}){return e?(0,H.jsx)(`div`,{className:`flex size-9 shrink-0 items-center justify-center overflow-hidden rounded-md border bg-muted/40`,title:n?Z(r,`entryEdit.mediaMissing`):e,children:t?.primaryUrl?(0,H.jsx)(`img`,{src:t.primaryUrl,alt:``,className:`size-full object-cover`}):(0,H.jsx)($t,{className:`size-4 text-muted-foreground`,"aria-hidden":!0})}):null}function oO({value:e,onChange:t}){let[n,r]=V.useState(JSON.stringify(e??{},null,2)),[i,a]=V.useState(null);return V.useEffect(()=>{r(JSON.stringify(e??{},null,2))},[e]),(0,H.jsxs)(`div`,{className:`space-y-2`,children:[(0,H.jsx)(eD,{className:`min-h-32 font-mono`,value:n,onChange:e=>{let n=e.target.value;r(n);try{t(JSON.parse(n)),a(null)}catch(e){a(e instanceof Error?e.message:String(e))}}}),i?(0,H.jsx)(`p`,{className:`text-xs text-destructive`,children:i}):null]})}function sO({sections:e,language:t,canonical:n,operations:r,onOperationSuccess:i}){return(0,H.jsx)(H.Fragment,{children:e.map(e=>{let a=EO(r,e.collection.name);return(0,H.jsxs)(Ob,{children:[(0,H.jsx)(YD,{title:ny(e.collection.title,t,n)??e.collection.name,body:Z(t,`entryEdit.relationship`,{child:e.relationship.childField,parent:e.relationship.parentField})}),(0,H.jsx)(`div`,{className:`space-y-2`,children:e.entries.length===0?(0,H.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Z(t,`entryEdit.noChildEntries`)}):e.entries.map(r=>(0,H.jsxs)(`div`,{className:`flex items-center justify-between gap-3 rounded-lg border bg-card p-3 text-sm text-foreground transition-colors hover:bg-accent`,children:[(0,H.jsxs)(`a`,{href:`/admin/c/${encodeURIComponent(r.collection)}/${encodeURIComponent(r.id)}`,className:`flex min-w-0 flex-1 items-center gap-3`,children:[(0,H.jsxs)(`span`,{className:`min-w-0`,children:[(0,H.jsx)(`span`,{className:`block truncate font-semibold`,children:fO(r.data,Z(t,`collection.untitled`),e.collection,r.id)}),(0,H.jsxs)(`span`,{className:`mt-1 flex flex-wrap items-center gap-2 text-xs text-muted-foreground`,children:[r.collection,(0,H.jsx)(zx,{status:r.status}),(0,H.jsxs)(`span`,{children:[`v`,r.version]})]})]}),(0,H.jsx)(Wt,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":!0})]}),(0,H.jsx)(AO,{row:r,operations:a,language:t,canonical:n,onSuccess:i})]},r.id))})]},`${e.collection.name}:${e.relationship.childField}`)})})}function cO({section:e,currentCollection:t,currentEntryId:n,sharedHref:r,language:i,siteLocales:a,canCreate:o,pending:s,onCreate:c}){let l=KD(e.collection.schema,a),u=t!==e.collection.name;return(0,H.jsx)(`nav`,{"aria-label":Z(i,`entryEdit.languageTabs`),className:`-mt-2 border-b`,children:(0,H.jsxs)(`div`,{role:`tablist`,className:`flex max-w-full gap-1 overflow-x-auto pb-2`,children:[u?(0,H.jsx)(`span`,{role:`tab`,"aria-selected":`true`,className:lv({variant:`secondary`,size:`sm`}),children:Z(i,`entryEdit.sharedFields`)}):r?(0,H.jsx)(`a`,{role:`tab`,"aria-selected":`false`,href:r,className:lv({variant:`ghost`,size:`sm`}),children:Z(i,`entryEdit.sharedFields`)}):null,l.map(t=>{let r=e.entries.find(e=>e.locale===t),a=r?.id===n,l=`${VD(t)} · ${t}`;if(r)return(0,H.jsxs)(Sv,{children:[(0,H.jsx)(Cv,{asChild:!0,children:(0,H.jsxs)(`a`,{role:`tab`,"aria-selected":a,"aria-current":a?`page`:void 0,href:`/admin/c/${encodeURIComponent(r.collection)}/${encodeURIComponent(r.id)}`,className:lv({variant:a?`secondary`:`ghost`,size:`sm`}),children:[(0,H.jsx)(Jt,{"aria-hidden":!0}),(0,H.jsx)(`span`,{className:`max-w-40 truncate`,children:VD(t)}),(0,H.jsx)(`span`,{className:`font-mono text-[0.625rem] text-muted-foreground`,children:t})]})}),(0,H.jsx)(wv,{children:l})]},t);let u=!o||s||e.relationship.parentValue===null,d=(0,H.jsxs)(Y,{type:`button`,role:`tab`,"aria-selected":`false`,variant:`outline`,size:`sm`,className:`border-dashed`,disabled:u,onClick:()=>c(t),children:[(0,H.jsx)(En,{"aria-hidden":!0}),(0,H.jsx)(`span`,{className:`max-w-40 truncate`,children:VD(t)}),(0,H.jsx)(`span`,{className:`font-mono text-[0.625rem] text-muted-foreground`,children:t})]});return e.relationship.parentValue===null?(0,H.jsxs)(Sv,{children:[(0,H.jsx)(Cv,{asChild:!0,children:(0,H.jsx)(`span`,{className:`inline-flex`,children:d})}),(0,H.jsx)(wv,{children:Z(i,`entryEdit.saveSharedFirst`)})]},t):(0,H.jsx)(V.Fragment,{children:d},t)})]})})}function lO({language:e,locale:t,locales:n,disabled:r,onChange:i}){return r?(0,H.jsxs)(Sv,{children:[(0,H.jsx)(Cv,{asChild:!0,children:(0,H.jsx)(`span`,{className:`inline-flex cursor-default`,children:(0,H.jsx)(BD,{locale:t||null})})}),(0,H.jsx)(wv,{children:Z(e,`entryEdit.languageLocked`)})]}):(0,H.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,H.jsx)(Jt,{className:`size-4 text-primary`,"aria-hidden":!0}),(0,H.jsx)(`span`,{className:`sr-only`,children:Z(e,`entryEdit.contentLanguage`)}),(0,H.jsxs)(qE,{value:t||void 0,onValueChange:i,children:[(0,H.jsx)(YE,{size:`sm`,"aria-label":Z(e,`entryEdit.contentLanguage`),children:(0,H.jsx)(JE,{placeholder:Z(e,`entryEdit.selectLanguage`)})}),(0,H.jsx)(XE,{children:n.map(e=>(0,H.jsxs)(ZE,{value:e,children:[VD(e),` · `,e]},e))})]})]})}function uO(e,t,n){if(!e.parent||!n)return null;let r=t[e.parent.childField];return typeof r!=`string`&&typeof r!=`number`&&typeof r!=`boolean`?null:{href:`/admin/c/${encodeURIComponent(e.parent.collection)}/${encodeURIComponent(n)}`,label:`${e.parent.collection} / ${String(r)}`}}function dO(e){return e.relationship.kind===`field`}function fO(e,t,n,r){if(n?.lifecycle===`operational`){let i=n.list?.primaryField,a=i?e[i]:void 0;return typeof a==`string`&&a.trim()?a:typeof a==`number`||typeof a==`boolean`?String(a):r||t}for(let t of[`title`,`name`,`slug`,`id`]){let n=e[t];if(typeof n==`string`&&n.trim())return n}if(n?.schema){let t=n.schema.properties??{};for(let r of n.schema.required??[]){let n=t[r];if(!n||mO(n)!==`string`)continue;let i=e[r];if(typeof i==`string`&&i.trim())return i}}return t}function pO(e,t){return(t.required??[]).some(t=>{let n=e[t];return n==null||n===``||Array.isArray(n)&&n.length===0})}function mO(e){return(Array.isArray(e.type)?e.type.find(e=>e!==`null`):e.type)||(e.properties?`object`:e.items?`array`:`string`)}function hO(e,t){let n=typeof e[`x-mcp-hint`]==`string`?e[`x-mcp-hint`]:``;return n===`markdown`||n===`html`||n===`richtext`?`richtext`:t??`input`}function gO(e,t){let n=e?.fields;if(!n||typeof n!=`object`||Array.isArray(n))return null;let r=n[t];return!r||typeof r!=`object`||Array.isArray(r)?null:r.widget===`textarea`?`textarea`:null}function _O(e){return e[`x-mantle-ref`]===`media_assets`}function vO(e){return typeof e[`x-mantle-bind`]==`string`}function yO(e){return e==null?``:typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`?String(e):JSON.stringify(e)}function bO(e){return typeof e==`number`&&Number.isFinite(e)||typeof e==`string`?e:``}function xO(e){if(e.default!==void 0)return e.default;let t=mO(e);return t===`object`?{}:t===`array`?[]:t===`boolean`?!1:t===`number`||t===`integer`?0:``}function SO(e,t){let n=e;for(let e of t)if(Array.isArray(n))n=n[Number(e)];else if(typeof n==`object`&&n)n=n[e];else return;return n}function CO(e,t,n){if(t.length===0)return wO(n);let r=structuredClone(e),i=r;for(let e=0;e<t.length-1;e+=1){let n=t[e],r=t[e+1];if(Array.isArray(i)){let e=Number(n);i[e]=i[e]??(TO(r)?[]:{}),i=i[e]}else if(typeof i==`object`&&i){let e=i;e[n]=e[n]??(TO(r)?[]:{}),i=e[n]}}let a=t[t.length-1];return Array.isArray(i)?i[Number(a)]=n:typeof i==`object`&&i&&(i[a]=n),r}function wO(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:{}}function TO(e){return/^\d+$/.test(e)}function EO(e,t){return(e??[]).filter(e=>e.rowBindings.some(e=>e.collection===t))}function DO(e,t){return(e??[]).filter(e=>e.uiSchema?.collectionAction===t)}function OO(e){return Object.entries(e.properties??{}).filter(([,e])=>e[`x-mcp-hint`]===`idempotency-key`).map(([e])=>e)}function kO(e,t){let n=new Set(t),r={...e.properties??{}};for(let e of n)delete r[e];return{...e,properties:r,required:(e.required??[]).filter(e=>!n.has(e))}}function AO({row:e,operations:t,language:n,canonical:r,onSuccess:i,trigger:a}){let[o,s]=V.useState(null);return t.length===0?null:(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(Ry,{children:[(0,H.jsx)(zy,{asChild:!0,children:a??(0,H.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon-sm`,title:Z(n,`rowActions.menuLabel`),"aria-label":Z(n,`rowActions.menuLabel`),children:(0,H.jsx)(Ut,{className:`size-3.5`,"aria-hidden":!0})})}),(0,H.jsx)(By,{align:`end`,children:t.map(e=>(0,H.jsx)(Vy,{onSelect:()=>s(e),children:ny(e.title,n,r)??ry(e.name)},e.name))})]}),o?(0,H.jsx)(MO,{operation:o,binding:o.rowBindings.find(t=>t.collection===e.collection),row:e,language:n,canonical:r,onClose:()=>s(null),onSuccess:()=>{s(null),i()}}):null]})}function jO({operations:e,language:t,canonical:n,onSuccess:r}){let[i,a]=V.useState(null);return e.length===0?null:(0,H.jsxs)(H.Fragment,{children:[e.map(e=>(0,H.jsxs)(Y,{type:`button`,onClick:()=>a(e),children:[(0,H.jsx)(En,{className:`size-4`,"aria-hidden":!0}),ny(e.title,t,n)??ry(e.name)]},e.name)),i?(0,H.jsx)(MO,{operation:i,language:t,canonical:n,onClose:()=>a(null),onSuccess:()=>{a(null),r()}}):null]})}function MO({operation:e,binding:t,row:n,language:r,canonical:i,onClose:a,onSuccess:o}){let s=ny(e.title,r,i)??ry(e.name),c=ny(e.description,r,i),l=t?.rowField??`id`,u=t?.inputField,d=it({queryKey:[`entry-editor`,n?.collection??``,n?.id??``],queryFn:()=>{if(!n)throw Error(`row operation is missing its row`);return ey.get(`/entries/${encodeURIComponent(n.id)}`)},enabled:!!n}),f=V.useMemo(()=>{if(n)return l===`id`?n.id:d.data?.entry.data[l]??void 0},[d.data,n,l]),p=V.useMemo(()=>OO(e.input),[e.input]),[m,h]=V.useState(()=>Object.fromEntries(p.map(e=>[e,crypto.randomUUID()])));V.useEffect(()=>{f===void 0||!u||h(e=>({...e,[u]:f}))},[f,u]);let g=V.useMemo(()=>kO(e.input,[...u?[u]:[],...p]),[p,e.input,u]),_=u?e.input.properties?.[u]:void 0,v=u?ny(_?.title,r,i)??ny(_?.description,r,i)??ry(u):null,y=at({mutationFn:t=>ey.post(`/operations/${encodeURIComponent(e.name)}`,t),onSuccess:()=>{dS.success(Z(r,`ops.success`,{name:s})),o()}}),b=!u||f!==void 0;return(0,H.jsx)(DS,{open:!0,onOpenChange:e=>{e||a()},children:(0,H.jsxs)(AS,{closeLabel:Z(r,`common.close`),children:[(0,H.jsxs)(jS,{children:[(0,H.jsx)(NS,{children:s}),c?(0,H.jsx)(PS,{children:c}):null]}),n&&d.isLoading?(0,H.jsx)(bv,{className:`h-24 w-full`}):(0,H.jsxs)(`div`,{className:`space-y-5`,children:[u?(0,H.jsxs)(`div`,{className:`space-y-2`,children:[(0,H.jsx)(`label`,{className:`text-sm font-semibold text-foreground`,children:v}),(0,H.jsx)(`p`,{className:`min-h-8 rounded-md border bg-muted/40 px-3 py-1.5 text-sm text-muted-foreground`,children:NO(f)})]}):null,(0,H.jsx)(ZD,{schema:g,uiSchema:e.uiSchema,value:m,path:[],onChange:h,language:r,canonical:i,collectionName:e.name,mediaPurposes:[]})]}),n&&d.isError?(0,H.jsx)(jb,{error:d.error}):null,y.isError?(0,H.jsx)(Mb,{error:Jx(y.error)}):null,(0,H.jsxs)(MS,{children:[(0,H.jsx)(Y,{type:`button`,variant:`secondary`,onClick:a,disabled:y.isPending,children:Z(r,`rowActions.cancel`)}),(0,H.jsx)(Y,{type:`button`,onClick:()=>y.mutate(m),disabled:y.isPending||!b,children:y.isPending?Z(r,`ops.running`):Z(r,`ops.run`)})]})]})})}function NO(e){return e==null?``:typeof e==`string`||typeof e==`number`||typeof e==`boolean`?String(e):JSON.stringify(e)}function PO(e,t){if(Hx(e)){let e=Wx(t,void 0);if(e)return e}if(Ux(e)){let e=Gx(t);if(e)return e}return t==null||t===``?(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`-`}):typeof t==`string`||typeof t==`number`||typeof t==`boolean`?String(t):(0,H.jsx)(`span`,{className:`font-mono text-xs`,children:JSON.stringify(t)})}function FO(e,t){return typeof e==`string`&&e?e:e==null||e===``?Z(t,`collection.untitled`):JSON.stringify(e)}function IO({language:e,searchable:t=!0,searchValue:n=``,filters:r=[],onSubmit:i}){let a=r.filter(e=>e.options),o=r.filter(e=>!e.options);return(0,H.jsxs)(`form`,{className:J(`space-y-3`,a.length>0?`mb-5`:`mb-3`),role:`search`,onSubmit:e=>{e.preventDefault();let t=new FormData(e.currentTarget);i({search:String(t.get(`search`)??``).trim(),filters:Object.fromEntries(r.map(({name:e})=>[e,String(t.get(`filter.${e}`)??``).trim()]))})},children:[t?(0,H.jsxs)(`div`,{className:`flex max-w-xl gap-2`,children:[(0,H.jsxs)(`label`,{className:`relative block flex-1`,"aria-label":Z(e,`collection.searchPlaceholder`),children:[(0,H.jsx)(An,{className:`pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground`,"aria-hidden":!0}),(0,H.jsx)(uv,{name:`search`,className:`h-9 ps-9`,defaultValue:n,placeholder:Z(e,`collection.searchPlaceholder`)})]}),(0,H.jsx)(RO,{language:e})]}):null,o.length>0?(0,H.jsxs)(`div`,{className:`flex flex-wrap items-end gap-3`,children:[o.map(e=>(0,H.jsxs)(`label`,{className:`grid gap-1.5 text-sm font-medium`,children:[(0,H.jsx)(`span`,{children:e.label}),(0,H.jsx)(uv,{name:`filter.${e.name}`,className:`h-9 w-48`,defaultValue:e.value??``})]},e.name)),t?null:(0,H.jsx)(RO,{language:e})]}):null,a.map(t=>(0,H.jsxs)(`div`,{className:`flex gap-2 overflow-x-auto pb-1`,"aria-label":t.label,children:[(0,H.jsx)(`input`,{type:`hidden`,name:`filter.${t.name}`,value:t.value??``}),(0,H.jsx)(LO,{href:t.allHref??`#`,active:!t.value,children:Z(e,`collection.filter.all`)}),t.options?.map(e=>(0,H.jsx)(LO,{href:e.href,active:t.value===e.value,children:e.label},e.value))]},t.name))]})}function LO({href:e,active:t,children:n}){return(0,H.jsx)(`a`,{href:e,"aria-current":t?`page`:void 0,className:J(`inline-flex h-8 shrink-0 items-center justify-center rounded-lg border px-3 text-xs font-medium`,`transition-colors duration-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring`,t?`border-border bg-secondary text-secondary-foreground`:`border-transparent text-muted-foreground hover:bg-accent hover:text-accent-foreground`),children:n})}function RO({language:e}){return(0,H.jsxs)(Y,{type:`submit`,variant:`secondary`,size:`sm`,className:`h-9`,children:[(0,H.jsx)(An,{className:`size-4`,"aria-hidden":!0}),Z(e,`collection.search`)]})}var zO=50;function BO({collectionName:e}){let{language:t}=X(),n=gy(),r=Ue(),i=new URLSearchParams(n.search),a=i.get(`status`)??void 0,o=i.get(`search`)?.trim()??``,s=i.get(`filter_field`)??void 0,c=i.get(`filter_value`)??void 0,l=i.get(`sort`)||`updatedAt`,u=i.get(`direction`)===`asc`?`asc`:`desc`,d=i.get(`cursor`)||void 0,f=i.get(`cursor_direction`)===`backward`?`backward`:`forward`,p=it({queryKey:[`collections`],queryFn:async()=>(await ey.get(`/collections`)).collections}),m=it({queryKey:[`site`],queryFn:()=>ey.get(`/site`)}),h=it({queryKey:[`me`],queryFn:()=>ey.get(`/me`),retry:!1}),g=m.data?.canonicalLocale??null,_=it(ly()),v=V.useMemo(()=>EO(_.data,e),[_.data,e]),y=V.useMemo(()=>DO(_.data,e),[_.data,e]),b=it({queryKey:[`entries`,e,a??`all`,o,s??`no-filter`,c??`no-value`,l,u,d??`first`,f],queryFn:()=>{let t=new URLSearchParams({collection:e,limit:String(zO),sort:l,direction:u});return a&&t.set(`status`,a),o&&t.set(`search`,o),s&&c&&(t.set(`filter_field`,s),t.set(`filter_value`,c)),d&&t.set(`cursor`,d),f===`backward`&&t.set(`cursor_direction`,`backward`),ey.get(`/entries?${t.toString()}`)}}),[x,S]=V.useState(null);V.useEffect(()=>{b.data&&S(b.data)},[b.data]);let C=b.data??x,w=b.isLoading&&!C,[T,E]=V.useState(new Set),D=V.useCallback(()=>E(new Set),[]),O=p.data?.find(t=>t.name===e),k=O?ny(O.title,t,g)??O.name:e,A=O?.lifecycle===`operational`,j=O?.schema?.readOnly===!0,M=h.data?.role===`owner`||h.data?.role===`editor`,N=!!h.data?.role&&!A&&!j,P=M&&!j,F=A?O?.list?.columns??[]:[],I=A?O?.filter??null:null,L=I?{name:I.field,label:iy(I.field,O?.schema?.properties?.[I.field],t,g),value:s===I.field?c:``,allHref:WO(e,{searchTerm:o,sortField:l,sortDirection:u}),options:I.values.map(t=>({value:t,label:ry(t),href:WO(e,{searchTerm:o,filterField:I.field,filterValue:t,sortField:l,sortDirection:u})}))}:O&&!A?{name:`status`,label:Z(t,`collection.table.status`),value:a,allHref:WO(O.name,{searchTerm:o,sortField:l,sortDirection:u}),options:uy.map(e=>({value:e,label:bb(t,e),href:WO(O.name,{status:e,searchTerm:o,sortField:l,sortDirection:u})}))}:null,ee=A?O?.list?.primaryField??null:null,te=ee?iy(ee,O?.schema?.properties?.[ee],t,g):Z(t,`collection.table.title`),ne=V.useCallback(()=>{D(),r.invalidateQueries({queryKey:[`entries`,e]})},[e,r,D]),R=at({mutationFn:({id:e,title:t,version:n})=>ey.patch(`/entries/${encodeURIComponent(e)}`,{data:{title:t},expectedVersion:n}),onSuccess:ne}),z=at({mutationFn:e=>ey.delete(`/entries/${encodeURIComponent(e)}`),onSuccess:ne}),B=at({mutationFn:()=>ey.post(`/entries`,{collection:e,data:{}}),onSuccess:t=>{window.location.href=`/admin/c/${encodeURIComponent(e)}/${encodeURIComponent(t.entry.id)}`}});return(0,H.jsxs)(`div`,{children:[(0,H.jsx)(Db,{eyebrow:(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`a`,{href:`/admin`,className:`hover:underline`,children:Z(t,`collection.breadcrumb`)}),(0,H.jsx)(`span`,{className:`mx-2 text-foreground/30`,children:`/`}),(0,H.jsx)(`span`,{className:`text-foreground/70`,children:k})]}),title:k,description:HO(O,t,g),actions:(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:[(0,H.jsxs)(Y,{type:`button`,variant:`secondary`,onClick:()=>{let t=new URLSearchParams({collection:e});a&&t.set(`status`,a),o&&t.set(`search`,o),s&&c&&(t.set(`filter_field`,s),t.set(`filter_value`,c)),t.set(`sort`,l),t.set(`direction`,u),window.location.href=`/admin/api/entries/export?${t.toString()}`},children:[(0,H.jsx)(Vt,{className:`size-4`,"aria-hidden":!0}),Z(t,`collection.export`)]}),O&&N?(0,H.jsxs)(Y,{type:`button`,onClick:()=>B.mutate(),disabled:B.isPending,children:[(0,H.jsx)(En,{className:`size-4`,"aria-hidden":!0}),B.isPending?Z(t,`crud.saving`):Z(t,`collection.create`)]}):null,(0,H.jsx)(jO,{operations:y,language:t,canonical:g,onSuccess:ne})]})}),B.isError?(0,H.jsx)(jb,{error:B.error}):null,O?(0,H.jsx)(IO,{language:t,searchValue:o,filters:L?[L]:[],onSubmit:({search:e,filters:t})=>{let n=I?t[I.field]:void 0;window.location.href=WO(O.name,{status:A?a:t.status||void 0,searchTerm:e,filterField:n?I?.field:void 0,filterValue:n||void 0,sortField:l,sortDirection:u})}},n.search):null,w&&(0,H.jsx)(JO,{}),b.isError&&!C&&(0,H.jsx)(jb,{error:b.error}),C&&C.items.length===0&&(0,H.jsx)(Ab,{icon:Kt,title:Z(t,`collection.empty.title`),description:o?Z(t,`collection.empty.search`,{search:o}):c?Z(t,`collection.empty.withStatus`,{collection:k,status:ry(c)}):a?Z(t,`collection.empty.withStatus`,{collection:k,status:a}):Z(t,`collection.empty.all`,{collection:k})}),C&&C.items.length>0&&(0,H.jsxs)(H.Fragment,{children:[T.size>0&&M&&!j?(0,H.jsx)(VO,{language:t,collection:O,selectedIds:[...T],onDone:ne,onClear:D}):null,(0,H.jsxs)(vx,{children:[(0,H.jsx)(yx,{children:(0,H.jsxs)(xx,{children:[P?(0,H.jsx)(Sx,{className:`w-10`,children:(0,H.jsx)(dx,{"aria-label":Z(t,`collection.table.selectAll`),checked:C.items.every(e=>T.has(e.id))?!0:C.items.some(e=>T.has(e.id))?`indeterminate`:!1,onCheckedChange:e=>{E(t=>{let n=new Set(t);for(let t of C.items)e===!0?n.add(t.id):n.delete(t.id);return n})}})}):null,(0,H.jsx)(KO,{className:`hidden md:table-cell`,label:Z(t,`collection.table.id`),field:`id`,activeField:l,direction:u,href:GO(e,a,o,`id`,l,u,s,c)}),!A||ee?ee&&O?.sortableFields?.includes(ee)?(0,H.jsx)(KO,{label:te,field:ee,activeField:l,direction:u,href:GO(e,a,o,ee,l,u,s,c)}):(0,H.jsx)(Sx,{children:te}):null,A?F.map(n=>O?.sortableFields?.includes(n)?(0,H.jsx)(KO,{label:iy(n,O?.schema?.properties?.[n],t,g),field:n,activeField:l,direction:u,href:GO(e,a,o,n,l,u,s,c)},n):(0,H.jsx)(Sx,{children:iy(n,O?.schema?.properties?.[n],t,g)},n)):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(KO,{className:`hidden md:table-cell`,label:Z(t,`collection.table.status`),field:`status`,activeField:l,direction:u,href:GO(e,a,o,`status`,l,u,s,c)}),O&&(O.localized||O.hasTranslations)?(0,H.jsx)(Sx,{children:(0,H.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,H.jsx)(Jt,{className:`size-3.5`,"aria-hidden":!0}),Z(t,`collection.table.locale`)]})}):null,(0,H.jsx)(Sx,{className:`hidden md:table-cell`,children:Z(t,`collection.table.version`)})]}),(0,H.jsx)(KO,{className:`hidden md:table-cell`,label:Z(t,`collection.table.updated`),field:`updatedAt`,activeField:l,direction:u,href:GO(e,a,o,`updatedAt`,l,u,s,c)}),(0,H.jsx)(Sx,{children:Z(t,`collection.table.actions`)})]})}),(0,H.jsx)(bx,{children:C.items.map(e=>(0,H.jsx)(XO,{row:e,language:t,canonical:g,collection:O,siteLocales:m.data?.locales??[],dataColumns:A?F:null,primaryField:A?ee:null,boundOperations:v,onOperationSuccess:ne,selected:T.has(e.id),onToggleSelect:t=>{E(n=>{let r=new Set(n);return t?r.add(e.id):r.delete(e.id),r})},onRename:t=>R.mutateAsync({id:e.id,title:t,version:e.version}),onDelete:()=>z.mutateAsync(e.id),busy:R.isPending&&R.variables?.id===e.id||z.isPending&&z.variables===e.id,canEdit:!j&&(M||h.data?.role===`contributor`&&!A&&e.status===`draft`),canDelete:M&&!j},e.id))})]}),b.isFetching&&!b.data?(0,H.jsx)(`p`,{className:`mt-3 text-xs text-muted-foreground`,children:Z(t,`collection.refreshing`)}):null,(0,H.jsx)(qO,{collectionName:e,status:a,searchTerm:o,filterField:s,filterValue:c,sortField:l,sortDirection:u,previousCursor:C.previous_cursor,nextCursor:C.next_cursor,language:t})]})]})}function VO({language:e,collection:t,selectedIds:n,onDone:r,onClear:i}){let[a,o]=V.useState(!1),[s,c]=V.useState([]),l=t&&t.lifecycle!==`operational`,u=Ix();async function d(e){o(!0),c([]);let t=[];for(let r of n)try{await e(r)}catch(e){t.push(e)}o(!1),c(t),r()}async function f(){await u({description:Z(e,`collection.bulk.deleteConfirm`,{count:String(n.length)})})&&d(e=>ey.delete(`/entries/${encodeURIComponent(e)}`))}return(0,H.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center gap-2 rounded-lg border bg-muted/40 px-3 py-2`,children:[(0,H.jsx)(`span`,{className:`text-sm font-medium`,children:Z(e,`collection.bulk.selectedCount`,{count:String(n.length)})}),(0,H.jsxs)(`div`,{className:`ml-auto flex items-center gap-2`,children:[l?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Y,{type:`button`,variant:`secondary`,size:`sm`,disabled:a,onClick:()=>void d(e=>ey.post(`/entries/${encodeURIComponent(e)}/publish`,{})),children:Z(e,`collection.bulk.publish`)}),(0,H.jsx)(Y,{type:`button`,variant:`secondary`,size:`sm`,disabled:a,onClick:()=>void d(e=>ey.post(`/entries/${encodeURIComponent(e)}/unpublish`,{})),children:Z(e,`collection.bulk.unpublish`)})]}):null,(0,H.jsx)(Y,{type:`button`,variant:`destructive`,size:`sm`,disabled:a,onClick:()=>void f(),children:Z(e,`collection.bulk.delete`)}),(0,H.jsx)(Y,{type:`button`,variant:`ghost`,size:`sm`,onClick:i,children:(0,H.jsx)(Qn,{className:`size-3.5`,"aria-hidden":!0})})]}),s.length>0?(0,H.jsx)(`div`,{className:`w-full space-y-1`,children:s.map((e,t)=>(0,H.jsx)(jb,{error:e},t))}):null]})}function HO(e,t,n){let r=e?ny(e.title,t,n)??e.name:``,i=ny(e?.description,t,n)?.trim(),a=UO(e);return i?(0,H.jsx)(Pb,{description:i,summaryLabel:Z(t,`collection.schemaDetails`),collapsedIntro:Z(t,a,{name:r})}):Z(t,a,{name:r})}function UO(e){let t=!e||e.lifecycle!==`operational`,n=e?e.localized||e.hasTranslations:!1;return t&&n?`collection.schemaSummary.lifecycleAndI18n`:t?`collection.schemaSummary.lifecycleOnly`:n?`collection.schemaSummary.i18nOnly`:`collection.schemaSummary.plain`}function WO(e,t){let n=new URLSearchParams;t.status&&n.set(`status`,t.status),t.searchTerm&&n.set(`search`,t.searchTerm),t.filterField&&t.filterValue&&(n.set(`filter_field`,t.filterField),n.set(`filter_value`,t.filterValue)),t.sortField&&t.sortField!==`updatedAt`&&n.set(`sort`,t.sortField),t.sortDirection&&t.sortDirection!==`desc`&&n.set(`direction`,t.sortDirection),t.cursor&&n.set(`cursor`,t.cursor),t.cursorDirection===`backward`&&n.set(`cursor_direction`,`backward`);let r=n.toString();return`/admin/c/${encodeURIComponent(e)}${r?`?${r}`:``}`}function GO(e,t,n,r,i,a,o,s){return WO(e,{status:t,searchTerm:n,filterField:o,filterValue:s,sortField:r,sortDirection:i===r?a===`asc`?`desc`:`asc`:r===`updatedAt`?`desc`:`asc`})}function KO({className:e,label:t,field:n,activeField:r,direction:i,href:a}){return(0,H.jsx)(Sx,{className:e,children:(0,H.jsxs)(`a`,{href:a,className:`inline-flex items-center gap-1.5 font-medium hover:text-foreground`,children:[t,(0,H.jsx)(r===n?i===`asc`?xt:gt:yt,{className:J(`size-3.5`,r===n?`opacity-100`:`opacity-35`),"aria-hidden":!0})]})})}function qO({collectionName:e,status:t,searchTerm:n,filterField:r,filterValue:i,sortField:a,sortDirection:o,previousCursor:s,nextCursor:c,language:l}){if(!s&&!c)return null;let u={status:t,searchTerm:n,filterField:r,filterValue:i,sortField:a,sortDirection:o};return(0,H.jsx)(fx,{className:`mt-4 justify-end`,"aria-label":Z(l,`collection.pagination`),children:(0,H.jsxs)(px,{children:[(0,H.jsx)(mx,{children:(0,H.jsx)(gx,{href:s?WO(e,{...u,cursor:s,cursorDirection:`backward`}):void 0,text:Z(l,`collection.previousPage`),"aria-label":Z(l,`collection.previousPage`),"aria-disabled":!s||void 0,tabIndex:s?void 0:-1,className:J(!s&&`pointer-events-none opacity-50`)})}),(0,H.jsx)(mx,{children:(0,H.jsx)(_x,{href:c?WO(e,{...u,cursor:c,cursorDirection:`forward`}):void 0,text:Z(l,`collection.nextPage`),"aria-label":Z(l,`collection.nextPage`),"aria-disabled":!c||void 0,tabIndex:c?void 0:-1,className:J(!c&&`pointer-events-none opacity-50`)})})]})})}function JO(){return(0,H.jsx)(`div`,{className:`overflow-hidden rounded-lg border`,children:[0,1,2,3,4].map(e=>(0,H.jsxs)(`div`,{className:`flex items-center gap-4 border-b p-3 last:border-b-0`,children:[(0,H.jsx)(bv,{className:`h-3 w-16`}),(0,H.jsx)(bv,{className:`h-3 flex-1`}),(0,H.jsx)(bv,{className:`h-6 w-20 rounded-full`})]},e))})}function YO({id:e,language:t}){let[n,r]=V.useState(!1);async function i(){try{await navigator.clipboard.writeText(e),r(!0),window.setTimeout(()=>r(!1),1400)}catch{r(!1)}}return(0,H.jsxs)(`button`,{type:`button`,className:`group inline-flex items-center gap-1 hover:text-foreground`,title:`${e} — ${Z(t,`collection.copyId`)}`,onClick:()=>void i(),children:[qx(e),n?(0,H.jsx)(kt,{className:`size-3 text-[color:var(--success)]`,"aria-hidden":!0}):(0,H.jsx)(zt,{className:`size-3 opacity-40 transition-opacity group-hover:opacity-80`,"aria-hidden":!0})]})}function XO({row:e,language:t,canonical:n,collection:r,siteLocales:i,dataColumns:a,primaryField:o,boundOperations:s,onOperationSuccess:c,selected:l,onToggleSelect:u,onRename:d,onDelete:f,busy:p,canEdit:m,canDelete:h}){let g=a!==null,_=FO(g?o?e.data_preview?.[o]:e.id:e.title,t),[v,y]=V.useState(!1),[b,x]=V.useState(_),[S,C]=V.useState(null),w=Ix();V.useEffect(()=>{v||x(_)},[v,_]);async function T(){let e=b.trim();if(!e||e===_){y(!1),x(_);return}C(null);try{await d(e),y(!1)}catch(e){C(e instanceof Error?e.message:String(e))}}async function E(){if(await w({description:Z(t,`crud.deleteConfirm`,{name:_})})){C(null);try{await f()}catch(e){C(e instanceof Error?e.message:String(e))}}}return(0,H.jsxs)(xx,{children:[h?(0,H.jsx)(Cx,{children:(0,H.jsx)(dx,{"aria-label":Z(t,`collection.table.selectRow`,{name:_}),checked:l,onCheckedChange:e=>u(e===!0)})}):null,(0,H.jsx)(Cx,{className:`hidden font-mono text-xs text-muted-foreground md:table-cell`,children:(0,H.jsx)(YO,{id:String(e.id),language:t})}),!g||o?(0,H.jsx)(Cx,{className:`max-w-[28rem]`,children:(0,H.jsxs)(`div`,{className:`min-w-44 md:min-w-64`,children:[g?(0,H.jsx)(`a`,{href:`/admin/c/${encodeURIComponent(e.collection)}/${encodeURIComponent(e.id)}`,className:`block truncate font-medium hover:underline`,title:_,children:PO(r?.schema?.properties?.[o??``],e.data_preview?.[o??``])}):v?(0,H.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,H.jsx)(uv,{className:`h-8 min-w-0 flex-1`,value:b,autoFocus:!0,disabled:p,onChange:e=>x(e.target.value),onBlur:()=>void T(),onKeyDown:e=>{e.key===`Enter`&&T(),e.key===`Escape`&&(x(_),y(!1))}}),(0,H.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon-sm`,title:Z(t,`crud.saveTitle`),disabled:p,onMouseDown:e=>e.preventDefault(),onClick:()=>void T(),children:(0,H.jsx)(kt,{className:`size-3.5`,"aria-hidden":!0})}),(0,H.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon-sm`,title:Z(t,`crud.cancelTitle`),disabled:p,onMouseDown:e=>e.preventDefault(),onClick:()=>{x(_),y(!1)},children:(0,H.jsx)(Qn,{className:`size-3.5`,"aria-hidden":!0})})]}):m?(0,H.jsxs)(`button`,{type:`button`,className:`group inline-flex max-w-full items-center gap-2 text-left`,onClick:()=>y(!0),title:_,children:[(0,H.jsx)(`span`,{className:`truncate`,children:ZO(e.title,t)}),(0,H.jsx)(wn,{className:`size-3 shrink-0 opacity-0 transition-opacity group-hover:opacity-60`,"aria-hidden":!0})]}):(0,H.jsx)(`a`,{href:`/admin/c/${encodeURIComponent(e.collection)}/${encodeURIComponent(e.id)}`,className:`block truncate font-medium hover:underline`,title:_,children:ZO(e.title,t)}),S?(0,H.jsx)(`p`,{className:`mt-1 text-xs text-destructive`,children:S}):null]})}):null,a?a.map(t=>(0,H.jsx)(Cx,{className:`text-muted-foreground`,children:PO(r?.schema?.properties?.[t],e.data_preview?.[t])},t)):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Cx,{className:`hidden md:table-cell`,children:(0,H.jsx)(zx,{status:e.status})}),r&&(r.localized||r.hasTranslations)?(0,H.jsx)(Cx,{children:r.hasTranslations?(0,H.jsx)(HD,{locales:i,available:e.translation_locales,language:t}):(0,H.jsx)(BD,{locale:e.locale})}):null,(0,H.jsxs)(Cx,{className:`hidden font-mono text-xs text-muted-foreground md:table-cell`,children:[`v`,e.version]})]}),(0,H.jsx)(Cx,{className:`hidden text-muted-foreground md:table-cell`,children:Gx(e.updated_at)??`-`}),(0,H.jsxs)(Cx,{children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-1`,children:[m?(0,H.jsx)(Y,{asChild:!0,variant:`ghost`,size:`icon-sm`,children:(0,H.jsx)(`a`,{title:Z(t,`crud.editTooltip`,{name:_}),"aria-label":Z(t,`crud.editTooltip`,{name:_}),href:`/admin/c/${encodeURIComponent(e.collection)}/${encodeURIComponent(e.id)}`,children:(0,H.jsx)(wn,{className:`size-3.5`,"aria-hidden":!0})})}):(0,H.jsx)(Y,{asChild:!0,variant:`ghost`,size:`icon-sm`,children:(0,H.jsx)(`a`,{title:Z(t,`crud.viewTooltip`,{name:_}),"aria-label":Z(t,`crud.viewTooltip`,{name:_}),href:`/admin/c/${encodeURIComponent(e.collection)}/${encodeURIComponent(e.id)}`,children:(0,H.jsx)(Gt,{className:`size-3.5`,"aria-hidden":!0})})}),h?(0,H.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon-sm`,title:Z(t,`crud.deleteTooltip`,{name:_}),disabled:p,onClick:()=>void E(),children:(0,H.jsx)(Bn,{className:`size-3.5`,"aria-hidden":!0})}):null,(0,H.jsx)(AO,{row:e,operations:s,language:t,canonical:n,onSuccess:c})]}),(0,H.jsx)(`span`,{className:`sr-only`,children:r?ny(r.title,t,n)??r.name:``})]})]})}function ZO(e,t){return e==null||e===``?(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:Z(t,`collection.untitled`)}):typeof e==`string`?e:(0,H.jsx)(`span`,{className:`font-mono text-xs`,children:JSON.stringify(e)})}var QO=50;async function $O(e,t){let n=new URLSearchParams;for(let[e,r]of Object.entries(t))r!=null&&r!==``&&n.set(e,String(r));let r=n.toString(),i=await fetch(`/admin/api/views/${encodeURIComponent(e)}${r?`?${r}`:``}`,{credentials:`same-origin`,headers:{Accept:`application/json`}}),a=await i.json();if(!i.ok||!a.ok){let e=`diagnostic`in a?a.diagnostic.message:`${i.status} ${i.statusText}`;throw Error(e)}return a}function ek({name:e}){let{language:t}=X(),n=gy(),r=V.useMemo(()=>new URLSearchParams(n.search),[n.search]),i=lk(r.get(`page`))??1,a=it(cy()),o=it({queryKey:[`collections`],queryFn:async()=>(await ey.get(`/collections`)).collections}),s=it({queryKey:[`site`],queryFn:()=>ey.get(`/site`)}).data?.canonicalLocale??null,c=a.data?.find(t=>t.name===e),l=o.data?.find(e=>e.name===c?.from)?.schema,[u,d]=V.useState({});V.useEffect(()=>{d(nk(c?.params,r))},[c?.name,c?.params,n.search]);let f=rk(c?.params,r),p=it({queryKey:[`view`,e,n.search],queryFn:()=>$O(e,{...Object.fromEntries(r),page:i,show:QO}),enabled:!!c&&f});if(a.isLoading||o.isLoading)return(0,H.jsx)(bv,{className:`h-64 w-full`});if(a.isError)return(0,H.jsx)(jb,{error:a.error});if(!c)return(0,H.jsx)(`div`,{className:`space-y-6`,children:(0,H.jsx)(Db,{title:Z(t,`views.notFound.title`)})});let m=p.data?.data.rows??[],h=uk(c,m),g=ny(c.title,t,s)??ry(c.name),_=ok(e,r);return(0,H.jsxs)(`div`,{className:`space-y-6`,children:[(0,H.jsx)(Db,{eyebrow:(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,H.jsx)(ox,{variant:`secondary`,children:Z(t,c.surface===`public`?`views.publicService`:`views.staffReport`)}),c.surface===`public`?(0,H.jsxs)(`code`,{className:`text-xs`,children:[`/api/views/`,c.name]}):null]}),title:g,description:Z(t,c.surface===`public`?`views.publicBody`:`views.page.body`,{schema:c.from??c.name}),actions:(0,H.jsxs)(Y,{type:`button`,variant:`secondary`,disabled:!f,onClick:()=>{window.location.href=_},children:[(0,H.jsx)(Vt,{className:`size-4`,"aria-hidden":!0}),Z(t,`collection.export`)]})}),c.params?(0,H.jsxs)(Ob,{className:`space-y-4`,children:[(0,H.jsx)(`h2`,{className:`text-sm font-semibold`,children:Z(t,`views.params.title`)}),(0,H.jsx)(ZD,{schema:c.params,value:u,path:[],onChange:d,language:t,canonical:s,collectionName:c.name,mediaPurposes:[]}),(0,H.jsxs)(Y,{type:`button`,onClick:()=>{window.location.href=ik(e,r,c.params,u)},disabled:p.isFetching,children:[(0,H.jsx)(An,{className:`size-4`,"aria-hidden":!0}),p.isFetching?Z(t,`views.running`):Z(t,`views.run`)]})]}):null,c.list.searchFields.length>0||c.list.filterFields.length>0?(0,H.jsx)(IO,{language:t,searchable:c.list.searchFields.length>0,searchValue:r.get(`search`)??``,filters:c.list.filterFields.map(e=>({name:e,label:ry(e),value:r.get(`filter.${e}`)??``})),onSubmit:({search:t,filters:n})=>{let i=new URLSearchParams(r);ck(i,`search`,t);for(let e of c.list.filterFields)ck(i,`filter.${e}`,n[e]??``);i.delete(`page`),i.delete(`show`),window.location.href=sk(e,i)}},n.search):null,p.isError?(0,H.jsx)(jb,{error:p.error}):null,p.isLoading?(0,H.jsx)(bv,{className:`h-48 w-full`}):null,p.data&&m.length===0?(0,H.jsx)(Ab,{title:Z(t,`views.empty.title`),description:Z(t,`views.empty.body`)}):null,m.length>0?(0,H.jsxs)(vx,{children:[(0,H.jsx)(yx,{children:(0,H.jsx)(xx,{children:h.map(e=>(0,H.jsx)(Sx,{children:iy(e,l?.properties?.[e],t,s)},e))})}),(0,H.jsx)(bx,{children:m.map((e,t)=>(0,H.jsx)(xx,{children:h.map(t=>(0,H.jsx)(Cx,{className:`text-muted-foreground`,children:PO(l?.properties?.[t],e[t])},t))},t))})]}):null,p.data?(0,H.jsx)(tk,{name:e,query:r,page:p.data.data.page,hasMore:p.data.data.hasMore,language:t}):null]})}function tk({name:e,query:t,page:n,hasMore:r,language:i}){if(n<=1&&!r)return null;let a=n>1?ak(e,t,n-1):void 0,o=r?ak(e,t,n+1):void 0;return(0,H.jsx)(fx,{className:`mt-4 justify-end`,"aria-label":Z(i,`collection.pagination`),children:(0,H.jsxs)(px,{children:[(0,H.jsx)(mx,{children:(0,H.jsx)(gx,{href:a,text:Z(i,`collection.previousPage`),"aria-label":Z(i,`collection.previousPage`),"aria-disabled":!a||void 0,tabIndex:a?void 0:-1,className:J(!a&&`pointer-events-none opacity-50`)})}),(0,H.jsx)(mx,{children:(0,H.jsx)(_x,{href:o,text:Z(i,`collection.nextPage`),"aria-label":Z(i,`collection.nextPage`),"aria-disabled":!o||void 0,tabIndex:o?void 0:-1,className:J(!o&&`pointer-events-none opacity-50`)})})]})})}function nk(e,t){let n={};for(let[r,i]of Object.entries(e?.properties??{})){let e=t.get(r);e!==null&&(n[r]=i.type===`integer`||i.type===`number`?Number(e):i.type===`boolean`?e===`true`:e)}return n}function rk(e,t){return(e?.required??[]).every(e=>t.has(e))}function ik(e,t,n,r){let i=new URLSearchParams(t);for(let e of Object.keys(n.properties??{})){i.delete(e);let t=r[e];t!=null&&t!==``&&i.set(e,String(t))}return i.delete(`page`),i.delete(`show`),sk(e,i)}function ak(e,t,n){let r=new URLSearchParams(t);return n>1?r.set(`page`,String(n)):r.delete(`page`),r.delete(`show`),sk(e,r)}function ok(e,t){let n=new URLSearchParams(t);n.delete(`page`),n.delete(`show`);let r=n.toString();return`/admin/api/views/${encodeURIComponent(e)}/export${r?`?${r}`:``}`}function sk(e,t){let n=t.toString();return`/admin/views/${encodeURIComponent(e)}${n?`?${n}`:``}`}function ck(e,t,n){n?e.set(t,n):e.delete(t)}function lk(e){if(!e)return;let t=Number.parseInt(e,10);return Number.isFinite(t)&&t>0?t:void 0}function uk(e,t){if(e.list.columns.length>0)return[...e.list.columns];if(e.fields&&e.fields.length>0)return[...e.fields];let n=new Set;for(let e of t)for(let t of Object.keys(e))n.add(t);return[...n]}function dk({path:e}){let{language:t}=X();return(0,H.jsxs)(xb,{className:`mx-auto max-w-md p-8 text-center`,children:[(0,H.jsx)(`h1`,{className:`mb-2 text-xl`,children:Z(t,`system.notFound.title`)}),(0,H.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[Z(t,`system.notFound.body`),` `,(0,H.jsx)(`code`,{className:`font-mono text-xs`,children:e}),`.`]}),(0,H.jsx)(`p`,{className:`mt-4 text-sm`,children:(0,H.jsx)(`a`,{href:`/admin`,className:`text-primary hover:underline`,children:Z(t,`system.notFound.back`)})})]})}function fk(){let{language:e,direction:t,theme:n,setLanguage:r,setTheme:i}=X();return(0,H.jsxs)(`div`,{className:`mx-auto max-w-4xl`,children:[(0,H.jsx)(Db,{eyebrow:Z(e,`preferences.heading`),title:Z(e,`preferences.page.title`),description:Z(e,`preferences.page.body`)}),(0,H.jsxs)(`div`,{className:`grid gap-4`,children:[(0,H.jsxs)(Ob,{children:[(0,H.jsx)(mk,{icon:rn,title:Z(e,`preferences.language`),body:Z(e,`preferences.page.languageBody`)}),(0,H.jsx)(pk,{language:e,onChange:r})]}),(0,H.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,H.jsxs)(Ob,{children:[(0,H.jsx)(mk,{icon:vn,title:Z(e,`preferences.appearance`),body:Z(e,`preferences.page.appearanceBody`)}),(0,H.jsx)(`div`,{className:`mt-4 grid gap-2`,children:gk(e).map(e=>(0,H.jsx)(hk,{selected:e.value===n,onClick:()=>i(e.value),icon:e.icon,children:e.label},e.value))})]}),(0,H.jsxs)(Ob,{children:[(0,H.jsx)(mk,{icon:Tn,title:Z(e,`preferences.direction`),body:Z(e,`preferences.direction.auto`)}),(0,H.jsx)(`div`,{className:`mt-4 rounded-lg border border-border/70 bg-background/30 px-3 py-2 text-sm`,children:(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:t===`rtl`?Z(e,`preferences.rtl`):Z(e,`preferences.ltr`)})})]})]})]})]})}function pk({language:e,onChange:t}){let[n,r]=V.useState(!1),[i,a]=V.useState(``),o=_y.find(t=>t.value===e)??_y[0],s=i.trim().toLowerCase(),c=s?_y.filter(e=>[e.nativeLabel,e.label,e.value,e.htmlLang,e.direction].join(` `).toLowerCase().includes(s)):_y;return(0,H.jsxs)(`div`,{className:`relative mt-4`,children:[(0,H.jsxs)(`button`,{type:`button`,onClick:()=>r(e=>!e),className:`flex w-full items-center justify-between gap-3 rounded-lg border border-border/70 bg-background/30 px-3 py-2 text-start text-sm transition-colors hover:bg-accent hover:text-accent-foreground`,"aria-expanded":n,children:[(0,H.jsxs)(`span`,{className:`min-w-0`,children:[(0,H.jsx)(`span`,{className:`block truncate font-medium text-foreground`,children:o.nativeLabel}),(0,H.jsxs)(`span`,{className:`block truncate text-xs text-muted-foreground`,children:[o.label,` · `,o.value,` · `,Oy(o.value).toUpperCase()]})]}),(0,H.jsx)(Pt,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":!0})]}),n?(0,H.jsxs)(`div`,{className:`absolute z-30 mt-2 w-full overflow-hidden rounded-lg border bg-popover text-popover-foreground shadow-md`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-2 border-b px-3 py-2`,children:[(0,H.jsx)(An,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":!0}),(0,H.jsx)(`input`,{autoFocus:!0,value:i,onChange:e=>a(e.target.value),onKeyDown:e=>{e.key===`Escape`&&r(!1)},placeholder:Z(e,`preferences.language.search`),className:`min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground/70`})]}),(0,H.jsx)(`div`,{className:`max-h-72 overflow-y-auto p-1`,children:c.length===0?(0,H.jsx)(`div`,{className:`px-3 py-6 text-center text-sm text-muted-foreground`,children:Z(e,`preferences.language.noResults`)}):c.map(n=>(0,H.jsxs)(`button`,{type:`button`,onClick:()=>{t(n.value),a(``),r(!1)},className:J(`flex w-full items-center justify-between gap-3 rounded-lg px-3 py-2 text-start text-sm transition-colors`,n.value===e?`bg-primary/10 text-foreground`:`text-muted-foreground hover:bg-accent hover:text-accent-foreground`),children:[(0,H.jsxs)(`span`,{className:`min-w-0`,children:[(0,H.jsx)(`span`,{className:`block truncate font-medium`,children:n.nativeLabel}),(0,H.jsxs)(`span`,{className:`block truncate text-xs opacity-75`,children:[n.label,` · `,n.value,` · `,n.direction.toUpperCase()]})]}),(0,H.jsx)(kt,{className:J(`size-4 shrink-0 text-primary`,n.value===e?`opacity-100`:`opacity-0`),"aria-hidden":!0})]},n.value))})]}):null]})}function mk({icon:e,title:t,body:n}){return(0,H.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,H.jsx)(`div`,{className:`rounded-xl bg-primary/15 p-2 text-primary`,children:(0,H.jsx)(e,{className:`size-5`,"aria-hidden":!0})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h2`,{className:`text-lg`,children:t}),(0,H.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:n})]})]})}function hk({selected:e,onClick:t,icon:n,children:r}){return(0,H.jsxs)(`button`,{type:`button`,onClick:t,className:J(`flex min-h-10 items-center justify-between gap-3 rounded-lg border px-3 py-2 text-start text-sm transition-colors`,e?`border-primary/50 bg-primary/10 text-foreground`:`border-border/70 bg-background/30 text-muted-foreground hover:bg-accent hover:text-accent-foreground`),children:[(0,H.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[n?(0,H.jsx)(n,{className:`size-4 shrink-0`,"aria-hidden":!0}):null,(0,H.jsx)(`span`,{className:`truncate`,children:r})]}),(0,H.jsx)(kt,{className:J(`size-4 shrink-0 text-primary`,e?`opacity-100`:`opacity-0`),"aria-hidden":!0})]})}function gk(e){return[{value:`light`,label:Z(e,`preferences.light`),icon:Fn},{value:`dark`,label:Z(e,`preferences.dark`),icon:yn},{value:`system`,label:Z(e,`preferences.system`),icon:vn}]}function _k(){let{language:e}=X(),t=Ue(),n=it({queryKey:[`site-settings`],queryFn:()=>ey.get(`/site-settings`)}),[r,i]=V.useState(null),[a,o]=V.useState(`brand`);V.useEffect(()=>{n.data&&i(n.data)},[n.data]);let s=at({mutationFn:e=>ey.patch(`/site-settings`,e),onSuccess:e=>{t.setQueryData([`site-settings`],e),i(e)}});if(n.isLoading||!r)return(0,H.jsx)(bv,{className:`h-64 w-full`});if(n.isError)return(0,H.jsx)(jb,{error:n.error});let c=!xk(r,n.data),l=s.isSuccess&&!c;function u(e,t){s.reset(),i(n=>n&&{...n,[e]:t})}return(0,H.jsxs)(`div`,{className:`flex min-h-full flex-col gap-6`,children:[(0,H.jsx)(Db,{title:Z(e,`settings.page.title`),description:Z(e,`settings.page.body`)}),s.isError?(0,H.jsx)(Mb,{error:Jx(s.error)}):null,(0,H.jsxs)(`div`,{role:`tablist`,"aria-label":Z(e,`settings.tabsLabel`),className:`inline-flex gap-1 rounded-lg border bg-muted/40 p-1`,children:[(0,H.jsx)(vk,{active:a===`brand`,icon:Mn,label:Z(e,`settings.tab.brand`),onClick:()=>o(`brand`)}),(0,H.jsx)(vk,{active:a===`tracking`,icon:Ot,label:Z(e,`settings.tab.tracking`),onClick:()=>o(`tracking`)})]}),a===`brand`?(0,H.jsxs)(Ob,{className:`grid max-w-5xl gap-4`,children:[(0,H.jsx)(yk,{title:Z(e,`settings.brandSection`),body:Z(e,`settings.brandSectionBody`)}),(0,H.jsx)(bk,{label:Z(e,`settings.siteBrand`),description:Z(e,`settings.siteBrandHelp`),children:(0,H.jsx)(uv,{value:r.brand,onChange:e=>u(`brand`,e.target.value)})}),(0,H.jsx)(bk,{label:Z(e,`settings.siteTitle`),description:Z(e,`settings.siteTitleHelp`),children:(0,H.jsx)(uv,{value:r.title,onChange:e=>u(`title`,e.target.value)})}),(0,H.jsx)(bk,{label:Z(e,`settings.siteDescription`),description:Z(e,`settings.siteDescriptionHelp`),children:(0,H.jsx)(eD,{className:`min-h-24`,value:r.description,onChange:e=>u(`description`,e.target.value)})})]}):null,a===`tracking`?(0,H.jsxs)(Ob,{className:`grid max-w-5xl gap-4`,children:[(0,H.jsx)(yk,{title:Z(e,`settings.trackingSection`),body:Z(e,`settings.trackingSectionBody`)}),(0,H.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,H.jsx)(bk,{label:Z(e,`settings.ga4MeasurementId`),description:Z(e,`settings.ga4MeasurementIdHelp`),children:(0,H.jsx)(uv,{value:r.ga4MeasurementId,placeholder:Z(e,`settings.notConfigured`),onChange:e=>u(`ga4MeasurementId`,e.target.value)})}),(0,H.jsx)(bk,{label:Z(e,`settings.facebookPixelId`),description:Z(e,`settings.facebookPixelIdHelp`),children:(0,H.jsx)(uv,{value:r.facebookPixelId,placeholder:Z(e,`settings.notConfigured`),onChange:e=>u(`facebookPixelId`,e.target.value)})})]})]}):null,(0,H.jsx)(kb,{status:s.isPending?Z(e,`crud.saving`):c?Z(e,`common.unsavedChanges`):l?Z(e,`common.saved`):void 0,children:(0,H.jsxs)(Y,{onClick:()=>s.mutate(r),disabled:!c||s.isPending,children:[(0,H.jsx)(kn,{className:`size-4`,"aria-hidden":!0}),s.isPending?Z(e,`crud.saving`):Z(e,`entryEdit.save`)]})})]})}function vk({active:e,icon:t,label:n,onClick:r}){return(0,H.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":e,className:J(`inline-flex h-9 items-center gap-2 rounded-md px-3 text-sm font-semibold transition`,e?`bg-primary text-primary-foreground shadow-sm`:`text-muted-foreground hover:bg-accent hover:text-accent-foreground`),onClick:r,children:[(0,H.jsx)(t,{className:`size-4`,"aria-hidden":!0}),n]})}function yk({title:e,body:t}){return(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h2`,{className:`text-lg font-semibold`,children:e}),(0,H.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:t})]})}function bk({label:e,description:t,children:n}){return(0,H.jsxs)(`label`,{className:`grid gap-1.5 text-sm font-medium`,children:[(0,H.jsx)(`span`,{children:e}),t?(0,H.jsx)(`span`,{className:`text-xs font-normal text-muted-foreground`,children:t}):null,n]})}function xk(e,t){return!!t&&Object.keys(e).every(n=>e[n]===t[n])}var Sk=`https://developers.cloudflare.com/email-service/`,Ck=`Enable email sign-in for this Mantle site. Implement the Mantle EmailSender port with a transactional email provider. For Cloudflare, prefer an Email Service binding. Register either { kind: "email-otp", sender } or { kind: "magic-link", sender } in createAuth(), keep credentials in Worker secrets, deploy, then verify that /api/auth/methods lists the method and a real email arrives.`,wk=[`owner`,`editor`,`contributor`,`none`],Tk=[`owner`,`editor`,`contributor`];function Ek(){let{language:e}=X(),t=Ue(),n=it({queryKey:[`me`],queryFn:()=>ey.get(`/me`),retry:!1}),r=it({queryKey:[`staff`],queryFn:()=>ey.get(`/staff`),retry:!1}),i=it(sy()),a=i.data?.some(({kind:e})=>e===`email-otp`||e===`magic-link`),o=()=>{t.invalidateQueries({queryKey:[`staff`]})},s=at({mutationFn:e=>ey.patch(`/staff/${encodeURIComponent(e.userId)}/role`,{role:e.role}),onSettled:o}),c=at({mutationFn:e=>ey.delete(`/staff/invitations/${encodeURIComponent(e)}`),onSettled:o});if(r.isError)return(0,H.jsx)(jb,{error:r.error});if(r.isLoading||!r.data)return(0,H.jsx)(bv,{className:`h-64 w-full`});let l=t=>Z(e,`staff.role.${t}`);return(0,H.jsxs)(`div`,{className:`space-y-6`,children:[(0,H.jsx)(Db,{title:Z(e,`staff.page.title`),description:Z(e,`staff.page.body`)}),s.isError?(0,H.jsx)(jb,{error:Jx(s.error)}):null,c.isError?(0,H.jsx)(jb,{error:Jx(c.error)}):null,i.data&&!a?(0,H.jsx)(Ok,{}):null,(0,H.jsx)(Dk,{onInvited:o}),(0,H.jsx)(Ob,{className:`overflow-x-auto p-0`,children:(0,H.jsxs)(vx,{children:[(0,H.jsx)(yx,{children:(0,H.jsxs)(xx,{children:[(0,H.jsx)(Sx,{children:Z(e,`staff.table.name`)}),(0,H.jsx)(Sx,{children:Z(e,`staff.table.email`)}),(0,H.jsx)(Sx,{children:Z(e,`staff.table.status`)}),(0,H.jsx)(Sx,{children:Z(e,`staff.table.role`)})]})}),(0,H.jsx)(bx,{children:r.data.users.map(t=>{let r=t.id===n.data?.userId,i=!t.emailVerified&&!t.githubLogin,a=kk(t.role)?t.role:`none`;return(0,H.jsxs)(xx,{children:[(0,H.jsx)(Cx,{children:t.name}),(0,H.jsx)(Cx,{children:t.email}),(0,H.jsx)(Cx,{children:i?(0,H.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,H.jsx)(ox,{variant:`secondary`,children:Z(e,`staff.badge.invited`)}),(0,H.jsx)(Y,{variant:`ghost`,size:`sm`,disabled:c.isPending,onClick:()=>c.mutate(t.id),children:Z(e,`staff.invite.revoke`)})]}):t.githubLogin?`GitHub: ${t.githubLogin}`:Z(e,`staff.status.emailSignIn`)}),(0,H.jsx)(Cx,{children:r?(0,H.jsxs)(`span`,{className:`text-muted-foreground`,children:[l(a),` · `,Z(e,`staff.self`)]}):(0,H.jsxs)(qE,{value:a,disabled:s.isPending,onValueChange:e=>{s.mutate({userId:t.id,role:kk(e)?e:null})},children:[(0,H.jsx)(YE,{className:`w-44`,children:(0,H.jsx)(JE,{})}),(0,H.jsx)(XE,{children:wk.map(e=>(0,H.jsx)(ZE,{value:e,children:l(e)},e))})]})})]},t.id)})})]})})]})}function Dk({onInvited:e}){let{language:t}=X(),[n,r]=V.useState(``),[i,a]=V.useState(`contributor`),o=at({mutationFn:()=>ey.post(`/staff/invitations`,{email:n,role:i}),onSuccess:()=>{r(``),e()}});return(0,H.jsxs)(Ob,{className:`grid gap-4`,children:[(0,H.jsx)(`h2`,{className:`text-sm font-semibold`,children:Z(t,`staff.invite.title`)}),o.isError?(0,H.jsx)(jb,{error:Jx(o.error)}):null,(0,H.jsxs)(`form`,{className:`grid max-w-4xl gap-4 md:grid-cols-[minmax(0,1fr)_18rem]`,onSubmit:e=>{e.preventDefault(),o.mutate()},children:[(0,H.jsxs)(`label`,{className:`grid min-w-64 flex-1 gap-1.5 text-sm font-medium`,children:[(0,H.jsx)(`span`,{children:Z(t,`staff.invite.emailLabel`)}),(0,H.jsx)(uv,{type:`email`,value:n,placeholder:Z(t,`staff.invite.emailPlaceholder`),onChange:e=>r(e.target.value)}),(0,H.jsx)(`span`,{className:`text-xs font-normal leading-5 text-muted-foreground`,children:Z(t,`staff.invite.hint`)})]}),(0,H.jsxs)(`label`,{className:`grid gap-1.5 text-sm font-medium`,children:[(0,H.jsx)(`span`,{children:Z(t,`staff.invite.roleLabel`)}),(0,H.jsxs)(qE,{value:i,onValueChange:e=>{kk(e)&&a(e)},children:[(0,H.jsx)(YE,{className:`w-full`,children:(0,H.jsx)(JE,{children:Z(t,`staff.role.${i}`)})}),(0,H.jsx)(XE,{className:`min-w-72`,children:Tk.map(e=>(0,H.jsx)(ZE,{value:e,textValue:Z(t,`staff.role.${e}`),className:`items-start py-2`,children:(0,H.jsxs)(`span`,{className:`grid gap-0.5`,children:[(0,H.jsx)(`span`,{className:`font-medium`,children:Z(t,`staff.role.${e}`)}),(0,H.jsx)(`span`,{className:`text-xs font-normal text-muted-foreground`,children:Z(t,`staff.role.${e}.help`)})]})},e))})]}),(0,H.jsx)(`span`,{className:`max-w-56 text-xs font-normal leading-5 text-muted-foreground`,children:Z(t,`staff.role.${i}.help`)})]}),(0,H.jsx)(`div`,{className:`flex justify-end md:col-span-2`,children:(0,H.jsxs)(Y,{type:`submit`,disabled:o.isPending||n.trim()===``,children:[(0,H.jsx)(Kn,{className:`size-4`,"aria-hidden":!0}),o.isPending?Z(t,`staff.invite.sending`):Z(t,`staff.invite.button`)]})})]})]})}function Ok(){let{language:e}=X(),[t,n]=V.useState(!1);async function r(){try{await navigator.clipboard.writeText(Ck),n(!0),window.setTimeout(()=>n(!1),1400)}catch{n(!1)}}return(0,H.jsxs)(Ob,{className:`flex-row flex-wrap items-center gap-4`,children:[(0,H.jsx)(`span`,{className:`flex size-10 shrink-0 items-center justify-center rounded-lg bg-muted`,children:(0,H.jsx)(_n,{className:`size-5`,"aria-hidden":!0})}),(0,H.jsxs)(`div`,{className:`min-w-64 flex-1`,children:[(0,H.jsx)(`h2`,{className:`font-semibold`,children:Z(e,`staff.emailSetup.title`)}),(0,H.jsx)(`p`,{className:`mt-1 text-sm leading-6 text-muted-foreground`,children:Z(e,`staff.emailSetup.body`)})]}),(0,H.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,H.jsxs)(Y,{type:`button`,variant:`secondary`,onClick:()=>void r(),children:[t?(0,H.jsx)(kt,{"aria-hidden":!0}):(0,H.jsx)(zt,{"aria-hidden":!0}),Z(e,t?`staff.emailSetup.copied`:`staff.emailSetup.copy`)]}),(0,H.jsx)(Y,{asChild:!0,variant:`outline`,children:(0,H.jsxs)(`a`,{href:Sk,target:`_blank`,rel:`noreferrer`,children:[(0,H.jsx)(Wt,{"aria-hidden":!0}),Z(e,`staff.emailSetup.guide`)]})})]})]})}function kk(e){return e===`owner`||e===`editor`||e===`contributor`}var Ak=50,jk=[`owner`,`editor`,`contributor`];function Mk(){let{language:e}=X(),t=Ue(),{search:n}=gy(),r=new URLSearchParams(n),i=r.get(`search`)?.trim()??``,a=r.get(`cursor`)||void 0,o=r.get(`cursor_direction`)===`backward`?`backward`:`forward`,s=it({queryKey:[`members`,i,a??`first`,o],queryFn:()=>{let e=new URLSearchParams({limit:String(Ak)});return i&&e.set(`search`,i),a&&e.set(`cursor`,a),o===`backward`&&e.set(`cursor_direction`,`backward`),ey.get(`/members?${e.toString()}`)}}),c=it({queryKey:[`me`],queryFn:()=>ey.get(`/me`),retry:!1}),l=at({mutationFn:({userId:e,role:t})=>ey.patch(`/staff/${encodeURIComponent(e)}/role`,{role:t}),onSuccess:()=>{t.invalidateQueries({queryKey:[`members`]}),t.invalidateQueries({queryKey:[`staff`]})}}),u=c.data?.role===`owner`;return(0,H.jsxs)(`div`,{children:[(0,H.jsx)(Db,{title:Z(e,`members.page.title`),description:Z(e,`members.page.body`)}),(0,H.jsx)(Nk,{search:i}),l.isError?(0,H.jsx)(jb,{error:l.error}):null,s.isLoading?(0,H.jsx)(bv,{className:`h-64 w-full`}):null,s.isError?(0,H.jsx)(jb,{error:s.error}):null,s.data?.items.length===0?(0,H.jsx)(Ab,{icon:Rt,title:Z(e,i?`members.emptySearch.title`:`members.empty.title`),description:Z(e,i?`members.emptySearch.body`:`members.empty.body`)}):null,s.data&&s.data.items.length>0?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Ob,{className:`overflow-x-auto p-0`,children:(0,H.jsxs)(vx,{children:[(0,H.jsx)(yx,{children:(0,H.jsxs)(xx,{children:[(0,H.jsx)(Sx,{children:Z(e,`members.table.name`)}),(0,H.jsx)(Sx,{children:Z(e,`members.table.email`)}),(0,H.jsx)(Sx,{children:Z(e,`members.table.status`)}),(0,H.jsx)(Sx,{children:Z(e,`members.table.joined`)}),u?(0,H.jsx)(Sx,{children:Z(e,`members.table.teamAccess`)}):null]})}),(0,H.jsx)(bx,{children:s.data.items.map(t=>(0,H.jsxs)(xx,{children:[(0,H.jsx)(Cx,{className:`font-medium`,children:t.name}),(0,H.jsx)(Cx,{children:t.email}),(0,H.jsx)(Cx,{children:(0,H.jsx)(ox,{variant:t.emailVerified?`default`:`secondary`,children:Z(e,t.emailVerified?`members.verified`:`members.unverified`)})}),(0,H.jsx)(Cx,{className:`text-muted-foreground`,children:Gx(Date.parse(t.createdAt))??`-`}),u?(0,H.jsx)(Cx,{children:(0,H.jsxs)(qE,{disabled:l.isPending,onValueChange:e=>{let n=jk.find(t=>t===e);n&&l.mutate({userId:t.id,role:n})},children:[(0,H.jsx)(YE,{className:`w-44`,"aria-label":`${Z(e,`members.promote`)}: ${t.name}`,children:(0,H.jsx)(JE,{placeholder:Z(e,`members.promote`)})}),(0,H.jsx)(XE,{children:jk.map(t=>(0,H.jsx)(ZE,{value:t,children:Z(e,`staff.role.${t}`)},t))})]})}):null]},t.id))})]})}),(0,H.jsx)(Pk,{search:i,previousCursor:s.data.previous_cursor,nextCursor:s.data.next_cursor})]}):null]})}function Nk({search:e}){let{language:t}=X(),{navigate:n}=hy(),[r,i]=V.useState(e);return V.useEffect(()=>i(e),[e]),(0,H.jsxs)(`form`,{className:`mb-4 flex max-w-xl gap-2`,role:`search`,onSubmit:e=>{e.preventDefault(),n(Fk(r.trim()))},children:[(0,H.jsxs)(`label`,{className:`relative block flex-1`,"aria-label":Z(t,`members.searchPlaceholder`),children:[(0,H.jsx)(An,{className:`pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground`,"aria-hidden":!0}),(0,H.jsx)(uv,{className:`h-9 ps-9`,value:r,onChange:e=>i(e.target.value),placeholder:Z(t,`members.searchPlaceholder`)})]}),(0,H.jsxs)(Y,{type:`submit`,variant:`secondary`,size:`sm`,className:`h-9`,children:[(0,H.jsx)(An,{"aria-hidden":!0}),Z(t,`members.search`)]})]})}function Pk({search:e,previousCursor:t,nextCursor:n}){let{language:r}=X();return!t&&!n?null:(0,H.jsx)(fx,{className:`mt-4 justify-end`,"aria-label":Z(r,`members.pagination`),children:(0,H.jsxs)(px,{children:[(0,H.jsx)(mx,{children:(0,H.jsx)(gx,{href:t?Fk(e,t,`backward`):void 0,text:Z(r,`members.previousPage`),"aria-label":Z(r,`members.previousPage`),"aria-disabled":!t||void 0,tabIndex:t?void 0:-1,className:J(!t&&`pointer-events-none opacity-50`)})}),(0,H.jsx)(mx,{children:(0,H.jsx)(_x,{href:n?Fk(e,n,`forward`):void 0,text:Z(r,`members.nextPage`),"aria-label":Z(r,`members.nextPage`),"aria-disabled":!n||void 0,tabIndex:n?void 0:-1,className:J(!n&&`pointer-events-none opacity-50`)})})]})})}function Fk(e,t,n=`forward`){let r=new URLSearchParams;e&&r.set(`search`,e),t&&r.set(`cursor`,t),n===`backward`&&r.set(`cursor_direction`,`backward`);let i=r.toString();return`/admin/members${i?`?${i}`:``}`}function Ik({className:e,orientation:t=`horizontal`,...n}){return(0,H.jsx)(Kh,{"data-slot":`tabs`,"data-orientation":t,className:J(`group/tabs flex gap-2 data-horizontal:flex-col`,e),...n})}var Lk=ar(`group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none`,{variants:{variant:{default:`bg-muted`,line:`gap-1 bg-transparent`}},defaultVariants:{variant:`default`}});function Rk({className:e,variant:t=`default`,...n}){return(0,H.jsx)(qh,{"data-slot":`tabs-list`,"data-variant":t,className:J(Lk({variant:t}),e),...n})}function zk({className:e,...t}){return(0,H.jsx)(Jh,{"data-slot":`tabs-trigger`,className:J(`relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium text-foreground/60 transition-all hover:text-foreground focus-visible:border-ring focus-visible:outline-1 focus-visible:outline-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-active:bg-background data-active:text-foreground group-data-[variant=line]/tabs-list:data-active:bg-transparent group-data-[variant=line]/tabs-list:data-active:shadow-none after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100 dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...t})}function Bk({className:e,...t}){return(0,H.jsx)(Yh,{"data-slot":`tabs-content`,className:J(`flex-1 text-sm outline-none`,e),...t})}var Vk=Object.defineProperty,Hk=(e,t,n)=>t in e?Vk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Uk=(e,t)=>{for(var n in t)Vk(e,n,{get:t[n],enumerable:!0})},Wk=(e,t,n)=>Hk(e,typeof t==`symbol`?t:t+``,n),Gk={};Uk(Gk,{Graph:()=>AA,alg:()=>iA});var Kk=Object.defineProperty,qk=(e,t)=>{for(var n in t)Kk(e,n,{get:t[n],enumerable:!0})},Jk=class{constructor(e){this._isDirected=!0,this._isMultigraph=!1,this._isCompound=!1,this._nodes={},this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={},this._nodeCount=0,this._edgeCount=0,this._defaultNodeLabelFn=()=>{},this._defaultEdgeLabelFn=()=>{},e&&(this._isDirected=`directed`in e?e.directed:!0,this._isMultigraph=`multigraph`in e&&e.multigraph,this._isCompound=`compound`in e&&e.compound),this._isCompound&&(this._parent={},this._children={},this._children[`\0`]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return this._defaultNodeLabelFn=typeof e==`function`?e:()=>e,this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){return this.nodes().filter(e=>Object.keys(this._in[e]).length===0)}sinks(){return this.nodes().filter(e=>Object.keys(this._out[e]).length===0)}setNodes(e,t){return e.forEach(e=>{t===void 0?this.setNode(e):this.setNode(e,t)}),this}setNode(e,t){return e in this._nodes?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=`\0`,this._children[e]={},this._children[`\0`][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return e in this._nodes}removeNode(e){if(e in this._nodes){let t=e=>this.removeEdge(this._edgeObjs[e]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],this.children(e).forEach(e=>{this.setParent(e)}),delete this._children[e]),Object.keys(this._in[e]).forEach(t),delete this._in[e],delete this._preds[e],Object.keys(this._out[e]).forEach(t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw Error(`Cannot set parent in a non-compound graph`);if(t===void 0)t=`\0`;else{t+=``;for(let n=t;n!==void 0;n=this.parent(n))if(n===e)throw Error(`Setting `+t+` as parent of `+e+` would create a cycle`);this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}parent(e){if(this._isCompound){let t=this._parent[e];if(t!==`\0`)return t}}children(e=`\0`){if(this._isCompound){let t=this._children[e];if(t)return Object.keys(t)}else{if(e===`\0`)return this.nodes();if(this.hasNode(e))return[]}return[]}predecessors(e){let t=this._preds[e];if(t)return Object.keys(t)}successors(e){let t=this._sucs[e];if(t)return Object.keys(t)}neighbors(e){let t=this.predecessors(e);if(t){let n=new Set(t),r=this.successors(e);if(r)for(let e of r)n.add(e);return Array.from(n.values())}}isLeaf(e){let t;return t=this.isDirected()?this.successors(e):this.neighbors(e),(t?.length??0)===0}filterNodes(e){let t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph()),Object.entries(this._nodes).forEach(([n,r])=>{e(n)&&t.setNode(n,r)}),Object.values(this._edgeObjs).forEach(e=>{t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,this.edge(e))});let n={},r=e=>{let i=this.parent(e);return!i||t.hasNode(i)?(n[e]=i,i):i in n?n[i]:r(i)};return this._isCompound&&t.nodes().forEach(e=>t.setParent(e,r(e))),t}setDefaultEdgeLabel(e){return this._defaultEdgeLabelFn=typeof e==`function`?e:()=>e,this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(e,t){return e.reduce((e,n)=>(t===void 0?this.setEdge(e,n):this.setEdge(e,n,t),n)),this}setEdge(e,t,n,r){let i,a,o,s,c=!1;typeof e==`object`&&e&&`v`in e?(i=e.v,a=e.w,o=e.name,arguments.length===2&&(s=t,c=!0)):(i=e,a=t,o=r,arguments.length>2&&(s=n,c=!0)),i=``+i,a=``+a,o!==void 0&&(o=``+o);let l=Zk(this._isDirected,i,a,o);if(l in this._edgeLabels)return c&&(this._edgeLabels[l]=s),this;if(o!==void 0&&!this._isMultigraph)throw Error(`Cannot set a named edge when isMultigraph = false`);this.setNode(i),this.setNode(a),this._edgeLabels[l]=c?s:this._defaultEdgeLabelFn(i,a,o);let u=Qk(this._isDirected,i,a,o);return i=u.v,a=u.w,Object.freeze(u),this._edgeObjs[l]=u,Yk(this._preds[a],i),Yk(this._sucs[i],a),this._in[a][l]=u,this._out[i][l]=u,this._edgeCount++,this}edge(e,t,n){let r=arguments.length===1?$k(this._isDirected,e):Zk(this._isDirected,e,t,n);return this._edgeLabels[r]}edgeAsObj(e,t,n){let r=arguments.length===1?this.edge(e):this.edge(e,t,n);return typeof r!=`object`||!r?{label:r}:r}hasEdge(e,t,n){return(arguments.length===1?$k(this._isDirected,e):Zk(this._isDirected,e,t,n))in this._edgeLabels}removeEdge(e,t,n){let r=arguments.length===1?$k(this._isDirected,e):Zk(this._isDirected,e,t,n),i=this._edgeObjs[r];if(i){let e=i.v,t=i.w;delete this._edgeLabels[r],delete this._edgeObjs[r],Xk(this._preds[t],e),Xk(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--}return this}inEdges(e,t){return this.isDirected()?this.filterEdges(this._in[e],e,t):this.nodeEdges(e,t)}outEdges(e,t){return this.isDirected()?this.filterEdges(this._out[e],e,t):this.nodeEdges(e,t)}nodeEdges(e,t){if(e in this._nodes)return this.filterEdges({...this._in[e],...this._out[e]},e,t)}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}filterEdges(e,t,n){if(!e)return;let r=Object.values(e);return n?r.filter(e=>e.v===t&&e.w===n||e.v===n&&e.w===t):r}};function Yk(e,t){e[t]?e[t]++:e[t]=1}function Xk(e,t){e[t]!==void 0&&!--e[t]&&delete e[t]}function Zk(e,t,n,r){let i=``+t,a=``+n;if(!e&&i>a){let e=i;i=a,a=e}return i+``+a+``+(r===void 0?`\0`:r)}function Qk(e,t,n,r){let i=``+t,a=``+n;if(!e&&i>a){let e=i;i=a,a=e}let o={v:i,w:a};return r&&(o.name=r),o}function $k(e,t){return Zk(e,t.v,t.w,t.name)}qk({},{read:()=>rA,write:()=>eA});function eA(e){let t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:tA(e),edges:nA(e)},n=e.graph();return n!==void 0&&(t.value=structuredClone(n)),t}function tA(e){return e.nodes().map(t=>{let n=e.node(t),r=e.parent(t),i={v:t};return n!==void 0&&(i.value=n),r!==void 0&&(i.parent=r),i})}function nA(e){return e.edges().map(t=>{let n=e.edge(t),r={v:t.v,w:t.w};return t.name!==void 0&&(r.name=t.name),n!==void 0&&(r.value=n),r})}function rA(e){let t=new Jk(e.options);return e.value!==void 0&&t.setGraph(e.value),e.nodes.forEach(e=>{t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)}),e.edges.forEach(e=>{t.setEdge({v:e.v,w:e.w,name:e.name},e.value)}),t}var iA={};qk(iA,{CycleException:()=>yA,bellmanFord:()=>oA,components:()=>cA,dijkstra:()=>dA,dijkstraAll:()=>pA,findCycles:()=>hA,floydWarshall:()=>_A,isAcyclic:()=>xA,postorder:()=>TA,preorder:()=>EA,prim:()=>DA,shortestPaths:()=>OA,tarjan:()=>mA,topsort:()=>bA});var aA=()=>1;function oA(e,t,n,r){return sA(e,String(t),n||aA,r||function(t){return e.outEdges(t)??[]})}function sA(e,t,n,r){let i={},a,o=0,s=e.nodes(),c=function(e){let t=i[e.v],r=i[e.w];if(!t||!r)return;let o=n(e);t.distance+o<r.distance&&(i[e.w]={distance:t.distance+o,predecessor:e.v},a=!0)},l=function(){s.forEach(function(e){r(e).forEach(function(t){let n=t.v===e?t.v:t.w,r=n===t.v?t.w:t.v;c({v:n,w:r})})})};s.forEach(function(e){i[e]={distance:e===t?0:1/0,predecessor:``}});let u=s.length;for(let e=1;e<u&&(a=!1,o++,l(),a);e++);if(o===u-1&&(a=!1,l(),a))throw Error(`The graph contains a negative weight cycle`);return i}function cA(e){let t={},n=[],r;function i(n){var a,o;n in t||(t[n]=!0,r.push(n),(a=e.successors(n))==null||a.forEach(i),(o=e.predecessors(n))==null||o.forEach(i))}return e.nodes().forEach(function(e){r=[],i(e),r.length&&n.push(r)}),n}var lA=class{constructor(){this._arr=[],this._keyIndices={}}size(){return this._arr.length}keys(){return this._arr.map(e=>e.key)}has(e){return e in this._keyIndices}priority(e){let t=this._keyIndices[e];if(t!==void 0)return this._arr[t].priority}min(){if(this.size()===0)throw Error(`Queue underflow`);return this._arr[0].key}add(e,t){let n=this._keyIndices,r=String(e);if(!(r in n)){let e=this._arr,i=e.length;return n[r]=i,e.push({key:r,priority:t}),this._decrease(i),!0}return!1}removeMin(){if(this.size()===0)throw Error(`Queue underflow`);this._swap(0,this._arr.length-1);let e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key}decrease(e,t){let n=this._keyIndices[e];if(n===void 0)throw Error(`Key not found: ${e}`);let r=this._arr[n].priority;if(t>r)throw Error(`New priority is greater than current priority. Key: ${e} Old: ${r} New: ${t}`);this._arr[n].priority=t,this._decrease(n)}_heapify(e){let t=this._arr,n=2*e,r=n+1,i=e;n<t.length&&(i=t[n].priority<t[i].priority?n:i,r<t.length&&(i=t[r].priority<t[i].priority?r:i),i!==e&&(this._swap(e,i),this._heapify(i)))}_decrease(e){let t=this._arr,n=t[e].priority,r;for(;e!==0&&(r=e>>1,!(t[r].priority<n));)this._swap(e,r),e=r}_swap(e,t){let n=this._arr,r=this._keyIndices,i=n[e],a=n[t];n[e]=a,n[t]=i,r[a.key]=e,r[i.key]=t}},uA=()=>1;function dA(e,t,n,r){return fA(e,String(t),n||uA,r||function(t){return e.outEdges(t)??[]})}function fA(e,t,n,r){let i={},a=new lA,o,s,c=function(e){let t=e.v===o?e.w:e.v,r=i[t];if(!r)return;let c=n(e),l=s.distance+c;if(c<0)throw Error(`dijkstra does not allow negative edge weights. Bad edge: `+e+` Weight: `+c);l<r.distance&&(r.distance=l,r.predecessor=o,a.decrease(t,l))};for(e.nodes().forEach(function(e){let n=e===t?0:1/0;i[e]={distance:n,predecessor:``},a.add(e,n)});a.size()>0;){o=a.removeMin();let e=i[o];if(!e||e.distance===1/0)break;s=e,r(o).forEach(c)}return i}function pA(e,t,n){return e.nodes().reduce(function(r,i){return r[i]=dA(e,i,t,n),r},{})}function mA(e){let t=0,n=[],r={},i=[];function a(o){var s;let c=r[o]={onStack:!0,lowlink:t,index:t++};if(n.push(o),(s=e.successors(o))==null||s.forEach(function(e){if(e in r){let t=r[e];t!=null&&t.onStack&&(c.lowlink=Math.min(c.lowlink,t.index))}else{a(e);let t=r[e];t&&(c.lowlink=Math.min(c.lowlink,t.lowlink))}}),c.lowlink===c.index){let e=[],t;do{t=n.pop();let i=r[t];i&&(i.onStack=!1),e.push(t)}while(o!==t);i.push(e)}}return e.nodes().forEach(function(e){e in r||a(e)}),i}function hA(e){return mA(e).filter(function(t){let n=t[0];return n?t.length>1||t.length===1&&(e.outEdges(n,n)??[]).length>0:!1})}var gA=()=>1;function _A(e,t,n){return vA(e,t||gA,n||function(t){return e.outEdges(t)??[]})}function vA(e,t,n){let r={},i=e.nodes();return i.forEach(function(e){let a={};r[e]=a,a[e]={distance:0,predecessor:``},i.forEach(function(t){e!==t&&(a[t]={distance:1/0,predecessor:``})}),n(e).forEach(function(n){let r=n.v===e?n.w:n.v,i=t(n);a[r]={distance:i,predecessor:e}})}),i.forEach(function(e){let t=r[e];t&&i.forEach(function(n){let a=r[n];a&&i.forEach(function(n){let r=a[e],i=t[n],o=a[n];if(r&&i&&o){let e=r.distance+i.distance;e<o.distance&&(o.distance=e,o.predecessor=i.predecessor)}})})}),r}var yA=class extends Error{constructor(e){super(e),this.name=`CycleException`}};function bA(e){let t={},n={},r=[];function i(a){var o;if(a in n)throw new yA;a in t||(n[a]=!0,t[a]=!0,(o=e.predecessors(a))==null||o.forEach(i),delete n[a],r.push(a))}if(e.sinks().forEach(i),Object.keys(t).length!==e.nodeCount())throw new yA;return r}function xA(e){try{bA(e)}catch(e){if(e instanceof yA)return!1;throw e}return!0}function SA(e,t,n,r,i){Array.isArray(t)||(t=[t]);let a=(t=>(e.isDirected()?e.successors(t):e.neighbors(t))??[]),o={};return t.forEach(function(t){if(!e.hasNode(t))throw Error(`Graph does not have node: `+t);i=CA(e,t,n===`post`,o,a,r,i)}),i}function CA(e,t,n,r,i,a,o){return t in r||(r[t]=!0,n||(o=a(o,t)),i(t).forEach(function(t){o=CA(e,t,n,r,i,a,o)}),n&&(o=a(o,t))),o}function wA(e,t,n){return SA(e,t,n,function(e,t){return e.push(t),e},[])}function TA(e,t){return wA(e,t,`post`)}function EA(e,t){return wA(e,t,`pre`)}function DA(e,t){var n;let r=new Jk,i={},a=new lA,o;function s(e){let n=e.v===o?e.w:e.v,r=a.priority(n);if(r!==void 0){let s=t(e);s<r&&(i[n]=o,a.decrease(n,s))}}if(e.nodeCount()===0)return r;e.nodes().forEach(function(e){a.add(e,1/0),r.setNode(e)});let c=e.nodes()[0];c!==void 0&&a.decrease(c,0);let l=!1;for(;a.size()>0;){if(o=a.removeMin(),o in i)r.setEdge(o,i[o]);else{if(l)throw Error(`Input graph is not connected: `+e);l=!0}(n=e.nodeEdges(o))==null||n.forEach(s)}return r}function OA(e,t,n,r){return kA(e,t,n,r??(t=>e.outEdges(t)??[]))}function kA(e,t,n,r){if(n===void 0)return dA(e,t,n,r);let i=!1,a=e.nodes();for(let o=0;o<a.length;o++){let s=a[o];if(s===void 0)continue;let c=r(s);for(let e=0;e<c.length;e++){let t=c[e];if(!t)continue;let r=t.v===s?t.v:t.w;n({v:r,w:r===t.v?t.w:t.v})<0&&(i=!0)}if(i)return oA(e,t,n,r)}return dA(e,t,n,r)}var AA=Jk;function jA(e,t,n,r){let i=r;for(;e.hasNode(i);)i=qA(r);return n.dummy=t,e.setNode(i,n),i}function MA(e){let t=new AA().setGraph(e.graph());return e.nodes().forEach(n=>t.setNode(n,e.node(n))),e.edges().forEach(n=>{let r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),t}function NA(e){let t=new AA({multigraph:e.isMultigraph()}).setGraph(e.graph());return e.nodes().forEach(n=>{e.children(n).length||t.setNode(n,e.node(n))}),e.edges().forEach(n=>{t.setEdge(n,e.edge(n))}),t}function PA(e,t){let n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2;if(!i&&!a)throw Error(`Not possible to find intersection inside of the rectangle`);let c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=s*i/a,l=s):(i<0&&(o=-o),c=o,l=o*a/i),{x:n+c,y:r+l}}function FA(e){let t=JA(HA(e)+1).map(()=>[]);return e.nodes().forEach(n=>{let r=e.node(n),i=r.rank;i!==void 0&&(t[i]||(t[i]=[]),t[i][r.order]=n)}),t}function IA(e){let t=e.nodes().map(t=>{let n=e.node(t).rank;return n===void 0?Number.MAX_VALUE:n}),n=VA(Math.min,t);e.nodes().forEach(t=>{let r=e.node(t);Object.hasOwn(r,`rank`)&&(r.rank-=n)})}function LA(e){let t=e.nodes().map(t=>e.node(t).rank).filter(e=>e!==void 0),n=VA(Math.min,t),r=[];e.nodes().forEach(t=>{let i=e.node(t).rank-n;r[i]||(r[i]=[]),r[i].push(t)});let i=0,a=e.graph().nodeRankFactor;Array.from(r).forEach((t,n)=>{t===void 0&&n%a!==0?--i:t!==void 0&&i&&t.forEach(t=>e.node(t).rank+=i)})}function RA(e,t,n,r){let i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),jA(e,`border`,i,t)}function zA(e,t=BA){let n=[];for(let r=0;r<e.length;r+=t){let i=e.slice(r,r+t);n.push(i)}return n}var BA=65535;function VA(e,t){return t.length>BA?e(...zA(t).map(t=>e(...t))):e(...t)}function HA(e){let t=e.nodes().map(t=>{let n=e.node(t).rank;return n===void 0?Number.MIN_VALUE:n});return VA(Math.max,t)}function UA(e,t){let n={lhs:[],rhs:[]};return e.forEach(e=>{t(e)?n.lhs.push(e):n.rhs.push(e)}),n}function WA(e,t){let n=Date.now();try{return t()}finally{console.log(e+` time: `+(Date.now()-n)+`ms`)}}function GA(e,t){return t()}var KA=0;function qA(e){return e+(``+ ++KA)}function JA(e,t,n=1){t??(t=e,e=0);let r=e=>e<t;n<0&&(r=e=>t<e);let i=[];for(let t=e;r(t);t+=n)i.push(t);return i}function YA(e,t){let n={};for(let r of t)e[r]!==void 0&&(n[r]=e[r]);return n}function XA(e,t){let n;return n=typeof t==`string`?e=>e[t]:t,Object.entries(e).reduce((e,[t,r])=>(e[t]=n(r,t),e),{})}function ZA(e,t){return e.reduce((e,n,r)=>(e[n]=t[r],e),{})}var QA=`\0`;function $A(e,t,n){if(!(e&&t&&n&&t.dummy===`edge`&&n.dummy===`edge`&&t.edgeObj&&n.edgeObj&&e[t.edgeObj.v]&&e[n.edgeObj.v]&&e[t.edgeObj.w]&&e[n.edgeObj.w]))return 0;let r=!0;t.edgeObj.w===n.edgeObj.w&&(r=!1);let i=r?e[t.edgeObj.v]?.rank??NaN:e[t.edgeObj.w]?.rank??NaN,a=Object.entries(e).find(e=>e[1].edgeObj?.v===t.edgeObj.v&&e[1].edgeObj?.w===t.edgeObj.w&&e[1].rank===i),o=Object.entries(e).find(e=>e[1].edgeObj?.v===n.edgeObj.v&&e[1].edgeObj?.w===n.edgeObj.w&&e[1].rank===i);if(!a||!o)return 0;let s=a[1].order??NaN,c=o[1].order??NaN;return isNaN(s-c)?0:s-c}var ej=`3.1.1`,tj=class{constructor(){Wk(this,`_sentinel`);let e={};e._next=e._prev=e,this._sentinel=e}dequeue(){let e=this._sentinel,t=e._prev;if(t!==e)return nj(t),t}enqueue(e){let t=this._sentinel;e._prev&&e._next&&nj(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}toString(){let e=[],t=this._sentinel,n=t._prev;for(;n!==t;)e.push(JSON.stringify(n,rj)),n=n._prev;return`[`+e.join(`, `)+`]`}};function nj(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function rj(e,t){if(e!==`_next`&&e!==`_prev`)return t}var ij=tj,aj=()=>1;function oj(e,t){if(e.nodeCount()<=1)return[];let n=lj(e,t||aj);return sj(n.graph,n.buckets,n.zeroIdx).flatMap(t=>e.outEdges(t.v,t.w)||[])}function sj(e,t,n){let r=[],i=t[t.length-1],a=t[0],o;for(;e.nodeCount();){for(;o=a.dequeue();)cj(e,t,n,o);for(;o=i.dequeue();)cj(e,t,n,o);if(e.nodeCount()){for(let i=t.length-2;i>0;--i)if(o=t[i]?.dequeue(),o){r=r.concat(cj(e,t,n,o,!0)||[]);break}}}return r}function cj(e,t,n,r,i){let a=[],o=i?a:void 0;return(e.inEdges(r.v)||[]).forEach(r=>{let o=e.edge(r),s=e.node(r.v);i&&a.push({v:r.v,w:r.w}),s.out-=o,uj(t,n,s)}),(e.outEdges(r.v)||[]).forEach(r=>{let i=e.edge(r),a=r.w,o=e.node(a);o.in-=i,uj(t,n,o)}),e.removeNode(r.v),o}function lj(e,t){let n=new AA,r=0,i=0;e.nodes().forEach(e=>{n.setNode(e,{v:e,in:0,out:0})}),e.edges().forEach(e=>{let a=n.edge(e.v,e.w)||0,o=t(e),s=a+o;n.setEdge(e.v,e.w,s);let c=n.node(e.v),l=n.node(e.w);i=Math.max(i,c.out+=o),r=Math.max(r,l.in+=o)});let a=dj(i+r+3).map(()=>new ij),o=r+1;return n.nodes().forEach(e=>{uj(a,o,n.node(e))}),{graph:n,buckets:a,zeroIdx:o}}function uj(e,t,n){var r,i,a;n.out?n.in?(a=e[n.out-n.in+t])==null||a.enqueue(n):(i=e[e.length-1])==null||i.enqueue(n):(r=e[0])==null||r.enqueue(n)}function dj(e){let t=[];for(let n=0;n<e;n++)t.push(n);return t}function fj(e,t){(e.graph().acyclicer===`greedy`?oj(e,n(e)):pj(e,t??null)).forEach(t=>{let n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,qA(`rev`))});function n(e){return t=>e.edge(t).weight}}function pj(e,t){let n=[],r={},i={};function a(t){Object.hasOwn(i,t)||(i[t]=!0,r[t]=!0,e.outEdges(t).forEach(e=>{Object.hasOwn(r,e.w)?n.push(e):a(e.w)}),delete r[t])}function o(a){var s;Object.hasOwn(i,a)||(i[a]=!0,r[a]=!0,(s=e.outEdges(a))==null||s.forEach(i=>{Object.hasOwn(r,i.w)||t.node(a)?.rank>t.node(i.w)?.rank&&hj(e,i.w,i)?n.push(i):o(i.w)}),delete r[a])}let s=a;return t&&typeof t.node==`function`&&(s=o),e.sources().forEach(s),e.nodes().forEach(s),n}function mj(e){e.edges().forEach(t=>{let n=e.edge(t);if(n.reversed){e.removeEdge(t);let r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}function hj(e,t,n){let r=new Set;function i(t){if(e.sources().includes(t))return!0;r.add(t);for(let a of e.inEdges(t)??[])if((a.v!==n.v||a.w!==n.w)&&!r.has(a.v)&&i(a.v))return!0;return!1}return i(t)}function gj(e){e.graph().dummyChains=[],e.edges().forEach(t=>_j(e,t))}function _j(e,t){let n=t.v,r=e.node(n).rank,i=t.w,a=e.node(i).rank,o=t.name,s=e.edge(t),c=s.labelRank;if(a===r+1)return;e.removeEdge(t);let l,u,d;for(d=0,++r;r<a;++d,++r)s.points=[],u={width:0,height:0,edgeLabel:s,edgeObj:t,rank:r},l=jA(e,`edge`,u,`_d`),r===c&&(u.width=s.width,u.height=s.height,u.dummy=`edge-label`,u.labelpos=s.labelpos),e.setEdge(n,l,{weight:s.weight},o),d===0&&e.graph().dummyChains.push(l),n=l;e.setEdge(n,i,{weight:s.weight},o)}function vj(e){e.graph().dummyChains.forEach(t=>{let n=e.node(t),r=n.edgeLabel,i;for(e.setEdge(n.edgeObj,r);n.dummy;)i=e.successors(t)[0],e.removeNode(t),r.points.push({x:n.x,y:n.y}),n.dummy===`edge-label`&&(r.x=n.x,r.y=n.y,r.width=n.width,r.height=n.height),t=i,n=e.node(t)})}function yj(e){let t={};function n(r){let i=e.node(r);if(Object.hasOwn(t,r))return i.rank;t[r]=!0;let a=e.outEdges(r),o=a?a.map(t=>t==null?1/0:n(t.w)-e.edge(t).minlen):[],s=VA(Math.min,o);return s===1/0&&(s=0),i.rank=s}e.sources().forEach(n)}function bj(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}var xj=Sj;function Sj(e){let t=new AA({directed:!1}),n=e.nodes();if(n.length===0)throw Error(`Graph must have at least one node`);let r=n[0],i=e.nodeCount();t.setNode(r,{});let a,o;for(;Cj(t,e)<i&&(a=wj(t,e),a);)o=t.hasNode(a.v)?bj(e,a):-bj(e,a),Tj(t,e,o);return t}function Cj(e,t){function n(r){let i=t.nodeEdges(r);i&&i.forEach(i=>{let a=i.v,o=r===a?i.w:a;!e.hasNode(o)&&!bj(t,i)&&(e.setNode(o,{}),e.setEdge(r,o,{}),n(o))})}return e.nodes().forEach(n),e.nodeCount()}function wj(e,t){return t.edges().reduce((n,r)=>{let i=1/0;return e.hasNode(r.v)!==e.hasNode(r.w)&&(i=bj(t,r)),i<n[0]?[i,r]:n},[1/0,null])[1]}function Tj(e,t,n){e.nodes().forEach(e=>t.node(e).rank+=n)}var{preorder:Ej,postorder:Dj}=iA,Oj=kj;kj.initLowLimValues=Nj,kj.initCutValues=Aj,kj.calcCutValue=Mj,kj.leaveEdge=Fj,kj.enterEdge=Ij,kj.exchangeEdges=Lj;function kj(e){e=MA(e),yj(e);let t=xj(e);Nj(t),Aj(t,e);let n,r;for(;n=Fj(t);)r=Ij(t,e,n),Lj(t,e,n,r)}function Aj(e,t){let n=Dj(e,e.nodes());n=n.slice(0,n.length-1),n.forEach(n=>jj(e,t,n))}function jj(e,t,n){let r=e.node(n).parent,i=e.edge(n,r);i.cutvalue=Mj(e,t,n)}function Mj(e,t,n){let r=e.node(n).parent,i=!0,a=t.edge(n,r),o=0;a||=(i=!1,t.edge(r,n)),o=a.weight;let s=t.nodeEdges(n);return s&&s.forEach(a=>{let s=a.v===n,c=s?a.w:a.v;if(c!==r){let r=s===i,l=t.edge(a).weight;if(o+=r?l:-l,zj(e,n,c)){let t=e.edge(n,c).cutvalue;o+=r?-t:t}}}),o}function Nj(e,t){arguments.length<2&&(t=e.nodes()[0]),Pj(e,{},1,t)}function Pj(e,t,n,r,i){let a=n,o=e.node(r);t[r]=!0;let s=e.neighbors(r);return s&&s.forEach(i=>{Object.hasOwn(t,i)||(n=Pj(e,t,n,i,r))}),o.low=a,o.lim=n++,i?o.parent=i:delete o.parent,n}function Fj(e){return e.edges().find(t=>e.edge(t).cutvalue<0)}function Ij(e,t,n){let r=n.v,i=n.w;t.hasEdge(r,i)||(r=n.w,i=n.v);let a=e.node(r),o=e.node(i),s=a,c=!1;return a.lim>o.lim&&(s=o,c=!0),t.edges().filter(t=>c===Bj(e,e.node(t.v),s)&&c!==Bj(e,e.node(t.w),s)).reduce((e,n)=>bj(t,n)<bj(t,e)?n:e)}function Lj(e,t,n,r){let i=n.v,a=n.w;e.removeEdge(i,a),e.setEdge(r.v,r.w,{}),Nj(e),Aj(e,t),Rj(e,t)}function Rj(e,t){let n=e.nodes().find(t=>!e.node(t).parent);if(!n)return;let r=Ej(e,[n]);r=r.slice(1),r.forEach(n=>{let r=e.node(n).parent,i=t.edge(n,r),a=!1;i||(i=t.edge(r,n),a=!0),t.node(n).rank=t.node(r).rank+(a?i.minlen:-i.minlen)})}function zj(e,t,n){return e.hasEdge(t,n)}function Bj(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}var Vj=Hj;function Hj(e){let t=e.graph().ranker;if(typeof t==`function`)return t(e);switch(t){case`network-simplex`:Gj(e);break;case`tight-tree`:Wj(e);break;case`longest-path`:Uj(e);break;case`none`:break;default:Gj(e)}}var Uj=yj;function Wj(e){yj(e),xj(e)}function Gj(e){Oj(e)}var Kj=qj;function qj(e){let t=Yj(e),n=e.graph();Array.isArray(n.dummyChains)&&n.dummyChains.forEach(n=>{let r=e.node(n),i=r.edgeObj,a=Jj(e,t,i.v,i.w),o=a.path,s=a.lca,c=0,l=o[c],u=!0;for(;n!==i.w;){if(r=e.node(n),u){for(;(l=o[c])!==s&&e.node(l).maxRank<r.rank;)c++;l===s&&(u=!1)}if(!u){for(;c<o.length-1&&e.node(o[c+1]).minRank<=r.rank;)c++;l=o[c]}l!==void 0&&e.setParent(n,l),n=e.successors(n)[0]}})}function Jj(e,t,n,r){let i=[],a=[],o=Math.min(t[n].low,t[r].low),s=Math.max(t[n].lim,t[r].lim),c;c=n;do c=e.parent(c),i.push(c);while(c&&(t[c].low>o||s>t[c].lim));let l=c,u=r;for(;(u=e.parent(u))!==l;)a.push(u);return{path:i.concat(a.reverse()),lca:l}}function Yj(e){let t={},n=0;function r(i){let a=n;e.children(i).forEach(r),t[i]={low:a,lim:n++}}return e.children(QA).forEach(r),t}function Xj(e){let t=jA(e,`root`,{},`_root`),n=Qj(e),r=Object.values(n),i=VA(Math.max,r)-1,a=2*i+1;e.graph().nestingRoot=t,e.edges().forEach(t=>e.edge(t).minlen*=a);let o=$j(e)+1;e.children(QA).forEach(r=>{Zj(e,t,a,o,i,n,r)}),e.graph().nodeRankFactor=a}function Zj(e,t,n,r,i,a,o){let s=e.children(o);if(!s.length){o!==t&&e.setEdge(t,o,{weight:0,minlen:n});return}let c=RA(e,`_bt`),l=RA(e,`_bb`),u=e.node(o);e.setParent(c,o),u.borderTop=c,e.setParent(l,o),u.borderBottom=l,s.forEach(s=>{Zj(e,t,n,r,i,a,s);let u=e.node(s),d=u.borderTop?u.borderTop:s,f=u.borderBottom?u.borderBottom:s,p=u.borderTop?r:2*r,m=d===f?i-(a[o]??0)+1:1;e.setEdge(c,d,{weight:p,minlen:m,nestingEdge:!0}),e.setEdge(f,l,{weight:p,minlen:m,nestingEdge:!0})}),e.parent(o)||e.setEdge(t,c,{weight:0,minlen:i+(a[o]??0)})}function Qj(e){let t={};function n(r,i){let a=e.children(r);a&&a.length&&a.forEach(e=>n(e,i+1)),t[r]=i}return e.children(QA).forEach(e=>n(e,1)),t}function $j(e){return e.edges().reduce((t,n)=>t+e.edge(n).weight,0)}function eM(e){let t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,e.edges().forEach(t=>{e.edge(t).nestingEdge&&e.removeEdge(t)})}var tM=nM;function nM(e){function t(n){let r=e.children(n),i=e.node(n);if(r.length&&r.forEach(t),i&&Object.hasOwn(i,`minRank`)){i.borderLeft=[],i.borderRight=[];for(let t=i.minRank,r=i.maxRank+1;t<r;++t)rM(e,`borderLeft`,`_bl`,n,i,t),rM(e,`borderRight`,`_br`,n,i,t)}}e.children(QA).forEach(t)}function rM(e,t,n,r,i,a){let o={width:0,height:0,rank:a,borderType:t},s=i[t][a-1],c=jA(e,`border`,o,n);i[t][a]=c,e.setParent(c,r),s&&e.setEdge(s,c,{weight:1})}function iM(e){let t=e.graph().rankdir?.toLowerCase();(t===`lr`||t===`rl`)&&oM(e)}function aM(e){let t=e.graph().rankdir?.toLowerCase();(t===`bt`||t===`rl`)&&cM(e),(t===`lr`||t===`rl`)&&(uM(e),oM(e))}function oM(e){e.nodes().forEach(t=>sM(e.node(t))),e.edges().forEach(t=>sM(e.edge(t)))}function sM(e){let t=e.width;e.width=e.height,e.height=t}function cM(e){e.nodes().forEach(t=>lM(e.node(t))),e.edges().forEach(t=>{var n;let r=e.edge(t);(n=r.points)==null||n.forEach(lM),Object.hasOwn(r,`y`)&&lM(r)})}function lM(e){e.y=-e.y}function uM(e){e.nodes().forEach(t=>dM(e.node(t))),e.edges().forEach(t=>{var n;let r=e.edge(t);(n=r.points)==null||n.forEach(dM),Object.hasOwn(r,`x`)&&dM(r)})}function dM(e){let t=e.x;e.x=e.y,e.y=t}function fM(e,t=null){let n={},r=e.nodes().filter(t=>!e.children(t).length),i=r.map(t=>e.node(t).rank),a=JA(VA(Math.max,i)+1).map(()=>[]);function o(t){if(n[t])return;n[t]=!0;let r=e.node(t);a[r.rank].push(t);let i=e.successors(t);i&&[...i].sort((e,t)=>s(e,t)).forEach(o)}r.sort((t,n)=>e.node(t).rank-e.node(n).rank).forEach(o);function s(n,r){return $A(t,e.node(n),e.node(r))}return a}function pM(e,t){let n=0;for(let r=1;r<t.length;++r)n+=mM(e,t[r-1],t[r]);return n}function mM(e,t,n){let r=ZA(n,n.map((e,t)=>t)),i=t.flatMap(t=>{let n=e.outEdges(t);return n?n.map(t=>({pos:r[t.w],weight:e.edge(t).weight})).sort((e,t)=>e.pos-t.pos):[]}),a=1;for(;a<n.length;)a<<=1;let o=2*a-1;--a;let s=Array(o).fill(0),c=0;return i.forEach(e=>{let t=e.pos+a;s[t]+=e.weight;let n=0;for(;t>0;)t%2&&(n+=s[t+1]),t=t-1>>1,s[t]+=e.weight;c+=e.weight*n}),c}function hM(e,t=[]){return t.map(t=>{let n=e.inEdges(t);if(!n||!n.length)return{v:t};{let r=n.reduce((t,n)=>{let r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}})}function gM(e,t){let n={};return e.forEach((e,t)=>{let r={indegree:0,in:[],out:[],vs:[e.v],i:t};e.barycenter!==void 0&&(r.barycenter=e.barycenter,r.weight=e.weight),n[e.v]=r}),t.edges().forEach(e=>{let t=n[e.v],r=n[e.w];t!==void 0&&r!==void 0&&(r.indegree++,t.out.push(r))}),_M(Object.values(n).filter(e=>!e.indegree))}function _M(e){let t=[];function n(e){return t=>{t.merged||(t.barycenter===void 0||e.barycenter===void 0||t.barycenter>=e.barycenter)&&vM(e,t)}}function r(t){return n=>{n.in.push(t),--n.indegree===0&&e.push(n)}}for(;e.length;){let i=e.pop();t.push(i),i.in.reverse().forEach(n(i)),i.out.forEach(r(i))}return t.filter(e=>!e.merged).map(e=>YA(e,[`vs`,`i`,`barycenter`,`weight`]))}function vM(e,t){let n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}function yM(e,t,n,r,i){let a={},o=null,s=null,c=i;typeof t==`boolean`?(c=t,a={}):t&&(a=t,o=n??null,s=r??null);let l=UA(e,e=>Object.hasOwn(e,`barycenter`)),u=l.lhs,d=l.rhs.sort((e,t)=>t.i-e.i),f=[],p=0,m=0,h=0;u.sort(xM(s,o,!!c));for(let[e,t]of Object.entries(a)){let n=u.findIndex(t=>t.vs[0]===e);u.splice(n+1,0,t)}h=bM(f,d,h),u.forEach(e=>{h+=e.vs.length,f.push(e.vs),p+=e.barycenter*e.weight,m+=e.weight,h=bM(f,d,h)});let g={vs:f.flat(1)};return m&&(g.barycenter=p/m,g.weight=m),g}function bM(e,t,n){let r;for(;t.length&&(r=t[t.length-1]).i<=n;)t.pop(),e.push(r.vs),n++;return n}function xM(e,t,n){return(r,i)=>{if(r.barycenter<i.barycenter)return-1;if(r.barycenter>i.barycenter)return 1;if(e&&(typeof r.vs[0]==`string`||typeof i.vs[0]==`string`)){let n=$A(t,e.node(r.vs[0]),e.node(i.vs[0]));if(n!==0)return n}return n?i.i-r.i:r.i-i.i}}function SM(e,t,n,r,i){var a,o;let s=null,c=i;typeof r==`boolean`?(c=r,s=null):r!==void 0&&(s=r);let l=e.children(t),u=e.node(t),d=u?u.borderLeft:void 0,f=u?u.borderRight:void 0,p={};d&&(l=l.filter(e=>e!==d&&e!==f));let m=hM(e,l);m.forEach(t=>{if(e.children(t.v).length){let{result:r}=SM(e,t.v,n,s,c);p[t.v]=r,Object.hasOwn(r,`barycenter`)&&wM(t,r)}});let h=gM(m,n);CM(h,p);let g={},_=!1;for(let t=0;t<h.length;t++)for(let n=t+1;n<h.length;n++)if(!(!h[t]||!h[n]||!((a=h[t])!=null&&a.barycenter)||!((o=h[n])!=null&&o.barycenter))&&h[t]?.barycenter===h[n].barycenter){let r=h[t]?.vs[0]??``,i=h[n]?.vs[0]??``,a=e.node(r),o=e.node(i);if(a.dummy===`edge`&&o.dummy===`edge`&&a.edgeObj?.v===o.edgeObj?.v&&a.edgeObj?.w===o.edgeObj?.w){if(a.edgeLabel.reversed){g[i]=h[t],h.splice(t,1),t--;break}g[r]=h[n],h.splice(n,1),n--}else _=!0}let v=yM(h,g,s,e,c);if(d&&f){v.vs=[d,v.vs,f].flat(1);let t=e.predecessors(d);if(t&&t.length){let n=e.node(t[0]),r=e.predecessors(f),i=e.node(r[0]);Object.hasOwn(v,`barycenter`)||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+n.order+i.order)/(v.weight+2),v.weight+=2}}return Object.defineProperty(v,"result",{value:v,enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(v,"usedBias",{value:_,enumerable:!1,configurable:!0,writable:!0}),v}function CM(e,t){e.forEach(e=>{e.vs=e.vs.flatMap(e=>t[e]?t[e].vs:e)})}function wM(e,t){e.barycenter===void 0?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}function TM(e,t,n,r){r||=e.nodes();let i=EM(e),a=new AA({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(t=>e.node(t));return r.forEach(r=>{let o=e.node(r),s=e.parent(r);if(o.rank===t||o.minRank<=t&&t<=o.maxRank){a.setNode(r),a.setParent(r,s||i);let c=e[n](r);c&&c.forEach(t=>{let n=t.v===r?t.w:t.v,i=a.edge(n,r),o=i===void 0?0:i.weight;a.setEdge(n,r,{weight:e.edge(t).weight+o})}),Object.hasOwn(o,`minRank`)&&a.setNode(r,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]})}}),a}function EM(e){let t;for(;e.hasNode(t=qA(`_root`)););return t}function DM(e,t,n){let r={},i;n.forEach(n=>{let a=e.parent(n),o,s;for(;a;){if(o=e.parent(a),o?(s=r[o],r[o]=a):(s=i,i=a),s&&s!==a){t.setEdge(s,a);return}a=o}})}function OM(e,t={},n=null){if(typeof t.customOrder==`function`){t.customOrder(e,OM);return}let r=HA(e),i=kM(e,JA(1,r+1),`inEdges`),a=kM(e,JA(r-1,-1,-1),`outEdges`),o=fM(e,n);if(jM(e,o),t.disableOptimalOrderHeuristic)return;let s=1/0,c,l=t.constraints||[];for(let t=0,r=0;r<4;++t,++r){AM(t%2?i:a,t%4>=2,l,n),o=FA(e);let u=pM(e,o);u<s?(r=0,c=Object.assign({},o),s=u):u===s&&(c=structuredClone(o))}jM(e,c)}function kM(e,t,n){let r=new Map,i=(e,t)=>{r.has(e)||r.set(e,[]),r.get(e).push(t)};for(let t of e.nodes()){let n=e.node(t);if(typeof n.rank==`number`&&i(n.rank,t),typeof n.minRank==`number`&&typeof n.maxRank==`number`)for(let e=n.minRank;e<=n.maxRank;e++)e!==n.rank&&i(e,t)}return t.map(function(t){return TM(e,t,n,r.get(t)||[])})}function AM(e,t,n,r){let i=!0,a=new AA;e.forEach(function(e){n.forEach(e=>a.setEdge(e.left,e.right));let o=e.graph().root,{result:s,usedBias:c}=SM(e,o,a,r,i);t&&c&&(i=!i),s.vs.forEach((t,n)=>e.node(t).order=n),DM(e,a,s.vs)})}function jM(e,t){Object.values(t).forEach(t=>t.forEach((t,n)=>e.node(t).order=n))}function MM(e,t){let n={};function r(t,r){let i=0,a=0,o=t.length,s=r[r.length-1];return r.forEach((t,c)=>{let l=PM(e,t),u=l?e.node(l).order:o;(l||t===s)&&(r.slice(a,c+1).forEach(t=>{let r=e.predecessors(t);r&&r.forEach(r=>{let a=e.node(r),o=a.order;(o<i||u<o)&&!(a.dummy&&e.node(t).dummy)&&FM(n,r,t)})}),a=c+1,i=u)}),r}return t.length&&t.reduce(r),n}function NM(e,t){let n={};function r(t,r,i,a,o){JA(r,i).forEach(r=>{let i=t[r];if(i!==void 0&&e.node(i).dummy){let t=e.predecessors(i);t&&t.forEach(t=>{if(t===void 0)return;let r=e.node(t);r.dummy&&(r.order<a||r.order>o)&&FM(n,t,i)})}})}function i(t,n){let i=-1,a=-1,o=0;return n.forEach((s,c)=>{if(e.node(s).dummy===`border`){let t=e.predecessors(s);if(t&&t.length){let s=t[0];if(s===void 0)return;a=e.node(s).order,r(n,o,c,i,a),o=c,i=a}}r(n,o,n.length,a,t.length)}),n}return t.length&&t.reduce(i),n}function PM(e,t){if(e.node(t).dummy){let n=e.predecessors(t);if(n)return n.find(t=>e.node(t).dummy)}}function FM(e,t,n){if(t>n){let e=t;t=n,n=e}let r=e[t];r||(e[t]=r={}),r[n]=!0}function IM(e,t,n){if(t>n){let e=t;t=n,n=e}let r=e[t];return r!==void 0&&Object.hasOwn(r,n)}function LM(e,t,n,r,i){let a={},o={},s={};return t.forEach(e=>{e.forEach((e,t)=>{a[e]=e,o[e]=e,s[e]=t})}),t.forEach(t=>{let c=-1,l=-1,u=!1,d=t,f=t.findIndex(t=>i?.includes(t)||KM(t,e,i));f>0&&(d=[t[f],...t.slice(0,f),...t.slice(f+1)],u=!0),d.forEach(t=>{let d=r(t);if(d&&d.length){i!=null&&i.includes(t)&&(d=d.filter(t=>KM(t,e,i)));let r=d.sort((e,t)=>{let n=s[e],r=s[t];return(n===void 0?0:n)-(r===void 0?0:r)}),f=(r.length-1)/2;for(let e=Math.floor(f),i=Math.ceil(f);e<=i;++e){let i=r[e];if(i===void 0)continue;let d=s[i];if(d!==void 0&&o[t]===t&&c<d&&s[i]!==l&&!IM(n,t,i)){let e=a[i];e!==void 0&&(o[i]=t,o[t]=a[t]=e,c=d,u&&=(c=-1,l=s[i]??-1,!1))}}}})}),{root:a,align:o}}function RM(e,t,n,r,i=!1){let a={},o=zM(e,t,n,i),s=i?`borderLeft`:`borderRight`;function c(e,t){let n=o.nodes().slice(),r={},i=n.pop();for(;i;){if(r[i])e(i);else{r[i]=!0,n.push(i);for(let e of t(i))n.push(e)}i=n.pop()}}function l(e){let t=o.inEdges(e);t?a[e]=t.reduce((e,t)=>{let n=a[t.v]??0,r=o.edge(t);return Math.max(e,n+(r===void 0?0:r))},0):a[e]=0}function u(t){let n=o.outEdges(t),r=1/0;n&&(r=n.reduce((e,t)=>{let n=a[t.w],r=o.edge(t);return Math.min(e,(n===void 0?0:n)-(r===void 0?0:r))},1/0));let i=e.node(t);r!==1/0&&i.borderType!==s&&(a[t]=Math.max(a[t]===void 0?0:a[t],r))}function d(e){return o.predecessors(e)||[]}function f(e){return o.successors(e)||[]}return c(l,d),c(u,f),Object.keys(r).forEach(e=>{let t=n[e];t!==void 0&&(a[e]=a[t]??0)}),a}function zM(e,t,n,r){let i=new AA,a=e.graph(),o=WM(a.nodesep,a.edgesep,r);return t.forEach(t=>{let r;t.forEach(t=>{let a=n[t];if(a!==void 0){if(i.setNode(a),r!==void 0){let s=n[r];if(s!==void 0){let n=i.edge(s,a);i.setEdge(s,a,Math.max(o(e,t,r),n||0))}}r=t}})}),i}function BM(e,t){return Object.values(t).reduce((t,n)=>{let r=-1/0,i=1/0;Object.entries(n).forEach(([t,n])=>{let a=GM(e,t)/2;r=Math.max(n+a,r),i=Math.min(n-a,i)});let a=r-i;return a<t[0]&&(t=[a,n]),t},[1/0,null])[1]}function VM(e,t){let n=Object.values(t),r=VA(Math.min,n),i=VA(Math.max,n);[`u`,`d`].forEach(n=>{[`l`,`r`].forEach(a=>{let o=n+a,s=e[o];if(!s||s===t)return;let c=Object.values(s),l=r-VA(Math.min,c);a!==`l`&&(l=i-VA(Math.max,c)),l&&(e[o]=XA(s,e=>e+l))})})}function HM(e,t=void 0){let n=e.ul;return n?XA(n,(n,r)=>{if(t){let n=e[t.toLowerCase()];if(n&&n[r]!==void 0)return n[r]}let i=Object.values(e).map(e=>{let t=e[r];return t===void 0?0:t}).sort((e,t)=>e-t);return((i[1]??0)+(i[2]??0))/2}):{}}function UM(e,t){let n=FA(e),r=Object.assign(MM(e,n),NM(e,n)),i={},a;return[`u`,`d`].forEach(o=>{a=o===`u`?n:Object.values(n).reverse(),[`l`,`r`].forEach(n=>{n===`r`&&(a=a.map(e=>Object.values(e).reverse()));let s=LM(e,a,r,t=>(o===`u`?e.predecessors(t):e.successors(t))||[],t),c=RM(e,a,s.root,s.align,n===`r`);n===`r`&&(c=XA(c,e=>-e)),i[o+n]=c})}),VM(i,BM(e,i)),HM(i,e.graph().align)}function WM(e,t,n){return(r,i,a)=>{let o=r.node(i),s=r.node(a),c=0,l;if(c+=o.width/2,Object.hasOwn(o,`labelpos`))switch(o.labelpos.toLowerCase()){case`l`:l=-o.width/2;break;case`r`:l=o.width/2;break}if(l&&(c+=n?l:-l),l=void 0,c+=(o.dummy?t:e)/2,c+=(s.dummy?t:e)/2,c+=s.width/2,Object.hasOwn(s,`labelpos`))switch(s.labelpos.toLowerCase()){case`l`:l=s.width/2;break;case`r`:l=-s.width/2;break}return l&&(c+=n?l:-l),c}}function GM(e,t){return e.node(t).width}function KM(e,t,n){if(!n)return!1;let r=t.node(e)?.edgeObj;if(!r||t.node(e).edgeLabel.reversed)return!1;let i=n.indexOf(r?.v),a=n.indexOf(r?.w);return i!==-1&&a!==-1&&i===(a+1)%n.length||i===(a-1)%n.length}function qM(e,t){e=NA(e),JM(e),Object.entries(UM(e,t)).forEach(([t,n])=>e.node(t).x=n)}function JM(e){let t=FA(e),n=e.graph(),r=n.ranksep,i=n.rankalign,a=0;t.forEach(t=>{let n=t.reduce((t,n)=>{let r=e.node(n).height??0;return t>r?t:r},0);t.forEach(t=>{let r=e.node(t);r.y=i===`top`?a+r.height/2:i===`bottom`?a+n-r.height/2:a+n/2}),a+=n+r})}var YM=new WeakMap;function XM(e,t={}){return QM(e,GA,t),e}function ZM(e,t,n){let r=t;for(;r!==void 0;){let t=e.parent(r);if(t===n)return r;r=t}}function QM(e,t,n){let r=e.nodes().filter(t=>e.children(t).length),i={};r.forEach(r=>{let a=e.node(r);if(a&&a.rankdir){let o=new AA({multigraph:!0,compound:!0});o.setGraph({rankdir:a.rankdir});let s=e.children(r);s.forEach(t=>{let n={...e.node(t)};o.setNode(t,n);let i=e.parent(t);i&&i!==r&&s.includes(i)&&o.setParent(t,i)});let c=new Set;e.edges().forEach(t=>{let n=ZM(e,t.v,r),i=ZM(e,t.w,r);if(n&&i&&n!==i){let r=`${n}\0${i}`;c.has(r)||(c.add(r),o.setEdge(n,i,{...e.edge(t)}))}}),QM(o,t,n);let l=lN(o);$M(l,t,n,null),eN(o,l);let u=1/0,d=1/0,f=-1/0,p=-1/0;o.nodes().forEach(e=>{if(e===r)return;let t=o.node(e);t&&typeof t.x==`number`&&typeof t.y==`number`&&typeof t.width==`number`&&typeof t.height==`number`&&(u=Math.min(u,t.x-t.width/2),f=Math.max(f,t.x+t.width/2),d=Math.min(d,t.y-t.height/2),p=Math.max(p,t.y+t.height/2))}),(!isFinite(u)||!isFinite(d)||!isFinite(f)||!isFinite(p))&&(u=d=0,f=p=0);let m=f-u,h=p-d;i[r]={minX:u,minY:d,maxX:f,maxY:p,width:m,height:h,offsetX:u,offsetY:d},a._dagreClusterSubgraph=o}});let a=[],o=t=>{let n=[],r=(e.children(t)||[]).filter(e=>e!==t);for(;r.length>0;){let t=r.shift();n.push(t),(e.children(t)||[]).filter(e=>e!==t).forEach(e=>r.push(e))}return n},s=new Map;r.forEach(t=>{let n=e.node(t);n&&n.rankdir&&i[t]&&s.set(t,(e.children(t)||[]).filter(e=>e!==t))});let c=new Set([...s.values()].flat()),l=new Map;s.forEach((e,t)=>{c.has(t)||l.set(t,o(t))});let u=new Set([...l.values()].flat()),d=e=>{for(let[t,n]of l)if(n.includes(e))return t;return e},f=[];e.edges().forEach(t=>{(u.has(t.v)||u.has(t.w))&&f.push({edge:t,label:e.edge(t)})});let p=new Map;u.forEach(t=>{let n=e.parent(t);p.set(t,typeof n==`string`?n:void 0)}),l.forEach((t,n)=>{let r=e.node(n),o=[];t.forEach(t=>{let n=e.node(t);n&&(o.push({id:t,node:n,parent:p.get(t)}),e.removeNode(t))});let s=f.filter(({edge:e})=>t.includes(e.v)||t.includes(e.w)),c=i[n];r&&(a.push({clusterId:n,subgraph:r._dagreClusterSubgraph,bounds:c,children:t,removedNodes:o,removedEdges:s}),r.width=c.width,r.height=c.height)});let m=new Set;f.forEach(({edge:t,label:n})=>{let r=d(t.v),i=d(t.w);if(r!==i&&e.hasNode(r)&&e.hasNode(i)){let t=`${r}\0${i}`;m.has(t)||(m.add(t),e.setEdge(r,i,{...n,width:0,height:0}))}});let h=lN(e),g=$M(h,t,n,YM.get(e)??null);YM.set(e,g),eN(e,h),m.forEach(t=>{let n=t.indexOf(`\0`),r=t.slice(0,n),i=t.slice(n+1);e.hasEdge(r,i)&&e.removeEdge(r,i)}),a.forEach(({clusterId:t,subgraph:n,bounds:r,removedNodes:i,removedEdges:a})=>{let o=e.node(t),s=o?.x??0,c=o?.y??0,l=(r.minX+r.maxX)/2,u=(r.minY+r.maxY)/2;i.forEach(({id:t,node:n,parent:r})=>{e.setNode(t,n),r!==void 0&&e.setParent(t,r)}),a.forEach(({edge:t,label:n})=>{e.setEdge(t,n)}),n.nodes().forEach(r=>{if(r===t)return;let i=n.node(r),a=e.node(r);a&&i&&typeof i.x==`number`&&typeof i.y==`number`&&(a.x=s+(i.x-l),a.y=c+(i.y-u))}),delete o._dagreClusterSubgraph}),r.forEach(t=>{let n=e.node(t),r=i[t];if(n&&n.rankdir&&n._dagreClusterSubgraph&&r){let i=n._dagreClusterSubgraph,a=n.x??0,o=n.y??0,s=(r.minX+r.maxX)/2,c=(r.minY+r.maxY)/2;i.nodes().forEach(n=>{if(n===t)return;let r=i.node(n),l=e.node(n);if(l&&r&&typeof r.x==`number`&&typeof r.y==`number`){let e=r.x-s,t=r.y-c;l.x=a+e,l.y=o+t}}),delete n._dagreClusterSubgraph}})}function $M(e,t,n,r=null){var i,a;let o=n?.useDynamic!==!1,s=o&&(i=r?.graph)!=null?i:null,c=o&&(a=r?.rawNodes)!=null?a:null;t(` makeSpaceForEdgeLabels`,()=>uN(e)),t(` removeSelfEdges`,()=>yN(e)),t(` acyclic`,()=>fj(e,s)),t(` nestingGraph.run`,()=>Xj(e)),t(` rank`,()=>Vj(NA(e))),t(` injectEdgeLabelProxies`,()=>dN(e)),t(` removeEmptyRanks`,()=>LA(e)),t(` nestingGraph.cleanup`,()=>eM(e)),t(` normalizeRanks`,()=>IA(e)),t(` assignRankMinMax`,()=>fN(e)),t(` removeEdgeLabelProxies`,()=>pN(e)),t(` normalize.run`,()=>gj(e)),t(` parentDummyChains`,()=>Kj(e)),t(` addBorderSegments`,()=>tM(e)),t(` order`,()=>OM(e,n,c)),t(` insertSelfEdges`,()=>bN(e)),t(` adjustCoordinateSystem`,()=>iM(e)),t(` position`,()=>qM(e,n.corePath)),t(` positionSelfEdges`,()=>xN(e));let l=JSON.parse(JSON.stringify(e._nodes));return t(` removeBorderNodes`,()=>vN(e)),t(` normalize.undo`,()=>vj(e)),t(` fixupEdgeLabelCoords`,()=>gN(e)),t(` undoCoordinateSystem`,()=>aM(e)),t(` translateGraph`,()=>mN(e)),t(` assignNodeIntersects`,()=>hN(e)),t(` reversePoints`,()=>_N(e)),t(` acyclic.undo`,()=>mj(e)),{graph:e,rawNodes:l}}function eN(e,t){e.nodes().forEach(n=>{let r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,r.order=i.order,r.rank=i.rank,t.children(n).length&&(r.width=i.width,r.height=i.height))}),e.edges().forEach(n=>{let r=e.edge(n),i=t.edge(n);r.points=i.points,Object.hasOwn(i,`x`)&&(r.x=i.x,r.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}var tN=[`nodesep`,`edgesep`,`ranksep`,`marginx`,`marginy`],nN={ranksep:50,edgesep:20,nodesep:50,rankdir:`TB`,rankalign:`center`},rN=[`acyclicer`,`ranker`,`rankdir`,`align`,`rankalign`],iN=[`width`,`height`,`rank`],aN={width:0,height:0},oN=[`minlen`,`weight`,`width`,`height`,`labeloffset`],sN={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:`r`},cN=[`labelpos`];function lN(e){let t=new AA({multigraph:!0,compound:!0}),n=CN(e.graph());return t.setGraph(Object.assign({},nN,SN(n,tN),YA(n,rN))),e.nodes().forEach(n=>{let r=SN(CN(e.node(n)),iN);Object.keys(aN).forEach(e=>{r[e]===void 0&&(r[e]=aN[e])}),t.setNode(n,r);let i=e.parent(n);i!==void 0&&t.setParent(n,i)}),e.edges().forEach(n=>{let r=CN(e.edge(n));t.setEdge(n,Object.assign({},sN,SN(r,oN),YA(r,cN)))}),t}function uN(e){let t=e.graph();t.ranksep/=2,e.edges().forEach(n=>{let r=e.edge(n);r.minlen*=2,(r.labelpos??`r`).toLowerCase()!==`c`&&(t.rankdir===`TB`||t.rankdir===`BT`?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function dN(e){e.edges().forEach(t=>{let n=e.edge(t);if(n.width&&n.height){let n=e.node(t.v);jA(e,`edge-proxy`,{rank:(e.node(t.w).rank-n.rank)/2+n.rank,e:t},`_ep`)}})}function fN(e){let t=0;e.nodes().forEach(n=>{let r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=Math.max(t,r.maxRank))}),e.graph().maxRank=t}function pN(e){e.nodes().forEach(t=>{let n=e.node(t);if(n.dummy===`edge-proxy`){let r=n;e.edge(r.e).labelRank=n.rank,e.removeNode(t)}})}function mN(e){let t=1/0,n=0,r=1/0,i=0,a=e.graph(),o=a.marginx||0,s=a.marginy||0;function c(e){let a=e.x,o=e.y,s=e.width,c=e.height;t=Math.min(t,a-s/2),n=Math.max(n,a+s/2),r=Math.min(r,o-c/2),i=Math.max(i,o+c/2)}e.nodes().forEach(t=>c(e.node(t))),e.edges().forEach(t=>{let n=e.edge(t);Object.hasOwn(n,`x`)&&c(n)}),t-=o,r-=s,e.nodes().forEach(n=>{let i=e.node(n);i.x-=t,i.y-=r}),e.edges().forEach(n=>{let i=e.edge(n);i.points.forEach(e=>{e.x-=t,e.y-=r}),Object.hasOwn(i,`x`)&&(i.x-=t),Object.hasOwn(i,`y`)&&(i.y-=r)}),a.width=n-t+o,a.height=i-r+s}function hN(e){e.edges().forEach(t=>{if(t.v===t.w)return;let n=e.edge(t),r=e.node(t.v),i=e.node(t.w),a,o;n.points?(a=n.points[0],o=n.points[n.points.length-1]):(n.points=[],a=i,o=r),n.points.unshift(PA(r,a)),n.points.push(PA(i,o))})}function gN(e){e.edges().forEach(t=>{let n=e.edge(t);if(Object.hasOwn(n,`x`))switch((n.labelpos===`l`||n.labelpos===`r`)&&(n.width-=n.labeloffset),n.labelpos){case`l`:n.x-=n.width/2+n.labeloffset;break;case`r`:n.x+=n.width/2+n.labeloffset;break}})}function _N(e){e.edges().forEach(t=>{let n=e.edge(t);n.reversed&&n.points.reverse()})}function vN(e){e.nodes().forEach(t=>{if(e.children(t).length){let n=e.node(t),r=e.node(n.borderTop),i=e.node(n.borderBottom),a=e.node(n.borderLeft[n.borderLeft.length-1]),o=e.node(n.borderRight[n.borderRight.length-1]);n.width=Math.abs(o.x-a.x),n.height=Math.abs(i.y-r.y),n.x=a.x+n.width/2,n.y=r.y+n.height/2}}),e.nodes().forEach(t=>{e.node(t).dummy===`border`&&e.removeNode(t)})}function yN(e){e.edges().forEach(t=>{if(t.v===t.w){let n=e.node(t.v);n.selfEdges||=[],n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function bN(e){FA(e).forEach(t=>{let n=0;t.forEach((t,r)=>{let i=e.node(t);typeof i.rank!=`number`&&(i.rank=0),i.order=r+n,(i.selfEdges||[]).forEach(t=>{jA(e,`selfedge`,{width:t.label.width,height:t.label.height,rank:i.rank,order:r+ ++n,e:t.e,edgeLabel:t.label},`_se`),(!Array.isArray(t.label.points)||t.label.points.length!==7)&&(t.label.points=[{x:0,y:-10},{x:0,y:-10},{x:0,y:0},{x:0,y:10},{x:0,y:10},{x:0,y:0},{x:0,y:0}])}),delete i.selfEdges})})}function xN(e){e.nodes().forEach(t=>{let n=e.node(t),r=e=>typeof e==`number`&&isFinite(e);if(n.dummy===`selfedge`){let i=n,a=e.node(i.e.v),o=r(a?.x)?a.x:0,s=r(a?.y)?a.y:0,c=r(a?.width)?a.width:0,l=r(a?.height)?a.height:0,u=r(n.x)?n.x:o,d=r(n.y)?n.y:s,f=c/2,p=l/2;i.edgeLabel.points=[{x:u+f,y:d-p},{x:u+f,y:d-p},{x:u,y:d},{x:u-f,y:d+p},{x:u-f,y:d+p},{x:u,y:d},{x:u,y:d}],i.edgeLabel.x=u,i.edgeLabel.y=d,e.setEdge(i.e,i.edgeLabel),e.removeNode(t)}else n&&Array.isArray(n.selfEdges)&&n.selfEdges.forEach(e=>{if(!Array.isArray(e.label.points)||e.label.points.length!==7){let t=r(n.x)?n.x:0,i=r(n.y)?n.y:0,a=r(n.width)?n.width:0,o=r(n.height)?n.height:0,s=a/2,c=o/2;e.label.points=[{x:t+s,y:i-c},{x:t+s,y:i-c},{x:t,y:i},{x:t-s,y:i+c},{x:t-s,y:i+c},{x:t,y:i},{x:t,y:i}]}})})}function SN(e,t){return XA(YA(e,t),Number)}function CN(e){let t={};return e&&Object.entries(e).forEach(([e,n])=>{typeof e==`string`&&(e=e.toLowerCase()),t[e]=n}),t}function wN(e){let t=FA(e),n=new AA({compound:!0,multigraph:!0}).setGraph({});return e.nodes().forEach(t=>{n.setNode(t,{label:t}),n.setParent(t,`layer`+e.node(t).rank)}),e.edges().forEach(e=>n.setEdge(e.v,e.w,{},e.name)),t.forEach((e,t)=>{let r=`layer`+t;n.setNode(r,{rank:`same`}),e.reduce((e,t)=>(n.setEdge(e,t,{style:`invis`}),t))}),n}var TN={graphlib:Gk,version:ej,layout:XM,debug:wN,util:{time:WA,notime:GA}};function EN(e){if(typeof e==`string`||typeof e==`number`)return``+e;let t=``;if(Array.isArray(e))for(let n=0,r;n<e.length;n++)(r=EN(e[n]))!==``&&(t+=(t&&` `)+r);else for(let n in e)e[n]&&(t+=(t&&` `)+n);return t}var DN={value:()=>{}};function ON(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new kN(n)}function kN(e){this._=e}function AN(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}kN.prototype=ON.prototype={constructor:kN,on:function(e,t){var n=this._,r=AN(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=jN(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=MN(n[i],e.name,t);else if(t==null)for(i in n)n[i]=MN(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new kN(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function jN(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function MN(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=DN,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var NN={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function PN(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),NN.hasOwnProperty(t)?{space:NN[t],local:e}:e}function FN(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function IN(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function LN(e){var t=PN(e);return(t.local?IN:FN)(t)}function RN(){}function zN(e){return e==null?RN:function(){return this.querySelector(e)}}function BN(e){typeof e!=`function`&&(e=zN(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new OF(r,this._parents)}function VN(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function HN(){return[]}function UN(e){return e==null?HN:function(){return this.querySelectorAll(e)}}function WN(e){return function(){return VN(e.apply(this,arguments))}}function GN(e){e=typeof e==`function`?WN(e):UN(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new OF(r,i)}function KN(e){return function(){return this.matches(e)}}function qN(e){return function(t){return t.matches(e)}}var JN=Array.prototype.find;function YN(e){return function(){return JN.call(this.children,e)}}function XN(){return this.firstElementChild}function ZN(e){return this.select(e==null?XN:YN(typeof e==`function`?e:qN(e)))}var QN=Array.prototype.filter;function $N(){return Array.from(this.children)}function eP(e){return function(){return QN.call(this.children,e)}}function tP(e){return this.selectAll(e==null?$N:eP(typeof e==`function`?e:qN(e)))}function nP(e){typeof e!=`function`&&(e=KN(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new OF(r,this._parents)}function rP(e){return Array(e.length)}function iP(){return new OF(this._enter||this._groups.map(rP),this._parents)}function aP(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}aP.prototype={constructor:aP,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function oP(e){return function(){return e}}function sP(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new aP(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function cP(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new aP(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function lP(e){return e.__data__}function uP(e,t){if(!arguments.length)return Array.from(this,lP);var n=t?cP:sP,r=this._parents,i=this._groups;typeof e!=`function`&&(e=oP(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=dP(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new OF(o,r),o._enter=s,o._exit=c,o}function dP(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function fP(){return new OF(this._exit||this._groups.map(rP),this._parents)}function pP(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function mP(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new OF(s,this._parents)}function hP(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function gP(e){e||=_P;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new OF(i,this._parents).order()}function _P(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function vP(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function yP(){return Array.from(this)}function bP(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function xP(){let e=0;for(let t of this)++e;return e}function SP(){return!this.node()}function CP(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function wP(e){return function(){this.removeAttribute(e)}}function TP(e){return function(){this.removeAttributeNS(e.space,e.local)}}function EP(e,t){return function(){this.setAttribute(e,t)}}function DP(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function OP(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function kP(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function AP(e,t){var n=PN(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?TP:wP:typeof t==`function`?n.local?kP:OP:n.local?DP:EP)(n,t))}function jP(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function MP(e){return function(){this.style.removeProperty(e)}}function NP(e,t,n){return function(){this.style.setProperty(e,t,n)}}function PP(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function FP(e,t,n){return arguments.length>1?this.each((t==null?MP:typeof t==`function`?PP:NP)(e,t,n??``)):IP(this.node(),e)}function IP(e,t){return e.style.getPropertyValue(t)||jP(e).getComputedStyle(e,null).getPropertyValue(t)}function LP(e){return function(){delete this[e]}}function RP(e,t){return function(){this[e]=t}}function zP(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function BP(e,t){return arguments.length>1?this.each((t==null?LP:typeof t==`function`?zP:RP)(e,t)):this.node()[e]}function VP(e){return e.trim().split(/^|\s+/)}function HP(e){return e.classList||new UP(e)}function UP(e){this._node=e,this._names=VP(e.getAttribute(`class`)||``)}UP.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function WP(e,t){for(var n=HP(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function GP(e,t){for(var n=HP(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function KP(e){return function(){WP(this,e)}}function qP(e){return function(){GP(this,e)}}function JP(e,t){return function(){(t.apply(this,arguments)?WP:GP)(this,e)}}function YP(e,t){var n=VP(e+``);if(arguments.length<2){for(var r=HP(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?JP:t?KP:qP)(n,t))}function XP(){this.textContent=``}function ZP(e){return function(){this.textContent=e}}function QP(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function $P(e){return arguments.length?this.each(e==null?XP:(typeof e==`function`?QP:ZP)(e)):this.node().textContent}function eF(){this.innerHTML=``}function tF(e){return function(){this.innerHTML=e}}function nF(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function rF(e){return arguments.length?this.each(e==null?eF:(typeof e==`function`?nF:tF)(e)):this.node().innerHTML}function iF(){this.nextSibling&&this.parentNode.appendChild(this)}function aF(){return this.each(iF)}function oF(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function sF(){return this.each(oF)}function cF(e){var t=typeof e==`function`?e:LN(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function lF(){return null}function uF(e,t){var n=typeof e==`function`?e:LN(e),r=t==null?lF:typeof t==`function`?t:zN(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function dF(){var e=this.parentNode;e&&e.removeChild(this)}function fF(){return this.each(dF)}function pF(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function mF(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function hF(e){return this.select(e?mF:pF)}function gF(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function _F(e){return function(t){e.call(this,t,this.__data__)}}function vF(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function yF(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function bF(e,t,n){return function(){var r=this.__on,i,a=_F(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function xF(e,t,n){var r=vF(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?bF:yF,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function SF(e,t,n){var r=jP(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function CF(e,t){return function(){return SF(this,e,t)}}function wF(e,t){return function(){return SF(this,e,t.apply(this,arguments))}}function TF(e,t){return this.each((typeof t==`function`?wF:CF)(e,t))}function*EF(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var DF=[null];function OF(e,t){this._groups=e,this._parents=t}function kF(){return new OF([[document.documentElement]],DF)}function AF(){return this}OF.prototype=kF.prototype={constructor:OF,select:BN,selectAll:GN,selectChild:ZN,selectChildren:tP,filter:nP,data:uP,enter:iP,exit:fP,join:pP,merge:mP,selection:AF,order:hP,sort:gP,call:vP,nodes:yP,node:bP,size:xP,empty:SP,each:CP,attr:AP,style:FP,property:BP,classed:YP,text:$P,html:rF,raise:aF,lower:sF,append:cF,insert:uF,remove:fF,clone:hF,datum:gF,on:xF,dispatch:TF,[Symbol.iterator]:EF};function jF(e){return typeof e==`string`?new OF([[document.querySelector(e)]],[document.documentElement]):new OF([[e]],DF)}function MF(e){let t;for(;t=e.sourceEvent;)e=t;return e}function NF(e,t){if(e=MF(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var PF={passive:!1},FF={capture:!0,passive:!1};function IF(e){e.stopImmediatePropagation()}function LF(e){e.preventDefault(),e.stopImmediatePropagation()}function RF(e){var t=e.document.documentElement,n=jF(e).on(`dragstart.drag`,LF,FF);`onselectstart`in t?n.on(`selectstart.drag`,LF,FF):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function zF(e,t){var n=e.document.documentElement,r=jF(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,LF,FF),setTimeout(function(){r.on(`click.drag`,null)},0)),`onselectstart`in n?r.on(`selectstart.drag`,null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var BF=e=>()=>e;function VF(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:a,x:o,y:s,dx:c,dy:l,dispatch:u}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:u}})}VF.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function HF(e){return!e.ctrlKey&&!e.button}function UF(){return this.parentNode}function WF(e,t){return t??{x:e.x,y:e.y}}function GF(){return navigator.maxTouchPoints||`ontouchstart`in this}function KF(){var e=HF,t=UF,n=WF,r=GF,i={},a=ON(`start`,`drag`,`end`),o=0,s,c,l,u,d=0;function f(e){e.on(`mousedown.drag`,p).filter(r).on(`touchstart.drag`,g).on(`touchmove.drag`,_,PF).on(`touchend.drag touchcancel.drag`,v).style(`touch-action`,`none`).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}function p(n,r){if(!(u||!e.call(this,n,r))){var i=y(this,t.call(this,n,r),n,r,`mouse`);i&&(jF(n.view).on(`mousemove.drag`,m,FF).on(`mouseup.drag`,h,FF),RF(n.view),IF(n),l=!1,s=n.clientX,c=n.clientY,i(`start`,n))}}function m(e){if(LF(e),!l){var t=e.clientX-s,n=e.clientY-c;l=t*t+n*n>d}i.mouse(`drag`,e)}function h(e){jF(e.view).on(`mousemove.drag mouseup.drag`,null),zF(e.view,l),LF(e),i.mouse(`end`,e)}function g(n,r){if(e.call(this,n,r)){var i=n.changedTouches,a=t.call(this,n,r),o=i.length,s,c;for(s=0;s<o;++s)(c=y(this,a,n,r,i[s].identifier,i[s]))&&(IF(n),c(`start`,n,i[s]))}}function _(e){var t=e.changedTouches,n=t.length,r,a;for(r=0;r<n;++r)(a=i[t[r].identifier])&&(LF(e),a(`drag`,e,t[r]))}function v(e){var t=e.changedTouches,n=t.length,r,a;for(u&&clearTimeout(u),u=setTimeout(function(){u=null},500),r=0;r<n;++r)(a=i[t[r].identifier])&&(IF(e),a(`end`,e,t[r]))}function y(e,t,r,s,c,l){var u=a.copy(),d=NF(l||r,t),p,m,h;if((h=n.call(e,new VF(`beforestart`,{sourceEvent:r,target:f,identifier:c,active:o,x:d[0],y:d[1],dx:0,dy:0,dispatch:u}),s))!=null)return p=h.x-d[0]||0,m=h.y-d[1]||0,function n(r,a,l){var g=d,_;switch(r){case`start`:i[c]=n,_=o++;break;case`end`:delete i[c],--o;case`drag`:d=NF(l||a,t),_=o}u.call(r,e,new VF(r,{sourceEvent:a,subject:h,target:f,identifier:c,active:_,x:d[0]+p,y:d[1]+m,dx:d[0]-g[0],dy:d[1]-g[1],dispatch:u}),s)}}return f.filter=function(t){return arguments.length?(e=typeof t==`function`?t:BF(!!t),f):e},f.container=function(e){return arguments.length?(t=typeof e==`function`?e:BF(e),f):t},f.subject=function(e){return arguments.length?(n=typeof e==`function`?e:BF(e),f):n},f.touchable=function(e){return arguments.length?(r=typeof e==`function`?e:BF(!!e),f):r},f.on=function(){var e=a.on.apply(a,arguments);return e===a?f:e},f.clickDistance=function(e){return arguments.length?(d=(e=+e)*e,f):Math.sqrt(d)},f}function qF(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function JF(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function YF(){}var XF=.7,ZF=1/XF,QF=`\\s*([+-]?\\d+)\\s*`,$F=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,eI=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,tI=/^#([0-9a-f]{3,8})$/,nI=RegExp(`^rgb\\(${QF},${QF},${QF}\\)$`),rI=RegExp(`^rgb\\(${eI},${eI},${eI}\\)$`),iI=RegExp(`^rgba\\(${QF},${QF},${QF},${$F}\\)$`),aI=RegExp(`^rgba\\(${eI},${eI},${eI},${$F}\\)$`),oI=RegExp(`^hsl\\(${$F},${eI},${eI}\\)$`),sI=RegExp(`^hsla\\(${$F},${eI},${eI},${$F}\\)$`),cI={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};qF(YF,pI,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:lI,formatHex:lI,formatHex8:uI,formatHsl:dI,formatRgb:fI,toString:fI});function lI(){return this.rgb().formatHex()}function uI(){return this.rgb().formatHex8()}function dI(){return EI(this).formatHsl()}function fI(){return this.rgb().formatRgb()}function pI(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=tI.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?mI(t):n===3?new vI(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?hI(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?hI(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=nI.exec(e))?new vI(t[1],t[2],t[3],1):(t=rI.exec(e))?new vI(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=iI.exec(e))?hI(t[1],t[2],t[3],t[4]):(t=aI.exec(e))?hI(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=oI.exec(e))?TI(t[1],t[2]/100,t[3]/100,1):(t=sI.exec(e))?TI(t[1],t[2]/100,t[3]/100,t[4]):cI.hasOwnProperty(e)?mI(cI[e]):e===`transparent`?new vI(NaN,NaN,NaN,0):null}function mI(e){return new vI(e>>16&255,e>>8&255,e&255,1)}function hI(e,t,n,r){return r<=0&&(e=t=n=NaN),new vI(e,t,n,r)}function gI(e){return e instanceof YF||(e=pI(e)),e?(e=e.rgb(),new vI(e.r,e.g,e.b,e.opacity)):new vI}function _I(e,t,n,r){return arguments.length===1?gI(e):new vI(e,t,n,r??1)}function vI(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}qF(vI,_I,JF(YF,{brighter(e){return e=e==null?ZF:ZF**+e,new vI(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?XF:XF**+e,new vI(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new vI(CI(this.r),CI(this.g),CI(this.b),SI(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:yI,formatHex:yI,formatHex8:bI,formatRgb:xI,toString:xI}));function yI(){return`#${wI(this.r)}${wI(this.g)}${wI(this.b)}`}function bI(){return`#${wI(this.r)}${wI(this.g)}${wI(this.b)}${wI((isNaN(this.opacity)?1:this.opacity)*255)}`}function xI(){let e=SI(this.opacity);return`${e===1?`rgb(`:`rgba(`}${CI(this.r)}, ${CI(this.g)}, ${CI(this.b)}${e===1?`)`:`, ${e})`}`}function SI(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function CI(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function wI(e){return e=CI(e),(e<16?`0`:``)+e.toString(16)}function TI(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new OI(e,t,n,r)}function EI(e){if(e instanceof OI)return new OI(e.h,e.s,e.l,e.opacity);if(e instanceof YF||(e=pI(e)),!e)return new OI;if(e instanceof OI)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new OI(o,s,c,e.opacity)}function DI(e,t,n,r){return arguments.length===1?EI(e):new OI(e,t,n,r??1)}function OI(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}qF(OI,DI,JF(YF,{brighter(e){return e=e==null?ZF:ZF**+e,new OI(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?XF:XF**+e,new OI(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new vI(jI(e>=240?e-240:e+120,i,r),jI(e,i,r),jI(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new OI(kI(this.h),AI(this.s),AI(this.l),SI(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=SI(this.opacity);return`${e===1?`hsl(`:`hsla(`}${kI(this.h)}, ${AI(this.s)*100}%, ${AI(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function kI(e){return e=(e||0)%360,e<0?e+360:e}function AI(e){return Math.max(0,Math.min(1,e||0))}function jI(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var MI=e=>()=>e;function NI(e,t){return function(n){return e+n*t}}function PI(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function FI(e){return(e=+e)==1?II:function(t,n){return n-t?PI(t,n,e):MI(isNaN(t)?n:t)}}function II(e,t){var n=t-e;return n?NI(e,n):MI(isNaN(e)?t:e)}var LI=(function e(t){var n=FI(t);function r(e,t){var r=n((e=_I(e)).r,(t=_I(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=II(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function RI(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function zI(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function BI(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=YI(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function VI(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function HI(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function UI(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=YI(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var WI=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,GI=new RegExp(WI.source,`g`);function KI(e){return function(){return e}}function qI(e){return function(t){return e(t)+``}}function JI(e,t){var n=WI.lastIndex=GI.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=WI.exec(e))&&(i=GI.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:HI(r,i)})),n=GI.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?qI(c[0].x):KI(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function YI(e,t){var n=typeof t,r;return t==null||n===`boolean`?MI(t):(n===`number`?HI:n===`string`?(r=pI(t))?(t=r,LI):JI:t instanceof pI?LI:t instanceof Date?VI:zI(t)?RI:Array.isArray(t)?BI:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?UI:HI)(e,t)}var XI=180/Math.PI,ZI={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function QI(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*XI,skewX:Math.atan(c)*XI,scaleX:o,scaleY:s}}var $I;function eL(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?ZI:QI(t.a,t.b,t.c,t.d,t.e,t.f)}function tL(e){return e==null||($I||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),$I.setAttribute(`transform`,e),!(e=$I.transform.baseVal.consolidate()))?ZI:(e=e.matrix,QI(e.a,e.b,e.c,e.d,e.e,e.f))}function nL(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:HI(e,i)},{i:c-2,x:HI(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:HI(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:HI(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:HI(e,n)},{i:s-2,x:HI(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var rL=nL(eL,`px, `,`px)`,`deg)`),iL=nL(tL,`, `,`)`,`)`),aL=1e-12;function oL(e){return((e=Math.exp(e))+1/e)/2}function sL(e){return((e=Math.exp(e))-1/e)/2}function cL(e){return((e=Math.exp(2*e))-1)/(e+1)}var lL=(function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<aL)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=oL(y),c=s/(n*g)*(i*cL(t*r+y)-sL(y));return[a+c*d,o+c*f,s*i/oL(t*r+y)]}}return m.duration=h*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i})(Math.SQRT2,2,4),uL=0,dL=0,fL=0,pL=1e3,mL,hL,gL=0,_L=0,vL=0,yL=typeof performance==`object`&&performance.now?performance:Date,bL=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function xL(){return _L||=(bL(SL),yL.now()+vL)}function SL(){_L=0}function CL(){this._call=this._time=this._next=null}CL.prototype=wL.prototype={constructor:CL,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?xL():+n)+(t==null?0:+t),!this._next&&hL!==this&&(hL?hL._next=this:mL=this,hL=this),this._call=e,this._time=n,kL()},stop:function(){this._call&&(this._call=null,this._time=1/0,kL())}};function wL(e,t,n){var r=new CL;return r.restart(e,t,n),r}function TL(){xL(),++uL;for(var e=mL,t;e;)(t=_L-e._time)>=0&&e._call.call(void 0,t),e=e._next;--uL}function EL(){_L=(gL=yL.now())+vL,uL=dL=0;try{TL()}finally{uL=0,OL(),_L=0}}function DL(){var e=yL.now(),t=e-gL;t>pL&&(vL-=t,gL=e)}function OL(){for(var e,t=mL,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:mL=n);hL=e,kL(r)}function kL(e){uL||(dL&&=clearTimeout(dL),e-_L>24?(e<1/0&&(dL=setTimeout(EL,e-yL.now()-vL)),fL&&=clearInterval(fL)):(fL||=(gL=yL.now(),setInterval(DL,pL)),uL=1,bL(EL)))}function AL(e,t,n){var r=new CL;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var jL=ON(`start`,`end`,`cancel`,`interrupt`),ML=[];function NL(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;LL(e,n,{name:t,index:r,group:i,on:jL,tween:ML,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function PL(e,t){var n=IL(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function FL(e,t){var n=IL(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function IL(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function LL(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=wL(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return AL(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(AL(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function RL(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function zL(e){return this.each(function(){RL(this,e)})}function BL(e,t){var n,r;return function(){var i=FL(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function VL(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=FL(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function HL(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=IL(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?BL:VL)(n,e,t))}function UL(e,t,n){var r=e._id;return e.each(function(){var e=FL(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return IL(e,r).value[t]}}function WL(e,t){var n;return(typeof t==`number`?HI:t instanceof pI?LI:(n=pI(t))?(t=n,LI):JI)(e,t)}function GL(e){return function(){this.removeAttribute(e)}}function KL(e){return function(){this.removeAttributeNS(e.space,e.local)}}function qL(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function JL(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function YL(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function XL(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function ZL(e,t){var n=PN(e),r=n===`transform`?iL:WL;return this.attrTween(e,typeof t==`function`?(n.local?XL:YL)(n,r,UL(this,`attr.`+e,t)):t==null?(n.local?KL:GL)(n):(n.local?JL:qL)(n,r,t))}function QL(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function $L(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function eR(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&$L(e,i)),n}return i._value=t,i}function tR(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&QL(e,i)),n}return i._value=t,i}function nR(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=PN(e);return this.tween(n,(r.local?eR:tR)(r,t))}function rR(e,t){return function(){PL(this,e).delay=+t.apply(this,arguments)}}function iR(e,t){return t=+t,function(){PL(this,e).delay=t}}function aR(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?rR:iR)(t,e)):IL(this.node(),t).delay}function oR(e,t){return function(){FL(this,e).duration=+t.apply(this,arguments)}}function sR(e,t){return t=+t,function(){FL(this,e).duration=t}}function cR(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?oR:sR)(t,e)):IL(this.node(),t).duration}function lR(e,t){if(typeof t!=`function`)throw Error();return function(){FL(this,e).ease=t}}function uR(e){var t=this._id;return arguments.length?this.each(lR(t,e)):IL(this.node(),t).ease}function dR(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();FL(this,e).ease=n}}function fR(e){if(typeof e!=`function`)throw Error();return this.each(dR(this._id,e))}function pR(e){typeof e!=`function`&&(e=KN(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new HR(r,this._parents,this._name,this._id)}function mR(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new HR(o,this._parents,this._name,this._id)}function hR(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function gR(e,t,n){var r,i,a=hR(t)?PL:FL;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function _R(e,t){var n=this._id;return arguments.length<2?IL(this.node(),n).on.on(e):this.each(gR(n,e,t))}function vR(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function yR(){return this.on(`end.remove`,vR(this._id))}function bR(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=zN(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,NL(l[f],t,n,f,l,IL(u,n)));return new HR(a,this._parents,t,n)}function xR(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=UN(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=IL(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&NL(p,t,n,h,f,m);a.push(f),o.push(u)}return new HR(a,o,t,n)}var SR=kF.prototype.constructor;function CR(){return new SR(this._groups,this._parents)}function wR(e,t){var n,r,i;return function(){var a=IP(this,e),o=(this.style.removeProperty(e),IP(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function TR(e){return function(){this.style.removeProperty(e)}}function ER(e,t,n){var r,i=n+``,a;return function(){var o=IP(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function DR(e,t,n){var r,i,a;return function(){var o=IP(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),IP(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function OR(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=FL(this,e),l=c.on,u=c.value[a]==null?s||=TR(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function kR(e,t,n){var r=(e+=``)==`transform`?rL:WL;return t==null?this.styleTween(e,wR(e,r)).on(`end.style.`+e,TR(e)):typeof t==`function`?this.styleTween(e,DR(e,r,UL(this,`style.`+e,t))).each(OR(this._id,e)):this.styleTween(e,ER(e,r,t),n).on(`end.style.`+e,null)}function AR(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function jR(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&AR(e,a,n)),r}return a._value=t,a}function MR(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,jR(e,t,n??``))}function NR(e){return function(){this.textContent=e}}function PR(e){return function(){var t=e(this);this.textContent=t??``}}function FR(e){return this.tween(`text`,typeof e==`function`?PR(UL(this,`text`,e)):NR(e==null?``:e+``))}function IR(e){return function(t){this.textContent=e.call(this,t)}}function LR(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&IR(r)),t}return r._value=e,r}function RR(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,LR(e))}function zR(){for(var e=this._name,t=this._id,n=UR(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=IL(c,t);NL(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new HR(r,this._parents,e,n)}function BR(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=FL(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var VR=0;function HR(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function UR(){return++VR}var WR=kF.prototype;HR.prototype={constructor:HR,select:bR,selectAll:xR,selectChild:WR.selectChild,selectChildren:WR.selectChildren,filter:pR,merge:mR,selection:CR,transition:zR,call:WR.call,nodes:WR.nodes,node:WR.node,size:WR.size,empty:WR.empty,each:WR.each,on:_R,attr:ZL,attrTween:nR,style:kR,styleTween:MR,text:FR,textTween:RR,remove:yR,tween:HL,delay:aR,duration:cR,ease:uR,easeVarying:fR,end:BR,[Symbol.iterator]:WR[Symbol.iterator]};function GR(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var KR={time:null,delay:0,duration:250,ease:GR};function qR(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function JR(e){var t,n;e instanceof HR?(t=e._id,e=e._name):(t=UR(),(n=KR).time=xL(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&NL(c,e,t,l,o,n||qR(c,t));return new HR(r,this._parents,e,t)}kF.prototype.interrupt=zL,kF.prototype.transition=JR;var YR=e=>()=>e;function XR(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function ZR(e,t,n){this.k=e,this.x=t,this.y=n}ZR.prototype={constructor:ZR,scale:function(e){return e===1?this:new ZR(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ZR(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var QR=new ZR(1,0,0);$R.prototype=ZR.prototype;function $R(e){for(;!e.__zoom;)if(!(e=e.parentNode))return QR;return e.__zoom}function ez(e){e.stopImmediatePropagation()}function tz(e){e.preventDefault(),e.stopImmediatePropagation()}function nz(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function rz(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute(`viewBox`)?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function iz(){return this.__zoom||QR}function az(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function oz(){return navigator.maxTouchPoints||`ontouchstart`in this}function sz(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function cz(){var e=nz,t=rz,n=sz,r=az,i=oz,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=lL,l=ON(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,iz).on(`wheel.zoom`,w,{passive:!1}).on(`mousedown.zoom`,T).on(`dblclick.zoom`,E).filter(i).on(`touchstart.zoom`,D).on(`touchmove.zoom`,O).on(`touchend.zoom touchcancel.zoom`,k).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}_.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property(`__zoom`,iz),e===i?i.interrupt().each(function(){S(this,arguments).event(r).start().zoom(null,typeof t==`function`?t.apply(this,arguments):t).end()}):x(e,t,n,r)},_.scaleBy=function(e,t,n,r){_.scaleTo(e,function(){return this.__zoom.k*(typeof t==`function`?t.apply(this,arguments):t)},n,r)},_.scaleTo=function(e,r,i,a){_.transform(e,function(){var e=t.apply(this,arguments),a=this.__zoom,s=i==null?b(e):typeof i==`function`?i.apply(this,arguments):i,c=a.invert(s),l=typeof r==`function`?r.apply(this,arguments):r;return n(y(v(a,l),s,c),e,o)},i,a)},_.translateBy=function(e,r,i,a){_.transform(e,function(){return n(this.__zoom.translate(typeof r==`function`?r.apply(this,arguments):r,typeof i==`function`?i.apply(this,arguments):i),t.apply(this,arguments),o)},null,a)},_.translateTo=function(e,r,i,a,s){_.transform(e,function(){var e=t.apply(this,arguments),s=this.__zoom,c=a==null?b(e):typeof a==`function`?a.apply(this,arguments):a;return n(QR.translate(c[0],c[1]).scale(s.k).translate(typeof r==`function`?-r.apply(this,arguments):-r,typeof i==`function`?-i.apply(this,arguments):-i),e,o)},a,s)};function v(e,t){return t=Math.max(a[0],Math.min(a[1],t)),t===e.k?e:new ZR(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new ZR(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,n,r,i){e.on(`start.zoom`,function(){S(this,arguments).event(i).start()}).on(`interrupt.zoom end.zoom`,function(){S(this,arguments).event(i).end()}).tween(`zoom`,function(){var e=this,a=arguments,o=S(e,a).event(i),s=t.apply(e,a),l=r==null?b(s):typeof r==`function`?r.apply(e,a):r,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),d=e.__zoom,f=typeof n==`function`?n.apply(e,a):n,p=c(d.invert(l).concat(u/d.k),f.invert(l).concat(u/f.k));return function(e){if(e===1)e=f;else{var t=p(e),n=u/t[2];e=new ZR(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}})}function S(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit(`start`)),this},zoom:function(e,t){return this.mouse&&e!==`mouse`&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&e!==`touch`&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&e!==`touch`&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit(`zoom`),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit(`end`)),this},emit:function(e){var t=jF(this.that).datum();l.call(e,this.that,new XR(e,{sourceEvent:this.sourceEvent,target:_,type:e,transform:this.that.__zoom,dispatch:l}),t)}};function w(t,...i){if(!e.apply(this,arguments))return;var s=S(this,i).event(t),c=this.__zoom,l=Math.max(a[0],Math.min(a[1],c.k*2**r.apply(this,arguments))),u=NF(t);if(s.wheel)(s.mouse[0][0]!==u[0]||s.mouse[0][1]!==u[1])&&(s.mouse[1]=c.invert(s.mouse[0]=u)),clearTimeout(s.wheel);else if(c.k===l)return;else s.mouse=[u,c.invert(u)],RL(this),s.start();tz(t),s.wheel=setTimeout(d,m),s.zoom(`mouse`,n(y(v(c,l),s.mouse[0],s.mouse[1]),s.extent,o));function d(){s.wheel=null,s.end()}}function T(t,...r){if(f||!e.apply(this,arguments))return;var i=t.currentTarget,a=S(this,r,!0).event(t),s=jF(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,p,!0),c=NF(t,i),l=t.clientX,u=t.clientY;RF(t.view),ez(t),a.mouse=[c,this.__zoom.invert(c)],RL(this),a.start();function d(e){if(tz(e),!a.moved){var t=e.clientX-l,r=e.clientY-u;a.moved=t*t+r*r>h}a.event(e).zoom(`mouse`,n(y(a.that.__zoom,a.mouse[0]=NF(e,i),a.mouse[1]),a.extent,o))}function p(e){s.on(`mousemove.zoom mouseup.zoom`,null),zF(e.view,a.moved),tz(e),a.event(e).end()}}function E(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=NF(r.changedTouches?r.changedTouches[0]:r,this),l=a.invert(c),u=a.k*(r.shiftKey?.5:2),d=n(y(v(a,u),c,l),t.apply(this,i),o);tz(r),s>0?jF(this).transition().duration(s).call(x,d,c,r):jF(this).call(_.transform,d,c,r)}}function D(t,...n){if(e.apply(this,arguments)){var r=t.touches,i=r.length,a=S(this,n,t.changedTouches.length===i).event(t),o,s,c,l;for(ez(t),s=0;s<i;++s)c=r[s],l=NF(c,this),l=[l,this.__zoom.invert(l),c.identifier],a.touch0?!a.touch1&&a.touch0[2]!==l[2]&&(a.touch1=l,a.taps=0):(a.touch0=l,o=!0,a.taps=1+!!u);u&&=clearTimeout(u),o&&(a.taps<2&&(d=l[0],u=setTimeout(function(){u=null},p)),RL(this),a.start())}}function O(e,...t){if(this.__zooming){var r=S(this,t).event(e),i=e.changedTouches,a=i.length,s,c,l,u;for(tz(e),s=0;s<a;++s)c=i[s],l=NF(c,this),r.touch0&&r.touch0[2]===c.identifier?r.touch0[0]=l:r.touch1&&r.touch1[2]===c.identifier&&(r.touch1[0]=l);if(c=r.that.__zoom,r.touch1){var d=r.touch0[0],f=r.touch0[1],p=r.touch1[0],m=r.touch1[1],h=(h=p[0]-d[0])*h+(h=p[1]-d[1])*h,g=(g=m[0]-f[0])*g+(g=m[1]-f[1])*g;c=v(c,Math.sqrt(h/g)),l=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else if(r.touch0)l=r.touch0[0],u=r.touch0[1];else return;r.zoom(`touch`,n(y(c,l,u),r.extent,o))}}function k(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(ez(e),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),a=0;a<i;++a)o=r[a],n.touch0&&n.touch0[2]===o.identifier?delete n.touch0:n.touch1&&n.touch1[2]===o.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(o=NF(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<g)){var s=jF(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return _.wheelDelta=function(e){return arguments.length?(r=typeof e==`function`?e:YR(+e),_):r},_.filter=function(t){return arguments.length?(e=typeof t==`function`?t:YR(!!t),_):e},_.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:YR(!!e),_):i},_.extent=function(e){return arguments.length?(t=typeof e==`function`?e:YR([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),_):t},_.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],_):[a[0],a[1]]},_.translateExtent=function(e){return arguments.length?(o[0][0]=+e[0][0],o[1][0]=+e[1][0],o[0][1]=+e[0][1],o[1][1]=+e[1][1],_):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},_.constrain=function(e){return arguments.length?(n=e,_):n},_.duration=function(e){return arguments.length?(s=+e,_):s},_.interpolate=function(e){return arguments.length?(c=e,_):c},_.on=function(){var e=l.on.apply(l,arguments);return e===l?_:e},_.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,_):Math.sqrt(h)},_.tapDistance=function(e){return arguments.length?(g=+e,_):g},_}var lz={error001:(e=`react`)=>`Seems like you have not used ${e===`svelte`?`SvelteFlowProvider`:`ReactFlowProvider`} as an ancestor. Help: https://${e}flow.dev/error#001`,error002:()=>`It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.`,error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>`The parent container needs a width and a height to render the graph.`,error005:()=>`Only child nodes can use a parent extent.`,error006:()=>`Can't create edge. An edge needs a source and a target.`,error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${e} handle id: "${e===`source`?n:r}", edge id: ${t}.`,error010:()=>`Handle: No node id found. Make sure to only use a Handle inside a custom Node.`,error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e=`react`)=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>`useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.`,error015:()=>`It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.`,error016:e=>`Edge with id "${e}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},uz=[[-1/0,-1/0],[1/0,1/0]],dz=[`Enter`,` `,`Escape`],fz={"node.a11yDescription.default":`Press enter or space to select a node. Press delete to remove it and escape to cancel.`,"node.a11yDescription.keyboardDisabled":`Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.`,"node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":`Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.`,"controls.ariaLabel":`Control Panel`,"controls.zoomIn.ariaLabel":`Zoom In`,"controls.zoomOut.ariaLabel":`Zoom Out`,"controls.fitView.ariaLabel":`Fit View`,"controls.interactive.ariaLabel":`Toggle Interactivity`,"minimap.ariaLabel":`Mini Map`,"handle.ariaLabel":`Handle`},pz;(function(e){e.Strict=`strict`,e.Loose=`loose`})(pz||={});var mz;(function(e){e.Free=`free`,e.Vertical=`vertical`,e.Horizontal=`horizontal`})(mz||={});var hz;(function(e){e.Partial=`partial`,e.Full=`full`})(hz||={});var gz={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null},_z;(function(e){e.Bezier=`default`,e.Straight=`straight`,e.Step=`step`,e.SmoothStep=`smoothstep`,e.SimpleBezier=`simplebezier`})(_z||={});var vz;(function(e){e.Arrow=`arrow`,e.ArrowClosed=`arrowclosed`})(vz||={});var $;(function(e){e.Left=`left`,e.Top=`top`,e.Right=`right`,e.Bottom=`bottom`})($||={});var yz={[$.Left]:$.Right,[$.Right]:$.Left,[$.Top]:$.Bottom,[$.Bottom]:$.Top},bz=e=>!!e&&typeof e==`object`&&`id`in e&&`source`in e&&`target`in e,xz=e=>!!e&&typeof e==`object`&&`id`in e&&`position`in e&&!(`source`in e)&&!(`target`in e),Sz=e=>!!e&&typeof e==`object`&&`id`in e&&`internals`in e&&!(`source`in e)&&!(`target`in e),Cz=(e,t=[0,0])=>{let{width:n,height:r}=rB(e),i=e.origin??t,a=n*i[0],o=r*i[1];return{x:e.position.x-a,y:e.position.y-o}},wz=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};let n=!1,r=e.reduce((e,r)=>{let i=typeof r==`string`,a=!t.nodeLookup&&!i?r:void 0;return t.nodeLookup&&(a=i?t.nodeLookup.get(r):Sz(r)?r:t.nodeLookup.get(r.id)),a?(n=!0,Lz(e,Vz(a,t.nodeOrigin))):e},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return n?zz(r):{x:0,y:0,width:0,height:0}},Tz=(e,t={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},r=!1;return e.forEach(e=>{(t.filter===void 0||t.filter(e))&&(n=Lz(n,Vz(e)),r=!0)}),r?zz(n):{x:0,y:0,width:0,height:0}},Ez=(e,t,[n,r,i]=[0,0,1],a=!1,o=!1)=>{let s=(t.x-n)/i,c=(t.y-r)/i,l=t.width/i,u=t.height/i,d=[];for(let t of e.values()){let{measured:e,selectable:n=!0,hidden:r=!1}=t;if(o&&!n||r)continue;let i=e.width??t.width??t.initialWidth??0,f=e.height??t.height??t.initialHeight??0,{x:p,y:m}=t.internals.positionAbsolute,h=Uz(s,c,l,u,p,m,i,f),g=i*f,_=a&&h>0;(!t.internals.handleBounds||_||h>=g||t.dragging)&&d.push(t)}return d},Dz=(e,t)=>{let n=new Set;return e.forEach(e=>{n.add(e.id)}),t.filter(e=>n.has(e.source)||n.has(e.target))};function Oz(e,t){let n=new Map,r=t?.nodes?new Set(t.nodes.map(e=>e.id)):null;return e.forEach(e=>{let i;if(t?.includeHiddenNodes){let{width:t,height:n}=rB(e);i=t>0&&n>0}else i=!!(e.measured.width&&e.measured.height&&!e.hidden);i&&(!r||r.has(e.id))&&n.set(e.id,e)}),n}async function kz({nodes:e,width:t,height:n,panZoom:r,minZoom:i,maxZoom:a},o){if(e.size===0)return!0;let s=eB(Tz(Oz(e,o)),t,n,o?.minZoom??i,o?.maxZoom??a,o?.padding??.1);return await r.setViewport(s,{duration:o?.duration,ease:o?.ease,interpolate:o?.interpolate}),!0}function Az({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:i,onError:a}){let o=n.get(e),s=o.parentId?n.get(o.parentId):void 0,{x:c,y:l}=s?s.internals.positionAbsolute:{x:0,y:0},u=o.origin??r,d=o.extent||i;if(o.extent===`parent`&&!o.expandParent){if(!s)a?.(`005`,lz.error005());else{let{width:e,height:t}=rB(s);e&&t&&(d=[[c,l],[c+e,l+t]])}}else s&&nB(o.extent)&&(d=[[o.extent[0][0]+c,o.extent[0][1]+l],[o.extent[1][0]+c,o.extent[1][1]+l]]);let f=nB(d)?Nz(t,d,o.measured):t;return(o.measured.width===void 0||o.measured.height===void 0)&&a?.(`015`,lz.error015()),{position:{x:f.x-c+(o.measured.width??0)*u[0],y:f.y-l+(o.measured.height??0)*u[1]},positionAbsolute:f}}async function jz({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:r,onBeforeDelete:i}){let a=new Set(e.map(e=>e.id)),o=[];for(let e of n){if(e.deletable===!1)continue;let t=a.has(e.id),n=!t&&e.parentId&&o.find(t=>t.id===e.parentId);(t||n)&&o.push(e)}let s=new Set(t.map(e=>e.id)),c=r.filter(e=>e.deletable!==!1),l=Dz(o,c);for(let e of c)s.has(e.id)&&!l.find(t=>t.id===e.id)&&l.push(e);if(!i)return{edges:l,nodes:o};let u=await i({nodes:o,edges:l});return typeof u==`boolean`?u?{edges:l,nodes:o}:{edges:[],nodes:[]}:u}var Mz=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),Nz=(e={x:0,y:0},t,n)=>({x:Mz(e.x,t[0][0],t[1][0]-(n?.width??0)),y:Mz(e.y,t[0][1],t[1][1]-(n?.height??0))});function Pz(e,t,n){let{width:r,height:i}=rB(n),{x:a,y:o}=n.internals.positionAbsolute;return Nz(e,[[a,o],[a+r,o+i]],t)}var Fz=(e,t,n)=>e<t?Mz(Math.abs(e-t),1,t)/t:e>n?-Mz(Math.abs(e-n),1,t)/t:0,Iz=(e,t,n=15,r=40)=>[Fz(e.x,r,t.width-r)*n,Fz(e.y,r,t.height-r)*n],Lz=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),Rz=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),zz=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),Bz=(e,t=[0,0])=>{let{x:n,y:r}=Sz(e)?e.internals.positionAbsolute:Cz(e,t);return{x:n,y:r,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},Vz=(e,t=[0,0])=>{let{x:n,y:r}=Sz(e)?e.internals.positionAbsolute:Cz(e,t);return{x:n,y:r,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:r+(e.measured?.height??e.height??e.initialHeight??0)}},Hz=(e,t)=>zz(Lz(Rz(e),Rz(t))),Uz=(e,t,n,r,i,a,o,s)=>{let c=Math.max(0,Math.min(e+n,i+o)-Math.max(e,i)),l=Math.max(0,Math.min(t+r,a+s)-Math.max(t,a));return Math.ceil(c*l)},Wz=(e,t)=>Uz(e.x,e.y,e.width,e.height,t.x,t.y,t.width,t.height),Gz=e=>Kz(e.width)&&Kz(e.height)&&Kz(e.x)&&Kz(e.y),Kz=e=>!isNaN(e)&&isFinite(e),qz=(e,t)=>(e,t)=>{},Jz=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),Yz=({x:e,y:t},[n,r,i],a=!1,o=[1,1])=>{let s={x:(e-n)/i,y:(t-r)/i};return a?Jz(s,o):s},Xz=({x:e,y:t},[n,r,i])=>({x:e*i+n,y:t*i+r});function Zz(e,t){if(typeof e==`number`)return Math.floor((t-t/(1+e))*.5);if(typeof e==`string`&&e.endsWith(`px`)){let t=parseFloat(e);if(!Number.isNaN(t))return Math.floor(t)}if(typeof e==`string`&&e.endsWith(`%`)){let n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function Qz(e,t,n){if(typeof e==`string`||typeof e==`number`){let r=Zz(e,n),i=Zz(e,t);return{top:r,right:i,bottom:r,left:i,x:i*2,y:r*2}}if(typeof e==`object`){let r=Zz(e.top??e.y??0,n),i=Zz(e.bottom??e.y??0,n),a=Zz(e.left??e.x??0,t),o=Zz(e.right??e.x??0,t);return{top:r,right:o,bottom:i,left:a,x:a+o,y:r+i}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function $z(e,t,n,r,i,a){let{x:o,y:s}=Xz(e,[t,n,r]),{x:c,y:l}=Xz({x:e.x+e.width,y:e.y+e.height},[t,n,r]),u=i-c,d=a-l;return{left:Math.floor(o),top:Math.floor(s),right:Math.floor(u),bottom:Math.floor(d)}}var eB=(e,t,n,r,i,a)=>{let o=Qz(a,t,n),s=(t-o.x)/e.width,c=(n-o.y)/e.height,l=Mz(Math.min(s,c),r,i),u=e.x+e.width/2,d=e.y+e.height/2,f=t/2-u*l,p=n/2-d*l,m=$z(e,f,p,l,t,n),h={left:Math.min(m.left-o.left,0),top:Math.min(m.top-o.top,0),right:Math.min(m.right-o.right,0),bottom:Math.min(m.bottom-o.bottom,0)};return{x:f-h.left+h.right,y:p-h.top+h.bottom,zoom:l}},tB=()=>typeof navigator<`u`&&navigator?.userAgent?.indexOf(`Mac`)>=0;function nB(e){return e!=null&&e!==`parent`}function rB(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function iB(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function aB(e,t={width:0,height:0},n,r,i){let a={...e},o=r.get(n);if(o){let e=o.origin||i;a.x+=o.internals.positionAbsolute.x-(t.width??0)*e[0],a.y+=o.internals.positionAbsolute.y-(t.height??0)*e[1]}return a}function oB(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function sB(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function cB(e){return{...fz,...e||{}}}function lB(e){return e===null?null:e?`valid`:`invalid`}function uB(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:r,containerBounds:i}){let{x:a,y:o}=gB(e),s=Yz({x:a-(i?.left??0),y:o-(i?.top??0)},r),{x:c,y:l}=n?Jz(s,t):s;return{xSnapped:c,ySnapped:l,...s}}var dB=e=>({width:e.offsetWidth,height:e.offsetHeight}),fB=e=>e?.getRootNode?.()||window?.document,pB=[`INPUT`,`SELECT`,`TEXTAREA`];function mB(e){let t=e.composedPath?.()?.[0]||e.target;return t?.nodeType===1?pB.includes(t.nodeName)||t.hasAttribute(`contenteditable`)||!!t.closest(`.nokey`):!1}var hB=e=>`clientX`in e,gB=(e,t)=>{let n=hB(e),r=n?e.clientX:e.touches?.[0].clientX,i=n?e.clientY:e.touches?.[0].clientY;return{x:r-(t?.left??0),y:i-(t?.top??0)}},_B=(e,t,n,r,i)=>{let a=t.querySelectorAll(`.${e}`);return!a||!a.length?null:Array.from(a).map(t=>{let a=t.getBoundingClientRect();return{id:t.getAttribute(`data-handleid`),type:e,nodeId:i,position:t.getAttribute(`data-handlepos`),x:(a.left-n.left)/r,y:(a.top-n.top)/r,...dB(t)}})};function vB({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:i,sourceControlY:a,targetControlX:o,targetControlY:s}){let c=e*.125+i*.375+o*.375+n*.125,l=t*.125+a*.375+s*.375+r*.125;return[c,l,Math.abs(c-e),Math.abs(l-t)]}function yB(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function bB({pos:e,x1:t,y1:n,x2:r,y2:i,c:a}){switch(e){case $.Left:return[t-yB(t-r,a),n];case $.Right:return[t+yB(r-t,a),n];case $.Top:return[t,n-yB(n-i,a)];case $.Bottom:return[t,n+yB(i-n,a)]}}function xB({sourceX:e,sourceY:t,sourcePosition:n=$.Bottom,targetX:r,targetY:i,targetPosition:a=$.Top,curvature:o=.25}){let[s,c]=bB({pos:n,x1:e,y1:t,x2:r,y2:i,c:o}),[l,u]=bB({pos:a,x1:r,y1:i,x2:e,y2:t,c:o}),[d,f,p,m]=vB({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:s,sourceControlY:c,targetControlX:l,targetControlY:u});return[`M${e},${t} C${s},${c} ${l},${u} ${r},${i}`,d,f,p,m]}function SB({sourceX:e,sourceY:t,targetX:n,targetY:r}){let i=Math.abs(n-e)/2,a=n<e?n+i:n-i,o=Math.abs(r-t)/2;return[a,r<t?r+o:r-o,i,o]}function CB({sourceNode:e,targetNode:t,selected:n=!1,zIndex:r=0,elevateOnSelect:i=!1,zIndexMode:a=`basic`}){return a===`manual`?r:(i&&n?r+1e3:r)+Math.max(e.parentId||i&&e.selected?e.internals.z:0,t.parentId||i&&t.selected?t.internals.z:0)}function wB({sourceNode:e,targetNode:t,width:n,height:r,transform:i}){let a=Lz(Vz(e),Vz(t));return a.x===a.x2&&(a.x2+=1),a.y===a.y2&&(a.y2+=1),Wz({x:-i[0]/i[2],y:-i[1]/i[2],width:n/i[2],height:r/i[2]},zz(a))>0}var TB=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`xy-edge__${e}${t||``}-${n}${r||``}`,EB=(e,t)=>t.some(t=>t.source===e.source&&t.target===e.target&&(t.sourceHandle===e.sourceHandle||!t.sourceHandle&&!e.sourceHandle)&&(t.targetHandle===e.targetHandle||!t.targetHandle&&!e.targetHandle)),DB=(e,t,n={})=>{if(!e.source||!e.target)return n.onError?.(`006`,lz.error006()),t;let r=n.getEdgeId||TB,i;return i=bz(e)?{...e}:{...e,id:r(e)},EB(i,t)?t:(i.sourceHandle===null&&delete i.sourceHandle,i.targetHandle===null&&delete i.targetHandle,t.concat(i))};function OB({sourceX:e,sourceY:t,targetX:n,targetY:r}){let[i,a,o,s]=SB({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,i,a,o,s]}var kB={[$.Left]:{x:-1,y:0},[$.Right]:{x:1,y:0},[$.Top]:{x:0,y:-1},[$.Bottom]:{x:0,y:1}},AB=({source:e,sourcePosition:t=$.Bottom,target:n})=>t===$.Left||t===$.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},jB=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2);function MB({source:e,sourcePosition:t=$.Bottom,target:n,targetPosition:r=$.Top,center:i,offset:a,stepPosition:o}){let s=kB[t],c=kB[r],l={x:e.x+s.x*a,y:e.y+s.y*a},u={x:n.x+c.x*a,y:n.y+c.y*a},d=AB({source:l,sourcePosition:t,target:u}),f=d.x===0?`y`:`x`,p=d[f],m=[],h,g,_={x:0,y:0},v={x:0,y:0},[,,y,b]=SB({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(s[f]*c[f]===-1){f===`x`?(h=i.x??l.x+(u.x-l.x)*o,g=i.y??(l.y+u.y)/2):(h=i.x??(l.x+u.x)/2,g=i.y??l.y+(u.y-l.y)*o);let e=[{x:h,y:l.y},{x:h,y:u.y}],t=[{x:l.x,y:g},{x:u.x,y:g}];m=s[f]===p?f===`x`?e:t:f===`x`?t:e}else{let i=[{x:l.x,y:u.y}],o=[{x:u.x,y:l.y}];if(m=f===`x`?s.x===p?o:i:s.y===p?i:o,t===r){let t=Math.abs(e[f]-n[f]);if(t<=a){let r=Math.min(a-1,a-t);s[f]===p?_[f]=(l[f]>e[f]?-1:1)*r:v[f]=(u[f]>n[f]?-1:1)*r}}if(t!==r){let e=f===`x`?`y`:`x`,t=s[f]===c[e],n=l[e]>u[e],r=l[e]<u[e];(s[f]===1&&(!t&&n||t&&r)||s[f]!==1&&(!t&&r||t&&n))&&(m=f===`x`?i:o)}let d={x:l.x+_.x,y:l.y+_.y},y={x:u.x+v.x,y:u.y+v.y};Math.max(Math.abs(d.x-m[0].x),Math.abs(y.x-m[0].x))>=Math.max(Math.abs(d.y-m[0].y),Math.abs(y.y-m[0].y))?(h=(d.x+y.x)/2,g=m[0].y):(h=m[0].x,g=(d.y+y.y)/2)}let x={x:l.x+_.x,y:l.y+_.y},S={x:u.x+v.x,y:u.y+v.y};return[[e,...x.x!==m[0].x||x.y!==m[0].y?[x]:[],...m,...S.x!==m[m.length-1].x||S.y!==m[m.length-1].y?[S]:[],n],h,g,y,b]}function NB(e,t,n,r){let i=Math.min(jB(e,t)/2,jB(t,n)/2,r),{x:a,y:o}=t;if(e.x===a&&a===n.x||e.y===o&&o===n.y)return`L${a} ${o}`;if(e.y===o){let t=e.x<n.x?-1:1,r=e.y<n.y?1:-1;return`L ${a+i*t},${o}Q ${a},${o} ${a},${o+i*r}`}let s=e.x<n.x?1:-1;return`L ${a},${o+i*(e.y<n.y?-1:1)}Q ${a},${o} ${a+i*s},${o}`}function PB({sourceX:e,sourceY:t,sourcePosition:n=$.Bottom,targetX:r,targetY:i,targetPosition:a=$.Top,borderRadius:o=5,centerX:s,centerY:c,offset:l=20,stepPosition:u=.5}){let[d,f,p,m,h]=MB({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:i},targetPosition:a,center:{x:s,y:c},offset:l,stepPosition:u}),g=`M${d[0].x} ${d[0].y}`;for(let e=1;e<d.length-1;e++)g+=NB(d[e-1],d[e],d[e+1],o);return g+=`L${d[d.length-1].x} ${d[d.length-1].y}`,[g,f,p,m,h]}function FB(e){return e&&!!(e.internals.handleBounds||e.handles?.length)&&!!(e.measured.width||e.width||e.initialWidth)}function IB(e){let{sourceNode:t,targetNode:n}=e;if(!FB(t)||!FB(n))return null;let r=t.internals.handleBounds||LB(t.handles),i=n.internals.handleBounds||LB(n.handles),a=zB(r?.source??[],e.sourceHandle),o=zB(e.connectionMode===pz.Strict?i?.target??[]:(i?.target??[]).concat(i?.source??[]),e.targetHandle);if(!a||!o)return e.onError?.(`008`,lz.error008(a?`target`:`source`,{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;let s=a?.position||$.Bottom,c=o?.position||$.Top,l=RB(t,a,s),u=RB(n,o,c);return{sourceX:l.x,sourceY:l.y,targetX:u.x,targetY:u.y,sourcePosition:s,targetPosition:c}}function LB(e){if(!e)return null;let t=[],n=[];for(let r of e)r.width=r.width??1,r.height=r.height??1,r.type===`source`?t.push(r):r.type===`target`&&n.push(r);return{source:t,target:n}}function RB(e,t,n=$.Left,r=!1){let i=(t?.x??0)+e.internals.positionAbsolute.x,a=(t?.y??0)+e.internals.positionAbsolute.y,{width:o,height:s}=t??rB(e);if(r)return{x:i+o/2,y:a+s/2};switch(t?.position??n){case $.Top:return{x:i+o/2,y:a};case $.Right:return{x:i+o,y:a+s/2};case $.Bottom:return{x:i+o/2,y:a+s};case $.Left:return{x:i,y:a+s/2}}}function zB(e,t){return e&&(t?e.find(e=>e.id===t):e[0])||null}function BB(e,t){return e?typeof e==`string`?e:`${t?`${t}__`:``}${Object.keys(e).sort().map(t=>`${t}=${e[t]}`).join(`&`)}`:``}function VB(e,{id:t,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:i}){let a=new Set;return e.reduce((e,o)=>([o.markerStart||r,o.markerEnd||i].forEach(r=>{if(r&&typeof r==`object`){let i=BB(r,t);a.has(i)||(e.push({id:i,color:r.color||n,...r}),a.add(i))}}),e),[]).sort((e,t)=>e.id.localeCompare(t.id))}var HB=1e3,UB=10,WB={nodeOrigin:[0,0],nodeExtent:uz,elevateNodesOnSelect:!0,zIndexMode:`basic`,defaults:{}},GB={...WB,checkEquality:!0};function KB(e,t){let n={...e};for(let e in t)t[e]!==void 0&&(n[e]=t[e]);return n}function qB(e,t,n){let r=KB(WB,n);for(let n of e.values())if(n.parentId)QB(n,e,t,r);else{let e=Nz(Cz(n,r.nodeOrigin),nB(n.extent)?n.extent:r.nodeExtent,rB(n));n.internals.positionAbsolute=e}}function JB(e,t){if(!e.handles)return e.measured?t?.internals.handleBounds:void 0;let n=[],r=[];for(let t of e.handles){let i={id:t.id,width:t.width??1,height:t.height??1,nodeId:e.id,x:t.x,y:t.y,position:t.position,type:t.type};t.type===`source`?n.push(i):t.type===`target`&&r.push(i)}return{source:n,target:r}}function YB(e){return e===`manual`}function XB(e,t,n,r={}){let i=KB(GB,r),a={i:0},o=new Map(t),s=i?.elevateNodesOnSelect&&!YB(i.zIndexMode)?HB:0,c=e.length>0,l=!1;t.clear(),n.clear();for(let u of e){let e=o.get(u.id);if(i.checkEquality&&u===e?.internals.userNode)t.set(u.id,e);else{let n=Nz(Cz(u,i.nodeOrigin),nB(u.extent)?u.extent:i.nodeExtent,rB(u));e={...i.defaults,...u,measured:{width:u.measured?.width,height:u.measured?.height},internals:{positionAbsolute:n,handleBounds:JB(u,e),z:$B(u,s,i.zIndexMode),userNode:u}},t.set(u.id,e)}(e.measured===void 0||e.measured.width===void 0||e.measured.height===void 0)&&!e.hidden&&(c=!1),u.parentId&&QB(e,t,n,r,a),l||=u.selected??!1}return{nodesInitialized:c,hasSelectedNodes:l}}function ZB(e,t){if(!e.parentId)return;let n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function QB(e,t,n,r,i){let{elevateNodesOnSelect:a,nodeOrigin:o,nodeExtent:s,zIndexMode:c}=KB(WB,r),l=e.parentId,u=t.get(l);if(!u){console.warn(`Parent node ${l} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}ZB(e,n),i&&!u.parentId&&u.internals.rootParentIndex===void 0&&c===`auto`&&(u.internals.rootParentIndex=++i.i,u.internals.z=u.internals.z+i.i*UB),i&&u.internals.rootParentIndex!==void 0&&(i.i=u.internals.rootParentIndex);let{x:d,y:f,z:p}=eV(e,u,o,s,a&&!YB(c)?HB:0,c),{positionAbsolute:m}=e.internals,h=d!==m.x||f!==m.y;(h||p!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:h?{x:d,y:f}:m,z:p}})}function $B(e,t,n){let r=Kz(e.zIndex)?e.zIndex:0;return YB(n)?r:r+(e.selected?t:0)}function eV(e,t,n,r,i,a){let{x:o,y:s}=t.internals.positionAbsolute,c=rB(e),l=Cz(e,n),u=nB(e.extent)?Nz(l,e.extent,c):l,d=Nz({x:o+u.x,y:s+u.y},r,c);e.extent===`parent`&&(d=Pz(d,c,t));let f=$B(e,i,a),p=t.internals.z??0;return{x:d.x,y:d.y,z:p>=f?p+1:f}}function tV(e,t,n,r=[0,0]){let i=[],a=new Map;for(let n of e){let e=t.get(n.parentId);if(!e)continue;let r=Hz(a.get(n.parentId)?.expandedRect??Bz(e),n.rect);a.set(n.parentId,{expandedRect:r,parent:e})}return a.size>0&&a.forEach(({expandedRect:t,parent:a},o)=>{let s=a.internals.positionAbsolute,c=rB(a),l=a.origin??r,u=t.x<s.x?Math.round(Math.abs(s.x-t.x)):0,d=t.y<s.y?Math.round(Math.abs(s.y-t.y)):0,f=Math.max(c.width,Math.round(t.width)),p=Math.max(c.height,Math.round(t.height)),m=(f-c.width)*l[0],h=(p-c.height)*l[1];(u>0||d>0||m||h)&&(i.push({id:o,type:`position`,position:{x:a.position.x-u+m,y:a.position.y-d+h}}),n.get(o)?.forEach(t=>{e.some(e=>e.id===t.id)||i.push({id:t.id,type:`position`,position:{x:t.position.x+u,y:t.position.y+d}})})),(c.width<t.width||c.height<t.height||u||d)&&i.push({id:o,type:`dimensions`,setAttributes:!0,dimensions:{width:f+(u?l[0]*u-m:0),height:p+(d?l[1]*d-h:0)}})}),i}function nV(e,t,n,r,i,a,o){let s=r?.querySelector(`.xyflow__viewport`),c=!1;if(!s)return{changes:[],updatedInternals:c};let l=[],u=window.getComputedStyle(s),{m22:d}=new window.DOMMatrixReadOnly(u.transform),f=[];for(let r of e.values()){let e=t.get(r.id);if(!e)continue;if(e.hidden){t.set(e.id,{...e,internals:{...e.internals,handleBounds:void 0}}),c=!0;continue}let s=dB(r.nodeElement),u=e.measured.width!==s.width||e.measured.height!==s.height;if(s.width&&s.height&&(u||!e.internals.handleBounds||r.force)){let p=r.nodeElement.getBoundingClientRect(),m=nB(e.extent)?e.extent:a,{positionAbsolute:h}=e.internals;if(e.parentId&&e.extent===`parent`){let n=t.get(e.parentId);n&&(h=Pz(h,s,n))}else m&&(h=Nz(h,m,s));let g={...e,measured:s,internals:{...e.internals,positionAbsolute:h,handleBounds:{source:_B(`source`,r.nodeElement,p,d,e.id),target:_B(`target`,r.nodeElement,p,d,e.id)}}};t.set(e.id,g),e.parentId&&QB(g,t,n,{nodeOrigin:i,zIndexMode:o}),c=!0,u&&(l.push({id:e.id,type:`dimensions`,dimensions:s}),e.expandParent&&e.parentId&&f.push({id:e.id,parentId:e.parentId,rect:Bz(g,i)}))}}if(f.length>0){let e=tV(f,t,n,i);l.push(...e)}return{changes:l,updatedInternals:c}}async function rV({delta:e,panZoom:t,transform:n,translateExtent:r,width:i,height:a}){if(!t||!e.x&&!e.y)return!1;let o=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[i,a]],r);return!!o&&(o.x!==n[0]||o.y!==n[1]||o.k!==n[2])}function iV(e,t,n,r,i,a){let o=i,s=r.get(o)||new Map;r.set(o,s.set(n,t)),o=`${i}-${e}`;let c=r.get(o)||new Map;if(r.set(o,c.set(n,t)),a){o=`${i}-${e}-${a}`;let s=r.get(o)||new Map;r.set(o,s.set(n,t))}}function aV(e,t,n){e.clear(),t.clear();for(let r of n){let{source:n,target:i,sourceHandle:a=null,targetHandle:o=null}=r,s={edgeId:r.id,source:n,target:i,sourceHandle:a,targetHandle:o},c=`${n}-${a}--${i}-${o}`;iV(`source`,s,`${i}-${o}--${n}-${a}`,e,n,a),iV(`target`,s,c,e,i,o),t.set(r.id,r)}}function oV(e,t){if(!e.parentId)return!1;let n=t.get(e.parentId);return n?n.selected?!0:oV(n,t):!1}function sV(e,t,n){let r=e;do{if(r?.matches?.(t))return!0;if(r===n)return!1;r=r?.parentElement}while(r);return!1}function cV(e,t,n,r){let i=new Map;for(let[a,o]of e)if((o.selected||o.id===r)&&(!o.parentId||!oV(o,e))&&(o.draggable||t&&o.draggable===void 0)){let t=e.get(a);t&&i.set(a,{id:a,position:t.position||{x:0,y:0},distance:{x:n.x-t.internals.positionAbsolute.x,y:n.y-t.internals.positionAbsolute.y},extent:t.extent,parentId:t.parentId,origin:t.origin,expandParent:t.expandParent,internals:{positionAbsolute:t.internals.positionAbsolute||{x:0,y:0}},measured:{width:t.measured.width??0,height:t.measured.height??0}})}return i}function lV({nodeId:e,dragItems:t,nodeLookup:n,dragging:r=!0}){let i=[];for(let[e,a]of t){let t=n.get(e)?.internals.userNode;t&&i.push({...t,position:a.position,dragging:r})}if(!e)return[i[0],i];let a=n.get(e)?.internals.userNode;return[a?{...a,position:t.get(e)?.position||a.position,dragging:r}:i[0],i]}function uV({dragItems:e,snapGrid:t,x:n,y:r}){let i=e.values().next().value;if(!i)return null;let a={x:n-i.distance.x,y:r-i.distance.y},o=Jz(a,t);return{x:o.x-a.x,y:o.y-a.y}}function dV({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:r,onDragStop:i}){let a={x:null,y:null},o=0,s=new Map,c=!1,l={x:0,y:0},u=null,d=!1,f=null,p=!1,m=!1,h=null;function g({noDragClassName:g,handleSelector:_,domNode:v,isSelectable:y,nodeId:b,nodeClickDistance:x=0}){f=jF(v);function S({x:e,y:n}){let{nodeLookup:i,nodeExtent:o,snapGrid:c,snapToGrid:l,nodeOrigin:u,onNodeDrag:d,onSelectionDrag:f,onError:p,updateNodePositions:g}=t();a={x:e,y:n};let _=!1,v=s.size>1,y=v&&o?Rz(Tz(s)):null,x=v&&l?uV({dragItems:s,snapGrid:c,x:e,y:n}):null;for(let[t,r]of s){if(!i.has(t))continue;let a={x:e-r.distance.x,y:n-r.distance.y};l&&(a=x?{x:Math.round(a.x+x.x),y:Math.round(a.y+x.y)}:Jz(a,c));let s=null;if(v&&o&&!r.extent&&y){let{positionAbsolute:e}=r.internals,t=e.x-y.x+o[0][0],n=e.x+r.measured.width-y.x2+o[1][0],i=e.y-y.y+o[0][1],a=e.y+r.measured.height-y.y2+o[1][1];s=[[t,i],[n,a]]}let{position:d,positionAbsolute:f}=Az({nodeId:t,nextPosition:a,nodeLookup:i,nodeExtent:s||o,nodeOrigin:u,onError:p});_=_||r.position.x!==d.x||r.position.y!==d.y,r.position=d,r.internals.positionAbsolute=f}if(m||=_,_&&(g(s,!0),h&&(r||d||!b&&f))){let[e,t]=lV({nodeId:b,dragItems:s,nodeLookup:i});r?.(h,s,e,t),d?.(h,e,t),b||f?.(h,t)}}async function C(){if(!u)return;let{transform:e,panBy:n,autoPanSpeed:r,autoPanOnNodeDrag:i}=t();if(!i){c=!1,cancelAnimationFrame(o);return}let[s,d]=Iz(l,u,r);(s!==0||d!==0)&&(a.x=(a.x??0)-s/e[2],a.y=(a.y??0)-d/e[2],await n({x:s,y:d})&&S(a)),o=requestAnimationFrame(C)}function w(r){let{nodeLookup:i,multiSelectionActive:o,nodesDraggable:c,transform:l,snapGrid:f,snapToGrid:p,selectNodesOnDrag:m,onNodeDragStart:h,onSelectionDragStart:g,unselectNodesAndEdges:_}=t();d=!0,(!m||!y)&&!o&&b&&(i.get(b)?.selected||_()),y&&m&&b&&e?.(b);let v=uB(r.sourceEvent,{transform:l,snapGrid:f,snapToGrid:p,containerBounds:u});if(a=v,s=cV(i,c,v,b),s.size>0&&(n||h||!b&&g)){let[e,t]=lV({nodeId:b,dragItems:s,nodeLookup:i});n?.(r.sourceEvent,s,e,t),h?.(r.sourceEvent,e,t),b||g?.(r.sourceEvent,t)}}let T=KF().clickDistance(x).on(`start`,e=>{let{domNode:n,nodeDragThreshold:r,transform:i,snapGrid:o,snapToGrid:s}=t();u=n?.getBoundingClientRect()||null,p=!1,m=!1,h=e.sourceEvent,r===0&&w(e),a=uB(e.sourceEvent,{transform:i,snapGrid:o,snapToGrid:s,containerBounds:u}),l=gB(e.sourceEvent,u)}).on(`drag`,e=>{let{autoPanOnNodeDrag:n,transform:r,snapGrid:i,snapToGrid:o,nodeDragThreshold:f,nodeLookup:m}=t(),g=uB(e.sourceEvent,{transform:r,snapGrid:i,snapToGrid:o,containerBounds:u});if(h=e.sourceEvent,(e.sourceEvent.type===`touchmove`&&e.sourceEvent.touches.length>1||b&&!m.has(b))&&(p=!0),!p){if(!c&&n&&d&&(c=!0,C()),!d){let t=gB(e.sourceEvent,u),n=t.x-l.x,r=t.y-l.y;Math.sqrt(n*n+r*r)>f&&w(e)}(a.x!==g.xSnapped||a.y!==g.ySnapped)&&s&&d&&(l=gB(e.sourceEvent,u),S(g))}}).on(`end`,e=>{if(!d||p){p&&s.size>0&&t().updateNodePositions(s,!1);return}if(c=!1,d=!1,cancelAnimationFrame(o),s.size>0){let{nodeLookup:n,updateNodePositions:r,onNodeDragStop:a,onSelectionDragStop:o}=t();if(m&&=(r(s,!1),!1),i||a||!b&&o){let[t,r]=lV({nodeId:b,dragItems:s,nodeLookup:n,dragging:!1});i?.(e.sourceEvent,s,t,r),a?.(e.sourceEvent,t,r),b||o?.(e.sourceEvent,r)}}}).filter(e=>{let t=e.target;return!e.button&&(!g||!sV(t,`.${g}`,v))&&(!_||sV(t,_,v))});f.call(T)}function _(){f?.on(`.drag`,null)}return{update:g,destroy:_}}function fV(e,t,n){let r=[],i={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(let e of t.values())Wz(i,Bz(e))>0&&r.push(e);return r}var pV=250;function mV(e,t,n,r){let i=[],a=1/0,o=fV(e,n,t+pV);for(let n of o){let o=[...n.internals.handleBounds?.source??[],...n.internals.handleBounds?.target??[]];for(let s of o){if(r.nodeId===s.nodeId&&r.type===s.type&&r.id===s.id)continue;let{x:o,y:c}=RB(n,s,s.position,!0),l=Math.sqrt((o-e.x)**2+(c-e.y)**2);l>t||(l<a?(i=[{...s,x:o,y:c}],a=l):l===a&&i.push({...s,x:o,y:c}))}}if(!i.length)return null;if(i.length>1){let e=r.type===`source`?`target`:`source`;return i.find(t=>t.type===e)??i[0]}return i[0]}function hV(e,t,n,r,i,a=!1){let o=r.get(e);if(!o)return null;let s=i===`strict`?o.internals.handleBounds?.[t]:[...o.internals.handleBounds?.source??[],...o.internals.handleBounds?.target??[]],c=(n?s?.find(e=>e.id===n):s?.[0])??null;return c&&a?{...c,...RB(o,c,c.position,!0)}:c}function gV(e,t){return e||(t?.classList.contains(`target`)?`target`:t?.classList.contains(`source`)?`source`:null)}function _V(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}var vV=()=>!0;function yV(e,{connectionMode:t,connectionRadius:n,handleId:r,nodeId:i,edgeUpdaterType:a,isTarget:o,domNode:s,nodeLookup:c,lib:l,autoPanOnConnect:u,flowId:d,panBy:f,cancelConnection:p,onConnectStart:m,onConnect:h,onConnectEnd:g,isValidConnection:_=vV,onReconnectEnd:v,updateConnection:y,getTransform:b,getFromHandle:x,autoPanSpeed:S,dragThreshold:C=1,handleDomNode:w}){let T=fB(e.target),E=0,D,{x:O,y:k}=gB(e),A=gV(a,w),j=s?.getBoundingClientRect(),M=!1;if(!j||!A)return;let N=hV(i,A,r,c,t);if(!N)return;let P=gB(e,j),F=!1,I=null,L=!1,ee=null;function te(){if(!u||!j)return;let[e,t]=Iz(P,j,S);f({x:e,y:t}),E=requestAnimationFrame(te)}let ne={...N,nodeId:i,type:A,position:N.position},R=c.get(i),z={inProgress:!0,isValid:null,from:RB(R,ne,$.Left,!0),fromHandle:ne,fromPosition:ne.position,fromNode:R,to:P,toHandle:null,toPosition:yz[ne.position],toNode:null,pointer:P};function B(){M=!0,y(z),m?.(e,{nodeId:i,handleId:r,handleType:A})}C===0&&B();function re(e){if(!M){let{x:t,y:n}=gB(e),r=t-O,i=n-k;if(!(r*r+i*i>C*C))return;B()}if(!x()||!ne){ie(e);return}let a=b();P=gB(e,j),D=mV(Yz(P,a,!1,[1,1]),n,c,ne),F||=(te(),!0);let s=bV(e,{handle:D,connectionMode:t,fromNodeId:i,fromHandleId:r,fromType:o?`target`:`source`,isValidConnection:_,doc:T,lib:l,flowId:d,nodeLookup:c});ee=s.handleDomNode,I=s.connection,L=_V(!!D,s.isValid);let u=c.get(i),f=u?RB(u,ne,$.Left,!0):z.from,p={...z,from:f,isValid:L,to:s.toHandle&&L?Xz({x:s.toHandle.x,y:s.toHandle.y},a):P,toHandle:s.toHandle,toPosition:L&&s.toHandle?s.toHandle.position:yz[ne.position],toNode:s.toHandle?c.get(s.toHandle.nodeId):null,pointer:P};y(p),z=p}function ie(e){if(!(`touches`in e&&e.touches.length>0)){if(M){(D||ee)&&I&&L&&h?.(I);let{inProgress:t,...n}=z,r={...n,toPosition:z.toHandle?z.toPosition:null};g?.(e,r),a&&v?.(e,r)}p(),cancelAnimationFrame(E),F=!1,L=!1,I=null,ee=null,T.removeEventListener(`mousemove`,re),T.removeEventListener(`mouseup`,ie),T.removeEventListener(`touchmove`,re),T.removeEventListener(`touchend`,ie)}}T.addEventListener(`mousemove`,re),T.addEventListener(`mouseup`,ie),T.addEventListener(`touchmove`,re),T.addEventListener(`touchend`,ie)}function bV(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:i,fromType:a,doc:o,lib:s,flowId:c,isValidConnection:l=vV,nodeLookup:u}){let d=a===`target`,f=t?o.querySelector(`.${s}-flow__handle[data-id="${c}-${t?.nodeId}-${t?.id}-${t?.type}"]`):null,{x:p,y:m}=gB(e),h=o.elementFromPoint(p,m),g=h?.classList.contains(`${s}-flow__handle`)?h:f,_={handleDomNode:g,isValid:!1,connection:null,toHandle:null};if(g){let e=gV(void 0,g),t=g.getAttribute(`data-nodeid`),a=g.getAttribute(`data-handleid`),o=g.classList.contains(`connectable`),s=g.classList.contains(`connectableend`);if(!t||!e)return _;let c={source:d?t:r,sourceHandle:d?a:i,target:d?r:t,targetHandle:d?i:a};_.connection=c,_.isValid=o&&s&&(n===pz.Strict?d&&e===`source`||!d&&e===`target`:t!==r||a!==i)&&l(c),_.toHandle=hV(t,e,a,u,n,!0)}return _}var xV={onPointerDown:yV,isValid:bV};function SV({domNode:e,panZoom:t,getTransform:n,getViewScale:r}){let i=jF(e);function a({translateExtent:e,width:a,height:o,zoomStep:s=1,pannable:c=!0,zoomable:l=!0,inversePan:u=!1}){let d=e=>{if(e.sourceEvent.type!==`wheel`||!t)return;let r=n(),i=e.sourceEvent.ctrlKey&&tB()?10:1,a=-e.sourceEvent.deltaY*(e.sourceEvent.deltaMode===1?.05:e.sourceEvent.deltaMode?1:.002)*s,o=r[2]*2**(a*i);t.scaleTo(o)},f=[0,0],p=cz().on(`start`,e=>{(e.sourceEvent.type===`mousedown`||e.sourceEvent.type===`touchstart`)&&(f=[e.sourceEvent.clientX??e.sourceEvent.touches[0].clientX,e.sourceEvent.clientY??e.sourceEvent.touches[0].clientY])}).on(`zoom`,c?i=>{let s=n();if(i.sourceEvent.type!==`mousemove`&&i.sourceEvent.type!==`touchmove`||!t)return;let c=[i.sourceEvent.clientX??i.sourceEvent.touches[0].clientX,i.sourceEvent.clientY??i.sourceEvent.touches[0].clientY],l=[c[0]-f[0],c[1]-f[1]];f=c;let d=r()*Math.max(s[2],Math.log(s[2]))*(u?-1:1),p={x:s[0]-l[0]*d,y:s[1]-l[1]*d},m=[[0,0],[a,o]];t.setViewportConstrained({x:p.x,y:p.y,zoom:s[2]},m,e)}:null).on(`zoom.wheel`,l?d:null);i.call(p,{})}function o(){i.on(`zoom`,null)}return{update:a,destroy:o,pointer:NF}}var CV=e=>({x:e.x,y:e.y,zoom:e.k}),wV=({x:e,y:t,zoom:n})=>QR.translate(e,t).scale(n),TV=(e,t)=>e.target.closest(`.${t}`),EV=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),DV=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,OV=(e,t=0,n=DV,r=()=>{})=>{let i=typeof t==`number`&&t>0;return i||r(),i?e.transition().duration(t).ease(n).on(`end`,r):e},kV=e=>{let t=e.ctrlKey&&tB()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function AV({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:r,panOnScrollMode:i,panOnScrollSpeed:a,zoomOnPinch:o,onPanZoomStart:s,onPanZoom:c,onPanZoomEnd:l}){return u=>{if(TV(u,t))return u.ctrlKey&&u.preventDefault(),!1;u.preventDefault(),u.stopImmediatePropagation();let d=n.property(`__zoom`).k||1;if(u.ctrlKey&&o){let e=NF(u),t=d*2**kV(u);r.scaleTo(n,t,e,u);return}let f=u.deltaMode===1?20:1,p=i===mz.Vertical?0:u.deltaX*f,m=i===mz.Horizontal?0:u.deltaY*f;!tB()&&u.shiftKey&&i!==mz.Vertical&&(p=u.deltaY*f,m=0),r.translateBy(n,-(p/d)*a,-(m/d)*a,{internal:!0});let h=CV(n.property(`__zoom`));clearTimeout(e.panScrollTimeout),e.isPanScrolling?c?.(u,h):(e.isPanScrolling=!0,s?.(u,h)),e.panScrollTimeout=setTimeout(()=>{l?.(u,h),e.isPanScrolling=!1},150)}}function jV({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(r,i){let a=r.type===`wheel`,o=!t&&a&&!r.ctrlKey,s=TV(r,e);if(r.ctrlKey&&a&&s&&r.preventDefault(),o||s)return null;r.preventDefault(),n.call(this,r,i)}}function MV({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return r=>{if(r.sourceEvent?.internal)return;let i=CV(r.transform);e.mouseButton=r.sourceEvent?.button||0,e.isZoomingOrPanning=!0,e.prevViewport=i,r.sourceEvent?.type===`mousedown`&&t(!0),n&&n?.(r.sourceEvent,i)}}function NV({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:r,onPanZoom:i}){return a=>{e.usedRightMouseButton=!!(n&&EV(t,e.mouseButton??0)),a.sourceEvent?.sync||r([a.transform.x,a.transform.y,a.transform.k]),i&&!a.sourceEvent?.internal&&i?.(a.sourceEvent,CV(a.transform))}}function PV({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:i,onPaneContextMenu:a}){return o=>{if(!o.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,a&&EV(t,e.mouseButton??0)&&!e.usedRightMouseButton&&o.sourceEvent&&a(o.sourceEvent),e.usedRightMouseButton=!1,r(!1),i)){let t=CV(o.transform);e.prevViewport=t,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{i?.(o.sourceEvent,t)},n?150:0)}}}function FV({panActivationKeyPressed:e,zoomActivationKeyPressed:t,zoomOnScroll:n,zoomOnPinch:r,panOnDrag:i,panOnScroll:a,zoomOnDoubleClick:o,userSelectionActive:s,noWheelClassName:c,noPanClassName:l,lib:u,connectionInProgress:d}){return f=>{let p=t||n,m=r&&f.ctrlKey,h=f.type===`wheel`;if(f.button===1&&f.type===`mousedown`&&(TV(f,`${u}-flow__node`)||TV(f,`${u}-flow__edge`)||TV(f,`${u}-flow__selection`)||TV(f,`${u}-flow__nodesselection`)))return!0;if(!i&&!p&&!a&&!o&&!r||s||d&&!h||TV(f,c)&&h||TV(f,l)&&(!h||a&&h&&!t)||!r&&f.ctrlKey&&h)return!1;if(!r&&f.type===`touchstart`&&f.touches?.length>1)return f.preventDefault(),!1;if(!p&&!a&&!m&&h||!i&&(f.type===`mousedown`||f.type===`touchstart`)||Array.isArray(i)&&!i.includes(f.button)&&f.type===`mousedown`)return!1;let g=Array.isArray(i)&&i.includes(f.button)||!f.button||f.button<=1;return(!f.ctrlKey||h||e)&&g}}function IV({domNode:e,minZoom:t,maxZoom:n,translateExtent:r,viewport:i,onPanZoom:a,onPanZoomStart:o,onPanZoomEnd:s,onDraggingChange:c}){let l={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},u=e.getBoundingClientRect(),d=[[0,0],[u.width,u.height]];(typeof ResizeObserver<`u`?new ResizeObserver(e=>{let t=e[0];t&&(d=[[0,0],[t.contentRect.width,t.contentRect.height]])}):null)?.observe(e);let f=cz().extent(()=>d).scaleExtent([t,n]).translateExtent(r),p=jF(e).call(f);y({x:i.x,y:i.y,zoom:Mz(i.zoom,t,n)},[[0,0],[u.width,u.height]],r);let m=p.on(`wheel.zoom`),h=p.on(`dblclick.zoom`);f.wheelDelta(kV);async function g(e,t){return p?new Promise(n=>{f?.interpolate(t?.interpolate===`linear`?YI:lL).transform(OV(p,t?.duration,t?.ease,()=>n(!0)),e)}):!1}function _({noWheelClassName:e,noPanClassName:t,onPaneContextMenu:n,userSelectionActive:r,panOnScroll:i,panOnDrag:u,panOnScrollMode:d,panOnScrollSpeed:g,preventScrolling:_,zoomOnPinch:y,zoomOnScroll:b,zoomOnDoubleClick:x,panActivationKeyPressed:S=!1,zoomActivationKeyPressed:C,lib:w,onTransformChange:T,connectionInProgress:E,paneClickDistance:D,selectionOnDrag:O}){r&&!l.isZoomingOrPanning&&v();let k=i&&!C&&!r;f.clickDistance(O?1/0:!Kz(D)||D<0?0:D);let A=k?AV({zoomPanValues:l,noWheelClassName:e,d3Selection:p,d3Zoom:f,panOnScrollMode:d,panOnScrollSpeed:g,zoomOnPinch:y,onPanZoomStart:o,onPanZoom:a,onPanZoomEnd:s}):jV({noWheelClassName:e,preventScrolling:_,d3ZoomHandler:m});p.on(`wheel.zoom`,A,{passive:!1});let j=MV({zoomPanValues:l,onDraggingChange:c,onPanZoomStart:o});f.on(`start`,j);let M=NV({zoomPanValues:l,panOnDrag:u,onPaneContextMenu:!!n,onPanZoom:a,onTransformChange:T});f.on(`zoom`,M);let N=PV({zoomPanValues:l,panOnDrag:u,panOnScroll:i,onPaneContextMenu:n,onPanZoomEnd:s,onDraggingChange:c});f.on(`end`,N);let P=FV({panActivationKeyPressed:S,zoomActivationKeyPressed:C,panOnDrag:u,zoomOnScroll:b,panOnScroll:i,zoomOnDoubleClick:x,zoomOnPinch:y,userSelectionActive:r,noPanClassName:t,noWheelClassName:e,lib:w,connectionInProgress:E});f.filter(P),x?p.on(`dblclick.zoom`,h):p.on(`dblclick.zoom`,null)}function v(){f.on(`zoom`,null)}async function y(e,t,n){let r=wV(e),i=f?.constrain()(r,t,n);return i&&await g(i),i}async function b(e,t){let n=wV(e);return await g(n,t),n}function x(e){if(p){let t=wV(e),n=p.property(`__zoom`);(n.k!==e.zoom||n.x!==e.x||n.y!==e.y)&&f?.transform(p,t,null,{sync:!0})}}function S(){let e=p?$R(p.node()):{x:0,y:0,k:1};return{x:e.x,y:e.y,zoom:e.k}}async function C(e,t){return p?new Promise(n=>{f?.interpolate(t?.interpolate===`linear`?YI:lL).scaleTo(OV(p,t?.duration,t?.ease,()=>n(!0)),e)}):!1}async function w(e,t){return p?new Promise(n=>{f?.interpolate(t?.interpolate===`linear`?YI:lL).scaleBy(OV(p,t?.duration,t?.ease,()=>n(!0)),e)}):!1}function T(e){f?.scaleExtent(e)}function E(e){f?.translateExtent(e)}function D(e){let t=!Kz(e)||e<0?0:e;f?.clickDistance(t)}return{update:_,destroy:v,setViewport:b,setViewportConstrained:y,getViewport:S,scaleTo:C,scaleBy:w,setScaleExtent:T,setTranslateExtent:E,syncViewport:x,setClickDistance:D}}var LV;(function(e){e.Line=`line`,e.Handle=`handle`})(LV||={});function RV({width:e,prevWidth:t,height:n,prevHeight:r,affectsX:i,affectsY:a}){let o=e-t,s=n-r,c=[o>0?1:o<0?-1:0,s>0?1:s<0?-1:0];return o&&i&&(c[0]*=-1),s&&a&&(c[1]*=-1),c}function zV(e){return{isHorizontal:e.includes(`right`)||e.includes(`left`),isVertical:e.includes(`bottom`)||e.includes(`top`),affectsX:e.includes(`left`),affectsY:e.includes(`top`)}}function BV(e,t){return Math.max(0,t-e)}function VV(e,t){return Math.max(0,e-t)}function HV(e,t,n){return Math.max(0,t-e,e-n)}function UV(e,t){return e?!t:t}function WV(e,t,n,r,i,a,o,s){let{affectsX:c,affectsY:l}=t,{isHorizontal:u,isVertical:d}=t,f=u&&d,{xSnapped:p,ySnapped:m}=n,{minWidth:h,maxWidth:g,minHeight:_,maxHeight:v}=r,{x:y,y:b,width:x,height:S,aspectRatio:C}=e,w=Math.floor(u?p-e.pointerX:0),T=Math.floor(d?m-e.pointerY:0),E=x+(c?-w:w),D=S+(l?-T:T),O=-a[0]*x,k=-a[1]*S,A=HV(E,h,g),j=HV(D,_,v);if(o){let e=0,t=0;c&&w<0?e=BV(y+w+O,o[0][0]):!c&&w>0&&(e=VV(y+E+O,o[1][0])),l&&T<0?t=BV(b+T+k,o[0][1]):!l&&T>0&&(t=VV(b+D+k,o[1][1])),A=Math.max(A,e),j=Math.max(j,t)}if(s){let e=0,t=0;c&&w>0?e=VV(y+w,s[0][0]):!c&&w<0&&(e=BV(y+E,s[1][0])),l&&T>0?t=VV(b+T,s[0][1]):!l&&T<0&&(t=BV(b+D,s[1][1])),A=Math.max(A,e),j=Math.max(j,t)}if(i){if(u){let e=HV(E/C,_,v)*C;if(A=Math.max(A,e),o){let e=0;e=!c&&!l||c&&!l&&f?VV(b+k+E/C,o[1][1])*C:BV(b+k+(c?w:-w)/C,o[0][1])*C,A=Math.max(A,e)}if(s){let e=0;e=!c&&!l||c&&!l&&f?BV(b+E/C,s[1][1])*C:VV(b+(c?w:-w)/C,s[0][1])*C,A=Math.max(A,e)}}if(d){let e=HV(D*C,h,g)/C;if(j=Math.max(j,e),o){let e=0;e=!c&&!l||l&&!c&&f?VV(y+D*C+O,o[1][0])/C:BV(y+(l?T:-T)*C+O,o[0][0])/C,j=Math.max(j,e)}if(s){let e=0;e=!c&&!l||l&&!c&&f?BV(y+D*C,s[1][0])/C:VV(y+(l?T:-T)*C,s[0][0])/C,j=Math.max(j,e)}}}T+=T<0?j:-j,w+=w<0?A:-A,i&&(f?E>D*C?T=(UV(c,l)?-w:w)/C:w=(UV(c,l)?-T:T)*C:u?(T=w/C,l=c):(w=T*C,c=l));let M=c?y+w:y,N=l?b+T:b;return{width:x+(c?-w:w),height:S+(l?-T:T),x:a[0]*w*(c?-1:1)+M,y:a[1]*T*(l?-1:1)+N}}var GV={width:0,height:0,x:0,y:0},KV={...GV,pointerX:0,pointerY:0,aspectRatio:1};function qV(e,t,n){let r=t.position.x+e.position.x,i=t.position.y+e.position.y,a=e.measured.width??0,o=e.measured.height??0,s=n[0]*a,c=n[1]*o;return[[r-s,i-c],[r+a-s,i+o-c]]}function JV({domNode:e,nodeId:t,getStoreItems:n,onChange:r,onEnd:i}){let a=jF(e),o={controlDirection:zV(`bottom-right`),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function s({controlPosition:e,boundaries:s,keepAspectRatio:c,resizeDirection:l,onResizeStart:u,onResize:d,onResizeEnd:f,shouldResize:p}){let m={...GV},h={...KV};o={boundaries:s,resizeDirection:l,keepAspectRatio:c,controlDirection:zV(e)};let g,_=null,v=[],y,b,x,S=!1,C=KF().on(`start`,e=>{let{nodeLookup:r,transform:i,snapGrid:a,snapToGrid:o,nodeOrigin:s,paneDomNode:c}=n();if(g=r.get(t),!g)return;_=c?.getBoundingClientRect()??null;let{xSnapped:l,ySnapped:d}=uB(e.sourceEvent,{transform:i,snapGrid:a,snapToGrid:o,containerBounds:_});m={width:g.measured.width??0,height:g.measured.height??0,x:g.position.x??0,y:g.position.y??0},h={...m,pointerX:l,pointerY:d,aspectRatio:m.width/m.height},y=void 0,b=nB(g.extent)?g.extent:void 0,g.parentId&&(g.extent===`parent`||g.expandParent)&&(y=r.get(g.parentId)),y&&g.extent===`parent`&&(b=[[0,0],[y.measured.width,y.measured.height]]),v=[],x=void 0;for(let[e,n]of r)if(n.parentId===t&&(v.push({id:e,position:{...n.position},extent:n.extent}),n.extent===`parent`||n.expandParent)){let e=qV(n,g,n.origin??s);x=x?[[Math.min(e[0][0],x[0][0]),Math.min(e[0][1],x[0][1])],[Math.max(e[1][0],x[1][0]),Math.max(e[1][1],x[1][1])]]:e}u?.(e,{...m})}).on(`drag`,e=>{let{transform:t,snapGrid:i,snapToGrid:a,nodeOrigin:s}=n(),c=uB(e.sourceEvent,{transform:t,snapGrid:i,snapToGrid:a,containerBounds:_}),l=[];if(!g)return;let{x:u,y:f,width:C,height:w}=m,T={},E=g.origin??s,{width:D,height:O,x:k,y:A}=WV(h,o.controlDirection,c,o.boundaries,o.keepAspectRatio,E,b,x),j=D!==C,M=O!==w,N=k!==u&&j,P=A!==f&&M;if(!N&&!P&&!j&&!M)return;if((N||P||E[0]===1||E[1]===1)&&(T.x=N?k:m.x,T.y=P?A:m.y,m.x=T.x,m.y=T.y,v.length>0)){let e=k-u,t=A-f;for(let n of v)n.position={x:n.position.x-e+E[0]*(D-C),y:n.position.y-t+E[1]*(O-w)},l.push(n)}if((j||M)&&(T.width=j&&(!o.resizeDirection||o.resizeDirection===`horizontal`)?D:m.width,T.height=M&&(!o.resizeDirection||o.resizeDirection===`vertical`)?O:m.height,m.width=T.width,m.height=T.height),y&&g.expandParent){let e=E[0]*(T.width??0);T.x&&T.x<e&&(m.x=e,h.x-=T.x-e);let t=E[1]*(T.height??0);T.y&&T.y<t&&(m.y=t,h.y-=T.y-t)}let F=RV({width:m.width,prevWidth:C,height:m.height,prevHeight:w,affectsX:o.controlDirection.affectsX,affectsY:o.controlDirection.affectsY}),I={...m,direction:F};p?.(e,I)!==!1&&(S=!0,d?.(e,I),r(T,l))}).on(`end`,e=>{S&&=(f?.(e,{...m}),i?.({...m}),!1)});a.call(C)}function c(){a.on(`.drag`,null)}return{update:s,destroy:c}}var YV=o((e=>{var t=d();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),XV=o(((e,t)=>{t.exports=YV()})),ZV=o((e=>{var t=d(),n=XV();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),QV=l(o(((e,t)=>{t.exports=ZV()}))(),1),$V=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{n.clear()}},o=t=e(r,i,a);return a},eH=e=>e?$V(e):$V,{useDebugValue:tH}=V.default,{useSyncExternalStoreWithSelector:nH}=QV.default,rH=e=>e;function iH(e,t=rH,n){let r=nH(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return tH(r),r}var aH=(e,t)=>{let n=eH(e),r=(e,r=t)=>iH(n,e,r);return Object.assign(r,n),r},oH=(e,t)=>e?aH(e,t):aH;function sH(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}var cH=(0,V.createContext)(null),lH=cH.Provider,uH=lz.error001(`react`);function dH(e,t){let n=(0,V.useContext)(cH);if(n===null)throw Error(uH);return iH(n,e,t)}function fH(){let e=(0,V.useContext)(cH);if(e===null)throw Error(uH);return(0,V.useMemo)(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}var pH={display:`none`},mH={position:`absolute`,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0px, 0px, 0px, 0px)`,clipPath:`inset(100%)`},hH=`react-flow__node-desc`,gH=`react-flow__edge-desc`,_H=`react-flow__aria-live`,vH=e=>e.ariaLiveMessage,yH=e=>e.ariaLabelConfig;function bH({rfId:e}){let t=dH(vH);return(0,H.jsx)(`div`,{id:`${_H}-${e}`,"aria-live":`assertive`,"aria-atomic":`true`,style:mH,children:t})}function xH({rfId:e,disableKeyboardA11y:t}){let n=dH(yH);return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`div`,{id:`${hH}-${e}`,style:pH,children:t?n[`node.a11yDescription.default`]:n[`node.a11yDescription.keyboardDisabled`]}),(0,H.jsx)(`div`,{id:`${gH}-${e}`,style:pH,children:n[`edge.a11yDescription.default`]}),!t&&(0,H.jsx)(bH,{rfId:e})]})}var SH=(0,V.forwardRef)(({position:e=`top-left`,children:t,className:n,style:r,...i},a)=>{let o=`${e}`.split(`-`);return(0,H.jsx)(`div`,{className:EN([`react-flow__panel`,n,...o]),style:r,ref:a,...i,children:t})});SH.displayName=`Panel`;var CH=`https://reactflow.dev?utm_source=attribution`;function wH({proOptions:e,position:t=`bottom-right`}){return(0,V.useEffect)(()=>{},[]),e?.hideAttribution?null:(0,H.jsx)(SH,{position:t,className:`react-flow__attribution`,"data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${CH}`,children:(0,H.jsx)(`a`,{href:CH,target:`_blank`,rel:`noopener noreferrer`,"aria-label":`React Flow attribution`,children:`React Flow`})})}var TH=e=>{let t=[],n=[];for(let[,n]of e.nodeLookup)n.selected&&t.push(n.internals.userNode);for(let[,t]of e.edgeLookup)t.selected&&n.push(t);return{selectedNodes:t,selectedEdges:n}},EH=e=>e.id;function DH(e,t){return sH(e.selectedNodes.map(EH),t.selectedNodes.map(EH))&&sH(e.selectedEdges.map(EH),t.selectedEdges.map(EH))}function OH({onSelectionChange:e}){let t=fH(),{selectedNodes:n,selectedEdges:r}=dH(TH,DH);return(0,V.useEffect)(()=>{let i={nodes:n,edges:r};e?.(i),t.getState().onSelectionChangeHandlers.forEach(e=>e(i))},[n,r,e]),null}var kH=e=>!!e.onSelectionChangeHandlers;function AH({onSelectionChange:e}){let t=dH(kH);return e||t?(0,H.jsx)(OH,{onSelectionChange:e}):null}var jH=[0,0],MH={x:0,y:0,zoom:1},NH=[...`nodes.edges.defaultNodes.defaultEdges.onConnect.onConnectStart.onConnectEnd.onClickConnectStart.onClickConnectEnd.nodesDraggable.autoPanOnNodeFocus.nodesConnectable.nodesFocusable.edgesFocusable.edgesReconnectable.elevateNodesOnSelect.elevateEdgesOnSelect.minZoom.maxZoom.nodeExtent.onNodesChange.onEdgesChange.elementsSelectable.connectionMode.snapGrid.snapToGrid.translateExtent.connectOnClick.defaultEdgeOptions.fitView.fitViewOptions.onNodesDelete.onEdgesDelete.onDelete.onNodeDrag.onNodeDragStart.onNodeDragStop.onSelectionDrag.onSelectionDragStart.onSelectionDragStop.onMoveStart.onMove.onMoveEnd.noPanClassName.nodeOrigin.autoPanOnConnect.autoPanOnNodeDrag.onError.connectionRadius.isValidConnection.selectNodesOnDrag.nodeDragThreshold.connectionDragThreshold.onBeforeDelete.debug.autoPanSpeed.ariaLabelConfig.zIndexMode`.split(`.`),`rfId`],PH=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges}),FH={translateExtent:uz,nodeOrigin:jH,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:`nopan`,rfId:`1`};function IH(e){let{setNodes:t,setEdges:n,setMinZoom:r,setMaxZoom:i,setTranslateExtent:a,setNodeExtent:o,reset:s,setDefaultNodesAndEdges:c}=dH(PH,sH),l=fH();(0,V.useEffect)(()=>(c(e.defaultNodes,e.defaultEdges),()=>{u.current=FH,s()}),[]);let u=(0,V.useRef)(FH);return(0,V.useEffect)(()=>{for(let s of NH){let c=e[s];c!==u.current[s]&&e[s]!==void 0&&(s===`nodes`?t(c):s===`edges`?n(c):s===`minZoom`?r(c):s===`maxZoom`?i(c):s===`translateExtent`?a(c):s===`nodeExtent`?o(c):s===`ariaLabelConfig`?l.setState({ariaLabelConfig:cB(c)}):s===`fitView`?l.setState({fitViewQueued:c}):s===`fitViewOptions`?l.setState({fitViewOptions:c}):l.setState({[s]:c}))}u.current=e},NH.map(t=>e[t])),null}function LH(){return typeof window>`u`||!window.matchMedia?null:window.matchMedia(`(prefers-color-scheme: dark)`)}function RH(e){let[t,n]=(0,V.useState)(e===`system`?null:e);return(0,V.useEffect)(()=>{if(e!==`system`){n(e);return}let t=LH(),r=()=>n(t?.matches?`dark`:`light`);return r(),t?.addEventListener(`change`,r),()=>{t?.removeEventListener(`change`,r)}},[e]),t===null?LH()?.matches?`dark`:`light`:t}var zH=typeof document<`u`?document:null;function BH(e=null,t={target:zH,actInsideInputWithModifier:!0}){let[n,r]=(0,V.useState)(!1),i=(0,V.useRef)(!1),a=(0,V.useRef)(new Set([])),[o,s]=(0,V.useMemo)(()=>{if(e!==null){let t=(Array.isArray(e)?e:[e]).filter(e=>typeof e==`string`).map(e=>e.replace(/\+/g,`
55
+ `).replace(`
56
+
57
+ `,`
58
+ +`).split(`
59
+ `));return[t,t.reduce((e,t)=>e.concat(...t),[])]}return[[],[]]},[e]);return(0,V.useEffect)(()=>{let n=t?.target??zH,c=t?.actInsideInputWithModifier??!0;if(e!==null){let e=e=>{if(i.current=e.ctrlKey||e.metaKey||e.shiftKey||e.altKey,(!i.current||i.current&&!c)&&mB(e))return!1;let n=HH(e.code,s);if(a.current.add(e[n]),VH(o,a.current,!1)){let n=e.composedPath?.()?.[0]||e.target,a=n?.nodeName===`BUTTON`||n?.nodeName===`A`;t.preventDefault!==!1&&(i.current||!a)&&e.preventDefault(),r(!0)}},l=e=>{let t=HH(e.code,s);VH(o,a.current,!0)?(r(!1),a.current.clear()):a.current.delete(e[t]),e.key===`Meta`&&a.current.clear(),i.current=!1},u=()=>{a.current.clear(),r(!1)};return n?.addEventListener(`keydown`,e),n?.addEventListener(`keyup`,l),window.addEventListener(`blur`,u),window.addEventListener(`contextmenu`,u),()=>{n?.removeEventListener(`keydown`,e),n?.removeEventListener(`keyup`,l),window.removeEventListener(`blur`,u),window.removeEventListener(`contextmenu`,u)}}},[e,r]),n}function VH(e,t,n){return e.filter(e=>n||e.length===t.size).some(e=>e.every(e=>t.has(e)))}function HH(e,t){return t.includes(e)?`code`:`key`}var UH=()=>{let e=fH();return(0,V.useMemo)(()=>({zoomIn:async t=>{let{panZoom:n}=e.getState();return n?n.scaleBy(1.2,t):!1},zoomOut:async t=>{let{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,t):!1},zoomTo:async(t,n)=>{let{panZoom:r}=e.getState();return r?r.scaleTo(t,n):!1},getZoom:()=>e.getState().transform[2],setViewport:async(t,n)=>{let{transform:[r,i,a],panZoom:o}=e.getState();return o?(await o.setViewport({x:t.x??r,y:t.y??i,zoom:t.zoom??a},n),!0):!1},getViewport:()=>{let[t,n,r]=e.getState().transform;return{x:t,y:n,zoom:r}},setCenter:async(t,n,r)=>e.getState().setCenter(t,n,r),fitBounds:async(t,n)=>{let{width:r,height:i,minZoom:a,maxZoom:o,panZoom:s}=e.getState(),c=eB(t,r,i,a,o,n?.padding??.1);return s?(await s.setViewport(c,{duration:n?.duration,ease:n?.ease,interpolate:n?.interpolate}),!0):!1},screenToFlowPosition:(t,n={})=>{let{transform:r,snapGrid:i,snapToGrid:a,domNode:o}=e.getState();if(!o)return t;let{x:s,y:c}=o.getBoundingClientRect(),l={x:t.x-s,y:t.y-c},u=n.snapGrid??i;return Yz(l,r,n.snapToGrid??a,u)},flowToScreenPosition:t=>{let{transform:n,domNode:r}=e.getState();if(!r)return t;let{x:i,y:a}=r.getBoundingClientRect(),o=Xz(t,n);return{x:o.x+i,y:o.y+a}}}),[])};function WH(e,t){let n=[],r=new Map,i=[];for(let t of e)if(t.type===`add`){i.push(t);continue}else if(t.type===`remove`||t.type===`replace`)r.set(t.id,[t]);else{let e=r.get(t.id);e?e.push(t):r.set(t.id,[t])}for(let e of t){let t=r.get(e.id);if(!t){n.push(e);continue}if(t[0].type===`remove`)continue;if(t[0].type===`replace`){n.push({...t[0].item});continue}let i={...e};for(let e of t)GH(e,i);n.push(i)}return i.length&&i.forEach(e=>{e.index===void 0?n.push({...e.item}):n.splice(e.index,0,{...e.item})}),n}function GH(e,t){switch(e.type){case`select`:t.selected=e.selected;break;case`position`:e.position!==void 0&&(t.position=e.position),e.dragging!==void 0&&(t.dragging=e.dragging);break;case`dimensions`:e.dimensions!==void 0&&(t.measured={...e.dimensions},e.setAttributes&&((e.setAttributes===!0||e.setAttributes===`width`)&&(t.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes===`height`)&&(t.height=e.dimensions.height))),typeof e.resizing==`boolean`&&(t.resizing=e.resizing)}}function KH(e,t){return WH(e,t)}function qH(e,t){return WH(e,t)}function JH(e,t){return{id:e,type:`select`,selected:t}}function YH(e,t=new Set,n=!1){let r=[];for(let[i,a]of e){let e=t.has(i);!(a.selected===void 0&&!e)&&a.selected!==e&&(n&&(a.selected=e),r.push(JH(a.id,e)))}return r}function XH({items:e=[],lookup:t}){let n=[],r=new Map(e.map(e=>[e.id,e]));for(let[r,i]of e.entries()){let e=t.get(i.id),a=e?.internals?.userNode??e;a!==void 0&&a!==i&&n.push({id:i.id,item:i,type:`replace`}),a===void 0&&n.push({item:i,type:`add`,index:r})}for(let[e]of t)r.get(e)===void 0&&n.push({id:e,type:`remove`});return n}function ZH(e){return{id:e.id,type:`remove`}}var QH=qz(`React Flow`,`https://reactflow.dev/`);function $H(e,t,n={}){return DB(e,t,{...n,onError:n.onError??QH})}var eU=e=>xz(e),tU=e=>bz(e);function nU(e){return(0,V.forwardRef)(e)}var rU=typeof window<`u`?V.useLayoutEffect:V.useEffect;function iU(e){let[t,n]=(0,V.useState)(BigInt(0)),[r]=(0,V.useState)(()=>aU(()=>n(e=>e+BigInt(1))));return rU(()=>{let t=r.get();t.length&&(e(t),r.reset())},[t]),r}function aU(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:n=>{t.push(n),e()}}}var oU=(0,V.createContext)(null);function sU({children:e}){let t=fH(),n=iU((0,V.useCallback)(e=>{let{nodes:n=[],setNodes:r,hasDefaultNodes:i,onNodesChange:a,nodeLookup:o,fitViewQueued:s,onNodesChangeMiddlewareMap:c}=t.getState(),l=n;for(let t of e)l=typeof t==`function`?t(l):t;let u=XH({items:l,lookup:o});for(let e of c.values())u=e(u);i&&r(l),u.length>0?a?.(u):s&&window.requestAnimationFrame(()=>{let{fitViewQueued:e,nodes:n,setNodes:r}=t.getState();e&&r(n)})},[])),r=iU((0,V.useCallback)(e=>{let{edges:n=[],setEdges:r,hasDefaultEdges:i,onEdgesChange:a,edgeLookup:o}=t.getState(),s=n;for(let t of e)s=typeof t==`function`?t(s):t;i?r(s):a&&a(XH({items:s,lookup:o}))},[])),i=(0,V.useMemo)(()=>({nodeQueue:n,edgeQueue:r}),[]);return(0,H.jsx)(oU.Provider,{value:i,children:e})}function cU(){let e=(0,V.useContext)(oU);if(!e)throw Error(`useBatchContext must be used within a BatchProvider`);return e}var lU=e=>!!e.panZoom;function uU(){let e=UH(),t=fH(),n=cU(),r=dH(lU),i=(0,V.useMemo)(()=>{let e=e=>t.getState().nodeLookup.get(e),r=e=>{n.nodeQueue.push(e)},i=e=>{n.edgeQueue.push(e)},a=e=>{let{nodeLookup:n,nodeOrigin:r}=t.getState(),i=eU(e)?e:n.get(e.id),a=i.parentId?aB(i.position,i.measured,i.parentId,n,r):i.position;return Bz({...i,position:a,width:i.measured?.width??i.width,height:i.measured?.height??i.height})},o=(e,t,n={replace:!1})=>{r(r=>r.map(r=>{if(r.id===e){let e=typeof t==`function`?t(r):t;return n.replace&&eU(e)?e:{...r,...e}}return r}))},s=(e,t,n={replace:!1})=>{i(r=>r.map(r=>{if(r.id===e){let e=typeof t==`function`?t(r):t;return n.replace&&tU(e)?e:{...r,...e}}return r}))};return{getNodes:()=>t.getState().nodes.map(e=>({...e})),getNode:t=>e(t)?.internals.userNode,getInternalNode:e,getEdges:()=>{let{edges:e=[]}=t.getState();return e.map(e=>({...e}))},getEdge:e=>t.getState().edgeLookup.get(e),setNodes:r,setEdges:i,addNodes:e=>{let t=Array.isArray(e)?e:[e];n.nodeQueue.push(e=>[...e,...t])},addEdges:e=>{let t=Array.isArray(e)?e:[e];n.edgeQueue.push(e=>[...e,...t])},toObject:()=>{let{nodes:e=[],edges:n=[],transform:r}=t.getState(),[i,a,o]=r;return{nodes:e.map(e=>({...e})),edges:n.map(e=>({...e})),viewport:{x:i,y:a,zoom:o}}},deleteElements:async({nodes:e=[],edges:n=[]})=>{let{nodes:r,edges:i,onNodesDelete:a,onEdgesDelete:o,triggerNodeChanges:s,triggerEdgeChanges:c,onDelete:l,onBeforeDelete:u}=t.getState(),{nodes:d,edges:f}=await jz({nodesToRemove:e,edgesToRemove:n,nodes:r,edges:i,onBeforeDelete:u}),p=f.length>0,m=d.length>0;if(p){let e=f.map(ZH);o?.(f),c(e)}if(m){let e=d.map(ZH);a?.(d),s(e)}return(m||p)&&l?.({nodes:d,edges:f}),{deletedNodes:d,deletedEdges:f}},getIntersectingNodes:(e,n=!0,r)=>{let i=Gz(e),o=i?e:a(e),s=r!==void 0;return o?(r||t.getState().nodes).filter(r=>{let a=t.getState().nodeLookup.get(r.id);if(a&&!i&&(r.id===e.id||!a.internals.positionAbsolute))return!1;let c=Bz(s?r:a),l=Wz(c,o);return n&&l>0||l>=c.width*c.height||l>=o.width*o.height}):[]},isNodeIntersecting:(e,t,n=!0)=>{let r=Gz(e)?e:a(e);if(!r)return!1;let i=Wz(r,t);return n&&i>0||i>=t.width*t.height||i>=r.width*r.height},updateNode:o,updateNodeData:(e,t,n={replace:!1})=>{o(e,e=>{let r=typeof t==`function`?t(e):t;return n.replace?{...e,data:r}:{...e,data:{...e.data,...r}}},n)},updateEdge:s,updateEdgeData:(e,t,n={replace:!1})=>{s(e,e=>{let r=typeof t==`function`?t(e):t;return n.replace?{...e,data:r}:{...e,data:{...e.data,...r}}},n)},getNodesBounds:e=>{let{nodeLookup:n,nodeOrigin:r}=t.getState();return wz(e,{nodeLookup:n,nodeOrigin:r})},getHandleConnections:({type:e,id:n,nodeId:r})=>Array.from(t.getState().connectionLookup.get(`${r}-${e}${n?`-${n}`:``}`)?.values()??[]),getNodeConnections:({type:e,handleId:n,nodeId:r})=>Array.from(t.getState().connectionLookup.get(`${r}${e?n?`-${e}-${n}`:`-${e}`:``}`)?.values()??[]),fitView:async e=>{let r=t.getState().fitViewResolver??sB();return t.setState({fitViewQueued:!0,fitViewOptions:e,fitViewResolver:r}),n.nodeQueue.push(e=>[...e]),r.promise}}},[]);return(0,V.useMemo)(()=>({...i,...e,viewportInitialized:r}),[r])}var dU=e=>e.selected,fU=typeof window<`u`?window:void 0;function pU({deleteKeyCode:e,multiSelectionKeyCode:t}){let n=fH(),{deleteElements:r}=uU(),i=BH(e,{actInsideInputWithModifier:!1}),a=BH(t,{target:fU});(0,V.useEffect)(()=>{if(i){let{edges:e,nodes:t}=n.getState();r({nodes:t.filter(dU),edges:e.filter(dU)}),n.setState({nodesSelectionActive:!1})}},[i]),(0,V.useEffect)(()=>{n.setState({multiSelectionActive:a})},[a])}function mU(e){let t=fH();(0,V.useEffect)(()=>{let n=()=>{if(!e.current||!(e.current.checkVisibility?.()??!0))return!1;let n=dB(e.current);(n.height===0||n.width===0)&&t.getState().onError?.(`004`,lz.error004()),t.setState({width:n.width||500,height:n.height||500})};if(e.current){n(),window.addEventListener(`resize`,n);let t=new ResizeObserver(()=>n());return t.observe(e.current),()=>{window.removeEventListener(`resize`,n),t&&e.current&&t.unobserve(e.current)}}},[])}var hU={position:`absolute`,width:`100%`,height:`100%`,top:0,left:0},gU=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function _U({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:n=!0,panOnScroll:r=!1,panActivationKeyPressed:i,panOnScrollSpeed:a=.5,panOnScrollMode:o=mz.Free,zoomOnDoubleClick:s=!0,panOnDrag:c=!0,defaultViewport:l,translateExtent:u,minZoom:d,maxZoom:f,zoomActivationKeyCode:p,preventScrolling:m=!0,children:h,noWheelClassName:g,noPanClassName:_,onViewportChange:v,isControlledViewport:y,paneClickDistance:b,selectionOnDrag:x}){let S=fH(),C=(0,V.useRef)(null),{userSelectionActive:w,lib:T,connectionInProgress:E}=dH(gU,sH),D=BH(p),O=(0,V.useRef)();mU(C);let k=(0,V.useCallback)(e=>{v?.({x:e[0],y:e[1],zoom:e[2]}),y||S.setState({transform:e})},[v,y]);return(0,V.useEffect)(()=>{if(C.current){O.current=IV({domNode:C.current,minZoom:d,maxZoom:f,translateExtent:u,viewport:l,onDraggingChange:e=>S.setState(t=>t.paneDragging===e?t:{paneDragging:e}),onPanZoomStart:(e,t)=>{let{onViewportChangeStart:n,onMoveStart:r}=S.getState();r?.(e,t),n?.(t)},onPanZoom:(e,t)=>{let{onViewportChange:n,onMove:r}=S.getState();r?.(e,t),n?.(t)},onPanZoomEnd:(e,t)=>{let{onViewportChangeEnd:n,onMoveEnd:r}=S.getState();r?.(e,t),n?.(t)}});let{x:e,y:t,zoom:n}=O.current.getViewport();return S.setState({panZoom:O.current,transform:[e,t,n],domNode:C.current.closest(`.react-flow`)}),()=>{O.current?.destroy()}}},[]),(0,V.useEffect)(()=>{O.current?.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:n,panOnScroll:r,panActivationKeyPressed:i,panOnScrollSpeed:a,panOnScrollMode:o,zoomOnDoubleClick:s,panOnDrag:c,zoomActivationKeyPressed:D,preventScrolling:m,noPanClassName:_,userSelectionActive:w,noWheelClassName:g,lib:T,onTransformChange:k,connectionInProgress:E,selectionOnDrag:x,paneClickDistance:b})},[e,t,n,r,i,a,o,s,c,D,m,_,w,g,T,k,E,x,b]),(0,H.jsx)(`div`,{className:`react-flow__renderer`,ref:C,style:hU,children:h})}var vU=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function yU(){let{userSelectionActive:e,userSelectionRect:t}=dH(vU,sH);return e&&t?(0,H.jsx)(`div`,{className:`react-flow__selection react-flow__container`,style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}var bU=(e,t)=>n=>{n.target===t.current&&e?.(n)},xU=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging,panBy:e.panBy,autoPanSpeed:e.autoPanSpeed});function SU({isSelecting:e,selectionKeyPressed:t,selectionMode:n=hz.Full,panOnDrag:r,autoPanOnSelection:i,paneClickDistance:a,selectionOnDrag:o,onSelectionStart:s,onSelectionEnd:c,onPaneClick:l,onPaneContextMenu:u,onPaneScroll:d,onPaneMouseEnter:f,onPaneMouseMove:p,onPaneMouseLeave:m,children:h}){let g=(0,V.useRef)(0),_=fH(),{userSelectionActive:v,elementsSelectable:y,dragging:b,panBy:x,autoPanSpeed:S}=dH(xU,sH),C=y&&(e||v),w=(0,V.useRef)(null),T=(0,V.useRef)(),E=(0,V.useRef)(new Set),D=(0,V.useRef)(new Set),O=(0,V.useRef)(!1),k=(0,V.useRef)(!1),A=(0,V.useRef)({x:0,y:0}),j=(0,V.useRef)(!1),M=e=>{if(k.current||O.current||_.getState().connection.inProgress){k.current=!1,O.current=!1;return}l?.(e),_.getState().resetSelectedElements(),_.setState({nodesSelectionActive:!1})},N=e=>{if(Array.isArray(r)&&r?.includes(2)){e.preventDefault();return}u?.(e)},P=d?e=>d(e):void 0,F=e=>{k.current&&=(e.stopPropagation(),!1)},I=n=>{if(n.pointerType===`touch`&&r!==!1&&!t)return;let{domNode:i,transform:a}=_.getState();if(T.current=i?.getBoundingClientRect(),!T.current)return;let s=n.target===w.current;if(!s&&n.target.closest(`.nokey`)||!e||!(o&&s||t)||n.button!==0||!n.isPrimary)return;n.target?.setPointerCapture?.(n.pointerId),k.current=!1;let{x:c,y:l}=gB(n.nativeEvent,T.current),u=Yz({x:c,y:l},a);_.setState({userSelectionRect:{width:0,height:0,startX:u.x,startY:u.y,x:c,y:l}}),s||(n.stopPropagation(),n.preventDefault())};function L(e,t){let{userSelectionRect:r}=_.getState();if(!r)return;let{transform:i,nodeLookup:a,edgeLookup:o,connectionLookup:s,triggerNodeChanges:c,triggerEdgeChanges:l,defaultEdgeOptions:u}=_.getState(),d={x:r.startX,y:r.startY},{x:f,y:p}=Xz(d,i),m={startX:d.x,startY:d.y,x:e<f?e:f,y:t<p?t:p,width:Math.abs(e-f),height:Math.abs(t-p)},h=E.current,g=D.current;E.current=new Set(Ez(a,m,i,n===hz.Partial,!0).map(e=>e.id)),D.current=new Set;let v=u?.selectable??!0;for(let e of E.current){let t=s.get(e);if(t)for(let{edgeId:e}of t.values()){let t=o.get(e);t&&(t.selectable??v)&&D.current.add(e)}}oB(h,E.current)||c(YH(a,E.current,!0)),oB(g,D.current)||l(YH(o,D.current)),_.setState({userSelectionRect:m,userSelectionActive:!0,nodesSelectionActive:!1})}function ee(){if(!i||!T.current)return;let[e,t]=Iz(A.current,T.current,S);x({x:e,y:t}).then(e=>{if(!k.current||!e){g.current=requestAnimationFrame(ee);return}let{x:t,y:n}=A.current;L(t,n),g.current=requestAnimationFrame(ee)})}let te=()=>{cancelAnimationFrame(g.current),g.current=0,j.current=!1};(0,V.useEffect)(()=>()=>te(),[]);let ne=e=>{let{userSelectionRect:n,transform:r,resetSelectedElements:i}=_.getState();if(!T.current||!n)return;let{x:o,y:c}=gB(e.nativeEvent,T.current);A.current={x:o,y:c};let l=Xz({x:n.startX,y:n.startY},r);if(!k.current){let n=t?0:a;if(Math.hypot(o-l.x,c-l.y)<=n)return;i(),s?.(e)}k.current=!0,j.current||=(ee(),!0),L(o,c)},R=e=>{if(!C){e.target===w.current&&_.getState().connection.inProgress&&(O.current=!0);return}e.button===0&&(e.target?.releasePointerCapture?.(e.pointerId),!v&&e.target===w.current&&_.getState().userSelectionRect&&M?.(e),_.setState({userSelectionActive:!1,userSelectionRect:null}),k.current&&(c?.(e),_.setState({nodesSelectionActive:E.current.size>0})),te())},z=e=>{e.target?.releasePointerCapture?.(e.pointerId),te()},B=r===!0||Array.isArray(r)&&r.includes(0);return(0,H.jsxs)(`div`,{className:EN([`react-flow__pane`,{draggable:B,dragging:b,selection:e}]),onClick:C?void 0:bU(M,w),onContextMenu:bU(N,w),onWheel:bU(P,w),onPointerEnter:C?void 0:f,onPointerMove:C?ne:p,onPointerUp:R,onPointerCancel:C?z:void 0,onPointerDownCapture:C?I:void 0,onClickCapture:C?F:void 0,onPointerLeave:m,ref:w,style:hU,children:[h,(0,H.jsx)(yU,{})]})}function CU({id:e,store:t,unselect:n=!1,nodeRef:r}){let{addSelectedNodes:i,unselectNodesAndEdges:a,multiSelectionActive:o,nodeLookup:s,onError:c}=t.getState(),l=s.get(e);if(!l){c?.(`012`,lz.error012(e));return}t.setState({nodesSelectionActive:!1}),l.selected?(n||l.selected&&o)&&(a({nodes:[l],edges:[]}),requestAnimationFrame(()=>r?.current?.blur())):i([e])}function wU({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:r,nodeId:i,isSelectable:a,nodeClickDistance:o}){let s=fH(),[c,l]=(0,V.useState)(!1),u=(0,V.useRef)();return(0,V.useEffect)(()=>{if(!t)return u.current=dV({getStoreItems:()=>s.getState(),onNodeMouseDown:t=>{CU({id:t,store:s,nodeRef:e})},onDragStart:()=>{l(!0)},onDragStop:()=>{l(!1)}}),()=>{u.current?.destroy(),u.current=void 0}},[t,s,e]),(0,V.useEffect)(()=>{t||!e.current||!u.current||u.current.update({noDragClassName:n,handleSelector:r,domNode:e.current,isSelectable:a,nodeId:i,nodeClickDistance:o})},[n,r,t,a,e,i,o]),c}var TU=e=>t=>t.selected&&(t.draggable||e&&t.draggable===void 0);function EU(){let e=fH();return(0,V.useCallback)(t=>{let{nodeExtent:n,snapToGrid:r,snapGrid:i,nodesDraggable:a,onError:o,updateNodePositions:s,nodeLookup:c,nodeOrigin:l}=e.getState(),u=new Map,d=TU(a),f=r?i[0]:5,p=r?i[1]:5,m=t.direction.x*f*t.factor,h=t.direction.y*p*t.factor;for(let[,e]of c){if(!d(e))continue;let t={x:e.internals.positionAbsolute.x+m,y:e.internals.positionAbsolute.y+h};r&&(t=Jz(t,i));let{position:a,positionAbsolute:s}=Az({nodeId:e.id,nextPosition:t,nodeLookup:c,nodeExtent:n,nodeOrigin:l,onError:o});e.position=a,e.internals.positionAbsolute=s,u.set(e.id,e)}s(u)},[])}var DU=(0,V.createContext)(null),OU=DU.Provider;DU.Consumer;var kU=()=>(0,V.useContext)(DU),AU=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),jU=(0,V.createContext)(null);function MU({children:e}){let t=dH(AU,sH);return(0,H.jsx)(jU.Provider,{value:t,children:e})}function NU(){let e=(0,V.useContext)(jU);if(!e)throw Error(`useHandleConfig must be used within a HandleConfigProvider`);return e}var PU={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},FU=(e,t,n)=>r=>{let{connectionClickStartHandle:i,connectionMode:a,connection:o}=r,{fromHandle:s,toHandle:c,isValid:l}=o;if(!s&&!i)return PU;let u=c?.nodeId===e&&c?.id===t&&c?.type===n;return{connectingFrom:s?.nodeId===e&&s?.id===t&&s?.type===n,connectingTo:u,clickConnecting:i?.nodeId===e&&i?.id===t&&i?.type===n,isPossibleEndHandle:a===pz.Strict?s?.type!==n:e!==s?.nodeId||t!==s?.id,connectionInProcess:!!s,clickConnectionInProcess:!!i,valid:u&&l}};function IU({type:e=`source`,position:t=$.Top,isValidConnection:n,isConnectable:r=!0,isConnectableStart:i=!0,isConnectableEnd:a=!0,id:o,onConnect:s,children:c,className:l,onMouseDown:u,onTouchStart:d,...f},p){let m=o||null,h=e===`target`,g=fH(),_=kU(),{connectOnClick:v,noPanClassName:y,rfId:b}=NU(),{connectingFrom:x,connectingTo:S,clickConnecting:C,isPossibleEndHandle:w,connectionInProcess:T,clickConnectionInProcess:E,valid:D}=dH(FU(_,m,e),sH);_||g.getState().onError?.(`010`,lz.error010());let O=e=>{let{defaultEdgeOptions:t,onConnect:n,hasDefaultEdges:r}=g.getState(),i={...t,...e};if(r){let{edges:e,setEdges:t,onError:n}=g.getState();t($H(i,e,{onError:n}))}n?.(i),s?.(i)},k=e=>{if(!_)return;let t=hB(e.nativeEvent);if(i&&(t&&e.button===0||!t)){let t=g.getState();xV.onPointerDown(e.nativeEvent,{handleDomNode:e.currentTarget,autoPanOnConnect:t.autoPanOnConnect,connectionMode:t.connectionMode,connectionRadius:t.connectionRadius,domNode:t.domNode,nodeLookup:t.nodeLookup,lib:t.lib,isTarget:h,handleId:m,nodeId:_,flowId:t.rfId,panBy:t.panBy,cancelConnection:t.cancelConnection,onConnectStart:t.onConnectStart,onConnectEnd:(...e)=>g.getState().onConnectEnd?.(...e),updateConnection:t.updateConnection,onConnect:O,isValidConnection:n||((...e)=>g.getState().isValidConnection?.(...e)??!0),getTransform:()=>g.getState().transform,getFromHandle:()=>g.getState().connection.fromHandle,autoPanSpeed:t.autoPanSpeed,dragThreshold:t.connectionDragThreshold})}t?u?.(e):d?.(e)};return(0,H.jsx)(`div`,{"data-handleid":m,"data-nodeid":_,"data-handlepos":t,"data-id":`${b}-${_}-${m}-${e}`,className:EN([`react-flow__handle`,`react-flow__handle-${t}`,`nodrag`,y,l,{source:!h,target:h,connectable:r,connectablestart:i,connectableend:a,clickconnecting:C,connectingfrom:x,connectingto:S,valid:D,connectionindicator:r&&(!T||w)&&(T||E?a:i)}]),onMouseDown:k,onTouchStart:k,onClick:v?t=>{let{onClickConnectStart:r,onClickConnectEnd:a,connectionClickStartHandle:o,connectionMode:s,isValidConnection:c,lib:l,rfId:u,nodeLookup:d,connection:f}=g.getState();if(!_||!o&&!i)return;if(!o){r?.(t.nativeEvent,{nodeId:_,handleId:m,handleType:e}),g.setState({connectionClickStartHandle:{nodeId:_,type:e,id:m}});return}let p=fB(t.target),h=n||c,{connection:v,isValid:y}=xV.isValid(t.nativeEvent,{handle:{nodeId:_,id:m,type:e},connectionMode:s,fromNodeId:o.nodeId,fromHandleId:o.id||null,fromType:o.type,isValidConnection:h,flowId:u,doc:p,lib:l,nodeLookup:d});y&&v&&O(v);let b=structuredClone(f);delete b.inProgress,b.toPosition=b.toHandle?b.toHandle.position:null,a?.(t,b),g.setState({connectionClickStartHandle:null})}:void 0,ref:p,...f,children:c})}var LU=(0,V.memo)(nU(IU));function RU({data:e,isConnectable:t,sourcePosition:n=$.Bottom}){return(0,H.jsxs)(H.Fragment,{children:[e?.label,(0,H.jsx)(LU,{type:`source`,position:n,isConnectable:t})]})}function zU({data:e,isConnectable:t,targetPosition:n=$.Top,sourcePosition:r=$.Bottom}){return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(LU,{type:`target`,position:n,isConnectable:t}),e?.label,(0,H.jsx)(LU,{type:`source`,position:r,isConnectable:t})]})}function BU(){return null}function VU({data:e,isConnectable:t,targetPosition:n=$.Top}){return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(LU,{type:`target`,position:n,isConnectable:t}),e?.label]})}var HU={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},UU={input:RU,default:zU,output:VU,group:BU};function WU(e){return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??e.style?.width,height:e.height??e.initialHeight??e.style?.height}:{width:e.width??e.style?.width,height:e.height??e.style?.height}}var GU=e=>{let{width:t,height:n,x:r,y:i}=Tz(e.nodeLookup,{filter:e=>!!e.selected});return{width:Kz(t)?t:null,height:Kz(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${r}px,${i}px)`}};function KU({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){let r=fH(),{width:i,height:a,transformString:o,userSelectionActive:s}=dH(GU,sH),c=EU(),l=(0,V.useRef)(null);(0,V.useEffect)(()=>{n||l.current?.focus({preventScroll:!0})},[n]);let u=!s&&i!==null&&a!==null;if(wU({nodeRef:l,disabled:!u}),!u)return null;let d=e?t=>{e(t,r.getState().nodes.filter(e=>e.selected))}:void 0;return(0,H.jsx)(`div`,{className:EN([`react-flow__nodesselection`,`react-flow__container`,t]),style:{transform:o},children:(0,H.jsx)(`div`,{ref:l,className:`react-flow__nodesselection-rect`,onContextMenu:d,tabIndex:n?void 0:-1,onKeyDown:n?void 0:e=>{Object.prototype.hasOwnProperty.call(HU,e.key)&&(e.preventDefault(),c({direction:HU[e.key],factor:e.shiftKey?4:1}))},style:{width:i,height:a}})})}var qU=typeof window<`u`?window:void 0,JU=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function YU({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:a,onPaneScroll:o,paneClickDistance:s,deleteKeyCode:c,selectionKeyCode:l,selectionOnDrag:u,selectionMode:d,onSelectionStart:f,onSelectionEnd:p,multiSelectionKeyCode:m,panActivationKeyCode:h,zoomActivationKeyCode:g,elementsSelectable:_,zoomOnScroll:v,zoomOnPinch:y,panOnScroll:b,panOnScrollSpeed:x,panOnScrollMode:S,zoomOnDoubleClick:C,panOnDrag:w,autoPanOnSelection:T,defaultViewport:E,translateExtent:D,minZoom:O,maxZoom:k,preventScrolling:A,onSelectionContextMenu:j,noWheelClassName:M,noPanClassName:N,disableKeyboardA11y:P,onViewportChange:F,isControlledViewport:I}){let{nodesSelectionActive:L,userSelectionActive:ee}=dH(JU,sH),te=BH(l,{target:qU}),ne=BH(h,{target:qU}),R=ne||w,z=ne||b,B=u&&R!==!0,re=te||ee||B;return pU({deleteKeyCode:c,multiSelectionKeyCode:m}),(0,H.jsx)(_U,{onPaneContextMenu:a,elementsSelectable:_,zoomOnScroll:v,zoomOnPinch:y,panOnScroll:z,panActivationKeyPressed:ne,panOnScrollSpeed:x,panOnScrollMode:S,zoomOnDoubleClick:C,panOnDrag:!te&&R,defaultViewport:E,translateExtent:D,minZoom:O,maxZoom:k,zoomActivationKeyCode:g,preventScrolling:A,noWheelClassName:M,noPanClassName:N,onViewportChange:F,isControlledViewport:I,paneClickDistance:s,selectionOnDrag:B,children:(0,H.jsxs)(SU,{onSelectionStart:f,onSelectionEnd:p,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:a,onPaneScroll:o,panOnDrag:R,autoPanOnSelection:T,isSelecting:!!re,selectionMode:d,selectionKeyPressed:te,paneClickDistance:s,selectionOnDrag:B,children:[e,L&&(0,H.jsx)(KU,{onSelectionContextMenu:j,noPanClassName:N,disableKeyboardA11y:P})]})})}YU.displayName=`FlowRenderer`;var XU=(0,V.memo)(YU),ZU=e=>t=>e?Ez(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(e=>e.id):Array.from(t.nodeLookup.keys());function QU(e){return dH((0,V.useCallback)(ZU(e),[e]),sH)}var $U=e=>e.updateNodeInternals;function eW(){let e=dH($U),[t]=(0,V.useState)(()=>typeof ResizeObserver>`u`?null:new ResizeObserver(t=>{let n=new Map;t.forEach(e=>{let t=e.target.getAttribute(`data-id`);n.set(t,{id:t,nodeElement:e.target,force:!0})}),e(n)}));return(0,V.useEffect)(()=>()=>{t?.disconnect()},[t]),t}function tW({node:e,nodeType:t,hasDimensions:n,resizeObserver:r}){let i=fH(),a=(0,V.useRef)(null),o=(0,V.useRef)(null),s=(0,V.useRef)(e.sourcePosition),c=(0,V.useRef)(e.targetPosition),l=(0,V.useRef)(t),u=n&&!!e.internals.handleBounds;return(0,V.useEffect)(()=>{a.current&&!e.hidden&&(!u||o.current!==a.current)&&(o.current&&r?.unobserve(o.current),r?.observe(a.current),o.current=a.current)},[u,e.hidden]),(0,V.useEffect)(()=>()=>{o.current&&=(r?.unobserve(o.current),null)},[]),(0,V.useEffect)(()=>{if(a.current){let n=l.current!==t,r=s.current!==e.sourcePosition,o=c.current!==e.targetPosition;(n||r||o)&&(l.current=t,s.current=e.sourcePosition,c.current=e.targetPosition,i.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:a.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),a}function nW({id:e,onClick:t,onMouseEnter:n,onMouseMove:r,onMouseLeave:i,onContextMenu:a,onDoubleClick:o,nodesDraggable:s,elementsSelectable:c,nodesConnectable:l,nodesFocusable:u,resizeObserver:d,noDragClassName:f,noPanClassName:p,disableKeyboardA11y:m,rfId:h,nodeTypes:g,nodeClickDistance:_,onError:v}){let{node:y,internals:b,isParent:x}=dH(t=>{let n=t.nodeLookup.get(e),r=t.parentLookup.has(e);return{node:n,internals:n.internals,isParent:r}},sH),S=y.type||`default`,C=g?.[S]||UU[S];C===void 0&&(v?.(`003`,lz.error003(S)),S=`default`,C=g?.default||UU.default);let w=!!(y.draggable||s&&y.draggable===void 0),T=!!(y.selectable||c&&y.selectable===void 0),E=!!(y.connectable||l&&y.connectable===void 0),D=!!(y.focusable||u&&y.focusable===void 0),O=fH(),k=iB(y),A=tW({node:y,nodeType:S,hasDimensions:k,resizeObserver:d}),j=wU({nodeRef:A,disabled:y.hidden||!w,noDragClassName:f,handleSelector:y.dragHandle,nodeId:e,isSelectable:T,nodeClickDistance:_}),M=EU();if(y.hidden)return null;let N=rB(y),P=WU(y),F=T||w||t||n||r||i,I=n?e=>n(e,{...b.userNode}):void 0,L=r?e=>r(e,{...b.userNode}):void 0,ee=i?e=>i(e,{...b.userNode}):void 0,te=a?e=>a(e,{...b.userNode}):void 0,ne=o?e=>o(e,{...b.userNode}):void 0,R=n=>{let{selectNodesOnDrag:r,nodeDragThreshold:i}=O.getState();T&&(!r||!w||i>0)&&CU({id:e,store:O,nodeRef:A}),t&&t(n,{...b.userNode})},z=t=>{if(!(mB(t.nativeEvent)||m)){if(dz.includes(t.key)&&T){let n=t.key===`Escape`;CU({id:e,store:O,unselect:n,nodeRef:A})}else if(w&&y.selected&&Object.prototype.hasOwnProperty.call(HU,t.key)){t.preventDefault();let{ariaLabelConfig:e}=O.getState();O.setState({ariaLiveMessage:e[`node.a11yDescription.ariaLiveMessage`]({direction:t.key.replace(`Arrow`,``).toLowerCase(),x:~~b.positionAbsolute.x,y:~~b.positionAbsolute.y})}),M({direction:HU[t.key],factor:t.shiftKey?4:1})}}},B=()=>{if(m||!A.current?.matches(`:focus-visible`))return;let{transform:t,width:n,height:r,autoPanOnNodeFocus:i,setCenter:a}=O.getState();i&&(Ez(new Map([[e,y]]),{x:0,y:0,width:n,height:r},t,!0).length>0||a(y.position.x+N.width/2,y.position.y+N.height/2,{zoom:t[2]}))};return(0,H.jsx)(`div`,{className:EN([`react-flow__node`,`react-flow__node-${S}`,{[p]:w},y.className,{selected:y.selected,selectable:T,parent:x,draggable:w,dragging:j}]),ref:A,style:{zIndex:b.z,transform:`translate(${b.positionAbsolute.x}px,${b.positionAbsolute.y}px)`,pointerEvents:F?`all`:`none`,visibility:k?`visible`:`hidden`,...y.style,...P},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:I,onMouseMove:L,onMouseLeave:ee,onContextMenu:te,onClick:R,onDoubleClick:ne,onKeyDown:D?z:void 0,tabIndex:D?0:void 0,onFocus:D?B:void 0,role:y.ariaRole??(D?`group`:void 0),"aria-roledescription":`node`,"aria-describedby":m?void 0:`${hH}-${h}`,"aria-label":y.ariaLabel,...y.domAttributes,children:(0,H.jsx)(OU,{value:e,children:(0,H.jsx)(C,{id:e,data:y.data,type:S,positionAbsoluteX:b.positionAbsolute.x,positionAbsoluteY:b.positionAbsolute.y,selected:y.selected??!1,selectable:T,draggable:w,deletable:y.deletable??!0,isConnectable:E,sourcePosition:y.sourcePosition,targetPosition:y.targetPosition,dragging:j,dragHandle:y.dragHandle,zIndex:b.z,parentId:y.parentId,...N})})})}var rW=(0,V.memo)(nW),iW=e=>({nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function aW(e){let{nodesConnectable:t,nodesFocusable:n,elementsSelectable:r,onError:i}=dH(iW,sH),a=QU(e.onlyRenderVisibleElements),o=eW();return(0,H.jsx)(`div`,{className:`react-flow__nodes`,style:hU,children:a.map(a=>(0,H.jsx)(rW,{id:a,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:o,nodesDraggable:e.nodesDraggable??!0,nodesConnectable:t,nodesFocusable:n,elementsSelectable:r,nodeClickDistance:e.nodeClickDistance,onError:i},a))})}aW.displayName=`NodeRenderer`;var oW=(0,V.memo)(aW);function sW(e){return dH((0,V.useCallback)(t=>{if(!e)return t.edges.map(e=>e.id);let n=[];if(t.width&&t.height)for(let e of t.edges){let r=t.nodeLookup.get(e.source),i=t.nodeLookup.get(e.target);r&&i&&wB({sourceNode:r,targetNode:i,width:t.width,height:t.height,transform:t.transform})&&n.push(e.id)}return n},[e]),sH)}var cW=({color:e=`none`,strokeWidth:t=1})=>{let n={strokeWidth:t,...e&&{stroke:e}};return(0,H.jsx)(`polyline`,{className:`arrow`,style:n,strokeLinecap:`round`,fill:`none`,strokeLinejoin:`round`,points:`-5,-4 0,0 -5,4`})},lW=({color:e=`none`,strokeWidth:t=1})=>{let n={strokeWidth:t,...e&&{stroke:e,fill:e}};return(0,H.jsx)(`polyline`,{className:`arrowclosed`,style:n,strokeLinecap:`round`,strokeLinejoin:`round`,points:`-5,-4 0,0 -5,4 -5,-4`})},uW={[vz.Arrow]:cW,[vz.ArrowClosed]:lW};function dW(e){let t=fH();return(0,V.useMemo)(()=>Object.prototype.hasOwnProperty.call(uW,e)?uW[e]:(t.getState().onError?.(`009`,lz.error009(e)),null),[e])}var fW=({id:e,type:t,color:n,width:r=12.5,height:i=12.5,markerUnits:a=`strokeWidth`,strokeWidth:o,orient:s=`auto-start-reverse`})=>{let c=dW(t);return c?(0,H.jsx)(`marker`,{className:`react-flow__arrowhead`,id:e,markerWidth:`${r}`,markerHeight:`${i}`,viewBox:`-10 -10 20 20`,markerUnits:a,orient:s,refX:`0`,refY:`0`,children:(0,H.jsx)(c,{color:n,strokeWidth:o})}):null},pW=({defaultColor:e,rfId:t})=>{let n=dH(e=>e.edges),r=dH(e=>e.defaultEdgeOptions),i=(0,V.useMemo)(()=>VB(n,{id:t,defaultColor:e,defaultMarkerStart:r?.markerStart,defaultMarkerEnd:r?.markerEnd}),[n,r,t,e]);return i.length?(0,H.jsx)(`svg`,{className:`react-flow__marker`,"aria-hidden":`true`,children:(0,H.jsx)(`defs`,{children:i.map(e=>(0,H.jsx)(fW,{id:e.id,type:e.type,color:e.color,width:e.width,height:e.height,markerUnits:e.markerUnits,strokeWidth:e.strokeWidth,orient:e.orient},e.id))})}):null};pW.displayName=`MarkerDefinitions`;var mW=(0,V.memo)(pW);function hW({x:e,y:t,label:n,labelStyle:r,labelShowBg:i=!0,labelBgStyle:a,labelBgPadding:o=[2,4],labelBgBorderRadius:s=2,children:c,className:l,...u}){let[d,f]=(0,V.useState)({x:1,y:0,width:0,height:0}),p=EN([`react-flow__edge-textwrapper`,l]),m=(0,V.useRef)(null);return(0,V.useEffect)(()=>{if(m.current){let e=m.current.getBBox();f({x:e.x,y:e.y,width:e.width,height:e.height})}},[n]),n?(0,H.jsxs)(`g`,{transform:`translate(${e-d.width/2} ${t-d.height/2})`,className:p,visibility:d.width?`visible`:`hidden`,...u,children:[i&&(0,H.jsx)(`rect`,{width:d.width+2*o[0],x:-o[0],y:-o[1],height:d.height+2*o[1],className:`react-flow__edge-textbg`,style:a,rx:s,ry:s}),(0,H.jsx)(`text`,{className:`react-flow__edge-text`,y:d.height/2,dy:`0.3em`,ref:m,style:r,children:n}),c]}):null}hW.displayName=`EdgeText`;var gW=(0,V.memo)(hW);function _W({path:e,labelX:t,labelY:n,label:r,labelStyle:i,labelShowBg:a,labelBgStyle:o,labelBgPadding:s,labelBgBorderRadius:c,interactionWidth:l=20,...u}){return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`path`,{...u,d:e,fill:`none`,className:EN([`react-flow__edge-path`,u.className])}),l?(0,H.jsx)(`path`,{d:e,fill:`none`,strokeOpacity:0,strokeWidth:l,className:`react-flow__edge-interaction`}):null,r&&Kz(t)&&Kz(n)?(0,H.jsx)(gW,{x:t,y:n,label:r,labelStyle:i,labelShowBg:a,labelBgStyle:o,labelBgPadding:s,labelBgBorderRadius:c}):null]})}function vW({pos:e,x1:t,y1:n,x2:r,y2:i}){return e===$.Left||e===$.Right?[.5*(t+r),n]:[t,.5*(n+i)]}function yW({sourceX:e,sourceY:t,sourcePosition:n=$.Bottom,targetX:r,targetY:i,targetPosition:a=$.Top}){let[o,s]=vW({pos:n,x1:e,y1:t,x2:r,y2:i}),[c,l]=vW({pos:a,x1:r,y1:i,x2:e,y2:t}),[u,d,f,p]=vB({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:o,sourceControlY:s,targetControlX:c,targetControlY:l});return[`M${e},${t} C${o},${s} ${c},${l} ${r},${i}`,u,d,f,p]}function bW(e){return(0,V.memo)(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:a,sourcePosition:o,targetPosition:s,label:c,labelStyle:l,labelShowBg:u,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:p,style:m,markerEnd:h,markerStart:g,interactionWidth:_})=>{let[v,y,b]=yW({sourceX:n,sourceY:r,sourcePosition:o,targetX:i,targetY:a,targetPosition:s}),x=e.isInternal?void 0:t;return(0,H.jsx)(_W,{id:x,path:v,labelX:y,labelY:b,label:c,labelStyle:l,labelShowBg:u,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:p,style:m,markerEnd:h,markerStart:g,interactionWidth:_})})}var xW=bW({isInternal:!1}),SW=bW({isInternal:!0});xW.displayName=`SimpleBezierEdge`,SW.displayName=`SimpleBezierEdgeInternal`;function CW(e){return(0,V.memo)(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:a,label:o,labelStyle:s,labelShowBg:c,labelBgStyle:l,labelBgPadding:u,labelBgBorderRadius:d,style:f,sourcePosition:p=$.Bottom,targetPosition:m=$.Top,markerEnd:h,markerStart:g,pathOptions:_,interactionWidth:v})=>{let[y,b,x]=PB({sourceX:n,sourceY:r,sourcePosition:p,targetX:i,targetY:a,targetPosition:m,borderRadius:_?.borderRadius,offset:_?.offset,stepPosition:_?.stepPosition}),S=e.isInternal?void 0:t;return(0,H.jsx)(_W,{id:S,path:y,labelX:b,labelY:x,label:o,labelStyle:s,labelShowBg:c,labelBgStyle:l,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:h,markerStart:g,interactionWidth:v})})}var wW=CW({isInternal:!1}),TW=CW({isInternal:!0});wW.displayName=`SmoothStepEdge`,TW.displayName=`SmoothStepEdgeInternal`;function EW(e){return(0,V.memo)(({id:t,...n})=>{let r=e.isInternal?void 0:t;return(0,H.jsx)(wW,{...n,id:r,pathOptions:(0,V.useMemo)(()=>({borderRadius:0,offset:n.pathOptions?.offset}),[n.pathOptions?.offset])})})}var DW=EW({isInternal:!1}),OW=EW({isInternal:!0});DW.displayName=`StepEdge`,OW.displayName=`StepEdgeInternal`;function kW(e){return(0,V.memo)(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:a,label:o,labelStyle:s,labelShowBg:c,labelBgStyle:l,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:p,markerStart:m,interactionWidth:h})=>{let[g,_,v]=OB({sourceX:n,sourceY:r,targetX:i,targetY:a}),y=e.isInternal?void 0:t;return(0,H.jsx)(_W,{id:y,path:g,labelX:_,labelY:v,label:o,labelStyle:s,labelShowBg:c,labelBgStyle:l,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:p,markerStart:m,interactionWidth:h})})}var AW=kW({isInternal:!1}),jW=kW({isInternal:!0});AW.displayName=`StraightEdge`,jW.displayName=`StraightEdgeInternal`;function MW(e){return(0,V.memo)(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:a,sourcePosition:o=$.Bottom,targetPosition:s=$.Top,label:c,labelStyle:l,labelShowBg:u,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:p,style:m,markerEnd:h,markerStart:g,pathOptions:_,interactionWidth:v})=>{let[y,b,x]=xB({sourceX:n,sourceY:r,sourcePosition:o,targetX:i,targetY:a,targetPosition:s,curvature:_?.curvature}),S=e.isInternal?void 0:t;return(0,H.jsx)(_W,{id:S,path:y,labelX:b,labelY:x,label:c,labelStyle:l,labelShowBg:u,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:p,style:m,markerEnd:h,markerStart:g,interactionWidth:v})})}var NW=MW({isInternal:!1}),PW=MW({isInternal:!0});NW.displayName=`BezierEdge`,PW.displayName=`BezierEdgeInternal`;var FW={default:PW,straight:jW,step:OW,smoothstep:TW,simplebezier:SW},IW={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},LW=(e,t,n)=>n===$.Left?e-t:n===$.Right?e+t:e,RW=(e,t,n)=>n===$.Top?e-t:n===$.Bottom?e+t:e,zW=`react-flow__edgeupdater`;function BW({position:e,centerX:t,centerY:n,radius:r=10,onMouseDown:i,onMouseEnter:a,onMouseOut:o,type:s}){return(0,H.jsx)(`circle`,{onMouseDown:i,onMouseEnter:a,onMouseOut:o,className:EN([zW,`${zW}-${s}`]),cx:LW(t,r,e),cy:RW(n,r,e),r,stroke:`transparent`,fill:`transparent`})}function VW({isReconnectable:e,reconnectRadius:t,edge:n,sourceX:r,sourceY:i,targetX:a,targetY:o,sourcePosition:s,targetPosition:c,onReconnect:l,onReconnectStart:u,onReconnectEnd:d,setReconnecting:f,setUpdateHover:p}){let m=fH(),h=(e,t)=>{if(e.button!==0)return;let{autoPanOnConnect:r,domNode:i,connectionMode:a,connectionRadius:o,lib:s,onConnectStart:c,cancelConnection:p,nodeLookup:h,rfId:g,panBy:_,updateConnection:v}=m.getState(),y=t.type===`target`;xV.onPointerDown(e.nativeEvent,{autoPanOnConnect:r,connectionMode:a,connectionRadius:o,domNode:i,handleId:t.id,nodeId:t.nodeId,nodeLookup:h,isTarget:y,edgeUpdaterType:t.type,lib:s,flowId:g,cancelConnection:p,panBy:_,isValidConnection:(...e)=>m.getState().isValidConnection?.(...e)??!0,onConnect:e=>l?.(n,e),onConnectStart:(r,i)=>{f(!0),u?.(e,n,t.type),c?.(r,i)},onConnectEnd:(...e)=>m.getState().onConnectEnd?.(...e),onReconnectEnd:(e,r)=>{f(!1),d?.(e,n,t.type,r)},updateConnection:v,getTransform:()=>m.getState().transform,getFromHandle:()=>m.getState().connection.fromHandle,dragThreshold:m.getState().connectionDragThreshold,handleDomNode:e.currentTarget})},g=e=>h(e,{nodeId:n.target,id:n.targetHandle??null,type:`target`}),_=e=>h(e,{nodeId:n.source,id:n.sourceHandle??null,type:`source`}),v=()=>p(!0),y=()=>p(!1);return(0,H.jsxs)(H.Fragment,{children:[(e===!0||e===`source`)&&(0,H.jsx)(BW,{position:s,centerX:r,centerY:i,radius:t,onMouseDown:g,onMouseEnter:v,onMouseOut:y,type:`source`}),(e===!0||e===`target`)&&(0,H.jsx)(BW,{position:c,centerX:a,centerY:o,radius:t,onMouseDown:_,onMouseEnter:v,onMouseOut:y,type:`target`})]})}function HW({id:e,edgesFocusable:t,edgesReconnectable:n,elementsSelectable:r,onClick:i,onDoubleClick:a,onContextMenu:o,onMouseEnter:s,onMouseMove:c,onMouseLeave:l,reconnectRadius:u,onReconnect:d,onReconnectStart:f,onReconnectEnd:p,rfId:m,edgeTypes:h,noPanClassName:g,onError:_,disableKeyboardA11y:v}){let y=dH(t=>t.edgeLookup.get(e)),b=dH(e=>e.defaultEdgeOptions);y=b?{...b,...y}:y;let x=y.type||`default`,S=h?.[x]||FW[x];S===void 0&&(_?.(`011`,lz.error011(x)),x=`default`,S=h?.default||FW.default);let C=!!(y.focusable||t&&y.focusable===void 0),w=d!==void 0&&(y.reconnectable||n&&y.reconnectable===void 0),T=!!(y.selectable||r&&y.selectable===void 0),E=(0,V.useRef)(null),[D,O]=(0,V.useState)(!1),[k,A]=(0,V.useState)(!1),j=fH(),{zIndex:M=y.zIndex,sourceX:N,sourceY:P,targetX:F,targetY:I,sourcePosition:L,targetPosition:ee}=dH((0,V.useCallback)(t=>{let n=t.nodeLookup.get(y.source),r=t.nodeLookup.get(y.target);if(!n||!r)return IW;let i=IB({id:e,sourceNode:n,targetNode:r,sourceHandle:y.sourceHandle||null,targetHandle:y.targetHandle||null,connectionMode:t.connectionMode,onError:_}),a=CB({selected:y.selected,zIndex:y.zIndex,sourceNode:n,targetNode:r,elevateOnSelect:t.elevateEdgesOnSelect,zIndexMode:t.zIndexMode});return{...i||IW,zIndex:a}},[y.source,y.target,y.sourceHandle,y.targetHandle,y.selected,y.zIndex,_]),sH),te=(0,V.useMemo)(()=>y.markerStart?`url('#${BB(y.markerStart,m)}')`:void 0,[y.markerStart,m]),ne=(0,V.useMemo)(()=>y.markerEnd?`url('#${BB(y.markerEnd,m)}')`:void 0,[y.markerEnd,m]);if(y.hidden||N===null||P===null||F===null||I===null)return null;let R=t=>{let{addSelectedEdges:n,unselectNodesAndEdges:r,multiSelectionActive:a}=j.getState();T&&(j.setState({nodesSelectionActive:!1}),y.selected&&a?(r({nodes:[],edges:[y]}),E.current?.blur()):n([e])),i&&i(t,y)},z=a?e=>{a(e,{...y})}:void 0,B=o?e=>{o(e,{...y})}:void 0,re=s?e=>{s(e,{...y})}:void 0,ie=c?e=>{c(e,{...y})}:void 0,ae=l?e=>{l(e,{...y})}:void 0;return(0,H.jsx)(`svg`,{style:{zIndex:M},children:(0,H.jsxs)(`g`,{className:EN([`react-flow__edge`,`react-flow__edge-${x}`,y.className,g,{selected:y.selected,animated:y.animated,inactive:!T&&!i,updating:D,selectable:T}]),onClick:R,onDoubleClick:z,onContextMenu:B,onMouseEnter:re,onMouseMove:ie,onMouseLeave:ae,onKeyDown:C?t=>{if(!v&&dz.includes(t.key)&&T){let{unselectNodesAndEdges:n,addSelectedEdges:r}=j.getState();t.key===`Escape`?(E.current?.blur(),n({edges:[y]})):r([e])}}:void 0,tabIndex:C?0:void 0,role:y.ariaRole??(C?`group`:`img`),"aria-roledescription":`edge`,"data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":y.ariaLabel===null?void 0:y.ariaLabel||`Edge from ${y.source} to ${y.target}`,"aria-describedby":C?`${gH}-${m}`:void 0,ref:E,...y.domAttributes,children:[!k&&(0,H.jsx)(S,{id:e,source:y.source,target:y.target,type:y.type,selected:y.selected,animated:y.animated,selectable:T,deletable:y.deletable??!0,label:y.label,labelStyle:y.labelStyle,labelShowBg:y.labelShowBg,labelBgStyle:y.labelBgStyle,labelBgPadding:y.labelBgPadding,labelBgBorderRadius:y.labelBgBorderRadius,sourceX:N,sourceY:P,targetX:F,targetY:I,sourcePosition:L,targetPosition:ee,data:y.data,style:y.style,sourceHandleId:y.sourceHandle,targetHandleId:y.targetHandle,markerStart:te,markerEnd:ne,pathOptions:`pathOptions`in y?y.pathOptions:void 0,interactionWidth:y.interactionWidth}),w&&(0,H.jsx)(VW,{edge:y,isReconnectable:w,reconnectRadius:u,onReconnect:d,onReconnectStart:f,onReconnectEnd:p,sourceX:N,sourceY:P,targetX:F,targetY:I,sourcePosition:L,targetPosition:ee,setUpdateHover:O,setReconnecting:A})]})})}var UW=(0,V.memo)(HW),WW=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function GW({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:n,edgeTypes:r,noPanClassName:i,onReconnect:a,onEdgeContextMenu:o,onEdgeMouseEnter:s,onEdgeMouseMove:c,onEdgeMouseLeave:l,onEdgeClick:u,reconnectRadius:d,onEdgeDoubleClick:f,onReconnectStart:p,onReconnectEnd:m,disableKeyboardA11y:h}){let{edgesFocusable:g,edgesReconnectable:_,elementsSelectable:v,onError:y}=dH(WW,sH),b=sW(t);return(0,H.jsxs)(`div`,{className:`react-flow__edges`,children:[(0,H.jsx)(mW,{defaultColor:e,rfId:n}),b.map(e=>(0,H.jsx)(UW,{id:e,edgesFocusable:g,edgesReconnectable:_,elementsSelectable:v,noPanClassName:i,onReconnect:a,onContextMenu:o,onMouseEnter:s,onMouseMove:c,onMouseLeave:l,onClick:u,reconnectRadius:d,onDoubleClick:f,onReconnectStart:p,onReconnectEnd:m,rfId:n,onError:y,edgeTypes:r,disableKeyboardA11y:h},e))]})}GW.displayName=`EdgeRenderer`;var KW=(0,V.memo)(GW),qW=e=>`translate(${e[0]}px,${e[1]}px) scale(${e[2]})`;function JW({children:e}){let t=fH(),n=(0,V.useRef)(null),[r]=(0,V.useState)(()=>t.getState().transform);return rU(()=>{let e=null,r=()=>{let r=t.getState().transform;e&&r[0]===e[0]&&r[1]===e[1]&&r[2]===e[2]||(e=r,n.current&&(n.current.style.transform=qW(r)))};return r(),t.subscribe(r)},[t]),(0,H.jsx)(`div`,{ref:n,className:`react-flow__viewport xyflow__viewport react-flow__container`,style:{transform:qW(r)},children:e})}function YW(e){let t=uU(),n=(0,V.useRef)(!1);(0,V.useEffect)(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}var XW=e=>e.panZoom?.syncViewport;function ZW(e){let t=dH(XW),n=fH();return(0,V.useEffect)(()=>{e&&(t?.(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function QW(e){return e.connection.inProgress?{...e.connection,to:Yz(e.connection.to,e.transform)}:{...e.connection}}function $W(e){return e?t=>e(QW(t)):QW}function eG(e){return dH($W(e),sH)}var tG=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function nG({containerStyle:e,style:t,type:n,component:r}){let{nodesConnectable:i,width:a,height:o,isValid:s,inProgress:c}=dH(tG,sH);return a&&i&&c?(0,H.jsx)(`svg`,{style:e,width:a,height:o,className:`react-flow__connectionline react-flow__container`,children:(0,H.jsx)(`g`,{className:EN([`react-flow__connection`,lB(s)]),children:(0,H.jsx)(rG,{style:t,type:n,CustomComponent:r,isValid:s})})}):null}var rG=({style:e,type:t=_z.Bezier,CustomComponent:n,isValid:r})=>{let{inProgress:i,from:a,fromNode:o,fromHandle:s,fromPosition:c,to:l,toNode:u,toHandle:d,toPosition:f,pointer:p}=eG();if(!i)return;if(n)return(0,H.jsx)(n,{connectionLineType:t,connectionLineStyle:e,fromNode:o,fromHandle:s,fromX:a.x,fromY:a.y,toX:l.x,toY:l.y,fromPosition:c,toPosition:f,connectionStatus:lB(r),toNode:u,toHandle:d,pointer:p});let m=``,h={sourceX:a.x,sourceY:a.y,sourcePosition:c,targetX:l.x,targetY:l.y,targetPosition:f};switch(t){case _z.Bezier:[m]=xB(h);break;case _z.SimpleBezier:[m]=yW(h);break;case _z.Step:[m]=PB({...h,borderRadius:0});break;case _z.SmoothStep:[m]=PB(h);break;default:[m]=OB(h)}return(0,H.jsx)(`path`,{d:m,fill:`none`,className:`react-flow__connection-path`,style:e})};rG.displayName=`ConnectionLine`;var iG={};function aG(e=iG){(0,V.useRef)(e),fH(),(0,V.useEffect)(()=>{},[e])}function oG(){fH(),(0,V.useRef)(!1),(0,V.useEffect)(()=>{},[])}function sG({nodeTypes:e,edgeTypes:t,onInit:n,onNodeClick:r,onEdgeClick:i,onNodeDoubleClick:a,onEdgeDoubleClick:o,onNodeMouseEnter:s,onNodeMouseMove:c,onNodeMouseLeave:l,onNodeContextMenu:u,onSelectionContextMenu:d,onSelectionStart:f,onSelectionEnd:p,connectionLineType:m,connectionLineStyle:h,connectionLineComponent:g,connectionLineContainerStyle:_,selectionKeyCode:v,selectionOnDrag:y,selectionMode:b,multiSelectionKeyCode:x,panActivationKeyCode:S,zoomActivationKeyCode:C,deleteKeyCode:w,onlyRenderVisibleElements:T,elementsSelectable:E,defaultViewport:D,translateExtent:O,minZoom:k,maxZoom:A,preventScrolling:j,defaultMarkerColor:M,zoomOnScroll:N,zoomOnPinch:P,panOnScroll:F,panOnScrollSpeed:I,panOnScrollMode:L,zoomOnDoubleClick:ee,panOnDrag:te,autoPanOnSelection:ne,onPaneClick:R,onPaneMouseEnter:z,onPaneMouseMove:B,onPaneMouseLeave:re,onPaneScroll:ie,onPaneContextMenu:ae,paneClickDistance:oe,nodeClickDistance:se,onEdgeContextMenu:ce,onEdgeMouseEnter:le,onEdgeMouseMove:ue,onEdgeMouseLeave:de,reconnectRadius:fe,onReconnect:pe,onReconnectStart:me,onReconnectEnd:he,noDragClassName:ge,noWheelClassName:_e,noPanClassName:ve,disableKeyboardA11y:ye,nodeExtent:be,rfId:xe,viewport:Se,onViewportChange:Ce,nodesDraggable:we}){return aG(e),aG(t),oG(),YW(n),ZW(Se),(0,H.jsx)(XU,{onPaneClick:R,onPaneMouseEnter:z,onPaneMouseMove:B,onPaneMouseLeave:re,onPaneContextMenu:ae,onPaneScroll:ie,paneClickDistance:oe,deleteKeyCode:w,selectionKeyCode:v,selectionOnDrag:y,selectionMode:b,onSelectionStart:f,onSelectionEnd:p,multiSelectionKeyCode:x,panActivationKeyCode:S,zoomActivationKeyCode:C,elementsSelectable:E,zoomOnScroll:N,zoomOnPinch:P,zoomOnDoubleClick:ee,panOnScroll:F,panOnScrollSpeed:I,panOnScrollMode:L,panOnDrag:te,autoPanOnSelection:ne,defaultViewport:D,translateExtent:O,minZoom:k,maxZoom:A,onSelectionContextMenu:d,preventScrolling:j,noDragClassName:ge,noWheelClassName:_e,noPanClassName:ve,disableKeyboardA11y:ye,onViewportChange:Ce,isControlledViewport:!!Se,children:(0,H.jsxs)(JW,{children:[(0,H.jsx)(KW,{edgeTypes:t,onEdgeClick:i,onEdgeDoubleClick:o,onReconnect:pe,onReconnectStart:me,onReconnectEnd:he,onlyRenderVisibleElements:T,onEdgeContextMenu:ce,onEdgeMouseEnter:le,onEdgeMouseMove:ue,onEdgeMouseLeave:de,reconnectRadius:fe,defaultMarkerColor:M,noPanClassName:ve,disableKeyboardA11y:ye,rfId:xe}),(0,H.jsx)(nG,{style:h,type:m,component:g,containerStyle:_}),(0,H.jsx)(`div`,{className:`react-flow__edgelabel-renderer`}),(0,H.jsx)(oW,{nodeTypes:e,onNodeClick:r,onNodeDoubleClick:a,onNodeMouseEnter:s,onNodeMouseMove:c,onNodeMouseLeave:l,onNodeContextMenu:u,nodeClickDistance:se,onlyRenderVisibleElements:T,noPanClassName:ve,noDragClassName:ge,disableKeyboardA11y:ye,nodeExtent:be,rfId:xe,nodesDraggable:we}),(0,H.jsx)(`div`,{className:`react-flow__viewport-portal`})]})})}sG.displayName=`GraphView`;var cG=(0,V.memo)(sG),lG=qz(`React Flow`,`https://reactflow.dev/`),uG=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:i,height:a,fitView:o,fitViewOptions:s,minZoom:c=.5,maxZoom:l=2,nodeOrigin:u,nodeExtent:d,zIndexMode:f=`basic`}={})=>{let p=new Map,m=new Map,h=new Map,g=new Map,_=r??t??[],v=n??e??[],y=u??[0,0],b=d??uz;aV(h,g,_);let{nodesInitialized:x}=XB(v,p,m,{nodeOrigin:y,nodeExtent:b,zIndexMode:f}),S=[0,0,1];if(o&&i&&a){let{x:e,y:t,zoom:n}=eB(Tz(p,{filter:e=>!!((e.width||e.initialWidth)&&(e.height||e.initialHeight))}),i,a,c,l,s?.padding??.1);S=[e,t,n]}return{rfId:`1`,width:i??0,height:a??0,transform:S,nodes:v,nodesInitialized:x,nodeLookup:p,parentLookup:m,edges:_,edgeLookup:g,connectionLookup:h,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:r!==void 0,panZoom:null,minZoom:c,maxZoom:l,translateExtent:uz,nodeExtent:b,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:pz.Strict,domNode:null,paneDragging:!1,noPanClassName:`nopan`,nodeOrigin:y,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:o??!1,fitViewOptions:s,fitViewResolver:null,connection:{...gz},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:``,autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:lG,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:`react`,debug:!1,ariaLabelConfig:fz,zIndexMode:f,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},dG=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:i,height:a,fitView:o,fitViewOptions:s,minZoom:c,maxZoom:l,nodeOrigin:u,nodeExtent:d,zIndexMode:f})=>oH((p,m)=>{async function h(){let{nodeLookup:e,panZoom:t,fitViewOptions:n,fitViewResolver:r,width:i,height:a,minZoom:o,maxZoom:s}=m();t&&(await kz({nodes:e,width:i,height:a,panZoom:t,minZoom:o,maxZoom:s},n),r?.resolve(!0),p({fitViewResolver:null}))}return{...uG({nodes:e,edges:t,width:i,height:a,fitView:o,fitViewOptions:s,minZoom:c,maxZoom:l,nodeOrigin:u,nodeExtent:d,defaultNodes:n,defaultEdges:r,zIndexMode:f}),setNodes:e=>{let{nodeLookup:t,parentLookup:n,nodeOrigin:r,nodeExtent:i,elevateNodesOnSelect:a,fitViewQueued:o,zIndexMode:s,nodesSelectionActive:c}=m(),{nodesInitialized:l,hasSelectedNodes:u}=XB(e,t,n,{nodeOrigin:r,nodeExtent:i,elevateNodesOnSelect:a,checkEquality:!0,zIndexMode:s}),d=c&&u;o&&l?(h(),p({nodes:e,nodesInitialized:l,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:d})):p({nodes:e,nodesInitialized:l,nodesSelectionActive:d})},setEdges:e=>{let{connectionLookup:t,edgeLookup:n}=m();aV(t,n,e),p({edges:e})},setDefaultNodesAndEdges:(e,t)=>{if(e){let{setNodes:t}=m();t(e),p({hasDefaultNodes:!0})}if(t){let{setEdges:e}=m();e(t),p({hasDefaultEdges:!0})}},updateNodeInternals:e=>{let{triggerNodeChanges:t,nodeLookup:n,parentLookup:r,domNode:i,nodeOrigin:a,nodeExtent:o,debug:s,fitViewQueued:c,zIndexMode:l}=m(),{changes:u,updatedInternals:d}=nV(e,n,r,i,a,o,l);d&&(qB(n,r,{nodeOrigin:a,nodeExtent:o,zIndexMode:l}),c?(h(),p({fitViewQueued:!1,fitViewOptions:void 0})):p({}),u?.length>0&&(s&&console.log(`React Flow: trigger node changes`,u),t?.(u)))},updateNodePositions:(e,t=!1)=>{let n=[],r=[],{nodeLookup:i,triggerNodeChanges:a,connection:o,updateConnection:s,onNodesChangeMiddlewareMap:c}=m();for(let[a,c]of e){let e=i.get(a),l=!!(e?.expandParent&&e?.parentId&&c?.position),u={id:a,type:`position`,position:l?{x:Math.max(0,c.position.x),y:Math.max(0,c.position.y)}:c.position,dragging:t};if(e&&o.inProgress&&o.fromNode.id===e.id){let t=RB(e,o.fromHandle,$.Left,!0);s({...o,from:t})}l&&e.parentId&&n.push({id:a,parentId:e.parentId,rect:{...c.internals.positionAbsolute,width:c.measured.width??0,height:c.measured.height??0}}),r.push(u)}if(n.length>0){let{parentLookup:e,nodeOrigin:t}=m(),a=tV(n,i,e,t);r.push(...a)}for(let e of c.values())r=e(r);a(r)},triggerNodeChanges:e=>{let{onNodesChange:t,setNodes:n,nodes:r,hasDefaultNodes:i,debug:a}=m();e?.length&&(i&&n(KH(e,r)),a&&console.log(`React Flow: trigger node changes`,e),t?.(e))},triggerEdgeChanges:e=>{let{onEdgesChange:t,setEdges:n,edges:r,hasDefaultEdges:i,debug:a}=m();e?.length&&(i&&n(qH(e,r)),a&&console.log(`React Flow: trigger edge changes`,e),t?.(e))},addSelectedNodes:e=>{let{multiSelectionActive:t,edgeLookup:n,nodeLookup:r,triggerNodeChanges:i,triggerEdgeChanges:a}=m();if(t){i(e.map(e=>JH(e,!0)));return}i(YH(r,new Set([...e]),!0)),a(YH(n))},addSelectedEdges:e=>{let{multiSelectionActive:t,edgeLookup:n,nodeLookup:r,triggerNodeChanges:i,triggerEdgeChanges:a}=m();if(t){a(e.map(e=>JH(e,!0)));return}a(YH(n,new Set([...e]))),i(YH(r,new Set,!0))},unselectNodesAndEdges:({nodes:e,edges:t}={})=>{let{edges:n,nodes:r,nodeLookup:i,triggerNodeChanges:a,triggerEdgeChanges:o}=m(),s=e||r,c=t||n,l=[];for(let e of s){if(!e.selected)continue;let t=i.get(e.id);t&&(t.selected=!1),l.push(JH(e.id,!1))}let u=[];for(let e of c)e.selected&&u.push(JH(e.id,!1));a(l),o(u)},setMinZoom:e=>{let{panZoom:t,maxZoom:n}=m();t?.setScaleExtent([e,n]),p({minZoom:e})},setMaxZoom:e=>{let{panZoom:t,minZoom:n}=m();t?.setScaleExtent([n,e]),p({maxZoom:e})},setTranslateExtent:e=>{m().panZoom?.setTranslateExtent(e),p({translateExtent:e})},resetSelectedElements:()=>{let{edges:e,nodes:t,triggerNodeChanges:n,triggerEdgeChanges:r,elementsSelectable:i}=m();if(!i)return;let a=t.reduce((e,t)=>t.selected?[...e,JH(t.id,!1)]:e,[]),o=e.reduce((e,t)=>t.selected?[...e,JH(t.id,!1)]:e,[]);n(a),r(o)},setNodeExtent:e=>{let{nodes:t,nodeLookup:n,parentLookup:r,nodeOrigin:i,elevateNodesOnSelect:a,nodeExtent:o,zIndexMode:s}=m();(e[0][0]!==o[0][0]||e[0][1]!==o[0][1]||e[1][0]!==o[1][0]||e[1][1]!==o[1][1])&&(XB(t,n,r,{nodeOrigin:i,nodeExtent:e,elevateNodesOnSelect:a,checkEquality:!1,zIndexMode:s}),p({nodeExtent:e}))},panBy:e=>{let{transform:t,width:n,height:r,panZoom:i,translateExtent:a}=m();return rV({delta:e,panZoom:i,transform:t,translateExtent:a,width:n,height:r})},setCenter:async(e,t,n)=>{let{width:r,height:i,maxZoom:a,panZoom:o}=m();if(!o)return!1;let s=n?.zoom===void 0?a:n.zoom;return await o.setViewport({x:r/2-e*s,y:i/2-t*s,zoom:s},{duration:n?.duration,ease:n?.ease,interpolate:n?.interpolate}),!0},cancelConnection:()=>{p({connection:{...gz}})},updateConnection:e=>{p({connection:e})},reset:()=>p({...uG()})}},Object.is);function fG({initialNodes:e,initialEdges:t,defaultNodes:n,defaultEdges:r,initialWidth:i,initialHeight:a,initialMinZoom:o,initialMaxZoom:s,initialFitViewOptions:c,fitView:l,nodeOrigin:u,nodeExtent:d,zIndexMode:f,children:p}){let[m]=(0,V.useState)(()=>dG({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:i,height:a,fitView:l,minZoom:o,maxZoom:s,fitViewOptions:c,nodeOrigin:u,nodeExtent:d,zIndexMode:f}));return(0,H.jsx)(lH,{value:m,children:(0,H.jsx)(sU,{children:(0,H.jsx)(MU,{children:p})})})}function pG({children:e,nodes:t,edges:n,defaultNodes:r,defaultEdges:i,width:a,height:o,fitView:s,fitViewOptions:c,minZoom:l,maxZoom:u,nodeOrigin:d,nodeExtent:f,zIndexMode:p}){return(0,V.useContext)(cH)?(0,H.jsx)(H.Fragment,{children:e}):(0,H.jsx)(fG,{initialNodes:t,initialEdges:n,defaultNodes:r,defaultEdges:i,initialWidth:a,initialHeight:o,fitView:s,initialFitViewOptions:c,initialMinZoom:l,initialMaxZoom:u,nodeOrigin:d,nodeExtent:f,zIndexMode:p,children:e})}var mG={width:`100%`,height:`100%`,overflow:`hidden`,position:`relative`,zIndex:0};function hG({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,className:i,nodeTypes:a,edgeTypes:o,onNodeClick:s,onEdgeClick:c,onInit:l,onMove:u,onMoveStart:d,onMoveEnd:f,onConnect:p,onConnectStart:m,onConnectEnd:h,onClickConnectStart:g,onClickConnectEnd:_,onNodeMouseEnter:v,onNodeMouseMove:y,onNodeMouseLeave:b,onNodeContextMenu:x,onNodeDoubleClick:S,onNodeDragStart:C,onNodeDrag:w,onNodeDragStop:T,onNodesDelete:E,onEdgesDelete:D,onDelete:O,onSelectionChange:k,onSelectionDragStart:A,onSelectionDrag:j,onSelectionDragStop:M,onSelectionContextMenu:N,onSelectionStart:P,onSelectionEnd:F,onBeforeDelete:I,connectionMode:L,connectionLineType:ee=_z.Bezier,connectionLineStyle:te,connectionLineComponent:ne,connectionLineContainerStyle:R,deleteKeyCode:z=`Backspace`,selectionKeyCode:B=`Shift`,selectionOnDrag:re=!1,selectionMode:ie=hz.Full,panActivationKeyCode:ae=`Space`,multiSelectionKeyCode:oe=tB()?`Meta`:`Control`,zoomActivationKeyCode:se=tB()?`Meta`:`Control`,snapToGrid:ce,snapGrid:le,onlyRenderVisibleElements:ue=!1,selectNodesOnDrag:de,nodesDraggable:fe,autoPanOnNodeFocus:pe,nodesConnectable:me,nodesFocusable:he,nodeOrigin:ge=jH,edgesFocusable:_e,edgesReconnectable:ve,elementsSelectable:ye=!0,defaultViewport:be=MH,minZoom:xe=.5,maxZoom:Se=2,translateExtent:Ce=uz,preventScrolling:we=!0,nodeExtent:Te,defaultMarkerColor:Ee=`#b1b1b7`,zoomOnScroll:De=!0,zoomOnPinch:Oe=!0,panOnScroll:ke=!1,panOnScrollSpeed:Ae=.5,panOnScrollMode:je=mz.Free,zoomOnDoubleClick:Me=!0,panOnDrag:Ne=!0,onPaneClick:Pe,onPaneMouseEnter:Fe,onPaneMouseMove:Ie,onPaneMouseLeave:Le,onPaneScroll:Re,onPaneContextMenu:ze,paneClickDistance:Be=1,nodeClickDistance:Ve=0,children:He,onReconnect:Ue,onReconnectStart:We,onReconnectEnd:Ge,onEdgeContextMenu:Ke,onEdgeDoubleClick:qe,onEdgeMouseEnter:Je,onEdgeMouseMove:Ye,onEdgeMouseLeave:Xe,reconnectRadius:Ze=10,onNodesChange:Qe,onEdgesChange:$e,noDragClassName:et=`nodrag`,noWheelClassName:tt=`nowheel`,noPanClassName:nt=`nopan`,fitView:rt,fitViewOptions:it,connectOnClick:at,attributionPosition:ot,proOptions:st,defaultEdgeOptions:ct,elevateNodesOnSelect:lt=!0,elevateEdgesOnSelect:ut=!1,disableKeyboardA11y:dt=!1,autoPanOnConnect:ft,autoPanOnNodeDrag:pt,autoPanOnSelection:mt=!0,autoPanSpeed:U,connectionRadius:ht,isValidConnection:gt,onError:_t,style:vt,id:yt,nodeDragThreshold:bt,connectionDragThreshold:xt,viewport:St,onViewportChange:Ct,width:wt,height:Tt,colorMode:Et=`light`,debug:Dt,onScroll:Ot,ariaLabelConfig:kt,zIndexMode:At=`basic`,...jt},Mt){let Nt=yt||`1`,Pt=RH(Et),Ft=(0,V.useCallback)(e=>{e.currentTarget.scrollTo({top:0,left:0,behavior:`instant`}),Ot?.(e)},[Ot]);return(0,H.jsx)(`div`,{"data-testid":`rf__wrapper`,...jt,onScroll:Ft,style:{...vt,...mG},ref:Mt,className:EN([`react-flow`,i,Pt]),id:yt,role:`application`,children:(0,H.jsxs)(pG,{nodes:e,edges:t,width:wt,height:Tt,fitView:rt,fitViewOptions:it,minZoom:xe,maxZoom:Se,nodeOrigin:ge,nodeExtent:Te,zIndexMode:At,children:[(0,H.jsx)(IH,{nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:p,onConnectStart:m,onConnectEnd:h,onClickConnectStart:g,onClickConnectEnd:_,nodesDraggable:fe,autoPanOnNodeFocus:pe,nodesConnectable:me,nodesFocusable:he,edgesFocusable:_e,edgesReconnectable:ve,elementsSelectable:ye,elevateNodesOnSelect:lt,elevateEdgesOnSelect:ut,minZoom:xe,maxZoom:Se,nodeExtent:Te,onNodesChange:Qe,onEdgesChange:$e,snapToGrid:ce,snapGrid:le,connectionMode:L,translateExtent:Ce,connectOnClick:at,defaultEdgeOptions:ct,fitView:rt,fitViewOptions:it,onNodesDelete:E,onEdgesDelete:D,onDelete:O,onNodeDragStart:C,onNodeDrag:w,onNodeDragStop:T,onSelectionDrag:j,onSelectionDragStart:A,onSelectionDragStop:M,onMove:u,onMoveStart:d,onMoveEnd:f,noPanClassName:nt,nodeOrigin:ge,rfId:Nt,autoPanOnConnect:ft,autoPanOnNodeDrag:pt,autoPanSpeed:U,onError:_t,connectionRadius:ht,isValidConnection:gt,selectNodesOnDrag:de,nodeDragThreshold:bt,connectionDragThreshold:xt,onBeforeDelete:I,debug:Dt,ariaLabelConfig:kt,zIndexMode:At}),(0,H.jsx)(cG,{onInit:l,onNodeClick:s,onEdgeClick:c,onNodeMouseEnter:v,onNodeMouseMove:y,onNodeMouseLeave:b,onNodeContextMenu:x,onNodeDoubleClick:S,nodeTypes:a,edgeTypes:o,connectionLineType:ee,connectionLineStyle:te,connectionLineComponent:ne,connectionLineContainerStyle:R,selectionKeyCode:B,selectionOnDrag:re,selectionMode:ie,deleteKeyCode:z,multiSelectionKeyCode:oe,panActivationKeyCode:ae,zoomActivationKeyCode:se,onlyRenderVisibleElements:ue,defaultViewport:be,translateExtent:Ce,minZoom:xe,maxZoom:Se,preventScrolling:we,zoomOnScroll:De,zoomOnPinch:Oe,zoomOnDoubleClick:Me,panOnScroll:ke,panOnScrollSpeed:Ae,panOnScrollMode:je,panOnDrag:Ne,autoPanOnSelection:mt,onPaneClick:Pe,onPaneMouseEnter:Fe,onPaneMouseMove:Ie,onPaneMouseLeave:Le,onPaneScroll:Re,onPaneContextMenu:ze,paneClickDistance:Be,nodeClickDistance:Ve,onSelectionContextMenu:N,onSelectionStart:P,onSelectionEnd:F,onReconnect:Ue,onReconnectStart:We,onReconnectEnd:Ge,onEdgeContextMenu:Ke,onEdgeDoubleClick:qe,onEdgeMouseEnter:Je,onEdgeMouseMove:Ye,onEdgeMouseLeave:Xe,reconnectRadius:Ze,defaultMarkerColor:Ee,noDragClassName:et,noWheelClassName:tt,noPanClassName:nt,rfId:Nt,disableKeyboardA11y:dt,nodeExtent:Te,viewport:St,onViewportChange:Ct,nodesDraggable:fe}),(0,H.jsx)(AH,{onSelectionChange:k}),He,(0,H.jsx)(wH,{proOptions:st,position:ot}),(0,H.jsx)(xH,{rfId:Nt,disableKeyboardA11y:dt})]})})}var gG=nU(hG),_G=e=>e.domNode?.querySelector(`.react-flow__edgelabel-renderer`);function vG({children:e}){let t=dH(_G);return t?(0,Dr.createPortal)(e,t):null}function yG(e){let[t,n]=(0,V.useState)(e);return[t,n,(0,V.useCallback)(e=>n(t=>KH(e,t)),[])]}function bG(e){let[t,n]=(0,V.useState)(e);return[t,n,(0,V.useCallback)(e=>n(t=>qH(e,t)),[])]}lz.error014();function xG({dimensions:e,lineWidth:t,variant:n,className:r}){return(0,H.jsx)(`path`,{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:EN([`react-flow__background-pattern`,n,r])})}function SG({radius:e,className:t}){return(0,H.jsx)(`circle`,{cx:e,cy:e,r:e,className:EN([`react-flow__background-pattern`,`dots`,t])})}var CG;(function(e){e.Lines=`lines`,e.Dots=`dots`,e.Cross=`cross`})(CG||={});var wG={[CG.Dots]:1,[CG.Lines]:1,[CG.Cross]:6},TG=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function EG({id:e,variant:t=CG.Dots,gap:n=20,size:r,lineWidth:i=1,offset:a=0,color:o,bgColor:s,style:c,className:l,patternClassName:u}){let d=(0,V.useRef)(null),{transform:f,patternId:p}=dH(TG,sH),m=r||wG[t],h=t===CG.Dots,g=t===CG.Cross,_=Array.isArray(n)?n:[n,n],v=[_[0]*f[2]||1,_[1]*f[2]||1],y=m*f[2],b=Array.isArray(a)?a:[a,a],x=g?[y,y]:v,S=[b[0]*f[2]+x[0]/2,b[1]*f[2]+x[1]/2],C=`${p}${e||``}`;return(0,H.jsxs)(`svg`,{className:EN([`react-flow__background`,l]),style:{...c,...hU,"--xy-background-color-props":s,"--xy-background-pattern-color-props":o},ref:d,"data-testid":`rf__background`,children:[(0,H.jsx)(`pattern`,{id:C,x:f[0]%v[0],y:f[1]%v[1],width:v[0],height:v[1],patternUnits:`userSpaceOnUse`,patternTransform:`translate(-${S[0]},-${S[1]})`,children:h?(0,H.jsx)(SG,{radius:y/2,className:u}):(0,H.jsx)(xG,{dimensions:x,lineWidth:i,variant:t,className:u})}),(0,H.jsx)(`rect`,{x:`0`,y:`0`,width:`100%`,height:`100%`,fill:`url(#${C})`})]})}EG.displayName=`Background`,(0,V.memo)(EG);function DG(){return(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,children:(0,H.jsx)(`path`,{d:`M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z`})})}function OG(){return(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 5`,children:(0,H.jsx)(`path`,{d:`M0 0h32v4.2H0z`})})}function kG(){return(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 30`,children:(0,H.jsx)(`path`,{d:`M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z`})})}function AG(){return(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 25 32`,children:(0,H.jsx)(`path`,{d:`M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z`})})}function jG(){return(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 25 32`,children:(0,H.jsx)(`path`,{d:`M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z`})})}function MG({children:e,className:t,...n}){return(0,H.jsx)(`button`,{type:`button`,className:EN([`react-flow__controls-button`,t]),...n,children:e})}var NG=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function PG({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:r=!0,fitViewOptions:i,onZoomIn:a,onZoomOut:o,onFitView:s,onInteractiveChange:c,className:l,children:u,position:d=`bottom-left`,orientation:f=`vertical`,"aria-label":p}){let m=fH(),{isInteractive:h,minZoomReached:g,maxZoomReached:_,ariaLabelConfig:v}=dH(NG,sH),{zoomIn:y,zoomOut:b,fitView:x}=uU();return(0,H.jsxs)(SH,{className:EN([`react-flow__controls`,f===`horizontal`?`horizontal`:`vertical`,l]),position:d,style:e,"data-testid":`rf__controls`,"aria-label":p??v[`controls.ariaLabel`],children:[t&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(MG,{onClick:()=>{y(),a?.()},className:`react-flow__controls-zoomin`,title:v[`controls.zoomIn.ariaLabel`],"aria-label":v[`controls.zoomIn.ariaLabel`],disabled:_,children:(0,H.jsx)(DG,{})}),(0,H.jsx)(MG,{onClick:()=>{b(),o?.()},className:`react-flow__controls-zoomout`,title:v[`controls.zoomOut.ariaLabel`],"aria-label":v[`controls.zoomOut.ariaLabel`],disabled:g,children:(0,H.jsx)(OG,{})})]}),n&&(0,H.jsx)(MG,{className:`react-flow__controls-fitview`,onClick:()=>{x(i),s?.()},title:v[`controls.fitView.ariaLabel`],"aria-label":v[`controls.fitView.ariaLabel`],children:(0,H.jsx)(kG,{})}),r&&(0,H.jsx)(MG,{className:`react-flow__controls-interactive`,onClick:()=>{m.setState({nodesDraggable:!h,nodesConnectable:!h,elementsSelectable:!h}),c?.(!h)},title:v[`controls.interactive.ariaLabel`],"aria-label":v[`controls.interactive.ariaLabel`],children:h?(0,H.jsx)(jG,{}):(0,H.jsx)(AG,{})}),u]})}PG.displayName=`Controls`;var FG=(0,V.memo)(PG);function IG({id:e,x:t,y:n,width:r,height:i,style:a,color:o,strokeColor:s,strokeWidth:c,className:l,borderRadius:u,shapeRendering:d,selected:f,onClick:p}){let{background:m,backgroundColor:h}=a||{},g=o||m||h;return(0,H.jsx)(`rect`,{className:EN([`react-flow__minimap-node`,{selected:f},l]),x:t,y:n,rx:u,ry:u,width:r,height:i,style:{fill:g,stroke:s,strokeWidth:c},shapeRendering:d,onClick:p?t=>p(t,e):void 0})}var LG=(0,V.memo)(IG),RG=e=>e.nodes.map(e=>e.id),zG=e=>e instanceof Function?e:()=>e;function BG({nodeStrokeColor:e,nodeColor:t,nodeClassName:n=``,nodeBorderRadius:r=5,nodeStrokeWidth:i,nodeComponent:a=LG,onClick:o}){let s=dH(RG,sH),c=zG(t),l=zG(e),u=zG(n),d=typeof window>`u`||window.chrome?`crispEdges`:`geometricPrecision`;return(0,H.jsx)(H.Fragment,{children:s.map(e=>(0,H.jsx)(HG,{id:e,nodeColorFunc:c,nodeStrokeColorFunc:l,nodeClassNameFunc:u,nodeBorderRadius:r,nodeStrokeWidth:i,NodeComponent:a,onClick:o,shapeRendering:d},e))})}function VG({id:e,nodeColorFunc:t,nodeStrokeColorFunc:n,nodeClassNameFunc:r,nodeBorderRadius:i,nodeStrokeWidth:a,shapeRendering:o,NodeComponent:s,onClick:c}){let{node:l,x:u,y:d,width:f,height:p}=dH(t=>{let n=t.nodeLookup.get(e);if(!n)return{node:void 0,x:0,y:0,width:0,height:0};let r=n.internals.userNode,{x:i,y:a}=n.internals.positionAbsolute,{width:o,height:s}=rB(r);return{node:r,x:i,y:a,width:o,height:s}},sH);return!l||l.hidden||!iB(l)?null:(0,H.jsx)(s,{x:u,y:d,width:f,height:p,style:l.style,selected:!!l.selected,className:r(l),color:t(l),borderRadius:i,strokeColor:n(l),strokeWidth:a,shapeRendering:o,onClick:c,id:l.id})}var HG=(0,V.memo)(VG),UG=(0,V.memo)(BG),WG=200,GG=150,KG=e=>!e.hidden,qG=e=>{let t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]},n=!1;for(let t of e.nodeLookup.values())if(!t.hidden){n=!0;break}return{viewBB:t,boundingRect:n?Hz(Tz(e.nodeLookup,{filter:KG}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},JG=(e,t)=>e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,YG=(e,t)=>JG(e.viewBB,t.viewBB)&&JG(e.boundingRect,t.boundingRect)&&e.rfId===t.rfId&&e.panZoom===t.panZoom&&e.translateExtent===t.translateExtent&&e.flowWidth===t.flowWidth&&e.flowHeight===t.flowHeight&&e.ariaLabelConfig===t.ariaLabelConfig,XG=`react-flow__minimap-desc`;function ZG({style:e,className:t,nodeStrokeColor:n,nodeColor:r,nodeClassName:i=``,nodeBorderRadius:a=5,nodeStrokeWidth:o,nodeComponent:s,bgColor:c,maskColor:l,maskStrokeColor:u,maskStrokeWidth:d,position:f=`bottom-right`,onClick:p,onNodeClick:m,pannable:h=!1,zoomable:g=!1,ariaLabel:_,inversePan:v,zoomStep:y=1,offsetScale:b=5}){let x=fH(),S=(0,V.useRef)(null),{boundingRect:C,panZoom:w,viewBB:T,rfId:E,translateExtent:D,flowWidth:O,flowHeight:k,ariaLabelConfig:A}=dH(qG,YG),j=e?.width??WG,M=e?.height??GG,N=C.width/j,P=C.height/M,F=Math.max(N,P),I=F*j,L=F*M,ee=b*F,te=C.x-(I-C.width)/2-ee,ne=C.y-(L-C.height)/2-ee,R=I+ee*2,z=L+ee*2,B=`${XG}-${E}`,re=(0,V.useRef)(0),ie=(0,V.useRef)();re.current=F,(0,V.useEffect)(()=>{let e=x.getState().panZoom;if(S.current&&e)return ie.current=SV({domNode:S.current,panZoom:e,getTransform:()=>x.getState().transform,getViewScale:()=>re.current}),()=>{ie.current?.destroy()}},[w]),(0,V.useEffect)(()=>{ie.current?.update({translateExtent:D,width:O,height:k,inversePan:v,pannable:h,zoomStep:y,zoomable:g})},[h,g,v,y,D,O,k]);let ae=p?e=>{let[t,n]=ie.current?.pointer(e)||[0,0];p(e,{x:t,y:n})}:void 0,oe=(0,V.useCallback)((e,t)=>{let n=x.getState().nodeLookup.get(t).internals.userNode;m?.(e,n)},[m]),se=m?oe:void 0,ce=_??A[`minimap.ariaLabel`];return(0,H.jsx)(SH,{position:f,style:{...e,"--xy-minimap-background-color-props":typeof c==`string`?c:void 0,"--xy-minimap-mask-background-color-props":typeof l==`string`?l:void 0,"--xy-minimap-mask-stroke-color-props":typeof u==`string`?u:void 0,"--xy-minimap-mask-stroke-width-props":typeof d==`number`?d*F:void 0,"--xy-minimap-node-background-color-props":typeof r==`string`?r:void 0,"--xy-minimap-node-stroke-color-props":typeof n==`string`?n:void 0,"--xy-minimap-node-stroke-width-props":typeof o==`number`?o:void 0},className:EN([`react-flow__minimap`,t]),"data-testid":`rf__minimap`,children:(0,H.jsxs)(`svg`,{width:j,height:M,viewBox:`${te} ${ne} ${R} ${z}`,className:`react-flow__minimap-svg`,role:`img`,"aria-labelledby":B,ref:S,onClick:ae,children:[ce&&(0,H.jsx)(`title`,{id:B,children:ce}),(0,H.jsx)(UG,{onClick:se,nodeColor:r,nodeStrokeColor:n,nodeBorderRadius:a,nodeClassName:i,nodeStrokeWidth:o,nodeComponent:s}),(0,H.jsx)(`path`,{className:`react-flow__minimap-mask`,d:`M${te-ee},${ne-ee}h${R+ee*2}v${z+ee*2}h${-R-ee*2}z
60
+ M${T.x},${T.y}h${T.width}v${T.height}h${-T.width}z`,fillRule:`evenodd`,pointerEvents:`none`})]})})}ZG.displayName=`MiniMap`,(0,V.memo)(ZG);var QG=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,$G={[LV.Line]:`right`,[LV.Handle]:`bottom-right`};function eK({nodeId:e,position:t,variant:n=LV.Handle,className:r,style:i=void 0,children:a,color:o,minWidth:s=10,minHeight:c=10,maxWidth:l=Number.MAX_VALUE,maxHeight:u=Number.MAX_VALUE,keepAspectRatio:d=!1,resizeDirection:f,autoScale:p=!0,shouldResize:m,onResizeStart:h,onResize:g,onResizeEnd:_}){let v=kU(),y=typeof e==`string`?e:v,b=fH(),x=(0,V.useRef)(null),S=n===LV.Handle,C=dH((0,V.useCallback)(QG(S&&p),[S,p]),sH),w=(0,V.useRef)(null),T=t??$G[n];(0,V.useEffect)(()=>{if(!(!x.current||!y))return w.current||=JV({domNode:x.current,nodeId:y,getStoreItems:()=>{let{nodeLookup:e,transform:t,snapGrid:n,snapToGrid:r,nodeOrigin:i,domNode:a}=b.getState();return{nodeLookup:e,transform:t,snapGrid:n,snapToGrid:r,nodeOrigin:i,paneDomNode:a}},onChange:(e,t)=>{let{triggerNodeChanges:n,nodeLookup:r,parentLookup:i,nodeOrigin:a}=b.getState(),o=[],s={x:e.x,y:e.y},c=r.get(y);if(c&&c.expandParent&&c.parentId){let t=c.origin??a,n=e.width??c.measured.width??0,l=e.height??c.measured.height??0,u=tV([{id:c.id,parentId:c.parentId,rect:{width:n,height:l,...aB({x:e.x??c.position.x,y:e.y??c.position.y},{width:n,height:l},c.parentId,r,t)}}],r,i,a);o.push(...u),s.x=e.x?Math.max(t[0]*n,e.x):void 0,s.y=e.y?Math.max(t[1]*l,e.y):void 0}if(s.x!==void 0&&s.y!==void 0){let e={id:y,type:`position`,position:{...s}};o.push(e)}if(e.width!==void 0&&e.height!==void 0){let t={id:y,type:`dimensions`,resizing:!0,setAttributes:f?f===`horizontal`?`width`:`height`:!0,dimensions:{width:e.width,height:e.height}};o.push(t)}for(let e of t){let t={...e,type:`position`};o.push(t)}n(o)},onEnd:({width:e,height:t})=>{let n={id:y,type:`dimensions`,resizing:!1,dimensions:{width:e,height:t}};b.getState().triggerNodeChanges([n])}}),w.current.update({controlPosition:T,boundaries:{minWidth:s,minHeight:c,maxWidth:l,maxHeight:u},keepAspectRatio:d,resizeDirection:f,onResizeStart:h,onResize:g,onResizeEnd:_,shouldResize:m}),()=>{w.current?.destroy()}},[T,s,c,l,u,d,h,g,_,m]);let E=T.split(`-`);return(0,H.jsx)(`div`,{className:EN([`react-flow__resize-control`,`nodrag`,...E,n,r]),ref:x,style:{...i,scale:C,...o&&{[S?`backgroundColor`:`borderColor`]:o}},children:a})}(0,V.memo)(eK);var tK={Schema:`border-blue-500/30 bg-blue-500/10 text-blue-700 dark:text-blue-300`,View:`border-violet-500/30 bg-violet-500/10 text-violet-700 dark:text-violet-300`,Procedure:`border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300`,Trigger:`border-rose-500/30 bg-rose-500/10 text-rose-700 dark:text-rose-300`},nK={Schema:`!border-blue-400/70 [&.selected]:!border-blue-500 [&.selected]:!ring-2 [&.selected]:!ring-blue-500/30 [&.selected]:!shadow-[0_14px_28px_-10px_rgba(59,130,246,0.65)] dark:[&.selected]:!border-blue-300 dark:[&.selected]:!ring-blue-400/45 dark:[&.selected]:!shadow-[0_0_32px_rgba(96,165,250,0.8)]`,View:`!border-violet-400/70 [&.selected]:!border-violet-500 [&.selected]:!ring-2 [&.selected]:!ring-violet-500/30 [&.selected]:!shadow-[0_14px_28px_-10px_rgba(139,92,246,0.65)] dark:[&.selected]:!border-violet-300 dark:[&.selected]:!ring-violet-400/45 dark:[&.selected]:!shadow-[0_0_32px_rgba(167,139,250,0.8)]`,Procedure:`!border-amber-400/70 [&.selected]:!border-amber-500 [&.selected]:!ring-2 [&.selected]:!ring-amber-500/30 [&.selected]:!shadow-[0_14px_28px_-10px_rgba(245,158,11,0.65)] dark:[&.selected]:!border-amber-300 dark:[&.selected]:!ring-amber-400/45 dark:[&.selected]:!shadow-[0_0_32px_rgba(251,191,36,0.8)]`,Trigger:`!border-rose-400/70 [&.selected]:!border-rose-500 [&.selected]:!ring-2 [&.selected]:!ring-rose-500/30 [&.selected]:!shadow-[0_14px_28px_-10px_rgba(244,63,94,0.65)] dark:[&.selected]:!border-rose-300 dark:[&.selected]:!ring-rose-400/45 dark:[&.selected]:!shadow-[0_0_32px_rgba(251,113,133,0.8)]`},rK=[`public`,`members`,`staff`,`system`,`api-clients`],iK={manifest:mK},aK={audience:dK};function oK(e,t){return t===`translation-parent`?Z(e,`developer.graph.relation.translationParent`):t===`schema-reference`?Z(e,`developer.graph.relation.schemaReference`):t===`view-source`?Z(e,`developer.graph.relation.viewSource`):t===`authorization-guard`?Z(e,`developer.graph.relation.guard`):t===`procedure-schema`?Z(e,`developer.graph.relation.procedureSchema`):t===`collection-action`?Z(e,`developer.graph.relation.collectionAction`):t===`input-reference`?Z(e,`developer.graph.relation.inputReference`):t===`trigger-target`?Z(e,`developer.graph.relation.triggerTarget`):Z(e,`developer.graph.relation.lifecycleSource`)}function sK(e,t){return t===`public`?Z(e,`developer.graph.audience.public`):t===`members`?Z(e,`developer.graph.audience.members`):t===`staff`?Z(e,`developer.graph.audience.staff`):t===`system`?Z(e,`developer.graph.audience.system`):Z(e,`developer.graph.audience.apiClients`)}function cK(e,t){return t===`Schema`?Z(e,`developer.graph.kind.schema`):t===`View`?Z(e,`developer.graph.kind.view`):t===`Procedure`?Z(e,`developer.graph.kind.procedure`):Z(e,`developer.graph.kind.trigger`)}function lK(e,t){return t===`public`?Z(e,`developer.graph.audienceDescription.public`):t===`members`?Z(e,`developer.graph.audienceDescription.members`):t===`staff`?Z(e,`developer.graph.audienceDescription.staff`):t===`system`?Z(e,`developer.graph.audienceDescription.system`):Z(e,`developer.graph.audienceDescription.apiClients`)}function uK({language:e,audience:t,prominent:n=!1}){let r=sK(e,t),i=lK(e,t);return(0,H.jsxs)(`span`,{className:J(`inline-flex items-center gap-1 rounded border font-semibold uppercase tracking-wider`,n?`border-slate-300 bg-white px-2 py-1 text-[11px] text-slate-800 shadow-sm dark:border-slate-600 dark:bg-slate-800 dark:text-slate-100`:`border-border bg-muted px-1.5 py-0.5 text-[9px] text-muted-foreground`),children:[r,(0,H.jsxs)(Sv,{children:[(0,H.jsx)(Cv,{asChild:!0,children:(0,H.jsx)(`button`,{type:`button`,className:`nodrag nopan pointer-events-auto inline-flex rounded-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,"aria-label":`${r}: ${i}`,children:(0,H.jsx)(en,{className:n?`size-3.5`:`size-3`,"aria-hidden":!0})})}),(0,H.jsx)(wv,{children:i})]})]})}function dK({data:e}){return(0,H.jsx)(`section`,{className:`pointer-events-none h-full w-full overflow-hidden rounded-2xl border-2 border-blue-200 bg-blue-50 text-slate-950 shadow-sm dark:border-slate-600 dark:bg-[#111d35] dark:text-slate-50`,children:(0,H.jsxs)(`header`,{className:`flex h-12 items-center justify-between border-b border-blue-200 bg-blue-100 px-4 dark:border-slate-600 dark:bg-[#172845]`,children:[(0,H.jsx)(uK,{language:e.language,audience:e.audience,prominent:!0}),(0,H.jsx)(`span`,{className:`rounded-full border border-slate-300 bg-white px-2.5 py-1 font-mono text-[11px] font-bold text-slate-700 shadow-sm dark:border-slate-600 dark:bg-slate-800 dark:text-slate-100`,children:e.count})]})})}function fK({graph:e,selectedAtomId:t,onSelect:n,onOpen:r}){let{language:i,theme:a}=X(),o=V.useMemo(()=>pK(e,i),[e,i]),[s,c,l]=yG(o.nodes),[u,d,f]=bG(o.edges),[p,m]=V.useState(null),[h,g]=V.useState(null),[_,v]=V.useState(null),y=V.useMemo(()=>new Map(e.atoms.map(e=>[e.id,e])),[e.atoms]),b=h?y.get(h)??null:null,x=V.useMemo(()=>_?_K(e,_.nodeIds,_.startId).map(e=>y.get(e)).filter(e=>!!e):[],[y,e,_]);V.useEffect(()=>{c(o.nodes),d(o.edges),g(null),v(null)},[o,d,c]);let S=(e,t)=>{c(t=>t.map(t=>{let n=y.has(t.id)&&!e.has(t.id);return{...t,style:{...t.style,opacity:n?`var(--graph-inactive-opacity)`:1,filter:n?`var(--graph-inactive-filter)`:`none`,transition:`filter 180ms ease, opacity 180ms ease`},zIndex:y.has(t.id)?+!!e.has(t.id):-1}})),d(e=>e.map(e=>{let n=t.has(e.id);return{...e,style:{...e.style,opacity:n?1:.08,stroke:n?`var(--foreground)`:`var(--muted-foreground)`,strokeWidth:n?2.5:1.25},data:e.data?{...e.data,opacity:n?1:.08}:e.data,markerEnd:typeof e.markerEnd==`object`?{...e.markerEnd,color:n?`var(--foreground)`:`var(--muted-foreground)`}:e.markerEnd,zIndex:+!!n}}))},C=(t,n=gK(e,t))=>{g(t),v(n),c(e=>e.map(e=>({...e,selected:e.id===t}))),S(n.nodeIds,n.relationIds)};V.useEffect(()=>{if(!p||!h)return;let e=window.innerWidth<640;p.fitView({nodes:[{id:h}],padding:{top:`20%`,right:e?`60%`:`34%`,bottom:`20%`,left:e?`2%`:`8%`},minZoom:e?.78:.9,maxZoom:e?1:1.2,duration:320})},[p,h]);let w=(t,r=gK(e,t))=>{C(t,r),n(t)},T=t=>w(t,_?.nodeIds.has(t)?_:gK(e,t)),E=()=>{g(null),v(null),c(e=>e.map(e=>({...e,selected:!1,style:{...e.style,opacity:1,filter:`none`},zIndex:y.has(e.id)?0:-1}))),d(o.edges)},D=()=>{E(),n(null)};return V.useEffect(()=>{if(t&&y.has(t)){t!==h&&C(t);return}h&&E()},[y,o,t,h]),(0,H.jsxs)(gG,{className:`bg-background [--graph-inactive-filter:none] [--graph-inactive-opacity:0.16] dark:[--graph-inactive-filter:brightness(0.42)_saturate(0.2)] dark:[--graph-inactive-opacity:1]`,nodes:s,edges:u,onNodesChange:l,onEdgesChange:f,onInit:m,edgeTypes:iK,nodeTypes:aK,colorMode:a,fitView:!0,fitViewOptions:{padding:.08},minZoom:.25,maxZoom:1.8,nodesConnectable:!1,nodesDraggable:!0,onNodeClick:(e,t)=>{y.has(t.id)&&w(t.id)},onPaneClick:D,children:[(0,H.jsx)(FG,{className:`overflow-hidden rounded-lg border bg-background/95 shadow-md`,showInteractive:!1,fitViewOptions:{padding:.08,duration:240},children:(0,H.jsx)(MG,{onClick:()=>{c(o.nodes),d(o.edges),g(null),v(null),n(null),window.requestAnimationFrame(()=>void p?.fitView({padding:.08,duration:240}))},title:Z(i,`developer.graph.relayout`),"aria-label":Z(i,`developer.graph.relayout`),children:(0,H.jsx)(on,{"aria-hidden":!0})})}),b?(0,H.jsx)(SH,{position:`top-right`,className:`!m-3 w-[20rem] max-w-[calc(100%-1.5rem)] sm:w-[22rem]`,children:(0,H.jsx)(yK,{atom:b,graph:e,atomsById:y,traceAtoms:x,onClose:D,onSelect:T,onOpen:r})}):null]})}function pK(e,t){let{positions:n,groups:r}=hK(e);return{nodes:[...r.map(e=>({id:`Audience:${e.audience}`,type:`audience`,position:{x:e.x,y:e.y},data:{audience:e.audience,count:e.count,language:t},className:`pointer-events-none !border-0 !bg-transparent !p-0 !shadow-none`,style:{width:e.width,height:e.height},selectable:!1,draggable:!1,connectable:!1,focusable:!1,zIndex:-1})),...e.atoms.map(e=>{let r=n.get(e.id)??{x:0,y:0},i=ny(e.title,t);return{id:e.id,position:r,sourcePosition:$.Bottom,targetPosition:$.Top,data:{label:(0,H.jsxs)(`div`,{className:`min-w-0 space-y-1.5 text-start`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,H.jsx)(`span`,{className:J(`inline-flex rounded border px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wider`,tK[e.kind]),children:cK(t,e.kind)}),e.transport?(0,H.jsx)(`span`,{className:`inline-flex rounded border bg-muted px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wider text-muted-foreground`,children:e.transport}):null]}),(0,H.jsx)(`div`,{className:`truncate font-mono text-xs font-semibold`,children:e.name}),i&&i!==e.name?(0,H.jsx)(`div`,{className:`truncate text-[10px] text-muted-foreground`,children:i}):null]})},ariaLabel:`${cK(t,e.kind)} ${e.name}`,className:J(`!h-[76px] !w-[220px] !cursor-grab !rounded-xl !border-2 !bg-white !px-3 !py-2 !text-card-foreground !shadow-lg transition-[border-color,box-shadow,filter] hover:brightness-110 active:!cursor-grabbing dark:!bg-[#0a1124]`,nK[e.kind])}})],edges:e.relations.map(e=>({id:e.id,source:e.sourceId,target:e.targetId,type:`manifest`,data:{kind:e.kind,label:oK(t,e.kind),opacity:0},ariaLabel:`${oK(t,e.kind)}: ${e.sourceId} to ${e.targetId}`,markerEnd:{type:vz.ArrowClosed,width:16,height:16,color:`var(--muted-foreground)`},style:{opacity:vK(e.kind),stroke:`var(--muted-foreground)`,strokeWidth:vK(e.kind)>.2?1.5:1}}))}}function mK({id:e,data:t,sourceX:n,sourceY:r,sourcePosition:i,targetX:a,targetY:o,targetPosition:s,markerEnd:c,style:l}){let[u,d,f]=PB({sourceX:n,sourceY:r,sourcePosition:i,targetX:a,targetY:o,targetPosition:s});return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(_W,{id:e,path:u,markerEnd:c,style:l}),(0,H.jsx)(vG,{children:(0,H.jsx)(`div`,{className:`nodrag nopan pointer-events-none absolute z-20 whitespace-nowrap rounded-md border bg-popover px-1.5 py-0.5 text-[10px] font-semibold text-popover-foreground shadow-sm`,style:{transform:`translate(-50%, -50%) translate(${d}px, ${f}px)`,opacity:t?.opacity??1,boxShadow:`0 0 0 3px var(--background)`,transition:`opacity 180ms ease`},children:t?.label})})]})}function hK(e){let t=new TN.graphlib.Graph({multigraph:!0}).setDefaultEdgeLabel(()=>({}));t.setGraph({rankdir:`TB`,nodesep:32,ranksep:160,edgesep:20}),e.atoms.forEach(({id:e})=>t.setNode(e,{width:220,height:76})),e.relations.filter(({kind:e})=>[`trigger-target`,`procedure-schema`,`collection-action`,`view-source`].includes(e)).forEach(({id:e,sourceId:n,targetId:r})=>t.setEdge(n,r,{},e)),TN.layout(t);let n=new Map,r=[],i=new Map(e.relations.filter(({kind:e})=>e===`trigger-target`||e===`view-source`).map(({sourceId:e,targetId:t})=>[e,t])),a=72;rK.forEach(t=>{let o=e.atoms.filter(e=>(e.kind===`Trigger`||e.kind===`View`)&&(e.audience??`public`)===t).sort((e,t)=>`${i.get(e.id)??``}:${e.id}`.localeCompare(`${i.get(t.id)??``}:${t.id}`));if(!o.length)return;let s=Math.min(4,o.length),c=Math.ceil(o.length/4),l=48+s*220+(s-1)*32,u=72+c*76+(c-1)*32+24;r.push({audience:t,x:a,y:48,width:l,height:u,count:o.length}),o.forEach((e,t)=>n.set(e.id,{x:a+24+t%4*252,y:120+Math.floor(t/4)*108})),a+=l+56});let o=Math.max(...r.map(({y:e,height:t})=>e+t),200),s=(r,i)=>{let a=e.relations.filter(({targetId:e,kind:t})=>e===r.id&&i.includes(t)).map(({sourceId:e})=>n.get(e)).filter(e=>!!e).map(({x:e})=>e+110).sort((e,t)=>e-t);if(!a.length)return t.node(r.id).x;let o=Math.floor(a.length/2);return a.length%2?a[o]:(a[o-1]+a[o])/2},c=(e,t,r)=>{let i=e.map(e=>({atom:e,preferred:s(e,r)})).sort((e,t)=>e.preferred-t.preferred),a=Math.ceil(i.length/7);for(let e=0;e<a;e+=1){let r=i.slice(e*7,(e+1)*7),a=r.map(({preferred:e})=>e-110),o=[];a.forEach((e,t)=>o.push(t===0?e:Math.max(e,o[t-1]+220+32)));let s=e=>e.reduce((e,t)=>e+t,0)/e.length,c=s(a)-s(o);o[0]+c<72&&(c+=72-(o[0]+c)),r.forEach(({atom:r},i)=>n.set(r.id,{x:o[i]+c,y:t+e*108}))}return a*108},l=o+180,u=c(e.atoms.filter(({kind:e})=>e===`Procedure`),l,[`trigger-target`]);return c(e.atoms.filter(({kind:e})=>e===`Schema`),l+u+140,[`procedure-schema`,`collection-action`,`view-source`]),{positions:n,groups:r}}function gK(e,t){let n=new Set([t]),r=new Set,i=e.atoms.find(({id:e})=>e===t)?.kind,a=e=>{r.add(e.id),n.add(e.sourceId),n.add(e.targetId)},o=e.relations.filter(({sourceId:e,targetId:n})=>e===t||n===t);if(i===`Trigger`){let n=e.relations.filter(({sourceId:e,kind:n})=>e===t&&n===`trigger-target`);n.forEach(e=>a(e));let r=new Set(n.map(({targetId:e})=>e));e.relations.filter(({sourceId:e,kind:t})=>r.has(e)&&[`procedure-schema`,`collection-action`].includes(t)).forEach(e=>a(e))}else if(i===`Procedure`)o.filter(({kind:e})=>[`trigger-target`,`procedure-schema`,`collection-action`].includes(e)).forEach(e=>a(e));else if(i===`View`)o.filter(({kind:e})=>e===`view-source`).forEach(e=>a(e));else if(i===`Schema`){o.filter(({sourceId:e,kind:n})=>e===t&&[`schema-reference`,`translation-parent`].includes(n)).forEach(e=>a(e));let n=o.filter(({targetId:e,kind:n})=>e===t&&[`procedure-schema`,`collection-action`,`input-reference`,`lifecycle-source`].includes(n));n.forEach(e=>a(e));let r=new Set(n.filter(({sourceId:e})=>e.startsWith(`Procedure:`)).map(({sourceId:e})=>e));e.relations.filter(({targetId:e,kind:t})=>r.has(e)&&t===`trigger-target`).forEach(e=>a(e))}return{startId:t,nodeIds:n,relationIds:r}}function _K(e,t,n){let r={Trigger:0,View:0,Procedure:1,Schema:2};return e.atoms.filter(({id:e})=>t.has(e)).sort((e,t)=>r[e.kind]-r[t.kind]||Number(t.id===n)-Number(e.id===n)||e.name.localeCompare(t.name)).map(({id:e})=>e)}function vK(e){return[`schema-reference`,`translation-parent`,`input-reference`,`authorization-guard`].includes(e)?.12:.58}function yK({atom:e,graph:t,atomsById:n,traceAtoms:r,onClose:i,onSelect:a,onOpen:o}){let{language:s}=X(),c=ny(e.title,s),l=ny(e.description??null,s),u=t.relations.filter(({sourceId:t})=>t===e.id),d=t.relations.filter(({targetId:t})=>t===e.id),f=e.kind===`Schema`||e.kind===`View`,p=f?Bt:Xn,m=Z(s,f?`developer.graph.openModel`:`developer.graph.openLogic`),h=Math.max(0,r.findIndex(({id:t})=>t===e.id)),g=r[h-1],_=r[h+1],v=xK(s,e);return(0,H.jsxs)(`aside`,{className:`max-h-[calc(100vh-7rem)] overflow-y-auto rounded-xl border bg-white text-popover-foreground shadow-2xl dark:bg-[#090f20]`,"aria-label":Z(s,`developer.graph.details`),children:[(0,H.jsxs)(`header`,{className:`sticky top-0 z-10 border-b bg-white p-4 dark:bg-[#090f20]`,children:[(0,H.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,H.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5`,children:[(0,H.jsx)(`span`,{className:J(`inline-flex rounded border px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wider`,tK[e.kind]),children:cK(s,e.kind)}),e.transport?(0,H.jsx)(`span`,{className:`inline-flex rounded border bg-muted px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wider text-muted-foreground`,children:e.transport}):null,e.audience?(0,H.jsx)(uK,{language:s,audience:e.audience}):null]}),(0,H.jsx)(`h2`,{className:`mt-2 truncate text-sm font-semibold`,children:c||e.name}),c&&c!==e.name?(0,H.jsx)(`p`,{className:`mt-1 truncate font-mono text-[11px] text-muted-foreground`,children:e.name}):null]}),(0,H.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[(0,H.jsxs)(Sv,{children:[(0,H.jsx)(Cv,{asChild:!0,children:(0,H.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon-sm`,onClick:()=>o(e),"aria-label":m,children:(0,H.jsx)(p,{"aria-hidden":!0})})}),(0,H.jsx)(wv,{children:m})]}),(0,H.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon-sm`,onClick:i,"aria-label":Z(s,`common.close`),children:(0,H.jsx)(Qn,{"aria-hidden":!0})})]})]}),(0,H.jsxs)(`div`,{className:`mt-3 flex items-center gap-2 border-t pt-3`,children:[(0,H.jsx)(Y,{type:`button`,variant:`outline`,size:`icon-sm`,disabled:!g,onClick:()=>g&&a(g.id),"aria-label":Z(s,`developer.graph.previous`),children:(0,H.jsx)(Nt,{"aria-hidden":!0})}),(0,H.jsx)(`span`,{className:`min-w-0 flex-1 text-center text-[11px] font-medium text-muted-foreground`,children:Z(s,`developer.graph.step`,{current:String(h+1),total:String(r.length)})}),(0,H.jsx)(Y,{type:`button`,variant:`outline`,size:`icon-sm`,disabled:!_,onClick:()=>_&&a(_.id),"aria-label":Z(s,`developer.graph.next`),children:(0,H.jsx)(At,{"aria-hidden":!0})})]})]}),(0,H.jsxs)(`div`,{className:`space-y-5 p-4`,children:[(0,H.jsx)(`p`,{className:`text-sm leading-6 text-popover-foreground`,children:l||bK(s,e,u,d,n)}),v.length?(0,H.jsx)(`dl`,{className:`grid grid-cols-2 gap-x-4 gap-y-3 rounded-lg border bg-muted/35 p-3`,children:v.map(({label:e,value:t})=>(0,H.jsxs)(`div`,{className:`min-w-0`,children:[(0,H.jsx)(`dt`,{className:`text-[10px] font-semibold uppercase tracking-wider text-muted-foreground`,children:e}),(0,H.jsx)(`dd`,{className:`mt-1 break-words font-mono text-xs font-semibold`,children:t})]},e))}):null,d.length?(0,H.jsx)(SK,{title:Z(s,`developer.graph.comesFrom`),relations:d,outgoing:!1,atomsById:n,onSelect:a}):null,u.length?(0,H.jsx)(SK,{title:Z(s,`developer.graph.continuesTo`),relations:u,outgoing:!0,atomsById:n,onSelect:a}):null,!u.length&&!d.length?(0,H.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Z(s,`model.noRelations`)}):null]})]})}function bK(e,t,n,r,i){let a=n[0]?i.get(n[0].targetId)?.name:null;return t.kind===`Trigger`?Z(e,`developer.graph.summary.trigger`,{audience:sK(e,t.audience??`public`),transport:t.transport?.toUpperCase()??`manifest`,target:a??`—`}):t.kind===`Procedure`&&t.handler?.kind===`builtin`?Z(e,`developer.graph.summary.builtin`,{op:t.handler.op,schema:t.handler.schema}):t.kind===`Procedure`&&t.handler?.kind===`ref`?Z(e,`developer.graph.summary.ref`,{ref:t.handler.ref}):t.kind===`View`?Z(e,`developer.graph.summary.view`,{audience:sK(e,t.audience??`public`),target:a??`—`}):Z(e,`developer.graph.summary.schema`,{incoming:String(r.length),outgoing:String(n.length)})}function xK(e,t){let n=[];return t.transport&&n.push({label:Z(e,`developer.graph.fact.transport`),value:t.transport.toUpperCase()}),t.handler?.kind===`ref`&&n.push({label:Z(e,`developer.graph.fact.handler`),value:t.handler.ref}),t.handler?.kind===`builtin`&&(n.push({label:Z(e,`developer.graph.fact.handler`),value:Z(e,`developer.graph.builtin`)}),n.push({label:Z(e,`developer.graph.fact.operation`),value:t.handler.op}),n.push({label:Z(e,`developer.graph.fact.schema`),value:t.handler.schema}),t.handler.match?.length&&n.push({label:Z(e,`developer.graph.fact.match`),value:t.handler.match.join(` + `)})),n}function SK({title:e,relations:t,outgoing:n,atomsById:r,onSelect:i}){let{language:a}=X(),o=n?ht:bt;return(0,H.jsxs)(`section`,{children:[(0,H.jsx)(`h3`,{className:`mb-2 text-[10px] font-semibold uppercase tracking-wider text-muted-foreground`,children:e}),(0,H.jsx)(`div`,{className:`space-y-2`,children:t.map(e=>{let t=r.get(n?e.targetId:e.sourceId);return t?(0,H.jsxs)(`div`,{className:`rounded-lg border bg-white p-3 text-card-foreground dark:bg-[#0a1124]`,children:[(0,H.jsxs)(`button`,{type:`button`,className:`flex w-full min-w-0 items-center gap-2 text-start hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,onClick:()=>i(t.id),children:[(0,H.jsx)(o,{className:`size-3.5 shrink-0 text-muted-foreground`,"aria-hidden":!0}),(0,H.jsx)(`span`,{className:`text-xs font-medium`,children:oK(a,e.kind)}),(0,H.jsx)(`span`,{className:`ms-auto min-w-0 truncate font-mono text-xs font-semibold`,children:t.name})]}),(0,H.jsxs)(`details`,{className:`mt-2 border-t pt-2`,children:[(0,H.jsx)(`summary`,{className:`cursor-pointer text-[10px] font-medium text-muted-foreground`,children:Z(a,`developer.graph.manifestSource`)}),(0,H.jsxs)(`code`,{className:`mt-2 block break-all rounded bg-muted p-2 text-[10px] text-muted-foreground`,children:[e.sourceId.replace(`:`,`/`),e.pointer,` = `,JSON.stringify(e.value)]})]})]},e.id):null})})]})}function CK(e,t,n={}){let r=new URLSearchParams;t&&r.set(`selected`,t);for(let[e,t]of Object.entries(n))t&&r.set(e,t);return`${e}${r.size?`?${r}`:``}`}function wK(e,t={}){return CK(e.startsWith(`Schema:`)||e.startsWith(`View:`)?`/admin/dev/model`:`/admin/dev/logic`,e,t)}function TK({selectedId:e,graph:t,onNavigate:n}){let{language:r}=X(),{navigate:i}=hy(),a=new Map(t.atoms.map(e=>[e.id,e])),o=t.relations.filter(({sourceId:t})=>t===e),s=t.relations.filter(({targetId:t})=>t===e),c=o.length+s.length;return(0,H.jsxs)(`aside`,{className:`flex min-h-0 flex-col`,"aria-label":Z(r,`model.relationships`),children:[(0,H.jsxs)(`div`,{className:`flex h-14 shrink-0 items-center gap-2 border-b px-4`,children:[(0,H.jsx)(`h2`,{className:`text-sm font-medium`,children:Z(r,`model.relationships`)}),(0,H.jsx)(`span`,{className:`font-mono text-xs text-muted-foreground`,children:c})]}),(0,H.jsxs)(`div`,{className:`min-h-0 flex-1 space-y-5 overflow-y-auto p-4`,children:[s.length?(0,H.jsx)(EK,{title:Z(r,`developer.graph.comesFrom`),relations:s,outgoing:!1,atoms:a,onSelect:e=>{i(wK(e)),n?.()},onOpenManifest:(e,t)=>{i(wK(e,{tab:`manifest`,pointer:t})),n?.()}}):null,o.length?(0,H.jsx)(EK,{title:Z(r,`developer.graph.continuesTo`),relations:o,outgoing:!0,atoms:a,onSelect:e=>{i(wK(e)),n?.()},onOpenManifest:(e,t)=>{i(wK(e,{tab:`manifest`,pointer:t})),n?.()}}):null,c?null:(0,H.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Z(r,`model.noRelations`)})]})]})}function EK({title:e,relations:t,outgoing:n,atoms:r,onSelect:i,onOpenManifest:a}){return(0,H.jsxs)(`section`,{children:[(0,H.jsx)(`h3`,{className:`mb-2 text-xs font-medium uppercase tracking-wider text-muted-foreground`,children:e}),(0,H.jsx)(`div`,{className:`space-y-2`,children:t.map(e=>{let t=r.get(n?e.targetId:e.sourceId);return t?(0,H.jsx)(DK,{relation:e,atom:t,outgoing:n,onSelect:i,onOpenManifest:a},e.id):null})})]})}function DK({relation:e,atom:t,outgoing:n,onSelect:r,onOpenManifest:i}){let{language:a}=X(),o=ny(t.title,a);return(0,H.jsxs)(`div`,{className:`rounded-lg border bg-card p-3`,children:[(0,H.jsxs)(`button`,{type:`button`,onClick:()=>r(t.id),className:`flex w-full min-w-0 items-center gap-2 text-start hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:[(0,H.jsx)(n?ht:bt,{className:`size-3.5 shrink-0 text-muted-foreground`,"aria-hidden":!0}),(0,H.jsx)(`span`,{className:J(`inline-flex rounded border px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wider`,tK[t.kind]),children:cK(a,t.kind)}),(0,H.jsx)(`span`,{className:`min-w-0 truncate font-mono text-xs font-semibold`,children:t.name})]}),o&&o!==t.name?(0,H.jsx)(`div`,{className:`mt-1 truncate ps-5 text-xs text-muted-foreground`,children:o}):null,(0,H.jsx)(`div`,{className:`mt-2 text-xs font-medium`,children:oK(a,e.kind)}),(0,H.jsxs)(`button`,{type:`button`,onClick:()=>i(e.sourceId,e.pointer),className:`mt-2 block w-full rounded-md bg-muted/50 p-2 text-start hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,"aria-label":Z(a,`model.openDeclaration`),children:[(0,H.jsx)(`code`,{className:`block truncate text-[10px] text-muted-foreground`,children:e.sourceId.replace(`:`,`/`)}),(0,H.jsxs)(`code`,{className:`mt-0.5 block break-all text-[10px]`,children:[e.pointer,` = `,JSON.stringify(e.value)]})]})]})}function OK({label:e,sidebarLabel:t,sidebar:n,selectedId:r,graph:i,children:a}){let{language:o}=X(),[s,c]=V.useState(!1),l=i.relations.filter(({sourceId:e,targetId:t})=>e===r||t===r).length;return(0,H.jsx)(`section`,{className:`@container/explorer h-full min-h-0`,"aria-label":e,children:(0,H.jsxs)(`div`,{className:`grid h-full min-h-0 grid-cols-1 @min-[42rem]/explorer:grid-cols-[15rem_minmax(0,1fr)]`,children:[(0,H.jsx)(`div`,{className:`hidden min-h-0 @min-[42rem]/explorer:block`,children:n}),(0,H.jsxs)(`div`,{className:`grid min-h-0 grid-cols-1 @min-[64rem]/explorer:grid-cols-[minmax(28rem,1fr)_24rem]`,children:[(0,H.jsxs)(`div`,{className:`relative min-h-0 min-w-0`,children:[(0,H.jsxs)(`div`,{className:`absolute end-4 top-2.5 z-20 flex items-center gap-1`,children:[(0,H.jsxs)(fv,{children:[(0,H.jsxs)(Sv,{children:[(0,H.jsx)(Cv,{asChild:!0,children:(0,H.jsx)(pv,{asChild:!0,children:(0,H.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon-sm`,className:`@min-[42rem]/explorer:hidden`,"aria-label":t,children:(0,H.jsx)(fn,{"aria-hidden":!0})})})}),(0,H.jsx)(wv,{children:t})]}),(0,H.jsxs)(gv,{side:`left`,closeLabel:Z(o,`common.close`),className:`w-[19rem] gap-0 bg-sidebar p-0 sm:max-w-[19rem]`,children:[(0,H.jsxs)(_v,{className:`sr-only`,children:[(0,H.jsx)(vv,{children:t}),(0,H.jsx)(yv,{children:t})]}),n]})]},`objects:${r}`),(0,H.jsxs)(fv,{open:s,onOpenChange:c,children:[(0,H.jsxs)(Sv,{children:[(0,H.jsx)(Cv,{asChild:!0,children:(0,H.jsx)(pv,{asChild:!0,children:(0,H.jsxs)(Y,{type:`button`,variant:`ghost`,size:`sm`,className:`@min-[64rem]/explorer:hidden`,"aria-label":`${Z(o,`model.relationships`)} ${l}`,children:[(0,H.jsx)(Cn,{"aria-hidden":!0}),(0,H.jsx)(`span`,{className:`font-mono text-xs`,children:l})]})})}),(0,H.jsx)(wv,{children:Z(o,`model.relationships`)})]}),(0,H.jsxs)(gv,{side:`right`,closeLabel:Z(o,`common.close`),className:`w-full gap-0 p-0 sm:max-w-[26rem]`,children:[(0,H.jsxs)(_v,{className:`sr-only`,children:[(0,H.jsx)(vv,{children:Z(o,`model.relationships`)}),(0,H.jsx)(yv,{children:Z(o,`model.relationships`)})]}),(0,H.jsx)(TK,{selectedId:r,graph:i,onNavigate:()=>c(!1)})]})]}),(0,H.jsxs)(Sv,{children:[(0,H.jsx)(Cv,{asChild:!0,children:(0,H.jsx)(Y,{asChild:!0,variant:`ghost`,size:`icon-sm`,children:(0,H.jsx)(`a`,{href:CK(`/admin/dev`,r),"aria-label":Z(o,`model.openGraph`),children:(0,H.jsx)(Et,{"aria-hidden":!0})})})}),(0,H.jsx)(wv,{children:Z(o,`model.openGraph`)})]})]}),(0,H.jsx)(`main`,{className:`h-full min-w-0 overflow-y-auto @min-[64rem]/explorer:border-e`,children:a})]}),(0,H.jsx)(`div`,{className:`hidden min-h-0 @min-[64rem]/explorer:block`,children:(0,H.jsx)(TK,{selectedId:r,graph:i})})]})]})})}function kK(e){let t=[],n=(e,r=``,i=`/spec/schema`)=>{let a=new Set(e.required??[]);for(let[o,s]of Object.entries(e.properties??{})){let e=r?`${r}.${o}`:o,c=`${i}/properties/${jK(o)}`;t.push({path:e,pointer:c,type:MK(s),required:a.has(o),constraints:NK(s),reference:typeof s[`x-mantle-ref`]==`string`?s[`x-mantle-ref`]:null}),s.properties&&n(s,e,c),s.items?.properties&&n(s.items,`${e}[]`,`${c}/items`)}};return n(e),t}function AK(e,t,n){let r=`Schema:${t.name}`;return[...e.reference?[{kind:`reference`,target:e.reference,sourceId:r,pointer:`${e.pointer}/x-mantle-ref`}]:[],...t.translates?.on===e.path?[{kind:`translation`,target:`${t.translates.parent}.${e.path}`,direction:`outgoing`,sourceId:r,pointer:`/spec/translates`}]:[],...n.flatMap(n=>n.translates?.parent===t.name&&n.translates.on===e.path?[{kind:`translation`,target:`${n.name}.${e.path}`,direction:`incoming`,sourceId:`Schema:${n.name}`,pointer:`/spec/translates`}]:[]),...t.uniqueIndexes.flatMap((t,n)=>t.includes(e.path)?[{kind:`unique`,index:n,fields:t,sourceId:r,pointer:`/spec/uniqueIndexes/${n}`}]:[]),...t.indexes.flatMap((t,n)=>t.includes(e.path)?[{kind:`index`,index:n,fields:t,sourceId:r,pointer:`/spec/indexes/${n}`}]:[])]}function jK(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function MK(e){return Array.isArray(e.type)?e.type.join(` | `):e.type?e.type:e.properties?`object`:e.items?`array`:`—`}function NK(e){let t=[];e.enum&&t.push(`enum: ${e.enum.map(PK).join(` | `)}`),e.format&&t.push(`format: ${e.format}`),e.pattern&&t.push(`pattern: ${e.pattern}`);for(let n of[`minimum`,`maximum`,`minLength`,`maxLength`,`minItems`,`maxItems`])e[n]!==void 0&&t.push(`${n}: ${e[n]}`);e.default!==void 0&&t.push(`default: ${PK(e.default)}`),e.readOnly&&t.push(`readOnly`),e.nullable&&t.push(`nullable`),e.additionalProperties===!1&&t.push(`closed object`);for(let n of[`x-mantle-bind`,`x-mcp-hint`])e[n]&&t.push(`${n}: ${e[n]}`);return t}function PK(e){return typeof e==`string`?e:JSON.stringify(e)??String(e)}function FK(){let{language:e}=X(),t=gy(),{navigate:n}=hy(),[r,i]=V.useState(``),a=it(oy()),o=a.data?[...a.data.dataModel.schemas.map(e=>({kind:`Schema`,id:`Schema:${e.name}`,model:e})),...a.data.dataModel.views.map(e=>({kind:`View`,id:`View:${e.name}`,model:e}))]:[],s=new URLSearchParams(t.search),c=s.get(`selected`),l=o.find(e=>e.id===c)??o[0]??null,u=s.get(`tab`),d=u===`raw`||u===`manifest`?u:`definition`,f=d===`manifest`?s.get(`pointer`):null,p=r.trim().toLowerCase(),m=p?o.filter(t=>`${t.kind} ${t.model.name} ${ny(t.model.title,e)??``}`.toLowerCase().includes(p)):o,h=e=>n(CK(`/admin/dev/model`,e)),g=(e,t)=>{n(CK(`/admin/dev/model`,e,{tab:`manifest`,pointer:t}))},_=e=>{(e===`definition`||e===`raw`||e===`manifest`)&&n(CK(`/admin/dev/model`,l.id,e===`definition`?void 0:{tab:e}))};return a.isError?(0,H.jsx)(`div`,{className:`p-6`,children:(0,H.jsx)(jb,{error:a.error})}):a.isLoading?(0,H.jsx)(bv,{className:`h-full w-full rounded-none`}):!a.data||!l?(0,H.jsx)(H.Fragment,{}):(0,H.jsx)(OK,{label:Z(e,`model.title`),sidebarLabel:Z(e,`model.objects`),sidebar:(0,H.jsx)(IK,{items:m,selectedId:l.id,search:r,onSearch:i,onSelect:h}),selectedId:l.id,graph:a.data.graph,children:l.kind===`Schema`?(0,H.jsx)(zK,{model:l.model,schemas:a.data.dataModel.schemas,tab:d,manifestFocus:f,onTabChange:_,onOpenManifest:g}):(0,H.jsx)(HK,{model:l.model,tab:d,manifestFocus:f,onTabChange:_})})}function IK({items:e,selectedId:t,search:n,onSearch:r,onSelect:i}){let{language:a}=X();return(0,H.jsxs)(`aside`,{className:`flex h-full min-h-0 flex-col border-e bg-sidebar text-sidebar-foreground`,"aria-label":Z(a,`model.objects`),children:[(0,H.jsx)(zv,{className:`border-b border-sidebar-border`,children:(0,H.jsxs)(`label`,{className:`relative`,children:[(0,H.jsx)(An,{className:`pointer-events-none absolute start-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground`,"aria-hidden":!0}),(0,H.jsx)(`span`,{className:`sr-only`,children:Z(a,`model.search`)}),(0,H.jsx)(Rv,{value:n,onChange:e=>r(e.currentTarget.value),placeholder:Z(a,`model.search`),className:`ps-8`})]})}),(0,H.jsxs)(Vv,{className:`gap-0 p-2`,children:[(0,H.jsx)(LK,{title:Z(a,`model.schemas`),icon:Bt,items:e.filter(e=>e.kind===`Schema`),selectedId:t,onSelect:i}),(0,H.jsx)(LK,{title:Z(a,`model.views`),icon:Gt,items:e.filter(e=>e.kind===`View`),selectedId:t,onSelect:i})]})]})}function LK({title:e,icon:t,items:n,selectedId:r,onSelect:i}){return(0,H.jsxs)(Fy,{defaultOpen:!0,className:`group/model mb-1`,children:[(0,H.jsxs)(Iy,{className:`flex h-8 w-full items-center gap-2 rounded-md px-2 text-sm font-medium hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring`,children:[(0,H.jsx)(t,{className:`size-4`,"aria-hidden":!0}),(0,H.jsx)(`span`,{className:`flex-1 text-start`,children:e}),(0,H.jsx)(`span`,{className:`font-mono text-[10px] text-sidebar-foreground/60`,children:n.length}),(0,H.jsx)(Mt,{className:`size-4 transition-transform group-data-[state=open]/model:rotate-90`,"aria-hidden":!0})]}),(0,H.jsx)(Ly,{className:`ms-4 border-s border-sidebar-border ps-2`,children:n.map(e=>(0,H.jsx)(`button`,{type:`button`,onClick:()=>i(e.id),"aria-pressed":e.id===r,className:J(`mt-1 block h-8 w-full truncate rounded-md px-2 text-start font-mono text-xs hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring`,e.id===r&&`bg-sidebar-accent font-medium text-sidebar-accent-foreground`),children:e.model.name},e.id))})]})}function RK({name:e,title:t}){return(0,H.jsxs)(`div`,{className:`flex min-h-14 items-center gap-3 border-b px-5 py-3 pe-32`,children:[(0,H.jsx)(`h1`,{className:`min-w-0 font-mono text-sm font-semibold`,children:e}),t&&t!==e?(0,H.jsx)(`span`,{className:`truncate text-sm text-muted-foreground`,children:t}):null]})}function zK({model:e,schemas:t,tab:n,manifestFocus:r,onTabChange:i,onOpenManifest:a}){let{language:o}=X(),s=kK(e.schema);return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(RK,{name:e.name,title:ny(e.title,o)}),(0,H.jsxs)(WK,{definitionLabel:Z(o,`model.fields`),rawLabel:Z(o,`model.rawSchema`),rawValue:e.schema,manifestValue:e.manifest,tab:n,manifestFocus:r,onTabChange:i,children:[(0,H.jsxs)(vx,{children:[(0,H.jsx)(yx,{children:(0,H.jsxs)(xx,{children:[(0,H.jsx)(Sx,{className:`ps-5`,children:Z(o,`model.path`)}),(0,H.jsx)(Sx,{children:Z(o,`model.type`)}),(0,H.jsx)(Sx,{children:Z(o,`model.required`)}),(0,H.jsx)(Sx,{children:Z(o,`model.constraints`)})]})}),(0,H.jsx)(bx,{children:s.map(n=>(0,H.jsxs)(xx,{children:[(0,H.jsx)(Cx,{className:`ps-5`,children:(0,H.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,H.jsx)(`span`,{className:`font-mono text-xs`,children:n.path}),(0,H.jsx)(BK,{markers:AK(n,e,t),onOpenManifest:a})]})}),(0,H.jsx)(Cx,{children:(0,H.jsx)(ox,{variant:`secondary`,className:`font-mono text-[10px]`,children:n.type})}),(0,H.jsx)(Cx,{children:n.required?Z(o,`common.yes`):`—`}),(0,H.jsx)(Cx,{className:`max-w-md whitespace-normal text-xs text-muted-foreground`,children:n.constraints.length?n.constraints.join(` · `):`—`})]},n.path))})]}),s.length?null:(0,H.jsx)(`p`,{className:`p-5 text-sm text-muted-foreground`,children:Z(o,`model.noFields`)})]})]})}function BK({markers:e,onOpenManifest:t}){let{language:n}=X();return(0,H.jsx)(`span`,{className:`inline-flex items-center gap-1`,children:e.map(e=>{let r=VK(n,e),i=r.icon;return(0,H.jsxs)(Sv,{children:[(0,H.jsx)(Cv,{asChild:!0,children:(0,H.jsxs)(`button`,{type:`button`,className:J(`inline-flex h-5 items-center gap-1 rounded border px-1 font-mono text-[9px] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,r.tone),"aria-label":r.label,onClick:()=>t(e.sourceId,e.pointer),children:[(0,H.jsx)(i,{className:`size-3`,"aria-hidden":!0}),r.short?(0,H.jsx)(`span`,{children:r.short}):null]})}),(0,H.jsx)(wv,{children:r.label})]},`${e.kind}:${e.sourceId}:${e.pointer}`)})})}function VK(e,t){return t.kind===`reference`?{icon:sn,label:Z(e,`model.marker.reference`,{target:t.target}),short:null,tone:`border-violet-500/30 bg-violet-500/10 text-violet-700 dark:text-violet-300`}:t.kind===`translation`?{icon:rn,label:Z(e,t.direction===`outgoing`?`model.marker.translationParent`:`model.marker.translationChild`,{target:t.target}),short:null,tone:`border-blue-500/30 bg-blue-500/10 text-blue-700 dark:text-blue-300`}:t.kind===`unique`?{icon:nn,label:Z(e,`model.marker.unique`,{index:String(t.index+1),fields:t.fields.join(` + `)}),short:`UQ${t.index+1}`,tone:`border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300`}:{icon:fn,label:Z(e,`model.marker.index`,{index:String(t.index+1),fields:t.fields.join(` + `)}),short:`IDX${t.index+1}`,tone:`border-border bg-muted/60 text-muted-foreground`}}function HK({model:e,tab:t,manifestFocus:n,onTabChange:r}){let{language:i}=X(),a=e.query;return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(RK,{name:e.name,title:ny(e.title,i)}),(0,H.jsx)(WK,{definitionLabel:Z(i,`model.queryKind`),rawLabel:Z(i,`model.rawQuery`),rawValue:a,manifestValue:e.manifest,tab:t,manifestFocus:n,onTabChange:r,children:(0,H.jsxs)(`div`,{className:`space-y-5 p-5`,children:[(0,H.jsx)(UK,{entries:a.kind===`declarative`?[[Z(i,`model.queryKind`),a.kind],[Z(i,`model.source`),a.from],[Z(i,`model.fields`),a.fields?.join(`, `)??Z(i,`model.allFields`)],[Z(i,`model.order`),a.orderBy.length?a.orderBy.map(({field:e,direction:t})=>`${e} ${t}`).join(`, `):`—`],[Z(i,`model.limit`),a.limit?.toString()??`—`]]:[[Z(i,`model.queryKind`),a.kind],[Z(i,`model.dialect`),a.dialect],[Z(i,`model.limit`),a.limit?.toString()??`—`]]}),a.kind===`native`?(0,H.jsx)(JK,{value:a.statement}):null,a.kind===`declarative`&&a.filter?(0,H.jsx)(qK,{label:Z(i,`model.filter`),value:a.filter}):null,a.params?(0,H.jsx)(qK,{label:Z(i,`model.params`),value:a.params}):null]})})]})}function UK({entries:e}){return(0,H.jsx)(`dl`,{className:`grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-2 text-xs`,children:e.map(([e,t])=>(0,H.jsxs)(V.Fragment,{children:[(0,H.jsx)(`dt`,{className:`text-muted-foreground`,children:e}),(0,H.jsx)(`dd`,{className:`break-words font-mono text-foreground`,children:t})]},e))})}function WK({definitionLabel:e,rawLabel:t,rawValue:n,manifestValue:r,tab:i,manifestFocus:a,onTabChange:o,children:s}){let{language:c}=X();return(0,H.jsxs)(Ik,{value:i,onValueChange:o,className:`gap-0`,children:[(0,H.jsxs)(Rk,{variant:`line`,className:`h-10 w-full justify-start rounded-none border-b px-5`,children:[(0,H.jsx)(zk,{value:`definition`,className:`flex-none px-3`,children:e}),(0,H.jsx)(zk,{value:`raw`,className:`flex-none px-3`,children:t}),(0,H.jsx)(zk,{value:`manifest`,className:`flex-none px-3`,children:Z(c,`model.manifest`)})]}),(0,H.jsx)(Bk,{value:`definition`,children:s}),(0,H.jsx)(Bk,{value:`raw`,children:(0,H.jsx)(GK,{value:n,label:t})}),(0,H.jsx)(Bk,{value:`manifest`,children:(0,H.jsx)(GK,{value:r,label:Z(c,`model.compiledManifest`),focus:a})})]})}function GK({value:e,label:t,focus:n}){let r=JSON.stringify(e,null,2)??``;return(0,H.jsxs)(`div`,{className:`space-y-3 p-5`,children:[n?(0,H.jsxs)(`div`,{className:`rounded-md border border-primary/40 bg-primary/10 px-3 py-2`,children:[(0,H.jsx)(`div`,{className:`text-[10px] font-medium uppercase tracking-wider text-muted-foreground`,children:t}),(0,H.jsx)(`code`,{className:`mt-1 block break-all text-xs font-medium text-foreground`,children:n})]}):null,(0,H.jsxs)(`div`,{className:`relative`,children:[(0,H.jsx)(KK,{value:r,label:t}),(0,H.jsx)(JK,{value:r,className:`max-h-none pe-12`})]})]})}function KK({value:e,label:t}){let{language:n}=X(),[r,i]=V.useState(!1);async function a(){try{await navigator.clipboard.writeText(e),i(!0),window.setTimeout(()=>i(!1),1400)}catch{i(!1)}}return(0,H.jsx)(Y,{type:`button`,variant:`secondary`,size:`icon-sm`,className:`absolute end-2 top-2 z-10 shadow-sm`,onClick:()=>void a(),"aria-label":`${Z(n,`common.copy`)} ${t}`,"aria-pressed":r,children:r?(0,H.jsx)(kt,{className:`text-[color:var(--success)]`,"aria-hidden":!0}):(0,H.jsx)(zt,{"aria-hidden":!0})})}function qK({label:e,value:t}){return(0,H.jsxs)(`section`,{children:[(0,H.jsx)(`h3`,{className:`mb-2 text-sm font-medium`,children:e}),(0,H.jsx)(JK,{value:JSON.stringify(t,null,2)??``})]})}function JK({value:e,className:t}){return(0,H.jsx)(`pre`,{className:J(`max-h-72 overflow-auto rounded-lg border bg-muted/40 p-3 font-mono text-[11px] leading-5`,t),children:(0,H.jsx)(`code`,{children:e})})}function YK(){let{language:e}=X(),t=gy(),{navigate:n}=hy(),r=it(oy()),i=new URLSearchParams(t.search).get(`selected`);return r.isError?(0,H.jsx)(`div`,{className:`p-6`,children:(0,H.jsx)(jb,{error:r.error})}):r.isLoading?(0,H.jsx)(bv,{className:`h-full w-full rounded-none`}):r.data?(0,H.jsx)(`section`,{className:`relative h-full min-h-0`,"aria-label":Z(e,`developer.graph.title`),children:(0,H.jsx)(fK,{graph:r.data.graph,selectedAtomId:i,onSelect:e=>n(CK(`/admin/dev`,e)),onOpen:e=>n(wK(e.id))})}):(0,H.jsx)(H.Fragment,{})}var XK=[`public`,`members`,`staff`,`api-clients`,`system`];function ZK(){let{language:e}=X(),t=gy(),{navigate:n}=hy(),[r,i]=V.useState(``),a=it(oy()),o=a.data?[...a.data.logic.triggers.map(e=>({kind:`Trigger`,id:`Trigger:${e.name}`,model:e})),...a.data.logic.procedures.map(e=>({kind:`Procedure`,id:`Procedure:${e.name}`,model:e}))]:[],s=new URLSearchParams(t.search),c=o.find(({id:e})=>e===s.get(`selected`))??o[0]??null,l=s.get(`tab`),u=l===`contract`||l===`manifest`?l:`overview`,d=u===`manifest`?s.get(`pointer`):null,f=r.trim().toLowerCase(),p=f?o.filter(t=>`${t.kind} ${t.model.name} ${t.kind===`Procedure`?ny(t.model.title,e)??``:`${sK(e,t.model.audience)} ${sq(t.model.source)}`}`.toLowerCase().includes(f)):o;return a.isError?(0,H.jsx)(`div`,{className:`p-6`,children:(0,H.jsx)(jb,{error:a.error})}):a.isLoading?(0,H.jsx)(bv,{className:`h-full w-full rounded-none`}):!a.data||!c?(0,H.jsx)(H.Fragment,{}):(0,H.jsx)(OK,{label:Z(e,`logic.title`),sidebarLabel:Z(e,`logic.objects`),sidebar:(0,H.jsx)(QK,{items:p,selectedId:c.id,search:r,onSearch:i,onSelect:e=>n(CK(`/admin/dev/logic`,e))}),selectedId:c.id,graph:a.data.graph,children:(0,H.jsx)(nq,{item:c,snapshot:a.data,tab:u,manifestFocus:d,onTabChange:e=>{(e===`overview`||e===`contract`||e===`manifest`)&&n(CK(`/admin/dev/logic`,c.id,e===`overview`?void 0:{tab:e}))},onNavigate:e=>n(wK(e))})})}function QK({items:e,selectedId:t,search:n,onSearch:r,onSelect:i}){let{language:a}=X();return(0,H.jsxs)(`aside`,{className:`flex h-full min-h-0 flex-col border-e bg-sidebar text-sidebar-foreground`,"aria-label":Z(a,`logic.objects`),children:[(0,H.jsx)(zv,{className:`border-b border-sidebar-border`,children:(0,H.jsxs)(`label`,{className:`relative`,children:[(0,H.jsx)(An,{className:`pointer-events-none absolute start-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground`,"aria-hidden":!0}),(0,H.jsx)(`span`,{className:`sr-only`,children:Z(a,`logic.search`)}),(0,H.jsx)(Rv,{value:n,onChange:e=>r(e.currentTarget.value),placeholder:Z(a,`logic.search`),className:`ps-8`})]})}),(0,H.jsxs)(Vv,{className:`gap-0 p-2`,children:[(0,H.jsx)($K,{items:e.filter(e=>e.kind===`Trigger`),selectedId:t,onSelect:i}),(0,H.jsx)(eq,{title:Z(a,`logic.procedures`),icon:Xn,items:e.filter(e=>e.kind===`Procedure`),selectedId:t,onSelect:i})]})]})}function $K({items:e,selectedId:t,onSelect:n}){let{language:r}=X();return(0,H.jsxs)(Fy,{defaultOpen:!0,className:`group/logic mb-1`,children:[(0,H.jsxs)(Iy,{className:`flex h-8 w-full items-center gap-2 rounded-md px-2 text-sm font-medium hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring`,children:[(0,H.jsx)($n,{className:`size-4`,"aria-hidden":!0}),(0,H.jsx)(`span`,{className:`flex-1 text-start`,children:Z(r,`logic.triggers`)}),(0,H.jsx)(`span`,{className:`font-mono text-[10px] text-sidebar-foreground/60`,children:e.length}),(0,H.jsx)(Mt,{className:`size-4 transition-transform group-data-[state=open]/logic:rotate-90`,"aria-hidden":!0})]}),(0,H.jsx)(Ly,{className:`ms-4 border-s border-sidebar-border ps-2`,children:XK.map(i=>{let a=e.filter(e=>e.model.audience===i);return a.length?(0,H.jsxs)(`section`,{className:`mt-2`,"aria-label":sK(r,i),children:[(0,H.jsxs)(`div`,{className:`flex h-6 items-center gap-2 px-2 text-[10px] font-semibold uppercase tracking-wider text-sidebar-foreground/60`,children:[(0,H.jsx)(`span`,{className:`flex-1`,children:sK(r,i)}),(0,H.jsx)(`span`,{className:`font-mono`,children:a.length})]}),a.map(e=>(0,H.jsx)(tq,{item:e,selected:e.id===t,onSelect:n},e.id))]},i):null})})]})}function eq({title:e,icon:t,items:n,selectedId:r,onSelect:i}){return(0,H.jsxs)(Fy,{defaultOpen:!0,className:`group/logic mb-1`,children:[(0,H.jsxs)(Iy,{className:`flex h-8 w-full items-center gap-2 rounded-md px-2 text-sm font-medium hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring`,children:[(0,H.jsx)(t,{className:`size-4`,"aria-hidden":!0}),(0,H.jsx)(`span`,{className:`flex-1 text-start`,children:e}),(0,H.jsx)(`span`,{className:`font-mono text-[10px] text-sidebar-foreground/60`,children:n.length}),(0,H.jsx)(Mt,{className:`size-4 transition-transform group-data-[state=open]/logic:rotate-90`,"aria-hidden":!0})]}),(0,H.jsx)(Ly,{className:`ms-4 border-s border-sidebar-border ps-2`,children:n.map(e=>(0,H.jsx)(tq,{item:e,selected:e.id===r,onSelect:i},e.id))})]})}function tq({item:e,selected:t,onSelect:n}){let r=e.kind===`Trigger`?sq(e.model.source):e.model.handler.kind;return(0,H.jsxs)(`button`,{type:`button`,onClick:()=>n(e.id),"aria-pressed":t,className:J(`mt-1 flex h-8 w-full items-center gap-2 rounded-md px-2 text-start hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring`,t&&`bg-sidebar-accent font-medium text-sidebar-accent-foreground`),children:[(0,H.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-xs`,children:e.model.name}),(0,H.jsx)(`span`,{className:`shrink-0 rounded border border-sidebar-border bg-sidebar-accent/50 px-1 py-0.5 font-mono text-[8px] font-medium uppercase text-sidebar-foreground/70`,children:r})]})}function nq({item:e,snapshot:t,tab:n,manifestFocus:r,onTabChange:i,onNavigate:a}){let{language:o}=X(),s=e.kind===`Procedure`?e.model:t.logic.procedures.find(({name:t})=>t===e.model.target)??null,c=e.kind===`Procedure`?ny(e.model.title,o):null,l=e.kind===`Procedure`?ny(e.model.description,o):null,u=t.graph.atoms.find(({id:t})=>t===e.id),d=l||(e.kind===`Trigger`?Z(o,`developer.graph.summary.trigger`,{audience:sK(o,e.model.audience),transport:sq(e.model.source),target:e.model.target}):e.model.handler.kind===`builtin`?Z(o,`developer.graph.summary.builtin`,{op:e.model.handler.op,schema:e.model.handler.schema}):Z(o,`developer.graph.summary.ref`,{ref:e.model.handler.ref}));return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(`div`,{className:`flex min-h-14 items-center gap-3 border-b px-5 py-3 pe-32`,children:[(0,H.jsx)(`span`,{className:J(`inline-flex rounded border px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wider`,tK[e.kind]),children:cK(o,e.kind)}),e.kind===`Trigger`?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(ox,{variant:`outline`,className:`text-[9px] uppercase`,children:sK(o,e.model.audience)}),(0,H.jsx)(ox,{variant:`secondary`,className:`font-mono text-[9px]`,children:sq(e.model.source)})]}):null,(0,H.jsx)(`h1`,{className:`min-w-0 truncate font-mono text-sm font-semibold`,children:e.model.name}),c&&c!==e.model.name?(0,H.jsx)(`span`,{className:`truncate text-sm text-muted-foreground`,children:c}):null]}),(0,H.jsxs)(Ik,{value:n,onValueChange:i,className:`gap-0`,children:[(0,H.jsxs)(Rk,{variant:`line`,className:`h-10 w-full justify-start rounded-none border-b px-5`,children:[(0,H.jsx)(zk,{value:`overview`,className:`flex-none px-3`,children:Z(o,`logic.overview`)}),(0,H.jsx)(zk,{value:`contract`,className:`flex-none px-3`,children:Z(o,`logic.contract`)}),(0,H.jsx)(zk,{value:`manifest`,className:`flex-none px-3`,children:Z(o,`model.manifest`)})]}),(0,H.jsxs)(Bk,{value:`overview`,className:`space-y-6 p-5`,children:[(0,H.jsx)(`p`,{className:`max-w-3xl text-sm leading-6 text-muted-foreground`,children:d}),u?(0,H.jsx)(rq,{selectedId:e.id,graph:t.graph,onNavigate:a}):null,(0,H.jsxs)(`section`,{className:`space-y-3`,children:[(0,H.jsx)(`h2`,{className:`text-sm font-medium`,children:Z(o,`logic.configuration`)}),(0,H.jsx)(UK,{entries:e.kind===`Trigger`?oq(o,e.model):cq(o,e.model)})]}),s?(0,H.jsx)(iq,{predicates:s.authorization,guard:s.guard}):null]}),(0,H.jsxs)(Bk,{value:`contract`,className:`space-y-7 p-5`,children:[e.kind===`Trigger`&&s?(0,H.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Z(o,`logic.contractFrom`,{target:s.name})}):null,s?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(aq,{title:Z(o,`logic.input`),schema:s.input,onNavigate:a}),(0,H.jsx)(aq,{title:Z(o,`logic.output`),schema:s.output,onNavigate:a})]}):(0,H.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Z(o,`logic.noContract`)})]}),(0,H.jsx)(Bk,{value:`manifest`,children:(0,H.jsx)(GK,{value:e.model.manifest,label:Z(o,`model.compiledManifest`),focus:r})})]})]})}function rq({selectedId:e,graph:t,onNavigate:n}){let{language:r}=X(),i=gK(t,e),a=new Map(t.atoms.map(e=>[e.id,e])),o=_K(t,i.nodeIds,i.startId).map(e=>a.get(e)).filter(e=>!!e);return(0,H.jsxs)(`section`,{className:`space-y-3`,children:[(0,H.jsx)(`h2`,{className:`text-sm font-medium`,children:Z(r,`logic.execution`)}),(0,H.jsx)(`div`,{className:`flex flex-wrap items-center gap-2 rounded-xl border bg-muted/20 p-3`,children:o.map((t,i)=>(0,H.jsxs)(V.Fragment,{children:[i?(0,H.jsx)(vt,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":!0}):null,(0,H.jsxs)(`button`,{type:`button`,onClick:()=>n(t.id),className:J(`min-w-0 max-w-52 rounded-lg border bg-card px-3 py-2 text-start shadow-sm hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,t.id===e&&`ring-2 ring-primary/50`),children:[(0,H.jsx)(`span`,{className:J(`inline-flex rounded border px-1 py-0.5 text-[8px] font-semibold uppercase tracking-wider`,tK[t.kind]),children:cK(r,t.kind)}),(0,H.jsx)(`span`,{className:`mt-1 block truncate font-mono text-xs font-semibold`,children:t.name})]})]},t.id))})]})}function iq({predicates:e,guard:t}){let{language:n}=X();return(0,H.jsxs)(`section`,{className:`space-y-3`,children:[(0,H.jsx)(`h2`,{className:`text-sm font-medium`,children:Z(n,`logic.authorization`)}),(0,H.jsxs)(`div`,{className:`rounded-lg border bg-card p-3`,children:[e.length?(0,H.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:e.map((e,t)=>(0,H.jsx)(ox,{variant:`secondary`,className:`font-mono text-[10px]`,children:lq(e)},t))}):(0,H.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Z(n,`logic.noAuthorization`)}),t?(0,H.jsxs)(`p`,{className:`mt-3 text-xs text-muted-foreground`,children:[Z(n,`logic.guard`),`: `,(0,H.jsx)(`code`,{className:`text-foreground`,children:t})]}):null]})]})}function aq({title:e,schema:t,onNavigate:n}){let{language:r}=X(),i=kK(t);return(0,H.jsxs)(`section`,{children:[(0,H.jsx)(`h2`,{className:`mb-3 text-sm font-medium`,children:e}),(0,H.jsxs)(`div`,{className:`overflow-hidden rounded-lg border`,children:[(0,H.jsxs)(vx,{children:[(0,H.jsx)(yx,{children:(0,H.jsxs)(xx,{children:[(0,H.jsx)(Sx,{children:Z(r,`model.path`)}),(0,H.jsx)(Sx,{children:Z(r,`model.type`)}),(0,H.jsx)(Sx,{children:Z(r,`model.required`)}),(0,H.jsx)(Sx,{children:Z(r,`model.constraints`)})]})}),(0,H.jsx)(bx,{children:i.map(e=>(0,H.jsxs)(xx,{children:[(0,H.jsxs)(Cx,{children:[(0,H.jsx)(`span`,{className:`font-mono text-xs`,children:e.path}),e.reference?(0,H.jsx)(`button`,{type:`button`,className:`ms-2 inline-flex rounded p-0.5 text-violet-600 hover:bg-violet-500/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring dark:text-violet-300`,onClick:()=>n(`Schema:${e.reference}`),"aria-label":Z(r,`model.marker.reference`,{target:e.reference}),children:(0,H.jsx)(sn,{className:`size-3.5`,"aria-hidden":!0})}):null]}),(0,H.jsx)(Cx,{children:(0,H.jsx)(ox,{variant:`secondary`,className:`font-mono text-[10px]`,children:e.type})}),(0,H.jsx)(Cx,{children:e.required?Z(r,`common.yes`):`—`}),(0,H.jsx)(Cx,{className:`max-w-md whitespace-normal text-xs text-muted-foreground`,children:e.constraints.length?e.constraints.join(` · `):`—`})]},e.path))})]}),i.length?null:(0,H.jsx)(`p`,{className:`p-4 text-sm text-muted-foreground`,children:Z(r,`model.noFields`)})]})]})}function oq(e,t){let n=[[Z(e,`logic.target`),t.target],[Z(e,`developer.graph.fact.audience`),sK(e,t.audience)],[Z(e,`developer.graph.fact.transport`),sq(t.source)]];return t.source.kind===`http`?[...n,[Z(e,`logic.method`),t.source.method],[Z(e,`model.path`),t.source.path]]:t.source.kind===`mcp`?[...n,[Z(e,`logic.surface`),t.source.surface]]:[...n,[Z(e,`developer.graph.fact.schema`),t.source.schema],[Z(e,`logic.hooks`),t.source.on.join(`, `)],[Z(e,`logic.errorPolicy`),t.source.errorPolicy??`—`]]}function sq(e){return e.kind===`lifecycle`?`SYSTEM`:e.kind===`mcp`?`MCP`:`HTTP`}function cq(e,t){let n=[[Z(e,`developer.graph.fact.audience`),sK(e,t.audience)],[Z(e,`developer.graph.fact.handler`),t.handler.kind===`builtin`?Z(e,`developer.graph.builtin`):t.handler.ref]];return t.handler.kind===`builtin`?[...n,[Z(e,`developer.graph.fact.operation`),t.handler.op],[Z(e,`developer.graph.fact.schema`),t.handler.schema],[Z(e,`developer.graph.fact.match`),t.handler.match?.join(` + `)??`—`]]:n}function lq(e){return typeof e==`string`?e:JSON.stringify(e)}var uq=`import { bindWebMcp } from "@aotter/mantle-web/webmcp";
61
+
62
+ const binding = await bindWebMcp();`;function dq(){let{language:e}=X(),t=gy(),{navigate:n}=hy(),r=it(oy()),i=new URLSearchParams(t.search).get(`tab`),a=i===`mcp`||i===`webmcp`?i:`api`;if(r.isError)return(0,H.jsx)(`div`,{className:`p-6`,children:(0,H.jsx)(jb,{error:r.error})});if(r.isLoading)return(0,H.jsx)(bv,{className:`h-full w-full rounded-none`});if(!r.data)return(0,H.jsx)(H.Fragment,{});let{http:o,callable:s}=r.data.interfaces,c=o.filter(e=>e.kind===`view`),l=o.filter(e=>e.kind===`procedure`),u=s.filter(e=>e.surface===`public`&&e.kind===`view`);return(0,H.jsxs)(`section`,{className:`h-full min-h-0 overflow-y-auto`,"aria-label":Z(e,`docs.title`),children:[(0,H.jsxs)(`header`,{className:`border-b px-5 py-5 sm:px-7`,children:[(0,H.jsx)(`h1`,{className:`text-xl font-semibold`,children:Z(e,`docs.title`)}),(0,H.jsx)(`p`,{className:`mt-1 max-w-3xl text-sm text-muted-foreground`,children:Z(e,`docs.intro`)})]}),(0,H.jsxs)(Ik,{value:a,onValueChange:e=>n(`/admin/dev/docs?tab=${e}`),className:`gap-0`,children:[(0,H.jsxs)(Rk,{variant:`line`,className:`sticky top-0 z-10 h-11 w-full justify-start rounded-none border-b bg-background/95 px-5 backdrop-blur sm:px-7`,children:[(0,H.jsxs)(zk,{value:`api`,className:`flex-none`,children:[(0,H.jsx)(Ht,{"aria-hidden":!0}),Z(e,`docs.api`)]}),(0,H.jsxs)(zk,{value:`mcp`,className:`flex-none`,children:[(0,H.jsx)(fq,{}),Z(e,`docs.mcp`)]}),(0,H.jsxs)(zk,{value:`webmcp`,className:`flex-none`,children:[(0,H.jsx)(Et,{"aria-hidden":!0}),Z(e,`docs.webmcp`)]})]}),(0,H.jsx)(Bk,{value:`api`,children:(0,H.jsxs)(pq,{intro:Z(e,`docs.httpIntro`),children:[c.length?(0,H.jsx)(gq,{title:Z(e,`docs.publicEndpoint`),operations:c}):null,l.length?(0,H.jsx)(gq,{title:cK(e,`Trigger`),operations:l}):null,o.length?null:(0,H.jsx)(bq,{})]})}),(0,H.jsx)(Bk,{value:`mcp`,children:(0,H.jsxs)(pq,{intro:Z(e,`docs.mcpIntro`),endpoints:(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(mq,{label:Z(e,`docs.publicEndpoint`),value:`/mcp`}),(0,H.jsx)(mq,{label:Z(e,`docs.staffEndpoint`),value:`/mcp/staff`})]}),children:[[`public`,`staff`].map(e=>{let t=s.filter(t=>t.surface===e);return t.length?(0,H.jsxs)(`section`,{className:`space-y-3`,children:[(0,H.jsx)(`h2`,{className:`text-sm font-semibold uppercase tracking-wider text-muted-foreground`,children:e}),(0,H.jsx)(hq,{children:t.map(t=>(0,H.jsx)(vq,{capability:t},`${e}:${t.name}`))})]},e):null}),s.length?null:(0,H.jsx)(bq,{})]})}),(0,H.jsx)(Bk,{value:`webmcp`,children:(0,H.jsxs)(pq,{intro:Z(e,`docs.webmcpIntro`),endpoints:(0,H.jsx)(mq,{label:Z(e,`docs.catalogEndpoint`),value:`/api/views`}),children:[(0,H.jsx)(`pre`,{className:`overflow-x-auto rounded-xl border bg-muted/40 p-4 text-xs leading-6`,children:(0,H.jsx)(`code`,{children:uq})}),(0,H.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Z(e,`docs.webmcpNote`)}),(0,H.jsx)(hq,{children:u.map(e=>(0,H.jsx)(vq,{capability:e,webMcp:!0},e.name))}),u.length?null:(0,H.jsx)(bq,{})]})})]})]})}function fq(){return(0,H.jsxs)(`svg`,{viewBox:`0 0 190 195`,fill:`none`,"aria-hidden":!0,children:[(0,H.jsx)(`path`,{d:`M25 97.8528 92.8823 29.9706c9.3727-9.3726 24.5687-9.3726 33.9407 0 9.373 9.3725 9.373 24.5685 0 33.9411L75.5581 115.177`,stroke:`currentColor`,strokeWidth:`12`,strokeLinecap:`round`}),(0,H.jsx)(`path`,{d:`m76.2653 114.47 50.5577-50.5583c9.373-9.3726 24.569-9.3726 33.942 0l.353.3535c9.373 9.3726 9.373 24.5686 0 33.9411L99.7248 159.6a8 8 0 0 0 0 11.313l12.6062 12.607`,stroke:`currentColor`,strokeWidth:`12`,strokeLinecap:`round`}),(0,H.jsx)(`path`,{d:`m109.853 46.9411-50.2048 50.2046c-9.3725 9.3723-9.3725 24.5683 0 33.9413 9.3726 9.372 24.5686 9.372 33.9412 0l50.2046-50.2048`,stroke:`currentColor`,strokeWidth:`12`,strokeLinecap:`round`})]})}function pq({intro:e,endpoints:t,children:n}){return(0,H.jsxs)(`div`,{className:`mx-auto max-w-6xl space-y-6 p-5 sm:p-7`,children:[(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,H.jsx)(`p`,{className:`me-auto max-w-3xl text-sm leading-6 text-muted-foreground`,children:e}),t]}),n]})}function mq({label:e,value:t}){return(0,H.jsxs)(`div`,{className:`rounded-lg border bg-card px-3 py-2`,children:[(0,H.jsx)(`div`,{className:`text-[10px] uppercase tracking-wider text-muted-foreground`,children:e}),(0,H.jsx)(`code`,{className:`text-xs font-semibold`,children:t})]})}function hq({children:e}){return(0,H.jsx)(`div`,{className:`grid gap-4 xl:grid-cols-2`,children:e})}function gq({title:e,operations:t}){return(0,H.jsxs)(`section`,{className:`space-y-3`,children:[(0,H.jsx)(`h2`,{className:`text-sm font-semibold uppercase tracking-wider text-muted-foreground`,children:e}),(0,H.jsx)(hq,{children:t.map(e=>(0,H.jsx)(_q,{operation:e},`${e.method}:${e.path}`))})]})}function _q({operation:e}){let{language:t}=X();return(0,H.jsxs)(xb,{children:[(0,H.jsxs)(Sb,{children:[(0,H.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,H.jsx)(ox,{variant:e.method===`GET`?`secondary`:`default`,className:`font-mono`,children:e.method}),(0,H.jsx)(`code`,{className:`min-w-0 break-all text-xs font-semibold`,children:e.path})]}),(0,H.jsx)(Cb,{className:`font-mono text-sm`,children:(0,H.jsx)(`a`,{href:wK(`${e.kind===`view`?`View`:`Trigger`}:${e.kind===`view`?e.target:e.name}`),className:`hover:underline`,children:e.name})}),(0,H.jsx)(wb,{children:e.description})]}),(0,H.jsxs)(Tb,{className:`space-y-3`,children:[(0,H.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,H.jsx)(ox,{variant:`outline`,children:cK(t,e.kind===`view`?`View`:`Procedure`)}),(0,H.jsx)(ox,{variant:`outline`,children:sK(t,e.audience)}),(0,H.jsxs)(ox,{variant:`outline`,children:[Z(t,`docs.target`),`: `,e.target]})]}),(0,H.jsx)(yq,{label:Z(t,`docs.inputSchema`),schema:e.input}),e.output?(0,H.jsx)(yq,{label:Z(t,`docs.outputSchema`),schema:e.output}):null,e.kind===`view`?(0,H.jsx)(Y,{asChild:!0,variant:`outline`,size:`sm`,children:(0,H.jsxs)(`a`,{href:`/admin/views/${encodeURIComponent(e.target)}`,children:[(0,H.jsx)(Gt,{"aria-hidden":!0}),Z(t,`views.openInAdmin`)]})}):null]})]})}function vq({capability:e,webMcp:t=!1}){let{language:n}=X();return(0,H.jsxs)(xb,{children:[(0,H.jsxs)(Sb,{children:[(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,H.jsx)(ox,{variant:`secondary`,children:cK(n,e.kind===`view`?`View`:`Procedure`)}),(0,H.jsx)(ox,{variant:`outline`,children:sK(n,e.surface)}),(0,H.jsx)(ox,{variant:`outline`,children:sK(n,e.audience)}),t?(0,H.jsx)(ox,{variant:`outline`,children:Z(n,`docs.readOnly`)}):null]}),(0,H.jsx)(Cb,{className:`font-mono text-sm`,children:(0,H.jsx)(`a`,{href:wK(`${e.kind===`view`?`View`:`Procedure`}:${e.target}`),className:`hover:underline`,children:e.name})}),(0,H.jsx)(wb,{children:e.description})]}),(0,H.jsxs)(Tb,{className:`space-y-3`,children:[(0,H.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,H.jsxs)(ox,{variant:`outline`,children:[Z(n,`docs.target`),`: `,e.target]}),e.trigger?(0,H.jsxs)(ox,{variant:`outline`,children:[cK(n,`Trigger`),`: `,e.trigger]}):null]}),(0,H.jsx)(yq,{label:Z(n,`docs.inputSchema`),schema:e.input}),e.output?(0,H.jsx)(yq,{label:Z(n,`docs.outputSchema`),schema:e.output}):null]})]})}function yq({label:e,schema:t}){return(0,H.jsxs)(`details`,{className:`rounded-lg border bg-muted/25`,children:[(0,H.jsx)(`summary`,{className:`cursor-pointer px-3 py-2 text-xs font-medium`,children:e}),(0,H.jsx)(`pre`,{className:`max-h-72 overflow-auto border-t p-3 text-[11px] leading-5`,children:(0,H.jsx)(`code`,{children:JSON.stringify(t,null,2)})})]})}function bq(){let{language:e}=X();return(0,H.jsx)(`p`,{className:`rounded-xl border border-dashed p-6 text-sm text-muted-foreground`,children:Z(e,`docs.noEntries`)})}function xq(){let e=gy();return e.pathname===`/admin/sign-in`?(0,H.jsx)(Qb,{}):(0,H.jsx)(Sq,{path:e.pathname})}function Sq({path:e}){let t=it({queryKey:[`me`],queryFn:()=>ey.get(`/me`),retry:!1}),n=t.isError&&t.error instanceof Qv&&t.error.status===401;if((0,V.useEffect)(()=>{if(!n||typeof window>`u`)return;let e=window.location.pathname+window.location.search;window.location.href=`/admin/sign-in?return=${encodeURIComponent(e)}`},[n]),n)return(0,H.jsx)(Wb,{});if(t.isError&&t.error instanceof Qv&&t.error.status===403){let e=t.error.body??{};return(0,H.jsx)(Kb,{login:e.login??null})}if(t.isError)return(0,H.jsx)(Gb,{error:t.error});if(t.isLoading)return(0,H.jsx)(Wb,{});let r=e.match(/^\/admin\/c\/([^/]+)\/?$/);if(r)return(0,H.jsx)(Lb,{children:(0,H.jsx)(BO,{collectionName:decodeURIComponent(r[1])})});let i=e.match(/^\/admin\/c\/([^/]+)\/([^/]+)\/?$/);if(i){let e=decodeURIComponent(i[1]),t=decodeURIComponent(i[2]);return(0,H.jsx)(Lb,{children:(0,H.jsx)(qD,{collectionName:e,entryId:t})})}if(e===`/admin`||e===`/admin/`)return(0,H.jsx)(Lb,{children:(0,H.jsx)(lx,{})});if(e===`/admin/media`)return(0,H.jsx)(Lb,{children:(0,H.jsx)(MD,{})});if(e===`/admin/preferences`)return(0,H.jsx)(Lb,{children:(0,H.jsx)(fk,{})});if(e===`/admin/settings`)return(0,H.jsx)(Lb,{children:(0,H.jsx)(_k,{})});if(e===`/admin/staff`)return(0,H.jsx)(Lb,{children:(0,H.jsx)(Ek,{})});if(e===`/admin/members`)return(0,H.jsx)(Lb,{children:(0,H.jsx)(Mk,{})});if(e.startsWith(`/admin/dev`))return(0,H.jsx)(Cq,{path:e});let a=e.match(/^\/admin\/views\/([^/]+)\/?$/);return a?(0,H.jsx)(Lb,{children:(0,H.jsx)(ek,{name:decodeURIComponent(a[1])})}):(0,H.jsx)(Lb,{children:(0,H.jsx)(dk,{path:e})})}function Cq({path:e}){return(0,H.jsx)(Lb,{workspace:`developer`,children:e===`/admin/dev`?(0,H.jsx)(YK,{}):e===`/admin/dev/model`?(0,H.jsx)(FK,{}):e===`/admin/dev/logic`?(0,H.jsx)(ZK,{}):e===`/admin/dev/docs`?(0,H.jsx)(dq,{}):(0,H.jsx)(dk,{path:e})})}var wq=new ze({defaultOptions:{queries:{retry:(e,t)=>t instanceof Qv&&[401,403,501].includes(t.status)?!1:e<2,refetchOnWindowFocus:!1,staleTime:1e4}}}),Tq=({...e})=>(0,H.jsx)(ES,{className:`toaster group`,icons:{success:(0,H.jsx)(It,{className:`size-4`}),info:(0,H.jsx)(en,{className:`size-4`}),warning:(0,H.jsx)(Vn,{className:`size-4`}),error:(0,H.jsx)(bn,{className:`size-4`}),loading:(0,H.jsx)(mn,{className:`size-4 animate-spin`})},style:{"--normal-bg":`var(--popover)`,"--normal-text":`var(--popover-foreground)`,"--normal-border":`var(--border)`,"--border-radius":`var(--radius)`},toastOptions:{classNames:{toast:`cn-toast`}},...e}),Eq=document.getElementById(`root`);if(!Eq)throw Error(`Missing #root element.`);er.createRoot(Eq).render((0,H.jsx)(V.StrictMode,{children:(0,H.jsx)(We,{client:wq,children:(0,H.jsx)(xy,{children:(0,H.jsx)(my,{children:(0,H.jsx)(xv,{children:(0,H.jsxs)(Fx,{children:[(0,H.jsx)(xq,{}),(0,H.jsx)(Dq,{})]})})})})})}));function Dq(){let{theme:e}=X();return(0,H.jsx)(Tq,{theme:e,position:`bottom-right`})}