@aotter/mantle-admin-ui 0.0.11-alpha.24 → 0.0.11-alpha.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.html CHANGED
@@ -84,7 +84,7 @@
84
84
  } catch (_) {}
85
85
  })();
86
86
  </script>
87
- <script type="module" crossorigin>var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,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),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.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 ee(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function te(e,t){return ee(e.type,t,e.props)}function E(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ne(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var re=/\/+/g;function ie(e,t){return typeof e==`object`&&e&&e.key!=null?ne(``+e.key):t.toString(36)}function D(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 ae(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,ae(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ie(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(re,`$&/`)+`/`),ae(o,r,i,``,function(e){return e})):o!=null&&(E(o)&&(o=te(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(re,`$&/`)+`/`)+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+ie(a,u),c+=ae(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+ie(a,u++),c+=ae(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ae(D(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 oe(e,t,n){if(e==null)return e;var r=[],i=0;return ae(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function se(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 O=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)},k={map:oe,forEach:function(e,t,n){oe(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return oe(e,function(){t++}),t},toArray:function(e){return oe(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=k,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 ee(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 ee(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=E,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:se}},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,O)}catch(e){O(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.6`})),u=o(((e,t)=>{t.exports=l()})),d=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,E());else{var t=n(l);t!==null&&ie(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function ee(){return g?!0:!(e.unstable_now()-T<w)}function te(){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&&ee());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ie(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?E():S=!1}}}var E;if(typeof y==`function`)E=function(){y(te)};else if(typeof MessageChannel<`u`){var ne=new MessageChannel,re=ne.port2;ne.port1.onmessage=te,E=function(){re.postMessage(null)}}else E=function(){_(te,0)};function ie(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):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,ie(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,E()))),r},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{var t=u();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);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.6`})),m=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=p()})),h=o((e=>{var t=f(),n=u(),r=m();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){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 d(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var h=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`),ee=Symbol.for(`react.suspense_list`),te=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),ne=Symbol.for(`react.activity`),re=Symbol.for(`react.memo_cache_sentinel`),ie=Symbol.iterator;function D(e){return typeof e!=`object`||!e?null:(e=ie&&e[ie]||e[`@@iterator`],typeof e==`function`?e:null)}var ae=Symbol.for(`react.client.reference`);function oe(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ae?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 ee:return`SuspenseList`;case ne: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 te:return t=e.displayName||null,t===null?oe(e.type)||`Memo`:t;case E:t=e._payload,e=e._init;try{return oe(e(t))}catch{}}return null}var se=Array.isArray,O=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},le=[],ue=-1;function de(e){return{current:e}}function A(e){0>ue||(e.current=le[ue],le[ue]=null,ue--)}function j(e,t){ue++,le[ue]=e.current,e.current=t}var fe=de(null),pe=de(null),me=de(null),he=de(null);function ge(e,t){switch(j(me,t),j(pe,e),j(fe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}A(fe),j(fe,e)}function _e(){A(fe),A(pe),A(me)}function ve(e){e.memoizedState!==null&&j(he,e);var t=fe.current,n=Hd(t,e.type);t!==n&&(j(pe,e),j(fe,n))}function ye(e){pe.current===e&&(A(fe),A(pe)),he.current===e&&(A(he),Qf._currentValue=ce)}var be,xe;function Se(e){if(be===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);be=t&&t[1]||``,xe=-1<e.stack.indexOf(`
87
+ <script type="module" crossorigin>var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,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),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.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 ee(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function te(e,t){return ee(e.type,t,e.props)}function E(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ne(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var re=/\/+/g;function ie(e,t){return typeof e==`object`&&e&&e.key!=null?ne(``+e.key):t.toString(36)}function D(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 ae(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,ae(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ie(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(re,`$&/`)+`/`),ae(o,r,i,``,function(e){return e})):o!=null&&(E(o)&&(o=te(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(re,`$&/`)+`/`)+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+ie(a,u),c+=ae(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+ie(a,u++),c+=ae(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ae(D(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 oe(e,t,n){if(e==null)return e;var r=[],i=0;return ae(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function se(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 O=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)},k={map:oe,forEach:function(e,t,n){oe(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return oe(e,function(){t++}),t},toArray:function(e){return oe(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=k,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 ee(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 ee(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=E,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:se}},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,O)}catch(e){O(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.7`})),u=o(((e,t)=>{t.exports=l()})),d=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,E());else{var t=n(l);t!==null&&ie(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function ee(){return g?!0:!(e.unstable_now()-T<w)}function te(){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&&ee());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ie(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?E():S=!1}}}var E;if(typeof y==`function`)E=function(){y(te)};else if(typeof MessageChannel<`u`){var ne=new MessageChannel,re=ne.port2;ne.port1.onmessage=te,E=function(){re.postMessage(null)}}else E=function(){_(te,0)};function ie(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):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,ie(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,E()))),r},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{var t=u();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.7`})),m=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=p()})),h=o((e=>{var t=f(),n=u(),r=m();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){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 d(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var h=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`),ee=Symbol.for(`react.suspense_list`),te=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),ne=Symbol.for(`react.activity`),re=Symbol.for(`react.memo_cache_sentinel`),ie=Symbol.iterator;function D(e){return typeof e!=`object`||!e?null:(e=ie&&e[ie]||e[`@@iterator`],typeof e==`function`?e:null)}var ae=Symbol.for(`react.client.reference`);function oe(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ae?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 ee:return`SuspenseList`;case ne: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 te:return t=e.displayName||null,t===null?oe(e.type)||`Memo`:t;case E:t=e._payload,e=e._init;try{return oe(e(t))}catch{}}return null}var se=Array.isArray,O=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},le=[],ue=-1;function de(e){return{current:e}}function A(e){0>ue||(e.current=le[ue],le[ue]=null,ue--)}function j(e,t){ue++,le[ue]=e.current,e.current=t}var fe=de(null),pe=de(null),me=de(null),he=de(null);function ge(e,t){switch(j(me,t),j(pe,e),j(fe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}A(fe),j(fe,e)}function _e(){A(fe),A(pe),A(me)}function ve(e){e.memoizedState!==null&&j(he,e);var t=fe.current,n=Hd(t,e.type);t!==n&&(j(pe,e),j(fe,n))}function ye(e){pe.current===e&&(A(fe),A(pe)),he.current===e&&(A(he),Qf._currentValue=ce)}var be,xe;function Se(e){if(be===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);be=t&&t[1]||``,xe=-1<e.stack.indexOf(`
88
88
  at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
89
89
  `+be+e+xe}var Ce=!1;function we(e,t){if(!e||Ce)return``;Ce=!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(`
90
90
  `),l=s.split(`
@@ -92,7 +92,7 @@
92
92
  `+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{Ce=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Se(n):``}function Te(e,t){switch(e.tag){case 26:case 27:case 5:return Se(e.type);case 16:return Se(`Lazy`);case 13:return e.child!==t&&t!==null?Se(`Suspense Fallback`):Se(`Suspense`);case 19:return Se(`SuspenseList`);case 0:case 15:return we(e.type,!1);case 11:return we(e.type.render,!1);case 1:return we(e.type,!0);case 31:return Se(`Activity`);default:return``}}function Ee(e){try{var t=``,n=null;do t+=Te(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
93
93
  Error generating stack: `+e.message+`
94
94
  `+e.stack}}var De=Object.prototype.hasOwnProperty,Oe=t.unstable_scheduleCallback,ke=t.unstable_cancelCallback,Ae=t.unstable_shouldYield,je=t.unstable_requestPaint,Me=t.unstable_now,Ne=t.unstable_getCurrentPriorityLevel,Pe=t.unstable_ImmediatePriority,Fe=t.unstable_UserBlockingPriority,Ie=t.unstable_NormalPriority,Le=t.unstable_LowPriority,Re=t.unstable_IdlePriority,ze=t.log,Be=t.unstable_setDisableYieldValue,Ve=null,He=null;function Ue(e){if(typeof ze==`function`&&Be(e),He&&typeof He.setStrictMode==`function`)try{He.setStrictMode(Ve,e)}catch{}}var We=Math.clz32?Math.clz32:qe,Ge=Math.log,Ke=Math.LN2;function qe(e){return e>>>=0,e===0?32:31-(Ge(e)/Ke|0)|0}var Je=256,Ye=262144,M=4194304;function N(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 Xe(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=N(n))):i=N(o):i=N(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=N(n))):i=N(o)):i=N(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 Ze(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Qe(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 $e(){var e=M;return M<<=1,!(M&62914560)&&(M=4194304),e}function et(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function nt(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-We(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&&rt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function rt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-We(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function it(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-We(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function at(e,t){var n=t&-t;return n=n&42?1:ot(n),(n&(e.suspendedLanes|t))===0?n:0}function ot(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 st(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function ct(){var e=k.p;return e===0?(e=window.event,e===void 0?32:mp(e.type)):e}function lt(e,t){var n=k.p;try{return k.p=e,t()}finally{k.p=n}}var ut=Math.random().toString(36).slice(2),dt=`__reactFiber$`+ut,P=`__reactProps$`+ut,ft=`__reactContainer$`+ut,pt=`__reactEvents$`+ut,mt=`__reactListeners$`+ut,ht=`__reactHandles$`+ut,gt=`__reactResources$`+ut,_t=`__reactMarker$`+ut;function vt(e){delete e[dt],delete e[P],delete e[pt],delete e[mt],delete e[ht]}function yt(e){var t=e[dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ft]||n[dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=df(e);e!==null;){if(n=e[dt])return n;e=df(e)}return t}e=n,n=e.parentNode}return null}function bt(e){if(e=e[dt]||e[ft]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function xt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function F(e){var t=e[gt];return t||=e[gt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function St(e){e[_t]=!0}var Ct=new Set,wt={};function Tt(e,t){Et(e,t),Et(e+`Capture`,t)}function Et(e,t){for(wt[e]=t,e=0;e<t.length;e++)Ct.add(t[e])}var Dt=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]*$`),Ot={},kt={};function At(e){return De.call(kt,e)?!0:De.call(Ot,e)?!1:Dt.test(e)?kt[e]=!0:(Ot[e]=!0,!1)}function jt(e,t,n){if(At(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 Mt(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 Nt(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 Pt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Ft(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function It(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 Lt(e){if(!e._valueTracker){var t=Ft(e)?`checked`:`value`;e._valueTracker=It(e,t,``+e[t])}}function Rt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Ft(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function zt(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 Bt=/[\n"\\]/g;function Vt(e){return e.replace(Bt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Ht(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=``+Pt(t)):e.value!==``+Pt(t)&&(e.value=``+Pt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Wt(e,o,Pt(n)):Wt(e,o,Pt(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=``+Pt(s):e.removeAttribute(`name`)}function Ut(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)){Lt(e);return}n=n==null?``:``+Pt(n),t=t==null?n:``+Pt(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),Lt(e)}function Wt(e,t,n){t===`number`&&zt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Gt(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=``+Pt(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 Kt(e,t,n){if(t!=null&&(t=``+Pt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Pt(n)}function qt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(se(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Pt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Lt(e)}function Jt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yt=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 Xt(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||Yt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Zt(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&&Xt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Xt(e,o,t[o])}function Qt(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 $t=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`]]),en=/^[\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 tn(e){return en.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function nn(){}var rn=null;function an(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var on=null,sn=null;function cn(e){var t=bt(e);if(t&&(e=t.stateNode)){var n=e[P]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Ht(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="`+Vt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[P]||null;if(!a)throw Error(i(90));Ht(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&&Rt(r)}break a;case`textarea`:Kt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Gt(e,!!n.multiple,t,!1)}}}var ln=!1;function un(e,t,n){if(ln)return e(t,n);ln=!0;try{return e(t)}finally{if(ln=!1,(on!==null||sn!==null)&&(yu(),on&&(t=on,e=sn,sn=on=null,cn(t),e)))for(t=0;t<e.length;t++)cn(e[t])}}function dn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[P]||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 fn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),pn=!1;if(fn)try{var mn={};Object.defineProperty(mn,"passive",{get:function(){pn=!0}}),window.addEventListener(`test`,mn,mn),window.removeEventListener(`test`,mn,mn)}catch{pn=!1}var hn=null,gn=null,_n=null;function vn(){if(_n)return _n;var e,t=gn,n=t.length,r,i=`value`in hn?hn.value:hn.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 _n=i.slice(e,1<r?1-r:void 0)}function yn(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 bn(){return!0}function xn(){return!1}function Sn(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)?bn:xn,this.isPropagationStopped=xn,this}return h(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=bn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=bn)},persist:function(){},isPersistent:bn}),t}var Cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wn=Sn(Cn),Tn=h({},Cn,{view:0,detail:0}),En=Sn(Tn),Dn,On,kn,An=h({},Tn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vn,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!==kn&&(kn&&e.type===`mousemove`?(Dn=e.screenX-kn.screenX,On=e.screenY-kn.screenY):On=Dn=0,kn=e),Dn)},movementY:function(e){return`movementY`in e?e.movementY:On}}),jn=Sn(An),Mn=Sn(h({},An,{dataTransfer:0})),Nn=Sn(h({},Tn,{relatedTarget:0})),Pn=Sn(h({},Cn,{animationName:0,elapsedTime:0,pseudoElement:0})),Fn=Sn(h({},Cn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),In=Sn(h({},Cn,{data:0})),Ln={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Rn={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`},zn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Bn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=zn[e])?!!t[e]:!1}function Vn(){return Bn}var Hn=Sn(h({},Tn,{key:function(e){if(e.key){var t=Ln[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=yn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Rn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vn,charCode:function(e){return e.type===`keypress`?yn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?yn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Un=Sn(h({},An,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Wn=Sn(h({},Tn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vn})),Gn=Sn(h({},Cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Kn=Sn(h({},An,{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})),qn=Sn(h({},Cn,{newState:0,oldState:0})),Jn=[9,13,27,32],Yn=fn&&`CompositionEvent`in window,Xn=null;fn&&`documentMode`in document&&(Xn=document.documentMode);var Zn=fn&&`TextEvent`in window&&!Xn,Qn=fn&&(!Yn||Xn&&8<Xn&&11>=Xn),$n=` `,er=!1;function tr(e,t){switch(e){case`keyup`:return Jn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function nr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var rr=!1;function ir(e,t){switch(e){case`compositionend`:return nr(t);case`keypress`:return t.which===32?(er=!0,$n):null;case`textInput`:return e=t.data,e===$n&&er?null:e;default:return null}}function ar(e,t){if(rr)return e===`compositionend`||!Yn&&tr(e,t)?(e=vn(),_n=gn=hn=null,rr=!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 Qn&&t.locale!==`ko`?null:t.data;default:return null}}var or={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function sr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!or[e.type]:t===`textarea`}function cr(e,t,n,r){on?sn?sn.push(r):sn=[r]:on=r,t=Td(t,`onChange`),0<t.length&&(n=new wn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var lr=null,ur=null;function dr(e){vd(e,0)}function fr(e){if(Rt(xt(e)))return e}function pr(e,t){if(e===`change`)return t}var mr=!1;if(fn){var hr;if(fn){var gr=`oninput`in document;if(!gr){var _r=document.createElement(`div`);_r.setAttribute(`oninput`,`return;`),gr=typeof _r.oninput==`function`}hr=gr}else hr=!1;mr=hr&&(!document.documentMode||9<document.documentMode)}function vr(){lr&&(lr.detachEvent(`onpropertychange`,yr),ur=lr=null)}function yr(e){if(e.propertyName===`value`&&fr(ur)){var t=[];cr(t,ur,e,an(e)),un(dr,t)}}function br(e,t,n){e===`focusin`?(vr(),lr=t,ur=n,lr.attachEvent(`onpropertychange`,yr)):e===`focusout`&&vr()}function xr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return fr(ur)}function Sr(e,t){if(e===`click`)return fr(t)}function Cr(e,t){if(e===`input`||e===`change`)return fr(t)}function wr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Tr=typeof Object.is==`function`?Object.is:wr;function Er(e,t){if(Tr(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(!De.call(t,i)||!Tr(e[i],t[i]))return!1}return!0}function Dr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Or(e,t){var n=Dr(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=Dr(n)}}function kr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ar(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=zt(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=zt(e.document)}return t}function jr(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 Mr=fn&&`documentMode`in document&&11>=document.documentMode,Nr=null,Pr=null,Fr=null,Ir=!1;function Lr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ir||Nr==null||Nr!==zt(r)||(r=Nr,`selectionStart`in r&&jr(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}),Fr&&Er(Fr,r)||(Fr=r,r=Td(Pr,`onSelect`),0<r.length&&(t=new wn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Nr)))}function Rr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var zr={animationend:Rr(`Animation`,`AnimationEnd`),animationiteration:Rr(`Animation`,`AnimationIteration`),animationstart:Rr(`Animation`,`AnimationStart`),transitionrun:Rr(`Transition`,`TransitionRun`),transitionstart:Rr(`Transition`,`TransitionStart`),transitioncancel:Rr(`Transition`,`TransitionCancel`),transitionend:Rr(`Transition`,`TransitionEnd`)},Br={},Vr={};fn&&(Vr=document.createElement(`div`).style,`AnimationEvent`in window||(delete zr.animationend.animation,delete zr.animationiteration.animation,delete zr.animationstart.animation),`TransitionEvent`in window||delete zr.transitionend.transition);function Hr(e){if(Br[e])return Br[e];if(!zr[e])return e;var t=zr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Vr)return Br[e]=t[n];return e}var Ur=Hr(`animationend`),Wr=Hr(`animationiteration`),Gr=Hr(`animationstart`),Kr=Hr(`transitionrun`),qr=Hr(`transitionstart`),Jr=Hr(`transitioncancel`),Yr=Hr(`transitionend`),Xr=new Map,Zr=`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(` `);Zr.push(`scrollEnd`);function Qr(e,t){Xr.set(e,t),Tt(t,[e])}var $r=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)},ei=[],ti=0,ni=0;function I(){for(var e=ti,t=ni=ti=0;t<e;){var n=ei[t];ei[t++]=null;var r=ei[t];ei[t++]=null;var i=ei[t];ei[t++]=null;var a=ei[t];if(ei[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&&oi(n,i,a)}}function ri(e,t,n,r){ei[ti++]=e,ei[ti++]=t,ei[ti++]=n,ei[ti++]=r,ni|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ii(e,t,n,r){return ri(e,t,n,r),si(e)}function ai(e,t){return ri(e,null,null,t),si(e)}function oi(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-We(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function si(e){if(50<uu)throw uu=0,du=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ci={};function li(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 ui(e,t,n,r){return new li(e,t,n,r)}function di(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fi(e,t){var n=e.alternate;return n===null?(n=ui(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 pi(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 L(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)di(e)&&(s=1);else if(typeof e==`string`)s=Uf(e,n,fe.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case ne:return e=ui(31,n,t,a),e.elementType=ne,e.lanes=o,e;case y:return mi(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=ui(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=ui(13,n,t,a),e.elementType=T,e.lanes=o,e;case ee:return e=ui(19,n,t,a),e.elementType=ee,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 te:s=14;break a;case E:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ui(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function mi(e,t,n,r){return e=ui(7,e,r,t),e.lanes=n,e}function hi(e,t,n){return e=ui(6,e,null,t),e.lanes=n,e}function gi(e){var t=ui(18,null,null,0);return t.stateNode=e,t}function _i(e,t,n){return t=ui(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var vi=new WeakMap;function yi(e,t){if(typeof e==`object`&&e){var n=vi.get(e);return n===void 0?(t={value:e,source:t,stack:Ee(t)},vi.set(e,t),t):n}return{value:e,source:t,stack:Ee(t)}}var bi=[],R=0,xi=null,Si=0,Ci=[],wi=0,Ti=null,Ei=1,Di=``;function Oi(e,t){bi[R++]=Si,bi[R++]=xi,xi=e,Si=t}function ki(e,t,n){Ci[wi++]=Ei,Ci[wi++]=Di,Ci[wi++]=Ti,Ti=e;var r=Ei;e=Di;var i=32-We(r)-1;r&=~(1<<i),n+=1;var a=32-We(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ei=1<<32-We(t)+i|n<<i|r,Di=a+e}else Ei=1<<a|n<<i|r,Di=e}function Ai(e){e.return!==null&&(Oi(e,1),ki(e,1,0))}function ji(e){for(;e===xi;)xi=bi[--R],bi[R]=null,Si=bi[--R],bi[R]=null;for(;e===Ti;)Ti=Ci[--wi],Ci[wi]=null,Di=Ci[--wi],Ci[wi]=null,Ei=Ci[--wi],Ci[wi]=null}function Mi(e,t){Ci[wi++]=Ei,Ci[wi++]=Di,Ci[wi++]=Ti,Ei=t.id,Di=t.overflow,Ti=e}var Ni=null,Pi=null,z=!1,Fi=null,Ii=!1,Li=Error(i(519));function B(e){throw Vi(yi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Li}function Ri(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[dt]=e,t[P]=r,n){case`dialog`:$(`cancel`,t),$(`close`,t);break;case`iframe`:case`object`:case`embed`:$(`load`,t);break;case`video`:case`audio`:for(n=0;n<gd.length;n++)$(gd[n],t);break;case`source`:$(`error`,t);break;case`img`:case`image`:case`link`:$(`error`,t),$(`load`,t);break;case`details`:$(`toggle`,t);break;case`input`:$(`invalid`,t),Ut(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:$(`invalid`,t);break;case`textarea`:$(`invalid`,t),qt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||jd(t.textContent,n)?(r.popover!=null&&($(`beforetoggle`,t),$(`toggle`,t)),r.onScroll!=null&&$(`scroll`,t),r.onScrollEnd!=null&&$(`scrollend`,t),r.onClick!=null&&(t.onclick=nn),t=!0):t=!1,t||B(e,!0)}function V(e){for(Ni=e.return;Ni;)switch(Ni.tag){case 5:case 31:case 13:Ii=!1;return;case 27:case 3:Ii=!0;return;default:Ni=Ni.return}}function H(e){if(e!==Ni)return!1;if(!z)return V(e),z=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Ud(e.type,e.memoizedProps)),n=!n),n&&Pi&&B(e),V(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Pi=uf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Pi=uf(e)}else t===27?(t=Pi,Zd(e.type)?(e=lf,lf=null,Pi=e):Pi=t):Pi=Ni?cf(e.stateNode.nextSibling):null;return!0}function zi(){Pi=Ni=null,z=!1}function Bi(){var e=Fi;return e!==null&&(Xl===null?Xl=e:Xl.push.apply(Xl,e),Fi=null),e}function Vi(e){Fi===null?Fi=[e]:Fi.push(e)}var Hi=de(null),Ui=null,Wi=null;function Gi(e,t,n){j(Hi,t._currentValue),t._currentValue=n}function Ki(e){e._currentValue=Hi.current,A(Hi)}function qi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Ji(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),qi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),qi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Yi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Tr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===he.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Qf]:e.push(Qf))}a=a.return}e!==null&&Ji(t,e,n,r),t.flags|=262144}function Xi(e){for(e=e.firstContext;e!==null;){if(!Tr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Zi(e){Ui=e,Wi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Qi(e){return ea(Ui,e)}function $i(e,t){return Ui===null&&Zi(e),ea(e,t)}function ea(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Wi===null){if(e===null)throw Error(i(308));Wi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wi=Wi.next=t;return n}var ta=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()})}},na=t.unstable_scheduleCallback,ra=t.unstable_NormalPriority,ia={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function aa(){return{controller:new ta,data:new Map,refCount:0}}function oa(e){e.refCount--,e.refCount===0&&na(ra,function(){e.controller.abort()})}var sa=null,ca=0,la=0,ua=null;function da(e,t){if(sa===null){var n=sa=[];ca=0,la=ud(),ua={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ca++,t.then(fa,fa),t}function fa(){if(--ca===0&&sa!==null){ua!==null&&(ua.status=`fulfilled`);var e=sa;sa=null,la=0,ua=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function pa(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 ma=O.S;O.S=function(e,t){$l=Me(),typeof t==`object`&&t&&typeof t.then==`function`&&da(e,t),ma!==null&&ma(e,t)};var ha=de(null);function ga(){var e=ha.current;return e===null?J.pooledCache:e}function _a(e,t){t===null?j(ha,ha.current):j(ha,t.pool)}function va(){var e=ga();return e===null?null:{parent:ia._currentValue,pool:e}}var ya=Error(i(460)),ba=Error(i(474)),xa=Error(i(542)),Sa={then:function(){}};function Ca(e){return e=e.status,e===`fulfilled`||e===`rejected`}function wa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(nn,nn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Oa(e),e;default:if(typeof t.status==`string`)t.then(nn,nn);else{if(e=J,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,Oa(e),e}throw Ea=t,ya}}function Ta(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ea=e,ya):e}}var Ea=null;function Da(){if(Ea===null)throw Error(i(459));var e=Ea;return Ea=null,e}function Oa(e){if(e===ya||e===xa)throw Error(i(483))}var ka=null,Aa=0;function ja(e){var t=Aa;return Aa+=1,ka===null&&(ka=[]),wa(ka,e,t)}function Ma(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Na(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 Pa(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=fi(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=hi(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===E&&Ta(i)===t.type)?(t=a(t,n.props),Ma(t,n),t.return=e,t):(t=L(n.type,n.key,n.props,null,e.mode,r),Ma(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=_i(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=mi(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=hi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=L(t.type,t.key,t.props,null,e.mode,n),Ma(n,t),n.return=e,n;case v:return t=_i(t,e.mode,n),t.return=e,t;case E:return t=Ta(t),f(e,t,n)}if(se(t)||D(t))return t=mi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,ja(t),n);if(t.$$typeof===C)return f(e,$i(e,t),n);Na(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 E:return n=Ta(n),p(e,t,n,r)}if(se(n)||D(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,ja(n),r);if(n.$$typeof===C)return p(e,t,$i(e,n),r);Na(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 E:return r=Ta(r),m(e,t,n,r,i)}if(se(r)||D(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,ja(r),i);if(r.$$typeof===C)return m(e,t,n,$i(t,r),i);Na(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),z&&Oi(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 z&&Oi(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)}),z&&Oi(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),z&&Oi(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 z&&Oi(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)}),z&&Oi(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===E&&Ta(l)===r.type){n(e,r.sibling),c=a(r,o.props),Ma(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=mi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=L(o.type,o.key,o.props,null,e.mode,c),Ma(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}else{n(e,r);break}else t(e,r);r=r.sibling}c=_i(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=Ta(o),b(e,r,o,c)}if(se(o))return h(e,r,o,c);if(D(o)){if(l=D(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,ja(o),c);if(o.$$typeof===C)return b(e,r,$i(e,o),c);Na(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=hi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Aa=0;var i=b(e,t,n,r);return ka=null,i}catch(t){if(t===ya||t===xa)throw t;var a=ui(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Fa=Pa(!0),Ia=Pa(!1),La=!1;function Ra(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function za(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 Ba(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Va(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=si(e),oi(e,null,n),t}return ri(e,r,t,n),si(e)}function Ha(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,it(e,n)}}function Ua(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 Wa=!1;function Ga(){if(Wa){var e=ua;if(e!==null)throw e}}function Ka(e,t,n,r){Wa=!1;var i=e.updateQueue;La=!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?(X&f)===f:(r&f)===f){f!==0&&f===la&&(Wa=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:La=!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),Wl|=o,e.lanes=o,e.memoizedState=d}}function qa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ja(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)qa(n[e],t)}var Ya=de(null),Xa=de(0);function Za(e,t){e=Hl,j(Xa,e),j(Ya,t),Hl=e|t.baseLanes}function Qa(){j(Xa,Hl),j(Ya,Ya.current)}function $a(){Hl=Xa.current,A(Ya),A(Xa)}var eo=de(null),to=null;function no(e){var t=e.alternate;j(so,so.current&1),j(eo,e),to===null&&(t===null||Ya.current!==null||t.memoizedState!==null)&&(to=e)}function ro(e){j(so,so.current),j(eo,e),to===null&&(to=e)}function io(e){e.tag===22?(j(so,so.current),j(eo,e),to===null&&(to=e)):ao(e)}function ao(){j(so,so.current),j(eo,eo.current)}function oo(e){A(eo),to===e&&(to=null),A(so)}var so=de(0);function co(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||af(n)||of(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var lo=0,U=null,W=null,uo=null,fo=!1,po=!1,mo=!1,ho=0,go=0,_o=null,vo=0;function yo(){throw Error(i(321))}function bo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Tr(e[n],t[n]))return!1;return!0}function xo(e,t,n,r,i,a){return lo=a,U=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Rs:zs,mo=!1,a=n(r,i),mo=!1,po&&(a=Co(t,n,r,i)),So(e),a}function So(e){O.H=Ls;var t=W!==null&&W.next!==null;if(lo=0,uo=W=U=null,fo=!1,go=0,_o=null,t)throw Error(i(300));e===null||nc||(e=e.dependencies,e!==null&&Xi(e)&&(nc=!0))}function Co(e,t,n,r){U=e;var a=0;do{if(po&&(_o=null),go=0,po=!1,25<=a)throw Error(i(301));if(a+=1,uo=W=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}O.H=Bs,o=t(n,r)}while(po);return o}function wo(){var e=O.H,t=e.useState()[0];return t=typeof t.then==`function`?jo(t):t,e=e.useState()[0],(W===null?null:W.memoizedState)!==e&&(U.flags|=1024),t}function To(){var e=ho!==0;return ho=0,e}function Eo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Do(e){if(fo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}fo=!1}lo=0,uo=W=U=null,po=!1,go=ho=0,_o=null}function Oo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return uo===null?U.memoizedState=uo=e:uo=uo.next=e,uo}function ko(){if(W===null){var e=U.alternate;e=e===null?null:e.memoizedState}else e=W.next;var t=uo===null?U.memoizedState:uo.next;if(t!==null)uo=t,W=e;else{if(e===null)throw U.alternate===null?Error(i(467)):Error(i(310));W=e,e={memoizedState:W.memoizedState,baseState:W.baseState,baseQueue:W.baseQueue,queue:W.queue,next:null},uo===null?U.memoizedState=uo=e:uo=uo.next=e}return uo}function Ao(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function jo(e){var t=go;return go+=1,_o===null&&(_o=[]),e=wa(_o,e,t),t=U,(uo===null?t.memoizedState:uo.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Rs:zs),e}function Mo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return jo(e);if(e.$$typeof===C)return Qi(e)}throw Error(i(438,String(e)))}function No(e){var t=null,n=U.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=U.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=Ao(),U.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]=re;return t.index++,n}function Po(e,t){return typeof t==`function`?t(e):t}function Fo(e){return Io(ko(),W,e)}function Io(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?(lo&f)===f:(X&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===la&&(d=!0);else if((lo&p)===p){u=u.next,p===la&&(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,U.lanes|=p,Wl|=p;f=u.action,mo&&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,U.lanes|=f,Wl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Tr(o,e.memoizedState)&&(nc=!0,d&&(n=ua,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 Lo(e){var t=ko(),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);Tr(o,t.memoizedState)||(nc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ro(e,t,n){var r=U,a=ko(),o=z;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Tr((W||a).memoizedState,n);if(s&&(a.memoizedState=n,nc=!0),a=a.queue,ls(Vo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||uo!==null&&uo.memoizedState.tag&1){if(r.flags|=2048,is(9,{destroy:void 0},Bo.bind(null,r,a,n,t),null),J===null)throw Error(i(349));o||lo&127||zo(r,t,n)}return n}function zo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=U.updateQueue,t===null?(t=Ao(),U.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Bo(e,t,n,r){t.value=n,t.getSnapshot=r,Ho(t)&&Uo(e)}function Vo(e,t,n){return n(function(){Ho(t)&&Uo(e)})}function Ho(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tr(e,n)}catch{return!0}}function Uo(e){var t=ai(e,2);t!==null&&mu(t,e,2)}function Wo(e){var t=Oo();if(typeof e==`function`){var n=e;if(e=n(),mo){Ue(!0);try{n()}finally{Ue(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:e},t}function Go(e,t,n,r){return e.baseState=n,Io(e,W,typeof r==`function`?r:Po)}function Ko(e,t,n,r,a){if(Ps(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)}};O.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,qo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function qo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=O.T,o={};O.T=o;try{var s=n(i,r),c=O.S;c!==null&&c(o,s),Jo(e,t,s)}catch(n){Xo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),O.T=a}}else try{a=n(i,r),Jo(e,t,a)}catch(n){Xo(e,t,n)}}function Jo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Yo(e,t,n)},function(n){return Xo(e,t,n)}):Yo(e,t,n)}function Yo(e,t,n){t.status=`fulfilled`,t.value=n,Zo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,qo(e,n)))}function Xo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Zo(t),t=t.next;while(t!==r)}e.action=null}function Zo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Qo(e,t){return t}function $o(e,t){if(z){var n=J.formState;if(n!==null){a:{var r=U;if(z){if(Pi){b:{for(var i=Pi,a=Ii;i.nodeType!==8;){if(!a){i=null;break b}if(i=cf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Pi=cf(i.nextSibling),r=i.data===`F!`;break a}}B(r)}r=!1}r&&(t=n[0])}}return n=Oo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qo,lastRenderedState:t},n.queue=r,n=js.bind(null,U,r),r.dispatch=n,r=Wo(!1),a=Ns.bind(null,U,!1,r.queue),r=Oo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ko.bind(null,U,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function es(e){return ts(ko(),W,e)}function ts(e,t,n){if(t=Io(e,t,Qo)[0],e=Fo(Po)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=jo(t)}catch(e){throw e===ya?xa:e}else r=t;t=ko();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(U.flags|=2048,is(9,{destroy:void 0},ns.bind(null,i,n),null)),[r,a,e]}function ns(e,t){e.action=t}function rs(e){var t=ko(),n=W;if(n!==null)return ts(t,n,e);ko(),t=t.memoizedState,n=ko();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function is(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=U.updateQueue,t===null&&(t=Ao(),U.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 as(){return ko().memoizedState}function os(e,t,n,r){var i=Oo();U.flags|=e,i.memoizedState=is(1|t,{destroy:void 0},n,r===void 0?null:r)}function ss(e,t,n,r){var i=ko();r=r===void 0?null:r;var a=i.memoizedState.inst;W!==null&&r!==null&&bo(r,W.memoizedState.deps)?i.memoizedState=is(t,a,n,r):(U.flags|=e,i.memoizedState=is(1|t,a,n,r))}function cs(e,t){os(8390656,8,e,t)}function ls(e,t){ss(2048,8,e,t)}function us(e){U.flags|=4;var t=U.updateQueue;if(t===null)t=Ao(),U.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ds(e){var t=ko().memoizedState;return us({ref:t,nextImpl:e}),function(){if(q&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function fs(e,t){return ss(4,2,e,t)}function ps(e,t){return ss(4,4,e,t)}function ms(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 hs(e,t,n){n=n==null?null:n.concat([e]),ss(4,4,ms.bind(null,t,e),n)}function gs(){}function _s(e,t){var n=ko();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&bo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function vs(e,t){var n=ko();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&bo(t,r[1]))return r[0];if(r=e(),mo){Ue(!0);try{e()}finally{Ue(!1)}}return n.memoizedState=[r,t],r}function ys(e,t,n){return n===void 0||lo&1073741824&&!(X&261930)?e.memoizedState=t:(e.memoizedState=n,e=pu(),U.lanes|=e,Wl|=e,n)}function bs(e,t,n,r){return Tr(n,t)?n:Ya.current===null?!(lo&42)||lo&1073741824&&!(X&261930)?(nc=!0,e.memoizedState=n):(e=pu(),U.lanes|=e,Wl|=e,t):(e=ys(e,n,r),Tr(e,t)||(nc=!0),e)}function xs(e,t,n,r,i){var a=k.p;k.p=a!==0&&8>a?a:8;var o=O.T,s={};O.T=s,Ns(e,!1,t,n);try{var c=i(),l=O.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ms(e,t,pa(c,r),fu(e)):Ms(e,t,r,fu(e))}catch(n){Ms(e,t,{then:function(){},status:`rejected`,reason:n},fu())}finally{k.p=a,o!==null&&s.types!==null&&(o.types=s.types),O.T=o}}function Ss(){}function Cs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ws(e).queue;xs(e,a,t,ce,n===null?Ss:function(){return Ts(e),n(r)})}function ws(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:ce},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ts(e){var t=ws(e);t.next===null&&(t=e.alternate.memoizedState),Ms(e,t.next.queue,{},fu())}function Es(){return Qi(Qf)}function Ds(){return ko().memoizedState}function Os(){return ko().memoizedState}function ks(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=fu();e=Ba(n);var r=Va(t,e,n);r!==null&&(mu(r,t,n),Ha(r,t,n)),t={cache:aa()},e.payload=t;return}t=t.return}}function As(e,t,n){var r=fu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ps(e)?Fs(t,n):(n=ii(e,t,n,r),n!==null&&(mu(n,e,r),Is(n,t,r)))}function js(e,t,n){Ms(e,t,n,fu())}function Ms(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ps(e))Fs(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,Tr(s,o))return ri(e,t,i,0),J===null&&I(),!1}catch{}if(n=ii(e,t,i,r),n!==null)return mu(n,e,r),Is(n,t,r),!0}return!1}function Ns(e,t,n,r){if(r={lane:2,revertLane:ud(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ps(e)){if(t)throw Error(i(479))}else t=ii(e,n,r,2),t!==null&&mu(t,e,2)}function Ps(e){var t=e.alternate;return e===U||t!==null&&t===U}function Fs(e,t){po=fo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Is(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,it(e,n)}}var Ls={readContext:Qi,use:Mo,useCallback:yo,useContext:yo,useEffect:yo,useImperativeHandle:yo,useLayoutEffect:yo,useInsertionEffect:yo,useMemo:yo,useReducer:yo,useRef:yo,useState:yo,useDebugValue:yo,useDeferredValue:yo,useTransition:yo,useSyncExternalStore:yo,useId:yo,useHostTransitionStatus:yo,useFormState:yo,useActionState:yo,useOptimistic:yo,useMemoCache:yo,useCacheRefresh:yo};Ls.useEffectEvent=yo;var Rs={readContext:Qi,use:Mo,useCallback:function(e,t){return Oo().memoizedState=[e,t===void 0?null:t],e},useContext:Qi,useEffect:cs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),os(4194308,4,ms.bind(null,t,e),n)},useLayoutEffect:function(e,t){return os(4194308,4,e,t)},useInsertionEffect:function(e,t){os(4,2,e,t)},useMemo:function(e,t){var n=Oo();t=t===void 0?null:t;var r=e();if(mo){Ue(!0);try{e()}finally{Ue(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Oo();if(n!==void 0){var i=n(t);if(mo){Ue(!0);try{n(t)}finally{Ue(!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=As.bind(null,U,e),[r.memoizedState,e]},useRef:function(e){var t=Oo();return e={current:e},t.memoizedState=e},useState:function(e){e=Wo(e);var t=e.queue,n=js.bind(null,U,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:gs,useDeferredValue:function(e,t){return ys(Oo(),e,t)},useTransition:function(){var e=Wo(!1);return e=xs.bind(null,U,e.queue,!0,!1),Oo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=U,a=Oo();if(z){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),J===null)throw Error(i(349));X&127||zo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,cs(Vo.bind(null,r,o,e),[e]),r.flags|=2048,is(9,{destroy:void 0},Bo.bind(null,r,o,n,t),null),n},useId:function(){var e=Oo(),t=J.identifierPrefix;if(z){var n=Di,r=Ei;n=(r&~(1<<32-We(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=ho++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=vo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Es,useFormState:$o,useActionState:$o,useOptimistic:function(e){var t=Oo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ns.bind(null,U,!0,n),n.dispatch=t,[e,t]},useMemoCache:No,useCacheRefresh:function(){return Oo().memoizedState=ks.bind(null,U)},useEffectEvent:function(e){var t=Oo(),n={impl:e};return t.memoizedState=n,function(){if(q&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},zs={readContext:Qi,use:Mo,useCallback:_s,useContext:Qi,useEffect:ls,useImperativeHandle:hs,useInsertionEffect:fs,useLayoutEffect:ps,useMemo:vs,useReducer:Fo,useRef:as,useState:function(){return Fo(Po)},useDebugValue:gs,useDeferredValue:function(e,t){return bs(ko(),W.memoizedState,e,t)},useTransition:function(){var e=Fo(Po)[0],t=ko().memoizedState;return[typeof e==`boolean`?e:jo(e),t]},useSyncExternalStore:Ro,useId:Ds,useHostTransitionStatus:Es,useFormState:es,useActionState:es,useOptimistic:function(e,t){return Go(ko(),W,e,t)},useMemoCache:No,useCacheRefresh:Os};zs.useEffectEvent=ds;var Bs={readContext:Qi,use:Mo,useCallback:_s,useContext:Qi,useEffect:ls,useImperativeHandle:hs,useInsertionEffect:fs,useLayoutEffect:ps,useMemo:vs,useReducer:Lo,useRef:as,useState:function(){return Lo(Po)},useDebugValue:gs,useDeferredValue:function(e,t){var n=ko();return W===null?ys(n,e,t):bs(n,W.memoizedState,e,t)},useTransition:function(){var e=Lo(Po)[0],t=ko().memoizedState;return[typeof e==`boolean`?e:jo(e),t]},useSyncExternalStore:Ro,useId:Ds,useHostTransitionStatus:Es,useFormState:rs,useActionState:rs,useOptimistic:function(e,t){var n=ko();return W===null?(n.baseState=e,[e,n.queue.dispatch]):Go(n,W,e,t)},useMemoCache:No,useCacheRefresh:Os};Bs.useEffectEvent=ds;function Vs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:h({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Hs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fu(),i=Ba(r);i.payload=t,n!=null&&(i.callback=n),t=Va(e,i,r),t!==null&&(mu(t,e,r),Ha(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fu(),i=Ba(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Va(e,i,r),t!==null&&(mu(t,e,r),Ha(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fu(),r=Ba(n);r.tag=2,t!=null&&(r.callback=t),t=Va(e,r,n),t!==null&&(mu(t,e,n),Ha(t,e,n))}};function Us(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?!Er(n,r)||!Er(i,a):!0}function Ws(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&&Hs.enqueueReplaceState(t,t.state,null)}function Gs(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=h({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Ks(e){$r(e)}function qs(e){console.error(e)}function Js(e){$r(e)}function Ys(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Xs(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 Zs(e,t,n){return n=Ba(n),n.tag=3,n.payload={element:null},n.callback=function(){Ys(e,t)},n}function Qs(e){return e=Ba(e),e.tag=3,e}function $s(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(){Xs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Xs(t,n,r),typeof i!=`function`&&(nu===null?nu=new Set([this]):nu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function ec(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Yi(t,n,a,!0),n=eo.current,n!==null){switch(n.tag){case 31:case 13:return to===null?Eu():n.alternate===null&&Ul===0&&(Ul=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Sa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Wu(e,r,a)),!1;case 22:return n.flags|=65536,r===Sa?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Wu(e,r,a)),!1}throw Error(i(435,n.tag))}return Wu(e,r,a),Eu(),!1}if(z)return t=eo.current,t===null?(r!==Li&&(t=Error(i(423),{cause:r}),Vi(yi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=yi(r,n),a=Zs(e.stateNode,r,a),Ua(e,a),Ul!==4&&(Ul=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Li&&(e=Error(i(422),{cause:r}),Vi(yi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=yi(o,n),Yl===null?Yl=[o]:Yl.push(o),Ul!==4&&(Ul=2),t===null)return!0;r=yi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Zs(n.stateNode,r,e),Ua(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`&&(nu===null||!nu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Qs(a),$s(a,e,n,r),Ua(n,a),!1}n=n.return}while(n!==null);return!1}var tc=Error(i(461)),nc=!1;function rc(e,t,n,r){t.child=e===null?Ia(t,null,n,r):Fa(t,e.child,n,r)}function ic(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Zi(t),r=xo(e,t,n,o,a,i),s=To(),e!==null&&!nc?(Eo(e,t,i),Oc(e,t,i)):(z&&s&&Ai(t),t.flags|=1,rc(e,t,r,i),t.child)}function ac(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!di(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,oc(e,t,a,r,i)):(e=L(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!kc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Er:n,n(o,r)&&e.ref===t.ref)return Oc(e,t,i)}return t.flags|=1,e=fi(a,r),e.ref=t.ref,e.return=t,t.child=e}function oc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Er(a,r)&&e.ref===t.ref)if(nc=!1,t.pendingProps=r=a,kc(e,i))e.flags&131072&&(nc=!0);else return t.lanes=e.lanes,Oc(e,t,i)}return mc(e,t,n,r,i)}function sc(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 lc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&_a(t,a===null?null:a.cachePool),a===null?Qa():Za(t,a),io(t);else return r=t.lanes=536870912,lc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&_a(t,null),Qa(),ao(t)):(_a(t,a.cachePool),Za(t,a),ao(t),t.memoizedState=null);return rc(e,t,i,n),t.child}function cc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function lc(e,t,n,r,i){var a=ga();return a=a===null?null:{parent:ia._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&_a(t,null),Qa(),io(t),e!==null&&Yi(e,t,r,!0),t.childLanes=i,null}function uc(e,t){return t=Cc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function dc(e,t,n){return Fa(t,e.child,null,n),e=uc(t,t.pendingProps),e.flags|=2,oo(t),t.memoizedState=null,e}function fc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(z){if(r.mode===`hidden`)return e=uc(t,r),t.lanes=536870912,cc(null,e);if(ro(t),(e=Pi)?(e=rf(e,Ii),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ti===null?null:{id:Ei,overflow:Di},retryLane:536870912,hydrationErrors:null},n=gi(e),n.return=t,t.child=n,Ni=t,Pi=null)):e=null,e===null)throw B(t);return t.lanes=536870912,null}return uc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(ro(t),a)if(t.flags&256)t.flags&=-257,t=dc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(nc||Yi(e,t,n,!1),a=(n&e.childLanes)!==0,nc||a){if(r=J,r!==null&&(s=at(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ai(e,s),mu(r,e,s),tc;Eu(),t=dc(e,t,n)}else e=o.treeContext,Pi=cf(s.nextSibling),Ni=t,z=!0,Fi=null,Ii=!1,e!==null&&Mi(t,e),t=uc(t,r),t.flags|=4096;return t}return e=fi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function pc(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 mc(e,t,n,r,i){return Zi(t),n=xo(e,t,n,r,void 0,i),r=To(),e!==null&&!nc?(Eo(e,t,i),Oc(e,t,i)):(z&&r&&Ai(t),t.flags|=1,rc(e,t,n,i),t.child)}function hc(e,t,n,r,i,a){return Zi(t),t.updateQueue=null,n=Co(t,r,n,i),So(e),r=To(),e!==null&&!nc?(Eo(e,t,a),Oc(e,t,a)):(z&&r&&Ai(t),t.flags|=1,rc(e,t,n,a),t.child)}function gc(e,t,n,r,i){if(Zi(t),t.stateNode===null){var a=ci,o=n.contextType;typeof o==`object`&&o&&(a=Qi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Hs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ra(t),o=n.contextType,a.context=typeof o==`object`&&o?Qi(o):ci,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Vs(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&&Hs.enqueueReplaceState(a,a.state,null),Ka(t,r,a,i),Ga(),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=Gs(n,s);a.props=c;var l=a.context,u=n.contextType;o=ci,typeof u==`object`&&u&&(o=Qi(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Ws(t,a,r,o),La=!1;var f=t.memoizedState;a.state=f,Ka(t,r,a,i),Ga(),l=t.memoizedState,s||f!==l||La?(typeof d==`function`&&(Vs(t,n,d,r),l=t.memoizedState),(c=La||Us(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,za(e,t),o=t.memoizedProps,u=Gs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ci,typeof l==`object`&&l&&(c=Qi(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Ws(t,a,r,c),La=!1,f=t.memoizedState,a.state=f,Ka(t,r,a,i),Ga();var p=t.memoizedState;o!==d||f!==p||La||e!==null&&e.dependencies!==null&&Xi(e.dependencies)?(typeof s==`function`&&(Vs(t,n,s,r),p=t.memoizedState),(u=La||Us(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Xi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,pc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Fa(t,e.child,null,i),t.child=Fa(t,null,n,i)):rc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Oc(e,t,i),e}function _c(e,t,n,r){return zi(),t.flags|=256,rc(e,t,n,r),t.child}var vc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function yc(e){return{baseLanes:e,cachePool:va()}}function bc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=ql),e}function xc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(so.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(z){if(a?no(t):ao(t),(e=Pi)?(e=rf(e,Ii),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ti===null?null:{id:Ei,overflow:Di},retryLane:536870912,hydrationErrors:null},n=gi(e),n.return=t,t.child=n,Ni=t,Pi=null)):e=null,e===null)throw B(t);return of(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(ao(t),a=t.mode,c=Cc({mode:`hidden`,children:c},a),r=mi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=yc(n),r.childLanes=bc(e,s,n),t.memoizedState=vc,cc(null,r)):(no(t),Sc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(no(t),t.flags&=-257,t=wc(e,t,n)):t.memoizedState===null?(ao(t),c=r.fallback,a=t.mode,r=Cc({mode:`visible`,children:r.children},a),c=mi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Fa(t,e.child,null,n),r=t.child,r.memoizedState=yc(n),r.childLanes=bc(e,s,n),t.memoizedState=vc,t=cc(null,r)):(ao(t),t.child=e.child,t.flags|=128,t=null);else if(no(t),of(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Vi({value:r,source:null,stack:null}),t=wc(e,t,n)}else if(nc||Yi(e,t,n,!1),s=(n&e.childLanes)!==0,nc||s){if(s=J,s!==null&&(r=at(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ai(e,r),mu(s,e,r),tc;af(c)||Eu(),t=wc(e,t,n)}else af(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Pi=cf(c.nextSibling),Ni=t,z=!0,Fi=null,Ii=!1,e!==null&&Mi(t,e),t=Sc(t,r.children),t.flags|=4096);return t}return a?(ao(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=fi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=mi(c,a,n,null),c.flags|=2):c=fi(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,cc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=yc(n):(a=c.cachePool,a===null?a=va():(l=ia._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=bc(e,s,n),t.memoizedState=vc,cc(e.child,r)):(no(t),n=e.child,e=n.sibling,n=fi(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 Sc(e,t){return t=Cc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Cc(e,t){return e=ui(22,e,null,t),e.lanes=0,e}function wc(e,t,n){return Fa(t,e.child,null,n),e=Sc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Tc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),qi(e.return,t,n)}function Ec(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 Dc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=so.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,j(so,o),rc(e,t,r,n),r=z?Si:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Tc(e,n,t);else if(e.tag===19)Tc(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&&co(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ec(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&&co(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ec(t,!0,n,null,a,r);break;case`together`:Ec(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Oc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Yi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=fi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=fi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function kc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Xi(e))):!0}function Ac(e,t,n){switch(t.tag){case 3:ge(t,t.stateNode.containerInfo),Gi(t,ia,e.memoizedState.cache),zi();break;case 27:case 5:ve(t);break;case 4:ge(t,t.stateNode.containerInfo);break;case 10:Gi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ro(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(no(t),e=Oc(e,t,n),e===null?null:e.sibling):xc(e,t,n):(no(t),t.flags|=128,null);no(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Yi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Dc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),j(so,so.current),r)break;return null;case 22:return t.lanes=0,sc(e,t,n,t.pendingProps);case 24:Gi(t,ia,e.memoizedState.cache)}return Oc(e,t,n)}function jc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)nc=!0;else{if(!kc(e,n)&&!(t.flags&128))return nc=!1,Ac(e,t,n);nc=!!(e.flags&131072)}else nc=!1,z&&t.flags&1048576&&ki(t,Si,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ta(t.elementType),t.type=e,typeof e==`function`)di(e)?(r=Gs(e,r),t.tag=1,t=gc(null,t,e,r,n)):(t.tag=0,t=mc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=ic(null,t,e,r,n);break a}else if(a===te){t.tag=14,t=ac(null,t,e,r,n);break a}}throw t=oe(e)||e,Error(i(306,t,``))}}return t;case 0:return mc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Gs(r,t.pendingProps),gc(e,t,r,a,n);case 3:a:{if(ge(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,za(e,t),Ka(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Gi(t,ia,r),r!==o.cache&&Ji(t,[ia],n,!0),Ga(),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=_c(e,t,r,n);break a}else if(r!==a){a=yi(Error(i(424)),t),Vi(a),t=_c(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Pi=cf(e.firstChild),Ni=t,z=!0,Fi=null,Ii=!0,n=Ia(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(zi(),r===a){t=Oc(e,t,n);break a}rc(e,t,r,n)}t=t.child}return t;case 26:return pc(e,t),e===null?(n=kf(t.type,null,t.pendingProps,null))?t.memoizedState=n:z||(n=t.type,e=t.pendingProps,r=Bd(me.current).createElement(n),r[dt]=t,r[P]=e,Pd(r,n,e),St(r),t.stateNode=r):t.memoizedState=kf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ve(t),e===null&&z&&(r=t.stateNode=ff(t.type,t.pendingProps,me.current),Ni=t,Ii=!0,a=Pi,Zd(t.type)?(lf=a,Pi=cf(r.firstChild)):Pi=a),rc(e,t,t.pendingProps.children,n),pc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&z&&((a=r=Pi)&&(r=tf(r,t.type,t.pendingProps,Ii),r===null?a=!1:(t.stateNode=r,Ni=t,Pi=cf(r.firstChild),Ii=!1,a=!0)),a||B(t)),ve(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Ud(a,o)?r=null:s!==null&&Ud(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=xo(e,t,wo,null,null,n),Qf._currentValue=a),pc(e,t),rc(e,t,r,n),t.child;case 6:return e===null&&z&&((e=n=Pi)&&(n=nf(n,t.pendingProps,Ii),n===null?e=!1:(t.stateNode=n,Ni=t,Pi=null,e=!0)),e||B(t)),null;case 13:return xc(e,t,n);case 4:return ge(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fa(t,null,r,n):rc(e,t,r,n),t.child;case 11:return ic(e,t,t.type,t.pendingProps,n);case 7:return rc(e,t,t.pendingProps,n),t.child;case 8:return rc(e,t,t.pendingProps.children,n),t.child;case 12:return rc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Gi(t,t.type,r.value),rc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Zi(t),a=Qi(a),r=r(a),t.flags|=1,rc(e,t,r,n),t.child;case 14:return ac(e,t,t.type,t.pendingProps,n);case 15:return oc(e,t,t.type,t.pendingProps,n);case 19:return Dc(e,t,n);case 31:return fc(e,t,n);case 22:return sc(e,t,n,t.pendingProps);case 24:return Zi(t),r=Qi(ia),e===null?(a=ga(),a===null&&(a=J,o=aa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ra(t),Gi(t,ia,a)):((e.lanes&n)!==0&&(za(e,t),Ka(t,null,null,n),Ga()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Gi(t,ia,r),r!==a.cache&&Ji(t,[ia],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Gi(t,ia,r))),rc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Mc(e){e.flags|=4}function Nc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Cu())e.flags|=8192;else throw Ea=Sa,ba}else e.flags&=-16777217}function Pc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Wf(t))if(Cu())e.flags|=8192;else throw Ea=Sa,ba}function Fc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:$e(),e.lanes|=t,Jl|=t)}function Ic(e,t){if(!z)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 Lc(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 Rc(e,t,n){var r=t.pendingProps;switch(ji(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lc(t),null;case 1:return Lc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ki(ia),_e(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(H(t)?Mc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Bi())),Lc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Mc(t),o===null?(Lc(t),Nc(t,a,null,r,n)):(Lc(t),Pc(t,o))):o?o===e.memoizedState?(Lc(t),t.flags&=-16777217):(Mc(t),Lc(t),Pc(t,o)):(e=e.memoizedProps,e!==r&&Mc(t),Lc(t),Nc(t,a,e,r,n)),null;case 27:if(ye(t),n=me.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Mc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Lc(t),null}e=fe.current,H(t)?Ri(t,e):(e=ff(a,r,n),t.stateNode=e,Mc(t))}return Lc(t),null;case 5:if(ye(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Mc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Lc(t),null}if(o=fe.current,H(t))Ri(t,o);else{var s=Bd(me.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[dt]=t,o[P]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Pd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Mc(t)}}return Lc(t),Nc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Mc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=me.current,H(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ni,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[dt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||jd(e.nodeValue,n)),e||B(t,!0)}else e=Bd(e).createTextNode(r),e[dt]=t,t.stateNode=e}return Lc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=H(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[dt]=t}else zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Lc(t),e=!1}else n=Bi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(oo(t),t):(oo(t),null);if(t.flags&128)throw Error(i(558))}return Lc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=H(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[dt]=t}else zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Lc(t),a=!1}else a=Bi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(oo(t),t):(oo(t),null)}return oo(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),Fc(t,t.updateQueue),Lc(t),null);case 4:return _e(),e===null&&xd(t.stateNode.containerInfo),Lc(t),null;case 10:return Ki(t.type),Lc(t),null;case 19:if(A(so),r=t.memoizedState,r===null)return Lc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Ic(r,!1);else{if(Ul!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=co(e),o!==null){for(t.flags|=128,Ic(r,!1),e=o.updateQueue,t.updateQueue=e,Fc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)pi(n,e),n=n.sibling;return j(so,so.current&1|2),z&&Oi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Me()>eu&&(t.flags|=128,a=!0,Ic(r,!1),t.lanes=4194304)}else{if(!a)if(e=co(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Fc(t,e),Ic(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!z)return Lc(t),null}else 2*Me()-r.renderingStartTime>eu&&n!==536870912&&(t.flags|=128,a=!0,Ic(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?(Lc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Me(),e.sibling=null,n=so.current,j(so,a?n&1|2:n&1),z&&Oi(t,r.treeForkCount),e);case 22:case 23:return oo(t),$a(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Lc(t),t.subtreeFlags&6&&(t.flags|=8192)):Lc(t),n=t.updateQueue,n!==null&&Fc(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&&A(ha),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ki(ia),Lc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function zc(e,t){switch(ji(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ki(ia),_e(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ye(t),null;case 31:if(t.memoizedState!==null){if(oo(t),t.alternate===null)throw Error(i(340));zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(oo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return A(so),null;case 4:return _e(),null;case 10:return Ki(t.type),null;case 22:case 23:return oo(t),$a(),e!==null&&A(ha),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ki(ia),null;case 25:return null;default:return null}}function Bc(e,t){switch(ji(t),t.tag){case 3:Ki(ia),_e();break;case 26:case 27:case 5:ye(t);break;case 4:_e();break;case 31:t.memoizedState!==null&&oo(t);break;case 13:oo(t);break;case 19:A(so);break;case 10:Ki(t.type);break;case 22:case 23:oo(t),$a(),e!==null&&A(ha);break;case 24:Ki(ia)}}function Vc(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){Q(t,t.return,e)}}function Hc(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){Q(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Q(t,t.return,e)}}function Uc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ja(t,n)}catch(t){Q(e,e.return,t)}}}function Wc(e,t,n){n.props=Gs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Q(e,t,n)}}function Gc(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){Q(e,t,n)}}function Kc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Q(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){Q(e,t,n)}else n.current=null}function G(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){Q(e,e.return,t)}}function qc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[P]=t}catch(t){Q(e,e.return,t)}}function Jc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(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&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function 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=nn));else if(r!==4&&(r===27&&Zd(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&&Zd(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]);Pd(t,r,n),t[dt]=e,t[P]=n}catch(t){Q(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,Rd=sp,e=Ar(e),jr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,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=Gs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Q(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ef(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:ef(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,rl=e;break}rl=t.return}}function al(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:yl(e,n),r&4&&Vc(5,n);break;case 1:if(yl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Q(n,n.return,e)}else{var i=Gs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Q(n,n.return,e)}}r&64&&Uc(n),r&512&&Gc(n,n.return);break;case 3:if(yl(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{Ja(e,t)}catch(e){Q(n,n.return,e)}}break;case 27:t===null&&r&4&&Qc(n);case 26:case 5:yl(e,n),t===null&&r&4&&G(n),r&512&&Gc(n,n.return);break;case 12:yl(e,n);break;case 31:yl(e,n),r&4&&ul(e,n);break;case 13:yl(e,n),r&4&&dl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=qu.bind(null,n),sf(e,n))));break;case 22:if(r=n.memoizedState!==null||$c,!r){t=t!==null&&t.memoizedState!==null||el,i=$c;var a=el;$c=r,(el=t)&&!a?xl(e,n,(n.subtreeFlags&8772)!=0):yl(e,n),$c=i,el=a}break;case 30:break;default:yl(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&&vt(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;)K(e,t,n),n=n.sibling}function K(e,t,n){if(He&&typeof He.onCommitFiberUnmount==`function`)try{He.onCommitFiberUnmount(Ve,n)}catch{}switch(n.tag){case 26:el||Kc(n,t),ll(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:el||Kc(n,t);var r=sl,i=cl;Zd(n.type)&&(sl=n.stateNode,cl=!1),ll(e,t,n),pf(n.stateNode),sl=r,cl=i;break;case 5:el||Kc(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){Q(n,t,e)}else try{sl.removeChild(n.stateNode)}catch(e){Q(n,t,e)}break;case 18:sl!==null&&(cl?(e=sl,Qd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Np(e)):Qd(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:Hc(2,n,t),el||Hc(4,n,t),ll(e,t,n);break;case 1:el||(Kc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Wc(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 ul(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Np(e)}catch(e){Q(t,t.return,e)}}}function dl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Np(e)}catch(e){Q(t,t.return,e)}}function fl(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 pl(e,t){var n=fl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Ju.bind(null,e,t);t.then(r,r)}})}function ml(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Zd(c.type)){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));K(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;)gl(t,e),t=t.sibling}var hl=null;function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ml(t,e),_l(e),r&4&&(Hc(3,e,e.return),Vc(3,e),Hc(5,e,e.return));break;case 1:ml(t,e),_l(e),r&512&&(el||n===null||Kc(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=hl;if(ml(t,e),_l(e),r&512&&(el||n===null||Kc(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[_t]||o[dt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Pd(o,r,n),o[dt]=e,St(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Vf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[dt]=e,St(o),r=o}e.stateNode=r}else Hf(a,e.type,e.stateNode);else e.stateNode=If(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&qc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Hf(a,e.type,e.stateNode):If(a,r,e.memoizedProps))}break;case 27:ml(t,e),_l(e),r&512&&(el||n===null||Kc(n,n.return)),n!==null&&r&4&&qc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ml(t,e),_l(e),r&512&&(el||n===null||Kc(n,n.return)),e.flags&32){a=e.stateNode;try{Jt(a,``)}catch(t){Q(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(ml(t,e),_l(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Q(e,e.return,t)}}break;case 3:if(Bf=null,a=hl,hl=gf(t.containerInfo),ml(t,e),hl=a,_l(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Np(t.containerInfo)}catch(t){Q(e,e.return,t)}tl&&(tl=!1,vl(e));break;case 4:r=hl,hl=gf(e.stateNode.containerInfo),ml(t,e),_l(e),hl=r;break;case 12:ml(t,e),_l(e);break;case 31:ml(t,e),_l(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,pl(e,r)));break;case 13:ml(t,e),_l(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ql=Me()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,pl(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,ml(t,e),el=d,$c=u,_l(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||$c||el||bl(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){Q(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Q(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?$d(m,!0):$d(l.stateNode,!1)}catch(e){Q(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,pl(e,n))));break;case 19:ml(t,e),_l(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,pl(e,r)));break;case 30:break;case 21:break;default:ml(t,e),_l(e)}}function _l(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&&(Jt(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){Q(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;vl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function yl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)al(e,t.alternate,t),t=t.sibling}function bl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Hc(4,t,t.return),bl(t);break;case 1:Kc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Wc(t,t.return,n),bl(t);break;case 27:pf(t.stateNode);case 26:case 5:Kc(t,t.return),bl(t);break;case 22:t.memoizedState===null&&bl(t);break;case 30:bl(t);break;default:bl(t)}e=e.sibling}}function xl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,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:xl(i,a,n),Vc(4,a);break;case 1:if(xl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Q(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++)qa(c[i],s)}catch(e){Q(r,r.return,e)}}n&&o&64&&Uc(a),Gc(a,a.return);break;case 27:Qc(a);case 26:case 5:xl(i,a,n),n&&r===null&&o&4&&G(a),Gc(a,a.return);break;case 12:xl(i,a,n);break;case 31:xl(i,a,n),n&&o&4&&ul(i,a);break;case 13:xl(i,a,n),n&&o&4&&dl(i,a);break;case 22:a.memoizedState===null&&xl(i,a,n),Gc(a,a.return);break;case 30:break;default:xl(i,a,n)}t=t.sibling}}function Sl(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&&oa(n))}function Cl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&oa(e))}function wl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Tl(e,t,n,r),t=t.sibling}function Tl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:wl(e,t,n,r),i&2048&&Vc(9,t);break;case 1:wl(e,t,n,r);break;case 3:wl(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&&oa(e)));break;case 12:if(i&2048){wl(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){Q(t,t.return,e)}}else wl(e,t,n,r);break;case 31:wl(e,t,n,r);break;case 13:wl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?wl(e,t,n,r):(a._visibility|=2,El(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?wl(e,t,n,r):Dl(e,t),i&2048&&Sl(o,t);break;case 24:wl(e,t,n,r),i&2048&&Cl(t.alternate,t);break;default:wl(e,t,n,r)}}function El(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!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:El(a,o,s,c,i),Vc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,El(a,o,s,c,i)):u._visibility&2?El(a,o,s,c,i):Dl(a,o),i&&l&2048&&Sl(o.alternate,o);break;case 24:El(a,o,s,c,i),i&&l&2048&&Cl(o.alternate,o);break;default:El(a,o,s,c,i)}t=t.sibling}}function Dl(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:Dl(n,r),i&2048&&Sl(r.alternate,r);break;case 24:Dl(n,r),i&2048&&Cl(r.alternate,r);break;default:Dl(n,r)}t=t.sibling}}var Ol=8192;function kl(e,t,n){if(e.subtreeFlags&Ol)for(e=e.child;e!==null;)Al(e,t,n),e=e.sibling}function Al(e,t,n){switch(e.tag){case 26:kl(e,t,n),e.flags&Ol&&e.memoizedState!==null&&Gf(n,hl,e.memoizedState,e.memoizedProps);break;case 5:kl(e,t,n);break;case 3:case 4:var r=hl;hl=gf(e.stateNode.containerInfo),kl(e,t,n),hl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ol,Ol=16777216,kl(e,t,n),Ol=r):kl(e,t,n));break;default:kl(e,t,n)}}function jl(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 Ml(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,Fl(r,e)}jl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Nl(e),e=e.sibling}function Nl(e){switch(e.tag){case 0:case 11:case 15:Ml(e),e.flags&2048&&Hc(9,e,e.return);break;case 3:Ml(e);break;case 12:Ml(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Pl(e)):Ml(e);break;default:Ml(e)}}function Pl(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,Fl(r,e)}jl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Hc(8,t,t.return),Pl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Pl(t));break;default:Pl(t)}e=e.sibling}}function Fl(e,t){for(;rl!==null;){var n=rl;switch(n.tag){case 0:case 11:case 15:Hc(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:oa(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 Il={getCacheForType:function(e){var t=Qi(ia),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Qi(ia).controller.signal}},Ll=typeof WeakMap==`function`?WeakMap:Map,q=0,J=null,Y=null,X=0,Z=0,Rl=null,zl=!1,Bl=!1,Vl=!1,Hl=0,Ul=0,Wl=0,Gl=0,Kl=0,ql=0,Jl=0,Yl=null,Xl=null,Zl=!1,Ql=0,$l=0,eu=1/0,tu=null,nu=null,ru=0,iu=null,au=null,ou=0,su=0,cu=null,lu=null,uu=0,du=null;function fu(){return q&2&&X!==0?X&-X:O.T===null?ct():ud()}function pu(){if(ql===0)if(!(X&536870912)||z){var e=Ye;Ye<<=1,!(Ye&3932160)&&(Ye=262144),ql=e}else ql=536870912;return e=eo.current,e!==null&&(e.flags|=32),ql}function mu(e,t,n){(e===J&&(Z===2||Z===9)||e.cancelPendingCommit!==null)&&(xu(e,0),vu(e,X,ql,!1)),tt(e,n),(!(q&2)||e!==J)&&(e===J&&(!(q&2)&&(Gl|=n),Ul===4&&vu(e,X,ql,!1)),nd(e))}function hu(e,t,n){if(q&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Ze(e,t),a=r?ku(e,t):Du(e,t,!0),o=r;do{if(a===0){Bl&&!r&&vu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!_u(n)){a=Du(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=Yl;var l=c.current.memoizedState.isDehydrated;if(l&&(xu(c,s).flags|=256),s=Du(c,s,!1),s!==2){if(Vl&&!l){c.errorRecoveryDisabledLanes|=o,Gl|=o,a=4;break a}o=Xl,Xl=a,o!==null&&(Xl===null?Xl=o:Xl.push.apply(Xl,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){xu(e,0),vu(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:vu(r,t,ql,!zl);break a;case 2:Xl=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=Ql+300-Me(),10<a)){if(vu(r,t,ql,!zl),Xe(r,0,!0)!==0)break a;ou=t,r.timeoutHandle=Kd(gu.bind(null,r,n,Xl,tu,Zl,t,ql,Gl,Jl,zl,o,`Throttled`,-0,0),a);break a}gu(r,n,Xl,tu,Zl,t,ql,Gl,Jl,zl,o,null,-0,0)}}break}while(1);nd(e)}function gu(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:nn},Al(t,a,d);var m=(a&62914560)===a?Ql-Me():(a&4194048)===a?$l-Me():0;if(m=qf(d,m),m!==null){ou=a,e.cancelPendingCommit=m(Iu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),vu(e,a,o,!l);return}}Iu(e,t,a,n,r,i,o,s,c)}function _u(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(!Tr(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 vu(e,t,n,r){t&=~Kl,t&=~Gl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-We(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&rt(e,n,t)}function yu(){return q&6?!0:(rd(0,!1),!1)}function bu(){if(Y!==null){if(Z===0)var e=Y.return;else e=Y,Wi=Ui=null,Do(e),ka=null,Aa=0,e=Y;for(;e!==null;)Bc(e.alternate,e),e=e.return;Y=null}}function xu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,qd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ou=0,bu(),J=e,Y=n=fi(e.current,null),X=t,Z=0,Rl=null,zl=!1,Bl=Ze(e,t),Vl=!1,Jl=ql=Kl=Gl=Wl=Ul=0,Xl=Yl=null,Zl=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-We(r),a=1<<i;t|=e[i],r&=~a}return Hl=t,I(),n}function Su(e,t){U=null,O.H=Ls,t===ya||t===xa?(t=Da(),Z=3):t===ba?(t=Da(),Z=4):Z=t===tc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Rl=t,Y===null&&(Ul=1,Ys(e,yi(t,e.current)))}function Cu(){var e=eo.current;return e===null?!0:(X&4194048)===X?to===null:(X&62914560)===X||X&536870912?e===to:!1}function wu(){var e=O.H;return O.H=Ls,e===null?Ls:e}function Tu(){var e=O.A;return O.A=Il,e}function Eu(){Ul=4,zl||(X&4194048)!==X&&eo.current!==null||(Bl=!0),!(Wl&134217727)&&!(Gl&134217727)||J===null||vu(J,X,ql,!1)}function Du(e,t,n){var r=q;q|=2;var i=wu(),a=Tu();(J!==e||X!==t)&&(tu=null,xu(e,t)),t=!1;var o=Ul;a:do try{if(Z!==0&&Y!==null){var s=Y,c=Rl;switch(Z){case 8:bu(),o=6;break a;case 3:case 2:case 9:case 6:eo.current===null&&(t=!0);var l=Z;if(Z=0,Rl=null,Nu(e,s,c,l),n&&Bl){o=0;break a}break;default:l=Z,Z=0,Rl=null,Nu(e,s,c,l)}}Ou(),o=Ul;break}catch(t){Su(e,t)}while(1);return t&&e.shellSuspendCounter++,Wi=Ui=null,q=r,O.H=i,O.A=a,Y===null&&(J=null,X=0,I()),o}function Ou(){for(;Y!==null;)ju(Y)}function ku(e,t){var n=q;q|=2;var r=wu(),a=Tu();J!==e||X!==t?(tu=null,eu=Me()+500,xu(e,t)):Bl=Ze(e,t);a:do try{if(Z!==0&&Y!==null){t=Y;var o=Rl;b:switch(Z){case 1:Z=0,Rl=null,Nu(e,t,o,1);break;case 2:case 9:if(Ca(o)){Z=0,Rl=null,Mu(t);break}t=function(){Z!==2&&Z!==9||J!==e||(Z=7),nd(e)},o.then(t,t);break a;case 3:Z=7;break a;case 4:Z=5;break a;case 7:Ca(o)?(Z=0,Rl=null,Mu(t)):(Z=0,Rl=null,Nu(e,t,o,7));break;case 5:var s=null;switch(Y.tag){case 26:s=Y.memoizedState;case 5:case 27:var c=Y;if(s?Wf(s):c.stateNode.complete){Z=0,Rl=null;var l=c.sibling;if(l!==null)Y=l;else{var u=c.return;u===null?Y=null:(Y=u,Pu(u))}break b}}Z=0,Rl=null,Nu(e,t,o,5);break;case 6:Z=0,Rl=null,Nu(e,t,o,6);break;case 8:bu(),Ul=6;break a;default:throw Error(i(462))}}Au();break}catch(t){Su(e,t)}while(1);return Wi=Ui=null,O.H=r,O.A=a,q=n,Y===null?(J=null,X=0,I(),Ul):0}function Au(){for(;Y!==null&&!Ae();)ju(Y)}function ju(e){var t=jc(e.alternate,e,Hl);e.memoizedProps=e.pendingProps,t===null?Pu(e):Y=t}function Mu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=hc(n,t,t.pendingProps,t.type,void 0,X);break;case 11:t=hc(n,t,t.pendingProps,t.type.render,t.ref,X);break;case 5:Do(t);default:Bc(n,t),t=Y=pi(t,Hl),t=jc(n,t,Hl)}e.memoizedProps=e.pendingProps,t===null?Pu(e):Y=t}function Nu(e,t,n,r){Wi=Ui=null,Do(t),ka=null,Aa=0;var i=t.return;try{if(ec(e,i,t,n,X)){Ul=1,Ys(e,yi(n,e.current)),Y=null;return}}catch(t){if(i!==null)throw Y=i,t;Ul=1,Ys(e,yi(n,e.current)),Y=null;return}t.flags&32768?(z||r===1?e=!0:Bl||X&536870912?e=!1:(zl=e=!0,(r===2||r===9||r===3||r===6)&&(r=eo.current,r!==null&&r.tag===13&&(r.flags|=16384))),Fu(t,e)):Pu(t)}function Pu(e){var t=e;do{if(t.flags&32768){Fu(t,zl);return}e=t.return;var n=Rc(t.alternate,t,Hl);if(n!==null){Y=n;return}if(t=t.sibling,t!==null){Y=t;return}Y=t=e}while(t!==null);Ul===0&&(Ul=5)}function Fu(e,t){do{var n=zc(e.alternate,e);if(n!==null){n.flags&=32767,Y=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Y=e;return}Y=e=n}while(e!==null);Ul=6,Y=null}function Iu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Vu();while(ru!==0);if(q&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=ni,nt(e,n,o,s,c,l),e===J&&(Y=J=null,X=0),au=t,iu=e,ou=n,su=o,cu=a,lu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Yu(Ie,function(){return Hu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=O.T,O.T=null,a=k.p,k.p=2,s=q,q|=4;try{il(e,t,n)}finally{q=s,k.p=a,O.T=r}}ru=1,Lu(),Ru(),zu()}}function Lu(){if(ru===1){ru=0;var e=iu,t=au,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=O.T,O.T=null;var r=k.p;k.p=2;var i=q;q|=4;try{gl(t,e);var a=zd,o=Ar(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&kr(s.ownerDocument.documentElement,s)){if(c!==null&&jr(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 _=Or(s,h),v=Or(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}sp=!!Rd,zd=Rd=null}finally{q=i,k.p=r,O.T=n}}e.current=t,ru=2}}function Ru(){if(ru===2){ru=0;var e=iu,t=au,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=O.T,O.T=null;var r=k.p;k.p=2;var i=q;q|=4;try{al(e,t.alternate,t)}finally{q=i,k.p=r,O.T=n}}ru=3}}function zu(){if(ru===4||ru===3){ru=0,je();var e=iu,t=au,n=ou,r=lu;t.subtreeFlags&10256||t.flags&10256?ru=5:(ru=0,au=iu=null,Bu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(nu=null),st(n),t=t.stateNode,He&&typeof He.onCommitFiberRoot==`function`)try{He.onCommitFiberRoot(Ve,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=O.T,i=k.p,k.p=2,O.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{O.T=t,k.p=i}}ou&3&&Vu(),nd(e),i=e.pendingLanes,n&261930&&i&42?e===du?uu++:(uu=0,du=e):uu=0,rd(0,!1)}}function Bu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,oa(t)))}function Vu(){return Lu(),Ru(),zu(),Hu()}function Hu(){if(ru!==5)return!1;var e=iu,t=su;su=0;var n=st(ou),r=O.T,a=k.p;try{k.p=32>n?32:n,O.T=null,n=cu,cu=null;var o=iu,s=ou;if(ru=0,au=iu=null,ou=0,q&6)throw Error(i(331));var c=q;if(q|=4,Nl(o.current),Tl(o,o.current,s,n),q=c,rd(0,!1),He&&typeof He.onPostCommitFiberRoot==`function`)try{He.onPostCommitFiberRoot(Ve,o)}catch{}return!0}finally{k.p=a,O.T=r,Bu(e,t)}}function Uu(e,t,n){t=yi(n,t),t=Zs(e.stateNode,t,2),e=Va(e,t,2),e!==null&&(tt(e,2),nd(e))}function Q(e,t,n){if(e.tag===3)Uu(e,e,n);else for(;t!==null;){if(t.tag===3){Uu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(nu===null||!nu.has(r))){e=yi(n,e),n=Qs(2),r=Va(t,n,2),r!==null&&($s(n,r,t,e),tt(r,2),nd(r));break}}t=t.return}}function Wu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ll;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)||(Vl=!0,i.add(n),e=Gu.bind(null,e,t,n),t.then(e,e))}function Gu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,J===e&&(X&n)===n&&(Ul===4||Ul===3&&(X&62914560)===X&&300>Me()-Ql?!(q&2)&&xu(e,0):Kl|=n,Jl===X&&(Jl=0)),nd(e)}function Ku(e,t){t===0&&(t=$e()),e=ai(e,t),e!==null&&(tt(e,t),nd(e))}function qu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ku(e,n)}function Ju(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Ku(e,n)}function Yu(e,t){return Oe(e,t)}var Xu=null,Zu=null,Qu=!1,$u=!1,ed=!1,td=0;function nd(e){e!==Zu&&e.next===null&&(Zu===null?Xu=Zu=e:Zu=Zu.next=e),$u=!0,Qu||(Qu=!0,ld())}function rd(e,t){if(!ed&&$u){ed=!0;do for(var n=!1,r=Xu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-We(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,cd(r,a))}else a=X,a=Xe(r,r===J?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ze(r,a)||(n=!0,cd(r,a));r=r.next}while(n);ed=!1}}function id(){ad()}function ad(){$u=Qu=!1;var e=0;td!==0&&Gd()&&(e=td);for(var t=Me(),n=null,r=Xu;r!==null;){var i=r.next,a=od(r,t);a===0?(r.next=null,n===null?Xu=i:n.next=i,i===null&&(Zu=n)):(n=r,(e!==0||a&3)&&($u=!0)),r=i}ru!==0&&ru!==5||rd(e,!1),td!==0&&(td=0)}function od(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-We(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Qe(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=J,n=X,n=Xe(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Z===2||Z===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&ke(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ze(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&ke(r),st(n)){case 2:case 8:n=Fe;break;case 32:n=Ie;break;case 268435456:n=Re;break;default:n=Ie}return r=sd.bind(null,e),n=Oe(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&ke(r),e.callbackPriority=2,e.callbackNode=null,2}function sd(e,t){if(ru!==0&&ru!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Vu()&&e.callbackNode!==n)return null;var r=X;return r=Xe(e,e===J?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(hu(e,r,t),od(e,Me()),e.callbackNode!=null&&e.callbackNode===n?sd.bind(null,e):null)}function cd(e,t){if(Vu())return null;hu(e,t,!0)}function ld(){Yd(function(){q&6?Oe(Pe,id):ad()})}function ud(){if(td===0){var e=la;e===0&&(e=Je,Je<<=1,!(Je&261888)&&(Je=256)),td=e}return td}function dd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:tn(``+e)}function fd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function pd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=dd((i[P]||null).action),o=r.submitter;o&&(t=(t=o[P]||null)?dd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new wn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(td!==0){var e=o?fd(i,o):new FormData(i);Cs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?fd(i,o):new FormData(i),Cs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var md=0;md<Zr.length;md++){var hd=Zr[md];Qr(hd.toLowerCase(),`on`+(hd[0].toUpperCase()+hd.slice(1)))}Qr(Ur,`onAnimationEnd`),Qr(Wr,`onAnimationIteration`),Qr(Gr,`onAnimationStart`),Qr(`dblclick`,`onDoubleClick`),Qr(`focusin`,`onFocus`),Qr(`focusout`,`onBlur`),Qr(Kr,`onTransitionRun`),Qr(qr,`onTransitionStart`),Qr(Jr,`onTransitionCancel`),Qr(Yr,`onTransitionEnd`),Et(`onMouseEnter`,[`mouseout`,`mouseover`]),Et(`onMouseLeave`,[`mouseout`,`mouseover`]),Et(`onPointerEnter`,[`pointerout`,`pointerover`]),Et(`onPointerLeave`,[`pointerout`,`pointerover`]),Tt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Tt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Tt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Tt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Tt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Tt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var gd=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),_d=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(gd));function vd(e,t){t=(t&4)!=0;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){$r(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){$r(e)}i.currentTarget=null,a=c}}}}function $(e,t){var n=t[pt];n===void 0&&(n=t[pt]=new Set);var r=e+`__bubble`;n.has(r)||(Sd(t,e,2,!1),n.add(r))}function yd(e,t,n){var r=0;t&&(r|=4),Sd(n,e,r,t)}var bd=`_reactListening`+Math.random().toString(36).slice(2);function xd(e){if(!e[bd]){e[bd]=!0,Ct.forEach(function(t){t!==`selectionchange`&&(_d.has(t)||yd(t,!1,e),yd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bd]||(t[bd]=!0,yd(`selectionchange`,!1,t))}}function Sd(e,t,n,r){switch(mp(t)){case 2:var i=cp;break;case 8:i=lp;break;default:i=up}n=i.bind(null,t,n,e),i=void 0,!pn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Cd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=yt(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}un(function(){var r=a,i=an(n),s=[];a:{var c=Xr.get(e);if(c!==void 0){var l=wn,u=e;switch(e){case`keypress`:if(yn(n)===0)break a;case`keydown`:case`keyup`:l=Hn;break;case`focusin`:u=`focus`,l=Nn;break;case`focusout`:u=`blur`,l=Nn;break;case`beforeblur`:case`afterblur`:l=Nn;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=jn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Mn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Wn;break;case Ur:case Wr:case Gr:l=Pn;break;case Yr:l=Gn;break;case`scroll`:case`scrollend`:l=En;break;case`wheel`:l=Kn;break;case`copy`:case`cut`:case`paste`:l=Fn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Un;break;case`toggle`:case`beforetoggle`:l=qn}var d=(t&4)!=0,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=dn(m,p),g!=null&&d.push(wd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==rn&&(u=n.relatedTarget||n.fromElement)&&(yt(u)||u[ft]))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?yt(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=jn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Un,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:xt(l),h=u==null?c:xt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,yt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Ed,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Dd(s,c,l,d,!1),u!==null&&f!==null&&Dd(s,f,u,d,!0)}}a:{if(c=r?xt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=pr;else if(sr(c))if(mr)v=Cr;else{v=xr;var y=br}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Qt(r.elementType)&&(v=pr):v=Sr;if(v&&=v(e,r)){cr(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Wt(c,`number`,c.value)}switch(y=r?xt(r):window,e){case`focusin`:(sr(y)||y.contentEditable===`true`)&&(Nr=y,Pr=r,Fr=null);break;case`focusout`:Fr=Pr=Nr=null;break;case`mousedown`:Ir=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Ir=!1,Lr(s,n,i);break;case`selectionchange`:if(Mr)break;case`keydown`:case`keyup`:Lr(s,n,i)}var b;if(Yn)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 rr?tr(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Qn&&n.locale!==`ko`&&(rr||x!==`onCompositionStart`?x===`onCompositionEnd`&&rr&&(b=vn()):(hn=i,gn=`value`in hn?hn.value:hn.textContent,rr=!0)),y=Td(r,x),0<y.length&&(x=new In(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=nr(n),b!==null&&(x.data=b)))),(b=Zn?ir(e,n):ar(e,n))&&(x=Td(r,`onBeforeInput`),0<x.length&&(y=new In(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),pd(s,e,r,n,i)}vd(s,t)})}function wd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Td(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=dn(e,n),i!=null&&r.unshift(wd(e,i,a)),i=dn(e,t),i!=null&&r.push(wd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Ed(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Dd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=dn(n,a),l!=null&&o.unshift(wd(n,l,c))):i||(l=dn(n,a),l!=null&&o.push(wd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Od=/\r\n?/g,kd=/\u0000|\uFFFD/g;function Ad(e){return(typeof e==`string`?e:``+e).replace(Od,`
95
- `).replace(kd,``)}function jd(e,t){return t=Ad(t),Ad(e)===t}function Md(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Jt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Jt(e,``+r);break;case`className`:Mt(e,`class`,r);break;case`tabIndex`:Mt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Mt(e,n,r);break;case`style`:Zt(e,r,o);break;case`data`:if(t!==`object`){Mt(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=tn(``+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}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Md(e,t,`name`,a.name,a,null),Md(e,t,`formEncType`,a.formEncType,a,null),Md(e,t,`formMethod`,a.formMethod,a,null),Md(e,t,`formTarget`,a.formTarget,a,null)):(Md(e,t,`encType`,a.encType,a,null),Md(e,t,`method`,a.method,a,null),Md(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=tn(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=nn);break;case`onScroll`:r!=null&&$(`scroll`,e);break;case`onScrollEnd`:r!=null&&$(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=tn(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:$(`beforetoggle`,e),$(`toggle`,e),jt(e,`popover`,r);break;case`xlinkActuate`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Nt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Nt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Nt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:jt(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=$t.get(n)||n,jt(e,n,r))}}function Nd(e,t,n,r,a,o){switch(n){case`style`:Zt(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`?Jt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Jt(e,``+r);break;case`onScroll`:r!=null&&$(`scroll`,e);break;case`onScrollEnd`:r!=null&&$(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=nn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!wt.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[P]||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,``):jt(e,n,r)}}}function Pd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:$(`error`,e),$(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Md(e,t,o,s,n,null)}}a&&Md(e,t,`srcSet`,n.srcSet,n,null),r&&Md(e,t,`src`,n.src,n,null);return;case`input`:$(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Md(e,t,r,d,n,null)}}Ut(e,o,c,l,u,s,a,!1);return;case`select`:for(a in $(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Md(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Gt(e,!!r,n,!0):Gt(e,!!r,t,!1);return;case`textarea`:for(s in $(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Md(e,t,s,c,n,null)}qt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Md(e,t,l,r,n,null)}return;case`dialog`:$(`beforetoggle`,e),$(`toggle`,e),$(`cancel`,e),$(`close`,e);break;case`iframe`:case`object`:$(`load`,e);break;case`video`:case`audio`:for(r=0;r<gd.length;r++)$(gd[r],e);break;case`image`:$(`error`,e),$(`load`,e);break;case`details`:$(`toggle`,e);break;case`embed`:case`source`:case`link`:$(`error`,e),$(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Md(e,t,u,r,n,null)}return;default:if(Qt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Nd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Md(e,t,c,r,n,null))}function Fd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Md(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Md(e,t,p,m,r,f)}}Ht(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Md(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Md(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Gt(e,!!n,n?[]:``,!1):Gt(e,!!n,t,!0)):Gt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Md(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Md(e,t,s,a,r,o)}Kt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Md(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Md(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Md(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Md(e,t,u,p,r,m)}return;default:if(Qt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Nd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Nd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Md(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Md(e,t,f,p,r,m)}function Id(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ld(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Id(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Rd=null,zd=null;function Bd(e){return e.nodeType===9?e:e.ownerDocument}function Vd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Hd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Ud(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wd=null;function Gd(){var e=window.event;return e&&e.type===`popstate`?e===Wd?!1:(Wd=e,!0):(Wd=null,!1)}var Kd=typeof setTimeout==`function`?setTimeout:void 0,qd=typeof clearTimeout==`function`?clearTimeout:void 0,Jd=typeof Promise==`function`?Promise:void 0,Yd=typeof queueMicrotask==`function`?queueMicrotask:Jd===void 0?Kd:function(e){return Jd.resolve(null).then(e).catch(Xd)};function Xd(e){setTimeout(function(){throw e})}function Zd(e){return e===`head`}function Qd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)pf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,pf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[_t]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&pf(e.ownerDocument.body);n=i}while(n);Np(t)}function $d(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function ef(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:ef(n),vt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[_t])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=cf(e.nextSibling),e===null)break}return null}function nf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cf(e.nextSibling),e===null))return null;return e}function rf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cf(e.nextSibling),e===null))return null;return e}function af(e){return e.data===`$?`||e.data===`$~`}function of(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function sf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function cf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var lf=null;function uf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return cf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function df(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function ff(e,t,n){switch(t=Bd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function pf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vt(e)}var mf=new Map,hf=new Set;function gf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _f=k.d;k.d={f:vf,r:yf,D:Sf,C:Cf,L:wf,m:Tf,X:Df,S:Ef,M:Of};function vf(){var e=_f.f(),t=yu();return e||t}function yf(e){var t=bt(e);t!==null&&t.tag===5&&t.type===`form`?Ts(t):_f.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Vt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),St(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Vt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Vt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Vt(n.imageSizes)+`"]`)):i+=`[href="`+Vt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),St(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Vt(r)+`"][href="`+Vt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),St(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=F(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);St(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=F(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),St(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=F(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),St(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var a=(a=me.current)?gf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=F(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=F(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),o||Nf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=F(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Af(e){return`href="`+Vt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),St(t),e.head.appendChild(t))}function Pf(e){return`[src="`+Vt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Vt(n.href)+`"]`);if(r)return t.instance=r,St(r),r;var a=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),St(r),Pd(r,`style`,a),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Af(n.href);var o=e.querySelector(jf(a));if(o)return t.state.loading|=4,t.instance=o,St(o),o;r=Mf(n),(a=mf.get(a))&&Rf(r,a),o=(e.ownerDocument||e).createElement(`link`),St(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(a=e.querySelector(Ff(o)))?(t.instance=a,St(a),a):(r=n,(a=mf.get(o))&&(r=h({},n),zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),St(a),Pd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Rf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Bf=null;function Vf(e,t,n){if(Bf===null){var r=new Map,i=Bf=new Map;i.set(n,r)}else i=Bf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[_t]||a[dt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Hf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,St(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),St(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Ld());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Jf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Qf={$$typeof:C,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function $f(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=et(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=et(0),this.hiddenUpdates=et(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ui(3,null,null,t),e.current=a,a.stateNode=e,t=aa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ra(a),e}function tp(e){return e?(e=ci,e):ci}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=Ba(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Va(e,r,t),n!==null&&(mu(n,e,t),Ha(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=ai(e,67108864);t!==null&&mu(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=fu();t=ot(t);var n=ai(e,t);n!==null&&mu(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=O.T;O.T=null;var a=k.p;try{k.p=2,up(e,t,n,r)}finally{k.p=a,O.T=i}}function lp(e,t,n,r){var i=O.T;O.T=null;var a=k.p;try{k.p=8,up(e,t,n,r)}finally{k.p=a,O.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)Cd(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=bt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=N(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-We(o);s.entanglements[1]|=c,o&=~c}nd(a),!(q&6)&&(eu=Me()+500,rd(0,!1))}}break;case 31:case 13:s=ai(a,2),s!==null&&mu(s,a,2),yu(),ip(a,2)}if(a=dp(r),a===null&&Cd(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Cd(e,t,r,null,n)}}function dp(e){return e=an(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=yt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function mp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ne()){case Pe:return 2;case Fe:return 8;case Ie:case Le:return 32;case Re:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=bt(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=yt(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,lt(e.priority,function(){op(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,lt(e.priority,function(){op(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);rn=r,n.target.dispatchEvent(r),rn=null}else return t=bt(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,n){e.blockedOn===n&&(e.blockedOn=null,hp||(hp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jp===e&&(jp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(pp(r||n)===null)continue;break}var a=bt(n);a!==null&&(e.splice(t,3),t-=3,Cs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[P]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[P]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;np(n,fu(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),yu(),t[ft]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=n.version;if(Lp!==`19.2.6`)throw Error(i(527,Lp,`19.2.6`));k.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=d(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.6`,rendererPackageName:`react-dom`,currentDispatcherRef:O,reconcilerVersion:`19.2.6`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{Ve=zp.inject(Rp),He=zp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Ks,s=qs,c=Js;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ep(e,1,!1,null,null,n,r,null,o,s,c,Pp),e[ft]=t.current,xd(e),new Fp(t)}})),g=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()})),_=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(){}},v=new class extends _{#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`}},y={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},b=new class{#e=y;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 x(e){setTimeout(e,0)}var S=typeof window>`u`||`Deno`in globalThis;function C(){}function w(e,t){return typeof e==`function`?e(t):e}function T(e){return typeof e==`number`&&e>=0&&e!==1/0}function ee(e,t){return Math.max(e+(t||0)-Date.now(),0)}function te(e,t){return typeof e==`function`?e(t):e}function E(e,t){return typeof e==`function`?e(t):e}function ne(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==ie(o,t.options))return!1}else if(!ae(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 re(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(D(t.options.mutationKey)!==D(a))return!1}else if(!ae(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function ie(e,t){return(t?.queryKeyHashFn||D)(e)}function D(e){return JSON.stringify(e,(e,t)=>ce(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function ae(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>ae(e[n],t[n])):!1}var oe=Object.prototype.hasOwnProperty;function se(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=k(e)&&k(t);if(!r&&!(ce(e)&&ce(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:oe.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=se(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function O(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 k(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ce(e){if(!le(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!le(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function le(e){return Object.prototype.toString.call(e)===`[object Object]`}function ue(e){return new Promise(t=>{b.setTimeout(t,e)})}function de(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:se(e,t)}function A(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function j(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var fe=Symbol();function pe(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===fe?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function me(e,t){return typeof e==`function`?e(...t):!!e}function he(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 ge=(()=>{let e=()=>S;return{isServer(){return e()},setIsServer(t){e=t}}})();function _e(){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 ve=x;function ye(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=ve,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 be=ye(),xe=new class extends _{#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 Se(e){return Math.min(1e3*2**e,3e4)}function Ce(e){return(e??`online`)===`online`?xe.isOnline():!0}var we=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Te(e){let t=!1,n=0,r,i=_e(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new we(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>v.isFocused()&&(e.networkMode===`always`||xe.isOnline())&&e.canRun(),u=()=>Ce(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??(ge.isServer()?0:3),o=e.retryDelay??Se,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),ue(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 Ee=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),T(this.gcTime)&&(this.#e=b.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ge.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(b.clearTimeout(this.#e),this.#e=void 0)}};function De(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=>{he(e,()=>t.signal,()=>n=!0)},u=pe(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=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?j:A;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?ke:Oe,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:Oe(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Oe(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 ke(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Ae=class extends Ee{#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=Ne(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=Ne(this.options);e.data!==void 0&&(this.setState(Me(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=de(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(C).catch(C):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=>E(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fe||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>te(e.options.staleTime,this)===`static`):!1}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:!ee(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=pe(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`?De(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=Te({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof we&&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 we){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,...je(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Me(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),be.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function je(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ce(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Me(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Ne(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 Pe=class extends _{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=_e(),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),Ie(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Le(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Le(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 E(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&&!O(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&Re(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||E(this.options.enabled,this.#t)!==E(t.enabled,this.#t)||te(this.options.staleTime,this.#t)!==te(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||E(this.options.enabled,this.#t)!==E(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 Be(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(C)),t}#g(){this.#b();let e=te(this.options.staleTime,this.#t);if(ge.isServer()||this.#r.isStale||!T(e))return;let t=ee(this.#r.dataUpdatedAt,e)+1;this.#d=b.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,!(ge.isServer()||E(this.options.enabled,this.#t)===!1||!T(this.#p)||this.#p===0)&&(this.#f=b.setInterval(()=>{(this.options.refetchIntervalInBackground||v.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(b.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(b.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&&Ie(e,t),o=i&&Re(e,n,t,r);(a||o)&&(l={...l,...je(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=de(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=de(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:ze(e,t),refetch:this.refetch,promise:this.#o,isEnabled:E(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=()=>{i(this.#o=x.promise=_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();break}}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),!O(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){be.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function Fe(e,t){return E(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&E(t.retryOnMount,e)===!1)}function Ie(e,t){return Fe(e,t)||e.state.data!==void 0&&Le(e,t,t.refetchOnMount)}function Le(e,t,n){if(E(t.enabled,e)!==!1&&te(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&ze(e,t)}return!1}function Re(e,t,n,r){return(e!==t||E(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&ze(e,n)}function ze(e,t){return E(t.enabled,e)!==!1&&e.isStaleByTime(te(t.staleTime,e))}function Be(e,t){return!O(e.getCurrentResult(),t)}var Ve=class extends Ee{#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||He(),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=Te({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),be.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function He(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Ue=class extends _{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 Ve({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=We(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=We(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=We(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=We(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){be.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=>re(t,e))}findAll(e={}){return this.getAll().filter(t=>re(e,t))}notify(e){be.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return be.batch(()=>Promise.all(e.map(e=>e.continue().catch(C))))}};function We(e){return e.options.scope?.id}var Ge=class extends _{#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),O(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&D(t.mutationKey)!==D(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??He();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){be.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)})})}},Ke=class extends _{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??ie(r,t),a=this.get(i);return a||(a=new Ae({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(){be.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=>ne(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>ne(e,t)):t}notify(e){be.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){be.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){be.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},qe=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Ke,this.#t=e.mutationCache||new Ue,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=v.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=xe.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(te(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=w(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return be.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;be.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return be.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=be.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(C).catch(C)}invalidateQueries(e,t={}){return be.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=be.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(C)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(C)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(te(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(C).catch(C)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(C).catch(C)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return xe.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(D(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{ae(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(D(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{ae(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||=ie(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===fe&&(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()}},Je=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})),Ye=o(((e,t)=>{t.exports=Je()})),M=c(u(),1),N=Ye(),Xe=M.createContext(void 0),Ze=e=>{let t=M.useContext(Xe);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Qe=({client:e,children:t})=>(M.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,N.jsx)(Xe.Provider,{value:e,children:t})),$e=M.createContext(!1),et=()=>M.useContext($e);$e.Provider;function tt(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var nt=M.createContext(tt()),rt=()=>M.useContext(nt),it=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?me(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},at=e=>{M.useEffect(()=>{e.clearReset()},[e])},ot=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||me(n,[e.error,r])),st=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))}},ct=(e,t)=>e.isLoading&&e.isFetching&&!t,lt=(e,t)=>e?.suspense&&t.isPending,ut=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function dt(e,t,n){let r=et(),i=rt(),a=Ze(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,st(o),it(o,i,s),at(i);let l=!a.getQueryCache().get(o.queryHash),[u]=M.useState(()=>new t(a,o)),d=u.getOptimisticResult(o),f=!r&&c;if(M.useSyncExternalStore(M.useCallback(e=>{let t=f?u.subscribe(be.batchCalls(e)):C;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),M.useEffect(()=>{u.setOptions(o)},[o,u]),lt(o,d))throw ut(o,u,i);if(ot({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&&!ge.isServer()&&ct(d,r)&&(l?ut(o,u,i):s?.promise)?.catch(C).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?d:u.trackResult(d)}function P(e,t){return dt(e,Pe,t)}function ft(e,t){let n=Ze(t),[r]=M.useState(()=>new Ge(n,e));M.useEffect(()=>{r.setOptions(e)},[r,e]);let i=M.useSyncExternalStore(M.useCallback(e=>r.subscribe(be.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=M.useCallback((e,t)=>{r.mutate(e,t).catch(C)},[r]);if(i.error&&me(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var pt=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),mt=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),ht=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),gt=e=>{let t=ht(e);return t.charAt(0).toUpperCase()+t.slice(1)},_t={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`},vt=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},yt=(0,M.createContext)({}),bt=()=>(0,M.useContext)(yt),xt=(0,M.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=``}=bt()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,M.createElement)(`svg`,{ref:c,..._t,width:t??l??_t.width,height:t??l??_t.height,stroke:e??f,strokeWidth:m,className:pt(`lucide`,p,i),...!a&&!vt(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,M.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),F=(e,t)=>{let n=(0,M.forwardRef)(({className:n,...r},i)=>(0,M.createElement)(xt,{ref:i,iconNode:t,className:pt(`lucide-${mt(gt(e))}`,`lucide-${e}`,n),...r}));return n.displayName=gt(e),n},St=F(`arrow-down-up`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`m21 8-4-4-4 4`,key:`1c9v7m`}],[`path`,{d:`M17 4v16`,key:`7dpous`}]]),Ct=F(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),wt=F(`baseline`,[[`path`,{d:`M4 20h16`,key:`14thso`}],[`path`,{d:`m6 16 6-12 6 12`,key:`1b4byz`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),Tt=F(`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`}]]),Et=F(`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`}]]),Dt=F(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Ot=F(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),kt=F(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),At=F(`chevrons-up-down`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),jt=F(`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`}]]),Mt=F(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Nt=F(`clipboard-check`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`m9 14 2 2 4-4`,key:`df797q`}]]),Pt=F(`clipboard-list`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),Ft=F(`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`}]]),It=F(`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`}]]),Lt=F(`crop`,[[`path`,{d:`M6 2v14a2 2 0 0 0 2 2h14`,key:`ron5a4`}],[`path`,{d:`M18 22V8a2 2 0 0 0-2-2H2`,key:`7s9ehn`}]]),Rt=F(`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`}]]),zt=F(`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`}]]),Bt=F(`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`}]]),Vt=F(`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`}]]),Ht=F(`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`}]]),Ut=F(`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`}]]),Wt=F(`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`}]]),Gt=F(`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`}]]),Kt=F(`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`}]]),qt=F(`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`}]]),Jt=F(`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`}]]),Yt=F(`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`}]]),Xt=F(`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`}]]),Zt=F(`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`}]]),Qt=F(`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`}]]),$t=F(`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`}]]),en=F(`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`}]]),tn=F(`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`}]]),nn=F(`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`}]]),rn=F(`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`}]]),an=F(`package-check`,[[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`path`,{d:`m16 17 2 2 4-4`,key:`uh5qu3`}],[`path`,{d:`M21 11.127V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.32-.753`,key:`kpkbpo`}],[`path`,{d:`M3.29 7 12 12l8.71-5`,key:`19ckod`}],[`path`,{d:`m7.5 4.27 8.997 5.148`,key:`9yrvtv`}]]),on=F(`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=F(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),cn=F(`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`}]]),ln=F(`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`}]]),un=F(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),dn=F(`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`}]]),fn=F(`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`}]]),pn=F(`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`}]]),mn=F(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),hn=F(`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`}]]),gn=F(`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`}]]),_n=F(`store`,[[`path`,{d:`M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5`,key:`slp6dd`}],[`path`,{d:`M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244`,key:`o0xfot`}],[`path`,{d:`M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05`,key:`wn3emo`}]]),vn=F(`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`}]]),yn=F(`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`}]]),bn=F(`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`}]]),xn=F(`tags`,[[`path`,{d:`M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z`,key:`16rjxf`}],[`path`,{d:`M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193`,key:`178nd4`}],[`circle`,{cx:`10.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`12ikhr`}]]),Sn=F(`text-align-end`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M21 19H7`,key:`4cu937`}]]),Cn=F(`text-align-center`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M17 12H7`,key:`16if0g`}],[`path`,{d:`M19 19H5`,key:`vjpgq2`}]]),wn=F(`text-align-start`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M17 19H3`,key:`z6ezky`}]]),Tn=F(`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`}]]),En=F(`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`}]]),Dn=F(`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`}]]),On=F(`underline`,[[`path`,{d:`M6 4v6a6 6 0 0 0 12 0V4`,key:`9kb039`}],[`line`,{x1:`4`,x2:`20`,y1:`20`,y2:`20`,key:`nun2al`}]]),kn=F(`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`}]]),An=F(`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`}]]),jn=F(`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`}]]),Mn=F(`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`}]]),Nn=F(`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`}]]),Pn=F(`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`}]]),Fn=F(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),In=c(g(),1),Ln=`layout_variant`,Rn=3600*24*7,zn=`sidebar`,Bn=M.createContext(null);function Vn(e){if(typeof document>`u`)return null;let t=document.cookie.match(RegExp(`(?:^|;\\s*)${e}=([^;]+)`));return t?decodeURIComponent(t[1]):null}function Hn(e,t){typeof document>`u`||(document.cookie=`${e}=${encodeURIComponent(t)}; Path=/; Max-Age=${Rn}; SameSite=Lax`)}function Un(){let e=Vn(Ln);return e===`inset`||e===`sidebar`||e===`floating`?e:zn}function Wn({children:e}){let[t,n]=M.useState(Un),r=M.useCallback(e=>{Hn(Ln,e),n(e)},[]),i=M.useMemo(()=>({variant:t,setVariant:r,defaultVariant:zn}),[t,r]);return(0,N.jsx)(Bn.Provider,{value:i,children:e})}function Gn(){let e=M.useContext(Bn);if(!e)throw Error(`useLayout must be used inside LayoutProvider`);return e}var Kn=`sidebar_state`;function qn(){let e=Vn(Kn);return e===`true`?!0:e===`false`?!1:null}function Jn(e){Hn(Kn,String(e))}function Yn(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=Yn(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Xn(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Yn(e))&&(r&&(r+=` `),r+=t);return r}var Zn=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Qn=Xn,$n=(e,t)=>n=>{if(t?.variants==null)return Qn(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=Zn(t)||Zn(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 Qn(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)};function er(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function tr(...e){return t=>{let n=!1,r=e.map(e=>{let r=er(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():er(e[t],null)}}}}function nr(...e){return M.useCallback(tr(...e),e)}var rr=Symbol.for(`react.lazy`),ir=M.use;function ar(e){return typeof e==`object`&&!!e&&`then`in e}function or(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===rr&&`_payload`in e&&ar(e._payload)}function sr(e){let t=lr(e),n=M.forwardRef((e,n)=>{let{children:r,...i}=e;or(r)&&typeof ir==`function`&&(r=ir(r._payload));let a=M.Children.toArray(r),o=a.find(dr);if(o){let e=o.props.children,r=a.map(t=>t===o?M.Children.count(e)>1?M.Children.only(null):M.isValidElement(e)?e.props.children:null:t);return(0,N.jsx)(t,{...i,ref:n,children:M.isValidElement(e)?M.cloneElement(e,void 0,r):null})}return(0,N.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var cr=sr(`Slot`);function lr(e){let t=M.forwardRef((e,t)=>{let{children:n,...r}=e;if(or(n)&&typeof ir==`function`&&(n=ir(n._payload)),M.isValidElement(n)){let e=pr(n),i=fr(r,n.props);return n.type!==M.Fragment&&(i.ref=t?tr(t,e):e),M.cloneElement(n,i)}return M.Children.count(n)>1?M.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ur=Symbol(`radix.slottable`);function dr(e){return M.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===ur}function fr(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}}function pr(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)}var mr=(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},hr=(e,t)=>({classGroupId:e,validator:t}),gr=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),_r=`-`,vr=[],yr=`arbitrary..`,br=e=>{let t=Cr(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Sr(e);let n=e.split(_r);return xr(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?mr(i,t):t:i||vr}return n[e]||vr}}},xr=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=xr(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(_r):e.slice(t).join(_r),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Sr=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?yr+r:void 0})(),Cr=e=>{let{theme:t,classGroups:n}=e;return wr(n,t)},wr=(e,t)=>{let n=gr();for(let r in e){let i=e[r];Tr(i,n,r,t)}return n},Tr=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Er(i,t,n,r)}},Er=(e,t,n,r)=>{if(typeof e==`string`){Dr(e,t,n);return}if(typeof e==`function`){Or(e,t,n,r);return}kr(e,t,n,r)},Dr=(e,t,n)=>{let r=e===``?t:Ar(t,e);r.classGroupId=n},Or=(e,t,n,r)=>{if(jr(e)){Tr(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(hr(n,e))},kr=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Tr(o,Ar(t,a),n,r)}},Ar=(e,t)=>{let n=e,r=t.split(_r),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=gr(),n.nextPart.set(t,i)),n=i}return n},jr=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Mr=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)}}},Nr=`!`,Pr=`:`,Fr=[],Ir=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Lr=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===Pr){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(Nr)?(c=s.slice(0,-1),l=!0):s.startsWith(Nr)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Ir(t,l,c,u)};if(t){let e=t+Pr,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Ir(Fr,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Rr=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}},zr=e=>({cache:Mr(e.cacheSize),parseClassName:Lr(e),sortModifiers:Rr(e),postfixLookupClassGroupIds:Br(e),...br(e)}),Br=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},Vr=/\s+/,Hr=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Vr),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?_+Nr:_,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},Ur=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Wr(n))&&(i&&(i+=` `),i+=r);return i},Wr=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Wr(e[r]))&&(n&&(n+=` `),n+=t);return n},Gr=(e,...t)=>{let n,r,i,a,o=o=>(n=zr(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=Hr(e,n);return i(e,a),a};return a=o,(...e)=>a(Ur(...e))},Kr=[],qr=e=>{let t=t=>t[e]||Kr;return t.isThemeGetter=!0,t},Jr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Yr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Xr=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Zr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qr=/\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$/,$r=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ei=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ti=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ni=e=>Xr.test(e),I=e=>!!e&&!Number.isNaN(Number(e)),ri=e=>!!e&&Number.isInteger(Number(e)),ii=e=>e.endsWith(`%`)&&I(e.slice(0,-1)),ai=e=>Zr.test(e),oi=()=>!0,si=e=>Qr.test(e)&&!$r.test(e),ci=()=>!1,li=e=>ei.test(e),ui=e=>ti.test(e),di=e=>!L(e)&&!R(e),fi=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)),pi=e=>Oi(e,Mi,ci),L=e=>Jr.test(e),mi=e=>Oi(e,Ni,si),hi=e=>Oi(e,Pi,I),gi=e=>Oi(e,Fi,oi),_i=e=>Oi(e,z,ci),vi=e=>Oi(e,Ai,ci),yi=e=>Oi(e,ji,ui),bi=e=>Oi(e,Ii,li),R=e=>Yr.test(e),xi=e=>ki(e,Ni),Si=e=>ki(e,z),Ci=e=>ki(e,Ai),wi=e=>ki(e,Mi),Ti=e=>ki(e,ji),Ei=e=>ki(e,Ii,!0),Di=e=>ki(e,Fi,!0),Oi=(e,t,n)=>{let r=Jr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ki=(e,t,n=!1)=>{let r=Yr.exec(e);return r?r[1]?t(r[1]):n:!1},Ai=e=>e===`position`||e===`percentage`,ji=e=>e===`image`||e===`url`,Mi=e=>e===`length`||e===`size`||e===`bg-size`,Ni=e=>e===`length`,Pi=e=>e===`number`,z=e=>e===`family-name`,Fi=e=>e===`number`||e===`weight`,Ii=e=>e===`shadow`,Li=Gr(()=>{let e=qr(`color`),t=qr(`font`),n=qr(`text`),r=qr(`font-weight`),i=qr(`tracking`),a=qr(`leading`),o=qr(`breakpoint`),s=qr(`container`),c=qr(`spacing`),l=qr(`radius`),u=qr(`shadow`),d=qr(`inset-shadow`),f=qr(`text-shadow`),p=qr(`drop-shadow`),m=qr(`blur`),h=qr(`perspective`),g=qr(`aspect`),_=qr(`ease`),v=qr(`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(),R,L],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[R,L,c],T=()=>[ni,`full`,`auto`,...w()],ee=()=>[ri,`none`,`subgrid`,R,L],te=()=>[`auto`,{span:[`full`,ri,R,L]},ri,R,L],E=()=>[ri,`auto`,R,L],ne=()=>[`auto`,`min`,`max`,`fr`,R,L],re=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],ie=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],D=()=>[`auto`,...w()],ae=()=>[ni,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],oe=()=>[ni,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],se=()=>[ni,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],O=()=>[e,R,L],k=()=>[...b(),Ci,vi,{position:[R,L]}],ce=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],le=()=>[`auto`,`cover`,`contain`,wi,pi,{size:[R,L]}],ue=()=>[ii,xi,mi],de=()=>[``,`none`,`full`,l,R,L],A=()=>[``,I,xi,mi],j=()=>[`solid`,`dashed`,`dotted`,`double`],fe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],pe=()=>[I,ii,Ci,vi],me=()=>[``,`none`,m,R,L],he=()=>[`none`,I,R,L],ge=()=>[`none`,I,R,L],_e=()=>[I,R,L],ve=()=>[ni,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[ai],breakpoint:[ai],color:[oi],container:[ai],"drop-shadow":[ai],ease:[`in`,`out`,`in-out`],font:[di],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[ai],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[ai],shadow:[ai],spacing:[`px`,I],text:[ai],"text-shadow":[ai],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,ni,L,R,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,R,L]}],"container-named":[fi],columns:[{columns:[I,L,R,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:[ri,`auto`,R,L]}],basis:[{basis:[ni,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[I,ni,`auto`,`initial`,`none`,L]}],grow:[{grow:[``,I,R,L]}],shrink:[{shrink:[``,I,R,L]}],order:[{order:[ri,`first`,`last`,`none`,R,L]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ne()}],"auto-rows":[{"auto-rows":ne()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...re(),`normal`]}],"justify-items":[{"justify-items":[...ie(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...ie()]}],"align-content":[{content:[`normal`,...re()]}],"align-items":[{items:[...ie(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...ie(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":re()}],"place-items":[{"place-items":[...ie(),`baseline`]}],"place-self":[{"place-self":[`auto`,...ie()]}],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:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ae()}],"inline-size":[{inline:[`auto`,...oe()]}],"min-inline-size":[{"min-inline":[`auto`,...oe()]}],"max-inline-size":[{"max-inline":[`none`,...oe()]}],"block-size":[{block:[`auto`,...se()]}],"min-block-size":[{"min-block":[`auto`,...se()]}],"max-block-size":[{"max-block":[`none`,...se()]}],w:[{w:[s,`screen`,...ae()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ae()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ae()]}],h:[{h:[`screen`,`lh`,...ae()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ae()]}],"max-h":[{"max-h":[`screen`,`lh`,...ae()]}],"font-size":[{text:[`base`,n,xi,mi]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Di,gi]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,ii,L]}],"font-family":[{font:[Si,_i,t]}],"font-features":[{"font-features":[L]}],"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,R,L]}],"line-clamp":[{"line-clamp":[I,`none`,R,hi]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,R,L]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,R,L]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...j(),`wavy`]}],"text-decoration-thickness":[{decoration:[I,`from-font`,`auto`,R,mi]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[I,`auto`,R,L]}],"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:[ri,R,L]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,R,L]}],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`,R,L]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:k()}],"bg-repeat":[{bg:ce()}],"bg-size":[{bg:le()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},ri,R,L],radial:[``,R,L],conic:[ri,R,L]},Ti,yi]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:ue()}],"gradient-via-pos":[{via:ue()}],"gradient-to-pos":[{to:ue()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:A()}],"border-w-x":[{"border-x":A()}],"border-w-y":[{"border-y":A()}],"border-w-s":[{"border-s":A()}],"border-w-e":[{"border-e":A()}],"border-w-bs":[{"border-bs":A()}],"border-w-be":[{"border-be":A()}],"border-w-t":[{"border-t":A()}],"border-w-r":[{"border-r":A()}],"border-w-b":[{"border-b":A()}],"border-w-l":[{"border-l":A()}],"divide-x":[{"divide-x":A()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":A()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...j(),`hidden`,`none`]}],"divide-style":[{divide:[...j(),`hidden`,`none`]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-bs":[{"border-bs":O()}],"border-color-be":[{"border-be":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:[...j(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[I,R,L]}],"outline-w":[{outline:[``,I,xi,mi]}],"outline-color":[{outline:O()}],shadow:[{shadow:[``,`none`,u,Ei,bi]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ei,bi]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:A()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[I,mi]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":A()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":[`none`,f,Ei,bi]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[I,R,L]}],"mix-blend":[{"mix-blend":[...fe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":fe()}],"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":[I]}],"mask-image-linear-from-pos":[{"mask-linear-from":pe()}],"mask-image-linear-to-pos":[{"mask-linear-to":pe()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":pe()}],"mask-image-t-to-pos":[{"mask-t-to":pe()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":pe()}],"mask-image-r-to-pos":[{"mask-r-to":pe()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":pe()}],"mask-image-b-to-pos":[{"mask-b-to":pe()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":pe()}],"mask-image-l-to-pos":[{"mask-l-to":pe()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":pe()}],"mask-image-x-to-pos":[{"mask-x-to":pe()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":pe()}],"mask-image-y-to-pos":[{"mask-y-to":pe()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[R,L]}],"mask-image-radial-from-pos":[{"mask-radial-from":pe()}],"mask-image-radial-to-pos":[{"mask-radial-to":pe()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"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":[I]}],"mask-image-conic-from-pos":[{"mask-conic-from":pe()}],"mask-image-conic-to-pos":[{"mask-conic-to":pe()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:k()}],"mask-repeat":[{mask:ce()}],"mask-size":[{mask:le()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,R,L]}],filter:[{filter:[``,`none`,R,L]}],blur:[{blur:me()}],brightness:[{brightness:[I,R,L]}],contrast:[{contrast:[I,R,L]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ei,bi]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:[``,I,R,L]}],"hue-rotate":[{"hue-rotate":[I,R,L]}],invert:[{invert:[``,I,R,L]}],saturate:[{saturate:[I,R,L]}],sepia:[{sepia:[``,I,R,L]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,R,L]}],"backdrop-blur":[{"backdrop-blur":me()}],"backdrop-brightness":[{"backdrop-brightness":[I,R,L]}],"backdrop-contrast":[{"backdrop-contrast":[I,R,L]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,I,R,L]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[I,R,L]}],"backdrop-invert":[{"backdrop-invert":[``,I,R,L]}],"backdrop-opacity":[{"backdrop-opacity":[I,R,L]}],"backdrop-saturate":[{"backdrop-saturate":[I,R,L]}],"backdrop-sepia":[{"backdrop-sepia":[``,I,R,L]}],"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`,R,L]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[I,`initial`,R,L]}],ease:[{ease:[`linear`,`initial`,_,R,L]}],delay:[{delay:[I,R,L]}],animate:[{animate:[`none`,v,R,L]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,R,L]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:he()}],"rotate-x":[{"rotate-x":he()}],"rotate-y":[{"rotate-y":he()}],"rotate-z":[{"rotate-z":he()}],scale:[{scale:ge()}],"scale-x":[{"scale-x":ge()}],"scale-y":[{"scale-y":ge()}],"scale-z":[{"scale-z":ge()}],"scale-3d":[`scale-3d`],skew:[{skew:_e()}],"skew-x":[{"skew-x":_e()}],"skew-y":[{"skew-y":_e()}],transform:[{transform:[R,L,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ve()}],"translate-x":[{"translate-x":ve()}],"translate-y":[{"translate-y":ve()}],"translate-z":[{"translate-z":ve()}],"translate-none":[`translate-none`],zoom:[{zoom:[ri,R,L]}],accent:[{accent:O()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:O()}],"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`,R,L]}],"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":O()}],"scrollbar-track-color":[{"scrollbar-track":O()}],"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`,R,L]}],fill:[{fill:[`none`,...O()]}],"stroke-w":[{stroke:[I,xi,mi,hi]}],stroke:[{stroke:[`none`,...O()]}],"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 B(...e){return Li(Xn(e))}var Ri=$n(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-all duration-150 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow-[0_2px_8px_rgba(26,48,98,0.30)] dark:shadow-[0_2px_14px_rgba(77,106,172,0.45)] hover:bg-[var(--palette-primary-light)] hover:shadow-[0_4px_14px_rgba(26,48,98,0.40)] dark:hover:shadow-[0_4px_20px_rgba(77,106,172,0.60)] active:bg-[var(--palette-primary-base)] active:shadow-[0_1px_4px_rgba(26,48,98,0.20)]`,destructive:`bg-destructive text-destructive-foreground shadow-[0_2px_8px_rgba(239,68,68,0.25)] hover:bg-destructive/85 hover:shadow-[0_4px_12px_rgba(239,68,68,0.35)] active:bg-destructive/95`,outline:`border border-[var(--ring)] bg-transparent text-foreground shadow-sm hover:border-primary hover:bg-primary hover:text-primary-foreground active:bg-primary/90 active:border-primary`,secondary:`bg-secondary dark:bg-[var(--glass-bg-elevated)] text-secondary-foreground border border-[var(--glass-border)] shadow-sm hover:bg-accent hover:text-foreground hover:border-[var(--palette-secondary-base)] active:bg-accent/70`,ghost:`text-foreground hover:bg-accent hover:text-accent-foreground active:bg-accent/70`,link:`text-primary underline-offset-4 hover:underline hover:text-[var(--palette-primary-light)]`},size:{default:`h-9 px-4 py-2`,sm:`h-8 rounded-lg px-3 text-xs`,lg:`h-10 rounded-lg px-8`,icon:`h-9 w-9`}},defaultVariants:{variant:`default`,size:`default`}}),V=(0,M.forwardRef)(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>(0,N.jsx)(r?cr:`button`,{className:B(Ri({variant:t,size:n,className:e})),ref:a,...i}));V.displayName=`Button`,typeof window<`u`&&window.document&&window.document.createElement;function H(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function zi(e,t){let n=M.createContext(t),r=e=>{let{children:t,...r}=e,i=M.useMemo(()=>r,Object.values(r));return(0,N.jsx)(n.Provider,{value:i,children:t})};r.displayName=e+`Provider`;function i(r){let i=M.useContext(n);if(i)return i;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return[r,i]}function Bi(e,t=[]){let n=[];function r(t,r){let i=M.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=M.useMemo(()=>o,Object.values(o));return(0,N.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=M.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>M.createContext(e));return function(n){let r=n?.[e]||t;return M.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Vi(i,...t)]}function Vi(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return M.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var Hi=globalThis?.document?M.useLayoutEffect:()=>{},Ui=M.useId||(()=>void 0),Wi=0;function Gi(e){let[t,n]=M.useState(Ui());return Hi(()=>{e||n(e=>e??String(Wi++))},[e]),e||(t?`radix-${t}`:``)}var Ki=M.useInsertionEffect||Hi;function qi({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=Ji({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=M.useRef(e!==void 0);M.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[c,M.useCallback(t=>{if(s){let n=Yi(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function Ji({defaultProp:e,onChange:t}){let[n,r]=M.useState(e),i=M.useRef(n),a=M.useRef(t);return Ki(()=>{a.current=t},[t]),M.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function Yi(e){return typeof e==`function`}var Xi=c(m(),1);function Zi(e){let t=Qi(e),n=M.forwardRef((e,n)=>{let{children:r,...i}=e,a=M.Children.toArray(r),o=a.find(ea);if(o){let e=o.props.children,r=a.map(t=>t===o?M.Children.count(e)>1?M.Children.only(null):M.isValidElement(e)?e.props.children:null:t);return(0,N.jsx)(t,{...i,ref:n,children:M.isValidElement(e)?M.cloneElement(e,void 0,r):null})}return(0,N.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Qi(e){let t=M.forwardRef((e,t)=>{let{children:n,...r}=e;if(M.isValidElement(n)){let e=na(n),i=ta(r,n.props);return n.type!==M.Fragment&&(i.ref=t?tr(t,e):e),M.cloneElement(n,i)}return M.Children.count(n)>1?M.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $i=Symbol(`radix.slottable`);function ea(e){return M.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===$i}function ta(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}}function na(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)}var ra=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Zi(`Primitive.${t}`),r=M.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,N.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ia(e,t){e&&Xi.flushSync(()=>e.dispatchEvent(t))}function aa(e){let t=M.useRef(e);return M.useEffect(()=>{t.current=e}),M.useMemo(()=>(...e)=>t.current?.(...e),[])}function oa(e,t=globalThis?.document){let n=aa(e);M.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var sa=`DismissableLayer`,ca=`dismissableLayer.update`,la=`dismissableLayer.pointerDownOutside`,ua=`dismissableLayer.focusOutside`,da,fa=M.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pa=M.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,l=M.useContext(fa),[u,d]=M.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=M.useState({}),m=nr(t,e=>d(e)),h=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),_=h.indexOf(g),v=u?h.indexOf(u):-1,y=l.layersWithOutsidePointerEventsDisabled.size>0,b=v>=_,x=ga(e=>{let t=e.target,n=[...l.branches].some(e=>e.contains(t));!b||n||(i?.(e),o?.(e),e.defaultPrevented||s?.())},f),S=_a(e=>{let t=e.target;[...l.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||s?.())},f);return oa(e=>{v===l.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),M.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(da=f.body.style.pointerEvents,f.body.style.pointerEvents=`none`),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),va(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=da)}},[u,f,n,l]),M.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),va())},[u,l]),M.useEffect(()=>{let e=()=>p({});return document.addEventListener(ca,e),()=>document.removeEventListener(ca,e)},[]),(0,N.jsx)(ra.div,{...c,ref:m,style:{pointerEvents:y?b?`auto`:`none`:void 0,...e.style},onFocusCapture:H(e.onFocusCapture,S.onFocusCapture),onBlurCapture:H(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:H(e.onPointerDownCapture,x.onPointerDownCapture)})});pa.displayName=sa;var ma=`DismissableLayerBranch`,ha=M.forwardRef((e,t)=>{let n=M.useContext(fa),r=M.useRef(null),i=nr(t,r);return M.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,N.jsx)(ra.div,{...e,ref:i})});ha.displayName=ma;function ga(e,t=globalThis?.document){let n=aa(e),r=M.useRef(!1),i=M.useRef(()=>{});return M.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){ya(la,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function _a(e,t=globalThis?.document){let n=aa(e),r=M.useRef(!1);return M.useEffect(()=>{let e=e=>{e.target&&!r.current&&ya(ua,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function va(){let e=new CustomEvent(ca);document.dispatchEvent(e)}function ya(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?ia(i,a):i.dispatchEvent(a)}var ba=`focusScope.autoFocusOnMount`,xa=`focusScope.autoFocusOnUnmount`,Sa={bubbles:!1,cancelable:!0},Ca=`FocusScope`,wa=M.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=M.useState(null),l=aa(i),u=aa(a),d=M.useRef(null),f=nr(t,e=>c(e)),p=M.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;M.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:ja(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||ja(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&ja(s)};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]),M.useEffect(()=>{if(s){Ma.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(ba,Sa);s.addEventListener(ba,l),s.dispatchEvent(t),t.defaultPrevented||(Ta(Fa(Da(s)),{select:!0}),document.activeElement===e&&ja(s))}return()=>{s.removeEventListener(ba,l),setTimeout(()=>{let t=new CustomEvent(xa,Sa);s.addEventListener(xa,u),s.dispatchEvent(t),t.defaultPrevented||ja(e??document.body,{select:!0}),s.removeEventListener(xa,u),Ma.remove(p)},0)}}},[s,l,u,p]);let m=M.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Ea(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&ja(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&ja(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,N.jsx)(ra.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});wa.displayName=Ca;function Ta(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(ja(r,{select:t}),document.activeElement!==n)return}function Ea(e){let t=Da(e);return[Oa(t,e),Oa(t.reverse(),e)]}function Da(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode: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}});for(;n.nextNode();)t.push(n.currentNode);return t}function Oa(e,t){for(let n of e)if(!ka(n,{upTo:t}))return n}function ka(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}function Aa(e){return e instanceof HTMLInputElement&&`select`in e}function ja(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Aa(e)&&t&&e.select()}}var Ma=Na();function Na(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Pa(e,t),e.unshift(t)},remove(t){e=Pa(e,t),e[0]?.resume()}}}function Pa(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Fa(e){return e.filter(e=>e.tagName!==`A`)}var Ia=`Portal`,La=M.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=M.useState(!1);Hi(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Xi.createPortal((0,N.jsx)(ra.div,{...r,ref:t}),o):null});La.displayName=Ia;function Ra(e,t){return M.useReducer((e,n)=>t[e][n]??e,e)}var za=e=>{let{present:t,children:n}=e,r=Ba(t),i=typeof n==`function`?n({present:r.isPresent}):M.Children.only(n),a=nr(r.ref,Ha(i));return typeof n==`function`||r.isPresent?M.cloneElement(i,{ref:a}):null};za.displayName=`Presence`;function Ba(e){let[t,n]=M.useState(),r=M.useRef(null),i=M.useRef(e),a=M.useRef(`none`),[o,s]=Ra(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return M.useEffect(()=>{let e=Va(r.current);a.current=o===`mounted`?e:`none`},[o]),Hi(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=Va(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),Hi(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=Va(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=Va(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:M.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function Va(e){return e?.animationName||`none`}function Ha(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)}var Ua=0;function Wa(){M.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??Ga()),document.body.insertAdjacentElement(`beforeend`,e[1]??Ga()),Ua++,()=>{Ua===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),Ua--}},[])}function Ga(){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}var Ka=function(){return Ka=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},Ka.apply(this,arguments)};function qa(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 Ja(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 Ya=`right-scroll-bar-position`,Xa=`width-before-scroll-bar`,Za=`with-scroll-bars-hidden`,Qa=`--removed-body-scroll-bar-size`;function $a(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function eo(e,t){var n=(0,M.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 to=typeof window<`u`?M.useLayoutEffect:M.useEffect,no=new WeakMap;function ro(e,t){var n=eo(t||null,function(t){return e.forEach(function(e){return $a(e,t)})});return to(function(){var t=no.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||$a(e,null)}),i.forEach(function(e){r.has(e)||$a(e,a)})}no.set(n,e)},[e]),n}function io(e){return e}function ao(e,t){t===void 0&&(t=io);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 oo(e){e===void 0&&(e={});var t=ao(null);return t.options=Ka({async:!0,ssr:!1},e),t}var so=function(e){var t=e.sideCar,n=qa(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 M.createElement(r,Ka({},n))};so.isSideCarExport=!0;function co(e,t){return e.useMedium(t),so}var lo=oo(),U=function(){},W=M.forwardRef(function(e,t){var n=M.useRef(null),r=M.useState({onScrollCapture:U,onWheelCapture:U,onTouchMoveCapture:U}),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=qa(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=ro([n,t]),C=Ka(Ka({},b),i);return M.createElement(M.Fragment,null,u&&M.createElement(x,{sideCar:lo,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?M.cloneElement(M.Children.only(s),Ka(Ka({},C),{ref:S})):M.createElement(v,Ka({},C,{className:c,ref:S}),s))});W.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},W.classNames={fullWidth:Xa,zeroRight:Ya};var uo,fo=function(){if(uo)return uo;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function po(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=fo();return t&&e.setAttribute(`nonce`,t),e}function mo(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ho(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var go=function(){var e=0,t=null;return{add:function(n){e==0&&(t=po())&&(mo(t,n),ho(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},_o=function(){var e=go();return function(t,n){M.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},vo=function(){var e=_o();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},yo={left:0,top:0,right:0,gap:0},bo=function(e){return parseInt(e||``,10)||0},xo=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[bo(n),bo(r),bo(i)]},So=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return yo;var t=xo(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])}},Co=vo(),wo=`data-scroll-locked`,To=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
95
+ `).replace(kd,``)}function jd(e,t){return t=Ad(t),Ad(e)===t}function Md(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Jt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Jt(e,``+r);break;case`className`:Mt(e,`class`,r);break;case`tabIndex`:Mt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Mt(e,n,r);break;case`style`:Zt(e,r,o);break;case`data`:if(t!==`object`){Mt(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=tn(``+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}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Md(e,t,`name`,a.name,a,null),Md(e,t,`formEncType`,a.formEncType,a,null),Md(e,t,`formMethod`,a.formMethod,a,null),Md(e,t,`formTarget`,a.formTarget,a,null)):(Md(e,t,`encType`,a.encType,a,null),Md(e,t,`method`,a.method,a,null),Md(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=tn(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=nn);break;case`onScroll`:r!=null&&$(`scroll`,e);break;case`onScrollEnd`:r!=null&&$(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=tn(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:$(`beforetoggle`,e),$(`toggle`,e),jt(e,`popover`,r);break;case`xlinkActuate`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Nt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Nt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Nt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:jt(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=$t.get(n)||n,jt(e,n,r))}}function Nd(e,t,n,r,a,o){switch(n){case`style`:Zt(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`?Jt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Jt(e,``+r);break;case`onScroll`:r!=null&&$(`scroll`,e);break;case`onScrollEnd`:r!=null&&$(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=nn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!wt.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[P]||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,``):jt(e,n,r)}}}function Pd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:$(`error`,e),$(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Md(e,t,o,s,n,null)}}a&&Md(e,t,`srcSet`,n.srcSet,n,null),r&&Md(e,t,`src`,n.src,n,null);return;case`input`:$(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Md(e,t,r,d,n,null)}}Ut(e,o,c,l,u,s,a,!1);return;case`select`:for(a in $(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Md(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Gt(e,!!r,n,!0):Gt(e,!!r,t,!1);return;case`textarea`:for(s in $(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Md(e,t,s,c,n,null)}qt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Md(e,t,l,r,n,null)}return;case`dialog`:$(`beforetoggle`,e),$(`toggle`,e),$(`cancel`,e),$(`close`,e);break;case`iframe`:case`object`:$(`load`,e);break;case`video`:case`audio`:for(r=0;r<gd.length;r++)$(gd[r],e);break;case`image`:$(`error`,e),$(`load`,e);break;case`details`:$(`toggle`,e);break;case`embed`:case`source`:case`link`:$(`error`,e),$(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Md(e,t,u,r,n,null)}return;default:if(Qt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Nd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Md(e,t,c,r,n,null))}function Fd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Md(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Md(e,t,p,m,r,f)}}Ht(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Md(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Md(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Gt(e,!!n,n?[]:``,!1):Gt(e,!!n,t,!0)):Gt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Md(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Md(e,t,s,a,r,o)}Kt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Md(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Md(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Md(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Md(e,t,u,p,r,m)}return;default:if(Qt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Nd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Nd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Md(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Md(e,t,f,p,r,m)}function Id(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ld(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Id(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Rd=null,zd=null;function Bd(e){return e.nodeType===9?e:e.ownerDocument}function Vd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Hd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Ud(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wd=null;function Gd(){var e=window.event;return e&&e.type===`popstate`?e===Wd?!1:(Wd=e,!0):(Wd=null,!1)}var Kd=typeof setTimeout==`function`?setTimeout:void 0,qd=typeof clearTimeout==`function`?clearTimeout:void 0,Jd=typeof Promise==`function`?Promise:void 0,Yd=typeof queueMicrotask==`function`?queueMicrotask:Jd===void 0?Kd:function(e){return Jd.resolve(null).then(e).catch(Xd)};function Xd(e){setTimeout(function(){throw e})}function Zd(e){return e===`head`}function Qd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)pf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,pf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[_t]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&pf(e.ownerDocument.body);n=i}while(n);Np(t)}function $d(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function ef(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:ef(n),vt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[_t])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=cf(e.nextSibling),e===null)break}return null}function nf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cf(e.nextSibling),e===null))return null;return e}function rf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cf(e.nextSibling),e===null))return null;return e}function af(e){return e.data===`$?`||e.data===`$~`}function of(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function sf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function cf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var lf=null;function uf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return cf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function df(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function ff(e,t,n){switch(t=Bd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function pf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vt(e)}var mf=new Map,hf=new Set;function gf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _f=k.d;k.d={f:vf,r:yf,D:Sf,C:Cf,L:wf,m:Tf,X:Df,S:Ef,M:Of};function vf(){var e=_f.f(),t=yu();return e||t}function yf(e){var t=bt(e);t!==null&&t.tag===5&&t.type===`form`?Ts(t):_f.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Vt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),St(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Vt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Vt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Vt(n.imageSizes)+`"]`)):i+=`[href="`+Vt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),St(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Vt(r)+`"][href="`+Vt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),St(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=F(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);St(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=F(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),St(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=F(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),St(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var a=(a=me.current)?gf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=F(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=F(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),o||Nf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=F(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Af(e){return`href="`+Vt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),St(t),e.head.appendChild(t))}function Pf(e){return`[src="`+Vt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Vt(n.href)+`"]`);if(r)return t.instance=r,St(r),r;var a=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),St(r),Pd(r,`style`,a),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Af(n.href);var o=e.querySelector(jf(a));if(o)return t.state.loading|=4,t.instance=o,St(o),o;r=Mf(n),(a=mf.get(a))&&Rf(r,a),o=(e.ownerDocument||e).createElement(`link`),St(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(a=e.querySelector(Ff(o)))?(t.instance=a,St(a),a):(r=n,(a=mf.get(o))&&(r=h({},n),zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),St(a),Pd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Rf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Bf=null;function Vf(e,t,n){if(Bf===null){var r=new Map,i=Bf=new Map;i.set(n,r)}else i=Bf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[_t]||a[dt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Hf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,St(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),St(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Ld());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Jf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Qf={$$typeof:C,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function $f(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=et(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=et(0),this.hiddenUpdates=et(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ui(3,null,null,t),e.current=a,a.stateNode=e,t=aa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ra(a),e}function tp(e){return e?(e=ci,e):ci}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=Ba(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Va(e,r,t),n!==null&&(mu(n,e,t),Ha(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=ai(e,67108864);t!==null&&mu(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=fu();t=ot(t);var n=ai(e,t);n!==null&&mu(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=O.T;O.T=null;var a=k.p;try{k.p=2,up(e,t,n,r)}finally{k.p=a,O.T=i}}function lp(e,t,n,r){var i=O.T;O.T=null;var a=k.p;try{k.p=8,up(e,t,n,r)}finally{k.p=a,O.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)Cd(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=bt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=N(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-We(o);s.entanglements[1]|=c,o&=~c}nd(a),!(q&6)&&(eu=Me()+500,rd(0,!1))}}break;case 31:case 13:s=ai(a,2),s!==null&&mu(s,a,2),yu(),ip(a,2)}if(a=dp(r),a===null&&Cd(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Cd(e,t,r,null,n)}}function dp(e){return e=an(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=yt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function mp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ne()){case Pe:return 2;case Fe:return 8;case Ie:case Le:return 32;case Re:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=bt(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=yt(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,lt(e.priority,function(){op(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,lt(e.priority,function(){op(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);rn=r,n.target.dispatchEvent(r),rn=null}else return t=bt(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,n){e.blockedOn===n&&(e.blockedOn=null,hp||(hp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jp===e&&(jp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(pp(r||n)===null)continue;break}var a=bt(n);a!==null&&(e.splice(t,3),t-=3,Cs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[P]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[P]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;np(n,fu(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),yu(),t[ft]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=n.version;if(Lp!==`19.2.7`)throw Error(i(527,Lp,`19.2.7`));k.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=d(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:O,reconcilerVersion:`19.2.7`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{Ve=zp.inject(Rp),He=zp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Ks,s=qs,c=Js;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ep(e,1,!1,null,null,n,r,null,o,s,c,Pp),e[ft]=t.current,xd(e),new Fp(t)}})),g=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()})),_=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(){}},v=new class extends _{#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`}},y={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},b=new class{#e=y;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 x(e){setTimeout(e,0)}var S=typeof window>`u`||`Deno`in globalThis;function C(){}function w(e,t){return typeof e==`function`?e(t):e}function T(e){return typeof e==`number`&&e>=0&&e!==1/0}function ee(e,t){return Math.max(e+(t||0)-Date.now(),0)}function te(e,t){return typeof e==`function`?e(t):e}function E(e,t){return typeof e==`function`?e(t):e}function ne(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==ie(o,t.options))return!1}else if(!ae(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 re(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(D(t.options.mutationKey)!==D(a))return!1}else if(!ae(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function ie(e,t){return(t?.queryKeyHashFn||D)(e)}function D(e){return JSON.stringify(e,(e,t)=>ce(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function ae(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>ae(e[n],t[n])):!1}var oe=Object.prototype.hasOwnProperty;function se(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=k(e)&&k(t);if(!r&&!(ce(e)&&ce(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:oe.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=se(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function O(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 k(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ce(e){if(!le(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!le(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function le(e){return Object.prototype.toString.call(e)===`[object Object]`}function ue(e){return new Promise(t=>{b.setTimeout(t,e)})}function de(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:se(e,t)}function A(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function j(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var fe=Symbol();function pe(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===fe?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function me(e,t){return typeof e==`function`?e(...t):!!e}function he(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 ge=(()=>{let e=()=>S;return{isServer(){return e()},setIsServer(t){e=t}}})();function _e(){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 ve=x;function ye(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=ve,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 be=ye(),xe=new class extends _{#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 Se(e){return Math.min(1e3*2**e,3e4)}function Ce(e){return(e??`online`)===`online`?xe.isOnline():!0}var we=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Te(e){let t=!1,n=0,r,i=_e(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new we(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>v.isFocused()&&(e.networkMode===`always`||xe.isOnline())&&e.canRun(),u=()=>Ce(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??(ge.isServer()?0:3),o=e.retryDelay??Se,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),ue(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 Ee=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),T(this.gcTime)&&(this.#e=b.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ge.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(b.clearTimeout(this.#e),this.#e=void 0)}};function De(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=>{he(e,()=>t.signal,()=>n=!0)},u=pe(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=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?j:A;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?ke:Oe,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:Oe(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Oe(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 ke(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Ae=class extends Ee{#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=Ne(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=Ne(this.options);e.data!==void 0&&(this.setState(Me(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=de(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(C).catch(C):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=>E(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fe||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>te(e.options.staleTime,this)===`static`):!1}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:!ee(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=pe(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`?De(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=Te({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof we&&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 we){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,...je(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Me(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),be.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function je(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ce(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Me(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Ne(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 Pe=class extends _{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=_e(),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),Ie(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Le(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Le(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 E(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&&!O(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&Re(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||E(this.options.enabled,this.#t)!==E(t.enabled,this.#t)||te(this.options.staleTime,this.#t)!==te(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||E(this.options.enabled,this.#t)!==E(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 Be(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(C)),t}#g(){this.#b();let e=te(this.options.staleTime,this.#t);if(ge.isServer()||this.#r.isStale||!T(e))return;let t=ee(this.#r.dataUpdatedAt,e)+1;this.#d=b.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,!(ge.isServer()||E(this.options.enabled,this.#t)===!1||!T(this.#p)||this.#p===0)&&(this.#f=b.setInterval(()=>{(this.options.refetchIntervalInBackground||v.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(b.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(b.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&&Ie(e,t),o=i&&Re(e,n,t,r);(a||o)&&(l={...l,...je(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=de(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=de(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:ze(e,t),refetch:this.refetch,promise:this.#o,isEnabled:E(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=()=>{i(this.#o=x.promise=_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();break}}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),!O(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){be.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function Fe(e,t){return E(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&E(t.retryOnMount,e)===!1)}function Ie(e,t){return Fe(e,t)||e.state.data!==void 0&&Le(e,t,t.refetchOnMount)}function Le(e,t,n){if(E(t.enabled,e)!==!1&&te(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&ze(e,t)}return!1}function Re(e,t,n,r){return(e!==t||E(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&ze(e,n)}function ze(e,t){return E(t.enabled,e)!==!1&&e.isStaleByTime(te(t.staleTime,e))}function Be(e,t){return!O(e.getCurrentResult(),t)}var Ve=class extends Ee{#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||He(),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=Te({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),be.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function He(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Ue=class extends _{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 Ve({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=We(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=We(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=We(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=We(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){be.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=>re(t,e))}findAll(e={}){return this.getAll().filter(t=>re(e,t))}notify(e){be.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return be.batch(()=>Promise.all(e.map(e=>e.continue().catch(C))))}};function We(e){return e.options.scope?.id}var Ge=class extends _{#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),O(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&D(t.mutationKey)!==D(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??He();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){be.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)})})}},Ke=class extends _{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??ie(r,t),a=this.get(i);return a||(a=new Ae({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(){be.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=>ne(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>ne(e,t)):t}notify(e){be.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){be.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){be.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},qe=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Ke,this.#t=e.mutationCache||new Ue,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=v.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=xe.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(te(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=w(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return be.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;be.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return be.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=be.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(C).catch(C)}invalidateQueries(e,t={}){return be.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=be.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(C)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(C)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(te(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(C).catch(C)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(C).catch(C)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return xe.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(D(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{ae(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(D(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{ae(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||=ie(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===fe&&(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()}},Je=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})),Ye=o(((e,t)=>{t.exports=Je()})),M=c(u(),1),N=Ye(),Xe=M.createContext(void 0),Ze=e=>{let t=M.useContext(Xe);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Qe=({client:e,children:t})=>(M.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,N.jsx)(Xe.Provider,{value:e,children:t})),$e=M.createContext(!1),et=()=>M.useContext($e);$e.Provider;function tt(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var nt=M.createContext(tt()),rt=()=>M.useContext(nt),it=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?me(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},at=e=>{M.useEffect(()=>{e.clearReset()},[e])},ot=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||me(n,[e.error,r])),st=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))}},ct=(e,t)=>e.isLoading&&e.isFetching&&!t,lt=(e,t)=>e?.suspense&&t.isPending,ut=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function dt(e,t,n){let r=et(),i=rt(),a=Ze(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,st(o),it(o,i,s),at(i);let l=!a.getQueryCache().get(o.queryHash),[u]=M.useState(()=>new t(a,o)),d=u.getOptimisticResult(o),f=!r&&c;if(M.useSyncExternalStore(M.useCallback(e=>{let t=f?u.subscribe(be.batchCalls(e)):C;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),M.useEffect(()=>{u.setOptions(o)},[o,u]),lt(o,d))throw ut(o,u,i);if(ot({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&&!ge.isServer()&&ct(d,r)&&(l?ut(o,u,i):s?.promise)?.catch(C).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?d:u.trackResult(d)}function P(e,t){return dt(e,Pe,t)}function ft(e,t){let n=Ze(t),[r]=M.useState(()=>new Ge(n,e));M.useEffect(()=>{r.setOptions(e)},[r,e]);let i=M.useSyncExternalStore(M.useCallback(e=>r.subscribe(be.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=M.useCallback((e,t)=>{r.mutate(e,t).catch(C)},[r]);if(i.error&&me(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var pt=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),mt=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),ht=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),gt=e=>{let t=ht(e);return t.charAt(0).toUpperCase()+t.slice(1)},_t={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`},vt=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},yt=(0,M.createContext)({}),bt=()=>(0,M.useContext)(yt),xt=(0,M.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=``}=bt()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,M.createElement)(`svg`,{ref:c,..._t,width:t??l??_t.width,height:t??l??_t.height,stroke:e??f,strokeWidth:m,className:pt(`lucide`,p,i),...!a&&!vt(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,M.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),F=(e,t)=>{let n=(0,M.forwardRef)(({className:n,...r},i)=>(0,M.createElement)(xt,{ref:i,iconNode:t,className:pt(`lucide-${mt(gt(e))}`,`lucide-${e}`,n),...r}));return n.displayName=gt(e),n},St=F(`arrow-down-up`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`m21 8-4-4-4 4`,key:`1c9v7m`}],[`path`,{d:`M17 4v16`,key:`7dpous`}]]),Ct=F(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),wt=F(`baseline`,[[`path`,{d:`M4 20h16`,key:`14thso`}],[`path`,{d:`m6 16 6-12 6 12`,key:`1b4byz`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),Tt=F(`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`}]]),Et=F(`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`}]]),Dt=F(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Ot=F(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),kt=F(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),At=F(`chevrons-up-down`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),jt=F(`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`}]]),Mt=F(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Nt=F(`clipboard-check`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`m9 14 2 2 4-4`,key:`df797q`}]]),Pt=F(`clipboard-list`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),Ft=F(`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`}]]),It=F(`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`}]]),Lt=F(`crop`,[[`path`,{d:`M6 2v14a2 2 0 0 0 2 2h14`,key:`ron5a4`}],[`path`,{d:`M18 22V8a2 2 0 0 0-2-2H2`,key:`7s9ehn`}]]),Rt=F(`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`}]]),zt=F(`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`}]]),Bt=F(`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`}]]),Vt=F(`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`}]]),Ht=F(`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`}]]),Ut=F(`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`}]]),Wt=F(`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`}]]),Gt=F(`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`}]]),Kt=F(`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`}]]),qt=F(`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`}]]),Jt=F(`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`}]]),Yt=F(`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`}]]),Xt=F(`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`}]]),Zt=F(`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`}]]),Qt=F(`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`}]]),$t=F(`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`}]]),en=F(`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`}]]),tn=F(`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`}]]),nn=F(`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`}]]),rn=F(`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`}]]),an=F(`package-check`,[[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`path`,{d:`m16 17 2 2 4-4`,key:`uh5qu3`}],[`path`,{d:`M21 11.127V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.32-.753`,key:`kpkbpo`}],[`path`,{d:`M3.29 7 12 12l8.71-5`,key:`19ckod`}],[`path`,{d:`m7.5 4.27 8.997 5.148`,key:`9yrvtv`}]]),on=F(`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=F(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),cn=F(`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`}]]),ln=F(`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`}]]),un=F(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),dn=F(`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`}]]),fn=F(`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`}]]),pn=F(`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`}]]),mn=F(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),hn=F(`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`}]]),gn=F(`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`}]]),_n=F(`store`,[[`path`,{d:`M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5`,key:`slp6dd`}],[`path`,{d:`M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244`,key:`o0xfot`}],[`path`,{d:`M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05`,key:`wn3emo`}]]),vn=F(`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`}]]),yn=F(`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`}]]),bn=F(`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`}]]),xn=F(`tags`,[[`path`,{d:`M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z`,key:`16rjxf`}],[`path`,{d:`M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193`,key:`178nd4`}],[`circle`,{cx:`10.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`12ikhr`}]]),Sn=F(`text-align-center`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M17 12H7`,key:`16if0g`}],[`path`,{d:`M19 19H5`,key:`vjpgq2`}]]),Cn=F(`text-align-end`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M21 19H7`,key:`4cu937`}]]),wn=F(`text-align-start`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M17 19H3`,key:`z6ezky`}]]),Tn=F(`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`}]]),En=F(`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`}]]),Dn=F(`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`}]]),On=F(`underline`,[[`path`,{d:`M6 4v6a6 6 0 0 0 12 0V4`,key:`9kb039`}],[`line`,{x1:`4`,x2:`20`,y1:`20`,y2:`20`,key:`nun2al`}]]),kn=F(`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`}]]),An=F(`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`}]]),jn=F(`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`}]]),Mn=F(`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`}]]),Nn=F(`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`}]]),Pn=F(`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`}]]),Fn=F(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),In=c(g(),1),Ln=`layout_variant`,Rn=3600*24*7,zn=`sidebar`,Bn=M.createContext(null);function Vn(e){if(typeof document>`u`)return null;let t=document.cookie.match(RegExp(`(?:^|;\\s*)${e}=([^;]+)`));return t?decodeURIComponent(t[1]):null}function Hn(e,t){typeof document>`u`||(document.cookie=`${e}=${encodeURIComponent(t)}; Path=/; Max-Age=${Rn}; SameSite=Lax`)}function Un(){let e=Vn(Ln);return e===`inset`||e===`sidebar`||e===`floating`?e:zn}function Wn({children:e}){let[t,n]=M.useState(Un),r=M.useCallback(e=>{Hn(Ln,e),n(e)},[]),i=M.useMemo(()=>({variant:t,setVariant:r,defaultVariant:zn}),[t,r]);return(0,N.jsx)(Bn.Provider,{value:i,children:e})}function Gn(){let e=M.useContext(Bn);if(!e)throw Error(`useLayout must be used inside LayoutProvider`);return e}var Kn=`sidebar_state`;function qn(){let e=Vn(Kn);return e===`true`?!0:e===`false`?!1:null}function Jn(e){Hn(Kn,String(e))}function Yn(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=Yn(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Xn(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Yn(e))&&(r&&(r+=` `),r+=t);return r}var Zn=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Qn=Xn,$n=(e,t)=>n=>{if(t?.variants==null)return Qn(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=Zn(t)||Zn(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 Qn(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)};function er(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function tr(...e){return t=>{let n=!1,r=e.map(e=>{let r=er(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():er(e[t],null)}}}}function nr(...e){return M.useCallback(tr(...e),e)}var rr=Symbol.for(`react.lazy`),ir=M.use;function ar(e){return typeof e==`object`&&!!e&&`then`in e}function or(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===rr&&`_payload`in e&&ar(e._payload)}function sr(e){let t=lr(e),n=M.forwardRef((e,n)=>{let{children:r,...i}=e;or(r)&&typeof ir==`function`&&(r=ir(r._payload));let a=M.Children.toArray(r),o=a.find(dr);if(o){let e=o.props.children,r=a.map(t=>t===o?M.Children.count(e)>1?M.Children.only(null):M.isValidElement(e)?e.props.children:null:t);return(0,N.jsx)(t,{...i,ref:n,children:M.isValidElement(e)?M.cloneElement(e,void 0,r):null})}return(0,N.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var cr=sr(`Slot`);function lr(e){let t=M.forwardRef((e,t)=>{let{children:n,...r}=e;if(or(n)&&typeof ir==`function`&&(n=ir(n._payload)),M.isValidElement(n)){let e=pr(n),i=fr(r,n.props);return n.type!==M.Fragment&&(i.ref=t?tr(t,e):e),M.cloneElement(n,i)}return M.Children.count(n)>1?M.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ur=Symbol(`radix.slottable`);function dr(e){return M.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===ur}function fr(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}}function pr(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)}var mr=(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},hr=(e,t)=>({classGroupId:e,validator:t}),gr=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),_r=`-`,vr=[],yr=`arbitrary..`,br=e=>{let t=Cr(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Sr(e);let n=e.split(_r);return xr(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?mr(i,t):t:i||vr}return n[e]||vr}}},xr=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=xr(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(_r):e.slice(t).join(_r),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Sr=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?yr+r:void 0})(),Cr=e=>{let{theme:t,classGroups:n}=e;return wr(n,t)},wr=(e,t)=>{let n=gr();for(let r in e){let i=e[r];Tr(i,n,r,t)}return n},Tr=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Er(i,t,n,r)}},Er=(e,t,n,r)=>{if(typeof e==`string`){Dr(e,t,n);return}if(typeof e==`function`){Or(e,t,n,r);return}kr(e,t,n,r)},Dr=(e,t,n)=>{let r=e===``?t:Ar(t,e);r.classGroupId=n},Or=(e,t,n,r)=>{if(jr(e)){Tr(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(hr(n,e))},kr=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Tr(o,Ar(t,a),n,r)}},Ar=(e,t)=>{let n=e,r=t.split(_r),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=gr(),n.nextPart.set(t,i)),n=i}return n},jr=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Mr=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)}}},Nr=`!`,Pr=`:`,Fr=[],Ir=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Lr=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===Pr){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(Nr)?(c=s.slice(0,-1),l=!0):s.startsWith(Nr)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Ir(t,l,c,u)};if(t){let e=t+Pr,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Ir(Fr,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Rr=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}},zr=e=>({cache:Mr(e.cacheSize),parseClassName:Lr(e),sortModifiers:Rr(e),postfixLookupClassGroupIds:Br(e),...br(e)}),Br=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},Vr=/\s+/,Hr=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Vr),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?_+Nr:_,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},Ur=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Wr(n))&&(i&&(i+=` `),i+=r);return i},Wr=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Wr(e[r]))&&(n&&(n+=` `),n+=t);return n},Gr=(e,...t)=>{let n,r,i,a,o=o=>(n=zr(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=Hr(e,n);return i(e,a),a};return a=o,(...e)=>a(Ur(...e))},Kr=[],qr=e=>{let t=t=>t[e]||Kr;return t.isThemeGetter=!0,t},Jr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Yr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Xr=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Zr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qr=/\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$/,$r=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ei=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ti=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ni=e=>Xr.test(e),I=e=>!!e&&!Number.isNaN(Number(e)),ri=e=>!!e&&Number.isInteger(Number(e)),ii=e=>e.endsWith(`%`)&&I(e.slice(0,-1)),ai=e=>Zr.test(e),oi=()=>!0,si=e=>Qr.test(e)&&!$r.test(e),ci=()=>!1,li=e=>ei.test(e),ui=e=>ti.test(e),di=e=>!L(e)&&!R(e),fi=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)),pi=e=>Oi(e,Mi,ci),L=e=>Jr.test(e),mi=e=>Oi(e,Ni,si),hi=e=>Oi(e,Pi,I),gi=e=>Oi(e,Fi,oi),_i=e=>Oi(e,z,ci),vi=e=>Oi(e,Ai,ci),yi=e=>Oi(e,ji,ui),bi=e=>Oi(e,Ii,li),R=e=>Yr.test(e),xi=e=>ki(e,Ni),Si=e=>ki(e,z),Ci=e=>ki(e,Ai),wi=e=>ki(e,Mi),Ti=e=>ki(e,ji),Ei=e=>ki(e,Ii,!0),Di=e=>ki(e,Fi,!0),Oi=(e,t,n)=>{let r=Jr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ki=(e,t,n=!1)=>{let r=Yr.exec(e);return r?r[1]?t(r[1]):n:!1},Ai=e=>e===`position`||e===`percentage`,ji=e=>e===`image`||e===`url`,Mi=e=>e===`length`||e===`size`||e===`bg-size`,Ni=e=>e===`length`,Pi=e=>e===`number`,z=e=>e===`family-name`,Fi=e=>e===`number`||e===`weight`,Ii=e=>e===`shadow`,Li=Gr(()=>{let e=qr(`color`),t=qr(`font`),n=qr(`text`),r=qr(`font-weight`),i=qr(`tracking`),a=qr(`leading`),o=qr(`breakpoint`),s=qr(`container`),c=qr(`spacing`),l=qr(`radius`),u=qr(`shadow`),d=qr(`inset-shadow`),f=qr(`text-shadow`),p=qr(`drop-shadow`),m=qr(`blur`),h=qr(`perspective`),g=qr(`aspect`),_=qr(`ease`),v=qr(`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(),R,L],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[R,L,c],T=()=>[ni,`full`,`auto`,...w()],ee=()=>[ri,`none`,`subgrid`,R,L],te=()=>[`auto`,{span:[`full`,ri,R,L]},ri,R,L],E=()=>[ri,`auto`,R,L],ne=()=>[`auto`,`min`,`max`,`fr`,R,L],re=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],ie=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],D=()=>[`auto`,...w()],ae=()=>[ni,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],oe=()=>[ni,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],se=()=>[ni,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],O=()=>[e,R,L],k=()=>[...b(),Ci,vi,{position:[R,L]}],ce=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],le=()=>[`auto`,`cover`,`contain`,wi,pi,{size:[R,L]}],ue=()=>[ii,xi,mi],de=()=>[``,`none`,`full`,l,R,L],A=()=>[``,I,xi,mi],j=()=>[`solid`,`dashed`,`dotted`,`double`],fe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],pe=()=>[I,ii,Ci,vi],me=()=>[``,`none`,m,R,L],he=()=>[`none`,I,R,L],ge=()=>[`none`,I,R,L],_e=()=>[I,R,L],ve=()=>[ni,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[ai],breakpoint:[ai],color:[oi],container:[ai],"drop-shadow":[ai],ease:[`in`,`out`,`in-out`],font:[di],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[ai],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[ai],shadow:[ai],spacing:[`px`,I],text:[ai],"text-shadow":[ai],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,ni,L,R,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,R,L]}],"container-named":[fi],columns:[{columns:[I,L,R,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:[ri,`auto`,R,L]}],basis:[{basis:[ni,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[I,ni,`auto`,`initial`,`none`,L]}],grow:[{grow:[``,I,R,L]}],shrink:[{shrink:[``,I,R,L]}],order:[{order:[ri,`first`,`last`,`none`,R,L]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ne()}],"auto-rows":[{"auto-rows":ne()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...re(),`normal`]}],"justify-items":[{"justify-items":[...ie(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...ie()]}],"align-content":[{content:[`normal`,...re()]}],"align-items":[{items:[...ie(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...ie(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":re()}],"place-items":[{"place-items":[...ie(),`baseline`]}],"place-self":[{"place-self":[`auto`,...ie()]}],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:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ae()}],"inline-size":[{inline:[`auto`,...oe()]}],"min-inline-size":[{"min-inline":[`auto`,...oe()]}],"max-inline-size":[{"max-inline":[`none`,...oe()]}],"block-size":[{block:[`auto`,...se()]}],"min-block-size":[{"min-block":[`auto`,...se()]}],"max-block-size":[{"max-block":[`none`,...se()]}],w:[{w:[s,`screen`,...ae()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ae()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ae()]}],h:[{h:[`screen`,`lh`,...ae()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ae()]}],"max-h":[{"max-h":[`screen`,`lh`,...ae()]}],"font-size":[{text:[`base`,n,xi,mi]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Di,gi]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,ii,L]}],"font-family":[{font:[Si,_i,t]}],"font-features":[{"font-features":[L]}],"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,R,L]}],"line-clamp":[{"line-clamp":[I,`none`,R,hi]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,R,L]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,R,L]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...j(),`wavy`]}],"text-decoration-thickness":[{decoration:[I,`from-font`,`auto`,R,mi]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[I,`auto`,R,L]}],"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:[ri,R,L]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,R,L]}],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`,R,L]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:k()}],"bg-repeat":[{bg:ce()}],"bg-size":[{bg:le()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},ri,R,L],radial:[``,R,L],conic:[ri,R,L]},Ti,yi]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:ue()}],"gradient-via-pos":[{via:ue()}],"gradient-to-pos":[{to:ue()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:A()}],"border-w-x":[{"border-x":A()}],"border-w-y":[{"border-y":A()}],"border-w-s":[{"border-s":A()}],"border-w-e":[{"border-e":A()}],"border-w-bs":[{"border-bs":A()}],"border-w-be":[{"border-be":A()}],"border-w-t":[{"border-t":A()}],"border-w-r":[{"border-r":A()}],"border-w-b":[{"border-b":A()}],"border-w-l":[{"border-l":A()}],"divide-x":[{"divide-x":A()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":A()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...j(),`hidden`,`none`]}],"divide-style":[{divide:[...j(),`hidden`,`none`]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-bs":[{"border-bs":O()}],"border-color-be":[{"border-be":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:[...j(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[I,R,L]}],"outline-w":[{outline:[``,I,xi,mi]}],"outline-color":[{outline:O()}],shadow:[{shadow:[``,`none`,u,Ei,bi]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ei,bi]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:A()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[I,mi]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":A()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":[`none`,f,Ei,bi]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[I,R,L]}],"mix-blend":[{"mix-blend":[...fe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":fe()}],"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":[I]}],"mask-image-linear-from-pos":[{"mask-linear-from":pe()}],"mask-image-linear-to-pos":[{"mask-linear-to":pe()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":pe()}],"mask-image-t-to-pos":[{"mask-t-to":pe()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":pe()}],"mask-image-r-to-pos":[{"mask-r-to":pe()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":pe()}],"mask-image-b-to-pos":[{"mask-b-to":pe()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":pe()}],"mask-image-l-to-pos":[{"mask-l-to":pe()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":pe()}],"mask-image-x-to-pos":[{"mask-x-to":pe()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":pe()}],"mask-image-y-to-pos":[{"mask-y-to":pe()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[R,L]}],"mask-image-radial-from-pos":[{"mask-radial-from":pe()}],"mask-image-radial-to-pos":[{"mask-radial-to":pe()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"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":[I]}],"mask-image-conic-from-pos":[{"mask-conic-from":pe()}],"mask-image-conic-to-pos":[{"mask-conic-to":pe()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:k()}],"mask-repeat":[{mask:ce()}],"mask-size":[{mask:le()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,R,L]}],filter:[{filter:[``,`none`,R,L]}],blur:[{blur:me()}],brightness:[{brightness:[I,R,L]}],contrast:[{contrast:[I,R,L]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ei,bi]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:[``,I,R,L]}],"hue-rotate":[{"hue-rotate":[I,R,L]}],invert:[{invert:[``,I,R,L]}],saturate:[{saturate:[I,R,L]}],sepia:[{sepia:[``,I,R,L]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,R,L]}],"backdrop-blur":[{"backdrop-blur":me()}],"backdrop-brightness":[{"backdrop-brightness":[I,R,L]}],"backdrop-contrast":[{"backdrop-contrast":[I,R,L]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,I,R,L]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[I,R,L]}],"backdrop-invert":[{"backdrop-invert":[``,I,R,L]}],"backdrop-opacity":[{"backdrop-opacity":[I,R,L]}],"backdrop-saturate":[{"backdrop-saturate":[I,R,L]}],"backdrop-sepia":[{"backdrop-sepia":[``,I,R,L]}],"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`,R,L]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[I,`initial`,R,L]}],ease:[{ease:[`linear`,`initial`,_,R,L]}],delay:[{delay:[I,R,L]}],animate:[{animate:[`none`,v,R,L]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,R,L]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:he()}],"rotate-x":[{"rotate-x":he()}],"rotate-y":[{"rotate-y":he()}],"rotate-z":[{"rotate-z":he()}],scale:[{scale:ge()}],"scale-x":[{"scale-x":ge()}],"scale-y":[{"scale-y":ge()}],"scale-z":[{"scale-z":ge()}],"scale-3d":[`scale-3d`],skew:[{skew:_e()}],"skew-x":[{"skew-x":_e()}],"skew-y":[{"skew-y":_e()}],transform:[{transform:[R,L,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ve()}],"translate-x":[{"translate-x":ve()}],"translate-y":[{"translate-y":ve()}],"translate-z":[{"translate-z":ve()}],"translate-none":[`translate-none`],zoom:[{zoom:[ri,R,L]}],accent:[{accent:O()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:O()}],"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`,R,L]}],"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":O()}],"scrollbar-track-color":[{"scrollbar-track":O()}],"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`,R,L]}],fill:[{fill:[`none`,...O()]}],"stroke-w":[{stroke:[I,xi,mi,hi]}],stroke:[{stroke:[`none`,...O()]}],"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 B(...e){return Li(Xn(e))}var Ri=$n(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-all duration-150 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow-[0_2px_8px_rgba(26,48,98,0.30)] dark:shadow-[0_2px_14px_rgba(77,106,172,0.45)] hover:bg-[var(--palette-primary-light)] hover:shadow-[0_4px_14px_rgba(26,48,98,0.40)] dark:hover:shadow-[0_4px_20px_rgba(77,106,172,0.60)] active:bg-[var(--palette-primary-base)] active:shadow-[0_1px_4px_rgba(26,48,98,0.20)]`,destructive:`bg-destructive text-destructive-foreground shadow-[0_2px_8px_rgba(239,68,68,0.25)] hover:bg-destructive/85 hover:shadow-[0_4px_12px_rgba(239,68,68,0.35)] active:bg-destructive/95`,outline:`border border-[var(--ring)] bg-transparent text-foreground shadow-sm hover:border-primary hover:bg-primary hover:text-primary-foreground active:bg-primary/90 active:border-primary`,secondary:`bg-secondary dark:bg-[var(--glass-bg-elevated)] text-secondary-foreground border border-[var(--glass-border)] shadow-sm hover:bg-accent hover:text-foreground hover:border-[var(--palette-secondary-base)] active:bg-accent/70`,ghost:`text-foreground hover:bg-accent hover:text-accent-foreground active:bg-accent/70`,link:`text-primary underline-offset-4 hover:underline hover:text-[var(--palette-primary-light)]`},size:{default:`h-9 px-4 py-2`,sm:`h-8 rounded-lg px-3 text-xs`,lg:`h-10 rounded-lg px-8`,icon:`h-9 w-9`}},defaultVariants:{variant:`default`,size:`default`}}),V=(0,M.forwardRef)(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>(0,N.jsx)(r?cr:`button`,{className:B(Ri({variant:t,size:n,className:e})),ref:a,...i}));V.displayName=`Button`,typeof window<`u`&&window.document&&window.document.createElement;function H(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function zi(e,t){let n=M.createContext(t),r=e=>{let{children:t,...r}=e,i=M.useMemo(()=>r,Object.values(r));return(0,N.jsx)(n.Provider,{value:i,children:t})};r.displayName=e+`Provider`;function i(r){let i=M.useContext(n);if(i)return i;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return[r,i]}function Bi(e,t=[]){let n=[];function r(t,r){let i=M.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=M.useMemo(()=>o,Object.values(o));return(0,N.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=M.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>M.createContext(e));return function(n){let r=n?.[e]||t;return M.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Vi(i,...t)]}function Vi(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return M.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var Hi=globalThis?.document?M.useLayoutEffect:()=>{},Ui=M.useId||(()=>void 0),Wi=0;function Gi(e){let[t,n]=M.useState(Ui());return Hi(()=>{e||n(e=>e??String(Wi++))},[e]),e||(t?`radix-${t}`:``)}var Ki=M.useInsertionEffect||Hi;function qi({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=Ji({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=M.useRef(e!==void 0);M.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[c,M.useCallback(t=>{if(s){let n=Yi(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function Ji({defaultProp:e,onChange:t}){let[n,r]=M.useState(e),i=M.useRef(n),a=M.useRef(t);return Ki(()=>{a.current=t},[t]),M.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function Yi(e){return typeof e==`function`}var Xi=c(m(),1);function Zi(e){let t=Qi(e),n=M.forwardRef((e,n)=>{let{children:r,...i}=e,a=M.Children.toArray(r),o=a.find(ea);if(o){let e=o.props.children,r=a.map(t=>t===o?M.Children.count(e)>1?M.Children.only(null):M.isValidElement(e)?e.props.children:null:t);return(0,N.jsx)(t,{...i,ref:n,children:M.isValidElement(e)?M.cloneElement(e,void 0,r):null})}return(0,N.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Qi(e){let t=M.forwardRef((e,t)=>{let{children:n,...r}=e;if(M.isValidElement(n)){let e=na(n),i=ta(r,n.props);return n.type!==M.Fragment&&(i.ref=t?tr(t,e):e),M.cloneElement(n,i)}return M.Children.count(n)>1?M.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $i=Symbol(`radix.slottable`);function ea(e){return M.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===$i}function ta(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}}function na(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)}var ra=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Zi(`Primitive.${t}`),r=M.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,N.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ia(e,t){e&&Xi.flushSync(()=>e.dispatchEvent(t))}function aa(e){let t=M.useRef(e);return M.useEffect(()=>{t.current=e}),M.useMemo(()=>(...e)=>t.current?.(...e),[])}function oa(e,t=globalThis?.document){let n=aa(e);M.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var sa=`DismissableLayer`,ca=`dismissableLayer.update`,la=`dismissableLayer.pointerDownOutside`,ua=`dismissableLayer.focusOutside`,da,fa=M.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pa=M.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,l=M.useContext(fa),[u,d]=M.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=M.useState({}),m=nr(t,e=>d(e)),h=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),_=h.indexOf(g),v=u?h.indexOf(u):-1,y=l.layersWithOutsidePointerEventsDisabled.size>0,b=v>=_,x=ga(e=>{let t=e.target,n=[...l.branches].some(e=>e.contains(t));!b||n||(i?.(e),o?.(e),e.defaultPrevented||s?.())},f),S=_a(e=>{let t=e.target;[...l.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||s?.())},f);return oa(e=>{v===l.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),M.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(da=f.body.style.pointerEvents,f.body.style.pointerEvents=`none`),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),va(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=da)}},[u,f,n,l]),M.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),va())},[u,l]),M.useEffect(()=>{let e=()=>p({});return document.addEventListener(ca,e),()=>document.removeEventListener(ca,e)},[]),(0,N.jsx)(ra.div,{...c,ref:m,style:{pointerEvents:y?b?`auto`:`none`:void 0,...e.style},onFocusCapture:H(e.onFocusCapture,S.onFocusCapture),onBlurCapture:H(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:H(e.onPointerDownCapture,x.onPointerDownCapture)})});pa.displayName=sa;var ma=`DismissableLayerBranch`,ha=M.forwardRef((e,t)=>{let n=M.useContext(fa),r=M.useRef(null),i=nr(t,r);return M.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,N.jsx)(ra.div,{...e,ref:i})});ha.displayName=ma;function ga(e,t=globalThis?.document){let n=aa(e),r=M.useRef(!1),i=M.useRef(()=>{});return M.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){ya(la,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function _a(e,t=globalThis?.document){let n=aa(e),r=M.useRef(!1);return M.useEffect(()=>{let e=e=>{e.target&&!r.current&&ya(ua,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function va(){let e=new CustomEvent(ca);document.dispatchEvent(e)}function ya(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?ia(i,a):i.dispatchEvent(a)}var ba=`focusScope.autoFocusOnMount`,xa=`focusScope.autoFocusOnUnmount`,Sa={bubbles:!1,cancelable:!0},Ca=`FocusScope`,wa=M.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=M.useState(null),l=aa(i),u=aa(a),d=M.useRef(null),f=nr(t,e=>c(e)),p=M.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;M.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:ja(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||ja(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&ja(s)};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]),M.useEffect(()=>{if(s){Ma.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(ba,Sa);s.addEventListener(ba,l),s.dispatchEvent(t),t.defaultPrevented||(Ta(Fa(Da(s)),{select:!0}),document.activeElement===e&&ja(s))}return()=>{s.removeEventListener(ba,l),setTimeout(()=>{let t=new CustomEvent(xa,Sa);s.addEventListener(xa,u),s.dispatchEvent(t),t.defaultPrevented||ja(e??document.body,{select:!0}),s.removeEventListener(xa,u),Ma.remove(p)},0)}}},[s,l,u,p]);let m=M.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Ea(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&ja(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&ja(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,N.jsx)(ra.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});wa.displayName=Ca;function Ta(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(ja(r,{select:t}),document.activeElement!==n)return}function Ea(e){let t=Da(e);return[Oa(t,e),Oa(t.reverse(),e)]}function Da(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode: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}});for(;n.nextNode();)t.push(n.currentNode);return t}function Oa(e,t){for(let n of e)if(!ka(n,{upTo:t}))return n}function ka(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}function Aa(e){return e instanceof HTMLInputElement&&`select`in e}function ja(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Aa(e)&&t&&e.select()}}var Ma=Na();function Na(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Pa(e,t),e.unshift(t)},remove(t){e=Pa(e,t),e[0]?.resume()}}}function Pa(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Fa(e){return e.filter(e=>e.tagName!==`A`)}var Ia=`Portal`,La=M.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=M.useState(!1);Hi(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Xi.createPortal((0,N.jsx)(ra.div,{...r,ref:t}),o):null});La.displayName=Ia;function Ra(e,t){return M.useReducer((e,n)=>t[e][n]??e,e)}var za=e=>{let{present:t,children:n}=e,r=Ba(t),i=typeof n==`function`?n({present:r.isPresent}):M.Children.only(n),a=nr(r.ref,Ha(i));return typeof n==`function`||r.isPresent?M.cloneElement(i,{ref:a}):null};za.displayName=`Presence`;function Ba(e){let[t,n]=M.useState(),r=M.useRef(null),i=M.useRef(e),a=M.useRef(`none`),[o,s]=Ra(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return M.useEffect(()=>{let e=Va(r.current);a.current=o===`mounted`?e:`none`},[o]),Hi(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=Va(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),Hi(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=Va(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=Va(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:M.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function Va(e){return e?.animationName||`none`}function Ha(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)}var Ua=0;function Wa(){M.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??Ga()),document.body.insertAdjacentElement(`beforeend`,e[1]??Ga()),Ua++,()=>{Ua===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),Ua--}},[])}function Ga(){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}var Ka=function(){return Ka=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},Ka.apply(this,arguments)};function qa(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 Ja(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 Ya=`right-scroll-bar-position`,Xa=`width-before-scroll-bar`,Za=`with-scroll-bars-hidden`,Qa=`--removed-body-scroll-bar-size`;function $a(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function eo(e,t){var n=(0,M.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 to=typeof window<`u`?M.useLayoutEffect:M.useEffect,no=new WeakMap;function ro(e,t){var n=eo(t||null,function(t){return e.forEach(function(e){return $a(e,t)})});return to(function(){var t=no.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||$a(e,null)}),i.forEach(function(e){r.has(e)||$a(e,a)})}no.set(n,e)},[e]),n}function io(e){return e}function ao(e,t){t===void 0&&(t=io);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 oo(e){e===void 0&&(e={});var t=ao(null);return t.options=Ka({async:!0,ssr:!1},e),t}var so=function(e){var t=e.sideCar,n=qa(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 M.createElement(r,Ka({},n))};so.isSideCarExport=!0;function co(e,t){return e.useMedium(t),so}var lo=oo(),U=function(){},W=M.forwardRef(function(e,t){var n=M.useRef(null),r=M.useState({onScrollCapture:U,onWheelCapture:U,onTouchMoveCapture:U}),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=qa(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=ro([n,t]),C=Ka(Ka({},b),i);return M.createElement(M.Fragment,null,u&&M.createElement(x,{sideCar:lo,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?M.cloneElement(M.Children.only(s),Ka(Ka({},C),{ref:S})):M.createElement(v,Ka({},C,{className:c,ref:S}),s))});W.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},W.classNames={fullWidth:Xa,zeroRight:Ya};var uo,fo=function(){if(uo)return uo;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function po(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=fo();return t&&e.setAttribute(`nonce`,t),e}function mo(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ho(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var go=function(){var e=0,t=null;return{add:function(n){e==0&&(t=po())&&(mo(t,n),ho(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},_o=function(){var e=go();return function(t,n){M.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},vo=function(){var e=_o();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},yo={left:0,top:0,right:0,gap:0},bo=function(e){return parseInt(e||``,10)||0},xo=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[bo(n),bo(r),bo(i)]},So=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return yo;var t=xo(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])}},Co=vo(),wo=`data-scroll-locked`,To=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
96
96
  .${Za} {
97
97
  overflow: hidden ${r};
98
98
  padding-right: ${s}px ${r};
@@ -136,10 +136,10 @@ Error generating stack: `+e.message+`
136
136
 
137
137
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
138
138
 
139
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return M.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Vs=`DialogDescriptionWarning`,Hs=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${zs(Vs).contentName}}.`;return M.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Us=ms,Ws=bs,Gs=Ss,Ks=Es,qs=js,Js=Ns,Ys=Fs;function Xs({...e}){return(0,N.jsx)(Us,{"data-slot":`sheet`,...e})}function Zs({...e}){return(0,N.jsx)(Ws,{"data-slot":`sheet-portal`,...e})}function Qs({className:e,...t}){return(0,N.jsx)(Gs,{"data-slot":`sheet-overlay`,className:B(`fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0`,e),...t})}function $s({className:e,children:t,side:n=`right`,showCloseButton:r=!0,...i}){return(0,N.jsxs)(Zs,{children:[(0,N.jsx)(Qs,{}),(0,N.jsxs)(Ks,{"data-slot":`sheet-content`,className:B(`fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500`,n===`right`&&`inset-y-0 right-0 h-full w-3/4 shadow-[-12px_0_32px_-12px_rgba(0,0,0,0.4)] data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm`,n===`left`&&`inset-y-0 left-0 h-full w-3/4 shadow-[12px_0_32px_-12px_rgba(0,0,0,0.4)] data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm`,n===`top`&&`inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,n===`bottom`&&`inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,e),...i,children:[t,r&&(0,N.jsxs)(Ys,{className:`absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary`,children:[(0,N.jsx)(Fn,{className:`size-4`}),(0,N.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function ec({className:e,...t}){return(0,N.jsx)(`div`,{"data-slot":`sheet-header`,className:B(`flex flex-col gap-1.5 p-4`,e),...t})}function tc({className:e,...t}){return(0,N.jsx)(qs,{"data-slot":`sheet-title`,className:B(`font-semibold text-foreground`,e),...t})}function nc({className:e,...t}){return(0,N.jsx)(Js,{"data-slot":`sheet-description`,className:B(`text-sm text-muted-foreground`,e),...t})}var rc=`16rem`,ic=`3.25rem`,ac=`18rem`,oc=`b`,sc=M.createContext(null);function cc(){let[e,t]=M.useState(!1);return M.useEffect(()=>{let e=window.matchMedia(`(max-width: 767px)`),n=()=>t(window.innerWidth<768);return e.addEventListener(`change`,n),t(window.innerWidth<768),()=>e.removeEventListener(`change`,n)},[]),e}function lc({defaultOpen:e=!0,className:t,style:n,children:r,...i}){let a=cc(),[o,s]=M.useState(!1),[c,l]=M.useState(e),u=M.useCallback(e=>{Jn(e),l(e)},[]),d=M.useCallback(()=>a?s(e=>!e):u(!c),[a,c,u]);M.useEffect(()=>{let e=e=>{e.key===oc&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),d())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[d]);let f=c?`expanded`:`collapsed`,p=M.useMemo(()=>({state:f,open:c,setOpen:u,isMobile:a,openMobile:o,setOpenMobile:s,toggleSidebar:d}),[f,c,u,a,o,d]);return(0,N.jsx)(sc.Provider,{value:p,children:(0,N.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":rc,"--sidebar-width-icon":ic,...n},className:B(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar rtl:flex-row-reverse`,t),...i,children:r})})}function uc(){let e=M.useContext(sc);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function dc({side:e=`left`,variant:t=`sidebar`,className:n,children:r,...i}){let{isMobile:a,state:o,openMobile:s,setOpenMobile:c}=uc();return a?(0,N.jsx)(Xs,{open:s,onOpenChange:c,...i,children:(0,N.jsxs)($s,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`w-(--sidebar-width) glass-strip p-0 text-sidebar-foreground [&>button]:hidden`,style:{"--sidebar-width":ac},side:e,showCloseButton:!1,children:[(0,N.jsxs)(ec,{className:`sr-only`,children:[(0,N.jsx)(tc,{children:`Sidebar`}),(0,N.jsx)(nc,{children:`Displays the mobile sidebar.`})]}),(0,N.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:r})]})}):(0,N.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-state":o,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,N.jsx)(`div`,{"data-slot":`sidebar-gap`,className:`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 group-data-[state=collapsed]:w-(--sidebar-width-icon)`}),(0,N.jsx)(`div`,{"data-slot":`sidebar-container`,className:B(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[width] duration-200 md:flex group-data-[state=collapsed]:w-(--sidebar-width-icon)`,e===`left`?`left-0`:`right-0`,t===`inset`?`p-2`:``,n),...i,children:(0,N.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:`glass-strip flex h-full w-full flex-col`,children:r})})]})}function fc({className:e,onClick:t,...n}){let{toggleSidebar:r}=uc();return(0,N.jsxs)(V,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:B(`size-7`,e),onClick:e=>{t?.(e),r()},...n,children:[(0,N.jsx)(sn,{}),(0,N.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function pc({className:e,...t}){return(0,N.jsx)(`main`,{"data-slot":`sidebar-inset`,className:B(`relative flex w-full flex-1 flex-col bg-background`,`md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm rtl:md:peer-data-[variant=inset]:ml-2 rtl:md:peer-data-[variant=inset]:mr-0`,e),...t})}function mc({className:e,...t}){return(0,N.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:B(`flex flex-col gap-2 p-2`,e),...t})}function hc({className:e,...t}){return(0,N.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:B(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto`,e),...t})}function gc({className:e,...t}){return(0,N.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:B(`flex flex-col gap-2 p-2`,e),...t})}function _c({className:e,...t}){return(0,N.jsx)(`hr`,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:B(`mx-4 my-1 h-px w-auto border-0`,`bg-linear-to-r from-transparent via-[color-mix(in_srgb,var(--primary)_24%,transparent)] to-transparent`,`opacity-70 dark:via-[color-mix(in_srgb,var(--palette-teal-light)_18%,transparent)]`,e),...t})}function vc({className:e,...t}){return(0,N.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:B(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function yc({className:e,...t}){return(0,N.jsx)(`div`,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:B(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70`,e),...t})}function bc({className:e,...t}){return(0,N.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:B(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function xc({className:e,...t}){return(0,N.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:B(`group/menu-item relative`,e),...t})}var Sc=$n(`peer/menu-button relative flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm`}},defaultVariants:{size:`default`}});function Cc({asChild:e=!1,isActive:t=!1,size:n=`default`,className:r,...i}){return(0,N.jsx)(e?cr:`button`,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":n,"data-active":t,className:B(Sc({size:n}),r),...i})}function wc({className:e,...t}){return(0,N.jsx)(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:B(`mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5 rtl:-translate-x-px rtl:border-l-0 rtl:border-r`,e),...t})}function Tc({className:e,...t}){return(0,N.jsx)(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:B(`group/menu-sub-item relative`,e),...t})}function Ec({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){return(0,N.jsx)(e?cr:`a`,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":t,"data-active":n,className:B(`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[active=true]:font-medium [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,`rtl:translate-x-px`,t===`sm`&&`text-xs`,t===`md`&&`text-sm`,r),...i})}var Dc=`/admin/api`,Oc=class extends Error{status;body;constructor(e,t,n){super(e),this.status=t,this.body=n,this.name=`ApiError`}};async function kc(e,t){let n=await fetch(`${Dc}${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 Oc(`${n.status} ${n.statusText}`,n.status,i);return i}var Ac={get:e=>kc(e),post:(e,t)=>kc(e,jc(`POST`,t)),patch:(e,t)=>kc(e,jc(`PATCH`,t)),delete:e=>kc(e,{method:`DELETE`})};function jc(e,t){return{method:e,headers:{"Content-Type":`application/json`},body:t===void 0?void 0:JSON.stringify(t)}}var Mc=[`draft`,`review`,`published`,`archived`],Nc=[`draft`,`published`,`archived`],Pc=M.createContext(null);function Fc(){return typeof window>`u`?{pathname:`/admin`,search:``}:{pathname:window.location.pathname,search:window.location.search}}function Ic(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/`)||t.pathname===`/admin/logout`)}function Lc({children:e}){let[t,n]=M.useState(Fc),r=M.useCallback((e,t={})=>{if(typeof window>`u`)return;let r=new URL(e,window.location.href),i=`${r.pathname}${r.search}${r.hash}`;i!==`${window.location.pathname}${window.location.search}${window.location.hash}`&&(t.replace?window.history.replaceState(null,``,i):window.history.pushState(null,``,i));let a={pathname:r.pathname,search:r.search};(0,Xi.flushSync)(()=>n(a))},[]);M.useEffect(()=>{let e=()=>n(Fc());return window.addEventListener(`popstate`,e),()=>window.removeEventListener(`popstate`,e)},[]),M.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`)||Ic(n.href)&&(e.preventDefault(),r(n.href)))};return document.addEventListener(`click`,e,{capture:!0}),()=>document.removeEventListener(`click`,e,{capture:!0})},[r]);let i=M.useMemo(()=>({location:t,navigate:r}),[t,r]);return(0,N.jsx)(Pc.Provider,{value:i,children:e})}function Rc(){let e=M.useContext(Pc);if(!e)throw Error(`useAdminRouter must be used inside AdminRouterProvider.`);return e}function zc(){return Rc().location}var Bc=[{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`}],Vc=`cms.preference.language`,Hc=`cms.preference.direction`,Uc=`cms.preference.theme`,Wc=`cms.theme`,Gc=M.createContext(null);function Kc({children:e}){let[t,n]=M.useState(qc),[r,i]=M.useState(()=>Jc(qc())),[a,o]=M.useState(Yc),s=M.useCallback(e=>{let t=el(e);Zc(Vc,e),Zc(Hc,t),n(e),i(t)},[]),c=M.useCallback(e=>{Zc(Hc,e),i(e)},[]),l=M.useCallback(e=>{Zc(Uc,e),Zc(Wc,e),o(e)},[]);M.useEffect(()=>{document.documentElement.lang=Bc.find(e=>e.value===t)?.htmlLang??`en`,document.documentElement.dir=r},[t,r]),M.useEffect(()=>{let e=()=>{let e=typeof matchMedia<`u`&&matchMedia(`(prefers-color-scheme: dark)`).matches;document.documentElement.classList.toggle(`dark`,a===`dark`||a===`system`&&e)};if(e(),a!==`system`||typeof matchMedia>`u`)return;let t=matchMedia(`(prefers-color-scheme: dark)`);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)},[a]);let u=M.useMemo(()=>({language:t,direction:r,theme:a,setLanguage:s,setDirection:c,setTheme:l}),[t,r,a,s,c,l]);return(0,N.jsx)(Gc.Provider,{value:u,children:e})}function G(){let e=M.useContext(Gc);if(!e)throw Error(`usePreferences must be used inside PreferencesProvider.`);return e}function qc(){let e=Xc(Vc);if(Qc(e))return e;if(typeof navigator>`u`)return`en`;for(let e of navigator.languages??[]){let t=$c(e);if(t!==`en`||e.toLowerCase().startsWith(`en`))return t}return $c(navigator.language)}function Jc(e){let t=Xc(Hc);return t===`rtl`||t===`ltr`?t:el(e)}function Yc(){let e=Xc(`cms.preference.theme`)??Xc(Wc);return e===`light`||e===`dark`||e===`system`?e:`system`}function Xc(e){try{return localStorage.getItem(e)}catch{return null}}function Zc(e,t){try{localStorage.setItem(e,t)}catch{}}function Qc(e){return Bc.some(t=>t.value===e)}function $c(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 el(e){return Bc.find(t=>t.value===e)?.direction??`ltr`}var tl=`@aotter/mantle`,nl=`0.0.11-alpha.24`,rl=`https://www.npmjs.com/package/@aotter/mantle`,il=`https://github.com/aotter/mantle`,al=`M62.27,18.91c-24.86,0-45.09,20.23-45.09,45.09s20.23,45.09,45.09,45.09,45.09-20.23,45.09-45.09-20.23-45.09-45.09-45.09ZM65.07,102.86v-18.98h5.49c1.26,0,2.29-1.03,2.29-2.29v-4.47h11.6c1.26,0,2.29-1.03,2.29-2.29v-20.57c0-1.26-1.03-2.29-2.29-2.29h-5.13v-12.73c0-1.55-1.26-2.8-2.8-2.8s-2.8,1.26-2.8,2.8v12.73h-22.89v-12.73c0-1.55-1.26-2.8-2.81-2.8s-2.8,1.26-2.8,2.8v12.73h-5.13c-1.26,0-2.29,1.03-2.29,2.29v20.57c0,1.26,1.03,2.29,2.29,2.29h11.6v4.47c0,1.26,1.03,2.29,2.29,2.29h5.49v18.98c-20.32-1.45-36.16-18.42-36.16-38.86,0-21.49,17.48-38.97,38.97-38.97s38.97,17.48,38.97,38.97-15.84,37.42-36.16,38.86ZM41.89,73.03v-16.96h14.46c1.94,2.28,5.02,5.87,5.11,5.97.19.19.39.23.52.23s.34-.04.54-.25c.07-.06,1.33-1.44,4.33-4.69.4-.44.8-.87,1.17-1.26h14.63v16.96h-40.75ZM55.78,79.79v-3.15h12.98v3.15h-12.98Z`;function ol(e){switch(e){case`brand`:return`text-[#1a3062]`;case`black`:return`text-[#040000]`;case`white`:return`text-white`;default:return`text-current`}}function sl({className:e,title:t,tone:n=`current`}){return(0,N.jsxs)(`svg`,{viewBox:`0 0 128 128`,role:t?`img`:void 0,"aria-hidden":t?void 0:!0,className:B(ol(n),e),children:[t?(0,N.jsx)(`title`,{children:t}):null,(0,N.jsx)(`path`,{fill:`currentColor`,d:al})]})}function cl(){return(0,N.jsxs)(`div`,{className:B(`fixed bottom-3 end-3 z-30 hidden items-center gap-2 rounded-full`,`border border-border/60 bg-background/65 px-2.5 py-1.5 text-xs`,`text-muted-foreground shadow-[var(--glass-shadow)] backdrop-blur-md md:flex`),children:[(0,N.jsx)(sl,{className:`size-4 text-primary`}),(0,N.jsx)(`a`,{href:rl,target:`_blank`,rel:`noreferrer`,className:`font-medium text-foreground/80 hover:text-primary`,children:tl}),(0,N.jsx)(`span`,{"aria-hidden":!0,children:`·`}),(0,N.jsx)(`a`,{href:il,target:`_blank`,rel:`noreferrer`,className:`hover:text-primary`,children:`GitHub`}),(0,N.jsxs)(`span`,{"aria-label":`version ${nl}`,children:[`v`,nl]})]})}var ll={en:{"admin.consoleTitle":`Admin console`,"auth.accessDenied.title":`Access denied`,"auth.accessDenied.noStaff":`You're signed in, but this account isn't on the admin staff list.`,"auth.accessDenied.askOwner":`Ask a site owner to add your GitHub login, or sign out to try a different account.`,"auth.error.title":`Something went wrong`,"auth.signIn.eyebrow":`AotterMantle admin`,"auth.signIn.title":`Sign in`,"auth.signIn.body":`Staff console. Access is gated by role after sign-in.`,"auth.signIn.methodsLoadFailed":`Couldn't load sign-in methods. Try refreshing.`,"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.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.copy":`Copy`,"common.open":`Open`,"common.failedToLoad":`Failed to load`,"common.signedIn":`Signed in`,"console.eyebrow":`Owner console`,"console.description":`{title} is deployed. Use this console for orientation; use an MCP-capable agent for content operations.`,"console.descriptionFallback":`Use this console for orientation; use an MCP-capable agent for content operations.`,"console.agent.title":`Next: connect an agent`,"console.agent.body":`Give this Staff MCP URL to Claude Code, Codex, Cursor, or another MCP client. It will open a consent screen, then the agent can manage this site's content with your staff permission.`,"console.workspace.title":`Start editing here`,"console.workspace.body":`Products, pages, media, and layout sections should all be editable from this console. Pick a common action to begin.`,"workspace.products":`Product list`,"workspace.pages":`Homepage and pages`,"workspace.media":`Media library`,"console.mcpUrl":`Staff MCP URL`,"console.publicUrl":`Public URL`,"console.loop.title":`Operational loop`,"console.loop.body":`Ask your content agent to list entries, create drafts, publish, unpublish, or adjust copy. Then refresh this console if you want a human-readable inventory.`,"console.onboarding.title":`Guided setup`,"console.onboarding.body":`A first-run overlay will guide new owners through editing content, checking media, and publishing.`,"console.onboarding.step1":`Review the seeded products and homepage sections.`,"console.onboarding.step2":`Edit copy with the rich editor inside the relevant product or page.`,"console.onboarding.step3":`Preview the storefront, then publish the change.`,"console.loop.step1":`Open the public site and inspect the result.`,"console.loop.step2":`Connect a second agent through MCP.`,"console.loop.step3":`Tell the agent what content or workflow to change.`,"console.collections.eyebrow":`Content model`,"console.collections.title":`Content lists`,"console.collections.body":`Products, pages, orders, and operational data from this site. Translation child schemas are folded into their parent.`,"console.collections.emptyTitle":`No collections defined yet`,"console.collections.emptyBody":`A blank project can add Schema manifests later; a starter should normally seed at least one collection.`,"console.collections.noDescription":`No description.`,"collection.breadcrumb":`Collections`,"collection.defaultDescription":`Entries in this collection.`,"collection.schemaSummary":`Manage entries, publishing state, and localized content for {name}.`,"collection.schemaDetails":`Schema notes`,"collection.searchPlaceholder":`Search title, id, status...`,"collection.filter.all":`All`,"collection.empty.title":`No entries yet`,"collection.empty.search":`No entries matched “{search}”.`,"collection.empty.withStatus":`No {status} entries in this collection.`,"collection.empty.all":`This collection has no entries yet.`,"collection.refreshing":`Updating the list...`,"collection.moreRows":`More rows are available, but cursor pagination is not wired in this admin shell yet.`,"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.actions.label":`Collection actions`,"collection.untitled":`(untitled)`,"crud.create":`Add`,"crud.edit":`Edit`,"crud.search":`Search`,"crud.delete":`Delete`,"crud.createTooltip":`Create a new {name} entry.`,"crud.editTooltip":`Edit {name}.`,"crud.searchTooltip":`Search {name}.`,"crud.deleteTooltip":`Delete {name}.`,"crud.duplicateTooltip":`Duplicate {name}.`,"crud.saveTitle":`Save title`,"crud.cancelTitle":`Cancel editing`,"crud.deleteConfirm":`Delete {name}? This cannot be undone.`,"crud.saving":`Saving...`,"crud.duplicating":`Duplicating...`,"crud.deleting":`Deleting...`,"entryEdit.back":`Back to {name}`,"entryEdit.body":`Edit {name} from its Schema manifest. Related child entries are inferred from existing schema relationships.`,"entryEdit.parent":`Parent: {name}`,"entryEdit.save":`Save changes`,"entryEdit.saveTooltip":`Save this entry.`,"entryEdit.fields":`Entry fields`,"entryEdit.meta":`Entry details`,"entryEdit.related":`Related entries`,"entryEdit.noRelated":`No child collections were inferred for this entry.`,"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.publish":`Publish`,"entryEdit.publishing":`Publishing...`,"entryEdit.publishTooltip":`Publish this draft.`,"entryEdit.publishDisabledDirty":`Save changes 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.`,"entryEdit.skus":`Variants and pricing`,"entryEdit.skusBody":`Manage sellable SKUs for {name}. Prices, original prices, inventory behavior, and option values stay attached to this product.`,"entryEdit.openAdvanced":`Open full SKU editor`,"entryEdit.priceMinor":`Price`,"entryEdit.compareAtPriceMinor":`Original price`,"entryEdit.inventoryMode":`Inventory`,"entryEdit.inventoryTracked":`Track stock`,"entryEdit.inventoryUntracked":`Unlimited / untracked`,"entryEdit.currency":`Currency`,"entryEdit.skuInlineHint":`Use the full editor for media, raw option JSON, or advanced fields.`,"productEdit.back":`Back to products`,"productEdit.title":`Edit product`,"productEdit.body":`Edit product copy, price, promotions, brand story, and service details in one place.`,"productEdit.save":`Save changes`,"productEdit.basic":`Product content`,"productEdit.shortDescription":`Short description`,"productEdit.description":`Product description`,"productEdit.price":`Price`,"productEdit.salePrice":`Sale price`,"productEdit.compareAtPrice":`Original price`,"productEdit.promotions":`Promotions`,"productEdit.promoLabel":`Label`,"productEdit.promoTitle":`Promotion title`,"productEdit.promoBody":`Promotion details`,"productEdit.relatedSku":`Bundled SKU`,"productEdit.noRelatedSku":`No bundled SKU`,"productEdit.discountPercent":`Discount %`,"productEdit.addPromotion":`Add promotion`,"productEdit.brand":`Brand story`,"productEdit.brandName":`Brand name`,"productEdit.brandTagline":`Brand tagline`,"productEdit.brandIntro":`Brand introduction`,"productEdit.serviceIncludes":`Service includes`,"settings.page.title":`Store settings`,"settings.page.body":`Manage site-level brand copy and default service information used across the storefront.`,"settings.tabsLabel":`Store settings sections`,"settings.tab.brand":`Brand`,"settings.tab.tracking":`Tracking`,"settings.brandSection":`Brand and service`,"settings.brandSectionBody":`Default storefront copy used by product pages and generated homepage sections.`,"settings.siteBrand":`Site brand`,"settings.siteTitle":`Site title`,"settings.siteDescription":`Site description`,"settings.trackingSection":`Tracking codes`,"settings.trackingSectionBody":`Fill in analytics IDs and Mantle will inject the matching tracking scripts into generated storefront pages.`,"settings.ga4MeasurementId":`GA4 Measurement ID`,"settings.ga4MeasurementIdHelp":`Use the ID only, for example G-XXXXXXXXXX. Do not paste the whole gtag script.`,"settings.facebookPixelId":`Facebook Pixel ID`,"settings.facebookPixelIdHelp":`Use the numeric Pixel ID only. Mantle will generate the base Pixel code.`,"guide.title":`Your store admin is ready`,"guide.body":`Use this guided flow to understand where editing happens before you ask an agent to make larger changes.`,"guide.step1":`Open Products and confirm the seeded storefront items.`,"guide.step2":`Use Add, Edit, Search, or Delete from the collection page.`,"guide.step3":`Preview the public site, then keep refining with the rich editor inside each content area.`,"guide.close":`Close guide`,"guide.open":`Guide`,"guide.next":`Next`,"guide.prev":`Previous`,"guide.finish":`Finish`,"guide.products.title":`Start with products`,"guide.products.body":`Open the Products collection to manage storefront items, SKUs, prices, and localized product copy.`,"guide.filters.title":`Filter publishing states`,"guide.filters.body":`Switch between all, draft, published, and archived entries without leaving the list.`,"guide.actions.title":`Edit from the list`,"guide.actions.body":`Use the row actions to edit product details, duplicate an item, or remove it from the site.`,"guide.reopen.title":`Reopen this guide anytime`,"guide.reopen.body":`The guide button stays in the status bar, so users can turn this walkthrough on again whenever they need it.`,"nav.home":`Home`,"nav.content":`Content`,"nav.editor":`Editor`,"nav.media":`Media library`,"nav.more":`More`,"nav.approvals":`Approvals`,"nav.settings":`Settings`,"nav.staff":`Staff`,"staff.page.title":`Staff`,"staff.page.body":`Invite staff by email, assign roles, and revoke pending invitations. Only owners can see this page.`,"staff.invite.title":`Invite staff`,"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":`Invitees sign in at /admin/sign-in with the invited email (magic link, email code, or a social account on the same address) and land with their role already in effect.`,"staff.table.name":`Name`,"staff.table.email":`Email`,"staff.table.status":`Status / sign-in`,"staff.table.role":`Role`,"staff.role.owner":`Owner`,"staff.role.editor":`Editor`,"staff.role.contributor":`Contributor`,"staff.role.none":`No role`,"staff.badge.invited":`Invited`,"staff.status.emailSignIn":`Email sign-in`,"staff.self":`you`,"status.draft":`Drafts`,"status.review":`In Review`,"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`,"settings.planned.title":`Settings are not wired yet`,"settings.planned.body":`Settings are for values persisted to the site, such as site config. Preferences stay local to this browser.`,"system.notFound.title":`Not found`,"system.notFound.plannedTitle":`Not wired yet`,"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.insertBlock":`Insert block`,"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 product 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.headingPlaceholder":`Heading`,"editor.decreaseFont":`Decrease font size`,"editor.increaseFont":`Increase font size`,"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.emoji":`Emoji`,"editor.mediaLibrary":`Media library`,"editor.imageUrl":`Image URL`,"editor.insertImage":`Insert image`,"editor.videoUrl":`YouTube / Dailymotion URL`,"editor.insertVideo":`Insert video`,"editor.audioHint":`Audio embed`,"media.page.title":`Media library`,"media.page.body":`Upload, search, crop, tag, and reuse images across products and pages.`,"media.upload":`Upload media`,"media.search":`Search media...`,"media.crop":`Crop`,"media.alt":`Alt text`,"media.tags":`Tags`,"media.empty":`No media assets yet.`,"media.dropzone":`Drop files here or choose images`,"media.dropzoneHint":`Assets uploaded here can be reused by products, pages, and storefront sections.`,"media.copyUrl":`Copy image URL`,"media.filter":`Filter media`,"media.filter.all":`All`,"media.filter.product":`Products`,"media.filter.brand":`Brand`,"media.filter.content":`Content`,"media.sort":`Sort media`,"media.sort.newest":`Newest`,"media.sort.name":`Name`,"media.sort.type":`Type`,"approvals.title":`Approvals`,"approvals.body":`Review editorial entries that are waiting for approval before they go live.`,"approvals.emptyTitle":`Nothing is waiting for review`,"approvals.emptyBody":`Entries submitted for review will appear here by collection.`,"approvals.groupBody":`{count} entries are currently marked {status}.`,"approvals.openCollection":`Open collection`,"approvals.reviewEntry":`Review`},"zh-TW":{"admin.consoleTitle":`管理後台`,"auth.accessDenied.title":`無法存取`,"auth.accessDenied.noStaff":`你已登入,但這個帳號不在 admin staff 清單內。`,"auth.accessDenied.askOwner":`請網站 owner 加入你的 GitHub login,或登出改用其他帳號。`,"auth.error.title":`發生錯誤`,"auth.signIn.eyebrow":`AotterMantle 後台`,"auth.signIn.title":`登入`,"auth.signIn.body":`Staff 後台。登入後依角色決定能用的範圍。`,"auth.signIn.methodsLoadFailed":`讀取登入方式失敗,請重新整理頁面。`,"auth.signIn.noMethods":`這個站台還沒設定任何登入方式。`,"auth.signIn.unknownMethod":`不支援的登入方式:{kind}。`,"auth.signIn.method.social.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.viewSite":`查看網站`,"common.copy":`複製`,"common.open":`開啟`,"common.failedToLoad":`載入失敗`,"common.signedIn":`已登入`,"console.eyebrow":`Owner console`,"console.description":`{title} 已部署完成。這裡是操作入口;內容營運請交給支援 MCP 的 agent。`,"console.descriptionFallback":`這裡是操作入口;內容營運請交給支援 MCP 的 agent。`,"console.agent.title":`下一步:連接 agent`,"console.agent.body":`把這個 Staff MCP URL 交給 Claude Code、Codex、Cursor 或其他 MCP client。它會開啟 consent 畫面,授權後 agent 就能用你的 staff 權限管理網站內容。`,"console.workspace.title":`從這裡開始編輯`,"console.workspace.body":`商品、頁面、媒體與首頁區塊都應該能在這個後台管理。先選一個常用操作開始。`,"workspace.products":`商品清單`,"workspace.pages":`首頁與頁面編排`,"workspace.media":`媒體庫`,"console.mcpUrl":`Staff MCP URL`,"console.publicUrl":`公開網站 URL`,"console.loop.title":`營運閉環`,"console.loop.body":`你可以請內容 agent 列出 entries、建立草稿、發布、取消發布或調整文案。需要人工盤點時,再回這個 console 查看。`,"console.onboarding.title":`操作導覽`,"console.onboarding.body":`第一次進入後台時,會用 overlay 帶店主完成內容編輯、媒體檢查與發布。`,"console.onboarding.step1":`先檢查預設商品與首頁區塊。`,"console.onboarding.step2":`在商品或頁面內直接用 Rich Editor 修改內容。`,"console.onboarding.step3":`預覽前台,再發布變更。`,"console.loop.step1":`先打開公開網站檢查結果。`,"console.loop.step2":`透過 MCP 連接第二個 agent。`,"console.loop.step3":`用自然語言告訴 agent 要改內容或流程。`,"console.collections.eyebrow":`內容模型`,"console.collections.title":`內容清單`,"console.collections.body":`這裡會列出這個網站的商品、頁面、訂單與營運資料。翻譯 child schema 會折進 parent 顯示。`,"console.collections.emptyTitle":`尚未定義 collections`,"console.collections.emptyBody":`Blank project 之後可以新增 Schema manifests;starter 通常應該至少有一個 collection。`,"console.collections.noDescription":`沒有描述。`,"collection.breadcrumb":`內容清單`,"collection.defaultDescription":`這個 collection 裡的 entries。`,"collection.schemaSummary":`管理 {name} 的 entries、發布狀態與多語內容。`,"collection.schemaDetails":`Schema 說明`,"collection.searchPlaceholder":`搜尋標題、ID、狀態...`,"collection.filter.all":`全部`,"collection.empty.title":`目前沒有 entries`,"collection.empty.search":`沒有符合「{search}」的資料。`,"collection.empty.withStatus":`這個 collection 目前沒有 {status} entries。`,"collection.empty.all":`這個 collection 目前沒有 entries。`,"collection.refreshing":`清單更新中...`,"collection.moreRows":`還有更多資料,但這個 admin shell 尚未接上 cursor pagination。`,"collection.table.id":`ID`,"collection.table.title":`標題`,"collection.table.status":`狀態`,"collection.table.locale":`語言`,"collection.table.version":`版本`,"collection.table.updated":`更新時間`,"collection.table.actions":`操作`,"collection.actions.label":`內容操作`,"collection.untitled":`(未命名)`,"crud.create":`新增`,"crud.edit":`編輯`,"crud.search":`查詢`,"crud.delete":`刪除`,"crud.createTooltip":`新增一筆{name}。`,"crud.editTooltip":`編輯{name}。`,"crud.searchTooltip":`查詢{name}。`,"crud.deleteTooltip":`刪除{name}。`,"crud.duplicateTooltip":`複製{name}。`,"crud.saveTitle":`儲存標題`,"crud.cancelTitle":`取消編輯`,"crud.deleteConfirm":`確定要刪除{name}?這個動作無法復原。`,"crud.saving":`儲存中...`,"crud.duplicating":`複製中...`,"crud.deleting":`刪除中...`,"entryEdit.back":`回到 {name}`,"entryEdit.body":`依據 {name} 的 Schema manifest 編輯資料;相關子資料會由既有 schema 關係自動推導。`,"entryEdit.parent":`父層:{name}`,"entryEdit.save":`儲存變更`,"entryEdit.saveTooltip":`儲存這筆資料。`,"entryEdit.fields":`資料欄位`,"entryEdit.meta":`資料資訊`,"entryEdit.related":`相關資料`,"entryEdit.noRelated":`目前沒有推導出這筆資料的子 collection。`,"entryEdit.noChildEntries":`目前沒有符合這筆資料的子資料。`,"entryEdit.relationship":`透過子欄位 {child} 對應父欄位 {parent}。`,"entryEdit.addItem":`新增項目`,"entryEdit.removeItem":`移除項目`,"entryEdit.emptyOption":`無值`,"entryEdit.boolean":`啟用`,"entryEdit.skus":`規格與售價`,"entryEdit.skusBody":`管理 {name} 底下實際可販售的 SKU。價格、原價、庫存方式與規格值都會跟著這個商品。`,"entryEdit.openAdvanced":`開啟完整 SKU 編輯器`,"entryEdit.priceMinor":`售價`,"entryEdit.compareAtPriceMinor":`原價`,"entryEdit.inventoryMode":`庫存模式`,"entryEdit.inventoryTracked":`追蹤庫存`,"entryEdit.inventoryUntracked":`不限量/不追蹤`,"entryEdit.currency":`幣別`,"entryEdit.skuInlineHint":`媒體、原始規格 JSON 或進階欄位可用完整編輯器處理。`,"productEdit.back":`回商品清單`,"productEdit.title":`編輯商品`,"productEdit.body":`在同一頁編輯商品文案、價格、優惠活動、品牌介紹與服務內容。`,"productEdit.save":`儲存變更`,"productEdit.basic":`商品內容`,"productEdit.shortDescription":`短描述`,"productEdit.description":`商品介紹`,"productEdit.price":`商品價格`,"productEdit.salePrice":`售價`,"productEdit.compareAtPrice":`原價`,"productEdit.promotions":`活動優惠組合`,"productEdit.promoLabel":`標籤`,"productEdit.promoTitle":`活動標題`,"productEdit.promoBody":`活動內容`,"productEdit.relatedSku":`組合 SKU`,"productEdit.noRelatedSku":`不套用組合 SKU`,"productEdit.discountPercent":`折扣 %`,"productEdit.addPromotion":`新增優惠`,"productEdit.brand":`品牌介紹`,"productEdit.brandName":`品牌名稱`,"productEdit.brandTagline":`品牌標語`,"productEdit.brandIntro":`品牌介紹`,"productEdit.serviceIncludes":`服務包含`,"settings.page.title":`商店設定`,"settings.page.body":`管理全站品牌文案與預設服務資訊,讓商品與首頁可以共用。`,"settings.tabsLabel":`商店設定分頁`,"settings.tab.brand":`品牌`,"settings.tab.tracking":`追蹤碼`,"settings.brandSection":`品牌與服務`,"settings.brandSectionBody":`商品頁與產生首頁區塊會共用的預設商店文案。`,"settings.siteBrand":`網站品牌`,"settings.siteTitle":`網站標題`,"settings.siteDescription":`網站描述`,"settings.trackingSection":`追蹤碼`,"settings.trackingSectionBody":`填入 analytics ID 後,Mantle 會在產生的前台頁面自動埋入對應追蹤碼。`,"settings.ga4MeasurementId":`GA4 Measurement ID`,"settings.ga4MeasurementIdHelp":`只需要填 ID,例如 G-XXXXXXXXXX,不要貼整段 gtag script。`,"settings.facebookPixelId":`Facebook Pixel ID`,"settings.facebookPixelIdHelp":`只需要填數字 Pixel ID,Mantle 會產生標準 Pixel base code。`,"guide.title":`你的商店後台已經準備好了`,"guide.body":`先用這個導覽了解每個編輯入口,再交給 agent 做更大量的調整。`,"guide.step1":`打開商品清單,確認前台預設商品都有進後台。`,"guide.step2":`在 collection 頁使用新增、編輯、查詢或刪除。`,"guide.step3":`預覽公開網站,再在各內容區直接用 Rich Editor 持續調整。`,"guide.close":`關閉引導`,"guide.open":`使用者引導`,"guide.next":`下一步`,"guide.prev":`上一步`,"guide.finish":`完成`,"guide.products.title":`先從商品開始`,"guide.products.body":`打開商品 collection,管理前台商品、SKU、價格與多語商品文案。`,"guide.filters.title":`切換發布狀態`,"guide.filters.body":`在清單上直接切換全部、草稿、已發布與已封存,不需要離開目前頁面。`,"guide.actions.title":`在清單裡直接操作`,"guide.actions.body":`用每列右側操作編輯商品內容、複製商品,或從網站移除該項目。`,"guide.reopen.title":`隨時重新打開引導`,"guide.reopen.body":`右上角會保留使用者引導按鈕,需要時可以再次開啟或關閉這套逐步導覽。`,"nav.home":`首頁`,"nav.content":`內容`,"nav.editor":`編輯器`,"nav.media":`媒體庫`,"nav.more":`更多`,"nav.approvals":`審核`,"nav.settings":`設定`,"nav.staff":`員工管理`,"staff.page.title":`員工管理`,"staff.page.body":`以 email 邀請員工、指派角色、撤銷尚未使用的邀請。僅 owner 可見此頁。`,"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":`受邀者到 /admin/sign-in 用受邀的 email 登入(magic link、email 驗證碼,或同信箱的社群帳號),登入時角色即已生效。`,"staff.table.name":`姓名`,"staff.table.email":`Email`,"staff.table.status":`狀態/登入方式`,"staff.table.role":`角色`,"staff.role.owner":`管理者`,"staff.role.editor":`編輯`,"staff.role.contributor":`協作者`,"staff.role.none":`無角色`,"staff.badge.invited":`邀請中`,"staff.status.emailSignIn":`Email 登入`,"staff.self":`你自己`,"status.draft":`草稿`,"status.review":`審核中`,"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":`個人偏好`,"settings.planned.title":`Settings 尚未接上`,"settings.planned.body":`Settings 是會寫進站台的資料,例如 site config。Preferences 則只保存在這個瀏覽器。`,"system.notFound.title":`找不到頁面`,"system.notFound.plannedTitle":`尚未接上`,"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.insertBlock":`插入區塊`,"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.headingPlaceholder":`標題`,"editor.decreaseFont":`縮小字級`,"editor.increaseFont":`放大字級`,"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.emoji":`表情符號`,"editor.mediaLibrary":`媒體庫`,"editor.imageUrl":`圖片網址`,"editor.insertImage":`插入圖片`,"editor.videoUrl":`YouTube / Dailymotion 連結`,"editor.insertVideo":`插入影片`,"editor.audioHint":`音訊嵌入`,"media.page.title":`媒體庫`,"media.page.body":`上傳、搜尋、裁切、標記並重複使用商品與頁面圖片。`,"media.upload":`上傳媒體`,"media.search":`搜尋媒體...`,"media.crop":`裁切`,"media.alt":`替代文字`,"media.tags":`標籤`,"media.empty":`目前沒有媒體素材。`,"media.dropzone":`拖放檔案到這裡,或選擇圖片`,"media.dropzoneHint":`上傳後的素材可重複用在商品、頁面與前台區塊。`,"media.copyUrl":`複製圖片網址`,"media.filter":`篩選媒體`,"media.filter.all":`全部`,"media.filter.product":`商品`,"media.filter.brand":`品牌`,"media.filter.content":`內容`,"media.sort":`排序媒體`,"media.sort.newest":`最新`,"media.sort.name":`名稱`,"media.sort.type":`類型`,"approvals.title":`審核中心`,"approvals.body":`集中查看等待審核的 editorial entries,發布前可以逐筆檢查內容。`,"approvals.emptyTitle":`目前沒有等待審核的內容`,"approvals.emptyBody":`送出審核的資料會依 collection 分組顯示在這裡。`,"approvals.groupBody":`目前有 {count} 筆內容標記為「{status}」。`,"approvals.openCollection":`開啟清單`,"approvals.reviewEntry":`審核`},"zh-CN":{"admin.consoleTitle":`管理后台`,"auth.signIn.title":`登录`,"common.signOut":`登出`,"common.viewSite":`查看网站`,"common.copy":`复制`,"common.open":`打开`,"common.failedToLoad":`加载失败`,"common.signedIn":`已登录`,"console.agent.title":`下一步:连接 agent`,"console.workspace.title":`从这里开始编辑`,"console.workspace.body":`商品、页面、媒体与首页区块都应该能在这个后台管理。先选一个常用操作开始。`,"workspace.products":`商品清单`,"workspace.pages":`首页与页面编排`,"workspace.media":`媒体库`,"console.onboarding.title":`操作导览`,"console.onboarding.body":`第一次进入后台时,会用 overlay 带店主完成内容编辑、媒体检查与发布。`,"console.onboarding.step1":`先检查预设商品与首页区块。`,"console.onboarding.step2":`在商品或页面内直接用 Rich Editor 修改内容。`,"console.onboarding.step3":`预览前台,再发布变更。`,"console.mcpUrl":`Staff MCP URL`,"console.publicUrl":`公开网站 URL`,"console.collections.title":`内容清单`,"console.collections.body":`这里会列出这个网站的商品、页面、订单与运营数据。翻译 child schema 会折进 parent 显示。`,"collection.breadcrumb":`内容清单`,"collection.filter.all":`全部`,"collection.table.title":`标题`,"collection.table.status":`状态`,"collection.table.locale":`语言`,"collection.table.version":`版本`,"collection.table.updated":`更新时间`,"collection.table.actions":`操作`,"collection.actions.label":`内容操作`,"collection.untitled":`(未命名)`,"collection.searchPlaceholder":`搜索标题、ID、状态...`,"collection.empty.search":`没有符合“{search}”的资料。`,"crud.create":`新增`,"crud.edit":`编辑`,"crud.search":`查询`,"crud.delete":`删除`,"crud.createTooltip":`新增一笔{name}。`,"crud.editTooltip":`编辑{name}。`,"crud.searchTooltip":`查询{name}。`,"crud.deleteTooltip":`删除{name}。`,"crud.duplicateTooltip":`复制{name}。`,"crud.saveTitle":`保存标题`,"crud.cancelTitle":`取消编辑`,"crud.deleteConfirm":`确定要删除{name}?这个动作无法复原。`,"crud.saving":`保存中...`,"crud.duplicating":`复制中...`,"crud.deleting":`删除中...`,"entryEdit.back":`回到 {name}`,"entryEdit.body":`依据 {name} 的 Schema manifest 编辑资料;相关子资料会由既有 schema 关系自动推导。`,"entryEdit.parent":`父层:{name}`,"entryEdit.save":`保存变更`,"entryEdit.saveTooltip":`保存这笔资料。`,"entryEdit.fields":`资料字段`,"entryEdit.meta":`资料信息`,"entryEdit.related":`相关资料`,"entryEdit.noRelated":`目前没有推导出这笔资料的子 collection。`,"entryEdit.noChildEntries":`目前没有符合这笔资料的子资料。`,"entryEdit.relationship":`透过子字段 {child} 对应父字段 {parent}。`,"entryEdit.addItem":`新增项目`,"entryEdit.removeItem":`移除项目`,"entryEdit.emptyOption":`无值`,"entryEdit.boolean":`启用`,"entryEdit.skus":`规格与售价`,"entryEdit.skusBody":`管理 {name} 底下实际可销售的 SKU。价格、原价、库存方式与规格值都会跟着这个商品。`,"entryEdit.openAdvanced":`打开完整 SKU 编辑器`,"entryEdit.priceMinor":`售价`,"entryEdit.compareAtPriceMinor":`原价`,"entryEdit.inventoryMode":`库存模式`,"entryEdit.inventoryTracked":`追踪库存`,"entryEdit.inventoryUntracked":`不限量/不追踪`,"entryEdit.currency":`币别`,"entryEdit.skuInlineHint":`媒体、原始规格 JSON 或进阶字段可用完整编辑器处理。`,"productEdit.back":`回商品清单`,"productEdit.title":`编辑商品`,"productEdit.body":`在同一页编辑商品文案、价格、优惠活动、品牌介绍与服务内容。`,"productEdit.save":`保存变更`,"productEdit.basic":`商品内容`,"productEdit.shortDescription":`短描述`,"productEdit.description":`商品介绍`,"productEdit.price":`商品价格`,"productEdit.salePrice":`售价`,"productEdit.compareAtPrice":`原价`,"productEdit.promotions":`活动优惠组合`,"productEdit.promoLabel":`标签`,"productEdit.promoTitle":`活动标题`,"productEdit.promoBody":`活动内容`,"productEdit.relatedSku":`组合 SKU`,"productEdit.noRelatedSku":`不套用组合 SKU`,"productEdit.discountPercent":`折扣 %`,"productEdit.addPromotion":`新增优惠`,"productEdit.brand":`品牌介绍`,"productEdit.brandName":`品牌名称`,"productEdit.brandTagline":`品牌标语`,"productEdit.brandIntro":`品牌介绍`,"productEdit.serviceIncludes":`服务包含`,"settings.page.title":`商店设置`,"settings.page.body":`管理全站品牌文案与预设服务信息,让商品与首页可以共用。`,"settings.tabsLabel":`商店设置分页`,"settings.tab.brand":`品牌`,"settings.tab.tracking":`追踪码`,"settings.brandSection":`品牌与服务`,"settings.brandSectionBody":`商品页与生成首页区块会共用的默认商店文案。`,"settings.siteBrand":`网站品牌`,"settings.siteTitle":`网站标题`,"settings.siteDescription":`网站描述`,"settings.trackingSection":`追踪码`,"settings.trackingSectionBody":`填入 analytics ID 后,Mantle 会在生成的前台页面自动埋入对应追踪码。`,"settings.ga4MeasurementId":`GA4 Measurement ID`,"settings.ga4MeasurementIdHelp":`只需要填 ID,例如 G-XXXXXXXXXX,不要贴整段 gtag script。`,"settings.facebookPixelId":`Facebook Pixel ID`,"settings.facebookPixelIdHelp":`只需要填数字 Pixel ID,Mantle 会生成标准 Pixel base code。`,"guide.title":`你的商店后台已经准备好了`,"guide.body":`先用这个导览了解每个编辑入口,再交给 agent 做更大量的调整。`,"guide.step1":`打开商品清单,确认前台预设商品都有进后台。`,"guide.step2":`在 collection 页使用新增、编辑、查询或删除。`,"guide.step3":`预览公开网站,再在各内容区直接用 Rich Editor 持续调整。`,"guide.close":`关闭引导`,"guide.open":`使用者引导`,"guide.next":`下一步`,"guide.prev":`上一步`,"guide.finish":`完成`,"guide.products.title":`先从商品开始`,"guide.products.body":`打开商品 collection,管理前台商品、SKU、价格与多语商品文案。`,"guide.filters.title":`切换发布状态`,"guide.filters.body":`在清单上直接切换全部、草稿、已发布与已归档,不需要离开当前页面。`,"guide.actions.title":`在清单里直接操作`,"guide.actions.body":`用每列右侧操作编辑商品内容、复制商品,或从网站移除该项目。`,"guide.reopen.title":`随时重新打开引导`,"guide.reopen.body":`右上角会保留使用者引导按钮,需要时可以再次开启或关闭这套逐步导览。`,"nav.home":`首页`,"nav.content":`内容`,"nav.editor":`编辑器`,"nav.media":`媒体库`,"nav.more":`更多`,"nav.approvals":`审核`,"nav.settings":`设置`,"status.draft":`草稿`,"status.review":`审核中`,"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.insertBlock":`插入区块`,"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.headingPlaceholder":`标题`,"editor.decreaseFont":`缩小字号`,"editor.increaseFont":`放大字号`,"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.emoji":`表情符号`,"editor.mediaLibrary":`媒体库`,"editor.imageUrl":`图片网址`,"editor.insertImage":`插入图片`,"editor.videoUrl":`YouTube / Dailymotion 链接`,"editor.insertVideo":`插入视频`,"editor.audioHint":`音频嵌入`,"media.page.title":`媒体库`,"media.page.body":`上传、搜索、裁切、标记并复用商品与页面图片。`,"media.upload":`上传媒体`,"media.search":`搜索媒体...`,"media.crop":`裁切`,"media.alt":`替代文字`,"media.tags":`标签`,"media.empty":`目前没有媒体素材。`,"media.dropzone":`拖放文件到这里,或选择图片`,"media.dropzoneHint":`上传后的素材可复用在商品、页面与前台区块。`,"media.copyUrl":`复制图片网址`,"media.filter":`筛选媒体`,"media.filter.all":`全部`,"media.filter.product":`商品`,"media.filter.brand":`品牌`,"media.filter.content":`内容`,"media.sort":`排序媒体`,"media.sort.newest":`最新`,"media.sort.name":`名称`,"media.sort.type":`类型`,"approvals.title":`审核中心`,"approvals.body":`集中查看等待审核的 editorial entries,发布前可以逐笔检查内容。`,"approvals.emptyTitle":`目前没有等待审核的内容`,"approvals.emptyBody":`送出审核的资料会依 collection 分组显示在这里。`,"approvals.groupBody":`目前有 {count} 笔内容标记为“{status}”。`,"approvals.openCollection":`打开清单`,"approvals.reviewEntry":`审核`},de:{"auth.signIn.title":`Anmelden`,"common.signOut":`Abmelden`,"common.viewSite":`Website ansehen`,"common.copy":`Kopieren`,"common.open":`Öffnen`,"common.failedToLoad":`Laden fehlgeschlagen`,"common.signedIn":`Angemeldet`,"console.agent.title":`Nächster Schritt: Agent verbinden`,"collection.filter.all":`Alle`,"nav.home":`Start`,"nav.content":`Inhalte`,"nav.more":`Mehr`,"nav.approvals":`Freigaben`,"nav.settings":`Einstellungen`,"status.draft":`Entwürfe`,"status.review":`In Prüfung`,"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:{"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`,"console.agent.title":`Siguiente: conectar un agente`,"collection.filter.all":`Todo`,"nav.home":`Inicio`,"nav.content":`Contenido`,"nav.more":`Más`,"nav.approvals":`Aprobaciones`,"nav.settings":`Configuración`,"status.draft":`Borradores`,"status.review":`En revisión`,"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:{"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é`,"console.agent.title":`Étape suivante : connecter un agent`,"collection.filter.all":`Tout`,"nav.home":`Accueil`,"nav.content":`Contenu`,"nav.more":`Plus`,"nav.approvals":`Approbations`,"nav.settings":`Paramètres`,"status.draft":`Brouillons`,"status.review":`En révision`,"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:{"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`,"console.agent.title":`Prossimo: collega un agente`,"collection.filter.all":`Tutto`,"nav.home":`Home`,"nav.content":`Contenuti`,"nav.more":`Altro`,"nav.approvals":`Approvazioni`,"nav.settings":`Impostazioni`,"status.draft":`Bozze`,"status.review":`In revisione`,"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:{"auth.signIn.title":`サインイン`,"auth.signIn.body":`管理コンソールです。サインイン後にロールでアクセスを判定します。`,"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.copy":`コピー`,"common.open":`開く`,"common.failedToLoad":`読み込みに失敗しました`,"common.signedIn":`サインイン済み`,"console.agent.title":`次へ: agent を接続`,"collection.filter.all":`すべて`,"nav.home":`ホーム`,"nav.content":`コンテンツ`,"nav.more":`その他`,"nav.approvals":`承認`,"nav.settings":`設定`,"status.draft":`下書き`,"status.review":`レビュー中`,"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:{"auth.signIn.title":`로그인`,"common.signOut":`로그아웃`,"common.viewSite":`사이트 보기`,"common.copy":`복사`,"common.open":`열기`,"common.failedToLoad":`로드 실패`,"common.signedIn":`로그인됨`,"console.agent.title":`다음: agent 연결`,"collection.filter.all":`전체`,"nav.home":`홈`,"nav.content":`콘텐츠`,"nav.more":`더보기`,"nav.approvals":`승인`,"nav.settings":`설정`,"status.draft":`초안`,"status.review":`검토 중`,"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":{"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`,"console.agent.title":`Próximo: conectar um agente`,"collection.filter.all":`Todos`,"nav.home":`Início`,"nav.content":`Conteúdo`,"nav.more":`Mais`,"nav.approvals":`Aprovações`,"nav.settings":`Configurações`,"status.draft":`Rascunhos`,"status.review":`Em revisão`,"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:{"auth.signIn.title":`Войти`,"common.signOut":`Выйти`,"common.viewSite":`Открыть сайт`,"common.copy":`Копировать`,"common.open":`Открыть`,"common.failedToLoad":`Не удалось загрузить`,"common.signedIn":`Вы вошли`,"console.agent.title":`Далее: подключите агента`,"collection.filter.all":`Все`,"nav.home":`Главная`,"nav.content":`Контент`,"nav.more":`Еще`,"nav.approvals":`Одобрения`,"nav.settings":`Настройки`,"status.draft":`Черновики`,"status.review":`На проверке`,"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:{"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`,"console.agent.title":`Volgende stap: agent verbinden`,"collection.filter.all":`Alles`,"nav.home":`Home`,"nav.content":`Content`,"nav.more":`Meer`,"nav.approvals":`Goedkeuringen`,"nav.settings":`Instellingen`,"status.draft":`Concepten`,"status.review":`In review`,"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:{"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`,"console.agent.title":`Dalej: połącz agenta`,"collection.filter.all":`Wszystkie`,"nav.home":`Start`,"nav.content":`Treści`,"nav.more":`Więcej`,"nav.approvals":`Zatwierdzenia`,"nav.settings":`Ustawienia`,"status.draft":`Szkice`,"status.review":`W recenzji`,"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:{"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`,"console.agent.title":`Sonraki: agent bağla`,"collection.filter.all":`Tümü`,"nav.home":`Ana sayfa`,"nav.content":`İçerik`,"nav.more":`Daha fazla`,"nav.approvals":`Onaylar`,"nav.settings":`Ayarlar`,"status.draft":`Taslaklar`,"status.review":`İncelemede`,"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:{"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`,"console.agent.title":`Tiếp theo: kết nối agent`,"collection.filter.all":`Tất cả`,"nav.home":`Trang chủ`,"nav.content":`Nội dung`,"nav.more":`Thêm`,"nav.approvals":`Phê duyệt`,"nav.settings":`Cài đặt`,"status.draft":`Bản nháp`,"status.review":`Đang duyệt`,"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:{"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`,"console.agent.title":`Další: připojit agenta`,"collection.filter.all":`Vše`,"nav.home":`Domů`,"nav.content":`Obsah`,"nav.more":`Více`,"nav.approvals":`Schválení`,"nav.settings":`Nastavení`,"status.draft":`Koncepty`,"status.review":`V kontrole`,"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:{"auth.signIn.title":`Увійти`,"common.signOut":`Вийти`,"common.viewSite":`Переглянути сайт`,"common.copy":`Копіювати`,"common.open":`Відкрити`,"common.failedToLoad":`Не вдалося завантажити`,"common.signedIn":`Ви увійшли`,"console.agent.title":`Далі: підключіть агента`,"collection.filter.all":`Усі`,"nav.home":`Головна`,"nav.content":`Контент`,"nav.more":`Більше`,"nav.approvals":`Схвалення`,"nav.settings":`Налаштування`,"status.draft":`Чернетки`,"status.review":`На перевірці`,"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:{"auth.signIn.title":`تسجيل الدخول`,"common.signOut":`تسجيل الخروج`,"common.viewSite":`عرض الموقع`,"common.copy":`نسخ`,"common.open":`فتح`,"common.failedToLoad":`فشل التحميل`,"common.signedIn":`تم تسجيل الدخول`,"console.agent.title":`التالي: وصّل الوكيل`,"collection.filter.all":`الكل`,"nav.home":`الرئيسية`,"nav.content":`المحتوى`,"nav.more":`المزيد`,"nav.approvals":`الموافقات`,"nav.settings":`الإعدادات`,"status.draft":`مسودات`,"status.review":`قيد المراجعة`,"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:{"auth.signIn.title":`כניסה`,"common.signOut":`יציאה`,"common.viewSite":`הצג אתר`,"common.copy":`העתק`,"common.open":`פתח`,"common.failedToLoad":`הטעינה נכשלה`,"common.signedIn":`מחובר`,"console.agent.title":`הבא: חבר agent`,"collection.filter.all":`הכול`,"nav.home":`בית`,"nav.content":`תוכן`,"nav.more":`עוד`,"nav.approvals":`אישורים`,"nav.settings":`הגדרות`,"status.draft":`טיוטות`,"status.review":`בבדיקה`,"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:{"auth.signIn.title":`ورود`,"common.signOut":`خروج`,"common.viewSite":`مشاهده سایت`,"common.copy":`کپی`,"common.open":`باز کردن`,"common.failedToLoad":`بارگذاری ناموفق بود`,"common.signedIn":`وارد شده‌اید`,"console.agent.title":`بعدی: اتصال agent`,"collection.filter.all":`همه`,"nav.home":`خانه`,"nav.content":`محتوا`,"nav.more":`بیشتر`,"nav.approvals":`تأییدها`,"nav.settings":`تنظیمات`,"status.draft":`پیش‌نویس‌ها`,"status.review":`در بازبینی`,"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:{"auth.signIn.title":`เข้าสู่ระบบ`,"common.signOut":`ออกจากระบบ`,"common.viewSite":`ดูเว็บไซต์`,"common.copy":`คัดลอก`,"common.open":`เปิด`,"common.failedToLoad":`โหลดไม่สำเร็จ`,"common.signedIn":`เข้าสู่ระบบแล้ว`,"console.agent.title":`ถัดไป: เชื่อมต่อ agent`,"collection.filter.all":`ทั้งหมด`,"nav.home":`หน้าแรก`,"nav.content":`เนื้อหา`,"nav.more":`เพิ่มเติม`,"nav.approvals":`การอนุมัติ`,"nav.settings":`การตั้งค่า`,"status.draft":`ฉบับร่าง`,"status.review":`กำลังตรวจสอบ`,"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:{"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`,"console.agent.title":`Berikutnya: hubungkan agent`,"collection.filter.all":`Semua`,"nav.home":`Beranda`,"nav.content":`Konten`,"nav.more":`Lainnya`,"nav.approvals":`Persetujuan`,"nav.settings":`Pengaturan`,"status.draft":`Draf`,"status.review":`Dalam ulasan`,"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 K(e,t,n={}){let r=ll[e]?.[t]??ll.en[t];for(let[e,t]of Object.entries(n))r=r.split(`{${e}}`).join(t);return r}function ul({brand:e}){let{setOpenMobile:t}=uc(),{language:n}=G();return(0,N.jsx)(bc,{children:(0,N.jsx)(xc,{children:(0,N.jsx)(Cc,{asChild:!0,size:`lg`,className:`data-[slot=sidebar-menu-button]:!p-1.5`,children:(0,N.jsxs)(`a`,{href:e.href??`/admin`,onClick:()=>t(!1),children:[(0,N.jsx)(`span`,{className:`text-primary flex aspect-square size-8 items-center justify-center`,children:(0,N.jsx)(sl,{className:`size-5`})}),(0,N.jsx)(`div`,{"data-sidebar-label":!0,className:`grid flex-1 text-start text-sm leading-tight`,children:(0,N.jsx)(`span`,{className:`truncate font-semibold`,children:K(n,`admin.consoleTitle`)})})]})})})})}var dl=`Collapsible`,[fl,pl]=Bi(dl),[ml,hl]=fl(dl),gl=M.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,l]=qi({prop:r,defaultProp:i??!1,onChange:o,caller:dl});return(0,N.jsx)(ml,{scope:n,disabled:a,contentId:Gi(),open:c,onOpenToggle:M.useCallback(()=>l(e=>!e),[l]),children:(0,N.jsx)(ra.div,{"data-state":Sl(c),"data-disabled":a?``:void 0,...s,ref:t})})});gl.displayName=dl;var _l=`CollapsibleTrigger`,vl=M.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=hl(_l,n);return(0,N.jsx)(ra.button,{type:`button`,"aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Sl(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:H(e.onClick,i.onOpenToggle)})});vl.displayName=_l;var yl=`CollapsibleContent`,bl=M.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=hl(yl,e.__scopeCollapsible);return(0,N.jsx)(za,{present:n||i.open,children:({present:e})=>(0,N.jsx)(xl,{...r,ref:t,present:e})})});bl.displayName=yl;var xl=M.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=hl(yl,n),[s,c]=M.useState(r),l=M.useRef(null),u=nr(t,l),d=M.useRef(0),f=d.current,p=M.useRef(0),m=p.current,h=o.open||s,g=M.useRef(h),_=M.useRef(void 0);return M.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),Hi(()=>{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,N.jsx)(ra.div,{"data-state":Sl(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})});function Sl(e){return e?`open`:`closed`}var Cl=gl,wl=vl,Tl=bl;function El(e){let t=e+`CollectionProvider`,[n,r]=Bi(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=M.useRef(null),a=M.useRef(new Map).current;return(0,N.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=Zi(s),l=M.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,N.jsx)(c,{ref:nr(t,a(s,n).collectionRef),children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=Zi(u),p=M.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=M.useRef(null),s=nr(t,o),c=a(u,n);return M.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,N.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return M.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[{Provider:o,Slot:l,ItemSlot:p},m,r]}var Dl=M.createContext(void 0);function Ol(e){let t=M.useContext(Dl);return e||t||`ltr`}var kl=[`top`,`right`,`bottom`,`left`],Al=Math.min,jl=Math.max,Ml=Math.round,Nl=Math.floor,Pl=e=>({x:e,y:e}),Fl={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Il(e,t,n){return jl(e,Al(t,n))}function Ll(e,t){return typeof e==`function`?e(t):e}function q(e){return e.split(`-`)[0]}function J(e){return e.split(`-`)[1]}function Y(e){return e===`x`?`y`:`x`}function X(e){return e===`y`?`height`:`width`}function Z(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Rl(e){return Y(Z(e))}function zl(e,t,n){n===void 0&&(n=!1);let r=J(e),i=Rl(e),a=X(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Jl(o)),[o,Jl(o)]}function Bl(e){let t=Jl(e);return[Vl(e),t,Vl(t)]}function Vl(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Hl=[`left`,`right`],Ul=[`right`,`left`],Wl=[`top`,`bottom`],Gl=[`bottom`,`top`];function Kl(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Ul:Hl:t?Hl:Ul;case`left`:case`right`:return t?Wl:Gl;default:return[]}}function ql(e,t,n,r){let i=J(e),a=Kl(q(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Vl)))),a}function Jl(e){let t=q(e);return Fl[t]+e.slice(t.length)}function Yl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Xl(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Yl(e)}function Zl(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 Ql(e,t,n){let{reference:r,floating:i}=e,a=Z(t),o=Rl(t),s=X(o),c=q(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}}switch(J(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function $l(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}=Ll(t,e),p=Xl(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Zl(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=Zl(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 eu=50,tu=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:$l},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ql(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<eu&&(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}=Ql(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},nu=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}=Ll(e,t)||{};if(l==null)return{};let d=Xl(u),f={x:n,y:r},p=Rl(i),m=X(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,ee=Al(d[_],T),te=Al(d[v],T),E=ee,ne=C-h[m]-te,re=C/2-h[m]/2+w,ie=Il(E,re,ne),D=!c.arrow&&J(i)!=null&&re!==ie&&a.reference[m]/2-(re<E?ee:te)-h[m]/2<0,ae=D?re<E?re-E:re-ne:0;return{[p]:f[p]+ae,data:{[p]:ie,centerOffset:re-ie-ae,...D&&{alignmentOffset:ae}},reset:D}}}),ru=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}=Ll(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=q(r),_=Z(o),v=q(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Jl(o)]:Bl(o)),x=p!==`none`;!d&&x&&b.push(...ql(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=zl(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`&&_!==Z(t))||T.every(e=>Z(e.placement)===_?e.overflows[0]>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=Z(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;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function iu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function au(e){return kl.some(t=>e[t]>=0)}var ou=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Ll(e,t);switch(i){case`referenceHidden`:{let e=iu(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:au(e)}}}case`escaped`:{let e=iu(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:au(e)}}}default:return{}}}}},su=new Set([`left`,`top`]);async function cu(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=q(n),s=J(n),c=Z(n)===`y`,l=su.has(o)?-1:1,u=a&&c?-1:1,d=Ll(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 lu=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 cu(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}}}}},uu=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}=Ll(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Z(q(i)),p=Y(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Il(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Il(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},du=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}=Ll(e,t),u={x:n,y:r},d=Z(i),f=Y(d),p=u[f],m=u[d],h=Ll(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};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=su.has(q(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}}}},fu=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Ll(e,t),u=await o.detectOverflow(t,l),d=q(i),f=J(i),p=Z(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Al(h-u[g],v),x=Al(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=jl(u.left,0),t=jl(u.right,0),n=jl(u.top,0),r=jl(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:jl(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:jl(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function pu(){return typeof window<`u`}function mu(e){return _u(e)?(e.nodeName||``).toLowerCase():`#document`}function hu(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function gu(e){return((_u(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function _u(e){return pu()?e instanceof Node||e instanceof hu(e).Node:!1}function vu(e){return pu()?e instanceof Element||e instanceof hu(e).Element:!1}function yu(e){return pu()?e instanceof HTMLElement||e instanceof hu(e).HTMLElement:!1}function bu(e){return!pu()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof hu(e).ShadowRoot}function xu(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Mu(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Su(e){return/^(table|td|th)$/.test(mu(e))}function Cu(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var wu=/transform|translate|scale|rotate|perspective|filter/,Tu=/paint|layout|strict|content/,Eu=e=>!!e&&e!==`none`,Du;function Ou(e){let t=vu(e)?Mu(e):e;return Eu(t.transform)||Eu(t.translate)||Eu(t.scale)||Eu(t.rotate)||Eu(t.perspective)||!Au()&&(Eu(t.backdropFilter)||Eu(t.filter))||wu.test(t.willChange||``)||Tu.test(t.contain||``)}function ku(e){let t=Pu(e);for(;yu(t)&&!ju(t);){if(Ou(t))return t;if(Cu(t))return null;t=Pu(t)}return null}function Au(){return Du??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Du}function ju(e){return/^(html|body|#document)$/.test(mu(e))}function Mu(e){return hu(e).getComputedStyle(e)}function Nu(e){return vu(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pu(e){if(mu(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||bu(e)&&e.host||gu(e);return bu(t)?t.host:t}function Fu(e){let t=Pu(e);return ju(t)?e.ownerDocument?e.ownerDocument.body:e.body:yu(t)&&xu(t)?t:Fu(t)}function Iu(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Fu(e),i=r===e.ownerDocument?.body,a=hu(r);if(i){let e=Lu(a);return t.concat(a,a.visualViewport||[],xu(r)?r:[],e&&n?Iu(e):[])}else return t.concat(r,Iu(r,[],n))}function Lu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ru(e){let t=Mu(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=yu(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Ml(n)!==a||Ml(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function zu(e){return vu(e)?e:e.contextElement}function Bu(e){let t=zu(e);if(!yu(t))return Pl(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Ru(t),o=(a?Ml(n.width):n.width)/r,s=(a?Ml(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Vu=Pl(0);function Hu(e){let t=hu(e);return!Au()||!t.visualViewport?Vu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Uu(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==hu(e)?!1:t}function Q(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=zu(e),o=Pl(1);t&&(r?vu(r)&&(o=Bu(r)):o=Bu(e));let s=Uu(a,n,r)?Hu(a):Pl(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){let e=hu(a),t=r&&vu(r)?hu(r):r,n=e,i=Lu(n);for(;i&&r&&t!==n;){let e=Bu(i),t=i.getBoundingClientRect(),r=Mu(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=hu(i),i=Lu(n)}}return Zl({width:u,height:d,x:c,y:l})}function Wu(e,t){let n=Nu(e).scrollLeft;return t?t.left+n:Q(gu(e)).left+n}function Gu(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Wu(e,n),y:n.top+t.scrollTop}}function Ku(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=gu(r),s=t?Cu(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Pl(1),u=Pl(0),d=yu(r);if((d||!d&&!a)&&((mu(r)!==`body`||xu(o))&&(c=Nu(r)),d)){let e=Q(r);l=Bu(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Gu(o,c):Pl(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 qu(e){return Array.from(e.getClientRects())}function Ju(e){let t=gu(e),n=Nu(e),r=e.ownerDocument.body,i=jl(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=jl(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Wu(e),s=-n.scrollTop;return Mu(r).direction===`rtl`&&(o+=jl(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Yu=25;function Xu(e,t){let n=hu(e),r=gu(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Au();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Wu(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Yu&&(a-=o)}else l<=Yu&&(a+=l);return{width:a,height:o,x:s,y:c}}function Zu(e,t){let n=Q(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=yu(e)?Bu(e):Pl(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Qu(e,t,n){let r;if(t===`viewport`)r=Xu(e,n);else if(t===`document`)r=Ju(gu(e));else if(vu(t))r=Zu(t,n);else{let n=Hu(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Zl(r)}function $u(e,t){let n=Pu(e);return n===t||!vu(n)||ju(n)?!1:Mu(n).position===`fixed`||$u(n,t)}function ed(e,t){let n=t.get(e);if(n)return n;let r=Iu(e,[],!1).filter(e=>vu(e)&&mu(e)!==`body`),i=null,a=Mu(e).position===`fixed`,o=a?Pu(e):e;for(;vu(o)&&!ju(o);){let t=Mu(o),n=Ou(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||xu(o)&&!n&&$u(e,o))?r=r.filter(e=>e!==o):i=t,o=Pu(o)}return t.set(e,r),r}function td(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Cu(t)?[]:ed(t,this._c):[].concat(n),r],o=Qu(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=Qu(t,a[e],i);s=jl(n.top,s),c=Al(n.right,c),l=Al(n.bottom,l),u=jl(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function nd(e){let{width:t,height:n}=Ru(e);return{width:t,height:n}}function rd(e,t,n){let r=yu(t),i=gu(t),a=n===`fixed`,o=Q(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Pl(0);function l(){c.x=Wu(i)}if(r||!r&&!a)if((mu(t)!==`body`||xu(i))&&(s=Nu(t)),r){let e=Q(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Gu(i,s):Pl(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function id(e){return Mu(e).position===`static`}function ad(e,t){if(!yu(e)||Mu(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return gu(e)===n&&(n=n.ownerDocument.body),n}function od(e,t){let n=hu(e);if(Cu(e))return n;if(!yu(e)){let t=Pu(e);for(;t&&!ju(t);){if(vu(t)&&!id(t))return t;t=Pu(t)}return n}let r=ad(e,t);for(;r&&Su(r)&&id(r);)r=ad(r,t);return r&&ju(r)&&id(r)&&!Ou(r)?n:r||ku(e)||n}var sd=async function(e){let t=this.getOffsetParent||od,n=this.getDimensions,r=await n(e.floating);return{reference:rd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function cd(e){return Mu(e).direction===`rtl`}var ld={convertOffsetParentRelativeRectToViewportRelativeRect:Ku,getDocumentElement:gu,getClippingRect:td,getOffsetParent:od,getElementRects:sd,getClientRects:qu,getDimensions:nd,getScale:Bu,isElement:vu,isRTL:cd};function ud(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function dd(e,t){let n=null,r,i=gu(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Nl(d),h=Nl(i.clientWidth-(u+f)),g=Nl(i.clientHeight-(d+p)),_=Nl(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:jl(0,Al(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!ud(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function fd(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=zu(e),u=i||a?[...l?Iu(l):[],...t?Iu(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?dd(l,n):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?Q(e):null;c&&g();function g(){let t=Q(e);h&&!ud(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 pd=lu,md=uu,hd=ru,gd=fu,_d=ou,vd=nu,$=du,yd=(e,t,n)=>{let r=new Map,i={platform:ld,...n},a={...i.platform,_c:r};return tu(e,t,{...i,platform:a})},bd=typeof document<`u`?M.useLayoutEffect:function(){};function xd(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(!xd(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)&&!xd(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Sd(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Cd(e,t){let n=Sd(e);return Math.round(t*n)/n}function wd(e){let t=M.useRef(e);return bd(()=>{t.current=e}),t}function Td(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]=M.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=M.useState(r);xd(f,r)||p(r);let[m,h]=M.useState(null),[g,_]=M.useState(null),v=M.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=M.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=M.useRef(null),C=M.useRef(null),w=M.useRef(u),T=c!=null,ee=wd(c),te=wd(i),E=wd(l),ne=M.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};te.current&&(e.platform=te.current),yd(S.current,C.current,e).then(e=>{let t={...e,isPositioned:E.current!==!1};re.current&&!xd(w.current,t)&&(w.current=t,Xi.flushSync(()=>{d(t)}))})},[f,t,n,te,E]);bd(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let re=M.useRef(!1);bd(()=>(re.current=!0,()=>{re.current=!1}),[]),bd(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(ee.current)return ee.current(b,x,ne);ne()}},[b,x,ne,ee,T]);let ie=M.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),D=M.useMemo(()=>({reference:b,floating:x}),[b,x]),ae=M.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=Cd(D.floating,u.x),r=Cd(D.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Sd(D.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,D.floating,u.x,u.y]);return M.useMemo(()=>({...u,update:ne,refs:ie,elements:D,floatingStyles:ae}),[u,ne,ie,D,ae])}var Ed=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?{}:vd({element:r.current,padding:i}).fn(n):r?vd({element:r,padding:i}).fn(n):{}}}},Dd=(e,t)=>{let n=pd(e);return{name:n.name,fn:n.fn,options:[e,t]}},Od=(e,t)=>{let n=md(e);return{name:n.name,fn:n.fn,options:[e,t]}},kd=(e,t)=>({fn:$(e).fn,options:[e,t]}),Ad=(e,t)=>{let n=hd(e);return{name:n.name,fn:n.fn,options:[e,t]}},jd=(e,t)=>{let n=gd(e);return{name:n.name,fn:n.fn,options:[e,t]}},Md=(e,t)=>{let n=_d(e);return{name:n.name,fn:n.fn,options:[e,t]}},Nd=(e,t)=>{let n=Ed(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pd=`Arrow`,Fd=M.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,N.jsx)(ra.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,N.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Fd.displayName=Pd;var Id=Fd;function Ld(e){let[t,n]=M.useState(void 0);return Hi(()=>{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)}else n(void 0)},[e]),t}var Rd=`Popper`,[zd,Bd]=Bi(Rd),[Vd,Hd]=zd(Rd),Ud=e=>{let{__scopePopper:t,children:n}=e,[r,i]=M.useState(null);return(0,N.jsx)(Vd,{scope:t,anchor:r,onAnchorChange:i,children:n})};Ud.displayName=Rd;var Wd=`PopperAnchor`,Gd=M.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=Hd(Wd,n),o=M.useRef(null),s=nr(t,o),c=M.useRef(null);return M.useEffect(()=>{let e=c.current;c.current=r?.current||o.current,e!==c.current&&a.onAnchorChange(c.current)}),r?null:(0,N.jsx)(ra.div,{...i,ref:s})});Gd.displayName=Wd;var Kd=`PopperContent`,[qd,Jd]=zd(Kd),Yd=M.forwardRef((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=Hd(Kd,n),[_,v]=M.useState(null),y=nr(t,e=>v(e)),[b,x]=M.useState(null),S=Ld(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),ee=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},te=Array.isArray(l)?l:[l],E=te.length>0,ne={padding:ee,boundary:te.filter($d),altBoundary:E},{refs:re,floatingStyles:ie,placement:D,isPositioned:ae,middlewareData:oe}=Td({strategy:`fixed`,placement:T,whileElementsMounted:(...e)=>fd(...e,{animationFrame:p===`always`}),elements:{reference:g.anchor},middleware:[Dd({mainAxis:i+w,alignmentAxis:o}),c&&Od({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?kd():void 0,...ne}),c&&Ad({...ne}),jd({...ne,apply:({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`)}}),b&&Nd({element:b,padding:s}),ef({arrowWidth:C,arrowHeight:w}),f&&Md({strategy:`referenceHidden`,...ne})]}),[se,O]=tf(D),k=aa(m);Hi(()=>{ae&&k?.()},[ae,k]);let ce=oe.arrow?.x,le=oe.arrow?.y,ue=oe.arrow?.centerOffset!==0,[de,A]=M.useState();return Hi(()=>{_&&A(window.getComputedStyle(_).zIndex)},[_]),(0,N.jsx)(`div`,{ref:re.setFloating,"data-radix-popper-content-wrapper":``,style:{...ie,transform:ae?ie.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:de,"--radix-popper-transform-origin":[oe.transformOrigin?.x,oe.transformOrigin?.y].join(` `),...oe.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,N.jsx)(qd,{scope:n,placedSide:se,onArrowChange:x,arrowX:ce,arrowY:le,shouldHideArrow:ue,children:(0,N.jsx)(ra.div,{"data-side":se,"data-align":O,...h,ref:y,style:{...h.style,animation:ae?void 0:`none`}})})})});Yd.displayName=Kd;var Xd=`PopperArrow`,Zd={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Qd=M.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Jd(Xd,n),a=Zd[i.placedSide];return(0,N.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,N.jsx)(Id,{...r,ref:t,style:{...r.style,display:`block`}})})});Qd.displayName=Xd;function $d(e){return e!==null}var ef=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]=tf(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}}}});function tf(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var nf=Ud,rf=Gd,af=Yd,of=Qd,sf=`rovingFocusGroup.onEntryFocus`,cf={bubbles:!1,cancelable:!0},lf=`RovingFocusGroup`,[uf,df,ff]=El(lf),[pf,mf]=Bi(lf,[ff]),[hf,gf]=pf(lf),_f=M.forwardRef((e,t)=>(0,N.jsx)(uf.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,N.jsx)(uf.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,N.jsx)(vf,{...e,ref:t})})}));_f.displayName=lf;var vf=M.forwardRef((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=M.useRef(null),p=nr(t,f),m=Ol(a),[h,g]=qi({prop:o,defaultProp:s??null,onChange:c,caller:lf}),[_,v]=M.useState(!1),y=aa(l),b=df(n),x=M.useRef(!1),[S,C]=M.useState(0);return M.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(sf,y),()=>e.removeEventListener(sf,y)},[y]),(0,N.jsx)(hf,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:M.useCallback(e=>g(e),[g]),onItemShiftTab:M.useCallback(()=>v(!0),[]),onFocusableItemAdd:M.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:M.useCallback(()=>C(e=>e-1),[]),children:(0,N.jsx)(ra.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:H(e.onMouseDown,()=>{x.current=!0}),onFocus:H(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(sf,cf);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);wf([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:H(e.onBlur,()=>v(!1))})})}),yf=`RovingFocusGroupItem`,bf=M.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=Gi(),l=a||c,u=gf(yf,n),d=u.currentTabStopId===l,f=df(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u;return M.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),(0,N.jsx)(uf.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,N.jsx)(ra.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:H(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:H(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:H(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Cf(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(()=>wf(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})});bf.displayName=yf;var xf={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Sf(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function Cf(e,t,n){let r=Sf(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return xf[r]}function wf(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Tf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ef=_f,Df=bf,Of=[`Enter`,` `],kf=[`ArrowDown`,`PageUp`,`Home`],Af=[`ArrowUp`,`PageDown`,`End`],jf=[...kf,...Af],Mf={ltr:[...Of,`ArrowRight`],rtl:[...Of,`ArrowLeft`]},Nf={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},Pf=`Menu`,[Ff,If,Lf]=El(Pf),[Rf,zf]=Bi(Pf,[Lf,Bd,mf]),Bf=Bd(),Vf=mf(),[Hf,Uf]=Rf(Pf),[Wf,Gf]=Rf(Pf),Kf=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=Bf(t),[c,l]=M.useState(null),u=M.useRef(!1),d=aa(a),f=Ol(i);return M.useEffect(()=>{let e=()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>u.current=!1;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})}},[]),(0,N.jsx)(nf,{...s,children:(0,N.jsx)(Hf,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,N.jsx)(Wf,{scope:t,onClose:M.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})};Kf.displayName=Pf;var qf=`MenuAnchor`,Jf=M.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Bf(n);return(0,N.jsx)(rf,{...i,...r,ref:t})});Jf.displayName=qf;var Yf=`MenuPortal`,[Xf,Zf]=Rf(Yf,{forceMount:void 0}),Qf=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=Uf(Yf,t);return(0,N.jsx)(Xf,{scope:t,forceMount:n,children:(0,N.jsx)(za,{present:n||a.open,children:(0,N.jsx)(La,{asChild:!0,container:i,children:r})})})};Qf.displayName=Yf;var $f=`MenuContent`,[ep,tp]=Rf($f),np=M.forwardRef((e,t)=>{let n=Zf($f,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Uf($f,e.__scopeMenu),o=Gf($f,e.__scopeMenu);return(0,N.jsx)(Ff.Provider,{scope:e.__scopeMenu,children:(0,N.jsx)(za,{present:r||a.open,children:(0,N.jsx)(Ff.Slot,{scope:e.__scopeMenu,children:o.modal?(0,N.jsx)(rp,{...i,ref:t}):(0,N.jsx)(ip,{...i,ref:t})})})})}),rp=M.forwardRef((e,t)=>{let n=Uf($f,e.__scopeMenu),r=M.useRef(null),i=nr(t,r);return M.useEffect(()=>{let e=r.current;if(e)return cs(e)},[]),(0,N.jsx)(op,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:H(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),ip=M.forwardRef((e,t)=>{let n=Uf($f,e.__scopeMenu);return(0,N.jsx)(op,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ap=Zi(`MenuContent.ScrollLock`),op=M.forwardRef((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=Uf($f,n),_=Gf($f,n),v=Bf(n),y=Vf(n),b=If(n),[x,S]=M.useState(null),C=M.useRef(null),w=nr(t,C,g.onContentChange),T=M.useRef(0),ee=M.useRef(``),te=M.useRef(0),E=M.useRef(null),ne=M.useRef(`right`),re=M.useRef(0),ie=m?$o:M.Fragment,D=m?{as:ap,allowPinchZoom:!0}:void 0,ae=e=>{let t=ee.current+e,n=b().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=Wp(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){ee.current=t,window.clearTimeout(T.current),t!==``&&(T.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};M.useEffect(()=>()=>window.clearTimeout(T.current),[]),Wa();let oe=M.useCallback(e=>ne.current===E.current?.side&&Kp(e,E.current?.area),[]);return(0,N.jsx)(ep,{scope:n,searchRef:ee,onItemEnter:M.useCallback(e=>{oe(e)&&e.preventDefault()},[oe]),onItemLeave:M.useCallback(e=>{oe(e)||(C.current?.focus(),S(null))},[oe]),onTriggerLeave:M.useCallback(e=>{oe(e)&&e.preventDefault()},[oe]),pointerGraceTimerRef:te,onPointerGraceIntentChange:M.useCallback(e=>{E.current=e},[]),children:(0,N.jsx)(ie,{...D,children:(0,N.jsx)(wa,{asChild:!0,trapped:i,onMountAutoFocus:H(a,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,N.jsx)(pa,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,N.jsx)(Ef,{asChild:!0,...y,dir:_.dir,orientation:`vertical`,loop:r,currentTabStopId:x,onCurrentTabStopIdChange:S,onEntryFocus:H(c,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,N.jsx)(af,{role:`menu`,"aria-orientation":`vertical`,"data-state":zp(g.open),"data-radix-menu-content":``,dir:_.dir,...v,...h,ref:w,style:{outline:`none`,...h.style},onKeyDown:H(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&&ae(e.key));let i=C.current;if(e.target!==i||!jf.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled).map(e=>e.ref.current);Af.includes(e.key)&&a.reverse(),Hp(a)}),onBlur:H(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),ee.current=``)}),onPointerMove:H(e.onPointerMove,qp(e=>{let t=e.target,n=re.current!==e.clientX;e.currentTarget.contains(t)&&n&&(ne.current=e.clientX>re.current?`right`:`left`,re.current=e.clientX)}))})})})})})})});np.displayName=$f;var sp=`MenuGroup`,cp=M.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,N.jsx)(ra.div,{role:`group`,...r,ref:t})});cp.displayName=sp;var lp=`MenuLabel`,up=M.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,N.jsx)(ra.div,{...r,ref:t})});up.displayName=lp;var dp=`MenuItem`,fp=`menu.itemSelect`,pp=M.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=M.useRef(null),o=Gf(dp,e.__scopeMenu),s=tp(dp,e.__scopeMenu),c=nr(t,a),l=M.useRef(!1),u=()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(fp,{bubbles:!0,cancelable:!0});e.addEventListener(fp,e=>r?.(e),{once:!0}),ia(e,t),t.defaultPrevented?l.current=!1:o.onClose()}};return(0,N.jsx)(mp,{...i,ref:c,disabled:n,onClick:H(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:H(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:H(e.onKeyDown,e=>{let t=s.searchRef.current!==``;n||t&&e.key===` `||Of.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});pp.displayName=dp;var mp=M.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=tp(dp,n),s=Vf(n),c=M.useRef(null),l=nr(t,c),[u,d]=M.useState(!1),[f,p]=M.useState(``);return M.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,N.jsx)(Ff.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,N.jsx)(Df,{asChild:!0,...s,focusable:!r,children:(0,N.jsx)(ra.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:H(e.onPointerMove,qp(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:H(e.onPointerLeave,qp(e=>o.onItemLeave(e))),onFocus:H(e.onFocus,()=>d(!0)),onBlur:H(e.onBlur,()=>d(!1))})})})}),hp=`MenuCheckboxItem`,gp=M.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,N.jsx)(wp,{scope:e.__scopeMenu,checked:n,children:(0,N.jsx)(pp,{role:`menuitemcheckbox`,"aria-checked":Bp(n)?`mixed`:n,...i,ref:t,"data-state":Vp(n),onSelect:H(i.onSelect,()=>r?.(Bp(n)?!0:!n),{checkForDefaultPrevented:!1})})})});gp.displayName=hp;var _p=`MenuRadioGroup`,[vp,yp]=Rf(_p,{value:void 0,onValueChange:()=>{}}),bp=M.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=aa(r);return(0,N.jsx)(vp,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,N.jsx)(cp,{...i,ref:t})})});bp.displayName=_p;var xp=`MenuRadioItem`,Sp=M.forwardRef((e,t)=>{let{value:n,...r}=e,i=yp(xp,e.__scopeMenu),a=n===i.value;return(0,N.jsx)(wp,{scope:e.__scopeMenu,checked:a,children:(0,N.jsx)(pp,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":Vp(a),onSelect:H(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Sp.displayName=xp;var Cp=`MenuItemIndicator`,[wp,Tp]=Rf(Cp,{checked:!1}),Ep=M.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=Tp(Cp,n);return(0,N.jsx)(za,{present:r||Bp(a.checked)||a.checked===!0,children:(0,N.jsx)(ra.span,{...i,ref:t,"data-state":Vp(a.checked)})})});Ep.displayName=Cp;var Dp=`MenuSeparator`,Op=M.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,N.jsx)(ra.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});Op.displayName=Dp;var kp=`MenuArrow`,Ap=M.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Bf(n);return(0,N.jsx)(of,{...i,...r,ref:t})});Ap.displayName=kp;var jp=`MenuSub`,[Mp,Np]=Rf(jp),Pp=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=Uf(jp,t),o=Bf(t),[s,c]=M.useState(null),[l,u]=M.useState(null),d=aa(i);return M.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,N.jsx)(nf,{...o,children:(0,N.jsx)(Hf,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,N.jsx)(Mp,{scope:t,contentId:Gi(),triggerId:Gi(),trigger:s,onTriggerChange:c,children:n})})})};Pp.displayName=jp;var Fp=`MenuSubTrigger`,Ip=M.forwardRef((e,t)=>{let n=Uf(Fp,e.__scopeMenu),r=Gf(Fp,e.__scopeMenu),i=Np(Fp,e.__scopeMenu),a=tp(Fp,e.__scopeMenu),o=M.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=M.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return M.useEffect(()=>u,[u]),M.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]),(0,N.jsx)(Jf,{asChild:!0,...l,children:(0,N.jsx)(mp,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":i.contentId,"data-state":zp(n.open),...e,ref:tr(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:H(e.onPointerMove,qp(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:H(e.onPointerLeave,qp(e=>{u();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:H(e.onKeyDown,t=>{let i=a.searchRef.current!==``;e.disabled||i&&t.key===` `||Mf[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});Ip.displayName=Fp;var Lp=`MenuSubContent`,Rp=M.forwardRef((e,t)=>{let n=Zf($f,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Uf($f,e.__scopeMenu),o=Gf($f,e.__scopeMenu),s=Np(Lp,e.__scopeMenu),c=M.useRef(null),l=nr(t,c);return(0,N.jsx)(Ff.Provider,{scope:e.__scopeMenu,children:(0,N.jsx)(za,{present:r||a.open,children:(0,N.jsx)(Ff.Slot,{scope:e.__scopeMenu,children:(0,N.jsx)(op,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:l,align:`start`,side:o.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{o.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:H(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:H(e.onEscapeKeyDown,e=>{o.onClose(),e.preventDefault()}),onKeyDown:H(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=Nf[o.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});Rp.displayName=Lp;function zp(e){return e?`open`:`closed`}function Bp(e){return e===`indeterminate`}function Vp(e){return Bp(e)?`indeterminate`:e?`checked`:`unchecked`}function Hp(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Up(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Wp(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=Up(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}function Gp(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}function Kp(e,t){return t?Gp({x:e.clientX,y:e.clientY},t):!1}function qp(e){return t=>t.pointerType===`mouse`?e(t):void 0}var Jp=Kf,Yp=Jf,Xp=Qf,Zp=np,Qp=cp,$p=up,em=pp,tm=gp,nm=bp,rm=Sp,im=Ep,am=Op,om=Ap,sm=Ip,cm=Rp,lm=`DropdownMenu`,[um,dm]=Bi(lm,[zf]),fm=zf(),[pm,mm]=um(lm),hm=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=fm(t),l=M.useRef(null),[u,d]=qi({prop:i,defaultProp:a??!1,onChange:o,caller:lm});return(0,N.jsx)(pm,{scope:t,triggerId:Gi(),triggerRef:l,contentId:Gi(),open:u,onOpenChange:d,onOpenToggle:M.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,N.jsx)(Jp,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};hm.displayName=lm;var gm=`DropdownMenuTrigger`,_m=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=mm(gm,n),o=fm(n);return(0,N.jsx)(Yp,{asChild:!0,...o,children:(0,N.jsx)(ra.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:tr(t,a.triggerRef),onPointerDown:H(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:H(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});_m.displayName=gm;var vm=`DropdownMenuPortal`,ym=e=>{let{__scopeDropdownMenu:t,...n}=e,r=fm(t);return(0,N.jsx)(Xp,{...r,...n})};ym.displayName=vm;var bm=`DropdownMenuContent`,xm=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=mm(bm,n),a=fm(n),o=M.useRef(!1);return(0,N.jsx)(Zp,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:H(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:H(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)`}})});xm.displayName=bm;var Sm=`DropdownMenuGroup`,Cm=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=fm(n);return(0,N.jsx)(Qp,{...i,...r,ref:t})});Cm.displayName=Sm;var wm=`DropdownMenuLabel`,Tm=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=fm(n);return(0,N.jsx)($p,{...i,...r,ref:t})});Tm.displayName=wm;var Em=`DropdownMenuItem`,Dm=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=fm(n);return(0,N.jsx)(em,{...i,...r,ref:t})});Dm.displayName=Em;var Om=`DropdownMenuCheckboxItem`,km=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=fm(n);return(0,N.jsx)(tm,{...i,...r,ref:t})});km.displayName=Om;var Am=`DropdownMenuRadioGroup`,jm=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=fm(n);return(0,N.jsx)(nm,{...i,...r,ref:t})});jm.displayName=Am;var Mm=`DropdownMenuRadioItem`,Nm=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=fm(n);return(0,N.jsx)(rm,{...i,...r,ref:t})});Nm.displayName=Mm;var Pm=`DropdownMenuItemIndicator`,Fm=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=fm(n);return(0,N.jsx)(im,{...i,...r,ref:t})});Fm.displayName=Pm;var Im=`DropdownMenuSeparator`,Lm=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=fm(n);return(0,N.jsx)(am,{...i,...r,ref:t})});Lm.displayName=Im;var Rm=`DropdownMenuArrow`,zm=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=fm(n);return(0,N.jsx)(om,{...i,...r,ref:t})});zm.displayName=Rm;var Bm=`DropdownMenuSubTrigger`,Vm=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=fm(n);return(0,N.jsx)(sm,{...i,...r,ref:t})});Vm.displayName=Bm;var Hm=`DropdownMenuSubContent`,Um=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=fm(n);return(0,N.jsx)(cm,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Um.displayName=Hm;var Wm=hm,Gm=_m,Km=ym,qm=xm,Jm=Tm,Ym=Dm,Xm=Lm,Zm=Wm,Qm=Gm,$m=M.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,N.jsx)(Km,{children:(0,N.jsx)(qm,{ref:r,sideOffset:t,className:B(`z-50 min-w-[8rem] overflow-hidden rounded-lg border border-[var(--glass-border)] bg-card backdrop-blur-md p-1 text-foreground shadow-[var(--glass-shadow-lg)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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`,e),...n})}));$m.displayName=qm.displayName;var eh=M.forwardRef(({className:e,inset:t,...n},r)=>(0,N.jsx)(Ym,{ref:r,className:B(`relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,t&&`ps-8`,e),...n}));eh.displayName=Ym.displayName;var th=M.forwardRef(({className:e,inset:t,...n},r)=>(0,N.jsx)(Jm,{ref:r,className:B(`px-2 py-1.5 text-sm font-semibold text-primary`,t&&`ps-8`,e),...n}));th.displayName=Jm.displayName;var nh=M.forwardRef(({className:e,...t},n)=>(0,N.jsx)(Xm,{ref:n,className:B(`-mx-1 my-1 h-px bg-[var(--glass-border)]`,e),...t}));nh.displayName=Xm.displayName;function rh(e){return Array.isArray(e.items)}function ih({group:e,pathname:t,search:n}){return(0,N.jsxs)(vc,{children:[e.title&&(0,N.jsx)(yc,{title:e.title,children:e.title}),(0,N.jsx)(bc,{children:e.items.map(e=>(0,N.jsx)(oh,{item:e,pathname:t,search:n},ah(e)))})]})}function ah(e){return rh(e)?`g:${e.title}`:`l:${e.url}`}function oh({item:e,pathname:t,search:n}){let{state:r,isMobile:i}=uc();return rh(e)?r===`collapsed`&&!i?(0,N.jsx)(dh,{item:e,pathname:t,search:n}):(0,N.jsx)(ch,{item:e,pathname:t,search:n}):(0,N.jsx)(sh,{item:e,pathname:t,search:n})}function sh({item:e,pathname:t,search:n}){let{setOpenMobile:r}=uc();return(0,N.jsx)(xc,{children:(0,N.jsx)(Cc,{asChild:!0,isActive:ph(e,t,n),children:(0,N.jsxs)(`a`,{href:e.url,title:e.title,"data-tour":uh(e.url),onClick:()=>r(!1),...e.external?{target:`_blank`,rel:`noreferrer`}:null,children:[e.icon&&(0,N.jsx)(e.icon,{"aria-hidden":!0}),(0,N.jsx)(`span`,{"data-sidebar-label":!0,className:`flex-1 truncate`,children:e.title}),e.marker&&(0,N.jsx)(e.marker,{"aria-hidden":!0,"data-sidebar-label":!0,className:`size-3.5 text-muted-foreground`}),e.badge&&(0,N.jsx)(fh,{sidebarLabel:!0,children:e.badge})]})})})}function ch({item:e,pathname:t,search:n}){let r=mh(e,t,n);return(0,N.jsx)(Cl,{defaultOpen:r,className:`group/collapsible`,asChild:!0,children:(0,N.jsxs)(xc,{children:[(0,N.jsx)(wl,{asChild:!0,children:(0,N.jsxs)(Cc,{isActive:r,"data-tour":uh(e.items[0]?.url),children:[e.icon&&(0,N.jsx)(e.icon,{"aria-hidden":!0}),(0,N.jsx)(`span`,{"data-sidebar-label":!0,className:`flex-1 truncate`,title:e.title,children:e.title}),e.marker&&(0,N.jsx)(e.marker,{"aria-hidden":!0,"data-sidebar-label":!0,className:`size-3.5 text-muted-foreground`}),e.badge&&(0,N.jsx)(fh,{sidebarLabel:!0,children:e.badge}),(0,N.jsx)(kt,{"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,N.jsx)(Tl,{children:(0,N.jsx)(wc,{children:e.items.map(e=>(0,N.jsx)(lh,{link:e,pathname:t,search:n},e.url))})})]})})}function lh({link:e,pathname:t,search:n}){let{setOpenMobile:r}=uc();return(0,N.jsx)(Tc,{children:(0,N.jsx)(Ec,{asChild:!0,isActive:ph(e,t,n),children:(0,N.jsxs)(`a`,{href:e.url,title:e.title,"data-tour":uh(e.url),onClick:()=>r(!1),children:[e.icon&&(0,N.jsx)(e.icon,{"aria-hidden":!0}),(0,N.jsx)(`span`,{children:e.title}),e.badge&&(0,N.jsx)(fh,{children:e.badge})]})})})}function uh(e){if(e){if(e===`/admin`)return`nav-home`;if(e.startsWith(`/admin/c/products`))return`nav-products`;if(e===`/admin/media`)return`nav-media`;if(e===`/admin/settings`)return`nav-settings`}}function dh({item:e,pathname:t,search:n}){let r=mh(e,t,n),{direction:i}=G();return(0,N.jsx)(xc,{children:(0,N.jsxs)(Zm,{children:[(0,N.jsx)(Qm,{asChild:!0,children:(0,N.jsxs)(Cc,{isActive:r,children:[e.icon&&(0,N.jsx)(e.icon,{"aria-hidden":!0}),(0,N.jsx)(`span`,{"data-sidebar-label":!0,title:e.title,children:e.title}),(0,N.jsx)(kt,{"aria-hidden":!0,"data-sidebar-label":!0,className:`ms-auto`})]})}),(0,N.jsxs)($m,{side:i===`rtl`?`left`:`right`,align:`start`,sideOffset:4,children:[(0,N.jsx)(th,{children:e.title}),(0,N.jsx)(nh,{}),e.items.map(e=>(0,N.jsx)(eh,{asChild:!0,children:(0,N.jsx)(`a`,{href:e.url,className:B(ph(e,t,n)&&`font-medium`),children:e.title})},e.url))]})]})})}function fh({children:e,sidebarLabel:t=!1}){return(0,N.jsx)(`span`,{"data-sidebar-label":t||void 0,className:`ms-auto rounded-full bg-accent px-2 py-0.5 text-xs text-accent-foreground`,children:e})}function ph(e,t,n){let r=new URL(e.url,`http://x`);if(r.pathname!==t)return!1;if(!r.search)return!0;let i=new URLSearchParams(r.search),a=new URLSearchParams(n);for(let[e,t]of i.entries())if(a.get(e)!==t)return!1;return!0}function mh(e,t,n){return e.items.some(e=>ph(e,t,n))?!0:e.items.some(e=>new URL(e.url,`http://x`).pathname===t)}function hh({login:e,role:t}){let{isMobile:n}=uc(),{language:r}=G(),i=(e??`?`).charAt(0).toUpperCase(),a=e?`https://github.com/${encodeURIComponent(e)}.png?size=80`:null;return(0,N.jsx)(bc,{children:(0,N.jsx)(xc,{children:(0,N.jsxs)(Zm,{children:[(0,N.jsx)(Qm,{asChild:!0,children:(0,N.jsxs)(Cc,{size:`lg`,className:`data-[state=open]:bg-accent/40`,children:[(0,N.jsx)(gh,{avatarUrl:a,initial:i}),(0,N.jsxs)(`div`,{"data-sidebar-label":!0,className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,N.jsx)(`span`,{className:`truncate font-semibold`,children:e??`—`}),(0,N.jsx)(`span`,{className:`truncate text-xs text-muted-foreground`,children:t??K(r,`common.signedIn`)})]}),(0,N.jsx)(At,{"data-sidebar-label":!0,className:`ms-auto size-4 text-muted-foreground`,"aria-hidden":!0})]})}),(0,N.jsxs)($m,{align:`end`,side:n?`bottom`:`right`,sideOffset:6,className:`w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg`,children:[(0,N.jsxs)(th,{className:`flex items-center gap-3 py-2`,children:[(0,N.jsx)(gh,{avatarUrl:a,initial:i,large:!0}),(0,N.jsxs)(`div`,{className:`flex min-w-0 flex-col`,children:[(0,N.jsx)(`span`,{className:`truncate text-sm font-medium text-foreground`,children:e??`—`}),(0,N.jsx)(`span`,{className:`label-eyebrow truncate`,children:t??K(r,`common.signedIn`)})]})]}),(0,N.jsx)(nh,{}),(0,N.jsx)(eh,{asChild:!0,children:(0,N.jsxs)(`a`,{href:`/admin/preferences`,className:`flex items-center gap-2`,children:[(0,N.jsx)(gn,{className:`size-4`,"aria-hidden":!0}),K(r,`preferences.page.open`)]})}),(0,N.jsx)(nh,{}),(0,N.jsx)(eh,{asChild:!0,className:`text-destructive focus:text-destructive focus:bg-destructive/10`,children:(0,N.jsxs)(`button`,{type:`button`,onClick:_h,className:`flex w-full cursor-pointer items-center gap-2`,children:[(0,N.jsx)(tn,{className:`size-4`,"aria-hidden":!0}),K(r,`common.signOut`)]})})]})]})})})}function gh({avatarUrl:e,initial:t,large:n=!1}){let r=n?`size-9`:`size-8`,i=n?`text-sm`:`text-xs`;return(0,N.jsx)(`span`,{className:B(`shrink-0 inline-flex items-center justify-center rounded-lg`,`bg-primary/15 text-foreground/80 ring-1 ring-border`,r),"aria-hidden":!0,children:e?(0,N.jsx)(`img`,{src:e,alt:``,className:`size-full rounded-lg object-cover`,decoding:`async`}):(0,N.jsx)(`span`,{className:B(`font-medium`,i),children:t})})}function _h(){let e=document.createElement(`form`);e.method=`POST`,e.action=`/admin/logout`,document.body.appendChild(e),e.submit()}function vh({brand:e,groups:t,pathname:n,search:r,user:i}){let{variant:a}=Gn(),{direction:o}=G();return(0,N.jsxs)(dc,{side:o===`rtl`?`right`:`left`,variant:a===`floating`?`sidebar`:a,children:[(0,N.jsx)(mc,{children:(0,N.jsxs)(`div`,{className:`sidebar-chrome-row`,children:[(0,N.jsx)(ul,{brand:e}),(0,N.jsx)(fc,{})]})}),(0,N.jsx)(_c,{}),(0,N.jsx)(hc,{children:t.map((e,t)=>(0,N.jsx)(ih,{group:e,pathname:n,search:r},e.title??`g-${t}`))}),(0,N.jsx)(_c,{}),(0,N.jsx)(gc,{children:(0,N.jsx)(hh,{login:i.login,role:i.role})})]})}function yh({login:e,role:t}){let{language:n}=G(),r=(e??`?`).charAt(0).toUpperCase(),i=e?`https://github.com/${encodeURIComponent(e)}.png?size=80`:null;return(0,N.jsxs)(Zm,{children:[(0,N.jsx)(Qm,{"aria-label":`Account menu`,className:B(`relative inline-flex size-8 items-center justify-center rounded-full`,`outline-hidden ring-1 ring-border`,`hover:ring-primary/40 transition-all`,`data-[state=open]:ring-primary`),children:(0,N.jsx)(bh,{avatarUrl:i,initial:r})}),(0,N.jsxs)($m,{align:`end`,sideOffset:6,className:`w-56`,children:[(0,N.jsxs)(th,{className:`flex items-center gap-3 py-2`,children:[(0,N.jsx)(bh,{avatarUrl:i,initial:r,large:!0}),(0,N.jsxs)(`div`,{className:`flex min-w-0 flex-col`,children:[(0,N.jsx)(`span`,{className:`truncate text-sm font-medium text-foreground`,children:e??`—`}),(0,N.jsx)(`span`,{className:`label-eyebrow truncate`,children:t??K(n,`common.signedIn`)})]})]}),(0,N.jsx)(nh,{}),(0,N.jsx)(eh,{asChild:!0,children:(0,N.jsxs)(`a`,{href:`/admin/preferences`,className:`flex items-center gap-2`,children:[(0,N.jsx)(gn,{className:`size-4`,"aria-hidden":!0}),K(n,`preferences.page.open`)]})}),(0,N.jsx)(nh,{}),(0,N.jsx)(eh,{asChild:!0,className:`text-destructive focus:text-destructive focus:bg-destructive/10`,children:(0,N.jsxs)(`button`,{type:`button`,onClick:xh,className:`flex w-full cursor-pointer items-center gap-2`,children:[(0,N.jsx)(tn,{className:`size-4`,"aria-hidden":!0}),K(n,`common.signOut`)]})})]})]})}function bh({avatarUrl:e,initial:t,large:n=!1}){let r=n?`size-9`:`size-8`,i=n?`text-sm`:`text-xs`;return(0,N.jsx)(`span`,{className:B(`shrink-0 inline-flex items-center justify-center rounded-full overflow-hidden`,`bg-primary/15 text-foreground/80`,r),"aria-hidden":!0,children:e?(0,N.jsx)(`img`,{src:e,alt:``,className:`size-full object-cover`,decoding:`async`}):(0,N.jsx)(`span`,{className:B(`font-medium`,i),children:t})})}function xh(){let e=document.createElement(`form`);e.method=`POST`,e.action=`/admin/logout`,document.body.appendChild(e),e.submit()}function Sh(){let{language:e,setLanguage:t}=G(),n=Bc.find(t=>t.value===e)??Bc[0];return(0,N.jsxs)(Zm,{children:[(0,N.jsx)(Qm,{asChild:!0,children:(0,N.jsxs)(V,{type:`button`,variant:`ghost`,size:`sm`,className:`h-8 gap-2 rounded-full border border-border/60 bg-background/30 px-2.5`,"aria-label":K(e,`preferences.language`),children:[(0,N.jsx)(Yt,{className:`size-4 text-primary`,"aria-hidden":!0}),(0,N.jsx)(`span`,{className:`hidden text-xs font-medium sm:inline`,children:n.nativeLabel})]})}),(0,N.jsxs)($m,{align:`end`,className:`max-h-[min(28rem,80vh)] w-52 overflow-y-auto`,children:[(0,N.jsx)(th,{className:`label-eyebrow opacity-70`,children:K(e,`preferences.language`)}),Bc.map(n=>(0,N.jsxs)(eh,{onSelect:()=>t(n.value),className:`justify-between`,children:[(0,N.jsx)(`span`,{children:n.nativeLabel}),(0,N.jsx)(Dt,{"aria-hidden":!0,className:B(`size-4 text-primary`,n.value===e?`opacity-100`:`opacity-0`)})]},n.value))]})]})}function Ch(){let{language:e,theme:t,setTheme:n}=G(),r=wh(e).find(e=>e.value===t),i=r?.icon??nn;return(0,N.jsxs)(Zm,{children:[(0,N.jsx)(Qm,{asChild:!0,children:(0,N.jsxs)(V,{type:`button`,variant:`ghost`,size:`sm`,className:`h-8 gap-2 rounded-full border border-border/60 bg-background/30 px-2.5`,"aria-label":K(e,`preferences.appearance`),children:[(0,N.jsx)(i,{className:`size-4 text-primary`,"aria-hidden":!0}),(0,N.jsx)(`span`,{className:`hidden text-xs font-medium sm:inline`,children:r?.label??K(e,`preferences.system`)})]})}),(0,N.jsxs)($m,{align:`end`,className:`w-44`,children:[(0,N.jsx)(th,{className:`label-eyebrow opacity-70`,children:K(e,`preferences.appearance`)}),wh(e).map(e=>{let r=e.icon;return(0,N.jsxs)(eh,{onSelect:()=>n(e.value),className:`justify-between`,children:[(0,N.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,N.jsx)(r,{className:`size-4`,"aria-hidden":!0}),e.label]}),(0,N.jsx)(Dt,{"aria-hidden":!0,className:B(`size-4 text-primary`,e.value===t?`opacity-100`:`opacity-0`)})]},e.value)})]})]})}function wh(e){return[{value:`light`,label:K(e,`preferences.light`),icon:yn},{value:`dark`,label:K(e,`preferences.dark`),icon:rn},{value:`system`,label:K(e,`preferences.system`),icon:nn}]}function Th({fixed:e=!1,className:t,children:n,user:r,site:i,publicUrl:a,onOpenGuide:o}){let{language:s}=G(),[c,l]=M.useState(!1);return M.useEffect(()=>{if(!e)return;let t=()=>l(window.scrollY>10);return t(),window.addEventListener(`scroll`,t,{passive:!0}),()=>window.removeEventListener(`scroll`,t)},[e]),(0,N.jsxs)(`header`,{"data-slot":`header`,"data-scrolled":c||void 0,className:B(`admin-statusbar z-20 flex h-14 shrink-0 items-center gap-3 px-4`,e?`sticky top-0 w-[inherit] transition-shadow`:`border-b border-border/40`,c&&`shadow-sm`,t),children:[i?(0,N.jsxs)(`div`,{className:`admin-site-status`,"aria-label":`Current admin site`,children:[(0,N.jsx)(`span`,{children:i.title}),i.subtitle?(0,N.jsx)(`small`,{children:i.subtitle}):null]}):null,a?(0,N.jsx)(V,{asChild:!0,variant:`secondary`,size:`sm`,className:`shrink-0`,children:(0,N.jsxs)(`a`,{href:a,target:`_blank`,rel:`noreferrer`,title:K(s,`common.viewSite`),children:[(0,N.jsx)(zt,{className:`size-3.5`,"aria-hidden":!0}),(0,N.jsx)(`span`,{className:`hidden sm:inline`,children:K(s,`common.viewSite`)})]})}):null,n,r?(0,N.jsxs)(`div`,{className:B(`flex items-center gap-2`,n?``:`ms-auto`),children:[o?(0,N.jsxs)(V,{type:`button`,variant:`ghost`,size:`sm`,onClick:o,"data-tour":`guide-button`,title:K(s,`guide.open`),"aria-label":K(s,`guide.open`),children:[(0,N.jsx)(Mt,{className:`size-4`,"aria-hidden":!0}),(0,N.jsx)(`span`,{className:`hidden sm:inline`,children:K(s,`guide.open`)})]}):null,(0,N.jsx)(Sh,{}),(0,N.jsx)(Ch,{}),(0,N.jsx)(yh,{login:r.login,role:r.role})]}):null]})}var Eh=`content`;function Dh({className:e}){return(0,N.jsx)(`a`,{href:`#${Eh}`,className:B(`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:`Skip to main content`})}function Oh({fixed:e=!1,fluid:t=!1,className:n,children:r}){return(0,N.jsx)(`div`,{id:Eh,"data-layout":e?`fixed`:`auto`,className:B(`@container/content`,`w-full px-4 py-6 sm:px-6`,e&&`flex grow flex-col overflow-hidden`,!t&&`mx-auto max-w-[1440px]`,`flex-1`,n),children:r})}function kh(e,t){switch(t){case`draft`:return K(e,`status.draft`);case`review`:return K(e,`status.review`);case`published`:return K(e,`status.published`);case`archived`:return K(e,`status.archived`)}}var Ah={products:{en:`Products`,"zh-TW":`商品`,"zh-CN":`商品`},"product-skus":{en:`Product SKUs`,"zh-TW":`商品規格`,"zh-CN":`商品规格`},pages:{en:`Pages`,"zh-TW":`頁面`,"zh-CN":`页面`},orders:{en:`Orders`,"zh-TW":`訂單`,"zh-CN":`订单`},order_items:{en:`Order line items`,"zh-TW":`訂單明細`,"zh-CN":`订单明细`},inventory_snapshots:{en:`Inventory snapshots`,"zh-TW":`庫存快照`,"zh-CN":`库存快照`}},jh={products:{en:`Manage product records, publishing state, and localized product copy.`,"zh-TW":`管理商品資料、發布狀態與多語商品內容。`,"zh-CN":`管理商品资料、发布状态与多语商品内容。`},"product-skus":{en:`Manage sellable variants, prices, inventory mode, and product options.`,"zh-TW":`管理可販售規格、價格、庫存模式與商品選項。`,"zh-CN":`管理可销售规格、价格、库存模式与商品选项。`},pages:{en:`Manage storefront pages, layout sections, and localized page copy.`,"zh-TW":`管理前台頁面、首頁區塊與多語文案。`,"zh-CN":`管理前台页面、首页区块与多语文案。`},orders:{en:`Review customer orders and fulfillment state.`,"zh-TW":`查看客戶訂單與履約狀態。`,"zh-CN":`查看客户订单与履约状态。`},order_items:{en:`Review purchased items captured at checkout time.`,"zh-TW":`查看結帳當下保存的購買項目明細。`,"zh-CN":`查看结账当下保存的购买项目明细。`},inventory_snapshots:{en:`Review inventory snapshots synced from the inventory actor.`,"zh-TW":`查看由庫存 actor 同步的庫存快照。`,"zh-CN":`查看由库存 actor 同步的库存快照。`}};function Mh(e,t){return Ah[e.name]?.[t]??e.title}function Nh(e,t){return e?jh[e.name]?.[t]??e.description:null}var Ph=`mantle.admin.guide.closed`,Fh=[{key:`products`,selector:`[data-tour="nav-products"]`},{key:`filters`,selector:`[data-tour="status-filter"]`,href:`/admin/c/products`},{key:`actions`,selector:`[data-tour="entry-actions"]`,href:`/admin/c/products`},{key:`reopen`,selector:`[data-tour="guide-button"]`}],Ih={products:{title:`guide.products.title`,body:`guide.products.body`},filters:{title:`guide.filters.title`,body:`guide.filters.body`},actions:{title:`guide.actions.title`,body:`guide.actions.body`},reopen:{title:`guide.reopen.title`,body:`guide.reopen.body`}};function Lh({language:e,onClose:t}){let[n,r]=M.useState(0),{location:i,navigate:a}=Rc(),o=Fh[n]??Fh[0],s=zh(o),c=M.useMemo(()=>Bh(s),[s]),l=n===Fh.length-1;return M.useEffect(()=>{!(`href`in o)||!o.href||`${i.pathname}${i.search}`!==o.href&&a(o.href)},[i.pathname,i.search,a,o]),(0,N.jsxs)(`div`,{className:`admin-guide-overlay`,role:`dialog`,"aria-modal":`false`,"aria-labelledby":`admin-guide-title`,children:[s?(0,N.jsx)(`div`,{className:`admin-guide-highlight`,style:{top:s.top-8,left:s.left-8,width:s.width+16,height:s.height+16}}):null,(0,N.jsxs)(`section`,{className:`admin-guide-popover`,style:c,children:[(0,N.jsxs)(`div`,{className:`admin-guide-progress`,children:[(0,N.jsx)(`span`,{children:n+1}),(0,N.jsx)(`small`,{children:Fh.length})]}),(0,N.jsxs)(`div`,{className:`admin-guide-copy`,children:[(0,N.jsx)(`p`,{className:`label-eyebrow`,children:`AotterMantle`}),(0,N.jsx)(`h2`,{id:`admin-guide-title`,children:K(e,Ih[o.key].title)}),(0,N.jsx)(`p`,{children:K(e,Ih[o.key].body)})]}),(0,N.jsxs)(`div`,{className:`admin-guide-controls`,children:[(0,N.jsx)(`button`,{type:`button`,className:`guide-icon-button`,onClick:()=>r(e=>Math.max(0,e-1)),disabled:n===0,title:K(e,`guide.prev`),children:(0,N.jsx)(Ot,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsxs)(`button`,{type:`button`,className:`guide-primary-button`,onClick:()=>l?t():r(e=>Math.min(Fh.length-1,e+1)),children:[l?K(e,`guide.finish`):K(e,`guide.next`),l?null:(0,N.jsx)(kt,{className:`size-4`,"aria-hidden":!0})]}),(0,N.jsx)(`button`,{type:`button`,className:`guide-icon-button`,onClick:t,title:K(e,`guide.close`),children:(0,N.jsx)(Fn,{className:`size-4`,"aria-hidden":!0})})]})]})]})}function Rh(){let{language:e}=G(),[t,n]=M.useState(()=>Vh());return{language:e,open:t,showGuide:M.useCallback(()=>{try{localStorage.removeItem(Ph)}catch{}n(!0)},[]),closeGuide:M.useCallback(()=>{try{localStorage.setItem(Ph,`1`)}catch{}n(!1)},[])}}function zh(e){let[t,n]=M.useState(null);return M.useEffect(()=>{let t=0,r=()=>{cancelAnimationFrame(t),t=requestAnimationFrame(()=>{let t=document.querySelector(e.selector);if(!t){n(null);return}t.scrollIntoView({block:`nearest`,inline:`nearest`});let r=t.getBoundingClientRect();n({top:r.top,left:r.left,width:r.width,height:r.height})})};return r(),window.addEventListener(`resize`,r),window.addEventListener(`scroll`,r,!0),()=>{cancelAnimationFrame(t),window.removeEventListener(`resize`,r),window.removeEventListener(`scroll`,r,!0)}},[e]),t}function Bh(e){if(typeof window>`u`)return{};if(!e)return{top:`5rem`,left:`50%`,transform:`translateX(-50%)`};let t=Math.min(380,Math.max(280,window.innerWidth-32)),n=e.left+e.width+t+24<window.innerWidth,r=e.left-t-24>0,i=Math.min(window.innerHeight-220,Math.max(16,e.top));return n?{top:i,left:e.left+e.width+18}:r?{top:i,left:e.left-t-18}:{top:Math.min(window.innerHeight-220,e.top+e.height+18),left:`50%`,transform:`translateX(-50%)`}}function Vh(){if(typeof window>`u`)return!1;try{return localStorage.getItem(Ph)!==`1`}catch{return!0}}var Hh={title:`CMS`,subtitle:`admin`,href:`/admin`};function Uh({brand:e=Hh,fixed:t=!1,fluid:n=!1,children:r}){let{pathname:i,search:a}=zc(),{language:o}=G(),s=Rh(),c=P({queryKey:[`me`],queryFn:()=>Ac.get(`/me`),retry:!1}),l=P({queryKey:[`collections`],queryFn:async()=>(await Ac.get(`/collections`)).collections}),u=P({queryKey:[`site`],queryFn:()=>Ac.get(`/site`)}),d=M.useMemo(()=>({...e,title:u.data?.brand??e.title,subtitle:u.data?.canonicalLocale??e.subtitle}),[e,u.data]),f=M.useMemo(()=>Wh(l.data??[],o,c.data?.role??null),[l.data,o,c.data?.role]);return(0,N.jsx)(Wn,{children:(0,N.jsxs)(lc,{defaultOpen:qn()??!0,children:[(0,N.jsx)(Dh,{}),(0,N.jsx)(vh,{brand:d,groups:f,pathname:i,search:a,user:{login:c.data?.login??null,role:c.data?.role??null}}),(0,N.jsxs)(pc,{children:[(0,N.jsx)(Th,{fixed:!0,site:d,publicUrl:u.data?.publicUrl,onOpenGuide:s.showGuide,user:{login:c.data?.login??null,role:c.data?.role??null}}),(0,N.jsx)(Oh,{fixed:t,fluid:n,children:r})]}),(0,N.jsx)(cl,{}),s.open?(0,N.jsx)(Lh,{language:s.language,onClose:s.closeGuide}):null]})})}function Wh(e,t,n){let r=e.filter(e=>!e.parent);return[{items:[{title:K(t,`nav.home`),url:`/admin`,icon:Wt}]},{title:K(t,`nav.content`),items:r.map(e=>({title:Mh(e,t),icon:Vt,marker:e.hasTranslations?Ht:void 0,items:[{title:K(t,`collection.filter.all`),url:`/admin/c/${e.name}`},...Gh(e).map(n=>({title:kh(t,n),url:`/admin/c/${e.name}?status=${n}`}))]}))},{title:K(t,`nav.more`),items:[{title:K(t,`nav.media`),url:`/admin/media`,icon:qt},{title:K(t,`nav.approvals`),url:`/admin/approvals`,icon:Pt},{title:K(t,`nav.settings`),url:`/admin/settings`,icon:gn},...n===`owner`?[{title:K(t,`nav.staff`),url:`/admin/staff`,icon:Mn}]:[]]}]}function Gh(e){return e.lifecycle===`editorial`?Mc:Nc}function Kh(){return(0,N.jsx)(`div`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,N.jsxs)(`div`,{className:`glass-card w-full max-w-sm p-6`,children:[(0,N.jsx)(`div`,{className:`mb-4 h-4 w-24 animate-pulse rounded bg-muted`}),(0,N.jsxs)(`div`,{className:`space-y-2`,children:[(0,N.jsx)(`div`,{className:`h-3 w-full animate-pulse rounded bg-muted`}),(0,N.jsx)(`div`,{className:`h-3 w-2/3 animate-pulse rounded bg-muted`})]})]})})}function qh({error:e}){let{language:t}=G(),n=e instanceof Error?e.message:`Unknown error.`;return(0,N.jsx)(`div`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,N.jsxs)(`div`,{className:`glass-card animate-rise w-full max-w-sm p-8 text-center`,children:[(0,N.jsx)(`h1`,{className:`mb-2 text-xl`,children:K(t,`auth.error.title`)}),(0,N.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:n})]})})}function Jh({login:e}){let{language:t}=G();return(0,N.jsx)(`div`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,N.jsxs)(`div`,{className:`glass-card animate-rise w-full max-w-md p-8 text-center`,children:[(0,N.jsx)(`div`,{className:`mx-auto mb-3 inline-flex size-10 items-center justify-center rounded-full bg-destructive/10 text-destructive`,children:(0,N.jsx)(En,{className:`size-5`,"aria-hidden":!0})}),(0,N.jsx)(`h1`,{className:`mb-2 text-xl`,children:K(t,`auth.accessDenied.title`)}),e?(0,N.jsxs)(`p`,{className:`mb-1 text-sm font-medium text-foreground`,children:[`GitHub: `,e]}):null,(0,N.jsx)(`p`,{className:`mb-1 text-sm text-muted-foreground`,children:K(t,`auth.accessDenied.noStaff`)}),(0,N.jsx)(`p`,{className:`mb-6 text-sm text-muted-foreground`,children:K(t,`auth.accessDenied.askOwner`)}),(0,N.jsxs)(V,{variant:`outline`,className:`w-full`,onClick:ag,children:[(0,N.jsx)(tn,{className:`me-2 size-4`,"aria-hidden":!0}),K(t,`common.signOut`)]})]})})}var Yh=`w-full rounded border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring`,Xh=`first:mt-0 mt-4`,Zh=`first:mt-0 first:border-t-0 first:pt-0 mt-6 border-t border-border pt-4`;function Qh(){let{language:e}=G(),t=new URLSearchParams(window.location.search).get(`return`)??`/admin`,[n,r]=M.useState(null),[i,a]=M.useState(null);return M.useEffect(()=>{let e=!1;async function t(){try{let t=await fetch(`/api/auth/methods`,{credentials:`include`});if(!t.ok)throw Error(`HTTP ${t.status}`);let n=await t.json();if(e)return;r(n.methods??[])}catch(t){if(e)return;a(t instanceof Error?t.message:String(t))}}return t(),()=>{e=!0}},[]),(0,N.jsx)(`div`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,N.jsxs)(`div`,{className:`glass-card animate-rise w-full max-w-sm p-8`,children:[(0,N.jsx)(`p`,{className:`label-eyebrow mb-2`,children:K(e,`auth.signIn.eyebrow`)}),(0,N.jsx)(`h1`,{className:`mb-2 text-xl`,children:K(e,`auth.signIn.title`)}),i?(0,N.jsx)(`p`,{className:`mb-4 text-sm text-destructive`,children:K(e,`auth.signIn.methodsLoadFailed`)}):null,n===null&&!i?(0,N.jsx)(`div`,{className:`space-y-2`,children:(0,N.jsx)(`div`,{className:`h-9 w-full animate-pulse rounded bg-muted`})}):null,n&&n.length===0?(0,N.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:K(e,`auth.signIn.noMethods`)}):null,n&&n.length>0?(0,N.jsx)(`div`,{children:n.map(e=>(0,N.jsx)($h,{method:e,returnTo:t},e.kind===`social`?`social:${e.provider}`:e.kind))}):null]})})}function $h({method:e,returnTo:t}){switch(e.kind){case`social`:return(0,N.jsx)(tg,{provider:e.provider,returnTo:t});case`email-otp`:return(0,N.jsx)(ng,{returnTo:t});case`magic-link`:return(0,N.jsx)(rg,{returnTo:t});default:return(0,N.jsx)(ig,{kind:e.kind})}}var eg={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 tg({provider:e,returnTo:t}){let{language:n}=G(),r=eg[e]??e,i=async()=>{let n=await fetch(`/api/auth/sign-in/social`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({provider:e,callbackURL:t})});if(!n.ok)return;let r=await n.json();r.url&&(window.location.href=r.url)};return(0,N.jsx)(`div`,{className:Xh,children:(0,N.jsx)(V,{onClick:()=>void i(),className:`w-full`,children:K(n,`auth.signIn.method.social.button`,{provider:r})})})}function ng({returnTo:e}){let{language:t}=G(),[n,r]=M.useState(`email`),[i,a]=M.useState(``),[o,s]=M.useState(``),[c,l]=M.useState(!1),[u,d]=M.useState(null),f=async e=>{l(!0),d(null);try{await e()}finally{l(!1)}};return(0,N.jsxs)(`div`,{className:Zh,children:[(0,N.jsx)(`p`,{className:`mb-2 text-sm text-muted-foreground`,children:K(t,`auth.signIn.method.email-otp.body`)}),n===`email`?(0,N.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),i&&f(async()=>{if(!(await fetch(`/api/auth/email-otp/send-verification-otp`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:i,type:`sign-in`})})).ok){d(K(t,`auth.signIn.method.email-otp.sendFailed`));return}r(`otp`)})},className:`space-y-2`,children:[(0,N.jsx)(`label`,{htmlFor:`signin-email`,className:`sr-only`,children:K(t,`auth.signIn.method.email-otp.emailLabel`)}),(0,N.jsx)(`input`,{id:`signin-email`,type:`email`,value:i,onChange:e=>a(e.currentTarget.value),placeholder:K(t,`auth.signIn.method.email-otp.emailPlaceholder`),required:!0,autoComplete:`email`,className:Yh}),(0,N.jsx)(V,{type:`submit`,className:`w-full`,disabled:c||!i,children:K(t,`auth.signIn.method.email-otp.sendButton`)})]}):(0,N.jsxs)(`form`,{onSubmit:n=>{n.preventDefault(),o&&f(async()=>{if(!(await fetch(`/api/auth/sign-in/email-otp`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:i,otp:o})})).ok){d(K(t,`auth.signIn.method.email-otp.verifyFailed`));return}window.location.assign(e)})},className:`space-y-2`,children:[(0,N.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:K(t,`auth.signIn.method.email-otp.sentTo`,{email:i})}),(0,N.jsx)(`label`,{htmlFor:`signin-otp`,className:`sr-only`,children:K(t,`auth.signIn.method.email-otp.otpLabel`)}),(0,N.jsx)(`input`,{id:`signin-otp`,type:`text`,inputMode:`numeric`,autoComplete:`one-time-code`,value:o,onChange:e=>s(e.currentTarget.value),placeholder:K(t,`auth.signIn.method.email-otp.otpPlaceholder`),required:!0,className:Yh}),(0,N.jsx)(V,{type:`submit`,className:`w-full`,disabled:c||!o,children:K(t,`auth.signIn.method.email-otp.verifyButton`)}),(0,N.jsx)(`button`,{type:`button`,onClick:()=>r(`email`),className:`text-xs text-muted-foreground underline-offset-2 hover:underline`,children:K(t,`auth.signIn.method.email-otp.back`)})]}),u?(0,N.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:u}):null]})}function rg({returnTo:e}){let{language:t}=G(),[n,r]=M.useState(``),[i,a]=M.useState(!1),[o,s]=M.useState(!1),[c,l]=M.useState(null),u=async e=>{a(!0),l(null);try{await e()}finally{a(!1)}};return(0,N.jsxs)(`div`,{className:Zh,children:[(0,N.jsx)(`p`,{className:`mb-2 text-sm text-muted-foreground`,children:K(t,`auth.signIn.method.magic-link.body`)}),o?(0,N.jsxs)(`div`,{className:`space-y-2`,children:[(0,N.jsx)(`p`,{className:`text-sm text-foreground`,children:K(t,`auth.signIn.method.magic-link.sentTo`,{email:n})}),(0,N.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:K(t,`auth.signIn.method.magic-link.clickHint`)}),(0,N.jsx)(`button`,{type:`button`,onClick:()=>{s(!1),r(``)},className:`text-xs text-muted-foreground underline-offset-2 hover:underline`,children:K(t,`auth.signIn.method.magic-link.anotherEmail`)})]}):(0,N.jsxs)(`form`,{onSubmit:r=>{r.preventDefault(),n&&u(async()=>{if(!(await fetch(`/api/auth/sign-in/magic-link`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:n,callbackURL:e})})).ok){l(K(t,`auth.signIn.method.magic-link.sendFailed`));return}s(!0)})},className:`space-y-2`,children:[(0,N.jsx)(`label`,{htmlFor:`signin-mlink-email`,className:`sr-only`,children:K(t,`auth.signIn.method.magic-link.emailLabel`)}),(0,N.jsx)(`input`,{id:`signin-mlink-email`,type:`email`,value:n,onChange:e=>r(e.currentTarget.value),placeholder:K(t,`auth.signIn.method.magic-link.emailPlaceholder`),required:!0,autoComplete:`email`,className:Yh}),(0,N.jsx)(V,{type:`submit`,className:`w-full`,disabled:i||!n,children:K(t,`auth.signIn.method.magic-link.sendButton`)})]}),c?(0,N.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:c}):null]})}function ig({kind:e}){let{language:t}=G();return(0,N.jsx)(`p`,{className:`mt-4 text-xs text-muted-foreground`,children:K(t,`auth.signIn.unknownMethod`,{kind:e})})}function ag(){fetch(`/api/auth/sign-out`,{method:`POST`,credentials:`include`}).then(()=>{window.location.href=`/admin/sign-in`})}function og({eyebrow:e,title:t,description:n,actions:r}){return(0,N.jsxs)(`div`,{className:`mb-6 flex flex-wrap items-end justify-between gap-4`,children:[(0,N.jsxs)(`div`,{className:`min-w-0`,children:[e?(0,N.jsx)(`p`,{className:`label-eyebrow mb-1`,children:e}):null,(0,N.jsx)(`h1`,{className:`text-2xl`,children:t}),n?(0,N.jsx)(`div`,{className:`mt-1 max-w-3xl text-sm text-muted-foreground`,children:n}):null]}),r?(0,N.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:r}):null]})}function sg({className:e,children:t}){return(0,N.jsx)(`section`,{className:B(`glass-card p-5`,e),children:t})}function cg({icon:e=jt,title:t,description:n,action:r}){return(0,N.jsxs)(`div`,{className:`rounded-lg border border-dashed border-border p-8 text-center`,children:[(0,N.jsx)(`div`,{className:`mx-auto mb-3 inline-flex size-10 items-center justify-center rounded-full bg-accent text-accent-foreground`,children:(0,N.jsx)(e,{className:`size-5`,"aria-hidden":!0})}),(0,N.jsx)(`h2`,{className:`text-lg`,children:t}),n?(0,N.jsx)(`p`,{className:`mx-auto mt-1 max-w-md text-sm text-muted-foreground`,children:n}):null,r?(0,N.jsx)(`div`,{className:`mt-4`,children:r}):null]})}function lg({error:e}){let{language:t}=G(),n=e instanceof Oc&&e.status===401;if(M.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 null;let r=e instanceof Error?e.message:`Unknown error.`;return(0,N.jsxs)(`div`,{className:`rounded-lg border border-destructive/30 bg-destructive/5 p-4 text-sm text-destructive`,children:[K(t,`common.failedToLoad`),`: `,r]})}function ug(){let{language:e}=G(),t=P({queryKey:[`site`],queryFn:()=>Ac.get(`/site`)}),n=P({queryKey:[`collections`],queryFn:async()=>(await Ac.get(`/collections`)).collections}),r=(n.data??[]).filter(e=>!e.parent),i=t.data;return(0,N.jsxs)(`div`,{className:`space-y-6`,children:[(0,N.jsx)(og,{eyebrow:K(e,`console.eyebrow`),title:i?.brand??`AotterMantle`,description:i?K(e,`console.description`,{title:i.title}):K(e,`console.descriptionFallback`),actions:i?.publicUrl?(0,N.jsx)(V,{asChild:!0,variant:`outline`,children:(0,N.jsxs)(`a`,{href:i.publicUrl,target:`_blank`,rel:`noreferrer`,children:[(0,N.jsx)(Ht,{className:`size-4`,"aria-hidden":!0}),K(e,`common.viewSite`)]})}):null}),(0,N.jsx)(`div`,{className:`grid grid-cols-1 gap-4`,children:(0,N.jsxs)(sg,{className:`admin-dashboard-panel`,children:[(0,N.jsxs)(`div`,{className:`mb-4 flex items-start gap-3`,children:[(0,N.jsx)(`div`,{className:`rounded-xl bg-primary/15 p-2 text-primary`,children:(0,N.jsx)(cn,{className:`size-5`,"aria-hidden":!0})}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`h2`,{className:`text-lg`,children:K(e,`console.workspace.title`)}),(0,N.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:K(e,`console.workspace.body`)})]})]}),(0,N.jsxs)(`div`,{className:`grid grid-cols-1 gap-2 sm:grid-cols-3`,children:[(0,N.jsx)(dg,{href:`/admin/c/products`,icon:cn,label:K(e,`workspace.products`)}),(0,N.jsx)(dg,{href:`/admin/c/pages`,icon:Bt,label:K(e,`workspace.pages`)}),(0,N.jsx)(dg,{href:`/admin/media`,icon:qt,label:K(e,`workspace.media`)})]})]})}),(0,N.jsxs)(`section`,{children:[(0,N.jsx)(og,{eyebrow:K(e,`console.collections.eyebrow`),title:K(e,`console.collections.title`),description:K(e,`console.collections.body`)}),n.isLoading&&(0,N.jsx)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:[0,1,2].map(e=>(0,N.jsx)(`div`,{className:`glass-card h-36 animate-pulse`},e))}),n.isError&&(0,N.jsx)(lg,{error:n.error}),n.data&&r.length===0&&(0,N.jsx)(cg,{icon:Rt,title:K(e,`console.collections.emptyTitle`),description:K(e,`console.collections.emptyBody`)}),r.length>0&&(0,N.jsx)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:r.map(t=>(0,N.jsxs)(`a`,{href:`/admin/c/${encodeURIComponent(t.name)}`,className:`glass-card card-lift block p-5 no-underline text-foreground`,children:[(0,N.jsxs)(`div`,{className:`mb-3 flex items-start justify-between gap-3`,children:[(0,N.jsxs)(`div`,{className:`min-w-0`,children:[(0,N.jsx)(`h2`,{className:`truncate text-lg`,title:Mh(t,e),children:Mh(t,e)}),(0,N.jsx)(`p`,{className:`font-mono text-xs text-muted-foreground`,children:t.name})]}),(0,N.jsx)(Bt,{className:`size-5 shrink-0 text-muted-foreground`,"aria-hidden":!0})]}),Nh(t,e)?(0,N.jsx)(`p`,{className:`line-clamp-2 text-sm text-muted-foreground`,children:Nh(t,e)}):(0,N.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:K(e,`console.collections.noDescription`)}),(0,N.jsxs)(`div`,{className:`mt-4 flex flex-wrap gap-2`,children:[(0,N.jsx)(`span`,{className:`badge-status bg-accent text-accent-foreground`,children:t.lifecycle}),t.hasTranslations?(0,N.jsx)(`span`,{className:`badge-status bg-[color-mix(in_srgb,var(--info)_16%,transparent)] text-[color:var(--info)]`,children:`i18n`}):null,t.mediaFields?.length?(0,N.jsx)(`span`,{className:`badge-status bg-[color-mix(in_srgb,var(--success)_16%,transparent)] text-[color:var(--success)]`,children:`media`}):null,(0,N.jsx)(`span`,{className:`badge-status bg-muted text-muted-foreground`,children:kh(e,`published`)})]})]},t.name))})]})]})}function dg({href:e,icon:t,label:n}){return(0,N.jsxs)(`a`,{href:e,title:n,className:`quick-action`,children:[(0,N.jsx)(t,{className:`size-4`,"aria-hidden":!0}),(0,N.jsx)(`span`,{children:n})]})}function fg({children:e,className:t}){return(0,N.jsx)(`div`,{className:B(`glass-card overflow-hidden`,t),children:(0,N.jsx)(`div`,{className:`overflow-x-auto`,children:(0,N.jsx)(`table`,{className:`w-full min-w-[720px] text-sm`,children:e})})})}function pg({children:e,className:t}){return(0,N.jsx)(`th`,{className:B(`label-eyebrow px-3 py-2 text-left`,t),children:e})}function mg({children:e,className:t}){return(0,N.jsx)(`td`,{className:B(`px-3 py-2 align-middle`,t),children:e})}var hg={draft:`bg-muted text-muted-foreground`,review:`bg-[color-mix(in_srgb,var(--warning)_18%,transparent)] text-[color:var(--warning)]`,approved:`bg-[color-mix(in_srgb,var(--success)_18%,transparent)] text-[color:var(--success)]`,scheduled:`bg-[color-mix(in_srgb,var(--info)_18%,transparent)] text-[color:var(--info)]`,published:`bg-[color-mix(in_srgb,var(--success)_18%,transparent)] text-[color:var(--success)]`,archived:`bg-secondary text-muted-foreground`};function gg({status:e,className:t}){return(0,N.jsx)(`span`,{className:B(`badge-status`,_g(e)?hg[e]:`bg-accent text-accent-foreground`,t),children:e})}function _g(e){return e in hg}var vg=new Intl.DateTimeFormat(void 0,{dateStyle:`short`,timeStyle:`short`});function yg({collectionName:e}){let{language:t}=G(),n=zc(),r=Ze(),i=new URLSearchParams(n.search),a=i.get(`status`)??void 0,o=i.get(`search`)?.trim()??``,s=P({queryKey:[`collections`],queryFn:async()=>(await Ac.get(`/collections`)).collections}),c=P({queryKey:[`entries`,e,a??`all`,t],queryFn:()=>{let n=new URLSearchParams({collection:e,limit:`99`,locale:t});return a&&n.set(`status`,a),Ac.get(`/entries?${n.toString()}`)}}),[l,u]=M.useState(null);M.useEffect(()=>{c.data&&u(c.data)},[c.data]);let d=c.data??l,f=M.useMemo(()=>{if(!d||!o)return d;let e=o.toLocaleLowerCase();return{...d,items:d.items.filter(n=>{let r=kg(n.title,t);return[n.id,n.collection,n.status,n.locale??``,r].some(t=>String(t).toLocaleLowerCase().includes(e))})}},[d,t,o]),p=c.isLoading&&!d,m=s.data?.find(t=>t.name===e),h=m?Mh(m,t):e,g=M.useCallback(()=>{r.invalidateQueries({queryKey:[`entries`,e]})},[e,r]),_=ft({mutationFn:({id:e,title:t,version:n})=>Ac.patch(`/entries/${encodeURIComponent(e)}`,{data:{title:t},expectedVersion:n}),onSuccess:g}),v=ft({mutationFn:e=>Ac.delete(`/entries/${encodeURIComponent(e)}`),onSuccess:g});return(0,N.jsxs)(`div`,{children:[(0,N.jsx)(og,{eyebrow:(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`a`,{href:`/admin`,className:`hover:underline`,children:K(t,`collection.breadcrumb`)}),(0,N.jsx)(`span`,{className:`mx-2 text-foreground/30`,children:`/`}),(0,N.jsx)(`span`,{className:`text-foreground/70`,children:e})]}),title:h,description:xg(m,t),actions:(0,N.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:[a?(0,N.jsx)(gg,{status:a}):null,m?.hasTranslations?(0,N.jsx)(`span`,{className:`badge-status bg-accent text-accent-foreground`,children:`i18n`}):null,m?.mediaFields?.length?(0,N.jsx)(`span`,{className:`badge-status bg-[color-mix(in_srgb,var(--success)_16%,transparent)] text-[color:var(--success)]`,children:`media`}):null]})}),m?(0,N.jsx)(bg,{collectionName:m.name,status:a,searchTerm:o,language:t}):null,m?(0,N.jsx)(Cg,{collection:m,activeStatus:a,searchTerm:o,language:t}):null,p&&(0,N.jsx)(Eg,{}),c.isError&&!d&&(0,N.jsx)(lg,{error:c.error}),f&&f.items.length===0&&(0,N.jsx)(cg,{icon:Bt,title:K(t,`collection.empty.title`),description:o?K(t,`collection.empty.search`,{search:o}):a?K(t,`collection.empty.withStatus`,{status:a}):K(t,`collection.empty.all`)}),f&&f.items.length>0&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(fg,{children:[(0,N.jsx)(`thead`,{children:(0,N.jsxs)(`tr`,{className:`border-b border-[var(--glass-border)]`,children:[(0,N.jsx)(pg,{children:K(t,`collection.table.id`)}),(0,N.jsx)(pg,{children:K(t,`collection.table.title`)}),(0,N.jsx)(pg,{children:K(t,`collection.table.status`)}),(0,N.jsx)(pg,{children:K(t,`collection.table.locale`)}),(0,N.jsx)(pg,{children:K(t,`collection.table.version`)}),(0,N.jsx)(pg,{children:K(t,`collection.table.updated`)}),(0,N.jsx)(pg,{children:K(t,`collection.table.actions`)})]})}),(0,N.jsx)(`tbody`,{children:f.items.map(e=>(0,N.jsx)(Dg,{row:e,language:t,collection:m,onRename:t=>_.mutateAsync({id:e.id,title:t,version:e.version}),onDelete:()=>v.mutateAsync(e.id),busy:_.isPending&&_.variables?.id===e.id||v.isPending&&v.variables===e.id},e.id))})]}),c.isFetching&&!c.data?(0,N.jsx)(`p`,{className:`mt-3 text-xs text-muted-foreground`,children:K(t,`collection.refreshing`)}):null,f.next_cursor?(0,N.jsx)(`p`,{className:`mt-3 text-xs text-muted-foreground`,children:K(t,`collection.moreRows`)}):null]})]})}function bg({collectionName:e,status:t,searchTerm:n,language:r}){let[i,a]=M.useState(n);return M.useEffect(()=>a(n),[n]),(0,N.jsx)(`form`,{className:`mb-3 max-w-xl`,role:`search`,onSubmit:n=>{n.preventDefault();let r=i.trim(),a=new URLSearchParams;t&&a.set(`status`,t),r&&a.set(`search`,r);let o=a.toString();window.location.href=`/admin/c/${encodeURIComponent(e)}${o?`?${o}`:``}`},children:(0,N.jsxs)(`label`,{className:`relative block`,children:[(0,N.jsx)(mn,{className:`pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground`,"aria-hidden":!0}),(0,N.jsx)(`input`,{className:`admin-input h-10 pl-9`,value:i,onChange:e=>a(e.target.value),placeholder:K(r,`collection.searchPlaceholder`)})]})})}function xg(e,t){let n=Nh(e,t)?.trim();return n?Sg(n)?(0,N.jsxs)(`div`,{className:`space-y-2`,children:[(0,N.jsx)(`p`,{children:K(t,`collection.schemaSummary`,{name:e?Mh(e,t):``})}),(0,N.jsxs)(`details`,{className:`group`,children:[(0,N.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:K(t,`collection.schemaDetails`)}),(0,N.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:n})]})]}):n:K(t,`collection.defaultDescription`)}function Sg(e){return e.length>180||/`|SKU|BCP|ISO|ContentState|column|field|schema|locale|inventory/i.test(e)}function Cg({collection:e,activeStatus:t,searchTerm:n,language:r}){let i=e.lifecycle===`editorial`?[`draft`,`review`,`published`,`archived`]:[`draft`,`published`,`archived`];return(0,N.jsxs)(`div`,{className:`mb-5 flex gap-2 overflow-x-auto pb-1`,"data-tour":`status-filter`,children:[(0,N.jsx)(Tg,{href:wg(e.name,void 0,n),active:!t,children:K(r,`collection.filter.all`)}),i.map(i=>(0,N.jsx)(Tg,{href:wg(e.name,i,n),active:t===i,children:kh(r,i)},i))]})}function wg(e,t,n){let r=new URLSearchParams;t&&r.set(`status`,t),n&&r.set(`search`,n);let i=r.toString();return`/admin/c/${encodeURIComponent(e)}${i?`?${i}`:``}`}function Tg({href:e,active:t,children:n}){return(0,N.jsx)(`a`,{href:e,"aria-current":t?`page`:void 0,className:B(`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-[var(--glass-border)] bg-secondary text-secondary-foreground`:`border-transparent text-muted-foreground hover:bg-accent hover:text-accent-foreground`),children:n})}function Eg(){return(0,N.jsx)(`div`,{className:`glass-card overflow-hidden`,children:[0,1,2,3,4].map(e=>(0,N.jsxs)(`div`,{className:`flex items-center gap-4 border-b border-[var(--glass-border)] p-3 last:border-b-0`,children:[(0,N.jsx)(`div`,{className:`h-3 w-16 animate-pulse rounded bg-muted`}),(0,N.jsx)(`div`,{className:`h-3 flex-1 animate-pulse rounded bg-muted`}),(0,N.jsx)(`div`,{className:`h-6 w-20 animate-pulse rounded-full bg-muted`})]},e))})}function Dg({row:e,language:t,collection:n,onRename:r,onDelete:i,busy:a}){let o=kg(e.title,t),[s,c]=M.useState(!1),[l,u]=M.useState(o),[d,f]=M.useState(null);M.useEffect(()=>{s||u(o)},[s,o]);async function p(){let e=l.trim();if(!e||e===o){c(!1),u(o);return}f(null);try{await r(e),c(!1)}catch(e){f(e instanceof Error?e.message:String(e))}}async function m(){if(!(typeof window<`u`&&!window.confirm(K(t,`crud.deleteConfirm`,{name:o})))){f(null);try{await i()}catch(e){f(e instanceof Error?e.message:String(e))}}}return(0,N.jsxs)(`tr`,{className:`border-t border-[var(--glass-border)] hover:bg-accent/40`,children:[(0,N.jsx)(mg,{className:`font-mono text-xs text-muted-foreground`,children:String(e.id).slice(0,8)}),(0,N.jsx)(mg,{className:`max-w-[28rem]`,children:(0,N.jsxs)(`div`,{className:`min-w-[16rem]`,children:[s?(0,N.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,N.jsx)(`input`,{className:`admin-input h-9 min-w-0 flex-1`,value:l,autoFocus:!0,disabled:a,onChange:e=>u(e.target.value),onBlur:()=>void p(),onKeyDown:e=>{e.key===`Enter`&&p(),e.key===`Escape`&&(u(o),c(!1))}}),(0,N.jsx)(`button`,{type:`button`,className:`row-action`,title:K(t,`crud.saveTitle`),disabled:a,onMouseDown:e=>e.preventDefault(),onClick:()=>void p(),children:(0,N.jsx)(Dt,{className:`size-3.5`,"aria-hidden":!0})}),(0,N.jsx)(`button`,{type:`button`,className:`row-action`,title:K(t,`crud.cancelTitle`),disabled:a,onMouseDown:e=>e.preventDefault(),onClick:()=>{u(o),c(!1)},children:(0,N.jsx)(Fn,{className:`size-3.5`,"aria-hidden":!0})})]}):(0,N.jsxs)(`button`,{type:`button`,className:`group inline-flex max-w-full items-center gap-2 text-left`,onClick:()=>c(!0),title:o,children:[(0,N.jsx)(`span`,{className:`truncate`,children:Og(e.title,t)}),(0,N.jsx)(cn,{className:`size-3 shrink-0 opacity-0 transition-opacity group-hover:opacity-60`,"aria-hidden":!0})]}),d?(0,N.jsx)(`p`,{className:`mt-1 text-xs text-destructive`,children:d}):null]})}),(0,N.jsx)(mg,{children:(0,N.jsx)(gg,{status:e.status})}),(0,N.jsx)(mg,{className:`text-muted-foreground`,children:e.locale??`-`}),(0,N.jsxs)(mg,{className:`font-mono text-xs text-muted-foreground`,children:[`v`,e.version]}),(0,N.jsx)(mg,{className:`text-muted-foreground`,children:Ag(e.updated_at)}),(0,N.jsxs)(mg,{children:[(0,N.jsxs)(`div`,{className:`flex items-center gap-1`,"data-tour":`entry-actions`,children:[(0,N.jsx)(`a`,{className:`row-action`,title:K(t,`crud.editTooltip`,{name:o}),href:`/admin/c/${encodeURIComponent(e.collection)}/${encodeURIComponent(e.id)}`,children:(0,N.jsx)(cn,{className:`size-3.5`,"aria-hidden":!0})}),(0,N.jsx)(`button`,{type:`button`,className:`row-action`,title:K(t,`crud.deleteTooltip`,{name:o}),disabled:a,onClick:()=>void m(),children:(0,N.jsx)(Tn,{className:`size-3.5`,"aria-hidden":!0})})]}),(0,N.jsx)(`span`,{className:`sr-only`,children:n?Mh(n,t):``})]})]})}function Og(e,t){return e==null||e===``?(0,N.jsx)(`span`,{className:`text-muted-foreground`,children:K(t,`collection.untitled`)}):typeof e==`string`?e:(0,N.jsx)(`span`,{className:`font-mono text-xs`,children:JSON.stringify(e)})}function kg(e,t){return typeof e==`string`&&e?e:e==null||e===``?K(t,`collection.untitled`):JSON.stringify(e)}function Ag(e){if(!Number.isFinite(e))return`-`;try{return vg.format(new Date(e))}catch{return`-`}}var jg=[{name:`product-cover-01`,type:`image/webp`,tag:`product`,alt:`商品主視覺`,url:`/media/product-cover-01.webp`,size:`1920 x 1440`,createdAt:`2026-06-01`,tone:`linear-gradient(135deg,#e8dfcf,#a9c0b5 45%,#2b5b55)`},{name:`brand-story`,type:`image/jpeg`,tag:`brand`,alt:`品牌介紹圖片`,url:`/media/brand-story.jpg`,size:`1600 x 1200`,createdAt:`2026-05-31`,tone:`linear-gradient(135deg,#f3dccb,#d8aa72 48%,#213d59)`},{name:`workflow-map`,type:`image/png`,tag:`content`,alt:`流程示意圖`,url:`/media/workflow-map.png`,size:`1440 x 1080`,createdAt:`2026-05-30`,tone:`linear-gradient(135deg,#e9edf4,#9fb2ca 45%,#253453)`},{name:`homepage-hero`,type:`image/webp`,tag:`content`,alt:`首頁主視覺`,url:`/media/homepage-hero.webp`,size:`2400 x 1350`,createdAt:`2026-05-29`,tone:`linear-gradient(135deg,#f7f1df,#91b7a7 44%,#173f45)`}];async function Mg(e){let t=Ng(e.purposes,e.preferredPurpose);if(!t)throw Error(`No media upload purpose is configured for this site.`);let n=await Ig(e.file,t),r=await Ac.post(`/media/uploads`,{filename:e.file.name,purpose:t.name,variants:n.map(e=>({mimeType:e.mimeType,byteSize:e.blob.size,role:e.role})),alt:e.alt??Wg(e.file),caption:e.caption});for(let e of n){let t=r.capabilities.find(t=>t.mimeType===e.mimeType&&t.role===e.role);if(!t)throw Error(`Upload capability missing for ${e.mimeType}.`);await fetch(t.uploadUrl,{method:t.method,headers:t.requiredHeaders??{"Content-Type":e.mimeType},body:e.blob})}return Ac.post(`/media/uploads/${encodeURIComponent(r.uploadGroupId)}/commit`,{alt:e.alt??Wg(e.file),caption:e.caption})}function Ng(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 Pg(e,t,n){let r=n[n.length-1]??``,i=Ug(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 Fg(e){return(e.variants.find(e=>e.role===`primary`)??e.variants[0])?.publicUrl??null}async function Ig(e,t){if(!e.type.startsWith(`image/`)||e.type===`image/svg+xml`)throw Error(`Only raster image uploads are supported in the admin UI.`);let n=Lg(t.required);if(n.length===0)throw Error(`Media purpose '${t.name}' does not declare required image variants.`);let r=await createImageBitmap(e);try{let e=n.map(e=>zg(e,t)),i=e.find(Hg)??e[0],a=[];for(let n of e){let e=t.maxBytes[n]??2**53-1;a.push({mimeType:n,role:n===i?`primary`:`alternate`,blob:await Bg(r,n,e)})}return a}finally{r.close?.()}}function Lg(e){return e.map(e=>e.split(`,`).map(Rg).filter(e=>!!e)).filter(e=>e.length>0)}function Rg(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}function zg(e,t){for(let n of e)if(n.startsWith(`image/`)&&t.maxBytes[n]!=null)return n;throw Error(`No browser-supported image mime in purpose '${t.name}'.`)}async function Bg(e,t,n){let r=1,i=t===`image/jpeg`?[.88,.78,.68,.58]:[.78,.68,.58,.48],a=null;for(let o=0;o<6;o+=1){for(let o of i){let i=await Vg(e,t,r,o);if(i.type===t&&(a=i,i.size<=n))return i}r*=.82}if(a)return a;throw Error(`This browser cannot encode ${t}.`)}async function Vg(e,t,n,r){let i=document.createElement(`canvas`);i.width=Math.max(1,Math.round(e.width*n)),i.height=Math.max(1,Math.round(e.height*n));let a=i.getContext(`2d`);if(!a)throw Error(`Could not prepare image upload.`);a.drawImage(e,0,0,i.width,i.height);let o=await new Promise(e=>i.toBlob(e,t,r));if(!o)throw Error(`This browser cannot encode ${t}.`);return o}function Hg(e){return e===`image/jpeg`||e===`image/png`||e===`image/gif`}function Ug(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 Wg(e){return e.name.replace(/\.[^.]+$/,``)}function Gg({value:e,onChange:t,label:n,mode:r,onModeChange:i,compact:a=!1,showPreview:o=!1}){let{language:s}=G(),c=M.useRef(null),l=M.useRef(null),[u,d]=M.useState(!1),[f,p]=M.useState(!1),[m,h]=M.useState(!1),[g,_]=M.useState(null),v=r??`rich`,y=P({queryKey:[`site`],queryFn:()=>Ac.get(`/site`)}),b=M.useCallback((n,r=``,i=``)=>{let a=c.current;if(!a){t(`${e}${n}${i}${r}`);return}let o=a.selectionStart,s=a.selectionEnd,l=e.slice(o,s)||i;t(`${e.slice(0,o)}${n}${l}${r}${e.slice(s)}`),window.requestAnimationFrame(()=>{a.focus();let e=o+n.length,t=e+l.length;a.setSelectionRange(e,t)})},[t,e]),x=M.useCallback(t=>{b(`${e.endsWith(`
139
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return M.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Vs=`DialogDescriptionWarning`,Hs=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${zs(Vs).contentName}}.`;return M.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Us=ms,Ws=bs,Gs=Ss,Ks=Es,qs=js,Js=Ns,Ys=Fs;function Xs({...e}){return(0,N.jsx)(Us,{"data-slot":`sheet`,...e})}function Zs({...e}){return(0,N.jsx)(Ws,{"data-slot":`sheet-portal`,...e})}function Qs({className:e,...t}){return(0,N.jsx)(Gs,{"data-slot":`sheet-overlay`,className:B(`fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0`,e),...t})}function $s({className:e,children:t,side:n=`right`,showCloseButton:r=!0,...i}){return(0,N.jsxs)(Zs,{children:[(0,N.jsx)(Qs,{}),(0,N.jsxs)(Ks,{"data-slot":`sheet-content`,className:B(`fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500`,n===`right`&&`inset-y-0 right-0 h-full w-3/4 shadow-[-12px_0_32px_-12px_rgba(0,0,0,0.4)] data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm`,n===`left`&&`inset-y-0 left-0 h-full w-3/4 shadow-[12px_0_32px_-12px_rgba(0,0,0,0.4)] data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm`,n===`top`&&`inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,n===`bottom`&&`inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,e),...i,children:[t,r&&(0,N.jsxs)(Ys,{className:`absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary`,children:[(0,N.jsx)(Fn,{className:`size-4`}),(0,N.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function ec({className:e,...t}){return(0,N.jsx)(`div`,{"data-slot":`sheet-header`,className:B(`flex flex-col gap-1.5 p-4`,e),...t})}function tc({className:e,...t}){return(0,N.jsx)(qs,{"data-slot":`sheet-title`,className:B(`font-semibold text-foreground`,e),...t})}function nc({className:e,...t}){return(0,N.jsx)(Js,{"data-slot":`sheet-description`,className:B(`text-sm text-muted-foreground`,e),...t})}var rc=`16rem`,ic=`3.25rem`,ac=`18rem`,oc=`b`,sc=M.createContext(null);function cc(){let[e,t]=M.useState(!1);return M.useEffect(()=>{let e=window.matchMedia(`(max-width: 767px)`),n=()=>t(window.innerWidth<768);return e.addEventListener(`change`,n),t(window.innerWidth<768),()=>e.removeEventListener(`change`,n)},[]),e}function lc({defaultOpen:e=!0,className:t,style:n,children:r,...i}){let a=cc(),[o,s]=M.useState(!1),[c,l]=M.useState(e),u=M.useCallback(e=>{Jn(e),l(e)},[]),d=M.useCallback(()=>a?s(e=>!e):u(!c),[a,c,u]);M.useEffect(()=>{let e=e=>{e.key===oc&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),d())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[d]);let f=c?`expanded`:`collapsed`,p=M.useMemo(()=>({state:f,open:c,setOpen:u,isMobile:a,openMobile:o,setOpenMobile:s,toggleSidebar:d}),[f,c,u,a,o,d]);return(0,N.jsx)(sc.Provider,{value:p,children:(0,N.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":rc,"--sidebar-width-icon":ic,...n},className:B(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar rtl:flex-row-reverse`,t),...i,children:r})})}function uc(){let e=M.useContext(sc);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function dc({side:e=`left`,variant:t=`sidebar`,className:n,children:r,...i}){let{isMobile:a,state:o,openMobile:s,setOpenMobile:c}=uc();return a?(0,N.jsx)(Xs,{open:s,onOpenChange:c,...i,children:(0,N.jsxs)($s,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`w-(--sidebar-width) glass-strip p-0 text-sidebar-foreground [&>button]:hidden`,style:{"--sidebar-width":ac},side:e,showCloseButton:!1,children:[(0,N.jsxs)(ec,{className:`sr-only`,children:[(0,N.jsx)(tc,{children:`Sidebar`}),(0,N.jsx)(nc,{children:`Displays the mobile sidebar.`})]}),(0,N.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:r})]})}):(0,N.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-state":o,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,N.jsx)(`div`,{"data-slot":`sidebar-gap`,className:`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 group-data-[state=collapsed]:w-(--sidebar-width-icon)`}),(0,N.jsx)(`div`,{"data-slot":`sidebar-container`,className:B(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[width] duration-200 md:flex group-data-[state=collapsed]:w-(--sidebar-width-icon)`,e===`left`?`left-0`:`right-0`,t===`inset`?`p-2`:``,n),...i,children:(0,N.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:`glass-strip flex h-full w-full flex-col`,children:r})})]})}function fc({className:e,onClick:t,...n}){let{toggleSidebar:r}=uc();return(0,N.jsxs)(V,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:B(`size-7`,e),onClick:e=>{t?.(e),r()},...n,children:[(0,N.jsx)(sn,{}),(0,N.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function pc({className:e,...t}){return(0,N.jsx)(`main`,{"data-slot":`sidebar-inset`,className:B(`relative flex w-full flex-1 flex-col bg-background`,`md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm rtl:md:peer-data-[variant=inset]:ml-2 rtl:md:peer-data-[variant=inset]:mr-0`,e),...t})}function mc({className:e,...t}){return(0,N.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:B(`flex flex-col gap-2 p-2`,e),...t})}function hc({className:e,...t}){return(0,N.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:B(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto`,e),...t})}function gc({className:e,...t}){return(0,N.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:B(`flex flex-col gap-2 p-2`,e),...t})}function _c({className:e,...t}){return(0,N.jsx)(`hr`,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:B(`mx-4 my-1 h-px w-auto border-0`,`bg-linear-to-r from-transparent via-[color-mix(in_srgb,var(--primary)_24%,transparent)] to-transparent`,`opacity-70 dark:via-[color-mix(in_srgb,var(--palette-teal-light)_18%,transparent)]`,e),...t})}function vc({className:e,...t}){return(0,N.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:B(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function yc({className:e,...t}){return(0,N.jsx)(`div`,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:B(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70`,e),...t})}function bc({className:e,...t}){return(0,N.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:B(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function xc({className:e,...t}){return(0,N.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:B(`group/menu-item relative`,e),...t})}var Sc=$n(`peer/menu-button relative flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm`}},defaultVariants:{size:`default`}});function Cc({asChild:e=!1,isActive:t=!1,size:n=`default`,className:r,...i}){return(0,N.jsx)(e?cr:`button`,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":n,"data-active":t,className:B(Sc({size:n}),r),...i})}function wc({className:e,...t}){return(0,N.jsx)(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:B(`mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5 rtl:-translate-x-px rtl:border-l-0 rtl:border-r`,e),...t})}function Tc({className:e,...t}){return(0,N.jsx)(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:B(`group/menu-sub-item relative`,e),...t})}function Ec({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){return(0,N.jsx)(e?cr:`a`,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":t,"data-active":n,className:B(`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[active=true]:font-medium [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,`rtl:translate-x-px`,t===`sm`&&`text-xs`,t===`md`&&`text-sm`,r),...i})}var Dc=`/admin/api`,Oc=class extends Error{status;body;constructor(e,t,n){super(e),this.status=t,this.body=n,this.name=`ApiError`}};async function kc(e,t){let n=await fetch(`${Dc}${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 Oc(`${n.status} ${n.statusText}`,n.status,i);return i}var Ac={get:e=>kc(e),post:(e,t)=>kc(e,jc(`POST`,t)),patch:(e,t)=>kc(e,jc(`PATCH`,t)),delete:e=>kc(e,{method:`DELETE`})};function jc(e,t){return{method:e,headers:{"Content-Type":`application/json`},body:t===void 0?void 0:JSON.stringify(t)}}var Mc=[`draft`,`review`,`published`,`archived`],Nc=[`draft`,`published`,`archived`],Pc=M.createContext(null);function Fc(){return typeof window>`u`?{pathname:`/admin`,search:``}:{pathname:window.location.pathname,search:window.location.search}}function Ic(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/`)||t.pathname===`/admin/logout`)}function Lc({children:e}){let[t,n]=M.useState(Fc),r=M.useCallback((e,t={})=>{if(typeof window>`u`)return;let r=new URL(e,window.location.href),i=`${r.pathname}${r.search}${r.hash}`;i!==`${window.location.pathname}${window.location.search}${window.location.hash}`&&(t.replace?window.history.replaceState(null,``,i):window.history.pushState(null,``,i));let a={pathname:r.pathname,search:r.search};(0,Xi.flushSync)(()=>n(a))},[]);M.useEffect(()=>{let e=()=>n(Fc());return window.addEventListener(`popstate`,e),()=>window.removeEventListener(`popstate`,e)},[]),M.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`)||Ic(n.href)&&(e.preventDefault(),r(n.href)))};return document.addEventListener(`click`,e,{capture:!0}),()=>document.removeEventListener(`click`,e,{capture:!0})},[r]);let i=M.useMemo(()=>({location:t,navigate:r}),[t,r]);return(0,N.jsx)(Pc.Provider,{value:i,children:e})}function Rc(){let e=M.useContext(Pc);if(!e)throw Error(`useAdminRouter must be used inside AdminRouterProvider.`);return e}function zc(){return Rc().location}var Bc=[{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`}],Vc=`cms.preference.language`,Hc=`cms.preference.direction`,Uc=`cms.preference.theme`,Wc=`cms.theme`,Gc=M.createContext(null);function Kc({children:e}){let[t,n]=M.useState(qc),[r,i]=M.useState(()=>Jc(qc())),[a,o]=M.useState(Yc),s=M.useCallback(e=>{let t=el(e);Zc(Vc,e),Zc(Hc,t),n(e),i(t)},[]),c=M.useCallback(e=>{Zc(Hc,e),i(e)},[]),l=M.useCallback(e=>{Zc(Uc,e),Zc(Wc,e),o(e)},[]);M.useEffect(()=>{document.documentElement.lang=Bc.find(e=>e.value===t)?.htmlLang??`en`,document.documentElement.dir=r},[t,r]),M.useEffect(()=>{let e=()=>{let e=typeof matchMedia<`u`&&matchMedia(`(prefers-color-scheme: dark)`).matches;document.documentElement.classList.toggle(`dark`,a===`dark`||a===`system`&&e)};if(e(),a!==`system`||typeof matchMedia>`u`)return;let t=matchMedia(`(prefers-color-scheme: dark)`);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)},[a]);let u=M.useMemo(()=>({language:t,direction:r,theme:a,setLanguage:s,setDirection:c,setTheme:l}),[t,r,a,s,c,l]);return(0,N.jsx)(Gc.Provider,{value:u,children:e})}function G(){let e=M.useContext(Gc);if(!e)throw Error(`usePreferences must be used inside PreferencesProvider.`);return e}function qc(){let e=Xc(Vc);if(Qc(e))return e;if(typeof navigator>`u`)return`en`;for(let e of navigator.languages??[]){let t=$c(e);if(t!==`en`||e.toLowerCase().startsWith(`en`))return t}return $c(navigator.language)}function Jc(e){let t=Xc(Hc);return t===`rtl`||t===`ltr`?t:el(e)}function Yc(){let e=Xc(`cms.preference.theme`)??Xc(Wc);return e===`light`||e===`dark`||e===`system`?e:`system`}function Xc(e){try{return localStorage.getItem(e)}catch{return null}}function Zc(e,t){try{localStorage.setItem(e,t)}catch{}}function Qc(e){return Bc.some(t=>t.value===e)}function $c(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 el(e){return Bc.find(t=>t.value===e)?.direction??`ltr`}var tl=`@aotter/mantle`,nl=`0.0.11-alpha.26`,rl=`https://www.npmjs.com/package/@aotter/mantle`,il=`https://github.com/aotter/mantle`,al=`M62.27,18.91c-24.86,0-45.09,20.23-45.09,45.09s20.23,45.09,45.09,45.09,45.09-20.23,45.09-45.09-20.23-45.09-45.09-45.09ZM65.07,102.86v-18.98h5.49c1.26,0,2.29-1.03,2.29-2.29v-4.47h11.6c1.26,0,2.29-1.03,2.29-2.29v-20.57c0-1.26-1.03-2.29-2.29-2.29h-5.13v-12.73c0-1.55-1.26-2.8-2.8-2.8s-2.8,1.26-2.8,2.8v12.73h-22.89v-12.73c0-1.55-1.26-2.8-2.81-2.8s-2.8,1.26-2.8,2.8v12.73h-5.13c-1.26,0-2.29,1.03-2.29,2.29v20.57c0,1.26,1.03,2.29,2.29,2.29h11.6v4.47c0,1.26,1.03,2.29,2.29,2.29h5.49v18.98c-20.32-1.45-36.16-18.42-36.16-38.86,0-21.49,17.48-38.97,38.97-38.97s38.97,17.48,38.97,38.97-15.84,37.42-36.16,38.86ZM41.89,73.03v-16.96h14.46c1.94,2.28,5.02,5.87,5.11,5.97.19.19.39.23.52.23s.34-.04.54-.25c.07-.06,1.33-1.44,4.33-4.69.4-.44.8-.87,1.17-1.26h14.63v16.96h-40.75ZM55.78,79.79v-3.15h12.98v3.15h-12.98Z`;function ol(e){switch(e){case`brand`:return`text-[#1a3062]`;case`black`:return`text-[#040000]`;case`white`:return`text-white`;default:return`text-current`}}function sl({className:e,title:t,tone:n=`current`}){return(0,N.jsxs)(`svg`,{viewBox:`0 0 128 128`,role:t?`img`:void 0,"aria-hidden":t?void 0:!0,className:B(ol(n),e),children:[t?(0,N.jsx)(`title`,{children:t}):null,(0,N.jsx)(`path`,{fill:`currentColor`,d:al})]})}function cl(){return(0,N.jsxs)(`div`,{className:B(`fixed bottom-3 end-3 z-30 hidden items-center gap-2 rounded-full`,`border border-border/60 bg-background/65 px-2.5 py-1.5 text-xs`,`text-muted-foreground shadow-[var(--glass-shadow)] backdrop-blur-md md:flex`),children:[(0,N.jsx)(sl,{className:`size-4 text-primary`}),(0,N.jsx)(`a`,{href:rl,target:`_blank`,rel:`noreferrer`,className:`font-medium text-foreground/80 hover:text-primary`,children:tl}),(0,N.jsx)(`span`,{"aria-hidden":!0,children:`·`}),(0,N.jsx)(`a`,{href:il,target:`_blank`,rel:`noreferrer`,className:`hover:text-primary`,children:`GitHub`}),(0,N.jsxs)(`span`,{"aria-label":`version ${nl}`,children:[`v`,nl]})]})}var ll={en:{"admin.consoleTitle":`Admin console`,"auth.accessDenied.title":`Access denied`,"auth.accessDenied.noStaff":`You're signed in, but this account isn't on the admin staff list.`,"auth.accessDenied.askOwner":`Ask a site owner to add your GitHub login, or sign out to try a different account.`,"auth.error.title":`Something went wrong`,"auth.signIn.eyebrow":`AotterMantle admin`,"auth.signIn.title":`Sign in`,"auth.signIn.body":`Staff console. Access is gated by role after sign-in.`,"auth.signIn.methodsLoadFailed":`Couldn't load sign-in methods. Try refreshing.`,"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.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.copy":`Copy`,"common.open":`Open`,"common.failedToLoad":`Failed to load`,"common.signedIn":`Signed in`,"console.eyebrow":`Owner console`,"console.description":`{title} is deployed. Use this console for orientation; use an MCP-capable agent for content operations.`,"console.descriptionFallback":`Use this console for orientation; use an MCP-capable agent for content operations.`,"console.agent.title":`Next: connect an agent`,"console.agent.body":`Give this Staff MCP URL to Claude Code, Codex, Cursor, or another MCP client. It will open a consent screen, then the agent can manage this site's content with your staff permission.`,"console.workspace.title":`Start editing here`,"console.workspace.body":`Products, pages, media, and layout sections should all be editable from this console. Pick a common action to begin.`,"workspace.products":`Product list`,"workspace.pages":`Homepage and pages`,"workspace.media":`Media library`,"console.mcpUrl":`Staff MCP URL`,"console.publicUrl":`Public URL`,"console.loop.title":`Operational loop`,"console.loop.body":`Ask your content agent to list entries, create drafts, publish, unpublish, or adjust copy. Then refresh this console if you want a human-readable inventory.`,"console.onboarding.title":`Guided setup`,"console.onboarding.body":`A first-run overlay will guide new owners through editing content, checking media, and publishing.`,"console.onboarding.step1":`Review the seeded products and homepage sections.`,"console.onboarding.step2":`Edit copy with the rich editor inside the relevant product or page.`,"console.onboarding.step3":`Preview the storefront, then publish the change.`,"console.loop.step1":`Open the public site and inspect the result.`,"console.loop.step2":`Connect a second agent through MCP.`,"console.loop.step3":`Tell the agent what content or workflow to change.`,"console.collections.eyebrow":`Content model`,"console.collections.title":`Content lists`,"console.collections.body":`Products, pages, orders, and operational data from this site. Translation child schemas are folded into their parent.`,"console.collections.emptyTitle":`No collections defined yet`,"console.collections.emptyBody":`A blank project can add Schema manifests later; a starter should normally seed at least one collection.`,"console.collections.noDescription":`No description.`,"collection.breadcrumb":`Collections`,"collection.defaultDescription":`Entries in this collection.`,"collection.schemaSummary":`Manage entries, publishing state, and localized content for {name}.`,"collection.schemaDetails":`Schema notes`,"collection.searchPlaceholder":`Search title, id, status...`,"collection.filter.all":`All`,"collection.empty.title":`No entries yet`,"collection.empty.search":`No entries matched “{search}”.`,"collection.empty.withStatus":`No {status} entries in this collection.`,"collection.empty.all":`This collection has no entries yet.`,"collection.refreshing":`Updating the list...`,"collection.moreRows":`More rows are available, but cursor pagination is not wired in this admin shell yet.`,"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.actions.label":`Collection actions`,"collection.untitled":`(untitled)`,"crud.create":`Add`,"crud.edit":`Edit`,"crud.search":`Search`,"crud.delete":`Delete`,"crud.createTooltip":`Create a new {name} entry.`,"crud.editTooltip":`Edit {name}.`,"crud.searchTooltip":`Search {name}.`,"crud.deleteTooltip":`Delete {name}.`,"crud.duplicateTooltip":`Duplicate {name}.`,"crud.saveTitle":`Save title`,"crud.cancelTitle":`Cancel editing`,"crud.deleteConfirm":`Delete {name}? This cannot be undone.`,"crud.saving":`Saving...`,"crud.duplicating":`Duplicating...`,"crud.deleting":`Deleting...`,"entryEdit.back":`Back to {name}`,"entryEdit.body":`Edit {name} from its Schema manifest. Related child entries are inferred from existing schema relationships.`,"entryEdit.parent":`Parent: {name}`,"entryEdit.save":`Save changes`,"entryEdit.saveTooltip":`Save this entry.`,"entryEdit.fields":`Entry fields`,"entryEdit.meta":`Entry details`,"entryEdit.related":`Related entries`,"entryEdit.noRelated":`No child collections were inferred for this entry.`,"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.publish":`Publish`,"entryEdit.publishing":`Publishing...`,"entryEdit.publishTooltip":`Publish this draft.`,"entryEdit.publishDisabledDirty":`Save changes 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.`,"entryEdit.skus":`Variants and pricing`,"entryEdit.skusBody":`Manage sellable SKUs for {name}. Prices, original prices, inventory behavior, and option values stay attached to this product.`,"entryEdit.openAdvanced":`Open full SKU editor`,"entryEdit.priceMinor":`Price`,"entryEdit.compareAtPriceMinor":`Original price`,"entryEdit.inventoryMode":`Inventory`,"entryEdit.inventoryTracked":`Track stock`,"entryEdit.inventoryUntracked":`Unlimited / untracked`,"entryEdit.currency":`Currency`,"entryEdit.skuInlineHint":`Use the full editor for media, raw option JSON, or advanced fields.`,"productEdit.back":`Back to products`,"productEdit.title":`Edit product`,"productEdit.body":`Edit product copy, price, promotions, brand story, and service details in one place.`,"productEdit.save":`Save changes`,"productEdit.basic":`Product content`,"productEdit.shortDescription":`Short description`,"productEdit.description":`Product description`,"productEdit.price":`Price`,"productEdit.salePrice":`Sale price`,"productEdit.compareAtPrice":`Original price`,"productEdit.promotions":`Promotions`,"productEdit.promoLabel":`Label`,"productEdit.promoTitle":`Promotion title`,"productEdit.promoBody":`Promotion details`,"productEdit.relatedSku":`Bundled SKU`,"productEdit.noRelatedSku":`No bundled SKU`,"productEdit.discountPercent":`Discount %`,"productEdit.addPromotion":`Add promotion`,"productEdit.brand":`Brand story`,"productEdit.brandName":`Brand name`,"productEdit.brandTagline":`Brand tagline`,"productEdit.brandIntro":`Brand introduction`,"productEdit.serviceIncludes":`Service includes`,"settings.page.title":`Store settings`,"settings.page.body":`Manage site-level brand copy and default service information used across the storefront.`,"settings.tabsLabel":`Store settings sections`,"settings.tab.brand":`Brand`,"settings.tab.tracking":`Tracking`,"settings.brandSection":`Brand and service`,"settings.brandSectionBody":`Default storefront copy used by product pages and generated homepage sections.`,"settings.siteBrand":`Site brand`,"settings.siteTitle":`Site title`,"settings.siteDescription":`Site description`,"settings.trackingSection":`Tracking codes`,"settings.trackingSectionBody":`Fill in analytics IDs and Mantle will inject the matching tracking scripts into generated storefront pages.`,"settings.ga4MeasurementId":`GA4 Measurement ID`,"settings.ga4MeasurementIdHelp":`Use the ID only, for example G-XXXXXXXXXX. Do not paste the whole gtag script.`,"settings.facebookPixelId":`Facebook Pixel ID`,"settings.facebookPixelIdHelp":`Use the numeric Pixel ID only. Mantle will generate the base Pixel code.`,"guide.title":`Your store admin is ready`,"guide.body":`Use this guided flow to understand where editing happens before you ask an agent to make larger changes.`,"guide.step1":`Open Products and confirm the seeded storefront items.`,"guide.step2":`Use Add, Edit, Search, or Delete from the collection page.`,"guide.step3":`Preview the public site, then keep refining with the rich editor inside each content area.`,"guide.close":`Close guide`,"guide.open":`Guide`,"guide.next":`Next`,"guide.prev":`Previous`,"guide.finish":`Finish`,"guide.products.title":`Start with products`,"guide.products.body":`Open the Products collection to manage storefront items, SKUs, prices, and localized product copy.`,"guide.filters.title":`Filter publishing states`,"guide.filters.body":`Switch between all, draft, published, and archived entries without leaving the list.`,"guide.actions.title":`Edit from the list`,"guide.actions.body":`Use the row actions to edit product details, duplicate an item, or remove it from the site.`,"guide.reopen.title":`Reopen this guide anytime`,"guide.reopen.body":`The guide button stays in the status bar, so users can turn this walkthrough on again whenever they need it.`,"nav.home":`Home`,"nav.content":`Content`,"nav.editor":`Editor`,"nav.media":`Media library`,"nav.more":`More`,"nav.approvals":`Approvals`,"nav.settings":`Settings`,"nav.staff":`Staff`,"staff.page.title":`Staff`,"staff.page.body":`Invite staff by email, assign roles, and revoke pending invitations. Only owners can see this page.`,"staff.invite.title":`Invite staff`,"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":`Invitees sign in at /admin/sign-in with the invited email (magic link, email code, or a social account on the same address) and land with their role already in effect.`,"staff.table.name":`Name`,"staff.table.email":`Email`,"staff.table.status":`Status / sign-in`,"staff.table.role":`Role`,"staff.role.owner":`Owner`,"staff.role.editor":`Editor`,"staff.role.contributor":`Contributor`,"staff.role.none":`No role`,"staff.badge.invited":`Invited`,"staff.status.emailSignIn":`Email sign-in`,"staff.self":`you`,"status.draft":`Drafts`,"status.review":`In Review`,"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`,"settings.planned.title":`Settings are not wired yet`,"settings.planned.body":`Settings are for values persisted to the site, such as site config. Preferences stay local to this browser.`,"system.notFound.title":`Not found`,"system.notFound.plannedTitle":`Not wired yet`,"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.insertBlock":`Insert block`,"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 product 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.headingPlaceholder":`Heading`,"editor.decreaseFont":`Decrease font size`,"editor.increaseFont":`Increase font size`,"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.emoji":`Emoji`,"editor.mediaLibrary":`Media library`,"editor.imageUrl":`Image URL`,"editor.insertImage":`Insert image`,"editor.videoUrl":`YouTube / Dailymotion URL`,"editor.insertVideo":`Insert video`,"editor.audioHint":`Audio embed`,"media.page.title":`Media library`,"media.page.body":`Upload, search, crop, tag, and reuse images across products and pages.`,"media.upload":`Upload media`,"media.search":`Search media...`,"media.crop":`Crop`,"media.alt":`Alt text`,"media.tags":`Tags`,"media.empty":`No media assets yet.`,"media.dropzone":`Drop files here or choose images`,"media.dropzoneHint":`Assets uploaded here can be reused by products, pages, and storefront sections.`,"media.copyUrl":`Copy image URL`,"media.filter":`Filter media`,"media.filter.all":`All`,"media.filter.product":`Products`,"media.filter.brand":`Brand`,"media.filter.content":`Content`,"media.sort":`Sort media`,"media.sort.newest":`Newest`,"media.sort.name":`Name`,"media.sort.type":`Type`,"approvals.title":`Approvals`,"approvals.body":`Review editorial entries that are waiting for approval before they go live.`,"approvals.emptyTitle":`Nothing is waiting for review`,"approvals.emptyBody":`Entries submitted for review will appear here by collection.`,"approvals.groupBody":`{count} entries are currently marked {status}.`,"approvals.openCollection":`Open collection`,"approvals.reviewEntry":`Review`},"zh-TW":{"admin.consoleTitle":`管理後台`,"auth.accessDenied.title":`無法存取`,"auth.accessDenied.noStaff":`你已登入,但這個帳號不在 admin staff 清單內。`,"auth.accessDenied.askOwner":`請網站 owner 加入你的 GitHub login,或登出改用其他帳號。`,"auth.error.title":`發生錯誤`,"auth.signIn.eyebrow":`AotterMantle 後台`,"auth.signIn.title":`登入`,"auth.signIn.body":`Staff 後台。登入後依角色決定能用的範圍。`,"auth.signIn.methodsLoadFailed":`讀取登入方式失敗,請重新整理頁面。`,"auth.signIn.noMethods":`這個站台還沒設定任何登入方式。`,"auth.signIn.unknownMethod":`不支援的登入方式:{kind}。`,"auth.signIn.method.social.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.viewSite":`查看網站`,"common.copy":`複製`,"common.open":`開啟`,"common.failedToLoad":`載入失敗`,"common.signedIn":`已登入`,"console.eyebrow":`Owner console`,"console.description":`{title} 已部署完成。這裡是操作入口;內容營運請交給支援 MCP 的 agent。`,"console.descriptionFallback":`這裡是操作入口;內容營運請交給支援 MCP 的 agent。`,"console.agent.title":`下一步:連接 agent`,"console.agent.body":`把這個 Staff MCP URL 交給 Claude Code、Codex、Cursor 或其他 MCP client。它會開啟 consent 畫面,授權後 agent 就能用你的 staff 權限管理網站內容。`,"console.workspace.title":`從這裡開始編輯`,"console.workspace.body":`商品、頁面、媒體與首頁區塊都應該能在這個後台管理。先選一個常用操作開始。`,"workspace.products":`商品清單`,"workspace.pages":`首頁與頁面編排`,"workspace.media":`媒體庫`,"console.mcpUrl":`Staff MCP URL`,"console.publicUrl":`公開網站 URL`,"console.loop.title":`營運閉環`,"console.loop.body":`你可以請內容 agent 列出 entries、建立草稿、發布、取消發布或調整文案。需要人工盤點時,再回這個 console 查看。`,"console.onboarding.title":`操作導覽`,"console.onboarding.body":`第一次進入後台時,會用 overlay 帶店主完成內容編輯、媒體檢查與發布。`,"console.onboarding.step1":`先檢查預設商品與首頁區塊。`,"console.onboarding.step2":`在商品或頁面內直接用 Rich Editor 修改內容。`,"console.onboarding.step3":`預覽前台,再發布變更。`,"console.loop.step1":`先打開公開網站檢查結果。`,"console.loop.step2":`透過 MCP 連接第二個 agent。`,"console.loop.step3":`用自然語言告訴 agent 要改內容或流程。`,"console.collections.eyebrow":`內容模型`,"console.collections.title":`內容清單`,"console.collections.body":`這裡會列出這個網站的商品、頁面、訂單與營運資料。翻譯 child schema 會折進 parent 顯示。`,"console.collections.emptyTitle":`尚未定義 collections`,"console.collections.emptyBody":`Blank project 之後可以新增 Schema manifests;starter 通常應該至少有一個 collection。`,"console.collections.noDescription":`沒有描述。`,"collection.breadcrumb":`內容清單`,"collection.defaultDescription":`這個 collection 裡的 entries。`,"collection.schemaSummary":`管理 {name} 的 entries、發布狀態與多語內容。`,"collection.schemaDetails":`Schema 說明`,"collection.searchPlaceholder":`搜尋標題、ID、狀態...`,"collection.filter.all":`全部`,"collection.empty.title":`目前沒有 entries`,"collection.empty.search":`沒有符合「{search}」的資料。`,"collection.empty.withStatus":`這個 collection 目前沒有 {status} entries。`,"collection.empty.all":`這個 collection 目前沒有 entries。`,"collection.refreshing":`清單更新中...`,"collection.moreRows":`還有更多資料,但這個 admin shell 尚未接上 cursor pagination。`,"collection.table.id":`ID`,"collection.table.title":`標題`,"collection.table.status":`狀態`,"collection.table.locale":`語言`,"collection.table.version":`版本`,"collection.table.updated":`更新時間`,"collection.table.actions":`操作`,"collection.actions.label":`內容操作`,"collection.untitled":`(未命名)`,"crud.create":`新增`,"crud.edit":`編輯`,"crud.search":`查詢`,"crud.delete":`刪除`,"crud.createTooltip":`新增一筆{name}。`,"crud.editTooltip":`編輯{name}。`,"crud.searchTooltip":`查詢{name}。`,"crud.deleteTooltip":`刪除{name}。`,"crud.duplicateTooltip":`複製{name}。`,"crud.saveTitle":`儲存標題`,"crud.cancelTitle":`取消編輯`,"crud.deleteConfirm":`確定要刪除{name}?這個動作無法復原。`,"crud.saving":`儲存中...`,"crud.duplicating":`複製中...`,"crud.deleting":`刪除中...`,"entryEdit.back":`回到 {name}`,"entryEdit.body":`依據 {name} 的 Schema manifest 編輯資料;相關子資料會由既有 schema 關係自動推導。`,"entryEdit.parent":`父層:{name}`,"entryEdit.save":`儲存變更`,"entryEdit.saveTooltip":`儲存這筆資料。`,"entryEdit.fields":`資料欄位`,"entryEdit.meta":`資料資訊`,"entryEdit.related":`相關資料`,"entryEdit.noRelated":`目前沒有推導出這筆資料的子 collection。`,"entryEdit.noChildEntries":`目前沒有符合這筆資料的子資料。`,"entryEdit.relationship":`透過子欄位 {child} 對應父欄位 {parent}。`,"entryEdit.addItem":`新增項目`,"entryEdit.removeItem":`移除項目`,"entryEdit.emptyOption":`無值`,"entryEdit.boolean":`啟用`,"entryEdit.skus":`規格與售價`,"entryEdit.skusBody":`管理 {name} 底下實際可販售的 SKU。價格、原價、庫存方式與規格值都會跟著這個商品。`,"entryEdit.openAdvanced":`開啟完整 SKU 編輯器`,"entryEdit.priceMinor":`售價`,"entryEdit.compareAtPriceMinor":`原價`,"entryEdit.inventoryMode":`庫存模式`,"entryEdit.inventoryTracked":`追蹤庫存`,"entryEdit.inventoryUntracked":`不限量/不追蹤`,"entryEdit.currency":`幣別`,"entryEdit.skuInlineHint":`媒體、原始規格 JSON 或進階欄位可用完整編輯器處理。`,"productEdit.back":`回商品清單`,"productEdit.title":`編輯商品`,"productEdit.body":`在同一頁編輯商品文案、價格、優惠活動、品牌介紹與服務內容。`,"productEdit.save":`儲存變更`,"productEdit.basic":`商品內容`,"productEdit.shortDescription":`短描述`,"productEdit.description":`商品介紹`,"productEdit.price":`商品價格`,"productEdit.salePrice":`售價`,"productEdit.compareAtPrice":`原價`,"productEdit.promotions":`活動優惠組合`,"productEdit.promoLabel":`標籤`,"productEdit.promoTitle":`活動標題`,"productEdit.promoBody":`活動內容`,"productEdit.relatedSku":`組合 SKU`,"productEdit.noRelatedSku":`不套用組合 SKU`,"productEdit.discountPercent":`折扣 %`,"productEdit.addPromotion":`新增優惠`,"productEdit.brand":`品牌介紹`,"productEdit.brandName":`品牌名稱`,"productEdit.brandTagline":`品牌標語`,"productEdit.brandIntro":`品牌介紹`,"productEdit.serviceIncludes":`服務包含`,"settings.page.title":`商店設定`,"settings.page.body":`管理全站品牌文案與預設服務資訊,讓商品與首頁可以共用。`,"settings.tabsLabel":`商店設定分頁`,"settings.tab.brand":`品牌`,"settings.tab.tracking":`追蹤碼`,"settings.brandSection":`品牌與服務`,"settings.brandSectionBody":`商品頁與產生首頁區塊會共用的預設商店文案。`,"settings.siteBrand":`網站品牌`,"settings.siteTitle":`網站標題`,"settings.siteDescription":`網站描述`,"settings.trackingSection":`追蹤碼`,"settings.trackingSectionBody":`填入 analytics ID 後,Mantle 會在產生的前台頁面自動埋入對應追蹤碼。`,"settings.ga4MeasurementId":`GA4 Measurement ID`,"settings.ga4MeasurementIdHelp":`只需要填 ID,例如 G-XXXXXXXXXX,不要貼整段 gtag script。`,"settings.facebookPixelId":`Facebook Pixel ID`,"settings.facebookPixelIdHelp":`只需要填數字 Pixel ID,Mantle 會產生標準 Pixel base code。`,"guide.title":`你的商店後台已經準備好了`,"guide.body":`先用這個導覽了解每個編輯入口,再交給 agent 做更大量的調整。`,"guide.step1":`打開商品清單,確認前台預設商品都有進後台。`,"guide.step2":`在 collection 頁使用新增、編輯、查詢或刪除。`,"guide.step3":`預覽公開網站,再在各內容區直接用 Rich Editor 持續調整。`,"guide.close":`關閉引導`,"guide.open":`使用者引導`,"guide.next":`下一步`,"guide.prev":`上一步`,"guide.finish":`完成`,"guide.products.title":`先從商品開始`,"guide.products.body":`打開商品 collection,管理前台商品、SKU、價格與多語商品文案。`,"guide.filters.title":`切換發布狀態`,"guide.filters.body":`在清單上直接切換全部、草稿、已發布與已封存,不需要離開目前頁面。`,"guide.actions.title":`在清單裡直接操作`,"guide.actions.body":`用每列右側操作編輯商品內容、複製商品,或從網站移除該項目。`,"guide.reopen.title":`隨時重新打開引導`,"guide.reopen.body":`右上角會保留使用者引導按鈕,需要時可以再次開啟或關閉這套逐步導覽。`,"nav.home":`首頁`,"nav.content":`內容`,"nav.editor":`編輯器`,"nav.media":`媒體庫`,"nav.more":`更多`,"nav.approvals":`審核`,"nav.settings":`設定`,"nav.staff":`員工管理`,"staff.page.title":`員工管理`,"staff.page.body":`以 email 邀請員工、指派角色、撤銷尚未使用的邀請。僅 owner 可見此頁。`,"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":`受邀者到 /admin/sign-in 用受邀的 email 登入(magic link、email 驗證碼,或同信箱的社群帳號),登入時角色即已生效。`,"staff.table.name":`姓名`,"staff.table.email":`Email`,"staff.table.status":`狀態/登入方式`,"staff.table.role":`角色`,"staff.role.owner":`管理者`,"staff.role.editor":`編輯`,"staff.role.contributor":`協作者`,"staff.role.none":`無角色`,"staff.badge.invited":`邀請中`,"staff.status.emailSignIn":`Email 登入`,"staff.self":`你自己`,"status.draft":`草稿`,"status.review":`審核中`,"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":`個人偏好`,"settings.planned.title":`Settings 尚未接上`,"settings.planned.body":`Settings 是會寫進站台的資料,例如 site config。Preferences 則只保存在這個瀏覽器。`,"system.notFound.title":`找不到頁面`,"system.notFound.plannedTitle":`尚未接上`,"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.insertBlock":`插入區塊`,"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.headingPlaceholder":`標題`,"editor.decreaseFont":`縮小字級`,"editor.increaseFont":`放大字級`,"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.emoji":`表情符號`,"editor.mediaLibrary":`媒體庫`,"editor.imageUrl":`圖片網址`,"editor.insertImage":`插入圖片`,"editor.videoUrl":`YouTube / Dailymotion 連結`,"editor.insertVideo":`插入影片`,"editor.audioHint":`音訊嵌入`,"media.page.title":`媒體庫`,"media.page.body":`上傳、搜尋、裁切、標記並重複使用商品與頁面圖片。`,"media.upload":`上傳媒體`,"media.search":`搜尋媒體...`,"media.crop":`裁切`,"media.alt":`替代文字`,"media.tags":`標籤`,"media.empty":`目前沒有媒體素材。`,"media.dropzone":`拖放檔案到這裡,或選擇圖片`,"media.dropzoneHint":`上傳後的素材可重複用在商品、頁面與前台區塊。`,"media.copyUrl":`複製圖片網址`,"media.filter":`篩選媒體`,"media.filter.all":`全部`,"media.filter.product":`商品`,"media.filter.brand":`品牌`,"media.filter.content":`內容`,"media.sort":`排序媒體`,"media.sort.newest":`最新`,"media.sort.name":`名稱`,"media.sort.type":`類型`,"approvals.title":`審核中心`,"approvals.body":`集中查看等待審核的 editorial entries,發布前可以逐筆檢查內容。`,"approvals.emptyTitle":`目前沒有等待審核的內容`,"approvals.emptyBody":`送出審核的資料會依 collection 分組顯示在這裡。`,"approvals.groupBody":`目前有 {count} 筆內容標記為「{status}」。`,"approvals.openCollection":`開啟清單`,"approvals.reviewEntry":`審核`},"zh-CN":{"admin.consoleTitle":`管理后台`,"auth.signIn.title":`登录`,"common.signOut":`登出`,"common.viewSite":`查看网站`,"common.copy":`复制`,"common.open":`打开`,"common.failedToLoad":`加载失败`,"common.signedIn":`已登录`,"console.agent.title":`下一步:连接 agent`,"console.workspace.title":`从这里开始编辑`,"console.workspace.body":`商品、页面、媒体与首页区块都应该能在这个后台管理。先选一个常用操作开始。`,"workspace.products":`商品清单`,"workspace.pages":`首页与页面编排`,"workspace.media":`媒体库`,"console.onboarding.title":`操作导览`,"console.onboarding.body":`第一次进入后台时,会用 overlay 带店主完成内容编辑、媒体检查与发布。`,"console.onboarding.step1":`先检查预设商品与首页区块。`,"console.onboarding.step2":`在商品或页面内直接用 Rich Editor 修改内容。`,"console.onboarding.step3":`预览前台,再发布变更。`,"console.mcpUrl":`Staff MCP URL`,"console.publicUrl":`公开网站 URL`,"console.collections.title":`内容清单`,"console.collections.body":`这里会列出这个网站的商品、页面、订单与运营数据。翻译 child schema 会折进 parent 显示。`,"collection.breadcrumb":`内容清单`,"collection.filter.all":`全部`,"collection.table.title":`标题`,"collection.table.status":`状态`,"collection.table.locale":`语言`,"collection.table.version":`版本`,"collection.table.updated":`更新时间`,"collection.table.actions":`操作`,"collection.actions.label":`内容操作`,"collection.untitled":`(未命名)`,"collection.searchPlaceholder":`搜索标题、ID、状态...`,"collection.empty.search":`没有符合“{search}”的资料。`,"crud.create":`新增`,"crud.edit":`编辑`,"crud.search":`查询`,"crud.delete":`删除`,"crud.createTooltip":`新增一笔{name}。`,"crud.editTooltip":`编辑{name}。`,"crud.searchTooltip":`查询{name}。`,"crud.deleteTooltip":`删除{name}。`,"crud.duplicateTooltip":`复制{name}。`,"crud.saveTitle":`保存标题`,"crud.cancelTitle":`取消编辑`,"crud.deleteConfirm":`确定要删除{name}?这个动作无法复原。`,"crud.saving":`保存中...`,"crud.duplicating":`复制中...`,"crud.deleting":`删除中...`,"entryEdit.back":`回到 {name}`,"entryEdit.body":`依据 {name} 的 Schema manifest 编辑资料;相关子资料会由既有 schema 关系自动推导。`,"entryEdit.parent":`父层:{name}`,"entryEdit.save":`保存变更`,"entryEdit.saveTooltip":`保存这笔资料。`,"entryEdit.fields":`资料字段`,"entryEdit.meta":`资料信息`,"entryEdit.related":`相关资料`,"entryEdit.noRelated":`目前没有推导出这笔资料的子 collection。`,"entryEdit.noChildEntries":`目前没有符合这笔资料的子资料。`,"entryEdit.relationship":`透过子字段 {child} 对应父字段 {parent}。`,"entryEdit.addItem":`新增项目`,"entryEdit.removeItem":`移除项目`,"entryEdit.emptyOption":`无值`,"entryEdit.boolean":`启用`,"entryEdit.skus":`规格与售价`,"entryEdit.skusBody":`管理 {name} 底下实际可销售的 SKU。价格、原价、库存方式与规格值都会跟着这个商品。`,"entryEdit.openAdvanced":`打开完整 SKU 编辑器`,"entryEdit.priceMinor":`售价`,"entryEdit.compareAtPriceMinor":`原价`,"entryEdit.inventoryMode":`库存模式`,"entryEdit.inventoryTracked":`追踪库存`,"entryEdit.inventoryUntracked":`不限量/不追踪`,"entryEdit.currency":`币别`,"entryEdit.skuInlineHint":`媒体、原始规格 JSON 或进阶字段可用完整编辑器处理。`,"productEdit.back":`回商品清单`,"productEdit.title":`编辑商品`,"productEdit.body":`在同一页编辑商品文案、价格、优惠活动、品牌介绍与服务内容。`,"productEdit.save":`保存变更`,"productEdit.basic":`商品内容`,"productEdit.shortDescription":`短描述`,"productEdit.description":`商品介绍`,"productEdit.price":`商品价格`,"productEdit.salePrice":`售价`,"productEdit.compareAtPrice":`原价`,"productEdit.promotions":`活动优惠组合`,"productEdit.promoLabel":`标签`,"productEdit.promoTitle":`活动标题`,"productEdit.promoBody":`活动内容`,"productEdit.relatedSku":`组合 SKU`,"productEdit.noRelatedSku":`不套用组合 SKU`,"productEdit.discountPercent":`折扣 %`,"productEdit.addPromotion":`新增优惠`,"productEdit.brand":`品牌介绍`,"productEdit.brandName":`品牌名称`,"productEdit.brandTagline":`品牌标语`,"productEdit.brandIntro":`品牌介绍`,"productEdit.serviceIncludes":`服务包含`,"settings.page.title":`商店设置`,"settings.page.body":`管理全站品牌文案与预设服务信息,让商品与首页可以共用。`,"settings.tabsLabel":`商店设置分页`,"settings.tab.brand":`品牌`,"settings.tab.tracking":`追踪码`,"settings.brandSection":`品牌与服务`,"settings.brandSectionBody":`商品页与生成首页区块会共用的默认商店文案。`,"settings.siteBrand":`网站品牌`,"settings.siteTitle":`网站标题`,"settings.siteDescription":`网站描述`,"settings.trackingSection":`追踪码`,"settings.trackingSectionBody":`填入 analytics ID 后,Mantle 会在生成的前台页面自动埋入对应追踪码。`,"settings.ga4MeasurementId":`GA4 Measurement ID`,"settings.ga4MeasurementIdHelp":`只需要填 ID,例如 G-XXXXXXXXXX,不要贴整段 gtag script。`,"settings.facebookPixelId":`Facebook Pixel ID`,"settings.facebookPixelIdHelp":`只需要填数字 Pixel ID,Mantle 会生成标准 Pixel base code。`,"guide.title":`你的商店后台已经准备好了`,"guide.body":`先用这个导览了解每个编辑入口,再交给 agent 做更大量的调整。`,"guide.step1":`打开商品清单,确认前台预设商品都有进后台。`,"guide.step2":`在 collection 页使用新增、编辑、查询或删除。`,"guide.step3":`预览公开网站,再在各内容区直接用 Rich Editor 持续调整。`,"guide.close":`关闭引导`,"guide.open":`使用者引导`,"guide.next":`下一步`,"guide.prev":`上一步`,"guide.finish":`完成`,"guide.products.title":`先从商品开始`,"guide.products.body":`打开商品 collection,管理前台商品、SKU、价格与多语商品文案。`,"guide.filters.title":`切换发布状态`,"guide.filters.body":`在清单上直接切换全部、草稿、已发布与已归档,不需要离开当前页面。`,"guide.actions.title":`在清单里直接操作`,"guide.actions.body":`用每列右侧操作编辑商品内容、复制商品,或从网站移除该项目。`,"guide.reopen.title":`随时重新打开引导`,"guide.reopen.body":`右上角会保留使用者引导按钮,需要时可以再次开启或关闭这套逐步导览。`,"nav.home":`首页`,"nav.content":`内容`,"nav.editor":`编辑器`,"nav.media":`媒体库`,"nav.more":`更多`,"nav.approvals":`审核`,"nav.settings":`设置`,"status.draft":`草稿`,"status.review":`审核中`,"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.insertBlock":`插入区块`,"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.headingPlaceholder":`标题`,"editor.decreaseFont":`缩小字号`,"editor.increaseFont":`放大字号`,"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.emoji":`表情符号`,"editor.mediaLibrary":`媒体库`,"editor.imageUrl":`图片网址`,"editor.insertImage":`插入图片`,"editor.videoUrl":`YouTube / Dailymotion 链接`,"editor.insertVideo":`插入视频`,"editor.audioHint":`音频嵌入`,"media.page.title":`媒体库`,"media.page.body":`上传、搜索、裁切、标记并复用商品与页面图片。`,"media.upload":`上传媒体`,"media.search":`搜索媒体...`,"media.crop":`裁切`,"media.alt":`替代文字`,"media.tags":`标签`,"media.empty":`目前没有媒体素材。`,"media.dropzone":`拖放文件到这里,或选择图片`,"media.dropzoneHint":`上传后的素材可复用在商品、页面与前台区块。`,"media.copyUrl":`复制图片网址`,"media.filter":`筛选媒体`,"media.filter.all":`全部`,"media.filter.product":`商品`,"media.filter.brand":`品牌`,"media.filter.content":`内容`,"media.sort":`排序媒体`,"media.sort.newest":`最新`,"media.sort.name":`名称`,"media.sort.type":`类型`,"approvals.title":`审核中心`,"approvals.body":`集中查看等待审核的 editorial entries,发布前可以逐笔检查内容。`,"approvals.emptyTitle":`目前没有等待审核的内容`,"approvals.emptyBody":`送出审核的资料会依 collection 分组显示在这里。`,"approvals.groupBody":`目前有 {count} 笔内容标记为“{status}”。`,"approvals.openCollection":`打开清单`,"approvals.reviewEntry":`审核`},de:{"auth.signIn.title":`Anmelden`,"common.signOut":`Abmelden`,"common.viewSite":`Website ansehen`,"common.copy":`Kopieren`,"common.open":`Öffnen`,"common.failedToLoad":`Laden fehlgeschlagen`,"common.signedIn":`Angemeldet`,"console.agent.title":`Nächster Schritt: Agent verbinden`,"collection.filter.all":`Alle`,"nav.home":`Start`,"nav.content":`Inhalte`,"nav.more":`Mehr`,"nav.approvals":`Freigaben`,"nav.settings":`Einstellungen`,"status.draft":`Entwürfe`,"status.review":`In Prüfung`,"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:{"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`,"console.agent.title":`Siguiente: conectar un agente`,"collection.filter.all":`Todo`,"nav.home":`Inicio`,"nav.content":`Contenido`,"nav.more":`Más`,"nav.approvals":`Aprobaciones`,"nav.settings":`Configuración`,"status.draft":`Borradores`,"status.review":`En revisión`,"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:{"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é`,"console.agent.title":`Étape suivante : connecter un agent`,"collection.filter.all":`Tout`,"nav.home":`Accueil`,"nav.content":`Contenu`,"nav.more":`Plus`,"nav.approvals":`Approbations`,"nav.settings":`Paramètres`,"status.draft":`Brouillons`,"status.review":`En révision`,"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:{"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`,"console.agent.title":`Prossimo: collega un agente`,"collection.filter.all":`Tutto`,"nav.home":`Home`,"nav.content":`Contenuti`,"nav.more":`Altro`,"nav.approvals":`Approvazioni`,"nav.settings":`Impostazioni`,"status.draft":`Bozze`,"status.review":`In revisione`,"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:{"auth.signIn.title":`サインイン`,"auth.signIn.body":`管理コンソールです。サインイン後にロールでアクセスを判定します。`,"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.copy":`コピー`,"common.open":`開く`,"common.failedToLoad":`読み込みに失敗しました`,"common.signedIn":`サインイン済み`,"console.agent.title":`次へ: agent を接続`,"collection.filter.all":`すべて`,"nav.home":`ホーム`,"nav.content":`コンテンツ`,"nav.more":`その他`,"nav.approvals":`承認`,"nav.settings":`設定`,"status.draft":`下書き`,"status.review":`レビュー中`,"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:{"auth.signIn.title":`로그인`,"common.signOut":`로그아웃`,"common.viewSite":`사이트 보기`,"common.copy":`복사`,"common.open":`열기`,"common.failedToLoad":`로드 실패`,"common.signedIn":`로그인됨`,"console.agent.title":`다음: agent 연결`,"collection.filter.all":`전체`,"nav.home":`홈`,"nav.content":`콘텐츠`,"nav.more":`더보기`,"nav.approvals":`승인`,"nav.settings":`설정`,"status.draft":`초안`,"status.review":`검토 중`,"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":{"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`,"console.agent.title":`Próximo: conectar um agente`,"collection.filter.all":`Todos`,"nav.home":`Início`,"nav.content":`Conteúdo`,"nav.more":`Mais`,"nav.approvals":`Aprovações`,"nav.settings":`Configurações`,"status.draft":`Rascunhos`,"status.review":`Em revisão`,"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:{"auth.signIn.title":`Войти`,"common.signOut":`Выйти`,"common.viewSite":`Открыть сайт`,"common.copy":`Копировать`,"common.open":`Открыть`,"common.failedToLoad":`Не удалось загрузить`,"common.signedIn":`Вы вошли`,"console.agent.title":`Далее: подключите агента`,"collection.filter.all":`Все`,"nav.home":`Главная`,"nav.content":`Контент`,"nav.more":`Еще`,"nav.approvals":`Одобрения`,"nav.settings":`Настройки`,"status.draft":`Черновики`,"status.review":`На проверке`,"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:{"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`,"console.agent.title":`Volgende stap: agent verbinden`,"collection.filter.all":`Alles`,"nav.home":`Home`,"nav.content":`Content`,"nav.more":`Meer`,"nav.approvals":`Goedkeuringen`,"nav.settings":`Instellingen`,"status.draft":`Concepten`,"status.review":`In review`,"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:{"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`,"console.agent.title":`Dalej: połącz agenta`,"collection.filter.all":`Wszystkie`,"nav.home":`Start`,"nav.content":`Treści`,"nav.more":`Więcej`,"nav.approvals":`Zatwierdzenia`,"nav.settings":`Ustawienia`,"status.draft":`Szkice`,"status.review":`W recenzji`,"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:{"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`,"console.agent.title":`Sonraki: agent bağla`,"collection.filter.all":`Tümü`,"nav.home":`Ana sayfa`,"nav.content":`İçerik`,"nav.more":`Daha fazla`,"nav.approvals":`Onaylar`,"nav.settings":`Ayarlar`,"status.draft":`Taslaklar`,"status.review":`İncelemede`,"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:{"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`,"console.agent.title":`Tiếp theo: kết nối agent`,"collection.filter.all":`Tất cả`,"nav.home":`Trang chủ`,"nav.content":`Nội dung`,"nav.more":`Thêm`,"nav.approvals":`Phê duyệt`,"nav.settings":`Cài đặt`,"status.draft":`Bản nháp`,"status.review":`Đang duyệt`,"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:{"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`,"console.agent.title":`Další: připojit agenta`,"collection.filter.all":`Vše`,"nav.home":`Domů`,"nav.content":`Obsah`,"nav.more":`Více`,"nav.approvals":`Schválení`,"nav.settings":`Nastavení`,"status.draft":`Koncepty`,"status.review":`V kontrole`,"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:{"auth.signIn.title":`Увійти`,"common.signOut":`Вийти`,"common.viewSite":`Переглянути сайт`,"common.copy":`Копіювати`,"common.open":`Відкрити`,"common.failedToLoad":`Не вдалося завантажити`,"common.signedIn":`Ви увійшли`,"console.agent.title":`Далі: підключіть агента`,"collection.filter.all":`Усі`,"nav.home":`Головна`,"nav.content":`Контент`,"nav.more":`Більше`,"nav.approvals":`Схвалення`,"nav.settings":`Налаштування`,"status.draft":`Чернетки`,"status.review":`На перевірці`,"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:{"auth.signIn.title":`تسجيل الدخول`,"common.signOut":`تسجيل الخروج`,"common.viewSite":`عرض الموقع`,"common.copy":`نسخ`,"common.open":`فتح`,"common.failedToLoad":`فشل التحميل`,"common.signedIn":`تم تسجيل الدخول`,"console.agent.title":`التالي: وصّل الوكيل`,"collection.filter.all":`الكل`,"nav.home":`الرئيسية`,"nav.content":`المحتوى`,"nav.more":`المزيد`,"nav.approvals":`الموافقات`,"nav.settings":`الإعدادات`,"status.draft":`مسودات`,"status.review":`قيد المراجعة`,"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:{"auth.signIn.title":`כניסה`,"common.signOut":`יציאה`,"common.viewSite":`הצג אתר`,"common.copy":`העתק`,"common.open":`פתח`,"common.failedToLoad":`הטעינה נכשלה`,"common.signedIn":`מחובר`,"console.agent.title":`הבא: חבר agent`,"collection.filter.all":`הכול`,"nav.home":`בית`,"nav.content":`תוכן`,"nav.more":`עוד`,"nav.approvals":`אישורים`,"nav.settings":`הגדרות`,"status.draft":`טיוטות`,"status.review":`בבדיקה`,"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:{"auth.signIn.title":`ورود`,"common.signOut":`خروج`,"common.viewSite":`مشاهده سایت`,"common.copy":`کپی`,"common.open":`باز کردن`,"common.failedToLoad":`بارگذاری ناموفق بود`,"common.signedIn":`وارد شده‌اید`,"console.agent.title":`بعدی: اتصال agent`,"collection.filter.all":`همه`,"nav.home":`خانه`,"nav.content":`محتوا`,"nav.more":`بیشتر`,"nav.approvals":`تأییدها`,"nav.settings":`تنظیمات`,"status.draft":`پیش‌نویس‌ها`,"status.review":`در بازبینی`,"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:{"auth.signIn.title":`เข้าสู่ระบบ`,"common.signOut":`ออกจากระบบ`,"common.viewSite":`ดูเว็บไซต์`,"common.copy":`คัดลอก`,"common.open":`เปิด`,"common.failedToLoad":`โหลดไม่สำเร็จ`,"common.signedIn":`เข้าสู่ระบบแล้ว`,"console.agent.title":`ถัดไป: เชื่อมต่อ agent`,"collection.filter.all":`ทั้งหมด`,"nav.home":`หน้าแรก`,"nav.content":`เนื้อหา`,"nav.more":`เพิ่มเติม`,"nav.approvals":`การอนุมัติ`,"nav.settings":`การตั้งค่า`,"status.draft":`ฉบับร่าง`,"status.review":`กำลังตรวจสอบ`,"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:{"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`,"console.agent.title":`Berikutnya: hubungkan agent`,"collection.filter.all":`Semua`,"nav.home":`Beranda`,"nav.content":`Konten`,"nav.more":`Lainnya`,"nav.approvals":`Persetujuan`,"nav.settings":`Pengaturan`,"status.draft":`Draf`,"status.review":`Dalam ulasan`,"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 K(e,t,n={}){let r=ll[e]?.[t]??ll.en[t];for(let[e,t]of Object.entries(n))r=r.split(`{${e}}`).join(t);return r}function ul({brand:e}){let{setOpenMobile:t}=uc(),{language:n}=G();return(0,N.jsx)(bc,{children:(0,N.jsx)(xc,{children:(0,N.jsx)(Cc,{asChild:!0,size:`lg`,className:`data-[slot=sidebar-menu-button]:!p-1.5`,children:(0,N.jsxs)(`a`,{href:e.href??`/admin`,onClick:()=>t(!1),children:[(0,N.jsx)(`span`,{className:`text-primary flex aspect-square size-8 items-center justify-center`,children:(0,N.jsx)(sl,{className:`size-5`})}),(0,N.jsx)(`div`,{"data-sidebar-label":!0,className:`grid flex-1 text-start text-sm leading-tight`,children:(0,N.jsx)(`span`,{className:`truncate font-semibold`,children:K(n,`admin.consoleTitle`)})})]})})})})}var dl=`Collapsible`,[fl,pl]=Bi(dl),[ml,hl]=fl(dl),gl=M.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,l]=qi({prop:r,defaultProp:i??!1,onChange:o,caller:dl});return(0,N.jsx)(ml,{scope:n,disabled:a,contentId:Gi(),open:c,onOpenToggle:M.useCallback(()=>l(e=>!e),[l]),children:(0,N.jsx)(ra.div,{"data-state":Sl(c),"data-disabled":a?``:void 0,...s,ref:t})})});gl.displayName=dl;var _l=`CollapsibleTrigger`,vl=M.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=hl(_l,n);return(0,N.jsx)(ra.button,{type:`button`,"aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Sl(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:H(e.onClick,i.onOpenToggle)})});vl.displayName=_l;var yl=`CollapsibleContent`,bl=M.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=hl(yl,e.__scopeCollapsible);return(0,N.jsx)(za,{present:n||i.open,children:({present:e})=>(0,N.jsx)(xl,{...r,ref:t,present:e})})});bl.displayName=yl;var xl=M.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=hl(yl,n),[s,c]=M.useState(r),l=M.useRef(null),u=nr(t,l),d=M.useRef(0),f=d.current,p=M.useRef(0),m=p.current,h=o.open||s,g=M.useRef(h),_=M.useRef(void 0);return M.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),Hi(()=>{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,N.jsx)(ra.div,{"data-state":Sl(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})});function Sl(e){return e?`open`:`closed`}var Cl=gl,wl=vl,Tl=bl;function El(e){let t=e+`CollectionProvider`,[n,r]=Bi(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=M.useRef(null),a=M.useRef(new Map).current;return(0,N.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=Zi(s),l=M.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,N.jsx)(c,{ref:nr(t,a(s,n).collectionRef),children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=Zi(u),p=M.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=M.useRef(null),s=nr(t,o),c=a(u,n);return M.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,N.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return M.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[{Provider:o,Slot:l,ItemSlot:p},m,r]}var Dl=M.createContext(void 0);function Ol(e){let t=M.useContext(Dl);return e||t||`ltr`}var kl=[`top`,`right`,`bottom`,`left`],Al=Math.min,jl=Math.max,Ml=Math.round,Nl=Math.floor,Pl=e=>({x:e,y:e}),Fl={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Il(e,t,n){return jl(e,Al(t,n))}function Ll(e,t){return typeof e==`function`?e(t):e}function q(e){return e.split(`-`)[0]}function J(e){return e.split(`-`)[1]}function Y(e){return e===`x`?`y`:`x`}function X(e){return e===`y`?`height`:`width`}function Z(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Rl(e){return Y(Z(e))}function zl(e,t,n){n===void 0&&(n=!1);let r=J(e),i=Rl(e),a=X(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Jl(o)),[o,Jl(o)]}function Bl(e){let t=Jl(e);return[Vl(e),t,Vl(t)]}function Vl(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Hl=[`left`,`right`],Ul=[`right`,`left`],Wl=[`top`,`bottom`],Gl=[`bottom`,`top`];function Kl(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Ul:Hl:t?Hl:Ul;case`left`:case`right`:return t?Wl:Gl;default:return[]}}function ql(e,t,n,r){let i=J(e),a=Kl(q(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Vl)))),a}function Jl(e){let t=q(e);return Fl[t]+e.slice(t.length)}function Yl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Xl(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Yl(e)}function Zl(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 Ql(e,t,n){let{reference:r,floating:i}=e,a=Z(t),o=Rl(t),s=X(o),c=q(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}}switch(J(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function $l(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}=Ll(t,e),p=Xl(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Zl(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=Zl(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 eu=50,tu=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:$l},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ql(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<eu&&(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}=Ql(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},nu=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}=Ll(e,t)||{};if(l==null)return{};let d=Xl(u),f={x:n,y:r},p=Rl(i),m=X(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,ee=Al(d[_],T),te=Al(d[v],T),E=ee,ne=C-h[m]-te,re=C/2-h[m]/2+w,ie=Il(E,re,ne),D=!c.arrow&&J(i)!=null&&re!==ie&&a.reference[m]/2-(re<E?ee:te)-h[m]/2<0,ae=D?re<E?re-E:re-ne:0;return{[p]:f[p]+ae,data:{[p]:ie,centerOffset:re-ie-ae,...D&&{alignmentOffset:ae}},reset:D}}}),ru=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}=Ll(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=q(r),_=Z(o),v=q(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Jl(o)]:Bl(o)),x=p!==`none`;!d&&x&&b.push(...ql(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=zl(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`&&_!==Z(t))||T.every(e=>Z(e.placement)===_?e.overflows[0]>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=Z(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;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function iu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function au(e){return kl.some(t=>e[t]>=0)}var ou=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Ll(e,t);switch(i){case`referenceHidden`:{let e=iu(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:au(e)}}}case`escaped`:{let e=iu(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:au(e)}}}default:return{}}}}},su=new Set([`left`,`top`]);async function cu(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=q(n),s=J(n),c=Z(n)===`y`,l=su.has(o)?-1:1,u=a&&c?-1:1,d=Ll(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 lu=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 cu(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}}}}},uu=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}=Ll(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Z(q(i)),p=Y(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Il(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Il(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},du=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}=Ll(e,t),u={x:n,y:r},d=Z(i),f=Y(d),p=u[f],m=u[d],h=Ll(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};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=su.has(q(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}}}},fu=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Ll(e,t),u=await o.detectOverflow(t,l),d=q(i),f=J(i),p=Z(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Al(h-u[g],v),x=Al(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=jl(u.left,0),t=jl(u.right,0),n=jl(u.top,0),r=jl(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:jl(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:jl(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function pu(){return typeof window<`u`}function mu(e){return _u(e)?(e.nodeName||``).toLowerCase():`#document`}function hu(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function gu(e){return((_u(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function _u(e){return pu()?e instanceof Node||e instanceof hu(e).Node:!1}function vu(e){return pu()?e instanceof Element||e instanceof hu(e).Element:!1}function yu(e){return pu()?e instanceof HTMLElement||e instanceof hu(e).HTMLElement:!1}function bu(e){return!pu()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof hu(e).ShadowRoot}function xu(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Mu(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Su(e){return/^(table|td|th)$/.test(mu(e))}function Cu(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var wu=/transform|translate|scale|rotate|perspective|filter/,Tu=/paint|layout|strict|content/,Eu=e=>!!e&&e!==`none`,Du;function Ou(e){let t=vu(e)?Mu(e):e;return Eu(t.transform)||Eu(t.translate)||Eu(t.scale)||Eu(t.rotate)||Eu(t.perspective)||!Au()&&(Eu(t.backdropFilter)||Eu(t.filter))||wu.test(t.willChange||``)||Tu.test(t.contain||``)}function ku(e){let t=Pu(e);for(;yu(t)&&!ju(t);){if(Ou(t))return t;if(Cu(t))return null;t=Pu(t)}return null}function Au(){return Du??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Du}function ju(e){return/^(html|body|#document)$/.test(mu(e))}function Mu(e){return hu(e).getComputedStyle(e)}function Nu(e){return vu(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pu(e){if(mu(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||bu(e)&&e.host||gu(e);return bu(t)?t.host:t}function Fu(e){let t=Pu(e);return ju(t)?e.ownerDocument?e.ownerDocument.body:e.body:yu(t)&&xu(t)?t:Fu(t)}function Iu(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Fu(e),i=r===e.ownerDocument?.body,a=hu(r);if(i){let e=Lu(a);return t.concat(a,a.visualViewport||[],xu(r)?r:[],e&&n?Iu(e):[])}else return t.concat(r,Iu(r,[],n))}function Lu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ru(e){let t=Mu(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=yu(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Ml(n)!==a||Ml(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function zu(e){return vu(e)?e:e.contextElement}function Bu(e){let t=zu(e);if(!yu(t))return Pl(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Ru(t),o=(a?Ml(n.width):n.width)/r,s=(a?Ml(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Vu=Pl(0);function Hu(e){let t=hu(e);return!Au()||!t.visualViewport?Vu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Uu(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==hu(e)?!1:t}function Q(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=zu(e),o=Pl(1);t&&(r?vu(r)&&(o=Bu(r)):o=Bu(e));let s=Uu(a,n,r)?Hu(a):Pl(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){let e=hu(a),t=r&&vu(r)?hu(r):r,n=e,i=Lu(n);for(;i&&r&&t!==n;){let e=Bu(i),t=i.getBoundingClientRect(),r=Mu(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=hu(i),i=Lu(n)}}return Zl({width:u,height:d,x:c,y:l})}function Wu(e,t){let n=Nu(e).scrollLeft;return t?t.left+n:Q(gu(e)).left+n}function Gu(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Wu(e,n),y:n.top+t.scrollTop}}function Ku(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=gu(r),s=t?Cu(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Pl(1),u=Pl(0),d=yu(r);if((d||!d&&!a)&&((mu(r)!==`body`||xu(o))&&(c=Nu(r)),d)){let e=Q(r);l=Bu(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Gu(o,c):Pl(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 qu(e){return Array.from(e.getClientRects())}function Ju(e){let t=gu(e),n=Nu(e),r=e.ownerDocument.body,i=jl(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=jl(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Wu(e),s=-n.scrollTop;return Mu(r).direction===`rtl`&&(o+=jl(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Yu=25;function Xu(e,t){let n=hu(e),r=gu(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Au();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Wu(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Yu&&(a-=o)}else l<=Yu&&(a+=l);return{width:a,height:o,x:s,y:c}}function Zu(e,t){let n=Q(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=yu(e)?Bu(e):Pl(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Qu(e,t,n){let r;if(t===`viewport`)r=Xu(e,n);else if(t===`document`)r=Ju(gu(e));else if(vu(t))r=Zu(t,n);else{let n=Hu(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Zl(r)}function $u(e,t){let n=Pu(e);return n===t||!vu(n)||ju(n)?!1:Mu(n).position===`fixed`||$u(n,t)}function ed(e,t){let n=t.get(e);if(n)return n;let r=Iu(e,[],!1).filter(e=>vu(e)&&mu(e)!==`body`),i=null,a=Mu(e).position===`fixed`,o=a?Pu(e):e;for(;vu(o)&&!ju(o);){let t=Mu(o),n=Ou(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||xu(o)&&!n&&$u(e,o))?r=r.filter(e=>e!==o):i=t,o=Pu(o)}return t.set(e,r),r}function td(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Cu(t)?[]:ed(t,this._c):[].concat(n),r],o=Qu(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=Qu(t,a[e],i);s=jl(n.top,s),c=Al(n.right,c),l=Al(n.bottom,l),u=jl(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function nd(e){let{width:t,height:n}=Ru(e);return{width:t,height:n}}function rd(e,t,n){let r=yu(t),i=gu(t),a=n===`fixed`,o=Q(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Pl(0);function l(){c.x=Wu(i)}if(r||!r&&!a)if((mu(t)!==`body`||xu(i))&&(s=Nu(t)),r){let e=Q(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Gu(i,s):Pl(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function id(e){return Mu(e).position===`static`}function ad(e,t){if(!yu(e)||Mu(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return gu(e)===n&&(n=n.ownerDocument.body),n}function od(e,t){let n=hu(e);if(Cu(e))return n;if(!yu(e)){let t=Pu(e);for(;t&&!ju(t);){if(vu(t)&&!id(t))return t;t=Pu(t)}return n}let r=ad(e,t);for(;r&&Su(r)&&id(r);)r=ad(r,t);return r&&ju(r)&&id(r)&&!Ou(r)?n:r||ku(e)||n}var sd=async function(e){let t=this.getOffsetParent||od,n=this.getDimensions,r=await n(e.floating);return{reference:rd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function cd(e){return Mu(e).direction===`rtl`}var ld={convertOffsetParentRelativeRectToViewportRelativeRect:Ku,getDocumentElement:gu,getClippingRect:td,getOffsetParent:od,getElementRects:sd,getClientRects:qu,getDimensions:nd,getScale:Bu,isElement:vu,isRTL:cd};function ud(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function dd(e,t){let n=null,r,i=gu(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Nl(d),h=Nl(i.clientWidth-(u+f)),g=Nl(i.clientHeight-(d+p)),_=Nl(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:jl(0,Al(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!ud(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function fd(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=zu(e),u=i||a?[...l?Iu(l):[],...t?Iu(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?dd(l,n):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?Q(e):null;c&&g();function g(){let t=Q(e);h&&!ud(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 pd=lu,md=uu,hd=ru,gd=fu,_d=ou,vd=nu,$=du,yd=(e,t,n)=>{let r=new Map,i={platform:ld,...n},a={...i.platform,_c:r};return tu(e,t,{...i,platform:a})},bd=typeof document<`u`?M.useLayoutEffect:function(){};function xd(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(!xd(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)&&!xd(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Sd(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Cd(e,t){let n=Sd(e);return Math.round(t*n)/n}function wd(e){let t=M.useRef(e);return bd(()=>{t.current=e}),t}function Td(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]=M.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=M.useState(r);xd(f,r)||p(r);let[m,h]=M.useState(null),[g,_]=M.useState(null),v=M.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=M.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=M.useRef(null),C=M.useRef(null),w=M.useRef(u),T=c!=null,ee=wd(c),te=wd(i),E=wd(l),ne=M.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};te.current&&(e.platform=te.current),yd(S.current,C.current,e).then(e=>{let t={...e,isPositioned:E.current!==!1};re.current&&!xd(w.current,t)&&(w.current=t,Xi.flushSync(()=>{d(t)}))})},[f,t,n,te,E]);bd(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let re=M.useRef(!1);bd(()=>(re.current=!0,()=>{re.current=!1}),[]),bd(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(ee.current)return ee.current(b,x,ne);ne()}},[b,x,ne,ee,T]);let ie=M.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),D=M.useMemo(()=>({reference:b,floating:x}),[b,x]),ae=M.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=Cd(D.floating,u.x),r=Cd(D.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Sd(D.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,D.floating,u.x,u.y]);return M.useMemo(()=>({...u,update:ne,refs:ie,elements:D,floatingStyles:ae}),[u,ne,ie,D,ae])}var Ed=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?{}:vd({element:r.current,padding:i}).fn(n):r?vd({element:r,padding:i}).fn(n):{}}}},Dd=(e,t)=>{let n=pd(e);return{name:n.name,fn:n.fn,options:[e,t]}},Od=(e,t)=>{let n=md(e);return{name:n.name,fn:n.fn,options:[e,t]}},kd=(e,t)=>({fn:$(e).fn,options:[e,t]}),Ad=(e,t)=>{let n=hd(e);return{name:n.name,fn:n.fn,options:[e,t]}},jd=(e,t)=>{let n=gd(e);return{name:n.name,fn:n.fn,options:[e,t]}},Md=(e,t)=>{let n=_d(e);return{name:n.name,fn:n.fn,options:[e,t]}},Nd=(e,t)=>{let n=Ed(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pd=`Arrow`,Fd=M.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,N.jsx)(ra.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,N.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Fd.displayName=Pd;var Id=Fd;function Ld(e){let[t,n]=M.useState(void 0);return Hi(()=>{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)}else n(void 0)},[e]),t}var Rd=`Popper`,[zd,Bd]=Bi(Rd),[Vd,Hd]=zd(Rd),Ud=e=>{let{__scopePopper:t,children:n}=e,[r,i]=M.useState(null);return(0,N.jsx)(Vd,{scope:t,anchor:r,onAnchorChange:i,children:n})};Ud.displayName=Rd;var Wd=`PopperAnchor`,Gd=M.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=Hd(Wd,n),o=M.useRef(null),s=nr(t,o),c=M.useRef(null);return M.useEffect(()=>{let e=c.current;c.current=r?.current||o.current,e!==c.current&&a.onAnchorChange(c.current)}),r?null:(0,N.jsx)(ra.div,{...i,ref:s})});Gd.displayName=Wd;var Kd=`PopperContent`,[qd,Jd]=zd(Kd),Yd=M.forwardRef((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=Hd(Kd,n),[_,v]=M.useState(null),y=nr(t,e=>v(e)),[b,x]=M.useState(null),S=Ld(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),ee=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},te=Array.isArray(l)?l:[l],E=te.length>0,ne={padding:ee,boundary:te.filter($d),altBoundary:E},{refs:re,floatingStyles:ie,placement:D,isPositioned:ae,middlewareData:oe}=Td({strategy:`fixed`,placement:T,whileElementsMounted:(...e)=>fd(...e,{animationFrame:p===`always`}),elements:{reference:g.anchor},middleware:[Dd({mainAxis:i+w,alignmentAxis:o}),c&&Od({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?kd():void 0,...ne}),c&&Ad({...ne}),jd({...ne,apply:({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`)}}),b&&Nd({element:b,padding:s}),ef({arrowWidth:C,arrowHeight:w}),f&&Md({strategy:`referenceHidden`,...ne})]}),[se,O]=tf(D),k=aa(m);Hi(()=>{ae&&k?.()},[ae,k]);let ce=oe.arrow?.x,le=oe.arrow?.y,ue=oe.arrow?.centerOffset!==0,[de,A]=M.useState();return Hi(()=>{_&&A(window.getComputedStyle(_).zIndex)},[_]),(0,N.jsx)(`div`,{ref:re.setFloating,"data-radix-popper-content-wrapper":``,style:{...ie,transform:ae?ie.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:de,"--radix-popper-transform-origin":[oe.transformOrigin?.x,oe.transformOrigin?.y].join(` `),...oe.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,N.jsx)(qd,{scope:n,placedSide:se,onArrowChange:x,arrowX:ce,arrowY:le,shouldHideArrow:ue,children:(0,N.jsx)(ra.div,{"data-side":se,"data-align":O,...h,ref:y,style:{...h.style,animation:ae?void 0:`none`}})})})});Yd.displayName=Kd;var Xd=`PopperArrow`,Zd={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Qd=M.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Jd(Xd,n),a=Zd[i.placedSide];return(0,N.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,N.jsx)(Id,{...r,ref:t,style:{...r.style,display:`block`}})})});Qd.displayName=Xd;function $d(e){return e!==null}var ef=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]=tf(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}}}});function tf(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var nf=Ud,rf=Gd,af=Yd,of=Qd,sf=`rovingFocusGroup.onEntryFocus`,cf={bubbles:!1,cancelable:!0},lf=`RovingFocusGroup`,[uf,df,ff]=El(lf),[pf,mf]=Bi(lf,[ff]),[hf,gf]=pf(lf),_f=M.forwardRef((e,t)=>(0,N.jsx)(uf.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,N.jsx)(uf.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,N.jsx)(vf,{...e,ref:t})})}));_f.displayName=lf;var vf=M.forwardRef((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=M.useRef(null),p=nr(t,f),m=Ol(a),[h,g]=qi({prop:o,defaultProp:s??null,onChange:c,caller:lf}),[_,v]=M.useState(!1),y=aa(l),b=df(n),x=M.useRef(!1),[S,C]=M.useState(0);return M.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(sf,y),()=>e.removeEventListener(sf,y)},[y]),(0,N.jsx)(hf,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:M.useCallback(e=>g(e),[g]),onItemShiftTab:M.useCallback(()=>v(!0),[]),onFocusableItemAdd:M.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:M.useCallback(()=>C(e=>e-1),[]),children:(0,N.jsx)(ra.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:H(e.onMouseDown,()=>{x.current=!0}),onFocus:H(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(sf,cf);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);wf([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:H(e.onBlur,()=>v(!1))})})}),yf=`RovingFocusGroupItem`,bf=M.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=Gi(),l=a||c,u=gf(yf,n),d=u.currentTabStopId===l,f=df(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u;return M.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),(0,N.jsx)(uf.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,N.jsx)(ra.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:H(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:H(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:H(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Cf(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(()=>wf(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})});bf.displayName=yf;var xf={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Sf(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function Cf(e,t,n){let r=Sf(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return xf[r]}function wf(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Tf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ef=_f,Df=bf,Of=[`Enter`,` `],kf=[`ArrowDown`,`PageUp`,`Home`],Af=[`ArrowUp`,`PageDown`,`End`],jf=[...kf,...Af],Mf={ltr:[...Of,`ArrowRight`],rtl:[...Of,`ArrowLeft`]},Nf={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},Pf=`Menu`,[Ff,If,Lf]=El(Pf),[Rf,zf]=Bi(Pf,[Lf,Bd,mf]),Bf=Bd(),Vf=mf(),[Hf,Uf]=Rf(Pf),[Wf,Gf]=Rf(Pf),Kf=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=Bf(t),[c,l]=M.useState(null),u=M.useRef(!1),d=aa(a),f=Ol(i);return M.useEffect(()=>{let e=()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>u.current=!1;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})}},[]),(0,N.jsx)(nf,{...s,children:(0,N.jsx)(Hf,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,N.jsx)(Wf,{scope:t,onClose:M.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})};Kf.displayName=Pf;var qf=`MenuAnchor`,Jf=M.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Bf(n);return(0,N.jsx)(rf,{...i,...r,ref:t})});Jf.displayName=qf;var Yf=`MenuPortal`,[Xf,Zf]=Rf(Yf,{forceMount:void 0}),Qf=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=Uf(Yf,t);return(0,N.jsx)(Xf,{scope:t,forceMount:n,children:(0,N.jsx)(za,{present:n||a.open,children:(0,N.jsx)(La,{asChild:!0,container:i,children:r})})})};Qf.displayName=Yf;var $f=`MenuContent`,[ep,tp]=Rf($f),np=M.forwardRef((e,t)=>{let n=Zf($f,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Uf($f,e.__scopeMenu),o=Gf($f,e.__scopeMenu);return(0,N.jsx)(Ff.Provider,{scope:e.__scopeMenu,children:(0,N.jsx)(za,{present:r||a.open,children:(0,N.jsx)(Ff.Slot,{scope:e.__scopeMenu,children:o.modal?(0,N.jsx)(rp,{...i,ref:t}):(0,N.jsx)(ip,{...i,ref:t})})})})}),rp=M.forwardRef((e,t)=>{let n=Uf($f,e.__scopeMenu),r=M.useRef(null),i=nr(t,r);return M.useEffect(()=>{let e=r.current;if(e)return cs(e)},[]),(0,N.jsx)(op,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:H(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),ip=M.forwardRef((e,t)=>{let n=Uf($f,e.__scopeMenu);return(0,N.jsx)(op,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ap=Zi(`MenuContent.ScrollLock`),op=M.forwardRef((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=Uf($f,n),_=Gf($f,n),v=Bf(n),y=Vf(n),b=If(n),[x,S]=M.useState(null),C=M.useRef(null),w=nr(t,C,g.onContentChange),T=M.useRef(0),ee=M.useRef(``),te=M.useRef(0),E=M.useRef(null),ne=M.useRef(`right`),re=M.useRef(0),ie=m?$o:M.Fragment,D=m?{as:ap,allowPinchZoom:!0}:void 0,ae=e=>{let t=ee.current+e,n=b().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=Wp(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){ee.current=t,window.clearTimeout(T.current),t!==``&&(T.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};M.useEffect(()=>()=>window.clearTimeout(T.current),[]),Wa();let oe=M.useCallback(e=>ne.current===E.current?.side&&Kp(e,E.current?.area),[]);return(0,N.jsx)(ep,{scope:n,searchRef:ee,onItemEnter:M.useCallback(e=>{oe(e)&&e.preventDefault()},[oe]),onItemLeave:M.useCallback(e=>{oe(e)||(C.current?.focus(),S(null))},[oe]),onTriggerLeave:M.useCallback(e=>{oe(e)&&e.preventDefault()},[oe]),pointerGraceTimerRef:te,onPointerGraceIntentChange:M.useCallback(e=>{E.current=e},[]),children:(0,N.jsx)(ie,{...D,children:(0,N.jsx)(wa,{asChild:!0,trapped:i,onMountAutoFocus:H(a,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,N.jsx)(pa,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,N.jsx)(Ef,{asChild:!0,...y,dir:_.dir,orientation:`vertical`,loop:r,currentTabStopId:x,onCurrentTabStopIdChange:S,onEntryFocus:H(c,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,N.jsx)(af,{role:`menu`,"aria-orientation":`vertical`,"data-state":zp(g.open),"data-radix-menu-content":``,dir:_.dir,...v,...h,ref:w,style:{outline:`none`,...h.style},onKeyDown:H(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&&ae(e.key));let i=C.current;if(e.target!==i||!jf.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled).map(e=>e.ref.current);Af.includes(e.key)&&a.reverse(),Hp(a)}),onBlur:H(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),ee.current=``)}),onPointerMove:H(e.onPointerMove,qp(e=>{let t=e.target,n=re.current!==e.clientX;e.currentTarget.contains(t)&&n&&(ne.current=e.clientX>re.current?`right`:`left`,re.current=e.clientX)}))})})})})})})});np.displayName=$f;var sp=`MenuGroup`,cp=M.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,N.jsx)(ra.div,{role:`group`,...r,ref:t})});cp.displayName=sp;var lp=`MenuLabel`,up=M.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,N.jsx)(ra.div,{...r,ref:t})});up.displayName=lp;var dp=`MenuItem`,fp=`menu.itemSelect`,pp=M.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=M.useRef(null),o=Gf(dp,e.__scopeMenu),s=tp(dp,e.__scopeMenu),c=nr(t,a),l=M.useRef(!1),u=()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(fp,{bubbles:!0,cancelable:!0});e.addEventListener(fp,e=>r?.(e),{once:!0}),ia(e,t),t.defaultPrevented?l.current=!1:o.onClose()}};return(0,N.jsx)(mp,{...i,ref:c,disabled:n,onClick:H(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:H(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:H(e.onKeyDown,e=>{let t=s.searchRef.current!==``;n||t&&e.key===` `||Of.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});pp.displayName=dp;var mp=M.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=tp(dp,n),s=Vf(n),c=M.useRef(null),l=nr(t,c),[u,d]=M.useState(!1),[f,p]=M.useState(``);return M.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,N.jsx)(Ff.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,N.jsx)(Df,{asChild:!0,...s,focusable:!r,children:(0,N.jsx)(ra.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:H(e.onPointerMove,qp(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:H(e.onPointerLeave,qp(e=>o.onItemLeave(e))),onFocus:H(e.onFocus,()=>d(!0)),onBlur:H(e.onBlur,()=>d(!1))})})})}),hp=`MenuCheckboxItem`,gp=M.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,N.jsx)(wp,{scope:e.__scopeMenu,checked:n,children:(0,N.jsx)(pp,{role:`menuitemcheckbox`,"aria-checked":Bp(n)?`mixed`:n,...i,ref:t,"data-state":Vp(n),onSelect:H(i.onSelect,()=>r?.(Bp(n)?!0:!n),{checkForDefaultPrevented:!1})})})});gp.displayName=hp;var _p=`MenuRadioGroup`,[vp,yp]=Rf(_p,{value:void 0,onValueChange:()=>{}}),bp=M.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=aa(r);return(0,N.jsx)(vp,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,N.jsx)(cp,{...i,ref:t})})});bp.displayName=_p;var xp=`MenuRadioItem`,Sp=M.forwardRef((e,t)=>{let{value:n,...r}=e,i=yp(xp,e.__scopeMenu),a=n===i.value;return(0,N.jsx)(wp,{scope:e.__scopeMenu,checked:a,children:(0,N.jsx)(pp,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":Vp(a),onSelect:H(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Sp.displayName=xp;var Cp=`MenuItemIndicator`,[wp,Tp]=Rf(Cp,{checked:!1}),Ep=M.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=Tp(Cp,n);return(0,N.jsx)(za,{present:r||Bp(a.checked)||a.checked===!0,children:(0,N.jsx)(ra.span,{...i,ref:t,"data-state":Vp(a.checked)})})});Ep.displayName=Cp;var Dp=`MenuSeparator`,Op=M.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,N.jsx)(ra.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});Op.displayName=Dp;var kp=`MenuArrow`,Ap=M.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Bf(n);return(0,N.jsx)(of,{...i,...r,ref:t})});Ap.displayName=kp;var jp=`MenuSub`,[Mp,Np]=Rf(jp),Pp=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=Uf(jp,t),o=Bf(t),[s,c]=M.useState(null),[l,u]=M.useState(null),d=aa(i);return M.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,N.jsx)(nf,{...o,children:(0,N.jsx)(Hf,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,N.jsx)(Mp,{scope:t,contentId:Gi(),triggerId:Gi(),trigger:s,onTriggerChange:c,children:n})})})};Pp.displayName=jp;var Fp=`MenuSubTrigger`,Ip=M.forwardRef((e,t)=>{let n=Uf(Fp,e.__scopeMenu),r=Gf(Fp,e.__scopeMenu),i=Np(Fp,e.__scopeMenu),a=tp(Fp,e.__scopeMenu),o=M.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=M.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return M.useEffect(()=>u,[u]),M.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]),(0,N.jsx)(Jf,{asChild:!0,...l,children:(0,N.jsx)(mp,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":i.contentId,"data-state":zp(n.open),...e,ref:tr(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:H(e.onPointerMove,qp(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:H(e.onPointerLeave,qp(e=>{u();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:H(e.onKeyDown,t=>{let i=a.searchRef.current!==``;e.disabled||i&&t.key===` `||Mf[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});Ip.displayName=Fp;var Lp=`MenuSubContent`,Rp=M.forwardRef((e,t)=>{let n=Zf($f,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Uf($f,e.__scopeMenu),o=Gf($f,e.__scopeMenu),s=Np(Lp,e.__scopeMenu),c=M.useRef(null),l=nr(t,c);return(0,N.jsx)(Ff.Provider,{scope:e.__scopeMenu,children:(0,N.jsx)(za,{present:r||a.open,children:(0,N.jsx)(Ff.Slot,{scope:e.__scopeMenu,children:(0,N.jsx)(op,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:l,align:`start`,side:o.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{o.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:H(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:H(e.onEscapeKeyDown,e=>{o.onClose(),e.preventDefault()}),onKeyDown:H(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=Nf[o.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});Rp.displayName=Lp;function zp(e){return e?`open`:`closed`}function Bp(e){return e===`indeterminate`}function Vp(e){return Bp(e)?`indeterminate`:e?`checked`:`unchecked`}function Hp(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Up(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Wp(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=Up(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}function Gp(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}function Kp(e,t){return t?Gp({x:e.clientX,y:e.clientY},t):!1}function qp(e){return t=>t.pointerType===`mouse`?e(t):void 0}var Jp=Kf,Yp=Jf,Xp=Qf,Zp=np,Qp=cp,$p=up,em=pp,tm=gp,nm=bp,rm=Sp,im=Ep,am=Op,om=Ap,sm=Ip,cm=Rp,lm=`DropdownMenu`,[um,dm]=Bi(lm,[zf]),fm=zf(),[pm,mm]=um(lm),hm=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=fm(t),l=M.useRef(null),[u,d]=qi({prop:i,defaultProp:a??!1,onChange:o,caller:lm});return(0,N.jsx)(pm,{scope:t,triggerId:Gi(),triggerRef:l,contentId:Gi(),open:u,onOpenChange:d,onOpenToggle:M.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,N.jsx)(Jp,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};hm.displayName=lm;var gm=`DropdownMenuTrigger`,_m=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=mm(gm,n),o=fm(n);return(0,N.jsx)(Yp,{asChild:!0,...o,children:(0,N.jsx)(ra.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:tr(t,a.triggerRef),onPointerDown:H(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:H(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});_m.displayName=gm;var vm=`DropdownMenuPortal`,ym=e=>{let{__scopeDropdownMenu:t,...n}=e,r=fm(t);return(0,N.jsx)(Xp,{...r,...n})};ym.displayName=vm;var bm=`DropdownMenuContent`,xm=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=mm(bm,n),a=fm(n),o=M.useRef(!1);return(0,N.jsx)(Zp,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:H(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:H(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)`}})});xm.displayName=bm;var Sm=`DropdownMenuGroup`,Cm=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=fm(n);return(0,N.jsx)(Qp,{...i,...r,ref:t})});Cm.displayName=Sm;var wm=`DropdownMenuLabel`,Tm=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=fm(n);return(0,N.jsx)($p,{...i,...r,ref:t})});Tm.displayName=wm;var Em=`DropdownMenuItem`,Dm=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=fm(n);return(0,N.jsx)(em,{...i,...r,ref:t})});Dm.displayName=Em;var Om=`DropdownMenuCheckboxItem`,km=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=fm(n);return(0,N.jsx)(tm,{...i,...r,ref:t})});km.displayName=Om;var Am=`DropdownMenuRadioGroup`,jm=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=fm(n);return(0,N.jsx)(nm,{...i,...r,ref:t})});jm.displayName=Am;var Mm=`DropdownMenuRadioItem`,Nm=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=fm(n);return(0,N.jsx)(rm,{...i,...r,ref:t})});Nm.displayName=Mm;var Pm=`DropdownMenuItemIndicator`,Fm=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=fm(n);return(0,N.jsx)(im,{...i,...r,ref:t})});Fm.displayName=Pm;var Im=`DropdownMenuSeparator`,Lm=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=fm(n);return(0,N.jsx)(am,{...i,...r,ref:t})});Lm.displayName=Im;var Rm=`DropdownMenuArrow`,zm=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=fm(n);return(0,N.jsx)(om,{...i,...r,ref:t})});zm.displayName=Rm;var Bm=`DropdownMenuSubTrigger`,Vm=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=fm(n);return(0,N.jsx)(sm,{...i,...r,ref:t})});Vm.displayName=Bm;var Hm=`DropdownMenuSubContent`,Um=M.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=fm(n);return(0,N.jsx)(cm,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Um.displayName=Hm;var Wm=hm,Gm=_m,Km=ym,qm=xm,Jm=Tm,Ym=Dm,Xm=Lm,Zm=Wm,Qm=Gm,$m=M.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,N.jsx)(Km,{children:(0,N.jsx)(qm,{ref:r,sideOffset:t,className:B(`z-50 min-w-[8rem] overflow-hidden rounded-lg border border-[var(--glass-border)] bg-card backdrop-blur-md p-1 text-foreground shadow-[var(--glass-shadow-lg)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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`,e),...n})}));$m.displayName=qm.displayName;var eh=M.forwardRef(({className:e,inset:t,...n},r)=>(0,N.jsx)(Ym,{ref:r,className:B(`relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,t&&`ps-8`,e),...n}));eh.displayName=Ym.displayName;var th=M.forwardRef(({className:e,inset:t,...n},r)=>(0,N.jsx)(Jm,{ref:r,className:B(`px-2 py-1.5 text-sm font-semibold text-primary`,t&&`ps-8`,e),...n}));th.displayName=Jm.displayName;var nh=M.forwardRef(({className:e,...t},n)=>(0,N.jsx)(Xm,{ref:n,className:B(`-mx-1 my-1 h-px bg-[var(--glass-border)]`,e),...t}));nh.displayName=Xm.displayName;function rh(e){return Array.isArray(e.items)}function ih({group:e,pathname:t,search:n}){return(0,N.jsxs)(vc,{children:[e.title&&(0,N.jsx)(yc,{title:e.title,children:e.title}),(0,N.jsx)(bc,{children:e.items.map(e=>(0,N.jsx)(oh,{item:e,pathname:t,search:n},ah(e)))})]})}function ah(e){return rh(e)?`g:${e.title}`:`l:${e.url}`}function oh({item:e,pathname:t,search:n}){let{state:r,isMobile:i}=uc();return rh(e)?r===`collapsed`&&!i?(0,N.jsx)(dh,{item:e,pathname:t,search:n}):(0,N.jsx)(ch,{item:e,pathname:t,search:n}):(0,N.jsx)(sh,{item:e,pathname:t,search:n})}function sh({item:e,pathname:t,search:n}){let{setOpenMobile:r}=uc();return(0,N.jsx)(xc,{children:(0,N.jsx)(Cc,{asChild:!0,isActive:ph(e,t,n),children:(0,N.jsxs)(`a`,{href:e.url,title:e.title,"data-tour":uh(e.url),onClick:()=>r(!1),...e.external?{target:`_blank`,rel:`noreferrer`}:null,children:[e.icon&&(0,N.jsx)(e.icon,{"aria-hidden":!0}),(0,N.jsx)(`span`,{"data-sidebar-label":!0,className:`flex-1 truncate`,children:e.title}),e.marker&&(0,N.jsx)(e.marker,{"aria-hidden":!0,"data-sidebar-label":!0,className:`size-3.5 text-muted-foreground`}),e.badge&&(0,N.jsx)(fh,{sidebarLabel:!0,children:e.badge})]})})})}function ch({item:e,pathname:t,search:n}){let r=mh(e,t,n);return(0,N.jsx)(Cl,{defaultOpen:r,className:`group/collapsible`,asChild:!0,children:(0,N.jsxs)(xc,{children:[(0,N.jsx)(wl,{asChild:!0,children:(0,N.jsxs)(Cc,{isActive:r,"data-tour":uh(e.items[0]?.url),children:[e.icon&&(0,N.jsx)(e.icon,{"aria-hidden":!0}),(0,N.jsx)(`span`,{"data-sidebar-label":!0,className:`flex-1 truncate`,title:e.title,children:e.title}),e.marker&&(0,N.jsx)(e.marker,{"aria-hidden":!0,"data-sidebar-label":!0,className:`size-3.5 text-muted-foreground`}),e.badge&&(0,N.jsx)(fh,{sidebarLabel:!0,children:e.badge}),(0,N.jsx)(kt,{"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,N.jsx)(Tl,{children:(0,N.jsx)(wc,{children:e.items.map(e=>(0,N.jsx)(lh,{link:e,pathname:t,search:n},e.url))})})]})})}function lh({link:e,pathname:t,search:n}){let{setOpenMobile:r}=uc();return(0,N.jsx)(Tc,{children:(0,N.jsx)(Ec,{asChild:!0,isActive:ph(e,t,n),children:(0,N.jsxs)(`a`,{href:e.url,title:e.title,"data-tour":uh(e.url),onClick:()=>r(!1),children:[e.icon&&(0,N.jsx)(e.icon,{"aria-hidden":!0}),(0,N.jsx)(`span`,{children:e.title}),e.badge&&(0,N.jsx)(fh,{children:e.badge})]})})})}function uh(e){if(e){if(e===`/admin`)return`nav-home`;if(e.startsWith(`/admin/c/products`))return`nav-products`;if(e===`/admin/media`)return`nav-media`;if(e===`/admin/settings`)return`nav-settings`}}function dh({item:e,pathname:t,search:n}){let r=mh(e,t,n),{direction:i}=G();return(0,N.jsx)(xc,{children:(0,N.jsxs)(Zm,{children:[(0,N.jsx)(Qm,{asChild:!0,children:(0,N.jsxs)(Cc,{isActive:r,children:[e.icon&&(0,N.jsx)(e.icon,{"aria-hidden":!0}),(0,N.jsx)(`span`,{"data-sidebar-label":!0,title:e.title,children:e.title}),(0,N.jsx)(kt,{"aria-hidden":!0,"data-sidebar-label":!0,className:`ms-auto`})]})}),(0,N.jsxs)($m,{side:i===`rtl`?`left`:`right`,align:`start`,sideOffset:4,children:[(0,N.jsx)(th,{children:e.title}),(0,N.jsx)(nh,{}),e.items.map(e=>(0,N.jsx)(eh,{asChild:!0,children:(0,N.jsx)(`a`,{href:e.url,className:B(ph(e,t,n)&&`font-medium`),children:e.title})},e.url))]})]})})}function fh({children:e,sidebarLabel:t=!1}){return(0,N.jsx)(`span`,{"data-sidebar-label":t||void 0,className:`ms-auto rounded-full bg-accent px-2 py-0.5 text-xs text-accent-foreground`,children:e})}function ph(e,t,n){let r=new URL(e.url,`http://x`);if(r.pathname!==t)return!1;if(!r.search)return!0;let i=new URLSearchParams(r.search),a=new URLSearchParams(n);for(let[e,t]of i.entries())if(a.get(e)!==t)return!1;return!0}function mh(e,t,n){return e.items.some(e=>ph(e,t,n))?!0:e.items.some(e=>new URL(e.url,`http://x`).pathname===t)}function hh({login:e,role:t}){let{isMobile:n}=uc(),{language:r}=G(),i=(e??`?`).charAt(0).toUpperCase(),a=e?`https://github.com/${encodeURIComponent(e)}.png?size=80`:null;return(0,N.jsx)(bc,{children:(0,N.jsx)(xc,{children:(0,N.jsxs)(Zm,{children:[(0,N.jsx)(Qm,{asChild:!0,children:(0,N.jsxs)(Cc,{size:`lg`,className:`data-[state=open]:bg-accent/40`,children:[(0,N.jsx)(gh,{avatarUrl:a,initial:i}),(0,N.jsxs)(`div`,{"data-sidebar-label":!0,className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,N.jsx)(`span`,{className:`truncate font-semibold`,children:e??`—`}),(0,N.jsx)(`span`,{className:`truncate text-xs text-muted-foreground`,children:t??K(r,`common.signedIn`)})]}),(0,N.jsx)(At,{"data-sidebar-label":!0,className:`ms-auto size-4 text-muted-foreground`,"aria-hidden":!0})]})}),(0,N.jsxs)($m,{align:`end`,side:n?`bottom`:`right`,sideOffset:6,className:`w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg`,children:[(0,N.jsxs)(th,{className:`flex items-center gap-3 py-2`,children:[(0,N.jsx)(gh,{avatarUrl:a,initial:i,large:!0}),(0,N.jsxs)(`div`,{className:`flex min-w-0 flex-col`,children:[(0,N.jsx)(`span`,{className:`truncate text-sm font-medium text-foreground`,children:e??`—`}),(0,N.jsx)(`span`,{className:`label-eyebrow truncate`,children:t??K(r,`common.signedIn`)})]})]}),(0,N.jsx)(nh,{}),(0,N.jsx)(eh,{asChild:!0,children:(0,N.jsxs)(`a`,{href:`/admin/preferences`,className:`flex items-center gap-2`,children:[(0,N.jsx)(gn,{className:`size-4`,"aria-hidden":!0}),K(r,`preferences.page.open`)]})}),(0,N.jsx)(nh,{}),(0,N.jsx)(eh,{asChild:!0,className:`text-destructive focus:text-destructive focus:bg-destructive/10`,children:(0,N.jsxs)(`button`,{type:`button`,onClick:_h,className:`flex w-full cursor-pointer items-center gap-2`,children:[(0,N.jsx)(tn,{className:`size-4`,"aria-hidden":!0}),K(r,`common.signOut`)]})})]})]})})})}function gh({avatarUrl:e,initial:t,large:n=!1}){let r=n?`size-9`:`size-8`,i=n?`text-sm`:`text-xs`;return(0,N.jsx)(`span`,{className:B(`shrink-0 inline-flex items-center justify-center rounded-lg`,`bg-primary/15 text-foreground/80 ring-1 ring-border`,r),"aria-hidden":!0,children:e?(0,N.jsx)(`img`,{src:e,alt:``,className:`size-full rounded-lg object-cover`,decoding:`async`}):(0,N.jsx)(`span`,{className:B(`font-medium`,i),children:t})})}function _h(){let e=document.createElement(`form`);e.method=`POST`,e.action=`/admin/logout`,document.body.appendChild(e),e.submit()}function vh({brand:e,groups:t,pathname:n,search:r,user:i}){let{variant:a}=Gn(),{direction:o}=G();return(0,N.jsxs)(dc,{side:o===`rtl`?`right`:`left`,variant:a===`floating`?`sidebar`:a,children:[(0,N.jsx)(mc,{children:(0,N.jsxs)(`div`,{className:`sidebar-chrome-row`,children:[(0,N.jsx)(ul,{brand:e}),(0,N.jsx)(fc,{})]})}),(0,N.jsx)(_c,{}),(0,N.jsx)(hc,{children:t.map((e,t)=>(0,N.jsx)(ih,{group:e,pathname:n,search:r},e.title??`g-${t}`))}),(0,N.jsx)(_c,{}),(0,N.jsx)(gc,{children:(0,N.jsx)(hh,{login:i.login,role:i.role})})]})}function yh({login:e,role:t}){let{language:n}=G(),r=(e??`?`).charAt(0).toUpperCase(),i=e?`https://github.com/${encodeURIComponent(e)}.png?size=80`:null;return(0,N.jsxs)(Zm,{children:[(0,N.jsx)(Qm,{"aria-label":`Account menu`,className:B(`relative inline-flex size-8 items-center justify-center rounded-full`,`outline-hidden ring-1 ring-border`,`hover:ring-primary/40 transition-all`,`data-[state=open]:ring-primary`),children:(0,N.jsx)(bh,{avatarUrl:i,initial:r})}),(0,N.jsxs)($m,{align:`end`,sideOffset:6,className:`w-56`,children:[(0,N.jsxs)(th,{className:`flex items-center gap-3 py-2`,children:[(0,N.jsx)(bh,{avatarUrl:i,initial:r,large:!0}),(0,N.jsxs)(`div`,{className:`flex min-w-0 flex-col`,children:[(0,N.jsx)(`span`,{className:`truncate text-sm font-medium text-foreground`,children:e??`—`}),(0,N.jsx)(`span`,{className:`label-eyebrow truncate`,children:t??K(n,`common.signedIn`)})]})]}),(0,N.jsx)(nh,{}),(0,N.jsx)(eh,{asChild:!0,children:(0,N.jsxs)(`a`,{href:`/admin/preferences`,className:`flex items-center gap-2`,children:[(0,N.jsx)(gn,{className:`size-4`,"aria-hidden":!0}),K(n,`preferences.page.open`)]})}),(0,N.jsx)(nh,{}),(0,N.jsx)(eh,{asChild:!0,className:`text-destructive focus:text-destructive focus:bg-destructive/10`,children:(0,N.jsxs)(`button`,{type:`button`,onClick:xh,className:`flex w-full cursor-pointer items-center gap-2`,children:[(0,N.jsx)(tn,{className:`size-4`,"aria-hidden":!0}),K(n,`common.signOut`)]})})]})]})}function bh({avatarUrl:e,initial:t,large:n=!1}){let r=n?`size-9`:`size-8`,i=n?`text-sm`:`text-xs`;return(0,N.jsx)(`span`,{className:B(`shrink-0 inline-flex items-center justify-center rounded-full overflow-hidden`,`bg-primary/15 text-foreground/80`,r),"aria-hidden":!0,children:e?(0,N.jsx)(`img`,{src:e,alt:``,className:`size-full object-cover`,decoding:`async`}):(0,N.jsx)(`span`,{className:B(`font-medium`,i),children:t})})}function xh(){let e=document.createElement(`form`);e.method=`POST`,e.action=`/admin/logout`,document.body.appendChild(e),e.submit()}function Sh(){let{language:e,setLanguage:t}=G(),n=Bc.find(t=>t.value===e)??Bc[0];return(0,N.jsxs)(Zm,{children:[(0,N.jsx)(Qm,{asChild:!0,children:(0,N.jsxs)(V,{type:`button`,variant:`ghost`,size:`sm`,className:`h-8 gap-2 rounded-full border border-border/60 bg-background/30 px-2.5`,"aria-label":K(e,`preferences.language`),children:[(0,N.jsx)(Yt,{className:`size-4 text-primary`,"aria-hidden":!0}),(0,N.jsx)(`span`,{className:`hidden text-xs font-medium sm:inline`,children:n.nativeLabel})]})}),(0,N.jsxs)($m,{align:`end`,className:`max-h-[min(28rem,80vh)] w-52 overflow-y-auto`,children:[(0,N.jsx)(th,{className:`label-eyebrow opacity-70`,children:K(e,`preferences.language`)}),Bc.map(n=>(0,N.jsxs)(eh,{onSelect:()=>t(n.value),className:`justify-between`,children:[(0,N.jsx)(`span`,{children:n.nativeLabel}),(0,N.jsx)(Dt,{"aria-hidden":!0,className:B(`size-4 text-primary`,n.value===e?`opacity-100`:`opacity-0`)})]},n.value))]})]})}function Ch(){let{language:e,theme:t,setTheme:n}=G(),r=wh(e).find(e=>e.value===t),i=r?.icon??nn;return(0,N.jsxs)(Zm,{children:[(0,N.jsx)(Qm,{asChild:!0,children:(0,N.jsxs)(V,{type:`button`,variant:`ghost`,size:`sm`,className:`h-8 gap-2 rounded-full border border-border/60 bg-background/30 px-2.5`,"aria-label":K(e,`preferences.appearance`),children:[(0,N.jsx)(i,{className:`size-4 text-primary`,"aria-hidden":!0}),(0,N.jsx)(`span`,{className:`hidden text-xs font-medium sm:inline`,children:r?.label??K(e,`preferences.system`)})]})}),(0,N.jsxs)($m,{align:`end`,className:`w-44`,children:[(0,N.jsx)(th,{className:`label-eyebrow opacity-70`,children:K(e,`preferences.appearance`)}),wh(e).map(e=>{let r=e.icon;return(0,N.jsxs)(eh,{onSelect:()=>n(e.value),className:`justify-between`,children:[(0,N.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,N.jsx)(r,{className:`size-4`,"aria-hidden":!0}),e.label]}),(0,N.jsx)(Dt,{"aria-hidden":!0,className:B(`size-4 text-primary`,e.value===t?`opacity-100`:`opacity-0`)})]},e.value)})]})]})}function wh(e){return[{value:`light`,label:K(e,`preferences.light`),icon:yn},{value:`dark`,label:K(e,`preferences.dark`),icon:rn},{value:`system`,label:K(e,`preferences.system`),icon:nn}]}function Th({fixed:e=!1,className:t,children:n,user:r,site:i,publicUrl:a,onOpenGuide:o}){let{language:s}=G(),[c,l]=M.useState(!1);return M.useEffect(()=>{if(!e)return;let t=()=>l(window.scrollY>10);return t(),window.addEventListener(`scroll`,t,{passive:!0}),()=>window.removeEventListener(`scroll`,t)},[e]),(0,N.jsxs)(`header`,{"data-slot":`header`,"data-scrolled":c||void 0,className:B(`admin-statusbar z-20 flex h-14 shrink-0 items-center gap-3 px-4`,e?`sticky top-0 w-[inherit] transition-shadow`:`border-b border-border/40`,c&&`shadow-sm`,t),children:[i?(0,N.jsxs)(`div`,{className:`admin-site-status`,"aria-label":`Current admin site`,children:[(0,N.jsx)(`span`,{children:i.title}),i.subtitle?(0,N.jsx)(`small`,{children:i.subtitle}):null]}):null,a?(0,N.jsx)(V,{asChild:!0,variant:`secondary`,size:`sm`,className:`shrink-0`,children:(0,N.jsxs)(`a`,{href:a,target:`_blank`,rel:`noreferrer`,title:K(s,`common.viewSite`),children:[(0,N.jsx)(zt,{className:`size-3.5`,"aria-hidden":!0}),(0,N.jsx)(`span`,{className:`hidden sm:inline`,children:K(s,`common.viewSite`)})]})}):null,n,r?(0,N.jsxs)(`div`,{className:B(`flex items-center gap-2`,n?``:`ms-auto`),children:[o?(0,N.jsxs)(V,{type:`button`,variant:`ghost`,size:`sm`,onClick:o,"data-tour":`guide-button`,title:K(s,`guide.open`),"aria-label":K(s,`guide.open`),children:[(0,N.jsx)(Mt,{className:`size-4`,"aria-hidden":!0}),(0,N.jsx)(`span`,{className:`hidden sm:inline`,children:K(s,`guide.open`)})]}):null,(0,N.jsx)(Sh,{}),(0,N.jsx)(Ch,{}),(0,N.jsx)(yh,{login:r.login,role:r.role})]}):null]})}var Eh=`content`;function Dh({className:e}){return(0,N.jsx)(`a`,{href:`#${Eh}`,className:B(`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:`Skip to main content`})}function Oh({fixed:e=!1,fluid:t=!1,className:n,children:r}){return(0,N.jsx)(`div`,{id:Eh,"data-layout":e?`fixed`:`auto`,className:B(`@container/content`,`w-full px-4 py-6 sm:px-6`,e&&`flex grow flex-col overflow-hidden`,!t&&`mx-auto max-w-[1440px]`,`flex-1`,n),children:r})}function kh(e,t){switch(t){case`draft`:return K(e,`status.draft`);case`review`:return K(e,`status.review`);case`published`:return K(e,`status.published`);case`archived`:return K(e,`status.archived`)}}var Ah={products:{en:`Products`,"zh-TW":`商品`,"zh-CN":`商品`},"product-skus":{en:`Product SKUs`,"zh-TW":`商品規格`,"zh-CN":`商品规格`},pages:{en:`Pages`,"zh-TW":`頁面`,"zh-CN":`页面`},orders:{en:`Orders`,"zh-TW":`訂單`,"zh-CN":`订单`},order_items:{en:`Order line items`,"zh-TW":`訂單明細`,"zh-CN":`订单明细`},inventory_snapshots:{en:`Inventory snapshots`,"zh-TW":`庫存快照`,"zh-CN":`库存快照`}},jh={products:{en:`Manage product records, publishing state, and localized product copy.`,"zh-TW":`管理商品資料、發布狀態與多語商品內容。`,"zh-CN":`管理商品资料、发布状态与多语商品内容。`},"product-skus":{en:`Manage sellable variants, prices, inventory mode, and product options.`,"zh-TW":`管理可販售規格、價格、庫存模式與商品選項。`,"zh-CN":`管理可销售规格、价格、库存模式与商品选项。`},pages:{en:`Manage storefront pages, layout sections, and localized page copy.`,"zh-TW":`管理前台頁面、首頁區塊與多語文案。`,"zh-CN":`管理前台页面、首页区块与多语文案。`},orders:{en:`Review customer orders and fulfillment state.`,"zh-TW":`查看客戶訂單與履約狀態。`,"zh-CN":`查看客户订单与履约状态。`},order_items:{en:`Review purchased items captured at checkout time.`,"zh-TW":`查看結帳當下保存的購買項目明細。`,"zh-CN":`查看结账当下保存的购买项目明细。`},inventory_snapshots:{en:`Review inventory snapshots synced from the inventory actor.`,"zh-TW":`查看由庫存 actor 同步的庫存快照。`,"zh-CN":`查看由库存 actor 同步的库存快照。`}};function Mh(e,t){return Ah[e.name]?.[t]??e.title}function Nh(e,t){return e?jh[e.name]?.[t]??e.description:null}var Ph=`mantle.admin.guide.closed`,Fh=[{key:`products`,selector:`[data-tour="nav-products"]`},{key:`filters`,selector:`[data-tour="status-filter"]`,href:`/admin/c/products`},{key:`actions`,selector:`[data-tour="entry-actions"]`,href:`/admin/c/products`},{key:`reopen`,selector:`[data-tour="guide-button"]`}],Ih={products:{title:`guide.products.title`,body:`guide.products.body`},filters:{title:`guide.filters.title`,body:`guide.filters.body`},actions:{title:`guide.actions.title`,body:`guide.actions.body`},reopen:{title:`guide.reopen.title`,body:`guide.reopen.body`}};function Lh({language:e,onClose:t}){let[n,r]=M.useState(0),{location:i,navigate:a}=Rc(),o=Fh[n]??Fh[0],s=zh(o),c=M.useMemo(()=>Bh(s),[s]),l=n===Fh.length-1;return M.useEffect(()=>{!(`href`in o)||!o.href||`${i.pathname}${i.search}`!==o.href&&a(o.href)},[i.pathname,i.search,a,o]),(0,N.jsxs)(`div`,{className:`admin-guide-overlay`,role:`dialog`,"aria-modal":`false`,"aria-labelledby":`admin-guide-title`,children:[s?(0,N.jsx)(`div`,{className:`admin-guide-highlight`,style:{top:s.top-8,left:s.left-8,width:s.width+16,height:s.height+16}}):null,(0,N.jsxs)(`section`,{className:`admin-guide-popover`,style:c,children:[(0,N.jsxs)(`div`,{className:`admin-guide-progress`,children:[(0,N.jsx)(`span`,{children:n+1}),(0,N.jsx)(`small`,{children:Fh.length})]}),(0,N.jsxs)(`div`,{className:`admin-guide-copy`,children:[(0,N.jsx)(`p`,{className:`label-eyebrow`,children:`AotterMantle`}),(0,N.jsx)(`h2`,{id:`admin-guide-title`,children:K(e,Ih[o.key].title)}),(0,N.jsx)(`p`,{children:K(e,Ih[o.key].body)})]}),(0,N.jsxs)(`div`,{className:`admin-guide-controls`,children:[(0,N.jsx)(`button`,{type:`button`,className:`guide-icon-button`,onClick:()=>r(e=>Math.max(0,e-1)),disabled:n===0,title:K(e,`guide.prev`),children:(0,N.jsx)(Ot,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsxs)(`button`,{type:`button`,className:`guide-primary-button`,onClick:()=>l?t():r(e=>Math.min(Fh.length-1,e+1)),children:[l?K(e,`guide.finish`):K(e,`guide.next`),l?null:(0,N.jsx)(kt,{className:`size-4`,"aria-hidden":!0})]}),(0,N.jsx)(`button`,{type:`button`,className:`guide-icon-button`,onClick:t,title:K(e,`guide.close`),children:(0,N.jsx)(Fn,{className:`size-4`,"aria-hidden":!0})})]})]})]})}function Rh(){let{language:e}=G(),[t,n]=M.useState(()=>Vh());return{language:e,open:t,showGuide:M.useCallback(()=>{try{localStorage.removeItem(Ph)}catch{}n(!0)},[]),closeGuide:M.useCallback(()=>{try{localStorage.setItem(Ph,`1`)}catch{}n(!1)},[])}}function zh(e){let[t,n]=M.useState(null);return M.useEffect(()=>{let t=0,r=()=>{cancelAnimationFrame(t),t=requestAnimationFrame(()=>{let t=document.querySelector(e.selector);if(!t){n(null);return}t.scrollIntoView({block:`nearest`,inline:`nearest`});let r=t.getBoundingClientRect();n({top:r.top,left:r.left,width:r.width,height:r.height})})};return r(),window.addEventListener(`resize`,r),window.addEventListener(`scroll`,r,!0),()=>{cancelAnimationFrame(t),window.removeEventListener(`resize`,r),window.removeEventListener(`scroll`,r,!0)}},[e]),t}function Bh(e){if(typeof window>`u`)return{};if(!e)return{top:`5rem`,left:`50%`,transform:`translateX(-50%)`};let t=Math.min(380,Math.max(280,window.innerWidth-32)),n=e.left+e.width+t+24<window.innerWidth,r=e.left-t-24>0,i=Math.min(window.innerHeight-220,Math.max(16,e.top));return n?{top:i,left:e.left+e.width+18}:r?{top:i,left:e.left-t-18}:{top:Math.min(window.innerHeight-220,e.top+e.height+18),left:`50%`,transform:`translateX(-50%)`}}function Vh(){if(typeof window>`u`)return!1;try{return localStorage.getItem(Ph)!==`1`}catch{return!0}}var Hh={title:`CMS`,subtitle:`admin`,href:`/admin`};function Uh({brand:e=Hh,fixed:t=!1,fluid:n=!1,children:r}){let{pathname:i,search:a}=zc(),{language:o}=G(),s=Rh(),c=P({queryKey:[`me`],queryFn:()=>Ac.get(`/me`),retry:!1}),l=P({queryKey:[`collections`],queryFn:async()=>(await Ac.get(`/collections`)).collections}),u=P({queryKey:[`site`],queryFn:()=>Ac.get(`/site`)}),d=M.useMemo(()=>({...e,title:u.data?.brand??e.title,subtitle:u.data?.canonicalLocale??e.subtitle}),[e,u.data]),f=M.useMemo(()=>Wh(l.data??[],o,c.data?.role??null),[l.data,o,c.data?.role]);return(0,N.jsx)(Wn,{children:(0,N.jsxs)(lc,{defaultOpen:qn()??!0,children:[(0,N.jsx)(Dh,{}),(0,N.jsx)(vh,{brand:d,groups:f,pathname:i,search:a,user:{login:c.data?.login??null,role:c.data?.role??null}}),(0,N.jsxs)(pc,{children:[(0,N.jsx)(Th,{fixed:!0,site:d,publicUrl:u.data?.publicUrl,onOpenGuide:s.showGuide,user:{login:c.data?.login??null,role:c.data?.role??null}}),(0,N.jsx)(Oh,{fixed:t,fluid:n,children:r})]}),(0,N.jsx)(cl,{}),s.open?(0,N.jsx)(Lh,{language:s.language,onClose:s.closeGuide}):null]})})}function Wh(e,t,n){let r=e.filter(e=>!e.parent);return[{items:[{title:K(t,`nav.home`),url:`/admin`,icon:Wt}]},{title:K(t,`nav.content`),items:r.map(e=>({title:Mh(e,t),icon:Vt,marker:e.hasTranslations?Ht:void 0,items:[{title:K(t,`collection.filter.all`),url:`/admin/c/${e.name}`},...Gh(e).map(n=>({title:kh(t,n),url:`/admin/c/${e.name}?status=${n}`}))]}))},{title:K(t,`nav.more`),items:[{title:K(t,`nav.media`),url:`/admin/media`,icon:qt},{title:K(t,`nav.approvals`),url:`/admin/approvals`,icon:Pt},{title:K(t,`nav.settings`),url:`/admin/settings`,icon:gn},...n===`owner`?[{title:K(t,`nav.staff`),url:`/admin/staff`,icon:Mn}]:[]]}]}function Gh(e){return e.lifecycle===`editorial`?Mc:Nc}function Kh(){return(0,N.jsx)(`div`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,N.jsxs)(`div`,{className:`glass-card w-full max-w-sm p-6`,children:[(0,N.jsx)(`div`,{className:`mb-4 h-4 w-24 animate-pulse rounded bg-muted`}),(0,N.jsxs)(`div`,{className:`space-y-2`,children:[(0,N.jsx)(`div`,{className:`h-3 w-full animate-pulse rounded bg-muted`}),(0,N.jsx)(`div`,{className:`h-3 w-2/3 animate-pulse rounded bg-muted`})]})]})})}function qh({error:e}){let{language:t}=G(),n=e instanceof Error?e.message:`Unknown error.`;return(0,N.jsx)(`div`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,N.jsxs)(`div`,{className:`glass-card animate-rise w-full max-w-sm p-8 text-center`,children:[(0,N.jsx)(`h1`,{className:`mb-2 text-xl`,children:K(t,`auth.error.title`)}),(0,N.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:n})]})})}function Jh({login:e}){let{language:t}=G();return(0,N.jsx)(`div`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,N.jsxs)(`div`,{className:`glass-card animate-rise w-full max-w-md p-8 text-center`,children:[(0,N.jsx)(`div`,{className:`mx-auto mb-3 inline-flex size-10 items-center justify-center rounded-full bg-destructive/10 text-destructive`,children:(0,N.jsx)(En,{className:`size-5`,"aria-hidden":!0})}),(0,N.jsx)(`h1`,{className:`mb-2 text-xl`,children:K(t,`auth.accessDenied.title`)}),e?(0,N.jsxs)(`p`,{className:`mb-1 text-sm font-medium text-foreground`,children:[`GitHub: `,e]}):null,(0,N.jsx)(`p`,{className:`mb-1 text-sm text-muted-foreground`,children:K(t,`auth.accessDenied.noStaff`)}),(0,N.jsx)(`p`,{className:`mb-6 text-sm text-muted-foreground`,children:K(t,`auth.accessDenied.askOwner`)}),(0,N.jsxs)(V,{variant:`outline`,className:`w-full`,onClick:ag,children:[(0,N.jsx)(tn,{className:`me-2 size-4`,"aria-hidden":!0}),K(t,`common.signOut`)]})]})})}var Yh=`w-full rounded border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring`,Xh=`first:mt-0 mt-4`,Zh=`first:mt-0 first:border-t-0 first:pt-0 mt-6 border-t border-border pt-4`;function Qh(){let{language:e}=G(),t=new URLSearchParams(window.location.search).get(`return`)??`/admin`,[n,r]=M.useState(null),[i,a]=M.useState(null);return M.useEffect(()=>{let e=!1;async function t(){try{let t=await fetch(`/api/auth/methods`,{credentials:`include`});if(!t.ok)throw Error(`HTTP ${t.status}`);let n=await t.json();if(e)return;r(n.methods??[])}catch(t){if(e)return;a(t instanceof Error?t.message:String(t))}}return t(),()=>{e=!0}},[]),(0,N.jsx)(`div`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,N.jsxs)(`div`,{className:`glass-card animate-rise w-full max-w-sm p-8`,children:[(0,N.jsx)(`p`,{className:`label-eyebrow mb-2`,children:K(e,`auth.signIn.eyebrow`)}),(0,N.jsx)(`h1`,{className:`mb-2 text-xl`,children:K(e,`auth.signIn.title`)}),i?(0,N.jsx)(`p`,{className:`mb-4 text-sm text-destructive`,children:K(e,`auth.signIn.methodsLoadFailed`)}):null,n===null&&!i?(0,N.jsx)(`div`,{className:`space-y-2`,children:(0,N.jsx)(`div`,{className:`h-9 w-full animate-pulse rounded bg-muted`})}):null,n&&n.length===0?(0,N.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:K(e,`auth.signIn.noMethods`)}):null,n&&n.length>0?(0,N.jsx)(`div`,{children:n.map(e=>(0,N.jsx)($h,{method:e,returnTo:t},e.kind===`social`?`social:${e.provider}`:e.kind))}):null]})})}function $h({method:e,returnTo:t}){switch(e.kind){case`social`:return(0,N.jsx)(tg,{provider:e.provider,returnTo:t});case`email-otp`:return(0,N.jsx)(ng,{returnTo:t});case`magic-link`:return(0,N.jsx)(rg,{returnTo:t});default:return(0,N.jsx)(ig,{kind:e.kind})}}var eg={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 tg({provider:e,returnTo:t}){let{language:n}=G(),r=eg[e]??e,i=async()=>{let n=await fetch(`/api/auth/sign-in/social`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({provider:e,callbackURL:t})});if(!n.ok)return;let r=await n.json();r.url&&(window.location.href=r.url)};return(0,N.jsx)(`div`,{className:Xh,children:(0,N.jsx)(V,{onClick:()=>void i(),className:`w-full`,children:K(n,`auth.signIn.method.social.button`,{provider:r})})})}function ng({returnTo:e}){let{language:t}=G(),[n,r]=M.useState(`email`),[i,a]=M.useState(``),[o,s]=M.useState(``),[c,l]=M.useState(!1),[u,d]=M.useState(null),f=async e=>{l(!0),d(null);try{await e()}finally{l(!1)}};return(0,N.jsxs)(`div`,{className:Zh,children:[(0,N.jsx)(`p`,{className:`mb-2 text-sm text-muted-foreground`,children:K(t,`auth.signIn.method.email-otp.body`)}),n===`email`?(0,N.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),i&&f(async()=>{if(!(await fetch(`/api/auth/email-otp/send-verification-otp`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:i,type:`sign-in`})})).ok){d(K(t,`auth.signIn.method.email-otp.sendFailed`));return}r(`otp`)})},className:`space-y-2`,children:[(0,N.jsx)(`label`,{htmlFor:`signin-email`,className:`sr-only`,children:K(t,`auth.signIn.method.email-otp.emailLabel`)}),(0,N.jsx)(`input`,{id:`signin-email`,type:`email`,value:i,onChange:e=>a(e.currentTarget.value),placeholder:K(t,`auth.signIn.method.email-otp.emailPlaceholder`),required:!0,autoComplete:`email`,className:Yh}),(0,N.jsx)(V,{type:`submit`,className:`w-full`,disabled:c||!i,children:K(t,`auth.signIn.method.email-otp.sendButton`)})]}):(0,N.jsxs)(`form`,{onSubmit:n=>{n.preventDefault(),o&&f(async()=>{if(!(await fetch(`/api/auth/sign-in/email-otp`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:i,otp:o})})).ok){d(K(t,`auth.signIn.method.email-otp.verifyFailed`));return}window.location.assign(e)})},className:`space-y-2`,children:[(0,N.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:K(t,`auth.signIn.method.email-otp.sentTo`,{email:i})}),(0,N.jsx)(`label`,{htmlFor:`signin-otp`,className:`sr-only`,children:K(t,`auth.signIn.method.email-otp.otpLabel`)}),(0,N.jsx)(`input`,{id:`signin-otp`,type:`text`,inputMode:`numeric`,autoComplete:`one-time-code`,value:o,onChange:e=>s(e.currentTarget.value),placeholder:K(t,`auth.signIn.method.email-otp.otpPlaceholder`),required:!0,className:Yh}),(0,N.jsx)(V,{type:`submit`,className:`w-full`,disabled:c||!o,children:K(t,`auth.signIn.method.email-otp.verifyButton`)}),(0,N.jsx)(`button`,{type:`button`,onClick:()=>r(`email`),className:`text-xs text-muted-foreground underline-offset-2 hover:underline`,children:K(t,`auth.signIn.method.email-otp.back`)})]}),u?(0,N.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:u}):null]})}function rg({returnTo:e}){let{language:t}=G(),[n,r]=M.useState(``),[i,a]=M.useState(!1),[o,s]=M.useState(!1),[c,l]=M.useState(null),u=async e=>{a(!0),l(null);try{await e()}finally{a(!1)}};return(0,N.jsxs)(`div`,{className:Zh,children:[(0,N.jsx)(`p`,{className:`mb-2 text-sm text-muted-foreground`,children:K(t,`auth.signIn.method.magic-link.body`)}),o?(0,N.jsxs)(`div`,{className:`space-y-2`,children:[(0,N.jsx)(`p`,{className:`text-sm text-foreground`,children:K(t,`auth.signIn.method.magic-link.sentTo`,{email:n})}),(0,N.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:K(t,`auth.signIn.method.magic-link.clickHint`)}),(0,N.jsx)(`button`,{type:`button`,onClick:()=>{s(!1),r(``)},className:`text-xs text-muted-foreground underline-offset-2 hover:underline`,children:K(t,`auth.signIn.method.magic-link.anotherEmail`)})]}):(0,N.jsxs)(`form`,{onSubmit:r=>{r.preventDefault(),n&&u(async()=>{if(!(await fetch(`/api/auth/sign-in/magic-link`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:n,callbackURL:e})})).ok){l(K(t,`auth.signIn.method.magic-link.sendFailed`));return}s(!0)})},className:`space-y-2`,children:[(0,N.jsx)(`label`,{htmlFor:`signin-mlink-email`,className:`sr-only`,children:K(t,`auth.signIn.method.magic-link.emailLabel`)}),(0,N.jsx)(`input`,{id:`signin-mlink-email`,type:`email`,value:n,onChange:e=>r(e.currentTarget.value),placeholder:K(t,`auth.signIn.method.magic-link.emailPlaceholder`),required:!0,autoComplete:`email`,className:Yh}),(0,N.jsx)(V,{type:`submit`,className:`w-full`,disabled:i||!n,children:K(t,`auth.signIn.method.magic-link.sendButton`)})]}),c?(0,N.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:c}):null]})}function ig({kind:e}){let{language:t}=G();return(0,N.jsx)(`p`,{className:`mt-4 text-xs text-muted-foreground`,children:K(t,`auth.signIn.unknownMethod`,{kind:e})})}function ag(){fetch(`/api/auth/sign-out`,{method:`POST`,credentials:`include`}).then(()=>{window.location.href=`/admin/sign-in`})}function og({eyebrow:e,title:t,description:n,actions:r}){return(0,N.jsxs)(`div`,{className:`mb-6 flex flex-wrap items-end justify-between gap-4`,children:[(0,N.jsxs)(`div`,{className:`min-w-0`,children:[e?(0,N.jsx)(`p`,{className:`label-eyebrow mb-1`,children:e}):null,(0,N.jsx)(`h1`,{className:`text-2xl`,children:t}),n?(0,N.jsx)(`div`,{className:`mt-1 max-w-3xl text-sm text-muted-foreground`,children:n}):null]}),r?(0,N.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:r}):null]})}function sg({className:e,children:t}){return(0,N.jsx)(`section`,{className:B(`glass-card p-5`,e),children:t})}function cg({icon:e=jt,title:t,description:n,action:r}){return(0,N.jsxs)(`div`,{className:`rounded-lg border border-dashed border-border p-8 text-center`,children:[(0,N.jsx)(`div`,{className:`mx-auto mb-3 inline-flex size-10 items-center justify-center rounded-full bg-accent text-accent-foreground`,children:(0,N.jsx)(e,{className:`size-5`,"aria-hidden":!0})}),(0,N.jsx)(`h2`,{className:`text-lg`,children:t}),n?(0,N.jsx)(`p`,{className:`mx-auto mt-1 max-w-md text-sm text-muted-foreground`,children:n}):null,r?(0,N.jsx)(`div`,{className:`mt-4`,children:r}):null]})}function lg({error:e}){let{language:t}=G(),n=e instanceof Oc&&e.status===401;if(M.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 null;let r=e instanceof Error?e.message:`Unknown error.`;return(0,N.jsxs)(`div`,{className:`rounded-lg border border-destructive/30 bg-destructive/5 p-4 text-sm text-destructive`,children:[K(t,`common.failedToLoad`),`: `,r]})}function ug(){let{language:e}=G(),t=P({queryKey:[`site`],queryFn:()=>Ac.get(`/site`)}),n=P({queryKey:[`collections`],queryFn:async()=>(await Ac.get(`/collections`)).collections}),r=(n.data??[]).filter(e=>!e.parent),i=t.data;return(0,N.jsxs)(`div`,{className:`space-y-6`,children:[(0,N.jsx)(og,{eyebrow:K(e,`console.eyebrow`),title:i?.brand??`AotterMantle`,description:i?K(e,`console.description`,{title:i.title}):K(e,`console.descriptionFallback`),actions:i?.publicUrl?(0,N.jsx)(V,{asChild:!0,variant:`outline`,children:(0,N.jsxs)(`a`,{href:i.publicUrl,target:`_blank`,rel:`noreferrer`,children:[(0,N.jsx)(Ht,{className:`size-4`,"aria-hidden":!0}),K(e,`common.viewSite`)]})}):null}),(0,N.jsx)(`div`,{className:`grid grid-cols-1 gap-4`,children:(0,N.jsxs)(sg,{className:`admin-dashboard-panel`,children:[(0,N.jsxs)(`div`,{className:`mb-4 flex items-start gap-3`,children:[(0,N.jsx)(`div`,{className:`rounded-xl bg-primary/15 p-2 text-primary`,children:(0,N.jsx)(cn,{className:`size-5`,"aria-hidden":!0})}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`h2`,{className:`text-lg`,children:K(e,`console.workspace.title`)}),(0,N.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:K(e,`console.workspace.body`)})]})]}),(0,N.jsxs)(`div`,{className:`grid grid-cols-1 gap-2 sm:grid-cols-3`,children:[(0,N.jsx)(dg,{href:`/admin/c/products`,icon:cn,label:K(e,`workspace.products`)}),(0,N.jsx)(dg,{href:`/admin/c/pages`,icon:Bt,label:K(e,`workspace.pages`)}),(0,N.jsx)(dg,{href:`/admin/media`,icon:qt,label:K(e,`workspace.media`)})]})]})}),(0,N.jsxs)(`section`,{children:[(0,N.jsx)(og,{eyebrow:K(e,`console.collections.eyebrow`),title:K(e,`console.collections.title`),description:K(e,`console.collections.body`)}),n.isLoading&&(0,N.jsx)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:[0,1,2].map(e=>(0,N.jsx)(`div`,{className:`glass-card h-36 animate-pulse`},e))}),n.isError&&(0,N.jsx)(lg,{error:n.error}),n.data&&r.length===0&&(0,N.jsx)(cg,{icon:Rt,title:K(e,`console.collections.emptyTitle`),description:K(e,`console.collections.emptyBody`)}),r.length>0&&(0,N.jsx)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:r.map(t=>(0,N.jsxs)(`a`,{href:`/admin/c/${encodeURIComponent(t.name)}`,className:`glass-card card-lift block p-5 no-underline text-foreground`,children:[(0,N.jsxs)(`div`,{className:`mb-3 flex items-start justify-between gap-3`,children:[(0,N.jsxs)(`div`,{className:`min-w-0`,children:[(0,N.jsx)(`h2`,{className:`truncate text-lg`,title:Mh(t,e),children:Mh(t,e)}),(0,N.jsx)(`p`,{className:`font-mono text-xs text-muted-foreground`,children:t.name})]}),(0,N.jsx)(Bt,{className:`size-5 shrink-0 text-muted-foreground`,"aria-hidden":!0})]}),Nh(t,e)?(0,N.jsx)(`p`,{className:`line-clamp-2 text-sm text-muted-foreground`,children:Nh(t,e)}):(0,N.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:K(e,`console.collections.noDescription`)}),(0,N.jsxs)(`div`,{className:`mt-4 flex flex-wrap gap-2`,children:[(0,N.jsx)(`span`,{className:`badge-status bg-accent text-accent-foreground`,children:t.lifecycle}),t.hasTranslations?(0,N.jsx)(`span`,{className:`badge-status bg-[color-mix(in_srgb,var(--info)_16%,transparent)] text-[color:var(--info)]`,children:`i18n`}):null,t.mediaFields?.length?(0,N.jsx)(`span`,{className:`badge-status bg-[color-mix(in_srgb,var(--success)_16%,transparent)] text-[color:var(--success)]`,children:`media`}):null,(0,N.jsx)(`span`,{className:`badge-status bg-muted text-muted-foreground`,children:kh(e,`published`)})]})]},t.name))})]})]})}function dg({href:e,icon:t,label:n}){return(0,N.jsxs)(`a`,{href:e,title:n,className:`quick-action`,children:[(0,N.jsx)(t,{className:`size-4`,"aria-hidden":!0}),(0,N.jsx)(`span`,{children:n})]})}function fg({children:e,className:t}){return(0,N.jsx)(`div`,{className:B(`glass-card overflow-hidden`,t),children:(0,N.jsx)(`div`,{className:`overflow-x-auto`,children:(0,N.jsx)(`table`,{className:`w-full min-w-[720px] text-sm`,children:e})})})}function pg({children:e,className:t}){return(0,N.jsx)(`th`,{className:B(`label-eyebrow px-3 py-2 text-left`,t),children:e})}function mg({children:e,className:t}){return(0,N.jsx)(`td`,{className:B(`px-3 py-2 align-middle`,t),children:e})}var hg={draft:`bg-muted text-muted-foreground`,review:`bg-[color-mix(in_srgb,var(--warning)_18%,transparent)] text-[color:var(--warning)]`,approved:`bg-[color-mix(in_srgb,var(--success)_18%,transparent)] text-[color:var(--success)]`,scheduled:`bg-[color-mix(in_srgb,var(--info)_18%,transparent)] text-[color:var(--info)]`,published:`bg-[color-mix(in_srgb,var(--success)_18%,transparent)] text-[color:var(--success)]`,archived:`bg-secondary text-muted-foreground`};function gg({status:e,className:t}){return(0,N.jsx)(`span`,{className:B(`badge-status`,_g(e)?hg[e]:`bg-accent text-accent-foreground`,t),children:e})}function _g(e){return e in hg}var vg=new Intl.DateTimeFormat(void 0,{dateStyle:`short`,timeStyle:`short`});function yg({collectionName:e}){let{language:t}=G(),n=zc(),r=Ze(),i=new URLSearchParams(n.search),a=i.get(`status`)??void 0,o=i.get(`search`)?.trim()??``,s=P({queryKey:[`collections`],queryFn:async()=>(await Ac.get(`/collections`)).collections}),c=P({queryKey:[`entries`,e,a??`all`,t],queryFn:()=>{let n=new URLSearchParams({collection:e,limit:`99`,locale:t});return a&&n.set(`status`,a),Ac.get(`/entries?${n.toString()}`)}}),[l,u]=M.useState(null);M.useEffect(()=>{c.data&&u(c.data)},[c.data]);let d=c.data??l,f=M.useMemo(()=>{if(!d||!o)return d;let e=o.toLocaleLowerCase();return{...d,items:d.items.filter(n=>{let r=kg(n.title,t);return[n.id,n.collection,n.status,n.locale??``,r].some(t=>String(t).toLocaleLowerCase().includes(e))})}},[d,t,o]),p=c.isLoading&&!d,m=s.data?.find(t=>t.name===e),h=m?Mh(m,t):e,g=M.useCallback(()=>{r.invalidateQueries({queryKey:[`entries`,e]})},[e,r]),_=ft({mutationFn:({id:e,title:t,version:n})=>Ac.patch(`/entries/${encodeURIComponent(e)}`,{data:{title:t},expectedVersion:n}),onSuccess:g}),v=ft({mutationFn:e=>Ac.delete(`/entries/${encodeURIComponent(e)}`),onSuccess:g});return(0,N.jsxs)(`div`,{children:[(0,N.jsx)(og,{eyebrow:(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`a`,{href:`/admin`,className:`hover:underline`,children:K(t,`collection.breadcrumb`)}),(0,N.jsx)(`span`,{className:`mx-2 text-foreground/30`,children:`/`}),(0,N.jsx)(`span`,{className:`text-foreground/70`,children:e})]}),title:h,description:xg(m,t),actions:(0,N.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:[a?(0,N.jsx)(gg,{status:a}):null,m?.hasTranslations?(0,N.jsx)(`span`,{className:`badge-status bg-accent text-accent-foreground`,children:`i18n`}):null,m?.mediaFields?.length?(0,N.jsx)(`span`,{className:`badge-status bg-[color-mix(in_srgb,var(--success)_16%,transparent)] text-[color:var(--success)]`,children:`media`}):null]})}),m?(0,N.jsx)(bg,{collectionName:m.name,status:a,searchTerm:o,language:t}):null,m?(0,N.jsx)(Cg,{collection:m,activeStatus:a,searchTerm:o,language:t}):null,p&&(0,N.jsx)(Eg,{}),c.isError&&!d&&(0,N.jsx)(lg,{error:c.error}),f&&f.items.length===0&&(0,N.jsx)(cg,{icon:Bt,title:K(t,`collection.empty.title`),description:o?K(t,`collection.empty.search`,{search:o}):a?K(t,`collection.empty.withStatus`,{status:a}):K(t,`collection.empty.all`)}),f&&f.items.length>0&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(fg,{children:[(0,N.jsx)(`thead`,{children:(0,N.jsxs)(`tr`,{className:`border-b border-[var(--glass-border)]`,children:[(0,N.jsx)(pg,{children:K(t,`collection.table.id`)}),(0,N.jsx)(pg,{children:K(t,`collection.table.title`)}),(0,N.jsx)(pg,{children:K(t,`collection.table.status`)}),(0,N.jsx)(pg,{children:K(t,`collection.table.locale`)}),(0,N.jsx)(pg,{children:K(t,`collection.table.version`)}),(0,N.jsx)(pg,{children:K(t,`collection.table.updated`)}),(0,N.jsx)(pg,{children:K(t,`collection.table.actions`)})]})}),(0,N.jsx)(`tbody`,{children:f.items.map(e=>(0,N.jsx)(Dg,{row:e,language:t,collection:m,onRename:t=>_.mutateAsync({id:e.id,title:t,version:e.version}),onDelete:()=>v.mutateAsync(e.id),busy:_.isPending&&_.variables?.id===e.id||v.isPending&&v.variables===e.id},e.id))})]}),c.isFetching&&!c.data?(0,N.jsx)(`p`,{className:`mt-3 text-xs text-muted-foreground`,children:K(t,`collection.refreshing`)}):null,f.next_cursor?(0,N.jsx)(`p`,{className:`mt-3 text-xs text-muted-foreground`,children:K(t,`collection.moreRows`)}):null]})]})}function bg({collectionName:e,status:t,searchTerm:n,language:r}){let[i,a]=M.useState(n);return M.useEffect(()=>a(n),[n]),(0,N.jsx)(`form`,{className:`mb-3 max-w-xl`,role:`search`,onSubmit:n=>{n.preventDefault();let r=i.trim(),a=new URLSearchParams;t&&a.set(`status`,t),r&&a.set(`search`,r);let o=a.toString();window.location.href=`/admin/c/${encodeURIComponent(e)}${o?`?${o}`:``}`},children:(0,N.jsxs)(`label`,{className:`relative block`,children:[(0,N.jsx)(mn,{className:`pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground`,"aria-hidden":!0}),(0,N.jsx)(`input`,{className:`admin-input h-10 pl-9`,value:i,onChange:e=>a(e.target.value),placeholder:K(r,`collection.searchPlaceholder`)})]})})}function xg(e,t){let n=Nh(e,t)?.trim();return n?Sg(n)?(0,N.jsxs)(`div`,{className:`space-y-2`,children:[(0,N.jsx)(`p`,{children:K(t,`collection.schemaSummary`,{name:e?Mh(e,t):``})}),(0,N.jsxs)(`details`,{className:`group`,children:[(0,N.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:K(t,`collection.schemaDetails`)}),(0,N.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:n})]})]}):n:K(t,`collection.defaultDescription`)}function Sg(e){return e.length>180||/`|SKU|BCP|ISO|ContentState|column|field|schema|locale|inventory/i.test(e)}function Cg({collection:e,activeStatus:t,searchTerm:n,language:r}){let i=e.lifecycle===`editorial`?[`draft`,`review`,`published`,`archived`]:[`draft`,`published`,`archived`];return(0,N.jsxs)(`div`,{className:`mb-5 flex gap-2 overflow-x-auto pb-1`,"data-tour":`status-filter`,children:[(0,N.jsx)(Tg,{href:wg(e.name,void 0,n),active:!t,children:K(r,`collection.filter.all`)}),i.map(i=>(0,N.jsx)(Tg,{href:wg(e.name,i,n),active:t===i,children:kh(r,i)},i))]})}function wg(e,t,n){let r=new URLSearchParams;t&&r.set(`status`,t),n&&r.set(`search`,n);let i=r.toString();return`/admin/c/${encodeURIComponent(e)}${i?`?${i}`:``}`}function Tg({href:e,active:t,children:n}){return(0,N.jsx)(`a`,{href:e,"aria-current":t?`page`:void 0,className:B(`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-[var(--glass-border)] bg-secondary text-secondary-foreground`:`border-transparent text-muted-foreground hover:bg-accent hover:text-accent-foreground`),children:n})}function Eg(){return(0,N.jsx)(`div`,{className:`glass-card overflow-hidden`,children:[0,1,2,3,4].map(e=>(0,N.jsxs)(`div`,{className:`flex items-center gap-4 border-b border-[var(--glass-border)] p-3 last:border-b-0`,children:[(0,N.jsx)(`div`,{className:`h-3 w-16 animate-pulse rounded bg-muted`}),(0,N.jsx)(`div`,{className:`h-3 flex-1 animate-pulse rounded bg-muted`}),(0,N.jsx)(`div`,{className:`h-6 w-20 animate-pulse rounded-full bg-muted`})]},e))})}function Dg({row:e,language:t,collection:n,onRename:r,onDelete:i,busy:a}){let o=kg(e.title,t),[s,c]=M.useState(!1),[l,u]=M.useState(o),[d,f]=M.useState(null);M.useEffect(()=>{s||u(o)},[s,o]);async function p(){let e=l.trim();if(!e||e===o){c(!1),u(o);return}f(null);try{await r(e),c(!1)}catch(e){f(e instanceof Error?e.message:String(e))}}async function m(){if(!(typeof window<`u`&&!window.confirm(K(t,`crud.deleteConfirm`,{name:o})))){f(null);try{await i()}catch(e){f(e instanceof Error?e.message:String(e))}}}return(0,N.jsxs)(`tr`,{className:`border-t border-[var(--glass-border)] hover:bg-accent/40`,children:[(0,N.jsx)(mg,{className:`font-mono text-xs text-muted-foreground`,children:String(e.id).slice(0,8)}),(0,N.jsx)(mg,{className:`max-w-[28rem]`,children:(0,N.jsxs)(`div`,{className:`min-w-[16rem]`,children:[s?(0,N.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,N.jsx)(`input`,{className:`admin-input h-9 min-w-0 flex-1`,value:l,autoFocus:!0,disabled:a,onChange:e=>u(e.target.value),onBlur:()=>void p(),onKeyDown:e=>{e.key===`Enter`&&p(),e.key===`Escape`&&(u(o),c(!1))}}),(0,N.jsx)(`button`,{type:`button`,className:`row-action`,title:K(t,`crud.saveTitle`),disabled:a,onMouseDown:e=>e.preventDefault(),onClick:()=>void p(),children:(0,N.jsx)(Dt,{className:`size-3.5`,"aria-hidden":!0})}),(0,N.jsx)(`button`,{type:`button`,className:`row-action`,title:K(t,`crud.cancelTitle`),disabled:a,onMouseDown:e=>e.preventDefault(),onClick:()=>{u(o),c(!1)},children:(0,N.jsx)(Fn,{className:`size-3.5`,"aria-hidden":!0})})]}):(0,N.jsxs)(`button`,{type:`button`,className:`group inline-flex max-w-full items-center gap-2 text-left`,onClick:()=>c(!0),title:o,children:[(0,N.jsx)(`span`,{className:`truncate`,children:Og(e.title,t)}),(0,N.jsx)(cn,{className:`size-3 shrink-0 opacity-0 transition-opacity group-hover:opacity-60`,"aria-hidden":!0})]}),d?(0,N.jsx)(`p`,{className:`mt-1 text-xs text-destructive`,children:d}):null]})}),(0,N.jsx)(mg,{children:(0,N.jsx)(gg,{status:e.status})}),(0,N.jsx)(mg,{className:`text-muted-foreground`,children:e.locale??`-`}),(0,N.jsxs)(mg,{className:`font-mono text-xs text-muted-foreground`,children:[`v`,e.version]}),(0,N.jsx)(mg,{className:`text-muted-foreground`,children:Ag(e.updated_at)}),(0,N.jsxs)(mg,{children:[(0,N.jsxs)(`div`,{className:`flex items-center gap-1`,"data-tour":`entry-actions`,children:[(0,N.jsx)(`a`,{className:`row-action`,title:K(t,`crud.editTooltip`,{name:o}),href:`/admin/c/${encodeURIComponent(e.collection)}/${encodeURIComponent(e.id)}`,children:(0,N.jsx)(cn,{className:`size-3.5`,"aria-hidden":!0})}),(0,N.jsx)(`button`,{type:`button`,className:`row-action`,title:K(t,`crud.deleteTooltip`,{name:o}),disabled:a,onClick:()=>void m(),children:(0,N.jsx)(Tn,{className:`size-3.5`,"aria-hidden":!0})})]}),(0,N.jsx)(`span`,{className:`sr-only`,children:n?Mh(n,t):``})]})]})}function Og(e,t){return e==null||e===``?(0,N.jsx)(`span`,{className:`text-muted-foreground`,children:K(t,`collection.untitled`)}):typeof e==`string`?e:(0,N.jsx)(`span`,{className:`font-mono text-xs`,children:JSON.stringify(e)})}function kg(e,t){return typeof e==`string`&&e?e:e==null||e===``?K(t,`collection.untitled`):JSON.stringify(e)}function Ag(e){if(!Number.isFinite(e))return`-`;try{return vg.format(new Date(e))}catch{return`-`}}var jg=[{name:`product-cover-01`,type:`image/webp`,tag:`product`,alt:`商品主視覺`,url:`/media/product-cover-01.webp`,size:`1920 x 1440`,createdAt:`2026-06-01`,tone:`linear-gradient(135deg,#e8dfcf,#a9c0b5 45%,#2b5b55)`},{name:`brand-story`,type:`image/jpeg`,tag:`brand`,alt:`品牌介紹圖片`,url:`/media/brand-story.jpg`,size:`1600 x 1200`,createdAt:`2026-05-31`,tone:`linear-gradient(135deg,#f3dccb,#d8aa72 48%,#213d59)`},{name:`workflow-map`,type:`image/png`,tag:`content`,alt:`流程示意圖`,url:`/media/workflow-map.png`,size:`1440 x 1080`,createdAt:`2026-05-30`,tone:`linear-gradient(135deg,#e9edf4,#9fb2ca 45%,#253453)`},{name:`homepage-hero`,type:`image/webp`,tag:`content`,alt:`首頁主視覺`,url:`/media/homepage-hero.webp`,size:`2400 x 1350`,createdAt:`2026-05-29`,tone:`linear-gradient(135deg,#f7f1df,#91b7a7 44%,#173f45)`}];async function Mg(e){let t=Ng(e.purposes,e.preferredPurpose);if(!t)throw Error(`No media upload purpose is configured for this site.`);let n=await Ig(e.file,t),r=await Ac.post(`/media/uploads`,{filename:e.file.name,purpose:t.name,variants:n.map(e=>({mimeType:e.mimeType,byteSize:e.blob.size,role:e.role})),alt:e.alt??Wg(e.file),caption:e.caption});for(let e of n){let t=r.capabilities.find(t=>t.mimeType===e.mimeType&&t.role===e.role);if(!t)throw Error(`Upload capability missing for ${e.mimeType}.`);await fetch(t.uploadUrl,{method:t.method,headers:t.requiredHeaders??{"Content-Type":e.mimeType},body:e.blob})}return Ac.post(`/media/uploads/${encodeURIComponent(r.uploadGroupId)}/commit`,{alt:e.alt??Wg(e.file),caption:e.caption})}function Ng(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 Pg(e,t,n){let r=n[n.length-1]??``,i=Ug(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 Fg(e){return(e.variants.find(e=>e.role===`primary`)??e.variants[0])?.publicUrl??null}async function Ig(e,t){if(!e.type.startsWith(`image/`)||e.type===`image/svg+xml`)throw Error(`Only raster image uploads are supported in the admin UI.`);let n=Lg(t.required);if(n.length===0)throw Error(`Media purpose '${t.name}' does not declare required image variants.`);let r=await createImageBitmap(e);try{let e=n.map(e=>zg(e,t)),i=e.find(Hg)??e[0],a=[];for(let n of e){let e=t.maxBytes[n]??2**53-1;a.push({mimeType:n,role:n===i?`primary`:`alternate`,blob:await Bg(r,n,e)})}return a}finally{r.close?.()}}function Lg(e){return e.map(e=>e.split(`,`).map(Rg).filter(e=>!!e)).filter(e=>e.length>0)}function Rg(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}function zg(e,t){for(let n of e)if(n.startsWith(`image/`)&&t.maxBytes[n]!=null)return n;throw Error(`No browser-supported image mime in purpose '${t.name}'.`)}async function Bg(e,t,n){let r=1,i=t===`image/jpeg`?[.88,.78,.68,.58]:[.78,.68,.58,.48],a=null;for(let o=0;o<6;o+=1){for(let o of i){let i=await Vg(e,t,r,o);if(i.type===t&&(a=i,i.size<=n))return i}r*=.82}if(a)return a;throw Error(`This browser cannot encode ${t}.`)}async function Vg(e,t,n,r){let i=document.createElement(`canvas`);i.width=Math.max(1,Math.round(e.width*n)),i.height=Math.max(1,Math.round(e.height*n));let a=i.getContext(`2d`);if(!a)throw Error(`Could not prepare image upload.`);a.drawImage(e,0,0,i.width,i.height);let o=await new Promise(e=>i.toBlob(e,t,r));if(!o)throw Error(`This browser cannot encode ${t}.`);return o}function Hg(e){return e===`image/jpeg`||e===`image/png`||e===`image/gif`}function Ug(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 Wg(e){return e.name.replace(/\.[^.]+$/,``)}function Gg({value:e,onChange:t,label:n,mode:r,onModeChange:i,compact:a=!1,showPreview:o=!1}){let{language:s}=G(),c=M.useRef(null),l=M.useRef(null),[u,d]=M.useState(!1),[f,p]=M.useState(!1),[m,h]=M.useState(!1),[g,_]=M.useState(null),v=r??`rich`,y=P({queryKey:[`site`],queryFn:()=>Ac.get(`/site`)}),b=M.useCallback((n,r=``,i=``)=>{let a=c.current;if(!a){t(`${e}${n}${i}${r}`);return}let o=a.selectionStart,s=a.selectionEnd,l=e.slice(o,s)||i;t(`${e.slice(0,o)}${n}${l}${r}${e.slice(s)}`),window.requestAnimationFrame(()=>{a.focus();let e=o+n.length,t=e+l.length;a.setSelectionRange(e,t)})},[t,e]),x=M.useCallback(t=>{b(`${e.endsWith(`
140
140
  `)||e.length===0?``:`
141
141
 
142
- `}${t}`,``,``)},[b,e]);async function S(e){h(!0),_(null);try{let t=await Mg({file:e,purposes:y.data?.media?.purposes??[],preferredPurpose:`content`}),n=Fg(t);if(!n)throw Error(`Uploaded media has no public URL.`);C(n,t.alt??e.name)}catch(e){_(e instanceof Error?e.message:String(e))}finally{h(!1),l.current&&(l.current.value=``)}}function C(e,t){x(`![${t||`image`}](${e})`)}function w(e){x($g(e)),p(!1)}function T(e){if(e!==`paragraph`){if(/^h[1-6]$/.test(e)){let t=Number(e.slice(1));b(`${`#`.repeat(t)} `,``,K(s,`editor.headingPlaceholder`));return}e===`quote`&&x(`> `),e===`code`&&b("```\n","\n```",`code`)}}return(0,N.jsxs)(`div`,{className:`rich-editor`,children:[(0,N.jsxs)(`div`,{className:`rich-editor-topline`,children:[n?(0,N.jsx)(`span`,{className:`text-sm font-semibold`,children:n}):null,i?(0,N.jsx)(`div`,{className:`segmented-control rich-editor-modes`,children:[`rich`,`markdown`,`html`].map(e=>(0,N.jsx)(`button`,{type:`button`,"data-active":v===e,onClick:()=>i(e),children:qg(s,e)},e))}):null]}),(0,N.jsxs)(`div`,{className:`rich-editor-toolbar`,"aria-label":K(s,`editor.toolbar`),children:[(0,N.jsx)(Kg,{title:K(s,`editor.undo`),onClick:()=>Qg(`undo`,c.current),children:(0,N.jsx)(kn,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.redo`),onClick:()=>Qg(`redo`,c.current),children:(0,N.jsx)(dn,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Jg,{}),(0,N.jsx)(Kg,{title:K(s,`editor.aiClean`),onClick:()=>x(`> 重點提示:`),children:(0,N.jsx)(Pn,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.uploadImage`),onClick:()=>l.current?.click(),disabled:m,children:(0,N.jsx)(An,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(`input`,{ref:l,type:`file`,accept:`image/*`,className:`hidden`,onChange:e=>{let t=e.currentTarget.files?.[0];t&&S(t)}}),(0,N.jsx)(Jg,{}),(0,N.jsxs)(`label`,{className:`rich-editor-select`,title:K(s,`editor.textStyle`),children:[(0,N.jsx)(Dn,{className:`size-4`,"aria-hidden":!0}),(0,N.jsxs)(`select`,{onChange:e=>{T(e.target.value),e.target.value=`paragraph`},defaultValue:`paragraph`,children:[(0,N.jsx)(`option`,{value:`paragraph`,children:`Paragraph`}),(0,N.jsx)(`option`,{value:`h1`,children:`H1`}),(0,N.jsx)(`option`,{value:`h2`,children:`H2`}),(0,N.jsx)(`option`,{value:`h3`,children:`H3`}),(0,N.jsx)(`option`,{value:`h4`,children:`H4`}),(0,N.jsx)(`option`,{value:`h5`,children:`H5`}),(0,N.jsx)(`option`,{value:`h6`,children:`H6`}),(0,N.jsx)(`option`,{value:`quote`,children:`Quote`}),(0,N.jsx)(`option`,{value:`code`,children:`Code`})]})]}),(0,N.jsx)(Jg,{}),(0,N.jsx)(Kg,{title:K(s,`editor.bold`),onClick:()=>b(`**`,`**`,K(s,`editor.selectedText`)),children:(0,N.jsx)(Tt,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.italic`),onClick:()=>b(`_`,`_`,K(s,`editor.selectedText`)),children:(0,N.jsx)(Jt,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.underline`),onClick:()=>b(`<u>`,`</u>`,K(s,`editor.selectedText`)),children:(0,N.jsx)(On,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.strike`),onClick:()=>b(`~~`,`~~`,K(s,`editor.selectedText`)),children:(0,N.jsx)(vn,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.inlineCode`),onClick:()=>b("`","`",`code`),children:(0,N.jsx)(Ft,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.textColor`),onClick:()=>b(`<span class="text-accent">`,`</span>`,K(s,`editor.selectedText`)),children:(0,N.jsx)(wt,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.highlight`),onClick:()=>b(`<mark>`,`</mark>`,K(s,`editor.selectedText`)),children:(0,N.jsx)(Ut,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.palette`),onClick:()=>b(`<span class="brand-tone">`,`</span>`,K(s,`editor.selectedText`)),children:(0,N.jsx)(on,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Jg,{}),(0,N.jsx)(Kg,{title:K(s,`editor.alignLeft`),onClick:()=>x(`<p style="text-align:left"></p>`),children:(0,N.jsx)(wn,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.alignCenter`),onClick:()=>x(`<p style="text-align:center"></p>`),children:(0,N.jsx)(Cn,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.alignRight`),onClick:()=>x(`<p style="text-align:right"></p>`),children:(0,N.jsx)(Sn,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.bulletList`),onClick:()=>x(`- `),children:(0,N.jsx)(en,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.numberList`),onClick:()=>x(`1. `),children:(0,N.jsx)($t,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.checkList`),onClick:()=>x(`- [ ] `),children:(0,N.jsx)(Zt,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.indent`),onClick:()=>b(` `,``,``),children:(0,N.jsx)(Qt,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Jg,{}),(0,N.jsx)(Kg,{title:K(s,`editor.link`),onClick:()=>b(`[`,`](https://)`,K(s,`editor.linkText`)),children:(0,N.jsx)(Xt,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.table`),onClick:()=>x(`| 欄位 | 說明 |
142
+ `}${t}`,``,``)},[b,e]);async function S(e){h(!0),_(null);try{let t=await Mg({file:e,purposes:y.data?.media?.purposes??[],preferredPurpose:`content`}),n=Fg(t);if(!n)throw Error(`Uploaded media has no public URL.`);C(n,t.alt??e.name)}catch(e){_(e instanceof Error?e.message:String(e))}finally{h(!1),l.current&&(l.current.value=``)}}function C(e,t){x(`![${t||`image`}](${e})`)}function w(e){x($g(e)),p(!1)}function T(e){if(e!==`paragraph`){if(/^h[1-6]$/.test(e)){let t=Number(e.slice(1));b(`${`#`.repeat(t)} `,``,K(s,`editor.headingPlaceholder`));return}e===`quote`&&x(`> `),e===`code`&&b("```\n","\n```",`code`)}}return(0,N.jsxs)(`div`,{className:`rich-editor`,children:[(0,N.jsxs)(`div`,{className:`rich-editor-topline`,children:[n?(0,N.jsx)(`span`,{className:`text-sm font-semibold`,children:n}):null,i?(0,N.jsx)(`div`,{className:`segmented-control rich-editor-modes`,children:[`rich`,`markdown`,`html`].map(e=>(0,N.jsx)(`button`,{type:`button`,"data-active":v===e,onClick:()=>i(e),children:qg(s,e)},e))}):null]}),(0,N.jsxs)(`div`,{className:`rich-editor-toolbar`,"aria-label":K(s,`editor.toolbar`),children:[(0,N.jsx)(Kg,{title:K(s,`editor.undo`),onClick:()=>Qg(`undo`,c.current),children:(0,N.jsx)(kn,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.redo`),onClick:()=>Qg(`redo`,c.current),children:(0,N.jsx)(dn,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Jg,{}),(0,N.jsx)(Kg,{title:K(s,`editor.aiClean`),onClick:()=>x(`> 重點提示:`),children:(0,N.jsx)(Pn,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.uploadImage`),onClick:()=>l.current?.click(),disabled:m,children:(0,N.jsx)(An,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(`input`,{ref:l,type:`file`,accept:`image/*`,className:`hidden`,onChange:e=>{let t=e.currentTarget.files?.[0];t&&S(t)}}),(0,N.jsx)(Jg,{}),(0,N.jsxs)(`label`,{className:`rich-editor-select`,title:K(s,`editor.textStyle`),children:[(0,N.jsx)(Dn,{className:`size-4`,"aria-hidden":!0}),(0,N.jsxs)(`select`,{onChange:e=>{T(e.target.value),e.target.value=`paragraph`},defaultValue:`paragraph`,children:[(0,N.jsx)(`option`,{value:`paragraph`,children:`Paragraph`}),(0,N.jsx)(`option`,{value:`h1`,children:`H1`}),(0,N.jsx)(`option`,{value:`h2`,children:`H2`}),(0,N.jsx)(`option`,{value:`h3`,children:`H3`}),(0,N.jsx)(`option`,{value:`h4`,children:`H4`}),(0,N.jsx)(`option`,{value:`h5`,children:`H5`}),(0,N.jsx)(`option`,{value:`h6`,children:`H6`}),(0,N.jsx)(`option`,{value:`quote`,children:`Quote`}),(0,N.jsx)(`option`,{value:`code`,children:`Code`})]})]}),(0,N.jsx)(Jg,{}),(0,N.jsx)(Kg,{title:K(s,`editor.bold`),onClick:()=>b(`**`,`**`,K(s,`editor.selectedText`)),children:(0,N.jsx)(Tt,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.italic`),onClick:()=>b(`_`,`_`,K(s,`editor.selectedText`)),children:(0,N.jsx)(Jt,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.underline`),onClick:()=>b(`<u>`,`</u>`,K(s,`editor.selectedText`)),children:(0,N.jsx)(On,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.strike`),onClick:()=>b(`~~`,`~~`,K(s,`editor.selectedText`)),children:(0,N.jsx)(vn,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.inlineCode`),onClick:()=>b("`","`",`code`),children:(0,N.jsx)(Ft,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.textColor`),onClick:()=>b(`<span class="text-accent">`,`</span>`,K(s,`editor.selectedText`)),children:(0,N.jsx)(wt,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.highlight`),onClick:()=>b(`<mark>`,`</mark>`,K(s,`editor.selectedText`)),children:(0,N.jsx)(Ut,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.palette`),onClick:()=>b(`<span class="brand-tone">`,`</span>`,K(s,`editor.selectedText`)),children:(0,N.jsx)(on,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Jg,{}),(0,N.jsx)(Kg,{title:K(s,`editor.alignLeft`),onClick:()=>x(`<p style="text-align:left"></p>`),children:(0,N.jsx)(wn,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.alignCenter`),onClick:()=>x(`<p style="text-align:center"></p>`),children:(0,N.jsx)(Sn,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.alignRight`),onClick:()=>x(`<p style="text-align:right"></p>`),children:(0,N.jsx)(Cn,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.bulletList`),onClick:()=>x(`- `),children:(0,N.jsx)(en,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.numberList`),onClick:()=>x(`1. `),children:(0,N.jsx)($t,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.checkList`),onClick:()=>x(`- [ ] `),children:(0,N.jsx)(Xt,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.indent`),onClick:()=>b(` `,``,``),children:(0,N.jsx)(Qt,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Jg,{}),(0,N.jsx)(Kg,{title:K(s,`editor.link`),onClick:()=>b(`[`,`](https://)`,K(s,`editor.linkText`)),children:(0,N.jsx)(Zt,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.table`),onClick:()=>x(`| 欄位 | 說明 |
143
143
  | --- | --- |
144
144
  | | |`),children:(0,N.jsx)(bn,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.mediaLibrary`),onClick:()=>d(!0),children:(0,N.jsx)(qt,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.imageUrl`),onClick:()=>d(!0),children:(0,N.jsx)(Kt,{className:`size-4`,"aria-hidden":!0})}),(0,N.jsx)(Kg,{title:K(s,`editor.videoUrl`),onClick:()=>p(!0),children:(0,N.jsx)(Nn,{className:`size-4`,"aria-hidden":!0})})]}),(0,N.jsx)(`textarea`,{ref:c,className:a?`admin-textarea admin-textarea-compact rich-editor-textarea`:`admin-textarea rich-editor-textarea`,value:e,onChange:e=>t(e.target.value)}),g?(0,N.jsx)(`p`,{className:`text-xs text-destructive`,children:g}):null,m?(0,N.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:K(s,`editor.uploading`)}):null,o?(0,N.jsx)(`div`,{className:`editor-preview`,dangerouslySetInnerHTML:{__html:r_(e,v)}}):null,u?(0,N.jsx)(Yg,{language:s,onClose:()=>d(!1),onInsert:(e,t)=>{C(e,t),d(!1)}}):null,f?(0,N.jsx)(Xg,{language:s,onClose:()=>p(!1),onInsert:w}):null]})}function Kg({title:e,onClick:t,disabled:n,children:r}){return(0,N.jsx)(`button`,{type:`button`,title:e,"aria-label":e,onClick:t,disabled:n,children:r})}function qg(e,t){return t===`html`?K(e,`editor.mode.html`):t===`markdown`?K(e,`editor.mode.markdown`):K(e,`editor.mode.rich`)}function Jg(){return(0,N.jsx)(`span`,{className:`rich-editor-divider`,"aria-hidden":!0})}function Yg({language:e,onClose:t,onInsert:n}){let[r,i]=M.useState(``),[a,o]=M.useState(``);return(0,N.jsx)(`div`,{className:`rich-editor-dialog-backdrop`,role:`presentation`,children:(0,N.jsxs)(`div`,{className:`rich-editor-dialog`,role:`dialog`,"aria-modal":`true`,"aria-label":K(e,`editor.mediaLibrary`),children:[(0,N.jsx)(Zg,{title:K(e,`editor.insertImage`),onClose:t}),(0,N.jsxs)(`div`,{className:`grid gap-3`,children:[(0,N.jsxs)(`label`,{className:`grid gap-1 text-sm font-medium`,children:[K(e,`editor.imageUrl`),(0,N.jsx)(`input`,{className:`admin-input`,value:r,onChange:e=>i(e.target.value),placeholder:`https://...`})]}),(0,N.jsxs)(`label`,{className:`grid gap-1 text-sm font-medium`,children:[K(e,`media.alt`),(0,N.jsx)(`input`,{className:`admin-input`,value:a,onChange:e=>o(e.target.value)})]}),(0,N.jsxs)(V,{type:`button`,disabled:!r.trim(),onClick:()=>n(r.trim(),a.trim()),children:[(0,N.jsx)(Dt,{className:`size-4`,"aria-hidden":!0}),K(e,`editor.insertImage`)]})]}),(0,N.jsxs)(`div`,{className:`rich-editor-media-list`,children:[(0,N.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,N.jsx)(`p`,{className:`label-eyebrow`,children:K(e,`media.page.title`)}),(0,N.jsxs)(`a`,{href:`/admin/media`,className:`inline-flex items-center gap-1 text-xs font-semibold text-primary`,children:[K(e,`common.open`),(0,N.jsx)(zt,{className:`size-3`,"aria-hidden":!0})]})]}),jg.map(e=>(0,N.jsxs)(`button`,{type:`button`,className:`rich-editor-media-row`,onClick:()=>n(e.url,e.alt),children:[(0,N.jsx)(`span`,{className:`rich-editor-media-thumb`,style:{"--media-tone":e.tone}}),(0,N.jsxs)(`span`,{className:`min-w-0 text-left`,children:[(0,N.jsx)(`span`,{className:`block truncate font-semibold`,children:e.name}),(0,N.jsx)(`span`,{className:`block truncate text-xs text-muted-foreground`,children:e.url})]})]},e.name))]})]})})}function Xg({language:e,onClose:t,onInsert:n}){let[r,i]=M.useState(``);return(0,N.jsx)(`div`,{className:`rich-editor-dialog-backdrop`,role:`presentation`,children:(0,N.jsxs)(`div`,{className:`rich-editor-dialog`,role:`dialog`,"aria-modal":`true`,"aria-label":K(e,`editor.videoUrl`),children:[(0,N.jsx)(Zg,{title:K(e,`editor.insertVideo`),onClose:t}),(0,N.jsxs)(`label`,{className:`grid gap-1 text-sm font-medium`,children:[K(e,`editor.videoUrl`),(0,N.jsx)(`input`,{className:`admin-input`,value:r,onChange:e=>i(e.target.value),placeholder:`YouTube / Dailymotion URL`})]}),(0,N.jsxs)(V,{type:`button`,className:`mt-3`,disabled:!r.trim(),onClick:()=>n(r.trim()),children:[(0,N.jsx)(Nn,{className:`size-4`,"aria-hidden":!0}),K(e,`editor.insertVideo`)]})]})})}function Zg({title:e,onClose:t}){return(0,N.jsxs)(`div`,{className:`mb-4 flex items-center justify-between gap-3`,children:[(0,N.jsx)(`h2`,{className:`text-lg font-semibold`,children:e}),(0,N.jsx)(`button`,{type:`button`,className:`row-action`,onClick:t,"aria-label":`Close`,children:(0,N.jsx)(Fn,{className:`size-4`,"aria-hidden":!0})})]})}function Qg(e,t){t?.focus(),document.execCommand(e)}function $g(e){let t=e_(e);if(!t)return`<a href="${o_(e)}">${a_(e)}</a>`;let n=t_(t);if(n)return`<iframe src="https://www.youtube.com/embed/${n}" title="YouTube video" loading="lazy" allowfullscreen></iframe>`;let r=n_(t);return r?`<iframe src="https://www.dailymotion.com/embed/video/${r}" title="Dailymotion video" loading="lazy" allowfullscreen></iframe>`:`<a href="${o_(t.toString())}">${a_(t.toString())}</a>`}function e_(e){try{return new URL(e)}catch{return null}}function t_(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 n_(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 r_(e,t){if(t===`html`)return e;let n=[],r=!1,i=!1;for(let t of e.split(`
145
145
  `)){let e=t.trim();if(!e){r&&n.push(`</ul>`),i&&n.push(`</ol>`),r=!1,i=!1;continue}if(e.startsWith(`<`)){r&&n.push(`</ul>`),i&&n.push(`</ol>`),r=!1,i=!1,n.push(e);continue}let a=e.match(/^!\[(.*)]\((.*)\)$/);if(a){n.push(`<figure><img src="${o_(a[2]??``)}" alt="${o_(a[1]??``)}" /></figure>`);continue}let o=i_(e);if(e.startsWith(`## `)){r&&n.push(`</ul>`),i&&n.push(`</ol>`),r=!1,i=!1,n.push(`<h2>${i_(e.slice(3))}</h2>`);continue}if(e.startsWith(`- [ ] `)){r||=(n.push(`<ul>`),!0),n.push(`<li><input type="checkbox" disabled /> ${i_(e.slice(6))}</li>`);continue}if(e.startsWith(`- `)){r||=(n.push(`<ul>`),!0),n.push(`<li>${i_(e.slice(2))}</li>`);continue}if(/^\d+\.\s/.test(e)){i||=(n.push(`<ol>`),!0),n.push(`<li>${i_(e.replace(/^\d+\.\s/,``))}</li>`);continue}r&&n.push(`</ul>`),i&&n.push(`</ol>`),r=!1,i=!1,n.push(`<p>${o}</p>`)}return r&&n.push(`</ul>`),i&&n.push(`</ol>`),n.join(``)}function i_(e){return a_(e).replace(/\*\*(.+?)\*\*/g,`<strong>$1</strong>`).replace(/_(.+?)_/g,`<em>$1</em>`).replace(/~~(.+?)~~/g,`<s>$1</s>`).replace(/`(.+?)`/g,`<code>$1</code>`).replace(/\[(.+?)]\((https?:\/\/[^)]+)\)/g,`<a href="$2">$1</a>`)}function a_(e){return e.replace(/[&<>"']/g,e=>{switch(e){case`&`:return`&amp;`;case`<`:return`&lt;`;case`>`:return`&gt;`;case`"`:return`&quot;`;default:return`&#39;`}})}function o_(e){return a_(e).replace(/`/g,`&#96;`)}function s_({collectionName:e,entryId:t}){let{language:n}=G(),r=Ze(),i=M.useMemo(()=>[`entry-editor`,e,t],[e,t]),a=P({queryKey:i,queryFn:()=>Ac.get(`/entries/${encodeURIComponent(t)}`)}),o=P({queryKey:[`site`],queryFn:()=>Ac.get(`/site`)}),[s,c]=M.useState(null);M.useEffect(()=>{a.data&&c(a.data.entry.data)},[a.data]);let l=M.useCallback(e=>{c(e.entry.data),r.setQueryData(i,e)},[r,i]),u=ft({mutationFn:e=>Ac.patch(`/entries/${encodeURIComponent(t)}`,{data:e,expectedVersion:a.data?.entry.version}),onSuccess:l}),d=ft({mutationFn:()=>Ac.post(`/entries/${encodeURIComponent(t)}/publish`,{}),onSuccess:l}),f=ft({mutationFn:()=>Ac.post(`/entries/${encodeURIComponent(t)}/unpublish`,{}),onSuccess:l});if(a.isLoading)return(0,N.jsx)(`div`,{className:`glass-card h-64 animate-pulse`});if(a.isError)return(0,N.jsx)(lg,{error:a.error});if(!a.data||!s)return(0,N.jsx)(lg,{error:Error(`Missing entry editor payload.`)});let p=a.data,m=C_(s,p.entry.id),h=JSON.stringify(s)!==JSON.stringify(p.entry.data),g=p.entry.status===`draft`,_=u.isPending||d.isPending||f.isPending,v=o.data?.media?.purposes??[],y=b_(p.collection,s),b=p.related.filter(x_),x=p.related.filter(e=>!x_(e));return(0,N.jsxs)(`div`,{className:`space-y-6`,children:[(0,N.jsx)(og,{eyebrow:(0,N.jsxs)(`span`,{className:`inline-flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,N.jsxs)(`a`,{href:`/admin/c/${encodeURIComponent(e)}`,className:`inline-flex items-center gap-2 hover:underline`,children:[(0,N.jsx)(Ct,{className:`size-3.5`,"aria-hidden":!0}),K(n,`entryEdit.back`,{name:Mh(p.collection,n)})]}),y?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`span`,{className:`text-foreground/30`,children:`/`}),(0,N.jsx)(`a`,{href:y.href,className:`hover:underline`,children:K(n,`entryEdit.parent`,{name:y.label})})]}):null]}),title:m,description:K(n,`entryEdit.body`,{name:Mh(p.collection,n)}),actions:(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(gg,{status:p.entry.status}),g?(0,N.jsxs)(V,{type:`button`,variant:`secondary`,onClick:()=>d.mutate(),disabled:_||h,title:h?K(n,`entryEdit.publishDisabledDirty`):K(n,`entryEdit.publishTooltip`),children:[(0,N.jsx)(hn,{className:`size-4`,"aria-hidden":!0}),d.isPending?K(n,`entryEdit.publishing`):K(n,`entryEdit.publish`)]}):(0,N.jsxs)(V,{type:`button`,variant:`secondary`,onClick:()=>f.mutate(),disabled:_,title:K(n,`entryEdit.unpublishTooltip`),children:[(0,N.jsx)(fn,{className:`size-4`,"aria-hidden":!0}),f.isPending?K(n,`entryEdit.unpublishing`):K(n,`entryEdit.unpublish`)]}),(0,N.jsxs)(V,{type:`button`,onClick:()=>u.mutate(s),disabled:_||!h||!g,title:K(n,`entryEdit.saveTooltip`),children:[(0,N.jsx)(pn,{className:`size-4`,"aria-hidden":!0}),u.isPending?K(n,`crud.saving`):K(n,`entryEdit.save`)]})]})}),u.isError?(0,N.jsx)(lg,{error:u.error}):null,d.isError?(0,N.jsx)(lg,{error:d.error}):null,f.isError?(0,N.jsx)(lg,{error:f.error}):null,(0,N.jsxs)(`div`,{className:`grid gap-5 lg:grid-cols-[minmax(0,1fr)_22rem]`,children:[(0,N.jsxs)(`div`,{className:`space-y-5`,children:[(0,N.jsxs)(sg,{children:[(0,N.jsx)(c_,{title:K(n,`entryEdit.fields`),body:p.collection.description}),(0,N.jsx)(u_,{schema:p.collection.schema,value:s,path:[],onChange:c,language:n,collectionName:p.collection.name,mediaPurposes:v})]}),b.length>0?(0,N.jsx)(h_,{sections:b,language:n,parentTitle:m,onSaved:()=>void a.refetch()}):null]}),(0,N.jsxs)(`div`,{className:`space-y-4`,children:[(0,N.jsxs)(sg,{children:[(0,N.jsx)(c_,{title:K(n,`entryEdit.meta`),body:`${p.entry.collection} / ${p.entry.id}`}),(0,N.jsxs)(`dl`,{className:`space-y-3 text-sm`,children:[(0,N.jsx)(l_,{label:K(n,`collection.table.status`),value:(0,N.jsx)(gg,{status:p.entry.status})}),(0,N.jsx)(l_,{label:K(n,`collection.table.locale`),value:p.entry.locale??`-`}),(0,N.jsx)(l_,{label:K(n,`collection.table.version`),value:`v${p.entry.version}`})]})]}),x.length>0?(0,N.jsx)(h_,{sections:x,language:n,parentTitle:m,onSaved:()=>void a.refetch()}):null]})]})]})}function c_({title:e,body:t}){return(0,N.jsxs)(`div`,{className:`mb-4`,children:[(0,N.jsx)(`h2`,{className:`text-lg font-semibold`,children:e}),t?(0,N.jsx)(`p`,{className:`mt-1 text-sm leading-6 text-muted-foreground`,children:t}):null]})}function l_({label:e,value:t}){return(0,N.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,N.jsx)(`dt`,{className:`text-muted-foreground`,children:e}),(0,N.jsx)(`dd`,{className:`min-w-0 text-right font-medium`,children:t})]})}function u_({schema:e,value:t,path:n,onChange:r,language:i,collectionName:a,mediaPurposes:o}){let s=e.properties??{},c=new Set(e.required??[]);return(0,N.jsx)(`div`,{className:`space-y-5`,children:Object.entries(s).map(([e,s])=>(0,N.jsx)(d_,{name:e,schema:s,required:c.has(e),value:j_(t,[...n,e]),path:[...n,e],rootValue:t,onChange:r,language:i,collectionName:a,mediaPurposes:o},[...n,e].join(`.`)))})}function d_({name:e,schema:t,required:n,value:r,path:i,rootValue:a,onChange:o,language:s,collectionName:c,mediaPurposes:l}){let u=w_(t),d=D_(e),f=typeof t.description==`string`?t.description:void 0,p=e=>o(M_(a,i,e));return(0,N.jsxs)(`div`,{className:`space-y-2`,children:[(0,N.jsxs)(`label`,{className:`flex items-center justify-between gap-3 text-sm font-semibold text-foreground`,children:[(0,N.jsxs)(`span`,{children:[d,n?(0,N.jsx)(`span`,{className:`ml-1 text-destructive`,children:`*`}):null]}),t[`x-mcp-hint`]?(0,N.jsx)(`span`,{className:`badge-status bg-accent text-accent-foreground`,title:String(t[`x-mcp-hint`]),children:String(t[`x-mcp-hint`])}):null]}),f?(0,N.jsx)(`p`,{className:`text-xs leading-5 text-muted-foreground`,children:f}):null,t.enum?(0,N.jsxs)(`select`,{className:`admin-input`,value:O_(r),onChange:e=>p(e.target.value),children:[(0,N.jsx)(`option`,{value:``,children:K(s,`entryEdit.emptyOption`)}),t.enum.map(e=>(0,N.jsx)(`option`,{value:String(e),children:String(e)},String(e)))]}):u===`boolean`?(0,N.jsxs)(`label`,{className:`inline-flex items-center gap-2 text-sm text-muted-foreground`,children:[(0,N.jsx)(`input`,{type:`checkbox`,className:`size-4 accent-[var(--primary)]`,checked:!!r,onChange:e=>p(e.target.checked)}),K(s,`entryEdit.boolean`)]}):u===`number`||u===`integer`?(0,N.jsx)(`input`,{className:`admin-input`,type:`number`,value:k_(r),min:t.minimum,max:t.maximum,onChange:e=>{let t=e.target.value;p(t===``?null:Number(t))}}):u===`object`?(0,N.jsx)(`div`,{className:`rounded-lg border border-[var(--glass-border)] bg-background/30 p-4`,children:t.properties?(0,N.jsx)(u_,{schema:t,value:a,path:i,onChange:o,language:s,collectionName:c,mediaPurposes:l}):(0,N.jsx)(m_,{value:r,onChange:p})}):E_(t)?(0,N.jsx)(p_,{value:r,path:i,collectionName:c,mediaPurposes:l,language:s,onChange:p}):u===`array`?(0,N.jsx)(f_,{schema:t,value:Array.isArray(r)?r:[],path:i,rootValue:a,onChange:o,language:s,collectionName:c,mediaPurposes:l}):T_(t,e)?(0,N.jsx)(Gg,{compact:!0,value:O_(r),onChange:p}):(0,N.jsx)(`input`,{className:`admin-input`,type:t.format===`date-time`?`datetime-local`:`text`,value:O_(r),onChange:e=>p(e.target.value)})]})}function f_({schema:e,value:t,path:n,rootValue:r,onChange:i,language:a,collectionName:o,mediaPurposes:s}){let c=e.items??{},l=e=>i(M_(r,n,e));return(0,N.jsxs)(`div`,{className:`space-y-3 rounded-lg border border-[var(--glass-border)] bg-background/30 p-3`,children:[t.map((e,u)=>(0,N.jsxs)(`div`,{className:`rounded-lg border border-border/70 bg-card/50 p-3`,children:[(0,N.jsxs)(`div`,{className:`mb-3 flex items-center justify-between gap-2`,children:[(0,N.jsxs)(`span`,{className:`text-xs font-semibold text-muted-foreground`,children:[`#`,u+1]}),(0,N.jsx)(`button`,{type:`button`,className:`row-action`,title:K(a,`entryEdit.removeItem`),onClick:()=>l(t.filter((e,t)=>t!==u)),children:(0,N.jsx)(Tn,{className:`size-3.5`,"aria-hidden":!0})})]}),w_(c)===`object`&&c.properties?(0,N.jsx)(u_,{schema:c,value:r,path:[...n,String(u)],onChange:i,language:a,collectionName:o,mediaPurposes:s}):(0,N.jsx)(`input`,{className:`admin-input`,value:O_(e),onChange:e=>{let n=[...t];n[u]=e.target.value,l(n)}})]},u)),(0,N.jsxs)(V,{type:`button`,variant:`secondary`,size:`sm`,onClick:()=>l([...t,A_(c)]),children:[(0,N.jsx)(un,{className:`size-3.5`,"aria-hidden":!0}),K(a,`entryEdit.addItem`)]})]})}function p_({value:e,path:t,collectionName:n,mediaPurposes:r,language:i,onChange:a}){let o=M.useRef(null),[s,c]=M.useState(!1),[l,u]=M.useState(null),[d,f]=M.useState(null),p=Pg(r,n,t);async function m(e){c(!0),u(null);try{let t=await Mg({file:e,purposes:r,preferredPurpose:p});a(t.id),f(Fg(t))}catch(e){u(e instanceof Error?e.message:String(e))}finally{c(!1),o.current&&(o.current.value=``)}}return(0,N.jsxs)(`div`,{className:`space-y-2`,children:[(0,N.jsxs)(`div`,{className:`flex gap-2`,children:[(0,N.jsx)(`input`,{className:`admin-input min-w-0 flex-1`,value:O_(e),onChange:e=>a(e.target.value),placeholder:`media_assets id`}),(0,N.jsxs)(V,{type:`button`,variant:`secondary`,onClick:()=>o.current?.click(),disabled:s||r.length===0,title:p??K(i,`entryEdit.noMediaPurpose`),children:[(0,N.jsx)(Gt,{className:`size-4`,"aria-hidden":!0}),s?K(i,`entryEdit.uploadingMedia`):K(i,`entryEdit.uploadMedia`)]})]}),(0,N.jsx)(`input`,{ref:o,type:`file`,accept:`image/*`,className:`hidden`,onChange:e=>{let t=e.currentTarget.files?.[0];t&&m(t)}}),p?(0,N.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:p}):null,d?(0,N.jsx)(`a`,{className:`text-xs text-primary hover:underline`,href:d,target:`_blank`,rel:`noreferrer`,children:d}):null,l?(0,N.jsx)(`p`,{className:`text-xs text-destructive`,children:l}):null]})}function m_({value:e,onChange:t}){let[n,r]=M.useState(JSON.stringify(e??{},null,2)),[i,a]=M.useState(null);return M.useEffect(()=>{r(JSON.stringify(e??{},null,2))},[e]),(0,N.jsxs)(`div`,{className:`space-y-2`,children:[(0,N.jsx)(`textarea`,{className:`admin-textarea admin-textarea-compact 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,N.jsx)(`p`,{className:`text-xs text-destructive`,children:i}):null]})}function h_({sections:e,language:t,parentTitle:n,onSaved:r}){return e.length===0?(0,N.jsx)(sg,{children:(0,N.jsx)(c_,{title:K(t,`entryEdit.related`),body:K(t,`entryEdit.noRelated`)})}):(0,N.jsx)(N.Fragment,{children:e.map(e=>S_(e.collection)?(0,N.jsx)(g_,{section:e,language:t,parentTitle:n,onSaved:r},`${e.collection.name}:${e.relationship.childField}`):(0,N.jsxs)(sg,{children:[(0,N.jsx)(c_,{title:Mh(e.collection,t),body:K(t,`entryEdit.relationship`,{child:e.relationship.childField,parent:e.relationship.parentField})}),(0,N.jsx)(`div`,{className:`space-y-2`,children:e.entries.length===0?(0,N.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:K(t,`entryEdit.noChildEntries`)}):e.entries.map(e=>(0,N.jsxs)(`a`,{href:`/admin/c/${encodeURIComponent(e.collection)}/${encodeURIComponent(e.id)}`,className:`flex items-center justify-between gap-3 rounded-lg border border-[var(--glass-border)] bg-background/35 p-3 text-sm text-foreground transition hover:border-primary hover:bg-accent`,children:[(0,N.jsxs)(`span`,{className:`min-w-0`,children:[(0,N.jsx)(`span`,{className:`block truncate font-semibold`,children:C_(e.data,e.id)}),(0,N.jsxs)(`span`,{className:`block text-xs text-muted-foreground`,children:[e.collection,` / v`,e.version]})]}),(0,N.jsx)(zt,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":!0})]},e.id))})]},`${e.collection.name}:${e.relationship.childField}`))})}function g_({section:e,language:t,parentTitle:n,onSaved:r}){return(0,N.jsxs)(sg,{children:[(0,N.jsx)(c_,{title:K(t,`entryEdit.skus`),body:K(t,`entryEdit.skusBody`,{name:n})}),e.entries.length===0?(0,N.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:K(t,`entryEdit.noChildEntries`)}):(0,N.jsx)(`div`,{className:`space-y-3`,children:e.entries.map(e=>(0,N.jsx)(__,{entry:e,language:t,onSaved:r},e.id))})]})}function __({entry:e,language:t,onSaved:n}){let[r,i]=M.useState(e.data);M.useEffect(()=>i(e.data),[e.data]);let a=ft({mutationFn:t=>Ac.patch(`/entries/${encodeURIComponent(e.id)}`,{data:t,expectedVersion:e.version}),onSuccess:e=>{i(e.entry.data),n?.()}}),o=JSON.stringify(r)!==JSON.stringify(e.data),s=(e,t)=>{i(n=>({...n,[e]:t}))};return(0,N.jsxs)(`div`,{className:`rounded-lg border border-[var(--glass-border)] bg-background/35 p-3`,children:[(0,N.jsxs)(`div`,{className:`mb-3 flex items-start justify-between gap-3`,children:[(0,N.jsxs)(`div`,{className:`min-w-0`,children:[(0,N.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,N.jsx)(an,{className:`size-4 shrink-0 text-primary`,"aria-hidden":!0}),(0,N.jsx)(`h3`,{className:`truncate text-sm font-semibold`,title:O_(r.skuCode),children:O_(r.skuCode)||C_(e.data,e.id)})]}),(0,N.jsx)(v_,{value:r.optionValues})]}),(0,N.jsx)(`a`,{className:`row-action`,title:K(t,`entryEdit.openAdvanced`),href:`/admin/c/${encodeURIComponent(e.collection)}/${encodeURIComponent(e.id)}`,children:(0,N.jsx)(zt,{className:`size-3.5`,"aria-hidden":!0})})]}),(0,N.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:[(0,N.jsxs)(`label`,{className:`space-y-1 text-xs font-semibold text-muted-foreground`,children:[(0,N.jsx)(`span`,{children:K(t,`entryEdit.priceMinor`)}),(0,N.jsx)(`input`,{className:`admin-input`,type:`number`,min:0,value:k_(r.priceMinor),onChange:e=>s(`priceMinor`,y_(e.target.value))})]}),(0,N.jsxs)(`label`,{className:`space-y-1 text-xs font-semibold text-muted-foreground`,children:[(0,N.jsx)(`span`,{children:K(t,`entryEdit.compareAtPriceMinor`)}),(0,N.jsx)(`input`,{className:`admin-input`,type:`number`,min:0,value:k_(r.compareAtPriceMinor),onChange:e=>s(`compareAtPriceMinor`,y_(e.target.value))})]}),(0,N.jsxs)(`label`,{className:`space-y-1 text-xs font-semibold text-muted-foreground`,children:[(0,N.jsx)(`span`,{children:K(t,`entryEdit.inventoryMode`)}),(0,N.jsxs)(`select`,{className:`admin-input`,value:O_(r.inventoryMode),onChange:e=>s(`inventoryMode`,e.target.value),children:[(0,N.jsx)(`option`,{value:`tracked`,children:K(t,`entryEdit.inventoryTracked`)}),(0,N.jsx)(`option`,{value:`untracked`,children:K(t,`entryEdit.inventoryUntracked`)})]})]}),(0,N.jsxs)(`label`,{className:`space-y-1 text-xs font-semibold text-muted-foreground`,children:[(0,N.jsx)(`span`,{children:K(t,`entryEdit.currency`)}),(0,N.jsx)(`input`,{className:`admin-input`,value:O_(r.currency),onChange:e=>s(`currency`,e.target.value.toUpperCase())})]})]}),(0,N.jsxs)(`div`,{className:`mt-3 flex items-center justify-between gap-3`,children:[(0,N.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:K(t,`entryEdit.skuInlineHint`)}),(0,N.jsxs)(V,{type:`button`,size:`sm`,disabled:!o||a.isPending,onClick:()=>a.mutate(r),children:[(0,N.jsx)(pn,{className:`size-3.5`,"aria-hidden":!0}),a.isPending?K(t,`crud.saving`):K(t,`entryEdit.save`)]})]}),a.isError?(0,N.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:a.error instanceof Error?a.error.message:String(a.error)}):null]})}function v_({value:e}){if(!e||typeof e!=`object`||Array.isArray(e))return null;let t=Object.entries(e).filter(([,e])=>e!=null&&e!==``);return t.length===0?null:(0,N.jsx)(`div`,{className:`mt-2 flex flex-wrap gap-1.5`,children:t.map(([e,t])=>(0,N.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded-md border border-border bg-card/70 px-2 py-1 text-xs text-muted-foreground`,children:[(0,N.jsx)(`input`,{type:`checkbox`,checked:!0,readOnly:!0,className:`size-3 accent-[var(--primary)]`}),(0,N.jsx)(`span`,{className:`font-medium text-foreground/80`,children:D_(e)}),(0,N.jsx)(`span`,{children:O_(t)})]},e))})}function y_(e){return e===``?null:Number(e)}function b_(e,t){if(!e.parent)return null;let n=t[e.parent.childField];return typeof n!=`string`||!n?null:{href:`/admin/c/${encodeURIComponent(e.parent.collection)}?search=${encodeURIComponent(n)}`,label:`${e.parent.collection} / ${n}`}}function x_(e){return e.relationship.kind===`field`}function S_(e){let t=e.schema.properties??{};return(`sku`in t||`skuCode`in t)&&`priceMinor`in t&&`currency`in t&&`inventoryMode`in t}function C_(e,t){for(let t of[`title`,`name`,`slug`,`skuCode`,`orderId`,`id`]){let n=e[t];if(typeof n==`string`&&n.trim())return n}return t.slice(0,8)}function w_(e){return(Array.isArray(e.type)?e.type.find(e=>e!==`null`):e.type)||(e.properties?`object`:e.items?`array`:`string`)}function T_(e,t){let n=typeof e[`x-mcp-hint`]==`string`?e[`x-mcp-hint`]:``;return n.includes(`markdown`)||n.includes(`html`)||/body|description|content|intro|notes|summary/i.test(t)||typeof e.maxLength==`number`&&e.maxLength>160}function E_(e){return e[`x-mantle-ref`]===`media_assets`}function D_(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1 $2`).replace(/[_-]+/g,` `).replace(/\b\w/g,e=>e.toUpperCase())}function O_(e){return e==null?``:typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`?String(e):JSON.stringify(e)}function k_(e){return typeof e==`number`&&Number.isFinite(e)||typeof e==`string`?e:``}function A_(e){if(e.default!==void 0)return e.default;let t=w_(e);return t===`object`?{}:t===`array`?[]:t===`boolean`?!1:t===`number`||t===`integer`?0:``}function j_(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 M_(e,t,n){if(t.length===0)return P_(n);let r=N_(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]??(F_(r)?[]:{}),i=i[e]}else if(typeof i==`object`&&i){let e=i;e[n]=e[n]??(F_(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 N_(e){return typeof structuredClone==`function`?structuredClone(e):JSON.parse(JSON.stringify(e))}function P_(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:{}}function F_(e){return/^\d+$/.test(e)}var I_=`## 商品介紹\\n\\n用清楚的段落描述服務內容、交付方式與購買須知。\\n\\n- 支援 Markdown\\n- 可切換 HTML source\\n- 可用 Rich Editor 快速排版`;function L_(){let{language:e}=G(),[t,n]=M.useState(`rich`),[r,i]=M.useState(I_),a=M.useMemo(()=>r_(r,t),[r,t]);return(0,N.jsxs)(`div`,{className:`space-y-6`,children:[(0,N.jsx)(og,{eyebrow:`AotterMantle`,title:K(e,`editor.page.title`),description:K(e,`editor.page.body`),actions:(0,N.jsxs)(V,{children:[(0,N.jsx)(pn,{className:`size-4`,"aria-hidden":!0}),K(e,`editor.saveDraft`)]})}),(0,N.jsxs)(`div`,{className:`grid grid-cols-1 gap-4 xl:grid-cols-[minmax(0,1fr)_22rem]`,children:[(0,N.jsxs)(sg,{className:`space-y-4`,children:[(0,N.jsxs)(`div`,{className:`grid grid-cols-1 gap-3 md:grid-cols-2`,children:[(0,N.jsxs)(`label`,{className:`grid gap-1 text-sm font-medium`,children:[K(e,`editor.titleLabel`),(0,N.jsx)(`input`,{className:`admin-input`,defaultValue:`品牌定位快思衝刺`})]}),(0,N.jsxs)(`label`,{className:`grid gap-1 text-sm font-medium`,children:[K(e,`editor.slugLabel`),(0,N.jsx)(`input`,{className:`admin-input font-mono`,defaultValue:`brand-positioning-sprint`})]})]}),(0,N.jsx)(Gg,{label:K(e,`editor.bodyLabel`),value:r,onChange:i,mode:t,onModeChange:n})]}),(0,N.jsxs)(sg,{className:`space-y-4`,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`p`,{className:`label-eyebrow`,children:K(e,`editor.preview`)}),(0,N.jsx)(`div`,{className:`editor-preview`,dangerouslySetInnerHTML:{__html:a}})]}),(0,N.jsxs)(`div`,{className:`grid gap-3 text-sm text-muted-foreground`,children:[(0,N.jsx)(`p`,{children:K(e,`editor.markdownHint`)}),(0,N.jsx)(`p`,{children:K(e,`editor.htmlHint`)}),(0,N.jsx)(`p`,{children:K(e,`editor.richHint`)})]})]})]})]})}function R_(){let{language:e}=G(),[t,n]=M.useState(``),[r,i]=M.useState(`all`),[a,o]=M.useState(`newest`),[s,c]=M.useState(null),l=M.useMemo(()=>{let e=t.trim().toLowerCase();return[...jg].filter(e=>r===`all`||e.tag===r).filter(t=>!e||[t.name,t.type,t.tag,t.alt,t.url].join(` `).toLowerCase().includes(e)).sort((e,t)=>a===`name`?e.name.localeCompare(t.name):a===`type`?e.type.localeCompare(t.type)||e.name.localeCompare(t.name):t.createdAt.localeCompare(e.createdAt))},[r,t,a]);async function u(e){try{let t=new URL(e.url,window.location.origin).toString();await navigator.clipboard.writeText(t),c(e.name),window.setTimeout(()=>c(null),1500)}catch{c(null)}}return(0,N.jsxs)(`div`,{className:`space-y-6`,children:[(0,N.jsx)(og,{eyebrow:`AotterMantle`,title:K(e,`media.page.title`),description:K(e,`media.page.body`),actions:(0,N.jsxs)(V,{children:[(0,N.jsx)(Gt,{className:`size-4`,"aria-hidden":!0}),K(e,`media.upload`)]})}),(0,N.jsxs)(sg,{className:`media-album`,children:[(0,N.jsxs)(`div`,{className:`media-toolbar`,children:[(0,N.jsxs)(`label`,{className:`admin-search media-search`,children:[(0,N.jsx)(mn,{className:`size-4`,"aria-hidden":!0}),(0,N.jsx)(`input`,{value:t,onChange:e=>n(e.target.value),placeholder:K(e,`media.search`)})]}),(0,N.jsx)(`div`,{className:`segmented-control media-filter`,"aria-label":K(e,`media.filter`),children:[`all`,`product`,`brand`,`content`].map(t=>(0,N.jsx)(`button`,{type:`button`,"data-active":r===t,onClick:()=>i(t),title:z_(e,t),children:z_(e,t)},t))}),(0,N.jsxs)(`label`,{className:`media-sort`,title:K(e,`media.sort`),children:[(0,N.jsx)(St,{className:`size-4`,"aria-hidden":!0}),(0,N.jsxs)(`select`,{value:a,onChange:e=>o(e.target.value),children:[(0,N.jsx)(`option`,{value:`newest`,children:K(e,`media.sort.newest`)}),(0,N.jsx)(`option`,{value:`name`,children:K(e,`media.sort.name`)}),(0,N.jsx)(`option`,{value:`type`,children:K(e,`media.sort.type`)})]})]})]}),(0,N.jsxs)(`div`,{className:`media-dropzone-compact`,children:[(0,N.jsx)(Gt,{className:`size-5`,"aria-hidden":!0}),(0,N.jsx)(`strong`,{children:K(e,`media.dropzone`)}),(0,N.jsx)(`span`,{children:K(e,`media.dropzoneHint`)})]}),(0,N.jsx)(`div`,{className:`media-grid album-grid`,children:l.length===0?(0,N.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:K(e,`media.empty`)}):l.map(t=>(0,N.jsxs)(`article`,{className:`media-card album-card`,children:[(0,N.jsx)(`div`,{className:`media-thumb album-thumb`,style:{"--media-tone":t.tone},children:(0,N.jsx)(`span`,{className:`media-kind`,children:t.type.replace(`image/`,``).toUpperCase()})}),(0,N.jsxs)(`div`,{className:`album-card-body`,children:[(0,N.jsxs)(`div`,{className:`album-title-row`,children:[(0,N.jsxs)(`div`,{className:`min-w-0`,children:[(0,N.jsx)(`h2`,{className:`truncate text-base`,title:t.name,children:t.name}),(0,N.jsx)(`p`,{className:`truncate text-sm text-muted-foreground`,title:t.url,children:t.url})]}),(0,N.jsx)(`button`,{type:`button`,className:`row-action`,onClick:()=>u(t),title:K(e,`media.copyUrl`),"aria-label":K(e,`media.copyUrl`),children:s===t.name?(0,N.jsx)(Dt,{className:`size-3.5`,"aria-hidden":!0}):(0,N.jsx)(It,{className:`size-3.5`,"aria-hidden":!0})})]}),(0,N.jsxs)(`div`,{className:`album-meta`,children:[(0,N.jsx)(`span`,{children:t.size}),(0,N.jsx)(`span`,{children:t.createdAt})]}),(0,N.jsxs)(`label`,{className:`grid gap-1 text-sm`,children:[K(e,`media.alt`),(0,N.jsx)(`input`,{className:`admin-input`,defaultValue:t.alt})]}),(0,N.jsxs)(`div`,{className:`album-actions`,children:[(0,N.jsxs)(`span`,{className:`badge-status bg-accent text-accent-foreground`,children:[(0,N.jsx)(xn,{className:`mr-1 size-3`,"aria-hidden":!0}),t.tag]}),(0,N.jsxs)(V,{variant:`outline`,size:`sm`,title:K(e,`media.crop`),children:[(0,N.jsx)(Lt,{className:`size-3.5`,"aria-hidden":!0}),K(e,`media.crop`)]})]})]})]},t.name))})]})]})}function z_(e,t){switch(t){case`all`:return K(e,`media.filter.all`);case`product`:return K(e,`media.filter.product`);case`brand`:return K(e,`media.filter.brand`);case`content`:return K(e,`media.filter.content`)}}var B_=new Intl.DateTimeFormat(void 0,{dateStyle:`short`,timeStyle:`short`});function V_(){let{language:e}=G(),t=P({queryKey:[`approvals`,e],queryFn:()=>H_(e)}),n=t.data??[],r=n.reduce((e,t)=>e+t.entries.length,0);return(0,N.jsxs)(`div`,{children:[(0,N.jsx)(og,{eyebrow:`AotterMantle`,title:K(e,`approvals.title`),description:K(e,`approvals.body`),actions:(0,N.jsx)(gg,{status:`review`})}),t.isLoading?(0,N.jsx)(W_,{}):null,t.isError?(0,N.jsx)(lg,{error:t.error}):null,!t.isLoading&&!t.isError&&r===0?(0,N.jsx)(cg,{icon:Nt,title:K(e,`approvals.emptyTitle`),description:K(e,`approvals.emptyBody`)}):null,r>0?(0,N.jsx)(`div`,{className:`space-y-4`,children:n.map(t=>(0,N.jsxs)(sg,{children:[(0,N.jsxs)(`div`,{className:`mb-4 flex flex-wrap items-center justify-between gap-3`,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`h2`,{className:`text-lg font-semibold`,children:Mh(t.collection,e)}),(0,N.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:K(e,`approvals.groupBody`,{count:String(t.entries.length),status:kh(e,`review`)})})]}),(0,N.jsx)(V,{asChild:!0,variant:`secondary`,size:`sm`,children:(0,N.jsxs)(`a`,{href:`/admin/c/${encodeURIComponent(t.collection.name)}?status=review`,children:[K(e,`approvals.openCollection`),(0,N.jsx)(zt,{className:`size-3.5`,"aria-hidden":!0})]})})]}),(0,N.jsx)(`div`,{className:`divide-y divide-[var(--glass-border)] overflow-hidden rounded-lg border border-[var(--glass-border)] bg-background/25`,children:t.entries.map(t=>(0,N.jsx)(U_,{entry:t,language:e},t.id))})]},t.collection.name))}):null]})}async function H_(e){let{collections:t}=await Ac.get(`/collections`),n=t.filter(e=>e.lifecycle===`editorial`);return(await Promise.all(n.map(async t=>{let n=new URLSearchParams({collection:t.name,status:`review`,limit:`99`,locale:e});return{collection:t,entries:(await Ac.get(`/entries?${n.toString()}`)).items}}))).filter(e=>e.entries.length>0)}function U_({entry:e,language:t}){let n=G_(e,t);return(0,N.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 p-3`,children:[(0,N.jsxs)(`div`,{className:`min-w-0`,children:[(0,N.jsx)(`a`,{href:`/admin/c/${encodeURIComponent(e.collection)}/${encodeURIComponent(e.id)}`,className:`block truncate text-sm font-semibold text-foreground hover:underline`,title:n,children:n}),(0,N.jsxs)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:[e.collection,` / v`,e.version,` / `,K_(e.updated_at)]})]}),(0,N.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[(0,N.jsx)(gg,{status:e.status}),(0,N.jsx)(V,{asChild:!0,size:`sm`,children:(0,N.jsx)(`a`,{href:`/admin/c/${encodeURIComponent(e.collection)}/${encodeURIComponent(e.id)}`,children:K(t,`approvals.reviewEntry`)})})]})]})}function W_(){return(0,N.jsx)(`div`,{className:`glass-card overflow-hidden`,children:[0,1,2].map(e=>(0,N.jsxs)(`div`,{className:`flex items-center gap-4 border-b border-[var(--glass-border)] p-4 last:border-b-0`,children:[(0,N.jsx)(`div`,{className:`h-3 w-32 animate-pulse rounded bg-muted`}),(0,N.jsx)(`div`,{className:`h-3 flex-1 animate-pulse rounded bg-muted`}),(0,N.jsx)(`div`,{className:`h-8 w-24 animate-pulse rounded bg-muted`})]},e))})}function G_(e,t){return typeof e.title==`string`&&e.title.trim()?e.title:e.title==null||e.title===``?K(t,`collection.untitled`):JSON.stringify(e.title)}function K_(e){if(!Number.isFinite(e))return`-`;try{return B_.format(new Date(e))}catch{return`-`}}function q_({path:e,intent:t=`missing`,kind:n=`route`}){let{language:r}=G(),i=t===`planned`&&n===`settings`;return(0,N.jsxs)(`div`,{className:`glass-card animate-rise mx-auto max-w-md p-8 text-center`,children:[(0,N.jsx)(`h1`,{className:`mb-2 text-xl`,children:i?K(r,`settings.planned.title`):t===`planned`?K(r,`system.notFound.plannedTitle`):K(r,`system.notFound.title`)}),(0,N.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:i?K(r,`settings.planned.body`):(0,N.jsxs)(N.Fragment,{children:[K(r,`system.notFound.body`),` `,(0,N.jsx)(`code`,{className:`font-mono text-xs`,children:e}),`.`]})}),(0,N.jsx)(`p`,{className:`mt-4 text-sm`,children:(0,N.jsx)(`a`,{href:`/admin`,className:`text-primary hover:underline`,children:K(r,`system.notFound.back`)})})]})}function J_(){let{language:e,direction:t,theme:n,setLanguage:r,setTheme:i}=G();return(0,N.jsxs)(`div`,{className:`mx-auto max-w-4xl`,children:[(0,N.jsx)(og,{eyebrow:K(e,`preferences.heading`),title:K(e,`preferences.page.title`),description:K(e,`preferences.page.body`)}),(0,N.jsxs)(`div`,{className:`grid gap-4`,children:[(0,N.jsxs)(sg,{children:[(0,N.jsx)(X_,{icon:Yt,title:K(e,`preferences.language`),body:K(e,`preferences.page.languageBody`)}),(0,N.jsx)(Y_,{language:e,onChange:r})]}),(0,N.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,N.jsxs)(sg,{children:[(0,N.jsx)(X_,{icon:nn,title:K(e,`preferences.appearance`),body:K(e,`preferences.page.appearanceBody`)}),(0,N.jsx)(`div`,{className:`mt-4 grid gap-2`,children:Q_(e).map(e=>(0,N.jsx)(Z_,{selected:e.value===n,onClick:()=>i(e.value),icon:e.icon,children:e.label},e.value))})]}),(0,N.jsxs)(sg,{children:[(0,N.jsx)(X_,{icon:ln,title:K(e,`preferences.direction`),body:K(e,`preferences.direction.auto`)}),(0,N.jsx)(`div`,{className:`mt-4 rounded-lg border border-border/70 bg-background/30 px-3 py-2 text-sm`,children:(0,N.jsx)(`span`,{className:`text-muted-foreground`,children:t===`rtl`?K(e,`preferences.rtl`):K(e,`preferences.ltr`)})})]})]})]})]})}function Y_({language:e,onChange:t}){let[n,r]=M.useState(!1),[i,a]=M.useState(``),o=Bc.find(t=>t.value===e)??Bc[0],s=i.trim().toLowerCase(),c=s?Bc.filter(e=>[e.nativeLabel,e.label,e.value,e.htmlLang,e.direction].join(` `).toLowerCase().includes(s)):Bc;return(0,N.jsxs)(`div`,{className:`relative mt-4`,children:[(0,N.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,N.jsxs)(`span`,{className:`min-w-0`,children:[(0,N.jsx)(`span`,{className:`block truncate font-medium text-foreground`,children:o.nativeLabel}),(0,N.jsxs)(`span`,{className:`block truncate text-xs text-muted-foreground`,children:[o.label,` · `,o.value,` · `,el(o.value).toUpperCase()]})]}),(0,N.jsx)(At,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":!0})]}),n?(0,N.jsxs)(`div`,{className:`absolute z-30 mt-2 w-full overflow-hidden rounded-xl border border-[var(--glass-border)] bg-card shadow-[var(--glass-shadow-lg)] backdrop-blur-md`,children:[(0,N.jsxs)(`div`,{className:`flex items-center gap-2 border-b border-[var(--glass-border)] px-3 py-2`,children:[(0,N.jsx)(mn,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":!0}),(0,N.jsx)(`input`,{autoFocus:!0,value:i,onChange:e=>a(e.target.value),onKeyDown:e=>{e.key===`Escape`&&r(!1)},placeholder:K(e,`preferences.language.search`),className:`min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground`})]}),(0,N.jsx)(`div`,{className:`max-h-72 overflow-y-auto p-1`,children:c.length===0?(0,N.jsx)(`div`,{className:`px-3 py-6 text-center text-sm text-muted-foreground`,children:K(e,`preferences.language.noResults`)}):c.map(n=>(0,N.jsxs)(`button`,{type:`button`,onClick:()=>{t(n.value),a(``),r(!1)},className:B(`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,N.jsxs)(`span`,{className:`min-w-0`,children:[(0,N.jsx)(`span`,{className:`block truncate font-medium`,children:n.nativeLabel}),(0,N.jsxs)(`span`,{className:`block truncate text-xs opacity-75`,children:[n.label,` · `,n.value,` · `,n.direction.toUpperCase()]})]}),(0,N.jsx)(Dt,{className:B(`size-4 shrink-0 text-primary`,n.value===e?`opacity-100`:`opacity-0`),"aria-hidden":!0})]},n.value))})]}):null]})}function X_({icon:e,title:t,body:n}){return(0,N.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,N.jsx)(`div`,{className:`rounded-xl bg-primary/15 p-2 text-primary`,children:(0,N.jsx)(e,{className:`size-5`,"aria-hidden":!0})}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`h2`,{className:`text-lg`,children:t}),(0,N.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:n})]})]})}function Z_({selected:e,onClick:t,icon:n,children:r}){return(0,N.jsxs)(`button`,{type:`button`,onClick:t,className:B(`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,N.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[n?(0,N.jsx)(n,{className:`size-4 shrink-0`,"aria-hidden":!0}):null,(0,N.jsx)(`span`,{className:`truncate`,children:r})]}),(0,N.jsx)(Dt,{className:B(`size-4 shrink-0 text-primary`,e?`opacity-100`:`opacity-0`),"aria-hidden":!0})]})}function Q_(e){return[{value:`light`,label:K(e,`preferences.light`),icon:yn},{value:`dark`,label:K(e,`preferences.dark`),icon:rn},{value:`system`,label:K(e,`preferences.system`),icon:nn}]}function $_(){let{language:e}=G(),t=P({queryKey:[`site-settings`],queryFn:()=>Ac.get(`/site-settings`)}),[n,r]=M.useState(null),[i,a]=M.useState(`brand`);M.useEffect(()=>{t.data&&r(t.data)},[t.data]);let o=ft({mutationFn:e=>Ac.patch(`/site-settings`,e),onSuccess:e=>r(e)});return t.isLoading||!n?(0,N.jsx)(`div`,{className:`glass-card h-64 animate-pulse`}):t.isError?(0,N.jsx)(lg,{error:t.error}):(0,N.jsxs)(`div`,{className:`space-y-6`,children:[(0,N.jsx)(og,{eyebrow:`AotterMantle`,title:K(e,`settings.page.title`),description:K(e,`settings.page.body`),actions:(0,N.jsxs)(V,{onClick:()=>o.mutate(n),disabled:o.isPending,children:[(0,N.jsx)(pn,{className:`size-4`,"aria-hidden":!0}),o.isPending?K(e,`crud.saving`):K(e,`productEdit.save`)]})}),o.isError?(0,N.jsx)(lg,{error:o.error}):null,(0,N.jsxs)(`div`,{role:`tablist`,"aria-label":K(e,`settings.tabsLabel`),className:`inline-flex gap-1 rounded-lg border border-[var(--glass-border)] bg-background/60 p-1`,children:[(0,N.jsx)(ev,{active:i===`brand`,icon:_n,label:K(e,`settings.tab.brand`),onClick:()=>a(`brand`)}),(0,N.jsx)(ev,{active:i===`tracking`,icon:Et,label:K(e,`settings.tab.tracking`),onClick:()=>a(`tracking`)})]}),i===`brand`?(0,N.jsxs)(sg,{className:`grid max-w-5xl gap-4`,children:[(0,N.jsx)(tv,{title:K(e,`settings.brandSection`),body:K(e,`settings.brandSectionBody`)}),(0,N.jsx)(nv,{label:K(e,`settings.siteBrand`),children:(0,N.jsx)(`input`,{className:`admin-input`,value:n.brand,onChange:e=>rv(r,`brand`,e.target.value)})}),(0,N.jsx)(nv,{label:K(e,`settings.siteTitle`),children:(0,N.jsx)(`input`,{className:`admin-input`,value:n.title,onChange:e=>rv(r,`title`,e.target.value)})}),(0,N.jsx)(nv,{label:K(e,`settings.siteDescription`),children:(0,N.jsx)(`textarea`,{className:`admin-textarea min-h-24`,value:n.description,onChange:e=>rv(r,`description`,e.target.value)})}),(0,N.jsx)(nv,{label:K(e,`productEdit.brandIntro`),children:(0,N.jsx)(`textarea`,{className:`admin-textarea min-h-32`,value:n.brandIntro,onChange:e=>rv(r,`brandIntro`,e.target.value)})}),(0,N.jsx)(nv,{label:K(e,`productEdit.serviceIncludes`),children:(0,N.jsx)(`textarea`,{className:`admin-textarea min-h-32`,value:n.serviceIncludes,onChange:e=>rv(r,`serviceIncludes`,e.target.value)})})]}):null,i===`tracking`?(0,N.jsxs)(sg,{className:`grid max-w-5xl gap-4`,children:[(0,N.jsx)(tv,{title:K(e,`settings.trackingSection`),body:K(e,`settings.trackingSectionBody`)}),(0,N.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,N.jsx)(nv,{label:K(e,`settings.ga4MeasurementId`),description:K(e,`settings.ga4MeasurementIdHelp`),children:(0,N.jsx)(`input`,{className:`admin-input`,value:n.ga4MeasurementId,placeholder:`G-XXXXXXXXXX`,onChange:e=>rv(r,`ga4MeasurementId`,e.target.value)})}),(0,N.jsx)(nv,{label:K(e,`settings.facebookPixelId`),description:K(e,`settings.facebookPixelIdHelp`),children:(0,N.jsx)(`input`,{className:`admin-input`,value:n.facebookPixelId,placeholder:`123456789012345`,onChange:e=>rv(r,`facebookPixelId`,e.target.value)})})]})]}):null]})}function ev({active:e,icon:t,label:n,onClick:r}){return(0,N.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":e,className:B(`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,N.jsx)(t,{className:`size-4`,"aria-hidden":!0}),n]})}function tv({title:e,body:t}){return(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`h2`,{className:`text-lg font-semibold`,children:e}),(0,N.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:t})]})}function nv({label:e,description:t,children:n}){return(0,N.jsxs)(`label`,{className:`grid gap-1.5 text-sm font-medium`,children:[(0,N.jsx)(`span`,{children:e}),t?(0,N.jsx)(`span`,{className:`text-xs font-normal text-muted-foreground`,children:t}):null,n]})}function rv(e,t,n){e(e=>e&&{...e,[t]:n})}var iv=[`owner`,`editor`,`contributor`,`none`],av=[`owner`,`editor`,`contributor`];function ov(){let{language:e}=G(),t=Ze(),n=P({queryKey:[`me`],queryFn:()=>Ac.get(`/me`),retry:!1}),r=P({queryKey:[`staff`],queryFn:()=>Ac.get(`/staff`),retry:!1}),i=()=>{t.invalidateQueries({queryKey:[`staff`]})},a=ft({mutationFn:e=>Ac.patch(`/staff/${encodeURIComponent(e.userId)}/role`,{role:e.role}),onSettled:i}),o=ft({mutationFn:e=>Ac.delete(`/staff/invitations/${encodeURIComponent(e)}`),onSettled:i});if(r.isError)return(0,N.jsx)(lg,{error:r.error});if(r.isLoading||!r.data)return(0,N.jsx)(`div`,{className:`glass-card h-64 animate-pulse`});let s=t=>K(e,`staff.role.${t}`);return(0,N.jsxs)(`div`,{className:`space-y-6`,children:[(0,N.jsx)(og,{eyebrow:`AotterMantle`,title:K(e,`staff.page.title`),description:K(e,`staff.page.body`)}),a.isError?(0,N.jsx)(lg,{error:lv(a.error)}):null,o.isError?(0,N.jsx)(lg,{error:lv(o.error)}):null,(0,N.jsx)(sv,{onInvited:i}),(0,N.jsx)(sg,{className:`overflow-x-auto p-0`,children:(0,N.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,N.jsx)(`thead`,{children:(0,N.jsxs)(`tr`,{className:`border-b text-left [&>th]:px-4 [&>th]:py-3 [&>th]:font-medium`,children:[(0,N.jsx)(`th`,{children:K(e,`staff.table.name`)}),(0,N.jsx)(`th`,{children:K(e,`staff.table.email`)}),(0,N.jsx)(`th`,{children:K(e,`staff.table.status`)}),(0,N.jsx)(`th`,{children:K(e,`staff.table.role`)})]})}),(0,N.jsx)(`tbody`,{children:r.data.users.map(t=>{let r=t.id===n.data?.userId,i=!t.emailVerified&&!t.githubLogin,c=cv(t.role)?t.role:`none`;return(0,N.jsxs)(`tr`,{className:`border-b last:border-b-0 [&>td]:px-4 [&>td]:py-3`,children:[(0,N.jsx)(`td`,{children:t.name}),(0,N.jsx)(`td`,{children:t.email}),(0,N.jsx)(`td`,{children:i?(0,N.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,N.jsx)(`span`,{className:`rounded bg-amber-100 px-2 py-0.5 text-xs text-amber-800`,children:K(e,`staff.badge.invited`)}),(0,N.jsx)(V,{variant:`ghost`,size:`sm`,disabled:o.isPending,onClick:()=>o.mutate(t.id),children:K(e,`staff.invite.revoke`)})]}):t.githubLogin?`GitHub: ${t.githubLogin}`:K(e,`staff.status.emailSignIn`)}),(0,N.jsx)(`td`,{children:r?(0,N.jsxs)(`span`,{className:`text-muted-foreground`,children:[s(c),` · `,K(e,`staff.self`)]}):(0,N.jsx)(`select`,{className:`admin-input max-w-56`,value:c,disabled:a.isPending,onChange:e=>{let n=e.target.value;a.mutate({userId:t.id,role:cv(n)?n:null})},children:iv.map(e=>(0,N.jsx)(`option`,{value:e,children:s(e)},e))})})]},t.id)})})]})}),(0,N.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:K(e,`staff.invite.hint`)})]})}function sv({onInvited:e}){let{language:t}=G(),[n,r]=M.useState(``),[i,a]=M.useState(`contributor`),o=ft({mutationFn:()=>Ac.post(`/staff/invitations`,{email:n,role:i}),onSuccess:()=>{r(``),e()}});return(0,N.jsxs)(sg,{className:`grid gap-4`,children:[(0,N.jsx)(`h2`,{className:`text-sm font-semibold`,children:K(t,`staff.invite.title`)}),o.isError?(0,N.jsx)(lg,{error:lv(o.error)}):null,(0,N.jsxs)(`div`,{className:`flex flex-wrap items-end gap-3`,children:[(0,N.jsxs)(`label`,{className:`grid min-w-64 flex-1 gap-1.5 text-sm font-medium`,children:[(0,N.jsx)(`span`,{children:K(t,`staff.invite.emailLabel`)}),(0,N.jsx)(`input`,{className:`admin-input`,type:`email`,value:n,placeholder:K(t,`staff.invite.emailPlaceholder`),onChange:e=>r(e.target.value)})]}),(0,N.jsxs)(`label`,{className:`grid gap-1.5 text-sm font-medium`,children:[(0,N.jsx)(`span`,{children:K(t,`staff.invite.roleLabel`)}),(0,N.jsx)(`select`,{className:`admin-input`,value:i,onChange:e=>{let t=e.target.value;cv(t)&&a(t)},children:av.map(e=>(0,N.jsx)(`option`,{value:e,children:K(t,`staff.role.${e}`)},e))})]}),(0,N.jsxs)(V,{onClick:()=>o.mutate(),disabled:o.isPending||n.trim()===``,children:[(0,N.jsx)(jn,{className:`size-4`,"aria-hidden":!0}),o.isPending?K(t,`staff.invite.sending`):K(t,`staff.invite.button`)]})]})]})}function cv(e){return e===`owner`||e===`editor`||e===`contributor`}function lv(e){if(e instanceof Oc){let t=e.body?.diagnostic?.message;if(t)return Error(t)}return e}function uv(){let e=zc();return e.pathname===`/admin/sign-in`?(0,N.jsx)(Qh,{}):(0,N.jsx)(dv,{path:e.pathname})}function dv({path:e}){let t=P({queryKey:[`me`],queryFn:()=>Ac.get(`/me`),retry:!1}),n=t.isError&&t.error instanceof Oc&&t.error.status===401;if((0,M.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,N.jsx)(Kh,{});if(t.isError&&t.error instanceof Oc&&t.error.status===403)return(0,N.jsx)(Jh,{login:(t.error.body??{}).login??null});if(t.isError)return(0,N.jsx)(qh,{error:t.error});if(t.isLoading)return(0,N.jsx)(Kh,{});let r=e.match(/^\/admin\/c\/([^/]+)\/?$/);if(r)return(0,N.jsx)(Uh,{children:(0,N.jsx)(yg,{collectionName:decodeURIComponent(r[1])})});let i=e.match(/^\/admin\/c\/([^/]+)\/([^/]+)\/?$/);return i?(0,N.jsx)(Uh,{children:(0,N.jsx)(s_,{collectionName:decodeURIComponent(i[1]),entryId:decodeURIComponent(i[2])})}):e===`/admin`||e===`/admin/`?(0,N.jsx)(Uh,{children:(0,N.jsx)(ug,{})}):e===`/admin/editor`?(0,N.jsx)(Uh,{children:(0,N.jsx)(L_,{})}):e===`/admin/media`?(0,N.jsx)(Uh,{children:(0,N.jsx)(R_,{})}):e===`/admin/preferences`?(0,N.jsx)(Uh,{children:(0,N.jsx)(J_,{})}):e===`/admin/settings`?(0,N.jsx)(Uh,{children:(0,N.jsx)($_,{})}):e===`/admin/staff`?(0,N.jsx)(Uh,{children:(0,N.jsx)(ov,{})}):e===`/admin/approvals`?(0,N.jsx)(Uh,{children:(0,N.jsx)(V_,{})}):(0,N.jsx)(Uh,{children:(0,N.jsx)(q_,{path:e})})}var fv=new qe({defaultOptions:{queries:{retry:(e,t)=>t instanceof Oc&&[401,403].includes(t.status)?!1:e<2,refetchOnWindowFocus:!1,staleTime:1e4}}}),pv=document.getElementById(`root`);if(!pv)throw Error(`Missing #root element.`);In.createRoot(pv).render((0,N.jsx)(M.StrictMode,{children:(0,N.jsx)(Qe,{client:fv,children:(0,N.jsx)(Kc,{children:(0,N.jsx)(Lc,{children:(0,N.jsx)(uv,{})})})})}));</script>