@dhzh/foundry 3.1.3 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,179 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MenuBottomSheet-CvQo99mU.js","assets/BottomSheet-CLUxnQLq.js"])))=>i.map(i=>d[i]);
2
- function kM(e,t){for(var r=0;r<t.length;r++){const s=t[r];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in e)){const l=Object.getOwnPropertyDescriptor(s,o);l&&Object.defineProperty(e,o,l.get?l:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&s(u)}).observe(document,{childList:!0,subtree:!0});function r(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function s(o){if(o.ep)return;o.ep=!0;const l=r(o);fetch(o.href,l)}})();function vM(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ey={exports:{}},xu={};var xS;function wM(){if(xS)return xu;xS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(s,o,l){var u=null;if(l!==void 0&&(u=""+l),o.key!==void 0&&(u=""+o.key),"key"in o){l={};for(var f in o)f!=="key"&&(l[f]=o[f])}else l=o;return o=l.ref,{$$typeof:e,type:s,key:u,ref:o!==void 0?o:null,props:l}}return xu.Fragment=t,xu.jsx=r,xu.jsxs=r,xu}var gS;function SM(){return gS||(gS=1,ey.exports=wM()),ey.exports}var x=SM(),ty={exports:{}},nt={};var mS;function EM(){if(mS)return nt;mS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),k=Symbol.for("react.view_transition"),v=Symbol.iterator;function w(I){return I===null||typeof I!="object"?null:(I=v&&I[v]||I["@@iterator"],typeof I=="function"?I:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,R={};function C(I,ee,pe){this.props=I,this.context=ee,this.refs=R,this.updater=pe||S}C.prototype.isReactComponent={},C.prototype.setState=function(I,ee){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,ee,"setState")},C.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function T(){}T.prototype=C.prototype;function A(I,ee,pe){this.props=I,this.context=ee,this.refs=R,this.updater=pe||S}var N=A.prototype=new T;N.constructor=A,E(N,C.prototype),N.isPureReactComponent=!0;var L=Array.isArray;function D(){}var j={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function M(I,ee,pe){var ue=pe.ref;return{$$typeof:e,type:I,key:ee,ref:ue!==void 0?ue:null,props:pe}}function H(I,ee){return M(I.type,ee,I.props)}function F(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function q(I){var ee={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(pe){return ee[pe]})}var B=/\/+/g;function U(I,ee){return typeof I=="object"&&I!==null&&I.key!=null?q(""+I.key):ee.toString(36)}function _(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status=="string"?I.then(D,D):(I.status="pending",I.then(function(ee){I.status==="pending"&&(I.status="fulfilled",I.value=ee)},function(ee){I.status==="pending"&&(I.status="rejected",I.reason=ee)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function P(I,ee,pe,ue,ve){var xe=typeof I;(xe==="undefined"||xe==="boolean")&&(I=null);var $e=!1;if(I===null)$e=!0;else switch(xe){case"bigint":case"string":case"number":$e=!0;break;case"object":switch(I.$$typeof){case e:case t:$e=!0;break;case y:return $e=I._init,P($e(I._payload),ee,pe,ue,ve)}}if($e)return ve=ve(I),$e=ue===""?"."+U(I,0):ue,L(ve)?(pe="",$e!=null&&(pe=$e.replace(B,"$&/")+"/"),P(ve,ee,pe,"",function(Re){return Re})):ve!=null&&(F(ve)&&(ve=H(ve,pe+(ve.key==null||I&&I.key===ve.key?"":(""+ve.key).replace(B,"$&/")+"/")+$e)),ee.push(ve)),1;$e=0;var te=ue===""?".":ue+":";if(L(I))for(var he=0;he<I.length;he++)ue=I[he],xe=te+U(ue,he),$e+=P(ue,ee,pe,xe,ve);else if(he=w(I),typeof he=="function")for(I=he.call(I),he=0;!(ue=I.next()).done;)ue=ue.value,xe=te+U(ue,he++),$e+=P(ue,ee,pe,xe,ve);else if(xe==="object"){if(typeof I.then=="function")return P(_(I),ee,pe,ue,ve);throw ee=String(I),Error("Objects are not valid as a React child (found: "+(ee==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":ee)+"). If you meant to render a collection of children, use an array instead.")}return $e}function G(I,ee,pe){if(I==null)return I;var ue=[],ve=0;return P(I,ue,"","",function(xe){return ee.call(pe,xe,ve++)}),ue}function X(I){if(I._status===-1){var ee=I._result,pe=ee();pe.then(function(ue){(I._status===0||I._status===-1)&&(I._status=1,I._result=ue,pe.status===void 0&&(pe.status="fulfilled",pe.value=ue))},function(ue){(I._status===0||I._status===-1)&&(I._status=2,I._result=ue,pe.status===void 0&&(pe.status="rejected",pe.reason=ue))}),I._status===-1&&(I._status=0,I._result=pe)}if(I._status===1)return I._result.default;throw I._result}var Z=typeof reportError=="function"?reportError:function(I){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ee=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I=="object"&&I!==null&&typeof I.message=="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(ee))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",I);return}console.error(I)};function Q(I){var ee=j.T,pe={};pe.types=ee!==null?ee.types:null,j.T=pe;try{var ue=I(),ve=j.S;ve!==null&&ve(pe,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(D,Z)}catch(xe){Z(xe)}finally{ee!==null&&pe.types!==null&&(ee.types=pe.types),j.T=ee}}function K(I){var ee=j.T;if(ee!==null){var pe=ee.types;pe===null?ee.types=[I]:pe.indexOf(I)===-1&&pe.push(I)}else Q(K.bind(null,I))}var ae={map:G,forEach:function(I,ee,pe){G(I,function(){ee.apply(this,arguments)},pe)},count:function(I){var ee=0;return G(I,function(){ee++}),ee},toArray:function(I){return G(I,function(ee){return ee})||[]},only:function(I){if(!F(I))throw Error("React.Children.only expected to receive a single React element child.");return I}};return nt.Activity=m,nt.Children=ae,nt.Component=C,nt.Fragment=r,nt.Profiler=o,nt.PureComponent=A,nt.StrictMode=s,nt.Suspense=d,nt.ViewTransition=k,nt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,nt.__COMPILER_RUNTIME={__proto__:null,c:function(I){return j.H.useMemoCache(I)}},nt.addTransitionType=K,nt.cache=function(I){return function(){return I.apply(null,arguments)}},nt.cacheSignal=function(){return null},nt.cloneElement=function(I,ee,pe){if(I==null)throw Error("The argument must be a React element, but you passed "+I+".");var ue=E({},I.props),ve=I.key;if(ee!=null)for(xe in ee.key!==void 0&&(ve=""+ee.key),ee)!O.call(ee,xe)||xe==="key"||xe==="__self"||xe==="__source"||xe==="ref"&&ee.ref===void 0||(ue[xe]=ee[xe]);var xe=arguments.length-2;if(xe===1)ue.children=pe;else if(1<xe){for(var $e=Array(xe),te=0;te<xe;te++)$e[te]=arguments[te+2];ue.children=$e}return M(I.type,ve,ue)},nt.createContext=function(I){return I={$$typeof:u,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:l,_context:I},I},nt.createElement=function(I,ee,pe){var ue,ve={},xe=null;if(ee!=null)for(ue in ee.key!==void 0&&(xe=""+ee.key),ee)O.call(ee,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(ve[ue]=ee[ue]);var $e=arguments.length-2;if($e===1)ve.children=pe;else if(1<$e){for(var te=Array($e),he=0;he<$e;he++)te[he]=arguments[he+2];ve.children=te}if(I&&I.defaultProps)for(ue in $e=I.defaultProps,$e)ve[ue]===void 0&&(ve[ue]=$e[ue]);return M(I,xe,ve)},nt.createRef=function(){return{current:null}},nt.forwardRef=function(I){return{$$typeof:f,render:I}},nt.isValidElement=F,nt.lazy=function(I){return{$$typeof:y,_payload:{_status:-1,_result:I},_init:X}},nt.memo=function(I,ee){return{$$typeof:p,type:I,compare:ee===void 0?null:ee}},nt.startTransition=Q,nt.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},nt.use=function(I){return j.H.use(I)},nt.useActionState=function(I,ee,pe){return j.H.useActionState(I,ee,pe)},nt.useCallback=function(I,ee){return j.H.useCallback(I,ee)},nt.useContext=function(I){return j.H.useContext(I)},nt.useDebugValue=function(){},nt.useDeferredValue=function(I,ee){return j.H.useDeferredValue(I,ee)},nt.useEffect=function(I,ee){return j.H.useEffect(I,ee)},nt.useEffectEvent=function(I){return j.H.useEffectEvent(I)},nt.useId=function(){return j.H.useId()},nt.useImperativeHandle=function(I,ee,pe){return j.H.useImperativeHandle(I,ee,pe)},nt.useInsertionEffect=function(I,ee){return j.H.useInsertionEffect(I,ee)},nt.useLayoutEffect=function(I,ee){return j.H.useLayoutEffect(I,ee)},nt.useMemo=function(I,ee){return j.H.useMemo(I,ee)},nt.useOptimistic=function(I,ee){return j.H.useOptimistic(I,ee)},nt.useReducer=function(I,ee,pe){return j.H.useReducer(I,ee,pe)},nt.useRef=function(I){return j.H.useRef(I)},nt.useState=function(I){return j.H.useState(I)},nt.useSyncExternalStore=function(I,ee,pe){return j.H.useSyncExternalStore(I,ee,pe)},nt.useTransition=function(){return j.H.useTransition()},nt.version="19.3.1",nt}var yS;function Lp(){return yS||(yS=1,ty.exports=EM()),ty.exports}var g=Lp();const Dp=vM(g),$M=kM({__proto__:null,default:Dp},[g]);var ny={exports:{}},gu={},ry={exports:{}},ay={};var bS;function TM(){return bS||(bS=1,(function(e){function t(_,P){var G=_.length;_.push(P);e:for(;0<G;){var X=G-1>>>1,Z=_[X];if(0<o(Z,P))_[X]=P,_[G]=Z,G=X;else break e}}function r(_){return _.length===0?null:_[0]}function s(_){if(_.length===0)return null;var P=_[0],G=_.pop();if(G!==P){_[0]=G;e:for(var X=0,Z=_.length,Q=Z>>>1;X<Q;){var K=2*(X+1)-1,ae=_[K],I=K+1,ee=_[I];if(0>o(ae,G))I<Z&&0>o(ee,ae)?(_[X]=ee,_[I]=G,X=I):(_[X]=ae,_[K]=G,X=K);else if(I<Z&&0>o(ee,G))_[X]=ee,_[I]=G,X=I;else break e}}return P}function o(_,P){var G=_.sortIndex-P.sortIndex;return G!==0?G:_.id-P.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var d=[],p=[],y=1,m=null,k=3,v=!1,w=!1,S=!1,E=!1,R=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function A(_){for(var P=r(p);P!==null;){if(P.callback===null)s(p);else if(P.startTime<=_)s(p),P.sortIndex=P.expirationTime,t(d,P);else break;P=r(p)}}function N(_){if(S=!1,A(_),!w)if(r(d)!==null)w=!0,L||(L=!0,F());else{var P=r(p);P!==null&&U(N,P.startTime-_)}}var L=!1,D=-1,j=5,O=-1;function M(){return E?!0:!(e.unstable_now()-O<j)}function H(){if(E=!1,L){var _=e.unstable_now();O=_;var P=!0;try{e:{w=!1,S&&(S=!1,C(D),D=-1),v=!0;var G=k;try{t:{for(A(_),m=r(d);m!==null&&!(m.expirationTime>_&&M());){var X=m.callback;if(typeof X=="function"){m.callback=null,k=m.priorityLevel;var Z=X(m.expirationTime<=_);if(_=e.unstable_now(),typeof Z=="function"){m.callback=Z,A(_),P=!0;break t}m===r(d)&&s(d),A(_)}else s(d);m=r(d)}if(m!==null)P=!0;else{var Q=r(p);Q!==null&&U(N,Q.startTime-_),P=!1}}break e}finally{m=null,k=G,v=!1}P=void 0}}finally{P?F():L=!1}}}var F;if(typeof T=="function")F=function(){T(H)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,B=q.port2;q.port1.onmessage=H,F=function(){B.postMessage(null)}}else F=function(){R(H,0)};function U(_,P){D=R(function(){_(e.unstable_now())},P)}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(_){_.callback=null},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return k},e.unstable_next=function(_){switch(k){case 1:case 2:case 3:var P=3;break;default:P=k}var G=k;k=P;try{return _()}finally{k=G}},e.unstable_requestPaint=function(){E=!0},e.unstable_runWithPriority=function(_,P){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var G=k;k=_;try{return P()}finally{k=G}},e.unstable_scheduleCallback=function(_,P,G){var X=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?X+G:X):G=X,_){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=G+Z,_={id:y++,callback:P,priorityLevel:_,startTime:G,expirationTime:Z,sortIndex:-1},G>X?(_.sortIndex=G,t(p,_),r(d)===null&&_===r(p)&&(S?(C(D),D=-1):S=!0,U(N,G-X))):(_.sortIndex=Z,t(d,_),w||v||(w=!0,L||(L=!0,F()))),_},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(_){var P=k;return function(){var G=k;k=P;try{return _.apply(this,arguments)}finally{k=G}}}})(ay)),ay}var kS;function CM(){return kS||(kS=1,ry.exports=TM()),ry.exports}var sy={exports:{}},ar={};var vS;function jM(){if(vS)return ar;vS=1;var e=Lp();function t(y){var m="https://react.dev/errors/"+y;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var k=2;k<arguments.length;k++)m+="&args[]="+encodeURIComponent(arguments[k])}return"Minified React error #"+y+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal"),l=Symbol.for("react.recoverable"),u=Symbol.for("react.optimistic_key");function f(y,m,k){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:v===u?u:""+v,children:y,containerInfo:m,implementation:k}}var d=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(y,m){if(y==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return ar.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ar.browser=function(y){return{$$typeof:l,_reason:y}},ar.createPortal=function(y,m){var k=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return f(y,m,null,k)},ar.flushSync=function(y){var m=d.T,k=s.p;try{if(d.T=null,s.p=2,y)return y()}finally{d.T=m,s.p=k,s.d.f()}},ar.preconnect=function(y,m){typeof y=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(y,m))},ar.prefetchDNS=function(y){typeof y=="string"&&s.d.D(y)},ar.preinit=function(y,m){if(typeof y=="string"&&m&&typeof m.as=="string"){var k=m.as,v=p(k,m.crossOrigin),w=typeof m.integrity=="string"?m.integrity:void 0,S=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;k==="style"?s.d.S(y,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:w,fetchPriority:S}):k==="script"&&s.d.X(y,{crossOrigin:v,integrity:w,fetchPriority:S,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},ar.preinitModule=function(y,m){if(typeof y=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var k=p(m.as,m.crossOrigin);s.d.M(y,{crossOrigin:k,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0})}}else m==null&&s.d.M(y)},ar.preload=function(y,m){if(typeof y=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var k=m.as,v=p(k,m.crossOrigin);s.d.L(y,k,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},ar.preloadModule=function(y,m){if(typeof y=="string")if(m){var k=p(m.as,m.crossOrigin);s.d.m(y,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:k,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0})}else s.d.m(y)},ar.requestFormReset=function(y){s.d.r(y)},ar.unstable_batchedUpdates=function(y,m){return y(m)},ar.useFormState=function(y,m,k){return d.H.useFormState(y,m,k)},ar.useFormStatus=function(){return d.H.useHostTransitionStatus()},ar.version="19.3.1",ar}var wS;function h3(){if(wS)return sy.exports;wS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),sy.exports=jM(),sy.exports}var SS;function RM(){if(SS)return gu;SS=1;var e=CM(),t=Lp(),r=h3();function s(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)a+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function l(n){for(var a=n,i=a;i&&!i.alternate;)a=i,(a.flags&4098)!==0&&(n=a.return),i=a.return;for(;a.return;)a=a.return;return a.tag===3?n:null}function u(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function f(n){if(n.tag===31){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function d(n){if(l(n)!==n)throw Error(s(188))}function p(n){var a=n.alternate;if(!a){if(a=l(n),a===null)throw Error(s(188));return a!==n?null:n}for(var i=n,c=a;;){var h=i.return;if(h===null)break;var b=h.alternate;if(b===null){if(c=h.return,c!==null){i=c;continue}break}if(h.child===b.child){for(b=h.child;b;){if(b===i)return d(h),n;if(b===c)return d(h),a;b=b.sibling}throw Error(s(188))}if(i.return!==c.return)i=h,c=b;else{for(var $=!1,z=h.child;z;){if(z===i){$=!0,i=h,c=b;break}if(z===c){$=!0,c=h,i=b;break}z=z.sibling}if(!$){for(z=b.child;z;){if(z===i){$=!0,i=b,c=h;break}if(z===c){$=!0,c=b,i=h;break}z=z.sibling}if(!$)throw Error(s(189))}}if(i.alternate!==c)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?n:a}function y(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=y(n),a!==null)return a;n=n.sibling}return null}function m(n,a,i,c,h,b){for(;n!==null;){if((n.tag===5||n.tag===27||n.tag===6)&&i(n,c,h,b)||(n.tag!==22||n.memoizedState===null)&&(a||n.tag!==5&&n.tag!==27)&&m(n.child,a,i,c,h,b))return!0;n=n.sibling}return!1}function k(n){for(n=n.return;n!==null;){if(n.tag===3||n.tag===5||n.tag===27)return n;n=n.return}return null}function v(n){var a=!1;for(n=n.return;n!==null&&(n.tag===4&&(a=!0),!(n.tag===3||n.tag===5||n.tag===27));)n=n.return;return a}function w(n){var a=[null,null],i=k(n);return i===null||S(a,n,i.child,{foundSelf:!1}),a}function S(n,a,i,c){for(;i!==null;){if(i===a)c.foundSelf=!0;else if(i.tag===5||i.tag===27||i.tag===6){if(c.foundSelf)return n[1]=i,!0;n[0]=i}else if((i.tag!==22||i.memoizedState===null)&&S(n,a,i.child,c))return!0;i=i.sibling}return!1}function E(n){switch(n.tag){case 5:case 27:case 6:return n.stateNode;case 3:return n.stateNode.containerInfo;default:throw Error(s(559))}}var R=null,C=null;function T(n,a,i){return n===i?!0:n===a?(R=n,!0):!1}function A(n,a,i){return n===i?(C=n,!1):n===a?(C!==null&&(R=n),!0):!1}function N(n){if(n===null)return null;do n=n===null?null:n.return;while(n&&n.tag!==5&&n.tag!==27&&n.tag!==3);return n||null}function L(n,a,i){for(var c=0,h=n;h;h=i(h))c++;h=0;for(var b=a;b;b=i(b))h++;for(;0<c-h;)n=i(n),c--;for(;0<h-c;)a=i(a),h--;for(;c--;){if(n===a||a!==null&&n===a.alternate)return n;n=i(n),a=i(a)}return null}var D=Object.assign,j=Symbol.for("react.element"),O=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),U=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),K=Symbol.for("react.legacy_hidden"),ae=Symbol.for("react.memo_cache_sentinel"),I=Symbol.for("react.view_transition"),ee=Symbol.for("react.recoverable"),pe=Symbol.iterator;function ue(n){return n===null||typeof n!="object"?null:(n=pe&&n[pe]||n["@@iterator"],typeof n=="function"?n:null)}var ve=Symbol.for("react.client.reference");function xe(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ve?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case H:return"Fragment";case q:return"Profiler";case F:return"StrictMode";case P:return"Suspense";case G:return"SuspenseList";case Q:return"Activity";case I:return"ViewTransition"}if(typeof n=="object")switch(n.$$typeof){case M:return"Portal";case U:return n.displayName||"Context";case B:return(n._context.displayName||"Context")+".Consumer";case _:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case X:return a=n.displayName||null,a!==null?a:xe(n.type)||"Memo";case Z:a=n._payload,n=n._init;try{return xe(n(a))}catch{}}return null}var $e=Array.isArray,te=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Re={pending:!1,data:null,method:null,action:null},Ce=[],Te=-1;function Me(n){return{current:n}}function je(n){0>Te||(n.current=Ce[Te],Ce[Te]=null,Te--)}function He(n,a){Te++,Ce[Te]=n.current,n.current=a}var at=Me(null),pt=Me(null),et=Me(null),Ve=Me(null);function yt(n,a){switch(He(et,a),He(pt,n),He(at,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?Ew(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=Ew(a),n=$w(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}je(at),He(at,n)}function Pe(){je(at),je(pt),je(et)}function rt(n){var a=n.memoizedState;a!==null&&(El._currentValue=a.memoizedState,He(Ve,n)),a=at.current;var i=$w(a,n.type);a!==i&&(He(pt,n),He(at,i))}function lt(n){pt.current===n&&(je(at),je(pt)),Ve.current===n&&(je(Ve),El._currentValue=Re)}var st,ct;function we(n){if(st===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);st=a&&a[1]||"",ct=-1<i.stack.indexOf(`
3
- at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
4
- `+st+n+ct}var Ge=!1;function Pt(n,a){if(!n||Ge)return"";Ge=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(a){var be=function(){throw Error()};if(Object.defineProperty(be.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(be,[])}catch(Ae){var ne=Ae}Reflect.construct(n,[],be)}else{try{be.call()}catch(Ae){ne=Ae}be=!1;try{var le=Object.getOwnPropertyDescriptor(n.prototype,"props");Object.defineProperty(n.prototype,"props",{configurable:!0,set:function(){throw Error()}}),be=!0,new n}finally{be&&(le!==void 0?Object.defineProperty(n.prototype,"props",le):delete n.prototype.props)}}}else{try{throw Error()}catch(Ae){ne=Ae}(be=n())&&typeof be.catch=="function"&&be.catch(function(){})}}catch(Ae){if(Ae&&ne&&typeof Ae.stack=="string")return[Ae.stack,ne.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=c.DetermineComponentFrameRoot(),$=b[0],z=b[1];if($&&z){var V=$.split(`
5
- `),se=z.split(`
6
- `);for(h=c=0;c<V.length&&!V[c].includes("DetermineComponentFrameRoot");)c++;for(;h<se.length&&!se[h].includes("DetermineComponentFrameRoot");)h++;if(c===V.length||h===se.length)for(c=V.length-1,h=se.length-1;1<=c&&0<=h&&V[c]!==se[h];)h--;for(;1<=c&&0<=h;c--,h--)if(V[c]!==se[h]){if(c!==1||h!==1)do if(c--,h--,0>h||V[c]!==se[h]){var ce=`
7
- `+V[c].replace(" at new "," at ");return n.displayName&&ce.includes("<anonymous>")&&(ce=ce.replace("<anonymous>",n.displayName)),ce}while(1<=c&&0<=h);break}}}finally{Ge=!1,Error.prepareStackTrace=i}return(i=n?n.displayName||n.name:"")?we(i):""}function bn(n,a){switch(n.tag){case 26:case 27:case 5:return we(n.type);case 16:return we("Lazy");case 13:return n.child!==a&&a!==null?we("Suspense Fallback"):we("Suspense");case 19:return we("SuspenseList");case 0:case 15:return Pt(n.type,!1);case 11:return Pt(n.type.render,!1);case 1:return Pt(n.type,!0);case 31:return we("Activity");case 30:return we("ViewTransition");default:return""}}function gn(n){try{var a="",i=null;do a+=bn(n,i),i=n,n=n.return;while(n);return a}catch(c){return`
8
- Error generating stack: `+c.message+`
9
- `+c.stack}}var An=Object.prototype.hasOwnProperty,Vt=e.unstable_scheduleCallback,Yn=e.unstable_cancelCallback,Qt=e.unstable_shouldYield,kn=e.unstable_requestPaint,Ye=e.unstable_now,Le=e.unstable_getCurrentPriorityLevel,Jt=e.unstable_ImmediatePriority,un=e.unstable_UserBlockingPriority,an=e.unstable_NormalPriority,cr=e.unstable_LowPriority,Qa=e.unstable_IdlePriority,Tr=e.log,Br=e.unstable_setDisableYieldValue,Xn=null,Gt=null;function ur(n){if(typeof Tr=="function"&&Br(n),Gt&&typeof Gt.setStrictMode=="function")try{Gt.setStrictMode(Xn,n)}catch{}}var Mn=Math.clz32?Math.clz32:Y,Nn=Math.log,W=Math.LN2;function Y(n){return n>>>=0,n===0?32:31-(Nn(n)/W|0)|0}var oe=256,ge=262144,ke=4194304;function Ie(n){var a=n&42;if(a!==0)return a;switch(n&-n){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 n&-n;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function De(n,a,i){var c=n.pendingLanes;if(c===0)return 0;var h=0,b=n.suspendedLanes,$=n.pingedLanes;n=n.warmLanes;var z=c&134217727;return z!==0?(c=z&~b,c!==0?h=Ie(c):($&=z,$!==0?h=Ie($):i||(i=z&~n,i!==0&&(h=Ie(i))))):(z=c&~b,z!==0?h=Ie(z):$!==0?h=Ie($):i||(i=c&~n,i!==0&&(h=Ie(i)))),h===0?0:a!==0&&a!==h&&(a&b)===0&&(b=h&-h,i=a&-a,b>=i||b===32&&(i&4194048)!==0)?a:h}function Se(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function Ne(n,a){(a&8)!==0&&(a|=a&32);var i=n.entangledLanes;if(i!==0)for(n=n.entanglements,i&=a;0<i;){var c=31-Mn(i),h=1<<c;a|=n[c],i&=~h}return a}function Ke(n,a){switch(n){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 Be(){var n=ke;return ke<<=1,(ke&62914560)===0&&(ke=4194304),n}function Ze(n){for(var a=[],i=0;31>i;i++)a.push(n);return a}function Fe(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function wt(n,a,i,c,h,b){var $=n.pendingLanes;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=i,n.entangledLanes&=i,n.errorRecoveryDisabledLanes&=i,n.shellSuspendCounter=0;var z=n.entanglements,V=n.expirationTimes,se=n.hiddenUpdates;for(i=$&~i;0<i;){var ce=31-Mn(i),be=1<<ce;z[ce]=0,V[ce]=-1;var ne=se[ce];if(ne!==null)for(se[ce]=null,ce=0;ce<ne.length;ce++){var le=ne[ce];le!==null&&(le.lane&=-536870913)}i&=~be}c!==0&&At(n,c,0),b!==0&&h===0&&n.tag!==0&&(n.suspendedLanes|=b&~($&~a))}function At(n,a,i){n.pendingLanes|=a,n.suspendedLanes&=~a;var c=31-Mn(a);n.entangledLanes|=a,n.entanglements[c]=n.entanglements[c]|1073741824|i&261930}function Ft(n,a){var i=n.entangledLanes|=a;for(n=n.entanglements;i;){var c=31-Mn(i),h=1<<c;h&a|n[c]&a&&(n[c]|=a),i&=~h}}function $t(n,a){var i=a&-a;return i=(i&42)!==0?1:bt(i),(i&(n.suspendedLanes|a))!==0?0:i}function bt(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function mn(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function zn(){var n=he.p;return n!==0?n:(n=window.event,n===void 0?32:lS(n.type))}function Ra(n,a){var i=he.p;try{return he.p=n,a()}finally{he.p=i}}var vn=Math.random().toString(36).slice(2),Bt="__reactFiber$"+vn,Yt="__reactProps$"+vn,wn="__reactContainer$"+vn,Zn="__reactEvents$"+vn,Hr="__reactListeners$"+vn,Fr="__reactHandles$"+vn,ks="__reactResources$"+vn,Qn="__reactMarker$"+vn,ot="__reactLoad$"+vn;function sn(n){delete n[Bt],delete n[Yt],delete n[Hr],delete n[Fr]}function dn(n){var a;if(a=n[Bt])return a;for(var i=n.parentNode;i;){if(a=i[wn]||i[Bt]){if(i=a.alternate,a.child!==null||i!==null&&i.child!==null)for(n=Hw(n);n!==null;){if(i=n[Bt])return i;n=Hw(n)}return a}n=i,i=n.parentNode}return null}function Ln(n){if(n=n[Bt]||n[wn]){var a=n.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return n}return null}function Aa(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(s(33))}function Ur(n){var a=n[ks];return a||(a=n[ks]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function tt(n){n[Qn]=!0}function sa(n){n[ot]=void 0}var _o=new Set,qo={};function Ma(n,a){vs(n,a),vs(n+"Capture",a)}function vs(n,a){for(qo[n]=a,n=0;n<a.length;n++)_o.add(a[n])}var Rx=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]*$"),$c={},Ad={};function Ax(n){return An.call(Ad,n)?!0:An.call($c,n)?!1:Rx.test(n)?Ad[n]=!0:($c[n]=!0,!1)}var St=!1;function Pi(){var n=St;return St=!1,n}function Bi(n,a,i){if(Ax(a))if(i===null)n.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var c=a.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,i)}}function Po(n,a,i){if(i===null)n.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,i)}}function Ee(n,a,i,c){if(c===null)n.removeAttribute(i);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttributeNS(a,i,c)}}function it(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function oa(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function ia(n,a,i){var c=Object.getOwnPropertyDescriptor(n.constructor.prototype,a);if(!n.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var h=c.get,b=c.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return h.call(this)},set:function($){i=""+$,b.call(this,$)}}),Object.defineProperty(n,a,{enumerable:c.enumerable}),{getValue:function(){return i},setValue:function($){i=""+$},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function dr(n){if(!n._valueTracker){var a=oa(n)?"checked":"value";n._valueTracker=ia(n,a,""+n[a])}}function la(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var i=a.getValue(),c="";return n&&(c=oa(n)?n.checked?"true":"false":n.value),n=c,n!==i?(a.setValue(n),!0):!1}var Tc=/[\n"\\]/g;function fr(n){return n.replace(Tc,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Mx(n,a,i,c,h,b,$,z){n.name="",$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"?n.type=$:n.removeAttribute("type"),a!=null?$==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+it(a)):n.value!==""+it(a)&&(n.value=""+it(a)):$!=="submit"&&$!=="reset"||n.removeAttribute("value"),a!=null?$==="number"&&n.value==a?Nx(n,it(n.value)):Nx(n,it(a)):i!=null?Nx(n,it(i)):c!=null&&n.removeAttribute("value"),h==null&&b!=null&&(n.defaultChecked=!!b),h!=null&&(n.checked=h&&typeof h!="function"&&typeof h!="symbol"),z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"?n.name=""+it(z):n.removeAttribute("name")}function hk(n,a,i,c,h,b,$,z){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(n.type=b),a!=null||i!=null){if(!(b!=="submit"&&b!=="reset"||a!=null)){dr(n);return}i=i!=null?""+it(i):"",a=a!=null?""+it(a):i,z||a===n.value||(n.value=a),n.defaultValue=a}c=c??h,c=typeof c!="function"&&typeof c!="symbol"&&!!c,n.checked=z?n.checked:!!c,n.defaultChecked=!!c,$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"&&(n.name=$),dr(n)}function Nx(n,a){n.defaultValue!==""+a&&(n.defaultValue=""+a)}function Hi(n,a,i,c){if(n=n.options,a){a={};for(var h=0;h<i.length;h++)a["$"+i[h]]=!0;for(i=0;i<n.length;i++)h=a.hasOwnProperty("$"+n[i].value),n[i].selected!==h&&(n[i].selected=h),h&&c&&(n[i].defaultSelected=!0)}else{for(i=""+it(i),a=null,h=0;h<n.length;h++){if(n[h].value===i){n[h].selected=!0,c&&(n[h].defaultSelected=!0);return}a!==null||n[h].disabled||(a=n[h])}a!==null&&(a.selected=!0)}}function pk(n,a,i){if(a!=null&&(a=""+it(a),a!==n.value&&(n.value=a),i==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=i!=null?""+it(i):""}function xk(n,a,i,c){if(a==null){if(c!=null){if(i!=null)throw Error(s(92));if($e(c)){if(1<c.length)throw Error(s(93));c=c[0]}i=c}i==null&&(i=""),a=i}i=it(a),n.defaultValue=i,c=n.textContent,c===i&&c!==""&&c!==null&&(n.value=c),dr(n)}function Fi(n,a){if(a){var i=n.firstChild;if(i&&i===n.lastChild&&i.nodeType===3){i.nodeValue=a;return}}n.textContent=a}var HR=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 gk(n,a,i){var c=a.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?c?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":c?n.setProperty(a,i):typeof i!="number"||i===0||HR.has(a)?a==="float"?n.cssFloat=i:n[a]=(""+i).trim():n[a]=i+"px"}function mk(n,a,i){if(a!=null&&typeof a!="object")throw Error(s(62));if(n=n.style,i!=null){for(var c in i)!i.hasOwnProperty(c)||a!=null&&a.hasOwnProperty(c)||(c.indexOf("--")===0?n.setProperty(c,""):c==="float"?n.cssFloat="":n[c]="",St=!0);for(var h in a)c=a[h],a.hasOwnProperty(h)&&i[h]!==c&&(gk(n,h,c),St=!0)}else for(var b in a)a.hasOwnProperty(b)&&gk(n,b,a[b])}function zx(n){if(n.indexOf("-")===-1)return!1;switch(n){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 FR=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),UR=/^[\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 Md(n){return UR.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Ja(){}var Lx=null;function Dx(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Ui=null,Vi=null;function yk(n){var a=Ln(n);if(a&&(n=a.stateNode)){var i=n[Yt]||null;e:switch(n=a.stateNode,a.type){case"input":if(Mx(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),a=i.name,i.type==="radio"&&a!=null){for(i=n;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+fr(""+a)+'"][type="radio"]'),a=0;a<i.length;a++){var c=i[a];if(c!==n&&c.form===n.form){var h=c[Yt]||null;if(!h)throw Error(s(90));Mx(c,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(a=0;a<i.length;a++)c=i[a],c.form===n.form&&la(c)}break e;case"textarea":pk(n,i.value,i.defaultValue);break e;case"select":a=i.value,a!=null&&Hi(n,!!i.multiple,a,!1)}}}var Ox=!1;function bk(n,a,i){if(Ox)return n(a,i);Ox=!0;try{var c=n(a);return c}finally{if(Ox=!1,(Ui!==null||Vi!==null)&&(Nf(),Ui&&(a=Ui,n=Vi,Vi=Ui=null,yk(a),n)))for(a=0;a<n.length;a++)yk(n[a])}}function Cc(n,a){var i=n.stateNode;if(i===null)return null;var c=i[Yt]||null;if(c===null)return null;i=c[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(n=n.type,c=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!c;break e;default:n=!1}if(n)return null;if(i&&typeof i!="function")throw Error(s(231,a,typeof i));return i}var ws=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ix=!1;if(ws)try{var jc={};Object.defineProperty(jc,"passive",{get:function(){Ix=!0}}),window.addEventListener("test",jc,jc),window.removeEventListener("test",jc,jc)}catch{Ix=!1}var Ws=null,_x=null,Nd=null;function kk(){if(Nd)return Nd;var n,a=_x,i=a.length,c,h="value"in Ws?Ws.value:Ws.textContent,b=h.length;for(n=0;n<i&&a[n]===h[n];n++);var $=i-n;for(c=1;c<=$&&a[i-c]===h[b-c];c++);return Nd=h.slice(n,1<c?1-c:void 0)}function zd(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function Ld(){return!0}function vk(){return!1}function hr(n){function a(i,c,h,b,$){this._reactName=i,this._targetInst=h,this.type=c,this.nativeEvent=b,this.target=$,this.currentTarget=null;for(var z in n)n.hasOwnProperty(z)&&(i=n[z],this[z]=i?i(b):b[z]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?Ld:vk,this.isPropagationStopped=vk,this}return D(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Ld)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Ld)},persist:function(){},isPersistent:Ld}),a}var Ys={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Dd=hr(Ys),Rc=D({},Ys,{view:0,detail:0}),VR=hr(Rc),qx,Px,Ac,Od=D({},Rc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hx,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Ac&&(Ac&&n.type==="mousemove"?(qx=n.screenX-Ac.screenX,Px=n.screenY-Ac.screenY):Px=qx=0,Ac=n),qx)},movementY:function(n){return"movementY"in n?n.movementY:Px}}),wk=hr(Od),GR=D({},Od,{dataTransfer:0}),KR=hr(GR),WR=D({},Rc,{relatedTarget:0}),Bx=hr(WR),YR=D({},Ys,{animationName:0,elapsedTime:0,pseudoElement:0}),XR=hr(YR),ZR=D({},Ys,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),QR=hr(ZR),JR=D({},Ys,{data:0}),Sk=hr(JR),eA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tA={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"},nA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rA(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=nA[n])?!!a[n]:!1}function Hx(){return rA}var aA=D({},Rc,{key:function(n){if(n.key){var a=eA[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=zd(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?tA[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hx,charCode:function(n){return n.type==="keypress"?zd(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?zd(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),sA=hr(aA),oA=D({},Od,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ek=hr(oA),iA=D({},Ys,{submitter:0}),lA=hr(iA),cA=D({},Rc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hx}),uA=hr(cA),dA=D({},Ys,{propertyName:0,elapsedTime:0,pseudoElement:0}),fA=hr(dA),hA=D({},Od,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),pA=hr(hA),xA=D({},Ys,{newState:0,oldState:0,source:0}),gA=hr(xA),mA=[9,13,27,32],Fx=ws&&"CompositionEvent"in window,Mc=null;ws&&"documentMode"in document&&(Mc=document.documentMode);var yA=ws&&"TextEvent"in window&&!Mc,$k=ws&&(!Fx||Mc&&8<Mc&&11>=Mc),Tk=" ",Ck=!1;function jk(n,a){switch(n){case"keyup":return mA.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rk(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Gi=!1;function bA(n,a){switch(n){case"compositionend":return Rk(a);case"keypress":return a.which!==32?null:(Ck=!0,Tk);case"textInput":return n=a.data,n===Tk&&Ck?null:n;default:return null}}function kA(n,a){if(Gi)return n==="compositionend"||!Fx&&jk(n,a)?(n=kk(),Nd=_x=Ws=null,Gi=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return $k&&a.locale!=="ko"?null:a.data;default:return null}}var vA={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 Ak(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!vA[n.type]:a==="textarea"}function Mk(n,a,i,c){Ui?Vi?Vi.push(c):Vi=[c]:Ui=c,a=_f(a,"onChange"),0<a.length&&(i=new Dd("onChange","change",null,i,c),n.push({event:i,listeners:a}))}var Nc=null,zc=null;function wA(n){yw(n,0)}function Id(n){var a=Aa(n);if(la(a))return n}function Nk(n,a){if(n==="change")return a}var zk=!1;if(ws){var Ux;if(ws){var Vx="oninput"in document;if(!Vx){var Lk=document.createElement("div");Lk.setAttribute("oninput","return;"),Vx=typeof Lk.oninput=="function"}Ux=Vx}else Ux=!1;zk=Ux&&(!document.documentMode||9<document.documentMode)}function Dk(){Nc&&(Nc.detachEvent("onpropertychange",Ok),zc=Nc=null)}function Ok(n){if(n.propertyName==="value"&&Id(zc)){var a=[];Mk(a,zc,n,Dx(n)),bk(wA,a)}}function SA(n,a,i){n==="focusin"?(Dk(),Nc=a,zc=i,Nc.attachEvent("onpropertychange",Ok)):n==="focusout"&&Dk()}function EA(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Id(zc)}function $A(n,a){if(n==="click")return Id(a)}function TA(n,a){if(n==="input"||n==="change")return Id(a)}function CA(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var Vr=typeof Object.is=="function"?Object.is:CA;function Lc(n,a){if(Vr(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var i=Object.keys(n),c=Object.keys(a);if(i.length!==c.length)return!1;for(c=0;c<i.length;c++){var h=i[c];if(!An.call(a,h)||!Vr(n[h],a[h]))return!1}return!0}function Gx(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function Ik(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function _k(n,a){var i=Ik(n);n=0;for(var c;i;){if(i.nodeType===3){if(c=n+i.textContent.length,n<=a&&c>=a)return{node:i,offset:a-n};n=c}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Ik(i)}}function qk(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?qk(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function Pk(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=Gx(n.document);a instanceof n.HTMLIFrameElement;){try{var i=typeof a.contentWindow.location.href=="string"}catch{i=!1}if(i)n=a.contentWindow;else break;a=Gx(n.document)}return a}function Kx(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var jA=ws&&"documentMode"in document&&11>=document.documentMode,Ki=null,Wx=null,Dc=null,Yx=!1;function Bk(n,a,i){var c=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Yx||Ki==null||Ki!==Gx(c)||(c=Ki,"selectionStart"in c&&Kx(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Dc&&Lc(Dc,c)||(Dc=c,c=_f(Wx,"onSelect"),0<c.length&&(a=new Dd("onSelect","select",null,a,i),n.push({event:a,listeners:c}),a.target=Ki)))}function Bo(n,a){var i={};return i[n.toLowerCase()]=a.toLowerCase(),i["Webkit"+n]="webkit"+a,i["Moz"+n]="moz"+a,i}var Wi={animationend:Bo("Animation","AnimationEnd"),animationiteration:Bo("Animation","AnimationIteration"),animationstart:Bo("Animation","AnimationStart"),transitionrun:Bo("Transition","TransitionRun"),transitionstart:Bo("Transition","TransitionStart"),transitioncancel:Bo("Transition","TransitionCancel"),transitionend:Bo("Transition","TransitionEnd")},Xx={},Hk={};ws&&(Hk=document.createElement("div").style,"AnimationEvent"in window||(delete Wi.animationend.animation,delete Wi.animationiteration.animation,delete Wi.animationstart.animation),"TransitionEvent"in window||delete Wi.transitionend.transition);function Ho(n){if(Xx[n])return Xx[n];if(!Wi[n])return n;var a=Wi[n],i;for(i in a)if(a.hasOwnProperty(i)&&i in Hk)return Xx[n]=a[i];return n}var Fk=Ho("animationend"),Uk=Ho("animationiteration"),Vk=Ho("animationstart"),RA=Ho("transitionrun"),AA=Ho("transitionstart"),MA=Ho("transitioncancel"),Gk=Ho("transitionend"),Kk=new Map,Zx="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Zx.push("scrollEnd");function Na(n,a){Kk.set(n,a),Ma(a,[n])}var NA=0;function Ss(n,a){if(n.name!=null&&n.name!=="auto")return n.name;if(a.autoName!==null)return a.autoName;n=Oa.identifierPrefix;var i=NA++;return n="_"+n+"t_"+i.toString(32)+"_",a.autoName=n}function Wk(n){if(n==null||typeof n=="string")return n;var a=null,i=pl;if(i!==null)for(var c=0;c<i.length;c++){var h=n[i[c]];if(h!=null){if(h==="none")return"none";a=a==null?h:a+(" "+h)}}return a??n.default}function Es(n,a){return n=Wk(n),a=Wk(a),a==null?n==="auto"?null:n:a==="auto"?null:a}var _d=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},ca=[],Yi=0,Qx=0;function qd(){for(var n=Yi,a=Qx=Yi=0;a<n;){var i=ca[a];ca[a++]=null;var c=ca[a];ca[a++]=null;var h=ca[a];ca[a++]=null;var b=ca[a];if(ca[a++]=null,c!==null&&h!==null){var $=c.pending;$===null?h.next=h:(h.next=$.next,$.next=h),c.pending=h}b!==0&&Yk(i,h,b)}}function Pd(n,a,i,c){ca[Yi++]=n,ca[Yi++]=a,ca[Yi++]=i,ca[Yi++]=c,Qx|=c,n.lanes|=c,n=n.alternate,n!==null&&(n.lanes|=c)}function Jx(n,a,i,c){return Pd(n,a,i,c),Bd(n)}function Fo(n,a){return Pd(n,null,null,a),Bd(n)}function Yk(n,a,i){n.lanes|=i;var c=n.alternate;c!==null&&(c.lanes|=i);for(var h=!1,b=n.return;b!==null;)b.childLanes|=i,c=b.alternate,c!==null&&(c.childLanes|=i),b.tag===22&&(n=b.stateNode,n===null||n._visibility&1||(h=!0)),n=b,b=b.return;return n.tag===3?(b=n.stateNode,h&&a!==null&&(h=31-Mn(i),n=b.hiddenUpdates,c=n[h],c===null?n[h]=[a]:c.push(a),a.lane=i|536870912),b):null}function Bd(n){if(50<ru)throw ru=0,Mf=null,Error(s(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var Xi={};function zA(n,a,i,c){this.tag=n,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cr(n,a,i,c){return new zA(n,a,i,c)}function eg(n){return n=n.prototype,!(!n||!n.isReactComponent)}function $s(n,a){var i=n.alternate;return i===null?(i=Cr(n.tag,a,n.key,n.mode),i.elementType=n.elementType,i.type=n.type,i.stateNode=n.stateNode,i.alternate=n,n.alternate=i):(i.pendingProps=a,i.type=n.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=n.flags&1206910976,i.childLanes=n.childLanes,i.lanes=n.lanes,i.child=n.child,i.memoizedProps=n.memoizedProps,i.memoizedState=n.memoizedState,i.updateQueue=n.updateQueue,a=n.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},i.sibling=n.sibling,i.index=n.index,i.ref=n.ref,i.refCleanup=n.refCleanup,i}function Xk(n,a){n.flags&=1206910978;var i=n.alternate;return i===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=i.childLanes,n.lanes=i.lanes,n.child=i.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=i.memoizedProps,n.memoizedState=i.memoizedState,n.updateQueue=i.updateQueue,n.type=i.type,a=i.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function Hd(n,a,i,c,h,b){var $=0;if(c=n,typeof c=="function")eg(c)&&($=1);else if(typeof c=="string")$=iM(n,i,at.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(c){case Q:return n=Cr(31,i,a,h),n.elementType=Q,n.lanes=b,n;case H:return Uo(i.children,h,b,a);case F:$=8,h|=24;break;case q:return n=Cr(12,i,a,h|2),n.elementType=q,n.lanes=b,n;case P:return n=Cr(13,i,a,h),n.elementType=P,n.lanes=b,n;case G:return n=Cr(19,i,a,h),n.elementType=G,n.lanes=b,n;case K:case I:return n=h|32,n=Cr(30,i,a,n),n.elementType=I,n.lanes=b,n.stateNode={autoName:null,paired:null,clones:null,ref:null},n;default:if(typeof c=="object"&&c!==null)switch(c.$$typeof){case U:$=10;break e;case B:$=9;break e;case _:$=11;break e;case X:$=14;break e;case Z:$=16,c=null;break e}$=29,i=Error(s(130,n===null?"null":typeof n,"")),c=null}return a=Cr($,i,a,h),a.elementType=n,a.type=c,a.lanes=b,a}function Uo(n,a,i,c){return n=Cr(7,n,c,a),n.lanes=i,n}function tg(n,a,i){return n=Cr(6,n,null,a),n.lanes=i,n}function Zk(n){var a=Cr(18,null,null,0);return a.stateNode=n,a}function ng(n,a,i){return a=Cr(4,n.children!==null?n.children:[],n.key,a),a.lanes=i,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var Qk=new WeakMap;function ua(n,a){if(typeof n=="object"&&n!==null){var i=Qk.get(n);return i!==void 0?i:(a={value:n,source:a,stack:gn(a)},Qk.set(n,a),a)}return{value:n,source:a,stack:gn(a)}}var Zi=[],Qi=0,Fd=null,Oc=0,da=[],fa=0,Xs=null,es=1,ts="";function Ts(n,a){Zi[Qi++]=Oc,Zi[Qi++]=Fd,Fd=n,Oc=a}function Jk(n,a,i){da[fa++]=es,da[fa++]=ts,da[fa++]=Xs,Xs=n;var c=es;n=ts;var h=32-Mn(c)-1;c&=~(1<<h),i+=1;var b=32-Mn(a)+h;if(30<b){var $=h-h%5;b=(c&(1<<$)-1).toString(32),c>>=$,h-=$,es=1<<32-Mn(a)+h|i<<h|c,ts=b+n}else es=1<<b|i<<h|c,ts=n}function Ud(n){n.return!==null&&(Ts(n,1),Jk(n,1,0))}function rg(n){for(;n===Fd;)Fd=Zi[--Qi],Zi[Qi]=null,Oc=Zi[--Qi],Zi[Qi]=null;for(;n===Xs;)Xs=da[--fa],da[fa]=null,ts=da[--fa],da[fa]=null,es=da[--fa],da[fa]=null}function ev(n,a){da[fa++]=es,da[fa++]=ts,da[fa++]=Xs,es=a.id,ts=a.overflow,Xs=n}var Fn=null,Kt=null,xt=!1,Zs=null,ha=!1,ag=Error(s(519));function Qs(n){var a=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ic(ua(a,n)),ag}function tv(n){var a=n.stateNode,i=n.type,c=n.memoizedProps;switch(a[Bt]=n,a[Yt]=c,i){case"dialog":mt("cancel",a),mt("close",a);break;case"iframe":case"object":case"embed":mt("load",a);break;case"video":case"audio":for(i=0;i<su.length;i++)mt(su[i],a);break;case"source":mt("error",a);break;case"img":case"image":case"link":mt("error",a),mt("load",a);break;case"details":mt("toggle",a);break;case"input":mt("invalid",a),hk(a,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":mt("invalid",a);break;case"textarea":mt("invalid",a),xk(a,c.value,c.defaultValue,c.children)}i=c.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||a.textContent===""+i||c.suppressHydrationWarning===!0||ww(a.textContent,i)?(c.popover!=null&&(mt("beforetoggle",a),mt("toggle",a)),c.onScroll!=null&&mt("scroll",a),c.onScrollEnd!=null&&mt("scrollend",a),c.onClick!=null&&(a.onclick=Ja),a=!0):a=!1,a||Qs(n,!0)}function Vd(n){for(Fn=n.return;Fn;)switch(Fn.tag){case 5:case 31:case 13:ha=!1;return;case 27:case 3:ha=!0;return;default:Fn=Fn.return}}function Ji(n){if(n!==Fn)return!1;if(!xt)return Vd(n),xt=!0,!1;var a=n.tag,i;if((i=a!==3&&a!==27)&&((i=a===5)&&(i=n.type,i=!(i!=="form"&&i!=="button")||Lm(n.type,n.memoizedProps)),i=!i),i&&Kt&&Qs(n),Vd(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));Kt=Bw(n)}else if(a===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));Kt=Bw(n)}else a===27?(a=Kt,xo(n.type)?(n=Fm,Fm=null,Kt=n):Kt=a):Kt=Fn?xa(n.stateNode.nextSibling):null;return!0}function Vo(){Kt=Fn=null,xt=!1}function sg(){var n=Zs;return n!==null&&(Ar===null?Ar=n:Ar.push.apply(Ar,n),Zs=null),n}function Ic(n){Zs===null?Zs=[n]:Zs.push(n)}var og=Me(null),Go=null,Cs=null;function Js(n,a,i){He(og,a._currentValue),a._currentValue=i}function js(n){n._currentValue=og.current,je(og)}function Gd(n,a,i){for(;n!==null;){var c=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,c!==null&&(c.childLanes|=a)):c!==null&&(c.childLanes&a)!==a&&(c.childLanes|=a),n===i)break;n=n.return}}function ig(n,a,i,c){var h=n.child;for(h!==null&&(h.return=n);h!==null;){var b=h.dependencies;if(b!==null){var $=h.child;b=b.firstContext;e:for(;b!==null;){var z=b;b=h;for(var V=0;V<a.length;V++)if(z.context===a[V]){b.lanes|=i,z=b.alternate,z!==null&&(z.lanes|=i),Gd(b.return,i,n),c||($=null);break e}b=z.next}}else if(h.tag===18){if($=h.return,$===null)throw Error(s(341));$.lanes|=i,b=$.alternate,b!==null&&(b.lanes|=i),Gd($,i,n),$=null}else h.tag===13&&h.memoizedState!==null&&h.memoizedState.dehydrated===null?(h.lanes|=i,$=h.alternate,$!==null&&($.lanes|=i),Gd(h.return,i,n),$=h.child,$=$!==null?$.sibling:null):$=h.child;if($!==null)$.return=h;else for($=h;$!==null;){if($===n){$=null;break}if(h=$.sibling,h!==null){h.return=$.return,$=h;break}$=$.return}h=$}}function Ko(n,a,i,c){n=null;for(var h=a,b=!1;h!==null;){if(!b){if((h.flags&524288)!==0)b=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var $=h.alternate;if($===null)throw Error(s(387));if($=$.memoizedProps,$!==null){var z=h.type;Vr(h.pendingProps.value,$.value)||(n!==null?n.push(z):n=[z])}}else if(h===Ve.current){if($=h.alternate,$===null)throw Error(s(387));$.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(n!==null?n.push(El):n=[El])}h=h.return}return n!==null&&ig(a,n,i,c),a.flags|=262144,n!==null}function Kd(n){for(n=n.firstContext;n!==null;){if(!Vr(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Wo(n){Go=n,Cs=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Jn(n){return nv(Go,n)}function Wd(n,a){return Go===null&&Wo(n),nv(n,a)}function nv(n,a){var i=a._currentValue;if(a={context:a,memoizedValue:i,next:null},Cs===null){if(n===null)throw Error(s(308));Cs=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else Cs=Cs.next=a;return i}var LA=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(i,c){n.push(c)}};this.abort=function(){a.aborted=!0,n.forEach(function(i){return i()})}},DA=e.unstable_scheduleCallback,OA=e.unstable_NormalPriority,Sn={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lg(){return{controller:new LA,data:new Map,refCount:0}}function _c(n){n.refCount--,n.refCount===0&&DA(OA,function(){n.controller.abort()})}function rv(n,a){if((n.pendingLanes&4194048)!==0){var i=n.transitionTypes;for(i===null&&(i=n.transitionTypes=[]),n=0;n<a.length;n++){var c=a[n];i.indexOf(c)===-1&&i.push(c)}}}var qc=null;function IA(n){var a=n.transitionTypes;return n.transitionTypes=null,a}var Pc=null,cg=0,Yo=0,el=null;function _A(n,a){if(Pc===null){var i=Pc=[];cg=0,Yo=$m(),el={status:"pending",value:void 0,then:function(c){i.push(c)}}}return cg++,a.then(av,av),a}function av(){if(--cg===0&&(qc=null,Pc!==null)){el!==null&&(el.status="fulfilled");var n=Pc;Pc=null,Yo=0,el=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function qA(n,a){var i=[],c={status:"pending",value:null,reason:null,then:function(h){i.push(h)}};return n.then(function(){c.status="fulfilled",c.value=a;for(var h=0;h<i.length;h++)(0,i[h])(a)},function(h){for(c.status="rejected",c.reason=h,h=0;h<i.length;h++)(0,i[h])(void 0)}),c}var sv=te.S;te.S=function(n,a){if(Z2=Ye(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&_A(n,a),qc!==null)for(var i=yl;i!==null;)rv(i,qc),i=i.next;if(i=n.types,i!==null){for(var c=yl;c!==null;)rv(c,i),c=c.next;if(Yo!==0){c=qc,c===null&&(c=qc=[]);for(var h=0;h<i.length;h++){var b=i[h];c.indexOf(b)===-1&&c.push(b)}}}sv!==null&&sv(n,a)};var Xo=Me(null);function ug(){var n=Xo.current;return n!==null?n:Ut.pooledCache}function Yd(n,a){a===null?He(Xo,Xo.current):He(Xo,a.pool)}function ov(){var n=ug();return n===null?null:{parent:Sn._currentValue,pool:n}}var tl=Error(s(460)),dg=Error(s(474)),Xd=Error(s(542)),Zd={then:function(){}};function iv(n){return n=n.status,n==="fulfilled"||n==="rejected"}function lv(n,a,i){switch(i=n[i],i===void 0?n.push(a):i!==a&&(a.then(Ja,Ja),a=i),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,uv(n),n===void 0&&!("reason"in a)?Error(s(600)):n;default:if(typeof a.status=="string")a.then(Ja,Ja);else{if(n=Ut,n!==null&&100<n.shellSuspendCounter)throw Error(s(482));n=a,n.status="pending",n.then(function(c){if(a.status==="pending"){var h=a;h.status="fulfilled",h.value=c}},function(c){if(a.status==="pending"){var h=a;h.status="rejected",h.reason=c}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,uv(n),n}throw Qo=a,tl}}function Zo(n){try{var a=n._init;return a(n._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Qo=i,tl):i}}var Qo=null;function cv(){if(Qo===null)throw Error(s(459));var n=Qo;return Qo=null,n}function uv(n){if(n===tl||n===Xd)throw Error(s(483))}var nl=null,Bc=0;function Qd(n){var a=Bc;return Bc+=1,nl===null&&(nl=[]),lv(nl,n,a)}function eo(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function Jd(n,a){throw a.$$typeof===j?Error(s(525)):(n=Object.prototype.toString.call(a),Error(s(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function dv(n){function a(re,J){if(n){var ie=re.deletions;ie===null?(re.deletions=[J],re.flags|=16):ie.push(J)}}function i(re,J){if(!n)return null;for(;J!==null;)a(re,J),J=J.sibling;return null}function c(re){for(var J=new Map;re!==null;)re.key===null?J.set(re.index,re):J.set(re.key,re),re=re.sibling;return J}function h(re,J){return re=$s(re,J),re.index=0,re.sibling=null,re}function b(re,J,ie){return re.index=ie,n?(ie=re.alternate,ie!==null?(ie=ie.index,ie<J?(re.flags|=2,J):ie):(re.flags|=134217730,J)):(re.flags|=1048576,J)}function $(re){return n&&re.alternate===null&&(re.flags|=134217730),re}function z(re,J,ie,me){return J===null||J.tag!==6?(J=tg(ie,re.mode,me),J.return=re,J):(J=h(J,ie),J.return=re,J)}function V(re,J,ie,me){var Oe=ie.type;return Oe===H?(re=ce(re,J,ie.props.children,me,ie.key),eo(re,ie),re):J!==null&&(J.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===Z&&Zo(Oe)===J.type)?(J=h(J,ie.props),eo(J,ie),J.return=re,J):(J=Hd(ie.type,ie.key,ie.props,null,re.mode,me),eo(J,ie),J.return=re,J)}function se(re,J,ie,me){return J===null||J.tag!==4||J.stateNode.containerInfo!==ie.containerInfo||J.stateNode.implementation!==ie.implementation?(J=ng(ie,re.mode,me),J.return=re,J):(J=h(J,ie.children||[]),J.return=re,J)}function ce(re,J,ie,me,Oe){return J===null||J.tag!==7?(J=Uo(ie,re.mode,me,Oe),J.return=re,J):(J=h(J,ie),J.return=re,J)}function be(re,J,ie){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return J=tg(""+J,re.mode,ie),J.return=re,J;if(typeof J=="object"&&J!==null){switch(J.$$typeof){case O:return ie=Hd(J.type,J.key,J.props,null,re.mode,ie),eo(ie,J),ie.return=re,ie;case M:return J=ng(J,re.mode,ie),J.return=re,J;case Z:return J=Zo(J),be(re,J,ie)}if($e(J)||ue(J))return J=Uo(J,re.mode,ie,null),J.return=re,J;if(typeof J.then=="function")return be(re,Qd(J),ie);if(J.$$typeof===U)return be(re,Wd(re,J),ie);Jd(re,J)}return null}function ne(re,J,ie,me){var Oe=J!==null?J.key:null;if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return Oe!==null?null:z(re,J,""+ie,me);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case O:return ie.key===Oe?V(re,J,ie,me):null;case M:return ie.key===Oe?se(re,J,ie,me):null;case Z:return ie=Zo(ie),ne(re,J,ie,me)}if($e(ie)||ue(ie))return Oe!==null?null:ce(re,J,ie,me,null);if(typeof ie.then=="function")return ne(re,J,Qd(ie),me);if(ie.$$typeof===U)return ne(re,J,Wd(re,ie),me);Jd(re,ie)}return null}function le(re,J,ie,me,Oe){if(typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint")return re=re.get(ie)||null,z(J,re,""+me,Oe);if(typeof me=="object"&&me!==null){switch(me.$$typeof){case O:return re=re.get(me.key===null?ie:me.key)||null,V(J,re,me,Oe);case M:return re=re.get(me.key===null?ie:me.key)||null,se(J,re,me,Oe);case Z:return me=Zo(me),le(re,J,ie,me,Oe)}if($e(me)||ue(me))return re=re.get(ie)||null,ce(J,re,me,Oe,null);if(typeof me.then=="function")return le(re,J,ie,Qd(me),Oe);if(me.$$typeof===U)return le(re,J,ie,Wd(J,me),Oe);Jd(J,me)}return null}function Ae(re,J,ie,me){for(var Oe=null,vt=null,Ue=J,Xe=J=0,Tn=null;Ue!==null&&Xe<ie.length;Xe++){Ue.index>Xe?(Tn=Ue,Ue=null):Tn=Ue.sibling;var Tt=ne(re,Ue,ie[Xe],me);if(Tt===null){Ue===null&&(Ue=Tn);break}n&&Ue&&Tt.alternate===null&&a(re,Ue),J=b(Tt,J,Xe),vt===null?Oe=Tt:vt.sibling=Tt,vt=Tt,Ue=Tn}if(Xe===ie.length)return i(re,Ue),xt&&Ts(re,Xe),Oe;if(Ue===null){for(;Xe<ie.length;Xe++)Ue=be(re,ie[Xe],me),Ue!==null&&(J=b(Ue,J,Xe),vt===null?Oe=Ue:vt.sibling=Ue,vt=Ue);return xt&&Ts(re,Xe),Oe}for(Ue=c(Ue);Xe<ie.length;Xe++)Tn=le(Ue,re,Xe,ie[Xe],me),Tn!==null&&(n&&(Tt=Tn.alternate,Tt!==null&&Ue.delete(Tt.key===null?Xe:Tt.key)),J=b(Tn,J,Xe),vt===null?Oe=Tn:vt.sibling=Tn,vt=Tn);return n&&Ue.forEach(function(ko){return a(re,ko)}),xt&&Ts(re,Xe),Oe}function _e(re,J,ie,me){if(ie==null)throw Error(s(151));for(var Oe=null,vt=null,Ue=J,Xe=J=0,Tn=null,Tt=ie.next();Ue!==null&&!Tt.done;Xe++,Tt=ie.next()){Ue.index>Xe?(Tn=Ue,Ue=null):Tn=Ue.sibling;var ko=ne(re,Ue,Tt.value,me);if(ko===null){Ue===null&&(Ue=Tn);break}n&&Ue&&ko.alternate===null&&a(re,Ue),J=b(ko,J,Xe),vt===null?Oe=ko:vt.sibling=ko,vt=ko,Ue=Tn}if(Tt.done)return i(re,Ue),xt&&Ts(re,Xe),Oe;if(Ue===null){for(;!Tt.done;Xe++,Tt=ie.next())Tt=be(re,Tt.value,me),Tt!==null&&(J=b(Tt,J,Xe),vt===null?Oe=Tt:vt.sibling=Tt,vt=Tt);return xt&&Ts(re,Xe),Oe}for(Ue=c(Ue);!Tt.done;Xe++,Tt=ie.next())Tt=le(Ue,re,Xe,Tt.value,me),Tt!==null&&(n&&(Tn=Tt.alternate,Tn!==null&&Ue.delete(Tn.key===null?Xe:Tn.key)),J=b(Tt,J,Xe),vt===null?Oe=Tt:vt.sibling=Tt,vt=Tt);return n&&Ue.forEach(function(bM){return a(re,bM)}),xt&&Ts(re,Xe),Oe}function dt(re,J,ie,me){if(typeof ie=="object"&&ie!==null&&ie.type===H&&ie.key===null&&ie.props.ref===void 0&&(ie=ie.props.children),typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case O:e:{for(var Oe=ie.key;J!==null;){if(J.key===Oe){if(Oe=ie.type,Oe===H){if(J.tag===7){i(re,J.sibling),me=h(J,ie.props.children),eo(me,ie),me.return=re,re=me;break e}}else if(J.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===Z&&Zo(Oe)===J.type){i(re,J.sibling),me=h(J,ie.props),eo(me,ie),me.return=re,re=me;break e}i(re,J);break}else a(re,J);J=J.sibling}ie.type===H?(me=Uo(ie.props.children,re.mode,me,ie.key),eo(me,ie),me.return=re,re=me):(me=Hd(ie.type,ie.key,ie.props,null,re.mode,me),eo(me,ie),me.return=re,re=me)}return $(re);case M:e:{for(Oe=ie.key;J!==null;){if(J.key===Oe)if(J.tag===4&&J.stateNode.containerInfo===ie.containerInfo&&J.stateNode.implementation===ie.implementation){i(re,J.sibling),me=h(J,ie.children||[]),me.return=re,re=me;break e}else{i(re,J);break}else a(re,J);J=J.sibling}me=ng(ie,re.mode,me),me.return=re,re=me}return $(re);case Z:return ie=Zo(ie),dt(re,J,ie,me)}if($e(ie))return Ae(re,J,ie,me);if(ue(ie)){if(Oe=ue(ie),typeof Oe!="function")throw Error(s(150));return ie=Oe.call(ie),_e(re,J,ie,me)}if(typeof ie.then=="function")return dt(re,J,Qd(ie),me);if(ie.$$typeof===U)return dt(re,J,Wd(re,ie),me);Jd(re,ie)}return typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint"?(ie=""+ie,J!==null&&J.tag===6?(i(re,J.sibling),me=h(J,ie),me.return=re,re=me):(i(re,J),me=tg(ie,re.mode,me),me.return=re,re=me),$(re)):i(re,J)}return function(re,J,ie,me){try{Bc=0;var Oe=dt(re,J,ie,me);return nl=null,Oe}catch(Ue){if(Ue===tl||Ue===Xd)throw Ue;var vt=Cr(29,Ue,null,re.mode);return vt.lanes=me,vt.return=re,vt}}}var Jo=dv(!0),fv=dv(!1),to=!1;function fg(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hg(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function no(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function ro(n,a,i){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(Mt&2)!==0){var h=c.pending;return h===null?a.next=a:(a.next=h.next,h.next=a),c.pending=a,a=Bd(n),Yk(n,null,i),a}return Pd(n,c,a,i),Bd(n)}function Hc(n,a,i){if(a=a.updateQueue,a!==null&&(a=a.shared,(i&4194048)!==0)){var c=a.lanes;c&=n.pendingLanes,i|=c,a.lanes=i,Ft(n,i)}}function pg(n,a){var i=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,i===c)){var h=null,b=null;if(i=i.firstBaseUpdate,i!==null){do{var $={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};b===null?h=b=$:b=b.next=$,i=i.next}while(i!==null);b===null?h=b=a:b=b.next=a}else h=b=a;i={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:b,shared:c.shared,callbacks:c.callbacks},n.updateQueue=i;return}n=i.lastBaseUpdate,n===null?i.firstBaseUpdate=a:n.next=a,i.lastBaseUpdate=a}var xg=!1;function Fc(){if(xg){var n=el;if(n!==null)throw n}}function Uc(n,a,i,c){xg=!1;var h=n.updateQueue;to=!1;var b=h.firstBaseUpdate,$=h.lastBaseUpdate,z=h.shared.pending;if(z!==null){h.shared.pending=null;var V=z,se=V.next;V.next=null,$===null?b=se:$.next=se,$=V;var ce=n.alternate;ce!==null&&(ce=ce.updateQueue,z=ce.lastBaseUpdate,z!==$&&(z===null?ce.firstBaseUpdate=se:z.next=se,ce.lastBaseUpdate=V))}if(b!==null){var be=h.baseState;$=0,ce=se=V=null,z=b;do{var ne=z.lane&-536870913,le=ne!==z.lane;if(le?(kt&ne)===ne:(c&ne)===ne){ne!==0&&ne===Yo&&(xg=!0),ce!==null&&(ce=ce.next={lane:0,tag:z.tag,payload:z.payload,callback:null,next:null});e:{var Ae=n,_e=z;ne=a;var dt=i;switch(_e.tag){case 1:if(Ae=_e.payload,typeof Ae=="function"){be=Ae.call(dt,be,ne);break e}be=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=_e.payload,ne=typeof Ae=="function"?Ae.call(dt,be,ne):Ae,ne==null)break e;be=D({},be,ne);break e;case 2:to=!0}}ne=z.callback,ne!==null&&(n.flags|=64,le&&(n.flags|=8192),le=h.callbacks,le===null?h.callbacks=[ne]:le.push(ne))}else le={lane:ne,tag:z.tag,payload:z.payload,callback:z.callback,next:null},ce===null?(se=ce=le,V=be):ce=ce.next=le,$|=ne;if(z=z.next,z===null){if(z=h.shared.pending,z===null)break;le=z,z=le.next,le.next=null,h.lastBaseUpdate=le,h.shared.pending=null}}while(!0);ce===null&&(V=be),h.baseState=V,h.firstBaseUpdate=se,h.lastBaseUpdate=ce,b===null&&(h.shared.lanes=0),uo|=$,n.lanes=$,n.memoizedState=be}}function hv(n,a){if(typeof n!="function")throw Error(s(191,n));n.call(a)}function pv(n,a){var i=n.callbacks;if(i!==null)for(n.callbacks=null,n=0;n<i.length;n++)hv(i[n],a)}var ao=Me(null),ef=Me(0);function xv(n,a){n=zs,He(ef,n),He(ao,a),zs=n|a.baseLanes}function gg(){He(ef,zs),He(ao,ao.current)}function mg(){zs=ef.current,je(ao),je(ef)}var er=Me(null),ir=null;function so(n){var a=n.alternate;He(tr,tr.current&1),He(er,n),ir===null&&(a===null||ao.current!==null||a.memoizedState!==null)&&(ir=n)}function yg(n){He(tr,tr.current),He(er,n),ir===null&&(ir=n)}function gv(n){n.tag===22?(He(tr,tr.current),He(er,n),ir===null&&(ir=n)):oo()}function oo(){He(tr,tr.current),He(er,er.current)}function Gr(n){je(er),ir===n&&(ir=null),je(tr)}var tr=Me(0);function Vc(n,a){He(er,er.current),He(tr,a)}function bg(n){je(tr),je(er),ir===n&&(ir=null)}function tf(n){for(var a=n;a!==null;){if(a.tag===13){var i=a.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Bm(i)||Hm(i)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!=="independent"){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Rs=0,ut=null,Ht=null,En=null,nf=!1,rl=!1,ei=!1,rf=0,Gc=0,al=null,PA=0;function fn(){throw Error(s(321))}function kg(n,a){if(a===null)return!1;for(var i=0;i<a.length&&i<n.length;i++)if(!Vr(n[i],a[i]))return!1;return!0}function vg(n,a,i,c,h,b){return Rs=b,ut=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,te.H=n===null||n.memoizedState===null?Jv:e2,ei=!1,b=i(c,h),ei=!1,rl&&(b=yv(a,i,c,h)),mv(n),b}function mv(n){te.H=df;var a=Ht!==null&&Ht.next!==null;if(Rs=0,En=Ht=ut=null,nf=!1,Gc=0,al=null,a)throw Error(s(300));n===null||$n||(n=n.dependencies,n!==null&&Kd(n)&&($n=!0))}function yv(n,a,i,c){ut=n;var h=0;do{if(rl&&(al=null),Gc=0,rl=!1,25<=h)throw Error(s(301));if(h+=1,En=Ht=null,n.updateQueue!=null){var b=n.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}te.H=WA,b=a(i,c)}while(rl);return b}function BA(){var n=te.H,a=n.useState()[0];return a=typeof a.then=="function"?Kc(a):a,n=n.useState()[0],(Ht!==null?Ht.memoizedState:null)!==n&&(ut.flags|=1024),a}function wg(){var n=rf!==0;return rf=0,n}function Sg(n,a,i){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~i}function Eg(n){if(nf){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}nf=!1}Rs=0,En=Ht=ut=null,rl=!1,Gc=rf=0,al=null}function pr(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return En===null?ut.memoizedState=En=n:En=En.next=n,En}function yn(){if(Ht===null){var n=ut.alternate;n=n!==null?n.memoizedState:null}else n=Ht.next;var a=En===null?ut.memoizedState:En.next;if(a!==null)En=a,Ht=n;else{if(n===null)throw ut.alternate===null?Error(s(467)):Error(s(310));Ht=n,n={memoizedState:Ht.memoizedState,baseState:Ht.baseState,baseQueue:Ht.baseQueue,queue:Ht.queue,next:null},En===null?ut.memoizedState=En=n:En=En.next=n}return En}function af(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kc(n){var a=Gc;return Gc+=1,al===null&&(al=[]),n=lv(al,n,a),a=ut,(En===null?a.memoizedState:En.next)===null&&(a=a.alternate,te.H=a===null||a.memoizedState===null?Jv:e2),n}function sf(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Kc(n);if(n.$$typeof===ee)return;if(n.$$typeof===U)return Jn(n)}throw Error(s(438,String(n)))}function $g(n){var a=null,i=ut.updateQueue;if(i!==null&&(a=i.memoCache),a==null){var c=ut.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(a={data:c.data.map(function(h){return h.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),i===null&&(i=af(),ut.updateQueue=i),i.memoCache=a,i=a.data[a.index],i===void 0)for(i=a.data[a.index]=Array(n),c=0;c<n;c++)i[c]=ae;return a.index++,i}function As(n,a){return typeof a=="function"?a(n):a}function of(n){var a=yn();return Tg(a,Ht,n)}function Tg(n,a,i){var c=n.queue;if(c===null)throw Error(s(311));c.lastRenderedReducer=i;var h=n.baseQueue,b=c.pending;if(b!==null){if(h!==null){var $=h.next;h.next=b.next,b.next=$}a.baseQueue=h=b,c.pending=null}if(b=n.baseState,h===null)n.memoizedState=b;else{a=h.next;var z=$=null,V=null,se=a,ce=!1;do{var be=se.lane&-536870913;if(be!==se.lane?(kt&be)===be:(Rs&be)===be){var ne=se.revertLane;if(ne===0)V!==null&&(V=V.next={lane:0,revertLane:0,gesture:null,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null}),be===Yo&&(ce=!0);else if((Rs&ne)===ne){se=se.next,ne===Yo&&(ce=!0);continue}else be={lane:0,revertLane:se.revertLane,gesture:null,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null},V===null?(z=V=be,$=b):V=V.next=be,ut.lanes|=ne,uo|=ne;be=se.action,ei&&i(b,be),b=se.hasEagerState?se.eagerState:i(b,be)}else ne={lane:be,revertLane:se.revertLane,gesture:se.gesture,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null},V===null?(z=V=ne,$=b):V=V.next=ne,ut.lanes|=be,uo|=be;se=se.next}while(se!==null&&se!==a);if(V===null?$=b:V.next=z,!Vr(b,n.memoizedState)&&($n=!0,ce&&(i=el,i!==null)))throw i;n.memoizedState=b,n.baseState=$,n.baseQueue=V,c.lastRenderedState=b}return h===null&&(c.lanes=0),[n.memoizedState,c.dispatch]}function Cg(n){var a=yn(),i=a.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=n;var c=i.dispatch,h=i.pending,b=a.memoizedState;if(h!==null){i.pending=null;var $=h=h.next;do b=n(b,$.action),$=$.next;while($!==h);Vr(b,a.memoizedState)||($n=!0),a.memoizedState=b,a.baseQueue===null&&(a.baseState=b),i.lastRenderedState=b}return[b,c]}function bv(n,a,i){var c=ut,h=yn(),b=xt;if(b){if(i===void 0)throw Error(s(407));i=i()}else i=a();var $=!Vr((Ht||h).memoizedState,i);if($&&(h.memoizedState=i,$n=!0),h=h.queue,Ag(wv.bind(null,c,h,n),[n]),n=h.getSnapshot!==a||$||En!==null&&(En.memoizedState.tag&1)!==0,sl(n?9:8,{destroy:void 0},vv.bind(null,c,h,i,a),null),n){if(c.flags|=2048,Ut===null)throw Error(s(349));b||(Rs&127)!==0||kv(c,a,i)}return i}function kv(n,a,i){n.flags|=16384,n={getSnapshot:a,value:i},a=ut.updateQueue,a===null?(a=af(),ut.updateQueue=a,a.stores=[n]):(i=a.stores,i===null?a.stores=[n]:i.push(n))}function vv(n,a,i,c){a.value=i,a.getSnapshot=c,Sv(a)&&Ev(n)}function wv(n,a,i){return i(function(){Sv(a)&&Ev(n)})}function Sv(n){var a=n.getSnapshot;n=n.value;try{var i=a();return!Vr(n,i)}catch{return!0}}function Ev(n){var a=Fo(n,2);a!==null&&Mr(a,n,2)}function jg(n){var a=pr();if(typeof n=="function"){var i=n;if(n=i(),ei){ur(!0);try{i()}finally{ur(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:As,lastRenderedState:n},a}function $v(n,a,i,c){return n.baseState=i,Tg(n,Ht,typeof c=="function"?c:As)}function HA(n,a,i,c,h){if(uf(n))throw Error(s(485));if(n=a.action,n!==null){var b={payload:h,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function($){b.listeners.push($)}};te.T!==null?i(!0):b.isTransition=!1,c(b),i=a.pending,i===null?(b.next=a.pending=b,Tv(a,b)):(b.next=i.next,a.pending=i.next=b)}}function Tv(n,a){var i=a.action,c=a.payload,h=n.state;if(a.isTransition){var b=te.T,$={};$.types=b!==null?b.types:null,te.T=$;try{var z=i(h,c),V=te.S;V!==null&&V($,z),Cv(n,a,z)}catch(se){Rg(n,a,se)}finally{b!==null&&$.types!==null&&(b.types=$.types),te.T=b}}else try{b=i(h,c),Cv(n,a,b)}catch(se){Rg(n,a,se)}}function Cv(n,a,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(c){jv(n,a,c)},function(c){return Rg(n,a,c)}):jv(n,a,i)}function jv(n,a,i){a.status="fulfilled",a.value=i,Rv(a),n.state=i,a=n.pending,a!==null&&(i=a.next,i===a?n.pending=null:(i=i.next,a.next=i,Tv(n,i)))}function Rg(n,a,i){var c=n.pending;if(n.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=i,Rv(a),a=a.next;while(a!==c)}n.action=null}function Rv(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function Av(n,a){return a}function Mv(n,a){if(xt){var i=Ut.formState;if(i!==null){e:{var c=ut;if(xt){if(Kt){t:{for(var h=Kt,b=ha;h.nodeType!==8;){if(!b){h=null;break t}if(h=xa(h.nextSibling),h===null){h=null;break t}}b=h.data,h=b==="F!"||b==="F"?h:null}if(h){Kt=xa(h.nextSibling),c=h.data==="F!";break e}}Qs(c)}c=!1}c&&(a=i[0])}}return i=pr(),i.memoizedState=i.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Av,lastRenderedState:a},i.queue=c,i=Xv.bind(null,ut,c),c.dispatch=i,c=jg(!1),b=Dg.bind(null,ut,!1,c.queue),c=pr(),h={state:a,dispatch:null,action:n,pending:null},c.queue=h,i=HA.bind(null,ut,h,b,i),h.dispatch=i,c.memoizedState=n,[a,i,!1]}function Nv(n){var a=yn();return zv(a,Ht,n)}function zv(n,a,i){if(a=Tg(n,a,Av)[0],n=of(As)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var c=Kc(a)}catch($){throw $===tl?Xd:$}else c=a;a=yn();var h=a.queue,b=h.dispatch;return i!==a.memoizedState&&(ut.flags|=2048,sl(9,{destroy:void 0},FA.bind(null,h,i),null)),[c,b,n]}function FA(n,a){n.action=a}function Lv(n){var a=yn(),i=Ht;if(i!==null)return zv(a,i,n);yn(),a=a.memoizedState,i=yn();var c=i.queue.dispatch;return i.memoizedState=n,[a,c,!1]}function sl(n,a,i,c){return n={tag:n,create:i,deps:c,inst:a,next:null},a=ut.updateQueue,a===null&&(a=af(),ut.updateQueue=a),i=a.lastEffect,i===null?a.lastEffect=n.next=n:(c=i.next,i.next=n,n.next=c,a.lastEffect=n),n}function Dv(){return yn().memoizedState}function lf(n,a,i,c){var h=pr();ut.flags|=n,h.memoizedState=sl(1|a,{destroy:void 0},i,c===void 0?null:c)}function cf(n,a,i,c){var h=yn();c=c===void 0?null:c;var b=h.memoizedState.inst;Ht!==null&&c!==null&&kg(c,Ht.memoizedState.deps)?h.memoizedState=sl(a,b,i,c):(ut.flags|=n,h.memoizedState=sl(1|a,b,i,c))}function Ov(n,a){lf(8390656,8,n,a)}function Ag(n,a){cf(2048,8,n,a)}function UA(n){ut.flags|=4;var a=ut.updateQueue;if(a===null)a=af(),ut.updateQueue=a,a.events=[n];else{var i=a.events;i===null?a.events=[n]:i.push(n)}}function Iv(n){var a=yn().memoizedState;return UA({ref:a,nextImpl:n}),function(){if((Mt&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}function _v(n,a){return cf(4,2,n,a)}function qv(n,a){return cf(4,4,n,a)}function Pv(n,a){if(typeof a=="function"){n=n();var i=a(n);return function(){typeof i=="function"?i():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function Bv(n,a,i){i=i!=null?i.concat([n]):null,cf(4,4,Pv.bind(null,a,n),i)}function Mg(){}function Hv(n,a){var i=yn();a=a===void 0?null:a;var c=i.memoizedState;return a!==null&&kg(a,c[1])?c[0]:(i.memoizedState=[n,a],n)}function Fv(n,a){var i=yn();a=a===void 0?null:a;var c=i.memoizedState;if(a!==null&&kg(a,c[1]))return c[0];if(c=n(),ei){ur(!0);try{n()}finally{ur(!1)}}return i.memoizedState=[c,a],c}function Ng(n,a,i){return i===void 0||(Rs&1073741824)!==0&&(kt&261930)===0?n.memoizedState=a:(n.memoizedState=i,n=J2(),ut.lanes|=n,uo|=n,i)}function Uv(n,a,i,c){return Vr(i,a)?i:ao.current!==null?(n=Ng(n,i,c),Vr(n,a)||($n=!0),n):(Rs&106)===0||(Rs&1073741824)!==0&&(kt&261930)===0?($n=!0,n.memoizedState=i):(n=J2(),ut.lanes|=n,uo|=n,a)}function Vv(n,a,i,c,h){var b=he.p;he.p=b!==0&&8>b?b:8;var $=te.T,z={};z.types=$!==null?$.types:null,te.T=z,Dg(n,!1,a,i);try{var V=h(),se=te.S;if(se!==null&&se(z,V),V!==null&&typeof V=="object"&&typeof V.then=="function"){var ce=qA(V,c);Wc(n,a,ce,Xr(n))}else Wc(n,a,c,Xr(n))}catch(be){Wc(n,a,{then:function(){},status:"rejected",reason:be},Xr())}finally{he.p=b,$!==null&&z.types!==null&&($.types=z.types),te.T=$}}function VA(){}function zg(n,a,i,c){if(n.tag!==5)throw Error(s(476));var h=Gv(n).queue;Vv(n,h,a,Re,i===null?VA:function(){return Kv(n),i(c)})}function Gv(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:Re,baseState:Re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:As,lastRenderedState:Re},next:null};var i={};return a.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:As,lastRenderedState:i},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function Kv(n){var a=Gv(n);a.next===null&&(a=n.alternate.memoizedState),Wc(n,a.next.queue,{},Xr())}function Lg(){return Jn(El)}function Wv(){return yn().memoizedState}function Yv(){return yn().memoizedState}function GA(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var i=Xr();n=no(i);var c=ro(a,n,i);c!==null&&(Mr(c,a,i),Hc(c,a,i)),a={cache:lg()},n.payload=a;return}a=a.return}}function KA(n,a,i){var c=Xr();i={lane:c,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},uf(n)?Zv(a,i):(i=Jx(n,a,i,c),i!==null&&(Mr(i,n,c),Qv(i,a,c)))}function Xv(n,a,i){var c=Xr();Wc(n,a,i,c)}function Wc(n,a,i,c){var h={lane:c,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(uf(n))Zv(a,h);else{var b=n.alternate;if(n.lanes===0&&(b===null||b.lanes===0)&&(b=a.lastRenderedReducer,b!==null))try{var $=a.lastRenderedState,z=b($,i);if(h.hasEagerState=!0,h.eagerState=z,Vr(z,$))return Pd(n,a,h,0),Ut===null&&qd(),!1}catch{}if(i=Jx(n,a,h,c),i!==null)return Mr(i,n,c),Qv(i,a,c),!0}return!1}function Dg(n,a,i,c){if(c={lane:2,revertLane:$m(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},uf(n)){if(a)throw Error(s(479))}else a=Jx(n,i,c,2),a!==null&&Mr(a,n,2)}function uf(n){var a=n.alternate;return n===ut||a!==null&&a===ut}function Zv(n,a){rl=nf=!0;var i=n.pending;i===null?a.next=a:(a.next=i.next,i.next=a),n.pending=a}function Qv(n,a,i){if((i&4194048)!==0){var c=a.lanes;c&=n.pendingLanes,i|=c,a.lanes=i,Ft(n,i)}}var df={readContext:Jn,use:sf,useCallback:fn,useContext:fn,useEffect:fn,useImperativeHandle:fn,useLayoutEffect:fn,useInsertionEffect:fn,useMemo:fn,useReducer:fn,useRef:fn,useState:fn,useDebugValue:fn,useDeferredValue:fn,useTransition:fn,useSyncExternalStore:fn,useId:fn,useHostTransitionStatus:fn,useFormState:fn,useActionState:fn,useOptimistic:fn,useMemoCache:fn,useCacheRefresh:fn,useEffectEvent:fn},Jv={readContext:Jn,use:sf,useCallback:function(n,a){return pr().memoizedState=[n,a===void 0?null:a],n},useContext:Jn,useEffect:Ov,useImperativeHandle:function(n,a,i){i=i!=null?i.concat([n]):null,lf(4194308,4,Pv.bind(null,a,n),i)},useLayoutEffect:function(n,a){return lf(4194308,4,n,a)},useInsertionEffect:function(n,a){lf(4,2,n,a)},useMemo:function(n,a){var i=pr();a=a===void 0?null:a;var c=n();if(ei){ur(!0);try{n()}finally{ur(!1)}}return i.memoizedState=[c,a],c},useReducer:function(n,a,i){var c=pr();if(i!==void 0){var h=i(a);if(ei){ur(!0);try{i(a)}finally{ur(!1)}}}else h=a;return c.memoizedState=c.baseState=h,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:h},c.queue=n,n=n.dispatch=KA.bind(null,ut,n),[c.memoizedState,n]},useRef:function(n){var a=pr();return n={current:n},a.memoizedState=n},useState:function(n){n=jg(n);var a=n.queue,i=Xv.bind(null,ut,a);return a.dispatch=i,[n.memoizedState,i]},useDebugValue:Mg,useDeferredValue:function(n,a){var i=pr();return Ng(i,n,a)},useTransition:function(){var n=jg(!1);return n=Vv.bind(null,ut,n.queue,!0,!1),pr().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,i){var c=ut,h=pr();if(xt){if(i===void 0)throw Error(s(407));i=i()}else{if(i=a(),Ut===null)throw Error(s(349));(kt&127)!==0||kv(c,a,i)}h.memoizedState=i;var b={value:i,getSnapshot:a};return h.queue=b,Ov(wv.bind(null,c,b,n),[n]),c.flags|=2048,sl(9,{destroy:void 0},vv.bind(null,c,b,i,a),null),i},useId:function(){var n=pr(),a=Ut.identifierPrefix;if(xt){var i=ts,c=es;i=(c&~(1<<32-Mn(c)-1)).toString(32)+i,a="_"+a+"R_"+i,i=rf++,0<i&&(a+="H"+i.toString(32)),a+="_"}else i=PA++,a="_"+a+"r_"+i.toString(32)+"_";return n.memoizedState=a},useHostTransitionStatus:Lg,useFormState:Mv,useActionState:Mv,useOptimistic:function(n){var a=pr();a.memoizedState=a.baseState=n;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=i,a=Dg.bind(null,ut,!0,i),i.dispatch=a,[n,a]},useMemoCache:$g,useCacheRefresh:function(){return pr().memoizedState=GA.bind(null,ut)},useEffectEvent:function(n){var a=pr(),i={impl:n};return a.memoizedState=i,function(){if((Mt&2)!==0)throw Error(s(440));return i.impl.apply(void 0,arguments)}}},e2={readContext:Jn,use:sf,useCallback:Hv,useContext:Jn,useEffect:Ag,useImperativeHandle:Bv,useInsertionEffect:_v,useLayoutEffect:qv,useMemo:Fv,useReducer:of,useRef:Dv,useState:function(){return of(As)},useDebugValue:Mg,useDeferredValue:function(n,a){var i=yn();return Uv(i,Ht.memoizedState,n,a)},useTransition:function(){var n=of(As)[0],a=yn().memoizedState;return[typeof n=="boolean"?n:Kc(n),a]},useSyncExternalStore:bv,useId:Wv,useHostTransitionStatus:Lg,useFormState:Nv,useActionState:Nv,useOptimistic:function(n,a){var i=yn();return $v(i,Ht,n,a)},useMemoCache:$g,useCacheRefresh:Yv,useEffectEvent:Iv},WA={readContext:Jn,use:sf,useCallback:Hv,useContext:Jn,useEffect:Ag,useImperativeHandle:Bv,useInsertionEffect:_v,useLayoutEffect:qv,useMemo:Fv,useReducer:Cg,useRef:Dv,useState:function(){return Cg(As)},useDebugValue:Mg,useDeferredValue:function(n,a){var i=yn();return Ht===null?Ng(i,n,a):Uv(i,Ht.memoizedState,n,a)},useTransition:function(){var n=Cg(As)[0],a=yn().memoizedState;return[typeof n=="boolean"?n:Kc(n),a]},useSyncExternalStore:bv,useId:Wv,useHostTransitionStatus:Lg,useFormState:Lv,useActionState:Lv,useOptimistic:function(n,a){var i=yn();return Ht!==null?$v(i,Ht,n,a):(i.baseState=n,[n,i.queue.dispatch])},useMemoCache:$g,useCacheRefresh:Yv,useEffectEvent:Iv};function Og(n,a,i,c){a=n.memoizedState,i=i(c,a),i=i==null?a:D({},a,i),n.memoizedState=i,n.lanes===0&&(n.updateQueue.baseState=i)}var Ig={enqueueSetState:function(n,a,i){n=n._reactInternals;var c=Xr(),h=no(c);h.payload=a,i!=null&&(h.callback=i),a=ro(n,h,c),a!==null&&(Mr(a,n,c),Hc(a,n,c))},enqueueReplaceState:function(n,a,i){n=n._reactInternals;var c=Xr(),h=no(c);h.tag=1,h.payload=a,i!=null&&(h.callback=i),a=ro(n,h,c),a!==null&&(Mr(a,n,c),Hc(a,n,c))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var i=Xr(),c=no(i);c.tag=2,a!=null&&(c.callback=a),a=ro(n,c,i),a!==null&&(Mr(a,n,i),Hc(a,n,i))}};function t2(n,a,i,c,h,b,$){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(c,b,$):a.prototype&&a.prototype.isPureReactComponent?!Lc(i,c)||!Lc(h,b):!0}function n2(n,a,i,c){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(i,c),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(i,c),a.state!==n&&Ig.enqueueReplaceState(a,a.state,null)}function ti(n,a){var i=a;if("ref"in a){i={};for(var c in a)c!=="ref"&&(i[c]=a[c])}if(n=n.defaultProps){i===a&&(i=D({},i));for(var h in n)i[h]===void 0&&(i[h]=n[h])}return i}function r2(n){_d(n)}function a2(n){console.error(n)}function s2(n){_d(n)}function ff(n,a){try{var i=n.onUncaughtError;i(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function o2(n,a,i){try{var c=n.onCaughtError;c(i.value,{componentStack:i.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function _g(n,a,i){return i=no(i),i.tag=3,i.payload={element:null},i.callback=function(){ff(n,a)},i}function i2(n){return n=no(n),n.tag=3,n}function l2(n,a,i,c){var h=i.type.getDerivedStateFromError;if(typeof h=="function"){var b=c.value;n.payload=function(){return h(b)},n.callback=function(){o2(a,i,c)}}var $=i.stateNode;$!==null&&typeof $.componentDidCatch=="function"&&(n.callback=function(){o2(a,i,c),typeof h!="function"&&(fo===null?fo=new Set([this]):fo.add(this));var z=c.stack;this.componentDidCatch(c.value,{componentStack:z!==null?z:""})})}function YA(n,a,i,c,h){if(i.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=i.alternate,a!==null&&Ko(a,i,h,!0),i=er.current,i!==null){switch(i.tag){case 31:case 13:case 19:return ir===null?zf():i.alternate===null&&hn===0&&(hn=3),i.flags&=-257,i.flags|=65536,i.lanes=h,c===Zd?i.flags|=16384:(a=i.updateQueue,a===null?i.updateQueue=new Set([c]):a.add(c),wm(n,c,h)),!1;case 22:return i.flags|=65536,c===Zd?i.flags|=16384:(a=i.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([c])},i.updateQueue=a):(i=a.retryQueue,i===null?a.retryQueue=new Set([c]):i.add(c)),wm(n,c,h)),!1}throw Error(s(435,i.tag))}return wm(n,c,h),zf(),!1}if(xt)return a=er.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=h,c!==ag&&(n=Error(s(422),{cause:c}),Ic(ua(n,i)))):(c!==ag&&(a=Error(s(423),{cause:c}),Ic(ua(a,i))),n=n.current.alternate,n.flags|=65536,h&=-h,n.lanes|=h,c=ua(c,i),h=_g(n.stateNode,c,h),pg(n,h),hn!==4&&(hn=2)),!1;var b=Error(s(520),{cause:c});if(b=ua(b,i),nu===null?nu=[b]:nu.push(b),hn!==4&&(hn=2),a===null)return!0;c=ua(c,i),i=a;do{switch(i.tag){case 3:return i.flags|=65536,n=h&-h,i.lanes|=n,n=_g(i.stateNode,c,n),pg(i,n),!1;case 1:if(a=i.type,b=i.stateNode,(i.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(fo===null||!fo.has(b))))return i.flags|=65536,h&=-h,i.lanes|=h,h=i2(h),l2(h,n,i,c),pg(i,h),!1;break;case 22:if(i.memoizedState!==null)return i.flags|=65536,!1}i=i.return}while(i!==null);return!1}var qg=Error(s(461)),$n=!1;function Dn(n,a,i,c){a.child=n===null?fv(a,null,i,c):Jo(a,n.child,i,c)}function c2(n,a,i,c,h){i=i.render;var b=a.ref;if("ref"in c){var $={};for(var z in c)z!=="ref"&&($[z]=c[z])}else $=c;return Wo(a),c=vg(n,a,i,$,b,h),z=wg(),n!==null&&!$n?(Sg(n,a,h),Ms(n,a,h)):(xt&&z&&Ud(a),a.flags|=1,Dn(n,a,c,h),a.child)}function u2(n,a,i,c,h){if(n===null){var b=i.type;return typeof b=="function"&&!eg(b)&&b.defaultProps===void 0&&i.compare===null?(a.tag=15,a.type=b,d2(n,a,b,c,h)):(n=Hd(i.type,null,c,a,a.mode,h),n.ref=a.ref,n.return=a,a.child=n)}if(b=n.child,!Kg(n,h)){var $=b.memoizedProps;if(i=i.compare,i=i!==null?i:Lc,i($,c)&&n.ref===a.ref)return Ms(n,a,h)}return a.flags|=1,n=$s(b,c),n.ref=a.ref,n.return=a,a.child=n}function d2(n,a,i,c,h){if(n!==null){var b=n.memoizedProps;if(Lc(b,c)&&n.ref===a.ref)if($n=!1,a.pendingProps=c=b,Kg(n,h))(n.flags&131072)!==0&&($n=!0);else return a.lanes=n.lanes,Ms(n,a,h)}return Pg(n,a,i,c,h)}function f2(n,a,i,c){var h=c.children,b=n!==null?n.memoizedState:null;if(n===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((a.flags&128)!==0){if(b=b!==null?b.baseLanes|i:i,n!==null){for(c=a.child=n.child,h=0;c!==null;)h=h|c.lanes|c.childLanes,c=c.sibling;c=h&~b}else c=0,a.child=null;return h2(n,a,b,i,c)}if((i&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&Yd(a,b!==null?b.cachePool:null),b!==null?xv(a,b):gg(),gv(a);else return c=a.lanes=536870912,h2(n,a,b!==null?b.baseLanes|i:i,i,c)}else b!==null?(Yd(a,b.cachePool),xv(a,b),oo(),a.memoizedState=null):(n!==null&&Yd(a,null),gg(),oo());return Dn(n,a,h,i),a.child}function Yc(n,a){return n!==null&&n.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function h2(n,a,i,c,h){var b=ug();return b=b===null?null:{parent:Sn._currentValue,pool:b},a.memoizedState={baseLanes:i,cachePool:b},n!==null&&Yd(a,null),gg(),gv(a),n!==null&&Ko(n,a,c,!0),a.childLanes=h,null}function hf(n,a){return a=pf({mode:a.mode,children:a.children},n.mode),a.ref=n.ref,n.child=a,a.return=n,a}function p2(n,a,i){return Jo(a,n.child,null,i),n=hf(a,a.pendingProps),n.flags|=2,Gr(a),a.memoizedState=null,n}function XA(n,a,i){var c=a.pendingProps,h=(a.flags&128)!==0;if(a.flags&=-129,n===null){if(xt){if(c.mode==="hidden")return n=hf(a,c),a.lanes=536870912,n.memoizedState={baseLanes:0,cachePool:null},Yc(null,n);if(yg(a),(n=Kt)?(n=Pw(n,ha),n=n!==null&&n.data==="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:Xs!==null?{id:es,overflow:ts}:null,retryLane:536870912,hydrationErrors:null},i=Zk(n),i.return=a,a.child=i,Fn=a,Kt=null)):n=null,n===null)throw Qs(a);return a.lanes=536870912,null}return hf(a,c)}var b=n.memoizedState;if(b!==null){var $=b.dehydrated;if(yg(a),h)if(a.flags&256)a.flags&=-257,a=p2(n,a,i);else if(a.memoizedState!==null)a.child=n.child,a.flags|=128,a=null;else throw Error(s(558));else if($n||Ko(n,a,i,!1),h=(i&n.childLanes)!==0,$n||h){if(ao.current===null){if(c=Ut,c!==null&&($=$t(c,i),$!==0&&$!==b.retryLane))throw b.retryLane=$,Fo(n,$),Mr(c,n,$),qg;zf()}a=p2(n,a,i)}else n=b.treeContext,Kt=xa($.nextSibling),Fn=a,xt=!0,Zs=null,ha=!1,n!==null&&ev(a,n),a=hf(a,c),a.flags|=134221824;return a}return n=$s(n.child,{mode:c.mode,children:c.children}),n.ref=a.ref,a.child=n,n.return=a,n}function ol(n,a){var i=a.ref;if(i===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(s(284));(n===null||n.ref!==i)&&(a.flags|=4194816)}}function Pg(n,a,i,c,h){return Wo(a),i=vg(n,a,i,c,void 0,h),c=wg(),n!==null&&!$n?(Sg(n,a,h),Ms(n,a,h)):(xt&&c&&Ud(a),a.flags|=1,Dn(n,a,i,h),a.child)}function x2(n,a,i,c,h,b){return Wo(a),a.updateQueue=null,i=yv(a,c,i,h),mv(n),c=wg(),n!==null&&!$n?(Sg(n,a,b),Ms(n,a,b)):(xt&&c&&Ud(a),a.flags|=1,Dn(n,a,i,b),a.child)}function g2(n,a,i,c,h){if(Wo(a),a.stateNode===null){var b=Xi,$=i.contextType;typeof $=="object"&&$!==null&&(b=Jn($)),b=new i(c,b),a.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Ig,a.stateNode=b,b._reactInternals=a,b=a.stateNode,b.props=c,b.state=a.memoizedState,b.refs={},fg(a),$=i.contextType,b.context=typeof $=="object"&&$!==null?Jn($):Xi,b.state=a.memoizedState,$=i.getDerivedStateFromProps,typeof $=="function"&&(Og(a,i,$,c),b.state=a.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||($=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),$!==b.state&&Ig.enqueueReplaceState(b,b.state,null),Uc(a,c,b,h),Fc(),b.state=a.memoizedState),typeof b.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(n===null){b=a.stateNode;var z=a.memoizedProps,V=ti(i,z);b.props=V;var se=b.context,ce=i.contextType;$=Xi,typeof ce=="object"&&ce!==null&&($=Jn(ce));var be=i.getDerivedStateFromProps;ce=typeof be=="function"||typeof b.getSnapshotBeforeUpdate=="function",z=a.pendingProps!==z,ce||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(z||se!==$)&&n2(a,b,c,$),to=!1;var ne=a.memoizedState;b.state=ne,Uc(a,c,b,h),Fc(),se=a.memoizedState,z||ne!==se||to?(typeof be=="function"&&(Og(a,i,be,c),se=a.memoizedState),(V=to||t2(a,i,V,c,ne,se,$))?(ce||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(a.flags|=4194308)):(typeof b.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=c,a.memoizedState=se),b.props=c,b.state=se,b.context=$,c=V):(typeof b.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{b=a.stateNode,hg(n,a),$=a.memoizedProps,ce=ti(i,$),b.props=ce,be=a.pendingProps,ne=b.context,se=i.contextType,V=Xi,typeof se=="object"&&se!==null&&(V=Jn(se)),z=i.getDerivedStateFromProps,(se=typeof z=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||($!==be||ne!==V)&&n2(a,b,c,V),to=!1,ne=a.memoizedState,b.state=ne,Uc(a,c,b,h),Fc();var le=a.memoizedState;$!==be||ne!==le||to||n!==null&&n.dependencies!==null&&Kd(n.dependencies)?(typeof z=="function"&&(Og(a,i,z,c),le=a.memoizedState),(ce=to||t2(a,i,ce,c,ne,le,V)||n!==null&&n.dependencies!==null&&Kd(n.dependencies))?(se||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(c,le,V),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(c,le,V)),typeof b.componentDidUpdate=="function"&&(a.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof b.componentDidUpdate!="function"||$===n.memoizedProps&&ne===n.memoizedState||(a.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||$===n.memoizedProps&&ne===n.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=le),b.props=c,b.state=le,b.context=V,c=ce):(typeof b.componentDidUpdate!="function"||$===n.memoizedProps&&ne===n.memoizedState||(a.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||$===n.memoizedProps&&ne===n.memoizedState||(a.flags|=1024),c=!1)}return b=c,ol(n,a),c=(a.flags&128)!==0,b||c?(b=a.stateNode,i=c&&typeof i.getDerivedStateFromError!="function"?null:b.render(),a.flags|=1,n!==null&&c?(a.child=Jo(a,n.child,null,h),a.child=Jo(a,null,i,h)):Dn(n,a,i,h),a.memoizedState=b.state,n=a.child):n=Ms(n,a,h),n}function m2(n,a,i,c){return Vo(),a.flags|=256,Dn(n,a,i,c),a.child}var Bg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hg(n){return{baseLanes:n,cachePool:ov()}}function Fg(n,a,i){return n=n!==null?n.childLanes&~i:0,a&&(n|=Yr),n}function y2(n,a,i){var c=a.pendingProps,h=!1,b=(a.flags&128)!==0,$;if(($=b)||($=n!==null&&n.memoizedState===null?!1:(tr.current&2)!==0),$&&(h=!0,a.flags&=-129),$=(a.flags&32)!==0,a.flags&=-33,n===null){if(xt){if(h?so(a):oo(),(n=Kt)?(n=Pw(n,ha),n=n!==null&&n.data!=="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:Xs!==null?{id:es,overflow:ts}:null,retryLane:536870912,hydrationErrors:null},i=Zk(n),i.return=a,a.child=i,Fn=a,Kt=null)):n=null,n===null)throw Qs(a);return Hm(n)?a.lanes=32:a.lanes=536870912,null}return b=c.children,c=c.fallback,h?(oo(),h=a.mode,b=pf({mode:"hidden",children:b},h),c=Uo(c,h,i,null),b.return=a,c.return=a,b.sibling=c,a.child=b,c=a.child,c.memoizedState=Hg(i),c.childLanes=Fg(n,$,i),a.memoizedState=Bg,Yc(null,c)):(so(a),Ug(a,b))}var z=n.memoizedState;if(z!==null){var V=z.dehydrated;if(V!==null)return ZA(n,a,b,$,c,V,z,i)}return h?(oo(),h=c.fallback,b=a.mode,z=n.child,V=z.sibling,c=$s(z,{mode:"hidden",children:c.children}),c.subtreeFlags=z.subtreeFlags&1206910976,V!==null?h=$s(V,h):(h=Uo(h,b,i,null),h.flags|=2),h.return=a,c.return=a,c.sibling=h,a.child=c,Yc(null,c),c=a.child,h=n.child.memoizedState,h===null?h=Hg(i):(b=h.cachePool,b!==null?(z=Sn._currentValue,b=b.parent!==z?{parent:z,pool:z}:b):b=ov(),h={baseLanes:h.baseLanes|i,cachePool:b}),c.memoizedState=h,c.childLanes=Fg(n,$,i),a.memoizedState=Bg,Yc(n.child,c)):(so(a),i=n.child,n=i.sibling,i=$s(i,{mode:"visible",children:c.children}),i.return=a,i.sibling=null,n!==null&&($=a.deletions,$===null?(a.deletions=[n],a.flags|=16):$.push(n)),a.child=i,a.memoizedState=null,i)}function Ug(n,a){return a=pf({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function pf(n,a){return n=Cr(22,n,null,a),n.lanes=0,n}function xf(n,a,i){return Jo(a,n.child,null,i),n=Ug(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function ZA(n,a,i,c,h,b,$,z){if(i)return a.flags&256?(so(a),a.flags&=-257,xf(n,a,z)):a.memoizedState!==null?(oo(),a.child=n.child,a.flags|=128,null):(oo(),b=h.fallback,$=a.mode,h=pf({mode:"visible",children:h.children},$),b=Uo(b,$,z,null),b.flags|=2,h.return=a,b.return=a,h.sibling=b,a.child=h,Jo(a,n.child,null,z),h=a.child,h.memoizedState=Hg(z),h.childLanes=Fg(n,c,z),a.memoizedState=Bg,Yc(null,h));if(so(a),Hm(b)){if(c=b.nextSibling&&b.nextSibling.dataset,c)var V=c.dgst;return c=V,c!==""&&(h=Error(s(419)),h.stack="",h.digest=c,Ic({value:h,source:null,stack:null})),xf(n,a,z)}if($n||Ko(n,a,z,!1),c=(z&n.childLanes)!==0,$n||c){if(ao.current!==null)return xf(n,a,z);if(c=Ut,c!==null&&(h=$t(c,z),h!==0&&h!==$.retryLane))throw $.retryLane=h,Fo(n,h),Mr(c,n,h),qg;return Bm(b)||zf(),xf(n,a,z)}return Bm(b)?(a.flags|=192,a.child=n.child,null):(n=$.treeContext,Kt=xa(b.nextSibling),Fn=a,xt=!0,Zs=null,ha=!1,n!==null&&ev(a,n),a=Ug(a,h.children),a.flags|=134221824,a)}function b2(n,a,i){n.lanes|=a;var c=n.alternate;c!==null&&(c.lanes|=a),Gd(n.return,a,i)}function k2(n){for(var a=null;n!==null;){var i=n.alternate;i!==null&&tf(i)===null&&(a=n),n=n.sibling}return a}function gf(n,a,i,c,h,b){var $=n.memoizedState;$===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:i,tailMode:h,treeForkCount:b}:($.isBackwards=a,$.rendering=null,$.renderingStartTime=0,$.last=c,$.tail=i,$.tailMode=h,$.treeForkCount=b)}function Vg(n){var a=n.child;for(n.child=null;a!==null;){var i=a.sibling;a.sibling=n.child,n.child=a,a=i}}function Gg(n,a,i){var c=a.pendingProps,h=c.revealOrder,b=c.tail;c=c.children;var $=tr.current;if(a.flags&128)return Vc(a,$),null;var z=($&2)!==0;if(z?($=$&1|2,a.flags|=128):$&=1,Vc(a,$),h==="backwards"&&n!==null?(Vg(n),Dn(n,a,c,i),Vg(n)):Dn(n,a,c,i),c=xt?Oc:0,!z&&n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&b2(n,i,a);else if(n.tag===19)b2(n,i,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(h){case"backwards":i=k2(a.child),i===null?(h=a.child,a.child=null):(h=i.sibling,i.sibling=null,Vg(a)),gf(a,!0,h,null,b,c);break;case"unstable_legacy-backwards":for(i=null,h=a.child,a.child=null;h!==null;){if(n=h.alternate,n!==null&&tf(n)===null){a.child=h;break}n=h.sibling,h.sibling=i,i=h,h=n}gf(a,!0,i,null,b,c);break;case"together":gf(a,!1,null,null,void 0,c);break;case"independent":a.memoizedState=null;break;default:i=k2(a.child),i===null?(h=a.child,a.child=null):(h=i.sibling,i.sibling=null),gf(a,!1,h,i,b,c)}return a.child}function v2(n,a,i){var c=a.pendingProps;return Js(a,a.type,c.value),Dn(n,a,c.children,i),a.child}function Ms(n,a,i){if(n!==null&&(a.dependencies=n.dependencies),uo|=a.lanes,(i&a.childLanes)===0)if(n!==null){if(Ko(n,a,i,!1),(i&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(s(153));if(a.child!==null){for(n=a.child,i=$s(n,n.pendingProps),a.child=i,i.return=a;n.sibling!==null;)n=n.sibling,i=i.sibling=$s(n,n.pendingProps),i.return=a;i.sibling=null}return a.child}function Kg(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&Kd(n)))}function QA(n,a,i){switch(a.tag){case 3:yt(a,a.stateNode.containerInfo),Js(a,Sn,n.memoizedState.cache),Vo();break;case 27:case 5:rt(a);break;case 4:yt(a,a.stateNode.containerInfo);break;case 10:Js(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,yg(a),null;break;case 13:var c=a.memoizedState;if(c!==null){if(c.dehydrated!==null)return so(a),a.flags|=128,null;c=Ko(n,a,i,!1);var h=a.child.childLanes;return c||(i&h)!==0?y2(n,a,i):(so(a),n=Ms(n,a,i),n!==null?n.sibling:null)}so(a);break;case 19:if(a.flags&128)return Gg(n,a,i);if(h=(n.flags&128)!==0,c=(i&a.childLanes)!==0,c||(Ko(n,a,i,!1),c=(i&a.childLanes)!==0),h){if(c)return Gg(n,a,i);a.flags|=128}if(h=a.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),Vc(a,tr.current),c)break;return null;case 22:return a.lanes=0,f2(n,a,i,a.pendingProps);case 24:Js(a,Sn,n.memoizedState.cache)}return Ms(n,a,i)}function w2(n,a,i){if(n!==null)if(n.memoizedProps!==a.pendingProps)$n=!0;else{if(!Kg(n,i)&&(a.flags&128)===0)return $n=!1,QA(n,a,i);$n=(n.flags&131072)!==0}else $n=!1,xt&&(a.flags&1048576)!==0&&Jk(a,Oc,a.index);switch(a.lanes=0,a.tag){case 16:e:{var c=a.pendingProps;if(n=Zo(a.elementType),a.type=n,typeof n=="function")eg(n)?(c=ti(n,c),a.tag=1,a=g2(null,a,n,c,i)):(a.tag=0,a=Pg(null,a,n,c,i));else{if(n!=null){var h=n.$$typeof;if(h===_){a.tag=11,a=c2(null,a,n,c,i);break e}else if(h===X){a.tag=14,a=u2(null,a,n,c,i);break e}else if(h===U){a.tag=10,a.type=n,a=v2(null,a,i);break e}}throw a=xe(n)||n,Error(s(306,a,""))}}return a;case 0:return Pg(n,a,a.type,a.pendingProps,i);case 1:return c=a.type,h=ti(c,a.pendingProps),g2(n,a,c,h,i);case 3:e:{if(yt(a,a.stateNode.containerInfo),n===null)throw Error(s(387));c=a.pendingProps;var b=a.memoizedState;h=b.element,hg(n,a),Uc(a,c,null,i);var $=a.memoizedState;if(c=$.cache,Js(a,Sn,c),c!==b.cache&&ig(a,[Sn],i,!0),Fc(),c=$.element,b.isDehydrated)if(b={element:c,isDehydrated:!1,cache:$.cache},a.updateQueue.baseState=b,a.memoizedState=b,a.flags&256){a=m2(n,a,c,i);break e}else if(c!==h){h=ua(Error(s(424)),a),Ic(h),a=m2(n,a,c,i);break e}else for(n=a.stateNode.containerInfo,n.nodeType===9?n=n.body:n=n.nodeName==="HTML"?n.ownerDocument.body:n,Kt=xa(n.firstChild),Fn=a,xt=!0,Zs=null,ha=!0,i=fv(a,null,c,i),a.child=i;i;)i.flags=i.flags&-3|134221824,i=i.sibling;else{if(Vo(),c===h){a=Ms(n,a,i);break e}Dn(n,a,c,i)}a=a.child}return a;case 26:return ol(n,a),n===null?(i=Kw(a.type,null,a.pendingProps,null))?a.memoizedState=i:xt||(a.stateNode=Tw(a.type,a.pendingProps,et.current,a)):a.memoizedState=Kw(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return rt(a),n===null&&xt&&(c=a.stateNode=Fw(a.type,a.pendingProps,et.current),Fn=a,ha=!0,h=Kt,xo(a.type)?(Fm=h,Kt=xa(c.firstChild)):Kt=h),Dn(n,a,a.pendingProps.children,i),ol(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&xt&&((h=c=Kt)&&(c=G7(c,a.type,a.pendingProps,ha),c!==null?(a.stateNode=c,Fn=a,Kt=xa(c.firstChild),ha=!1,h=!0):h=!1),h||Qs(a)),rt(a),h=a.type,b=a.pendingProps,$=n!==null?n.memoizedProps:null,c=b.children,Lm(h,b)?c=null:$!==null&&Lm(h,$)&&(a.flags|=32),a.memoizedState!==null&&(h=vg(n,a,BA,null,null,i),El._currentValue=h),ol(n,a),Dn(n,a,c,i),a.child;case 6:return n===null&&xt&&((n=i=Kt)&&(i=K7(i,a.pendingProps,ha),i!==null?(a.stateNode=i,Fn=a,Kt=null,n=!0):n=!1),n||Qs(a)),null;case 13:return y2(n,a,i);case 4:return yt(a,a.stateNode.containerInfo),c=a.pendingProps,n===null?a.child=Jo(a,null,c,i):Dn(n,a,c,i),a.child;case 11:return c2(n,a,a.type,a.pendingProps,i);case 7:return c=a.pendingProps,ol(n,a),Dn(n,a,c,i),a.child;case 8:return Dn(n,a,a.pendingProps.children,i),a.child;case 12:return Dn(n,a,a.pendingProps.children,i),a.child;case 10:return v2(n,a,i);case 9:return h=a.type._context,c=a.pendingProps.children,Wo(a),h=Jn(h),c=c(h),a.flags|=1,Dn(n,a,c,i),a.child;case 14:return u2(n,a,a.type,a.pendingProps,i);case 15:return d2(n,a,a.type,a.pendingProps,i);case 19:return Gg(n,a,i);case 31:return XA(n,a,i);case 22:return f2(n,a,i,a.pendingProps);case 24:return Wo(a),c=Jn(Sn),n===null?(h=ug(),h===null&&(h=Ut,b=lg(),h.pooledCache=b,b.refCount++,b!==null&&(h.pooledCacheLanes|=i),h=b),a.memoizedState={parent:c,cache:h},fg(a),Js(a,Sn,h)):((n.lanes&i)!==0&&(hg(n,a),Uc(a,null,null,i),Fc()),h=n.memoizedState,b=a.memoizedState,h.parent!==c?(h={parent:c,cache:c},a.memoizedState=h,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=h),Js(a,Sn,c)):(c=b.cache,Js(a,Sn,c),c!==h.cache&&ig(a,[Sn],i,!0))),Dn(n,a,a.pendingProps.children,i),a.child;case 30:return a.stateNode===null&&(a.stateNode={autoName:null,paired:null,clones:null,ref:null}),c=a.pendingProps,c.name!=null&&c.name!=="auto"?a.flags|=n===null?18882560:18874368:xt&&Ud(a),n!==null&&n.memoizedProps.name!==c.name?a.flags|=4194816:ol(n,a),Dn(n,a,c.children,i),a.child;case 29:throw a.pendingProps}throw Error(s(156,a.tag))}function Ns(n){n.flags|=4}function Wg(n,a,i,c,h){var b;if((b=(n.mode&32)!==0)&&(b=i===null?Zw(a,c):Zw(a,c)&&(c.src!==i.src||c.srcSet!==i.srcSet)),b){if(n.flags|=16777216,(h&335544128)===h)if(n.stateNode.complete)n.flags|=8192;else if(rw())n.flags|=8192;else throw Qo=Zd,dg}else n.flags&=-16777217}function S2(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!Qw(a))if(rw())n.flags|=8192;else throw Qo=Zd,dg}function mf(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?Be():536870912,n.lanes|=a,dl|=a)}function Xc(n,a){if(!xt)switch(n.tailMode){case"visible":break;case"collapsed":for(var i=n.tail,c=null;i!==null;)i.alternate!==null&&(c=i),i=i.sibling;c===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:c.sibling=null;break;default:for(a=n.tail,i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?n.tail=null:i.sibling=null}}function Wt(n){var a=n.alternate!==null&&n.alternate.child===n.child,i=0,c=0;if(a)for(var h=n.child;h!==null;)i|=h.lanes|h.childLanes,c|=h.subtreeFlags&1206910976,c|=h.flags&1206910976,h.return=n,h=h.sibling;else for(h=n.child;h!==null;)i|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=n,h=h.sibling;return n.subtreeFlags|=c,n.childLanes=i,a}function JA(n,a,i){var c=a.pendingProps;switch(rg(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wt(a),null;case 1:return Wt(a),null;case 3:return i=a.stateNode,c=null,n!==null&&(c=n.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),js(Sn),Pe(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(n===null||n.child===null)&&(Ji(a)?Ns(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,sg())),Wt(a),null;case 26:var h=a.type,b=a.memoizedState;return n===null?(Ns(a),b!==null?(Wt(a),S2(a,b)):(Wt(a),Wg(a,h,null,c,i))):b?b!==n.memoizedState?(Ns(a),Wt(a),S2(a,b)):(Wt(a),a.flags&=-16777217):(n=n.memoizedProps,n!==c&&Ns(a),Wt(a),Wg(a,h,n,c,i)),null;case 27:if(lt(a),i=et.current,h=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==c&&Ns(a);else{if(!c){if(a.stateNode===null)throw Error(s(166));return Wt(a),a.subtreeFlags&=-33554433,null}n=at.current,Ji(a)?tv(a):(n=Fw(h,c,i),a.stateNode=n,Ns(a))}return Wt(a),a.subtreeFlags&=-33554433,null;case 5:if(lt(a),h=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==c&&Ns(a);else{if(!c){if(a.stateNode===null)throw Error(s(166));return Wt(a),a.subtreeFlags&=-33554433,null}if(b=at.current,Ji(a))tv(a);else{var $=iu(et.current);switch(b){case 1:b=$.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:b=$.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":b=$.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":b=$.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":b=$.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof c.is=="string"?$.createElement("select",{is:c.is}):$.createElement("select"),c.multiple?b.multiple=!0:c.size&&(b.size=c.size);break;default:b=typeof c.is=="string"?$.createElement(h,{is:c.is}):$.createElement(h)}}b[Bt]=a,b[Yt]=c;e:for($=a.child;$!==null;){if($.tag===5||$.tag===6)b.appendChild($.stateNode);else if($.tag!==4&&$.tag!==27&&$.child!==null){$.child.return=$,$=$.child;continue}if($===a)break e;for(;$.sibling===null;){if($.return===null||$.return===a)break e;$=$.return}$.sibling.return=$.return,$=$.sibling}a.stateNode=b;e:switch(rr(b,h,c),h){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&Ns(a)}}return Wt(a),a.subtreeFlags&=-33554433,Wg(a,a.type,n===null?null:n.memoizedProps,a.pendingProps,i),null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==c&&Ns(a);else{if(typeof c!="string"&&a.stateNode===null)throw Error(s(166));if(n=et.current,Ji(a)){if(n=a.stateNode,i=a.memoizedProps,c=null,h=Fn,h!==null)switch(h.tag){case 27:case 5:c=h.memoizedProps}n[Bt]=a,n=!!(n.nodeValue===i||c!==null&&c.suppressHydrationWarning===!0||ww(n.nodeValue,i)),n||Qs(a,!0)}else n=iu(n).createTextNode(c),n[Bt]=a,a.stateNode=n}return Wt(a),null;case 31:if(i=a.memoizedState,n===null||n.memoizedState!==null){if(c=Ji(a),i!==null){if(n===null){if(!c)throw Error(s(318));if(n=a.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(557));n[Bt]=a}else Vo(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Wt(a),n=!1}else i=sg(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=i),n=!0;if(!n)return a.flags&256?(Gr(a),a):(Gr(a),null);if((a.flags&128)!==0)throw Error(s(558))}return Wt(a),null;case 13:if(c=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(h=Ji(a),c!==null&&c.dehydrated!==null){if(n===null){if(!h)throw Error(s(318));if(h=a.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(s(317));h[Bt]=a}else Vo(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Wt(a),h=!1}else h=sg(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=h),h=!0;if(!h)return a.flags&256?(Gr(a),a):(Gr(a),null)}return Gr(a),(a.flags&128)!==0?(a.lanes=i,a):(i=c!==null,n=n!==null&&n.memoizedState!==null,i&&(c=a.child,h=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(h=c.alternate.memoizedState.cachePool.pool),b=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(b=c.memoizedState.cachePool.pool),b!==h&&(c.flags|=2048)),i!==n&&i&&(a.child.flags|=8192),mf(a,a.updateQueue),Wt(a),null);case 4:return Pe(),n===null&&Rm(a.stateNode.containerInfo),a.flags|=67108864,Wt(a),null;case 10:return js(a.type),Wt(a),null;case 19:if(bg(a),c=a.memoizedState,c===null)return Wt(a),null;if(h=(a.flags&128)!==0,b=c.rendering,b===null)if(h)Xc(c,!1);else{if(hn!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(b=tf(n),b!==null){for(a.flags|=128,Xc(c,!1),n=b.updateQueue,a.updateQueue=n,mf(a,n),a.subtreeFlags=0,n=i,i=a.child;i!==null;)Xk(i,n),i=i.sibling;return Vc(a,tr.current&1|2),xt&&Ts(a,c.treeForkCount),a.child}n=n.sibling}c.tail!==null&&Ye()>Rf&&(a.flags|=128,h=!0,Xc(c,!1),a.lanes=4194304)}else{if(!h)if(n=tf(b),n!==null){if(a.flags|=128,h=!0,n=n.updateQueue,a.updateQueue=n,mf(a,n),Xc(c,!0),c.tail===null&&c.tailMode!=="collapsed"&&c.tailMode!=="visible"&&!b.alternate&&!xt)return Wt(a),null}else 2*Ye()-c.renderingStartTime>Rf&&i!==536870912&&(a.flags|=128,h=!0,Xc(c,!1),a.lanes=4194304);c.isBackwards?(b.sibling=a.child,a.child=b):(n=c.last,n!==null?n.sibling=b:a.child=b,c.last=b)}if(c.tail!==null){n=c.tail;e:{for(i=n;i!==null;){if(i.alternate!==null){i=!1;break e}i=i.sibling}i=!0}return c.rendering=n,c.tail=n.sibling,c.renderingStartTime=Ye(),n.sibling=null,b=tr.current,b=h?b&1|2:b&1,c.tailMode==="visible"||c.tailMode==="collapsed"||!i||xt?Vc(a,b):(i=b,He(er,a),He(tr,i),ir===null&&(ir=a)),xt&&Ts(a,c.treeForkCount),n}return Wt(a),null;case 22:case 23:return Gr(a),mg(),c=a.memoizedState!==null,n!==null?n.memoizedState!==null!==c&&(a.flags|=8192):c&&(a.flags|=8192),c?(i&536870912)!==0&&(a.flags&128)===0&&(Wt(a),a.subtreeFlags&6&&(a.flags|=8192)):Wt(a),i=a.updateQueue,i!==null&&mf(a,i.retryQueue),i=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048),n!==null&&je(Xo),null;case 24:return i=null,n!==null&&(i=n.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),js(Sn),Wt(a),null;case 25:return null;case 30:return a.flags|=33554432,Wt(a),null}throw Error(s(156,a.tag))}function e7(n,a){switch(rg(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return js(Sn),Pe(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return lt(a),null;case 31:if(a.memoizedState!==null){if(Gr(a),a.alternate===null)throw Error(s(340));Vo()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 13:if(Gr(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(s(340));Vo()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return bg(a),n=a.flags,n&65536?(a.flags=n&-65537|128,n=a.memoizedState,n!==null&&(n.rendering=null,n.tail=null),a.flags|=4,a):null;case 4:return Pe(),null;case 10:return js(a.type),null;case 22:case 23:return Gr(a),mg(),n!==null&&je(Xo),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return js(Sn),null;case 25:return null;default:return null}}function E2(n,a){switch(rg(a),a.tag){case 3:js(Sn),Pe();break;case 26:case 27:case 5:lt(a);break;case 4:Pe();break;case 31:a.memoizedState!==null&&Gr(a);break;case 13:Gr(a);break;case 19:bg(a);break;case 10:js(a.type);break;case 22:case 23:Gr(a),mg(),n!==null&&je(Xo);break;case 24:js(Sn)}}function Zc(n,a){try{var i=a.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var h=c.next;i=h;do{if((i.tag&n)===n){c=void 0;var b=i.create,$=i.inst;c=b(),$.destroy=c}i=i.next}while(i!==h)}}catch(z){Dt(a,a.return,z)}}function io(n,a,i){try{var c=a.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var b=h.next;c=b;do{if((c.tag&n)===n){var $=c.inst,z=$.destroy;if(z!==void 0){$.destroy=void 0,h=a;var V=i,se=z;try{se()}catch(ce){Dt(h,V,ce)}}}c=c.next}while(c!==b)}}catch(ce){Dt(a,a.return,ce)}}function $2(n){var a=n.updateQueue;if(a!==null){var i=n.stateNode;try{pv(a,i)}catch(c){Dt(n,n.return,c)}}}function T2(n,a,i){i.props=ti(n.type,n.memoizedProps),i.state=n.memoizedState;try{i.componentWillUnmount()}catch(c){Dt(n,a,c)}}function ns(n,a){try{var i=n.ref;if(i!==null){switch(n.tag){case 26:case 27:case 5:var c=n.stateNode;break;case 30:var h=n.stateNode,b=Ss(n.memoizedProps,h);(h.ref===null||h.ref.name!==b)&&(h.ref=zw(b)),c=h.ref;break;case 7:if(n.stateNode===null){var $=new Zr(n);m(n.child,!1,U7,$,void 0,void 0),n.stateNode=$}c=n.stateNode;break;default:c=n.stateNode}typeof i=="function"?n.refCleanup=i(c):i.current=c}}catch(z){Dt(n,a,z)}}function nr(n,a){var i=n.ref,c=n.refCleanup;if(i!==null)if(typeof c=="function")try{c()}catch(h){Dt(n,a,h)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(h){Dt(n,a,h)}else i.current=null}function yf(n,a){if((n.tag===5||n.tag===27||n.tag===6)&&n.alternate===null&&a!==null)for(var i=0;i<a.length;i++)qw(n.stateNode,a[i])}function C2(n){for(var a=n.return;a!==null&&(Xg(a)&&qw(n.stateNode,a.stateNode),!Yg(a));)a=a.return}function Qc(n){for(var a=n.return;a!==null&&(Xg(a)&&V7(n.stateNode,a.stateNode),!Yg(a));)a=a.return}function Yg(n){return n.tag===5||n.tag===3||n.tag===27}function Xg(n){return n&&n.tag===7&&n.stateNode!==null}function Zg(n){var a=n.type,i=n.memoizedProps,c=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":i.autoFocus&&c.focus();break e;case"img":i.src?c.src=i.src:i.srcSet&&(c.srcset=i.srcSet)}}catch(h){Dt(n,n.return,h)}}function Qg(n,a,i){try{var c=n.stateNode;T7(c,n.type,i,a),c[Yt]=a}catch(h){Dt(n,n.return,h)}}function j2(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&xo(n.type)||n.tag===4}function Jg(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||j2(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&xo(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function em(n,a,i,c){var h=n.tag;if(h===5||h===6)h=n.stateNode,a?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(h,a):(a=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.appendChild(h),i=i._reactRootContainer,i!=null||a.onclick!==null||(a.onclick=Ja)),yf(n,c),St=!0;else if(h!==4&&(h===27&&(yf(n,c),c=null,xo(n.type)&&(i=n.stateNode,a=null)),n=n.child,n!==null))for(em(n,a,i,c),n=n.sibling;n!==null;)em(n,a,i,c),n=n.sibling}function bf(n,a,i,c){var h=n.tag;if(h===5||h===6)h=n.stateNode,a?i.insertBefore(h,a):i.appendChild(h),yf(n,c),St=!0;else if(h!==4&&(h===27&&(yf(n,c),c=null,xo(n.type)&&(i=n.stateNode)),n=n.child,n!==null))for(bf(n,a,i,c),n=n.sibling;n!==null;)bf(n,a,i,c),n=n.sibling}function R2(n){var a=n.stateNode,i=n.memoizedProps;try{for(var c=n.type,h=a.attributes;h.length;)a.removeAttributeNode(h[0]);rr(a,c,i),a[Bt]=n,a[Yt]=i}catch(b){Dt(n,n.return,b)}}var kf=!1,Kr=null;function A2(n){(n.tag===30||(n.subtreeFlags&33554432)!==0)&&(kf=!0)}var rs=null;function M2(){var n=rs;return rs=null,n}var jr=0;function il(n,a,i,c,h){return jr=0,N2(n.child,a,i,c,h)}function N2(n,a,i,c,h){for(var b=!1;n!==null;){if(n.tag===5){var $=n.stateNode;if(c!==null){var z=Im($);c.push(z),z.view&&(b=!0)}else b||Im($).view&&(b=!0);kf=!0,Mw($,jr===0?a:a+"_"+jr,i),jr++}else(n.tag!==22||n.memoizedState===null)&&(n.tag===30&&h||N2(n.child,a,i,c,h)&&(b=!0));n=n.sibling}return b}function as(n,a){for(;n!==null;)n.tag===5?Nw(n.stateNode,n.memoizedProps):(n.tag!==22||n.memoizedState===null)&&(n.tag===30&&a||as(n.child,a)),n=n.sibling}function vf(n){if((n.subtreeFlags&18874368)!==0)for(n=n.child;n!==null;){if((n.tag!==22||n.memoizedState===null)&&(vf(n),n.tag===30&&(n.flags&18874368)!==0&&n.stateNode.paired)){var a=n.memoizedProps;if(a.name==null||a.name==="auto")throw Error(s(544));var i=a.name;a=Es(a.default,a.share),a!=="none"&&(il(n,i,a,null,!1)||as(n.child,!1))}n=n.sibling}}function tm(n,a){if(n.tag===30){var i=n.stateNode,c=n.memoizedProps,h=Ss(c,i),b=Es(c.default,i.paired?c.share:c.enter);b!=="none"?il(n,h,b,null,!1)?(vf(n),i.paired||a||xl(n,c.onEnter)):as(n.child,!1):vf(n)}else if((n.subtreeFlags&33554432)!==0)for(n=n.child;n!==null;)tm(n,a),n=n.sibling;else vf(n)}function nm(n){if(Kr!==null&&Kr.size!==0){var a=Kr;if((n.subtreeFlags&18874368)!==0)for(n=n.child;n!==null;){if(n.tag!==22||n.memoizedState===null){if(n.tag===30&&(n.flags&18874368)!==0){var i=n.memoizedProps,c=i.name;if(c!=null&&c!=="auto"){var h=a.get(c);if(h!==void 0){var b=Es(i.default,i.share);if(b!=="none"&&(il(n,c,b,null,!1)?(b=n.stateNode,h.paired=b,b.paired=h,xl(n,i.onShare)):as(n.child,!1)),a.delete(c),a.size===0)break}}}nm(n)}n=n.sibling}}}function rm(n){if(n.tag===30){var a=n.memoizedProps,i=Ss(a,n.stateNode),c=Kr!==null?Kr.get(i):void 0,h=Es(a.default,c!==void 0?a.share:a.exit);h!=="none"&&(il(n,i,h,null,!1)?c!==void 0?(h=n.stateNode,c.paired=h,h.paired=c,Kr.delete(i),xl(n,a.onShare)):xl(n,a.onExit):as(n.child,!1)),Kr!==null&&nm(n)}else if((n.subtreeFlags&33554432)!==0)for(n=n.child;n!==null;)rm(n),n=n.sibling;else Kr!==null&&nm(n)}function z2(n){for(n=n.child;n!==null;){if(n.tag===30){var a=n.memoizedProps,i=Ss(a,n.stateNode);a=Es(a.default,a.update),n.flags&=-5,a!=="none"&&il(n,i,a,n.memoizedState=[],!1)}else(n.subtreeFlags&33554432)!==0&&z2(n);n=n.sibling}}function am(n){if((n.subtreeFlags&18874368)!==0)for(n=n.child;n!==null;){if(n.tag!==22||n.memoizedState===null){if(n.tag===30&&(n.flags&18874368)!==0){var a=n.stateNode;a.paired!==null&&(a.paired=null,as(n.child,!1))}am(n)}n=n.sibling}}function wf(n){if(n.tag===30)n.stateNode.paired=null,as(n.child,!1),am(n);else if((n.subtreeFlags&33554432)!==0)for(n=n.child;n!==null;)wf(n),n=n.sibling;else am(n)}function L2(n){for(n=n.child;n!==null;)n.tag===30?as(n.child,!1):(n.subtreeFlags&33554432)!==0&&L2(n),n=n.sibling}function sm(n,a,i,c,h,b,$){for(var z=!1;a!==null;){if(a.tag===5){var V=a.stateNode;if(b!==null&&jr<b.length){var se=b[jr],ce=Im(V);(se.view||ce.view)&&(z=!0);var be;if(be=(n.flags&4)===0)if(ce.clip)be=!0;else{be=se.rect;var ne=ce.rect;be=be.y!==ne.y||be.x!==ne.x||be.height!==ne.height||be.width!==ne.width}be&&(n.flags|=4),ce.abs?ce=!se.abs:(se=se.rect,ce=ce.rect,ce=se.height!==ce.height||se.width!==ce.width),ce&&(n.flags|=32)}else n.flags|=32;(n.flags&4)!==0&&Mw(V,jr===0?i:i+"_"+jr,h),z&&(n.flags&4)!==0||(rs===null&&(rs=[]),rs.push(V,jr===0?c:c+"_"+jr,a.memoizedProps)),jr++}else(a.tag!==22||a.memoizedState===null)&&(a.tag===30&&$?n.flags|=a.flags&32:sm(n,a.child,i,c,h,b,$)&&(z=!0));a=a.sibling}return z}function D2(n,a){for(n=n.child;n!==null;){if(n.tag===30){var i=n.memoizedProps,c=n.stateNode,h=Ss(i,c),b=Es(i.default,i.update),$;$=n.memoizedState,n.memoizedState=null,c=n;var z=n.child;jr=0,h=sm(c,z,h,h,b,$,!1),(n.flags&4)!==0&&h&&xl(n,i.onUpdate)}else(n.subtreeFlags&33554432)!==0&&D2(n);n=n.sibling}}var Un=!1,zt=!1,ss=!1,om=!1,O2=typeof WeakSet=="function"?WeakSet:Set,Vn=null,os=!1,Jc=!1,Sf=!1,im=!1;function t7(n,a,i){if(n=n.containerInfo,Nm=$l,n=Pk(n),Kx(n)){if("selectionStart"in n)var c={start:n.selectionStart,end:n.selectionEnd};else e:{c=(c=n.ownerDocument)&&c.defaultView||window;var h=c.getSelection&&c.getSelection();if(h&&h.rangeCount!==0){c=h.anchorNode;var b=h.anchorOffset,$=h.focusNode;h=h.focusOffset;try{c.nodeType,$.nodeType}catch{c=null;break e}var z=0,V=-1,se=-1,ce=0,be=0,ne=n,le=null;t:for(;;){for(var Ae;ne!==c||b!==0&&ne.nodeType!==3||(V=z+b),ne!==$||h!==0&&ne.nodeType!==3||(se=z+h),ne.nodeType===3&&(z+=ne.nodeValue.length),(Ae=ne.firstChild)!==null;)le=ne,ne=Ae;for(;;){if(ne===n)break t;if(le===c&&++ce===b&&(V=z),le===$&&++be===h&&(se=z),(Ae=ne.nextSibling)!==null)break;ne=le,le=ne.parentNode}ne=Ae}c=V===-1||se===-1?null:{start:V,end:se}}else c=null}c=c||{start:0,end:0}}else c=null;for(zm={focusedElem:n,selectionRange:c},$l=!1,i=(i&335544064)===i,Vn=a,a=i?9270:1024;Vn!==null;){if(n=Vn,i&&(c=n.deletions,c!==null))for(b=0;b<c.length;b++)i&&rm(c[b]);if(n.alternate===null&&(n.flags&2)!==0)i&&A2(n),Ef(i);else{if(n.tag===22){if(c=n.alternate,n.memoizedState!==null){c!==null&&c.memoizedState===null&&i&&rm(c),Ef(i);continue}else if(c!==null&&c.memoizedState!==null){i&&A2(n),Ef(i);continue}}c=n.child,(n.subtreeFlags&a)!==0&&c!==null?(c.return=n,Vn=c):(i&&z2(n),Ef(i))}}Kr=null}function Ef(n){for(;Vn!==null;){var a=Vn,i=n,c=a.alternate,h=a.flags;switch(a.tag){case 0:case 11:case 15:break;case 1:if((h&1024)!==0&&c!==null){i=void 0,h=c.memoizedProps,c=c.memoizedState;var b=a.stateNode;try{var $=ti(a.type,h);i=b.getSnapshotBeforeUpdate($,c),b.__reactInternalSnapshotBeforeUpdate=i}catch(z){Dt(a,a.return,z)}}break;case 3:if((h&1024)!==0){if(c=a.stateNode.containerInfo,i=c.nodeType,i===9)Pm(c);else if(i===1)switch(c.nodeName){case"HEAD":case"HTML":case"BODY":Pm(c);break;default:c.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:i&&c!==null&&(i=Ss(c.memoizedProps,c.stateNode),h=a.memoizedProps,h=Es(h.default,h.update),h!=="none"&&il(c,i,h,c.memoizedState=[],!0));break;default:if((h&1024)!==0)throw Error(s(163))}if(c=a.sibling,c!==null){c.return=a.return,Vn=c;break}Vn=a.return}}function I2(n,a,i){var c=i.flags;switch(i.tag){case 0:case 11:case 15:is(n,i),c&4&&Zc(5,i);break;case 1:if(is(n,i),c&4)if(n=i.stateNode,a===null)try{n.componentDidMount()}catch($){Dt(i,i.return,$)}else{var h=ti(i.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(h,a,n.__reactInternalSnapshotBeforeUpdate)}catch($){Dt(i,i.return,$)}}c&64&&$2(i),c&512&&ns(i,i.return);break;case 3:if(is(n,i),c&64&&(n=i.updateQueue,n!==null)){if(a=null,i.child!==null)switch(i.child.tag){case 27:case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}try{pv(n,a)}catch($){Dt(i,i.return,$)}}break;case 27:a===null&&c&4&&R2(i);case 26:case 5:is(n,i),a===null&&c&4&&Zg(i),c&512&&ns(i,i.return);break;case 12:is(n,i);break;case 31:is(n,i),c&4&&B2(n,i);break;case 13:is(n,i),c&4&&H2(n,i),c&64&&(n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(i=h7.bind(null,i),W7(n,i))));break;case 22:if(c=i.memoizedState!==null||Un,!c){var b=a!==null&&a.memoizedState!==null||zt;a=Un,h=zt,Un=c,(zt=b)&&!h?(c=2,(i.subtreeFlags&8772)!==0&&(c|=1),Da(n,i,c)):is(n,i),Un=a,zt=h}break;case 30:is(n,i),c&512&&ns(i,i.return);break;case 7:c&512&&ns(i,i.return);default:is(n,i)}}function lm(n,a){for(n=n.child;n!==null;)_2(n,a),n=n.sibling}function _2(n,a){switch(n.tag){case 5:case 26:try{var i=n.stateNode;if(a){var c=i.style;typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none"}else{var h=n.stateNode,b=n.memoizedProps.style,$=b!=null&&b.hasOwnProperty("display")?b.display:null;h.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(V){Dt(n,n.return,V)}cm(n,a);break;case 6:try{n.stateNode.nodeValue=a?"":n.memoizedProps,St=!0}catch(V){Dt(n,n.return,V)}break;case 18:try{var z=n.stateNode;a?Aw(z,!0):Aw(n.stateNode,!1)}catch(V){Dt(n,n.return,V)}break;case 22:case 23:n.memoizedState===null&&lm(n,a);break;default:lm(n,a)}}function cm(n,a){if(n.subtreeFlags&67108864)for(n=n.child;n!==null;){e:{var i=n,c=a;switch(i.tag){case 4:_2(i,c);break e;case 22:i.memoizedState===null&&cm(i,c);break e;default:cm(i,c)}}n=n.sibling}}function q2(n){var a=n.alternate;a!==null&&(n.alternate=null,q2(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&sn(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var en=null,Rr=!1;function za(n,a,i){for(i=i.child;i!==null;)P2(n,a,i),i=i.sibling}function P2(n,a,i){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(Xn,i)}catch{}switch(i.tag){case 26:zt||nr(i,a),za(n,a,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&!zt&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:zt||nr(i,a),Qc(i);var c=en,h=Rr;xo(i.type)&&(en=i.stateNode,Rr=!1),za(n,a,i),Uw(i.stateNode,i.type,i.memoizedProps),en=c,Rr=h;break;case 5:zt||nr(i,a),Qc(i);case 6:if(i.tag===6&&Qc(i),c=en,h=Rr,en=null,za(n,a,i),en=c,Rr=h,en!==null)if(Rr)try{(en.nodeType===9?en.body:en.nodeName==="HTML"?en.ownerDocument.body:en).removeChild(i.stateNode),St=!0}catch(b){Dt(i,a,b)}else try{en.removeChild(i.stateNode),St=!0}catch(b){Dt(i,a,b)}break;case 18:en!==null&&(Rr?(n=en,Rw(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,i.stateNode),Tl(n)):Rw(en,i.stateNode));break;case 4:c=en,h=Rr,en=i.stateNode.containerInfo,Rr=!0,za(n,a,i),en=c,Rr=h;break;case 0:case 11:case 14:case 15:io(2,i,a),zt||io(4,i,a),za(n,a,i);break;case 1:zt||(nr(i,a),c=i.stateNode,typeof c.componentWillUnmount=="function"&&T2(i,a,c)),za(n,a,i);break;case 21:za(n,a,i);break;case 22:zt=(c=zt)||i.memoizedState!==null,za(n,a,i),zt=c;break;case 30:nr(i,a),za(n,a,i);break;case 7:zt||nr(i,a),za(n,a,i);break;default:za(n,a,i)}}function B2(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{Tl(n)}catch(i){Dt(a,a.return,i)}}}function H2(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Tl(n)}catch(i){Dt(a,a.return,i)}}function n7(n){switch(n.tag){case 31:case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new O2),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new O2),a;default:throw Error(s(435,n.tag))}}function $f(n,a){var i=n7(n);a.forEach(function(c){if(!i.has(c)){i.add(c);var h=p7.bind(null,n,c);c.then(h,h)}})}function xr(n,a,i){var c=a.deletions;if(c!==null)for(var h=0;h<c.length;h++){var b=c[h],$=n,z=a,V=z;e:for(;V!==null;){switch(V.tag){case 27:if(xo(V.type)){en=V.stateNode,Rr=!1;break e}break;case 5:en=V.stateNode,Rr=!1;break e;case 3:case 4:en=V.stateNode.containerInfo,Rr=!0;break e}V=V.return}if(en===null)throw Error(s(160));P2($,z,b),en=null,Rr=!1,$=b.alternate,$!==null&&($.return=null),b.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)F2(a,n,i),a=a.sibling}var La=null;function F2(n,a,i){var c=n.alternate,h=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(h&4&&(c=n.updateQueue,c=c!==null?c.events:null,c!==null))for(var b=0;b<c.length;b++){var $=c[b];$.ref.impl=$.nextImpl}xr(a,n,i),gr(n),h&4&&(io(3,n,n.return),Zc(3,n),io(5,n,n.return));break;case 1:xr(a,n,i),gr(n),h&512&&(zt||c===null||nr(c,c.return)),h&64&&Un&&(n=n.updateQueue,n!==null&&(a=n.callbacks,a!==null&&(i=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=i===null?a:i.concat(a))));break;case 26:if(b=La,xr(a,n,i),gr(n),h&512&&(zt||c===null||nr(c,c.return)),h&4)if(h=c!==null?c.memoizedState:null,i=n.memoizedState,c===null)if(i===null)if(n.stateNode===null)if(Un)n.stateNode=Tw(n.type,n.memoizedProps,a.containerInfo,n);else{e:{a=n.type,i=n.memoizedProps,h=b.ownerDocument||b;t:switch(a){case"title":c=h.getElementsByTagName("title")[0],(!c||c[Qn]||c[Bt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=h.createElement(a),h.head.insertBefore(c,h.querySelector("head > title"))),rr(c,a,i),c[Bt]=n,tt(c),a=c;break e;case"link":if(b=Xw("link","href",h).get(a+(i.href||""))){for($=0;$<b.length;$++)if(c=b[$],c.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&c.getAttribute("rel")===(i.rel==null?null:i.rel)&&c.getAttribute("title")===(i.title==null?null:i.title)&&c.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){b.splice($,1);break t}}c=h.createElement(a),rr(c,a,i),h.head.appendChild(c);break;case"meta":if(b=Xw("meta","content",h).get(a+(i.content||""))){for($=0;$<b.length;$++)if(c=b[$],c.getAttribute("content")===(i.content==null?null:""+i.content)&&c.getAttribute("name")===(i.name==null?null:i.name)&&c.getAttribute("property")===(i.property==null?null:i.property)&&c.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&c.getAttribute("charset")===(i.charSet==null?null:i.charSet)){b.splice($,1);break t}}c=h.createElement(a),rr(c,a,i),h.head.appendChild(c);break;default:throw Error(s(468,a))}c[Bt]=n,tt(c),a=c}n.stateNode=a}else Un||Km(b,n.type,n.stateNode);else n.stateNode=Yw(b,i,n.memoizedProps);else h!==i?(h===null?(a=c.stateNode,a===null||zt||a.parentNode.removeChild(a)):h.count--,i===null?Un||Km(b,n.type,n.stateNode):Yw(b,i,n.memoizedProps)):i===null&&n.stateNode!==null&&Qg(n,n.memoizedProps,c.memoizedProps);break;case 27:xr(a,n,i),gr(n),h&512&&(zt||c===null||nr(c,c.return)),c!==null&&h&4&&Qg(n,n.memoizedProps,c.memoizedProps);break;case 5:if(b=ss,ss=!1,xr(a,n,i),ss=b,gr(n),h&512&&(zt||c===null||nr(c,c.return)),n.flags&32){a=n.stateNode;try{Fi(a,""),St=!0}catch(ce){Dt(n,n.return,ce)}}h&4&&n.stateNode!=null&&(a=n.memoizedProps,Qg(n,a,c!==null?c.memoizedProps:a)),h&1024&&(om=!0);break;case 6:if(xr(a,n,i),gr(n),h&4){if(n.stateNode===null)throw Error(s(162));a=n.memoizedProps,i=n.stateNode;try{i.nodeValue=a,St=!0}catch(ce){Dt(n,n.return,ce)}}break;case 3:if(St=!1,Pf=null,b=La,La=lu(a.containerInfo),xr(a,n,i),La=b,gr(n),h&4&&c!==null&&c.memoizedState.isDehydrated)try{Tl(a.containerInfo)}catch(ce){Dt(n,n.return,ce)}om&&(om=!1,U2(n)),St=!1;break;case 4:h=ss,ss=Un,c=Pi(),b=La,La=lu(n.stateNode.containerInfo),xr(a,n,i),gr(n),La=b,St&&Jc&&(Sf=!0),St=c,ss=h;break;case 12:xr(a,n,i),gr(n);break;case 31:xr(a,n,i),gr(n),h&4&&(a=n.updateQueue,a!==null&&(n.updateQueue=null,$f(n,a)));break;case 13:xr(a,n,i),gr(n),n.child.flags&8192&&n.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(jf=Ye()),h&4&&(a=n.updateQueue,a!==null&&(n.updateQueue=null,$f(n,a)));break;case 22:b=n.memoizedState!==null,$=c!==null&&c.memoizedState!==null;var z=Un,V=zt,se=ss;Un=z||b,ss=se||b,zt=V||$,xr(a,n,i),zt=V,ss=se,Un=z,gr(n),h&8192&&(a=n.stateNode,a._visibility=b?a._visibility&-2:a._visibility|1,!b||c===null||$||Un||zt||(a=$||zt,i=Un,c=zt,Un=b||Un,zt=a,lo(n,2),Un=i,zt=c),!b&&ss||lm(n,b)),h&4&&(a=n.updateQueue,a!==null&&(i=a.retryQueue,i!==null&&(a.retryQueue=null,$f(n,i))));break;case 19:xr(a,n,i),gr(n),h&4&&(a=n.updateQueue,a!==null&&(n.updateQueue=null,$f(n,a)));break;case 30:h&512&&(zt||c===null||nr(c,c.return)),h=Pi(),b=Jc,$=(i&335544064)===i,z=n.memoizedProps,Jc=$&&Es(z.default,z.update)!=="none",xr(a,n,i),gr(n),$&&c!==null&&St&&(n.flags|=4),Jc=b,St=h;break;case 21:break;case 7:h&512&&(zt||c===null||nr(c,c.return)),c&&c.stateNode!==null&&(c.stateNode._fragmentFiber=n);default:xr(a,n,i),gr(n)}}function gr(n){var a=n.flags;if(a&2){try{for(var i,c=n.return;c!==null;){if(j2(c)){i=c;break}c=c.return}c=null;for(var h=n.return;h!==null;){if(Xg(h)){var b=h.stateNode;c===null?c=[b]:c.push(b)}if(Yg(h))break;h=h.return}var $=c;if(i==null)throw Error(s(160));switch(i.tag){case 27:var z=i.stateNode,V=Jg(n);bf(n,V,z,$);break;case 5:var se=i.stateNode;i.flags&32&&(Fi(se,""),i.flags&=-33);var ce=Jg(n);bf(n,ce,se,$);break;case 3:case 4:var be=i.stateNode.containerInfo,ne=Jg(n);em(n,ne,be,$);break;default:throw Error(s(161))}}catch(le){Dt(n,n.return,le)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function U2(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;U2(a),a.tag===5&&a.flags&1024&&(a=a.stateNode,$l=!0,a.reset(),$l=!1),n=n.sibling}}function ll(n,a){if(a.subtreeFlags&9270)for(a=a.child;a!==null;)V2(a,n),a=a.sibling;else D2(a)}function V2(n,a){var i=n.alternate;if(i===null)tm(n,!1);else switch(n.tag){case 3:if(im=os=!1,M2(),ll(a,n),!os&&!Sf){if(n=rs,n!==null)for(var c=0;c<n.length;c+=3){i=n[c];var h=n[c+1];Nw(i,n[c+2]),i=i.ownerDocument.documentElement,i!==null&&i.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+h+")"})}n=a.containerInfo,n=n.nodeType===9?n.documentElement:n.ownerDocument.documentElement,n!==null&&n.style.viewTransitionName===""&&(n.style.viewTransitionName="none",n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),n.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),im=!0}rs=null;break;case 5:ll(a,n);break;case 4:c=os,os=!1,ll(a,n),os&&(Sf=!0),os=c;break;case 22:n.memoizedState===null&&(i.memoizedState!==null?tm(n,!1):ll(a,n));break;case 30:c=os,h=M2(),os=!1,ll(a,n),os&&(n.flags|=4);var b=n.memoizedProps,$=n.stateNode;a=Ss(b,$),$=Ss(i.memoizedProps,$);var z=Es(b.default,b.update);z==="none"?a=!1:(b=i.memoizedState,i.memoizedState=null,i=n.child,jr=0,a=sm(n,i,a,$,z,b,!0),jr!==(b===null?0:b.length)&&(n.flags|=32)),(n.flags&4)!==0&&a?(xl(n,n.memoizedProps.onUpdate),rs=h):h!==null&&(h.push.apply(h,rs),rs=h),os=(n.flags&32)!==0?!0:c;break;default:ll(a,n)}}function is(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)I2(n,a.alternate,a),a=a.sibling}function lo(n,a){for(n=n.child;n!==null;){var i=n,c=a;switch(i.tag){case 0:case 11:case 14:case 15:io(4,i,i.return),lo(i,c);break;case 1:nr(i,i.return);var h=i.stateNode;typeof h.componentWillUnmount=="function"&&T2(i,i.return,h),lo(i,c);break;case 27:(c&2)!==0&&Uw(i.stateNode,i.type,i.memoizedProps);case 5:nr(i,i.return),i.tag!==5&&i.tag!==27||Qc(i),lo(i,c);break;case 6:Qc(i);break;case 26:nr(i,i.return),h=i.stateNode,i.memoizedState!==null||h===null||zt||h.parentNode.removeChild(h),lo(i,c);break;case 22:i.memoizedState===null&&lo(i,c);break;case 30:nr(i,i.return),lo(i,c);break;case 7:nr(i,i.return);default:lo(i,c)}n=n.sibling}}function Da(n,a,i){for(i=(a.subtreeFlags&8772)!==0?i:i&-2,a=a.child;a!==null;){var c=a.alternate,h=n,b=a,$=b.flags,z=(i&1)!==0;switch(b.tag){case 0:case 11:case 15:Da(h,b,i),Zc(4,b);break;case 1:if(Da(h,b,i),c=b,h=c.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(ce){Dt(c,c.return,ce)}if(c=b,h=c.updateQueue,h!==null){var V=c.stateNode;try{var se=h.shared.hiddenCallbacks;if(se!==null)for(h.shared.hiddenCallbacks=null,h=0;h<se.length;h++)hv(se[h],V)}catch(ce){Dt(c,c.return,ce)}}z&&$&64&&$2(b),ns(b,b.return);break;case 27:(i&2)!==0&&R2(b);case 5:b.tag!==5&&b.tag!==27||C2(b),Da(h,b,i),z&&c===null&&$&4&&Zg(b),ns(b,b.return);break;case 6:C2(b);break;case 26:V=b.stateNode,b.memoizedState!==null||V===null||Un||Km(lu(V.ownerDocument),b.type,V),Da(h,b,i),z&&c===null&&$&4&&Zg(b),ns(b,b.return);break;case 12:Da(h,b,i);break;case 31:Da(h,b,i),z&&$&4&&B2(h,b);break;case 13:Da(h,b,i),z&&$&4&&H2(h,b);break;case 22:b.memoizedState===null&&Da(h,b,i),ns(b,b.return);break;case 30:Da(h,b,i),ns(b,b.return);break;case 7:ns(b,b.return);default:Da(h,b,i)}a=a.sibling}}function um(n,a){var i=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==i&&(n!=null&&n.refCount++,i!=null&&_c(i))}function dm(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&_c(n))}function pa(n,a,i,c){var h=(i&335544064)===i;if(a.subtreeFlags&(h?10262:10256))for(a=a.child;a!==null;)G2(n,a,i,c),a=a.sibling;else h&&L2(a)}function G2(n,a,i,c){var h=(i&335544064)===i;h&&a.alternate===null&&a.return!==null&&a.return.alternate!==null&&wf(a);var b=a.flags;switch(a.tag){case 0:case 11:case 15:pa(n,a,i,c),b&2048&&Zc(9,a);break;case 1:pa(n,a,i,c);break;case 3:pa(n,a,i,c),h&&im&&(n=n.containerInfo,n=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,n.style.viewTransitionName==="root"&&(n.style.viewTransitionName=""),n=n.ownerDocument.documentElement,n!==null&&n.style.viewTransitionName==="none"&&(n.style.viewTransitionName="")),b&2048&&(b=null,a.alternate!==null&&(b=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==b&&(a.refCount++,b!=null&&_c(b)));break;case 12:if(b&2048){pa(n,a,i,c),b=a.stateNode;try{var $=a.memoizedProps,z=$.id,V=$.onPostCommit;typeof V=="function"&&V(z,a.alternate===null?"mount":"update",b.passiveEffectDuration,-0)}catch(se){Dt(a,a.return,se)}}else pa(n,a,i,c);break;case 31:pa(n,a,i,c);break;case 13:pa(n,a,i,c);break;case 23:break;case 22:$=a.stateNode,z=a.alternate,a.memoizedState!==null?(h&&z!==null&&z.memoizedState===null&&wf(z),$._visibility&2?pa(n,a,i,c):eu(n,a)):(h&&z!==null&&z.memoizedState!==null&&wf(a),$._visibility&2?pa(n,a,i,c):($._visibility|=2,cl(n,a,i,c,(a.subtreeFlags&10256)!==0||!1))),b&2048&&um(z,a);break;case 24:pa(n,a,i,c),b&2048&&dm(a.alternate,a);break;case 30:h&&(b=a.alternate,b!==null&&(as(b.child,!0),as(a.child,!0))),pa(n,a,i,c);break;default:pa(n,a,i,c)}}function cl(n,a,i,c,h){for(h=h&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var b=n,$=a,z=i,V=c,se=$.flags;switch($.tag){case 0:case 11:case 15:cl(b,$,z,V,h),Zc(8,$);break;case 23:break;case 22:var ce=$.stateNode;$.memoizedState!==null?ce._visibility&2?cl(b,$,z,V,h):eu(b,$):(ce._visibility|=2,cl(b,$,z,V,h)),h&&se&2048&&um($.alternate,$);break;case 24:cl(b,$,z,V,h),h&&se&2048&&dm($.alternate,$);break;default:cl(b,$,z,V,h)}a=a.sibling}}function eu(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var i=n,c=a,h=c.flags;switch(c.tag){case 22:eu(i,c),h&2048&&um(c.alternate,c);break;case 24:eu(i,c),h&2048&&dm(c.alternate,c);break;default:eu(i,c)}a=a.sibling}}var ni=8192;function ri(n,a,i){if(n.subtreeFlags&ni)for(n=n.child;n!==null;)K2(n,a,i),n=n.sibling}function K2(n,a,i){switch(n.tag){case 26:ri(n,a,i),n.flags&ni&&(n.memoizedState!==null?lM(i,La,n.memoizedState,n.memoizedProps):(n=n.stateNode,(a&335544128)===a&&eS(i,n)));break;case 5:ri(n,a,i),n.flags&ni&&(n=n.stateNode,(a&335544128)===a&&eS(i,n));break;case 3:case 4:var c=La;La=lu(n.stateNode.containerInfo),ri(n,a,i),La=c;break;case 22:n.memoizedState===null&&(c=n.alternate,c!==null&&c.memoizedState!==null?(c=ni,ni=16777216,ri(n,a,i),ni=c):ri(n,a,i));break;case 30:if((n.flags&ni)!==0&&(c=n.memoizedProps.name,c!=null&&c!=="auto")){var h=n.stateNode;h.paired=null,Kr===null&&(Kr=new Map),Kr.set(c,h)}ri(n,a,i);break;default:ri(n,a,i)}}function W2(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function tu(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var c=a[i];Vn=c,X2(c,n)}W2(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Y2(n),n=n.sibling}function Y2(n){switch(n.tag){case 0:case 11:case 15:tu(n),n.flags&2048&&io(9,n,n.return);break;case 3:tu(n);break;case 12:tu(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,Tf(n)):tu(n);break;default:tu(n)}}function Tf(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var c=a[i];Vn=c,X2(c,n)}W2(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:io(8,a,a.return),Tf(a);break;case 22:i=a.stateNode,i._visibility&2&&(i._visibility&=-3,Tf(a));break;default:Tf(a)}n=n.sibling}}function X2(n,a){for(;Vn!==null;){var i=Vn;switch(i.tag){case 0:case 11:case 15:io(8,i,a);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var c=i.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:_c(i.memoizedState.cache)}if(c=i.child,c!==null)c.return=i,Vn=c;else e:for(i=n;Vn!==null;){c=Vn;var h=c.sibling,b=c.return;if(q2(c),c===i){Vn=null;break e}if(h!==null){h.return=b,Vn=h;break e}Vn=b}}}var r7={getCacheForType:function(n){var a=Jn(Sn),i=a.data.get(n);return i===void 0&&(i=n(),a.data.set(n,i)),i},cacheSignal:function(){return Jn(Sn).controller.signal}},a7=typeof WeakMap=="function"?WeakMap:Map,Mt=0,Ut=null,gt=null,kt=0,Lt=0,Wr=null,co=!1,ul=!1,fm=!1,zs=0,hn=0,uo=0,ai=0,Cf=0,Yr=0,dl=0,nu=null,Ar=null,hm=!1,jf=0,Z2=0,Rf=1/0,Af=null,fo=null,on=0,Oa=null,si=null,ls=0,pm=0,xm=null,Q2=null,fl=null,hl=null,pl=null,ru=0,Mf=null;function Xr(){return(Mt&2)!==0&&kt!==0?kt&-kt:te.T!==null?$m():zn()}function J2(){if(Yr===0)if((kt&536870912)===0||xt){var n=ge;ge<<=1,(ge&3932160)===0&&(ge=262144),Yr=n}else Yr=536870912;return n=er.current,n!==null&&(n.flags|=32),Yr}function xl(n,a){if(a!=null){var i=n.stateNode,c=i.ref;c===null&&(c=i.ref=zw(Ss(n.memoizedProps,i))),hl===null&&(hl=[]),hl.push(a.bind(null,c))}}function Mr(n,a,i){(n===Ut&&(Lt===2||Lt===9)||n.cancelPendingCommit!==null)&&(gl(n,0),ho(n,kt,Yr,!1)),Fe(n,i),((Mt&2)===0||n!==Ut)&&(n===Ut&&((Mt&2)===0&&(ai|=i),hn===4&&ho(n,kt,Yr,!1)),cs(n))}function ew(n,a,i){if((Mt&6)!==0)throw Error(s(327));var c=!i&&(a&127)===0&&(a&n.expiredLanes)===0||Se(n,a),h=c?i7(n,a):mm(n,a,!0),b=c;do{if(h===0){ul&&!c&&ho(n,a,0,!1);break}else{if(i=n.current.alternate,b&&!s7(i)){h=mm(n,a,!1),b=!1;continue}if(h===2){if(b=a,n.errorRecoveryDisabledLanes&b)var $=0;else $=n.pendingLanes&-536870913,$=$!==0?$:$&536870912?536870912:0;if($!==0){a=$;e:{var z=n;h=nu;var V=z.current.memoizedState.isDehydrated;if(V&&(gl(z,$).flags|=256),$=mm(z,$,!1),$!==2&&$!==6){if(fm&&!V){z.errorRecoveryDisabledLanes|=b,ai|=b,h=4;break e}b=Ar,Ar=h,b!==null&&(Ar===null?Ar=b:Ar.push.apply(Ar,b))}h=$}if(b=!1,h!==2)continue}}if(h===1){gl(n,0),ho(n,a,0,!0);break}e:{switch(c=n,b=h,b){case 0:case 1:throw Error(s(345));case 4:if((a&4194048)!==a&&(a&62914560)!==a)break;case 6:ho(c,a,Yr,!co);break e;case 2:Ar=null;break;case 3:case 5:break;default:throw Error(s(329))}if((a&62914560)===a&&(h=jf+300-Ye(),10<h)){if(ho(c,a,Yr,!co),De(c,0,!0)!==0)break e;ls=a,c.timeoutHandle=Om(tw.bind(null,c,i,Ar,Af,hm,a,Yr,ai,dl,co,b,"Throttled",-0,0),h);break e}tw(c,i,Ar,Af,hm,a,Yr,ai,dl,co,b,null,-0,0)}}break}while(!0);cs(n)}function tw(n,a,i,c,h,b,$,z,V,se,ce,be,ne,le){n.timeoutHandle=-1;var Ae=a.subtreeFlags,_e=(b&335544064)===b;if(be=null,(_e||Ae&8192||(Ae&16785408)===16785408)&&(be={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ja},Kr=null,K2(a,b,be),_e&&(Ae=be,_e=n.containerInfo,_e=(_e.nodeType===9?_e:_e.ownerDocument).__reactViewTransition,_e!=null&&(Ae.count++,Ae.waitingForViewTransition=!0,Ae=du.bind(Ae),_e.finished.then(Ae,Ae))),Ae=(b&62914560)===b?jf-Ye():(b&4194048)===b?Z2-Ye():0,Ae=cM(be,Ae),Ae!==null)){ls=b,n.cancelPendingCommit=Ae(cw.bind(null,n,a,b,i,c,h,$,z,V,se,ce,be,null,ne,le)),ho(n,b,$,!se);return}cw(n,a,b,i,c,h,$,z,V,se,ce,be)}function s7(n){for(var a=n;;){var i=a.tag;if((i===0||i===11||i===15)&&a.flags&16384&&(i=a.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var c=0;c<i.length;c++){var h=i[c],b=h.getSnapshot;h=h.value;try{if(!Vr(b(),h))return!1}catch{return!1}}if(i=a.child,a.subtreeFlags&16384&&i!==null)i.return=a,a=i;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ho(n,a,i,c){a=Ne(n,a),a&=~Cf,a&=~ai,n.suspendedLanes|=a,n.pingedLanes&=~a,c&&(n.warmLanes|=a),c=n.expirationTimes;for(var h=a;0<h;){var b=31-Mn(h),$=1<<b;c[b]=-1,h&=~$}i!==0&&At(n,i,a)}function Nf(){return(Mt&6)===0?(au(0),!1):!0}function gm(){if(gt!==null){if(Lt===0)var n=gt.return;else n=gt,Cs=Go=null,Eg(n),nl=null,Bc=0,n=gt;for(;n!==null;)E2(n.alternate,n),n=n.return;gt=null}}function gl(n,a){var i=n.timeoutHandle;return i!==-1&&(n.timeoutHandle=-1,R7(i)),i=n.cancelPendingCommit,i!==null&&(n.cancelPendingCommit=null,i()),ls=0,gm(),Ut=n,gt=i=$s(n.current,null),kt=a,Lt=0,Wr=null,co=!1,ul=Se(n,a),fm=!1,dl=Yr=Cf=ai=uo=hn=0,Ar=nu=null,hm=!1,zs=Ne(n,a),qd(),i}function nw(n,a){ut=null,te.H=df,a===tl||a===Xd?(a=cv(),Lt=3):a===dg?(a=cv(),Lt=4):Lt=a===qg?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Wr=a,gt===null&&(hn=1,ff(n,ua(a,n.current)))}function rw(){var n=er.current;return n===null?!0:(kt&4194048)===kt?ir===null:(kt&62914560)===kt||(kt&536870912)!==0?n===ir:!1}function aw(){var n=te.H;return te.H=df,n===null?df:n}function sw(){var n=te.A;return te.A=r7,n}function zf(){hn=4,co||(kt&4194048)!==kt&&er.current!==null||(ul=!0),(uo&134217727)===0&&(ai&134217727)===0||Ut===null||ho(Ut,kt,Yr,!1)}function mm(n,a,i){var c=Mt;Mt|=2;var h=aw(),b=sw();(Ut!==n||kt!==a)&&(Af=null,gl(n,a)),a=!1;var $=hn;e:do try{if(Lt!==0&&gt!==null){var z=gt,V=Wr;switch(Lt){case 8:gm(),$=6;break e;case 3:case 2:case 9:case 6:er.current===null&&(a=!0);var se=Lt;if(Lt=0,Wr=null,ml(n,z,V,se),i&&ul){$=0;break e}break;default:se=Lt,Lt=0,Wr=null,ml(n,z,V,se)}}o7(),$=hn;break}catch(ce){nw(n,ce)}while(!0);return a&&n.shellSuspendCounter++,Cs=Go=null,Mt=c,te.H=h,te.A=b,gt===null&&(Ut=null,kt=0,qd()),$}function o7(){for(;gt!==null;)ow(gt)}function i7(n,a){var i=Mt;Mt|=2;var c=aw(),h=sw();Ut!==n||kt!==a?(Af=null,Rf=Ye()+500,gl(n,a)):ul=Se(n,a);e:do try{if(Lt!==0&&gt!==null){a=gt;var b=Wr;t:switch(Lt){case 1:Lt=0,Wr=null,ml(n,a,b,1);break;case 2:case 9:if(iv(b)){Lt=0,Wr=null,iw(a);break}a=function(){Lt!==2&&Lt!==9||Ut!==n||(Lt=7),cs(n)},b.then(a,a);break e;case 3:Lt=7;break e;case 4:Lt=5;break e;case 7:iv(b)?(Lt=0,Wr=null,iw(a)):(Lt=0,Wr=null,ml(n,a,b,7));break;case 5:var $=null;switch(gt.tag){case 26:$=gt.memoizedState;case 5:case 27:var z=gt;if($?Qw($):z.stateNode.complete){Lt=0,Wr=null;var V=z.sibling;if(V!==null)gt=V;else{var se=z.return;se!==null?(gt=se,Lf(se)):gt=null}break t}}Lt=0,Wr=null,ml(n,a,b,5);break;case 6:Lt=0,Wr=null,ml(n,a,b,6);break;case 8:gm(),hn=6;break e;default:throw Error(s(462))}}l7();break}catch(ce){nw(n,ce)}while(!0);return Cs=Go=null,te.H=c,te.A=h,Mt=i,gt!==null?0:(Ut=null,kt=0,qd(),hn)}function l7(){for(;gt!==null&&!Qt();)ow(gt)}function ow(n){var a=w2(n.alternate,n,zs);n.memoizedProps=n.pendingProps,a===null?Lf(n):gt=a}function iw(n){var a=n,i=a.alternate;switch(a.tag){case 15:case 0:a=x2(i,a,a.pendingProps,a.type,void 0,kt);break;case 11:a=x2(i,a,a.pendingProps,a.type.render,a.ref,kt);break;case 5:Eg(a);var c=a;c===Fn&&(xt?(Vd(c),c.tag===5&&c.stateNode!=null&&(Kt=c.stateNode)):(Vd(c),xt=!0));default:E2(i,a),a=gt=Xk(a,zs),a=w2(i,a,zs)}n.memoizedProps=n.pendingProps,a===null?Lf(n):gt=a}function ml(n,a,i,c){Cs=Go=null,Eg(a),nl=null,Bc=0;var h=a.return;try{if(YA(n,h,a,i,kt)){hn=1,ff(n,ua(i,n.current)),gt=null;return}}catch(b){if(h!==null)throw gt=h,b;hn=1,ff(n,ua(i,n.current)),gt=null;return}a.flags&32768?(xt||c===1?n=!0:ul||(kt&536870912)!==0?n=!1:(co=n=!0,(c===2||c===9||c===3||c===6)&&(c=er.current,c!==null&&c.tag===13&&(c.flags|=16384))),lw(a,n)):Lf(a)}function Lf(n){var a=n;do{if((a.flags&32768)!==0){lw(a,co);return}n=a.return;var i=JA(a.alternate,a,zs);if(i!==null){gt=i;return}if(a=a.sibling,a!==null){gt=a;return}gt=a=n}while(a!==null);hn===0&&(hn=5)}function lw(n,a){do{var i=e7(n.alternate,n);if(i!==null){i.flags&=32767,gt=i;return}if(i=n.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!a&&(n=n.sibling,n!==null)){gt=n;return}gt=n=i}while(n!==null);hn=6,gt=null}function cw(n,a,i,c,h,b,$,z,V,se,ce,be){n.cancelPendingCommit=null;do Df();while(on!==0);if((Mt&6)!==0)throw Error(s(327));if(a!==null){if(a===n.current)throw Error(s(177));n===Ut&&(gt=Ut=null,kt=0),si=a,Oa=n,ls=i,xm=h,Q2=c,c7(n,a,i,$,z,V,be)}}function c7(n,a,i,c,h,b,$){var z=a.lanes|a.childLanes;if(pm=z,z|=Qx,wt(n,i,z,c,h,b),hl=null,(i&335544064)===i?(pl=IA(n),c=10262):(pl=null,c=10256),(a.subtreeFlags&c)!==0||(a.flags&c)!==0?(n.callbackNode=null,n.callbackPriority=0,x7(an,function(){return vm(),null})):(n.callbackNode=null,n.callbackPriority=0),kf=!1,c=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||c){c=te.T,te.T=null,h=he.p,he.p=2,b=Mt,Mt|=4;try{t7(n,a,i)}finally{Mt=b,he.p=h,te.T=c}}on=1,kf?fl=D7($,n.containerInfo,pl,ym,bm,d7,km,vm,u7):(ym(),bm(),km())}function u7(n){if(on!==0){var a=Oa.onRecoverableError;a(n,{componentStack:null})}}function d7(){on===3&&(on=0,V2(si,Oa),on=4)}function ym(){if(on===1){on=0;var n=Oa,a=si,i=ls,c=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||c){c=te.T,te.T=null;var h=he.p;he.p=2;var b=Mt;Mt|=4;try{Jc=Sf=!1,F2(a,n,i),i=zm;var $=Pk(n.containerInfo),z=i.focusedElem,V=i.selectionRange;if($!==z&&z&&z.ownerDocument&&qk(z.ownerDocument.documentElement,z)){if(V!==null&&Kx(z)){var se=V.start,ce=V.end;if(ce===void 0&&(ce=se),"selectionStart"in z)z.selectionStart=se,z.selectionEnd=Math.min(ce,z.value.length);else{var be=z.ownerDocument||document,ne=be&&be.defaultView||window;if(ne.getSelection){var le=ne.getSelection(),Ae=z.textContent.length,_e=Math.min(V.start,Ae),dt=V.end===void 0?_e:Math.min(V.end,Ae);!le.extend&&_e>dt&&($=dt,dt=_e,_e=$);var re=_k(z,_e),J=_k(z,dt);if(re&&J&&(le.rangeCount!==1||le.anchorNode!==re.node||le.anchorOffset!==re.offset||le.focusNode!==J.node||le.focusOffset!==J.offset)){var ie=be.createRange();ie.setStart(re.node,re.offset),le.removeAllRanges(),_e>dt?(le.addRange(ie),le.extend(J.node,J.offset)):(ie.setEnd(J.node,J.offset),le.addRange(ie))}}}}for(be=[],le=z;le=le.parentNode;)le.nodeType===1&&be.push({element:le,left:le.scrollLeft,top:le.scrollTop});for(typeof z.focus=="function"&&z.focus(),z=0;z<be.length;z++){var me=be[z];me.element.scrollLeft=me.left,me.element.scrollTop=me.top}}$l=!!Nm,zm=Nm=null}finally{Mt=b,he.p=h,te.T=c}}n.current=a,on=2}}function bm(){if(on===2){on=0;var n=Oa,a=si,i=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||i){i=te.T,te.T=null;var c=he.p;he.p=2;var h=Mt;Mt|=4;try{I2(n,a.alternate,a)}finally{Mt=h,he.p=c,te.T=i}}on=3}}function km(){if(on===4||on===3){on=0;var n=fl;fl=null,kn();var a=Oa,i=si,c=ls,h=Q2,b=(c&335544064)===c?10262:10256;if((i.subtreeFlags&b)!==0||(i.flags&b)!==0?on=5:(on=0,si=Oa=null,uw(a,a.pendingLanes)),b=a.pendingLanes,b===0&&(fo=null),mn(c),i=i.stateNode,Gt&&typeof Gt.onCommitFiberRoot=="function")try{Gt.onCommitFiberRoot(Xn,i,void 0,(i.current.flags&128)===128)}catch{}if(h!==null){i=te.T,b=he.p,he.p=2,te.T=null;try{for(var $=a.onRecoverableError,z=0;z<h.length;z++){var V=h[z];$(V.value,{componentStack:V.stack})}}finally{te.T=i,he.p=b}}if(h=hl,$=pl,pl=null,h!==null&&(hl=null,$===null&&($=[]),n!==null))for(V=0;V<h.length;V++)i=(0,h[V])($),i!==void 0&&n.finished.finally(i);(ls&3)!==0&&Df(),cs(a),b=a.pendingLanes,(c&261930)!==0&&(b&42)!==0?a===Mf?ru++:(ru=0,Mf=a):(ru=0,Mf=null),au(0)}}function uw(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,_c(a)))}function Df(){return fl!==null&&(fl.skipTransition(),fl=null),ym(),bm(),km(),vm()}function vm(){if(on!==5)return!1;var n=Oa,a=pm;pm=0;var i=mn(ls),c=te.T,h=he.p;try{he.p=32>i?32:i,te.T=null,i=xm,xm=null;var b=Oa,$=ls;if(on=0,si=Oa=null,ls=0,(Mt&6)!==0)throw Error(s(331));var z=Mt;if(Mt|=4,Y2(b.current),G2(b,b.current,$,i),Mt=z,au(0,!1),Gt&&typeof Gt.onPostCommitFiberRoot=="function")try{Gt.onPostCommitFiberRoot(Xn,b)}catch{}return!0}finally{he.p=h,te.T=c,uw(n,a)}}function dw(n,a,i){a=ua(i,a),a=_g(n.stateNode,a,2),n=ro(n,a,2),n!==null&&(Fe(n,2),cs(n))}function Dt(n,a,i){if(n.tag===3)dw(n,n,i);else for(;a!==null;){if(a.tag===3){dw(a,n,i);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(fo===null||!fo.has(c))){n=ua(i,n),i=i2(2),c=ro(a,i,2),c!==null&&(l2(i,c,a,n),Fe(c,2),cs(c));break}}a=a.return}}function wm(n,a,i){var c=n.pingCache;if(c===null){c=n.pingCache=new a7;var h=new Set;c.set(a,h)}else h=c.get(a),h===void 0&&(h=new Set,c.set(a,h));h.has(i)||(fm=!0,h.add(i),n=f7.bind(null,n,a,i),a.then(n,n))}function f7(n,a,i){var c=n.pingCache;c!==null&&c.delete(a),n.pingedLanes|=n.suspendedLanes&i,n.warmLanes&=~i,Ut===n&&(kt&i)===i&&((hn===4||hn===3&&(kt&62914560)===kt&&300>Ye()-jf)&&(Mt&2)===0?gl(n,0):Cf|=i,dl===kt&&(dl=0)),cs(n)}function fw(n,a){a===0&&(a=Be()),n=Fo(n,a),n!==null&&(Fe(n,a),cs(n))}function h7(n){var a=n.memoizedState,i=0;a!==null&&(i=a.retryLane),fw(n,i)}function p7(n,a){var i=0;switch(n.tag){case 31:case 13:var c=n.stateNode,h=n.memoizedState;h!==null&&(i=h.retryLane);break;case 19:c=n.stateNode;break;case 22:c=n.stateNode._retryCache;break;default:throw Error(s(314))}c!==null&&c.delete(a),fw(n,i)}function x7(n,a){return Vt(n,a)}var yl=null,bl=null,Sm=!1,Of=!1,Em=!1,po=0;function cs(n){n!==bl&&n.next===null&&(bl===null?yl=bl=n:bl=bl.next=n),Of=!0,Sm||(Sm=!0,m7())}function au(n,a){if(!Em&&Of){Em=!0;do for(var i=!1,c=yl;c!==null;){if(n!==0){var h=c.pendingLanes;if(h===0)var b=0;else{var $=c.suspendedLanes,z=c.pingedLanes;b=(1<<31-Mn(42|n)+1)-1,b&=h&~($&~z),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(i=!0,gw(c,b))}else b=kt,b=De(c,c===Ut?b:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(b&3)===0||Se(c,b)||(i=!0,gw(c,b));c=c.next}while(i);Em=!1}}function g7(){hw()}function hw(){Of=Sm=!1;var n=0;po!==0&&j7()&&(n=po);for(var a=Ye(),i=null,c=yl;c!==null;){var h=c.next,b=pw(c,a);b===0?(c.next=null,i===null?yl=h:i.next=h,h===null&&(bl=i)):(i=c,(n!==0||(b&3)!==0)&&(Of=!0)),c=h}on!==0&&on!==5||au(n),po!==0&&(po=0)}function pw(n,a){for(var i=n.suspendedLanes,c=n.pingedLanes,h=n.expirationTimes,b=n.pendingLanes&-62914561;0<b;){var $=31-Mn(b),z=1<<$,V=h[$];V===-1?((z&i)===0||(z&c)!==0)&&(h[$]=Ke(z,a)):V<=a&&(n.expiredLanes|=z),b&=~z}if(a=Ut,i=kt,i=De(n,n===a?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),c=n.callbackNode,i===0||n===a&&(Lt===2||Lt===9)||n.cancelPendingCommit!==null)return c!==null&&c!==null&&Yn(c),n.callbackNode=null,n.callbackPriority=0;if((i&3)===0||Se(n,i)){if(a=i&-i,a===n.callbackPriority)return a;switch(c!==null&&Yn(c),mn(i)){case 2:case 8:i=un;break;case 32:i=an;break;case 268435456:i=Qa;break;default:i=an}return c=xw.bind(null,n),i=Vt(i,c),n.callbackPriority=a,n.callbackNode=i,a}return c!==null&&c!==null&&Yn(c),n.callbackPriority=2,n.callbackNode=null,2}function xw(n,a){if(on!==0&&on!==5)return n.callbackNode=null,n.callbackPriority=0,null;var i=n.callbackNode;if(Df()&&n.callbackNode!==i)return null;var c=kt;return c=De(n,n===Ut?c:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),c===0?null:(ew(n,c,a),pw(n,Ye()),n.callbackNode!=null&&n.callbackNode===i?xw.bind(null,n):null)}function gw(n,a){if(Df())return null;ew(n,a,!0)}function m7(){A7(function(){(Mt&6)!==0?Vt(Jt,g7):hw()})}function $m(){if(po===0){var n=Yo;n===0&&(n=oe,oe<<=1,(oe&261888)===0&&(oe=256)),po=n}return po}function mw(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Md(n)}function y7(n,a,i,c,h){if(a==="submit"&&i&&i.stateNode===h){var b=mw((h[Yt]||null).action),$=c.submitter;$&&(a=(a=$[Yt]||null)?mw(a.formAction):$.getAttribute("formAction"),a!==null&&(b=a,$=null));var z=new Dd("action","action",null,c,h);n.push({event:z,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(po!==0){var V=new FormData(h,$);zg(i,{pending:!0,data:V,method:h.method,action:b},null,V)}}else typeof b=="function"&&(z.preventDefault(),V=new FormData(h,$),zg(i,{pending:!0,data:V,method:h.method,action:b},b,V))},currentTarget:h}]})}}for(var Tm=0;Tm<Zx.length;Tm++){var Cm=Zx[Tm],b7=Cm.toLowerCase(),k7=Cm[0].toUpperCase()+Cm.slice(1);Na(b7,"on"+k7)}Na(Fk,"onAnimationEnd"),Na(Uk,"onAnimationIteration"),Na(Vk,"onAnimationStart"),Na("dblclick","onDoubleClick"),Na("focusin","onFocus"),Na("focusout","onBlur"),Na(RA,"onTransitionRun"),Na(AA,"onTransitionStart"),Na(MA,"onTransitionCancel"),Na(Gk,"onTransitionEnd"),vs("onMouseEnter",["mouseout","mouseover"]),vs("onMouseLeave",["mouseout","mouseover"]),vs("onPointerEnter",["pointerout","pointerover"]),vs("onPointerLeave",["pointerout","pointerover"]),Ma("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ma("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ma("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ma("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ma("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ma("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var su="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(" "),v7=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(su));function yw(n,a){a=(a&4)!==0;for(var i=0;i<n.length;i++){var c=n[i],h=c.event;c=c.listeners;e:{var b=void 0;if(a)for(var $=c.length-1;0<=$;$--){var z=c[$],V=z.instance,se=z.currentTarget;if(z=z.listener,V!==b&&h.isPropagationStopped())break e;b=z,h.currentTarget=se;try{b(h)}catch(ce){_d(ce)}h.currentTarget=null,b=V}else for($=0;$<c.length;$++){if(z=c[$],V=z.instance,se=z.currentTarget,z=z.listener,V!==b&&h.isPropagationStopped())break e;b=z,h.currentTarget=se;try{b(h)}catch(ce){_d(ce)}h.currentTarget=null,b=V}}}}function mt(n,a){var i=a[Zn];i===void 0&&(i=a[Zn]=new Set);var c=n+"__bubble";i.has(c)||(bw(a,n,2,!1),i.add(c))}function jm(n,a,i){var c=0;a&&(c|=4),bw(i,n,c,a)}var If="_reactListening"+Math.random().toString(36).slice(2);function Rm(n){if(!n[If]){n[If]=!0,_o.forEach(function(i){i!=="selectionchange"&&(v7.has(i)||jm(i,!1,n),jm(i,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[If]||(a[If]=!0,jm("selectionchange",!1,a))}}function bw(n,a,i,c){switch(lS(a)){case 2:var h=hM;break;case 8:h=pM;break;default:h=Ym}i=h.bind(null,a,i,n),h=void 0,!Ix||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(h=!0),c?h!==void 0?n.addEventListener(a,i,{capture:!0,passive:h}):n.addEventListener(a,i,!0):h!==void 0?n.addEventListener(a,i,{passive:h}):n.addEventListener(a,i,!1)}function Am(n,a,i,c,h){var b=c;if((a&1)===0&&(a&2)===0&&c!==null)e:for(;;){if(c===null)return;var $=c.tag;if($===3||$===4){var z=c.stateNode.containerInfo;if(z===h)break;if($===4)for($=c.return;$!==null;){var V=$.tag;if((V===3||V===4)&&$.stateNode.containerInfo===h)return;$=$.return}for(;z!==null;){if($=dn(z),$===null)return;if(V=$.tag,V===5||V===6||V===26||V===27){c=b=$;continue e}z=z.parentNode}}c=c.return}bk(function(){var se=b,ce=Dx(i),be=[];e:{var ne=Kk.get(n);if(ne!==void 0){var le=Dd,Ae=n;switch(n){case"keypress":if(zd(i)===0)break e;case"keydown":case"keyup":le=sA;break;case"focusin":Ae="focus",le=Bx;break;case"focusout":Ae="blur",le=Bx;break;case"beforeblur":case"afterblur":le=Bx;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":le=wk;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=KR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=uA;break;case Fk:case Uk:case Vk:le=XR;break;case Gk:le=fA;break;case"scroll":case"scrollend":le=VR;break;case"wheel":le=pA;break;case"copy":case"cut":case"paste":le=QR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=Ek;break;case"submit":le=lA;break;case"toggle":case"beforetoggle":le=gA}var _e=(a&4)!==0,dt=!_e&&(n==="scroll"||n==="scrollend"),re=_e?ne!==null?ne+"Capture":null:ne;_e=[];for(var J=se,ie;J!==null;){var me=J;if(ie=me.stateNode,me=me.tag,me!==5&&me!==26&&me!==27||ie===null||re===null||(me=Cc(J,re),me!=null&&_e.push(ou(J,me,ie))),dt)break;J=J.return}0<_e.length&&(ne=new le(ne,Ae,null,i,ce),be.push({event:ne,listeners:_e}))}}if((a&7)===0){e:{if(le=n==="mouseover"||n==="pointerover",ne=n==="mouseout"||n==="pointerout",le&&i!==Lx&&(Ae=i.relatedTarget||i.fromElement)&&(dn(Ae)||Ae[wn]))break e;(ne||le)&&(Ae=ce.window===ce?ce:(le=ce.ownerDocument)?le.defaultView||le.parentWindow:window,ne?(le=i.relatedTarget||i.toElement,ne=se,le=le?dn(le):null,le!==null&&(dt=l(le),_e=le.tag,le!==dt||_e!==5&&_e!==27&&_e!==6)&&(le=null)):(ne=null,le=se),ne!==le&&(_e=wk,me="onMouseLeave",re="onMouseEnter",J="mouse",(n==="pointerout"||n==="pointerover")&&(_e=Ek,me="onPointerLeave",re="onPointerEnter",J="pointer"),dt=ne==null?Ae:Aa(ne),ie=le==null?Ae:Aa(le),Ae=new _e(me,J+"leave",ne,i,ce),Ae.target=dt,Ae.relatedTarget=ie,me=null,dn(ce)===se&&(_e=new _e(re,J+"enter",le,i,ce),_e.target=ie,_e.relatedTarget=dt,me=_e),dt=me,_e=ne&&le?L(ne,le,w7):null,ne!==null&&kw(be,Ae,ne,_e,!1),le!==null&&dt!==null&&kw(be,dt,le,_e,!0)))}e:{if(ne=se?Aa(se):window,le=ne.nodeName&&ne.nodeName.toLowerCase(),le==="select"||le==="input"&&ne.type==="file")var Oe=Nk;else if(Ak(ne))if(zk)Oe=TA;else{Oe=EA;var vt=SA}else le=ne.nodeName,!le||le.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?se&&zx(se.elementType)&&(Oe=Nk):Oe=$A;if(Oe&&(Oe=Oe(n,se))){Mk(be,Oe,i,ce);break e}vt&&vt(n,ne,se)}switch(vt=se?Aa(se):window,n){case"focusin":(Ak(vt)||vt.contentEditable==="true")&&(Ki=vt,Wx=se,Dc=null);break;case"focusout":Dc=Wx=Ki=null;break;case"mousedown":Yx=!0;break;case"contextmenu":case"mouseup":case"dragend":Yx=!1,Bk(be,i,ce);break;case"selectionchange":if(jA)break;case"keydown":case"keyup":Bk(be,i,ce)}var Ue;if(Fx)e:{switch(n){case"compositionstart":var Xe="onCompositionStart";break e;case"compositionend":Xe="onCompositionEnd";break e;case"compositionupdate":Xe="onCompositionUpdate";break e}Xe=void 0}else Gi?jk(n,i)&&(Xe="onCompositionEnd"):n==="keydown"&&i.keyCode===229&&(Xe="onCompositionStart");Xe&&($k&&i.locale!=="ko"&&(Gi||Xe!=="onCompositionStart"?Xe==="onCompositionEnd"&&Gi&&(Ue=kk()):(Ws=ce,_x="value"in Ws?Ws.value:Ws.textContent,Gi=!0)),vt=_f(se,Xe),0<vt.length&&(Xe=new Sk(Xe,n,null,i,ce),be.push({event:Xe,listeners:vt}),Ue?Xe.data=Ue:(Ue=Rk(i),Ue!==null&&(Xe.data=Ue)))),(Ue=yA?bA(n,i):kA(n,i))&&(Xe=_f(se,"onBeforeInput"),0<Xe.length&&(vt=new Sk("onBeforeInput","beforeinput",null,i,ce),be.push({event:vt,listeners:Xe}),vt.data=Ue)),y7(be,n,se,i,ce)}yw(be,a)})}function ou(n,a,i){return{instance:n,listener:a,currentTarget:i}}function _f(n,a){for(var i=a+"Capture",c=[];n!==null;){var h=n,b=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||b===null||(h=Cc(n,i),h!=null&&c.unshift(ou(n,h,b)),h=Cc(n,a),h!=null&&c.push(ou(n,h,b))),n.tag===3)return c;n=n.return}return[]}function w7(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function kw(n,a,i,c,h){for(var b=a._reactName,$=[];i!==null&&i!==c;){var z=i,V=z.alternate,se=z.stateNode;if(z=z.tag,V!==null&&V===c)break;z!==5&&z!==26&&z!==27||se===null||(V=se,h?(se=Cc(i,b),se!=null&&$.unshift(ou(i,se,V))):h||(se=Cc(i,b),se!=null&&$.push(ou(i,se,V)))),i=i.return}$.length!==0&&n.push({event:a,listeners:$})}var S7=/\r\n?/g,E7=/\u0000|\uFFFD/g;function vw(n){return(typeof n=="string"?n:""+n).replace(S7,`
10
- `).replace(E7,"")}function ww(n,a){return a=vw(a),vw(n)===a}function Ot(n,a,i,c,h,b){switch(i){case"children":if(typeof c=="string")a==="body"||a==="textarea"&&c===""||Fi(n,c);else if(typeof c=="number"||typeof c=="bigint")a!=="body"&&Fi(n,""+c);else return;break;case"className":Po(n,"class",c);break;case"tabIndex":Po(n,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Po(n,i,c);break;case"style":mk(n,c,b);return;case"data":if(a!=="object"){Po(n,"data",c);break}case"src":case"href":if(c===""&&(a!=="a"||i!=="href")){n.removeAttribute(i);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(i);break}c=Md(c),n.setAttribute(i,c);break;case"action":case"formAction":if(typeof c=="function"){n.setAttribute(i,"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 b=="function"&&(i==="formAction"?(a!=="input"&&Ot(n,a,"name",h.name,h,null),Ot(n,a,"formEncType",h.formEncType,h,null),Ot(n,a,"formMethod",h.formMethod,h,null),Ot(n,a,"formTarget",h.formTarget,h,null)):(Ot(n,a,"encType",h.encType,h,null),Ot(n,a,"method",h.method,h,null),Ot(n,a,"target",h.target,h,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(i);break}c=Md(c),n.setAttribute(i,c);break;case"onClick":c!=null&&(n.onclick=Ja);return;case"onScroll":c!=null&&mt("scroll",n);return;case"onScrollEnd":c!=null&&mt("scrollend",n);return;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(s(61));if(i=c.__html,i!=null){if(h.children!=null)throw Error(s(60));b?.__html!==i&&(n.innerHTML=i)}}break;case"multiple":n.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":n.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){n.removeAttribute("xlink:href");break}i=Md(c),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(i,c):n.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(i,""):n.removeAttribute(i);break;case"capture":case"download":c===!0?n.setAttribute(i,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(i,c):n.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?n.setAttribute(i,c):n.removeAttribute(i);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?n.removeAttribute(i):n.setAttribute(i,c);break;case"popover":mt("beforetoggle",n),mt("toggle",n),Bi(n,"popover",c);break;case"xlinkActuate":Ee(n,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Ee(n,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Ee(n,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Ee(n,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Ee(n,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Ee(n,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Ee(n,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Ee(n,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Ee(n,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Bi(n,"is",c);break;case"innerText":case"textContent":return;default:if(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")i=FR.get(i)||i,Bi(n,i,c);else return}St=!0}function Mm(n,a,i,c,h,b){switch(i){case"style":mk(n,c,b);return;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(s(61));if(i=c.__html,i!=null){if(h.children!=null)throw Error(s(60));b?.__html!==i&&(n.innerHTML=i)}}break;case"children":if(typeof c=="string")Fi(n,c);else if(typeof c=="number"||typeof c=="bigint")Fi(n,""+c);else return;break;case"onScroll":c!=null&&mt("scroll",n);return;case"onScrollEnd":c!=null&&mt("scrollend",n);return;case"onClick":c!=null&&(n.onclick=Ja);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!qo.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(h=i.endsWith("Capture"),b=i.slice(2,h?i.length-7:void 0),a=n[Yt]||null,a=a!=null?a[i]:null,typeof a=="function"&&n.removeEventListener(b,a,h),typeof c=="function")){typeof a!="function"&&a!==null&&(i in n?n[i]=null:n.hasAttribute(i)&&n.removeAttribute(i)),n.addEventListener(b,c,h);break e}St=!0,i in n?n[i]=c:c===!0?n.setAttribute(i,""):Bi(n,i,c)}return}St=!0}function rr(n,a,i){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":mt("error",n),mt("load",n);var c=!1,h=!1,b;for(b in i)if(i.hasOwnProperty(b)){var $=i[b];if($!=null)switch(b){case"src":c=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,a));default:Ot(n,a,b,$,i,null)}}h&&Ot(n,a,"srcSet",i.srcSet,i,null),c&&Ot(n,a,"src",i.src,i,null);return;case"input":mt("invalid",n);var z=b=$=h=null,V=null,se=null;for(c in i)if(i.hasOwnProperty(c)){var ce=i[c];if(ce!=null)switch(c){case"name":h=ce;break;case"type":$=ce;break;case"checked":V=ce;break;case"defaultChecked":se=ce;break;case"value":b=ce;break;case"defaultValue":z=ce;break;case"children":case"dangerouslySetInnerHTML":if(ce!=null)throw Error(s(137,a));break;default:Ot(n,a,c,ce,i,null)}}hk(n,b,z,V,se,$,h,!1);return;case"select":mt("invalid",n),c=$=b=null;for(h in i)if(i.hasOwnProperty(h)&&(z=i[h],z!=null))switch(h){case"value":b=z;break;case"defaultValue":$=z;break;case"multiple":c=z;default:Ot(n,a,h,z,i,null)}a=b,i=$,n.multiple=!!c,a!=null?Hi(n,!!c,a,!1):i!=null&&Hi(n,!!c,i,!0);return;case"textarea":mt("invalid",n),b=h=c=null;for($ in i)if(i.hasOwnProperty($)&&(z=i[$],z!=null))switch($){case"value":c=z;break;case"defaultValue":h=z;break;case"children":b=z;break;case"dangerouslySetInnerHTML":if(z!=null)throw Error(s(91));break;default:Ot(n,a,$,z,i,null)}xk(n,c,h,b);return;case"option":for(V in i)i.hasOwnProperty(V)&&(c=i[V],c!=null)&&(V==="selected"?n.selected=c&&typeof c!="function"&&typeof c!="symbol":Ot(n,a,V,c,i,null));return;case"dialog":mt("beforetoggle",n),mt("toggle",n),mt("cancel",n),mt("close",n);break;case"iframe":case"object":mt("load",n);break;case"video":case"audio":for(c=0;c<su.length;c++)mt(su[c],n);break;case"image":mt("error",n),mt("load",n);break;case"details":mt("toggle",n);break;case"embed":case"source":case"link":mt("error",n),mt("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(se in i)if(i.hasOwnProperty(se)&&(c=i[se],c!=null))switch(se){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,a));default:Ot(n,a,se,c,i,null)}return;default:if(zx(a)){for(ce in i)i.hasOwnProperty(ce)&&(c=i[ce],c!==void 0&&Mm(n,a,ce,c,i,void 0));return}}for(z in i)i.hasOwnProperty(z)&&(c=i[z],c!=null&&Ot(n,a,z,c,i,null))}var $7={};function T7(n,a,i,c){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,b=null,$=null,z=null,V=null,se=null,ce=null;for(le in i){var be=i[le];if(i.hasOwnProperty(le)&&be!=null)switch(le){case"checked":break;case"value":break;case"defaultValue":V=be;default:c.hasOwnProperty(le)||Ot(n,a,le,null,c,be)}}for(var ne in c){var le=c[ne];if(be=i[ne],c.hasOwnProperty(ne)&&(le!=null||be!=null))switch(ne){case"type":le!==be&&(St=!0),b=le;break;case"name":le!==be&&(St=!0),h=le;break;case"checked":le!==be&&(St=!0),se=le;break;case"defaultChecked":le!==be&&(St=!0),ce=le;break;case"value":le!==be&&(St=!0),$=le;break;case"defaultValue":le!==be&&(St=!0),z=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(s(137,a));break;default:le!==be&&Ot(n,a,ne,le,c,be)}}Mx(n,$,z,V,se,ce,b,h);return;case"select":le=$=z=ne=null;for(b in i)if(V=i[b],i.hasOwnProperty(b)&&V!=null)switch(b){case"value":break;case"multiple":le=V;default:c.hasOwnProperty(b)||Ot(n,a,b,null,c,V)}for(h in c)if(b=c[h],V=i[h],c.hasOwnProperty(h)&&(b!=null||V!=null))switch(h){case"value":b!==V&&(St=!0),ne=b;break;case"defaultValue":b!==V&&(St=!0),z=b;break;case"multiple":b!==V&&(St=!0),$=b;default:b!==V&&Ot(n,a,h,b,c,V)}a=z,i=$,c=le,ne!=null?Hi(n,!!i,ne,!1):!!c!=!!i&&(a!=null?Hi(n,!!i,a,!0):Hi(n,!!i,i?[]:"",!1));return;case"textarea":le=ne=null;for(z in i)if(h=i[z],i.hasOwnProperty(z)&&h!=null&&!c.hasOwnProperty(z))switch(z){case"value":break;case"children":break;default:Ot(n,a,z,null,c,h)}for($ in c)if(h=c[$],b=i[$],c.hasOwnProperty($)&&(h!=null||b!=null))switch($){case"value":h!==b&&(St=!0),ne=h;break;case"defaultValue":h!==b&&(St=!0),le=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(s(91));break;default:h!==b&&Ot(n,a,$,h,c,b)}pk(n,ne,le);return;case"option":for(var Ae in i)ne=i[Ae],i.hasOwnProperty(Ae)&&ne!=null&&!c.hasOwnProperty(Ae)&&(Ae==="selected"?n.selected=!1:Ot(n,a,Ae,null,c,ne));for(V in c)ne=c[V],le=i[V],c.hasOwnProperty(V)&&ne!==le&&(ne!=null||le!=null)&&(V==="selected"?(ne!==le&&(St=!0),n.selected=ne&&typeof ne!="function"&&typeof ne!="symbol"):Ot(n,a,V,ne,c,le));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 _e in i)ne=i[_e],i.hasOwnProperty(_e)&&ne!=null&&!c.hasOwnProperty(_e)&&Ot(n,a,_e,null,c,ne);for(se in c)if(ne=c[se],le=i[se],c.hasOwnProperty(se)&&ne!==le&&(ne!=null||le!=null))switch(se){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(s(137,a));break;default:Ot(n,a,se,ne,c,le)}return;default:if(zx(a)){for(var dt in i)ne=i[dt],i.hasOwnProperty(dt)&&ne!==void 0&&!c.hasOwnProperty(dt)&&Mm(n,a,dt,void 0,c,ne);for(ce in c)ne=c[ce],le=i[ce],!c.hasOwnProperty(ce)||ne===le||ne===void 0&&le===void 0||Mm(n,a,ce,ne,c,le);return}}for(var re in i)ne=i[re],i.hasOwnProperty(re)&&ne!=null&&!c.hasOwnProperty(re)&&Ot(n,a,re,null,c,ne);for(be in c)ne=c[be],le=i[be],!c.hasOwnProperty(be)||ne===le||ne==null&&le==null||Ot(n,a,be,ne,c,le)}function Sw(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function C7(){if(typeof performance.getEntriesByType=="function"){for(var n=0,a=0,i=performance.getEntriesByType("resource"),c=0;c<i.length;c++){var h=i[c],b=h.transferSize,$=h.initiatorType,z=h.duration;if(b&&z&&Sw($)){for($=0,z=h.responseEnd,c+=1;c<i.length;c++){var V=i[c],se=V.startTime;if(se>z)break;var ce=V.transferSize,be=V.initiatorType;ce&&Sw(be)&&(V=V.responseEnd,$+=ce*(V<z?1:(z-se)/(V-se)))}if(--c,a+=8*(b+$)/(h.duration/1e3),n++,10<n)break}}if(0<n)return a/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var Nm=null,zm=null;function iu(n){return n.nodeType===9?n:n.ownerDocument}function Ew(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function $w(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function Tw(n,a,i,c){return i=iu(i).createElement(n),i[Bt]=c,i[Yt]=a,rr(i,n,a),tt(i),i}function Lm(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Dm=null;function j7(){var n=window.event;return n&&n.type==="popstate"?n===Dm?!1:(Dm=n,!0):(Dm=null,!1)}var Om=typeof setTimeout=="function"?setTimeout:void 0,R7=typeof clearTimeout=="function"?clearTimeout:void 0,Cw=typeof Promise=="function"?Promise:void 0,jw=typeof requestAnimationFrame=="function"?requestAnimationFrame:Om,A7=typeof queueMicrotask=="function"?queueMicrotask:typeof Cw<"u"?function(n){return Cw.resolve(null).then(n).catch(M7)}:Om;function M7(n){setTimeout(function(){throw n})}function xo(n){return n==="head"}function Rw(n,a){var i=a,c=0;do{var h=i.nextSibling;if(n.removeChild(i),h&&h.nodeType===8)if(i=h.data,i==="/$"||i==="/&"){if(c===0){n.removeChild(h),Tl(a);return}c--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")c++;else if(i==="html")Um(n.ownerDocument.documentElement);else if(i==="head"){i=n.ownerDocument.head,Um(i);for(var b=i.firstChild;b;){var $=b.nextSibling,z=b.nodeName;b[Qn]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&b.rel.toLowerCase()==="stylesheet"||i.removeChild(b),b=$}}else i==="body"&&Um(n.ownerDocument.body);i=h}while(i);Tl(a)}function Aw(n,a){var i=n;n=0;do{var c=i.nextSibling;if(i.nodeType===1?a?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(a?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),c&&c.nodeType===8)if(i=c.data,i==="/$"){if(n===0)break;n--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||n++;i=c}while(i)}function Mw(n,a,i){if(a=CSS.escape(a)!==a?"r-"+btoa(a).replace(/=/g,""):a,n.style.viewTransitionName=a,i!=null&&(n.style.viewTransitionClass=i),i=getComputedStyle(n),i.display==="inline"){if(a=n.getClientRects(),a.length===1)var c=1;else for(var h=c=0;h<a.length;h++){var b=a[h];0<b.width&&0<b.height&&c++}c===1&&(n=n.style,n.display=a.length===1?"inline-block":"block",n.marginTop="-"+i.paddingTop,n.marginBottom="-"+i.paddingBottom)}}function Nw(n,a){n=n.style,a=a.style;var i=a!=null?a.hasOwnProperty("viewTransitionName")?a.viewTransitionName:a.hasOwnProperty("view-transition-name")?a["view-transition-name"]:null:null;n.viewTransitionName=i==null||typeof i=="boolean"?"":(""+i).trim(),i=a!=null?a.hasOwnProperty("viewTransitionClass")?a.viewTransitionClass:a.hasOwnProperty("view-transition-class")?a["view-transition-class"]:null:null,n.viewTransitionClass=i==null||typeof i=="boolean"?"":(""+i).trim(),n.display==="inline-block"&&(a==null?n.display=n.margin="":(i=a.display,n.display=i==null||typeof i=="boolean"?"":i,i=a.margin,i!=null?n.margin=i:(i=a.hasOwnProperty("marginTop")?a.marginTop:a["margin-top"],n.marginTop=i==null||typeof i=="boolean"?"":i,a=a.hasOwnProperty("marginBottom")?a.marginBottom:a["margin-bottom"],n.marginBottom=a==null||typeof a=="boolean"?"":a)))}function N7(n,a,i){return i=i.ownerDocument.defaultView,{rect:n,abs:a.position==="absolute"||a.position==="fixed",clip:a.clipPath!=="none"||a.overflow!=="visible"||a.filter!=="none"||a.mask!=="none"||a.mask!=="none"||a.borderRadius!=="0px",view:0<=n.bottom&&0<=n.right&&n.top<=i.innerHeight&&n.left<=i.innerWidth}}function Im(n){var a=n.getBoundingClientRect(),i=getComputedStyle(n);return N7(a,i,n)}function z7(n){return n.documentElement.clientHeight}function L7(n){this.addEventListener("load",n),this.addEventListener("error",n)}function D7(n,a,i,c,h,b,$,z,V){var se=a.nodeType===9?a:a.ownerDocument;try{var ce=se.startViewTransition({update:function(){var ne=se.defaultView,le=ne.navigation&&ne.navigation.transition,Ae=se.fonts.status;c();var _e=[];if(Ae==="loaded"&&(z7(se),se.fonts.status==="loading"&&_e.push(se.fonts.ready)),Ae=_e.length,n!==null)for(var dt=n.suspenseyImages,re=0,J=0;J<dt.length;J++){var ie=dt[J];if(!ie.complete){var me=ie.getBoundingClientRect();if(0<me.bottom&&0<me.right&&me.top<ne.innerHeight&&me.left<ne.innerWidth){if(re+=Jw(ie),re>Bf){_e.length=Ae;break}ie=new Promise(L7.bind(ie)),_e.push(ie)}}}if(0<_e.length)return ne=Promise.race([Promise.all(_e),new Promise(function(Oe){return setTimeout(Oe,500)})]).then(h,h),(le?Promise.allSettled([le.finished,ne]):ne).then(b,b);if(h(),le)return le.finished.then(b,b);b()},types:i});se.__reactViewTransition=ce;var be=[];return ce.ready.then(function(){for(var ne=se.documentElement.getAnimations({subtree:!0}),le=0;le<ne.length;le++){var Ae=ne[le],_e=Ae.effect,dt=_e.pseudoElement;if(dt!=null&&dt.startsWith("::view-transition")){be.push(Ae),Ae=_e.getKeyframes();for(var re=dt=void 0,J=!0,ie=0;ie<Ae.length;ie++){var me=Ae[ie],Oe=me.width;if(dt===void 0)dt=Oe;else if(dt!==Oe){J=!1;break}if(Oe=me.height,re===void 0)re=Oe;else if(re!==Oe){J=!1;break}delete me.width,delete me.height,me.transform==="none"&&delete me.transform}J&&dt!==void 0&&re!==void 0&&(_e.setKeyframes(Ae),J=getComputedStyle(_e.target,_e.pseudoElement),J.width!==dt||J.height!==re)&&(J=Ae[0],J.width=dt,J.height=re,J=Ae[Ae.length-1],J.width=dt,J.height=re,_e.setKeyframes(Ae))}}$()},function(ne){se.__reactViewTransition===ce&&(se.__reactViewTransition=null);try{typeof ne=="object"&&ne!==null&&ne.name==="InvalidStateError"&&(ne.message==="View transition was skipped because document visibility state is hidden."||ne.message==="Skipping view transition because document visibility state has become hidden."||ne.message==="Skipping view transition because viewport size changed."||ne.message==="Transition was aborted because of invalid state")&&(ne=null),ne!==null&&V(ne)}finally{c(),h(),$()}}),ce.finished.finally(function(){for(var ne=0;ne<be.length;ne++)be[ne].cancel();se.__reactViewTransition===ce&&(se.__reactViewTransition=null),z()}),ce}catch{return c(),h(),$(),null}}function oi(n,a){this._scope=document.documentElement,this._selector="::view-transition-"+n+"("+a+")"}oi.prototype.animate=function(n,a){return a=typeof a=="number"?{duration:a}:D({},a),a.pseudoElement=this._selector,this._scope.animate(n,a)},oi.prototype.getAnimations=function(){for(var n=this._scope,a=this._selector,i=n.getAnimations({subtree:!0}),c=[],h=0;h<i.length;h++){var b=i[h].effect;b!==null&&b.target===n&&b.pseudoElement===a&&c.push(i[h])}return c},oi.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function zw(n){return{name:n,group:new oi("group",n),imagePair:new oi("image-pair",n),old:new oi("old",n),new:new oi("new",n)}}function Zr(n){this._fragmentFiber=n,this._observers=this._eventListeners=null}Zr.prototype.addEventListener=function(n,a,i){var c=null,h=null;if(!(i!=null&&typeof i!="boolean"&&(c=i.signal||null,c!==null&&c.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var b=this._eventListeners;if(Dw(b,n,a,i)===-1){var $=this,z=a;i!=null&&typeof i!="boolean"&&i.once===!0&&(z=function(V){$.removeEventListener(n,a,i),typeof a=="function"?a.call(this,V):a.handleEvent(V)}),c!==null&&(h=$.removeEventListener.bind($,n,a,i),c.addEventListener("abort",h,{once:!0}),h=c.removeEventListener.bind(c,"abort",h)),c=kl(i),b.push({type:n,listener:a,optionsOrUseCapture:i,attachedListener:z,cleanup:h}),m(this._fragmentFiber.child,!1,O7,n,z,c)}this._eventListeners=b}};function O7(n,a,i,c){return E(n).addEventListener(a,i,c),!1}Zr.prototype.removeEventListener=function(n,a,i){var c=this._eventListeners;if(c!==null&&(a=Dw(c,n,a,i),a!==-1)){var h=c[a];i=h.attachedListener;var b=h.cleanup;h=kl(h.optionsOrUseCapture),m(this._fragmentFiber.child,!1,I7,n,i,h),c.splice(a,1),b!==null&&b()}};function I7(n,a,i,c){return E(n).removeEventListener(a,i,c),!1}function kl(n){return n!=null&&typeof n!="boolean"&&(n.once===!0||n.signal instanceof AbortSignal)?{capture:n.capture,passive:n.passive}:n}function Lw(n){return n==null?"c=0":typeof n=="boolean"?"c="+(n?"1":"0"):"c="+(n.capture?"1":"0")}function Dw(n,a,i,c){if(n.length===0)return-1;c=Lw(c);for(var h=0;h<n.length;h++){var b=n[h];if(b.type===a&&b.listener===i&&Lw(b.optionsOrUseCapture)===c)return h}return-1}Zr.prototype.dispatchEvent=function(n){var a=k(this._fragmentFiber);if(a===null)return!0;a=E(a);var i=this._eventListeners;if(i!==null&&0<i.length||!n.bubbles){var c=a.nodeType===9?a.createComment(""):document.createTextNode("");if(i)for(var h=0;h<i.length;h++){var b=i[h];c.addEventListener(b.type,b.attachedListener,kl(b.optionsOrUseCapture))}if(a.appendChild(c),n=c.dispatchEvent(n),i)for(h=0;h<i.length;h++)b=i[h],c.removeEventListener(b.type,b.attachedListener,kl(b.optionsOrUseCapture));return a.removeChild(c),n}return a.dispatchEvent(n)},Zr.prototype.focus=function(n){m(this._fragmentFiber.child,!0,Ow,n,void 0,void 0)};function Ow(n,a){return n.tag===6?!1:(n=E(n),Y7(n,a))}Zr.prototype.focusLast=function(n){var a=[];m(this._fragmentFiber.child,!0,_m,a,void 0,void 0);for(var i=a.length-1;0<=i&&!Ow(a[i],n);i--);};function _m(n,a){return a.push(n),!1}Zr.prototype.blur=function(){var n=k(this._fragmentFiber);n!==null&&(n=E(n),n=iu(n).activeElement,n!==null&&m(this._fragmentFiber.child,!1,_7,n,void 0,void 0))};function _7(n,a){return n.tag===6?!1:(n=E(n),n===a||n.contains(a)?(a.blur(),!0):!1)}Zr.prototype.observeUsing=function(n){this._observers===null&&(this._observers=new Set),this._observers.add(n),m(this._fragmentFiber.child,!1,q7,n,void 0,void 0)};function q7(n,a){return n.tag===6||(n=E(n),a.observe(n)),!1}Zr.prototype.unobserveUsing=function(n){var a=this._observers;if(a!==null&&a.has(n)){a.delete(n),m(this._fragmentFiber.child,!1,P7,n,void 0,void 0);for(var i=a=0;i<Ia.length;i++){var c=Ia[i];c.fragmentInstance===this&&c.observer===n?n.unobserve(c.instance):Ia[a++]=c}Ia.length=a}};function P7(n,a){return n.tag===6||(n=E(n),a.unobserve(n)),!1}var Ia=[],qm=!1;function B7(n,a,i){Ia.push({fragmentInstance:n,observer:a,instance:i}),qm||(qm=!0,X7(function(){qm=!1;var c=Ia;Ia=[];for(var h=0;h<c.length;h++){var b=c[h];b.observer.unobserve(b.instance)}}))}Zr.prototype.getClientRects=function(){var n=[];return m(this._fragmentFiber.child,!1,H7,n,void 0,void 0),n};function H7(n,a){if(n.tag===6){n=n.stateNode;var i=n.ownerDocument.createRange();i.selectNodeContents(n),a.push.apply(a,i.getClientRects())}else n=E(n),a.push.apply(a,n.getClientRects());return!1}Zr.prototype.getRootNode=function(n){var a=k(this._fragmentFiber);return a===null?this:E(a).getRootNode(n)},Zr.prototype.compareDocumentPosition=function(n){var a=k(this._fragmentFiber);if(a===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var i=[];m(this._fragmentFiber.child,!1,_m,i,void 0,void 0);var c=E(a);if(i.length===0){if(i=c,v(this._fragmentFiber)){e:{for(a=this._fragmentFiber.return;a!==null;){if(a.tag===4){a=a.stateNode.containerInfo;break e}if(a.tag===3||a.tag===5||a.tag===27)break;a=a.return}a=null}a!=null&&(i=a)}a=this._fragmentFiber;var h=c=i.compareDocumentPosition(n);return i===n?h=Node.DOCUMENT_POSITION_CONTAINS:c&Node.DOCUMENT_POSITION_CONTAINED_BY&&(i=w(a)[1],i===null?h=Node.DOCUMENT_POSITION_PRECEDING:(n=E(i).compareDocumentPosition(n),h=n===0||n&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),h|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}a=E(i[0]),h=E(i[i.length-1]);var b=v(this._fragmentFiber)?a.parentElement:c;if(b==null)return Node.DOCUMENT_POSITION_DISCONNECTED;c=b.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY,b=b.compareDocumentPosition(h)&Node.DOCUMENT_POSITION_CONTAINED_BY;var $=a.compareDocumentPosition(n),z=h.compareDocumentPosition(n),V=$&Node.DOCUMENT_POSITION_CONTAINED_BY||z&Node.DOCUMENT_POSITION_CONTAINED_BY;return z=c&&b&&$&Node.DOCUMENT_POSITION_FOLLOWING&&z&Node.DOCUMENT_POSITION_PRECEDING,a=c&&a===n||b&&h===n||V||z?Node.DOCUMENT_POSITION_CONTAINED_BY:!c&&a===n||!b&&h===n?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:$,a&Node.DOCUMENT_POSITION_DISCONNECTED||a&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||F7(a,this._fragmentFiber,i[0],i[i.length-1],n)?a:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function F7(n,a,i,c,h){var b=dn(h);if(n&Node.DOCUMENT_POSITION_CONTAINED_BY){if(i=!!b)e:{for(;b!==null;){if(b.tag===7&&(b===a||b.alternate===a)){i=!0;break e}b=b.return}i=!1}return i}if(n&Node.DOCUMENT_POSITION_CONTAINS){if(b===null)return b=h.ownerDocument,h===b||h===b.documentElement||h===b.body;e:{for(b=a,a=k(a);b!==null;){if(!(b.tag!==5&&b.tag!==3&&b.tag!==27||b!==a&&b.alternate!==a)){b=!0;break e}b=b.return}b=!1}return b}return n&Node.DOCUMENT_POSITION_PRECEDING?((a=!!b)&&!(a=b===i)&&(a=L(i,b,N),a===null?a=!1:(m(a,!0,T,b,i),b=R,R=null,a=b!==null)),a):n&Node.DOCUMENT_POSITION_FOLLOWING?((a=!!b)&&!(a=b===c)&&(a=L(c,b,N),a===null?a=!1:(m(a,!0,A,b,c),b=R,C=R=null,a=b!==null)),a):!1}function Iw(n,a){var i=n.ownerDocument.createRange();i.selectNodeContents(n),n=i.getBoundingClientRect(),window.scrollTo(window.scrollX+n.left,a?window.scrollY+n.top:window.scrollY+n.bottom-window.innerHeight)}Zr.prototype.scrollIntoView=function(n){if(typeof n=="object")throw Error(s(566));var a=[];m(this._fragmentFiber.child,!1,_m,a,void 0,void 0);var i=n!==!1;if(a.length===0){var c=w(this._fragmentFiber);if(c=i?c[1]||c[0]||k(this._fragmentFiber):c[0]||c[1],c===null)return;if(c.tag===6){n=E(c),Iw(n,i);return}if(c=E(c),c.nodeType!==9){if(c.nodeType===11){i="host"in c?c.host:null,i!==null&&i.scrollIntoView(n);return}c.scrollIntoView(n)}}for(c=i?a.length-1:0;c!==(i?-1:a.length);){var h=a[c];h.tag===6?(h=E(h),Iw(h,i)):E(h).scrollIntoView(n),c+=i?-1:1}};function U7(n,a){return n=E(n),_w(n,a),!1}function _w(n,a){n.reactFragments==null&&(n.reactFragments=new Set),n.reactFragments.add(a)}function qw(n,a){var i=a._eventListeners;if(i!==null)for(var c=0;c<i.length;c++){var h=i[c];n.addEventListener(h.type,h.attachedListener,kl(h.optionsOrUseCapture))}n.nodeType!==3&&(i=a._observers,i!==null&&i.forEach(function(b){for(var $=0,z=0;z<Ia.length;z++){var V=Ia[z];(V.fragmentInstance!==a||V.observer!==b||V.instance!==n)&&(Ia[$++]=V)}Ia.length=$,b.observe(n)}),_w(n,a))}function V7(n,a){var i=a._eventListeners;if(i!==null)for(var c=0;c<i.length;c++){var h=i[c];n.removeEventListener(h.type,h.attachedListener,kl(h.optionsOrUseCapture))}n.nodeType!==3&&(i=a._observers,i!==null&&i.forEach(function(b){typeof b.rootMargin=="string"?B7(a,b,n):b.unobserve(n)}),n.reactFragments!=null&&n.reactFragments.delete(a))}function Pm(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var i=a;switch(a=a.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Pm(i),sn(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}n.removeChild(i)}}function G7(n,a,i,c){for(;n.nodeType===1;){var h=i;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!c&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(c){if(!n[Qn])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(b=n.getAttribute("rel"),b==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(b!==h.rel||n.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||n.getAttribute("title")!==(h.title==null?null:h.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(b=n.getAttribute("src"),(b!==(h.src==null?null:h.src)||n.getAttribute("type")!==(h.type==null?null:h.type)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&b&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var b=h.name==null?null:""+h.name;if(h.type==="hidden"&&n.getAttribute("name")===b)return n}else return n;if(n=xa(n.nextSibling),n===null)break}return null}function K7(n,a,i){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!i||(n=xa(n.nextSibling),n===null))return null;return n}function Pw(n,a){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!a||(n=xa(n.nextSibling),n===null))return null;return n}function Bm(n){return n.data==="$?"||n.data==="$~"}function Hm(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function W7(n,a){var i=n.ownerDocument;if(n.data==="$~")n._reactRetry=a;else if(n.data!=="$?"||i.readyState!=="loading")a();else{var c=function(){a(),i.removeEventListener("DOMContentLoaded",c)};i.addEventListener("DOMContentLoaded",c),n._reactRetry=c}}function xa(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return n}var Fm=null;function Bw(n){n=n.nextSibling;for(var a=0;n;){if(n.nodeType===8){var i=n.data;if(i==="/$"||i==="/&"){if(a===0)return xa(n.nextSibling);a--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||a++}n=n.nextSibling}return null}function Hw(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var i=n.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(a===0)return n;a--}else i!=="/$"&&i!=="/&"||a++}n=n.previousSibling}return null}function Y7(n,a){function i(){c=!0}if(n.ownerDocument.activeElement===n)return!0;var c=!1;try{n.ownerDocument.addEventListener("focus",i,!0),(n.focus||HTMLElement.prototype.focus).call(n,a)}finally{n.ownerDocument.removeEventListener("focus",i,!0)}return c}function X7(n){jw(function(){jw(function(a){return n(a)})})}function Fw(n,a,i){switch(a=iu(i),n){case"html":if(n=a.documentElement,!n)throw Error(s(452));return n;case"head":if(n=a.head,!n)throw Error(s(453));return n;case"body":if(n=a.body,!n)throw Error(s(454));return n;default:throw Error(s(451))}}function Uw(n,a,i){for(var c in i){var h=i[c];i.hasOwnProperty(c)&&h!=null&&Ot(n,a,c,null,$7,h)}i.dangerouslySetInnerHTML!=null&&(n.textContent=""),n.onclick===Ja&&(n.onclick=null),sn(n)}function Um(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);sn(n)}var ga=new Map,Vw=new Set;function lu(n){if(typeof n.getRootNode=="function"){var a=n.getRootNode();if(a.nodeType===9||a.nodeType===11)return a}return n.nodeType===9?n:n.ownerDocument}var Ls=he.d;he.d={f:Z7,r:Q7,D:J7,C:eM,L:tM,m:nM,X:aM,S:rM,M:sM};function Z7(){var n=Ls.f(),a=Nf();return n||a}function Q7(n){var a=Ln(n);a!==null&&a.tag===5&&a.type==="form"?Kv(a):Ls.r(n)}var vl=typeof document>"u"?null:document;function Gw(n,a,i){var c=vl;if(c&&typeof a=="string"&&a){var h=fr(a);h='link[rel="'+n+'"][href="'+h+'"]',typeof i=="string"&&(h+='[crossorigin="'+i+'"]'),Vw.has(h)||(Vw.add(h),n={rel:n,crossOrigin:i,href:a},c.querySelector(h)===null&&(a=c.createElement("link"),rr(a,"link",n),tt(a),c.head.appendChild(a)))}}function J7(n){Ls.D(n),Gw("dns-prefetch",n,null)}function eM(n,a){Ls.C(n,a),Gw("preconnect",n,a)}function tM(n,a,i){Ls.L(n,a,i);var c=vl;if(c&&n&&a){var h='link[rel="preload"][as="'+fr(a)+'"]';a==="image"&&i&&i.imageSrcSet?(h+='[imagesrcset="'+fr(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(h+='[imagesizes="'+fr(i.imageSizes)+'"]')):h+='[href="'+fr(n)+'"]';var b=h;switch(a){case"style":b=wl(n);break;case"script":b=Sl(n)}if(!(ga.has(b)||(n=D({rel:"preload",href:a==="image"&&i&&i.imageSrcSet?void 0:n,as:a},i),ga.set(b,n),c.querySelector(h)!==null||a==="style"&&c.querySelector(cu(b))||a==="script"&&c.querySelector(uu(b))))){var $=c.createElement("link");rr($,"link",n),a==="style"&&($[ot]=!0,$.onload=$.onerror=function(){sa($)}),tt($),c.head.appendChild($)}}}function nM(n,a){Ls.m(n,a);var i=vl;if(i&&n){var c=a&&typeof a.as=="string"?a.as:"script",h='link[rel="modulepreload"][as="'+fr(c)+'"][href="'+fr(n)+'"]',b=h;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=Sl(n)}if(!ga.has(b)&&(n=D({rel:"modulepreload",href:n},a),ga.set(b,n),i.querySelector(h)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(uu(b)))return}c=i.createElement("link"),rr(c,"link",n),tt(c),i.head.appendChild(c)}}}function rM(n,a,i){Ls.S(n,a,i);var c=vl;if(c&&n){var h=Ur(c).hoistableStyles,b=wl(n);a=a||"default";var $=h.get(b);if(!$){var z={loading:0,preload:null};if($=c.querySelector(cu(b)))z.loading=5;else{n=D({rel:"stylesheet",href:n,"data-precedence":a},i),(i=ga.get(b))&&Vm(n,i);var V=$=c.createElement("link");tt(V),rr(V,"link",n),V._p=new Promise(function(se,ce){V.onload=se,V.onerror=ce}),V.addEventListener("load",function(){z.loading|=1}),V.addEventListener("error",function(){z.loading|=2}),z.loading|=4,qf($,a,c)}$={type:"stylesheet",instance:$,count:1,state:z},h.set(b,$)}}}function aM(n,a){Ls.X(n,a);var i=vl;if(i&&n){var c=Ur(i).hoistableScripts,h=Sl(n),b=c.get(h);b||(b=i.querySelector(uu(h)),b||(n=D({src:n,async:!0},a),(a=ga.get(h))&&Gm(n,a),b=i.createElement("script"),tt(b),rr(b,"link",n),i.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},c.set(h,b))}}function sM(n,a){Ls.M(n,a);var i=vl;if(i&&n){var c=Ur(i).hoistableScripts,h=Sl(n),b=c.get(h);b||(b=i.querySelector(uu(h)),b||(n=D({src:n,async:!0,type:"module"},a),(a=ga.get(h))&&Gm(n,a),b=i.createElement("script"),tt(b),rr(b,"link",n),i.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},c.set(h,b))}}function Kw(n,a,i,c){var h=(h=et.current)?lu(h):null;if(!h)throw Error(s(446));switch(n){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(i=wl(i.href),a=Ur(h).hoistableStyles,c=a.get(i),c||(c={type:"style",instance:null,count:0,state:null},a.set(i,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){n=wl(i.href);var b=Ur(h).hoistableStyles,$=b.get(n);if($||(h=h.ownerDocument||h,$={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(n,$),(b=h.querySelector(cu(n)))?b._p||($.instance=b,$.state.loading=5):(b=ga.get(n),b||(b={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},ga.set(n,b)),oM(h,n,b,$.state))),a&&c===null)throw Error(s(528,""));return $}if(a&&c!==null)throw Error(s(529,""));return null;case"script":return a=i.async,i=i.src,typeof i=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(i=Sl(i),a=Ur(h).hoistableScripts,c=a.get(i),c||(c={type:"script",instance:null,count:0,state:null},a.set(i,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,n))}}function wl(n){return'href="'+fr(n)+'"'}function cu(n){return'link[rel="stylesheet"]['+n+"]"}function Ww(n){return D({},n,{"data-precedence":n.precedence,precedence:null})}function oM(n,a,i,c){if(a=n.querySelector('link[rel="preload"][as="style"]['+a+"]")){if(a[ot]!==!0){c.loading=1;return}}else a=n.createElement("link"),a[ot]=!0,a.onload=a.onerror=sa.bind(null,a),rr(a,"link",i),tt(a),n.head.appendChild(a);c.preload=a,a.addEventListener("load",function(){return c.loading|=1}),a.addEventListener("error",function(){return c.loading|=2})}function Sl(n){return'[src="'+fr(n)+'"]'}function uu(n){return"script[async]"+n}function Yw(n,a,i){if(a.count++,a.instance===null)switch(a.type){case"style":var c=n.querySelector('style[data-href~="'+fr(i.href)+'"]');if(c)return a.instance=c,tt(c),c;var h=D({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return c=(n.ownerDocument||n).createElement("style"),tt(c),rr(c,"style",h),qf(c,i.precedence,n),a.instance=c;case"stylesheet":h=wl(i.href);var b=n.querySelector(cu(h));if(b)return a.state.loading|=4,a.instance=b,tt(b),b;c=Ww(i),(h=ga.get(h))&&Vm(c,h),b=(n.ownerDocument||n).createElement("link"),tt(b);var $=b;return $._p=new Promise(function(z,V){$.onload=z,$.onerror=V}),rr(b,"link",c),a.state.loading|=4,qf(b,i.precedence,n),a.instance=b;case"script":return b=Sl(i.src),(h=n.querySelector(uu(b)))?(a.instance=h,tt(h),h):(c=i,(h=ga.get(b))&&(c=D({},i),Gm(c,h)),n=n.ownerDocument||n,h=n.createElement("script"),tt(h),rr(h,"link",c),n.head.appendChild(h),a.instance=h);case"void":return null;default:throw Error(s(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(c=a.instance,a.state.loading|=4,qf(c,i.precedence,n));return a.instance}function qf(n,a,i){for(var c=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=c.length?c[c.length-1]:null,b=h,$=0;$<c.length;$++){var z=c[$];if(z.dataset.precedence===a)b=z;else if(b!==h)break}b?b.parentNode.insertBefore(n,b.nextSibling):(a=i.nodeType===9?i.head:i,a.insertBefore(n,a.firstChild))}function Vm(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function Gm(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var Pf=null;function Xw(n,a,i){if(Pf===null){var c=new Map,h=Pf=new Map;h.set(i,c)}else h=Pf,c=h.get(i),c||(c=new Map,h.set(i,c));if(c.has(n))return c;for(c.set(n,null),i=i.getElementsByTagName(n),h=0;h<i.length;h++){var b=i[h];if(!(b[Qn]||b[Bt]||n==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var $=b.getAttribute(a)||"";$=n+$;var z=c.get($);z?z.push(b):c.set($,[b])}}return c}function Km(n,a,i){n=n.ownerDocument||n,n.head.insertBefore(i,a==="title"?n.querySelector("head > title"):null)}function iM(n,a,i){if(i===1||a.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(n=a.disabled,typeof a.precedence=="string"&&n==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Zw(n,a){return n==="img"&&a.src!=null&&a.src!==""&&a.onLoad==null&&a.loading!=="lazy"}function Qw(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function Jw(n){return(n.width||100)*(n.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function eS(n,a){typeof a.decode=="function"&&(n.imgCount++,a.complete||(n.imgBytes+=Jw(a),n.suspenseyImages.push(a)),n=uM.bind(n),a.decode().then(n,n))}function lM(n,a,i,c){if(i.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var h=wl(c.href),b=a.querySelector(cu(h));if(b){a=b._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(n.count++,n=du.bind(n),a.then(n,n)),i.state.loading|=4,i.instance=b,tt(b);return}b=a.ownerDocument||a,c=Ww(c),(h=ga.get(h))&&Vm(c,h),b=b.createElement("link"),tt(b);var $=b;$._p=new Promise(function(z,V){$.onload=z,$.onerror=V}),rr(b,"link",c),i.instance=b}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(i,a),(a=i.state.preload)&&(i.state.loading&3)===0&&(n.count++,i=du.bind(n),a.addEventListener("load",i),a.addEventListener("error",i))}}var Bf=0;function cM(n,a){return n.stylesheets&&n.count===0&&Ff(n,n.stylesheets),0<n.count||0<n.imgCount?function(i){var c=setTimeout(function(){if(n.stylesheets&&Ff(n,n.stylesheets),n.unsuspend){var b=n.unsuspend;n.unsuspend=null,b()}},6e4+a);0<n.imgBytes&&Bf===0&&(Bf=62500*C7());var h=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Ff(n,n.stylesheets),n.unsuspend)){var b=n.unsuspend;n.unsuspend=null,b()}},(n.imgBytes>Bf?50:800)+a);return n.unsuspend=i,function(){n.unsuspend=null,clearTimeout(c),clearTimeout(h)}}:null}function tS(n){if(n.count===0&&(n.imgCount===0||!n.waitingForImages)){if(n.stylesheets)Ff(n,n.stylesheets);else if(n.unsuspend){var a=n.unsuspend;n.unsuspend=null,a()}}}function du(){this.count--,tS(this)}function uM(){this.imgCount--,tS(this)}var Hf=null;function Ff(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Hf=new Map,a.forEach(dM,n),Hf=null,du.call(n))}function dM(n,a){if(!(a.state.loading&4)){var i=Hf.get(n);if(i)var c=i.get(null);else{i=new Map,Hf.set(n,i);for(var h=n.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<h.length;b++){var $=h[b];($.nodeName==="LINK"||$.getAttribute("media")!=="not all")&&(i.set($.dataset.precedence,$),c=$)}c&&i.set(null,c)}h=a.instance,$=h.getAttribute("data-precedence"),b=i.get($)||c,b===c&&i.set(null,h),i.set($,h),this.count++,c=du.bind(this),h.addEventListener("load",c),h.addEventListener("error",c),b?b.parentNode.insertBefore(h,b.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(h,n.firstChild)),a.state.loading|=4}}var El={$$typeof:U,Provider:null,Consumer:null,_currentValue:Re,_currentValue2:Re,_threadCount:0};function fM(n,a,i,c,h,b,$,z,V){this.tag=1,this.containerInfo=n,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=Ze(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ze(0),this.hiddenUpdates=Ze(null),this.identifierPrefix=c,this.onUncaughtError=h,this.onCaughtError=b,this.onRecoverableError=$,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=V,this.transitionTypes=null,this.incompleteTransitions=new Map}function nS(n,a,i,c,h,b,$,z,V,se,ce,be){return n=new fM(n,a,i,$,V,se,ce,be,z),a=1,b===!0&&(a|=24),b=Cr(3,null,null,a),n.current=b,b.stateNode=n,a=lg(),a.refCount++,n.pooledCache=a,a.refCount++,b.memoizedState={element:c,isDehydrated:i,cache:a},fg(b),n}function rS(n){return n?(n=Xi,n):Xi}function aS(n,a,i,c,h,b){h=rS(h),c.context===null?c.context=h:c.pendingContext=h,c=no(a),c.payload={element:i},b=b===void 0?null:b,b!==null&&(c.callback=b),i=ro(n,c,a),i!==null&&(Mr(i,n,a),Hc(i,n,a))}function sS(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var i=n.retryLane;n.retryLane=i!==0&&i<a?i:a}}function Wm(n,a){sS(n,a),(n=n.alternate)&&sS(n,a)}function oS(n){if(n.tag===13||n.tag===31){var a=Fo(n,67108864);a!==null&&Mr(a,n,67108864),Wm(n,67108864)}}function iS(n){if(n.tag===13||n.tag===31){var a=Xr();a=bt(a);var i=Fo(n,a);i!==null&&Mr(i,n,a),Wm(n,a)}}var $l=!0;function hM(n,a,i,c){var h=te.T;te.T=null;var b=he.p;try{he.p=2,Ym(n,a,i,c)}finally{he.p=b,te.T=h}}function pM(n,a,i,c){var h=te.T;te.T=null;var b=he.p;try{he.p=8,Ym(n,a,i,c)}finally{he.p=b,te.T=h}}function Ym(n,a,i,c){if($l){var h=Xm(c);if(h===null)Am(n,a,c,Uf,i),cS(n,c);else if(gM(h,n,a,i,c))c.stopPropagation();else if(cS(n,c),a&4&&-1<xM.indexOf(n)){for(;h!==null;){var b=Ln(h);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var $=Ie(b.pendingLanes);if($!==0){var z=b;for(z.pendingLanes|=2,z.entangledLanes|=2;$;){var V=1<<31-Mn($);z.entanglements[1]|=V,$&=~V}cs(b),(Mt&6)===0&&(Rf=Ye()+500,au(0))}}break;case 31:case 13:z=Fo(b,2),z!==null&&Mr(z,b,2),Nf(),Wm(b,2)}if(b=Xm(c),b===null&&Am(n,a,c,Uf,i),b===h)break;h=b}h!==null&&c.stopPropagation()}else Am(n,a,c,null,i)}}function Xm(n){return n=Dx(n),Zm(n)}var Uf=null;function Zm(n){if(Uf=null,n=dn(n),n!==null){var a=l(n);if(a===null)n=null;else{var i=a.tag;if(i===13){if(n=u(a),n!==null)return n;n=null}else if(i===31){if(n=f(a),n!==null)return n;n=null}else if(i===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return Uf=n,null}function lS(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Le()){case Jt:return 2;case un:return 8;case an:case cr:return 32;case Qa:return 268435456;default:return 32}default:return 32}}var Qm=!1,go=null,mo=null,yo=null,fu=new Map,hu=new Map,bo=[],xM="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 cS(n,a){switch(n){case"focusin":case"focusout":go=null;break;case"dragenter":case"dragleave":mo=null;break;case"mouseover":case"mouseout":yo=null;break;case"pointerover":case"pointerout":fu.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":hu.delete(a.pointerId)}}function pu(n,a,i,c,h,b){return n===null||n.nativeEvent!==b?(n={blockedOn:a,domEventName:i,eventSystemFlags:c,nativeEvent:b,targetContainers:[h]},a!==null&&(a=Ln(a),a!==null&&oS(a)),n):(n.eventSystemFlags|=c,a=n.targetContainers,h!==null&&a.indexOf(h)===-1&&a.push(h),n)}function gM(n,a,i,c,h){switch(a){case"focusin":return go=pu(go,n,a,i,c,h),!0;case"dragenter":return mo=pu(mo,n,a,i,c,h),!0;case"mouseover":return yo=pu(yo,n,a,i,c,h),!0;case"pointerover":var b=h.pointerId;return fu.set(b,pu(fu.get(b)||null,n,a,i,c,h)),!0;case"gotpointercapture":return b=h.pointerId,hu.set(b,pu(hu.get(b)||null,n,a,i,c,h)),!0}return!1}function uS(n){var a=dn(n.target);if(a!==null){var i=l(a);if(i!==null){if(a=i.tag,a===13){if(a=u(i),a!==null){n.blockedOn=a,Ra(n.priority,function(){iS(i)});return}}else if(a===31){if(a=f(i),a!==null){n.blockedOn=a,Ra(n.priority,function(){iS(i)});return}}else if(a===3&&i.stateNode.current.memoizedState.isDehydrated){n.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Vf(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var i=Xm(n.nativeEvent);if(i===null){i=n.nativeEvent;var c=new i.constructor(i.type,i);Lx=c,i.target.dispatchEvent(c),Lx=null}else return a=Ln(i),a!==null&&oS(a),n.blockedOn=i,!1;a.shift()}return!0}function dS(n,a,i){Vf(n)&&i.delete(a)}function mM(){Qm=!1,go!==null&&Vf(go)&&(go=null),mo!==null&&Vf(mo)&&(mo=null),yo!==null&&Vf(yo)&&(yo=null),fu.forEach(dS),hu.forEach(dS)}function Gf(n,a){n.blockedOn===a&&(n.blockedOn=null,Qm||(Qm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,mM)))}var Kf=null;function fS(n){Kf!==n&&(Kf=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Kf===n&&(Kf=null);for(var a=0;a<n.length;a+=3){var i=n[a],c=n[a+1],h=n[a+2];if(typeof c!="function"){if(Zm(c||i)===null)continue;break}var b=Ln(i);b!==null&&(n.splice(a,3),a-=3,zg(b,{pending:!0,data:h,method:i.method,action:c},c,h))}}))}function Tl(n){function a(V){return Gf(V,n)}go!==null&&Gf(go,n),mo!==null&&Gf(mo,n),yo!==null&&Gf(yo,n),fu.forEach(a),hu.forEach(a);for(var i=0;i<bo.length;i++){var c=bo[i];c.blockedOn===n&&(c.blockedOn=null)}for(;0<bo.length&&(i=bo[0],i.blockedOn===null);)uS(i),i.blockedOn===null&&bo.shift();if(i=(n.ownerDocument||n).$$reactFormReplay,i!=null)for(c=0;c<i.length;c+=3){var h=i[c],b=i[c+1],$=h[Yt]||null;if(typeof b=="function")$||fS(i);else if($){var z=null;if(b&&b.hasAttribute("formAction")){if(h=b,$=b[Yt]||null)z=$.formAction;else if(Zm(h)!==null)continue}else z=$.action;typeof z=="function"?i[c+1]=z:(i.splice(c,3),c-=3),fS(i)}}}function hS(){function n(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function($){return h=$})},focusReset:"manual",scroll:"manual"})}function a(){h!==null&&(h(),h=null),c||setTimeout(i,20)}function i(){if(!c&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,h=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(i,100),function(){c=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),h!==null&&(h(),h=null)}}}function Jm(n){this._internalRoot=n}Wf.prototype.render=Jm.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(s(409));var i=a.current,c=Xr();aS(i,c,n,a,null,null)},Wf.prototype.unmount=Jm.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;aS(n.current,2,null,n,null,null),Nf(),a[wn]=null}};function Wf(n){this._internalRoot=n}Wf.prototype.unstable_scheduleHydration=function(n){if(n){var a=zn();n={blockedOn:null,target:n,priority:a};for(var i=0;i<bo.length&&a!==0&&a<bo[i].priority;i++);bo.splice(i,0,n),i===0&&uS(n)}};var pS=t.version;if(pS!=="19.3.1")throw Error(s(527,pS,"19.3.1"));he.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(s(188)):(n=Object.keys(n).join(","),Error(s(268,n)));return n=p(a),n=n!==null?y(n):null,n=n===null?null:n.stateNode,n};var yM={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:te,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yf.isDisabled&&Yf.supportsFiber)try{Xn=Yf.inject(yM),Gt=Yf}catch{}}return gu.createRoot=function(n,a){if(!o(n))throw Error(s(299));var i=!1,c="",h=r2,b=a2,$=s2;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(h=a.onUncaughtError),a.onCaughtError!==void 0&&(b=a.onCaughtError),a.onRecoverableError!==void 0&&($=a.onRecoverableError)),a=nS(n,1,!1,null,null,i,c,null,h,b,$,hS),n[wn]=a.current,Rm(n),new Jm(a)},gu.hydrateRoot=function(n,a,i){if(!o(n))throw Error(s(299));var c=!1,h="",b=r2,$=a2,z=s2,V=null;return i!=null&&(i.unstable_strictMode===!0&&(c=!0),i.identifierPrefix!==void 0&&(h=i.identifierPrefix),i.onUncaughtError!==void 0&&(b=i.onUncaughtError),i.onCaughtError!==void 0&&($=i.onCaughtError),i.onRecoverableError!==void 0&&(z=i.onRecoverableError),i.formState!==void 0&&(V=i.formState)),a=nS(n,1,!0,a,i??null,c,h,V,b,$,z,hS),a.context=rS(null),i=a.current,c=Xr(),c=bt(c),h=no(c),h.callback=null,ro(i,h,c),i=c,a.current.lanes=i,Fe(a,i),cs(a),n[wn]=a.current,Rm(n),new Wf(a)},gu.version="19.3.1",gu}var ES;function AM(){if(ES)return ny.exports;ES=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),ny.exports=RM(),ny.exports}var p3=AM();const x3=g.createContext(void 0),qr=e=>{const t=g.useContext(x3);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},MM=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(x3.Provider,{value:e,children:t})),NM={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)};var zM=class{#e=NM;#t=!1;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)}};const pi=new zM;function LM(e){setTimeout(e,0)}const DM=typeof window>"u"||"Deno"in globalThis;function wr(){}function OM(e,t){return typeof e=="function"?e(t):e}function g3(e){return typeof e=="number"&&e>=0&&e!==1/0}function m3(e,t){return Math.max(e+(t||0)-Date.now(),0)}function nn(e,t){return typeof e=="function"?e(t):e}function $S(e,t){const{type:r="all",exact:s,fetchStatus:o,predicate:l,queryKey:u,stale:f}=e;if(u){if(s){if(t.queryHash!==mb(u,t.options))return!1}else if(!tc(t.queryKey,u))return!1}if(r!=="all"){const d=t.isActive();if(r==="active"&&!d||r==="inactive"&&d)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||o&&o!==t.state.fetchStatus||l&&!l(t))}function TS(e,t){const{exact:r,status:s,predicate:o,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(r){if(Si(t.options.mutationKey)!==Si(l))return!1}else if(!tc(t.options.mutationKey,l))return!1}return!(s&&t.state.status!==s||o&&!o(t))}function mb(e,t){return(t?.queryKeyHashFn||Si)(e)}function Si(e){return JSON.stringify(e,(t,r)=>x1(r)?Object.keys(r).sort().reduce((s,o)=>(s[o]=r[o],s),{}):r)}function tc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let s=0;s<t.length;s++)if(!tc(e[s],t[s]))return!1;return!0}const r=Object.keys(t);for(const s of r)if(!tc(e[s],t[s]))return!1;return!0}return!1}const IM=Object.prototype.hasOwnProperty;function y3(e,t,r=0){if(e===t)return e;if(r>500)return t;const s=CS(e)&&CS(t);if(!s&&!(x1(e)&&x1(t)))return t;const o=(s?e:Object.keys(e)).length,l=s?t:Object.keys(t),u=l.length,f=s?new Array(u):{};let d=0;for(let p=0;p<u;p++){const y=s?p:l[p],m=e[y],k=t[y];if(m===k){f[y]=m,(s?p<o:IM.call(e,y))&&d++;continue}if(m===null||k===null||typeof m!="object"||typeof k!="object"){f[y]=k;continue}const v=y3(m,k,r+1);f[y]=v,v===m&&d++}return o===u&&d===o?e:f}function zh(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function CS(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function x1(e){if(!jS(e))return!1;const t=Object.getPrototypeOf(e),r=t?.constructor;if(r===void 0)return!0;if(typeof r!="function")return!1;const s=r.prototype;return!(!jS(s)||!s.hasOwnProperty("isPrototypeOf")||t!==Object.prototype)}function jS(e){return Object.prototype.toString.call(e)==="[object Object]"}function _M(e){return new Promise(t=>{pi.setTimeout(t,e)})}function g1(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?y3(e,t):t}function qM(e,t,r=0){const s=[...e,t];return r&&s.length>r?s.slice(1):s}function PM(e,t,r=0){const s=[t,...e];return r&&s.length>r?s.slice(0,-1):s}const yb=Symbol();function b3(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===yb?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function bb(e,t){return typeof e=="function"?e(...t):!!e}function BM(e,t,r){let s=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??=t(),s||(s=!0,o.aborted?r():o.addEventListener("abort",r,{once:!0})),o)}),e}let HM=()=>DM;const kb=()=>HM();var gc=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(){}},FM=class extends gc{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const 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(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}};const vb=new FM,UM=LM;function VM(){let e=[],t=0,r=f=>{f()},s=f=>{f()},o=UM;const l=f=>{t?e.push(f):o(()=>{r(f)})},u=()=>{const f=e;e=[],f.length&&o(()=>{s(()=>{f.forEach(d=>{r(d)})})})};return{batch:f=>{let d;t++;try{d=f()}finally{t--,t||u()}return d},batchCalls:f=>(...d)=>{l(()=>{f(...d)})},schedule:l,setNotifyFunction:f=>{r=f},setBatchNotifyFunction:f=>{s=f},setScheduler:f=>{o=f}}}const _n=VM();var GM=class extends gc{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}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}};const Xh=new GM;function KM(e){return Math.min(1e3*2**e,3e4)}function k3(e){return(e??"online")==="online"?Xh.isOnline():!0}var m1=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function v3(e){let t=!1,r=0,s,o="pending",l,u;const f=new Promise((C,T)=>{l=C,u=T});f.catch(wr);const d=()=>o!=="pending",p=C=>{if(!d()){const T=new m1(C);S(T),e.onCancel?.(T)}},y=()=>{t=!0},m=()=>{t=!1},k=()=>vb.isFocused()&&(e.networkMode==="always"||Xh.isOnline())&&e.canRun(),v=()=>k3(e.networkMode)&&e.canRun(),w=C=>{d()||(s?.(),o="resolved",l(C))},S=C=>{d()||(s?.(),o="rejected",u(C))},E=C=>new Promise(T=>{s=A=>{(d()||C())&&T(A)},e.onPause?.()}).then(()=>{s=void 0,d()||e.onContinue?.()}),R=()=>{if(d())return;let C;const T=r===0?e.initialPromise:void 0;try{C=T??e.fn()}catch(A){C=Promise.reject(A)}Promise.resolve(C).then(w).catch(A=>{if(d())return;const N=e.retry??(kb()?0:3),L=e.retryDelay??KM,D=typeof L=="function"?L(r,A):L,j=N===!0||typeof N=="number"&&r<N||typeof N=="function"&&N(r,A);if(t||!j){S(A);return}r++,e.onFail?.(r,A),_M(D).then(()=>k()?void 0:E(k)).then(()=>{t?S(A):R()})})};return{promise:f,status:()=>o,cancel:p,continue:()=>(s?.(),f),cancelRetry:y,continueRetry:m,canStart:v,start:()=>(v()?R():E(v).then(R),f)}}var w3=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),g3(this.gcTime)&&(this.#e=pi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(kb()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(pi.clearTimeout(this.#e),this.#e=void 0)}};function WM(e){return{onFetch:(t,r)=>{const s=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,l=t.state.data?.pages||[],u=t.state.data?.pageParams||[];let f={pages:[],pageParams:[]},d=0;const p=async()=>{let y=!1;const m=w=>{BM(w,()=>t.signal,()=>y=!0)},k=b3(t.options,t.fetchOptions),v=async(w,S,E)=>{if(y)return Promise.reject(t.signal.reason);if(S==null&&w.pages.length)return Promise.resolve(w);const C=(()=>{const L={client:t.client,queryKey:t.queryKey,pageParam:S,direction:E?"backward":"forward",meta:t.options.meta};return m(L),L})(),T=await k(C),{maxPages:A}=t.options,N=E?PM:qM;return{pages:N(w.pages,T,A),pageParams:N(w.pageParams,S,A)}};if(o&&l.length){const w=o==="backward",S=w?YM:RS,E={pages:l,pageParams:u};f=await v(E,S(s,E),w)}else{const w=e??l.length;do{const S=d===0?u[0]===void 0?s.initialPageParam:u[0]:RS(s,f);if(d>0&&S==null)break;f=await v(f,S),d++}while(d<w)}return f};t.options.persister?t.fetchFn=()=>t.options.persister?.(p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=p}}}function RS(e,{pages:t,pageParams:r}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,r[s],r):void 0}function YM(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var XM=class extends w3{#e;#t;#n;#r;#s;#a;#o;#l;constructor(e){super(),this.#l=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#r=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=MS(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){const t=MS(this.options);t.data!==void 0&&(this.setState(AS(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const r=g1(this.state.data,e,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e){this.#i({type:"setState",state:e})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(wr).catch(wr):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=>nn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===yb||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>nn(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:!m3(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){const t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(this.#a&&(this.#l||this.state.fetchStatus==="paused"&&this.state.status==="pending"?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({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){const d=this.observers.find(p=>p.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,s=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#l=!0,r.signal)})},o=()=>{const d=b3(this.options,t),y=(()=>{const m={client:this.#s,queryKey:this.queryKey,meta:this.meta};return s(m),m})();return this.#l=!1,this.options.persister?this.options.persister(d,y,this):d(y)},u=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:o};return s(d),d})();(this.#e==="infinite"?WM(this.options.pages):this.options.behavior)?.onFetch(u,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#i({type:"fetch",meta:u.fetchOptions?.meta});const f=this.#a=v3({initialPromise:t?.initialPromise,fn:u.fetchFn,onCancel:d=>{d instanceof m1&&d.revert&&this.setState({...this.#n,fetchStatus:"idle"}),r.abort()},onFail:(d,p)=>{this.#i({type:"failed",failureCount:d,error:p})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{const d=await f.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#r.config.onSuccess?.(d,this),this.#r.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof m1){if(d.silent)return this.#a.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#i({type:"error",error:d}),this.#r.config.onError?.(d,this),this.#r.config.onSettled?.(this.state.data,d,this),d}finally{this.#a===f&&(this.#a=void 0),this.scheduleGc()}}#i(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...S3(r.data,this.options),fetchMeta:e.meta??null};case"success":const s={...r,...AS(e.data,e.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?s:void 0,s;case"error":const o=e.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),_n.batch(()=>{this.observers.slice().forEach(r=>{r.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function S3(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:k3(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function AS(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function MS(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,s=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var ZM=class extends gc{#e;#t=void 0;#n=void 0;#r=void 0;#s;#a;#o;#l;#i;#h;#u;#d;#c;#p=new Set;constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),NS(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return y1(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return y1(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#k(),this.#v(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,r=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 nn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#t.setOptions(this.options),t._defaulted&&!zh(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&zS(this.#t,r,this.options,t)&&this.#f(),this.updateResult(),s&&(this.#t!==r||nn(this.options.enabled,this.#t)!==nn(t.enabled,this.#t)||nn(this.options.staleTime,this.#t)!==nn(t.staleTime,this.#t))&&this.#g();const o=this.#m();s&&(this.#t!==r||nn(this.options.enabled,this.#t)!==nn(t.enabled,this.#t)||o!==this.#c)&&this.#y(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(t,e);return zh(this.getCurrentResult(),r)||(this.#r=r,this.#a=this.options,this.#s=this.#t.state),r}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(r,s)=>(this.trackProp(s),t?.(s),Reflect.get(r,s))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);let s=()=>{},o;const l=new Promise(u=>{o=u,s=this.#e.getQueryCache().subscribe(f=>{f.type==="updated"&&f.query.queryHash===r.queryHash&&r.state.data!==void 0&&(s(),u(this.createResult(r,t)))})});return Promise.race([r.fetch(t).then(()=>{const u=this.createResult(r,t);return o?.(u),u}).finally(()=>{s()}),l])}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#f(e){this.#w();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(wr)),t}#x(e){return!kb()&&nn(this.options.enabled,this.#t)!==!1&&g3(e)}#g(){this.#k();const e=nn(this.options.staleTime,this.#t);if(this.#r.isStale||!this.#x(e))return;const t=m3(this.#r.dataUpdatedAt,e)+1;this.#u=pi.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#m(){return nn(this.options.refetchInterval,this.#t)??!1}#y(e){this.#v(),this.#c=e,!(this.#c===0||!this.#x(this.#c))&&(this.#d=pi.setInterval(()=>{(this.options.refetchIntervalInBackground||vb.isFocused())&&this.#f()},this.#c))}#b(){this.#g(),this.#y(this.#m())}#k(){this.#u!==void 0&&(pi.clearTimeout(this.#u),this.#u=void 0)}#v(){this.#d!==void 0&&(pi.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){const r=this.#t,s=this.options,o=this.#r,l=this.#s,u=this.#a,f=e!==r?e.state:this.#n,{state:d}=e;let p={...d},y=!1,m;if(t._optimisticResults){const N=this.hasListeners(),L=!N&&NS(e,t),D=N&&zS(e,r,t,s);(L||D)&&(p={...p,...S3(d.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:k,errorUpdatedAt:v,status:w}=p;m=p.data;let S=!1;if(t.placeholderData!==void 0&&m===void 0&&w==="pending"){let N;o?.isPlaceholderData&&t.placeholderData===u?.placeholderData?(N=o.data,S=!0):N=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,N!==void 0&&(w="success",m=g1(o?.data,N,t),y=!0)}if(t.select&&m!==void 0&&!S)if(o&&m===l?.data&&t.select===this.#l)m=this.#i;else try{this.#l=t.select,m=t.select(m),m=g1(o?.data,m,t),this.#i=m,this.#o=null}catch(N){this.#o=N}else m===void 0&&(this.#o=null);this.#o&&(k=this.#o,m=this.#i,v=Date.now(),w="error",y=!1);const E=p.fetchStatus==="fetching",R=w==="pending",C=w==="error",T=R&&E,A=m!==void 0;return{status:w,fetchStatus:p.fetchStatus,isPending:R,isSuccess:w==="success",isError:C,isInitialLoading:T,isLoading:T,data:m,dataUpdatedAt:p.dataUpdatedAt,error:k,errorUpdatedAt:v,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:p.dataUpdateCount>f.dataUpdateCount||p.errorUpdateCount>f.errorUpdateCount,isFetching:E,isRefetching:E&&!R,isLoadingError:C&&!A,isPaused:p.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:C&&A,isStale:wb(e,t),refetch:this.refetch,isEnabled:nn(t.enabled,e)!==!1}}updateResult(){const e=this.#r,t=this.createResult(this.#t,this.options);if(this.#s=this.#t.state,this.#a=this.options,this.#s.data!==void 0&&(this.#h=this.#t),zh(t,e))return;this.#r=t;const s=(()=>{if(!e)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!this.#p.size)return!0;const u=new Set(l??this.#p);return this.options.throwOnError&&u.add("error"),Object.keys(this.#r).some(f=>{const d=f;return this.#r[d]!==e[d]&&u.has(d)})})();_n.batch(()=>{s&&this.listeners.forEach(o=>{o(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}#w(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}};function QM(e,t){return nn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&nn(t.retryOnMount,e)===!1)}function NS(e,t){return QM(e,t)||e.state.data!==void 0&&y1(e,t,t.refetchOnMount)}function y1(e,t,r){if(nn(t.enabled,e)!==!1&&nn(t.staleTime,e)!=="static"){const s=nn(r,e);return s==="always"||s!==!1&&wb(e,t)}return!1}function zS(e,t,r,s){return(e!==t||nn(s.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&wb(e,r)}function wb(e,t){return nn(t.enabled,e)!==!1&&e.isStaleByTime(nn(t.staleTime,e))}var JM=class extends w3{#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||E3(),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.state.status==="pending"?this.execute(this.state.variables):Promise.resolve())}async execute(e){const t=()=>{this.#s({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},s=this.#r=v3({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(u,f)=>{this.#s({type:"failed",failureCount:u,error:f})},onPause:()=>{this.#s({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)}),o=this.state.status==="pending",l=!s.canStart();try{if(o)t();else{this.#s({type:"pending",variables:e,isPaused:l}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,r);const f=await this.options.onMutate?.(e,r);f!==this.state.context&&this.#s({type:"pending",context:f,variables:e,isPaused:l})}const u=await s.start();return await this.#n.config.onSuccess?.(u,e,this.state.context,this,r),await this.options.onSuccess?.(u,e,this.state.context,r),await this.#n.config.onSettled?.(u,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(u,null,e,this.state.context,r),this.#s({type:"success",data:u}),u}catch(u){try{await this.#n.config.onError?.(u,e,this.state.context,this,r)}catch(f){Promise.reject(f)}try{await this.options.onError?.(u,e,this.state.context,r)}catch(f){Promise.reject(f)}try{await this.#n.config.onSettled?.(void 0,u,this.state.variables,this.state.context,this,r)}catch(f){Promise.reject(f)}try{await this.options.onSettled?.(void 0,u,e,this.state.context,r)}catch(f){Promise.reject(f)}throw this.#s({type:"error",error:u}),u}finally{this.#r===s&&(this.#r=void 0),this.#n.runNext(this)}}#s(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,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{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),_n.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function E3(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var e8=class extends gc{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,r){const s=new JM({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:r});return this.add(s),s}add(e){this.#e.add(e);const t=Xf(e);if(typeof t=="string"){const r=this.#t.get(t);r?r.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Xf(e);if(typeof t=="string"){const r=this.#t.get(t);if(r)if(r.length>1){const s=r.indexOf(e);s!==-1&&r.splice(s,1)}else r[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Xf(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(s=>s.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Xf(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){_n.batch(()=>{const e=this.getAll();this.#e.clear(),this.#t.clear(),e.forEach(t=>{this.notify({type:"removed",mutation:t})})})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(r=>TS(t,r))}findAll(e={}){return this.getAll().filter(t=>TS(e,t))}notify(e){_n.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return _n.batch(()=>Promise.all(e.map(t=>t.continue().catch(wr))))}};function Xf(e){return e.options.scope?.id}var t8=class extends gc{#e;#t=void 0;#n;#r;constructor(t,r){super(),this.#e=t,this.setOptions(r),this.bindMethods(),this.#s()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const r=this.options;this.options=this.#e.defaultMutationOptions(t),zh(this.options,r)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),r?.mutationKey&&this.options.mutationKey&&Si(r.mutationKey)!==Si(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onSubscribe(){this.listeners.size===1&&this.#n&&(this.#n.addObserver(this),this.#s())}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#s(),this.#a(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#s(),this.#a()}mutate(t,r){return this.#r=r,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#s(){const t=this.#n?.state??E3();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#a(t){_n.batch(()=>{const r=this.#r;if(r&&this.hasListeners()){const s=this.#t.variables,o=this.#t.context,l={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{r.onSuccess?.(t.data,s,o,l)}catch(u){Promise.reject(u)}try{r.onSettled?.(t.data,null,s,o,l)}catch(u){Promise.reject(u)}}else if(t?.type==="error"){try{r.onError?.(t.error,s,o,l)}catch(u){Promise.reject(u)}try{r.onSettled?.(void 0,t.error,s,o,l)}catch(u){Promise.reject(u)}}}this.listeners.forEach(s=>{s(this.#t)})})}},n8=class extends gc{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,r){const s=t.queryKey,o=t.queryHash??mb(s,t);let l=this.get(o);return l||(l=new XM({client:e,queryKey:s,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(l)),l}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){this.#e.get(e.queryHash)===e&&(e.destroy(),this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){_n.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>$S(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>$S(e,r)):t}notify(e){_n.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){_n.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){_n.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},r8=class{#e;#t;#n;#r;#s;#a;#o;#l;constructor(e={}){this.#e=e.queryCache||new n8,this.#t=e.mutationCache||new e8,this.#n=e.defaultOptions||{},this.#r=new Map,this.#s=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=vb.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#l=Xh.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#l?.(),this.#l=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#e.build(this,t),s=r.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(nn(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:r})=>[t,r.data])}setQueryData(e,t,r){const s=this.defaultQueryOptions({queryKey:e}),o=this.#e.get(s.queryHash)?.state.data,l=OM(t,o);if(l!==void 0)return this.#e.build(this,s).setData(l,{...r,manual:!0})}setQueriesData(e,t,r){return _n.batch(()=>this.#e.findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;_n.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#e;return _n.batch(()=>{const s=r.findAll(e),o=new Set(s);return s.forEach(l=>{l.reset()}),this.refetchQueries({type:"active",predicate:l=>o.has(l)},t)})}cancelQueries(e,t={}){const r={revert:!0,...t},s=_n.batch(()=>this.#e.findAll(e).map(o=>o.cancel(r)));return Promise.all(s).then(wr).catch(wr)}invalidateQueries(e,t={}){return _n.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},s=_n.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let l=o.fetch(void 0,r);return r.throwOnError||(l=l.catch(wr)),o.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(s).then(wr)}async query(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#e.build(this,t),s=r.isStaleByTime(nn(t.staleTime,r))?await r.fetch(t):r.state.data,o=t.select;return o?o(s):s}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#e.build(this,t);return r.isStaleByTime(nn(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(wr).catch(wr)}infiniteQuery(e){return e._type="infinite",this.query(e)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(wr).catch(wr)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Xh.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(Si(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],r={};return t.forEach(s=>{tc(e,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(e,t){this.#s.set(Si(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#s.values()],r={};return t.forEach(s=>{tc(e,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=mb(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===yb&&(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()}};const $3=g.createContext(!1),a8=()=>g.useContext($3);$3.Provider;function s8(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const o8=g.createContext(s8()),i8=()=>g.useContext(o8),l8=(e,t,r)=>{const s=r?.state.status==="error"&&typeof e.throwOnError=="function"?bb(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||s)&&(t.isReset()||(e.retryOnMount=!1))},c8=e=>{g.useEffect(()=>{e.clearReset()},[e])},u8=({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(o&&e.data===void 0||bb(r,[e.error,s])),d8=e=>{if(e.suspense){const r=o=>o==="static"?o:Math.max(o??1e3,1e3),s=e.staleTime;e.staleTime=typeof s=="function"?(...o)=>r(s(...o)):r(s),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},f8=(e,t)=>e?.suspense&&t.isPending,h8=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function p8(e,t,r){const s=a8(),o=i8(),l=qr(),u=l.defaultQueryOptions(e),f=l.getQueryCache().get(u.queryHash),d=e.subscribed!==!1;u._optimisticResults=s?"isRestoring":d?"optimistic":void 0,d8(u),l8(u,o,f),c8(o);const[p]=g.useState(()=>new t(l,u)),y=p.getOptimisticResult(u),m=!s&&d;if(g.useSyncExternalStore(g.useCallback(k=>{const v=m?p.subscribe(_n.batchCalls(k)):wr;return p.updateResult(),v},[p,m]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),g.useEffect(()=>{p.setOptions(u)},[u,p]),f8(u,y))throw h8(u,p,o);if(u8({result:y,errorResetBoundary:o,throwOnError:u.throwOnError,query:f,suspense:u.suspense}))throw y.error;return u.notifyOnChangeProps?y:p.trackResult(y)}function ys(e,t){return p8(e,ZM)}function Er(e,t){const r=qr(),[s]=g.useState(()=>new t8(r,e));g.useEffect(()=>{s.setOptions(e)},[s,e]);const o=g.useSyncExternalStore(g.useCallback(u=>s.subscribe(_n.batchCalls(u)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),l=g.useCallback((...u)=>{s.mutate(u[0],u[1]).catch(wr)},[s]);if(o.error&&bb(s.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:l,mutateAsync:o.mutate}}var T3=e=>{throw TypeError(e)},C3=(e,t,r)=>t.has(e)||T3("Cannot "+r),ba=(e,t,r)=>(C3(e,t,"read from private field"),r?r.call(e):t.get(e)),Ru=(e,t,r)=>t.has(e)?T3("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),us=(e,t,r,s)=>(C3(e,t,"write to private field"),t.set(e,r),r),Op=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Ip=/^[\\/]{2}/;function j3(e,t){return t+e.replace(/\\/g,"/")}var LS="popstate";function DS(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function x8(e={}){function t(o,l){let{pathname:u="/",search:f="",hash:d=""}=Xa(o.location.hash.substring(1));return!u.startsWith("/")&&!u.startsWith(".")&&(u="/"+u),Ku("",{pathname:u,search:f,hash:d},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function r(o,l){let u=o.document.querySelector("base"),f="";if(u&&u.getAttribute("href")){let d=o.location.href,p=d.indexOf("#");f=p===-1?d:d.slice(0,p)}return f+"#"+(typeof l=="string"?l:$r(l))}function s(o,l){cn(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(l)})`)}return m8(t,r,s,e)}function ht(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function cn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function g8(){return Math.random().toString(36).substring(2,10)}function OS(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Ku(e,t,r=null,s,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Xa(t):t,state:r,key:t&&t.key||s||g8(),mask:o}}function $r({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Xa(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let s=e.indexOf("?");s>=0&&(t.search=e.substring(s),e=e.substring(0,s)),e&&(t.pathname=e)}return t}function m8(e,t,r,s={}){let{window:o=document.defaultView,v5Compat:l=!1}=s,u=o.history,f="POP",d=null,p=y();p==null&&(p=0,u.replaceState({...u.state,idx:p},""));function y(){return(u.state||{idx:null}).idx}function m(){f="POP";let E=y(),R=E==null?null:E-p;p=E,d&&d({action:f,location:S.location,delta:R})}function k(E,R){f="PUSH";let C=DS(E)?E:Ku(S.location,E,R);r&&r(C,E),p=y()+1;let T=OS(C,p),A=S.createHref(C.mask||C);try{u.pushState(T,"",A)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;o.location.assign(A)}l&&d&&d({action:f,location:S.location,delta:1})}function v(E,R){f="REPLACE";let C=DS(E)?E:Ku(S.location,E,R);r&&r(C,E),p=y();let T=OS(C,p),A=S.createHref(C.mask||C);u.replaceState(T,"",A),l&&d&&d({action:f,location:S.location,delta:0})}function w(E){return R3(o,E)}let S={get action(){return f},get location(){return e(o,u)},listen(E){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(LS,m),d=E,()=>{o.removeEventListener(LS,m),d=null}},createHref(E){return t(o,E)},createURL:w,encodeLocation(E){let R=w(E);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:k,replace:v,go(E){return u.go(E)}};return S}function R3(e,t,r=!1){let s="http://localhost";e&&(s=e.location.origin!=="null"?e.location.origin:e.location.href),ht(s,"No window.location.(origin|href) available to create URL");let o=typeof t=="string"?t:$r(t);return o=o.replace(/ $/,"%20"),!r&&Ip.test(o)&&(o=s+o),new URL(o,s)}var Au,IS=class{constructor(e){if(Ru(this,Au,new Map),e)for(let[t,r]of e)this.set(t,r)}get(e){if(ba(this,Au).has(e))return ba(this,Au).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){ba(this,Au).set(e,t)}};Au=new WeakMap;var y8=new Set(["lazy","caseSensitive","path","id","index","children"]);function b8(e){return y8.has(e)}var k8=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function v8(e){return k8.has(e)}function w8(e){return e.index===!0}function Wu(e,t,r=[],s={},o=!1){return e.map((l,u)=>{let f=[...r,String(u)],d=typeof l.id=="string"?l.id:f.join("-");if(ht(l.index!==!0||!l.children,"Cannot specify children on an index route"),ht(o||!s[d],`Found a route id collision on id "${d}". Route id's must be globally unique within Data Router usages`),w8(l)){let p={...l,id:d};return s[d]=_S(p,t(p)),p}else{let p={...l,id:d,children:void 0};return s[d]=_S(p,t(p)),l.children&&(p.children=Wu(l.children,t,f,s,o)),p}})}function _S(e,t){return Object.assign(e,{...t,...typeof t.lazy=="object"&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function A3(e,t,r="/"){return Ba(e,t,r,!1)}function Ba(e,t,r,s,o){let l=typeof t=="string"?Xa(t):t,u=$a(l.pathname||"/",r);if(u==null)return null;let f=o??Lh(e),d=null,p=z8(u);for(let y=0;d==null&&y<f.length;++y)d=N8(f[y],p,s);return d}function M3(e,t){let{route:r,pathname:s,params:o}=e;return{id:r.id,pathname:s,params:o,data:t[r.id],loaderData:t[r.id],handle:r.handle}}function Lh(e){let t=N3(e);return S8(t),t}function N3(e,t=[],r=[],s="",o=!1){let l=(u,f,d=o,p)=>{let y={relativePath:p===void 0?u.path||"":p,caseSensitive:u.caseSensitive===!0,childrenIndex:f,route:u};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(s)&&d)return;ht(y.relativePath.startsWith(s),`Absolute route path "${y.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(s.length)}let m=Sa([s,y.relativePath]),k=r.concat(y);u.children&&u.children.length>0&&(ht(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),N3(u.children,t,k,m,d)),!(u.path==null&&!u.index)&&t.push({path:m,score:A8(m,u.index),routesMeta:k.map((v,w)=>{let[S,E]=D3(v.relativePath,v.caseSensitive,w===k.length-1);return{...v,matcher:S,compiledParams:E}})})};return e.forEach((u,f)=>{if(u.path===""||!u.path?.includes("?"))l(u,f);else for(let d of z3(u.path))l(u,f,!0,d)}),t}function z3(e){let t=e.split("/");if(t.length===0)return[];let[r,...s]=t,o=r.endsWith("?"),l=r.replace(/\?$/,"");if(s.length===0)return o?[l,""]:[l];let u=z3(s.join("/")),f=[];return f.push(...u.map(d=>d===""?l:[l,d].join("/"))),o&&f.push(...u),f.map(d=>e.startsWith("/")&&d===""?"/":d)}function S8(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:M8(t.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var E8=/^:[\w-]+$/,$8=3,T8=2,C8=1,j8=10,R8=-2,qS=e=>e==="*";function A8(e,t){let r=e.split("/"),s=r.length;return r.some(qS)&&(s+=R8),t&&(s+=T8),r.filter(o=>!qS(o)).reduce((o,l)=>o+(E8.test(l)?$8:l===""?C8:j8),s)}function M8(e,t){return e.length===t.length&&e.slice(0,-1).every((s,o)=>s===t[o])?e[e.length-1]-t[t.length-1]:0}function N8(e,t,r=!1){let{routesMeta:s}=e,o={},l="/",u=[];for(let f=0;f<s.length;++f){let d=s[f],p=f===s.length-1,y=l==="/"?t:t.slice(l.length)||"/",m={path:d.relativePath,caseSensitive:d.caseSensitive,end:p},k=d.matcher&&d.compiledParams?L3(m,y,d.matcher,d.compiledParams):Zh(m,y),v=d.route;if(!k&&p&&r&&!s[s.length-1].route.index&&(k=Zh({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},y)),!k)return null;Object.assign(o,k.params),u.push({params:o,pathname:Sa([l,k.pathname]),pathnameBase:O8(Sa([l,k.pathnameBase])),route:v}),k.pathnameBase!=="/"&&(l=Sa([l,k.pathnameBase]))}return u}function Zh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,s]=D3(e.path,e.caseSensitive,e.end);return L3(e,t,r,s)}function L3(e,t,r,s){let o=t.match(r);if(!o)return null;let l=o[0],u=nc(l,1),f=o.slice(1);return{params:s.reduce((p,{paramName:y,isOptional:m},k)=>{if(y==="*"){let w=f[k]||"";u=nc(l.slice(0,l.length-w.length),1)}const v=f[k];return m&&!v?p[y]=void 0:p[y]=(v||"").replace(/%2F/g,"/"),p},{}),pathname:l,pathnameBase:u,pattern:e}}function D3(e,t=!1,r=!0){cn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let s=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,f,d,p,y)=>{if(s.push({paramName:f,isOptional:d!=null}),d){let m=y.charAt(p+u.length);return m&&m!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(s.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),s]}function z8(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return cn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function $a(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,s=e.charAt(r);return s&&s!=="/"?null:e.slice(r)||"/"}function L8({basename:e,pathname:t}){return t==="/"?e:Sa([e,t])}var Sb=e=>Op.test(e);function D8(e,t="/"){let{pathname:r,search:s="",hash:o=""}=typeof e=="string"?Xa(e):e,l;return r?(r=Eb(r),r.startsWith("/")||r.startsWith("\\")?l=PS(r.substring(1),"/"):l=PS(r,t)):l=t,{pathname:l,search:I8(s),hash:_8(o)}}function PS(e,t){let r=nc(t).split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function oy(e,t,r,s){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function O3(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function _p(e){let t=O3(e);return t.map((r,s)=>s===t.length-1?r.pathname:r.pathnameBase)}function ud(e,t,r,s=!1){let o;typeof e=="string"?o=Xa(e):(o={...e},ht(!o.pathname||!o.pathname.includes("?"),oy("?","pathname","search",o)),ht(!o.pathname||!o.pathname.includes("#"),oy("#","pathname","hash",o)),ht(!o.search||!o.search.includes("#"),oy("#","search","hash",o)));let l=e===""||o.pathname==="",u=l?"/":o.pathname,f;if(u==null)f=r;else{let m=t.length-1;if(!s&&u.startsWith("..")){let k=u.split("/");for(;k[0]==="..";)k.shift(),m-=1;o.pathname=k.join("/")}f=m>=0?t[m]:"/"}let d=D8(o,f),p=u&&u!=="/"&&u.endsWith("/"),y=(l||u===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(p||y)&&(d.pathname+="/"),d}var Eb=e=>e.replace(/[\\/]{2,}/g,"/"),Sa=e=>Eb(e.join("/"));function nc(e,t=0){let r=e.length;for(;r>t&&e.charCodeAt(r-1)===47;)r--;return r===e.length?e:e.slice(0,r)}var O8=e=>nc(e).replace(/^\/*/,"/"),I8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,q8=["EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],dd=class{constructor(e,t,r,s=!1){this.status=e,this.statusText=t||"",this.internal=s,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Yu(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function fd(e){let t=e.map(r=>r.route.path).filter(Boolean);return Sa(t)||"/"}var I3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function _3(e,t){let r=e;if(typeof r!="string"||!Op.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let s=r,o=!1;if(I3)try{let l=new URL(window.location.href),u=Ip.test(r)?new URL(j3(r,l.protocol)):new URL(r),f=$a(u.pathname,t);u.origin===l.origin&&f!=null?r=f+u.search+u.hash:o=!0}catch{cn(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:o,to:r}}var Ro=Symbol("Uninstrumented");function P8(e,t){let r={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(o=>o({id:t.id,index:t.index,path:t.path,instrument(l){let u=Object.keys(r);for(let f of u)l[f]&&r[f].push(l[f])}}));let s={};if(typeof t.lazy=="function"&&r.lazy.length>0){let o=Pl(r.lazy,t.lazy,()=>{});o&&(s.lazy=o)}if(typeof t.lazy=="object"){let o=t.lazy;["middleware","loader","action"].forEach(l=>{let u=o[l],f=r[`lazy.${l}`];if(typeof u=="function"&&f.length>0){let d=Pl(f,u,()=>{});d&&(s.lazy=Object.assign(s.lazy||{},{[l]:d}))}})}return["loader","action"].forEach(o=>{let l=t[o];if(typeof l=="function"&&r[o].length>0){let u=l[Ro]??l,f=Pl(r[o],u,(...d)=>BS(d[0]));f&&(o==="loader"&&u.hydrate===!0&&(f.hydrate=!0),f[Ro]=u,s[o]=f)}}),t.middleware&&t.middleware.length>0&&r.middleware.length>0&&(s.middleware=t.middleware.map(o=>{let l=o[Ro]??o,u=Pl(r.middleware,l,(...f)=>BS(f[0]));return u?(u[Ro]=l,u):o})),s}function B8(e,t){let r={navigate:[],fetch:[]};if(t.forEach(s=>s({instrument(o){let l=Object.keys(o);for(let u of l)o[u]&&r[u].push(o[u])}})),r.navigate.length>0){let s=e.navigate[Ro]??e.navigate,o=Pl(r.navigate,s,(...l)=>{let[u,f]=l;return{to:typeof u=="number"||typeof u=="string"?u:u?$r(u):".",...HS(e,f??{})}});o&&(o[Ro]=s,e.navigate=o)}if(r.fetch.length>0){let s=e.fetch[Ro]??e.fetch,o=Pl(r.fetch,s,(...l)=>{let[u,,f,d]=l;return{href:f??".",fetcherKey:u,...HS(e,d??{})}});o&&(o[Ro]=s,e.fetch=o)}return e}function Pl(e,t,r){return e.length===0?null:async(...s)=>{let o=await q3(e,r(...s),()=>t(...s),e.length-1);if(o.type==="error")throw o.value;return o.value}}async function q3(e,t,r,s){let o=e[s],l;if(o){let u,f=async()=>(u?console.error("You cannot call instrumented handlers more than once"):u=q3(e,t,r,s-1),l=await u,ht(l,"Expected a result"),l.type==="error"&&l.value instanceof Error?{status:"error",error:l.value}:{status:"success",error:void 0});try{await o(f,t)}catch(d){console.error("An instrumentation function threw an error:",d)}u||await f(),await u}else try{l={type:"success",value:await r()}}catch(u){l={type:"error",value:u}}return l||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function BS(e){let{request:t,context:r,params:s,pattern:o}=e;return{request:H8(t),params:{...s},pattern:o,context:F8(r)}}function HS(e,t){return{currentUrl:$r(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function H8(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function F8(e){if(V8(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var U8=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function V8(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===U8}var FS=new URL("http://localhost");function $b(e){if(e.createURL)return e.createURL("/");try{return new URL(e.createHref("/"),FS)}catch{return FS}}function iy(e,t){return e.origin===t.origin&&(e.origin!=="null"||e.protocol===t.protocol&&e.host===t.host)}function G8(e,t){if(e.startsWith("//"))return!0;let r=t.protocol.toLowerCase();return e.toLowerCase().startsWith(r)?t.host===""||e.slice(r.length).startsWith("//"):!1}function Ul(e,t,r,s){let o=null;try{o=e==null?null:new URL(e,r)}catch{}let l=new URL(t,r),u=o!=null&&!iy(o,r),f=!iy(l,r);if(s==="reject"){if(u||f)throw new Error("External navigation is not allowed")}else if(f&&(o==null||!G8(e,o)||!iy(o,l)))throw new Error("External navigation is not allowed")}var P3=["POST","PUT","PATCH","DELETE"],K8=new Set(P3),W8=["GET",...P3],Y8=new Set(W8),B3=new Set([301,302,303,307,308]),X8=new Set([307,308]),ly={state:"idle",location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Z8={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},mu={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Q8=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),H3="remix-router-transitions",F3=Symbol("ResetLoaderData"),fi,Ol,$o,Il,J8=class{constructor(e){Ru(this,fi),Ru(this,Ol),Ru(this,$o),Ru(this,Il),us(this,fi,e),us(this,Ol,Lh(e))}get stableRoutes(){return ba(this,fi)}get activeRoutes(){return ba(this,$o)??ba(this,fi)}get branches(){return ba(this,Il)??ba(this,Ol)}get hasHMRRoutes(){return ba(this,$o)!=null}setRoutes(e){us(this,fi,e),us(this,Ol,Lh(e))}setHmrRoutes(e){us(this,$o,e),us(this,Il,Lh(e))}commitHmrRoutes(){ba(this,$o)&&(us(this,fi,ba(this,$o)),us(this,Ol,ba(this,Il)),us(this,$o,void 0),us(this,Il,void 0))}};fi=new WeakMap;Ol=new WeakMap;$o=new WeakMap;Il=new WeakMap;function eN(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";ht(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let s=e.hydrationRouteProperties||[],o=e.mapRouteProperties||Q8,l=o;if(e.instrumentations){let W=e.instrumentations;l=Y=>({...o(Y),...P8(W.map(oe=>oe.route).filter(Boolean),Y)})}let u={},f=new J8(Wu(e.routes,l,void 0,u)),d=e.basename||"/";d.startsWith("/")||(d=`/${d}`);let p=e.dataStrategy||sN,y={...e.future},m=null,k=new Set,v=null,w=null,S=null,E=null,R=e.hydrationData!=null,C=Ba(f.activeRoutes,e.history.location,d,!1,f.branches),T=!1,A=null,N,L;if(C==null&&!e.patchRoutesOnNavigation){let W=ka(404,{pathname:e.history.location.pathname}),{matches:Y,route:oe}=Zf(f.activeRoutes);N=!0,L=!N,C=Y,A={[oe.id]:W}}else if(C&&!e.hydrationData&&Xn(C,f.activeRoutes,e.history.location.pathname).active&&(C=null),C)if(C.some(W=>W.route.lazy))N=!1,L=!N;else if(!C.some(W=>Tb(W.route)))N=!0,L=!N;else{let W=e.hydrationData?e.hydrationData.loaderData:null,Y=e.hydrationData?e.hydrationData.errors:null,oe=C;if(Y){let ge=C.findIndex(ke=>Y[ke.route.id]!==void 0);oe=oe.slice(0,ge+1)}L=!1,N=!0,oe.forEach(ge=>{let ke=U3(ge.route,W,Y);L=L||ke.renderFallback,N=N&&!ke.shouldLoad})}else{N=!1,L=!N,C=[];let W=Xn(null,f.activeRoutes,e.history.location.pathname);W.active&&W.matches&&(T=!0,C=W.matches)}let D,j={historyAction:e.history.action,location:e.history.location,matches:C,initialized:N,renderFallback:L,navigation:ly,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||A,fetchers:new Map,blockers:new Map},O="POP",M=null,H=!1,F,q=!1,B=new Map,U=null,_=!1,P=!1,G=new Set,X=new Map,Z=0,Q=-1,K=new Map,ae=new Set,I=new Map,ee=new Map,pe=new Set,ue=new Map,ve,xe=null;function $e(){if(m=e.history.listen(({action:W,location:Y,delta:oe})=>{if(ve){ve(),ve=void 0;return}cn(ue.size===0||oe!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ge=un({currentLocation:j.location,nextLocation:Y,historyAction:W});if(ge&&oe!=null){let ke=new Promise(Ie=>{ve=Ie});e.history.go(oe*-1),Jt(ge,{state:"blocked",location:Y,proceed(){Jt(ge,{state:"proceeding",proceed:void 0,reset:void 0,location:Y}),ke.then(()=>e.history.go(oe))},reset(){let Ie=new Map(j.blockers);Ie.set(ge,mu),Re({blockers:Ie})}}),M?.resolve(),M=null;return}return je(W,Y)}),r){EN(t,B);let W=()=>$N(t,B);t.addEventListener("pagehide",W),U=()=>t.removeEventListener("pagehide",W)}return j.initialized||je("POP",j.location,{initialHydration:!0}),D}function te(){m&&m(),U&&U(),k.clear(),F&&F.abort(),j.fetchers.forEach((W,Y)=>gn(j.fetchers,Y)),j.blockers.forEach((W,Y)=>Le(Y))}function he(W){if(k.add(W),v){let{newErrors:Y}=v;v=null,W(j,{deletedFetchers:[],newErrors:Y,viewTransitionOpts:void 0,flushSync:!1})}return()=>k.delete(W)}function Re(W,Y={}){W.matches&&(W.matches=W.matches.map(ke=>{let Ie=u[ke.route.id],De=ke.route;return De.element!==Ie.element||De.errorElement!==Ie.errorElement||De.hydrateFallbackElement!==Ie.hydrateFallbackElement?{...ke,route:Ie}:ke})),j={...j,...W};let oe=[],ge=[];j.fetchers.forEach((ke,Ie)=>{ke.state==="idle"&&(pe.has(Ie)?oe.push(Ie):ge.push(Ie))}),pe.forEach(ke=>{!j.fetchers.has(ke)&&!X.has(ke)&&oe.push(ke)}),k.size===0&&(v={newErrors:W.errors??null}),[...k].forEach(ke=>ke(j,{deletedFetchers:oe,newErrors:W.errors??null,viewTransitionOpts:Y.viewTransitionOpts,flushSync:Y.flushSync===!0})),oe.forEach(ke=>gn(j.fetchers,ke)),ge.forEach(ke=>j.fetchers.delete(ke))}function Ce(W,Y,{flushSync:oe}={}){let ge=j.actionData!=null&&j.navigation.formMethod!=null&&lr(j.navigation.formMethod)&&j.navigation.state==="loading"&&W.state?._isRedirect!==!0,ke;Y.actionData?Object.keys(Y.actionData).length>0?ke=Y.actionData:ke=null:ge?ke=j.actionData:ke=null;let Ie=Y.loaderData?JS(j.loaderData,Y.loaderData,Y.matches||[],Y.errors):j.loaderData,De=j.blockers;De.size>0&&(De=new Map(De),De.forEach((Be,Ze)=>De.set(Ze,mu)));let Se=_?!1:Br(W,Y.matches||j.matches),Ne=H===!0||j.navigation.formMethod!=null&&lr(j.navigation.formMethod)&&W.state?._isRedirect!==!0;f.commitHmrRoutes(),_||O==="POP"||(O==="PUSH"?e.history.push(W,W.state):O==="REPLACE"&&e.history.replace(W,W.state));let Ke;if(O==="POP"&&!_&&W!==j.location){let Be=B.get(j.location.pathname);Be&&Be.has(W.pathname)?Ke={currentLocation:j.location,nextLocation:W}:B.has(W.pathname)&&(Ke={currentLocation:W,nextLocation:j.location})}else if(q){let Be=B.get(j.location.pathname);Be?Be.add(W.pathname):(Be=new Set([W.pathname]),B.set(j.location.pathname,Be)),Ke={currentLocation:j.location,nextLocation:W}}Re({...Y,actionData:ke,loaderData:Ie,historyAction:O,location:W,initialized:!0,renderFallback:!1,navigation:ly,revalidation:"idle",restoreScrollPosition:Se,preventScrollReset:Ne,blockers:De},{viewTransitionOpts:Ke,flushSync:oe===!0}),O="POP",H=!1,q=!1,_=!1,P=!1,M?.resolve(),M=null,xe?.resolve(),xe=null}async function Te(W,Y){if(M?.resolve(),M=null,typeof W=="number"){M||(M=r5());let At=M.promise;return e.history.go(W),At}let oe=b1(j.location,j.matches,d,W,Y?.fromRouteId,Y?.relative),{path:ge,submission:ke,error:Ie}=US(!1,oe,Y),De;if(Y?.mask){let At=typeof Y.mask=="string"?Xa(Y.mask):{...j.location.mask,...Y.mask};if(De={pathname:At.pathname??"",search:At.search??"",hash:At.hash??""},Ip.test(De.pathname))throw new Error("External navigation is not allowed");De.pathname.startsWith("\\")&&(De.pathname=De.pathname.replace(/^\\+/,"/")),Ul(typeof Y.mask=="string"?Y.mask:$r(Y.mask),$r(De),e.history.createURL("/"),"reject")}let Se=j.location,Ne=Ku(Se,ge,Y&&Y.state,void 0,De);Ne={...Ne,...e.history.encodeLocation(Ne)},Ul(W==null?e.history.createHref(j.location):typeof W=="string"?W:$r(W),e.history.createHref(Ne.mask||Ne),e.history.createURL("/"),"reject");let Ke=Y&&Y.replace!=null?Y.replace:void 0,Be="PUSH";Ke===!0?Be="REPLACE":Ke===!1||ke!=null&&lr(ke.formMethod)&&ke.formAction===j.location.pathname+j.location.search&&(Be="REPLACE");let Ze=Y&&"preventScrollReset"in Y?Y.preventScrollReset===!0:void 0,Fe=(Y&&Y.flushSync)===!0,wt=un({currentLocation:Se,nextLocation:Ne,historyAction:Be});if(wt){Jt(wt,{state:"blocked",location:Ne,proceed(){Jt(wt,{state:"proceeding",proceed:void 0,reset:void 0,location:Ne}),Te(W,Y)},reset(){let At=new Map(j.blockers);At.set(wt,mu),Re({blockers:At})}});return}await je(Be,Ne,{submission:ke,pendingError:Ie,preventScrollReset:Ze,replace:Y&&Y.replace,enableViewTransition:Y&&Y.viewTransition,flushSync:Fe,callSiteDefaultShouldRevalidate:Y&&Y.defaultShouldRevalidate})}function Me(){xe||(xe=r5()),ct(),Re({revalidation:"loading"});let W=xe.promise;return j.navigation.state==="submitting"?W:j.navigation.state==="idle"?(je(j.historyAction,j.location,{startUninterruptedRevalidation:!0}),W):(je(O||j.historyAction,j.navigation.location,{overrideNavigation:j.navigation,enableViewTransition:q===!0}),W)}async function je(W,Y,oe){F&&F.abort(),F=null,O=W,_=(oe&&oe.startUninterruptedRevalidation)===!0,Tr(j.location,j.matches),H=(oe&&oe.preventScrollReset)===!0,q=(oe&&oe.enableViewTransition)===!0;let ge=f.activeRoutes,ke=oe?.initialHydration&&j.matches&&j.matches.length>0&&!T?j.matches:Ba(ge,Y,d,!1,f.branches),Ie=(oe&&oe.flushSync)===!0;if(ke&&j.initialized&&!P&&pN(j.location,Y)&&!(oe&&oe.submission&&lr(oe.submission.formMethod))){Ce(Y,{matches:ke},{flushSync:Ie});return}let De=Xn(ke,ge,Y.pathname);if(De.active&&De.matches&&(ke=De.matches),!ke){let{error:$t,notFoundMatches:bt,route:mn}=an(Y.pathname);Ce(Y,{matches:bt,loaderData:{},errors:{[mn.id]:$t}},{flushSync:Ie});return}let Se=oe&&oe.overrideNavigation?{...oe.overrideNavigation,matches:ke,historyAction:W}:void 0;F=new AbortController;let Ne=_l(e.history,Y,F.signal,oe&&oe.submission),Ke=e.getContext?await e.getContext():new IS,Be;if(oe&&oe.pendingError)Be=[Co(ke).route.id,{type:"error",error:oe.pendingError}];else if(oe&&oe.submission&&lr(oe.submission.formMethod)){let $t=await He(Ne,Y,oe.submission,ke,W,Ke,De.active,oe&&oe.initialHydration===!0,{replace:oe.replace,flushSync:Ie});if($t.shortCircuited)return;if($t.pendingActionResult){let[bt,mn]=$t.pendingActionResult;if(ta(mn)&&Yu(mn.error)&&mn.error.status===404){F=null,Ce(Y,{matches:$t.matches,loaderData:{},errors:{[bt]:mn.error}});return}}ke=$t.matches||ke,Be=$t.pendingActionResult,Se=cy(Y,ke,W,oe.submission),Ie=!1,De.active=!1,Ne=_l(e.history,Ne.url,Ne.signal)}let{shortCircuited:Ze,matches:Fe,loaderData:wt,errors:At,workingFetchers:Ft}=await at(Ne,Y,ke,W,Ke,De.active,Se,oe&&oe.submission,oe&&oe.fetcherSubmission,oe&&oe.replace,oe&&oe.initialHydration===!0,Ie,Be,oe&&oe.callSiteDefaultShouldRevalidate);Ze||(F=null,Ce(Y,{matches:Fe||ke,...e5(Be),loaderData:wt,errors:At,...Ft?{fetchers:Ft}:{}}))}async function He(W,Y,oe,ge,ke,Ie,De,Se,Ne={}){ct();let Ke=wN(Y,ge,ke,oe);if(Re({navigation:Ke},{flushSync:Ne.flushSync===!0}),De){let Fe=await Gt(ge,Y.pathname,W.signal);if(Fe.type==="aborted")return{shortCircuited:!0};if(Fe.type==="error"){if(Fe.partialMatches.length===0){let{matches:At,route:Ft}=Zf(f.activeRoutes);return{matches:At,pendingActionResult:[Ft.id,{type:"error",error:Fe.error}]}}let wt=Co(Fe.partialMatches).route.id;return{matches:Fe.partialMatches,pendingActionResult:[wt,{type:"error",error:Fe.error}]}}else if(Fe.matches)ge=Fe.matches;else{let{notFoundMatches:wt,error:At,route:Ft}=an(Y.pathname);return{matches:wt,pendingActionResult:[Ft.id,{type:"error",error:At}]}}}let Be,Ze=Dh(ge,Y);if(!Ze.route.action&&!Ze.route.lazy)Be={type:"error",error:ka(405,{method:W.method,pathname:Y.pathname,routeId:Ze.route.id})};else{let Fe=Vl(l,u,W,Y,ge,Ze,Se?[]:s,Ie),wt=await lt(W,Y,Fe,Ie,null);if(Be=wt[Ze.route.id],!Be){for(let At of ge)if(wt[At.route.id]){Be=wt[At.route.id];break}}if(W.signal.aborted)return{shortCircuited:!0}}if(xi(Be)){let Fe;return Ne&&Ne.replace!=null?Fe=Ne.replace:Fe=XS(Be.response.headers.get("Location"),new URL(W.url),d,e.history)===j.location.pathname+j.location.search,await rt(W,Be,!0,{submission:oe,replace:Fe}),{shortCircuited:!0}}if(ta(Be)){let Fe=Co(ge,Ze.route.id);return(Ne&&Ne.replace)!==!0&&(O="PUSH"),{matches:ge,pendingActionResult:[Fe.route.id,Be,Ze.route.id]}}return{matches:ge,pendingActionResult:[Ze.route.id,Be]}}async function at(W,Y,oe,ge,ke,Ie,De,Se,Ne,Ke,Be,Ze,Fe,wt){let At=De||cy(Y,oe,ge,Se),Ft=Se||Ne||n5(At),$t=!_&&!Be;if(Ie){if($t){let sn=pt(Fe);Re({navigation:At,...sn!==void 0?{actionData:sn}:{}},{flushSync:Ze})}let ot=await Gt(oe,Y.pathname,W.signal);if(ot.type==="aborted")return{shortCircuited:!0};if(ot.type==="error"){if(ot.partialMatches.length===0){let{matches:dn,route:Ln}=Zf(f.activeRoutes);return{matches:dn,loaderData:{},errors:{[Ln.id]:ot.error}}}let sn=Co(ot.partialMatches).route.id;return{matches:ot.partialMatches,loaderData:{},errors:{[sn]:ot.error}}}else if(ot.matches)oe=ot.matches;else{let{error:sn,notFoundMatches:dn,route:Ln}=an(Y.pathname);return{matches:dn,loaderData:{},errors:{[Ln.id]:sn}}}}let bt=f.activeRoutes,{dsMatches:mn,revalidatingFetchers:zn}=VS(W,ke,l,u,e.history,j,oe,Ft,Y,Be?[]:s,Be===!0,P,G,pe,I,ae,bt,d,e.patchRoutesOnNavigation!=null,f.branches,Fe,wt);if(Q=++Z,!e.dataStrategy&&!mn.some(ot=>ot.shouldLoad)&&!mn.some(ot=>ot.route.middleware&&ot.route.middleware.length>0)&&zn.length===0){let ot=new Map(j.fetchers),sn=Qt(ot);return Ce(Y,{matches:oe,loaderData:{},errors:Fe&&ta(Fe[1])?{[Fe[0]]:Fe[1].error}:null,...e5(Fe),...sn?{fetchers:ot}:{}},{flushSync:Ze}),{shortCircuited:!0}}if($t){let ot={};if(!Ie){ot.navigation=At;let sn=pt(Fe);sn!==void 0&&(ot.actionData=sn)}zn.length>0&&(ot.fetchers=et(zn)),Re(ot,{flushSync:Ze})}zn.forEach(ot=>{Vt(ot.key),ot.controller&&X.set(ot.key,ot.controller)});let Ra=()=>zn.forEach(ot=>Vt(ot.key));F&&F.signal.addEventListener("abort",Ra);let{loaderResults:vn,fetcherResults:Bt}=await st(mn,zn,W,Y,ke);if(W.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener("abort",Ra),zn.forEach(ot=>X.delete(ot.key));let Yt=Qf(vn);if(Yt)return await rt(W,Yt.result,!0,{replace:Ke}),{shortCircuited:!0};if(Yt=Qf(Bt),Yt)return ae.add(Yt.key),await rt(W,Yt.result,!0,{replace:Ke}),{shortCircuited:!0};let wn=new Map(j.fetchers),{loaderData:Zn,errors:Hr}=QS(j,oe,vn,Fe,zn,Bt,wn);Be&&j.errors&&(Hr={...j.errors,...Hr});let Fr=Qt(wn),ks=kn(Q,wn),Qn=Fr||ks||zn.length>0;return{matches:oe,loaderData:Zn,errors:Hr,...Qn?{workingFetchers:wn}:{}}}function pt(W){if(W&&!ta(W[1]))return{[W[0]]:W[1].data};if(j.actionData)return Object.keys(j.actionData).length===0?null:j.actionData}function et(W){let Y=new Map(j.fetchers);return W.forEach(oe=>{let ge=Y.get(oe.key),ke=yu(void 0,ge?ge.data:void 0);Y.set(oe.key,ke)}),Y}async function Ve(W,Y,oe,ge){Vt(W);let ke=(ge&&ge.flushSync)===!0,Ie=f.activeRoutes,De=b1(j.location,j.matches,d,oe,Y,ge?.relative),Se=Ba(Ie,De,d,!1,f.branches),Ne=Xn(Se,Ie,De);if(Ne.active&&Ne.matches&&(Se=Ne.matches),!Se){Ge(W,Y,ka(404,{pathname:De}),{flushSync:ke});return}let{path:Ke,submission:Be,error:Ze}=US(!0,De,ge);if(Ze){Ge(W,Y,Ze,{flushSync:ke});return}let Fe=e.getContext?await e.getContext():new IS,wt=(ge&&ge.preventScrollReset)===!0;if(Be&&lr(Be.formMethod)){await yt(W,Y,Ke,Se,Fe,Ne.active,ke,wt,Be,ge&&ge.defaultShouldRevalidate);return}I.set(W,{routeId:Y,path:Ke}),await Pe(W,Y,Ke,Se,Fe,Ne.active,ke,wt,Be)}async function yt(W,Y,oe,ge,ke,Ie,De,Se,Ne,Ke){ct(),I.delete(W);let Be=j.fetchers.get(W);we(W,SN(Ne,Be),{flushSync:De});let Ze=new AbortController,Fe=_l(e.history,oe,Ze.signal,Ne);if(Ie){let tt=await Gt(ge,new URL(Fe.url).pathname,Fe.signal,W);if(tt.type==="aborted")return;if(tt.type==="error"){Ge(W,Y,tt.error,{flushSync:De});return}else if(tt.matches)ge=tt.matches;else{Ge(W,Y,ka(404,{pathname:oe}),{flushSync:De});return}}let wt=Dh(ge,oe);if(!wt.route.action&&!wt.route.lazy){let tt=ka(405,{method:Ne.formMethod,pathname:oe,routeId:Y});Ge(W,Y,tt,{flushSync:De});return}X.set(W,Ze);let At=Z,Ft=Vl(l,u,Fe,oe,ge,wt,s,ke),$t=await lt(Fe,oe,Ft,ke,W),bt=$t[wt.route.id];if(!bt){for(let tt of Ft)if($t[tt.route.id]){bt=$t[tt.route.id];break}}if(Fe.signal.aborted){X.get(W)===Ze&&X.delete(W);return}if(pe.has(W)){if(xi(bt)||ta(bt)){we(W,ps(void 0));return}}else{if(xi(bt))if(X.delete(W),Q>At){we(W,ps(void 0));return}else return ae.add(W),we(W,yu(Ne)),rt(Fe,bt,!1,{fetcherSubmission:Ne,preventScrollReset:Se});if(ta(bt)){Ge(W,Y,bt.error);return}}let mn=j.navigation.location||j.location,zn=_l(e.history,mn,Ze.signal),Ra=f.activeRoutes,vn=j.navigation.state!=="idle"?Ba(Ra,j.navigation.location,d,!1,f.branches):j.matches;ht(vn,"Didn't find any matches after fetcher action");let Bt=++Z;K.set(W,Bt);let{dsMatches:Yt,revalidatingFetchers:wn}=VS(zn,ke,l,u,e.history,j,vn,Ne,mn,s,!1,P,G,pe,I,ae,Ra,d,e.patchRoutesOnNavigation!=null,f.branches,[wt.route.id,bt],Ke),Zn=yu(Ne,bt.data),Hr=new Map(j.fetchers);Hr.set(W,Zn),wn.filter(tt=>tt.key!==W).forEach(tt=>{let sa=tt.key,_o=Hr.get(sa),qo=yu(void 0,_o?_o.data:void 0);Hr.set(sa,qo),Vt(sa),tt.controller&&X.set(sa,tt.controller)}),Re({fetchers:Hr});let Fr=()=>wn.forEach(tt=>Vt(tt.key));Ze.signal.addEventListener("abort",Fr);let{loaderResults:ks,fetcherResults:Qn}=await st(Yt,wn,zn,mn,ke);if(Ze.signal.aborted)return;Ze.signal.removeEventListener("abort",Fr),K.delete(W),X.delete(W),wn.forEach(tt=>X.delete(tt.key));let ot=j.fetchers.has(W),sn=tt=>{if(!ot)return tt;let sa=new Map(tt.fetchers);return sa.set(W,ps(bt.data)),{...tt,fetchers:sa}},dn=Qf(ks);if(dn)return j=sn(j),rt(zn,dn.result,!1,{preventScrollReset:Se});if(dn=Qf(Qn),dn)return ae.add(dn.key),j=sn(j),rt(zn,dn.result,!1,{preventScrollReset:Se});let Ln=new Map(j.fetchers);ot&&Ln.set(W,ps(bt.data));let{loaderData:Aa,errors:Ur}=QS(j,vn,ks,void 0,wn,Qn,Ln);kn(Bt,Ln),j.navigation.state==="loading"&&Bt>Q?(ht(O,"Expected pending action"),F&&F.abort(),Ce(j.navigation.location,{matches:vn,loaderData:Aa,errors:Ur,fetchers:Ln})):(Re({errors:Ur,loaderData:JS(j.loaderData,Aa,vn,Ur),fetchers:Ln}),P=!1)}async function Pe(W,Y,oe,ge,ke,Ie,De,Se,Ne){let Ke=j.fetchers.get(W);we(W,yu(Ne,Ke?Ke.data:void 0),{flushSync:De});let Be=new AbortController,Ze=_l(e.history,oe,Be.signal);if(Ie){let bt=await Gt(ge,new URL(Ze.url).pathname,Ze.signal,W);if(bt.type==="aborted")return;if(bt.type==="error"){Ge(W,Y,bt.error,{flushSync:De});return}else if(bt.matches)ge=bt.matches;else{Ge(W,Y,ka(404,{pathname:oe}),{flushSync:De});return}}let Fe=Dh(ge,oe);X.set(W,Be);let wt=Z,At=Vl(l,u,Ze,oe,ge,Fe,s,ke),Ft=await lt(Ze,oe,At,ke,W),$t=Ft[Fe.route.id];if(!$t){for(let bt of ge)if(Ft[bt.route.id]){$t=Ft[bt.route.id];break}}if(X.get(W)===Be&&X.delete(W),!Ze.signal.aborted){if(pe.has(W)){we(W,ps(void 0));return}if(xi($t))if(Q>wt){we(W,ps(void 0));return}else{ae.add(W),await rt(Ze,$t,!1,{preventScrollReset:Se});return}if(ta($t)){Ge(W,Y,$t.error);return}we(W,ps($t.data))}}async function rt(W,Y,oe,{submission:ge,fetcherSubmission:ke,preventScrollReset:Ie,replace:De}={}){oe||(M?.resolve(),M=null),Y.response.headers.has("X-Remix-Revalidate")&&(P=!0);let Se=Y.response.headers.get("Location");ht(Se,"Expected a Location header on the redirect Response");let Ne=Se,Ke=new URL(W.url);Se=XS(Se,Ke,d,e.history),Ul(Ne,Se,Ke,"allow-explicit");let Be=Ku(j.location,Se,{_isRedirect:!0});if(r){let $t=!1;if(Y.response.headers.has("X-Remix-Reload-Document"))$t=!0;else if(Sb(Se)){const bt=R3(t,Se,!0);$t=bt.origin!==t.location.origin||$a(bt.pathname,d)==null}if($t){De?t.location.replace(Se):t.location.assign(Se);return}}F=null;let Ze=De===!0||Y.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Fe,formAction:wt,formEncType:At}=j.navigation;!ge&&!ke&&Fe&&wt&&At&&(ge=n5(j.navigation));let Ft=ge||ke;if(X8.has(Y.response.status)&&Ft&&lr(Ft.formMethod))await je(Ze,Be,{submission:{...Ft,formAction:Se},preventScrollReset:Ie||H,enableViewTransition:oe?q:void 0});else{let $t=cy(Be,[],Ze,ge);await je(Ze,Be,{overrideNavigation:$t,fetcherSubmission:ke,preventScrollReset:Ie||H,enableViewTransition:oe?q:void 0})}}async function lt(W,Y,oe,ge,ke){let Ie,De={};try{Ie=await iN(p,W,Y,oe,ke,ge,!1)}catch(Se){return oe.filter(Ne=>Ne.shouldLoad).forEach(Ne=>{De[Ne.route.id]={type:"error",error:Se}}),De}if(W.signal.aborted)return De;if(!lr(W.method))for(let Se of oe){if(Ie[Se.route.id]?.type==="error")break;!Ie.hasOwnProperty(Se.route.id)&&!j.loaderData.hasOwnProperty(Se.route.id)&&(!j.errors||!j.errors.hasOwnProperty(Se.route.id))&&Se.shouldCallHandler()&&(Ie[Se.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${Se.route.id}`)})}for(let[Se,Ne]of Object.entries(Ie))if(yN(Ne)){let Ke=Ne.result;De[Se]={type:"redirect",response:dN(Ke,W,Se,oe,d)}}else De[Se]=await uN(Ne);return De}async function st(W,Y,oe,ge,ke){let Ie=lt(oe,ge,W,ke,null),De=Promise.all(Y.map(async Ke=>{if(Ke.matches&&Ke.match&&Ke.request&&Ke.controller){let Ze=(await lt(Ke.request,Ke.path,Ke.matches,ke,Ke.key))[Ke.match.route.id];return{[Ke.key]:Ze}}else return Promise.resolve({[Ke.key]:{type:"error",error:ka(404,{pathname:Ke.path})}})})),Se=await Ie,Ne=(await De).reduce((Ke,Be)=>Object.assign(Ke,Be),{});return{loaderResults:Se,fetcherResults:Ne}}function ct(){P=!0,I.forEach((W,Y)=>{X.has(Y)&&G.add(Y),Vt(Y)})}function we(W,Y,oe={}){let ge=new Map(j.fetchers);ge.set(W,Y),Re({fetchers:ge},{flushSync:(oe&&oe.flushSync)===!0})}function Ge(W,Y,oe,ge={}){let ke=Co(j.matches,Y),Ie=new Map(j.fetchers);gn(Ie,W),Re({errors:{[ke.route.id]:oe},fetchers:Ie},{flushSync:(ge&&ge.flushSync)===!0})}function Pt(W){return ee.set(W,(ee.get(W)||0)+1),pe.has(W)&&pe.delete(W),j.fetchers.get(W)||Z8}function bn(W,Y){Vt(W,Y?.reason),we(W,ps(null))}function gn(W,Y){let oe=j.fetchers.get(Y);X.has(Y)&&!(oe&&oe.state==="loading"&&K.has(Y))&&Vt(Y),I.delete(Y),K.delete(Y),ae.delete(Y),pe.delete(Y),G.delete(Y),W.delete(Y)}function An(W){let Y=(ee.get(W)||0)-1;Y<=0?(ee.delete(W),pe.add(W)):ee.set(W,Y),Re({fetchers:new Map(j.fetchers)})}function Vt(W,Y){let oe=X.get(W);oe&&(oe.abort(Y),X.delete(W))}function Yn(W,Y){for(let oe of W){let ge=Y.get(oe);ht(ge,`Expected fetcher: ${oe}`);let ke=ps(ge.data);Y.set(oe,ke)}}function Qt(W){let Y=[],oe=!1;for(let ge of ae){let ke=W.get(ge);ht(ke,`Expected fetcher: ${ge}`),ke.state==="loading"&&(ae.delete(ge),Y.push(ge),oe=!0)}return Yn(Y,W),oe}function kn(W,Y){let oe=[];for(let[ge,ke]of K)if(ke<W){let Ie=Y.get(ge);ht(Ie,`Expected fetcher: ${ge}`),Ie.state==="loading"&&(Vt(ge),K.delete(ge),oe.push(ge))}return Yn(oe,Y),oe.length>0}function Ye(W,Y){let oe=j.blockers.get(W)||mu;return ue.get(W)!==Y&&ue.set(W,Y),oe}function Le(W){j.blockers.delete(W),ue.delete(W)}function Jt(W,Y){let oe=j.blockers.get(W)||mu;ht(oe.state==="unblocked"&&Y.state==="blocked"||oe.state==="blocked"&&Y.state==="blocked"||oe.state==="blocked"&&Y.state==="proceeding"||oe.state==="blocked"&&Y.state==="unblocked"||oe.state==="proceeding"&&Y.state==="unblocked",`Invalid blocker state transition: ${oe.state} -> ${Y.state}`);let ge=new Map(j.blockers);ge.set(W,Y),Re({blockers:ge})}function un({currentLocation:W,nextLocation:Y,historyAction:oe}){if(ue.size===0)return;ue.size>1&&cn(!1,"A router only supports one blocker at a time");let ge=Array.from(ue.entries()),[ke,Ie]=ge[ge.length-1],De=j.blockers.get(ke);if(!(De&&De.state==="proceeding")&&Ie({currentLocation:W,nextLocation:Y,historyAction:oe}))return ke}function an(W){let Y=ka(404,{pathname:W}),oe=f.activeRoutes,{matches:ge,route:ke}=Zf(oe);return{notFoundMatches:ge,route:ke,error:Y}}function cr(W,Y,oe){if(w=W,E=Y,S=oe||null,!R&&j.navigation===ly){R=!0;let ge=Br(j.location,j.matches);ge!=null&&Re({restoreScrollPosition:ge})}return()=>{w=null,E=null,S=null}}function Qa(W,Y){return S&&S(W,Y.map(ge=>M3(ge,j.loaderData)))||W.key}function Tr(W,Y){if(w&&E){let oe=Qa(W,Y);w[oe]=E()}}function Br(W,Y){if(w){let oe=Qa(W,Y),ge=w[oe];if(typeof ge=="number")return ge}return null}function Xn(W,Y,oe){if(e.patchRoutesOnNavigation){let ge=f.branches;if(W){if(Object.keys(W[0].params).length>0)return{active:!0,matches:Ba(Y,oe,d,!0,ge)}}else return{active:!0,matches:Ba(Y,oe,d,!0,ge)||[]}}return{active:!1,matches:null}}async function Gt(W,Y,oe,ge){if(!e.patchRoutesOnNavigation)return{type:"success",matches:W};let ke=W;for(;;){let Ie=u;try{await e.patchRoutesOnNavigation({signal:oe,path:Y,matches:ke,fetcherKey:ge,patch:(Ke,Be)=>{oe.aborted||GS(Ke,Be,f,Ie,l,!1)}})}catch(Ke){return{type:"error",error:Ke,partialMatches:ke}}if(oe.aborted)return{type:"aborted"};let De=f.branches,Se=Ba(f.activeRoutes,Y,d,!1,De),Ne=null;if(Se){if(Object.keys(Se[0].params).length===0)return{type:"success",matches:Se};if(Ne=Ba(f.activeRoutes,Y,d,!0,De),!(Ne&&ke.length<Ne.length&&ur(ke,Ne.slice(0,ke.length))))return{type:"success",matches:Se}}if(Ne||(Ne=Ba(f.activeRoutes,Y,d,!0,De)),!Ne||ur(ke,Ne))return{type:"success",matches:null};ke=Ne}}function ur(W,Y){return W.length===Y.length&&W.every((oe,ge)=>oe.route.id===Y[ge].route.id)}function Mn(W){u={},f.setHmrRoutes(Wu(W,l,void 0,u))}function Nn(W,Y,oe=!1){GS(W,Y,f,u,l,oe),f.hasHMRRoutes||Re({})}return D={get basename(){return d},get future(){return y},get state(){return j},get routes(){return f.stableRoutes},get branches(){return f.branches},get manifest(){return u},get window(){return t},initialize:$e,subscribe:he,enableScrollRestoration:cr,navigate:Te,fetch:Ve,revalidate:Me,createHref:W=>e.history.createHref(W),createURL:W=>e.history.createURL(W),encodeLocation:W=>e.history.encodeLocation(W),getFetcher:Pt,resetFetcher:bn,deleteFetcher:An,dispose:te,getBlocker:Ye,deleteBlocker:Le,patchRoutes:Nn,_internalFetchControllers:X,_internalSetRoutes:Mn,_internalSetStateDoNotUseOrYouWillBreakYourApp(W){Re(W)}},e.instrumentations&&(D=B8(D,e.instrumentations.map(W=>W.router).filter(Boolean))),D}function tN(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function b1(e,t,r,s,o,l){let u,f;if(o){u=[];for(let p of t)if(u.push(p),p.route.id===o){f=p;break}}else u=t,f=t[t.length-1];let d=ud(s||".",_p(u),$a(e.pathname,r)||e.pathname,l==="path");if(s==null&&(d.search=e.search,d.hash=e.hash),(s==null||s===""||s===".")&&f){let p=jb(d.search);if(f.route.index&&!p)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!f.route.index&&p){let y=new URLSearchParams(d.search),m=y.getAll("index");y.delete("index"),m.filter(v=>v).forEach(v=>y.append("index",v));let k=y.toString();d.search=k?`?${k}`:""}}return r!=="/"&&(d.pathname=L8({basename:r,pathname:d.pathname})),$r(d)}function US(e,t,r){if(!r||!tN(r))return{path:t};if(r.formMethod&&!vN(r.formMethod))return{path:t,error:ka(405,{method:r.formMethod})};let s=()=>({path:t,error:ka(400,{type:"invalid-body"})}),l=(r.formMethod||"get").toUpperCase(),u=Z3(t);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!lr(l))return s();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((k,[v,w])=>`${k}${v}=${w}
11
- `,""):String(r.body);return{path:t,submission:{formMethod:l,formAction:u,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!lr(l))return s();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:l,formAction:u,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return s()}}}ht(typeof FormData=="function","FormData is not available in this environment");let f,d;if(r.formData)f=w1(r.formData),d=r.formData;else if(r.body instanceof FormData)f=w1(r.body),d=r.body;else if(r.body instanceof URLSearchParams)f=r.body,d=ZS(f);else if(r.body==null)f=new URLSearchParams,d=new FormData;else try{f=new URLSearchParams(r.body),d=ZS(f)}catch{return s()}let p={formMethod:l,formAction:u,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(lr(p.formMethod))return{path:t,submission:p};let y=Xa(t);return e&&y.search&&jb(y.search)&&f.append("index",""),y.search=`?${f}`,{path:$r(y),submission:p}}function VS(e,t,r,s,o,l,u,f,d,p,y,m,k,v,w,S,E,R,C,T,A,N){let L=A?ta(A[1])?A[1].error:A[1].data:void 0,D=o.createURL(l.location),j=o.createURL(d),O;if(y&&l.errors){let _=Object.keys(l.errors)[0];O=u.findIndex(P=>P.route.id===_)}else if(A&&ta(A[1])){let _=A[0];O=u.findIndex(P=>P.route.id===_)-1}let M=A?A[1].statusCode:void 0,H=M&&M>=400,F={currentUrl:D,currentParams:l.matches[0]?.params||{},nextUrl:j,nextParams:u[0].params,...f,actionResult:L,actionStatus:M},q=fd(u),B=u.map((_,P)=>{let{route:G}=_,X=null;if(O!=null&&P>O)X=!1;else if(G.lazy)X=!0;else if(!Tb(G))X=!1;else if(y){let{shouldLoad:ae}=U3(G,l.loaderData,l.errors);X=ae}else nN(l.loaderData,l.matches[P],_)&&(X=!0);if(X!==null)return k1(r,s,e,d,q,_,p,t,X);let Z=!1;typeof N=="boolean"?Z=N:H?Z=!1:(m||D.pathname+D.search===j.pathname+j.search||D.search!==j.search||rN(l.matches[P],_))&&(Z=!0);let Q={...F,defaultShouldRevalidate:Z},K=_u(_,Q);return k1(r,s,e,d,q,_,p,t,K,Q,N)}),U=[];return w.forEach((_,P)=>{if(y||!u.some(ee=>ee.route.id===_.routeId)||v.has(P))return;let G=l.fetchers.get(P),X=G&&G.state!=="idle"&&G.data===void 0,Z=Ba(E,_.path,R??"/",!1,T);if(!Z){if(C&&X)return;U.push({key:P,routeId:_.routeId,path:_.path,matches:null,match:null,request:null,controller:null});return}if(S.has(P))return;let Q=Dh(Z,_.path),K=new AbortController,ae=_l(o,_.path,K.signal),I=null;if(k.has(P))k.delete(P),I=Vl(r,s,ae,_.path,Z,Q,p,t);else if(X)m&&(I=Vl(r,s,ae,_.path,Z,Q,p,t));else{let ee;typeof N=="boolean"?ee=N:H?ee=!1:ee=m;let pe={...F,defaultShouldRevalidate:ee};_u(Q,pe)&&(I=Vl(r,s,ae,_.path,Z,Q,p,t,pe))}I&&U.push({key:P,routeId:_.routeId,path:_.path,matches:I,match:Q,request:ae,controller:K})}),{dsMatches:B,revalidatingFetchers:U}}function Tb(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function U3(e,t,r){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Tb(e))return{shouldLoad:!1,renderFallback:!1};let s=t!=null&&e.id in t,o=r!=null&&r[e.id]!==void 0;if(!s&&o)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader=="function"&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!s};let l=!s&&!o;return{shouldLoad:l,renderFallback:l}}function nN(e,t,r){let s=!t||r.route.id!==t.route.id,o=!e.hasOwnProperty(r.route.id);return s||o}function rN(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function _u(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function GS(e,t,r,s,o,l){let u;if(e){let p=s[e];ht(p,`No route found to patch children into: routeId = ${e}`),p.children||(p.children=[]),u=p.children}else u=r.activeRoutes;let f=[],d=[];if(t.forEach(p=>{let y=u.find(m=>V3(p,m));y?d.push({existingRoute:y,newRoute:p}):f.push(p)}),f.length>0){let p=Wu(f,o,[e||"_","patch",String(u?.length||"0")],s);u.push(...p)}if(l&&d.length>0)for(let p=0;p<d.length;p++){let{existingRoute:y,newRoute:m}=d[p],k=y,[v]=Wu([m],o,[],{},!0);Object.assign(k,{element:v.element?v.element:k.element,errorElement:v.errorElement?v.errorElement:k.errorElement,hydrateFallbackElement:v.hydrateFallbackElement?v.hydrateFallbackElement:k.hydrateFallbackElement})}r.hasHMRRoutes||r.setRoutes([...r.activeRoutes])}function V3(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((r,s)=>t.children?.some(o=>V3(r,o)))??!1:!1}var KS=new WeakMap,G3=({key:e,route:t,manifest:r,mapRouteProperties:s})=>{let o=r[t.id];if(ht(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let l=o.lazy[e];if(!l)return;let u=KS.get(o);u||(u={},KS.set(o,u));let f=u[e];if(f)return f;let d=(async()=>{let p=b8(e),m=o[e]!==void 0&&e!=="hasErrorBoundary";if(p)cn(!p,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),u[e]=Promise.resolve();else if(m)cn(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let k=await l();k!=null&&(Object.assign(o,{[e]:k}),Object.assign(o,s(o)))}typeof o.lazy=="object"&&(o.lazy[e]=void 0,Object.values(o.lazy).every(k=>k===void 0)&&(o.lazy=void 0))})();return u[e]=d,d},WS=new WeakMap;function aN(e,t,r,s,o){let l=r[e.id];if(ht(l,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let y=WS.get(l);if(y)return{lazyRoutePromise:y,lazyHandlerPromise:y};let m=(async()=>{ht(typeof e.lazy=="function","No lazy route function found");let k=await e.lazy(),v={};for(let w in k){let S=k[w];if(S===void 0)continue;let E=v8(w),C=l[w]!==void 0&&w!=="hasErrorBoundary";E?cn(!E,"Route property "+w+" is not a supported property to be returned from a lazy route function. This property will be ignored."):C?cn(!C,`Route "${l.id}" has a static property "${w}" defined but its lazy function is also returning a value for this property. The lazy route property "${w}" will be ignored.`):v[w]=S}Object.assign(l,v),Object.assign(l,{...s(l),lazy:void 0})})();return WS.set(l,m),m.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:m}}let u=Object.keys(e.lazy),f=[],d;for(let y of u){if(o&&o.includes(y))continue;let m=G3({key:y,route:e,manifest:r,mapRouteProperties:s});m&&(f.push(m),y===t&&(d=m))}let p=f.length>0?Promise.all(f).then(()=>{}):void 0;return p?.catch(()=>{}),d?.catch(()=>{}),{lazyRoutePromise:p,lazyHandlerPromise:d}}async function YS(e){let t=e.matches.filter(o=>o.shouldLoad),r={};return(await Promise.all(t.map(o=>o.resolve()))).forEach((o,l)=>{r[t[l].route.id]=o}),r}async function sN(e){return e.matches.some(t=>t.route.middleware)?K3(e,()=>YS(e)):YS(e)}function K3(e,t){return oN(e,t,s=>{if(kN(s))throw s;return s},gN,r);function r(s,o,l){if(l)return Promise.resolve(Object.assign(l.value,{[o]:{type:"error",result:s}}));{let{matches:u}=e,f=Math.min(Math.max(u.findIndex(p=>p.route.id===o),0),Math.max(u.findIndex(p=>p.shouldCallHandler()),0)),d=Co(u,u[f].route.id).route.id;return Promise.resolve({[d]:{type:"error",result:s}})}}}async function oN(e,t,r,s,o){let{matches:l,...u}=e,f=l.flatMap(p=>p.route.middleware?p.route.middleware.map(y=>[p.route.id,y]):[]);return await W3(u,f,t,r,s,o)}async function W3(e,t,r,s,o,l,u=0){let{request:f}=e;if(f.signal.aborted)throw f.signal.reason??new Error(`Request aborted: ${f.method} ${f.url}`);let d=t[u];if(!d)return await r();let[p,y]=d,m,k=async()=>{if(m)throw new Error("You may only call `next()` once per middleware");try{return m={value:await W3(e,t,r,s,o,l,u+1)},m.value}catch(v){return m={value:await l(v,p,m)},m.value}};try{let v=await y(e,k),w=v!=null?s(v):void 0;return o(w)?w:m?w??m.value:(m={value:await k()},m.value)}catch(v){return await l(v,p,m)}}function Y3(e,t,r,s,o){let l=G3({key:"middleware",route:s.route,manifest:t,mapRouteProperties:e}),u=aN(s.route,lr(r.method)?"action":"loader",t,e,o);return{middleware:l,route:u.lazyRoutePromise,handler:u.lazyHandlerPromise}}function k1(e,t,r,s,o,l,u,f,d,p=null,y){let m=!1,k=Y3(e,t,r,l,u);return{...l,_lazyPromises:k,shouldLoad:d,shouldRevalidateArgs:p,shouldCallHandler(v){return m=!0,p?typeof y=="boolean"?_u(l,{...p,defaultShouldRevalidate:y}):typeof v=="boolean"?_u(l,{...p,defaultShouldRevalidate:v}):_u(l,p):d},resolve(v){let{lazy:w,loader:S,middleware:E}=l.route,R=m||d||v&&!lr(r.method)&&(w||S),C=E&&E.length>0&&!S&&!w;return R&&(lr(r.method)||!C)?lN({request:r,path:s,pattern:o,match:l,lazyHandlerPromise:k?.handler,lazyRoutePromise:k?.route,handlerOverride:v,scopedContext:f}):Promise.resolve({type:"data",result:void 0})}}}function Vl(e,t,r,s,o,l,u,f,d=null){return o.map(p=>p.route.id!==l.route.id?{...p,shouldLoad:!1,shouldRevalidateArgs:d,shouldCallHandler:()=>!1,_lazyPromises:Y3(e,t,r,p,u),resolve:()=>Promise.resolve({type:"data",result:void 0})}:k1(e,t,r,s,fd(o),p,u,f,!0,d))}async function iN(e,t,r,s,o,l,u){s.some(y=>y._lazyPromises?.middleware)&&await Promise.all(s.map(y=>y._lazyPromises?.middleware));let f={request:t,url:X3(t,r),pattern:fd(s),params:s[0].params,context:l,matches:s},p=await e({...f,fetcherKey:o,runClientMiddleware:y=>{let m=f;return K3(m,()=>y({...m,fetcherKey:o,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(s.flatMap(y=>[y._lazyPromises?.handler,y._lazyPromises?.route]))}catch{}return p}async function lN({request:e,path:t,pattern:r,match:s,lazyHandlerPromise:o,lazyRoutePromise:l,handlerOverride:u,scopedContext:f}){let d,p,y=lr(e.method),m=y?"action":"loader",k=v=>{let w,S=new Promise((C,T)=>w=T);p=()=>w(),e.signal.addEventListener("abort",p);let E=C=>typeof v!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${m}" [routeId: ${s.route.id}]`)):v({request:e,url:X3(e,t),pattern:r,params:s.params,context:f},...C!==void 0?[C]:[]),R=(async()=>{try{return{type:"data",result:await(u?u(T=>E(T)):E())}}catch(C){return{type:"error",result:C}}})();return Promise.race([R,S])};try{let v=y?s.route.action:s.route.loader;if(o||l)if(v){let w,[S]=await Promise.all([k(v).catch(E=>{w=E}),o,l]);if(w!==void 0)throw w;d=S}else{await o;let w=y?s.route.action:s.route.loader;if(w)[d]=await Promise.all([k(w),l]);else if(m==="action"){let S=new URL(e.url),E=S.pathname+S.search;throw ka(405,{method:e.method,pathname:E,routeId:s.route.id})}else return{type:"data",result:void 0}}else if(v)d=await k(v);else{let w=new URL(e.url),S=w.pathname+w.search;throw ka(404,{pathname:S})}}catch(v){return{type:"error",result:v}}finally{p&&e.signal.removeEventListener("abort",p)}return d}async function cN(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function uN(e){let{result:t,type:r}=e;if(Cb(t)){let s;try{s=await cN(t)}catch(o){return{type:"error",error:o}}return r==="error"?{type:"error",error:new dd(t.status,t.statusText,s),statusCode:t.status,headers:t.headers}:{type:"data",data:s,statusCode:t.status,headers:t.headers}}return r==="error"?t5(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:xN(t),statusCode:Yu(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Yu(t)?t.status:void 0}:t5(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function dN(e,t,r,s,o){let l=e.headers.get("Location");if(ht(l,"Redirects returned/thrown from loaders/actions must have a Location header"),!Sb(l)){let u=s.slice(0,s.findIndex(f=>f.route.id===r)+1);l=b1(new URL(t.url),u,o,l),e.headers.set("Location",l)}return e}var fN=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function v1(e){try{return fN.includes(new URL(e).protocol)}catch{return!1}}function XS(e,t,r,s){if(Sb(e)){let o=e,l=Ip.test(o)?new URL(j3(o,t.protocol)):new URL(o);if(v1(l.toString()))throw new Error("Invalid redirect location");let u=$a(l.pathname,r)!=null;if(l.origin===t.origin&&u)return Eb(l.pathname)+l.search+l.hash}try{let o=s.createURL(e);if(v1(o.toString()))throw new Error("Invalid redirect location")}catch{}return e}function _l(e,t,r,s){let o=e.createURL(Z3(t)).toString(),l={signal:r};if(s&&lr(s.formMethod)){let{formMethod:u,formEncType:f}=s;l.method=u.toUpperCase(),f==="application/json"?(l.headers=new Headers({"Content-Type":f}),l.body=JSON.stringify(s.json)):f==="text/plain"?l.body=s.text:f==="application/x-www-form-urlencoded"&&s.formData?l.body=w1(s.formData):l.body=s.formData}return new Request(o,l)}function X3(e,t){let r=new URL(e.url),s=typeof t=="string"?Xa(t):t;if(r.pathname=s.pathname||"/",s.search){let o=new URLSearchParams(s.search),l=o.getAll("index");o.delete("index");for(let u of l.filter(Boolean))o.append("index",u);r.search=o.size?`?${o.toString()}`:""}else r.search="";return r.hash=s.hash||"",r}function w1(e){let t=new URLSearchParams;for(let[r,s]of e.entries())t.append(r,typeof s=="string"?s:s.name);return t}function ZS(e){let t=new FormData;for(let[r,s]of e.entries())t.append(r,s);return t}function hN(e,t,r,s=!1,o=!1){let l={},u=null,f,d=!1,p={},y=r&&ta(r[1])?r[1].error:void 0;return e.forEach(m=>{if(!(m.route.id in t))return;let k=m.route.id,v=t[k];if(ht(!xi(v),"Cannot handle redirect results in processLoaderData"),ta(v)){let w=v.error;if(y!==void 0&&(w=y,y=void 0),u=u||{},o)u[k]=w;else{let S=Co(e,k);u[S.route.id]==null&&(u[S.route.id]=w)}s||(l[k]=F3),d||(d=!0,f=Yu(v.error)?v.error.status:500),v.headers&&(p[k]=v.headers)}else l[k]=v.data,v.statusCode&&v.statusCode!==200&&!d&&(f=v.statusCode),v.headers&&(p[k]=v.headers)}),y!==void 0&&r&&(u={[r[0]]:y},r[2]&&(l[r[2]]=void 0)),{loaderData:l,errors:u,statusCode:f||200,loaderHeaders:p}}function QS(e,t,r,s,o,l,u){let{loaderData:f,errors:d}=hN(t,r,s);return o.filter(p=>!p.matches||p.matches.some(y=>y.shouldLoad)).forEach(p=>{let{key:y,match:m,controller:k}=p;if(k&&k.signal.aborted)return;let v=l[y];if(ht(v,"Did not find corresponding fetcher result"),ta(v)){let w=Co(e.matches,m?.route.id);d&&d[w.route.id]||(d={...d,[w.route.id]:v.error}),u.delete(y)}else if(xi(v))ht(!1,"Unhandled fetcher revalidation redirect");else{let w=ps(v.data);u.set(y,w)}}),{loaderData:f,errors:d}}function JS(e,t,r,s){let o=Object.entries(t).filter(([,l])=>l!==F3).reduce((l,[u,f])=>(l[u]=f,l),{});for(let l of r){let u=l.route.id;if(!t.hasOwnProperty(u)&&e.hasOwnProperty(u)&&l.route.loader&&(o[u]=e[u]),s&&s.hasOwnProperty(u))break}return o}function e5(e){return e?ta(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Co(e,t){return(t?e.slice(0,e.findIndex(s=>s.route.id===t)+1):[...e]).reverse().find(s=>s.route.hasErrorBoundary===!0)||e[0]}function Zf(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ka(e,{pathname:t,routeId:r,method:s,type:o,message:l}={}){let u="Unknown Server Error",f="Unknown @remix-run/router error";return e===400?(u="Bad Request",s&&t&&r?f=`You made a ${s} request to "${t}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:o==="invalid-body"&&(f="Unable to encode submission body")):e===403?(u="Forbidden",f=`Route "${r}" does not match URL "${t}"`):e===404?(u="Not Found",f=`No route matches URL "${t}"`):e===405&&(u="Method Not Allowed",s&&t&&r?f=`You made a ${s.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:s&&(f=`Invalid request method "${s.toUpperCase()}"`)),new dd(e||500,u,new Error(f),!0)}function Qf(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[s,o]=t[r];if(xi(o))return{key:s,result:o}}}function Z3(e){let t=typeof e=="string"?Xa(e):e;return $r({...t,hash:""})}function pN(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function xN(e){return new dd(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function gN(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,r])=>typeof t=="string"&&mN(r))}function mN(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function yN(e){return Cb(e.result)&&B3.has(e.result.status)}function ta(e){return e.type==="error"}function xi(e){return(e&&e.type)==="redirect"}function t5(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Cb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function bN(e){return B3.has(e)}function kN(e){return Cb(e)&&bN(e.status)&&e.headers.has("Location")}function vN(e){return Y8.has(e.toUpperCase())}function lr(e){return K8.has(e.toUpperCase())}function jb(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Dh(e,t){let r=typeof t=="string"?Xa(t).search:t.search;if(e[e.length-1].route.index&&jb(r||""))return e[e.length-1];let s=O3(e);return s[s.length-1]}function n5(e){let{formMethod:t,formAction:r,formEncType:s,text:o,formData:l,json:u}=e;if(!(!t||!r||!s)){if(o!=null)return{formMethod:t,formAction:r,formEncType:s,formData:void 0,json:void 0,text:o};if(l!=null)return{formMethod:t,formAction:r,formEncType:s,formData:l,json:void 0,text:void 0};if(u!==void 0)return{formMethod:t,formAction:r,formEncType:s,formData:void 0,json:u,text:void 0}}}function cy(e,t,r,s){return s?{state:"loading",location:e,matches:t,historyAction:r,formMethod:s.formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text}:{state:"loading",location:e,matches:t,historyAction:r,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function wN(e,t,r,s){return{state:"submitting",location:e,matches:t,historyAction:r,formMethod:s.formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text}}function yu(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function SN(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ps(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function EN(e,t){try{let r=e.sessionStorage.getItem(H3);if(r){let s=JSON.parse(r);for(let[o,l]of Object.entries(s||{}))l&&Array.isArray(l)&&t.set(o,new Set(l||[]))}}catch{}}function $N(e,t){if(t.size>0){let r={};for(let[s,o]of t)r[s]=[...o];try{e.sessionStorage.setItem(H3,JSON.stringify(r))}catch(s){cn(!1,`Failed to save applied view transitions in sessionStorage (${s}).`)}}}function r5(){let e,t,r=new Promise((s,o)=>{e=async l=>{s(l);try{await r}catch{}},t=async l=>{o(l);try{await r}catch{}}});return{promise:r,resolve:e,reject:t}}var Ni=g.createContext(null);Ni.displayName="DataRouter";var hd=g.createContext(null);hd.displayName="DataRouterState";var Q3=g.createContext(!1);function J3(){return g.useContext(Q3)}var Rb=g.createContext({isTransitioning:!1});Rb.displayName="ViewTransition";var eT=g.createContext(new Map);eT.displayName="Fetchers";var TN=g.createContext(null);TN.displayName="Await";var ra=g.createContext(null);ra.displayName="Navigation";var qp=g.createContext(null);qp.displayName="Location";var Ca=g.createContext({outlet:null,matches:[],isDataRoute:!1});Ca.displayName="Route";var Ab=g.createContext(null);Ab.displayName="RouteError";var tT="REACT_ROUTER_ERROR",CN="REDIRECT",jN="ROUTE_ERROR_RESPONSE";function RN(e){if(e.startsWith(`${tT}:${CN}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function AN(e){if(e.startsWith(`${tT}:${jN}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new dd(t.status,t.statusText,t.data)}catch{}}function MN(e,{relative:t}={}){ht(mc(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=g.useContext(ra),{hash:o,pathname:l,search:u}=pd(e,{relative:t}),f=l;return r!=="/"&&(f=l==="/"?r:Sa([r,l])),s.createHref({pathname:f,search:u,hash:o})}function mc(){return g.useContext(qp)!=null}function Pr(){return ht(mc(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(qp).location}var nT="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function rT(e){g.useContext(ra).static||g.useLayoutEffect(e)}function yc(){let{isDataRoute:e}=g.useContext(Ca);return e?GN():NN()}function NN(){ht(mc(),"useNavigate() may be used only in the context of a <Router> component.");let e=g.useContext(Ni),{basename:t,navigator:r}=g.useContext(ra),{matches:s}=g.useContext(Ca),{pathname:o}=Pr(),l=JSON.stringify(_p(s)),u=g.useRef(!1);return rT(()=>{u.current=!0}),g.useCallback((d,p={})=>{if(cn(u.current,nT),!u.current)return;if(typeof d=="number"){r.go(d);return}let y=ud(d,JSON.parse(l),o,p.relative==="path");e==null&&t!=="/"&&(y.pathname=y.pathname==="/"?t:Sa([t,y.pathname])),Ul(typeof d=="string"?d:$r(d),r.createHref(y),$b(r),"reject"),(p.replace?r.replace:r.push)(y,p.state,p)},[t,r,l,o,e])}var zN=g.createContext(null);function LN(e){let t=g.useContext(Ca).outlet;return g.useMemo(()=>t&&g.createElement(zN.Provider,{value:e},t),[t,e])}function Mb(){let{matches:e}=g.useContext(Ca);return e[e.length-1]?.params??{}}function pd(e,{relative:t}={}){let{matches:r}=g.useContext(Ca),{pathname:s}=Pr(),o=JSON.stringify(_p(r));return g.useMemo(()=>ud(e,JSON.parse(o),s,t==="path"),[e,o,s,t])}function DN(e,t,r){ht(mc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=g.useContext(ra),{matches:o}=g.useContext(Ca),l=o[o.length-1],u=l?l.params:{},f=l?l.pathname:"/",d=l?l.pathnameBase:"/",p=l&&l.route;{let E=p&&p.path||"";oT(f,!p||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${E}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
12
-
13
- Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let y=Pr(),m;m=y;let k=m.pathname||"/",v=k;if(d!=="/"){let E=d.replace(/^\//,"").split("/");v="/"+k.replace(/^\//,"").split("/").slice(E.length).join("/")}let w=r&&r.state.matches.length?r.state.matches.map(E=>Object.assign(E,{route:r.manifest[E.route.id]||E.route})):A3(e,{pathname:v});return cn(p||w!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),cn(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),PN(w&&w.map(E=>Object.assign({},E,{params:Object.assign({},u,E.params),pathname:Sa([d,s.encodeLocation?s.encodeLocation(E.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?d:Sa([d,s.encodeLocation?s.encodeLocation(E.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),o,r)}function ON(){let e=VN(),t=Yu(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,s="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:s},l={padding:"2px 4px",backgroundColor:s},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:l},"ErrorBoundary")," or"," ",g.createElement("code",{style:l},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),r?g.createElement("pre",{style:o},r):null,u)}var IN=g.createElement(ON,null),aT=class extends g.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=AN(e.digest);r&&(e=r)}let t=e!==void 0?g.createElement(Ca.Provider,{value:this.props.routeContext},g.createElement(Ab.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?g.createElement(_N,{error:e},t):t}};aT.contextType=Q3;var uy=new WeakMap;function _N({children:e,error:t}){let{basename:r,navigator:s}=g.useContext(ra);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let o=RN(t.digest);if(o){let l=uy.get(t);if(l)throw l;let u=_3(o.location,r),f=u.absoluteURL||u.to;if(Ul(o.location,f,$b(s),"allow-explicit"),v1(f))throw new Error("Invalid redirect location");if(I3&&!uy.get(t))if(u.isExternal||o.reloadDocument)window.location.href=f;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:o.replace}));throw uy.set(t,d),d}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f}`})}}return e}function qN({routeContext:e,match:t,children:r}){let s=g.useContext(Ni);return s&&s.static&&s.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=t.route.id),g.createElement(Ca.Provider,{value:e},r)}function PN(e,t=[],r){let s=r?.state;if(e==null){if(!s)return null;if(s.errors)e=s.matches;else if(t.length===0&&!s.initialized&&s.matches.length>0)e=s.matches;else return null}let o=e,l=s?.errors;if(l!=null){let y=o.findIndex(m=>m.route.id&&l?.[m.route.id]!==void 0);ht(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),o=o.slice(0,Math.min(o.length,y+1))}let u=!1,f=-1;if(r&&s){u=s.renderFallback;for(let y=0;y<o.length;y++){let m=o[y];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(f=y),m.route.id){let{loaderData:k,errors:v}=s,w=m.route.loader&&!k.hasOwnProperty(m.route.id)&&(!v||v[m.route.id]===void 0);if(m.route.lazy||w){r.isStatic&&(u=!0),f>=0?o=o.slice(0,f+1):o=[o[0]];break}}}}let d=r?.onError,p=s&&d?(y,m)=>{d(y,{location:s.location,params:s.matches?.[0]?.params??{},pattern:fd(s.matches),errorInfo:m})}:void 0;return o.reduceRight((y,m,k)=>{let v,w=!1,S=null,E=null;s&&(v=l&&m.route.id?l[m.route.id]:void 0,S=m.route.errorElement||IN,u&&(f<0&&k===0?(oT("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,E=null):f===k&&(w=!0,E=m.route.hydrateFallbackElement||null)));let R=t.concat(o.slice(0,k+1)),C=()=>{let T;return v?T=S:w?T=E:m.route.Component?T=g.createElement(m.route.Component,null):m.route.element?T=m.route.element:T=y,g.createElement(qN,{match:m,routeContext:{outlet:y,matches:R,isDataRoute:s!=null},children:T})};return s&&(m.route.ErrorBoundary||m.route.errorElement||k===0)?g.createElement(aT,{location:s.location,revalidation:s.revalidation,component:S,error:v,children:C(),routeContext:{outlet:null,matches:R,isDataRoute:!0},onError:p}):C()},null)}function Nb(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function BN(e){let t=g.useContext(Ni);return ht(t,Nb(e)),t}function sT(e){let t=g.useContext(hd);return ht(t,Nb(e)),t}function HN(e){let t=g.useContext(Ca);return ht(t,Nb(e)),t}function zb(e){let t=HN(e),r=t.matches[t.matches.length-1];return ht(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function FN(){return zb("useRouteId")}function UN(){let{matches:e,loaderData:t}=sT("useMatches");return g.useMemo(()=>e.map(r=>M3(r,t)),[e,t])}function VN(){let e=g.useContext(Ab),t=sT("useRouteError"),r=zb("useRouteError");return e!==void 0?e:t.errors?.[r]}function GN(){let{router:e}=BN("useNavigate"),t=zb("useNavigate"),r=g.useRef(!1);return rT(()=>{r.current=!0}),g.useCallback(async(o,l={})=>{cn(r.current,nT),r.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...l}))},[e,t])}var a5={};function oT(e,t,r){!t&&!a5[e]&&(a5[e]=!0,cn(!1,r))}var s5={};function o5(e,t){!e&&!s5[t]&&(s5[t]=!0,console.warn(t))}var KN="useOptimistic",i5=$M[KN],WN=()=>{};function YN(e){return i5?i5(e):[e,WN]}function XN(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&cn(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:g.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&cn(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:g.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&cn(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:g.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var ZN=["HydrateFallback","hydrateFallbackElement"],QN=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",t(r))}})}};function JN({router:e,flushSync:t,onError:r,useTransitions:s}){s=J3()||s;let[l,u]=g.useState(e.state),[f,d]=YN(l),[p,y]=g.useState(),[m,k]=g.useState({isTransitioning:!1}),[v,w]=g.useState(),[S,E]=g.useState(),[R,C]=g.useState(),T=g.useRef(new Map),A=g.useCallback((j,{deletedFetchers:O,newErrors:M,flushSync:H,viewTransitionOpts:F})=>{M&&r&&Object.values(M).forEach(B=>r(B,{location:j.location,params:j.matches[0]?.params??{},pattern:fd(j.matches)})),j.fetchers.forEach((B,U)=>{B.data!==void 0&&T.current.set(U,B.data)}),O.forEach(B=>T.current.delete(B)),o5(H===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let q=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(o5(F==null||q,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!F||!q){t&&H?t(()=>u(j)):s===!1?u(j):g.startTransition(()=>{s===!0&&d(B=>l5(B,j)),u(j)});return}if(t&&H){t(()=>{S&&(v?.resolve(),S.skipTransition()),k({isTransitioning:!0,flushSync:!0,currentLocation:F.currentLocation,nextLocation:F.nextLocation})});let B=e.window.document.startViewTransition(()=>{t(()=>u(j))});B.finished.finally(()=>{t(()=>{w(void 0),E(void 0),y(void 0),k({isTransitioning:!1})})}),t(()=>E(B));return}S?(v?.resolve(),S.skipTransition(),C({state:j,currentLocation:F.currentLocation,nextLocation:F.nextLocation})):(y(j),k({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}))},[e.window,t,S,v,s,d,r]);g.useLayoutEffect(()=>e.subscribe(A),[e,A]),g.useEffect(()=>{m.isTransitioning&&!m.flushSync&&w(new QN)},[m]),g.useEffect(()=>{if(v&&p&&e.window){let j=p,O=v.promise,M=e.window.document.startViewTransition(async()=>{s===!1?u(j):g.startTransition(()=>{s===!0&&d(H=>l5(H,j)),u(j)}),await O});M.finished.finally(()=>{w(void 0),E(void 0),y(void 0),k({isTransitioning:!1})}),E(M)}},[p,v,e.window,s,d]),g.useEffect(()=>{v&&p&&f.location.key===p.location.key&&v.resolve()},[v,S,f.location,p]),g.useEffect(()=>{!m.isTransitioning&&R&&(y(R.state),k({isTransitioning:!0,flushSync:!1,currentLocation:R.currentLocation,nextLocation:R.nextLocation}),C(void 0))},[m.isTransitioning,R]);let N=g.useMemo(()=>({createHref:e.createHref,createURL:e.createURL,encodeLocation:e.encodeLocation,go:j=>e.navigate(j),push:(j,O,M)=>e.navigate(j,{state:O,preventScrollReset:M?.preventScrollReset}),replace:(j,O,M)=>e.navigate(j,{replace:!0,state:O,preventScrollReset:M?.preventScrollReset})}),[e]),L=e.basename||"/",D=g.useMemo(()=>({router:e,navigator:N,static:!1,basename:L,onError:r}),[e,N,L,r]);return g.createElement(g.Fragment,null,g.createElement(Ni.Provider,{value:D},g.createElement(hd.Provider,{value:f},g.createElement(eT.Provider,{value:T.current},g.createElement(Rb.Provider,{value:m},g.createElement(rz,{basename:L,location:f.location,navigationType:f.historyAction,navigator:N,useTransitions:s},g.createElement(ez,{routes:e.routes,manifest:e.manifest,future:e.future,state:f,isStatic:!1,onError:r})))))),null)}function l5(e,t){return{...e,navigation:t.navigation.state!=="idle"?t.navigation:e.navigation,revalidation:t.revalidation!=="idle"?t.revalidation:e.revalidation,actionData:t.navigation.state!=="submitting"?t.actionData:e.actionData,fetchers:t.fetchers}}var ez=g.memo(tz);function tz({routes:e,manifest:t,future:r,state:s,isStatic:o,onError:l}){return DN(e,void 0,{manifest:t,state:s,isStatic:o,onError:l})}function nz({to:e,replace:t,state:r,relative:s}){ht(mc(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o,navigator:l}=g.useContext(ra);cn(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:u}=g.useContext(Ca),{pathname:f}=Pr(),d=yc(),p=ud(e,_p(u),f,s==="path");Ul(typeof e=="string"?e:$r(e),l.createHref(p),$b(l),"reject");let y=JSON.stringify(p);return g.useEffect(()=>{d(JSON.parse(y),{replace:t,state:r,relative:s})},[d,y,s,t,r]),null}function Lb(e){return LN(e.context)}function rz({basename:e="/",children:t=null,location:r,navigationType:s="POP",navigator:o,static:l=!1,useTransitions:u}){ht(!mc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),d=g.useMemo(()=>({basename:f,navigator:o,static:l,useTransitions:u,future:{}}),[f,o,l,u]);typeof r=="string"&&(r=Xa(r));let{pathname:p="/",search:y="",hash:m="",state:k=null,key:v="default",mask:w}=r,S=g.useMemo(()=>{let E=$a(p,f);return E==null?null:{location:{pathname:E,search:y,hash:m,state:k,key:v,mask:w},navigationType:s}},[f,p,y,m,k,v,s,w]);return cn(S!=null,`<Router basename="${f}"> is not able to match the URL "${p}${y}${m}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:g.createElement(ra.Provider,{value:d},g.createElement(qp.Provider,{children:t,value:S}))}var Oh="get",Ih="application/x-www-form-urlencoded";function Pp(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function az(e){return Pp(e)&&e.tagName.toLowerCase()==="button"}function sz(e){return Pp(e)&&e.tagName.toLowerCase()==="form"}function oz(e){return Pp(e)&&e.tagName.toLowerCase()==="input"}function iz(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function lz(e,t){return e.button===0&&(!t||t==="_self")&&!iz(e)}function S1(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let s=e[r];return t.concat(Array.isArray(s)?s.map(o=>[r,o]):[[r,s]])},[]))}function cz(e,t){let r=S1(e);return t&&t.forEach((s,o)=>{r.has(o)||t.getAll(o).forEach(l=>{r.append(o,l)})}),r}var Jf=null;function uz(){if(Jf===null)try{new FormData(document.createElement("form"),0),Jf=!1}catch{Jf=!0}return Jf}var dz=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function dy(e){return e!=null&&!dz.has(e)?(cn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ih}"`),null):e}function fz(e,t){let r,s,o,l,u;if(sz(e)){let f=e.getAttribute("action");s=f?$a(f,t):null,r=e.getAttribute("method")||Oh,o=dy(e.getAttribute("enctype"))||Ih,l=new FormData(e)}else if(az(e)||oz(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||f.getAttribute("action");if(s=d?$a(d,t):null,r=e.getAttribute("formmethod")||f.getAttribute("method")||Oh,o=dy(e.getAttribute("formenctype"))||dy(f.getAttribute("enctype"))||Ih,l=new FormData(f,e),!uz()){let{name:p,type:y,value:m}=e;if(y==="image"){let k=p?`${p}.`:"";l.append(`${k}x`,"0"),l.append(`${k}y`,"0")}else p&&l.append(p,m)}}else{if(Pp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Oh,s=null,o=Ih,u=e}return l&&o==="text/plain"&&(u=l,l=void 0),{action:s,method:r.toLowerCase(),encType:o,formData:l,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Db(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function iT(e,t,r,s){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${s}`:o.pathname=`${o.pathname}.${s}`:o.pathname==="/"?o.pathname=`_root.${s}`:t&&$a(o.pathname,t)==="/"?o.pathname=`${nc(t)}/_root.${s}`:o.pathname=`${nc(o.pathname)}.${s}`,o}async function hz(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function pz(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function xz(e,t,r){let s=await Promise.all(e.map(async o=>{let l=t.routes[o.route.id];if(l){let u=await hz(l,r);return u.links?u.links():[]}return[]}));return bz(s.flat(1).filter(pz).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function c5(e,t,r,s,o,l){let u=(d,p)=>r[p]?d.route.id!==r[p].route.id:!0,f=(d,p)=>r[p].pathname!==d.pathname||r[p].route.path?.endsWith("*")&&r[p].params["*"]!==d.params["*"];return l==="assets"?t.filter((d,p)=>u(d,p)||f(d,p)):l==="data"?t.filter((d,p)=>{let y=s.routes[d.route.id];if(!y||!y.hasLoader)return!1;if(u(d,p)||f(d,p))return!0;if(d.route.shouldRevalidate){let m=d.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function gz(e,t,{includeHydrateFallback:r}={}){return mz(e.map(s=>{let o=t.routes[s.route.id];if(!o)return[];let l=[o.module];return o.clientActionModule&&(l=l.concat(o.clientActionModule)),o.clientLoaderModule&&(l=l.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(l=l.concat(o.hydrateFallbackModule)),o.imports&&(l=l.concat(o.imports)),l}).flat(1))}function mz(e){return[...new Set(e)]}function yz(e){let t={},r=Object.keys(e).sort();for(let s of r)t[s]=e[s];return t}function bz(e,t){let r=new Set;return new Set(t),e.reduce((s,o)=>{let l=JSON.stringify(yz(o));return r.has(l)||(r.add(l),s.push({key:l,link:o})),s},[])}function Ob(){let e=g.useContext(Ni);return Db(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function kz(){let e=g.useContext(hd);return Db(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ib=g.createContext(void 0);Ib.displayName="FrameworkContext";function Bp(){let e=g.useContext(Ib);return Db(e,"You must render this element inside a <HydratedRouter> element"),e}function vz(e,t){let r=g.useContext(Ib),[s,o]=g.useState(!1),[l,u]=g.useState(!1),{onFocus:f,onBlur:d,onMouseEnter:p,onMouseLeave:y,onTouchStart:m}=t,k=g.useRef(null);g.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let S=R=>{R.forEach(C=>{u(C.isIntersecting)})},E=new IntersectionObserver(S,{threshold:.5});return k.current&&E.observe(k.current),()=>{E.disconnect()}}},[e]),g.useEffect(()=>{if(s){let S=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(S)}}},[s]);let v=()=>{o(!0)},w=()=>{o(!1),u(!1)};return r?e!=="intent"?[l,k,{}]:[l,k,{onFocus:bu(f,v),onBlur:bu(d,w),onMouseEnter:bu(p,v),onMouseLeave:bu(y,w),onTouchStart:bu(m,v)}]:[!1,k,{}]}function bu(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function wz({page:e,...t}){let r=J3(),{nonce:s}=Bp(),{router:o}=Ob(),l=g.useMemo(()=>A3(o.routes,e,o.basename),[o.routes,e,o.basename]);return l?(t.nonce==null&&s&&(t={...t,nonce:s}),r?g.createElement(Ez,{page:e,matches:l,...t}):g.createElement($z,{page:e,matches:l,...t})):null}function Sz(e){let{manifest:t,routeModules:r}=Bp(),[s,o]=g.useState([]);return g.useEffect(()=>{let l=!1;return xz(e,t,r).then(u=>{l||o(u)}),()=>{l=!0}},[e,t,r]),s}function Ez({page:e,matches:t,...r}){let s=Pr(),{future:o}=Bp(),{basename:l}=Ob(),u=g.useMemo(()=>{if(e===s.pathname+s.search+s.hash)return[];let f=iT(e,l,o.v8_trailingSlashAwareDataRequests,"rsc"),d=!1,p=[];for(let y of t)typeof y.route.shouldRevalidate=="function"?d=!0:p.push(y.route.id);return d&&p.length>0&&f.searchParams.set("_routes",p.join(",")),[f.pathname+f.search]},[l,o.v8_trailingSlashAwareDataRequests,e,s,t]);return g.createElement(g.Fragment,null,u.map(f=>g.createElement("link",{key:f,rel:"prefetch",as:"fetch",href:f,...r})))}function $z({page:e,matches:t,...r}){let s=Pr(),{future:o,manifest:l,routeModules:u}=Bp(),{basename:f}=Ob(),{loaderData:d,matches:p}=kz(),y=g.useMemo(()=>c5(e,t,p,l,s,"data"),[e,t,p,l,s]),m=g.useMemo(()=>c5(e,t,p,l,s,"assets"),[e,t,p,l,s]),k=g.useMemo(()=>{if(e===s.pathname+s.search+s.hash)return[];let S=new Set,E=!1;if(t.forEach(C=>{let T=l.routes[C.route.id];!T||!T.hasLoader||(!y.some(A=>A.route.id===C.route.id)&&C.route.id in d&&u[C.route.id]?.shouldRevalidate||T.hasClientLoader?E=!0:S.add(C.route.id))}),S.size===0)return[];let R=iT(e,f,o.v8_trailingSlashAwareDataRequests,"data");return E&&S.size>0&&R.searchParams.set("_routes",t.filter(C=>S.has(C.route.id)).map(C=>C.route.id).join(",")),[R.pathname+R.search]},[f,o.v8_trailingSlashAwareDataRequests,d,s,l,y,t,e,u]),v=g.useMemo(()=>gz(m,l),[m,l]),w=Sz(m);return g.createElement(g.Fragment,null,k.map(S=>g.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...r})),v.map(S=>g.createElement("link",{key:S,rel:"modulepreload",href:S,...r})),w.map(({key:S,link:E})=>g.createElement("link",{key:S,nonce:r.nonce,...E,crossOrigin:E.crossOrigin??r.crossOrigin})))}function Tz(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var Cz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Cz&&(window.__reactRouterVersion="7.18.5")}catch{}function jz(e,t){return eN({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:x8({window:t?.window}),hydrationData:Rz(),routes:e,mapRouteProperties:XN,hydrationRouteProperties:ZN,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function Rz(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Az(e.errors)}),e}function Az(e){if(!e)return null;let t=Object.entries(e),r={};for(let[s,o]of t)if(o&&o.__type==="RouteErrorResponse")r[s]=new dd(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(typeof o.__subType=="string"&&q8.includes(o.__subType)){let l=window[o.__subType];if(typeof l=="function")try{let u=new l(o.message);u.stack="",r[s]=u}catch{}}if(r[s]==null){let l=new Error(o.message);l.stack="",r[s]=l}}else r[s]=o;return r}var qu=g.forwardRef(function({onClick:t,discover:r="render",prefetch:s="none",relative:o,reloadDocument:l,replace:u,mask:f,state:d,target:p,to:y,preventScrollReset:m,viewTransition:k,defaultShouldRevalidate:v,...w},S){let{basename:E,navigator:R,useTransitions:C}=g.useContext(ra),T=typeof y=="string"&&Op.test(y),A=_3(y,E);y=A.to;let N=MN(y,{relative:o}),L=Pr(),D=null;if(f){let U=ud(f,[],L.mask?L.mask.pathname:"/",!0);E!=="/"&&(U.pathname=U.pathname==="/"?E:Sa([E,U.pathname])),D=R.createHref(U)}let[j,O,M]=vz(s,w),H=zz(y,{replace:u,mask:f,state:d,target:p,preventScrollReset:m,relative:o,viewTransition:k,defaultShouldRevalidate:v,useTransitions:C});function F(U){t&&t(U),U.defaultPrevented||H(U)}let q=!(A.isExternal||l),B=g.createElement("a",{...w,...M,href:(q?D:void 0)||A.absoluteURL||N,onClick:q?F:t,ref:Tz(S,O),target:p,"data-discover":!T&&r==="render"?"true":void 0});return j&&!T?g.createElement(g.Fragment,null,B,g.createElement(wz,{page:N})):B});qu.displayName="Link";var lT=g.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:s="",end:o=!1,style:l,to:u,viewTransition:f,children:d,...p},y){let m=pd(u,{relative:p.relative}),k=Pr(),v=g.useContext(hd),{navigator:w,basename:S}=g.useContext(ra),E=v!=null&&qz(m)&&f===!0,R=w.encodeLocation?w.encodeLocation(m).pathname:m.pathname,C=k.pathname,T=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;r||(C=C.toLowerCase(),T=T?T.toLowerCase():null,R=R.toLowerCase()),T&&S&&(T=$a(T,S)||T);const A=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let N=C===R||!o&&C.startsWith(R)&&C.charAt(A)==="/",L=T!=null&&(T===R||!o&&T.startsWith(R)&&T.charAt(R.length)==="/"),D={isActive:N,isPending:L,isTransitioning:E},j=N?t:void 0,O;typeof s=="function"?O=s(D):O=[s,N?"active":null,L?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let M=typeof l=="function"?l(D):l;return g.createElement(qu,{...p,"aria-current":j,className:O,ref:y,style:M,to:u,viewTransition:f},typeof d=="function"?d(D):d)});lT.displayName="NavLink";var Mz=g.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:s,replace:o,state:l,method:u=Oh,action:f,onSubmit:d,relative:p,preventScrollReset:y,viewTransition:m,defaultShouldRevalidate:k,...v},w)=>{let{useTransitions:S}=g.useContext(ra),E=Iz(),R=_z(f,{relative:p}),C=u.toLowerCase()==="get"?"get":"post",T=typeof f=="string"&&Op.test(f),A=N=>{if(d&&d(N),N.defaultPrevented)return;N.preventDefault();let L=N.nativeEvent.submitter,D=L?.getAttribute("formmethod")||u,j=()=>E(L||N.currentTarget,{fetcherKey:t,method:D,navigate:r,replace:o,state:l,relative:p,preventScrollReset:y,viewTransition:m,defaultShouldRevalidate:k});S&&r!==!1?g.startTransition(()=>j()):j()};return g.createElement("form",{ref:w,method:C,action:R,onSubmit:s?d:A,...v,"data-discover":!T&&e==="render"?"true":void 0})});Mz.displayName="Form";function Nz(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function cT(e){let t=g.useContext(Ni);return ht(t,Nz(e)),t}function zz(e,{target:t,replace:r,mask:s,state:o,preventScrollReset:l,relative:u,viewTransition:f,defaultShouldRevalidate:d,useTransitions:p}={}){let y=yc(),m=Pr(),k=pd(e,{relative:u});return g.useCallback(v=>{if(lz(v,t)){v.preventDefault();let w=r!==void 0?r:$r(m)===$r(k),S=()=>y(e,{replace:w,mask:s,state:o,preventScrollReset:l,relative:u,viewTransition:f,defaultShouldRevalidate:d});p?g.startTransition(()=>S()):S()}},[m,y,k,r,s,o,t,e,l,u,f,d,p])}function Lz(e){cn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=g.useRef(S1(e)),r=g.useRef(!1),s=Pr(),o=g.useMemo(()=>cz(s.search,r.current?null:t.current),[s.search]),l=yc(),u=g.useCallback((f,d)=>{const p=S1(typeof f=="function"?f(new URLSearchParams(o)):f);r.current=!0,l("?"+p,d)},[l,o]);return[o,u]}var Dz=0,Oz=()=>`__${String(++Dz)}__`;function Iz(){let{router:e}=cT("useSubmit"),{basename:t}=g.useContext(ra),r=FN(),s=e.fetch,o=e.navigate;return g.useCallback(async(l,u={})=>{let{action:f,method:d,encType:p,formData:y,body:m}=fz(l,t);if(u.navigate===!1){let k=u.fetcherKey||Oz();await s(k,r,u.action||f,{defaultShouldRevalidate:u.defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:y,body:m,formMethod:u.method||d,formEncType:u.encType||p,flushSync:u.flushSync})}else await o(u.action||f,{defaultShouldRevalidate:u.defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:y,body:m,formMethod:u.method||d,formEncType:u.encType||p,replace:u.replace,state:u.state,fromRouteId:r,flushSync:u.flushSync,viewTransition:u.viewTransition})},[s,o,t,r])}function _z(e,{relative:t}={}){let{basename:r}=g.useContext(ra),s=g.useContext(Ca);ht(s,"useFormAction must be used inside a RouteContext");let[o]=s.matches.slice(-1),l={...pd(e||".",{relative:t})},u=Pr();if(e==null){l.search=u.search;let f=new URLSearchParams(l.search),d=f.getAll("index");if(d.some(y=>y==="")){f.delete("index"),d.filter(m=>m).forEach(m=>f.append("index",m));let y=f.toString();l.search=y?`?${y}`:""}}return(!e||e===".")&&o.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(l.pathname=l.pathname==="/"?r:Sa([r,l.pathname])),$r(l)}function qz(e,{relative:t}={}){let r=g.useContext(Rb);ht(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=cT("useViewTransitionState"),o=pd(e,{relative:t});if(!r.isTransitioning)return!1;let l=$a(r.currentLocation.pathname,s)||r.currentLocation.pathname,u=$a(r.nextLocation.pathname,s)||r.nextLocation.pathname;return Zh(o.pathname,u)!=null||Zh(o.pathname,l)!=null}var xd=h3();function Pz(e){return g.createElement(JN,{flushSync:xd.flushSync,...e})}var ku={},u5;function Bz(){if(u5)return ku;u5=1,Object.defineProperty(ku,"__esModule",{value:!0}),ku.styleq=void 0;var e=new WeakMap,t="$$css";function r(o){var l,u,f;return o!=null&&(l=o.disableCache===!0,u=o.disableMix===!0,f=o.transform),function(){for(var p=[],y="",m=null,k="",v=l?null:e,w=new Array(arguments.length),S=0;S<arguments.length;S++)w[S]=arguments[S];for(;w.length>0;){var E=w.pop();if(!(E==null||E===!1)){if(Array.isArray(E)){for(var R=0;R<E.length;R++)w.push(E[R]);continue}var C=f!=null?f(E):E;if(C.$$css!=null){var T="";if(v!=null&&v.has(C)){var A=v.get(C);A!=null&&(T=A[0],k=A[2],p.push.apply(p,A[1]),v=A[3])}else{var N=[];for(var L in C){var D=C[L];if(L===t){var j=C[L];j!==!0&&(k=k?j+"; "+k:j);continue}typeof D=="string"||D===null?p.includes(L)||(p.push(L),v!=null&&N.push(L),typeof D=="string"&&(T+=T?" "+D:D)):console.error("styleq: ".concat(L," typeof ").concat(String(D),' is not "string" or "null".'))}if(v!=null){var O=new WeakMap;v.set(C,[T,N,k,O]),v=O}}T&&(y=y?T+" "+y:T)}else if(u)m==null&&(m={}),m=Object.assign({},C,m);else{var M=null;for(var H in C){var F=C[H];F!==void 0&&(p.includes(H)||(F!=null&&(m==null&&(m={}),M==null&&(M={}),M[H]=F),p.push(H),v=null))}M!=null&&(m=Object.assign(M,m))}}}var q=[y,m,k];return q}}var s=ku.styleq=r();return s.factory=r,ku}var Hz=Bz();function de(...e){const[t,r,s]=Hz.styleq(e),o={};return t!=null&&t!==""&&(o.className=t),r!=null&&Object.keys(r).length>0&&(o.style=r),s!=null&&s!==""&&(o["data-style-src"]=s),o}const Fz={"--color-accent":"light-dark(#0064E0, #2694FE)","--color-accent-muted":"light-dark(#0082FB33, #0082FB3F)","--color-on-accent":"light-dark(#FFFFFF, #FFFFFF)","--color-neutral":"light-dark(rgba(5, 54, 89, 0.1), rgba(223, 226, 229, 0.2))","--color-background-surface":"light-dark(#FFFFFF, #1F1F22)","--color-background-body":"light-dark(#F1F4F7, #111112)","--color-overlay":"light-dark(#01122866, #11111299)","--color-overlay-hover":"light-dark(#0536590C, #FFFFFF0C)","--color-overlay-pressed":"light-dark(#05365919, #FFFFFF19)","--color-background-muted":"light-dark(#0536590C, #1111127F)","--color-text-primary":"light-dark(#0A1317, #DFE2E5)","--color-text-secondary":"light-dark(#4E606F, #AAAFB5)","--color-text-disabled":"light-dark(#A4B0BC, #6F747C)","--color-text-accent":"light-dark(#0064E0, #3E9EFB)","--color-on-dark":"light-dark(#FFFFFF, #FFFFFF)","--color-on-light":"light-dark(#000000, #000000)","--color-icon-accent":"light-dark(#0064E0, #2694FE)","--color-icon-primary":"light-dark(#0A1317, #DFE2E5)","--color-icon-secondary":"light-dark(#4E606F, #AAAFB5)","--color-icon-disabled":"light-dark(#A4B0BC, #6F747C)","--color-background-card":"light-dark(#FFFFFF, #1F1F22)","--color-background-popover":"light-dark(#FFFFFF, #28292C)","--color-background-inverted":"light-dark(#0A1317, #FFFFFF)","--color-background-error-inverted":"light-dark(#AA071E, #E3193B)","--color-success":"light-dark(#0D8626, #0D8626)","--color-success-muted":"light-dark(#0B991F33, #0B991F3F)","--color-on-success":"light-dark(#FFFFFF, #FFFFFF)","--color-error":"light-dark(#E3193B, #F5394F)","--color-error-muted":"light-dark(#E3193B33, #F5394F3F)","--color-on-error":"light-dark(#FFFFFF, #FFFFFF)","--color-warning":"light-dark(#E9AF08, #F2C00B)","--color-warning-muted":"light-dark(#E2A40033, #E2A4003F)","--color-on-warning":"light-dark(#0A1317, #0A1317)","--color-border":"light-dark(#05365919, #F2F4F619)","--color-border-emphasized":"light-dark(#CCD3DB, #494D53)","--color-skeleton":"light-dark(#CCD3DB, #5A5E66)","--color-track":"light-dark(#CCD3DB, #5A5E66)","--color-shadow":"light-dark(rgba(5, 54, 89, 0.1), rgba(0, 0, 0, 0.3))","--color-tint-hover":"light-dark(black, white)","--color-background-blue":"light-dark(#0171E333, #0171E333)","--color-border-blue":"light-dark(#0064E0, #2694FE)","--color-icon-blue":"light-dark(#0064E0, #2694FE)","--color-text-blue":"light-dark(#042F97, #AFD7FF)","--color-background-cyan":"light-dark(#03A7D733, #03A7D733)","--color-border-cyan":"light-dark(#089DD0, #0171A4)","--color-icon-cyan":"light-dark(#00ACC1, #26C6DA)","--color-text-cyan":"light-dark(#014975, #A1EEF9)","--color-background-gray":"light-dark(#0A131733, #666A724C)","--color-border-gray":"light-dark(#647685, #748695)","--color-icon-gray":"light-dark(#4E606F, #AAAFB5)","--color-text-gray":"light-dark(#0A1317, #E7EAED)","--color-background-green":"light-dark(#24BB5E33, #24BB5E33)","--color-border-green":"light-dark(#0D8626, #0B991F)","--color-icon-green":"light-dark(#0D8626, #26A756)","--color-text-green":"light-dark(#09441F, #A5F690)","--color-background-orange":"light-dark(#F2790233, #F2790233)","--color-border-orange":"light-dark(#EB6E00, #B34A01)","--color-icon-orange":"light-dark(#E9690B, #FB8C00)","--color-text-orange":"light-dark(#6B2203, #FDB876)","--color-background-pink":"light-dark(#E638B333, #E638B333)","--color-border-pink":"light-dark(#F351C0, #C02294)","--color-icon-pink":"light-dark(#C2185B, #EC407A)","--color-text-pink":"light-dark(#650053, #FEADE3)","--color-background-purple":"light-dark(#7952FF33, #7952FF33)","--color-border-purple":"light-dark(#9081FF, #7340FE)","--color-icon-purple":"light-dark(#5B08D8, #7952FF)","--color-text-purple":"light-dark(#3E0697, #B3B0FE)","--color-background-red":"light-dark(#E3193B33, #E3193B33)","--color-border-red":"light-dark(#E3193B, #F5394F)","--color-icon-red":"light-dark(#D31130, #E3193B)","--color-text-red":"light-dark(#7B0210, #FFB2B8)","--color-background-teal":"light-dark(#0DB7AF33, #0DB7AF33)","--color-border-teal":"light-dark(#08A3A3, #08767D)","--color-icon-teal":"light-dark(#009688, #26A69A)","--color-text-teal":"light-dark(#083943, #40DCCD)","--color-background-yellow":"light-dark(#E2A40033, #E2A40033)","--color-border-yellow":"light-dark(#C58600, #B47700)","--color-icon-yellow":"light-dark(#FBC02D, #FFEE58)","--color-text-yellow":"light-dark(#753F07, #FBCE03)"},Uz={"--spacing-0":"0rem","--spacing-0-5":"0.125rem","--spacing-1":"0.25rem","--spacing-1-5":"0.375rem","--spacing-2":"0.5rem","--spacing-3":"0.75rem","--spacing-4":"1rem","--spacing-5":"1.25rem","--spacing-6":"1.5rem","--spacing-7":"1.75rem","--spacing-8":"2rem","--spacing-9":"2.25rem","--spacing-10":"2.5rem","--spacing-11":"2.75rem","--spacing-12":"3rem"},Wn={"--spacing-1":"var(--spacing-1)","--spacing-2":"var(--spacing-2)","--spacing-4":"var(--spacing-4)"},Vz={"--size-element-sm":"28px","--size-element-md":"32px","--size-element-lg":"36px"},Gz={"--border-width":"1px"},Kz={"--focus-outline-width":"2px","--focus-outline-style":"solid","--focus-outline-color":"var(--color-accent)","--focus-outline-offset":"3px"},Hp={"--focus-outline-width":"var(--focus-outline-width)","--focus-outline-style":"var(--focus-outline-style)","--focus-outline-color":"var(--focus-outline-color)","--focus-outline-offset":"var(--focus-outline-offset)"},Wz={"--radius-none":"0px","--radius-inner":"4px","--radius-element":"8px","--radius-container":"12px","--radius-page":"28px","--radius-chat":"28px","--radius-full":"9999px"},Yz={"--shadow-low":"0px 1px 1px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)), 0px 2px 8px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2))","--shadow-med":"0px 1px 2px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)), 0px 2px 12px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2))","--shadow-high":"0px 2px 2px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)), 0px 8px 24px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3))","--shadow-inset-hover":"inset 0px 0px 0px 2px light-dark(rgba(5, 54, 89, 0.15), rgba(223, 226, 229, 0.2))","--shadow-inset-selected":"inset 0px 0px 0px 2px rgba(1, 113, 227, 0.5)","--shadow-inset-success":"inset 0px 0px 0px 2px rgba(38, 167, 86, 0.3)","--shadow-inset-warning":"inset 0px 0px 0px 2px rgba(226, 164, 0, 0.3)","--shadow-inset-error":"inset 0px 0px 0px 2px rgba(227, 25, 59, 0.3)"},Xz={"--duration-fast-min":"130ms","--duration-fast":"175ms","--duration-fast-max":"230ms","--duration-medium-min":"310ms","--duration-medium":"410ms","--duration-medium-max":"550ms","--duration-slow-min":"730ms","--duration-slow":"975ms","--duration-slow-max":"1300ms"},Zz={"--ease-standard":"cubic-bezier(0.24, 1, 0.4, 1)"},Qz={"--font-family-body":'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',"--font-family-code":'"SF Mono", Monaco, Consolas, monospace',"--font-family-heading":'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif'},Jz={"--font-size-4xs":"0.375rem","--font-size-3xs":"0.4375rem","--font-size-2xs":"0.5rem","--font-size-xs":"0.625rem","--font-size-sm":"0.75rem","--font-size-base":"0.875rem","--font-size-lg":"1.0625rem","--font-size-xl":"1.25rem","--font-size-2xl":"1.5rem","--font-size-3xl":"1.8125rem","--font-size-4xl":"2.1875rem","--font-size-5xl":"2.625rem"},e9={"--font-weight-normal":"400","--font-weight-medium":"500","--font-weight-semibold":"600","--font-weight-bold":"700"},t9={"--text-heading-1-size":"var(--font-size-2xl)","--text-heading-1-weight":"var(--font-weight-semibold)","--text-heading-1-leading":"1.3333","--text-heading-2-size":"var(--font-size-xl)","--text-heading-2-weight":"var(--font-weight-semibold)","--text-heading-2-leading":"1.4","--text-heading-3-size":"var(--font-size-lg)","--text-heading-3-weight":"var(--font-weight-semibold)","--text-heading-3-leading":"1.4118","--text-heading-4-size":"var(--font-size-base)","--text-heading-4-weight":"var(--font-weight-semibold)","--text-heading-4-leading":"1.4286","--text-heading-5-size":"var(--font-size-sm)","--text-heading-5-weight":"var(--font-weight-semibold)","--text-heading-5-leading":"1.6667","--text-heading-6-size":"var(--font-size-xs)","--text-heading-6-weight":"var(--font-weight-semibold)","--text-heading-6-leading":"1.6","--text-body-size":"var(--font-size-base)","--text-body-weight":"var(--font-weight-normal)","--text-body-leading":"1.4286","--text-large-size":"var(--font-size-lg)","--text-large-weight":"var(--font-weight-semibold)","--text-large-leading":"1.4118","--text-label-size":"var(--font-size-base)","--text-label-weight":"var(--font-weight-medium)","--text-label-leading":"1.4286","--text-code-size":"var(--font-size-base)","--text-code-weight":"var(--font-weight-normal)","--text-code-leading":"1.4286","--text-supporting-size":"var(--font-size-sm)","--text-supporting-weight":"var(--font-weight-normal)","--text-supporting-leading":"1.6667","--text-display-1-size":"var(--font-size-5xl)","--text-display-1-weight":"var(--font-weight-normal)","--text-display-1-leading":"1.2381","--text-display-2-size":"var(--font-size-4xl)","--text-display-2-weight":"var(--font-weight-normal)","--text-display-2-leading":"1.2571","--text-display-3-size":"var(--font-size-3xl)","--text-display-3-weight":"var(--font-weight-normal)","--text-display-3-leading":"1.2414"},_b=g.createContext(null);_b.displayName="LayoutAreaContext";const uT=[];function aa(e){const t=g.createContext(e);return t.displayName="LayerScopedContext",uT.push(r=>x.jsx(t,{value:e,children:r})),t}function rc({children:e}){const[t]=g.useState(()=>uT.slice());return t.reduceRight((r,s)=>s(r),e)}const n9={hasHeader:!1,hasFooter:!1,hasStart:!1,hasEnd:!1},Fp=aa(n9);Fp.displayName="LayoutSlotsContext";const Up=aa(null);Up.displayName="LayoutDividerContext";const r9={center:{kGNEyG:"x6s0dn4",$$css:!0},end:{kGNEyG:"xuk3077",$$css:!0},start:{kGNEyG:"x1cy8zhl",$$css:!0},stretch:{kGNEyG:"x1qjc9v5",$$css:!0}},a9={start:{kjj79g:"x1nhvcw1",$$css:!0},center:{kjj79g:"xl56j7k",$$css:!0},end:{kjj79g:"x13a6bvl",$$css:!0},between:{kjj79g:"x1qughib",$$css:!0},around:{kjj79g:"x1l1ennw",$$css:!0},evenly:{kjj79g:"xaw8158",$$css:!0}},s9={horizontal:{kXwgrk:"x1q0g3np",$$css:!0},vertical:{kXwgrk:"xdt5ytf",$$css:!0}},o9={nowrap:{kwnvtZ:"xozqiw3",$$css:!0},wrap:{kwnvtZ:"x1a02dak",$$css:!0},"wrap-reverse":{kwnvtZ:"x8hhl5t",$$css:!0}},i9={stack:{k1xSpc:"x78zum5",$$css:!0}},l9={0:{k1C7PZ:"x1o57wo1",khm7nJ:"x6yxi7o",$$css:!0},1:{k1C7PZ:"x1lfs0n9",khm7nJ:"x1ngg2t4",$$css:!0},2:{k1C7PZ:"xak3so",khm7nJ:"x1x7z4sm",$$css:!0},3:{k1C7PZ:"xewh9hi",khm7nJ:"x4olc9o",$$css:!0},4:{k1C7PZ:"xty4p9g",khm7nJ:"xtx9w7w",$$css:!0},5:{k1C7PZ:"x1eqhezk",khm7nJ:"x1iu6piu",$$css:!0},6:{k1C7PZ:"x3qlgwd",khm7nJ:"xczp1bk",$$css:!0},8:{k1C7PZ:"xicv188",khm7nJ:"xgx0vcf",$$css:!0},10:{k1C7PZ:"x1p37tyl",khm7nJ:"x1xpicb7",$$css:!0},"0.5":{k1C7PZ:"x1kihgfc",khm7nJ:"x1tw44j4",$$css:!0},"1.5":{k1C7PZ:"x1thn6ci",khm7nJ:"xhq53yo",$$css:!0}};function E1({crossAlign:e,direction:t,gap:r,mainAlign:s,wrap:o}){return[i9.stack,s9[t],r!=null&&l9[r],e!=null&&r9[e],s!=null&&a9[s],o!=null&&o9[o]]}const c9={reset:{kAzted:"x2lwn1j",k7Eaqz:"xeuugli",$$css:!0}},u9={center:{kSGwAc:"xamitd3",$$css:!0},end:{kSGwAc:"xpvyfi4",$$css:!0},start:{kSGwAc:"xqcrz7y",$$css:!0},stretch:{kSGwAc:"xkh2ocl",$$css:!0}},d9={fill:{kzQI83:"x1iyjqo2",$$css:!0},static:{kzQI83:"x1c4vz4f",kmuXW:"x2lah0s",$$css:!0}};function dT({crossAlignSelf:e,size:t}={}){return[c9.reset,d9[t??"static"],e!=null&&u9[e]]}const qb="astryx",fT=qb,Vp=qb,f9=qb;function hT(e){return`${fT}-${e}`}function Dr(e){return`data-${Vp}-${e}`}function h9(e){return`--${f9}-${e}`}function pT(e){return`data-${e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`}function p9(e){return hT(e)}function x9(e){const t={};if(e)for(const[r,s]of Object.entries(e))s!=null&&(t[pT(r)]=String(s));return t}function fe(e,t){return{className:p9(e),...x9(t)}}function g9(e){let t="";for(const r of e){const s=r.codePointAt(0)??0;r==='"'||r==="\\"||s<32||s===127?t+=`\\${(s===0?65533:s).toString(16)} `:t+=r}return t}function Gl(e){return e==="base"?"":e.split("+").map(t=>{const r=t.indexOf(":"),s=r===-1?t:t.slice(0,r),o=r===-1?t:t.slice(r+1);return`[${pT(s)}="${g9(o)}"]`}).join("")}const d5=typeof Intl.Segmenter=="function"?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function m9(e){if(d5){const r=d5.segment(e)[Symbol.iterator]().next();return r.done?"":r.value.segment}const t=e.codePointAt(0);return t==null?"":String.fromCodePoint(t)}function eh(e,t){const r={...e,...t},s=[e.className,t.className].filter(Boolean).join(" ");s?r.className=s:delete r.className;const o=t.style&&e.style?{...e.style,...t.style}:t.style||e.style;return o?r.style=o:delete r.style,r}function ye(e,t,r,s){if(typeof e=="string"){const f=e,d=t??{className:""},p=r;let y=d.className?`${f} ${d.className}`:f;p&&(y=`${y} ${p}`);const m=s&&d.style?{...d.style,...s}:s||d.style;return{...d,className:y,style:m}}let u=eh(e,typeof t=="string"?{className:t}:t??{});return typeof r=="string"?u=eh(u,{className:r}):r!=null&&(u=eh(u,{style:r})),s!=null&&(u=eh(u,{style:s})),u}function Pb(...e){return t=>{const r=[];for(const s of e)if(typeof s=="function"){const o=s(t);r.push(typeof o=="function"?o:()=>s(null))}else if(s!=null){const o=s;o.current=t,r.push(()=>{o.current=null})}if(t!=null&&r.length>0)return()=>{for(const s of r)s()}}}function Ir(...e){return t=>{for(const r of e)if(r?.(t),t.defaultPrevented)return}}let gi=null;const Kl=new Map;function y9(){return typeof ResizeObserver>"u"?null:(gi||(gi=new ResizeObserver(e=>{for(const t of e){const r=Kl.get(t.target);if(r)for(const s of[...r.keys()])s(t)}})),gi)}function Xu(e,t){const r=Kl.get(e);r?r.set(t,(r.get(t)??0)+1):Kl.set(e,new Map([[t,1]])),y9()?.observe(e),t({target:e});let o=!0;return()=>{o&&(o=!1,b9(e,t))}}function b9(e,t){const r=Kl.get(e);if(t!=null){const s=r?.get(t);if(r==null||s==null)return;if(s>1){r.set(t,s-1);return}if(r.delete(t),r.size>0)return}Kl.delete(e),gi&&(gi.unobserve(e),Kl.size===0&&(gi.disconnect(),gi=null))}function Us(e){return e!=null&&typeof e!="boolean"&&e!==""}function f5(...e){const t=e.flatMap(r=>typeof r=="string"?r.trim().split(/\s+/):[]).filter(Boolean);if(t.length!==0)return Array.from(new Set(t)).join(" ")}function Bb(e,t=[],r){return{ariaLabelledBy:r?f5(r.labelID,e):void 0,ariaDescribedBy:f5(r?.describedByIDs,...t)}}const k9={transparent:{r:0,g:0,b:0,a:0},black:{r:0,g:0,b:0,a:1},white:{r:255,g:255,b:255,a:1}},Qh=(e,t,r)=>Math.max(t,Math.min(r,e));function v9(e){return e.split("").map(t=>t+t).join("")}function xT(e){if(typeof e!="string")return null;const t=e.trim().replace(/^#/,""),r=t.length===3||t.length===4?v9(t):t;return r.length!==6&&r.length!==8||!/^[0-9a-fA-F]+$/.test(r)?null:{r:parseInt(r.slice(0,2),16),g:parseInt(r.slice(2,4),16),b:parseInt(r.slice(4,6),16),a:r.length===8?parseInt(r.slice(6,8),16)/255:1}}function w9(e){const t=e.indexOf("(");if(t===-1||!e.trim().endsWith(")"))return null;const s=e.slice(t+1,e.lastIndexOf(")")).replace(/\//g," ").split(/[\s,]+/).map(p=>p.trim()).filter(Boolean);if(s.length<3)return null;const o=p=>{const y=p.endsWith("%")?parseFloat(p)/100*255:parseFloat(p);return Qh(y,0,255)},l=o(s[0]),u=o(s[1]),f=o(s[2]);if([l,u,f].some(Number.isNaN))return null;let d=1;if(s.length>=4){const p=s[3];if(d=p.endsWith("%")?parseFloat(p)/100:parseFloat(p),Number.isNaN(d))return null;d=Qh(d,0,1)}return{r:l,g:u,b:f,a:d}}function Zu(e){const t=e.trim(),r=k9[t.toLowerCase()];return r?{...r}:t.startsWith("#")?xT(t):/^rgba?\(/i.test(t)?w9(t):null}function Hb(e,t,r){const s=o=>Qh(Math.round(o),0,255).toString(16).padStart(2,"0").toUpperCase();return`#${s(e)}${s(t)}${s(r)}`}function gT({r:e,g:t,b:r,a:s}){if(s>=1)return Hb(e,t,r);const o=l=>Qh(Math.round(l),0,255);return`rgba(${o(e)}, ${o(t)}, ${o(r)}, ${parseFloat(s.toFixed(4))})`}function S9(e,t){return`${e}: ${t}`}function Ea(e,t,...r){}function Fb(e,t,...r){console.error(S9(e,t),...r)}function Gp(e,t,r,...s){}const E9={kbCHJM:"x1nrll8i",k3aq6I:"xsqj5wx",$$css:!0},Ka={mirror:{k3aq6I:"xgtlewx",$$css:!0},centerInline:e=>[E9,{"--x-transform":`translate(-50%, ${e})`!=null?`translate(-50%, ${e})`:void 0}]},$9=Hp["--focus-outline-width"],T9=Hp["--focus-outline-style"],C9=Hp["--focus-outline-color"],j9=Hp["--focus-outline-offset"],R9={outlineWidth:$9,outlineStyle:T9,outlineColor:C9,outlineOffset:j9},A9={outlineWidth:"",outlineStyle:"",outlineColor:"",outlineOffset:""},Bs={focusVisible:{kMeerF:"x1k57tk5 x1vidyx5",k3XXqK:"x1t137rt x1jhp3zv",kjBf7l:"xx47ajj",kInvED:"x1wfwxd8 x1vwwbsn",$$css:!0},focusWithin:{kMeerF:"x1k57tk5 x11j6mr8",k3XXqK:"x1t137rt xciu248",kjBf7l:"x1uy843r",kInvED:"x1wfwxd8 x1jumodi",$$css:!0},focusWithinFirstChild:{kMeerF:"x1k57tk5 xmmisi4",k3XXqK:"x1t137rt xfd04fr",kjBf7l:"xobxmqy",kInvED:"x1wfwxd8 x2vr5qc",$$css:!0},suppressed:{kMeerF:"x1k57tk5",k3XXqK:"x1t137rt",kInvED:"x1wfwxd8",$$css:!0},publishFocusVisibleVars:{"--_focus-outline":"x17wzz1v xqih627","--_focus-outline-offset":"xgzxwq1 xqchwus",$$css:!0},focusWithinOrPublished:{kI3sdo:"xaw4jrz x16s19ga",kInvED:"x1kvmbwa x1jumodi",$$css:!0}};function Cl(e){return(...t)=>de(e,...t)}const pn={focusVisible:Cl(Bs.focusVisible),focusWithin:Cl(Bs.focusWithin),focusWithinFirstChild:Cl(Bs.focusWithinFirstChild),suppressed:Cl(Bs.suppressed),publishFocusVisibleVars:Cl(Bs.publishFocusVisibleVars),focusWithinOrPublished:Cl(Bs.focusWithinOrPublished)},M9=229;function gd(e){return e.isComposing===!0||e.keyCode===M9}const N9={releaseMs:200},or={backgroundColor:{"--astryx-press-alpha":"x11z29ks xli5ek3",kKVMdj:"x14e4jsf",k44tkh:"x8s9nux",kyAemX:"xwkbtvz",kWV6AL:"xziyay6","--_press-paint":"xz2mauf","--_press-paint-image":"x1l7afqf",kWkggS:"xjbqb8w x1anq1lc x1s5nr2v x13ugjdw xl8sb5e xoevpu5 xprvw0a",kKwaWg:"x7ngsy6 xubczrd",$$css:!0},backgroundImage:{"--astryx-press-alpha":"x11z29ks xli5ek3",kKVMdj:"x14e4jsf",k44tkh:"x8s9nux",kyAemX:"xwkbtvz",kWV6AL:"xziyay6","--_press-paint":"xz2mauf","--_press-paint-image":"x1l7afqf",kKwaWg:"x7uyq82 x3f84ok x7ngsy6 xubczrd xmvprkv xetgvay",$$css:!0},pressedBackgroundColor:{"--astryx-press-alpha":"x11z29ks xli5ek3",kKVMdj:"x14e4jsf",k44tkh:"x8s9nux",kyAemX:"xwkbtvz",kWV6AL:"xziyay6","--_press-paint":"xz2mauf","--_press-paint-image":"x1l7afqf",kWkggS:"x1anq1lc x1s5nr2v x13ugjdw xl8sb5e",kKwaWg:"x7ngsy6 xubczrd",$$css:!0},pressedAlpha:{"--astryx-press-alpha":"x11z29ks xli5ek3",kKVMdj:"x14e4jsf",k44tkh:"x8s9nux",kyAemX:"xwkbtvz",kWV6AL:"xziyay6","--_press-paint":"xz2mauf","--_press-paint-image":"x1l7afqf",$$css:!0}},Ub={0:"spacing0",.5:"spacing0_5",1:"spacing1",1.5:"spacing1_5",2:"spacing2",3:"spacing3",4:"spacing4",5:"spacing5",6:"spacing6",8:"spacing8",10:"spacing10"},zi={0:{kZCmMZ:"x18gyask",kwRFfy:"x1s0aq8i",kLKAdn:"x1ydh6w3",kGO01o:"x1l20ajd",$$css:!0},1:{kZCmMZ:"x1vsv5vr",kwRFfy:"x1nryj5t",kLKAdn:"xfsso4q",kGO01o:"xy143xn",$$css:!0},2:{kZCmMZ:"x12gdq22",kwRFfy:"x1djylfy",kLKAdn:"x1xye8es",kGO01o:"x1wesfrj",$$css:!0},3:{kZCmMZ:"x126nfab",kwRFfy:"x1t818jl",kLKAdn:"x1vlblms",kGO01o:"xvmdzux",$$css:!0},4:{kZCmMZ:"x1rey3nv",kwRFfy:"xnjyzlh",kLKAdn:"x1oa1p4a",kGO01o:"x1awphl8",$$css:!0},5:{kZCmMZ:"x1blguxw",kwRFfy:"xdbrk9v",kLKAdn:"xx7rijo",kGO01o:"x1hk98q",$$css:!0},6:{kZCmMZ:"x31w388",kwRFfy:"x1we12cn",kLKAdn:"x1adxfkp",kGO01o:"xjpqqx5",$$css:!0},8:{kZCmMZ:"x1j3hnjz",kwRFfy:"x1q91b2g",kLKAdn:"xoxd1wu",kGO01o:"x2oz4g1",$$css:!0},10:{kZCmMZ:"xqp078j",kwRFfy:"x160ivqr",kLKAdn:"xk6660b",kGO01o:"x2izi54",$$css:!0},"0.5":{kZCmMZ:"x138rykx",kwRFfy:"x1le3yxw",kLKAdn:"xbx876j",kGO01o:"xij103a",$$css:!0},"1.5":{kZCmMZ:"xfti1ec",kwRFfy:"x17hk9do",kLKAdn:"x1kwdpsa",kGO01o:"x1opdxmq",$$css:!0}},Ei={0:{"--container-padding-inline-start":"x1gu2k80","--container-padding-inline-end":"x91ghl5",$$css:!0},1:{"--container-padding-inline-start":"x1cvlban","--container-padding-inline-end":"x2oyxnl",$$css:!0},2:{"--container-padding-inline-start":"x1xlrr2o","--container-padding-inline-end":"xcas3b9",$$css:!0},3:{"--container-padding-inline-start":"xfdwxua","--container-padding-inline-end":"xu0ipoa",$$css:!0},4:{"--container-padding-inline-start":"x1dlhslv","--container-padding-inline-end":"xs0pscg",$$css:!0},5:{"--container-padding-inline-start":"x1s81nki","--container-padding-inline-end":"xgkj7vj",$$css:!0},6:{"--container-padding-inline-start":"x1ep0dkj","--container-padding-inline-end":"x94cj42",$$css:!0},8:{"--container-padding-inline-start":"xw1diwv","--container-padding-inline-end":"x1b9k1pi",$$css:!0},10:{"--container-padding-inline-start":"xserb3f","--container-padding-inline-end":"xx5lg5w",$$css:!0},"0.5":{"--container-padding-inline-start":"x14ws0sr","--container-padding-inline-end":"x1wz3t3y",$$css:!0},"1.5":{"--container-padding-inline-start":"x176g23i","--container-padding-inline-end":"xntetml",$$css:!0}},Mo={0:{"--container-padding-block-start":"x1i3qcxz",$$css:!0},1:{"--container-padding-block-start":"xnsckjb",$$css:!0},2:{"--container-padding-block-start":"xa8b4fq",$$css:!0},3:{"--container-padding-block-start":"x11k4f5r",$$css:!0},4:{"--container-padding-block-start":"xm01sq8",$$css:!0},5:{"--container-padding-block-start":"xp8wdkl",$$css:!0},6:{"--container-padding-block-start":"x1hmud4d",$$css:!0},8:{"--container-padding-block-start":"xfv60at",$$css:!0},10:{"--container-padding-block-start":"x17h9kl7",$$css:!0},"0.5":{"--container-padding-block-start":"xvdf9ev",$$css:!0},"1.5":{"--container-padding-block-start":"x1kbx601",$$css:!0}},Vs={0:{"--container-padding-block-end":"xkunwnr",$$css:!0},1:{"--container-padding-block-end":"x57a7ii",$$css:!0},2:{"--container-padding-block-end":"x1lsgcmx",$$css:!0},3:{"--container-padding-block-end":"x1q3ppug",$$css:!0},4:{"--container-padding-block-end":"x4hfsld",$$css:!0},5:{"--container-padding-block-end":"xbib2ws",$$css:!0},6:{"--container-padding-block-end":"x1q8d17g",$$css:!0},8:{"--container-padding-block-end":"x8lgq76",$$css:!0},10:{"--container-padding-block-end":"x15vxphk",$$css:!0},"0.5":{"--container-padding-block-end":"x1cao3zv",$$css:!0},"1.5":{"--container-padding-block-end":"xv53x8y",$$css:!0}},z9={0:{"--layout-padding-own-outer-x":"xhcsosl",$$css:!0},1:{"--layout-padding-own-outer-x":"x14y473",$$css:!0},2:{"--layout-padding-own-outer-x":"x18c6olm",$$css:!0},3:{"--layout-padding-own-outer-x":"x1cfn5ow",$$css:!0},4:{"--layout-padding-own-outer-x":"xh30wjg",$$css:!0},5:{"--layout-padding-own-outer-x":"xse87af",$$css:!0},6:{"--layout-padding-own-outer-x":"xznoj5s",$$css:!0},8:{"--layout-padding-own-outer-x":"xtjvahm",$$css:!0},10:{"--layout-padding-own-outer-x":"xczqutc",$$css:!0},"0.5":{"--layout-padding-own-outer-x":"x1ftjo2o",$$css:!0},"1.5":{"--layout-padding-own-outer-x":"x1k4nu17",$$css:!0}},L9={0:{"--layout-padding-own-outer-y":"xe1wva8",$$css:!0},1:{"--layout-padding-own-outer-y":"x1nxw61z",$$css:!0},2:{"--layout-padding-own-outer-y":"xm4vj23",$$css:!0},3:{"--layout-padding-own-outer-y":"x69uvy7",$$css:!0},4:{"--layout-padding-own-outer-y":"x139ridu",$$css:!0},5:{"--layout-padding-own-outer-y":"x1cq2jmq",$$css:!0},6:{"--layout-padding-own-outer-y":"x1ir1f5p",$$css:!0},8:{"--layout-padding-own-outer-y":"xhbsdkj",$$css:!0},10:{"--layout-padding-own-outer-y":"xaqnhag",$$css:!0},"0.5":{"--layout-padding-own-outer-y":"x1b6unwa",$$css:!0},"1.5":{"--layout-padding-own-outer-y":"x1g16mdy",$$css:!0}},D9={0:{kZCmMZ:"x18gyask",kwRFfy:"x1s0aq8i",$$css:!0},1:{kZCmMZ:"x1vsv5vr",kwRFfy:"x1nryj5t",$$css:!0},2:{kZCmMZ:"x12gdq22",kwRFfy:"x1djylfy",$$css:!0},3:{kZCmMZ:"x126nfab",kwRFfy:"x1t818jl",$$css:!0},4:{kZCmMZ:"x1rey3nv",kwRFfy:"xnjyzlh",$$css:!0},5:{kZCmMZ:"x1blguxw",kwRFfy:"xdbrk9v",$$css:!0},6:{kZCmMZ:"x31w388",kwRFfy:"x1we12cn",$$css:!0},8:{kZCmMZ:"x1j3hnjz",kwRFfy:"x1q91b2g",$$css:!0},10:{kZCmMZ:"xqp078j",kwRFfy:"x160ivqr",$$css:!0},"0.5":{kZCmMZ:"x138rykx",kwRFfy:"x1le3yxw",$$css:!0},"1.5":{kZCmMZ:"xfti1ec",kwRFfy:"x17hk9do",$$css:!0}},O9={0:{kLKAdn:"x1ydh6w3",kGO01o:"x1l20ajd",$$css:!0},1:{kLKAdn:"xfsso4q",kGO01o:"xy143xn",$$css:!0},2:{kLKAdn:"x1xye8es",kGO01o:"x1wesfrj",$$css:!0},3:{kLKAdn:"x1vlblms",kGO01o:"xvmdzux",$$css:!0},4:{kLKAdn:"x1oa1p4a",kGO01o:"x1awphl8",$$css:!0},5:{kLKAdn:"xx7rijo",kGO01o:"x1hk98q",$$css:!0},6:{kLKAdn:"x1adxfkp",kGO01o:"xjpqqx5",$$css:!0},8:{kLKAdn:"xoxd1wu",kGO01o:"x2oz4g1",$$css:!0},10:{kLKAdn:"xk6660b",kGO01o:"x2izi54",$$css:!0},"0.5":{kLKAdn:"xbx876j",kGO01o:"xij103a",$$css:!0},"1.5":{kLKAdn:"x1kwdpsa",kGO01o:"x1opdxmq",$$css:!0}},mT={0:{kZCmMZ:"x18gyask",$$css:!0},1:{kZCmMZ:"x1vsv5vr",$$css:!0},2:{kZCmMZ:"x12gdq22",$$css:!0},3:{kZCmMZ:"x126nfab",$$css:!0},4:{kZCmMZ:"x1rey3nv",$$css:!0},5:{kZCmMZ:"x1blguxw",$$css:!0},6:{kZCmMZ:"x31w388",$$css:!0},8:{kZCmMZ:"x1j3hnjz",$$css:!0},10:{kZCmMZ:"xqp078j",$$css:!0},"0.5":{kZCmMZ:"x138rykx",$$css:!0},"1.5":{kZCmMZ:"xfti1ec",$$css:!0}},yT={0:{kwRFfy:"x1s0aq8i",$$css:!0},1:{kwRFfy:"x1nryj5t",$$css:!0},2:{kwRFfy:"x1djylfy",$$css:!0},3:{kwRFfy:"x1t818jl",$$css:!0},4:{kwRFfy:"xnjyzlh",$$css:!0},5:{kwRFfy:"xdbrk9v",$$css:!0},6:{kwRFfy:"x1we12cn",$$css:!0},8:{kwRFfy:"x1q91b2g",$$css:!0},10:{kwRFfy:"x160ivqr",$$css:!0},"0.5":{kwRFfy:"x1le3yxw",$$css:!0},"1.5":{kwRFfy:"x17hk9do",$$css:!0}},I9={0:{"--container-padding-inline-start":"x1gu2k80",$$css:!0},1:{"--container-padding-inline-start":"x1cvlban",$$css:!0},2:{"--container-padding-inline-start":"x1xlrr2o",$$css:!0},3:{"--container-padding-inline-start":"xfdwxua",$$css:!0},4:{"--container-padding-inline-start":"x1dlhslv",$$css:!0},5:{"--container-padding-inline-start":"x1s81nki",$$css:!0},6:{"--container-padding-inline-start":"x1ep0dkj",$$css:!0},8:{"--container-padding-inline-start":"xw1diwv",$$css:!0},10:{"--container-padding-inline-start":"xserb3f",$$css:!0},"0.5":{"--container-padding-inline-start":"x14ws0sr",$$css:!0},"1.5":{"--container-padding-inline-start":"x176g23i",$$css:!0}},_9={0:{"--container-padding-inline-end":"x91ghl5",$$css:!0},1:{"--container-padding-inline-end":"x2oyxnl",$$css:!0},2:{"--container-padding-inline-end":"xcas3b9",$$css:!0},3:{"--container-padding-inline-end":"xu0ipoa",$$css:!0},4:{"--container-padding-inline-end":"xs0pscg",$$css:!0},5:{"--container-padding-inline-end":"xgkj7vj",$$css:!0},6:{"--container-padding-inline-end":"x94cj42",$$css:!0},8:{"--container-padding-inline-end":"x1b9k1pi",$$css:!0},10:{"--container-padding-inline-end":"xx5lg5w",$$css:!0},"0.5":{"--container-padding-inline-end":"x1wz3t3y",$$css:!0},"1.5":{"--container-padding-inline-end":"xntetml",$$css:!0}},bT={0:{kLKAdn:"x1ydh6w3",$$css:!0},1:{kLKAdn:"xfsso4q",$$css:!0},2:{kLKAdn:"x1xye8es",$$css:!0},3:{kLKAdn:"x1vlblms",$$css:!0},4:{kLKAdn:"x1oa1p4a",$$css:!0},5:{kLKAdn:"xx7rijo",$$css:!0},6:{kLKAdn:"x1adxfkp",$$css:!0},8:{kLKAdn:"xoxd1wu",$$css:!0},10:{kLKAdn:"xk6660b",$$css:!0},"0.5":{kLKAdn:"xbx876j",$$css:!0},"1.5":{kLKAdn:"x1kwdpsa",$$css:!0}},Vb={0:{kGO01o:"x1l20ajd",$$css:!0},1:{kGO01o:"xy143xn",$$css:!0},2:{kGO01o:"x1wesfrj",$$css:!0},3:{kGO01o:"xvmdzux",$$css:!0},4:{kGO01o:"x1awphl8",$$css:!0},5:{kGO01o:"x1hk98q",$$css:!0},6:{kGO01o:"xjpqqx5",$$css:!0},8:{kGO01o:"x2oz4g1",$$css:!0},10:{kGO01o:"x2izi54",$$css:!0},"0.5":{kGO01o:"xij103a",$$css:!0},"1.5":{kGO01o:"x1opdxmq",$$css:!0}},q9={0:{"--_section-padding-propagated":"x7mo41q",$$css:!0},1:{"--_section-padding-propagated":"x1j3iakl",$$css:!0},2:{"--_section-padding-propagated":"xezgk69",$$css:!0},3:{"--_section-padding-propagated":"x1wtz8uf",$$css:!0},4:{"--_section-padding-propagated":"x5wdj8h",$$css:!0},5:{"--_section-padding-propagated":"xgjndll",$$css:!0},6:{"--_section-padding-propagated":"x15i4jqh",$$css:!0},8:{"--_section-padding-propagated":"xmb9lpv",$$css:!0},10:{"--_section-padding-propagated":"x4h2jfd",$$css:!0},"0.5":{"--_section-padding-propagated":"x2ccaqq",$$css:!0},"1.5":{"--_section-padding-propagated":"xxa843v",$$css:!0}},Qu={reset:{"--container-padding-inline-start":"xrhngw9","--container-padding-inline-end":"xjsfl84","--container-padding-block-start":"x1047aw6","--container-padding-block-end":"xax9j7h","--layout-padding-outer-x":"xdt8ak2","--layout-padding-outer-y":"x1rs4lu4","--layout-padding-own-outer-x":"x1vii845","--layout-padding-own-outer-y":"xojybgt","--layout-padding-inner-x":"x1qfll2g","--layout-padding-inner-y":"xyvxpqs","--_section-padding-propagated":"x1f17rg1",$$css:!0}};function P9(e){if(e==null||typeof e=="number")return!0;const t=e.trim().toLowerCase();return t.includes("%")?!1:t==="0"||/^-?(?:\d+(?:\.\d+)?|\.\d+)[a-z]+$/.test(t)||/^(?:calc|min|max|clamp)\(/.test(t)}const Qr={layoutOuter:{keTefX:"xojxgvx",k71WvV:"x1fcf3bl",keoZOQ:"x1sa9bsh",k1K539:"x6h7pi7",$$css:!0},layoutInner:{"--container-padding-inline-start":"xrhngw9","--container-padding-inline-end":"xjsfl84","--container-padding-block-start":"x1047aw6","--container-padding-block-end":"xax9j7h","--layout-content-width":"x15lplax","--layout-alignment-width":"x19kr0ht","--layout-padding-own-outer-x":"x1vii845","--layout-padding-own-outer-y":"xojybgt",$$css:!0},fill:{kZKoxP:"x12qplqi",kskxy:"xenllk4",$$css:!0},auto:{kAzted:"x1us19tq",$$css:!0},middle:{kUk6DE:"x98rzlu",kAzted:"x2lwn1j",$$css:!0},middleQuery:{k9g6sI:"xsw3flo",$$css:!0},singleColumnContent:{kzqmXN:"xh8yej3",ks0D6T:"xjl2t3p xpgkkid",kUOVxO:"xvueqy4",$$css:!0},singlePanelMiddle:{kB7OPa:"x9f619",kzqmXN:"xh8yej3",ks0D6T:"xjl2t3p xnpzo02",kUOVxO:"xvueqy4 xb0m1lw",$$css:!0},singleStartPanel:{kZCmMZ:"x1vvd0s7",$$css:!0},singleEndPanel:{kwRFfy:"xxdn8bs",$$css:!0},fullBleed:{"--layout-padding-own-outer-x":"xbjcssu","--layout-padding-own-outer-y":"x1bz2q72",$$css:!0}},B9={kzqmXN:"xh8yej3",kUOVxO:"xvueqy4",$$css:!0},fy={contentWidthVar:e=>[{"--layout-content-width":(typeof e=="number"?`${e}px`:e)!=null?"x4906uf":typeof e=="number"?`${e}px`:e,$$css:!0},{"--x---layout-content-width":(typeof e=="number"?`${e}px`:e)!=null?typeof e=="number"?`${e}px`:e:void 0}],contentAlignmentWidthVar:e=>[{"--layout-alignment-width":(typeof e=="number"?`${e}px`:e)!=null?"x1b1nz06":typeof e=="number"?`${e}px`:e,$$css:!0},{"--x---layout-alignment-width":(typeof e=="number"?`${e}px`:e)!=null?typeof e=="number"?`${e}px`:e:void 0}],contentWidth:e=>[B9,{ks0D6T:(typeof e=="number"?`${e}px`:e)!=null?"xf68679":typeof e=="number"?`${e}px`:e,$$css:!0},{"--x-maxWidth":(t=>typeof t=="number"?t+"px":t??void 0)(typeof e=="number"?`${e}px`:e)}]};function vu({area:e,children:t}){return t==null?null:x.jsx(_b,{value:e,children:t})}const H9={"x-default-marker":"x-default-marker",$$css:!0};function Li({children:e,content:t,contentWidth:r,defaultHasDividers:s,end:o,footer:l,header:u,height:f="fill",padding:d,ref:p,start:y,xstyle:m,className:k,style:v,...w}){const S=f==="fill",E=t??e,R=g.useMemo(()=>s!=null?{defaultHasDividers:s}:null,[s]),C=u!=null,T=l!=null,A=y!=null,N=o!=null,L=A&&N,D=A!==N,j=r!=null&&P9(r),O=g.useMemo(()=>({hasHeader:C,hasFooter:T,hasStart:A,hasEnd:N}),[C,T,A,N]),M=x.jsx(Fp,{value:O,children:x.jsx("div",{...w,ref:p,...ye(fe("layout",{height:f}),de(Qr.layoutOuter,S?Qr.fill:Qr.auto,m),k,v),children:x.jsxs("div",{...de(H9,Qr.layoutInner,...E1({direction:"vertical"}),S?Qr.fill:Qr.auto,d===0&&Qr.fullBleed,d!=null&&z9[d],d!=null&&L9[d],r!=null&&fy.contentWidthVar(r),j&&fy.contentAlignmentWidthVar(r)),children:[x.jsx(vu,{area:"header",children:u}),x.jsxs("div",{...de(...E1({direction:"horizontal"}),Qr.middle,r!=null&&(!j||L)&&fy.contentWidth(r),j&&!L&&Qr.middleQuery,j&&D&&Qr.singlePanelMiddle,j&&A&&!N&&Qr.singleStartPanel,j&&!A&&N&&Qr.singleEndPanel),children:[x.jsx(vu,{area:"start",children:y}),x.jsx("div",{...de(...dT({size:"fill"}),j&&!A&&!N&&Qr.singleColumnContent),children:x.jsx(vu,{area:"content",children:E})}),x.jsx(vu,{area:"end",children:o})]}),x.jsx(vu,{area:"footer",children:l})]})})});return R!=null?x.jsx(Up,{value:R,children:M}):M}Li.displayName="Layout";const th={header:{kmuXW:"x2lah0s",$$css:!0},inner:{kB7OPa:"x9f619",ks0D6T:"xjl2t3p",kUOVxO:"xvueqy4",kZCmMZ:"xaku5ci",kwRFfy:"x19eyx77",kLKAdn:"xuqi0w",kGO01o:"xg476vw","--container-padding-inline-start":"xt2a87w","--container-padding-inline-end":"xhq06x6","--container-padding-block-start":"x186o6qk","--container-padding-block-end":"xi9ns85",$$css:!0},fullBleed:{kZCmMZ:"x1c1uobl",kwRFfy:"xyri2b",kLKAdn:"xexx8yu",kGO01o:"x18d9i69","--container-padding-inline-start":"xrhngw9","--container-padding-inline-end":"xjsfl84","--container-padding-block-start":"x1047aw6","--container-padding-block-end":"xax9j7h",$$css:!0},divider:{kt9PQ7:"xso031l",kfdmCh:"x1q0q8m5",kL6WhQ:"xw8gpjh",$$css:!0}},F9={sizing:e=>[{kZKoxP:e!=null?"x16ye13r":e,$$css:!0},{"--x-height":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function Jh({children:e,hasDivider:t,height:r,label:s,padding:o,paddingBlockEnd:l,role:u,xstyle:f,className:d,style:p,ref:y,...m}){const k=g.use(Up),v=t??k?.defaultHasDividers??!1,w=o===0;return x.jsx("div",{ref:y,role:u,"aria-label":s,"data-divider":v||void 0,...ye(fe("layout-header"),de(th.header,F9.sizing(r??null),v&&th.divider,f),d,p),...m,children:x.jsx("div",{...de(th.inner,w&&th.fullBleed,o!=null&&zi[o],o!=null&&Ei[o],o!=null&&Mo[o],o!=null&&Vs[o],l!=null&&Vb[l],l!=null&&Vs[l]),children:e})})}Jh.displayName="LayoutHeader";const _a={panel:{kB7OPa:"x9f619",kmuXW:"x2lah0s",kVQacm:"x7giv3",kZCmMZ:"xwjyata",kwRFfy:"x1peupej",kLKAdn:"xqty4a",kGO01o:"xg476vw","--container-padding-inline-start":"x408pgh","--container-padding-inline-end":"xikqloz","--container-padding-block-start":"xjmgx01","--container-padding-block-end":"xi9ns85",$$css:!0},startPanel:{kZCmMZ:"xaku5ci",$$css:!0},endPanel:{kwRFfy:"x19eyx77",$$css:!0},noHeader:{kLKAdn:"xuqi0w",$$css:!0},noFooter:{kGO01o:"x1363qu6",$$css:!0},fullBleed:{kZCmMZ:"x1c1uobl",kwRFfy:"xyri2b",kLKAdn:"xexx8yu",kGO01o:"x18d9i69","--container-padding-inline-start":"xrhngw9","--container-padding-inline-end":"xjsfl84","--container-padding-block-start":"x1047aw6","--container-padding-block-end":"xax9j7h",$$css:!0},scrollable:{kVQacm:"xysyzu8",$$css:!0},dividerEnd:{ke9TFa:"x1lun4ml",k8ry5P:"x18b5jzi",kBCPoo:"x1gejf6u",$$css:!0},dividerStart:{k2ei4v:"xpilrb4",kVhnKS:"x1t7ytsu",kGJrpR:"x1j92z86",$$css:!0},collapseStart:{keTefX:"x1wim8z0",$$css:!0},collapseEnd:{k71WvV:"x1kpg4um",$$css:!0}},U9={sizing:e=>[{kzqmXN:e!=null?"x5lhr3w":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function kT({children:e,hasDivider:t=!1,isScrollable:r=!0,label:s,padding:o,role:l,width:u,resizable:f,xstyle:d,className:p,style:y,ref:m,...k}){const v=g.use(_b),{hasHeader:w,hasFooter:S}=g.use(Fp),E=f?f._size:u,R=v==="start",C=v==="end",T=o===0,A=!t&&!T&&o==null,N=R?_a.dividerEnd:C?_a.dividerStart:null,L=R?_a.collapseEnd:C?_a.collapseStart:null;return x.jsx("div",{ref:m,role:l,"aria-label":s,...ye(fe("layout-panel"),de(_a.panel,U9.sizing(E??null),R&&!T&&o==null&&_a.startPanel,C&&!T&&o==null&&_a.endPanel,!w&&!T&&o==null&&_a.noHeader,!S&&!T&&o==null&&_a.noFooter,r&&_a.scrollable,T&&_a.fullBleed,o!=null&&zi[o],o!=null&&Ei[o],o!=null&&Mo[o],o!=null&&Vs[o],t&&N,A&&L,d),p,y),...k,children:e})}kT.displayName="LayoutPanel";const qa={content:{kB7OPa:"x9f619",kZKoxP:"x5yr21d",kUk6DE:"x98rzlu",kAzted:"x2lwn1j",kVQacm:"x7giv3",kZCmMZ:"xwjyata",kwRFfy:"x1peupej",kLKAdn:"xqty4a x1ioh5az",kGO01o:"xg476vw xsg11nj","--container-padding-inline-start":"x408pgh","--container-padding-inline-end":"xikqloz","--container-padding-block-start":"xjmgx01","--container-padding-block-end":"xi9ns85",$$css:!0},noStart:{kZCmMZ:"xaku5ci","--container-padding-inline-start":"xt2a87w","--container-padding-inline-end":"xhq06x6",$$css:!0},noEnd:{kwRFfy:"x19eyx77",$$css:!0},noHeader:{kLKAdn:"xuqi0w","--container-padding-block-start":"x186o6qk",$$css:!0},noFooter:{kGO01o:"x1363qu6","--container-padding-block-end":"xfsxxt8",$$css:!0},scrollable:{kVQacm:"xysyzu8",$$css:!0},constrainedNoPanelsStart:{kZCmMZ:"xhlv5e7",$$css:!0},constrainedNoPanelsEnd:{kwRFfy:"x1ahicqp",$$css:!0},constrainedSingleStartPanel:{kwRFfy:"xy07wb4",$$css:!0},constrainedSingleEndPanel:{kZCmMZ:"xxjme2g",$$css:!0},fullBleed:{kZCmMZ:"x1c1uobl",kwRFfy:"xyri2b",kLKAdn:"xexx8yu",kGO01o:"x18d9i69","--container-padding-inline-start":"xrhngw9","--container-padding-inline-end":"xjsfl84","--container-padding-block-start":"x1047aw6","--container-padding-block-end":"xax9j7h",$$css:!0}};function Di({children:e,isScrollable:t=!0,padding:r,label:s,role:o,xstyle:l,className:u,style:f,ref:d,...p}){const{hasHeader:y,hasFooter:m,hasStart:k,hasEnd:v}=g.use(Fp),w=r===0;return x.jsx("div",{ref:d,role:o,"aria-label":s,...ye(fe("layout-content"),de(qa.content,!k&&!w&&r==null&&qa.noStart,!v&&!w&&r==null&&qa.noEnd,!y&&!w&&r==null&&qa.noHeader,!m&&!w&&r==null&&qa.noFooter,t&&qa.scrollable,w&&qa.fullBleed,r!=null&&zi[r],r!=null&&Ei[r],r!=null&&Mo[r],r!=null&&Vs[r],!k&&!v&&!w&&qa.constrainedNoPanelsStart,!k&&!v&&!w&&qa.constrainedNoPanelsEnd,k&&!v&&!w&&qa.constrainedSingleStartPanel,!k&&v&&!w&&qa.constrainedSingleEndPanel,l),u,f),...p,children:e})}Di.displayName="LayoutContent";function vT(e){return(e.style.anchorName??"").split(",").map(r=>r.trim()).filter(Boolean)}function wT(e,t){e.style.anchorName=t.join(", ")}function V9(e,t){const r=vT(e);r.includes(t)||(r.push(t),wT(e,r))}function G9(e,t){wT(e,vT(e).filter(r=>r!==t))}let Kp=0,ST=null,h5=!1;function p5(){Kp+=1}function K9(){ST=Kp}function ET(){h5||typeof document>"u"||(h5=!0,document.addEventListener("pointerdown",p5,!0),document.addEventListener("keydown",p5,!0),document.addEventListener("click",K9,!0))}function mi(){return ET(),Kp}function W9(){return ET(),ST===Kp}const Y9=new Set(["p","h1","h2","h3","h4","h5","h6","dt","pre","legend","data","dfn","meter","output","progress","option","optgroup","table","thead","tbody","tfoot","tr","colgroup","ul","ol","menu","dl","select","datalist","picture","hgroup","ruby","rt","rp","a","button","label","summary","span","em","strong","b","i","u","s","small","mark","code","kbd","samp","var","sub","sup","abbr","cite","q","time","bdi","bdo","ins","del"]);function X9(e){if(!e)return null;let t=null,r=e;for(;r;){const s=r.tagName.toLowerCase();if(s==="dialog")break;Y9.has(s)&&(t=r),r=r.parentElement}return t?.parentElement??null}const ac={reset:{kMv6JI:"x9ynric",kGuDYH:"xjm74w1",k63SB2:"xxovm9e",kLWn49:"xw6l6zx",kKX8nH:"x1j61x8r",k9WMMc:"x1yc453h",kJI5tL:"x7ssn7h",kTHuQy:"xzugeeo",kP9fke:"x6mezaz",kb6lSQ:"x1i21sxh",k4JVr9:"xp3md9m",kKMj4B:"x19pm5ym",khDVqt:"xeaf4i8",kTgw9:"x1lldw8n",kHjlTd:"x1h4wwuj",kE4Cay:"xxydokm",$$css:!0}},sc={reset:{"--step-connector-gap":"x1qkaldv",$$css:!0}},oc={gutterInline:"calc(max(var(--spacing-4), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)) + max(var(--astryx-layer-inset-inline-start, 0px), var(--astryx-layer-inset-inline-end, 0px)))",gutterBlock:"calc(max(var(--spacing-4), env(safe-area-inset-top, 0px), env(safe-area-inset-bottom, 0px)) + max(var(--astryx-layer-inset-block-start, 0px), var(--astryx-layer-inset-block-end, 0px)))",gutterBlockFallback:"calc(var(--spacing-4) + max(var(--astryx-layer-inset-block-start, 0px), var(--astryx-layer-inset-block-end, 0px)))",gutterInlineFallback:"calc(var(--spacing-4) + max(var(--astryx-layer-inset-inline-start, 0px), var(--astryx-layer-inset-inline-end, 0px)))",maxInlineSizeFallback:"calc(100vw - var(--spacing-4) - var(--spacing-4) - var(--astryx-layer-inset-inline-start, 0px) - var(--astryx-layer-inset-inline-end, 0px))"},Z9=[["blockStart","--astryx-layer-inset-block-start"],["blockEnd","--astryx-layer-inset-block-end"],["inlineStart","--astryx-layer-inset-inline-start"],["inlineEnd","--astryx-layer-inset-inline-end"]];function Q9(e){return typeof e=="number"?`${e}px`:e}function $T(e){const t={};if(e)for(const[r,s]of Z9){const o=e[r];o!=null&&o!==""&&(t[s]=Q9(o))}return t}const TT="--_astryx-layer-clearance";function $1(e,t,r){return`--astryx-layer-slide-${e}-${t}-${r}`}const nh=`var(${TT}, 0px)`;function CT(e,t,r){return`${e}:${t};${e}:${r};`}function ep(e){return CT(e,oc.gutterBlockFallback,oc.gutterBlock)}function tp(e){return CT(e,oc.gutterInlineFallback,oc.gutterInline)}const J9={above:"below",below:"above",start:"end",end:"start"};function eL(e){switch(e){case"above":return"self-block-start span-all";case"below":return"self-block-end span-all";case"start":return"self-inline-start span-all";case"end":return"self-inline-end span-all"}}function tL(e){switch(e){case"above":return`margin-block-end:${nh};${ep("margin-block-start")}`;case"below":return`margin-block-start:${nh};${ep("margin-block-end")}`;case"start":return`margin-inline-end:${nh};${tp("margin-inline-start")}`;case"end":return`margin-inline-start:${nh};${tp("margin-inline-end")}`}}function nL(e){return e==="above"||e==="below"?`${tp("margin-inline-start")}${tp("margin-inline-end")}inset-inline-start:0;inset-inline-end:0;`:`${ep("margin-block-start")}${ep("margin-block-end")}inset-block-start:0;inset-block-end:0;`}function x5(e,t,r){const s=r==="same"?e:J9[e];return`@position-try ${$1(e,t,r)}{position-area:${eL(s)};${tL(s)}${nL(s)}}`}const rL=["above","below","start","end"],aL=["start","center","end"];function sL(){return rL.flatMap(e=>aL.flatMap(t=>[x5(e,t,"same"),x5(e,t,"opposite")])).join("")}const g5="astryx-layer-slide-rules";function oL(e){if(e.getElementById(g5))return;const t=e.createElement("style");t.id=g5,t.textContent=sL(),e.head.appendChild(t)}const jT=g.createContext(null);jT.displayName="LayerContext";function iL(){return g.use(jT)}const qn=typeof window<"u"?g.useLayoutEffect:g.useEffect,lL={keoZOQ:"x1vhfslr",k1K539:"x119uzjn",$$css:!0},cL={keoZOQ:"x1lhixnp",k1K539:"xlm3tn6",$$css:!0},uL={k71WvV:"xa3ewmy",$$css:!0},dL={keTefX:"x1cytvie",$$css:!0},Rn={base:{keoZOQ:"xdj266r",k1K539:"xat24cr",keTefX:"x1lziwak",k71WvV:"x14z9mp",kLKAdn:"xexx8yu",kGO01o:"x18d9i69",kZCmMZ:"x1c1uobl",kwRFfy:"xyri2b",kMzoRj:"xc342km",ksu8eU:"xng3xce",kVQacm:"x1rea2x4",kWkggS:"xjbqb8w",$$css:!0},fixed:{kVAEAm:"xixxii4",$$css:!0},placementBelow:e=>[lL,{"--x-marginBlockStart":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],placementAbove:e=>[cL,{"--x-marginBlockEnd":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],placementEnd:e=>[uL,{keTefX:e!=null?"x4lel18":e,$$css:!0},{"--x-marginInlineStart":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],placementStart:e=>[dL,{k71WvV:e!=null?"x1c9tiao":e,$$css:!0},{"--x-marginInlineEnd":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],farBelow:{k1K539:"x119uzjn",$$css:!0},farAbove:{keoZOQ:"x1lhixnp",$$css:!0},farEnd:{k71WvV:"xa3ewmy",$$css:!0},farStart:{keTefX:"x1cytvie",$$css:!0},viewportFit:{kB7OPa:"x9f619",ks0D6T:"x1p5vr2b",kskxy:"xv8yize",$$css:!0},gutterInlineEnd:{k71WvV:"x1m9hk3x",$$css:!0},gutterInlineStart:{keTefX:"x1ey4id",$$css:!0},gutterBlockEnd:{k1K539:"x1chv945",$$css:!0},gutterBlockStart:{keoZOQ:"x3390rn",$$css:!0}};function fL(e){return typeof e=="number"?`${e}px`:e}const Mu=new WeakMap;function m5(e,t){Mu.set(e,(Mu.get(e)??0)+1);try{t()}finally{Mu.set(e,(Mu.get(e)??1)-1)}}function hL(e){return(Mu.get(e)??0)>0}function pL(e,t){const r=e.ownerDocument.defaultView;if(!r)return{};const s=r.getComputedStyle(e),o=r.getComputedStyle(t);return{...s.direction!==o.direction&&{direction:s.direction},...s.writingMode!==o.writingMode&&{writingMode:s.writingMode}}}function xL(e="above",t="center"){if(e==="above"||e==="below"){const s=e==="above"?"self-block-start":"self-block-end";return t==="start"?`${s} span-self-inline-end`:t==="end"?`${s} span-self-inline-start`:s}const r=e==="start"?"self-inline-start":"self-inline-end";return t==="start"?`${r} span-self-block-end`:t==="end"?`${r} span-self-block-start`:r}function gL(e="above",t="center"){const r="flip-block, flip-inline, flip-block flip-inline",s=`${$1(e,t,"same")}, ${$1(e,t,"opposite")}`;if(t!=="center")return`${r}, ${s}`;if(e==="above"||e==="below"){const[u,f]=e==="above"?["top","bottom"]:["bottom","top"];return`${r}, ${u} span-left, ${u} span-right, ${f} span-left, ${f} span-right, ${s}`}const[o,l]=e==="start"?["left","right"]:["right","left"];return`${r}, ${o} span-top, ${o} span-bottom, ${l} span-top, ${l} span-bottom, ${s}`}function mL(e,t,r){if(r||t==="center")return{};const s=t==="start"?"unsafe self-start":"unsafe self-end";return e==="above"||e==="below"?{justifySelf:s}:{alignSelf:s}}function yL(e,t){return e==="above"||e==="below"?t==="start"?[Rn.gutterInlineEnd]:t==="end"?[Rn.gutterInlineStart]:[Rn.gutterInlineStart,Rn.gutterInlineEnd]:t==="start"?[Rn.gutterBlockEnd]:t==="end"?[Rn.gutterBlockStart]:[Rn.gutterBlockStart,Rn.gutterBlockEnd]}function bL(e,t){const r=g.useRef(t);return r.current=t,g.useMemo(()=>({onPointerDown:s=>{if(!r.current)return;const o=s.currentTarget,l=o.ownerDocument;o.setAttribute("popovertarget",e);const u=()=>{l.removeEventListener("pointerup",u),l.removeEventListener("pointercancel",u),l.defaultView?.setTimeout(()=>{o.removeAttribute("popovertarget")},0)};l.addEventListener("pointerup",u),l.addEventListener("pointercancel",u)},onClickCapture:s=>{const o=s.currentTarget;o.hasAttribute("popovertarget")&&(s.preventDefault(),o.removeAttribute("popovertarget"))}}),[e])}function kL(e){const{mode:t,onShow:r,onHide:s,lightDismiss:o=!1}=e,l=t==="context"?e.lazyMount??!1:!1,u=g.useId(),f=`--astryx-layer-${u.replace(/:/g,"")}`,[d,p]=g.useState(!1),[y,m]=g.useState(!0),k=g.useRef(!0),v=g.useCallback(te=>{k.current!==te&&(k.current=te,m(te))},[]),S=iL()?.inset,E=g.useRef(null),R=g.useRef(null),C=g.useRef(null),T=g.useRef(null),A=g.useRef(null),[N,L]=g.useState(null),D=g.useRef(!1),j=g.useRef(!1),O=g.useRef(null),M=g.useRef(null),H=g.useCallback(()=>{const te=mi();return O.current===te},[]),F=g.useCallback(te=>{typeof te.showPopover=="function"?m5(te.ownerDocument,()=>{te.showPopover({source:C.current??void 0})}):te.style.display="block",R.current=te},[]),q=g.useCallback(te=>{if(t!=="context")return!0;const he=A.current;if(he===null)return!1;const Re=he.portalTarget??T.current?.parentElement??null;return te.parentElement===Re},[t]),B=g.useCallback(()=>{if(t!=="context")return;const te=T.current,he=te?.parentElement??null;if(!te||!he)return;const Re=X9(he),Ce={portalTarget:Re,portalStyle:Re?pL(te,Re):{}};A.current=Ce,L(Ce)},[t]),U=g.useCallback(()=>{t!=="context"||!l||(A.current=null,L(null))},[t,l]),_=g.useCallback(()=>{if(H())return;const te=E.current,he=te&&q(te)?te:null;if(!he){D.current=!0,B();return}if(!j.current){if(hL(he.ownerDocument)){D.current=!0,queueMicrotask(()=>{D.current&&(D.current=!1,G.current())});return}F(he),j.current=!0,p(!0),r?.()}},[r,B,F,q,H]),P=g.useCallback(()=>{if(D.current=!1,j.current){const te=E.current;R.current=null,j.current=!1,te&&(typeof te.hidePopover=="function"?m5(te.ownerDocument,()=>{te.hidePopover()}):te.style.display="none"),p(!1),s?.()}U()},[s,U]),G=g.useRef(_);G.current=_;const X=g.useCallback(te=>{C.current&&C.current!==te&&G9(C.current,f),te&&V9(te,f),C.current=te},[f]),Z=g.useCallback(te=>{if(M.current?.(),W9())return;O.current=mi();const he=te.defaultView;let Re=null;const Ce=()=>{O.current=null,te.removeEventListener("click",Te,!0),Re!==null&&(he?.clearTimeout(Re),Re=null),M.current===Ce&&(M.current=null)},Te=()=>{te.removeEventListener("click",Te,!0),he?Re=he.setTimeout(()=>{Re=null,M.current===Ce&&Ce()},0):Ce()};te.addEventListener("click",Te,!0),M.current=Ce},[]);g.useEffect(()=>(mi(),()=>M.current?.()),[]);const Q=g.useCallback(te=>{te.newState==="closed"&&j.current&&(R.current=null,j.current=!1,Z(te.currentTarget?.ownerDocument??document),p(!1),s?.(),U())},[s,U,Z]),K=g.useRef(null),ae=g.useRef(null),I=g.useCallback((te,he)=>{K.current&&ae.current&&(K.current!==te||ae.current!==he)&&(K.current.removeEventListener("toggle",ae.current),K.current=null,ae.current=null),te&&K.current!==te&&(te.addEventListener("toggle",he),K.current=te,ae.current=he)},[]),ee=g.useCallback(te=>{E.current=te,I(te,Q),te&&D.current?(D.current=!1,_()):te&&j.current&&R.current!==te&&q(te)&&F(te)},[Q,I,_,F,q]),pe=g.useCallback(te=>{T.current=te,te&&(!l||D.current||j.current)&&B()},[l,B]);g.useEffect(()=>(E.current&&I(E.current,Q),()=>{K.current&&ae.current&&(K.current.removeEventListener("toggle",ae.current),K.current=null,ae.current=null)}),[Q,I]),qn(()=>{if(t!=="context")return;const te=E.current?.ownerDocument??T.current?.ownerDocument;te&&oL(te)},[t,N]),qn(()=>{if(!d||t!=="context")return;const te=C.current;if(!te)return;const he=te.ownerDocument.defaultView;if(he){const Ce=te.getBoundingClientRect(),Te=Ce.bottom>=0&&Ce.right>=0&&Ce.top<=he.innerHeight&&Ce.left<=he.innerWidth;v(Te)}if(typeof IntersectionObserver>"u")return;const Re=new IntersectionObserver(Ce=>{const Te=Ce[Ce.length-1];Te&&v(Te.isIntersecting)});return Re.observe(te),()=>Re.disconnect()},[d,t,v]);const ue=g.useCallback((te,he)=>{const Re=x.jsx("template",{ref:pe});if(N===null)return x.jsx(x.Fragment,{children:Re});const{placement:Ce="above",alignment:Te="center",positioning:Me="anchor",offset:je,role:He,"aria-label":at,xstyle:pt,className:et,style:Ve,as:yt="div",onMouseEnter:Pe,onMouseLeave:rt}=he||{},lt=Me==="custom"?{positionAnchor:f}:{positionAnchor:f,positionArea:xL(Ce,Te),positionTryFallbacks:gL(Ce,Te),...mL(Ce,Te,y)},st=je?fL(je):null,ct=Me==="anchor"&&st!=null?{[TT]:st}:{},we=Me!=="anchor"?null:st==null?Ce==="above"?Rn.farAbove:Ce==="below"?Rn.farBelow:Ce==="start"?Rn.farStart:Rn.farEnd:Ce==="above"?Rn.placementAbove(st):Ce==="below"?Rn.placementBelow(st):Ce==="start"?Rn.placementStart(st):Rn.placementEnd(st),Ge=Me==="anchor"?[Rn.viewportFit,...yL(Ce,Te)]:null,Pt=de(ac.reset,sc.reset,Rn.base,Qu.reset,Ge,we,pt),bn=et?`${et} ${Pt.className??""}`:Pt.className,gn=x.jsx(yt,{ref:ee,id:u,role:He,"aria-label":at,popover:o?"auto":"manual",className:bn,style:{...Pt.style,...lt,...ct,...$T(S),...N.portalStyle,...Ve},onMouseEnter:Pe,onMouseLeave:rt,children:x.jsx(rc,{children:te})});return x.jsxs(x.Fragment,{children:[Re,N.portalTarget?xd.createPortal(gn,N.portalTarget):gn]})},[f,N,S,u,y,o,ee,pe]),ve=g.useCallback((te,he)=>{const{x:Re,y:Ce,xstyle:Te,className:Me,style:je}=he,He={top:Ce,left:Re},at=de(ac.reset,sc.reset,Rn.base,Qu.reset,Rn.fixed,Te),pt=Me?`${Me} ${at.className??""}`:at.className;return x.jsx("div",{ref:ee,id:u,popover:o?"auto":"manual",className:pt,style:{...at.style,...He,...je},children:x.jsx(rc,{children:te})})},[ee,u,o]),xe=g.useMemo(()=>({ref:X,anchorId:f,show:_,hide:P,isOpen:d,wasJustDismissed:H,id:u,render:ue}),[X,f,_,P,d,H,u,ue]),$e=g.useMemo(()=>({ref:void 0,show:_,hide:P,isOpen:d,wasJustDismissed:H,id:u,render:ve}),[_,P,d,H,u,ve]);return t==="context"?xe:$e}function md(e){const t=kL(e);return g.useMemo(()=>{const{wasJustDismissed:r,...s}=t;return s},[t])}const y5=Symbol.for("@astryxdesign/core/interaction-modality/v1");function RT(e){const t=e,r=t[y5];if(r!=null)return r;const s={modality:"keyboard",isListening:!1,onPointerDown:()=>{s.modality="pointer"},onKeyDown:o=>{o.metaKey||o.altKey||o.ctrlKey||(s.modality="keyboard")}};return Object.defineProperty(t,y5,{value:s}),s}function vL(){if(typeof document>"u")return()=>{};const e=document,t=RT(e);return t.isListening||(t.isListening=!0,e.addEventListener("pointerdown",t.onPointerDown,{capture:!0,passive:!0}),e.addEventListener("keydown",t.onKeyDown,{capture:!0,passive:!0})),()=>{}}function Wp(){g.useEffect(()=>vL(),[])}function ic(){return typeof document>"u"?"keyboard":RT(document).modality}const wL=new Set(["touch","pen"]),SL=new Set(["button","checkbox","combobox","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","searchbox","slider","spinbutton","switch","tab","textbox"]);function EL(e){const t=e.getAttribute("role");if(t!=null&&t!=="")return SL.has(t);switch(e.tagName){case"BUTTON":case"INPUT":case"LABEL":case"SELECT":case"SUMMARY":case"TEXTAREA":return!0;case"A":case"AREA":return e.hasAttribute("href");default:return $L(e)}}function $L(e){if(e.isContentEditable===!0)return!0;const t=e.getAttribute("contenteditable");return t!=null&&t!=="false"}function TL(e){const{touchTrigger:t,isEnabled:r,isControlled:s,isOpen:o,layerId:l,triggerRef:u,show:f,hide:d}=e,p=g.useRef(!1),y=g.useRef(o);y.current=o;const m=g.useRef(d);m.current=d;const k=g.useRef(l);k.current=l;const v=g.useRef(!1),w=g.useRef(null);Wp();const S=g.useCallback(()=>{v.current=!1;const N=w.current;N!=null&&(w.current=null,document.removeEventListener("pointerdown",N,!0))},[]),E=g.useCallback(()=>{if(v.current=!0,w.current!=null)return;const N=L=>{const D=L.target;D!=null&&(u.current?.contains(D)===!0||document.getElementById(k.current)?.contains(D)===!0)||(S(),m.current())};w.current=N,document.addEventListener("pointerdown",N,!0)},[u,S]);g.useEffect(()=>S,[S]);const R=g.useCallback(()=>p.current&&ic()==="pointer",[]),C=g.useCallback(N=>{p.current=N.pointerType==="touch"},[]),T=g.useCallback(N=>{const L=wL.has(N.pointerType);if(p.current=L,!L||s)return!1;const D=u.current;return(t==="auto"?D!=null&&EL(D)?"none":"tap":t)==="none"||!r||y.current||v.current?(S(),d(),!0):(E(),f(),!0)},[t,r,s,u,f,d,E,S]),A=g.useRef(o);return g.useEffect(()=>{A.current&&!o&&S(),A.current=o},[o,S]),{isTouchPointerRef:p,isTouchInteraction:R,handlePointerEnter:C,handlePointerDown:T,clearTapOpen:S}}const yd={below:{kKVMdj:"xl1vlw0 x1aquc0h",k44tkh:"x9uej1z",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0},above:{kKVMdj:"x3psbcj x1aquc0h",k44tkh:"x9uej1z",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0},end:{kKVMdj:"x1i331go x1vxsm5i x1aquc0h",k44tkh:"x9uej1z",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0},start:{kKVMdj:"xck01x9 x18lne9g x1aquc0h",k44tkh:"x9uej1z",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0}},np=g.createContext(0);np.displayName="LayerDepthContext";function CL(){return g.use(np)}function Ju({children:e}){const t=g.use(np);return x.jsx(np,{value:t+1,children:e})}Ju.displayName="LayerDepthProvider";const Nu=[];let b5=new WeakMap,jL=0,rp=!1;function RL(e){const t=b5.get(e);if(t!==void 0)return t;const r=jL++;return b5.set(e,r),r}function AL(e,t){if(e.depth!==t.depth)return e.depth-t.depth;const r=e.getContainer?.()??null,s=t.getContainer?.()??null;if(r!=null&&s!=null&&r!==s){if(s.contains(r))return 1;if(r.contains(s))return-1}return e.seq-t.seq}function ML(e){return e.isPresent?.()??!0}let Yp=!1;function NL(){return Yp}function AT(){Yp=!0}function ap(){Yp=!1}function Gb(){let e=null;for(const t of Nu)ML(t)&&(e==null||AL(t,e)>0)&&(e=t);return e}function zL(e){return Gb()?.token===e}function LL(){const e=Gb();return e==null?!1:(e.behavior==="block"||e.dismiss(),!0)}function MT(e){if(e.key==="Escape"){if(gd(e)){Gb()!=null&&e.preventDefault();return}e.defaultPrevented||LL()&&e.preventDefault()}}function DL(){rp||typeof document>"u"||(document.addEventListener("keydown",MT),document.addEventListener("compositionstart",AT,!0),document.addEventListener("compositionend",ap,!0),document.addEventListener("blur",ap,!0),rp=!0)}function OL(){!rp||typeof document>"u"||(document.removeEventListener("keydown",MT),document.removeEventListener("compositionstart",AT,!0),document.removeEventListener("compositionend",ap,!0),document.removeEventListener("blur",ap,!0),Yp=!1,rp=!1)}function IL(e){const t={...e,seq:RL(e.token)};return Nu.push(t),DL(),()=>{const r=Nu.indexOf(t);r!==-1&&Nu.splice(r,1),Nu.length===0&&OL()}}function Xp(e){const{isActive:t,onDismiss:r,escapeBehavior:s="close",getContainer:o,isPresent:l,isEnabled:u=!0}=e,f=CL(),d=g.useRef({}),p=g.useRef(!1),y=g.useRef(r),m=g.useRef(o),k=g.useRef(l);g.useEffect(()=>{y.current=r,m.current=o,k.current=l});const v=t&&u;return g.useEffect(()=>{if(!v){p.current=!1;return}return p.current||(d.current={},p.current=!0),IL({token:d.current,depth:f,behavior:s,getContainer:()=>m.current?.()??null,isPresent:()=>k.current?.()??!0,dismiss:()=>y.current()})},[v,f,s]),{shouldDismissOnCloseRequest:g.useCallback(()=>v&&!NL()&&zL(d.current),[v])}}const _L=100,qL={container:{kWkggS:"x19aspcf",kMwMTN:"xrkvqaz",kaIpWk:"x1hviunn",kMv6JI:"x9ynric",kGuDYH:"xjm74w1",kLWn49:"xw6l6zx",$$css:!0}};function PL(e){return e.hasAttribute("tabindex")?e.tabIndex>=0:["A","BUTTON","INPUT","SELECT","TEXTAREA"].includes(e.tagName)?!e.disabled:!!e.isContentEditable}function Wa(e={}){const{placement:t="above",alignment:r="center",delay:s=200,hideDelay:o=0,focusTrigger:l="auto",touchTrigger:u="auto",isEnabled:f=!0,isOpen:d,isDefaultOpen:p=!1,onShow:y,onHide:m}=e,k=md({mode:"context",onShow:y,onHide:m}),{ref:v,anchorId:w,show:S,hide:E,isOpen:R,id:C,render:T}=k,A=qL.container,N=g.useRef(null),L=g.useRef(null),D=g.useRef(null),j=g.useCallback(()=>{N.current&&(clearTimeout(N.current),N.current=null),L.current&&(clearTimeout(L.current),L.current=null)},[]),O=g.useCallback(()=>{j(),S()},[j,S]),M=g.useCallback(()=>{j(),E()},[j,E]),{isTouchPointerRef:H,isTouchInteraction:F,handlePointerEnter:q,handlePointerDown:B,clearTapOpen:U}=TL({touchTrigger:u,isEnabled:f,isControlled:d!==void 0,isOpen:R,layerId:C,triggerRef:D,show:O,hide:M}),_=g.useCallback(()=>{!f||d===!1||(j(),N.current=setTimeout(()=>{S()},s))},[f,d,j,S,s]),P=g.useCallback(()=>{if(d===!0)return;j();const ue=o>0?o:_L;L.current=setTimeout(()=>{E()},ue)},[d,j,E,o]),G=g.useCallback(()=>{L.current&&(clearTimeout(L.current),L.current=null)},[]),X=g.useCallback(()=>{H.current||_()},[H,_]),Z=g.useCallback(()=>{H.current||P()},[H,P]),Q=g.useCallback(ue=>{!f||F()||!ue.target.matches(":focus-visible")||(j(),S())},[f,F,j,S]),K=g.useCallback(()=>{P()},[P]),ae=g.useCallback(ue=>{B(ue)||d===void 0&&(j(),E())},[B,d,j,E]),I=g.useCallback(ue=>{D.current&&(D.current.removeEventListener("mouseenter",X),D.current.removeEventListener("mouseleave",Z),D.current.removeEventListener("focusin",Q),D.current.removeEventListener("focusout",K),D.current.removeEventListener("pointerenter",q),D.current.removeEventListener("pointerdown",ae)),ue&&(ue.addEventListener("pointerenter",q),ue.addEventListener("mouseenter",X),ue.addEventListener("mouseleave",Z),ue.addEventListener("pointerdown",ae),(l==="always"||l==="auto"&&PL(ue))&&(ue.addEventListener("focusin",Q),ue.addEventListener("focusout",K))),D.current=ue},[l,X,Z,Q,K,q,ae]),ee=g.useCallback(ue=>{v(ue),I(ue)},[v,I]);g.useEffect(()=>()=>{j()},[j]),g.useEffect(()=>{p&&S()},[]),g.useEffect(()=>{d!==void 0&&(d?(j(),S()):(j(),E()))},[d,j,S,E]),Xp({isActive:!0,isPresent:()=>{const ue=typeof document>"u"?null:document.getElementById(C);if(ue==null)return!1;try{return ue.matches(":popover-open")}catch{return R}},onDismiss:()=>{if(j(),U(),d!==void 0){m?.();return}E()}});const pe=g.useCallback((ue,ve)=>{const xe=ve?.placement??t,$e={placement:xe,alignment:ve?.alignment??r,offset:Wn["--spacing-1"],role:"tooltip",xstyle:[A,yd[xe]],className:fe("tooltip").className,onMouseEnter:G,onMouseLeave:P};return T(x.jsx("div",{className:"xfsso4q xy143xn x12gdq22 x1djylfy xw5ewwj x13faqbe",children:ue}),$e)},[T,t,r,A,G,P]);return{ref:ee,positionRef:v,interactionRef:I,anchorId:w,describedBy:C,renderTooltip:pe}}const BL="modulepreload",HL=function(e){return"/"+e},k5={},bd=function(t,r,s){let o=Promise.resolve();if(r&&r.length>0){let d=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),f=u?.nonce||u?.getAttribute("nonce");o=d(r.map(p=>{if(p=HL(p),p in k5)return;k5[p]=!0;const y=p.endsWith(".css"),m=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${m}`))return;const k=document.createElement("link");if(k.rel=y?"stylesheet":BL,y||(k.as="script"),k.crossOrigin="",k.href=p,f&&k.setAttribute("nonce",f),document.head.appendChild(k),y)return new Promise((v,w)=>{k.addEventListener("load",v),k.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${p}`)))})}))}function l(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return o.then(u=>{for(const f of u||[])f.status==="rejected"&&l(f.reason);return t().catch(l)})},Kb={primary:{kMwMTN:"x1tgivj0",$$css:!0},secondary:{kMwMTN:"xv1l7n4",$$css:!0},disabled:{kMwMTN:"xnbbluu",$$css:!0},placeholder:{kMwMTN:"xv1l7n4",$$css:!0},accent:{kMwMTN:"xjse4m1",$$css:!0},inherit:{kMwMTN:"x1heor9g",$$css:!0}},NT={normal:{k63SB2:"x1sodnla",$$css:!0},medium:{k63SB2:"x1e4wzip",$$css:!0},semibold:{k63SB2:"x2mo6ok",$$css:!0},bold:{k63SB2:"x1lvx875",$$css:!0}},zT={body:{k63SB2:"xxovm9e",$$css:!0},large:{k63SB2:"x149oux8",$$css:!0},label:{k63SB2:"xmhvcl5",$$css:!0},code:{k63SB2:"xx3eeay",$$css:!0},supporting:{k63SB2:"xv8on6e",$$css:!0},"display-1":{k63SB2:"x1txul5o",$$css:!0},"display-2":{k63SB2:"x1y36c3f",$$css:!0},"display-3":{k63SB2:"x1on40hk",$$css:!0},inherit:{k63SB2:"x1pd3egz",$$css:!0}},Wb={body:{kGuDYH:"xjm74w1",kLWn49:"xw6l6zx",$$css:!0},large:{kGuDYH:"x18juvz8",kLWn49:"xf74fhv",$$css:!0},label:{kGuDYH:"xcr08ib",kLWn49:"x1kq96og",$$css:!0},code:{kGuDYH:"xp03k98",kLWn49:"x17iicif",kMv6JI:"x9m5x89",$$css:!0},supporting:{kGuDYH:"x141an7d",kLWn49:"x1ltkj2j",$$css:!0},"display-1":{kGuDYH:"xsub3ws",kLWn49:"x112ttwr",$$css:!0},"display-2":{kGuDYH:"x1yego12",kLWn49:"xh0iwvy",$$css:!0},"display-3":{kGuDYH:"xlgnzhf",kLWn49:"x1ujwuaq",$$css:!0},inherit:{kGuDYH:"x1qlqyl8",kLWn49:"x15bjb6t",$$css:!0}},FL={"4xs":{kGuDYH:"xxc45ev",$$css:!0},"3xs":{kGuDYH:"x10p7juq",$$css:!0},"2xs":{kGuDYH:"x16a80zy",$$css:!0},xsm:{kGuDYH:"x51wmvv",$$css:!0},sm:{kGuDYH:"x1eqnyfr",$$css:!0},base:{kGuDYH:"x1j29vfg",$$css:!0},lg:{kGuDYH:"xc7cgfe",$$css:!0},xl:{kGuDYH:"x1wqms48",$$css:!0},"2xl":{kGuDYH:"xhs0kqb",$$css:!0},"3xl":{kGuDYH:"x10srzze",$$css:!0},"4xl":{kGuDYH:"xqcvi3d",$$css:!0}},UL={1:{kGuDYH:"xcg7oai",kLWn49:"xfmsba7",k63SB2:"x1v68xuy",$$css:!0},2:{kGuDYH:"x1xvnhcw",kLWn49:"x1cpk1wn",k63SB2:"x12yy4cs",$$css:!0},3:{kGuDYH:"xii13ha",kLWn49:"xwjzt0u",k63SB2:"x1jcxfy8",$$css:!0},4:{kGuDYH:"x8tkxat",kLWn49:"xqerer",k63SB2:"x2hcmsi",$$css:!0},5:{kGuDYH:"xsgqta0",kLWn49:"xo3gurs",k63SB2:"xno150v",$$css:!0},6:{kGuDYH:"xw5ohdf",kLWn49:"xeixjfn",k63SB2:"x1pw4frv",$$css:!0}},LT={inline:{k1xSpc:"xt0psk2",$$css:!0},block:{k1xSpc:"x1lliihq",$$css:!0}},sp={singleLine:{kVQacm:"xb3r6kr",kg5iWk:"xlyipyv",khDVqt:"xuxw1ft",k1xSpc:"x1lliihq",$$css:!0},multiLine:{kVQacm:"xb3r6kr",k1xSpc:"x104kibb",kgKLqz:"x1ua5tub",$$css:!0}},DT={"break-word":{kTgw9:"x1lldw8n",kHjlTd:"x1mzt3pk",$$css:!0},"break-all":{kTgw9:"x1yn0g08",$$css:!0}},OT={wrap:{kN2L0X:"xk4td0m",$$css:!0},nowrap:{kN2L0X:"xebhuq6",$$css:!0},balance:{kN2L0X:"x1w2vvpw",$$css:!0},pretty:{kN2L0X:"x1fzhlzt",$$css:!0}},IT={enabled:{kxwWH2:"x1b2iylo",kzeHkT:"xwgcxoh",k1xSpc:"x1lliihq",$$css:!0}},_T={strikethrough:{kybGjl:"xmqliwb",$$css:!0}},VL={enabled:{kcqcaj:"xss6m8b",$$css:!0}},qT={start:{k9WMMc:"x1yc453h",$$css:!0},center:{k9WMMc:"x2b8uid",$$css:!0},end:{k9WMMc:"xp4054r",$$css:!0}},PT={content:{ks0D6T:"xw5ewwj",kTgw9:"x13faqbe",$$css:!0}};function BT(e){const{maxLines:t}=e,[r,s]=g.useState(!1),[o,l]=g.useState(""),u=g.useRef(null),f=g.useRef(null),d=g.useCallback(y=>{if(t===0){s(!1);return}if(l(y.textContent??""),t===1)s(y.scrollWidth>y.offsetWidth);else{let m=y.scrollHeight;try{const k=document.createRange();k.selectNodeContents(y),m=k.getBoundingClientRect().height,k.detach()}catch{}s(m>y.offsetHeight)}},[t]);return{ref:g.useCallback(y=>{f.current?.(),f.current=null,u.current=y,y&&t>0?typeof ResizeObserver<"u"?f.current=Xu(y,()=>{d(y)}):d(y):(s(!1),l(""))},[t,d]),isTruncated:r,fullText:o}}function xn(e,t,r,s,o,l){return g.useMemo(()=>Pb(e,t,r,s,o,l),[e,t,r,s,o,l])}const GL=g.lazy(async()=>bd(()=>Promise.resolve().then(()=>JC),[]).then(e=>({default:e.Tooltip}))),KL={body:"primary",large:"primary",label:"primary",supporting:"secondary",code:"primary","display-1":"primary","display-2":"primary","display-3":"primary",inherit:"inherit"};function WL(e){return e in Wb?e:"body"}function HT(e){return e in Kb?e:"primary"}function Je({type:e="body",size:t,color:r,weight:s,display:o="inline",maxLines:l=0,hasTruncateTooltip:u=!0,wordBreak:f,textWrap:d,justify:p="start",hasCapsize:y=!1,hasStrikethrough:m=!1,hasTabularNumbers:k=!1,xstyle:v,className:w,style:S,as:E="span",children:R,ref:C,...T}){const A=r??KL[e]??"primary",N=WL(e),L=HT(A),D=f??(l===1?"break-all":"break-word"),j=l>0||y?"block":o,O=BT({maxLines:l}),M=typeof u=="string"?u:"above",H=l>0&&u!==!1&&O.isTruncated,F=g.useRef(null),q=xn(C,O.ref,F),B=l>1?{WebkitLineClamp:l}:void 0;return x.jsxs(x.Fragment,{children:[x.jsx(E,{ref:q,...ye(fe("text",{type:e,size:t,color:A}),de(Kb[L],Wb[N],t&&FL[t],zT[N],s&&NT[s],l===1?sp.singleLine:l>1?sp.multiLine:LT[j],l>0&&DT[D],d&&OT[d],p!=="start"&&qT[p],y&&IT.enabled,m&&_T.strikethrough,k&&VL.enabled,v),w,{...S,...B}),...T,children:R}),H&&x.jsx(g.Suspense,{fallback:null,children:x.jsx(GL,{anchorRef:F,content:x.jsx("span",{...de(PT.content),children:O.fullText}),placement:M})})]})}Je.displayName="Text";function hy(e,t){const r=t&&t.cache?t.cache:tD,s=t&&t.serializer?t.serializer:JL;return(t&&t.strategy?t.strategy:ZL)(e,{cache:r,serializer:s})}function YL(e){return e==null||typeof e=="number"||typeof e=="boolean"}function XL(e,t,r,s){const o=YL(s)?s:r(s);let l=t.get(o);return typeof l>"u"&&(l=e.call(this,s),t.set(o,l)),l}function FT(e,t,r){const s=Array.prototype.slice.call(arguments,3),o=r(s);let l=t.get(o);return typeof l>"u"&&(l=e.apply(this,s),t.set(o,l)),l}function UT(e,t,r,s,o){return r.bind(t,e,s,o)}function ZL(e,t){const r=e.length===1?XL:FT;return UT(e,this,r,t.cache.create(),t.serializer)}function QL(e,t){return UT(e,this,FT,t.cache.create(),t.serializer)}const JL=function(){return JSON.stringify(arguments)};var eD=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}};const tD={create:function(){return new eD}},py={variadic:QL},nD=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function rD(e){const t={};return e.replace(nD,r=>{const s=r.length;switch(r[0]){case"G":t.era=s===4?"long":s===5?"narrow":"short";break;case"y":t.year=s===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][s-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][s-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=s===4?"long":s===5?"narrow":"short";break;case"e":if(s<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][s-3];break;case"c":if(s<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][s-3];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][s-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][s-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][s-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][s-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][s-1];break;case"s":t.second=["numeric","2-digit"][s-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=s<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}const aD=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function sD(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");const t=e.split(aD).filter(s=>s.length>0),r=[];for(const s of t){let o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");const[l,...u]=o;for(const f of u)if(f.length===0)throw new Error("Invalid number skeleton");r.push({stem:l,options:u})}return r}function oD(e){return e.replace(/^(.*?)-/,"")}const v5=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,VT=/^(@+)?(\+|#+)?[rs]?$/g,iD=/(\*)(0+)|(#+)(0+)|(0+)/g,GT=/^(0+)$/;function w5(e){const t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(VT,function(r,s,o){return typeof o!="string"?(t.minimumSignificantDigits=s.length,t.maximumSignificantDigits=s.length):o==="+"?t.minimumSignificantDigits=s.length:s[0]==="#"?t.maximumSignificantDigits=s.length:(t.minimumSignificantDigits=s.length,t.maximumSignificantDigits=s.length+(typeof o=="string"?o.length:0)),""}),t}function KT(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function lD(e){let t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){const r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!GT.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function S5(e){const t={},r=KT(e);return r||t}function cD(e){let t={};for(const r of e){switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=oD(r.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t={...t,notation:"scientific",...r.options.reduce((l,u)=>({...l,...S5(u)}),{})};continue;case"engineering":t={...t,notation:"engineering",...r.options.reduce((l,u)=>({...l,...S5(u)}),{})};continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(iD,function(l,u,f,d,p,y){if(u)t.minimumIntegerDigits=f.length;else{if(d&&p)throw new Error("We currently do not support maximum integer digits");if(y)throw new Error("We currently do not support exact integer digits")}return""});continue}if(GT.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(v5.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(v5,function(u,f,d,p,y,m){return d==="*"?t.minimumFractionDigits=f.length:p&&p[0]==="#"?t.maximumFractionDigits=p.length:y&&m?(t.minimumFractionDigits=y.length,t.maximumFractionDigits=y.length+m.length):(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length),""});const l=r.options[0];l==="w"?t={...t,trailingZeroDisplay:"stripIfInteger"}:l&&(t={...t,...w5(l)});continue}if(VT.test(r.stem)){t={...t,...w5(r.stem)};continue}const s=KT(r.stem);s&&(t={...t,...s});const o=lD(r.stem);o&&(t={...t,...o})}return t}let uD=(function(e){return e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",e})({});function E5(e){return e.type===0}function dD(e){return e.type===1}function WT(e){return e.type===2}function YT(e){return e.type===3}function XT(e){return e.type===4}function ZT(e){return e.type===5}function QT(e){return e.type===6}function fD(e){return e.type===7}function JT(e){return e.type===8}function eC(e){return!!(e&&typeof e=="object"&&e.type===0)}function T1(e){return!!(e&&typeof e=="object"&&e.type===1)}const tC=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,wu={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GS:["H","h","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ku-SY":["H","hB"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function hD(e,t){let r="";for(let s=0;s<e.length;s++){const o=e.charAt(s);if(o==="j"){let l=0;for(;s+1<e.length&&e.charAt(s+1)===o;)l++,s++;let u=1+(l&1),f=l<2?1:3+(l>>1),d="a",p=pD(t);for((p=="H"||p=="k")&&(f=0);f-- >0;)r+=d;for(;u-- >0;)r=p+r}else o==="J"?r+="H":r+=o}return r}function pD(e){let t=e.hourCycle;if(t===void 0){const o=e;t=o.getHourCycles?.()[0]??o.hourCycles?.[0]}if(t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}const r=e.language;let s;return r!=="root"&&(s=e.maximize().region),(wu[`${r}-${s}`]||wu[s||""]||wu[r||""]||wu[`${r}-001`]||wu["001"])[0].charAt(0)}const xD=new RegExp(`^${tC.source}*`),gD=new RegExp(`${tC.source}*$`);function Et(e,t){return{start:e,end:t}}const mD=!!Object.fromEntries,yD=!!String.prototype.trimStart,bD=!!String.prototype.trimEnd,$5=mD?Object.fromEntries:function(t){const r={};for(const[s,o]of t)r[s]=o;return r},kD=yD?function(t){return t.trimStart()}:function(t){return t.replace(xD,"")},vD=bD?function(t){return t.trimEnd()}:function(t){return t.replace(gD,"")},T5=new RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");function wD(e,t){return T5.lastIndex=t,T5.exec(e)[1]??""}function SD(e){if(e.length===0)return null;let t=1,r=1;for(let s=0;s<e.length;){const o=e.charCodeAt(s);switch(o){case 35:case 39:case 60:case 123:case 125:return null}if(o===10)t++,r=1,s++;else if(r++,o>=55296&&o<=56319&&s+1<e.length){const l=e.charCodeAt(s+1);s+=l>=56320&&l<=57343?2:1}else s++}return{offset:e.length,line:t,column:r}}var ED=class{constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(this.offset()!==0)throw Error("parser can only be used once");if(this.message.length>0){const e=this.message.charCodeAt(0);if(e!==35&&e!==39&&e!==60&&e!==123&&e!==125){const t=SD(this.message);if(t){const r=this.clonePosition();return this.position=t,{val:[{type:0,value:this.message,location:Et(r,this.clonePosition())}],err:null}}}}return this.parseMessage(0,"",!1)}parseMessage(e,t,r){let s=[];for(;!this.isEOF();){const o=this.char();if(o===123){const l=this.parseArgument(e,r);if(l.err)return l;s.push(l.val)}else{if(o===125&&e>0)break;if(o===35&&(t==="plural"||t==="selectordinal")){const l=this.clonePosition();this.bump(),s.push({type:7,location:Et(l,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(26,Et(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&C1(this.peek()||0)){const l=this.parseTag(e,t);if(l.err)return l;s.push(l.val)}else{const l=this.parseLiteral(e,t);if(l.err)return l;s.push(l.val)}}}return{val:s,err:null}}parseTag(e,t){const r=this.clonePosition();this.bump();const s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:0,value:`<${s}/>`,location:Et(r,this.clonePosition())},err:null};if(this.bumpIf(">")){const o=this.parseMessage(e+1,t,!0);if(o.err)return o;const l=o.val,u=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!C1(this.char()))return this.error(23,Et(u,this.clonePosition()));const f=this.clonePosition();return s!==this.parseTagName()?this.error(26,Et(f,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:8,value:s,children:l,location:Et(r,this.clonePosition())},err:null}:this.error(23,Et(u,this.clonePosition())))}else return this.error(27,Et(r,this.clonePosition()))}else return this.error(23,Et(r,this.clonePosition()))}parseTagName(){const e=this.offset();for(this.bump();!this.isEOF()&&TD(this.char());)this.bump();return this.message.slice(e,this.offset())}parseLiteral(e,t){const r=this.clonePosition();let s="";for(;;){const l=this.tryParseQuote(t);if(l){s+=l;continue}const u=this.tryParseUnquoted(e,t);if(u){s+=u;continue}const f=this.tryParseLeftAngleBracket();if(f){s+=f;continue}break}const o=Et(r,this.clonePosition());return{val:{type:0,value:s,location:o},err:null}}tryParseLeftAngleBracket(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!$D(this.peek()||0))?(this.bump(),"<"):null}tryParseQuote(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();const t=[this.char()];for(this.bump();!this.isEOF();){const r=this.char();if(r===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(r);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;const r=this.char();return r===60||r===123||r===35&&(t==="plural"||t==="selectordinal")||r===125&&e>0?null:(this.bump(),String.fromCodePoint(r))}parseArgument(e,t){const r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,Et(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(2,Et(r,this.clonePosition()));let s=this.parseIdentifierIfPossible().value;if(!s)return this.error(3,Et(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,Et(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:s,location:Et(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(1,Et(r,this.clonePosition())):this.parseArgumentOptions(e,t,s,r);default:return this.error(3,Et(r,this.clonePosition()))}}parseIdentifierIfPossible(){const e=this.clonePosition(),t=this.offset(),r=wD(this.message,t),s=t+r.length;return this.bumpTo(s),{value:r,location:Et(e,this.clonePosition())}}parseArgumentOptions(e,t,r,s){let o=this.clonePosition(),l=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(l){case"":return this.error(4,Et(o,u));case"number":case"date":case"time":{this.bumpSpace();let f=null;if(this.bumpIf(",")){this.bumpSpace();const y=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;const k=vD(m.val);if(k.length===0)return this.error(6,Et(this.clonePosition(),this.clonePosition()));f={style:k,styleLocation:Et(y,this.clonePosition())}}const d=this.tryParseArgumentClose(s);if(d.err)return d;const p=Et(s,this.clonePosition());if(f&&f.style.startsWith("::")){let y=kD(f.style.slice(2));if(l==="number"){const m=this.parseNumberSkeletonFromString(y,f.styleLocation);return m.err?m:{val:{type:2,value:r,location:p,style:m.val},err:null}}else{if(y.length===0)return this.error(10,p);let m=y;this.locale&&(m=hD(y,this.locale));const k={type:1,pattern:m,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?rD(m):{}};return{val:{type:l==="date"?3:4,value:r,location:p,style:k},err:null}}}return{val:{type:l==="number"?2:l==="date"?3:4,value:r,location:p,style:f?.style??null},err:null}}case"plural":case"selectordinal":case"select":{const f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(12,Et(f,{...f}));this.bumpSpace();let d=this.parseIdentifierIfPossible(),p=0;if(l!=="select"&&d.value==="offset"){if(!this.bumpIf(":"))return this.error(13,Et(this.clonePosition(),this.clonePosition()));this.bumpSpace();const v=this.tryParseDecimalInteger(13,14);if(v.err)return v;this.bumpSpace(),d=this.parseIdentifierIfPossible(),p=v.val}const y=this.tryParsePluralOrSelectOptions(e,l,t,d);if(y.err)return y;const m=this.tryParseArgumentClose(s);if(m.err)return m;const k=Et(s,this.clonePosition());return l==="select"?{val:{type:5,value:r,options:$5(y.val),location:k},err:null}:{val:{type:6,value:r,options:$5(y.val),offset:p,pluralType:l==="plural"?"cardinal":"ordinal",location:k},err:null}}default:return this.error(5,Et(o,u))}}tryParseArgumentClose(e){return this.isEOF()||this.char()!==125?this.error(1,Et(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0;const t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(11,Et(r,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(e>0)e-=1;else return{val:this.message.slice(t.offset,this.offset()),err:null};break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let r=[];try{r=sD(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?cD(r):{}},err:null}}tryParsePluralOrSelectOptions(e,t,r,s){let o=!1;const l=[],u=new Set;let{value:f,location:d}=s;for(;;){if(f.length===0){const k=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){const v=this.tryParseDecimalInteger(16,19);if(v.err)return v;d=Et(k,this.clonePosition()),f=this.message.slice(k.offset,this.offset())}else break}if(u.has(f))return this.error(t==="select"?21:20,d);f==="other"&&(o=!0),this.bumpSpace();const p=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?17:18,Et(this.clonePosition(),this.clonePosition()));const y=this.parseMessage(e+1,t,r);if(y.err)return y;const m=this.tryParseArgumentClose(p);if(m.err)return m;l.push([f,{value:y.val,location:Et(p,this.clonePosition())}]),u.add(f),this.bumpSpace(),{value:f,location:d}=this.parseIdentifierIfPossible()}return l.length===0?this.error(t==="select"?15:16,Et(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(22,Et(this.clonePosition(),this.clonePosition())):{val:l,err:null}}tryParseDecimalInteger(e,t){let r=1;const s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);let o=!1,l=0;for(;!this.isEOF();){const f=this.char();if(f>=48&&f<=57)o=!0,l=l*10+(f-48),this.bump();else break}const u=Et(s,this.clonePosition());return o?(l*=r,Number.isSafeInteger(l)?{val:l,err:null}:this.error(t,u)):this.error(e,u)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){const e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");const t=this.message.codePointAt(e);if(t===void 0)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;const e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){const t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){const t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(;!this.isEOF()&&CD(this.char());)this.bump()}peek(){if(this.isEOF())return null;const e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}};function C1(e){return e>=97&&e<=122||e>=65&&e<=90}function $D(e){return C1(e)||e===47}function TD(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function CD(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function j1(e){e.forEach(t=>{if(delete t.location,ZT(t)||QT(t))for(const r in t.options)delete t.options[r].location,j1(t.options[r].value);else WT(t)&&eC(t.style)||(YT(t)||XT(t))&&T1(t.style)?delete t.style.location:JT(t)&&j1(t.children)})}function jD(e,t={}){t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t};const r=new ED(e,t).parse();if(r.err){const s=SyntaxError(uD[r.err.kind]);throw s.location=r.err.location,s.originalMessage=r.err.message,s}return t?.captureLocation||j1(r.val),r.val}var Zp=class extends Error{constructor(e,t,r){super(e),this.code=t,this.originalMessage=r}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},C5=class extends Zp{constructor(e,t,r,s){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(r).join('", "')}"`,"INVALID_VALUE",s)}},RD=class extends Zp{constructor(e,t,r){super(`Value for "${e}" must be of type ${t}`,"INVALID_VALUE",r)}},AD=class extends Zp{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,"MISSING_VALUE",t)}};function MD(e){return e.length<2?e:e.reduce((t,r)=>{const s=t[t.length-1];return!s||s.type!==0||r.type!==0?t.push(r):s.value+=r.value,t},[])}function ND(e){return typeof e=="function"}function _h(e,t,r,s,o,l,u){if(e.length===1&&E5(e[0]))return[{type:0,value:e[0].value}];const f=[];for(const d of e){if(E5(d)){f.push({type:0,value:d.value});continue}if(fD(d)){typeof l=="number"&&f.push({type:0,value:r.getNumberFormat(t).format(l)});continue}const{value:p}=d;if(!(o&&p in o))throw new AD(p,u);let y=o[p];if(dD(d)){(!y||typeof y=="string"||typeof y=="number"||typeof y=="bigint")&&(y=typeof y=="string"||typeof y=="number"||typeof y=="bigint"?String(y):""),f.push({type:typeof y=="string"?0:1,value:y});continue}if(YT(d)){const m=typeof d.style=="string"?s.date[d.style]:T1(d.style)?d.style.parsedOptions:void 0;f.push({type:0,value:r.getDateTimeFormat(t,m).format(y)});continue}if(XT(d)){const m=typeof d.style=="string"?s.time[d.style]:T1(d.style)?d.style.parsedOptions:s.time.medium;f.push({type:0,value:r.getDateTimeFormat(t,m).format(y)});continue}if(WT(d)){const m=typeof d.style=="string"?s.number[d.style]:eC(d.style)?d.style.parsedOptions:void 0;if(m&&m.scale){const k=m.scale||1;if(typeof y=="bigint"){if(!Number.isInteger(k))throw new TypeError(`Cannot apply fractional scale ${k} to bigint value. Scale must be an integer when formatting bigint.`);y=y*BigInt(k)}else y=y*k}f.push({type:0,value:r.getNumberFormat(t,m).format(y)});continue}if(JT(d)){const{children:m,value:k}=d,v=o[k];if(!ND(v))throw new RD(k,"function",u);let w=v(_h(m,t,r,s,o,l).map(S=>S.value));Array.isArray(w)||(w=[w]),f.push(...w.map(S=>({type:typeof S=="string"?0:1,value:S})))}if(ZT(d)){const m=y,k=(Object.prototype.hasOwnProperty.call(d.options,m)?d.options[m]:void 0)||d.options.other;if(!k)throw new C5(d.value,y,Object.keys(d.options),u);f.push(..._h(k.value,t,r,s,o));continue}if(QT(d)){const m=`=${y}`;let k=Object.prototype.hasOwnProperty.call(d.options,m)?d.options[m]:void 0;if(!k){if(!Intl.PluralRules)throw new Zp(`Intl.PluralRules is not available in this environment.
14
- Try polyfilling it using "@formatjs/intl-pluralrules"
15
- `,"MISSING_INTL_API",u);const w=typeof y=="bigint"?Number(y):y,S=r.getPluralRules(t,{type:d.pluralType}).select(w-(d.offset||0));k=(Object.prototype.hasOwnProperty.call(d.options,S)?d.options[S]:void 0)||d.options.other}if(!k)throw new C5(d.value,y,Object.keys(d.options),u);const v=typeof y=="bigint"?Number(y):y;f.push(..._h(k.value,t,r,s,o,v-(d.offset||0)));continue}}return MD(f)}function zD(e,t){return t?{...e,...t,...Object.keys(e).reduce((r,s)=>(r[s]={...e[s],...t[s]},r),{})}:e}function LD(e,t){return t?Object.keys(e).reduce((r,s)=>(r[s]=zD(e[s],t[s]),r),{...e}):e}function xy(e){return{create(){return{get(t){return e[t]},set(t,r){e[t]=r}}}}}function DD(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:hy((...t)=>new Intl.NumberFormat(...t),{cache:xy(e.number),strategy:py.variadic}),getDateTimeFormat:hy((...t)=>new Intl.DateTimeFormat(...t),{cache:xy(e.dateTime),strategy:py.variadic}),getPluralRules:hy((...t)=>new Intl.PluralRules(...t),{cache:xy(e.pluralRules),strategy:py.variadic})}}var sr,OD=(sr=class{constructor(t,r=sr.defaultLocale,s,o){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=l=>{const u=this.formatToParts(l);if(u.length===1)return u[0].value;const f=u.reduce((d,p)=>(!d.length||p.type!==0||typeof d[d.length-1]!="string"?d.push(p.value):d[d.length-1]+=p.value,d),[]);return f.length<=1?f[0]||"":f},this.formatToParts=l=>_h(this.ast,this.locales,this.formatters,this.formats,l,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=r,this.resolvedLocale=sr.resolveLocale(r),typeof t=="string"){if(this.message=t,!sr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");const{...l}=o||{};this.ast=sr.__parse(t,{...l,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=LD(sr.formats,s),this.formatters=o&&o.formatters||DD(this.formatterCache)}static get defaultLocale(){return sr.memoizedDefaultLocale||(sr.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),sr.memoizedDefaultLocale}},sr.memoizedDefaultLocale=null,sr.resolveLocale=t=>{if(typeof Intl.Locale>"u")return;const r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])},sr.__parse=jD,sr.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},sr),ID=OD;const _D={"@astryx.pagination.label":"Pagination","@astryx.pagination.previous":"Go to previous page","@astryx.pagination.next":"Go to next page","@astryx.pagination.previousBy":"Go back {step, number} {step, plural, one {page} other {pages}}","@astryx.pagination.nextBy":"Go forward {step, number} {step, plural, one {page} other {pages}}","@astryx.pagination.first":"Go to first page","@astryx.pagination.last":"Go to last page","@astryx.pagination.goToPage":"Go to page {page, number}","@astryx.pagination.goToPageInput":"Go to page","@astryx.pagination.pageLabel":"Page","@astryx.pagination.ofTotalPages":"/ {total, number}","@astryx.pagination.pageIndicators":"Page indicators","@astryx.pagination.itemsPerPage":"Items per page","@astryx.pagination.count":"{from, number}–{to, number} of {total, number}","@astryx.pagination.pageOfTotal":"Page {current, number} of {total, number}","@astryx.pagination.pageAnnounce":"Page {current, number}","@astryx.powersearch.editor.field":"Field","@astryx.powersearch.editor.operator":"Operator","@astryx.powersearch.editor.addFilter":"+ Add filter","@astryx.powersearch.editor.removeFilter":"Remove filter","@astryx.powersearch.editor.groupOperator":"Group operator","@astryx.powersearch.editor.group":"Group","@astryx.powersearch.editor.delete":"Delete","@astryx.powersearch.editor.cancel":"Cancel","@astryx.powersearch.editor.apply":"Apply","@astryx.powersearch.valueEditor.value":"Value","@astryx.powersearch.valueEditor.values":"Values","@astryx.powersearch.valueEditor.time":"Time","@astryx.powersearch.valueEditor.date":"Date","@astryx.powersearch.valueEditor.relativeDate":"Relative date","@astryx.powersearch.valueEditor.startDate":"Start date","@astryx.powersearch.valueEditor.endDate":"End date","@astryx.powersearch.valueEditor.entities":"Entities","@astryx.powersearch.valueEditor.searchPlaceholder":"Search…","@astryx.powersearch.valueEditor.enterValuePlaceholder":"Enter value…","@astryx.powersearch.valueEditor.addValuesPlaceholder":"Add values…","@astryx.powersearch.valueEditor.enterNumberPlaceholder":"Enter number…","@astryx.powersearch.valueEditor.selectValuesPlaceholder":"Select values…","@astryx.powersearch.operator.contains":"contains","@astryx.powersearch.operator.notContains":"does not contain","@astryx.powersearch.operator.startsWith":"starts with","@astryx.powersearch.operator.notStartsWith":"does not start with","@astryx.powersearch.operator.endsWith":"ends with","@astryx.powersearch.operator.notEndsWith":"does not end with","@astryx.powersearch.operator.is":"is","@astryx.powersearch.operator.isNot":"is not","@astryx.powersearch.operator.equals":"is","@astryx.powersearch.operator.notEquals":"is not","@astryx.powersearch.operator.greaterThan":"is greater than","@astryx.powersearch.operator.lessThan":"is less than","@astryx.powersearch.operator.greaterThanOrEqual":"is greater than or equal to","@astryx.powersearch.operator.lessThanOrEqual":"is less than or equal to","@astryx.powersearch.operator.before":"is before","@astryx.powersearch.operator.after":"is after","@astryx.powersearch.operator.between":"is between","@astryx.powersearch.operator.isTrue":"is true","@astryx.powersearch.operator.isFalse":"is false","@astryx.powersearch.operator.isAnyOf":"is any of","@astryx.powersearch.operator.isNoneOf":"is none of","@astryx.powersearch.valueEditor.itemsCount":"{count, number} {count, plural, one {item} other {items}}","@astryx.powersearch.valueEditor.entitiesCount":"{count, number} {count, plural, one {entity} other {entities}}","@astryx.powersearch.valueEditor.dateRange":"date range","@astryx.powersearch.valueEditor.filtersCount":"{count, number} {count, plural, one {filter} other {filters}}","@astryx.powersearch.resultCount":"{count, number} {count, plural, one {result} other {results}}","@astryx.alertDialog.cancel":"Cancel","@astryx.appShell.mobileNavigation":"Mobile navigation","@astryx.appShell.skipToContent":"Skip to content","@astryx.avatar.nameWithStatus":"{name}, {status}","@astryx.avatarGroup.label":"Avatars","@astryx.avatarGroup.keyboardHint":"Use arrow keys to move between avatars","@astryx.avatarGroup.overflow":"{count, number} more","@astryx.banner.dismiss":"Dismiss","@astryx.banner.dismissTitled":"{dismiss} {title}","@astryx.calendar.previousMonth":"Previous month","@astryx.calendar.nextMonth":"Next month","@astryx.calendar.daySelected":"{date}, selected","@astryx.calendar.dayRangeStart":"{date}, range start","@astryx.calendar.dayRangeEnd":"{date}, range end","@astryx.calendar.dayRangeStartAndEnd":"{date}, range start and range end","@astryx.calendar.dayInRange":"{date}, in range","@astryx.calendar.rangeStartAnnounce":"Start date {date}. Select an end date.","@astryx.calendar.rangeCompleteAnnounce":"Selected range: {start} to {end}.","@astryx.calendar.rangeClearedAnnounce":"Cleared start date {date}. Select a start date.","@astryx.carousel.label":"Carousel","@astryx.carousel.scrollLeft":"Scroll left","@astryx.carousel.scrollRight":"Scroll right","@astryx.carousel.slideLabel":"Slide {current, number} of {total, number}","@astryx.chart.label":"Chart","@astryx.chart.labelWithSeries":"Chart of {series} by {xKey}","@astryx.chart.dataTableCaption":"{label} data","@astryx.chartLegend.label":"Chart legend","@astryx.chat.status.sending":"Sending","@astryx.chat.status.sent":"Sent","@astryx.chat.status.delivered":"Delivered","@astryx.chat.status.read":"Read","@astryx.chat.status.failed":"Failed","@astryx.chat.messageAriaLabel":"Message {status}","@astryx.chat.pastedText.expand":"Expand","@astryx.checkboxList.item.checkbox":"Checkbox","@astryx.commandPalette.emptySearch":"No results","@astryx.commandPalette.emptyBootstrap":"Type to search","@astryx.commandPalette.resultCount":"{count, number} {count, plural, one {result} other {results}}","@astryx.commandPalette.noResultsFor":"No results for {query}","@astryx.commandPalette.loading":"Loading","@astryx.dateRangeInput.presetDateRanges":"Preset date ranges","@astryx.dateTimeInput.timePlaceholder":"Select a time","@astryx.dialog.close":"Close","@astryx.dropdownMenu.label":"Menu","@astryx.dropdownMenu.back":"Back","@astryx.dropdownMenu.backTo":"Back to {parent}","@astryx.lightbox.close":"Close","@astryx.lightbox.previous":"Previous","@astryx.lightbox.next":"Next","@astryx.chatTypingIndicator.one":"{name} is typing…","@astryx.chatTypingIndicator.many":"{names} are typing…","@astryx.chatTypingIndicator.others":"{count, number} {count, plural, one {other} other {others}}","@astryx.listInput.emptyTitle":"No {itemName}s yet","@astryx.listInput.emptyDescription":"Add a {itemName} to get started.","@astryx.listInput.addItem":"Add {itemName}","@astryx.listInput.removeItem":"Remove {itemName} {position, number}","@astryx.listInput.removeUnavailable":"Remove is unavailable while the list is disabled","@astryx.listInput.reorderItem":"Reorder {itemName} {position, number}","@astryx.listInput.fieldLabelWithPosition":"{header}, {itemName} {position, number} of {total, number}","@astryx.listInput.reorderInstructions":"Use Arrow Up or Arrow Down to move this item one position. Press Space or Enter to pick it up for extended keyboard reordering.","@astryx.listInput.announceAdded":"Added {itemName} {position, number}.","@astryx.listInput.announceRemoved":"Removed {itemName} {position, number}.","@astryx.listInput.announceGrabbed":"{itemName} {position, number} grabbed. Use arrow keys to move, Space or Enter to drop, and Escape to cancel.","@astryx.listInput.announceMovedToPosition":"{itemName} moved to position {position, number} of {total, number}.","@astryx.listInput.announceReorderCancelled":"Reordering cancelled.","@astryx.listInput.announceReturnedToPosition":"{itemName} returned to position {position, number}.","@astryx.listInput.announceDropped":"{itemName} dropped at position {position, number} of {total, number}.","@astryx.listInput.announceAlreadyAtBoundary":"This {itemName} is already {boundary, select, first {first} last {last} other {}}.","@astryx.markdownHeadingLinks.copied":"Link copied","@astryx.markdownHeadingLinks.copy":"Copy link to {heading}","@astryx.richTextEditor.tabEscapeHint":"Press Escape then Tab to move focus out of the editor.","@astryx.richTextEditor.toolbar.label":"Text formatting","@astryx.richTextEditor.toolbar.actions":"Formatting actions","@astryx.richTextEditor.toolbar.undo":"Undo","@astryx.richTextEditor.toolbar.redo":"Redo","@astryx.richTextEditor.toolbar.historyDivider":"History and block formats","@astryx.richTextEditor.toolbar.blockFormat":"Block format","@astryx.richTextEditor.toolbar.formatDivider":"Block and inline formats","@astryx.richTextEditor.toolbar.paragraph":"Paragraph","@astryx.richTextEditor.toolbar.heading1":"Heading 1","@astryx.richTextEditor.toolbar.heading2":"Heading 2","@astryx.richTextEditor.toolbar.heading3":"Heading 3","@astryx.richTextEditor.toolbar.bulletedList":"Bulleted list","@astryx.richTextEditor.toolbar.numberedList":"Numbered list","@astryx.richTextEditor.toolbar.blockQuote":"Block quote","@astryx.richTextEditor.toolbar.bold":"Bold","@astryx.richTextEditor.toolbar.italic":"Italic","@astryx.richTextEditor.toolbar.underline":"Underline","@astryx.richTextEditor.toolbar.strikethrough":"Strikethrough","@astryx.richTextEditor.toolbar.inlineCode":"Inline code","@astryx.richTextEditor.toolbar.link":"Link","@astryx.richTextEditor.link.insertTitle":"Insert link","@astryx.richTextEditor.link.editTitle":"Edit link","@astryx.richTextEditor.link.url":"URL","@astryx.richTextEditor.link.invalidUrl":"Enter a valid http, https, mailto, or tel URL.","@astryx.richTextEditor.link.remove":"Remove link","@astryx.richTextEditor.link.cancel":"Cancel","@astryx.richTextEditor.link.add":"Add link","@astryx.richTextEditor.link.update":"Update link","@astryx.markdown.taskList":"Task list","@astryx.markdown.table":"Table","@astryx.mobileNav.closeNavigation":"Close navigation","@astryx.multiSelector.selectAll":"Select all","@astryx.multiSelector.searchPlaceholder":"Search…","@astryx.multiSelector.searchOptions":"Search options","@astryx.multiSelector.empty":"No options","@astryx.multiSelector.selectAllPartiallySelected":"{label}, partially selected","@astryx.popover.close":"Close popover","@astryx.selector.searchPlaceholder":"Search…","@astryx.selector.searchOptions":"Search options","@astryx.selector.empty":"No options","@astryx.sideNav.label":"Side navigation","@astryx.sideNav.resizeSidebar":"Resize sidebar","@astryx.sideNav.heading.openMenu":"Open menu","@astryx.tabList.label":"Tabs","@astryx.table.label":"Table","@astryx.table.noData":"No data","@astryx.table.filter.allPlaceholder":"All","@astryx.table.filter.reset":"Reset","@astryx.table.filter.apply":"Apply","@astryx.table.rowStatus.columnHeader":"Row status","@astryx.table.selection.bulkActionsLabel":"Bulk actions","@astryx.table.selection.clearAll":"Unselect All","@astryx.table.selection.selectedCount":"{count, number} selected","@astryx.table.selection.selectAllRows":"Select all rows","@astryx.table.selection.selectRow":"Select row","@astryx.table.selection.selectRowNamed":"Select {label}","@astryx.table.sort.ascending":"Sort ascending","@astryx.table.sort.descending":"Sort descending","@astryx.table.sort.clear":"Clear sort","@astryx.table.sort.direction.ascending":"ascending","@astryx.table.sort.direction.descending":"descending","@astryx.table.sort.sortBy":"Sort by {label}","@astryx.table.sort.sortedBy":"Sort by {label}, sorted {direction}","@astryx.table.sort.sortedByWithPriority":"Sort by {label}, sorted {direction}, priority {rank, number} of {total, number}","@astryx.toast.dismiss":"Dismiss notification","@astryx.toast.viewport":"Notifications","@astryx.tokenizer.clearAll":"Clear all","@astryx.topNav.heading.openMenu":"Open menu","@astryx.topNav.landmarkLabel":"Top navigation","@astryx.treeList.toggleChildren":"Toggle children","@astryx.typeahead.emptySearchResults":"No results found","@astryx.typeahead.loading":"Loading","@astryx.typeahead.searchResults":"Search results","@astryx.typeahead.clearSelection":"Clear selection","@astryx.breadcrumbs.label":"Breadcrumb","@astryx.chat.composer.placeholder":"Type a message…","@astryx.chat.composerDrawer.label":"Items","@astryx.chat.composerInput.label":"Message input","@astryx.chat.speechRecognition.noSpeechDetected":"No speech was detected.","@astryx.commandPalette.label":"Command palette","@astryx.commandPalette.input.placeholder":"Search…","@astryx.commandPalette.list.label":"Commands","@astryx.contextMenu.label":"Context menu","@astryx.dateInput.placeholder":"Select a date","@astryx.dateInput.dialogLabel":"Choose date","@astryx.dateInput.closeCalendar":"Close calendar","@astryx.dateInput.openCalendar":"Open calendar","@astryx.dateInput.toggleCalendarClose":"Close calendar","@astryx.dateInput.clear":"Clear {label}","@astryx.dateInput.invalidDate":"Invalid date","@astryx.dateInput.resetPicking":"Reset","@astryx.dateInput.savePicking":"Save","@astryx.dateInput.doneChoosingMonth":"Done","@astryx.dateInput.chooseMonthYear":"{monthYear}, Choose month and year","@astryx.dateInput.monthWheel":"Month","@astryx.dateInput.yearWheel":"Year","@astryx.dateTimeInput.timeHint12h":"e.g., 2:30 PM","@astryx.dateTimeInput.timeHint24h":"e.g., 14:30","@astryx.dateTimeInput.timeSuffix":"{label} time","@astryx.dateTimeInput.timeOptionsLabel":"{label} options","@astryx.dateRangeInput.placeholder":"Select date range","@astryx.dateRangeInput.dialogLabel":"Choose date range","@astryx.dateTimeInput.placeholder":"Select a date","@astryx.dateTimeInput.dialogLabel":"Choose date and time","@astryx.dateTimeInput.pickerMode":"Date/time section","@astryx.dateTimeInput.dateTab":"Date","@astryx.dateTimeInput.timeTab":"Time","@astryx.dateTimeInput.openTimePicker":"Open {label}","@astryx.dateTimeInput.saveDatePicking":"Save date","@astryx.dateTimeInput.hourWheel":"Hour","@astryx.dateTimeInput.minuteWheel":"Minute","@astryx.dateTimeInput.secondWheel":"Second","@astryx.dateTimeInput.meridiemWheel":"AM/PM","@astryx.dateTimeInput.meridiemAM":"AM","@astryx.dateTimeInput.meridiemPM":"PM","@astryx.link.newTab":"(opens in new tab)","@astryx.mobileNav.toggle.open":"Open navigation","@astryx.moreMenu.label":"More options","@astryx.multiSelector.selectPlaceholder":"Select…","@astryx.outline.label":"Table of contents","@astryx.powersearch.label":"Search","@astryx.powersearch.placeholder":"Search…","@astryx.resizable.collapsed":"Collapsed","@astryx.resizable.handle.label":"Resize handle","@astryx.selector.placeholder":"Select…","@astryx.sideNav.heading.dialogLabel":"Navigation menu","@astryx.table.pagination.label":"Table pagination","@astryx.table.pagination.labelAbove":"{label} (top)","@astryx.table.pagination.labelBelow":"{label} (bottom)","@astryx.timeInput.placeholder":"Select a time","@astryx.timeInput.invalidTime":"Invalid time","@astryx.timeInput.openPicker":"Open {label}","@astryx.topNav.heading.dialogLabel":"Navigation menu","@astryx.typeahead.searchPlaceholder":"Search…","@astryx.banner.collapse":"Collapse","@astryx.banner.expand":"Expand","@astryx.button.loading":"Loading","@astryx.spinner.loading":"Loading","@astryx.chatComposerDrawer.expand":"Expand {label}","@astryx.chatComposerDrawer.collapse":"Collapse {label}","@astryx.chatDictationButton.startDictation":"Start dictation","@astryx.chatDictationButton.stopDictation":"Stop dictation","@astryx.chatLayout.newMessages":"New messages","@astryx.chatLayoutScrollButton.scrollToBottom":"Scroll to bottom","@astryx.chatMessage.messageFrom":"Message from {sender}","@astryx.chatSendButton.stop":"Stop","@astryx.chatSendButton.send":"Send","@astryx.chatToolCalls.error":"Error: {message}","@astryx.chatToolCalls.status.pending":"Pending","@astryx.chatToolCalls.status.running":"Running","@astryx.chatToolCalls.status.complete":"Complete","@astryx.chatToolCalls.status.error":"Failed","@astryx.chatToolCalls.groupLabel":"{count} tool calls","@astryx.chatTriggerMenu.suggestions":"Suggestions","@astryx.citation.label":"Citation {number}: {title}","@astryx.codeBlock.copied":"Copied","@astryx.codeBlock.copyCode":"Copy code","@astryx.codeBlock.code":"Code","@astryx.field.optional":"Optional","@astryx.field.required":"Required","@astryx.fileInput.clearLabel":"Clear {label}","@astryx.fileInput.dropHint":"Drop files here","@astryx.fileInput.errorInvalidType":'"{fileName}" is not an accepted file type',"@astryx.fileInput.errorMaxFiles":"Maximum {maxFiles} files allowed","@astryx.fileInput.errorMaxSize":'"{fileName}" exceeds {maxSize} limit',"@astryx.fileInput.fileSelected":"1 file selected: {fileName}","@astryx.fileInput.filesSelected":"{count} files selected","@astryx.fileInput.placeholder":"Choose file","@astryx.fileInput.placeholderMultiple":"Choose files","@astryx.fileInput.required":"Required","@astryx.fileInput.triggerWithFiles":"{label}, {fileNames}","@astryx.keyboardHint.toNavigate":"to navigate","@astryx.lightbox.mediaViewer":"Media viewer","@astryx.lightbox.zoom":"Zoom","@astryx.lightbox.zoomedIn":"Zoomed in, use arrow keys to pan","@astryx.lightbox.zoomedOut":"Zoomed out","@astryx.metadataList.showMore":"Show more","@astryx.metadataList.showLess":"Show less","@astryx.mobileNav.navigation":"Navigation","@astryx.multiSelector.clearAll":"Clear all {label}","@astryx.input.readOnly":"Read only","@astryx.input.statusButton.error":"Error details","@astryx.input.statusButton.warning":"Warning details","@astryx.input.statusButton.success":"Success details","@astryx.numberInput.clearLabel":"Clear {label}","@astryx.numberInput.decrementLabel":"Decrement {label}","@astryx.numberInput.incrementLabel":"Increment {label}","@astryx.selector.clearLabel":"Clear {label}","@astryx.sideNavCollapseButton.expandSidebar":"Expand sidebar","@astryx.sideNavCollapseButton.collapseSidebar":"Collapse sidebar","@astryx.sideNavItem.expand":"Expand {label}","@astryx.sideNavItem.collapse":"Collapse {label}","@astryx.sideNavItem.submenuLabel":"{label} submenu","@astryx.tableFiltering.filterByColumn":"Filter {header}","@astryx.tableGroupedRows.expandGroup":"Expand group {groupKey}","@astryx.tableGroupedRows.collapseGroup":"Collapse group {groupKey}","@astryx.tableRowExpansion.collapseRow":"Collapse row","@astryx.tableRowExpansion.expandRow":"Expand row","@astryx.tableRowExpansion.columnHeader":"Row expansion","@astryx.tableRowExpansion.collapseAllRows":"Collapse all rows","@astryx.tableRowExpansion.expandAllRows":"Expand all rows","@astryx.stepper.label":"Progress","@astryx.stepper.previousStep":"Previous step","@astryx.stepper.nextStep":"Next step","@astryx.step.goToStep":"Go to step {stepNumber, number}: {label}","@astryx.step.goToStepWithStatus":"Go to step {stepNumber, number}: {label}, {status}","@astryx.step.optional":"Optional","@astryx.step.status.completed":"completed","@astryx.step.status.warning":"warning","@astryx.step.status.error":"error","@astryx.switch.loading":"Loading","@astryx.tableTree.collapseRow":"Collapse row","@astryx.tableTree.expandRow":"Expand row","@astryx.tableTree.collapseAllRows":"Collapse all rows","@astryx.tableTree.expandAllRows":"Expand all rows","@astryx.textArea.charactersRemaining":"{count, number} {count, plural, one {character} other {characters}} remaining","@astryx.textArea.charactersOverLimit":"{count, number} {count, plural, one {character} other {characters}} over the limit","@astryx.textInput.clearLabel":"Clear {label}","@astryx.thumbnail.remove":"Remove {accessibleName}","@astryx.thumbnail.open":"Open {accessibleName}","@astryx.thumbnail.fallbackName":"Thumbnail","@astryx.timeInput.clearLabel":"Clear {label}","@astryx.timestamp.copyValue":"Copy {value}","@astryx.timestamp.copy":"Copy","@astryx.timestamp.copied":"Copied","@astryx.timestamp.detailsLabel":"Timestamp details","@astryx.token.remove":"Remove {label}","@astryx.commandPalette.footer.navigate":"Navigate","@astryx.commandPalette.footer.select":"Select","@astryx.commandPalette.footer.close":"Close","@astryx.multiSelector.selectionCleared":"Selection cleared","@astryx.multiSelector.allSelected":"All selected","@astryx.multiSelector.selectionCount":"{count, number} of {total, number} selected","@astryx.multiSelector.createOption":'Create "{query}"',"@astryx.multiSelector.optionCreated":"{label} created","@astryx.multiSelector.emptySearchResults":"No results found","@astryx.multiSelector.resultCount":"{count, number} {count, plural, one {result} other {results}}","@astryx.selector.emptySearchResults":"No results found","@astryx.selector.resultCount":"{count, number} {count, plural, one {result} other {results}}","@astryx.typeahead.resultCount":"{count, number} {count, plural, one {result} other {results}}","@astryx.tokenizer.tokenAdded":"Added {label}","@astryx.tokenizer.tokenRemoved":"Removed {label}","@astryx.lightbox.imagePosition":"Image {index, number} of {total, number}","@astryx.lightbox.mediaPosition":"{alt}, {index, number} of {total, number}","@astryx.transferList.selectedLabel":"Selected","@astryx.transferList.availableLabel":"Available","@astryx.transferList.ungroupedLabel":"Other","@astryx.transferList.searchPlaceholder":"Search…","@astryx.transferList.searchLabel":"Search {label}","@astryx.transferList.selectedEmpty":"No selected options","@astryx.transferList.availableEmpty":"No available options","@astryx.transferList.noResults":"No results","@astryx.transferList.clear":"Clear","@astryx.transferList.addAll":"Add all","@astryx.transferList.addOption":"Add {label}","@astryx.transferList.removeOption":"Remove {label}","@astryx.transferList.reorderOption":"Reorder {label}","@astryx.transferList.transferDisabled":"{label} cannot be moved","@astryx.transferList.reorderDisabled":"{label} cannot be reordered","@astryx.transferList.reorderInstructions":"Press Space or Enter to pick up an item. Use Arrow Up, Arrow Down, Home, or End to move it. Press Space or Enter to drop, or Escape to cancel.","@astryx.transferList.announceAdded":"{label} added. {count, number} {count, plural, one {item} other {items}} selected.","@astryx.transferList.announceRemoved":"{label} removed. {count, number} {count, plural, one {item} other {items}} selected.","@astryx.transferList.announceBulkAdded":"{count, number} {count, plural, one {item} other {items}} added.","@astryx.transferList.announceBulkRemoved":"{count, number} {count, plural, one {item} other {items}} removed.","@astryx.transferList.announceGrabbed":"{label} picked up, position {position, number} of {total, number}. Use arrow keys to move, Space or Enter to drop, or Escape to cancel.","@astryx.transferList.announceMoveCancelled":"{label} move cancelled.","@astryx.transferList.announceDropped":"{label} dropped at position {position, number} of {total, number}.","@astryx.transferList.announceReturned":"{label} returned to position {position, number}.","@astryx.transferList.announceMovedToPosition":"{label}, position {position, number} of {total, number}.","@astryx.transferList.announceSearchResults":"{count, number} {count, plural, one {item} other {items}} found.","@astryx.transferListSelector.apply":"Apply","@astryx.transferListSelector.cancel":"Cancel","@astryx.transferListSelector.triggerLabel":"{count, number} selected"},j5=new Map;function qD(e,t){const r=`${t}::${e}`;let s=j5.get(r);return s===void 0&&(s=new ID(e,t),j5.set(r,s)),s}function PD(e){let t;try{t=new Intl.Locale(e).baseName}catch{t=e}const r=t.split("-"),s=[];for(let o=r.length;o>0;o--)s.push(r.slice(0,o).join("-"));return s}function BD(e,t,r){const s={},o=PD(e);if(r!==void 0){for(const l of o)if(r[l])for(const[u,f]of Object.entries(r[l]))s[u]===void 0&&f!==null&&(s[u]=f)}for(const l of o)if(t[l])for(const[u,f]of Object.entries(t[l])){const d=typeof f=="string"?f:f?.defaultMessage;s[u]===void 0&&d!=null&&(s[u]=d)}return s}function nC(e,t,r){const s=BD(e,t,r);return(o,l)=>{const u=s[o]??_D[o];return u===void 0?(Gp(),o):l===void 0?u:qD(u,e).format(l)}}const Qp=g.createContext({locale:"en",direction:"ltr",messages:{},translate:nC("en",{})});Qp.displayName="InternationalizationContext";function HD(e){try{const t=new Intl.Locale(e);return(typeof t.getTextInfo=="function"?t.getTextInfo():t.textInfo)?.direction==="rtl"?"rtl":"ltr"}catch{return"ltr"}}function FD(e){return Object.values(e).some(r=>Object.values(r).some(s=>typeof s=="string"))?Object.fromEntries(Object.entries(e).map(([r,s])=>[r,Object.fromEntries(Object.entries(s).map(([o,l])=>[o,typeof l=="string"?{defaultMessage:l}:l]))])):e}function rC({locale:e,messages:t,overrides:r,dir:s,children:o}){const l=s??HD(e),u=g.useMemo(()=>{const f=t??{};return{locale:e,direction:l,messages:FD(f),overrides:r,translate:nC(e,f,r)}},[e,l,t,r]);return x.jsx(Qp,{value:u,children:o})}rC.displayName="InternationalizationProvider";function Nt(){return g.use(Qp).translate}function UD(){return g.use(Qp).locale}const VD=.375,GD={sm:{diameter:10,border:2},md:{diameter:14,border:3},lg:{diameter:18,border:3},xl:{diameter:28,border:4}},KD="--_spinner-ring-diameter",WD="--_spinner-ring-stroke",YD=[KD,WD],R5="--_spinner-box-size";function XD(){if(!(typeof CSS>"u"||typeof CSS.registerProperty!="function"))for(const e of YD)try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!0,initialValue:"0px"})}catch{}}XD();const op=new Set;let R1=!1;function ZD(){R1=!1;const e=[];for(const t of op)e.push(...t.getAnimations({subtree:!0}));op.clear();for(const t of e)t.startTime=0}function QD(e){if(e!=null&&typeof e.getAnimations=="function")return op.add(e),R1||(R1=!0,requestAnimationFrame(ZD)),()=>{op.delete(e)}}const rh={wrapper:{k1xSpc:"x3nfvp2",kXwgrk:"xdt5ytf",kGNEyG:"x6s0dn4",kOIVth:"x1txdalj",$$css:!0},spinner:{k1xSpc:"xwz0xwf",kgQiWS:"x1ku5rj1",kXLuUW:"xxymvpz","--_spinner-ring-diameter":"x2lq4xu","--_spinner-ring-stroke":"x10qssua","--_spinner-box-size":"x69vvuq",kmuXW:"x2lah0s",$$css:!0},circle:{kDwRjp:"xbh8q5q",kR8GR0:"x1764fhq",k3nNDw:"x1g0ag68",kU5bRw:"x1owpc8m",kPFa82:"xio8zfp",kfJifR:"xgw3ha0",$$css:!0},track:{kjVXCG:"xalkhop",$$css:!0}},A5={sm:{"--spinner-diameter":"x11wm0hx","--spinner-stroke-width":"xls98ul","--spinner-arc-fraction":"x7o5821",$$css:!0},md:{"--spinner-diameter":"x15pu9g6","--spinner-stroke-width":"xr0wkrm","--spinner-arc-fraction":"x7o5821",$$css:!0},lg:{"--spinner-diameter":"x1w424tr","--spinner-stroke-width":"xr0wkrm","--spinner-arc-fraction":"x7o5821",$$css:!0},xl:{"--spinner-diameter":"x1orj1z9","--spinner-stroke-width":"x7y2bof","--spinner-arc-fraction":"x7o5821",$$css:!0}},M5={default:{"--spinner-color":"xt1b8mc","--spinner-track-color":"xspt9s2",$$css:!0},subtle:{"--spinner-color":"x1jevo6s","--spinner-track-color":"xspt9s2",$$css:!0},onMedia:{"--spinner-color":"x13u6jys","--spinner-track-color":"x1ufpcf6",$$css:!0},inherit:{"--spinner-color":"x1uzk0gl","--spinner-track-color":"xbfzqbu",$$css:!0}},JD={default:{kDd8S0:"x1g350g8",$$css:!0},subtle:{kDd8S0:"x1g350g8",$$css:!0},onMedia:{kDd8S0:"x1smxkh6",$$css:!0},inherit:{kDd8S0:"x7bo2k",$$css:!0}};function Do({size:e="md",shade:t="default",label:r,xstyle:s,className:o,style:l,"aria-label":u,"data-testid":f,ref:d,...p}){const{border:y,diameter:m}=GD[e],k=m+y*2,v=Math.PI*m,w=v*VD,S=r!=null,E=g.useId(),R=Nt(),C=S&&typeof r=="string"&&u==null,T=u??(typeof r=="string"?r:void 0)??R("@astryx.spinner.loading"),A=x.jsx("span",{ref:S?void 0:d,role:"status","aria-label":C?void 0:T,"aria-labelledby":C?E:void 0,"data-testid":S?void 0:f,...S?{}:p,...ye(S?"":fe("spinner",{size:e,shade:t}),de(rh.spinner,!S&&A5[e],!S&&M5[t],!S&&s),S?void 0:o,{...S?{}:l,width:`var(${R5}, ${k}px)`,height:`var(${R5}, ${k}px)`}),children:x.jsxs("svg",{ref:QD,width:k,height:k,"aria-hidden":"true",className:"xlp1x4z x1lliihq x6v0vjy x7yyq19 x1rea2x4",children:[x.jsx("circle",{cx:"50%",cy:"50%",r:m/2,strokeWidth:y,...de(rh.circle,rh.track,JD[t])}),x.jsx("circle",{cx:"50%",cy:"50%",r:m/2,strokeWidth:y,strokeDasharray:`${w} ${v-w}`,className:"xbh8q5q x1764fhq x1g0ag68 x1owpc8m xio8zfp xgw3ha0 x14qxm4i xnh0sag xa4qsjk x1nlxm0d x1esw782 xtve3lm x9tu13d xdv9ggb"})]})});return S?x.jsxs("div",{ref:d,"data-testid":f,...p,...ye(fe("spinner",{size:e,shade:t}),de(rh.wrapper,A5[e],M5[t],s),o,l),children:[A,typeof r=="string"?x.jsx(Je,{id:E,type:"body",weight:"bold",children:r}):r]}):A}Do.displayName="Spinner";function Gs({children:e,as:t="span",ref:r,...s}){return g.createElement(t,{ref:r,...s,className:"x10l6tqk x1i1rx1s xjm9jq1 xkdpibf x1717udv xb3r6kr xzpqnlu xuxw1ft xng3xce x13vifvy x1o0tod x47corl x87ps6o"},e)}Gs.displayName="VisuallyHidden";const Yb=aa(null);Yb.displayName="IconDefaultSizeContext";const eO=Yb.Provider;function tO(e){const t=g.use(Yb);return e??t??"md"}const nO={xsm:{kzqmXN:"x1jw3ynk",kZKoxP:"xvle69y",$$css:!0},sm:{kzqmXN:"xcdlrvm",kZKoxP:"x1l36t39",$$css:!0},md:{kzqmXN:"xwqq7k2",kZKoxP:"xmll18r",$$css:!0},lg:{kzqmXN:"xp8d6y2",kZKoxP:"xam5rvr",$$css:!0}},aC={xsm:{kzqmXN:"x1jw3ynk",kZKoxP:"xvle69y",kGuDYH:"xboafo0",$$css:!0},sm:{kzqmXN:"xcdlrvm",kZKoxP:"x1l36t39",kGuDYH:"x1jchvi3",$$css:!0},md:{kzqmXN:"xwqq7k2",kZKoxP:"xmll18r",kGuDYH:"x1603h9y",$$css:!0},lg:{kzqmXN:"xp8d6y2",kZKoxP:"xam5rvr",kGuDYH:"xngnso2",$$css:!0}},rO="data-astryx-edge-comp",Xb=aa(null);Xb.displayName="SizeContext";function bc(e,t="md"){const r=g.use(Xb);return e??r??t}const Bl=Xb.Provider,sC=aa(null);sC.displayName="ButtonGroupContext";function aO(){return g.use(sC)}const oC=g.createContext(null);oC.displayName="LinkContext";function iC(e){return e.replace(/[\x00-\x1f\x7f]/g,"").trim()}function sO(e){return e.toLowerCase().replace(/^([a-z][a-z\d+.-]*:) +/,"$1")}function lC(e){const t=iC(e),r=sO(t);return r.startsWith("javascript:")||r.startsWith("vbscript:")||r.startsWith("data:text/html")?null:t}function Hs(e){return lC(e)!==null}function N5(e){if(e==null)return!0;if(typeof e=="string")return Hs(e);if(typeof e!="object")return!1;const{pathname:t,href:r,protocol:s,host:o,hostname:l}=e;for(const u of[t,r,s,o,l])if(u!=null&&typeof u!="string")return!1;if(typeof t=="string"&&!Hs(t)||typeof r=="string"&&!Hs(r))return!1;if(typeof s=="string"&&s!==""){const u=iC(s),f=u.endsWith(":")?u:`${u}:`;if(!Hs(f)||!Hs(`${f}${o||l||""}${typeof t=="string"?t:""}`))return!1}return!0}function oO(e){function t({href:r,to:s,ref:o,...l}){return!N5(r)||!N5(s)?g.createElement("a",{ref:o,...l}):e==="a"?g.createElement("a",{ref:o,...l,href:r}):g.createElement(e,{ref:o,...l,href:r,to:s??r})}return t.displayName=`SafeLink(${typeof e=="string"?e:e.displayName||e.name||"Component"})`,t}function Oi(e){const t=g.use(oC),r=e??t?.component??"a";return g.useMemo(()=>oO(r),[r])}const iO=150,lO=10,cO=100,uO=N9.releaseMs,dO=150,qh={originX:0,originY:0,phase:"idle"};function z5(e,t,r){return Math.hypot(t-e.originX,r-e.originY)>lO}function ii(e,t,r,s){return{gesture:{...e,phase:t},paint:r,timer:s}}function kd(e,t){if(t.kind==="down")return{gesture:{originX:t.x,originY:t.y,phase:"armed"},paint:"none",timer:"onset"};switch(e.phase){case"armed":return t.kind==="move"?z5(e,t.x,t.y)?ii(e,"dead","none",null):{gesture:e,paint:"none",timer:null}:t.kind==="cancel"?ii(e,"dead","none",null):t.kind==="onset"?ii(e,"pressed","on",null):t.kind==="up"?ii(e,"flash","on","flash"):{gesture:e,paint:"none",timer:null};case"pressed":return t.kind==="move"&&!z5(e,t.x,t.y)?{gesture:e,paint:"on",timer:null}:t.kind==="move"||t.kind==="cancel"?ii(e,"dead","none",null):t.kind==="up"?ii(e,"fading","fading","fade"):{gesture:e,paint:"on",timer:null};case"flash":return t.kind==="flashEnd"?ii(e,"fading","fading","fade"):{gesture:e,paint:"on",timer:null};case"fading":return t.kind==="fadeEnd"?{gesture:qh,paint:"none",timer:null}:{gesture:e,paint:"fading",timer:null};case"dead":return t.kind==="up"?{gesture:qh,paint:"none",timer:null}:{gesture:e,paint:"none",timer:null};case"idle":return{gesture:qh,paint:"none",timer:null}}}function cC(){return qh}const uC="data-astryx-pressable",A1="data-astryx-press",fO={[uC]:""},hO=3e3,pO=':disabled, [aria-disabled="true"]';let Ct=null,ah=0,Zb=0,ip=null,Jp=0,ed=null;const xO={fade:uO,flash:cO,onset:iO},gO={fade:"fadeEnd",flash:"flashEnd",onset:"onset"};function mO(e,t){if(t==="none"){e.removeAttribute(A1);return}e.setAttribute(A1,t)}function Qb(){Ct?.timer!=null&&(clearTimeout(Ct.timer),Ct.timer=null)}function vd(e){if(Ct==null)return;const t=e.gesture.phase!==Ct.gesture.phase;if((e.timer!=null||t)&&Qb(),Ct.gesture=e.gesture,mO(Ct.element,e.paint),e.gesture.phase==="idle"){Ct=null;return}if(e.timer!=null){const r=e.timer;Ct.timer=setTimeout(()=>{Ct!=null&&(Ct.timer=null),vd(kd(Ct?.gesture??cC(),{kind:gO[r]}))},xO[r])}}function yO(e){if(!(e instanceof Element))return null;const t=e.closest(`[${uC}]`);return!(t instanceof HTMLElement)||t.matches(pO)?null:t}function bO(e){return Date.now()-Zb>=dO?!1:ip instanceof Node&&ip.contains(e)}function dC(){Ct?.gesture.phase==="dead"&&(Qb(),Ct=null)}function lp(){Ct!=null&&(Qb(),Ct.element.removeAttribute(A1),Ct=null)}function fC(e){if(e.pointerType==="mouse")return;if(Ct!=null){if(!(Ct.gesture.phase==="fading"||Ct.gesture.phase==="flash")){lp();return}lp()}const t=yO(e.target),r=t!=null&&bO(t);Jp=Date.now(),ed=e.target instanceof Node?e.target:null,!(t==null||r)&&(Ct={element:t,gesture:cC(),pointerId:e.pointerId,timer:null},vd(kd(Ct.gesture,{kind:"down",x:e.clientX,y:e.clientY})))}function hC(e){Ct==null||Ct.pointerId!=null&&e.pointerId!==Ct.pointerId||vd(kd(Ct.gesture,{kind:"move",x:e.clientX,y:e.clientY}))}function pC(e){e.pointerType!=="mouse"&&(Jp=Date.now(),e.target instanceof Node&&(ed=e.target),!(Ct==null||Ct.pointerId!=null&&e.pointerId!==Ct.pointerId)&&(vd(kd(Ct.gesture,{kind:"up"})),dC()))}function ki(){Ct!=null&&(vd(kd(Ct.gesture,{kind:"cancel"})),dC())}function xC(e){const t=e.target instanceof Node?e.target:document;Date.now()-Jp<hO&&ed!=null&&t.contains(ed)&&(Zb=Date.now(),ip=t),!(Ct==null||!(t===document||t.contains(Ct.element)))&&ki()}function gC(){document.visibilityState==="hidden"&&lp()}const Or={capture:!0,passive:!0};function kO(){window.addEventListener("pointerdown",fC,Or),window.addEventListener("pointermove",hC,Or),window.addEventListener("pointerup",pC,Or),window.addEventListener("pointercancel",ki,Or),window.addEventListener("touchcancel",ki,Or),window.addEventListener("dragstart",ki,Or),document.addEventListener("scroll",xC,Or),document.addEventListener("visibilitychange",gC)}function vO(){window.removeEventListener("pointerdown",fC,Or),window.removeEventListener("pointermove",hC,Or),window.removeEventListener("pointerup",pC,Or),window.removeEventListener("pointercancel",ki,Or),window.removeEventListener("touchcancel",ki,Or),window.removeEventListener("dragstart",ki,Or),document.removeEventListener("scroll",xC,Or),document.removeEventListener("visibilitychange",gC)}function wO(){if(typeof window>"u")return()=>{};ah===0&&kO(),ah+=1;let e=!1;return()=>{e||(e=!0,ah-=1,!(ah>0)&&(vO(),lp(),Zb=0,ip=null,Jp=0,ed=null))}}function ja(){return g.useEffect(()=>wO(),[]),fO}const Ds={base:{"--button-focus-offset":"x16bblx1",kInvED:"x1wfwxd8 x13aywxo",kVAEAm:"x1n2onr6",k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kOIVth:"x1txdalj",k8WAf4:"xce4md1",kg3NbH:"xrrkdod",kMzoRj:"xc342km",ksu8eU:"xng3xce",kaIpWk:"x1jxw6zd",kMv6JI:"xjb2p0i",kGuDYH:"xcr08ib",kLWn49:"x1kq96og",k63SB2:"x1e4wzip",khDVqt:"xuxw1ft",k7Eaqz:"xeuugli",ks0D6T:"x193iq5w",kkrTdU:"x1ypdohk x16khyan",k1ekBW:"xrafxwg",kIyJzY:"xuedmi6 x12w9bfk",kAMwcw:"xlr8y92",$$css:!0},pressable:{k3aq6I:"x3oybdh x8ppqj xom6oz5 x3y5scg",$$css:!0},inactive:{kkrTdU:"xt0e3qv",kKwaWg:"x18o3ruo",k3aq6I:"x1c071of x1pdlv7q x1ylxtyb",$$css:!0},disabled:{kSiTet:"xbyyjgo",$$css:!0},ariaDisabled:{kKwaWg:"x18o3ruo xuqm82a x1bev2v5",$$css:!0},iconOnly:{"--button-icon-only-aspect":"x1v15ycx",kOBAk4:"xioom0i",kg3NbH:"xnjsko4",k8WAf4:"xt970qd",kmuXW:"x2lah0s",ks0D6T:"x1x1rfll",$$css:!0},iconWrapper:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmuXW:"x2lah0s",$$css:!0},contentWrapper:{k1xSpc:"xjp7ctv",$$css:!0},link:{kybGjl:"x1hl2dhg",$$css:!0}},SO={width:e=>[{kzqmXN:e!=null?"x5lhr3w":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]},EO={sm:{kZKoxP:"x6k0iem",$$css:!0},md:{kZKoxP:"x1ueg155",$$css:!0},lg:{kZKoxP:"xssyfek",$$css:!0}},$O={none:{kGVxlE:"x1gnnqk1",$$css:!0},low:{kGVxlE:"x1i5ehqx",$$css:!0},med:{kGVxlE:"x14hfi27",$$css:!0},high:{kGVxlE:"x1kcpxr7",$$css:!0}},TO={primary:{kWkggS:"x1ewilqj",kMwMTN:"x17wrial",$$css:!0},secondary:{kWkggS:"x17x4s8c",kMwMTN:"x1tgivj0",$$css:!0},ghost:{kWkggS:"xjbqb8w",kMwMTN:"x1tgivj0",$$css:!0},destructive:{kWkggS:"x1pjz0fi",kMwMTN:"x1m024r3",kjBf7l:"x1e0x2sz",$$css:!0}},CO={sm:"sm",md:"sm",lg:"md"},L5={hiddenContent:{kMwMTN:"x19co3pv",$$css:!0},hiddenContentDelayed:{kKVMdj:"x1ffowhz",k44tkh:"xjlvqhv",kWV6AL:"x10e4vud",kKxzle:"x17yabm6 x14q22ui",$$css:!0}},sh={horizontal:{krdFHd:"x15mokao x8eehn2",kVL7Gh:"xbiv7yw x1xrp5p4",kfmiAY:"x1ga7v0g x149bkfe",kT0f0o:"x16uus16 x1ursds5",k2ei4v:"xgbv0en x1pjv70x",kVhnKS:"x1t7ytsu xyf0ibl",kGJrpR:"x1j92z86",$$css:!0},vertical:{krdFHd:"x15mokao x8eehn2",kfmiAY:"x1ga7v0g x2qxyot",kVL7Gh:"xbiv7yw xy2bsav",kT0f0o:"x16uus16 x1ursds5",kEafiO:"x11xkdxz x1g31smg",kPef9Z:"x13fuv20 x1d9v4yf",kLZC3w:"x1pc3f07",$$css:!0},onSolidHorizontal:{kGJrpR:"xrvmtm5",$$css:!0},onSolidVertical:{kLZC3w:"x11npmm7",$$css:!0}};function jt({label:e,variant:t="secondary",size:r,type:s="button",isDisabled:o=!1,isLoading:l=!1,isInterruptible:u=!1,clickAction:f,icon:d,isIconOnly:p=!1,width:y,elevation:m="none",children:k,endContent:v,tooltip:w,href:S,as:E,target:R,rel:C,xstyle:T,className:A,style:N,ref:L,...D}){const j=ja(),O=Nt(),M=bc(r,"md"),H=aO(),[F,q]=g.useTransition(),B=g.useRef(!1),U=l||F,_=F||u,P=H?.isDisabled??!1,G=o||P||U&&!u,X=o||P,Z=Oi(E),Q=S!=null&&!G,K=w!=null&&G,ae=Wa({placement:"above",isEnabled:w!=null}),I=je=>{if(G||B.current&&!u){je.preventDefault();return}D.onClick?.(je),f&&!je.defaultPrevented&&(B.current=!0,q(async()=>{try{await f(je)}finally{B.current=!1}}))},ee=K?je=>{je.key==="Enter"||je.key===" "?je.preventDefault():D.onKeyDown?.(je)}:void 0,ue=t==="ghost"?{[rO]:""}:null,ve=pn.focusVisible(Ds.base,EO[M],p&&Ds.iconOnly,or.backgroundImage,G&&Ds.inactive,X&&Ds.disabled,K&&Ds.ariaDisabled,Q&&Ds.link,!H&&Ds.pressable,H&&(H.orientation==="horizontal"?sh.horizontal:sh.vertical),H&&(t==="primary"||t==="destructive")&&(H.orientation==="horizontal"?sh.onSolidHorizontal:sh.onSolidVertical),!H&&$O[m],y!=null&&SO.width(y),TO[t],T),xe=ye(fe("button",{variant:t,size:M,elevation:H?"none":m}),ve,A,N),$e=CO[M],te=x.jsxs(x.Fragment,{children:[U&&x.jsx("span",{...{0:{className:"x10l6tqk x13vifvy x1o0tod xtijo5x x1ey2m1c xrvj5dj x1ku5rj1"},1:{className:"x10l6tqk x13vifvy x1o0tod xtijo5x x1ey2m1c xrvj5dj x1ku5rj1 xqcmdr3 xb2rp9n xskzprw x17yabm6 x14q22ui"}}[!!_<<0],"aria-hidden":"true",children:x.jsx(Do,{size:"sm",shade:"inherit"})}),x.jsxs("span",{...de(Ds.contentWrapper,U&&(_?L5.hiddenContentDelayed:L5.hiddenContent)),"aria-hidden":U||void 0,children:[d&&x.jsx("span",{...de(Ds.iconWrapper,aC[$e]),children:x.jsx(eO,{value:$e,children:d})}),p?null:x.jsx("span",{className:"xb3r6kr xlyipyv xeuugli",children:k??e}),!p&&v&&x.jsx("span",{className:"x3nfvp2 x6s0dn4 x1heor9g",children:v})]}),x.jsx(Gs,{role:"status","aria-live":"polite",children:U?O("@astryx.button.loading"):""})]}),Re=p&&e!==""||U&&!p||k!=null&&k!==e?{"aria-label":e}:null,Ce=w!=null?{"aria-describedby":[D["aria-describedby"],ae.describedBy].filter(Boolean).join(" ")||void 0}:null,Te=xn(L,w!=null?ae.ref:void 0);let Me;return Q?Me=x.jsx(Z,{ref:Te,href:S,target:R,rel:C,...xe,...j,...D,...Re,...Ce,...ue,"aria-busy":U||void 0,onClick:I,children:te}):Me=x.jsx("button",{ref:Te,type:s,disabled:K?void 0:G,...xe,...j,...D,...Re,...Ce,...ue,"aria-busy":U||void 0,"aria-disabled":K||void 0,onClick:I,...ee?{onKeyDown:ee}:null,children:te}),w?x.jsxs(x.Fragment,{children:[Me,ae.renderTooltip(w)]}):Me}jt.displayName="Button";function M1(e,t){if(!e&&!t)return;if(!e)return t;if(!t)return e;const r={};for(const[s,o]of Object.entries(e))r[s]={...o};for(const[s,o]of Object.entries(t))if(!r[s])r[s]={...o};else for(const[l,u]of Object.entries(o))r[s][l]={...r[s][l],...u};return r}const jO={"color-scheme":"dark","--color-text-primary":"var(--color-on-dark)","--color-icon-primary":"var(--color-on-dark)","--color-accent":"var(--color-on-dark)"},RO={"color-scheme":"light","--color-text-primary":"var(--color-on-light)","--color-icon-primary":"var(--color-on-light)","--color-accent":"var(--color-on-light)"};function AO(e){return Array.isArray(e)?`light-dark(${e[0]}, ${e[1]})`:e}function D5(e,t,r){const o={...e==="dark"?jO:RO,...r?.tokens};if(t?.tokens)for(const[l,u]of Object.entries(t.tokens))u!==void 0&&(o[l]=AO(u));return{tokens:o,components:M1(r?.components,t?.components)}}const gy={[-5]:"--font-size-4xs",[-4]:"--font-size-3xs",[-3]:"--font-size-2xs",[-2]:"--font-size-xs",[-1]:"--font-size-sm",0:"--font-size-base",1:"--font-size-lg",2:"--font-size-xl",3:"--font-size-2xl",4:"--font-size-3xl",5:"--font-size-4xl",6:"--font-size-5xl"},MO={1:3,2:2,3:1,4:0,5:-1,6:-2},NO={body:0,large:1,label:0,code:0,supporting:-1,"display-1":6,"display-2":5,"display-3":4},zO={1:"var(--font-weight-semibold)",2:"var(--font-weight-semibold)",3:"var(--font-weight-semibold)",4:"var(--font-weight-semibold)",5:"var(--font-weight-semibold)",6:"var(--font-weight-semibold)"},LO={body:"var(--font-weight-normal)",large:"var(--font-weight-semibold)",label:"var(--font-weight-medium)",code:"var(--font-weight-normal)",supporting:"var(--font-weight-normal)","display-1":"var(--font-weight-normal)","display-2":"var(--font-weight-normal)","display-3":"var(--font-weight-normal)"};function my(e,t,r){return Math.round(e*Math.pow(t,r))}function DO(e){return`${Math.round(e/16*1e4)/1e4}rem`}function OO(e){return e<20?1.5:e<32?1.4:1.25}function O5(e){const t=OO(e),r=e*t,s=Math.max(Math.round(r/4)*4,Math.ceil((e+4)/4)*4);return Math.round(s/e*1e4)/1e4}function IO(e){const{base:t,ratio:r,weights:s}=e,o={},l={...zO,...s?.heading},u={...LO,...s?.text};for(let f=-5;f<=6;f++){const d=my(t,r,f);o[gy[f]]=DO(d)}for(const[f,d]of Object.entries(MO)){const p=Number(f),y=my(t,r,d),m=O5(y);o[`--text-heading-${p}-size`]=`var(${gy[d]})`,o[`--text-heading-${p}-weight`]=l[p],o[`--text-heading-${p}-leading`]=`${m}`}for(const[f,d]of Object.entries(NO)){const p=my(t,r,d),y=O5(p);o[`--text-${f}-size`]=`var(${gy[d]})`,o[`--text-${f}-weight`]=u[f],o[`--text-${f}-leading`]=`${y}`}return o}const _O={body:"var(--font-family-body)",large:"var(--font-family-body)",label:"var(--font-family-body)",code:"var(--font-family-code)",supporting:"var(--font-family-body)","display-1":"var(--font-family-heading)","display-2":"var(--font-family-heading)","display-3":"var(--font-family-heading)"};function qO(e){const t={},r={};for(const o of[1,2,3,4,5,6])r[`level:${o}`]={fontFamily:"var(--font-family-heading)",fontSize:`var(--text-heading-${o}-size)`,fontWeight:`var(--text-heading-${o}-weight)`,lineHeight:`var(--text-heading-${o}-leading)`};for(const o of["display-1","display-2","display-3"])r[`type:${o}`]={fontFamily:"var(--font-family-heading)",fontSize:`var(--text-${o}-size)`,lineHeight:`var(--text-${o}-leading)`};t.heading=r;const s={};for(const o of["body","large","label","code","supporting","display-1","display-2","display-3"])s[`type:${o}`]={fontFamily:_O[o],fontSize:`var(--text-${o}-size)`,lineHeight:`var(--text-${o}-leading)`};return t.text=s,t}function Os(e){return Math.round(e/5)*5}function PO(e){const{fast:t,medium:r,slow:s,ratio:o,easing:l}=e,u={"--duration-fast-min":`${Os(t*o)}ms`,"--duration-fast":`${Os(t)}ms`,"--duration-fast-max":`${Os(t/o)}ms`,"--duration-medium-min":`${Os(r*o)}ms`,"--duration-medium":`${Os(r)}ms`,"--duration-medium-max":`${Os(r/o)}ms`};return s!=null&&(u["--duration-slow-min"]=`${Os(s*o)}ms`,u["--duration-slow"]=`${Os(s)}ms`,u["--duration-slow-max"]=`${Os(s/o)}ms`),l&&(u["--ease-standard"]=l),u}function BO(e){const{base:t,multiplier:r}=e;return{"--radius-none":"0px","--radius-inner":`${Math.round(t*1*r)}px`,"--radius-element":`${Math.round(t*2*r)}px`,"--radius-container":`${Math.round(t*3*r)}px`,"--radius-page":`${Math.round(t*7*r)}px`,"--radius-chat":`${Math.round(t*7*r)}px`,"--radius-full":"9999px"}}function I5(e){const t=r=>{const s=r/255;return s<=.04045?s/12.92:Math.pow((s+.055)/1.055,2.4)};return .2126*t(e.r)+.7152*t(e.g)+.0722*t(e.b)}function mC(e,t){const r=e.a;return{r:e.r*r+t.r*(1-r),g:e.g*r+t.g*(1-r),b:e.b*r+t.b*(1-r),a:1}}function _5(e,t){if(typeof e!="string")return e;const r=Zu(e);if(r===null)throw new TypeError(`contrastRatio: could not parse ${t} "${e}"`);return r}function Ph(e,t){const r=_5(t,"background");if(r.a<1)throw new TypeError("contrastRatio: background must be opaque — composite it over its backdrop first");let s=_5(e,"foreground");s.a<1&&(s=mC(s,r));const o=I5(s),l=I5(r),u=Math.max(o,l),f=Math.min(o,l);return(u+.05)/(f+.05)}function Wl(e){const t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Bh(e){const t=e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055;return Math.round(Math.min(255,Math.max(0,t*255)))}function HO(e,t,r){return[.4124564*e+.3575761*t+.1804375*r,.2126729*e+.7151522*t+.072175*r,.0193339*e+.119192*t+.9503041*r]}function FO(e,t,r){return[3.2404542*e-1.5371385*t-.4985314*r,-.969266*e+1.8760108*t+.041556*r,.0556434*e-.2040259*t+1.0572252*r]}const Yl=[.95047,1,1.08883];function yy(e){const t=.20689655172413793;return e>t*t*t?Math.cbrt(e):e/(3*t*t)+4/29}function Hh(e){const t=.20689655172413793;return e>t?e*e*e:3*t*t*(e-4/29)}function UO(e,t,r){const s=yy(e/Yl[0]),o=yy(t/Yl[1]),l=yy(r/Yl[2]);return[116*o-16,500*(s-o),200*(o-l)]}function VO(e,t,r){const s=(e+16)/116,o=t/500+s,l=s-r/200;return[Hh(o)*Yl[0],Hh(s)*Yl[1],Hh(l)*Yl[2]]}function GO(e){return Hh((e+16)/116)}function KO(e){const t=xT(e);return t===null?[0,0,0]:[t.r,t.g,t.b]}function q5(e){const[t,r,s]=KO(e),o=Wl(t),l=Wl(r),u=Wl(s),[f,d,p]=HO(o,l,u),[y,m,k]=UO(f,d,p);let w=Math.atan2(k,m)*180/Math.PI;w<0&&(w+=360);const S=Math.sqrt(m*m+k*k);return{hue:w,chroma:S,tone:Math.max(0,Math.min(100,y))}}function N1(e){const{hue:t,chroma:r,tone:s}=e;if(s<=0)return"#000000";if(s>=100)return"#FFFFFF";if(r<.5){const f=WO(s);return Hb(f,f,f)}let o=0,l=r,u="#000000";for(let f=0;f<16;f++){const d=(o+l)/2,p=YO(t,d,s);p!==null?(u=p,o=d):l=d}return u}function WO(e){const t=GO(e);return Bh(t)}function YO(e,t,r){const s=e*Math.PI/180,o=Math.cos(s)*t,l=Math.sin(s)*t,u=r,[f,d,p]=VO(u,o,l),[y,m,k]=FO(f,d,p),v=Bh(y),w=Bh(m),S=Bh(k),E=Wl(v),R=Wl(w),C=Wl(S),T=.02;return Math.abs(E-y)>T||Math.abs(R-m)>T||Math.abs(C-k)>T||v<0||v>255||w<0||w>255||S<0||S>255?null:Hb(v,w,S)}const XO=[0,5,10,20,30,40,50,60,70,80,90,95,99,100];function jl(e,t){const r={};for(const s of XO)r[s]=N1({hue:e,chroma:t,tone:s});return r}function Nr(e,t){const r=Math.round(t*255).toString(16).padStart(2,"0").toUpperCase();return e+r}const ZO={warm:7,cool:5,neutral:3},QO={warm:10,cool:8,neutral:6},P5="#0064E0";function Xt(e,t){return`light-dark(${e}, ${t})`}function B5(e){return`color-mix(in srgb, var(--color-accent) ${e*100}%, transparent)`}const H5=3;function F5(e,t,r,s,o,l){let u=r,f=N1({hue:e,chroma:t,tone:u});for(;Ph(f,o)<l&&u+s>=0&&u+s<=100;)u+=s,f=N1({hue:e,chroma:t,tone:u});return f}function JO(e){const{accent:t,neutralStyle:r="cool",contrast:s="standard"}=e,[o,l]=Array.isArray(t)?t:[t,t],u=q5(o??P5),f=l===o,d=f?u:q5(l??P5),p=ZO[r]??5,y=QO[r]??8,m=jl(u.hue,Math.max(u.chroma,48)),k=jl(u.hue,p),v=jl(u.hue,y),w=f?m:jl(d.hue,Math.max(d.chroma,48)),S=f?k:jl(d.hue,p),E=f?v:jl(d.hue,y),R=s==="high",C=R?0:10,T=R?99:90,A=R?20:30,N=R?80:70,L=R?.2:.1,D=R?50:70,j=R?50:30,O=Xt(F5(u.hue,y,D,-1,k[99],H5),F5(d.hue,y,j,1,S[10],H5));return{...t!=null?{"--color-accent":Xt(m[40],w[80]),"--color-accent-muted":Xt(B5(.2),B5(.25)),"--color-on-accent":Xt(m[100],w[20])}:null,"--color-neutral":Xt(Nr(k[10],.1),Nr(S[90],.2)),"--color-background-surface":Xt(k[99],S[10]),"--color-background-body":Xt(k[95],S[5]),"--color-overlay":Xt(Nr(k[10],.4),Nr(S[10],.6)),"--color-overlay-hover":Xt(Nr(k[10],.05),Nr(S[100],.05)),"--color-overlay-pressed":Xt(Nr(k[10],.1),Nr(S[100],.1)),"--color-background-muted":Xt(Nr(k[10],.05),Nr(S[10],.5)),"--color-text-primary":Xt(k[C],S[T]),"--color-text-secondary":Xt(v[A],E[N]),"--color-text-disabled":Xt(v[60],E[40]),"--color-text-accent":"var(--color-accent)","--color-icon-accent":"var(--color-accent)","--color-icon-primary":Xt(k[C],S[T]),"--color-icon-secondary":Xt(v[A],E[N]),"--color-icon-disabled":Xt(v[60],E[40]),"--color-background-card":Xt(k[99],S[10]),"--color-background-popover":Xt(k[99],S[20]),"--color-background-inverted":Xt(k[10],S[99]),"--color-border":Xt(Nr(k[10],L),Nr(S[95],L)),"--color-border-emphasized":O,"--color-skeleton":Xt(v[70],E[30]),"--color-track":Xt(v[70],E[30]),"--color-shadow":Xt(Nr(k[0],.1),Nr(S[0],.3)),"--color-tint-hover":Xt("black","white")}}function eI(e,{strict:t=!1}={}){if(typeof e=="string")return e;if(Array.isArray(e)&&e.length===2&&typeof e[0]=="string"&&typeof e[1]=="string")return`light-dark(${e[0]}, ${e[1]})`;if(t)throw new Error("Theme token values must be CSS strings or [light, dark] string tuples.");return Array.isArray(e)?`light-dark(${e[0]}, ${e[1]})`:e}function oh(e){return{normal:"var(--font-weight-normal)",medium:"var(--font-weight-medium)",semibold:"var(--font-weight-semibold)",bold:"var(--font-weight-bold)"}[e]??e}function by(e,t){if(!e)return;const r=e.includes(" ")?`"${e}"`:e;return t?`${r}, ${t}`:r}function tI(e){if(!e.scale)return;const t={},r=e.heading;if(r?.weights)for(const[l,u]of Object.entries(r.weights))u&&(t[Number(l)]=oh(u));const s=r?.weight?oh(r.weight):void 0;if(s)for(let l=1;l<=6;l++)l in t||(t[l]=s);const o={};return e.body?.weight&&(o.body=oh(e.body.weight)),e.code?.weight&&(o.code=oh(e.code.weight)),{base:e.scale.base,ratio:e.scale.ratio,weights:{...Object.keys(t).length>0?{heading:t}:{},...Object.keys(o).length>0?{text:o}:{}}}}function nI(e){const t={},r=by(e.body?.family,e.body?.fallbacks),s=by(e.heading?.family,e.heading?.fallbacks)??r,o=by(e.code?.family,e.code?.fallbacks);return r&&(t["--font-family-body"]=r),s&&(t["--font-family-heading"]=s),o&&(t["--font-family-code"]=o),t}function yC(e,t,{strictTokens:r=!1}={}){const s={...t?.tokens},o=e.typography,l=o?tI(o):void 0;if(e.color&&Object.assign(s,JO(e.color)),l&&Object.assign(s,IO(l)),e.radius&&Object.assign(s,BO(e.radius)),e.motion&&Object.assign(s,PO(e.motion)),o&&Object.assign(s,nI(o)),e.syntax){const f="--color-syntax-";for(const[d,p]of Object.entries(e.syntax.tokens))s[f+d]=p}if(e.tokens)for(const[f,d]of Object.entries(e.tokens))d!==void 0&&(s[f]=eI(d,{strict:r}));let u=e.components;return l&&(u=M1(qO(),e.components)),t?.components&&(u=M1(t.components,u)),{tokens:s,components:u}}const bC=String.raw`(?:[-_a-zA-Z0-9]|\P{ASCII}|\\(?:[0-9a-fA-F]{1,6}[ \t\r\n\f]?|[^\r\n\f]))`,rI=new RegExp(`^--${bC}*$`,"u"),ky=new RegExp(`var\\(\\s*(--${bC}*)(?=\\s*(?:,|\\)))`,"giu");function Xl(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function kC(e){return!e.includes("\0")&&rI.test(e)}function vC(e,t){if(typeof e=="string")return e;if(Array.isArray(e)&&e.length===2&&typeof e[0]=="string"&&typeof e[1]=="string")return`light-dark(${e[0]}, ${e[1]})`;throw new Error(`${t} must be a CSS string or a [light, dark] string tuple.`)}function z1(e,t){if(typeof e=="string"){ky.lastIndex=0;for(let r=ky.exec(e);r;r=ky.exec(e))t.add(r[1]);return}if(Array.isArray(e)){for(const r of e)z1(r,t);return}if(e&&typeof e=="object")for(const r of Object.values(e))z1(r,t)}function wC(e,t,r){const s=new Map;for(const[m,k]of Object.entries(e)){const v=new Set;z1(k,v),s.set(m,[...v].filter(w=>Xl(e,w)))}const o=(m,k)=>{const v=[m],w=new Set(v),S=E=>{for(const R of s.get(E)??[])if(k.has(R)){if(R===m)return v.push(m),!0;if(!w.has(R)){if(v.push(R),w.add(R),S(R))return!0;w.delete(R),v.pop()}}return!1};return S(m),v};let l=0;const u=new Map,f=new Map,d=[],p=new Set,y=m=>{const k=l++;u.set(m,k),f.set(m,k),d.push(m),p.add(m);for(const C of s.get(m)??[])u.has(C)?p.has(C)&&f.set(m,Math.min(f.get(m)??k,u.get(C)??0)):(y(C),f.set(m,Math.min(f.get(m)??k,f.get(C)??0)));if(f.get(m)!==k)return;const v=[];let w;do w=d.pop()??m,p.delete(w),v.push(w);while(w!==m);if(!(v.length>1||(s.get(v[0])??[]).includes(v[0]))||r&&!v.some(C=>r.has(C)))return;const E=v.find(C=>r?.has(C))??v[0],R=o(E,new Set(v)).join(" -> ");throw new Error(`${t?`${t}: `:""}Theme token cycle detected: ${R}.`)};for(const m of Object.keys(e))u.has(m)||y(m)}function aI(e,t){const r=t.__localTokenLineage;if(!Array.isArray(r)||r.length===0||r[r.length-1]!==t.name||r.some(s=>typeof s!="string"||s.length===0))throw new Error(`defineTheme("${e}"): the base theme has invalid theme-local token lineage metadata.`);if(!t.localTokens||typeof t.localTokens!="object"||Array.isArray(t.localTokens)||!t.__localTokenOwners||typeof t.__localTokenOwners!="object"||Array.isArray(t.__localTokenOwners))throw new Error(`defineTheme("${e}"): the base theme has incomplete theme-local token metadata.`);for(const[s,o]of Object.entries(t.localTokens)){const l=t.__localTokenOwners[s];if(typeof o!="string"||!l||!r.includes(l)||!kC(s))throw new Error(`defineTheme("${e}"): inherited local token "${s}" does not match its exact lineage metadata.`)}for(const s of Object.keys(t.__localTokenOwners))if(!Xl(t.localTokens,s))throw new Error(`defineTheme("${e}"): inherited local-token owner metadata names undeclared token "${s}".`)}function sI(e,t,r,s){const o=Xl(e,"localTokens"),l=t?.__localTokenLineage!==void 0;if(!o&&!l)return;l&&t&&aI(e.name,t);const u={...t?.localTokens},f={...t?.__localTokenOwners},d=e.localTokens;if(o&&(d==null||typeof d!="object"||Array.isArray(d)))throw new Error(`defineTheme("${e.name}"): localTokens must be a token map.`);for(const[p,y]of Object.entries(d??{})){const m=f[p];if(!kC(p))throw new Error(`defineTheme("${e.name}"): local token "${p}" must be a valid CSS custom-property name.`);m||(f[p]=e.name),u[p]=vC(y,`defineTheme("${e.name}").localTokens["${p}"]`)}for(const p of Object.keys(u)){if(!f[p])throw new Error(`defineTheme("${e.name}"): inherited local token "${p}" has no owner metadata.`);if(Xl(r,p)||Xl(s,p))throw new Error(`defineTheme("${e.name}"): token "${p}" cannot be declared in both tokens and localTokens.`)}return wC(u,`defineTheme("${e.name}").localTokens`),{localTokens:u,owners:f,lineage:[...t?.__localTokenLineage??[],e.name]}}function oI(e,t,r,s){const o=`defineTheme("${e}").adaptations.rules[${t}].value.localTokens`;if(r===void 0)return;if(r===null||typeof r!="object"||Array.isArray(r))throw new Error(`${o} must be a token map.`);const l={};for(const[u,f]of Object.entries(r)){if(!s||!Xl(s,u))throw new Error(`${o}["${u}"] cannot enroll a theme-local token. Declare it in the root theme or an exact enrolled base first.`);l[u]=vC(f,`${o}["${u}"]`)}return Object.keys(l).length>0?l:void 0}const kc=["sm","md","lg","xl","2xl"],SC=Object.freeze({sm:640,md:768,lg:1024,xl:1280,"2xl":1536});function ex(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function $i(e,t){if(!ex(e))throw new Error(`${t} must be an object.`)}function Ti(e,t,r){for(const s of Object.keys(e))if(!t.has(s))throw new Error(`${r}.${s} is not supported.`)}function cp(e){if(Array.isArray(e)){const t=[];for(const r of e)t.push(cp(r));return t}return ex(e)?Object.fromEntries(Object.entries(e).map(([t,r])=>[t,cp(r)])):e}const EC=new Set(kc),iI=new Set(["widthBreakpoints","rules"]),lI=new Set(["when","value"]),cI=["width","pointer","contrast","motion"],uI=new Set(cI),dI=new Set(["from","below"]),U5=new Set(["typography","color","radius","motion","tokens","localTokens","components"]);function $C(e,t){$i(e,t),Ti(e,EC,t);const r={};for(const s of kc){const o=e[s];if(o!==void 0){if(typeof o!="number"||!Number.isFinite(o)||o<=0)throw new Error(`${t}.${s} must be a finite positive number of CSS pixels.`);r[s]=o}}return r}function fI(e,t){const r=$C(e,t);for(const s of kc)if(r[s]===void 0)throw new Error(`${t}.${s} is missing from the effective breakpoint map.`);return r}function hI(e,t){let r;for(const s of kc){if(r!==void 0&&e[s]<=e[r])throw new Error(`${t} must be strictly increasing: ${s} (${e[s]}) is not above ${r} (${e[r]}).`);r=s}}function pI(e,t){$i(e,t),Ti(e,uI,t);const r=Object.fromEntries(Object.entries(e).filter(([,o])=>o!==void 0));if(Object.keys(r).length===0)throw new Error(`${t} must contain at least one condition.`);const s=cp(r);if(s.width!==void 0){if($i(s.width,`${t}.width`),Ti(s.width,dI,`${t}.width`),s.width.from===void 0&&s.width.below===void 0)throw new Error(`${t}.width must contain \`from\`, \`below\`, or both.`);for(const o of["from","below"]){const l=s.width[o];if(l!==void 0&&(typeof l!="string"||!EC.has(l)))throw new Error(`${t}.width.${o} must be one of ${kc.join(", ")}.`)}}if(s.pointer!==void 0&&s.pointer!=="coarse"&&s.pointer!=="fine")throw new Error(`${t}.pointer must be 'coarse' or 'fine'.`);if(s.contrast!==void 0&&s.contrast!=="more"&&s.contrast!=="less"&&s.contrast!=="no-preference")throw new Error(`${t}.contrast must be 'more', 'less', or 'no-preference'.`);if(s.motion!==void 0&&s.motion!=="reduce"&&s.motion!=="no-preference")throw new Error(`${t}.motion must be 'reduce' or 'no-preference'.`);return s}function xI(e,t){$i(e,t),Ti(e,U5,t);for(const r of U5){const s=e[r];if(s!==void 0&&!ex(s))throw new Error(`${t}.${r} must be an object.`)}return cp(e)}function gI(e,t){if($i(e,t),Ti(e,lI,t),!Object.prototype.hasOwnProperty.call(e,"when"))throw new Error(`${t}.when is required.`);if(!Object.prototype.hasOwnProperty.call(e,"value"))throw new Error(`${t}.value is required.`);return{when:pI(e.when,`${t}.when`),value:xI(e.value,`${t}.value`)}}function V5(e,t){if(!Array.isArray(e))throw new Error(`${t} must be an array of {when, value} objects.`);for(let r=0;r<e.length;r++)if(!Object.prototype.hasOwnProperty.call(e,r))throw new Error(`${t}[${r}] must be present.`);return e.map((r,s)=>gI(r,`${t}[${s}]`))}function TC(e,t,r){const s=`defineTheme("${e}").adaptations`;let o={...SC},l=[];t!==void 0&&($i(t,`defineTheme("${e}").extends.__adaptations`),Ti(t,new Set(["widthBreakpoints","rules"]),`defineTheme("${e}").extends.__adaptations`),o=fI(t.widthBreakpoints,`defineTheme("${e}").extends.__adaptations.widthBreakpoints`),l=V5(t.rules,`defineTheme("${e}").extends.__adaptations.rules`));let u={},f=[];r!==void 0&&($i(r,s),Ti(r,iI,s),r.widthBreakpoints!==void 0&&(u=$C(r.widthBreakpoints,`${s}.widthBreakpoints`)),r.rules!==void 0&&(f=V5(r.rules,`${s}.rules`)));const d={...o,...u};return hI(d,`${s}.widthBreakpoints`),{widthBreakpoints:d,rules:[...l,...f]}}function Fh(e,t){return e?t?{...e,...t,weights:e.weights||t.weights?{...e.weights,...t.weights}:void 0}:e:t}function Ao(e,t){if(typeof e!="number"||!Number.isFinite(e))throw new Error(`${t} must be a finite number.`)}function mI(e,t,r){const s=t.scale!==void 0||[t.body,t.heading,t.code].some(l=>l?.weight!==void 0||l?.weights!==void 0);let o=s?e?.scale:void 0;if(t.scale!==void 0){const l=t.scale.base??e?.scale?.base,u=t.scale.ratio??e?.scale?.ratio;if(l===void 0||u===void 0)throw new Error(`${r}.scale must supply both \`base\` and \`ratio\` unless the missing field exists on the effective root typography axis.`);Ao(l,`${r}.scale.base`),Ao(u,`${r}.scale.ratio`),o={base:l,ratio:u}}else if(s&&o===void 0)throw new Error(`${r} sets typography weights without an effective root scale. Supply \`scale.base\` and \`scale.ratio\` in the same rule.`);return{...o?{scale:o}:{},body:Fh(e?.body,t.body),heading:Fh(e?.heading,t.heading),code:Fh(e?.code,t.code)}}function yI(e,t,r){const s=t.base??e?.base,o=t.multiplier??e?.multiplier;if(s===void 0||o===void 0)throw new Error(`${r} must supply both \`base\` and \`multiplier\` unless the missing field exists on the effective root radius axis.`);return Ao(s,`${r}.base`),Ao(o,`${r}.multiplier`),{base:s,multiplier:o}}function bI(e,t,r){const s=t.fast??e?.fast,o=t.medium??e?.medium,l=t.ratio??e?.ratio;if(s===void 0||o===void 0||l===void 0)throw new Error(`${r} must supply \`fast\`, \`medium\`, and \`ratio\` unless each missing field exists on the effective root motion axis.`);Ao(s,`${r}.fast`),Ao(o,`${r}.medium`),Ao(l,`${r}.ratio`);const u=t.slow??e?.slow;u!==void 0&&Ao(u,`${r}.slow`);const f=t.easing??e?.easing;return{fast:s,medium:o,ratio:l,...u!==void 0?{slow:u}:{},...f!==void 0?{easing:f}:{}}}function kI(e,t,r,s){const o=`defineTheme("${e}").adaptations.rules[${t}].value`;return{typography:r.typography?mI(s.typography,r.typography,`${o}.typography`):void 0,color:r.color?{...s.color,...r.color}:void 0,radius:r.radius?yI(s.radius,r.radius,`${o}.radius`):void 0,motion:r.motion?bI(s.motion,r.motion,`${o}.motion`):void 0,tokens:r.tokens,components:r.components}}function L1(e,t){if(typeof e=="string"){if(/\b(?:NaN|undefined)\b/.test(e))throw new Error(`${t} resolved to the invalid CSS value "${e}".`);return}if(ex(e)){for(const[r,s]of Object.entries(e))L1(s,`${t}.${r}`);return}throw new Error(`${t} must resolve to a concrete CSS string.`)}function vI(e,t,r,s){const o=`defineTheme("${e}").adaptations.rules[${t}].when`,l=[];if(r.width){const u=r.width.from,f=r.width.below;if(u!==void 0&&f!==void 0&&s[u]>=s[f])throw new Error(`${o}.width must resolve to \`from < below\`; ${u} is ${s[u]}px and ${f} is ${s[f]}px.`);u!==void 0&&l.push(`(width >= ${s[u]}px)`),f!==void 0&&l.push(`(width < ${s[f]}px)`)}if(r.pointer!==void 0&&l.push(`(pointer: ${r.pointer})`),r.contrast!==void 0&&l.push(`(prefers-contrast: ${r.contrast})`),r.motion!==void 0&&l.push(`(prefers-reduced-motion: ${r.motion})`),l.length===0)throw new Error(`${o} must contain at least one concrete condition.`);return l.join(" and ")}const wI={pointer:["coarse","fine","none"],contrast:["more","less","no-preference","custom"],motion:["reduce","no-preference"]},vy=wI;function SI(e,t,r){const s=e.width?.from;if(s!==void 0&&r.width<t[s])return!1;const o=e.width?.below;return!(o!==void 0&&r.width>=t[o]||e.pointer!==void 0&&e.pointer!==r.pointer||e.contrast!==void 0&&e.contrast!==r.contrast||e.motion!==void 0&&e.motion!==r.motion)}function EI(e,t,r,s,o){const l=o.flatMap((d,p)=>Object.keys(d.tokens).length>0||d.localTokens&&Object.keys(d.localTokens).length>0?[p]:[]);if(l.length===0)return;const u=[0,...kc.map(d=>t[d])],f=new Set;for(const d of u)for(const p of vy.pointer)for(const y of vy.contrast)for(const m of vy.motion){const k={width:d,pointer:p,contrast:y,motion:m},v=l.filter(T=>SI(o[T].when,t,k));if(v.length===0)continue;const w=v.join(",");if(f.has(w))continue;f.add(w);const S={...r,...s},E=new Set;for(const T of v){const A=o[T];Object.assign(S,A.tokens,A.localTokens);for(const N of Object.keys(A.tokens))E.add(N);for(const N of Object.keys(A.localTokens??{}))E.add(N)}const R=v.join(", "),C=v.map(T=>o[T].query).join("; ");wC(S,`defineTheme("${e}").adaptations ${v.length===1?"rule":"overlapping rules"} [${R}] (${C})`,E)}}function $I(e,t){const r=e?.typography,s=t.typography,o=(w,S,E=!1)=>{const R=Fh(w,S);if(R)return S?.family?{...R,family:S.family,fallbacks:S.fallbacks}:E?{...R,family:void 0,fallbacks:void 0}:{...R,family:w?.family,fallbacks:w?.fallbacks}};let l=o(r?.body,s?.body),u=o(r?.heading,s?.heading,!!(s?.body?.family&&!s?.heading?.family)),f=o(r?.code,s?.code);const d=s?.scale?s:r?.scale?r:void 0,p=(w,S)=>w?{...w,weight:S?.weight,weights:S?.weights}:void 0;l=p(l,d?.body),u=p(u,d?.heading),f=p(f,d?.code);const y=r||s?{...r,...s,scale:s?.scale??r?.scale,body:l,heading:u,code:f}:void 0,m=t.color??e?.color,k=t.radius?{...e?.radius,...t.radius}:e?.radius,v=t.motion?{...e?.motion,...t.motion}:e?.motion;return{...y?{typography:y}:{},...m?{color:m}:{},...k?{radius:k}:{},...v?{motion:v}:{}}}function TI(e,t,r){if(!e||!t)return e;const s={};for(const[o,l]of Object.entries(e))for(const[u,f]of Object.entries(l)){const d=Object.fromEntries(Object.entries(f).filter(([p])=>t[o]?.[u]?.[p]===void 0||Object.hasOwn(r?.[o]?.[u]??{},p)));Object.keys(d).length>0&&((s[o]??={})[u]=d)}return Object.keys(s).length>0?s:void 0}function CC(e,t,r,s,o,l){if(t.rules.length===0)return;const u=t.rules.map((f,d)=>{const p=kI(e,d,f.value,r),y=yC(p,void 0,{strictTokens:!0});for(const[k,v]of Object.entries(y.tokens))L1(v,`defineTheme("${e}").adaptations.rules[${d}].value.tokens["${k}"]`);y.components&&L1(y.components,`defineTheme("${e}").adaptations.rules[${d}].value.components`);for(const k of Object.keys(f.value.tokens??{}))if(o&&Object.prototype.hasOwnProperty.call(o,k))throw new Error(`defineTheme("${e}").adaptations.rules[${d}].value.tokens["${k}"] matches an enrolled theme-local declaration; write it through value.localTokens instead.`);const m=oI(e,d,f.value.localTokens,o);return{when:f.when,query:vI(e,d,f.when,t.widthBreakpoints),tokens:y.tokens,localTokens:m,components:p.typography?.scale?TI(y.components,l,f.value.components):y.components}});return EI(e,t.widthBreakpoints,s,o,u),u}const Jb={"--color-syntax-keyword":"var(--color-text-accent)","--color-syntax-string":"var(--color-text-green)","--color-syntax-comment":"var(--color-text-secondary)","--color-syntax-number":"var(--color-text-orange)","--color-syntax-function":"var(--color-text-blue)","--color-syntax-type":"var(--color-text-purple)","--color-syntax-variable":"var(--color-text-primary)","--color-syntax-operator":"var(--color-text-cyan)","--color-syntax-constant":"var(--color-text-orange)","--color-syntax-tag":"var(--color-text-red)","--color-syntax-attribute":"var(--color-text-teal)","--color-syntax-property":"var(--color-text-cyan)","--color-syntax-punctuation":"var(--color-text-secondary)","--color-syntax-background":"var(--color-background-muted)"},CI={"--color-data-categorical-blue":"light-dark(#0171E3, #0171E3)","--color-data-categorical-orange":"light-dark(#EB6E00, #EB6E00)","--color-data-categorical-purple":"light-dark(#6B1EFD, #6B1EFD)","--color-data-categorical-green":"light-dark(#0B991F, #0B991F)","--color-data-categorical-pink":"light-dark(#F351C0, #F351C0)","--color-data-categorical-cyan":"light-dark(#0171A4, #0171A4)","--color-data-categorical-red":"light-dark(#F5394F, #F5394F)","--color-data-categorical-teal":"light-dark(#08A3A3, #08A3A3)","--color-data-categorical-brown":"light-dark(#965E03, #965E03)","--color-data-categorical-indigo":"light-dark(#6F8AFF, #6F8AFF)","--color-data-neutral":"light-dark(#8494A3, #8C939B)","--color-data-blue-5":"light-dark(#02165E, #02165E)","--color-data-blue-4":"light-dark(#004CBC, #004CBC)","--color-data-blue-3":"light-dark(#2694FE, #2694FE)","--color-data-blue-2":"light-dark(#78BEFF, #78BEFF)","--color-data-blue-1":"light-dark(#DBECFF, #DBECFF)","--color-data-shamrock-5":"light-dark(#0B603D, #0B603D)","--color-data-shamrock-4":"light-dark(#138546, #138546)","--color-data-shamrock-3":"light-dark(#24BB5E, #24BB5E)","--color-data-shamrock-2":"light-dark(#8EF7AA, #8EF7AA)","--color-data-shamrock-1":"light-dark(#D6FEE4, #D6FEE4)","--color-data-orange-5":"light-dark(#A13F04, #A13F04)","--color-data-orange-4":"light-dark(#D66100, #D66100)","--color-data-orange-3":"light-dark(#FD9537, #FD9537)","--color-data-orange-2":"light-dark(#FDB876, #FDB876)","--color-data-orange-1":"light-dark(#FFE6CF, #FFE6CF)","--color-data-pink-5":"light-dark(#8E1073, #8E1073)","--color-data-pink-4":"light-dark(#D123A1, #D123A1)","--color-data-pink-3":"light-dark(#F989D3, #F989D3)","--color-data-pink-2":"light-dark(#FEADE3, #FEADE3)","--color-data-pink-1":"light-dark(#FCE3F4, #FCE3F4)","--color-data-purple-5":"light-dark(#3E0697, #3E0697)","--color-data-purple-4":"light-dark(#6B1EFD, #6B1EFD)","--color-data-purple-3":"light-dark(#9081FF, #9081FF)","--color-data-purple-2":"light-dark(#B3B0FE, #B3B0FE)","--color-data-purple-1":"light-dark(#E8E8FB, #E8E8FB)","--color-data-red-5":"light-dark(#9D0519, #9D0519)","--color-data-red-4":"light-dark(#D31130, #D31130)","--color-data-red-3":"light-dark(#FB7D87, #FB7D87)","--color-data-red-2":"light-dark(#FFB2B8, #FFB2B8)","--color-data-red-1":"light-dark(#FEE4E6, #FEE4E6)","--color-data-teal-5":"light-dark(#08767D, #08767D)","--color-data-teal-4":"light-dark(#0C9293, #0C9293)","--color-data-teal-3":"light-dark(#0DB7AF, #0DB7AF)","--color-data-teal-2":"light-dark(#6CE6D8, #6CE6D8)","--color-data-teal-1":"light-dark(#D7FCF8, #D7FCF8)","--color-data-yellow-5":"light-dark(#8A5001, #8A5001)","--color-data-yellow-4":"light-dark(#D69804, #D69804)","--color-data-yellow-3":"light-dark(#FBCE03, #FBCE03)","--color-data-yellow-2":"light-dark(#FCEC85, #FCEC85)","--color-data-yellow-1":"light-dark(#FDF6BA, #FDF6BA)","--color-data-gray-5":"light-dark(#25363F, #333338)","--color-data-gray-4":"light-dark(#5D6C7B, #666A72)","--color-data-gray-3":"light-dark(#AFB9C4, #B2B8BE)","--color-data-gray-2":"light-dark(#CCD3DB, #D0D3D6)","--color-data-gray-1":"light-dark(#F1F4F7, #F2F4F6)"},jI={...Jb,...CI},jC=new Map;function RC(e){jC.set(e.name,e)}function tx(e){return e==null||e===""?null:jC.get(e)??null}const RI={avatar:[{property:"borderRadius",vars:["--_avatar-radius"]}],banner:[{property:"borderRadius",vars:["--_banner-radius"]}],"bottom-sheet":[{property:"padding",expand:"container"}],button:[{property:"borderRadius",vars:["--_button-radius"]}],card:[{property:"borderRadius",vars:["--_card-radius"]},{property:"padding",expand:"container"}],chat:[{property:"borderRadius",vars:["--_chat-composer-radius"]},{property:"padding",vars:["--_chat-composer-padding"]}],dialog:[{property:"borderRadius",vars:["--_dialog-radius"]},{property:"padding",expand:"container"}],drawer:[{property:"padding",expand:"container"}],"context-menu":[{property:"borderRadius",vars:["--_dropdown-menu-radius"]},{property:"padding",vars:["--_dropdown-menu-padding"]}],"dropdown-menu":[{property:"borderRadius",vars:["--_dropdown-menu-radius"]},{property:"padding",vars:["--_dropdown-menu-padding"]}],field:[{property:"borderRadius",vars:["--_field-radius"]}],"hover-card":[{property:"borderRadius",vars:["--_hovercard-radius"]}],item:[{property:"paddingInline",vars:["--_item-inset-inline"]}],"number-input":[{property:"padding",expand:"container"},{property:"borderRadius",vars:["--_field-radius"]}],popover:[{property:"borderRadius",vars:["--_popover-radius"]}],"progress-bar-mark":[{property:"width",vars:["--_progressbar-mark-width"],replaces:!0},{property:"height",vars:["--_progressbar-mark-height"],replaces:!0}],section:[{property:"padding",expand:"container"}],"segmented-control":[{property:"borderRadius",vars:["--_segmented-control-radius"]},{property:"padding",vars:["--_segmented-control-padding"]}],"text-area":[{property:"paddingInline",vars:["--_textarea-inline-padding"],replaces:!0}]};function wy(e,t){const r=RI[e];return r?r.filter(s=>s.property===t):[]}function td(e){return e===`
16
- `||e==="\r"||e==="\f"}function up(e){return e===" "||e===" "||td(e)}function D1(e){return/^[0-9a-fA-F]$/.test(e)}function O1(e){return/^[A-Za-z_]$/.test(e)||e.charCodeAt(0)>=128}function AI(e){return O1(e)||/^[0-9-]$/.test(e)}function AC(e){return e.replace(/\r\n?|\f/g,`
17
- `).replace(/\0/g,"�")}const MI=/[\x01-\x08\x0b\x0e-\x1f\x7f]/;function dp(e,t){return e[t]==="\\"&&t+1<e.length&&!td(e[t+1])}function MC(e,t){const r=e[t];if(r==="-"){const s=e[t+1];return s!==void 0&&(s==="-"||O1(s)||dp(e,t+1))}return r==="\\"?dp(e,t):r!==void 0&&O1(r)}function nx(e,t){if(D1(e[t])){let s=t;for(;s<e.length&&s-t<6&&D1(e[s]);)s++;return s<e.length&&up(e[s])&&s++,s}const r=e.codePointAt(t)??0;return t+(r>65535?2:1)}function NC(e,t){let r="",s=t;for(;s<e.length;){const o=e[s];if(AI(o))r+=o,s++;else if(dp(e,s)){const l=nx(e,s+1);if(D1(e[s+1])){const u=e.slice(s+1,l).trim(),f=parseInt(u,16);r+=f===0||f>1114111||f>=55296&&f<=57343?"�":String.fromCodePoint(f)}else r+=e.slice(s+1,l);s=l}else break}return{end:s,name:r}}function NI(e,t){const r=e[t];let s=t+1;for(;s<e.length;){const o=e[s];if(o===r)return{end:s+1};if(td(o))return{reason:"a newline inside a quoted string makes a bad string"};if(o==="\\"){if(s+1>=e.length)break;s=td(e[s+1])?s+2:nx(e,s+1);continue}s++}return{reason:`an unclosed ${r} string would swallow the rest of the rule`}}function zI(e,t){let r=t;for(;r<e.length;){const s=e[r];if(s===")")return{end:r+1};if(up(s)){for(;r<e.length&&up(e[r]);)r++;if(r>=e.length)break;return e[r]===")"?{end:r+1}:{reason:"whitespace inside an unquoted url() makes a bad url"}}if(MI.test(s))return{reason:"a non-printable character inside url() makes a bad url"};if(s==='"'||s==="'"||s==="(")return{reason:`"${s}" inside an unquoted url() makes a bad url; quote the URL instead`};if(s==="\\"){if(!dp(e,r))return{reason:"a stray backslash inside url() makes a bad url"};r=nx(e,r+1);continue}r++}return{reason:"an unclosed url( would swallow the rest of the rule"}}const LI={"(":")","[":"]","{":"}"};function zC(e){const t=AC(e),r=[];let s=0;for(;s<t.length;){const o=t[s];if(o==="/"&&t[s+1]==="*"){const l=t.indexOf("*/",s+2);if(l===-1)return"an unclosed /* comment would swallow the rest of the rule";s=l+2;continue}if(o==='"'||o==="'"){const l=NI(t,s);if("reason"in l)return l.reason;s=l.end;continue}if(MC(t,s)){const l=NC(t,s);if(s=l.end,t[s]==="("&&l.name.toLowerCase()==="url"){let u=s+1;for(;u<t.length&&up(t[u]);)u++;if(t[u]==='"'||t[u]==="'"){r.push(")"),s=s+1;continue}const f=zI(t,u);if("reason"in f)return f.reason;s=f.end}continue}if(o==="\\"){if(s+1>=t.length)return"a trailing backslash would escape the declaration terminator";s=td(t[s+1])?s+1:nx(t,s+1);continue}if(o==="("||o==="["||o==="{"){if(o==="{"&&r.length===0)return'an unquoted "{" would open a nested block';r.push(LI[o]),s++;continue}if(o===")"||o==="]"||o==="}"){if(r.length===0)return o==="}"?'an unquoted "}" would close the rule':`an unbalanced "${o}" has nothing to close`;const l=r.pop();if(l!==o)return`"${o}" does not close the open "${l===")"?"(":l==="]"?"[":"{"}"`;s++;continue}if(o===";"&&r.length===0)return'an unquoted ";" would end the declaration';s++}if(r.length>0){const o=r[r.length-1];return`an unclosed "${o===")"?"(":o==="]"?"[":"{"}" would swallow the rest of the rule`}return null}function DI(e){const t=AC(e);if(t.length===0||!MC(t,0))return"a property name must be a CSS identifier";const{end:r}=NC(t,0);return r!==t.length?`a property name must be one CSS identifier; "${t[r]}" cannot appear in one`:null}function e0(e){return`[data-${Vp}-theme="${e}"]`}const rx=`[data-${Vp}-theme]`;function LC(e){return`[data-${Vp}-media="${e}"]`}function OI(e,t){return`.${fT}-${e}${t}`}function Zl(e,t,r){const s=OI(e,t);return r?`:is(${LC(r)}) :is(${s})`:s}const G5=':where(:not(:disabled,[aria-disabled="true"]))';function II(e,t){const r=[];let s=0,o=0;for(let u=0;u<e.length;u++){const f=e[u];f==="("?s++:f===")"?s=Math.max(0,s-1):f===","&&s===0&&(r.push(e.slice(o,u).trim()),o=u+1)}r.push(e.slice(o).trim());const l=_I(t);return r.map(u=>`${u}${l}`).join(", ")}function _I(e){if(!/^:hover(?![-\w])/.test(e)||e.includes("[aria-disabled"))return e;const t=e.indexOf("::");return t===-1?e+G5:e.slice(0,t)+G5+e.slice(t)}function Sy(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const I1=new Set(["padding","paddingBlock","paddingInline","paddingBlockStart","paddingBlockEnd","paddingInlineStart","paddingInlineEnd"]),t0={paddingTop:"paddingBlockStart",paddingBottom:"paddingBlockEnd"},K5=new Set([...I1,...Object.keys(t0)]);function qI(e){const t={};for(const[r,s]of e)switch(t0[r]??r){case"padding":{const l=s.trim().split(/\s+/);l.length===1?(t.blockStart=l[0],t.blockEnd=l[0],t.inline=l[0]):l.length===2?(t.blockStart=l[0],t.blockEnd=l[0],t.inline=l[1]):l.length>=3&&(t.blockStart=l[0],t.inline=l[1],t.blockEnd=l[2]);break}case"paddingBlock":{const l=s.trim().split(/\s+/);t.blockStart=l[0],t.blockEnd=l[1]??l[0];break}case"paddingInline":{const l=s.trim().split(/\s+/);l.length===1?t.inline=l[0]:(t.inlineStart=l[0],t.inlineEnd=l[1]);break}case"paddingBlockStart":t.blockStart=s;break;case"paddingBlockEnd":t.blockEnd=s;break;case"paddingInlineStart":t.inlineStart=s;break;case"paddingInlineEnd":t.inlineEnd=s;break}return t}function PI(e,t,r=!1){const s=h9(`${e}-padding`),o=[],l=t.inlineStart??t.inline,u=t.inlineEnd??t.inline;if(l!=null&&u!=null&&l===u&&t.blockStart!=null&&t.blockEnd!=null&&l===t.blockStart&&t.blockStart===t.blockEnd?o.push([s,l??""]):(t.inlineStart!=null||t.inlineEnd!=null?(l!=null&&o.push([`${s}-inline-start`,l]),u!=null&&o.push([`${s}-inline-end`,u])):t.inline!=null&&o.push([`${s}-inline`,t.inline]),t.blockStart!=null&&o.push([`${s}-block-start`,t.blockStart]),t.blockEnd!=null&&o.push([`${s}-block-end`,t.blockEnd])),r){const p=new Set(o.map(([m])=>m)),y=p.has(s)?[`${s}-inline`,`${s}-inline-start`,`${s}-inline-end`,`${s}-block-start`,`${s}-block-end`]:p.has(`${s}-inline`)?[`${s}-inline-start`,`${s}-inline-end`]:[];for(const m of y)p.has(m)||o.push([m,"initial"])}return o}const DC=e=>{console.warn(`[astryx theme] ${e}`)};function n0(e){return DC}function BI(e){const t=JSON.stringify(e);return t.length>80?`${t.slice(0,77)}..."`:t}function HI(e,t,r,s,o){e(`dropped "${t}" in ${s}: ${o} (value: ${BI(r)})`)}function OC(e,t,r,s){const o=DI(e)??zC(t);return o===null?!0:(HI(s,e,t,r,o),!1)}function nd(e,t,r,s=o=>o){const o=[];for(const[l,u]of e){const f=`${u}`,d=s(l);OC(d,f,t,r)&&o.push(` ${d}: ${f};`)}return o.join(`
18
- `)}function IC(e,t,r){const s=[nd(Object.entries(e.tokens),`${t}tokens`,r),nd(Object.entries(e.localTokens??{}),`${t}localTokens`,r)].filter(l=>l.length>0).join(`
19
- `);return Object.keys(e.tokens).length>0||Object.keys(e.localTokens??{}).length>0?` :scope {
20
- ${s}
21
- }`:null}function FI(e,t,r){return`${e}components.${t}[${JSON.stringify(r)}]`}function UI(e,t){const r=[],s=n0(),o=u=>`var(${u})`,l=IC(e,"",s);return l!==null&&r.push(l),e.tokens["--font-family-body"]&&r.push(` :scope {
22
- font-family: var(--font-family-body);
23
- }`),e.components&&r0(e.components,r,{sink:s}),GI(o,r),a0(e.components||{},r),s0(e.components||{},r),fp(e.components||{},r),r}const VI={normal:"var(--font-weight-normal)",medium:"var(--font-weight-medium)",semibold:"var(--font-weight-semibold)",bold:"var(--font-weight-bold)"};function fp(e,t,{surface:r,inheritedComponents:s,forceAll:o=!1,authoredOnly:l=!1}={}){const u=e.heading,f=u&&typeof u=="object"&&!Array.isArray(u)?u:void 0;if(!f&&!o)return;const d=s?.heading,p=d&&typeof d=="object"?d:void 0;for(const[y,m]of Object.entries(VI)){const k=`weight:${y}`,v=f?W5(f,k):void 0;if(l&&v===void 0)continue;const w=p?W5(p,k):void 0,S=v??w??m,E=Gl(k),R=Zl("heading",E,r);t.push(` ${R} { font-weight: ${S}; }`)}}function W5(e,t){const r=e[t];if(r==null||typeof r!="object"||Array.isArray(r))return;const s=r.fontWeight;return typeof s=="string"&&zC(s)===null?s:void 0}function r0(e,t,{resetInheritedPaddingSpecificity:r=!1,surface:s,sink:o=DC,location:l=""}={}){for(const[u,f]of Object.entries(e))for(const[d,p]of Object.entries(f)){const y=Object.entries(p);if(y.length===0)continue;const m=Gl(d),k=Zl(u,m,s),v=FI(l,u,d),w=[],S=[];for(const[A,N]of y)A.startsWith(":")&&typeof N=="object"?S.push([A,N]):OC(Sy(A),`${N}`,v,o)&&w.push([A,N]);let E=w;const R=[];let C=!1;const T=new Set;for(const[A,N]of w){const L=wy(u,A),D=I1.has(A)&&A!=="padding"?wy(u,"padding"):[];for(const j of[...L,...D])if(j.expand==="container"&&I1.has(A)&&(C=!0),j.replaces&&T.add(A),j.vars)for(const O of j.vars)R.push([O,N]);A in t0&&wy(u,"padding").some(j=>j.expand==="container")&&(C=!0)}if(C){const A=w.filter(([j])=>K5.has(j)),N=w.filter(([j])=>!K5.has(j)),L=qI(A),D=PI(u,L,r);E=[...N,...D]}if(T.size>0&&(E=E.filter(([A])=>!T.has(A))),R.length>0&&(E=[...E,...R]),E.length>0){const A=nd(E,v,o,Sy);t.push(` ${k} {
24
- ${A}
25
- }`)}for(const[A,N]of S){const L=Object.entries(N);if(L.length>0){const D=nd(L,`${v}[${JSON.stringify(A)}]`,o,Sy);t.push(` ${II(k,A)} {
26
- ${D}
27
- }`)}}}}function GI(e,t){t.push(` :where(h1, h2, h3, h4, h5, h6) {
28
- font-family: var(--font-family-heading);
29
- color: var(--color-text-primary);
30
- }`);for(let r=1;r<=6;r++)t.push(` :where(h${r}) {
31
- font-size: ${e(`--text-heading-${r}-size`)};
32
- font-weight: ${e(`--text-heading-${r}-weight`)};
33
- line-height: ${e(`--text-heading-${r}-leading`)};
34
- }`);t.push(` :where(p) {
35
- font-family: var(--font-family-body);
36
- font-size: ${e("--text-body-size")};
37
- font-weight: ${e("--text-body-weight")};
38
- line-height: ${e("--text-body-leading")};
39
- color: var(--color-text-primary);
40
- }`),t.push(` :where(small) {
41
- font-size: ${e("--text-supporting-size")};
42
- font-weight: ${e("--text-supporting-weight")};
43
- line-height: ${e("--text-supporting-leading")};
44
- color: var(--color-text-secondary);
45
- }`),t.push(` :where(code, pre) {
46
- font-family: var(--font-family-code);
47
- font-size: ${e("--text-code-size")};
48
- line-height: ${e("--text-code-leading")};
49
- }`),t.push(` :where(hr) {
50
- border: none;
51
- border-top: 1px solid var(--color-border);
52
- }`)}function a0(e,t,r){const s={primary:"var(--color-text-primary)",secondary:"var(--color-text-secondary)",disabled:"var(--color-text-disabled)",placeholder:"var(--color-text-secondary)",accent:"var(--color-text-accent)"},o="text"in e,l="heading"in e,u="link"in e;if(o||l||u)for(const[f,d]of Object.entries(s))o&&t.push(` ${Zl("text",Gl(`color:${f}`),r)} { color: ${d}; }`),l&&t.push(` ${Zl("heading",Gl(`color:${f}`),r)} { color: ${d}; }`),u&&t.push(` ${Zl("link",Gl(`color:${f}`),r)} { color: ${d}; }`)}const KI={"4xs":"var(--font-size-4xs)","3xs":"var(--font-size-3xs)","2xs":"var(--font-size-2xs)",xsm:"var(--font-size-xs)",sm:"var(--font-size-sm)",base:"var(--font-size-base)",lg:"var(--font-size-lg)",xl:"var(--font-size-xl)","2xl":"var(--font-size-2xl)","3xl":"var(--font-size-3xl)","4xl":"var(--font-size-4xl)"};function s0(e,t,r){if("text"in e)for(const[s,o]of Object.entries(KI)){const l=Gl(`size:${s}`);t.push(` ${Zl("text",l,r)} { font-size: ${o}; }`)}}function WI(e,t){const r=UI(e),s=[],o=[];for(const l of r)l.trimStart().startsWith(":where(")?s.push(l):o.push(l);return{component:o,prose:s}}function YI(e,t){const r=[],s=e0(e.name),o=n0();for(const u of["dark","light"]){const f=u==="dark"?e.__onDark:e.__onLight;if(!f)continue;const d=u==="dark"?"onDark.":"onLight.",p=Object.entries(f.tokens);if(p.length>0){const y=nd(p,`${d}tokens`,o);r.push(` ${LC(u)} {
53
- ${y}
54
- }`)}f.components&&(r0(f.components,r,{resetInheritedPaddingSpecificity:!0,surface:u,sink:o,location:d}),a0(f.components,r,u),s0(f.components,r,u),fp(f.components,r,{surface:u,inheritedComponents:e.components}))}if(r.length===0)return"";const l=r.join(`
55
-
56
- `);return`@scope (${s}) to (${rx}) {
57
- ${l}
58
- }`}function XI(e,t,r){const s=[],o=IC(e,t,r);return o!==null&&s.push(o),e.components&&(r0(e.components,s,{resetInheritedPaddingSpecificity:!0,sink:r,location:t}),a0(e.components,s),s0(e.components,s)),s}function ZI(e){const t=e?.heading;return t!==null&&typeof t=="object"&&!Array.isArray(t)}function Y5(e,t,r){return`@media ${e} {
59
- @scope (${r}) to (${rx}) {
60
- ${t.map(JI).join(`
61
-
62
- `)}
63
- }
64
- }`}function QI(e,t){const r=n0(),s=e.__adaptations===void 0?void 0:TC(e.name,e.__adaptations,void 0),o=e.__adaptationRules??(s?CC(e.name,s,e.__axes??{},e.tokens,e.localTokens,e.components):void 0);if(!o||o.length===0)return{prose:"",component:""};const l=e0(e.name),u=[],f=o.some(d=>ZI(d.components));for(const[d,p]of o.entries()){const y=XI(p,`adaptations[${d}].`,r);y.length!==0&&u.push(Y5(p.query,y,l))}if(f){const d=[];fp(e.components??{},d,{forceAll:!0}),u.push(`@scope (${l}) to (${rx}) {
65
- ${d.join(`
66
-
67
- `)}
68
- }`);for(const p of o){const y=[];fp(p.components??{},y,{authoredOnly:!0}),y.length>0&&u.push(Y5(p.query,y,l))}}return{prose:"",component:u.join(`
69
-
70
- `)}}function JI(e){return` ${e}`}function e_(e,t){const{component:r,prose:s}=WI(e),o=e0(e.name),l=rx;let u="";if(s.length>0){const y=s.join(`
71
-
72
- `);u=`@scope (${o}) to (${l}) {
73
- ${y}
74
- }`}let f="";if(r.length>0){const y=r.join(`
75
-
76
- `);f=`@scope (${o}) to (${l}) {
77
- ${y}
78
- }`}const d=QI(e);d.component&&(f=f?`${f}
79
-
80
- ${d.component}`:d.component);const p=YI(e);return p&&(f=f?`${f}
81
-
82
- ${p}`:p),{prose:u,component:f}}const o0={...Fz,...Uz,...Vz,...Gz,...Kz,...Wz,...Yz,...Xz,...Zz,...Qz,...Jz,...e9,...t9,...jI};function t_(e){if(e===void 0)return"undefined";if(e===null)return"null";if(typeof e!="object")return typeof e;const t=Object.keys(e);return`an object with keys [${t.slice(0,4).join(", ")}${t.length>4?", …":""}]`}function _C(e){if("extends"in e&&!n_(e.extends))throw new Error(`defineTheme("${e.name}"): \`extends\` must be a theme from defineTheme(), got ${t_(e.extends)}. Check that the import naming your base theme resolves to its source and exports that name — a generated \`<theme>.js\` artifact sitting next to the source exports \`<name>Theme\`, not the source's own export.`);const t=e.extends,r={typography:e.typography,color:e.color,radius:e.radius,motion:e.motion,syntax:e.syntax,tokens:e.tokens,components:e.components},s={typography:e.typography,color:e.color,radius:e.radius,motion:e.motion},o=t?{tokens:t.tokens,components:t.components}:void 0,{tokens:l,components:u}=yC(r,o),f=D5("dark",e.onDark,t?.__onDark),d=D5("light",e.onLight,t?.__onLight),p=sI(e,t,l,o0),y=$I(t?.__axes,s),m=TC(e.name,t?.__adaptations,e.adaptations),k=CC(e.name,m,y,l,p?.localTokens,u),v=e.icons&&t?.icons?{...t.icons,...e.icons}:e.icons??t?.icons,w=e.indicators&&t?.indicators?{...t.indicators,...e.indicators}:e.indicators??t?.indicators,S={name:e.name,tokens:l,...p?{localTokens:p.localTokens,__localTokenOwners:p.owners,__localTokenLineage:p.lineage}:{},components:u,icons:v,indicators:w,__inputTokens:t?.__inputTokens||e.tokens?{...t?.__inputTokens,...e.tokens}:void 0,__onDark:f,__onLight:d,__adaptations:m,__adaptationRules:k,__axes:y};return RC(S),S}function n_(e){return typeof e=="object"&&e!==null&&"name"in e&&"tokens"in e&&!("styles"in e)}function r_(e){return`var(${e})`}Object.fromEntries(Object.keys(o0).map(e=>[e,r_(e)]));function i0(e){let t=0,r=null,s=!1;for(let o=0;o<e.length;o++){const l=e[o];if(r!==null){s?s=!1:l==="\\"?s=!0:l===r&&(r=null);continue}if(l==='"'||l==="'"){r=l;continue}if(l==="("){t++;continue}if(l===")"){t=Math.max(0,t-1);continue}if(l===","&&t===0)return[e.slice(0,o).trim(),e.slice(o+1).trim()]}return null}function a_(e){const t=e.trim(),r="light-dark(";if(!t.startsWith(r)||!t.endsWith(")"))return null;const s=t.slice(r.length,-1);return i0(s)}function Ey(e,t){if(Array.isArray(e))return t==="dark"?e[1]:e[0];const r=a_(e);return r!==null?t==="dark"?r[1]:r[0]:e}function qC(e,t){let r=0;for(let s=t;s<e.length;s++){const o=e[s];if(o==="(")r++;else if(o===")"&&(r--,r===0))return s}return-1}function X5(e){const t=e.trim(),r=t.match(/\s+([\d.]+)%$/);return r?{color:t.slice(0,r.index).trim(),percentage:parseFloat(r[1])}:{color:t,percentage:null}}function s_(e){const t=e.match(/^in\s+([\w-]+)\s*,\s*(.+)$/s);if(!t)return null;const[,r,s]=t;if(r.toLowerCase()!=="srgb")return null;const o=i0(s);if(o===null)return null;const l=X5(o[0]),u=X5(o[1]);if(l===null||u===null)return null;const f=Zu(l.color),d=Zu(u.color);if(f===null||d===null)return null;let p,y;l.percentage!==null&&u.percentage!==null?(p=l.percentage,y=u.percentage):l.percentage!==null?(p=l.percentage,y=100-p):u.percentage!==null?(y=u.percentage,p=100-y):(p=50,y=50);const m=p+y;if(m<=0)return null;const k=p/m,v=y/m,w=m<100?m/100:1,S=k*f.a+v*d.a,E=(N,L)=>k*N*f.a+v*L*d.a,R=E(f.r,d.r),C=E(f.g,d.g),T=E(f.b,d.b),A=S===0?{r:0,g:0,b:0}:{r:R/S,g:C/S,b:T/S};return gT({...A,a:S*w})}function _1(e){const t=e.indexOf("color-mix(");if(t===-1)return e;const r=t+9,s=qC(e,r);if(s===-1)return e;const o=_1(e.slice(r+1,s)),u=s_(o)??`color-mix(${o})`;return e.slice(0,t)+u+_1(e.slice(s+1))}function q1(e,t,r,s){const o=e.indexOf("var(");if(o===-1)return e;const l=o+3,u=qC(e,l);if(u===-1)return e;const f=e.slice(l+1,u),d=i0(f),p=(d?d[0]:f).trim(),y=d?d[1]:null;let m;s.has(p)?m=e.slice(o,u+1):p in t?(s.add(p),m=PC(p,t,r,s),s.delete(p)):y!==null?m=q1(y.trim(),t,r,s):m=e.slice(o,u+1);const k=q1(e.slice(u+1),t,r,s);return e.slice(0,o)+m+k}function o_(e,t,r,s){if(!e.includes("var(")&&!e.includes("color-mix("))return e;const o=q1(e,t,r,s);return _1(o)}function PC(e,t,r,s){if(e in r)return r[e];const o=t[e];if(o===void 0)return"";const l=o_(o,t,r,s);return r[e]=l,l}function Z5(e){const t={};for(const r of Object.keys(e))PC(r,e,t,new Set);return t}function i_(e,t){const{mode:r}=t,s={};for(const[o,l]of Object.entries(o0))s[o]=Ey(l,r);if(e==null)return Z5(s);for(const[o,l]of Object.entries(e.tokens))s[o]=Ey(l,r);if(e.__inputTokens)for(const[o,l]of Object.entries(e.__inputTokens))l!==void 0&&(s[o]=Ey(l,r));return Z5(s)}function wd(e,t=!1){const r=g.useCallback(l=>{const u=window.matchMedia(e);return u.addEventListener("change",l),()=>u.removeEventListener("change",l)},[e]),s=g.useCallback(()=>window.matchMedia(e).matches,[e]),o=g.useCallback(()=>t,[t]);return g.useSyncExternalStore(r,s,o)}const Sd=g.createContext(null);Sd.displayName="ThemeContext";function l_(){if(typeof document>"u")return null;const e=document.documentElement.getAttribute("data-theme");return e==="light"||e==="dark"?e:null}function c_(){return null}function u_(){return typeof document>"u"?null:document.documentElement.getAttribute(Dr("theme"))}function d_(){return null}function BC(){return null}const zu=new Set;let Su=null;const Lu=new Set;let Eu=null;function f_(){for(const e of zu)e()}function h_(e){return zu.add(e),zu.size===1&&typeof MutationObserver<"u"&&(Su=new MutationObserver(f_),Su.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})),()=>{zu.delete(e),zu.size===0&&Su&&(Su.disconnect(),Su=null)}}function p_(){for(const e of Lu)e()}function x_(e){return Lu.add(e),Lu.size===1&&typeof MutationObserver<"u"&&(Eu=new MutationObserver(p_),Eu.observe(document.documentElement,{attributes:!0,attributeFilter:[Dr("theme")]})),()=>{Lu.delete(e),Lu.size===0&&Eu&&(Eu.disconnect(),Eu=null)}}function HC(){return()=>{}}function g_(e){return g.useSyncExternalStore(e?HC:h_,e?BC:l_,c_)}function l0(e){return g.useSyncExternalStore(e?HC:x_,e?BC:u_,d_)}function FC(){const e=g.use(Sd),t=e!=null,r=l0(t);return e?.theme.name??r}function m_(){const e=g.use(Sd),t=e!=null,r=l0(t);return e?.theme??tx(r)??void 0}function ax(){const e=g.use(Sd),t=e!=null,r=g_(t),s=l0(t),o=wd("(prefers-color-scheme: dark)"),l=e?.mode??r??"system",u=e?.theme??tx(s),f=l==="system"?o?"dark":"light":l,d=g.useMemo(()=>i_(u,{mode:f}),[u,f]),p=g.useCallback(m=>d[m]??"",[d]),y=u?.name??"default";return g.useMemo(()=>({name:y,mode:f,token:p,tokens:d}),[y,f,p,d])}const tn={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",width:"1em",height:"1em","aria-hidden":!0},Rl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-hidden":!0},y_={close:x.jsx("svg",{...tn,children:x.jsx("path",{d:"M6 6l12 12M6 18L18 6"})}),chevronDown:x.jsx("svg",{...tn,children:x.jsx("path",{d:"M6 9l6 6 6-6"})}),"numberInput:stepperDown":x.jsx("svg",{...tn,children:x.jsx("path",{d:"M7.5 9.75l4.5 4.5 4.5-4.5"})}),chevronLeft:x.jsx("svg",{...tn,children:x.jsx("path",{d:"M15 6l-6 6 6 6"})}),chevronRight:x.jsx("svg",{...tn,children:x.jsx("path",{d:"M9 6l6 6-6 6"})}),chevronsLeft:x.jsx("svg",{...tn,children:x.jsx("path",{d:"M18 6l-6 6 6 6M11 6l-6 6 6 6"})}),chevronsRight:x.jsx("svg",{...tn,children:x.jsx("path",{d:"M6 6l6 6-6 6M13 6l6 6-6 6"})}),check:x.jsx("svg",{...tn,children:x.jsx("path",{d:"M5 13l4 4L19 7"})}),success:x.jsx("svg",{...Rl,children:x.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3a9 9 0 100 18 9 9 0 000-18zm4.06 6.56a.75.75 0 00-1.12-1l-3.94 4.4-1.94-1.94a.75.75 0 00-1.06 1.06l2.5 2.5a.75.75 0 001.09-.03l4.47-5z"})}),error:x.jsx("svg",{...Rl,children:x.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3a9 9 0 100 18 9 9 0 000-18zm-2.47 5.47a.75.75 0 00-1.06 1.06L10.94 12l-2.47 2.47a.75.75 0 101.06 1.06L12 13.06l2.47 2.47a.75.75 0 101.06-1.06L13.06 12l2.47-2.47a.75.75 0 00-1.06-1.06L12 10.94l-2.47-2.47z"})}),warning:x.jsx("svg",{...Rl,children:x.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.29 3.86L2.07 19.05A2 2 0 003.78 22h16.44a2 2 0 001.71-2.95L13.71 3.86a2 2 0 00-3.42 0zM12 9a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0112 9zm0 9a1 1 0 100-2 1 1 0 000 2z"})}),info:x.jsx("svg",{...Rl,children:x.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3a9 9 0 100 18 9 9 0 000-18zm0 4a1 1 0 100 2 1 1 0 000-2zm-.75 3.75a.75.75 0 011.5 0v5.5a.75.75 0 01-1.5 0v-5.5z"})}),calendar:x.jsxs("svg",{...tn,children:[x.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2"}),x.jsx("path",{d:"M16 2v4M8 2v4M3 10h18"})]}),clock:x.jsxs("svg",{...tn,children:[x.jsx("circle",{cx:"12",cy:"12",r:"9"}),x.jsx("path",{d:"M12 7v5l3 3"})]}),externalLink:x.jsxs("svg",{...tn,children:[x.jsx("path",{d:"M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"}),x.jsx("path",{d:"M15 3h6v6"}),x.jsx("path",{d:"M10 14L21 3"})]}),menu:x.jsx("svg",{...tn,strokeWidth:2,children:x.jsx("path",{d:"M4 6h16M4 12h16M4 18h16"})}),moreHorizontal:x.jsxs("svg",{...Rl,children:[x.jsx("circle",{cx:"5",cy:"12",r:"1.5"}),x.jsx("circle",{cx:"12",cy:"12",r:"1.5"}),x.jsx("circle",{cx:"19",cy:"12",r:"1.5"})]}),search:x.jsxs("svg",{...tn,children:[x.jsx("circle",{cx:"11",cy:"11",r:"8"}),x.jsx("path",{d:"M21 21l-4.35-4.35"})]}),upload:x.jsx("svg",{...tn,children:x.jsx("path",{d:"M12 16V4m0 0L7 9m5-5l5 5M4 15v4a2 2 0 002 2h12a2 2 0 002-2v-4"})}),arrowUp:x.jsx("svg",{...tn,children:x.jsx("path",{d:"M12 19V5m0 0l-7 7m7-7l7 7"})}),arrowDown:x.jsx("svg",{...tn,children:x.jsx("path",{d:"M12 5v14m0 0l7-7m-7 7l-7-7"})}),arrowsUpDown:x.jsx("svg",{...tn,children:x.jsx("path",{d:"M3 7.5L7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5"})}),funnel:x.jsx("svg",{...tn,children:x.jsx("path",{d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 01-.659 1.591l-5.432 5.432a2.25 2.25 0 00-.659 1.591v2.927a2.25 2.25 0 01-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 00-.659-1.591L3.659 7.409A2.25 2.25 0 013 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0112 3z"})}),eyeSlash:x.jsx("svg",{...tn,children:x.jsx("path",{d:"M3.98 8.223A10.477 10.477 0 001.934 12c1.292 4.338 5.31 7.5 10.066 7.5.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88"})}),viewColumns:x.jsx("svg",{...tn,children:x.jsx("path",{d:"M9 4.5v15m6-15v15m-10.875 0h15.75c.621 0 1.125-.504 1.125-1.125V5.625c0-.621-.504-1.125-1.125-1.125H4.125C3.504 4.5 3 5.004 3 5.625v12.75c0 .621.504 1.125 1.125 1.125z"})}),copy:x.jsxs("svg",{...tn,children:[x.jsx("path",{d:"M8 4v12a2 2 0 002 2h8a2 2 0 002-2V7.242a2 2 0 00-.602-1.43L16.083 2.57A2 2 0 0014.685 2H10a2 2 0 00-2 2z"}),x.jsx("path",{d:"M16 18v2a2 2 0 01-2 2H6a2 2 0 01-2-2V9a2 2 0 012-2h2"})]}),checkDouble:x.jsxs("svg",{...tn,children:[x.jsx("path",{d:"M2 13l4 4L14 7"}),x.jsx("path",{d:"M9 13l4 4L21 7"})]}),wrench:x.jsx("svg",{...tn,children:x.jsx("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"})}),stop:x.jsx("svg",{...Rl,children:x.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})}),microphone:x.jsxs("svg",{...tn,children:[x.jsx("path",{d:"M12 2a3 3 0 00-3 3v6a3 3 0 006 0V5a3 3 0 00-3-3z"}),x.jsx("path",{d:"M19 10v1a7 7 0 01-14 0v-1"}),x.jsx("path",{d:"M12 18v4m-4 0h8"})]})};let b_={};function k_(e){return e==null?null:typeof e=="string"?tx(e)?.icons??null:e.icons??null}function v_(e,t){return k_(t)?.[e]??b_[e]??y_[e]}const UC={root:{kmuXW:"x2lah0s",$$css:!0},span:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmuXW:"x2lah0s",$$css:!0}},VC={primary:{kMwMTN:"xtbr613",$$css:!0},secondary:{kMwMTN:"xv9yike",$$css:!0},tertiary:{kMwMTN:"xv9yike",$$css:!0},disabled:{kMwMTN:"xqa6c3m",$$css:!0},accent:{kMwMTN:"xqwr325",$$css:!0},success:{kMwMTN:"xtjic6",$$css:!0},error:{kMwMTN:"xjt36v0",$$css:!0},warning:{kMwMTN:"xs3pv69",$$css:!0},inherit:{kMwMTN:"x1heor9g",$$css:!0},blue:{kMwMTN:"x1fns2mt",$$css:!0},red:{kMwMTN:"xeffzf7",$$css:!0},green:{kMwMTN:"xmxeech",$$css:!0},gray:{kMwMTN:"x1eyinzz",$$css:!0},cyan:{kMwMTN:"x157w0xa",$$css:!0},teal:{kMwMTN:"x1f3zxcb",$$css:!0},yellow:{kMwMTN:"x1g6zdft",$$css:!0},orange:{kMwMTN:"xxu74a4",$$css:!0},pink:{kMwMTN:"x1kxxfg5",$$css:!0},purple:{kMwMTN:"xzdw94u",$$css:!0}};function w_(e){return e!=null&&e!==""?{role:"img","aria-label":e}:{"aria-hidden":"true"}}function ft({icon:e,color:t="inherit",size:r,label:s,ref:o,className:l,style:u,xstyle:f,...d}){const p=tO(r),y=w_(s);if(typeof e=="string")return x.jsx(S_,{name:e,color:t,size:p,a11yProps:y,className:l,style:u,xstyle:f,spanProps:d});const m=e;return x.jsx(m,{ref:o,...y,...ye(fe("icon",{size:p,color:t}),de(UC.root,VC[t],nO[p],f),l??void 0,u),...d})}ft.displayName="Icon";function S_({name:e,color:t,size:r,a11yProps:s,className:o,style:l,xstyle:u,spanProps:f}){const d=FC(),p=v_(e,d);if(p==null)return null;const y=f??{};return x.jsx("span",{...s,...y,...ye(fe("icon",{size:r,color:t}),de(UC.span,VC[t],aC[r],u),o??void 0,l),children:p})}function Ta(e,t){return typeof e=="string"?x.jsx(ft,{icon:e,...t}):typeof e=="function"||typeof e=="object"&&e!==null&&"render"in e?x.jsx(ft,{icon:e,...t}):e}const E_={isMobile:!1,isMobileNavOpen:!1,toggleMobileNav:()=>{},openMobileNav:()=>{},closeMobileNav:()=>{},isMobileNavEnabled:!1,hasAutoToggle:!0},c0=g.createContext(E_);c0.displayName="AppShellMobileContext";function Ii(){return g.use(c0)}function u0({ref:e,children:t,label:r,"data-testid":s,xstyle:o,className:l,style:u}){const f=Nt(),d=r??f("@astryx.mobileNav.toggle.open"),{isMobile:p,isMobileNavEnabled:y,isMobileNavOpen:m,mobileNavId:k,toggleMobileNav:v}=Ii();return!p||!y?null:x.jsx(jt,{ref:e,variant:"ghost",label:d,icon:t??x.jsx(ft,{icon:"menu",color:"inherit"}),onClick:v,"aria-expanded":m,"aria-controls":k||void 0,"data-testid":s??"mobile-nav-toggle",xstyle:o,className:l,style:u,isIconOnly:!0})}u0.displayName="MobileNavToggle";const Hl=g.createContext("default");Hl.displayName="SideNavRenderContext";function GC(){return g.use(Hl)}const P1=g.createContext("default");P1.displayName="TopNavRenderContext";const B1=g.createContext(null);B1.displayName="TopNavMobileContentContext";const $_=typeof Dp.Activity<"u",T_=$_?({mode:e,children:t})=>x.jsx(Dp.Activity,{mode:e,children:t}):({children:e})=>x.jsx(x.Fragment,{children:e}),$y="astryx-app-shell-main",Cn={root:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kVAEAm:"x1n2onr6",kVQacm:"x7giv3",$$css:!0},variantWash:{kWkggS:"x1eiddq6",$$css:!0},variantSurface:{kWkggS:"x10xzikg",$$css:!0},variantSection:{kWkggS:"x10xzikg",$$css:!0},variantElevated:{kWkggS:"x1eiddq6",$$css:!0},rootFill:{kZKoxP:"xtdtrs8",$$css:!0},rootAuto:{kAzted:"x1ov3xa9",$$css:!0},skipLink:{kVAEAm:"x10l6tqk x1xrnuwo",kzqmXN:"x1i1rx1s x1jqxupm",kZKoxP:"xjm9jq1 x15cytp8",k8WAf4:"xt970qd xh2mrf5",kg3NbH:"xnjsko4 x1cf3d6k",kogj98:"xkdpibf x1y5lnwp",kVQacm:"xb3r6kr xomzh7y",kz4h6p:"x1hyvwdk x1rsz1da",khDVqt:"xuxw1ft x1hbpcn8",kMzoRj:"xc342km",k87sOh:"x13vifvy x1rw3289",kLqNvP:"x1o0tod xodanix",kWkggS:"x10xzikg",kMwMTN:"xjse4m1",kY2c9j:"x1q2oy4v",kybGjl:"x1hl2dhg",k63SB2:"x2mo6ok",kGuDYH:"xjm74w1",$$css:!0},mainFocusTarget:{kI3sdo:"x1uvtmcs",$$css:!0},contentBgSurface:{kWkggS:"x10xzikg",$$css:!0},contentBgWash:{kWkggS:"x1eiddq6",$$css:!0},contentBgTransparent:{kWkggS:"xjbqb8w",kHBbk8:"xc8icb0",$$css:!0},navAreaWash:{kWkggS:"x1eiddq6",$$css:!0},navAreaSurface:{kWkggS:"x10xzikg",$$css:!0},banner:{kmuXW:"x2lah0s",$$css:!0},headerSticky:{kVAEAm:"x7wzq59",k87sOh:"x13vifvy",kY2c9j:"x1vjfegm",$$css:!0},panelAutoFill:{kUk6DE:"x98rzlu",kVQacm:"xysyzu8",$$css:!0}};function d0({variant:e="elevated",banner:t,children:r,contentPadding:s,"data-testid":o,height:l="fill",mobileNav:u,sideNav:f,topNav:d,xstyle:p,className:y,style:m,ref:k,...v}){const w=Nt(),S=m_(),E=u===!1,R=u!=null&&u!==!1&&typeof u=="object"&&!g.isValidElement(u)?u:null,C=R?.breakpoint??"md",T=u!=null&&u!==!1&&(g.isValidElement(u)||typeof u=="string")?u:null,A=R?.content??null,N=R?.hasToggle!==!1,L=R?.isOpen!==void 0,D=S?.__adaptations?.widthBreakpoints,j=C==="none"?"(width < 0px)":`(width < ${D?.[C]??SC[C]}px)`,O=wd(j,C==="none"?!1:R?.defaultIsMobile),[M,H]=g.useState(!1),F=R?.isOpen??M,q=R?.onOpenChange,B=g.useCallback(ct=>{L||H(ct),q?.(ct)},[L,q]),U=g.useCallback(()=>{document.getElementById($y)?.focus()},[]),_=l==="fill",P=l==="auto",G=Us(t),X=Us(d),Z=Us(f),K=!E&&(X||Z)&&T==null,ae=e==="section",I=e==="elevated",ee=e==="wash"||e==="elevated"?Cn.navAreaWash:e==="surface"?Cn.navAreaSurface:void 0,pe=ee??(P&&e==="section"?Cn.navAreaSurface:void 0),ue=e==="wash"?Cn.contentBgWash:e==="elevated"&&X&&Z&&!O?Cn.contentBgTransparent:e==="surface"||e==="elevated"?Cn.contentBgSurface:void 0,ve=ee??Cn.navAreaSurface,xe=g.useRef(null),$e=g.useRef(null);g.useEffect(()=>{if(!P||!xe.current||!$e.current)return;const ct=xe.current,we=$e.current,Ge=()=>{const Pt=ct.getBoundingClientRect().height;we.style.setProperty("--_app-shell-header-height",`${Pt}px`)};return Xu(ct,()=>Ge())},[P]);const te=Z&&!O,he=T!=null,Re=K&&A!=null&&O,Ce=g.useId(),Te=g.useMemo(()=>({isMobile:O,isMobileNavOpen:F,mobileNavId:Ce,toggleMobileNav:()=>K&&B(!F),openMobileNav:()=>K&&B(!0),closeMobileNav:()=>B(!1),isMobileNavEnabled:K,hasAutoToggle:N}),[O,F,Ce,B,K,N]),Me=Z&&N?x.jsx(Hl,{value:"drawer-content",children:f}):null,je=Z?x.jsx(Hl,{value:"drawer-content",children:f}):null,He=X?O&&!E&&T==null?x.jsx(B1,{value:Me,children:x.jsx(P1,{value:"mobile-bar",children:d})}):d:null,at=X||G?x.jsxs(Jh,{padding:0,hasDivider:ae&&X,children:[G&&x.jsx("div",{...de(Cn.banner,ee),children:t}),X&&He]}):void 0,pt=Us(at)?x.jsx("div",{ref:xe,role:"banner",...ye(fe("app-shell-header",{variant:e}),de(pe,P&&Cn.headerSticky)),children:at}):void 0,et=te?x.jsx(kT,{padding:0,hasDivider:ae,isScrollable:_,...fe("app-shell-sidenav",{variant:e}),xstyle:[ee,P&&ve,P&&Cn.panelAutoFill],children:f}):void 0,Ve=et!=null&&P?x.jsx("div",{className:"x2lah0s x7giv3 x7wzq59 xht72ud xpa73km x78zum5 xdt5ytf",children:et}):et,yt=I&&X&&te,Pe=x.jsx(Di,{padding:s??0,role:"main",id:$y,tabIndex:-1,isScrollable:_,xstyle:[ue,Cn.mainFocusTarget],children:r}),rt=x.jsxs("div",{...{0:{className:"xjp7ctv"},1:{className:"x1n2onr6 x78zum5 x98rzlu x2lwn1j x5yr21d"}}[!!yt<<0],children:[yt&&x.jsx("div",{className:"x10l6tqk x10a8y8t x10xzikg x183tx6i x47corl"}),Pe]}),st=!E&&N&&O&&!X&&Z?x.jsx("div",{role:pt==null?"banner":void 0,...ye(fe("app-shell-header",{variant:e}),de(pe,P&&Cn.headerSticky)),children:x.jsx(Jh,{padding:0,hasDivider:ae,children:x.jsxs("div",{className:"x78zum5 x6s0dn4 x1k15mir xf314gf",role:"navigation","aria-label":w("@astryx.appShell.mobileNavigation"),children:[x.jsx(Hl,{value:"topbar",children:f}),x.jsx(u0,{})]})})}):void 0;return x.jsx(c0,{value:Te,children:x.jsxs("div",{...v,ref:xn(k,$e),"data-testid":o,...ye(fe("app-shell",{variant:e}),de(Cn.root,e==="wash"?Cn.variantWash:e==="surface"?Cn.variantSurface:e==="section"?Cn.variantSection:Cn.variantElevated,_?Cn.rootFill:Cn.rootAuto,p),y,m),children:[x.jsx("a",{href:`#${$y}`,onClick:U,...pn.focusVisible(Cn.skipLink),"data-testid":"skip-to-content",children:w("@astryx.appShell.skipToContent")}),x.jsx(Li,{height:l,padding:0,header:x.jsxs(x.Fragment,{children:[pt,st]}),start:Ve,content:rt}),he&&T,Re&&A,O&&!E&&T==null&&!A&&x.jsxs(T_,{mode:F?"visible":"hidden",children:[Z&&!X&&x.jsx(Hl,{value:"drawer",children:f}),X&&x.jsx(B1,{value:je,children:x.jsx(P1,{value:"drawer",children:d})})]})]})})}d0.displayName="AppShell";function _r({icon:e,...t}){return x.jsx(jt,{...t,icon:e,isIconOnly:!0})}_r.displayName="IconButton";const Q5={container:{kB7OPa:"x9f619",kZCmMZ:"x1c35znw",kwRFfy:"x64h4k7",kLKAdn:"x14m0hsi",kGO01o:"xc1wllq","--layout-padding-own-outer-x":"x1vii845","--layout-padding-own-outer-y":"xojybgt",$$css:!0}},C_={containerPaddingInlineStart:{"--container-padding-inline-start":"xjmlhfd",$$css:!0},containerPaddingInlineEnd:{"--container-padding-inline-end":"x1ihxwbr",$$css:!0},containerPaddingBlockStart:{"--container-padding-block-start":"x1rqz8me",$$css:!0},containerPaddingBlockEnd:{"--container-padding-block-end":"x1omyuck",$$css:!0},layoutPaddingOuterX:{"--layout-padding-outer-x":"x14rzhog",$$css:!0},layoutPaddingOuterY:{"--layout-padding-outer-y":"xjej9fs",$$css:!0},layoutPaddingInnerX:{"--layout-padding-inner-x":"x4poyjn",$$css:!0},layoutPaddingInnerY:{"--layout-padding-inner-y":"x1u1kw4e",$$css:!0}},j_={containerPaddingInlineStart:{"--container-padding-inline-start":"x19lemt0",$$css:!0},containerPaddingInlineEnd:{"--container-padding-inline-end":"xu1wldr",$$css:!0},containerPaddingBlockStart:{"--container-padding-block-start":"xnw7zt4",$$css:!0},containerPaddingBlockEnd:{"--container-padding-block-end":"xek4msv",$$css:!0},layoutPaddingOuterX:{"--layout-padding-outer-x":"x15i0zw9",$$css:!0},layoutPaddingOuterY:{"--layout-padding-outer-y":"x1vw4zgg",$$css:!0},layoutPaddingInnerX:{"--layout-padding-inner-x":"x1v3gmnx",$$css:!0},layoutPaddingInnerY:{"--layout-padding-inner-y":"x15yx5hm",$$css:!0}},R_={containerPaddingInlineStart:{"--container-padding-inline-start":"x1tewnwq",$$css:!0},containerPaddingInlineEnd:{"--container-padding-inline-end":"x11h1f2o",$$css:!0},containerPaddingBlockStart:{"--container-padding-block-start":"x1g2kccc",$$css:!0},containerPaddingBlockEnd:{"--container-padding-block-end":"x1gvthzm",$$css:!0},layoutPaddingOuterX:{"--layout-padding-outer-x":"x1hsjncj",$$css:!0},layoutPaddingOuterY:{"--layout-padding-outer-y":"x1pui4bz",$$css:!0},layoutPaddingInnerX:{"--layout-padding-inner-x":"x2so38",$$css:!0},layoutPaddingInnerY:{"--layout-padding-inner-y":"xinu7xd",$$css:!0}},A_={containerPaddingInlineStart:{"--container-padding-inline-start":"xv7mus7",$$css:!0},containerPaddingInlineEnd:{"--container-padding-inline-end":"x1ui7op6",$$css:!0},containerPaddingBlockStart:{"--container-padding-block-start":"x8qn3ha",$$css:!0},containerPaddingBlockEnd:{"--container-padding-block-end":"x1of45zw",$$css:!0},layoutPaddingOuterX:{"--layout-padding-outer-x":"x11ixy8q",$$css:!0},layoutPaddingOuterY:{"--layout-padding-outer-y":"x1iwhsh0",$$css:!0},layoutPaddingInnerX:{"--layout-padding-inner-x":"xp9icaw",$$css:!0},layoutPaddingInnerY:{"--layout-padding-inner-y":"x10u54dy",$$css:!0}},M_={containerPaddingInlineStart:{"--container-padding-inline-start":"x1mndvw9",$$css:!0},containerPaddingInlineEnd:{"--container-padding-inline-end":"xlsqznw",$$css:!0},containerPaddingBlockStart:{"--container-padding-block-start":"x18184ib",$$css:!0},containerPaddingBlockEnd:{"--container-padding-block-end":"x1g5mqay",$$css:!0},layoutPaddingOuterX:{"--layout-padding-outer-x":"x18e7m0u",$$css:!0},layoutPaddingOuterY:{"--layout-padding-outer-y":"xc006j",$$css:!0},layoutPaddingInnerX:{"--layout-padding-inner-x":"x1qbr0dm",$$css:!0},layoutPaddingInnerY:{"--layout-padding-inner-y":"x1ek71mq",$$css:!0}},N_={card:C_,section:j_,dialog:R_,"bottom-sheet":A_,drawer:M_},z_={spacing0:{"--container-padding-inline-start":"x1gu2k80",$$css:!0},spacing0_5:{"--container-padding-inline-start":"x14ws0sr",$$css:!0},spacing1:{"--container-padding-inline-start":"x1cvlban",$$css:!0},spacing1_5:{"--container-padding-inline-start":"x176g23i",$$css:!0},spacing2:{"--container-padding-inline-start":"x1xlrr2o",$$css:!0},spacing3:{"--container-padding-inline-start":"xfdwxua",$$css:!0},spacing4:{"--container-padding-inline-start":"x1dlhslv",$$css:!0},spacing5:{"--container-padding-inline-start":"x1s81nki",$$css:!0},spacing6:{"--container-padding-inline-start":"x1ep0dkj",$$css:!0},spacing7:{"--container-padding-inline-start":"x157xojc",$$css:!0},spacing8:{"--container-padding-inline-start":"xw1diwv",$$css:!0},spacing9:{"--container-padding-inline-start":"xraca2a",$$css:!0},spacing10:{"--container-padding-inline-start":"xserb3f",$$css:!0},spacing11:{"--container-padding-inline-start":"xziclwo",$$css:!0},spacing12:{"--container-padding-inline-start":"x1iiwihq",$$css:!0}},L_={spacing0:{"--container-padding-inline-end":"x91ghl5",$$css:!0},spacing0_5:{"--container-padding-inline-end":"x1wz3t3y",$$css:!0},spacing1:{"--container-padding-inline-end":"x2oyxnl",$$css:!0},spacing1_5:{"--container-padding-inline-end":"xntetml",$$css:!0},spacing2:{"--container-padding-inline-end":"xcas3b9",$$css:!0},spacing3:{"--container-padding-inline-end":"xu0ipoa",$$css:!0},spacing4:{"--container-padding-inline-end":"xs0pscg",$$css:!0},spacing5:{"--container-padding-inline-end":"xgkj7vj",$$css:!0},spacing6:{"--container-padding-inline-end":"x94cj42",$$css:!0},spacing7:{"--container-padding-inline-end":"x11tj35w",$$css:!0},spacing8:{"--container-padding-inline-end":"x1b9k1pi",$$css:!0},spacing9:{"--container-padding-inline-end":"x19w02kr",$$css:!0},spacing10:{"--container-padding-inline-end":"xx5lg5w",$$css:!0},spacing11:{"--container-padding-inline-end":"x1nmgbqg",$$css:!0},spacing12:{"--container-padding-inline-end":"x1wsfsk2",$$css:!0}},D_={spacing0:{"--container-padding-block-start":"x1i3qcxz",$$css:!0},spacing0_5:{"--container-padding-block-start":"xvdf9ev",$$css:!0},spacing1:{"--container-padding-block-start":"xnsckjb",$$css:!0},spacing1_5:{"--container-padding-block-start":"x1kbx601",$$css:!0},spacing2:{"--container-padding-block-start":"xa8b4fq",$$css:!0},spacing3:{"--container-padding-block-start":"x11k4f5r",$$css:!0},spacing4:{"--container-padding-block-start":"xm01sq8",$$css:!0},spacing5:{"--container-padding-block-start":"xp8wdkl",$$css:!0},spacing6:{"--container-padding-block-start":"x1hmud4d",$$css:!0},spacing7:{"--container-padding-block-start":"x1c00sag",$$css:!0},spacing8:{"--container-padding-block-start":"xfv60at",$$css:!0},spacing9:{"--container-padding-block-start":"x14fzdu7",$$css:!0},spacing10:{"--container-padding-block-start":"x17h9kl7",$$css:!0},spacing11:{"--container-padding-block-start":"x1rdjxae",$$css:!0},spacing12:{"--container-padding-block-start":"xecwdl6",$$css:!0}},O_={spacing0:{"--container-padding-block-end":"xkunwnr",$$css:!0},spacing0_5:{"--container-padding-block-end":"x1cao3zv",$$css:!0},spacing1:{"--container-padding-block-end":"x57a7ii",$$css:!0},spacing1_5:{"--container-padding-block-end":"xv53x8y",$$css:!0},spacing2:{"--container-padding-block-end":"x1lsgcmx",$$css:!0},spacing3:{"--container-padding-block-end":"x1q3ppug",$$css:!0},spacing4:{"--container-padding-block-end":"x4hfsld",$$css:!0},spacing5:{"--container-padding-block-end":"xbib2ws",$$css:!0},spacing6:{"--container-padding-block-end":"x1q8d17g",$$css:!0},spacing7:{"--container-padding-block-end":"x1yqogew",$$css:!0},spacing8:{"--container-padding-block-end":"x8lgq76",$$css:!0},spacing9:{"--container-padding-block-end":"x1f7f9rt",$$css:!0},spacing10:{"--container-padding-block-end":"x15vxphk",$$css:!0},spacing11:{"--container-padding-block-end":"x4bg2x9",$$css:!0},spacing12:{"--container-padding-block-end":"x186mjxr",$$css:!0}},I_={spacing0:{"--layout-padding-outer-x":"xswhm3q",$$css:!0},spacing0_5:{"--layout-padding-outer-x":"xihiwg7",$$css:!0},spacing1:{"--layout-padding-outer-x":"xc96xmq",$$css:!0},spacing1_5:{"--layout-padding-outer-x":"x1u93lgd",$$css:!0},spacing2:{"--layout-padding-outer-x":"x15dxnc0",$$css:!0},spacing3:{"--layout-padding-outer-x":"xadgj3j",$$css:!0},spacing4:{"--layout-padding-outer-x":"x1v56qcf",$$css:!0},spacing5:{"--layout-padding-outer-x":"x1nzs0gl",$$css:!0},spacing6:{"--layout-padding-outer-x":"x1c3n52a",$$css:!0},spacing7:{"--layout-padding-outer-x":"x1gfiokx",$$css:!0},spacing8:{"--layout-padding-outer-x":"x1t3kfz",$$css:!0},spacing9:{"--layout-padding-outer-x":"xzr4qsh",$$css:!0},spacing10:{"--layout-padding-outer-x":"x1jdf5a4",$$css:!0},spacing11:{"--layout-padding-outer-x":"x1hct0t0",$$css:!0},spacing12:{"--layout-padding-outer-x":"x11cyqoe",$$css:!0}},__={spacing0:{"--layout-padding-outer-y":"x1mzf5mb",$$css:!0},spacing0_5:{"--layout-padding-outer-y":"x1vj96e0",$$css:!0},spacing1:{"--layout-padding-outer-y":"x1gpfxoh",$$css:!0},spacing1_5:{"--layout-padding-outer-y":"xd3dqby",$$css:!0},spacing2:{"--layout-padding-outer-y":"x10pz7y9",$$css:!0},spacing3:{"--layout-padding-outer-y":"x1p6yq3h",$$css:!0},spacing4:{"--layout-padding-outer-y":"xx738ci",$$css:!0},spacing5:{"--layout-padding-outer-y":"x6yxws5",$$css:!0},spacing6:{"--layout-padding-outer-y":"x180vrwl",$$css:!0},spacing7:{"--layout-padding-outer-y":"x1q6rme1",$$css:!0},spacing8:{"--layout-padding-outer-y":"xid7e43",$$css:!0},spacing9:{"--layout-padding-outer-y":"x1t5kicu",$$css:!0},spacing10:{"--layout-padding-outer-y":"x26l4wa",$$css:!0},spacing11:{"--layout-padding-outer-y":"x10zktp0",$$css:!0},spacing12:{"--layout-padding-outer-y":"x1yz3n6a",$$css:!0}},q_={spacing0:{"--layout-padding-inner-x":"xj1bl4l",$$css:!0},spacing0_5:{"--layout-padding-inner-x":"xlriy2h",$$css:!0},spacing1:{"--layout-padding-inner-x":"x6uuyak",$$css:!0},spacing1_5:{"--layout-padding-inner-x":"xd38f90",$$css:!0},spacing2:{"--layout-padding-inner-x":"xxqksqd",$$css:!0},spacing3:{"--layout-padding-inner-x":"x1fyui2f",$$css:!0},spacing4:{"--layout-padding-inner-x":"x1i2ajwi",$$css:!0},spacing5:{"--layout-padding-inner-x":"x1tac27u",$$css:!0},spacing6:{"--layout-padding-inner-x":"x1ntgf3t",$$css:!0},spacing7:{"--layout-padding-inner-x":"xhjd9tl",$$css:!0},spacing8:{"--layout-padding-inner-x":"xn7c84u",$$css:!0},spacing9:{"--layout-padding-inner-x":"xeqkbsz",$$css:!0},spacing10:{"--layout-padding-inner-x":"x1vf4qco",$$css:!0},spacing11:{"--layout-padding-inner-x":"xsmamsf",$$css:!0},spacing12:{"--layout-padding-inner-x":"x2xk2xj",$$css:!0}},P_={spacing0:{"--layout-padding-inner-y":"xwuefyo",$$css:!0},spacing0_5:{"--layout-padding-inner-y":"x180h0y5",$$css:!0},spacing1:{"--layout-padding-inner-y":"xmpug6m",$$css:!0},spacing1_5:{"--layout-padding-inner-y":"x1g8jpzm",$$css:!0},spacing2:{"--layout-padding-inner-y":"x1lksgje",$$css:!0},spacing3:{"--layout-padding-inner-y":"x4j7gld",$$css:!0},spacing4:{"--layout-padding-inner-y":"x1s3ehtl",$$css:!0},spacing5:{"--layout-padding-inner-y":"x1rj5eim",$$css:!0},spacing6:{"--layout-padding-inner-y":"x1ftgg6u",$$css:!0},spacing7:{"--layout-padding-inner-y":"x1ho74vh",$$css:!0},spacing8:{"--layout-padding-inner-y":"xm2cs6f",$$css:!0},spacing9:{"--layout-padding-inner-y":"x1vsq92b",$$css:!0},spacing10:{"--layout-padding-inner-y":"x18gbwmk",$$css:!0},spacing11:{"--layout-padding-inner-y":"x14zymzj",$$css:!0},spacing12:{"--layout-padding-inner-y":"xzfpkx9",$$css:!0}},B_={containerMaxHeight:e=>[{"--container-max-height":e!=null?"x18nyedi":e,$$css:!0},{"--x---container-max-height":e??void 0}]};function f0({padding:e="spacing4",paddingOuterX:t,paddingOuterY:r,paddingInnerX:s,paddingInnerY:o,useThemeDefault:l,maxHeight:u}){const f=t??e,d=r??e,p=s??e,y=o??e,m=u?B_.containerMaxHeight(u):null;if(l){const k=N_[l];return[Q5.container,k.containerPaddingInlineStart,k.containerPaddingInlineEnd,k.containerPaddingBlockStart,k.containerPaddingBlockEnd,k.layoutPaddingOuterX,k.layoutPaddingOuterY,k.layoutPaddingInnerX,k.layoutPaddingInnerY,m]}return[Q5.container,z_[f],L_[f],D_[d],O_[d],I_[f],__[d],q_[p],P_[y],m]}const H_={scrollable:{kVQacm:"xysyzu8",$$css:!0}};function sx({direction:e="vertical",hAlign:t,vAlign:r,justify:s,align:o,gap:l,padding:u,paddingInline:f,paddingInlineStart:d,paddingInlineEnd:p,paddingBlock:y,paddingBlockStart:m,paddingBlockEnd:k,isScrollable:v,width:w,height:S,maxWidth:E,minHeight:R,wrap:C,as:T="div",xstyle:A,className:N,style:L,children:D,ref:j,...O}){const M=t??(e==="horizontal"?s:o),H=r??(e==="horizontal"?o:s),F=e==="horizontal"?M:H,q=e==="horizontal"?H:M,B=d??f??u,U=p??f??u,_=m??y??u,P=k??y??u,G=de(...E1({direction:e,crossAlign:q,mainAlign:F,gap:l,wrap:C}),B!=null&&mT[B],U!=null&&yT[U],_!=null&&bT[_],P!=null&&Vb[P],v&&H_.scrollable,A),X={...w!=null&&{width:typeof w=="number"?`${w}px`:w},...S!=null&&{height:typeof S=="number"?`${S}px`:S},...E!=null&&{maxWidth:typeof E=="number"?`${E}px`:E},...R!=null&&{minHeight:typeof R=="number"?`${R}px`:R}};return g.createElement(T,{ref:j,...ye(fe("stack",{direction:e,gap:l,wrap:C}),G,N,{...L,...X}),...O},D)}sx.displayName="Stack";function Rt({ref:e,justify:t,align:r,hAlign:s,vAlign:o,...l}){return x.jsx(sx,{...l,direction:"horizontal",hAlign:s??t,vAlign:o??r,ref:e})}Rt.displayName="HStack";function We({ref:e,justify:t,align:r,hAlign:s,vAlign:o,...l}){return x.jsx(sx,{...l,direction:"vertical",hAlign:s??r,vAlign:o??t,ref:e})}We.displayName="VStack";const F_={scrollable:{kVQacm:"xysyzu8",$$css:!0}};function lc({crossAlignSelf:e,size:t,isScrollable:r,as:s="div",xstyle:o,className:l,style:u,children:f,ref:d,...p}){const y=de(...dT({crossAlignSelf:e,size:t}),r&&F_.scrollable,o);return g.createElement(s,{ref:d,...ye(fe("stack-item",{size:t}),y,l,u),...p},f)}lc.displayName="StackItem";const Ty={card:{"--_card-radius":"x2kkz0m",kaIpWk:"x153u1i6",k7Eaqz:"xeuugli",kVQacm:"x7giv3",kGVxlE:"x1p8z4y0",$$css:!0},withBorder:{kMzoRj:"x1litavf",ksu8eU:"x1y0btm7",kVAM5u:"x14i3s5s",kZCmMZ:"xs19ii7",kwRFfy:"x12frdag",kLKAdn:"x1nex4ik",kGO01o:"xbv1mwh",$$css:!0},scrollable:{kVQacm:"xysyzu8",$$css:!0}},U_={default:{kWkggS:"x1de1mus",$$css:!0},transparent:{kWkggS:"xjbqb8w",$$css:!0},muted:{kWkggS:"xwmxj5m",$$css:!0},blue:{kWkggS:"x1o0wnni",$$css:!0},cyan:{kWkggS:"x1rgj867",$$css:!0},gray:{kWkggS:"xspzpui",$$css:!0},green:{kWkggS:"x1sqjeoo",$$css:!0},orange:{kWkggS:"x1e9xt6e",$$css:!0},pink:{kWkggS:"xnpoty2",$$css:!0},purple:{kWkggS:"x16i6n6f",$$css:!0},red:{kWkggS:"x1cibrc5",$$css:!0},teal:{kWkggS:"x1jtji5o",$$css:!0},yellow:{kWkggS:"x1bo7t0x",$$css:!0}},V_={none:{"--_card-elevation":"xw28qpl",$$css:!0},low:{"--_card-elevation":"x1nn8khe",$$css:!0},med:{"--_card-elevation":"x1ovzxg0",$$css:!0},high:{"--_card-elevation":"xnpe7fx",$$css:!0}},G_={sizing:(e,t,r,s)=>[{kzqmXN:e!=null?"x5lhr3w":e,kZKoxP:t!=null?"x16ye13r":t,ks0D6T:r!=null?"xf68679":r,kAzted:s!=null?"x82snj4":s,$$css:!0},{"--x-width":(o=>typeof o=="number"?o+"px":o??void 0)(e),"--x-height":(o=>typeof o=="number"?o+"px":o??void 0)(t),"--x-maxWidth":(o=>typeof o=="number"?o+"px":o??void 0)(r),"--x-minHeight":(o=>typeof o=="number"?o+"px":o??void 0)(s)}]};function Ks({width:e,height:t,maxWidth:r,minHeight:s,children:o,padding:l,variant:u="default",elevation:f="none",xstyle:d,className:p,style:y,ref:m,...k}){const v=t!=null&&t!=="auto",S=l==null?void 0:Ub[l];return x.jsx("div",{ref:m,...ye(fe("card",{variant:u,elevation:f}),de(Ty.card,U_[u],V_[f],v&&Ty.scrollable,G_.sizing(e??null,t??null,r??null,s??null),...f0(S==null?{useThemeDefault:"card"}:{paddingInnerX:S,paddingInnerY:S,paddingOuterX:S,paddingOuterY:S}),u==="default"&&Ty.withBorder,d),p,y),...k,children:o})}Ks.displayName="Card";const K_={section:{kWkggS:"x10xzikg",$$css:!0},transparent:{kWkggS:"xjbqb8w",$$css:!0},muted:{kWkggS:"xwmxj5m",$$css:!0}},J5={outer:{keTefX:"xojxgvx",k71WvV:"x1fcf3bl",keoZOQ:"xkibk3",k1K539:"xlayyun",$$css:!0},inner:{"--container-padding-inline-start":"xrhngw9","--container-padding-inline-end":"xjsfl84","--container-padding-block-start":"x1047aw6","--container-padding-block-end":"xax9j7h",kZKoxP:"x5yr21d",$$css:!0}},ih={top:{kEafiO:"x178xt8z",kPef9Z:"x13fuv20",kLZC3w:"x1pc3f07",$$css:!0},bottom:{kt9PQ7:"xso031l",kfdmCh:"x1q0q8m5",kL6WhQ:"xw8gpjh",$$css:!0},start:{k2ei4v:"xpilrb4",kVhnKS:"x1t7ytsu",kGJrpR:"x1j92z86",$$css:!0},end:{ke9TFa:"x1lun4ml",k8ry5P:"x18b5jzi",kBCPoo:"x1gejf6u",$$css:!0}},W_={sizing:(e,t,r,s)=>[{kzqmXN:e!=null?"x5lhr3w":e,kZKoxP:t!=null?"x16ye13r":t,ks0D6T:r!=null?"xf68679":r,kAzted:s!=null?"x82snj4":s,$$css:!0},{"--x-width":(o=>typeof o=="number"?o+"px":o??void 0)(e),"--x-height":(o=>typeof o=="number"?o+"px":o??void 0)(t),"--x-maxWidth":(o=>typeof o=="number"?o+"px":o??void 0)(r),"--x-minHeight":(o=>typeof o=="number"?o+"px":o??void 0)(s)}]};function KC({variant:e="section",width:t,height:r,maxWidth:s,minHeight:o,children:l,dividers:u,padding:f,paddingInline:d,paddingInlineStart:p,paddingInlineEnd:y,paddingBlock:m,paddingBlockStart:k,paddingBlockEnd:v,xstyle:w,className:S,style:E,ref:R,...C}){const T=f==null,A=f??4,N=Ub[A],L=de(J5.outer,W_.sizing(t??null,r??null,s??null,o??null),w);return x.jsx("div",{ref:R,className:[L.className,S].filter(Boolean).join(" ")||void 0,style:E&&L.style?{...L.style,...E}:E||L.style,...C,children:x.jsx("div",{...ye(fe("section",{variant:e}),de(J5.inner,...f0(T?{useThemeDefault:"section"}:{paddingInnerX:N,paddingInnerY:N,paddingOuterX:N,paddingOuterY:N}),!T&&A!==4&&zi[A],!T&&A!==4&&Ei[A],!T&&A!==4&&Mo[A],!T&&A!==4&&Vs[A],!T&&q9[A],d!=null&&D9[d],d!=null&&Ei[d],m!=null&&O9[m],m!=null&&Mo[m],m!=null&&Vs[m],k!=null&&bT[k],k!=null&&Mo[k],v!=null&&Vb[v],v!=null&&Vs[v],p!=null&&mT[p],p!=null&&I9[p],y!=null&&yT[y],y!=null&&_9[y],K_[e],u?.includes("top")&&ih.top,u?.includes("bottom")&&ih.bottom,u?.includes("start")&&ih.start,u?.includes("end")&&ih.end)),children:l})})}KC.displayName="Section";const lh={footer:{kmuXW:"x2lah0s",$$css:!0},inner:{kB7OPa:"x9f619",ks0D6T:"xjl2t3p",kUOVxO:"xvueqy4",kZCmMZ:"xaku5ci",kwRFfy:"x19eyx77",kLKAdn:"xqty4a",kGO01o:"x1363qu6","--container-padding-inline-start":"xt2a87w","--container-padding-inline-end":"xhq06x6","--container-padding-block-start":"xjmgx01","--container-padding-block-end":"xfsxxt8",$$css:!0},fullBleed:{kZCmMZ:"x1c1uobl",kwRFfy:"xyri2b",kLKAdn:"xexx8yu",kGO01o:"x18d9i69","--container-padding-inline-start":"xrhngw9","--container-padding-inline-end":"xjsfl84","--container-padding-block-start":"x1047aw6","--container-padding-block-end":"xax9j7h",$$css:!0},divider:{kEafiO:"x178xt8z",kPef9Z:"x13fuv20",kLZC3w:"x1pc3f07",$$css:!0}},Y_={sizing:e=>[{kZKoxP:e!=null?"x16ye13r":e,$$css:!0},{"--x-height":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function h0({children:e,hasDivider:t,height:r,label:s,padding:o,role:l,xstyle:u,className:f,style:d,ref:p,...y}){const m=g.use(Up),k=t??m?.defaultHasDividers??!1,v=o===0;return x.jsx("div",{ref:p,role:l,"aria-label":s,"data-divider":k||void 0,...ye(fe("layout-footer"),de(lh.footer,Y_.sizing(r??null),k&&lh.divider,u),f,d),...y,children:x.jsx("div",{...de(lh.inner,v&&lh.fullBleed,o!=null&&zi[o],o!=null&&Ei[o],o!=null&&Mo[o],o!=null&&Vs[o]),children:e})})}h0.displayName="LayoutFooter";const X_=g.lazy(async()=>bd(()=>Promise.resolve().then(()=>JC),void 0).then(e=>({default:e.Tooltip})));function Z_(e){return e==="display-1"||e==="display-2"||e==="display-3"}const Q_={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"};function Oo({level:e,type:t,weight:r,accessibilityLevel:s,color:o="primary",display:l="block",maxLines:u=0,hasTruncateTooltip:f=!0,wordBreak:d,textWrap:p,justify:y="start",hasCapsize:m=!1,hasStrikethrough:k=!1,xstyle:v,className:w,style:S,children:E,ref:R,...C}){const T=Q_[e],A=s&&s!==e?{"aria-level":s}:{},N=d??(u===1?"break-all":"break-word"),L=u>0||m?"block":l,D=t&&Z_(t)?t:void 0,j=BT({maxLines:u}),O=typeof f=="string"?f:"above",M=u>0&&f!==!1&&j.isTruncated,H=g.useRef(null),F=xn(R,j.ref,H),q=u>1?{WebkitLineClamp:u}:void 0;return x.jsxs(x.Fragment,{children:[x.jsx(T,{ref:F,...ye(fe("heading",{level:e,color:o,type:t,weight:r}),de(Kb[HT(o)],D?Wb[D]:UL[e],D&&zT[D],r&&NT[r],u===1?sp.singleLine:u>1?sp.multiLine:LT[L],u>0&&DT[N],p&&OT[p],y!=="start"&&qT[y],m&&IT.enabled,k&&_T.strikethrough,v),w,{...S,...q}),...A,...C,children:E}),M&&x.jsx(g.Suspense,{fallback:null,children:x.jsx(X_,{anchorRef:H,content:x.jsx("span",{...de(PT.content),children:j.fullText}),placement:O})})]})}Oo.displayName="Heading";const eE={settle(){},release(){}};function WC(e){if(typeof window>"u"||typeof document>"u")return eE;const t=document.documentElement,r=t.clientWidth;if(r===0)return eE;const s=t.style.scrollbarGutter,o=e.style.paddingRight,l=e.getBoundingClientRect().width;let u=!1,f=!1,d=!1;return window.innerWidth>r&&(t.style.scrollbarGutter="stable",u=!0),{settle(){if(d)return;d=!0;const p=e.getBoundingClientRect().width-l;if(p<=0)return;const y=Number.parseFloat(window.getComputedStyle(e).paddingRight)||0;e.style.paddingRight=`${y+p}px`,f=!0},release(){f&&(e.style.paddingRight=o,f=!1),u&&(t.style.scrollbarGutter=s,u=!1)}}}const ds={dialog:{kVAEAm:"xixxii4",kogj98:"x1ghz6dp",kmVPX3:"x1717udv",kMzoRj:"xc342km",ksu8eU:"xng3xce",ks0D6T:"x1x1rfll",kskxy:"x7ab17h",kpwlN0:"x10a8y8t",kzqmXN:"xn9wirt",kZKoxP:"xtdtrs8",kWkggS:"xjbqb8w",kVQacm:"x7giv3",kZeWKH:"xish69e",kFalU9:"x1j4r261",kI3sdo:"x1a2a7pz",k1xSpc:"x1s85apg",k1ekBW:"xrgi2yo",kIyJzY:"x80gvsz",kzIqYQ:"xd00j3c",$$css:!0},open:{k1xSpc:"x78zum5",$$css:!0},backdrop:{kGyWv1:"xnixb3f",kba3nw:"x1abwkk1",k5sjJv:"xph5o2a",kND0Po:"x167zut7",k9an0g:"xft5bk6",kb4ib:"x15h3t91",kA5Tbj:"x1viac0w",$$css:!0},backdropOpen:{k5sjJv:"xb3n6bw xxiuuzi",$$css:!0},drawer:{kVAEAm:"x10l6tqk",k87sOh:"x13vifvy",krVfgx:"x1ey2m1c",k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kWkggS:"x10xzikg",kB7OPa:"x9f619",kVQacm:"xb3r6kr",k1ekBW:"x11xpdln",kIyJzY:"x80gvsz",kAMwcw:"xlr8y92",kI3sdo:"x1a2a7pz",k6CgDc:"xzg1mie",$$css:!0},drawerStart:{kLqNvP:"x1o0tod",ke9TFa:"xw8tdv1",k8ry5P:"x18b5jzi",kBCPoo:"x1gejf6u",k3aq6I:"x5i6ehr xttggg",$$css:!0},drawerStartOpen:{k3aq6I:"xbryuvx x6mt36l x14gflnl",$$css:!0},drawerEnd:{kt4wiu:"xtijo5x",k2ei4v:"xgbv0en",kVhnKS:"x1t7ytsu",kGJrpR:"x1j92z86",k3aq6I:"xumwmo6 x1df3fe5",$$css:!0},drawerEndOpen:{k3aq6I:"xbryuvx x1yqmsfc x1lymnkk",$$css:!0},headerText:{keTefX:"x11g1kdw",$$css:!0}},J_={kzqmXN:"xn9wirt",ks0D6T:"xf68679",$$css:!0},eq={width:e=>[J_,{"--x-maxWidth":(t=>typeof t=="number"?t+"px":t??void 0)(`${e}px`)}]},tq=250,nq=.6;function rq(e){const t=e.split(",").map(r=>{const s=r.trim(),o=Number.parseFloat(s);return Number.isFinite(o)?s.endsWith("ms")?o:s.endsWith("s")?o*1e3:null:null}).filter(r=>r!==null);return t.length?Math.min(...t):null}function aq(e){const t=window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:tq,r=rq(window.getComputedStyle(e).transitionDuration);return r===null?t:r<=0?0:Math.min(t,r*nq)}function p0({isOpen:e,onOpenChange:t,children:r,header:s,width:o=320,side:l="auto",label:u,"data-testid":f,xstyle:d,className:p,style:y,onClick:m,ref:k,...v}){const w=Nt(),S=Ii(),E=e??S.isMobileNavOpen,R=g.useId(),C=S.mobileNavId||R,T=g.useMemo(()=>t??(B=>{B?S.openMobileNav():S.closeMobileNav()}),[t,S]),A=g.useRef(null),N=g.useRef(null),L=g.useRef(null),D=g.useCallback(()=>{L.current&&(L.current.release(),L.current=null)},[]),[j,O]=g.useState(l==="auto"?"end":l);g.useEffect(()=>{if(E)if(l==="auto"){const B=document.activeElement;if(B&&B!==document.body){const U=B.getBoundingClientRect(),_=U.left+U.width/2;O(_<window.innerWidth/2?"start":"end")}}else O(l)},[E,l]),g.useEffect(()=>{const B=A.current;if(B)return E?(L.current??=WC(document.documentElement),B.open||B.showModal(),document.documentElement.style.overflow="clip",L.current.settle()):B.open&&(document.documentElement.style.overflow="",D(),N.current=setTimeout(()=>{B.close()},aq(B))),()=>{N.current&&(clearTimeout(N.current),N.current=null),document.documentElement.style.overflow="",D()}},[E,D]),g.useEffect(()=>{const B=A.current;return()=>{B?.open&&B.close()}},[]);const{shouldDismissOnCloseRequest:M}=Xp({isActive:E,onDismiss:()=>T(!1)}),H=g.useCallback(B=>{B.preventDefault(),M()&&T(!1)},[T,M]),F=g.useCallback(B=>{B.target===B.currentTarget&&T(!1)},[T]),q=j==="start";return x.jsx("dialog",{ref:xn(k,A),id:C,...ye(fe("mobile-nav",{side:j}),de(ac.reset,sc.reset,ds.dialog,Qu.reset,E&&ds.open,ds.backdrop,E&&ds.backdropOpen,d),p,y),...v,"data-testid":f,"aria-label":u??(typeof s=="string"?s:w("@astryx.mobileNav.navigation")),onClick:Ir(m,F),onCancel:H,children:x.jsx(Ju,{children:x.jsx(rc,{children:x.jsxs("div",{tabIndex:-1,...de(ds.drawer,eq.width(o),q&&ds.drawerStart,q&&E&&ds.drawerStartOpen,!q&&ds.drawerEnd,!q&&E&&ds.drawerEndOpen),children:[x.jsxs("div",{...{0:{className:"x78zum5 x6s0dn4 x1qughib x1k15mir xf314gf x2lah0s x92x3c3 x1q0q8m5 xw8gpjh"},1:{className:"x78zum5 x6s0dn4 x1k15mir xf314gf x2lah0s x92x3c3 x1q0q8m5 xw8gpjh x13a6bvl"}}[!s<<0],children:[typeof s=="string"?x.jsx(Oo,{level:2,xstyle:ds.headerText,children:s}):s??null,x.jsx(jt,{variant:"ghost",label:w("@astryx.mobileNav.closeNavigation"),icon:x.jsx(ft,{icon:"close",color:"inherit"}),onClick:()=>T(!1),isIconOnly:!0})]}),x.jsx("div",{className:"x98rzlu x1odjw0f x6ikm8r xish69e xge0x1e xf314gf xce4md1",children:r})]})})})})}p0.displayName="MobileNav";const ox=g.createContext({isCollapsed:!1,toggle:()=>{},isCollapsible:!1});ox.displayName="SideNavCollapseContext";function x0(){return g.use(ox)}const Cy={chevronMirror:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",$$css:!0},chevron:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",k1ekBW:"x11xpdln",kIyJzY:"xuedmi6 x12w9bfk",kAMwcw:"xlr8y92",$$css:!0},chevronCollapsed:{k3aq6I:"x19jd1h0",$$css:!0}};function g0({ref:e,collapsible:t,handleRef:r,label:s,size:o,children:l,onClick:u,...f}){const d=Nt(),{isCollapsed:p,toggle:y,isCollapsible:m}=sq(t,r),{isMobile:k}=Ii();return!m||k?null:x.jsx(jt,{ref:e,label:s??d(p?"@astryx.sideNavCollapseButton.expandSidebar":"@astryx.sideNavCollapseButton.collapseSidebar"),variant:"ghost",size:o,...f,onClick:Ir(u,y),icon:l??x.jsx("span",{...de(Cy.chevronMirror,Ka.mirror),children:x.jsx(ft,{icon:"chevronLeft",size:"sm",color:"inherit",xstyle:[Cy.chevron,p&&Cy.chevronCollapsed]})}),isIconOnly:!0})}g0.displayName="SideNavCollapseButton";function sq(e,t){const r=x0(),{isCollapsed:s,onCollapsedChange:o}=e??{},l=g.useCallback(()=>o?.(!s),[s,o]),u=g.useCallback(()=>{t?.current?.getCollapseState()?.toggle()},[t]);if(e!=null)return{isCollapsed:s??!1,toggle:l,isCollapsible:!0};if(t==null)return r;const f=t.current?.getCollapseState()??null;return{isCollapsed:f?.isCollapsed??!1,toggle:u,isCollapsible:f?.isCollapsible??!0}}const oq=50,iq=40,YC="astryx-resizable:";function Al(e,t,r,s){const o=Math.min(r,Math.max(t,e));if(s.length>0){let l=s[0],u=Math.abs(o-l);for(let f=1;f<s.length;f++){const d=Math.abs(o-s[f]);d<u&&(l=s[f],u=d)}return Math.min(r,Math.max(t,l))}return o}function lq(e){if(typeof window>"u")return null;try{const t=localStorage.getItem(YC+e);if(t==null)return null;const r=JSON.parse(t);if(typeof r=="number")return Number.isFinite(r)?r===0?{size:null,isCollapsed:!0}:{size:r,isCollapsed:null}:null;if(typeof r=="object"&&r!=null){const{size:s,isCollapsed:o}=r,l=typeof s=="number"&&Number.isFinite(s)&&s>0;if(l||o===!0)return{size:l?s:null,isCollapsed:o===!0}}}catch{}return null}function cq(e,t){if(!(typeof window>"u"))try{localStorage.setItem(YC+e,JSON.stringify(t))}catch{}}const jy=1200,uq=250,Ry='Use a non-negative number of pixels, an exact "Npx" string, an exact "N%" string from 0% to 100%, pixel(value), or percent(value, {min: pixel(value)}) / percent(value, {max: pixel(value)}).',dq=/^(\d+(?:\.\d+)?)px$/,fq=/^(\d+(?:\.\d+)?)%$/;function hq(e){const t=dq.exec(e);if(t){const s=Number(t[1]);return Number.isFinite(s)?{kind:"px",value:s}:null}const r=fq.exec(e);if(r){const s=Number(r[1]);return Number.isFinite(s)&&s<=100?{kind:"percent",value:s}:null}return null}function H1(e){if(typeof e!="object"||e==null||Array.isArray(e))return null;const t=e;return t.type==="pixel"&&typeof t.value=="number"&&Number.isFinite(t.value)&&t.value>=0?t.value:null}function pq(e){if(Array.isArray(e))return null;const t=e;if(t.type!=="percent"||typeof t.value!="number"||!Number.isFinite(t.value)||t.value<0||t.value>100)return null;const r=t.min!==void 0,s=t.max!==void 0;if(r===s)return null;if(r){const l=H1(t.min);return l==null?null:{kind:"percent",value:t.value,min:l}}const o=H1(t.max);return o==null?null:{kind:"percent",value:t.value,max:o}}function Ay(e){if(typeof e=="number")return Number.isFinite(e)&&e>=0?{kind:"px",value:e}:null;if(typeof e=="string")return hq(e);if(typeof e=="object"&&e!=null){const t=H1(e);return t==null?pq(e):{kind:"px",value:t}}return null}function My(e){return e?.kind==="percent"}function xq(e,t){if(e.kind==="px")return e.value;if(t==null)return null;const r=Math.round(e.value/100*t);return e.min!==void 0?Math.max(r,e.min):e.max!==void 0?Math.min(r,e.max):r}function Pu(e){if(typeof e=="number"&&!Number.isFinite(e))return String(e);try{return JSON.stringify(e)??String(e)}catch{return String(e)}}function Ny(e){if(typeof e!="object"||e==null||Array.isArray(e))return Pu(e);const t=e;return t.type==="pixel"?`{"type":"pixel","value":${Pu(t.value)}}`:Pu(e)}function gq(e){if(typeof e=="object"&&e!=null&&!Array.isArray(e)){const t=e;if(t.type==="pixel")return Ny(e);if(t.type==="percent"){const r=['"type":"percent"',`"value":${Pu(t.value)}`];return t.min!==void 0&&r.push(`"min":${Ny(t.min)}`),t.max!==void 0&&r.push(`"max":${Ny(t.max)}`),`{${r.join(",")}}`}}return Pu(e)}function zy(e,t,r,s,o,l,u){return e===void 0?s:e===1/0&&s===1/0?1/0:t==null?(u.current||(u.current=!0,Ea("useResizable",`${o}: ${gq(e)} is not a size. ${l} Falling back to ${s}.`)),s):xq(t,r)??s}function tE(e,t,r){const s=r?.contentBoxSize?.[0];if(s)return t==="vertical"?s.blockSize:s.inlineSize;const o=typeof window>"u"?null:window.getComputedStyle(e);if(o==null)return null;const l=t==="vertical"?e.clientHeight-parseFloat(o.paddingTop)-parseFloat(o.paddingBottom):e.clientWidth-parseFloat(o.paddingLeft)-parseFloat(o.paddingRight);return Number.isFinite(l)?l:null}function XC(e){const{defaultSize:t,minSize:r,maxSize:s,containerRef:o,direction:l="horizontal",collapsible:u=!1,collapsedSize:f=iq,snaps:d,autoSaveId:p,defaultIsCollapsed:y,isCollapsed:m,onSizeChange:k,onCollapseChange:v}=e,w=g.useRef([]),S=d??w.current,E=r,R=s,C=Ay(t),T=Ay(r),A=Ay(s),N=o!=null,L=p?lq(p):null,D=g.useRef(null),[,j]=g.useState(0),O=My(C),M=My(T)||My(A),H=L?.size==null&&O&&D.current?.isFinal!==!0,F=N&&(M||H),q=!N&&M,B=g.useRef(null),[,U]=g.useState(0),_=g.useRef(null),P=F?B.current:null;qn(()=>{if(!F){B.current=null,_.current=null;return}const Ye=o?.current??null;Ye!==B.current&&(_.current=null,B.current=Ye,U(Le=>Le+1))});const G=g.useCallback(Ye=>!F||P==null||P!==o?.current?()=>{}:Xu(P,Le=>{_.current=tE(P,l,Le),Ye()}),[P,F,l,o]),X=g.useCallback(()=>!F||P==null?(_.current=null,null):(_.current==null&&(_.current=tE(P,l)),_.current),[P,F,l]),Z=g.useSyncExternalStore(G,X,()=>null),Q=g.useCallback(Ye=>N||!q||typeof window>"u"?()=>{}:(window.addEventListener("resize",Ye),()=>window.removeEventListener("resize",Ye)),[N,q]),K=g.useSyncExternalStore(Q,()=>typeof window>"u"?jy:window.innerWidth,()=>jy),ae=F,I=Z!=null&&Z>0,ee=N?I?Z:jy:K,pe=ae?I:!0,ue=g.useRef(null),[ve,xe]=g.useState(0),$e=ue.current??ee,te=g.useRef(!1),he=g.useRef(!1),Re=g.useRef(!1),Ce=g.useRef(!1),Te=zy(E,T,$e,oq,"minSize",Ry,te),Me=zy(R,A,$e,1/0,"maxSize",Ry,he);(D.current==null||!D.current.isFinal)&&(D.current={px:zy(t,C,$e,uq,"defaultSize",Ry,Re),isFinal:pe});const je=D.current.px,[He,at]=g.useState(()=>L?.size!=null?L.size:pe?Al(je,Te,Me,S):null);N&&!M&&pe&&H&&He!=null&&j(Ye=>Ye+1),pe&&He==null&&at(Al(je,Te,Me,S));const[pt,et]=g.useState({min:Te,max:Me});pe&&ue.current==null&&(pt.min!==Te||pt.max!==Me)&&(et({min:Te,max:Me}),at(Ye=>Ye==null?null:Al(Ye,Te,Me,S)));const Ve=Al(He??je,Te,Me,S),[yt,Pe]=g.useState(()=>L?.isCollapsed??y??!1),rt=m!==void 0,lt=u&&(rt?m:yt),st=g.useRef(Ve),ct=g.useRef(lt);ct.current=lt;const we=g.useCallback(Ye=>{rt||(ct.current=Ye,Pe(Ye))},[rt]);g.useEffect(()=>{Te>Me&&!Ce.current&&(Ce.current=!0,Ea())},[Te,Me]),g.useEffect(()=>{p&&pe&&cq(p,{size:Ve,isCollapsed:lt})},[Ve,lt,p,pe]);const Ge=g.useCallback(()=>{!u||ct.current||(we(!0),v?.(!0),k?.(0))},[u,we,v,k]),Pt=g.useCallback(()=>{const Ye=ct.current;we(!1),Ye&&v?.(!1),k?.(Ve)},[we,Ve,v,k]),bn=g.useCallback(Ye=>{if(!Number.isFinite(Ye)||Ye<0){Ea();return}const Le=Al(Ye,Te,Me,S),Jt=ct.current;at(Le),we(!1),Jt&&v?.(!1),k?.(Le)},[Te,Me,S,we,v,k]),gn=g.useCallback(()=>{ue.current=ee,st.current=ct.current?0:Ve},[Ve,ee]),An=g.useCallback(Ye=>{const Le=st.current+Ye;if(u&&Le<f){ct.current||(we(!0),v?.(!0),k?.(0));return}ct.current&&Le>=f&&(we(!1),v?.(!1));const Jt=Al(Le,Te,Me,S);at(Jt),k?.(Jt)},[u,f,we,Te,Me,S,k,v]),Vt=g.useCallback(()=>{ue.current!=null&&(ue.current=null,xe(Ye=>Ye+1))},[]),Yn=g.useCallback(()=>{Vt()},[Vt]);return{size:lt?0:Ve,isCollapsed:lt,collapse:Ge,expand:Pt,resize:bn,props:{_size:lt?0:Ve,_isCollapsed:lt,_onResizeStart:gn,_onResizeMove:An,_onResizeEnd:Yn,_onResizeCancel:Vt,_minSizePx:Te,_maxSizePx:Me,_snaps:S,_collapsedSize:f,_collapsible:u,_direction:l,_isResizableProps:!0}}}function mq(e){const{regions:t,autoSaveId:r,containerRef:s,direction:o}=e,l=Object.entries(t),u=l.map(([d,p])=>XC({...p,containerRef:s,direction:o,autoSaveId:r?`${r}:${d}`:void 0})),f={};return l.forEach(([d],p)=>{f[d]=u[p]}),f}function yq(e){return"regions"in e?mq(e):XC(e)}const bq=10,kq=50;function vq(e,t,r){if(e!=="auto")return e;const s=t?"end":"start";return r?s==="start"?"end":"start":s}function wq(e){return e==="center"?null:e==="start"?-1:1}function Sq(e){document.body.style.cursor=e?"col-resize":"row-resize",document.body.style.userSelect="none"}function nE(){document.body.style.cursor="",document.body.style.userSelect=""}const ln={handle:{kVAEAm:"x1n2onr6",kmuXW:"x2lah0s",k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kWkggS:"x1m4xfpy",k1ekBW:"x15406qy",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",$$css:!0},overlay:{kVAEAm:"x10l6tqk",kY2c9j:"xhtitgo",kWkggS:"xjbqb8w",$$css:!0},overlayHorizontal:{kt4wiu:"xtijo5x",k87sOh:"x13vifvy",krVfgx:"x1ey2m1c",kzqmXN:"xkhob8h",$$css:!0},overlayVertical:{krVfgx:"x1ey2m1c",kLqNvP:"x1o0tod",kt4wiu:"xtijo5x",kZKoxP:"x5kfih4",$$css:!0},horizontal:{kzqmXN:"x1i1rx1s",kZKoxP:"x5yr21d",kkrTdU:"xicojor x16khyan",$$css:!0},vertical:{kZKoxP:"xjm9jq1",kzqmXN:"xh8yej3",kkrTdU:"xyozgr7 x16khyan",$$css:!0},noDividerHorizontal:{kWkggS:"xjbqb8w",kzqmXN:"xnalus7",$$css:!0},noDividerVertical:{kWkggS:"xjbqb8w",kZKoxP:"xqtp20y",$$css:!0},handleHover:{kWkggS:"x1m4xfpy",$$css:!0},handleActive:{kWkggS:"x7njt3n",$$css:!0},disabled:{kkrTdU:"xt0e3qv",kfzvcC:"x47corl",$$css:!0},hitArea:{kVAEAm:"x10l6tqk",kY2c9j:"x1vjfegm",kFalU9:"x5ve5x3",kfSwDN:"x87ps6o",$$css:!0},hitAreaHorizontal:{kzqmXN:"x12xnipv",k87sOh:"x13vifvy",krVfgx:"x1ey2m1c",kkrTdU:"xicojor x16khyan",$$css:!0},hitAreaVertical:{kZKoxP:"x6b6gus",kLqNvP:"x1o0tod",kt4wiu:"xtijo5x",kkrTdU:"xyozgr7 x16khyan",$$css:!0},hitAreaCenteredY:{k87sOh:"xwa60dl",k3aq6I:"x1cb1t30",$$css:!0},pill:{kVAEAm:"x10l6tqk",kY2c9j:"xhtitgo",kfzvcC:"x47corl",kaIpWk:"xjspbzw",kWkggS:"x1m4xfpy",k1ekBW:"x1wbls7o",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",k87sOh:"xwa60dl",$$css:!0},pillHorizontal:{kzqmXN:"x1g8rjiy",kZKoxP:"x18to7ep",$$css:!0},pillVertical:{kzqmXN:"xgc8j7m",kZKoxP:"xuoj239",$$css:!0},pillHidden:{kSiTet:"xg01cxk",$$css:!0},pillVisible:{kSiTet:"x1hc1fzr",$$css:!0},pillHover:{kSiTet:"x1hc1fzr",kWkggS:"x1m4xfpy",$$css:!0},pillActive:{kSiTet:"x1hc1fzr",kWkggS:"x7njt3n",$$css:!0}},Eq={kLqNvP:"x1o0tod",k3aq6I:"x11wx31z x75qhwu",$$css:!0},$q={k87sOh:"x13vifvy",k3aq6I:"xsqj5wx",$$css:!0},Tq={kLqNvP:"x1o0tod",k3aq6I:"xsqj5wx",$$css:!0},Cq={k87sOh:"x13vifvy",k3aq6I:"xsqj5wx",$$css:!0},ch={hitAreaOffsetX:e=>[Eq,{"--x-qthpiu":`translateX(calc(${e} * (3px + ${Wn["--spacing-1"]}) - 6.5px))`!=null?`translateX(calc(${e} * (3px + ${Wn["--spacing-1"]}) - 6.5px))`:void 0,"--x-sj6hyi":`translateX(calc(${e} * (3px + ${Wn["--spacing-1"]}) + 6.5px))`!=null?`translateX(calc(${e} * (3px + ${Wn["--spacing-1"]}) + 6.5px))`:void 0}],hitAreaOffsetY:e=>[$q,{"--x-transform":`translateY(calc(${e} * (3px + ${Wn["--spacing-1"]}) - 6.5px))`!=null?`translateY(calc(${e} * (3px + ${Wn["--spacing-1"]}) - 6.5px))`:void 0}],pillOffsetX:e=>[Tq,{"--x-transform":`translate(calc(${e} * (100% + ${Wn["--spacing-1"]})), -50%)`!=null?`translate(calc(${e} * (100% + ${Wn["--spacing-1"]})), -50%)`:void 0}],pillOffsetY:e=>[Cq,{"--x-transform":`translate(-50%, calc(${e} * (100% + ${Wn["--spacing-1"]})))`!=null?`translate(-50%, calc(${e} * (100% + ${Wn["--spacing-1"]})))`:void 0}]};function ZC({direction:e="horizontal",position:t="inline",isReversed:r=!1,isDisabled:s=!1,hasDivider:o=!1,isAlwaysVisible:l=!0,pillPlacement:u="auto",label:f,resizable:d,children:p,xstyle:y,className:m,ref:k,...v}){const w=Nt(),S=f??w("@astryx.resizable.handle.label"),E=g.useRef(null),R=g.useRef(null),[C,T]=g.useState(!1),[A,N]=g.useState(!1),[L,D]=g.useState(!1),j=e==="horizontal",O=t==="overlay",M=r?-1:1,H=vq(u,r,d?._isCollapsed??!1),F=wq(H),q=g.useCallback(()=>{const xe=E.current;return xe&&getComputedStyle(xe).direction==="rtl"?-1:1},[]),B=A||L,U=g.useRef(!1);g.useEffect(()=>{const xe=d?._direction;xe!=null&&xe!==e&&!U.current&&(U.current=!0,Ea())},[e,d]);const _=g.useCallback(()=>{R.current=null,T(!1),nE()},[]),P=g.useCallback(xe=>{s||!d||R.current||(xe.preventDefault(),xe.stopPropagation(),xe.currentTarget.setPointerCapture?.(xe.pointerId),R.current={pointerId:xe.pointerId,startPos:j?xe.clientX:xe.clientY,rtl:j?q():1},T(!0),d._onResizeStart(),Sq(j))},[s,d,j,q]),G=g.useCallback(xe=>{const $e=R.current;if(!$e||$e.pointerId!==xe.pointerId||!d)return;const te=j?xe.clientX:xe.clientY;d._onResizeMove((te-$e.startPos)*$e.rtl*M)},[d,j,M]),X=g.useCallback(xe=>{R.current?.pointerId===xe.pointerId&&(_(),d?._onResizeEnd())},[_,d]),Z=g.useCallback(xe=>{R.current?.pointerId===xe.pointerId&&(_(),d?._onResizeCancel?.())},[_,d]),Q=g.useCallback(xe=>{if(s||!d)return;const $e=xe.shiftKey?kq:bq,te=j?q():1;switch(xe.key){case"ArrowRight":case"ArrowDown":{xe.preventDefault(),d._onResizeStart(),d._onResizeMove($e*(j?te:1)*M),d._onResizeEnd();break}case"ArrowLeft":case"ArrowUp":{xe.preventDefault(),d._onResizeStart(),d._onResizeMove(-$e*(j?te:1)*M),d._onResizeEnd();break}case"Home":{xe.preventDefault(),d._onResizeStart(),d._onResizeMove(d._minSizePx-d._size),d._onResizeEnd();break}case"End":{xe.preventDefault(),d._maxSizePx!==1/0&&(d._onResizeStart(),d._onResizeMove(d._maxSizePx-d._size),d._onResizeEnd());break}case"Enter":{xe.preventDefault(),d._collapsible&&(d._onResizeStart(),d._onResizeMove(d._isCollapsed?d._minSizePx:-d._size),d._onResizeEnd());break}}},[s,d,j,q,M]),K=g.useCallback(()=>{s||!d||!d._collapsible||(d._onResizeStart(),d._onResizeMove(d._isCollapsed?d._minSizePx:-d._size),d._onResizeEnd())},[s,d]),ae=g.useRef(void 0);ae.current=d?._onResizeCancel,g.useEffect(()=>()=>{R.current&&(R.current=null,nE(),ae.current?.())},[]);const I=d?._isCollapsed??!1,ee=d?I?Math.max(d._size,d._minSizePx):d._size:void 0,pe=d?d._minSizePx:void 0,ue=d&&d._maxSizePx!==1/0?d._maxSizePx:void 0,ve=d&&I?w("@astryx.resizable.collapsed"):void 0;return x.jsxs("div",{ref:xn(k,E),role:"separator","aria-orientation":j?"vertical":"horizontal","aria-valuenow":ee,"aria-valuemin":pe,"aria-valuemax":ue,"aria-valuetext":ve,"aria-label":S,"aria-disabled":s||void 0,tabIndex:s?-1:0,onDoubleClick:K,onFocus:()=>D(!0),onBlur:()=>D(!1),"data-resizing":C||void 0,...ye(fe("resize-handle"),pn.focusVisible(ln.handle,O&&ln.overlay,O&&(j?ln.overlayHorizontal:ln.overlayVertical),!O&&(j?ln.horizontal:ln.vertical),!O&&!o&&(j?ln.noDividerHorizontal:ln.noDividerVertical),!O&&o&&B&&!C&&ln.handleHover,!O&&o&&C&&ln.handleActive,s&&ln.disabled,y),m),...v,onKeyDown:xe=>{v.onKeyDown?.(xe),Q(xe)},children:[x.jsx("div",{...de(ln.hitArea,j?ln.hitAreaHorizontal:ln.hitAreaVertical,F==null?j?Ka.centerInline("0px"):ln.hitAreaCenteredY:j?ch.hitAreaOffsetX(F):ch.hitAreaOffsetY(F),s&&ln.disabled),onPointerDown:P,onPointerMove:G,onPointerUp:X,onPointerCancel:Z,onLostPointerCapture:Z,onPointerEnter:()=>N(!0),onPointerLeave:()=>{C||N(!1)}}),p??x.jsx("div",{...ye(fe("resize-handle-pill"),de(ln.pill,j?ln.pillHorizontal:ln.pillVertical,H==="center"?Ka.centerInline("-50%"):j?ch.pillOffsetX(H==="start"?-1:1):ch.pillOffsetY(H==="start"?-1:1),l?ln.pillVisible:ln.pillHidden,B&&!C&&ln.pillHover,C&&ln.pillActive))})]})}ZC.displayName="ResizeHandle";function Ci(e,t,r=!0){const s=g.useRef(!1);g.useEffect(()=>{r&&!s.current&&(s.current=!0,Ea())},[e,t,r])}const jq=160;function Rq(e,t){const r=typeof e=="object"?e:{},s=typeof t=="object"?t:{},o=s.defaultIsCollapsed!==void 0||s.isCollapsed!==void 0||s.onCollapseChange!==void 0;return{isCollapsible:!!e||o,defaultIsCollapsed:(o?s.defaultIsCollapsed:r.defaultIsCollapsed)??!1,isCollapsed:o?s.isCollapsed:r.isCollapsed,onCollapsedChange:o?s.onCollapseChange:r.onCollapsedChange,conflict:Aq(r,s)}}function Aq(e,t){const r=[e.defaultIsCollapsed!==void 0&&"defaultIsCollapsed",e.isCollapsed!==void 0&&"isCollapsed",e.onCollapsedChange!==void 0&&"onCollapsedChange"].filter(o=>o!==!1),s=[t.defaultIsCollapsed!==void 0&&"defaultIsCollapsed",t.isCollapsed!==void 0&&"isCollapsed",t.onCollapseChange!==void 0&&"onCollapseChange"].filter(o=>o!==!1);return r.length===0||s.length===0?null:`${r.map(o=>`collapsible.${o}`).join(", ")} and ${s.map(o=>`resizable.${o}`).join(", ")} address the same collapse state. resizable wins; the collapsible ${r.length===1?"value is":"values are"} ignored.`}const uh={root:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kZKoxP:"x5yr21d",kzqmXN:"x1hfn5x7",kWkggS:"xgcd1z6",kB7OPa:"x9f619",kVQacm:"xb3r6kr",$$css:!0},rootCollapsed:{kzqmXN:"xhgvbfk",$$css:!0},resizableHandle:{kInvED:"x1wfwxd8 x1l5jwag",$$css:!0},topbar:{k1xSpc:"x78zum5",kXwgrk:"x1q0g3np",kGNEyG:"x6s0dn4",kjj79g:"x1qughib",kZKoxP:"xsdox4t",kzqmXN:"xh8yej3",kWkggS:"xgcd1z6",kB7OPa:"x9f619",kVQacm:"xb3r6kr",$$css:!0}},dh="sm";function hp({header:e,topContent:t,children:r,footer:s,footerIcons:o,collapsible:l=!1,resizable:u=!1,xstyle:f,className:d,style:p,"data-testid":y,ref:m,handleRef:k,...v}){const w=Nt(),E=(typeof l=="object"?l:{}).hasButton??!0,R=typeof u=="object"?u:{},C=!!u,T=Rq(l,u),{isCollapsible:A,onCollapsedChange:N}=T;Ci("SideNav",T.conflict??"",T.conflict!=null);const L=g.useRef(null),D=xn(m,L),j=g.useRef({isCollapsed:!1,toggle:()=>{},isCollapsible:A}),O=yq({defaultSize:R.defaultWidth??260,minSize:R.minWidth??180,maxSize:R.maxWidth??480,collapsible:A,collapsedSize:jq,autoSaveId:R.autoSaveId,defaultIsCollapsed:T.defaultIsCollapsed,isCollapsed:T.isCollapsed,onSizeChange:R.onWidthChange,onCollapseChange:N}),M=O.isCollapsed,H=g.useCallback(()=>{const K=!M;j.current={...j.current,isCollapsed:K},K?O.collapse():O.expand()},[M,O]),F=C&&!M;j.current={isCollapsed:M,toggle:H,isCollapsible:A};const q={isCollapsed:M,toggle:H,isCollapsible:A};g.useImperativeHandle(k,()=>({getCollapseState:()=>j.current}),[]);const B=GC();if(B==="topbar")return x.jsxs("div",{"data-testid":y,...ye(fe("side-nav",{mode:"topbar"}),de(uh.topbar,f),d,p),children:[e,x.jsx("div",{className:"x78zum5 x6s0dn4 xzye2dw xvc5jky",children:x.jsx(Bl,{value:dh,children:o})})]});const U=!!(s||o);if(B==="drawer")return x.jsxs(p0,{header:e,"data-testid":y,xstyle:f,className:d,style:p,...v,children:[t,r,U&&x.jsxs("div",{className:"x78zum5 xdt5ytf xr1yuqi x1txdalj x1xye8es",children:[s,o&&x.jsx("div",{className:"x78zum5 x6s0dn4 xzye2dw",children:x.jsx(Bl,{value:dh,children:o})})]})]});if(B==="drawer-content")return x.jsxs(x.Fragment,{children:[t,r,U&&x.jsxs("div",{className:"x78zum5 xdt5ytf xr1yuqi x1txdalj x1xye8es",children:[s,o&&x.jsx("div",{className:"x78zum5 x6s0dn4 xzye2dw",children:x.jsx(Bl,{value:dh,children:o})})]})]});const _=!!(e||t),P=!!(s||o),G=A&&E,X=C?{...p??{},width:M?void 0:O.size}:p,Z=x.jsxs("nav",{ref:D,role:"navigation","aria-label":w("@astryx.sideNav.label"),"data-testid":y,...ye(fe("side-nav"),de(uh.root,M&&uh.rootCollapsed,f),d,X),...v,children:[_&&x.jsxs("div",{...{0:{className:"x78zum5 xdt5ytf x2lah0s x7wzq59 x13vifvy x1vjfegm xgcd1z6 x1xye8es x1wesfrj xf314gf x1txdalj"},1:{className:"x78zum5 xdt5ytf x2lah0s x7wzq59 x13vifvy x1vjfegm xgcd1z6 x1xye8es x1wesfrj xf314gf x1txdalj x6s0dn4"}}[!!M<<0],children:[e,t&&x.jsx("div",{children:t})]}),x.jsx("div",{...{0:{className:"x98rzlu x1odjw0f x6ikm8r xf314gf x1xye8es x1wesfrj"},4:{className:"x98rzlu x1odjw0f x6ikm8r xf314gf x78zum5 xdt5ytf x6s0dn4 x1xye8es x1wesfrj"},2:{className:"x98rzlu x1odjw0f x6ikm8r xf314gf xfsso4q x1wesfrj"},6:{className:"x98rzlu x1odjw0f x6ikm8r xf314gf x78zum5 xdt5ytf x6s0dn4 xfsso4q x1wesfrj"},1:{className:"x98rzlu x1odjw0f x6ikm8r xf314gf x1xye8es xy143xn"},5:{className:"x98rzlu x1odjw0f x6ikm8r xf314gf x78zum5 xdt5ytf x6s0dn4 x1xye8es xy143xn"},3:{className:"x98rzlu x1odjw0f x6ikm8r xf314gf xfsso4q xy143xn"},7:{className:"x98rzlu x1odjw0f x6ikm8r xf314gf x78zum5 xdt5ytf x6s0dn4 xfsso4q xy143xn"}}[!!M<<2|!!_<<1|!!P<<0],children:r}),(P||G)&&x.jsxs("div",{...{0:{className:"x78zum5 xdt5ytf x2lah0s xr1yuqi x7wzq59 x1ey2m1c xgcd1z6 x1txdalj xf314gf xfsso4q x1wesfrj"},1:{className:"x78zum5 xdt5ytf x2lah0s xr1yuqi x7wzq59 x1ey2m1c xgcd1z6 x1txdalj xf314gf x1wesfrj xexx8yu x6s0dn4"}}[!!M<<0],children:[s,x.jsx("div",{...{0:{className:"x78zum5 x6s0dn4 xzye2dw"},1:{className:"x78zum5 x6s0dn4 xzye2dw x3ieub6"}}[!!M<<0],children:x.jsxs(Bl,{value:dh,children:[G&&x.jsx(g0,{}),o]})})]})]}),Q=F?x.jsxs("div",{className:"x1n2onr6 x78zum5 x2lah0s x5yr21d x7giv3",children:[Z,x.jsx(ZC,{"data-testid":"astryx-sidenav-resize-handle",direction:"horizontal",position:"overlay",pillPlacement:"end",isAlwaysVisible:!1,xstyle:uh.resizableHandle,resizable:O.props,label:w("@astryx.sideNav.resizeSidebar")})]}):Z;return A?x.jsx(ox,{value:q,children:Q}):Q}hp.displayName="SideNav";const pp='button:not([disabled]), a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), [contenteditable]:not([contenteditable="false"]), audio[controls], video[controls], iframe, details > summary:first-child';function Mq(e){g.useEffect(()=>{if(e)return()=>{}},[e])}function Nq(e){if(e.hasAttribute("inert")||e.closest("[inert]")||e.hidden||e.closest("[hidden]")||e.closest('[aria-hidden="true"]'))return!1;if(typeof window<"u"&&window.getComputedStyle){const t=window.getComputedStyle(e);if(t.visibility==="hidden"||t.display==="none")return!1}return!0}function m0(e){return Array.from(e.querySelectorAll(pp)).filter(Nq)}function y0(e){try{e.focus()}catch{}return document.activeElement===e}function rE(e){const t=m0(e);for(const r of t)if(y0(r))return!0;return!1}function zq(e){const t=m0(e);for(let r=t.length-1;r>=0;r--)if(y0(t[r]))return!0;return!1}function Lq(e){const{isActive:t,onEscape:r}=e,s=g.useRef(null),o=g.useRef(null),l=g.useRef(!1),u=t&&r!=null;Xp({isActive:u,onDismiss:()=>{r?.()},getContainer:()=>s.current}),Mq(u);const f=g.useCallback(()=>{s.current&&rE(s.current)},[]);return g.useEffect(()=>{if(!t)return;const d=document.activeElement,p=s.current;let y=p!=null&&p.contains(document.activeElement);const m=k=>{const v=k.target;v!=null&&s.current?.contains(v)&&(y=!0)};return document.addEventListener("focusin",m,!0),()=>{if(document.removeEventListener("focusin",m,!0),!y)return;const k=document.activeElement;(k==null||k===document.body||k===document.documentElement||p!=null&&p.contains(k))&&d!=null&&d.isConnected&&typeof d.focus=="function"&&d.focus()}},[t]),g.useEffect(()=>{if(!t)return;const d=p=>{const y=s.current;if(!y)return;const m=p.target;if(y.contains(m))o.current=m;else if(l.current){const k=rE(y);k&&o.current===document.activeElement?zq(y):!k&&o.current instanceof HTMLElement&&y.contains(o.current)&&y0(o.current),o.current=document.activeElement}l.current=!1};return document.addEventListener("focus",d,!0),()=>{document.removeEventListener("focus",d,!0)}},[t]),g.useEffect(()=>{if(!t)return;const d=p=>{const y=s.current;if(y&&p.key==="Tab"){l.current=!0;const m=m0(y);if(m.length===0){const w=document.activeElement;if(!(w instanceof HTMLElement)||!y.contains(w))return;p.preventDefault(),o.current=w,l.current=!1;return}const k=m[0],v=m[m.length-1];if(document.activeElement===y){p.preventDefault(),p.shiftKey?v.focus():k.focus();return}p.shiftKey?document.activeElement===k&&(p.preventDefault(),v.focus()):document.activeElement===v&&(p.preventDefault(),k.focus())}};return document.addEventListener("keydown",d),()=>{document.removeEventListener("keydown",d)}},[t,r]),{containerRef:s,focusFirst:f}}const Dq="[data-astryx-popover-fallback-close]";function QC(e){try{e.focus()}catch{}return document.activeElement===e}function Oq(e){const t=Array.from(e.querySelectorAll(pp)).filter(r=>r.closest(Dq)==null);for(const r of t)if(QC(r))return!0;return!1}const Ly={surface:{kWkggS:"x1prclbq","--_popover-radius":"xiki222",kaIpWk:"x11m9jtl",kGVxlE:"x1i5ehqx",$$css:!0},contentWrapper:{kVAEAm:"x1n2onr6",$$css:!0},closeButtonWrapper:{kVAEAm:"x10l6tqk",krVfgx:"x1ey2m1c",kY2c9j:"x1vjfegm",kzqmXN:"x1i1rx1s x10okhzq",kZKoxP:"xjm9jq1 x132qfvm",kVQacm:"xb3r6kr x1dordxg",kz4h6p:"x1hyvwdk x10wafsz",kfzvcC:"x47corl xbt4iw",kLKAdn:"xexx8yu x1kw28su",$$css:!0}};function Iq(e={}){const{onShow:t,onHide:r,xstyle:s,className:o,style:l,hasLightDismiss:u=!0,hasEscapeDismiss:f=!0,hasAutoFocus:d=!0,hasSurface:p=!0,padding:y,surfaceTarget:m,hasCloseButton:k=!0,closeButtonLabel:v,dialogLabel:w,role:S="dialog",isModal:E=!0}=e,R=Nt(),C=v??R("@astryx.popover.close"),T=g.useRef(null),A=g.useRef(!1),N=md({mode:"context",lightDismiss:u,onShow:t,onHide:r}),{containerRef:L,focusFirst:D}=Lq({isActive:N.isOpen,onEscape:f||u?N.hide:void 0}),j=g.useCallback(()=>{const B=L.current;if(B&&!Oq(B)){if(S==="dialog"){QC(B);return}D()}},[L,D,S]);g.useEffect(()=>{N.isOpen&&d&&!A.current&&requestAnimationFrame(j),N.isOpen||(A.current=!1)},[N.isOpen,d,j]);const O=g.useCallback(B=>{T.current=B,N.ref(B)},[N]),M=g.useCallback(B=>{A.current=B?.skipAutoFocus??!1,N.show()},[N]),H=g.useCallback(()=>{N.isOpen?N.hide():M()},[N,M]),F={"aria-haspopup":S==="dialog"?"dialog":"true","aria-expanded":N.isOpen,"aria-controls":N.id};Ci("usePopover",'role="dialog" without a `dialogLabel` renders an unnamed dialog. Pass `dialogLabel`, or use `role: "none"` for listbox/menu popups whose content already carries its own role.',S==="dialog"&&!w);const q=g.useCallback((B,U)=>{const _=fe("popover"),P=m!=null&&m!=="popover"?`${_.className} ${hT(m)}`:_.className;return N.render(x.jsx(Ju,{children:x.jsxs("div",{ref:L,role:S==="dialog"?"dialog":void 0,"aria-modal":S==="dialog"&&E?!0:void 0,"aria-label":S==="dialog"?w:void 0,tabIndex:S==="dialog"?-1:void 0,...ye({..._,className:P},pn.focusVisible(Ly.contentWrapper,p&&Ly.surface,y!=null&&zi[y],s),o,l),children:[B,k&&x.jsx("div",{"data-astryx-popover-fallback-close":"",...de(Ly.closeButtonWrapper,Ka.centerInline("100%")),children:x.jsx(jt,{variant:"secondary",label:C,onClick:N.hide})})]})}),{...U,xstyle:U?.xstyle})},[N,k,p,y,m,o,l,C,L,w,S,E,s]);return{triggerRef:O,contentRef:L,anchorId:N.anchorId,show:M,hide:N.hide,toggle:H,isOpen:N.isOpen,id:N.id,render:q,triggerProps:F}}function b0(e={}){return Iq(e)}function _q(e){return typeof e=="string"||typeof e=="number"}function aE(...e){const t=e.filter(Boolean);return t.length>0?t.join(" "):void 0}function _i({children:e,anchorRef:t,content:r,placement:s="above",alignment:o="center",delay:l=200,hideDelay:u=0,focusTrigger:f="auto",touchTrigger:d="auto",isEnabled:p=!0,onOpenChange:y,hasHoverIndication:m="auto",isOpen:k,isDefaultOpen:v}){const w=g.useRef(null),S=e!=null?_q(e):!1,E=m===!0||m==="auto"&&S,R=g.useCallback(()=>{y?.(!0)},[y]),C=g.useCallback(()=>{y?.(!1)},[y]),T=Wa({placement:s,alignment:o,delay:l,hideDelay:u,focusTrigger:f,touchTrigger:d,isEnabled:p,isOpen:k,isDefaultOpen:v,onShow:R,onHide:C});return qn(()=>{if(!t)return;const A=t.current;if(!A)return;T.ref(A);const N=A.getAttribute("aria-describedby");return A.setAttribute("aria-describedby",aE(N,T.describedBy)??""),()=>{T.ref(null),N?A.setAttribute("aria-describedby",N):A.removeAttribute("aria-describedby")}},[t,T.ref,T.describedBy]),qn(()=>{if(t||S)return;const A=w.current;if(!A)return;const N=A.firstElementChild;if(!N)return;T.ref(N);const L=N.getAttribute("aria-describedby");return N.setAttribute("aria-describedby",aE(L,T.describedBy)??""),()=>{T.ref(null),L?N.setAttribute("aria-describedby",L):N.removeAttribute("aria-describedby")}},[t,S,T.ref,T.describedBy]),t&&e==null?x.jsx(x.Fragment,{children:T.renderTooltip(r)}):S?x.jsxs(x.Fragment,{children:[x.jsx("span",{ref:T.ref,tabIndex:0,"aria-describedby":T.describedBy,...{0:{className:"xt0psk2"},1:{className:"xt0psk2 xujl8zx xev0dqp xycaml9 xrys4gj"}}[!!E<<0],children:e}),T.renderTooltip(r)]}):x.jsxs(x.Fragment,{children:[x.jsx("div",{ref:w,className:"xjp7ctv",children:e}),T.renderTooltip(r)]})}_i.displayName="Tooltip";const JC=Object.freeze(Object.defineProperty({__proto__:null,Tooltip:_i},Symbol.toStringTag,{value:"Module"})),qq=["noopener","noreferrer"];function ej(e,t){if(e!=="_blank")return{target:e,rel:t};const r=t?.split(/\s+/).filter(Boolean)??[];for(const s of qq)r.includes(s)||r.push(s);return{target:e,rel:r.join(" ")}}const k0=g.createContext(null);k0.displayName="InteractiveRoleContext";function Pq(){return g.use(k0)}function tj({href:e,onClick:t,isDisabled:r=!1}){const s=Pq();return e!=null&&!r?"link":t!=null?"button":s??"inert"}const Jr={base:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kOIVth:"x1lsbc85",kMv6JI:"xjb2p0i",kGuDYH:"x1qlqyl8",kLWn49:"x15bjb6t",k63SB2:"x1pd3egz",kybGjl:"x1hl2dhg x13nosk6",kkrTdU:"x1ypdohk x16khyan",k1ekBW:"x1mpt4pi",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",$$css:!0},buttonReset:{kWkggS:"xjbqb8w",ksu8eU:"xng3xce",kmVPX3:"x1717udv",kfzvcC:"x67bb7w",kVAEAm:"x1n2onr6",$$css:!0},hasUnderline:{kybGjl:"x1bvjpef",$$css:!0},disabled:{kkrTdU:"xt0e3qv",kSiTet:"xbyyjgo",kfzvcC:"x47corl",$$css:!0},standalone:{kGuDYH:"xjm74w1",kLWn49:"xw6l6zx",$$css:!0}},Dy={primary:{kMwMTN:"x1tgivj0 xcunlro",$$css:!0},secondary:{kMwMTN:"xv1l7n4 x7jm8ul",$$css:!0},disabled:{kMwMTN:"xnbbluu",$$css:!0},placeholder:{kMwMTN:"xv1l7n4",$$css:!0},accent:{kMwMTN:"xjse4m1 x1rfoswn",$$css:!0},inherit:{kMwMTN:"x1heor9g",$$css:!0}};function Bq(e){e.preventDefault()}function ix({as:e,label:t,href:r,hasUnderline:s=!1,isDisabled:o=!1,isExternalLink:l=!1,newTabLabel:u,target:f,onClick:d,tooltip:p,isStandalone:y=!1,type:m="body",size:k,weight:v,color:w="accent",display:S="inline",maxLines:E=0,children:R,rel:C,xstyle:T,className:A,style:N,ref:L,...D}){const j=ja(),O=Nt(),M=u??O("@astryx.link.newTab"),H=Oi(e),F=tj({href:r,onClick:d,isDisabled:o}),{target:q,rel:B}=ej(l?"_blank":f,C),U=F==="button"||F==="inert"&&r==null,_=x.jsxs(x.Fragment,{children:[x.jsx(Je,{type:m,size:k,weight:v,color:w,display:S,maxLines:E,children:R}),l&&!U&&x.jsxs(x.Fragment,{children:[x.jsx(ft,{icon:"externalLink",size:"xsm",color:"inherit"}),x.jsx(Gs,{children:M})]})]});let P;return U?P=x.jsx("button",{ref:L,type:"button",onClick:d,...o?void 0:j,"aria-label":t||void 0,"aria-disabled":o||void 0,tabIndex:o?-1:void 0,disabled:o,...ye(fe("link",{color:w}),pn.focusVisible(Jr.base,Jr.buttonReset,Dy[w],!o&&or.pressedBackgroundColor,s&&Jr.hasUnderline,y&&Jr.standalone,o&&Jr.disabled,T),A,N),...D,children:_}):o?P=x.jsx("a",{ref:L,onClick:Bq,"aria-label":t||void 0,"aria-disabled":!0,tabIndex:-1,...ye(fe("link",{color:w}),pn.focusVisible(Jr.base,Dy[w],s&&Jr.hasUnderline,y&&Jr.standalone,Jr.disabled,T),A,N),...D,children:_}):P=x.jsx(H,{ref:L,href:r,target:q,rel:B,onClick:d,...o?void 0:j,"aria-label":t||void 0,"aria-disabled":o||void 0,tabIndex:o?-1:void 0,...ye(fe("link",{color:w}),pn.focusVisible(Jr.base,Dy[w],!o&&or.pressedBackgroundColor,s&&Jr.hasUnderline,y&&Jr.standalone,o&&Jr.disabled,T),A,N),...D,children:_}),p?x.jsx(_i,{content:p,placement:"above",children:P}):P}ix.displayName="Link";const vo={item:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"x1txdalj",kzqmXN:"xh8yej3",kZKoxP:"x1ueg155",kg3NbH:"xf314gf",k8WAf4:"xt970qd",kaIpWk:"xh6dtrn",kMzoRj:"xc342km",ksu8eU:"xng3xce",kWkggS:"xjbqb8w",kMwMTN:"x1tgivj0",kybGjl:"x1hl2dhg",kkrTdU:"x1ypdohk x16khyan",kMv6JI:"xjb2p0i",kGuDYH:"xcr08ib",k63SB2:"x1sodnla",kLWn49:"x1kq96og",k9WMMc:"x1yc453h",kB7OPa:"x9f619",$$css:!0},selected:{kWkggS:"x17x4s8c x1jzqe4",kMwMTN:"x1k5gbb1",k63SB2:"x1e4wzip",kRL5z6:"xcu6dpe x1d42zcn",kSReZ0:"xjtnuge x1vo6n7o",kNWwhB:"x7qqc7o x1r4mieh",kCVruK:"x1bev2v5",kjMJ7V:"xf3x42i x1pjcgc3",kSPMfz:"x524tya",$$css:!0},disabled:{kMwMTN:"xnbbluu",kkrTdU:"xt0e3qv",kfzvcC:"x47corl",$$css:!0},sm:{kZKoxP:"x6k0iem",kg3NbH:"x7a5moj",$$css:!0},md:{kZKoxP:"x1ueg155",kg3NbH:"xf314gf",$$css:!0},lg:{kZKoxP:"xssyfek",kg3NbH:"xf314gf",$$css:!0}};function Hq(e){return!e||typeof window>"u"?!1:window.getComputedStyle(e).direction==="rtl"}const Fq=new Set(["text","search","url","tel","email","password","number"]);function Uq(e,t){const r=e.parentElement?.closest("[hidden],[inert]");return r!=null&&r!==t&&t.contains(r)}function Vq(e){if(e.isContentEditable)return e;const t=e.closest("[contenteditable]");return t&&t.getAttribute("contenteditable")!=="false"?t:null}function sE(e,t){if(!(e instanceof HTMLElement))return!1;const r=Vq(e);if(r){const p=typeof window<"u"?window.getSelection():null;return p&&p.rangeCount>0&&!p.isCollapsed?!0:(r.textContent??"").length>0}const s=e.tagName==="TEXTAREA",o=e.tagName==="INPUT"&&Fq.has(e.type);if(!s&&!o)return!1;const l=e,{selectionStart:u,selectionEnd:f,value:d}=l;return u!==f||u==null?!0:t==="ArrowLeft"||t==="ArrowUp"||t==="Home"?u>0:t==="ArrowRight"||t==="ArrowDown"||t==="End"?u<d.length:!1}function lx(e={}){const{itemSelector:t='[role="menuitem"]',boundarySelector:r,wrap:s=!0,onEscape:o,orientation:l="vertical",hasHomeEnd:u=!0,hasPaging:f=!1,hasRovingTabIndex:d=!1,hasCaretGuard:p=!1}=e,y=g.useRef(null),m=g.useCallback(O=>O.getAttribute("aria-disabled")==="true"||O.disabled===!0||O.hasAttribute("disabled"),[]),k=g.useCallback(()=>{const O=y.current;if(!O)return[];const M=Array.from(O.querySelectorAll(t)).filter(H=>!Uq(H,O));return r?M.filter(H=>H.closest(r)===O):M},[t,r]),v=g.useCallback(O=>{const M=y.current;if(!M||!r)return!0;const H=O.target;return H?H.closest(r)===M:!0},[r]),w=g.useCallback((O,M,H,F)=>{const q=O.length;if(q===0)return-1;let B=M;for(let U=0;U<q;U++){if(B<0||B>=q){if(!F)return-1;B=(B+q)%q}const _=O[B];if(_&&!m(_))return B;B+=H}return-1},[m]),S=g.useCallback(()=>{const O=k(),M=document.activeElement;return O.findIndex(H=>H===M||H.contains(M))},[k]),E=g.useCallback((O,M)=>{O.getAttribute("tabindex")!==String(M)&&O.setAttribute("tabindex",String(M))},[]),R=g.useCallback(()=>{const O=k(),M=O.filter(q=>!m(q));if(M.length===0)return;const F=M.find(q=>q.getAttribute("tabindex")==="0")??M[0];for(const q of O)E(q,q===F?0:-1)},[k,m,E]);qn(()=>{d&&R()});const C=g.useCallback((O,M)=>{const H=O[M];if(H){if(d)for(const F of O)E(F,F===H?0:-1);H.focus()}},[d,E]),T=g.useCallback(O=>{const M=k();if(M.length===0)return;const H=Math.max(0,Math.min(O,M.length-1));C(M,H)},[k,C]),A=g.useCallback(()=>{const O=k(),M=w(O,0,1,!1);return M!==-1?(C(O,M),!0):!1},[k,w,C]),N=g.useCallback(()=>{const O=k(),M=w(O,O.length-1,-1,!1);return M!==-1?(C(O,M),!0):!1},[k,w,C]),L=g.useCallback(O=>{const M=y.current,H=k();if(!M||H.length===0)return;const F=S(),q=H.map((P,G)=>m(P)?-1:G).filter(P=>P!==-1);if(q.length===0)return;const B=()=>{const P=M.getBoundingClientRect(),G=q.filter(X=>{const Z=H[X].getBoundingClientRect();return Z.top>=P.top-1&&Z.bottom<=P.bottom+1});return G.length===0?-1:O===1?G[G.length-1]:G[0]},U=P=>F===-1||(O===1?P>F:P<F);if(F===-1&&O===-1){A();return}let _=B();if(_===-1||!U(_)){const P=M.scrollTop;if(M.scrollTop=P+O*M.clientHeight,_=B(),_===-1||!U(_)){const G=Math.max(1,q.filter(K=>{const ae=M.getBoundingClientRect(),I=H[K].getBoundingClientRect();return I.height>0&&I.top>=ae.top-1&&I.bottom<=ae.bottom+1}).length),X=q.indexOf(F),Z=X===-1?O===1?-1:q.length:X,Q=Math.max(0,Math.min(q.length-1,Z+O*G));_=q[Q]}}_!==-1&&_!==F&&C(H,_)},[k,S,m,C,A]),D=g.useCallback(()=>{d&&R()},[d,R]),j=g.useCallback(O=>{if(O.ctrlKey||O.metaKey||O.altKey||!v(O))return;if(O.key==="Escape"){o&&(O.preventDefault(),o());return}const M=l==="horizontal"||l==="both",H=l==="vertical"||l==="both",F=[],q=[];if(M){const K=O.key==="ArrowLeft"||O.key==="ArrowRight"?Hq(y.current):!1;F.push(K?"ArrowLeft":"ArrowRight"),q.push(K?"ArrowRight":"ArrowLeft")}H&&(F.push("ArrowDown"),q.push("ArrowUp"));const B=F.includes(O.key),U=q.includes(O.key),_=u&&O.key==="Home",P=u&&O.key==="End",G=f&&O.key==="PageDown",X=f&&O.key==="PageUp";if(!B&&!U&&!_&&!P&&!G&&!X||p&&(sE(O.target,O.key)||sE(document.activeElement,O.key)))return;const Z=S(),Q=k();if(B){const K=Z===-1?0:Z+1,ae=w(Q,K,1,s);ae!==-1&&C(Q,ae)}else if(U){const K=Z===-1?Q.length-1:Z-1,ae=w(Q,K,-1,s);ae!==-1&&C(Q,ae)}else _?A():P?N():G?L(1):X&&L(-1);O.preventDefault()},[S,k,s,l,u,f,p,w,C,A,N,L,o,v]);return{listRef:y,handleKeyDown:j,handleFocus:D,focusItem:T,focusFirst:A,focusLast:N,ownsEvent:v,getItems:k}}const Gq=500,Kq=300,Wq=8;function Oy(e,t,r){return(e.x-r.x)*(t.y-r.y)-(t.x-r.x)*(e.y-r.y)}function Yq(e,t,r,s){const o=Oy(e,t,r),l=Oy(e,r,s),u=Oy(e,s,t),f=o<0||l<0||u<0,d=o>0||l>0||u>0;return!(f&&d)}function Xq(e,t,r){const s=Wq;let o,l;if(t.x<=r.left)o={x:r.left,y:r.top-s},l={x:r.left,y:r.bottom+s};else if(t.x>=r.right)o={x:r.right,y:r.top-s},l={x:r.right,y:r.bottom+s};else if(t.y<=r.top)o={x:r.left-s,y:r.top},l={x:r.right+s,y:r.top};else if(t.y>=r.bottom)o={x:r.left-s,y:r.bottom},l={x:r.right+s,y:r.bottom};else return!1;return Yq(e,t,o,l)}function nj(e){const{show:t,hide:r,isOpen:s,isEnabled:o,showDelay:l=150,hideDelay:u=200,clickGuardMs:f=Gq,itemSelector:d,popoverId:p,ownsFocus:y=!0,flyoutRef:m}=e,k=wd("(hover: hover)"),v=g.useRef(null),w=g.useRef(null),S=g.useRef(null),E=g.useRef(null),R=g.useRef(!1),C=g.useRef(0),T=g.useRef(0),A=g.useRef(s);qn(()=>{const K=A.current;A.current=s,K&&!s&&(R.current=!1,T.current=0,C.current=Date.now())},[s]);const N=g.useCallback(()=>{v.current&&(clearTimeout(v.current),v.current=null),w.current&&(clearTimeout(w.current),w.current=null),E.current?.(),E.current=null},[]),L=g.useRef(()=>{}),{listRef:D,handleKeyDown:j,focusFirst:O}=lx({itemSelector:d,onEscape:()=>L.current()}),M=g.useCallback(()=>{const K=D.current?.contains(document.activeElement)??!1;r(),K&&S.current?.focus()},[r,D]);g.useEffect(()=>{L.current=()=>{N(),M()}},[N,M]),g.useEffect(()=>()=>N(),[N]),g.useEffect(()=>{o||N()},[o,N]);const H=g.useCallback(()=>{O()||D.current?.focus()},[O,D]),F=g.useCallback(()=>{if(!y){t();return}t({skipAutoFocus:!0}),H()},[y,t,H]),q=g.useCallback(()=>f>0&&T.current>0&&Date.now()-T.current<f?(R.current=!1,T.current=0,!0):!1,[f]),B=g.useCallback(K=>{if(p&&K?.preventDefault(),N(),K!=null&&K.detail===0){C.current=0,R.current=!1,T.current=0,s?y&&H():F();return}if(!s){C.current=0,R.current=!1,T.current=0,F();return}if(q()){y&&H();return}M()},[p,N,s,y,q,F,H,M]),U=g.useCallback(()=>{if(!k||C.current>0&&Date.now()-C.current<Kq)return;if(s){N();return}R.current=!0,N();const K=()=>{T.current=Date.now(),t({skipAutoFocus:!0})};l>0?v.current=setTimeout(K,l):K()},[k,s,N,t,l]),_=g.useCallback(K=>{if(C.current=0,!R.current)return;N();let ae=null,I=!1,ee=()=>!1;const pe=()=>{w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{if(I&&ae!=null&&ee(ae)){pe();return}r()},u)};pe();const ue=m?.current??D.current,ve=K!=null?{x:K.clientX,y:K.clientY}:null;if(ue==null||ve==null||!s)return;const xe=ue.getBoundingClientRect();if(xe.width<=0||xe.height<=0)return;const $e=ue.ownerDocument;ee=he=>Xq(he,ve,xe),I=!0,ae=ve;const te=he=>{const Re={x:he.clientX,y:he.clientY};if(ae=Re,ee(Re)){pe();return}I=!1,E.current?.(),E.current=null};$e.addEventListener("pointermove",te,!0),E.current=()=>{$e.removeEventListener("pointermove",te,!0)}},[N,r,u,s,D,m]),P=g.useCallback(()=>{N()},[N]),G=g.useCallback(K=>{S.current=K},[]),X=g.useCallback(()=>{},[]),Z=g.useCallback(K=>{},[]),Q=g.useCallback(K=>{},[]);return o?{triggerProps:{onClick:B,onMouseEnter:U,onMouseLeave:_,...p?{popoverTarget:p}:null},contentProps:{onMouseEnter:P,onMouseLeave:_,onKeyDown:j},menuRef:D,focusFirst:O,focusMenu:H,confirmHoverOpen:q,close:M,setTriggerEl:G}:{triggerProps:{onClick:X,onMouseEnter:X,onMouseLeave:X},contentProps:{onMouseEnter:X,onMouseLeave:X,onKeyDown:Q},menuRef:D,focusFirst:O,focusMenu:H,confirmHoverOpen:q,close:M,setTriggerEl:Z}}const zr={root:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kzqmXN:"xh8yej3",$$css:!0},itemCollapsed:{kjj79g:"xl56j7k",kzqmXN:"x805d0l",kg3NbH:"xnjsko4",$$css:!0},itemCollapsedSm:{kzqmXN:"x1fvqzum",$$css:!0},itemCollapsedLg:{kzqmXN:"x1m747yf",$$css:!0},expandChevron:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kzqmXN:"x1mtvzj0",kZKoxP:"xvpftlf",kGuDYH:"x1qlqyl8",k1ekBW:"x11xpdln",kIyJzY:"xuedmi6 x12w9bfk",kAMwcw:"xlr8y92",kmuXW:"x2lah0s",$$css:!0},expandChevronExpanded:{k3aq6I:"x19jd1h0",$$css:!0},expandToggle:{kzqmXN:"x1fvqzum",kZKoxP:"x6k0iem",k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmuXW:"x2lah0s",kmVPX3:"x1717udv",kogj98:"x1ghz6dp",kMzoRj:"xc342km",ksu8eU:"xng3xce",kWkggS:"xjbqb8w",kMwMTN:"x1heor9g",kkrTdU:"x1ypdohk x16khyan",kaIpWk:"xh6dtrn",$$css:!0},splitAction:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kSGwAc:"xkh2ocl",kOIVth:"x1txdalj",kUk6DE:"x98rzlu",k7Eaqz:"xeuugli",kMwMTN:"x1heor9g",kybGjl:"x1hl2dhg",kmVPX3:"x1717udv",kogj98:"x1ghz6dp",kMzoRj:"xc342km",ksu8eU:"xng3xce",kWkggS:"xjbqb8w",kMv6JI:"xjb2p0i",kGuDYH:"x1qlqyl8",k63SB2:"x1pd3egz",kLWn49:"x15bjb6t",k9WMMc:"x1yc453h",kkrTdU:"x1ypdohk x16khyan",$$css:!0},popoverGap:{keTefX:"x11g1kdw",k71WvV:"xnur1sd",$$css:!0}},Zq="sm",Qq={isCollapsed:!1,toggle:()=>{},isCollapsible:!1};function Iy({href:e,as:t,isDisabled:r,onClick:s,ref:o,children:l,...u}){const f=Oi(t);return e&&!r?x.jsx(f,{ref:o,href:e,onClick:s,...u,children:l}):x.jsx("button",{ref:o,type:"button",onClick:s,disabled:r,...u,children:l})}function cx({as:e,label:t,icon:r,selectedIcon:s,isSelected:o=!1,isDisabled:l=!1,href:u,onClick:f,endContent:d,actions:p,children:y,collapsible:m,size:k="md","data-testid":v,ref:w,xstyle:S,...E}){const R=ja(),C=Nt(),{isCollapsed:T}=x0(),A=GC(),{closeMobileNav:N}=Ii(),L=A==="drawer"||A==="drawer-content",D=g.useId(),j=!!y,O=g.useRef(null),M=b0({hasLightDismiss:!0,hasAutoFocus:!0,hasCloseButton:!1,dialogLabel:C("@astryx.sideNavItem.submenuLabel",{label:t})}),H=xn(w,M.triggerRef),F=g.useMemo(()=>typeof m=="object"?m:{},[m]),q=j&&m!==!1,B=F.isCollapsed,U=B!==void 0,[_,P]=g.useState(F.defaultIsCollapsed??!1),G=U?B:_,X=g.useCallback(()=>{const je=!G;U||P(je),F.onCollapsedChange?.(je)},[G,U,F]),Z=o&&s?s:r,K=q&&(!!u||!!f)&&!T,ae=!!p,I=je=>{if(l){je.preventDefault();return}if(q&&!K&&!T){je.preventDefault(),X();return}f?.(je),L&&N()},ee=je=>{je.preventDefault(),je.stopPropagation(),X()},{triggerProps:pe,contentProps:ue}=nj({show:M.show,hide:M.hide,isOpen:M.isOpen,isEnabled:T&&j,clickGuardMs:0,ownsFocus:!1});if(T&&!r)return null;if(T){const je=Z&&Ta(Z,{size:"sm",color:o?"inherit":l?"disabled":"secondary"}),He={...ye(fe("side-nav-item",{size:k,selected:o?"selected":null,disabled:l?"disabled":null}),pn.focusVisible(vo.item,or.backgroundColor,vo[k],zr.itemCollapsed,k==="sm"&&zr.itemCollapsedSm,k==="lg"&&zr.itemCollapsedLg,o&&vo.selected,l&&vo.disabled)),...R},at=E["aria-label"]!=null&&E["aria-label"].trim()!==""?E["aria-label"]:t;if(j)return x.jsxs("div",{...de(zr.root,S),children:[x.jsx("button",{ref:H,type:"button",...E,...pe,"aria-label":at,"data-testid":v,...M.triggerProps,...He,children:je}),M.render(x.jsxs("div",{className:"x1hviunn xu0wf1k x7a5moj xfb3i0g",onMouseEnter:ue.onMouseEnter,onMouseLeave:ue.onMouseLeave,onClick:()=>M.hide(),children:[x.jsx("div",{className:"xf314gf xu0wf1k x141an7d x2mo6ok xv1l7n4 x1ltkj2j",children:t}),x.jsx(ox,{value:Qq,children:y})]}),{placement:"end",alignment:"start",xstyle:zr.popoverGap})]});const pt={"aria-current":o?"page":void 0,"aria-disabled":l||void 0,"aria-label":at,"data-testid":v},et=x.jsx(Iy,{ref:w,href:u,as:e,isDisabled:l,onClick:I,...E,...pt,...He,children:je});return x.jsxs("div",{ref:O,...de(zr.root,S),children:[et,x.jsx(_i,{content:t,placement:"end",anchorRef:O})]})}const ve=x.jsxs(x.Fragment,{children:[Z&&Ta(Z,{size:"sm",color:o?"inherit":l?"disabled":"secondary"}),!T&&x.jsx("span",{className:"x98rzlu xeuugli xb3r6kr xlyipyv xuxw1ft",children:t}),!T&&d&&x.jsx("span",{className:"x2lah0s x78zum5 x6s0dn4",children:d}),!T&&q&&!K&&x.jsx(ft,{icon:"chevronDown",size:"lg",color:"inherit",xstyle:[zr.expandChevron,!G&&zr.expandChevronExpanded]})]}),xe=fe("side-nav-item",{size:k,selected:o?"selected":null,disabled:l?"disabled":null}),$e=[vo.item,or.backgroundColor,vo[k],o&&vo.selected,l&&vo.disabled],te={...ye(xe,de(...$e)),...R},he={...ye(xe,pn.focusVisible(...$e)),...R},Re={...ye(xe,pn.focusWithinFirstChild(...$e)),...R},Ce=K||ae;let Te;if(Ce){const je=K?{"aria-current":o?"page":void 0}:{"aria-current":o?"page":void 0,"aria-disabled":l||void 0,"aria-expanded":q?!G:void 0,"aria-controls":q?`${D}-children`:void 0};Te=x.jsxs("div",{"data-testid":v,...ae?Re:te,children:[x.jsx(Iy,{ref:w,href:u,as:e,isDisabled:l,onClick:I,...E,...je,...ae?pn.suppressed(zr.splitAction):pn.focusVisible(zr.splitAction),children:ve}),K&&x.jsx("button",{type:"button",onClick:ee,"aria-label":G?C("@astryx.sideNavItem.expand",{label:t}):C("@astryx.sideNavItem.collapse",{label:t}),"aria-expanded":!G,"aria-controls":`${D}-children`,...R,...pn.focusVisible(zr.expandToggle,or.backgroundColor),children:x.jsx(ft,{icon:"chevronDown",size:"lg",color:"inherit",xstyle:[zr.expandChevron,!G&&zr.expandChevronExpanded]})}),ae&&x.jsx("span",{className:"x2lah0s x78zum5 x6s0dn4 xzye2dw x67bb7w",children:x.jsx(Bl,{value:Zq,children:p})})]})}else{const je={"aria-current":o?"page":void 0,"aria-disabled":l||void 0,"aria-expanded":q?!G:void 0,"aria-controls":q?`${D}-children`:void 0,"data-testid":v};Te=x.jsx(Iy,{ref:w,href:u,as:e,isDisabled:l,onClick:I,...E,...je,...he,children:ve})}return x.jsxs("div",{ref:O,...de(zr.root,S),children:[Te,j&&!T&&x.jsx("div",{id:`${D}-children`,role:"group","aria-labelledby":`${D}-label`,"aria-hidden":G,inert:G?!0:void 0,...{0:{className:"xrvj5dj x1tu4anv x1qn9uv2 x80gvsz x12w9bfk xlr8y92"},1:{className:"xrvj5dj x1qn9uv2 x80gvsz x12w9bfk xlr8y92 xihq33y"}}[!!G<<0],children:x.jsxs("div",{className:"xb3r6kr x2lwn1j x31w388",children:[x.jsx("span",{id:`${D}-label`,hidden:!0,children:t}),y]})})]})}cx.displayName="SideNavItem";const Jq={root:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",k8WAf4:"xu0wf1k",$$css:!0}};function xp({ref:e,title:t,subtitle:r,children:s,endContent:o,isHeaderHidden:l=!1,xstyle:u,className:f,style:d,"data-testid":p,...y}){const{isCollapsed:m}=x0(),v=`${g.useId()}-title`,w=x.jsxs(x.Fragment,{children:[x.jsxs("span",{className:"x78zum5 xdt5ytf x98rzlu xeuugli",children:[x.jsx("span",{id:v,className:"x141an7d x2mo6ok x1ltkj2j xv1l7n4 xb3r6kr xlyipyv xuxw1ft",children:t}),r&&x.jsx("span",{className:"x141an7d x1ltkj2j xv1l7n4 xb3r6kr xlyipyv xuxw1ft",children:r})]}),o&&x.jsx("span",{className:"x2lah0s x78zum5 x6s0dn4",children:o})]}),S=l||m;return x.jsxs("div",{ref:e,...ye(fe("side-nav-section"),de(Jq.root,u),f,d),...y,role:"group","aria-labelledby":v,"data-testid":p,children:[S?x.jsx(Gs,{as:"div",children:w}):x.jsx("div",{className:"x78zum5 x6s0dn4 x1txdalj xf314gf xu0wf1k xt0e3qv x87ps6o",children:w}),x.jsx("div",{className:"x78zum5 xdt5ytf x1lsbc85",children:s})]})}xp.displayName="SideNavSection";const fh={base:{k1xSpc:"xjp7ctv",kMwMTN:"x1tgivj0",kMv6JI:"x9ynric",$$css:!0},light:{kQNsl9:"x19aimcq",$$css:!0},dark:{kQNsl9:"xntwwlm",$$css:!0},system:{kQNsl9:"x108lcm5",$$css:!0}},F1=Dp.createContext(!1);F1.displayName="ThemeNestingContext";const _y=new Set,oE="@layer reset, astryx-base, astryx-theme;";function eP(e){const t=g.useId();g.useInsertionEffect(()=>{if(e.__built)return;const r=`astryx-theme-${e.name}`;if(_y.has(r))return;Gp(`theme-injection:${e.name}`,"Theme",`"${e.name}" is using runtime style injection. For better performance, use the pre-built theme:
83
-
84
- import {${e.name}Theme} from '@astryxdesign/theme-${e.name}/built';
85
- import '@astryxdesign/theme-${e.name}/theme.css';
86
-
87
- For custom themes, run \`npx @astryxdesign/cli theme build <file>\` to generate the built artifacts.`);const{prose:s,component:o}=e_(e);_y.add(r);const l=[()=>_y.delete(r)];if(s){const u=document.createElement("style");u.setAttribute(Dr("theme-prose"),e.name),u.setAttribute(Dr("id"),t),u.textContent=`${oE}
88
- @layer reset {
89
- ${s}
90
- }`,document.head.appendChild(u)}if(o){const u=document.createElement("style");u.setAttribute(Dr("theme"),e.name),u.setAttribute(Dr("id"),t),u.textContent=`${oE}
91
- @layer astryx-theme {
92
- ${o}
93
- }`,document.head.appendChild(u)}return(s||o)&&l.push(()=>{const u=document.querySelector(`style[${Dr("theme-prose")}="${e.name}"][${Dr("id")}="${t}"]`),f=document.querySelector(`style[${Dr("theme")}="${e.name}"][${Dr("id")}="${t}"]`);u?.remove(),f?.remove()}),()=>{for(const u of l)u()}},[e,t])}function tP(e,t,r){qn(()=>{if(!e&&!(typeof document>"u"))return t==="light"||t==="dark"?document.documentElement.setAttribute("data-theme",t):document.documentElement.removeAttribute("data-theme"),document.documentElement.setAttribute(Dr("theme"),r),()=>{document.documentElement.removeAttribute("data-theme"),document.documentElement.removeAttribute(Dr("theme"))}},[e,t,r])}function v0({theme:e,mode:t="system",children:r}){const s=g.use(F1);RC(e),eP(e),tP(s,t,e.name);const o=t==="dark"?fh.dark:t==="light"?fh.light:fh.system,l=g.useMemo(()=>({theme:e,mode:t}),[e,t]);return x.jsx(Sd,{value:l,children:x.jsx(F1,{value:!0,children:x.jsx("div",{...de(fh.base,o),"data-astryx-theme":e.name,"data-theme":t==="system"?void 0:t,children:r})})})}v0.displayName="Theme";function nP(e,t){const r=document.createElement("span");r.style.display="none",e.appendChild(r);try{return t.map(s=>(r.style.color=`var(${s})`,Zu(getComputedStyle(r).color)))}finally{r.remove()}}function rP(e){const t=[];let r=e;for(;r!==null;){const o=getComputedStyle(r);if(o.backgroundImage!=="none")return null;const l=Zu(o.backgroundColor);if(l!==null&&l.a>0&&(t.push(l),l.a>=1))break;r=r.parentElement}const s=t.pop();return s===void 0||s.a<1?null:t.reduceRight((o,l)=>mC(l,o),s)}const aP=3;function sP(e,t,r,s){return r===null||s===null?null:t!==null&&Ph(t,e)>=aP?"off":Ph(r,e)>=Ph(s,e)?"dark":"light"}function oP(e,t){const[r,s]=g.useState(null),{tokens:o}=ax(),l=g.useRef(null);return qn(()=>{const u=e.current?.parentElement??null;if(!t||u===null)return;const f=rP(u);if(f===null)return;const d=gT(f),p=l.current;if(p!==null&&p.background===d&&p.tokens===o)return;l.current={background:d,tokens:o};const[y,m,k]=nP(u,["--color-text-primary","--color-on-dark","--color-on-light"]),v=sP(f,y,m,k);v!==null&&s(w=>w===v?w:v)}),t?r:null}function rj({mode:e,fallback:t="dark",children:r}){const s=g.useRef(null),o=oP(s,e==="auto"),l=e==="auto"?o??t:e;return x.jsx("div",{ref:s,...l==="off"?null:{[Dr("media")]:l},...{0:{className:"xjp7ctv"},1:{className:"xjp7ctv x1tgivj0"}}[(l!=="off")<<0],children:r})}rj.displayName="MediaTheme";const aj="--color-syntax-";function iP(e){return aj+e}const U1=Object.keys(Jb).map(e=>e.replace(aj,""));function lP(e){return Array.isArray(e)?`light-dark(${e[0]}, ${e[1]})`:e}function cP(e){const t=U1.filter(s=>!(s in e.tokens));t.length>0&&Ea("defineSyntaxTheme",`"${e.name}": missing tokens: ${t.join(", ")}. All 14 syntax tokens are required.`);const r={};for(const s of U1)r[s]=lP(e.tokens[s]);return{name:e.name,tokens:r,__inputTokens:{...e.tokens}}}function uP(e){const t={};for(const r of U1)t[iP(r)]=e.tokens[r];return t}const sj=g.createContext(null);sj.displayName="SyntaxThemeContext";function oj({theme:e,children:t}){const r=g.useMemo(()=>uP(e),[e]),s=g.useMemo(()=>({theme:e}),[e]);return x.jsx(sj,{value:s,children:x.jsx("div",{style:r,"data-astryx-syntax-theme":e.name,children:t})})}oj.displayName="SyntaxTheme";function dP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"}))}const fP=g.forwardRef(dP);function hP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))}const V1=g.forwardRef(hP);function pP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 12c0-1.232-.046-2.453-.138-3.662a4.006 4.006 0 0 0-3.7-3.7 48.678 48.678 0 0 0-7.324 0 4.006 4.006 0 0 0-3.7 3.7c-.017.22-.032.441-.046.662M19.5 12l3-3m-3 3-3-3m-12 3c0 1.232.046 2.453.138 3.662a4.006 4.006 0 0 0 3.7 3.7 48.656 48.656 0 0 0 7.324 0 4.006 4.006 0 0 0 3.7-3.7c.017-.22.032-.441.046-.662M4.5 12l3 3m-3-3-3 3"}))}const ij=g.forwardRef(pP);function xP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const ux=g.forwardRef(xP);function gP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"}))}const G1=g.forwardRef(gP);function mP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 4.5h14.25M3 9h9.75M3 13.5h5.25m5.25-.75L17.25 9m0 0L21 12.75M17.25 9v12"}))}const lj=g.forwardRef(mP);function yP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 12.75c1.148 0 2.278.08 3.383.237 1.037.146 1.866.966 1.866 2.013 0 3.728-2.35 6.75-5.25 6.75S6.75 18.728 6.75 15c0-1.046.83-1.867 1.866-2.013A24.204 24.204 0 0 1 12 12.75Zm0 0c2.883 0 5.647.508 8.207 1.44a23.91 23.91 0 0 1-1.152 6.06M12 12.75c-2.883 0-5.647.508-8.208 1.44.125 2.104.52 4.136 1.153 6.06M12 12.75a2.25 2.25 0 0 0 2.248-2.354M12 12.75a2.25 2.25 0 0 1-2.248-2.354M12 8.25c.995 0 1.971-.08 2.922-.236.403-.066.74-.358.795-.762a3.778 3.778 0 0 0-.399-2.25M12 8.25c-.995 0-1.97-.08-2.922-.236-.402-.066-.74-.358-.795-.762a3.734 3.734 0 0 1 .4-2.253M12 8.25a2.25 2.25 0 0 0-2.248 2.146M12 8.25a2.25 2.25 0 0 1 2.248 2.146M8.683 5a6.032 6.032 0 0 1-1.155-1.002c.07-.63.27-1.222.574-1.747m.581 2.749A3.75 3.75 0 0 1 15.318 5m0 0c.427-.283.815-.62 1.155-.999a4.471 4.471 0 0 0-.575-1.752M4.921 6a24.048 24.048 0 0 0-.392 3.314c1.668.546 3.416.914 5.223 1.082M19.08 6c.205 1.08.337 2.187.392 3.314a23.882 23.882 0 0 1-5.223 1.082"}))}const cj=g.forwardRef(yP);function bP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const kP=g.forwardRef(bP);function vP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25ZM6.75 12h.008v.008H6.75V12Zm0 3h.008v.008H6.75V15Zm0 3h.008v.008H6.75V18Z"}))}const wP=g.forwardRef(vP);function SP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const uj=g.forwardRef(SP);function EP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z"}))}const $P=g.forwardRef(EP);function TP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const CP=g.forwardRef(TP);function jP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 17.25v1.007a3 3 0 0 1-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0 1 15 18.257V17.25m6-12V15a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 15V5.25m18 0A2.25 2.25 0 0 0 18.75 3H5.25A2.25 2.25 0 0 0 3 5.25m18 0V12a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 12V5.25"}))}const RP=g.forwardRef(jP);function AP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 3v1.5M4.5 8.25H3m18 0h-1.5M4.5 12H3m18 0h-1.5m-15 3.75H3m18 0h-1.5M8.25 19.5V21M12 3v1.5m0 15V21m3.75-18v1.5m0 15V21m-9-1.5h10.5a2.25 2.25 0 0 0 2.25-2.25V6.75a2.25 2.25 0 0 0-2.25-2.25H6.75A2.25 2.25 0 0 0 4.5 6.75v10.5a2.25 2.25 0 0 0 2.25 2.25Zm.75-12h9v9h-9v-9Z"}))}const MP=g.forwardRef(AP);function NP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))}const zP=g.forwardRef(NP);function LP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"}))}const DP=g.forwardRef(LP);function OP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const dj=g.forwardRef(OP);function IP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 9.776c.112-.017.227-.026.344-.026h15.812c.117 0 .232.009.344.026m-16.5 0a2.25 2.25 0 0 0-1.883 2.542l.857 6a2.25 2.25 0 0 0 2.227 1.932H19.05a2.25 2.25 0 0 0 2.227-1.932l.857-6a2.25 2.25 0 0 0-1.883-2.542m-16.5 0V6A2.25 2.25 0 0 1 6 3.75h3.879a1.5 1.5 0 0 1 1.06.44l2.122 2.12a1.5 1.5 0 0 0 1.06.44H18A2.25 2.25 0 0 1 20.25 9v.776"}))}const _P=g.forwardRef(IP);function qP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"}))}const w0=g.forwardRef(qP);function PP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"}))}const S0=g.forwardRef(PP);function BP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m7.875 14.25 1.214 1.942a2.25 2.25 0 0 0 1.908 1.058h2.006c.776 0 1.497-.4 1.908-1.058l1.214-1.942M2.41 9h4.636a2.25 2.25 0 0 1 1.872 1.002l.164.246a2.25 2.25 0 0 0 1.872 1.002h2.092a2.25 2.25 0 0 0 1.872-1.002l.164-.246A2.25 2.25 0 0 1 16.954 9h4.636M2.41 9a2.25 2.25 0 0 0-.16.832V12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 12V9.832c0-.287-.055-.57-.16-.832M2.41 9a2.25 2.25 0 0 1 .382-.632l3.285-3.832a2.25 2.25 0 0 1 1.708-.786h8.43c.657 0 1.281.287 1.709.786l3.284 3.832c.163.19.291.404.382.632M4.5 20.25h15A2.25 2.25 0 0 0 21.75 18v-2.625c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125V18a2.25 2.25 0 0 0 2.25 2.25Z"}))}const HP=g.forwardRef(BP);function FP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"}))}const UP=g.forwardRef(FP);function VP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m10.5 21 5.25-11.25L21 21m-9-3h7.5M3 5.621a48.474 48.474 0 0 1 6-.371m0 0c1.12 0 2.233.038 3.334.114M9 5.25V3m3.334 2.364C11.176 10.658 7.69 15.08 3 17.502m9.334-12.138c.896.061 1.785.147 2.666.257m-4.589 8.495a18.023 18.023 0 0 1-3.827-5.802"}))}const GP=g.forwardRef(VP);function KP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"}))}const fj=g.forwardRef(KP);function WP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"}))}const YP=g.forwardRef(WP);function XP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const ZP=g.forwardRef(XP);function QP({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"}))}const JP=g.forwardRef(QP);function eB({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.53 16.122a3 3 0 0 0-5.78 1.128 2.25 2.25 0 0 1-2.4 2.245 4.5 4.5 0 0 0 8.4-2.245c0-.399-.078-.78-.22-1.128Zm0 0a15.998 15.998 0 0 0 3.388-1.62m-5.043-.025a15.994 15.994 0 0 1 1.622-3.395m3.42 3.42a15.995 15.995 0 0 0 4.764-4.648l3.876-5.814a1.151 1.151 0 0 0-1.597-1.597L14.146 6.32a15.996 15.996 0 0 0-4.649 4.763m3.42 3.42a6.776 6.776 0 0 0-3.42-3.42"}))}const E0=g.forwardRef(eB);function tB({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"}))}const nB=g.forwardRef(tB);function rB({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))}const hj=g.forwardRef(rB);function aB({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"}))}const sB=g.forwardRef(aB);function oB({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 14.25h13.5m-13.5 0a3 3 0 0 1-3-3m3 3a3 3 0 1 0 0 6h13.5a3 3 0 1 0 0-6m-16.5-3a3 3 0 0 1 3-3h13.5a3 3 0 0 1 3 3m-19.5 0a4.5 4.5 0 0 1 .9-2.7L5.737 5.1a3.375 3.375 0 0 1 2.7-1.35h7.126c1.062 0 2.062.5 2.7 1.35l2.587 3.45a4.5 4.5 0 0 1 .9 2.7m0 0a3 3 0 0 1-3 3m0 3h.008v.008h-.008v-.008Zm0-6h.008v.008h-.008v-.008Zm-3 6h.008v.008h-.008v-.008Zm0-6h.008v.008h-.008v-.008Z"}))}const iB=g.forwardRef(oB);function lB({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.429 9.75 2.25 12l4.179 2.25m0-4.5 5.571 3 5.571-3m-11.142 0L2.25 7.5 12 2.25l9.75 5.25-4.179 2.25m0 0L21.75 12l-4.179 2.25m0 0 4.179 2.25L12 21.75 2.25 16.5l4.179-2.25m11.142 0-5.571 3-5.571-3"}))}const $0=g.forwardRef(lB);function cB({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"}))}const uB=g.forwardRef(cB);function dB({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"}))}const fB=g.forwardRef(dB);function hB({title:e,titleId:t,...r},s){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const pj=g.forwardRef(hB);const pB=e=>e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function xB(e,t,r=[]){if(t==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:pB(e),size:24,node:t,...r.length>0?{aliases:r}:{}}}const gB=e=>{let t="",r=!1;for(const s of e){if(s==="-"||s==="_"||s<=" "){r=t.length>0;continue}t.length===0?t+=s.toLowerCase():t+=r?s.toUpperCase():s,r=!1}return t};const mB=e=>{const t=gB(e);return t.charAt(0).toUpperCase()+t.slice(1)};const K1=(...e)=>e.filter((t,r,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===r).join(" ").trim();const li={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function qy(e){return e!=null}function yB(e,t={}){const r=t.attributeNames??{},s=k=>r[k]??k,o=e.size??e.width??li.width,l=e.size??e.height??li.height,u=e.aliases?.filter(k=>typeof k=="string"&&k.trim()!=="").map(k=>`lucide-${k}`)??[],f=[...e.name?[`lucide-${e.name}`]:[],...u],d=t.className?.split(" ").filter(Boolean)??[],p=t.includeDefaultClasses===!1?K1(...d):K1("lucide",...f,...d),y=t.absoluteStrokeWidth?Number(t.strokeWidth??li["stroke-width"])*Number(e.size??e.width??li.width)/Number(t.size??t.width??li.width):t.strokeWidth??li["stroke-width"];return["svg",{...Object.entries(li).reduce((k,[v,w])=>(k[s(v)]=w,k),{}),..."color"in t&&t.color&&{[s("stroke")]:t.color},..."size"in t&&qy(t.size)&&{[s("width")]:t.size,[s("height")]:t.size},..."width"in t&&qy(t.width)&&{[s("width")]:t.width},..."height"in t&&qy(t.height)&&{[s("height")]:t.height},[s("stroke-width")]:y,...p&&{[s("class")]:p},[s("viewBox")]:`0 0 ${o} ${l}`,...t.hasA11yProp===!1?{[s("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(k=>{const[v,w,S]=k,E=t.nonScalingStroke?{[s("vector-effect")]:"non-scaling-stroke",...w}:w;return S?[v,E,S]:[v,E]})]}function bB(e,t={}){return yB(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}const kB=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},vB=g.createContext({}),wB=()=>g.useContext(vB),SB=g.forwardRef(({color:e,size:t,width:r,height:s,strokeWidth:o,absoluteStrokeWidth:l,nonScalingStroke:u,className:f="",children:d,iconNode:p=[],icon:y={node:p,aliases:[],size:24},...m},k)=>{const{size:v=24,strokeWidth:w=2,absoluteStrokeWidth:S=!1,nonScalingStroke:E=!1,color:R="currentColor",className:C=""}=wB()??{},T=!!d||kB(m),[A,N,L=[]]=bB(y,{color:e??R,width:r??t??v,height:s??t??v,strokeWidth:o??w,absoluteStrokeWidth:l??S,nonScalingStroke:u??E,className:K1(C,f),hasA11yProp:T,attributes:m});return g.createElement(A,{ref:k,...N},[...L.map(([D,j])=>g.createElement(D,j)),...Array.isArray(d)?d:[d]])});function qt(e,t=[],r=[]){const s=typeof e=="string"?xB(e,t,r):e,o=g.forwardRef(({className:l,...u},f)=>g.createElement(SB,{ref:f,icon:s,className:l,...u}));return s.name&&(o.displayName=mB(s.name)),o}const xj={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};xj.node;const gj=qt(xj);const mj={name:"arrow-up-down",size:24,node:[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]};mj.node;const yj=qt(mj);const bj={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};bj.node;const kj=qt(bj);const vj={name:"calendar",size:24,node:[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}]]};vj.node;const wj=qt(vj);const Sj={name:"check-check",size:24,node:[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]};Sj.node;const Ej=qt(Sj);const $j={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};$j.node;const Tj=qt($j);const Cj={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};Cj.node;const jj=qt(Cj);const Rj={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};Rj.node;const Aj=qt(Rj);const Mj={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};Mj.node;const Nj=qt(Mj);const zj={name:"chevrons-left",size:24,node:[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]};zj.node;const Lj=qt(zj);const Dj={name:"chevrons-right",size:24,node:[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]};Dj.node;const Oj=qt(Dj);const Ij={name:"circle-check-big",size:24,node:[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],aliases:["check-circle"]};Ij.node;const _j=qt(Ij);const qj={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};qj.node;const Pj=qt(qj);const Bj={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};Bj.node;const Hj=qt(Bj);const Fj={name:"columns-2",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],aliases:["columns"]};Fj.node;const Uj=qt(Fj);const Vj={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};Vj.node;const Gj=qt(Vj);const Kj={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};Kj.node;const Wj=qt(Kj);const Yj={name:"external-link",size:24,node:[["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"}]]};Yj.node;const Xj=qt(Yj);const Zj={name:"eye-off",size:24,node:[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};Zj.node;const Qj=qt(Zj);const Jj={name:"funnel",size:24,node:[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],aliases:["filter"]};Jj.node;const e4=qt(Jj);const t4={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]};t4.node;const n4=qt(t4);const r4={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};r4.node;const a4=qt(r4);const s4={name:"mic",size:24,node:[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]};s4.node;const o4=qt(s4);const i4={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};i4.node;const l4=qt(i4);const c4={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};c4.node;const u4=qt(c4);const d4={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};d4.node;const f4=qt(d4);const h4={name:"upload",size:24,node:[["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"}]]};h4.node;const p4=qt(h4);const x4={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};x4.node;const g4=qt(x4);const m4={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};m4.node;const y4=qt(m4);var It={size:"1em","aria-hidden":!0},EB={close:x.jsx(y4,{...It}),chevronDown:x.jsx(jj,{...It}),chevronLeft:x.jsx(Aj,{...It}),chevronRight:x.jsx(Nj,{...It}),chevronsLeft:x.jsx(Lj,{...It}),chevronsRight:x.jsx(Oj,{...It}),check:x.jsx(Tj,{...It}),success:x.jsx(_j,{...It}),error:x.jsx(Pj,{...It}),warning:x.jsx(f4,{...It}),info:x.jsx(n4,{...It}),calendar:x.jsx(wj,{...It}),clock:x.jsx(Hj,{...It}),externalLink:x.jsx(Xj,{...It}),menu:x.jsx(a4,{...It}),moreHorizontal:x.jsx(Wj,{...It}),search:x.jsx(l4,{...It}),upload:x.jsx(p4,{...It}),arrowUp:x.jsx(kj,{...It}),arrowDown:x.jsx(gj,{...It}),arrowsUpDown:x.jsx(yj,{...It}),funnel:x.jsx(e4,{...It}),eyeSlash:x.jsx(Qj,{...It}),viewColumns:x.jsx(Uj,{...It}),copy:x.jsx(Gj,{...It}),checkDouble:x.jsx(Ej,{...It}),wrench:x.jsx(g4,{...It}),stop:x.jsx(u4,{...It}),microphone:x.jsx(o4,{...It})},$B={purple:{light:{25:"#5c0e6c",30:"#6b187c",70:"#d885eb",75:"#e496f6",80:"#efa8ff",85:"#f3bfff",90:"#f7d5ff"},dark:{25:"#4a2f51",80:"#eaacf8"}},green:{light:{25:"#00490b",30:"#0b5615",45:"#2f7d33",65:"#6ab26b",75:"#90ca90",80:"#a4d6a3"},dark:{25:"#2b422b",80:"#aad4a9",85:"#bce0bb"}},neutral:{light:{0:"#000000",5:"#111111",10:"#1b1b1b",30:"#474747",45:"#6a6a6a",60:"#919191",85:"#d4d4d4",90:"#e2e2e2",95:"#f1f1f1",100:"#ffffff"},dark:{0:"#000000",5:"#111111",10:"#1b1b1b",15:"#262626",20:"#303030",35:"#525252",65:"#9e9e9e",85:"#d4d4d4",90:"#e2e2e2",95:"#f1f1f1",100:"#ffffff"}},orange:{light:{25:"#622700",30:"#733100",75:"#ff9e55",85:"#ffc7a1"},dark:{25:"#503424",65:"#df843f",80:"#ffb37e"}},blue:{light:{25:"#003978",30:"#00458c",50:"#0074e2",80:"#a1caff",85:"#b9d7ff"},dark:{25:"#253c5a",65:"#5aa0f8",75:"#88bcff",80:"#a1caff"}},red:{light:{25:"#76000c",30:"#8a0011",55:"#de4745",65:"#fa6762",70:"#ff7f77",80:"#ffaea7",85:"#ffc4be"},dark:{25:"#5b2b28",65:"#ee736c",75:"#ff9890",80:"#ffaea7",85:"#ffc4be"}},yellow:{light:{25:"#4b3900",30:"#584400",65:"#c29900",75:"#e2b623",80:"#eec448",85:"#f8d36a"},dark:{25:"#453a1c",80:"#e3c36c",90:"#fae19e"}},teal:{light:{25:"#00463d",30:"#005348",80:"#90d7c8",85:"#a9e2d6"},dark:{25:"#28413c",65:"#4fb1a0",75:"#81c9bb"}},cyan:{dark:{25:"#274046",65:"#49adc4",75:"#71c7dd",80:"#85d5e9",85:"#9ae2f4"},light:{25:"#004351"}},pink:{light:{25:"#70003f",70:"#fc78b1",85:"#ffc0d7"},dark:{25:"#572b3d",75:"#fd92bd",80:"#ffa9ca"}}},{blue:Lr,cyan:wo,green:yr,neutral:ze,orange:va,pink:So,purple:wa,red:In,teal:xs,yellow:br}=$B,Zt=(e,t)=>`${e}${t}`,TB=cP({name:"astryx-neutral",tokens:{keyword:[wa.light[30],wa.light[80]],string:[yr.light[30],yr.light[80]],comment:[ze.light[45],ze.dark[65]],number:[va.light[30],va.dark[80]],function:[Lr.light[30],Lr.dark[80]],type:[wa.light[30],wa.light[80]],variable:[ze.light[5],ze.dark[90]],operator:[ze.light[45],ze.dark[65]],constant:[va.light[30],va.dark[80]],tag:[In.light[30],In.dark[80]],attribute:[br.light[30],br.light[80]],property:[xs.light[30],xs.light[80]],punctuation:[ze.light[45],ze.dark[65]],background:[ze.light[100],ze.dark[5]]}}),CB={"--astryx-theme-neutral-color-status-fill-accent":["#0074e2","#6d9cfe"],"--astryx-theme-neutral-color-status-fill-success":["#198100","#64af4c"],"--astryx-theme-neutral-color-status-fill-warning":"#ffce2f","--astryx-theme-neutral-color-status-fill-error":["#c9303a","#ff705d"],"--astryx-theme-neutral-color-status-muted-accent":[Lr.light[85],Zt(Lr.dark[75],"3D")],"--astryx-theme-neutral-color-on-tint-neutral":["#fafafa4D","#0a0a0a4D"],"--astryx-theme-neutral-color-on-tint-overlay-hover":["#fafafa1A","#0a0a0a1A"],"--astryx-theme-neutral-color-on-tint-overlay-pressed":["#fafafa33","#0a0a0a33"],"--astryx-theme-neutral-color-destructive-overlay-hover":[Zt(In.light[70],"0D"),Zt(In.dark[65],"0D")],"--astryx-theme-neutral-color-destructive-overlay-pressed":[Zt(In.light[70],"1A"),Zt(In.dark[65],"1A")]},Gn={accent:"var(--astryx-theme-neutral-color-status-fill-accent)",success:"var(--astryx-theme-neutral-color-status-fill-success)",warning:"var(--astryx-theme-neutral-color-status-fill-warning)",error:"var(--astryx-theme-neutral-color-status-fill-error)"},jB=_C({name:"neutral",localTokens:CB,typography:{scale:{base:14,ratio:1.2},body:{family:"Figtree",fallbacks:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif'},heading:{family:"Figtree",fallbacks:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',weights:{3:"bold",4:"bold"}},code:{family:"ui-monospace",fallbacks:'"SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace'}},adaptations:{rules:[{when:{pointer:"coarse",width:{below:"lg"}},value:{typography:{scale:{base:16,ratio:1.1736}}}}]},motion:{fast:125,medium:300,slow:700,ratio:.75},syntax:TB,tokens:{"--color-background-surface":[ze.light[100],ze.dark[15]],"--color-background-body":[ze.light[95],ze.dark[10]],"--color-background-card":[ze.light[100],ze.dark[10]],"--color-background-popover":[ze.light[100],ze.dark[10]],"--color-background-muted":[ze.light[95],ze.dark[10]],"--color-accent":[ze.light[10],ze.dark[95]],"--color-accent-muted":[ze.light[95],ze.dark[15]],"--color-neutral":[Zt(ze.light[0],"0F"),Zt(ze.dark[100],"1A")],"--color-overlay":[Zt(ze.light[0],"80"),Zt(ze.dark[0],"CC")],"--color-overlay-hover":[Zt(ze.light[0],"0D"),Zt(ze.dark[100],"0D")],"--color-overlay-pressed":[Zt(ze.light[0],"1A"),Zt(ze.dark[100],"1A")],"--color-text-primary":[ze.light[0],ze.dark[100]],"--color-text-secondary":[ze.light[30],ze.dark[65]],"--color-text-disabled":[ze.light[60],ze.dark[35]],"--color-text-accent":[ze.light[10],ze.dark[95]],"--color-on-dark":ze.light[100],"--color-on-light":ze.light[5],"--color-on-accent":[ze.light[100],ze.dark[5]],"--color-on-success":[ze.light[100],ze.dark[5]],"--color-on-error":[ze.light[100],ze.dark[5]],"--color-on-warning":ze.light[5],"--color-icon-accent":[ze.light[10],ze.dark[95]],"--color-icon-primary":[ze.light[0],ze.dark[100]],"--color-icon-secondary":[ze.light[45],ze.dark[65]],"--color-icon-disabled":[ze.light[60],ze.dark[35]],"--color-success":[yr.light[25],yr.light[80]],"--color-error":[In.light[25],In.dark[85]],"--color-warning":[br.light[25],br.light[85]],"--color-success-muted":[yr.dark[85],Zt(yr.light[75],"3D")],"--color-error-muted":[In.light[85],Zt(In.dark[75],"3D")],"--color-warning-muted":[br.dark[90],Zt(br.light[75],"3D")],"--color-border":[Zt(ze.light[0],"14"),Zt(ze.dark[100],"1A")],"--color-border-emphasized":[ze.light[85],ze.dark[35]],"--color-skeleton":[ze.light[95],ze.dark[35]],"--color-shadow":[Zt(ze.light[0],"1A"),Zt(ze.dark[0],"4D")],"--color-tint-hover":["black","white"],"--color-background-red":[In.light[85],In.dark[25]],"--color-border-red":[In.light[80],In.light[65]],"--color-icon-red":[In.light[25],In.dark[75]],"--color-text-red":[In.light[25],In.dark[80]],"--color-background-orange":[va.light[85],va.dark[25]],"--color-border-orange":[va.light[85],va.dark[65]],"--color-icon-orange":[va.light[25],va.light[75]],"--color-text-orange":[va.light[25],va.dark[80]],"--color-background-yellow":[br.dark[90],br.dark[25]],"--color-border-yellow":[br.dark[80],br.light[65]],"--color-icon-yellow":[br.light[25],br.light[75]],"--color-text-yellow":[br.light[25],br.light[80]],"--color-background-green":[yr.dark[85],yr.dark[25]],"--color-border-green":[yr.dark[80],yr.light[65]],"--color-icon-green":[yr.light[25],yr.light[75]],"--color-text-green":[yr.light[25],yr.light[75]],"--color-background-teal":[xs.light[85],xs.dark[25]],"--color-border-teal":[xs.light[80],xs.dark[65]],"--color-icon-teal":[xs.light[25],xs.dark[75]],"--color-text-teal":[xs.light[25],xs.light[80]],"--color-background-cyan":[wo.dark[85],wo.dark[25]],"--color-border-cyan":[wo.dark[80],wo.dark[65]],"--color-icon-cyan":[wo.light[25],wo.dark[75]],"--color-text-cyan":[wo.light[25],wo.dark[80]],"--color-background-blue":[Lr.light[85],Lr.dark[25]],"--color-border-blue":[Lr.light[80],Lr.dark[65]],"--color-icon-blue":[Lr.light[25],Lr.dark[75]],"--color-text-blue":[Lr.light[25],Lr.dark[80]],"--color-background-purple":[wa.light[90],wa.dark[25]],"--color-border-purple":[wa.light[85],wa.light[70]],"--color-icon-purple":[wa.light[25],wa.light[75]],"--color-text-purple":[wa.light[25],wa.dark[80]],"--color-background-pink":[So.light[85],So.dark[25]],"--color-border-pink":[So.light[85],So.light[70]],"--color-icon-pink":[So.light[25],So.dark[75]],"--color-text-pink":[So.light[25],So.dark[80]],"--color-background-gray":[ze.light[90],ze.dark[20]],"--color-border-gray":[ze.light[85],ze.dark[15]],"--color-icon-gray":[ze.light[30],ze.dark[65]],"--color-text-gray":[ze.light[10],ze.dark[85]],"--radius-none":"0px","--radius-inner":"0.375rem","--radius-element":"0.625rem","--radius-container":"0.75rem","--radius-page":"1.75rem","--radius-full":"9999px","--shadow-low":"0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 25%)), 0 4px 8px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 40%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 8%))","--shadow-med":"0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 35%)), 0 4px 12px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 12%))","--shadow-high":"0 4px 6px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%)), 0 12px 24px light-dark(oklch(0 0 0 / 15%), oklch(0 0 0 / 70%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 15%))","--shadow-inset-hover":`inset 0px 0px 0px 2px ${Zt(Lr.light[50],"4D")}`,"--shadow-inset-selected":`inset 0px 0px 0px 2px ${Zt(Lr.light[50],"80")}`,"--shadow-inset-success":`inset 0px 0px 0px 2px ${Zt(yr.light[45],"4D")}`,"--shadow-inset-warning":`inset 0px 0px 0px 2px ${Zt(br.light[85],"4D")}`,"--shadow-inset-error":`inset 0px 0px 0px 2px ${Zt(In.light[55],"4D")}`},components:{button:{"variant:destructive":{backgroundColor:"var(--color-error-muted)",color:"var(--color-error)","--color-overlay-hover":"var(--astryx-theme-neutral-color-destructive-overlay-hover)","--color-overlay-pressed":"var(--astryx-theme-neutral-color-destructive-overlay-pressed)"}},badge:{"variant:info":{backgroundColor:Gn.accent,color:"var(--color-on-accent)"},"variant:neutral":{backgroundColor:"var(--color-background-gray)",color:"var(--color-text-gray)"},"variant:success":{backgroundColor:Gn.success,color:"var(--color-on-success)"},"variant:warning":{backgroundColor:Gn.warning,color:"var(--color-on-warning)"},"variant:error":{backgroundColor:Gn.error,color:"var(--color-on-error)"},"variant:red":{backgroundColor:"var(--color-background-red)",color:"var(--color-text-red)"},"variant:orange":{backgroundColor:"var(--color-background-orange)",color:"var(--color-text-orange)"},"variant:yellow":{backgroundColor:"var(--color-background-yellow)",color:"var(--color-text-yellow)"},"variant:green":{backgroundColor:"var(--color-background-green)",color:"var(--color-text-green)"},"variant:teal":{backgroundColor:"var(--color-background-teal)",color:"var(--color-text-teal)"},"variant:cyan":{backgroundColor:"var(--color-background-cyan)",color:"var(--color-text-cyan)"},"variant:blue":{backgroundColor:"var(--color-background-blue)",color:"var(--color-text-blue)"},"variant:purple":{backgroundColor:"var(--color-background-purple)",color:"var(--color-text-purple)"},"variant:pink":{backgroundColor:"var(--color-background-pink)",color:"var(--color-text-pink)"},"variant:gray":{backgroundColor:"var(--color-background-gray)",color:"var(--color-text-gray)"}},"status-dot":{"variant:success":{backgroundColor:Gn.success},"variant:warning":{backgroundColor:Gn.warning},"variant:error":{backgroundColor:Gn.error},"variant:accent":{backgroundColor:Gn.accent}},"avatar-status-dot":{"variant:success":{backgroundColor:Gn.success},"variant:error":{backgroundColor:Gn.error}},"segmented-control":{base:{padding:"var(--spacing-1)"}},"segmented-control-item":{"size:sm":{height:"calc(var(--size-element-sm) - 8px)"},"size:md":{height:"calc(var(--size-element-md) - 8px)"},"size:lg":{height:"calc(var(--size-element-lg) - 8px)"},selected:{boxShadow:"none"}},banner:{base:{"--color-neutral":"var(--astryx-theme-neutral-color-on-tint-neutral)","--color-overlay-hover":"var(--astryx-theme-neutral-color-on-tint-overlay-hover)","--color-overlay-pressed":"var(--astryx-theme-neutral-color-on-tint-overlay-pressed)"},"status:info":{"--color-accent-muted":"var(--astryx-theme-neutral-color-status-muted-accent)","--color-text-primary":"var(--color-text-blue)","--color-text-secondary":"var(--color-text-blue)","--color-accent":"var(--color-text-blue)"},"status:success":{"--color-text-primary":"var(--color-text-green)","--color-text-secondary":"var(--color-text-green)","--color-success":"var(--color-text-green)"},"status:warning":{"--color-text-primary":"var(--color-text-yellow)","--color-text-secondary":"var(--color-text-yellow)","--color-warning":"var(--color-text-yellow)"},"status:error":{"--color-text-primary":"var(--color-text-red)","--color-text-secondary":"var(--color-text-red)","--color-error":"var(--color-text-red)"}},"step-indicator":{"status:accent":{"--color-accent":Gn.accent},"status:success":{"--color-success":Gn.success},"status:warning":{"--color-warning":Gn.warning},"status:error":{"--color-error":Gn.error}},switch:{base:{"--color-background-gray":"var(--color-border-emphasized)"}},"progress-bar":{base:{"--color-background-muted":"var(--color-border-emphasized)"},"variant:accent":{"--color-accent":Gn.accent},"variant:success":{"--color-success":Gn.success},"variant:warning":{"--color-warning":Gn.warning},"variant:error":{"--color-error":Gn.error}},card:{base:{padding:"var(--spacing-3)"}},section:{base:{padding:"var(--spacing-3)"}}},icons:EB});const iE='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',RB=_C({name:"foundry",extends:jB,typography:{scale:{base:14,ratio:1.2},body:{family:"Poppins",fallbacks:iE},heading:{family:"Poppins",fallbacks:iE,weights:{3:"bold",4:"bold"}},code:{family:"ui-monospace",fallbacks:'"SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace'}}}),T0=g.createContext(null);T0.displayName="TitlebarActionsContext";function b4(){const e=g.use(T0);if(!e)throw new Error("Titlebar actions must be used within TitlebarActionsProvider");return e}function AB(){return b4().setTarget}function MB({children:e}){const[t,r]=g.useState(null);return x.jsx(T0,{value:{target:t,setTarget:r},children:e})}function Ed({children:e}){const{target:t}=b4();return t?xd.createPortal(e,t):null}const Qe=e=>typeof e=="string",$u=()=>{let e,t;const r=new Promise((s,o)=>{e=s,t=o});return r.resolve=e,r.reject=t,r},hh=e=>e==null?"":String(e),NB=(e,t,r)=>{e.forEach(s=>{t[s]&&(r[s]=t[s])})},zB=/###/g,lE=e=>e&&e.includes("###")?e.replace(zB,"."):e,cE=e=>!e||Qe(e),Bu=(e,t,r)=>{const s=Qe(t)?t.split("."):t;let o=0;for(;o<s.length-1;){if(cE(e))return{};const l=lE(s[o]);!e[l]&&r&&(e[l]=new r),Object.prototype.hasOwnProperty.call(e,l)?e=e[l]:e={},++o}return cE(e)?{}:{obj:e,k:lE(s[o])}},uE=(e,t,r)=>{const{obj:s,k:o}=Bu(e,t,Object);if(s!==void 0||t.length===1){s[o]=r;return}let l=t[t.length-1],u=t.slice(0,t.length-1),f=Bu(e,u,Object);for(;f.obj===void 0&&u.length;)l=`${u[u.length-1]}.${l}`,u=u.slice(0,u.length-1),f=Bu(e,u,Object),f?.obj&&typeof f.obj[`${f.k}.${l}`]<"u"&&(f.obj=void 0);f.obj[`${f.k}.${l}`]=r},LB=(e,t,r,s)=>{const{obj:o,k:l}=Bu(e,t,Object);o[l]=o[l]||[],o[l].push(r)},gp=(e,t)=>{const{obj:r,k:s}=Bu(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,s))return r[s]},DB=(e,t,r)=>{const s=gp(e,r);return s!==void 0?s:gp(t,r)},k4=(e,t,r)=>{for(const s in t)s!=="__proto__"&&s!=="constructor"&&(Object.prototype.hasOwnProperty.call(e,s)?Qe(e[s])||e[s]instanceof String||Qe(t[s])||t[s]instanceof String?r&&(e[s]=t[s]):k4(e[s],t[s],r):e[s]=t[s]);return e},Is=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),OB={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},IB=e=>Qe(e)?e.replace(/[&<>"'\/]/g,t=>OB[t]):e;class _B{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const s=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,s),this.regExpQueue.push(t),s}}const qB=[" ",",","?","!",";"],PB=new _B(20),BB=(e,t,r)=>{t=t||"",r=r||"";const s=qB.filter(u=>!t.includes(u)&&!r.includes(u));if(s.length===0)return!0;const o=PB.getRegExp(`(${s.map(u=>u==="?"?"\\?":u).join("|")})`);let l=!o.test(e);if(!l){const u=e.indexOf(r);u>0&&!o.test(e.substring(0,u))&&(l=!0)}return l},W1=(e,t,r=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const s=t.split(r);let o=e;for(let l=0;l<s.length;){if(!o||typeof o!="object")return;let u,f="";for(let d=l;d<s.length;++d)if(d!==l&&(f+=r),f+=s[d],u=o[f],(typeof u=="function"||f==="__proto__")&&!Object.prototype.hasOwnProperty.call(o,f)&&(u=void 0),u!==void 0){if(["string","number","boolean"].includes(typeof u)&&d<s.length-1)continue;l+=d-l+1;break}o=u}return o},cc=e=>e?.replace(/_/g,"-"),HB={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class mp{constructor(t,r={}){this.init(t,r)}init(t,r={}){this.prefix=r.prefix||"i18next:",this.logger=t||HB,this.options=r,this.debug=r.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,s,o){return o&&!this.debug?null:(t=t.map(l=>Qe(l)?l.replace(/[\r\n\x00-\x1F\x7F]/g," "):l),Qe(t[0])&&(t[0]=`${s}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new mp(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new mp(this.logger,t)}}var gs=new mp;class dx{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const o=this.observers[s].get(r)||0;this.observers[s].set(r,o+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}once(t,r){const s=(...o)=>{r(...o),this.off(t,s)};return this.on(t,s),this}emit(t,...r){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([o,l])=>{for(let u=0;u<l;u++)o(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,l])=>{for(let u=0;u<l;u++)o(t,...r)})}}const dE=new WeakSet;class fE extends dx{constructor(t,r={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.includes(t)||this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,s,o={}){const l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let f;t.includes(".")?f=t.split("."):(f=[t,r],s&&(Array.isArray(s)?f.push(...s):Qe(s)&&l?f.push(...s.split(l)):f.push(s)));const d=gp(this.data,f);return d==null&&!r&&!s&&t.includes(".")&&(t=f[0],r=f[1],s=f.slice(2).join(".")),d!=null||!u||!Qe(s)?d:W1(this.data?.[t]?.[r],s,l)}addResource(t,r,s,o,l={silent:!1}){const u=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let f=[t,r];s&&(f=f.concat(u?s.split(u):s)),t.includes(".")&&(f=t.split("."),o=r,r=f[1]),this.addNamespaces(r),uE(this.data,f,o),l.silent||this.emit("added",t,r,s,o)}addResources(t,r,s,o={silent:!1}){for(const l in s)(Qe(s[l])||Array.isArray(s[l]))&&this.addResource(t,r,l,s[l],{silent:!0});o.silent||this.emit("added",t,r,s)}addResourceBundle(t,r,s,o,l,u={silent:!1,skipCopy:!1}){let f=[t,r];t.includes(".")&&(f=t.split("."),o=s,s=r,r=f[1]),this.addNamespaces(r);let d=gp(this.data,f)||{};u.skipCopy||(s=JSON.parse(JSON.stringify(s))),o?k4(d,s,l):d={...d,...s},uE(this.data,f,d),u.silent||this.emit("added",t,r,s)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(o=>{const l=r[o];return dE.has(l)?!0:!l||Object.keys(l).length===0?!1:(typeof l=="object"&&dE.add(l),!0)})}toJSON(){return this.data}}var v4={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,s,o){return e.forEach(l=>{t=this.processors[l]?.process(t,r,s,o)??t}),t}};const w4=Symbol("i18next/PATH_KEY");function FB(){const e=[],t=Object.create(null);let r;return t.get=(s,o)=>(r?.revoke?.(),o===w4?e:(e.push(o),r=Proxy.revocable(s,t),r.proxy)),Proxy.revocable(Object.create(null),t).proxy}function vi(e,t){const{[w4]:r}=e(FB()),s=t?.keySeparator??".",o=t?.nsSeparator??":",l=t?.enableSelector==="strict";if(r.length>1&&o){const u=t?.ns,f=l?Array.isArray(u)?u:u?[u]:null:Array.isArray(u)?u:null;if(f&&(l?f:f.length>1?f.slice(1):[]).includes(r[0]))return`${r[0]}${o}${r.slice(1).join(s)}`}return r.join(s)}const Py=e=>!Qe(e)&&typeof e!="boolean"&&typeof e!="number";class yp extends dx{constructor(t,r={}){super(),NB(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=gs.create("translator"),this.checkedLoadedFor={}}changeLanguage(t){t&&(this.language=t)}exists(t,r={interpolation:{}}){const s={...r};if(t==null)return!1;const o=this.resolve(t,s);if(o?.res===void 0)return!1;const l=Py(o.res);return!(s.returnObjects===!1&&l)}extractFromKey(t,r){let s=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let l=r.ns||this.options.defaultNS||[];const u=s&&t.includes(s),f=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!BB(t,s,o);if(u&&!f){const d=t.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:t,namespaces:Qe(l)?[l]:l};const p=t.split(s);(s!==o||s===o&&this.options.ns.includes(p[0]))&&(l=p.shift()),t=p.join(o)}return{key:t,namespaces:Qe(l)?[l]:l}}translate(t,r,s){let o=typeof r=="object"?{...r}:r;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),t==null)return"";typeof t=="function"&&(t=vi(t,{...this.options,...o})),Array.isArray(t)||(t=[String(t)]),t=t.map(q=>typeof q=="function"?vi(q,{...this.options,...o}):String(q));const l=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,u=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:f,namespaces:d}=this.extractFromKey(t[t.length-1],o),p=d[d.length-1];let y=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;y===void 0&&(y=":");const m=o.lng||this.language,k=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m?.toLowerCase()==="cimode")return k?l?{res:`${p}${y}${f}`,usedKey:f,exactUsedKey:f,usedLng:m,usedNS:p,usedParams:this.getUsedParamsDetails(o)}:`${p}${y}${f}`:l?{res:f,usedKey:f,exactUsedKey:f,usedLng:m,usedNS:p,usedParams:this.getUsedParamsDetails(o)}:f;const v=this.resolve(t,o);let w=v?.res;const S=v?.usedKey||f,E=v?.exactUsedKey||f,R=["[object Number]","[object Function]","[object RegExp]"],C=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,T=!this.i18nFormat||this.i18nFormat.handleAsObject,A=o.count!==void 0&&!Qe(o.count),N=yp.hasDefaultValue(o),L=A?this.pluralResolver.getSuffix(m,o.count,o):"",D=o.ordinal&&A?this.pluralResolver.getSuffix(m,o.count,{ordinal:!1}):"",j=A&&!o.ordinal&&o.count===0,O=j&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${L}`]||o[`defaultValue${D}`]||o.defaultValue;let M=w;T&&!w&&N&&(M=O);const H=Py(M),F=Object.prototype.toString.apply(M);if(T&&M&&H&&!R.includes(F)&&!(Qe(C)&&Array.isArray(M))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const q=this.options.returnedObjectHandler?this.options.returnedObjectHandler(S,M,{...o,ns:d}):`key '${f} (${this.language})' returned an object instead of string.`;return l?(v.res=q,v.usedParams=this.getUsedParamsDetails(o),v):q}if(u){const q=Array.isArray(M),B=q?[]:{},U=q?E:S;for(const _ in M)if(Object.prototype.hasOwnProperty.call(M,_)){const P=`${U}${u}${_}`;N&&!w?B[_]=this.translate(P,{...o,defaultValue:Py(O)?O[_]:void 0,joinArrays:!1,ns:d}):B[_]=this.translate(P,{...o,joinArrays:!1,ns:d}),B[_]===P&&(B[_]=M[_])}w=B}}else if(T&&Qe(C)&&Array.isArray(w))w=w.join(C),w&&(w=this.extendTranslation(w,t,o,v,s));else{let q=!1,B=!1;!this.isValidLookup(w)&&N&&(q=!0,w=O),this.isValidLookup(w)||(B=!0,w=f);const _=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&B?void 0:w,P=N&&O!==w&&this.options.updateMissing;if(B||q||P){if(this.logger.log(P?"updateKey":"missingKey",m,p,A&&!P?`${f}${this.pluralResolver.getSuffix(m,o.count,o)}`:f,P?O:w),u){const Q=this.resolve(f,{...o,keySeparator:!1});Q&&Q.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let G=[];const X=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&X&&X[0])for(let Q=0;Q<X.length;Q++)G.push(X[Q]);else this.options.saveMissingTo==="all"?G=this.languageUtils.toResolveHierarchy(o.lng||this.language):G.push(o.lng||this.language);const Z=(Q,K,ae)=>{const I=N&&ae!==w?ae:_;this.options.missingKeyHandler?this.options.missingKeyHandler(Q,p,K,I,P,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(Q,p,K,I,P,o),this.emit("missingKey",Q,p,K,w)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?G.forEach(Q=>{const K=this.pluralResolver.getSuffixes(Q,o);j&&o[`defaultValue${this.options.pluralSeparator}zero`]&&!K.includes(`${this.options.pluralSeparator}zero`)&&K.push(`${this.options.pluralSeparator}zero`),K.forEach(ae=>{Z([Q],f+ae,o[`defaultValue${ae}`]||O)})}):Z(G,f,O))}w=this.extendTranslation(w,t,o,v,s),B&&w===f&&this.options.appendNamespaceToMissingKey&&(w=`${p}${y}${f}`),(B||q)&&this.options.parseMissingKeyHandler&&(w=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${y}${f}`:f,q?w:void 0,o))}return l?(v.res=w,v.usedParams=this.getUsedParamsDetails(o),v):w}extendTranslation(t,r,s,o,l){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const d=Qe(t)&&(s?.interpolation?.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(d){const m=t.match(this.interpolator.nestingRegexp);p=m&&m.length}let y=s.replace&&!Qe(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(y={...this.options.interpolation.defaultVariables,...y}),t=this.interpolator.interpolate(t,y,s.lng||this.language||o.usedLng,s),d){const m=t.match(this.interpolator.nestingRegexp),k=m&&m.length;p<k&&(s.nest=!1)}!s.lng&&o&&o.res&&(s.lng=this.language||o.usedLng),s.nest!==!1&&(t=this.interpolator.nest(t,(...m)=>l?.[0]===m[0]&&!s.context?(this.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${r[0]}`),null):this.translate(...m,r),s)),s.interpolation&&this.interpolator.reset()}const u=s.postProcess||this.options.postProcess,f=Qe(u)?[u]:u;return t!=null&&f?.length&&s.applyPostProcessor!==!1&&(t=v4.handle(f,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),t}resolve(t,r={}){let s,o,l,u,f;return Qe(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(d=>typeof d=="function"?vi(d,{...this.options,...r}):d)),t.forEach(d=>{if(this.isValidLookup(s))return;const p=this.extractFromKey(d,r),y=p.key;o=y;let m=p.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const k=r.count!==void 0&&!Qe(r.count),v=k&&!r.ordinal&&r.count===0,w=r.context!==void 0&&(Qe(r.context)||typeof r.context=="number")&&r.context!=="",S=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);m.forEach(E=>{this.isValidLookup(s)||(f=E,!this.checkedLoadedFor[`${S[0]}-${E}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(f)&&(this.checkedLoadedFor[`${S[0]}-${E}`]=!0,this.logger.warn(`key "${o}" for languages "${S.join(", ")}" won't get resolved as namespace "${f}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),S.forEach(R=>{if(this.isValidLookup(s))return;u=R;const C=[y];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(C,y,R,E,r);else{let A;k&&(A=this.pluralResolver.getSuffix(R,r.count,r));const N=`${this.options.pluralSeparator}zero`,L=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(k&&(r.ordinal&&A.startsWith(L)&&C.push(y+A.replace(L,this.options.pluralSeparator)),C.push(y+A),v&&C.push(y+N)),w){const D=`${y}${this.options.contextSeparator||"_"}${r.context}`;C.push(D),k&&(r.ordinal&&A.startsWith(L)&&C.push(D+A.replace(L,this.options.pluralSeparator)),C.push(D+A),v&&C.push(D+N))}}let T;for(;T=C.pop();)this.isValidLookup(s)||(l=T,s=this.getResource(R,E,T,r))}))})}),{res:s,usedKey:o,exactUsedKey:l,usedLng:u,usedNS:f}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,s,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,r,s,o):this.resourceStore.getResource(t,r,s,o)}getUsedParamsDetails(t={}){const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=t.replace&&!Qe(t.replace);let o=s?t.replace:t;if(s&&typeof t.count<"u"&&(o={...o,count:t.count}),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!s){o={...o};for(const l of r)delete o[l]}return o}static hasDefaultValue(t){const r="defaultValue";for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&s.startsWith(r)&&t[s]!==void 0)return!0;return!1}}class hE{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=gs.create("languageUtils"),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(t){if(t=cc(t),!t||!t.includes("-"))return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=cc(t),!t||!t.includes("-"))return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(Qe(t)&&t.includes("-")){let r;try{r=Intl.getCanonicalLocales(t)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(t)}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(s=>{if(r)return;const o=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&t.forEach(s=>{if(r)return;const o=this.getScriptPartFromCode(s);if(this.isSupportedCode(o))return r=o;const l=this.getLanguagePartFromCode(s);if(this.isSupportedCode(l))return r=l;r=this.options.supportedLngs.find(u=>u===l?!0:!u.includes("-")&&!l.includes("-")?!1:!!(u.includes("-")&&!l.includes("-")&&u.slice(0,u.indexOf("-"))===l))}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),Qe(t)&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let s=t[r];return s||(s=t[this.getScriptPartFromCode(r)]),s||(s=t[this.formatLanguageCode(r)]),s||(s=t[this.getLanguagePartFromCode(r)]),s||(s=t.default),s||[]}toResolveHierarchy(t,r){const s=this.options.fallbackLng,o=Array.isArray(s)?s.join("|"):s;o!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=o);const l=r===void 0||r===!1||Qe(r),u=r===void 0&&typeof this.options.fallbackLng=="function",f=Qe(t)&&l&&!u;let d=null;if(f){let k;r===void 0?k="undefined":r===!1?k="boolean:false":k=`string:${r}`,d=`${t.length}:${t}|${k}`}if(d!==null){const k=this.resolveHierarchyCache[d];if(k!==void 0)return k.slice()}const p=this.getFallbackCodes((r===!1?[]:r)||this.options.fallbackLng||[],t),y=[],m=k=>{k&&(this.isSupportedCode(k)?y.push(k):this.logger.warn(`rejecting language code not found in supportedLngs: ${k}`))};return Qe(t)&&(t.includes("-")||t.includes("_"))?(this.options.load!=="languageOnly"&&m(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&m(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&m(this.getLanguagePartFromCode(t))):Qe(t)&&m(this.formatLanguageCode(t)),p.forEach(k=>{const v=this.formatLanguageCode(k);y.includes(v)||m(v)}),d!==null?(this.resolveHierarchyCache[d]=y,y.slice()):y}}const pE={zero:0,one:1,two:2,few:3,many:4,other:5},xE={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class UB{constructor(t,r={}){this.languageUtils=t,this.options=r,this.logger=gs.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,r={}){const s=cc(t==="dev"?"en":t),o=r.ordinal?"ordinal":"cardinal",l=JSON.stringify({cleanedCode:s,type:o});if(l in this.pluralRulesCache)return this.pluralRulesCache[l];let u;try{u=new Intl.PluralRules(s,{type:o})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),xE;if(!t.match(/-|_/))return xE;const d=this.languageUtils.getLanguagePartFromCode(t);u=this.getRule(d,r)}return this.pluralRulesCache[l]=u,u}needsPlural(t,r={}){let s=this.getRule(t,r);return s||(s=this.getRule("dev",r)),s?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,r,s={}){return this.getSuffixes(t,s).map(o=>`${r}${o}`)}getSuffixes(t,r={}){let s=this.getRule(t,r);return s||(s=this.getRule("dev",r)),s?s.resolvedOptions().pluralCategories.sort((o,l)=>pE[o]-pE[l]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,r,s={}){const o=this.getRule(t,s);return o?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",r,s))}}const gE=(e,t,r,s=".",o=!0)=>{let l=DB(e,t,r);return!l&&o&&Qe(r)&&(l=W1(e,r,s),l===void 0&&(l=W1(t,r,s))),l};class mE{constructor(t={}){this.logger=gs.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(r=>r),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:s,useRawValueToEscape:o,prefix:l,prefixEscaped:u,suffix:f,suffixEscaped:d,formatSeparator:p,unescapeSuffix:y,unescapePrefix:m,nestingPrefix:k,nestingPrefixEscaped:v,nestingSuffix:w,nestingSuffixEscaped:S,nestingOptionsSeparator:E,maxReplaces:R,alwaysFormat:C}=t.interpolation;this.escape=r!==void 0?r:IB,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=l?Is(l):u||"{{",this.suffix=f?Is(f):d||"}}",this.formatSeparator=p||",",this.unescapePrefix=y?"":m?Is(m):"-",this.unescapeSuffix=this.unescapePrefix?"":y?Is(y):"",this.nestingPrefix=k?Is(k):v||Is("$t("),this.nestingSuffix=w?Is(w):S||Is(")"),this.nestingOptionsSeparator=E||",",this.maxReplaces=R||1e3,this.alwaysFormat=C!==void 0?C:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,s)=>r?.source===s?(r.lastIndex=0,r):new RegExp(s,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']|"[^"]*"|'[^']*'|\\((?:[^()"']|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,r,s,o){let l,u,f;const d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=S=>{if(!S.includes(this.formatSeparator)){const T=gE(r,d,S,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(T,void 0,s,{...o,...r,interpolationkey:S}):T}const E=S.split(this.formatSeparator),R=E.shift().trim(),C=E.join(this.formatSeparator).trim();return this.format(gE(r,d,R,this.options.keySeparator,this.options.ignoreJSONStructure),C,s,{...o,...r,interpolationkey:R})};this.resetRegExp(),!this.escapeValue&&typeof t=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(t)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const y=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,m=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,k=[{regex:this.regexpUnescape,safeValue:S=>S},{regex:this.regexp,safeValue:S=>this.escapeValue?this.escape(S):S}],v=[];let w=0;return k.forEach(S=>{for(f=0;l=S.regex.exec(t);){const E=l.index-w,R=v.find(([A,N])=>E>=A&&E<N);if(R){S.regex.lastIndex=R[1]+w;continue}const C=l[1].trim();if(u=p(C),u===void 0)if(typeof y=="function"){const A=y(t,l,o);u=Qe(A)?A:""}else if(o&&Object.prototype.hasOwnProperty.call(o,C))u="";else if(m){u=l[0];continue}else this.logger.warn(`missed to pass in variable ${C} for interpolating ${t}`),u="";else!Qe(u)&&!this.useRawValueToEscape&&(u=hh(u));const T=hh(S.safeValue(u));if(t=t.slice(0,l.index)+T+t.slice(l.index+l[0].length),m?(S.regex===this.regexpUnescape?v.push([l.index,l.index+T.length]):w+=T.length-l[0].length,S.regex.lastIndex+=T.length,S.regex.lastIndex-=l[0].length):S.regex.lastIndex=0,f++,f>=this.maxReplaces)break}}),t}nest(t,r,s={}){let o,l,u;const f=(m,k)=>{const v=this.nestingOptionsSeparator;if(!m.includes(v))return m;const w=m.split(new RegExp(`${Is(v)}[ ]*{`));let S=`{${w[1]}`;m=w[0],S=this.interpolate(S,u);const E=S.match(/'/g),R=S.match(/"/g);((E?.length??0)%2===0&&!R||(R?.length??0)%2!==0)&&(S=S.replace(/'/g,'"'));try{u=JSON.parse(S),k&&(u={...k,...u})}catch(C){return this.logger.warn(`failed parsing options string in nesting for key ${m}`,C),`${m}${v}${S}`}return u.defaultValue&&u.defaultValue.includes(this.prefix)&&delete u.defaultValue,m},d=new RegExp(this.nestingRegexp);let p="",y=0;for(;o=d.exec(t);){let m=[];u={...s},u=u.replace&&!Qe(u.replace)?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;const k=/{.*}/s.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(k!==-1&&(m=o[1].slice(k).split(this.formatSeparator).map(v=>v.trim()).filter(Boolean),o[1]=o[1].slice(0,k)),l=r(f.call(this,o[1].trim(),u),u),l&&o[0]===t&&!Qe(l))return l;Qe(l)||(l=hh(l)),l||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),l=""),m.length&&(l=m.reduce((v,w)=>this.format(v,w,s.lng,{...s,interpolationkey:o[1].trim()}),l.trim())),p+=t.slice(y,o.index)+hh(l),y=d.lastIndex,this.regexp.lastIndex=0}return y?p+t.slice(y):t}}const VB=e=>{let t=e.toLowerCase().trim();const r={};if(e.includes("(")){const s=e.split("(");t=s[0].toLowerCase().trim();const o=s[1].slice(0,-1);t==="currency"&&!o.includes(":")?r.currency||(r.currency=o.trim()):t==="relativetime"&&!o.includes(":")?r.range||(r.range=o.trim()):o.split(";").forEach(u=>{if(u){const[f,...d]=u.split(":"),p=d.join(":").trim().replace(/^'+|'+$/g,""),y=f.trim();r[y]||(r[y]=p),p==="false"&&(r[y]=!1),p==="true"&&(r[y]=!0),isNaN(p)||(r[y]=parseInt(p,10))}})}return{formatName:t,formatOptions:r}},yE=e=>{const t={};return(r,s,o)=>{let l=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(l={...l,[o.interpolationkey]:void 0});let u;try{u=s+JSON.stringify(l)}catch{return e(cc(s),o)(r)}let f=t[u];return f||(f=e(cc(s),o),t[u]=f),f(r)}},GB=e=>(t,r,s)=>e(cc(r),s)(t);class KB{constructor(t={}){this.logger=gs.create("formatter"),this.options=t,this.init(t)}init(t,r={interpolation:{}}){this.formatSeparator=r.interpolation.formatSeparator||",";const s=r.cacheInBuiltFormats?yE:GB;this.formats={number:s((o,l)=>{const u=new Intl.NumberFormat(o,{...l});return f=>u.format(f)}),currency:s((o,l)=>{const u=new Intl.NumberFormat(o,{...l,style:"currency"});return f=>u.format(f)}),datetime:s((o,l)=>{const u=new Intl.DateTimeFormat(o,{...l});return f=>u.format(f)}),relativetime:s((o,l)=>{const u=new Intl.RelativeTimeFormat(o,{...l});return f=>u.format(f,l.range||"day")}),list:s((o,l)=>{const u=new Intl.ListFormat(o,{...l});return f=>u.format(f)})}}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=yE(r)}format(t,r,s,o={}){if(!r||t==null)return t;const l=r.split(this.formatSeparator),u=[];for(let d=0;d<l.length;d++){let p=l[d];for(;p.indexOf("(")>-1&&!p.includes(")")&&d+1<l.length;)p=`${p}${this.formatSeparator}${l[++d]}`;u.push(p)}return u.reduce((d,p)=>{const{formatName:y,formatOptions:m}=VB(p);if(this.formats[y]){let k=d;try{const v=o?.formatParams?.[o.interpolationkey]||{},w=v.locale||v.lng||o.locale||o.lng||s;k=this.formats[y](d,w,{...m,...o,...v})}catch(v){this.logger.warn(v)}return k}else this.logger.warn(`there was no format function for ${y}`);return d},t)}}const WB=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class YB extends dx{constructor(t,r,s,o={}){super(),this.backend=t,this.store=r,this.services=s,this.languageUtils=s.languageUtils,this.options=o,this.logger=gs.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(s,o.backend,o)}queueLoad(t,r,s,o){const l={},u={},f={},d={};return t.forEach(p=>{let y=!0;r.forEach(m=>{const k=`${p}|${m}`;!s.reload&&this.store.hasResourceBundle(p,m)?this.state[k]=2:this.state[k]<0||(this.state[k]===1?u[k]===void 0&&(u[k]=!0):(this.state[k]=1,y=!1,u[k]===void 0&&(u[k]=!0),l[k]===void 0&&(l[k]=!0),d[m]===void 0&&(d[m]=!0)))}),y||(f[p]=!0)}),(Object.keys(l).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(l),pending:Object.keys(u),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(d)}}loaded(t,r,s){const o=t.split("|"),l=o[0],u=o[1];r&&this.emit("failedLoading",l,u,r),!r&&s&&this.store.addResourceBundle(l,u,s,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&s&&(this.state[t]=0);const f={};this.queue.forEach(d=>{LB(d.loaded,[l],u),WB(d,t),r&&d.errors.push(r),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(p=>{f[p]||(f[p]={});const y=d.loaded[p];y.length&&y.forEach(m=>{f[p][m]===void 0&&(f[p][m]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",f),this.queue=this.queue.filter(d=>!d.done)}read(t,r,s,o=0,l=this.retryTimeout,u){if(!t.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:s,tried:o,wait:l,callback:u});return}this.readingCalls++;const f=(p,y)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(p&&y&&o<this.maxRetries){setTimeout(()=>{this.read(t,r,s,o+1,l*2,u)},l);return}u(p,y)},d=this.backend[s].bind(this.backend);if(d.length===2){try{const p=d(t,r);p&&typeof p.then=="function"?p.then(y=>f(null,y)).catch(f):f(null,p)}catch(p){f(p)}return}return d(t,r,f)}prepareLoading(t,r,s={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();Qe(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Qe(r)&&(r=[r]);const l=this.queueLoad(t,r,s,o);if(!l.toLoad.length)return l.pending.length||o(),null;l.toLoad.forEach(u=>{this.loadOne(u)})}load(t,r,s){this.prepareLoading(t,r,{},s)}reload(t,r,s){this.prepareLoading(t,r,{reload:!0},s)}loadOne(t,r=""){const s=t.split("|"),o=s[0],l=s[1];this.read(o,l,"read",void 0,void 0,(u,f)=>{u&&this.logger.warn(`${r}loading namespace ${l} for language ${o} failed`,u),!u&&f&&this.logger.log(`${r}loaded namespace ${l} for language ${o}`,f),this.loaded(t,u,f)})}saveMissing(t,r,s,o,l,u={},f=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${s}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if(this.backend?.create){const d={...u,isUpdate:l},p=this.backend.create.bind(this.backend);if(p.length<6)try{let y;p.length===5?y=p(t,r,s,o,d):y=p(t,r,s,o),y&&typeof y.then=="function"?y.then(m=>f(null,m)).catch(f):f(null,y)}catch(y){f(y)}else p(t,r,s,o,f,d)}!t||!t[0]||this.store.addResource(t[0],r,s,o)}}}const By=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Qe(e[1])&&(t.defaultValue=e[1]),Qe(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(s=>{t[s]=r[s]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),bE=e=>(Qe(e.ns)&&(e.ns=[e.ns]),Qe(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Qe(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),ph=()=>{},XB=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Hu extends dx{constructor(t={},r){if(super(),this.options=bE(t),this.services={},this.logger=gs,this.modules={external:[]},XB(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(t={},r){this.isInitializing=!0,typeof t=="function"&&(r=t,t={}),t.defaultNS==null&&t.ns&&(Qe(t.ns)?t.defaultNS=t.ns:t.ns.includes("translation")||(t.defaultNS=t.ns[0]));const s=By();this.options={...s,...this.options,...bE(t)},this.options.interpolation={...s.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=s.overloadTranslationOptionHandler);const o=p=>p?typeof p=="function"?new p:p:null;if(!this.options.isClone){this.modules.logger?gs.init(o(this.modules.logger),this.options):gs.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=KB;const y=new hE(this.options);this.store=new fE(this.options.resources,this.options);const m=this.services;m.logger=gs,m.resourceStore=this.store,m.languageUtils=y,m.pluralResolver=new UB(y,{prepend:this.options.pluralSeparator}),p&&(m.formatter=o(p),m.formatter.init&&m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new mE(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new YB(o(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",(k,...v)=>{this.emit(k,...v)}),this.modules.languageDetector&&(m.languageDetector=o(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=o(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new yp(this.services,this.options),this.translator.on("*",(k,...v)=>{this.emit(k,...v)}),this.modules.external.forEach(k=>{k.init&&k.init(this)})}if(this.format=this.options.interpolation.format,r||(r=ph),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(p=>{this[p]=(...y)=>this.store[p](...y)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...y)=>(this.store[p](...y),this)});const f=$u(),d=()=>{const p=(y,m)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),f.resolve(m),r(y,m)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initAsync?d():setTimeout(d,0),f}loadResources(t,r=ph){let s=r;const o=Qe(t)?t:this.language;if(typeof t=="function"&&(s=t),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const l=[],u=f=>{if(!f||f==="cimode")return;this.services.languageUtils.toResolveHierarchy(f).forEach(p=>{p!=="cimode"&&(l.includes(p)||l.push(p))})};o?u(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>u(d)),this.options.preload?.forEach?.(f=>u(f)),this.services.backendConnector.load(l,this.options.ns,f=>{!f&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(f)})}else s(null)}reloadResources(t,r,s){const o=$u();return typeof t=="function"&&(s=t,t=void 0),typeof r=="function"&&(s=r,r=void 0),t||(t=this.languages),r||(r=this.options.ns),s||(s=ph),this.services.backendConnector.reload(t,r,l=>{o.resolve(),s(l)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&v4.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!["cimode","dev"].includes(t)){for(let r=0;r<this.languages.length;r++){const s=this.languages[r];if(!["cimode","dev"].includes(s)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}!this.resolvedLanguage&&!this.languages.includes(t)&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,r){this.isLanguageChangingTo=t;const s=$u();this.emit("languageChanging",t);const o=f=>{this.language=f,this.languages=this.services.languageUtils.toResolveHierarchy(f),this.resolvedLanguage=void 0,this.setResolvedLanguage(f)},l=(f,d)=>{d?this.isLanguageChangingTo===t&&(o(d),this.translator.changeLanguage(d),this.isLanguageChangingTo=void 0,this.emit("languageChanged",d),this.logger.log("languageChanged",d)):this.isLanguageChangingTo=void 0,s.resolve((...p)=>this.t(...p)),r&&r(f,(...p)=>this.t(...p))},u=f=>{!t&&!f&&this.services.languageDetector&&(f=[]);const d=Qe(f)?f:f&&f[0],p=this.store.hasLanguageSomeTranslations(d)?d:this.services.languageUtils.getBestMatchFromCodes(Qe(f)?[f]:f);p&&(this.language||o(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector?.cacheUserLanguage?.(p)),this.loadResources(p,y=>{l(y,p)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(t),s}getFixedT(t,r,s,o){const l=o?.scopeNs,u=(f,d,...p)=>{let y;typeof d!="object"?y=this.options.overloadTranslationOptionHandler([f,d].concat(p)):y={...d},y.lng=y.lng||u.lng,y.lngs=y.lngs||u.lngs;const m=y.ns!==void 0&&y.ns!==null;y.ns=y.ns||u.ns,y.keyPrefix!==""&&(y.keyPrefix=y.keyPrefix||s||u.keyPrefix);const k={...this.options,...y};Array.isArray(l)&&!m&&(k.ns=l),typeof y.keyPrefix=="function"&&(y.keyPrefix=vi(y.keyPrefix,k));const v=this.options.keySeparator||".";let w;return y.keyPrefix&&Array.isArray(f)?w=f.map(S=>(typeof S=="function"&&(S=vi(S,k)),`${y.keyPrefix}${v}${S}`)):(typeof f=="function"&&(f=vi(f,k)),w=y.keyPrefix?`${y.keyPrefix}${v}${f}`:f),this.t(w,y)};return Qe(t)?u.lng=t:u.lngs=t,u.ns=r,u.keyPrefix=s,u}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,r={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const u=(p,y)=>{const m=this.services.backendConnector.state[`${p}|${y}`];return m===-1||m===0||m===2};if(r.precheck){const p=r.precheck(this,u);if(p!==void 0)return p}if(this.hasResourceBundle(s,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages)return!0;const{languageUtils:f}=this.services,d=r.lng?f.isSupportedCode(s)&&f.toResolveHierarchy(s,!1)[0]:s;return!!((!d||u(d,t))&&(!o||u(l,t)))}loadNamespaces(t,r){const s=$u();return this.options.ns?(Qe(t)&&(t=[t]),t.forEach(o=>{this.options.ns.includes(o)||this.options.ns.push(o)}),this.loadResources(o=>{s.resolve(),r&&r(o)}),s):(r&&r(),Promise.resolve())}loadLanguages(t,r){const s=$u();Qe(t)&&(t=[t]);const o=this.options.preload||[],l=t.filter(u=>!o.includes(u)&&this.services.languageUtils.isSupportedCode(u));return l.length?(this.options.preload=o.concat(l),this.loadResources(u=>{s.resolve(),r&&r(u)}),s):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const o=new Intl.Locale(t);if(o&&o.getTextInfo){const l=o.getTextInfo();if(l&&l.direction)return l.direction}}catch{}const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=this.services?.languageUtils||new hE(By());return t.toLowerCase().indexOf("-latn")>1?"ltr":r.includes(s.getLanguagePartFromCode(t))||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},r){const s=new Hu(t,r);return s.createInstance=Hu.createInstance,s}cloneInstance(t={},r=ph){const s=t.forkResourceStore;s&&delete t.forkResourceStore;const o={...this.options,preload:!1,...t,isClone:!0},l=new Hu(o);if((t.debug!==void 0||t.prefix!==void 0)&&(l.logger=l.logger.clone(t)),["store","services","language"].forEach(f=>{l[f]=this[f]}),l.services={...this.services},l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},s){const f=p=>{const y=Array.isArray(p)?[...p]:{...p};return Object.keys(y).forEach(m=>{y[m]&&typeof y[m]=="object"&&(y[m]=f(y[m]))}),y},d=f(this.store.data);l.store=new fE(d,o),l.services.resourceStore=l.store}if(t.interpolation){const d={...By().interpolation,...this.options.interpolation,...t.interpolation},p={...o,interpolation:d};l.services.interpolator=new mE(p)}return l.translator=new yp(l.services,o),l.translator.on("*",(f,...d)=>{l.emit(f,...d)}),l.init(o,r),l.translator.options=o,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Bn=Hu.createInstance();Bn.createInstance;Bn.dir;Bn.init;Bn.loadResources;Bn.reloadResources;Bn.use;Bn.changeLanguage;Bn.getFixedT;Bn.t;Bn.exists;Bn.setDefaultNamespace;Bn.hasLoadedNamespace;Bn.loadNamespaces;Bn.loadLanguages;const ZB=(e,t,r,s)=>{const o=[r,{code:t,...s||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(o,"warn","react-i18next::",!0);ji(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)},kE={},Uh=(e,t,r,s)=>{ji(r)&&kE[r]||(ji(r)&&(kE[r]=new Date),ZB(e,t,r,s))},S4=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},Y1=(e,t,r)=>{e.loadNamespaces(t,S4(e,r))},vE=(e,t,r,s)=>{if(ji(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Y1(e,r,s);r.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,S4(e,s))},QB=(e,t,r={})=>!t.languages||!t.languages.length?(Uh(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:r.lng,precheck:(s,o)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!o(s.isLanguageChangingTo,e))return!1}}),ji=e=>typeof e=="string",JB=e=>typeof e=="object"&&e!==null,eH=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,tH={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},nH=e=>tH[e],rH=e=>e.replace(eH,nH);let aH={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:rH,transDefaultProps:void 0};const sH=()=>aH;let oH;const iH=()=>oH,E4=g.createContext();class lH{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var Hy={exports:{}},Fy={};var wE;function cH(){if(wE)return Fy;wE=1;var e=Lp();function t(m,k){return m===k&&(m!==0||1/m===1/k)||m!==m&&k!==k}var r=typeof Object.is=="function"?Object.is:t,s=e.useState,o=e.useEffect,l=e.useLayoutEffect,u=e.useDebugValue;function f(m,k){var v=k(),w=s({inst:{value:v,getSnapshot:k}}),S=w[0].inst,E=w[1];return l(function(){S.value=v,S.getSnapshot=k,d(S)&&E({inst:S})},[m,v,k]),o(function(){return d(S)&&E({inst:S}),m(function(){d(S)&&E({inst:S})})},[m]),u(v),v}function d(m){var k=m.getSnapshot;m=m.value;try{var v=k();return!r(m,v)}catch{return!0}}function p(m,k){return k()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:f;return Fy.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,Fy}var SE;function uH(){return SE||(SE=1,Hy.exports=cH()),Hy.exports}var dH=uH();const fH=(e,t)=>{if(ji(t))return t;if(JB(t)&&ji(t.defaultValue))return t.defaultValue;if(typeof e=="function")return"";if(Array.isArray(e)){const r=e[e.length-1];return typeof r=="function"?"":r}return e},hH={t:fH,ready:!1},pH=()=>()=>{},xH=(e,t={})=>{const{i18n:r}=t,{i18n:s,defaultNS:o}=g.useContext(E4)||{},l=r||s||iH();l&&!l.reportNamespaces&&(l.reportNamespaces=new lH),l||Uh(l,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.");const u=g.useMemo(()=>({...sH(),...l?.options?.react,...t}),[l,t]),{useSuspense:f,keyPrefix:d,bindI18n:p,bindI18nStore:y}=u,m=o||l?.options?.defaultNS,k=ji(m)?[m]:m||["translation"],v=JSON.stringify(k),w=g.useMemo(()=>k,[v]);l?.reportNamespaces?.addUsedNamespaces?.(w);const S=g.useRef(0),E=g.useCallback(B=>{if(!l)return pH;const U=()=>{S.current+=1,B()};return p&&l.on(p,U),y&&l.store.on(y,U),()=>{p&&p.split(" ").forEach(_=>l.off(_,U)),y&&y.split(" ").forEach(_=>l.store.off(_,U))}},[l,p,y]),R=g.useRef(),C=g.useCallback(()=>{if(!l)return hH;const B=!!(l.isInitialized||l.initializedStoreOnce)&&w.every(Q=>QB(Q,l,u)),U=t.lng||l.language,_=S.current,P=typeof d=="function"?vi(d,{...l.options,ns:w}):d,G=R.current;if(G&&G.i18n===l&&G.ready===B&&G.lng===U&&G.namespaces===w&&G.keyPrefix===P&&G.revision===_)return G;const Z={t:l.getFixedT(U,u.nsMode==="fallback"?w:w[0],d,{scopeNs:w}),i18n:l,ready:B,lng:U,namespaces:w,keyPrefix:P,revision:_};return R.current=Z,Z},[l,w,d,u,t.lng]),[T,A]=g.useState(0);let{t:N,ready:L}=dH.useSyncExternalStore(E,C,C),D;l&&f&&!L&&(D=new Promise(B=>{const U=()=>B();t.lng?vE(l,t.lng,w,U):Y1(l,w,U)}),{t:N,ready:L}=C()),g.useEffect(()=>{if(l&&!L&&!f){const B=()=>A(U=>U+1);t.lng?vE(l,t.lng,w,B):Y1(l,w,B)}},[l,t.lng,w,L,f,T]);const j=l||{},O=g.useRef(null),M=g.useRef(),H=B=>`${B.language}|${B.resolvedLanguage}|${B.languages?.join(",")}`,F=B=>{const U=Object.getOwnPropertyDescriptors(B);U.__original&&delete U.__original;const _=Object.create(Object.getPrototypeOf(B),U);if(!Object.prototype.hasOwnProperty.call(_,"__original"))try{Object.defineProperty(_,"__original",{value:B,writable:!1,enumerable:!1,configurable:!1})}catch{}return _},q=g.useMemo(()=>{const B=j,U=B&&H(B);let _=B;B&&(O.current&&O.current.__original===B?M.current!==U?(_=F(B),O.current=_,M.current=U):_=O.current:(_=F(B),O.current=_,M.current=U));const P=!L&&!f?(...X)=>(Uh(l,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),N(...X)):N,G=[P,_,L];return G.t=P,G.i18n=_,G.ready=L,G},[N,j,L,j.resolvedLanguage,j.language,j.languages]);if(l&&f&&!L){let B=!1;try{B=!1}catch{}throw B&&Uh(l,"SUSPENDED_WHILE_LOADING","useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook"),D}return q};function gH({i18n:e,defaultNS:t,children:r}){const s=g.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return g.createElement(E4.Provider,{value:s},r)}const mH={"@astryx.pagination.label":"分页","@astryx.pagination.previous":"转到上一页","@astryx.pagination.next":"转到下一页","@astryx.pagination.previousBy":"后退 {step, number} {step, plural, other {页}}","@astryx.pagination.nextBy":"前进 {step, number} {step, plural, other {页}}","@astryx.pagination.first":"转到第一页","@astryx.pagination.last":"转到最后一页","@astryx.pagination.goToPage":"转到第 {page, number} 页","@astryx.pagination.goToPageInput":"转到页面","@astryx.pagination.pageLabel":"页","@astryx.pagination.ofTotalPages":"/ {total, number}","@astryx.pagination.pageIndicators":"页码指示器","@astryx.pagination.itemsPerPage":"每页项目数","@astryx.pagination.count":"{from, number}–{to, number},共 {total, number}","@astryx.pagination.pageOfTotal":"第 {current, number} 页,共 {total, number} 页","@astryx.pagination.pageAnnounce":"第 {current, number} 页","@astryx.powersearch.editor.field":"字段","@astryx.powersearch.editor.operator":"运算符","@astryx.powersearch.editor.addFilter":"+ 添加筛选条件","@astryx.powersearch.editor.removeFilter":"移除筛选条件","@astryx.powersearch.editor.groupOperator":"分组运算符","@astryx.powersearch.editor.group":"分组","@astryx.powersearch.editor.delete":"删除","@astryx.powersearch.editor.cancel":"取消","@astryx.powersearch.editor.apply":"应用","@astryx.powersearch.valueEditor.value":"值","@astryx.powersearch.valueEditor.values":"值","@astryx.powersearch.valueEditor.time":"时间","@astryx.powersearch.valueEditor.date":"日期","@astryx.powersearch.valueEditor.relativeDate":"相对日期","@astryx.powersearch.valueEditor.startDate":"开始日期","@astryx.powersearch.valueEditor.endDate":"结束日期","@astryx.powersearch.valueEditor.entities":"实体","@astryx.powersearch.valueEditor.searchPlaceholder":"搜索……","@astryx.powersearch.valueEditor.enterValuePlaceholder":"输入值……","@astryx.powersearch.valueEditor.addValuesPlaceholder":"添加值……","@astryx.powersearch.valueEditor.enterNumberPlaceholder":"输入数字……","@astryx.powersearch.valueEditor.selectValuesPlaceholder":"选择值……","@astryx.powersearch.operator.contains":"包含","@astryx.powersearch.operator.notContains":"不包含","@astryx.powersearch.operator.startsWith":"以此开头","@astryx.powersearch.operator.notStartsWith":"不以此开头","@astryx.powersearch.operator.endsWith":"以此结尾","@astryx.powersearch.operator.notEndsWith":"不以此结尾","@astryx.powersearch.operator.is":"等于","@astryx.powersearch.operator.isNot":"不等于","@astryx.powersearch.operator.equals":"等于","@astryx.powersearch.operator.notEquals":"不等于","@astryx.powersearch.operator.greaterThan":"大于","@astryx.powersearch.operator.lessThan":"小于","@astryx.powersearch.operator.greaterThanOrEqual":"大于或等于","@astryx.powersearch.operator.lessThanOrEqual":"小于或等于","@astryx.powersearch.operator.before":"早于","@astryx.powersearch.operator.after":"晚于","@astryx.powersearch.operator.between":"介于","@astryx.powersearch.operator.isTrue":"为真","@astryx.powersearch.operator.isFalse":"为假","@astryx.powersearch.operator.isAnyOf":"是其中任一","@astryx.powersearch.operator.isNoneOf":"不是其中任何一个","@astryx.powersearch.valueEditor.itemsCount":"{count, number} {count, plural, other {个项目}}","@astryx.powersearch.valueEditor.entitiesCount":"{count, number} {count, plural, other {个实体}}","@astryx.powersearch.valueEditor.dateRange":"日期范围","@astryx.powersearch.valueEditor.filtersCount":"{count, number} {count, plural, other {个筛选条件}}","@astryx.powersearch.resultCount":"{count, number} {count, plural, other {个结果}}","@astryx.alertDialog.cancel":"取消","@astryx.appShell.mobileNavigation":"移动导航","@astryx.appShell.skipToContent":"跳至内容","@astryx.avatar.nameWithStatus":"{name},{status}","@astryx.avatarGroup.label":"头像","@astryx.avatarGroup.keyboardHint":"使用箭头键在头像之间移动","@astryx.avatarGroup.overflow":"还有 {count, number} 个","@astryx.banner.dismiss":"关闭","@astryx.banner.dismissTitled":"{dismiss} {title}","@astryx.calendar.previousMonth":"上个月","@astryx.calendar.nextMonth":"下个月","@astryx.calendar.daySelected":"{date},已选择","@astryx.calendar.dayRangeStart":"{date},范围开始","@astryx.calendar.dayRangeEnd":"{date},范围结束","@astryx.calendar.dayRangeStartAndEnd":"{date},范围开始及结束","@astryx.calendar.dayInRange":"{date},范围内","@astryx.calendar.rangeStartAnnounce":"开始日期 {date}。请选择结束日期。","@astryx.calendar.rangeCompleteAnnounce":"已选范围:{start} 至 {end}。","@astryx.calendar.rangeClearedAnnounce":"已清除开始日期 {date}。请选择开始日期。","@astryx.carousel.label":"轮播","@astryx.carousel.scrollLeft":"向左滚动","@astryx.carousel.scrollRight":"向右滚动","@astryx.carousel.slideLabel":"第 {current, number} 张幻灯片,共 {total, number} 张","@astryx.chart.label":"图表","@astryx.chart.labelWithSeries":"按 {xKey} 显示 {series} 的图表","@astryx.chart.dataTableCaption":"{label}的数据","@astryx.chartLegend.label":"图表图例","@astryx.chat.status.sending":"发送中","@astryx.chat.status.sent":"已发送","@astryx.chat.status.delivered":"已送达","@astryx.chat.status.read":"已读","@astryx.chat.status.failed":"失败","@astryx.chat.messageAriaLabel":"消息 {status}","@astryx.chat.pastedText.expand":"展开","@astryx.checkboxList.item.checkbox":"复选框","@astryx.commandPalette.emptySearch":"无结果","@astryx.commandPalette.emptyBootstrap":"输入以搜索","@astryx.commandPalette.resultCount":"{count, number} {count, plural, other {个结果}}","@astryx.commandPalette.noResultsFor":"没有关于 {query} 的结果","@astryx.commandPalette.loading":"加载中","@astryx.dateRangeInput.presetDateRanges":"预设日期范围","@astryx.dateTimeInput.timePlaceholder":"选择时间","@astryx.dialog.close":"关闭","@astryx.dropdownMenu.label":"菜单","@astryx.dropdownMenu.back":"返回","@astryx.lightbox.close":"关闭","@astryx.lightbox.previous":"上一个","@astryx.lightbox.next":"下一个","@astryx.chatTypingIndicator.one":"{name} 正在输入……","@astryx.chatTypingIndicator.many":"{names} 正在输入……","@astryx.chatTypingIndicator.others":"另外 {count, number} {count, plural, one {人} other {人}}","@astryx.listInput.emptyTitle":"尚未添加 {itemName}","@astryx.listInput.emptyDescription":"添加 {itemName} 即可开始。","@astryx.listInput.addItem":"添加 {itemName}","@astryx.listInput.removeItem":"移除 {itemName} {position, number}","@astryx.listInput.removeUnavailable":"列表禁用时无法移除","@astryx.listInput.reorderItem":"调整 {itemName} {position, number} 的顺序","@astryx.listInput.fieldLabelWithPosition":"{header},{itemName} {position, number},共 {total, number} 项","@astryx.listInput.reorderInstructions":"使用 Arrow Up 或 Arrow Down 将此项目移动一个位置。按 Space 或 Enter 将其拾起,以使用键盘继续重新排序。","@astryx.listInput.announceAdded":"已添加 {itemName} {position, number}。","@astryx.listInput.announceRemoved":"已移除 {itemName} {position, number}。","@astryx.listInput.announceGrabbed":"已拾起 {itemName} {position, number}。使用箭头键移动,按 Space 或 Enter 放下,按 Escape 取消。","@astryx.listInput.announceMovedToPosition":"已将 {itemName} 移至第 {position, number} 个位置,共 {total, number} 个位置。","@astryx.listInput.announceReorderCancelled":"已取消重新排序。","@astryx.listInput.announceReturnedToPosition":"{itemName} 已返回第 {position, number} 个位置。","@astryx.listInput.announceDropped":"已将 {itemName} 放在第 {position, number} 个位置,共 {total, number} 个位置。","@astryx.listInput.announceAlreadyAtBoundary":"此 {itemName} 已位于{boundary, select, first {最前面} last {最后面} other {}}。","@astryx.markdown.taskList":"任务列表","@astryx.markdown.table":"表格","@astryx.mobileNav.closeNavigation":"关闭导航","@astryx.multiSelector.selectAll":"全选","@astryx.multiSelector.searchPlaceholder":"搜索……","@astryx.multiSelector.searchOptions":"搜索选项","@astryx.multiSelector.empty":"无选项","@astryx.multiSelector.selectAllPartiallySelected":"{label},部分选择","@astryx.popover.close":"关闭弹出框","@astryx.selector.searchPlaceholder":"搜索……","@astryx.selector.searchOptions":"搜索选项","@astryx.selector.empty":"无选项","@astryx.sideNav.label":"侧边导航","@astryx.sideNav.resizeSidebar":"调整侧边栏尺寸","@astryx.sideNav.heading.openMenu":"打开菜单","@astryx.tabList.label":"标签页","@astryx.table.label":"表格","@astryx.table.noData":"暂无数据","@astryx.table.filter.allPlaceholder":"全部","@astryx.table.filter.reset":"重置","@astryx.table.filter.apply":"应用","@astryx.table.rowStatus.columnHeader":"行状态","@astryx.table.selection.selectAllRows":"选择所有行","@astryx.table.selection.selectRow":"选择行","@astryx.table.selection.selectRowNamed":"选择 {label}","@astryx.table.sort.ascending":"升序排序","@astryx.table.sort.descending":"降序排序","@astryx.table.sort.clear":"清除排序","@astryx.table.sort.direction.ascending":"升序","@astryx.table.sort.direction.descending":"降序","@astryx.table.sort.sortBy":"按 {label} 排序","@astryx.table.sort.sortedBy":"按 {label} 排序,{direction}","@astryx.table.sort.sortedByWithPriority":"按 {label} 排序,{direction},优先级 {rank, number}/{total, number}","@astryx.toast.dismiss":"关闭通知","@astryx.toast.viewport":"通知","@astryx.tokenizer.clearAll":"全部清除","@astryx.topNav.heading.openMenu":"打开菜单","@astryx.topNav.landmarkLabel":"顶部导航","@astryx.treeList.toggleChildren":"切换子项","@astryx.typeahead.emptySearchResults":"未找到结果","@astryx.typeahead.loading":"加载中","@astryx.typeahead.searchResults":"搜索结果","@astryx.typeahead.clearSelection":"清除选择","@astryx.breadcrumbs.label":"面包屑导航","@astryx.chat.composer.placeholder":"输入消息……","@astryx.chat.composerDrawer.label":"项目","@astryx.chat.composerInput.label":"消息输入框","@astryx.chat.speechRecognition.noSpeechDetected":"未检测到语音。","@astryx.commandPalette.label":"命令面板","@astryx.commandPalette.input.placeholder":"搜索……","@astryx.commandPalette.list.label":"命令","@astryx.contextMenu.label":"上下文菜单","@astryx.dateInput.placeholder":"选择日期","@astryx.dateInput.dialogLabel":"选择日期","@astryx.dateInput.closeCalendar":"关闭日历","@astryx.dateInput.openCalendar":"打开日历","@astryx.dateInput.toggleCalendarClose":"关闭日历","@astryx.dateInput.clear":"清除 {label}","@astryx.dateInput.invalidDate":"日期无效","@astryx.dateInput.resetPicking":"重置","@astryx.dateInput.savePicking":"保存","@astryx.dateInput.doneChoosingMonth":"完成","@astryx.dateInput.chooseMonthYear":"{monthYear},选择月份和年份","@astryx.dateInput.monthWheel":"月份","@astryx.dateInput.yearWheel":"年份","@astryx.dateTimeInput.timeHint12h":"例如:下午 2:30","@astryx.dateTimeInput.timeHint24h":"例如:14:30","@astryx.dateTimeInput.timeSuffix":"{label}时间","@astryx.dateTimeInput.timeOptionsLabel":"{label}选项","@astryx.dateRangeInput.placeholder":"选择日期范围","@astryx.dateRangeInput.dialogLabel":"选择日期范围","@astryx.dateTimeInput.placeholder":"选择日期","@astryx.dateTimeInput.dialogLabel":"选择日期和时间","@astryx.dateTimeInput.pickerMode":"日期/时间部分","@astryx.dateTimeInput.dateTab":"日期","@astryx.dateTimeInput.timeTab":"时间","@astryx.dateTimeInput.openTimePicker":"打开 {label}","@astryx.dateTimeInput.saveDatePicking":"保存日期","@astryx.dateTimeInput.hourWheel":"小时","@astryx.dateTimeInput.minuteWheel":"分钟","@astryx.dateTimeInput.secondWheel":"秒","@astryx.dateTimeInput.meridiemWheel":"上午/下午","@astryx.dateTimeInput.meridiemAM":"上午","@astryx.dateTimeInput.meridiemPM":"下午","@astryx.link.newTab":"(在新标签页中打开)","@astryx.mobileNav.toggle.open":"打开导航","@astryx.moreMenu.label":"更多选项","@astryx.multiSelector.selectPlaceholder":"选择……","@astryx.outline.label":"目录","@astryx.powersearch.label":"搜索","@astryx.powersearch.placeholder":"搜索……","@astryx.resizable.collapsed":"已折叠","@astryx.resizable.handle.label":"尺寸调整手柄","@astryx.selector.placeholder":"选择……","@astryx.sideNav.heading.dialogLabel":"导航菜单","@astryx.table.pagination.label":"表格分页","@astryx.table.pagination.labelAbove":"{label}(顶部)","@astryx.table.pagination.labelBelow":"{label}(底部)","@astryx.timeInput.placeholder":"选择时间","@astryx.timeInput.invalidTime":"时间无效","@astryx.timeInput.openPicker":"打开 {label}","@astryx.topNav.heading.dialogLabel":"导航菜单","@astryx.typeahead.searchPlaceholder":"搜索……","@astryx.banner.collapse":"折叠","@astryx.banner.expand":"展开","@astryx.button.loading":"加载中","@astryx.spinner.loading":"加载中","@astryx.chatComposerDrawer.expand":"展开 {label}","@astryx.chatComposerDrawer.collapse":"折叠 {label}","@astryx.chatDictationButton.startDictation":"开始语音输入","@astryx.chatDictationButton.stopDictation":"停止语音输入","@astryx.chatLayout.newMessages":"新消息","@astryx.chatLayoutScrollButton.scrollToBottom":"滚动到底部","@astryx.chatMessage.messageFrom":"来自 {sender} 的消息","@astryx.chatSendButton.stop":"停止","@astryx.chatSendButton.send":"发送","@astryx.chatToolCalls.error":"错误:{message}","@astryx.chatToolCalls.status.pending":"待处理","@astryx.chatToolCalls.status.running":"运行中","@astryx.chatToolCalls.status.complete":"已完成","@astryx.chatToolCalls.status.error":"失败","@astryx.chatToolCalls.groupLabel":"{count} 次工具调用","@astryx.chatTriggerMenu.suggestions":"建议","@astryx.citation.label":"引用 {number}:{title}","@astryx.codeBlock.copied":"已复制","@astryx.codeBlock.copyCode":"复制代码","@astryx.codeBlock.code":"代码","@astryx.field.optional":"可选","@astryx.field.required":"必填","@astryx.fileInput.clearLabel":"清除 {label}","@astryx.fileInput.dropHint":"将文件拖放到此处","@astryx.fileInput.errorInvalidType":"“{fileName}”不是受支持的文件类型","@astryx.fileInput.errorMaxFiles":"最多允许 {maxFiles} 个文件","@astryx.fileInput.errorMaxSize":"“{fileName}”超出 {maxSize} 限制","@astryx.fileInput.fileSelected":"已选择 1 个文件:{fileName}","@astryx.fileInput.filesSelected":"已选择 {count} 个文件","@astryx.fileInput.placeholder":"选择文件","@astryx.fileInput.placeholderMultiple":"选择文件","@astryx.fileInput.required":"必填","@astryx.fileInput.triggerWithFiles":"{label},{fileNames}","@astryx.keyboardHint.toNavigate":"进行导航","@astryx.lightbox.mediaViewer":"媒体查看器","@astryx.lightbox.zoom":"缩放","@astryx.lightbox.zoomedIn":"已放大,使用箭头键平移","@astryx.lightbox.zoomedOut":"已缩小","@astryx.metadataList.showMore":"显示更多","@astryx.metadataList.showLess":"收起","@astryx.mobileNav.navigation":"导航","@astryx.multiSelector.clearAll":"清除全部 {label}","@astryx.input.readOnly":"只读","@astryx.input.statusButton.error":"错误详情","@astryx.input.statusButton.warning":"警告详情","@astryx.input.statusButton.success":"成功详情","@astryx.numberInput.clearLabel":"清除 {label}","@astryx.numberInput.decrementLabel":"减少 {label}","@astryx.numberInput.incrementLabel":"增加 {label}","@astryx.selector.clearLabel":"清除 {label}","@astryx.sideNavCollapseButton.expandSidebar":"展开侧边栏","@astryx.sideNavCollapseButton.collapseSidebar":"折叠侧边栏","@astryx.sideNavItem.expand":"展开 {label}","@astryx.sideNavItem.collapse":"折叠 {label}","@astryx.sideNavItem.submenuLabel":"{label}子菜单","@astryx.tableFiltering.filterByColumn":"筛选 {header}","@astryx.tableGroupedRows.expandGroup":"展开分组 {groupKey}","@astryx.tableGroupedRows.collapseGroup":"折叠分组 {groupKey}","@astryx.tableRowExpansion.collapseRow":"折叠行","@astryx.tableRowExpansion.expandRow":"展开行","@astryx.tableRowExpansion.columnHeader":"行展开","@astryx.tableRowExpansion.collapseAllRows":"折叠所有行","@astryx.tableRowExpansion.expandAllRows":"展开所有行","@astryx.stepper.label":"进度","@astryx.stepper.previousStep":"上一步","@astryx.stepper.nextStep":"下一步","@astryx.step.goToStep":"转到步骤 {stepNumber, number}:{label}","@astryx.step.goToStepWithStatus":"转到步骤 {stepNumber, number}:{label},{status}","@astryx.step.optional":"可选","@astryx.step.status.completed":"已完成","@astryx.step.status.warning":"警告","@astryx.step.status.error":"错误","@astryx.tableTree.collapseRow":"折叠行","@astryx.tableTree.expandRow":"展开行","@astryx.tableTree.collapseAllRows":"折叠所有行","@astryx.tableTree.expandAllRows":"展开所有行","@astryx.textArea.charactersRemaining":"还剩 {count, number} {count, plural, other {个字符}}","@astryx.textArea.charactersOverLimit":"超出 {count, number} {count, plural, other {个字符}}","@astryx.textInput.clearLabel":"清除 {label}","@astryx.thumbnail.remove":"移除 {accessibleName}","@astryx.thumbnail.open":"打开 {accessibleName}","@astryx.thumbnail.fallbackName":"缩略图","@astryx.timeInput.clearLabel":"清除 {label}","@astryx.timestamp.copyValue":"复制 {value}","@astryx.timestamp.copy":"复制","@astryx.timestamp.copied":"已复制","@astryx.timestamp.detailsLabel":"时间戳详情","@astryx.token.remove":"移除 {label}","@astryx.commandPalette.footer.navigate":"导航","@astryx.commandPalette.footer.select":"选择","@astryx.commandPalette.footer.close":"关闭","@astryx.multiSelector.selectionCleared":"已清除选择","@astryx.multiSelector.allSelected":"已全选","@astryx.multiSelector.selectionCount":"已选择 {count, number} 项,共 {total, number} 项","@astryx.multiSelector.emptySearchResults":"未找到结果","@astryx.multiSelector.resultCount":"{count, number} {count, plural, one {个结果} other {个结果}}","@astryx.selector.emptySearchResults":"未找到结果","@astryx.selector.resultCount":"{count, number} {count, plural, one {个结果} other {个结果}}","@astryx.typeahead.resultCount":"{count, number} {count, plural, one {个结果} other {个结果}}","@astryx.tokenizer.tokenAdded":"已添加 {label}","@astryx.tokenizer.tokenRemoved":"已移除 {label}","@astryx.lightbox.imagePosition":"第 {index, number} 张图片,共 {total, number} 张","@astryx.lightbox.mediaPosition":"{alt},第 {index, number} 项,共 {total, number} 项","@astryx.transferList.selectedLabel":"已选","@astryx.transferList.availableLabel":"可选","@astryx.transferList.ungroupedLabel":"其他","@astryx.transferList.searchPlaceholder":"搜索……","@astryx.transferList.searchLabel":"搜索 {label}","@astryx.transferList.selectedEmpty":"未选择任何选项","@astryx.transferList.availableEmpty":"没有可用选项","@astryx.transferList.noResults":"无结果","@astryx.transferList.clear":"清除","@astryx.transferList.addAll":"全部添加","@astryx.transferList.addOption":"添加 {label}","@astryx.transferList.removeOption":"移除 {label}","@astryx.transferList.reorderOption":"调整 {label} 的顺序","@astryx.transferList.transferDisabled":"{label} 无法移动","@astryx.transferList.reorderDisabled":"{label} 无法调整顺序","@astryx.transferList.reorderInstructions":"按 Space 或 Enter 拾起项目。使用 Arrow Up、Arrow Down、Home 或 End 移动项目。按 Space 或 Enter 放下,或按 Escape 取消。","@astryx.transferList.announceAdded":"已添加 {label}。已选择 {count, number} {count, plural, one {个项目} other {个项目}}。","@astryx.transferList.announceRemoved":"已移除 {label}。已选择 {count, number} {count, plural, one {个项目} other {个项目}}。","@astryx.transferList.announceBulkAdded":"已添加 {count, number} {count, plural, one {个项目} other {个项目}}。","@astryx.transferList.announceBulkRemoved":"已移除 {count, number} {count, plural, one {个项目} other {个项目}}。","@astryx.transferList.announceGrabbed":"已拾起 {label},位于第 {position, number} 个位置,共 {total, number} 个位置。使用箭头键移动,按 Space 或 Enter 放下,或按 Escape 取消。","@astryx.transferList.announceMoveCancelled":"已取消移动 {label}。","@astryx.transferList.announceDropped":"已将 {label} 放在第 {position, number} 个位置,共 {total, number} 个位置。","@astryx.transferList.announceReturned":"{label} 已返回第 {position, number} 个位置。","@astryx.transferList.announceMovedToPosition":"{label},第 {position, number} 个位置,共 {total, number} 个位置。","@astryx.transferList.announceSearchResults":"找到 {count, number} {count, plural, one {个项目} other {个项目}}。","@astryx.transferListSelector.apply":"应用","@astryx.transferListSelector.cancel":"取消","@astryx.transferListSelector.triggerLabel":"已选择 {count, number} 项"},yH={"@astryx.pagination.label":"分頁","@astryx.pagination.previous":"前往上一頁","@astryx.pagination.next":"前往下一頁","@astryx.pagination.previousBy":"後退 {step, number} {step, plural, other {頁}}","@astryx.pagination.nextBy":"前進 {step, number} {step, plural, other {頁}}","@astryx.pagination.first":"前往第一頁","@astryx.pagination.last":"前往最後一頁","@astryx.pagination.goToPage":"前往第 {page, number} 頁","@astryx.pagination.goToPageInput":"前往頁面","@astryx.pagination.pageLabel":"頁","@astryx.pagination.ofTotalPages":"/ {total, number}","@astryx.pagination.pageIndicators":"頁碼指示器","@astryx.pagination.itemsPerPage":"每頁項目數","@astryx.pagination.count":"{from, number}–{to, number},共 {total, number}","@astryx.pagination.pageOfTotal":"第 {current, number} 頁,共 {total, number} 頁","@astryx.pagination.pageAnnounce":"第 {current, number} 頁","@astryx.powersearch.editor.field":"欄位","@astryx.powersearch.editor.operator":"運算子","@astryx.powersearch.editor.addFilter":"+ 新增篩選條件","@astryx.powersearch.editor.removeFilter":"移除篩選條件","@astryx.powersearch.editor.groupOperator":"群組運算子","@astryx.powersearch.editor.group":"群組","@astryx.powersearch.editor.delete":"刪除","@astryx.powersearch.editor.cancel":"取消","@astryx.powersearch.editor.apply":"套用","@astryx.powersearch.valueEditor.value":"值","@astryx.powersearch.valueEditor.values":"值","@astryx.powersearch.valueEditor.time":"時間","@astryx.powersearch.valueEditor.date":"日期","@astryx.powersearch.valueEditor.relativeDate":"相對日期","@astryx.powersearch.valueEditor.startDate":"開始日期","@astryx.powersearch.valueEditor.endDate":"結束日期","@astryx.powersearch.valueEditor.entities":"實體","@astryx.powersearch.valueEditor.searchPlaceholder":"搜尋……","@astryx.powersearch.valueEditor.enterValuePlaceholder":"輸入值……","@astryx.powersearch.valueEditor.addValuesPlaceholder":"新增值……","@astryx.powersearch.valueEditor.enterNumberPlaceholder":"輸入數字……","@astryx.powersearch.valueEditor.selectValuesPlaceholder":"選擇值……","@astryx.powersearch.operator.contains":"包含","@astryx.powersearch.operator.notContains":"不包含","@astryx.powersearch.operator.startsWith":"以此開頭","@astryx.powersearch.operator.notStartsWith":"不以此開頭","@astryx.powersearch.operator.endsWith":"以此結尾","@astryx.powersearch.operator.notEndsWith":"不以此結尾","@astryx.powersearch.operator.is":"等於","@astryx.powersearch.operator.isNot":"不等於","@astryx.powersearch.operator.equals":"等於","@astryx.powersearch.operator.notEquals":"不等於","@astryx.powersearch.operator.greaterThan":"大於","@astryx.powersearch.operator.lessThan":"小於","@astryx.powersearch.operator.greaterThanOrEqual":"大於或等於","@astryx.powersearch.operator.lessThanOrEqual":"小於或等於","@astryx.powersearch.operator.before":"早於","@astryx.powersearch.operator.after":"晚於","@astryx.powersearch.operator.between":"介於","@astryx.powersearch.operator.isTrue":"為真","@astryx.powersearch.operator.isFalse":"為假","@astryx.powersearch.operator.isAnyOf":"是其中任一","@astryx.powersearch.operator.isNoneOf":"不是其中任何一個","@astryx.powersearch.valueEditor.itemsCount":"{count, number} {count, plural, other {個項目}}","@astryx.powersearch.valueEditor.entitiesCount":"{count, number} {count, plural, other {個實體}}","@astryx.powersearch.valueEditor.dateRange":"日期範圍","@astryx.powersearch.valueEditor.filtersCount":"{count, number} {count, plural, other {個篩選條件}}","@astryx.powersearch.resultCount":"{count, number} {count, plural, other {個結果}}","@astryx.alertDialog.cancel":"取消","@astryx.appShell.mobileNavigation":"行動裝置導覽","@astryx.appShell.skipToContent":"跳至內容","@astryx.avatar.nameWithStatus":"{name},{status}","@astryx.avatarGroup.label":"頭像","@astryx.avatarGroup.keyboardHint":"使用方向鍵在頭像之間移動","@astryx.avatarGroup.overflow":"還有 {count, number} 個","@astryx.banner.dismiss":"關閉","@astryx.banner.dismissTitled":"{dismiss} {title}","@astryx.calendar.previousMonth":"上個月","@astryx.calendar.nextMonth":"下個月","@astryx.calendar.daySelected":"{date},已選取","@astryx.calendar.dayRangeStart":"{date},範圍開始","@astryx.calendar.dayRangeEnd":"{date},範圍結束","@astryx.calendar.dayRangeStartAndEnd":"{date},範圍開始及結束","@astryx.calendar.dayInRange":"{date},範圍內","@astryx.calendar.rangeStartAnnounce":"開始日期 {date}。請選擇結束日期。","@astryx.calendar.rangeCompleteAnnounce":"已選範圍:{start} 至 {end}。","@astryx.calendar.rangeClearedAnnounce":"已清除開始日期 {date}。請選擇開始日期。","@astryx.carousel.label":"輪播","@astryx.carousel.scrollLeft":"向左捲動","@astryx.carousel.scrollRight":"向右捲動","@astryx.carousel.slideLabel":"第 {current, number} 張投影片,共 {total, number} 張","@astryx.chart.label":"圖表","@astryx.chart.labelWithSeries":"依 {xKey} 顯示 {series} 的圖表","@astryx.chart.dataTableCaption":"{label}的資料","@astryx.chartLegend.label":"圖表圖例","@astryx.chat.status.sending":"傳送中","@astryx.chat.status.sent":"已傳送","@astryx.chat.status.delivered":"已送達","@astryx.chat.status.read":"已讀","@astryx.chat.status.failed":"失敗","@astryx.chat.messageAriaLabel":"訊息 {status}","@astryx.chat.pastedText.expand":"展開","@astryx.checkboxList.item.checkbox":"核取方塊","@astryx.commandPalette.emptySearch":"無結果","@astryx.commandPalette.emptyBootstrap":"輸入以搜尋","@astryx.commandPalette.resultCount":"{count, number} {count, plural, other {個結果}}","@astryx.commandPalette.noResultsFor":"找不到關於 {query} 的結果","@astryx.commandPalette.loading":"載入中","@astryx.dateRangeInput.presetDateRanges":"預設日期範圍","@astryx.dateTimeInput.timePlaceholder":"選擇時間","@astryx.dialog.close":"關閉","@astryx.dropdownMenu.label":"功能表","@astryx.dropdownMenu.back":"返回","@astryx.lightbox.close":"關閉","@astryx.lightbox.previous":"上一個","@astryx.lightbox.next":"下一個","@astryx.chatTypingIndicator.one":"{name} 正在輸入……","@astryx.chatTypingIndicator.many":"{names} 正在輸入……","@astryx.chatTypingIndicator.others":"另外 {count, number} {count, plural, one {人} other {人}}","@astryx.listInput.emptyTitle":"尚未新增 {itemName}","@astryx.listInput.emptyDescription":"新增 {itemName} 即可開始。","@astryx.listInput.addItem":"新增 {itemName}","@astryx.listInput.removeItem":"移除 {itemName} {position, number}","@astryx.listInput.removeUnavailable":"清單停用時無法移除","@astryx.listInput.reorderItem":"調整 {itemName} {position, number} 的順序","@astryx.listInput.fieldLabelWithPosition":"{header},{itemName} {position, number},共 {total, number} 項","@astryx.listInput.reorderInstructions":"使用 Arrow Up 或 Arrow Down 將此項目移動一個位置。按 Space 或 Enter 將其拿起,以使用鍵盤繼續重新排序。","@astryx.listInput.announceAdded":"已新增 {itemName} {position, number}。","@astryx.listInput.announceRemoved":"已移除 {itemName} {position, number}。","@astryx.listInput.announceGrabbed":"已拿起 {itemName} {position, number}。使用方向鍵移動,按 Space 或 Enter 放下,按 Escape 取消。","@astryx.listInput.announceMovedToPosition":"已將 {itemName} 移至第 {position, number} 個位置,共 {total, number} 個位置。","@astryx.listInput.announceReorderCancelled":"已取消重新排序。","@astryx.listInput.announceReturnedToPosition":"{itemName} 已回到第 {position, number} 個位置。","@astryx.listInput.announceDropped":"已將 {itemName} 放在第 {position, number} 個位置,共 {total, number} 個位置。","@astryx.listInput.announceAlreadyAtBoundary":"此 {itemName} 已位於{boundary, select, first {最前面} last {最後面} other {}}。","@astryx.markdown.taskList":"工作清單","@astryx.markdown.table":"表格","@astryx.mobileNav.closeNavigation":"關閉導覽","@astryx.multiSelector.selectAll":"全選","@astryx.multiSelector.searchPlaceholder":"搜尋……","@astryx.multiSelector.searchOptions":"搜尋選項","@astryx.multiSelector.empty":"無選項","@astryx.multiSelector.selectAllPartiallySelected":"{label},部分選取","@astryx.popover.close":"關閉彈出視窗","@astryx.selector.searchPlaceholder":"搜尋……","@astryx.selector.searchOptions":"搜尋選項","@astryx.selector.empty":"無選項","@astryx.sideNav.label":"側邊導覽","@astryx.sideNav.resizeSidebar":"調整側邊欄大小","@astryx.sideNav.heading.openMenu":"開啟功能表","@astryx.tabList.label":"索引標籤","@astryx.table.label":"表格","@astryx.table.noData":"無資料","@astryx.table.filter.allPlaceholder":"全部","@astryx.table.filter.reset":"重設","@astryx.table.filter.apply":"套用","@astryx.table.rowStatus.columnHeader":"列狀態","@astryx.table.selection.selectAllRows":"選取所有列","@astryx.table.selection.selectRow":"選取列","@astryx.table.selection.selectRowNamed":"選取 {label}","@astryx.table.sort.ascending":"遞增排序","@astryx.table.sort.descending":"遞減排序","@astryx.table.sort.clear":"清除排序","@astryx.table.sort.direction.ascending":"遞增","@astryx.table.sort.direction.descending":"遞減","@astryx.table.sort.sortBy":"依 {label} 排序","@astryx.table.sort.sortedBy":"依 {label} 排序,{direction}","@astryx.table.sort.sortedByWithPriority":"依 {label} 排序,{direction},優先順序 {rank, number}/{total, number}","@astryx.toast.dismiss":"關閉通知","@astryx.toast.viewport":"通知","@astryx.tokenizer.clearAll":"全部清除","@astryx.topNav.heading.openMenu":"開啟功能表","@astryx.topNav.landmarkLabel":"頂部導覽","@astryx.treeList.toggleChildren":"切換子項目","@astryx.typeahead.emptySearchResults":"找不到結果","@astryx.typeahead.loading":"載入中","@astryx.typeahead.searchResults":"搜尋結果","@astryx.typeahead.clearSelection":"清除選取","@astryx.breadcrumbs.label":"麵包屑導覽","@astryx.chat.composer.placeholder":"輸入訊息……","@astryx.chat.composerDrawer.label":"項目","@astryx.chat.composerInput.label":"訊息輸入框","@astryx.chat.speechRecognition.noSpeechDetected":"未偵測到語音。","@astryx.commandPalette.label":"命令選擇區","@astryx.commandPalette.input.placeholder":"搜尋……","@astryx.commandPalette.list.label":"命令","@astryx.contextMenu.label":"快顯功能表","@astryx.dateInput.placeholder":"選擇日期","@astryx.dateInput.dialogLabel":"選擇日期","@astryx.dateInput.closeCalendar":"關閉行事曆","@astryx.dateInput.openCalendar":"開啟行事曆","@astryx.dateInput.toggleCalendarClose":"關閉行事曆","@astryx.dateInput.clear":"清除 {label}","@astryx.dateInput.invalidDate":"日期無效","@astryx.dateInput.resetPicking":"重設","@astryx.dateInput.savePicking":"儲存","@astryx.dateInput.doneChoosingMonth":"完成","@astryx.dateInput.chooseMonthYear":"{monthYear},選擇月份和年份","@astryx.dateInput.monthWheel":"月份","@astryx.dateInput.yearWheel":"年份","@astryx.dateTimeInput.timeHint12h":"例如:下午 2:30","@astryx.dateTimeInput.timeHint24h":"例如:14:30","@astryx.dateTimeInput.timeSuffix":"{label}時間","@astryx.dateTimeInput.timeOptionsLabel":"{label}選項","@astryx.dateRangeInput.placeholder":"選擇日期範圍","@astryx.dateRangeInput.dialogLabel":"選擇日期範圍","@astryx.dateTimeInput.placeholder":"選擇日期","@astryx.dateTimeInput.dialogLabel":"選擇日期和時間","@astryx.dateTimeInput.pickerMode":"日期/時間區段","@astryx.dateTimeInput.dateTab":"日期","@astryx.dateTimeInput.timeTab":"時間","@astryx.dateTimeInput.openTimePicker":"開啟 {label}","@astryx.dateTimeInput.saveDatePicking":"儲存日期","@astryx.dateTimeInput.hourWheel":"小時","@astryx.dateTimeInput.minuteWheel":"分鐘","@astryx.dateTimeInput.secondWheel":"秒","@astryx.dateTimeInput.meridiemWheel":"上午/下午","@astryx.dateTimeInput.meridiemAM":"上午","@astryx.dateTimeInput.meridiemPM":"下午","@astryx.link.newTab":"(在新分頁中開啟)","@astryx.mobileNav.toggle.open":"開啟導覽","@astryx.moreMenu.label":"更多選項","@astryx.multiSelector.selectPlaceholder":"選擇……","@astryx.outline.label":"目錄","@astryx.powersearch.label":"搜尋","@astryx.powersearch.placeholder":"搜尋……","@astryx.resizable.collapsed":"已收合","@astryx.resizable.handle.label":"大小調整控點","@astryx.selector.placeholder":"選擇……","@astryx.sideNav.heading.dialogLabel":"導覽功能表","@astryx.table.pagination.label":"表格分頁","@astryx.table.pagination.labelAbove":"{label}(頂部)","@astryx.table.pagination.labelBelow":"{label}(底部)","@astryx.timeInput.placeholder":"選擇時間","@astryx.timeInput.invalidTime":"時間無效","@astryx.timeInput.openPicker":"開啟 {label}","@astryx.topNav.heading.dialogLabel":"導覽功能表","@astryx.typeahead.searchPlaceholder":"搜尋……","@astryx.banner.collapse":"收合","@astryx.banner.expand":"展開","@astryx.button.loading":"載入中","@astryx.spinner.loading":"載入中","@astryx.chatComposerDrawer.expand":"展開 {label}","@astryx.chatComposerDrawer.collapse":"收合 {label}","@astryx.chatDictationButton.startDictation":"開始語音輸入","@astryx.chatDictationButton.stopDictation":"停止語音輸入","@astryx.chatLayout.newMessages":"新訊息","@astryx.chatLayoutScrollButton.scrollToBottom":"捲動至底部","@astryx.chatMessage.messageFrom":"來自 {sender} 的訊息","@astryx.chatSendButton.stop":"停止","@astryx.chatSendButton.send":"傳送","@astryx.chatToolCalls.error":"錯誤:{message}","@astryx.chatToolCalls.status.pending":"待處理","@astryx.chatToolCalls.status.running":"執行中","@astryx.chatToolCalls.status.complete":"已完成","@astryx.chatToolCalls.status.error":"失敗","@astryx.chatToolCalls.groupLabel":"{count} 次工具呼叫","@astryx.chatTriggerMenu.suggestions":"建議","@astryx.citation.label":"引用 {number}:{title}","@astryx.codeBlock.copied":"已複製","@astryx.codeBlock.copyCode":"複製程式碼","@astryx.codeBlock.code":"程式碼","@astryx.field.optional":"選填","@astryx.field.required":"必填","@astryx.fileInput.clearLabel":"清除 {label}","@astryx.fileInput.dropHint":"將檔案拖放到此處","@astryx.fileInput.errorInvalidType":"「{fileName}」不是支援的檔案類型","@astryx.fileInput.errorMaxFiles":"最多允許 {maxFiles} 個檔案","@astryx.fileInput.errorMaxSize":"「{fileName}」超出 {maxSize} 限制","@astryx.fileInput.fileSelected":"已選取 1 個檔案:{fileName}","@astryx.fileInput.filesSelected":"已選取 {count} 個檔案","@astryx.fileInput.placeholder":"選擇檔案","@astryx.fileInput.placeholderMultiple":"選擇檔案","@astryx.fileInput.required":"必填","@astryx.fileInput.triggerWithFiles":"{label},{fileNames}","@astryx.keyboardHint.toNavigate":"進行導覽","@astryx.lightbox.mediaViewer":"媒體檢視器","@astryx.lightbox.zoom":"縮放","@astryx.lightbox.zoomedIn":"已放大,使用方向鍵平移","@astryx.lightbox.zoomedOut":"已縮小","@astryx.metadataList.showMore":"顯示更多","@astryx.metadataList.showLess":"收合","@astryx.mobileNav.navigation":"導覽","@astryx.multiSelector.clearAll":"清除全部 {label}","@astryx.input.readOnly":"唯讀","@astryx.input.statusButton.error":"錯誤詳細資料","@astryx.input.statusButton.warning":"警告詳細資料","@astryx.input.statusButton.success":"成功詳細資料","@astryx.numberInput.clearLabel":"清除 {label}","@astryx.numberInput.decrementLabel":"減少 {label}","@astryx.numberInput.incrementLabel":"增加 {label}","@astryx.selector.clearLabel":"清除 {label}","@astryx.sideNavCollapseButton.expandSidebar":"展開側邊欄","@astryx.sideNavCollapseButton.collapseSidebar":"收合側邊欄","@astryx.sideNavItem.expand":"展開 {label}","@astryx.sideNavItem.collapse":"收合 {label}","@astryx.sideNavItem.submenuLabel":"{label}子功能表","@astryx.tableFiltering.filterByColumn":"篩選 {header}","@astryx.tableGroupedRows.expandGroup":"展開群組 {groupKey}","@astryx.tableGroupedRows.collapseGroup":"收合群組 {groupKey}","@astryx.tableRowExpansion.collapseRow":"收合列","@astryx.tableRowExpansion.expandRow":"展開列","@astryx.tableRowExpansion.columnHeader":"列展開","@astryx.tableRowExpansion.collapseAllRows":"收合所有列","@astryx.tableRowExpansion.expandAllRows":"展開所有列","@astryx.stepper.label":"進度","@astryx.stepper.previousStep":"上一步","@astryx.stepper.nextStep":"下一步","@astryx.step.goToStep":"前往步驟 {stepNumber, number}:{label}","@astryx.step.goToStepWithStatus":"前往步驟 {stepNumber, number}:{label},{status}","@astryx.step.optional":"選填","@astryx.step.status.completed":"已完成","@astryx.step.status.warning":"警告","@astryx.step.status.error":"錯誤","@astryx.tableTree.collapseRow":"收合列","@astryx.tableTree.expandRow":"展開列","@astryx.tableTree.collapseAllRows":"收合所有列","@astryx.tableTree.expandAllRows":"展開所有列","@astryx.textArea.charactersRemaining":"還剩 {count, number} {count, plural, other {個字元}}","@astryx.textArea.charactersOverLimit":"超出 {count, number} {count, plural, other {個字元}}","@astryx.textInput.clearLabel":"清除 {label}","@astryx.thumbnail.remove":"移除 {accessibleName}","@astryx.thumbnail.open":"開啟 {accessibleName}","@astryx.thumbnail.fallbackName":"縮圖","@astryx.timeInput.clearLabel":"清除 {label}","@astryx.timestamp.copyValue":"複製 {value}","@astryx.timestamp.copy":"複製","@astryx.timestamp.copied":"已複製","@astryx.timestamp.detailsLabel":"時間戳記詳細資料","@astryx.token.remove":"移除 {label}","@astryx.commandPalette.footer.navigate":"導覽","@astryx.commandPalette.footer.select":"選擇","@astryx.commandPalette.footer.close":"關閉","@astryx.multiSelector.selectionCleared":"已清除選取","@astryx.multiSelector.allSelected":"已全選","@astryx.multiSelector.selectionCount":"已選取 {count, number} 項,共 {total, number} 項","@astryx.multiSelector.emptySearchResults":"找不到結果","@astryx.multiSelector.resultCount":"{count, number} {count, plural, one {個結果} other {個結果}}","@astryx.selector.emptySearchResults":"找不到結果","@astryx.selector.resultCount":"{count, number} {count, plural, one {個結果} other {個結果}}","@astryx.typeahead.resultCount":"{count, number} {count, plural, one {個結果} other {個結果}}","@astryx.tokenizer.tokenAdded":"已新增 {label}","@astryx.tokenizer.tokenRemoved":"已移除 {label}","@astryx.lightbox.imagePosition":"第 {index, number} 張圖片,共 {total, number} 張","@astryx.lightbox.mediaPosition":"{alt},第 {index, number} 項,共 {total, number} 項","@astryx.transferList.selectedLabel":"已選取","@astryx.transferList.availableLabel":"可用","@astryx.transferList.ungroupedLabel":"其他","@astryx.transferList.searchPlaceholder":"搜尋……","@astryx.transferList.searchLabel":"搜尋 {label}","@astryx.transferList.selectedEmpty":"沒有已選取的選項","@astryx.transferList.availableEmpty":"沒有可用選項","@astryx.transferList.noResults":"無結果","@astryx.transferList.clear":"清除","@astryx.transferList.addAll":"全部新增","@astryx.transferList.addOption":"新增 {label}","@astryx.transferList.removeOption":"移除 {label}","@astryx.transferList.reorderOption":"調整 {label} 的順序","@astryx.transferList.transferDisabled":"{label} 無法移動","@astryx.transferList.reorderDisabled":"{label} 無法調整順序","@astryx.transferList.reorderInstructions":"按 Space 或 Enter 拿起項目。使用 Arrow Up、Arrow Down、Home 或 End 移動項目。按 Space 或 Enter 放下,或按 Escape 取消。","@astryx.transferList.announceAdded":"已新增 {label}。已選取 {count, number} {count, plural, one {個項目} other {個項目}}。","@astryx.transferList.announceRemoved":"已移除 {label}。已選取 {count, number} {count, plural, one {個項目} other {個項目}}。","@astryx.transferList.announceBulkAdded":"已新增 {count, number} {count, plural, one {個項目} other {個項目}}。","@astryx.transferList.announceBulkRemoved":"已移除 {count, number} {count, plural, one {個項目} other {個項目}}。","@astryx.transferList.announceGrabbed":"已拿起 {label},位於第 {position, number} 個位置,共 {total, number} 個位置。使用方向鍵移動,按 Space 或 Enter 放下,或按 Escape 取消。","@astryx.transferList.announceMoveCancelled":"已取消移動 {label}。","@astryx.transferList.announceDropped":"已將 {label} 放在第 {position, number} 個位置,共 {total, number} 個位置。","@astryx.transferList.announceReturned":"{label} 已回到第 {position, number} 個位置。","@astryx.transferList.announceMovedToPosition":"{label},第 {position, number} 個位置,共 {total, number} 個位置。","@astryx.transferList.announceSearchResults":"找到 {count, number} {count, plural, one {個項目} other {個項目}}。","@astryx.transferListSelector.apply":"套用","@astryx.transferListSelector.cancel":"取消","@astryx.transferListSelector.triggerLabel":"已選取 {count, number} 項"},bH={"@astryx.pagination.label":"ページネーション","@astryx.pagination.previous":"前のページへ","@astryx.pagination.next":"次のページへ","@astryx.pagination.previousBy":"{step, number} {step, plural, other {ページ}}戻る","@astryx.pagination.nextBy":"{step, number} {step, plural, other {ページ}}進む","@astryx.pagination.first":"最初のページへ","@astryx.pagination.last":"最後のページへ","@astryx.pagination.goToPage":"{page, number} ページへ移動","@astryx.pagination.goToPageInput":"ページへ移動","@astryx.pagination.pageLabel":"ページ","@astryx.pagination.ofTotalPages":"/ {total, number}","@astryx.pagination.pageIndicators":"ページインジケーター","@astryx.pagination.itemsPerPage":"1 ページあたりの件数","@astryx.pagination.count":"{from, number}–{to, number} / {total, number}","@astryx.pagination.pageOfTotal":"{total, number} ページ中 {current, number} ページ","@astryx.pagination.pageAnnounce":"{current, number} ページ","@astryx.powersearch.editor.field":"フィールド","@astryx.powersearch.editor.operator":"演算子","@astryx.powersearch.editor.addFilter":"+ フィルターを追加","@astryx.powersearch.editor.removeFilter":"フィルターを削除","@astryx.powersearch.editor.groupOperator":"グループ演算子","@astryx.powersearch.editor.group":"グループ","@astryx.powersearch.editor.delete":"削除","@astryx.powersearch.editor.cancel":"キャンセル","@astryx.powersearch.editor.apply":"適用","@astryx.powersearch.valueEditor.value":"値","@astryx.powersearch.valueEditor.values":"値","@astryx.powersearch.valueEditor.time":"時刻","@astryx.powersearch.valueEditor.date":"日付","@astryx.powersearch.valueEditor.relativeDate":"相対日付","@astryx.powersearch.valueEditor.startDate":"開始日","@astryx.powersearch.valueEditor.endDate":"終了日","@astryx.powersearch.valueEditor.entities":"エンティティ","@astryx.powersearch.valueEditor.searchPlaceholder":"検索…","@astryx.powersearch.valueEditor.enterValuePlaceholder":"値を入力…","@astryx.powersearch.valueEditor.addValuesPlaceholder":"値を追加…","@astryx.powersearch.valueEditor.enterNumberPlaceholder":"数値を入力…","@astryx.powersearch.valueEditor.selectValuesPlaceholder":"値を選択…","@astryx.powersearch.operator.contains":"次を含む","@astryx.powersearch.operator.notContains":"次を含まない","@astryx.powersearch.operator.startsWith":"次で始まる","@astryx.powersearch.operator.notStartsWith":"次で始まらない","@astryx.powersearch.operator.endsWith":"次で終わる","@astryx.powersearch.operator.notEndsWith":"次で終わらない","@astryx.powersearch.operator.is":"次と等しい","@astryx.powersearch.operator.isNot":"次と等しくない","@astryx.powersearch.operator.equals":"次と等しい","@astryx.powersearch.operator.notEquals":"次と等しくない","@astryx.powersearch.operator.greaterThan":"次より大きい","@astryx.powersearch.operator.lessThan":"次より小さい","@astryx.powersearch.operator.greaterThanOrEqual":"次以上","@astryx.powersearch.operator.lessThanOrEqual":"次以下","@astryx.powersearch.operator.before":"次より前","@astryx.powersearch.operator.after":"次より後","@astryx.powersearch.operator.between":"次の範囲内","@astryx.powersearch.operator.isTrue":"真である","@astryx.powersearch.operator.isFalse":"偽である","@astryx.powersearch.operator.isAnyOf":"次のいずれか","@astryx.powersearch.operator.isNoneOf":"次のいずれでもない","@astryx.powersearch.valueEditor.itemsCount":"{count, number} {count, plural, other {アイテム}}","@astryx.powersearch.valueEditor.entitiesCount":"{count, number} {count, plural, other {エンティティ}}","@astryx.powersearch.valueEditor.dateRange":"期間","@astryx.powersearch.valueEditor.filtersCount":"{count, number} {count, plural, other {フィルター}}","@astryx.powersearch.resultCount":"{count, number} {count, plural, other {件の結果}}","@astryx.alertDialog.cancel":"キャンセル","@astryx.appShell.mobileNavigation":"モバイルナビゲーション","@astryx.appShell.skipToContent":"コンテンツへスキップ","@astryx.avatar.nameWithStatus":"{name}、{status}","@astryx.avatarGroup.label":"アバター","@astryx.avatarGroup.keyboardHint":"矢印キーでアバター間を移動できます","@astryx.avatarGroup.overflow":"他 {count, number} 件","@astryx.banner.dismiss":"閉じる","@astryx.banner.dismissTitled":"{title}を{dismiss}","@astryx.calendar.previousMonth":"前月","@astryx.calendar.nextMonth":"翌月","@astryx.calendar.daySelected":"{date}、選択済み","@astryx.calendar.dayRangeStart":"{date}、範囲の開始","@astryx.calendar.dayRangeEnd":"{date}、範囲の終了","@astryx.calendar.dayRangeStartAndEnd":"{date}、範囲の開始および終了","@astryx.calendar.dayInRange":"{date}、範囲内","@astryx.calendar.rangeStartAnnounce":"開始日 {date}。終了日を選択してください。","@astryx.calendar.rangeCompleteAnnounce":"選択した期間: {start} から {end} まで。","@astryx.calendar.rangeClearedAnnounce":"開始日 {date} をクリアしました。開始日を選択してください。","@astryx.carousel.label":"カルーセル","@astryx.carousel.scrollLeft":"左へスクロール","@astryx.carousel.scrollRight":"右へスクロール","@astryx.carousel.slideLabel":"{total, number} 枚中 {current, number} 枚目のスライド","@astryx.chart.label":"グラフ","@astryx.chart.labelWithSeries":"{xKey} 別の {series} のグラフ","@astryx.chart.dataTableCaption":"{label}のデータ","@astryx.chartLegend.label":"グラフの凡例","@astryx.chat.status.sending":"送信中","@astryx.chat.status.sent":"送信済み","@astryx.chat.status.delivered":"配信済み","@astryx.chat.status.read":"既読","@astryx.chat.status.failed":"失敗","@astryx.chat.messageAriaLabel":"メッセージ {status}","@astryx.chat.pastedText.expand":"展開","@astryx.checkboxList.item.checkbox":"チェックボックス","@astryx.commandPalette.emptySearch":"結果がありません","@astryx.commandPalette.emptyBootstrap":"入力して検索","@astryx.commandPalette.resultCount":"{count, number} {count, plural, other {件の結果}}","@astryx.commandPalette.noResultsFor":"{query} の結果がありません","@astryx.commandPalette.loading":"読み込み中","@astryx.dateRangeInput.presetDateRanges":"定義済みの期間","@astryx.dateTimeInput.timePlaceholder":"時刻を選択","@astryx.dialog.close":"閉じる","@astryx.dropdownMenu.label":"メニュー","@astryx.dropdownMenu.back":"戻る","@astryx.lightbox.close":"閉じる","@astryx.lightbox.previous":"前へ","@astryx.lightbox.next":"次へ","@astryx.chatTypingIndicator.one":"{name} が入力中…","@astryx.chatTypingIndicator.many":"{names} が入力中…","@astryx.chatTypingIndicator.others":"他 {count, number} {count, plural, other {人}}","@astryx.listInput.emptyTitle":"{itemName}はまだありません","@astryx.listInput.emptyDescription":"{itemName}を追加して始めましょう。","@astryx.listInput.addItem":"{itemName} を追加","@astryx.listInput.removeItem":"{itemName} {position, number} を削除","@astryx.listInput.removeUnavailable":"リストが無効な間は削除できません","@astryx.listInput.reorderItem":"{itemName} {position, number} を並べ替え","@astryx.listInput.fieldLabelWithPosition":"{header}、{itemName}、{total, number} 件中 {position, number} 件目","@astryx.listInput.reorderInstructions":"Arrow Up または Arrow Down でこのアイテムを 1 つ移動します。Space または Enter を押してつかむと、キーボードでさらに並べ替え操作ができます。","@astryx.listInput.announceAdded":"{itemName} {position, number} を追加しました。","@astryx.listInput.announceRemoved":"{itemName} {position, number} を削除しました。","@astryx.listInput.announceGrabbed":"{itemName} {position, number} をつかみました。矢印キーで移動、Space または Enter で配置、Escape でキャンセルします。","@astryx.listInput.announceMovedToPosition":"{itemName} を {total, number} 件中 {position, number} 番目に移動しました。","@astryx.listInput.announceReorderCancelled":"並べ替えをキャンセルしました。","@astryx.listInput.announceReturnedToPosition":"{itemName} は {position, number} 番目に戻りました。","@astryx.listInput.announceDropped":"{itemName} を {total, number} 件中 {position, number} 番目に配置しました。","@astryx.listInput.announceAlreadyAtBoundary":"この {itemName} はすでに{boundary, select, first {先頭} last {末尾} other {}}です。","@astryx.markdown.taskList":"タスクリスト","@astryx.markdown.table":"テーブル","@astryx.mobileNav.closeNavigation":"ナビゲーションを閉じる","@astryx.multiSelector.selectAll":"すべて選択","@astryx.multiSelector.searchPlaceholder":"検索…","@astryx.multiSelector.searchOptions":"検索オプション","@astryx.multiSelector.empty":"オプションがありません","@astryx.multiSelector.selectAllPartiallySelected":"{label}、一部選択","@astryx.popover.close":"ポップオーバーを閉じる","@astryx.selector.searchPlaceholder":"検索…","@astryx.selector.searchOptions":"検索オプション","@astryx.selector.empty":"オプションがありません","@astryx.sideNav.label":"サイドナビゲーション","@astryx.sideNav.resizeSidebar":"サイドバーのサイズを変更","@astryx.sideNav.heading.openMenu":"メニューを開く","@astryx.tabList.label":"タブ","@astryx.table.label":"テーブル","@astryx.table.noData":"データがありません","@astryx.table.filter.allPlaceholder":"すべて","@astryx.table.filter.reset":"リセット","@astryx.table.filter.apply":"適用","@astryx.table.rowStatus.columnHeader":"行の状態","@astryx.table.selection.selectAllRows":"すべての行を選択","@astryx.table.selection.selectRow":"行を選択","@astryx.table.selection.selectRowNamed":"{label} を選択","@astryx.table.sort.ascending":"昇順で並べ替え","@astryx.table.sort.descending":"降順で並べ替え","@astryx.table.sort.clear":"並べ替えをクリア","@astryx.table.sort.direction.ascending":"昇順","@astryx.table.sort.direction.descending":"降順","@astryx.table.sort.sortBy":"{label} で並べ替え","@astryx.table.sort.sortedBy":"{label} で並べ替え、{direction}","@astryx.table.sort.sortedByWithPriority":"{label} で並べ替え、{direction}、優先度 {total, number} 中 {rank, number}","@astryx.toast.dismiss":"通知を閉じる","@astryx.toast.viewport":"通知","@astryx.tokenizer.clearAll":"すべてクリア","@astryx.topNav.heading.openMenu":"メニューを開く","@astryx.topNav.landmarkLabel":"トップナビゲーション","@astryx.treeList.toggleChildren":"子要素の表示を切り替え","@astryx.typeahead.emptySearchResults":"結果が見つかりません","@astryx.typeahead.loading":"読み込み中","@astryx.typeahead.searchResults":"検索結果","@astryx.typeahead.clearSelection":"選択をクリア","@astryx.breadcrumbs.label":"パンくずリスト","@astryx.chat.composer.placeholder":"メッセージを入力…","@astryx.chat.composerDrawer.label":"アイテム","@astryx.chat.composerInput.label":"メッセージ入力","@astryx.chat.speechRecognition.noSpeechDetected":"音声が検出されませんでした。","@astryx.commandPalette.label":"コマンドパレット","@astryx.commandPalette.input.placeholder":"検索…","@astryx.commandPalette.list.label":"コマンド","@astryx.contextMenu.label":"コンテキストメニュー","@astryx.dateInput.placeholder":"日付を選択","@astryx.dateInput.dialogLabel":"日付を選択","@astryx.dateInput.closeCalendar":"カレンダーを閉じる","@astryx.dateInput.openCalendar":"カレンダーを開く","@astryx.dateInput.toggleCalendarClose":"カレンダーを閉じる","@astryx.dateInput.clear":"{label} をクリア","@astryx.dateInput.invalidDate":"無効な日付","@astryx.dateInput.resetPicking":"リセット","@astryx.dateInput.savePicking":"保存","@astryx.dateInput.doneChoosingMonth":"完了","@astryx.dateInput.chooseMonthYear":"{monthYear}、月と年を選択","@astryx.dateInput.monthWheel":"月","@astryx.dateInput.yearWheel":"年","@astryx.dateTimeInput.timeHint12h":"例: 午後 2:30","@astryx.dateTimeInput.timeHint24h":"例: 14:30","@astryx.dateTimeInput.timeSuffix":"{label}の時刻","@astryx.dateTimeInput.timeOptionsLabel":"{label}のオプション","@astryx.dateRangeInput.placeholder":"期間を選択","@astryx.dateRangeInput.dialogLabel":"期間を選択","@astryx.dateTimeInput.placeholder":"日付を選択","@astryx.dateTimeInput.dialogLabel":"日付と時刻を選択","@astryx.dateTimeInput.pickerMode":"日付/時刻セクション","@astryx.dateTimeInput.dateTab":"日付","@astryx.dateTimeInput.timeTab":"時刻","@astryx.dateTimeInput.openTimePicker":"{label} を開く","@astryx.dateTimeInput.saveDatePicking":"日付を保存","@astryx.dateTimeInput.hourWheel":"時","@astryx.dateTimeInput.minuteWheel":"分","@astryx.dateTimeInput.secondWheel":"秒","@astryx.dateTimeInput.meridiemWheel":"午前/午後","@astryx.dateTimeInput.meridiemAM":"午前","@astryx.dateTimeInput.meridiemPM":"午後","@astryx.link.newTab":"(新しいタブで開く)","@astryx.mobileNav.toggle.open":"ナビゲーションを開く","@astryx.moreMenu.label":"その他のオプション","@astryx.multiSelector.selectPlaceholder":"選択…","@astryx.outline.label":"目次","@astryx.powersearch.label":"検索","@astryx.powersearch.placeholder":"検索…","@astryx.resizable.collapsed":"折りたたみ済み","@astryx.resizable.handle.label":"サイズ変更ハンドル","@astryx.selector.placeholder":"選択…","@astryx.sideNav.heading.dialogLabel":"ナビゲーションメニュー","@astryx.table.pagination.label":"テーブルのページネーション","@astryx.table.pagination.labelAbove":"{label}(上部)","@astryx.table.pagination.labelBelow":"{label}(下部)","@astryx.timeInput.placeholder":"時刻を選択","@astryx.timeInput.invalidTime":"無効な時刻","@astryx.timeInput.openPicker":"{label} を開く","@astryx.topNav.heading.dialogLabel":"ナビゲーションメニュー","@astryx.typeahead.searchPlaceholder":"検索…","@astryx.banner.collapse":"折りたたむ","@astryx.banner.expand":"展開","@astryx.button.loading":"読み込み中","@astryx.spinner.loading":"読み込み中","@astryx.chatComposerDrawer.expand":"{label} を展開","@astryx.chatComposerDrawer.collapse":"{label} を折りたたむ","@astryx.chatDictationButton.startDictation":"音声入力を開始","@astryx.chatDictationButton.stopDictation":"音声入力を停止","@astryx.chatLayout.newMessages":"新着メッセージ","@astryx.chatLayoutScrollButton.scrollToBottom":"一番下へスクロール","@astryx.chatMessage.messageFrom":"{sender} からのメッセージ","@astryx.chatSendButton.stop":"停止","@astryx.chatSendButton.send":"送信","@astryx.chatToolCalls.error":"エラー: {message}","@astryx.chatToolCalls.status.pending":"待機中","@astryx.chatToolCalls.status.running":"実行中","@astryx.chatToolCalls.status.complete":"完了","@astryx.chatToolCalls.status.error":"失敗","@astryx.chatToolCalls.groupLabel":"{count} 件のツール呼び出し","@astryx.chatTriggerMenu.suggestions":"候補","@astryx.citation.label":"引用 {number}: {title}","@astryx.codeBlock.copied":"コピーしました","@astryx.codeBlock.copyCode":"コードをコピー","@astryx.codeBlock.code":"コード","@astryx.field.optional":"任意","@astryx.field.required":"必須","@astryx.fileInput.clearLabel":"{label} をクリア","@astryx.fileInput.dropHint":"ここにファイルをドロップ","@astryx.fileInput.errorInvalidType":"「{fileName}」は対応していないファイル形式です","@astryx.fileInput.errorMaxFiles":"ファイルは最大 {maxFiles} 件まで選択できます","@astryx.fileInput.errorMaxSize":"「{fileName}」はサイズ上限 {maxSize} を超えています","@astryx.fileInput.fileSelected":"1 件のファイルを選択しました: {fileName}","@astryx.fileInput.filesSelected":"{count} 件のファイルを選択しました","@astryx.fileInput.placeholder":"ファイルを選択","@astryx.fileInput.placeholderMultiple":"ファイルを選択","@astryx.fileInput.required":"必須","@astryx.fileInput.triggerWithFiles":"{label}、{fileNames}","@astryx.keyboardHint.toNavigate":"移動","@astryx.lightbox.mediaViewer":"メディアビューアー","@astryx.lightbox.zoom":"ズーム","@astryx.lightbox.zoomedIn":"ズームイン中。矢印キーで移動できます","@astryx.lightbox.zoomedOut":"ズームアウト中","@astryx.metadataList.showMore":"もっと見る","@astryx.metadataList.showLess":"一部を表示","@astryx.mobileNav.navigation":"ナビゲーション","@astryx.multiSelector.clearAll":"{label} をすべてクリア","@astryx.input.readOnly":"読み取り専用","@astryx.input.statusButton.error":"エラーの詳細","@astryx.input.statusButton.warning":"警告の詳細","@astryx.input.statusButton.success":"成功の詳細","@astryx.numberInput.clearLabel":"{label} をクリア","@astryx.numberInput.decrementLabel":"{label} を減らす","@astryx.numberInput.incrementLabel":"{label} を増やす","@astryx.selector.clearLabel":"{label} をクリア","@astryx.sideNavCollapseButton.expandSidebar":"サイドバーを展開","@astryx.sideNavCollapseButton.collapseSidebar":"サイドバーを折りたたむ","@astryx.sideNavItem.expand":"{label} を展開","@astryx.sideNavItem.collapse":"{label} を折りたたむ","@astryx.sideNavItem.submenuLabel":"{label} のサブメニュー","@astryx.tableFiltering.filterByColumn":"{header} をフィルター","@astryx.tableGroupedRows.expandGroup":"グループ {groupKey} を展開","@astryx.tableGroupedRows.collapseGroup":"グループ {groupKey} を折りたたむ","@astryx.tableRowExpansion.collapseRow":"行を折りたたむ","@astryx.tableRowExpansion.expandRow":"行を展開","@astryx.tableRowExpansion.columnHeader":"行の展開","@astryx.tableRowExpansion.collapseAllRows":"すべての行を折りたたむ","@astryx.tableRowExpansion.expandAllRows":"すべての行を展開","@astryx.stepper.label":"進捗","@astryx.stepper.previousStep":"前のステップ","@astryx.stepper.nextStep":"次のステップ","@astryx.step.goToStep":"ステップ {stepNumber, number}: {label} へ移動","@astryx.step.goToStepWithStatus":"ステップ {stepNumber, number}: {label} へ移動、{status}","@astryx.step.optional":"任意","@astryx.step.status.completed":"完了","@astryx.step.status.warning":"警告","@astryx.step.status.error":"エラー","@astryx.tableTree.collapseRow":"行を折りたたむ","@astryx.tableTree.expandRow":"行を展開","@astryx.tableTree.collapseAllRows":"すべての行を折りたたむ","@astryx.tableTree.expandAllRows":"すべての行を展開","@astryx.textArea.charactersRemaining":"残り {count, number} {count, plural, other {文字}}","@astryx.textArea.charactersOverLimit":"{count, number} {count, plural, other {文字}}超過","@astryx.textInput.clearLabel":"{label} をクリア","@astryx.thumbnail.remove":"{accessibleName} を削除","@astryx.thumbnail.open":"{accessibleName} を開く","@astryx.thumbnail.fallbackName":"サムネイル","@astryx.timeInput.clearLabel":"{label} をクリア","@astryx.timestamp.copyValue":"{value} をコピー","@astryx.timestamp.copy":"コピー","@astryx.timestamp.copied":"コピーしました","@astryx.timestamp.detailsLabel":"タイムスタンプの詳細","@astryx.token.remove":"{label} を削除","@astryx.commandPalette.footer.navigate":"移動","@astryx.commandPalette.footer.select":"選択","@astryx.commandPalette.footer.close":"閉じる","@astryx.multiSelector.selectionCleared":"選択をクリアしました","@astryx.multiSelector.allSelected":"すべて選択しました","@astryx.multiSelector.selectionCount":"{total, number} 件中 {count, number} 件選択済み","@astryx.multiSelector.emptySearchResults":"結果が見つかりません","@astryx.multiSelector.resultCount":"{count, number} {count, plural, other {件の結果}}","@astryx.selector.emptySearchResults":"結果が見つかりません","@astryx.selector.resultCount":"{count, number} {count, plural, other {件の結果}}","@astryx.typeahead.resultCount":"{count, number} {count, plural, other {件の結果}}","@astryx.tokenizer.tokenAdded":"{label} を追加しました","@astryx.tokenizer.tokenRemoved":"{label} を削除しました","@astryx.lightbox.imagePosition":"{total, number} 枚中 {index, number} 枚目の画像","@astryx.lightbox.mediaPosition":"{alt}、{total, number} 件中 {index, number} 件目","@astryx.transferList.selectedLabel":"選択済み","@astryx.transferList.availableLabel":"選択可能","@astryx.transferList.ungroupedLabel":"その他","@astryx.transferList.searchPlaceholder":"検索…","@astryx.transferList.searchLabel":"{label} を検索","@astryx.transferList.selectedEmpty":"選択したオプションはありません","@astryx.transferList.availableEmpty":"選択可能なオプションはありません","@astryx.transferList.noResults":"結果がありません","@astryx.transferList.clear":"クリア","@astryx.transferList.addAll":"すべて追加","@astryx.transferList.addOption":"{label} を追加","@astryx.transferList.removeOption":"{label} を削除","@astryx.transferList.reorderOption":"{label} を並べ替え","@astryx.transferList.transferDisabled":"{label} は移動できません","@astryx.transferList.reorderDisabled":"{label} は並べ替えできません","@astryx.transferList.reorderInstructions":"Space または Enter を押してアイテムをつかみます。Arrow Up、Arrow Down、Home、End で移動します。Space または Enter で配置、Escape でキャンセルします。","@astryx.transferList.announceAdded":"{label} を追加しました。{count, number} {count, plural, other {件のアイテム}}を選択済みです。","@astryx.transferList.announceRemoved":"{label} を削除しました。{count, number} {count, plural, other {件のアイテム}}を選択済みです。","@astryx.transferList.announceBulkAdded":"{count, number} {count, plural, other {件のアイテム}}を追加しました。","@astryx.transferList.announceBulkRemoved":"{count, number} {count, plural, other {件のアイテム}}を削除しました。","@astryx.transferList.announceGrabbed":"{label} をつかみました。位置は {total, number} 件中 {position, number} 番目です。矢印キーで移動、Space または Enter で配置、Escape でキャンセルします。","@astryx.transferList.announceMoveCancelled":"{label} の移動をキャンセルしました。","@astryx.transferList.announceDropped":"{label} を {total, number} 件中 {position, number} 番目に配置しました。","@astryx.transferList.announceReturned":"{label} は {position, number} 番目に戻りました。","@astryx.transferList.announceMovedToPosition":"{label}、{total, number} 件中 {position, number} 番目。","@astryx.transferList.announceSearchResults":"{count, number} {count, plural, other {件のアイテム}}が見つかりました。","@astryx.transferListSelector.apply":"適用","@astryx.transferListSelector.cancel":"キャンセル","@astryx.transferListSelector.triggerLabel":"{count, number} 件選択済み"},fx=g.createContext(null);fx.displayName="ToastContext";const C0=["button","a","input","select","textarea",'[role="button"]','[role="link"]','[role="checkbox"]','[role="radio"]','[role="switch"]','[role="tab"]','[role="menuitem"]','[role="option"]','[role="combobox"]','[role="listbox"]','[role="slider"]','[role="spinbutton"]',"[data-pressable-container]"].join(","),kH='[aria-readonly="true"]';function EE(e,t){let r=e;for(;r!=null&&r!==t&&r!==document.body;){if(r.matches(C0)&&!r.matches(kH))return!0;r=r.parentElement}return!1}function vH(e){if(typeof document>"u"||!("getSelection"in document))return!1;const t=document.getSelection();return t==null||t.isCollapsed?!1:e.contains(t.anchorNode)}function hx({containerRef:e,interactiveRef:t,onClick:r,href:s,target:o,disabled:l=!1}){g.useEffect(()=>{const d=e.current;d&&d.setAttribute("data-pressable-container","true")},[e]);const u=g.useCallback(d=>{if(l)return;const p=e.current;if(!p||vH(p))return;const y=d.target;if(y instanceof Element&&!(y!==d.currentTarget&&EE(y,p))&&(r?.(d),!d.defaultPrevented&&(s!=null&&Hs(s)&&(o==="_blank"||d.ctrlKey||d.metaKey?window.open(s,"_blank","noopener"):t?.current?t.current.click():window.location.href=s),s==null&&r==null&&t?.current))){const m=new MouseEvent("click",{bubbles:d.bubbles,cancelable:d.cancelable,ctrlKey:d.ctrlKey,metaKey:d.metaKey,shiftKey:d.shiftKey,altKey:d.altKey,button:d.button});t.current.dispatchEvent(m),d.stopPropagation()}},[e,t,r,s,o,l]),f=g.useCallback(d=>{if(l)return;const p=e.current;if(!p)return;const y=d.target;if(!(y instanceof Element))return;d.button===1&&s!=null&&Hs(s)&&(y===d.currentTarget||!EE(y,p))&&window.open(s,"_blank","noopener")},[e,s,l]);return{onClick:u,onMouseUp:f}}const wH="data-astryx-live-region",SH="position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;inset-block-start:0;inset-inline-start:0;pointer-events:none;user-select:none;",EH=2e3,bp={polite:null,assertive:null};function $4(e){const t=bp[e];t!=null&&(clearTimeout(t),bp[e]=null)}const kp={polite:new Set,assertive:new Set};function $H(e){for(const t of kp[e])cancelAnimationFrame(t);kp[e].clear()}function TH(e,t){$4(e),bp[e]=setTimeout(()=>{bp[e]=null,t.textContent=""},EH)}let Ha=null;function $E(e){const t=document.createElement("div");return t.setAttribute(wH,e),t.setAttribute("aria-live",e),t.setAttribute("aria-atomic","true"),t.setAttribute("role",e==="assertive"?"alert":"status"),t.style.cssText=SH,document.body.appendChild(t),t}function CH(){return typeof document>"u"?null:Ha?(Ha.polite.isConnected||document.body.appendChild(Ha.polite),Ha.assertive.isConnected||document.body.appendChild(Ha.assertive),Ha):(Ha={polite:$E("polite"),assertive:$E("assertive")},Ha)}function jH(e,t){const r=CH();if(!r)return;const s=t==="assertive"?r.assertive:r.polite;s.textContent="";const o=requestAnimationFrame(()=>{kp[t].delete(o),s.textContent=e});kp[t].add(o),TH(t,s)}function RH(e){if($H(e),$4(e),!Ha)return;const t=e==="assertive"?Ha.assertive:Ha.polite;t.textContent=""}function vc(){return g.useCallback((e,t="polite")=>{if(!e){RH(t);return}jH(e,t)},[])}const wi=[],X1=new Set;function T4(){for(const e of X1)e()}function AH(e){const t=wi.indexOf(e);t!==-1&&wi.splice(t,1),wi.push(e),T4()}function Uy(e){const t=wi.indexOf(e);t!==-1&&(wi.splice(t,1),T4())}function MH(){return wi[wi.length-1]??null}function NH(e){return X1.add(e),()=>{X1.delete(e)}}function zH(e,t){g.useEffect(()=>{const r=e.current;if(!t||r==null)return;const s=()=>{Uy(r)};return r.addEventListener("close",s),AH(r),()=>{r.removeEventListener("close",s),Uy(r)}},[e,t]),g.useLayoutEffect(()=>{const r=e.current;return()=>{r!=null&&Uy(r)}},[e])}const TE=8,LH=.4,CE=48,DH=1.2,OH=1.2,jE="120%",IH=.4,_H=.02;function qH(e,t){return Math.min(Math.max(e/t,0),1)}function Vy(e){e.style.removeProperty("transition-duration"),e.style.removeProperty("--_toast-swipe-y"),e.style.removeProperty("--_toast-swipe-exit-y"),e.style.removeProperty("--_toast-swipe-opacity"),e.style.removeProperty("--_toast-swipe-scale")}function PH({direction:e,enabled:t,canPauseTimer:r,isTimerPaused:s,pauseTimer:o,resumeTimer:l,dismiss:u,shouldIgnoreTarget:f}){const d=g.useRef(null),p=g.useRef(null),y=g.useCallback(C=>{const T=d.current,A=p.current;p.current=null,T&&Vy(T),C&&A?.pausedTimer&&l()},[l]),m=g.useCallback((C,T)=>{const A=d.current;if(!A||!t||p.current!=null||f(T,A))return!1;const N=r&&!s();N&&o();const L=Math.max(A.getBoundingClientRect().height,1);return p.current={source:C.source,pointerId:C.pointerId,startX:C.clientX,startY:C.clientY,startTime:Date.now(),direction:e,intent:"pending",pausedTimer:N,surfaceSize:L,dismissThreshold:Math.max(L*LH,CE)},!0},[r,e,t,s,o,f]),k=g.useCallback((C,T,A)=>{const N=p.current,L=d.current;if(!N||!L||C.source!==N.source||C.pointerId!==N.pointerId)return;const D=C.clientX-N.startX,j=C.clientY-N.startY,O=Math.abs(D),M=Math.abs(j);if(N.intent==="pending"){if(O>TE&&O>M){A?.(),y(!0);return}if(M<=TE||M<=O*OH)return;if(N.intent=j*N.direction>0?"vertical":"opposite",N.intent==="opposite"){A?.(),y(!0);return}L.style.setProperty("transition-duration","0s")}T();const H=Math.max(0,j*N.direction),F=qH(H,N.surfaceSize);L.style.setProperty("--_toast-swipe-y",`${H*N.direction}px`),L.style.setProperty("--_toast-swipe-opacity",(1-F*IH).toFixed(3)),L.style.setProperty("--_toast-swipe-scale",(1-F*_H).toFixed(3))},[y]),v=g.useCallback(C=>{const T=p.current,A=d.current;if(!T||!A||C.source!==T.source||C.pointerId!==T.pointerId)return;const N=Math.max(0,(C.clientY-T.startY)*T.direction),L=Math.max(1,Date.now()-T.startTime),D=T.intent==="vertical"&&(N>=T.dismissThreshold||N>=CE&&N/L>DH);if(p.current=null,A.style.removeProperty("transition-duration"),D){Vy(A),A.style.setProperty("--_toast-swipe-exit-y",T.direction===1?jE:`calc(-1 * ${jE})`),u();return}Vy(A),T.pausedTimer&&l()},[u,l]),w=g.useCallback(C=>{C.pointerType==="pen"&&(C.button==null||C.button===0)&&m({source:"pen",pointerId:C.pointerId,clientX:C.clientX,clientY:C.clientY},C.target)&&d.current?.setPointerCapture?.(C.pointerId)},[m]),S=g.useCallback(C=>{C.pointerType==="pen"&&k({source:"pen",pointerId:C.pointerId,clientX:C.clientX,clientY:C.clientY},()=>C.preventDefault(),()=>d.current?.releasePointerCapture?.(C.pointerId))},[k]),E=g.useCallback(C=>{C.pointerType==="pen"&&(d.current?.releasePointerCapture?.(C.pointerId),v({source:"pen",pointerId:C.pointerId,clientX:C.clientX,clientY:C.clientY}))},[v]),R=g.useCallback(C=>{C.pointerType==="pen"&&p.current?.source==="pen"&&p.current?.pointerId===C.pointerId&&y(!0)},[y]);return g.useEffect(()=>{const C=d.current;if(!C||!t)return;const T=O=>({source:"touch",pointerId:O.identifier,clientX:O.clientX,clientY:O.clientY}),A=O=>{const M=p.current,H=M?.source==="touch"?M.pointerId:null;return H==null?void 0:[...O.changedTouches].find(F=>F.identifier===H)},N=O=>{if(O.touches?.length!==1){y(!0);return}const M=O.changedTouches[0];M!=null&&m(T(M),O.target)},L=O=>{if(O.touches?.length!==1){y(!0);return}const M=A(O);M&&k(T(M),()=>{O.cancelable&&O.preventDefault()})},D=O=>{if(O.touches.length>0){y(!0);return}const M=A(O);M?v(T(M)):O.touches.length===0&&y(!0)},j=()=>y(!0);return C.addEventListener("touchstart",N,{passive:!0}),C.addEventListener("touchmove",L,{passive:!1}),C.addEventListener("touchend",D,{passive:!0}),C.addEventListener("touchcancel",j,{passive:!0}),()=>{C.removeEventListener("touchstart",N),C.removeEventListener("touchmove",L),C.removeEventListener("touchend",D),C.removeEventListener("touchcancel",j)}},[m,t,v,k,y]),{rootRef:d,bindings:{onPointerDown:w,onPointerMove:S,onPointerUp:E,onPointerCancel:R,onLostPointerCapture:R}}}const BH=`${C0},[tabindex],[contenteditable]:not([contenteditable="false"])`;function HH(e,t){if(!(e instanceof Element))return!1;let r=e;for(;r!=null&&r!==t&&r!==document.body;){if(r.matches(BH))return!0;r=r.parentElement}return!1}function C4({type:e,body:t,endContent:r,isAutoHide:s,autoHideDuration:o,isExiting:l=!1,onDismiss:u,renderContent:f,gestureDirection:d}){const p=Nt(),y=g.useRef(null),m=g.useRef(!1),k=g.useRef(o),v=g.useRef(null),w=g.useRef(u);w.current=u;const S=g.useCallback(()=>{!s||m.current||(y.current&&clearTimeout(y.current),v.current=Date.now(),y.current=setTimeout(()=>{w.current("auto")},k.current))},[s]),E=g.useCallback(()=>{if(!(!s||m.current)&&(m.current=!0,y.current&&(clearTimeout(y.current),y.current=null),v.current!=null)){const M=Date.now()-v.current;k.current=Math.max(k.current-M,1e3)}},[s]),R=g.useCallback(()=>{!s||!m.current||(m.current=!1,S())},[s,S]);g.useEffect(()=>(k.current=o,S(),()=>{y.current&&clearTimeout(y.current)}),[o,S]),g.useEffect(()=>{if(s)return window.addEventListener("blur",E),window.addEventListener("focus",R),()=>{window.removeEventListener("blur",E),window.removeEventListener("focus",R)}},[s,E,R]);const C=g.useCallback(()=>m.current,[]),T=g.useCallback(()=>{w.current("manual")},[]),{rootRef:A,bindings:N}=PH({direction:d,enabled:!l,canPauseTimer:s,isTimerPaused:C,pauseTimer:E,resumeTimer:R,dismiss:T,shouldIgnoreTarget:HH}),L=g.useCallback(()=>{u("manual")},[u]),D=e==="error",{mode:j}=ax(),O=D||j==="light"?"dark":"light";return x.jsx("div",{ref:A,role:D?"alert":"status","aria-live":D?"assertive":"polite","aria-atomic":"true",onMouseEnter:E,onMouseLeave:R,onFocusCapture:E,onBlurCapture:R,...N,...ye(fe("toast",{type:e}),{0:{className:"x1na6nto x1pzlopt x1hviunn x9f619 x1l2rt3b x193iq5w x14hfi27 x1i7u4iq x9ynric xjm74w1 xw6l6zx x1qk3xlt x6o7n8i xuedmi6 xsagj69 xlr8y92 x4itv7f x6s140c xenstv7"},2:{className:"x1na6nto x1pzlopt x1hviunn x9f619 x1l2rt3b x193iq5w x14hfi27 x1i7u4iq x9ynric xjm74w1 xw6l6zx x1qk3xlt x6o7n8i xuedmi6 xsagj69 xlr8y92 x4itv7f x6s140c x1l5t2a3"},1:{className:"x1na6nto x1pzlopt x1hviunn x9f619 x1l2rt3b x193iq5w x14hfi27 x9ynric xjm74w1 xw6l6zx x6o7n8i xuedmi6 xsagj69 xlr8y92 x4itv7f x6s140c xenstv7 xg01cxk x149p1fo"},3:{className:"x1na6nto x1pzlopt x1hviunn x9f619 x1l2rt3b x193iq5w x14hfi27 x9ynric xjm74w1 xw6l6zx x6o7n8i xuedmi6 xsagj69 xlr8y92 x4itv7f x6s140c x1l5t2a3 xg01cxk x149p1fo"}}[!!D<<1|!!l<<0]),children:x.jsx(rj,{mode:"auto",fallback:O,children:f?f({body:t,endContent:r,type:e,isAutoHide:s,autoHideDuration:o,dismiss:L}):x.jsxs("div",{className:"x78zum5 x1cy8zhl xozqiw3 xjcht0a xh8yej3",children:[x.jsx("div",{className:"x98rzlu xeuugli xj0a0fe",children:t}),x.jsxs("div",{className:"x2lah0s x78zum5 x6s0dn4 x1txdalj x1q370uo xmequkd",children:[r,x.jsx(jt,{variant:"ghost",size:"sm",icon:x.jsx(ft,{icon:"close",size:"sm",color:"inherit"}),label:p("@astryx.toast.dismiss"),onClick:L,isIconOnly:!0})]})]})})})}C4.displayName="ToastSurface";const Ml={viewport:{kVAEAm:"xixxii4",kY2c9j:"x6cuj84",k1xSpc:"x78zum5",kB7OPa:"x9f619",kXwgrk:"xdt5ytf",kLKAdn:"x1vjezoa",kGO01o:"xew4nw4",kZCmMZ:"xf4btlh x19efkpl",kwRFfy:"x1g0rcpp x1n6uwha",kfzvcC:"x47corl",kpwlN0:"xh3736h",kzqmXN:"x14atkfc",kogj98:"x1ghz6dp",kMzoRj:"xc342km",ksu8eU:"xng3xce",kWkggS:"xjbqb8w",kVQacm:"x1rea2x4",$$css:!0},viewportInlineSpan:{kLqNvP:"xsrzrpt",kt4wiu:"xu9ngte",$$css:!0},bottomEnd:{krVfgx:"xvxfwfv",kGNEyG:"xuk3077",$$css:!0},bottomStart:{krVfgx:"xvxfwfv",kGNEyG:"x1cy8zhl",$$css:!0},topEnd:{k87sOh:"xawarol",kGNEyG:"xuk3077",kXwgrk:"x3ieub6",$$css:!0},topStart:{k87sOh:"xawarol",kGNEyG:"x1cy8zhl",kXwgrk:"x3ieub6",$$css:!0}};function Z1(e){if(e==null||typeof e=="boolean")return"";if(typeof e=="string")return e;if(typeof e=="number")return String(e);if(Array.isArray(e))return e.map(Z1).filter(Boolean).join(" ");if(g.isValidElement(e)){const{children:t}=e.props;return Z1(t)}return""}const FH=e=>t=>{if(!t.has(e))return t;const r=new Set(t);return r.delete(e),r};function j4({entry:e,isExiting:t,isReversed:r,onExited:s,onDismiss:o}){const l=e.options,u=l.type??"info",f=l.isAutoHide??u!=="error",d=l.autoHideDuration??5e3,[p,y]=g.useState(!1);return x.jsx("div",{"data-toast-id":e.id,...{0:{className:"x67bb7w xrvj5dj xh8yej3 x1j9u4d2 xeuugli x1tu4anv xjshnde xuedmi6 xsagj69 xlr8y92 x1sopeo2 x5rzir7 x1heqljd x1wesfrj xup0pd7"},4:{className:"x67bb7w xrvj5dj xh8yej3 x1j9u4d2 xeuugli x1tu4anv xjshnde xuedmi6 xsagj69 xlr8y92 x1sopeo2 x5rzir7 x87gnkx x1wesfrj xup0pd7"},2:{className:"x67bb7w xrvj5dj xh8yej3 x1j9u4d2 xeuugli x1tu4anv xjshnde xuedmi6 xsagj69 xlr8y92 x1sopeo2 x5rzir7 x1heqljd x1wesfrj x1vjq31q"},6:{className:"x67bb7w xrvj5dj xh8yej3 x1j9u4d2 xeuugli x1tu4anv xjshnde xuedmi6 xsagj69 xlr8y92 x1sopeo2 x5rzir7 x87gnkx x1wesfrj x1vjq31q"},1:{className:"x67bb7w xrvj5dj xh8yej3 x1j9u4d2 xeuugli xjshnde xuedmi6 xsagj69 xlr8y92 x1sopeo2 x5rzir7 x1heqljd xihq33y x18d9i69"},5:{className:"x67bb7w xrvj5dj xh8yej3 x1j9u4d2 xeuugli xjshnde xuedmi6 xsagj69 xlr8y92 x1sopeo2 x5rzir7 x87gnkx xihq33y x18d9i69"},3:{className:"x67bb7w xrvj5dj xh8yej3 x1j9u4d2 xeuugli xjshnde xuedmi6 xsagj69 xlr8y92 x1sopeo2 x5rzir7 x1heqljd xihq33y x18d9i69"},7:{className:"x67bb7w xrvj5dj xh8yej3 x1j9u4d2 xeuugli xjshnde xuedmi6 xsagj69 xlr8y92 x1sopeo2 x5rzir7 x87gnkx xihq33y x18d9i69"}}[!!r<<2|!!r<<1|!!t<<0],onTransitionEnd:m=>{if(m.target===m.currentTarget&&m.propertyName==="grid-template-rows"){if(t){s(e.id);return}y(!0)}},children:x.jsx("div",{...{0:{className:"xh8yej3 x193iq5w xeuugli x2lwn1j xb3r6kr"},1:{className:"xh8yej3 x193iq5w xeuugli x2lwn1j x1rea2x4"}}[!!(p&&!t)<<0],children:x.jsx(C4,{type:u,body:l.body,endContent:l.endContent,isAutoHide:f,autoHideDuration:d,isExiting:t,gestureDirection:r?-1:1,onDismiss:m=>o(e.id,m),renderContent:l.renderContent})})})}j4.displayName="ToastRow";function R4({position:e="bottomEnd",maxVisible:t=5,inset:r,layerInset:s,isTopLayer:o=!0,children:l}){const u=Nt(),[f,d]=g.useState([]),[p,y]=g.useState(new Set),m=g.useRef(f);m.current=f;const k=g.useRef(null),v=g.useRef(new Set),w=g.useRef(null),S=g.useRef(null),E=g.useRef(null),R=g.useCallback(P=>{if(!P)return null;const G=P.querySelectorAll(C0);for(const X of G)if(!(X.getAttribute("tabindex")==="-1"||X.hasAttribute("disabled")||X.getAttribute("aria-disabled")==="true"))return X;return null},[]),C=vc(),T=g.useCallback(P=>{const{uniqueID:G,collisionBehavior:X="overwrite"}=P.options;if(G&&X==="ignore"&&m.current.some(Q=>Q.options.uniqueID===G))return;const Z=Z1(P.options.body);Z&&C(Z,P.options.type==="error"?"assertive":"polite"),d(Q=>G&&Q.find(ae=>ae.options.uniqueID===G)?Q.map(ae=>ae.options.uniqueID===G?P:ae):[...Q,P])},[C]),A=g.useCallback((P,G)=>{if(v.current.has(P))return;v.current.add(P);const X=m.current.find(ae=>ae.id===P);X&&X.options.onHide?.(G);const Z=k.current,Q=document.activeElement,K=Z?.querySelector(`[data-toast-id="${P}"]`)??null;if(K&&Q instanceof Node&&K.contains(Q))if(S.current=P,m.current.filter(I=>I.id!==P).length>0){const I=m.current.findIndex(pe=>pe.id===P),ee=m.current[I+1]??m.current[I-1];E.current=ee?ee.id:"restore"}else E.current="restore";y(ae=>ae.has(P)?ae:new Set(ae).add(P))},[]),N=g.useCallback(P=>{v.current.delete(P),y(FH(P)),d(G=>G.filter(X=>X.id!==P))},[]);g.useLayoutEffect(()=>{const P=S.current,G=E.current;if(P==null||G==null||f.some(Q=>Q.id===P))return;S.current=null,E.current=null;const X=k.current;if(G!=="restore"&&X){const Q=X.querySelector(`[data-toast-id="${G}"]`),K=R(Q)??Q;if(K){K.focus();return}}const Z=w.current;w.current=null,Z&&Z.isConnected?Z.focus():X&&X.focus()},[f,R]);const L=g.useCallback(P=>m.current.find(G=>G.options.uniqueID===P),[]),D=g.useMemo(()=>({addToast:T,removeToast:A,findByUniqueID:L}),[T,A,L]),j=f.slice(-t),O={...$T(s)};r?.top&&(O.top=r.top),r?.bottom&&(O.bottom=r.bottom),r?.start&&(O.insetInlineStart=r.start),r?.end&&(O.insetInlineEnd=r.end);const M=g.useRef(null),[H,F]=g.useState(null);g.useLayoutEffect(()=>{if(!o)return;const P=document.createElement("div");return P.style.display="contents",F(P),()=>{P.remove(),F(null)}},[o]),g.useLayoutEffect(()=>{if(!o||H==null)return;const P=()=>{const G=MH()??M.current;if(G==null)return;if(H.parentNode!==G){const Q=document.activeElement,K=Q instanceof HTMLElement&&H.contains(Q);G.appendChild(H),K&&Q.focus({preventScroll:!0})}const X=k.current;if(X==null||typeof X.showPopover!="function")return;let Z=!1;try{Z=X.matches(":popover-open")}catch{}if(!Z)try{X.showPopover()}catch{}};return P(),NH(P)},[o,H]);const q=f.length>0;g.useEffect(()=>{if(!q)return;const P=G=>{if(G.key!=="F6")return;const X=k.current;if(!X)return;const Z=document.activeElement;if(Z instanceof Node&&X.contains(Z))return;G.preventDefault(),Z instanceof HTMLElement&&(w.current=Z);const Q=X.querySelectorAll("[data-toast-id]"),K=Q[Q.length-1]??null;(R(K)??K??X).focus()};return document.addEventListener("keydown",P),()=>{document.removeEventListener("keydown",P)}},[q,R]);const B=e==="topEnd"?Ml.topEnd:e==="topStart"?Ml.topStart:e==="bottomStart"?Ml.bottomStart:Ml.bottomEnd,U=e==="topEnd"||e==="topStart",_=x.jsx("div",{ref:k,role:q?"region":void 0,"aria-label":q?u("@astryx.toast.viewport"):void 0,tabIndex:q?-1:void 0,popover:o?"manual":void 0,...ye(de(ac.reset,sc.reset,Ml.viewport,Ml.viewportInlineSpan,B),{style:Object.keys(O).length>0?O:void 0}),children:x.jsx(rc,{children:j.map(P=>x.jsx(j4,{entry:P,isExiting:p.has(P.id),isReversed:U,onExited:N,onDismiss:A},P.id))})});return x.jsxs(fx,{value:D,children:[l,o?x.jsxs(x.Fragment,{children:[x.jsx("div",{ref:M,className:"xjp7ctv"}),H!=null?xd.createPortal(_,H):null]}):_]})}R4.displayName="ToastViewport";let ea=null,RE=null;const AE=["data-theme",Dr("theme")];function UH(e){const t=()=>{let s=null;for(const o of AE){const l=document.documentElement.getAttribute(o);l==null?e.removeAttribute(o):(e.setAttribute(o,l),o==="data-theme"&&(s=l))}s==="light"||s==="dark"?e.style.colorScheme=s:e.style.removeProperty("color-scheme")};t(),new MutationObserver(t).observe(document.documentElement,{attributes:!0,attributeFilter:[...AE]})}function VH(){if(ea)return ea;if(typeof document>"u")throw new Error("useToast: Cannot create fallback viewport during SSR. Wrap your app with <LayerProvider> or <AppShell>.");Gp();const e=document.createElement("div");e.setAttribute("data-astryx-toast-fallback",""),document.body.appendChild(e),UH(e);let t;const r=new Promise(u=>{t=u}),s=()=>{const u=g.use(fx),f=g.useRef(!1);return g.useEffect(()=>{u&&!f.current&&(f.current=!0,ea=u,t?.(u))},[u]),null};RE=p3.createRoot(e),RE.render(x.jsx(R4,{children:x.jsx(s,{})}));const o=[],l={addToast:u=>{ea&&ea!==l?ea.addToast(u):(o.push(u),r.then(f=>{for(const d of o)f.addToast(d);o.length=0}))},removeToast:(u,f)=>{ea&&ea!==l&&ea.removeToast(u,f)},findByUniqueID:u=>{if(ea&&ea!==l)return ea.findByUniqueID(u)}};return ea=l,l}let GH=0;function KH(){return`astryx-toast-${++GH}`}function WH(){const e=g.use(fx);return g.useCallback(r=>{const s=e??VH(),o=KH(),l={id:o,options:r,createdAt:Date.now()};return s.addToast(l),()=>s.removeToast(o,"manual")},[e])}class Q1 extends Error{constructor(t,r){super(t),this.code=r,this.name="ApiError"}code}async function Hn(e,t){const r=await fetch(e,t),s=await YH(r);if(!r.ok)throw j0(s,r.status);return s}function j0(e,t){return new Q1(ZH(e)??(t===void 0?"The request failed":`Request failed with HTTP ${t}`),XH(e))}async function YH(e){try{return await e.json()}catch{return null}}function XH(e){return typeof e=="object"&&e!==null&&"error"in e&&typeof e.error=="object"&&e.error!==null&&"code"in e.error&&typeof e.error.code=="string"?e.error.code:void 0}function ZH(e){if(typeof e=="object"&&e!==null&&"error"in e){if(typeof e.error=="string")return e.error;if(typeof e.error=="object"&&e.error!==null&&"message"in e.error&&typeof e.error.message=="string")return e.error.message}}function A4(e){const t=e instanceof Q1?e:new Q1(e instanceof Error?e.message:"The request failed");return{ok:!1,error:{code:t.code??"REQUEST_FAILED",message:t.message}}}function Io(){const e=WH();return g.useCallback(t=>e({...t,isAutoHide:!0,autoHideDuration:2500}),[e])}const M4=new r8({defaultOptions:{queries:{staleTime:3e4,retry:1}}}),Ri={current:()=>["settings","current"]};function R0(){return N4()}function Za(){return M4.query({queryKey:Ri.current(),queryFn:N4})}async function QH(){return(await Za()).configFolder}async function JH(){await Hn("/api/settings/config-folder/open",{method:"POST"})}function eF(e){return $d({theme:e})}function tF(e){return $d({language:e})}function nF(e){return $d({timeFormat:e})}function rF(e){return $d({timezone:e})}function aF(e){const t=e.captures;return $d({captures:t?{fetcher:t.fetcher,maxAttempts:t.maxAttempts,scrapeConcurrency:t.scrapeConcurrency,firecrawlApiKey:t.firecrawl.apiKey,deepseekApiKey:t.deepseek.apiKey}:void 0})}async function N4(){const e=await Hn("/api/settings");return z4(e)}async function $d(e){const t=await Hn("/api/settings",{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(e)});return z4(t)}function z4(e){const t=e.features,r=t.library.captures;return{workspace:e.workspace,features:{...t,library:{...t.library,captures:{...r,firecrawl:{apiKey:r.firecrawl.apiKey},deepseek:{apiKey:r.deepseek.apiKey}}}},configFolder:typeof e.configFolder=="string"?e.configFolder:""}}const A0={"navigation.overview":"Overview","navigation.capturesDescription":"Collect links first, then organize them later.","navigation.jobs":"Jobs","navigation.jobsDescription":"Review scrape history and errors for this capture.","navigation.captures":"Captures","navigation.captureDetails":"Capture details","navigation.captureDetailsDescription":"Read the latest successfully captured page.","navigation.library":"Library","navigation.prompts":"Prompts","navigation.providers":"Providers","navigation.settings":"Settings","navigation.main":"Main","navigation.account":"Account","navigation.back":"Back","navigation.openNavigation":"Open navigation","navigation.windowTitlebar":"Window titlebar","overview.title":"Good to see you","overview.description":"A summary of the local workspace.","prompts.description":"Reusable text fragments for agent conversations.","providers.add":"Add provider","providers.addFirst":"Add your first provider","providers.empty":"Connect a model service to make its models available in Foundry.","providers.emptyTitle":"No model providers yet","providers.deleteQuestion":"Delete provider?","providers.cancel":"Cancel","providers.delete":"Delete","providers.edit":"Edit provider","providers.deleteLabel":"Delete provider","providers.enable":"Enable provider","providers.disable":"Disable provider","providers.inUse":"Provider is currently in use","providers.customModels":"custom models","providers.enabled":"enabled","providers.formDescription":"Connect a model service using one of Foundry's supported protocols.","providers.failedFetchModels":"Failed to fetch models","providers.save":"Save provider","providers.name":"Name","providers.protocol":"Protocol","providers.baseUrl":"Base URL","providers.apiKey":"API key","providers.hideApiKey":"Hide API key","providers.showApiKey":"Show API key","providers.models":"Models","providers.required":"Required","providers.modelSources":"Model sources","providers.modelsTemporary":"Fetched models are temporary. Custom models are saved with this provider.","providers.aboutModelSources":"About model sources","providers.fetchModels":"Fetch models","providers.modelId":"Model ID","providers.customModelId":"Custom model ID","providers.displayName":"Display name","providers.displayNameOptional":"Display name (optional)","providers.addCustomModel":"Add custom model","navigation.notFound":"Page not found","navigation.newProvider":"New provider","navigation.editProvider":"Edit provider","navigation.providersDescription":"Manage the model service connections used by Foundry.","settings.workspace":"Workspace","settings.features":"Features","settings.library":"Library","settings.captures":"Captures","settings.advanced":"Advanced","settings.configFolder":"Config folder","settings.openConfigFolder":"Open folder","settings.exportDataDescription":"Create an encrypted Foundry snapshot.","settings.exportData":"Export data","settings.exportDataAction":"Export","settings.finishJobsBeforeTransfer":"Finish active scrape jobs before transferring data.","settings.importData":"Import data","settings.importDataAction":"Import","settings.importDataDescription":"Restore data from an encrypted Foundry snapshot.","settings.appearance":"Appearance","settings.appearanceDescription":"Theme and density for this browser.","settings.languageRegion":"Language & region","settings.languageRegionDescription":"Language, formats, and time zone.","settings.search":"Search settings","settings.colorTheme":"Color theme","settings.colorThemeDescription":"Applies to this browser only.","settings.language":"Language","settings.languageDescription":"Used across menus, buttons, and email.","settings.timeFormat":"Time format","settings.timeFormatDescription":"Timestamp pattern used across Foundry.","settings.timezone":"Time zone","settings.timezoneDescription":"Used for scheduling and every timestamp you see.","settings.system":"System","settings.light":"Light","settings.dark":"Dark","settings.losAngeles":"Los Angeles (GMT-08:00)","settings.newYork":"New York (GMT-05:00)","settings.shanghai":"Shanghai (GMT+08:00)","settings.taipei":"Taipei (GMT+08:00)","settings.tokyo":"Tokyo (GMT+09:00)","settings.utc":"UTC (GMT+00:00)","settings.noResults":"No settings found","settings.trySearch":"Try theme, language, or sessions.","settings.libraryDescription":"Capture and prompt settings.","settings.advancedDescription":"Data transfer and local configuration.","settings.capturesFetcher":"Fetcher","settings.capturesFetcherDescription":"The service used to retrieve page content.","settings.capturesNotConfigured":"Not configured","settings.capturesApiKey":"API key","settings.capturesApiKeyDescription":"Authenticates requests to the selected fetch service.","settings.capturesApiKeyPlaceholder":"Enter an API key","settings.capturesMaxAttempts":"Maximum attempts","settings.capturesMaxAttemptsDescription":"Total requests per scrape job, from 1 to 10.","settings.capturesConcurrency":"Scrape concurrency","settings.capturesConcurrencyDescription":"Maximum simultaneous scrape jobs, from 1 to 5.","captures.captureAdded":"Capture added","captures.captureExists":"This link is already captured","captures.note":"Note","captures.toPaste":"to paste","captures.pasteLink":"Paste a link","captures.capturing":"Capturing…","captures.enterToCapture":"to capture","captures.configureFetcherFirst":"Configure a Fetcher in Settings before capturing pages.","captures.activeJobExists":"A scrape job is already running for this capture.","captures.dataTransferBusy":"Wait for the current data transfer to finish.","captures.captureNotFound":"Capture not found.","captures.invalidUrl":"Enter a valid HTTP or HTTPS URL.","captures.addCapture":"Add a capture","captures.title":"Title","captures.url":"URL","captures.viewDetails":"View details","captures.viewJobs":"View jobs","captures.recapture":"Re-capture","captures.delete":"Delete","captures.captureFilter":"Filter captures","captures.allCaptures":"All","captures.noCapturedContent":"No captured content","captures.refresh":"Refresh","captures.emptyTitle":"No captures yet","captures.emptyDescription":"Paste a link to start collecting.","captures.deleteCaptureTitle":"Delete capture?","captures.cancel":"Cancel","captures.recaptureStarted":"Re-capture started","captures.captureDeleted":"Capture deleted","captures.scrapeFailed":"Page fetch failed","captures.jobStatus":"Status","captures.jobStatus.pending":"Pending","captures.jobStatus.running":"Running","captures.jobStatus.succeeded":"Succeeded","captures.jobStatus.failed":"Failed","captures.fetcher":"Fetcher","captures.createdAt":"Created at","captures.updatedAt":"Updated at","captures.error":"Error","captures.noJobsTitle":"No scrape jobs","captures.noJobsDescription":"This capture does not have any scrape history.","captures.noContentTitle":"No captured content yet","captures.noContentDescription":"This capture has no successful page content. Review its jobs or re-capture it.","captures.detailUnavailable":"Capture details are unavailable","captures.addNote":"Add a note","dataTransfer.exportTitle":"Export Foundry data","dataTransfer.exportSubtitle":"Protect this snapshot with a passphrase.","dataTransfer.passphrase":"Passphrase","dataTransfer.passphraseDescription":"Used to encrypt and restore this backup.","dataTransfer.confirmPassphrase":"Confirm passphrase","dataTransfer.passphraseMismatch":"The passphrases do not match.","dataTransfer.passphraseRequired":"Enter a passphrase.","dataTransfer.passphraseWarning":"Foundry cannot recover a forgotten passphrase. Store it somewhere safe before exporting.","dataTransfer.cancel":"Cancel","dataTransfer.exportAction":"Choose location and export","dataTransfer.exported":"Foundry data exported.","dataTransfer.importTitle":"Import Foundry data","dataTransfer.importPassphraseDescription":"Enter the passphrase used when this snapshot was exported.","dataTransfer.inspectAction":"Unlock snapshot","dataTransfer.previewTitle":"Review import","dataTransfer.exportedAt":"Exported","dataTransfer.appVersion":"Foundry version","dataTransfer.schemaVersion":"Data version","dataTransfer.providers":"Providers","dataTransfer.captures":"Captures","dataTransfer.jobs":"Jobs","dataTransfer.replaceWarning":"Importing replaces all current Providers, Captures, Jobs, and application settings. Foundry will restart afterward.","dataTransfer.importAction":"Import and replace","dataTransfer.importingTitle":"Importing data","dataTransfer.importingDescription":"Importing Foundry data…","dataTransfer.importingHint":"Keep Foundry open until the import finishes.","dataTransfer.restartTitle":"Import complete","dataTransfer.restartDescription":"The data was imported successfully. Restart Foundry to load it.","dataTransfer.restartHint":"The current session remains locked until Foundry restarts.","dataTransfer.restartAction":"Restart Foundry","dataTransfer.activeJobs":"Finish active scrape jobs before exporting or importing data.","dataTransfer.archiveHasActiveJobs":"This snapshot contains unfinished scrape jobs and cannot be imported.","dataTransfer.busy":"Another data transfer is already in progress.","dataTransfer.importExpired":"The import session has expired. Select the file again.","dataTransfer.invalidPassphrase":"The passphrase is incorrect or the snapshot is corrupted.","dataTransfer.newerVersion":"This snapshot was created by a newer version of Foundry.","dataTransfer.unsupportedArchive":"This snapshot format is not supported by this version of Foundry.","dataTransfer.invalidArchive":"This is not a valid Foundry snapshot.","dataTransfer.ioError":"The data transfer could not be completed."},L4={...A0,"navigation.overview":"概览","navigation.captures":"收藏","navigation.captureDetails":"收藏详情","navigation.captureDetailsDescription":"阅读最近一次成功抓取的页面内容。","navigation.library":"资料库","navigation.prompts":"提示词","navigation.providers":"服务提供商","navigation.settings":"设置","navigation.main":"主要功能","navigation.account":"账户","navigation.back":"返回","navigation.openNavigation":"打开导航","navigation.windowTitlebar":"窗口标题栏","overview.description":"本地工作区摘要。","prompts.description":"可复用于智能体对话的文本片段。","providers.add":"添加服务提供商","providers.addFirst":"添加第一个服务提供商","providers.empty":"连接模型服务,即可在 Foundry 中使用其模型。","providers.emptyTitle":"还没有模型服务提供商","providers.deleteQuestion":"删除服务提供商?","providers.cancel":"取消","providers.delete":"删除","providers.edit":"编辑服务提供商","providers.deleteLabel":"删除服务提供商","providers.enable":"启用服务提供商","providers.disable":"停用服务提供商","providers.inUse":"服务提供商正在使用中","providers.customModels":"个自定义模型","providers.enabled":"已启用","providers.formDescription":"使用 Foundry 支持的协议连接模型服务。","providers.failedFetchModels":"获取模型失败","providers.save":"保存服务提供商","providers.name":"名称","providers.protocol":"协议","providers.baseUrl":"基础 URL","providers.apiKey":"API 密钥","providers.hideApiKey":"隐藏 API 密钥","providers.showApiKey":"显示 API 密钥","providers.models":"模型","providers.required":"必填","providers.modelSources":"模型来源","providers.modelsTemporary":"获取的模型为临时模型,自定义模型会随服务提供商一起保存。","providers.aboutModelSources":"关于模型来源","providers.fetchModels":"获取模型","providers.modelId":"模型 ID","providers.customModelId":"自定义模型 ID","providers.displayName":"显示名称","providers.displayNameOptional":"显示名称(可选)","providers.addCustomModel":"添加自定义模型","navigation.notFound":"页面未找到","navigation.newProvider":"新建服务提供商","navigation.editProvider":"编辑服务提供商","navigation.providersDescription":"管理 Foundry 使用的模型服务连接。","settings.workspace":"工作区","settings.advanced":"高级","settings.configFolder":"配置文件夹","settings.openConfigFolder":"打开文件夹","settings.appearance":"外观","settings.appearanceDescription":"此应用的明暗主题和密度。","settings.languageRegion":"语言和地区","settings.languageRegionDescription":"语言、格式和时区。","settings.search":"搜索设置","settings.colorTheme":"颜色主题","settings.colorThemeDescription":"仅应用于此应用。","settings.language":"语言","settings.languageDescription":"用于菜单、按钮和邮件。","settings.timeFormat":"时间格式","settings.timeFormatDescription":"Foundry 中所有时间戳使用的格式。","settings.timezone":"时区","settings.timezoneDescription":"用于日程安排和所有时间戳。","settings.system":"跟随系统","settings.light":"浅色","settings.dark":"深色","settings.losAngeles":"洛杉矶(GMT-08:00)","settings.newYork":"纽约(GMT-05:00)","settings.shanghai":"上海(GMT+08:00)","settings.taipei":"台北(GMT+08:00)","settings.tokyo":"东京(GMT+09:00)","settings.utc":"UTC(GMT+00:00)","settings.noResults":"未找到设置","settings.trySearch":"试试搜索主题、语言或会话。","settings.libraryDescription":"收藏和提示词设置。","settings.advancedDescription":"数据传输和本地配置。","navigation.capturesDescription":"先收集链接,之后再整理。","navigation.jobs":"抓取记录","navigation.jobsDescription":"查看这条收藏的抓取历史与错误。","overview.title":"欢迎回来","settings.features":"功能","settings.library":"资料库","settings.captures":"收藏","settings.capturesFetcher":"抓取服务","settings.capturesFetcherDescription":"用于获取网页内容的服务。","settings.capturesNotConfigured":"未配置","settings.capturesApiKey":"API 密钥","settings.capturesApiKeyDescription":"用于向所选抓取服务认证请求。","settings.capturesApiKeyPlaceholder":"输入 API 密钥","settings.capturesMaxAttempts":"最大尝试次数","settings.capturesMaxAttemptsDescription":"每个抓取任务的总请求次数,1 到 10。","settings.capturesConcurrency":"抓取并发数","settings.capturesConcurrencyDescription":"同时运行的抓取任务上限,1 到 5。","captures.captureAdded":"已收藏","captures.captureExists":"这个链接已经收藏过了","captures.note":"备注","captures.toPaste":"粘贴","captures.pasteLink":"粘贴链接","captures.capturing":"正在收藏…","captures.enterToCapture":"收藏","captures.configureFetcherFirst":"请先在设置中配置抓取服务。","captures.activeJobExists":"这条收藏已有正在运行的抓取任务。","captures.captureNotFound":"找不到这条收藏。","captures.invalidUrl":"请输入有效的 HTTP 或 HTTPS 链接。","captures.addCapture":"添加收藏","captures.title":"标题","captures.url":"链接","captures.viewDetails":"查看详情","captures.viewJobs":"查看抓取记录","captures.recapture":"重新抓取","captures.delete":"删除","captures.captureFilter":"筛选收藏","captures.allCaptures":"全部","captures.noCapturedContent":"尚未采集到内容","captures.refresh":"刷新","captures.emptyTitle":"还没有收藏","captures.emptyDescription":"粘贴一个链接开始收集。","captures.deleteCaptureTitle":"删除这条收藏?","captures.cancel":"取消","captures.recaptureStarted":"已开始重新抓取","captures.captureDeleted":"收藏已删除","captures.scrapeFailed":"网页抓取失败","captures.jobStatus":"状态","captures.jobStatus.pending":"等待中","captures.jobStatus.running":"抓取中","captures.jobStatus.succeeded":"已成功","captures.jobStatus.failed":"已失败","captures.fetcher":"抓取服务","captures.createdAt":"创建时间","captures.updatedAt":"更新时间","captures.error":"错误","captures.noJobsTitle":"没有抓取记录","captures.noJobsDescription":"这条收藏还没有抓取历史。","captures.noContentTitle":"还没有抓取内容","captures.noContentDescription":"这条收藏尚无成功抓取的页面内容。请查看抓取记录或重新抓取。","captures.detailUnavailable":"无法加载收藏详情","captures.addNote":"添加备注","captures.dataTransferBusy":"请等待当前数据传输完成。","settings.exportDataDescription":"创建加密的 Foundry 快照。","settings.exportData":"导出数据","settings.exportDataAction":"导出","settings.finishJobsBeforeTransfer":"请先等待正在运行的抓取任务完成。","settings.importData":"导入数据","settings.importDataAction":"导入","settings.importDataDescription":"从加密的 Foundry 快照恢复数据。","dataTransfer.exportTitle":"导出 Foundry 数据","dataTransfer.exportSubtitle":"使用口令保护这个快照。","dataTransfer.passphrase":"口令","dataTransfer.passphraseDescription":"用于加密此备份,导入时需要输入。","dataTransfer.confirmPassphrase":"确认口令","dataTransfer.passphraseMismatch":"两次输入的口令不一致。","dataTransfer.passphraseRequired":"请输入口令。","dataTransfer.passphraseWarning":"Foundry 无法恢复遗忘的口令,请在导出前妥善保存。","dataTransfer.cancel":"取消","dataTransfer.exportAction":"选择位置并导出","dataTransfer.exported":"Foundry 数据已导出。","dataTransfer.importTitle":"导入 Foundry 数据","dataTransfer.importPassphraseDescription":"输入导出这个快照时使用的口令。","dataTransfer.inspectAction":"解锁快照","dataTransfer.previewTitle":"确认导入","dataTransfer.exportedAt":"导出时间","dataTransfer.appVersion":"Foundry 版本","dataTransfer.schemaVersion":"数据版本","dataTransfer.providers":"服务提供商","dataTransfer.captures":"收藏","dataTransfer.jobs":"抓取任务","dataTransfer.replaceWarning":"导入会替换当前全部服务提供商、收藏、抓取任务和应用设置。导入完成后 Foundry 将重新启动。","dataTransfer.importAction":"导入并替换","dataTransfer.importingTitle":"正在导入数据","dataTransfer.importingDescription":"正在导入 Foundry 数据…","dataTransfer.importingHint":"导入完成前请保持 Foundry 开启。","dataTransfer.restartTitle":"导入完成","dataTransfer.restartDescription":"数据已成功导入,请重启 Foundry 以载入数据。","dataTransfer.restartHint":"重启前当前会话会保持锁定。","dataTransfer.restartAction":"重启 Foundry","dataTransfer.activeJobs":"请先等待正在运行的抓取任务完成,再导出或导入数据。","dataTransfer.archiveHasActiveJobs":"这个快照包含未完成的抓取任务,无法导入。","dataTransfer.busy":"另一个数据传输正在进行中。","dataTransfer.importExpired":"导入会话已过期,请重新选择文件。","dataTransfer.invalidPassphrase":"口令错误或快照已损坏。","dataTransfer.newerVersion":"这个快照由更新版本的 Foundry 创建。","dataTransfer.unsupportedArchive":"当前 Foundry 版本不支持这个快照格式。","dataTransfer.invalidArchive":"这不是有效的 Foundry 快照。","dataTransfer.ioError":"数据传输未能完成。"},sF={...L4,"navigation.overview":"總覽","navigation.captures":"收藏","navigation.captureDetails":"收藏詳情","navigation.captureDetailsDescription":"閱讀最近一次成功抓取的頁面內容。","navigation.library":"資料庫","navigation.prompts":"提示詞","navigation.providers":"服務提供者","navigation.settings":"設定","navigation.main":"主要功能","navigation.account":"帳戶","navigation.back":"返回","navigation.openNavigation":"開啟導覽","navigation.windowTitlebar":"視窗標題列","overview.description":"本機工作區摘要。","prompts.description":"可重複用於代理人對話的文字片段。","providers.add":"新增服務提供者","providers.addFirst":"新增第一個服務提供者","providers.empty":"連接模型服務,即可在 Foundry 中使用其模型。","providers.emptyTitle":"尚無模型服務提供者","providers.deleteQuestion":"刪除服務提供者?","providers.cancel":"取消","providers.delete":"刪除","providers.edit":"編輯服務提供者","providers.deleteLabel":"刪除服務提供者","providers.enable":"啟用服務提供者","providers.disable":"停用服務提供者","providers.inUse":"服務提供者目前正在使用中","providers.customModels":"個自訂模型","providers.enabled":"已啟用","providers.formDescription":"使用 Foundry 支援的協定連線模型服務。","providers.failedFetchModels":"取得模型失敗","providers.save":"儲存服務提供者","providers.name":"名稱","providers.protocol":"協定","providers.baseUrl":"基礎 URL","providers.apiKey":"API 金鑰","providers.hideApiKey":"隱藏 API 金鑰","providers.showApiKey":"顯示 API 金鑰","providers.models":"模型","providers.required":"必填","providers.modelSources":"模型來源","providers.modelsTemporary":"取得的模型為暫時模型,自訂模型會隨服務提供者一起儲存。","providers.aboutModelSources":"關於模型來源","providers.fetchModels":"取得模型","providers.modelId":"模型 ID","providers.customModelId":"自訂模型 ID","providers.displayName":"顯示名稱","providers.displayNameOptional":"顯示名稱(選填)","providers.addCustomModel":"新增自訂模型","navigation.notFound":"找不到頁面","navigation.newProvider":"新增服務提供者","navigation.editProvider":"編輯服務提供者","navigation.providersDescription":"管理 Foundry 使用的模型服務連線。","settings.workspace":"工作區","settings.advanced":"進階","settings.configFolder":"設定資料夾","settings.openConfigFolder":"開啟資料夾","settings.appearance":"外觀","settings.appearanceDescription":"此應用程式的外觀主題與密度。","settings.languageRegion":"語言與地區","settings.languageRegionDescription":"語言、格式與時區。","settings.search":"搜尋設定","settings.colorTheme":"色彩主題","settings.colorThemeDescription":"僅套用於此應用程式。","settings.language":"語言","settings.languageDescription":"用於選單、按鈕與郵件。","settings.timeFormat":"時間格式","settings.timeFormatDescription":"Foundry 中所有時間戳記使用的格式。","settings.timezone":"時區","settings.timezoneDescription":"用於排程與所有時間戳記。","settings.system":"跟隨系統","settings.light":"淺色","settings.dark":"深色","settings.losAngeles":"洛杉磯(GMT-08:00)","settings.newYork":"紐約(GMT-05:00)","settings.shanghai":"上海(GMT+08:00)","settings.taipei":"台北(GMT+08:00)","settings.tokyo":"東京(GMT+09:00)","settings.utc":"UTC(GMT+00:00)","settings.noResults":"找不到設定","settings.trySearch":"試著搜尋主題、語言或工作階段。","settings.libraryDescription":"收藏與提示詞設定。","settings.advancedDescription":"資料傳輸與本機設定。","navigation.capturesDescription":"先收集連結,之後再整理。","navigation.jobs":"抓取紀錄","navigation.jobsDescription":"查看這筆收藏的抓取紀錄與錯誤。","overview.title":"歡迎回來","settings.features":"功能","settings.library":"資料庫","settings.captures":"收藏","settings.capturesFetcher":"抓取服務","settings.capturesFetcherDescription":"用於取得網頁內容的服務。","settings.capturesNotConfigured":"尚未設定","settings.capturesApiKey":"API 金鑰","settings.capturesApiKeyDescription":"用於向所選抓取服務驗證請求。","settings.capturesApiKeyPlaceholder":"輸入 API 金鑰","settings.capturesMaxAttempts":"最大嘗試次數","settings.capturesMaxAttemptsDescription":"每個抓取工作的總請求次數,1 到 10。","settings.capturesConcurrency":"抓取並行數","settings.capturesConcurrencyDescription":"同時執行的抓取工作上線,1 到 5。","captures.captureAdded":"已收藏","captures.captureExists":"這個連結已經收藏過了","captures.note":"備註","captures.toPaste":"貼上","captures.pasteLink":"貼上連結","captures.capturing":"正在收藏…","captures.enterToCapture":"收藏","captures.configureFetcherFirst":"請先在設定中設定抓取服務。","captures.activeJobExists":"這筆收藏已有正在執行的抓取工作。","captures.captureNotFound":"找不到這筆收藏。","captures.invalidUrl":"請輸入有效的 HTTP 或 HTTPS 連結。","captures.addCapture":"新增收藏","captures.title":"標題","captures.url":"連結","captures.viewDetails":"查看詳情","captures.viewJobs":"查看抓取紀錄","captures.recapture":"重新抓取","captures.delete":"刪除","captures.captureFilter":"篩選收藏","captures.allCaptures":"全部","captures.noCapturedContent":"尚未取得內容","captures.refresh":"重新整理","captures.emptyTitle":"還沒有收藏","captures.emptyDescription":"貼上一個連結開始收集。","captures.deleteCaptureTitle":"刪除這筆收藏?","captures.cancel":"取消","captures.recaptureStarted":"已開始重新抓取","captures.captureDeleted":"收藏已刪除","captures.scrapeFailed":"網頁抓取失敗","captures.jobStatus":"狀態","captures.jobStatus.pending":"等待中","captures.jobStatus.running":"抓取中","captures.jobStatus.succeeded":"已成功","captures.jobStatus.failed":"已失敗","captures.fetcher":"抓取服務","captures.createdAt":"建立時間","captures.updatedAt":"更新時間","captures.error":"錯誤","captures.noJobsTitle":"沒有抓取紀錄","captures.noJobsDescription":"這筆收藏還沒有抓取紀錄。","captures.noContentTitle":"還沒有抓取內容","captures.noContentDescription":"這筆收藏尚無成功抓取的頁面內容。請查看抓取紀錄或重新抓取。","captures.detailUnavailable":"無法載入收藏詳情","captures.addNote":"新增備註","captures.dataTransferBusy":"請等待目前的資料傳輸完成。","settings.exportDataDescription":"建立加密的 Foundry 快照。","settings.exportData":"匯出資料","settings.exportDataAction":"匯出","settings.finishJobsBeforeTransfer":"請先等待執行中的抓取工作完成。","settings.importData":"匯入資料","settings.importDataAction":"匯入","settings.importDataDescription":"從加密的 Foundry 快照還原資料。","dataTransfer.exportTitle":"匯出 Foundry 資料","dataTransfer.exportSubtitle":"使用通關密語保護這個快照。","dataTransfer.passphrase":"通關密語","dataTransfer.passphraseDescription":"用於加密此備份,匯入時需要輸入。","dataTransfer.confirmPassphrase":"確認通關密語","dataTransfer.passphraseMismatch":"兩次輸入的通關密語不一致。","dataTransfer.passphraseRequired":"請輸入通關密語。","dataTransfer.passphraseWarning":"Foundry 無法還原忘記的通關密語,請在匯出前妥善保存。","dataTransfer.cancel":"取消","dataTransfer.exportAction":"選擇位置並匯出","dataTransfer.exported":"Foundry 資料已匯出。","dataTransfer.importTitle":"匯入 Foundry 資料","dataTransfer.importPassphraseDescription":"輸入匯出這個快照時使用的通關密語。","dataTransfer.inspectAction":"解鎖快照","dataTransfer.previewTitle":"確認匯入","dataTransfer.exportedAt":"匯出時間","dataTransfer.appVersion":"Foundry 版本","dataTransfer.schemaVersion":"資料版本","dataTransfer.providers":"服務提供者","dataTransfer.captures":"收藏","dataTransfer.jobs":"抓取工作","dataTransfer.replaceWarning":"匯入會取代目前全部服務提供者、收藏、抓取工作與應用程式設定。匯入完成後 Foundry 將重新啟動。","dataTransfer.importAction":"匯入並取代","dataTransfer.importingTitle":"正在匯入資料","dataTransfer.importingDescription":"正在匯入 Foundry 資料…","dataTransfer.importingHint":"匯入完成前請保持 Foundry 開啟。","dataTransfer.restartTitle":"匯入完成","dataTransfer.restartDescription":"資料已成功匯入,請重新啟動 Foundry 以載入資料。","dataTransfer.restartHint":"重新啟動前目前工作階段會保持鎖定。","dataTransfer.restartAction":"重新啟動 Foundry","dataTransfer.activeJobs":"請先等待執行中的抓取工作完成,再匯出或匯入資料。","dataTransfer.archiveHasActiveJobs":"這個快照包含未完成的抓取工作,無法匯入。","dataTransfer.busy":"另一個資料傳輸正在進行中。","dataTransfer.importExpired":"匯入工作階段已過期,請重新選擇檔案。","dataTransfer.invalidPassphrase":"通關密語錯誤或快照已損壞。","dataTransfer.newerVersion":"這個快照由較新版本的 Foundry 建立。","dataTransfer.unsupportedArchive":"目前 Foundry 版本不支援這個快照格式。","dataTransfer.invalidArchive":"這不是有效的 Foundry 快照。","dataTransfer.ioError":"資料傳輸未能完成。"},oF={...A0,"navigation.overview":"概要","navigation.captures":"キャプチャ","navigation.library":"ライブラリ","navigation.prompts":"プロンプト","navigation.providers":"プロバイダー","navigation.settings":"設定","navigation.main":"メイン","navigation.account":"アカウント","navigation.back":"戻る","navigation.openNavigation":"ナビゲーションを開く","navigation.windowTitlebar":"ウィンドウタイトルバー","overview.description":"ローカルワークスペースの概要。","prompts.description":"エージェントとの会話で再利用できるテキスト。","providers.add":"プロバイダーを追加","providers.addFirst":"最初のプロバイダーを追加","providers.empty":"モデルサービスを接続すると、そのモデルを Foundry で利用できます。","providers.emptyTitle":"モデルプロバイダーがまだありません","providers.deleteQuestion":"プロバイダーを削除しますか?","providers.cancel":"キャンセル","providers.delete":"削除","providers.edit":"プロバイダーを編集","providers.deleteLabel":"プロバイダーを削除","providers.enable":"プロバイダーを有効化","providers.disable":"プロバイダーを無効化","providers.inUse":"プロバイダーは現在使用中です","providers.customModels":"個のカスタムモデル","providers.enabled":"有効","providers.formDescription":"Foundryがサポートするプロトコルでモデルサービスに接続します。","providers.failedFetchModels":"モデルの取得に失敗しました","providers.save":"プロバイダーを保存","providers.name":"名前","providers.protocol":"プロトコル","providers.baseUrl":"ベース URL","providers.apiKey":"API キー","providers.hideApiKey":"API キーを隠す","providers.showApiKey":"API キーを表示","providers.models":"モデル","providers.required":"必須","providers.modelSources":"モデルソース","providers.modelsTemporary":"取得したモデルは一時的なものです。カスタムモデルはこのプロバイダーと一緒に保存されます。","providers.aboutModelSources":"モデルソースについて","providers.fetchModels":"モデルを取得","providers.modelId":"モデル ID","providers.customModelId":"カスタムモデル ID","providers.displayName":"表示名","providers.displayNameOptional":"表示名(任意)","providers.addCustomModel":"カスタムモデルを追加","navigation.notFound":"ページが見つかりません","navigation.newProvider":"新しいプロバイダー","navigation.editProvider":"プロバイダーを編集","navigation.providersDescription":"Foundryで使用するモデルサービス接続を管理します。","settings.workspace":"ワークスペース","settings.advanced":"詳細設定","settings.configFolder":"設定フォルダー","settings.openConfigFolder":"フォルダーを開く","settings.appearance":"外観","settings.appearanceDescription":"このアプリのテーマと密度。","settings.languageRegion":"言語と地域","settings.languageRegionDescription":"言語、形式、タイムゾーン。","settings.search":"設定を検索","settings.colorTheme":"カラーテーマ","settings.colorThemeDescription":"このアプリにのみ適用されます。","settings.language":"言語","settings.languageDescription":"メニュー、ボタン、メールで使用します。","settings.timeFormat":"時刻形式","settings.timeFormatDescription":"Foundry のすべてのタイムスタンプに使用する形式。","settings.timezone":"タイムゾーン","settings.timezoneDescription":"スケジュールとすべてのタイムスタンプに使用します。","settings.system":"システム","settings.light":"ライト","settings.dark":"ダーク","settings.losAngeles":"ロサンゼルス(GMT-08:00)","settings.newYork":"ニューヨーク(GMT-05:00)","settings.shanghai":"上海(GMT+08:00)","settings.taipei":"台北(GMT+08:00)","settings.tokyo":"東京(GMT+09:00)","settings.utc":"UTC(GMT+00:00)","settings.noResults":"設定が見つかりません","settings.trySearch":"テーマ、言語、セッションを検索してみてください。","settings.libraryDescription":"キャプチャとプロンプトの設定。","settings.advancedDescription":"データ転送とローカル設定。","navigation.capturesDescription":"まずリンクを集め、後から整理します。","navigation.jobs":"取得履歴","navigation.jobsDescription":"このキャプチャの取得履歴とエラーを確認します。","navigation.captureDetails":"キャプチャの詳細","navigation.captureDetailsDescription":"最後に正常に取得したページを表示します。","overview.title":"おかえりなさい","settings.features":"機能","settings.library":"ライブラリ","settings.captures":"キャプチャ","settings.capturesFetcher":"フェッチャー","settings.capturesFetcherDescription":"ページ内容を取得するサービス。","settings.capturesNotConfigured":"未設定","settings.capturesApiKey":"API キー","settings.capturesApiKeyDescription":"選択した取得サービスへのリクエストを認証します。","settings.capturesApiKeyPlaceholder":"API キーを入力","settings.capturesMaxAttempts":"最大試行回数","settings.capturesMaxAttemptsDescription":"ジョブごとの総リクエスト数(1〜10)。","settings.capturesConcurrency":"取得の同時実行数","settings.capturesConcurrencyDescription":"同時に実行する取得ジョブの上限(1〜5)。","captures.captureAdded":"キャプチャしました","captures.captureExists":"このリンクはすでにキャプチャ済みです","captures.note":"メモ","captures.toPaste":"貼り付け","captures.pasteLink":"リンクを貼り付け","captures.capturing":"キャプチャ中…","captures.enterToCapture":"キャプチャする","captures.configureFetcherFirst":"先に設定でフェッチャーを構成してください。","captures.activeJobExists":"このキャプチャには実行中の取得ジョブがあります。","captures.captureNotFound":"キャプチャが見つかりません。","captures.invalidUrl":"有効な HTTP または HTTPS URL を入力してください。","captures.addCapture":"キャプチャを追加","captures.title":"タイトル","captures.url":"URL","captures.viewDetails":"詳細を表示","captures.viewJobs":"取得履歴を見る","captures.recapture":"再取得","captures.delete":"削除","captures.captureFilter":"キャプチャを絞り込む","captures.allCaptures":"すべて","captures.noCapturedContent":"取得内容なし","captures.refresh":"更新","captures.emptyTitle":"キャプチャはまだありません","captures.emptyDescription":"リンクを貼り付けて収集を始めましょう。","captures.deleteCaptureTitle":"キャプチャを削除しますか?","captures.cancel":"キャンセル","captures.recaptureStarted":"再取得を開始しました","captures.captureDeleted":"キャプチャを削除しました","captures.scrapeFailed":"ページの取得に失敗しました","captures.jobStatus":"状態","captures.jobStatus.pending":"待機中","captures.jobStatus.running":"取得中","captures.jobStatus.succeeded":"成功","captures.jobStatus.failed":"失敗","captures.fetcher":"フェッチャー","captures.createdAt":"作成日時","captures.updatedAt":"更新日時","captures.error":"エラー","captures.noJobsTitle":"取得履歴はありません","captures.noJobsDescription":"このキャプチャには取得履歴がありません。","captures.noContentTitle":"取得したコンテンツはまだありません","captures.noContentDescription":"このキャプチャには成功したページコンテンツがありません。取得履歴を確認するか、再取得してください。","captures.detailUnavailable":"キャプチャの詳細を読み込めません","captures.addNote":"メモを追加","captures.dataTransferBusy":"現在のデータ転送が完了するまでお待ちください。","settings.exportDataDescription":"暗号化された Foundry スナップショットを作成します。","settings.exportData":"データをエクスポート","settings.exportDataAction":"エクスポート","settings.finishJobsBeforeTransfer":"実行中の取得ジョブが完了するまでお待ちください。","settings.importData":"データをインポート","settings.importDataAction":"インポート","settings.importDataDescription":"暗号化された Foundry スナップショットからデータを復元します。","dataTransfer.exportTitle":"Foundry データをエクスポート","dataTransfer.exportSubtitle":"パスフレーズでこのスナップショットを保護します。","dataTransfer.passphrase":"パスフレーズ","dataTransfer.passphraseDescription":"このバックアップの暗号化と復元に使用します。","dataTransfer.confirmPassphrase":"パスフレーズを確認","dataTransfer.passphraseMismatch":"パスフレーズが一致しません。","dataTransfer.passphraseRequired":"パスフレーズを入力してください。","dataTransfer.passphraseWarning":"忘れたパスフレーズは復元できません。エクスポート前に安全な場所へ保管してください。","dataTransfer.cancel":"キャンセル","dataTransfer.exportAction":"保存先を選択してエクスポート","dataTransfer.exported":"Foundry データをエクスポートしました。","dataTransfer.importTitle":"Foundry データをインポート","dataTransfer.importPassphraseDescription":"このスナップショットのエクスポート時に使用したパスフレーズを入力してください。","dataTransfer.inspectAction":"スナップショットを開く","dataTransfer.previewTitle":"インポートを確認","dataTransfer.exportedAt":"エクスポート日時","dataTransfer.appVersion":"Foundry バージョン","dataTransfer.schemaVersion":"データバージョン","dataTransfer.providers":"プロバイダー","dataTransfer.captures":"キャプチャ","dataTransfer.jobs":"ジョブ","dataTransfer.replaceWarning":"インポートすると、現在のプロバイダー、キャプチャ、ジョブ、アプリ設定がすべて置き換わります。完了後は Foundry が再起動します。","dataTransfer.importAction":"インポートして置き換える","dataTransfer.importingTitle":"データをインポート中","dataTransfer.importingDescription":"Foundry データをインポートしています…","dataTransfer.importingHint":"インポートが完了するまで Foundry を開いたままにしてください。","dataTransfer.restartTitle":"インポート完了","dataTransfer.restartDescription":"データをインポートしました。Foundry を再起動して読み込んでください。","dataTransfer.restartHint":"再起動するまで現在のセッションはロックされます。","dataTransfer.restartAction":"Foundry を再起動","dataTransfer.activeJobs":"データをエクスポートまたはインポートする前に、実行中の取得ジョブを完了してください。","dataTransfer.archiveHasActiveJobs":"このスナップショットには未完了の取得ジョブが含まれているため、インポートできません。","dataTransfer.busy":"別のデータ転送が進行中です。","dataTransfer.importExpired":"インポートセッションの有効期限が切れました。ファイルを選択し直してください。","dataTransfer.invalidPassphrase":"パスフレーズが正しくないか、スナップショットが破損しています。","dataTransfer.newerVersion":"このスナップショットは新しいバージョンの Foundry で作成されています。","dataTransfer.unsupportedArchive":"この Foundry バージョンではこのスナップショット形式をサポートしていません。","dataTransfer.invalidArchive":"有効な Foundry スナップショットではありません。","dataTransfer.ioError":"データ転送を完了できませんでした。"},iF={"en-US":A0,"zh-CN":L4,"zh-TW":sF,"ja-JP":oF};function lF(e){if(["en-US","zh-CN","zh-TW","ja-JP"].includes(e))return e;const r=new Intl.DateTimeFormat().resolvedOptions().locale.toLowerCase();return r.startsWith("zh-tw")||r.startsWith("zh-hk")?"zh-TW":r.startsWith("zh")?"zh-CN":r.startsWith("ja")?"ja-JP":"en-US"}function rd(e){switch(e){case"ACTIVE_JOB_EXISTS":return"captures.activeJobExists";case"DATA_TRANSFER_BUSY":return"captures.dataTransferBusy";case"FETCHER_NOT_CONFIGURED":return"captures.configureFetcherFirst";case"CAPTURE_ALREADY_EXISTS":return"captures.captureExists";case"CAPTURE_NOT_FOUND":return"captures.captureNotFound";case"INVALID_URL":return"captures.invalidUrl"}}function J1(e){switch(e){case"ACTIVE_JOBS":return"dataTransfer.activeJobs";case"ARCHIVE_HAS_ACTIVE_JOBS":return"dataTransfer.archiveHasActiveJobs";case"BUSY":return"dataTransfer.busy";case"IMPORT_NOT_FOUND":return"dataTransfer.importExpired";case"INVALID_PASSPHRASE":return"dataTransfer.invalidPassphrase";case"PASSPHRASE_REQUIRED":return"dataTransfer.passphraseRequired";case"NEWER_SCHEMA":return"dataTransfer.newerVersion";case"UNSUPPORTED_ARCHIVE":return"dataTransfer.unsupportedArchive";case"INVALID_ARCHIVE":return"dataTransfer.invalidArchive";case"IO_ERROR":return"dataTransfer.ioError"}}function rn(){const{t:e}=xH(),t=Bn.language||"en-US",r=g.useCallback(s=>e(s),[e]);return g.useMemo(()=>({locale:t,language:t,t:r}),[t,r])}const cF=Object.fromEntries(Object.entries(iF).map(([e,t])=>[e,{translation:t}]));Bn.isInitialized||Bn.init({resources:cF,lng:"en-US",fallbackLng:"en-US",interpolation:{escapeValue:!1}});function uF({children:e}){const r=ys({queryKey:Ri.current(),queryFn:R0}).data?.workspace["language-region"].language??"system",s=g.useMemo(()=>lF(r),[r]);return g.useEffect(()=>{Bn.changeLanguage(s)},[s]),x.jsx(rC,{locale:s,messages:{"zh-CN":mH,"zh-TW":yH,"ja-JP":bH},children:x.jsx(gH,{i18n:Bn,children:e})})}const ME=1,D4="capture.job.changed",O4="captures.changed",dF="data-transfer.status.changed",fF="data-transfer.imported",hF="providers.changed",pF="settings.changed";function xF(e){let t;try{t=JSON.parse(e)}catch{return null}return!gF(t)||t.version!==ME||typeof t.id!="string"||typeof t.type!="string"||typeof t.occurredAt!="string"||!("data"in t)?null:{version:ME,id:t.id,type:t.type,occurredAt:t.occurredAt,data:t.data}}function gF(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const M0=g.createContext(null);M0.displayName="FoundryEventsContext";function mF({children:e}){const[t,r]=g.useState("connecting"),s=g.useRef(new Set),o=g.useCallback(l=>(s.current.add(l),()=>{s.current.delete(l)}),[]);return g.useEffect(()=>{const l=new EventSource("/api/events"),u=()=>{r("open")},f=()=>{r("connecting")},d=p=>{const y=xF(p.data);if(y)for(const m of s.current)m(y)};return l.addEventListener("open",u),l.addEventListener("error",f),l.addEventListener("foundry",d),()=>{l.removeEventListener("open",u),l.removeEventListener("error",f),l.removeEventListener("foundry",d),l.close()}},[]),x.jsx(M0,{value:{status:t,subscribe:o},children:e})}function px(){const e=g.use(M0);if(!e)throw new Error("useFoundryEvents must be used within FoundryEventsProvider");return e}const yF="_drawer_15igm_1",bF={drawer:yF};function kF(){const{t:e}=rn();return x.jsx(We,{gap:5,children:x.jsxs(We,{gap:2,children:[x.jsx(Oo,{level:1,children:e("overview.title")}),x.jsx(Je,{type:"supporting",children:e("overview.description")})]})})}function vF(){const{t:e}=rn();return x.jsx(We,{gap:2,children:x.jsx(Je,{type:"supporting",children:e("prompts.description")})})}const NE={horizontal:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kzqmXN:"xh8yej3",$$css:!0},vertical:{k1xSpc:"x3nfvp2",kXwgrk:"xdt5ytf",kGNEyG:"x6s0dn4",kZKoxP:"x5yr21d",$$css:!0}},Nl={horizontalLine:{kZKoxP:"xsyqizj",kzQI83:"x1iyjqo2",kmuXW:"xs83m0k",$$css:!0},verticalLine:{kzqmXN:"xjk4fl7",kzQI83:"x1iyjqo2",kmuXW:"xs83m0k",$$css:!0},subtle:{kWkggS:"x1m4xfpy",$$css:!0},strong:{kWkggS:"x7njt3n",$$css:!0}},zE={horizontal:{keTefX:"xojxgvx",k71WvV:"x1fcf3bl",kzqmXN:"xx6qvi6",$$css:!0},vertical:{keoZOQ:"x1sa9bsh",k1K539:"x6h7pi7",kZKoxP:"x12qplqi",$$css:!0}};function Ai({orientation:e="horizontal",label:t,variant:r="subtle",isFullBleed:s=!1,xstyle:o,className:l,style:u,ref:f,"aria-label":d,"aria-labelledby":p,...y}){const m=e==="horizontal",k=g.useId(),v=p??(t&&d==null?k:void 0);return x.jsxs("div",{ref:f,...y,role:"separator","aria-orientation":e,"aria-label":d,"aria-labelledby":v,...ye(fe("divider",{variant:r,orientation:e}),de(m?NE.horizontal:NE.vertical,s&&(m?zE.horizontal:zE.vertical),o),l,u),children:[x.jsx("div",{...de(m?Nl.horizontalLine:Nl.verticalLine,Nl[r])}),t&&x.jsx("div",{id:k,...{0:{className:"x2lah0s xrrkdod x141an7d x1ltkj2j xv1l7n4"},1:{className:"x2lah0s x141an7d x1ltkj2j xv1l7n4 xnjsko4 x8o8v82"}}[!m<<0],children:t}),t&&x.jsx("div",{...de(m?Nl.horizontalLine:Nl.verticalLine,Nl[r])})]})}Ai.displayName="Divider";const wF=2e3;function I4(e={}){const{announce:t,resetAfterMs:r=wF}=e,s=vc(),[o,l]=g.useState(!1),u=g.useRef(null);return g.useEffect(()=>()=>{u.current!=null&&clearTimeout(u.current)},[]),{copy:g.useCallback(async d=>{try{return await navigator.clipboard.writeText(d),l(!0),t&&s(t),u.current!=null&&clearTimeout(u.current),u.current=setTimeout(()=>{u.current=null,l(!1)},r),!0}catch{return!1}},[s,t,r]),isCopied:o}}function SF(){if(typeof navigator>"u")return!1;const e="userAgentData"in navigator?navigator.userAgentData:null;if(e&&typeof e=="object"&&"platform"in e){const t=e.platform,r=typeof t=="string"?t.trim():"";if(r!==""&&r.toLowerCase()!=="unknown")return/mac/i.test(r)}return/Mac|iPhone|iPad|iPod/.test(navigator.platform??"")}function EF(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!_4(e)&&e.key!==" "}function _4(e){return e.isComposing===!0?!0:e.nativeEvent?.isComposing===!0}function N0(e){const{getItemLabels:t,onMatch:r,getCurrentIndex:s,resetMs:o=750,isDisabled:l}=e,u=g.useRef(""),f=g.useRef(void 0),d=g.useCallback(()=>{u.current="",f.current&&(clearTimeout(f.current),f.current=void 0)},[]),p=g.useCallback(()=>{f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{u.current="",f.current=void 0},o)},[o]);return{onKeyDown:g.useCallback(m=>{const k=m.key===" "&&!m.ctrlKey&&!m.metaKey&&!_4(m)&&u.current.length>0;if(!EF(m)&&!k)return!1;const v=t();if(v.length===0)return!1;const w=m.key.toLowerCase(),E=u.current.length>0&&u.current.split("").every(L=>L===w)?w:u.current+w;u.current=E,p();const R=s?.()??-1,C=v.length,T=R>=0,A=T?R:0,N=T&&E.length===1?1:0;for(let L=0;L<C;L++){const D=(A+N+L+C)%C;if(l?.(D))continue;const j=v[D];if(j!=null&&j.trim().toLowerCase().startsWith(E))return r(D),!0}return!0},[t,r,s,p,l]),reset:d}}const $F=300,LE={phase:"idle"},Lo={type:"none"};function No(e){return{gesture:{phase:"idle"},effect:e}}function z0(e){return e==null?{type:"clear"}:{type:"highlight",row:e}}function q4(e,t){return t.row!=null?No({type:"act",row:t.row}):t.isInMenu||t.isOnTrigger?No({type:"settle",stray:!0,dismiss:!1}):No({type:"settle",stray:!0,dismiss:e==="mouse"})}function TF(e,t){switch(e.phase){case"idle":return CF(e,t);case"triggerPress":return jF(e,t);case"open":return RF(e,t);case"tracking":return AF(e,t)}}function CF(e,t){return t.type!=="down"?{gesture:e,effect:Lo}:t.target==="menu"?{gesture:{phase:"tracking",pointerType:t.pointerType,origin:"menu",row:t.row},effect:z0(t.row)}:t.pointerType==="mouse"?{gesture:{phase:"open",pointerType:"mouse",openedAt:t.time},effect:{type:"open"}}:{gesture:{phase:"triggerPress",pointerType:t.pointerType,startedAt:t.time},effect:Lo}}function jF(e,t){switch(t.type){case"opened":return{gesture:{phase:"open",pointerType:e.pointerType,openedAt:t.time},effect:Lo};case"up":return No({type:"settle",stray:!1,dismiss:!1});case"cancel":return No({type:"settle",stray:!1,dismiss:!1});case"down":case"move":return{gesture:e,effect:Lo}}}function RF(e,t){switch(t.type){case"move":return t.isInMenu?{gesture:{phase:"tracking",pointerType:e.pointerType,origin:"trigger",row:t.row},effect:z0(t.row)}:{gesture:e,effect:Lo};case"up":return t.time-e.openedAt>=$F?q4(e.pointerType,t):No({type:"settle",stray:!0,dismiss:!1});case"cancel":return No({type:"settle",stray:!1,dismiss:!1});case"down":case"opened":return{gesture:e,effect:Lo}}}function AF(e,t){switch(t.type){case"move":return t.row===e.row?{gesture:e,effect:Lo}:{gesture:{...e,row:t.row},effect:z0(t.row)};case"up":return q4(e.pointerType,t);case"cancel":return No({type:"settle",stray:!1,dismiss:!1});case"down":case"opened":return{gesture:e,effect:Lo}}}const MF=500,NF=10;function P4(e){const{onLongPress:t,disabled:r=!1,delayMs:s=MF,moveCancelPx:o=NF}=e,l=g.useRef(null),u=g.useRef(null),f=g.useRef(t);f.current=t;const d=g.useCallback(()=>{l.current!=null&&(clearTimeout(l.current),l.current=null),u.current=null},[]),p=g.useCallback(v=>{r||(d(),u.current={x:v.x,y:v.y},l.current=setTimeout(()=>{const w=u.current;w!=null&&f.current({x:w.x,y:w.y})},s))},[r,s,d]),y=g.useCallback(v=>{const w=u.current;return w==null?!1:Math.abs(v.x-w.x)>o||Math.abs(v.y-w.y)>o?(d(),!1):!0},[o,d]),m=g.useCallback(v=>{if(r)return;if(v.touches.length!==1){d();return}const w=v.touches[0];p({x:w.clientX,y:w.clientY})},[r,d,p]),k=g.useCallback(v=>{if(u.current==null)return;if(v.touches.length!==1){d();return}const w=v.touches[0];y({x:w.clientX,y:w.clientY})},[d,y]);return g.useEffect(()=>d,[d]),{onTouchStart:m,onTouchMove:k,onTouchEnd:d,onTouchCancel:d,start:p,moveTo:y,cancel:d}}const B4="data-astryx-menu-press",H4=`[${B4}]`,zF=400,LF=500,DE=24,DF=6,OF=16,IF="[tabindex], a[href], button, input, select, textarea, [contenteditable]",_F="a[href], button, [tabindex]";let vp=!1;function qF(){return vp}let Sr=null;function Du(){Sr!=null&&(Sr.isArmed=!1,Sr.timer!=null&&(clearTimeout(Sr.timer),Sr.timer=null))}function OE(e){Sr==null||!Sr.isArmed||e.detail===0||vp||(e.preventDefault(),e.stopImmediatePropagation(),Du())}function IE(e){const t=e.defaultView;t!=null&&((Sr==null||Sr.doc!==e)&&(Sr!=null&&(Sr.doc.defaultView?.removeEventListener("click",OE,!0),Sr.doc.removeEventListener("pointerdown",Du,!0)),t.addEventListener("click",OE,!0),e.addEventListener("pointerdown",Du,!0),Sr={doc:e,isArmed:!1,timer:null}),Du(),Sr.isArmed=!0,Sr.timer=setTimeout(Du,zF))}function _E(e){return e==="mouse"||e==="touch"||e==="pen"?e:null}function PF(e){return e.matches(IF)}function BF(e){let t=e;for(;;){const r=t.parentElement?.closest(H4);if(r==null)return t;t=r}}function xx(e){const t=g.useRef(e);t.current=e;const r=g.useRef(LE),s=g.useRef(null),o=g.useRef(null),l=g.useRef(null),u=g.useRef(null),f=g.useRef(null),d=g.useRef(null),p=g.useRef(null),y=g.useRef(null),m=g.useCallback(()=>t.current.menuRef.current?.ownerDocument??t.current.triggerRef?.current?.ownerDocument??document,[]),k=g.useCallback(q=>{const{menuRef:B,triggerRef:U,itemSelector:_,hitTest:P}=t.current,G=B.current,X=m();let Z;P!=null?Z=P(q.clientX,q.clientY):typeof X.elementFromPoint=="function"?Z=X.elementFromPoint(q.clientX,q.clientY):Z=q.target instanceof Element?q.target:null;const Q=G==null?null:BF(G),K=Q!=null&&Z!=null&&Q.contains(Z),ae=U?.current??null,I=ae!=null&&Z!=null&&ae.contains(Z);let ee=null;return K&&Z!=null&&(ee=Z.closest(_),ee!=null&&!Q.contains(ee)&&(ee=null)),{row:ee,isInMenu:K,isOnTrigger:I}},[m]),v=g.useCallback(()=>{f.current!=null&&(clearInterval(f.current.timer),f.current=null)},[]),w=g.useCallback(()=>{l.current?.cancel(),u.current?.(),u.current=null,v(),o.current?.(),o.current=null,s.current=null,d.current=null,r.current=LE},[v]),S=g.useCallback(q=>{const{onHighlight:B,menuRef:U}=t.current;if(B!=null){B(q);return}const _=q==null?U.current:PF(q)?q:q.querySelector(_F);_!=null&&_!==m().activeElement&&_.focus({preventScroll:!0})},[m]),E=g.useCallback((q,B)=>{const{onActivate:U}=t.current;vp=!0;try{if(U!=null){U(q,B);return}q.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:0,button:B.button,clientX:B.clientX,clientY:B.clientY,screenX:B.screenX,screenY:B.screenY,ctrlKey:B.ctrlKey,shiftKey:B.shiftKey,altKey:B.altKey,metaKey:B.metaKey}))}finally{vp=!1}},[]),R=g.useRef(()=>{}),C=g.useCallback((q,B,U)=>{const _=m();switch(q.type){case"none":return;case"open":{const P=B.phase==="open"?B.pointerType:"mouse";p.current=mi(),(t.current.onTriggerPress?.(P)??!1)||w();return}case"highlight":S(q.row);return;case"clear":S(null);return;case"act":{w(),IE(_),U!=null&&E(q.row,U);return}case"settle":{w(),q.stray&&IE(_),q.dismiss&&t.current.onDismiss?.();return}}},[E,w,m,S]),T=g.useCallback((q,B)=>{const U=TF(r.current,q);r.current=U.gesture,C(U.effect,U.gesture,B)},[C]);R.current=T;const A=g.useCallback(()=>{const{getScroller:q,menuRef:B}=t.current;if(q!=null)return q();const U=B.current;return U==null?null:U.scrollHeight>U.clientHeight+1?U:null},[]),N=g.useCallback(q=>{if(r.current.phase!=="tracking"){v();return}const B=A();if(B==null){v();return}const U=B.getBoundingClientRect();if(U.height<=0){v();return}let _=0;if(q.clientY<=U.top+DE?_=-1:q.clientY>=U.bottom-DE&&(_=1),_===0){v();return}if(f.current?.direction===_)return;v();const P=()=>{const G=B.scrollTop;if(B.scrollTop=G+_*DF,B.scrollTop===G){v();return}const X=d.current;if(X!=null){const Z=k(X);R.current({type:"move",row:Z.row,isInMenu:Z.isInMenu,time:Date.now()},X)}};f.current={direction:_,timer:setInterval(P,OF)},P()},[A,k,v]),L=g.useCallback(q=>{o.current?.();const B=m(),U=B.defaultView;s.current=q;const _=Q=>{if(Q.pointerId!==s.current)return;if(d.current=Q,r.current.phase==="triggerPress"){l.current?.moveTo({x:Q.clientX,y:Q.clientY})===!1&&R.current({type:"cancel"});return}const ae=k(Q);R.current({type:"move",row:ae.row,isInMenu:ae.isInMenu,time:Date.now()},Q),N(Q)},P=Q=>{if(Q.pointerId!==s.current)return;const K=k(Q);R.current({type:"up",row:K.row,isInMenu:K.isInMenu,isOnTrigger:K.isOnTrigger,time:Date.now()},Q)},G=Q=>{Q.pointerId===s.current&&R.current({type:"cancel"})},X=Q=>{Q.pointerId!==s.current&&(y.current=Q.pointerId,R.current({type:"cancel"}))},Z=()=>{R.current({type:"cancel"})};B.addEventListener("pointermove",_,!0),B.addEventListener("pointerup",P,!0),B.addEventListener("pointercancel",G,!0),B.addEventListener("pointerdown",X,!0),U?.addEventListener("blur",Z),o.current=()=>{B.removeEventListener("pointermove",_,!0),B.removeEventListener("pointerup",P,!0),B.removeEventListener("pointercancel",G,!0),B.removeEventListener("pointerdown",X,!0),U?.removeEventListener("blur",Z)}},[m,k,N]),D=g.useCallback(()=>{const q=r.current;if(q.phase!=="triggerPress")return;if(p.current=mi(),!(t.current.onTriggerPress?.(q.pointerType)??!1)){T({type:"cancel"});return}const U=m(),_=P=>{P.cancelable&&P.preventDefault()};U.addEventListener("touchmove",_,{passive:!1,capture:!0}),u.current=()=>{U.removeEventListener("touchmove",_,!0)},T({type:"opened",time:Date.now()})},[m,T]);l.current=P4({onLongPress:D,delayMs:e.longPressDelayMs??LF});const j=g.useCallback(q=>{const{menuRef:B,isEnabled:U=!0}=t.current,_=B.current;if(!U||_==null)return;if(q.pointerId===y.current){y.current=null;return}if(r.current.phase!=="idle"){T({type:"cancel"});return}const P=_E(q.pointerType);if(P==null||P==="mouse"&&q.button!==0||q.target?.closest(H4)!==_)return;P!=="mouse"&&q.preventDefault();const X=q.nativeEvent;L(X.pointerId),d.current=X;const Z=k(X);T({type:"down",target:"menu",pointerType:P,row:Z.row,time:Date.now()},X)},[L,k,T]),O=g.useCallback(q=>{const{isEnabled:B=!0}=t.current;if(q.pointerId===y.current){y.current=null;return}if(!B||r.current.phase!=="idle")return;const U=_E(q.pointerType);if(U==null||q.button!==0||U==="mouse"&&q.ctrlKey)return;const _=q.nativeEvent;L(_.pointerId),d.current=_,U!=="mouse"&&l.current?.start({x:_.clientX,y:_.clientY}),T({type:"down",target:"trigger",pointerType:U,row:null,time:Date.now()},_)},[L,T]),M=g.useCallback(q=>{const B=r.current;B.phase!=="idle"&&B.pointerType!=="mouse"&&q.preventDefault()},[]),H=g.useCallback(()=>p.current!=null&&p.current===mi(),[]),F=g.useCallback(()=>{r.current.phase!=="idle"&&T({type:"cancel"}),w()},[w,T]);return g.useEffect(()=>(mi(),()=>{w()}),[w]),g.useMemo(()=>({menuProps:{onPointerDown:j,[B4]:""},triggerProps:{onPointerDown:O,onContextMenu:M},isTriggerClickFromPress:H,cancel:F}),[j,O,M,H,F])}const HF={wrapper:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kOIVth:"xzye2dw",kmuXW:"x2lah0s",$$css:!0}},FF=new Map([["ctrl","⌃"],["alt","⌥"],["shift","⇧"],["enter","↵"],["backspace","⌫"],["escape","Esc"],["tab","⇥"],["up","↑"],["down","↓"],["left","←"],["right","→"],["plus","+"]]),UF=new Map([["esc","escape"],["return","enter"]]);function VF(e,t){return e==="mod"?t?"⌘":"Ctrl":FF.get(e)??e.toUpperCase()}const GF=new Map([["ctrl","Control"],["alt","Alt"],["shift","Shift"],["enter","Enter"],["backspace","Backspace"],["escape","Escape"],["tab","Tab"],["up","Up arrow"],["down","Down arrow"],["left","Left arrow"],["right","Right arrow"],["plus","Plus"]]);function KF(e,t){return e==="mod"?t?"Command":"Control":GF.get(e)??e.toUpperCase()}function WF(){return()=>{}}function YF(){return!1}function wp({keys:e,ref:t,xstyle:r,className:s,style:o,...l}){const u=g.useSyncExternalStore(WF,SF,YF),f=new Map,d=e.split("+").map(y=>y.trim().toLowerCase()).map(y=>{const m=f.get(y)??0;return f.set(y,m+1),{key:UF.get(y)??y,reactKey:`${y}:${m}`}}),p=d.map(({key:y})=>KF(y,u)).join(" + ");return x.jsx("span",{...l,ref:t,role:"img","aria-label":p,...ye(fe("kbd"),de(HF.wrapper,r),s,o),children:d.map(({key:y,reactKey:m})=>x.jsx("kbd",{"aria-hidden":"true",className:"x3nfvp2 x6s0dn4 xl56j7k x16asifk x1grt7ep x7a5moj xx3sua9 x17x4s8c xlxy82 x1q0q8m5 xib2hle x1tgivj0 x9ynric x141an7d x1e4wzip x1ltkj2j x87ps6o",children:VF(y,u)},m))})}wp.displayName="Kbd";const XF=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),ZF={horizontal:["left","right"],vertical:["up","down"],both:["left","right","up","down"]},QF={hint:{kVAEAm:"xixxii4",kpwlN0:"x1anvkwx",kogj98:"x1ghz6dp",kMzoRj:"xc342km",ksu8eU:"xng3xce",kWkggS:"x1prclbq",kaIpWk:"xh6dtrn",kGVxlE:"x1i5ehqx",kLKAdn:"xfsso4q",kGO01o:"xy143xn",kZCmMZ:"x12gdq22",kwRFfy:"x1djylfy",kGuDYH:"x141an7d",kLWn49:"x1ltkj2j",kMwMTN:"xv1l7n4",khDVqt:"xuxw1ft",kSiTet:"xg01cxk xofkqq2",k1ekBW:"xsm4mo9",kIyJzY:"xx6bhzk",kzIqYQ:"xd00j3c",kfzvcC:"x47corl",$$css:!0}};function JF(e={}){const{orientation:t="horizontal",dismissAfterMs:r=3e3,isEnabled:s=!0}=e,o=Nt(),l=g.useRef(null),u=g.useRef(!1),f=g.useRef(!1),d=g.useRef(()=>{}),p=g.useCallback(()=>{l.current&&(clearTimeout(l.current),l.current=null)},[]),y=g.useCallback(()=>{f.current=!0},[]),m=g.useCallback(()=>{f.current=!1,p(),d.current(null)},[p]),k=md({mode:"context",onShow:y,onHide:m});d.current=k.ref;const v=g.useCallback(()=>{u.current=!0,p(),k.hide(),f.current=!1,d.current(null)},[p,k]),w=g.useCallback(A=>{u.current||!s||(d.current(A),k.show(),p(),l.current=setTimeout(()=>{v()},r))},[p,v,r,s,k]);g.useEffect(()=>()=>{p(),d.current(null)},[p]);const S=g.useCallback(A=>{if(u.current||!s)return;const N=A.target;if(!N.matches(":focus-visible"))return;const L=A.currentTarget;A.relatedTarget instanceof Node&&L.contains(A.relatedTarget)||w(N)},[w,s]),E=g.useCallback(A=>{if(!f.current)return;const N=A.currentTarget;if(A.relatedTarget instanceof Node&&N.contains(A.relatedTarget)){!u.current&&A.relatedTarget instanceof HTMLElement&&d.current(A.relatedTarget);return}v()},[v]),R=g.useCallback(A=>{f.current&&XF.has(A.key)&&v()},[v]),C=x.jsx("span",{className:"x3nfvp2 x6s0dn4 xzye2dw",children:ZF[t].map(A=>x.jsx(wp,{keys:A},A))});return{hintElement:k.render(x.jsxs("span",{"aria-hidden":"true",children:[C,x.jsx("span",{className:"x11g1kdw",children:o("@astryx.keyboardHint.toNavigate")})]}),{placement:"below",alignment:"start",xstyle:QF.hint,style:{marginBlockStart:Wn["--spacing-2"]}}),onFocus:S,onBlur:E,onKeyDown:R}}const L0=new WeakMap;function qE(e,t){L0.set(e,t)}function eU(e){L0.delete(e)}function tU(e){return L0.get(e)}const nU=new Set(["article","banner","complementary","contentinfo","definition","directory","document","figure","form","generic","group","heading","list","listitem","main","navigation","none","note","paragraph","presentation","region","section","status","table","term"]);function PE(e){if(e.tabIndex<0||e.matches(":disabled")||e.closest("[inert], [hidden]")!=null||e.getClientRects().length===0)return!1;const t=getComputedStyle(e).visibility;return t!=="hidden"&&t!=="collapse"}function rU(e,t){const r=t.querySelectorAll(pp);let s=t.matches(pp)&&PE(t)?t:null;for(const l of r)if(!(s!=null&&l.tabIndex<=0)&&PE(l)){if(l.tabIndex>0)return null;s??=l}if(s==null||s.tabIndex!==0||!s.matches("a[href], button")||s.closest('[aria-hidden="true"]')!=null||s.matches('[aria-disabled="true"], [aria-haspopup]:not([aria-haspopup="false"])'))return null;let o=s;for(;o!=null&&o!==e;){const l=o.getAttribute("role")?.trim().toLowerCase(),u=o===s&&(l==="button"&&s.localName==="button"||l==="link"&&s.localName==="a");if(l!=null&&l!==""&&!u&&!nU.has(l)||o===s&&l!=null&&l!==""&&!u||o.hasAttribute("aria-activedescendant")||o.isContentEditable||o.matches('[contenteditable]:not([contenteditable="false"])')||tU(o)!=null)return null;const f=getComputedStyle(o);if(/^(auto|scroll|overlay)$/.test(f.overflowX)&&o.scrollWidth>o.clientWidth+1||/^(auto|scroll|overlay)$/.test(f.overflowY)&&o.scrollHeight>o.clientHeight+1)return null;o=o.parentElement}return o===e?s:null}function aU(e,t){const r=e.ownerDocument,s=r.defaultView;if(s==null)return()=>{};let o=null,l=null,u=null,f,d;const p=()=>{o=null,l=null,s.clearTimeout(f),d?.(),d=void 0},y=k=>{if(p(),!(k.key!=="Tab"||k.ctrlKey||k.metaKey)){if(o=k,l=k.target,k.shiftKey&&u!=null&&r.activeElement===u&&e.contains(u)){const v=e.getAttribute("tabindex");e.tabIndex=-1,d=()=>{e.getAttribute("tabindex")==="-1"&&(v==null?e.removeAttribute("tabindex"):e.setAttribute("tabindex",v))}}f=s.setTimeout(p,0)}},m=k=>{const v=o,w=l;if(p(),k.target!==e){e.contains(k.target)||(u=null);return}if(u=null,v==null||v.shiftKey||v.defaultPrevented||v.eventPhase!==0||k.relatedTarget!=null&&k.relatedTarget!==w)return;const S=rU(e,t);S!=null&&(u=S,S.focus(),r.activeElement!==S&&(u=null))};return r.addEventListener("keydown",y,!0),r.addEventListener("keyup",p,!0),r.addEventListener("pointerdown",p,!0),r.addEventListener("focusin",m,!0),s.addEventListener("blur",p),()=>{p(),r.removeEventListener("keydown",y,!0),r.removeEventListener("keyup",p,!0),r.removeEventListener("pointerdown",p,!0),r.removeEventListener("focusin",m,!0),s.removeEventListener("blur",p)}}const Vh=1,sU={isScrollable:!1,atStart:!0,atEnd:!0};function oU(e,t){const r=e.toLowerCase(),s=r.startsWith("vertical")||r.startsWith("sideways"),o=t==="rtl";if(!s)return{inline:"x",block:"y",inlineReversed:o,blockReversed:!1};const l=r==="sideways-lr"?!o:o,u=r.endsWith("-rl");return{inline:"y",block:"x",inlineReversed:l,blockReversed:u}}function iU(e){return e==="auto"||e==="scroll"||e==="overlay"}function lU(e,t){const r=getComputedStyle(e);return t==="x"?{clientExtent:e.clientWidth,contentExtent:e.scrollWidth,offset:e.scrollLeft,overflow:r.overflowX}:{clientExtent:e.clientHeight,contentExtent:e.scrollHeight,offset:e.scrollTop,overflow:r.overflowY}}function F4(e,t){return e.isConnected&&t.display!=="none"&&e.clientWidth>0&&e.clientHeight>0}function BE(e,t,r){const s=getComputedStyle(e);if(!F4(e,s))return null;const o=r[t],l=o==="x"?e.clientWidth:e.clientHeight;return(o==="x"?e.scrollWidth:e.scrollHeight)-l>Vh}function HE(e,t,r){const s=getComputedStyle(e);if(!F4(e,s))return null;const o=r[t],l=lU(e,o),u=l.contentExtent-l.clientExtent;if(!iU(l.overflow)||u<=Vh)return sU;const f=r[`${t}Reversed`],d=Math.min(u,Math.max(0,f?Math.abs(l.offset):l.offset));return{isScrollable:!0,atStart:d<=Vh,atEnd:d>=u-Vh}}const Fl={isScrollable:!1,atStart:!0,atEnd:!0},FE={inline:Fl,block:Fl},cU={inline:!1,block:!1},uU={inline:"x",block:"y",inlineReversed:!1,blockReversed:!1},dU={overflow:(e,t)=>[{kXHlph:e!=null?"xyto64x":e,kORKVm:t!=null?"x4ncuvb":t,$$css:!0},{"--x-overflowX":e??void 0,"--x-overflowY":t??void 0}]};function ma(e,t){return e===t||e==="both"}function fU(e,t){return e.inline.isScrollable===t.inline.isScrollable&&e.inline.atStart===t.inline.atStart&&e.inline.atEnd===t.inline.atEnd&&e.block.isScrollable===t.block.isScrollable&&e.block.atStart===t.block.atStart&&e.block.atEnd===t.block.atEnd}function hU(e,t){return e.inline===t.inline&&e.block===t.block}function pU(e,t){return e.inline===t.inline&&e.block===t.block&&e.inlineReversed===t.inlineReversed&&e.blockReversed===t.blockReversed}function xU(e){if(e==null)return;const t={...e};return delete t.overflow,delete t.overflowX,delete t.overflowY,delete t.overflowInline,delete t.overflowBlock,t}function UE(e){const t=g.useRef(void 0),r=g.useRef(null);return g.useCallback(s=>{if(r.current!=null&&Object.is(t.current,s))return r.current;const o=Pb(s,e);return t.current=s,r.current=o,o},[e])}function gU({axis:e,keyboardAccess:t,overscroll:r="allow",stickyContainment:s="whenScrollable"}){const[o,l]=g.useState(null),[u,f]=g.useState(null),[d,p]=g.useState(FE),[y,m]=g.useState(cU),[k,v]=g.useState(uU),w=g.useRef(FE),S=g.useCallback(D=>{l(j=>j===D?j:D)},[]),E=g.useCallback(D=>{f(j=>j===D?j:D)},[]),R=UE(S),C=UE(E);qn(()=>{if(o==null||u==null)return;let D=null,j=!0;const O=()=>{D=null;const _=getComputedStyle(o),P=oU(_.writingMode,_.direction),G=ma(e,"inline")?BE(o,"inline",P):!1,X=ma(e,"block")?BE(o,"block",P):!1,Z=ma(e,"inline")?HE(o,"inline",P):Fl,Q=ma(e,"block")?HE(o,"block",P):Fl;if(G==null||X==null||Z==null||Q==null)return;const K={inline:G,block:X},ae={inline:Z,block:Q};w.current=ae,qE(o,ae),m(I=>hU(I,K)?I:K),p(I=>fU(I,ae)?I:ae),v(I=>pU(I,P)?I:P)},M=()=>{!j||D!=null||(D=window.requestAnimationFrame(O))};qE(o,w.current),O();const H=Xu(o,M),F=Xu(u,M);o.addEventListener("scroll",M,{passive:!0}),window.addEventListener("resize",M),window.visualViewport?.addEventListener("resize",M),u.addEventListener("load",M,!0),o.addEventListener("transitionend",M),o.addEventListener("animationend",M),u.addEventListener("transitionend",M),u.addEventListener("animationend",M);const q=typeof MutationObserver>"u"?null:new MutationObserver(M);q?.observe(o,{attributes:!0,attributeFilter:["class","dir","hidden","style"]}),q?.observe(u,{attributes:!0,attributeFilter:["class","dir","hidden","style"],characterData:!0,childList:!0,subtree:!0});let B=o.parentElement;for(;B!=null;)q?.observe(B,{attributes:!0,attributeFilter:["class","dir","hidden","style"]}),B=B.parentElement;const U=document.fonts;return U?.addEventListener?.("loadingdone",M),U?.ready.then(M),()=>{j=!1,eU(o),H(),F(),q?.disconnect(),o.removeEventListener("scroll",M),window.removeEventListener("resize",M),window.visualViewport?.removeEventListener("resize",M),u.removeEventListener("load",M,!0),o.removeEventListener("transitionend",M),o.removeEventListener("animationend",M),u.removeEventListener("transitionend",M),u.removeEventListener("animationend",M),U?.removeEventListener?.("loadingdone",M),D!=null&&window.cancelAnimationFrame(D)}},[e,u,o]);const T=g.useMemo(()=>({inline:ma(e,"inline")?d.inline:Fl,block:ma(e,"block")?d.block:Fl}),[e,d]),A=T.inline.isScrollable||T.block.isScrollable;qn(()=>{if(!(t.owner!=="contentOrViewport"||!A||o==null||u==null))return aU(o,u)},[u,A,t.owner,o]);const N=g.useCallback((D={})=>{const j=T.inline.isScrollable||T.block.isScrollable,O=ma(e,"inline")&&k.inline==="x"||ma(e,"block")&&k.block==="x",M=ma(e,"inline")&&k.inline==="y"||ma(e,"block")&&k.block==="y",H=y.inline&&k.inline==="x"||y.block&&k.block==="x",F=y.inline&&k.inline==="y"||y.block&&k.block==="y",q=H||F||s==="always",B=s==="always"?O:H,U=s==="always"?M:F,{xstyle:_,...P}=D,G={...P,style:xU(P.style)},X=ye(G,de(_,dU.overflow(q?B?"auto":"hidden":"clip",q?U?"auto":"hidden":"clip"))),Z=t.owner!=="content",Q=(!Z||!j)&&o!=null&&typeof document<"u"&&document.activeElement===o,K={...X.style},ae=r==="contain"&&T.inline.isScrollable,I=r==="contain"&&T.block.isScrollable,ee=k.inline,pe=k.block;ma(e,"inline")&&(K[ee==="x"?"overscrollBehaviorX":"overscrollBehaviorY"]=ae?"contain":"auto"),ma(e,"block")&&(K[pe==="x"?"overscrollBehaviorX":"overscrollBehaviorY"]=I?"contain":"auto");const ue=t.owner!=="content"?{role:t.role??"group","aria-label":t.label,tabIndex:Z&&j?0:Q?-1:void 0}:{};return{...X,...ue,ref:R(X.ref),style:K,"data-scroll-axis":e,"data-scrollable-inline":T.inline.isScrollable?"true":void 0,"data-scrollable-block":T.block.isScrollable?"true":void 0,"data-scroll-inline-start":T.inline.atStart?"true":void 0,"data-scroll-inline-end":T.inline.atEnd?"true":void 0,"data-scroll-block-start":T.block.atStart?"true":void 0,"data-scroll-block-end":T.block.atEnd?"true":void 0}},[e,R,t,k,y,r,T,s,o]),L=g.useCallback((D={})=>({...D,ref:C(D.ref),"data-scroll-content":""}),[C]);return{getViewportProps:N,getContentProps:L,state:T}}let xh=0,gh=null;function mU(e){g.useEffect(()=>{if(!e)return;const{body:t}=document;if(xh===0){const r=window.scrollX,s=window.scrollY,o=WC(t);gh={scrollX:r,scrollY:s,overflow:t.style.overflow,position:t.style.position,top:t.style.top,left:t.style.left,right:t.style.right,gutter:o},t.style.overflow="hidden",t.style.position="fixed",t.style.top=`-${s}px`,t.style.left="0",t.style.right="0",o.settle()}return xh+=1,()=>{if(xh-=1,xh!==0||gh==null)return;const r=gh;gh=null,t.style.overflow=r.overflow,t.style.position=r.position,t.style.top=r.top,t.style.left=r.left,t.style.right=r.right,r.gutter.release(),window.scrollTo(r.scrollX,r.scrollY)}},[e])}let U4=!1;typeof window<"u"&&requestAnimationFrame(()=>{U4=!0});const yU={slideDown:{kKVMdj:"x1srr2gu x1aquc0h",k44tkh:"x9uej1z",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0},slideUp:{kKVMdj:"x1dvww92 x1aquc0h",k44tkh:"x9uej1z",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0},fadeIn:{kKVMdj:"xqcmdr3 x1aquc0h",k44tkh:"x9uej1z",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0},scaleIn:{kKVMdj:"x97zbip x1aquc0h",k44tkh:"x9uej1z",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0}};function bU(e="slideDown"){const[t]=g.useState(()=>U4);return t?yU[e]:null}const kU=50;function vU(e){const t=e.match(/^([\d.]+)ms$/);if(t)return parseFloat(t[1]);const r=e.match(/^([\d.]+)s$/);return r?parseFloat(r[1])*1e3:null}const wU={natural:10,fast:4,instant:1/0},VE=typeof Intl.Segmenter=="function"?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function SU(e){return e>=56320&&e<=57343}function EU(e,t){return t<=0||t>=e.length?t:VE?VE.segment(e).containing(t)?.index??t:SU(e.charCodeAt(t))?t-1:t}function $U(e,t,r){const s="natural",o=wU[s],{token:l}=ax(),u=g.useMemo(()=>{const E=vU(l("--duration-fast-min"));if(E==null)return kU;const R=E/10;return Math.max(4,Math.round(R))},[l,s]),[f,d]=g.useState(0),p=g.useRef(e),y=g.useRef(0),m=g.useRef(0),k=g.useRef(null);p.current=e;const v=g.useRef(e.length);e.length!==v.current&&(v.current=e.length,e.length===0&&f!==0&&(y.current=0,d(0)));const w=g.useRef(t);t!==w.current&&(w.current=t,!t&&e.length>0&&(y.current=e.length,d(e.length)));const S=wd("(prefers-reduced-motion: reduce)");return g.useEffect(()=>{if(!t||s==="instant"||S)return;function E(R){if(R-m.current>=u){m.current=R;const T=p.current,A=y.current;if(A<T.length){const N=Math.min(A+o,T.length);y.current=N,d(N)}}k.current=requestAnimationFrame(E)}return k.current=requestAnimationFrame(E),()=>{k.current!==null&&(cancelAnimationFrame(k.current),k.current=null)}},[t,o,u,s,S]),!t||s==="instant"||S?e:e.slice(0,EU(e,f))}const TU=new Set(["text","password","email","number","search","tel","url","date","datetime-local","month","time","week"]),CU=new Set(["true","menu","listbox","tree","grid","dialog"]);function jU(e){if(e.getAttribute("role")==="combobox")return!0;const t=e.getAttribute("aria-haspopup");return t!=null&&CU.has(t)}function D0({containerRef:e,inputRef:t,disabled:r=!1}){const s=g.useCallback(()=>{const o=t.current;o!=null&&(o instanceof HTMLElement&&jU(o)?o.click():o instanceof HTMLInputElement&&TU.has(o.type)||o instanceof HTMLTextAreaElement?o.focus():o instanceof HTMLElement?o.click():"focus"in o&&o.focus())},[t]);return hx({containerRef:e,interactiveRef:t,onClick:s,disabled:r})}const RU={warning:"warning",error:"error",success:"success"},AU={warning:"@astryx.input.statusButton.warning",error:"@astryx.input.statusButton.error",success:"@astryx.input.statusButton.success"},MU={statusButton:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmVPX3:"x1717udv",kogj98:"x1ghz6dp",kMzoRj:"xc342km",ksu8eU:"xng3xce",kWkggS:"xjbqb8w",kMwMTN:"x1heor9g",kkrTdU:"x1ypdohk x16khyan",kfzvcC:"x67bb7w",kaIpWk:"xjspbzw",kInvED:"x7s97pk",$$css:!0}};function V4({status:e,statusVariant:t="attached",isInGroup:r=!1,size:s="md"}){const o=Nt(),u=t==="tooltip"&&!!e?.message,[f,d]=g.useState(void 0),p=Wa({placement:"above",isEnabled:u,isOpen:f}),y=g.useCallback(()=>{d(void 0)},[]),m=g.useCallback(()=>{typeof window>"u"||typeof window.matchMedia!="function"||!window.matchMedia("(hover: none)").matches||d(w=>w!==!0)},[]);if(g.useEffect(()=>{if(f!==!0)return;const w=S=>{S.key==="Escape"&&d(void 0)};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[f]),!(!!e&&!r&&t!=="detached"))return{statusIcon:null,describedBy:void 0};const v=x.jsx(ft,{icon:RU[e.type],size:s,color:e.type,...fe("input-status-icon",{size:s,status:e.type})});return u?{statusIcon:x.jsxs(x.Fragment,{children:[x.jsx("button",{type:"button",ref:p.ref,"aria-label":o(AU[e.type]),"aria-describedby":p.describedBy,onClick:m,onBlur:y,...de(Bs.focusVisible,MU.statusButton),children:v}),p.renderTooltip(e.message)]}),describedBy:p.describedBy}:{statusIcon:v,describedBy:void 0}}function NU(e,t=!1){const r=g.useCallback(l=>{const u=e.current?.firstElementChild;u instanceof HTMLElement&&Object.assign(u.style,l?R9:A9)},[e]),s=g.useCallback(l=>{if(t)return;const u=l.target;u instanceof HTMLElement&&!u.matches(":focus-visible")||r(!0)},[t,r]),o=g.useCallback(()=>r(!1),[r]);return g.useMemo(()=>({focusProps:{onFocus:s,onBlur:o}}),[s,o])}const Pa={container:{"--_hover-delay":"xhg274n","--_reveal-opacity":"xct0gwe x2xrgwu xi33vf3 xi7d7de","--_reveal-position":"xp0pj8v x1or4zte xoa21yc xarvkxi","--_reveal-delay":"x1xiarpw xi1ebb6 x1mjsb9v x1pn63d7","--_reveal-delay-reduced":"xdjmrzf xvd8mm8 x1z42dm xm1aeao","--_conceal-opacity":"x1kgmhs9 x1316hva","--_fade-delay":"x13l1x9d x14nxqze x1wfyzv7 x1hl81f0",$$css:!0},stateInactive:{"--_reveal-opacity":"xct0gwe xfqgg65 xi33vf3 xi7d7de","--_reveal-position":"xp0pj8v x17ock8y xoa21yc xarvkxi","--_reveal-delay":"x1xiarpw x1tx49wl x1mjsb9v x1pn63d7","--_reveal-delay-reduced":"xdjmrzf xap96qf x1z42dm xm1aeao","--_conceal-opacity":"x1kgmhs9 xuzfaso","--_fade-delay":"x13l1x9d xq03417 x1wfyzv7 x1hl81f0",$$css:!0},stateActive:{"--_reveal-opacity":"x5setjs x2xrgwu xi33vf3 xi7d7de","--_reveal-position":"x1r6s5ct x1or4zte xoa21yc xarvkxi","--_reveal-delay":"x1dejzja x1t6fdr0 x1mjsb9v x1pn63d7","--_reveal-delay-reduced":"xdjmrzf xap96qf x1z42dm xm1aeao","--_conceal-opacity":"x9pmotm x1316hva","--_fade-delay":"x13l1x9d xq03417 x1wfyzv7 x1hl81f0",$$css:!0},hoverDelay:e=>[{"--_hover-delay":e!=null?"x8xu23y":e,$$css:!0},{"--x---_hover-delay":e??void 0}],reveal:{k1ekBW:"x1n1p2mu",kIyJzY:"x1tw3moq xsr0bmt",kAMwcw:"xlr8y92",kzIqYQ:"xd00j3c",kIr0Dl:"x1rq8cwj xwgk2z2",kSiTet:"xgsobzw",kVAEAm:"x1mf7ja4",$$css:!0},revealLayoutPreserved:{k1ekBW:"x19991ni",kIyJzY:"xuedmi6 x12w9bfk",kAMwcw:"xlr8y92",kIr0Dl:"x4avkj2",kSiTet:"xgsobzw",$$css:!0},conceal:{k1ekBW:"x19991ni",kIyJzY:"xuedmi6 x12w9bfk",kAMwcw:"xlr8y92",kIr0Dl:"x4avkj2",kSiTet:"x1wnsjo",$$css:!0},concealLayoutPreserved:{k1ekBW:"x19991ni",kIyJzY:"xuedmi6 x12w9bfk",kAMwcw:"xlr8y92",kIr0Dl:"x4avkj2",kSiTet:"x1wnsjo",$$css:!0},contentShown:{kSiTet:"x1hc1fzr",kVAEAm:"x1uhb9sk",kIr0Dl:"x1ahifba",$$css:!0},contentHidden:{kSiTet:"xg01cxk x1euntei",kVAEAm:"x10l6tqk xo74pv5",kIr0Dl:"x1ahifba",$$css:!0},contentHiddenLayoutPreserved:{kSiTet:"xg01cxk x1euntei",kIr0Dl:"x1ahifba",$$css:!0}},GE=Object.freeze({});function zU(e={}){const{isEnabled:t=!0}=e;return g.useMemo(()=>t?{getContainerProps:(r={})=>{const{forceState:s,hoverDelay:o=0}=r;return de(Pa.container,o>0&&Pa.hoverDelay(`${o}ms`),s==="inactive"&&Pa.stateInactive,s==="active"&&Pa.stateActive)},getContentRevealProps:(r={})=>{const{isRevealInverted:s=!1,isLayoutPreserved:o=!1,forceVisibility:l}=r,u=s?o?Pa.concealLayoutPreserved:Pa.conceal:o?Pa.revealLayoutPreserved:Pa.reveal;return de(u,l==="shown"&&Pa.contentShown,l==="hidden"&&(o?Pa.contentHiddenLayoutPreserved:Pa.contentHidden))}}:{getContainerProps:()=>GE,getContentRevealProps:()=>GE},[t])}const Td=aa({direction:"vertical"});Td.displayName="FormLayoutContext";const Gy={label:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"xzye2dw",kMv6JI:"x9ynric",kGuDYH:"xcr08ib",kLWn49:"x1kq96og",k63SB2:"x1e4wzip",kMwMTN:"xv1l7n4",kkrTdU:"x1ypdohk x16khyan",$$css:!0},labelDisabled:{kMwMTN:"xnbbluu",kkrTdU:"xt0e3qv",$$css:!0},srOnly:{ksu8eU:"xng3xce",kMcinP:"xzpqnlu",kZKoxP:"xjm9jq1",kLqNvP:"x1o0tod",kogj98:"xkdpibf",kVQacm:"xb3r6kr",kmVPX3:"x1717udv",kfzvcC:"x47corl",kVAEAm:"x10l6tqk",k87sOh:"x13vifvy",kfSwDN:"x87ps6o",khDVqt:"xuxw1ft",kzqmXN:"x1i1rx1s",$$css:!0}};function gx({label:e,inputID:t,labelID:r,isGroupLabel:s=!1,isLabelHidden:o=!1,isDisabled:l=!1,isOptional:u=!1,isRequired:f=!1,labelIcon:d,labelTooltip:p,description:y,descriptionID:m,className:k,style:v,xstyle:w,ref:S,...E}){const R=Nt(),{defaultOptionality:C}=g.use(Td),N=u&&C!=="optional"?R("@astryx.field.optional"):f&&C!=="required"?R("@astryx.field.required"):null,L=s?"span":"label",D=!s&&t!=null,j=g.useRef(null),O=g.useMemo(()=>({get current(){return t==null?null:j.current?.ownerDocument.getElementById(t)??null},set current(q){}}),[t]),M=D0({containerRef:j,inputRef:O,disabled:!D}),H=x.jsxs(x.Fragment,{children:[d&&Ta(d,{size:"sm",color:"inherit"}),e,N&&x.jsxs("span",{className:"x1sodnla x141an7d x1ltkj2j xv1l7n4",children:[x.jsx("span",{"aria-hidden":"true",children:" ∙ "}),N]}),p&&x.jsx(_i,{content:p,placement:"above",children:x.jsx(ft,{icon:"info",size:"sm",color:"inherit"})})]}),F=x.jsx(L,{ref:S,id:r,htmlFor:s?void 0:t,...E,...ye(fe("field-label"),de(Gy.label,l&&Gy.labelDisabled,o&&Gy.srOnly,w),k,v),children:H});return y?x.jsxs("div",{...{0:{className:"x78zum5 xdt5ytf"},1:{className:"xdt5ytf xjp7ctv"}}[!!o<<0],children:[F,x.jsx("span",{ref:D?j:void 0,id:m,...D?M:void 0,...{0:{className:"x9ynric x141an7d x1ltkj2j x1sodnla xv1l7n4"},2:{className:"x9ynric x141an7d x1ltkj2j x1sodnla xv1l7n4 x1ypdohk x16khyan"},1:{className:"x9ynric x141an7d x1ltkj2j x1sodnla xv1l7n4 xng3xce xzpqnlu xjm9jq1 x1o0tod xkdpibf xb3r6kr x1717udv x47corl x10l6tqk x13vifvy x87ps6o xuxw1ft x1i1rx1s"},3:{className:"x9ynric x141an7d x1ltkj2j x1sodnla xv1l7n4 x1ypdohk x16khyan xng3xce xzpqnlu xjm9jq1 x1o0tod xkdpibf xb3r6kr x1717udv x47corl x10l6tqk x13vifvy x87ps6o xuxw1ft x1i1rx1s"}}[!!D<<1|!!o<<0],children:y})]}):F}gx.displayName="FieldLabel";function G4(e,t){const r=vc();g.useEffect(()=>{e&&r(e,t==="error"?"assertive":"polite")},[r,e,t])}const LU={warning:"warning",error:"error",success:"success"},Ky={base:{kMv6JI:"x9ynric",kGuDYH:"x141an7d",kLWn49:"x1ltkj2j",$$css:!0},attached:{keoZOQ:"x3dbumh",kLKAdn:"xdgtoc0",kGO01o:"x1wesfrj",kg3NbH:"xf314gf",kVL7Gh:"xquck67",kT0f0o:"x14i3lts",kfzvcC:"x47corl",$$css:!0},detached:{keoZOQ:"xcsaf9d",k8WAf4:"xce4md1",kg3NbH:"xf314gf",kaIpWk:"xh6dtrn",$$css:!0}},DU={warning:{kWkggS:"x24i8r5",kMwMTN:"xdhq94a",$$css:!0},error:{kWkggS:"x1pritpl",kMwMTN:"x1joocv1",$$css:!0},success:{kWkggS:"xu13z74",kMwMTN:"xltfdvo",$$css:!0}};function mx({ref:e,type:t,message:r,id:s,variant:o="attached",xstyle:l,className:u,style:f,...d}){const p=bU("slideDown");return G4(r,t),x.jsx("div",{ref:e,id:s,...d,...ye(fe("field-status",{type:t,variant:o}),de(Ky.base,p,o==="attached"?Ky.attached:Ky.detached,DU[t],l),u,f),children:o==="detached"?x.jsxs("span",{className:"x78zum5 x1cy8zhl xzye2dw",children:[x.jsx("span",{className:"x3nfvp2 x6s0dn4 x14o5nre x2lah0s",children:x.jsx(ft,{icon:LU[t],size:"sm",color:"inherit",...fe("field-status-icon",{type:t})})}),x.jsx("span",{children:r})]}):r})}mx.displayName="FieldStatus";const mh={container:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kHBbk8:"xc8icb0",k7Eaqz:"xeuugli",$$css:!0},containerGap:{kOIVth:"xzye2dw",$$css:!0},horizontalLabels:{k1xSpc:"xjp7ctv",$$css:!0},attachedStatusLayer:{kVAEAm:"x1n2onr6",kY2c9j:"x8knxv4",$$css:!0}},OU={width:e=>[{kzqmXN:e!=null?"x5lhr3w":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function wc({label:e,isLabelHidden:t=!1,description:r,inputID:s,labelID:o,isGroupLabel:l=!1,descriptionID:u,isOptional:f=!1,isRequired:d=!1,isDisabled:p=!1,labelIcon:y,status:m,labelTooltip:k,statusVariant:v="attached",width:w,xstyle:S,children:E,className:R,style:C,ref:T,...A}){const{direction:N}=g.use(Td),L=N==="horizontal-labels",D=u??(r?`${s}-desc`:void 0),j=m?.messageID??(m?.message?`${s}-status`:void 0);Ci("Field","isOptional and isRequired are mutually exclusive. isOptional takes precedence.",f&&d);const O=x.jsx(gx,{label:e,inputID:s,labelID:o,isGroupLabel:l,isLabelHidden:t,isDisabled:p,isOptional:f,isRequired:d,labelIcon:y,labelTooltip:k,description:L?void 0:r,descriptionID:L?void 0:D});G4(v==="tooltip"?m?.message:void 0,m?.type);const M=m?.message&&v!=="tooltip"?x.jsx(mx,{type:m.type,message:m.message,id:j,variant:v,xstyle:v==="attached"?mh.attachedStatusLayer:void 0}):null;return L?x.jsxs("div",{ref:T,...ye(fe("field",{layout:"horizontal-labels"}),de(mh.horizontalLabels,S),R,C),...A,children:[x.jsx("div",{className:"x1enrzb7",children:O}),x.jsxs("div",{className:"x78zum5 xdt5ytf xc8icb0 x19nvjgn xlumz0n x1qs65gq",children:[r&&x.jsx(Je,{type:"supporting",display:"block",id:D,children:r}),E,M]})]}):x.jsxs("div",{ref:T,...ye(fe("field"),de(mh.container,!t&&mh.containerGap,w!=null&&OU.width(w),S),R,C),...A,children:[O,v==="attached"?x.jsxs("div",{className:"x78zum5 xdt5ytf xc8icb0 x19nvjgn xlumz0n x1qs65gq",children:[E,M]}):x.jsxs(x.Fragment,{children:[E,M]})]})}wc.displayName="Field";const uc={base:{kB7OPa:"x9f619",kVAEAm:"x1n2onr6",kY2c9j:"x1vjfegm",k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"x1txdalj",k8WAf4:"xu0wf1k",kg3NbH:"xf314gf",kMzoRj:"x1litavf",ksu8eU:"x1y0btm7",kVAM5u:"xvy26l8 x6q1khz","--_field-radius":"x1832zxr",kaIpWk:"xvdfih8",kWkggS:"x10xzikg",k1ekBW:"x12zzom9",kIyJzY:"xuedmi6 x12w9bfk",kAMwcw:"xlr8y92",kGVxlE:"x1gnnqk1 x1xqjsvb xuihb5h",kI3sdo:"x1a2a7pz",$$css:!0},disabled:{kkrTdU:"xt0e3qv",kSiTet:"xbyyjgo",kVAM5u:"xvy26l8",kGVxlE:"x1gnnqk1",$$css:!0}},O0={warning:{kVAM5u:"x8wg1ba",$$css:!0},error:{kVAM5u:"x1ofxpqo",$$css:!0},success:{kVAM5u:"x16m2moy",$$css:!0}},I0={warning:{kGVxlE:"x1gnnqk1 x9156jc",$$css:!0},error:{kGVxlE:"x1gnnqk1 x1bgmis8",$$css:!0},success:{kGVxlE:"x1gnnqk1 x8wp45d",$$css:!0}},K4={warning:{kVAM5u:"x8wg1ba xa1yw2k",$$css:!0},error:{kVAM5u:"x1ofxpqo xk2sxw7",$$css:!0},success:{kVAM5u:"x16m2moy xyq33ac",$$css:!0}},IU={button:{kZKoxP:"x1qx5ct2",kmuXW:"x2lah0s",kVAEAm:"x1n2onr6","--_input-clear-hit-inset":"xtoycft x181bpwf","--_input-clear-hit-content":"xqxtgf4 xp8r40j",k5JduY:"xh3pasq",kwXMNM:"x1j6awrg",kv0HGH:"xht581f",$$css:!0}};function W4({label:e,onClick:t,onPointerDown:r,onClickCapture:s,xstyle:o,iconClassName:l}){const{className:u}=fe("input-clear-icon"),{className:f}=fe("input-clear-button");return x.jsx(jt,{variant:"ghost",size:"sm",label:e,tooltip:e,className:f,icon:x.jsx(ft,{icon:"close",size:"sm",color:"secondary",className:l!=null?`${u} ${l}`:u}),onPointerDown:d=>{d.preventDefault(),r?.(d)},onMouseDown:d=>d.preventDefault(),onClick:t,onClickCapture:s,isIconOnly:!0,xstyle:[IU.button,o]})}function yx(e){return W4(e)}function _U(e){return W4(e)}yx.displayName="InputClearButton";const _0={inGroup:{kUk6DE:"x98rzlu",k7Eaqz:"xeuugli",kZKoxP:"x5yr21d",keTefX:"xd10s4z x1pwwqoy",krdFHd:"x15mokao x8eehn2",kVL7Gh:"xbiv7yw x1xrp5p4",kfmiAY:"x1ga7v0g x149bkfe",kT0f0o:"x16uus16 x1ursds5",kXnDq0:"x1rm9qnc",$$css:!0}};function Cd({isRequired:e=!1,isOptional:t=!1}){const{defaultOptionality:r}=g.use(Td);return!t&&(e||r==="required")}const q0=aa(null);q0.displayName="InputGroupContext";function bx(){return g.use(q0)}const qU="`xstyle`, `className`, and `style` are not supported on Field-composed inputs and were ignored. Style the field with `containerXstyle`/`containerClassName`/`containerStyle` and the control box with `controlXstyle`/`controlClassName`/`controlStyle`. `astryx upgrade` rewrites existing usage.",PU="`containerXstyle`/`containerClassName`/`containerStyle` have no effect here because no Field box renders (inside InputGroup or a `horizontal-labels` FormLayout). Inside InputGroup, style the InputGroup.";function kx(e,t,r){const s=bx(),{direction:o}=g.use(Td),l=s==null&&o!=="horizontal-labels",u=t,f=u.xstyle!=null||u.className!=null||u.style!=null;let d=t;if(f){const{xstyle:v,className:w,style:S,...E}=u;d=E}Ci(e,qU,f);const{containerXstyle:p,containerClassName:y,containerStyle:m}=r,k=p!=null||y!=null||m!=null;return Ci(e,PU,k&&!l),{rest:d,hasFieldBox:l,container:l?{xstyle:p,className:y,style:m}:{}}}const BU={sm:{kZKoxP:"x6k0iem",$$css:!0},md:{kZKoxP:"x1ueg155",$$css:!0},lg:{kZKoxP:"xssyfek",$$css:!0}};function Fa({type:e="text",label:t,isLabelHidden:r=!1,description:s,isOptional:o=!1,isRequired:l=!1,isDisabled:u=!1,isReadOnly:f=!1,disabledMessage:d,startIcon:p,status:y,statusVariant:m="attached",size:k,onChange:v,changeAction:w,isLoading:S=!1,value:E,placeholder:R,labelTooltip:C,hasClear:T=!1,hasAutoFocus:A=!1,htmlName:N,onEnter:L,onKeyDown:D,width:j,containerXstyle:O,containerClassName:M,containerStyle:H,controlXstyle:F,controlClassName:q,controlStyle:B,ref:U,id:_,"aria-describedby":P,...G}){const{rest:X,container:Z}=kx("TextInput",G,{containerXstyle:O,containerClassName:M,containerStyle:H}),Q=Nt(),K=Cd({isRequired:l,isOptional:o}),ae=bc(k,"md"),I=g.useId(),ee=_??I,pe=g.useId(),ue=g.useId(),ve=g.useId(),xe=g.useRef(null),$e=g.useRef(null),te=bx(),[,he]=g.useTransition(),[Re,Ce]=g.useOptimistic(E),Te=S||Re!==E,Me=u&&!!d,je=Wa({placement:"above",focusTrigger:"always",isEnabled:Me}),{statusIcon:He,describedBy:at}=V4({status:y,statusVariant:m,isInGroup:!!te}),{ariaLabelledBy:pt,ariaDescribedBy:et}=Bb(pe,[s?ue:null,!te&&m!=="tooltip"&&y?.message?ve:null,at,Me?je.describedBy:null],te),Ve=st=>{if(u||f)return;const ct=st.target.value;v?.(ct,st),w&&!st.defaultPrevented&&he(async()=>{Ce(ct),await w(ct,st)})},yt=g.useCallback(st=>{v?.("",null),!st||st.detail===0?xe.current?.focus():requestAnimationFrame(()=>{xe.current?.focus({preventScroll:!0})})},[v]),{onClick:Pe,onMouseUp:rt}=D0({containerRef:$e,inputRef:xe,disabled:u}),lt=x.jsxs("div",{ref:st=>{$e.current=st,je.ref(st)},onClick:Pe,onMouseUp:rt,...ye(fe("text-input",{size:ae,status:y?.type??null,disabled:u?"disabled":null,readonly:f?"readonly":null}),de(uc.base,BU[ae],u&&uc.disabled,y&&O0[y.type],y&&!u&&I0[y.type],y&&K4[y.type],te&&_0.inGroup,F),q,B),children:[p&&Ta(p,{size:"sm",color:"secondary"}),te&&x.jsx(Gs,{id:pe,children:t}),x.jsx("input",{...X,ref:xn(U,xe),id:ee,name:u?void 0:N,type:e,value:Re,onChange:Ve,onKeyDown:L||D?st=>{st.key==="Enter"&&!gd(st.nativeEvent)&&L?.(),D?.(st)}:void 0,placeholder:R,disabled:u&&!Me,"aria-disabled":Me?"true":void 0,readOnly:f||Me||void 0,autoFocus:A,"data-autofocus":A||void 0,"aria-describedby":[P,et].filter(Boolean).join(" ")||void 0,"aria-required":K?"true":void 0,"aria-invalid":y?.type==="error"?"true":void 0,"aria-busy":Te||void 0,"aria-labelledby":pt,...{0:{className:"x1lliihq x98rzlu xeuugli xc342km xng3xce x1717udv x9ynric xjm74w1 xf9zqsd xw6l6zx x1tgivj0 xjbqb8w x1a2a7pz xeyghm5"},1:{className:"x1lliihq x98rzlu xeuugli xc342km xng3xce x1717udv x9ynric xjm74w1 xf9zqsd xw6l6zx x1tgivj0 xjbqb8w x1a2a7pz xeyghm5 xt0e3qv"}}[!!u<<0]}),T&&E!==""&&!u&&!f&&x.jsx(yx,{label:Q("@astryx.textInput.clearLabel",{label:t}),onClick:yt}),Te&&x.jsx(Do,{size:"sm"}),He]});return te?x.jsxs(x.Fragment,{children:[lt,Me&&je.renderTooltip(d)]}):x.jsxs(wc,{...Z,label:t,isLabelHidden:r,description:s,inputID:ee,descriptionID:s?ue:void 0,isOptional:o,isRequired:l,isDisabled:u,status:y?{type:y.type,message:y.message,messageID:y.message?ve:void 0}:void 0,statusVariant:m,labelTooltip:C,width:j,children:[lt,Me&&je.renderTooltip(d)]})}Fa.displayName="TextInput";const Mi=aa(null);Mi.displayName="ListContext";function HU({marker:e,task:t,children:r}){const s=g.use(Mi),o=g.useMemo(()=>s==null?null:{...s,marker:e,task:t},[s,e,t]);return o==null?r:x.jsx(Mi,{value:o,children:r})}const Wy={list:{kogj98:"x1ghz6dp",kZCmMZ:"x1c1uobl",kH6xsr:"x3ct3a4",k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kOIVth:"x1lsbc85",kXHlph:"x101abm8",$$css:!0},withDividers:{kOIVth:"xxhr3t",$$css:!0},withCounter:{kt6KFK:"xif0320",$$css:!0}},FU={kt6KFK:"x1khind5",$$css:!0},UU={counterStart:e=>[FU,{"--x-counterReset":`astryx-list ${e}`!=null?`astryx-list ${e}`:void 0}]};function dc({children:e,density:t="balanced",hasDividers:r=!1,edgeCompensation:s,header:o,listStyle:l="none",start:u,xstyle:f,className:d,style:p,"data-testid":y,ref:m,...k}){const v=g.useId(),w=l==="decimal",S=w?"ol":"ul",E=g.useMemo(()=>({density:t,hasDividers:r,listStyle:l,edgeCompensation:s}),[t,r,l,s]),R=x.jsx(S,{ref:m,...k,"data-testid":y,...o!=null?{"aria-labelledby":v}:null,...w&&u!=null&&u!==1?{start:u}:{},role:"list",...ye(fe("list",{density:t,listStyle:l}),de(Wy.list,r&&Wy.withDividers,l!=="none"&&(u!=null&&u!==1?UU.counterStart(u-1):Wy.withCounter),f),d,p),children:e});return o==null?x.jsx(Mi,{value:E,children:R}):x.jsx(Mi,{value:E,children:x.jsxs("div",{className:"x78zum5 xdt5ytf",children:[x.jsx("div",{id:v,className:"x1p37lm5",children:o}),R]})})}dc.displayName="List";const VU={x1odsvnm:"x1odsvnm",$$css:!0},_s={box:{kB7OPa:"x9f619",k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmuXW:"x2lah0s",kMzoRj:"x1litavf",ksu8eU:"x1y0btm7",kaIpWk:"xx3sua9",k1ekBW:"xts7igz",kIyJzY:"xuedmi6 x12w9bfk",kAMwcw:"xlr8y92",$$css:!0},unchecked:{kMwMTN:"xqwr325",kVAM5u:"xvy26l8 xilc7fp",kWkggS:"x10xzikg xeultfy",$$css:!0},checked:{kMwMTN:"x17wrial",kVAM5u:"xad5do x1ozl1p1",kWkggS:"x1ewilqj x17srpfb",$$css:!0},disabled:{kSiTet:"xbyyjgo",kVAM5u:"x14i3s5s x61roa7",$$css:!0},disabledUnchecked:{kWkggS:"xwmxj5m xqxnq6d",$$css:!0},checkmark:{k1xSpc:"x1s85apg",kMwMTN:"x17wrial xs5hli",$$css:!0},checkmarkVisible:{k1xSpc:"x1lliihq",$$css:!0},indeterminateMark:{k1xSpc:"x1s85apg",kWkggS:"x1azo05 xwvh9j7",kaIpWk:"xjspbzw",$$css:!0},indeterminateMarkVisible:{k1xSpc:"x1lliihq",$$css:!0}},GU={sm:{kzqmXN:"xw4jnvo",kZKoxP:"x1qx5ct2",$$css:!0},md:{kzqmXN:"xvy4d1p",kZKoxP:"xxk0z11",$$css:!0}},KU={sm:{kzqmXN:"xsmyaan",kZKoxP:"x1kpxq89",$$css:!0},md:{kzqmXN:"x6jxa94",kZKoxP:"x1v9usgg",$$css:!0}},WU={sm:{kzqmXN:"x1fsd2vl",kZKoxP:"x36qwtl",$$css:!0},md:{kzqmXN:"xsmyaan",kZKoxP:"x36qwtl",$$css:!0}};function Y4({state:e,size:t="md",isDisabled:r=!1,children:s,ref:o,className:l,style:u,xstyle:f,...d}){const p=e==="checked",y=e==="indeterminate",m=p||y;return x.jsx("span",{...d,ref:o,"aria-hidden":"true",...ye(fe("checkbox-indicator",{size:t,checked:p?"checked":y?"indeterminate":null,disabled:r?"disabled":null}),de(_s.box,GU[t],m?_s.checked:_s.unchecked,r&&_s.disabled,r&&!m&&_s.disabledUnchecked,f),l,u),children:Us(s)?s:x.jsxs(x.Fragment,{children:[x.jsx("svg",{viewBox:"0 0 10 10",...ye(fe("checkbox-indicator-check",{size:t}),de(_s.checkmark,KU[t],p&&_s.checkmarkVisible)),children:x.jsx("path",{d:"M8.5 2.5L4 7.5L1.5 5",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})}),x.jsx("span",{...ye(fe("checkbox-indicator-dash",{size:t}),de(_s.indeterminateMark,WU[t],y&&_s.indeterminateMarkVisible))})]})})}Y4.displayName="CheckboxIndicator";const YU={sm:"sm",md:"sm"},Yy={slot:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmuXW:"x2lah0s",kzqmXN:"xcdlrvm",kZKoxP:"x1l36t39",$$css:!0},enabled:{kMwMTN:"xqwr325",$$css:!0},disabled:{kMwMTN:"xqa6c3m",$$css:!0}};function X4({state:e,size:t="md",isDisabled:r=!1,children:s,ref:o,className:l,style:u,xstyle:f,...d}){const p=e==="checked";return Us(s)?x.jsx("span",{...d,ref:o,"aria-hidden":"true",...ye(de(Yy.slot,r?Yy.disabled:Yy.enabled,f),l,u),children:s}):p?x.jsx(ft,{...d,"aria-hidden":"true",icon:"check",size:YU[t],color:r?"disabled":"accent",xstyle:f,className:l,style:u}):null}X4.displayName="CheckIndicator";const zl={circle:{kB7OPa:"x9f619",k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmuXW:"x2lah0s",kMzoRj:"x1litavf",ksu8eU:"x1y0btm7",kaIpWk:"xjspbzw",k1ekBW:"xts7igz",kIyJzY:"xuedmi6 x12w9bfk",kAMwcw:"xlr8y92",$$css:!0},unchecked:{kVAM5u:"xvy26l8 xilc7fp",kWkggS:"x10xzikg xeultfy",$$css:!0},checked:{kVAM5u:"xad5do x1ozl1p1",kWkggS:"x1ewilqj x17srpfb",$$css:!0},disabled:{kSiTet:"xbyyjgo",kVAM5u:"x14i3s5s x61roa7",$$css:!0},disabledUnchecked:{kWkggS:"xwmxj5m xqxnq6d",$$css:!0},dot:{kaIpWk:"xjspbzw",kWkggS:"x1azo05 xwvh9j7",$$css:!0}},XU={sm:{kzqmXN:"xw4jnvo",kZKoxP:"x1qx5ct2",$$css:!0},md:{kzqmXN:"xvy4d1p",kZKoxP:"xxk0z11",$$css:!0}},ZU={sm:{kzqmXN:"x1xc55vz",kZKoxP:"xdk7pt",$$css:!0},md:{kzqmXN:"x1fsd2vl",kZKoxP:"x170jfvy",$$css:!0}};function Z4({state:e,size:t="md",isDisabled:r=!1,children:s,ref:o,className:l,style:u,xstyle:f,...d}){const p=e!=="unchecked";return x.jsx("span",{...d,ref:o,"aria-hidden":"true",...ye(fe("radio-indicator",{size:t,checked:p?"checked":null,disabled:r?"disabled":null}),de(zl.circle,XU[t],p?zl.checked:zl.unchecked,r&&zl.disabled,r&&!p&&zl.disabledUnchecked,f),l,u),children:Us(s)?s:p&&x.jsx("span",{...ye(fe("radio-indicator-dot",{size:t}),de(zl.dot,ZU[t]))})})}Z4.displayName="RadioIndicator";const QU={check:X4,checkbox:Y4,radio:Z4};function JU(e){return e==null?null:typeof e=="string"?tx(e):e}function eV(e){return JU(e)?.indicators??null}function tV(e,t){return eV(t)?.[e]??QU[e]}function Q4(e){return tV(e,FC())}const vx=aa(null);vx.displayName="CheckboxListContext";const ci={container:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"x1txdalj",$$css:!0},containerLabelHidden:{kOIVth:"xxhr3t",$$css:!0},checkboxWrapper:{kVAEAm:"x1n2onr6",k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmuXW:"x2lah0s",kHBbk8:"xc8icb0",$$css:!0},indicatorPressOverlay:{k5JduY:"x1s928wv",kwXMNM:"x1j6awrg",kv0HGH:"xarstr8",kUfP38:"xtb6wbx",kloYau:"x2q1x1w",ks3ayO:"xyhc2n1 xzywxsk x1gybruy",kNctxI:"x1ikgzpo xsozn46",$$css:!0},input:{kVAEAm:"x10l6tqk",k87sOh:"xwa60dl",kogj98:"x1ghz6dp",kmVPX3:"x1717udv",kSiTet:"xg01cxk",kkrTdU:"x1ypdohk x16khyan",kY2c9j:"x1vjfegm",$$css:!0},inputCoarse:{kjFi6P:"xkagaj0",kHzOjL:"x80b3aj",$$css:!0},inputDisabled:{kkrTdU:"xt0e3qv",$$css:!0}},KE={sm:{kzqmXN:"xw4jnvo",kZKoxP:"x1qx5ct2",$$css:!0},md:{kzqmXN:"xvy4d1p",kZKoxP:"xxk0z11",$$css:!0}},nV={width:e=>[{kzqmXN:e!=null?"x5lhr3w":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function P0({label:e,isLabelHidden:t=!1,description:r,onChange:s,changeAction:o,isLoading:l=!1,value:u,isDisabled:f=!1,htmlName:d,disabledMessage:p,isReadOnly:y=!1,isOptional:m=!1,isRequired:k=!1,size:v="md",onFocus:w,onBlur:S,labelIcon:E,status:R,width:C,xstyle:T,className:A,style:N,ref:L,"aria-describedby":D,...j}){const O=ja(),M=g.useId(),H=g.useId(),F=g.useId(),q=Cd({isRequired:k,isOptional:m}),[,B]=g.useTransition(),[U,_]=g.useOptimistic(u),P=l||U!==u,G=f&&!!p,X=g.use(vx),Z=f&&(G||(X?.hasDisabledMessage??!1)),Q=Wa({placement:"above",focusTrigger:"always",isEnabled:G}),K=Q4("checkbox"),ae=g.useRef(null),{focusProps:I}=NU(ae,f),ee=U==="indeterminate",pe=U===!0,ue=g.useCallback($e=>{$e&&($e.indeterminate=ee)},[ee]),ve=[];D&&ve.push(D),r&&ve.push(H),R?.message&&ve.push(F),G&&ve.push(Q.describedBy);const xe=ve.length>0?ve.join(" "):void 0;return x.jsxs("div",{...ye(fe("checkbox-input",{size:v}),de(C!=null&&nV.width(C),T),A,N),children:[x.jsxs("div",{ref:$e=>{Q.interactionRef($e)},...f?void 0:O,...de(ci.container,t&&ci.containerLabelHidden,!f&&VU,!f&&or.pressedAlpha),children:[x.jsxs("div",{...de(ci.checkboxWrapper,KE[v],!f&&ci.indicatorPressOverlay),...I,children:[x.jsx("input",{...j,ref:xn(L,ue,Q.positionRef),id:M,type:"checkbox",name:f?void 0:d,checked:pe,disabled:f&&!Z,"aria-disabled":Z?"true":void 0,form:Z?"":void 0,readOnly:y,required:k,"aria-required":q?"true":void 0,onChange:$e=>{if(f||P||y)return;const te=$e.target.checked;s?.(te,$e),o&&!$e.defaultPrevented&&B(async()=>{_(te),await o(te,$e)})},onFocus:w,onBlur:S,"aria-readonly":y||void 0,"aria-describedby":xe,"aria-invalid":R?.type==="error"?!0:void 0,"aria-busy":P||void 0,...de(ci.input,Ka.centerInline("-50%"),ci.inputCoarse,KE[v],f&&ci.inputDisabled)}),x.jsx("span",{ref:ae,className:"xjp7ctv",children:x.jsx(K,{state:ee?"indeterminate":pe?"checked":"unchecked",size:v,isDisabled:f,children:P?x.jsx(Do,{size:"sm",shade:"inherit"}):null})})]}),x.jsx("div",{className:"x78zum5 xdt5ytf",children:x.jsx(gx,{...fe("checkbox-label"),label:e,inputID:M,isLabelHidden:t,isDisabled:f,isOptional:m,isRequired:k,labelIcon:E,description:r,descriptionID:H})})]}),R?.message&&x.jsx(mx,{type:R.type,message:R.message,id:F,variant:"detached"}),G&&Q.renderTooltip(p)]})}P0.displayName="CheckboxInput";const B0=g.createContext(null);B0.displayName="ItemDescriptionContext";const rV=g.lazy(async()=>bd(()=>import("./ItemSwipeLayer-Chuv-rsv.js"),[])),aV=new Set(["option","tab","row","gridcell","columnheader","rowheader","treeitem"]),sV=new Set(["listitem"]),Kn={root:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"x1txdalj","--_item-inset-inline":"xw1s368",kg3NbH:"xaip428",kVAEAm:"x1n2onr6",kB7OPa:"x9f619",k9WMMc:"x1yc453h",kaIpWk:"xh6dtrn",$$css:!0},alignStart:{kGNEyG:"x1cy8zhl",$$css:!0},interactive:{kkrTdU:"x1ypdohk x16khyan",k1ekBW:"x15406qy",kIyJzY:"xkvfbh3",kAMwcw:"xlr8y92",$$css:!0},highlighted:{kWkggS:"x1lmrjuc",$$css:!0},selected:{kWkggS:"xgcxg3y",$$css:!0},disabled:{kkrTdU:"xt0e3qv",kfzvcC:"x47corl",$$css:!0},linkRoot:{kMwMTN:"x1heor9g",kybGjl:"x1hl2dhg",$$css:!0},inlineLabel:{kmuXW:"x2lah0s",$$css:!0},inlineDescription:{kmuXW:"xs83m0k",k7Eaqz:"xeuugli",$$css:!0},label:{kMwMTN:"x5tbw38",kGuDYH:"xjm74w1",kLWn49:"xw6l6zx",$$css:!0},labelSingleTruncate:{kVQacm:"xb3r6kr",kg5iWk:"xlyipyv",khDVqt:"xuxw1ft",$$css:!0},labelMultiTruncate:{kVQacm:"xb3r6kr",k1xSpc:"x104kibb",kgKLqz:"x1ua5tub",$$css:!0},description:{kMwMTN:"x1gb3s7i",kGuDYH:"x141an7d",kLWn49:"x1ltkj2j",$$css:!0},descriptionSingleTruncate:{kVQacm:"xb3r6kr",kg5iWk:"xlyipyv",khDVqt:"xuxw1ft",$$css:!0},descriptionMultiTruncate:{kVQacm:"xb3r6kr",k1xSpc:"x104kibb",kgKLqz:"x1ua5tub",$$css:!0},swipeRoot:{kHBbk8:"xc8icb0",kFalU9:"xx69xxh",k3aq6I:"x1kncwj0",k1ekBW:"xuo13n2",kIyJzY:"x15p14ac",kAMwcw:"x158wxwp",$$css:!0}},WE={lineClamp:e=>[{kJFfOR:e!=null?"x1yhjpo9":e,$$css:!0},{"--x-WebkitLineClamp":e??void 0}]},oV={compact:{k8WAf4:"xu0wf1k",$$css:!0},balanced:{k8WAf4:"xce4md1",$$css:!0},spacious:{k8WAf4:"x8o8v82","--_item-inset-inline":"x1ytau7y",$$css:!0}};function jd({as:e="div",marker:t,startContent:r,label:s,description:o,endContent:l,align:u="center",density:f="balanced",labelLines:d,descriptionLines:p,layout:y="stacked",onClick:m,interactiveRef:k,href:v,target:w,rel:S,isHighlighted:E=!1,isSelected:R=!1,isDisabled:C=!1,swipeActions:T,swipeBehavior:A="reveal",xstyle:N,className:L,style:D,ref:j,role:O,...M}){const H=ja(),F=Oi(),q=k!=null,B=g.useRef(null),{onClick:U}=hx({containerRef:B,interactiveRef:k??void 0,disabled:C});Ci("Item","`interactiveRef` is mutually exclusive with `onClick`/`href`. In delegation mode the row only forwards clicks to the referenced control, so `onClick`/`href` are ignored. Drop one of them.",q&&(m!=null||v!=null));const _=m!=null||v!=null||q,{target:P,rel:G}=ej(w,S),X=O!=null,Z=typeof e!="string"&&v!=null,Q=T?.leading??[],K=T?.trailing??[],ae=T!=null&&(Q.length>0||K.length>0)&&!C&&!q&&!Z&&(O==null||sV.has(O));Ci("Item",'`swipeBehavior="commit"` fires only the outermost entry of a side; the other entries have no touch path. Give a committing side one entry, or use `swipeBehavior="reveal"`.',ae&&A==="commit"&&(Q.length>1||K.length>1));const I=g.useRef(null),ee=g.useRef(null),pe=g.useCallback(Pe=>{ee.current=Pe},[]),ue=Z?{href:C?void 0:v,target:C?void 0:P,rel:C?void 0:G}:null,ve=O!=null&&aV.has(O),xe=g.useId(),$e=Us(o),te=typeof s=="string",he=typeof o=="string",Re=d!=null?d===1?Kn.labelSingleTruncate:Kn.labelMultiTruncate:te?Kn.labelSingleTruncate:null,Ce=y==="inline"&&o!=null,Te=p!=null?p===1?Kn.descriptionSingleTruncate:Kn.descriptionMultiTruncate:he||Ce?Kn.descriptionSingleTruncate:null,Me=x.jsxs(x.Fragment,{children:[x.jsx("span",{...de(Kn.label,Ce&&Kn.inlineLabel,Re,d!=null&&d>1&&WE.lineClamp(d)),children:s}),o!=null&&x.jsx("span",{id:$e?xe:void 0,...de(Kn.description,Ce&&Kn.inlineDescription,Te,p!=null&&p>1&&WE.lineClamp(p)),children:o})]}),je=Pe=>{C||Pe.target.closest("button, a, input, select, textarea")||m?.(Pe)},He=x.jsxs(x.Fragment,{children:[t,r!=null&&x.jsx("span",{className:"x3psx0u x78zum5",children:r}),X||q?x.jsx("span",{...{0:{className:"x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h"},2:{className:"x78zum5 x98rzlu xeuugli x1yc453h x1q0g3np x6s0dn4 x1lfs0n9"},1:{className:"x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h xbyyjgo"},3:{className:"x78zum5 x98rzlu xeuugli x1yc453h x1q0g3np x6s0dn4 x1lfs0n9 xbyyjgo"}}[!!Ce<<1|!!C<<0],children:Me}):v!=null&&!Z?x.jsx(F,{href:v,target:P,rel:G,"aria-disabled":C||void 0,tabIndex:C?-1:void 0,...{0:{className:"xmper1u x16khyan x1heor9g x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h x1hl2dhg x1a2a7pz"},2:{className:"xmper1u x16khyan x1heor9g x78zum5 x98rzlu xeuugli x1yc453h x1hl2dhg x1a2a7pz x1q0g3np x6s0dn4 x1lfs0n9"},1:{className:"xmper1u x16khyan x1heor9g x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h x1hl2dhg x1a2a7pz xbyyjgo"},3:{className:"xmper1u x16khyan x1heor9g x78zum5 x98rzlu xeuugli x1yc453h x1hl2dhg x1a2a7pz x1q0g3np x6s0dn4 x1lfs0n9 xbyyjgo"}}[!!Ce<<1|!!C<<0],children:Me}):m!=null?x.jsx("button",{type:"button",onClick:m,disabled:C,...{0:{className:"xmper1u x16khyan x1heor9g x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h x1a2a7pz"},2:{className:"xmper1u x16khyan x1heor9g x78zum5 x98rzlu xeuugli x1yc453h x1a2a7pz x1q0g3np x6s0dn4 x1lfs0n9"},1:{className:"xmper1u x16khyan x1heor9g x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h x1a2a7pz xbyyjgo"},3:{className:"xmper1u x16khyan x1heor9g x78zum5 x98rzlu xeuugli x1yc453h x1a2a7pz x1q0g3np x6s0dn4 x1lfs0n9 xbyyjgo"}}[!!Ce<<1|!!C<<0],children:Me}):x.jsx("span",{...{0:{className:"x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h"},2:{className:"x78zum5 x98rzlu xeuugli x1yc453h x1q0g3np x6s0dn4 x1lfs0n9"},1:{className:"x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h xbyyjgo"},3:{className:"x78zum5 x98rzlu xeuugli x1yc453h x1q0g3np x6s0dn4 x1lfs0n9 xbyyjgo"}}[!!Ce<<1|!!C<<0],children:Me}),l!=null&&x.jsx("span",{...{0:{className:"x3psx0u x78zum5 xvc5jky"},1:{className:"x3psx0u x78zum5 xvc5jky xbyyjgo"}}[!!C<<0],children:l})]}),at=xn(j,B),pt=xn(q?at:j,ae?I:void 0),et=q?U:X?m:_?je:void 0,Ve=ae&&et!=null?Pe=>{ee.current?.shouldSuppressClick()!==!0&&et(Pe)}:et,yt=ae?{onPointerDown:Pe=>ee.current?.handlers.onPointerDown(Pe),onPointerMove:Pe=>ee.current?.handlers.onPointerMove(Pe),onPointerUp:Pe=>ee.current?.handlers.onPointerUp(Pe),onPointerCancel:Pe=>ee.current?.handlers.onPointerCancel(Pe),onClickCapture:Pe=>ee.current?.handlers.onClickCapture(Pe),onKeyDown:Pe=>ee.current?.handlers.onKeyDown(Pe)}:void 0;return x.jsxs(e,{ref:pt,...M,...yt,...ue,"aria-selected":ve&&R||void 0,"aria-current":M["aria-current"]??(R&&!ve?!0:void 0),"aria-disabled":C||void 0,..._?H:void 0,...ye(fe("item",{density:f,align:u}),pn.focusWithin(Kn.root,oV[f],u==="start"&&Kn.alignStart,_&&Kn.interactive,_&&or.backgroundColor,Z&&Kn.linkRoot,E&&Kn.highlighted,R&&Kn.selected,C&&!X&&Kn.disabled,ae&&Kn.swipeRoot,N),L,D),role:O,onClick:Ve,children:[x.jsx(B0,{value:$e?xe:null,children:He}),ae&&x.jsx(g.Suspense,{fallback:null,children:x.jsx(rV,{rootRef:I,onBridge:pe,leading:Q,trailing:K,behavior:A})})]})}jd.displayName="Item";const Xy={withCounter:{kAmcRD:"xfrknyr",$$css:!0},inlineEdgeCompensation:{keTefX:"x1t1czy8",k71WvV:"x1cphv78",$$css:!0},withDivider:{kt9PQ7:"x92x3c3",kfdmCh:"x1q0q8m5",kL6WhQ:"xw8gpjh",kx8K5S:"x1t1lzn6",$$css:!0}},yi={dot:{kzqmXN:"x1v4s8kt",kZKoxP:"xols6we",kaIpWk:"x16rqkct",kWkggS:"x19aspcf",$$css:!0},circle:{kzqmXN:"x1v4s8kt",kZKoxP:"xols6we",kaIpWk:"x16rqkct",kMzoRj:"xmkeg23",ksu8eU:"x1y0btm7",kVAM5u:"xqcx1ss",kWkggS:"xjbqb8w",$$css:!0},square:{kzqmXN:"x1v4s8kt",kZKoxP:"xols6we",kWkggS:"x19aspcf",$$css:!0},number:{kSGwAc:"xoi2r2e",kmuXW:"x2lah0s",kMwMTN:"x1tgivj0",kGuDYH:"xjm74w1",kLWn49:"xw6l6zx",kzqmXN:"x12xnipv",$$css:!0},decimal:{kgeoSG:"xc2ndz5",$$css:!0},lowerAlpha:{kgeoSG:"x1mls8ih",$$css:!0},lowerRoman:{kgeoSG:"xdaf9gw",$$css:!0}},iV={decimal:yi.decimal,"lower-alpha":yi.lowerAlpha,"lower-roman":yi.lowerRoman},lV={noRadius:{kaIpWk:"x2u8bby",$$css:!0}};function Sc({label:e,description:t,startContent:r,endContent:s,onClick:o,interactiveRef:l,href:u,target:f,rel:d,isDisabled:p=!1,isSelected:y=!1,xstyle:m,className:k,style:v,ref:w,...S}){const E=g.use(Mi),R=E?.density??"balanced",C=E?.hasDividers??!1,T=E?.listStyle??"none",A=E?.edgeCompensation,N=T!=="none",L=T==="none"?null:E?.marker??T,D=L==null?void 0:E?.task,j=D!=null?x.jsx("span",{className:"xqcrz7y x78zum5 x2lah0s x1oms9s6",children:x.jsx(P0,{size:"sm",value:D.isChecked,label:D.label,isLabelHidden:!0,isReadOnly:!0})}):L==="disc"||L==="circle"||L==="square"?x.jsx("span",{className:"xoi2r2e x9f619 x78zum5 x6s0dn4 xl56j7k x2lah0s x12xnipv x1233pnv",children:x.jsx("span",{...de(L==="disc"?yi.dot:L==="circle"?yi.circle:yi.square)})}):L!=null?x.jsx("span",{...de(yi.number,iV[L])}):null;return x.jsx(jd,{as:"li",ref:w,marker:j,startContent:r,label:e,description:t,endContent:s,onClick:o,interactiveRef:l,href:u,target:f,rel:d,isDisabled:p,isSelected:y,density:R,xstyle:[N&&Xy.withCounter,C&&Xy.withDivider,C&&lV.noRadius,A==="inline"&&Xy.inlineEdgeCompensation,m],...ye(fe("list-item"),{className:k,style:v}),...S})}Sc.displayName="ListItem";const J4=[{labelKey:"settings.workspace",panels:[{id:"appearance",labelKey:"settings.appearance",descriptionKey:"settings.appearanceDescription",icon:E0},{id:"language",labelKey:"settings.languageRegion",descriptionKey:"settings.languageRegionDescription",icon:S0},{id:"advanced",labelKey:"settings.advanced",descriptionKey:"settings.advancedDescription",icon:fP}]},{labelKey:"settings.features",panels:[{id:"library",labelKey:"settings.library",descriptionKey:"settings.libraryDescription",icon:w0}]}],YE=J4.flatMap(e=>e.panels),cV="appearance",uV=[{id:"color-theme",titleKey:"settings.colorTheme",descriptionKey:"settings.colorThemeDescription",panel:"appearance",icon:E0},{id:"time-zone",titleKey:"settings.timezone",descriptionKey:"settings.timezoneDescription",panel:"language",icon:S0},{id:"time-format",titleKey:"settings.timeFormat",descriptionKey:"settings.timeFormatDescription",panel:"language",icon:uj},{id:"fetcher",titleKey:"settings.capturesFetcher",descriptionKey:"settings.capturesFetcherDescription",panel:"library",icon:cj},{id:"scrape-concurrency",titleKey:"settings.capturesConcurrency",descriptionKey:"settings.capturesConcurrencyDescription",panel:"library",icon:lj},{id:"export-data",titleKey:"settings.exportData",descriptionKey:"settings.exportDataDescription",panel:"advanced",icon:G1},{id:"import-data",titleKey:"settings.importData",descriptionKey:"settings.importDataDescription",panel:"advanced",icon:V1}];function e6(e){return YE.find(t=>t.id===e)??YE[0]}function dV(e,t,r){return[r(e.titleKey),r(e.descriptionKey),r(e6(e.panel).labelKey)].some(s=>s.toLowerCase().includes(t))}const fV={grid:{k1xSpc:"xrvj5dj",$$css:!0}},hV={kJBjZk:"xhij9v2",$$css:!0},XE={templateColumns:e=>[{kumcoG:e!=null?"xqketvx":e,$$css:!0},{"--x-gridTemplateColumns":e??void 0}],autoRows:e=>[hV,{"--x-gridAutoRows":`${e}px`!=null?`${e}px`:void 0}]},pV={start:{kGNEyG:"x7a106z",$$css:!0},center:{kGNEyG:"x6s0dn4",$$css:!0},end:{kGNEyG:"xpqajaz",$$css:!0},stretch:{kGNEyG:"x1qjc9v5",$$css:!0}},xV={start:{kAPf3g:"x619ttb",$$css:!0},center:{kAPf3g:"x1o2pa38",$$css:!0},end:{kAPf3g:"x4xo5sw",$$css:!0},stretch:{kAPf3g:"xl4xnwh",$$css:!0}},gV={0:{kOIVth:"xsn7fz1",$$css:!0},1:{kOIVth:"xzye2dw",$$css:!0},2:{kOIVth:"x1txdalj",$$css:!0},3:{kOIVth:"xjcht0a",$$css:!0},4:{kOIVth:"x18g69wz",$$css:!0},5:{kOIVth:"x9mgr7n",$$css:!0},6:{kOIVth:"x1qh66ti",$$css:!0},8:{kOIVth:"x4t41sb",$$css:!0},10:{kOIVth:"x3hoi3v",$$css:!0},"0.5":{kOIVth:"x1lsbc85",$$css:!0},"1.5":{kOIVth:"x1s4dlld",$$css:!0}},mV={0:{khm7nJ:"x6yxi7o",$$css:!0},1:{khm7nJ:"x1ngg2t4",$$css:!0},2:{khm7nJ:"x1x7z4sm",$$css:!0},3:{khm7nJ:"x4olc9o",$$css:!0},4:{khm7nJ:"xtx9w7w",$$css:!0},5:{khm7nJ:"x1iu6piu",$$css:!0},6:{khm7nJ:"xczp1bk",$$css:!0},8:{khm7nJ:"xgx0vcf",$$css:!0},10:{khm7nJ:"x1xpicb7",$$css:!0},"0.5":{khm7nJ:"x1tw44j4",$$css:!0},"1.5":{khm7nJ:"xhq53yo",$$css:!0}},yV={0:{k1C7PZ:"x1o57wo1",$$css:!0},1:{k1C7PZ:"x1lfs0n9",$$css:!0},2:{k1C7PZ:"xak3so",$$css:!0},3:{k1C7PZ:"xewh9hi",$$css:!0},4:{k1C7PZ:"xty4p9g",$$css:!0},5:{k1C7PZ:"x1eqhezk",$$css:!0},6:{k1C7PZ:"x3qlgwd",$$css:!0},8:{k1C7PZ:"xicv188",$$css:!0},10:{k1C7PZ:"x1p37tyl",$$css:!0},"0.5":{k1C7PZ:"x1kihgfc",$$css:!0},"1.5":{k1C7PZ:"x1thn6ci",$$css:!0}},ZE={0:"--spacing-0",.5:"--spacing-0-5",1:"--spacing-1",1.5:"--spacing-1-5",2:"--spacing-2",3:"--spacing-3",4:"--spacing-4",5:"--spacing-5",6:"--spacing-6",8:"--spacing-8",10:"--spacing-10"};function bV(e,t,r,s,o){const l=o!=null?ZE[o]:s!=null?ZE[s]:null,u=l?`calc((100% - ${t-1} * var(${l})) / ${t})`:`calc(100% / ${t})`,f=`min(100%, max(${e}px, ${u}))`;return`repeat(${r}, minmax(${f}, 1fr))`}function t6({columns:e,rowHeight:t,width:r,height:s,maxWidth:o,minHeight:l,gap:u,rowGap:f,columnGap:d,align:p,justify:y,xstyle:m,className:k,style:v,children:w,ref:S,...E}){let R;if(typeof e=="object"&&e!=null){const A=e.repeat==="fit"?"auto-fit":"auto-fill";e.max!=null&&e.max>0?R=bV(e.minWidth,e.max,A,u,d):R=`repeat(${A}, minmax(${e.minWidth}px, 1fr))`}else typeof e=="number"&&e>0?R=`repeat(${e}, 1fr)`:R="1fr";const C={...r!=null&&{width:typeof r=="number"?`${r}px`:r},...s!=null&&{height:typeof s=="number"?`${s}px`:s},...o!=null&&{maxWidth:typeof o=="number"?`${o}px`:o},...l!=null&&{minHeight:typeof l=="number"?`${l}px`:l}},T=typeof e=="number"?e:void 0;return x.jsx("div",{ref:S,...ye(fe("grid",{columns:T,gap:u,align:p,justify:y}),de(fV.grid,XE.templateColumns(R),t!=null&&XE.autoRows(t),u!=null&&gV[u],f!=null&&mV[f],d!=null&&yV[d],p!=null&&pV[p],y!=null&&xV[y],m),k,{...v,...C}),...E,children:w})}t6.displayName="Grid";const kr={interactive:{"--selectable-card-ring-color":"x11rj6l1",kVAEAm:"x1n2onr6",kkrTdU:"x1ypdohk x16khyan",k1ekBW:"x16mfhj0",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",$$css:!0},overlay:{"--_press-overlay":"x1s9pv7w xb8awce x1a5qima x1sad4of x1s2lk0z xmfmiv1 x1hn5ov8","--_press-overlay-transition":"x1wkyqe6 xbb2ue6 x1wphrdb",k5JduY:"x1s928wv",kwXMNM:"x1j6awrg",kv0HGH:"xarstr8",kUfP38:"x1k48kgn",kloYau:"x2q1x1w",kRicXK:"x1ywzrc5",kPNhGg:"x18w5vxb",kA8PQs:"x1dlmc9c",ks3ayO:"x1l0fnur",$$css:!0},disabled:{kkrTdU:"xt0e3qv",kSiTet:"xbyyjgo",$$css:!0},selected:{kVAM5u:"xad5do","--_card-ring":"xr9ms2c",$$css:!0},selectedBlue:{kVAM5u:"xlee4gx","--_card-ring":"xgwwt2v",$$css:!0},selectedCyan:{kVAM5u:"xb1xfl","--_card-ring":"xcdi0x3",$$css:!0},selectedGray:{kVAM5u:"x1w9ec3u","--_card-ring":"x1m1zkwp",$$css:!0},selectedGreen:{kVAM5u:"xy90a9n","--_card-ring":"x1485227",$$css:!0},selectedOrange:{kVAM5u:"xloqurj","--_card-ring":"x1cclxpp",$$css:!0},selectedPink:{kVAM5u:"x1czkbn8","--_card-ring":"xzs6dn4",$$css:!0},selectedPurple:{kVAM5u:"xq98wne","--_card-ring":"x9zgi83",$$css:!0},selectedRed:{kVAM5u:"xjqgoec","--_card-ring":"xo8718j",$$css:!0},selectedTeal:{kVAM5u:"x1r9gxr1","--_card-ring":"xp4e5fy",$$css:!0},selectedYellow:{kVAM5u:"x1kpnwn1","--_card-ring":"x1glw7ee",$$css:!0},selectedUnknown:{"--_card-ring":"x3zsw4j",$$css:!0}},kV=e=>{switch(e){case"default":case"transparent":case"muted":return kr.selected;case"blue":return kr.selectedBlue;case"cyan":return kr.selectedCyan;case"gray":return kr.selectedGray;case"green":return kr.selectedGreen;case"orange":return kr.selectedOrange;case"pink":return kr.selectedPink;case"purple":return kr.selectedPurple;case"red":return kr.selectedRed;case"teal":return kr.selectedTeal;case"yellow":return kr.selectedYellow;default:return kr.selectedUnknown}};function n6({label:e,isSelected:t,onChange:r,onClick:s,onMouseUp:o,isDisabled:l=!1,children:u,padding:f,variant:d="default",elevation:p="none",width:y,height:m,maxWidth:k,ref:v,xstyle:w,className:S,style:E,...R}){const C=ja(),T=g.useRef(null),A=g.useRef(null),N=g.useCallback(H=>{l||r(!t)},[l,t,r]),L=g.useCallback(H=>{if(l){(H.key===" "||H.key==="Enter")&&H.preventDefault();return}H.key==="Enter"&&(H.preventDefault(),r(!t))},[l,t,r]),{onClick:D,onMouseUp:j}=hx({containerRef:T,interactiveRef:A,onClick:N,disabled:l}),O=s?H=>{D(H),s(H)}:D,M=o?H=>{j(H),o(H)}:j;return x.jsxs(Ks,{ref:xn(v,T),...l?void 0:C,width:y,height:m,maxWidth:k,padding:f,variant:d,elevation:p,...ye(fe("selectable-card",{variant:d,selected:t?"true":"false"}),pn.focusWithin(),S,E),xstyle:[kr.interactive,t&&kV(d),!l&&kr.overlay,!l&&or.pressedAlpha,l&&kr.disabled,w],onClick:l?void 0:O,onMouseUp:l?void 0:M,...R,children:[x.jsx("input",{ref:A,type:"checkbox",checked:t,"aria-label":e,"aria-disabled":l?"true":void 0,onChange:()=>{l||r(!t)},onKeyDown:L,className:"x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr xzpqnlu xuxw1ft xc342km"}),u]})}n6.displayName="SelectableCard";var _t={size:"1em","aria-hidden":!0},vV={close:x.jsx(y4,{..._t}),chevronDown:x.jsx(jj,{..._t}),chevronLeft:x.jsx(Aj,{..._t}),chevronRight:x.jsx(Nj,{..._t}),chevronsLeft:x.jsx(Lj,{..._t}),chevronsRight:x.jsx(Oj,{..._t}),check:x.jsx(Tj,{..._t}),success:x.jsx(_j,{..._t}),error:x.jsx(Pj,{..._t}),warning:x.jsx(f4,{..._t}),info:x.jsx(n4,{..._t}),calendar:x.jsx(wj,{..._t}),clock:x.jsx(Hj,{..._t}),externalLink:x.jsx(Xj,{..._t}),menu:x.jsx(a4,{..._t}),moreHorizontal:x.jsx(Wj,{..._t}),search:x.jsx(l4,{..._t}),upload:x.jsx(p4,{..._t}),arrowUp:x.jsx(kj,{..._t}),arrowDown:x.jsx(gj,{..._t}),arrowsUpDown:x.jsx(yj,{..._t}),funnel:x.jsx(e4,{..._t}),eyeSlash:x.jsx(Qj,{..._t}),viewColumns:x.jsx(Uj,{..._t}),copy:x.jsx(Gj,{..._t}),checkDouble:x.jsx(Ej,{..._t}),wrench:x.jsx(g4,{..._t}),stop:x.jsx(u4,{..._t}),microphone:x.jsx(o4,{..._t})};const wV={name:"neutral",__built:!0,tokens:{"--font-size-4xs":"0.375rem","--font-size-3xs":"0.4375rem","--font-size-2xs":"0.5rem","--font-size-xs":"0.625rem","--font-size-sm":"0.75rem","--font-size-base":"0.875rem","--font-size-lg":"1.0625rem","--font-size-xl":"1.25rem","--font-size-2xl":"1.5rem","--font-size-3xl":"1.8125rem","--font-size-4xl":"2.1875rem","--font-size-5xl":"2.625rem","--text-heading-1-size":"var(--font-size-2xl)","--text-heading-1-weight":"var(--font-weight-semibold)","--text-heading-1-leading":"1.3333","--text-heading-2-size":"var(--font-size-xl)","--text-heading-2-weight":"var(--font-weight-semibold)","--text-heading-2-leading":"1.4","--text-heading-3-size":"var(--font-size-lg)","--text-heading-3-weight":"var(--font-weight-bold)","--text-heading-3-leading":"1.4118","--text-heading-4-size":"var(--font-size-base)","--text-heading-4-weight":"var(--font-weight-bold)","--text-heading-4-leading":"1.4286","--text-heading-5-size":"var(--font-size-sm)","--text-heading-5-weight":"var(--font-weight-semibold)","--text-heading-5-leading":"1.6667","--text-heading-6-size":"var(--font-size-xs)","--text-heading-6-weight":"var(--font-weight-semibold)","--text-heading-6-leading":"1.6","--text-body-size":"var(--font-size-base)","--text-body-weight":"var(--font-weight-normal)","--text-body-leading":"1.4286","--text-large-size":"var(--font-size-lg)","--text-large-weight":"var(--font-weight-semibold)","--text-large-leading":"1.4118","--text-label-size":"var(--font-size-base)","--text-label-weight":"var(--font-weight-medium)","--text-label-leading":"1.4286","--text-code-size":"var(--font-size-base)","--text-code-weight":"var(--font-weight-normal)","--text-code-leading":"1.4286","--text-supporting-size":"var(--font-size-sm)","--text-supporting-weight":"var(--font-weight-normal)","--text-supporting-leading":"1.6667","--text-display-1-size":"var(--font-size-5xl)","--text-display-1-weight":"var(--font-weight-normal)","--text-display-1-leading":"1.2381","--text-display-2-size":"var(--font-size-4xl)","--text-display-2-weight":"var(--font-weight-normal)","--text-display-2-leading":"1.2571","--text-display-3-size":"var(--font-size-3xl)","--text-display-3-weight":"var(--font-weight-normal)","--text-display-3-leading":"1.3793","--duration-fast-min":"95ms","--duration-fast":"125ms","--duration-fast-max":"165ms","--duration-medium-min":"225ms","--duration-medium":"300ms","--duration-medium-max":"400ms","--duration-slow-min":"525ms","--duration-slow":"700ms","--duration-slow-max":"935ms","--font-family-body":'Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',"--font-family-heading":'Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',"--font-family-code":'ui-monospace, "SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace',"--color-syntax-keyword":"light-dark(#6b187c, #efa8ff)","--color-syntax-string":"light-dark(#0b5615, #a4d6a3)","--color-syntax-comment":"light-dark(#6a6a6a, #9e9e9e)","--color-syntax-number":"light-dark(#733100, #ffb37e)","--color-syntax-function":"light-dark(#00458c, #a1caff)","--color-syntax-type":"light-dark(#6b187c, #efa8ff)","--color-syntax-variable":"light-dark(#111111, #e2e2e2)","--color-syntax-operator":"light-dark(#6a6a6a, #9e9e9e)","--color-syntax-constant":"light-dark(#733100, #ffb37e)","--color-syntax-tag":"light-dark(#8a0011, #ffaea7)","--color-syntax-attribute":"light-dark(#584400, #eec448)","--color-syntax-property":"light-dark(#005348, #90d7c8)","--color-syntax-punctuation":"light-dark(#6a6a6a, #9e9e9e)","--color-syntax-background":"light-dark(#ffffff, #111111)","--color-background-surface":"light-dark(#ffffff, #262626)","--color-background-body":"light-dark(#f1f1f1, #1b1b1b)","--color-background-card":"light-dark(#ffffff, #1b1b1b)","--color-background-popover":"light-dark(#ffffff, #1b1b1b)","--color-background-muted":"light-dark(#f1f1f1, #1b1b1b)","--color-accent":"light-dark(#1b1b1b, #f1f1f1)","--color-accent-muted":"light-dark(#f1f1f1, #262626)","--color-neutral":"light-dark(#0000000F, #ffffff1A)","--color-overlay":"light-dark(#00000080, #000000CC)","--color-overlay-hover":"light-dark(#0000000D, #ffffff0D)","--color-overlay-pressed":"light-dark(#0000001A, #ffffff1A)","--color-text-primary":"light-dark(#000000, #ffffff)","--color-text-secondary":"light-dark(#474747, #9e9e9e)","--color-text-disabled":"light-dark(#919191, #525252)","--color-text-accent":"light-dark(#1b1b1b, #f1f1f1)","--color-on-dark":"#ffffff","--color-on-light":"#111111","--color-on-accent":"light-dark(#ffffff, #111111)","--color-on-success":"light-dark(#ffffff, #111111)","--color-on-error":"light-dark(#ffffff, #111111)","--color-on-warning":"#111111","--color-icon-accent":"light-dark(#1b1b1b, #f1f1f1)","--color-icon-primary":"light-dark(#000000, #ffffff)","--color-icon-secondary":"light-dark(#6a6a6a, #9e9e9e)","--color-icon-disabled":"light-dark(#919191, #525252)","--color-success":"light-dark(#00490b, #a4d6a3)","--color-error":"light-dark(#76000c, #ffc4be)","--color-warning":"light-dark(#4b3900, #f8d36a)","--color-success-muted":"light-dark(#bce0bb, #90ca903D)","--color-error-muted":"light-dark(#ffc4be, #ff98903D)","--color-warning-muted":"light-dark(#fae19e, #e2b6233D)","--color-border":"light-dark(#00000014, #ffffff1A)","--color-border-emphasized":"light-dark(#d4d4d4, #525252)","--color-skeleton":"light-dark(#f1f1f1, #525252)","--color-shadow":"light-dark(#0000001A, #0000004D)","--color-tint-hover":"light-dark(black, white)","--color-background-red":"light-dark(#ffc4be, #5b2b28)","--color-border-red":"light-dark(#ffaea7, #fa6762)","--color-icon-red":"light-dark(#76000c, #ff9890)","--color-text-red":"light-dark(#76000c, #ffaea7)","--color-background-orange":"light-dark(#ffc7a1, #503424)","--color-border-orange":"light-dark(#ffc7a1, #df843f)","--color-icon-orange":"light-dark(#622700, #ff9e55)","--color-text-orange":"light-dark(#622700, #ffb37e)","--color-background-yellow":"light-dark(#fae19e, #453a1c)","--color-border-yellow":"light-dark(#e3c36c, #c29900)","--color-icon-yellow":"light-dark(#4b3900, #e2b623)","--color-text-yellow":"light-dark(#4b3900, #eec448)","--color-background-green":"light-dark(#bce0bb, #2b422b)","--color-border-green":"light-dark(#aad4a9, #6ab26b)","--color-icon-green":"light-dark(#00490b, #90ca90)","--color-text-green":"light-dark(#00490b, #90ca90)","--color-background-teal":"light-dark(#a9e2d6, #28413c)","--color-border-teal":"light-dark(#90d7c8, #4fb1a0)","--color-icon-teal":"light-dark(#00463d, #81c9bb)","--color-text-teal":"light-dark(#00463d, #90d7c8)","--color-background-cyan":"light-dark(#9ae2f4, #274046)","--color-border-cyan":"light-dark(#85d5e9, #49adc4)","--color-icon-cyan":"light-dark(#004351, #71c7dd)","--color-text-cyan":"light-dark(#004351, #85d5e9)","--color-background-blue":"light-dark(#b9d7ff, #253c5a)","--color-border-blue":"light-dark(#a1caff, #5aa0f8)","--color-icon-blue":"light-dark(#003978, #88bcff)","--color-text-blue":"light-dark(#003978, #a1caff)","--color-background-purple":"light-dark(#f7d5ff, #4a2f51)","--color-border-purple":"light-dark(#f3bfff, #d885eb)","--color-icon-purple":"light-dark(#5c0e6c, #e496f6)","--color-text-purple":"light-dark(#5c0e6c, #eaacf8)","--color-background-pink":"light-dark(#ffc0d7, #572b3d)","--color-border-pink":"light-dark(#ffc0d7, #fc78b1)","--color-icon-pink":"light-dark(#70003f, #fd92bd)","--color-text-pink":"light-dark(#70003f, #ffa9ca)","--color-background-gray":"light-dark(#e2e2e2, #303030)","--color-border-gray":"light-dark(#d4d4d4, #262626)","--color-icon-gray":"light-dark(#474747, #9e9e9e)","--color-text-gray":"light-dark(#1b1b1b, #d4d4d4)","--radius-none":"0px","--radius-inner":"0.375rem","--radius-element":"0.625rem","--radius-container":"0.75rem","--radius-page":"1.75rem","--radius-full":"9999px","--shadow-low":"0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 25%)), 0 4px 8px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 40%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 8%))","--shadow-med":"0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 35%)), 0 4px 12px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 12%))","--shadow-high":"0 4px 6px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%)), 0 12px 24px light-dark(oklch(0 0 0 / 15%), oklch(0 0 0 / 70%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 15%))","--shadow-inset-hover":"inset 0px 0px 0px 2px #0074e24D","--shadow-inset-selected":"inset 0px 0px 0px 2px #0074e280","--shadow-inset-success":"inset 0px 0px 0px 2px #2f7d334D","--shadow-inset-warning":"inset 0px 0px 0px 2px #f8d36a4D","--shadow-inset-error":"inset 0px 0px 0px 2px #de47454D"},localTokens:{"--astryx-theme-neutral-color-status-fill-accent":"light-dark(#0074e2, #6d9cfe)","--astryx-theme-neutral-color-status-fill-success":"light-dark(#198100, #64af4c)","--astryx-theme-neutral-color-status-fill-warning":"#ffce2f","--astryx-theme-neutral-color-status-fill-error":"light-dark(#c9303a, #ff705d)","--astryx-theme-neutral-color-status-muted-accent":"light-dark(#b9d7ff, #88bcff3D)","--astryx-theme-neutral-color-on-tint-neutral":"light-dark(#fafafa4D, #0a0a0a4D)","--astryx-theme-neutral-color-on-tint-overlay-hover":"light-dark(#fafafa1A, #0a0a0a1A)","--astryx-theme-neutral-color-on-tint-overlay-pressed":"light-dark(#fafafa33, #0a0a0a33)","--astryx-theme-neutral-color-destructive-overlay-hover":"light-dark(#ff7f770D, #ee736c0D)","--astryx-theme-neutral-color-destructive-overlay-pressed":"light-dark(#ff7f771A, #ee736c1A)"},__localTokenOwners:{"--astryx-theme-neutral-color-status-fill-accent":"neutral","--astryx-theme-neutral-color-status-fill-success":"neutral","--astryx-theme-neutral-color-status-fill-warning":"neutral","--astryx-theme-neutral-color-status-fill-error":"neutral","--astryx-theme-neutral-color-status-muted-accent":"neutral","--astryx-theme-neutral-color-on-tint-neutral":"neutral","--astryx-theme-neutral-color-on-tint-overlay-hover":"neutral","--astryx-theme-neutral-color-on-tint-overlay-pressed":"neutral","--astryx-theme-neutral-color-destructive-overlay-hover":"neutral","--astryx-theme-neutral-color-destructive-overlay-pressed":"neutral"},__localTokenLineage:["neutral"],components:{heading:{"level:1":{fontFamily:"var(--font-family-heading)",fontSize:"var(--text-heading-1-size)",fontWeight:"var(--text-heading-1-weight)",lineHeight:"var(--text-heading-1-leading)"},"level:2":{fontFamily:"var(--font-family-heading)",fontSize:"var(--text-heading-2-size)",fontWeight:"var(--text-heading-2-weight)",lineHeight:"var(--text-heading-2-leading)"},"level:3":{fontFamily:"var(--font-family-heading)",fontSize:"var(--text-heading-3-size)",fontWeight:"var(--text-heading-3-weight)",lineHeight:"var(--text-heading-3-leading)"},"level:4":{fontFamily:"var(--font-family-heading)",fontSize:"var(--text-heading-4-size)",fontWeight:"var(--text-heading-4-weight)",lineHeight:"var(--text-heading-4-leading)"},"level:5":{fontFamily:"var(--font-family-heading)",fontSize:"var(--text-heading-5-size)",fontWeight:"var(--text-heading-5-weight)",lineHeight:"var(--text-heading-5-leading)"},"level:6":{fontFamily:"var(--font-family-heading)",fontSize:"var(--text-heading-6-size)",fontWeight:"var(--text-heading-6-weight)",lineHeight:"var(--text-heading-6-leading)"},"type:display-1":{fontFamily:"var(--font-family-heading)",fontSize:"var(--text-display-1-size)",lineHeight:"var(--text-display-1-leading)"},"type:display-2":{fontFamily:"var(--font-family-heading)",fontSize:"var(--text-display-2-size)",lineHeight:"var(--text-display-2-leading)"},"type:display-3":{fontFamily:"var(--font-family-heading)",fontSize:"var(--text-display-3-size)",lineHeight:"var(--text-display-3-leading)"}},text:{"type:body":{fontFamily:"var(--font-family-body)",fontSize:"var(--text-body-size)",lineHeight:"var(--text-body-leading)"},"type:large":{fontFamily:"var(--font-family-body)",fontSize:"var(--text-large-size)",lineHeight:"var(--text-large-leading)"},"type:label":{fontFamily:"var(--font-family-body)",fontSize:"var(--text-label-size)",lineHeight:"var(--text-label-leading)"},"type:code":{fontFamily:"var(--font-family-code)",fontSize:"var(--text-code-size)",lineHeight:"var(--text-code-leading)"},"type:supporting":{fontFamily:"var(--font-family-body)",fontSize:"var(--text-supporting-size)",lineHeight:"var(--text-supporting-leading)"},"type:display-1":{fontFamily:"var(--font-family-heading)",fontSize:"var(--text-display-1-size)",lineHeight:"var(--text-display-1-leading)"},"type:display-2":{fontFamily:"var(--font-family-heading)",fontSize:"var(--text-display-2-size)",lineHeight:"var(--text-display-2-leading)"},"type:display-3":{fontFamily:"var(--font-family-heading)",fontSize:"var(--text-display-3-size)",lineHeight:"var(--text-display-3-leading)"}},button:{"variant:destructive":{backgroundColor:"var(--color-error-muted)",color:"var(--color-error)","--color-overlay-hover":"var(--astryx-theme-neutral-color-destructive-overlay-hover)","--color-overlay-pressed":"var(--astryx-theme-neutral-color-destructive-overlay-pressed)"}},badge:{"variant:info":{backgroundColor:"var(--astryx-theme-neutral-color-status-fill-accent)",color:"var(--color-on-accent)"},"variant:neutral":{backgroundColor:"var(--color-background-gray)",color:"var(--color-text-gray)"},"variant:success":{backgroundColor:"var(--astryx-theme-neutral-color-status-fill-success)",color:"var(--color-on-success)"},"variant:warning":{backgroundColor:"var(--astryx-theme-neutral-color-status-fill-warning)",color:"var(--color-on-warning)"},"variant:error":{backgroundColor:"var(--astryx-theme-neutral-color-status-fill-error)",color:"var(--color-on-error)"},"variant:red":{backgroundColor:"var(--color-background-red)",color:"var(--color-text-red)"},"variant:orange":{backgroundColor:"var(--color-background-orange)",color:"var(--color-text-orange)"},"variant:yellow":{backgroundColor:"var(--color-background-yellow)",color:"var(--color-text-yellow)"},"variant:green":{backgroundColor:"var(--color-background-green)",color:"var(--color-text-green)"},"variant:teal":{backgroundColor:"var(--color-background-teal)",color:"var(--color-text-teal)"},"variant:cyan":{backgroundColor:"var(--color-background-cyan)",color:"var(--color-text-cyan)"},"variant:blue":{backgroundColor:"var(--color-background-blue)",color:"var(--color-text-blue)"},"variant:purple":{backgroundColor:"var(--color-background-purple)",color:"var(--color-text-purple)"},"variant:pink":{backgroundColor:"var(--color-background-pink)",color:"var(--color-text-pink)"},"variant:gray":{backgroundColor:"var(--color-background-gray)",color:"var(--color-text-gray)"}},"status-dot":{"variant:success":{backgroundColor:"var(--astryx-theme-neutral-color-status-fill-success)"},"variant:warning":{backgroundColor:"var(--astryx-theme-neutral-color-status-fill-warning)"},"variant:error":{backgroundColor:"var(--astryx-theme-neutral-color-status-fill-error)"},"variant:accent":{backgroundColor:"var(--astryx-theme-neutral-color-status-fill-accent)"}},"avatar-status-dot":{"variant:success":{backgroundColor:"var(--astryx-theme-neutral-color-status-fill-success)"},"variant:error":{backgroundColor:"var(--astryx-theme-neutral-color-status-fill-error)"}},"segmented-control":{base:{padding:"var(--spacing-1)"}},"segmented-control-item":{"size:sm":{height:"calc(var(--size-element-sm) - 8px)"},"size:md":{height:"calc(var(--size-element-md) - 8px)"},"size:lg":{height:"calc(var(--size-element-lg) - 8px)"},selected:{boxShadow:"none"}},banner:{base:{"--color-neutral":"var(--astryx-theme-neutral-color-on-tint-neutral)","--color-overlay-hover":"var(--astryx-theme-neutral-color-on-tint-overlay-hover)","--color-overlay-pressed":"var(--astryx-theme-neutral-color-on-tint-overlay-pressed)"},"status:info":{"--color-accent-muted":"var(--astryx-theme-neutral-color-status-muted-accent)","--color-text-primary":"var(--color-text-blue)","--color-text-secondary":"var(--color-text-blue)","--color-accent":"var(--color-text-blue)"},"status:success":{"--color-text-primary":"var(--color-text-green)","--color-text-secondary":"var(--color-text-green)","--color-success":"var(--color-text-green)"},"status:warning":{"--color-text-primary":"var(--color-text-yellow)","--color-text-secondary":"var(--color-text-yellow)","--color-warning":"var(--color-text-yellow)"},"status:error":{"--color-text-primary":"var(--color-text-red)","--color-text-secondary":"var(--color-text-red)","--color-error":"var(--color-text-red)"}},"step-indicator":{"status:accent":{"--color-accent":"var(--astryx-theme-neutral-color-status-fill-accent)"},"status:success":{"--color-success":"var(--astryx-theme-neutral-color-status-fill-success)"},"status:warning":{"--color-warning":"var(--astryx-theme-neutral-color-status-fill-warning)"},"status:error":{"--color-error":"var(--astryx-theme-neutral-color-status-fill-error)"}},switch:{base:{"--color-background-gray":"var(--color-border-emphasized)"}},"progress-bar":{base:{"--color-background-muted":"var(--color-border-emphasized)"},"variant:accent":{"--color-accent":"var(--astryx-theme-neutral-color-status-fill-accent)"},"variant:success":{"--color-success":"var(--astryx-theme-neutral-color-status-fill-success)"},"variant:warning":{"--color-warning":"var(--astryx-theme-neutral-color-status-fill-warning)"},"variant:error":{"--color-error":"var(--astryx-theme-neutral-color-status-fill-error)"}},card:{base:{padding:"var(--spacing-3)"}},section:{base:{padding:"var(--spacing-3)"}}},__onDark:{tokens:{"color-scheme":"dark","--color-text-primary":"var(--color-on-dark)","--color-icon-primary":"var(--color-on-dark)","--color-accent":"var(--color-on-dark)"}},__onLight:{tokens:{"color-scheme":"light","--color-text-primary":"var(--color-on-light)","--color-icon-primary":"var(--color-on-light)","--color-accent":"var(--color-on-light)"}},__adaptations:{widthBreakpoints:{sm:640,md:768,lg:1024,xl:1280,"2xl":1536},rules:[{when:{pointer:"coarse",width:{below:"lg"}},value:{typography:{scale:{base:16,ratio:1.1736}}}}]},__axes:{typography:{scale:{base:14,ratio:1.2},body:{family:"Figtree",fallbacks:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif'},heading:{family:"Figtree",fallbacks:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',weights:{3:"bold",4:"bold"}},code:{family:"ui-monospace",fallbacks:'"SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace'}},motion:{fast:125,medium:300,slow:700,ratio:.75}},icons:vV},QE={container:{kVAEAm:"x1n2onr6",kzqmXN:"xh8yej3",kVQacm:"x7giv3",kAzted:"x2lwn1j",kmuXW:"x2lah0s",$$css:!0},ellipse:{kaIpWk:"x16rqkct",$$css:!0}},SV={ratio:e=>[{kOBAk4:e!=null?"x10y9f9r":e,$$css:!0},{"--x-aspectRatio":e??void 0}]};function r6({ratio:e,shape:t="rectangle",fit:r,children:s,xstyle:o,className:l,style:u,ref:f,...d}){return x.jsx("div",{ref:f,...ye(fe("aspect-ratio",{shape:t}),de(QE.container,SV.ratio(e),t==="ellipse"&&QE.ellipse,o),l,u),...d,children:x.jsx("div",{"data-astryx-aspect-ratio-override":r,...{0:{className:"x10l6tqk x13vifvy x1o0tod xh8yej3 x5yr21d"},1:{className:"x10l6tqk x13vifvy x1o0tod xh8yej3 x5yr21d x78zum5 x6s0dn4 xl56j7k"}}[(r==="center")<<0],children:s})})}r6.displayName="AspectRatio";const JE={wrapper:{k8WAf4:"xu0wf1k",kg3NbH:"x7a5moj",$$css:!0},icon:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kmuXW:"x2lah0s",$$css:!0}};function a6({ref:e,label:t,clearLabel:r,placeholder:s,value:o,onValueChange:l,onKeyDown:u,onFocus:f,onBlur:d,onContainerKeyDown:p,xstyle:y,className:m,style:k,...v}){const[w,S]=g.useState(!1);Wp();const E=g.useCallback(T=>{S(ic()==="keyboard"),f?.(T)},[f]),R=g.useCallback(T=>{S(!1),d?.(T)},[d]),C=g.useCallback(T=>{l(""),!T||T.detail===0?typeof e=="object"&&e?.current&&e.current.focus():requestAnimationFrame(()=>{typeof e=="object"&&e?.current&&e.current.focus({preventScroll:!0})})},[l,e]);return x.jsx("div",{onKeyDown:p,...ye(de(JE.wrapper,y),m,k),children:x.jsxs("div",{"data-keyboard-focus":w?"true":void 0,...{0:{className:"x9f619 x78zum5 x6s0dn4 x1txdalj xh8yej3 x1vofgu7 xf314gf xh6dtrn xkdsq27 xuedmi6 x12w9bfk xlr8y92"},1:{className:"x9f619 x78zum5 x6s0dn4 x1txdalj xh8yej3 x1vofgu7 xf314gf xh6dtrn xkdsq27 xuedmi6 x12w9bfk xlr8y92 x1gnnqk1 x1btxeh5"}}[!!w<<0],children:[x.jsx(ft,{icon:"search",size:"sm",color:"secondary",xstyle:JE.icon}),x.jsx("input",{ref:e,type:"text","aria-label":t,placeholder:s,value:o,onChange:T=>l(T.target.value),onKeyDown:u,onFocus:E,onBlur:R,className:"x1iyjqo2 xs83m0k xeuugli x1717udv x1ghz6dp xc342km xng3xce xjbqb8w x1tgivj0 x9ynric xcr08ib x1w61h2b x1kq96og x1a2a7pz xeyghm5",...v}),o!==""&&x.jsx(yx,{label:r,onClick:C})]})})}a6.displayName="PanelSearchInput";function EV(e){const t=e.cloneNode(!0);for(const r of t.querySelectorAll('[aria-hidden="true"]'))r.remove();return(t.textContent??"").replace(/\s+/g," ").trim()}function $V(e,t,r){const s=vc(),o=g.useRef(null);g.useEffect(()=>{if(!t){o.current=null;return}const l=e.current;if(!l)return;const u=EV(l);if(u==="")return;const f=`${r}\0${u}`;o.current!==f&&(o.current=f,s(u))})}function s6(e){return typeof e=="string"?!0:!("type"in e)}function TV(e){return typeof e=="object"&&"type"in e&&e.type==="divider"}function o6(e){return typeof e=="object"&&"type"in e&&e.type==="section"}function Sp(e){return typeof e=="string"?{value:e,label:e}:{...e,label:e.label??e.value}}function CV(e){const t=[];for(const r of e)if(s6(r))t.push(Sp(r));else if(o6(r))for(const s of r.options)t.push(Sp(s));return t}function jV({isOpen:e,highlightedIndex:t,setHighlightedIndex:r,getOptionId:s,itemCount:o}){const l=g.useRef(!1),u=g.useCallback(f=>{f!==t&&(l.current=!0),r(f)},[t,r]);return g.useEffect(()=>{if(l.current){l.current=!1;return}!e||t<0||document.getElementById(s(t))?.scrollIntoView?.({block:"nearest"})},[e,t,s,o]),u}const RV=1;function e$(e){let t=0,r=e;for(;r;)t+=r.offsetTop,r=r.offsetParent;return t}function AV({isOpen:e,selectedItemIndex:t,listboxId:r,listboxRef:s,anchorRef:o}){const[l,u]=g.useState(0),[f,d]=g.useState(!1),p=g.useCallback((y,m)=>{u(y),d(m)},[]);return qn(()=>{if(!e){p(0,!1);return}if(!s.current||!o.current){p(0,!0);return}const y=t>=0?t:0,m=`${r}-item-${y}`,k=document.getElementById(m);if(!k){p(0,!0);return}const v=s.current,w=o.current.getBoundingClientRect(),S=v.offsetHeight;if(S<=0){p(0,!0);return}const E=e$(k)-e$(v)-v.scrollTop+k.offsetHeight/2,C=w.top+w.height/2-E-RV,T=window.innerHeight,A=Math.max(0,T-S),N=Math.min(Math.max(C,0),A),L=Math.max(0,w.bottom-N);p(L,!0)},[e,t,r,s,o,p]),{offset:l,isPositioned:f}}function MV({selectableItems:e,value:t,isDisabled:r=!1,isOpen:s,hasSearch:o=!1,onOpen:l,onClose:u,onSelect:f,onClear:d,onSearchSeed:p,listboxId:y}){const[m,k]=g.useState(-1),v=g.useCallback(L=>`${y}-item-${L}`,[y]),w=g.useCallback(()=>e.map((L,D)=>L.disabled?-1:D).filter(L=>L>=0),[e]),S=g.useCallback(()=>e.findIndex(L=>L.value===t),[e,t]),E=g.useCallback(()=>{k(-1),u()},[u]),R=g.useCallback(L=>{L.disabled||(f?.(L.value),E())},[f,E]),C=g.useCallback(()=>{if(!r){if(s)E();else if(l()!==!1&&!o){const D=S();k(D>=0?D:0)}}},[r,s,l,E,S,o]),T=jV({isOpen:s,highlightedIndex:m,setHighlightedIndex:k,getOptionId:v}),A=g.useCallback((L,D)=>{L.disabled||T(D)},[T]),N=g.useCallback(L=>{if(r)return;const D=w();switch(L.key){case"ArrowDown":if(L.preventDefault(),!s)l()!==!1&&k(0);else{const j=D.indexOf(m),O=Math.min(j+1,D.length-1);k(D[O]??m)}break;case"ArrowUp":if(L.preventDefault(),!s)l()!==!1&&k(e.length-1);else{const j=D.indexOf(m),O=Math.max(j-1,0);k(D[O]??m)}break;case" ":if(o)break;case"Enter":if(L.preventDefault(),s&&m>=0){const j=e[m];j&&!j.disabled&&R(j)}else if(!s&&l()!==!1&&!o){const O=S();k(O>=0?O:0)}break;case"Escape":s&&(L.preventDefault(),E());break;case"Tab":s&&E();break;case"Home":L.preventDefault(),s&&D.length>0&&k(D[0]);break;case"End":L.preventDefault(),s&&D.length>0&&k(D[D.length-1]);break;case"PageUp":L.preventDefault(),s&&D.length>0&&k(D[0]);break;case"PageDown":L.preventDefault(),s&&D.length>0&&k(D[D.length-1]);break;case"Delete":case"Backspace":!o&&!s&&d!=null&&t!=null&&(L.preventDefault(),d());break;default:o&&p&&L.key.length===1&&!L.ctrlKey&&!L.metaKey&&(s||l()!==!1)&&p(L.key);break}},[r,s,l,E,e,m,R,S,w,o,d,p,t]);return{highlightedIndex:m,setHighlightedIndex:k,getItemId:v,onTriggerClick:C,onKeyDown:N,onItemSelect:R,onItemMouseEnter:A}}function H0(e,t,r){const[s,o]=g.useState(!1),l=g.useCallback(()=>{const u=e.current;if(!u)return;const f=u.scrollHeight>u.clientHeight+1;o(d=>d===f?d:f)},[e]);return qn(()=>{if(!r)return;const u=e.current;if(!u)return;l();const f=typeof ResizeObserver>"u"?null:new ResizeObserver(l),d=typeof MutationObserver>"u"?null:new MutationObserver(l);return f?.observe(u),d?.observe(u,{childList:!0,characterData:!0,subtree:!0}),u.addEventListener("load",l,!0),window.addEventListener("resize",l),window.visualViewport?.addEventListener("resize",l),()=>{f?.disconnect(),d?.disconnect(),u.removeEventListener("load",l,!0),window.removeEventListener("resize",l),window.visualViewport?.removeEventListener("resize",l)}},[r,l,e]),qn(()=>{r&&l()},[t,r,l]),s}const F0=aa("stacked");F0.displayName="SelectorRowLayoutContext";function NV(){return g.use(F0)}const zV={root:{k8WAf4:"xt970qd",kg3NbH:"xnjsko4",kaIpWk:"x2u8bby",$$css:!0}};function i6({icon:e,label:t,description:r,layout:s,endContent:o,xstyle:l,className:u,style:f}){const d=NV();return x.jsx(jd,{startContent:e?Ta(e,{size:"sm",color:"secondary"}):void 0,label:t,description:r,layout:d==="inline"?"inline":s,endContent:o,xstyle:[zV.root,l],...ye(fe("selector-option"),{className:u,style:f})})}i6.displayName="SelectorOption";const LV=g.lazy(async()=>bd(()=>import("./BottomSheet-CLUxnQLq.js"),[]).then(e=>({default:e.BottomSheet}))),DV={heading:{k1K539:"x1p37lm5",kUOVxO:"xam6yil",$$css:!0}};function OV({isOpen:e,targetRef:t}){return g.useEffect(()=>{if(!e)return;const r=requestAnimationFrame(()=>{t.current?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(r)},[e,t]),null}function l6({children:e,finalFocusRef:t,initialFocusRef:r,isOpen:s,label:o,onOpenChange:l}){return x.jsx(g.Suspense,{fallback:null,children:x.jsx(LV,{isOpen:s,onOpenChange:l,finalFocusRef:t,label:o,height:"hug",purpose:"info",children:x.jsx(KC,{paddingBlockStart:4,paddingBlockEnd:0,paddingInline:1,children:x.jsxs("div",{className:"xh8yej3",children:[x.jsx(Oo,{level:3,xstyle:DV.heading,children:o}),e,x.jsx(OV,{isOpen:s,targetRef:r})]})})})})}l6.displayName="SelectorBottomSheet";const c6="(max-width: 768px) and (pointer: coarse)";function u6(e){const t=wd(c6);return e==="adaptive"?t?"bottom-sheet":"popover":e}function IV(){const[e,t]=g.useState(!1);Wp();const r=g.useCallback(()=>{t(ic()==="pointer")},[]),s=g.useCallback(()=>{t(!1)},[]),o=g.useCallback(()=>{ic()==="keyboard"&&t(!1)},[]);return{isFocusRingSuppressed:e,onFocusReturnTargetFocus:o,prepareFocusReturn:r,resetFocusReturn:s}}function _V({presentation:e,onHide:t,onShow:r,popoverOptions:s,triggerRef:o}){const l=u6(e),u=g.useRef(l),[f,d]=g.useState(!1),p=g.useRef(!1),[y,m]=g.useState(!1),k=g.useRef(t),v=g.useRef(r),w=g.useRef(!1),{isFocusRingSuppressed:S,onFocusReturnTargetFocus:E,prepareFocusReturn:R,resetFocusReturn:C}=IV();k.current=t,v.current=r;const T=g.useCallback(()=>{R(),k.current(),o.current?.focus()},[R,o]),A=g.useCallback(()=>{w.current=!0,C(),v.current()},[C]),N=b0({...s,onHide:T,onShow:A}),{hide:L,show:D}=N,j=g.useCallback(()=>(u.current=l,l==="bottom-sheet"?(C(),v.current(),p.current=!0,m(!0),d(!0),!0):(m(!1),w.current=!1,D(),w.current)),[C,l,D]),O=g.useCallback(()=>{p.current?(R(),p.current=!1,d(!1),k.current()):L()},[L,R]),M=g.useCallback(B=>{E(),!p.current&&u.current==="bottom-sheet"&&m(!1)},[E]),H=g.useCallback(B=>{B?j():O()},[O,j]),F=N.isOpen||f;return{activePresentation:F||y?u.current:l,hide:O,isOpen:F,isSheetOpen:f,isSheetPresented:y,isTriggerFocusRingSuppressed:S,onSheetOpenChange:H,onTriggerFocus:M,popover:N,show:j}}const qV={pointerRestoredFocus:{kVAM5u:"xvy26l8",kGVxlE:"x1gnnqk1",kMeerF:"x1k57tk5",k3XXqK:"x1t137rt",$$css:!0}},jn={triggerContainer:{kVAEAm:"x1n2onr6",k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"x1qughib",kOIVth:"x1txdalj",kzqmXN:"xh8yej3",k8WAf4:"xce4md1",kg3NbH:"xrrkdod",kMv6JI:"x9ynric",kGuDYH:"xcr08ib x1w61h2b",kMwMTN:"x1tgivj0",kkrTdU:"x1ypdohk x16khyan",$$css:!0},triggerPlaceholder:{kMwMTN:"xv1l7n4",$$css:!0},triggerInGroup:{kAzted:"x2lwn1j",k8WAf4:"xt970qd",kLWn49:"x8vohu",$$css:!0},triggerIcon:{kmuXW:"x2lah0s",$$css:!0},triggerIconRotation:{k1ekBW:"x11xpdln",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",k3nNDw:"x1g0ag68",$$css:!0},triggerIconOpen:{k3aq6I:"x19jd1h0",$$css:!0},triggerGhost:{kzqmXN:"x14atkfc",kMzoRj:"xc342km",kLWn49:"x8vohu",kWkggS:"xjbqb8w",kGVxlE:"x1gnnqk1 x1s17dad x15ysqaf",k63SB2:"x1e4wzip",k1ekBW:"xrafxwg",k3aq6I:"x3oybdh xk4oym4 x5lqen6 x3y5scg",$$css:!0},triggerGhostDisabled:{kKwaWg:"x18o3ruo",k3aq6I:"x1c071of x1pdlv7q x1ylxtyb",$$css:!0},triggerReadOnly:{kkrTdU:"xt0e3qv",$$css:!0},triggerGhostReadOnly:{kKwaWg:"x18o3ruo",k3aq6I:"x1c071of x1pdlv7q x1ylxtyb",$$css:!0},statusButton:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmVPX3:"x1717udv",kogj98:"x1ghz6dp",kMzoRj:"xc342km",ksu8eU:"xng3xce",kWkggS:"xjbqb8w",kMwMTN:"x1heor9g",kkrTdU:"x1ypdohk x16khyan",kaIpWk:"xh6dtrn",$$css:!0},searchRowInput:{kg3NbH:"x2hg6jq",$$css:!0},popover:{k7Eaqz:"xrzjruh",$$css:!0},divider:{kqGvvJ:"xsq74q5",$$css:!0},item:{kB7OPa:"x9f619",k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"x1qughib",kOIVth:"x1txdalj",kzqmXN:"xh8yej3",kmVPX3:"xlsj2fj",kaIpWk:"xh6dtrn",kMv6JI:"x9ynric",kGuDYH:"xcr08ib",kMwMTN:"x1tgivj0",kWkggS:"xjbqb8w",kMzoRj:"xc342km",ksu8eU:"xng3xce",kkrTdU:"x1ypdohk x16khyan",k9WMMc:"x1yc453h",kI3sdo:"x1a2a7pz",$$css:!0},itemHighlighted:{kWkggS:"x1lmrjuc",$$css:!0},itemSelected:{k63SB2:"x1e4wzip",$$css:!0},itemDisabled:{kSiTet:"xbyyjgo",kkrTdU:"xt0e3qv",$$css:!0}},PV={sm:{kAzted:"x1gdqauq",kLWn49:"x1j3cc6x",k8WAf4:"x9ccq01",$$css:!0},md:{kAzted:"x1uogy3y",kLWn49:"xe5am2i",k8WAf4:"xj646f7",$$css:!0},lg:{kAzted:"x1xf4nls",kLWn49:"xkwxim8",k8WAf4:"xsmncjp",$$css:!0}},BV={sm:{k8WAf4:"xu0wf1k",kg3NbH:"xf314gf",$$css:!0},md:{k8WAf4:"x1vofgu7",$$css:!0},lg:{$$css:!0}},t$={warning:"warning",error:"error",success:"success"},n$={warning:"warning",error:"error",success:"success"},HV={warning:"@astryx.input.statusButton.warning",error:"@astryx.input.statusButton.error",success:"@astryx.input.statusButton.success"};function FV({option:e}){return x.jsx(i6,{icon:e.icon,label:e.label??e.value,description:e.description})}function eb(e,t){return t?(e.label??e.value).toLowerCase().includes(t.toLowerCase()):!0}function r$(e,t){return t?e.filter(r=>eb(r,t)):e}function Ql(e){const t=Nt(),r=ja(),{label:s,isLabelHidden:o=!1,description:l,isOptional:u=!1,isRequired:f=!1,isDisabled:d=!1,isReadOnly:p=!1,disabledMessage:y,options:m,value:k,onChange:v,changeAction:w,isLoading:S=!1,placeholder:E,size:R,variant:C="input",status:T,statusVariant:A="attached",labelTooltip:N,startIcon:L,htmlName:D,renderOption:j,renderValue:O,indicatorPosition:M="end",hasSearch:H=!1,searchPlaceholder:F,emptyText:q,emptySearchText:B,placement:U,presentation:_="popover",isDefaultOpen:P=!1,width:G,containerXstyle:X,containerClassName:Z,containerStyle:Q,controlXstyle:K,controlClassName:ae,controlStyle:I,ref:ee,onFocus:pe,onKeyDown:ue,"aria-describedby":ve,hasClear:xe,id:$e,...te}=e,{rest:he,container:Re}=kx("Selector",te,{containerXstyle:X,containerClassName:Z,containerStyle:Q}),Ce=Cd({isRequired:f,isOptional:u}),Te=E??t("@astryx.selector.placeholder"),Me=F??t("@astryx.selector.searchPlaceholder"),je=q??t("@astryx.selector.empty"),He=B??t("@astryx.selector.emptySearchResults"),at=xe===!0,pt=bc(R,"md"),et=C==="ghost"&&A==="attached"?"detached":A,Ve=p&&!d,yt=k===null?void 0:k,Pe=g.useId(),rt=$e??Pe,lt=g.useId(),st=g.useRef(null),ct=g.useId(),we=g.useId(),Ge=g.useId(),Pt=g.useId(),bn=g.useId(),gn=g.useRef(null),An=g.useRef(null),Vt=xn(An,ee),Yn=g.useRef(null),Qt=bx(),[kn,Ye]=g.useState(""),Le=g.useRef(""),Jt=kn.length>0,[,un]=g.useTransition(),[an,cr]=g.useOptimistic(yt),Qa=S||an!==yt,Tr=vc(),Br=d&&!!y,Xn=Wa({placement:"above",focusTrigger:"always",isEnabled:Br}),Gt=Wa({placement:"above",isEnabled:et==="tooltip"&&!!T?.message}),{ariaLabelledBy:ur,ariaDescribedBy:Mn}=Bb(Ge,[l?ct:null,!Qt&&et!=="tooltip"&&T?.message?we:null,et==="tooltip"&&T?.message?Gt.describedBy:null,Br?Xn.describedBy:null,Ve?Pt:null],Qt),Nn=g.useMemo(()=>CV(m),[m]);g.useEffect(()=>{Nn.some(Ee=>Ee.action!=null)&&Gp()},[Nn]);const W=g.useMemo(()=>r$(Nn,kn),[Nn,kn]),Y=g.useMemo(()=>Nn.findIndex(Ee=>Ee.value===an),[Nn,an]),oe=g.useMemo(()=>Y>=0?Nn[Y]:void 0,[Nn,Y]),ge=g.useRef(null),ke=g.useRef(()=>{}),Ie=g.useCallback(()=>{Ye(""),Le.current="",ke.current(),Tr("")},[Tr]),De=g.useCallback(()=>{H&&requestAnimationFrame(()=>{const Ee=Yn.current;Ee&&(Ee.focus(),Ee.setSelectionRange(Ee.value.length,Ee.value.length))})},[H]),Se=_V({presentation:_,onHide:Ie,onShow:De,triggerRef:An,popoverOptions:{hasLightDismiss:!0,hasCloseButton:!1,hasAutoFocus:!1,role:"none",surfaceTarget:"selector-popup"}}),{popover:Ne}=Se,Ke=Se.hide,Be=Se.isOpen,Ze=bL(Ne.id,Ne.isOpen);g.useEffect(()=>{P&&!Ve&&Se.show()},[]),g.useEffect(()=>{Ve&&Be&&Ke()},[Ve,Be,Ke]);const Fe=g.useCallback(Ee=>{if(Ee.length===0){Tr("");return}if(S){Tr("");return}const it=r$(Nn,Ee).length;it!==0&&Tr(t("@astryx.selector.resultCount",{count:it}))},[Tr,S,Nn,t]),wt=g.useCallback(Ee=>{Ye(Ee),Le.current=Ee,Fe(Ee)},[Fe]),At=Se.isOpen&&!S&&W.length===0;$V(st,At,kn);const Ft=U==null&&!H,{offset:$t,isPositioned:bt}=AV({isOpen:Ne.isOpen&&Ft,selectedItemIndex:Y,listboxId:lt,listboxRef:ge,anchorRef:gn}),mn=Ft?$t:0,zn=Ft?bt:!0,Ra=U??"below",vn=mn>0?{marginBlockStart:`-${mn}px`}:void 0,Bt=g.useCallback(()=>{ke.current(),v?.(null),w&&un(async()=>{cr(void 0),await w(null)})},[v,w,un,cr]),Yt=g.useCallback(Ee=>{const it=Le.current+Ee;Le.current=it,Ye(it),Fe(it)},[Fe]),wn=g.useCallback(Ee=>{v?.(Ee),w&&un(async()=>{cr(Ee),await w(Ee)})},[v,w,un,cr]),{highlightedIndex:Zn,setHighlightedIndex:Hr,getItemId:Fr,onTriggerClick:ks,onKeyDown:Qn,onItemSelect:ot,onItemMouseEnter:sn}=MV({selectableItems:W,value:an,isDisabled:d||Ve,isOpen:Se.isOpen,hasSearch:H,onOpen:g.useCallback(()=>Se.show(),[Se]),onClose:Se.hide,onSelect:wn,onClear:at?Bt:void 0,onSearchSeed:Yt,listboxId:lt}),dn=N0({getItemLabels:()=>Nn.map(Ee=>Ee.label??Ee.value),isDisabled:Ee=>Nn[Ee]?.disabled===!0,getCurrentIndex:()=>Se.isOpen?Zn:Y,onMatch:Ee=>{const it=Nn[Ee];Se.isOpen?Hr(Ee):it.value!==an&&(wn(it.value),Tr(it.label??it.value))}});ke.current=dn.reset;const Ln=g.useCallback(Ee=>{const it=/-item-(\d+)$/.exec(Ee.id);return it==null?-1:Number(it[1])},[]),Aa=H0(ge,W.length,Se.isOpen),Ur=xx({menuRef:ge,itemSelector:'[role="option"]:not([aria-disabled="true"])',onHighlight:Ee=>{if(Ee==null){Hr(-1);return}const it=Ln(Ee),oa=W[it];oa!=null&&sn(oa,it)},onActivate:Ee=>{const it=W[Ln(Ee)];it!=null&&ot(it)},onDismiss:Se.hide}),tt=g.useCallback(Ee=>{if(!(d||Ve)){if(!H&&dn.onKeyDown(Ee)){Ee.preventDefault();return}Qn(Ee)}},[d,Ve,H,dn,Qn]),sa=g.useCallback(Ee=>{Ee.stopPropagation(),Bt()},[Bt]),_o=g.useCallback(()=>H?x.jsx(a6,{ref:Yn,id:bn,label:t("@astryx.selector.searchOptions"),clearLabel:t("@astryx.textInput.clearLabel",{label:t("@astryx.selector.searchOptions")}),...fe("selector-search"),xstyle:Se.activePresentation==="popover"&&C!=="ghost"&&jn.searchRowInput,role:"combobox","aria-expanded":Se.isOpen,"aria-controls":lt,"aria-autocomplete":"list","aria-activedescendant":Se.isOpen&&Zn>=0?Fr(Zn):void 0,value:kn,onValueChange:wt,onContainerKeyDown:Ee=>{Ee.target!==Yn.current&&Ee.key==="Tab"&&!Ee.shiftKey&&Qn(Ee)},onKeyDown:Ee=>{if(!gd(Ee.nativeEvent)){if(Ee.key==="ArrowDown"||Ee.key==="ArrowUp"||Ee.key==="PageUp"||Ee.key==="PageDown"||Ee.key==="Enter"||Ee.key==="Escape"){Qn(Ee);return}Ee.key==="Tab"&&(Ee.shiftKey||!Jt)&&Qn(Ee)}},placeholder:Me}):null,[H,bn,lt,kn,Jt,Me,wt,Qn,Se.isOpen,Se.activePresentation,Zn,Fr,C,t]),qo=Q4("check"),Ma=g.useCallback((Ee,it)=>{const oa=it===Zn,ia=Ee.value===yt,dr=x.jsx("span",{className:"x3nfvp2 x6s0dn4 xl56j7k x2lah0s xgomdpo xjl7jj",children:x.jsx(qo,{state:ia?"checked":"unchecked",size:"sm",isDisabled:Ee.disabled??!1,...fe("selector-check")})}),la=x.jsx("span",{className:"x78zum5 x6s0dn4 x1txdalj x98rzlu xeuugli",children:j?j(Ee):x.jsx(FV,{option:Ee})}),Tc=M==="start"?x.jsxs(x.Fragment,{children:[dr,la]}):x.jsxs(x.Fragment,{children:[la,dr]});return x.jsx("div",{id:Fr(it),role:"option","aria-selected":ia,"aria-disabled":Ee.disabled,onClick:()=>ot(Ee),onMouseEnter:()=>sn(Ee,it),...ye(fe("selector-option-row",{size:pt,selected:ia?"selected":null,disabled:Ee.disabled?"disabled":null}),de(jn.item,BV[pt],oa&&jn.itemHighlighted,ia&&jn.itemSelected,Ee.disabled&&jn.itemDisabled)),children:Tc},Ee.value)},[j,M,Zn,pt,yt,Fr,ot,sn,qo]),vs=g.useCallback(()=>{const Ee=H&&!!kn;if(W.length===0&&!S)return[x.jsx("div",{ref:st,role:"presentation",...ye(fe("selector-empty-state"),{className:"x1b2ylru x2b8uid xv1l7n4 x9ynric xcr08ib"}),children:Ee?He:je},"empty")];let it=0;const oa=[];for(let ia=0;ia<m.length;ia++){const dr=m[ia];if(TV(dr)){if(Ee)continue;oa.push(x.jsx(Ai,{"aria-hidden":"true",xstyle:jn.divider},`divider-${ia}`))}else if(o6(dr)){const la=[];for(const Tc of dr.options){const fr=Sp(Tc);Ee&&!eb(fr,kn)||(la.push(Ma(fr,it)),it++)}if(la.length===0)continue;oa.push(x.jsxs("div",{role:"group","aria-label":dr.title,children:[dr.title&&x.jsx("div",{"aria-hidden":"true",...ye(fe("selector-section-heading"),{className:"xu0wf1k xf314gf x9ynric x141an7d x1ltkj2j xv1l7n4 x87ps6o"}),children:dr.title}),la]},`section-${ia}`))}else if(s6(dr)){const la=Sp(dr);if(Ee&&!eb(la,kn))continue;oa.push(Ma(la,it)),it++}}return oa},[m,Ma,H,kn,W,S,je,He]),Rx=T!=null&&et!=="detached",$c=T!=null&&et==="tooltip"&&!!T.message,Ad=Qt?"inline":"stacked",Ax=oe&&O?x.jsx(F0,{value:Ad,children:x.jsx("span",{...{0:{className:"x1iyjqo2 xeuugli xb3r6kr x1yc453h"},1:{className:"x1iyjqo2 xeuugli xb3r6kr x1yc453h xmz0i5r"}}[!!Qt<<0],children:O(oe)})}):x.jsxs(x.Fragment,{children:[!L&&oe?.icon!=null&&Ta(oe.icon,{size:"sm",color:"secondary"}),x.jsx("span",{className:"x1iyjqo2 xeuugli xb3r6kr xlyipyv xuxw1ft x1yc453h",children:oe?.label??Te})]}),St=H?x.jsxs("div",{children:[_o(),x.jsx(Ai,{}),x.jsx("div",{ref:ge,id:lt,role:"listbox","aria-labelledby":rt,...Ur.menuProps,...{0:{className:"x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x7a5moj x1hc1fzr x1ey1afo x1j4r261"},2:{className:"x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x7a5moj x1hc1fzr x1ey1afo xge0x1e xish69e"},1:{className:"x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x1hc1fzr x1ey1afo x1j4r261 x2hg6jq"},3:{className:"x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x1hc1fzr x1ey1afo xge0x1e xish69e x2hg6jq"}}[!!Aa<<1|(Se.activePresentation==="popover"&&C!=="ghost")<<0],children:vs()})]}):x.jsx("div",{ref:ge,id:lt,role:"listbox",...Ur.menuProps,"aria-label":Se.activePresentation==="bottom-sheet"?s:void 0,"aria-labelledby":Se.activePresentation==="bottom-sheet"?void 0:rt,"aria-activedescendant":Se.isOpen&&Zn>=0?Fr(Zn):void 0,tabIndex:Se.activePresentation==="bottom-sheet"?0:void 0,onKeyDown:Se.activePresentation==="bottom-sheet"?tt:void 0,...{0:{className:"x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x7a5moj x1hc1fzr x1ey1afo x1j4r261"},4:{className:"x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x7a5moj x1hc1fzr x1ey1afo xge0x1e xish69e"},2:{className:"x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x1hc1fzr x1ey1afo x1j4r261 x2hg6jq"},6:{className:"x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x1hc1fzr x1ey1afo xge0x1e xish69e x2hg6jq"},1:{className:"x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x7a5moj x1j4r261 xg01cxk xq2gx43"},5:{className:"x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x7a5moj xge0x1e xish69e xg01cxk xq2gx43"},3:{className:"x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x1j4r261 x2hg6jq xg01cxk xq2gx43"},7:{className:"x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k xge0x1e xish69e x2hg6jq xg01cxk xq2gx43"}}[!!Aa<<2|(Se.activePresentation==="popover"&&C!=="ghost")<<1|(Se.activePresentation==="popover"&&!zn)<<0],children:vs()});let Pi=null;Se.activePresentation==="bottom-sheet"?(!Ve||Se.isSheetPresented)&&(Pi=x.jsx(l6,{isOpen:Se.isSheetOpen,onOpenChange:Se.onSheetOpenChange,finalFocusRef:An,initialFocusRef:H?Yn:ge,label:s,children:St})):Ve||(Pi=Ne.render(St,{placement:Ra,alignment:"start",offset:Ft?void 0:Wn["--spacing-1"],xstyle:[jn.popover,yd[Ra]],style:vn}));const Bi={...he,id:rt,"aria-describedby":[ve,Mn].filter(Boolean).join(" ")||void 0,"aria-labelledby":ur,"aria-required":Ce?"true":void 0,"aria-invalid":T?.type==="error"?"true":void 0,"aria-busy":Qa||void 0,onKeyDown:Ir(tt,ue),onFocus:Ee=>{pe?.(Ee),Se.onTriggerFocus(Ee)},tabIndex:d&&!Br?-1:0,...{0:{className:"x78zum5 x6s0dn4 x1qughib x1txdalj x1iyjqo2 xs83m0k x1r8uery xeuugli x1717udv x1ghz6dp xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x15bjb6t x1heor9g x1ypdohk x16khyan x1a2a7pz"},2:{className:"x78zum5 x6s0dn4 x1qughib x1txdalj x1iyjqo2 xs83m0k x1r8uery xeuugli x1717udv x1ghz6dp xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x15bjb6t x1heor9g x1a2a7pz xt0e3qv"},1:{className:"x78zum5 x6s0dn4 x1qughib x1txdalj x1iyjqo2 xs83m0k x1r8uery xeuugli x1717udv x1ghz6dp xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x15bjb6t x1heor9g x1ypdohk x16khyan x1a2a7pz xkh2ocl"},3:{className:"x78zum5 x6s0dn4 x1qughib x1txdalj x1iyjqo2 xs83m0k x1r8uery xeuugli x1717udv x1ghz6dp xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x15bjb6t x1heor9g x1a2a7pz xt0e3qv xkh2ocl"}}[!!Ve<<1|!!Qt<<0]},Po=x.jsxs(x.Fragment,{children:[x.jsxs("div",{ref:Ee=>{gn.current=Ee,Ne.triggerRef(Ee),Xn.ref(Ee)},onClick:ks,...r,...ye(fe("selector",{variant:C,size:pt,status:T?.type??null,disabled:d?"disabled":null,readonly:Ve?"readonly":null}),de(uc.base,jn.triggerContainer,PV[pt],C==="ghost"&&jn.triggerGhost,C==="ghost"&&or.backgroundImage,C==="ghost"&&Bs.focusWithin,Se.isTriggerFocusRingSuppressed&&qV.pointerRestoredFocus,d&&uc.disabled,Ve&&jn.triggerReadOnly,C==="ghost"&&d&&jn.triggerGhostDisabled,C==="ghost"&&Ve&&jn.triggerGhostReadOnly,!oe&&jn.triggerPlaceholder,C!=="ghost"&&T&&O0[T.type],C!=="ghost"&&T&&!d&&I0[T.type],C!=="ghost"&&Qt&&_0.inGroup,Qt&&jn.triggerInGroup,K),ae,I),children:[L&&Ta(L,{size:"sm",color:"secondary"}),Qt&&x.jsx(Gs,{id:Ge,children:s}),Ve&&x.jsx(Gs,{id:Pt,children:t("@astryx.input.readOnly")}),x.jsx("button",{...Bi,ref:Vt,type:"button",role:Ve||!H?"combobox":void 0,"aria-haspopup":Ve?void 0:Se.activePresentation==="bottom-sheet"?"dialog":"listbox","aria-expanded":Ve?!1:Se.isOpen,"aria-controls":Ve?void 0:lt,"aria-readonly":Ve||void 0,"aria-activedescendant":!Ve&&!H&&Se.isOpen&&Zn>=0?Fr(Zn):void 0,disabled:d&&!Br,"aria-disabled":Br?"true":void 0,children:Ax}),D!=null&&x.jsx("input",{type:"hidden",name:D,value:k??"",disabled:d}),Qa&&x.jsx(Do,{size:"sm"}),at&&k!=null&&!d&&!Ve&&x.jsx(_U,{...Ze,label:t("@astryx.selector.clearLabel",{label:s}),onClick:sa}),Rx?$c?x.jsx("button",{ref:Gt.ref,type:"button","aria-label":t(HV[T.type]),"aria-describedby":Gt.describedBy,...Ze,onClick:Ee=>Ee.stopPropagation(),...de(Bs.focusVisible,jn.statusButton),children:x.jsx(ft,{icon:t$[T.type],size:"sm",color:n$[T.type],xstyle:jn.triggerIcon})}):x.jsx(ft,{icon:t$[T.type],size:"sm",color:n$[T.type],xstyle:jn.triggerIcon}):Ve?null:x.jsx(ft,{icon:"chevronDown",size:"sm",color:"secondary",xstyle:[jn.triggerIcon,jn.triggerIconRotation,Se.isOpen&&jn.triggerIconOpen],...fe("selector-indicator-icon",{state:Se.isOpen?"expanded":"collapsed"})})]}),Pi,$c&&Gt.renderTooltip(T?.message??""),Br&&Xn.renderTooltip(y)]});return Qt?Po:x.jsx(wc,{label:s,isLabelHidden:o,description:l,inputID:rt,descriptionID:l?ct:void 0,isOptional:u,isRequired:f,isDisabled:d,status:T?{type:T.type,message:T.message,messageID:T.message?we:void 0}:void 0,statusVariant:et,labelTooltip:N,width:G,...Re,children:Po})}Ql.displayName="Selector";const a$=new Map;function d6(e){const t=e??"";let r=a$.get(t);if(r===void 0){let s;try{s=new Intl.NumberFormat(e)}catch{s=new Intl.NumberFormat("en")}const o=s.formatToParts(12345.6),l=s.formatToParts(11111111111).filter(f=>f.type==="integer").map(f=>f.value.length),u=l.length>1;r={group:(o.find(f=>f.type==="group")?.value??",").normalize("NFKC"),decimal:o.find(f=>f.type==="decimal")?.value??".",primaryGroupSize:u?l[l.length-1]:3,secondaryGroupSize:u?l[l.length-2]:3},a$.set(t,r)}return r}const f6=new RegExp("\\p{Nd}","u"),s$=new RegExp("\\p{Sc}","u"),UV=/[\u200B-\u200D\u200E\u200F\u061C\u2066-\u2069\uFEFF]/g,o$="−‒–-",VV=",.' ’٫٬",GV=new RegExp(`^[0-9${VV}]+$`),KV=/^(?:\d+\.?\d*|\.\d+)$/;function WV(e){const t=e.codePointAt(0);if(t==null)return null;for(let r=t;t-r<10;r--)if(!f6.test(String.fromCodePoint(r-1)))return t-r;return null}function YV(e){let t="";for(const r of e){if(!f6.test(r)){t+=r;continue}const s=WV(r);if(s==null)return null;t+=String(s)}return t}function i$(e,t,r,s,o,l){let u=e,f=null;if(r!==""&&e.includes(r)){const p=e.indexOf(r);if(e.includes(r,p+r.length)||(u=e.slice(0,p),f=e.slice(p+r.length),!/^\d*$/.test(f)))return null}let d;if(t!==""&&u.includes(t)){const p=u.split(t);if(p.length-1<l||!p.every(k=>/^\d+$/.test(k)))return null;const y=p[0];if(p[p.length-1].length!==s||y.length>o)return null;for(let k=1;k<p.length-1;k++)if(p[k].length!==o)return null;d=p.join("")}else{if(!/^\d*$/.test(u))return null;d=u}return d===""&&(f==null||f==="")?null:f==null?d:`${d}.${f}`}function XV(e){return/^[\s'\u2019]$/.test(e)}function ZV(e,t){if(!GV.test(e))return null;const{group:r,decimal:s,primaryGroupSize:o,secondaryGroupSize:l}=d6(t),u=i$(e,r,s,o,l,1);if(u!=null)return u;if(KV.test(e))return e;const f=[...new Set(e.replace(/\d/g,""))];if(f.length===0||f.length>2)return null;for(const d of f){const p=e.split(d).length-1,y=XV(d)?1:2;if(p<y)continue;const m=f.find(v=>v!==d)??"";if(m!==""&&e.split(m).length-1!==1)continue;const k=i$(e,d,m,3,3,y);if(k!=null)return k}return null}function QV(e,t){const r=YV(e.normalize("NFKC").replace(UV,""));if(r==null)return null;let s=r.trim(),o=1;const l=/^\((.*)\)$/s.exec(s);l&&(o=-1,s=l[1].trim()),s=l$(s);let u=!1;const f=new RegExp(`^([+${o$}])\\s*`).exec(s);if(f)u=!0,o=f[1]==="+"?o:-o,s=s.slice(f[0].length);else{const S=new RegExp(`\\s*([+${o$}])$`).exec(s);S&&(u=!0,o=S[1]==="+"?o:-o,s=s.slice(0,s.length-S[0].length))}if(l&&u)return null;s=l$(s);let d=0;const p=/\s*[eE]\s*([+-]?\d+)$/.exec(s);p&&(d=Number(p[1]),s=s.slice(0,s.length-p[0].length));const y=s.trim();if(y==="")return null;const m=ZV(y,t);if(m==null)return null;const k=Number(m);if(!Number.isFinite(k))return null;const v=d===0?k:Number((k*10**d).toPrecision(15));if(!Number.isFinite(v))return null;const w=o*v;return Object.is(w,-0)?0:w}function l$(e){let t=e.trim();return s$.test(t.charAt(0))&&(t=t.slice(1).trim()),s$.test(t.charAt(t.length-1))&&(t=t.slice(0,-1).trim()),t}function JV(e,t){const{decimal:r}=d6(t),s=String(e);return r==="."?s:s.replace(".",r)}function h6(e,t){const r=e.trim();if(r==="")return null;const s=QV(r,t.locale);return s==null||!Number.isFinite(s)||t.isIntegerOnly&&!Number.isInteger(s)?null:s}function eG(e,t){const r=h6(e,t);return r===null||t.min!=null&&r<t.min||t.max!=null&&r>t.max?null:r}function tG(e,t){if(e.trim()==="")return t.hasClear?{type:"clear"}:{type:"revert"};const r=h6(e,t);if(r===null)return{type:"revert"};const s=t.min==null?null:t.isIntegerOnly?Math.ceil(t.min):t.min,o=t.max==null?null:t.isIntegerOnly?Math.floor(t.max):t.max;if(s!=null&&o!=null&&s>o)return{type:"revert"};const l=s!=null&&r<s?s:o!=null&&r>o?o:r;return{type:"commit",value:l,didClamp:l!==r}}const Eo={wrapper:{kY2c9j:"x1vjfegm",kLKAdn:"x4kswst",kGO01o:"x3jnfsm",kZCmMZ:"x1jni19p",kwRFfy:"x17sfb9",$$css:!0},wrapperWithNumberSteppers:{kwRFfy:"xyri2b",$$css:!0},numberStepperButton:{kB7OPa:"x9f619",k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kUk6DE:"x98rzlu",kAzted:"x2lwn1j",kmVPX3:"x1717udv",kogj98:"x1ghz6dp",kMzoRj:"xc342km",ksu8eU:"xng3xce",kMwMTN:"xv9yike",kWkggS:"x10xzikg",kkrTdU:"x1ypdohk x16khyan",kI3sdo:"x1a2a7pz",$$css:!0},numberStepperButtonDisabled:{kMwMTN:"xqa6c3m",kkrTdU:"xt0e3qv",kKwaWg:"x18o3ruo",$$css:!0},decrementButton:{kEafiO:"x11xkdxz",kPef9Z:"x13fuv20",kLZC3w:"x1mly77v",$$css:!0},incrementIcon:{k3aq6I:"x19jd1h0",$$css:!0}},nG={sm:{kZKoxP:"x6k0iem",$$css:!0},md:{kZKoxP:"x1ueg155",$$css:!0},lg:{kZKoxP:"xssyfek",$$css:!0}};function c$(e){const[t,r]=String(e).toLowerCase().split("e"),s=t.split(".")[1]?.length??0,o=r==null?0:Number(r);return Math.max(0,s-o)}function rG(e,t){return e==null||!Number.isFinite(e)||e<=0||t&&!Number.isInteger(e)?1:e}function aG({currentValue:e,direction:t,min:r,max:s,step:o,isIntegerOnly:l}){const u=rG(o,l),f=r!=null&&(!l||Number.isInteger(r))?r:0;let d;if(e==null)d=t===1?r??0:s??0,l&&(d=t===1?Math.ceil(d):Math.floor(d));else{const y=(e-f)/u,m=Number.EPSILON*Math.max(1,Math.abs(y))*4,k=t===1?Math.floor(y+m)+1:Math.ceil(y-m)-1;d=f+k*u}const p=Math.min(12,Math.max(c$(u),c$(f)));return d=Number(d.toFixed(p)),r!=null&&(d=Math.max(r,d)),s!=null&&(d=Math.min(s,d)),!Number.isFinite(d)||l&&!Number.isInteger(d)?e:Object.is(d,-0)?0:d}function tb({label:e,isLabelHidden:t=!1,description:r,isOptional:s=!1,isRequired:o=!1,isDisabled:l=!1,isReadOnly:u=!1,disabledMessage:f,startIcon:d,labelIcon:p,status:y,statusVariant:m="attached",size:k,onChange:v,value:w,placeholder:S,labelTooltip:E,hasAutoFocus:R=!1,htmlName:C,autoComplete:T,min:A,max:N,step:L,formatValue:D,isWheelEnabled:j=!0,hasNumberSteppers:O=!1,units:M,isIntegerOnly:H=!1,onFocus:F,onBlur:q,hasClear:B,onEnter:U,onKeyDown:_,width:P,containerXstyle:G,containerClassName:X,containerStyle:Z,controlXstyle:Q,controlClassName:K,controlStyle:ae,ref:I,id:ee,"aria-describedby":pe,...ue}){const{rest:ve,container:xe}=kx("NumberInput",ue,{containerXstyle:G,containerClassName:X,containerStyle:Z}),$e=ja(),te=Nt(),he=UD(),Re=Cd({isRequired:o,isOptional:s}),Ce=bc(k,"md"),Te=g.useId(),Me=ee??Te,je=g.useId(),He=g.useId(),at=g.useId(),pt=g.useId(),et=g.useRef(null),Ve=g.useRef(null),yt=bx(),[Pe,rt]=g.useState(null),[lt,st]=g.useState(!1),ct=l&&!!f,we=Wa({placement:"above",focusTrigger:"always",isEnabled:ct}),{statusIcon:Ge,describedBy:Pt}=V4({status:y,statusVariant:m,isInGroup:!!yt}),{ariaLabelledBy:bn,ariaDescribedBy:gn}=Bb(je,[r?He:null,!yt&&m!=="tooltip"&&y?.message?at:null,Pt,M?pt:null,ct?we.describedBy:null],yt),An=g.useCallback(Y=>eG(Y,{min:A,max:N,isIntegerOnly:H,locale:he}),[H,he,N,A]),Vt=g.useMemo(()=>w==null?"":D?.(w)??String(w),[D,w]),Yn=g.useMemo(()=>Pe!==null?Pe:w==null?"":lt?JV(w,he):Vt,[Vt,lt,he,Pe,w]),Qt=g.useMemo(()=>Pe===null||!Pe.trim()?!0:An(Pe)!==null,[Pe,An]),kn=g.useCallback(Y=>{l||u||rt(Y.target.value)},[l,u]),Ye=g.useCallback(Y=>{st(!0),F?.(Y)},[F]),Le=g.useCallback(Y=>{if(Pe===null)return;const oe=tG(Pe,{min:A,max:N,isIntegerOnly:H,locale:he,hasClear:!!B});(Y==="blur"||oe.type==="commit"&&oe.didClamp)&&rt(null),oe.type==="clear"?B&&w!=null&&v(null):oe.type==="commit"&&oe.value!==w&&v(oe.value)},[B,H,he,N,A,v,Pe,w]),Jt=g.useCallback(Y=>{Le("blur"),st(!1),q?.(Y)},[Le,q]),un=g.useMemo(()=>Pe===null?w??null:Pe.trim()===""?null:An(Pe)??w??null,[An,Pe,w]),an=g.useCallback(Y=>aG({currentValue:un,direction:Y,min:A,max:N,step:L,isIntegerOnly:H}),[H,N,A,L,un]),cr=g.useCallback(Y=>{if(l||u)return;const oe=an(Y);oe!=null&&(rt(null),oe!==w&&v(oe))},[an,l,u,v,w]),Qa=g.useCallback(Y=>{if(gd(Y.nativeEvent))return;if(!(Y.altKey||Y.ctrlKey||Y.metaKey||Y.shiftKey)&&(Y.key==="ArrowUp"||Y.key==="ArrowDown")){if(_?.(Y),Y.defaultPrevented)return;Y.preventDefault(),cr(Y.key==="ArrowUp"?1:-1);return}Y.key==="Enter"&&(Le("Enter"),U?.()),_?.(Y)},[Le,U,_,cr]),Tr=g.useCallback(Y=>{if(Y==null||!j)return;const oe=ge=>{document.activeElement!==Y||l||u||ge.deltaY===0||ge.altKey||ge.ctrlKey||ge.metaKey||ge.shiftKey||(ge.preventDefault(),ge.stopPropagation(),cr(ge.deltaY<0?1:-1))};return Y.addEventListener("wheel",oe,{passive:!1}),()=>Y.removeEventListener("wheel",oe)},[l,u,j,cr]),Br=g.useMemo(()=>Pb(I,et,Tr),[I,Tr]),Xn=an(1)!==un,Gt=an(-1)!==un,ur=g.useCallback(Y=>{B&&v(null),rt(null),!Y||Y.detail===0?et.current?.focus():requestAnimationFrame(()=>{et.current?.focus({preventScroll:!0})})},[B,v]),{onClick:Mn,onMouseUp:Nn}=D0({containerRef:Ve,inputRef:et,disabled:l}),W=x.jsxs("div",{ref:Y=>{Ve.current=Y,we.ref(Y)},onClick:Mn,onMouseUp:Nn,...ye(fe("number-input",{size:Ce,status:y?.type??null,disabled:l?"disabled":null,readonly:u?"readonly":null}),de(uc.base,Eo.wrapper,O&&Eo.wrapperWithNumberSteppers,nG[Ce],l&&uc.disabled,y&&O0[y.type],y&&!l&&I0[y.type],y&&K4[y.type],yt&&_0.inGroup,Q),K,ae),children:[d&&Ta(d,{size:"sm",color:"secondary"}),yt&&x.jsx(Gs,{id:je,children:e}),x.jsx("input",{...ve,ref:Br,id:Me,name:l||D?void 0:C,type:"text",inputMode:H?"numeric":"decimal",role:"spinbutton",autoComplete:T,value:Yn,onChange:kn,onFocus:Ye,onBlur:Jt,onKeyDown:Qa,placeholder:S,disabled:l&&!ct,"aria-disabled":ct?"true":void 0,readOnly:u||ct||void 0,autoFocus:R,"data-autofocus":R||void 0,"aria-valuemin":A??void 0,"aria-valuemax":N??void 0,"aria-valuenow":w??void 0,"aria-valuetext":w==null||!D?void 0:Vt,"aria-describedby":[pe,gn].filter(Boolean).join(" ")||void 0,"aria-required":Re?"true":void 0,"aria-invalid":y?.type==="error"||!Qt?"true":void 0,"aria-labelledby":bn,...{0:{className:"x1lliihq x98rzlu xeuugli xc342km xng3xce x1717udv x9ynric xjm74w1 xf9zqsd xw6l6zx x1tgivj0 xjbqb8w x1a2a7pz xeyghm5"},2:{className:"x1lliihq x98rzlu xeuugli xc342km xng3xce x1717udv x9ynric xjm74w1 xf9zqsd xw6l6zx x1tgivj0 xjbqb8w x1a2a7pz xeyghm5 xt0e3qv"},1:{className:"x1lliihq x98rzlu xeuugli xc342km xng3xce x1717udv x9ynric xjm74w1 xf9zqsd xw6l6zx xjbqb8w x1a2a7pz xeyghm5 xv1l7n4"},3:{className:"x1lliihq x98rzlu xeuugli xc342km xng3xce x1717udv x9ynric xjm74w1 xf9zqsd xw6l6zx xjbqb8w x1a2a7pz xeyghm5 xt0e3qv xv1l7n4"}}[!!l<<1|!Qt<<0]}),D&&C&&!l&&x.jsx("input",{type:"hidden",name:C,value:w==null?"":String(w)}),M&&x.jsx("span",{id:pt,className:"x9ynric xjm74w1 xw6l6zx xv1l7n4 x2lah0s",children:M}),x.jsx(Gs,{as:"div",role:"alert","aria-live":"assertive",children:Qt?"":"Invalid number"}),B&&w!=null&&!l&&!u&&x.jsx(yx,{label:te("@astryx.numberInput.clearLabel",{label:e}),onClick:ur}),Ge,O&&x.jsxs("div",{className:"xkh2ocl x78zum5 xdt5ytf x2lah0s x12xnipv x5j3pgv x13i4uq0 xgbv0en x1t7ytsu x14ydlgx xb3r6kr x1g2gkjz xoao14b",children:[x.jsx("button",{type:"button",tabIndex:-1,...$e,disabled:l||u||!Xn,"aria-label":te("@astryx.numberInput.incrementLabel",{label:e}),onPointerDown:Y=>Y.preventDefault(),onClick:()=>{et.current?.focus(),cr(1)},...de(Eo.numberStepperButton,or.backgroundImage,(l||u||!Xn)&&Eo.numberStepperButtonDisabled),children:x.jsx(ft,{icon:"numberInput:stepperDown",size:"xsm",color:"inherit",xstyle:Eo.incrementIcon})}),x.jsx("button",{type:"button",tabIndex:-1,...$e,disabled:l||u||!Gt,"aria-label":te("@astryx.numberInput.decrementLabel",{label:e}),onPointerDown:Y=>Y.preventDefault(),onClick:()=>{et.current?.focus(),cr(-1)},...de(Eo.numberStepperButton,or.backgroundImage,Eo.decrementButton,(l||u||!Gt)&&Eo.numberStepperButtonDisabled),children:x.jsx(ft,{icon:"numberInput:stepperDown",size:"xsm",color:"inherit"})})]})]});return yt?x.jsxs(x.Fragment,{children:[W,ct&&we.renderTooltip(f)]}):x.jsxs(wc,{...xe,label:e,isLabelHidden:t,description:r,inputID:Me,descriptionID:r?He:void 0,isOptional:s,isRequired:o,isDisabled:l,labelIcon:p,status:y?{type:y.type,message:y.message,messageID:y.message?at:void 0}:void 0,statusVariant:m,labelTooltip:E,width:P,children:[W,ct&&we.renderTooltip(f)]})}tb.displayName="NumberInput";const Ep={all:["data-transfer"],status:()=>[...Ep.all,"status"]};function sG(){return Hn("/api/data-transfer/status")}async function oG(e){try{const t=await fetch("/api/data-transfer/export",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({passphrase:e})});if(!t.ok)throw j0(await p6(t),t.status);const r=fG(t),s=await t.blob(),o=URL.createObjectURL(s),l=document.createElement("a");return l.href=o,l.download=r,document.body.append(l),l.click(),l.remove(),setTimeout(()=>URL.revokeObjectURL(o),0),{ok:!0,data:{providerCount:Zy(t,"x-foundry-provider-count"),captureCount:Zy(t,"x-foundry-capture-count"),jobCount:Zy(t,"x-foundry-job-count")}}}catch(t){return U0(t)}}function iG(){return new Promise(e=>{const t=document.createElement("input");t.type="file",t.accept=".foundry-backup,application/octet-stream",t.addEventListener("change",()=>{const r=t.files?.[0];e(r?{status:"selected",file:r,fileName:r.name}:{status:"canceled"})},{once:!0}),t.addEventListener("cancel",()=>{e({status:"canceled"})},{once:!0}),t.click()})}async function lG(e,t){try{return{ok:!0,data:await Hn("/api/data-transfer/inspect",{method:"POST",headers:{"content-type":"application/octet-stream","x-foundry-filename":encodeURIComponent(e.name),"x-foundry-passphrase":encodeURIComponent(t)},body:e})}}catch(r){return U0(r)}}async function cG(e){const t=await fetch(`/api/data-transfer/imports/${e}`,{method:"DELETE"});if(!t.ok)throw j0(await p6(t),t.status)}async function uG(e){try{return{ok:!0,data:await Hn(`/api/data-transfer/imports/${e}/commit`,{method:"POST"})}}catch(t){return U0(t)}}function dG(){location.reload()}function U0(e){const t=A4(e);return{ok:!1,error:{code:t.error.code,message:t.error.message}}}function fG(e){const t=e.headers.get("content-disposition")??"";return/filename="([^"]+)"/u.exec(t)?.[1]??"foundry.foundry-backup"}function Zy(e,t){return Number(e.headers.get(t)??0)}async function p6(e){try{return await e.json()}catch{return null}}const V0=g.createContext(null);V0.displayName="DialogContext";function hG(){return g.use(V0)}function u$(e){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement||e.isContentEditable||ic()!=="pointer"){e.focus();return}e.matches(":focus-visible")&&e.blur(),e.focus({focusVisible:!1})}function pG(e,t=16){const r=e.getBoundingClientRect(),s=r.left+r.width/2-window.innerWidth/2,o=r.top+r.height/2-window.innerHeight/2,l=Math.sqrt(s*s+o*o)||1;return{x:Math.round(s/l*t),y:Math.round(o/l*t)}}const qs={dialog:{kVAEAm:"xixxii4",kogj98:"x1bpp3o7",kmVPX3:"x1717udv",kMzoRj:"xc342km",ksu8eU:"xng3xce",kWkggS:"x10xzikg","--_dialog-radius":"xvuvksw",kaIpWk:"xuacgfc",kGVxlE:"x1kcpxr7",k1xSpc:"x1s85apg",kXwgrk:"xdt5ytf",kZKoxP:"xg7h5cd",kZeWKH:"xish69e",kSiTet:"xg01cxk",k44tkh:"xqgcaz",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0},open:{k1xSpc:"x78zum5",kSiTet:"x1hc1fzr",kKVMdj:"x1ewfqum x1aquc0h",$$css:!0},backdrop:{kGyWv1:"xnixb3f",kba3nw:"x1abwkk1",$$css:!0},fullscreen:{kzqmXN:"x1o6l61p",kZKoxP:"xtdtrs8",ks0D6T:"xlbgzzq",kskxy:"x1wj9ous",kaIpWk:"x2u8bby",kogj98:"x1ghz6dp",kpwlN0:"x10a8y8t",$$css:!0},fullscreenOpen:{kKVMdj:"xqcmdr3 x1aquc0h",$$css:!0},fullscreenSafeArea:{kLKAdn:"x15ld1ci",kGO01o:"x1rgxemn",kZCmMZ:"xqmdmw x1i7f2ot",kwRFfy:"x1by8st6 xtjjor6",$$css:!0},inner:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kUk6DE:"x12lumcd",kAzted:"x2lwn1j",kVQacm:"xb3r6kr",kaIpWk:"x1pjcqnp",$$css:!0},inlineWrapper:{kmVPX3:"x1717udv",kMzoRj:"xc342km",ksu8eU:"xng3xce",kWkggS:"x10xzikg","--_dialog-radius":"xvuvksw",kaIpWk:"xuacgfc",kGVxlE:"x1kcpxr7",k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kZKoxP:"xg7h5cd",kZeWKH:"xish69e",$$css:!0}},d$=Wn["--spacing-4"],xG=`calc(100dvw - ${d$} - ${d$})`,gG=`min(100%, ${xG})`;function f$(e){return typeof e=="number"?`${e}px`:e}function mG(e,t){return{width:f$(e),maxWidth:gG,maxHeight:f$(t)}}const yG={kogj98:"x1ghz6dp",$$css:!0},Qy={sizing:(e,t,r)=>[{kzqmXN:e!=null?"x5lhr3w":e,ks0D6T:t!=null?"xf68679":t,kskxy:r!=null?"x1jols5v":r,$$css:!0},{"--x-width":(s=>typeof s=="number"?s+"px":s??void 0)(e),"--x-maxWidth":(s=>typeof s=="number"?s+"px":s??void 0)(t),"--x-maxHeight":(s=>typeof s=="number"?s+"px":s??void 0)(r)}],position:(e,t,r,s)=>[yG,{k87sOh:e!=null?"xjbys53":e,kLqNvP:t!=null?"x1lxsm33":t,kt4wiu:r!=null?"xqxgn94":r,krVfgx:s!=null?"x1nqzi6q":s,$$css:!0},{"--x-top":(o=>typeof o=="number"?o+"px":o??void 0)(e),"--x-insetInlineStart":(o=>typeof o=="number"?o+"px":o??void 0)(t),"--x-insetInlineEnd":(o=>typeof o=="number"?o+"px":o??void 0)(r),"--x-bottom":(o=>typeof o=="number"?o+"px":o??void 0)(s)}]};function yh(e){return typeof e=="number"?`${e}px`:e}function bG(e){const{top:t,bottom:r,start:s,end:o}=e;return{top:t!==void 0?yh(t):"auto",bottom:r!==void 0?yh(r):"auto",insetInlineStart:s!==void 0?yh(s):"auto",insetInlineEnd:o!==void 0?yh(o):"auto"}}function wx({isOpen:e,isInline:t=!1,onOpenChange:r,width:s=400,maxHeight:o="75dvh",position:l,variant:u="standard",purpose:f="info",padding:d,children:p,xstyle:y,className:m,style:k,ref:v,...w}){const S=d==null,E=d??4,R=Ub[E],C=u==="fullscreen",T=C?null:mG(s,o),A=g.useId(),N=g.useMemo(()=>({isInline:t,titleId:A}),[t,A]),L=w["aria-label"]!=null||w["aria-labelledby"]!=null,D=g.useRef(null),j=g.useCallback(Q=>{if(D.current=Q,!Q||L)return;Q.querySelector(`#${CSS.escape(A)}`)!=null?Q.setAttribute("aria-labelledby",A):Q.removeAttribute("aria-labelledby")},[A,L]),O=xn(v,j),M=g.useRef(null);Wp();const H=f!=="required",F=f==="info";g.useEffect(()=>{if(t)return;const Q=D.current;if(Q)if(e){M.current=document.activeElement;const K=M.current;if(K&&K!==document.body){const ae=pG(K);Q.style.setProperty("--dialog-dir-x",`${ae.x}px`),Q.style.setProperty("--dialog-dir-y",`${ae.y}px`)}else Q.style.setProperty("--dialog-dir-x","0px"),Q.style.setProperty("--dialog-dir-y","16px");if(!Q.open){Q.showModal();const ae=Q.querySelector("[data-autofocus]");ae&&u$(ae)}}else Q.open&&Q.close(),M.current&&u$(M.current),M.current=null},[e,t]),zH(D,e&&!t),mU(e&&!t);const{shouldDismissOnCloseRequest:q}=Xp({isActive:e,isEnabled:!t,escapeBehavior:H?"close":"block",onDismiss:()=>{r(!1)}}),B=g.useRef(!1);g.useEffect(()=>{const Q=D.current?.querySelector(`#${CSS.escape(A)}`)!=null;e&&!t&&!L&&!Q&&!B.current&&(B.current=!0,Ea())},[e,t,L,A]);const U=Q=>{Q.target===Q.currentTarget&&F&&r(!1)},_=Q=>{Q.preventDefault(),q()&&H&&r(!1)},P=x.jsx("div",{...de(qs.inner,...f0(S?{useThemeDefault:"dialog",maxHeight:T?.maxHeight}:{paddingInnerX:R,paddingInnerY:R,paddingOuterX:R,paddingOuterY:R,maxHeight:T?.maxHeight}),!S&&E!==4&&zi[E],!S&&E!==4&&Ei[E],!S&&E!==4&&Mo[E],!S&&E!==4&&Vs[E],C&&S&&qs.fullscreenSafeArea),children:x.jsx(V0,{value:N,children:p})}),G=l!=null&&!C,{open:X,...Z}=w;return t?e?x.jsx("div",{...Z,...ye(fe("dialog",{variant:u}),de(ac.reset,sc.reset,qs.inlineWrapper,Qu.reset,T&&Qy.sizing(T.width,T.maxWidth,T.maxHeight),C&&qs.fullscreen,y),m,k),"data-testid":w["data-testid"],children:x.jsx(Ju,{children:x.jsx(rc,{children:P})})}):null:x.jsx("dialog",{ref:O,...Z,...ye(fe("dialog",{variant:u}),pn.focusVisible(ac.reset,sc.reset,qs.dialog,Qu.reset,e&&qs.open,qs.backdrop,T&&Qy.sizing(T.width,T.maxWidth,T.maxHeight),G&&(()=>{const Q=bG(l);return Qy.position(Q.top,Q.insetInlineStart,Q.insetInlineEnd,Q.bottom)})(),C&&qs.fullscreen,C&&e&&qs.fullscreenOpen,y),m,k),onClick:U,onCancel:_,"aria-modal":"true",...f==="required"?{role:"alertdialog"}:void 0,children:x.jsx(Ju,{children:x.jsx(rc,{children:P})})})}wx.displayName="Dialog";const kG={titleFocusable:{kI3sdo:"x1a2a7pz",$$css:!0}};function G0({title:e,subtitle:t,onOpenChange:r,startContent:s,endContent:o,endContentEdgeCompensation:l,hasDivider:u,xstyle:f,className:d,style:p,ref:y,...m}){const k=Nt(),v=g.useRef(null),w=hG(),S=w?.isInline!==!0,E=w?.titleId,R=t!=null&&typeof t!="boolean"&&t!=="",C=l==null?r!=null:l==="block"||l==="all",T=l==null?r!=null:l==="inline"||l==="all";return g.useEffect(()=>{S&&v.current&&v.current.focus()},[S]),x.jsx(Jh,{ref:y,hasDivider:u,xstyle:f,className:d,style:p,...m,children:x.jsxs("div",{...ye(fe("dialog-header"),{className:"x78zum5 x1cy8zhl x1qughib xjcht0a"}),children:[s&&x.jsx("div",{...ye(fe("dialog-header-start-content"),{className:"x78zum5 x6s0dn4 x1txdalj x2lah0s"}),children:s}),x.jsxs("div",{...ye(fe("dialog-header-title-block"),{className:"x78zum5 xdt5ytf xsn7fz1 x98rzlu xeuugli xqixskq"}),children:[x.jsx(Oo,{ref:v,id:E,level:2,tabIndex:-1,xstyle:kG.titleFocusable,children:e}),R&&x.jsx(Je,{type:"body",size:"sm",color:"secondary",children:t})]}),(o||r)&&x.jsxs("div",{...ye(fe("dialog-header-end-content"),{0:{className:"x78zum5 x6s0dn4 x1txdalj x2lah0s"},2:{className:"x78zum5 x6s0dn4 x1txdalj x2lah0s xhzvc8f"},1:{className:"x78zum5 x6s0dn4 x1txdalj x2lah0s x3kzqx6"},3:{className:"x78zum5 x6s0dn4 x1txdalj x2lah0s xhzvc8f x3kzqx6"}}[!!C<<1|!!T<<0]),children:[o,r&&x.jsx(jt,{variant:"ghost",label:k("@astryx.dialog.close"),tooltip:k("@astryx.dialog.close"),icon:x.jsx(ft,{icon:"close",color:"inherit",...fe("dialog-header-close-icon")}),onClick:()=>{r?.(!1)},isIconOnly:!0})]})]})})}G0.displayName="DialogHeader";function x6({passphrase:e,confirmation:t,onPassphraseChange:r,onConfirmationChange:s,onEnter:o,isDisabled:l}){const{t:u}=rn();return x.jsxs(We,{gap:3,children:[x.jsx(Fa,{label:u("dataTransfer.passphrase"),description:u("dataTransfer.passphraseDescription"),type:"password",size:"sm",width:"100%",value:e,onChange:r,isDisabled:l,isRequired:!0,hasAutoFocus:!0,autoComplete:"new-password"}),x.jsx(Fa,{label:u("dataTransfer.confirmPassphrase"),type:"password",size:"sm",width:"100%",value:t,onChange:s,onEnter:o,isDisabled:l,isRequired:!0,status:e!==t&&t.length>0?{type:"error",message:u("dataTransfer.passphraseMismatch")}:void 0,autoComplete:"new-password"})]})}function vG({onClose:e}){const{t}=rn(),r=Io(),[s,o]=g.useState(""),[l,u]=g.useState(""),f=Er({mutationFn:()=>oG(s),onSuccess:p=>{if(!p.ok){r({body:t(J1(p.error.code)),type:"error",uniqueID:`data-transfer-export-${p.error.code}`});return}r({body:t("dataTransfer.exported"),uniqueID:"data-transfer-exported"}),e()},onError:()=>{r({body:t("dataTransfer.ioError"),type:"error",uniqueID:"data-transfer-export-error"})}}),d=()=>{s!==l||s.length===0||f.isPending||f.mutate()};return x.jsx(wx,{isOpen:!0,onOpenChange:p=>{!p&&!f.isPending&&e()},width:560,padding:5,purpose:"form",children:x.jsx(Li,{header:x.jsx(G0,{title:t("dataTransfer.exportTitle"),subtitle:t("dataTransfer.exportSubtitle"),onOpenChange:()=>{f.isPending||e()}}),content:x.jsx(Di,{children:x.jsxs(We,{gap:5,children:[x.jsx(x6,{passphrase:s,confirmation:l,onPassphraseChange:o,onConfirmationChange:u,onEnter:d,isDisabled:f.isPending}),x.jsx(Ks,{padding:2,variant:"muted",children:x.jsxs(Rt,{gap:2,align:"start",children:[x.jsx(ft,{icon:YP,size:"sm",color:"secondary"}),x.jsx(Je,{type:"supporting",color:"secondary",children:t("dataTransfer.passphraseWarning")})]})})]})}),footer:x.jsx(h0,{children:x.jsxs(Rt,{gap:2,hAlign:"end",children:[x.jsx(jt,{label:t("dataTransfer.cancel"),variant:"ghost",size:"sm",isDisabled:f.isPending,onClick:e}),x.jsx(jt,{label:t("dataTransfer.exportAction"),variant:"primary",size:"sm",isLoading:f.isPending,isDisabled:s!==l||s.length===0,onClick:d})]})})})})}function Ll({label:e,value:t}){return x.jsxs(Rt,{gap:2,children:[x.jsx(Je,{type:"supporting",color:"secondary",children:e}),x.jsx(Je,{type:"label",children:String(t)})]})}function wG({file:e,fileName:t,onClose:r}){const{t:s,locale:o}=rn(),l=Io(),[u,f]=g.useState(""),[d,p]=g.useState(""),[y,m]=g.useState(null),[k,v]=g.useState("passphrase"),[w,S]=g.useState(!1),E=Er({mutationFn:()=>lG(e,u),onSuccess:M=>{if(!M.ok){l({body:s(J1(M.error.code)),type:"error",uniqueID:`data-transfer-import-${M.error.code}`});return}m(M.data),f(""),v("preview")},onError:()=>{l({body:s("dataTransfer.ioError"),type:"error",uniqueID:"data-transfer-inspect-error"})}}),R=Er({mutationFn:M=>uG(M),onSuccess:M=>{if(!M.ok){l({body:s(J1(M.error.code)),type:"error",uniqueID:`data-transfer-commit-${M.error.code}`}),v("preview");return}v("complete")},onError:()=>{l({body:s("dataTransfer.ioError"),type:"error",uniqueID:"data-transfer-commit-error"}),v("preview")}}),C=u===d&&u.length>0,T=k==="importing"||k==="complete",A=()=>{T||R.isPending||(y&&cG(y.importId),r())},N=()=>{!C||E.isPending||E.mutate()},L=()=>{!y||R.isPending||(v("importing"),R.mutate(y.importId))},D=()=>{S(!0);try{dG()}catch{S(!1)}},j=(()=>{switch(k){case"passphrase":return s("dataTransfer.importTitle");case"preview":return s("dataTransfer.previewTitle");case"importing":return s("dataTransfer.importingTitle");case"complete":return s("dataTransfer.restartTitle")}})(),O=y?new Intl.DateTimeFormat(o,{dateStyle:"medium",timeStyle:"short"}).format(new Date(y.exportedAt)):"";return x.jsx(wx,{isOpen:!0,onOpenChange:M=>{M||A()},width:520,padding:5,purpose:T?"required":"form",children:x.jsx(Li,{header:x.jsx(G0,{title:j,subtitle:t,onOpenChange:T?void 0:A}),content:x.jsxs(Di,{children:[k==="passphrase"&&x.jsxs(We,{gap:4,children:[x.jsx(x6,{passphrase:u,confirmation:d,onPassphraseChange:f,onConfirmationChange:p,onEnter:N,isDisabled:E.isPending}),x.jsx(Ks,{padding:3,variant:"muted",children:x.jsx(Je,{type:"supporting",color:"secondary",children:s("dataTransfer.importPassphraseDescription")})})]}),k==="preview"&&y&&x.jsxs(We,{gap:4,children:[x.jsx(Ks,{padding:3,variant:"muted",children:x.jsxs(We,{gap:2,children:[x.jsx(Ll,{label:s("dataTransfer.exportedAt"),value:O}),x.jsx(Ll,{label:s("dataTransfer.appVersion"),value:y.appVersion}),x.jsx(Ll,{label:s("dataTransfer.schemaVersion"),value:y.databaseSchemaVersion}),x.jsx(Ll,{label:s("dataTransfer.providers"),value:y.providerCount}),x.jsx(Ll,{label:s("dataTransfer.captures"),value:y.captureCount}),x.jsx(Ll,{label:s("dataTransfer.jobs"),value:y.jobCount})]})}),x.jsx(Je,{type:"supporting",color:"secondary",children:s("dataTransfer.replaceWarning")})]}),k==="importing"&&x.jsxs(We,{hAlign:"center",vAlign:"center",gap:4,paddingBlock:8,children:[x.jsx(Do,{size:"lg",label:s("dataTransfer.importingDescription")}),x.jsx(Je,{type:"supporting",color:"secondary",children:s("dataTransfer.importingHint")})]}),k==="complete"&&x.jsxs(We,{gap:3,children:[x.jsx(Je,{children:s("dataTransfer.restartDescription")}),x.jsx(Je,{type:"supporting",color:"secondary",children:s("dataTransfer.restartHint")})]})]}),footer:x.jsxs(h0,{children:[k==="passphrase"&&x.jsxs(Rt,{gap:2,hAlign:"end",children:[x.jsx(jt,{label:s("dataTransfer.cancel"),variant:"ghost",size:"sm",isDisabled:E.isPending,onClick:A}),x.jsx(jt,{label:s("dataTransfer.inspectAction"),variant:"primary",size:"sm",isLoading:E.isPending,isDisabled:!C,onClick:N})]}),k==="preview"&&x.jsxs(Rt,{gap:2,hAlign:"end",children:[x.jsx(jt,{label:s("dataTransfer.cancel"),variant:"ghost",size:"sm",onClick:A}),x.jsx(jt,{label:s("dataTransfer.importAction"),variant:"destructive",size:"sm",isLoading:R.isPending,onClick:L})]}),k==="complete"&&x.jsx(Rt,{gap:2,hAlign:"end",children:x.jsx(jt,{label:s("dataTransfer.restartAction"),variant:"primary",size:"sm",isLoading:w,onClick:D})})]})})})}function SG(e){const{t}=rn(),[r,s]=g.useState(""),[o,l]=g.useState(0),u=r.trim().toLowerCase(),f=u.length>0,d=g.useMemo(()=>f?uV.filter(y=>dV(y,u,t)):[],[f,u,t]);return{query:r,setQuery:s,isActive:f,results:d,activeIndex:o,setActiveIndex:l,onKeyDown:y=>{if(r&&y.key==="Escape"){y.preventDefault(),s("");return}if(!(!f||d.length===0))switch(y.key){case"ArrowDown":{y.preventDefault(),l(m=>(m+1)%d.length);break}case"ArrowUp":{y.preventDefault(),l(m=>(m-1+d.length)%d.length);break}case"Enter":{y.preventDefault(),e(d[o].panel);break}}},activeResultId:f&&d.length>0?`settings-search-result-${o}`:void 0}}function h$(e,t){const r=new Date(e);if(Number.isNaN(r.getTime()))return"";const{timeZone:s,pattern:o}=EG(t),l=$G(r,s),u={YYYY:l.year,MM:l.month,DD:l.day,HH:l.hour24,hh:l.hour12,mm:l.minute,ss:l.second,A:l.dayPeriod};return o.replaceAll(/YYYY|MM|DD|HH|hh|mm|ss|A/gu,f=>u[f]??f)}function bs(e,t){return{...e,createdAt:h$(e.createdAt,t),updatedAt:h$(e.updatedAt,t)}}function EG(e){const t=e.workspace["language-region"];return{timeZone:t["time-zone"],pattern:t["time-format"]}}function $G(e,t){const r=p$(e,t,"h23"),s=p$(e,t,"h12");return{year:r.get("year")??"",month:r.get("month")??"",day:r.get("day")??"",hour24:r.get("hour")??"",hour12:s.get("hour")??"",minute:r.get("minute")??"",second:r.get("second")??"",dayPeriod:s.get("dayPeriod")??""}}function p$(e,t,r){const s=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:r,timeZone:t}).formatToParts(e);return new Map(s.filter(o=>o.type!=="literal").map(o=>[o.type,o.value]))}const Pn={all:["captures"],list:e=>[...Pn.all,"list",e],counts:()=>[...Pn.all,"counts"],detail:e=>[...Pn.all,"detail",e],jobs:e=>[...Pn.all,"jobs",e]};async function TG(e="all"){const[t,r]=await Promise.all([Hn(`/api/captures?filter=${e}`),Za()]);return t.map(s=>bs(s,r))}function CG(){return Hn("/api/captures/counts")}async function jG(e){try{const[t,r]=await Promise.all([Hn(`/api/captures/${e}`),Za()]);return{ok:!0,data:{...t,capture:bs(t.capture,r)}}}catch(t){return Ec(t)}}async function RG(e){try{const[t,r]=await Promise.all([Hn("/api/captures",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)}),Za()]);return{ok:!0,data:{capture:bs(t,r)}}}catch(t){return Ec(t)}}async function g6(e){try{const[t,r]=await Promise.all([Hn(`/api/captures/${e}/recapture`,{method:"POST"}),Za()]);return{ok:!0,data:bs(t,r)}}catch(t){return Ec(t)}}async function AG(e){try{return await Hn(`/api/captures/${e}`,{method:"DELETE"}),{ok:!0,data:null}}catch(t){return Ec(t)}}async function MG(e,t){try{const[r,s]=await Promise.all([Hn(`/api/captures/${e}/note`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({userNote:t})}),Za()]);return{ok:!0,data:bs(r,s)}}catch(r){return Ec(r)}}async function NG(e){try{const[t,r]=await Promise.all([Hn(`/api/captures/${e}/jobs`),Za()]);return{ok:!0,data:t.map(s=>bs(s,r))}}catch(t){return Ec(t)}}function Ec(e){const t=A4(e);return{ok:!1,error:{code:t.error.code,message:t.error.message}}}const ms={all:["providers"],list:()=>[...ms.all,"list"],detail:e=>[...ms.all,"detail",e]};async function zG(){const[e,t]=await Promise.all([Hn("/api/providers"),Za()]);return e.map(r=>({...bs(r,t)}))}async function LG(e,t){const[r,s]=await Promise.all([Hn(t?`/api/providers/${t}`:"/api/providers",{method:t?"PUT":"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)}),Za()]);return bs(r,s)}async function DG(e){try{const[t,r]=await Promise.all([Hn(`/api/providers/${e}`),Za()]);return bs(t,r)}catch{return null}}async function x$(e,t){const[r,s]=await Promise.all([Hn(`/api/providers/${e}/status`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({status:t})}),Za()]);return bs(r,s)}function OG(e){return Hn("/api/providers/models",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}const Tu={theme:"system",language:"system",timeFormat:"YYYY-MM-DD HH:mm:ss",timezone:"America/Los_Angeles",library:{captures:{fetcher:null,maxAttempts:1,scrapeConcurrency:2,firecrawl:{apiKey:""},deepseek:{apiKey:""}}}};function IG(){const e=qr(),t=ys({queryKey:Ri.current(),queryFn:R0}),r=ys({queryKey:["settings","config-folder"],queryFn:QH}),s=k=>e.setQueryData(Ri.current(),k),o=k=>{s(k),e.invalidateQueries({queryKey:Pn.all}),e.invalidateQueries({queryKey:ms.all})},l=Er({mutationFn:eF,onSuccess:s}),u=Er({mutationFn:aF,onSuccess:s}),f=Er({mutationFn:tF,onSuccess:s}),d=Er({mutationFn:nF,onSuccess:o}),p=Er({mutationFn:rF,onSuccess:o}),y={theme:t.data?.workspace.appearance["color-theme"]??Tu.theme,language:t.data?.workspace["language-region"].language??Tu.language,timeFormat:t.data?.workspace["language-region"]["time-format"]??Tu.timeFormat,timezone:t.data?.workspace["language-region"]["time-zone"]??Tu.timezone,library:t.data?.features.library??Tu.library},m=(k,v)=>{switch(k){case"theme":{l.mutate(v);break}case"language":{f.mutate(v);break}case"timeFormat":{d.mutate(v);break}case"timezone":{p.mutate(v);break}case"library":{u.mutate(v);break}}};return{settings:y,configFolderPath:r.data??"",update:m}}function Sx({title:e,children:t}){const r=(Array.isArray(t)?t:[t]).filter(s=>!!s);return x.jsxs(We,{gap:1.5,children:[e!=null&&x.jsx(Je,{type:"supporting",weight:"semibold",color:"secondary",children:e}),x.jsx(Ks,{padding:0,width:"100%",variant:"muted",children:x.jsx(We,{as:"ul",role:"list",gap:0,children:r.map((s,o)=>{const l=o>0;return x.jsxs(We,{as:"li",gap:0,children:[l&&x.jsx(Ai,{variant:"subtle"}),x.jsx(We,{children:s})]},g.isValidElement(s)?s.key:void 0)})})})]})}const _G=4,Fu=260,Gh={panel:{k9g6sI:"x12h1iku",kanfag:"xisit5j",$$css:!0},line:{k1xSpc:"x78zum5",kXwgrk:"x1q0g3np x1cql26v",kGNEyG:"x6s0dn4 xp05mzj",kOIVth:"xjcht0a xpqkv5p",$$css:!0},textColumn:{ks0D6T:"x1lr1uin xet5618",$$css:!0},control:{kmuXW:"x2lah0s",$$css:!0}};function Va({title:e,titleAccessory:t,description:r,icon:s,control:o,detail:l}){return x.jsxs(We,{padding:_G,gap:2,children:[x.jsxs(sx,{xstyle:Gh.line,"data-settings-line":!0,children:[x.jsx(lc,{size:"fill",children:x.jsxs(Rt,{gap:2,align:"start",children:[x.jsx(We,{paddingBlockStart:.5,children:x.jsx(ft,{icon:s,size:"sm",color:"secondary"})}),x.jsxs(We,{gap:.5,xstyle:Gh.textColumn,children:[t==null?x.jsx(Je,{type:"label",children:e}):x.jsxs(Rt,{gap:1.5,align:"center",children:[x.jsx(Je,{type:"label",children:e}),t]}),r!=null&&x.jsx(Je,{type:"supporting",color:"secondary",children:r})]})]})}),o!=null&&x.jsx(We,{"data-settings-control":!0,xstyle:Gh.control,children:o})]}),l]})}function qG({search:e}){const{t}=rn();return x.jsx(Fa,{label:t("settings.search"),isLabelHidden:!0,placeholder:t("settings.search"),size:"sm",width:"100%",hasClear:!0,startIcon:ZP,role:"combobox","aria-autocomplete":"list","aria-controls":"settings-search-results","aria-expanded":e.isActive&&e.results.length>0,"aria-activedescendant":e.activeResultId,value:e.query,onChange:e.setQuery,onKeyDown:e.onKeyDown})}function PG({results:e,activeIndex:t,onActiveIndexChange:r,onSelect:s}){const{t:o}=rn();return e.length===0?x.jsxs(We,{id:"settings-search-results",gap:.5,padding:2,children:[x.jsx(Je,{type:"label",children:o("settings.noResults")}),x.jsx(Je,{type:"supporting",color:"secondary",children:o("settings.trySearch")})]}):x.jsx(We,{as:"ul",gap:0,id:"settings-search-results",role:"listbox","aria-label":"Search results",isScrollable:!0,children:e.map((l,u)=>x.jsx(Sc,{id:`settings-search-result-${u}`,role:"option","aria-selected":u===t,label:o(l.titleKey),description:`${o(e6(l.panel).labelKey)} · ${o(l.descriptionKey)}`,startContent:x.jsx(ft,{icon:l.icon,size:"sm",color:"secondary"}),endContent:x.jsx(ft,{icon:kP,size:"sm",color:"secondary"}),isSelected:u===t,onMouseEnter:()=>r(u),onClick:()=>s(l)},l.id))})}const g$={sideNav:{kmuXW:"x2lah0s",$$css:!0},sideNavSection:{k8WAf4:"xce4md1",$$css:!0}};function BG({search:e,activePanel:t,onSelectPanel:r}){const{t:s}=rn();return x.jsx(hp,{"aria-label":s("settings.search"),xstyle:g$.sideNav,topContent:x.jsx(qG,{search:e}),children:e.isActive?x.jsx(PG,{results:e.results,activeIndex:e.activeIndex,onActiveIndexChange:e.setActiveIndex,onSelect:o=>r(o.panel)}):J4.map(o=>x.jsx(xp,{title:s(o.labelKey),xstyle:g$.sideNavSection,children:o.panels.map(l=>x.jsx(cx,{label:s(l.labelKey),icon:x.jsx(ft,{icon:l.icon,size:"sm",color:"primary"}),size:"sm",isSelected:l.id===t,onClick:()=>r(l.id)},l.id))},o.labelKey))})}const HG=[{value:"light",labelKey:"settings.light",scheme:"light",icon:fB},{value:"dark",labelKey:"settings.dark",scheme:"dark",icon:JP},{value:"system",labelKey:"settings.system",scheme:"system",icon:RP}];function FG({value:e,onChange:t}){const{t:r}=rn();return x.jsx(t6,{role:"radiogroup","aria-label":"Color theme",columns:{minWidth:96,max:3},gap:2,maxWidth:480,children:HG.map(s=>{const o=s.value===e,l=r(s.labelKey);return x.jsx(n6,{label:l,isSelected:o,padding:2,onChange:()=>{o||t(s.value)},children:x.jsxs(We,{gap:1.5,children:[x.jsx(UG,{scheme:s.scheme}),x.jsxs(Rt,{gap:1,align:"center",justify:"center",children:[x.jsx(ft,{icon:s.icon,size:"sm",color:"secondary"}),x.jsx(Je,{type:"supporting",weight:o?"semibold":void 0,children:l})]})]})},s.value)})})}const To={bar:{kZKoxP:"xqu0tyb",kzqmXN:"x3hqpx7",kaIpWk:"x1e6avla",kWkggS:"x7njt3n",$$css:!0},barWide:{kzqmXN:"x1vz4e29",$$css:!0},mutedSurface:{kWkggS:"xwmxj5m",$$css:!0},contentSurface:{kWkggS:"x10xzikg",$$css:!0},clip:{kVQacm:"xb3r6kr",kaIpWk:"xh6dtrn",$$css:!0},inert:{kfzvcC:"x47corl",$$css:!0}};function Jy({mode:e}){return x.jsx(v0,{theme:wV,mode:e,children:x.jsxs(We,{padding:2,gap:1.5,height:"100%",xstyle:To.mutedSurface,children:[x.jsxs(We,{gap:1,align:"center",children:[x.jsx(We,{xstyle:[To.bar,To.barWide]}),x.jsx(We,{xstyle:To.bar})]}),x.jsx(lc,{size:"fill",children:x.jsx(We,{padding:2,gap:1,justify:"center",height:"100%",xstyle:To.contentSurface,children:[0,1,2].map(t=>x.jsx(We,{xstyle:To.bar},t))})})]})})}function UG({scheme:e}){return x.jsx(r6,{ratio:3/2,xstyle:To.inert,children:x.jsx(We,{"aria-hidden":"true",height:"100%",xstyle:To.clip,children:e==="system"?x.jsxs(Rt,{gap:0,height:"100%",children:[x.jsx(lc,{size:"fill",children:x.jsx(Jy,{mode:"light"})}),x.jsx(lc,{size:"fill",children:x.jsx(Jy,{mode:"dark"})})]}):x.jsx(Jy,{mode:e})})})}function VG({settings:e,update:t}){const{t:r}=rn();return x.jsx(We,{gap:5,children:x.jsx(Sx,{children:x.jsx(Va,{title:r("settings.colorTheme"),icon:E0,description:r("settings.colorThemeDescription"),detail:x.jsx(FG,{value:e.theme,onChange:s=>t("theme",s)})})})})}function GG({settings:e,update:t}){const{t:r}=rn();return x.jsxs(Sx,{children:[x.jsx(Va,{title:r("settings.language"),icon:GP,description:r("settings.languageDescription"),control:x.jsx(Ql,{label:r("settings.language"),isLabelHidden:!0,size:"sm",width:Fu,value:e.language,onChange:s=>t("language",s),options:[{value:"system",label:r("settings.system")},{value:"en-US",label:"English"},{value:"zh-CN",label:"简体中文"},{value:"zh-TW",label:"繁體中文(台灣)"},{value:"ja-JP",label:"日本語"}]})}),x.jsx(Va,{title:r("settings.timeFormat"),icon:uj,description:r("settings.timeFormatDescription"),control:x.jsx(Ql,{label:r("settings.timeFormat"),isLabelHidden:!0,size:"sm",width:Fu,value:e.timeFormat,onChange:s=>t("timeFormat",s),options:[{value:"YYYY-MM-DD HH:mm:ss",label:"YYYY-MM-DD HH:mm:ss"},{value:"YYYY-MM-DD",label:"YYYY-MM-DD"},{value:"YYYY/MM/DD HH:mm:ss",label:"YYYY/MM/DD HH:mm:ss"},{value:"DD/MM/YYYY HH:mm:ss",label:"DD/MM/YYYY HH:mm:ss"},{value:"MM/DD/YYYY hh:mm:ss A",label:"MM/DD/YYYY hh:mm:ss A"},{value:"HH:mm:ss",label:"HH:mm:ss"}]})}),x.jsx(Va,{title:r("settings.timezone"),icon:S0,description:r("settings.timezoneDescription"),control:x.jsx(Ql,{label:r("settings.timezone"),isLabelHidden:!0,size:"sm",width:Fu,value:e.timezone,onChange:s=>t("timezone",s),options:[{value:"America/Los_Angeles",label:r("settings.losAngeles")},{value:"America/New_York",label:r("settings.newYork")},{value:"Asia/Shanghai",label:r("settings.shanghai")},{value:"Asia/Taipei",label:r("settings.taipei")},{value:"Asia/Tokyo",label:r("settings.tokyo")},{value:"UTC",label:r("settings.utc")}]})})]})}function KG({value:e,label:t,placeholder:r,onChange:s}){const[o,l]=g.useState(e);g.useEffect(()=>{l(e)},[e]);const u=()=>{o!==e&&s(o.trim())};return x.jsx(Fa,{label:t,isLabelHidden:!0,size:"sm",type:"password",value:o,onChange:l,onBlur:u,onEnter:u,placeholder:r,hasClear:!0,width:Fu})}function WG({settings:e,update:t}){const{t:r}=rn(),s=e.library,o=s.captures,l=o.fetcher?o[o.fetcher].apiKey:"",u=d=>{t("library",{...s,captures:{...o,...d,firecrawl:{...o.firecrawl,...d.firecrawl},deepseek:{...o.deepseek,...d.deepseek}}})},f=d=>{o.fetcher&&u({[o.fetcher]:{apiKey:d}})};return x.jsxs(Sx,{title:r("settings.captures"),children:[x.jsx(Va,{title:r("settings.capturesFetcher"),icon:cj,description:r("settings.capturesFetcherDescription"),control:x.jsx(Ql,{label:r("settings.capturesFetcher"),isLabelHidden:!0,size:"sm",width:Fu,value:o.fetcher??"none",onChange:d=>{u({fetcher:d==="none"?null:d})},options:[{value:"none",label:r("settings.capturesNotConfigured")},{value:"firecrawl",label:"Firecrawl"},{value:"deepseek",label:"DeepSeek Fetch"}]})},"fetcher"),o.fetcher&&x.jsx(Va,{title:r("settings.capturesApiKey"),icon:UP,description:r("settings.capturesApiKeyDescription"),control:x.jsx(KG,{value:l,label:r("settings.capturesApiKey"),placeholder:r("settings.capturesApiKeyPlaceholder"),onChange:f},o.fetcher)},`api-key-${o.fetcher}`),x.jsx(Va,{title:r("settings.capturesMaxAttempts"),icon:ij,description:r("settings.capturesMaxAttemptsDescription"),control:x.jsx(tb,{label:r("settings.capturesMaxAttempts"),isLabelHidden:!0,size:"sm",value:o.maxAttempts,onChange:d=>{u({maxAttempts:d})},min:1,max:10,step:1,isIntegerOnly:!0,width:120})},"max-attempts"),x.jsx(Va,{title:r("settings.capturesConcurrency"),icon:lj,description:r("settings.capturesConcurrencyDescription"),control:x.jsx(tb,{label:r("settings.capturesConcurrency"),isLabelHidden:!0,size:"sm",value:o.scrapeConcurrency,onChange:d=>{u({scrapeConcurrency:d})},min:1,max:5,step:1,isIntegerOnly:!0,width:120})},"scrape-concurrency")]})}function YG(e){return x.jsx(We,{gap:4,children:x.jsx(WG,{...e})})}function XG({configFolderPath:e,onOpenConfigFolder:t}){const{t:r}=rn(),s=Io(),[o,l]=g.useState(!1),[u,f]=g.useState(!1),[d,p]=g.useState(null),y=ys({queryKey:Ep.status(),queryFn:sG}),m=y.data?.activeJobCount??0,k=y.isLoading||y.data?.isBusy===!0||m>0,v=r("settings.finishJobsBeforeTransfer"),w=m>0?v:r("settings.exportDataDescription"),S=m>0?v:r("settings.importDataDescription"),E=async()=>{f(!0);try{const R=await iG();R.status==="selected"&&p({file:R.file,fileName:R.fileName})}catch{s({body:r("dataTransfer.ioError"),type:"error",uniqueID:"data-transfer-select-file-error"})}finally{f(!1)}};return x.jsxs(x.Fragment,{children:[x.jsxs(Sx,{children:[x.jsx(Va,{title:r("settings.configFolder"),icon:w0,description:e,control:x.jsx(jt,{label:r("settings.openConfigFolder"),icon:x.jsx(_P,{}),variant:"ghost",size:"sm",onClick:t})}),x.jsx(Va,{title:r("settings.exportData"),icon:G1,description:w,control:x.jsx(jt,{label:r("settings.exportDataAction"),icon:x.jsx(G1,{}),variant:"ghost",size:"sm",isDisabled:k,onClick:()=>l(!0)})}),x.jsx(Va,{title:r("settings.importData"),icon:V1,description:S,control:x.jsx(jt,{label:r("settings.importDataAction"),icon:x.jsx(V1,{}),variant:"ghost",size:"sm",isDisabled:k||u,isLoading:u,onClick:()=>{E()}})})]}),o&&x.jsx(vG,{onClose:()=>l(!1)}),d&&x.jsx(wG,{file:d.file,fileName:d.fileName,onClose:()=>p(null)},`${d.fileName}:${d.file.lastModified}`)]})}const ZG={contentTopAligned:{kZCmMZ:"x1rey3nv",kwRFfy:"xnjyzlh",kGO01o:"x1awphl8",kLKAdn:"xexx8yu",$$css:!0}};function QG({panel:e,settings:t,update:r,configFolderPath:s=""}){const o=(()=>{switch(e){case"appearance":return x.jsx(VG,{settings:t,update:r});case"language":return x.jsx(GG,{settings:t,update:r});case"library":return x.jsx(YG,{settings:t,update:r});case"advanced":return x.jsx(XG,{configFolderPath:s,onOpenConfigFolder:()=>{JH()}})}})();return x.jsx(Di,{isScrollable:!0,padding:0,xstyle:ZG.contentTopAligned,children:x.jsx(We,{gap:4,xstyle:Gh.panel,children:o})})}function JG(){const[e]=Lz(),[t,r]=g.useState(e.get("panel")==="library"?"library":cV),{settings:s,configFolderPath:o,update:l}=IG(),u=SG(r),f=d=>{r(d),u.setQuery("")};return x.jsx(Li,{height:"fill",start:x.jsx(BG,{search:u,activePanel:t,onSelectPanel:f}),content:x.jsx(QG,{panel:t,settings:s,update:l,configFolderPath:o})})}const eK={x1iwu4tg:"x1iwu4tg",$$css:!0},tK={sm:{kzqmXN:"x1td3qas",kZKoxP:"x1qx5ct2",$$css:!0},md:{kzqmXN:"x100vrsf",kZKoxP:"xxk0z11",$$css:!0}},nK={sm:{kzqmXN:"x1td3qas",kZKoxP:"x1qx5ct2",$$css:!0},md:{kzqmXN:"x100vrsf",kZKoxP:"xxk0z11",$$css:!0}},rK={sm:{kzqmXN:"x1td3qas",kZKoxP:"x1qx5ct2",kmVPX3:"x1i3ajwb",$$css:!0},md:{kzqmXN:"x100vrsf",kZKoxP:"xxk0z11",kmVPX3:"xfawy5m",$$css:!0}},aK={sm:{kzqmXN:"x6jxa94",kZKoxP:"x1v9usgg",k3aq6I:"xbryuvx",$$css:!0},md:{kzqmXN:"x1kky2od",kZKoxP:"xlup9mm",k3aq6I:"xbryuvx",$$css:!0}},sK={sm:{kzqmXN:"x1kky2od",kZKoxP:"xlup9mm",k3aq6I:"xv5t66b xi9aj42",$$css:!0},md:{kzqmXN:"xw4jnvo",kZKoxP:"x1qx5ct2",k3aq6I:"x15481yp x12xz5k6",$$css:!0}},oK={sm:{kAzted:"xisnujt",$$css:!0},md:{kAzted:"xjwf9q1",$$css:!0}},On={container:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"x1txdalj",$$css:!0},containerLabelHidden:{kOIVth:"xxhr3t",$$css:!0},containerSpread:{kjj79g:"x1qughib",kzqmXN:"xh8yej3",$$css:!0},statusGap:{keoZOQ:"xtbrsbv",$$css:!0},switchWrapper:{kVAEAm:"x1n2onr6",k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kmuXW:"x2lah0s",kHBbk8:"xc8icb0",$$css:!0},input:{kVAEAm:"x10l6tqk",k87sOh:"xwa60dl",kogj98:"x1ghz6dp",kmVPX3:"x1717udv",kSiTet:"xg01cxk",kkrTdU:"x1ypdohk x16khyan",kY2c9j:"x1vjfegm",$$css:!0},inputCoarse:{kjFi6P:"xkagaj0",kHzOjL:"x80b3aj",$$css:!0},inputDisabled:{kkrTdU:"xt0e3qv",$$css:!0},inputBusy:{kfzvcC:"x47corl",$$css:!0},track:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kaIpWk:"xjspbzw",k1ekBW:"x15406qy",kIyJzY:"xuedmi6 x12w9bfk",kAMwcw:"xlr8y92",kB7OPa:"x9f619",kMzoRj:"xc342km x13rsnn2",ksu8eU:"xng3xce xx61lck",kVAM5u:"x1w1tqly",kKwaWg:"x1xm682w xowtp19 xphwcek x1p4304o",$$css:!0},trackFocus:{kI3sdo:"x1a2a7pz xafswnp",kInvED:"xwz5zln",$$css:!0},trackOff:{kWkggS:"xspzpui x1a8ae7b x9yvj25",$$css:!0},trackOn:{kWkggS:"x1ewilqj xcgwt1n x1jzqe4",$$css:!0},trackDisabled:{kSiTet:"xbyyjgo",kVAM5u:"xmnqt3w",$$css:!0},trackDisabledOff:{kWkggS:"xspzpui",$$css:!0},thumb:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kaIpWk:"xjspbzw",k1ekBW:"xh3q6i0",kIyJzY:"xuedmi6 x12w9bfk",kAMwcw:"xlr8y92",kKwaWg:"x1xm682w xowtp19 xphwcek x1p4304o",$$css:!0},thumbOff:{kWkggS:"x10xzikg xwvh9j7",$$css:!0},thumbOn:{kWkggS:"x10xzikg x1sir5s4",$$css:!0},labelWrapper:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kjj79g:"xl56j7k",$$css:!0}},iK={width:e=>[{kzqmXN:e!=null?"x5lhr3w":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function m6({label:e,isLabelHidden:t=!1,description:r,onChange:s,changeAction:o,isLoading:l=!1,value:u,isDisabled:f=!1,htmlName:d,disabledMessage:p,isOptional:y=!1,isRequired:m=!1,onFocus:k,onBlur:v,labelIcon:w,labelTooltip:S,labelPosition:E="end",labelSpacing:R="hug",status:C,size:T="md",width:A,xstyle:N,className:L,style:D,ref:j,...O}){const M=Nt(),H=g.useId(),F=ja(),q=g.useId(),B=g.useId(),U=Cd({isRequired:m,isOptional:y}),[,_]=g.useTransition(),[P,G]=g.useOptimistic(u),X=l||P!==u,Z=vc();g.useEffect(()=>{X&&Z(M("@astryx.switch.loading"))},[Z,X,M]);const Q=P===!0,K=f&&!!p,ae=Wa({placement:"above",focusTrigger:"always",isEnabled:K}),I=[];r&&I.push(q),C?.message&&I.push(B),K&&I.push(ae.describedBy);const ee=I.length>0?I.join(" "):void 0,pe=x.jsxs("div",{...de(On.switchWrapper,tK[T]),children:[x.jsx("input",{ref:xn(j,ae.positionRef),id:H,type:"checkbox",role:"switch",name:f?void 0:d,checked:Q,disabled:f&&!K,"aria-disabled":K?"true":void 0,form:K?"":void 0,required:m,"aria-required":U?"true":void 0,onChange:ve=>{if(f||X)return;const xe=ve.target.checked;s?.(xe,ve),o&&!ve.defaultPrevented&&_(async()=>{G(xe),await o(xe,ve)})},onFocus:k,onBlur:v,"aria-describedby":ee,"aria-invalid":C?.type==="error"?!0:void 0,"aria-busy":X||void 0,...de(On.input,Ka.centerInline("-50%"),On.inputCoarse,nK[T],f&&On.inputDisabled,X&&On.inputBusy)}),x.jsx("div",{"aria-hidden":"true",...ye(fe("switch",{checked:Q?"checked":null,disabled:f?"disabled":null,size:T}),de(On.track,rK[T],Q?On.trackOn:On.trackOff,!f&&On.trackFocus,f&&On.trackDisabled,f&&!Q&&On.trackDisabledOff)),children:x.jsx("div",{...ye(fe("switch-thumb",{checked:Q?"checked":null,size:T}),de(On.thumb,Q?sK[T]:aK[T],Q?On.thumbOn:On.thumbOff)),children:X&&x.jsx(Do,{size:"sm"})})})]}),ue=x.jsx("div",{...de(On.labelWrapper,oK[T]),children:x.jsx(gx,{...fe("switch-label"),label:e,inputID:H,isLabelHidden:t,isDisabled:f,isOptional:y,isRequired:m,labelIcon:w,labelTooltip:S,description:r,descriptionID:q})});return x.jsxs("div",{...ye(fe("switch-field",{labelPosition:E!=="end"?E:void 0,labelSpacing:R!=="hug"?R:void 0}),de(A!=null&&iK.width(A),N),L,D),...O,children:[x.jsxs("div",{ref:ve=>{ae.interactionRef(ve)},...f?void 0:F,...de(On.container,t&&On.containerLabelHidden,R==="spread"&&On.containerSpread,!f&&eK,!f&&or.pressedAlpha),children:[" ",E==="start"?x.jsxs(x.Fragment,{children:[ue,pe]}):x.jsxs(x.Fragment,{children:[pe,ue]})]}),C?.message&&x.jsx(mx,{type:C.type,message:C.message,id:B,variant:"detached",xstyle:On.statusGap}),K&&ae.renderTooltip(p)]})}m6.displayName="Switch";function y6({ref:e,href:t,isDisabled:r,LinkComponent:s,linkStyleProps:o,labelContent:l,icon:u,endContent:f,removeButton:d,onClick:p,onMouseUp:y,...m}){const k=g.useRef(null),v=g.useRef(null),{onClick:w,onMouseUp:S}=hx({containerRef:k,interactiveRef:v,href:t,disabled:r});return x.jsxs("span",{ref:xn(e,k),...m,onClick:r?p:Ir(p,w),onMouseUp:r?y:Ir(y,S),children:[u,x.jsx(s,{ref:v,href:t,"aria-disabled":r||void 0,...o,children:l}),f,d]})}y6.displayName="TokenLink";const ya={base:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kOIVth:"xzye2dw",k8WAf4:"xt970qd",kMzoRj:"xc342km",ksu8eU:"xng3xce",kaIpWk:"xx3sua9",kMv6JI:"xjb2p0i",kGuDYH:"x141an7d",kLWn49:"x1ltkj2j",k63SB2:"x1e4wzip",khDVqt:"xuxw1ft",kybGjl:"x1hl2dhg",ks0D6T:"x193iq5w",kVQacm:"xb3r6kr",$$css:!0},interactive:{kkrTdU:"x1ypdohk x16khyan",k1ekBW:"x12qzo2w",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",$$css:!0},disabled:{kkrTdU:"xt0e3qv",kSiTet:"xbyyjgo",kfzvcC:"x47corl",$$css:!0},removeButton:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kVAEAm:"x1n2onr6",kmVPX3:"x1717udv",k71WvV:"xkd40ry",kkrTdU:"x1ypdohk x16khyan",kaIpWk:"xjspbzw",kzqmXN:"x1kky2od",kZKoxP:"xlup9mm",kMwMTN:"x1heor9g",k5JduY:"x1s928wv",kwXMNM:"x1j6awrg",kv0HGH:"x1xsm0q9",$$css:!0}},bh={sm:{kZKoxP:"xzydfjl",kGuDYH:"x141an7d",kg3NbH:"xf314gf",$$css:!0},md:{kZKoxP:"xrmxcn7",kg3NbH:"xf314gf",$$css:!0},lg:{kZKoxP:"x102lyln",kg3NbH:"xf314gf",$$css:!0}},kh={default:{kWkggS:"x17x4s8c",kMwMTN:"x1tgivj0",$$css:!0},red:{kWkggS:"x1cibrc5",kMwMTN:"x1joocv1",$$css:!0},orange:{kWkggS:"x1e9xt6e",kMwMTN:"xm47u9q",$$css:!0},yellow:{kWkggS:"x1bo7t0x",kMwMTN:"xdhq94a",$$css:!0},green:{kWkggS:"x1sqjeoo",kMwMTN:"xltfdvo",$$css:!0},teal:{kWkggS:"x1jtji5o",kMwMTN:"x9x0lbs",$$css:!0},cyan:{kWkggS:"x1rgj867",kMwMTN:"x1txnczv",$$css:!0},blue:{kWkggS:"x1o0wnni",kMwMTN:"x1vvqiwl",$$css:!0},purple:{kWkggS:"x16i6n6f",kMwMTN:"x1m9wyeb",$$css:!0},pink:{kWkggS:"xnpoty2",kMwMTN:"xiuofww",$$css:!0},gray:{kWkggS:"xspzpui",kMwMTN:"xru1t7f",$$css:!0}};function K0({label:e,size:t="md",color:r="default",icon:s,isDisabled:o=!1,onRemove:l,onClick:u,href:f,description:d,endContent:p,isLabelHidden:y=!1,xstyle:m,className:k,style:v,"data-testid":w,ref:S,...E}){const R=ja(),C=Nt(),T=Oi(),A=tj({href:f,onClick:u,isDisabled:o}),N=u??(A==="button"?()=>{}:null),L=l!=null&&x.jsx("button",{type:"button","aria-label":C("@astryx.token.remove",{label:e}),onClick:O=>{O.stopPropagation(),l(O)},disabled:o,...pn.focusVisible(ya.removeButton),children:x.jsx(ft,{icon:"close",size:"xsm",color:"inherit"})}),D=x.jsxs(x.Fragment,{children:[s,x.jsx("span",{...{0:{className:"xb3r6kr xlyipyv xuxw1ft xeuugli"},1:{className:"xlyipyv xeuugli x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr x1hyvwdk xuxw1ft xc342km"}}[!!y<<0],children:e}),p,L]}),j={"data-testid":w,...y?{"aria-label":e}:{},...d!=null?{"aria-description":d}:{}};if(A==="link")return l==null?x.jsx(T,{ref:S,href:f,...R,...ye(fe("token",{color:r,size:t}),pn.focusVisible(ya.base,bh[t],kh[r],ya.interactive,or.backgroundImage,o&&ya.disabled,m),k,v),...E,...o?{"aria-disabled":!0}:{},...j,children:D}):x.jsx(y6,{ref:S,href:f,isDisabled:o,LinkComponent:T,icon:s,endContent:p,removeButton:L,linkStyleProps:{className:"xmper1u x16khyan x1heor9g x1a2a7pz xb3r6kr xeuugli"},...R,labelContent:x.jsx("span",{...{0:{className:"xb3r6kr xlyipyv xuxw1ft xeuugli"},1:{className:"xlyipyv xeuugli x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr x1hyvwdk xuxw1ft xc342km"}}[!!y<<0],children:e}),...ye(fe("token",{color:r,size:t}),pn.focusWithin(ya.base,bh[t],kh[r],ya.interactive,or.backgroundImage,o&&ya.disabled,m),k,v),...E,...j});if(N!=null){const O=M=>{M.target.closest("button, a")||N(M)};return x.jsxs("span",{ref:S,onClick:o?void 0:O,...R,...ye(fe("token",{color:r,size:t}),pn.focusWithin(ya.base,bh[t],kh[r],ya.interactive,or.backgroundImage,o&&ya.disabled,m),k,v),...E,...j,children:[s,x.jsx("button",{type:"button",onClick:N,disabled:o,className:"xmper1u x16khyan x1heor9g x1a2a7pz xb3r6kr xeuugli",children:x.jsx("span",{...{0:{className:"xb3r6kr xlyipyv xuxw1ft xeuugli"},1:{className:"xlyipyv xeuugli x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr x1hyvwdk xuxw1ft xc342km"}}[!!y<<0],children:e})}),p,L]})}return x.jsx("span",{ref:S,...ye(fe("token",{color:r,size:t}),de(ya.base,bh[t],kh[r],o&&ya.disabled,m),k,v),...E,...j,children:D})}K0.displayName="Token";const lK=new Set(["auto","contain","fit-content","inherit","initial","max-content","min-content","revert","revert-layer","stretch","unset"]);function b6(e){const t=e.trim().toLowerCase();return lK.has(t)||t.startsWith("fit-content(")}function k6(e,t){return`min(${typeof e=="number"?`${e}px`:e.trim()}, ${t})`}const m$='button, [role="button"]';function y$(e){return e.matches(m$)?e:e.querySelector(m$)}const vh={surfaceViewportFit:{kB7OPa:"x9f619",ks0D6T:"x1p5vr2b",kskxy:"xv8yize",$$css:!0},surfaceScrollable:{kVQacm:"xysyzu8",kZeWKH:"xish69e",$$css:!0},customWidth:e=>[{kzqmXN:e!=null?"x5lhr3w":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],matchTrigger:{k7Eaqz:"xviorkc",$$css:!0}};function Ex({children:e,anchorRef:t,content:r,placement:s="below",alignment:o="start",isOpen:l,onOpenChange:u,isEnabled:f=!0,width:d,padding:p=3,label:y,role:m="dialog",isModal:k,hasCloseButton:v,closeButtonLabel:w,hasAutoFocus:S,hasLightDismiss:E=!0,hasEscapeDismiss:R=!0,xstyle:C,className:T,style:A,"data-testid":N}){const L=g.useRef(null),D=g.useRef(null),[j,O]=g.useState(!1),M=l!==void 0,H=g.useCallback(()=>{u?.(!0)},[u]),F=g.useCallback(()=>{u?.(!1)},[u]),q=b0({dialogLabel:y,role:m,isModal:k,hasLightDismiss:E,hasEscapeDismiss:R,hasCloseButton:v,closeButtonLabel:w,hasAutoFocus:S,surfaceTarget:"popover",padding:p,xstyle:[vh.surfaceViewportFit,j&&vh.surfaceScrollable,C],className:T,style:A,onShow:H,onHide:F}),B=g.useCallback(()=>{const K=q.contentRef.current;if(!K)return;const ae=K.scrollHeight>K.clientHeight+1||K.scrollWidth>K.clientWidth+1;O(I=>I===ae?I:ae)},[q.contentRef]),U=g.useCallback(()=>{D.current==null&&(D.current=window.requestAnimationFrame(()=>{D.current=null,B()}))},[B]);qn(()=>{if(!q.isOpen)return;const K=q.contentRef.current;if(!K)return;B();const ae=typeof ResizeObserver>"u"?null:new ResizeObserver(U),I=typeof MutationObserver>"u"?null:new MutationObserver(U);return ae?.observe(K),I?.observe(K,{childList:!0,characterData:!0,subtree:!0}),K.addEventListener("load",U,!0),window.addEventListener("resize",U),window.visualViewport?.addEventListener("resize",U),()=>{ae?.disconnect(),I?.disconnect(),K.removeEventListener("load",U,!0),window.removeEventListener("resize",U),window.visualViewport?.removeEventListener("resize",U),D.current!=null&&(window.cancelAnimationFrame(D.current),D.current=null)}},[B,q.isOpen,U]),qn(()=>{q.isOpen&&U()},[r,q.isOpen,U]);const _=g.useCallback(()=>{f&&q.toggle()},[f,q]),P=g.useCallback(K=>{(K.key==="Enter"||K.key===" ")&&(K.preventDefault(),_())},[_]),G=g.useCallback(K=>{K.setAttribute("aria-haspopup",q.triggerProps["aria-haspopup"]),K.setAttribute("aria-expanded",String(q.triggerProps["aria-expanded"])),K.setAttribute("aria-controls",q.triggerProps["aria-controls"]),K.addEventListener("click",_);const ae=K.tagName!=="BUTTON"&&K.getAttribute("role")==="button";return ae&&K.addEventListener("keydown",P),()=>{K.removeAttribute("aria-haspopup"),K.removeAttribute("aria-expanded"),K.removeAttribute("aria-controls"),K.removeEventListener("click",_),ae&&K.removeEventListener("keydown",P)}},[q,_,P]);qn(()=>{if(!t)return;const K=t.current;if(!K)return;const ae=y$(K);if(ae||Ea(),!ae)return;q.triggerRef(K);const I=G(ae);return()=>{q.triggerRef(null),I()}},[t,q,G]),qn(()=>{if(t||typeof e=="function")return;const K=L.current;if(!K)return;q.triggerRef(K);const ae=y$(K);if(ae||Ea(),!ae)return;const I=G(ae);return()=>{q.triggerRef(null),I()}},[t,q,G]),qn(()=>{M&&(l&&!q.isOpen?q.show():!l&&q.isOpen&&q.hide())},[l,M,q]);const Z=[d?vh.customWidth(typeof d=="string"&&b6(d)?d.trim():k6(d,oc.maxInlineSizeFallback)):vh.matchTrigger,yd[s]];if(t&&e==null)return x.jsx(x.Fragment,{children:q.render(x.jsx("div",{"data-testid":N,children:r}),{placement:s,alignment:o,offset:Wn["--spacing-1"],xstyle:Z})});if(typeof e=="function"){const K={ref:q.triggerRef,onClick:_,"aria-haspopup":"dialog","aria-expanded":q.isOpen,"aria-controls":q.id};return x.jsxs(x.Fragment,{children:[e(K),q.render(x.jsx("div",{"data-testid":N,children:r}),{placement:s,alignment:o,offset:Wn["--spacing-1"],xstyle:Z})]})}return x.jsxs(x.Fragment,{children:[x.jsx(k0,{value:"button",children:x.jsx("div",{ref:L,className:"x3nfvp2",children:e})}),q.render(x.jsx("div",{"data-testid":N,children:r}),{placement:s,alignment:o,offset:Wn["--spacing-1"],xstyle:Z})]})}Ex.displayName="Popover";const b$={container:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",k9WMMc:"x2b8uid",kOIVth:"x18g69wz",k8WAf4:"xmfvnks",kg3NbH:"xm7rs69",$$css:!0},containerCompact:{kOIVth:"x1txdalj",k8WAf4:"x1na6nto",kg3NbH:"x1pzlopt",$$css:!0}};function fc({title:e,description:t,icon:r,actions:s,headingLevel:o=3,isCompact:l=!1,xstyle:u,className:f,style:d,ref:p,...y}){const m=`h${o}`;return x.jsxs("div",{ref:p,...y,role:"status",...ye(fe("empty-state",{variant:l?"compact":null}),de(b$.container,l&&b$.containerCompact,u),f,d),children:[r!=null&&x.jsx("div",{"aria-hidden":"true",children:r}),x.jsxs("div",{className:"x78zum5 xdt5ytf x6s0dn4 xxc7z9f",children:[g.createElement(m,ye(fe("empty-state-title",{variant:l?"compact":null}),{0:{className:"x1ghz6dp xjb2p0i x18juvz8 x2mo6ok xf74fhv x1tgivj0"},1:{className:"x1ghz6dp xjb2p0i x2mo6ok xf74fhv x1tgivj0 xcr08ib"}}[!!l<<0]),e),t!=null&&x.jsx("div",{...ye(fe("empty-state-description",{variant:l?"compact":null}),{0:{className:"x1ghz6dp xjb2p0i xjm74w1 x1sodnla xw6l6zx xv1l7n4"},1:{className:"x1ghz6dp xjb2p0i x1sodnla xw6l6zx xv1l7n4 x141an7d"}}[!!l<<0]),children:t})]}),s!=null&&x.jsx("div",{...{0:{className:"x78zum5 x1q0g3np x6s0dn4 x1txdalj xcsaf9d"},1:{className:"x78zum5 x6s0dn4 x1txdalj xcsaf9d xdt5ytf"}}[!!l<<0],children:s})]})}fc.displayName="EmptyState";const Uu={illustration:{k8WAf4:"xu0wf1k",$$css:!0},satelliteNode:{kzqmXN:"xhgvbfk",kZKoxP:"x1k15mir",kaIpWk:"xjspbzw",kWkggS:"x1de1mus",kGVxlE:"x9iqb8x",$$css:!0},coreNode:{kzqmXN:"x1i8e1tz",kZKoxP:"x17u3quo",kaIpWk:"xjspbzw",kWkggS:"xgcxg3y",kGVxlE:"x9iqb8x",$$css:!0},connector:{kzqmXN:"xgc8j7m",kZKoxP:"xsyqizj",kWkggS:"x7njt3n",$$css:!0}};function v6({startIcon:e,centerIcon:t,endIcon:r,title:s,description:o,actions:l}){return x.jsx(Rt,{width:"100%",hAlign:"center",children:x.jsx(Ks,{width:"100%",padding:0,children:x.jsx(fc,{headingLevel:2,icon:x.jsxs(Rt,{gap:2,vAlign:"center",xstyle:Uu.illustration,children:[x.jsx(e1,{icon:e,isCore:!1}),x.jsx(We,{xstyle:Uu.connector}),x.jsx(e1,{icon:t,isCore:!0}),x.jsx(We,{xstyle:Uu.connector}),x.jsx(e1,{icon:r,isCore:!1})]}),title:s,description:o,actions:l})})})}function e1({icon:e,isCore:t}){return x.jsx(Rt,{hAlign:"center",vAlign:"center",xstyle:t?Uu.coreNode:Uu.satelliteNode,children:x.jsx(ft,{icon:e,size:t?"lg":"sm",color:t?"accent":"secondary"})})}const Ps={providerList:{kOIVth:"x1txdalj",$$css:!0},providerItem:{kMzoRj:"x1litavf",ksu8eU:"x1y0btm7",kVAM5u:"xvy26l8",kaIpWk:"x1hviunn",kWkggS:"x10xzikg",$$css:!0},providerDescription:{k7Eaqz:"xeuugli",kVQacm:"xb3r6kr",$$css:!0},providerProtocol:{k7Eaqz:"xeuugli",kmuXW:"xs83m0k",$$css:!0},providerBaseURLGroup:{k7Eaqz:"xeuugli",kUk6DE:"x12lumcd",kmuXW:"xs83m0k",$$css:!0},providerCustomModelsGroup:{kmuXW:"x2lah0s",$$css:!0},providerBaseURL:{ks0D6T:"xogpvq2",$$css:!0},providerActions:{kmuXW:"x2lah0s",$$css:!0},providerPopover:{kGVxlE:"xjppotg",$$css:!0}},cK={"openai-responses":"OpenAI Responses","anthropic-messages":"Anthropic Messages","openai-compatible-chat-completions":"OpenAI-compatible Chat Completions"};function uK(){const{t:e}=rn(),t=qr(),[r,s]=g.useState(null),o=ys({queryKey:ms.list(),queryFn:zG}),l=Er({mutationFn:({id:y,status:m})=>x$(y,m),onSuccess:()=>{t.invalidateQueries({queryKey:ms.list()})}}),u=Er({mutationFn:y=>x$(y,"deleted"),onSuccess:()=>{s(null),t.invalidateQueries({queryKey:ms.list()})}}),f=o.data??[];function d(y,m){y.status==="deleted"||y.isInUse||l.mutate({id:y.id,status:m?"active":"disabled"})}function p(y){return y.isInUse?e("providers.inUse"):e(y.status==="active"?"providers.disable":"providers.enable")}return x.jsxs(x.Fragment,{children:[x.jsx(Ed,{children:x.jsx(jt,{label:e("providers.add"),size:"sm",variant:"primary",href:"/providers/new",as:qu})}),x.jsx(We,{gap:5,children:f.length===0?x.jsx(v6,{startIcon:$P,centerIcon:iB,endIcon:MP,title:e("providers.emptyTitle"),description:e("providers.empty"),actions:x.jsx(jt,{label:e("providers.addFirst"),size:"sm",variant:"primary",icon:x.jsx(hj,{}),href:"/providers/new",as:qu})}):x.jsx(dc,{density:"balanced",hasDividers:!1,xstyle:Ps.providerList,children:f.map(y=>x.jsx(Sc,{label:y.name,xstyle:Ps.providerItem,startContent:x.jsx(ft,{icon:$0,size:"lg",color:"secondary"}),description:x.jsxs(Rt,{gap:1,wrap:"nowrap",xstyle:Ps.providerDescription,children:[x.jsx(K0,{size:"sm",label:cK[y.protocol],xstyle:Ps.providerProtocol}),x.jsxs(Rt,{gap:1,vAlign:"center",xstyle:Ps.providerBaseURLGroup,children:[x.jsx(Je,{type:"supporting",children:"·"}),x.jsx(Je,{type:"supporting",maxLines:1,xstyle:Ps.providerBaseURL,children:y.baseURL})]}),x.jsxs(Rt,{gap:1,vAlign:"center",xstyle:Ps.providerCustomModelsGroup,children:[x.jsx(Je,{type:"supporting",children:"·"}),x.jsx(Je,{type:"supporting",maxLines:1,children:`${y.customModels.length} ${e("providers.customModels")}`})]})]}),endContent:x.jsxs(Rt,{gap:2,vAlign:"center",xstyle:Ps.providerActions,children:[x.jsx(_r,{label:`${e("providers.edit")} ${y.name}`,tooltip:e("providers.edit"),icon:x.jsx(nB,{}),variant:"ghost",size:"sm",href:`/providers/${y.id}`,as:qu}),x.jsx(Ex,{label:`${e("providers.deleteLabel")} ${y.name}`,xstyle:Ps.providerPopover,isOpen:r?.id===y.id,isEnabled:!y.isInUse,onOpenChange:m=>{s(m?y:null)},content:x.jsxs(We,{gap:3,children:[x.jsx(We,{gap:1,children:x.jsx(Je,{type:"label",children:e("providers.deleteQuestion")})}),x.jsxs(Rt,{gap:2,hAlign:"end",children:[x.jsx(jt,{label:e("providers.cancel"),variant:"ghost",size:"sm",onClick:()=>{s(null)}}),x.jsx(jt,{label:e("providers.delete"),variant:"destructive",size:"sm",isLoading:u.isPending&&r?.id===y.id,onClick:()=>{u.mutate(y.id)}})]})]}),children:x.jsx(_r,{label:`${e("providers.deleteLabel")} ${y.name}`,tooltip:e("providers.deleteLabel"),icon:x.jsx(pj,{}),variant:"ghost",size:"sm",isDisabled:y.isInUse})}),x.jsx(_i,{content:p(y),children:x.jsx(m6,{label:`${y.name} ${e("providers.enabled")}`,isLabelHidden:!0,value:y.status==="active",onChange:m=>{d(y,m)},isDisabled:y.isInUse,size:"sm"})})]})},y.id))})})]})}const k$={group:{k1xSpc:"x3nfvp2",kGNEyG:"x1qjc9v5",kWkggS:"xjbqb8w",$$css:!0},disabled:{kkrTdU:"xt0e3qv",kSiTet:"xbyyjgo",$$css:!0}},dK={sm:{kZKoxP:"x6k0iem",$$css:!0},md:{kZKoxP:"x1ueg155",$$css:!0},lg:{kZKoxP:"xssyfek",$$css:!0}};function w6({children:e,label:t,isLabelHidden:r=!1,description:s,isDisabled:o=!1,isOptional:l=!1,isRequired:u=!1,size:f,status:d,labelTooltip:p,xstyle:y,className:m,style:k,ref:v,"data-testid":w,...S}){const E=bc(f,"md"),R=g.useId(),C=g.useId(),T=g.useId(),A=g.useId(),N=[s?T:null,d?.message?A:null].filter(Boolean).join(" ")||void 0,L=g.useMemo(()=>({isInGroup:!0,labelID:C,describedByIDs:N}),[C,N]);return x.jsx(q0,{value:L,children:x.jsx(Bl,{value:E,children:x.jsx(wc,{label:t,isLabelHidden:r,description:s,inputID:R,labelID:C,descriptionID:s?T:void 0,isGroupLabel:!0,isOptional:l,isRequired:u,isDisabled:o,status:d?{type:d.type,message:d.message,messageID:d.message?A:void 0}:void 0,statusVariant:"detached",labelTooltip:p,children:x.jsx("div",{ref:v,"data-testid":w,...S,role:"group","aria-labelledby":C,"aria-describedby":N,...ye(fe("input-group",{size:E,status:d?.type??null}),de(k$.group,dK[E],o&&k$.disabled,y),m,k),children:e})})})})}w6.displayName="InputGroup";const fK={text:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kg3NbH:"xf314gf",kWkggS:"xwmxj5m",kMv6JI:"x9ynric",kGuDYH:"xjm74w1",kLWn49:"xw6l6zx",kMwMTN:"xv1l7n4",khDVqt:"xuxw1ft",kmuXW:"x2lah0s",kMzoRj:"x1litavf",ksu8eU:"x1y0btm7",kVAM5u:"xvy26l8",keTefX:"xd10s4z x1pwwqoy",krdFHd:"x15mokao x8eehn2",kVL7Gh:"xbiv7yw x1xrp5p4",kfmiAY:"x1ga7v0g x11xp8u1",kT0f0o:"x16uus16 x747jw7",$$css:!0}};function S6({ref:e,children:t,xstyle:r,className:s,style:o,...l}){return x.jsx("div",{ref:e,...l,...ye(fe("input-group-text"),de(fK.text,r),s,o),children:t})}S6.displayName="InputGroupText";const ui={formFieldRow:{kzqmXN:"xh8yej3",$$css:!0},formNameField:{kUk6DE:"x1oaxyc9",k7Eaqz:"xixw5x4",$$css:!0},formProtocolField:{kUk6DE:"xgdhuxi",k7Eaqz:"x184y65y",$$css:!0},formApiKeyField:{kzqmXN:"xh8yej3",$$css:!0},formModelInput:{k7Eaqz:"x184y65y",kUk6DE:"xgdhuxi",$$css:!0},formModelNameInput:{k7Eaqz:"xixw5x4",kUk6DE:"x1oaxyc9",$$css:!0},apiKeyVisibilityAddon:{kWkggS:"x10xzikg",$$css:!0}},hK=[{value:"openai-responses",label:"OpenAI Responses"},{value:"anthropic-messages",label:"Anthropic Messages"},{value:"openai-compatible-chat-completions",label:"OpenAI-compatible Chat Completions"}];function v$(){const{providerId:e}=Mb(),{t}=rn(),r=yc(),s=qr(),o=Io(),[l,u]=g.useState(""),[f,d]=g.useState("openai-responses"),[p,y]=g.useState(""),[m,k]=g.useState(""),[v,w]=g.useState(!1),[S,E]=g.useState(!1),R=g.useRef(null),[C,T]=g.useState([]),[A,N]=g.useState(""),[L,D]=g.useState(""),[j,O]=g.useState(!1),[M,H]=g.useState(!1);g.useEffect(()=>{e&&DG(e).then(K=>{K&&(u(K.name),d(K.protocol),y(K.baseURL),k(K.apiKey),T(K.customModels.map(ae=>({...ae,source:"custom"}))))})},[e]);const F=!!(p.trim()&&(f==="openai-compatible-chat-completions"||m.trim())),q=C.length>0&&!j&&!M&&!!(l.trim()&&p.trim()),B=g.useMemo(()=>C.filter(K=>K.source==="custom"),[C]),U=g.useCallback(async()=>{if(F){O(!0);try{const K=await OG({protocol:f,baseURL:p,apiKey:m});T(ae=>[...K.map(I=>({...I,source:"remote"})),...ae.filter(I=>I.source==="custom")])}catch{T(K=>K.filter(ae=>ae.source==="custom")),o({body:t("providers.failedFetchModels"),type:"error"})}finally{O(!1)}}},[m,p,F,f,t,o]);g.useEffect(()=>{if(!F)return;const K=setTimeout(()=>{U()},500);return()=>clearTimeout(K)},[F,U]);function _(){const K=A.trim();!K||B.some(ae=>ae.id===K)||(T(ae=>[...ae,{id:K,displayName:L.trim()||null,source:"custom"}]),N(""),D(""))}const P=g.useCallback(async()=>{if(!q)return;H(!0);const K={name:l.trim(),protocol:f,baseURL:p.trim(),apiKey:m,customModels:B.map(({source:ae,...I})=>I)};try{await LG(K,e),await s.invalidateQueries({queryKey:ms.all}),r("/providers")}finally{H(!1)}},[m,p,q,B,r,l,e,f,s]),G=g.useCallback(()=>{r("/providers")},[r]),X=g.useCallback(()=>{P()},[P]),Z=g.useCallback(()=>{R.current&&clearTimeout(R.current),E(!0)},[]),Q=g.useCallback(()=>{R.current=setTimeout(()=>{E(!1)},120)},[]);return x.jsxs(x.Fragment,{children:[x.jsx(Ed,{children:x.jsxs(Rt,{gap:2,children:[x.jsx(jt,{label:t("providers.cancel"),variant:"ghost",size:"sm",onClick:G}),x.jsx(jt,{label:t("providers.save"),variant:"primary",size:"sm",isDisabled:!q,isLoading:M,onClick:X})]})}),x.jsxs(We,{gap:5,children:[x.jsxs(We,{gap:4,children:[x.jsxs(Rt,{gap:3,wrap:"wrap",xstyle:ui.formFieldRow,children:[x.jsx(Fa,{containerXstyle:ui.formNameField,size:"sm",label:t("providers.name"),value:l,onChange:u,isRequired:!0}),x.jsx(Ql,{containerXstyle:ui.formProtocolField,size:"sm",label:t("providers.protocol"),options:hK,value:f,onChange:K=>d(K),isDisabled:!!e,isRequired:!0})]}),x.jsx(Fa,{size:"sm",label:t("providers.baseUrl"),value:p,onChange:y,placeholder:"https://api.example.com/v1",isRequired:!0}),x.jsxs(w6,{label:t("providers.apiKey"),size:"sm",isRequired:f!=="openai-compatible-chat-completions",xstyle:ui.formApiKeyField,children:[x.jsx(Fa,{size:"sm",label:t("providers.apiKey"),isLabelHidden:!0,type:v?"text":"password",value:m,onChange:k}),x.jsx(S6,{xstyle:ui.apiKeyVisibilityAddon,children:x.jsx(_r,{label:t(v?"providers.hideApiKey":"providers.showApiKey"),tooltip:t(v?"providers.hideApiKey":"providers.showApiKey"),icon:v?x.jsx(DP,{}):x.jsx(dj,{}),variant:"ghost",size:"sm",onClick:()=>w(K=>!K)})})]})]}),x.jsxs(We,{gap:3,children:[x.jsxs(Rt,{gap:1,vAlign:"center",children:[x.jsx(Je,{type:"label",color:"secondary",children:t("providers.models")}),x.jsxs(Je,{type:"supporting",children:["·",t("providers.required")]}),x.jsx(Ex,{label:t("providers.modelSources"),placement:"below",alignment:"start",isOpen:S,isEnabled:!1,onOpenChange:E,content:x.jsx(We,{gap:1,onMouseEnter:Z,onMouseLeave:Q,children:x.jsx(Je,{type:"supporting",children:t("providers.modelsTemporary")})}),children:x.jsx("button",{type:"button","aria-label":t("providers.aboutModelSources"),className:"x3nfvp2 x6s0dn4 xl56j7k x1717udv xjspbzw xjbqb8w xv9yike x1ypdohk x1cqbx0l x17nn4n9 x7s97pk",onMouseEnter:Z,onMouseLeave:Q,children:x.jsx(ft,{icon:sB,size:"sm"})})}),x.jsx(_r,{label:t("providers.fetchModels"),tooltip:t("providers.fetchModels"),icon:x.jsx(ux,{}),variant:"ghost",size:"sm",isDisabled:!F,isLoading:j,onClick:()=>{U()}})]}),C.length>0&&x.jsx(Rt,{gap:1,wrap:"wrap",children:C.map(K=>x.jsx(K0,{size:"sm",label:K.displayName||K.id,color:K.source==="custom"?"blue":"default",onRemove:K.source==="custom"?()=>T(ae=>ae.filter(I=>I!==K)):void 0},`${K.source}-${K.id}`))}),x.jsxs(Rt,{gap:2,wrap:"wrap",children:[x.jsx(Fa,{size:"sm",containerXstyle:ui.formModelInput,label:t("providers.modelId"),isLabelHidden:!0,value:A,onChange:N,placeholder:t("providers.customModelId"),isRequired:!0}),x.jsx(Fa,{size:"sm",containerXstyle:ui.formModelNameInput,label:t("providers.displayName"),isLabelHidden:!0,value:L,onChange:D,isOptional:!0,placeholder:t("providers.displayNameOptional")}),x.jsx(jt,{label:t("providers.addCustomModel"),variant:"secondary",size:"sm",isDisabled:!A.trim(),onClick:_})]})]})]})]})}const W0=aa(null);W0.displayName="SegmentedControlContext";function pK(){const e=g.use(W0);if(e==null)throw new Error("useSegmentedControlContext must be used within SegmentedControl. Wrap your SegmentedControlItem in <SegmentedControl>.");return e}const wh={container:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kzqmXN:"xeq5yr9",ks0D6T:"x1x1rfll xzzx6db",k7Eaqz:"x15x72sd xmzx3xy",kOIVth:"x1lsbc85","--_segmented-control-padding":"x18jk3ff",kmVPX3:"xpoxszi",kWkggS:"x17x4s8c",$$css:!0},fill:{k1xSpc:"x78zum5",kzqmXN:"xh8yej3",$$css:!0},disabled:{kSiTet:"xbyyjgo",kfzvcC:"x47corl",$$css:!0},disabledWithMessage:{kSiTet:"xbyyjgo",$$css:!0}},xK={sm:{"--_segmented-control-radius":"x9icjy1",kaIpWk:"x1hapoqb",$$css:!0},md:{"--_segmented-control-radius":"x9icjy1",kaIpWk:"x1hapoqb",$$css:!0},lg:{"--_segmented-control-radius":"x9icjy1",kaIpWk:"x1hapoqb",$$css:!0}};function E6({ref:e,value:t,onChange:r,label:s,size:o,layout:l="hug",isDisabled:u=!1,disabledMessage:f,children:d,xstyle:p,className:y,style:m,onKeyDown:k,onFocus:v,onBlur:w,...S}){const E=bc(o,"md"),R=u&&!!f,C=Wa({placement:"above",focusTrigger:"always",isEnabled:R}),{listRef:T,handleKeyDown:A,handleFocus:N}=lx({itemSelector:'[role="radio"]:not([aria-disabled="true"])',hasRovingTabIndex:!0,wrap:!0,orientation:"horizontal"}),L=JF({orientation:"horizontal",isEnabled:!u}),D=g.useCallback(M=>{k?.(M),!M.defaultPrevented&&(L.onKeyDown(M),A(M))},[k,L,A]),j=g.useCallback(M=>{if(v?.(M),M.defaultPrevented||(L.onFocus(M),N(M),u)||!M.currentTarget.contains(M.relatedTarget))return;const H=M.target?.closest('[role="radio"][data-value]');if(!H||H.getAttribute("aria-disabled")==="true")return;const F=H.dataset.value;F!=null&&F!==t&&r(F)},[v,L,N,u,r,t]),O=g.useMemo(()=>({value:t,onChange:r,size:E,layout:l,isDisabled:u,hasDisabledMessage:R}),[t,r,E,l,u,R]);return x.jsxs(W0,{value:O,children:[x.jsxs("div",{ref:xn(e,T,C.ref),...S,role:"radiogroup","aria-label":s,"aria-disabled":u||void 0,"aria-describedby":R?C.describedBy:void 0,onKeyDown:D,onFocus:j,onBlur:Ir(w,L.onBlur),...ye(fe("segmented-control",{size:E}),de(wh.container,xK[E],l==="fill"&&wh.fill,u&&(R?wh.disabledWithMessage:wh.disabled),p),y,m),children:[d,L.hintElement]}),R&&C.renderTooltip(f)]})}E6.displayName="SegmentedControl";const Dl={base:{kVAEAm:"x1n2onr6",k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kOIVth:"xzye2dw",kg3NbH:"xrrkdod",kWkggS:"xjbqb8w",kMzoRj:"xc342km",ksu8eU:"xng3xce",kMv6JI:"xjb2p0i",kGuDYH:"xcr08ib",kLWn49:"x1kq96og",k63SB2:"x1e4wzip",kMwMTN:"xv1l7n4",kkrTdU:"x1ypdohk x16khyan",khDVqt:"xuxw1ft",k7Eaqz:"xeuugli",k1ekBW:"x1vix5yk",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",$$css:!0},selected:{kAXs8y:"x1kzknox",kMwMTN:"x1tgivj0 x1k5gbb1",k63SB2:"x2mo6ok",kWkggS:"x10xzikg x1jzqe4",kGVxlE:"x1i5ehqx",$$css:!0},disabled:{kkrTdU:"xt0e3qv",kMwMTN:"xnbbluu",$$css:!0},fill:{kUk6DE:"x98rzlu",k7Eaqz:"xeuugli",kjj79g:"xl56j7k",$$css:!0},iconOnly:{kmuXW:"x2lah0s",$$css:!0},icon:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmuXW:"x2lah0s",$$css:!0}},gK={sm:{kZKoxP:"xzj98nu",kaIpWk:"xc910v0",kg3NbH:"xf314gf",kGuDYH:"x141an7d",$$css:!0},md:{kZKoxP:"x184gfjb",kaIpWk:"xc910v0",kg3NbH:"xrrkdod",$$css:!0},lg:{kZKoxP:"x1uiybsj",kaIpWk:"xc910v0",kg3NbH:"xrrkdod",$$css:!0}},mK={sm:{kzqmXN:"x6jxa94",kZKoxP:"x1v9usgg",$$css:!0},md:{kzqmXN:"x1kky2od",kZKoxP:"xlup9mm",$$css:!0},lg:{kzqmXN:"x1xp8n7a",kZKoxP:"xmix8c7",$$css:!0}};function nb({ref:e,value:t,label:r,isLabelHidden:s=!1,icon:o,isDisabled:l=!1,onClick:u,xstyle:f,...d}){const p=ja(),y=pK(),m=y.value===t,k=l||y.isDisabled,v=m&&(y.hasDisabledMessage??!1)&&!l,w=y.size,S=y.layout==="fill",E=Ir(u,()=>{!k&&!m&&y.onChange(t)}),R=o?x.jsx("span",{...de(Dl.icon,mK[w]),children:o}):null;return x.jsxs("button",{ref:e,...d,type:"button",role:"radio","aria-checked":m,"aria-disabled":k||void 0,"aria-label":s?r:void 0,"data-value":t,...!m&&!k?p:void 0,tabIndex:m&&!k||v?0:-1,onClick:E,...ye(fe("segmented-control-item",{size:w,selected:m?"selected":null,disabled:k?"disabled":null}),pn.focusVisible(Dl.base,gK[w],S&&Dl.fill,s&&Dl.iconOnly,m&&Dl.selected,!m&&!k&&or.backgroundColor,k&&Dl.disabled,f)),children:[R,!s&&x.jsx("span",{className:"xb3r6kr xlyipyv xeuugli",children:r})]})}nb.displayName="SegmentedControlItem";const $6=120,T6=60;function C6(e){return e?.minWidth??(e==null?T6:$6)}function j6(e){let t=0,r=0;const s=[];for(const l of e){const u=l.width;if(u?.type==="pixel")r+=u.value;else{const f=u?.value??1;t+=f,s.push({proportion:f,minWidth:C6(u)})}}let o=0;if(t>0)for(const l of s){const u=l.minWidth*t/l.proportion;u>o&&(o=u)}return{totalProportion:t,pixelTotal:r,maxProportionalSpace:o}}function R6(e){const{totalProportion:t,maxProportionalSpace:r}=j6(e),s=new Map;for(const o of e){const l=o.width;if(l?.type==="pixel")s.set(o.key,l.value);else{const u=l?.value??1;s.set(o.key,t>0?r*u/t:0)}}return s}const yK=/^[+-]?(?:\d+\.?\d*|\.\d+)(?:px|r?em|r?lh|r?ex|r?ch|r?cap|r?ic|vw|vh|vi|vb|vmin|vmax|[sld]v(?:w|h|i|b|min|max)|cq(?:w|h|i|b|min|max)|cm|mm|q|in|pt|pc|%)$/i,bK=/^(?:calc|min|max|clamp|var)\(/i,kK=/^[+-]?(?:0+\.?0*|\.0+)(?:[a-z]+|%)?$/i,vK=/^(\d+(?:\.\d+)?)px$/i;function wK(e,t){const r=`${t}px`;if(e==null)return r;if(typeof e=="number")return`${Math.max(e,t)}px`;const s=e.trim();if(s===""||kK.test(s))return r;const o=vK.exec(s);return o?`${Math.max(Number(o[1]),t)}px`:yK.test(s)||bK.test(s)?`max(${s}, ${r})`:r}function SK(e){const{totalProportion:t,pixelTotal:r,maxProportionalSpace:s}=j6(e),o=r+s,l=new Map;for(const u of e){const f=u.width,d={};if(f?.type==="pixel")d.width=`${f.value}px`,d.minWidth=`${f.value}px`;else{const p=f?.value??1;t>0&&(d.width=`${p/t*100}%`),d.minWidth=`${C6(f)}px`}l.set(u.key,{style:d})}return{columns:l,tableMinWidth:o}}function Kh(e=1,t){return{type:"proportional",value:e,minWidth:t?.minWidth??$6}}function jo(e){return{type:"pixel",value:e}}function w$(e){if(e.length===0)return e;const t=m9(e);return t.toUpperCase()+e.slice(t.length)}function EK(e,t){const r=e[t];return r==null?"":r instanceof Date?r.toISOString():typeof r=="string"||typeof r=="number"||typeof r=="boolean"||typeof r=="bigint"?String(r):""}function $K(e){return e==null?0:typeof e=="string"?e.length:typeof e=="number"||typeof e=="boolean"?String(e).length:0}function TK(e){if(e==null||typeof e!="string"&&typeof e!="number"&&typeof e!="boolean")return 0;const t=String(e);let r=0,s=0;for(let o=0;o<=t.length;o++)o===t.length||t[o]===" "||t[o]===" "||t[o]===`
94
- `?(s>r&&(r=s),s=0):s++;return r}const CK=8;function jK(e){if(e.length===0)return[];const t=e[0],r=Object.keys(t),s=e.slice(0,Math.min(5,e.length));return r.map(l=>{const u=w$(l).length;let f=u,d=u;for(const p of s){const y=$K(p[l]);y>f&&(f=y);const m=TK(p[l]);m>d&&(d=m)}return{key:l,headerLen:u,maxContentLen:f,maxWordLen:d}}).map(l=>{const u=l.maxContentLen<=6?1:l.maxContentLen<=15?2:3,f=Math.max(Math.max(l.headerLen,l.maxWordLen)*CK,T6);return{key:l.key,header:w$(l.key),width:Kh(u,{minWidth:f})}})}const S$={x139im0d:"x139im0d",$$css:!0},A6={cell:{kVQacm:"xb3r6kr",kg5iWk:"xlyipyv",khDVqt:"xuxw1ft",ks0D6T:"x1m189uc",$$css:!0}},RK={cell:{kVQacm:"xb3r6kr",kHjlTd:"x1mzt3pk",kTgw9:"x13faqbe",ks0D6T:"x1m189uc",$$css:!0}},M6={compact:{kZCmMZ:"x5uh4xs",kwRFfy:"xbg7gas",$$css:!0},balanced:{kZCmMZ:"x9bi00s",kwRFfy:"xpilulx",$$css:!0},spacious:{kZCmMZ:"x18c6q21",kwRFfy:"x1wzlfcn",$$css:!0}},$x=aa(null);$x.displayName="TableContext";const AK={row:{kWkggS:"x189zj9d","--table-row-overlay":"xztvxw7",$$css:!0}},MK={row:{kWkggS:"xoevpu5","--table-row-overlay":"xc01ov8",k1ekBW:"x15406qy",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",$$css:!0}},NK={row:{kWkggS:"x189zj9d xoevpu5","--table-row-overlay":"xztvxw7 xc01ov8",k1ekBW:"x15406qy",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",$$css:!0}};function $p({children:e,xstyle:t,ref:r,isHeaderRow:s=!1,className:o,style:l,...u}){const f=g.use($x);if(!f)return x.jsx("tr",{ref:r,...u,...ye(fe("table-row"),de(S$,t),o,l),children:e});const d=[];return s||(f.isStriped&&f.hasHover?d.push(NK.row):f.isStriped?d.push(AK.row):f.hasHover&&d.push(MK.row)),f.dividers==="rows"||f.dividers,t&&d.push(...t),x.jsx("tr",{ref:r,...u,...ye(fe("table-row"),de(S$,...d),o,l),children:e})}$p.displayName="TableRow";const Y0=new Set(["menuitem","menuitemradio","menuitemcheckbox"]),Tp=[...Y0].map(e=>`[role="${e}"]:not([aria-disabled="true"])`).join(","),N6='[role="menu"]';function z6(e){return e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.button!==0}function L6(e,t){e.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0,metaKey:t.metaKey,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey}))}const zK="button:not(:disabled), a[href]",Sh={list:{k7VYTy:"xpdipgo",kfSwDN:"x87ps6o",$$css:!0},destructiveAction:{"--_item-label-color":"xufyqxy","--_item-description-color":"xqlix59",kMwMTN:"xjt36v0",$$css:!0},divider:{kqGvvJ:"xsq74q5",$$css:!0},sectionHeading:{kg3NbH:"xrrkdod",$$css:!0}};function LK(e,t){return`item-${e.id??t}`}function D6({items:e,onSelect:t,onOpenSubmenu:r}){const s=g.useRef(null),o=xx({menuRef:s,itemSelector:zK}),l=(u,f)=>{const d=u.items!=null&&u.items.length>0,p=u.variant==="destructive",y=!d&&u.href!=null,m=k=>{if(y&&u.isDisabled){k.preventDefault();return}ic()==="pointer"&&k.currentTarget.blur(),d?r(u):y&&z6(k)?t({...u,onClick:void 0},k):t(u,k)};return x.jsx(Sc,{label:u.label,description:u.description,startContent:u.icon?Ta(u.icon,{size:"sm",color:p?"error":"secondary"}):void 0,endContent:d?x.jsx(ft,{icon:"chevronRight",size:"sm",color:"secondary",xstyle:Ka.mirror}):u.endContent,isDisabled:u.isDisabled,href:y?u.href:void 0,target:y?u.target:void 0,rel:y?u.rel:void 0,onClick:y?void 0:m,onClickCapture:y?m:void 0,xstyle:p&&Sh.destructiveAction},LK(u,f))};return x.jsx(dc,{ref:s,density:"spacious",xstyle:Sh.list,...o.menuProps,children:e.map((u,f)=>"type"in u&&u.type==="divider"?x.jsx("li",{role:"presentation",className:"x3ct3a4",children:x.jsx(Ai,{xstyle:Sh.divider})},`divider-${f}`):"type"in u&&u.type==="section"?x.jsx("li",{className:"x3ct3a4",children:x.jsxs("div",{role:"group","aria-label":u.title,className:"x78zum5 xdt5ytf xzye2dw",children:[u.title&&x.jsx(Oo,{level:4,xstyle:Sh.sectionHeading,children:u.title}),x.jsx(dc,{density:"spacious",children:u.items.map(l)})]})},`section-${u.id??f}`):l(u,f))})}D6.displayName="MenuBottomSheetActionList";const Tx=aa(null);Tx.displayName="DropdownMenuContext";function O6(){return g.use(Tx)}const DK=g.createContext(null);DK.displayName="DropdownMenuRadioGroupContext";function I6(e,t){if(t||e.pointerType!=="mouse")return;const r=e.currentTarget;r!==r.ownerDocument.activeElement&&r.focus({preventScroll:!0})}const t1={root:{kB7OPa:"x9f619",kzqmXN:"xh8yej3",k8WAf4:"xce4md1",kg3NbH:"xf314gf",kaIpWk:"x1ws5lxm",kMv6JI:"x9ynric",kGuDYH:"xcr08ib",kMwMTN:"x1tgivj0",kWkggS:"xjbqb8w x1c52tdz xprvw0a",kMzoRj:"xc342km",ksu8eU:"xng3xce",kkrTdU:"x1ypdohk x16khyan",k9WMMc:"x1yc453h",kI3sdo:"x1a2a7pz",$$css:!0},disabled:{kSiTet:"xbyyjgo",kkrTdU:"xt0e3qv",$$css:!0},destructive:{kMwMTN:"xjt36v0","--_item-label-color":"xufyqxy","--_item-description-color":"xqlix59",$$css:!0}},OK={sm:{k8WAf4:"xu0wf1k",kg3NbH:"xf314gf",$$css:!0},md:{k8WAf4:"x1vofgu7",$$css:!0},lg:{$$css:!0}};function X0({icon:e,label:t,description:r,onClick:s,href:o,target:l,rel:u,isDisabled:f=!1,endContent:d,hasCloseOnSelect:p=!0,variant:y="default",xstyle:m,className:k,style:v,ref:w,onPointerMove:S,onAuxClick:E,...R}){const C=O6(),T=C?.menuSize??"md",A=ja(),N=g.useCallback(M=>{if(f){M.preventDefault();return}o!=null&&z6(M)||s?.(M),p&&C?.closeMenu()},[f,o,s,p,C]),L=g.useCallback(M=>{if(f){M.preventDefault();return}o==null||M.button!==1||p&&C?.closeMenu()},[f,o,p,C]),D=g.useCallback(M=>I6(M,f),[f]),j=y==="destructive",O=Oi();return x.jsx(jd,{...R,ref:w,as:o!=null?O:void 0,role:"menuitem",tabIndex:f?void 0:-1,onPointerMove:Ir(D,S),...A,startContent:e?Ta(e,{size:"sm",color:j?"error":"secondary"}):void 0,label:t,description:r,endContent:d,onClick:N,onAuxClick:Ir(L,E),href:o,target:l,rel:u,draggable:o!=null?!1:void 0,isDisabled:f,xstyle:[t1.root,OK[T],j&&t1.destructive,f&&t1.disabled,m],...ye(fe("dropdown-menu-item",{size:T,variant:j?"destructive":null}),{className:k,style:v})})}X0.displayName="DropdownMenuItem";const IK={divider:{kqGvvJ:"xsq74q5",$$css:!0}},E$=fe("dropdown-menu-divider").className;function _6({xstyle:e,className:t,style:r,ref:s}){return x.jsx(Ai,{ref:s,xstyle:[IK.divider,e],className:t?`${E$} ${t}`:E$,style:r})}_6.displayName="DropdownMenuDivider";const q6=g.createContext(!1);q6.displayName="MenuRegionsContext";function _K(e,t){return typeof e=="string"&&b6(e)?{property:"inlineSize",value:e.trim()}:{property:"minWidth",value:k6(e,t)}}const n1={root:{kB7OPa:"x9f619",kzqmXN:"xh8yej3",k8WAf4:"xce4md1",kg3NbH:"xf314gf",kaIpWk:"x1ws5lxm",kMv6JI:"x9ynric",kGuDYH:"xcr08ib",kMwMTN:"x1tgivj0",kWkggS:"xjbqb8w x1c52tdz",kMzoRj:"xc342km",ksu8eU:"xng3xce",kkrTdU:"x1ypdohk x16khyan",k9WMMc:"x1yc453h",kI3sdo:"x1a2a7pz",$$css:!0},open:{kWkggS:"x1lmrjuc",$$css:!0},disabled:{kSiTet:"xbyyjgo",kkrTdU:"xt0e3qv",$$css:!0}},qK={sm:{k8WAf4:"xu0wf1k",kg3NbH:"xf314gf",$$css:!0},md:{k8WAf4:"x1vofgu7",$$css:!0},lg:{$$css:!0}},PK={kzqmXN:"x1uyokj7",$$css:!0},Eh={popoverViewport:{kB7OPa:"x9f619",kskxy:"x1uh1i8a",$$css:!0},popover:{k7Eaqz:"x1b27s9g",$$css:!0},popoverCustomWidth:e=>[{k7Eaqz:e!=null?"xkj4a21":e,$$css:!0},{"--x-minWidth":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],popoverCustomIntrinsicWidth:e=>[PK,{"--x-inlineSize":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function P6(e){const{icon:t,label:r,description:s,isDisabled:o=!1,hasSpinner:l=!1,menuWidth:u,onOpenChange:f,presentation:d="adaptive",children:p,xstyle:y,className:m,style:k,"data-testid":v,menuDataTestId:w,ref:S,id:E,onMouseEnter:R,onMouseLeave:C,onPointerMove:T,onClick:A,onKeyDown:N,...L}=e,D=Nt(),j=O6(),O=g.use(q6),M=j?.menuSize??"md",H=!o,F=g.useId(),q=g.useId(),B=E??q,U=g.useRef(null),_=j?.drillIn,P=_!=null&&(d==="drill-in"||d==="adaptive"&&_.isCompactTouch)?_:null,G=P!=null,X=g.useId(),Z=P?.viewStack.includes(X)===!0,Q=Z&&P?.viewStack.at(-1)===X,K=typeof r=="string"?r:void 0,ae=j?.menuLabel,I=ae!=null?D("@astryx.dropdownMenu.backTo",{parent:ae}):D("@astryx.dropdownMenu.back"),[ee,pe]=g.useState(!1),ue=G?Z:ee,ve=md({mode:"context",lightDismiss:!1,onShow:g.useCallback(()=>{pe(!0),f?.(!0)},[f]),onHide:g.useCallback(()=>{pe(!1),f?.(!1)},[f])}),xe=g.useCallback(()=>{H&&ve.show()},[H,ve]),$e=g.useCallback(()=>{ve.hide()},[ve]),{listRef:te,handleKeyDown:he,focusFirst:Re,focusItem:Ce,ownsEvent:Te,getItems:Me}=lx({itemSelector:Tp,boundarySelector:N6,wrap:!0,hasPaging:!0,onEscape:()=>rt({focusTrigger:!0})}),je=H0(te,p,ue&&!G),He=N0({getItemLabels:()=>Me().map(Le=>Le.textContent),onMatch:Ce,getCurrentIndex:()=>Me().findIndex(Le=>Le===document.activeElement||Le.contains(document.activeElement))}),{triggerProps:at,contentProps:pt,confirmHoverOpen:et}=nj({show:xe,hide:$e,isOpen:ee,isEnabled:H&&!G,flyoutRef:te}),Ve=g.useRef(null),yt=g.useRef(!1),Pe=g.useCallback(Le=>{if(H){if(P!=null){Ve.current=Le?.focusFirst?"first":"container",P.push(X),f?.(!0);return}ve.show(),Le?.focusFirst&&(Re()||te.current?.focus())}},[H,P,X,f,ve,Re,te]),rt=g.useCallback(Le=>{if(P!=null){Z&&(yt.current=Le?.focusTrigger!==!1,P.pop(),f?.(!1));return}ve.hide(),Le?.focusTrigger!==!1&&U.current?.focus()},[P,Z,f,ve]);g.useEffect(()=>{if(!Q||P?.host==null)return;const Le=Ve.current;if(Le==null)return;Ve.current=null;const Jt=Me(),un=Le==="first"?Jt[1]??Jt[0]:null;un!=null?un.focus({preventScroll:!0}):te.current?.focus({preventScroll:!0})},[Q,P?.host,Me,te]),g.useEffect(()=>{Z||!yt.current||(yt.current=!1,U.current?.focus({preventScroll:!0}))},[Z]);const lt=ve.ref,st=g.useCallback(Le=>{U.current=Le,lt(Le)},[lt]),ct=xn(st,S),we=g.useCallback(Le=>{if(o){Le.preventDefault();return}if(G){const Jt=Le.detail>0||qF();Pe({focusFirst:!Jt});return}if(ee){if(et()){Re()||te.current?.focus();return}rt({focusTrigger:!0})}else Pe({focusFirst:!0})},[o,G,ee,Pe,rt,et,Re,te]),Ge=g.useCallback(Le=>{Ir(we,A)(Le)},[we,A]),Pt=g.useCallback(Le=>{if(o)return;const un=(typeof window<"u"&&U.current?window.getComputedStyle(U.current).direction==="rtl":!1)?"ArrowLeft":"ArrowRight";(Le.key===un||Le.key==="Enter"||Le.key===" ")&&(Le.preventDefault(),Le.stopPropagation(),Pe({focusFirst:!0}))},[o,Pe]),bn=g.useCallback(Le=>I6(Le,o),[o]),gn=g.useCallback(Le=>{if(Le.key==="Tab"&&O){rt({focusTrigger:!1});return}if(!Te(Le))return;if(Le.key==="Escape"){Le.preventDefault(),Le.stopPropagation(),rt({focusTrigger:!0});return}if(Le.key==="Enter"||Le.key===" "){if(Le.preventDefault(),Le.repeat)return;const an=document.activeElement;an&&Y0.has(an.getAttribute("role")??"")&&L6(an,Le);return}const un=(typeof window<"u"&&te.current?window.getComputedStyle(te.current).direction==="rtl":!1)?"ArrowRight":"ArrowLeft";if(Le.key===un){Le.preventDefault(),rt({focusTrigger:!0});return}if(He.onKeyDown(Le)){Le.preventDefault();return}he(Le)},[Te,rt,he,He,te,O]),An=g.useMemo(()=>({menuSize:M,closeMenu:()=>{rt({focusTrigger:!1}),j?.closeMenu()},drillIn:_,menuLabel:K}),[M,rt,j,_,K]),Vt=xx({menuRef:te,itemSelector:Tp,onDismiss:An.closeMenu}),Yn=l?x.jsx("span",{className:"x78zum5 x6s0dn4",children:x.jsx(Do,{size:"sm"})}):x.jsx("span",{className:"x78zum5 x6s0dn4",children:x.jsx(ft,{icon:"chevronRight",size:"sm",color:"secondary",xstyle:Ka.mirror,...fe("dropdown-menu-indicator-icon")})}),Qt=u?_K(u,oc.maxInlineSizeFallback):null,kn=Qt?Qt.property==="inlineSize"?Eh.popoverCustomIntrinsicWidth(Qt.value):Eh.popoverCustomWidth(Qt.value):Eh.popover,Ye=x.jsxs(Tx,{value:An,children:[G&&x.jsx(X0,{icon:x.jsx(ft,{icon:"chevronLeft",size:"sm",color:"secondary",xstyle:Ka.mirror}),label:I,hasCloseOnSelect:!1,onClick:()=>rt({focusTrigger:!0})}),p]});return x.jsxs(x.Fragment,{children:[x.jsx(jd,{...L,ref:ct,id:B,role:"menuitem",tabIndex:o?void 0:-1,"aria-haspopup":"menu","aria-expanded":ue,"aria-controls":ue?F:void 0,"aria-disabled":o||void 0,"data-testid":v,onMouseEnter:Ir(at.onMouseEnter,R),onMouseLeave:Ir(at.onMouseLeave,C),onPointerMove:Ir(bn,T),startContent:t?Ta(t,{size:"sm",color:"secondary"}):void 0,label:r,description:s,endContent:Yn,onClick:Ge,onKeyDown:Ir(Pt,N),isDisabled:o,xstyle:[n1.root,qK[M],ue&&n1.open,o&&n1.disabled,y],...ye(fe("dropdown-menu-item",{size:M}),{className:m,style:k})}),P!=null?Z&&P.host!=null&&xd.createPortal(x.jsx("div",{ref:te,id:F,role:"menu",tabIndex:-1,"aria-label":K,"aria-labelledby":K==null?B:void 0,hidden:!Q,inert:!Q,onKeyDown:gn,"data-testid":w,...Vt.menuProps,...{0:{className:"x78zum5 xdt5ytf x1lsbc85 x1a2a7pz xpdipgo x87ps6o"},1:{className:"xdt5ytf x1lsbc85 x1a2a7pz xpdipgo x87ps6o x1s85apg"}}[!Q<<0],children:Ye}),P.host):ve.render(x.jsx("div",{ref:te,id:F,role:"menu",tabIndex:je?0:-1,"aria-labelledby":B,onKeyDown:gn,onMouseEnter:pt.onMouseEnter,onMouseLeave:pt.onMouseLeave,"data-testid":w,...Vt.menuProps,...ye(fe("dropdown-menu"),{0:{className:"x9f619 x78zum5 xdt5ytf x1lsbc85 x1p5vr2b x1uh1i8a x1fcsqxe xgory14 x9epnlk x1n97fys x1prclbq x1i5ehqx x1hc1fzr x19991ni xuedmi6 xlr8y92 xpdipgo x87ps6o x1j4r261"},2:{className:"x9f619 x78zum5 xdt5ytf x1lsbc85 x1p5vr2b x1uh1i8a x1fcsqxe xgory14 x9epnlk x1n97fys x1prclbq x1i5ehqx x1hc1fzr x19991ni xuedmi6 xlr8y92 xpdipgo x87ps6o xge0x1e xish69e"},1:{className:"x9f619 x78zum5 xdt5ytf x1lsbc85 x1p5vr2b x1uh1i8a x1fcsqxe xgory14 x9epnlk x1n97fys x1prclbq x1i5ehqx x1hc1fzr x19991ni xuedmi6 xlr8y92 xpdipgo x87ps6o x1j4r261 x1odjw0f x6ikm8r xish69e"},3:{className:"x9f619 x78zum5 xdt5ytf x1lsbc85 x1p5vr2b x1uh1i8a x1fcsqxe xgory14 x9epnlk x1n97fys x1prclbq x1i5ehqx x1hc1fzr x19991ni xuedmi6 xlr8y92 xpdipgo x87ps6o xge0x1e x1odjw0f x6ikm8r xish69e"}}[!!je<<1|!!je<<0]),children:Ye}),{placement:"end",alignment:"start",offset:Wn["--spacing-1"],xstyle:[Eh.popoverViewport,kn,yd.end]})]})}P6.displayName="DropdownMenuSubMenu";function B6(e,t){return`item-${e.id??t}`}function BK(e,t){return`section-${e.id??t}`}function $$(e,t){const{items:r,id:s,...o}=e;return x.jsx(X0,{...o},B6(e,t))}function H6(e){const t=[];for(let r=0;r<e.length;r++){const s=e[r];"type"in s&&s.type==="divider"?t.push(x.jsx(_6,{},`divider-${r}`)):"type"in s&&s.type==="section"?t.push(x.jsxs("div",{role:"group","aria-label":s.title,children:[s.title&&x.jsx("div",{"aria-hidden":"true",...ye(fe("dropdown-menu-section-heading"),{className:"xu0wf1k xf314gf x9ynric x141an7d x1ltkj2j xv1l7n4 x87ps6o"}),children:s.title}),s.items.map($$)]},BK(s,r))):"type"in s||(s.items&&s.items.length>0?t.push(x.jsx(P6,{icon:s.icon,label:s.label,isDisabled:s.isDisabled,children:H6(s.items)},B6(s,r))):t.push($$(s,r)))}return t}function HK(){return typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia(c6).matches}function FK(e){const[t,r]=g.useState(!1),[s,o]=g.useState([]),[l,u]=g.useState(null),[f,d]=g.useState(e);f!==e&&(d(e),e?r(HK()):s.length>0&&o([]));const p=g.useCallback(w=>{o(S=>S.includes(w)?S:[...S,w])},[]),y=g.useCallback(()=>{o(w=>w.length===0?w:w.slice(0,-1))},[]),m=g.useMemo(()=>({isCompactTouch:t,viewStack:s,host:l,push:p,pop:y}),[t,s,l,p,y]),k=s.length>0,v=g.useCallback(w=>x.jsxs(x.Fragment,{children:[x.jsx("div",{hidden:k,inert:k,...{0:{className:"xjp7ctv"},1:{className:"x1s85apg"}}[!!k<<0],children:w}),x.jsx("div",{ref:u,className:"xjp7ctv"})]}),[k]);return{drillIn:m,isDrilled:k,wrapContent:v}}const UK=g.lazy(async()=>bd(()=>import("./MenuBottomSheet-CvQo99mU.js"),__vite__mapDeps([0,1])).then(e=>({default:e.MenuBottomSheet}))),fs={trigger:{kVAEAm:"x1n2onr6",k7VYTy:"xpdipgo",kO7zv1:"x1winvzj",kfSwDN:"x87ps6o",$$css:!0},menu:{kB7OPa:"x9f619",k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kOIVth:"x1lsbc85",kskxy:"xuyqlj2",kORKVm:"x1odjw0f","--_dropdown-menu-radius":"x1fcsqxe","--_dropdown-menu-padding":"xgory14",kmVPX3:"x9epnlk",kaIpWk:"x1n97fys",kWkggS:"x1prclbq",kGVxlE:"x1i5ehqx",kSiTet:"x1hc1fzr",k1ekBW:"x19991ni",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",kfSwDN:"x87ps6o",k7VYTy:"xpdipgo",$$css:!0},touchPinchZoom:{kFalU9:"x1j4r261",$$css:!0},touchPanYPinchZoom:{kFalU9:"xge0x1e",kZeWKH:"xish69e",$$css:!0},popover:{k7Eaqz:"x5w4yej",$$css:!0},popoverCustomWidth:e=>[{k7Eaqz:(typeof e=="number"?`${e}px`:e)!=null?"xkj4a21":typeof e=="number"?`${e}px`:e,$$css:!0},{"--x-minWidth":(t=>typeof t=="number"?t+"px":t??void 0)(typeof e=="number"?`${e}px`:e)}],sheetMenu:{kB7OPa:"x9f619",k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kOIVth:"x1lsbc85",kzqmXN:"xh8yej3","--_dropdown-menu-radius":"x1fcsqxe","--_dropdown-menu-padding":"xgory14",kmVPX3:"x9epnlk",kaIpWk:"x1n97fys",kWkggS:"x10xzikg",kI3sdo:"x1a2a7pz",kfSwDN:"x87ps6o",$$css:!0},sheetRootHeading:{keTefX:"x6i7dpz",$$css:!0},sheetViewHeading:{kI3sdo:"x1a2a7pz",$$css:!0}};function Z0({children:e,menuWidth:t,size:r="md",label:s,isDisabled:o=!1,onOpenChange:l,presentation:u="popover",triggerAs:f="div",ref:d,className:p,style:y,xstyle:m,triggerXstyle:k,"data-testid":v,...w}){const S=Nt(),E=s??S("@astryx.contextMenu.label"),R=S("@astryx.dropdownMenu.back"),T=u6(u)==="bottom-sheet",{items:A,menuContent:N,...L}=w,D=A??[],j=N,O=g.useId(),M=g.useRef({x:0,y:0}),H=g.useRef(null),F=g.useRef(null),q=g.useRef(null),B=g.useRef(null),[U,_]=g.useState(!1),[P,G]=g.useState([]),X=P.at(-1),Z=X?.items??D,Q=X?.label??E,K=typeof Q=="string"?Q:E,ae=g.useCallback(we=>{we||G([]),_(we),l?.(we)},[l]),I=md({mode:"context",onHide:g.useCallback(()=>{_(!1),l?.(!1);const we=q.current;q.current=null,we&&document.contains(we)&&we.focus()},[l]),onShow:g.useCallback(()=>{_(!0),l?.(!0)},[l]),lightDismiss:!1}),ee=g.useCallback(()=>{T?ae(!1):I.hide()},[I,ae,T]),pe=g.useCallback((we,Ge)=>{we.isDisabled||(we.onClick?.(Ge),we.hasCloseOnSelect!==!1&&ee())},[ee]);g.useEffect(()=>{if(!U||P.length===0)return;const we=requestAnimationFrame(()=>{B.current?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(we)},[U,P.length]);const{listRef:ue,handleKeyDown:ve,focusFirst:xe,focusItem:$e,ownsEvent:te,getItems:he}=lx({itemSelector:Tp,boundarySelector:N6,wrap:!0,hasPaging:!0,onEscape:ee}),Re=N0({getItemLabels:()=>he().map(we=>we.textContent),onMatch:$e,getCurrentIndex:()=>he().findIndex(we=>we===document.activeElement||we.contains(document.activeElement))});g.useEffect(()=>{if(!U||T)return;const we=Ge=>{const Pt=ue.current;Pt&&!Pt.contains(Ge.target)&&ee()};return document.addEventListener("mousedown",we),()=>{document.removeEventListener("mousedown",we)}},[U,ee,ue,T]),g.useEffect(()=>{if(!U||T)return;const we=Ge=>{Ge.key==="Escape"&&(gd(Ge)||(Ge.preventDefault(),ee()))};return document.addEventListener("keydown",we),()=>{document.removeEventListener("keydown",we)}},[U,ee,T]);const Ce=g.useCallback(we=>{if(te(we)){if(we.key==="Enter"||we.key===" "){if(we.preventDefault(),we.repeat)return;const Ge=document.activeElement;Ge&&Y0.has(Ge.getAttribute("role")??"")&&L6(Ge,we);return}if(we.key==="Tab"){ee();return}if(Re.onKeyDown(we)){we.preventDefault();return}ve(we)}},[ve,ee,Re,te]),Te=g.useCallback((we,Ge,Pt)=>{M.current={x:we,y:Ge};const bn=H.current;bn&&(bn.style.left=`${we}px`,bn.style.top=`${Ge}px`),q.current=document.activeElement instanceof HTMLElement?document.activeElement:Pt,T?ae(!0):(I.show(),requestAnimationFrame(()=>xe()))},[I,xe,ae,T]),Me=g.useCallback(()=>F.current?.getBoundingClientRect(),[]),je=g.useCallback(we=>{if(o)return;we.preventDefault();const Ge=Me(),Pt=we.clientX===0&&we.clientY===0&&we.detail===0,bn=Pt||!Ge?0:we.clientX-Ge.left,gn=Pt||!Ge?Ge?.height??0:we.clientY-Ge.top;Te(bn,gn,we.currentTarget)},[o,Te,Me]),He=P4({disabled:o,onLongPress:g.useCallback(we=>{const Ge=Me();Te(Ge?we.x-Ge.left:we.x,Ge?we.y-Ge.top:we.y,F.current)},[Te,Me])}),at=t?fs.popoverCustomWidth(t):fs.popover,{drillIn:pt,wrapContent:et}=FK(U&&!T),Ve=g.useMemo(()=>({closeMenu:ee,menuSize:r,drillIn:pt,menuLabel:E}),[ee,r,pt,E]),yt=et(A!==void 0?H6(D):j),Pe=H0(ue,yt,U&&!T),rt=xx({menuRef:ue,itemSelector:Tp,onDismiss:ee,isEnabled:!T}),lt=x.jsx("div",{ref:ue,id:O,role:"menu","data-autofocus":T?"":void 0,tabIndex:T?0:-1,"aria-label":E,onKeyDown:Ce,onContextMenu:we=>we.preventDefault(),...rt.menuProps,...ye(fe("context-menu"),de(T?fs.sheetMenu:fs.menu,!T&&(Pe?fs.touchPanYPinchZoom:fs.touchPinchZoom),m),p,y),children:x.jsx(Tx,{value:Ve,children:yt})}),st=A!==void 0?x.jsxs("div",{ref:ue,"data-autofocus":"",tabIndex:0,...ye(fe("context-menu"),de(fs.sheetMenu,m),p,y),children:[x.jsxs("div",{className:"x78zum5 x1q0g3np x6s0dn4 xzye2dw x1p37lm5",children:[P.length>0&&x.jsx(jt,{label:R,variant:"ghost",size:"sm",icon:x.jsx(ft,{icon:"chevronLeft",size:"sm",xstyle:Ka.mirror}),isIconOnly:!0,onClick:()=>G(we=>we.slice(0,-1))}),x.jsx(Oo,{ref:B,level:3,tabIndex:-1,xstyle:[fs.sheetViewHeading,P.length===0&&fs.sheetRootHeading],children:Q})]}),x.jsx(D6,{items:Z,onSelect:pe,onOpenSubmenu:we=>G(Ge=>[...Ge,we])})]}):lt,ct=f==="div"?"div":"span";return x.jsxs(x.Fragment,{children:[x.jsxs(ct,{ref:xn(d,F),...L,onContextMenu:je,onTouchStart:He.onTouchStart,onTouchMove:He.onTouchMove,onTouchEnd:He.onTouchEnd,onTouchCancel:He.onTouchCancel,"data-testid":v,...de(fs.trigger,...k?Array.isArray(k)?k:[k]:[]),children:[e,x.jsx("span",{ref:xn(H,I.ref),"aria-hidden":"true",...ye({className:"x10l6tqk xnalus7 xqtp20y x47corl"},{style:{left:`${M.current.x}px`,top:`${M.current.y}px`}})})]}),T?x.jsx(g.Suspense,{fallback:null,children:x.jsx(UK,{isOpen:U,onOpenChange:ae,label:K,children:st})}):I.render(lt,{placement:"below",alignment:"start",xstyle:[at,yd.below]})]})}Z0.displayName="ContextMenu";function F6(e){const t=[],r=new Map;for(const o of e){const l=o.group??"__ungrouped__";let u=r.get(l);u||(u=[],r.set(l,u),t.push(l)),u.push(o)}const s=[];return t.forEach((o,l)=>{l>0&&s.push({type:"divider"});for(const u of r.get(o)??[])s.push({label:typeof u.label=="string"?u.label:u.id,icon:u.checked?x.jsx(ft,{icon:"check",size:"xsm","aria-hidden":!0}):u.icon,isDisabled:u.disabled,onClick:u.onSelect,variant:u.variant})}),s}function VK({element:e,getActions:t,triggerXstyle:r}){const[s,o]=g.useState(null);return x.jsx(Z0,{items:s??[],triggerXstyle:r,onOpenChange:l=>{o(l?F6(t()):null)},children:e})}function U6(e,t,r){return typeof t=="function"?x.jsx(VK,{element:e,getActions:t,triggerXstyle:r}):!t||t.length===0?e:x.jsx(Z0,{items:F6(t),triggerXstyle:r,children:e})}function GK(e,t,r){const s=[];return(e.dividers==="rows"||e.dividers==="grid")&&s.push(t),(e.dividers==="columns"||e.dividers==="grid")&&s.push(r),s}function V6(e,t){return t?Array.isArray(t)?[...e,...t]:[...e,t]:e}function G6(){return g.use($x)}const KK={compact:{k8WAf4:"xu0wf1k",kg3NbH:"xf314gf",kGuDYH:"xjm74w1",kB7OPa:"x9f619",$$css:!0},balanced:{k8WAf4:"xce4md1",kg3NbH:"xrrkdod",kGuDYH:"xjm74w1",kB7OPa:"x9f619",$$css:!0},spacious:{k8WAf4:"x8o8v82",kg3NbH:"x1pzlopt",kGuDYH:"xjm74w1",kB7OPa:"x9f619",$$css:!0}},WK={compact:{kGuDYH:"xjm74w1",kB7OPa:"x9f619",$$css:!0},balanced:{kGuDYH:"xjm74w1",kB7OPa:"x9f619",$$css:!0},spacious:{kGuDYH:"xjm74w1",kB7OPa:"x9f619",$$css:!0}},YK={compact:{k8WAf4:"xu0wf1k",kg3NbH:"xf314gf",$$css:!0},balanced:{k8WAf4:"xce4md1",kg3NbH:"xrrkdod",$$css:!0},spacious:{k8WAf4:"x8o8v82",kg3NbH:"x1pzlopt",$$css:!0}},T$={fill:{k1xSpc:"x1lliihq",kB7OPa:"x9f619",kZKoxP:"x5yr21d",kzqmXN:"xh8yej3",$$css:!0}},XK={cell:{kZKoxP:"x5yr21d",$$css:!0}},ZK={cell:{kt9PQ7:"x92x3c3 x1wp2rvj",kfdmCh:"x1q0q8m5",kL6WhQ:"xw8gpjh",$$css:!0}},QK={cell:{ke9TFa:"xw8tdv1 x1qlsc9e",k8ry5P:"x18b5jzi",kBCPoo:"x1gejf6u",$$css:!0}},JK={middle:{kXLuUW:"xxymvpz",$$css:!0},top:{kXLuUW:"x16dsc37",$$css:!0},bottom:{kXLuUW:"x3ajldb",$$css:!0}};function Q0({children:e,xstyle:t,ref:r,className:s,style:o,contextMenuActions:l,...u}){const f=G6(),d=typeof l=="function"||Array.isArray(l)&&l.length>0,p=f?[d?WK[f.density]:KK[f.density],f.textOverflow==="truncate"?A6.cell:RK.cell,M6[f.density],JK[f.verticalAlign],...GK(f,ZK.cell,QK.cell),...d?[XK.cell]:[]]:[],y=d&&f?[T$.fill,YK[f.density]]:d?T$.fill:void 0,m=U6(e,l,y);return x.jsx("td",{ref:r,...u,...ye(fe("table-cell",{density:f?.density}),de(...V6(p,t)),s,o),children:m})}Q0.displayName="TableCell";const eW={compact:{k8WAf4:"xu0wf1k",kg3NbH:"xf314gf",kGuDYH:"xcr08ib",kB7OPa:"x9f619",$$css:!0},balanced:{k8WAf4:"xce4md1",kg3NbH:"xrrkdod",kGuDYH:"xcr08ib",kB7OPa:"x9f619",$$css:!0},spacious:{k8WAf4:"x8o8v82",kg3NbH:"x1pzlopt",kGuDYH:"xcr08ib",kB7OPa:"x9f619",$$css:!0}},tW={cell:{k63SB2:"x2mo6ok",kMwMTN:"xv1l7n4",k9WMMc:"x1yc453h",$$css:!0}},nW={cell:{kt9PQ7:"x92x3c3",kfdmCh:"x1q0q8m5",kL6WhQ:"xw8gpjh",$$css:!0}},rW={cell:{ke9TFa:"xw8tdv1 x1qlsc9e",k8ry5P:"x18b5jzi",kBCPoo:"x1gejf6u",$$css:!0}};function J0({children:e,xstyle:t,ref:r,className:s,style:o,contextMenuActions:l,...u}){const f=G6(),d=[];f&&(d.push(tW.cell,eW[f.density],nW.cell,A6.cell,M6[f.density]),(f.dividers==="columns"||f.dividers==="grid")&&d.push(rW.cell));const p=U6(e,l);return x.jsx("th",{ref:r,...u,...ye(fe("table-header-cell",{density:f?.density}),de(...V6(d,t)),s,o),children:p})}J0.displayName="TableHeaderCell";function ek({ref:e,children:t,xstyle:r,className:s,style:o,...l}){return x.jsx("thead",{ref:e,...ye(fe("table-header"),de(r),s,o),...l,children:t})}ek.displayName="TableHeader";function tk({ref:e,children:t,xstyle:r,className:s,style:o,...l}){return x.jsx("tbody",{ref:e,...ye(fe("table-body"),de(r),s,o),...l,children:t})}tk.displayName="TableBody";const r1={table:{kzqmXN:"xh8yej3",kLvRdT:"x1mwwwfo",kheTzg:"x1gukg7c",kPzzVL:"x140o2bo",$$css:!0},tableAutoLayout:{kPzzVL:"x1drmoe9",$$css:!0}};function hi(e,t,r,...s){return e.reduce((o,l,u)=>{const f=t(l);if(!f)return o;try{return f(o,...s)}catch(d){return Fb("Table",`Plugin at index ${u} threw in transform:`,d),o}},r)}const aW=[];function sW(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function oW({item:e,rowIndex:t,rowKey:r,columns:s,plugins:o,textOverflow:l,RowComponent:u,CellComponent:f,ariaRowIndex:d}){const p=s.map((k,v)=>{const w={};k.align&&(w.style={textAlign:k.align});const E=hi(o,A=>A.transformBodyCell,{htmlProps:w,xstyle:[],columnIndex:v,columns:s},k,e,v,s),R=!k.renderCell;let C=null;E.isContentSuppressed||(C=R?EK(e,k.key):k.renderCell?.(e)??null);let T;return R&&l==="truncate"&&typeof C=="string"&&C.length>0?T=x.jsx(Je,{type:"body",maxLines:1,children:C}):T=C,x.jsx(f,{...E.htmlProps,contextMenuActions:E.contextMenuActions,xstyle:E.xstyle,children:T},k.key)}),y=hi(o,k=>k.transformBodyRow,{htmlProps:d==null?{}:{"aria-rowindex":d},xstyle:[],children:x.jsx(x.Fragment,{children:p})},e,t),m=x.jsx(u,{ref:y.ref,...y.htmlProps,xstyle:y.xstyle,children:y.children},r);return y.afterRow?x.jsxs(x.Fragment,{children:[m,y.afterRow]}):m}function iW(e,t){if(e.rowKey!==t.rowKey||e.rowIndex!==t.rowIndex||e.ariaRowIndex!==t.ariaRowIndex||e.columns!==t.columns||e.plugins!==t.plugins||e.textOverflow!==t.textOverflow||e.RowComponent!==t.RowComponent||e.CellComponent!==t.CellComponent)return!1;if(e.item===t.item)return!0;const r=e.item,s=t.item,o=Object.keys(s);if(Object.keys(r).length!==o.length)return!1;for(const l of o)if(r[l]!==s[l])return!1;return!0}const lW=g.memo(oW,iW);function cW({data:e,columns:t,idKey:r,plugins:s,children:o,textOverflow:l="wrap",scrollWrapper:u,emptyState:f,rowIndexStart:d,rowCount:p,xstyle:y,className:m,style:k,ref:v,...w}){const S=Nt(),E=s??aW,R=d!=null||p!=null,C=d??1,T=R?p??-1:void 0,A=$p,N=Q0,L=J0,D=t??(e?jK(e):[]),j=hi(E,Z=>Z.transformColumns,D),O=g.useRef(j);sW(O.current,j)||(O.current=j);const M=O.current,H=SK(M),F=hi(E,Z=>Z.transformTable,{htmlProps:{},xstyle:o?[r1.table,r1.tableAutoLayout]:[r1.table]}),q=M.map((Z,Q)=>{const K=Z.header??Z.key,ae={"data-column-key":Z.key,scope:"col"};Z.align&&(ae.style={textAlign:Z.align});const ee=hi(E,je=>je.transformHeaderCell,{htmlProps:ae,xstyle:[],content:K,columnIndex:Q,columns:M},Z,Q,M),pe=H.columns.get(Z.key)?.style??{},ue=ee.htmlProps.style,ve={...ee.htmlProps,style:ue?{...pe,...ue}:pe},xe=ee.content??K,$e=typeof xe=="string"&&xe.length>0?{title:xe}:{},{before:te,after:he,overlay:Re,below:Ce}=ee,Me=te!=null||he!=null||Re!=null||Ce!=null?x.jsxs(x.Fragment,{children:[te,he!=null?x.jsxs("div",{className:"x3nfvp2 x6s0dn4 xzye2dw xeuugli",children:[xe,he]}):xe,Re,Ce]}):xe;return x.jsx(L,{...ve,...$e,contextMenuActions:ee.contextMenuActions,xstyle:ee.xstyle,children:Me},Z.key)}),B=hi(E,Z=>Z.transformHeaderRow,{htmlProps:{},xstyle:[],children:x.jsx(x.Fragment,{children:q})}),U=e!=null&&e.length>0,_=M.length>0,P={...F.htmlProps.style,...k},G=H.tableMinWidth>0?{...P,minWidth:wK(P.minWidth,H.tableMinWidth)}:P;let X=x.jsx("table",{ref:v,...T!=null?{"aria-rowcount":T}:null,...F.htmlProps,...ye(fe("table"),de(...F.xstyle,y),[F.htmlProps.className,m].filter(Boolean).join(" ")||void 0,G),...w,children:o||x.jsxs(x.Fragment,{children:[_&&x.jsx(ek,{children:x.jsx(A,{...B.htmlProps,isHeaderRow:!0,xstyle:B.xstyle,children:B.children})}),x.jsx(tk,{children:U?e.map((Z,Q)=>{const K=r==null?Q:typeof r=="function"?r(Z):String(Z[r]);return x.jsx(lW,{item:Z,rowIndex:Q,rowKey:K,columns:M,plugins:E,textOverflow:l,RowComponent:A,CellComponent:N,ariaRowIndex:R?C+Q:void 0},K)}):e!=null&&f!==!1&&x.jsx("tr",{children:x.jsx("td",{colSpan:M.length,children:f??x.jsx(fc,{title:S("@astryx.table.noData"),isCompact:!0})})})})]})});if(u){const Z=hi(E,Q=>Q.transformScrollWrapper,{htmlProps:{},xstyle:[]});X=x.jsx(u,{htmlProps:Z.htmlProps,xstyle:Z.xstyle,beforeTable:Z.beforeTable,afterTable:Z.afterTable,children:X})}for(let Z=E.length-1;Z>=0;Z--){const Q=E[Z];if(Q.transformTableContext)try{X=Q.transformTableContext(X)}catch(K){Fb("Table","Plugin threw in transformTableContext:",K)}}return X}const K6=cW;K6.displayName="BaseTable";const W6=["columnSettings","sort","tree","selection","pagination"],C$=new Map(W6.map((e,t)=>[e,t]));function uW(e){const t=W6.length;return e.sort(([r],[s])=>{const o=C$.get(r)??t,l=C$.get(s)??t;return o-l})}const $h=new Set(["transformColumns","transformTable","transformHeaderRow","transformHeaderCell","transformBodyRow","transformBodyCell","transformScrollWrapper","transformTableContext"]);function dW(e,t){const r=Object.keys(t);for(const o of r)$h.has(o)||Ea("Table",`Plugin "${e}" has unknown key "${o}". Valid keys: ${[...$h].join(", ")}. This key will be ignored.`);for(const o of r)if($h.has(o)){const l=t[o];l!=null&&typeof l!="function"&&Ea()}r.some(o=>$h.has(o)&&typeof t[o]=="function")||Ea()}function fW(e,t){const r=g.useRef(null);if(r.current!=null){const l=r.current;if(l.basePlugins===e&&l.userPlugins===t)return l.result;if(l.basePlugins===e&&hW(l.userPlugins,t))return l.userPlugins=t,l.result}const s=t?uW(Object.entries(t)).map(([,l])=>l):[],o=[...e,...s];if(t)for(const[l,u]of Object.entries(t))dW(l,u);return r.current={basePlugins:e,userPlugins:t,result:o},o}function hW(e,t){if(e===t)return!0;if(e==null||t==null)return!1;const r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(const o of r)if(e[o]!==t[o])return!1;return!0}const pW={base:{kMv6JI:"xjb2p0i",kMwMTN:"x1tgivj0",$$css:!0}},j$={base:{kXHlph:"xw2csxc",kuHK5b:"x5lxg6s",$$css:!0},containerBleed:{keTefX:"xojxgvx",k71WvV:"x1fcf3bl",kzqmXN:"xx6qvi6",keoZOQ:"xkibk3",k1K539:"xlayyun",$$css:!0}};function xW({children:e,htmlProps:t,xstyle:r,beforeTable:s,afterTable:o}){const u=Nt()("@astryx.table.label"),{getViewportProps:f,getContentProps:d,state:p}=gU({axis:"inline",keyboardAccess:{owner:"content"},overscroll:"contain"}),{ref:y,...m}=t??{},k=f({role:"group","aria-label":u,...p.inline.isScrollable?{tabIndex:0}:{},...m,ref:y,...ye(fe("table-scroll-wrapper"),de(j$.base,j$.containerBleed,...r??[]))});return x.jsx("div",{...k,children:x.jsxs("div",{...d(),children:[s,e,o]})})}function gW(){return{transformTable(e){return{...e,xstyle:[...e.xstyle,pW.base]}}}}function mW({density:e="balanced",dividers:t="rows",isStriped:r=!1,hasHover:s=!1,verticalAlign:o="middle",textOverflow:l="wrap",plugins:u,columns:f,data:d,ref:p,...y}){const m=g.useMemo(()=>gW(),[]),k=g.useMemo(()=>[m],[m]),v=fW(k,u),w=g.useMemo(()=>({density:e,dividers:t,isStriped:r,hasHover:s,verticalAlign:o,textOverflow:l}),[e,t,r,s,o,l]);return x.jsx($x,{value:w,children:x.jsx(K6,{ref:p,data:d,columns:f,plugins:v,textOverflow:l,scrollWrapper:xW,...y})})}const Cx=mW;Cx.displayName="Table";function yW(e,t){if(!e||e.length===0||t.length===0)return null;let r=-1;for(let u=0;u<e.length;u++)t.includes(e[u].key)&&(r=u);if(r===-1)return null;const s=R6(e),o=new Map;let l=0;for(let u=0;u<=r;u++)o.set(e[u].key,l),l+=s.get(e[u].key)??0;return o}function bW(e,t){if(!e||e.length===0||t.length===0)return null;let r=-1;for(let u=0;u<e.length;u++)if(t.includes(e[u].key)){r=u;break}if(r===-1)return null;const s=R6(e),o=new Map;let l=0;for(let u=e.length-1;u>=r;u--)o.set(e[u].key,l),l+=s.get(e[u].key)??0;return o}function R$(e,t,r,s){const o=yW(e,r);if(o?.has(t))return{edge:"start",offset:o.get(t)??0};const l=bW(e,s);return l?.has(t)?{edge:"end",offset:l.get(t)??0}:null}const kW="--table-sticky-shadow-start",vW="--table-sticky-shadow-end",Th={cell:{kVAEAm:"x7wzq59",kWkggS:"x1fd97le",kgeoSG:"x1cpjm7i",kEoFBp:"x1hmns74",kFcpXp:"xxx281p",kxmVGU:"xy5mcqj",km8f2m:"xkk1bqk",kLkRvE:"x1uvfo0n",k7KCAZ:"xxcwgru",kKXxxB:"x1y1nw7a",kqUdNP:"xa5v58t",kHypHr:"xx83zyx",kVQacm:"x1rea2x4",$$css:!0},headerCell:{kY2c9j:"xzkaem6",$$css:!0},bodyCell:{kY2c9j:"x1vjfegm",$$css:!0}},Ch={start:{k5JduY:"x1s928wv",kwXMNM:"x1j6awrg",k3foIR:"x1m1drc7",k8Iv0R:"x1xrz1ek",kH8aOt:"x1unh1gc",kkgrvl:"xzkji8o",kLigFv:"x1qyefdi x1c108yo",kloYau:"x2q1x1w",kFJxch:"x17s1k9h",kypkao:"x1sggmfs",kNctxI:"x1ppu1g5 xk7vujl",$$css:!0},end:{k5JduY:"x1s928wv",kwXMNM:"x1j6awrg",k3foIR:"x1m1drc7",k8Iv0R:"x1xrz1ek",kc1e00:"x1iygr5g",kkgrvl:"xzkji8o",kLigFv:"xvs0bi2 x12ayhd5",kloYau:"x2q1x1w",kFJxch:"x17s1k9h",kypkao:"x1c2idit",kNctxI:"xccdyz0 xlptwl5",$$css:!0}},A$=[];function wW(e){const{startKeys:t,endKeys:r}=e,s=t??A$,o=r??A$,l=s.length>0,u=o.length>0,f=g.useRef({start:s,end:o,hasStart:l,hasEnd:u});f.current={start:s,end:o,hasStart:l,hasEnd:u};const d=g.useRef(null),p=g.useCallback(y=>{if(d.current?.(),d.current=null,!y)return;const m=()=>{const{hasStart:v,hasEnd:w}=f.current,S=y.scrollWidth-y.clientWidth,E=S>1,R=Math.abs(y.scrollLeft);v&&y.style.setProperty(kW,E&&R>1?"1":"0"),w&&y.style.setProperty(vW,E&&R<S-1?"1":"0")};y.addEventListener("scroll",m,{passive:!0});const k=typeof ResizeObserver<"u"?new ResizeObserver(m):null;k?.observe(y),m(),d.current=()=>{y.removeEventListener("scroll",m),k?.disconnect()}},[]);return g.useMemo(()=>({transformHeaderCell(y,m){const{start:k,end:v}=f.current,w=R$(y.columns,m.key,k,v);if(!w)return y;const S=w.edge==="start"?{position:"sticky",insetInlineStart:`${w.offset}px`}:{position:"sticky",insetInlineEnd:`${w.offset}px`};return{...y,htmlProps:{...y.htmlProps,style:{...y.htmlProps.style,...S}},xstyle:[...y.xstyle,Th.cell,Th.headerCell,w.edge==="start"?Ch.start:Ch.end]}},transformBodyCell(y,m){const{start:k,end:v}=f.current,w=R$(y.columns,m.key,k,v);if(!w)return y;const S=w.edge==="start"?{insetInlineStart:`${w.offset}px`}:{insetInlineEnd:`${w.offset}px`};return{...y,htmlProps:{...y.htmlProps,style:{...y.htmlProps.style,...S}},xstyle:[...y.xstyle,Th.cell,Th.bodyCell,w.edge==="start"?Ch.start:Ch.end]}},transformScrollWrapper(y){if(!f.current.hasStart&&!f.current.hasEnd)return y;const m=y.htmlProps.ref,k=v=>{p(v),typeof m=="function"?m(v):m!=null&&(m.current=v)};return{...y,htmlProps:{...y.htmlProps,ref:k}}}}),[p])}const SW={base:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kOIVth:"xzye2dw",kZKoxP:"x1grt7ep",k8WAf4:"xt970qd",kg3NbH:"xf314gf",kaIpWk:"xjspbzw",kMv6JI:"xjb2p0i",kGuDYH:"x141an7d",kLWn49:"x1ltkj2j",k63SB2:"x1e4wzip",khDVqt:"xuxw1ft",ks0D6T:"x193iq5w",k7Eaqz:"xeuugli",$$css:!0}},EW={neutral:{kWkggS:"x17x4s8c",kMwMTN:"x1tgivj0",$$css:!0},info:{kWkggS:"x1ewilqj",kMwMTN:"x17wrial",$$css:!0},success:{kWkggS:"xdsz4j9",kMwMTN:"xri61p4",$$css:!0},warning:{kWkggS:"x1q8g9m5",kMwMTN:"xrebv38",$$css:!0},error:{kWkggS:"x1pjz0fi",kMwMTN:"x1m024r3",$$css:!0},blue:{kWkggS:"x1o0wnni",kMwMTN:"x1vvqiwl",$$css:!0},cyan:{kWkggS:"x1rgj867",kMwMTN:"x1txnczv",$$css:!0},green:{kWkggS:"x1sqjeoo",kMwMTN:"xltfdvo",$$css:!0},orange:{kWkggS:"x1e9xt6e",kMwMTN:"xm47u9q",$$css:!0},pink:{kWkggS:"xnpoty2",kMwMTN:"xiuofww",$$css:!0},purple:{kWkggS:"x16i6n6f",kMwMTN:"x1m9wyeb",$$css:!0},red:{kWkggS:"x1cibrc5",kMwMTN:"x1joocv1",$$css:!0},teal:{kWkggS:"x1jtji5o",kMwMTN:"x9x0lbs",$$css:!0},yellow:{kWkggS:"x1bo7t0x",kMwMTN:"xdhq94a",$$css:!0}};function Y6({variant:e="neutral",label:t,icon:r,xstyle:s,className:o,style:l,ref:u,...f}){const d=typeof t=="number"?String(t):typeof t=="string"&&t.length>0?t:void 0;return x.jsxs("span",{ref:u,...ye(fe("badge",{variant:e}),de(SW.base,EW[e],s),o,l),title:d,...f,children:[r,x.jsx("span",{className:"xb3r6kr xlyipyv xeuugli",children:t})]})}Y6.displayName="Badge";const jh={dropZone:{kAzted:"x15070dp",ksu8eU:"xbsl7fq",kMzoRj:"x1litavf",kVAM5u:"xvy26l8",kWkggS:"xwmxj5m",kkrTdU:"x1ed109x",kI3sdo:"x1a2a7pz",k3Woio:"x1p25gnr",kiEn40:"xh2nty3",$$css:!0},content:{kAzted:"x1jwcc43",$$css:!0},urlLink:{kjj79g:"xl56j7k",kzqmXN:"xh8yej3",k9WMMc:"x2b8uid",$$css:!0},enterKey:{kKVMdj:"x1cytxng",k44tkh:"x1sbju2s",ko0y90:"xa4qsjk",kyAemX:"x4hg4is",$$css:!0}};function $W(e){try{const t=new URL(e);return t.protocol==="http:"||t.protocol==="https:"}catch{return!1}}function TW({isOpen:e,onOpenChange:t,onCreated:r}){const{t:s}=rn(),o=Io(),l=qr(),u=g.useRef(null),[f,d]=g.useState(""),p=Er({mutationFn:RG,onSuccess:k=>{if(!k.ok){o({body:s(rd(k.error.code)),type:"error",uniqueID:`capture-error-${k.error.code}`}),k.error.code==="CAPTURE_ALREADY_EXISTS"&&d(""),u.current?.focus();return}l.invalidateQueries({queryKey:Pn.all}),o({body:s("captures.captureAdded"),uniqueID:"capture-added"}),r(k.data)}});g.useEffect(()=>{e&&(d(""),requestAnimationFrame(()=>{u.current?.focus()}))},[e]);const y=k=>{const v=k.clipboardData.getData("text/plain").trim();k.preventDefault(),v&&d(v)},m=k=>{if(!(k.key!=="Enter"||p.isPending)&&(k.preventDefault(),!!f)){if(!$W(f)){o({body:s("captures.invalidUrl"),type:"error",uniqueID:"invalid-capture-url"});return}p.mutate({url:f})}};return x.jsx(wx,{isOpen:e,onOpenChange:t,width:620,padding:4,purpose:"form","aria-label":s("captures.addCapture"),children:x.jsx(Ks,{ref:u,role:"button",tabIndex:0,"aria-label":s("captures.pasteLink"),padding:8,variant:"transparent",xstyle:jh.dropZone,onClick:()=>{u.current?.focus()},onPaste:y,onKeyDown:m,children:x.jsx(We,{hAlign:"center",vAlign:"center",gap:4,xstyle:jh.content,children:f?x.jsxs(x.Fragment,{children:[x.jsx(ix,{href:f,isStandalone:!0,size:"lg",display:"block",weight:"semibold",maxLines:3,target:"_blank",xstyle:jh.urlLink,children:f}),p.isPending?x.jsx(Je,{type:"supporting",children:s("captures.capturing")}):x.jsxs(Rt,{gap:2,vAlign:"center",hAlign:"center",children:[x.jsx(wp,{keys:"enter",xstyle:jh.enterKey}),x.jsx(Je,{type:"supporting",children:s("captures.enterToCapture")})]})]}):x.jsxs(Rt,{gap:2,vAlign:"center",hAlign:"center",wrap:"wrap",children:[x.jsx(wp,{keys:"mod+v"}),x.jsx(Je,{type:"supporting",children:s("captures.toPaste")})]})})})})}const M$={noteButton:{kzqmXN:"xh8yej3",kjj79g:"x1nhvcw1",k9WMMc:"x1yc453h",$$css:!0},noteInput:{k7Eaqz:"xeuugli",$$css:!0}};function CW({capture:e}){const{t}=rn(),r=Io(),s=qr(),[o,l]=g.useState(!1),[u,f]=g.useState(e.userNote??""),d=Er({mutationFn:p=>MG(e.id,p),onSuccess:p=>{if(!p.ok){r({body:t(rd(p.error.code)),type:"error"});return}f(p.data.userNote??""),l(!1),s.invalidateQueries({queryKey:Pn.all})}});if(o){const p=()=>{if(d.isPending||u===(e.userNote??"")){l(!1);return}d.mutate(u)};return x.jsx(Fa,{label:t("captures.note"),isLabelHidden:!0,size:"sm",value:u,onChange:f,onEnter:p,onBlur:p,hasAutoFocus:!0,isLoading:d.isPending,width:"100%",containerXstyle:M$.noteInput})}return x.jsx(jt,{label:e.userNote||t("captures.addNote"),variant:"ghost",size:"sm",xstyle:M$.noteButton,onClick:()=>{f(e.userNote??""),l(!0)}})}const jW={urlLink:{kzqmXN:"xh8yej3",$$css:!0}},RW={"--table-sticky-background":"var(--color-background-surface)"};function N$(e,t){return t===void 0?e:`${e} (${t})`}function AW(){const{t:e}=rn(),t=yc(),r=qr(),s=Io(),[o,l]=g.useState("all"),[u,f]=g.useState(!1),[d,p]=g.useState(null),y=wW({endKeys:["actions"]}),m=ys({queryKey:Pn.list(o),queryFn:()=>TG(o)}),k=ys({queryKey:Pn.counts(),queryFn:CG}),v=Er({mutationFn:g6,onSuccess:T=>{s(T.ok?{body:e("captures.recaptureStarted"),uniqueID:"recapture-started"}:{body:e(rd(T.error.code)),type:"error",uniqueID:T.error.code})}}),w=Er({mutationFn:AG,onSuccess:T=>{if(!T.ok){s({body:e(rd(T.error.code)),type:"error",uniqueID:T.error.code}),p(null);return}r.invalidateQueries({queryKey:Pn.all}),s({body:e("captures.captureDeleted"),uniqueID:"capture-deleted"}),p(null)}}),S=()=>{r.invalidateQueries({queryKey:Pn.list(o)})},E=g.useMemo(()=>[{key:"url",header:e("captures.url"),width:Kh(3),renderCell:T=>x.jsx(ix,{href:T.url,isStandalone:!0,display:"block",maxLines:1,target:"_blank",tooltip:T.url,xstyle:jW.urlLink,children:T.url})},{key:"title",header:e("captures.title"),width:Kh(2),renderCell:T=>x.jsx(Je,{maxLines:1,children:T.title??""})},{key:"note",header:e("captures.note"),width:Kh(2),renderCell:T=>x.jsx(CW,{capture:T})},{key:"updatedAt",header:e("captures.updatedAt"),width:jo(160),renderCell:T=>x.jsx(Je,{color:"secondary",children:T.updatedAt})},{key:"createdAt",header:e("captures.createdAt"),width:jo(160),renderCell:T=>x.jsx(Je,{color:"secondary",children:T.createdAt})},{key:"actions",header:"",width:jo(184),align:"end",renderCell:T=>x.jsxs(Rt,{gap:1,hAlign:"end",children:[x.jsx(_r,{label:e("captures.viewDetails"),tooltip:e("captures.viewDetails"),icon:x.jsx(dj,{}),size:"sm",variant:"ghost",onClick:()=>{t(`/library/captures/${T.id}`)}}),x.jsx(_r,{label:e("captures.viewJobs"),tooltip:e("captures.viewJobs"),icon:x.jsx(wP,{}),size:"sm",variant:"ghost",onClick:()=>{t(`/library/captures/${T.id}/jobs`)}}),x.jsx(_r,{label:e("captures.recapture"),tooltip:e("captures.recapture"),icon:x.jsx(ij,{}),size:"sm",variant:"ghost",onClick:()=>{v.mutate(T.id)}}),x.jsx(Ex,{label:`${e("captures.delete")} ${T.url}`,isOpen:d?.id===T.id,onOpenChange:A=>{p(A?T:null)},content:x.jsxs(We,{gap:3,children:[x.jsx(Je,{type:"label",children:e("captures.deleteCaptureTitle")}),x.jsxs(Rt,{gap:2,hAlign:"end",children:[x.jsx(jt,{label:e("captures.cancel"),size:"sm",variant:"ghost",onClick:()=>{p(null)}}),x.jsx(jt,{label:e("captures.delete"),size:"sm",variant:"destructive",isLoading:w.isPending&&d?.id===T.id,onClick:()=>{w.mutate(T.id)}})]})]}),children:x.jsx(_r,{label:e("captures.delete"),tooltip:e("captures.delete"),icon:x.jsx(pj,{}),size:"sm",variant:"ghost"})})]})}],[w,d,t,v,e]),R=m.data??[],C=k.data;return x.jsxs(x.Fragment,{children:[x.jsx(Ed,{children:x.jsxs(Rt,{gap:2,vAlign:"center",children:[x.jsx(_r,{label:e("captures.refresh"),tooltip:e("captures.refresh"),icon:x.jsx(ux,{}),size:"sm",variant:"ghost",onClick:S}),x.jsx(jt,{label:e("captures.addCapture"),size:"sm",variant:"primary",onClick:()=>{f(!0)}})]})}),x.jsxs(We,{gap:5,children:[x.jsxs(E6,{label:e("captures.captureFilter"),size:"sm",value:o,onChange:T=>{l(T)},children:[x.jsx(nb,{value:"all",label:N$(e("captures.allCaptures"),C?.all)}),x.jsx(nb,{value:"no-successful",label:N$(e("captures.noCapturedContent"),C?.noSuccessful)})]}),R.length===0?x.jsx(v6,{startIcon:fj,centerIcon:HP,endIcon:$0,title:e("captures.emptyTitle"),description:e("captures.emptyDescription"),actions:x.jsx(jt,{label:e("captures.addCapture"),size:"sm",variant:"primary",icon:x.jsx(hj,{}),onClick:()=>{f(!0)}})}):x.jsx(Cx,{data:R,columns:E,idKey:"id",hasHover:!0,density:"compact",plugins:{stickyColumns:y},style:RW})]}),x.jsx(TW,{isOpen:u,onOpenChange:f,onCreated:()=>{f(!1)}})]})}const X6=Symbol("MarkdownAstLegacyCodeLanguage");function MW(e,t){return t===e.lang||Object.defineProperty(e,X6,{configurable:!1,enumerable:!0,value:t,writable:!1}),e}function Z6(e){const t=e[X6];return t===void 0?e.lang:t}function NW(e,t,r){const s=o=>{if(o.type===t&&r(o),"children"in o)for(const l of o.children)s(l)};s(e)}function Rd(e,t=r=>r.source??""){let r="";for(const s of e)switch(s.type){case"text":case"inlineCode":case"inlineMath":r+=s.value;break;case"strong":case"emphasis":case"delete":case"link":r+=Rd(s.children,t);break;case"image":r+=s.alt;break;case"citation":case"break":break;case"extension":r+=t(s);break}return r}const z$=new Map,zW=/\b(const|let|var|function|class|if|else|for|while|return|import|export|from|default|async|await|try|catch|throw|new|typeof|instanceof|interface|type|enum|extends|implements|switch|case|break|continue|do|in|of|void|null|undefined|true|false|this|super|yield|delete|static|public|private|protected|readonly|abstract|as|is|keyof|declare|module|namespace|require)\b/,LW=/\b(def|class|if|elif|else|for|while|return|import|from|as|with|try|except|raise|True|False|None|and|or|not|in|is|lambda|yield|async|await|pass|break|continue|del|global|nonlocal|assert|finally|print|self|cls)\b/,DW=/\b(if|then|else|elif|fi|for|do|done|while|until|case|esac|function|in|select|return|exit|local|export|source|alias|unalias|readonly|shift|eval|exec|set|unset|trap|wait|read|echo|printf|test|true|false)\b/,OW=/\b(important|inherit|initial|unset|revert|auto|none)\b/,IW=/\b(function|class|if|else|elseif|for|foreach|while|return|echo|public|private|protected|static|new|try|catch|throw|namespace|use|require|require_once|include|include_once|extends|implements|interface|abstract|final|const|var|true|false|null|array|isset|unset|empty|list|match|enum|switch|case|break|continue|do|yield|fn)\b/,_W=/\b(function|class|if|else|for|foreach|while|return|echo|public|private|protected|static|new|try|catch|throw|namespace|use|require|include|extends|implements|interface|abstract|final|const|shape|vec|dict|keyset|async|await|concurrent|enum|type|newtype|tuple|inout)\b/;function Q6(e){const t=z$.get(e);if(t!==void 0)return t;const r=qW(e);return z$.set(e,r),r}function qW(e){const t=PW(e);return t?{defaultType:t.defaultType,patterns:t.patterns.map(r=>{const s=r.regex.flags.replace(/[gy]/g,"")+"y";return{...r,anchored:new RegExp(r.regex.source,s)}})}:null}function PW(e){switch(e){case"typescript":case"javascript":case"tsx":case"jsx":case"ts":case"js":return{defaultType:"variable",patterns:[{type:"comment",regex:/\/\*[\s\S]*?\*\//},{type:"comment",regex:/\/\/[^\n]*/},{type:"string",regex:/`(?:[^`\\]|\\.)*`/},{type:"string",regex:/"(?:[^"\\]|\\.)*"/},{type:"string",regex:/'(?:[^'\\]|\\.)*'/},{type:"constant",regex:/@[\w]+/},{type:"number",regex:/\b0[xX][0-9a-fA-F_]+\b/},{type:"number",regex:/\b0[bB][01_]+\b/},{type:"number",regex:/\b0[oO][0-7_]+\b/},{type:"number",regex:/\b\d[\d_]*\.?[\d_]*(?:[eE][+-]?\d+)?\b/},{type:"keyword",regex:zW},{type:"function",regex:/\b[a-zA-Z_$][\w$]*(?=\s*\()/},{type:"type",regex:/\b[A-Z][a-zA-Z0-9_]*\b/},{type:"operator",regex:/[+\-*/%=!<>&|^~?:]+/},{type:"punctuation",regex:/[{}()\[\];,.]/},{type:"variable",regex:/\b[a-zA-Z_$][\w$]*\b/}]};case"json":return{defaultType:"punctuation",patterns:[{type:"property",regex:/"(?:[^"\\]|\\.)*"(?=\s*:)/},{type:"string",regex:/"(?:[^"\\]|\\.)*"/},{type:"number",regex:/-?\b\d+\.?\d*(?:[eE][+-]?\d+)?\b/},{type:"constant",regex:/\b(true|false|null)\b/},{type:"punctuation",regex:/[{}()\[\]:,]/}]};case"html":case"xml":case"svg":return{defaultType:"variable",patterns:[{type:"comment",regex:/<!--[\s\S]*?-->/},{type:"keyword",regex:/<!DOCTYPE[^>]*>/i},{type:"tag",regex:/<\/[a-zA-Z][\w-]*\s*>/},{type:"tag",regex:/<[a-zA-Z][\w-]*/},{type:"tag",regex:/\/?>/},{type:"string",regex:/"(?:[^"\\]|\\.)*"/},{type:"string",regex:/'(?:[^'\\]|\\.)*'/},{type:"attribute",regex:/\b[a-zA-Z_:][\w:.-]*(?=\s*=)/},{type:"operator",regex:/=/}]};case"css":case"scss":case"less":return{defaultType:"variable",patterns:[{type:"comment",regex:/\/\*[\s\S]*?\*\//},{type:"comment",regex:/\/\/[^\n]*/},{type:"string",regex:/"(?:[^"\\]|\\.)*"/},{type:"string",regex:/'(?:[^'\\]|\\.)*'/},{type:"variable",regex:/--[a-zA-Z_-][\w-]*/},{type:"number",regex:/-?\b\d+\.?\d*(?:px|em|rem|%|vh|vw|vmin|vmax|ch|ex|deg|rad|turn|s|ms|fr)?\b/},{type:"constant",regex:/#[0-9a-fA-F]{3,8}\b/},{type:"keyword",regex:OW},{type:"keyword",regex:/@[a-zA-Z][\w-]*/},{type:"tag",regex:/[.#][a-zA-Z_-][\w-]*/},{type:"keyword",regex:/::?[a-zA-Z][\w-]*/},{type:"function",regex:/\b[a-zA-Z_-][\w-]*(?=\s*\()/},{type:"property",regex:/[a-zA-Z_-][\w-]*(?=\s*:)/},{type:"punctuation",regex:/[{}()\[\];:,]/},{type:"operator",regex:/[+~>*=|^$]/}]};case"python":case"py":return{defaultType:"variable",patterns:[{type:"string",regex:/"""[\s\S]*?"""/},{type:"string",regex:/'''[\s\S]*?'''/},{type:"string",regex:/f"(?:[^"\\]|\\.)*"/},{type:"string",regex:/f'(?:[^'\\]|\\.)*'/},{type:"comment",regex:/#[^\n]*/},{type:"string",regex:/"(?:[^"\\]|\\.)*"/},{type:"string",regex:/'(?:[^'\\]|\\.)*'/},{type:"constant",regex:/@[\w.]+/},{type:"number",regex:/\b0[xX][0-9a-fA-F_]+\b/},{type:"number",regex:/\b0[bB][01_]+\b/},{type:"number",regex:/\b0[oO][0-7_]+\b/},{type:"number",regex:/\b\d[\d_]*\.?[\d_]*(?:[eE][+-]?\d+)?j?\b/},{type:"keyword",regex:LW},{type:"function",regex:/\b[a-zA-Z_][\w]*(?=\s*\()/},{type:"type",regex:/\b[A-Z][a-zA-Z0-9_]*\b/},{type:"operator",regex:/[+\-*/%=!<>&|^~@:]+/},{type:"punctuation",regex:/[{}()\[\];,.]/},{type:"variable",regex:/\b[a-zA-Z_][\w]*\b/}]};case"bash":case"sh":case"zsh":case"shell":return{defaultType:"variable",patterns:[{type:"comment",regex:/#[^\n]*/},{type:"string",regex:/"(?:[^"\\]|\\.)*"/},{type:"string",regex:/'[^']*'/},{type:"variable",regex:/\$\{[^}]+\}/},{type:"variable",regex:/\$[a-zA-Z_][\w]*/},{type:"variable",regex:/\$[0-9@#?*!$-]/},{type:"number",regex:/\b\d+\b/},{type:"keyword",regex:DW},{type:"function",regex:/\b[a-zA-Z_][\w]*(?=\s*\()/},{type:"operator",regex:/[|&<>;!]+/},{type:"punctuation",regex:/[{}()\[\]]/}]};case"php":return{defaultType:"variable",patterns:[{type:"comment",regex:/\/\*[\s\S]*?\*\//},{type:"comment",regex:/\/\/[^\n]*/},{type:"comment",regex:/#[^\n]*/},{type:"string",regex:/"(?:[^"\\]|\\.)*"/},{type:"string",regex:/'(?:[^'\\]|\\.)*'/},{type:"variable",regex:/\$[a-zA-Z_][\w]*/},{type:"number",regex:/\b0[xX][0-9a-fA-F]+\b/},{type:"number",regex:/\b\d+\.?\d*(?:[eE][+-]?\d+)?\b/},{type:"keyword",regex:IW},{type:"function",regex:/\b[a-zA-Z_][\w]*(?=\s*\()/},{type:"type",regex:/\b[A-Z][a-zA-Z0-9_]*\b/},{type:"operator",regex:/[+\-*/%=!<>&|^~?:.]+/},{type:"constant",regex:/@[\w]+/},{type:"punctuation",regex:/[{}()\[\];,.]/}]};case"hack":return{defaultType:"variable",patterns:[{type:"comment",regex:/\/\*[\s\S]*?\*\//},{type:"comment",regex:/\/\/[^\n]*/},{type:"string",regex:/"(?:[^"\\]|\\.)*"/},{type:"string",regex:/'(?:[^'\\]|\\.)*'/},{type:"variable",regex:/\$[a-zA-Z_][\w]*/},{type:"number",regex:/\b0[xX][0-9a-fA-F]+\b/},{type:"number",regex:/\b\d+\.?\d*(?:[eE][+-]?\d+)?\b/},{type:"keyword",regex:_W},{type:"type",regex:/\b[A-Z][a-zA-Z0-9_]*\b/},{type:"function",regex:/\b[a-zA-Z_][\w]*(?=\s*\()/},{type:"property",regex:new RegExp("(?<=->|::)\\b[a-zA-Z_][\\w]*\\b")},{type:"operator",regex:/[+\-*/%=!<>&|^~?:.]+/},{type:"constant",regex:/<<[\w]+/},{type:"punctuation",regex:/[{}()\[\];,.]/}]};case"yaml":case"yml":return{defaultType:"variable",patterns:[{type:"comment",regex:/#[^\n]*/},{type:"string",regex:/"(?:[^"\\]|\\.)*"/},{type:"string",regex:/'(?:[^'\\]|\\.)*'/},{type:"constant",regex:/\b(true|false|yes|no|on|off|null|~)\b/i},{type:"variable",regex:/[&*][\w]+/},{type:"type",regex:/!!\w+/},{type:"number",regex:/\b-?\d+\.?\d*(?:[eE][+-]?\d+)?\b/},{type:"property",regex:/^[ \t]*[\w][\w ./-]*(?=\s*:)/m},{type:"keyword",regex:/---/},{type:"keyword",regex:/\.\.\./},{type:"operator",regex:/[:|>\-?]/},{type:"punctuation",regex:/[{}()\[\],]/},{type:"variable",regex:/\b[a-zA-Z_][\w]*\b/}]};case"markdown":case"md":return{defaultType:"variable",patterns:[{type:"keyword",regex:/^```[\w]*$/m},{type:"keyword",regex:/^#{1,6}\s+.*/m},{type:"keyword",regex:/^---$/m},{type:"keyword",regex:/^\*\*\*$/m},{type:"string",regex:/\*\*(?:[^*]|\*(?!\*))+\*\*/},{type:"string",regex:/\*(?:[^*])+\*/},{type:"constant",regex:/`[^`]+`/},{type:"function",regex:/\[(?:[^\]])+\]\([^)]+\)/},{type:"comment",regex:/^>\s+.*/m},{type:"operator",regex:/^\s*[-*+]\s/m},{type:"number",regex:/^\s*\d+\.\s/m}]};default:return null}}const L$=2e3,BW=800;async function HW(){return typeof scheduler<"u"&&typeof scheduler.yield=="function"?scheduler.yield():new Promise(e=>setTimeout(e,0))}function J6(e,t,r,s){const o=[];let l=r;const u=Math.min(s,e.length);for(;l<u;){let f=!1;for(const d of t.patterns){d.anchored.lastIndex=l;const p=d.anchored.exec(e);if(p&&p.index===l&&p[0].length>0){d.type!==t.defaultType&&o.push({type:d.type,start:l-r,end:l-r+p[0].length}),l+=p[0].length,f=!0;break}}f||l++}return o}function FW(e,t){const r=Q6(t);if(!r)return[];const s=[];let o=0;for(let l=0;l<=e.length;l++)(l===e.length||e[l]===`
95
- `)&&(s.push(J6(e,r,o,l)),o=l+1);return s}async function UW(e,t,r){const s=Q6(t);if(!s)return[];const o=[];let l=0,u=0;for(let f=0;f<=e.length;f++)if((f===e.length||e[f]===`
96
- `)&&(o.push(J6(e,s,l,f)),u+=f-l+1,l=f+1,u>=BW&&f<e.length)){if(r?.aborted)return o;u=0,await HW()}return o}function VW(e,t){const r=[0];for(let l=0;l<t.length;l++)t[l]===`
97
- `&&r.push(l+1);const s=Array.from({length:r.length},()=>[]);let o=0;for(const l of e){for(;o<r.length-1&&l.start>=r[o+1];)o++;const u=r[o];s[o].push({type:l.type,start:l.start-u,end:l.end-u})}return s}const GW=`:root {
98
- ${Object.entries(Jb).map(([e,t])=>` ${e}: ${t};`).join(`
99
- `)}
100
- }`,KW=`
101
- ${GW}
102
-
103
- .astryx-code-block code::highlight(astryx-keyword),
104
- .astryx-codeeditor code::highlight(astryx-keyword) { color: var(--color-syntax-keyword); }
105
- .astryx-code-block code::highlight(astryx-string),
106
- .astryx-codeeditor code::highlight(astryx-string) { color: var(--color-syntax-string); }
107
- .astryx-code-block code::highlight(astryx-comment),
108
- .astryx-codeeditor code::highlight(astryx-comment) { color: var(--color-syntax-comment); }
109
- .astryx-code-block code::highlight(astryx-number),
110
- .astryx-codeeditor code::highlight(astryx-number) { color: var(--color-syntax-number); }
111
- .astryx-code-block code::highlight(astryx-function),
112
- .astryx-codeeditor code::highlight(astryx-function) { color: var(--color-syntax-function); }
113
- .astryx-code-block code::highlight(astryx-type),
114
- .astryx-codeeditor code::highlight(astryx-type) { color: var(--color-syntax-type); }
115
- .astryx-code-block code::highlight(astryx-tag),
116
- .astryx-codeeditor code::highlight(astryx-tag) { color: var(--color-syntax-tag); }
117
- .astryx-code-block code::highlight(astryx-attribute),
118
- .astryx-codeeditor code::highlight(astryx-attribute) { color: var(--color-syntax-attribute); }
119
- .astryx-code-block code::highlight(astryx-property),
120
- .astryx-codeeditor code::highlight(astryx-property) { color: var(--color-syntax-property); }
121
- .astryx-code-block code::highlight(astryx-operator),
122
- .astryx-codeeditor code::highlight(astryx-operator) { color: var(--color-syntax-operator); }
123
- .astryx-code-block code::highlight(astryx-constant),
124
- .astryx-codeeditor code::highlight(astryx-constant) { color: var(--color-syntax-constant); }
125
- .astryx-code-block code::highlight(astryx-punctuation),
126
- .astryx-codeeditor code::highlight(astryx-punctuation) { color: var(--color-syntax-punctuation); }
127
- .astryx-code-block code::highlight(astryx-variable),
128
- .astryx-codeeditor code::highlight(astryx-variable) { color: var(--color-syntax-variable); }
129
-
130
- /* Span-based fallback classes — used when highlightMode='spans' or
131
- when the CSS Custom Highlight API is not available. */
132
- .astryx-token-keyword { color: var(--color-syntax-keyword); }
133
- .astryx-token-string { color: var(--color-syntax-string); }
134
- .astryx-token-comment { color: var(--color-syntax-comment); }
135
- .astryx-token-number { color: var(--color-syntax-number); }
136
- .astryx-token-function { color: var(--color-syntax-function); }
137
- .astryx-token-type { color: var(--color-syntax-type); }
138
- .astryx-token-tag { color: var(--color-syntax-tag); }
139
- .astryx-token-attribute { color: var(--color-syntax-attribute); }
140
- .astryx-token-property { color: var(--color-syntax-property); }
141
- .astryx-token-operator { color: var(--color-syntax-operator); }
142
- .astryx-token-constant { color: var(--color-syntax-constant); }
143
- .astryx-token-punctuation { color: var(--color-syntax-punctuation); }
144
- .astryx-token-variable { color: var(--color-syntax-variable); }
145
- `;let D$=!1;function jx(){if(D$||typeof document>"u")return;const e=document.createElement("style");e.setAttribute("data-astryx-highlight-styles",""),e.textContent=KW,document.head.appendChild(e),D$=!0}const WW=["keyword","string","comment","number","function","type","tag","attribute","property","operator","constant","punctuation","variable"],O$=new Set(WW);let Rh=null;function YW(e){if(O$.has(e)||(O$.add(e),jx(),typeof document>"u"))return;if(!Rh){const s=document.createElement("style");if(s.setAttribute("data-astryx-highlight-dynamic",""),document.head.appendChild(s),Rh=s.sheet??null,!Rh)return}const t=CSS.escape(`astryx-${e}`),r=`var(${CSS.escape(`--color-syntax-${e}`)}, currentColor)`;try{Rh.insertRule(`.astryx-code-block code::highlight(${t}), .astryx-codeeditor code::highlight(${t}) { color: ${r}; }`)}catch{}}function XW(){const e=new Map;return t=>{let r=e.get(t);if(r)return r;YW(t);const s=`astryx-${t}`;return r=CSS.highlights.get(s),r||(r=new Highlight,CSS.highlights.set(s,r)),e.set(t,r),r}}function eR(e,t,r,s){if(t.length===0)return;const o=e.firstChild;if(!o||o.nodeType!==Node.TEXT_NODE)return;const l=o.length;for(const u of t){if(u.start>=l||u.end<=0)continue;const f=Math.min(u.start,l),d=Math.min(u.end,l),p=s(u.type);try{const y=new Range;y.setStart(o,f),y.setEnd(o,d),p.add(y),r.push({range:y,highlight:p})}catch{}}}function a1(e){for(const{range:t,highlight:r}of e)r.delete(t)}function ZW(e,t,r,s){const o=[],l=e.querySelectorAll("[data-line]");for(let u=0;u<l.length;u++){const f=r+u,d=t[f];d&&d.length>0&&eR(l[u],d,o,s)}return o}function QW(e,t){jx();const r=XW(),s=[],o=[];let l=0;for(let y=0;y<e.children.length;y++){const m=e.children[y],k=m.querySelectorAll("[data-line]");k.length>0&&m.tagName==="DIV"&&!m.hasAttribute("data-line")&&(s.push(m),o.push(l),l+=k.length)}if(s.length===0){const y=[],m=e.querySelectorAll("[data-line]");for(let k=0;k<m.length;k++){const v=t[k];v&&v.length>0&&eR(m[k],v,y,r)}return()=>a1(y)}const u=new Map,f=new Map;function d(y,m){if(u.has(y))return;const k=ZW(y,t,o[m],r);u.set(y,k)}function p(y){const m=u.get(y);m&&(a1(m),u.delete(y))}for(let y=0;y<s.length;y++){const m=s[y],k=w=>{w.skipped?p(m):d(m,y)};m.addEventListener("contentvisibilityautostatechange",k),f.set(m,k);const v=m;typeof v.checkVisibility=="function"?v.checkVisibility({checkVisibilityCSS:!0,contentVisibilityAuto:!0})&&d(m,y):y<5&&d(m,y)}return function(){for(const[m,k]of f)m.removeEventListener("contentvisibilityautostatechange",k);f.clear();for(const m of u.values())a1(m);u.clear()}}const JW={card:{kaIpWk:"xh6dtrn",kMzoRj:"x1litavf",ksu8eU:"x1y0btm7",kVAM5u:"x14i3s5s",$$css:!0},section:{kaIpWk:"x2u8bby",kMzoRj:"xc342km",ksu8eU:"xng3xce",kVAM5u:"x9r1u3d","--color-syntax-background":"x1mtvhk1",$$css:!0}},eY={"--_codeblock-gutter-width":"xtk08jq",$$css:!0},nk={width:e=>[{kzqmXN:e!=null?"x5lhr3w":e,k7Eaqz:(e==="fit-content"?"min(100%, 400px)":null)!=null?"xkj4a21":e==="fit-content"?"min(100%, 400px)":null,ks0D6T:(e==="fit-content"?"100%":null)!=null?"xf68679":e==="fit-content"?"100%":null,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e),"--x-minWidth":(t=>typeof t=="number"?t+"px":t??void 0)(e==="fit-content"?"min(100%, 400px)":null),"--x-maxWidth":(t=>typeof t=="number"?t+"px":t??void 0)(e==="fit-content"?"100%":null)}],gutterWidth:e=>[eY,{"--x---_codeblock-gutter-width":`${e}ch`!=null?`${e}ch`:void 0}]},vr={root:{kVAEAm:"x1n2onr6",kHBbk8:"xc8icb0",k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kogj98:"x1ghz6dp",kWkggS:"xzyc27v",kVQacm:"xb3r6kr",$$css:!0},header:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kUk6DE:"x98rzlu",k7Eaqz:"xeuugli",kmVPX3:"x1717udv",kMzoRj:"xc342km",ksu8eU:"xng3xce",kWkggS:"xjbqb8w",kMwMTN:"x1heor9g",kVVagm:"xln7xf2",k9WMMc:"x1yc453h",$$css:!0},collapseChevronIcon:{k1ekBW:"x11xpdln",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",$$css:!0},collapseChevronExpanded:{k3aq6I:"x1iffjtl",$$css:!0},headerCollapsible:{kkrTdU:"x1ypdohk x16khyan",kfSwDN:"x87ps6o",$$css:!0},code:{k1xSpc:"x1lliihq",kUk6DE:"x98rzlu",k8WAf4:"x8o8v82",kg3NbH:"x1pzlopt",kogj98:"x1ghz6dp",kMv6JI:"x9m5x89",kMwMTN:"xdfisg",kKi2Bq:"xeq4nuv",khDVqt:"x1sdyfia",kTgw9:"x1lldw8n",kHjlTd:"x1h4wwuj",$$css:!0},codeWrapped:{khDVqt:"x126k92a",kTgw9:"x1yn0g08",kHjlTd:"x1mzt3pk",$$css:!0},codeNumbered:{kVAEAm:"x1n2onr6",k5JduY:"x1s928wv",kwXMNM:"x1j6awrg",kSy8m5:"xd54j2p",kc1e00:"x1km86hw",kkgrvl:"xkj6t0a",kQlJh0:"x1p96cux",k6vLHU:"xvsnedh",kkQ525:"xnnzo76",kloYau:"x2q1x1w",$$css:!0},sizeSm:{kGuDYH:"x141an7d",$$css:!0},sizeMd:{kGuDYH:"xp03k98",$$css:!0},copyButton:{kMwMTN:"x1mjzq1q",$$css:!0},copyButtonAbsolute:{kVAEAm:"x10l6tqk",k87sOh:"xctzyg",kt4wiu:"x72tfeb",$$css:!0}},tY=20,nY=100,I$=g.memo(function({lines:t,startIndex:r,highlightSet:s,renderLineContent:o,lineNumbers:l}){return x.jsx(x.Fragment,{children:t.map((u,f)=>{const d=r+f;return x.jsx("div",{"data-line":d+1,...{0:{className:"x17iicif"},2:{className:"x17iicif xrvj5dj x1xx4m37 xf5zn4v x46gnpd x17gn2l9 x19ds33d x1wnbjh8 xtkarl4 x1rbqspl x3nzp0f"},1:{className:"x17iicif xgcxg3y x1ng9b9t x1pzlopt"},3:{className:"x17iicif xrvj5dj x1xx4m37 xf5zn4v x46gnpd x17gn2l9 x19ds33d x1wnbjh8 xtkarl4 x1rbqspl x3nzp0f xgcxg3y x1ng9b9t x1pzlopt"}}[!!l<<1|!!(s?.has(d+1)??!1)<<0],children:o(u,d)},d)})})});function tR(e,t,r,s,o=tY){if(o=Math.max(1,Math.floor(o)),e.length<nY)return x.jsx(I$,{lines:e,startIndex:0,highlightSet:t,renderLineContent:r,lineNumbers:s});const l=[];for(let u=0;u<e.length;u+=o){const f=Math.min(u+o,e.length),d=e.slice(u,f),p=`${d.length}lh`;l.push(x.jsx("div",{...ye({className:"xb5mbof"},{style:{containIntrinsicBlockSize:`auto ${p}`}}),children:x.jsx(I$,{lines:d,startIndex:u,highlightSet:t,renderLineContent:r,lineNumbers:s})},u))}return l}function nR(){return typeof CSS<"u"&&"highlights"in CSS&&typeof Highlight<"u"}function rY(){if(typeof navigator>"u")return!1;const e=navigator.userAgent;return e.includes("AppleWebKit")&&!e.includes("Chrome")}function aY(e,t,r){const[s,o]=g.useState(null),l=g.useMemo(()=>r?VW(r(e,t),e):e.length>=L$?null:FW(e,t),[e,t,r]);return g.useEffect(()=>{if(e.length<L$||r)return;const u=new AbortController;async function f(){try{const d=await UW(e,t,u.signal);u.signal.aborted||o({code:e,language:t,tokens:d})}catch{u.signal.aborted||o({code:e,language:t,tokens:[]})}}return f(),()=>{u.abort()}},[e,t,r]),l??(s?.code===e&&s.language===t?s.tokens:[])}function sY(e,t){if(t.length===0)return e||"​";const r=[];let s=0;for(const o of t){o.start>s&&r.push(e.slice(s,o.start));const l=Math.min(o.end,e.length);r.push(x.jsx("span",{className:`astryx-token-${o.type} xds-token-${o.type}`,children:e.slice(o.start,l)},`${o.start}-${o.type}`)),s=l}return s<e.length&&r.push(e.slice(s)),r.length>0?r:"​"}function oY({lines:e,tokenLines:t,highlightSet:r,isWrapped:s,sizeStyle:o,hasLineNumbers:l,maxDigits:u}){g.useInsertionEffect(()=>{jx()},[]);const f=g.useCallback((d,p)=>{const y=t[p]??[];return x.jsx("span",{className:"xeuugli",children:sY(d,y)})},[t]);return x.jsx("code",{...de(vr.code,o,s&&vr.codeWrapped,l&&vr.codeNumbered,l&&nk.gutterWidth(u)),children:tR(e,r,f,l)})}function iY({lines:e,tokenLines:t,highlightSet:r,isWrapped:s,sizeStyle:o,hasLineNumbers:l,maxDigits:u}){const f=g.useRef(null);g.useEffect(()=>{if(!nR())return;jx();const p=f.current;if(!(!p||t.length===0))return QW(p,t)},[t]);const d=g.useCallback(p=>p||"​",[]);return x.jsx("code",{ref:f,...de(vr.code,o,s&&vr.codeWrapped,l&&vr.codeNumbered,l&&nk.gutterWidth(u)),children:tR(e,r,d,l)})}function rR({code:e,language:t="plaintext",title:r,hasLanguageLabel:s=!0,hasLineNumbers:o=!1,highlightLines:l,hasCopyButton:u=!0,onCopy:f,isWrapped:d=!1,maxHeight:p,isCollapsible:y=!1,collapsibleThreshold:m=10,size:k="md",width:v="fit-content",container:w="card",tokenizer:S,highlightMode:E="auto",syntaxTheme:R,xstyle:C,className:T,style:A,ref:N,...L}){const D=Nt(),{copy:j,isCopied:O}=I4({announce:D("@astryx.codeBlock.copied")}),M=E==="spans"||E==="auto"&&!nR()||E==="auto"&&rY(),H=g.useMemo(()=>{const he=e.split(`
146
- `);return he.length>1&&he[he.length-1]===""&&he.pop(),he},[e]),F=aY(e,t,S),q=g.useMemo(()=>l?new Set(l):null,[l]),B=g.useCallback(async()=>{await j(e)&&f?.()},[e,j,f]),U=k==="sm"?vr.sizeSm:vr.sizeMd,_=String(H.length).length,P=s&&t!=="plaintext"?t:null,G=r!=null||P!=null,X=G&&y&&H.length>=m,Z=g.useMemo(()=>X?{}:null,[X]),[Q,K]=g.useState(null),ae=Z!=null&&Q===Z,I=g.useCallback(()=>{K(he=>he===Z?null:Z)},[Z]),ee=g.useId(),pe=g.useRef(null),ue=p!=null?{maxHeight:typeof p=="number"?`${p}px`:p}:void 0,ve=u?x.jsx(_r,{variant:"ghost",size:"sm",icon:x.jsx(ft,{icon:O?"check":"copy",size:"sm",color:"inherit"}),tooltip:D("@astryx.codeBlock.copyCode"),label:D(O?"@astryx.codeBlock.copied":"@astryx.codeBlock.copyCode"),onClick:he=>{he.stopPropagation(),B()},xstyle:[vr.copyButton,!G&&vr.copyButtonAbsolute],...fe("code-block-copy-button")}):null,xe=G?x.jsxs("div",{...ye(fe("code-block-header",{size:k,language:t,container:w}),{0:{className:"x78zum5 x6s0dn4 x1qughib x1pzlopt xzyc27v x7wzq59 x13vifvy x1vjfegm xce4md1"},1:{className:"x78zum5 x6s0dn4 x1qughib x1pzlopt xzyc27v x7wzq59 x13vifvy x1vjfegm xce4md1 x92x3c3 x1q0q8m5 xw8gpjh"}}[!!o<<0]),children:[x.jsx("div",{role:X?"button":void 0,tabIndex:X?0:void 0,"aria-expanded":X?!ae:void 0,"aria-controls":X?ee:void 0,"aria-label":X&&!r?.trim()&&!P?D("@astryx.codeBlock.code"):void 0,onClick:X?I:void 0,onKeyDown:X?he=>{(he.key==="Enter"||he.key===" ")&&(he.preventDefault(),I())}:void 0,...pn.focusVisible(vr.header,X&&vr.headerCollapsible),children:x.jsxs("span",{...ye(fe("code-block-title",{size:k,language:t}),{className:"x78zum5 x6s0dn4 x141an7d x9m5x89 x1e4wzip x1mjzq1q x1ghz6dp x1ltkj2j"}),children:[X&&x.jsx("span",{className:"x3nfvp2 x6s0dn4 xl56j7k x2lah0s x6jxa94 x1v9usgg xnur1sd xb3r6kr x1mjzq1q x1gbn2au x1aquc0h x12wqnr7 x128ha8g",children:x.jsx(ft,{icon:"chevronRight",size:"xsm",color:"inherit",xstyle:[vr.collapseChevronIcon,!ae&&vr.collapseChevronExpanded]})}),r,r&&P?" — ":"",P]})}),ve]}):null,$e=x.jsx("div",{ref:pe,tabIndex:0,role:"group","aria-label":P??D("@astryx.codeBlock.code"),...ye({className:"xw2csxc x1odjw0f"},{style:ue}),children:x.jsx("div",{...{0:{className:"x78zum5 x1pshirs"},1:{className:"x78zum5 x1pshirs x1ajqlyv"}}[!!(G&&!o)<<0],children:M?x.jsx(oY,{lines:H,tokenLines:F,highlightSet:q,isWrapped:d,sizeStyle:U,hasLineNumbers:o,maxDigits:_}):x.jsx(iY,{lines:H,tokenLines:F,highlightSet:q,isWrapped:d,sizeStyle:U,hasLineNumbers:o,maxDigits:_})})}),te=x.jsxs("pre",{ref:N,...ye(fe("code-block",{size:k,language:t,container:w}),de(vr.root,nk.width(v),JW[w],C),T,A),...L,children:[xe,X?x.jsx("div",{id:ee,inert:ae?!0:void 0,...{0:{className:"xrvj5dj x1tu4anv x1qn9uv2 x80gvsz xlr8y92"},1:{className:"xrvj5dj x1qn9uv2 x80gvsz xlr8y92 xihq33y"}}[!!ae<<0],children:x.jsx("div",{className:"xb3r6kr x2lwn1j",children:$e})}):$e,!G&&ve]});return R?x.jsx(oj,{theme:R,children:te}):te}rR.displayName="CodeBlock";const lY={base:{kMv6JI:"x9m5x89",kGuDYH:"xp03k98",kLWn49:"x15bjb6t",kWkggS:"xwmxj5m",kg3NbH:"x7a5moj",k8WAf4:"x1hp7d8q",kaIpWk:"xx3sua9",kHjlTd:"x1mzt3pk",kTgw9:"x13faqbe",$$css:!0}},cY={primary:{kMwMTN:"x1tgivj0",$$css:!0},secondary:{kMwMTN:"xv1l7n4",$$css:!0},inherit:{kMwMTN:"x1heor9g",$$css:!0}},uY={inherit:{kGuDYH:"x1qlqyl8",kLWn49:"x15bjb6t",$$css:!0}};function rk({children:e,color:t="primary",size:r,xstyle:s,className:o,style:l,ref:u,...f}){return x.jsx("code",{ref:u,...f,...ye(fe("code",{color:t}),de(lY.base,cY[t],r&&uY[r],s),o,l),children:e})}rk.displayName="Code";const _$=[];function aR({label:e,isLabelHidden:t=!1,description:r,status:s,value:o,onChange:l,changeAction:u,density:f="balanced",hasDividers:d=!1,isDisabled:p=!1,disabledMessage:y,isReadOnly:m=!1,children:k,ref:v,width:w,containerXstyle:S,containerClassName:E,containerStyle:R,controlXstyle:C,controlClassName:T,controlStyle:A,"aria-describedby":N,...L}){const{rest:D,container:j}=kx("CheckboxList",L,{containerXstyle:S,containerClassName:E,containerStyle:R}),O=g.useId(),M=g.useId(),H=g.useId(),F=g.useId(),[,q]=g.useTransition(),B=o!==void 0,U=o??_$,[_,P]=g.useOptimistic(U),[G,X]=g.useOptimistic(_$,(I,ee)=>I.includes(ee)?I:[...I,ee]),Z=p&&!!y,Q=Wa({placement:"above",focusTrigger:"always",isEnabled:Z}),K=g.useCallback((I,ee)=>{l?.(I),u&&q(async()=>{P(I),ee!==void 0&&X(ee),await u(I)})},[l,u,q,P,X]),ae=g.useMemo(()=>({value:B?_:void 0,onChange:B?K:void 0,isDisabled:p,hasDisabledMessage:Z,isReadOnly:m,loadingValues:G}),[B,_,K,p,Z,m,G]);return x.jsxs(wc,{label:e,isLabelHidden:t,description:r,inputID:O,labelID:M,isGroupLabel:!0,descriptionID:r?H:void 0,isDisabled:p,status:s?{type:s.type,message:s.message,messageID:s.message?F:void 0}:void 0,statusVariant:"detached",width:w,xstyle:j.xstyle,...ye(fe("checkbox-list"),{className:j.className,style:j.style}),children:[x.jsx(vx,{value:ae,children:x.jsx("div",{...D,ref:xn(v,Q.ref),...ye(de(C),T,A),role:"group","aria-labelledby":M,"aria-describedby":[N,r?H:null,s?.message?F:null,Z?Q.describedBy:null].filter(Boolean).join(" ")||void 0,children:x.jsx(dc,{density:f,hasDividers:d,children:k})})}),Z&&Q.renderTooltip(y)]})}aR.displayName="CheckboxList";const dY={selected:{kWkggS:"xgcxg3y",$$css:!0}};function fY(e){const t=g.use(B0);return x.jsx(P0,{...e,"aria-describedby":t??void 0})}function sR({label:e,"aria-label":t,value:r,description:s,endContent:o,isDisabled:l=!1,isLoading:u=!1,isChecked:f,onCheck:d,ref:p,xstyle:y,className:m,style:k,onClick:v,...w}){const S=Nt(),E=g.use(vx);if(E&&E.value!==void 0&&r===void 0)throw new Error("CheckboxListItem requires a `value` prop when used inside CheckboxList with a value array.");const R=typeof e!="string",C=g.useId(),T=R&&t==null,A=t??(R?S("@astryx.checkboxList.item.checkbox"):e),D=(g.use(Mi)?.density??"balanced")==="compact"?"sm":"md",j=(E?.isDisabled??!1)||l,O=E?.isReadOnly??!1,M=u||r!==void 0&&(E?.loadingValues?.includes(r)??!1);let H=!1;E&&E.value!==void 0&&r!==void 0?H=E.value.includes(r):f!==void 0&&(H=f);const F=!O&&(E!=null||d!=null),q=g.useRef(null),B=F||v!=null,U=O&&v!=null?P=>{v(P),P.stopPropagation()}:v,_=()=>{j||O||M||(E&&E.value!==void 0&&r!==void 0?E.value.includes(r)?E.onChange?.(E.value.filter(G=>G!==r),r):E.onChange?.([...E.value,r],r):d?.(H!==!0))};return x.jsx(Sc,{...w,ref:p,label:T?x.jsx("span",{id:C,children:e}):e,description:s,endContent:o,isDisabled:j,interactiveRef:B?q:void 0,"aria-busy":M||void 0,xstyle:[H===!0&&!j&&!O&&dY.selected,y],className:m,style:k,startContent:x.jsx(fY,{ref:q,label:A,"aria-labelledby":T?C:void 0,isLabelHidden:!0,value:H,onChange:()=>_(),onClick:U,isDisabled:j,isReadOnly:O,isLoading:M,size:D})})}sR.displayName="CheckboxListItem";const hY={root:{k2ei4v:"xtpqe59",kVhnKS:"x1t7ytsu",kGJrpR:"x14ydlgx",kZCmMZ:"x1rey3nv",kMwMTN:"xv1l7n4",kHjlTd:"x1mzt3pk",keTefX:"x1lziwak",k71WvV:"x14z9mp",keoZOQ:"xdj266r",k1K539:"xat24cr",$$css:!0}};function oR({children:e,cite:t,xstyle:r,className:s,style:o,ref:l,...u}){return x.jsxs("blockquote",{ref:l,...ye(fe("blockquote"),de(hY.root,r),s,o),...u,children:[e,Us(t)&&x.jsx("cite",{className:"x1lliihq xtbrsbv x141an7d x1ltkj2j x1j61x8r",children:t})]})}oR.displayName="Blockquote";function pY(e,t,r){if(e.length===0||t>e[e.length-1]){const s=[...e,t];for(;s.length>r;)s.shift();return s}return e}function xY(e,t,r,s){const o=t+e.length;if(r.length===0)return null;const l=r[0];if(o<=l)return null;const u=[];let f=t;f<l&&l<o&&(u.push({key:`settled-${s}`,text:e.slice(0,l-t),fading:!1}),f=l);for(let d=0;d<r.length;d++){const p=r[d],y=d+1<r.length?r[d+1]:o;if(p>=o||y<=f)continue;const m=Math.max(p,f),k=Math.min(y,o);m>=k||(u.push({key:`fade-${s}-b${p}`,text:e.slice(m-t,k-t),fading:!0}),f=k)}return u.length>0?u:null}const di={label:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kOIVth:"xzye2dw",kXLuUW:"x11njtxf",kZKoxP:"x1grt7ep",kGuDYH:"x141an7d",k63SB2:"xv8on6e",kLWn49:"x1ltkj2j",kMwMTN:"xv1l7n4",kaIpWk:"xh6dtrn",kMzoRj:"x1litavf",ksu8eU:"x1y0btm7",kVAM5u:"x14i3s5s",kg3NbH:"xf314gf",keTefX:"xladpz9",kybGjl:"x1hl2dhg",k1ekBW:"x1eaenvl",kIyJzY:"x2rcmwa",kAMwcw:"xlr8y92",ks0D6T:"x55n99s",kVQacm:"xb3r6kr",$$css:!0},labelWithIcon:{kZCmMZ:"x138rykx",$$css:!0},labelInteractive:{kkrTdU:"x1ypdohk x16khyan",$$css:!0},labelHover:{kWkggS:"xoevpu5",kMwMTN:"xv1l7n4 xo5jvnm",$$css:!0},number:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kXLuUW:"x1v0h343",kGuDYH:"x141an7d",k63SB2:"x2mo6ok",kLWn49:"x1ltkj2j",kMwMTN:"xv1l7n4",kWkggS:"xgcxg3y",kaIpWk:"xjspbzw",k7Eaqz:"x16asifk",kZKoxP:"x1grt7ep",kg3NbH:"x7a5moj",kybGjl:"x1hl2dhg",k1ekBW:"x15406qy",kIyJzY:"x2rcmwa",kAMwcw:"xlr8y92",$$css:!0},numberInteractive:{kkrTdU:"x1ypdohk x16khyan",$$css:!0},numberHover:{kWkggS:"xgcxg3y xoevpu5",$$css:!0}};function iR({ref:e,source:t,number:r,variant:s="label",xstyle:o,className:l,style:u,"data-testid":f,...d}){const p=Nt(),y=t.title??String(r),m=t.url!=null&&Hs(t.url)?t.url:void 0,k=t.icon!=null&&typeof t.icon!="string"?t.icon:null,v=t.src??(typeof t.icon=="string"?t.icon:void 0),w=k!=null||v!=null,S=m?"a":"span",E=m?"doc-noteref":"group",R=m?{href:m,target:"_blank",rel:"noopener noreferrer",title:y}:{title:y},C=e;return s==="number"?x.jsx(S,{...d,ref:C,role:E,"aria-label":p("@astryx.citation.label",{number:r,title:y}),"data-testid":f,...R,...ye(fe("citation",{variant:s}),de(di.number,m!=null&&di.numberHover,m!=null&&di.numberInteractive,o),l,u),children:r}):x.jsxs(S,{...d,ref:C,role:E,"aria-label":p("@astryx.citation.label",{number:r,title:y}),"data-testid":f,...R,...ye(fe("citation",{variant:s}),de(di.label,w&&di.labelWithIcon,m!=null&&di.labelHover,m!=null&&di.labelInteractive,o),l,u),children:[w&&x.jsx("span",{"aria-hidden":"true",className:"x3nfvp2 x6s0dn4 xl56j7k x12xnipv x6b6gus xjspbzw x10xzikg x1litavf x1y0btm7 x14i3s5s xb3r6kr x2lah0s",children:k!=null?Ta(k,{size:"sm"}):x.jsx("img",{src:v,alt:"",className:"x1ad1g3v x9gl9lo"})}),x.jsx("span",{className:"xb3r6kr xlyipyv xuxw1ft xeuugli",children:y})]})}iR.displayName="Citation";const gY=/^(?:javascript:|data:|vbscript:)/i;function mY(e){return e.replace(/[\x00-\x1f\x7f]/g,"").trim()}function Ya(e){return Hs(e)}function lR(e){const t=lC(e);return t===""?null:t}function cR(e){const t=mY(e);return t!==""&&!gY.test(t)?t:null}const yY=Symbol("MarkdownTransformPluginName"),bY=Symbol("MarkdownTransformHasRenderer"),kY=Symbol("MarkdownTransformSourceUnchanged"),vY=Symbol("MarkdownTransformClaim"),wY=Symbol("MarkdownSourceLines"),uR=Symbol("MarkdownTransformTrusted");function SY(e){return Object.defineProperty(e,uR,{configurable:!1,enumerable:!1,value:!0,writable:!1}),e}const ak="@astryxdesign/core/MarkdownPluginEntry",dR=Symbol.for(ak);function sk(e){(e==null||typeof e!="object"||Object.getPrototypeOf(e)!==Object.prototype)&&rb("entries must come from a compatible createMarkdownPlugin()");const t=e,r=t[dR],s=r?.definition;return(Reflect.ownKeys(t).length!==3||typeof t.name!="string"||t.apiVersion!==1||!Object.isFrozen(t)||r==null||typeof r!="object"||Object.getPrototypeOf(r)!==Object.prototype||Reflect.ownKeys(r).length!==3||!Object.isFrozen(r)||r.kind!==ak||r.apiVersion!==1||s==null||typeof s!="object"||!Object.isFrozen(s)||s.name!==t.name||s.apiVersion!==t.apiVersion)&&rb("entries must come from a compatible createMarkdownPlugin()"),s}function rb(e){throw new Error(`Markdown plugin: ${e}`)}const q$=new WeakMap;function P$(e,t,r){const s=e.get(t);s==null?e.set(t,[r]):s.push(r)}function B$(e){const t=e,r=sk(e);if(r.transform==null)return e;const s=Object.freeze({...r,transform:void 0});return Object.freeze({name:t.name,apiVersion:t.apiVersion,[dR]:Object.freeze({kind:ak,apiVersion:1,definition:s})})}function fR(e){if(e.length===0)return;const t=q$.get(e);if(t!=null)return t;const r=new Set,s=new Map,o=new Map,l=[],u=new Map,f=[],d=[],p=[];let y=!1;for(const k of e){const v=sk(k),w=k;if(r.has(v.name)&&rb(`duplicate name "${v.name}"`),r.add(v.name),d.push(w),v.transform!=null&&l.push({pluginName:v.name,transform:v.transform,claims:v.transform[vY],trusted:v.transform[uR]===!0}),v.renderers!=null)for(const[S,E]of Object.entries(v.renderers))u.set(`${v.name}\0${S}`,{pluginName:v.name,renderer:E});if(v[wY]===!0&&(y=!0,p.push(B$(k)),f.push(`${v.name}\0${v.apiVersion}\0source-lines`)),"syntax"in v&&v.syntax!=null){p.push(B$(k)),f.push(`${v.name}\0${v.apiVersion}\0${v.parseKey}`);for(const S of v.syntax.inline??[]){const E={pluginName:v.name,display:"inline",contribution:S};for(const R of new Set(S.startsWith.map(C=>C[0])))P$(s,R,E)}for(const S of v.syntax.block??[]){const E={pluginName:v.name,display:"block",contribution:S};for(const R of new Set(S.startsWith.map(C=>C[0])))P$(o,R,E)}}}const m={entries:d,syntaxEntries:p,inlineByFirstCharacter:s,blockByFirstCharacter:o,transforms:l,hasUntrustedTransform:l.some(k=>!k.trusted),syntaxIdentity:f.join(""),renderers:u,sourceLines:y};return q$.set(e,m),m}function ad(e,t=new Set){if(e==null||typeof e=="boolean"||typeof e=="string")return!0;if(typeof e=="number")return Number.isFinite(e);if(typeof e!="object"||t.has(e))return!1;t.add(e);let r;return Array.isArray(e)?r=e.every(s=>ad(s,t)):Object.getPrototypeOf(e)!==Object.prototype?r=!1:r=Object.values(e).every(s=>ad(s,t)),t.delete(e),r}function hR(e){if(e!=null&&typeof e=="object"&&!Object.isFrozen(e)){for(const t of Object.values(e))hR(t);Object.freeze(e)}return e}function ok(e){const t=e?.start.offset,r=e?.end.offset;if(t!=null&&r!=null)return`${t}:${r}`;const s=e?.start.line,o=e?.end.line;return s==null||o==null?null:`line ${s}:${o}`}function EY(e){const t=[[e.start?.offset,e.end?.offset,0],[e.start?.line,e.end?.line,1]];let r=!1;for(const[s,o,l]of t)if(!(s===void 0&&o===void 0)){if(!Number.isInteger(s)||!Number.isInteger(o)||s<l||o<s)return!1;r=!0}return r}function pR(e){return JSON.stringify([e.lang,e.meta,e.value,e.position??null])}function $Y(e){const t=new Map,r=s=>{if(s.type==="code"){const o=Object.getOwnPropertySymbols(s).map(l=>[l,Object.getOwnPropertyDescriptor(s,l)]).filter(l=>l[1]?.enumerable===!0);if(o.length>0){const l=pR(s);t.set(l,[...t.get(l)??[],{descriptors:o}])}}if("children"in s&&Array.isArray(s.children))for(const o of s.children)o!=null&&typeof o=="object"&&r(o)};return r(e),t}function TY(e,t){const r=$Y(e);if(r.size===0)return t;const s=o=>{let l=o;if(o.type==="code"){const u=pR(o),d=r.get(u)?.shift(),p=d?.descriptors.some(([y,m])=>{const k=Object.getOwnPropertyDescriptor(o,y);return k==null||k.value!==m.value||k.get!==m.get||k.set!==m.set||k.enumerable!==m.enumerable||k.configurable!==m.configurable||k.writable!==m.writable});if(d!=null&&p===!0){const y={...o};for(const[m,k]of d.descriptors)Object.defineProperty(y,m,k);l=y}}if("children"in l&&Array.isArray(l.children)){const u=l.children,f=u.map(d=>s(d));f.some((d,p)=>d!==u[p])&&(l={...l,children:f})}return l};return s(t)}function CY(e){const t=new Map,r=s=>{const o=ok(s.position);if(o!=null){const l=s,u={type:s.type,startLine:s.position?.start.line,endLine:s.position?.end.line,depth:l.depth,ordered:l.ordered,start:l.start,delimiter:l.delimiter,plugin:l.plugin,name:l.name,display:l.display};t.set(o,[...t.get(o)??[],u])}if("children"in s&&Array.isArray(s.children))for(const l of s.children)l!=null&&typeof l=="object"&&r(l)};return r(e),t}function xR(e){return JSON.stringify([e.plugin,e.name,e.display,e.data,e.source,ok(e.position)])}function jY(e){const t=new Map,r=s=>{if(s.type==="extension"){const o=xR(s),l=t.get(o);t.set(o,{plugin:String(s.plugin),count:(l?.count??0)+1})}if("children"in s&&Array.isArray(s.children))for(const o of s.children)o!=null&&typeof o=="object"&&r(o)};return r(e),t}const Wh=Symbol("MarkdownSourceHeading");function RY(e){const t=new Set,r=s=>{if(s.type==="heading"&&!(Wh in s)&&Object.defineProperty(s,Wh,{configurable:!1,enumerable:!0,value:Object.freeze({depth:s.depth}),writable:!1}),s.type==="heading"&&t.add(s[Wh]),"children"in s&&Array.isArray(s.children))for(const o of s.children)o!=null&&typeof o=="object"&&r(o)};return r(e),t}const AY=new Set(["text","strong","emphasis","delete","inlineCode","inlineMath","break","link","image","citation"]),MY=new Set(["heading","paragraph","code","math","blockquote","list","table","thematicBreak","image"]),gR=new Set(["heading","paragraph","strong","emphasis","delete","link","tableCell"]),mR=new Set(["root","blockquote","listItem"]),NY=new Set([...gR,...mR,"list","table","tableRow"]);function zY(e,t,r,s,o,l,u,f){if(e==null||typeof e!="object")return!1;const d=new Set,p=new Set;let y=0;const m=(v,w,S)=>{if(v==null||typeof v!="object"||d.has(v)||++y>1e5)return!1;d.add(v);const E=v,R=E.type;if(typeof R!="string"||E.data!==void 0&&!ad(E.data))return!1;if(w!=null){const A=R==="extension"?E.display:void 0,N=AY.has(R)||A==="inline",L=MY.has(R)||A==="block";if(gR.has(w)&&!N||mR.has(w)&&!L||S&&R==="link"||w==="list"&&R!=="listItem"||w==="table"&&R!=="tableRow"||w==="tableRow"&&R!=="tableCell")return!1}const C=E.position,T=ok(C);if(C!=null&&!EY(C))return!1;if(T!=null){const A=s.get(T)??[],N=A.findIndex(L=>L.type===R&&L.startLine===C?.start?.line&&L.endLine===C?.end?.line&&L.depth===E.depth&&L.ordered===E.ordered&&L.start===E.start&&L.delimiter===E.delimiter&&L.plugin===E.plugin&&L.name===E.name&&L.display===E.display);if(N<0)return!1;A.splice(N,1)}if(R!=="extension"&&E.source!==void 0)return!1;switch(R){case"root":if(w!=null)return!1;break;case"heading":{if(![1,2,3,4,5,6].includes(E.depth))return!1;const A=E[Wh];if(A!=null&&(!o.has(A)||A.depth!==E.depth||p.has(A)))return!1;A!=null&&p.add(A);break}case"text":case"inlineCode":case"inlineMath":case"math":if(typeof E.value!="string")return!1;break;case"code":if(typeof E.value!="string"||E.lang!==null&&typeof E.lang!="string"||E.meta!==void 0&&typeof E.meta!="string")return!1;break;case"link":if(typeof E.url!="string"||!Ya(E.url))return!1;break;case"image":if(typeof E.url!="string"||!Ya(E.url)||typeof E.alt!="string")return!1;break;case"citation":if(typeof E.sourceId!="string")return!1;break;case"list":if(typeof E.ordered!="boolean"||E.start!=null&&!Number.isFinite(E.start)||E.delimiter!=null&&E.delimiter!=="."&&E.delimiter!==")")return!1;break;case"table":if(!Array.isArray(E.align)||!E.align.every(A=>A===null||A==="left"||A==="center"||A==="right"))return!1;break;case"extension":{if(typeof E.plugin!="string"||!t.has(E.plugin)||typeof E.name!="string"||E.display!=="inline"&&E.display!=="block"||!ad(E.data)||!r.has(`${E.plugin}\0${E.name}`))return!1;const A=xR(E),N=u.get(A);if(N!=null&&N.count>0)N.count--;else if(E.plugin!==l||E.source!==void 0||E.position!==void 0)return!1;break}case"strong":case"emphasis":case"delete":case"break":case"paragraph":case"blockquote":case"listItem":case"tableRow":case"tableCell":case"thematicBreak":break;default:return!1}if(NY.has(R)){if(!Array.isArray(E.children))return!1;for(const A of E.children)if(!m(A,R,S||R==="link"))return!1}else if("children"in E)return!1;return!0},k=e;return m(k,null,!1)&&k.type==="root"&&Array.from(u.values()).every(v=>v.plugin===l||v.count===0)&&(f==="block"||k.children.length===1&&k.children[0]?.type==="paragraph")}function ab(e){if(!(e==null||typeof e!="object")){if(Array.isArray(e))for(let t=0;t<e.length;t++)ab(e[t]);else for(const t in e)ab(e[t]);Object.freeze(e)}}function s1(e){return ab(e),e}const H$=new Set;function sb(e,t){if(t==null||typeof t!="object"||t===e)return t;const r=e!=null&&typeof e=="object"?e:void 0;if(Array.isArray(t)){const s=Array.isArray(e)?e:void 0;for(let o=0;o<t.length;o++)sb(s?.[o],t[o])}else for(const s in t)sb(r?.[s],t[s]);return Object.freeze(t),t}function Ga(e,t,r){const s=`markdown-plugin:${e}:${t}`,o=`plugin "${e}" failed in ${t}; rendered readable fallback.`;{H$.has(s)||(H$.add(s),Fb("Markdown",o));return}}function sd(e,t,r,s,o){if(t==null||t.transforms.length===0)return e;let l,u,f=e;const d=t.hasUntrustedTransform?RY(e):void 0;let p=!1,y=!1,m=!1;for(const k of t.transforms)if(!(!y&&k.claims?.(r)===!1)){k.trusted||(p||(l=new Set(t.entries.map(v=>v.name)),u=new Set(t.renderers.keys()),p=!0),f=s1(f),m=!1);try{const v={source:r,isFinal:s,display:o,report(R){Ga(k.pluginName,"transform",R)},[yY]:k.pluginName,[bY]:R=>t.renderers.has(`${k.pluginName}\0${R}`),[kY]:!y},w=k.transform(f,v);if(w!=null&&typeof w=="object"&&typeof w.then=="function")throw Promise.resolve(w).catch(()=>{}),new TypeError("Async Markdown transforms are not supported");if(w===f)continue;if(k.trusted){y=!0,m=!0,f=w;continue}const S=CY(f),E=jY(f);if(!zY(w,l,u,S,d,k.pluginName,E,o))throw new TypeError("Transform returned an invalid Markdown document");y=!0,f=s1(TY(f,w))}catch{Ga(k.pluginName,"transform")}}return m?t.hasUntrustedTransform?s1(f):sb(e,f):f}function ik(e,t){return e?.renderers.get(`${t.plugin}\0${t.name}`)?.renderer}function od(e,t){const r=ik(e,t);if(r==null)return t.source??"";try{return r.toText(t)}catch{return Ga(t.plugin,"render"),t.source??""}}const LY="AElig=c6 AMP=26 Aacute=c1 Abreve=102 Acirc=c2 Acy=410 Afr=1d504 Agrave=c0 Alpha=391 Amacr=100 And=2a53 Aogon=104 Aopf=1d538 ApplyFunction=2061 Aring=c5 Ascr=1d49c Assign=2254 Atilde=c3 Auml=c4 Backslash=2216 Barv=2ae7 Barwed=2306 Bcy=411 Because=2235 Bernoullis=212c Beta=392 Bfr=1d505 Bopf=1d539 Breve=2d8 Bscr=212c Bumpeq=224e CHcy=427 COPY=a9 Cacute=106 Cap=22d2 CapitalDifferentialD=2145 Cayleys=212d Ccaron=10c Ccedil=c7 Ccirc=108 Cconint=2230 Cdot=10a Cedilla=b8 CenterDot=b7 Cfr=212d Chi=3a7 CircleDot=2299 CircleMinus=2296 CirclePlus=2295 CircleTimes=2297 ClockwiseContourIntegral=2232 CloseCurlyDoubleQuote=201d CloseCurlyQuote=2019 Colon=2237 Colone=2a74 Congruent=2261 Conint=222f ContourIntegral=222e Copf=2102 Coproduct=2210 CounterClockwiseContourIntegral=2233 Cross=2a2f Cscr=1d49e Cup=22d3 CupCap=224d DD=2145 DDotrahd=2911 DJcy=402 DScy=405 DZcy=40f Dagger=2021 Darr=21a1 Dashv=2ae4 Dcaron=10e Dcy=414 Del=2207 Delta=394 Dfr=1d507 DiacriticalAcute=b4 DiacriticalDot=2d9 DiacriticalDoubleAcute=2dd DiacriticalGrave=60 DiacriticalTilde=2dc Diamond=22c4 DifferentialD=2146 Dopf=1d53b Dot=a8 DotDot=20dc DotEqual=2250 DoubleContourIntegral=222f DoubleDot=a8 DoubleDownArrow=21d3 DoubleLeftArrow=21d0 DoubleLeftRightArrow=21d4 DoubleLeftTee=2ae4 DoubleLongLeftArrow=27f8 DoubleLongLeftRightArrow=27fa DoubleLongRightArrow=27f9 DoubleRightArrow=21d2 DoubleRightTee=22a8 DoubleUpArrow=21d1 DoubleUpDownArrow=21d5 DoubleVerticalBar=2225 DownArrow=2193 DownArrowBar=2913 DownArrowUpArrow=21f5 DownBreve=311 DownLeftRightVector=2950 DownLeftTeeVector=295e DownLeftVector=21bd DownLeftVectorBar=2956 DownRightTeeVector=295f DownRightVector=21c1 DownRightVectorBar=2957 DownTee=22a4 DownTeeArrow=21a7 Downarrow=21d3 Dscr=1d49f Dstrok=110 ENG=14a ETH=d0 Eacute=c9 Ecaron=11a Ecirc=ca Ecy=42d Edot=116 Efr=1d508 Egrave=c8 Element=2208 Emacr=112 EmptySmallSquare=25fb EmptyVerySmallSquare=25ab Eogon=118 Eopf=1d53c Epsilon=395 Equal=2a75 EqualTilde=2242 Equilibrium=21cc Escr=2130 Esim=2a73 Eta=397 Euml=cb Exists=2203 ExponentialE=2147 Fcy=424 Ffr=1d509 FilledSmallSquare=25fc FilledVerySmallSquare=25aa Fopf=1d53d ForAll=2200 Fouriertrf=2131 Fscr=2131 GJcy=403 GT=3e Gamma=393 Gammad=3dc Gbreve=11e Gcedil=122 Gcirc=11c Gcy=413 Gdot=120 Gfr=1d50a Gg=22d9 Gopf=1d53e GreaterEqual=2265 GreaterEqualLess=22db GreaterFullEqual=2267 GreaterGreater=2aa2 GreaterLess=2277 GreaterSlantEqual=2a7e GreaterTilde=2273 Gscr=1d4a2 Gt=226b HARDcy=42a Hacek=2c7 Hat=5e Hcirc=124 Hfr=210c HilbertSpace=210b Hopf=210d HorizontalLine=2500 Hscr=210b Hstrok=126 HumpDownHump=224e HumpEqual=224f IEcy=415 IJlig=132 IOcy=401 Iacute=cd Icirc=ce Icy=418 Idot=130 Ifr=2111 Igrave=cc Im=2111 Imacr=12a ImaginaryI=2148 Implies=21d2 Int=222c Integral=222b Intersection=22c2 InvisibleComma=2063 InvisibleTimes=2062 Iogon=12e Iopf=1d540 Iota=399 Iscr=2110 Itilde=128 Iukcy=406 Iuml=cf Jcirc=134 Jcy=419 Jfr=1d50d Jopf=1d541 Jscr=1d4a5 Jsercy=408 Jukcy=404 KHcy=425 KJcy=40c Kappa=39a Kcedil=136 Kcy=41a Kfr=1d50e Kopf=1d542 Kscr=1d4a6 LJcy=409 LT=3c Lacute=139 Lambda=39b Lang=27ea Laplacetrf=2112 Larr=219e Lcaron=13d Lcedil=13b Lcy=41b LeftAngleBracket=27e8 LeftArrow=2190 LeftArrowBar=21e4 LeftArrowRightArrow=21c6 LeftCeiling=2308 LeftDoubleBracket=27e6 LeftDownTeeVector=2961 LeftDownVector=21c3 LeftDownVectorBar=2959 LeftFloor=230a LeftRightArrow=2194 LeftRightVector=294e LeftTee=22a3 LeftTeeArrow=21a4 LeftTeeVector=295a LeftTriangle=22b2 LeftTriangleBar=29cf LeftTriangleEqual=22b4 LeftUpDownVector=2951 LeftUpTeeVector=2960 LeftUpVector=21bf LeftUpVectorBar=2958 LeftVector=21bc LeftVectorBar=2952 Leftarrow=21d0 Leftrightarrow=21d4 LessEqualGreater=22da LessFullEqual=2266 LessGreater=2276 LessLess=2aa1 LessSlantEqual=2a7d LessTilde=2272 Lfr=1d50f Ll=22d8 Lleftarrow=21da Lmidot=13f LongLeftArrow=27f5 LongLeftRightArrow=27f7 LongRightArrow=27f6 Longleftarrow=27f8 Longleftrightarrow=27fa Longrightarrow=27f9 Lopf=1d543 LowerLeftArrow=2199 LowerRightArrow=2198 Lscr=2112 Lsh=21b0 Lstrok=141 Lt=226a Map=2905 Mcy=41c MediumSpace=205f Mellintrf=2133 Mfr=1d510 MinusPlus=2213 Mopf=1d544 Mscr=2133 Mu=39c NJcy=40a Nacute=143 Ncaron=147 Ncedil=145 Ncy=41d NegativeMediumSpace=200b NegativeThickSpace=200b NegativeThinSpace=200b NegativeVeryThinSpace=200b NestedGreaterGreater=226b NestedLessLess=226a NewLine=a Nfr=1d511 NoBreak=2060 NonBreakingSpace=a0 Nopf=2115 Not=2aec NotCongruent=2262 NotCupCap=226d NotDoubleVerticalBar=2226 NotElement=2209 NotEqual=2260 NotEqualTilde=2242,338 NotExists=2204 NotGreater=226f NotGreaterEqual=2271 NotGreaterFullEqual=2267,338 NotGreaterGreater=226b,338 NotGreaterLess=2279 NotGreaterSlantEqual=2a7e,338 NotGreaterTilde=2275 NotHumpDownHump=224e,338 NotHumpEqual=224f,338 NotLeftTriangle=22ea NotLeftTriangleBar=29cf,338 NotLeftTriangleEqual=22ec NotLess=226e NotLessEqual=2270 NotLessGreater=2278 NotLessLess=226a,338 NotLessSlantEqual=2a7d,338 NotLessTilde=2274 NotNestedGreaterGreater=2aa2,338 NotNestedLessLess=2aa1,338 NotPrecedes=2280 NotPrecedesEqual=2aaf,338 NotPrecedesSlantEqual=22e0 NotReverseElement=220c NotRightTriangle=22eb NotRightTriangleBar=29d0,338 NotRightTriangleEqual=22ed NotSquareSubset=228f,338 NotSquareSubsetEqual=22e2 NotSquareSuperset=2290,338 NotSquareSupersetEqual=22e3 NotSubset=2282,20d2 NotSubsetEqual=2288 NotSucceeds=2281 NotSucceedsEqual=2ab0,338 NotSucceedsSlantEqual=22e1 NotSucceedsTilde=227f,338 NotSuperset=2283,20d2 NotSupersetEqual=2289 NotTilde=2241 NotTildeEqual=2244 NotTildeFullEqual=2247 NotTildeTilde=2249 NotVerticalBar=2224 Nscr=1d4a9 Ntilde=d1 Nu=39d OElig=152 Oacute=d3 Ocirc=d4 Ocy=41e Odblac=150 Ofr=1d512 Ograve=d2 Omacr=14c Omega=3a9 Omicron=39f Oopf=1d546 OpenCurlyDoubleQuote=201c OpenCurlyQuote=2018 Or=2a54 Oscr=1d4aa Oslash=d8 Otilde=d5 Otimes=2a37 Ouml=d6 OverBar=203e OverBrace=23de OverBracket=23b4 OverParenthesis=23dc PartialD=2202 Pcy=41f Pfr=1d513 Phi=3a6 Pi=3a0 PlusMinus=b1 Poincareplane=210c Popf=2119 Pr=2abb Precedes=227a PrecedesEqual=2aaf PrecedesSlantEqual=227c PrecedesTilde=227e Prime=2033 Product=220f Proportion=2237 Proportional=221d Pscr=1d4ab Psi=3a8 QUOT=22 Qfr=1d514 Qopf=211a Qscr=1d4ac RBarr=2910 REG=ae Racute=154 Rang=27eb Rarr=21a0 Rarrtl=2916 Rcaron=158 Rcedil=156 Rcy=420 Re=211c ReverseElement=220b ReverseEquilibrium=21cb ReverseUpEquilibrium=296f Rfr=211c Rho=3a1 RightAngleBracket=27e9 RightArrow=2192 RightArrowBar=21e5 RightArrowLeftArrow=21c4 RightCeiling=2309 RightDoubleBracket=27e7 RightDownTeeVector=295d RightDownVector=21c2 RightDownVectorBar=2955 RightFloor=230b RightTee=22a2 RightTeeArrow=21a6 RightTeeVector=295b RightTriangle=22b3 RightTriangleBar=29d0 RightTriangleEqual=22b5 RightUpDownVector=294f RightUpTeeVector=295c RightUpVector=21be RightUpVectorBar=2954 RightVector=21c0 RightVectorBar=2953 Rightarrow=21d2 Ropf=211d RoundImplies=2970 Rrightarrow=21db Rscr=211b Rsh=21b1 RuleDelayed=29f4 SHCHcy=429 SHcy=428 SOFTcy=42c Sacute=15a Sc=2abc Scaron=160 Scedil=15e Scirc=15c Scy=421 Sfr=1d516 ShortDownArrow=2193 ShortLeftArrow=2190 ShortRightArrow=2192 ShortUpArrow=2191 Sigma=3a3 SmallCircle=2218 Sopf=1d54a Sqrt=221a Square=25a1 SquareIntersection=2293 SquareSubset=228f SquareSubsetEqual=2291 SquareSuperset=2290 SquareSupersetEqual=2292 SquareUnion=2294 Sscr=1d4ae Star=22c6 Sub=22d0 Subset=22d0 SubsetEqual=2286 Succeeds=227b SucceedsEqual=2ab0 SucceedsSlantEqual=227d SucceedsTilde=227f SuchThat=220b Sum=2211 Sup=22d1 Superset=2283 SupersetEqual=2287 Supset=22d1 THORN=de TRADE=2122 TSHcy=40b TScy=426 Tab=9 Tau=3a4 Tcaron=164 Tcedil=162 Tcy=422 Tfr=1d517 Therefore=2234 Theta=398 ThickSpace=205f,200a ThinSpace=2009 Tilde=223c TildeEqual=2243 TildeFullEqual=2245 TildeTilde=2248 Topf=1d54b TripleDot=20db Tscr=1d4af Tstrok=166 Uacute=da Uarr=219f Uarrocir=2949 Ubrcy=40e Ubreve=16c Ucirc=db Ucy=423 Udblac=170 Ufr=1d518 Ugrave=d9 Umacr=16a UnderBar=5f UnderBrace=23df UnderBracket=23b5 UnderParenthesis=23dd Union=22c3 UnionPlus=228e Uogon=172 Uopf=1d54c UpArrow=2191 UpArrowBar=2912 UpArrowDownArrow=21c5 UpDownArrow=2195 UpEquilibrium=296e UpTee=22a5 UpTeeArrow=21a5 Uparrow=21d1 Updownarrow=21d5 UpperLeftArrow=2196 UpperRightArrow=2197 Upsi=3d2 Upsilon=3a5 Uring=16e Uscr=1d4b0 Utilde=168 Uuml=dc VDash=22ab Vbar=2aeb Vcy=412 Vdash=22a9 Vdashl=2ae6 Vee=22c1 Verbar=2016 Vert=2016 VerticalBar=2223 VerticalLine=7c VerticalSeparator=2758 VerticalTilde=2240 VeryThinSpace=200a Vfr=1d519 Vopf=1d54d Vscr=1d4b1 Vvdash=22aa Wcirc=174 Wedge=22c0 Wfr=1d51a Wopf=1d54e Wscr=1d4b2 Xfr=1d51b Xi=39e Xopf=1d54f Xscr=1d4b3 YAcy=42f YIcy=407 YUcy=42e Yacute=dd Ycirc=176 Ycy=42b Yfr=1d51c Yopf=1d550 Yscr=1d4b4 Yuml=178 ZHcy=416 Zacute=179 Zcaron=17d Zcy=417 Zdot=17b ZeroWidthSpace=200b Zeta=396 Zfr=2128 Zopf=2124 Zscr=1d4b5 aacute=e1 abreve=103 ac=223e acE=223e,333 acd=223f acirc=e2 acute=b4 acy=430 aelig=e6 af=2061 afr=1d51e agrave=e0 alefsym=2135 aleph=2135 alpha=3b1 amacr=101 amalg=2a3f amp=26 and=2227 andand=2a55 andd=2a5c andslope=2a58 andv=2a5a ang=2220 ange=29a4 angle=2220 angmsd=2221 angmsdaa=29a8 angmsdab=29a9 angmsdac=29aa angmsdad=29ab angmsdae=29ac angmsdaf=29ad angmsdag=29ae angmsdah=29af angrt=221f angrtvb=22be angrtvbd=299d angsph=2222 angst=c5 angzarr=237c aogon=105 aopf=1d552 ap=2248 apE=2a70 apacir=2a6f ape=224a apid=224b apos=27 approx=2248 approxeq=224a aring=e5 ascr=1d4b6 ast=2a asymp=2248 asympeq=224d atilde=e3 auml=e4 awconint=2233 awint=2a11 bNot=2aed backcong=224c backepsilon=3f6 backprime=2035 backsim=223d backsimeq=22cd barvee=22bd barwed=2305 barwedge=2305 bbrk=23b5 bbrktbrk=23b6 bcong=224c bcy=431 bdquo=201e becaus=2235 because=2235 bemptyv=29b0 bepsi=3f6 bernou=212c beta=3b2 beth=2136 between=226c bfr=1d51f bigcap=22c2 bigcirc=25ef bigcup=22c3 bigodot=2a00 bigoplus=2a01 bigotimes=2a02 bigsqcup=2a06 bigstar=2605 bigtriangledown=25bd bigtriangleup=25b3 biguplus=2a04 bigvee=22c1 bigwedge=22c0 bkarow=290d blacklozenge=29eb blacksquare=25aa blacktriangle=25b4 blacktriangledown=25be blacktriangleleft=25c2 blacktriangleright=25b8 blank=2423 blk12=2592 blk14=2591 blk34=2593 block=2588 bne=3d,20e5 bnequiv=2261,20e5 bnot=2310 bopf=1d553 bot=22a5 bottom=22a5 bowtie=22c8 boxDL=2557 boxDR=2554 boxDl=2556 boxDr=2553 boxH=2550 boxHD=2566 boxHU=2569 boxHd=2564 boxHu=2567 boxUL=255d boxUR=255a boxUl=255c boxUr=2559 boxV=2551 boxVH=256c boxVL=2563 boxVR=2560 boxVh=256b boxVl=2562 boxVr=255f boxbox=29c9 boxdL=2555 boxdR=2552 boxdl=2510 boxdr=250c boxh=2500 boxhD=2565 boxhU=2568 boxhd=252c boxhu=2534 boxminus=229f boxplus=229e boxtimes=22a0 boxuL=255b boxuR=2558 boxul=2518 boxur=2514 boxv=2502 boxvH=256a boxvL=2561 boxvR=255e boxvh=253c boxvl=2524 boxvr=251c bprime=2035 breve=2d8 brvbar=a6 bscr=1d4b7 bsemi=204f bsim=223d bsime=22cd bsol=5c bsolb=29c5 bsolhsub=27c8 bull=2022 bullet=2022 bump=224e bumpE=2aae bumpe=224f bumpeq=224f cacute=107 cap=2229 capand=2a44 capbrcup=2a49 capcap=2a4b capcup=2a47 capdot=2a40 caps=2229,fe00 caret=2041 caron=2c7 ccaps=2a4d ccaron=10d ccedil=e7 ccirc=109 ccups=2a4c ccupssm=2a50 cdot=10b cedil=b8 cemptyv=29b2 cent=a2 centerdot=b7 cfr=1d520 chcy=447 check=2713 checkmark=2713 chi=3c7 cir=25cb cirE=29c3 circ=2c6 circeq=2257 circlearrowleft=21ba circlearrowright=21bb circledR=ae circledS=24c8 circledast=229b circledcirc=229a circleddash=229d cire=2257 cirfnint=2a10 cirmid=2aef cirscir=29c2 clubs=2663 clubsuit=2663 colon=3a colone=2254 coloneq=2254 comma=2c commat=40 comp=2201 compfn=2218 complement=2201 complexes=2102 cong=2245 congdot=2a6d conint=222e copf=1d554 coprod=2210 copy=a9 copysr=2117 crarr=21b5 cross=2717 cscr=1d4b8 csub=2acf csube=2ad1 csup=2ad0 csupe=2ad2 ctdot=22ef cudarrl=2938 cudarrr=2935 cuepr=22de cuesc=22df cularr=21b6 cularrp=293d cup=222a cupbrcap=2a48 cupcap=2a46 cupcup=2a4a cupdot=228d cupor=2a45 cups=222a,fe00 curarr=21b7 curarrm=293c curlyeqprec=22de curlyeqsucc=22df curlyvee=22ce curlywedge=22cf curren=a4 curvearrowleft=21b6 curvearrowright=21b7 cuvee=22ce cuwed=22cf cwconint=2232 cwint=2231 cylcty=232d dArr=21d3 dHar=2965 dagger=2020 daleth=2138 darr=2193 dash=2010 dashv=22a3 dbkarow=290f dblac=2dd dcaron=10f dcy=434 dd=2146 ddagger=2021 ddarr=21ca ddotseq=2a77 deg=b0 delta=3b4 demptyv=29b1 dfisht=297f dfr=1d521 dharl=21c3 dharr=21c2 diam=22c4 diamond=22c4 diamondsuit=2666 diams=2666 die=a8 digamma=3dd disin=22f2 div=f7 divide=f7 divideontimes=22c7 divonx=22c7 djcy=452 dlcorn=231e dlcrop=230d dollar=24 dopf=1d555 dot=2d9 doteq=2250 doteqdot=2251 dotminus=2238 dotplus=2214 dotsquare=22a1 doublebarwedge=2306 downarrow=2193 downdownarrows=21ca downharpoonleft=21c3 downharpoonright=21c2 drbkarow=2910 drcorn=231f drcrop=230c dscr=1d4b9 dscy=455 dsol=29f6 dstrok=111 dtdot=22f1 dtri=25bf dtrif=25be duarr=21f5 duhar=296f dwangle=29a6 dzcy=45f dzigrarr=27ff eDDot=2a77 eDot=2251 eacute=e9 easter=2a6e ecaron=11b ecir=2256 ecirc=ea ecolon=2255 ecy=44d edot=117 ee=2147 efDot=2252 efr=1d522 eg=2a9a egrave=e8 egs=2a96 egsdot=2a98 el=2a99 elinters=23e7 ell=2113 els=2a95 elsdot=2a97 emacr=113 empty=2205 emptyset=2205 emptyv=2205 emsp=2003 emsp13=2004 emsp14=2005 eng=14b ensp=2002 eogon=119 eopf=1d556 epar=22d5 eparsl=29e3 eplus=2a71 epsi=3b5 epsilon=3b5 epsiv=3f5 eqcirc=2256 eqcolon=2255 eqsim=2242 eqslantgtr=2a96 eqslantless=2a95 equals=3d equest=225f equiv=2261 equivDD=2a78 eqvparsl=29e5 erDot=2253 erarr=2971 escr=212f esdot=2250 esim=2242 eta=3b7 eth=f0 euml=eb euro=20ac excl=21 exist=2203 expectation=2130 exponentiale=2147 fallingdotseq=2252 fcy=444 female=2640 ffilig=fb03 fflig=fb00 ffllig=fb04 ffr=1d523 filig=fb01 fjlig=66,6a flat=266d fllig=fb02 fltns=25b1 fnof=192 fopf=1d557 forall=2200 fork=22d4 forkv=2ad9 fpartint=2a0d frac12=bd frac13=2153 frac14=bc frac15=2155 frac16=2159 frac18=215b frac23=2154 frac25=2156 frac34=be frac35=2157 frac38=215c frac45=2158 frac56=215a frac58=215d frac78=215e frasl=2044 frown=2322 fscr=1d4bb gE=2267 gEl=2a8c gacute=1f5 gamma=3b3 gammad=3dd gap=2a86 gbreve=11f gcirc=11d gcy=433 gdot=121 ge=2265 gel=22db geq=2265 geqq=2267 geqslant=2a7e ges=2a7e gescc=2aa9 gesdot=2a80 gesdoto=2a82 gesdotol=2a84 gesl=22db,fe00 gesles=2a94 gfr=1d524 gg=226b ggg=22d9 gimel=2137 gjcy=453 gl=2277 glE=2a92 gla=2aa5 glj=2aa4 gnE=2269 gnap=2a8a gnapprox=2a8a gne=2a88 gneq=2a88 gneqq=2269 gnsim=22e7 gopf=1d558 grave=60 gscr=210a gsim=2273 gsime=2a8e gsiml=2a90 gt=3e gtcc=2aa7 gtcir=2a7a gtdot=22d7 gtlPar=2995 gtquest=2a7c gtrapprox=2a86 gtrarr=2978 gtrdot=22d7 gtreqless=22db gtreqqless=2a8c gtrless=2277 gtrsim=2273 gvertneqq=2269,fe00 gvnE=2269,fe00 hArr=21d4 hairsp=200a half=bd hamilt=210b hardcy=44a harr=2194 harrcir=2948 harrw=21ad hbar=210f hcirc=125 hearts=2665 heartsuit=2665 hellip=2026 hercon=22b9 hfr=1d525 hksearow=2925 hkswarow=2926 hoarr=21ff homtht=223b hookleftarrow=21a9 hookrightarrow=21aa hopf=1d559 horbar=2015 hscr=1d4bd hslash=210f hstrok=127 hybull=2043 hyphen=2010 iacute=ed ic=2063 icirc=ee icy=438 iecy=435 iexcl=a1 iff=21d4 ifr=1d526 igrave=ec ii=2148 iiiint=2a0c iiint=222d iinfin=29dc iiota=2129 ijlig=133 imacr=12b image=2111 imagline=2110 imagpart=2111 imath=131 imof=22b7 imped=1b5 in=2208 incare=2105 infin=221e infintie=29dd inodot=131 int=222b intcal=22ba integers=2124 intercal=22ba intlarhk=2a17 intprod=2a3c iocy=451 iogon=12f iopf=1d55a iota=3b9 iprod=2a3c iquest=bf iscr=1d4be isin=2208 isinE=22f9 isindot=22f5 isins=22f4 isinsv=22f3 isinv=2208 it=2062 itilde=129 iukcy=456 iuml=ef jcirc=135 jcy=439 jfr=1d527 jmath=237 jopf=1d55b jscr=1d4bf jsercy=458 jukcy=454 kappa=3ba kappav=3f0 kcedil=137 kcy=43a kfr=1d528 kgreen=138 khcy=445 kjcy=45c kopf=1d55c kscr=1d4c0 lAarr=21da lArr=21d0 lAtail=291b lBarr=290e lE=2266 lEg=2a8b lHar=2962 lacute=13a laemptyv=29b4 lagran=2112 lambda=3bb lang=27e8 langd=2991 langle=27e8 lap=2a85 laquo=ab larr=2190 larrb=21e4 larrbfs=291f larrfs=291d larrhk=21a9 larrlp=21ab larrpl=2939 larrsim=2973 larrtl=21a2 lat=2aab latail=2919 late=2aad lates=2aad,fe00 lbarr=290c lbbrk=2772 lbrace=7b lbrack=5b lbrke=298b lbrksld=298f lbrkslu=298d lcaron=13e lcedil=13c lceil=2308 lcub=7b lcy=43b ldca=2936 ldquo=201c ldquor=201e ldrdhar=2967 ldrushar=294b ldsh=21b2 le=2264 leftarrow=2190 leftarrowtail=21a2 leftharpoondown=21bd leftharpoonup=21bc leftleftarrows=21c7 leftrightarrow=2194 leftrightarrows=21c6 leftrightharpoons=21cb leftrightsquigarrow=21ad leftthreetimes=22cb leg=22da leq=2264 leqq=2266 leqslant=2a7d les=2a7d lescc=2aa8 lesdot=2a7f lesdoto=2a81 lesdotor=2a83 lesg=22da,fe00 lesges=2a93 lessapprox=2a85 lessdot=22d6 lesseqgtr=22da lesseqqgtr=2a8b lessgtr=2276 lesssim=2272 lfisht=297c lfloor=230a lfr=1d529 lg=2276 lgE=2a91 lhard=21bd lharu=21bc lharul=296a lhblk=2584 ljcy=459 ll=226a llarr=21c7 llcorner=231e llhard=296b lltri=25fa lmidot=140 lmoust=23b0 lmoustache=23b0 lnE=2268 lnap=2a89 lnapprox=2a89 lne=2a87 lneq=2a87 lneqq=2268 lnsim=22e6 loang=27ec loarr=21fd lobrk=27e6 longleftarrow=27f5 longleftrightarrow=27f7 longmapsto=27fc longrightarrow=27f6 looparrowleft=21ab looparrowright=21ac lopar=2985 lopf=1d55d loplus=2a2d lotimes=2a34 lowast=2217 lowbar=5f loz=25ca lozenge=25ca lozf=29eb lpar=28 lparlt=2993 lrarr=21c6 lrcorner=231f lrhar=21cb lrhard=296d lrm=200e lrtri=22bf lsaquo=2039 lscr=1d4c1 lsh=21b0 lsim=2272 lsime=2a8d lsimg=2a8f lsqb=5b lsquo=2018 lsquor=201a lstrok=142 lt=3c ltcc=2aa6 ltcir=2a79 ltdot=22d6 lthree=22cb ltimes=22c9 ltlarr=2976 ltquest=2a7b ltrPar=2996 ltri=25c3 ltrie=22b4 ltrif=25c2 lurdshar=294a luruhar=2966 lvertneqq=2268,fe00 lvnE=2268,fe00 mDDot=223a macr=af male=2642 malt=2720 maltese=2720 map=21a6 mapsto=21a6 mapstodown=21a7 mapstoleft=21a4 mapstoup=21a5 marker=25ae mcomma=2a29 mcy=43c mdash=2014 measuredangle=2221 mfr=1d52a mho=2127 micro=b5 mid=2223 midast=2a midcir=2af0 middot=b7 minus=2212 minusb=229f minusd=2238 minusdu=2a2a mlcp=2adb mldr=2026 mnplus=2213 models=22a7 mopf=1d55e mp=2213 mscr=1d4c2 mstpos=223e mu=3bc multimap=22b8 mumap=22b8 nGg=22d9,338 nGt=226b,20d2 nGtv=226b,338 nLeftarrow=21cd nLeftrightarrow=21ce nLl=22d8,338 nLt=226a,20d2 nLtv=226a,338 nRightarrow=21cf nVDash=22af nVdash=22ae nabla=2207 nacute=144 nang=2220,20d2 nap=2249 napE=2a70,338 napid=224b,338 napos=149 napprox=2249 natur=266e natural=266e naturals=2115 nbsp=a0 nbump=224e,338 nbumpe=224f,338 ncap=2a43 ncaron=148 ncedil=146 ncong=2247 ncongdot=2a6d,338 ncup=2a42 ncy=43d ndash=2013 ne=2260 neArr=21d7 nearhk=2924 nearr=2197 nearrow=2197 nedot=2250,338 nequiv=2262 nesear=2928 nesim=2242,338 nexist=2204 nexists=2204 nfr=1d52b ngE=2267,338 nge=2271 ngeq=2271 ngeqq=2267,338 ngeqslant=2a7e,338 nges=2a7e,338 ngsim=2275 ngt=226f ngtr=226f nhArr=21ce nharr=21ae nhpar=2af2 ni=220b nis=22fc nisd=22fa niv=220b njcy=45a nlArr=21cd nlE=2266,338 nlarr=219a nldr=2025 nle=2270 nleftarrow=219a nleftrightarrow=21ae nleq=2270 nleqq=2266,338 nleqslant=2a7d,338 nles=2a7d,338 nless=226e nlsim=2274 nlt=226e nltri=22ea nltrie=22ec nmid=2224 nopf=1d55f not=ac notin=2209 notinE=22f9,338 notindot=22f5,338 notinva=2209 notinvb=22f7 notinvc=22f6 notni=220c notniva=220c notnivb=22fe notnivc=22fd npar=2226 nparallel=2226 nparsl=2afd,20e5 npart=2202,338 npolint=2a14 npr=2280 nprcue=22e0 npre=2aaf,338 nprec=2280 npreceq=2aaf,338 nrArr=21cf nrarr=219b nrarrc=2933,338 nrarrw=219d,338 nrightarrow=219b nrtri=22eb nrtrie=22ed nsc=2281 nsccue=22e1 nsce=2ab0,338 nscr=1d4c3 nshortmid=2224 nshortparallel=2226 nsim=2241 nsime=2244 nsimeq=2244 nsmid=2224 nspar=2226 nsqsube=22e2 nsqsupe=22e3 nsub=2284 nsubE=2ac5,338 nsube=2288 nsubset=2282,20d2 nsubseteq=2288 nsubseteqq=2ac5,338 nsucc=2281 nsucceq=2ab0,338 nsup=2285 nsupE=2ac6,338 nsupe=2289 nsupset=2283,20d2 nsupseteq=2289 nsupseteqq=2ac6,338 ntgl=2279 ntilde=f1 ntlg=2278 ntriangleleft=22ea ntrianglelefteq=22ec ntriangleright=22eb ntrianglerighteq=22ed nu=3bd num=23 numero=2116 numsp=2007 nvDash=22ad nvHarr=2904 nvap=224d,20d2 nvdash=22ac nvge=2265,20d2 nvgt=3e,20d2 nvinfin=29de nvlArr=2902 nvle=2264,20d2 nvlt=3c,20d2 nvltrie=22b4,20d2 nvrArr=2903 nvrtrie=22b5,20d2 nvsim=223c,20d2 nwArr=21d6 nwarhk=2923 nwarr=2196 nwarrow=2196 nwnear=2927 oS=24c8 oacute=f3 oast=229b ocir=229a ocirc=f4 ocy=43e odash=229d odblac=151 odiv=2a38 odot=2299 odsold=29bc oelig=153 ofcir=29bf ofr=1d52c ogon=2db ograve=f2 ogt=29c1 ohbar=29b5 ohm=3a9 oint=222e olarr=21ba olcir=29be olcross=29bb oline=203e olt=29c0 omacr=14d omega=3c9 omicron=3bf omid=29b6 ominus=2296 oopf=1d560 opar=29b7 operp=29b9 oplus=2295 or=2228 orarr=21bb ord=2a5d order=2134 orderof=2134 ordf=aa ordm=ba origof=22b6 oror=2a56 orslope=2a57 orv=2a5b oscr=2134 oslash=f8 osol=2298 otilde=f5 otimes=2297 otimesas=2a36 ouml=f6 ovbar=233d par=2225 para=b6 parallel=2225 parsim=2af3 parsl=2afd part=2202 pcy=43f percnt=25 period=2e permil=2030 perp=22a5 pertenk=2031 pfr=1d52d phi=3c6 phiv=3d5 phmmat=2133 phone=260e pi=3c0 pitchfork=22d4 piv=3d6 planck=210f planckh=210e plankv=210f plus=2b plusacir=2a23 plusb=229e pluscir=2a22 plusdo=2214 plusdu=2a25 pluse=2a72 plusmn=b1 plussim=2a26 plustwo=2a27 pm=b1 pointint=2a15 popf=1d561 pound=a3 pr=227a prE=2ab3 prap=2ab7 prcue=227c pre=2aaf prec=227a precapprox=2ab7 preccurlyeq=227c preceq=2aaf precnapprox=2ab9 precneqq=2ab5 precnsim=22e8 precsim=227e prime=2032 primes=2119 prnE=2ab5 prnap=2ab9 prnsim=22e8 prod=220f profalar=232e profline=2312 profsurf=2313 prop=221d propto=221d prsim=227e prurel=22b0 pscr=1d4c5 psi=3c8 puncsp=2008 qfr=1d52e qint=2a0c qopf=1d562 qprime=2057 qscr=1d4c6 quaternions=210d quatint=2a16 quest=3f questeq=225f quot=22 rAarr=21db rArr=21d2 rAtail=291c rBarr=290f rHar=2964 race=223d,331 racute=155 radic=221a raemptyv=29b3 rang=27e9 rangd=2992 range=29a5 rangle=27e9 raquo=bb rarr=2192 rarrap=2975 rarrb=21e5 rarrbfs=2920 rarrc=2933 rarrfs=291e rarrhk=21aa rarrlp=21ac rarrpl=2945 rarrsim=2974 rarrtl=21a3 rarrw=219d ratail=291a ratio=2236 rationals=211a rbarr=290d rbbrk=2773 rbrace=7d rbrack=5d rbrke=298c rbrksld=298e rbrkslu=2990 rcaron=159 rcedil=157 rceil=2309 rcub=7d rcy=440 rdca=2937 rdldhar=2969 rdquo=201d rdquor=201d rdsh=21b3 real=211c realine=211b realpart=211c reals=211d rect=25ad reg=ae rfisht=297d rfloor=230b rfr=1d52f rhard=21c1 rharu=21c0 rharul=296c rho=3c1 rhov=3f1 rightarrow=2192 rightarrowtail=21a3 rightharpoondown=21c1 rightharpoonup=21c0 rightleftarrows=21c4 rightleftharpoons=21cc rightrightarrows=21c9 rightsquigarrow=219d rightthreetimes=22cc ring=2da risingdotseq=2253 rlarr=21c4 rlhar=21cc rlm=200f rmoust=23b1 rmoustache=23b1 rnmid=2aee roang=27ed roarr=21fe robrk=27e7 ropar=2986 ropf=1d563 roplus=2a2e rotimes=2a35 rpar=29 rpargt=2994 rppolint=2a12 rrarr=21c9 rsaquo=203a rscr=1d4c7 rsh=21b1 rsqb=5d rsquo=2019 rsquor=2019 rthree=22cc rtimes=22ca rtri=25b9 rtrie=22b5 rtrif=25b8 rtriltri=29ce ruluhar=2968 rx=211e sacute=15b sbquo=201a sc=227b scE=2ab4 scap=2ab8 scaron=161 sccue=227d sce=2ab0 scedil=15f scirc=15d scnE=2ab6 scnap=2aba scnsim=22e9 scpolint=2a13 scsim=227f scy=441 sdot=22c5 sdotb=22a1 sdote=2a66 seArr=21d8 searhk=2925 searr=2198 searrow=2198 sect=a7 semi=3b seswar=2929 setminus=2216 setmn=2216 sext=2736 sfr=1d530 sfrown=2322 sharp=266f shchcy=449 shcy=448 shortmid=2223 shortparallel=2225 shy=ad sigma=3c3 sigmaf=3c2 sigmav=3c2 sim=223c simdot=2a6a sime=2243 simeq=2243 simg=2a9e simgE=2aa0 siml=2a9d simlE=2a9f simne=2246 simplus=2a24 simrarr=2972 slarr=2190 smallsetminus=2216 smashp=2a33 smeparsl=29e4 smid=2223 smile=2323 smt=2aaa smte=2aac smtes=2aac,fe00 softcy=44c sol=2f solb=29c4 solbar=233f sopf=1d564 spades=2660 spadesuit=2660 spar=2225 sqcap=2293 sqcaps=2293,fe00 sqcup=2294 sqcups=2294,fe00 sqsub=228f sqsube=2291 sqsubset=228f sqsubseteq=2291 sqsup=2290 sqsupe=2292 sqsupset=2290 sqsupseteq=2292 squ=25a1 square=25a1 squarf=25aa squf=25aa srarr=2192 sscr=1d4c8 ssetmn=2216 ssmile=2323 sstarf=22c6 star=2606 starf=2605 straightepsilon=3f5 straightphi=3d5 strns=af sub=2282 subE=2ac5 subdot=2abd sube=2286 subedot=2ac3 submult=2ac1 subnE=2acb subne=228a subplus=2abf subrarr=2979 subset=2282 subseteq=2286 subseteqq=2ac5 subsetneq=228a subsetneqq=2acb subsim=2ac7 subsub=2ad5 subsup=2ad3 succ=227b succapprox=2ab8 succcurlyeq=227d succeq=2ab0 succnapprox=2aba succneqq=2ab6 succnsim=22e9 succsim=227f sum=2211 sung=266a sup=2283 sup1=b9 sup2=b2 sup3=b3 supE=2ac6 supdot=2abe supdsub=2ad8 supe=2287 supedot=2ac4 suphsol=27c9 suphsub=2ad7 suplarr=297b supmult=2ac2 supnE=2acc supne=228b supplus=2ac0 supset=2283 supseteq=2287 supseteqq=2ac6 supsetneq=228b supsetneqq=2acc supsim=2ac8 supsub=2ad4 supsup=2ad6 swArr=21d9 swarhk=2926 swarr=2199 swarrow=2199 swnwar=292a szlig=df target=2316 tau=3c4 tbrk=23b4 tcaron=165 tcedil=163 tcy=442 tdot=20db telrec=2315 tfr=1d531 there4=2234 therefore=2234 theta=3b8 thetasym=3d1 thetav=3d1 thickapprox=2248 thicksim=223c thinsp=2009 thkap=2248 thksim=223c thorn=fe tilde=2dc times=d7 timesb=22a0 timesbar=2a31 timesd=2a30 tint=222d toea=2928 top=22a4 topbot=2336 topcir=2af1 topf=1d565 topfork=2ada tosa=2929 tprime=2034 trade=2122 triangle=25b5 triangledown=25bf triangleleft=25c3 trianglelefteq=22b4 triangleq=225c triangleright=25b9 trianglerighteq=22b5 tridot=25ec trie=225c triminus=2a3a triplus=2a39 trisb=29cd tritime=2a3b trpezium=23e2 tscr=1d4c9 tscy=446 tshcy=45b tstrok=167 twixt=226c twoheadleftarrow=219e twoheadrightarrow=21a0 uArr=21d1 uHar=2963 uacute=fa uarr=2191 ubrcy=45e ubreve=16d ucirc=fb ucy=443 udarr=21c5 udblac=171 udhar=296e ufisht=297e ufr=1d532 ugrave=f9 uharl=21bf uharr=21be uhblk=2580 ulcorn=231c ulcorner=231c ulcrop=230f ultri=25f8 umacr=16b uml=a8 uogon=173 uopf=1d566 uparrow=2191 updownarrow=2195 upharpoonleft=21bf upharpoonright=21be uplus=228e upsi=3c5 upsih=3d2 upsilon=3c5 upuparrows=21c8 urcorn=231d urcorner=231d urcrop=230e uring=16f urtri=25f9 uscr=1d4ca utdot=22f0 utilde=169 utri=25b5 utrif=25b4 uuarr=21c8 uuml=fc uwangle=29a7 vArr=21d5 vBar=2ae8 vBarv=2ae9 vDash=22a8 vangrt=299c varepsilon=3f5 varkappa=3f0 varnothing=2205 varphi=3d5 varpi=3d6 varpropto=221d varr=2195 varrho=3f1 varsigma=3c2 varsubsetneq=228a,fe00 varsubsetneqq=2acb,fe00 varsupsetneq=228b,fe00 varsupsetneqq=2acc,fe00 vartheta=3d1 vartriangleleft=22b2 vartriangleright=22b3 vcy=432 vdash=22a2 vee=2228 veebar=22bb veeeq=225a vellip=22ee verbar=7c vert=7c vfr=1d533 vltri=22b2 vnsub=2282,20d2 vnsup=2283,20d2 vopf=1d567 vprop=221d vrtri=22b3 vscr=1d4cb vsubnE=2acb,fe00 vsubne=228a,fe00 vsupnE=2acc,fe00 vsupne=228b,fe00 vzigzag=299a wcirc=175 wedbar=2a5f wedge=2227 wedgeq=2259 weierp=2118 wfr=1d534 wopf=1d568 wp=2118 wr=2240 wreath=2240 wscr=1d4cc xcap=22c2 xcirc=25ef xcup=22c3 xdtri=25bd xfr=1d535 xhArr=27fa xharr=27f7 xi=3be xlArr=27f8 xlarr=27f5 xmap=27fc xnis=22fb xodot=2a00 xopf=1d569 xoplus=2a01 xotime=2a02 xrArr=27f9 xrarr=27f6 xscr=1d4cd xsqcup=2a06 xuplus=2a04 xutri=25b3 xvee=22c1 xwedge=22c0 yacute=fd yacy=44f ycirc=177 ycy=44b yen=a5 yfr=1d536 yicy=457 yopf=1d56a yscr=1d4ce yucy=44e yuml=ff zacute=17a zcaron=17e zcy=437 zdot=17c zeetrf=2128 zeta=3b6 zfr=1d537 zhcy=436 zigrarr=21dd zopf=1d56b zscr=1d4cf zwj=200d zwnj=200c";let Ah;function DY(e){if(Ah===void 0){Ah=new Map;for(const t of LY.split(" ")){const r=t.indexOf("="),s=t.slice(r+1).split(",").map(o=>parseInt(o,16));Ah.set(t.slice(0,r),String.fromCodePoint(...s))}}return Ah.get(e)}const OY=/^&(?:#[xX]([0-9a-fA-F]{1,6})|#([0-9]{1,7})|([A-Za-z][A-Za-z0-9]{0,31}));/;function lk(e,t){const r=OY.exec(e.slice(t,t+40));if(r==null)return null;const[s,o,l,u]=r,f=t+s.length;if(u!=null){const y=DY(u);return y===void 0?null:{value:y,end:f}}const d=o!=null?parseInt(o,16):parseInt(l??"0",10);return{value:d!==0&&d<=1114111&&(d<55296||d>57343)?String.fromCodePoint(d):"�",end:f}}function ck(e){return e!=null&&/^[!-/:-@[-`{-~]$/.test(e)}function IY(e){if(!e.includes("\\")&&!e.includes("&"))return e;let t="",r=0;for(;r<e.length;){const s=e[r];if(s==="\\"&&r+1<e.length&&ck(e[r+1])){t+=e[r+1],r+=2;continue}if(s==="&"){const o=lk(e,r);if(o!=null){t+=o.value,r=o.end;continue}}t+=s,r++}return t}function _Y(e){const t=e?.start.offset,r=e?.end.offset;return t==null||r==null?{}:{range:{start:t,end:r}}}function yR(e,t){if(t||e.position===void 0)return e;const{position:r,...s}=e;return s}function bi(e,t,r){const s=t.get(e);if(s!=null)return s;let o;switch(e.type){case"text":o={type:"text",content:e.value};break;case"strong":o={type:"bold",children:e.children.map(l=>bi(l,t,r))};break;case"emphasis":o={type:"italic",children:e.children.map(l=>bi(l,t,r))};break;case"delete":o={type:"strikethrough",children:e.children.map(l=>bi(l,t,r))};break;case"inlineCode":o={type:"code",content:e.value};break;case"inlineMath":o={type:"math",value:e.value};break;case"link":o={type:"link",href:e.url,children:e.children.map(l=>bi(l,t,r))};break;case"image":o={type:"image",src:e.url,alt:e.alt};break;case"citation":o={type:"citation",sourceId:e.sourceId};break;case"break":o={type:"break"};break;case"extension":o=yR(e,r);break}return t.set(e,o),o}function F$(e,t,r){const s=t.get(e);if(s!=null)return s;const o={children:e.children.map(l=>bi(l,t,r))};return t.set(e,o),o}function qY(e,t,r){const s=t.get(e);if(s!=null)return s;const o={checked:e.checked,children:e.children.map(l=>Vu(l,t,r))};return t.set(e,o),o}function Vu(e,t,r){const s=t.get(e);if(s!=null)return s;const o=r?_Y(e.position):{};let l;switch(e.type){case"heading":l={type:"heading",level:e.depth,children:e.children.map(u=>bi(u,t,r)),...o};break;case"paragraph":l={type:"paragraph",children:e.children.map(u=>bi(u,t,r)),...o};break;case"code":l={type:"codeblock",language:Z6(e)??"plaintext",content:e.value,...o};break;case"math":l={type:"math",value:e.value,...o};break;case"blockquote":l={type:"blockquote",children:e.children.map(u=>Vu(u,t,r)),...o};break;case"list":l={type:"list",ordered:e.ordered,start:e.start,delimiter:e.delimiter,loose:e.spread,items:e.children.map(u=>qY(u,t,r)),...o};break;case"table":{const[u={type:"tableRow",children:[]},...f]=e.children;l={type:"table",headers:u.children.map(d=>F$(d,t,r)),alignments:[...e.align],rows:f.map(d=>d.children.map(p=>F$(p,t,r))),...o};break}case"thematicBreak":l={type:"hr",...o};break;case"image":l={type:"image",alt:e.alt,src:e.url,...o};break;case"extension":l=yR(e,r);break}return t.set(e,l),l}const PY=100;function bR(e,t){return`${e}\0${t}`}function Cp(e){return{sourceIds:e.sourceIds,autolink:e.autolink,math:e.math,sourceRanges:e.sourceRanges,astPositions:e.astPositions??!0,plugins:e.plugins,isFinal:e.isFinal,allowBlockSyntax:e.allowBlockSyntax??!0,baseOffset:e.baseOffset,linkDefs:e.linkDefs,blockDepth:e.blockDepth??0,nestedParses:e.nestedParses,probing:e.probing,sourceLines:e.sourceLines,baseLine:e.baseLine,lineOrigin:e.lineOrigin}}const BY=Cp({isFinal:!0}),HY=Cp({isFinal:!1});function uk(e,t=!1){if(e==null)return t?HY:BY;if(typeof e.has=="function")return Cp({sourceIds:e,isFinal:!t});const r=e,s=r.plugins!=null&&r.plugins.length>0?fR(r.plugins):void 0;return Cp({sourceIds:r.sourceIds,autolink:r.autolink,math:r.math===!0?!0:void 0,sourceRanges:r.sourceRanges,plugins:s,isFinal:t?r.isFinal===!0:!0,sourceLines:s?.sourceLines===!0?!0:void 0})}const FY=/^ {0,3}\[([^\]^](?:\\.|[^\]\\])*)\]:[ \t]*(?:<([^<>\n]*)>|(\S+))([ \t]+(?:"[^"\n]*"|'[^'\n]*'|\([^()\n]*\)))?[ \t]*$/,ob=999,UY=/^ {0,3}(?:"[^"\n]*"|'[^'\n]*'|\([^()\n]*\))[ \t]*$/;function hc(e){return e.trim().replace(/\s+/g," ").toLowerCase()}function U$(e){let t=e.endsWith("\r")?e.slice(0,-1):e,r=0;for(;;){const s=/^ {0,3}> ?/.exec(t);if(s==null)return{content:t,quoteDepth:r};t=t.slice(s[0].length),r++}}function V$(e,t){let r=e;for(let s=0;s<t;s++){const o=/^ {0,3}> ?/.exec(r);if(o==null)return null;r=r.slice(o[0].length)}return r}function kR(e){const t=U$(e),r=/^( {0,9})(?:[-*+]|\d+[.)]) +(.*)$/.exec(t.content);if(r!=null){const s=/^\[[ xX]\] +(.*)$/.exec(r[2]),o=U$(s?.[1]??r[2]);return o.content.trim()==="$$"?{outerQuoteDepth:t.quoteDepth,listBaseIndent:r[1].length,innerQuoteDepth:o.quoteDepth}:null}return t.content.trim()==="$$"?{outerQuoteDepth:t.quoteDepth,listBaseIndent:null,innerQuoteDepth:0}:null}function vR(e,t){const r=V$(e,t.outerQuoteDepth);if(r==null)return"outside";if(t.listBaseIndent==null)return/^ {0,3}> ?/.test(r)?"outside":r.trim()==="$$"?"close":"inside";if(r.length-r.trimStart().length<=t.listBaseIndent)return"outside";const o=V$(r.trimStart(),t.innerQuoteDepth);return o==null||/^ {0,3}> ?/.test(o)?"outside":o.trim()==="$$"?"close":"inside"}function ib(e,t){const r=e[t].trim();if(r.length>4&&r.startsWith("$$")&&r.endsWith("$$")){const s=r.slice(2,-2);return s.trim()===""?null:{value:s,nextIndex:t+1,endLine:t}}if(r!=="$$")return null;for(let s=t+1;s<e.length;s++)if(e[s].trim()==="$$"){const o=e.slice(t+1,s).join(`
147
- `);return o.trim()===""?null:{value:o,nextIndex:s+1,endLine:s}}return null}function VY(e){const t=FY.exec(e);if(t==null||t[1].length>ob)return null;const r=hc(t[1]),s=t[2]!=null?t[2]:t[3];return r===""||s==null?null:{label:r,destination:Mp(s),hasTitle:t[4]!=null}}const id=/^( {0,3})(`{3,}|~{3,})/;function lb(e,t){const r=/^ {0,3}(`{3,}|~{3,})[ \t]*\r?$/.exec(e);return r!=null&&r[1].startsWith(t[0])&&r[1].length>=t.length}function GY(e){if(qi(e))return null;const t=/^( {0,9})([-*+]|\d+[.)]) /.exec(e);if(t==null)return null;const r=t[0].length,s=Fs(e.slice(r));return{base:t[1].length,content:s>=4?r:r+s,ordered:t[2]!=="-"&&t[2]!=="*"&&t[2]!=="+"}}function dk(){let e="",t=null,r=!1,s="",o=!1,l=!1;const u=d=>/^ {0,3}#{1,6}(?:[ \t]|$)/.test(d)||qi(d),f=d=>{if(s!==""){lb(d,s)&&(s=""),o=!1;return}const p=id.exec(d);if(p!=null){s=p[2],o=!1;return}o=d.trim()!==""&&!u(d)};return{get open(){return e!==""},read(d,p){const y=d[p];if(e!=="")return lb(y,e)?(e="","close"):"inside";if(y.trim()==="")return r=t!=null,l=!1,null;const m=Fs(y);if(t!=null&&(r?m>=t.content:m>t.base))return f(y.slice(Math.min(m,t.content))),null;const k=GY(y);if(k!=null&&!(l&&t==null&&k.ordered&&!/^ {0,9}0*1[.)]/.test(y)))return t=k,r=!1,s="",l=!1,f(y.slice(k.content)),null;const v=id.exec(y);return v!=null?(t=null,l=!1,e=v[2],"open"):(t!=null&&!r&&o&&ec(d,p)||(t=null,l=!u(y)),null)}}}function jp(e,t=!1){const r=e.split(`
148
- `),s=new Map,o=new Array(r.length).fill(!0);let l=!0;const u=dk();for(let p=0;p<r.length;p++){const y=r[p];if(u.open){l=u.read(r,p)==="close";continue}if(t){const m=ib(r,p);if(m!=null){p=m.endLine,l=!0;continue}}if(u.read(r,p)==="open"){l=!1;continue}if(y.trim()===""){l=!0;continue}if(l){const m=VY(y);if(m!=null){s.has(m.label)||s.set(m.label,m.destination),o[p]=!1,!m.hasTitle&&p+1<r.length&&UY.test(r[p+1])&&(o[p+1]=!1,p++);continue}}l=/^ {0,3}#{1,6}(?: |\t|$)/.test(y)||qi(y)}if(s.size===0)return{defs:s,cleaned:e};const f=[];for(let p=0;p<r.length;p++)o[p]&&f.push(p);const d=f.map(p=>r[p]).join(`
149
- `);return{defs:s,cleaned:d,lineMap:f}}function KY(e){return e==null||e.size===0?"":[...e].sort().join("\0")}function wR(e){return e.size===0?"":[...e].sort((t,r)=>t[0]<r[0]?-1:t[0]>r[0]?1:0).map(([t,r])=>`${t}\0${r}`).join("")}function Rp(e){return e.plugins==null?e:{...e,plugins:void 0}}function WY(e,t,r,s,o,l){const u=l.openerClose(t);if(u===-1)return null;const f=e.slice(t+1,u);if(e[u+1]==="["){const p=l.closingBracket(u+2);if(p!==-1){const y=e.slice(u+2,p),m=y===""?f:y,k=r.get(hc(m));if(k!=null&&Ya(k))return{node:{type:"link",url:k,children:pc(f,Rp(s),o)},end:p+1}}}if(f.trim()==="")return null;const d=r.get(hc(f));return d==null||!Ya(d)?null:{node:{type:"link",url:d,children:pc(f,Rp(s),o)},end:u+1}}let o1=0;const YY=10;function Ap(e,t,r){if(o1>=YY)return IY(e);o1++;try{return Rd(SR(pc(e,Rp(t),r)))}finally{o1--}}function SR(e){return e.map(t=>{switch(t.type){case"break":return{type:"text",value:`
150
- `};case"strong":case"emphasis":case"delete":case"link":return{...t,children:SR(t.children)};case"text":case"inlineCode":case"inlineMath":case"image":case"citation":case"extension":return t}})}function XY(e,t,r,s,o,l){const u=s.openerClose(t+1);if(u===-1)return null;const f=e.slice(t+2,u);if(e[u+1]==="["){const p=s.closingBracket(u+2);if(p!==-1){const y=e.slice(u+2,p),m=y===""?f:y,k=r.get(hc(m));if(k!=null&&Ya(k))return{node:{type:"image",url:k,alt:Ap(f,o,l)},end:p+1}}}if(f.trim()==="")return null;const d=r.get(hc(f));return d==null||!Ya(d)?null:{node:{type:"image",url:d,alt:Ap(f,o,l)},end:u+1}}const ZY=/^\s*(?:<((?:[^<>\n\\]|\\.)*)>|([^\s<]\S*?))(?:\s+(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\((?:[^()\\]|\\.)*\)))?\s*$/s;function cb(e,t){let r=t+1;for(;e[r]===" "||e[r]===" ";)r++;if(e[r]!=="<")return null;for(r++;r<e.length;r++){const o=e[r];if(o==="\\"&&e[r+1]!==`
151
- `&&e[r+1]!=="\r")r++;else{if(o===`
152
- `||o==="\r"||o==="<")return"refused";if(o===">")break}}if(r>=e.length)return"refused";for(r++;/\s/.test(e[r]??"");)r++;const s=e[r];if(s==='"'||s==="'"||s==="("){const o=s==="("?")":s;for(r++;r<e.length&&e[r]!==o;r++)if(e[r]==="\\")r++;else if(s==="("&&e[r]==="(")return"refused";for(r++;/\s/.test(e[r]??"");)r++}return e[r]===")"?r:"refused"}function ub(e){const t=ZY.exec(e);return t==null?e:t[1]??t[2]??e}function Mp(e){if(!e.includes("\\")&&!e.includes("&"))return e;let t="",r=0;for(;r<e.length;){const s=e[r];if(s==="\\"&&ck(e[r+1])){t+=e[r+1],r+=2;continue}if(s==="&"){const o=lk(e,r);if(o!=null){t+=o.value,r=o.end;continue}}t+=s,r++}return t}function QY(e,t){let r=null;const s=(m,k)=>{if(r==null){r=new Map;for(let E=e.indexOf("`");E!==-1;){let R=E;for(;e[R]==="`";)R++;const C=r.get(R-E);C==null?r.set(R-E,[E]):C.push(E),E=e.indexOf("`",R)}}const v=r.get(k);if(v==null)return-1;let w=0,S=v.length;for(;w<S;){const E=w+S>>1;v[E]<m?w=E+1:S=E}return w<v.length?v[w]:-1};let o=null;const l=m=>{if(o==null){const k=new Uint8Array(e.length);for(let v=0;v<e.length;v++){const w=e[v];if(w==="\\")v++;else if(w==="`"){let S=v;for(;e[S]==="`";)S++;const E=s(S,S-v);v=(E===-1?S:E+(S-v))-1}else w==="]"&&(k[v]=1)}o=new Int32Array(e.length+1).fill(-1);for(let v=e.length-1;v>=0;v--)o[v]=k[v]===1?v:o[v+1]}return m<e.length?o[m]:-1};let u=null;const f=m=>{if(u==null){u=new Int32Array(e.length).fill(-1);const k=[];for(let v=0;v<e.length;v++){const w=e[v];if(w==="\\")v++;else if(w==="(")k.push(v);else if(w===")"){const S=k.pop();S!==void 0&&(u[S]=v)}}}return e[m]==="("?u[m]:-1},d=(m,k)=>{if(e[k+1]==="("){const S=cb(e,k+1),E=S==="refused"?-1:S??f(k+1);if(E!==-1)return E+1}if(t==null||k-m-1>ob)return-1;const v=e.slice(m+1,k),w=S=>{const E=t.get(hc(S));return E!=null&&Ya(E)};if(e[k+1]==="["){const S=l(k+2);if(S!==-1&&S-k-2<=ob&&w(S===k+2?v:e.slice(k+2,S)))return S+1}return v.trim()!==""&&w(v)?k+1:-1};let p=null;return{backtickCloser:s,closingBracket:l,closingParen:f,openerClose:m=>{if(p==null){p=new Map;const k=[];let v=0;for(let w=0;w<e.length;w++){const S=e[w];if(S==="\\")w++;else if(S==="`"){let E=w;for(;e[E]==="`";)E++;const R=s(E,E-w);w=(R===-1?E:R+(E-w))-1}else if(S==="!"&&e[w+1]==="[")k.push({index:w+1,image:!0}),w++;else if(S==="[")k.push({index:w,image:!1});else if(S==="]"&&k.length>0){const E=k.length-1,R=k[E];k.pop();const C=R.image||E>=v;if(v=Math.min(v,E),!C)continue;const T=d(R.index,w);if(T===-1)continue;p.set(R.index,w),R.image||(v=k.length),w=T-1}}}return p.get(m)??-1}}}function Cu(e,t,r){const s=e[e.length-1];s?.type==="text"&&t?.has(s)!==!0?e[e.length-1]={...s,value:s.value+r}:e.push({type:"text",value:r})}const G$=/^[\t\n\f\r\p{Zs}]$/u,K$=/^[\p{P}\p{S}]$/u;function JY(e,t){if(t<=0)return;const r=e.charCodeAt(t-1);if(r>=56320&&r<=57343&&t>=2){const s=e.charCodeAt(t-2);if(s>=55296&&s<=56319)return e.slice(t-2,t)}return e[t-1]}function eX(e,t){if(t>=e.length)return;const r=e.codePointAt(t);return r==null?void 0:String.fromCodePoint(r)}function tX(e,t,r,s){const o=JY(t,r),l=eX(t,s),u=o==null||G$.test(o),f=l==null||G$.test(l),d=o!=null&&K$.test(o),p=l!=null&&K$.test(l),y=!f&&(!p||u||d),m=!u&&(!d||f||p);return{node:{type:"text",value:t.slice(r,s)},character:e,originalLength:s-r,length:s-r,canOpen:e==="*"?y:y&&(!m||d),canClose:e==="*"?m:m&&(!y||p)}}const nX=100;function rX(e,t){const r={node:{type:"text",value:""},previous:null,next:null};let s=r;const o=new Map;for(const w of e){const S={node:w,previous:s,next:null};s.next=S,s=S,o.set(w,S)}const l=w=>{w.previous!=null&&(w.previous.next=w.next),w.next!=null&&(w.next.previous=w.previous)},u=t.map((w,S)=>({run:w,index:S,previous:null,next:null,depthAfter:0,canClose:w.canClose}));u.forEach((w,S)=>{w.previous=u[S-1]??null,w.next=u[S+1]??null});const f=w=>{w.previous!=null&&(w.previous.next=w.next,w.previous.depthAfter=Math.max(w.previous.depthAfter,w.depthAfter)),w.next!=null&&(w.next.previous=w.previous)},d=new Map;let p=null,y=u[0]??null;for(;y!=null;){const w=y.run;if(!y.canClose||w.length===0){y=y.next;continue}const S=`${w.character}${w.canOpen?1:0}${w.originalLength%3}`,E=d.get(S)??-1;let R=y.previous;for(;R!=null&&R.index>E;){const M=R.run,H=(w.canOpen||M.canClose)&&(M.originalLength+w.originalLength)%3===0&&!(M.originalLength%3===0&&w.originalLength%3===0);if(M.character===w.character&&M.canOpen&&M.length>0&&!H)break;R=R.previous}if(R==null||R.index<=E){d.set(S,y.index-1);const M=y.next;w.canOpen||f(y),y=M;continue}const C=R.run;let T=R.depthAfter;for(let M=R.next;M!=null&&M!==y;M=M.next)T=Math.max(T,M.depthAfter);if(R.next=y,y.previous=R,R.depthAfter=T,T>=nX){const M=y.next;f(R),y.canClose=!1,w.canOpen||f(y),y=M;continue}const A=o.get(C.node),N=o.get(w.node);if(A==null||N==null)break;const L=C.length>=2&&w.length>=2?2:1,D=[];for(let M=A.next;M!=null&&M!==N;M=M.next)D.push(M.node);let j;if(L===2)j={type:"strong",children:D},p={node:j,opener:C,closer:w};else{const[M]=D;j=D.length===1&&M===p?.node&&p.opener===C&&p.closer===w&&M.type==="strong"?{type:"strong",children:[{type:"emphasis",children:M.children}]}:{type:"emphasis",children:D}}const O={node:j,previous:A,next:N};if(A.next=O,N.previous=O,R.depthAfter=T+1,C.length-=L,w.length-=L,C.node.value=C.character.repeat(C.length),w.node.value=w.character.repeat(w.length),C.length===0&&(l(A),f(R)),w.length===0){l(N);const M=y.next;f(y),y=M}}const m=new Set(t.filter(w=>w.length>0).map(w=>w.node)),k=[];let v=!1;for(let w=r.next;w!=null;w=w.next){const{node:S}=w,E=m.has(S),R=k[k.length-1];if(S.type==="text"&&R?.type==="text"&&(E||v)){k[k.length-1]={...R,value:R.value+S.value},v=!0;continue}k.push(E?{type:"text",value:S.value}:S),v=E}return k}function Np(e,t){let r=0;for(let s=t-1;s>=0&&e[s]==="\\";s--)r++;return r%2===1}function ER(e,t){return e[t]==="$"&&e[t-1]!=="$"&&e[t+1]!=="$"&&e[t+1]!=null&&!/\s/.test(e[t+1])&&!/\d/.test(e[t-1]??"")&&!Np(e,t)}function $R(e,t){if(!ER(e,t))return-1;for(let r=t+1;r<e.length;r++){if(e[r]===`
153
- `)return-1;if(!(e[r]!=="$"||Np(e,r)))return e[r-1]==="$"||e[r+1]==="$"||/\s/.test(e[r-1])||/\d/.test(e[r+1]??"")?-1:r}return-1}function aX(e,t,r){if(!r.sourceIds||e[t]!=="【")return null;const s=e.indexOf("】",t+1);if(s===-1)return null;const o=e.slice(t+1,s);return o.length===0||!r.sourceIds.has(o)?null:{sourceId:o,end:s+1}}function sX(e,t,r){if(!r.sourceIds||e[t]!=="[")return null;const s=e.indexOf("]",t+1);if(s===-1||e[s+1]==="(")return null;const o=e.slice(t+1,s);return o.length===0||!r.sourceIds.has(o)?null:{sourceId:o,end:s+1}}function W$(e,t){return e.lastIndexOf(`
154
- `,t-1)+1}function db(e,t,r,s){const l=(r==="inline"?s.plugins?.inlineByFirstCharacter:s.allowBlockSyntax===!1?void 0:s.plugins?.blockByFirstCharacter)?.get(e[t]);if(l==null)return{status:"none"};const u=new Set;for(const f of l){if(u.has(f))continue;u.add(f);let d=!1;for(const R of f.contribution.startsWith){if(e.startsWith(R,t)){d=!0;break}if(!s.isFinal){const C=e.slice(t);if(C.length<R.length&&R.startsWith(C))return{status:"defer"}}}if(!d)continue;const p=Math.min(e.length,t+f.contribution.maxSpan);let y;try{y=f.contribution.tokenize({source:p===e.length?e:e.slice(0,p),offset:t,end:p,isFinal:s.isFinal,context:r,lineStart:W$(e,t),column:t-W$(e,t)})}catch{Ga(f.pluginName,"syntax");continue}if(y==null||typeof y!="object"||typeof y.then=="function"){Ga(f.pluginName,"syntax");continue}if(y.status==="no-match")continue;if(y.status==="defer")return!s.isFinal&&p===e.length&&e.length-t<f.contribution.maxSpan?{status:"defer"}:{status:"none"};if(y.status!=="match"||!Number.isInteger(y.end)||y.end<=t||y.end>p||y.node.type!=="extension"||y.node.plugin!==f.pluginName||y.node.display!==r||y.node.name.trim()===""||!ad(y.node.data)||!s.plugins?.renderers.has(`${f.pluginName}\0${y.node.name}`)){Ga(f.pluginName,"syntax");continue}const m=y.node,{source:k,position:v,...w}=m,S=(s.baseOffset??0)+t,E=(s.baseOffset??0)+y.end;return{status:"match",end:y.end,node:Object.freeze({...w,data:hR(y.node.data),source:e.slice(t,y.end),...s.sourceRanges&&r==="block"?{position:Object.freeze({start:Object.freeze({offset:S}),end:Object.freeze({offset:E})})}:null})}}return{status:"none"}}function oX(e,t){return e[t]===`
155
- `?1:e[t]==="\r"&&e[t+1]===`
156
- `?2:0}function Y$(e,t){return iX(e,t)}function iX(e,t){const r=uk(t),s=Jl(e,r);if((r.plugins?.transforms.length??0)===0)return s;const l=sd({type:"root",children:[{type:"paragraph",children:s}]},r.plugins,e,r.isFinal,"inline").children[0];return l?.type==="paragraph"?[...l.children]:s}function Jl(e,t,r="default"){const s=pc(e,t,r);return t.autolink==="gfm"?RR(s):s}function pc(e,t,r="default"){const s=[];let o=null,l=null;const u=QY(e,t.linkDefs),f=t.plugins!=null&&t.plugins.inlineByFirstCharacter.size>0?t.plugins.inlineByFirstCharacter:void 0;let d=0;for(;d<e.length;){if(e[d]==="\\"&&d+1<e.length){const m=oX(e,d+1);if(m>0){s.push({type:"break"}),d+=1+m;continue}if(ck(e[d+1])){s.push({type:"text",value:e[d+1]}),d+=2;continue}}if(e[d]==="`"){let m=d;for(;e[m]==="`";)m++;const k=m-d,v=u.backtickCloser(m,k);if(v===-1){Cu(s,l,e.slice(d,m)),d=m;continue}s.push({type:"inlineCode",value:r==="tableCell"?e.slice(m,v).replace(/\\\|/g,"|"):e.slice(m,v)}),d=v+k;continue}if(t.math&&e[d]==="$"){const m=$R(e,d);if(m!==-1){s.push({type:"inlineMath",value:e.slice(d+1,m)}),d=m+1;continue}}{const m=aX(e,d,t);if(m){s.push({type:"citation",sourceId:m.sourceId}),d=m.end;continue}}if(e[d]==="!"&&e[d+1]==="["){const m=u.openerClose(d+1);if(m!==-1&&e[m+1]==="("){const k=cb(e,m+1),v=k==="refused"?-1:k??u.closingParen(m+1);if(v!==-1){const w=Mp(ub(e.slice(m+2,v)));Ya(w)?s.push({type:"image",url:w,alt:Ap(e.slice(d+2,m),t,r)}):s.push({type:"text",value:e.slice(d,v+1)}),d=v+1;continue}}}if(t.linkDefs!=null&&e[d]==="!"&&e[d+1]==="["){const m=XY(e,d,t.linkDefs,u,t,r);if(m){s.push(m.node),d=m.end;continue}}{const m=sX(e,d,t);if(m){s.push({type:"citation",sourceId:m.sourceId}),d=m.end;continue}}if(e[d]==="["){const m=u.openerClose(d);if(m!==-1&&e[m+1]==="("){const k=cb(e,m+1),v=k==="refused"?-1:k??u.closingParen(m+1);if(v!==-1){const w=Mp(ub(e.slice(m+2,v)));Ya(w)?s.push({type:"link",url:w,children:pc(e.slice(d+1,m),Rp(t),r)}):s.push({type:"text",value:e.slice(d,v+1)}),d=v+1;continue}}}if(t.linkDefs!=null&&e[d]==="["){const m=WY(e,d,t.linkDefs,t,r,u);if(m){s.push(m.node),d=m.end;continue}}if(e[d]==="*"||e[d]==="_"){const m=e[d];let k=d+1;for(;e[k]===m;)k++;const v=tX(m,e,d,k);if(v.canOpen||v.canClose){s.push(v.node),(o??=[]).push(v),(l??=new Set).add(v.node),d=k;continue}if(f?.has(m)!==!0){Cu(s,l,e.slice(d,k)),d=k;continue}}if(e[d]==="~"&&e[d+1]==="~"){const m=e.indexOf("~~",d+2);if(m!==-1){s.push({type:"delete",children:pc(e.slice(d+2,m),t,r)}),d=m+2;continue}}if(f!==void 0){const m=db(e,d,"inline",t);if(m.status==="match"){s.push(m.node),d=m.end;continue}if(m.status==="defer")break}if(e[d]==="&"){const m=lk(e,d);if(m!=null){Cu(s,l,m.value),d=m.end;continue}}let p=d+1;for(;p<e.length&&!"*_~`[!\\\n【&".includes(e[p])&&!(t.math&&e[p]==="$")&&(f===void 0||!f.has(e[p]));)p++;const y=e.slice(d,p);if(p<e.length&&e[p]===`
157
- `){const m=y.endsWith("\r")?y.slice(0,-1):y;let k=0;for(;m[m.length-1-k]===" ";)k++;const v=m.slice(0,m.length-k);if(k>=2){v.length>0&&Cu(s,l,v),s.push({type:"break"}),d=p+1;continue}}Cu(s,l,y),d=p}return o==null?s:rX(s,o)}const TR="[^\\s<]+",lX="https?:\\/\\/",CR="[A-Za-z0-9._%+-]+",X$="[A-Za-z0-9-]+",jR=`${X$}(?:\\.${X$})+`,cX="[a-zA-Z][a-zA-Z0-9+.-]*",uX="[^<>\\s]*",dX=new RegExp(`${lX}${TR}`,"g"),fX=new RegExp(`www\\.${TR}`,"g"),hX=new RegExp(`${CR}@${jR}`,"g"),pX=new RegExp(`<(${cX}:${uX})>`,"g"),xX=new RegExp(`<(${CR}@${jR})>`,"g"),Z$=new Set("?!.,:*_~"),gX=new Set("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._%+-@");function Q$(e){let t=e;for(;t.length>0;){if(Z$.has(t[t.length-1])){let r=t.length-1;for(;r>0&&Z$.has(t[r-1]);)r--;t=t.slice(0,r);continue}if(t.endsWith(")")){let r=0,s=0;for(let o=0;o<t.length;o++)t[o]==="("?r++:t[o]===")"&&s++;if(s>r){t=t.slice(0,-1);continue}}break}return t}const mX=new Set("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789/=");function J$(e){return e==null?!0:!mX.has(e)}function yX(e){const t=[];{const o=new RegExp(pX.source,"g");let l;for(;(l=o.exec(e))!==null;){const u=l[1];Ya(u)&&t.push({start:l.index,end:l.index+l[0].length,href:u,display:u})}}{const o=new RegExp(xX.source,"g");let l;for(;(l=o.exec(e))!==null;){const u=l[1];t.push({start:l.index,end:l.index+l[0].length,href:`mailto:${u}`,display:u})}}{const o=new RegExp(dX.source,"g");let l;for(;(l=o.exec(e))!==null;){const u=e[l.index-1];if(!J$(u)||e.slice(l.index-2,l.index)==="](")continue;const f=Q$(l[0]);f.length!==0&&t.push({start:l.index,end:l.index+f.length,href:f,display:f})}}{const o=new RegExp(fX.source,"g");let l;for(;(l=o.exec(e))!==null;){const u=e[l.index-1];if(!J$(u)||e.slice(l.index-3,l.index)==="://")continue;const f=Q$(l[0]);f.length!==0&&t.push({start:l.index,end:l.index+f.length,href:`http://${f}`,display:f})}}{const o=new RegExp(hX.source,"g");let l;for(;(l=o.exec(e))!==null;){const u=e[l.index-1];u!=null&&gX.has(u)||e.slice(Math.max(0,l.index-7),l.index)!=="mailto:"&&t.push({start:l.index,end:l.index+l[0].length,href:`mailto:${l[0]}`,display:l[0]})}}t.sort((o,l)=>o.start-l.start);const r=[];let s=0;for(const o of t)o.start>=s&&(r.push(o),s=o.end);return r}function bX(e){const t=yX(e);if(t.length===0)return[{type:"text",value:e}];const r=[];let s=0;for(const o of t)o.start>s&&r.push({type:"text",value:e.slice(s,o.start)}),r.push({type:"link",url:o.href,children:[{type:"text",value:o.display}]}),s=o.end;return s<e.length&&r.push({type:"text",value:e.slice(s)}),r}function RR(e){const t=[];for(const r of e)if(r.type==="text"){const s=bX(r.value);for(const o of s){const l=t[t.length-1];o.type==="text"&&l?.type==="text"?t[t.length-1]={...l,value:l.value+o.value}:t.push(o)}}else r.type==="strong"||r.type==="emphasis"||r.type==="delete"?t.push({...r,children:RR(r.children)}):t.push(r);return t}function Fs(e){let t=0;for(;t<e.length&&e[t]===" ";)t++;return t}function qi(e){const t=e.trim(),r=t[0];if(t.length<3||r!=="-"&&r!=="*"&&r!=="_"||!t.endsWith(r))return!1;let s=0;for(let o=0;o<t.length;o++){const l=t[o];if(l===r)s++;else if(l!==" ")return!1}return s>=3}function kX(e){for(let t=0;t<e.length;t++){if(e[t]==="\\"){t++;continue}if(e[t]==="|")return!0}return!1}function Gu(e){if(!e.includes("|"))return!1;const r=e.split("|").map(s=>s.trim()).filter(s=>s.length>0);return r.length>0&&r.every(s=>/^:?-+:?$/.test(s))}function ld(e){return{...e,allowBlockSyntax:!1,sourceRanges:!1,astPositions:!1,blockDepth:e.blockDepth+1,baseLine:void 0,lineOrigin:void 0}}function AR(e,t){return t==null?ld(e):{...ld(e),lineOrigin:t}}function e3(e){const t=e.length-e.trimStart().length;return t<=3?t:null}const zp=/^ {0,3}>/;function vX(e){return e.replace(/^ {0,3}>[ \t]?/,"")}function wX(e){return!!(/^ {0,3}#{1,6} /.test(e)||id.test(e)||qi(e)||zp.test(e)||/^ {0,9}[-*+] /.test(e)||/^ {0,9}0*1[.)] /.test(e)||e.includes("|"))}function ec(e,t,r=!1){const s=e[t];return s==null||s.trim()===""||/^ {0,3}#{1,6} /.test(s)||id.test(s)||qi(s)||zp.test(s)||/^ {0,9}[-*+] /.test(s)||(r?/^ {0,9}\d+[.)] /.test(s):/^ {0,9}0*1[.)] /.test(s))?!1:!(s.includes("|")&&t+1<e.length&&Gu(e[t+1]))}function fb(e){const t=e[e.length-1];if(t==null)return!1;if(t.type==="paragraph")return!0;if(t.type==="blockquote")return fb(t.children);if(t.type==="list"){const r=t.children[t.children.length-1];return r!=null&&fb(r.children)}return!1}function MR(e,t){const r=t.nestedParses;r!=null&&(r.map??=new Map);const s=r?.map?.get(bR(t.blockDepth+1,e));return fb(s??zo(e,{...ld(t),probing:!0}))}function i1(e){let t=0,r=e.length;for(;t<r&&(e[t]===" "||e[t]===" ");)t++;if(e[t]==="|")for(t++;t<r&&e[t]===" ";)t++;for(;r>t&&e[r-1]===" ";)r--;r>t&&e[r-1]==="|"&&r--;const s=e.slice(t,r),o=[];let l="";for(let u=0;u<s.length;u++)s[u]==="\\"&&u+1<s.length&&s[u+1]==="|"?(l+="\\|",u++):s[u]==="|"?(o.push(l.trim()),l=""):l+=s[u];return o.push(l.trim()),o}function SX(e,t,r){const s=i1(e[t]).map(d=>({type:"tableCell",children:Jl(d,r,"tableCell")})),o=i1(e[t+1]).map(d=>{const p=d.trim(),y=p.startsWith(":"),m=p.endsWith(":");return y&&m?"center":m?"right":y?"left":null}),l=[];let u=t+2;for(;u<e.length&&e[u].includes("|")&&e[u].trim()!=="";)l.push({type:"tableRow",children:i1(e[u]).map(d=>({type:"tableCell",children:Jl(d,r,"tableCell")}))}),u++;return{node:{type:"table",align:o,children:[{type:"tableRow",children:s},...l]},nextIndex:u}}function t3(e,t,r){if(t.length===0)return e;const s=t.filter((l,u)=>l.trim()!==""&&!r.has(u)).map(Fs),o=s.length===0?0:Math.min(...s);return`${e}
158
- ${t.map((l,u)=>l.trim()===""?"":l.slice(r.has(u)?Fs(l):o)).join(`
159
- `)}`}function n3(e,t,r,s,o,l){const u=[],f=Fs(e[t]),d=r?e[t].match(/^ *(\d+)([.)]) /):null,p=d?d[2]:".",y=`\\${p}`,m=r?null:e[t].trimStart()[0],k=r?new RegExp(`^ {${f}}\\d+${y} `):new RegExp(`^ {${f}}\\${m} `),v=d?parseInt(d[1],10):void 0;let w=!1,S=t;const E=C=>k.test(C)&&!qi(C);for(;S<e.length&&E(e[S]);){const C=S,T=r?e[S].replace(new RegExp(`^ *\\d+${y} `),""):e[S].replace(/^ *[-*+] /,""),A=e[S].length-T.length,N=Fs(T),L=N>=4?A:A+N,D=T.match(/^\[([ xX])\] (.*)/);let j,O;D?(j=D[1].toLowerCase()==="x",O=D[2]):O=T,S++;const M=[],H=new Set;let F=ec([O],0,!0)?!0:void 0;for(;S<e.length&&e[S].trim()!=="";){if(Fs(e[S])>f){M.push(e[S]),F===!0&&!ec([e[S].trimStart()],0)&&(F=void 0),S++;continue}if(o(S)||!ec(e,S,!0)||(F===void 0&&(F=MR(t3(O,M,H),s)),!F))break;H.add(M.length),M.push(e[S]),S++}for(;;){let U=S;for(;U<e.length&&e[U].trim()==="";)U++;if(U===S||U>=e.length||Fs(e[U])<L)break;for(;S<U;S++)M.push("");for(;S<e.length&&e[S].trim()!==""&&Fs(e[S])>=L;)M.push(e[S]),S++;w=!0}const q=t3(O,M,H);if(l==null)u.push({type:"listItem",checked:j,children:zo(q,ld(s))});else{const U=[];for(let _=C;_<S;_++)U.push(l(_));u.push({type:"listItem",checked:j,children:zo(q,AR(s,U)),position:{start:{line:U[0]+1},end:{line:U[U.length-1]+1}}})}let B=S;for(;B<e.length&&e[B].trim()==="";)B++;B>S&&B<e.length&&E(e[B])&&(w=!0,S=B)}const R={type:"list",ordered:r,start:v,delimiter:r?p:void 0,spread:w||void 0,children:u};return cd.set(R,`${f}:${r?p:m}`),{node:R,nextIndex:S}}function r3(e,t){return EX(e,t)}function EX(e,t,r){const o=uk(t),l={type:"root",children:zo(e,o)};return sd(l,o.plugins,e,o.isFinal,"block")}function zo(e,t){if(t.blockDepth>=PY){const L=e.trim();return L===""?[]:[{type:"paragraph",children:Jl(L,t)}]}const r=t.nestedParses==null?{...t,nestedParses:{map:null}}:t,{defs:s,cleaned:o,lineMap:l}=jp(e,r.math),u=r.linkDefs;let f;s.size===0?f=u:u==null?f=s:f=new Map([...s,...u]);const d=f!=null?{...r,linkDefs:f}:r,p=o.split(`
160
- `),y=d.allowBlockSyntax!==!1&&(d.plugins?.blockByFirstCharacter.size??0)>0,m=[0];if(d.astPositions===!0||y){let L=0;for(let D=0;D<p.length;D++)L+=p[D].length+1,m.push(L)}const k=new Map,v=L=>{if(!y)return!1;const D=e3(p[L]);if(D==null)return!1;const j=m[L]+D,O=db(o,j,"block",d);return O.status==="none"?!1:(k.set(j,O),!0)},w=[],S=TX(d,l),E=d.astPositions===!0||S!=null?[]:null,R=E!=null?[]:null;let C=0;const T=(L,D)=>{w.push(L),E?.push(C),R?.push(D)};let A=0;for(;A<p.length;){C=A;const L=p[A];if(L.trim()===""){A++;continue}const D=id.exec(L);if(D){const[F,q,B]=D,U=L.slice(F.length).trim(),_=U.match(/^(\S+)/)?.[1]??null,P=U.match(/^(\w*)/)?.[1]||null,G=_==null?void 0:U.slice(_.length).trim()||void 0,X=[],Z=new RegExp(`^ {0,${q.length}}`);for(A++;A<p.length&&!lb(p[A],B);)X.push(p[A].replace(Z,"")),A++;const Q=A<p.length;d.blockDepth===0&&!Q&&X.length>0&&p[p.length-1]===""&&X.pop(),A++,T(MW({type:"code",lang:_,...G==null?{}:{meta:G},value:X.join(`
161
- `)},P),Math.min(A,p.length)-1);continue}if(d.math){const F=ib(p,A);if(F!=null){T({type:"math",value:F.value},F.endLine),A=F.nextIndex;continue}}const j=L.match(/^ {0,3}(#{1,6}) +(.*)/);if(j){T({type:"heading",depth:j[1].length,children:Jl(j[2],d)}),A++;continue}if(qi(L)){T({type:"thematicBreak"}),A++;continue}const O=L.match(/^!\[([^\]]*)\]\(([^)]+)\)/),M=O?Mp(ub(O[2])):"";if(O&&L.trim()===O[0]&&Ya(M)){T({type:"image",alt:Ap(O[1],d,"default"),url:M}),A++;continue}if(A+1<p.length&&L.includes("|")&&Gu(p[A+1])){const F=SX(p,A,d);T(F.node),A=F.nextIndex;continue}if(zp.test(L)){const F=[];let q;for(;A<p.length;){const B=p[A];if(zp.test(B)){const U=vX(B);F.push(U),U.trim()===""?q=!1:(q===!1||q===!0&&!ec([U],0))&&(q=void 0),A++;continue}if(F[F.length-1]?.trim()===""||v(A)||!ec(p,A)||(q===void 0&&(q=MR(F.join(`
162
- `),d)),!q))break;F.push(B),A++}T({type:"blockquote",children:zo(F.join(`
163
- `),AR(d,S==null?null:F.map((B,U)=>S(C+U))))});continue}if(/^ {0,9}[-*+] /.test(L)){const F=n3(p,A,!1,d,v,S);T(F.node),A=F.nextIndex;continue}if(/^ {0,9}\d+[.)] /.test(L)){const F=n3(p,A,!0,d,v,S);T(F.node),A=F.nextIndex;continue}if(y){const F=e3(L),q=F==null?m[A]:m[A]+F,B=k.get(q)??(F==null?{status:"none"}:db(o,q,"block",d));if(k.delete(q),B.status==="match"){const U=B.end,_=o.slice(m[A],U);if(U<o.length&&o[U]!==`
164
- `&&o[U-1]!==`
165
- `)Ga(B.node.plugin,"syntax");else{const P=_.split(`
166
- `).length-1,G=Math.max(1,P+(_.endsWith(`
167
- `)?0:1));T(B.node,A+G-1),A+=G;continue}}if(B.status==="defer")break}const H=[L];for(A++;A<p.length;){const F=p[A];if(wX(F)||d.math&&ib(p,A)!=null||F.trim()===""||v(A))break;H.push(F),A++}T({type:"paragraph",children:Jl(H.join(`
168
- `),d)})}E!=null&&$X(w,E,R??[],p,l,e,d,S);const N=r.nestedParses?.map;return r.probing===!0&&N!=null&&N.set(bR(r.blockDepth,e),w),w}function $X(e,t,r,s,o,l,u,f){const d=u.astPositions===!0,p=u.baseOffset??0,y=[0];if(d)for(let k=0;k<l.length;k++)l[k]===`
169
- `&&y.push(k+1);const m=k=>p+y[o!=null?o[k]:k];for(let k=0;k<e.length;k++){const v=t[k];let w=r[k];if(w==null)for(w=(k+1<e.length?t[k+1]:s.length)-1;w>v&&s[w].trim()==="";)w--;let S;f==null?S={start:{offset:m(v)},end:{offset:m(w)+s[w].length}}:d?S={start:{offset:m(v),line:f(v)+1},end:{offset:m(w)+s[w].length,line:f(w)+1}}:S={start:{line:f(v)+1},end:{line:f(w)+1}},e[k]=fk(e[k],{...e[k],position:S})}}function TX(e,t){if(e.sourceLines!==!0)return null;const r=l=>t!=null?t[l]:l,s=e.lineOrigin;if(s!=null)return l=>s[r(l)];if(e.astPositions!==!0)return null;const o=e.baseLine??0;return l=>o+r(l)}const NR=new WeakMap;function zR(e){const{defs:t}=jp(e.settledText,e.math),r={settledEnd:e.settledText.length,settledEndLine:void 0,settledLinkDefs:new Map(t),tailLinkDefs:new Map,linkDefs:t,linkDefsKey:wR(t),settledAstBlocks:[],settledRevision:0,projectedRevision:-1,projectedSettledBlocks:[],projectionCache:new WeakMap,work:{splitCharacters:0,boundaryLines:0,definitionCharacters:0,renderedBlocks:0}};return NR.set(e,r),r}function l1(){const e={prevInput:"",settledText:"",settledBlocks:[],settledUpTo:0};return zR(e),e}function CX(e,t=!1){const r=dk();let s=null,o=!1,l=-1,u=-1,f=-1;for(let d=0;d<e.length;d++){const p=e[d];if(r.open){r.read(e,d);continue}if(s!=null){const y=vR(p,s);if(y==="close"){s=null;continue}if(y==="inside")continue;s=null,o=!0}if(t&&!o){const y=kR(p);if(y!=null){s=y,f=l;continue}}if(r.read(e,d)==="open"){u=l;continue}p.trim()===""&&(o=!1,d>0&&d<e.length-1&&/^\S/.test(e[d+1])&&(l=d))}return{boundary:r.open?u:s!=null?f:l,openFence:r.open,openMath:s!=null}}function Mh(e,t){const r=t?.math?LR(e):e,s=r.lastIndexOf(`
170
- `),o=s===-1?"":r.slice(0,s+1);let l=s===-1?r:r.slice(s+1);if(t?.math)for(let d=0;d<l.length;d++){if(l[d]==="$"&&l[d+1]==null&&l[d-1]!=="$"&&!/\d/.test(l[d-1]??"")&&!Np(l,d)){l=l.slice(0,d);break}if(!ER(l,d))continue;const p=$R(l,d);if(p!==-1){d=p;continue}let y=-1;for(let m=d+1;m<l.length;m++)if(l[m]==="$"&&!Np(l,m)){y=m;break}if(y===-1){l=l.slice(0,d);break}d=y}const u=l.lastIndexOf("[");if(u!==-1){const d=l.slice(u);if(!(d.includes("](")&&d.includes(")"))){const y=u>0&&l[u-1]==="!"?u-1:u;l=l.slice(0,y)}}let f=l.length;for(;f>0&&l[f-1]==="`";)f--;if(f<l.length&&f>0){const d=l.length-f;l.lastIndexOf("`".repeat(d),f-1)===-1&&(l=l.slice(0,f))}for(f=l.length;f>0&&l[f-1]==="*";)f--;if(f<l.length&&f>0){const d=l.length-f;d<=3&&l.lastIndexOf("*".repeat(d),f-1)===-1&&(l=l.slice(0,f))}{let d=0;const p=[];for(;d<l.length;){const m=l.indexOf("*",d);if(m===-1)break;let k=1;for(;m+k<l.length&&l[m+k]==="*";)k++;if(k>3){d=m+k;continue}p.push({pos:m,len:k}),d=m+k}const y=new Set;for(let m=0;m<p.length;m++)if(!y.has(m)){for(let k=m+1;k<p.length;k++)if(!y.has(k)&&p[k].len===p[m].len){y.add(m),y.add(k);break}}for(let m=p.length-1;m>=0;m--)if(!y.has(m)){const k=p[m],v=l.slice(k.pos+k.len),w=v.length-v.trimEnd().length;w<v.length?l=l.slice(0,l.length-w)+"*".repeat(k.len)+l.slice(l.length-w):l=l.slice(0,k.pos)}}if(l.length>=2&&l.endsWith("~~"))l.lastIndexOf("~~",l.length-3)===-1&&(l=l.slice(0,-2));else if(l.endsWith("~")){const d=l.length-2;d>=0&&l[d]!=="~"&&(l=l.slice(0,-1))}{let d=0,p=0;const y=[];for(;;){const m=l.indexOf("~~",p);if(m===-1)break;y.push(m),d++,p=m+2}d%2===1&&(l=l.slice(0,y[y.length-1]))}return o+l}function LR(e){const t=e.split(`
171
- `),r=dk();let s=null,o=!1,l=-1;for(let u=0;u<t.length;u++){const f=t[u];if(r.open){r.read(t,u);continue}if(s!=null){const p=vR(f,s);if(p==="close"){s=null,l=-1;continue}if(p==="inside")continue;s=null,l=-1,o=!0}if(f.trim()===""&&(o=!1),r.read(t,u)==="open")continue;const d=o?null:kR(f);d!=null&&(s=d,l=u)}return s!=null&&l>=0?t.slice(0,l).join(`
172
- `).trimEnd():e}function jX(e){const t=e.split(`
173
- `);for(;t.length>0;){const r=t[t.length-1],s=r.trim();if(s===""){t.pop();continue}if(/^ {0,9}[-*+] $/.test(r)||/^ {0,9}\d+[.)] $/.test(r)){t.pop();continue}if(kX(s)&&!Gu(r)){let o=!1;for(let l=t.length-2;l>=1;l--)if(Gu(t[l])&&t[l-1].includes("|")){o=!0;break}if(!o){t.pop();continue}}if(Gu(r)&&(t.length<2||!t[t.length-2].includes("|"))){t.pop();continue}break}return t.join(`
174
- `)}function a3(e,t,r){return e.astPositions!==!0?e:e.sourceLines===!0?{...e,baseOffset:t,baseLine:r}:{...e,baseOffset:t}}function c1(e,t=0,r=e.length){let s=0;for(let o=e.indexOf(`
175
- `,t);o!==-1&&o<r;)s++,o=e.indexOf(`
176
- `,o+1);return s}const cd=new WeakMap;function DR(e,t){if(e.ordered!==t.ordered||e.delimiter!==t.delimiter)return!1;const r=cd.get(e),s=cd.get(t);return r==null||s==null||r===s}function fk(e,t){const r=cd.get(e);return r!=null&&cd.set(t,r),t}function RX(e,t){if(e.length===0||t.length===0)return[...e,...t];const r=e[e.length-1],s=t[0];if(r.type==="list"&&s.type==="list"&&DR(r,s)){const o={type:"list",ordered:r.ordered,start:r.start,delimiter:r.delimiter,spread:!0,children:[...r.children,...s.children],...r.position!=null&&s.position!=null?{position:{start:r.position.start,end:s.position.end}}:null};return[...e.slice(0,-1),fk(r,o),...t.slice(1)]}return[...e,...t]}function AX(e,t){if(t.length===0)return!1;if(e.length===0)return e.push(...t),!1;const r=e[e.length-1],s=t[0];return r.type==="list"&&s.type==="list"&&DR(r,s)?(e[e.length-1]=fk(r,{type:"list",ordered:r.ordered,start:r.start,delimiter:r.delimiter,spread:!0,children:[...r.children,...s.children],...r.position!=null&&s.position!=null?{position:{start:r.position.start,end:s.position.end}}:null}),e.push(...t.slice(1)),!0):(e.push(...t),!1)}function MX(e,t,r){for(const[s,o]of e)if(!r.has(s)&&t.get(s)!==o)return!1;for(const[s,o]of t)if(!r.has(s)&&e.get(s)!==o)return!1;return!0}function s3(e,t){e.prevInput="",e.settledText="",e.settledBlocks=[],e.settledUpTo=0,e.linkDefsKey=void 0,e.sourceIdsKey=void 0,e.pluginSyntaxIdentity=void 0,e.math=void 0,t.settledEnd=0,t.settledEndLine=0,t.settledLinkDefs.clear(),t.tailLinkDefs=new Map,t.linkDefs=new Map,t.linkDefsKey="",t.settledAstBlocks=[],t.settledRevision++,t.projectedRevision=-1,t.projectedSettledBlocks=[],t.projectionCache=new WeakMap,t.work={splitCharacters:0,boundaryLines:0,definitionCharacters:0,renderedBlocks:0}}function o3(e,t,r){const s=uk(r,!0),o={type:"root",children:NX(e,t,s)};return sd(o,s.plugins,e,s.isFinal,"block")}function NX(e,t,r){const s=NR.get(t)??zR(t);let o=!1;const l=KY(r.sourceIds),u=r.plugins?.syntaxIdentity??"";if((t.autolink!==r.autolink||t.math!==r.math||!!t.sourceRanges!=!!r.sourceRanges||t.sourceIdsKey!==l||t.pluginSyntaxIdentity!==u)&&(o=!0,t.autolink=r.autolink,t.math=r.math,t.sourceRanges=r.sourceRanges,t.sourceIdsKey=l,t.pluginSyntaxIdentity=u),e==="")return s3(t,s),[];(t.settledText.length!==s.settledEnd||!e.startsWith(t.settledText))&&(s3(t,s),t.autolink=r.autolink,t.math=r.math,t.sourceRanges=r.sourceRanges,t.sourceIdsKey=l,t.pluginSyntaxIdentity=u);const f=s.settledEnd,d=r.sourceLines===!0?s.settledEndLine??=c1(t.settledText):0,p=e.slice(f),y=p.split(`
177
- `),{boundary:m,openFence:k,openMath:v}=CX(y,r.math),w=m>=0?y.slice(0,m).join(`
178
- `):"",S=f+w.length,E=e.slice(S);let R=!1;if(w!==""){const{defs:H}=jp(w,r.math);for(const[F,q]of H)s.settledLinkDefs.has(F)||(s.settledLinkDefs.set(F,q),s.linkDefs.get(F)!==q&&(R=!0))}const{defs:C}=jp(E,r.math);MX(s.tailLinkDefs,C,s.settledLinkDefs)||(R=!0),s.tailLinkDefs=C,R&&(s.linkDefs=new Map([...C,...s.settledLinkDefs]),s.linkDefsKey=wR(s.linkDefs),o=!0),t.linkDefsKey=s.linkDefsKey;const T=s.linkDefs.size>0?{...r,linkDefs:s.linkDefs}:r;w!==""&&(t.settledText+=w,t.settledUpTo+=w.split(`
179
- `).length-1,f===0&&t.settledUpTo++,s.settledEnd=S,s.settledEndLine=r.sourceLines===!0?d+c1(w):void 0);const A=E.replace(/^(?:[ \t]*\r?\n)+/,"").trimEnd(),N=A!==""&&/\r(?:\n[\s]*)?$/.test(E)?`${A}\r`:A,L=k?E.replace(/^(?:[ \t]*\r?\n)+/,""):v?LR(N):jX(N),D=r.sourceRanges===!0;let j=0;if(o)s.settledAstBlocks=t.settledText?zo(t.settledText,T):[],j=s.settledAstBlocks.length,s.settledRevision++,s.projectedSettledBlocks=s.settledAstBlocks.map(H=>Vu(H,s.projectionCache,D)),s.projectedRevision=s.settledRevision;else if(w!==""){const H=zo(w,a3(T,f,d)),F=s.settledAstBlocks.length-1,q=AX(s.settledAstBlocks,H);j=H.length,s.settledRevision++;const B=H.map(U=>Vu(U,s.projectionCache,D));if(q){const U=s.settledAstBlocks[F],_=Vu(U,s.projectionCache,D);s.projectedSettledBlocks[F]=_,s.projectedSettledBlocks.push(...B.slice(1))}else s.projectedSettledBlocks.push(...B);s.projectedRevision=s.settledRevision}const O=L&&r.astPositions===!0?e.indexOf(L,s.settledEnd):-1,M=L?zo(L,O>=0?a3(T,O,r.sourceLines===!0?(s.settledEndLine??0)+c1(e,s.settledEnd,O):0):ld(T)):[];return t.prevInput=e,s.work={splitCharacters:p.length,boundaryLines:y.length,definitionCharacters:w.length+E.length,renderedBlocks:j+M.length},RX(s.settledAstBlocks,M)}function zX(e){return e.trim().toLowerCase().replace(/['"]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function LX(e,t){const r=e||"section",s=t.get(r)??0;return t.set(r,s+1),s===0?r:`${r}-${s}`}const DX=Symbol("MarkdownFenceProposal");function OX(e){return e[DX]}class OR extends g.Component{state={failed:!1,resetKey:this.props.resetKey,resetRenderer:this.props.resetRenderer};static getDerivedStateFromError(){return{failed:!0}}static getDerivedStateFromProps(t,r){return t.resetKey===r.resetKey&&t.resetRenderer===r.resetRenderer?null:{failed:!1,resetKey:t.resetKey,resetRenderer:t.resetRenderer}}componentDidCatch(t){Ga(this.props.pluginName,"render")}render(){return this.state.failed?this.props.fallback:this.props.children}}function IR(e,t,r,s){const o=ik(e,t);if(o==null)return r;let l;try{l=o.render({node:t})}catch{return Ga(t.plugin,"render"),r}return x.jsx(OR,{pluginName:t.plugin,resetKey:t,resetRenderer:o.render,fallback:r,children:x.jsx(g.Suspense,{fallback:r,children:l})},s)}const IX="heading-links",_R="@astryxdesign/core/MarkdownHeadingLinksConfig",_X=Symbol.for(_R);SY(e=>e);function qX(e){return e.normalize("NFKC").trim().toLowerCase().replace(/['"]/gu,"").replace(/[^\p{Letter}\p{Number}]+/gu,"-").replace(/^-+|-+$/gu,"")}function PX(e,t){const r=e||"section";let s=t.get(r)??0,o=s===0?r:`${r}-${s}`;for(;t.has(o);)s++,o=`${r}-${s}`;return t.set(r,s+1),t.set(o,0),o}const BX="https://astryx.invalid/";function HX(e){try{return new URL(e,BX),!0}catch{return!1}}function FX(e){const t=sk(e);if(t.name!==IX)return;const r=t[_X];if(!(r==null||typeof r!="object"||Object.getPrototypeOf(r)!==Object.prototype||Reflect.ownKeys(r).length!==4||!Object.isFrozen(r)||r.kind!==_R||r.apiVersion!==1||r.headingIdPrefix!==void 0&&typeof r.headingIdPrefix!="string"||typeof r.permalinkBaseUrl!="string"||r.permalinkBaseUrl.includes("#")||!HX(r.permalinkBaseUrl)||r.permalinkBaseUrl!==""&&lR(r.permalinkBaseUrl)!==r.permalinkBaseUrl))return r}function UX(e){if(e!=null)for(const t of e.entries){const r=FX(t);if(r!=null)return r}}function VX(e,t){const r=UX(t);if(r==null)return;const s=new Map,o=new Map,l=new Map,u=new Map;return NW(e,"heading",f=>{const d=Rd(f.children,m=>od(t,m)).trim(),p=PX(qX(d),u),y=r.headingIdPrefix!=null&&r.headingIdPrefix!==""?`${r.headingIdPrefix}--${p}`:p;s.set(f,y),o.set(f,d),l.set(f,`${r.permalinkBaseUrl}#${y}`)}),{ids:s,labels:o,permalinkUrls:l}}function GX(e,t){const r=e.children.filter(d=>d.type==="heading"),s=VX(e,t);if(s!=null)return{...s,outline:r.map(d=>{const p=s.ids.get(d),y=s.labels.get(d);if(p==null||y==null)throw new Error("Heading-links projection omitted a root heading");return{id:p,label:y,level:d.depth}})};const o=new Map,l=new Map,u=new Map,f=r.map(d=>{const p=Rd(d.children,m=>od(t,m)).trim(),y=LX(zX(p),u);return o.set(d,y),l.set(d,p),{id:y,label:p,level:d.depth}});return{ids:o,labels:l,permalinkUrls:new Map,outline:f}}const KX=1500,WX={start:"0",center:"auto"},i3={proseWidth:e=>[{ks0D6T:e!=null?"xf68679":e,$$css:!0},{"--x-maxWidth":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],proseAlign:e=>[{kUOVxO:e!=null?"xvlecxo":e,$$css:!0},{"--x-marginInline":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]},hb={row:{k1xSpc:"x78zum5",kGNEyG:"xaz6w31",k7Eaqz:"xeuugli",ks0D6T:"x193iq5w",kVQacm:"x1rea2x4",kHBbk8:"xc8icb0",$$css:!0},heading:{kUk6DE:"xkz0k9k",k7Eaqz:"xeuugli",kqGvvJ:"x10im51j",$$css:!0},copyButton:{kVAEAm:"x10l6tqk",k87sOh:"xwa60dl",kzqmXN:"x1fvqzum x1c4064q",kZKoxP:"x6k0iem x1d3wnk4",k8WAf4:"xt970qd",kg3NbH:"xnjsko4",kMwMTN:"x1heor9g",kMv6JI:"xjb2p0i",kGuDYH:"x1qlqyl8",k63SB2:"x1pd3egz",kLWn49:"x15bjb6t",$$css:!0}},YX=hb.heading;function XX(e){return e.button===0&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey}function ZX({children:e,headingId:t,headingLabel:r,permalinkUrl:s,contentWidth:o,contentAlign:l,headingTextStyle:u,blockSpacingStyle:f}){const d=Nt(),p=d("@astryx.markdownHeadingLinks.copied"),y=d("@astryx.markdownHeadingLinks.copy",{heading:r||t}),{copy:m,isCopied:k}=I4({announce:p,resetAfterMs:KX}),{getContainerProps:v,getContentRevealProps:w}=zU(),S=g.useCallback(E=>{XX(E)&&m(new URL(s,window.location.href).href)},[m,s]);return x.jsxs("div",{...ye(v(),de(hb.row,u,f,o!=null?i3.proseWidth(o):null,l!=="start"?i3.proseAlign(WX[l]):null)),children:[e,x.jsxs("span",{className:"x1n2onr6 x1rg5ohu x2lah0s x1vjfegm x1fvqzum x1c4064q x17lnmll xv1l7n4 xjb2p0i x1qlqyl8 x1pd3egz x15bjb6t",children:[x.jsx("span",{"aria-hidden":"true",className:"xlshs6z",children:"#"}),x.jsx(jt,{type:"button",variant:"ghost",size:"sm",label:k?p:y,icon:x.jsx("span",{"aria-hidden":"true",className:"x3nfvp2 x6s0dn4 xl56j7k x15vhz18 xlzyvqe",children:k?x.jsx(ft,{icon:"check",size:"sm",color:"inherit"}):"#"}),isIconOnly:!0,onClick:S,xstyle:[hb.copyButton,Ka.centerInline("-50%")],...w({isLayoutPreserved:!0})})]})]})}const QX=["disc","circle","square"],JX=["decimal","lower-alpha","lower-roman"];function u1(e){const t=e.position?.start.line,r=e.position?.end.line;return t==null||r==null?void 0:{start:t,end:r}}function d1(e){return e==null?void 0:{"data-source-line":String(e.start),"data-source-line-end":String(e.end)}}const ju={start:"0",center:"auto"},f1={start:null,center:"auto"},eZ={k7Eaqz:"xkj4a21",$$css:!0},mr={proseWidth:e=>[{ks0D6T:e!=null?"xf68679":e,$$css:!0},{"--x-maxWidth":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],proseAlign:e=>[{kUOVxO:e!=null?"xvlecxo":e,$$css:!0},{"--x-marginInline":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],blockWidth:e=>[eZ,{"--x-minWidth":(t=>typeof t=="number"?t+"px":t??void 0)(`min(${e}, 100%)`)}],blockAlign:e=>[{kUOVxO:e!=null?"xvlecxo":e,$$css:!0},{"--x-marginInline":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],cellMinWidth:e=>[{k7Eaqz:e!=null?"xkj4a21":e,$$css:!0},{"--x-minWidth":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]},Nh={center:{k9WMMc:"x2b8uid",$$css:!0},end:{k9WMMc:"xp4054r",$$css:!0}},pb={cell:{kB7OPa:"x1afcbsf",ks0D6T:"x1x1rfll",kVQacm:"x1rea2x4",kHjlTd:"x1mzt3pk",k8WAf4:"xce4md1",kg3NbH:"xf314gf",kTgw9:"x1lldw8n",$$css:!0},headerCell:{kB7OPa:"x1afcbsf",ks0D6T:"x1x1rfll",kVQacm:"x1rea2x4",kHjlTd:"x1mzt3pk",k8WAf4:"xce4md1",kg3NbH:"xf314gf",kg5iWk:"xbrixnn",khDVqt:"xeaf4i8",kTgw9:"x1lldw8n",$$css:!0},code:{kTgw9:"x1lldw8n",$$css:!0}};function tZ({children:e}){return x.jsx(rk,{xstyle:pb.code,children:e})}const qe={root:{kMv6JI:"x9ynric",kMwMTN:"x1tgivj0",kLWn49:"xw6l6zx",kGuDYH:"xjm74w1",kzqmXN:"xh8yej3",ks0D6T:"x193iq5w",k7Eaqz:"xeuugli",kHjlTd:"x1mzt3pk",$$css:!0},inlineRoot:{k1xSpc:"xt0psk2",kzqmXN:"x14atkfc",ks0D6T:"x1x1rfll",kMv6JI:"xjb2p0i",kMwMTN:"x1heor9g",kLWn49:"x15bjb6t",kGuDYH:"x1qlqyl8",$$css:!0},headingBase:{kMv6JI:"x1g81bgm",kMwMTN:"x1tgivj0",$$css:!0},h1:{kGuDYH:"xcg7oai",k63SB2:"x1v68xuy",kLWn49:"xfmsba7",$$css:!0},h2:{kGuDYH:"x1xvnhcw",k63SB2:"x12yy4cs",kLWn49:"x1cpk1wn",$$css:!0},h3:{kGuDYH:"xii13ha",k63SB2:"x1jcxfy8",kLWn49:"xwjzt0u",$$css:!0},h4:{kGuDYH:"x8tkxat",k63SB2:"x2hcmsi",kLWn49:"xqerer",$$css:!0},h5:{kGuDYH:"xsgqta0",k63SB2:"xno150v",kLWn49:"xo3gurs",$$css:!0},h6:{kGuDYH:"xw5ohdf",k63SB2:"x1pw4frv",kLWn49:"xeixjfn",$$css:!0},spacingHeadingMajorDefault:{keoZOQ:"x13rv44w",k1K539:"xep27e5",$$css:!0},spacingHeadingMinorDefault:{keoZOQ:"x1s1qpeq",k1K539:"x1p37lm5",$$css:!0},spacingParagraphDefault:{keoZOQ:"xj6sv8s",k1K539:"xep27e5",$$css:!0},spacingCodeblockDefault:{keoZOQ:"x1s1qpeq",k1K539:"xwh1t77",$$css:!0},spacingBlockquoteDefault:{keoZOQ:"x1s1qpeq",k1K539:"xwh1t77",$$css:!0},spacingListDefault:{keoZOQ:"xj6sv8s",k1K539:"xep27e5",$$css:!0},spacingTableDefault:{keoZOQ:"x1s1qpeq",k1K539:"xwh1t77",$$css:!0},spacingHrDefault:{keoZOQ:"x13rv44w",k1K539:"x4d5cxa",$$css:!0},spacingImageDefault:{keoZOQ:"xj6sv8s",k1K539:"xep27e5",$$css:!0},spacingHeadingMajorCompact:{keoZOQ:"x1s1qpeq",k1K539:"x1p37lm5",$$css:!0},spacingHeadingMinorCompact:{keoZOQ:"xj6sv8s",k1K539:"x14cgwvg",$$css:!0},spacingParagraphCompact:{keoZOQ:"xcsaf9d",k1K539:"x14cgwvg",$$css:!0},spacingCodeblockCompact:{keoZOQ:"xtbrsbv",k1K539:"x1p37lm5",$$css:!0},spacingBlockquoteCompact:{keoZOQ:"xtbrsbv",k1K539:"x1p37lm5",$$css:!0},spacingListCompact:{keoZOQ:"xcsaf9d",k1K539:"x14cgwvg",$$css:!0},spacingTableCompact:{keoZOQ:"xtbrsbv",k1K539:"x1p37lm5",$$css:!0},spacingHrCompact:{keoZOQ:"xj6sv8s",k1K539:"xep27e5",$$css:!0},spacingImageCompact:{keoZOQ:"xtbrsbv",k1K539:"x1p37lm5",$$css:!0},noMarginBlockStart:{keoZOQ:"xdj266r",$$css:!0},noMarginBlockEnd:{k1K539:"xat24cr",$$css:!0},codeBlockWrapper:{ks0D6T:"x193iq5w",$$css:!0},tableWrapper:{ks0D6T:"x193iq5w","--container-padding-inline-start":"xrhngw9","--container-padding-inline-end":"xjsfl84","--container-padding-block-start":"x1047aw6","--container-padding-block-end":"xax9j7h",$$css:!0},blockIndent:{kUOVxO:"x1ho7dyk",$$css:!0},hr:{kMzoRj:"xc342km",kEafiO:"x11xkdxz",kPef9Z:"x13fuv20",kLZC3w:"x1pc3f07",$$css:!0}};function l3(e){const t=e.match(/^([\d.]+)ms$/);if(t)return parseFloat(t[1]);const r=e.match(/^([\d.]+)s$/);return r?parseFloat(r[1])*1e3:null}function xc(e){let t=0;for(const r of e)switch(r.type){case"text":t+=r.value.length;break;case"inlineCode":t+=r.value.length;break;case"inlineMath":t+=r.value.length;break;case"image":t+=r.alt.length;break;case"strong":case"emphasis":case"delete":case"link":t+=xc(r.children);break;case"break":t+=1;break;case"citation":t+=1;break;case"extension":t+=r.source?.length??0;break}return t}function xb(e){let t=0;for(const r of e)switch(r.type){case"heading":case"paragraph":t+=xc(r.children);break;case"code":t+=r.value.length;break;case"math":t+=r.value.length;break;case"blockquote":t+=xb(r.children);break;case"list":for(const s of r.children)t+=xb(s.children);break;case"table":for(const s of r.children)for(const o of s.children)t+=xc(o.children);break;case"extension":t+=r.source?.length??0;break;case"thematicBreak":break;case"image":t+=r.alt.length;break}return t}const h1={1:qe.h1,2:qe.h2,3:qe.h3,4:qe.h4,5:qe.h5,6:qe.h6};function nZ(e,t){const r=[];for(const f of t){f.pattern.lastIndex=0;let d;for(;(d=f.pattern.exec(e))!==null;){let p;if(f.getEndIndex){const y=f.getEndIndex(e,d);if(y===!1)continue;p=y}else p=d.index+d[0].length;r.push({start:d.index,end:p,match:d,plugin:f})}}r.sort((f,d)=>f.start-d.start);const s=[];let o=0;for(const f of r)f.start>=o&&(s.push(f),o=f.end);if(s.length===0)return[{type:"text",content:e}];const l=[];let u=0;for(let f=0;f<s.length;f++){const d=s[f];d.start>u&&l.push({type:"text",content:e.slice(u,d.start)}),l.push({type:"plugin",element:d.plugin.render(d.match,`plugin-${f}`),matchLength:d.end-d.start}),u=d.end}return u<e.length&&l.push({type:"text",content:e.slice(u)}),l}function rZ(e){const t=e?.syntaxIdentity??"",r=g.useRef(void 0);return(r.current==null||r.current.identity!==t)&&(r.current={identity:t,entries:e==null||t===""?void 0:e.syntaxEntries}),r.current.entries}function Ou(e,t,r){const s=t.offset;if(t.offset+=e.length,!t.active)return e;const o=xY(e,s,t.boundaries,r);if(o==null)return e;const l=o.map(u=>u.fading?x.jsx("span",{className:"x1hc1fzr x19991ni x80gvsz x12w9bfk xlr8y92 x4itv7f",children:u.text},u.key):x.jsx("span",{children:u.text},u.key));return x.jsx("span",{children:l},`wrap-${r}`)}function aZ(e,t){let r=e.numberMap.get(t);return r==null&&(r=e.nextNumber++,e.numberMap.set(t,r)),r}function na(e,t,r,s,o,l="a",u,f,d){switch(e.type){case"text":{if(u&&u.length>0){const p=nZ(e.value,u);if(!(p.length===1&&p[0].type==="text")){const y=[];for(let m=0;m<p.length;m++){const k=p[m];k.type==="text"?y.push(Ou(k.content,s,`${t}-seg-${m}`)):(s.offset+=k.matchLength,y.push(x.jsx(g.Fragment,{children:k.element},`plugin-${t}-${m}`)))}return x.jsx(g.Fragment,{children:y},t)}}return Ou(e.value,s,t)}case"strong":return x.jsx("strong",{className:"x2mo6ok",children:e.children.map((p,y)=>na(p,y,r,s,o,l,u,f,d))},t);case"emphasis":return x.jsx("em",{children:e.children.map((p,y)=>na(p,y,r,s,o,l,u,f,d))},t);case"delete":return x.jsx("del",{className:"xv1l7n4",children:e.children.map((p,y)=>na(p,y,r,s,o,l,u,f,d))},t);case"inlineCode":{s.offset+=e.value.length;const p=f?.inlineCode;return p?x.jsx(p,{children:e.value},t):x.jsx(rk,{children:e.value},t)}case"inlineMath":{const p=f?.math;return p==null?Ou(`$${e.value}$`,s,t):(s.offset+=e.value.length,x.jsx(p,{value:e.value,display:"inline"},t))}case"link":{const p=lR(e.url);if(p==null)return x.jsx("span",{children:e.children.map((w,S)=>na(w,S,r,s,o,l,u,f,d))},t);const y=f?.link;if(y)return x.jsx(y,{href:p,children:e.children.map((w,S)=>na(w,S,r,s,o,l,u,f,d))},t);const m=p.startsWith("https://")||p.startsWith("http://"),k=r?w=>{r(p,w)===!1&&w.preventDefault()}:void 0,v=m?"a":l;return x.jsx(v,{href:p,onClick:k,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"xjse4m1 x1bvjpef",children:e.children.map((w,S)=>na(w,S,r,s,o,l,u,f,d))},t)}case"image":{const p=cR(e.url);if(p==null)return x.jsxs("span",{children:["[",e.alt,"]"]},t);const y=f?.image;return y?x.jsx(y,{src:p,alt:e.alt},t):x.jsx("img",{src:p,alt:e.alt,className:"x193iq5w xh6dtrn"},t)}case"extension":return IR(d,e,Ou(e.source??od(d,e),s,t),t);case"break":return s.offset+=1,x.jsx("br",{},t);case"citation":{if(s.offset+=1,!o)return x.jsxs("span",{children:["[",e.sourceId,"]"]},t);const p=aZ(o,e.sourceId),y=o.sources[e.sourceId]??{title:e.sourceId},m=o.style==="number"?"number":"label",k=f?.citation;return k?x.jsx(k,{source:y,number:p,variant:m},t):x.jsx(iR,{source:y,number:p,variant:m},t)}}}function sZ(e,t){const r=t==="compact";switch(e.type){case"heading":return e.depth<=3?r?qe.spacingHeadingMajorCompact:qe.spacingHeadingMajorDefault:r?qe.spacingHeadingMinorCompact:qe.spacingHeadingMinorDefault;case"paragraph":return r?qe.spacingParagraphCompact:qe.spacingParagraphDefault;case"code":case"math":return r?qe.spacingCodeblockCompact:qe.spacingCodeblockDefault;case"blockquote":return r?qe.spacingBlockquoteCompact:qe.spacingBlockquoteDefault;case"list":return r?qe.spacingListCompact:qe.spacingListDefault;case"table":return r?qe.spacingTableCompact:qe.spacingTableDefault;case"extension":return r?qe.spacingParagraphCompact:qe.spacingParagraphDefault;case"thematicBreak":return r?qe.spacingHrCompact:qe.spacingHrDefault;case"image":return r?qe.spacingImageCompact:qe.spacingImageDefault}}const oZ=4,iZ=24,lZ=2,cZ=20;function uZ(e){const[t,...r]=e.children;return t==null?[]:t.children.map((s,o)=>{const l=xc(s.children);let u=l;for(const p of r){const y=p.children[o];if(y!=null){const m=xc(y.children);m>u&&(u=m)}}const f=Math.ceil(u/lZ),d=Math.min(l,cZ);return Math.min(iZ,Math.max(oZ,f,d))})}function Iu(e,t,r,s,o,l,u,f,d,p,y="a",m,k,v,w,S,E=0){const R=f1[p],C=R!=null?mr.blockAlign(R):null,T=sZ(e,s),A=t===0,N=t===r-1,L=v?.sourceLines===!0,D=L?u1(e):void 0,j=d1(D),O=D==null?null:{sourceLines:D};switch(e.type){case"heading":{const M=Math.min(e.depth+o-1,6),H=e.children.map((P,G)=>na(P,G,l,u,f,y,m,k,v)),F=S?.ids.get(e),q=S?.labels.get(e)??"",B=S?.permalinkUrls.get(e),U=k?.heading;if(U)return x.jsx(U,{level:M,id:F,...O,children:H},t);const _=`h${M}`;return B==null||F==null?x.jsx(_,{id:F,...ye(fe("markdown-heading",{density:s,level:M}),de(qe.headingBase,h1[M],T,d!=null?mr.proseWidth(d):null,p!=="start"?mr.proseAlign(ju[p]):null,A&&qe.noMarginBlockStart,N&&qe.noMarginBlockEnd)),...j,children:H},t):x.jsx(ZX,{headingId:F,headingLabel:q,permalinkUrl:B,contentWidth:d,contentAlign:p,headingTextStyle:[qe.headingBase,h1[M]],blockSpacingStyle:[T,A&&qe.noMarginBlockStart,N&&qe.noMarginBlockEnd],children:x.jsx(_,{id:F,...ye(fe("markdown-heading",{density:s,level:M}),de(qe.headingBase,YX,h1[M])),...j,children:H})},t)}case"paragraph":{const M=e.children.map((F,q)=>na(F,q,l,u,f,y,m,k,v)),H=k?.paragraph;return H?x.jsx(H,{...O,children:M},t):x.jsx("div",{role:"paragraph",...ye(fe("markdown-paragraph",{density:s}),de(T,d!=null?mr.proseWidth(d):null,p!=="start"?mr.proseAlign(ju[p]):null,A&&qe.noMarginBlockStart,N&&qe.noMarginBlockEnd)),...j,children:M},t)}case"code":{u.offset+=e.value.length;const M=Z6(e)??"plaintext",H=k?.code,F=H?x.jsx(H,{code:e.value,language:M,...O},t):x.jsx("div",{...ye(fe("markdown-codeblock",{density:s}),de(T,qe.codeBlockWrapper,A&&qe.noMarginBlockStart,N&&qe.noMarginBlockEnd)),...j,children:x.jsx(rR,{code:e.value,language:M,isCollapsible:!0,xstyle:[d!=null?mr.blockWidth(d):void 0,C]})},t),q=OX(e);if(q==null)return F;const B=ik(v,q.node);if(B==null)return F;try{const U=B.render({node:q.node});return U==null||typeof U=="boolean"?F:x.jsx(OR,{pluginName:q.node.plugin,resetKey:q.node,resetRenderer:B.render,fallback:F,children:x.jsx(g.Suspense,{fallback:F,children:U})},t)}catch{return Ga(q.node.plugin,"render"),F}}case"math":{u.offset+=e.value.length;const M=k?.math;return M==null?x.jsx("div",{role:"paragraph",children:`$$${e.value}$$`},t):x.jsx(M,{value:e.value,display:"block",...O},t)}case"blockquote":{const M=k?.blockquote;if(M){const H=e.children.map((F,q)=>Iu(F,q,e.children.length,s,o,l,u,f,d,p,y,m,k,v,w,S,E));return x.jsx(M,{...O,children:H},t)}return x.jsx(oR,{...fe("markdown-blockquote",{density:s}),...j,xstyle:[T,d!=null?mr.proseWidth(d):void 0,p!=="start"?mr.proseAlign(ju[p]):void 0,A&&qe.noMarginBlockStart,N&&qe.noMarginBlockEnd],children:e.children.map((H,F)=>Iu(H,F,e.children.length,s,o,l,u,f,d,p,y,m,k,v,w,S,E))},t)}case"list":{if(e.children.length>0&&e.children.every(H=>H.checked!=null)){const H=e.children.map((F,q)=>({item:F,key:`task-${q}`})).filter(({item:F})=>F.checked).map(({key:F})=>F);return x.jsx("div",{...ye(fe("markdown-list",{density:s}),de(T,A&&qe.noMarginBlockStart,N&&qe.noMarginBlockEnd)),children:x.jsx(aR,{label:w("@astryx.markdown.taskList"),isLabelHidden:!0,value:H,containerXstyle:qe.blockIndent,isReadOnly:!0,density:"compact",children:e.children.map((F,q)=>{const B=F.children[0],_=F.children.length===1&&B?.type==="paragraph"?x.jsx(x.Fragment,{children:B.children.map((P,G)=>na(P,G,l,u,f,y,m,k,v))}):x.jsx(x.Fragment,{children:F.children.map((P,G)=>Iu(P,G,F.children.length,s,o,l,u,f,d,p,y,m,k,v,w,S,E+1))});return x.jsx(sR,{value:`task-${q}`,label:_,...L?d1(u1(F)):void 0},q)})})},t)}return x.jsx("div",{...ye(fe("markdown-list",{density:s}),de(T,d!=null?mr.proseWidth(d):null,p!=="start"?mr.proseAlign(ju[p]):null,A&&qe.noMarginBlockStart,N&&qe.noMarginBlockEnd)),children:x.jsx(dc,{listStyle:e.ordered?"decimal":"disc",density:"compact",start:e.ordered?e.start:void 0,xstyle:qe.blockIndent,children:e.children.map((H,F)=>{const q=H.children[0],U=H.children.length===1&&q?.type==="paragraph"?x.jsx(x.Fragment,{children:q.children.map((G,X)=>na(G,X,l,u,f,y,m,k,v))}):x.jsx(x.Fragment,{children:H.children.map((G,X)=>Iu(G,X,H.children.length,s,o,l,u,f,d,p,y,m,k,v,w,S,E+1))}),_=H.children.find(G=>G.type==="paragraph"),P=H.checked==null?void 0:{isChecked:H.checked,label:_?.type==="paragraph"?Rd(_.children,G=>od(v,G)):w("@astryx.markdown.taskList")};return x.jsx(HU,{marker:(e.ordered?JX:QX)[E%3],task:P,children:x.jsx(Sc,{label:U,...L?d1(u1(H)):void 0})},F)})})},t)}case"table":{const M=uZ(e),[H,...F]=e.children,q=k?.inlineCode!=null?k:{...k,inlineCode:tZ};return x.jsx("div",{...ye(fe("markdown-table",{density:s}),de(qe.tableWrapper,T,d!=null?mr.blockWidth(d):null,f1[p]!=null?mr.blockAlign(f1[p]):null,A&&qe.noMarginBlockStart,N&&qe.noMarginBlockEnd)),...j,children:x.jsxs(Cx,{dividers:"rows",textOverflow:"wrap",children:[x.jsx(ek,{children:x.jsx($p,{children:H?.children.map((B,U)=>x.jsx(J0,{xstyle:[pb.headerCell,mr.cellMinWidth(`${M[U]}ch`),e.align[U]==="center"&&Nh.center,e.align[U]==="right"&&Nh.end],children:B.children.map((_,P)=>na(_,P,l,u,f,y,m,q,v))},U))})}),x.jsx(tk,{children:F.map((B,U)=>{const _=B.children.map((P,G)=>x.jsx(Q0,{xstyle:[pb.cell,e.align[G]==="center"&&Nh.center,e.align[G]==="right"&&Nh.end],children:P.children.map((X,Z)=>na(X,Z,l,u,f,y,m,q,v))},G));return x.jsx($p,{children:_},U)})})]})},t)}case"extension":{const M=IR(v,e,Ou(e.source??od(v,e),u,t));return x.jsx("div",{...de(T,d!=null?mr.proseWidth(d):null,p!=="start"?mr.proseAlign(ju[p]):null,A&&qe.noMarginBlockStart,N&&qe.noMarginBlockEnd),children:M},t)}case"thematicBreak":{const M=k?.hr;return M?x.jsx(M,{...O},t):x.jsx("hr",{...ye(fe("markdown-hr",{density:s}),de(qe.hr,T,A&&qe.noMarginBlockStart,N&&qe.noMarginBlockEnd)),...j},t)}case"image":{const M=cR(e.url);if(M==null)return x.jsxs("div",{...ye(fe("markdown-image",{density:s}),de(T,A&&qe.noMarginBlockStart,N&&qe.noMarginBlockEnd)),...j,children:["[",e.alt,"]"]},t);const H=k?.image;return H?x.jsx(H,{src:M,alt:e.alt,...O},t):x.jsx("div",{...ye(fe("markdown-image",{density:s}),de(T,A&&qe.noMarginBlockStart,N&&qe.noMarginBlockEnd)),...j,children:x.jsx("img",{src:M,alt:e.alt,className:"x193iq5w xh6dtrn"})},t)}}}function qR({ref:e,children:t,display:r="block",density:s="default",headingLevelStart:o=1,isStreaming:l=!1,onLinkClick:u,sources:f,citationStyle:d="label",contentWidth:p=680,contentAlign:y="start",components:m,plugins:k,inlinePlugins:v,autolink:w,xstyle:S,className:E,style:R,id:C,"data-testid":T,...A}){const N=Nt(),L=Oi(),D=g.useMemo(()=>f?new Set(Object.keys(f)):void 0,[f]),j=g.useMemo(()=>{if(k!=null)try{return fR(k)}catch{Ga("configuration","transform");return}},[k]),O=rZ(j),M=m?.math!=null,H=g.useMemo(()=>({sourceIds:D,autolink:w,plugins:O}),[D,w,O]),F=g.useMemo(()=>({sourceIds:D,autolink:w,math:!0,plugins:O}),[D,w,O]),q=$U(t,l),B=g.useRef(l1()),U=g.useRef(w),_=g.useRef(M);(U.current!==w||_.current!==M)&&(B.current=l1(),U.current=w,_.current=M);const P=g.useMemo(()=>{if(r==="inline")return[];if(l){if(q==="")return B.current=l1(),[];const Te=Mh(q,M?F:H);return(M?o3(Te,B.current,F):o3(Te,B.current,H)).children}return(M?r3(t,F):r3(t,H)).children},[r,q,t,l,M,F,H]),G=l?Mh(q,M?F:H):t,X=g.useMemo(()=>sd({type:"root",children:P},j,G,!l,"block").children,[P,j,G,l]),Z=g.useMemo(()=>{if(!(r==="inline"||X.length===0))return GX({type:"root",children:X},j)},[r,X,j]),Q=g.useMemo(()=>{if(r!=="inline")return[];const Te=l?Mh(q,M?F:H):t;return M?Y$(Te,F):Y$(Te,H)},[r,q,t,l,M,F,H]),K=l?Mh(q,M?F:H):t,ae=g.useMemo(()=>{if(r!=="inline")return[];const Te=sd({type:"root",children:[{type:"paragraph",children:Q}]},j,K,!l,"inline").children[0];return Te?.type==="paragraph"?[...Te.children]:Q},[r,Q,j,K,l]),{token:I}=ax(),ee=g.useMemo(()=>{const Ce=l3(I("--duration-fast-max"))??230,Te=l3(I("--duration-fast-min")),Me=Te!=null?Math.max(4,Math.round(Te/10)):50;return Math.min(Math.ceil(Ce/Me),12)},[I]),pe=g.useRef([]),ue=g.useRef([]),ve=g.useRef([]),xe=q.length,te={offset:0,boundaries:g.useMemo(()=>{const Ce=r==="inline"?xc(ue.current):xb(pe.current),Te=pY(ve.current,Ce,ee);return ve.current=Te,Te},[r,xe,ee]),active:l},he=f?{sources:f,numberMap:new Map,nextNumber:1,style:d}:null;if(r==="inline"){const Ce=x.jsx("span",{ref:e,...A,id:C,"data-testid":T,...ye(fe("markdown",{density:s}),de(qe.root,qe.inlineRoot,S),E,R),children:ae.map((Te,Me)=>na(Te,Me,u,te,he,L,v,m,j))});return ue.current=ae,pe.current=[],Ce}const Re=x.jsx("div",{ref:e,...A,id:C,role:"document","data-testid":T,...ye(fe("markdown",{density:s}),de(qe.root,S),E,R),children:X.map((Ce,Te)=>Iu(Ce,Te,X.length,s,o,u,te,he,p?typeof p=="number"?`${p}px`:p:null,y,L,v,m,j,N,Z))});return pe.current=X,ue.current=[],Re}qR.displayName="Markdown";const dZ=1e3,fZ=100,c3={root:{kWkggS:"xprdx6m x1j0df82 x1o55y2u",kSiTet:"xvpkmg4 x1tbh5bv",$$css:!0},animate:{kILWW9:"xpz12be",k44tkh:"xqgcaz",ko0y90:"xa4qsjk",kKVMdj:"xeuoslp x1aquc0h",kyAemX:"x193epu2",$$css:!0}},hZ={0:{kaIpWk:"xwksslw",$$css:!0},1:{kaIpWk:"xx3sua9",$$css:!0},2:{kaIpWk:"xh6dtrn",$$css:!0},3:{kaIpWk:"x1hviunn",$$css:!0},4:{kaIpWk:"x1hviunn",$$css:!0},none:{kaIpWk:"x2u8bby",$$css:!0},rounded:{kaIpWk:"xjspbzw",$$css:!0}},pZ={kKxzle:"xvo38ju",$$css:!0},u3={animationDelay:e=>[pZ,{"--x-animationDelay":(t=>typeof t=="number"?t+"ms":t??void 0)(`${dZ+fZ*e}ms`)}],dimensions:(e,t)=>[{kzqmXN:(typeof e=="number"?`${e}px`:e)!=null?"x5lhr3w":typeof e=="number"?`${e}px`:e,kZKoxP:(typeof t=="number"?`${t}px`:t)!=null?"x16ye13r":typeof t=="number"?`${t}px`:t,$$css:!0},{"--x-width":(r=>typeof r=="number"?r+"px":r??void 0)(typeof e=="number"?`${e}px`:e),"--x-height":(r=>typeof r=="number"?r+"px":r??void 0)(typeof t=="number"?`${t}px`:t)}]};function Yh({width:e="100%",height:t="100%",radius:r=3,index:s=0,"data-testid":o,xstyle:l,className:u,style:f,ref:d,...p}){return x.jsx("div",{ref:d,"aria-hidden":"true","data-testid":o,...ye(fe("skeleton"),de(c3.root,c3.animate,hZ[r],u3.dimensions(e,t),u3.animationDelay(s),l),u,f),...p})}Yh.displayName="Skeleton";function xZ(){const{captureId:e=""}=Mb(),t=qr(),{t:r}=rn(),s=ys({queryKey:Pn.detail(e),queryFn:()=>jG(e),enabled:!!e}),o=()=>{t.invalidateQueries({queryKey:Pn.detail(e)})},l=s.data?.ok?s.data.data:null;return x.jsxs(x.Fragment,{children:[x.jsx(Ed,{children:x.jsx(Rt,{gap:2,vAlign:"center",children:x.jsx(_r,{label:r("captures.refresh"),tooltip:r("captures.refresh"),icon:x.jsx(ux,{}),size:"sm",variant:"ghost",onClick:o})})}),s.isPending?x.jsxs(We,{gap:3,width:"100%",children:[x.jsx(Yh,{width:280,height:30}),x.jsx(Yh,{width:420,height:18,index:1}),x.jsx(Yh,{width:"100%",height:280,radius:2,index:2})]}):l?x.jsxs(We,{gap:5,width:"100%",children:[x.jsxs(We,{gap:2,children:[x.jsx(Oo,{level:1,children:l.capture.title||r("navigation.captureDetails")}),x.jsx(ix,{href:l.capture.url,isExternalLink:!0,type:"supporting",display:"block",maxLines:2,children:l.capture.url}),x.jsxs(Rt,{gap:4,wrap:"wrap",children:[x.jsx(Je,{type:"supporting",children:`${r("captures.createdAt")}: ${l.capture.createdAt}`}),x.jsx(Je,{type:"supporting",children:`${r("captures.updatedAt")}: ${l.capture.updatedAt}`})]}),l.capture.userNote&&x.jsx(Je,{color:"secondary",children:l.capture.userNote})]}),x.jsx(Ai,{}),l.content?x.jsx(Ks,{width:"100%",padding:5,variant:"muted",children:x.jsx(qR,{density:"compact",headingLevelStart:2,contentWidth:"none",onLinkClick:(u,f)=>{u.startsWith("#")||(f.preventDefault(),(u.startsWith("http://")||u.startsWith("https://"))&&window.open(u,"_blank","noopener,noreferrer"))},children:l.content.markdown})}):x.jsx(fc,{title:r("captures.noContentTitle"),description:r("captures.noContentDescription")})]}):x.jsx(fc,{title:r("captures.detailUnavailable")})]})}const gZ={pending:"neutral",running:"neutral",succeeded:"success",failed:"error"};function mZ(){const{captureId:e=""}=Mb(),{t}=rn(),r=qr(),s=Io(),o=ys({queryKey:Pn.jobs(e),queryFn:()=>NG(e),enabled:!!e}),l=Er({mutationFn:g6,onSuccess:p=>{if(!p.ok){s({body:t(rd(p.error.code)),type:"error",uniqueID:p.error.code});return}r.invalidateQueries({queryKey:Pn.jobs(e)}),s({body:t("captures.recaptureStarted"),uniqueID:"recapture-started"})}}),u=o.data?.ok?o.data.data:[],f=()=>{r.invalidateQueries({queryKey:Pn.jobs(e)})},d=g.useMemo(()=>[{key:"status",header:t("captures.jobStatus"),width:jo(120),renderCell:p=>x.jsx(Y6,{label:t(`captures.jobStatus.${p.status}`),variant:gZ[p.status]})},{key:"fetcher",header:t("captures.fetcher"),width:jo(160),renderCell:p=>x.jsx(Je,{children:p.fetcher==="firecrawl"?"Firecrawl":"DeepSeek Fetch"})},{key:"createdAt",header:t("captures.createdAt"),width:jo(200),renderCell:p=>x.jsx(Je,{color:"secondary",children:p.createdAt})},{key:"updatedAt",header:t("captures.updatedAt"),width:jo(200),renderCell:p=>x.jsx(Je,{color:"secondary",children:p.updatedAt})},{key:"error",header:t("captures.error"),width:jo(220),renderCell:p=>p.errorMessage?x.jsx(_i,{content:p.errorMessage,children:x.jsx(Je,{color:"primary",display:"block",maxLines:2,textWrap:"wrap",children:p.errorMessage})}):x.jsx(Je,{color:"secondary",children:"—"})}],[t]);return x.jsxs(x.Fragment,{children:[x.jsx(Ed,{children:x.jsxs(Rt,{gap:2,vAlign:"center",children:[x.jsx(_r,{label:t("captures.refresh"),tooltip:t("captures.refresh"),icon:x.jsx(ux,{}),size:"sm",variant:"ghost",onClick:f}),x.jsx(jt,{label:t("captures.recapture"),size:"sm",variant:"primary",onClick:()=>{l.mutate(e)}})]})}),x.jsx(We,{gap:5,children:u.length===0?x.jsx(fc,{title:t("captures.noJobsTitle"),description:t("captures.noJobsDescription")}):x.jsx(Cx,{data:u,columns:d,idKey:"id",textOverflow:"truncate"})})]})}function yZ(){const e=qr(),{subscribe:t,status:r}=px();return g.useEffect(()=>t(s=>{(s.type===D4||s.type===O4)&&e.invalidateQueries({queryKey:Pn.all})}),[e,t]),g.useEffect(()=>{r==="open"&&e.invalidateQueries({queryKey:Pn.all})},[e,r]),null}const bZ=new Set([dF,D4,O4]);function kZ(){const e=qr(),{subscribe:t,status:r}=px();return g.useEffect(()=>t(s=>{bZ.has(s.type)?e.invalidateQueries({queryKey:Ep.status()}):s.type===fF&&e.invalidateQueries()}),[e,t]),g.useEffect(()=>{r==="open"&&e.invalidateQueries({queryKey:Ep.status()})},[e,r]),null}function vZ(){const e=qr(),{subscribe:t,status:r}=px();return g.useEffect(()=>t(s=>{s.type===hF&&e.invalidateQueries({queryKey:ms.all})}),[e,t]),g.useEffect(()=>{r==="open"&&e.invalidateQueries({queryKey:ms.all})},[e,r]),null}const wZ=new Set(["timeFormat","timezone"]);function SZ(){const e=qr(),{subscribe:t,status:r}=px();return g.useEffect(()=>t(s=>{s.type===pF&&(e.invalidateQueries({queryKey:Ri.current()}),EZ(s.data)&&d3(e))}),[e,t]),g.useEffect(()=>{r==="open"&&(e.invalidateQueries({queryKey:Ri.current()}),d3(e))},[e,r]),null}function d3(e){e.invalidateQueries({queryKey:Pn.all}),e.invalidateQueries({queryKey:ms.all})}function EZ(e){if(typeof e!="object"||e===null||!("fields"in e))return!1;const t=e.fields;return Array.isArray(t)&&t.some(r=>typeof r=="string"&&wZ.has(r))}const Ua={appShell:{kMv6JI:"x14194xn",$$css:!0},sideNav:{kzqmXN:"x18nvf5t",$$css:!0},mobileSideNav:{kzqmXN:"x1ng3b2o",$$css:!0},sideNavCollapsed:{kzqmXN:"xw4jh6d",$$css:!0},compactNavItems:{khm7nJ:"xcd2776",$$css:!0},titlebarContent:{k7Eaqz:"xeuugli",$$css:!0},title:{kUk6DE:"xkz0k9k",k7Eaqz:"xeuugli",ks0D6T:"x110x0he",kXDg7o:"x2gurmm",$$css:!0},description:{k7Eaqz:"xeuugli",kmuXW:"xs83m0k",k2OY:"x16jr1d2",$$css:!0},actions:{kmuXW:"x2lah0s",$$css:!0}},$Z={className:"x78zum5 x6s0dn4 x1txdalj xpx4bdk xbih8ty x1rey3nv xnjyzlh x87ps6o"},ql={overview:uB,captures:fj,prompts:zP,library:w0,providers:$0,settings:CP},TZ=[{kind:"item",id:"overview",label:"Overview",href:"/overview",icon:ql.overview},{kind:"section",id:"library",title:"Library",icon:ql.library,items:[{kind:"item",id:"prompts",label:"Prompts",href:"/library/prompts",icon:ql.prompts},{kind:"item",id:"captures",label:"Captures",href:"/library/captures",icon:ql.captures}]},{kind:"item",id:"providers",label:"Providers",href:"/providers",icon:ql.providers}],p1={kind:"item",id:"settings",label:"Settings",href:"/settings",icon:ql.settings};function PR({href:e="/",ref:t,...r}){return x.jsx(lT,{ref:t,to:e,...r})}function gb({label:e,icon:t,href:r}){const{pathname:s}=Pr(),{isMobile:o,closeMobileNav:l}=Ii();return x.jsx(cx,{label:e,icon:t,href:r,as:PR,isSelected:s===r,size:"sm",onClick:o?l:void 0})}function CZ({title:e,icon:t,items:r,getLabel:s}){const[o,l]=g.useState(!1),{isMobile:u,closeMobileNav:f}=Ii(),d=r[0];return x.jsx(cx,{label:e,icon:t,href:d.href,as:PR,collapsible:{isCollapsed:o,onCollapsedChange:l},onClick:()=>{l(!1),u&&f()},size:"sm",children:x.jsx(We,{gap:0,xstyle:Ua.compactNavItems,children:r.map(p=>x.jsx(gb,{label:s(p.id,p.label),icon:p.icon,href:p.href},p.id))})})}function f3(e){return typeof e=="object"&&e!==null&&"titleKey"in e&&typeof e.titleKey=="string"}function BR({collapsible:e,showBackButton:t=!1}){const r=UN(),s=yc(),{t:o}=rn(),{isMobile:l}=Ii(),u=AB(),f=r.findLast(d=>f3(d.handle))?.handle;return x.jsxs("header",{...$Z,"aria-label":o("navigation.windowTitlebar"),children:[t&&x.jsx(_r,{label:o("navigation.back"),icon:x.jsx(ft,{icon:"chevronLeft"}),variant:"ghost",size:"sm",tooltip:o("navigation.back"),onClick:()=>s(-1)}),x.jsx(u0,{label:o("navigation.openNavigation")}),!l&&e&&x.jsx(g0,{collapsible:e,size:"sm",children:x.jsx(ft,{icon:e.isCollapsed?"chevronsRight":"chevronsLeft",size:"sm"})}),f3(f)&&x.jsxs(Rt,{gap:2,vAlign:"center",width:"100%",xstyle:Ua.titlebarContent,children:[x.jsx(Je,{type:"large",weight:"semibold",maxLines:1,textWrap:"nowrap",xstyle:Ua.title,children:o(f.titleKey)}),f.descriptionKey&&x.jsx(Je,{type:"supporting",maxLines:1,textWrap:"nowrap",xstyle:Ua.description,children:o(f.descriptionKey)}),x.jsx(lc,{size:"fill"}),x.jsx(Rt,{ref:u,vAlign:"center",xstyle:Ua.actions})]})]})}function jZ(){const[e,t]=g.useState(!1),{t:r}=rn(),s=(p,y)=>({overview:r("navigation.overview"),captures:r("navigation.captures"),prompts:r("navigation.prompts"),providers:r("navigation.providers"),settings:r("navigation.settings"),library:r("navigation.library")})[p]??y,o={isCollapsed:e,onCollapsedChange:t},l=x.jsx(xp,{title:r("navigation.account"),isHeaderHidden:!0,children:x.jsx(gb,{...p1,label:s(p1.id,p1.label)})}),u=x.jsx(xp,{title:r("navigation.main"),isHeaderHidden:!0,children:x.jsx(We,{gap:0,xstyle:Ua.compactNavItems,children:TZ.map(p=>p.kind==="item"?x.jsx(gb,{...p,label:s(p.id,p.label)},p.id):x.jsx(CZ,{title:s(p.id,p.title),icon:p.icon,items:p.items,getLabel:s},p.id))})}),f=x.jsx(hp,{collapsible:{...o,hasButton:!1},xstyle:e?Ua.sideNavCollapsed:Ua.sideNav,footer:l,children:u}),d=x.jsx(hp,{footer:l,xstyle:Ua.mobileSideNav,children:u});return x.jsx(d0,{height:"fill",variant:"surface",contentPadding:0,mobileNav:{content:x.jsx(p0,{className:bF.drawer,label:r("navigation.main"),side:"start",children:d})},xstyle:Ua.appShell,topNav:x.jsx(BR,{collapsible:o}),sideNav:f,children:x.jsx(Li,{height:"fill",content:x.jsx(Di,{padding:4,children:x.jsx(Lb,{})})})})}function RZ(){const{pathname:e}=Pr(),t=e==="/settings";return x.jsx(d0,{height:"fill",variant:"surface",contentPadding:0,mobileNav:!1,xstyle:Ua.appShell,topNav:x.jsx(BR,{showBackButton:!0}),children:x.jsx(Li,{height:"fill",content:x.jsx(Di,{padding:t?0:4,isScrollable:!t,children:x.jsx(Lb,{})})})})}function AZ(){const{pathname:e}=Pr(),{t}=rn();return x.jsx(We,{gap:2,children:x.jsxs(Je,{type:"supporting",children:[t("navigation.notFound"),":",e]})})}function MZ(){return x.jsx(Lb,{})}function hs(e,t){return{titleKey:e,descriptionKey:t}}const NZ=jz([{path:"/",element:x.jsx(MZ,{}),children:[{index:!0,element:x.jsx(nz,{to:"/overview",replace:!0})},{element:x.jsx(jZ,{}),children:[{path:"overview",element:x.jsx(kF,{}),handle:hs("navigation.overview")},{path:"library/captures",element:x.jsx(AW,{}),handle:hs("navigation.captures","navigation.capturesDescription")},{path:"library/prompts",element:x.jsx(vF,{}),handle:hs("navigation.prompts")},{path:"providers",element:x.jsx(uK,{}),handle:hs("navigation.providers","navigation.providersDescription")}]},{element:x.jsx(RZ,{}),children:[{path:"library/captures/:captureId",element:x.jsx(xZ,{}),handle:hs("navigation.captureDetails","navigation.captureDetailsDescription")},{path:"library/captures/:captureId/jobs",element:x.jsx(mZ,{}),handle:hs("navigation.jobs","navigation.jobsDescription")},{path:"settings",element:x.jsx(JG,{}),handle:hs("navigation.settings")},{path:"providers/new",element:x.jsx(v$,{}),handle:hs("navigation.newProvider","providers.formDescription")},{path:"providers/:providerId",element:x.jsx(v$,{}),handle:hs("navigation.editProvider","providers.formDescription")},{path:"*",element:x.jsx(AZ,{}),handle:hs("navigation.notFound")}]}]}]);function zZ({children:e}){const r=ys({queryKey:Ri.current(),queryFn:R0}).data?.workspace.appearance["color-theme"]??"system";return x.jsx(v0,{theme:RB,mode:r,children:e})}function LZ(){return x.jsx(MM,{client:M4,children:x.jsx(mF,{children:x.jsxs(MB,{children:[x.jsx(yZ,{}),x.jsx(kZ,{}),x.jsx(vZ,{}),x.jsx(SZ,{}),x.jsx(zZ,{children:x.jsx(uF,{children:x.jsx(Pz,{router:NZ})})})]})})})}p3.createRoot(document.getElementById("root")).render(x.jsx(g.StrictMode,{children:x.jsx(LZ,{})}));export{rc as L,KC as S,Ci as a,gU as b,f0 as c,zi as d,Ei as e,pn as f,Mo as g,Vs as h,Hq as i,x as j,Bs as k,sc as l,ye as m,ac as n,Qu as o,de as p,mU as q,g as r,Ub as s,fe as t,wd as u,Xp as v,Ju as w};