@void/platform 0.27.0 → 0.28.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.
@@ -5,15 +5,15 @@
5
5
  `);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
6
6
  `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{je=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Ae(n):``}function Ne(e,t){switch(e.tag){case 26:case 27:case 5:return Ae(e.type);case 16:return Ae(`Lazy`);case 13:return e.child!==t&&t!==null?Ae(`Suspense Fallback`):Ae(`Suspense`);case 19:return Ae(`SuspenseList`);case 0:case 15:return Me(e.type,!1);case 11:return Me(e.type.render,!1);case 1:return Me(e.type,!0);case 31:return Ae(`Activity`);case 30:return Ae(`ViewTransition`);default:return``}}function Pe(e){try{var t=``,n=null;do t+=Ne(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
7
7
  Error generating stack: `+e.message+`
8
- `+e.stack}}var Fe=Object.prototype.hasOwnProperty,Ie=t.unstable_scheduleCallback,Le=t.unstable_cancelCallback,Re=t.unstable_shouldYield,ze=t.unstable_requestPaint,Be=t.unstable_now,Ve=t.unstable_getCurrentPriorityLevel,He=t.unstable_ImmediatePriority,Ue=t.unstable_UserBlockingPriority,We=t.unstable_NormalPriority,Ge=t.unstable_LowPriority,Ke=t.unstable_IdlePriority,qe=t.log,Je=t.unstable_setDisableYieldValue,Ye=null,Xe=null;function Ze(e){if(typeof qe==`function`&&Je(e),Xe&&typeof Xe.setStrictMode==`function`)try{Xe.setStrictMode(Ye,e)}catch{}}var Qe=Math.clz32?Math.clz32:tt,$e=Math.log,et=Math.LN2;function tt(e){return e>>>=0,e===0?32:31-($e(e)/et|0)|0}var nt=256,rt=262144,it=4194304;function at(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ot(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=at(n))):i=at(o):i=at(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=at(n))):i=at(o)):i=at(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function st(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ct(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Qe(n),i=1<<r;t|=e[r],n&=~i}return t}function lt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ut(){var e=it;return it<<=1,!(it&62914560)&&(it=4194304),e}function dt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ft(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function pt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Qe(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&mt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function mt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Qe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ht(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Qe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function gt(e,t){var n=t&-t;return n=n&42?1:_t(n),(n&(e.suspendedLanes|t))===0?n:0}function _t(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function z(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function vt(){var e=R.p;return e===0?(e=window.event,e===void 0?32:Ah(e.type)):e}function yt(e,t){var n=R.p;try{return R.p=e,t()}finally{R.p=n}}var bt=Math.random().toString(36).slice(2),B=`__reactFiber$`+bt,xt=`__reactProps$`+bt,St=`__reactContainer$`+bt,Ct=`__reactEvents$`+bt,wt=`__reactListeners$`+bt,Tt=`__reactHandles$`+bt,Et=`__reactResources$`+bt,Dt=`__reactMarker$`+bt,Ot=`__reactLoad$`+bt;function kt(e){delete e[B],delete e[xt],delete e[wt],delete e[Tt]}function At(e){var t;if(t=e[B])return t;for(var n=e.parentNode;n;){if(t=n[St]||n[B]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ym(e);e!==null;){if(n=e[B])return n;e=ym(e)}return t}e=n,n=e.parentNode}return null}function jt(e){if(e=e[B]||e[St]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Mt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Nt(e){var t=e[Et];return t||=e[Et]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Pt(e){e[Dt]=!0}function Ft(e){e[Ot]=void 0}var It=new Set,Lt={};function Rt(e,t){V(e,t),V(e+`Capture`,t)}function V(e,t){for(Lt[e]=t,e=0;e<t.length;e++)It.add(t[e])}var H=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]*$`),zt={},Bt={};function Vt(e){return Fe.call(Bt,e)?!0:Fe.call(zt,e)?!1:H.test(e)?Bt[e]=!0:(zt[e]=!0,!1)}var Ht=!1;function Ut(){var e=Ht;return Ht=!1,e}function Wt(e,t,n){if(Vt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function Gt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function Kt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function qt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Jt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Yt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function U(e){if(!e._valueTracker){var t=Jt(e)?`checked`:`value`;e._valueTracker=Yt(e,t,``+e[t])}}function Xt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Jt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var Zt=/[\n"\\]/g;function Qt(e){return e.replace(Zt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function $t(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+qt(t)):e.value!==``+qt(t)&&(e.value=``+qt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):tn(e,qt(n)):o===`number`&&e.value==t?tn(e,qt(e.value)):tn(e,qt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+qt(s):e.removeAttribute(`name`)}function en(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){U(e);return}n=n==null?``:``+qt(n),t=t==null?n:``+qt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),U(e)}function tn(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function nn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+qt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function rn(e,t,n){if(t!=null&&(t=``+qt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+qt(n)}function an(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(pe(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=qt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),U(e)}function on(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var sn=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 cn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||sn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function ln(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,Ht=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(cn(e,a,r),Ht=!0)}else for(var o in t)t.hasOwnProperty(o)&&cn(e,o,t[o])}function un(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var dn=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`]]),fn=/^[\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 pn(e){return fn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function mn(){}var hn=null;function gn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _n=null,vn=null;function yn(e){var t=jt(e);if(t&&(e=t.stateNode)){var n=e[xt]||null;a:switch(e=t.stateNode,t.type){case`input`:if($t(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Qt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[xt]||null;if(!a)throw Error(i(90));$t(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Xt(r)}break a;case`textarea`:rn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&nn(e,!!n.multiple,t,!1)}}}var bn=!1;function xn(e,t,n){if(bn)return e(t,n);bn=!0;try{return e(t)}finally{if(bn=!1,(_n!==null||vn!==null)&&(Ud(),_n&&(t=_n,e=vn,vn=_n=null,yn(t),e)))for(t=0;t<e.length;t++)yn(e[t])}}function Sn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[xt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var Cn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,wn=!1;if(Cn)try{var Tn={};Object.defineProperty(Tn,"passive",{get:function(){wn=!0}}),window.addEventListener(`test`,Tn,Tn),window.removeEventListener(`test`,Tn,Tn)}catch{wn=!1}var En=null,Dn=null,On=null;function kn(){if(On)return On;var e,t=Dn,n=t.length,r,i=`value`in En?En.value:En.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return On=i.slice(e,1<r?1-r:void 0)}function An(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function jn(){return!0}function Mn(){return!1}function Nn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?jn:Mn,this.isPropagationStopped=Mn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=jn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=jn)},persist:function(){},isPersistent:jn}),t}var Pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fn=Nn(Pn),In=D({},Pn,{view:0,detail:0}),Ln=Nn(In),Rn,zn,Bn,Vn=D({},In,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Bn&&(Bn&&e.type===`mousemove`?(Rn=e.screenX-Bn.screenX,zn=e.screenY-Bn.screenY):zn=Rn=0,Bn=e),Rn)},movementY:function(e){return`movementY`in e?e.movementY:zn}}),Hn=Nn(Vn),W=Nn(D({},Vn,{dataTransfer:0})),Un=Nn(D({},In,{relatedTarget:0})),G=Nn(D({},Pn,{animationName:0,elapsedTime:0,pseudoElement:0})),Wn=Nn(D({},Pn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Gn=Nn(D({},Pn,{data:0})),Kn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},qn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Jn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Yn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jn[e])?!!t[e]:!1}function Xn(){return Yn}var Zn=Nn(D({},In,{key:function(e){if(e.key){var t=Kn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=An(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?qn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xn,charCode:function(e){return e.type===`keypress`?An(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?An(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Qn=Nn(D({},Vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),$n=Nn(D({},Pn,{submitter:0})),er=Nn(D({},In,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xn})),tr=Nn(D({},Pn,{propertyName:0,elapsedTime:0,pseudoElement:0})),nr=Nn(D({},Vn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),rr=Nn(D({},Pn,{newState:0,oldState:0,source:0})),ir=[9,13,27,32],ar=Cn&&`CompositionEvent`in window,or=null;Cn&&`documentMode`in document&&(or=document.documentMode);var sr=Cn&&`TextEvent`in window&&!or,cr=Cn&&(!ar||or&&8<or&&11>=or),lr=` `,ur=!1;function dr(e,t){switch(e){case`keyup`:return ir.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function fr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var pr=!1;function mr(e,t){switch(e){case`compositionend`:return fr(t);case`keypress`:return t.which===32?(ur=!0,lr):null;case`textInput`:return e=t.data,e===lr&&ur?null:e;default:return null}}function hr(e,t){if(pr)return e===`compositionend`||!ar&&dr(e,t)?(e=kn(),On=Dn=En=null,pr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return cr&&t.locale!==`ko`?null:t.data;default:return null}}var gr={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 _r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!gr[e.type]:t===`textarea`}function vr(e,t,n,r){_n?vn?vn.push(r):vn=[r]:_n=r,t=ep(t,`onChange`),0<t.length&&(n=new Fn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var yr=null,br=null;function xr(e){Kf(e,0)}function Sr(e){if(Xt(Mt(e)))return e}function Cr(e,t){if(e===`change`)return t}var wr=!1;if(Cn){var Tr;if(Cn){var Er=`oninput`in document;if(!Er){var Dr=document.createElement(`div`);Dr.setAttribute(`oninput`,`return;`),Er=typeof Dr.oninput==`function`}Tr=Er}else Tr=!1;wr=Tr&&(!document.documentMode||9<document.documentMode)}function Or(){yr&&(yr.detachEvent(`onpropertychange`,kr),br=yr=null)}function kr(e){if(e.propertyName===`value`&&Sr(br)){var t=[];vr(t,br,e,gn(e)),xn(xr,t)}}function Ar(e,t,n){e===`focusin`?(Or(),yr=t,br=n,yr.attachEvent(`onpropertychange`,kr)):e===`focusout`&&Or()}function jr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Sr(br)}function Mr(e,t){if(e===`click`)return Sr(t)}function Nr(e,t){if(e===`input`||e===`change`)return Sr(t)}function Pr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Fr=typeof Object.is==`function`?Object.is:Pr;function Ir(e,t){if(Fr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Fe.call(t,i)||!Fr(e[i],t[i]))return!1}return!0}function Lr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Rr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zr(e,t){var n=Rr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Rr(n)}}function Br(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Br(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Lr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lr(e.document)}return t}function Hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Ur=Cn&&`documentMode`in document&&11>=document.documentMode,Wr=null,Gr=null,Kr=null,qr=!1;function Jr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qr||Wr==null||Wr!==Lr(r)||(r=Wr,`selectionStart`in r&&Hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Kr&&Ir(Kr,r)||(Kr=r,r=ep(Gr,`onSelect`),0<r.length&&(t=new Fn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Wr)))}function Yr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Xr={animationend:Yr(`Animation`,`AnimationEnd`),animationiteration:Yr(`Animation`,`AnimationIteration`),animationstart:Yr(`Animation`,`AnimationStart`),transitionrun:Yr(`Transition`,`TransitionRun`),transitionstart:Yr(`Transition`,`TransitionStart`),transitioncancel:Yr(`Transition`,`TransitionCancel`),transitionend:Yr(`Transition`,`TransitionEnd`)},Zr={},Qr={};Cn&&(Qr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Xr.animationend.animation,delete Xr.animationiteration.animation,delete Xr.animationstart.animation),`TransitionEvent`in window||delete Xr.transitionend.transition);function $r(e){if(Zr[e])return Zr[e];if(!Xr[e])return e;var t=Xr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Qr)return Zr[e]=t[n];return e}var ei=$r(`animationend`),ti=$r(`animationiteration`),ni=$r(`animationstart`),ri=$r(`transitionrun`),ii=$r(`transitionstart`),ai=$r(`transitioncancel`),oi=$r(`transitionend`),si=new Map,ci=`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(` `);ci.push(`scrollEnd`);function li(e,t){si.set(e,t),Rt(t,[e])}var ui=0;function di(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=wd.identifierPrefix;var n=ui++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function fi(e){if(e==null||typeof e==`string`)return e;var t=null,n=Md;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function pi(e,t){return e=fi(e),t=fi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var mi=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},hi=[],gi=0,_i=0;function vi(){for(var e=gi,t=_i=gi=0;t<e;){var n=hi[t];hi[t++]=null;var r=hi[t];hi[t++]=null;var i=hi[t];hi[t++]=null;var a=hi[t];if(hi[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Si(n,i,a)}}function yi(e,t,n,r){hi[gi++]=e,hi[gi++]=t,hi[gi++]=n,hi[gi++]=r,_i|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function bi(e,t,n,r){return yi(e,t,n,r),Ci(e)}function xi(e,t){return yi(e,null,null,t),Ci(e)}function Si(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Qe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Ci(e){if(50<Nd)throw Nd=0,Pd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var wi={};function Ti(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ei(e,t,n,r){return new Ti(e,t,n,r)}function Di(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Oi(e,t){var n=e.alternate;return n===null?(n=Ei(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ki(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ai(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Di(r)&&(s=1);else if(typeof r==`string`)s=eh(e,n,be.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case ie:return e=Ei(31,n,t,a),e.elementType=ie,e.lanes=o,e;case j:return ji(n.children,a,o,t);case M:s=8,a|=24;break;case N:return e=Ei(12,n,t,a|2),e.elementType=N,e.lanes=o,e;case F:return e=Ei(13,n,t,a),e.elementType=F,e.lanes=o,e;case ne:return e=Ei(19,n,t,a),e.elementType=ne,e.lanes=o,e;case ae:case se:return e=a|32,e=Ei(30,n,t,e),e.elementType=se,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case P:s=10;break a;case ee:s=9;break a;case te:s=11;break a;case I:s=14;break a;case re:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Ei(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ji(e,t,n,r){return e=Ei(7,e,r,t),e.lanes=n,e}function Mi(e,t,n){return e=Ei(6,e,null,t),e.lanes=n,e}function Ni(e){var t=Ei(18,null,null,0);return t.stateNode=e,t}function Pi(e,t,n){return t=Ei(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Fi=new WeakMap;function Ii(e,t){if(typeof e==`object`&&e){var n=Fi.get(e);return n===void 0?(t={value:e,source:t,stack:Pe(t)},Fi.set(e,t),t):n}return{value:e,source:t,stack:Pe(t)}}var Li=[],Ri=0,zi=null,Bi=0,Vi=[],Hi=0,Ui=null,Wi=1,Gi=``;function Ki(e,t){Li[Ri++]=Bi,Li[Ri++]=zi,zi=e,Bi=t}function qi(e,t,n){Vi[Hi++]=Wi,Vi[Hi++]=Gi,Vi[Hi++]=Ui,Ui=e;var r=Wi;e=Gi;var i=32-Qe(r)-1;r&=~(1<<i),n+=1;var a=32-Qe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Wi=1<<32-Qe(t)+i|n<<i|r,Gi=a+e}else Wi=1<<a|n<<i|r,Gi=e}function Ji(e){e.return!==null&&(Ki(e,1),qi(e,1,0))}function Yi(e){for(;e===zi;)zi=Li[--Ri],Li[Ri]=null,Bi=Li[--Ri],Li[Ri]=null;for(;e===Ui;)Ui=Vi[--Hi],Vi[Hi]=null,Gi=Vi[--Hi],Vi[Hi]=null,Wi=Vi[--Hi],Vi[Hi]=null}function Xi(e,t){Vi[Hi++]=Wi,Vi[Hi++]=Gi,Vi[Hi++]=Ui,Wi=t.id,Gi=t.overflow,Ui=e}var Zi=null,Qi=null,$i=!1,ea=null,ta=!1,na=Error(i(519));function ra(e){throw la(Ii(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),na}function ia(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[B]=e,t[xt]=r,n){case`dialog`:qf(`cancel`,t),qf(`close`,t);break;case`iframe`:case`object`:case`embed`:qf(`load`,t);break;case`video`:case`audio`:for(n=0;n<Wf.length;n++)qf(Wf[n],t);break;case`source`:qf(`error`,t);break;case`img`:case`image`:case`link`:qf(`error`,t),qf(`load`,t);break;case`details`:qf(`toggle`,t);break;case`input`:qf(`invalid`,t),en(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:qf(`invalid`,t);break;case`textarea`:qf(`invalid`,t),an(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||op(t.textContent,n)?(r.popover!=null&&(qf(`beforetoggle`,t),qf(`toggle`,t)),r.onScroll!=null&&qf(`scroll`,t),r.onScrollEnd!=null&&qf(`scrollend`,t),r.onClick!=null&&(t.onclick=mn),t=!0):t=!1,t||ra(e,!0)}function aa(e){for(Zi=e.return;Zi;)switch(Zi.tag){case 5:case 31:case 13:ta=!1;return;case 27:case 3:ta=!0;return;default:Zi=Zi.return}}function oa(e){if(e!==Zi)return!1;if(!$i)return aa(e),$i=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||bp(e.type,e.memoizedProps)),n=!n),n&&Qi&&ra(e),aa(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Qi=vm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Qi=vm(e)}else t===27?(t=Qi,kp(e.type)?(e=_m,_m=null,Qi=e):Qi=t):Qi=Zi?gm(e.stateNode.nextSibling):null;return!0}function sa(){Qi=Zi=null,$i=!1}function ca(){var e=ea;return e!==null&&(gd===null?gd=e:gd.push.apply(gd,e),ea=null),e}function la(e){ea===null?ea=[e]:ea.push(e)}var ua=_e(null),da=null,fa=null;function pa(e,t,n){ye(ua,t._currentValue),t._currentValue=n}function ma(e){e._currentValue=ua.current,ve(ua)}function ha(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ga(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ha(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ha(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),ha(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function _a(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Fr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===Ce.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[mh]:e.push(mh))}a=a.return}return e!==null&&ga(t,e,n,r),t.flags|=262144,e!==null}function va(e){for(e=e.firstContext;e!==null;){if(!Fr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ya(e){da=e,fa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ba(e){return Sa(da,e)}function xa(e,t){return da===null&&ya(e),Sa(e,t)}function Sa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},fa===null){if(e===null)throw Error(i(308));fa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else fa=fa.next=t;return n}var Ca=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},wa=t.unstable_scheduleCallback,Ta=t.unstable_NormalPriority,Ea={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Da(){return{controller:new Ca,data:new Map,refCount:0}}function Oa(e){e.refCount--,e.refCount===0&&wa(Ta,function(){e.controller.abort()})}function ka(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Aa=null;function ja(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Ma=null,Na=0,Pa=0,Fa=null;function Ia(e,t){if(Ma===null){var n=Ma=[];Na=0,Pa=zf(),Fa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Na++,t.then(La,La),t}function La(){if(--Na===0&&(Aa=null,Ma!==null)){Fa!==null&&(Fa.status=`fulfilled`);var e=Ma;Ma=null,Pa=0,Fa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ra(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var za=L.S;L.S=function(e,t){if(yd=Be(),typeof t==`object`&&t&&typeof t.then==`function`&&Ia(e,t),Aa!==null)for(var n=Tf;n!==null;)ka(n,Aa),n=n.next;if(n=e.types,n!==null){for(var r=Tf;r!==null;)ka(r,n),r=r.next;if(Pa!==0){r=Aa,r===null&&(r=Aa=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}za!==null&&za(e,t)};var Ba=_e(null);function Va(){var e=Ba.current;return e===null?ed.pooledCache:e}function Ha(e,t){t===null?ye(Ba,Ba.current):ye(Ba,t.pool)}function Ua(){var e=Va();return e===null?null:{parent:Ea._currentValue,pool:e}}var Wa=Error(i(460)),Ga=Error(i(474)),Ka=Error(i(542)),qa={then:function(){}};function Ja(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ya(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(mn,mn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,$a(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(mn,mn);else{if(e=ed,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,$a(e),e}throw Za=t,Wa}}function Xa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Za=e,Wa):e}}var Za=null;function Qa(){if(Za===null)throw Error(i(459));var e=Za;return Za=null,e}function $a(e){if(e===Wa||e===Ka)throw Error(i(483))}var eo=null,to=0;function no(e){var t=to;return to+=1,eo===null&&(eo=[]),Ya(eo,e,t)}function ro(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function io(e,t){throw t.$$typeof===O?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ao(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=Oi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Mi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===j?(e=d(e,t,n.props.children,r,n.key),ro(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===re&&Xa(i)===t.type)?(t=a(t,n.props),ro(t,n),t.return=e,t):(t=Ai(n.type,n.key,n.props,null,e.mode,r),ro(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Pi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ji(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Mi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case k:return n=Ai(t.type,t.key,t.props,null,e.mode,n),ro(n,t),n.return=e,n;case A:return t=Pi(t,e.mode,n),t.return=e,t;case re:return t=Xa(t),f(e,t,n)}if(pe(t)||ue(t))return t=ji(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,no(t),n);if(t.$$typeof===P)return f(e,xa(e,t),n);io(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case k:return n.key===i?l(e,t,n,r):null;case A:return n.key===i?u(e,t,n,r):null;case re:return n=Xa(n),p(e,t,n,r)}if(pe(n)||ue(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,no(n),r);if(n.$$typeof===P)return p(e,t,xa(e,n),r);io(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case k:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case A:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case re:return r=Xa(r),m(e,t,n,r,i)}if(pe(r)||ue(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,no(r),i);if(r.$$typeof===P)return m(e,t,n,xa(t,r),i);io(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),$i&&Ki(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return $i&&Ki(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),$i&&Ki(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),$i&&Ki(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return $i&&Ki(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),$i&&Ki(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===j&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case k:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===j){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),ro(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===re&&Xa(l)===r.type){n(e,r.sibling),c=a(r,o.props),ro(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===j?(c=ji(o.props.children,e.mode,c,o.key),ro(c,o),c.return=e,e=c):(c=Ai(o.type,o.key,o.props,null,e.mode,c),ro(c,o),c.return=e,e=c)}return s(e);case A:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Pi(o,e.mode,c),c.return=e,e=c}return s(e);case re:return o=Xa(o),_(e,r,o,c)}if(pe(o))return h(e,r,o,c);if(ue(o)){if(l=ue(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,no(o),c);if(o.$$typeof===P)return _(e,r,xa(e,o),c);io(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Mi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{to=0;var i=_(e,t,n,r);return eo=null,i}catch(t){if(t===Wa||t===Ka)throw t;var a=Ei(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var oo=ao(!0),so=ao(!1),co=!1;function lo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function uo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function fo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function po(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$u&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ci(e),Si(e,null,n),t}return yi(e,r,t,n),Ci(e)}function mo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ht(e,n)}}function ho(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var go=!1;function _o(){if(go){var e=Fa;if(e!==null)throw e}}function vo(e,t,n,r){go=!1;var i=e.updateQueue;co=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(nd&f)===f:(r&f)===f){f!==0&&f===Pa&&(go=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=D({},d,f);break a;case 2:co=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),ud|=o,e.lanes=o,e.memoizedState=d}}function yo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function bo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)yo(n[e],t)}var xo=_e(null),So=_e(0);function Co(e,t){e=cd,ye(So,e),ye(xo,t),cd=e|t.baseLanes}function wo(){ye(So,cd),ye(xo,xo.current)}function To(){cd=So.current,ve(xo),ve(So)}var Eo=_e(null),Do=null;function Oo(e){var t=e.alternate;ye(No,No.current&1),ye(Eo,e),Do===null&&(t===null||xo.current!==null||t.memoizedState!==null)&&(Do=e)}function ko(e){ye(No,No.current),ye(Eo,e),Do===null&&(Do=e)}function Ao(e){e.tag===22?(ye(No,No.current),ye(Eo,e),Do===null&&(Do=e)):jo()}function jo(){ye(No,No.current),ye(Eo,Eo.current)}function Mo(e){ve(Eo),Do===e&&(Do=null),ve(No)}var No=_e(0);function Po(e,t){ye(Eo,Eo.current),ye(No,t)}function Fo(e){ve(No),ve(Eo),Do===e&&(Do=null)}function Io(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||pm(n)||mm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Lo=0,Ro=null,zo=null,Bo=null,Vo=!1,Ho=!1,Uo=!1,Wo=0,Go=0,Ko=null,qo=0;function Jo(){throw Error(i(321))}function Yo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fr(e[n],t[n]))return!1;return!0}function Xo(e,t,n,r,i,a){return Lo=a,Ro=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?pc:mc,Uo=!1,a=n(r,i),Uo=!1,Ho&&(a=Qo(t,n,r,i)),Zo(e),a}function Zo(e){L.H=fc;var t=zo!==null&&zo.next!==null;if(Lo=0,Bo=zo=Ro=null,Vo=!1,Go=0,Ko=null,t)throw Error(i(300));e===null||jc||(e=e.dependencies,e!==null&&va(e)&&(jc=!0))}function Qo(e,t,n,r){Ro=e;var a=0;do{if(Ho&&(Ko=null),Go=0,Ho=!1,25<=a)throw Error(i(301));if(a+=1,Bo=zo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}L.H=hc,o=t(n,r)}while(Ho);return o}function $o(){var e=L.H,t=e.useState()[0];return t=typeof t.then==`function`?os(t):t,e=e.useState()[0],(zo===null?null:zo.memoizedState)!==e&&(Ro.flags|=1024),t}function es(){var e=Wo!==0;return Wo=0,e}function ts(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ns(e){if(Vo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Vo=!1}Lo=0,Bo=zo=Ro=null,Ho=!1,Go=Wo=0,Ko=null}function rs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bo===null?Ro.memoizedState=Bo=e:Bo=Bo.next=e,Bo}function is(){if(zo===null){var e=Ro.alternate;e=e===null?null:e.memoizedState}else e=zo.next;var t=Bo===null?Ro.memoizedState:Bo.next;if(t!==null)Bo=t,zo=e;else{if(e===null)throw Ro.alternate===null?Error(i(467)):Error(i(310));zo=e,e={memoizedState:zo.memoizedState,baseState:zo.baseState,baseQueue:zo.baseQueue,queue:zo.queue,next:null},Bo===null?Ro.memoizedState=Bo=e:Bo=Bo.next=e}return Bo}function as(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var t=Go;return Go+=1,Ko===null&&(Ko=[]),e=Ya(Ko,e,t),t=Ro,(Bo===null?t.memoizedState:Bo.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?pc:mc),e}function ss(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return os(e);if(e.$$typeof===ce)return;if(e.$$typeof===P)return ba(e)}throw Error(i(438,String(e)))}function cs(e){var t=null,n=Ro.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Ro.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=as(),Ro.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=oe;return t.index++,n}function ls(e,t){return typeof t==`function`?t(e):t}function us(e){return ds(is(),zo,e)}function ds(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Lo&f)===f:(nd&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Pa&&(d=!0);else if((Lo&p)===p){u=u.next,p===Pa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,Ro.lanes|=p,ud|=p;f=u.action,Uo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,Ro.lanes|=f,ud|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Fr(o,e.memoizedState)&&(jc=!0,d&&(n=Fa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function fs(e){var t=is(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Fr(o,t.memoizedState)||(jc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ps(e,t,n){var r=Ro,a=is(),o=$i;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Fr((zo||a).memoizedState,n);if(s&&(a.memoizedState=n,jc=!0),a=a.queue,Rs(gs.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Bo!==null&&!!(Bo.memoizedState.tag&1),Ns(e?9:8,{destroy:void 0},hs.bind(null,r,a,n,t),null),e){if(r.flags|=2048,ed===null)throw Error(i(349));o||Lo&127||ms(r,t,n)}return n}function ms(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ro.updateQueue,t===null?(t=as(),Ro.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function hs(e,t,n,r){t.value=n,t.getSnapshot=r,_s(t)&&vs(e)}function gs(e,t,n){return n(function(){_s(t)&&vs(e)})}function _s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fr(e,n)}catch{return!0}}function vs(e){var t=xi(e,2);t!==null&&Rd(t,e,2)}function ys(e){var t=rs();if(typeof e==`function`){var n=e;if(e=n(),Uo){Ze(!0);try{n()}finally{Ze(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:e},t}function bs(e,t,n,r){return e.baseState=n,ds(e,zo,typeof r==`function`?r:ls)}function xs(e,t,n,r,a){if(lc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};L.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ss(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ss(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=L.T,o={};o.types=a===null?null:a.types,L.T=o;try{var s=n(i,r),c=L.S;c!==null&&c(o,s),Cs(e,t,s)}catch(n){Ts(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),L.T=a}}else try{a=n(i,r),Cs(e,t,a)}catch(n){Ts(e,t,n)}}function Cs(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){ws(e,t,n)},function(n){return Ts(e,t,n)}):ws(e,t,n)}function ws(e,t,n){t.status=`fulfilled`,t.value=n,Es(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ss(e,n)))}function Ts(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Es(t),t=t.next;while(t!==r)}e.action=null}function Es(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ds(e,t){return t}function Os(e,t){if($i){var n=ed.formState;if(n!==null){a:{var r=Ro;if($i){if(Qi){b:{for(var i=Qi,a=ta;i.nodeType!==8;){if(!a){i=null;break b}if(i=gm(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Qi=gm(i.nextSibling),r=i.data===`F!`;break a}}ra(r)}r=!1}r&&(t=n[0])}}return n=rs(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ds,lastRenderedState:t},n.queue=r,n=oc.bind(null,Ro,r),r.dispatch=n,r=ys(!1),a=cc.bind(null,Ro,!1,r.queue),r=rs(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=xs.bind(null,Ro,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ks(e){return As(is(),zo,e)}function As(e,t,n){if(t=ds(e,t,Ds)[0],e=us(ls)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=os(t)}catch(e){throw e===Wa?Ka:e}else r=t;t=is();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Ro.flags|=2048,Ns(9,{destroy:void 0},js.bind(null,i,n),null)),[r,a,e]}function js(e,t){e.action=t}function Ms(e){var t=is(),n=zo;if(n!==null)return As(t,n,e);is(),t=t.memoizedState,n=is();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ns(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Ro.updateQueue,t===null&&(t=as(),Ro.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ps(){return is().memoizedState}function Fs(e,t,n,r){var i=rs();Ro.flags|=e,i.memoizedState=Ns(1|t,{destroy:void 0},n,r===void 0?null:r)}function Is(e,t,n,r){var i=is();r=r===void 0?null:r;var a=i.memoizedState.inst;zo!==null&&r!==null&&Yo(r,zo.memoizedState.deps)?i.memoizedState=Ns(t,a,n,r):(Ro.flags|=e,i.memoizedState=Ns(1|t,a,n,r))}function Ls(e,t){Fs(8390656,8,e,t)}function Rs(e,t){Is(2048,8,e,t)}function zs(e){Ro.flags|=4;var t=Ro.updateQueue;if(t===null)t=as(),Ro.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Bs(e){var t=is().memoizedState;return zs({ref:t,nextImpl:e}),function(){if($u&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Vs(e,t){return Is(4,2,e,t)}function Hs(e,t){return Is(4,4,e,t)}function Us(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ws(e,t,n){n=n==null?null:n.concat([e]),Is(4,4,Us.bind(null,t,e),n)}function Gs(){}function Ks(e,t){var n=is();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Yo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qs(e,t){var n=is();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Yo(t,r[1]))return r[0];if(r=e(),Uo){Ze(!0);try{e()}finally{Ze(!1)}}return n.memoizedState=[r,t],r}function Js(e,t,n){return n===void 0||Lo&1073741824&&!(nd&261930)?e.memoizedState=t:(e.memoizedState=n,e=Id(),Ro.lanes|=e,ud|=e,n)}function Ys(e,t,n,r){return Fr(n,t)?n:xo.current===null?!(Lo&106)||Lo&1073741824&&!(nd&261930)?(jc=!0,e.memoizedState=n):(e=Id(),Ro.lanes|=e,ud|=e,t):(e=Js(e,n,r),Fr(e,t)||(jc=!0),e)}function Xs(e,t,n,r,i){var a=R.p;R.p=a!==0&&8>a?a:8;var o=L.T,s={};s.types=o===null?null:o.types,L.T=s,cc(e,!1,t,n);try{var c=i(),l=L.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?sc(e,t,Ra(c,r),Fd(e)):sc(e,t,r,Fd(e))}catch(n){sc(e,t,{then:function(){},status:`rejected`,reason:n},Fd())}finally{R.p=a,o!==null&&s.types!==null&&(o.types=s.types),L.T=o}}function Zs(){}function Qs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=$s(e).queue;Xs(e,a,t,me,n===null?Zs:function(){return ec(e),n(r)})}function $s(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:me,baseState:me,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:me},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ec(e){var t=$s(e);t.next===null&&(t=e.alternate.memoizedState),sc(e,t.next.queue,{},Fd())}function tc(){return ba(mh)}function nc(){return is().memoizedState}function rc(){return is().memoizedState}function ic(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Fd();e=fo(n);var r=po(t,e,n);r!==null&&(Rd(r,t,n),mo(r,t,n)),t={cache:Da()},e.payload=t;return}t=t.return}}function ac(e,t,n){var r=Fd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},lc(e)?uc(t,n):(n=bi(e,t,n,r),n!==null&&(Rd(n,e,r),dc(n,t,r)))}function oc(e,t,n){sc(e,t,n,Fd())}function sc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(lc(e))uc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Fr(s,o))return yi(e,t,i,0),ed===null&&vi(),!1}catch{}if(n=bi(e,t,i,r),n!==null)return Rd(n,e,r),dc(n,t,r),!0}return!1}function cc(e,t,n,r){if(r={lane:2,revertLane:zf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},lc(e)){if(t)throw Error(i(479))}else t=bi(e,n,r,2),t!==null&&Rd(t,e,2)}function lc(e){var t=e.alternate;return e===Ro||t!==null&&t===Ro}function uc(e,t){Ho=Vo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ht(e,n)}}var fc={readContext:ba,use:ss,useCallback:Jo,useContext:Jo,useEffect:Jo,useImperativeHandle:Jo,useLayoutEffect:Jo,useInsertionEffect:Jo,useMemo:Jo,useReducer:Jo,useRef:Jo,useState:Jo,useDebugValue:Jo,useDeferredValue:Jo,useTransition:Jo,useSyncExternalStore:Jo,useId:Jo,useHostTransitionStatus:Jo,useFormState:Jo,useActionState:Jo,useOptimistic:Jo,useMemoCache:Jo,useCacheRefresh:Jo,useEffectEvent:Jo},pc={readContext:ba,use:ss,useCallback:function(e,t){return rs().memoizedState=[e,t===void 0?null:t],e},useContext:ba,useEffect:Ls,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Fs(4194308,4,Us.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fs(4194308,4,e,t)},useInsertionEffect:function(e,t){Fs(4,2,e,t)},useMemo:function(e,t){var n=rs();t=t===void 0?null:t;var r=e();if(Uo){Ze(!0);try{e()}finally{Ze(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=rs();if(n!==void 0){var i=n(t);if(Uo){Ze(!0);try{n(t)}finally{Ze(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ac.bind(null,Ro,e),[r.memoizedState,e]},useRef:function(e){var t=rs();return e={current:e},t.memoizedState=e},useState:function(e){e=ys(e);var t=e.queue,n=oc.bind(null,Ro,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Gs,useDeferredValue:function(e,t){return Js(rs(),e,t)},useTransition:function(){var e=ys(!1);return e=Xs.bind(null,Ro,e.queue,!0,!1),rs().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Ro,a=rs();if($i){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),ed===null)throw Error(i(349));nd&127||ms(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Ls(gs.bind(null,r,o,e),[e]),r.flags|=2048,Ns(9,{destroy:void 0},hs.bind(null,r,o,n,t),null),n},useId:function(){var e=rs(),t=ed.identifierPrefix;if($i){var n=Gi,r=Wi;n=(r&~(1<<32-Qe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Wo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=qo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:tc,useFormState:Os,useActionState:Os,useOptimistic:function(e){var t=rs();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=cc.bind(null,Ro,!0,n),n.dispatch=t,[e,t]},useMemoCache:cs,useCacheRefresh:function(){return rs().memoizedState=ic.bind(null,Ro)},useEffectEvent:function(e){var t=rs(),n={impl:e};return t.memoizedState=n,function(){if($u&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},mc={readContext:ba,use:ss,useCallback:Ks,useContext:ba,useEffect:Rs,useImperativeHandle:Ws,useInsertionEffect:Vs,useLayoutEffect:Hs,useMemo:qs,useReducer:us,useRef:Ps,useState:function(){return us(ls)},useDebugValue:Gs,useDeferredValue:function(e,t){return Ys(is(),zo.memoizedState,e,t)},useTransition:function(){var e=us(ls)[0],t=is().memoizedState;return[typeof e==`boolean`?e:os(e),t]},useSyncExternalStore:ps,useId:nc,useHostTransitionStatus:tc,useFormState:ks,useActionState:ks,useOptimistic:function(e,t){return bs(is(),zo,e,t)},useMemoCache:cs,useCacheRefresh:rc,useEffectEvent:Bs},hc={readContext:ba,use:ss,useCallback:Ks,useContext:ba,useEffect:Rs,useImperativeHandle:Ws,useInsertionEffect:Vs,useLayoutEffect:Hs,useMemo:qs,useReducer:fs,useRef:Ps,useState:function(){return fs(ls)},useDebugValue:Gs,useDeferredValue:function(e,t){var n=is();return zo===null?Js(n,e,t):Ys(n,zo.memoizedState,e,t)},useTransition:function(){var e=fs(ls)[0],t=is().memoizedState;return[typeof e==`boolean`?e:os(e),t]},useSyncExternalStore:ps,useId:nc,useHostTransitionStatus:tc,useFormState:Ms,useActionState:Ms,useOptimistic:function(e,t){var n=is();return zo===null?(n.baseState=e,[e,n.queue.dispatch]):bs(n,zo,e,t)},useMemoCache:cs,useCacheRefresh:rc,useEffectEvent:Bs};function gc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:D({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var _c={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Fd(),i=fo(r);i.payload=t,n!=null&&(i.callback=n),t=po(e,i,r),t!==null&&(Rd(t,e,r),mo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Fd(),i=fo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=po(e,i,r),t!==null&&(Rd(t,e,r),mo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Fd(),r=fo(n);r.tag=2,t!=null&&(r.callback=t),t=po(e,r,n),t!==null&&(Rd(t,e,n),mo(t,e,n))}};function vc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Ir(n,r)||!Ir(i,a):!0}function yc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&_c.enqueueReplaceState(t,t.state,null)}function bc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=D({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function xc(e){mi(e)}function Sc(e){console.error(e)}function Cc(e){mi(e)}function wc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Tc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ec(e,t,n){return n=fo(n),n.tag=3,n.payload={element:null},n.callback=function(){wc(e,t)},n}function Dc(e){return e=fo(e),e.tag=3,e}function Oc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Tc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Tc(t,n,r),typeof i!=`function`&&(Sd===null?Sd=new Set([this]):Sd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function kc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&_a(t,n,a,!0),n=Eo.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Do===null?Xd():n.alternate===null&&ld===0&&(ld=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===qa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),yf(e,r,a)),!1;case 22:return n.flags|=65536,r===qa?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),yf(e,r,a)),!1}throw Error(i(435,n.tag))}return yf(e,r,a),Xd(),!1}if($i)return t=Eo.current,t===null?(r!==na&&(t=Error(i(423),{cause:r}),la(Ii(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Ii(r,n),a=Ec(e.stateNode,r,a),ho(e,a),ld!==4&&(ld=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==na&&(e=Error(i(422),{cause:r}),la(Ii(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Ii(o,n),hd===null?hd=[o]:hd.push(o),ld!==4&&(ld=2),t===null)return!0;r=Ii(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Ec(n.stateNode,r,e),ho(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(Sd===null||!Sd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Dc(a),Oc(a,e,n,r),ho(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Ac=Error(i(461)),jc=!1;function Mc(e,t,n,r){t.child=e===null?so(t,null,n,r):oo(t,e.child,n,r)}function Nc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ya(t),r=Xo(e,t,n,o,a,i),s=es(),e!==null&&!jc?(ts(e,t,i),sl(e,t,i)):($i&&s&&Ji(t),t.flags|=1,Mc(e,t,r,i),t.child)}function Pc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Di(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Fc(e,t,a,r,i)):(e=Ai(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!cl(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Ir:n,n(o,r)&&e.ref===t.ref)return sl(e,t,i)}return t.flags|=1,e=Oi(a,r),e.ref=t.ref,e.return=t,t.child=e}function Fc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Ir(a,r)&&e.ref===t.ref){if(jc=!1,t.pendingProps=r=a,cl(e,i))e.flags&131072&&(jc=!0);else return t.lanes=e.lanes,sl(e,t,i)}}return Uc(e,t,n,r,i)}function Ic(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Rc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ha(t,a===null?null:a.cachePool),a===null?wo():Co(t,a),Ao(t);else return r=t.lanes=536870912,Rc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ha(t,null),wo(),jo()):(Ha(t,a.cachePool),Co(t,a),jo(),t.memoizedState=null);return Mc(e,t,i,n),t.child}function Lc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Rc(e,t,n,r,i){var a=Va();return a=a===null?null:{parent:Ea._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ha(t,null),wo(),Ao(t),e!==null&&_a(e,t,r,!0),t.childLanes=i,null}function zc(e,t){return t=Qc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Bc(e,t,n){return oo(t,e.child,null,n),e=zc(t,t.pendingProps),e.flags|=2,Mo(t),t.memoizedState=null,e}function Vc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if($i){if(r.mode===`hidden`)return e=zc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Lc(null,e);if(ko(t),(e=Qi)?(e=fm(e,ta),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ui===null?null:{id:Wi,overflow:Gi},retryLane:536870912,hydrationErrors:null},n=Ni(e),n.return=t,t.child=n,Zi=t,Qi=null)):e=null,e===null)throw ra(t);return t.lanes=536870912,null}return zc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(ko(t),a){if(t.flags&256)t.flags&=-257,t=Bc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(jc||_a(e,t,n,!1),a=(n&e.childLanes)!==0,jc||a){if(xo.current===null){if(r=ed,r!==null&&(s=gt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,xi(e,s),Rd(r,e,s),Ac;Xd()}t=Bc(e,t,n)}else e=o.treeContext,Qi=gm(s.nextSibling),Zi=t,$i=!0,ea=null,ta=!1,e!==null&&Xi(t,e),t=zc(t,r),t.flags|=134221824;return t}return e=Oi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Hc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Uc(e,t,n,r,i){return ya(t),n=Xo(e,t,n,r,void 0,i),r=es(),e!==null&&!jc?(ts(e,t,i),sl(e,t,i)):($i&&r&&Ji(t),t.flags|=1,Mc(e,t,n,i),t.child)}function Wc(e,t,n,r,i,a){return ya(t),t.updateQueue=null,n=Qo(t,r,n,i),Zo(e),r=es(),e!==null&&!jc?(ts(e,t,a),sl(e,t,a)):($i&&r&&Ji(t),t.flags|=1,Mc(e,t,n,a),t.child)}function Gc(e,t,n,r,i){if(ya(t),t.stateNode===null){var a=wi,o=n.contextType;typeof o==`object`&&o&&(a=ba(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=_c,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},lo(t),o=n.contextType,a.context=typeof o==`object`&&o?ba(o):wi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(gc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&_c.enqueueReplaceState(a,a.state,null),vo(t,r,a,i),_o(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=bc(n,s);a.props=c;var l=a.context,u=n.contextType;o=wi,typeof u==`object`&&u&&(o=ba(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&yc(t,a,r,o),co=!1;var f=t.memoizedState;a.state=f,vo(t,r,a,i),_o(),l=t.memoizedState,s||f!==l||co?(typeof d==`function`&&(gc(t,n,d,r),l=t.memoizedState),(c=co||vc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,uo(e,t),o=t.memoizedProps,u=bc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=wi,typeof l==`object`&&l&&(c=ba(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&yc(t,a,r,c),co=!1,f=t.memoizedState,a.state=f,vo(t,r,a,i),_o();var p=t.memoizedState;o!==d||f!==p||co||e!==null&&e.dependencies!==null&&va(e.dependencies)?(typeof s==`function`&&(gc(t,n,s,r),p=t.memoizedState),(u=co||vc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&va(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Hc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=oo(t,e.child,null,i),t.child=oo(t,null,n,i)):Mc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=sl(e,t,i),e}function Kc(e,t,n,r){return sa(),t.flags|=256,Mc(e,t,n,r),t.child}var qc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Jc(e){return{baseLanes:e,cachePool:Ua()}}function Yc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=pd),e}function Xc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(No.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if($i){if(i?Oo(t):jo(),(e=Qi)?(e=fm(e,ta),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ui===null?null:{id:Wi,overflow:Gi},retryLane:536870912,hydrationErrors:null},n=Ni(e),n.return=t,t.child=n,Zi=t,Qi=null)):e=null,e===null)throw ra(t);return t.lanes=mm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(jo(),i=t.mode,a=Qc({mode:`hidden`,children:a},i),r=ji(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Jc(n),r.childLanes=Yc(e,o,n),t.memoizedState=qc,Lc(null,r)):(Oo(t),Zc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return el(e,t,a,o,r,c,s,n)}return i?(jo(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Oi(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=ji(i,a,n,null),i.flags|=2):i=Oi(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Lc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Jc(n):(a=i.cachePool,a===null?a=Ua():(s=Ea._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Yc(e,o,n),t.memoizedState=qc,Lc(e.child,r)):(Oo(t),n=e.child,e=n.sibling,n=Oi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Zc(e,t){return t=Qc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Qc(e,t){return e=Ei(22,e,null,t),e.lanes=0,e}function $c(e,t,n){return oo(t,e.child,null,n),e=Zc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function el(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(Oo(t),t.flags&=-257,$c(e,t,c)):t.memoizedState===null?(jo(),o=a.fallback,s=t.mode,a=Qc({mode:`visible`,children:a.children},s),o=ji(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,oo(t,e.child,null,c),a=t.child,a.memoizedState=Jc(c),a.childLanes=Yc(e,r,c),t.memoizedState=qc,Lc(null,a)):(jo(),t.child=e.child,t.flags|=128,null);if(Oo(t),mm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,la({value:a,source:null,stack:null})),$c(e,t,c)}if(jc||_a(e,t,c,!1),r=(c&e.childLanes)!==0,jc||r){if(xo.current!==null)return $c(e,t,c);if(r=ed,r!==null&&(a=gt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,xi(e,a),Rd(r,e,a),Ac;return pm(o)||Xd(),$c(e,t,c)}return pm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,Qi=gm(o.nextSibling),Zi=t,$i=!0,ea=null,ta=!1,e!==null&&Xi(t,e),t=Zc(t,a.children),t.flags|=134221824,t)}function tl(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ha(e.return,t,n)}function nl(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Io(n)===null&&(t=e),e=e.sibling}return t}function rl(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function il(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function al(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=No.current;if(t.flags&128)return Po(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Po(t,o),i===`backwards`&&e!==null?(il(e),Mc(e,t,r,n),il(e)):Mc(e,t,r,n),r=$i?Bi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&tl(e,n,t);else if(e.tag===19)tl(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=nl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,il(t)),rl(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Io(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}rl(t,!0,n,null,a,r);break;case`together`:rl(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=nl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),rl(t,!1,i,n,a,r)}return t.child}function ol(e,t,n){var r=t.pendingProps;return pa(t,t.type,r.value),Mc(e,t,r.children,n),t.child}function sl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ud|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(_a(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Oi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Oi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function cl(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&va(e)))}function ll(e,t,n){switch(t.tag){case 3:we(t,t.stateNode.containerInfo),pa(t,Ea,e.memoizedState.cache),sa();break;case 27:case 5:Ee(t);break;case 4:we(t,t.stateNode.containerInfo);break;case 10:pa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ko(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Oo(t),t.flags|=128,null;r=_a(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Xc(e,t,n):(Oo(t),e=sl(e,t,n),e===null?null:e.sibling)}Oo(t);break;case 19:if(t.flags&128)return al(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(_a(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return al(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Po(t,No.current),r)break;return null;case 22:return t.lanes=0,Ic(e,t,n,t.pendingProps);case 24:pa(t,Ea,e.memoizedState.cache)}return sl(e,t,n)}function ul(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)jc=!0;else{if(!cl(e,n)&&!(t.flags&128))return jc=!1,ll(e,t,n);jc=!!(e.flags&131072)}}else jc=!1,$i&&t.flags&1048576&&qi(t,Bi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Xa(t.elementType),t.type=e,typeof e==`function`)Di(e)?(r=bc(e,r),t.tag=1,t=Gc(null,t,e,r,n)):(t.tag=0,t=Uc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===te){t.tag=11,t=Nc(null,t,e,r,n);break a}if(a===I){t.tag=14,t=Pc(null,t,e,r,n);break a}if(a===P){t.tag=10,t.type=e,t=ol(null,t,n);break a}}throw t=fe(e)||e,Error(i(306,t,``))}}return t;case 0:return Uc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=bc(r,t.pendingProps),Gc(e,t,r,a,n);case 3:a:{if(we(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,uo(e,t),vo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,pa(t,Ea,r),r!==o.cache&&ga(t,[Ea],n,!0),_o(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Kc(e,t,r,n);break a}if(r!==a){a=Ii(Error(i(424)),t),la(a),t=Kc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Qi=gm(e.firstChild),Zi=t,$i=!0,ea=null,ta=!0,n=so(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(sa(),r===a){t=sl(e,t,n);break a}Mc(e,t,r,n)}t=t.child}return t;case 26:return Hc(e,t),e===null?(n=Bm(t.type,null,t.pendingProps,null))?t.memoizedState=n:$i||(t.stateNode=yp(t.type,t.pendingProps,Se.current,t)):t.memoizedState=Bm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ee(t),e===null&&$i&&(r=t.stateNode=Sm(t.type,t.pendingProps,Se.current),Zi=t,ta=!0,a=Qi,kp(t.type)?(_m=a,Qi=gm(r.firstChild)):Qi=a),Mc(e,t,t.pendingProps.children,n),Hc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&$i&&((a=r=Qi)&&(r=um(r,t.type,t.pendingProps,ta),r===null?a=!1:(t.stateNode=r,Zi=t,Qi=gm(r.firstChild),ta=!1,a=!0)),a||ra(t)),Ee(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,bp(a,o)?r=null:s!==null&&bp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Xo(e,t,$o,null,null,n),mh._currentValue=a),Hc(e,t),Mc(e,t,r,n),t.child;case 6:return e===null&&$i&&((e=n=Qi)&&(n=dm(n,t.pendingProps,ta),n===null?e=!1:(t.stateNode=n,Zi=t,Qi=null,e=!0)),e||ra(t)),null;case 13:return Xc(e,t,n);case 4:return we(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=oo(t,null,r,n):Mc(e,t,r,n),t.child;case 11:return Nc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Hc(e,t),Mc(e,t,r,n),t.child;case 8:return Mc(e,t,t.pendingProps.children,n),t.child;case 12:return Mc(e,t,t.pendingProps.children,n),t.child;case 10:return ol(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,ya(t),a=ba(a),r=r(a),t.flags|=1,Mc(e,t,r,n),t.child;case 14:return Pc(e,t,t.type,t.pendingProps,n);case 15:return Fc(e,t,t.type,t.pendingProps,n);case 19:return al(e,t,n);case 31:return Vc(e,t,n);case 22:return Ic(e,t,n,t.pendingProps);case 24:return ya(t),r=ba(Ea),e===null?(a=Va(),a===null&&(a=ed,o=Da(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},lo(t),pa(t,Ea,a)):((e.lanes&n)!==0&&(uo(e,t),vo(t,null,null,n),_o()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,pa(t,Ea,r),r!==a.cache&&ga(t,[Ea],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),pa(t,Ea,r))),Mc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:$i&&Ji(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Hc(e,t),Mc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function dl(e){e.flags|=4}function fl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?th(t,r):th(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(qd())e.flags|=8192;else throw Za=qa,Ga}}else e.flags&=-16777217}function pl(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!nh(t)){if(qd())e.flags|=8192;else throw Za=qa,Ga}}function ml(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:ut(),e.lanes|=t,md|=t)}function hl(e,t){if(!$i)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function gl(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function _l(e,t,n){var r=t.pendingProps;switch(Yi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gl(t),null;case 1:return gl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ma(Ea),Te(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(oa(t)?dl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ca())),gl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(dl(t),o===null?(gl(t),fl(t,a,null,r,n)):(gl(t),pl(t,o))):o?o===e.memoizedState?(gl(t),t.flags&=-16777217):(dl(t),gl(t),pl(t,o)):(e=e.memoizedProps,e!==r&&dl(t),gl(t),fl(t,a,e,r,n)),null;case 27:if(De(t),n=Se.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&dl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return gl(t),t.subtreeFlags&=-33554433,null}e=be.current,oa(t)?ia(t,e):(e=Sm(a,r,n),t.stateNode=e,dl(t))}return gl(t),t.subtreeFlags&=-33554433,null;case 5:if(De(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&dl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return gl(t),t.subtreeFlags&=-33554433,null}if(o=be.current,oa(t))ia(t,o);else{var s=gp(Se.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[B]=t,o[xt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(lp(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&dl(t)}}return gl(t),t.subtreeFlags&=-33554433,fl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&dl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=Se.current,oa(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Zi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[B]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||op(e.nodeValue,n)),e||ra(t,!0)}else e=gp(e).createTextNode(r),e[B]=t,t.stateNode=e}return gl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=oa(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[B]=t}else sa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gl(t),e=!1}else n=ca(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Mo(t),t):(Mo(t),null);if(t.flags&128)throw Error(i(558))}return gl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=oa(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[B]=t}else sa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gl(t),a=!1}else a=ca(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Mo(t),t):(Mo(t),null)}return Mo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ml(t,t.updateQueue),gl(t),null);case 4:return Te(),e===null&&Xf(t.stateNode.containerInfo),t.flags|=67108864,gl(t),null;case 10:return ma(t.type),gl(t),null;case 19:if(Fo(t),r=t.memoizedState,r===null)return gl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)hl(r,!1);else{if(ld!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Io(e),o!==null){for(t.flags|=128,hl(r,!1),e=o.updateQueue,t.updateQueue=e,ml(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ki(n,e),n=n.sibling;return Po(t,No.current&1|2),$i&&Ki(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Be()>bd&&(t.flags|=128,a=!0,hl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Io(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,ml(t,e),hl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!$i)return gl(t),null}else 2*Be()-r.renderingStartTime>bd&&n!==536870912&&(t.flags|=128,a=!0,hl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Be(),e.sibling=null,o=No.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||$i?Po(t,o):(n=o,ye(Eo,t),ye(No,n),Do===null&&(Do=t)),$i&&Ki(t,r.treeForkCount),e}return gl(t),null;case 22:case 23:return Mo(t),To(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(gl(t),t.subtreeFlags&6&&(t.flags|=8192)):gl(t),n=t.updateQueue,n!==null&&ml(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ve(Ba),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ma(Ea),gl(t),null;case 25:return null;case 30:return t.flags|=33554432,gl(t),null}throw Error(i(156,t.tag))}function vl(e,t){switch(Yi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ma(Ea),Te(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return De(t),null;case 31:if(t.memoizedState!==null){if(Mo(t),t.alternate===null)throw Error(i(340));sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Mo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Te(),null;case 10:return ma(t.type),null;case 22:case 23:return Mo(t),To(),e!==null&&ve(Ba),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ma(Ea),null;case 25:return null;default:return null}}function yl(e,t){switch(Yi(t),t.tag){case 3:ma(Ea),Te();break;case 26:case 27:case 5:De(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Mo(t);break;case 13:Mo(t);break;case 19:Fo(t);break;case 10:ma(t.type);break;case 22:case 23:Mo(t),To(),e!==null&&ve(Ba);break;case 24:ma(Ea)}}function bl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){vf(t,t.return,e)}}function xl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){vf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){vf(t,t.return,e)}}function Sl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{bo(t,n)}catch(t){vf(e,e.return,t)}}}function Cl(e,t,n){n.props=bc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){vf(e,t,n)}}function wl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=di(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Vp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Hp(e);p(e.child,!1,am,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){vf(e,t,n)}}function Tl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){vf(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){vf(e,t,n)}else n.current=null}}function El(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)sm(e.stateNode,t[n])}function Dl(e){for(var t=e.return;t!==null&&(Al(t)&&sm(e.stateNode,t.stateNode),!kl(t));)t=t.return}function Ol(e){for(var t=e.return;t!==null&&(Al(t)&&cm(e.stateNode,t.stateNode),!kl(t));)t=t.return}function kl(e){return e.tag===5||e.tag===3||e.tag===27}function Al(e){return e&&e.tag===7&&e.stateNode!==null}function jl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){vf(e,e.return,t)}}function Ml(e,t,n){try{var r=e.stateNode;dp(r,e.type,n,t),r[xt]=t}catch(t){vf(e,e.return,t)}}function Nl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&kp(e.type)||e.tag===4}function Pl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Nl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&kp(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=mn)),El(e,r),Ht=!0;else if(i!==4&&(i===27&&(El(e,r),r=null,kp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Fl(e,t,n,r),e=e.sibling;e!==null;)Fl(e,t,n,r),e=e.sibling}function Il(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),El(e,r),Ht=!0;else if(i!==4&&(i===27&&(El(e,r),r=null,kp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Il(e,t,n,r),e=e.sibling;e!==null;)Il(e,t,n,r),e=e.sibling}function Ll(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);lp(t,r,n),t[B]=e,t[xt]=n}catch(t){vf(e,e.return,t)}}var Rl=!1,zl=null;function K(e){(e.tag===30||e.subtreeFlags&33554432)&&(Rl=!0)}var Bl=null;function Vl(){var e=Bl;return Bl=null,e}var Hl=0;function Ul(e,t,n,r,i){return Hl=0,Wl(e.child,t,n,r,i)}function Wl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Fp(o);r.push(s),s.view&&(a=!0)}else a||Fp(o).view&&(a=!0);Rl=!0,Mp(o,Hl===0?t:t+`_`+Hl,n),Hl++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Wl(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function Gl(e,t){for(;e!==null;)e.tag===5?Np(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Gl(e.child,t)),e=e.sibling}function Kl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Kl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=pi(t.default,t.share),t!==`none`&&(Ul(e,n,t,null,!1)||Gl(e.child,!1))}e=e.sibling}}function ql(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=di(r,n),a=pi(r.default,n.paired?r.share:r.enter);a===`none`?Kl(e):Ul(e,i,a,null,!1)?(Kl(e),n.paired||t||Ld(e,r.onEnter)):Gl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)ql(e,t),e=e.sibling;else Kl(e)}function Jl(e){if(zl!==null&&zl.size!==0){var t=zl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=pi(n.default,n.share);if(a!==`none`&&(Ul(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Ld(e,n.onShare)):Gl(e.child,!1)),t.delete(r),t.size===0)break}}}Jl(e)}e=e.sibling}}}function Yl(e){if(e.tag===30){var t=e.memoizedProps,n=di(t,e.stateNode),r=zl===null?void 0:zl.get(n),i=pi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Ul(e,n,i,null,!1)?r===void 0?Ld(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,zl.delete(n),Ld(e,t.onShare)):Gl(e.child,!1)),zl!==null&&Jl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Yl(e),e=e.sibling;else zl!==null&&Jl(e)}function Xl(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=di(t,e.stateNode);t=pi(t.default,t.update),e.flags&=-5,t!==`none`&&Ul(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Xl(e);e=e.sibling}}function Zl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Gl(e.child,!1))}Zl(e)}e=e.sibling}}function Ql(e){if(e.tag===30)e.stateNode.paired=null,Gl(e.child,!1),Zl(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Ql(e),e=e.sibling;else Zl(e)}function $l(e){for(e=e.child;e!==null;)e.tag===30?Gl(e.child,!1):e.subtreeFlags&33554432&&$l(e),e=e.sibling}function eu(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Hl<a.length){var l=a[Hl],u=Fp(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Mp(c,Hl===0?n:n+`_`+Hl,i),s&&e.flags&4||(Bl===null&&(Bl=[]),Bl.push(c,Hl===0?r:r+`_`+Hl,t.memoizedProps)),Hl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:eu(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function tu(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=di(n,r),a=pi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Ip)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Hl=0,i=eu(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Ld(e,n.onUpdate))}else e.subtreeFlags&33554432&&tu(e,t);e=e.sibling}}var nu=!1,ru=!1,iu=!1,au=!1,ou=typeof WeakSet==`function`?WeakSet:Set,su=null,cu=!1,lu=!1,uu=!1,du=!1;function fu(e,t,n){if(e=e.containerInfo,mp=Ch,e=Vr(e),Hr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(hp={focusedElem:e,selectionRange:r},Ch=!1,n=(n&335544064)===n,su=t,t=n?9270:1024;su!==null;){if(e=su,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Yl(r[a]);if(e.alternate===null&&e.flags&2)n&&K(e),pu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Yl(r),pu(n);continue}if(r!==null&&r.memoizedState!==null){n&&K(e),pu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,su=r):(n&&Xl(e),pu(n))}}zl=null}function pu(e){for(;su!==null;){var t=su,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=bc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){vf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)lm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:lm(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=di(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=pi(a.default,a.update),a!==`none`&&Ul(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,su=r;break}su=t.return}}function mu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Pu(e,n),r&4&&bl(5,n);break;case 1:if(Pu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){vf(n,n.return,e)}else{var i=bc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){vf(n,n.return,e)}}}r&64&&Sl(n),r&512&&wl(n,n.return);break;case 3:if(Pu(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{bo(e,t)}catch(e){vf(n,n.return,e)}}break;case 27:t===null&&r&4&&Ll(n);case 26:case 5:Pu(e,n),t===null&&r&4&&jl(n),r&512&&wl(n,n.return);break;case 12:Pu(e,n);break;case 31:Pu(e,n),r&4&&Cu(e,n);break;case 13:Pu(e,n),r&4&&wu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Sf.bind(null,n),hm(e,n))));break;case 22:if(r=n.memoizedState!==null||nu,!r){var a=t!==null&&t.memoizedState!==null||ru;t=nu,i=ru,nu=r,(ru=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Iu(e,n,r)):Pu(e,n),nu=t,ru=i}break;case 30:Pu(e,n),r&512&&wl(n,n.return);break;case 7:r&512&&wl(n,n.return);default:Pu(e,n)}}function hu(e,t){for(e=e.child;e!==null;)gu(e,t),e=e.sibling}function gu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){vf(e,e.return,t)}_u(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,Ht=!0}catch(t){vf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?jp(s,!0):jp(e.stateNode,!1)}catch(t){vf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&hu(e,t);break;default:hu(e,t)}}function _u(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:gu(n,r);break a;case 22:n.memoizedState===null&&_u(n,r);break a;default:_u(n,r)}}e=e.sibling}}function vu(e){var t=e.alternate;t!==null&&(e.alternate=null,vu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&kt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var yu=null,bu=!1;function xu(e,t,n){for(n=n.child;n!==null;)Su(e,t,n),n=n.sibling}function Su(e,t,n){if(Xe&&typeof Xe.onCommitFiberUnmount==`function`)try{Xe.onCommitFiberUnmount(Ye,n)}catch{}switch(n.tag){case 26:ru||Tl(n,t),xu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!ru&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ru||Tl(n,t),Ol(n);var r=yu,i=bu;kp(n.type)&&(yu=n.stateNode,bu=!1),xu(e,t,n),Cm(n.stateNode,n.type,n.memoizedProps),yu=r,bu=i;break;case 5:ru||Tl(n,t),Ol(n);case 6:if(n.tag===6&&Ol(n),r=yu,i=bu,yu=null,xu(e,t,n),yu=r,bu=i,yu!==null){if(bu)try{(yu.nodeType===9?yu.body:yu.nodeName===`HTML`?yu.ownerDocument.body:yu).removeChild(n.stateNode),Ht=!0}catch(e){vf(n,t,e)}else try{yu.removeChild(n.stateNode),Ht=!0}catch(e){vf(n,t,e)}}break;case 18:yu!==null&&(bu?(e=yu,Ap(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Yh(e)):Ap(yu,n.stateNode));break;case 4:r=yu,i=bu,yu=n.stateNode.containerInfo,bu=!0,xu(e,t,n),yu=r,bu=i;break;case 0:case 11:case 14:case 15:xl(2,n,t),ru||xl(4,n,t),xu(e,t,n);break;case 1:ru||(Tl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Cl(n,t,r)),xu(e,t,n);break;case 21:xu(e,t,n);break;case 22:ru=(r=ru)||n.memoizedState!==null,xu(e,t,n),ru=r;break;case 30:Tl(n,t),xu(e,t,n);break;case 7:ru||Tl(n,t),xu(e,t,n);break;default:xu(e,t,n)}}function Cu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Yh(e)}catch(e){vf(t,t.return,e)}}}function wu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Yh(e)}catch(e){vf(t,t.return,e)}}function Tu(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ou),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ou),t;default:throw Error(i(435,e.tag))}}function Eu(e,t){var n=Tu(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Cf.bind(null,e,t);t.then(r,r)}})}function Du(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(kp(l.type)){yu=l.stateNode,bu=!1;break a}break;case 5:yu=l.stateNode,bu=!1;break a;case 3:case 4:yu=l.stateNode.containerInfo,bu=!0;break a}l=l.return}if(yu===null)throw Error(i(160));Su(s,c,o),yu=null,bu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ku(t,e,n),t=t.sibling}var Ou=null;function ku(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}Du(t,e,n),Au(e),a&4&&(xl(3,e,e.return),bl(3,e),xl(5,e,e.return));break;case 1:Du(t,e,n),Au(e),a&512&&(ru||r===null||Tl(r,r.return)),a&64&&nu&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Ou,Du(t,e,n),Au(e),a&512&&(ru||r===null||Tl(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(nu)e.stateNode=yp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[Dt]||r[B]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),lp(r,t,n),r[B]=e,Pt(r),t=r;break a;case`link`:if(o=Qm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),lp(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Qm(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),lp(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[B]=e,Pt(r),t=r}e.stateNode=t}}else nu||$m(o,e.type,e.stateNode)}else e.stateNode=qm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Ml(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||ru||t.parentNode.removeChild(t)):a.count--,n===null?nu||$m(o,e.type,e.stateNode):qm(o,n,e.memoizedProps))}break;case 27:Du(t,e,n),Au(e),a&512&&(ru||r===null||Tl(r,r.return)),r!==null&&a&4&&Ml(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=iu,iu=!1,Du(t,e,n),iu=o,Au(e),a&512&&(ru||r===null||Tl(r,r.return)),e.flags&32){t=e.stateNode;try{on(t,``),Ht=!0}catch(t){vf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Ml(e,t,r===null?t:r.memoizedProps)),a&1024&&(au=!0);break;case 6:if(Du(t,e,n),Au(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Ht=!0}catch(t){vf(e,e.return,t)}}break;case 3:if(Ht=!1,Zm=null,o=Ou,Ou=Dm(t.containerInfo),Du(t,e,n),Ou=o,Au(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Yh(t.containerInfo)}catch(t){vf(e,e.return,t)}au&&(au=!1,ju(e)),Ht=!1;break;case 4:a=iu,iu=nu,r=Ut(),o=Ou,Ou=Dm(e.stateNode.containerInfo),Du(t,e,n),Au(e),Ou=o,Ht&&lu&&(uu=!0),Ht=r,iu=a;break;case 12:Du(t,e,n),Au(e);break;case 31:Du(t,e,n),Au(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Eu(e,t)));break;case 13:Du(t,e,n),Au(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(vd=Be()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Eu(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=nu,l=ru,u=iu;nu=c||o,iu=u||o,ru=l||s,Du(t,e,n),ru=l,iu=u,nu=c,Au(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||nu||ru||(t=s||ru,n=nu,r=ru,nu=o||nu,ru=t,Fu(e,2),nu=n,ru=r),!o&&iu||hu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Eu(e,n))));break;case 19:Du(t,e,n),Au(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Eu(e,t)));break;case 30:a&512&&(ru||r===null||Tl(r,r.return)),a=Ut(),o=lu,s=(n&335544064)===n,c=e.memoizedProps,lu=s&&pi(c.default,c.update)!==`none`,Du(t,e,n),Au(e),s&&r!==null&&Ht&&(e.flags|=4),lu=o,Ht=a;break;case 21:break;case 7:a&512&&(ru||r===null||Tl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Du(t,e,n),Au(e)}}function Au(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Nl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(Al(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(kl(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Il(e,Pl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(on(l,``),n.flags&=-33),Il(e,Pl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Fl(e,Pl(e),u,s);break;default:throw Error(i(161))}}catch(t){vf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ju(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ju(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Ch=!0,t.reset(),Ch=!1),e=e.sibling}}function Mu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Nu(t,e),t=t.sibling;else tu(t,!1)}function Nu(e,t){var n=e.alternate;if(n===null)ql(e,!1);else switch(e.tag){case 3:if(du=cu=!1,Vl(),Mu(t,e),!cu&&!uu){if(e=Bl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Np(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),du=!0}Bl=null;break;case 5:Mu(t,e);break;case 4:r=cu,cu=!1,Mu(t,e),cu&&(uu=!0),cu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Mu(t,e):ql(e,!1));break;case 30:r=cu,i=Vl(),cu=!1,Mu(t,e),cu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=di(a,o),o=di(n.memoizedProps,o);var s=pi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Hl=0,t=eu(e,n,t,o,s,a,!0),Hl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Ld(e,e.memoizedProps.onUpdate),Bl=i):i!==null&&(i.push.apply(i,Bl),Bl=i),cu=e.flags&32?!0:r;break;default:Mu(t,e)}}function Pu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)mu(e,t.alternate,t),t=t.sibling}function Fu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:xl(4,n,n.return),Fu(n,r);break;case 1:Tl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&Cl(n,n.return,i),Fu(n,r);break;case 27:r&2&&Cm(n.stateNode,n.type,n.memoizedProps);case 5:Tl(n,n.return),n.tag!==5&&n.tag!==27||Ol(n),Fu(n,r);break;case 6:Ol(n);break;case 26:Tl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||ru||i.parentNode.removeChild(i),Fu(n,r);break;case 22:n.memoizedState===null&&Fu(n,r);break;case 30:Tl(n,n.return),Fu(n,r);break;case 7:Tl(n,n.return);default:Fu(n,r)}e=e.sibling}}function Iu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Iu(i,a,n),bl(4,a);break;case 1:if(Iu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){vf(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)yo(l[i],c)}catch(e){vf(r,r.return,e)}}s&&o&64&&Sl(a),wl(a,a.return);break;case 27:n&2&&Ll(a);case 5:a.tag!==5&&a.tag!==27||Dl(a),Iu(i,a,n),s&&r===null&&o&4&&jl(a),wl(a,a.return);break;case 6:Dl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||nu||$m(Dm(c.ownerDocument),a.type,c),Iu(i,a,n),s&&r===null&&o&4&&jl(a),wl(a,a.return);break;case 12:Iu(i,a,n);break;case 31:Iu(i,a,n),s&&o&4&&Cu(i,a);break;case 13:Iu(i,a,n),s&&o&4&&wu(i,a);break;case 22:a.memoizedState===null&&Iu(i,a,n),wl(a,a.return);break;case 30:Iu(i,a,n),wl(a,a.return);break;case 7:wl(a,a.return);default:Iu(i,a,n)}t=t.sibling}}function Lu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Oa(n))}function Ru(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Oa(e))}function zu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Bu(e,t,n,r),t=t.sibling;else i&&$l(t)}function Bu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Ql(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:zu(e,t,n,r),a&2048&&bl(9,t);break;case 1:zu(e,t,n,r);break;case 3:zu(e,t,n,r),i&&du&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Oa(a)));break;case 12:if(a&2048){zu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){vf(t,t.return,e)}}else zu(e,t,n,r);break;case 31:zu(e,t,n,r);break;case 13:zu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&Ql(t),o._visibility&2?zu(e,t,n,r):(o._visibility|=2,Vu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&Ql(s),o._visibility&2?zu(e,t,n,r):Hu(e,t)),a&2048&&Lu(s,t);break;case 24:zu(e,t,n,r),a&2048&&Ru(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Gl(a.child,!0),Gl(t.child,!0))),zu(e,t,n,r);break;default:zu(e,t,n,r)}}function Vu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Vu(a,o,s,c,i),bl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Vu(a,o,s,c,i)):u._visibility&2?Vu(a,o,s,c,i):Hu(a,o),i&&l&2048&&Lu(o.alternate,o);break;case 24:Vu(a,o,s,c,i),i&&l&2048&&Ru(o.alternate,o);break;default:Vu(a,o,s,c,i)}t=t.sibling}}function Hu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Hu(n,r),i&2048&&Lu(r.alternate,r);break;case 24:Hu(n,r),i&2048&&Ru(r.alternate,r);break;default:Hu(n,r)}t=t.sibling}}var Uu=8192;function Wu(e,t,n){if(e.subtreeFlags&Uu)for(e=e.child;e!==null;)Gu(e,t,n),e=e.sibling}function Gu(e,t,n){switch(e.tag){case 26:Wu(e,t,n),e.flags&Uu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&ih(n,e)):ah(n,Ou,e.memoizedState,e.memoizedProps));break;case 5:Wu(e,t,n),e.flags&Uu&&(e=e.stateNode,(t&335544128)===t&&ih(n,e));break;case 3:case 4:var r=Ou;Ou=Dm(e.stateNode.containerInfo),Wu(e,t,n),Ou=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Uu,Uu=16777216,Wu(e,t,n),Uu=r):Wu(e,t,n));break;case 30:if((e.flags&Uu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,zl===null&&(zl=new Map),zl.set(r,i)}Wu(e,t,n);break;default:Wu(e,t,n)}}function Ku(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function qu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];su=r,Xu(r,e)}Ku(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ju(e),e=e.sibling}function Ju(e){switch(e.tag){case 0:case 11:case 15:qu(e),e.flags&2048&&xl(9,e,e.return);break;case 3:qu(e);break;case 12:qu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Yu(e)):qu(e);break;default:qu(e)}}function Yu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];su=r,Xu(r,e)}Ku(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:xl(8,t,t.return),Yu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Yu(t));break;default:Yu(t)}e=e.sibling}}function Xu(e,t){for(;su!==null;){var n=su;switch(n.tag){case 0:case 11:case 15:xl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Oa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,su=r;else a:for(n=e;su!==null;){r=su;var i=r.sibling,a=r.return;if(vu(r),r===n){su=null;break a}if(i!==null){i.return=a,su=i;break a}su=a}}}var Zu={getCacheForType:function(e){var t=ba(Ea),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ba(Ea).controller.signal}},Qu=typeof WeakMap==`function`?WeakMap:Map,$u=0,ed=null,td=null,nd=0,rd=0,id=null,ad=!1,od=!1,sd=!1,cd=0,ld=0,ud=0,dd=0,fd=0,pd=0,md=0,hd=null,gd=null,_d=!1,vd=0,yd=0,bd=1/0,xd=null,Sd=null,Cd=0,wd=null,Td=null,Ed=0,Dd=0,Od=null,kd=null,Ad=null,jd=null,Md=null,Nd=0,Pd=null;function Fd(){return $u&2&&nd!==0?nd&-nd:L.T===null?vt():zf()}function Id(){if(pd===0){if(!(nd&536870912)||$i){var e=rt;rt<<=1,!(rt&3932160)&&(rt=262144),pd=e}else pd=536870912}return e=Eo.current,e!==null&&(e.flags|=32),pd}function Ld(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Vp(di(e.memoizedProps,n))),jd===null&&(jd=[]),jd.push(t.bind(null,r))}}function Rd(e,t,n){(e===ed&&(rd===2||rd===9)||e.cancelPendingCommit!==null)&&(Gd(e,0),Hd(e,nd,pd,!1)),ft(e,n),(!($u&2)||e!==ed)&&(e===ed&&(!($u&2)&&(dd|=n),ld===4&&Hd(e,nd,pd,!1)),jf(e))}function zd(e,t,n){if($u&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||st(e,t),a=r?$d(e,t):Zd(e,t,!0),o=r;do{if(a===0){od&&!r&&Hd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Vd(n)){a=Zd(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=hd;var l=c.current.memoizedState.isDehydrated;if(l&&(Gd(c,s).flags|=256),s=Zd(c,s,!1),s!==2&&s!==6){if(sd&&!l){c.errorRecoveryDisabledLanes|=o,dd|=o,a=4;break a}o=gd,gd=a,o!==null&&(gd===null?gd=o:gd.push.apply(gd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Gd(e,0),Hd(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Hd(r,t,pd,!ad);break a;case 2:gd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=vd+300-Be(),10<a)){if(Hd(r,t,pd,!ad),ot(r,0,!0)!==0)break a;Ed=t,r.timeoutHandle=Cp(Bd.bind(null,r,n,gd,xd,_d,t,pd,dd,md,ad,o,`Throttled`,-0,0),a);break a}Bd(r,n,gd,xd,_d,t,pd,dd,md,ad,o,null,-0,0)}break}while(1);jf(e)}function Bd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;if(d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:mn},zl=null,Gu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=lh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?vd-Be():(a&4194048)===a?yd-Be():0,m=sh(d,m),m!==null)){Ed=a,e.cancelPendingCommit=m(sf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Hd(e,a,o,!l);return}sf(e,t,a,n,r,i,o,s,c,l,u,d)}function Vd(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Fr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Hd(e,t,n,r){t=ct(e,t),t&=~fd,t&=~dd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Qe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&mt(e,n,t)}function Ud(){return $u&6?!0:(Mf(0,!1),!1)}function Wd(){if(td!==null){if(rd===0)var e=td.return;else e=td,fa=da=null,ns(e),eo=null,to=0,e=td;for(;e!==null;)yl(e.alternate,e),e=e.return;td=null}}function Gd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,wp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ed=0,Wd(),ed=e,td=n=Oi(e.current,null),nd=t,rd=0,id=null,ad=!1,od=st(e,t),sd=!1,md=pd=fd=dd=ud=ld=0,gd=hd=null,_d=!1,cd=ct(e,t),vi(),n}function Kd(e,t){Ro=null,L.H=fc,t===Wa||t===Ka?(t=Qa(),rd=3):t===Ga?(t=Qa(),rd=4):rd=t===Ac?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,id=t,td===null&&(ld=1,wc(e,Ii(t,e.current)))}function qd(){var e=Eo.current;return e===null?!0:(nd&4194048)===nd?Do===null:(nd&62914560)===nd||nd&536870912?e===Do:!1}function Jd(){var e=L.H;return L.H=fc,e===null?fc:e}function Yd(){var e=L.A;return L.A=Zu,e}function Xd(){ld=4,ad||(nd&4194048)!==nd&&Eo.current!==null||(od=!0),!(ud&134217727)&&!(dd&134217727)||ed===null||Hd(ed,nd,pd,!1)}function Zd(e,t,n){var r=$u;$u|=2;var i=Jd(),a=Yd();(ed!==e||nd!==t)&&(xd=null,Gd(e,t)),t=!1;var o=ld;a:do try{if(rd!==0&&td!==null){var s=td,c=id;switch(rd){case 8:Wd(),o=6;break a;case 3:case 2:case 9:case 6:Eo.current===null&&(t=!0);var l=rd;if(rd=0,id=null,rf(e,s,c,l),n&&od){o=0;break a}break;default:l=rd,rd=0,id=null,rf(e,s,c,l)}}Qd(),o=ld;break}catch(t){Kd(e,t)}while(1);return t&&e.shellSuspendCounter++,fa=da=null,$u=r,L.H=i,L.A=a,td===null&&(ed=null,nd=0,vi()),o}function Qd(){for(;td!==null;)tf(td)}function $d(e,t){var n=$u;$u|=2;var r=Jd(),a=Yd();ed!==e||nd!==t?(xd=null,bd=Be()+500,Gd(e,t)):od=st(e,t);a:do try{if(rd!==0&&td!==null){t=td;var o=id;b:switch(rd){case 1:rd=0,id=null,rf(e,t,o,1);break;case 2:case 9:if(Ja(o)){rd=0,id=null,nf(t);break}t=function(){rd!==2&&rd!==9||ed!==e||(rd=7),jf(e)},o.then(t,t);break a;case 3:rd=7;break a;case 4:rd=5;break a;case 7:Ja(o)?(rd=0,id=null,nf(t)):(rd=0,id=null,rf(e,t,o,7));break;case 5:var s=null;switch(td.tag){case 26:s=td.memoizedState;case 5:case 27:var c=td;if(s?nh(s):c.stateNode.complete){rd=0,id=null;var l=c.sibling;if(l!==null)td=l;else{var u=c.return;u===null?td=null:(td=u,af(u))}break b}}rd=0,id=null,rf(e,t,o,5);break;case 6:rd=0,id=null,rf(e,t,o,6);break;case 8:Wd(),ld=6;break a;default:throw Error(i(462))}}ef();break}catch(t){Kd(e,t)}while(1);return fa=da=null,L.H=r,L.A=a,$u=n,td===null?(ed=null,nd=0,vi(),ld):0}function ef(){for(;td!==null&&!Re();)tf(td)}function tf(e){var t=ul(e.alternate,e,cd);e.memoizedProps=e.pendingProps,t===null?af(e):td=t}function nf(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Wc(n,t,t.pendingProps,t.type,void 0,nd);break;case 11:t=Wc(n,t,t.pendingProps,t.type.render,t.ref,nd);break;case 5:ns(t);var r=t;r===Zi&&($i?(aa(r),r.tag===5&&r.stateNode!=null&&(Qi=r.stateNode)):(aa(r),$i=!0));default:yl(n,t),t=td=ki(t,cd),t=ul(n,t,cd)}e.memoizedProps=e.pendingProps,t===null?af(e):td=t}function rf(e,t,n,r){fa=da=null,ns(t),eo=null,to=0;var i=t.return;try{if(kc(e,i,t,n,nd)){ld=1,wc(e,Ii(n,e.current)),td=null;return}}catch(t){if(i!==null)throw td=i,t;ld=1,wc(e,Ii(n,e.current)),td=null;return}t.flags&32768?($i||r===1?e=!0:od||nd&536870912?e=!1:(ad=e=!0,(r===2||r===9||r===3||r===6)&&(r=Eo.current,r!==null&&r.tag===13&&(r.flags|=16384))),of(t,e)):af(t)}function af(e){var t=e;do{if(t.flags&32768){of(t,ad);return}e=t.return;var n=_l(t.alternate,t,cd);if(n!==null){td=n;return}if(t=t.sibling,t!==null){td=t;return}td=t=e}while(t!==null);ld===0&&(ld=5)}function of(e,t){do{var n=vl(e.alternate,e);if(n!==null){n.flags&=32767,td=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){td=e;return}td=e=n}while(e!==null);ld=6,td=null}function sf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do hf();while(Cd!==0);if($u&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===ed&&(td=ed=null,nd=0),Td=t,wd=e,Ed=n,Od=a,kd=r,cf(e,t,n,s,c,l,f)}}function cf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Dd=s,s|=_i,pt(e,n,s,r,i,a),jd=null,(n&335544064)===n?(Md=ja(e),r=10262):(Md=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,wf(We,function(){return gf(),null})):(e.callbackNode=null,e.callbackPriority=0),Rl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=L.T,L.T=null,i=R.p,R.p=2,a=$u,$u|=4;try{fu(e,t,n)}finally{$u=a,R.p=i,L.T=r}}Cd=1,Rl?Ad=zp(o,e.containerInfo,Md,df,ff,uf,pf,gf,lf,null,null):(df(),ff(),pf())}function lf(e){if(Cd!==0){var t=wd.onRecoverableError;t(e,{componentStack:null})}}function uf(){Cd===3&&(Cd=0,Nu(Td,wd),Cd=4)}function df(){if(Cd===1){Cd=0;var e=wd,t=Td,n=Ed,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=L.T,L.T=null;var i=R.p;R.p=2;var a=$u;$u|=4;try{lu=uu=!1,ku(t,e,n),n=hp;var o=Vr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Br(s.ownerDocument.documentElement,s)){if(c!==null&&Hr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=zr(s,h),v=zr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}Ch=!!mp,hp=mp=null}finally{$u=a,R.p=i,L.T=r}}e.current=t,Cd=2}}function ff(){if(Cd===2){Cd=0;var e=wd,t=Td,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=L.T,L.T=null;var r=R.p;R.p=2;var i=$u;$u|=4;try{mu(e,t.alternate,t)}finally{$u=i,R.p=r,L.T=n}}Cd=3}}function pf(){if(Cd===4||Cd===3){Cd=0;var e=Ad;Ad=null,ze();var t=wd,n=Td,r=Ed,i=kd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?Cd=5:(Cd=0,Td=wd=null,mf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(Sd=null),z(r),n=n.stateNode,Xe&&typeof Xe.onCommitFiberRoot==`function`)try{Xe.onCommitFiberRoot(Ye,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=L.T,a=R.p,R.p=2,L.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{L.T=n,R.p=a}}if(i=jd,o=Md,Md=null,i!==null&&(jd=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Ed&3&&hf(),jf(t),a=t.pendingLanes,r&261930&&a&42?t===Pd?Nd++:(Nd=0,Pd=t):(Nd=0,Pd=null),Mf(0,!1)}}function mf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Oa(t)))}function hf(){return Ad!==null&&(Ad.skipTransition(),Ad=null),df(),ff(),pf(),gf()}function gf(){if(Cd!==5)return!1;var e=wd,t=Dd;Dd=0;var n=z(Ed),r=L.T,a=R.p;try{R.p=32>n?32:n,L.T=null,n=Od,Od=null;var o=wd,s=Ed;if(Cd=0,Td=wd=null,Ed=0,$u&6)throw Error(i(331));var c=$u;if($u|=4,Ju(o.current),Bu(o,o.current,s,n),$u=c,Mf(0,!1),Xe&&typeof Xe.onPostCommitFiberRoot==`function`)try{Xe.onPostCommitFiberRoot(Ye,o)}catch{}return!0}finally{R.p=a,L.T=r,mf(e,t)}}function _f(e,t,n){t=Ii(n,t),t=Ec(e.stateNode,t,2),e=po(e,t,2),e!==null&&(ft(e,2),jf(e))}function vf(e,t,n){if(e.tag===3)_f(e,e,n);else for(;t!==null;){if(t.tag===3){_f(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Sd===null||!Sd.has(r))){e=Ii(n,e),n=Dc(2),r=po(t,n,2),r!==null&&(Oc(n,r,t,e),ft(r,2),jf(r));break}}t=t.return}}function yf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Qu;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(sd=!0,i.add(n),e=bf.bind(null,e,t,n),t.then(e,e))}function bf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ed===e&&(nd&n)===n&&(ld===4||ld===3&&(nd&62914560)===nd&&300>Be()-vd?$u&2?fd|=n:Gd(e,0):fd|=n,md===nd&&(md=0)),jf(e)}function xf(e,t){t===0&&(t=ut()),e=xi(e,t),e!==null&&(ft(e,t),jf(e))}function Sf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xf(e,n)}function Cf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),xf(e,n)}function wf(e,t){return Ie(e,t)}var Tf=null,Ef=null,Df=!1,Of=!1,kf=!1,Af=0;function jf(e){e!==Ef&&e.next===null&&(Ef===null?Tf=Ef=e:Ef=Ef.next=e),Of=!0,Df||(Df=!0,Rf())}function Mf(e,t){if(!kf&&Of){kf=!0;do for(var n=!1,r=Tf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Qe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Lf(r,a))}else a=nd,a=ot(r,r===ed?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||st(r,a)||(n=!0,Lf(r,a))}r=r.next}while(n);kf=!1}}function Nf(){Pf()}function Pf(){Of=Df=!1;var e=0;Af!==0&&Sp()&&(e=Af);for(var t=Be(),n=null,r=Tf;r!==null;){var i=r.next,a=Ff(r,t);a===0?(r.next=null,n===null?Tf=i:n.next=i,i===null&&(Ef=n)):(n=r,(e!==0||a&3)&&(Of=!0)),r=i}Cd!==0&&Cd!==5||Mf(e,!1),Af!==0&&(Af=0)}function Ff(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Qe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=lt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=ed,n=nd,n=ot(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(rd===2||rd===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Le(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||st(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Le(r),z(n)){case 2:case 8:n=Ue;break;case 32:n=We;break;case 268435456:n=Ke;break;default:n=We}return r=If.bind(null,e),n=Ie(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Le(r),e.callbackPriority=2,e.callbackNode=null,2}function If(e,t){if(Cd!==0&&Cd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(hf()&&e.callbackNode!==n)return null;var r=nd;return r=ot(e,e===ed?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(zd(e,r,t),Ff(e,Be()),e.callbackNode!=null&&e.callbackNode===n?If.bind(null,e):null)}function Lf(e,t){if(hf())return null;zd(e,t,!0)}function Rf(){Dp(function(){$u&6?Ie(He,Nf):Pf()})}function zf(){if(Af===0){var e=Pa;e===0&&(e=nt,nt<<=1,!(nt&261888)&&(nt=256)),Af=e}return Af}function Bf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:pn(e)}function Vf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Bf((i[xt]||null).action),o=r.submitter;o&&(t=(t=o[xt]||null)?Bf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Fn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Af!==0){var e=new FormData(i,o);Qs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),Qs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Hf=0;Hf<ci.length;Hf++){var Uf=ci[Hf];li(Uf.toLowerCase(),`on`+(Uf[0].toUpperCase()+Uf.slice(1)))}li(ei,`onAnimationEnd`),li(ti,`onAnimationIteration`),li(ni,`onAnimationStart`),li(`dblclick`,`onDoubleClick`),li(`focusin`,`onFocus`),li(`focusout`,`onBlur`),li(ri,`onTransitionRun`),li(ii,`onTransitionStart`),li(ai,`onTransitionCancel`),li(oi,`onTransitionEnd`),V(`onMouseEnter`,[`mouseout`,`mouseover`]),V(`onMouseLeave`,[`mouseout`,`mouseover`]),V(`onPointerEnter`,[`pointerout`,`pointerover`]),V(`onPointerLeave`,[`pointerout`,`pointerover`]),Rt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Rt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Rt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Rt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Rt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Rt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Wf=`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(` `),Gf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Wf));function Kf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){mi(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){mi(e)}i.currentTarget=null,a=c}}}}function qf(e,t){var n=t[Ct];n===void 0&&(n=t[Ct]=new Set);var r=e+`__bubble`;n.has(r)||(Zf(t,e,2,!1),n.add(r))}function Jf(e,t,n){var r=0;t&&(r|=4),Zf(n,e,r,t)}var Yf=`_reactListening`+Math.random().toString(36).slice(2);function Xf(e){if(!e[Yf]){e[Yf]=!0,It.forEach(function(t){t!==`selectionchange`&&(Gf.has(t)||Jf(t,!1,e),Jf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yf]||(t[Yf]=!0,Jf(`selectionchange`,!1,t))}}function Zf(e,t,n,r){switch(Ah(t)){case 2:var i=wh;break;case 8:i=Th;break;default:i=Eh}n=i.bind(null,t,n,e),i=void 0,!wn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Qf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=At(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}xn(function(){var r=a,i=gn(n),s=[];a:{var c=si.get(e);if(c!==void 0){var l=Fn,u=e;switch(e){case`keypress`:if(An(n)===0)break a;case`keydown`:case`keyup`:l=Zn;break;case`focusin`:u=`focus`,l=Un;break;case`focusout`:u=`blur`,l=Un;break;case`beforeblur`:case`afterblur`:l=Un;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Hn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=W;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=er;break;case ei:case ti:case ni:l=G;break;case oi:l=tr;break;case`scroll`:case`scrollend`:l=Ln;break;case`wheel`:l=nr;break;case`copy`:case`cut`:case`paste`:l=Wn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Qn;break;case`submit`:l=$n;break;case`toggle`:case`beforetoggle`:l=rr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=Sn(m,p),g!=null&&d.push($f(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==hn&&(u=n.relatedTarget||n.fromElement)&&(At(u)||u[St]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?At(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Hn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Qn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Mt(c),h=l==null?u:Mt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,At(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?E(c,l,tp):null,c!==null&&np(s,u,c,d,!1),l!==null&&f!==null&&np(s,f,l,d,!0)))}a:{if(c=r?Mt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Cr;else if(_r(c)){if(wr)_=Nr;else{_=jr;var v=Ar}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&un(r.elementType)&&(_=Cr):_=Mr;if(_&&=_(e,r)){vr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Mt(r):window,e){case`focusin`:(_r(v)||v.contentEditable===`true`)&&(Wr=v,Gr=r,Kr=null);break;case`focusout`:Kr=Gr=Wr=null;break;case`mousedown`:qr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:qr=!1,Jr(s,n,i);break;case`selectionchange`:if(Ur)break;case`keydown`:case`keyup`:Jr(s,n,i)}var y;if(ar)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else pr?dr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(cr&&n.locale!==`ko`&&(pr||b!==`onCompositionStart`?b===`onCompositionEnd`&&pr&&(y=kn()):(En=i,Dn=`value`in En?En.value:En.textContent,pr=!0)),v=ep(r,b),0<v.length&&(b=new Gn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=fr(n),y!==null&&(b.data=y)))),(y=sr?mr(e,n):hr(e,n))&&(b=ep(r,`onBeforeInput`),0<b.length&&(v=new Gn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Vf(s,e,r,n,i)}Kf(s,t)})}function $f(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ep(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Sn(e,n),i!=null&&r.unshift($f(e,i,a)),i=Sn(e,t),i!=null&&r.push($f(e,i,a))),e.tag===3)return r;e=e.return}return[]}function tp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function np(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=Sn(n,a),l!=null&&o.unshift($f(n,l,c))):i||(l=Sn(n,a),l!=null&&o.push($f(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var rp=/\r\n?/g,ip=/\u0000|\uFFFD/g;function ap(e){return(typeof e==`string`?e:``+e).replace(rp,`
8
+ `+e.stack}}var Fe=Object.prototype.hasOwnProperty,Ie=t.unstable_scheduleCallback,Le=t.unstable_cancelCallback,Re=t.unstable_shouldYield,ze=t.unstable_requestPaint,Be=t.unstable_now,Ve=t.unstable_getCurrentPriorityLevel,He=t.unstable_ImmediatePriority,Ue=t.unstable_UserBlockingPriority,We=t.unstable_NormalPriority,Ge=t.unstable_LowPriority,Ke=t.unstable_IdlePriority,qe=t.log,Je=t.unstable_setDisableYieldValue,Ye=null,Xe=null;function Ze(e){if(typeof qe==`function`&&Je(e),Xe&&typeof Xe.setStrictMode==`function`)try{Xe.setStrictMode(Ye,e)}catch{}}var Qe=Math.clz32?Math.clz32:tt,$e=Math.log,et=Math.LN2;function tt(e){return e>>>=0,e===0?32:31-($e(e)/et|0)|0}var nt=256,rt=262144,it=4194304;function at(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ot(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=at(n))):i=at(o):i=at(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=at(n))):i=at(o)):i=at(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function st(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ct(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Qe(n),i=1<<r;t|=e[r],n&=~i}return t}function lt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ut(){var e=it;return it<<=1,!(it&62914560)&&(it=4194304),e}function dt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ft(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function pt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Qe(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&mt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function mt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Qe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ht(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Qe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function gt(e,t){var n=t&-t;return n=n&42?1:_t(n),(n&(e.suspendedLanes|t))===0?n:0}function _t(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function z(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function vt(){var e=R.p;return e===0?(e=window.event,e===void 0?32:Ah(e.type)):e}function yt(e,t){var n=R.p;try{return R.p=e,t()}finally{R.p=n}}var bt=Math.random().toString(36).slice(2),B=`__reactFiber$`+bt,xt=`__reactProps$`+bt,St=`__reactContainer$`+bt,Ct=`__reactEvents$`+bt,wt=`__reactListeners$`+bt,Tt=`__reactHandles$`+bt,Et=`__reactResources$`+bt,Dt=`__reactMarker$`+bt,Ot=`__reactLoad$`+bt;function kt(e){delete e[B],delete e[xt],delete e[wt],delete e[Tt]}function At(e){var t;if(t=e[B])return t;for(var n=e.parentNode;n;){if(t=n[St]||n[B]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ym(e);e!==null;){if(n=e[B])return n;e=ym(e)}return t}e=n,n=e.parentNode}return null}function jt(e){if(e=e[B]||e[St]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Mt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Nt(e){var t=e[Et];return t||=e[Et]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Pt(e){e[Dt]=!0}function Ft(e){e[Ot]=void 0}var It=new Set,Lt={};function Rt(e,t){V(e,t),V(e+`Capture`,t)}function V(e,t){for(Lt[e]=t,e=0;e<t.length;e++)It.add(t[e])}var H=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]*$`),zt={},Bt={};function Vt(e){return Fe.call(Bt,e)?!0:Fe.call(zt,e)?!1:H.test(e)?Bt[e]=!0:(zt[e]=!0,!1)}var Ht=!1;function Ut(){var e=Ht;return Ht=!1,e}function Wt(e,t,n){if(Vt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function Gt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function Kt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function qt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Jt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Yt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function U(e){if(!e._valueTracker){var t=Jt(e)?`checked`:`value`;e._valueTracker=Yt(e,t,``+e[t])}}function Xt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Jt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var Zt=/[\n"\\]/g;function Qt(e){return e.replace(Zt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function $t(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+qt(t)):e.value!==``+qt(t)&&(e.value=``+qt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):tn(e,qt(n)):o===`number`&&e.value==t?tn(e,qt(e.value)):tn(e,qt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+qt(s):e.removeAttribute(`name`)}function en(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){U(e);return}n=n==null?``:``+qt(n),t=t==null?n:``+qt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),U(e)}function tn(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function nn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+qt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function rn(e,t,n){if(t!=null&&(t=``+qt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+qt(n)}function an(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(pe(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=qt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),U(e)}function on(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var sn=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 cn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||sn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function ln(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,Ht=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(cn(e,a,r),Ht=!0)}else for(var o in t)t.hasOwnProperty(o)&&cn(e,o,t[o])}function un(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var dn=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`]]),fn=/^[\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 pn(e){return fn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function mn(){}var hn=null;function gn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _n=null,vn=null;function yn(e){var t=jt(e);if(t&&(e=t.stateNode)){var n=e[xt]||null;a:switch(e=t.stateNode,t.type){case`input`:if($t(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Qt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[xt]||null;if(!a)throw Error(i(90));$t(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Xt(r)}break a;case`textarea`:rn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&nn(e,!!n.multiple,t,!1)}}}var bn=!1;function xn(e,t,n){if(bn)return e(t,n);bn=!0;try{return e(t)}finally{if(bn=!1,(_n!==null||vn!==null)&&(Ud(),_n&&(t=_n,e=vn,vn=_n=null,yn(t),e)))for(t=0;t<e.length;t++)yn(e[t])}}function Sn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[xt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var Cn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,wn=!1;if(Cn)try{var Tn={};Object.defineProperty(Tn,"passive",{get:function(){wn=!0}}),window.addEventListener(`test`,Tn,Tn),window.removeEventListener(`test`,Tn,Tn)}catch{wn=!1}var En=null,Dn=null,On=null;function kn(){if(On)return On;var e,t=Dn,n=t.length,r,i=`value`in En?En.value:En.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return On=i.slice(e,1<r?1-r:void 0)}function An(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function jn(){return!0}function Mn(){return!1}function Nn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?jn:Mn,this.isPropagationStopped=Mn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=jn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=jn)},persist:function(){},isPersistent:jn}),t}var Pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fn=Nn(Pn),In=D({},Pn,{view:0,detail:0}),Ln=Nn(In),Rn,zn,Bn,Vn=D({},In,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Bn&&(Bn&&e.type===`mousemove`?(Rn=e.screenX-Bn.screenX,zn=e.screenY-Bn.screenY):zn=Rn=0,Bn=e),Rn)},movementY:function(e){return`movementY`in e?e.movementY:zn}}),Hn=Nn(Vn),W=Nn(D({},Vn,{dataTransfer:0})),Un=Nn(D({},In,{relatedTarget:0})),G=Nn(D({},Pn,{animationName:0,elapsedTime:0,pseudoElement:0})),Wn=Nn(D({},Pn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Gn=Nn(D({},Pn,{data:0})),Kn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},qn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Jn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Yn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jn[e])?!!t[e]:!1}function Xn(){return Yn}var Zn=Nn(D({},In,{key:function(e){if(e.key){var t=Kn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=An(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?qn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xn,charCode:function(e){return e.type===`keypress`?An(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?An(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Qn=Nn(D({},Vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),$n=Nn(D({},Pn,{submitter:0})),er=Nn(D({},In,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xn})),tr=Nn(D({},Pn,{propertyName:0,elapsedTime:0,pseudoElement:0})),nr=Nn(D({},Vn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),rr=Nn(D({},Pn,{newState:0,oldState:0,source:0})),ir=[9,13,27,32],ar=Cn&&`CompositionEvent`in window,or=null;Cn&&`documentMode`in document&&(or=document.documentMode);var sr=Cn&&`TextEvent`in window&&!or,cr=Cn&&(!ar||or&&8<or&&11>=or),lr=` `,ur=!1;function dr(e,t){switch(e){case`keyup`:return ir.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function fr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var pr=!1;function mr(e,t){switch(e){case`compositionend`:return fr(t);case`keypress`:return t.which===32?(ur=!0,lr):null;case`textInput`:return e=t.data,e===lr&&ur?null:e;default:return null}}function hr(e,t){if(pr)return e===`compositionend`||!ar&&dr(e,t)?(e=kn(),On=Dn=En=null,pr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return cr&&t.locale!==`ko`?null:t.data;default:return null}}var gr={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 _r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!gr[e.type]:t===`textarea`}function vr(e,t,n,r){_n?vn?vn.push(r):vn=[r]:_n=r,t=ep(t,`onChange`),0<t.length&&(n=new Fn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var yr=null,br=null;function xr(e){Kf(e,0)}function Sr(e){if(Xt(Mt(e)))return e}function Cr(e,t){if(e===`change`)return t}var wr=!1;if(Cn){var Tr;if(Cn){var Er=`oninput`in document;if(!Er){var Dr=document.createElement(`div`);Dr.setAttribute(`oninput`,`return;`),Er=typeof Dr.oninput==`function`}Tr=Er}else Tr=!1;wr=Tr&&(!document.documentMode||9<document.documentMode)}function Or(){yr&&(yr.detachEvent(`onpropertychange`,kr),br=yr=null)}function kr(e){if(e.propertyName===`value`&&Sr(br)){var t=[];vr(t,br,e,gn(e)),xn(xr,t)}}function Ar(e,t,n){e===`focusin`?(Or(),yr=t,br=n,yr.attachEvent(`onpropertychange`,kr)):e===`focusout`&&Or()}function jr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Sr(br)}function Mr(e,t){if(e===`click`)return Sr(t)}function Nr(e,t){if(e===`input`||e===`change`)return Sr(t)}function Pr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Fr=typeof Object.is==`function`?Object.is:Pr;function Ir(e,t){if(Fr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Fe.call(t,i)||!Fr(e[i],t[i]))return!1}return!0}function Lr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Rr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zr(e,t){var n=Rr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Rr(n)}}function Br(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Br(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Lr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lr(e.document)}return t}function Hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Ur=Cn&&`documentMode`in document&&11>=document.documentMode,Wr=null,Gr=null,Kr=null,qr=!1;function Jr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qr||Wr==null||Wr!==Lr(r)||(r=Wr,`selectionStart`in r&&Hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Kr&&Ir(Kr,r)||(Kr=r,r=ep(Gr,`onSelect`),0<r.length&&(t=new Fn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Wr)))}function Yr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Xr={animationend:Yr(`Animation`,`AnimationEnd`),animationiteration:Yr(`Animation`,`AnimationIteration`),animationstart:Yr(`Animation`,`AnimationStart`),transitionrun:Yr(`Transition`,`TransitionRun`),transitionstart:Yr(`Transition`,`TransitionStart`),transitioncancel:Yr(`Transition`,`TransitionCancel`),transitionend:Yr(`Transition`,`TransitionEnd`)},Zr={},Qr={};Cn&&(Qr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Xr.animationend.animation,delete Xr.animationiteration.animation,delete Xr.animationstart.animation),`TransitionEvent`in window||delete Xr.transitionend.transition);function $r(e){if(Zr[e])return Zr[e];if(!Xr[e])return e;var t=Xr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Qr)return Zr[e]=t[n];return e}var ei=$r(`animationend`),ti=$r(`animationiteration`),ni=$r(`animationstart`),ri=$r(`transitionrun`),ii=$r(`transitionstart`),ai=$r(`transitioncancel`),oi=$r(`transitionend`),si=new Map,ci=`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(` `);ci.push(`scrollEnd`);function li(e,t){si.set(e,t),Rt(t,[e])}var ui=0;function di(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=wd.identifierPrefix;var n=ui++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function fi(e){if(e==null||typeof e==`string`)return e;var t=null,n=Md;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function pi(e,t){return e=fi(e),t=fi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var mi=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},hi=[],gi=0,_i=0;function vi(){for(var e=gi,t=_i=gi=0;t<e;){var n=hi[t];hi[t++]=null;var r=hi[t];hi[t++]=null;var i=hi[t];hi[t++]=null;var a=hi[t];if(hi[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Si(n,i,a)}}function yi(e,t,n,r){hi[gi++]=e,hi[gi++]=t,hi[gi++]=n,hi[gi++]=r,_i|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function bi(e,t,n,r){return yi(e,t,n,r),Ci(e)}function xi(e,t){return yi(e,null,null,t),Ci(e)}function Si(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Qe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Ci(e){if(50<Nd)throw Nd=0,Pd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var wi={};function Ti(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ei(e,t,n,r){return new Ti(e,t,n,r)}function Di(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Oi(e,t){var n=e.alternate;return n===null?(n=Ei(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ki(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ai(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Di(r)&&(s=1);else if(typeof r==`string`)s=eh(e,n,be.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case ie:return e=Ei(31,n,t,a),e.elementType=ie,e.lanes=o,e;case j:return ji(n.children,a,o,t);case M:s=8,a|=24;break;case N:return e=Ei(12,n,t,a|2),e.elementType=N,e.lanes=o,e;case F:return e=Ei(13,n,t,a),e.elementType=F,e.lanes=o,e;case ne:return e=Ei(19,n,t,a),e.elementType=ne,e.lanes=o,e;case ae:case se:return e=a|32,e=Ei(30,n,t,e),e.elementType=se,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case P:s=10;break a;case ee:s=9;break a;case te:s=11;break a;case I:s=14;break a;case re:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Ei(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ji(e,t,n,r){return e=Ei(7,e,r,t),e.lanes=n,e}function Mi(e,t,n){return e=Ei(6,e,null,t),e.lanes=n,e}function Ni(e){var t=Ei(18,null,null,0);return t.stateNode=e,t}function Pi(e,t,n){return t=Ei(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Fi=new WeakMap;function Ii(e,t){if(typeof e==`object`&&e){var n=Fi.get(e);return n===void 0?(t={value:e,source:t,stack:Pe(t)},Fi.set(e,t),t):n}return{value:e,source:t,stack:Pe(t)}}var Li=[],Ri=0,zi=null,Bi=0,Vi=[],Hi=0,Ui=null,Wi=1,Gi=``;function Ki(e,t){Li[Ri++]=Bi,Li[Ri++]=zi,zi=e,Bi=t}function qi(e,t,n){Vi[Hi++]=Wi,Vi[Hi++]=Gi,Vi[Hi++]=Ui,Ui=e;var r=Wi;e=Gi;var i=32-Qe(r)-1;r&=~(1<<i),n+=1;var a=32-Qe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Wi=1<<32-Qe(t)+i|n<<i|r,Gi=a+e}else Wi=1<<a|n<<i|r,Gi=e}function Ji(e){e.return!==null&&(Ki(e,1),qi(e,1,0))}function Yi(e){for(;e===zi;)zi=Li[--Ri],Li[Ri]=null,Bi=Li[--Ri],Li[Ri]=null;for(;e===Ui;)Ui=Vi[--Hi],Vi[Hi]=null,Gi=Vi[--Hi],Vi[Hi]=null,Wi=Vi[--Hi],Vi[Hi]=null}function Xi(e,t){Vi[Hi++]=Wi,Vi[Hi++]=Gi,Vi[Hi++]=Ui,Wi=t.id,Gi=t.overflow,Ui=e}var Zi=null,Qi=null,$i=!1,ea=null,ta=!1,na=Error(i(519));function ra(e){throw la(Ii(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),na}function ia(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[B]=e,t[xt]=r,n){case`dialog`:qf(`cancel`,t),qf(`close`,t);break;case`iframe`:case`object`:case`embed`:qf(`load`,t);break;case`video`:case`audio`:for(n=0;n<Wf.length;n++)qf(Wf[n],t);break;case`source`:qf(`error`,t);break;case`img`:case`image`:case`link`:qf(`error`,t),qf(`load`,t);break;case`details`:qf(`toggle`,t);break;case`input`:qf(`invalid`,t),en(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:qf(`invalid`,t);break;case`textarea`:qf(`invalid`,t),an(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||op(t.textContent,n)?(r.popover!=null&&(qf(`beforetoggle`,t),qf(`toggle`,t)),r.onScroll!=null&&qf(`scroll`,t),r.onScrollEnd!=null&&qf(`scrollend`,t),r.onClick!=null&&(t.onclick=mn),t=!0):t=!1,t||ra(e,!0)}function aa(e){for(Zi=e.return;Zi;)switch(Zi.tag){case 5:case 31:case 13:ta=!1;return;case 27:case 3:ta=!0;return;default:Zi=Zi.return}}function oa(e){if(e!==Zi)return!1;if(!$i)return aa(e),$i=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||bp(e.type,e.memoizedProps)),n=!n),n&&Qi&&ra(e),aa(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Qi=vm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Qi=vm(e)}else t===27?(t=Qi,kp(e.type)?(e=_m,_m=null,Qi=e):Qi=t):Qi=Zi?gm(e.stateNode.nextSibling):null;return!0}function sa(){Qi=Zi=null,$i=!1}function ca(){var e=ea;return e!==null&&(gd===null?gd=e:gd.push.apply(gd,e),ea=null),e}function la(e){ea===null?ea=[e]:ea.push(e)}var ua=_e(null),da=null,fa=null;function pa(e,t,n){ye(ua,t._currentValue),t._currentValue=n}function ma(e){e._currentValue=ua.current,ve(ua)}function ha(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ga(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ha(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ha(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),ha(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function _a(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Fr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===Ce.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[mh]:e.push(mh))}a=a.return}return e!==null&&ga(t,e,n,r),t.flags|=262144,e!==null}function va(e){for(e=e.firstContext;e!==null;){if(!Fr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ya(e){da=e,fa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ba(e){return Sa(da,e)}function xa(e,t){return da===null&&ya(e),Sa(e,t)}function Sa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},fa===null){if(e===null)throw Error(i(308));fa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else fa=fa.next=t;return n}var Ca=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},wa=t.unstable_scheduleCallback,Ta=t.unstable_NormalPriority,Ea={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Da(){return{controller:new Ca,data:new Map,refCount:0}}function Oa(e){e.refCount--,e.refCount===0&&wa(Ta,function(){e.controller.abort()})}function ka(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Aa=null;function ja(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Ma=null,Na=0,Pa=0,Fa=null;function Ia(e,t){if(Ma===null){var n=Ma=[];Na=0,Pa=zf(),Fa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Na++,t.then(La,La),t}function La(){if(--Na===0&&(Aa=null,Ma!==null)){Fa!==null&&(Fa.status=`fulfilled`);var e=Ma;Ma=null,Pa=0,Fa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ra(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var za=L.S;L.S=function(e,t){if(yd=Be(),typeof t==`object`&&t&&typeof t.then==`function`&&Ia(e,t),Aa!==null)for(var n=Tf;n!==null;)ka(n,Aa),n=n.next;if(n=e.types,n!==null){for(var r=Tf;r!==null;)ka(r,n),r=r.next;if(Pa!==0){r=Aa,r===null&&(r=Aa=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}za!==null&&za(e,t)};var Ba=_e(null);function Va(){var e=Ba.current;return e===null?ed.pooledCache:e}function Ha(e,t){t===null?ye(Ba,Ba.current):ye(Ba,t.pool)}function Ua(){var e=Va();return e===null?null:{parent:Ea._currentValue,pool:e}}var Wa=Error(i(460)),Ga=Error(i(474)),Ka=Error(i(542)),qa={then:function(){}};function Ja(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ya(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(mn,mn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,$a(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(mn,mn);else{if(e=ed,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,$a(e),e}throw Za=t,Wa}}function Xa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Za=e,Wa):e}}var Za=null;function Qa(){if(Za===null)throw Error(i(459));var e=Za;return Za=null,e}function $a(e){if(e===Wa||e===Ka)throw Error(i(483))}var eo=null,to=0;function no(e){var t=to;return to+=1,eo===null&&(eo=[]),Ya(eo,e,t)}function ro(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function io(e,t){throw t.$$typeof===O?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ao(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=Oi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Mi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===j?(e=d(e,t,n.props.children,r,n.key),ro(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===re&&Xa(i)===t.type)?(t=a(t,n.props),ro(t,n),t.return=e,t):(t=Ai(n.type,n.key,n.props,null,e.mode,r),ro(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Pi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ji(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Mi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case k:return n=Ai(t.type,t.key,t.props,null,e.mode,n),ro(n,t),n.return=e,n;case A:return t=Pi(t,e.mode,n),t.return=e,t;case re:return t=Xa(t),f(e,t,n)}if(pe(t)||ue(t))return t=ji(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,no(t),n);if(t.$$typeof===P)return f(e,xa(e,t),n);io(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case k:return n.key===i?l(e,t,n,r):null;case A:return n.key===i?u(e,t,n,r):null;case re:return n=Xa(n),p(e,t,n,r)}if(pe(n)||ue(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,no(n),r);if(n.$$typeof===P)return p(e,t,xa(e,n),r);io(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case k:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case A:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case re:return r=Xa(r),m(e,t,n,r,i)}if(pe(r)||ue(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,no(r),i);if(r.$$typeof===P)return m(e,t,n,xa(t,r),i);io(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),$i&&Ki(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return $i&&Ki(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),$i&&Ki(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),$i&&Ki(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return $i&&Ki(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),$i&&Ki(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===j&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case k:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===j){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),ro(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===re&&Xa(l)===r.type){n(e,r.sibling),c=a(r,o.props),ro(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===j?(c=ji(o.props.children,e.mode,c,o.key),ro(c,o),c.return=e,e=c):(c=Ai(o.type,o.key,o.props,null,e.mode,c),ro(c,o),c.return=e,e=c)}return s(e);case A:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Pi(o,e.mode,c),c.return=e,e=c}return s(e);case re:return o=Xa(o),_(e,r,o,c)}if(pe(o))return h(e,r,o,c);if(ue(o)){if(l=ue(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,no(o),c);if(o.$$typeof===P)return _(e,r,xa(e,o),c);io(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Mi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{to=0;var i=_(e,t,n,r);return eo=null,i}catch(t){if(t===Wa||t===Ka)throw t;var a=Ei(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var oo=ao(!0),so=ao(!1),co=!1;function lo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function uo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function fo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function po(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$u&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ci(e),Si(e,null,n),t}return yi(e,r,t,n),Ci(e)}function mo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ht(e,n)}}function ho(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var go=!1;function _o(){if(go){var e=Fa;if(e!==null)throw e}}function vo(e,t,n,r){go=!1;var i=e.updateQueue;co=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(nd&f)===f:(r&f)===f){f!==0&&f===Pa&&(go=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=D({},d,f);break a;case 2:co=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),ud|=o,e.lanes=o,e.memoizedState=d}}function yo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function bo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)yo(n[e],t)}var xo=_e(null),So=_e(0);function Co(e,t){e=cd,ye(So,e),ye(xo,t),cd=e|t.baseLanes}function wo(){ye(So,cd),ye(xo,xo.current)}function To(){cd=So.current,ve(xo),ve(So)}var Eo=_e(null),Do=null;function Oo(e){var t=e.alternate;ye(No,No.current&1),ye(Eo,e),Do===null&&(t===null||xo.current!==null||t.memoizedState!==null)&&(Do=e)}function ko(e){ye(No,No.current),ye(Eo,e),Do===null&&(Do=e)}function Ao(e){e.tag===22?(ye(No,No.current),ye(Eo,e),Do===null&&(Do=e)):jo()}function jo(){ye(No,No.current),ye(Eo,Eo.current)}function Mo(e){ve(Eo),Do===e&&(Do=null),ve(No)}var No=_e(0);function Po(e,t){ye(Eo,Eo.current),ye(No,t)}function Fo(e){ve(No),ve(Eo),Do===e&&(Do=null)}function Io(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||pm(n)||mm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Lo=0,Ro=null,zo=null,Bo=null,Vo=!1,Ho=!1,Uo=!1,Wo=0,Go=0,Ko=null,qo=0;function Jo(){throw Error(i(321))}function Yo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fr(e[n],t[n]))return!1;return!0}function Xo(e,t,n,r,i,a){return Lo=a,Ro=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?pc:mc,Uo=!1,a=n(r,i),Uo=!1,Ho&&(a=Qo(t,n,r,i)),Zo(e),a}function Zo(e){L.H=fc;var t=zo!==null&&zo.next!==null;if(Lo=0,Bo=zo=Ro=null,Vo=!1,Go=0,Ko=null,t)throw Error(i(300));e===null||jc||(e=e.dependencies,e!==null&&va(e)&&(jc=!0))}function Qo(e,t,n,r){Ro=e;var a=0;do{if(Ho&&(Ko=null),Go=0,Ho=!1,25<=a)throw Error(i(301));if(a+=1,Bo=zo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}L.H=hc,o=t(n,r)}while(Ho);return o}function $o(){var e=L.H,t=e.useState()[0];return t=typeof t.then==`function`?os(t):t,e=e.useState()[0],(zo===null?null:zo.memoizedState)!==e&&(Ro.flags|=1024),t}function es(){var e=Wo!==0;return Wo=0,e}function ts(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ns(e){if(Vo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Vo=!1}Lo=0,Bo=zo=Ro=null,Ho=!1,Go=Wo=0,Ko=null}function rs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bo===null?Ro.memoizedState=Bo=e:Bo=Bo.next=e,Bo}function is(){if(zo===null){var e=Ro.alternate;e=e===null?null:e.memoizedState}else e=zo.next;var t=Bo===null?Ro.memoizedState:Bo.next;if(t!==null)Bo=t,zo=e;else{if(e===null)throw Ro.alternate===null?Error(i(467)):Error(i(310));zo=e,e={memoizedState:zo.memoizedState,baseState:zo.baseState,baseQueue:zo.baseQueue,queue:zo.queue,next:null},Bo===null?Ro.memoizedState=Bo=e:Bo=Bo.next=e}return Bo}function as(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var t=Go;return Go+=1,Ko===null&&(Ko=[]),e=Ya(Ko,e,t),t=Ro,(Bo===null?t.memoizedState:Bo.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?pc:mc),e}function ss(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return os(e);if(e.$$typeof===ce)return;if(e.$$typeof===P)return ba(e)}throw Error(i(438,String(e)))}function cs(e){var t=null,n=Ro.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Ro.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=as(),Ro.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=oe;return t.index++,n}function ls(e,t){return typeof t==`function`?t(e):t}function us(e){return ds(is(),zo,e)}function ds(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Lo&f)===f:(nd&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Pa&&(d=!0);else if((Lo&p)===p){u=u.next,p===Pa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,Ro.lanes|=p,ud|=p;f=u.action,Uo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,Ro.lanes|=f,ud|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Fr(o,e.memoizedState)&&(jc=!0,d&&(n=Fa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function fs(e){var t=is(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Fr(o,t.memoizedState)||(jc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ps(e,t,n){var r=Ro,a=is(),o=$i;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Fr((zo||a).memoizedState,n);if(s&&(a.memoizedState=n,jc=!0),a=a.queue,Rs(gs.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Bo!==null&&!!(Bo.memoizedState.tag&1),Ns(e?9:8,{destroy:void 0},hs.bind(null,r,a,n,t),null),e){if(r.flags|=2048,ed===null)throw Error(i(349));o||Lo&127||ms(r,t,n)}return n}function ms(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ro.updateQueue,t===null?(t=as(),Ro.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function hs(e,t,n,r){t.value=n,t.getSnapshot=r,_s(t)&&vs(e)}function gs(e,t,n){return n(function(){_s(t)&&vs(e)})}function _s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fr(e,n)}catch{return!0}}function vs(e){var t=xi(e,2);t!==null&&Rd(t,e,2)}function ys(e){var t=rs();if(typeof e==`function`){var n=e;if(e=n(),Uo){Ze(!0);try{n()}finally{Ze(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:e},t}function bs(e,t,n,r){return e.baseState=n,ds(e,zo,typeof r==`function`?r:ls)}function xs(e,t,n,r,a){if(lc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};L.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ss(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ss(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=L.T,o={};o.types=a===null?null:a.types,L.T=o;try{var s=n(i,r),c=L.S;c!==null&&c(o,s),Cs(e,t,s)}catch(n){Ts(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),L.T=a}}else try{a=n(i,r),Cs(e,t,a)}catch(n){Ts(e,t,n)}}function Cs(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){ws(e,t,n)},function(n){return Ts(e,t,n)}):ws(e,t,n)}function ws(e,t,n){t.status=`fulfilled`,t.value=n,Es(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ss(e,n)))}function Ts(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Es(t),t=t.next;while(t!==r)}e.action=null}function Es(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ds(e,t){return t}function Os(e,t){if($i){var n=ed.formState;if(n!==null){a:{var r=Ro;if($i){if(Qi){b:{for(var i=Qi,a=ta;i.nodeType!==8;){if(!a){i=null;break b}if(i=gm(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Qi=gm(i.nextSibling),r=i.data===`F!`;break a}}ra(r)}r=!1}r&&(t=n[0])}}return n=rs(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ds,lastRenderedState:t},n.queue=r,n=oc.bind(null,Ro,r),r.dispatch=n,r=ys(!1),a=cc.bind(null,Ro,!1,r.queue),r=rs(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=xs.bind(null,Ro,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ks(e){return As(is(),zo,e)}function As(e,t,n){if(t=ds(e,t,Ds)[0],e=us(ls)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=os(t)}catch(e){throw e===Wa?Ka:e}else r=t;t=is();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Ro.flags|=2048,Ns(9,{destroy:void 0},js.bind(null,i,n),null)),[r,a,e]}function js(e,t){e.action=t}function Ms(e){var t=is(),n=zo;if(n!==null)return As(t,n,e);is(),t=t.memoizedState,n=is();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ns(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Ro.updateQueue,t===null&&(t=as(),Ro.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ps(){return is().memoizedState}function Fs(e,t,n,r){var i=rs();Ro.flags|=e,i.memoizedState=Ns(1|t,{destroy:void 0},n,r===void 0?null:r)}function Is(e,t,n,r){var i=is();r=r===void 0?null:r;var a=i.memoizedState.inst;zo!==null&&r!==null&&Yo(r,zo.memoizedState.deps)?i.memoizedState=Ns(t,a,n,r):(Ro.flags|=e,i.memoizedState=Ns(1|t,a,n,r))}function Ls(e,t){Fs(8390656,8,e,t)}function Rs(e,t){Is(2048,8,e,t)}function zs(e){Ro.flags|=4;var t=Ro.updateQueue;if(t===null)t=as(),Ro.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Bs(e){var t=is().memoizedState;return zs({ref:t,nextImpl:e}),function(){if($u&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Vs(e,t){return Is(4,2,e,t)}function Hs(e,t){return Is(4,4,e,t)}function Us(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ws(e,t,n){n=n==null?null:n.concat([e]),Is(4,4,Us.bind(null,t,e),n)}function Gs(){}function Ks(e,t){var n=is();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Yo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qs(e,t){var n=is();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Yo(t,r[1]))return r[0];if(r=e(),Uo){Ze(!0);try{e()}finally{Ze(!1)}}return n.memoizedState=[r,t],r}function Js(e,t,n){return n===void 0||Lo&1073741824&&!(nd&261930)?e.memoizedState=t:(e.memoizedState=n,e=Id(),Ro.lanes|=e,ud|=e,n)}function Ys(e,t,n,r){return Fr(n,t)?n:xo.current===null?!(Lo&106)||Lo&1073741824&&!(nd&261930)?(jc=!0,e.memoizedState=n):(e=Id(),Ro.lanes|=e,ud|=e,t):(e=Js(e,n,r),Fr(e,t)||(jc=!0),e)}function Xs(e,t,n,r,i){var a=R.p;R.p=a!==0&&8>a?a:8;var o=L.T,s={};s.types=o===null?null:o.types,L.T=s,cc(e,!1,t,n);try{var c=i(),l=L.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?sc(e,t,Ra(c,r),Fd(e)):sc(e,t,r,Fd(e))}catch(n){sc(e,t,{then:function(){},status:`rejected`,reason:n},Fd())}finally{R.p=a,o!==null&&s.types!==null&&(o.types=s.types),L.T=o}}function Zs(){}function Qs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=$s(e).queue;Xs(e,a,t,me,n===null?Zs:function(){return ec(e),n(r)})}function $s(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:me,baseState:me,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:me},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ec(e){var t=$s(e);t.next===null&&(t=e.alternate.memoizedState),sc(e,t.next.queue,{},Fd())}function tc(){return ba(mh)}function nc(){return is().memoizedState}function rc(){return is().memoizedState}function ic(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Fd();e=fo(n);var r=po(t,e,n);r!==null&&(Rd(r,t,n),mo(r,t,n)),t={cache:Da()},e.payload=t;return}t=t.return}}function ac(e,t,n){var r=Fd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},lc(e)?uc(t,n):(n=bi(e,t,n,r),n!==null&&(Rd(n,e,r),dc(n,t,r)))}function oc(e,t,n){sc(e,t,n,Fd())}function sc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(lc(e))uc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Fr(s,o))return yi(e,t,i,0),ed===null&&vi(),!1}catch{}if(n=bi(e,t,i,r),n!==null)return Rd(n,e,r),dc(n,t,r),!0}return!1}function cc(e,t,n,r){if(r={lane:2,revertLane:zf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},lc(e)){if(t)throw Error(i(479))}else t=bi(e,n,r,2),t!==null&&Rd(t,e,2)}function lc(e){var t=e.alternate;return e===Ro||t!==null&&t===Ro}function uc(e,t){Ho=Vo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ht(e,n)}}var fc={readContext:ba,use:ss,useCallback:Jo,useContext:Jo,useEffect:Jo,useImperativeHandle:Jo,useLayoutEffect:Jo,useInsertionEffect:Jo,useMemo:Jo,useReducer:Jo,useRef:Jo,useState:Jo,useDebugValue:Jo,useDeferredValue:Jo,useTransition:Jo,useSyncExternalStore:Jo,useId:Jo,useHostTransitionStatus:Jo,useFormState:Jo,useActionState:Jo,useOptimistic:Jo,useMemoCache:Jo,useCacheRefresh:Jo,useEffectEvent:Jo},pc={readContext:ba,use:ss,useCallback:function(e,t){return rs().memoizedState=[e,t===void 0?null:t],e},useContext:ba,useEffect:Ls,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Fs(4194308,4,Us.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fs(4194308,4,e,t)},useInsertionEffect:function(e,t){Fs(4,2,e,t)},useMemo:function(e,t){var n=rs();t=t===void 0?null:t;var r=e();if(Uo){Ze(!0);try{e()}finally{Ze(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=rs();if(n!==void 0){var i=n(t);if(Uo){Ze(!0);try{n(t)}finally{Ze(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ac.bind(null,Ro,e),[r.memoizedState,e]},useRef:function(e){var t=rs();return e={current:e},t.memoizedState=e},useState:function(e){e=ys(e);var t=e.queue,n=oc.bind(null,Ro,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Gs,useDeferredValue:function(e,t){return Js(rs(),e,t)},useTransition:function(){var e=ys(!1);return e=Xs.bind(null,Ro,e.queue,!0,!1),rs().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Ro,a=rs();if($i){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),ed===null)throw Error(i(349));nd&127||ms(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Ls(gs.bind(null,r,o,e),[e]),r.flags|=2048,Ns(9,{destroy:void 0},hs.bind(null,r,o,n,t),null),n},useId:function(){var e=rs(),t=ed.identifierPrefix;if($i){var n=Gi,r=Wi;n=(r&~(1<<32-Qe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Wo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=qo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:tc,useFormState:Os,useActionState:Os,useOptimistic:function(e){var t=rs();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=cc.bind(null,Ro,!0,n),n.dispatch=t,[e,t]},useMemoCache:cs,useCacheRefresh:function(){return rs().memoizedState=ic.bind(null,Ro)},useEffectEvent:function(e){var t=rs(),n={impl:e};return t.memoizedState=n,function(){if($u&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},mc={readContext:ba,use:ss,useCallback:Ks,useContext:ba,useEffect:Rs,useImperativeHandle:Ws,useInsertionEffect:Vs,useLayoutEffect:Hs,useMemo:qs,useReducer:us,useRef:Ps,useState:function(){return us(ls)},useDebugValue:Gs,useDeferredValue:function(e,t){return Ys(is(),zo.memoizedState,e,t)},useTransition:function(){var e=us(ls)[0],t=is().memoizedState;return[typeof e==`boolean`?e:os(e),t]},useSyncExternalStore:ps,useId:nc,useHostTransitionStatus:tc,useFormState:ks,useActionState:ks,useOptimistic:function(e,t){return bs(is(),zo,e,t)},useMemoCache:cs,useCacheRefresh:rc,useEffectEvent:Bs},hc={readContext:ba,use:ss,useCallback:Ks,useContext:ba,useEffect:Rs,useImperativeHandle:Ws,useInsertionEffect:Vs,useLayoutEffect:Hs,useMemo:qs,useReducer:fs,useRef:Ps,useState:function(){return fs(ls)},useDebugValue:Gs,useDeferredValue:function(e,t){var n=is();return zo===null?Js(n,e,t):Ys(n,zo.memoizedState,e,t)},useTransition:function(){var e=fs(ls)[0],t=is().memoizedState;return[typeof e==`boolean`?e:os(e),t]},useSyncExternalStore:ps,useId:nc,useHostTransitionStatus:tc,useFormState:Ms,useActionState:Ms,useOptimistic:function(e,t){var n=is();return zo===null?(n.baseState=e,[e,n.queue.dispatch]):bs(n,zo,e,t)},useMemoCache:cs,useCacheRefresh:rc,useEffectEvent:Bs};function gc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:D({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var _c={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Fd(),i=fo(r);i.payload=t,n!=null&&(i.callback=n),t=po(e,i,r),t!==null&&(Rd(t,e,r),mo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Fd(),i=fo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=po(e,i,r),t!==null&&(Rd(t,e,r),mo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Fd(),r=fo(n);r.tag=2,t!=null&&(r.callback=t),t=po(e,r,n),t!==null&&(Rd(t,e,n),mo(t,e,n))}};function vc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Ir(n,r)||!Ir(i,a):!0}function yc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&_c.enqueueReplaceState(t,t.state,null)}function bc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=D({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function xc(e){mi(e)}function Sc(e){console.error(e)}function Cc(e){mi(e)}function wc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Tc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ec(e,t,n){return n=fo(n),n.tag=3,n.payload={element:null},n.callback=function(){wc(e,t)},n}function Dc(e){return e=fo(e),e.tag=3,e}function Oc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Tc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Tc(t,n,r),typeof i!=`function`&&(Sd===null?Sd=new Set([this]):Sd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function kc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&_a(t,n,a,!0),n=Eo.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Do===null?Xd():n.alternate===null&&ld===0&&(ld=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===qa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),yf(e,r,a)),!1;case 22:return n.flags|=65536,r===qa?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),yf(e,r,a)),!1}throw Error(i(435,n.tag))}return yf(e,r,a),Xd(),!1}if($i)return t=Eo.current,t===null?(r!==na&&(t=Error(i(423),{cause:r}),la(Ii(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Ii(r,n),a=Ec(e.stateNode,r,a),ho(e,a),ld!==4&&(ld=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==na&&(e=Error(i(422),{cause:r}),la(Ii(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Ii(o,n),hd===null?hd=[o]:hd.push(o),ld!==4&&(ld=2),t===null)return!0;r=Ii(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Ec(n.stateNode,r,e),ho(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(Sd===null||!Sd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Dc(a),Oc(a,e,n,r),ho(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Ac=Error(i(461)),jc=!1;function Mc(e,t,n,r){t.child=e===null?so(t,null,n,r):oo(t,e.child,n,r)}function Nc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ya(t),r=Xo(e,t,n,o,a,i),s=es(),e!==null&&!jc?(ts(e,t,i),sl(e,t,i)):($i&&s&&Ji(t),t.flags|=1,Mc(e,t,r,i),t.child)}function Pc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Di(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Fc(e,t,a,r,i)):(e=Ai(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!cl(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Ir:n,n(o,r)&&e.ref===t.ref)return sl(e,t,i)}return t.flags|=1,e=Oi(a,r),e.ref=t.ref,e.return=t,t.child=e}function Fc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Ir(a,r)&&e.ref===t.ref){if(jc=!1,t.pendingProps=r=a,cl(e,i))e.flags&131072&&(jc=!0);else return t.lanes=e.lanes,sl(e,t,i)}}return Uc(e,t,n,r,i)}function Ic(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Rc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ha(t,a===null?null:a.cachePool),a===null?wo():Co(t,a),Ao(t);else return r=t.lanes=536870912,Rc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ha(t,null),wo(),jo()):(Ha(t,a.cachePool),Co(t,a),jo(),t.memoizedState=null);return Mc(e,t,i,n),t.child}function Lc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Rc(e,t,n,r,i){var a=Va();return a=a===null?null:{parent:Ea._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ha(t,null),wo(),Ao(t),e!==null&&_a(e,t,r,!0),t.childLanes=i,null}function zc(e,t){return t=Qc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Bc(e,t,n){return oo(t,e.child,null,n),e=zc(t,t.pendingProps),e.flags|=2,Mo(t),t.memoizedState=null,e}function Vc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if($i){if(r.mode===`hidden`)return e=zc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Lc(null,e);if(ko(t),(e=Qi)?(e=fm(e,ta),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ui===null?null:{id:Wi,overflow:Gi},retryLane:536870912,hydrationErrors:null},n=Ni(e),n.return=t,t.child=n,Zi=t,Qi=null)):e=null,e===null)throw ra(t);return t.lanes=536870912,null}return zc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(ko(t),a){if(t.flags&256)t.flags&=-257,t=Bc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(jc||_a(e,t,n,!1),a=(n&e.childLanes)!==0,jc||a){if(xo.current===null){if(r=ed,r!==null&&(s=gt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,xi(e,s),Rd(r,e,s),Ac;Xd()}t=Bc(e,t,n)}else e=o.treeContext,Qi=gm(s.nextSibling),Zi=t,$i=!0,ea=null,ta=!1,e!==null&&Xi(t,e),t=zc(t,r),t.flags|=134221824;return t}return e=Oi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Hc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Uc(e,t,n,r,i){return ya(t),n=Xo(e,t,n,r,void 0,i),r=es(),e!==null&&!jc?(ts(e,t,i),sl(e,t,i)):($i&&r&&Ji(t),t.flags|=1,Mc(e,t,n,i),t.child)}function Wc(e,t,n,r,i,a){return ya(t),t.updateQueue=null,n=Qo(t,r,n,i),Zo(e),r=es(),e!==null&&!jc?(ts(e,t,a),sl(e,t,a)):($i&&r&&Ji(t),t.flags|=1,Mc(e,t,n,a),t.child)}function Gc(e,t,n,r,i){if(ya(t),t.stateNode===null){var a=wi,o=n.contextType;typeof o==`object`&&o&&(a=ba(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=_c,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},lo(t),o=n.contextType,a.context=typeof o==`object`&&o?ba(o):wi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(gc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&_c.enqueueReplaceState(a,a.state,null),vo(t,r,a,i),_o(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=bc(n,s);a.props=c;var l=a.context,u=n.contextType;o=wi,typeof u==`object`&&u&&(o=ba(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&yc(t,a,r,o),co=!1;var f=t.memoizedState;a.state=f,vo(t,r,a,i),_o(),l=t.memoizedState,s||f!==l||co?(typeof d==`function`&&(gc(t,n,d,r),l=t.memoizedState),(c=co||vc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,uo(e,t),o=t.memoizedProps,u=bc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=wi,typeof l==`object`&&l&&(c=ba(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&yc(t,a,r,c),co=!1,f=t.memoizedState,a.state=f,vo(t,r,a,i),_o();var p=t.memoizedState;o!==d||f!==p||co||e!==null&&e.dependencies!==null&&va(e.dependencies)?(typeof s==`function`&&(gc(t,n,s,r),p=t.memoizedState),(u=co||vc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&va(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Hc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=oo(t,e.child,null,i),t.child=oo(t,null,n,i)):Mc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=sl(e,t,i),e}function Kc(e,t,n,r){return sa(),t.flags|=256,Mc(e,t,n,r),t.child}var qc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Jc(e){return{baseLanes:e,cachePool:Ua()}}function Yc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=pd),e}function Xc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(No.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if($i){if(i?Oo(t):jo(),(e=Qi)?(e=fm(e,ta),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ui===null?null:{id:Wi,overflow:Gi},retryLane:536870912,hydrationErrors:null},n=Ni(e),n.return=t,t.child=n,Zi=t,Qi=null)):e=null,e===null)throw ra(t);return t.lanes=mm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(jo(),i=t.mode,a=Qc({mode:`hidden`,children:a},i),r=ji(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Jc(n),r.childLanes=Yc(e,o,n),t.memoizedState=qc,Lc(null,r)):(Oo(t),Zc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return el(e,t,a,o,r,c,s,n)}return i?(jo(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Oi(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=ji(i,a,n,null),i.flags|=2):i=Oi(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Lc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Jc(n):(a=i.cachePool,a===null?a=Ua():(s=Ea._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Yc(e,o,n),t.memoizedState=qc,Lc(e.child,r)):(Oo(t),n=e.child,e=n.sibling,n=Oi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Zc(e,t){return t=Qc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Qc(e,t){return e=Ei(22,e,null,t),e.lanes=0,e}function $c(e,t,n){return oo(t,e.child,null,n),e=Zc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function el(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(Oo(t),t.flags&=-257,$c(e,t,c)):t.memoizedState===null?(jo(),o=a.fallback,s=t.mode,a=Qc({mode:`visible`,children:a.children},s),o=ji(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,oo(t,e.child,null,c),a=t.child,a.memoizedState=Jc(c),a.childLanes=Yc(e,r,c),t.memoizedState=qc,Lc(null,a)):(jo(),t.child=e.child,t.flags|=128,null);if(Oo(t),mm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,la({value:a,source:null,stack:null})),$c(e,t,c)}if(jc||_a(e,t,c,!1),r=(c&e.childLanes)!==0,jc||r){if(xo.current!==null)return $c(e,t,c);if(r=ed,r!==null&&(a=gt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,xi(e,a),Rd(r,e,a),Ac;return pm(o)||Xd(),$c(e,t,c)}return pm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,Qi=gm(o.nextSibling),Zi=t,$i=!0,ea=null,ta=!1,e!==null&&Xi(t,e),t=Zc(t,a.children),t.flags|=134221824,t)}function tl(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ha(e.return,t,n)}function nl(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Io(n)===null&&(t=e),e=e.sibling}return t}function rl(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function il(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function al(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=No.current;if(t.flags&128)return Po(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Po(t,o),i===`backwards`&&e!==null?(il(e),Mc(e,t,r,n),il(e)):Mc(e,t,r,n),r=$i?Bi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&tl(e,n,t);else if(e.tag===19)tl(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=nl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,il(t)),rl(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Io(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}rl(t,!0,n,null,a,r);break;case`together`:rl(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=nl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),rl(t,!1,i,n,a,r)}return t.child}function ol(e,t,n){var r=t.pendingProps;return pa(t,t.type,r.value),Mc(e,t,r.children,n),t.child}function sl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ud|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(_a(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Oi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Oi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function cl(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&va(e)))}function ll(e,t,n){switch(t.tag){case 3:we(t,t.stateNode.containerInfo),pa(t,Ea,e.memoizedState.cache),sa();break;case 27:case 5:Ee(t);break;case 4:we(t,t.stateNode.containerInfo);break;case 10:pa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ko(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Oo(t),t.flags|=128,null;r=_a(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Xc(e,t,n):(Oo(t),e=sl(e,t,n),e===null?null:e.sibling)}Oo(t);break;case 19:if(t.flags&128)return al(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(_a(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return al(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Po(t,No.current),r)break;return null;case 22:return t.lanes=0,Ic(e,t,n,t.pendingProps);case 24:pa(t,Ea,e.memoizedState.cache)}return sl(e,t,n)}function ul(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)jc=!0;else{if(!cl(e,n)&&!(t.flags&128))return jc=!1,ll(e,t,n);jc=!!(e.flags&131072)}}else jc=!1,$i&&t.flags&1048576&&qi(t,Bi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Xa(t.elementType),t.type=e,typeof e==`function`)Di(e)?(r=bc(e,r),t.tag=1,t=Gc(null,t,e,r,n)):(t.tag=0,t=Uc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===te){t.tag=11,t=Nc(null,t,e,r,n);break a}if(a===I){t.tag=14,t=Pc(null,t,e,r,n);break a}if(a===P){t.tag=10,t.type=e,t=ol(null,t,n);break a}}throw t=fe(e)||e,Error(i(306,t,``))}}return t;case 0:return Uc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=bc(r,t.pendingProps),Gc(e,t,r,a,n);case 3:a:{if(we(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,uo(e,t),vo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,pa(t,Ea,r),r!==o.cache&&ga(t,[Ea],n,!0),_o(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Kc(e,t,r,n);break a}if(r!==a){a=Ii(Error(i(424)),t),la(a),t=Kc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Qi=gm(e.firstChild),Zi=t,$i=!0,ea=null,ta=!0,n=so(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(sa(),r===a){t=sl(e,t,n);break a}Mc(e,t,r,n)}t=t.child}return t;case 26:return Hc(e,t),e===null?(n=Bm(t.type,null,t.pendingProps,null))?t.memoizedState=n:$i||(t.stateNode=yp(t.type,t.pendingProps,Se.current,t)):t.memoizedState=Bm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ee(t),e===null&&$i&&(r=t.stateNode=Sm(t.type,t.pendingProps,Se.current),Zi=t,ta=!0,a=Qi,kp(t.type)?(_m=a,Qi=gm(r.firstChild)):Qi=a),Mc(e,t,t.pendingProps.children,n),Hc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&$i&&((a=r=Qi)&&(r=um(r,t.type,t.pendingProps,ta),r===null?a=!1:(t.stateNode=r,Zi=t,Qi=gm(r.firstChild),ta=!1,a=!0)),a||ra(t)),Ee(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,bp(a,o)?r=null:s!==null&&bp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Xo(e,t,$o,null,null,n),mh._currentValue=a),Hc(e,t),Mc(e,t,r,n),t.child;case 6:return e===null&&$i&&((e=n=Qi)&&(n=dm(n,t.pendingProps,ta),n===null?e=!1:(t.stateNode=n,Zi=t,Qi=null,e=!0)),e||ra(t)),null;case 13:return Xc(e,t,n);case 4:return we(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=oo(t,null,r,n):Mc(e,t,r,n),t.child;case 11:return Nc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Hc(e,t),Mc(e,t,r,n),t.child;case 8:return Mc(e,t,t.pendingProps.children,n),t.child;case 12:return Mc(e,t,t.pendingProps.children,n),t.child;case 10:return ol(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,ya(t),a=ba(a),r=r(a),t.flags|=1,Mc(e,t,r,n),t.child;case 14:return Pc(e,t,t.type,t.pendingProps,n);case 15:return Fc(e,t,t.type,t.pendingProps,n);case 19:return al(e,t,n);case 31:return Vc(e,t,n);case 22:return Ic(e,t,n,t.pendingProps);case 24:return ya(t),r=ba(Ea),e===null?(a=Va(),a===null&&(a=ed,o=Da(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},lo(t),pa(t,Ea,a)):((e.lanes&n)!==0&&(uo(e,t),vo(t,null,null,n),_o()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,pa(t,Ea,r),r!==a.cache&&ga(t,[Ea],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),pa(t,Ea,r))),Mc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:$i&&Ji(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Hc(e,t),Mc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function dl(e){e.flags|=4}function fl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?th(t,r):th(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(qd())e.flags|=8192;else throw Za=qa,Ga}}else e.flags&=-16777217}function pl(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!nh(t)){if(qd())e.flags|=8192;else throw Za=qa,Ga}}function ml(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:ut(),e.lanes|=t,md|=t)}function hl(e,t){if(!$i)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function gl(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function _l(e,t,n){var r=t.pendingProps;switch(Yi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gl(t),null;case 1:return gl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ma(Ea),Te(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(oa(t)?dl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ca())),gl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(dl(t),o===null?(gl(t),fl(t,a,null,r,n)):(gl(t),pl(t,o))):o?o===e.memoizedState?(gl(t),t.flags&=-16777217):(dl(t),gl(t),pl(t,o)):(e=e.memoizedProps,e!==r&&dl(t),gl(t),fl(t,a,e,r,n)),null;case 27:if(De(t),n=Se.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&dl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return gl(t),t.subtreeFlags&=-33554433,null}e=be.current,oa(t)?ia(t,e):(e=Sm(a,r,n),t.stateNode=e,dl(t))}return gl(t),t.subtreeFlags&=-33554433,null;case 5:if(De(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&dl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return gl(t),t.subtreeFlags&=-33554433,null}if(o=be.current,oa(t))ia(t,o);else{var s=gp(Se.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[B]=t,o[xt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(lp(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&dl(t)}}return gl(t),t.subtreeFlags&=-33554433,fl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&dl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=Se.current,oa(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Zi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[B]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||op(e.nodeValue,n)),e||ra(t,!0)}else e=gp(e).createTextNode(r),e[B]=t,t.stateNode=e}return gl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=oa(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[B]=t}else sa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gl(t),e=!1}else n=ca(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Mo(t),t):(Mo(t),null);if(t.flags&128)throw Error(i(558))}return gl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=oa(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[B]=t}else sa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gl(t),a=!1}else a=ca(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Mo(t),t):(Mo(t),null)}return Mo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ml(t,t.updateQueue),gl(t),null);case 4:return Te(),e===null&&Xf(t.stateNode.containerInfo),t.flags|=67108864,gl(t),null;case 10:return ma(t.type),gl(t),null;case 19:if(Fo(t),r=t.memoizedState,r===null)return gl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)hl(r,!1);else{if(ld!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Io(e),o!==null){for(t.flags|=128,hl(r,!1),e=o.updateQueue,t.updateQueue=e,ml(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ki(n,e),n=n.sibling;return Po(t,No.current&1|2),$i&&Ki(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Be()>bd&&(t.flags|=128,a=!0,hl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Io(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,ml(t,e),hl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!$i)return gl(t),null}else 2*Be()-r.renderingStartTime>bd&&n!==536870912&&(t.flags|=128,a=!0,hl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Be(),e.sibling=null,o=No.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||$i?Po(t,o):(n=o,ye(Eo,t),ye(No,n),Do===null&&(Do=t)),$i&&Ki(t,r.treeForkCount),e}return gl(t),null;case 22:case 23:return Mo(t),To(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(gl(t),t.subtreeFlags&6&&(t.flags|=8192)):gl(t),n=t.updateQueue,n!==null&&ml(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ve(Ba),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ma(Ea),gl(t),null;case 25:return null;case 30:return t.flags|=33554432,gl(t),null}throw Error(i(156,t.tag))}function vl(e,t){switch(Yi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ma(Ea),Te(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return De(t),null;case 31:if(t.memoizedState!==null){if(Mo(t),t.alternate===null)throw Error(i(340));sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Mo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Te(),null;case 10:return ma(t.type),null;case 22:case 23:return Mo(t),To(),e!==null&&ve(Ba),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ma(Ea),null;case 25:return null;default:return null}}function yl(e,t){switch(Yi(t),t.tag){case 3:ma(Ea),Te();break;case 26:case 27:case 5:De(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Mo(t);break;case 13:Mo(t);break;case 19:Fo(t);break;case 10:ma(t.type);break;case 22:case 23:Mo(t),To(),e!==null&&ve(Ba);break;case 24:ma(Ea)}}function bl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){vf(t,t.return,e)}}function xl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){vf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){vf(t,t.return,e)}}function Sl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{bo(t,n)}catch(t){vf(e,e.return,t)}}}function Cl(e,t,n){n.props=bc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){vf(e,t,n)}}function wl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=di(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Vp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Hp(e);p(e.child,!1,am,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){vf(e,t,n)}}function Tl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){vf(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){vf(e,t,n)}else n.current=null}}function El(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)sm(e.stateNode,t[n])}function Dl(e){for(var t=e.return;t!==null&&(Al(t)&&sm(e.stateNode,t.stateNode),!kl(t));)t=t.return}function Ol(e){for(var t=e.return;t!==null&&(Al(t)&&cm(e.stateNode,t.stateNode),!kl(t));)t=t.return}function kl(e){return e.tag===5||e.tag===3||e.tag===27}function Al(e){return e&&e.tag===7&&e.stateNode!==null}function jl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){vf(e,e.return,t)}}function Ml(e,t,n){try{var r=e.stateNode;dp(r,e.type,n,t),r[xt]=t}catch(t){vf(e,e.return,t)}}function Nl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&kp(e.type)||e.tag===4}function Pl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Nl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&kp(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=mn)),El(e,r),Ht=!0;else if(i!==4&&(i===27&&(El(e,r),r=null,kp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Fl(e,t,n,r),e=e.sibling;e!==null;)Fl(e,t,n,r),e=e.sibling}function Il(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),El(e,r),Ht=!0;else if(i!==4&&(i===27&&(El(e,r),r=null,kp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Il(e,t,n,r),e=e.sibling;e!==null;)Il(e,t,n,r),e=e.sibling}function Ll(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);lp(t,r,n),t[B]=e,t[xt]=n}catch(t){vf(e,e.return,t)}}var Rl=!1,K=null;function zl(e){(e.tag===30||e.subtreeFlags&33554432)&&(Rl=!0)}var Bl=null;function Vl(){var e=Bl;return Bl=null,e}var Hl=0;function Ul(e,t,n,r,i){return Hl=0,Wl(e.child,t,n,r,i)}function Wl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Fp(o);r.push(s),s.view&&(a=!0)}else a||Fp(o).view&&(a=!0);Rl=!0,Mp(o,Hl===0?t:t+`_`+Hl,n),Hl++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Wl(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function Gl(e,t){for(;e!==null;)e.tag===5?Np(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Gl(e.child,t)),e=e.sibling}function Kl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Kl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=pi(t.default,t.share),t!==`none`&&(Ul(e,n,t,null,!1)||Gl(e.child,!1))}e=e.sibling}}function ql(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=di(r,n),a=pi(r.default,n.paired?r.share:r.enter);a===`none`?Kl(e):Ul(e,i,a,null,!1)?(Kl(e),n.paired||t||Ld(e,r.onEnter)):Gl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)ql(e,t),e=e.sibling;else Kl(e)}function Jl(e){if(K!==null&&K.size!==0){var t=K;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=pi(n.default,n.share);if(a!==`none`&&(Ul(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Ld(e,n.onShare)):Gl(e.child,!1)),t.delete(r),t.size===0)break}}}Jl(e)}e=e.sibling}}}function Yl(e){if(e.tag===30){var t=e.memoizedProps,n=di(t,e.stateNode),r=K===null?void 0:K.get(n),i=pi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Ul(e,n,i,null,!1)?r===void 0?Ld(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,K.delete(n),Ld(e,t.onShare)):Gl(e.child,!1)),K!==null&&Jl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Yl(e),e=e.sibling;else K!==null&&Jl(e)}function Xl(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=di(t,e.stateNode);t=pi(t.default,t.update),e.flags&=-5,t!==`none`&&Ul(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Xl(e);e=e.sibling}}function Zl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Gl(e.child,!1))}Zl(e)}e=e.sibling}}function Ql(e){if(e.tag===30)e.stateNode.paired=null,Gl(e.child,!1),Zl(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Ql(e),e=e.sibling;else Zl(e)}function $l(e){for(e=e.child;e!==null;)e.tag===30?Gl(e.child,!1):e.subtreeFlags&33554432&&$l(e),e=e.sibling}function eu(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Hl<a.length){var l=a[Hl],u=Fp(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Mp(c,Hl===0?n:n+`_`+Hl,i),s&&e.flags&4||(Bl===null&&(Bl=[]),Bl.push(c,Hl===0?r:r+`_`+Hl,t.memoizedProps)),Hl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:eu(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function tu(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=di(n,r),a=pi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Ip)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Hl=0,i=eu(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Ld(e,n.onUpdate))}else e.subtreeFlags&33554432&&tu(e,t);e=e.sibling}}var nu=!1,ru=!1,iu=!1,au=!1,ou=typeof WeakSet==`function`?WeakSet:Set,su=null,cu=!1,lu=!1,uu=!1,du=!1;function fu(e,t,n){if(e=e.containerInfo,mp=Ch,e=Vr(e),Hr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(hp={focusedElem:e,selectionRange:r},Ch=!1,n=(n&335544064)===n,su=t,t=n?9270:1024;su!==null;){if(e=su,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Yl(r[a]);if(e.alternate===null&&e.flags&2)n&&zl(e),pu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Yl(r),pu(n);continue}if(r!==null&&r.memoizedState!==null){n&&zl(e),pu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,su=r):(n&&Xl(e),pu(n))}}K=null}function pu(e){for(;su!==null;){var t=su,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=bc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){vf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)lm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:lm(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=di(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=pi(a.default,a.update),a!==`none`&&Ul(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,su=r;break}su=t.return}}function mu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Pu(e,n),r&4&&bl(5,n);break;case 1:if(Pu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){vf(n,n.return,e)}else{var i=bc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){vf(n,n.return,e)}}}r&64&&Sl(n),r&512&&wl(n,n.return);break;case 3:if(Pu(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{bo(e,t)}catch(e){vf(n,n.return,e)}}break;case 27:t===null&&r&4&&Ll(n);case 26:case 5:Pu(e,n),t===null&&r&4&&jl(n),r&512&&wl(n,n.return);break;case 12:Pu(e,n);break;case 31:Pu(e,n),r&4&&Cu(e,n);break;case 13:Pu(e,n),r&4&&wu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Sf.bind(null,n),hm(e,n))));break;case 22:if(r=n.memoizedState!==null||nu,!r){var a=t!==null&&t.memoizedState!==null||ru;t=nu,i=ru,nu=r,(ru=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Iu(e,n,r)):Pu(e,n),nu=t,ru=i}break;case 30:Pu(e,n),r&512&&wl(n,n.return);break;case 7:r&512&&wl(n,n.return);default:Pu(e,n)}}function hu(e,t){for(e=e.child;e!==null;)gu(e,t),e=e.sibling}function gu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){vf(e,e.return,t)}_u(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,Ht=!0}catch(t){vf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?jp(s,!0):jp(e.stateNode,!1)}catch(t){vf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&hu(e,t);break;default:hu(e,t)}}function _u(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:gu(n,r);break a;case 22:n.memoizedState===null&&_u(n,r);break a;default:_u(n,r)}}e=e.sibling}}function vu(e){var t=e.alternate;t!==null&&(e.alternate=null,vu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&kt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var yu=null,bu=!1;function xu(e,t,n){for(n=n.child;n!==null;)Su(e,t,n),n=n.sibling}function Su(e,t,n){if(Xe&&typeof Xe.onCommitFiberUnmount==`function`)try{Xe.onCommitFiberUnmount(Ye,n)}catch{}switch(n.tag){case 26:ru||Tl(n,t),xu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!ru&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ru||Tl(n,t),Ol(n);var r=yu,i=bu;kp(n.type)&&(yu=n.stateNode,bu=!1),xu(e,t,n),Cm(n.stateNode,n.type,n.memoizedProps),yu=r,bu=i;break;case 5:ru||Tl(n,t),Ol(n);case 6:if(n.tag===6&&Ol(n),r=yu,i=bu,yu=null,xu(e,t,n),yu=r,bu=i,yu!==null){if(bu)try{(yu.nodeType===9?yu.body:yu.nodeName===`HTML`?yu.ownerDocument.body:yu).removeChild(n.stateNode),Ht=!0}catch(e){vf(n,t,e)}else try{yu.removeChild(n.stateNode),Ht=!0}catch(e){vf(n,t,e)}}break;case 18:yu!==null&&(bu?(e=yu,Ap(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Yh(e)):Ap(yu,n.stateNode));break;case 4:r=yu,i=bu,yu=n.stateNode.containerInfo,bu=!0,xu(e,t,n),yu=r,bu=i;break;case 0:case 11:case 14:case 15:xl(2,n,t),ru||xl(4,n,t),xu(e,t,n);break;case 1:ru||(Tl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Cl(n,t,r)),xu(e,t,n);break;case 21:xu(e,t,n);break;case 22:ru=(r=ru)||n.memoizedState!==null,xu(e,t,n),ru=r;break;case 30:Tl(n,t),xu(e,t,n);break;case 7:ru||Tl(n,t),xu(e,t,n);break;default:xu(e,t,n)}}function Cu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Yh(e)}catch(e){vf(t,t.return,e)}}}function wu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Yh(e)}catch(e){vf(t,t.return,e)}}function Tu(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ou),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ou),t;default:throw Error(i(435,e.tag))}}function Eu(e,t){var n=Tu(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Cf.bind(null,e,t);t.then(r,r)}})}function Du(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(kp(l.type)){yu=l.stateNode,bu=!1;break a}break;case 5:yu=l.stateNode,bu=!1;break a;case 3:case 4:yu=l.stateNode.containerInfo,bu=!0;break a}l=l.return}if(yu===null)throw Error(i(160));Su(s,c,o),yu=null,bu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ku(t,e,n),t=t.sibling}var Ou=null;function ku(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}Du(t,e,n),Au(e),a&4&&(xl(3,e,e.return),bl(3,e),xl(5,e,e.return));break;case 1:Du(t,e,n),Au(e),a&512&&(ru||r===null||Tl(r,r.return)),a&64&&nu&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Ou,Du(t,e,n),Au(e),a&512&&(ru||r===null||Tl(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(nu)e.stateNode=yp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[Dt]||r[B]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),lp(r,t,n),r[B]=e,Pt(r),t=r;break a;case`link`:if(o=Qm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),lp(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Qm(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),lp(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[B]=e,Pt(r),t=r}e.stateNode=t}}else nu||$m(o,e.type,e.stateNode)}else e.stateNode=qm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Ml(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||ru||t.parentNode.removeChild(t)):a.count--,n===null?nu||$m(o,e.type,e.stateNode):qm(o,n,e.memoizedProps))}break;case 27:Du(t,e,n),Au(e),a&512&&(ru||r===null||Tl(r,r.return)),r!==null&&a&4&&Ml(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=iu,iu=!1,Du(t,e,n),iu=o,Au(e),a&512&&(ru||r===null||Tl(r,r.return)),e.flags&32){t=e.stateNode;try{on(t,``),Ht=!0}catch(t){vf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Ml(e,t,r===null?t:r.memoizedProps)),a&1024&&(au=!0);break;case 6:if(Du(t,e,n),Au(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Ht=!0}catch(t){vf(e,e.return,t)}}break;case 3:if(Ht=!1,Zm=null,o=Ou,Ou=Dm(t.containerInfo),Du(t,e,n),Ou=o,Au(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Yh(t.containerInfo)}catch(t){vf(e,e.return,t)}au&&(au=!1,ju(e)),Ht=!1;break;case 4:a=iu,iu=nu,r=Ut(),o=Ou,Ou=Dm(e.stateNode.containerInfo),Du(t,e,n),Au(e),Ou=o,Ht&&lu&&(uu=!0),Ht=r,iu=a;break;case 12:Du(t,e,n),Au(e);break;case 31:Du(t,e,n),Au(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Eu(e,t)));break;case 13:Du(t,e,n),Au(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(vd=Be()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Eu(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=nu,l=ru,u=iu;nu=c||o,iu=u||o,ru=l||s,Du(t,e,n),ru=l,iu=u,nu=c,Au(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||nu||ru||(t=s||ru,n=nu,r=ru,nu=o||nu,ru=t,Fu(e,2),nu=n,ru=r),!o&&iu||hu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Eu(e,n))));break;case 19:Du(t,e,n),Au(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Eu(e,t)));break;case 30:a&512&&(ru||r===null||Tl(r,r.return)),a=Ut(),o=lu,s=(n&335544064)===n,c=e.memoizedProps,lu=s&&pi(c.default,c.update)!==`none`,Du(t,e,n),Au(e),s&&r!==null&&Ht&&(e.flags|=4),lu=o,Ht=a;break;case 21:break;case 7:a&512&&(ru||r===null||Tl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Du(t,e,n),Au(e)}}function Au(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Nl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(Al(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(kl(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Il(e,Pl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(on(l,``),n.flags&=-33),Il(e,Pl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Fl(e,Pl(e),u,s);break;default:throw Error(i(161))}}catch(t){vf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ju(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ju(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Ch=!0,t.reset(),Ch=!1),e=e.sibling}}function Mu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Nu(t,e),t=t.sibling;else tu(t,!1)}function Nu(e,t){var n=e.alternate;if(n===null)ql(e,!1);else switch(e.tag){case 3:if(du=cu=!1,Vl(),Mu(t,e),!cu&&!uu){if(e=Bl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Np(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),du=!0}Bl=null;break;case 5:Mu(t,e);break;case 4:r=cu,cu=!1,Mu(t,e),cu&&(uu=!0),cu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Mu(t,e):ql(e,!1));break;case 30:r=cu,i=Vl(),cu=!1,Mu(t,e),cu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=di(a,o),o=di(n.memoizedProps,o);var s=pi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Hl=0,t=eu(e,n,t,o,s,a,!0),Hl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Ld(e,e.memoizedProps.onUpdate),Bl=i):i!==null&&(i.push.apply(i,Bl),Bl=i),cu=e.flags&32?!0:r;break;default:Mu(t,e)}}function Pu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)mu(e,t.alternate,t),t=t.sibling}function Fu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:xl(4,n,n.return),Fu(n,r);break;case 1:Tl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&Cl(n,n.return,i),Fu(n,r);break;case 27:r&2&&Cm(n.stateNode,n.type,n.memoizedProps);case 5:Tl(n,n.return),n.tag!==5&&n.tag!==27||Ol(n),Fu(n,r);break;case 6:Ol(n);break;case 26:Tl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||ru||i.parentNode.removeChild(i),Fu(n,r);break;case 22:n.memoizedState===null&&Fu(n,r);break;case 30:Tl(n,n.return),Fu(n,r);break;case 7:Tl(n,n.return);default:Fu(n,r)}e=e.sibling}}function Iu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Iu(i,a,n),bl(4,a);break;case 1:if(Iu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){vf(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)yo(l[i],c)}catch(e){vf(r,r.return,e)}}s&&o&64&&Sl(a),wl(a,a.return);break;case 27:n&2&&Ll(a);case 5:a.tag!==5&&a.tag!==27||Dl(a),Iu(i,a,n),s&&r===null&&o&4&&jl(a),wl(a,a.return);break;case 6:Dl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||nu||$m(Dm(c.ownerDocument),a.type,c),Iu(i,a,n),s&&r===null&&o&4&&jl(a),wl(a,a.return);break;case 12:Iu(i,a,n);break;case 31:Iu(i,a,n),s&&o&4&&Cu(i,a);break;case 13:Iu(i,a,n),s&&o&4&&wu(i,a);break;case 22:a.memoizedState===null&&Iu(i,a,n),wl(a,a.return);break;case 30:Iu(i,a,n),wl(a,a.return);break;case 7:wl(a,a.return);default:Iu(i,a,n)}t=t.sibling}}function Lu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Oa(n))}function Ru(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Oa(e))}function zu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Bu(e,t,n,r),t=t.sibling;else i&&$l(t)}function Bu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Ql(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:zu(e,t,n,r),a&2048&&bl(9,t);break;case 1:zu(e,t,n,r);break;case 3:zu(e,t,n,r),i&&du&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Oa(a)));break;case 12:if(a&2048){zu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){vf(t,t.return,e)}}else zu(e,t,n,r);break;case 31:zu(e,t,n,r);break;case 13:zu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&Ql(t),o._visibility&2?zu(e,t,n,r):(o._visibility|=2,Vu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&Ql(s),o._visibility&2?zu(e,t,n,r):Hu(e,t)),a&2048&&Lu(s,t);break;case 24:zu(e,t,n,r),a&2048&&Ru(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Gl(a.child,!0),Gl(t.child,!0))),zu(e,t,n,r);break;default:zu(e,t,n,r)}}function Vu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Vu(a,o,s,c,i),bl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Vu(a,o,s,c,i)):u._visibility&2?Vu(a,o,s,c,i):Hu(a,o),i&&l&2048&&Lu(o.alternate,o);break;case 24:Vu(a,o,s,c,i),i&&l&2048&&Ru(o.alternate,o);break;default:Vu(a,o,s,c,i)}t=t.sibling}}function Hu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Hu(n,r),i&2048&&Lu(r.alternate,r);break;case 24:Hu(n,r),i&2048&&Ru(r.alternate,r);break;default:Hu(n,r)}t=t.sibling}}var Uu=8192;function Wu(e,t,n){if(e.subtreeFlags&Uu)for(e=e.child;e!==null;)Gu(e,t,n),e=e.sibling}function Gu(e,t,n){switch(e.tag){case 26:Wu(e,t,n),e.flags&Uu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&ih(n,e)):ah(n,Ou,e.memoizedState,e.memoizedProps));break;case 5:Wu(e,t,n),e.flags&Uu&&(e=e.stateNode,(t&335544128)===t&&ih(n,e));break;case 3:case 4:var r=Ou;Ou=Dm(e.stateNode.containerInfo),Wu(e,t,n),Ou=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Uu,Uu=16777216,Wu(e,t,n),Uu=r):Wu(e,t,n));break;case 30:if((e.flags&Uu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,K===null&&(K=new Map),K.set(r,i)}Wu(e,t,n);break;default:Wu(e,t,n)}}function Ku(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function qu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];su=r,Xu(r,e)}Ku(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ju(e),e=e.sibling}function Ju(e){switch(e.tag){case 0:case 11:case 15:qu(e),e.flags&2048&&xl(9,e,e.return);break;case 3:qu(e);break;case 12:qu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Yu(e)):qu(e);break;default:qu(e)}}function Yu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];su=r,Xu(r,e)}Ku(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:xl(8,t,t.return),Yu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Yu(t));break;default:Yu(t)}e=e.sibling}}function Xu(e,t){for(;su!==null;){var n=su;switch(n.tag){case 0:case 11:case 15:xl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Oa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,su=r;else a:for(n=e;su!==null;){r=su;var i=r.sibling,a=r.return;if(vu(r),r===n){su=null;break a}if(i!==null){i.return=a,su=i;break a}su=a}}}var Zu={getCacheForType:function(e){var t=ba(Ea),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ba(Ea).controller.signal}},Qu=typeof WeakMap==`function`?WeakMap:Map,$u=0,ed=null,td=null,nd=0,rd=0,id=null,ad=!1,od=!1,sd=!1,cd=0,ld=0,ud=0,dd=0,fd=0,pd=0,md=0,hd=null,gd=null,_d=!1,vd=0,yd=0,bd=1/0,xd=null,Sd=null,Cd=0,wd=null,Td=null,Ed=0,Dd=0,Od=null,kd=null,Ad=null,jd=null,Md=null,Nd=0,Pd=null;function Fd(){return $u&2&&nd!==0?nd&-nd:L.T===null?vt():zf()}function Id(){if(pd===0){if(!(nd&536870912)||$i){var e=rt;rt<<=1,!(rt&3932160)&&(rt=262144),pd=e}else pd=536870912}return e=Eo.current,e!==null&&(e.flags|=32),pd}function Ld(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Vp(di(e.memoizedProps,n))),jd===null&&(jd=[]),jd.push(t.bind(null,r))}}function Rd(e,t,n){(e===ed&&(rd===2||rd===9)||e.cancelPendingCommit!==null)&&(Gd(e,0),Hd(e,nd,pd,!1)),ft(e,n),(!($u&2)||e!==ed)&&(e===ed&&(!($u&2)&&(dd|=n),ld===4&&Hd(e,nd,pd,!1)),jf(e))}function zd(e,t,n){if($u&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||st(e,t),a=r?$d(e,t):Zd(e,t,!0),o=r;do{if(a===0){od&&!r&&Hd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Vd(n)){a=Zd(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=hd;var l=c.current.memoizedState.isDehydrated;if(l&&(Gd(c,s).flags|=256),s=Zd(c,s,!1),s!==2&&s!==6){if(sd&&!l){c.errorRecoveryDisabledLanes|=o,dd|=o,a=4;break a}o=gd,gd=a,o!==null&&(gd===null?gd=o:gd.push.apply(gd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Gd(e,0),Hd(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Hd(r,t,pd,!ad);break a;case 2:gd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=vd+300-Be(),10<a)){if(Hd(r,t,pd,!ad),ot(r,0,!0)!==0)break a;Ed=t,r.timeoutHandle=Cp(Bd.bind(null,r,n,gd,xd,_d,t,pd,dd,md,ad,o,`Throttled`,-0,0),a);break a}Bd(r,n,gd,xd,_d,t,pd,dd,md,ad,o,null,-0,0)}break}while(1);jf(e)}function Bd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;if(d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:mn},K=null,Gu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=lh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?vd-Be():(a&4194048)===a?yd-Be():0,m=sh(d,m),m!==null)){Ed=a,e.cancelPendingCommit=m(sf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Hd(e,a,o,!l);return}sf(e,t,a,n,r,i,o,s,c,l,u,d)}function Vd(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Fr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Hd(e,t,n,r){t=ct(e,t),t&=~fd,t&=~dd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Qe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&mt(e,n,t)}function Ud(){return $u&6?!0:(Mf(0,!1),!1)}function Wd(){if(td!==null){if(rd===0)var e=td.return;else e=td,fa=da=null,ns(e),eo=null,to=0,e=td;for(;e!==null;)yl(e.alternate,e),e=e.return;td=null}}function Gd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,wp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ed=0,Wd(),ed=e,td=n=Oi(e.current,null),nd=t,rd=0,id=null,ad=!1,od=st(e,t),sd=!1,md=pd=fd=dd=ud=ld=0,gd=hd=null,_d=!1,cd=ct(e,t),vi(),n}function Kd(e,t){Ro=null,L.H=fc,t===Wa||t===Ka?(t=Qa(),rd=3):t===Ga?(t=Qa(),rd=4):rd=t===Ac?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,id=t,td===null&&(ld=1,wc(e,Ii(t,e.current)))}function qd(){var e=Eo.current;return e===null?!0:(nd&4194048)===nd?Do===null:(nd&62914560)===nd||nd&536870912?e===Do:!1}function Jd(){var e=L.H;return L.H=fc,e===null?fc:e}function Yd(){var e=L.A;return L.A=Zu,e}function Xd(){ld=4,ad||(nd&4194048)!==nd&&Eo.current!==null||(od=!0),!(ud&134217727)&&!(dd&134217727)||ed===null||Hd(ed,nd,pd,!1)}function Zd(e,t,n){var r=$u;$u|=2;var i=Jd(),a=Yd();(ed!==e||nd!==t)&&(xd=null,Gd(e,t)),t=!1;var o=ld;a:do try{if(rd!==0&&td!==null){var s=td,c=id;switch(rd){case 8:Wd(),o=6;break a;case 3:case 2:case 9:case 6:Eo.current===null&&(t=!0);var l=rd;if(rd=0,id=null,rf(e,s,c,l),n&&od){o=0;break a}break;default:l=rd,rd=0,id=null,rf(e,s,c,l)}}Qd(),o=ld;break}catch(t){Kd(e,t)}while(1);return t&&e.shellSuspendCounter++,fa=da=null,$u=r,L.H=i,L.A=a,td===null&&(ed=null,nd=0,vi()),o}function Qd(){for(;td!==null;)tf(td)}function $d(e,t){var n=$u;$u|=2;var r=Jd(),a=Yd();ed!==e||nd!==t?(xd=null,bd=Be()+500,Gd(e,t)):od=st(e,t);a:do try{if(rd!==0&&td!==null){t=td;var o=id;b:switch(rd){case 1:rd=0,id=null,rf(e,t,o,1);break;case 2:case 9:if(Ja(o)){rd=0,id=null,nf(t);break}t=function(){rd!==2&&rd!==9||ed!==e||(rd=7),jf(e)},o.then(t,t);break a;case 3:rd=7;break a;case 4:rd=5;break a;case 7:Ja(o)?(rd=0,id=null,nf(t)):(rd=0,id=null,rf(e,t,o,7));break;case 5:var s=null;switch(td.tag){case 26:s=td.memoizedState;case 5:case 27:var c=td;if(s?nh(s):c.stateNode.complete){rd=0,id=null;var l=c.sibling;if(l!==null)td=l;else{var u=c.return;u===null?td=null:(td=u,af(u))}break b}}rd=0,id=null,rf(e,t,o,5);break;case 6:rd=0,id=null,rf(e,t,o,6);break;case 8:Wd(),ld=6;break a;default:throw Error(i(462))}}ef();break}catch(t){Kd(e,t)}while(1);return fa=da=null,L.H=r,L.A=a,$u=n,td===null?(ed=null,nd=0,vi(),ld):0}function ef(){for(;td!==null&&!Re();)tf(td)}function tf(e){var t=ul(e.alternate,e,cd);e.memoizedProps=e.pendingProps,t===null?af(e):td=t}function nf(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Wc(n,t,t.pendingProps,t.type,void 0,nd);break;case 11:t=Wc(n,t,t.pendingProps,t.type.render,t.ref,nd);break;case 5:ns(t);var r=t;r===Zi&&($i?(aa(r),r.tag===5&&r.stateNode!=null&&(Qi=r.stateNode)):(aa(r),$i=!0));default:yl(n,t),t=td=ki(t,cd),t=ul(n,t,cd)}e.memoizedProps=e.pendingProps,t===null?af(e):td=t}function rf(e,t,n,r){fa=da=null,ns(t),eo=null,to=0;var i=t.return;try{if(kc(e,i,t,n,nd)){ld=1,wc(e,Ii(n,e.current)),td=null;return}}catch(t){if(i!==null)throw td=i,t;ld=1,wc(e,Ii(n,e.current)),td=null;return}t.flags&32768?($i||r===1?e=!0:od||nd&536870912?e=!1:(ad=e=!0,(r===2||r===9||r===3||r===6)&&(r=Eo.current,r!==null&&r.tag===13&&(r.flags|=16384))),of(t,e)):af(t)}function af(e){var t=e;do{if(t.flags&32768){of(t,ad);return}e=t.return;var n=_l(t.alternate,t,cd);if(n!==null){td=n;return}if(t=t.sibling,t!==null){td=t;return}td=t=e}while(t!==null);ld===0&&(ld=5)}function of(e,t){do{var n=vl(e.alternate,e);if(n!==null){n.flags&=32767,td=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){td=e;return}td=e=n}while(e!==null);ld=6,td=null}function sf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do hf();while(Cd!==0);if($u&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===ed&&(td=ed=null,nd=0),Td=t,wd=e,Ed=n,Od=a,kd=r,cf(e,t,n,s,c,l,f)}}function cf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Dd=s,s|=_i,pt(e,n,s,r,i,a),jd=null,(n&335544064)===n?(Md=ja(e),r=10262):(Md=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,wf(We,function(){return gf(),null})):(e.callbackNode=null,e.callbackPriority=0),Rl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=L.T,L.T=null,i=R.p,R.p=2,a=$u,$u|=4;try{fu(e,t,n)}finally{$u=a,R.p=i,L.T=r}}Cd=1,Rl?Ad=zp(o,e.containerInfo,Md,df,ff,uf,pf,gf,lf,null,null):(df(),ff(),pf())}function lf(e){if(Cd!==0){var t=wd.onRecoverableError;t(e,{componentStack:null})}}function uf(){Cd===3&&(Cd=0,Nu(Td,wd),Cd=4)}function df(){if(Cd===1){Cd=0;var e=wd,t=Td,n=Ed,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=L.T,L.T=null;var i=R.p;R.p=2;var a=$u;$u|=4;try{lu=uu=!1,ku(t,e,n),n=hp;var o=Vr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Br(s.ownerDocument.documentElement,s)){if(c!==null&&Hr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=zr(s,h),v=zr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}Ch=!!mp,hp=mp=null}finally{$u=a,R.p=i,L.T=r}}e.current=t,Cd=2}}function ff(){if(Cd===2){Cd=0;var e=wd,t=Td,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=L.T,L.T=null;var r=R.p;R.p=2;var i=$u;$u|=4;try{mu(e,t.alternate,t)}finally{$u=i,R.p=r,L.T=n}}Cd=3}}function pf(){if(Cd===4||Cd===3){Cd=0;var e=Ad;Ad=null,ze();var t=wd,n=Td,r=Ed,i=kd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?Cd=5:(Cd=0,Td=wd=null,mf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(Sd=null),z(r),n=n.stateNode,Xe&&typeof Xe.onCommitFiberRoot==`function`)try{Xe.onCommitFiberRoot(Ye,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=L.T,a=R.p,R.p=2,L.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{L.T=n,R.p=a}}if(i=jd,o=Md,Md=null,i!==null&&(jd=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Ed&3&&hf(),jf(t),a=t.pendingLanes,r&261930&&a&42?t===Pd?Nd++:(Nd=0,Pd=t):(Nd=0,Pd=null),Mf(0,!1)}}function mf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Oa(t)))}function hf(){return Ad!==null&&(Ad.skipTransition(),Ad=null),df(),ff(),pf(),gf()}function gf(){if(Cd!==5)return!1;var e=wd,t=Dd;Dd=0;var n=z(Ed),r=L.T,a=R.p;try{R.p=32>n?32:n,L.T=null,n=Od,Od=null;var o=wd,s=Ed;if(Cd=0,Td=wd=null,Ed=0,$u&6)throw Error(i(331));var c=$u;if($u|=4,Ju(o.current),Bu(o,o.current,s,n),$u=c,Mf(0,!1),Xe&&typeof Xe.onPostCommitFiberRoot==`function`)try{Xe.onPostCommitFiberRoot(Ye,o)}catch{}return!0}finally{R.p=a,L.T=r,mf(e,t)}}function _f(e,t,n){t=Ii(n,t),t=Ec(e.stateNode,t,2),e=po(e,t,2),e!==null&&(ft(e,2),jf(e))}function vf(e,t,n){if(e.tag===3)_f(e,e,n);else for(;t!==null;){if(t.tag===3){_f(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Sd===null||!Sd.has(r))){e=Ii(n,e),n=Dc(2),r=po(t,n,2),r!==null&&(Oc(n,r,t,e),ft(r,2),jf(r));break}}t=t.return}}function yf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Qu;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(sd=!0,i.add(n),e=bf.bind(null,e,t,n),t.then(e,e))}function bf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ed===e&&(nd&n)===n&&(ld===4||ld===3&&(nd&62914560)===nd&&300>Be()-vd?$u&2?fd|=n:Gd(e,0):fd|=n,md===nd&&(md=0)),jf(e)}function xf(e,t){t===0&&(t=ut()),e=xi(e,t),e!==null&&(ft(e,t),jf(e))}function Sf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xf(e,n)}function Cf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),xf(e,n)}function wf(e,t){return Ie(e,t)}var Tf=null,Ef=null,Df=!1,Of=!1,kf=!1,Af=0;function jf(e){e!==Ef&&e.next===null&&(Ef===null?Tf=Ef=e:Ef=Ef.next=e),Of=!0,Df||(Df=!0,Rf())}function Mf(e,t){if(!kf&&Of){kf=!0;do for(var n=!1,r=Tf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Qe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Lf(r,a))}else a=nd,a=ot(r,r===ed?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||st(r,a)||(n=!0,Lf(r,a))}r=r.next}while(n);kf=!1}}function Nf(){Pf()}function Pf(){Of=Df=!1;var e=0;Af!==0&&Sp()&&(e=Af);for(var t=Be(),n=null,r=Tf;r!==null;){var i=r.next,a=Ff(r,t);a===0?(r.next=null,n===null?Tf=i:n.next=i,i===null&&(Ef=n)):(n=r,(e!==0||a&3)&&(Of=!0)),r=i}Cd!==0&&Cd!==5||Mf(e,!1),Af!==0&&(Af=0)}function Ff(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Qe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=lt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=ed,n=nd,n=ot(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(rd===2||rd===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Le(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||st(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Le(r),z(n)){case 2:case 8:n=Ue;break;case 32:n=We;break;case 268435456:n=Ke;break;default:n=We}return r=If.bind(null,e),n=Ie(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Le(r),e.callbackPriority=2,e.callbackNode=null,2}function If(e,t){if(Cd!==0&&Cd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(hf()&&e.callbackNode!==n)return null;var r=nd;return r=ot(e,e===ed?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(zd(e,r,t),Ff(e,Be()),e.callbackNode!=null&&e.callbackNode===n?If.bind(null,e):null)}function Lf(e,t){if(hf())return null;zd(e,t,!0)}function Rf(){Dp(function(){$u&6?Ie(He,Nf):Pf()})}function zf(){if(Af===0){var e=Pa;e===0&&(e=nt,nt<<=1,!(nt&261888)&&(nt=256)),Af=e}return Af}function Bf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:pn(e)}function Vf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Bf((i[xt]||null).action),o=r.submitter;o&&(t=(t=o[xt]||null)?Bf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Fn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Af!==0){var e=new FormData(i,o);Qs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),Qs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Hf=0;Hf<ci.length;Hf++){var Uf=ci[Hf];li(Uf.toLowerCase(),`on`+(Uf[0].toUpperCase()+Uf.slice(1)))}li(ei,`onAnimationEnd`),li(ti,`onAnimationIteration`),li(ni,`onAnimationStart`),li(`dblclick`,`onDoubleClick`),li(`focusin`,`onFocus`),li(`focusout`,`onBlur`),li(ri,`onTransitionRun`),li(ii,`onTransitionStart`),li(ai,`onTransitionCancel`),li(oi,`onTransitionEnd`),V(`onMouseEnter`,[`mouseout`,`mouseover`]),V(`onMouseLeave`,[`mouseout`,`mouseover`]),V(`onPointerEnter`,[`pointerout`,`pointerover`]),V(`onPointerLeave`,[`pointerout`,`pointerover`]),Rt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Rt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Rt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Rt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Rt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Rt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Wf=`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(` `),Gf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Wf));function Kf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){mi(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){mi(e)}i.currentTarget=null,a=c}}}}function qf(e,t){var n=t[Ct];n===void 0&&(n=t[Ct]=new Set);var r=e+`__bubble`;n.has(r)||(Zf(t,e,2,!1),n.add(r))}function Jf(e,t,n){var r=0;t&&(r|=4),Zf(n,e,r,t)}var Yf=`_reactListening`+Math.random().toString(36).slice(2);function Xf(e){if(!e[Yf]){e[Yf]=!0,It.forEach(function(t){t!==`selectionchange`&&(Gf.has(t)||Jf(t,!1,e),Jf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yf]||(t[Yf]=!0,Jf(`selectionchange`,!1,t))}}function Zf(e,t,n,r){switch(Ah(t)){case 2:var i=wh;break;case 8:i=Th;break;default:i=Eh}n=i.bind(null,t,n,e),i=void 0,!wn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Qf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=At(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}xn(function(){var r=a,i=gn(n),s=[];a:{var c=si.get(e);if(c!==void 0){var l=Fn,u=e;switch(e){case`keypress`:if(An(n)===0)break a;case`keydown`:case`keyup`:l=Zn;break;case`focusin`:u=`focus`,l=Un;break;case`focusout`:u=`blur`,l=Un;break;case`beforeblur`:case`afterblur`:l=Un;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Hn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=W;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=er;break;case ei:case ti:case ni:l=G;break;case oi:l=tr;break;case`scroll`:case`scrollend`:l=Ln;break;case`wheel`:l=nr;break;case`copy`:case`cut`:case`paste`:l=Wn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Qn;break;case`submit`:l=$n;break;case`toggle`:case`beforetoggle`:l=rr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=Sn(m,p),g!=null&&d.push($f(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==hn&&(u=n.relatedTarget||n.fromElement)&&(At(u)||u[St]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?At(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Hn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Qn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Mt(c),h=l==null?u:Mt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,At(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?E(c,l,tp):null,c!==null&&np(s,u,c,d,!1),l!==null&&f!==null&&np(s,f,l,d,!0)))}a:{if(c=r?Mt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Cr;else if(_r(c)){if(wr)_=Nr;else{_=jr;var v=Ar}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&un(r.elementType)&&(_=Cr):_=Mr;if(_&&=_(e,r)){vr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Mt(r):window,e){case`focusin`:(_r(v)||v.contentEditable===`true`)&&(Wr=v,Gr=r,Kr=null);break;case`focusout`:Kr=Gr=Wr=null;break;case`mousedown`:qr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:qr=!1,Jr(s,n,i);break;case`selectionchange`:if(Ur)break;case`keydown`:case`keyup`:Jr(s,n,i)}var y;if(ar)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else pr?dr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(cr&&n.locale!==`ko`&&(pr||b!==`onCompositionStart`?b===`onCompositionEnd`&&pr&&(y=kn()):(En=i,Dn=`value`in En?En.value:En.textContent,pr=!0)),v=ep(r,b),0<v.length&&(b=new Gn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=fr(n),y!==null&&(b.data=y)))),(y=sr?mr(e,n):hr(e,n))&&(b=ep(r,`onBeforeInput`),0<b.length&&(v=new Gn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Vf(s,e,r,n,i)}Kf(s,t)})}function $f(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ep(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Sn(e,n),i!=null&&r.unshift($f(e,i,a)),i=Sn(e,t),i!=null&&r.push($f(e,i,a))),e.tag===3)return r;e=e.return}return[]}function tp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function np(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=Sn(n,a),l!=null&&o.unshift($f(n,l,c))):i||(l=Sn(n,a),l!=null&&o.push($f(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var rp=/\r\n?/g,ip=/\u0000|\uFFFD/g;function ap(e){return(typeof e==`string`?e:``+e).replace(rp,`
9
9
  `).replace(ip,``)}function op(e,t){return t=ap(t),ap(e)===t}function sp(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||on(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&on(e,``+r);else return;break;case`className`:Gt(e,`class`,r);break;case`tabIndex`:Gt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Gt(e,n,r);break;case`style`:ln(e,r,o);return;case`data`:if(t!==`object`){Gt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=pn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&sp(e,t,`name`,a.name,a,null),sp(e,t,`formEncType`,a.formEncType,a,null),sp(e,t,`formMethod`,a.formMethod,a,null),sp(e,t,`formTarget`,a.formTarget,a,null)):(sp(e,t,`encType`,a.encType,a,null),sp(e,t,`method`,a.method,a,null),sp(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=pn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=mn);return;case`onScroll`:r!=null&&qf(`scroll`,e);return;case`onScrollEnd`:r!=null&&qf(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=pn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:qf(`beforetoggle`,e),qf(`toggle`,e),Wt(e,`popover`,r);break;case`xlinkActuate`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Wt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=dn.get(n)||n,Wt(e,n,r);else return}Ht=!0}function cp(e,t,n,r,a,o){switch(n){case`style`:ln(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)on(e,r);else if(typeof r==`number`||typeof r==`bigint`)on(e,``+r);else return;break;case`onScroll`:r!=null&&qf(`scroll`,e);return;case`onScrollEnd`:r!=null&&qf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=mn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Lt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[xt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}Ht=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Wt(e,n,r)}return}Ht=!0}function lp(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:qf(`error`,e),qf(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:sp(e,t,o,s,n,null)}}a&&sp(e,t,`srcSet`,n.srcSet,n,null),r&&sp(e,t,`src`,n.src,n,null);return;case`input`:qf(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:sp(e,t,r,d,n,null)}}en(e,o,c,l,u,s,a,!1);return;case`select`:for(a in qf(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:sp(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&nn(e,!!r,n,!0):nn(e,!!r,t,!1);return;case`textarea`:for(s in qf(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:sp(e,t,s,c,n,null)}an(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:sp(e,t,l,r,n,null)}return;case`dialog`:qf(`beforetoggle`,e),qf(`toggle`,e),qf(`cancel`,e),qf(`close`,e);break;case`iframe`:case`object`:qf(`load`,e);break;case`video`:case`audio`:for(r=0;r<Wf.length;r++)qf(Wf[r],e);break;case`image`:qf(`error`,e),qf(`load`,e);break;case`details`:qf(`toggle`,e);break;case`embed`:case`source`:case`link`:qf(`error`,e),qf(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:sp(e,t,u,r,n,null)}return;default:if(un(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&cp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&sp(e,t,c,r,n,null))}var up={};function dp(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||sp(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(Ht=!0),o=m;break;case`name`:m!==f&&(Ht=!0),a=m;break;case`checked`:m!==f&&(Ht=!0),u=m;break;case`defaultChecked`:m!==f&&(Ht=!0),d=m;break;case`value`:m!==f&&(Ht=!0),s=m;break;case`defaultValue`:m!==f&&(Ht=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&sp(e,t,p,m,r,f)}}$t(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||sp(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(Ht=!0),p=o;break;case`defaultValue`:o!==l&&(Ht=!0),c=o;break;case`multiple`:o!==l&&(Ht=!0),s=o;default:o!==l&&sp(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?nn(e,!!n,n?[]:``,!1):nn(e,!!n,t,!0)):nn(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:sp(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(Ht=!0),p=a;break;case`defaultValue`:a!==o&&(Ht=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&sp(e,t,s,a,r,o)}rn(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:sp(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(Ht=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:sp(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&sp(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:sp(e,t,u,p,r,m)}return;default:if(un(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&cp(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||cp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&sp(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||sp(e,t,f,p,r,m)}function fp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function pp(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&fp(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&fp(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var mp=null,hp=null;function gp(e){return e.nodeType===9?e:e.ownerDocument}function _p(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function vp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function yp(e,t,n,r){return n=gp(n).createElement(e),n[B]=r,n[xt]=t,lp(n,e,t),Pt(n),n}function bp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var xp=null;function Sp(){var e=window.event;return e&&e.type===`popstate`?e!==xp&&(xp=e,!0):(xp=null,!1)}var Cp=typeof setTimeout==`function`?setTimeout:void 0,wp=typeof clearTimeout==`function`?clearTimeout:void 0,Tp=typeof Promise==`function`?Promise:void 0,Ep=typeof requestAnimationFrame==`function`?requestAnimationFrame:Cp,Dp=typeof queueMicrotask==`function`?queueMicrotask:Tp===void 0?Cp:function(e){return Tp.resolve(null).then(e).catch(Op)};function Op(e){setTimeout(function(){throw e})}function kp(e){return e===`head`}function Ap(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Yh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)wm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,wm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Dt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&wm(e.ownerDocument.body)}n=i}while(n);Yh(t)}function jp(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function Mp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Np(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Pp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Fp(e){return Pp(e.getBoundingClientRect(),getComputedStyle(e),e)}function Ip(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Pp(t,n,e)}function Lp(e){return e.documentElement.clientHeight}function Rp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function zp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Lp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=rh(f),u>oh){s.length=o;break}f=new Promise(Rp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Bp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Bp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:D({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Bp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Bp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Vp(e){return{name:e,group:new Bp(`group`,e),imagePair:new Bp(`image-pair`,e),old:new Bp(`old`,e),new:new Bp(`new`,e)}}function Hp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Hp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(qp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Gp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),p(this._fragmentFiber.child,!1,Up,e,s,r)}this._eventListeners=a}};function Up(e,t,n,r){return b(e).addEventListener(t,n,r),!1}Hp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=qp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Gp(i.optionsOrUseCapture),p(this._fragmentFiber.child,!1,Wp,e,n,i),r.splice(t,1),a!==null&&a()}};function Wp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Gp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Kp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function qp(e,t,n,r){if(e.length===0)return-1;r=Kp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Kp(a.optionsOrUseCapture)===r)return i}return-1}Hp.prototype.dispatchEvent=function(e){var t=h(this._fragmentFiber);if(t===null)return!0;t=b(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Gp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Gp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Hp.prototype.focus=function(e){p(this._fragmentFiber.child,!0,Jp,e,void 0,void 0)};function Jp(e,t){return e.tag!==6&&(e=b(e),bm(e,t))}Hp.prototype.focusLast=function(e){var t=[];p(this._fragmentFiber.child,!0,Yp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Jp(t[n],e);n--);};function Yp(e,t){return t.push(e),!1}Hp.prototype.blur=function(){var e=h(this._fragmentFiber);e!==null&&(e=b(e),e=gp(e).activeElement,e!==null&&p(this._fragmentFiber.child,!1,Xp,e,void 0,void 0))};function Xp(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Hp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),p(this._fragmentFiber.child,!1,Zp,e,void 0,void 0)};function Zp(e,t){return e.tag!==6&&(e=b(e),t.observe(e),!1)}Hp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),p(this._fragmentFiber.child,!1,Qp,e,void 0,void 0);for(var n=t=0;n<$p.length;n++){var r=$p[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):$p[t++]=r}$p.length=t}};function Qp(e,t){return e.tag!==6&&(e=b(e),t.unobserve(e),!1)}var $p=[],em=!1;function tm(e,t,n){$p.push({fragmentInstance:e,observer:t,instance:n}),em||(em=!0,xm(function(){em=!1;var e=$p;$p=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Hp.prototype.getClientRects=function(){var e=[];return p(this._fragmentFiber.child,!1,nm,e,void 0,void 0),e};function nm(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=b(e),t.push.apply(t,e.getClientRects());return!1}Hp.prototype.getRootNode=function(e){var t=h(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Hp.prototype.compareDocumentPosition=function(e){var t=h(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];p(this._fragmentFiber.child,!1,Yp,n,void 0,void 0);var r=b(t);if(n.length===0){if(n=r,_(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=v(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=b(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=b(n[0]),i=b(n[n.length-1]);var a=_(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||rm(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function rm(e,t,n,r,i){var a=At(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=h(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=E(n,a,T),t===null?t=!1:(p(t,!0,C,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=E(r,a,T),t===null?t=!1:(p(t,!0,w,a,r),a=x,S=x=null,t=a!==null)),t):!1}function im(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Hp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];p(this._fragmentFiber.child,!1,Yp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=v(this._fragmentFiber);if(r=n?r[1]||r[0]||h(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=b(r),im(e,n);return}if(r=b(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=b(a),im(a,n)):b(a).scrollIntoView(e),r+=n?-1:1}};function am(e,t){return e=b(e),om(e,t),!1}function om(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function sm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Gp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<$p.length;i++){var a=$p[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&($p[r++]=a)}$p.length=r,n.observe(e)}),om(e,t))}function cm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Gp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?tm(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function lm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:lm(n),kt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function um(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[Dt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=gm(e.nextSibling),e===null)break}return null}function dm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=gm(e.nextSibling),e===null))return null;return e}function fm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=gm(e.nextSibling),e===null))return null;return e}function pm(e){return e.data===`$?`||e.data===`$~`}function mm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function hm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function gm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var _m=null;function vm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return gm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function ym(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function bm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function xm(e){Ep(function(){Ep(function(t){return e(t)})})}function Sm(e,t,n){switch(t=gp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Cm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&sp(e,t,r,null,up,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===mn&&(e.onclick=null),kt(e)}function wm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);kt(e)}var Tm=new Map,Em=new Set;function Dm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Om=R.d;R.d={f:km,r:Am,D:Nm,C:Pm,L:Fm,m:Im,X:Rm,S:Lm,M:zm};function km(){var e=Om.f(),t=Ud();return e||t}function Am(e){var t=jt(e);t!==null&&t.tag===5&&t.type===`form`?ec(t):Om.r(e)}var jm=typeof document>`u`?null:document;function Mm(e,t,n){var r=jm;if(r&&typeof t==`string`&&t){var i=Qt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Em.has(i)||(Em.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),lp(t,`link`,e),Pt(t),r.head.appendChild(t)))}}function Nm(e){Om.D(e),Mm(`dns-prefetch`,e,null)}function Pm(e,t){Om.C(e,t),Mm(`preconnect`,e,t)}function Fm(e,t,n){Om.L(e,t,n);var r=jm;if(r&&e&&t){var i=`link[rel="preload"][as="`+Qt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Qt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Qt(n.imageSizes)+`"]`)):i+=`[href="`+Qt(e)+`"]`;var a=i;switch(t){case`style`:a=Vm(e);break;case`script`:a=Gm(e)}if(!(Tm.has(a)||(e=D({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Tm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Hm(a))||t===`script`&&r.querySelector(Km(a))))){var o=r.createElement(`link`);lp(o,`link`,e),t===`style`&&(o[Ot]=!0,o.onload=o.onerror=function(){Ft(o)}),Pt(o),r.head.appendChild(o)}}}function Im(e,t){Om.m(e,t);var n=jm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Qt(r)+`"][href="`+Qt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Gm(e)}if(!Tm.has(a)&&(e=D({rel:`modulepreload`,href:e},t),Tm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Km(a)))return}r=n.createElement(`link`),lp(r,`link`,e),Pt(r),n.head.appendChild(r)}}}function Lm(e,t,n){Om.S(e,t,n);var r=jm;if(r&&e){var i=Nt(r).hoistableStyles,a=Vm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Hm(a)))s.loading=5;else{e=D({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Tm.get(a))&&Ym(e,n);var c=o=r.createElement(`link`);Pt(c),lp(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Jm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Rm(e,t){Om.X(e,t);var n=jm;if(n&&e){var r=Nt(n).hoistableScripts,i=Gm(e),a=r.get(i);a||(a=n.querySelector(Km(i)),a||(e=D({src:e,async:!0},t),(t=Tm.get(i))&&Xm(e,t),a=n.createElement(`script`),Pt(a),lp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function zm(e,t){Om.M(e,t);var n=jm;if(n&&e){var r=Nt(n).hoistableScripts,i=Gm(e),a=r.get(i);a||(a=n.querySelector(Km(i)),a||(e=D({src:e,async:!0,type:`module`},t),(t=Tm.get(i))&&Xm(e,t),a=n.createElement(`script`),Pt(a),lp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Bm(e,t,n,r){var a=(a=Se.current)?Dm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Vm(n.href),t=Nt(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Vm(n.href);var o=Nt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Hm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=Tm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Tm.set(e,o)),Wm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Gm(n),t=Nt(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Vm(e){return`href="`+Qt(e)+`"`}function Hm(e){return`link[rel="stylesheet"][`+e+`]`}function Um(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function Wm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Ot]){r.loading=1;return}}else t=e.createElement(`link`),t[Ot]=!0,t.onload=t.onerror=Ft.bind(null,t),lp(t,`link`,n),Pt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Gm(e){return`[src="`+Qt(e)+`"]`}function Km(e){return`script[async]`+e}function qm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Qt(n.href)+`"]`);if(r)return t.instance=r,Pt(r),r;var a=D({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Pt(r),lp(r,`style`,a),Jm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Vm(n.href);var o=e.querySelector(Hm(a));if(o)return t.state.loading|=4,t.instance=o,Pt(o),o;r=Um(n),(a=Tm.get(a))&&Ym(r,a),o=(e.ownerDocument||e).createElement(`link`),Pt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),lp(o,`link`,r),t.state.loading|=4,Jm(o,n.precedence,e),t.instance=o;case`script`:return o=Gm(n.src),(a=e.querySelector(Km(o)))?(t.instance=a,Pt(a),a):(r=n,(a=Tm.get(o))&&(r=D({},n),Xm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Pt(a),lp(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Jm(r,n.precedence,e));return t.instance}function Jm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Ym(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Xm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Zm=null;function Qm(e,t,n){if(Zm===null){var r=new Map,i=Zm=new Map;i.set(n,r)}else i=Zm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Dt]||a[B]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function $m(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function eh(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function th(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function nh(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function rh(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function ih(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=rh(t),e.suspenseyImages.push(t)),e=uh.bind(e),t.decode().then(e,e))}function ah(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Vm(r.href),a=t.querySelector(Hm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=lh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Pt(a);return}a=t.ownerDocument||t,r=Um(r),(i=Tm.get(i))&&Ym(r,i),a=a.createElement(`link`),Pt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),lp(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=lh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var oh=0;function sh(e,t){return e.stylesheets&&e.count===0&&fh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&fh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&oh===0&&(oh=62500*pp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&fh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>oh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ch(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)fh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function lh(){this.count--,ch(this)}function uh(){this.imgCount--,ch(this)}var dh=null;function fh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,dh=new Map,t.forEach(ph,e),dh=null,lh.call(e))}function ph(e,t){if(!(t.state.loading&4)){var n=dh.get(e);if(n)var r=n.get(null);else{n=new Map,dh.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=lh.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var mh={$$typeof:P,Provider:null,Consumer:null,_currentValue:me,_currentValue2:me,_threadCount:0};function hh(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=dt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dt(0),this.hiddenUpdates=dt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function gh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new hh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Ei(3,null,null,t),e.current=a,a.stateNode=e,t=Da(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},lo(a),e}function _h(e){return e?(e=wi,e):wi}function vh(e,t,n,r,i,a){i=_h(i),r.context===null?r.context=i:r.pendingContext=i,r=fo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=po(e,r,t),n!==null&&(Rd(n,e,t),mo(n,e,t))}function yh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function bh(e,t){yh(e,t),(e=e.alternate)&&yh(e,t)}function xh(e){if(e.tag===13||e.tag===31){var t=xi(e,67108864);t!==null&&Rd(t,e,67108864),bh(e,67108864)}}function Sh(e){if(e.tag===13||e.tag===31){var t=Fd();t=_t(t);var n=xi(e,t);n!==null&&Rd(n,e,t),bh(e,t)}}var Ch=!0;function wh(e,t,n,r){var i=L.T;L.T=null;var a=R.p;try{R.p=2,Eh(e,t,n,r)}finally{R.p=a,L.T=i}}function Th(e,t,n,r){var i=L.T;L.T=null;var a=R.p;try{R.p=8,Eh(e,t,n,r)}finally{R.p=a,L.T=i}}function Eh(e,t,n,r){if(Ch){var i=Dh(r);if(i===null)Qf(e,t,r,Oh,n),zh(e,r);else if(Vh(i,e,t,n,r))r.stopPropagation();else if(zh(e,r),t&4&&-1<Rh.indexOf(e)){for(;i!==null;){var a=jt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=at(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Qe(o);s.entanglements[1]|=c,o&=~c}jf(a),!($u&6)&&(bd=Be()+500,Mf(0,!1))}}break;case 31:case 13:s=xi(a,2),s!==null&&Rd(s,a,2),Ud(),bh(a,2)}if(a=Dh(r),a===null&&Qf(e,t,r,Oh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Qf(e,t,r,null,n)}}function Dh(e){return e=gn(e),kh(e)}var Oh=null;function kh(e){if(Oh=null,e=At(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Oh=e,null}function Ah(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ve()){case He:return 2;case Ue:return 8;case We:case Ge:return 32;case Ke:return 268435456;default:return 32}default:return 32}}var jh=!1,Mh=null,Nh=null,Ph=null,Fh=new Map,Ih=new Map,Lh=[],Rh=`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 zh(e,t){switch(e){case`focusin`:case`focusout`:Mh=null;break;case`dragenter`:case`dragleave`:Nh=null;break;case`mouseover`:case`mouseout`:Ph=null;break;case`pointerover`:case`pointerout`:Fh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Ih.delete(t.pointerId)}}function Bh(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=jt(t),t!==null&&xh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Vh(e,t,n,r,i){switch(t){case`focusin`:return Mh=Bh(Mh,e,t,n,r,i),!0;case`dragenter`:return Nh=Bh(Nh,e,t,n,r,i),!0;case`mouseover`:return Ph=Bh(Ph,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Fh.set(a,Bh(Fh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Ih.set(a,Bh(Ih.get(a)||null,e,t,n,r,i)),!0}return!1}function Hh(e){var t=At(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,yt(e.priority,function(){Sh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,yt(e.priority,function(){Sh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Uh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Dh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);hn=r,n.target.dispatchEvent(r),hn=null}else return t=jt(n),t!==null&&xh(t),e.blockedOn=n,!1;t.shift()}return!0}function Wh(e,t,n){Uh(e)&&n.delete(t)}function Gh(){jh=!1,Mh!==null&&Uh(Mh)&&(Mh=null),Nh!==null&&Uh(Nh)&&(Nh=null),Ph!==null&&Uh(Ph)&&(Ph=null),Fh.forEach(Wh),Ih.forEach(Wh)}function Kh(e,n){e.blockedOn===n&&(e.blockedOn=null,jh||(jh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Gh)))}var qh=null;function Jh(e){qh!==e&&(qh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){qh===e&&(qh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(kh(r||n)===null)continue;break}var a=jt(n);a!==null&&(e.splice(t,3),t-=3,Qs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Yh(e){function t(t){return Kh(t,e)}Mh!==null&&Kh(Mh,e),Nh!==null&&Kh(Nh,e),Ph!==null&&Kh(Ph,e),Fh.forEach(t),Ih.forEach(t);for(var n=0;n<Lh.length;n++){var r=Lh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Lh.length&&(n=Lh[0],n.blockedOn===null);)Hh(n),n.blockedOn===null&&Lh.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[xt]||null;if(typeof a==`function`)o||Jh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[xt]||null)s=o.formAction;else if(kh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Jh(n)}}}function Xh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Zh(e){this._internalRoot=e}Qh.prototype.render=Zh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;vh(n,Fd(),e,t,null,null)},Qh.prototype.unmount=Zh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;vh(e.current,2,null,e,null,null),Ud(),t[St]=null}};function Qh(e){this._internalRoot=e}Qh.prototype.unstable_scheduleHydration=function(e){if(e){var t=vt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lh.length&&t!==0&&t<Lh[n].priority;n++);Lh.splice(n,0,e),n===0&&Hh(e)}};var $h=n.version;if($h!==`19.3.0`)throw Error(i(527,$h,`19.3.0`));R.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var eg={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:L,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var tg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tg.isDisabled&&tg.supportsFiber)try{Ye=tg.inject(eg),Xe=tg}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=xc,s=Sc,c=Cc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=gh(e,1,!1,null,null,n,r,null,o,s,c,Xh),e[St]=t.current,Xf(e),new Zh(t)},e.hydrateRoot=function(e,t,n){if(!a(e))throw Error(i(299));var r=!1,o=``,s=xc,c=Sc,l=Cc,u=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=gh(e,1,!0,t,n??null,r,o,u,s,c,l,Xh),t.context=_h(null),n=t.current,r=Fd(),r=_t(r),o=fo(r),o.callback=null,po(n,o,r),n=r,t.current.lanes=n,ft(t,n),jf(t),e[St]=t.current,Xf(e),new Qh(t)}})),v=s(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=_()}));function y(e,t){if(t===`.`||t===`..`)throw TypeError(`Route param "${e}" cannot be "${t}"; it would change the request path.`);return encodeURIComponent(t)}function b(e,t){if(!t)return e;let n=e.search(/[?#]/),r=n===-1?e:e.slice(0,n),i=n===-1?``:e.slice(n),a,o=r.replace(/(^|\/):([^/{}]+)(\{\.\+\})?(?=\/|$)/g,(e,n,r,i,o)=>{if(!Object.hasOwn(t,r))return e;o===0&&(a=r);let s=t[r];return n+(i?s.split(`/`).map(e=>y(r,e)).join(`/`):y(r,s))});if(o.startsWith(`//`)&&!r.startsWith(`//`))throw TypeError(`Route param "${a??``}" would make the request path start with "//", which changes the request host.`);return o+i}var x=o((()=>{}));function S(e){if(!e||typeof e!=`object`)return null;let t=e;return t.code!==`usage_limit`||typeof t.message!=`string`||![`ai`,`sandbox`,`requests`,`execution`].includes(String(t.resource))||![`monthly_quota`,`rate_limit`,`concurrency`,`runtime_budget`,`cpu`].includes(String(t.reason))?null:{code:`usage_limit`,resource:t.resource,reason:t.reason,message:t.message,...typeof t.retryAt==`string`&&Number.isFinite(Date.parse(t.retryAt))?{retryAt:t.retryAt}:{}}}var C=o((()=>{}));function w(e){switch(e){case 400:case 402:case 404:case 408:case 409:case 412:case 413:case 415:case 422:case 429:case 499:return`callSite`;default:return`boundary`}}function T(e){return typeof e==`object`&&!!e&&`name`in e&&e.name===`VoidActionError`&&`status`in e&&typeof e.status==`number`&&w(e.status)===`callSite`}function E(e){return typeof e==`object`&&!!e&&`name`in e&&e.name===`AbortError`}async function D(e){let t=e.headers.get(`content-type`)||``;try{return t.includes(`application/json`)?await e.json():await e.text()||null}catch{return null}}async function O(e,t){return new k({body:await D(e),status:e.status,statusText:e.statusText,url:t})}var k,A=o((()=>{C(),k=class extends Error{body;limit;status;statusText;url;constructor({body:e,status:t,statusText:n,url:r}){let i=t===429?S(e):null;super(i?.message??(n?`Action failed with ${t} ${n}`:`Action failed with ${t}`)),this.name=`VoidActionError`,this.body=e,this.limit=i,this.status=t,this.statusText=n,this.url=r}}}));function j(e){let t=Object.entries(e.attrs).sort(([e],[t])=>e.localeCompare(t));return`${encodeURIComponent(e.tag)}:${t.map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join(`&`)}`}function M(e){let t={};for(let n of Array.from(e.attributes))n.name!==F&&(t[n.name]=n.value);return j({tag:e.tagName.toLowerCase(),attrs:t})}function N(e){let t=document.createElement(e.tag);for(let[n,r]of Object.entries(e.attrs))t.setAttribute(n,r);return t.setAttribute(F,``),t}function ee(e){let t=[];if(e.meta)for(let n of e.meta){let e={};n.charset&&(e.charset=n.charset),n.name&&(e.name=n.name),n.property&&(e.property=n.property),n.content!==void 0&&(e.content=n.content),t.push({tag:`meta`,attrs:e})}if(e.link)for(let n of e.link){let e={};for(let[t,r]of Object.entries(n))r!=null&&(e[t]=r);t.push({tag:`link`,attrs:e})}return t}function P(e){if(e){if(e.meta)for(let t of e.meta){let e=t.charset?`meta[charset]`:t.property?`meta[property="${t.property}"]`:t.name?`meta[name="${t.name}"]`:null;if(!e)continue;let n=document.head.querySelector(e);n&&n.setAttribute(F,``)}if(e.link)for(let t of e.link){let e=document.head.querySelector(`link[rel="${t.rel}"][href="${t.href}"]`);e&&e.setAttribute(F,``)}}}function te(e){let t=new Map;for(let e of document.head.querySelectorAll(`[${F}]`)){let n=M(e),r=t.get(n);r?r.push(e):t.set(n,[e])}let n=[];for(let r of e?ee(e):[]){let e=j(r),i=t.get(e),a=i?.shift();i&&i.length===0&&t.delete(e),n.push(a??N(r))}for(let e of t.values())for(let t of e)t.remove();let r=document.head.querySelector(`[${F}]`);for(let e of n)e!==r&&document.head.insertBefore(e,r),r=e.nextSibling;e?.title!==void 0&&(document.title=e.title)}var F,ne=o((()=>{F=`data-void-head`}));function I(e){let t=e.match(/^(\d+(?:\.\d+)?)\s*(ms|s|m|h|d)$/);if(!t)throw Error(`prefetch: Invalid cacheFor value '${e}'. Use a number with ms, s, m, h, or d.`);return Number(t[1])*ie[t[2]]}function re(e){if(typeof e==`number`)return{stale:e,expires:e};if(Array.isArray(e))return{stale:I(e[0]),expires:I(e[1])};let t=I(e);return{stale:t,expires:t}}var ie,ae,oe=o((()=>{ie={ms:1,s:1e3,m:6e4,h:36e5,d:864e5},ae=class{entries=new Map;key(e,t=`GET`){return`${t}:${e}`}has(e,t=`GET`){return this.get(e,t)!==null}get(e,t=`GET`){let n=this.entries.get(this.key(e,t));return n?Date.now()>=n.expiresAt&&!n.singleUse?(this.entries.delete(this.key(e,t)),null):n:null}isFresh(e){return Date.now()<e.staleAt}isUsable(e){return Date.now()<e.expiresAt||e.singleUse}set(e,t,n,r){let i=this.key(e,t),a=this.entries.get(i);if(a&&this.isUsable(a))return;let o=Date.now(),s=r.stale===0&&r.expires===0,c={url:e,method:t,response:n,staleAt:o+r.stale,expiresAt:o+r.expires,singleUse:s,timer:null};!s&&r.expires>0&&(c.timer=setTimeout(()=>this.entries.delete(i),r.expires)),this.entries.set(i,c)}consume(e,t=`GET`){let n=this.entries.get(this.key(e,t));n?.singleUse&&(n.timer&&clearTimeout(n.timer),this.entries.delete(this.key(e,t)))}flush(e,t=`GET`){let n=this.key(e,t),r=this.entries.get(n);r?.timer&&clearTimeout(r.timer),this.entries.delete(n)}flushAll(){for(let e of this.entries.values())e.timer&&clearTimeout(e.timer);this.entries.clear()}}}));function se(e){return typeof e?.__voidScrollKey==`string`?e.__voidScrollKey:null}function ce(e){if(!e||typeof e!=`object`)return null;let{x:t,y:n}=e;return typeof t==`number`&&Number.isFinite(t)&&typeof n==`number`&&Number.isFinite(n)?{x:t,y:n}:null}function le(){return crypto.getRandomValues(new Uint32Array(4)).join(`-`)}function ue(){return window.location.pathname+window.location.search+window.location.hash}function de(){let e=new Map,t=null,n=ue(),r=!1;function i(t){if(!t)return null;let n=e.get(t);if(n)return n;try{let e=ce(JSON.parse(sessionStorage.getItem(fe+t)||`null`));if(e)return e}catch{}return null}function a(){if(!r||!t)return;let n={x:window.scrollX,y:window.scrollY};e.set(t,n);try{sessionStorage.setItem(fe+t,JSON.stringify(n))}catch{}}return{get ready(){return r},start(){return t=se(history.state),t||(t=le(),history.replaceState({...history.state,__voidScrollKey:t},``)),history.scrollRestoration=`manual`,window.addEventListener(`pagehide`,a),i(t)},save:a,writeHistory(e,n){t=le();let r={...n?history.state:{},__voidScrollKey:t};n?history.replaceState(r,``,e):history.pushState(r,``,e)},commit(){t=se(history.state)??t,n=ue(),r=!0},pop(e){a();let r=se(e),o=r===t&&ue()!==n;return(!r||o)&&(r=le(),history.replaceState({...e,__voidScrollKey:r},``)),o?null:i(r)??ce({x:e?.scrollX,y:e?.scrollY})}}}var fe,pe=o((()=>{fe=`void:scroll:`}));function L(e){return typeof File<`u`&&e instanceof File||e instanceof Blob||typeof FileList<`u`&&e instanceof FileList&&e.length>0}function R(e){return L(e)||typeof e==`object`&&!!e&&Object.values(e).some(R)}function me(e,t,n){t||=new FormData;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=n?n+`[`+r+`]`:r,a=e[r];if(a instanceof File)t.append(i,a,a.name);else if(a instanceof Blob)t.append(i,a);else if(typeof FileList<`u`&&a instanceof FileList)for(let e=0;e<a.length;e++)t.append(i+`[]`,a[e],a[e].name);else if(Array.isArray(a))for(let e=0;e<a.length;e++)me({[e]:a[e]},t,i);else a instanceof Date?t.append(i,a.toISOString()):typeof a==`boolean`?t.append(i,a?`1`:`0`):typeof a==`string`?t.append(i,a):typeof a==`number`?t.append(i,String(a)):a==null?t.append(i,``):me(a,t,i)}return t}function he(e){return JSON.parse(JSON.stringify(e))}function ge(){let e=document.getElementById(Se);if(e?.textContent)return JSON.parse(e.textContent);throw Error(`pages: Missing initial page payload.`)}function _e(e){let t=new DOMParser().parseFromString(e,`text/html`).getElementById(Se);if(!t?.textContent)return null;try{return JSON.parse(t.textContent)}catch{return null}}function ve(){return new DOMException(`Navigation aborted`,`AbortError`)}function ye(e){return e.aborted?Promise.reject(ve()):new Promise((t,n)=>{e.addEventListener(`abort`,()=>n(ve()),{once:!0})})}async function be(e,t){try{return await fetch(e,t)}catch(e){if(t.signal?.aborted||E(e))throw ve();return null}}async function xe(e){let{adapter:t,components:n,layoutTree:r,routeMeta:i,matchRoute:a,staticPageData:o=!1,staticPageDataFastPath:s=o,prefetchHoverDelay:c,prefetchDefaultCacheFor:l,cacheVisitedPageData:u=!1}=e,d=new ae,f=0,p=null,m=null,h=null,g=null,_=window.location.pathname+window.location.search,v=null,y=null,b=window.location.pathname+window.location.search+window.location.hash,x=de();async function S(e){let t=n[e];if(!t)throw Error(`pages: Unknown page component '${e}'.`);return(await t()).default}async function C(e){let t=r[e]||[];return Promise.all(t.map(async e=>(await n[e]()).default))}function w(e){let{pathname:t}=new URL(e||`/`,window.location.origin),n=t===`/`?`index`:t.replace(/^\/+/,``);return`${Ce}/${n}.json`}function T(e,t){return typeof e==`object`&&!!e&&`component`in e&&typeof e.component==`string`&&`props`in e&&typeof e.props==`object`&&e.props!==null&&e.component===t&&!i[e.component]?.island&&!!n[e.component]}class D{active=!0;keyRefs={};props={};groups={};preservedSource=null;preservedKeys=null;setup(e,n=!1){if(this.props=e.props,this.keyRefs={},this.groups={},e.deferredKeys)for(let[r,i]of Object.entries(e.deferredKeys)){let a=t.createDeferred(),o=n?t.resolveDeferred(a,e.props[r]):a;this.keyRefs[r]=o,this.props[r]=o,(this.groups[i]??=[]).push(r)}}preserveValuesFrom(e,t){if(!e)return;let n=e.applyPreservedValues(t);n&&(this.preservedSource=e,this.preservedKeys=n)}commitPreservedValues(e,t){return!this.preservedSource||this.preservedSource!==e||!this.preservedKeys?null:(this.preservedSource.retainOnly(this.preservedKeys,t.props),this.preservedSource)}applyPreservedValues(e){let t=null;for(let n of Object.keys(this.keyRefs))e.props[n]===null&&this.props[n]!==void 0&&(e.props[n]=this.props[n],(t??=new Set).add(n));return t}resolve(e,n,r){if(this.active){if(n!==void 0){if(typeof n==`object`&&n&&!Array.isArray(n)){let t=!1;for(let[e,r]of Object.entries(n))this.keyRefs[e]&&(this.resolveKey(e,r),t=!0);t||this.resolveGroup(e,n)}else this.resolveGroup(e,n)}else r!==void 0&&this.rejectGroup(e,typeof r==`string`?r:String(r));t.onDeferredUpdate?.(this.props)}}rejectPending(e,n=!0){if(this.active){for(let[n,r]of Object.entries(this.keyRefs))if(t.isLoading(r)){let i=t.rejectDeferred(r,e);this.keyRefs[n]=i,this.props[n]=i}n&&t.onDeferredUpdate?.(this.props)}}dispose(){this.active&&=(this.rejectPending(`Navigation disposed before deferred props resolved`,!1),!1)}retainOnly(e,n){let r={},i={};for(let[i,a]of Object.entries(this.keyRefs))e.has(i)?(r[i]=a,n[i]=this.props[i]):t.isLoading(a)&&t.rejectDeferred(a,`Navigation disposed before deferred props resolved`);for(let[t,n]of Object.entries(this.groups)){let r=n.filter(t=>e.has(t));r.length>0&&(i[t]=r)}this.props=n,this.keyRefs=r,this.groups=i,t.onDeferredUpdate?.(this.props)}resolveGroup(e,t){let n=this.groups[e]??(this.keyRefs[e]?[e]:[]);for(let e of n)this.resolveKey(e,t)}resolveKey(e,n){let r=this.keyRefs[e];if(!r||!t.isLoading(r))return;let i=t.resolveDeferred(r,n);this.keyRefs[e]=i,this.props[e]=i}rejectGroup(e,n){let r=this.groups[e]??Object.keys(this.keyRefs);for(let e of r){let r=this.keyRefs[e];if(r&&t.isLoading(r)){let i=t.rejectDeferred(r,n);this.keyRefs[e]=i,this.props[e]=i}}}}let k=new WeakMap,A=new WeakMap;function j(e){let t=a(e||window.location.pathname+window.location.search);return t&&!i[t]?.island&&n[t]?t:null}async function M(e,t){let n=j(e);if(!n)return null;try{let r=await fetch(w(e),{headers:{Accept:`application/json`},signal:t});if(r.ok){let e=await r.json();if(T(e,n))return{pageData:e,resolvedDeferred:!0}}}catch(e){if(t?.aborted||E(e))throw ve()}return null}async function N(e,t,n,r=!1){if(!t.ok)return null;let i=j(e);if(!i)return null;let a=t.headers.get(`content-type`)||``;if(a&&!a.includes(`text/html`))return null;if(r){let r=_e(await t.text());return T(r,i)?r.deferredKeys?M(e,n):{pageData:r,resolvedDeferred:!1}:null}let o=await M(e,n);if(o)return o;let s=_e(await t.text());return!T(s,i)||s.deferredKeys?null:{pageData:s,resolvedDeferred:!1}}function ee(e){let t={"X-VoidPages":`true`,Accept:`application/json`,Purpose:`prefetch`};return(o&&s?M(e).then(e=>e?.pageData):Promise.resolve(void 0)).then(n=>n===void 0?be(e,{method:`GET`,headers:t}).then(async t=>!t||t.redirected?null:t.headers.get(`X-VoidPages`)?t.json():(await N(e,t,void 0,!s))?.pageData??null):n)}function F(e,t){if(e){window.scrollTo(e.x,e.y);return}if(t){let e=document.getElementById(t.slice(1));if(e){e.scrollIntoView();return}}window.scrollTo(0,0)}let ne=window;ne.__resolveDeferred=(e,t)=>g?.resolve(e,t,void 0),ne.__rejectDeferred=(e,t)=>g?.resolve(e,void 0,t);function I(e,t,n,r){_=e,r&&x.writeHistory(e+t,!!n.replace),x.commit(),F(n._scrollPosition,t)}async function ie(e,t,n,r,i,c,p,m){let g=new URL(t,window.location.origin);if(g.protocol!==`http:`&&g.protocol!==`https:`)throw Error(`Void Router: refusing to navigate to a ${g.protocol} URL.`);if(g.origin!==window.location.origin){if(r!==`GET`)throw Error(`Void Router: non-GET visits must target the current origin.`);window.location.href=t;return}r!==`GET`&&d.flushAll();let _={"X-VoidPages":`true`,Accept:`application/json`},v={method:r,headers:_,signal:c};i.data&&r!==`GET`&&(R(i.data)?v.body=me(i.data):(_[`Content-Type`]=`application/json`,v.body=JSON.stringify(i.data)));let y,b=r===`GET`?d.get(n,r):null;if(b){let e=await b.response;if(d.consume(n,r),e===null){window.location.href=t;return}if(y=he(e),m.setup(y,!0),!d.isFresh(b)){let e=ee(n);d.flush(n,r),d.set(n,r,e,l)}}else{if(r===`GET`&&o&&s){let e=await M(n,c);e&&(y=e.pageData,d.set(n,r,Promise.resolve(he(y)),l),m.setup(y,e.resolvedDeferred))}let f=y===void 0?r===`GET`?await be(n,v):await fetch(n,v):null;if(y===void 0&&!f){window.location.href=t;return}if(f?.redirected){let n=new URL(f.url,window.location.origin);if(n.origin!==window.location.origin){window.location.href=r===`GET`?t:f.url;return}return p.fetchUrl=n.pathname+n.search,p.hash=n.hash,ie(e,n.pathname+n.search+n.hash,n.pathname+n.search,`GET`,{preserveScroll:i.preserveScroll,preserveState:i.preserveState,replace:i.replace,viewTransition:i.viewTransition},c,p,m)}if(f&&r!==`GET`&&!f.ok)throw await O(f,n);if(f&&!f.headers.get(`X-VoidPages`)){if(r===`GET`){let e=await N(n,f,c,!s);if(e)y=e.pageData,m.setup(y,e.resolvedDeferred);else{window.location.href=t;return}}else{window.location.href=t;return}}let h=f?.headers.get(`content-type`)||``;if(y===void 0){if(h.includes(`application/x-ndjson`)){let e=f.body.getReader(),t=new TextDecoder,n=``,r=!0,i=()=>{let e;for(;(e=n.indexOf(`
10
- `))!==-1;){let t=n.slice(0,e);if(n=n.slice(e+1),t){if(r)y=JSON.parse(t),m.setup(y),r=!1;else{let e=JSON.parse(t);e.__deferred&&m.resolve(e.__deferred,e.data,e.error)}}}};for(;r;){let{done:r,value:a}=await e.read();if(r)break;n+=t.decode(a,{stream:!0}),i()}(async()=>{try{for(;!c.aborted;){let{done:r,value:a}=await e.read();if(r)break;n+=t.decode(a,{stream:!0}),i()}n.trim()&&i()}catch(e){(!(e instanceof Error)||e.name!==`AbortError`)&&m.rejectPending(`Stream closed before resolution`)}})()}else y=await f.json(),m.setup(y)}u&&r===`GET`&&f?.ok&&f.headers.get(`X-VoidPages`)&&y?.component===a(n)&&!y.deferredKeys&&d.set(n,r,Promise.resolve(he(y)),l)}if(!y)throw Error(`pages: Missing page payload.`);r!==`GET`&&m.preserveValuesFrom(h,y);let[x,w]=await Promise.race([Promise.all([S(y.component),C(y.component)]),ye(c)]);if(e!==f&&c.aborted)throw ve();return{pageData:y,component:x,layouts:w}}function oe(e,t,n,r,i,a){let o=!1;return async()=>{if(o)return;o=!0;let s=await n;if(!s)return;p?.id===i&&(p=null);let c=m,l=h,u=r.commitPreservedValues(l,s.pageData);m=a();let d=!!(c&&u&&k.get(c)===u);c&&c!==m&&!d&&c.dispose(),c&&u&&d&&A.set(u,c),h=u??r;let f=l?A.get(l):void 0;if(l&&l!==h&&(l.dispose(),f&&f!==c&&f!==m&&f.dispose(),A.delete(l)),u&&u!==r&&r.dispose(),te(s.pageData.head),_=e.fetchUrl,!t.preserveState){let n=e.fetchUrl+e.hash;x.writeHistory(n,!!t.replace)}x.commit(),requestAnimationFrame(()=>{t.preserveScroll||F(t._scrollPosition,e.hash)})}}let se=ge(),[ce,le]=await Promise.all([S(se.component),C(se.component)]);u&&se.url===_&&se.component===a(_)&&se.errors===null&&!se.deferredKeys&&d.set(_,`GET`,Promise.resolve(he(se)),l);let ue=new D;return ue.setup(se),h=ue,g=ue,{_hoverDelay:c,initialPageData:se,initialComponent:ce,initialLayouts:le,prepareVisit(e,t={}){t._popstate||x.save();let n=e.indexOf(`#`),r=n===-1?``:e.slice(n),i=n===-1?e:e.slice(0,n),a=window.location.pathname+window.location.search,o=i||a,s=(t.method||`GET`).toUpperCase(),c=++f,l=t._popstate?_:a;if(p?.abort(),p=null,o===l&&s===`GET`&&!t.data&&(r||t._popstate))return I(o,r,t,!t._popstate&&!t.preserveState),{id:c,url:e,fetchUrl:o,hash:r,method:s,options:t,immediate:!0,shell:Promise.resolve(void 0),abort(){},async commit(){},dispose(){}};let u=new AbortController,d=new D,m={fetchUrl:o,hash:r},h=ie(c,e,o,s,t,u.signal,m,d),g=async()=>{},v=()=>{u.abort(ve()),d.dispose()},y={id:c,url:e,fetchUrl:o,hash:r,method:s,options:t,immediate:!1,shell:h,abort:v,commit(){return g()},dispose:v};return k.set(y,d),g=oe(m,t,h,d,c,()=>y),p=y,y},prefetch(e,t={}){let o=(t.method||`GET`).toUpperCase();if(o!==`GET`)throw Error(`Void Router: prefetch() only supports GET requests.`);let s=a(e);if(!s)return Promise.resolve(void 0);if(i[s]?.island){if(!document.querySelector(`link[rel="prefetch"][href="`+e+`"]`)){let t=document.createElement(`link`);t.rel=`prefetch`,t.href=e,t.as=`document`,document.head.appendChild(t)}return Promise.resolve(void 0)}n[s]&&n[s]();let c=r[s]||[];for(let e of c)n[e]&&n[e]();let u=e.indexOf(`#`),f=u===-1?e:e.slice(0,u),p=d.get(f,o);if(p)return p.response;let m=t.cacheFor?re(t.cacheFor):l,h=ee(f);return d.set(f,o,h,m),h},flush(e,t=`GET`){d.flush(e,t)},flushAll(){d.flushAll()},setPopStateHandler(e){v=e},commitInitialRender(){let e=y;y=null,x.commit(),e&&f===0&&window.scrollTo(e.x,e.y)},start(){if(y=x.start(),P(se.head),ne.__deferredQueue){for(let e of ne.__deferredQueue)e.length===3?g?.resolve(e[0],void 0,e[2]):g?.resolve(e[0],e[1],void 0);delete ne.__deferredQueue}window.addEventListener(`popstate`,e=>{let t=window.location.pathname+window.location.search+window.location.hash,n=x.pop(e.state);if(!x.ready&&t===b){y=n;return}v&&v(t,{preserveState:!0,_scrollPosition:n,_popstate:!0})})}}}var Se,Ce,we=o((()=>{A(),ne(),oe(),pe(),Se=`__VOID_PAGE_DATA__`,Ce=`/_void/pages`}));function Te(e,t,n){if(n==null)return!1;if(n instanceof Date)return e.append(t,n.toISOString()),!0;if(Array.isArray(n)){let r=!1;for(let i of n)r=Te(e,t,i)||r;return r}if(typeof n==`string`||typeof n==`number`||typeof n==`boolean`)return e.append(t,String(n)),!0;throw Error(`Link: GET data only supports primitive values and arrays. Remove nested data for '${t}'.`)}function Ee(e,t){if(!t)return e;let n=e.indexOf(`#`),r=n===-1?e:e.slice(0,n),i=n===-1?``:e.slice(n),a=r.indexOf(`?`),o=a===-1?r:r.slice(0,a),s=a===-1?``:r.slice(a+1),c=new URLSearchParams(s),l=!1;for(let[e,n]of Object.entries(t))l=Te(c,e,n)||l;if(!l)return e;let u=c.toString();return`${o}${u?`?${u}`:``}${i}`}function De(e){let t=e.currentTarget.getAttribute(`target`);return t!==null&&t!==`_self`||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||e.button!==0}var Oe=o((()=>{}));function ke(){return typeof window>`u`?`http://localhost`:window.location.origin}function Ae(e){return e instanceof URL?new URL(e.href):new URL(e||`/`,ke())}function je(){return{state:`idle`,location:null,method:null}}function Me(e,t,n=()=>e.params){return{get _hoverDelay(){return e._hoverDelay},get url(){return Ae(t())},get path(){return this.url.pathname},get query(){return this.url.searchParams},get params(){return n()},visit(t,n={}){return e.visit(t,n)},refresh(t={}){return e.refresh(t)},prefetch(t,n={}){return e.prefetch(t,n)},flush(t,n=`GET`){e.flush(t,n)},flushAll(){e.flushAll()}}}function Ne(e=`/`,t={}){return{_hoverDelay:75,get url(){return Ae(e)},get path(){return this.url.pathname},get query(){return this.url.searchParams},get params(){return t},visit(){throw Error(`Void Router: visit() is not available during SSR.`)},refresh(){throw Error(`Void Router: refresh() is not available during SSR.`)},prefetch(){throw Error(`Void Router: prefetch() is not available during SSR.`)},flush(){throw Error(`Void Router: flush() is not available during SSR.`)},flushAll(){throw Error(`Void Router: flushAll() is not available during SSR.`)}}}async function Pe(e,t,n){try{let r=await e.visit(t,n);return typeof r==`object`&&r&&`errors`in r&&r.errors?{ok:!1,error:new k({body:{errors:r.errors},status:422,statusText:`Unprocessable Content`,url:t})}:{ok:!0,pageData:r}}catch(e){if(T(e))return{ok:!1,error:e};throw e}}function Fe(){let e=null;function t(t){e=t}async function n(t,...n){if(!e)throw Error(`action(): called before router initialization.`);let r=n[0],i=r?.data,a=r?.method||`POST`,o=b(t,r?.params);return Pe(e,o,{method:a,data:i})}return{action:n,setActionRouter:t}}var Ie,Le=o((()=>{x(),A(),Oe(),we(),Ie=Ne()})),Re,ze,Be=o((()=>{Le(),Re=Fe(),Re.action,ze=Re.setActionRouter})),Ve,He,Ue,We,Ge,Ke,qe=o((()=>{Ve=u(f(),1),Le(),He=(0,Ve.createContext)(null),Ue=(0,Ve.createContext)(null),We=(0,Ve.createContext)(null),Ge=(0,Ve.createContext)(null),Ke=(0,Ve.createContext)(je())})),Je=v();Be(),qe();var Ye=`__VOID_DEFERRED_SHELL_END__`;`${Ye}`;var Xe=u(f(),1);Le();var Ze=new WeakMap,Qe=new Map,$e=new Map,et=new Set,tt={},nt=null,rt=null;function it(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.catch(()=>{}),Ze.set(n,{status:`pending`,resolve:e,reject:t}),n}function at(e,t){let n=Ze.get(e);return n?.status===`pending`&&(n.resolve(t),Ze.set(e,{status:`resolved`})),e}function ot(e,t){let n=Ze.get(e);return n?.status===`pending`&&(n.reject(Error(t)),Ze.set(e,{status:`rejected`})),e}function st(e){return Ze.get(e)?.status===`pending`}function ct(){return window.location.pathname+window.location.search+window.location.hash}function lt(e){if(typeof e==`string`&&e.startsWith(`#`))return e;let t=e instanceof URL?e:new URL(e,window.location.origin);return t.origin===window.location.origin?t.pathname+t.search+t.hash:t.href}function ut(e){let t=e.method.toUpperCase();return{state:t===`GET`?`loading`:`submitting`,location:new URL(e.fetchUrl+e.hash,window.location.origin),method:t===`POST`||t===`PUT`||t===`PATCH`||t===`DELETE`?t:`GET`}}function dt(e,t){switch(t.type){case`begin`:return{resource:e.resource,rollbackResource:e.rollbackResource||e.resource,pendingId:t.resource.id,routeUrl:e.routeUrl,navigation:t.navigation};case`reveal`:return e.pendingId===t.resource.id?{...e,resource:t.resource}:e;case`finish`:return e.pendingId===t.resource.id?{resource:t.resource.immediate?e.resource:t.resource,rollbackResource:null,pendingId:null,routeUrl:t.location,navigation:je()}:e;case`fail`:return e.pendingId===t.resource.id?{...e,resource:e.rollbackResource||e.resource,rollbackResource:null,pendingId:null,routeUrl:t.location,navigation:je()}:e;case`abandon`:return e.pendingId===t.resource.id?{resource:e.rollbackResource||e.resource,rollbackResource:null,pendingId:null,routeUrl:t.location,navigation:je()}:e}}function ft(e){let t={_hoverDelay:e._hoverDelay,get url(){return new URL(ct(),window.location.origin)},get path(){return this.url.pathname},get query(){return this.url.searchParams},get params(){return{}},visit(e,t={}){return rt?rt(lt(e),t):Promise.reject(Error(`router.visit() called before router initialized`))},refresh(e={}){return t.visit(window.location.pathname+window.location.search,{preserveState:!0,preserveScroll:!0,...e})},prefetch(t,n={}){return e.prefetch(lt(t),n)},flush(t,n=`GET`){e.flush(lt(t),n)},flushAll(){e.flushAll()}};return t}function pt({resource:e,onCommit:t}){let n=(0,Xe.use)(e.shell),r=Xe.useContext(Ge);if((0,Xe.useLayoutEffect)(()=>{n&&t(e,n)},[t,e,n]),!n)return null;let i=n.pageData,a=n.component,o=i.params??tt,s=(0,Xe.useMemo)(()=>Me(r,()=>{let t=r.url,n=t.pathname+t.search;return n===i.url?n+t.hash:i.url+e.hash},()=>o),[r,i.url,e.hash,o]),c=Xe.createElement(a,i.props);for(let e=n.layouts.length-1;e>=0;e--){let t=n.layouts[e];c=Xe.createElement(t,null,c)}return Xe.createElement(Ge.Provider,{value:s},Xe.createElement(We.Provider,{value:o},Xe.createElement(He.Provider,{value:i.shared??{}},Xe.createElement(Ue.Provider,{value:i.errors??{}},c))))}function mt(e,t,n){if(!n||typeof document.startViewTransition!=`function`){t();return}let r,i=new Promise(e=>{r=e});Qe.set(e.id,r),document.startViewTransition(()=>(t(),i))}function ht({engine:e,router:t,viewTransitions:n,navigationFallback:r}){let i=e.initialPageData,a=(0,Xe.useMemo)(()=>({id:0,url:i.url||ct(),fetchUrl:i.url||ct(),hash:window.location.hash,method:`GET`,options:{},immediate:!1,shell:Promise.resolve({pageData:i,component:e.initialComponent,layouts:e.initialLayouts}),abort(){},async commit(){e.commitInitialRender(),document.getElementById(`app`).setAttribute(`data-hydrated`,`true`)},dispose(){}}),[e,i]),[o,s]=(0,Xe.useReducer)(dt,{resource:a,rollbackResource:null,pendingId:null,routeUrl:ct(),navigation:je()}),[c,l]=(0,Xe.useTransition)(),u=(0,Xe.useCallback)((e,t)=>{et.has(e.id)||(et.add(e.id),e.commit().then(()=>{let n=Qe.get(e.id);n&&(Qe.delete(e.id),n());let r=$e.get(e.id);r&&($e.delete(e.id),r.resolve(t.pageData)),nt===e.id&&(nt=null),s({type:`finish`,resource:e,location:ct()})}).catch(t=>{let n=$e.get(e.id);n&&($e.delete(e.id),n.reject(t))}))},[]),d=(0,Xe.useCallback)((t,i={})=>{let a=e.prepareVisit(t,i);if(a.immediate){let e=ut(a);return nt=a.id,s({type:`begin`,resource:a,navigation:e}),a.shell.then(e=>(nt===a.id&&(nt=null),s({type:`finish`,resource:a,location:ct()}),e?.pageData),e=>{throw nt===a.id&&(nt=null),s({type:`fail`,resource:a,location:ct()}),e})}let o,c,u=new Promise((e,t)=>{o=e,c=t}),d={...a,shell:a.shell.then(e=>{if(e)a.options._resolveOnShell&&($e.delete(a.id),o(e.pageData));else{let e=Qe.get(a.id);e&&(Qe.delete(a.id),e()),$e.delete(a.id),nt===a.id&&(nt=null),s({type:r?`abandon`:`finish`,resource:a,location:ct()}),o(void 0)}return e},e=>{let t=Qe.get(a.id);if(t&&(Qe.delete(a.id),t()),$e.delete(a.id),a.method.toUpperCase()===`GET`&&!a.options._resolveOnShell&&E(e)?o(void 0):c(e),nt===a.id&&(nt=null),r||a.options._resolveOnShell||E(e)||T(e)){s({type:`abandon`,resource:a,location:ct()});return}throw s({type:`fail`,resource:a,location:ct()}),e})},f=ut(d);if($e.set(d.id,{resolve:o,reject:c}),nt=d.id,s({type:`begin`,resource:d,navigation:f}),r){let e=!1,t=!1,n=e=>{t||nt!==d.id||(t=!0,e?l(()=>s({type:`reveal`,resource:d})):s({type:`reveal`,resource:d}))};return d.shell.then(t=>{e=!0,t&&n(!0)}),requestAnimationFrame(()=>{e||n(!1)}),u}let p=()=>{l(()=>{s({type:`reveal`,resource:d})})};return d.shell.then(e=>{e&&nt===d.id&&mt(d,p,i.viewTransition??n)},()=>{}),u},[e,r,l,n]);(0,Xe.useInsertionEffect)(()=>(rt=d,()=>{rt===d&&(rt=null)}),[d]),(0,Xe.useEffect)(()=>{e.setPopStateHandler((e,n)=>{t.visit(e,n)})},[e,t]);let f=(0,Xe.useMemo)(()=>o.navigation.state!==`idle`||!c?o.navigation:{state:`loading`,location:null,method:`GET`},[c,o.navigation]),p=(0,Xe.useMemo)(()=>Me(t,()=>o.routeUrl),[t,o.routeUrl]);return Xe.createElement(Ge.Provider,{value:p},Xe.createElement(Ke.Provider,{value:f},Xe.createElement(Xe.Suspense,{fallback:r&&o.pendingId!==null?Xe.createElement(r,{initialPageData:i}):null},Xe.createElement(pt,{resource:o.resource,onCommit:u}))))}async function gt(e){Qe.clear(),$e.clear(),et.clear(),nt=null;let t=await xe({adapter:{createDeferred:it,resolveDeferred:at,rejectDeferred:ot,isLoading:st},components:e.components,layoutTree:e.layoutTree,routeMeta:e.routeMeta,matchRoute:e.matchRoute,staticPageData:e.staticPageData,staticPageDataFastPath:e.staticPageDataFastPath,viewTransitions:e.viewTransitions,prefetchHoverDelay:e.prefetchHoverDelay,prefetchDefaultCacheFor:e.prefetchDefaultCacheFor,cacheVisitedPageData:e.cacheVisitedPageData}),n=ft(t);ze(n);let r=document.getElementById(`app`);if(!r)throw Error(`pages: Missing #app element for Void React pages hydration.`);let i=Xe.createElement(ht,{engine:t,router:n,viewTransitions:e.viewTransitions,navigationFallback:e.navigationFallback}),a=r.getAttribute(`data-void-ssr`)!==`false`,o=!!t.initialPageData.deferredKeys,s=a&&o?Xe.createElement(Xe.Fragment,null,i,Xe.createElement(`template`,{id:Ye})):i;return(0,Xe.startTransition)(()=>{a?(0,Je.hydrateRoot)(r,s):(0,Je.createRoot)(r).render(s)}),t.start(),{router:n}}function _t(){if(yt)return vt;yt=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.styleq=void 0;var e=new WeakMap,t=`$$css`;function n(n){var r,i,a;return n!=null&&(r=n.disableCache===!0,i=n.disableMix===!0,a=n.transform),function(){for(var n=[],o=``,s=null,c=``,l=r?null:e,u=Array(arguments.length),d=0;d<arguments.length;d++)u[d]=arguments[d];for(;u.length>0;){var f=u.pop();if(f!=null&&f!==!1){if(Array.isArray(f)){for(var p=0;p<f.length;p++)u.push(f[p]);continue}var m=a==null?f:a(f);if(m.$$css!=null){var h=``;if(l!=null&&l.has(m)){var g=l.get(m);g!=null&&(h=g[0],c=g[2],n.push.apply(n,g[1]),l=g[3])}else{var _=[];for(var v in m){var y=m[v];if(v===t){var b=m[v];b!==!0&&(c=c?b+`; `+c:b);continue}typeof y==`string`||y===null?n.includes(v)||(n.push(v),l!=null&&_.push(v),typeof y==`string`&&(h+=h?` `+y:y)):console.error(`styleq: ${v} typeof ${String(y)} is not "string" or "null".`)}if(l!=null){var x=new WeakMap;l.set(m,[h,_,c,x]),l=x}}h&&(o=o?h+` `+o:h)}else if(i)s??={},s=Object.assign({},m,s);else{var S=null;for(var C in m){var w=m[C];w!==void 0&&(n.includes(C)||(w!=null&&(s??={},S??={},S[C]=w),n.push(C),l=null))}S!=null&&(s=Object.assign(S,s))}}}return[o,s,c]}}var r=vt.styleq=n();return r.factory=n,vt}function z(...e){let[t,n,r]=bt.styleq(e),i={};return t!=null&&t!==``&&(i.className=t),n!=null&&Object.keys(n).length>0&&(i.style=n),r!=null&&r!==``&&(i[`data-style-src`]=r),i}var vt,yt,bt,B=o((()=>{vt={},bt=_t(),Object.freeze({})})),xt,St,Ct,wt,Tt,Et=o((()=>{xt={"--color-accent":`var(--color-accent)`,"--color-accent-muted":`var(--color-accent-muted)`,"--color-on-accent":`var(--color-on-accent)`,"--color-neutral":`var(--color-neutral)`,"--color-background-surface":`var(--color-background-surface)`,"--color-background-body":`var(--color-background-body)`,"--color-overlay":`var(--color-overlay)`,"--color-overlay-hover":`var(--color-overlay-hover)`,"--color-overlay-pressed":`var(--color-overlay-pressed)`,"--color-background-muted":`var(--color-background-muted)`,"--color-text-primary":`var(--color-text-primary)`,"--color-text-secondary":`var(--color-text-secondary)`,"--color-text-disabled":`var(--color-text-disabled)`,"--color-text-accent":`var(--color-text-accent)`,"--color-on-dark":`var(--color-on-dark)`,"--color-on-light":`var(--color-on-light)`,"--color-icon-accent":`var(--color-icon-accent)`,"--color-icon-primary":`var(--color-icon-primary)`,"--color-icon-secondary":`var(--color-icon-secondary)`,"--color-icon-disabled":`var(--color-icon-disabled)`,"--color-background-card":`var(--color-background-card)`,"--color-background-popover":`var(--color-background-popover)`,"--color-background-inverted":`var(--color-background-inverted)`,"--color-background-error-inverted":`var(--color-background-error-inverted)`,"--color-success":`var(--color-success)`,"--color-success-muted":`var(--color-success-muted)`,"--color-on-success":`var(--color-on-success)`,"--color-error":`var(--color-error)`,"--color-error-muted":`var(--color-error-muted)`,"--color-on-error":`var(--color-on-error)`,"--color-warning":`var(--color-warning)`,"--color-warning-muted":`var(--color-warning-muted)`,"--color-on-warning":`var(--color-on-warning)`,"--color-border":`var(--color-border)`,"--color-border-emphasized":`var(--color-border-emphasized)`,"--color-skeleton":`var(--color-skeleton)`,"--color-track":`var(--color-track)`,"--color-shadow":`var(--color-shadow)`,"--color-tint-hover":`var(--color-tint-hover)`,"--color-background-blue":`var(--color-background-blue)`,"--color-border-blue":`var(--color-border-blue)`,"--color-icon-blue":`var(--color-icon-blue)`,"--color-text-blue":`var(--color-text-blue)`,"--color-background-cyan":`var(--color-background-cyan)`,"--color-border-cyan":`var(--color-border-cyan)`,"--color-icon-cyan":`var(--color-icon-cyan)`,"--color-text-cyan":`var(--color-text-cyan)`,"--color-background-gray":`var(--color-background-gray)`,"--color-border-gray":`var(--color-border-gray)`,"--color-icon-gray":`var(--color-icon-gray)`,"--color-text-gray":`var(--color-text-gray)`,"--color-background-green":`var(--color-background-green)`,"--color-border-green":`var(--color-border-green)`,"--color-icon-green":`var(--color-icon-green)`,"--color-text-green":`var(--color-text-green)`,"--color-background-orange":`var(--color-background-orange)`,"--color-border-orange":`var(--color-border-orange)`,"--color-icon-orange":`var(--color-icon-orange)`,"--color-text-orange":`var(--color-text-orange)`,"--color-background-pink":`var(--color-background-pink)`,"--color-border-pink":`var(--color-border-pink)`,"--color-icon-pink":`var(--color-icon-pink)`,"--color-text-pink":`var(--color-text-pink)`,"--color-background-purple":`var(--color-background-purple)`,"--color-border-purple":`var(--color-border-purple)`,"--color-icon-purple":`var(--color-icon-purple)`,"--color-text-purple":`var(--color-text-purple)`,"--color-background-red":`var(--color-background-red)`,"--color-border-red":`var(--color-border-red)`,"--color-icon-red":`var(--color-icon-red)`,"--color-text-red":`var(--color-text-red)`,"--color-background-teal":`var(--color-background-teal)`,"--color-border-teal":`var(--color-border-teal)`,"--color-icon-teal":`var(--color-icon-teal)`,"--color-text-teal":`var(--color-text-teal)`,"--color-background-yellow":`var(--color-background-yellow)`,"--color-border-yellow":`var(--color-border-yellow)`,"--color-icon-yellow":`var(--color-icon-yellow)`,"--color-text-yellow":`var(--color-text-yellow)`,__varGroupHash__:`xj0fimd`},St={"--spacing-0":`var(--spacing-0)`,"--spacing-0-5":`var(--spacing-0-5)`,"--spacing-1":`var(--spacing-1)`,"--spacing-1-5":`var(--spacing-1-5)`,"--spacing-2":`var(--spacing-2)`,"--spacing-3":`var(--spacing-3)`,"--spacing-4":`var(--spacing-4)`,"--spacing-5":`var(--spacing-5)`,"--spacing-6":`var(--spacing-6)`,"--spacing-7":`var(--spacing-7)`,"--spacing-8":`var(--spacing-8)`,"--spacing-9":`var(--spacing-9)`,"--spacing-10":`var(--spacing-10)`,"--spacing-11":`var(--spacing-11)`,"--spacing-12":`var(--spacing-12)`,__varGroupHash__:`x1kvdh9l`},Ct={"--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)`,__varGroupHash__:`xzxs3qz`},wt={"--duration-fast-min":`var(--duration-fast-min)`,"--duration-fast":`var(--duration-fast)`,"--duration-fast-max":`var(--duration-fast-max)`,"--duration-medium-min":`var(--duration-medium-min)`,"--duration-medium":`var(--duration-medium)`,"--duration-medium-max":`var(--duration-medium-max)`,"--duration-slow-min":`var(--duration-slow-min)`,"--duration-slow":`var(--duration-slow)`,"--duration-slow-max":`var(--duration-slow-max)`,__varGroupHash__:`x14lkjui`},Tt={"--ease-standard":`var(--ease-standard)`,__varGroupHash__:`xf09i69`}}));function Dt(e){return`${jt}-${e}`}function Ot(e){return`data-${Mt}-${e}`}function kt(e){return`--${Nt}-${e}`}var At,jt,Mt,Nt,Pt=o((()=>{At=`astryx`,jt=At,Mt=At,Nt=At}));function Ft(e){return`data-${e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase()}`}function It(e,t){return/^\d/.test(t)?`${e}-${t}`:t}function Lt(e,t){let n=[Dt(e)];if(t)for(let[e,r]of Object.entries(t))r!=null&&n.push(It(e,String(r)));return n.join(` `)}function Rt(e){let t={};if(e)for(let[n,r]of Object.entries(e))r!=null&&(t[Ft(n)]=String(r));return t}function V(e,t,n){let r=Lt(e,t),i=n?.legacyNames?.map(e=>Dt(e))??[];return{className:i.length>0?[r,...i].join(` `):r,...Rt(t)}}var H=o((()=>{Pt()}));function zt(e){let t=``;for(let n of e){let e=n.codePointAt(0)??0;t+=n===`"`||n===`\\`||e<32||e===127?`\\${(e===0?65533:e).toString(16)} `:n}return t}function Bt(e){return e===`base`?``:e.split(`+`).map(e=>{let t=e.indexOf(`:`),n=t===-1?e:e.slice(0,t),r=t===-1?e:e.slice(t+1);return`[${Ft(n)}="${zt(r)}"]`}).join(``)}var Vt=o((()=>{H()}));function Ht(e,t){return e==null?`fallback:${typeof t==`function`?t():t}`:`id:${e}`}var Ut=o((()=>{}));function Wt(e){return qt?[...qt.segment(e)].map(e=>e.segment):[...e]}function Gt(e){return e===``?0:Wt(e).length}function Kt(e){if(qt){let t=qt.segment(e)[Symbol.iterator]().next();return t.done?``:t.value.segment}let t=e.codePointAt(0);return t==null?``:String.fromCodePoint(t)}var qt,Jt=o((()=>{qt=typeof Intl.Segmenter==`function`?new Intl.Segmenter(void 0,{granularity:`grapheme`}):null}));function Yt(e,t){let n={...e,...t},r=[e.className,t.className].filter(Boolean).join(` `);r?n.className=r:delete n.className;let i=t.style&&e.style?{...e.style,...t.style}:t.style||e.style;return i?n.style=i:delete n.style,n}function U(e,t,n,r){if(typeof e==`string`){let i=e,a=t??{className:``},o=n,s=a.className?`${i} ${a.className}`:i;o&&(s=`${s} ${o}`);let c=r&&a.style?{...a.style,...r}:r||a.style;return{...a,className:s,style:c}}let i=Yt(e,typeof t==`string`?{className:t}:t??{});return typeof n==`string`?i=Yt(i,{className:n}):n!=null&&(i=Yt(i,{style:n})),r!=null&&(i=Yt(i,{style:r})),i}var Xt=o((()=>{}));function Zt(...e){return t=>{let n=[];for(let r of e)if(typeof r==`function`){let e=r(t);n.push(typeof e==`function`?e:()=>r(null))}else if(r!=null){let e=r;e.current=t,n.push(()=>{e.current=null})}if(t!=null&&n.length>0)return()=>{for(let e of n)e()}}}var Qt=o((()=>{}));function $t(...e){return t=>{for(let n of e)if(n?.(t),t.defaultPrevented)return}}var en=o((()=>{}));function tn(e){let t=e.auxiliaryData;return typeof t?.group==`string`?t.group:void 0}function nn(e,{ungroupedFirst:t=!1}={}){if(!e.some(e=>tn(e)!=null))return[{heading:null,items:e}];let n=[],r=new Map,i=[];for(let t of e){let e=tn(t);e==null?i.push(t):(r.has(e)||(n.push(e),r.set(e,[])),r.get(e)?.push(t))}let a=n.map(e=>({heading:e,items:r.get(e)??[]})),o=i.length>0?[{heading:null,items:i}]:[];return t?[...o,...a]:[...a,...o]}var rn=o((()=>{}));function an(){return typeof ResizeObserver>`u`?null:(cn||=new ResizeObserver(e=>{for(let t of e){let e=ln.get(t.target);if(e)for(let n of[...e.keys()])n(t)}}),cn)}function on(e,t){let n=ln.get(e);n?n.set(t,(n.get(t)??0)+1):ln.set(e,new Map([[t,1]])),an()?.observe(e),t({target:e});let r=!0;return()=>{r&&(r=!1,sn(e,t))}}function sn(e,t){let n=ln.get(e);if(t!=null){let e=n?.get(t);if(n==null||e==null)return;if(e>1){n.set(t,e-1);return}if(n.delete(t),n.size>0)return}ln.delete(e),cn&&(cn.unobserve(e),ln.size===0&&(cn.disconnect(),cn=null))}var cn,ln,un=o((()=>{cn=null,ln=new Map}));function dn(e){return e!=null&&typeof e!=`boolean`&&e!==``}var fn=o((()=>{}));function pn(...e){let t=e.flatMap(e=>typeof e==`string`?e.trim().split(/\s+/):[]).filter(Boolean);if(t.length!==0)return Array.from(new Set(t)).join(` `)}function mn(e,t=[],n){return{ariaLabelledBy:n?pn(n.labelID,e):void 0,ariaDescribedBy:pn(n?.describedByIDs,...t)}}var hn=o((()=>{}));function gn(e){return e.split(``).map(e=>e+e).join(``)}function _n(e){if(typeof e!=`string`)return null;let t=e.trim().replace(/^#/,``),n=t.length===3||t.length===4?gn(t):t;return n.length!==6&&n.length!==8||!/^[0-9a-fA-F]+$/.test(n)?null:{r:parseInt(n.slice(0,2),16),g:parseInt(n.slice(2,4),16),b:parseInt(n.slice(4,6),16),a:n.length===8?parseInt(n.slice(6,8),16)/255:1}}function vn(e){let t=e.indexOf(`(`);if(t===-1||!e.trim().endsWith(`)`))return null;let n=e.slice(t+1,e.lastIndexOf(`)`)).replace(/\//g,` `).split(/[\s,]+/).map(e=>e.trim()).filter(Boolean);if(n.length<3)return null;let r=e=>{let t=e.endsWith(`%`)?parseFloat(e)/100*255:parseFloat(e);return Sn(t,0,255)},i=r(n[0]),a=r(n[1]),o=r(n[2]);if([i,a,o].some(Number.isNaN))return null;let s=1;if(n.length>=4){let e=n[3];if(s=e.endsWith(`%`)?parseFloat(e)/100:parseFloat(e),Number.isNaN(s))return null;s=Sn(s,0,1)}return{r:i,g:a,b:o,a:s}}function yn(e){let t=e.trim(),n=xn[t.toLowerCase()];return n?{...n}:t.startsWith(`#`)?_n(t):/^rgba?\(/i.test(t)?vn(t):null}function bn(e,t,n){let r=e=>Sn(Math.round(e),0,255).toString(16).padStart(2,`0`).toUpperCase();return`#${r(e)}${r(t)}${r(n)}`}var xn,Sn,Cn=o((()=>{xn={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}},Sn=(e,t,n)=>Math.max(t,Math.min(n,e))}));function wn(e,t){return`${e}: ${t}`}function Tn(e,t,...n){console.error(wn(e,t),...n)}var En=o((()=>{})),Dn,On,kn=o((()=>{Dn={kbCHJM:`x1nrll8i`,k3aq6I:`xsqj5wx`,$$css:!0},On={mirror:{k3aq6I:`xgtlewx`,$$css:!0},centerInline:e=>[Dn,{"--x-transform":`translate(-50%, ${e})`==null?void 0:`translate(-50%, ${e})`}]}}));function An(e){return(...t)=>z(e,...t)}var jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn=o((()=>{B(),Et(),jn=Ct[`--focus-outline-width`],Mn=Ct[`--focus-outline-style`],Nn=Ct[`--focus-outline-color`],Pn=Ct[`--focus-outline-offset`],`${jn}${Mn}${Nn}`,Fn={outlineWidth:jn,outlineStyle:Mn,outlineColor:Nn,outlineOffset:Pn},In={outlineWidth:``,outlineStyle:``,outlineColor:``,outlineOffset:``},Ln={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}},Rn={focusVisible:An(Ln.focusVisible),focusWithin:An(Ln.focusWithin),focusWithinFirstChild:An(Ln.focusWithinFirstChild),suppressed:An(Ln.suppressed),publishFocusVisibleVars:An(Ln.publishFocusVisibleVars),focusWithinOrPublished:An(Ln.focusWithinOrPublished)}}));function Bn(e){return e.isComposing===!0||e.keyCode===Vn}var Vn,Hn=o((()=>{Vn=229})),W=o((()=>{Vt(),Ut(),Jt(),Xt(),Qt(),en(),H(),rn(),un(),fn(),hn(),Cn(),En(),kn(),zn(),Hn()})),Un=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),G=s(((e,t)=>{t.exports=Un()}));function Wn({width:e=`100%`,height:t=`100%`,radius:n=3,index:r=0,"data-testid":i,xstyle:a,className:o,style:s,ref:c,...l}){return(0,Gn.jsx)(`div`,{ref:c,"aria-hidden":`true`,"data-testid":i,...U(V(`skeleton`),z(Jn.root,Jn.animate,Yn[n],Zn.dimensions(e,t),Zn.animationDelay(r),a),o,s),...l})}var Gn,Kn,qn,Jn,Yn,Xn,Zn,Qn=o((()=>{B(),W(),H(),Gn=G(),Kn=1e3,qn=100,Jn={root:{kWkggS:`xprdx6m x1j0df82 x1o55y2u`,kSiTet:`xvpkmg4 x1tbh5bv`,$$css:!0},animate:{kILWW9:`xpz12be`,k44tkh:`xqgcaz`,ko0y90:`xa4qsjk`,kKVMdj:`xeuoslp x1aquc0h`,kyAemX:`x193epu2`,$$css:!0}},Yn={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}},Xn={kKxzle:`xvo38ju`,$$css:!0},Zn={animationDelay:e=>[Xn,{"--x-animationDelay":(e=>typeof e==`number`?e+`ms`:e??void 0)(`${Kn+qn*e}ms`)}],dimensions:(e,t)=>[{kzqmXN:(typeof e==`number`?`${e}px`:e)==null?typeof e==`number`?`${e}px`:e:`x5lhr3w`,kZKoxP:(typeof t==`number`?`${t}px`:t)==null?typeof t==`number`?`${t}px`:t:`x16ye13r`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(typeof e==`number`?`${e}px`:e),"--x-height":(e=>typeof e==`number`?e+`px`:e??void 0)(typeof t==`number`?`${t}px`:t)}]},Wn.displayName=`Skeleton`})),$n=o((()=>{Qn()})),er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr=o((()=>{er={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}},tr={normal:{k63SB2:`x1sodnla`,$$css:!0},medium:{k63SB2:`x1e4wzip`,$$css:!0},semibold:{k63SB2:`x2mo6ok`,$$css:!0},bold:{k63SB2:`x1lvx875`,$$css:!0}},nr={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}},rr={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}},ir={"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}},ar={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}},or={inline:{k1xSpc:`xt0psk2`,$$css:!0},block:{k1xSpc:`x1lliihq`,$$css:!0}},sr={singleLine:{kVQacm:`xb3r6kr`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,k1xSpc:`x1lliihq`,$$css:!0},multiLine:{kVQacm:`xb3r6kr`,k1xSpc:`x104kibb`,kgKLqz:`x1ua5tub`,$$css:!0}},cr={"break-word":{kTgw9:`x1lldw8n`,kHjlTd:`x1mzt3pk`,$$css:!0},"break-all":{kTgw9:`x1yn0g08`,$$css:!0}},lr={wrap:{kN2L0X:`xk4td0m`,$$css:!0},nowrap:{kN2L0X:`xebhuq6`,$$css:!0},balance:{kN2L0X:`x1w2vvpw`,$$css:!0},pretty:{kN2L0X:`x1fzhlzt`,$$css:!0}},ur={enabled:{kxwWH2:`x1b2iylo`,kzeHkT:`xwgcxoh`,k1xSpc:`x1lliihq`,$$css:!0}},dr={strikethrough:{kybGjl:`xmqliwb`,$$css:!0}},fr={enabled:{kcqcaj:`xss6m8b`,$$css:!0}},pr={start:{k9WMMc:`x1yc453h`,$$css:!0},center:{k9WMMc:`x2b8uid`,$$css:!0},end:{k9WMMc:`xp4054r`,$$css:!0}},mr={content:{ks0D6T:`xw5ewwj`,kTgw9:`x13faqbe`,$$css:!0}}}));function gr(e){let{maxLines:t}=e,[n,r]=(0,_r.useState)(!1),[i,a]=(0,_r.useState)(``),o=(0,_r.useRef)(null),s=(0,_r.useRef)(null),c=(0,_r.useCallback)(e=>{if(t===0){r(!1);return}if(a(e.textContent??``),t===1)r(e.scrollWidth>e.offsetWidth);else{let t=e.scrollHeight;try{let n=document.createRange();n.selectNodeContents(e),t=n.getBoundingClientRect().height,n.detach()}catch{}r(t>e.offsetHeight)}},[t]);return{ref:(0,_r.useCallback)(e=>{s.current?.(),s.current=null,o.current=e,e&&t>0?typeof ResizeObserver<`u`?s.current=on(e,()=>{c(e)}):c(e):(r(!1),a(``))},[t,c]),isTruncated:n,fullText:i}}var _r,vr=o((()=>{_r=u(f(),1),un()}));function yr(e,t,n,r,i,a){return(0,br.useMemo)(()=>Zt(e,t,n,r,i,a),[e,t,n,r,i,a])}var br,xr=o((()=>{br=u(f(),1),Qt()})),Sr,Cr,wr=o((()=>{Sr=u(f(),1),Cr=typeof window<`u`?Sr.useLayoutEffect:Sr.useEffect}));function Tr(e){let t=(0,Dr.createContext)(e);return t.displayName=`LayerScopedContext`,kr.push(n=>(0,Or.jsx)(t,{value:e,children:n})),t}function Er({children:e}){let[t]=(0,Dr.useState)(()=>kr.slice());return t.reduceRight((e,t)=>t(e),e)}var Dr,Or,kr,Ar=o((()=>{Dr=u(f(),1),Or=G(),kr=[]}));function jr(e){return(e.style.anchorName??``).split(`,`).map(e=>e.trim()).filter(Boolean)}function Mr(e,t){e.style.anchorName=t.join(`, `)}function Nr(e,t){let n=jr(e);n.includes(t)||(n.push(t),Mr(e,n))}function Pr(e,t){Mr(e,jr(e).filter(e=>e!==t))}var Fr=o((()=>{}));function Ir(){Vr+=1}function Lr(){Hr=Vr}function Rr(){Ur||typeof document>`u`||(Ur=!0,document.addEventListener(`pointerdown`,Ir,!0),document.addEventListener(`keydown`,Ir,!0),document.addEventListener(`click`,Lr,!0))}function zr(){return Rr(),Vr}function Br(){return Rr(),Hr===Vr}var Vr,Hr,Ur,Wr=o((()=>{Vr=0,Hr=null,Ur=!1}));function Gr(e){if(!e)return null;let t=null,n=e;for(;n;)Kr.has(n.tagName.toLowerCase())&&(t=n),n=n.parentElement;return t?.parentElement??null}var Kr,qr=o((()=>{Kr=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`.split(`.`))})),Jr,Yr=o((()=>{Jr={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}}})),Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi=o((()=>{Xr={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`},Zr={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}},Qr={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}},$r={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}},ei={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}},ti={0:{"--layout-padding-outer-x":`xswhm3q`,$$css:!0},1:{"--layout-padding-outer-x":`xc96xmq`,$$css:!0},2:{"--layout-padding-outer-x":`x15dxnc0`,$$css:!0},3:{"--layout-padding-outer-x":`xadgj3j`,$$css:!0},4:{"--layout-padding-outer-x":`x1v56qcf`,$$css:!0},5:{"--layout-padding-outer-x":`x1nzs0gl`,$$css:!0},6:{"--layout-padding-outer-x":`x1c3n52a`,$$css:!0},8:{"--layout-padding-outer-x":`x1t3kfz`,$$css:!0},10:{"--layout-padding-outer-x":`x1jdf5a4`,$$css:!0},"0.5":{"--layout-padding-outer-x":`xihiwg7`,$$css:!0},"1.5":{"--layout-padding-outer-x":`x1u93lgd`,$$css:!0}},ni={0:{"--layout-padding-outer-y":`x1mzf5mb`,$$css:!0},1:{"--layout-padding-outer-y":`x1gpfxoh`,$$css:!0},2:{"--layout-padding-outer-y":`x10pz7y9`,$$css:!0},3:{"--layout-padding-outer-y":`x1p6yq3h`,$$css:!0},4:{"--layout-padding-outer-y":`xx738ci`,$$css:!0},5:{"--layout-padding-outer-y":`x6yxws5`,$$css:!0},6:{"--layout-padding-outer-y":`x180vrwl`,$$css:!0},8:{"--layout-padding-outer-y":`xid7e43`,$$css:!0},10:{"--layout-padding-outer-y":`x26l4wa`,$$css:!0},"0.5":{"--layout-padding-outer-y":`x1vj96e0`,$$css:!0},"1.5":{"--layout-padding-outer-y":`xd3dqby`,$$css:!0}},ri={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}},ii={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}},ai={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}},oi={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}},si={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}},ci={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}},li={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}},ui={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}},di={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}},fi={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-inner-x":`x1qfll2g`,"--layout-padding-inner-y":`xyvxpqs`,"--_section-padding-propagated":`x1f17rg1`,$$css:!0}}}));function mi(e){return typeof e==`number`?`${e}px`:e}function hi(e,t){let n=e.ownerDocument.defaultView;if(!n)return{};let r=n.getComputedStyle(e),i=n.getComputedStyle(t);return{...r.direction!==i.direction&&{direction:r.direction},...r.writingMode!==i.writingMode&&{writingMode:r.writingMode}}}function gi(e=`above`,t=`center`){if(e===`above`||e===`below`){let n=e===`above`?`self-block-start`:`self-block-end`;return t===`start`?`${n} span-self-inline-end`:t===`end`?`${n} span-self-inline-start`:n}let n=e===`start`?`self-inline-start`:`self-inline-end`;return t===`start`?`${n} span-self-block-end`:t===`end`?`${n} span-self-block-start`:n}function _i(e=`above`,t=`center`){let n=`flip-block, flip-inline, flip-block flip-inline`;if(t!==`center`)return n;if(e===`above`||e===`below`){let[t,r]=e===`above`?[`top`,`bottom`]:[`bottom`,`top`];return`${n}, ${t} span-left, ${t} span-right, ${r} span-left, ${r} span-right`}let[r,i]=e===`start`?[`left`,`right`]:[`right`,`left`];return`${n}, ${r} span-top, ${r} span-bottom, ${i} span-top, ${i} span-bottom`}function vi(e,t){let n=(0,xi.useRef)(t);return n.current=t,(0,xi.useMemo)(()=>({onPointerDown:t=>{if(!n.current)return;let r=t.currentTarget,i=r.ownerDocument;r.setAttribute(`popovertarget`,e);let a=()=>{i.removeEventListener(`pointerup`,a),i.removeEventListener(`pointercancel`,a),i.defaultView?.setTimeout(()=>{r.removeAttribute(`popovertarget`)},0)};i.addEventListener(`pointerup`,a),i.addEventListener(`pointercancel`,a)},onClickCapture:e=>{let t=e.currentTarget;t.hasAttribute(`popovertarget`)&&(e.preventDefault(),t.removeAttribute(`popovertarget`))}}),[e])}function yi(e){let{mode:t,onShow:n,onHide:r,lightDismiss:i=!1}=e,a=t===`context`?e.lazyMount??!1:!1,o=(0,xi.useId)(),s=`--astryx-layer-${o.replace(/:/g,``)}`,[c,l]=(0,xi.useState)(!1),u=(0,xi.useRef)(null),d=(0,xi.useRef)(null),f=(0,xi.useRef)(null),p=(0,xi.useRef)(null),m=(0,xi.useRef)(null),[h,g]=(0,xi.useState)(null),_=(0,xi.useRef)(!1),v=(0,xi.useRef)(!1),y=(0,xi.useRef)(null),b=(0,xi.useRef)(null),x=(0,xi.useCallback)(()=>{let e=zr();return y.current===e},[]),S=(0,xi.useCallback)(e=>{typeof e.showPopover==`function`?e.showPopover({source:f.current??void 0}):e.style.display=`block`,d.current=e},[]),C=(0,xi.useCallback)(e=>{if(t!==`context`)return!0;let n=m.current;if(n===null)return!1;let r=n.portalTarget??p.current?.parentElement??null;return e.parentElement===r},[t]),w=(0,xi.useCallback)(()=>{if(t!==`context`)return;let e=p.current,n=e?.parentElement??null;if(!e||!n)return;let r=Gr(n),i={portalTarget:r,portalStyle:r?hi(e,r):{}};m.current=i,g(i)},[t]),T=(0,xi.useCallback)(()=>{t===`context`&&a&&(m.current=null,g(null))},[t,a]),E=(0,xi.useCallback)(()=>{if(x())return;let e=u.current,t=e&&C(e)?e:null;if(!t){_.current=!0,w();return}v.current||(S(t),v.current=!0,l(!0),n?.())},[n,w,S,C,x]),D=(0,xi.useCallback)(()=>{if(_.current=!1,v.current){let e=u.current;d.current=null,v.current=!1,e&&(typeof e.hidePopover==`function`?e.hidePopover():e.style.display=`none`),l(!1),r?.()}T()},[r,T]),O=(0,xi.useCallback)(e=>{f.current&&f.current!==e&&Pr(f.current,s),e&&Nr(e,s),f.current=e},[s]),k=(0,xi.useCallback)(e=>{if(b.current?.(),Br())return;y.current=zr();let t=e.defaultView,n=null,r=()=>{y.current=null,e.removeEventListener(`click`,i,!0),n!==null&&(t?.clearTimeout(n),n=null),b.current===r&&(b.current=null)},i=()=>{e.removeEventListener(`click`,i,!0),t?n=t.setTimeout(()=>{n=null,b.current===r&&r()},0):r()};e.addEventListener(`click`,i,!0),b.current=r},[]);(0,xi.useEffect)(()=>(zr(),()=>b.current?.()),[]);let A=(0,xi.useCallback)(e=>{e.newState===`closed`&&v.current&&(d.current=null,v.current=!1,k(e.currentTarget?.ownerDocument??document),l(!1),r?.(),T())},[r,T,k]),j=(0,xi.useRef)(null),M=(0,xi.useRef)(null),N=(0,xi.useCallback)((e,t)=>{j.current&&M.current&&(j.current!==e||M.current!==t)&&(j.current.removeEventListener(`toggle`,M.current),j.current=null,M.current=null),e&&j.current!==e&&(e.addEventListener(`toggle`,t),j.current=e,M.current=t)},[]),ee=(0,xi.useCallback)(e=>{u.current=e,N(e,A),e&&_.current?(_.current=!1,E()):e&&v.current&&d.current!==e&&C(e)&&S(e)},[A,N,E,S,C]),P=(0,xi.useCallback)(e=>{p.current=e,e&&(!a||_.current||v.current)&&w()},[a,w]);(0,xi.useEffect)(()=>(u.current&&N(u.current,A),()=>{j.current&&M.current&&(j.current.removeEventListener(`toggle`,M.current),j.current=null,M.current=null)}),[A,N]);let te=(0,xi.useCallback)((e,t)=>{let n=(0,Ci.jsx)(`template`,{ref:P});if(h===null)return(0,Ci.jsx)(Ci.Fragment,{children:n});let{placement:r=`above`,alignment:a=`center`,positioning:c=`anchor`,offset:l,role:u,"aria-label":d,xstyle:f,className:p,style:m,as:g=`div`,onMouseEnter:_,onMouseLeave:v}=t||{},y=c===`custom`?{positionAnchor:s}:{positionAnchor:s,positionArea:gi(r,a),positionTryFallbacks:_i(r,a)},b=c===`anchor`&&l?r===`above`||r===`below`?Ti.offsetBlock(mi(l)):Ti.offsetInline(mi(l)):null,x=z(Jr.reset,Ti.base,fi.reset,b,f),S=p?`${p} ${x.className??``}`:x.className,C=(0,Ci.jsx)(g,{ref:ee,id:o,role:u,"aria-label":d,popover:i?`auto`:`manual`,className:S,style:{...x.style,...y,...h.portalStyle,...m},onMouseEnter:_,onMouseLeave:v,children:(0,Ci.jsx)(Er,{children:e})});return(0,Ci.jsxs)(Ci.Fragment,{children:[n,h.portalTarget?(0,Si.createPortal)(C,h.portalTarget):C]})},[s,h,o,i,ee,P]),F=(0,xi.useCallback)((e,t)=>{let{x:n,y:r,xstyle:a,className:s,style:c}=t,l={top:r,left:n},u=z(Jr.reset,Ti.base,fi.reset,Ti.fixed,a),d=s?`${s} ${u.className??``}`:u.className;return(0,Ci.jsx)(`div`,{ref:ee,id:o,popover:i?`auto`:`manual`,className:d,style:{...u.style,...l,...c},children:(0,Ci.jsx)(Er,{children:e})})},[ee,o,i]),ne=(0,xi.useMemo)(()=>({ref:O,anchorId:s,show:E,hide:D,isOpen:c,wasJustDismissed:x,id:o,render:te}),[O,s,E,D,c,x,o,te]),I=(0,xi.useMemo)(()=>({ref:void 0,show:E,hide:D,isOpen:c,wasJustDismissed:x,id:o,render:F}),[E,D,c,x,o,F]);return t===`context`?ne:I}function bi(e){let t=yi(e);return(0,xi.useMemo)(()=>{let{wasJustDismissed:e,...n}=t;return n},[t])}var xi,Si,Ci,wi,Ti,Ei=o((()=>{xi=u(f(),1),B(),Si=g(),Ar(),Fr(),Wr(),qr(),Yr(),pi(),Ci=G(),wi={keoZOQ:`x1vhfslr`,k1K539:`xlm3tn6`,$$css:!0},Ti={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},offsetBlock:e=>[wi,{"--x-marginBlockStart":(e=>typeof e==`number`?e+`px`:e??void 0)(e),"--x-marginBlockEnd":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}],offsetInline:e=>[{keTefX:e==null?e:`x4lel18`,k71WvV:e==null?e:`x1c9tiao`,$$css:!0},{"--x-marginInlineStart":(e=>typeof e==`number`?e+`px`:e??void 0)(e),"--x-marginInlineEnd":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]}}));function Di(e){let t=e,n=t[Mi];if(n!=null)return n;let r={modality:`keyboard`,isListening:!1,onPointerDown:()=>{r.modality=`pointer`},onKeyDown:e=>{e.metaKey||e.altKey||e.ctrlKey||(r.modality=`keyboard`)}};return Object.defineProperty(t,Mi,{value:r}),r}function Oi(){if(typeof document>`u`)return()=>{};let e=document,t=Di(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 ki(){(0,ji.useEffect)(()=>Oi(),[])}function Ai(){return typeof document>`u`?`keyboard`:Di(document).modality}var ji,Mi,Ni=o((()=>{ji=u(f(),1),Mi=Symbol.for(`@astryxdesign/core/interaction-modality/v1`)}));function Pi(e){let t=e.getAttribute(`role`);if(t!=null&&t!==``)return zi.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 Fi(e)}}function Fi(e){if(e.isContentEditable===!0)return!0;let t=e.getAttribute(`contenteditable`);return t!=null&&t!==`false`}function Ii(e){let{touchTrigger:t,isEnabled:n,isControlled:r,isOpen:i,layerId:a,triggerRef:o,show:s,hide:c}=e,l=(0,Li.useRef)(!1),u=(0,Li.useRef)(i);u.current=i;let d=(0,Li.useRef)(c);d.current=c;let f=(0,Li.useRef)(a);f.current=a;let p=(0,Li.useRef)(!1),m=(0,Li.useRef)(null);ki();let h=(0,Li.useCallback)(()=>{p.current=!1;let e=m.current;e!=null&&(m.current=null,document.removeEventListener(`pointerdown`,e,!0))},[]),g=(0,Li.useCallback)(()=>{if(p.current=!0,m.current!=null)return;let e=e=>{let t=e.target;(t==null||o.current?.contains(t)!==!0&&document.getElementById(f.current)?.contains(t)!==!0)&&(h(),d.current())};m.current=e,document.addEventListener(`pointerdown`,e,!0)},[o,h]);(0,Li.useEffect)(()=>h,[h]);let _=(0,Li.useCallback)(()=>l.current&&Ai()===`pointer`,[]),v=(0,Li.useCallback)(e=>{l.current=e.pointerType===`touch`},[]),y=(0,Li.useCallback)(e=>{let i=Ri.has(e.pointerType);if(l.current=i,!i||r)return!1;let a=o.current;return(t===`auto`?a!=null&&Pi(a)?`none`:`tap`:t)===`none`||!n||u.current||p.current?(h(),c(),!0):(g(),s(),!0)},[t,n,r,o,s,c,g,h]),b=(0,Li.useRef)(i);return(0,Li.useEffect)(()=>{b.current&&!i&&h(),b.current=i},[i,h]),{isTouchPointerRef:l,isTouchInteraction:_,handlePointerEnter:v,handlePointerDown:y,clearTapOpen:h}}var Li,Ri,zi,Bi=o((()=>{Li=u(f(),1),Ni(),Ri=new Set([`touch`,`pen`]),zi=new Set([`button`,`checkbox`,`combobox`,`link`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`searchbox`,`slider`,`spinbutton`,`switch`,`tab`,`textbox`])})),Vi,Hi=o((()=>{Et(),wt[`--duration-fast-max`],Tt[`--ease-standard`],Vi={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}}}));function Ui(){return(0,Gi.use)(qi)}function Wi({children:e}){let t=(0,Gi.use)(qi);return(0,Ki.jsx)(qi,{value:t+1,children:e})}var Gi,Ki,qi,Ji=o((()=>{Gi=u(f(),1),Ki=G(),qi=(0,Gi.createContext)(0),qi.displayName=`LayerDepthContext`,Wi.displayName=`LayerDepthProvider`}));function Yi(e){let t=la.get(e);if(t!==void 0)return t;let n=ua++;return la.set(e,n),n}function Xi(e,t){if(e.depth!==t.depth)return e.depth-t.depth;let n=e.getContainer?.()??null,r=t.getContainer?.()??null;if(n!=null&&r!=null&&n!==r){if(r.contains(n))return 1;if(n.contains(r))return-1}return e.seq-t.seq}function Zi(e){return e.isPresent?.()??!0}function Qi(){return fa}function $i(){fa=!0}function ea(){fa=!1}function ta(){let e=null;for(let t of ca)Zi(t)&&(e==null||Xi(t,e)>0)&&(e=t);return e}function na(e){return ta()?.token===e}function ra(){let e=ta();return e!=null&&(e.behavior===`block`||e.dismiss(),!0)}function ia(e){if(e.key===`Escape`){if(Bn(e)){ta()!=null&&e.preventDefault();return}e.defaultPrevented||ra()&&e.preventDefault()}}function aa(){da||typeof document>`u`||(document.addEventListener(`keydown`,ia),document.addEventListener(`compositionstart`,$i,!0),document.addEventListener(`compositionend`,ea,!0),document.addEventListener(`blur`,ea,!0),da=!0)}function oa(){da&&typeof document<`u`&&(document.removeEventListener(`keydown`,ia),document.removeEventListener(`compositionstart`,$i,!0),document.removeEventListener(`compositionend`,ea,!0),document.removeEventListener(`blur`,ea,!0),fa=!1,da=!1)}function sa(e){let t={...e,seq:Yi(e.token)};return ca.push(t),aa(),()=>{let e=ca.indexOf(t);e!==-1&&ca.splice(e,1),ca.length===0&&oa()}}var ca,la,ua,da,fa,pa=o((()=>{Hn(),ca=[],la=new WeakMap,ua=0,da=!1,fa=!1}));function ma(e){let{isActive:t,onDismiss:n,escapeBehavior:r=`close`,getContainer:i,isPresent:a,isEnabled:o=!0}=e,s=Ui(),c=(0,ha.useRef)({}),l=(0,ha.useRef)(!1),u=(0,ha.useRef)(n),d=(0,ha.useRef)(i),f=(0,ha.useRef)(a);(0,ha.useEffect)(()=>{u.current=n,d.current=i,f.current=a});let p=t&&o;return(0,ha.useEffect)(()=>{if(!p){l.current=!1;return}return l.current||=(c.current={},!0),sa({token:c.current,depth:s,behavior:r,getContainer:()=>d.current?.()??null,isPresent:()=>f.current?.()??!0,dismiss:()=>u.current()})},[p,s,r]),{shouldDismissOnCloseRequest:(0,ha.useCallback)(()=>p&&!Qi()&&na(c.current),[p])}}var ha,ga=o((()=>{ha=u(f(),1),Ji(),pa()}));function _a(e){return e.hasAttribute(`tabindex`)?e.tabIndex>=0:[`A`,`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`].includes(e.tagName)?!e.disabled:!!e.isContentEditable}function va(e={}){let{placement:t=`above`,alignment:n=`center`,delay:r=200,hideDelay:i=0,focusTrigger:a=`auto`,touchTrigger:o=`auto`,isEnabled:s=!0,isOpen:c,isDefaultOpen:l=!1,onShow:u,onHide:d}=e,{ref:f,anchorId:p,show:m,hide:h,isOpen:g,id:_,render:v}=bi({mode:`context`,onShow:u,onHide:d}),y=Sa.container,b=(0,ya.useRef)(null),x=(0,ya.useRef)(null),S=(0,ya.useRef)(null),C=(0,ya.useCallback)(()=>{b.current&&=(clearTimeout(b.current),null),x.current&&=(clearTimeout(x.current),null)},[]),w=(0,ya.useCallback)(()=>{C(),m()},[C,m]),T=(0,ya.useCallback)(()=>{C(),h()},[C,h]),{isTouchPointerRef:E,isTouchInteraction:D,handlePointerEnter:O,handlePointerDown:k,clearTapOpen:A}=Ii({touchTrigger:o,isEnabled:s,isControlled:c!==void 0,isOpen:g,layerId:_,triggerRef:S,show:w,hide:T}),j=(0,ya.useCallback)(()=>{s&&c!==!1&&(C(),b.current=setTimeout(()=>{m()},r))},[s,c,C,m,r]),M=(0,ya.useCallback)(()=>{c!==!0&&(C(),x.current=setTimeout(()=>{h()},i>0?i:xa))},[c,C,h,i]),N=(0,ya.useCallback)(()=>{x.current&&=(clearTimeout(x.current),null)},[]),ee=(0,ya.useCallback)(()=>{E.current||j()},[E,j]),P=(0,ya.useCallback)(()=>{E.current||M()},[E,M]),te=(0,ya.useCallback)(e=>{s&&(D()||e.target.matches(`:focus-visible`)&&(C(),m()))},[s,D,C,m]),F=(0,ya.useCallback)(()=>{M()},[M]),ne=(0,ya.useCallback)(e=>{k(e)||c===void 0&&(C(),h())},[k,c,C,h]),I=(0,ya.useCallback)(e=>{S.current&&(S.current.removeEventListener(`mouseenter`,ee),S.current.removeEventListener(`mouseleave`,P),S.current.removeEventListener(`focusin`,te),S.current.removeEventListener(`focusout`,F),S.current.removeEventListener(`pointerenter`,O),S.current.removeEventListener(`pointerdown`,ne)),e&&(e.addEventListener(`pointerenter`,O),e.addEventListener(`mouseenter`,ee),e.addEventListener(`mouseleave`,P),e.addEventListener(`pointerdown`,ne),(a===`always`||a===`auto`&&_a(e))&&(e.addEventListener(`focusin`,te),e.addEventListener(`focusout`,F))),S.current=e},[a,ee,P,te,F,O,ne]),re=(0,ya.useCallback)(e=>{f(e),I(e)},[f,I]);return(0,ya.useEffect)(()=>()=>{C()},[C]),(0,ya.useEffect)(()=>{l&&m()},[]),(0,ya.useEffect)(()=>{c!==void 0&&(c?(C(),m()):(C(),h()))},[c,C,m,h]),ma({isActive:!0,isPresent:()=>{let e=typeof document>`u`?null:document.getElementById(_);if(e==null)return!1;try{return e.matches(`:popover-open`)}catch{return g}},onDismiss:()=>{if(C(),A(),c!==void 0){d?.();return}h()}}),{ref:re,positionRef:f,interactionRef:I,anchorId:p,describedBy:_,renderTooltip:(0,ya.useCallback)((e,r)=>{let i=r?.placement??t,a={placement:i,alignment:r?.alignment??n,offset:St[`--spacing-1`],role:`tooltip`,xstyle:[y,Vi[i]],className:V(`tooltip`).className,onMouseEnter:N,onMouseLeave:M};return v((0,ba.jsx)(`div`,{className:`xfsso4q xy143xn x12gdq22 x1djylfy xw5ewwj x13faqbe`,children:e}),a)},[v,t,n,y,N,M])}}var ya,ba,xa,Sa,Ca=o((()=>{ya=u(f(),1),Ei(),Bi(),Hi(),ga(),H(),Et(),ba=G(),xa=100,Sa={container:{kWkggS:`x19aspcf`,kMwMTN:`xrkvqaz`,kaIpWk:`x1hviunn`,kMv6JI:`x9ynric`,kGuDYH:`xjm74w1`,kLWn49:`xw6l6zx`,$$css:!0}}})),wa=c({Tooltip:()=>Da});function Ta(e){return typeof e==`string`||typeof e==`number`}function Ea(...e){let t=e.filter(Boolean);return t.length>0?t.join(` `):void 0}function Da({children:e,anchorRef:t,content:n,placement:r=`above`,alignment:i=`center`,delay:a=200,hideDelay:o=0,focusTrigger:s=`auto`,touchTrigger:c=`auto`,isEnabled:l=!0,onOpenChange:u,hasHoverIndication:d=`auto`,isOpen:f,isDefaultOpen:p}){let m=(0,Oa.useRef)(null),h=e!=null&&Ta(e),g=d===!0||d===`auto`&&h,_=va({placement:r,alignment:i,delay:a,hideDelay:o,focusTrigger:s,touchTrigger:c,isEnabled:l,isOpen:f,isDefaultOpen:p,onShow:(0,Oa.useCallback)(()=>{u?.(!0)},[u]),onHide:(0,Oa.useCallback)(()=>{u?.(!1)},[u])});return Cr(()=>{if(!t)return;let e=t.current;if(!e)return;_.ref(e);let n=e.getAttribute(`aria-describedby`);return e.setAttribute(`aria-describedby`,Ea(n,_.describedBy)??``),()=>{_.ref(null),n?e.setAttribute(`aria-describedby`,n):e.removeAttribute(`aria-describedby`)}},[t,_.ref,_.describedBy]),Cr(()=>{if(t||h)return;let e=m.current;if(!e)return;let n=e.firstElementChild;if(!n)return;_.ref(n);let r=n.getAttribute(`aria-describedby`);return n.setAttribute(`aria-describedby`,Ea(r,_.describedBy)??``),()=>{_.ref(null),r?n.setAttribute(`aria-describedby`,r):n.removeAttribute(`aria-describedby`)}},[t,h,_.ref,_.describedBy]),t&&e==null?(0,ka.jsx)(ka.Fragment,{children:_.renderTooltip(n)}):h?(0,ka.jsxs)(ka.Fragment,{children:[(0,ka.jsx)(`span`,{ref:_.ref,tabIndex:0,"aria-describedby":_.describedBy,...{0:{className:`xt0psk2`},1:{className:`xt0psk2 xujl8zx xev0dqp xycaml9 xrys4gj`}}[!!g<<0],children:e}),_.renderTooltip(n)]}):(0,ka.jsxs)(ka.Fragment,{children:[(0,ka.jsx)(`div`,{ref:m,className:`xjp7ctv`,children:e}),_.renderTooltip(n)]})}var Oa,ka,Aa=o((()=>{Oa=u(f(),1),wr(),Ca(),ka=G(),Da.displayName=`Tooltip`}));function ja(e){return e in rr?e:`body`}function Ma(e){return e in er?e:`primary`}function Na({type:e=`body`,size:t,color:n,weight:r,display:i=`inline`,maxLines:a=0,hasTruncateTooltip:o=!0,wordBreak:s,textWrap:c,justify:l=`start`,hasCapsize:u=!1,hasStrikethrough:d=!1,hasTabularNumbers:f=!1,xstyle:p,className:m,style:h,as:g=`span`,children:_,ref:v,...y}){let b=n??La[e]??`primary`,x=ja(e),S=Ma(b),C=s??(a===1?`break-all`:`break-word`),w=a>0||u?`block`:i,T=gr({maxLines:a}),E=typeof o==`string`?o:`above`,D=a>0&&o!==!1&&T.isTruncated,O=(0,Pa.useRef)(null),k=yr(v,T.ref,O),A=a>1?{WebkitLineClamp:a}:void 0;return(0,Fa.jsxs)(Fa.Fragment,{children:[(0,Fa.jsx)(g,{ref:k,...U(V(`text`,{type:e,size:t,color:b}),z(er[S],rr[x],t&&ir[t],nr[x],r&&tr[r],a===1?sr.singleLine:a>1?sr.multiLine:or[w],a>0&&cr[C],c&&lr[c],l!==`start`&&pr[l],u&&ur.enabled,d&&dr.strikethrough,f&&fr.enabled,p),m,{...h,...A}),...y,children:_}),D&&(0,Fa.jsx)(Pa.Suspense,{fallback:null,children:(0,Fa.jsx)(Ia,{anchorRef:O,content:(0,Fa.jsx)(`span`,{...z(mr.content),children:T.fullText}),placement:E})})]})}var Pa,Fa,Ia,La,Ra=o((()=>{Pa=u(f(),1),B(),hr(),vr(),W(),xr(),H(),Fa=G(),Ia=(0,Pa.lazy)(async()=>Promise.resolve().then(()=>(Aa(),wa)).then(e=>({default:e.Tooltip}))),La={body:`primary`,large:`primary`,label:`primary`,supporting:`secondary`,code:`primary`,"display-1":`primary`,"display-2":`primary`,"display-3":`primary`,inherit:`inherit`},Na.displayName=`Text`}));function za(e){return e===`display-1`||e===`display-2`||e===`display-3`}function Ba({level:e,type:t,weight:n,accessibilityLevel:r,color:i=`primary`,display:a=`block`,maxLines:o=0,hasTruncateTooltip:s=!0,wordBreak:c,textWrap:l,justify:u=`start`,hasCapsize:d=!1,hasStrikethrough:f=!1,xstyle:p,className:m,style:h,children:g,ref:_,...v}){let y=Wa[e],b=r&&r!==e?{"aria-level":r}:{},x=c??(o===1?`break-all`:`break-word`),S=o>0||d?`block`:a,C=t&&za(t)?t:void 0,w=gr({maxLines:o}),T=typeof s==`string`?s:`above`,E=o>0&&s!==!1&&w.isTruncated,D=(0,Va.useRef)(null),O=yr(_,w.ref,D),k=o>1?{WebkitLineClamp:o}:void 0;return(0,Ha.jsxs)(Ha.Fragment,{children:[(0,Ha.jsx)(y,{ref:O,...U(V(`heading`,{level:e,color:i,type:t,weight:n}),z(er[Ma(i)],C?rr[C]:ar[e],C&&nr[C],n&&tr[n],o===1?sr.singleLine:o>1?sr.multiLine:or[S],o>0&&cr[x],l&&lr[l],u!==`start`&&pr[u],d&&ur.enabled,f&&dr.strikethrough,p),m,{...h,...k}),...b,...v,children:g}),E&&(0,Ha.jsx)(Va.Suspense,{fallback:null,children:(0,Ha.jsx)(Ua,{anchorRef:D,content:(0,Ha.jsx)(`span`,{...z(mr.content),children:w.fullText}),placement:T})})]})}var Va,Ha,Ua,Wa,Ga=o((()=>{Va=u(f(),1),B(),hr(),vr(),Ra(),W(),xr(),H(),Ha=G(),Ua=(0,Va.lazy)(async()=>Promise.resolve().then(()=>(Aa(),wa)).then(e=>({default:e.Tooltip}))),Wa={1:`h1`,2:`h2`,3:`h3`,4:`h4`,5:`h5`,6:`h6`},Ba.displayName=`Heading`})),Ka=o((()=>{Ga()})),qa=o((()=>{Ra(),Ka(),vr()})),Ja=o((()=>{f(),Le(),G()}));function Ya(e){return e!==!1}function Xa({href:e,method:t=`GET`,data:n,preserveScroll:r=!1,preserveState:i=!1,replace:a=!1,reloadDocument:o=!1,viewTransition:s,prefetch:c=!1,cacheFor:l,onNavigate:u,children:d,style:f,onClick:p,onMouseEnter:m,onMouseLeave:h,onFocus:g,onMouseDown:_,onTouchStart:v,...y}){let b=(0,Za.useContext)(Ge),x=(0,Za.useRef)(null),S=(0,Za.useRef)(null),C=(0,Za.useMemo)(()=>t.toUpperCase(),[t]),w=C===`GET`,T=(0,Za.useMemo)(()=>w?Ee(e,n):e,[n,e,w]),E=(0,Za.useMemo)(()=>c===!1||o?[]:c===!0?[`hover`]:typeof c==`string`?[c]:c,[c,o]),D=b?._hoverDelay??75;if(Ya(c)&&!w)throw Error('Link: prefetch only supports GET links. Remove `prefetch` or use method="GET".');if(o&&!w)throw Error(`Link: reloadDocument only supports GET links.`);let O=(0,Za.useCallback)(()=>{if(!b?.prefetch)return;let e=window.location.pathname+window.location.search;if(T===e)return;let t={};l!==void 0&&(t.cacheFor=l),C&&(t.method=C),b.prefetch(T,t)},[l,T,C,b]),k=(0,Za.useCallback)(e=>!(o||!b||e.defaultPrevented||De(e)||e.currentTarget.hasAttribute(`download`)||new URL(T,window.location.origin).origin!==window.location.origin),[T,o,b]),A=(0,Za.useCallback)(e=>{if(p?.(e),!k(e))return;let t=!1;if(u?.({preventDefault(){t=!0}}),t){e.preventDefault();return}e.preventDefault(),b?.visit(T,{method:C,data:w?void 0:n,preserveScroll:r,preserveState:i,replace:a,viewTransition:s})},[n,T,w,C,p,u,r,i,a,b,k,s]),j=(0,Za.useCallback)(e=>{m?.(e),!e.defaultPrevented&&(S.current&&clearTimeout(S.current),S.current=setTimeout(O,D))},[O,D,m]),M=(0,Za.useCallback)(e=>{h?.(e),S.current&&=(clearTimeout(S.current),null)},[h]),N=(0,Za.useCallback)(e=>{g?.(e),e.defaultPrevented||O()},[O,g]),ee=(0,Za.useCallback)(e=>{_?.(e),e.defaultPrevented||O()},[O,_]),P=(0,Za.useCallback)(e=>{v?.(e),e.defaultPrevented||O()},[O,v]);(0,Za.useEffect)(()=>{if(E.length===0)return;E.includes(`mount`)&&O();let e=null;return E.includes(`visible`)&&x.current&&(e=new IntersectionObserver(t=>{t.some(e=>e.isIntersecting)&&(O(),e?.disconnect(),e=null)},{rootMargin:`0px`}),e.observe(x.current)),()=>{S.current&&=(clearTimeout(S.current),null),e&&e.disconnect()}},[O,E]);let te=(0,Za.useMemo)(()=>{let e={onClick:A,onFocus:g,onMouseDown:_,onMouseEnter:m,onMouseLeave:h,onTouchStart:v};return E.includes(`hover`)&&(e.onMouseEnter=j,e.onMouseLeave=M,e.onFocus=N,e.onTouchStart=P),E.includes(`click`)&&(e.onMouseDown=ee,e.onTouchStart=P),e},[A,N,g,ee,_,j,m,M,h,P,v,E]),F=(0,Za.useMemo)(()=>({touchAction:`manipulation`,...f}),[f]);return w?(0,Qa.jsx)(`a`,{ref:x,href:T,style:F,...y,...te,children:d}):(0,Qa.jsx)(`button`,{ref:x,type:`button`,style:F,...y,...te,children:d})}var Za,Qa,$a=o((()=>{Za=u(f(),1),Le(),qe(),Qa=G()}));function eo(){return(0,to.useContext)(Ge)??Ie}var to,no=o((()=>{to=u(f(),1),Le(),qe()})),ro=o((()=>{f(),qe()}));function io(){let e=(0,ao.useContext)(He);if(!e)throw Error(`useShared(): must be used inside a Void page.`);return e}var ao,oo=o((()=>{ao=u(f(),1),qe()})),so=o((()=>{f(),Le(),qe()}));function co(){return(0,lo.useContext)(Ke)}var lo,uo=o((()=>{lo=u(f(),1),qe()})),fo=o((()=>{f(),Le()})),po=o((()=>{Ja(),$a(),no(),ro(),oo(),so(),uo(),fo(),Be(),qe()}));function mo(e,t){if(!e&&!t)return;if(!e)return t;if(!t)return e;let n={};for(let[t,r]of Object.entries(e))n[t]={...r};for(let[e,r]of Object.entries(t))if(!n[e])n[e]={...r};else for(let[t,i]of Object.entries(r))n[e][t]={...n[e][t],...i};return n}var ho=o((()=>{}));function go(e,t,n){return Math.round(e*t**+n)}function _o(e){return`${Math.round(e/16*1e4)/1e4}rem`}function vo(e){return e<20?1.5:e<32?1.4:1.25}function yo(e){let t=e*vo(e),n=Math.max(Math.round(t/4)*4,Math.ceil((e+4)/4)*4);return Math.round(n/e*1e4)/1e4}function bo(e){let{base:t,ratio:n,weights:r}=e,i={},a={...To,...r?.heading},o={...Eo,...r?.text};for(let e=-5;e<=6;e++){let r=go(t,n,e);i[So[e]]=_o(r)}for(let[e,r]of Object.entries(Co)){let o=Number(e),s=yo(go(t,n,r));i[`--text-heading-${o}-size`]=`var(${So[r]})`,i[`--text-heading-${o}-weight`]=a[o],i[`--text-heading-${o}-leading`]=`${s}`}for(let[e,r]of Object.entries(wo)){let a=yo(go(t,n,r));i[`--text-${e}-size`]=`var(${So[r]})`,i[`--text-${e}-weight`]=o[e],i[`--text-${e}-leading`]=`${a}`}return i}function xo(e){let t={},n={};for(let e of[1,2,3,4,5,6])n[`level:${e}`]={fontFamily:`var(--font-family-heading)`,fontSize:`var(--text-heading-${e}-size)`,fontWeight:`var(--text-heading-${e}-weight)`,lineHeight:`var(--text-heading-${e}-leading)`};for(let e of[`display-1`,`display-2`,`display-3`])n[`type:${e}`]={fontFamily:`var(--font-family-heading)`,fontSize:`var(--text-${e}-size)`,lineHeight:`var(--text-${e}-leading)`};t.heading=n;let r={};for(let e of[`body`,`large`,`label`,`code`,`supporting`,`display-1`,`display-2`,`display-3`])r[`type:${e}`]={fontFamily:Do[e],fontSize:`var(--text-${e}-size)`,lineHeight:`var(--text-${e}-leading)`};return t.text=r,t}var So,Co,wo,To,Eo,Do,Oo=o((()=>{So={[-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`},Co={1:3,2:2,3:1,4:0,5:-1,6:-2},wo={body:0,large:1,label:0,code:0,supporting:-1,"display-1":6,"display-2":5,"display-3":4},To={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)`},Eo={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)`},Do={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 ko(e){return Math.round(e/5)*5}function Ao(e){let{fast:t,medium:n,slow:r,ratio:i,easing:a}=e,o={"--duration-fast-min":`${ko(t*i)}ms`,"--duration-fast":`${ko(t)}ms`,"--duration-fast-max":`${ko(t/i)}ms`,"--duration-medium-min":`${ko(n*i)}ms`,"--duration-medium":`${ko(n)}ms`,"--duration-medium-max":`${ko(n/i)}ms`};return r!=null&&(o[`--duration-slow-min`]=`${ko(r*i)}ms`,o[`--duration-slow`]=`${ko(r)}ms`,o[`--duration-slow-max`]=`${ko(r/i)}ms`),a&&(o[`--ease-standard`]=a),o}var jo=o((()=>{}));function Mo(e){let{base:t,multiplier:n}=e;return{"--radius-none":`0px`,"--radius-inner":`${Math.round(t*1*n)}px`,"--radius-element":`${Math.round(t*2*n)}px`,"--radius-container":`${Math.round(t*3*n)}px`,"--radius-page":`${Math.round(t*7*n)}px`,"--radius-chat":`${Math.round(t*7*n)}px`,"--radius-full":`9999px`}}var No=o((()=>{}));function Po(e){let t=e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4};return .2126*t(e.r)+.7152*t(e.g)+.0722*t(e.b)}function Fo(e,t){let n=e.a;return{r:e.r*n+t.r*(1-n),g:e.g*n+t.g*(1-n),b:e.b*n+t.b*(1-n),a:1}}function Io(e,t){if(typeof e!=`string`)return e;let n=yn(e);if(n===null)throw TypeError(`contrastRatio: could not parse ${t} "${e}"`);return n}function Lo(e,t){let n=Io(t,`background`);if(n.a<1)throw TypeError(`contrastRatio: background must be opaque — composite it over its backdrop first`);let r=Io(e,`foreground`);r.a<1&&(r=Fo(r,n));let i=Po(r),a=Po(n),o=Math.max(i,a),s=Math.min(i,a);return(o+.05)/(s+.05)}var Ro=o((()=>{Cn()}));function zo(e){let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function Bo(e){let t=e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055;return Math.round(Math.min(255,Math.max(0,t*255)))}function Vo(e,t,n){return[.4124564*e+.3575761*t+.1804375*n,.2126729*e+.7151522*t+.072175*n,.0193339*e+.119192*t+.9503041*n]}function Ho(e,t,n){return[3.2404542*e-1.5371385*t-.4985314*n,-.969266*e+1.8760108*t+.041556*n,.0556434*e-.2040259*t+1.0572252*n]}function Uo(e){let t=6/29;return e>t*t*t?Math.cbrt(e):e/(3*t*t)+4/29}function Wo(e){let t=6/29;return e>t?e*e*e:3*t*t*(e-4/29)}function Go(e,t,n){let r=Uo(e/ts[0]),i=Uo(t/ts[1]),a=Uo(n/ts[2]);return[116*i-16,500*(r-i),200*(i-a)]}function Ko(e,t,n){let r=(e+16)/116,i=t/500+r,a=r-n/200;return[Wo(i)*ts[0],Wo(r)*ts[1],Wo(a)*ts[2]]}function qo(e){return Wo((e+16)/116)}function Jo(e){let t=_n(e);return t===null?[0,0,0]:[t.r,t.g,t.b]}function Yo(e){let[t,n,r]=Jo(e),[i,a,o]=Vo(zo(t),zo(n),zo(r)),[s,c,l]=Go(i,a,o),u=Math.atan2(l,c)*180/Math.PI;u<0&&(u+=360);let d=Math.sqrt(c*c+l*l);return{hue:u,chroma:d,tone:Math.max(0,Math.min(100,s))}}function Xo(e){let{hue:t,chroma:n,tone:r}=e;if(r<=0)return`#000000`;if(r>=100)return`#FFFFFF`;if(n<.5){let e=Zo(r);return bn(e,e,e)}let i=0,a=n,o=`#000000`;for(let e=0;e<16;e++){let e=(i+a)/2,n=Qo(t,e,r);n===null?a=e:(o=n,i=e)}return o}function Zo(e){return Bo(qo(e))}function Qo(e,t,n){let r=e*Math.PI/180,[i,a,o]=Ko(n,Math.cos(r)*t,Math.sin(r)*t),[s,c,l]=Ho(i,a,o),u=Bo(s),d=Bo(c),f=Bo(l),p=zo(u),m=zo(d),h=zo(f),g=.02;return Math.abs(p-s)>g||Math.abs(m-c)>g||Math.abs(h-l)>g||u<0||u>255||d<0||d>255||f<0||f>255?null:bn(u,d,f)}function $o(e,t){let n={};for(let r of ns)n[r]=Xo({hue:e,chroma:t,tone:r});return n}function es(e,t){return e+Math.round(t*255).toString(16).padStart(2,`0`).toUpperCase()}var ts,ns,rs=o((()=>{Cn(),ts=[.95047,1,1.08883],ns=[0,5,10,20,30,40,50,60,70,80,90,95,99,100]}));function is(e,t){return`light-dark(${e}, ${t})`}function as(e){return`color-mix(in srgb, var(--color-accent) ${e*100}%, transparent)`}function os(e,t,n,r,i,a){let o=n,s=Xo({hue:e,chroma:t,tone:o});for(;Lo(s,i)<a&&o+r>=0&&o+r<=100;)o+=r,s=Xo({hue:e,chroma:t,tone:o});return s}function ss(e){let{accent:t,neutralStyle:n=`cool`,contrast:r=`standard`}=e,[i,a]=Array.isArray(t)?t:[t,t],o=Yo(i??us),s=a===i,c=s?o:Yo(a??us),l=cs[n]??5,u=ls[n]??8,d=$o(o.hue,Math.max(o.chroma,48)),f=$o(o.hue,l),p=$o(o.hue,u),m=s?d:$o(c.hue,Math.max(c.chroma,48)),h=s?f:$o(c.hue,l),g=s?p:$o(c.hue,u),_=r===`high`,v=_?0:10,y=_?99:90,b=_?20:30,x=_?80:70,S=_?.2:.1,C=_?50:70,w=_?50:30,T=is(os(o.hue,u,C,-1,f[99],ds),os(c.hue,u,w,1,h[10],ds));return{...t==null?null:{"--color-accent":is(d[40],m[80]),"--color-accent-muted":is(as(.2),as(.25)),"--color-on-accent":is(d[100],m[20])},"--color-neutral":is(es(f[10],.1),es(h[90],.2)),"--color-background-surface":is(f[99],h[10]),"--color-background-body":is(f[95],h[5]),"--color-overlay":is(es(f[10],.4),es(h[10],.6)),"--color-overlay-hover":is(es(f[10],.05),es(h[100],.05)),"--color-overlay-pressed":is(es(f[10],.1),es(h[100],.1)),"--color-background-muted":is(es(f[10],.05),es(h[10],.5)),"--color-text-primary":is(f[v],h[y]),"--color-text-secondary":is(p[b],g[x]),"--color-text-disabled":is(p[60],g[40]),"--color-text-accent":`var(--color-accent)`,"--color-icon-accent":`var(--color-accent)`,"--color-icon-primary":is(f[v],h[y]),"--color-icon-secondary":is(p[b],g[x]),"--color-icon-disabled":is(p[60],g[40]),"--color-background-card":is(f[99],h[10]),"--color-background-popover":is(f[99],h[20]),"--color-background-inverted":is(f[10],h[99]),"--color-border":is(es(f[10],S),es(h[95],S)),"--color-border-emphasized":T,"--color-skeleton":is(p[70],g[30]),"--color-track":is(p[70],g[30]),"--color-shadow":is(es(f[0],.1),es(h[0],.3)),"--color-tint-hover":is(`black`,`white`)}}var cs,ls,us,ds,fs=o((()=>{Ro(),rs(),cs={warm:7,cool:5,neutral:3},ls={warm:10,cool:8,neutral:6},us=`#0064E0`,ds=3}));function ps(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 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 ms(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 hs(e,t){if(!e)return;let n=e.includes(` `)?`"${e}"`:e;return t?`${n}, ${t}`:n}function gs(e){if(!e.scale)return;let t={},n=e.heading;if(n?.weights)for(let[e,r]of Object.entries(n.weights))r&&(t[Number(e)]=ms(r));let r=n?.weight?ms(n.weight):void 0;if(r)for(let e=1;e<=6;e++)e in t||(t[e]=r);let i={};return e.body?.weight&&(i.body=ms(e.body.weight)),e.code?.weight&&(i.code=ms(e.code.weight)),{base:e.scale.base,ratio:e.scale.ratio,weights:{...Object.keys(t).length>0?{heading:t}:{},...Object.keys(i).length>0?{text:i}:{}}}}function _s(e){let t={},n=hs(e.body?.family,e.body?.fallbacks),r=hs(e.heading?.family,e.heading?.fallbacks)??n,i=hs(e.code?.family,e.code?.fallbacks);return n&&(t[`--font-family-body`]=n),r&&(t[`--font-family-heading`]=r),i&&(t[`--font-family-code`]=i),t}function vs(e,t,{strictTokens:n=!1}={}){let r={...t?.tokens},i=e.typography,a=i?gs(i):void 0;if(e.color&&Object.assign(r,ss(e.color)),a&&Object.assign(r,bo(a)),e.radius&&Object.assign(r,Mo(e.radius)),e.motion&&Object.assign(r,Ao(e.motion)),i&&Object.assign(r,_s(i)),e.syntax)for(let[t,n]of Object.entries(e.syntax.tokens))r[`--color-syntax-`+t]=n;if(e.tokens)for(let[t,i]of Object.entries(e.tokens))i!==void 0&&(r[t]=ps(i,{strict:n}));let o=e.components;return a&&(o=mo(xo(a),e.components)),t?.components&&(o=mo(t.components,o)),{tokens:r,components:o}}var ys=o((()=>{Oo(),jo(),No(),fs(),ho()}));function bs(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function xs(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 Error(`${t} must be a CSS string or a [light, dark] string tuple.`)}function Ss(e,t){if(typeof e==`string`){Es.lastIndex=0;for(let n=Es.exec(e);n;n=Es.exec(e))t.add(n[1]);return}if(Array.isArray(e)){for(let n of e)Ss(n,t);return}if(e&&typeof e==`object`)for(let n of Object.values(e))Ss(n,t)}function Cs(e,t,n){let r=new Map;for(let[t,n]of Object.entries(e)){let i=new Set;Ss(n,i),r.set(t,[...i].filter(t=>bs(e,t)))}let i=(e,t)=>{let n=[e],i=new Set(n),a=o=>{for(let s of r.get(o)??[])if(t.has(s)){if(s===e)return n.push(e),!0;if(!i.has(s)){if(n.push(s),i.add(s),a(s))return!0;i.delete(s),n.pop()}}return!1};return a(e),n},a=0,o=new Map,s=new Map,c=[],l=new Set,u=e=>{let d=a++;o.set(e,d),s.set(e,d),c.push(e),l.add(e);for(let t of r.get(e)??[])o.has(t)?l.has(t)&&s.set(e,Math.min(s.get(e)??d,o.get(t)??0)):(u(t),s.set(e,Math.min(s.get(e)??d,s.get(t)??0)));if(s.get(e)!==d)return;let f=[],p;do p=c.pop()??e,l.delete(p),f.push(p);while(p!==e);if(!(f.length>1||(r.get(f[0])??[]).includes(f[0]))||n&&!f.some(e=>n.has(e)))return;let m=f.find(e=>n?.has(e))??f[0],h=i(m,new Set(f)).join(` -> `);throw Error(`${t?`${t}: `:``}Theme token cycle detected: ${h}.`)};for(let t of Object.keys(e))o.has(t)||u(t)}function ws(e,t,n,r){let i=`defineTheme("${e}").adaptations.rules[${t}].value.localTokens`;if(n===void 0)return;if(typeof n!=`object`||!n||Array.isArray(n))throw Error(`${i} must be a token map.`);let a={};for(let[e,t]of Object.entries(n)){if(!r||!bs(r,e))throw Error(`${i}["${e}"] cannot enroll a theme-local token. Declare it in the root theme or an exact enrolled base first.`);a[e]=xs(t,`${i}["${e}"]`)}return Object.keys(a).length>0?a:void 0}var Ts,Es,Ds=o((()=>{Ts=String.raw`(?:[-_a-zA-Z0-9]|\P{ASCII}|\\(?:[0-9a-fA-F]{1,6}[ \t\r\n\f]?|[^\r\n\f]))`,RegExp(`^--${Ts}*$`,`u`),Es=RegExp(`var\\(\\s*(--${Ts}*)(?=\\s*(?:,|\\)))`,`giu`)}));function Os(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function ks(e,t){if(!Os(e))throw Error(`${t} must be an object.`)}function As(e,t,n){for(let r of Object.keys(e))if(!t.has(r))throw Error(`${n}.${r} is not supported.`)}function js(e){if(Array.isArray(e)){let t=[];for(let n of e)t.push(js(n));return t}return Os(e)?Object.fromEntries(Object.entries(e).map(([e,t])=>[e,js(t)])):e}function Ms(e,t){ks(e,t),As(e,ec,t);let n={};for(let r of Qs){let i=e[r];if(i!==void 0){if(typeof i!=`number`||!Number.isFinite(i)||i<=0)throw Error(`${t}.${r} must be a finite positive number of CSS pixels.`);n[r]=i}}return n}function Ns(e,t){let n=Ms(e,t);for(let e of Qs)if(n[e]===void 0)throw Error(`${t}.${e} is missing from the effective breakpoint map.`);return n}function Ps(e,t){let n;for(let r of Qs){if(n!==void 0&&e[r]<=e[n])throw Error(`${t} must be strictly increasing: ${r} (${e[r]}) is not above ${n} (${e[n]}).`);n=r}}function Fs(e,t){ks(e,t),As(e,rc,t);let n=Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0));if(Object.keys(n).length===0)throw Error(`${t} must contain at least one condition.`);let r=js(n);if(r.width!==void 0){if(ks(r.width,`${t}.width`),As(r.width,ic,`${t}.width`),r.width.from===void 0&&r.width.below===void 0)throw Error(`${t}.width must contain \`from\`, \`below\`, or both.`);for(let e of[`from`,`below`]){let n=r.width[e];if(n!==void 0&&(typeof n!=`string`||!ec.has(n)))throw Error(`${t}.width.${e} must be one of ${Qs.join(`, `)}.`)}}if(r.pointer!==void 0&&r.pointer!==`coarse`&&r.pointer!==`fine`)throw Error(`${t}.pointer must be 'coarse' or 'fine'.`);if(r.contrast!==void 0&&r.contrast!==`more`&&r.contrast!==`less`&&r.contrast!==`no-preference`)throw Error(`${t}.contrast must be 'more', 'less', or 'no-preference'.`);if(r.motion!==void 0&&r.motion!==`reduce`&&r.motion!==`no-preference`)throw Error(`${t}.motion must be 'reduce' or 'no-preference'.`);return r}function Is(e,t){ks(e,t),As(e,ac,t);for(let n of ac){let r=e[n];if(r!==void 0&&!Os(r))throw Error(`${t}.${n} must be an object.`)}return js(e)}function Ls(e,t){if(ks(e,t),As(e,nc,t),!Object.prototype.hasOwnProperty.call(e,`when`))throw Error(`${t}.when is required.`);if(!Object.prototype.hasOwnProperty.call(e,`value`))throw Error(`${t}.value is required.`);return{when:Fs(e.when,`${t}.when`),value:Is(e.value,`${t}.value`)}}function Rs(e,t){if(!Array.isArray(e))throw Error(`${t} must be an array of {when, value} objects.`);for(let n=0;n<e.length;n++)if(!Object.prototype.hasOwnProperty.call(e,n))throw Error(`${t}[${n}] must be present.`);return e.map((e,n)=>Ls(e,`${t}[${n}]`))}function zs(e,t,n){let r=`defineTheme("${e}").adaptations`,i={...$s},a=[];t!==void 0&&(ks(t,`defineTheme("${e}").extends.__adaptations`),As(t,new Set([`widthBreakpoints`,`rules`]),`defineTheme("${e}").extends.__adaptations`),i=Ns(t.widthBreakpoints,`defineTheme("${e}").extends.__adaptations.widthBreakpoints`),a=Rs(t.rules,`defineTheme("${e}").extends.__adaptations.rules`));let o={},s=[];n!==void 0&&(ks(n,r),As(n,tc,r),n.widthBreakpoints!==void 0&&(o=Ms(n.widthBreakpoints,`${r}.widthBreakpoints`)),n.rules!==void 0&&(s=Rs(n.rules,`${r}.rules`)));let c={...i,...o};return Ps(c,`${r}.widthBreakpoints`),{widthBreakpoints:c,rules:[...a,...s]}}function Bs(e,t){return e?t?{...e,...t,weights:e.weights||t.weights?{...e.weights,...t.weights}:void 0}:e:t}function Vs(e,t){if(typeof e!=`number`||!Number.isFinite(e))throw Error(`${t} must be a finite number.`)}function Hs(e,t,n){let r=t.scale!==void 0||[t.body,t.heading,t.code].some(e=>e?.weight!==void 0||e?.weights!==void 0),i=r?e?.scale:void 0;if(t.scale!==void 0){let r=t.scale.base??e?.scale?.base,a=t.scale.ratio??e?.scale?.ratio;if(r===void 0||a===void 0)throw Error(`${n}.scale must supply both \`base\` and \`ratio\` unless the missing field exists on the effective root typography axis.`);Vs(r,`${n}.scale.base`),Vs(a,`${n}.scale.ratio`),i={base:r,ratio:a}}else if(r&&i===void 0)throw Error(`${n} sets typography weights without an effective root scale. Supply \`scale.base\` and \`scale.ratio\` in the same rule.`);return{...i?{scale:i}:{},body:Bs(e?.body,t.body),heading:Bs(e?.heading,t.heading),code:Bs(e?.code,t.code)}}function Us(e,t,n){let r=t.base??e?.base,i=t.multiplier??e?.multiplier;if(r===void 0||i===void 0)throw Error(`${n} must supply both \`base\` and \`multiplier\` unless the missing field exists on the effective root radius axis.`);return Vs(r,`${n}.base`),Vs(i,`${n}.multiplier`),{base:r,multiplier:i}}function Ws(e,t,n){let r=t.fast??e?.fast,i=t.medium??e?.medium,a=t.ratio??e?.ratio;if(r===void 0||i===void 0||a===void 0)throw Error(`${n} must supply \`fast\`, \`medium\`, and \`ratio\` unless each missing field exists on the effective root motion axis.`);Vs(r,`${n}.fast`),Vs(i,`${n}.medium`),Vs(a,`${n}.ratio`);let o=t.slow??e?.slow;o!==void 0&&Vs(o,`${n}.slow`);let s=t.easing??e?.easing;return{fast:r,medium:i,ratio:a,...o===void 0?{}:{slow:o},...s===void 0?{}:{easing:s}}}function Gs(e,t,n,r){let i=`defineTheme("${e}").adaptations.rules[${t}].value`;return{typography:n.typography?Hs(r.typography,n.typography,`${i}.typography`):void 0,color:n.color?{...r.color,...n.color}:void 0,radius:n.radius?Us(r.radius,n.radius,`${i}.radius`):void 0,motion:n.motion?Ws(r.motion,n.motion,`${i}.motion`):void 0,tokens:n.tokens,components:n.components}}function Ks(e,t){if(typeof e==`string`){if(/\b(?:NaN|undefined)\b/.test(e))throw Error(`${t} resolved to the invalid CSS value "${e}".`);return}if(Os(e)){for(let[n,r]of Object.entries(e))Ks(r,`${t}.${n}`);return}throw Error(`${t} must resolve to a concrete CSS string.`)}function qs(e,t,n,r){let i=`defineTheme("${e}").adaptations.rules[${t}].when`,a=[];if(n.width){let e=n.width.from,t=n.width.below;if(e!==void 0&&t!==void 0&&r[e]>=r[t])throw Error(`${i}.width must resolve to \`from < below\`; ${e} is ${r[e]}px and ${t} is ${r[t]}px.`);e!==void 0&&a.push(`(width >= ${r[e]}px)`),t!==void 0&&a.push(`(width < ${r[t]}px)`)}if(n.pointer!==void 0&&a.push(`(pointer: ${n.pointer})`),n.contrast!==void 0&&a.push(`(prefers-contrast: ${n.contrast})`),n.motion!==void 0&&a.push(`(prefers-reduced-motion: ${n.motion})`),a.length===0)throw Error(`${i} must contain at least one concrete condition.`);return a.join(` and `)}function Js(e,t,n){let r=e.width?.from;if(r!==void 0&&n.width<t[r])return!1;let i=e.width?.below;return!(i!==void 0&&n.width>=t[i]||e.pointer!==void 0&&e.pointer!==n.pointer||e.contrast!==void 0&&e.contrast!==n.contrast||e.motion!==void 0&&e.motion!==n.motion)}function Ys(e,t,n,r,i){let a=i.flatMap((e,t)=>Object.keys(e.tokens).length>0||e.localTokens&&Object.keys(e.localTokens).length>0?[t]:[]);if(a.length===0)return;let o=[0,...Qs.map(e=>t[e])],s=new Set;for(let c of o)for(let o of oc.pointer)for(let l of oc.contrast)for(let u of oc.motion){let d={width:c,pointer:o,contrast:l,motion:u},f=a.filter(e=>Js(i[e].when,t,d));if(f.length===0)continue;let p=f.join(`,`);if(s.has(p))continue;s.add(p);let m={...n,...r},h=new Set;for(let e of f){let t=i[e];Object.assign(m,t.tokens,t.localTokens);for(let e of Object.keys(t.tokens))h.add(e);for(let e of Object.keys(t.localTokens??{}))h.add(e)}let g=f.join(`, `),_=f.map(e=>i[e].query).join(`; `);Cs(m,`defineTheme("${e}").adaptations ${f.length===1?`rule`:`overlapping rules`} [${g}] (${_})`,h)}}function Xs(e,t,n){if(!e||!t)return e;let r={};for(let[i,a]of Object.entries(e))for(let[e,o]of Object.entries(a)){let a=Object.fromEntries(Object.entries(o).filter(([r])=>t[i]?.[e]?.[r]===void 0||Object.hasOwn(n?.[i]?.[e]??{},r)));Object.keys(a).length>0&&((r[i]??={})[e]=a)}return Object.keys(r).length>0?r:void 0}function Zs(e,t,n,r,i,a){if(t.rules.length===0)return;let o=t.rules.map((r,o)=>{let s=Gs(e,o,r.value,n),c=vs(s,void 0,{strictTokens:!0});for(let[t,n]of Object.entries(c.tokens))Ks(n,`defineTheme("${e}").adaptations.rules[${o}].value.tokens["${t}"]`);c.components&&Ks(c.components,`defineTheme("${e}").adaptations.rules[${o}].value.components`);for(let t of Object.keys(r.value.tokens??{}))if(i&&Object.prototype.hasOwnProperty.call(i,t))throw Error(`defineTheme("${e}").adaptations.rules[${o}].value.tokens["${t}"] matches an enrolled theme-local declaration; write it through value.localTokens instead.`);let l=ws(e,o,r.value.localTokens,i);return{when:r.when,query:qs(e,o,r.when,t.widthBreakpoints),tokens:c.tokens,localTokens:l,components:s.typography?.scale?Xs(c.components,a,r.value.components):c.components}});return Ys(e,t.widthBreakpoints,r,i,o),o}var Qs,$s,ec,tc,nc,rc,ic,ac,oc,sc=o((()=>{ys(),Ds(),Qs=[`sm`,`md`,`lg`,`xl`,`2xl`],$s=Object.freeze({sm:640,md:768,lg:1024,xl:1280,"2xl":1536}),ec=new Set(Qs),tc=new Set([`widthBreakpoints`,`rules`]),nc=new Set([`when`,`value`]),rc=new Set([`width`,`pointer`,`contrast`,`motion`]),ic=new Set([`from`,`below`]),ac=new Set([`typography`,`color`,`radius`,`motion`,`tokens`,`localTokens`,`components`]),oc={pointer:[`coarse`,`fine`,`none`],contrast:[`more`,`less`,`no-preference`,`custom`],motion:[`reduce`,`no-preference`]}})),cc,lc=o((()=>{cc={"--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)`}}));function uc(e){fc.set(e.name,e)}function dc(e){return e==null||e===``?null:fc.get(e)??null}var fc,pc=o((()=>{fc=new Map}));function mc(e,t){let n=gc[e],r=hc[e]??(n?hc[n]:void 0);return r?r.filter(e=>e.property===t):[]}var hc,gc,_c=o((()=>{hc={avatar:[{property:`borderRadius`,vars:[`--_avatar-radius`]}],banner:[{property:`borderRadius`,vars:[`--_banner-radius`]}],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`}],"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}]},gc={hovercard:`hover-card`,"progressbar-mark":`progress-bar-mark`,textarea:`text-area`}}));function vc(e){return e===`
11
- `||e===`\r`||e===`\f`}function yc(e){return e===` `||e===` `||vc(e)}function bc(e){return/^[0-9a-fA-F]$/.test(e)}function xc(e){return/^[A-Za-z_]$/.test(e)||e.charCodeAt(0)>=128}function Sc(e){return xc(e)||/^[0-9-]$/.test(e)}function Cc(e){return e.replace(/\r\n?|\f/g,`
12
- `).replace(/\0/g,`�`)}function wc(e,t){return e[t]===`\\`&&t+1<e.length&&!vc(e[t+1])}function Tc(e,t){let n=e[t];if(n===`-`){let n=e[t+1];return n!==void 0&&(n===`-`||xc(n)||wc(e,t+1))}return n===`\\`?wc(e,t):n!==void 0&&xc(n)}function Ec(e,t){if(bc(e[t])){let n=t;for(;n<e.length&&n-t<6&&bc(e[n]);)n++;return n<e.length&&yc(e[n])&&n++,n}return t+((e.codePointAt(t)??0)>65535?2:1)}function Dc(e,t){let n=``,r=t;for(;r<e.length;){let t=e[r];if(Sc(t))n+=t,r++;else if(wc(e,r)){let t=Ec(e,r+1);if(bc(e[r+1])){let i=e.slice(r+1,t).trim(),a=parseInt(i,16);n+=a===0||a>1114111||a>=55296&&a<=57343?`�`:String.fromCodePoint(a)}else n+=e.slice(r+1,t);r=t}else break}return{end:r,name:n}}function Oc(e,t){let n=e[t],r=t+1;for(;r<e.length;){let t=e[r];if(t===n)return{end:r+1};if(vc(t))return{reason:`a newline inside a quoted string makes a bad string`};if(t===`\\`){if(r+1>=e.length)break;r=vc(e[r+1])?r+2:Ec(e,r+1);continue}r++}return{reason:`an unclosed ${n} string would swallow the rest of the rule`}}function kc(e,t){let n=t;for(;n<e.length;){let t=e[n];if(t===`)`)return{end:n+1};if(yc(t)){for(;n<e.length&&yc(e[n]);)n++;if(n>=e.length)break;return e[n]===`)`?{end:n+1}:{reason:`whitespace inside an unquoted url() makes a bad url`}}if(Mc.test(t))return{reason:`a non-printable character inside url() makes a bad url`};if(t===`"`||t===`'`||t===`(`)return{reason:`"${t}" inside an unquoted url() makes a bad url; quote the URL instead`};if(t===`\\`){if(!wc(e,n))return{reason:`a stray backslash inside url() makes a bad url`};n=Ec(e,n+1);continue}n++}return{reason:`an unclosed url( would swallow the rest of the rule`}}function Ac(e){let t=Cc(e),n=[],r=0;for(;r<t.length;){let e=t[r];if(e===`/`&&t[r+1]===`*`){let e=t.indexOf(`*/`,r+2);if(e===-1)return`an unclosed /* comment would swallow the rest of the rule`;r=e+2;continue}if(e===`"`||e===`'`){let e=Oc(t,r);if(`reason`in e)return e.reason;r=e.end;continue}if(Tc(t,r)){let e=Dc(t,r);if(r=e.end,t[r]===`(`&&e.name.toLowerCase()===`url`){let e=r+1;for(;e<t.length&&yc(t[e]);)e++;if(t[e]===`"`||t[e]===`'`){n.push(`)`),r+=1;continue}let i=kc(t,e);if(`reason`in i)return i.reason;r=i.end}continue}if(e===`\\`){if(r+1>=t.length)return`a trailing backslash would escape the declaration terminator`;r=vc(t[r+1])?r+1:Ec(t,r+1);continue}if(e===`(`||e===`[`||e===`{`){if(e===`{`&&n.length===0)return`an unquoted "{" would open a nested block`;n.push(Nc[e]),r++;continue}if(e===`)`||e===`]`||e===`}`){if(n.length===0)return e===`}`?`an unquoted "}" would close the rule`:`an unbalanced "${e}" has nothing to close`;let t=n.pop();if(t!==e)return`"${e}" does not close the open "${t===`)`?`(`:t===`]`?`[`:`{`}"`;r++;continue}if(e===`;`&&n.length===0)return`an unquoted ";" would end the declaration`;r++}if(n.length>0){let e=n[n.length-1];return`an unclosed "${e===`)`?`(`:e===`]`?`[`:`{`}" would swallow the rest of the rule`}return null}function jc(e){let t=Cc(e);if(t.length===0||!Tc(t,0))return`a property name must be a CSS identifier`;let{end:n}=Dc(t,0);return n===t.length?null:`a property name must be one CSS identifier; "${t[n]}" cannot appear in one`}var Mc,Nc,Pc=o((()=>{Mc=/[\x01-\x08\x0b\x0e-\x1f\x7f]/,Nc={"(":`)`,"[":`]`,"{":`}`}}));function Fc(e){return`[data-${Mt}-theme="${e}"]`}function Ic(e){return`[data-${Mt}-media="${e}"]`}function Lc(e,t){return`.${jt}-${e}${t}`}function Rc(e,t,n){let r=Lc(e,t);return n?`:is(${Ic(n)}) :is(${r})`:r}function zc(e,t){let n=[],r=0,i=0;for(let t=0;t<e.length;t++){let a=e[t];a===`(`?r++:a===`)`?r=Math.max(0,r-1):a===`,`&&r===0&&(n.push(e.slice(i,t).trim()),i=t+1)}n.push(e.slice(i).trim());let a=Bc(t);return n.map(e=>`${e}${a}`).join(`, `)}function Bc(e){if(!/^:hover(?![-\w])/.test(e)||e.includes(`[aria-disabled`))return e;let t=e.indexOf(`::`);return t===-1?e+ml:e.slice(0,t)+ml+e.slice(t)}function Vc(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function Hc(e){let t={};for(let[n,r]of e)switch(gl[n]??n){case`padding`:{let e=r.trim().split(/\s+/);e.length===1?(t.blockStart=e[0],t.blockEnd=e[0],t.inline=e[0]):e.length===2?(t.blockStart=e[0],t.blockEnd=e[0],t.inline=e[1]):e.length>=3&&(t.blockStart=e[0],t.inline=e[1],t.blockEnd=e[2]);break}case`paddingBlock`:{let e=r.trim().split(/\s+/);t.blockStart=e[0],t.blockEnd=e[1]??e[0];break}case`paddingInline`:{let e=r.trim().split(/\s+/);e.length===1?t.inline=e[0]:(t.inlineStart=e[0],t.inlineEnd=e[1]);break}case`paddingBlockStart`:t.blockStart=r;break;case`paddingBlockEnd`:t.blockEnd=r;break;case`paddingInlineStart`:t.inlineStart=r;break;case`paddingInlineEnd`:t.inlineEnd=r}return t}function Uc(e,t,n=!1){let r=kt(`${e}-padding`),i=[],a=t.inlineStart??t.inline,o=t.inlineEnd??t.inline;if(a!=null&&o!=null&&a===o&&t.blockStart!=null&&t.blockEnd!=null&&a===t.blockStart&&t.blockStart===t.blockEnd?i.push([r,a??``]):(t.inlineStart!=null||t.inlineEnd!=null?(a!=null&&i.push([`${r}-inline-start`,a]),o!=null&&i.push([`${r}-inline-end`,o])):t.inline!=null&&i.push([`${r}-inline`,t.inline]),t.blockStart!=null&&i.push([`${r}-block-start`,t.blockStart]),t.blockEnd!=null&&i.push([`${r}-block-end`,t.blockEnd])),n){let e=new Set(i.map(([e])=>e)),t=e.has(r)?[`${r}-inline`,`${r}-inline-start`,`${r}-inline-end`,`${r}-block-start`,`${r}-block-end`]:e.has(`${r}-inline`)?[`${r}-inline-start`,`${r}-inline-end`]:[];for(let n of t)e.has(n)||i.push([n,`initial`])}return i}function Wc(e){return e?t=>e.push(t):vl}function Gc(e){let t=JSON.stringify(e);return t.length>80?`${t.slice(0,77)}..."`:t}function Kc(e,t,n,r,i){e(`dropped "${t}" in ${r}: ${i} (value: ${Gc(n)})`)}function qc(e,t,n,r){let i=jc(e)??Ac(t);return i===null||(Kc(r,e,t,n,i),!1)}function Jc(e,t,n,r=e=>e){let i=[];for(let[a,o]of e){let e=`${o}`,s=r(a);qc(s,e,t,n)&&i.push(` ${s}: ${e};`)}return i.join(`
13
- `)}function Yc(e,t,n){let r=[Jc(Object.entries(e.tokens),`${t}tokens`,n),Jc(Object.entries(e.localTokens??{}),`${t}localTokens`,n)].filter(e=>e.length>0).join(`
14
- `);return Object.keys(e.tokens).length>0||Object.keys(e.localTokens??{}).length>0?` :scope {\n${r}\n }`:null}function Xc(e,t,n){return`${e}components.${t}[${JSON.stringify(n)}]`}function Zc(e,t){let n=[],r=Wc(t),i=e=>`var(${e})`,a=Yc(e,``,r);return a!==null&&n.push(a),e.tokens[`--font-family-body`]&&n.push(` :scope {
10
+ `))!==-1;){let t=n.slice(0,e);if(n=n.slice(e+1),t){if(r)y=JSON.parse(t),m.setup(y),r=!1;else{let e=JSON.parse(t);e.__deferred&&m.resolve(e.__deferred,e.data,e.error)}}}};for(;r;){let{done:r,value:a}=await e.read();if(r)break;n+=t.decode(a,{stream:!0}),i()}(async()=>{try{for(;!c.aborted;){let{done:r,value:a}=await e.read();if(r)break;n+=t.decode(a,{stream:!0}),i()}}catch(e){(!(e instanceof Error)||e.name!==`AbortError`)&&m.rejectPending(`Stream closed before resolution`)}})()}else y=await f.json(),m.setup(y)}u&&r===`GET`&&f?.ok&&f.headers.get(`X-VoidPages`)&&y?.component===a(n)&&!y.deferredKeys&&d.set(n,r,Promise.resolve(he(y)),l)}if(!y)throw Error(`pages: Missing page payload.`);r!==`GET`&&m.preserveValuesFrom(h,y);let[x,w]=await Promise.race([Promise.all([S(y.component),C(y.component)]),ye(c)]);if(e!==f&&c.aborted)throw ve();return{pageData:y,component:x,layouts:w}}function oe(e,t,n,r,i,a){let o=!1;return async()=>{if(o)return;o=!0;let s=await n;if(!s)return;p?.id===i&&(p=null);let c=m,l=h,u=r.commitPreservedValues(l,s.pageData);m=a();let d=!!(c&&u&&k.get(c)===u);c&&c!==m&&!d&&c.dispose(),c&&u&&d&&A.set(u,c),h=u??r;let f=l?A.get(l):void 0;if(l&&l!==h&&(l.dispose(),f&&f!==c&&f!==m&&f.dispose(),A.delete(l)),u&&u!==r&&r.dispose(),te(s.pageData.head),_=e.fetchUrl,!t.preserveState){let n=e.fetchUrl+e.hash;x.writeHistory(n,!!t.replace)}x.commit(),requestAnimationFrame(()=>{t.preserveScroll||F(t._scrollPosition,e.hash)})}}let se=ge(),[ce,le]=await Promise.all([S(se.component),C(se.component)]);u&&se.url===_&&se.component===a(_)&&se.errors===null&&!se.deferredKeys&&d.set(_,`GET`,Promise.resolve(he(se)),l);let ue=new D;return ue.setup(se),h=ue,g=ue,{_hoverDelay:c,initialPageData:se,initialComponent:ce,initialLayouts:le,prepareVisit(e,t={}){t._popstate||x.save();let n=e.indexOf(`#`),r=n===-1?``:e.slice(n),i=n===-1?e:e.slice(0,n),a=window.location.pathname+window.location.search,o=i||a,s=(t.method||`GET`).toUpperCase(),c=++f,l=t._popstate?_:a;if(p?.abort(),p=null,o===l&&s===`GET`&&!t.data&&(r||t._popstate))return I(o,r,t,!t._popstate&&!t.preserveState),{id:c,url:e,fetchUrl:o,hash:r,method:s,options:t,immediate:!0,shell:Promise.resolve(void 0),abort(){},async commit(){},dispose(){}};let u=new AbortController,d=new D,m={fetchUrl:o,hash:r},h=ie(c,e,o,s,t,u.signal,m,d),g=async()=>{},v=()=>{u.abort(ve()),d.dispose()},y={id:c,url:e,fetchUrl:o,hash:r,method:s,options:t,immediate:!1,shell:h,abort:v,commit(){return g()},dispose:v};return k.set(y,d),g=oe(m,t,h,d,c,()=>y),p=y,y},prefetch(e,t={}){let o=(t.method||`GET`).toUpperCase();if(o!==`GET`)throw Error(`Void Router: prefetch() only supports GET requests.`);let s=a(e);if(!s)return Promise.resolve(void 0);if(i[s]?.island){if(!document.querySelector(`link[rel="prefetch"][href="`+e+`"]`)){let t=document.createElement(`link`);t.rel=`prefetch`,t.href=e,t.as=`document`,document.head.appendChild(t)}return Promise.resolve(void 0)}n[s]&&n[s]();let c=r[s]||[];for(let e of c)n[e]&&n[e]();let u=e.indexOf(`#`),f=u===-1?e:e.slice(0,u),p=d.get(f,o);if(p)return p.response;let m=t.cacheFor?re(t.cacheFor):l,h=ee(f);return d.set(f,o,h,m),h},flush(e,t=`GET`){d.flush(e,t)},flushAll(){d.flushAll()},setPopStateHandler(e){v=e},commitInitialRender(){let e=y;y=null,x.commit(),e&&f===0&&window.scrollTo(e.x,e.y)},start(){if(y=x.start(),P(se.head),ne.__deferredQueue){for(let e of ne.__deferredQueue)e.length===3?g?.resolve(e[0],void 0,e[2]):g?.resolve(e[0],e[1],void 0);delete ne.__deferredQueue}window.addEventListener(`popstate`,e=>{let t=window.location.pathname+window.location.search+window.location.hash,n=x.pop(e.state);if(!x.ready&&t===b){y=n;return}v&&v(t,{preserveState:!0,_scrollPosition:n,_popstate:!0})})}}}var Se,Ce,we=o((()=>{A(),ne(),oe(),pe(),Se=`__VOID_PAGE_DATA__`,Ce=`/_void/pages`}));function Te(e,t,n){if(n==null)return!1;if(n instanceof Date)return e.append(t,n.toISOString()),!0;if(Array.isArray(n)){let r=!1;for(let i of n)r=Te(e,t,i)||r;return r}if(typeof n==`string`||typeof n==`number`||typeof n==`boolean`)return e.append(t,String(n)),!0;throw Error(`Link: GET data only supports primitive values and arrays. Remove nested data for '${t}'.`)}function Ee(e,t){if(!t)return e;let n=e.indexOf(`#`),r=n===-1?e:e.slice(0,n),i=n===-1?``:e.slice(n),a=r.indexOf(`?`),o=a===-1?r:r.slice(0,a),s=a===-1?``:r.slice(a+1),c=new URLSearchParams(s),l=!1;for(let[e,n]of Object.entries(t))l=Te(c,e,n)||l;if(!l)return e;let u=c.toString();return`${o}${u?`?${u}`:``}${i}`}function De(e){let t=e.currentTarget.getAttribute(`target`);return t!==null&&t!==`_self`||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||e.button!==0}var Oe=o((()=>{}));function ke(){return typeof window>`u`?`http://localhost`:window.location.origin}function Ae(e){return e instanceof URL?new URL(e.href):new URL(e||`/`,ke())}function je(){return{state:`idle`,location:null,method:null}}function Me(e,t,n=()=>e.params){return{get _hoverDelay(){return e._hoverDelay},get url(){return Ae(t())},get path(){return this.url.pathname},get query(){return this.url.searchParams},get params(){return n()},visit(t,n={}){return e.visit(t,n)},refresh(t={}){return e.refresh(t)},prefetch(t,n={}){return e.prefetch(t,n)},flush(t,n=`GET`){e.flush(t,n)},flushAll(){e.flushAll()}}}function Ne(e=`/`,t={}){return{_hoverDelay:75,get url(){return Ae(e)},get path(){return this.url.pathname},get query(){return this.url.searchParams},get params(){return t},visit(){throw Error(`Void Router: visit() is not available during SSR.`)},refresh(){throw Error(`Void Router: refresh() is not available during SSR.`)},prefetch(){throw Error(`Void Router: prefetch() is not available during SSR.`)},flush(){throw Error(`Void Router: flush() is not available during SSR.`)},flushAll(){throw Error(`Void Router: flushAll() is not available during SSR.`)}}}async function Pe(e,t,n){try{let r=await e.visit(t,n);return typeof r==`object`&&r&&`errors`in r&&r.errors?{ok:!1,error:new k({body:{errors:r.errors},status:422,statusText:`Unprocessable Content`,url:t})}:{ok:!0,pageData:r}}catch(e){if(T(e))return{ok:!1,error:e};throw e}}function Fe(){let e=null;function t(t){e=t}async function n(t,...n){if(!e)throw Error(`action(): called before router initialization.`);let r=n[0],i=r?.data,a=r?.method||`POST`,o=b(t,r?.params);return Pe(e,o,{method:a,data:i})}return{action:n,setActionRouter:t}}var Ie,Le=o((()=>{x(),A(),Oe(),we(),Ie=Ne()})),Re,ze,Be=o((()=>{Le(),Re=Fe(),Re.action,ze=Re.setActionRouter})),Ve,He,Ue,We,Ge,Ke,qe=o((()=>{Ve=u(f(),1),Le(),He=(0,Ve.createContext)(null),Ue=(0,Ve.createContext)(null),We=(0,Ve.createContext)(null),Ge=(0,Ve.createContext)(null),Ke=(0,Ve.createContext)(je())})),Je=v();Be(),qe();var Ye=`__VOID_DEFERRED_SHELL_END__`;`${Ye}`;var Xe=u(f(),1);Le();var Ze=new WeakMap,Qe=new Map,$e=new Map,et=new Set,tt={},nt=null,rt=null;function it(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.catch(()=>{}),Ze.set(n,{status:`pending`,resolve:e,reject:t}),n}function at(e,t){let n=Ze.get(e);return n?.status===`pending`&&(n.resolve(t),Ze.set(e,{status:`resolved`})),e}function ot(e,t){let n=Ze.get(e);return n?.status===`pending`&&(n.reject(Error(t)),Ze.set(e,{status:`rejected`})),e}function st(e){return Ze.get(e)?.status===`pending`}function ct(){return window.location.pathname+window.location.search+window.location.hash}function lt(e){if(typeof e==`string`&&e.startsWith(`#`))return e;let t=e instanceof URL?e:new URL(e,window.location.origin);return t.origin===window.location.origin?t.pathname+t.search+t.hash:t.href}function ut(e){let t=e.method.toUpperCase();return{state:t===`GET`?`loading`:`submitting`,location:new URL(e.fetchUrl+e.hash,window.location.origin),method:t===`POST`||t===`PUT`||t===`PATCH`||t===`DELETE`?t:`GET`}}function dt(e,t){switch(t.type){case`begin`:return{resource:e.resource,rollbackResource:e.rollbackResource||e.resource,pendingId:t.resource.id,routeUrl:e.routeUrl,navigation:t.navigation};case`reveal`:return e.pendingId===t.resource.id?{...e,resource:t.resource}:e;case`finish`:return e.pendingId===t.resource.id?{resource:t.resource.immediate?e.resource:t.resource,rollbackResource:null,pendingId:null,routeUrl:t.location,navigation:je()}:e;case`fail`:return e.pendingId===t.resource.id?{...e,resource:e.rollbackResource||e.resource,rollbackResource:null,pendingId:null,routeUrl:t.location,navigation:je()}:e;case`abandon`:return e.pendingId===t.resource.id?{resource:e.rollbackResource||e.resource,rollbackResource:null,pendingId:null,routeUrl:t.location,navigation:je()}:e}}function ft(e){let t={_hoverDelay:e._hoverDelay,get url(){return new URL(ct(),window.location.origin)},get path(){return this.url.pathname},get query(){return this.url.searchParams},get params(){return{}},visit(e,t={}){return rt?rt(lt(e),t):Promise.reject(Error(`router.visit() called before router initialized`))},refresh(e={}){return t.visit(window.location.pathname+window.location.search,{preserveState:!0,preserveScroll:!0,...e})},prefetch(t,n={}){return e.prefetch(lt(t),n)},flush(t,n=`GET`){e.flush(lt(t),n)},flushAll(){e.flushAll()}};return t}function pt({resource:e,onCommit:t}){let n=(0,Xe.use)(e.shell),r=Xe.useContext(Ge);if((0,Xe.useLayoutEffect)(()=>{n&&t(e,n)},[t,e,n]),!n)return null;let i=n.pageData,a=n.component,o=i.params??tt,s=(0,Xe.useMemo)(()=>Me(r,()=>{let t=r.url,n=t.pathname+t.search;return n===i.url?n+t.hash:i.url+e.hash},()=>o),[r,i.url,e.hash,o]),c=Xe.createElement(a,i.props);for(let e=n.layouts.length-1;e>=0;e--){let t=n.layouts[e];c=Xe.createElement(t,null,c)}return Xe.createElement(Ge.Provider,{value:s},Xe.createElement(We.Provider,{value:o},Xe.createElement(He.Provider,{value:i.shared??{}},Xe.createElement(Ue.Provider,{value:i.errors??{}},c))))}function mt(e,t,n){if(!n||typeof document.startViewTransition!=`function`){t();return}let r,i=new Promise(e=>{r=e});Qe.set(e.id,r),document.startViewTransition(()=>(t(),i))}function ht({engine:e,router:t,viewTransitions:n,navigationFallback:r}){let i=e.initialPageData,a=(0,Xe.useMemo)(()=>({id:0,url:i.url||ct(),fetchUrl:i.url||ct(),hash:window.location.hash,method:`GET`,options:{},immediate:!1,shell:Promise.resolve({pageData:i,component:e.initialComponent,layouts:e.initialLayouts}),abort(){},async commit(){e.commitInitialRender(),document.getElementById(`app`).setAttribute(`data-hydrated`,`true`)},dispose(){}}),[e,i]),[o,s]=(0,Xe.useReducer)(dt,{resource:a,rollbackResource:null,pendingId:null,routeUrl:ct(),navigation:je()}),[c,l]=(0,Xe.useTransition)(),u=(0,Xe.useCallback)((e,t)=>{et.has(e.id)||(et.add(e.id),e.commit().then(()=>{let n=Qe.get(e.id);n&&(Qe.delete(e.id),n());let r=$e.get(e.id);r&&($e.delete(e.id),r.resolve(t.pageData)),nt===e.id&&(nt=null),s({type:`finish`,resource:e,location:ct()})}).catch(t=>{let n=$e.get(e.id);n&&($e.delete(e.id),n.reject(t))}))},[]),d=(0,Xe.useCallback)((t,i={})=>{let a=e.prepareVisit(t,i);if(a.immediate){let e=ut(a);return nt=a.id,s({type:`begin`,resource:a,navigation:e}),a.shell.then(e=>(nt===a.id&&(nt=null),s({type:`finish`,resource:a,location:ct()}),e?.pageData),e=>{throw nt===a.id&&(nt=null),s({type:`fail`,resource:a,location:ct()}),e})}let o,c,u=new Promise((e,t)=>{o=e,c=t}),d={...a,shell:a.shell.then(e=>{if(e)a.options._resolveOnShell&&($e.delete(a.id),o(e.pageData));else{let e=Qe.get(a.id);e&&(Qe.delete(a.id),e()),$e.delete(a.id),nt===a.id&&(nt=null),s({type:r?`abandon`:`finish`,resource:a,location:ct()}),o(void 0)}return e},e=>{let t=Qe.get(a.id);if(t&&(Qe.delete(a.id),t()),$e.delete(a.id),a.method.toUpperCase()===`GET`&&!a.options._resolveOnShell&&E(e)?o(void 0):c(e),nt===a.id&&(nt=null),r||a.options._resolveOnShell||E(e)||T(e)){s({type:`abandon`,resource:a,location:ct()});return}throw s({type:`fail`,resource:a,location:ct()}),e})},f=ut(d);if($e.set(d.id,{resolve:o,reject:c}),nt=d.id,s({type:`begin`,resource:d,navigation:f}),r){let e=!1,t=!1,n=e=>{t||nt!==d.id||(t=!0,e?l(()=>s({type:`reveal`,resource:d})):s({type:`reveal`,resource:d}))};return d.shell.then(t=>{e=!0,t&&n(!0)}),requestAnimationFrame(()=>{e||n(!1)}),u}let p=()=>{l(()=>{s({type:`reveal`,resource:d})})};return d.shell.then(e=>{e&&nt===d.id&&mt(d,p,i.viewTransition??n)},()=>{}),u},[e,r,l,n]);(0,Xe.useInsertionEffect)(()=>(rt=d,()=>{rt===d&&(rt=null)}),[d]),(0,Xe.useEffect)(()=>{e.setPopStateHandler((e,n)=>{t.visit(e,n)})},[e,t]);let f=(0,Xe.useMemo)(()=>o.navigation.state!==`idle`||!c?o.navigation:{state:`loading`,location:null,method:`GET`},[c,o.navigation]),p=(0,Xe.useMemo)(()=>Me(t,()=>o.routeUrl),[t,o.routeUrl]);return Xe.createElement(Ge.Provider,{value:p},Xe.createElement(Ke.Provider,{value:f},Xe.createElement(Xe.Suspense,{fallback:r&&o.pendingId!==null?Xe.createElement(r,{initialPageData:i}):null},Xe.createElement(pt,{resource:o.resource,onCommit:u}))))}async function gt(e){Qe.clear(),$e.clear(),et.clear(),nt=null;let t=await xe({adapter:{createDeferred:it,resolveDeferred:at,rejectDeferred:ot,isLoading:st},components:e.components,layoutTree:e.layoutTree,routeMeta:e.routeMeta,matchRoute:e.matchRoute,staticPageData:e.staticPageData,staticPageDataFastPath:e.staticPageDataFastPath,viewTransitions:e.viewTransitions,prefetchHoverDelay:e.prefetchHoverDelay,prefetchDefaultCacheFor:e.prefetchDefaultCacheFor,cacheVisitedPageData:e.cacheVisitedPageData}),n=ft(t);ze(n);let r=document.getElementById(`app`);if(!r)throw Error(`pages: Missing #app element for Void React pages hydration.`);let i=Xe.createElement(ht,{engine:t,router:n,viewTransitions:e.viewTransitions,navigationFallback:e.navigationFallback}),a=r.getAttribute(`data-void-ssr`)!==`false`,o=!!t.initialPageData.deferredKeys,s=a&&o?Xe.createElement(Xe.Fragment,null,i,Xe.createElement(`template`,{id:Ye})):i;return(0,Xe.startTransition)(()=>{a?(0,Je.hydrateRoot)(r,s):(0,Je.createRoot)(r).render(s)}),t.start(),{router:n}}function _t(){if(yt)return vt;yt=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.styleq=void 0;var e=new WeakMap,t=`$$css`;function n(n){var r,i,a;return n!=null&&(r=n.disableCache===!0,i=n.disableMix===!0,a=n.transform),function(){for(var n=[],o=``,s=null,c=``,l=r?null:e,u=Array(arguments.length),d=0;d<arguments.length;d++)u[d]=arguments[d];for(;u.length>0;){var f=u.pop();if(f!=null&&f!==!1){if(Array.isArray(f)){for(var p=0;p<f.length;p++)u.push(f[p]);continue}var m=a==null?f:a(f);if(m.$$css!=null){var h=``;if(l!=null&&l.has(m)){var g=l.get(m);g!=null&&(h=g[0],c=g[2],n.push.apply(n,g[1]),l=g[3])}else{var _=[];for(var v in m){var y=m[v];if(v===t){var b=m[v];b!==!0&&(c=c?b+`; `+c:b);continue}typeof y==`string`||y===null?n.includes(v)||(n.push(v),l!=null&&_.push(v),typeof y==`string`&&(h+=h?` `+y:y)):console.error(`styleq: ${v} typeof ${String(y)} is not "string" or "null".`)}if(l!=null){var x=new WeakMap;l.set(m,[h,_,c,x]),l=x}}h&&(o=o?h+` `+o:h)}else if(i)s??={},s=Object.assign({},m,s);else{var S=null;for(var C in m){var w=m[C];w!==void 0&&(n.includes(C)||(w!=null&&(s??={},S??={},S[C]=w),n.push(C),l=null))}S!=null&&(s=Object.assign(S,s))}}}return[o,s,c]}}var r=vt.styleq=n();return r.factory=n,vt}function z(...e){let[t,n,r]=bt.styleq(e),i={};return t!=null&&t!==``&&(i.className=t),n!=null&&Object.keys(n).length>0&&(i.style=n),r!=null&&r!==``&&(i[`data-style-src`]=r),i}var vt,yt,bt,B=o((()=>{vt={},bt=_t(),Object.freeze({})})),xt,St,Ct,wt,Tt,Et=o((()=>{xt={"--color-accent":`var(--color-accent)`,"--color-accent-muted":`var(--color-accent-muted)`,"--color-on-accent":`var(--color-on-accent)`,"--color-neutral":`var(--color-neutral)`,"--color-background-surface":`var(--color-background-surface)`,"--color-background-body":`var(--color-background-body)`,"--color-overlay":`var(--color-overlay)`,"--color-overlay-hover":`var(--color-overlay-hover)`,"--color-overlay-pressed":`var(--color-overlay-pressed)`,"--color-background-muted":`var(--color-background-muted)`,"--color-text-primary":`var(--color-text-primary)`,"--color-text-secondary":`var(--color-text-secondary)`,"--color-text-disabled":`var(--color-text-disabled)`,"--color-text-accent":`var(--color-text-accent)`,"--color-on-dark":`var(--color-on-dark)`,"--color-on-light":`var(--color-on-light)`,"--color-icon-accent":`var(--color-icon-accent)`,"--color-icon-primary":`var(--color-icon-primary)`,"--color-icon-secondary":`var(--color-icon-secondary)`,"--color-icon-disabled":`var(--color-icon-disabled)`,"--color-background-card":`var(--color-background-card)`,"--color-background-popover":`var(--color-background-popover)`,"--color-background-inverted":`var(--color-background-inverted)`,"--color-background-error-inverted":`var(--color-background-error-inverted)`,"--color-success":`var(--color-success)`,"--color-success-muted":`var(--color-success-muted)`,"--color-on-success":`var(--color-on-success)`,"--color-error":`var(--color-error)`,"--color-error-muted":`var(--color-error-muted)`,"--color-on-error":`var(--color-on-error)`,"--color-warning":`var(--color-warning)`,"--color-warning-muted":`var(--color-warning-muted)`,"--color-on-warning":`var(--color-on-warning)`,"--color-border":`var(--color-border)`,"--color-border-emphasized":`var(--color-border-emphasized)`,"--color-skeleton":`var(--color-skeleton)`,"--color-track":`var(--color-track)`,"--color-shadow":`var(--color-shadow)`,"--color-tint-hover":`var(--color-tint-hover)`,"--color-background-blue":`var(--color-background-blue)`,"--color-border-blue":`var(--color-border-blue)`,"--color-icon-blue":`var(--color-icon-blue)`,"--color-text-blue":`var(--color-text-blue)`,"--color-background-cyan":`var(--color-background-cyan)`,"--color-border-cyan":`var(--color-border-cyan)`,"--color-icon-cyan":`var(--color-icon-cyan)`,"--color-text-cyan":`var(--color-text-cyan)`,"--color-background-gray":`var(--color-background-gray)`,"--color-border-gray":`var(--color-border-gray)`,"--color-icon-gray":`var(--color-icon-gray)`,"--color-text-gray":`var(--color-text-gray)`,"--color-background-green":`var(--color-background-green)`,"--color-border-green":`var(--color-border-green)`,"--color-icon-green":`var(--color-icon-green)`,"--color-text-green":`var(--color-text-green)`,"--color-background-orange":`var(--color-background-orange)`,"--color-border-orange":`var(--color-border-orange)`,"--color-icon-orange":`var(--color-icon-orange)`,"--color-text-orange":`var(--color-text-orange)`,"--color-background-pink":`var(--color-background-pink)`,"--color-border-pink":`var(--color-border-pink)`,"--color-icon-pink":`var(--color-icon-pink)`,"--color-text-pink":`var(--color-text-pink)`,"--color-background-purple":`var(--color-background-purple)`,"--color-border-purple":`var(--color-border-purple)`,"--color-icon-purple":`var(--color-icon-purple)`,"--color-text-purple":`var(--color-text-purple)`,"--color-background-red":`var(--color-background-red)`,"--color-border-red":`var(--color-border-red)`,"--color-icon-red":`var(--color-icon-red)`,"--color-text-red":`var(--color-text-red)`,"--color-background-teal":`var(--color-background-teal)`,"--color-border-teal":`var(--color-border-teal)`,"--color-icon-teal":`var(--color-icon-teal)`,"--color-text-teal":`var(--color-text-teal)`,"--color-background-yellow":`var(--color-background-yellow)`,"--color-border-yellow":`var(--color-border-yellow)`,"--color-icon-yellow":`var(--color-icon-yellow)`,"--color-text-yellow":`var(--color-text-yellow)`,__varGroupHash__:`xj0fimd`},St={"--spacing-0":`var(--spacing-0)`,"--spacing-0-5":`var(--spacing-0-5)`,"--spacing-1":`var(--spacing-1)`,"--spacing-1-5":`var(--spacing-1-5)`,"--spacing-2":`var(--spacing-2)`,"--spacing-3":`var(--spacing-3)`,"--spacing-4":`var(--spacing-4)`,"--spacing-5":`var(--spacing-5)`,"--spacing-6":`var(--spacing-6)`,"--spacing-7":`var(--spacing-7)`,"--spacing-8":`var(--spacing-8)`,"--spacing-9":`var(--spacing-9)`,"--spacing-10":`var(--spacing-10)`,"--spacing-11":`var(--spacing-11)`,"--spacing-12":`var(--spacing-12)`,__varGroupHash__:`x1kvdh9l`},Ct={"--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)`,__varGroupHash__:`xzxs3qz`},wt={"--duration-fast-min":`var(--duration-fast-min)`,"--duration-fast":`var(--duration-fast)`,"--duration-fast-max":`var(--duration-fast-max)`,"--duration-medium-min":`var(--duration-medium-min)`,"--duration-medium":`var(--duration-medium)`,"--duration-medium-max":`var(--duration-medium-max)`,"--duration-slow-min":`var(--duration-slow-min)`,"--duration-slow":`var(--duration-slow)`,"--duration-slow-max":`var(--duration-slow-max)`,__varGroupHash__:`x14lkjui`},Tt={"--ease-standard":`var(--ease-standard)`,__varGroupHash__:`xf09i69`}}));function Dt(e){return`${jt}-${e}`}function Ot(e){return`data-${Mt}-${e}`}function kt(e){return`--${Nt}-${e}`}var At,jt,Mt,Nt,Pt=o((()=>{At=`astryx`,jt=At,Mt=At,Nt=At}));function Ft(e){return`data-${e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase()}`}function It(e,t){return/^\d/.test(t)?`${e}-${t}`:t}function Lt(e,t){let n=[Dt(e)];if(t)for(let[e,r]of Object.entries(t))r!=null&&n.push(It(e,String(r)));return n.join(` `)}function Rt(e){let t={};if(e)for(let[n,r]of Object.entries(e))r!=null&&(t[Ft(n)]=String(r));return t}function V(e,t,n){let r=Lt(e,t),i=n?.legacyNames?.map(e=>Dt(e))??[];return{className:i.length>0?[r,...i].join(` `):r,...Rt(t)}}var H=o((()=>{Pt()}));function zt(e){let t=``;for(let n of e){let e=n.codePointAt(0)??0;t+=n===`"`||n===`\\`||e<32||e===127?`\\${(e===0?65533:e).toString(16)} `:n}return t}function Bt(e){return e===`base`?``:e.split(`+`).map(e=>{let t=e.indexOf(`:`),n=t===-1?e:e.slice(0,t),r=t===-1?e:e.slice(t+1);return`[${Ft(n)}="${zt(r)}"]`}).join(``)}var Vt=o((()=>{H()}));function Ht(e,t){return e==null?`fallback:${typeof t==`function`?t():t}`:`id:${e}`}var Ut=o((()=>{}));function Wt(e){return qt?[...qt.segment(e)].map(e=>e.segment):[...e]}function Gt(e){return e===``?0:Wt(e).length}function Kt(e){if(qt){let t=qt.segment(e)[Symbol.iterator]().next();return t.done?``:t.value.segment}let t=e.codePointAt(0);return t==null?``:String.fromCodePoint(t)}var qt,Jt=o((()=>{qt=typeof Intl.Segmenter==`function`?new Intl.Segmenter(void 0,{granularity:`grapheme`}):null}));function Yt(e,t){let n={...e,...t},r=[e.className,t.className].filter(Boolean).join(` `);r?n.className=r:delete n.className;let i=t.style&&e.style?{...e.style,...t.style}:t.style||e.style;return i?n.style=i:delete n.style,n}function U(e,t,n,r){if(typeof e==`string`){let i=e,a=t??{className:``},o=n,s=a.className?`${i} ${a.className}`:i;o&&(s=`${s} ${o}`);let c=r&&a.style?{...a.style,...r}:r||a.style;return{...a,className:s,style:c}}let i=Yt(e,typeof t==`string`?{className:t}:t??{});return typeof n==`string`?i=Yt(i,{className:n}):n!=null&&(i=Yt(i,{style:n})),r!=null&&(i=Yt(i,{style:r})),i}var Xt=o((()=>{}));function Zt(...e){return t=>{let n=[];for(let r of e)if(typeof r==`function`){let e=r(t);n.push(typeof e==`function`?e:()=>r(null))}else if(r!=null){let e=r;e.current=t,n.push(()=>{e.current=null})}if(t!=null&&n.length>0)return()=>{for(let e of n)e()}}}var Qt=o((()=>{}));function $t(...e){return t=>{for(let n of e)if(n?.(t),t.defaultPrevented)return}}var en=o((()=>{}));function tn(e){let t=e.auxiliaryData;return typeof t?.group==`string`?t.group:void 0}function nn(e,{ungroupedFirst:t=!1}={}){if(!e.some(e=>tn(e)!=null))return[{heading:null,items:e}];let n=[],r=new Map,i=[];for(let t of e){let e=tn(t);e==null?i.push(t):(r.has(e)||(n.push(e),r.set(e,[])),r.get(e)?.push(t))}let a=n.map(e=>({heading:e,items:r.get(e)??[]})),o=i.length>0?[{heading:null,items:i}]:[];return t?[...o,...a]:[...a,...o]}var rn=o((()=>{}));function an(){return typeof ResizeObserver>`u`?null:(cn||=new ResizeObserver(e=>{for(let t of e){let e=ln.get(t.target);if(e)for(let n of[...e.keys()])n(t)}}),cn)}function on(e,t){let n=ln.get(e);n?n.set(t,(n.get(t)??0)+1):ln.set(e,new Map([[t,1]])),an()?.observe(e),t({target:e});let r=!0;return()=>{r&&(r=!1,sn(e,t))}}function sn(e,t){let n=ln.get(e);if(t!=null){let e=n?.get(t);if(n==null||e==null)return;if(e>1){n.set(t,e-1);return}if(n.delete(t),n.size>0)return}ln.delete(e),cn&&(cn.unobserve(e),ln.size===0&&(cn.disconnect(),cn=null))}var cn,ln,un=o((()=>{cn=null,ln=new Map}));function dn(e){return e!=null&&typeof e!=`boolean`&&e!==``}var fn=o((()=>{}));function pn(...e){let t=e.flatMap(e=>typeof e==`string`?e.trim().split(/\s+/):[]).filter(Boolean);if(t.length!==0)return Array.from(new Set(t)).join(` `)}function mn(e,t=[],n){return{ariaLabelledBy:n?pn(n.labelID,e):void 0,ariaDescribedBy:pn(n?.describedByIDs,...t)}}var hn=o((()=>{}));function gn(e){return e.split(``).map(e=>e+e).join(``)}function _n(e){if(typeof e!=`string`)return null;let t=e.trim().replace(/^#/,``),n=t.length===3||t.length===4?gn(t):t;return n.length!==6&&n.length!==8||!/^[0-9a-fA-F]+$/.test(n)?null:{r:parseInt(n.slice(0,2),16),g:parseInt(n.slice(2,4),16),b:parseInt(n.slice(4,6),16),a:n.length===8?parseInt(n.slice(6,8),16)/255:1}}function vn(e){let t=e.indexOf(`(`);if(t===-1||!e.trim().endsWith(`)`))return null;let n=e.slice(t+1,e.lastIndexOf(`)`)).replace(/\//g,` `).split(/[\s,]+/).map(e=>e.trim()).filter(Boolean);if(n.length<3)return null;let r=e=>{let t=e.endsWith(`%`)?parseFloat(e)/100*255:parseFloat(e);return Sn(t,0,255)},i=r(n[0]),a=r(n[1]),o=r(n[2]);if([i,a,o].some(Number.isNaN))return null;let s=1;if(n.length>=4){let e=n[3];if(s=e.endsWith(`%`)?parseFloat(e)/100:parseFloat(e),Number.isNaN(s))return null;s=Sn(s,0,1)}return{r:i,g:a,b:o,a:s}}function yn(e){let t=e.trim(),n=xn[t.toLowerCase()];return n?{...n}:t.startsWith(`#`)?_n(t):/^rgba?\(/i.test(t)?vn(t):null}function bn(e,t,n){let r=e=>Sn(Math.round(e),0,255).toString(16).padStart(2,`0`).toUpperCase();return`#${r(e)}${r(t)}${r(n)}`}var xn,Sn,Cn=o((()=>{xn={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}},Sn=(e,t,n)=>Math.max(t,Math.min(n,e))}));function wn(e,t){return`${e}: ${t}`}function Tn(e,t,...n){console.error(wn(e,t),...n)}var En=o((()=>{})),Dn,On,kn=o((()=>{Dn={kbCHJM:`x1nrll8i`,k3aq6I:`xsqj5wx`,$$css:!0},On={mirror:{k3aq6I:`xgtlewx`,$$css:!0},centerInline:e=>[Dn,{"--x-transform":`translate(-50%, ${e})`==null?void 0:`translate(-50%, ${e})`}]}}));function An(e){return(...t)=>z(e,...t)}var jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn=o((()=>{B(),Et(),jn=Ct[`--focus-outline-width`],Mn=Ct[`--focus-outline-style`],Nn=Ct[`--focus-outline-color`],Pn=Ct[`--focus-outline-offset`],`${jn}${Mn}${Nn}`,Fn={outlineWidth:jn,outlineStyle:Mn,outlineColor:Nn,outlineOffset:Pn},In={outlineWidth:``,outlineStyle:``,outlineColor:``,outlineOffset:``},Ln={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}},Rn={focusVisible:An(Ln.focusVisible),focusWithin:An(Ln.focusWithin),focusWithinFirstChild:An(Ln.focusWithinFirstChild),suppressed:An(Ln.suppressed),publishFocusVisibleVars:An(Ln.publishFocusVisibleVars),focusWithinOrPublished:An(Ln.focusWithinOrPublished)}}));function Bn(e){return e.isComposing===!0||e.keyCode===Vn}var Vn,Hn=o((()=>{Vn=229})),W=o((()=>{Vt(),Ut(),Jt(),Xt(),Qt(),en(),H(),rn(),un(),fn(),hn(),Cn(),En(),kn(),zn(),Hn()})),Un=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),G=s(((e,t)=>{t.exports=Un()}));function Wn({width:e=`100%`,height:t=`100%`,radius:n=3,index:r=0,"data-testid":i,xstyle:a,className:o,style:s,ref:c,...l}){return(0,Gn.jsx)(`div`,{ref:c,"aria-hidden":`true`,"data-testid":i,...U(V(`skeleton`),z(Jn.root,Jn.animate,Yn[n],Zn.dimensions(e,t),Zn.animationDelay(r),a),o,s),...l})}var Gn,Kn,qn,Jn,Yn,Xn,Zn,Qn=o((()=>{B(),W(),H(),Gn=G(),Kn=1e3,qn=100,Jn={root:{kWkggS:`xprdx6m x1j0df82 x1o55y2u`,kSiTet:`xvpkmg4 x1tbh5bv`,$$css:!0},animate:{kILWW9:`xpz12be`,k44tkh:`xqgcaz`,ko0y90:`xa4qsjk`,kKVMdj:`xeuoslp x1aquc0h`,kyAemX:`x193epu2`,$$css:!0}},Yn={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}},Xn={kKxzle:`xvo38ju`,$$css:!0},Zn={animationDelay:e=>[Xn,{"--x-animationDelay":(e=>typeof e==`number`?e+`ms`:e??void 0)(`${Kn+qn*e}ms`)}],dimensions:(e,t)=>[{kzqmXN:(typeof e==`number`?`${e}px`:e)==null?typeof e==`number`?`${e}px`:e:`x5lhr3w`,kZKoxP:(typeof t==`number`?`${t}px`:t)==null?typeof t==`number`?`${t}px`:t:`x16ye13r`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(typeof e==`number`?`${e}px`:e),"--x-height":(e=>typeof e==`number`?e+`px`:e??void 0)(typeof t==`number`?`${t}px`:t)}]},Wn.displayName=`Skeleton`})),$n=o((()=>{Qn()})),er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr=o((()=>{er={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}},tr={normal:{k63SB2:`x1sodnla`,$$css:!0},medium:{k63SB2:`x1e4wzip`,$$css:!0},semibold:{k63SB2:`x2mo6ok`,$$css:!0},bold:{k63SB2:`x1lvx875`,$$css:!0}},nr={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}},rr={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}},ir={"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}},ar={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}},or={inline:{k1xSpc:`xt0psk2`,$$css:!0},block:{k1xSpc:`x1lliihq`,$$css:!0}},sr={singleLine:{kVQacm:`xb3r6kr`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,k1xSpc:`x1lliihq`,$$css:!0},multiLine:{kVQacm:`xb3r6kr`,k1xSpc:`x104kibb`,kgKLqz:`x1ua5tub`,$$css:!0}},cr={"break-word":{kTgw9:`x1lldw8n`,kHjlTd:`x1mzt3pk`,$$css:!0},"break-all":{kTgw9:`x1yn0g08`,$$css:!0}},lr={wrap:{kN2L0X:`xk4td0m`,$$css:!0},nowrap:{kN2L0X:`xebhuq6`,$$css:!0},balance:{kN2L0X:`x1w2vvpw`,$$css:!0},pretty:{kN2L0X:`x1fzhlzt`,$$css:!0}},ur={enabled:{kxwWH2:`x1b2iylo`,kzeHkT:`xwgcxoh`,k1xSpc:`x1lliihq`,$$css:!0}},dr={strikethrough:{kybGjl:`xmqliwb`,$$css:!0}},fr={enabled:{kcqcaj:`xss6m8b`,$$css:!0}},pr={start:{k9WMMc:`x1yc453h`,$$css:!0},center:{k9WMMc:`x2b8uid`,$$css:!0},end:{k9WMMc:`xp4054r`,$$css:!0}},mr={content:{ks0D6T:`xw5ewwj`,kTgw9:`x13faqbe`,$$css:!0}}}));function gr(e){let{maxLines:t}=e,[n,r]=(0,_r.useState)(!1),[i,a]=(0,_r.useState)(``),o=(0,_r.useRef)(null),s=(0,_r.useRef)(null),c=(0,_r.useCallback)(e=>{if(t===0){r(!1);return}if(a(e.textContent??``),t===1)r(e.scrollWidth>e.offsetWidth);else{let t=e.scrollHeight;try{let n=document.createRange();n.selectNodeContents(e),t=n.getBoundingClientRect().height,n.detach()}catch{}r(t>e.offsetHeight)}},[t]);return{ref:(0,_r.useCallback)(e=>{s.current?.(),s.current=null,o.current=e,e&&t>0?typeof ResizeObserver<`u`?s.current=on(e,()=>{c(e)}):c(e):(r(!1),a(``))},[t,c]),isTruncated:n,fullText:i}}var _r,vr=o((()=>{_r=u(f(),1),un()}));function yr(e,t,n,r,i,a){return(0,br.useMemo)(()=>Zt(e,t,n,r,i,a),[e,t,n,r,i,a])}var br,xr=o((()=>{br=u(f(),1),Qt()})),Sr,Cr,wr=o((()=>{Sr=u(f(),1),Cr=typeof window<`u`?Sr.useLayoutEffect:Sr.useEffect}));function Tr(e){let t=(0,Dr.createContext)(e);return t.displayName=`LayerScopedContext`,kr.push(n=>(0,Or.jsx)(t,{value:e,children:n})),t}function Er({children:e}){let[t]=(0,Dr.useState)(()=>kr.slice());return t.reduceRight((e,t)=>t(e),e)}var Dr,Or,kr,Ar=o((()=>{Dr=u(f(),1),Or=G(),kr=[]}));function jr(e){return(e.style.anchorName??``).split(`,`).map(e=>e.trim()).filter(Boolean)}function Mr(e,t){e.style.anchorName=t.join(`, `)}function Nr(e,t){let n=jr(e);n.includes(t)||(n.push(t),Mr(e,n))}function Pr(e,t){Mr(e,jr(e).filter(e=>e!==t))}var Fr=o((()=>{}));function Ir(){Vr+=1}function Lr(){Hr=Vr}function Rr(){Ur||typeof document>`u`||(Ur=!0,document.addEventListener(`pointerdown`,Ir,!0),document.addEventListener(`keydown`,Ir,!0),document.addEventListener(`click`,Lr,!0))}function zr(){return Rr(),Vr}function Br(){return Rr(),Hr===Vr}var Vr,Hr,Ur,Wr=o((()=>{Vr=0,Hr=null,Ur=!1}));function Gr(e){if(!e)return null;let t=null,n=e;for(;n;)Kr.has(n.tagName.toLowerCase())&&(t=n),n=n.parentElement;return t?.parentElement??null}var Kr,qr=o((()=>{Kr=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`.split(`.`))})),Jr,Yr=o((()=>{Jr={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}}})),Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi=o((()=>{Xr={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`},Zr={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}},Qr={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}},$r={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}},ei={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}},ti={0:{"--layout-padding-outer-x":`xswhm3q`,$$css:!0},1:{"--layout-padding-outer-x":`xc96xmq`,$$css:!0},2:{"--layout-padding-outer-x":`x15dxnc0`,$$css:!0},3:{"--layout-padding-outer-x":`xadgj3j`,$$css:!0},4:{"--layout-padding-outer-x":`x1v56qcf`,$$css:!0},5:{"--layout-padding-outer-x":`x1nzs0gl`,$$css:!0},6:{"--layout-padding-outer-x":`x1c3n52a`,$$css:!0},8:{"--layout-padding-outer-x":`x1t3kfz`,$$css:!0},10:{"--layout-padding-outer-x":`x1jdf5a4`,$$css:!0},"0.5":{"--layout-padding-outer-x":`xihiwg7`,$$css:!0},"1.5":{"--layout-padding-outer-x":`x1u93lgd`,$$css:!0}},ni={0:{"--layout-padding-outer-y":`x1mzf5mb`,$$css:!0},1:{"--layout-padding-outer-y":`x1gpfxoh`,$$css:!0},2:{"--layout-padding-outer-y":`x10pz7y9`,$$css:!0},3:{"--layout-padding-outer-y":`x1p6yq3h`,$$css:!0},4:{"--layout-padding-outer-y":`xx738ci`,$$css:!0},5:{"--layout-padding-outer-y":`x6yxws5`,$$css:!0},6:{"--layout-padding-outer-y":`x180vrwl`,$$css:!0},8:{"--layout-padding-outer-y":`xid7e43`,$$css:!0},10:{"--layout-padding-outer-y":`x26l4wa`,$$css:!0},"0.5":{"--layout-padding-outer-y":`x1vj96e0`,$$css:!0},"1.5":{"--layout-padding-outer-y":`xd3dqby`,$$css:!0}},ri={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}},ii={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}},ai={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}},oi={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}},si={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}},ci={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}},li={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}},ui={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}},di={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}},fi={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-inner-x":`x1qfll2g`,"--layout-padding-inner-y":`xyvxpqs`,"--_section-padding-propagated":`x1f17rg1`,$$css:!0}}}));function mi(e){return typeof e==`number`?`${e}px`:e}function hi(e,t){let n=e.ownerDocument.defaultView;if(!n)return{};let r=n.getComputedStyle(e),i=n.getComputedStyle(t);return{...r.direction!==i.direction&&{direction:r.direction},...r.writingMode!==i.writingMode&&{writingMode:r.writingMode}}}function gi(e=`above`,t=`center`){if(e===`above`||e===`below`){let n=e===`above`?`self-block-start`:`self-block-end`;return t===`start`?`${n} span-self-inline-end`:t===`end`?`${n} span-self-inline-start`:n}let n=e===`start`?`self-inline-start`:`self-inline-end`;return t===`start`?`${n} span-self-block-end`:t===`end`?`${n} span-self-block-start`:n}function _i(e=`above`,t=`center`){let n=`flip-block, flip-inline, flip-block flip-inline`;if(t!==`center`)return n;if(e===`above`||e===`below`){let[t,r]=e===`above`?[`top`,`bottom`]:[`bottom`,`top`];return`${n}, ${t} span-left, ${t} span-right, ${r} span-left, ${r} span-right`}let[r,i]=e===`start`?[`left`,`right`]:[`right`,`left`];return`${n}, ${r} span-top, ${r} span-bottom, ${i} span-top, ${i} span-bottom`}function vi(e,t){let n=(0,xi.useRef)(t);return n.current=t,(0,xi.useMemo)(()=>({onPointerDown:t=>{if(!n.current)return;let r=t.currentTarget,i=r.ownerDocument;r.setAttribute(`popovertarget`,e);let a=()=>{i.removeEventListener(`pointerup`,a),i.removeEventListener(`pointercancel`,a),i.defaultView?.setTimeout(()=>{r.removeAttribute(`popovertarget`)},0)};i.addEventListener(`pointerup`,a),i.addEventListener(`pointercancel`,a)},onClickCapture:e=>{let t=e.currentTarget;t.hasAttribute(`popovertarget`)&&(e.preventDefault(),t.removeAttribute(`popovertarget`))}}),[e])}function yi(e){let{mode:t,onShow:n,onHide:r,lightDismiss:i=!1}=e,a=t===`context`?e.lazyMount??!1:!1,o=(0,xi.useId)(),s=`--astryx-layer-${o.replace(/:/g,``)}`,[c,l]=(0,xi.useState)(!1),u=(0,xi.useRef)(null),d=(0,xi.useRef)(null),f=(0,xi.useRef)(null),p=(0,xi.useRef)(null),m=(0,xi.useRef)(null),[h,g]=(0,xi.useState)(null),_=(0,xi.useRef)(!1),v=(0,xi.useRef)(!1),y=(0,xi.useRef)(null),b=(0,xi.useRef)(null),x=(0,xi.useCallback)(()=>{let e=zr();return y.current===e},[]),S=(0,xi.useCallback)(e=>{typeof e.showPopover==`function`?e.showPopover({source:f.current??void 0}):e.style.display=`block`,d.current=e},[]),C=(0,xi.useCallback)(e=>{if(t!==`context`)return!0;let n=m.current;if(n===null)return!1;let r=n.portalTarget??p.current?.parentElement??null;return e.parentElement===r},[t]),w=(0,xi.useCallback)(()=>{if(t!==`context`)return;let e=p.current,n=e?.parentElement??null;if(!e||!n)return;let r=Gr(n),i={portalTarget:r,portalStyle:r?hi(e,r):{}};m.current=i,g(i)},[t]),T=(0,xi.useCallback)(()=>{t===`context`&&a&&(m.current=null,g(null))},[t,a]),E=(0,xi.useCallback)(()=>{if(x())return;let e=u.current,t=e&&C(e)?e:null;if(!t){_.current=!0,w();return}v.current||(S(t),v.current=!0,l(!0),n?.())},[n,w,S,C,x]),D=(0,xi.useCallback)(()=>{if(_.current=!1,v.current){let e=u.current;d.current=null,v.current=!1,e&&(typeof e.hidePopover==`function`?e.hidePopover():e.style.display=`none`),l(!1),r?.()}T()},[r,T]),O=(0,xi.useCallback)(e=>{f.current&&f.current!==e&&Pr(f.current,s),e&&Nr(e,s),f.current=e},[s]),k=(0,xi.useCallback)(e=>{if(b.current?.(),Br())return;y.current=zr();let t=e.defaultView,n=null,r=()=>{y.current=null,e.removeEventListener(`click`,i,!0),n!==null&&(t?.clearTimeout(n),n=null),b.current===r&&(b.current=null)},i=()=>{e.removeEventListener(`click`,i,!0),t?n=t.setTimeout(()=>{n=null,b.current===r&&r()},0):r()};e.addEventListener(`click`,i,!0),b.current=r},[]);(0,xi.useEffect)(()=>(zr(),()=>b.current?.()),[]);let A=(0,xi.useCallback)(e=>{e.newState===`closed`&&v.current&&(d.current=null,v.current=!1,k(e.currentTarget?.ownerDocument??document),l(!1),r?.(),T())},[r,T,k]),j=(0,xi.useRef)(null),M=(0,xi.useRef)(null),N=(0,xi.useCallback)((e,t)=>{j.current&&M.current&&(j.current!==e||M.current!==t)&&(j.current.removeEventListener(`toggle`,M.current),j.current=null,M.current=null),e&&j.current!==e&&(e.addEventListener(`toggle`,t),j.current=e,M.current=t)},[]),ee=(0,xi.useCallback)(e=>{u.current=e,N(e,A),e&&_.current?(_.current=!1,E()):e&&v.current&&d.current!==e&&C(e)&&S(e)},[A,N,E,S,C]),P=(0,xi.useCallback)(e=>{p.current=e,e&&(!a||_.current||v.current)&&w()},[a,w]);(0,xi.useEffect)(()=>(u.current&&N(u.current,A),()=>{j.current&&M.current&&(j.current.removeEventListener(`toggle`,M.current),j.current=null,M.current=null)}),[A,N]);let te=(0,xi.useCallback)((e,t)=>{let n=(0,Ci.jsx)(`template`,{ref:P});if(h===null)return(0,Ci.jsx)(Ci.Fragment,{children:n});let{placement:r=`above`,alignment:a=`center`,positioning:c=`anchor`,offset:l,role:u,"aria-label":d,xstyle:f,className:p,style:m,as:g=`div`,onMouseEnter:_,onMouseLeave:v}=t||{},y=c===`custom`?{positionAnchor:s}:{positionAnchor:s,positionArea:gi(r,a),positionTryFallbacks:_i(r,a)},b=c===`anchor`&&l?r===`above`||r===`below`?Ti.offsetBlock(mi(l)):Ti.offsetInline(mi(l)):null,x=z(Jr.reset,Ti.base,fi.reset,b,f),S=p?`${p} ${x.className??``}`:x.className,C=(0,Ci.jsx)(g,{ref:ee,id:o,role:u,"aria-label":d,popover:i?`auto`:`manual`,className:S,style:{...x.style,...y,...h.portalStyle,...m},onMouseEnter:_,onMouseLeave:v,children:(0,Ci.jsx)(Er,{children:e})});return(0,Ci.jsxs)(Ci.Fragment,{children:[n,h.portalTarget?(0,Si.createPortal)(C,h.portalTarget):C]})},[s,h,o,i,ee,P]),F=(0,xi.useCallback)((e,t)=>{let{x:n,y:r,xstyle:a,className:s,style:c}=t,l={top:r,left:n},u=z(Jr.reset,Ti.base,fi.reset,Ti.fixed,a),d=s?`${s} ${u.className??``}`:u.className;return(0,Ci.jsx)(`div`,{ref:ee,id:o,popover:i?`auto`:`manual`,className:d,style:{...u.style,...l,...c},children:(0,Ci.jsx)(Er,{children:e})})},[ee,o,i]),ne=(0,xi.useMemo)(()=>({ref:O,anchorId:s,show:E,hide:D,isOpen:c,wasJustDismissed:x,id:o,render:te}),[O,s,E,D,c,x,o,te]),I=(0,xi.useMemo)(()=>({ref:void 0,show:E,hide:D,isOpen:c,wasJustDismissed:x,id:o,render:F}),[E,D,c,x,o,F]);return t===`context`?ne:I}function bi(e){let t=yi(e);return(0,xi.useMemo)(()=>{let{wasJustDismissed:e,...n}=t;return n},[t])}var xi,Si,Ci,wi,Ti,Ei=o((()=>{xi=u(f(),1),B(),Si=g(),Ar(),Fr(),Wr(),qr(),Yr(),pi(),Ci=G(),wi={keoZOQ:`x1vhfslr`,k1K539:`xlm3tn6`,$$css:!0},Ti={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},offsetBlock:e=>[wi,{"--x-marginBlockStart":(e=>typeof e==`number`?e+`px`:e??void 0)(e),"--x-marginBlockEnd":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}],offsetInline:e=>[{keTefX:e==null?e:`x4lel18`,k71WvV:e==null?e:`x1c9tiao`,$$css:!0},{"--x-marginInlineStart":(e=>typeof e==`number`?e+`px`:e??void 0)(e),"--x-marginInlineEnd":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]}}));function Di(e){let t=e,n=t[Mi];if(n!=null)return n;let r={modality:`keyboard`,isListening:!1,onPointerDown:()=>{r.modality=`pointer`},onKeyDown:e=>{e.metaKey||e.altKey||e.ctrlKey||(r.modality=`keyboard`)}};return Object.defineProperty(t,Mi,{value:r}),r}function Oi(){if(typeof document>`u`)return()=>{};let e=document,t=Di(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 ki(){(0,ji.useEffect)(()=>Oi(),[])}function Ai(){return typeof document>`u`?`keyboard`:Di(document).modality}var ji,Mi,Ni=o((()=>{ji=u(f(),1),Mi=Symbol.for(`@astryxdesign/core/interaction-modality/v1`)}));function Pi(e){let t=e.getAttribute(`role`);if(t!=null&&t!==``)return zi.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 Fi(e)}}function Fi(e){if(e.isContentEditable===!0)return!0;let t=e.getAttribute(`contenteditable`);return t!=null&&t!==`false`}function Ii(e){let{touchTrigger:t,isEnabled:n,isControlled:r,isOpen:i,layerId:a,triggerRef:o,show:s,hide:c}=e,l=(0,Li.useRef)(!1),u=(0,Li.useRef)(i);u.current=i;let d=(0,Li.useRef)(c);d.current=c;let f=(0,Li.useRef)(a);f.current=a;let p=(0,Li.useRef)(!1),m=(0,Li.useRef)(null);ki();let h=(0,Li.useCallback)(()=>{p.current=!1;let e=m.current;e!=null&&(m.current=null,document.removeEventListener(`pointerdown`,e,!0))},[]),g=(0,Li.useCallback)(()=>{if(p.current=!0,m.current!=null)return;let e=e=>{let t=e.target;(t==null||o.current?.contains(t)!==!0&&document.getElementById(f.current)?.contains(t)!==!0)&&(h(),d.current())};m.current=e,document.addEventListener(`pointerdown`,e,!0)},[o,h]);(0,Li.useEffect)(()=>h,[h]);let _=(0,Li.useCallback)(()=>l.current&&Ai()===`pointer`,[]),v=(0,Li.useCallback)(e=>{l.current=e.pointerType===`touch`},[]),y=(0,Li.useCallback)(e=>{let i=Ri.has(e.pointerType);if(l.current=i,!i||r)return!1;let a=o.current;return(t===`auto`?a!=null&&Pi(a)?`none`:`tap`:t)===`none`||!n||u.current||p.current?(h(),c(),!0):(g(),s(),!0)},[t,n,r,o,s,c,g,h]),b=(0,Li.useRef)(i);return(0,Li.useEffect)(()=>{b.current&&!i&&h(),b.current=i},[i,h]),{isTouchPointerRef:l,isTouchInteraction:_,handlePointerEnter:v,handlePointerDown:y,clearTapOpen:h}}var Li,Ri,zi,Bi=o((()=>{Li=u(f(),1),Ni(),Ri=new Set([`touch`,`pen`]),zi=new Set([`button`,`checkbox`,`combobox`,`link`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`searchbox`,`slider`,`spinbutton`,`switch`,`tab`,`textbox`])})),Vi,Hi=o((()=>{Et(),wt[`--duration-fast-max`],Tt[`--ease-standard`],Vi={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}}}));function Ui(){return(0,Gi.use)(qi)}function Wi({children:e}){let t=(0,Gi.use)(qi);return(0,Ki.jsx)(qi,{value:t+1,children:e})}var Gi,Ki,qi,Ji=o((()=>{Gi=u(f(),1),Ki=G(),qi=(0,Gi.createContext)(0),qi.displayName=`LayerDepthContext`,Wi.displayName=`LayerDepthProvider`}));function Yi(e){let t=la.get(e);if(t!==void 0)return t;let n=ua++;return la.set(e,n),n}function Xi(e,t){if(e.depth!==t.depth)return e.depth-t.depth;let n=e.getContainer?.()??null,r=t.getContainer?.()??null;if(n!=null&&r!=null&&n!==r){if(r.contains(n))return 1;if(n.contains(r))return-1}return e.seq-t.seq}function Zi(e){return e.isPresent?.()??!0}function Qi(){return fa}function $i(){fa=!0}function ea(){fa=!1}function ta(){let e=null;for(let t of ca)Zi(t)&&(e==null||Xi(t,e)>0)&&(e=t);return e}function na(e){return ta()?.token===e}function ra(){let e=ta();return e!=null&&(e.behavior===`block`||e.dismiss(),!0)}function ia(e){if(e.key===`Escape`){if(Bn(e)){ta()!=null&&e.preventDefault();return}e.defaultPrevented||ra()&&e.preventDefault()}}function aa(){da||typeof document>`u`||(document.addEventListener(`keydown`,ia),document.addEventListener(`compositionstart`,$i,!0),document.addEventListener(`compositionend`,ea,!0),document.addEventListener(`blur`,ea,!0),da=!0)}function oa(){da&&typeof document<`u`&&(document.removeEventListener(`keydown`,ia),document.removeEventListener(`compositionstart`,$i,!0),document.removeEventListener(`compositionend`,ea,!0),document.removeEventListener(`blur`,ea,!0),fa=!1,da=!1)}function sa(e){let t={...e,seq:Yi(e.token)};return ca.push(t),aa(),()=>{let e=ca.indexOf(t);e!==-1&&ca.splice(e,1),ca.length===0&&oa()}}var ca,la,ua,da,fa,pa=o((()=>{Hn(),ca=[],la=new WeakMap,ua=0,da=!1,fa=!1}));function ma(e){let{isActive:t,onDismiss:n,escapeBehavior:r=`close`,getContainer:i,isPresent:a,isEnabled:o=!0}=e,s=Ui(),c=(0,ha.useRef)({}),l=(0,ha.useRef)(!1),u=(0,ha.useRef)(n),d=(0,ha.useRef)(i),f=(0,ha.useRef)(a);(0,ha.useEffect)(()=>{u.current=n,d.current=i,f.current=a});let p=t&&o;return(0,ha.useEffect)(()=>{if(!p){l.current=!1;return}return l.current||=(c.current={},!0),sa({token:c.current,depth:s,behavior:r,getContainer:()=>d.current?.()??null,isPresent:()=>f.current?.()??!0,dismiss:()=>u.current()})},[p,s,r]),{shouldDismissOnCloseRequest:(0,ha.useCallback)(()=>p&&!Qi()&&na(c.current),[p])}}var ha,ga=o((()=>{ha=u(f(),1),Ji(),pa()}));function _a(e){return e.hasAttribute(`tabindex`)?e.tabIndex>=0:[`A`,`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`].includes(e.tagName)?!e.disabled:!!e.isContentEditable}function va(e={}){let{placement:t=`above`,alignment:n=`center`,delay:r=200,hideDelay:i=0,focusTrigger:a=`auto`,touchTrigger:o=`auto`,isEnabled:s=!0,isOpen:c,isDefaultOpen:l=!1,onShow:u,onHide:d}=e,{ref:f,anchorId:p,show:m,hide:h,isOpen:g,id:_,render:v}=bi({mode:`context`,onShow:u,onHide:d}),y=Sa.container,b=(0,ya.useRef)(null),x=(0,ya.useRef)(null),S=(0,ya.useRef)(null),C=(0,ya.useCallback)(()=>{b.current&&=(clearTimeout(b.current),null),x.current&&=(clearTimeout(x.current),null)},[]),w=(0,ya.useCallback)(()=>{C(),m()},[C,m]),T=(0,ya.useCallback)(()=>{C(),h()},[C,h]),{isTouchPointerRef:E,isTouchInteraction:D,handlePointerEnter:O,handlePointerDown:k,clearTapOpen:A}=Ii({touchTrigger:o,isEnabled:s,isControlled:c!==void 0,isOpen:g,layerId:_,triggerRef:S,show:w,hide:T}),j=(0,ya.useCallback)(()=>{s&&c!==!1&&(C(),b.current=setTimeout(()=>{m()},r))},[s,c,C,m,r]),M=(0,ya.useCallback)(()=>{c!==!0&&(C(),x.current=setTimeout(()=>{h()},i>0?i:xa))},[c,C,h,i]),N=(0,ya.useCallback)(()=>{x.current&&=(clearTimeout(x.current),null)},[]),ee=(0,ya.useCallback)(()=>{E.current||j()},[E,j]),P=(0,ya.useCallback)(()=>{E.current||M()},[E,M]),te=(0,ya.useCallback)(e=>{s&&(D()||e.target.matches(`:focus-visible`)&&(C(),m()))},[s,D,C,m]),F=(0,ya.useCallback)(()=>{M()},[M]),ne=(0,ya.useCallback)(e=>{k(e)||c===void 0&&(C(),h())},[k,c,C,h]),I=(0,ya.useCallback)(e=>{S.current&&(S.current.removeEventListener(`mouseenter`,ee),S.current.removeEventListener(`mouseleave`,P),S.current.removeEventListener(`focusin`,te),S.current.removeEventListener(`focusout`,F),S.current.removeEventListener(`pointerenter`,O),S.current.removeEventListener(`pointerdown`,ne)),e&&(e.addEventListener(`pointerenter`,O),e.addEventListener(`mouseenter`,ee),e.addEventListener(`mouseleave`,P),e.addEventListener(`pointerdown`,ne),(a===`always`||a===`auto`&&_a(e))&&(e.addEventListener(`focusin`,te),e.addEventListener(`focusout`,F))),S.current=e},[a,ee,P,te,F,O,ne]),re=(0,ya.useCallback)(e=>{f(e),I(e)},[f,I]);return(0,ya.useEffect)(()=>()=>{C()},[C]),(0,ya.useEffect)(()=>{l&&m()},[]),(0,ya.useEffect)(()=>{c!==void 0&&(c?(C(),m()):(C(),h()))},[c,C,m,h]),ma({isActive:!0,isPresent:()=>{let e=typeof document>`u`?null:document.getElementById(_);if(e==null)return!1;try{return e.matches(`:popover-open`)}catch{return g}},onDismiss:()=>{if(C(),A(),c!==void 0){d?.();return}h()}}),{ref:re,positionRef:f,interactionRef:I,anchorId:p,describedBy:_,renderTooltip:(0,ya.useCallback)((e,r)=>{let i=r?.placement??t,a={placement:i,alignment:r?.alignment??n,offset:St[`--spacing-1`],role:`tooltip`,xstyle:[y,Vi[i]],className:V(`tooltip`).className,onMouseEnter:N,onMouseLeave:M};return v((0,ba.jsx)(`div`,{className:`xfsso4q xy143xn x12gdq22 x1djylfy xw5ewwj x13faqbe`,children:e}),a)},[v,t,n,y,N,M])}}var ya,ba,xa,Sa,Ca=o((()=>{ya=u(f(),1),Ei(),Bi(),Hi(),ga(),H(),Et(),ba=G(),xa=100,Sa={container:{kWkggS:`x19aspcf`,kMwMTN:`xrkvqaz`,kaIpWk:`x1hviunn`,kMv6JI:`x9ynric`,kGuDYH:`xjm74w1`,kLWn49:`xw6l6zx`,$$css:!0}}})),wa=c({Tooltip:()=>Da});function Ta(e){return typeof e==`string`||typeof e==`number`}function Ea(...e){let t=e.filter(Boolean);return t.length>0?t.join(` `):void 0}function Da({children:e,anchorRef:t,content:n,placement:r=`above`,alignment:i=`center`,delay:a=200,hideDelay:o=0,focusTrigger:s=`auto`,touchTrigger:c=`auto`,isEnabled:l=!0,onOpenChange:u,hasHoverIndication:d=`auto`,isOpen:f,isDefaultOpen:p}){let m=(0,Oa.useRef)(null),h=e!=null&&Ta(e),g=d===!0||d===`auto`&&h,_=va({placement:r,alignment:i,delay:a,hideDelay:o,focusTrigger:s,touchTrigger:c,isEnabled:l,isOpen:f,isDefaultOpen:p,onShow:(0,Oa.useCallback)(()=>{u?.(!0)},[u]),onHide:(0,Oa.useCallback)(()=>{u?.(!1)},[u])});return Cr(()=>{if(!t)return;let e=t.current;if(!e)return;_.ref(e);let n=e.getAttribute(`aria-describedby`);return e.setAttribute(`aria-describedby`,Ea(n,_.describedBy)??``),()=>{_.ref(null),n?e.setAttribute(`aria-describedby`,n):e.removeAttribute(`aria-describedby`)}},[t,_.ref,_.describedBy]),Cr(()=>{if(t||h)return;let e=m.current;if(!e)return;let n=e.firstElementChild;if(!n)return;_.ref(n);let r=n.getAttribute(`aria-describedby`);return n.setAttribute(`aria-describedby`,Ea(r,_.describedBy)??``),()=>{_.ref(null),r?n.setAttribute(`aria-describedby`,r):n.removeAttribute(`aria-describedby`)}},[t,h,_.ref,_.describedBy]),t&&e==null?(0,ka.jsx)(ka.Fragment,{children:_.renderTooltip(n)}):h?(0,ka.jsxs)(ka.Fragment,{children:[(0,ka.jsx)(`span`,{ref:_.ref,tabIndex:0,"aria-describedby":_.describedBy,...{0:{className:`xt0psk2`},1:{className:`xt0psk2 xujl8zx xev0dqp xycaml9 xrys4gj`}}[!!g<<0],children:e}),_.renderTooltip(n)]}):(0,ka.jsxs)(ka.Fragment,{children:[(0,ka.jsx)(`div`,{ref:m,className:`xjp7ctv`,children:e}),_.renderTooltip(n)]})}var Oa,ka,Aa=o((()=>{Oa=u(f(),1),wr(),Ca(),ka=G(),Da.displayName=`Tooltip`}));function ja(e){return e in rr?e:`body`}function Ma(e){return e in er?e:`primary`}function Na({type:e=`body`,size:t,color:n,weight:r,display:i=`inline`,maxLines:a=0,hasTruncateTooltip:o=!0,wordBreak:s,textWrap:c,justify:l=`start`,hasCapsize:u=!1,hasStrikethrough:d=!1,hasTabularNumbers:f=!1,xstyle:p,className:m,style:h,as:g=`span`,children:_,ref:v,...y}){let b=n??La[e]??`primary`,x=ja(e),S=Ma(b),C=s??(a===1?`break-all`:`break-word`),w=a>0||u?`block`:i,T=gr({maxLines:a}),E=typeof o==`string`?o:`above`,D=a>0&&o!==!1&&T.isTruncated,O=(0,Pa.useRef)(null),k=yr(v,T.ref,O),A=a>1?{WebkitLineClamp:a}:void 0;return(0,Fa.jsxs)(Fa.Fragment,{children:[(0,Fa.jsx)(g,{ref:k,...U(V(`text`,{type:e,size:t,color:b}),z(er[S],rr[x],t&&ir[t],nr[x],r&&tr[r],a===1?sr.singleLine:a>1?sr.multiLine:or[w],a>0&&cr[C],c&&lr[c],l!==`start`&&pr[l],u&&ur.enabled,d&&dr.strikethrough,f&&fr.enabled,p),m,{...h,...A}),...y,children:_}),D&&(0,Fa.jsx)(Pa.Suspense,{fallback:null,children:(0,Fa.jsx)(Ia,{anchorRef:O,content:(0,Fa.jsx)(`span`,{...z(mr.content),children:T.fullText}),placement:E})})]})}var Pa,Fa,Ia,La,Ra=o((()=>{Pa=u(f(),1),B(),hr(),vr(),W(),xr(),H(),Fa=G(),Ia=(0,Pa.lazy)(async()=>Promise.resolve().then(()=>(Aa(),wa)).then(e=>({default:e.Tooltip}))),La={body:`primary`,large:`primary`,label:`primary`,supporting:`secondary`,code:`primary`,"display-1":`primary`,"display-2":`primary`,"display-3":`primary`,inherit:`inherit`},Na.displayName=`Text`}));function za(e){return e===`display-1`||e===`display-2`||e===`display-3`}function Ba({level:e,type:t,weight:n,accessibilityLevel:r,color:i=`primary`,display:a=`block`,maxLines:o=0,hasTruncateTooltip:s=!0,wordBreak:c,textWrap:l,justify:u=`start`,hasCapsize:d=!1,hasStrikethrough:f=!1,xstyle:p,className:m,style:h,children:g,ref:_,...v}){let y=Wa[e],b=r&&r!==e?{"aria-level":r}:{},x=c??(o===1?`break-all`:`break-word`),S=o>0||d?`block`:a,C=t&&za(t)?t:void 0,w=gr({maxLines:o}),T=typeof s==`string`?s:`above`,E=o>0&&s!==!1&&w.isTruncated,D=(0,Va.useRef)(null),O=yr(_,w.ref,D),k=o>1?{WebkitLineClamp:o}:void 0;return(0,Ha.jsxs)(Ha.Fragment,{children:[(0,Ha.jsx)(y,{ref:O,...U(V(`heading`,{level:e,color:i,type:t,weight:n}),z(er[Ma(i)],C?rr[C]:ar[e],C&&nr[C],n&&tr[n],o===1?sr.singleLine:o>1?sr.multiLine:or[S],o>0&&cr[x],l&&lr[l],u!==`start`&&pr[u],d&&ur.enabled,f&&dr.strikethrough,p),m,{...h,...k}),...b,...v,children:g}),E&&(0,Ha.jsx)(Va.Suspense,{fallback:null,children:(0,Ha.jsx)(Ua,{anchorRef:D,content:(0,Ha.jsx)(`span`,{...z(mr.content),children:w.fullText}),placement:T})})]})}var Va,Ha,Ua,Wa,Ga=o((()=>{Va=u(f(),1),B(),hr(),vr(),Ra(),W(),xr(),H(),Ha=G(),Ua=(0,Va.lazy)(async()=>Promise.resolve().then(()=>(Aa(),wa)).then(e=>({default:e.Tooltip}))),Wa={1:`h1`,2:`h2`,3:`h3`,4:`h4`,5:`h5`,6:`h6`},Ba.displayName=`Heading`})),Ka=o((()=>{Ga()})),qa=o((()=>{Ra(),Ka(),vr()})),Ja=o((()=>{f(),Le(),G()}));function Ya({href:e,method:t=`GET`,data:n,preserveScroll:r=!1,preserveState:i=!1,replace:a=!1,reloadDocument:o=!1,viewTransition:s,prefetch:c=!1,cacheFor:l,onNavigate:u,children:d,style:f,onClick:p,onMouseEnter:m,onMouseLeave:h,onFocus:g,onMouseDown:_,onTouchStart:v,...y}){let b=(0,Xa.useContext)(Ge),x=(0,Xa.useRef)(null),S=(0,Xa.useRef)(null),C=(0,Xa.useMemo)(()=>t.toUpperCase(),[t]),w=C===`GET`,T=(0,Xa.useMemo)(()=>w?Ee(e,n):e,[n,e,w]),E=(0,Xa.useMemo)(()=>c===!1||o?[]:c===!0?[`hover`]:typeof c==`string`?[c]:c,[c,o]),D=b?._hoverDelay??75;if(c!==!1&&!w)throw Error('Link: prefetch only supports GET links. Remove `prefetch` or use method="GET".');if(o&&!w)throw Error(`Link: reloadDocument only supports GET links.`);let O=(0,Xa.useCallback)(()=>{if(!b?.prefetch)return;let e=window.location.pathname+window.location.search;if(T===e)return;let t={};l!==void 0&&(t.cacheFor=l),b.prefetch(T,t)},[l,T,b]),k=(0,Xa.useCallback)(e=>!(o||!b||e.defaultPrevented||De(e)||e.currentTarget.hasAttribute(`download`)||new URL(T,window.location.origin).origin!==window.location.origin),[T,o,b]),A=(0,Xa.useCallback)(e=>{if(p?.(e),!k(e))return;let t=!1;if(u?.({preventDefault(){t=!0}}),t){e.preventDefault();return}e.preventDefault(),b?.visit(T,{method:C,data:w?void 0:n,preserveScroll:r,preserveState:i,replace:a,viewTransition:s})},[n,T,w,C,p,u,r,i,a,b,k,s]),j=(0,Xa.useCallback)(e=>{m?.(e),!e.defaultPrevented&&(S.current&&clearTimeout(S.current),S.current=setTimeout(O,D))},[O,D,m]),M=(0,Xa.useCallback)(e=>{h?.(e),S.current&&=(clearTimeout(S.current),null)},[h]),N=(0,Xa.useCallback)(e=>{g?.(e),e.defaultPrevented||O()},[O,g]),ee=(0,Xa.useCallback)(e=>{_?.(e),e.defaultPrevented||O()},[O,_]),P=(0,Xa.useCallback)(e=>{v?.(e),e.defaultPrevented||O()},[O,v]);(0,Xa.useEffect)(()=>{if(E.length===0)return;E.includes(`mount`)&&O();let e=null;return E.includes(`visible`)&&x.current&&(e=new IntersectionObserver(t=>{t.some(e=>e.isIntersecting)&&(O(),e?.disconnect(),e=null)},{rootMargin:`0px`}),e.observe(x.current)),()=>{S.current&&=(clearTimeout(S.current),null),e&&e.disconnect()}},[O,E]);let te=(0,Xa.useMemo)(()=>{let e={onClick:A,onFocus:g,onMouseDown:_,onMouseEnter:m,onMouseLeave:h,onTouchStart:v};return E.includes(`hover`)&&(e.onMouseEnter=j,e.onMouseLeave=M,e.onFocus=N,e.onTouchStart=P),E.includes(`click`)&&(e.onMouseDown=ee,e.onTouchStart=P),e},[A,N,g,ee,_,j,m,M,h,P,v,E]),F=(0,Xa.useMemo)(()=>({touchAction:`manipulation`,...f}),[f]);return w?(0,Za.jsx)(`a`,{ref:x,href:T,style:F,...y,...te,children:d}):(0,Za.jsx)(`button`,{ref:x,type:`button`,style:F,...y,...te,children:d})}var Xa,Za,Qa=o((()=>{Xa=u(f(),1),Le(),qe(),Za=G()}));function $a(){return(0,eo.useContext)(Ge)??Ie}var eo,to=o((()=>{eo=u(f(),1),Le(),qe()})),no=o((()=>{f(),qe()}));function ro(){let e=(0,io.useContext)(He);if(!e)throw Error(`useShared(): must be used inside a Void page.`);return e}var io,ao=o((()=>{io=u(f(),1),qe()})),oo=o((()=>{f(),Le(),qe()}));function so(){return(0,co.useContext)(Ke)}var co,lo=o((()=>{co=u(f(),1),qe()})),uo=o((()=>{f(),Le()})),fo=o((()=>{Ja(),Qa(),to(),no(),ao(),oo(),lo(),uo(),Be(),qe()}));function po(e,t){if(!e&&!t)return;if(!e)return t;if(!t)return e;let n={};for(let[t,r]of Object.entries(e))n[t]={...r};for(let[e,r]of Object.entries(t))if(!n[e])n[e]={...r};else for(let[t,i]of Object.entries(r))n[e][t]={...n[e][t],...i};return n}var mo=o((()=>{}));function ho(e,t,n){return Math.round(e*t**+n)}function go(e){return`${Math.round(e/16*1e4)/1e4}rem`}function _o(e){return e<20?1.5:e<32?1.4:1.25}function vo(e){let t=e*_o(e),n=Math.max(Math.round(t/4)*4,Math.ceil((e+4)/4)*4);return Math.round(n/e*1e4)/1e4}function yo(e){let{base:t,ratio:n,weights:r}=e,i={},a={...wo,...r?.heading},o={...To,...r?.text};for(let e=-5;e<=6;e++){let r=ho(t,n,e);i[xo[e]]=go(r)}for(let[e,r]of Object.entries(So)){let o=Number(e),s=vo(ho(t,n,r));i[`--text-heading-${o}-size`]=`var(${xo[r]})`,i[`--text-heading-${o}-weight`]=a[o],i[`--text-heading-${o}-leading`]=`${s}`}for(let[e,r]of Object.entries(Co)){let a=vo(ho(t,n,r));i[`--text-${e}-size`]=`var(${xo[r]})`,i[`--text-${e}-weight`]=o[e],i[`--text-${e}-leading`]=`${a}`}return i}function bo(e){let t={},n={};for(let e of[1,2,3,4,5,6])n[`level:${e}`]={fontFamily:`var(--font-family-heading)`,fontSize:`var(--text-heading-${e}-size)`,fontWeight:`var(--text-heading-${e}-weight)`,lineHeight:`var(--text-heading-${e}-leading)`};for(let e of[`display-1`,`display-2`,`display-3`])n[`type:${e}`]={fontFamily:`var(--font-family-heading)`,fontSize:`var(--text-${e}-size)`,lineHeight:`var(--text-${e}-leading)`};t.heading=n;let r={};for(let e of[`body`,`large`,`label`,`code`,`supporting`,`display-1`,`display-2`,`display-3`])r[`type:${e}`]={fontFamily:Eo[e],fontSize:`var(--text-${e}-size)`,lineHeight:`var(--text-${e}-leading)`};return t.text=r,t}var xo,So,Co,wo,To,Eo,Do=o((()=>{xo={[-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`},So={1:3,2:2,3:1,4:0,5:-1,6:-2},Co={body:0,large:1,label:0,code:0,supporting:-1,"display-1":6,"display-2":5,"display-3":4},wo={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)`},To={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)`},Eo={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 Oo(e){return Math.round(e/5)*5}function ko(e){let{fast:t,medium:n,slow:r,ratio:i,easing:a}=e,o={"--duration-fast-min":`${Oo(t*i)}ms`,"--duration-fast":`${Oo(t)}ms`,"--duration-fast-max":`${Oo(t/i)}ms`,"--duration-medium-min":`${Oo(n*i)}ms`,"--duration-medium":`${Oo(n)}ms`,"--duration-medium-max":`${Oo(n/i)}ms`};return r!=null&&(o[`--duration-slow-min`]=`${Oo(r*i)}ms`,o[`--duration-slow`]=`${Oo(r)}ms`,o[`--duration-slow-max`]=`${Oo(r/i)}ms`),a&&(o[`--ease-standard`]=a),o}var Ao=o((()=>{}));function jo(e){let{base:t,multiplier:n}=e;return{"--radius-none":`0px`,"--radius-inner":`${Math.round(t*1*n)}px`,"--radius-element":`${Math.round(t*2*n)}px`,"--radius-container":`${Math.round(t*3*n)}px`,"--radius-page":`${Math.round(t*7*n)}px`,"--radius-chat":`${Math.round(t*7*n)}px`,"--radius-full":`9999px`}}var Mo=o((()=>{}));function No(e){let t=e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4};return .2126*t(e.r)+.7152*t(e.g)+.0722*t(e.b)}function Po(e,t){let n=e.a;return{r:e.r*n+t.r*(1-n),g:e.g*n+t.g*(1-n),b:e.b*n+t.b*(1-n),a:1}}function Fo(e,t){if(typeof e!=`string`)return e;let n=yn(e);if(n===null)throw TypeError(`contrastRatio: could not parse ${t} "${e}"`);return n}function Io(e,t){let n=Fo(t,`background`);if(n.a<1)throw TypeError(`contrastRatio: background must be opaque — composite it over its backdrop first`);let r=Fo(e,`foreground`);r.a<1&&(r=Po(r,n));let i=No(r),a=No(n),o=Math.max(i,a),s=Math.min(i,a);return(o+.05)/(s+.05)}var Lo=o((()=>{Cn()}));function Ro(e){let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function zo(e){let t=e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055;return Math.round(Math.min(255,Math.max(0,t*255)))}function Bo(e,t,n){return[.4124564*e+.3575761*t+.1804375*n,.2126729*e+.7151522*t+.072175*n,.0193339*e+.119192*t+.9503041*n]}function Vo(e,t,n){return[3.2404542*e-1.5371385*t-.4985314*n,-.969266*e+1.8760108*t+.041556*n,.0556434*e-.2040259*t+1.0572252*n]}function Ho(e){let t=6/29;return e>t*t*t?Math.cbrt(e):e/(3*t*t)+4/29}function Uo(e){let t=6/29;return e>t?e*e*e:3*t*t*(e-4/29)}function Wo(e,t,n){let r=Ho(e/es[0]),i=Ho(t/es[1]),a=Ho(n/es[2]);return[116*i-16,500*(r-i),200*(i-a)]}function Go(e,t,n){let r=(e+16)/116,i=t/500+r,a=r-n/200;return[Uo(i)*es[0],Uo(r)*es[1],Uo(a)*es[2]]}function Ko(e){return Uo((e+16)/116)}function qo(e){let t=_n(e);return t===null?[0,0,0]:[t.r,t.g,t.b]}function Jo(e){let[t,n,r]=qo(e),[i,a,o]=Bo(Ro(t),Ro(n),Ro(r)),[s,c,l]=Wo(i,a,o),u=Math.atan2(l,c)*180/Math.PI;u<0&&(u+=360);let d=Math.sqrt(c*c+l*l);return{hue:u,chroma:d,tone:Math.max(0,Math.min(100,s))}}function Yo(e){let{hue:t,chroma:n,tone:r}=e;if(r<=0)return`#000000`;if(r>=100)return`#FFFFFF`;if(n<.5){let e=Xo(r);return bn(e,e,e)}let i=0,a=n,o=`#000000`;for(let e=0;e<16;e++){let e=(i+a)/2,n=Zo(t,e,r);n===null?a=e:(o=n,i=e)}return o}function Xo(e){return zo(Ko(e))}function Zo(e,t,n){let r=e*Math.PI/180,[i,a,o]=Go(n,Math.cos(r)*t,Math.sin(r)*t),[s,c,l]=Vo(i,a,o),u=zo(s),d=zo(c),f=zo(l),p=Ro(u),m=Ro(d),h=Ro(f),g=.02;return Math.abs(p-s)>g||Math.abs(m-c)>g||Math.abs(h-l)>g||u<0||u>255||d<0||d>255||f<0||f>255?null:bn(u,d,f)}function Qo(e,t){let n={};for(let r of ts)n[r]=Yo({hue:e,chroma:t,tone:r});return n}function $o(e,t){return e+Math.round(t*255).toString(16).padStart(2,`0`).toUpperCase()}var es,ts,ns=o((()=>{Cn(),es=[.95047,1,1.08883],ts=[0,5,10,20,30,40,50,60,70,80,90,95,99,100]}));function rs(e,t){return`light-dark(${e}, ${t})`}function is(e){return`color-mix(in srgb, var(--color-accent) ${e*100}%, transparent)`}function as(e,t,n,r,i,a){let o=n,s=Yo({hue:e,chroma:t,tone:o});for(;Io(s,i)<a&&o+r>=0&&o+r<=100;)o+=r,s=Yo({hue:e,chroma:t,tone:o});return s}function os(e){let{accent:t,neutralStyle:n=`cool`,contrast:r=`standard`}=e,[i,a]=Array.isArray(t)?t:[t,t],o=Jo(i??ls),s=a===i,c=s?o:Jo(a??ls),l=ss[n]??5,u=cs[n]??8,d=Qo(o.hue,Math.max(o.chroma,48)),f=Qo(o.hue,l),p=Qo(o.hue,u),m=s?d:Qo(c.hue,Math.max(c.chroma,48)),h=s?f:Qo(c.hue,l),g=s?p:Qo(c.hue,u),_=r===`high`,v=_?0:10,y=_?99:90,b=_?20:30,x=_?80:70,S=_?.2:.1,C=_?50:70,w=_?50:30,T=rs(as(o.hue,u,C,-1,f[99],us),as(c.hue,u,w,1,h[10],us));return{...t==null?null:{"--color-accent":rs(d[40],m[80]),"--color-accent-muted":rs(is(.2),is(.25)),"--color-on-accent":rs(d[100],m[20])},"--color-neutral":rs($o(f[10],.1),$o(h[90],.2)),"--color-background-surface":rs(f[99],h[10]),"--color-background-body":rs(f[95],h[5]),"--color-overlay":rs($o(f[10],.4),$o(h[10],.6)),"--color-overlay-hover":rs($o(f[10],.05),$o(h[100],.05)),"--color-overlay-pressed":rs($o(f[10],.1),$o(h[100],.1)),"--color-background-muted":rs($o(f[10],.05),$o(h[10],.5)),"--color-text-primary":rs(f[v],h[y]),"--color-text-secondary":rs(p[b],g[x]),"--color-text-disabled":rs(p[60],g[40]),"--color-text-accent":`var(--color-accent)`,"--color-icon-accent":`var(--color-accent)`,"--color-icon-primary":rs(f[v],h[y]),"--color-icon-secondary":rs(p[b],g[x]),"--color-icon-disabled":rs(p[60],g[40]),"--color-background-card":rs(f[99],h[10]),"--color-background-popover":rs(f[99],h[20]),"--color-background-inverted":rs(f[10],h[99]),"--color-border":rs($o(f[10],S),$o(h[95],S)),"--color-border-emphasized":T,"--color-skeleton":rs(p[70],g[30]),"--color-track":rs(p[70],g[30]),"--color-shadow":rs($o(f[0],.1),$o(h[0],.3)),"--color-tint-hover":rs(`black`,`white`)}}var ss,cs,ls,us,ds=o((()=>{Lo(),ns(),ss={warm:7,cool:5,neutral:3},cs={warm:10,cool:8,neutral:6},ls=`#0064E0`,us=3}));function fs(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 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 ps(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 ms(e,t){if(!e)return;let n=e.includes(` `)?`"${e}"`:e;return t?`${n}, ${t}`:n}function hs(e){if(!e.scale)return;let t={},n=e.heading;if(n?.weights)for(let[e,r]of Object.entries(n.weights))r&&(t[Number(e)]=ps(r));let r=n?.weight?ps(n.weight):void 0;if(r)for(let e=1;e<=6;e++)e in t||(t[e]=r);let i={};return e.body?.weight&&(i.body=ps(e.body.weight)),e.code?.weight&&(i.code=ps(e.code.weight)),{base:e.scale.base,ratio:e.scale.ratio,weights:{...Object.keys(t).length>0?{heading:t}:{},...Object.keys(i).length>0?{text:i}:{}}}}function gs(e){let t={},n=ms(e.body?.family,e.body?.fallbacks),r=ms(e.heading?.family,e.heading?.fallbacks)??n,i=ms(e.code?.family,e.code?.fallbacks);return n&&(t[`--font-family-body`]=n),r&&(t[`--font-family-heading`]=r),i&&(t[`--font-family-code`]=i),t}function _s(e,t,{strictTokens:n=!1}={}){let r={...t?.tokens},i=e.typography,a=i?hs(i):void 0;if(e.color&&Object.assign(r,os(e.color)),a&&Object.assign(r,yo(a)),e.radius&&Object.assign(r,jo(e.radius)),e.motion&&Object.assign(r,ko(e.motion)),i&&Object.assign(r,gs(i)),e.syntax)for(let[t,n]of Object.entries(e.syntax.tokens))r[`--color-syntax-`+t]=n;if(e.tokens)for(let[t,i]of Object.entries(e.tokens))i!==void 0&&(r[t]=fs(i,{strict:n}));let o=e.components;return a&&(o=po(bo(a),e.components)),t?.components&&(o=po(t.components,o)),{tokens:r,components:o}}var vs=o((()=>{Do(),Ao(),Mo(),ds(),mo()}));function ys(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function bs(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 Error(`${t} must be a CSS string or a [light, dark] string tuple.`)}function xs(e,t){if(typeof e==`string`){Ts.lastIndex=0;for(let n=Ts.exec(e);n;n=Ts.exec(e))t.add(n[1]);return}if(Array.isArray(e)){for(let n of e)xs(n,t);return}if(e&&typeof e==`object`)for(let n of Object.values(e))xs(n,t)}function Ss(e,t,n){let r=new Map;for(let[t,n]of Object.entries(e)){let i=new Set;xs(n,i),r.set(t,[...i].filter(t=>ys(e,t)))}let i=(e,t)=>{let n=[e],i=new Set(n),a=o=>{for(let s of r.get(o)??[])if(t.has(s)){if(s===e)return n.push(e),!0;if(!i.has(s)){if(n.push(s),i.add(s),a(s))return!0;i.delete(s),n.pop()}}return!1};return a(e),n},a=0,o=new Map,s=new Map,c=[],l=new Set,u=e=>{let d=a++;o.set(e,d),s.set(e,d),c.push(e),l.add(e);for(let t of r.get(e)??[])o.has(t)?l.has(t)&&s.set(e,Math.min(s.get(e)??d,o.get(t)??0)):(u(t),s.set(e,Math.min(s.get(e)??d,s.get(t)??0)));if(s.get(e)!==d)return;let f=[],p;do p=c.pop()??e,l.delete(p),f.push(p);while(p!==e);if(!(f.length>1||(r.get(f[0])??[]).includes(f[0]))||n&&!f.some(e=>n.has(e)))return;let m=f.find(e=>n?.has(e))??f[0],h=i(m,new Set(f)).join(` -> `);throw Error(`${t?`${t}: `:``}Theme token cycle detected: ${h}.`)};for(let t of Object.keys(e))o.has(t)||u(t)}function Cs(e,t,n,r){let i=`defineTheme("${e}").adaptations.rules[${t}].value.localTokens`;if(n===void 0)return;if(typeof n!=`object`||!n||Array.isArray(n))throw Error(`${i} must be a token map.`);let a={};for(let[e,t]of Object.entries(n)){if(!r||!ys(r,e))throw Error(`${i}["${e}"] cannot enroll a theme-local token. Declare it in the root theme or an exact enrolled base first.`);a[e]=bs(t,`${i}["${e}"]`)}return Object.keys(a).length>0?a:void 0}var ws,Ts,Es=o((()=>{ws=String.raw`(?:[-_a-zA-Z0-9]|\P{ASCII}|\\(?:[0-9a-fA-F]{1,6}[ \t\r\n\f]?|[^\r\n\f]))`,RegExp(`^--${ws}*$`,`u`),Ts=RegExp(`var\\(\\s*(--${ws}*)(?=\\s*(?:,|\\)))`,`giu`)}));function Ds(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Os(e,t){if(!Ds(e))throw Error(`${t} must be an object.`)}function ks(e,t,n){for(let r of Object.keys(e))if(!t.has(r))throw Error(`${n}.${r} is not supported.`)}function As(e){if(Array.isArray(e)){let t=[];for(let n of e)t.push(As(n));return t}return Ds(e)?Object.fromEntries(Object.entries(e).map(([e,t])=>[e,As(t)])):e}function js(e,t){Os(e,t),ks(e,$s,t);let n={};for(let r of Zs){let i=e[r];if(i!==void 0){if(typeof i!=`number`||!Number.isFinite(i)||i<=0)throw Error(`${t}.${r} must be a finite positive number of CSS pixels.`);n[r]=i}}return n}function Ms(e,t){let n=js(e,t);for(let e of Zs)if(n[e]===void 0)throw Error(`${t}.${e} is missing from the effective breakpoint map.`);return n}function Ns(e,t){let n;for(let r of Zs){if(n!==void 0&&e[r]<=e[n])throw Error(`${t} must be strictly increasing: ${r} (${e[r]}) is not above ${n} (${e[n]}).`);n=r}}function Ps(e,t){Os(e,t),ks(e,nc,t);let n=Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0));if(Object.keys(n).length===0)throw Error(`${t} must contain at least one condition.`);let r=As(n);if(r.width!==void 0){if(Os(r.width,`${t}.width`),ks(r.width,rc,`${t}.width`),r.width.from===void 0&&r.width.below===void 0)throw Error(`${t}.width must contain \`from\`, \`below\`, or both.`);for(let e of[`from`,`below`]){let n=r.width[e];if(n!==void 0&&(typeof n!=`string`||!$s.has(n)))throw Error(`${t}.width.${e} must be one of ${Zs.join(`, `)}.`)}}if(r.pointer!==void 0&&r.pointer!==`coarse`&&r.pointer!==`fine`)throw Error(`${t}.pointer must be 'coarse' or 'fine'.`);if(r.contrast!==void 0&&r.contrast!==`more`&&r.contrast!==`less`&&r.contrast!==`no-preference`)throw Error(`${t}.contrast must be 'more', 'less', or 'no-preference'.`);if(r.motion!==void 0&&r.motion!==`reduce`&&r.motion!==`no-preference`)throw Error(`${t}.motion must be 'reduce' or 'no-preference'.`);return r}function Fs(e,t){Os(e,t),ks(e,ic,t);for(let n of ic){let r=e[n];if(r!==void 0&&!Ds(r))throw Error(`${t}.${n} must be an object.`)}return As(e)}function Is(e,t){if(Os(e,t),ks(e,tc,t),!Object.prototype.hasOwnProperty.call(e,`when`))throw Error(`${t}.when is required.`);if(!Object.prototype.hasOwnProperty.call(e,`value`))throw Error(`${t}.value is required.`);return{when:Ps(e.when,`${t}.when`),value:Fs(e.value,`${t}.value`)}}function Ls(e,t){if(!Array.isArray(e))throw Error(`${t} must be an array of {when, value} objects.`);for(let n=0;n<e.length;n++)if(!Object.prototype.hasOwnProperty.call(e,n))throw Error(`${t}[${n}] must be present.`);return e.map((e,n)=>Is(e,`${t}[${n}]`))}function Rs(e,t,n){let r=`defineTheme("${e}").adaptations`,i={...Qs},a=[];t!==void 0&&(Os(t,`defineTheme("${e}").extends.__adaptations`),ks(t,new Set([`widthBreakpoints`,`rules`]),`defineTheme("${e}").extends.__adaptations`),i=Ms(t.widthBreakpoints,`defineTheme("${e}").extends.__adaptations.widthBreakpoints`),a=Ls(t.rules,`defineTheme("${e}").extends.__adaptations.rules`));let o={},s=[];n!==void 0&&(Os(n,r),ks(n,ec,r),n.widthBreakpoints!==void 0&&(o=js(n.widthBreakpoints,`${r}.widthBreakpoints`)),n.rules!==void 0&&(s=Ls(n.rules,`${r}.rules`)));let c={...i,...o};return Ns(c,`${r}.widthBreakpoints`),{widthBreakpoints:c,rules:[...a,...s]}}function zs(e,t){return e?t?{...e,...t,weights:e.weights||t.weights?{...e.weights,...t.weights}:void 0}:e:t}function Bs(e,t){if(typeof e!=`number`||!Number.isFinite(e))throw Error(`${t} must be a finite number.`)}function Vs(e,t,n){let r=t.scale!==void 0||[t.body,t.heading,t.code].some(e=>e?.weight!==void 0||e?.weights!==void 0),i=r?e?.scale:void 0;if(t.scale!==void 0){let r=t.scale.base??e?.scale?.base,a=t.scale.ratio??e?.scale?.ratio;if(r===void 0||a===void 0)throw Error(`${n}.scale must supply both \`base\` and \`ratio\` unless the missing field exists on the effective root typography axis.`);Bs(r,`${n}.scale.base`),Bs(a,`${n}.scale.ratio`),i={base:r,ratio:a}}else if(r&&i===void 0)throw Error(`${n} sets typography weights without an effective root scale. Supply \`scale.base\` and \`scale.ratio\` in the same rule.`);return{...i?{scale:i}:{},body:zs(e?.body,t.body),heading:zs(e?.heading,t.heading),code:zs(e?.code,t.code)}}function Hs(e,t,n){let r=t.base??e?.base,i=t.multiplier??e?.multiplier;if(r===void 0||i===void 0)throw Error(`${n} must supply both \`base\` and \`multiplier\` unless the missing field exists on the effective root radius axis.`);return Bs(r,`${n}.base`),Bs(i,`${n}.multiplier`),{base:r,multiplier:i}}function Us(e,t,n){let r=t.fast??e?.fast,i=t.medium??e?.medium,a=t.ratio??e?.ratio;if(r===void 0||i===void 0||a===void 0)throw Error(`${n} must supply \`fast\`, \`medium\`, and \`ratio\` unless each missing field exists on the effective root motion axis.`);Bs(r,`${n}.fast`),Bs(i,`${n}.medium`),Bs(a,`${n}.ratio`);let o=t.slow??e?.slow;o!==void 0&&Bs(o,`${n}.slow`);let s=t.easing??e?.easing;return{fast:r,medium:i,ratio:a,...o===void 0?{}:{slow:o},...s===void 0?{}:{easing:s}}}function Ws(e,t,n,r){let i=`defineTheme("${e}").adaptations.rules[${t}].value`;return{typography:n.typography?Vs(r.typography,n.typography,`${i}.typography`):void 0,color:n.color?{...r.color,...n.color}:void 0,radius:n.radius?Hs(r.radius,n.radius,`${i}.radius`):void 0,motion:n.motion?Us(r.motion,n.motion,`${i}.motion`):void 0,tokens:n.tokens,components:n.components}}function Gs(e,t){if(typeof e==`string`){if(/\b(?:NaN|undefined)\b/.test(e))throw Error(`${t} resolved to the invalid CSS value "${e}".`);return}if(Ds(e)){for(let[n,r]of Object.entries(e))Gs(r,`${t}.${n}`);return}throw Error(`${t} must resolve to a concrete CSS string.`)}function Ks(e,t,n,r){let i=`defineTheme("${e}").adaptations.rules[${t}].when`,a=[];if(n.width){let e=n.width.from,t=n.width.below;if(e!==void 0&&t!==void 0&&r[e]>=r[t])throw Error(`${i}.width must resolve to \`from < below\`; ${e} is ${r[e]}px and ${t} is ${r[t]}px.`);e!==void 0&&a.push(`(width >= ${r[e]}px)`),t!==void 0&&a.push(`(width < ${r[t]}px)`)}if(n.pointer!==void 0&&a.push(`(pointer: ${n.pointer})`),n.contrast!==void 0&&a.push(`(prefers-contrast: ${n.contrast})`),n.motion!==void 0&&a.push(`(prefers-reduced-motion: ${n.motion})`),a.length===0)throw Error(`${i} must contain at least one concrete condition.`);return a.join(` and `)}function qs(e,t,n){let r=e.width?.from;if(r!==void 0&&n.width<t[r])return!1;let i=e.width?.below;return!(i!==void 0&&n.width>=t[i]||e.pointer!==void 0&&e.pointer!==n.pointer||e.contrast!==void 0&&e.contrast!==n.contrast||e.motion!==void 0&&e.motion!==n.motion)}function Js(e,t,n,r,i){let a=i.flatMap((e,t)=>Object.keys(e.tokens).length>0||e.localTokens&&Object.keys(e.localTokens).length>0?[t]:[]);if(a.length===0)return;let o=[0,...Zs.map(e=>t[e])],s=new Set;for(let c of o)for(let o of ac.pointer)for(let l of ac.contrast)for(let u of ac.motion){let d={width:c,pointer:o,contrast:l,motion:u},f=a.filter(e=>qs(i[e].when,t,d));if(f.length===0)continue;let p=f.join(`,`);if(s.has(p))continue;s.add(p);let m={...n,...r},h=new Set;for(let e of f){let t=i[e];Object.assign(m,t.tokens,t.localTokens);for(let e of Object.keys(t.tokens))h.add(e);for(let e of Object.keys(t.localTokens??{}))h.add(e)}let g=f.join(`, `),_=f.map(e=>i[e].query).join(`; `);Ss(m,`defineTheme("${e}").adaptations ${f.length===1?`rule`:`overlapping rules`} [${g}] (${_})`,h)}}function Ys(e,t,n){if(!e||!t)return e;let r={};for(let[i,a]of Object.entries(e))for(let[e,o]of Object.entries(a)){let a=Object.fromEntries(Object.entries(o).filter(([r])=>t[i]?.[e]?.[r]===void 0||Object.hasOwn(n?.[i]?.[e]??{},r)));Object.keys(a).length>0&&((r[i]??={})[e]=a)}return Object.keys(r).length>0?r:void 0}function Xs(e,t,n,r,i,a){if(t.rules.length===0)return;let o=t.rules.map((r,o)=>{let s=Ws(e,o,r.value,n),c=_s(s,void 0,{strictTokens:!0});for(let[t,n]of Object.entries(c.tokens))Gs(n,`defineTheme("${e}").adaptations.rules[${o}].value.tokens["${t}"]`);c.components&&Gs(c.components,`defineTheme("${e}").adaptations.rules[${o}].value.components`);for(let t of Object.keys(r.value.tokens??{}))if(i&&Object.prototype.hasOwnProperty.call(i,t))throw Error(`defineTheme("${e}").adaptations.rules[${o}].value.tokens["${t}"] matches an enrolled theme-local declaration; write it through value.localTokens instead.`);let l=Cs(e,o,r.value.localTokens,i);return{when:r.when,query:Ks(e,o,r.when,t.widthBreakpoints),tokens:c.tokens,localTokens:l,components:s.typography?.scale?Ys(c.components,a,r.value.components):c.components}});return Js(e,t.widthBreakpoints,r,i,o),o}var Zs,Qs,$s,ec,tc,nc,rc,ic,ac,oc=o((()=>{vs(),Es(),Zs=[`sm`,`md`,`lg`,`xl`,`2xl`],Qs=Object.freeze({sm:640,md:768,lg:1024,xl:1280,"2xl":1536}),$s=new Set(Zs),ec=new Set([`widthBreakpoints`,`rules`]),tc=new Set([`when`,`value`]),nc=new Set([`width`,`pointer`,`contrast`,`motion`]),rc=new Set([`from`,`below`]),ic=new Set([`typography`,`color`,`radius`,`motion`,`tokens`,`localTokens`,`components`]),ac={pointer:[`coarse`,`fine`,`none`],contrast:[`more`,`less`,`no-preference`,`custom`],motion:[`reduce`,`no-preference`]}})),sc,cc=o((()=>{sc={"--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)`}}));function lc(e){dc.set(e.name,e)}function uc(e){return e==null||e===``?null:dc.get(e)??null}var dc,fc=o((()=>{dc=new Map}));function pc(e,t){let n=hc[e],r=mc[e]??(n?mc[n]:void 0);return r?r.filter(e=>e.property===t):[]}var mc,hc,gc=o((()=>{mc={avatar:[{property:`borderRadius`,vars:[`--_avatar-radius`]}],banner:[{property:`borderRadius`,vars:[`--_banner-radius`]}],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`}],"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}]},hc={hovercard:`hover-card`,"progressbar-mark":`progress-bar-mark`,textarea:`text-area`}}));function _c(e){return e===`
11
+ `||e===`\r`||e===`\f`}function vc(e){return e===` `||e===` `||_c(e)}function yc(e){return/^[0-9a-fA-F]$/.test(e)}function bc(e){return/^[A-Za-z_]$/.test(e)||e.charCodeAt(0)>=128}function xc(e){return bc(e)||/^[0-9-]$/.test(e)}function Sc(e){return e.replace(/\r\n?|\f/g,`
12
+ `).replace(/\0/g,`�`)}function Cc(e,t){return e[t]===`\\`&&t+1<e.length&&!_c(e[t+1])}function wc(e,t){let n=e[t];if(n===`-`){let n=e[t+1];return n!==void 0&&(n===`-`||bc(n)||Cc(e,t+1))}return n===`\\`?Cc(e,t):n!==void 0&&bc(n)}function Tc(e,t){if(yc(e[t])){let n=t;for(;n<e.length&&n-t<6&&yc(e[n]);)n++;return n<e.length&&vc(e[n])&&n++,n}return t+((e.codePointAt(t)??0)>65535?2:1)}function Ec(e,t){let n=``,r=t;for(;r<e.length;){let t=e[r];if(xc(t))n+=t,r++;else if(Cc(e,r)){let t=Tc(e,r+1);if(yc(e[r+1])){let i=e.slice(r+1,t).trim(),a=parseInt(i,16);n+=a===0||a>1114111||a>=55296&&a<=57343?`�`:String.fromCodePoint(a)}else n+=e.slice(r+1,t);r=t}else break}return{end:r,name:n}}function Dc(e,t){let n=e[t],r=t+1;for(;r<e.length;){let t=e[r];if(t===n)return{end:r+1};if(_c(t))return{reason:`a newline inside a quoted string makes a bad string`};if(t===`\\`){if(r+1>=e.length)break;r=_c(e[r+1])?r+2:Tc(e,r+1);continue}r++}return{reason:`an unclosed ${n} string would swallow the rest of the rule`}}function Oc(e,t){let n=t;for(;n<e.length;){let t=e[n];if(t===`)`)return{end:n+1};if(vc(t)){for(;n<e.length&&vc(e[n]);)n++;if(n>=e.length)break;return e[n]===`)`?{end:n+1}:{reason:`whitespace inside an unquoted url() makes a bad url`}}if(jc.test(t))return{reason:`a non-printable character inside url() makes a bad url`};if(t===`"`||t===`'`||t===`(`)return{reason:`"${t}" inside an unquoted url() makes a bad url; quote the URL instead`};if(t===`\\`){if(!Cc(e,n))return{reason:`a stray backslash inside url() makes a bad url`};n=Tc(e,n+1);continue}n++}return{reason:`an unclosed url( would swallow the rest of the rule`}}function kc(e){let t=Sc(e),n=[],r=0;for(;r<t.length;){let e=t[r];if(e===`/`&&t[r+1]===`*`){let e=t.indexOf(`*/`,r+2);if(e===-1)return`an unclosed /* comment would swallow the rest of the rule`;r=e+2;continue}if(e===`"`||e===`'`){let e=Dc(t,r);if(`reason`in e)return e.reason;r=e.end;continue}if(wc(t,r)){let e=Ec(t,r);if(r=e.end,t[r]===`(`&&e.name.toLowerCase()===`url`){let e=r+1;for(;e<t.length&&vc(t[e]);)e++;if(t[e]===`"`||t[e]===`'`){n.push(`)`),r+=1;continue}let i=Oc(t,e);if(`reason`in i)return i.reason;r=i.end}continue}if(e===`\\`){if(r+1>=t.length)return`a trailing backslash would escape the declaration terminator`;r=_c(t[r+1])?r+1:Tc(t,r+1);continue}if(e===`(`||e===`[`||e===`{`){if(e===`{`&&n.length===0)return`an unquoted "{" would open a nested block`;n.push(Mc[e]),r++;continue}if(e===`)`||e===`]`||e===`}`){if(n.length===0)return e===`}`?`an unquoted "}" would close the rule`:`an unbalanced "${e}" has nothing to close`;let t=n.pop();if(t!==e)return`"${e}" does not close the open "${t===`)`?`(`:t===`]`?`[`:`{`}"`;r++;continue}if(e===`;`&&n.length===0)return`an unquoted ";" would end the declaration`;r++}if(n.length>0){let e=n[n.length-1];return`an unclosed "${e===`)`?`(`:e===`]`?`[`:`{`}" would swallow the rest of the rule`}return null}function Ac(e){let t=Sc(e);if(t.length===0||!wc(t,0))return`a property name must be a CSS identifier`;let{end:n}=Ec(t,0);return n===t.length?null:`a property name must be one CSS identifier; "${t[n]}" cannot appear in one`}var jc,Mc,Nc=o((()=>{jc=/[\x01-\x08\x0b\x0e-\x1f\x7f]/,Mc={"(":`)`,"[":`]`,"{":`}`}}));function Pc(e){return`[data-${Mt}-theme="${e}"]`}function Fc(e){return`[data-${Mt}-media="${e}"]`}function Ic(e,t){return`.${jt}-${e}${t}`}function Lc(e,t,n){let r=Ic(e,t);return n?`:is(${Fc(n)}) :is(${r})`:r}function Rc(e,t){let n=[],r=0,i=0;for(let t=0;t<e.length;t++){let a=e[t];a===`(`?r++:a===`)`?r=Math.max(0,r-1):a===`,`&&r===0&&(n.push(e.slice(i,t).trim()),i=t+1)}n.push(e.slice(i).trim());let a=zc(t);return n.map(e=>`${e}${a}`).join(`, `)}function zc(e){if(!/^:hover(?![-\w])/.test(e)||e.includes(`[aria-disabled`))return e;let t=e.indexOf(`::`);return t===-1?e+pl:e.slice(0,t)+pl+e.slice(t)}function Bc(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function Vc(e){let t={};for(let[n,r]of e)switch(hl[n]??n){case`padding`:{let e=r.trim().split(/\s+/);e.length===1?(t.blockStart=e[0],t.blockEnd=e[0],t.inline=e[0]):e.length===2?(t.blockStart=e[0],t.blockEnd=e[0],t.inline=e[1]):e.length>=3&&(t.blockStart=e[0],t.inline=e[1],t.blockEnd=e[2]);break}case`paddingBlock`:{let e=r.trim().split(/\s+/);t.blockStart=e[0],t.blockEnd=e[1]??e[0];break}case`paddingInline`:{let e=r.trim().split(/\s+/);e.length===1?t.inline=e[0]:(t.inlineStart=e[0],t.inlineEnd=e[1]);break}case`paddingBlockStart`:t.blockStart=r;break;case`paddingBlockEnd`:t.blockEnd=r;break;case`paddingInlineStart`:t.inlineStart=r;break;case`paddingInlineEnd`:t.inlineEnd=r}return t}function Hc(e,t,n=!1){let r=kt(`${e}-padding`),i=[],a=t.inlineStart??t.inline,o=t.inlineEnd??t.inline;if(a!=null&&o!=null&&a===o&&t.blockStart!=null&&t.blockEnd!=null&&a===t.blockStart&&t.blockStart===t.blockEnd?i.push([r,a??``]):(t.inlineStart!=null||t.inlineEnd!=null?(a!=null&&i.push([`${r}-inline-start`,a]),o!=null&&i.push([`${r}-inline-end`,o])):t.inline!=null&&i.push([`${r}-inline`,t.inline]),t.blockStart!=null&&i.push([`${r}-block-start`,t.blockStart]),t.blockEnd!=null&&i.push([`${r}-block-end`,t.blockEnd])),n){let e=new Set(i.map(([e])=>e)),t=e.has(r)?[`${r}-inline`,`${r}-inline-start`,`${r}-inline-end`,`${r}-block-start`,`${r}-block-end`]:e.has(`${r}-inline`)?[`${r}-inline-start`,`${r}-inline-end`]:[];for(let n of t)e.has(n)||i.push([n,`initial`])}return i}function Uc(e){return e?t=>e.push(t):_l}function Wc(e){let t=JSON.stringify(e);return t.length>80?`${t.slice(0,77)}..."`:t}function Gc(e,t,n,r,i){e(`dropped "${t}" in ${r}: ${i} (value: ${Wc(n)})`)}function Kc(e,t,n,r){let i=Ac(e)??kc(t);return i===null||(Gc(r,e,t,n,i),!1)}function qc(e,t,n,r=e=>e){let i=[];for(let[a,o]of e){let e=`${o}`,s=r(a);Kc(s,e,t,n)&&i.push(` ${s}: ${e};`)}return i.join(`
13
+ `)}function Jc(e,t,n){let r=[qc(Object.entries(e.tokens),`${t}tokens`,n),qc(Object.entries(e.localTokens??{}),`${t}localTokens`,n)].filter(e=>e.length>0).join(`
14
+ `);return Object.keys(e.tokens).length>0||Object.keys(e.localTokens??{}).length>0?` :scope {\n${r}\n }`:null}function Yc(e,t,n){return`${e}components.${t}[${JSON.stringify(n)}]`}function Xc(e,t){let n=[],r=Uc(t),i=e=>`var(${e})`,a=Jc(e,``,r);return a!==null&&n.push(a),e.tokens[`--font-family-body`]&&n.push(` :scope {
15
15
  font-family: var(--font-family-body);
16
- }`),e.components&&el(e.components,n,{sink:r}),tl(i,n),nl(e.components||{},n),rl(e.components||{},n),Qc(e.components||{},n),n}function Qc(e,t,{surface:n,inheritedComponents:r,forceAll:i=!1,authoredOnly:a=!1}={}){let o=e.heading,s=o&&typeof o==`object`&&!Array.isArray(o)?o:void 0;if(!s&&!i)return;let c=r?.heading,l=c&&typeof c==`object`?c:void 0;for(let[e,r]of Object.entries(yl)){let i=`weight:${e}`,o=s?$c(s,i):void 0;if(a&&o===void 0)continue;let c=l?$c(l,i):void 0,u=o??c??r,d=Rc(`heading`,Bt(i),n);t.push(` ${d} { font-weight: ${u}; }`)}}function $c(e,t){let n=e[t];if(typeof n!=`object`||!n||Array.isArray(n))return;let r=n.fontWeight;return typeof r==`string`&&Ac(r)===null?r:void 0}function el(e,t,{resetInheritedPaddingSpecificity:n=!1,surface:r,sink:i=vl,location:a=``}={}){for(let[o,s]of Object.entries(e))for(let[e,c]of Object.entries(s)){let s=Object.entries(c);if(s.length===0)continue;let l=Rc(o,Bt(e),r),u=Xc(a,o,e),d=[],f=[];for(let[e,t]of s)e.startsWith(`:`)&&typeof t==`object`?f.push([e,t]):qc(Vc(e),`${t}`,u,i)&&d.push([e,t]);let p=d,m=[],h=!1,g=new Set;for(let[e,t]of d){let n=mc(o,e),r=hl.has(e)&&e!==`padding`?mc(o,`padding`):[];for(let i of[...n,...r])if(i.expand===`container`&&hl.has(e)&&(h=!0),i.replaces&&g.add(e),i.vars)for(let e of i.vars)m.push([e,t]);e in gl&&mc(o,`padding`).some(e=>e.expand===`container`)&&(h=!0)}if(h){let e=d.filter(([e])=>_l.has(e)),t=d.filter(([e])=>!_l.has(e)),r=Uc(o,Hc(e),n);p=[...t,...r]}if(g.size>0&&(p=p.filter(([e])=>!g.has(e))),m.length>0&&(p=[...p,...m]),p.length>0){let e=Jc(p,u,i,Vc);t.push(` ${l} {\n${e}\n }`)}for(let[e,n]of f){let r=Object.entries(n);if(r.length>0){let n=Jc(r,`${u}[${JSON.stringify(e)}]`,i,Vc);t.push(` ${zc(l,e)} {\n${n}\n }`)}}}}function tl(e,t){t.push(` :where(h1, h2, h3, h4, h5, h6) {
16
+ }`),e.components&&$c(e.components,n,{sink:r}),el(i,n),tl(e.components||{},n),nl(e.components||{},n),Zc(e.components||{},n),n}function Zc(e,t,{surface:n,inheritedComponents:r,forceAll:i=!1,authoredOnly:a=!1}={}){let o=e.heading,s=o&&typeof o==`object`&&!Array.isArray(o)?o:void 0;if(!s&&!i)return;let c=r?.heading,l=c&&typeof c==`object`?c:void 0;for(let[e,r]of Object.entries(vl)){let i=`weight:${e}`,o=s?Qc(s,i):void 0;if(a&&o===void 0)continue;let c=l?Qc(l,i):void 0,u=o??c??r,d=Lc(`heading`,Bt(i),n);t.push(` ${d} { font-weight: ${u}; }`)}}function Qc(e,t){let n=e[t];if(typeof n!=`object`||!n||Array.isArray(n))return;let r=n.fontWeight;return typeof r==`string`&&kc(r)===null?r:void 0}function $c(e,t,{resetInheritedPaddingSpecificity:n=!1,surface:r,sink:i=_l,location:a=``}={}){for(let[o,s]of Object.entries(e))for(let[e,c]of Object.entries(s)){let s=Object.entries(c);if(s.length===0)continue;let l=Lc(o,Bt(e),r),u=Yc(a,o,e),d=[],f=[];for(let[e,t]of s)e.startsWith(`:`)&&typeof t==`object`?f.push([e,t]):Kc(Bc(e),`${t}`,u,i)&&d.push([e,t]);let p=d,m=[],h=!1,g=new Set;for(let[e,t]of d){let n=pc(o,e),r=ml.has(e)&&e!==`padding`?pc(o,`padding`):[];for(let i of[...n,...r])if(i.expand===`container`&&ml.has(e)&&(h=!0),i.replaces&&g.add(e),i.vars)for(let e of i.vars)m.push([e,t]);e in hl&&pc(o,`padding`).some(e=>e.expand===`container`)&&(h=!0)}if(h){let e=d.filter(([e])=>gl.has(e)),t=d.filter(([e])=>!gl.has(e)),r=Hc(o,Vc(e),n);p=[...t,...r]}if(g.size>0&&(p=p.filter(([e])=>!g.has(e))),m.length>0&&(p=[...p,...m]),p.length>0){let e=qc(p,u,i,Bc);t.push(` ${l} {\n${e}\n }`)}for(let[e,n]of f){let r=Object.entries(n);if(r.length>0){let n=qc(r,`${u}[${JSON.stringify(e)}]`,i,Bc);t.push(` ${Rc(l,e)} {\n${n}\n }`)}}}}function el(e,t){t.push(` :where(h1, h2, h3, h4, h5, h6) {
17
17
  font-family: var(--font-family-heading);
18
18
  color: var(--color-text-primary);
19
19
  }`);for(let n=1;n<=6;n++)t.push(` :where(h${n}) {
@@ -38,26 +38,26 @@ Error generating stack: `+e.message+`
38
38
  }`),t.push(` :where(hr) {
39
39
  border: none;
40
40
  border-top: 1px solid var(--color-border);
41
- }`)}function nl(e,t,n){let r={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)`},i=`text`in e,a=`heading`in e,o=`link`in e;if(i||a||o)for(let[e,s]of Object.entries(r))i&&t.push(` ${Rc(`text`,Bt(`color:${e}`),n)} { color: ${s}; }`),a&&t.push(` ${Rc(`heading`,Bt(`color:${e}`),n)} { color: ${s}; }`),o&&t.push(` ${Rc(`link`,Bt(`color:${e}`),n)} { color: ${s}; }`)}function rl(e,t,n){if(`text`in e)for(let[e,r]of Object.entries(bl)){let i=Bt(`size:${e}`);t.push(` ${Rc(`text`,i,n)} { font-size: ${r}; }`)}}function il(e,t){let n=Zc(e,t),r=[],i=[];for(let e of n)e.trimStart().startsWith(`:where(`)?r.push(e):i.push(e);return{component:i,prose:r}}function al(e,t){let n=[],r=Fc(e.name),i=Wc(t);for(let t of[`dark`,`light`]){let r=t===`dark`?e.__onDark:e.__onLight;if(!r)continue;let a=t===`dark`?`onDark.`:`onLight.`,o=Object.entries(r.tokens);if(o.length>0){let e=Jc(o,`${a}tokens`,i);n.push(` ${Ic(t)} {\n${e}\n }`)}r.components&&(el(r.components,n,{resetInheritedPaddingSpecificity:!0,surface:t,sink:i,location:a}),nl(r.components,n,t),rl(r.components,n,t),Qc(r.components,n,{surface:t,inheritedComponents:e.components}))}if(n.length===0)return``;let a=n.join(`
41
+ }`)}function tl(e,t,n){let r={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)`},i=`text`in e,a=`heading`in e,o=`link`in e;if(i||a||o)for(let[e,s]of Object.entries(r))i&&t.push(` ${Lc(`text`,Bt(`color:${e}`),n)} { color: ${s}; }`),a&&t.push(` ${Lc(`heading`,Bt(`color:${e}`),n)} { color: ${s}; }`),o&&t.push(` ${Lc(`link`,Bt(`color:${e}`),n)} { color: ${s}; }`)}function nl(e,t,n){if(`text`in e)for(let[e,r]of Object.entries(yl)){let i=Bt(`size:${e}`);t.push(` ${Lc(`text`,i,n)} { font-size: ${r}; }`)}}function rl(e,t){let n=Xc(e,t),r=[],i=[];for(let e of n)e.trimStart().startsWith(`:where(`)?r.push(e):i.push(e);return{component:i,prose:r}}function il(e,t){let n=[],r=Pc(e.name),i=Uc(t);for(let t of[`dark`,`light`]){let r=t===`dark`?e.__onDark:e.__onLight;if(!r)continue;let a=t===`dark`?`onDark.`:`onLight.`,o=Object.entries(r.tokens);if(o.length>0){let e=qc(o,`${a}tokens`,i);n.push(` ${Fc(t)} {\n${e}\n }`)}r.components&&($c(r.components,n,{resetInheritedPaddingSpecificity:!0,surface:t,sink:i,location:a}),tl(r.components,n,t),nl(r.components,n,t),Zc(r.components,n,{surface:t,inheritedComponents:e.components}))}if(n.length===0)return``;let a=n.join(`
42
42
 
43
- `);return`@scope (${r}) to (${pl}) {\n${a}\n}`}function ol(e,t,n){let r=[],i=Yc(e,t,n);return i!==null&&r.push(i),e.components&&(el(e.components,r,{resetInheritedPaddingSpecificity:!0,sink:n,location:t}),nl(e.components,r),rl(e.components,r)),r}function sl(e){let t=e?.heading;return typeof t==`object`&&!!t&&!Array.isArray(t)}function cl(e,t,n){return`@media ${e} {\n @scope (${n}) to (${pl}) {\n${t.map(ul).join(`
43
+ `);return`@scope (${r}) to (${fl}) {\n${a}\n}`}function al(e,t,n){let r=[],i=Jc(e,t,n);return i!==null&&r.push(i),e.components&&($c(e.components,r,{resetInheritedPaddingSpecificity:!0,sink:n,location:t}),tl(e.components,r),nl(e.components,r)),r}function ol(e){let t=e?.heading;return typeof t==`object`&&!!t&&!Array.isArray(t)}function sl(e,t,n){return`@media ${e} {\n @scope (${n}) to (${fl}) {\n${t.map(ll).join(`
44
44
 
45
- `)}\n }\n}`}function ll(e,t){let n=Wc(t),r=e.__adaptations===void 0?void 0:zs(e.name,e.__adaptations,void 0),i=e.__adaptationRules??(r?Zs(e.name,r,e.__axes??{},e.tokens,e.localTokens,e.components):void 0);if(!i||i.length===0)return{prose:``,component:``};let a=Fc(e.name),o=[],s=i.some(e=>sl(e.components));for(let[e,t]of i.entries()){let r=ol(t,`adaptations[${e}].`,n);r.length!==0&&o.push(cl(t.query,r,a))}if(s){let t=[];Qc(e.components??{},t,{forceAll:!0}),o.push(`@scope (${a}) to (${pl}) {\n${t.join(`
45
+ `)}\n }\n}`}function cl(e,t){let n=Uc(t),r=e.__adaptations===void 0?void 0:Rs(e.name,e.__adaptations,void 0),i=e.__adaptationRules??(r?Xs(e.name,r,e.__axes??{},e.tokens,e.localTokens,e.components):void 0);if(!i||i.length===0)return{prose:``,component:``};let a=Pc(e.name),o=[],s=i.some(e=>ol(e.components));for(let[e,t]of i.entries()){let r=al(t,`adaptations[${e}].`,n);r.length!==0&&o.push(sl(t.query,r,a))}if(s){let t=[];Zc(e.components??{},t,{forceAll:!0}),o.push(`@scope (${a}) to (${fl}) {\n${t.join(`
46
46
 
47
- `)}\n}`);for(let e of i){let t=[];Qc(e.components??{},t,{authoredOnly:!0}),t.length>0&&o.push(cl(e.query,t,a))}}return{prose:``,component:o.join(`
47
+ `)}\n}`);for(let e of i){let t=[];Zc(e.components??{},t,{authoredOnly:!0}),t.length>0&&o.push(sl(e.query,t,a))}}return{prose:``,component:o.join(`
48
48
 
49
- `)}}function ul(e){return` ${e}`}function dl(){return`:root {\n${Object.entries(cc).map(([e,t])=>` ${e}: ${t};`).join(`
50
- `)}\n}`}function fl(e,t){let{component:n,prose:r}=il(e,t),i=Fc(e.name),a=pl,o=``;r.length>0&&(o=`@scope (${i}) to (${a}) {\n${r.join(`
49
+ `)}}function ll(e){return` ${e}`}function ul(){return`:root {\n${Object.entries(sc).map(([e,t])=>` ${e}: ${t};`).join(`
50
+ `)}\n}`}function dl(e,t){let{component:n,prose:r}=rl(e,t),i=Pc(e.name),a=fl,o=``;r.length>0&&(o=`@scope (${i}) to (${a}) {\n${r.join(`
51
51
 
52
52
  `)}\n}`);let s=``;n.length>0&&(s=`@scope (${i}) to (${a}) {\n${n.join(`
53
53
 
54
- `)}\n}`);let c=ll(e,t);c.component&&(s=s?`${s}\n\n${c.component}`:c.component);let l=al(e,t);return l&&(s=s?`${s}\n\n${l}`:l),{prose:o,component:s}}var pl,ml,hl,gl,_l,vl,yl,bl,xl=o((()=>{sc(),Vt(),_c(),lc(),Pt(),Pc(),pl=`[data-${Mt}-theme]`,ml=`:where(:not(:disabled,[aria-disabled="true"]))`,hl=new Set([`padding`,`paddingBlock`,`paddingInline`,`paddingBlockStart`,`paddingBlockEnd`,`paddingInlineStart`,`paddingInlineEnd`]),gl={paddingTop:`paddingBlockStart`,paddingBottom:`paddingBlockEnd`},_l=new Set([...hl,...Object.keys(gl)]),vl=e=>{console.warn(`[astryx theme] ${e}`)},yl={normal:`var(--font-weight-normal)`,medium:`var(--font-weight-medium)`,semibold:`var(--font-weight-semibold)`,bold:`var(--font-weight-bold)`},bl={"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)`}})),Sl=o((()=>{xl()}));function Cl(e,t=!1){let n=(0,wl.useCallback)(t=>{let n=window.matchMedia(e);return n.addEventListener(`change`,t),()=>n.removeEventListener(`change`,t)},[e]),r=(0,wl.useCallback)(()=>window.matchMedia(e).matches,[e]),i=(0,wl.useCallback)(()=>t,[t]);return(0,wl.useSyncExternalStore)(n,r,i)}var wl,Tl=o((()=>{wl=u(f(),1)}));function El(){return typeof document>`u`?null:document.documentElement.getAttribute(Ot(`theme`))}function Dl(){return null}function Ol(){return null}function kl(){for(let e of Ll)e()}function Al(e){return Ll.add(e),Ll.size===1&&typeof MutationObserver<`u`&&(Rl=new MutationObserver(kl),Rl.observe(document.documentElement,{attributes:!0,attributeFilter:[Ot(`theme`)]})),()=>{Ll.delete(e),Ll.size===0&&Rl&&(Rl.disconnect(),Rl=null)}}function jl(){return()=>{}}function Ml(e){return(0,Fl.useSyncExternalStore)(e?jl:Al,e?Ol:El,Dl)}function Nl(){let e=(0,Fl.use)(Il),t=Ml(e!=null);return e?.theme.name??t}function Pl(){let e=(0,Fl.use)(Il),t=Ml(e!=null);return e?.theme??dc(t)??void 0}var Fl,Il,Ll,Rl,zl=o((()=>{Fl=u(f(),1),pc(),Pt(),Il=(0,Fl.createContext)(null),Il.displayName=`ThemeContext`,Ll=new Set,Rl=null})),K,Bl,Vl,Hl,Ul=o((()=>{K=G(),Bl={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},Vl={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,width:`1em`,height:`1em`,"aria-hidden":!0},Hl={close:(0,K.jsx)(`svg`,{...Bl,children:(0,K.jsx)(`path`,{d:`M6 6l12 12M6 18L18 6`})}),chevronDown:(0,K.jsx)(`svg`,{...Bl,children:(0,K.jsx)(`path`,{d:`M6 9l6 6 6-6`})}),"numberInput:stepperDown":(0,K.jsx)(`svg`,{...Bl,children:(0,K.jsx)(`path`,{d:`M7.5 9.75l4.5 4.5 4.5-4.5`})}),chevronLeft:(0,K.jsx)(`svg`,{...Bl,children:(0,K.jsx)(`path`,{d:`M15 6l-6 6 6 6`})}),chevronRight:(0,K.jsx)(`svg`,{...Bl,children:(0,K.jsx)(`path`,{d:`M9 6l6 6-6 6`})}),chevronsLeft:(0,K.jsx)(`svg`,{...Bl,children:(0,K.jsx)(`path`,{d:`M18 6l-6 6 6 6M11 6l-6 6 6 6`})}),chevronsRight:(0,K.jsx)(`svg`,{...Bl,children:(0,K.jsx)(`path`,{d:`M6 6l6 6-6 6M13 6l6 6-6 6`})}),check:(0,K.jsx)(`svg`,{...Bl,children:(0,K.jsx)(`path`,{d:`M5 13l4 4L19 7`})}),success:(0,K.jsx)(`svg`,{...Vl,children:(0,K.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:(0,K.jsx)(`svg`,{...Vl,children:(0,K.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:(0,K.jsx)(`svg`,{...Vl,children:(0,K.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:(0,K.jsx)(`svg`,{...Vl,children:(0,K.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:(0,K.jsxs)(`svg`,{...Bl,children:[(0,K.jsx)(`rect`,{x:`3`,y:`4`,width:`18`,height:`18`,rx:`2`}),(0,K.jsx)(`path`,{d:`M16 2v4M8 2v4M3 10h18`})]}),clock:(0,K.jsxs)(`svg`,{...Bl,children:[(0,K.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,K.jsx)(`path`,{d:`M12 7v5l3 3`})]}),externalLink:(0,K.jsxs)(`svg`,{...Bl,children:[(0,K.jsx)(`path`,{d:`M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6`}),(0,K.jsx)(`path`,{d:`M15 3h6v6`}),(0,K.jsx)(`path`,{d:`M10 14L21 3`})]}),menu:(0,K.jsx)(`svg`,{...Bl,strokeWidth:2,children:(0,K.jsx)(`path`,{d:`M4 6h16M4 12h16M4 18h16`})}),moreHorizontal:(0,K.jsxs)(`svg`,{...Vl,children:[(0,K.jsx)(`circle`,{cx:`5`,cy:`12`,r:`1.5`}),(0,K.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1.5`}),(0,K.jsx)(`circle`,{cx:`19`,cy:`12`,r:`1.5`})]}),search:(0,K.jsxs)(`svg`,{...Bl,children:[(0,K.jsx)(`circle`,{cx:`11`,cy:`11`,r:`8`}),(0,K.jsx)(`path`,{d:`M21 21l-4.35-4.35`})]}),arrowUp:(0,K.jsx)(`svg`,{...Bl,children:(0,K.jsx)(`path`,{d:`M12 19V5m0 0l-7 7m7-7l7 7`})}),arrowDown:(0,K.jsx)(`svg`,{...Bl,children:(0,K.jsx)(`path`,{d:`M12 5v14m0 0l7-7m-7 7l-7-7`})}),arrowsUpDown:(0,K.jsx)(`svg`,{...Bl,children:(0,K.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:(0,K.jsx)(`svg`,{...Bl,children:(0,K.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:(0,K.jsx)(`svg`,{...Bl,children:(0,K.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:(0,K.jsx)(`svg`,{...Bl,children:(0,K.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:(0,K.jsxs)(`svg`,{...Bl,children:[(0,K.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`}),(0,K.jsx)(`path`,{d:`M16 18v2a2 2 0 01-2 2H6a2 2 0 01-2-2V9a2 2 0 012-2h2`})]}),checkDouble:(0,K.jsxs)(`svg`,{...Bl,children:[(0,K.jsx)(`path`,{d:`M2 13l4 4L14 7`}),(0,K.jsx)(`path`,{d:`M9 13l4 4L21 7`})]}),wrench:(0,K.jsx)(`svg`,{...Bl,children:(0,K.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:(0,K.jsx)(`svg`,{...Vl,children:(0,K.jsx)(`rect`,{x:`6`,y:`6`,width:`12`,height:`12`,rx:`2`})}),microphone:(0,K.jsxs)(`svg`,{...Bl,children:[(0,K.jsx)(`path`,{d:`M12 2a3 3 0 00-3 3v6a3 3 0 006 0V5a3 3 0 00-3-3z`}),(0,K.jsx)(`path`,{d:`M19 10v1a7 7 0 01-14 0v-1`}),(0,K.jsx)(`path`,{d:`M12 18v4m-4 0h8`})]})}}));function Wl(e){return e==null?null:typeof e==`string`?dc(e)?.icons??null:e.icons??null}function Gl(e,t){return Wl(t)?.[e]??Kl[e]??Hl[e]}var Kl,ql=o((()=>{Ul(),pc(),Kl={}}));function Jl(e){let t=(0,Yl.use)(Xl);return e??t??`md`}var Yl,Xl,Zl,Ql=o((()=>{Yl=u(f(),1),Ar(),Xl=Tr(null),Xl.displayName=`IconDefaultSizeContext`,Zl=Xl.Provider})),$l,eu,tu=o((()=>{$l={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}},eu={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}}}));function nu(e){return e!=null&&e!==``?{role:`img`,"aria-label":e}:{"aria-hidden":`true`}}function ru({icon:e,color:t=`inherit`,size:n,label:r,ref:i,className:a,style:o,xstyle:s,...c}){let l=Jl(n),u=nu(r);return typeof e==`string`?(0,ou.jsx)(iu,{name:e,color:t,size:l,a11yProps:u,className:a,style:o,xstyle:s,spanProps:c}):(0,ou.jsx)(e,{ref:i,...u,...U(V(`icon`,{size:l,color:t}),z(su.root,cu[t],$l[l],s),a??void 0,o),...c})}function iu({name:e,color:t,size:n,a11yProps:r,className:i,style:a,xstyle:o,spanProps:s}){let c=Gl(e,Nl());if(c==null)return null;let l=s??{};return(0,ou.jsx)(`span`,{...r,...l,...U(V(`icon`,{size:n,color:t}),z(su.span,cu[t],eu[n],o),i??void 0,a),children:c})}function au(e,t){return typeof e==`string`||typeof e==`function`||typeof e==`object`&&e&&`render`in e?(0,ou.jsx)(ru,{icon:e,...t}):e}var ou,su,cu,lu=o((()=>{f(),B(),zl(),ql(),W(),H(),Ql(),tu(),ou=G(),su={root:{kmuXW:`x2lah0s`,$$css:!0},span:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,$$css:!0}},cu={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}},ru.displayName=`Icon`})),uu=o((()=>{lu(),zl(),ql()})),du=o((()=>{Ca(),Aa()}));function fu({children:e,as:t=`span`,ref:n,...r}){return(0,pu.createElement)(t,{ref:n,...r,className:`x10l6tqk x1i1rx1s xjm9jq1 xkdpibf x1717udv xb3r6kr xzpqnlu xuxw1ft xng3xce x13vifvy x1o0tod x47corl x87ps6o`},e)}var pu,mu=o((()=>{pu=u(f(),1),fu.displayName=`VisuallyHidden`})),hu=o((()=>{mu()})),gu,_u,vu=o((()=>{gu=u(f(),1),_u=(0,gu.createContext)(null),_u.displayName=`LinkContext`}));function yu(e){return e.replace(/[\x00-\x1f\x7f]/g,``).trim()}function bu(e){let t=yu(e),n=t.toLowerCase();return n.startsWith(`javascript:`)||n.startsWith(`vbscript:`)||n.startsWith(`data:text/html`)?null:t}function xu(e){return bu(e)!==null}function Su(e){if(e==null)return!0;if(typeof e==`string`)return xu(e);if(typeof e!=`object`)return!1;let{pathname:t,href:n,protocol:r,host:i,hostname:a}=e;for(let e of[t,n,r,i,a])if(e!=null&&typeof e!=`string`)return!1;if(typeof t==`string`&&!xu(t)||typeof n==`string`&&!xu(n))return!1;if(typeof r==`string`&&r!==``){let e=yu(r),n=e.endsWith(`:`)?e:`${e}:`;if(!xu(n)||!xu(`${n}${i||a||``}${typeof t==`string`?t:``}`))return!1}return!0}var Cu=o((()=>{}));function wu(e){function t({href:t,to:n,ref:r,...i}){return!Su(t)||!Su(n)?(0,Eu.createElement)(`a`,{ref:r,...i}):e===`a`?(0,Eu.createElement)(`a`,{ref:r,...i,href:t}):(0,Eu.createElement)(e,{ref:r,...i,href:t,to:n??t})}return t.displayName=`SafeLink(${typeof e==`string`?e:e.displayName||e.name||`Component`})`,t}function Tu(e){let t=(0,Eu.use)(_u),n=e??t?.component??`a`;return(0,Eu.useMemo)(()=>wu(n),[n])}var Eu,Du=o((()=>{Eu=u(f(),1),vu(),Cu()}));function Ou(e,t){if(e!==`_blank`)return{target:e,rel:t};let n=t?.split(/\s+/).filter(Boolean)??[];for(let e of ku)n.includes(e)||n.push(e);return{target:e,rel:n.join(` `)}}var ku,Au=o((()=>{ku=[`noopener`,`noreferrer`]}));function ju(){return(0,Mu.use)(Nu)}var Mu,Nu,Pu=o((()=>{Mu=u(f(),1),Nu=(0,Mu.createContext)(null),Nu.displayName=`InteractiveRoleContext`}));function Fu({href:e,onClick:t,isDisabled:n=!1}){let r=ju();return e!=null&&!n?`link`:t==null?r??`inert`:`button`}var Iu=o((()=>{Pu()})),Lu,Ru=o((()=>{Et(),`${xt[`--color-overlay-hover`]}${xt[`--color-overlay-hover`]}`,`${xt[`--color-overlay-pressed`]}${xt[`--color-overlay-pressed`]}`,`${xt[`--color-neutral`]}${xt[`--color-neutral`]}`,Lu={backgroundColor:{kWkggS:`xjbqb8w x1anq1lc xoevpu5 xprvw0a`,$$css:!0},backgroundImage:{kKwaWg:`x7uyq82 xmvprkv xetgvay`,$$css:!0},backgroundImageOnNeutral:{kKwaWg:`x14bno8m xzmimnh x1otsd3y xo3fi6e`,$$css:!0},pressedBackgroundColor:{kWkggS:`x1anq1lc`,$$css:!0}}}));function zu(e,t){let n=t&&t.cache?t.cache:Yu,r=t&&t.serializer?t.serializer:qu;return(t&&t.strategy?t.strategy:Wu)(e,{cache:n,serializer:r})}function Bu(e){return e==null||typeof e==`number`||typeof e==`boolean`}function Vu(e,t,n,r){let i=Bu(r)?r:n(r),a=t.get(i);return a===void 0&&(a=e.call(this,r),t.set(i,a)),a}function Hu(e,t,n){let r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return a===void 0&&(a=e.apply(this,r),t.set(i,a)),a}function Uu(e,t,n,r,i){return n.bind(t,e,r,i)}function Wu(e,t){let n=e.length===1?Vu:Hu;return Uu(e,this,n,t.cache.create(),t.serializer)}function Gu(e,t){return Uu(e,this,Hu,t.cache.create(),t.serializer)}function Ku(e,t){return Uu(e,this,Vu,t.cache.create(),t.serializer)}var qu,Ju,Yu,Xu,Zu=o((()=>{qu=function(){return JSON.stringify(arguments)},Ju=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}},Yu={create:function(){return new Ju}},Xu={variadic:Gu,monadic:Ku}}));function Qu(e){let t={};return e.replace(od,e=>{let n=e.length;switch(e[0]){case`G`:t.era=n===4?`long`:n===5?`narrow`:`short`;break;case`y`:t.year=n===2?`2-digit`:`numeric`;break;case`Y`:case`u`:case`U`:case`r`:throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case`q`:case`Q`:throw RangeError("`q/Q` (quarter) patterns are not supported");case`M`:case`L`:t.month=[`numeric`,`2-digit`,`short`,`long`,`narrow`][n-1];break;case`w`:case`W`:throw RangeError("`w/W` (week) patterns are not supported");case`d`:t.day=[`numeric`,`2-digit`][n-1];break;case`D`:case`F`:case`g`:throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case`E`:t.weekday=n===4?`long`:n===5?`narrow`:`short`;break;case`e`:if(n<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-3];break;case`c`:if(n<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-3];break;case`a`:t.hour12=!0;break;case`b`:case`B`:throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case`h`:t.hourCycle=`h12`,t.hour=[`numeric`,`2-digit`][n-1];break;case`H`:t.hourCycle=`h23`,t.hour=[`numeric`,`2-digit`][n-1];break;case`K`:t.hourCycle=`h11`,t.hour=[`numeric`,`2-digit`][n-1];break;case`k`:t.hourCycle=`h24`,t.hour=[`numeric`,`2-digit`][n-1];break;case`j`:case`J`:case`C`:throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case`m`:t.minute=[`numeric`,`2-digit`][n-1];break;case`s`:t.second=[`numeric`,`2-digit`][n-1];break;case`S`:case`A`:throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case`z`:t.timeZoneName=n<4?`short`:`long`;break;case`Z`:case`O`:case`v`:case`V`:case`X`:case`x`:throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return``}),t}function $u(e){if(e.length===0)throw Error(`Number skeleton cannot be empty`);let t=e.split(sd).filter(e=>e.length>0),n=[];for(let e of t){let t=e.split(`/`);if(t.length===0)throw Error(`Invalid number skeleton`);let[r,...i]=t;for(let e of i)if(e.length===0)throw Error(`Invalid number skeleton`);n.push({stem:r,options:i})}return n}function ed(e){return e.replace(/^(.*?)-/,``)}function td(e){let t={};return e[e.length-1]===`r`?t.roundingPriority=`morePrecision`:e[e.length-1]===`s`&&(t.roundingPriority=`lessPrecision`),e.replace(ld,function(e,n,r){return typeof r==`string`?r===`+`?t.minimumSignificantDigits=n.length:n[0]===`#`?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof r==`string`?r.length:0)):(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length),``}),t}function nd(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 rd(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){let n=e.slice(0,2);if(n===`+!`?(t.signDisplay=`always`,e=e.slice(2)):n===`+?`&&(t.signDisplay=`exceptZero`,e=e.slice(2)),!dd.test(e))throw Error(`Malformed concise eng/scientific notation`);t.minimumIntegerDigits=e.length}return t}function id(e){return nd(e)||{}}function ad(e){let t={};for(let n of e){switch(n.stem){case`percent`:case`%`:t.style=`percent`;continue;case`%x100`:t.style=`percent`,t.scale=100;continue;case`currency`:t.style=`currency`,t.currency=n.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=ed(n.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`,...n.options.reduce((e,t)=>({...e,...id(t)}),{})};continue;case`engineering`:t={...t,notation:`engineering`,...n.options.reduce((e,t)=>({...e,...id(t)}),{})};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(n.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(n.options.length>1)throw RangeError(`integer-width stems only accept a single optional option`);n.options[0].replace(ud,function(e,n,r,i,a,o){if(n)t.minimumIntegerDigits=r.length;else if(i&&a)throw Error(`We currently do not support maximum integer digits`);else if(o)throw Error(`We currently do not support exact integer digits`);return``});continue}if(dd.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(cd.test(n.stem)){if(n.options.length>1)throw RangeError(`Fraction-precision stems only accept a single optional option`);n.stem.replace(cd,function(e,n,r,i,a,o){return r===`*`?t.minimumFractionDigits=n.length:i&&i[0]===`#`?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),``});let e=n.options[0];e===`w`?t={...t,trailingZeroDisplay:`stripIfInteger`}:e&&(t={...t,...td(e)});continue}if(ld.test(n.stem)){t={...t,...td(n.stem)};continue}let e=nd(n.stem);e&&(t={...t,...e});let r=rd(n.stem);r&&(t={...t,...r})}return t}var od,sd,cd,ld,ud,dd,fd=o((()=>{od=/(?:[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,sd=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,cd=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ld=/^(@+)?(\+|#+)?[rs]?$/g,ud=/(\*)(0+)|(#+)(0+)|(0+)/g,dd=/^(0+)$/}));function pd(e){return e.type===0}function md(e){return e.type===1}function hd(e){return e.type===2}function gd(e){return e.type===3}function _d(e){return e.type===4}function vd(e){return e.type===5}function yd(e){return e.type===6}function bd(e){return e.type===7}function xd(e){return e.type===8}function Sd(e){return!!(e&&typeof e==`object`&&e.type===0)}function Cd(e){return!!(e&&typeof e==`object`&&e.type===1)}function wd(e,t){let n=``;for(let r=0;r<e.length;r++){let i=e.charAt(r);if(i===`j`){let a=0;for(;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;let o=1+(a&1),s=a<2?1:3+(a>>1),c=Td(t);for((c==`H`||c==`k`)&&(s=0);s-->0;)n+=`a`;for(;o-->0;)n=c+n}else n+=i===`J`?`H`:i}return n}function Td(e){let t=e.hourCycle;if(t===void 0){let n=e;t=n.getHourCycles?.()[0]??n.hourCycles?.[0]}if(t)switch(t){case`h24`:return`k`;case`h23`:return`H`;case`h12`:return`h`;case`h11`:return`K`;default:throw Error(`Invalid hourCycle`)}let n=e.language,r;return n!==`root`&&(r=e.maximize().region),(Ld[`${n}-${r}`]||Ld[r||``]||Ld[n||``]||Ld[`${n}-001`]||Ld[`001`])[0].charAt(0)}function Ed(e,t){return{start:e,end:t}}function Dd(e,t){return Kd.lastIndex=t,Kd.exec(e)[1]??``}function Od(e){if(e.length===0)return null;let t=1,n=1;for(let r=0;r<e.length;){let i=e.charCodeAt(r);switch(i){case 35:case 39:case 60:case 123:case 125:return null}if(i===10)t++,n=1,r++;else if(n++,i>=55296&&i<=56319&&r+1<e.length){let t=e.charCodeAt(r+1);r+=t>=56320&&t<=57343?2:1}else r++}return{offset:e.length,line:t,column:n}}function kd(e){return e>=97&&e<=122||e>=65&&e<=90}function Ad(e){return kd(e)||e===47}function jd(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 Md(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Nd(e){e.forEach(e=>{if(delete e.location,vd(e)||yd(e))for(let t in e.options)delete e.options[t].location,Nd(e.options[t].value);else hd(e)&&Sd(e.style)||(gd(e)||_d(e))&&Cd(e.style)?delete e.style.location:xd(e)&&Nd(e.children)})}function Pd(e,t={}){t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t};let n=new qd(e,t).parse();if(n.err){let e=SyntaxError(Fd[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return t?.captureLocation||Nd(n.val),n.val}var Fd,Id,Ld,Rd,zd,Bd,Vd,Hd,Ud,Wd,Gd,Kd,qd,Jd=o((()=>{fd(),Fd=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}({}),Id=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ld={"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`]},Rd=RegExp(`^${Id.source}*`),zd=RegExp(`${Id.source}*$`),Bd=!!Object.fromEntries,Vd=!!String.prototype.trimStart,Hd=!!String.prototype.trimEnd,Ud=Bd?Object.fromEntries:function(e){let t={};for(let[n,r]of e)t[n]=r;return t},Wd=Vd?function(e){return e.trimStart()}:function(e){return e.replace(Rd,``)},Gd=Hd?function(e){return e.trimEnd()}:function(e){return e.replace(zd,``)},Kd=RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`),qd=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){let e=this.message.charCodeAt(0);if(e!==35&&e!==39&&e!==60&&e!==123&&e!==125){let e=Od(this.message);if(e){let t=this.clonePosition();return this.position=e,{val:[{type:0,value:this.message,location:Ed(t,this.clonePosition())}],err:null}}}}return this.parseMessage(0,``,!1)}parseMessage(e,t,n){let r=[];for(;!this.isEOF();){let i=this.char();if(i===123){let t=this.parseArgument(e,n);if(t.err)return t;r.push(t.val)}else if(i===125&&e>0)break;else if(i===35&&(t===`plural`||t===`selectordinal`)){let e=this.clonePosition();this.bump(),r.push({type:7,location:Ed(e,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(26,Ed(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&kd(this.peek()||0)){let n=this.parseTag(e,t);if(n.err)return n;r.push(n.val)}else{let n=this.parseLiteral(e,t);if(n.err)return n;r.push(n.val)}}return{val:r,err:null}}parseTag(e,t){let n=this.clonePosition();this.bump();let r=this.parseTagName();if(this.bumpSpace(),this.bumpIf(`/>`))return{val:{type:0,value:`<${r}/>`,location:Ed(n,this.clonePosition())},err:null};if(this.bumpIf(`>`)){let i=this.parseMessage(e+1,t,!0);if(i.err)return i;let a=i.val,o=this.clonePosition();if(this.bumpIf(`</`)){if(this.isEOF()||!kd(this.char()))return this.error(23,Ed(o,this.clonePosition()));let e=this.clonePosition();return r===this.parseTagName()?(this.bumpSpace(),this.bumpIf(`>`)?{val:{type:8,value:r,children:a,location:Ed(n,this.clonePosition())},err:null}:this.error(23,Ed(o,this.clonePosition()))):this.error(26,Ed(e,this.clonePosition()))}return this.error(27,Ed(n,this.clonePosition()))}return this.error(23,Ed(n,this.clonePosition()))}parseTagName(){let e=this.offset();for(this.bump();!this.isEOF()&&jd(this.char());)this.bump();return this.message.slice(e,this.offset())}parseLiteral(e,t){let n=this.clonePosition(),r=``;for(;;){let n=this.tryParseQuote(t);if(n){r+=n;continue}let i=this.tryParseUnquoted(e,t);if(i){r+=i;continue}let a=this.tryParseLeftAngleBracket();if(a){r+=a;continue}break}let i=Ed(n,this.clonePosition());return{val:{type:0,value:r,location:i},err:null}}tryParseLeftAngleBracket(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Ad(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();let t=[this.char()];for(this.bump();!this.isEOF();){let e=this.char();if(e===39){if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;let n=this.char();return n===60||n===123||n===35&&(t===`plural`||t===`selectordinal`)||n===125&&e>0?null:(this.bump(),String.fromCodePoint(n))}parseArgument(e,t){let n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,Ed(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(2,Ed(n,this.clonePosition()));let r=this.parseIdentifierIfPossible().value;if(!r)return this.error(3,Ed(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,Ed(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:r,location:Ed(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(1,Ed(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(3,Ed(n,this.clonePosition()))}}parseIdentifierIfPossible(){let e=this.clonePosition(),t=this.offset(),n=Dd(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:Ed(e,this.clonePosition())}}parseArgumentOptions(e,t,n,r){let i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(a){case``:return this.error(4,Ed(i,o));case`number`:case`date`:case`time`:{this.bumpSpace();let e=null;if(this.bumpIf(`,`)){this.bumpSpace();let t=this.clonePosition(),n=this.parseSimpleArgStyleIfPossible();if(n.err)return n;let r=Gd(n.val);if(r.length===0)return this.error(6,Ed(this.clonePosition(),this.clonePosition()));e={style:r,styleLocation:Ed(t,this.clonePosition())}}let t=this.tryParseArgumentClose(r);if(t.err)return t;let i=Ed(r,this.clonePosition());if(e&&e.style.startsWith(`::`)){let t=Wd(e.style.slice(2));if(a===`number`){let r=this.parseNumberSkeletonFromString(t,e.styleLocation);return r.err?r:{val:{type:2,value:n,location:i,style:r.val},err:null}}{if(t.length===0)return this.error(10,i);let r=t;this.locale&&(r=wd(t,this.locale));let o={type:1,pattern:r,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?Qu(r):{}};return{val:{type:a===`date`?3:4,value:n,location:i,style:o},err:null}}}return{val:{type:a===`number`?2:a===`date`?3:4,value:n,location:i,style:e?.style??null},err:null}}case`plural`:case`selectordinal`:case`select`:{let i=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(`,`))return this.error(12,Ed(i,{...i}));this.bumpSpace();let o=this.parseIdentifierIfPossible(),s=0;if(a!==`select`&&o.value===`offset`){if(!this.bumpIf(`:`))return this.error(13,Ed(this.clonePosition(),this.clonePosition()));this.bumpSpace();let e=this.tryParseDecimalInteger(13,14);if(e.err)return e;this.bumpSpace(),o=this.parseIdentifierIfPossible(),s=e.val}let c=this.tryParsePluralOrSelectOptions(e,a,t,o);if(c.err)return c;let l=this.tryParseArgumentClose(r);if(l.err)return l;let u=Ed(r,this.clonePosition());return a===`select`?{val:{type:5,value:n,options:Ud(c.val),location:u},err:null}:{val:{type:6,value:n,options:Ud(c.val),offset:s,pluralType:a===`plural`?`cardinal`:`ordinal`,location:u},err:null}}default:return this.error(5,Ed(i,o))}}tryParseArgumentClose(e){return this.isEOF()||this.char()!==125?this.error(1,Ed(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0,t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil(`'`))return this.error(11,Ed(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(e>0)--e;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 n=[];try{n=$u(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?ad(n):{}},err:null}}tryParsePluralOrSelectOptions(e,t,n,r){let i=!1,a=[],o=new Set,{value:s,location:c}=r;for(;;){if(s.length===0){let e=this.clonePosition();if(t!==`select`&&this.bumpIf(`=`)){let t=this.tryParseDecimalInteger(16,19);if(t.err)return t;c=Ed(e,this.clonePosition()),s=this.message.slice(e.offset,this.offset())}else break}if(o.has(s))return this.error(t===`select`?21:20,c);s===`other`&&(i=!0),this.bumpSpace();let r=this.clonePosition();if(!this.bumpIf(`{`))return this.error(t===`select`?17:18,Ed(this.clonePosition(),this.clonePosition()));let l=this.parseMessage(e+1,t,n);if(l.err)return l;let u=this.tryParseArgumentClose(r);if(u.err)return u;a.push([s,{value:l.val,location:Ed(r,this.clonePosition())}]),o.add(s),this.bumpSpace(),{value:s,location:c}=this.parseIdentifierIfPossible()}return a.length===0?this.error(t===`select`?15:16,Ed(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(22,Ed(this.clonePosition(),this.clonePosition())):{val:a,err:null}}tryParseDecimalInteger(e,t){let n=1,r=this.clonePosition();this.bumpIf(`+`)||this.bumpIf(`-`)&&(n=-1);let i=!1,a=0;for(;!this.isEOF();){let e=this.char();if(e>=48&&e<=57)i=!0,a=a*10+(e-48),this.bump();else break}let o=Ed(r,this.clonePosition());return i?(a*=n,Number.isSafeInteger(a)?{val:a,err:null}:this.error(t,o)):this.error(e,o)}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(){let e=this.position.offset;if(e>=this.message.length)throw Error(`out of bound`);let 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;let 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){let t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!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);;){let 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()&&Md(this.char());)this.bump()}peek(){if(this.isEOF())return null;let e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}}}));function Yd(e){return e.length<2?e:e.reduce((e,t)=>{let n=e[e.length-1];return!n||n.type!==0||t.type!==0?e.push(t):n.value+=t.value,e},[])}function Xd(e){return typeof e==`function`}function Zd(e,t,n,r,i,a,o){if(e.length===1&&pd(e[0]))return[{type:0,value:e[0].value}];let s=[];for(let c of e){if(pd(c)){s.push({type:0,value:c.value});continue}if(bd(c)){typeof a==`number`&&s.push({type:0,value:n.getNumberFormat(t).format(a)});continue}let{value:e}=c;if(!(i&&e in i))throw new of(e,o);let l=i[e];if(md(c)){(!l||typeof l==`string`||typeof l==`number`||typeof l==`bigint`)&&(l=typeof l==`string`||typeof l==`number`||typeof l==`bigint`?String(l):``),s.push({type:typeof l==`string`?0:1,value:l});continue}if(gd(c)){let e=typeof c.style==`string`?r.date[c.style]:Cd(c.style)?c.style.parsedOptions:void 0;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)});continue}if(_d(c)){let e=typeof c.style==`string`?r.time[c.style]:Cd(c.style)?c.style.parsedOptions:r.time.medium;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)});continue}if(hd(c)){let e=typeof c.style==`string`?r.number[c.style]:Sd(c.style)?c.style.parsedOptions:void 0;if(e&&e.scale){let t=e.scale||1;if(typeof l==`bigint`){if(!Number.isInteger(t))throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);l*=BigInt(t)}else l*=t}s.push({type:0,value:n.getNumberFormat(t,e).format(l)});continue}if(xd(c)){let{children:e,value:l}=c,u=i[l];if(!Xd(u))throw new af(l,`function`,o);let d=u(Zd(e,t,n,r,i,a).map(e=>e.value));Array.isArray(d)||(d=[d]),s.push(...d.map(e=>({type:typeof e==`string`?0:1,value:e})))}if(vd(c)){let e=l,a=(Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0)||c.options.other;if(!a)throw new rf(c.value,l,Object.keys(c.options),o);s.push(...Zd(a.value,t,n,r,i));continue}if(yd(c)){let e=`=${l}`,a=Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0;if(!a){if(!Intl.PluralRules)throw new nf(`Intl.PluralRules is not available in this environment.
54
+ `)}\n}`);let c=cl(e,t);c.component&&(s=s?`${s}\n\n${c.component}`:c.component);let l=il(e,t);return l&&(s=s?`${s}\n\n${l}`:l),{prose:o,component:s}}var fl,pl,ml,hl,gl,_l,vl,yl,bl=o((()=>{oc(),Vt(),gc(),cc(),Pt(),Nc(),fl=`[data-${Mt}-theme]`,pl=`:where(:not(:disabled,[aria-disabled="true"]))`,ml=new Set([`padding`,`paddingBlock`,`paddingInline`,`paddingBlockStart`,`paddingBlockEnd`,`paddingInlineStart`,`paddingInlineEnd`]),hl={paddingTop:`paddingBlockStart`,paddingBottom:`paddingBlockEnd`},gl=new Set([...ml,...Object.keys(hl)]),_l=e=>{console.warn(`[astryx theme] ${e}`)},vl={normal:`var(--font-weight-normal)`,medium:`var(--font-weight-medium)`,semibold:`var(--font-weight-semibold)`,bold:`var(--font-weight-bold)`},yl={"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)`}})),xl=o((()=>{bl()}));function Sl(e,t=!1){let n=(0,Cl.useCallback)(t=>{let n=window.matchMedia(e);return n.addEventListener(`change`,t),()=>n.removeEventListener(`change`,t)},[e]),r=(0,Cl.useCallback)(()=>window.matchMedia(e).matches,[e]),i=(0,Cl.useCallback)(()=>t,[t]);return(0,Cl.useSyncExternalStore)(n,r,i)}var Cl,wl=o((()=>{Cl=u(f(),1)}));function Tl(){return typeof document>`u`?null:document.documentElement.getAttribute(Ot(`theme`))}function El(){return null}function Dl(){return null}function Ol(){for(let e of Il)e()}function kl(e){return Il.add(e),Il.size===1&&typeof MutationObserver<`u`&&(Ll=new MutationObserver(Ol),Ll.observe(document.documentElement,{attributes:!0,attributeFilter:[Ot(`theme`)]})),()=>{Il.delete(e),Il.size===0&&Ll&&(Ll.disconnect(),Ll=null)}}function Al(){return()=>{}}function jl(e){return(0,Pl.useSyncExternalStore)(e?Al:kl,e?Dl:Tl,El)}function Ml(){let e=(0,Pl.use)(Fl),t=jl(e!=null);return e?.theme.name??t}function Nl(){let e=(0,Pl.use)(Fl),t=jl(e!=null);return e?.theme??uc(t)??void 0}var Pl,Fl,Il,Ll,Rl=o((()=>{Pl=u(f(),1),fc(),Pt(),Fl=(0,Pl.createContext)(null),Fl.displayName=`ThemeContext`,Il=new Set,Ll=null})),K,zl,Bl,Vl,Hl=o((()=>{K=G(),zl={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},Bl={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,width:`1em`,height:`1em`,"aria-hidden":!0},Vl={close:(0,K.jsx)(`svg`,{...zl,children:(0,K.jsx)(`path`,{d:`M6 6l12 12M6 18L18 6`})}),chevronDown:(0,K.jsx)(`svg`,{...zl,children:(0,K.jsx)(`path`,{d:`M6 9l6 6 6-6`})}),"numberInput:stepperDown":(0,K.jsx)(`svg`,{...zl,children:(0,K.jsx)(`path`,{d:`M7.5 9.75l4.5 4.5 4.5-4.5`})}),chevronLeft:(0,K.jsx)(`svg`,{...zl,children:(0,K.jsx)(`path`,{d:`M15 6l-6 6 6 6`})}),chevronRight:(0,K.jsx)(`svg`,{...zl,children:(0,K.jsx)(`path`,{d:`M9 6l6 6-6 6`})}),chevronsLeft:(0,K.jsx)(`svg`,{...zl,children:(0,K.jsx)(`path`,{d:`M18 6l-6 6 6 6M11 6l-6 6 6 6`})}),chevronsRight:(0,K.jsx)(`svg`,{...zl,children:(0,K.jsx)(`path`,{d:`M6 6l6 6-6 6M13 6l6 6-6 6`})}),check:(0,K.jsx)(`svg`,{...zl,children:(0,K.jsx)(`path`,{d:`M5 13l4 4L19 7`})}),success:(0,K.jsx)(`svg`,{...Bl,children:(0,K.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:(0,K.jsx)(`svg`,{...Bl,children:(0,K.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:(0,K.jsx)(`svg`,{...Bl,children:(0,K.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:(0,K.jsx)(`svg`,{...Bl,children:(0,K.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:(0,K.jsxs)(`svg`,{...zl,children:[(0,K.jsx)(`rect`,{x:`3`,y:`4`,width:`18`,height:`18`,rx:`2`}),(0,K.jsx)(`path`,{d:`M16 2v4M8 2v4M3 10h18`})]}),clock:(0,K.jsxs)(`svg`,{...zl,children:[(0,K.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,K.jsx)(`path`,{d:`M12 7v5l3 3`})]}),externalLink:(0,K.jsxs)(`svg`,{...zl,children:[(0,K.jsx)(`path`,{d:`M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6`}),(0,K.jsx)(`path`,{d:`M15 3h6v6`}),(0,K.jsx)(`path`,{d:`M10 14L21 3`})]}),menu:(0,K.jsx)(`svg`,{...zl,strokeWidth:2,children:(0,K.jsx)(`path`,{d:`M4 6h16M4 12h16M4 18h16`})}),moreHorizontal:(0,K.jsxs)(`svg`,{...Bl,children:[(0,K.jsx)(`circle`,{cx:`5`,cy:`12`,r:`1.5`}),(0,K.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1.5`}),(0,K.jsx)(`circle`,{cx:`19`,cy:`12`,r:`1.5`})]}),search:(0,K.jsxs)(`svg`,{...zl,children:[(0,K.jsx)(`circle`,{cx:`11`,cy:`11`,r:`8`}),(0,K.jsx)(`path`,{d:`M21 21l-4.35-4.35`})]}),arrowUp:(0,K.jsx)(`svg`,{...zl,children:(0,K.jsx)(`path`,{d:`M12 19V5m0 0l-7 7m7-7l7 7`})}),arrowDown:(0,K.jsx)(`svg`,{...zl,children:(0,K.jsx)(`path`,{d:`M12 5v14m0 0l7-7m-7 7l-7-7`})}),arrowsUpDown:(0,K.jsx)(`svg`,{...zl,children:(0,K.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:(0,K.jsx)(`svg`,{...zl,children:(0,K.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:(0,K.jsx)(`svg`,{...zl,children:(0,K.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:(0,K.jsx)(`svg`,{...zl,children:(0,K.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:(0,K.jsxs)(`svg`,{...zl,children:[(0,K.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`}),(0,K.jsx)(`path`,{d:`M16 18v2a2 2 0 01-2 2H6a2 2 0 01-2-2V9a2 2 0 012-2h2`})]}),checkDouble:(0,K.jsxs)(`svg`,{...zl,children:[(0,K.jsx)(`path`,{d:`M2 13l4 4L14 7`}),(0,K.jsx)(`path`,{d:`M9 13l4 4L21 7`})]}),wrench:(0,K.jsx)(`svg`,{...zl,children:(0,K.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:(0,K.jsx)(`svg`,{...Bl,children:(0,K.jsx)(`rect`,{x:`6`,y:`6`,width:`12`,height:`12`,rx:`2`})}),microphone:(0,K.jsxs)(`svg`,{...zl,children:[(0,K.jsx)(`path`,{d:`M12 2a3 3 0 00-3 3v6a3 3 0 006 0V5a3 3 0 00-3-3z`}),(0,K.jsx)(`path`,{d:`M19 10v1a7 7 0 01-14 0v-1`}),(0,K.jsx)(`path`,{d:`M12 18v4m-4 0h8`})]})}}));function Ul(e){return e==null?null:typeof e==`string`?uc(e)?.icons??null:e.icons??null}function Wl(e,t){return Ul(t)?.[e]??Gl[e]??Vl[e]}var Gl,Kl=o((()=>{Hl(),fc(),Gl={}}));function ql(e){let t=(0,Jl.use)(Yl);return e??t??`md`}var Jl,Yl,Xl,Zl=o((()=>{Jl=u(f(),1),Ar(),Yl=Tr(null),Yl.displayName=`IconDefaultSizeContext`,Xl=Yl.Provider})),Ql,$l,eu=o((()=>{Ql={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}},$l={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}}}));function tu(e){return e!=null&&e!==``?{role:`img`,"aria-label":e}:{"aria-hidden":`true`}}function nu({icon:e,color:t=`inherit`,size:n,label:r,ref:i,className:a,style:o,xstyle:s,...c}){let l=ql(n),u=tu(r);return typeof e==`string`?(0,au.jsx)(ru,{name:e,color:t,size:l,a11yProps:u,className:a,style:o,xstyle:s,spanProps:c}):(0,au.jsx)(e,{ref:i,...u,...U(V(`icon`,{size:l,color:t}),z(ou.root,su[t],Ql[l],s),a??void 0,o),...c})}function ru({name:e,color:t,size:n,a11yProps:r,className:i,style:a,xstyle:o,spanProps:s}){let c=Wl(e,Ml());if(c==null)return null;let l=s??{};return(0,au.jsx)(`span`,{...r,...l,...U(V(`icon`,{size:n,color:t}),z(ou.span,su[t],$l[n],o),i??void 0,a),children:c})}function iu(e,t){return typeof e==`string`||typeof e==`function`||typeof e==`object`&&e&&`render`in e?(0,au.jsx)(nu,{icon:e,...t}):e}var au,ou,su,cu=o((()=>{f(),B(),Rl(),Kl(),W(),H(),Zl(),eu(),au=G(),ou={root:{kmuXW:`x2lah0s`,$$css:!0},span:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,$$css:!0}},su={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}},nu.displayName=`Icon`})),lu=o((()=>{cu(),Rl(),Kl()})),uu=o((()=>{Ca(),Aa()}));function du({children:e,as:t=`span`,ref:n,...r}){return(0,fu.createElement)(t,{ref:n,...r,className:`x10l6tqk x1i1rx1s xjm9jq1 xkdpibf x1717udv xb3r6kr xzpqnlu xuxw1ft xng3xce x13vifvy x1o0tod x47corl x87ps6o`},e)}var fu,pu=o((()=>{fu=u(f(),1),du.displayName=`VisuallyHidden`})),mu=o((()=>{pu()})),hu,gu,_u=o((()=>{hu=u(f(),1),gu=(0,hu.createContext)(null),gu.displayName=`LinkContext`}));function vu(e){return e.replace(/[\x00-\x1f\x7f]/g,``).trim()}function yu(e){let t=vu(e),n=t.toLowerCase();return n.startsWith(`javascript:`)||n.startsWith(`vbscript:`)||n.startsWith(`data:text/html`)?null:t}function bu(e){return yu(e)!==null}function xu(e){if(e==null)return!0;if(typeof e==`string`)return bu(e);if(typeof e!=`object`)return!1;let{pathname:t,href:n,protocol:r,host:i,hostname:a}=e;for(let e of[t,n,r,i,a])if(e!=null&&typeof e!=`string`)return!1;if(typeof t==`string`&&!bu(t)||typeof n==`string`&&!bu(n))return!1;if(typeof r==`string`&&r!==``){let e=vu(r),n=e.endsWith(`:`)?e:`${e}:`;if(!bu(n)||!bu(`${n}${i||a||``}${typeof t==`string`?t:``}`))return!1}return!0}var Su=o((()=>{}));function Cu(e){function t({href:t,to:n,ref:r,...i}){return!xu(t)||!xu(n)?(0,Tu.createElement)(`a`,{ref:r,...i}):e===`a`?(0,Tu.createElement)(`a`,{ref:r,...i,href:t}):(0,Tu.createElement)(e,{ref:r,...i,href:t,to:n??t})}return t.displayName=`SafeLink(${typeof e==`string`?e:e.displayName||e.name||`Component`})`,t}function wu(e){let t=(0,Tu.use)(gu),n=e??t?.component??`a`;return(0,Tu.useMemo)(()=>Cu(n),[n])}var Tu,Eu=o((()=>{Tu=u(f(),1),_u(),Su()}));function Du(e,t){if(e!==`_blank`)return{target:e,rel:t};let n=t?.split(/\s+/).filter(Boolean)??[];for(let e of Ou)n.includes(e)||n.push(e);return{target:e,rel:n.join(` `)}}var Ou,ku=o((()=>{Ou=[`noopener`,`noreferrer`]}));function Au(){return(0,ju.use)(Mu)}var ju,Mu,Nu=o((()=>{ju=u(f(),1),Mu=(0,ju.createContext)(null),Mu.displayName=`InteractiveRoleContext`}));function Pu({href:e,onClick:t,isDisabled:n=!1}){let r=Au();return e!=null&&!n?`link`:t==null?r??`inert`:`button`}var Fu=o((()=>{Nu()})),Iu,Lu=o((()=>{Et(),`${xt[`--color-overlay-hover`]}${xt[`--color-overlay-hover`]}`,`${xt[`--color-overlay-pressed`]}${xt[`--color-overlay-pressed`]}`,`${xt[`--color-neutral`]}${xt[`--color-neutral`]}`,Iu={backgroundColor:{kWkggS:`xjbqb8w x1anq1lc xoevpu5 xprvw0a`,$$css:!0},backgroundImage:{kKwaWg:`x7uyq82 xmvprkv xetgvay`,$$css:!0},backgroundImageOnNeutral:{kKwaWg:`x14bno8m xzmimnh x1otsd3y xo3fi6e`,$$css:!0},pressedBackgroundColor:{kWkggS:`x1anq1lc`,$$css:!0}}}));function Ru(e,t){let n=t&&t.cache?t.cache:Ju,r=t&&t.serializer?t.serializer:Ku;return(t&&t.strategy?t.strategy:Uu)(e,{cache:n,serializer:r})}function zu(e){return e==null||typeof e==`number`||typeof e==`boolean`}function Bu(e,t,n,r){let i=zu(r)?r:n(r),a=t.get(i);return a===void 0&&(a=e.call(this,r),t.set(i,a)),a}function Vu(e,t,n){let r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return a===void 0&&(a=e.apply(this,r),t.set(i,a)),a}function Hu(e,t,n,r,i){return n.bind(t,e,r,i)}function Uu(e,t){let n=e.length===1?Bu:Vu;return Hu(e,this,n,t.cache.create(),t.serializer)}function Wu(e,t){return Hu(e,this,Vu,t.cache.create(),t.serializer)}function Gu(e,t){return Hu(e,this,Bu,t.cache.create(),t.serializer)}var Ku,qu,Ju,Yu,Xu=o((()=>{Ku=function(){return JSON.stringify(arguments)},qu=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}},Ju={create:function(){return new qu}},Yu={variadic:Wu,monadic:Gu}}));function Zu(e){let t={};return e.replace(ad,e=>{let n=e.length;switch(e[0]){case`G`:t.era=n===4?`long`:n===5?`narrow`:`short`;break;case`y`:t.year=n===2?`2-digit`:`numeric`;break;case`Y`:case`u`:case`U`:case`r`:throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case`q`:case`Q`:throw RangeError("`q/Q` (quarter) patterns are not supported");case`M`:case`L`:t.month=[`numeric`,`2-digit`,`short`,`long`,`narrow`][n-1];break;case`w`:case`W`:throw RangeError("`w/W` (week) patterns are not supported");case`d`:t.day=[`numeric`,`2-digit`][n-1];break;case`D`:case`F`:case`g`:throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case`E`:t.weekday=n===4?`long`:n===5?`narrow`:`short`;break;case`e`:if(n<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-3];break;case`c`:if(n<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-3];break;case`a`:t.hour12=!0;break;case`b`:case`B`:throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case`h`:t.hourCycle=`h12`,t.hour=[`numeric`,`2-digit`][n-1];break;case`H`:t.hourCycle=`h23`,t.hour=[`numeric`,`2-digit`][n-1];break;case`K`:t.hourCycle=`h11`,t.hour=[`numeric`,`2-digit`][n-1];break;case`k`:t.hourCycle=`h24`,t.hour=[`numeric`,`2-digit`][n-1];break;case`j`:case`J`:case`C`:throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case`m`:t.minute=[`numeric`,`2-digit`][n-1];break;case`s`:t.second=[`numeric`,`2-digit`][n-1];break;case`S`:case`A`:throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case`z`:t.timeZoneName=n<4?`short`:`long`;break;case`Z`:case`O`:case`v`:case`V`:case`X`:case`x`:throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return``}),t}function Qu(e){if(e.length===0)throw Error(`Number skeleton cannot be empty`);let t=e.split(od).filter(e=>e.length>0),n=[];for(let e of t){let t=e.split(`/`);if(t.length===0)throw Error(`Invalid number skeleton`);let[r,...i]=t;for(let e of i)if(e.length===0)throw Error(`Invalid number skeleton`);n.push({stem:r,options:i})}return n}function $u(e){return e.replace(/^(.*?)-/,``)}function ed(e){let t={};return e[e.length-1]===`r`?t.roundingPriority=`morePrecision`:e[e.length-1]===`s`&&(t.roundingPriority=`lessPrecision`),e.replace(cd,function(e,n,r){return typeof r==`string`?r===`+`?t.minimumSignificantDigits=n.length:n[0]===`#`?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof r==`string`?r.length:0)):(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length),``}),t}function td(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 nd(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){let n=e.slice(0,2);if(n===`+!`?(t.signDisplay=`always`,e=e.slice(2)):n===`+?`&&(t.signDisplay=`exceptZero`,e=e.slice(2)),!ud.test(e))throw Error(`Malformed concise eng/scientific notation`);t.minimumIntegerDigits=e.length}return t}function rd(e){return td(e)||{}}function id(e){let t={};for(let n of e){switch(n.stem){case`percent`:case`%`:t.style=`percent`;continue;case`%x100`:t.style=`percent`,t.scale=100;continue;case`currency`:t.style=`currency`,t.currency=n.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=$u(n.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`,...n.options.reduce((e,t)=>({...e,...rd(t)}),{})};continue;case`engineering`:t={...t,notation:`engineering`,...n.options.reduce((e,t)=>({...e,...rd(t)}),{})};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(n.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(n.options.length>1)throw RangeError(`integer-width stems only accept a single optional option`);n.options[0].replace(ld,function(e,n,r,i,a,o){if(n)t.minimumIntegerDigits=r.length;else if(i&&a)throw Error(`We currently do not support maximum integer digits`);else if(o)throw Error(`We currently do not support exact integer digits`);return``});continue}if(ud.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(sd.test(n.stem)){if(n.options.length>1)throw RangeError(`Fraction-precision stems only accept a single optional option`);n.stem.replace(sd,function(e,n,r,i,a,o){return r===`*`?t.minimumFractionDigits=n.length:i&&i[0]===`#`?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),``});let e=n.options[0];e===`w`?t={...t,trailingZeroDisplay:`stripIfInteger`}:e&&(t={...t,...ed(e)});continue}if(cd.test(n.stem)){t={...t,...ed(n.stem)};continue}let e=td(n.stem);e&&(t={...t,...e});let r=nd(n.stem);r&&(t={...t,...r})}return t}var ad,od,sd,cd,ld,ud,dd=o((()=>{ad=/(?:[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,od=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,sd=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,cd=/^(@+)?(\+|#+)?[rs]?$/g,ld=/(\*)(0+)|(#+)(0+)|(0+)/g,ud=/^(0+)$/}));function fd(e){return e.type===0}function pd(e){return e.type===1}function md(e){return e.type===2}function hd(e){return e.type===3}function gd(e){return e.type===4}function _d(e){return e.type===5}function vd(e){return e.type===6}function yd(e){return e.type===7}function bd(e){return e.type===8}function xd(e){return!!(e&&typeof e==`object`&&e.type===0)}function Sd(e){return!!(e&&typeof e==`object`&&e.type===1)}function Cd(e,t){let n=``;for(let r=0;r<e.length;r++){let i=e.charAt(r);if(i===`j`){let a=0;for(;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;let o=1+(a&1),s=a<2?1:3+(a>>1),c=wd(t);for((c==`H`||c==`k`)&&(s=0);s-->0;)n+=`a`;for(;o-->0;)n=c+n}else n+=i===`J`?`H`:i}return n}function wd(e){let t=e.hourCycle;if(t===void 0){let n=e;t=n.getHourCycles?.()[0]??n.hourCycles?.[0]}if(t)switch(t){case`h24`:return`k`;case`h23`:return`H`;case`h12`:return`h`;case`h11`:return`K`;default:throw Error(`Invalid hourCycle`)}let n=e.language,r;return n!==`root`&&(r=e.maximize().region),(Id[`${n}-${r}`]||Id[r||``]||Id[n||``]||Id[`${n}-001`]||Id[`001`])[0].charAt(0)}function Td(e,t){return{start:e,end:t}}function Ed(e,t){return Gd.lastIndex=t,Gd.exec(e)[1]??``}function Dd(e){if(e.length===0)return null;let t=1,n=1;for(let r=0;r<e.length;){let i=e.charCodeAt(r);switch(i){case 35:case 39:case 60:case 123:case 125:return null}if(i===10)t++,n=1,r++;else if(n++,i>=55296&&i<=56319&&r+1<e.length){let t=e.charCodeAt(r+1);r+=t>=56320&&t<=57343?2:1}else r++}return{offset:e.length,line:t,column:n}}function Od(e){return e>=97&&e<=122||e>=65&&e<=90}function kd(e){return Od(e)||e===47}function Ad(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 jd(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Md(e){e.forEach(e=>{if(delete e.location,_d(e)||vd(e))for(let t in e.options)delete e.options[t].location,Md(e.options[t].value);else md(e)&&xd(e.style)||(hd(e)||gd(e))&&Sd(e.style)?delete e.style.location:bd(e)&&Md(e.children)})}function Nd(e,t={}){t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t};let n=new Kd(e,t).parse();if(n.err){let e=SyntaxError(Pd[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return t?.captureLocation||Md(n.val),n.val}var Pd,Fd,Id,Ld,Rd,zd,Bd,Vd,Hd,Ud,Wd,Gd,Kd,qd=o((()=>{dd(),Pd=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}({}),Fd=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Id={"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`]},Ld=RegExp(`^${Fd.source}*`),Rd=RegExp(`${Fd.source}*$`),zd=!!Object.fromEntries,Bd=!!String.prototype.trimStart,Vd=!!String.prototype.trimEnd,Hd=zd?Object.fromEntries:function(e){let t={};for(let[n,r]of e)t[n]=r;return t},Ud=Bd?function(e){return e.trimStart()}:function(e){return e.replace(Ld,``)},Wd=Vd?function(e){return e.trimEnd()}:function(e){return e.replace(Rd,``)},Gd=RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`),Kd=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){let e=this.message.charCodeAt(0);if(e!==35&&e!==39&&e!==60&&e!==123&&e!==125){let e=Dd(this.message);if(e){let t=this.clonePosition();return this.position=e,{val:[{type:0,value:this.message,location:Td(t,this.clonePosition())}],err:null}}}}return this.parseMessage(0,``,!1)}parseMessage(e,t,n){let r=[];for(;!this.isEOF();){let i=this.char();if(i===123){let t=this.parseArgument(e,n);if(t.err)return t;r.push(t.val)}else if(i===125&&e>0)break;else if(i===35&&(t===`plural`||t===`selectordinal`)){let e=this.clonePosition();this.bump(),r.push({type:7,location:Td(e,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(26,Td(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&Od(this.peek()||0)){let n=this.parseTag(e,t);if(n.err)return n;r.push(n.val)}else{let n=this.parseLiteral(e,t);if(n.err)return n;r.push(n.val)}}return{val:r,err:null}}parseTag(e,t){let n=this.clonePosition();this.bump();let r=this.parseTagName();if(this.bumpSpace(),this.bumpIf(`/>`))return{val:{type:0,value:`<${r}/>`,location:Td(n,this.clonePosition())},err:null};if(this.bumpIf(`>`)){let i=this.parseMessage(e+1,t,!0);if(i.err)return i;let a=i.val,o=this.clonePosition();if(this.bumpIf(`</`)){if(this.isEOF()||!Od(this.char()))return this.error(23,Td(o,this.clonePosition()));let e=this.clonePosition();return r===this.parseTagName()?(this.bumpSpace(),this.bumpIf(`>`)?{val:{type:8,value:r,children:a,location:Td(n,this.clonePosition())},err:null}:this.error(23,Td(o,this.clonePosition()))):this.error(26,Td(e,this.clonePosition()))}return this.error(27,Td(n,this.clonePosition()))}return this.error(23,Td(n,this.clonePosition()))}parseTagName(){let e=this.offset();for(this.bump();!this.isEOF()&&Ad(this.char());)this.bump();return this.message.slice(e,this.offset())}parseLiteral(e,t){let n=this.clonePosition(),r=``;for(;;){let n=this.tryParseQuote(t);if(n){r+=n;continue}let i=this.tryParseUnquoted(e,t);if(i){r+=i;continue}let a=this.tryParseLeftAngleBracket();if(a){r+=a;continue}break}let i=Td(n,this.clonePosition());return{val:{type:0,value:r,location:i},err:null}}tryParseLeftAngleBracket(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!kd(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();let t=[this.char()];for(this.bump();!this.isEOF();){let e=this.char();if(e===39){if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;let n=this.char();return n===60||n===123||n===35&&(t===`plural`||t===`selectordinal`)||n===125&&e>0?null:(this.bump(),String.fromCodePoint(n))}parseArgument(e,t){let n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,Td(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(2,Td(n,this.clonePosition()));let r=this.parseIdentifierIfPossible().value;if(!r)return this.error(3,Td(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,Td(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:r,location:Td(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(1,Td(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(3,Td(n,this.clonePosition()))}}parseIdentifierIfPossible(){let e=this.clonePosition(),t=this.offset(),n=Ed(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:Td(e,this.clonePosition())}}parseArgumentOptions(e,t,n,r){let i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(a){case``:return this.error(4,Td(i,o));case`number`:case`date`:case`time`:{this.bumpSpace();let e=null;if(this.bumpIf(`,`)){this.bumpSpace();let t=this.clonePosition(),n=this.parseSimpleArgStyleIfPossible();if(n.err)return n;let r=Wd(n.val);if(r.length===0)return this.error(6,Td(this.clonePosition(),this.clonePosition()));e={style:r,styleLocation:Td(t,this.clonePosition())}}let t=this.tryParseArgumentClose(r);if(t.err)return t;let i=Td(r,this.clonePosition());if(e&&e.style.startsWith(`::`)){let t=Ud(e.style.slice(2));if(a===`number`){let r=this.parseNumberSkeletonFromString(t,e.styleLocation);return r.err?r:{val:{type:2,value:n,location:i,style:r.val},err:null}}{if(t.length===0)return this.error(10,i);let r=t;this.locale&&(r=Cd(t,this.locale));let o={type:1,pattern:r,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?Zu(r):{}};return{val:{type:a===`date`?3:4,value:n,location:i,style:o},err:null}}}return{val:{type:a===`number`?2:a===`date`?3:4,value:n,location:i,style:e?.style??null},err:null}}case`plural`:case`selectordinal`:case`select`:{let i=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(`,`))return this.error(12,Td(i,{...i}));this.bumpSpace();let o=this.parseIdentifierIfPossible(),s=0;if(a!==`select`&&o.value===`offset`){if(!this.bumpIf(`:`))return this.error(13,Td(this.clonePosition(),this.clonePosition()));this.bumpSpace();let e=this.tryParseDecimalInteger(13,14);if(e.err)return e;this.bumpSpace(),o=this.parseIdentifierIfPossible(),s=e.val}let c=this.tryParsePluralOrSelectOptions(e,a,t,o);if(c.err)return c;let l=this.tryParseArgumentClose(r);if(l.err)return l;let u=Td(r,this.clonePosition());return a===`select`?{val:{type:5,value:n,options:Hd(c.val),location:u},err:null}:{val:{type:6,value:n,options:Hd(c.val),offset:s,pluralType:a===`plural`?`cardinal`:`ordinal`,location:u},err:null}}default:return this.error(5,Td(i,o))}}tryParseArgumentClose(e){return this.isEOF()||this.char()!==125?this.error(1,Td(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0,t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil(`'`))return this.error(11,Td(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(e>0)--e;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 n=[];try{n=Qu(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?id(n):{}},err:null}}tryParsePluralOrSelectOptions(e,t,n,r){let i=!1,a=[],o=new Set,{value:s,location:c}=r;for(;;){if(s.length===0){let e=this.clonePosition();if(t!==`select`&&this.bumpIf(`=`)){let t=this.tryParseDecimalInteger(16,19);if(t.err)return t;c=Td(e,this.clonePosition()),s=this.message.slice(e.offset,this.offset())}else break}if(o.has(s))return this.error(t===`select`?21:20,c);s===`other`&&(i=!0),this.bumpSpace();let r=this.clonePosition();if(!this.bumpIf(`{`))return this.error(t===`select`?17:18,Td(this.clonePosition(),this.clonePosition()));let l=this.parseMessage(e+1,t,n);if(l.err)return l;let u=this.tryParseArgumentClose(r);if(u.err)return u;a.push([s,{value:l.val,location:Td(r,this.clonePosition())}]),o.add(s),this.bumpSpace(),{value:s,location:c}=this.parseIdentifierIfPossible()}return a.length===0?this.error(t===`select`?15:16,Td(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(22,Td(this.clonePosition(),this.clonePosition())):{val:a,err:null}}tryParseDecimalInteger(e,t){let n=1,r=this.clonePosition();this.bumpIf(`+`)||this.bumpIf(`-`)&&(n=-1);let i=!1,a=0;for(;!this.isEOF();){let e=this.char();if(e>=48&&e<=57)i=!0,a=a*10+(e-48),this.bump();else break}let o=Td(r,this.clonePosition());return i?(a*=n,Number.isSafeInteger(a)?{val:a,err:null}:this.error(t,o)):this.error(e,o)}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(){let e=this.position.offset;if(e>=this.message.length)throw Error(`out of bound`);let 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;let 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){let t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!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);;){let 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()&&jd(this.char());)this.bump()}peek(){if(this.isEOF())return null;let e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}}}));function Jd(e){return e.length<2?e:e.reduce((e,t)=>{let n=e[e.length-1];return!n||n.type!==0||t.type!==0?e.push(t):n.value+=t.value,e},[])}function Yd(e){return typeof e==`function`}function Xd(e,t,n,r,i,a,o){if(e.length===1&&fd(e[0]))return[{type:0,value:e[0].value}];let s=[];for(let c of e){if(fd(c)){s.push({type:0,value:c.value});continue}if(yd(c)){typeof a==`number`&&s.push({type:0,value:n.getNumberFormat(t).format(a)});continue}let{value:e}=c;if(!(i&&e in i))throw new af(e,o);let l=i[e];if(pd(c)){(!l||typeof l==`string`||typeof l==`number`||typeof l==`bigint`)&&(l=typeof l==`string`||typeof l==`number`||typeof l==`bigint`?String(l):``),s.push({type:typeof l==`string`?0:1,value:l});continue}if(hd(c)){let e=typeof c.style==`string`?r.date[c.style]:Sd(c.style)?c.style.parsedOptions:void 0;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)});continue}if(gd(c)){let e=typeof c.style==`string`?r.time[c.style]:Sd(c.style)?c.style.parsedOptions:r.time.medium;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)});continue}if(md(c)){let e=typeof c.style==`string`?r.number[c.style]:xd(c.style)?c.style.parsedOptions:void 0;if(e&&e.scale){let t=e.scale||1;if(typeof l==`bigint`){if(!Number.isInteger(t))throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);l*=BigInt(t)}else l*=t}s.push({type:0,value:n.getNumberFormat(t,e).format(l)});continue}if(bd(c)){let{children:e,value:l}=c,u=i[l];if(!Yd(u))throw new rf(l,`function`,o);let d=u(Xd(e,t,n,r,i,a).map(e=>e.value));Array.isArray(d)||(d=[d]),s.push(...d.map(e=>({type:typeof e==`string`?0:1,value:e})))}if(_d(c)){let e=l,a=(Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0)||c.options.other;if(!a)throw new nf(c.value,l,Object.keys(c.options),o);s.push(...Xd(a.value,t,n,r,i));continue}if(vd(c)){let e=`=${l}`,a=Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0;if(!a){if(!Intl.PluralRules)throw new tf(`Intl.PluralRules is not available in this environment.
55
55
  Try polyfilling it using "@formatjs/intl-pluralrules"
56
- `,`MISSING_INTL_API`,o);let e=typeof l==`bigint`?Number(l):l,r=n.getPluralRules(t,{type:c.pluralType}).select(e-(c.offset||0));a=(Object.prototype.hasOwnProperty.call(c.options,r)?c.options[r]:void 0)||c.options.other}if(!a)throw new rf(c.value,l,Object.keys(c.options),o);let u=typeof l==`bigint`?Number(l):l;s.push(...Zd(a.value,t,n,r,i,u-(c.offset||0)));continue}}return Yd(s)}function Qd(e,t){return t?{...e,...t,...Object.keys(e).reduce((n,r)=>(n[r]={...e[r],...t[r]},n),{})}:e}function $d(e,t){return t?Object.keys(e).reduce((n,r)=>(n[r]=Qd(e[r],t[r]),n),{...e}):e}function ef(e){return{create(){return{get(t){return e[t]},set(t,n){e[t]=n}}}}}function tf(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:zu((...e)=>new Intl.NumberFormat(...e),{cache:ef(e.number),strategy:Xu.variadic}),getDateTimeFormat:zu((...e)=>new Intl.DateTimeFormat(...e),{cache:ef(e.dateTime),strategy:Xu.variadic}),getPluralRules:zu((...e)=>new Intl.PluralRules(...e),{cache:ef(e.pluralRules),strategy:Xu.variadic})}}var nf,rf,af,of,sf,cf,lf=o((()=>{Zu(),Jd(),nf=class extends Error{constructor(e,t,n){super(e),this.code=t,this.originalMessage=n}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},rf=class extends nf{constructor(e,t,n,r){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join(`", "`)}"`,`INVALID_VALUE`,r)}},af=class extends nf{constructor(e,t,n){super(`Value for "${e}" must be of type ${t}`,`INVALID_VALUE`,n)}},of=class extends nf{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,`MISSING_VALUE`,t)}},sf=class e{constructor(t,n=e.defaultLocale,r,i){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{let t=this.formatToParts(e);if(t.length===1)return t[0].value;let n=t.reduce((e,t)=>(!e.length||t.type!==0||typeof e[e.length-1]!=`string`?e.push(t.value):e[e.length-1]+=t.value,e),[]);return n.length<=1?n[0]||``:n},this.formatToParts=e=>Zd(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t==`string`){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");let{...n}=i||{};this.ast=e.__parse(t,{...n,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError(`A message must be provided as a String or AST.`);this.formats=$d(e.formats,r),this.formatters=i&&i.formatters||tf(this.formatterCache)}static{this.memoizedDefaultLocale=null}static get defaultLocale(){return e.memoizedDefaultLocale||=new Intl.NumberFormat().resolvedOptions().locale,e.memoizedDefaultLocale}static{this.resolveLocale=e=>{if(Intl.Locale===void 0)return;let t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e==`string`?e:e[0])}}static{this.__parse=Pd}static{this.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`}}}}},cf=sf})),uf,df=o((()=>{uf={"@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.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.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.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`}}));function ff(e,t){let n=`${t}::${e}`,r=gf.get(n);return r===void 0&&(r=new cf(e,t),gf.set(n,r)),r}function pf(e){let t;try{t=new Intl.Locale(e).baseName}catch{t=e}let n=t.split(`-`),r=[];for(let e=n.length;e>0;e--)r.push(n.slice(0,e).join(`-`));return r}function mf(e,t,n){let r={},i=pf(e);if(n!==void 0){for(let e of i)if(n[e])for(let[t,i]of Object.entries(n[e]))r[t]===void 0&&i!==null&&(r[t]=i)}for(let e of i)if(t[e])for(let[n,i]of Object.entries(t[e])){let e=typeof i==`string`?i:i?.defaultMessage;r[n]===void 0&&e!=null&&(r[n]=e)}return r}function hf(e,t,n){let r=mf(e,t,n);return(t,n)=>{let i=r[t]??uf[t];return i===void 0?(`${e}${t}`,`${t}${e}`,t):n===void 0?i:ff(i,e).format(n)}}var gf,_f=o((()=>{lf(),df(),En(),gf=new Map})),vf,yf,bf=o((()=>{vf=u(f(),1),_f(),yf=(0,vf.createContext)({locale:`en`,direction:`ltr`,messages:{},translate:hf(`en`,{})}),yf.displayName=`InternationalizationContext`}));function xf(){return(0,Sf.use)(yf).translate}var Sf,Cf=o((()=>{Sf=u(f(),1),bf()}));function wf(){return(0,Tf.use)(yf).locale}var Tf,Ef=o((()=>{Tf=u(f(),1),bf()})),Df=o((()=>{bf(),_f(),Cf(),Ef()}));function Of(e){e.preventDefault()}function kf({as:e,label:t,href:n,hasUnderline:r=!1,isDisabled:i=!1,isExternalLink:a=!1,newTabLabel:o,target:s,onClick:c,tooltip:l,isStandalone:u=!1,type:d=`body`,size:f,weight:p,color:m=`accent`,display:h=`inline`,maxLines:g=0,children:_,rel:v,xstyle:y,className:b,style:x,ref:S,...C}){let w=xf(),T=o??w(`@astryx.link.newTab`),E=Tu(e),D=Fu({href:n,onClick:c,isDisabled:i}),{target:O,rel:k}=Ou(a?`_blank`:s,v),A=D===`button`||D===`inert`&&n==null,j=(0,Af.jsxs)(Af.Fragment,{children:[(0,Af.jsx)(Na,{type:d,size:f,weight:p,color:m,display:h,maxLines:g,children:_}),a&&!A&&(0,Af.jsxs)(Af.Fragment,{children:[(0,Af.jsx)(ru,{icon:`externalLink`,size:`xsm`,color:`inherit`}),(0,Af.jsx)(fu,{children:T})]})]}),M;return M=A?(0,Af.jsx)(`button`,{ref:S,type:`button`,onClick:c,"aria-label":t||void 0,"aria-disabled":i||void 0,tabIndex:i?-1:void 0,disabled:i,...U(V(`link`,{color:m}),Rn.focusVisible(jf.base,jf.buttonReset,Mf[m],!i&&Lu.pressedBackgroundColor,r&&jf.hasUnderline,u&&jf.standalone,i&&jf.disabled,y),b,x),...C,children:j}):i?(0,Af.jsx)(`a`,{ref:S,onClick:Of,"aria-label":t||void 0,"aria-disabled":!0,tabIndex:-1,...U(V(`link`,{color:m}),Rn.focusVisible(jf.base,Mf[m],r&&jf.hasUnderline,u&&jf.standalone,jf.disabled,y),b,x),...C,children:j}):(0,Af.jsx)(E,{ref:S,href:n,target:O,rel:k,onClick:c,"aria-label":t||void 0,"aria-disabled":i||void 0,tabIndex:i?-1:void 0,...U(V(`link`,{color:m}),Rn.focusVisible(jf.base,Mf[m],!i&&Lu.pressedBackgroundColor,r&&jf.hasUnderline,u&&jf.standalone,i&&jf.disabled,y),b,x),...C,children:j}),l?(0,Af.jsx)(Da,{content:l,placement:`above`,children:M}):M}var Af,jf,Mf,Nf=o((()=>{uu(),du(),qa(),hu(),Du(),W(),Au(),Iu(),H(),zn(),Ru(),Df(),Af=G(),jf={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}},Mf={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}},kf.displayName=`Link`}));function Pf({component:e,children:t}){let n=(0,Ff.useMemo)(()=>({component:e}),[e]);return(0,If.jsx)(_u,{value:n,children:t})}var Ff,If,Lf=o((()=>{Ff=u(f(),1),vu(),If=G(),Pf.displayName=`LinkProvider`})),Rf=o((()=>{Nf(),Lf(),Du()}));function zf(e){let t=(0,Hf.useId)();(0,Hf.useInsertionEffect)(()=>{if(e.__built)return;let n=`astryx-theme-${e.name}`;if(Kf.has(n))return;`${e.name}`,`${e.name}${e.name}${e.name}${e.name}`;let{prose:r,component:i}=fl(e),a=dl();Kf.add(n);let o=[()=>Kf.delete(n)];if(a){if(qf++===0){let e=document.createElement(`style`);e.setAttribute(Ot(`theme-base`),``),e.textContent=`@layer astryx-base {\n${a}\n}`,document.head.appendChild(e)}o.push(()=>{--qf===0&&document.querySelector(`style[${Ot(`theme-base`)}]`)?.remove()})}if(r){let n=document.createElement(`style`);n.setAttribute(Ot(`theme-prose`),e.name),n.setAttribute(Ot(`id`),t),n.textContent=`@layer reset {\n${r}\n}`,document.head.appendChild(n)}if(i){let n=document.createElement(`style`);n.setAttribute(Ot(`theme`),e.name),n.setAttribute(Ot(`id`),t),n.textContent=`@layer astryx-theme {\n${i}\n}`,document.head.appendChild(n)}return(r||i)&&o.push(()=>{let n=document.querySelector(`style[${Ot(`theme-prose`)}="${e.name}"][${Ot(`id`)}="${t}"]`),r=document.querySelector(`style[${Ot(`theme`)}="${e.name}"][${Ot(`id`)}="${t}"]`);n?.remove(),r?.remove()}),()=>{for(let e of o)e()}},[e,t])}function Bf(e,t,n){Cr(()=>{if(!e&&typeof document<`u`)return t===`light`||t===`dark`?document.documentElement.setAttribute(`data-theme`,t):document.documentElement.removeAttribute(`data-theme`),document.documentElement.setAttribute(Ot(`theme`),n),()=>{document.documentElement.removeAttribute(`data-theme`),document.documentElement.removeAttribute(Ot(`theme`))}},[e,t,n])}function Vf({theme:e,mode:t=`system`,children:n}){let r=(0,Hf.use)(Gf);uc(e),zf(e),Bf(r,t,e.name);let i=t===`dark`?Wf.dark:t===`light`?Wf.light:Wf.system,a=(0,Hf.useMemo)(()=>({theme:e,mode:t}),[e,t]);return(0,Uf.jsx)(Il,{value:a,children:(0,Uf.jsx)(Gf,{value:!0,children:(0,Uf.jsx)(`div`,{...z(Wf.base,i),"data-astryx-theme":e.name,"data-theme":t===`system`?void 0:t,children:n})})})}var Hf,Uf,Wf,Gf,Kf,qf,Jf=o((()=>{Hf=u(f(),1),wr(),B(),Sl(),xl(),pc(),Pt(),zl(),En(),Uf=G(),Wf={base:{k1xSpc:`xjp7ctv`,kMwMTN:`x1tgivj0`,kMv6JI:`x9ynric`,$$css:!0},light:{kQNsl9:`x19aimcq`,$$css:!0},dark:{kQNsl9:`xntwwlm`,$$css:!0},system:{kQNsl9:`x108lcm5`,$$css:!0}},Gf=Hf.createContext(!1),Gf.displayName=`ThemeNestingContext`,Kf=new Set,qf=0,Vf.displayName=`Theme`})),Yf=o((()=>{Jf(),B(),Et(),Pt(),Cn(),Ro(),zl(),wr(),Sl(),pc(),sc(),lc(),En(),Tl(),Oo(),fs()})),Xf,Zf=o((()=>{Xf=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase()}));function Qf(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:Xf(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var $f=o((()=>{Zf()})),ep,tp=o((()=>{ep=e=>{let t=``,n=!1;for(let r of e){if(r===`-`||r===`_`||r<=` `){n=t.length>0;continue}t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t}})),np,rp=o((()=>{tp(),np=e=>{let t=ep(e);return t.charAt(0).toUpperCase()+t.slice(1)}})),ip,ap=o((()=>{ip=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim()})),op,sp=o((()=>{op={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 cp(e){return e!=null}function lp(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??op.width,a=e.size??e.height??op.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?ip(...c):ip(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??op[`stroke-width`])*Number(e.size??e.width??op.width)/Number(t.size??t.width??op.width):t.strokeWidth??op[`stroke-width`];return[`svg`,{...Object.entries(op).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&cp(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&cp(t.width)&&{[r(`width`)]:t.width},...`height`in t&&cp(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}var up=o((()=>{sp(),ap()}));function dp(e,t={}){return lp(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var fp=o((()=>{up()})),pp,mp=o((()=>{pp=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1}})),hp,gp,_p,vp=o((()=>{hp=u(f(),1),gp=(0,hp.createContext)({}),_p=()=>(0,hp.useContext)(gp)})),yp,bp,xp=o((()=>{yp=u(f(),1),ap(),fp(),mp(),vp(),bp=(0,yp.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=_p()??{},y=!!c||pp(d),[b,x,S=[]]=dp(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:ip(v,s),hasA11yProp:y,attributes:d});return(0,yp.createElement)(b,{ref:f,...x},[...S.map(([e,t])=>(0,yp.createElement)(e,t)),...Array.isArray(c)?c:[c]])})}));function Sp(e,t=[],n=[]){let r=typeof e==`string`?Qf(e,t,n):e,i=(0,Cp.forwardRef)(({className:e,...t},n)=>(0,Cp.createElement)(bp,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=np(r.name)),i}var Cp,wp=o((()=>{Cp=u(f(),1),$f(),rp(),xp()})),Tp,Ep,Dp=o((()=>{wp(),Tp={name:`activity`,size:24,node:[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]},Tp.node,Ep=Sp(Tp)})),Op,kp,Ap=o((()=>{wp(),Op={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]},Op.node,kp=Sp(Op)})),jp,Mp,Np=o((()=>{wp(),jp={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`}]]},jp.node,Mp=Sp(jp)})),Pp,Fp,Ip=o((()=>{wp(),Pp={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]},Pp.node,Fp=Sp(Pp)})),Lp,Rp,zp=o((()=>{wp(),Lp={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`}]]},Lp.node,Rp=Sp(Lp)})),Bp,Vp,Hp=o((()=>{wp(),Bp={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`}]]},Bp.node,Vp=Sp(Bp)})),Up,Wp,Gp=o((()=>{wp(),Up={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]},Up.node,Wp=Sp(Up)})),Kp,qp,Jp=o((()=>{wp(),Kp={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]},Kp.node,qp=Sp(Kp)})),Yp,Xp,Zp=o((()=>{wp(),Yp={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]},Yp.node,Xp=Sp(Yp)})),Qp,$p,em=o((()=>{wp(),Qp={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]},Qp.node,$p=Sp(Qp)})),tm,nm,rm=o((()=>{wp(),tm={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`}]]},tm.node,nm=Sp(tm)})),im,am,om=o((()=>{wp(),im={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`}]]},im.node,am=Sp(im)})),sm,cm,lm=o((()=>{wp(),sm={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`]},sm.node,cm=Sp(sm)})),um,dm,fm=o((()=>{wp(),um={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]},um.node,dm=Sp(um)})),pm,mm,hm=o((()=>{wp(),pm={name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`help-circle`,`circle-help`]},pm.node,mm=Sp(pm)})),gm,_m,vm=o((()=>{wp(),gm={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`]},gm.node,_m=Sp(gm)})),ym,bm,xm=o((()=>{wp(),ym={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]},ym.node,bm=Sp(ym)})),Sm,Cm,wm=o((()=>{wp(),Sm={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`]},Sm.node,Cm=Sp(Sm)})),Tm,Em,Dm=o((()=>{wp(),Tm={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`}]]},Tm.node,Em=Sp(Tm)})),Om,km,Am=o((()=>{wp(),Om={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`]},Om.node,km=Sp(Om)})),jm,Mm,Nm=o((()=>{wp(),jm={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`}]]},jm.node,Mm=Sp(jm)})),Pm,Fm,Im=o((()=>{wp(),Pm={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`}]]},Pm.node,Fm=Sp(Pm)})),Lm,Rm,zm=o((()=>{wp(),Lm={name:`folder-kanban`,size:24,node:[[`path`,{d:`M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z`,key:`1fr9dc`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M12 10v2`,key:`hh53o1`}],[`path`,{d:`M16 10v6`,key:`1d6xys`}]]},Lm.node,Rm=Sp(Lm)})),Bm,Vm,Hm=o((()=>{wp(),Bm={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`]},Bm.node,Vm=Sp(Bm)})),Um,Wm,Gm=o((()=>{wp(),Um={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`}]]},Um.node,Wm=Sp(Um)})),Km,qm,Jm=o((()=>{wp(),Km={name:`layout-dashboard`,size:24,node:[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]},Km.node,qm=Sp(Km)})),Ym,Xm,Zm=o((()=>{wp(),Ym={name:`lock-keyhole`,size:24,node:[[`circle`,{cx:`12`,cy:`16`,r:`1`,key:`1au0dj`}],[`rect`,{x:`3`,y:`10`,width:`18`,height:`12`,rx:`2`,key:`6s8ecr`}],[`path`,{d:`M7 10V7a5 5 0 0 1 10 0v3`,key:`1pqi11`}]]},Ym.node,Xm=Sp(Ym)})),Qm,$m,eh=o((()=>{wp(),Qm={name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]},Qm.node,$m=Sp(Qm)})),th,nh,rh=o((()=>{wp(),th={name:`mail`,size:24,node:[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]},th.node,nh=Sp(th)})),ih,ah,oh=o((()=>{wp(),ih={name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]},ih.node,ah=Sp(ih)})),sh,ch,lh=o((()=>{wp(),sh={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`}]]},sh.node,ch=Sp(sh)})),uh,dh,fh=o((()=>{wp(),uh={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]},uh.node,dh=Sp(uh)})),ph,mh,hh=o((()=>{wp(),ph={name:`pause`,size:24,node:[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]},ph.node,mh=Sp(ph)})),gh,_h,vh=o((()=>{wp(),gh={name:`rocket`,size:24,node:[[`path`,{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`,key:`qeys4`}],[`path`,{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09`,key:`u4xsad`}],[`path`,{d:`M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z`,key:`676m9`}],[`path`,{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05`,key:`92ym6u`}]]},gh.node,_h=Sp(gh)})),yh,bh,xh=o((()=>{wp(),yh={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]},yh.node,bh=Sp(yh)})),Sh,Ch,wh=o((()=>{wp(),Sh={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]},Sh.node,Ch=Sp(Sh)})),Th,Eh,Dh=o((()=>{wp(),Th={name:`shield-lock`,size:24,node:[[`path`,{d:`M20 9.807V6a1 1 0 00-1-1c-2 0-4.49-1.19-6.24-2.72a1.17 1.17 0 00-1.52 0C9.5 3.8 7 5 5 5a1 1 0 00-1 1v7c0 3.88 2.107 6.254 5 7.796`,key:`1gl1o4`}],[`path`,{d:`M19 17v-2a2 2 0 00-4 0v2`,key:`uefur0`}],[`rect`,{x:`13`,y:`17`,width:`8`,height:`5`,rx:`1`,key:`2y8vuh`}]]},Th.node,Eh=Sp(Th)})),Oh,kh,Ah=o((()=>{wp(),Oh={name:`sliders-horizontal`,size:24,node:[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]},Oh.node,kh=Sp(Oh)})),jh,Mh,Nh=o((()=>{wp(),jh={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]},jh.node,Mh=Sp(jh)})),Ph,Fh,Ih=o((()=>{wp(),Ph={name:`terminal`,size:24,node:[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]},Ph.node,Fh=Sp(Ph)})),Lh,Rh,zh=o((()=>{wp(),Lh={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`]},Lh.node,Rh=Sp(Lh)})),Bh,Vh,Hh=o((()=>{wp(),Bh={name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]},Bh.node,Vh=Sp(Bh)})),Uh,Wh,Gh=o((()=>{wp(),Uh={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`}]]},Uh.node,Wh=Sp(Uh)})),Kh,qh,Jh=o((()=>{wp(),Kh={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]},Kh.node,qh=Sp(Kh)})),Yh=o((()=>{wp(),lm(),fm(),hm(),vm(),wm(),Am(),Hm(),zh(),Dp(),Ap(),Np(),Ip(),zp(),Hp(),Gp(),Jp(),Zp(),em(),rm(),om(),xm(),Dm(),Nm(),Im(),zm(),Gm(),Jm(),Zm(),eh(),rh(),oh(),lh(),fh(),hh(),vh(),xh(),wh(),Dh(),Ah(),Nh(),Ih(),Hh(),Gh(),Jh(),vp(),xp()})),Xh,Zh,Qh,$h=o((()=>{Yh(),Xh=G(),Zh={size:`1em`,"aria-hidden":!0},Qh={close:(0,Xh.jsx)(qh,{...Zh}),chevronDown:(0,Xh.jsx)(qp,{...Zh}),chevronLeft:(0,Xh.jsx)(Xp,{...Zh}),chevronRight:(0,Xh.jsx)($p,{...Zh}),chevronsLeft:(0,Xh.jsx)(nm,{...Zh}),chevronsRight:(0,Xh.jsx)(am,{...Zh}),check:(0,Xh.jsx)(Wp,{...Zh}),success:(0,Xh.jsx)(cm,{...Zh}),error:(0,Xh.jsx)(_m,{...Zh}),warning:(0,Xh.jsx)(Rh,{...Zh}),info:(0,Xh.jsx)(Wm,{...Zh}),calendar:(0,Xh.jsx)(Rp,{...Zh}),clock:(0,Xh.jsx)(bm,{...Zh}),externalLink:(0,Xh.jsx)(Mm,{...Zh}),menu:(0,Xh.jsx)(ah,{...Zh}),moreHorizontal:(0,Xh.jsx)(km,{...Zh}),search:(0,Xh.jsx)(bh,{...Zh}),arrowUp:(0,Xh.jsx)(Fp,{...Zh}),arrowDown:(0,Xh.jsx)(kp,{...Zh}),arrowsUpDown:(0,Xh.jsx)(Mp,{...Zh}),funnel:(0,Xh.jsx)(Vm,{...Zh}),eyeSlash:(0,Xh.jsx)(Fm,{...Zh}),viewColumns:(0,Xh.jsx)(Cm,{...Zh}),copy:(0,Xh.jsx)(Em,{...Zh}),checkDouble:(0,Xh.jsx)(Vp,{...Zh}),wrench:(0,Xh.jsx)(Wh,{...Zh}),stop:(0,Xh.jsx)(Mh,{...Zh}),microphone:(0,Xh.jsx)(ch,{...Zh})}})),eg,tg=o((()=>{$h(),eg={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:[]},__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:Qh}}));function ng(e){return`${mg}${e}`}function rg(e){return e.startsWith(mg)}function ig(e){return`id`in e}function ag(e){return`ids`in e}function og(e){return`view`in e&&!(`id`in e)&&!(`ids`in e)}function sg(e){return`value`in e}var cg,lg,ug,dg,fg,pg,mg,hg,gg=o((()=>{cg=Symbol(`__fate__view`),lg=Symbol(`__fate__views`),ug=Symbol(`__fate__node-ref`),dg=Symbol(`__fate__connection`),fg=Symbol(`__fate__defer`),pg=Symbol(`__fate__deferred`),mg=`__fate-view__`,hg=`__fate__root`})),_g,vg,yg,bg,xg,Sg,Cg,wg=o((()=>{_g=Symbol(`fate.alias`),vg=Symbol(`fate.fragment-alias`),yg=e=>!!(e&&typeof e==`object`&&vg in e),bg=e=>!!(e&&typeof e==`object`&&_g in e),xg=e=>e.slice(e.indexOf(`:`)+1),Sg=e=>e.split(`:`)[0],Cg=(e,t)=>{if(!/^[_A-Za-z][_0-9A-Za-z]*$/.test(e)||e===`id`||e===`__typename`||e===`__proto__`)throw Error(`fate: Invalid or reserved alias result name '${e}'.`);return`${e}:${t}`}})),Tg,Eg=o((()=>{Tg=e=>!!e&&typeof e==`object`&&!Array.isArray(e)})),Dg,Og,kg,Ag,jg,Mg,Ng=o((()=>{wg(),Eg(),Dg=e=>{let t=[];for(let n of e){let e=n.split(`.`),r=e.map((t,n)=>[e.slice(0,n+1).map(xg).join(`.`),e.slice(0,n+1).join(`.`)]),i=t.find(({sources:e})=>r.every(([t,n])=>!e.has(t)||e.get(t)===n));i||(i={paths:new Set,sources:new Map,tree:new Map},t.push(i));for(let[e,t]of r)i.sources.set(e,t);i.paths.add(e.map(xg).join(`.`));let a=i.tree;for(let t of e){let e=a.get(t);e||(e=new Map,a.set(t,e)),a=e}}return t},Og=(e,t)=>{if(Array.isArray(e))return e.map(e=>Og(e,t));if(!Tg(e))return e;if(Array.isArray(e.items))return{...e,items:e.items.map(e=>Tg(e)?{...e,node:Og(e.node,t)}:e)};let n={...e};for(let e of t.keys())e.includes(`:`)&&delete n[xg(e)];for(let[r,i]of t)Object.hasOwn(e,xg(r))&&(n[r]=Og(e[xg(r)],i));return n},kg=(e,t)=>{if(!e)return;let n=(e,r)=>Object.fromEntries(Object.entries(e).flatMap(([e,i])=>{let a=r?`${r}.${xg(e)}`:xg(e),o=t.sources.get(a);return(o||e.includes(`:`))&&o?.split(`.`).at(-1)!==e?[]:[[xg(e),o&&Tg(i)?n(i,a):i]]}));return n(e,``)},Ag=(e,t)=>{if(Array.isArray(e)&&Array.isArray(t)){let n=new Map;for(let e of t)Tg(e)&&e.id!==void 0&&!n.has(e.id)&&n.set(e.id,e);return e.map((e,r)=>{let i=Tg(e)&&e.id!==void 0?n.get(e.id):t[r];return i===void 0?e:Ag(e,i)})}if(Tg(e)&&Tg(t)){let n={...e};for(let[r,i]of Object.entries(t))n[r]=Object.hasOwn(e,r)?Ag(e[r],i):i;return n}return t},jg=(e,t,n)=>{let r=new Set(e);if(![...r].some(e=>e.includes(`:`)))return n(r,t);let i=Dg(r);return Promise.all(i.map(async e=>Og(await n(e.paths,kg(t,e)),e.tree))).then(e=>e.reduce(Ag))},Mg=e=>{if(e.supportsAliases)return e;let t=(t,n,r,i)=>{if(![...t].some(e=>e.includes(`:`)))return i(t,n,r);let a=Dg(t);if(a.length>1)return Promise.reject(Error(`fate: This mutation selection requires a transport with native alias support.`));let o=a[0],s=!e.separateMutationSelectionArgs&&Tg(n)&&Tg(n.args)?{...n,args:kg(n.args,o)}:n;return i(o.paths,s,e.separateMutationSelectionArgs?kg(r,o):r).then(e=>Og(e,o.tree))};return{...e,fetchById:(t,n,r,i)=>jg(r,i,(r,i)=>e.fetchById(t,n,r,i)),fetchList:e.fetchList?(t,n,r)=>jg(n,r,(n,r)=>e.fetchList(t,n,r)):void 0,fetchQuery:e.fetchQuery?(t,n,r)=>jg(n,r,(n,r)=>e.fetchQuery(t,n,r)):void 0,mutate:e.mutate?(n,r,i,a)=>t(i,r,a,(t,r,i)=>e.separateMutationSelectionArgs?e.mutate(n,r,t,i):e.mutate(n,r,t)):void 0,mutateDurably:e.mutateDurably?(n,r,i,a,o)=>t(i,r,o,(t,r,i)=>e.separateMutationSelectionArgs?e.mutateDurably(n,r,t,a,i):e.mutateDurably(n,r,t,a)):void 0,subscribeById:e.subscribeById?(t,n,r,i,a)=>{let o=new Set(r);if(![...o].some(e=>e.includes(`:`)))return e.subscribeById(t,n,o,i,a);let s=Dg(o).map(r=>e.subscribeById(t,n,r.paths,kg(i,r),{...a,onData:(e,t)=>a.onData(Og(e,r.tree),t?.flatMap(e=>{let t=r.sources.get(e);return t?[t]:[]}))}));return()=>s.forEach(e=>e())}:void 0,subscribeConnection:e.subscribeConnection?(t,n,r,i,a,o)=>{let s=new Set(i);if(![...s].some(e=>e.includes(`:`)))return e.subscribeConnection(t,n,r,s,a,o);let c=Dg(s).map(i=>e.subscribeConnection(t,n,r,i.paths,kg(a,i),{...o,onEvent:e=>o.onEvent(`edge`in e?{...e,edge:{...e.edge,node:Og(e.edge.node,i.tree)}}:e)}));return()=>c.forEach(e=>e())}:void 0}}})),Pg,Fg,Ig,Lg,Rg,zg,Bg,Vg,Hg,Ug,Wg,Gg,Kg,qg,Jg=o((()=>{Eg(),Pg=(e,t)=>{let n=typeof e;if(n===`function`||n===`symbol`)throw Error(`fate: Argument '${t}' must be serializable. Received '${n}'.`)},Fg=(e,t)=>{if(Array.isArray(e))return e.map((e,n)=>Fg(e,`${t}[${n}]`));if(Tg(e)){let n={};for(let[r,i]of Object.entries(e))n[r]=Fg(i,`${t}.${r}`);return n}return Pg(e,t),e},Ig=(e,t)=>Fg(e,t),Lg=new Set([`after`,`before`,`cursor`,`first`,`last`]),Rg=e=>{if(e===null)return`null`;let t=typeof e;if(t===`number`||t===`boolean`||t===`bigint`)return`${t}:${String(e)}`;if(t===`string`)return`string:${JSON.stringify(e)}`;if(t===`undefined`)return`undefined`;if(Array.isArray(e))return`array:[${e.map(Rg).join(`,`)}]`;if(typeof e==`object`)return`object:{${Object.entries(e).map(([e,t])=>[e,t]).sort(([e],[t])=>e<t?-1:+(e>t)).map(([e,t])=>`${JSON.stringify(e)}:${Rg(t)}`).join(`,`)}}`;throw Error(`fate: Unable to serialize argument value of type '${t}'.`)},zg=(e,t={})=>{let n={};for(let[r,i]of Object.entries(e))t.ignoreKeys&&t.ignoreKeys.has(r)||(n[r]=i);return Rg(n)},Bg=e=>{if(!e)return;let t={};for(let[n,r]of Object.entries(e))Lg.has(n)||(t[n]=r);return Object.keys(t).length>0?t:void 0},Vg=(e,t)=>{for(let[n,r]of Object.entries(t)){if(Tg(r)){let t=e[n];Tg(t)?Vg(t,r):e[n]={...r};continue}e[n]=r}},Hg=e=>{if(!e||e.args.size===0)return;let t={};for(let[n,r]of e.args.entries()){if(n===``){Vg(t,r.value);continue}let e=n.split(`.`),i=t;e.forEach((t,n)=>{if(n===e.length-1){let e=i[t];Tg(e)?Vg(e,r.value):i[t]={...r.value};return}let a=i[t];if(Tg(a)){i=a;return}let o={};i[t]=o,i=o})}return t},Ug=e=>!!(e&&Object.keys(e).length>0),Wg=(e,t)=>{if(!Ug(e)&&!Ug(t))return;let n=Ug(e)?{...e}:{};return Ug(t)&&Vg(n,t),n},Gg=(e,t)=>{if(!e)return;if(t===``)return e;let n=t.split(`.`),r=e;for(let e of n)if(!Tg(r)||(r=r[e],r===void 0))return;return Tg(r)?r:void 0},Kg=(e,t)=>{for(let[n,r]of e.args.entries()){let i=n===``?t:Gg(t,n);if(!i)continue;let a=Ig(i,n),o=n?`${n}.`:``;for(let t of e.args.keys())if(t!==n&&t.startsWith(o)){let e=t.slice(o.length).split(`.`)[0];Object.hasOwn(r.value,e)||delete a[e]}let s=zg(a,{ignoreKeys:r.ignoreKeys});e.args.set(n,{hash:s,ignoreKeys:r.ignoreKeys,value:a})}},qg=(e,t)=>{let n=t.split(`.`),r={},i=r;return n.forEach((t,r)=>{if(r===n.length-1){i[t]=e;return}let a={};i[t]=a,i=a}),r}}));function Yg(e){let t={};return Object.defineProperty(t,ug,{configurable:!1,enumerable:!1,value:e,writable:!1}),Object.freeze(t)}function Xg(e){return!e||typeof e!=`object`?!1:ug in e}function Zg(e){return e[ug]}var Qg,$g,e_,t_,n_,r_,i_,a_,o_,s_,c_,l_,u_,d_,f_,p_,m_,h_,g_,__,v_,y_,b_,x_,S_,C_,w_,T_,E_=o((()=>{gg(),Qg=64,$g={maxCollectionLength:1e5,maxNodes:25e4,maxStringLength:1e6},e_=e=>{let t={...$g,...e};for(let[e,n]of Object.entries(t))if(!Number.isInteger(n)||n<1)throw Error(`fate: Hydration limit '${e}' must be a positive integer.`);return t},t_=(e,t)=>Error(`fate: Cannot serialize hydration value at '${e}': ${t}`),n_=e=>{let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},r_=e=>{for(let t=0;t<e.length;t+=1)if(!Object.hasOwn(e,t))return!1;return!0},i_=e=>Object.prototype.toString.call(e)===`[object Date]`&&typeof e.getTime==`function`&&typeof e.toISOString==`function`,a_=(e,t)=>{let n=e_(t),r=new Set,i=0,a=(e,t,o)=>{if(i+=1,i>n.maxNodes)throw t_(t,`Maximum node count of ${String(n.maxNodes)} exceeded.`);if(o>Qg)throw t_(t,`Maximum depth of ${String(Qg)} exceeded.`);if(e===null)return[`null`];let s=typeof e;if(typeof e==`string`||typeof e==`boolean`){if(typeof e==`string`&&e.length>n.maxStringLength)throw t_(t,`Maximum string length of ${String(n.maxStringLength)} exceeded.`);return[typeof e,e]}if(s===`number`)return Number.isNaN(e)?[`number`,`NaN`]:e===1/0?[`number`,`Infinity`]:e===-1/0?[`number`,`-Infinity`]:Object.is(e,-0)?[`number`,`-0`]:[`number`,e];if(s===`undefined`)return[`undefined`];if(s===`bigint`){let r=String(e);if(r.length>n.maxStringLength)throw t_(t,`Maximum string length of ${String(n.maxStringLength)} exceeded.`);return[`bigint`,r]}if(s===`function`||s===`symbol`||!e||typeof e!=`object`)throw t_(t,`Received unsupported '${s}' value.`);if(Xg(e)){let r=Zg(e);if(r.length>n.maxStringLength)throw t_(t,`Maximum string length of ${String(n.maxStringLength)} exceeded.`);return[`ref`,r]}if(i_(e)){if(Number.isNaN(e.getTime()))throw t_(t,`Received an invalid Date.`);return[`date`,e.toISOString()]}if(r.has(e))throw t_(t,`Circular references are not supported.`);r.add(e);try{if(Array.isArray(e)){if(!r_(e))throw t_(t,`Sparse arrays are not supported.`);if(e.length>n.maxCollectionLength)throw t_(t,`Maximum collection length of ${String(n.maxCollectionLength)} exceeded.`);return[`array`,e.map((e,n)=>a(e,`${t}[${String(n)}]`,o+1))]}if(!n_(e))throw t_(t,`Received unsupported '${e.constructor?.name??`object`}' value.`);if(Object.getOwnPropertySymbols(e).length>0)throw t_(t,`Received an unsupported symbol-keyed property.`);let r=Object.entries(e);if(r.length>n.maxCollectionLength)throw t_(t,`Maximum collection length of ${String(n.maxCollectionLength)} exceeded.`);return[`object`,r.map(([e,r])=>{if(e.length>n.maxStringLength)throw t_(t,`Maximum string length of ${String(n.maxStringLength)} exceeded.`);return[e,a(r,`${t}.${e}`,o+1)]})]}finally{r.delete(e)}};return a(e,`data`,0)},o_=e=>Error(`fate: Invalid hydration payload at '${e}'.`),s_={array:2,bigint:2,boolean:2,date:2,null:1,number:2,object:2,ref:2,string:2,undefined:1},c_=(e,t)=>{let n=e_(t),r=0,i=(e,t,a)=>{if(r+=1,r>n.maxNodes||a>Qg||!Array.isArray(e)||typeof e[0]!=`string`)throw o_(t);let[o,s]=e;if(e.length!==s_[o])throw o_(t);switch(o){case`null`:return null;case`undefined`:return;case`string`:if(typeof s!=`string`||s.length>n.maxStringLength)throw o_(t);return s;case`boolean`:if(typeof s!=`boolean`)throw o_(t);return s;case`number`:if(typeof s==`number`){if(!Number.isFinite(s)||Object.is(s,-0))throw o_(t);return s}if(s===`NaN`)return NaN;if(s===`Infinity`)return 1/0;if(s===`-Infinity`)return-1/0;if(s===`-0`)return-0;throw o_(t);case`bigint`:if(typeof s!=`string`||s.length>n.maxStringLength)throw o_(t);try{let e=BigInt(s);if(String(e)!==s)throw o_(t);return e}catch{throw o_(t)}case`date`:{if(typeof s!=`string`||s.length>n.maxStringLength)throw o_(t);let e=new Date(s);if(Number.isNaN(e.getTime())||e.toISOString()!==s)throw o_(t);return e}case`ref`:if(typeof s!=`string`||s.length>n.maxStringLength)throw o_(t);return Yg(s);case`array`:if(!Array.isArray(s)||!r_(s)||s.length>n.maxCollectionLength)throw o_(t);return s.map((e,n)=>i(e,`${t}[${String(n)}]`,a+1));case`object`:{if(!Array.isArray(s)||s.length>n.maxCollectionLength)throw o_(t);let e=Object.create(null);for(let r of s){if(!Array.isArray(r)||r.length!==2||typeof r[0]!=`string`||r[0].length>n.maxStringLength||r[0]in e)throw o_(t);e[r[0]]=i(r[1],`${t}.${r[0]}`,a+1)}return e}default:throw o_(t)}};return i(e,`data`,0)},l_=e=>{if(!e||typeof e!=`object`||Array.isArray(e)||Xg(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},u_=e=>Array.isArray(e)&&e.every(e=>typeof e==`string`),d_=e=>new Set(e).size!==e.length,f_=e=>u_(e)&&!d_(e),p_=(e,t)=>Object.keys(e).every(e=>t.has(e)),m_=new Set([`backwardPageLimit`,`cursors`,`forwardPageLimit`,`ids`,`liveAfterIds`,`liveBeforeIds`,`pagination`,`pendingAfterIds`,`pendingBeforeIds`]),h_=new Set([`hasNext`,`hasPrevious`,`nextCursor`,`previousCursor`]),g_=new Set([`rootLists`,`rootRequests`,`rootValues`,`store`]),__=new Set([`coverage`,`lists`,`records`]),v_=e=>Array.isArray(e)&&e.length===2&&typeof e[0]==`string`,y_=e=>e===void 0||typeof e==`number`&&Number.isInteger(e)&&e>=0,b_=e=>e===void 0||l_(e)&&p_(e,h_)&&typeof e.hasNext==`boolean`&&typeof e.hasPrevious==`boolean`&&(e.nextCursor===void 0||typeof e.nextCursor==`string`)&&(e.previousCursor===void 0||typeof e.previousCursor==`string`),x_=e=>!l_(e)||!p_(e,m_)||!u_(e.ids)||d_(e.ids)||e.cursors!==void 0&&(!Array.isArray(e.cursors)||e.cursors.length!==e.ids.length)?!1:(e.cursors===void 0||Array.isArray(e.cursors)&&e.cursors.every(e=>e===void 0||typeof e==`string`))&&(e.liveAfterIds===void 0||f_(e.liveAfterIds))&&(e.liveBeforeIds===void 0||f_(e.liveBeforeIds))&&y_(e.backwardPageLimit)&&y_(e.forwardPageLimit)&&b_(e.pagination)&&(e.pendingAfterIds===void 0||f_(e.pendingAfterIds))&&(e.pendingBeforeIds===void 0||f_(e.pendingBeforeIds)),S_=e=>e.length>0&&e.split(`.`).every(e=>e.length>0),C_=e=>f_(e)&&e.every(S_),w_=e=>d_(e.map(e=>e[0])),T_=(e,t)=>{let n=c_(e,t);if(!l_(n)||!p_(n,g_)||!Array.isArray(n.rootLists)||!Array.isArray(n.rootRequests)||n.rootValues!==void 0&&!Array.isArray(n.rootValues)||!l_(n.store)||!p_(n.store,__)||!Array.isArray(n.store.coverage)||!Array.isArray(n.store.lists)||!Array.isArray(n.store.records)||n.rootLists.some(e=>!v_(e)||!u_(e[1]))||n.rootRequests.some(e=>!v_(e)||e[1]!==null&&typeof e[1]!=`string`)||n.rootValues?.some(e=>!v_(e))||n.store.coverage.some(e=>!v_(e)||!C_(e[1]))||n.store.lists.some(e=>!v_(e)||!x_(e[1]))||n.store.records.some(e=>!v_(e)||!l_(e[1]))||w_(n.rootLists)||w_(n.rootRequests)||n.rootValues&&w_(n.rootValues)||w_(n.store.coverage)||w_(n.store.lists)||w_(n.store.records)||n.rootLists.some(([,e])=>d_(e)))throw o_(`data`);return n}})),D_,O_,k_,A_=o((()=>{D_=class extends Error{constructor(e,t,n={}){super(t),this.name=`FateRequestError`,this.code=e,this.issues=n.issues,this.status=n.status??O_(e)}},O_=e=>{switch(e){case`BAD_REQUEST`:case`VALIDATION_ERROR`:return 400;case`UNAUTHORIZED`:return 401;case`FORBIDDEN`:return 403;case`NOT_FOUND`:return 404;case`INTERNAL_ERROR`:return 500}},k_=e=>e===400?`BAD_REQUEST`:e===401?`UNAUTHORIZED`:e===403?`FORBIDDEN`:e===404?`NOT_FOUND`:`INTERNAL_ERROR`}));function j_(e){return Object.freeze({[fg]:e})}function M_(e){return rv[e]??500}function N_(e){return M_(e.code)}function P_(){let e=hv();function t(t){let n=(e,t,n)=>{let r=Object.freeze({definition:n,select:e,[cg]:!0}),i=Object.freeze({[t]:r});return av.set(r,i),i},r=ng(e);if(typeof t==`function`){let i=i=>{let a=Ig(i,`parameters`),o=zg(a);return n(t(a),ng(`${e}:${o}`),r)};return Object.defineProperty(i,iv,{value:r}),Object.defineProperty(i,r,{enumerable:!0,get(){throw Error(`fate: Bind the view parameters before spreading a view.`)}}),Object.freeze(i)}return n(t,r)}return t}function F_(e){let t=e.indexOf(`:`);return t<0?{id:e,type:``}:{id:e.slice(t+1),type:e.slice(0,t)}}function I_(e,t){Object.defineProperty(e,lg,{configurable:!1,enumerable:!1,value:t,writable:!1})}function L_(e,t,n){let r={__typename:e,id:t};return I_(r,n),Object.freeze(r)}function R_(e,t,n,r=!1){let{args:i,delete:a,entity:o,input:s,insert:c,key:l,optimistic:u,plan:d}=t;if(!n){if(a||u)throw Error(`fate: Value mutation '${l}' does not support entity updates.`);return{commit:e=>{},entityId:null,execute:t=>e.executeMutation(l,s,d?.paths??new Set,{args:i,identity:t}),rollback:()=>{}}}let f=Tv(n.getId,s),p=u?f==null?u:{id:f,...u}:void 0,m=p?Tv(n.getId,p):null,h=f==null?m==null?null:gv(o,m):gv(o,f),g=p?wv(p):void 0,_=new Set([...d?.paths??[],...g??[]]);if(a&&f==null)throw Error(`fate: Mutation '${l}' requires an 'id' to delete.`);let v=e.store.optimisticUpdate(()=>{p&&h&&e.write(o,p,g??Ev,d,c),a&&f!=null&&e.deleteRecord(o,f)},r);return{commit:t=>v(()=>{if(t&&typeof t==`object`&&(!a||d)){e.write(o,t,wv(t),d,c);let r=Tv(n.getId,t);h&&r!=null&&e.resolveOptimisticEntity(h,gv(o,r)),m!=null&&r!=null&&m!==r&&e.deleteRecord(o,m)}a&&f!=null&&e.deleteRecord(o,f)}),entityId:h,execute:t=>e.executeMutation(l,s,_,{args:i,identity:t,plan:d}),rollback:()=>v()}}function z_(e,t){let n=t.entity===`__value__`?void 0:e.getTypeConfig(t.entity);return async({args:r,delete:i,input:a,insert:o=`after`,optimistic:s,persist:c,select:l,view:u})=>{let d={args:r,delete:i,entity:t.entity,input:a,insert:o,key:t.key,optimistic:s,plan:u?Sv(u,null):l?Sv(l,null):void 0};if(e.persistence&&c!==!1)try{return{error:void 0,result:await e.withPersistenceLifecycle(()=>e.persistMutation(d))}}catch(e){return Dv(t.key,e)}e.persistence&&await e.withPersistenceLifecycle(()=>e.persistence.ready),e.assertPersistenceActive();let f=R_(e,d,n),p=e.trackPendingRequest(async()=>{try{let t=await f.execute();return e.assertPersistenceActive(),f.commit(t),{error:void 0,result:t}}catch(e){return f.rollback(),Dv(t.key,e)}});return f.entityId&&e.registerPendingOptimisticMutation(f.entityId,p),p}}function B_(){return{all:!1,children:new Map}}function V_(e){let t={all:e.all,children:new Map};for(let[n,r]of e.children)t.children.set(n,V_(r));return t}function H_(e,t){if(e.all)return;let n=t.split(`.`),r=e;for(let e=0;e<n.length;e++){let t=n[e],i=r.children.get(t);i||(i=B_(),r.children.set(t,i)),r=i}r.all=!0,r.children.clear()}function U_(e,t){if(e.all||t.all){e.all=!0,e.children.clear();return}for(let[n,r]of t.children){let t=e.children.get(n);t?U_(t,r):e.children.set(n,V_(r))}}function W_(e){let t=B_();for(let n of e)H_(t,n);return t}function G_(e){let t=[],n=(e,r)=>{if(e.all){r&&t.push(r);return}for(let[t,i]of e.children)n(i,r?`${r}.${t}`:t)};return n(e,null),t}function K_(e,t){if(e.all)return!0;let n=t.split(`.`),r=e;for(let e=0;e<n.length;e++){if(!r)return!1;if(r.all)return!0;r=r.children.get(n[e])}return!!r&&(r.all||r.children.size===0)}function q_(e,t){let n=new Set;for(let r of e)K_(t,r)||n.add(r);return n}function J_(e,t){if(e.all||t.all)return!0;for(let[n,r]of e.children){let e=t.children.get(n);if(e&&(r.all||e.all||J_(r,e)))return!0}return!1}var Y_,X_,Z_,Q_,$_,ev,tv,nv,rv,iv,av,ov,sv,cv,lv,uv,dv,fv,pv,mv,hv,gv,_v,vv,yv,bv,xv,Sv,Cv,wv,Tv,Ev,Dv,Ov,kv,Av,jv,Mv,Nv,Pv,Fv,Iv,Lv,Rv,zv,Bv,Vv,Hv,Uv,Wv,Gv=o((()=>{gg(),wg(),Eg(),Jg(),E_(),A_(),Y_=e=>typeof e==`object`&&!!e&&fg in e,X_=e=>e[fg],Z_=e=>Object.freeze({[pg]:e}),Q_=e=>typeof e==`object`&&!!e&&pg in e,$_=e=>e[pg],ev=(e,t)=>t&&t!==`object:{}`?`${e}(${encodeURIComponent(t).replaceAll(`.`,`%2E`)})`:e,tv=(e,t)=>ev(xg(e.slice(e.lastIndexOf(`.`)+1)),t?.args.get(e)?.hash),nv=(e,t,n=``)=>{let r=n;return e.split(`.`).map(e=>(r=r?`${r}.${e}`:e,tv(r,t))).join(`.`)},rv={PARSE_ERROR:400,BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,METHOD_NOT_SUPPORTED:405,TIMEOUT:408,CONFLICT:409,PRECONDITION_FAILED:412,PAYLOAD_TOO_LARGE:413,UNSUPPORTED_MEDIA_TYPE:415,UNPROCESSABLE_CONTENT:422,PRECONDITION_REQUIRED:428,TOO_MANY_REQUESTS:429,CLIENT_CLOSED_REQUEST:499,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENTED:501,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504},iv=Symbol(`fate.parameterized-view`),av=new WeakMap,ov=new WeakMap,sv=(e,t,n)=>{e.add(t);let r=ov.get(e);r||(r=new Map,ov.set(e,r)),r.set(t,n)},cv=(e,t)=>{if(typeof e!=`function`||!(iv in e))return e;let n=e[iv],r=[...ov.get(t?.[lg]??new Set)?.values()??[]].filter(e=>e.definition===n);if(r.length!==1)throw Error(r.length?`fate: Multiple bindings for this view are ambiguous. Use named fragment aliases.`:`fate: Bind the view parameters before creating a request or ref.`);return av.get(r[0])},lv=(e,t)=>{e=cv(e,t);let n=[];for(let[r,i]of Object.entries(e))rg(r)&&(!t||t[lg]?.has(r))&&n.push(i);return n},uv=e=>{e=cv(e,null);let t=new Set;for(let[n,r]of Object.entries(e))rg(n)&&sv(t,n,r);return t},dv=0,fv={BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1},pv=typeof fv?.DEV==`boolean`&&fv.DEV,mv=null,hv=()=>{if(pv)try{mv??=new URL({}.url).pathname;let e=Error().stack?.split(`
57
- `);if(e)for(let t=1;t<e.length;t++){let n=e[t].trim().match(/\(?([^()]+):(\d+):(\d+)\)?$/);if(!n)continue;let[,r,i,a]=n;if(!r.includes(mv)){let e=r.startsWith(`at `)?r.slice(3):r;return`${/^[A-Za-z][\d+.A-Za-z-]*:/.test(e)?new URL(e).pathname:e}:${i}:${a}`}}}catch{}return String(dv++)},gv=(e,t)=>`${e}:${String(t)}`,_v=e=>{let t=uv(e),n=lv(e,null);for(let e of n)for(let[n,r]of Object.entries(e.select))rg(n)&&sv(t,n,r);return t},vv=Symbol(`fate.condition`),yv=e=>!!(e&&typeof e==`object`&&vv in e),bv=e=>{for(;yv(e);){if(!e.condition)return;e=e.selection}return e},xv=e=>Tg(e.items)&&`node`in e.items,Sv=(e,t,n)=>{let r=new Map,i=new Map,a=new Set,o=new Map,s=(e,t,n)=>{let i=r.get(e);if(i&&zg(i.value)!==zg(t))throw Error(`fate: Conflicting arguments for '${e}'. Use distinct aliases.`);let a=zg(t,{ignoreKeys:n});r.set(e,{hash:a,ignoreKeys:n,value:t})},c=(e,r,l=`default`,u=[])=>{if(r===null&&l!==`connection`&&xv(e)){if(e.live&&Tg(e.live)&&i.set(``,{append:e.live.append===`visible`?`visible`:`edge`,prepend:e.live.prepend===`visible`?`visible`:`edge`}),e.args&&Tg(e.args)){let t=Ig(e.args,`args`),n=Tg(e.items)&&Tg(e.items.node)?Lg:void 0;s(``,t,n)}let{args:t,live:n,...a}=e;c(a,r,`connection`,u);return}for(let[d,f]of Object.entries(e)){let e=bv(f);if(e===void 0)continue;if(yg(e)){Cg(d,d);for(let t of lv(e.view,null))c(t.select,r,l,[...u,d]);continue}let p=bg(e)?e.selection:e,m=bg(e)?e.field:d,h=bg(e)?Cg(d,m):d,g=u.length&&!rg(d)?`fate_fragment_${[...u,d].map(e=>`${e.length}_${e}`).join(`_`)}:${m}`:h,_=typeof p;if(_===`function`)throw Error(`fate: Bind the view parameters before using a view in a selection.`);let v=r?`${r}.${g}`:g;if(l===`connection`){if(d===`args`||d===`live`||d===`pagination`)continue;if(d===`items`&&Tg(p)){Tg(p.node)&&c(p.node,r);continue}}if(!rg(d)&&!Y_(p)){let e=v.split(`.`).map(Sg).join(`.`),t=o.get(e);if(t&&t!==v)throw Error(`fate: Conflicting alias selections for '${e}'.`);o.set(e,v)}if(_===`boolean`){p&&a.add(v);continue}if(!Y_(p)){if(rg(d)){(n?.includeNestedViews||!t||t[lg]?.has(d))&&c(p.select,r,l,u);continue}if(Tg(p)){let e=p;if(xv(e)){if(e.live&&Tg(e.live)&&i.set(v,{append:e.live.append===`visible`?`visible`:`edge`,prepend:e.live.prepend===`visible`?`visible`:`edge`}),e.args&&Tg(e.args)){let t=Ig(e.args,v),n=Tg(e.items)&&Tg(e.items.node)?Lg:void 0;s(v,t,n)}let{args:t,live:n,...r}=e;c(r,v,`connection`);continue}let t=e.args&&Tg(e.args),n=e;if(t){let t=Ig(e.args,v),r=Tg(e.items)&&Tg(e.items?.node)?Lg:void 0;s(v,t,r);let{args:i,...a}=e;n=a}Object.keys(n).length>0?c(n,v):t&&a.add(v)}}}},l=lv(e,t);if(l.length===0&&Tg(e))c(e,null);else for(let e of l)c(e.select,null);return{args:r,live:i,paths:a}},Cv=(e,t)=>Sv({[e]:t},null),wv=e=>{let t=new Set,n=(e,r)=>{if(!e||typeof e!=`object`){r&&t.add(r);return}if(Array.isArray(e)){r&&t.add(r);for(let t of e)n(t,r);return}for(let[i,a]of Object.entries(e)){let e=r?`${r}.${i}`:i;t.add(e),n(a,e)}};return n(e,null),t},Tv=(e,t)=>{try{return e(t)}catch{return null}},Ev=new Set,Dv=(e,t)=>{if(t instanceof Error){let e=Ov(t);if((e?kv(e):`boundary`)===`boundary`)throw t;return{error:t,result:void 0}}throw Error(`fate: Mutation '${e}' failed.`,{cause:t})},Ov=e=>{if(e instanceof D_)return e.status;let{data:t}=e;if(t&&typeof t==`object`)return N_(t)},kv=e=>{switch(e){case 400:case 402:case 404:case 408:case 409:case 412:case 413:case 415:case 422:case 429:case 499:return`callSite`;default:return`boundary`}},Av=` __fate__ `,jv=e=>{try{return decodeURIComponent(e)}catch{return e}},Mv=e=>encodeURIComponent(e),Nv=(e,t,n=`default`)=>`${Mv(e)}${Av}${Mv(t)}${Av}${Mv(n)}`,Pv=(e,t)=>JSON.stringify([e,t]),Fv=e=>{let t=e.split(Av);if(t.length!==3)return null;let[n,r,i]=t;return{field:jv(r),hash:i==="default"?void 0:jv(i),ownerId:jv(n)}},Iv=e=>{if(typeof e!=`object`||!e||Array.isArray(e)||Xg(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},Lv=e=>typeof e==`object`&&!!e&&Object.prototype.toString.call(e)===`[object Date]`&&typeof e.getTime==`function`,Rv=(e,t)=>{if(!Iv(e)||!Iv(t))return t;let n=Object.create(null);for(let[t,r]of Object.entries(e))Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0});for(let[e,r]of Object.entries(t))Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:Object.hasOwn(n,e)?Rv(n[e],r):r,writable:!0});return n},zv=(e,t)=>{if(Object.is(e,t))return!0;if(Xg(e)||Xg(t))return Xg(e)&&Xg(t)&&Zg(e)===Zg(t);if(Lv(e)||Lv(t))return Lv(e)&&Lv(t)&&e.getTime()===t.getTime();if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((e,n)=>zv(e,t[n]));if(!Iv(e)||!Iv(t))return!1;let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>Object.hasOwn(t,n)&&zv(e[n],t[n]))},Bv=(e,t)=>{if(e===t||e?.all&&t?.all)return!0;if(!e||!t||e.all!==t.all||e.children.size!==t.children.size)return!1;for(let[n,r]of e.children)if(!Bv(r,t.children.get(n)))return!1;return!0},Vv=()=>{},Hv=e=>Xg(e)||Array.isArray(e)&&e.some(Xg),Uv=(e,t)=>Object.is(e,t)||Xg(e)&&Xg(t)&&Zg(e)===Zg(t)||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((e,n)=>Uv(e,t[n])),Wv=class{constructor(e,t){this.onRebase=e,this.onChange=t,this.coverage=new Map,this.listKeysByOwnerField=new Map,this.listKeysByReferencedEntity=new Map,this.lists=new Map,this.recordReferenceFields=new Map,this.recordReferencesByTarget=new Map,this.records=new Map,this.subscriptions=new Map,this.listSubscriptions=new Map,this.optimisticLayers=new Set,this.optimisticBase={lists:new Map,records:new Map}}get hasOptimisticUpdates(){return this.optimisticLayers.size>0}get isRecordingOptimistic(){return this.recordingLayer!==void 0}get isRebasing(){return this.rebase!==void 0}update(e){if(this.rebase||this.optimisticLayers.size===0)return e();let t={lists:new Map,records:new Map};this.rebase=t;try{for(let[e,t]of this.optimisticBase.records)this.restore(e,t);for(let[e,t]of this.optimisticBase.lists)this.restoreList(e,t);return this.optimisticBase.records.clear(),this.optimisticBase.lists.clear(),e()}finally{try{for(let e of this.optimisticLayers)e.writes.clear(),this.recordingLayer=e,e.apply()}finally{this.recordingLayer=void 0;let e=this.getRebaseChanges(t),n=new Set;for(let[r,i]of t.lists)if(zv(i,this.lists.get(r)))i&&this.lists.set(r,i);else{n.add(r);let t=Fv(r);t&&(e.has(t.ownerId)?e.get(t.ownerId)?.add(ev(t.field,t.hash)):e.set(t.ownerId,new Set([ev(t.field,t.hash)])))}this.rebase=void 0,this.onRebase?.(new Set(e.keys()),n);for(let[t,n]of e)this.notify(t,n,!1);for(let e of n)this.notifyListSubscribers(e,!1)}}}getRebaseChanges(e){let t=new Map;for(let[n,r]of e.records){let e=this.records.get(n),i=this.coverage.get(n);if(!!r.record!=!!e||r.mask?.all!==i?.all){t.set(n,void 0);continue}let a=new Set;for(let t of new Set([...Object.keys(r.record??{}),...Object.keys(e??{})]))(Object.hasOwn(r.record??{},t)!==Object.hasOwn(e??{},t)||!Uv(r.record?.[t],e?.[t]))&&a.add(t);if(!Bv(r.mask,i)){for(let e of r.mask?G_(r.mask):[])(!i||!K_(i,e))&&a.add(e);for(let e of i?G_(i):[])(!r.mask||!K_(r.mask,e))&&a.add(e)}a.size>0?t.set(n,a):r.record&&this.records.set(n,r.record)}return t}optimisticUpdate(e,t=!1){let n={apply:e,durable:t,writes:new Map},r=e=>{this.optimisticLayers.has(n)&&!n.settled&&this.update(()=>{let t=e?this.getPendingOverlap(n,n.writes):new Map;t.size>0?(n.settled=!0,n.apply=()=>{for(let[e,{partial:r,paths:i}]of this.getPendingOverlap(n,t))this.merge(e,r,i)}):this.optimisticLayers.delete(n);for(let e of this.optimisticLayers){if(!e.settled)break;this.optimisticLayers.delete(e)}e?.()})};this.optimisticLayers.add(n);try{this.update(()=>{})}catch(e){throw r(),e}return r}getPendingOverlap(e,t){let n=[];for(let t of this.optimisticLayers){if(t===e)break;t.settled||n.push(t)}let r=new Map;for(let[e,i]of t){let t=Object.fromEntries(Object.entries(i.partial).filter(([t,r])=>!Hv(r)&&n.some(({writes:n})=>{let r=n.get(e)?.partial;return r&&Object.hasOwn(r,t)&&!Hv(r[t])})));Object.keys(t).length&&r.set(e,{partial:t,paths:new Set([...i.paths].filter(e=>Object.hasOwn(t,e.split(`.`)[0])))})}return r}captureRecord(e){if(this.rebase){for(let t of[this.rebase,this.recordingLayer&&this.optimisticBase])if(t&&!t.records.has(e)){let n=this.coverage.get(e);t.records.set(e,{mask:n?V_(n):void 0,record:this.records.get(e)})}}}captureList(e){if(this.rebase)for(let t of[this.rebase,this.recordingLayer&&this.optimisticBase])t&&!t.lists.has(e)&&t.lists.set(e,this.lists.get(e))}get hasTransientOptimisticUpdates(){return[...this.optimisticLayers].some(e=>!e.durable)}getOptimisticRoots(){return{baseRecords:[...this.optimisticBase.records.values()].flatMap(({record:e})=>e?[e]:[]),lists:[...this.optimisticBase.lists.keys()],records:[...this.optimisticBase.records.keys(),...[...this.optimisticBase.lists.values()].flatMap(e=>e?[...e.ids,...e.pendingBeforeIds??[],...e.pendingAfterIds??[],...e.liveBeforeIds??[],...e.liveAfterIds??[]]:[])]}}getPersistenceOwners(e){return{lists:[...this.listKeysByReferencedEntity.get(e)??[]],records:[...this.recordReferencesByTarget.get(e)?.keys()??[]]}}getListKeysForEntity(e){return[...this.listKeysByReferencedEntity.get(e)??[]]}readConfirmed(e){let t=this.optimisticBase.records.get(e),n=t?t.record:this.records.get(e),r=t?t.mask:this.coverage.get(e);return n?{paths:r?G_(r):[],record:n}:void 0}readConfirmedList(e){return this.optimisticBase.lists.has(e)?this.optimisticBase.lists.get(e):this.lists.get(e)}dehydrateConfirmed(){let e=new Map(this.records),t=new Map(this.coverage),n=new Map(this.lists);for(let[n,r]of this.optimisticBase.records)r.record===void 0?e.delete(n):e.set(n,r.record),r.mask===void 0?t.delete(n):t.set(n,r.mask);for(let[e,t]of this.optimisticBase.lists)t===void 0?n.delete(e):n.set(e,t);return{coverage:[...t].map(([e,t])=>[e,G_(t)]),lists:[...n],records:[...e]}}dehydrate(){return{coverage:[...this.coverage].map(([e,t])=>[e,G_(t)]),lists:[...this.lists],records:[...this.records]}}hydrate(e,t,n={}){let r=this.coverage,i=this.lists,a=this.records,o=t===`replace`?new Map:new Map([...r].map(([e,t])=>[e,V_(t)])),s=t===`replace`?new Map:new Map(i),c=t===`replace`?new Map:new Map(a);for(let[n,r]of e.records){let e=c.get(n),i=e&&t===`preserve-existing`?Rv(r,e):r;c.set(n,e&&zv(e,i)?e:i)}for(let[n,r]of e.coverage){let e=W_(r),i=o.get(n);i&&t===`preserve-existing`?U_(i,e):o.set(n,e)}for(let[n,r]of e.lists){let e=s.get(n);(t===`replace`||!e)&&s.set(n,e&&zv(e,r)?e:r)}this.coverage=o,this.lists=s,this.records=c,this.rebuildIndexes();let l=new Set,u=new Set;for(let e of new Set([...a.keys(),...c.keys()]))(!zv(a.get(e),c.get(e))||!Bv(r.get(e),o.get(e)))&&(l.add(e),this.recordReferencesChanged(a.get(e),c.get(e))&&u.add(e));let d=new Set;for(let e of new Set([...i.keys(),...s.keys()]))zv(i.get(e),s.get(e))||d.add(e);let f=()=>{for(let e of l)this.notify(e,void 0,!0,u.has(e));for(let e of d)this.notifyListSubscribers(e)};return n.deferNotifications||f(),f}rebuildIndexes(){this.listKeysByOwnerField.clear(),this.listKeysByReferencedEntity.clear(),this.recordReferenceFields.clear(),this.recordReferencesByTarget.clear();for(let[e,t]of this.records)this.addRecordReferenceIndexes(e,t);for(let[e,t]of this.lists)this.addListIndexes(e,t)}read(e){return this.records.get(e)}merge(e,t,n){return this.update(()=>{let r=this.mergeInternal(e,t,n);r&&this.notify(e,r.paths,!0,r.referencesChanged)})}mergeInternal(e,t,n){this.captureRecord(e);let r=this.recordingLayer?new Set(n):n;if(this.recordingLayer){let n=this.recordingLayer.writes.get(e)??{partial:{},paths:new Set};Object.assign(n.partial,t);for(let e of r)n.paths.add(e);this.recordingLayer.writes.set(e,n)}let i=this.records.get(e),a=new Set,o=this.coverage.get(e);if(o||(o=B_(),this.coverage.set(e,o)),U_(o,W_(r)),i){let n=!1;for(let[e,r]of Object.entries(t))i[e]!==r&&(n=!0,a.add(e));if(!n)return null;let r={...i,...t},o=this.recordReferencesChanged(i,r,a);return this.records.set(e,r),this.updateRecordReferenceIndexes(e,i,r,a),{paths:a,referencesChanged:o}}{let n={...t};return this.records.set(e,n),this.updateRecordReferenceIndexes(e,void 0,n,Object.keys(n)),{paths:a,referencesChanged:this.recordReferencesChanged(void 0,n)}}}deleteRecord(e){return this.update(()=>{this.captureRecord(e);let t=this.records.get(e);t&&this.removeRecordReferenceIndexes(e,t),this.records.delete(e),this.coverage.delete(e),this.recordingLayer||this.onChange?.({key:e,kind:`record`,referencesChanged:!0})})}missingForSelection(e,t){let n=new Set(t);if(!this.records.has(e))return n;let r=this.coverage.get(e);return r?q_(n,r):n}subscribe(e,t,n){let r=null,i=Vv;typeof t==`function`?i=t:n&&(r=t?W_(t):null,i=n);let a=this.subscriptions.get(e);a||(a=new Set,this.subscriptions.set(e,a));let o={fn:i,mask:r};return a.add(o),()=>{let t=this.subscriptions.get(e);t&&(t.delete(o),t.size===0&&this.subscriptions.delete(e))}}notify(e,t,n=!0,r=!1){if(n&&!this.recordingLayer&&this.onChange?.({key:e,kind:`record`,paths:t,referencesChanged:r}),this.rebase)return;let i=this.subscriptions.get(e);if(!i)return;let a=t?[...t]:[],o=a.length>0?W_(a):null;for(let{fn:e,mask:t}of i)if(!(t&&o&&!J_(o,t)))try{e()}catch{}}notifyListSubscribers(e,t=!0,n){if(t&&!this.recordingLayer&&this.onChange?.({key:e,kind:`list`,previousList:n}),this.rebase)return;let r=this.listSubscriptions.get(e);if(r)for(let e of r)try{e()}catch{}}getList(e){return this.lists.get(e)?.ids}getListState(e){return this.lists.get(e)}getListsForField(e,t){let n=[],r=this.listKeysByOwnerField.get(Pv(e,t));if(!r)return n;for(let e of r){let t=this.lists.get(e);t&&n.push([e,t])}return n}setList(e,t){return this.update(()=>{this.captureList(e);let n=this.lists.get(e);n&&this.removeListIndexes(e,n),this.lists.set(e,t),this.addListIndexes(e,t),this.notifyListSubscribers(e,!0,n)})}replaceListEntityId(e,t){return this.update(()=>{let n=[...this.listKeysByReferencedEntity.get(e)??[]];for(let r of n){let n=this.lists.get(r);if(!n)continue;let i=!1,a=n.ids,o=n.cursors;if(n.ids.includes(e)){let r=[],s=n.cursors?[]:void 0,c=new Set;n.ids.forEach((i,a)=>{let o=i===e?t:i;c.has(o)||(c.add(o),r.push(o),s&&s.push(n.cursors?.[a]))}),i=!0,a=r,o=s}let s=n=>{if(!n||!n.includes(e))return;let r=new Set,a=[];for(let i of n){let n=i===e?t:i;r.has(n)||(r.add(n),a.push(n))}return i=!0,a},c=s(n.pendingBeforeIds)??n.pendingBeforeIds,l=s(n.pendingAfterIds)??n.pendingAfterIds,u=s(n.liveBeforeIds)??n.liveBeforeIds,d=s(n.liveAfterIds)??n.liveAfterIds;if(!i)continue;let f=new Set(a);this.setList(r,{backwardPageLimit:n.backwardPageLimit,cursors:o,forwardPageLimit:n.forwardPageLimit,ids:a,liveAfterIds:d?.filter(e=>!f.has(e)),liveBeforeIds:u?.filter(e=>!f.has(e)),pagination:n.pagination,pendingAfterIds:l?.filter(e=>!f.has(e)),pendingBeforeIds:c?.filter(e=>!f.has(e))})}})}restoreList(e,t){return this.update(()=>{t==null?this.deleteList(e):this.setList(e,t)})}collectGarbage(e,t,n={}){let r=new Set,i=new Set;for(let t of this.records.keys())e.has(t)||r.add(t);for(let e of this.lists.keys())t.has(e)||i.add(e);for(let e of r){let t=this.records.get(e);t&&this.removeRecordReferenceIndexes(e,t),this.records.delete(e),this.coverage.delete(e),n.onRecordDeleted?.(e)}for(let e of i)this.deleteList(e,!0);return{lists:i,records:r}}deleteList(e,t=!1){return this.update(()=>{this.captureList(e);let n=this.lists.get(e);n&&this.removeListIndexes(e,n),this.lists.delete(e),this.notifyListSubscribers(e,!t,n)})}subscribeList(e,t){let n=this.listSubscriptions.get(e);return n||(n=new Set,this.listSubscriptions.set(e,n)),n.add(t),()=>{let n=this.listSubscriptions.get(e);n&&(n.delete(t),n.size===0&&this.listSubscriptions.delete(e))}}removeReferencesTo(e,t){return this.update(()=>{let n=[...this.listKeysByReferencedEntity.get(e)??[]];for(let t of n){let n=this.lists.get(t);if(!n)continue;let{ids:r}=n,i=!!n.liveAfterIds?.includes(e),a=!!n.liveBeforeIds?.includes(e),o=!!n.pendingAfterIds?.includes(e),s=!!n.pendingBeforeIds?.includes(e);if(!r.includes(e)&&!i&&!a&&!o&&!s)continue;let c=[],l=n.cursors?[]:void 0;for(let t=0;t<r.length;t++){let i=r[t];i!==e&&(c.push(i),l&&l.push(n.cursors?.[t]))}this.setList(t,{backwardPageLimit:n.backwardPageLimit,cursors:l,forwardPageLimit:n.forwardPageLimit,ids:c,liveAfterIds:n.liveAfterIds?.filter(t=>t!==e),liveBeforeIds:n.liveBeforeIds?.filter(t=>t!==e),pagination:n.pagination,pendingAfterIds:n.pendingAfterIds?.filter(t=>t!==e),pendingBeforeIds:n.pendingBeforeIds?.filter(t=>t!==e)})}let r=new Map,i=[...this.recordReferencesByTarget.get(e)?.entries()??[]];for(let[n,a]of i){let i=this.records.get(n);if(!i)continue;let o=!1,s={},c=new Set;for(let t of a){let n=i[t];if(Array.isArray(n)){let r=n.filter(t=>!(Xg(t)&&Zg(t)===e));r.length!==n.length&&(o=!0,c.add(t),s[t]=r)}else Xg(n)&&Zg(n)===e&&(o=!0,c.add(t),s[t]=null)}o&&(t.invalidate(n),this.mergeInternal(n,s,c),r.set(n,c))}for(let[e,t]of r)this.notify(e,t,!0,!0)})}restore(e,t){return this.update(()=>{this.captureRecord(e);let n=this.records.get(e);n&&this.removeRecordReferenceIndexes(e,n),t.record===void 0?this.records.delete(e):(this.records.set(e,t.record),this.addRecordReferenceIndexes(e,t.record)),t.mask===void 0?this.coverage.delete(e):this.coverage.set(e,t.mask),this.notify(e)})}addListIndexes(e,t){let n=Fv(e);if(n){let t=Pv(n.ownerId,n.field),r=this.listKeysByOwnerField.get(t);r||(r=new Set,this.listKeysByOwnerField.set(t,r)),r.add(e)}for(let n of this.getListReferencedEntityIds(t)){let t=this.listKeysByReferencedEntity.get(n);t||(t=new Set,this.listKeysByReferencedEntity.set(n,t)),t.add(e)}}removeListIndexes(e,t){let n=Fv(e);if(n){let t=Pv(n.ownerId,n.field),r=this.listKeysByOwnerField.get(t);r&&(r.delete(e),r.size===0&&this.listKeysByOwnerField.delete(t))}for(let n of this.getListReferencedEntityIds(t)){let t=this.listKeysByReferencedEntity.get(n);t&&(t.delete(e),t.size===0&&this.listKeysByReferencedEntity.delete(n))}}getListReferencedEntityIds(e){let t=new Set;for(let n of e.ids)t.add(n);for(let n of e.liveAfterIds??[])t.add(n);for(let n of e.liveBeforeIds??[])t.add(n);for(let n of e.pendingAfterIds??[])t.add(n);for(let n of e.pendingBeforeIds??[])t.add(n);return t}getRecordFieldReferences(e){if(Array.isArray(e)){let t=null;for(let n of e)Xg(n)&&(t||=new Set,t.add(Zg(n)));return t}return Xg(e)?new Set([Zg(e)]):null}recordReferencesChanged(e,t,n=new Set([...Object.keys(e??{}),...Object.keys(t??{})])){for(let r of n){let n=this.getRecordFieldReferences(e?.[r]),i=this.getRecordFieldReferences(t?.[r]);if(n?.size!==i?.size)return!0;if(n){for(let e of n)if(!i?.has(e))return!0}}return!1}addRecordFieldReferenceIndex(e,t,n){let r=this.getRecordFieldReferences(n);if(!r||r.size===0)return;let i=this.recordReferenceFields.get(e);i||(i=new Map,this.recordReferenceFields.set(e,i)),i.set(t,r);for(let n of r){let r=this.recordReferencesByTarget.get(n);r||(r=new Map,this.recordReferencesByTarget.set(n,r));let i=r.get(e);i||(i=new Set,r.set(e,i)),i.add(t)}}removeRecordFieldReferenceIndex(e,t){let n=this.recordReferenceFields.get(e),r=n?.get(t);if(n&&r){for(let n of r){let r=this.recordReferencesByTarget.get(n),i=r?.get(e);r&&i&&(i.delete(t),i.size===0&&r.delete(e),r.size===0&&this.recordReferencesByTarget.delete(n))}n.delete(t),n.size===0&&this.recordReferenceFields.delete(e)}}addRecordReferenceIndexes(e,t){for(let[n,r]of Object.entries(t))this.addRecordFieldReferenceIndex(e,n,r)}removeRecordReferenceIndexes(e,t){for(let n of Object.keys(t))this.removeRecordFieldReferenceIndex(e,n)}updateRecordReferenceIndexes(e,t,n,r){for(let i of r)t&&this.removeRecordFieldReferenceIndex(e,i),this.addRecordFieldReferenceIndex(e,i,n[i])}}})),Kv,qv=o((()=>{Kv=e=>{if(!e)return[];let t=[];for(let n of e.pendingBeforeIds??[])t.push({id:n});e.ids.forEach((n,r)=>{t.push({cursor:e.cursors?.[r],id:n})});for(let n of e.pendingAfterIds??[])t.push({id:n});return t}})),Jv,Yv,Xv,Zv,Qv,$v=o((()=>{Jg(),Jv=e=>encodeURIComponent(String(e)),Yv=e=>{let t=Bg(e);if(!t)return;let n=t.id;return typeof n==`string`||typeof n==`number`?{...t,id:String(n)}:t},Xv=(e,t)=>`entity:${Jv(e)}:${Jv(t)}`,Zv=(e,t)=>`connection:${Jv(e)}:${Jv(zg(Yv(t)??{}))}`,Qv=e=>`connection:${Jv(e)}:*`}));function ey(e){return new Ly(e)}function ty({eventSource:e,fetch:t=Gy,headers:n,live:r=!0,liveRetryMs:i=1e3,liveUrl:a,url:o}){let s=Jy(o),c=a?String(a):Yy(s),l=typeof r==`function`?r:void 0,u=r!==!1,d=0,f=[],p=!1,m=e=>new Promise((t,n)=>{f.push({operation:{...e,id:String(++d)},reject:n,resolve:t}),p||(p=!0,queueMicrotask(h))}),h=async()=>{p=!1;let e=f;if(f=[],e.length)try{let r=await t(s,{body:JSON.stringify({operations:e.map(e=>e.operation),version:e.some(e=>e.operation.mutation)?2:1}),headers:await qy({"content-type":`application/json`},n),method:`POST`});if(!r.ok)throw await Xy(r);let i=Zy(await r.json()),a=new Map(i.results.map(e=>[e.id,e]));for(let t of e){let e=a.get(t.operation.id);if(!e){t.reject(Error(`fate(http): Missing result for operation '${t.operation.id}'.`));continue}try{t.resolve(Qy(e))}catch(e){t.reject(e)}}}catch(t){for(let n of e)n.reject(t)}},g={fetchById(e,t,n,r){return m({args:r,ids:t,kind:`byId`,select:[...n],type:e})},fetchList(e,t,n){return m({args:n,kind:`list`,name:e,select:[...t]})},fetchQuery(e,t,n){return m({args:n,kind:`query`,name:e,select:[...t]})},mutate(e,t,n){return m({input:t,kind:`mutation`,name:e,select:[...n]})},mutateDurably(e,t,n,r){return m({input:t,kind:`mutation`,mutation:r,name:e,select:[...n]})}};if(u){let r=new Map,a=e=>{for(let t of new Set(r.values()))Ry(t,e)},o,s,u=0,d=()=>{if(!l)throw Error(`fate(http): A live connector is required for topic subscriptions.`);return o??=l(c,{eventSource:e,fetch:t,headers:n,onError(e){for(let t of new Set(r.values()))t.handlers.onError?.(e)},retryDelay:i,withCredentials:!0})},f=()=>{if(s)return s;let i=e??globalThis.EventSource;if(!i)throw Error(`fate(http): EventSource is required for live views.`);let o=globalThis.crypto?.randomUUID?.()??`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`,l=new Map,u=new Map,d=!1,f=!1,p,m,h=new Promise((e,t)=>{p=e,m=t}),g=new URL(c,typeof globalThis.location==`object`?globalThis.location.href:`http://local`);g.searchParams.set(`connectionId`,o);let _=new i(g.href,{withCredentials:!0}),v=async e=>{if(!d)try{let r=await qy({"content-type":`application/json`},n);if(d)return;let i=await t(c,{body:JSON.stringify({connectionId:o,operations:e,version:1}),headers:r,method:`POST`});if(!i.ok)throw await Xy(i);let a=Zy(await i.json());for(let e of a.results)Qy(e)}catch(e){if(!d)throw e}},y=e=>{let t=u.get(e.id);return t?{...e,lastEventId:t}:e};_.addEventListener(`open`,()=>{if(!f){f=!0,p?.();return}let e=[...l.values()].map(y);e.length>0&&v(e).catch(a)});let b=e=>{let t=JSON.parse(e.data),n=r.get(t.id);if(!n)return;let i=e.lastEventId;if(i&&u.set(t.id,i),t.kind===`error`){Ry(n,By(t));return}if(t.kind===`connection`){`onEvent`in n.handlers&&n.handlers.onEvent(t.event);return}if(`delete`in t.event&&t.event.delete){`onDelete`in n.handlers&&n.handlers.onDelete?.(t.event.id??n.targetId);return}`onData`in n.handlers&&zy(n.handlers,t.event.data,t.event.select)};return _.addEventListener(`error`,e=>{if(`data`in e){b(e);return}f||m?.(e),a(e)}),_.addEventListener(`message`,b),_.addEventListener(`next`,b),_.addEventListener(`connection`,b),s={add(e){l.set(e.id,e),h.then(()=>v([y(e)])).catch(t=>{l.delete(e.id),r.delete(e.id),a(t)})},remove(e){if(l.delete(e),u.delete(e),l.size===0){d=!0,_.close(),s=void 0;return}h.then(()=>v([{id:e,kind:`unsubscribe`}])).catch(a)}},s},p=async(e,t=e.select)=>{let[n]=await g.fetchById(e.type,[e.targetId],t,e.args);return n},m=async(e,t,n)=>{let[r]=await g.fetchById(n,[t],e.select,e.selectionArgs);return r};g.subscribeById=(e,t,n,i,a)=>{let o=String(++u),s={args:i,handlers:a,select:[...n],targetId:t,type:e};if(r.set(o,s),!l)return f().add({args:i,entityId:t,id:o,kind:`subscribe`,select:[...n],type:e}),()=>{r.delete(o)&&f().remove(o)};let c=d().subscribe({id:o,onEvent(e){if(e.type===`delete`){a.onDelete?.(e.data.id??t);return}let n=(Array.isArray(e.data.select)?e.data.select:null)??Hy(s.select,e.data.changed);if(n?.length!==0){if(`data`in e.data&&e.data.data!==void 0&&(!n||Wy(e.data.data,n))){zy(a,e.data.data,n??void 0);return}p(s,n??s.select).then(e=>{e==null?a.onDelete?.(t):zy(a,e,n??void 0)}).catch(e=>Ry(s,e))}},topic:Xv(e,t)}).catch(e=>(r.delete(o),Ry(s,e),null));return()=>{r.delete(o)&&c.then(e=>e?.())}},g.subscribeConnection=(e,t,n,i,a,o)=>{let s=String(++u),c=`${s}:global`,p={args:n,handlers:o,procedure:e,select:[...i],selectionArgs:a,type:t},h=n=>{let r=Tg(n.data)?n.data:{};if(n.type===`invalidate`){o.onEvent({type:`invalidate`});return}let i=typeof r.nodeType==`string`?r.nodeType:t,a=r.id;if(n.type===`deleteEdge`){typeof a==`string`||typeof a==`number`?o.onEvent({id:a,nodeType:i,type:`deleteEdge`}):Ry(p,Error(`fate(http): Live connection delete event for '${e}' missed an id.`));return}if(n.type!==`appendEdge`&&n.type!==`appendNode`&&n.type!==`insertEdgeAfter`&&n.type!==`insertEdgeBefore`&&n.type!==`prependEdge`&&n.type!==`prependNode`)return;let s=n.type,c=e=>{o.onEvent({edge:{cursor:typeof r.cursor==`string`?r.cursor:void 0,node:e},nodeType:i,targetCursor:typeof r.targetCursor==`string`?r.targetCursor:void 0,type:s})};if(`node`in r&&r.node!==void 0){c(r.node);return}if(typeof a!=`string`&&typeof a!=`number`){Ry(p,Error(`fate(http): Live connection event for '${e}' missed a node id.`));return}m(p,a,i).then(c).catch(e=>Ry(p,e))};if(r.set(s,p),!l)return f().add({args:n,id:s,kind:`subscribeConnection`,procedure:e,select:[...i],selectionArgs:a,type:t}),()=>{r.delete(s)&&f().remove(s)};r.set(c,p);let g=d(),_=g.subscribe({id:s,onEvent:h,topic:Zv(e,n)}),v=g.subscribe({id:c,onEvent:h,topic:Qv(e)}),y=Promise.all([_,v]).catch(e=>(r.delete(s),r.delete(c),Ry(p,e),[]));return()=>{(r.delete(s)||r.delete(c))&&(r.delete(c),y.then(e=>Promise.all(e.map(e=>e()))))}}}return g}function ny(e){return Object.freeze({[hg]:!0,type:e})}var ry,iy,ay,oy,sy,cy,ly,uy,dy,fy,py,my,hy,gy,_y,vy,yy,by,xy,Sy,Cy,wy,Ty,Ey,Dy,Oy,ky,Ay,jy,My,Ny,Py,Fy,Iy,Ly,Ry,zy,By,Vy,Hy,Uy,Wy,Gy,Ky,qy,Jy,Yy,Xy,Zy,Qy,$y=o((()=>{gg(),wg(),Eg(),Ng(),Jg(),Gv(),E_(),qv(),A_(),$v(),ry=class{constructor(e=()=>!0){this.isEnabled=e,this.cache=new Map,this.rootDependencies=new Map,this.dependencyIndex=new Map}clear(){this.cache.clear(),this.rootDependencies.clear(),this.dependencyIndex.clear()}get(e,t,n){return this.isEnabled()?this.cache.get(e)?.get(t)?.get(n)??null:null}set(e,t,n,r,i){if(!this.isEnabled())return;let a=this.cache.get(e);a||(a=new WeakMap,this.cache.set(e,a));let o=a.get(t);o||(o=new WeakMap,a.set(t,o)),o.set(n,r);let s=this.rootDependencies.get(e);s||(s=new Set,this.rootDependencies.set(e,s));for(let t of i)if(!s.has(t)){s.add(t);let n=this.dependencyIndex.get(t);n||(n=new Set,this.dependencyIndex.set(t,n)),n.add(e)}}invalidate(e){this.isEnabled()&&this.invalidateDependents(e,new Set)}invalidateDependents(e,t){if(t.has(e))return;t.add(e);let n=this.dependencyIndex.get(e);if(n)for(let e of n)this.invalidateDependents(e,t);this.delete(e)}delete(e){let t=this.rootDependencies.get(e);if(t){for(let n of t){let t=this.dependencyIndex.get(n);t&&(t.delete(e),t.size===0&&this.dependencyIndex.delete(n))}this.rootDependencies.delete(e)}this.cache.delete(e)}},iy=class{constructor(e){this.releaseBufferSize=e,this.operations=new Map,this.releaseBuffer=[]}retain(e,t){let n=this.operations.get(e.key);n||(n={descriptor:e,refCount:0},this.operations.set(e.key,n)),n.refCount+=1,this.removeFromReleaseBuffer(e.key);let r=!1;return{dispose:()=>{r||(r=!0,this.release(e.key)&&t?.())}}}getDescriptors(){return[...this.operations.values()].map(e=>e.descriptor)}restore(e){for(let t of e.slice(-Math.max(1,this.releaseBufferSize)))this.operations.has(t.key)||(this.operations.set(t.key,{descriptor:t,refCount:0}),this.releaseBuffer.push(t.key))}release(e){let t=this.operations.get(e);if(!t||(--t.refCount,t.refCount>0))return!1;if(this.releaseBufferSize<=0)return this.operations.delete(e),!0;this.releaseBuffer.push(e);let n=!1;for(;this.releaseBuffer.length>this.releaseBufferSize;){let e=this.releaseBuffer.shift();if(!e)continue;let t=this.operations.get(e);t&&t.refCount<=0&&(this.operations.delete(e),n=!0)}return n}removeFromReleaseBuffer(e){let t=this.releaseBuffer.indexOf(e);t!==-1&&this.releaseBuffer.splice(t,1)}},ay=e=>`${typeof e}:${String(e)}`,oy=e=>{let t=new Set,n=new Set,r=e=>{if(e&&typeof e==`object`&&!n.has(e)){n.add(e);for(let[n,i]of Object.entries(e))rg(n)&&t.add(n),r(i)}};return r(e),t.size?[...t].sort().join(`,`):``},sy=(e,t,n)=>t?Nv(`__root__`,e,n.args.get(``)?.hash??zg(t)):e,cy=(e,t,n)=>t?Nv(`__root__`,e,n.args.get(``)?.hash??zg(Bg(t)??{})):e,ly=e=>!!(e&&(`after`in e||`before`in e||`cursor`in e)),uy=e=>({direction:e?.before!==void 0||e?.last!==void 0?`backward`:`forward`,hasCursorArg:ly(e)}),dy=e=>{let t=[],n=[...e].sort((e,t)=>e.name.localeCompare(t.name));for(let e of n){if(e.kind===`node`){let n=Hg(e.plan);t.push(`node:${e.name}:${e.viewSignature}:${e.ids[0]}${n?`:${zg(n)}`:``}`);continue}if(e.kind===`nodes`){let n=Hg(e.plan);t.push(`node:${e.name}:${e.viewSignature}:${e.ids.map(ay).join(`,`)}${n?`:${zg(n)}`:``}`);continue}if(e.kind===`query`||e.kind===`value`){t.push(`${e.kind}:${e.name}:${e.kind===`query`?e.viewSignature:``}:${e.argsPayload?zg(e.argsPayload):``}`);continue}e.kind===`list`&&t.push(`list:${e.name}:${e.hasItems?`connection`:`entity`}:${e.viewSignature}:${e.argsPayload?zg(e.argsPayload):``}`)}return`${t.join(`$`)}|${JSON.stringify(n.map(e=>[`procedure`in e?e.procedure:e.type,[...e.plan.paths].sort()]))}`},fy=(e,t)=>{let n=[];for(let[r,i]of Object.entries(e)){let e=bg(i)?i.selection:i,a=bg(i)?i.field:r;bg(i)&&Cg(r,a);let o=t(a);if(sg(e)){let t=e.value===!0?{args:new Map,live:new Map,paths:new Set}:Sv(e.value,null);n.push({argsPayload:e.args,kind:`value`,name:r,plan:t,procedure:a,queryKey:`${sy(a,e.args,t)}#${[...t.paths].sort().join(`,`)}`,refViewNames:new Set,type:o});continue}if(ig(e)){n.push({ids:[e.id],kind:`node`,name:r,plan:Sv(e.view,null),refViewNames:uv(e.view),type:o,viewSignature:oy(e.view)});continue}if(ag(e)){n.push({ids:e.ids,kind:`nodes`,name:r,plan:Sv(e.view,null),refViewNames:uv(e.view),type:o,viewSignature:oy(e.view)});continue}if(og(e)){let{argsPayload:t,plan:i}=py(e.view,e.args);n.push({argsPayload:t,kind:`query`,name:r,plan:i,procedure:a,queryKey:sy(a,t,i),refViewNames:_v(e.view),type:o,viewSignature:oy(e.view)});continue}let{argsPayload:s,plan:c}=py(e.list,e.args),l=e.list&&typeof e.list==`object`&&`items`in e.list,u=l&&e.list.items?e.list.items.node??e.list:e.list;n.push({argsPayload:s,hasItems:l,kind:`list`,listKey:cy(a,s,c),name:r,nodeRefViewNames:_v(u),plan:c,procedure:a,type:o,viewSignature:oy(e.list)})}return{items:n,key:dy(n)}},py=(e,t)=>{let n=Sv(e,null),r=Wg(t,Hg(n));return r&&Kg(n,r),{argsPayload:r,plan:n}},my=({options:e,read:t,retain:n,start:r,subscribe:i})=>{let a=e.enabled!==!1,o=e.mode===`cache-only`,s=new Set,c,l,u=!1,d=!1,f,p=!1,m,h,g=()=>{let n=a&&(e.mode!==`network-only`||p)?t():void 0,r={data:n,error:l,isFetching:u,refetch:y,status:a?n===void 0?l===void 0?o?`missing`:`pending`:`error`:`ready`:`disabled`};return c&&c.status===r.status&&c.error===l&&c.isFetching===u&&Object.is(c.data,n)?c:(c=r,r)},_=()=>{let e=c;if(g()!==e)for(let e of s)e()},v=e=>!a||o?Promise.reject(Error(`fate: Cannot refetch a disabled or cache-only request.`)):f||(d=!0,u=!0,l=void 0,f=Promise.resolve().then(()=>r(e)).then(e=>(p=!0,e),e=>{throw l=e,e}).finally(()=>{f=void 0,u=!1,_()}),_(),f),y=()=>v(!0);return{getSnapshot:g,subscribe(e){return s.add(e),s.size===1&&a&&(h=n(),m=i(_),!d&&!o&&v(!1).catch(()=>{})),()=>{s.delete(e),s.size||(m?.(),m=void 0,h?.dispose(),h=void 0)}}}},gy=class{static{hy=Symbol.toStringTag}constructor(e,t){this.descriptor=e,this.readValue=t,this[hy]=`Promise`,this.status=`pending`,this.execution=null}get value(){return this.readValue()}start(e){this.execution=e,this.reason=void 0,this.status=`pending`,e.then(()=>{this.execution===e&&(this.execution=null,this.status=`fulfilled`)},t=>{this.execution===e&&(this.execution=null,this.reason=t,this.status=`rejected`)})}then(e,t){switch(this.status){case`fulfilled`:return Promise.resolve().then(()=>this.readValue()).then(e??void 0,t??void 0);case`rejected`:return Promise.reject(this.reason).then(e??void 0,t??void 0);default:if(!this.execution)throw Error(`fate: Pending request is missing its execution.`);return this.execution.then(e??void 0,t??void 0)}}catch(e){return this.then(void 0,e??void 0)}finally(e){return this.then(async t=>(await e?.(),t),async t=>{throw await e?.(),t})}},_y=e=>{if(!e||typeof e!=`object`||!(`id`in e))throw Error(`fate: Missing 'id' on entity record.`);let t=e.id,n=typeof t;if(n!==`string`&&n!==`number`)throw Error(`fate: Entity id must be a string or number, received '${n}'.`);return t},vy=new Set,yy=()=>void 0,by=(e,t)=>e<t?-1:+(e>t),xy=(e,t)=>JSON.stringify({roots:Object.entries(e??{}).map(([e,t])=>[e,t.type]).sort(([e],[t])=>by(e,t)),types:t.map(({fields:e,possibleTypes:t,type:n})=>({fields:Object.entries(e??{}).map(([e,t])=>[e,t]).sort(([e],[t])=>by(e,t)),possibleTypes:t,type:n})).sort((e,t)=>by(e.type,t.type))}),Sy=(e,t)=>{if(!e||e.length===0)return;let n=new Set(t),r=e.filter(e=>!n.has(e));return r.length>0?r:void 0},Cy=(e,t)=>e?.includes(t)?e.filter(e=>e!==t):e,wy=(e,t)=>e===t?!0:!e||!t||e.length!==t.length?!1:e.every((e,n)=>e===t[n]),Ty=(e,t)=>e===t||(!e||!t?!1:e.hasNext===t.hasNext&&e.hasPrevious===t.hasPrevious&&e.nextCursor===t.nextCursor&&e.previousCursor===t.previousCursor),Ey=(e,t)=>!!e&&wy(e?.ids,t.ids)&&wy(e?.cursors,t.cursors)&&wy(e?.liveAfterIds,t.liveAfterIds)&&wy(e?.liveBeforeIds,t.liveBeforeIds)&&wy(e?.pendingAfterIds,t.pendingAfterIds)&&wy(e?.pendingBeforeIds,t.pendingBeforeIds)&&e?.backwardPageLimit===t.backwardPageLimit&&e?.forwardPageLimit===t.forwardPageLimit&&Ty(e?.pagination,t.pagination),Dy=(e,t,n={})=>{if(n.reuseCurrentArray!==!1&&Array.isArray(t)&&t.length===e.length){let n=!0;for(let r=0;r<e.length;r+=1){let i=t[r];if(!Xg(i)||Zg(i)!==e[r]){n=!1;break}}if(n)return t}let r=new Map;if(Array.isArray(t))for(let e of t)Xg(e)&&r.set(Zg(e),e);return e.map(e=>r.get(e)??Yg(e))},Oy=(e,t)=>{let n=t===`forward`?e?.first??e?.last:e?.last??e?.first;return typeof n==`number`&&Number.isFinite(n)&&n>=0?n:null},ky=(e,t,n)=>{let r=Oy(t.args,n);return r!=null&&e.ids.length>=r},Ay=(e,t,n)=>{let r=Oy(t,n),i=e.pagination;return n===`forward`?i?.hasPrevious?!1:r==null||e.ids.length>=r||e.forwardPageLimit!=null&&e.forwardPageLimit>=r||i?.hasNext===!1:i?.hasNext?!1:r==null||e.ids.length>=r||e.backwardPageLimit!=null&&e.backwardPageLimit>=r||i?.hasPrevious===!1},jy=e=>{let t=uy(e);return{...t,pageLimit:Oy(e,t.direction)}},My=(e,t)=>{if(e.cursors&&e.cursors.length!==0)return t===`forward`?e.cursors.at(-1):e.cursors[0]},Ny=(e,t)=>{let n={hasNext:!!e.pagination?.hasNext,hasPrevious:!!e.pagination?.hasPrevious,nextCursor:e.pagination?.nextCursor,previousCursor:e.pagination?.previousCursor},r=My(e,t);return t===`forward`?(n.hasNext=!0,n.nextCursor=r??n.nextCursor):(n.hasPrevious=!0,n.previousCursor=r??n.previousCursor),{...e,pagination:n}},Py=(e,t,n)=>{let r=t.split(`.`),i=e;for(let e=0;e<r.length;e+=1){let t=r[e],a=e===r.length-1;if(t){if(a){i[t]=n;return}i[t]=i[t]??Object.create(null),i=i[t]}}},Fy=e=>{let t={};for(let[n,r]of Object.entries(e))r!==void 0&&(t[n]=r);return t},Iy=e=>{if(e.size===0)return new Map;let t=new Map;for(let n of e){let e=n.indexOf(`.`);if(e===-1)continue;let r=n.slice(0,e),i=n.slice(e+1),a=t.get(r);a||(a=new Set,t.set(r,a)),a.add(i)}return t},Ly=class{acceptWrite(e,t){return this.store.isRecordingOptimistic?!0:(this.writeVersions.get(e)??0)>t?!1:(this.writeVersions.set(e,t),!0)}withWriteGeneration(e,t){let n=this.applyingGeneration;this.applyingGeneration=e;try{return t()}finally{this.applyingGeneration=n}}relatedEntityType(e,t,n){if(!t)return e;let r=n.__typename;if(typeof r!=`string`||!t.includes(r))throw Error(`fate: Expected '${e}' relation to contain one of ${t.join(`, `)}, received '${String(r)}'.`);return r}constructor(e){this.writeGeneration=0,this.writeVersions=new Map,this.requestListeners=new Map,this.requestListenersByDependency=new Map,this.pendingRequestListeners=new Set,this.requestNotificationScheduled=!1,this.cacheOnlyRefs=new WeakSet,this.cacheOnlyCopies=new WeakMap,this.requestResults=new WeakMap,this.requestItemResults=new WeakMap,this.parentLists=new Map,this.rootLists=new Map,this.pending=new Map,this.pendingDeferred=new Map,this.pendingOptimisticMutations=new Map,this.optimisticEntityResolutions=new Map,this.liveSubscriptions=new Map,this.liveConnectionInvalidations=new Map,this.stableRefs=new Map,this.requests=new Map,this.requestExecutionOptions=new WeakMap,this.rootRequests=new Map,this.rootValues=new Map,this.stalledRequests=new Set,this.gcPending=!1,this.gcScheduled=!1,this.pendingNetworkRequests=0,this.store=new Wv((e,t)=>{for(let t of e)this.viewDataCache.invalidate(t);this.runPendingGarbageCollection(),this.notifyRequests([...[...e].map(e=>`entity:${e}`),...[...t].map(e=>`list:${e}`),...[...e].flatMap(e=>this.store.getListKeysForEntity(e).map(e=>`list:${e}`))])},e=>{if(!this.store.isRecordingOptimistic){let t=this.applyingGeneration??++this.writeGeneration;if(e.kind===`record`){if(e.paths)for(let n of e.paths)this.acceptWrite(JSON.stringify([e.key,n.split(`.`)[0]]),t);else this.acceptWrite(JSON.stringify([e.key]),t)}else this.acceptWrite(`list:${e.key}`,t)}this.persistenceRuntime?.changed(e),this.notifyRequests(e.kind===`record`?[`entity:${e.key}`,...this.store.getListKeysForEntity(e.key).map(e=>`list:${e}`)]:[`list:${e.key}`])}),this.viewDataCache=new ry(()=>!this.store.isRebasing),this.liveConnectionInvalidationToken=0,this.persistenceDisposal=e.persistence?new AbortController:void 0,this.actions=Object.create(null),this.mutationMap=Object.create(null),e.persistence&&(this.mutationEntities=new Map(Object.entries(e.mutations??{}).map(([e,t])=>[e,t.entity]))),this.mutations=Object.create(null),this.onLiveError=e.onLiveError,this.operationLifetime=new iy(e.gcReleaseBufferSize??10),this.hydrationLimits=e_(e.hydrationLimits);let t=e.hydrationScope??xy(e.roots,e.types);if(typeof t!=`string`||t.length===0)throw Error(`fate: Hydration scope must be a non-empty string.`);if(this.hydrationScope=t,this.roots=e.roots,this.transport=Mg(e.transport),this.types=new Map(e.types.map(e=>[e.type,{getId:_y,...e}])),e.mutations)for(let[t,n]of Object.entries(e.mutations)){let e=z_(this,{...n,key:t});this.mutationMap[t]=e,Py(this.mutations,t,e),Py(this.actions,t,async(e,n)=>n===`reset`?null:await this.mutationMap[t](n))}this.initializeParentLists(),this.persistenceRuntime=e.persistence?.attach(this),this.persistence=this.persistenceRuntime}initializeParentLists(){for(let e of this.types.values())if(e.fields){for(let[t,n]of Object.entries(e.fields))if(n&&typeof n==`object`&&`listOf`in n){let r=n.listOf,i=this.types.get(r);if(!i)throw Error(`fate: Unknown related type '${r}' (field '${e.type}.${t}').`);if(!i.fields)continue;let a;for(let[t,n]of Object.entries(i.fields))if(n&&typeof n==`object`&&`type`in n&&n.type===e.type){a=t;break}if(!a)continue;let o=this.parentLists.get(r);o||(o=[],this.parentLists.set(r,o)),o.push({field:t,parentType:e.type,via:a})}}}dehydrate(){if(this.hasActiveOptimisticUpdates())throw Error(`fate: Cannot dehydrate while optimistic updates are active.`);if(this.hasPendingRequests())throw Error(`fate: Cannot dehydrate while requests are pending.`);return{data:a_({rootLists:[...this.rootLists].map(([e,t])=>[e,[...t]]),rootRequests:[...this.rootRequests],rootValues:[...this.rootValues],store:this.store.dehydrate()},this.hydrationLimits),scope:this.hydrationScope,version:1}}hydrate(e,t={}){if(!e||typeof e!=`object`||e.version!==1)throw Error(`fate: Unsupported hydration state version.`);if(e.scope!==this.hydrationScope)throw Error(`fate: Hydration state scope does not match this client.`);if(this.hasActiveOptimisticUpdates())throw Error(`fate: Cannot hydrate while optimistic updates are active.`);if(this.hasPendingRequests())throw Error(`fate: Cannot hydrate while requests are pending.`);let n=t.merge??`preserve-existing`;if(n!==`preserve-existing`&&n!==`replace`)throw Error(`fate: Unsupported hydration merge mode.`);let r=T_(e.data,this.hydrationLimits),i=this.store.hydrate(r.store,n,{deferNotifications:!0});n===`replace`&&(this.rootLists.clear(),this.rootRequests.clear(),this.rootValues.clear(),this.stableRefs.clear());for(let[e,t]of r.rootLists){let n=this.rootLists.get(e);n||(n=new Set,this.rootLists.set(e,n));for(let e of t)n.add(e)}for(let[e,t]of r.rootRequests)(n===`replace`||!this.rootRequests.has(e))&&this.rootRequests.set(e,t);for(let[e,t]of r.rootValues??[])(n===`replace`||!this.rootValues.has(e))&&this.rootValues.set(e,t);this.stalledRequests.clear(),this.viewDataCache.clear(),i()}exportPersistenceState(){return{data:a_({rootLists:[...this.rootLists].map(([e,t])=>[e,[...t]]),rootRequests:[...this.rootRequests],rootValues:[...this.rootValues],store:this.store.dehydrateConfirmed()},this.hydrationLimits),scope:this.hydrationScope,version:1}}retainPersistenceRequest(e){return this.operationLifetime.retain(e,()=>this.scheduleGarbageCollection())}getPersistenceScope(){return this.hydrationScope}getPersistenceRootLists(e){return this.rootLists.get(e)??new Set}getPersistenceQuery(e){return this.rootRequests.get(e)}getPersistenceValue(e){return this.rootValues.get(e)}restorePersistenceData(e){this.store.update(()=>{let t=new Map(e.store.coverage);for(let[n,r]of e.store.records){let e=this.store.read(n),i=t.get(n)??[];this.store.merge(n,e?Rv(r,e):r,i)}for(let[t,n]of e.store.lists)this.store.getListState(t)||this.store.setList(t,n);for(let[t,n]of e.rootRequests)this.rootRequests.has(t)||this.rootRequests.set(t,n);for(let[t,n]of e.rootValues??[])this.rootValues.has(t)||this.rootValues.set(t,n);for(let[t,n]of e.rootLists)for(let e of n)this.registerRootList(t,e)})}getRetainedRequests(){return this.operationLifetime.getDescriptors()}restoreRetainedRequests(e){this.operationLifetime.restore(e)}hasMutation(e,t){return this.mutationEntities?.get(e)===t&&this.types.has(t)}registerRootList(e,t){let n=this.rootLists.get(e);n||(n=new Set,this.rootLists.set(e,n)),n.add(t)}applyListInsert(e,t,n){let r=e.pendingBeforeIds??[],i=e.pendingAfterIds??[];if(e.ids.includes(t)||r.includes(t)||i.includes(t))return{list:e,pending:!1};if(n===`before`?e.pagination?.hasPrevious:e.pagination?.hasNext)return{list:n===`before`?{...e,pendingBeforeIds:[t,...r]}:{...e,pendingAfterIds:[...i,t]},pending:!0};let a=n===`before`?[t,...e.ids]:[...e.ids,t],o=e.cursors?n===`before`?[void 0,...e.cursors]:[...e.cursors,void 0]:e.cursors;return{list:{...e,cursors:o,ids:a},pending:!1}}insertIntoRootLists(e,t,n){if(n===`none`)return;let r=this.rootLists.get(e);if(r)for(let e of r){let r=this.store.getListState(e);if(!r)continue;let i=this.applyListInsert(r,t,n).list;i!==r&&this.store.setList(e,i)}}getTypeConfig(e){let t=this.types.get(e);if(!t)throw Error(`fate: Unknown entity type '${e}'.`);return t}getListNodeType(e,t){let n=this.getTypeConfig(e).fields?.[t];if(!n||n===`scalar`||!(`listOf`in n))throw Error(`fate: Could not find node type for '${e}.${t}'.`);return n.listOf}validatePersistence(){this.mutationEntities?.size&&this.requireDurableMutationTransport()}persistMutation(e){if(!this.persistenceRuntime)throw Error(`fate: Persistence is not configured.`);return this.persistenceRuntime.mutate(e)}assertPersistenceActive(){if(this.persistenceDisposal?.signal.aborted||this.persistence?.getSnapshot().status===`disposed`)throw Error(`fate: Persistence was disposed.`)}disposePersistence(){this.persistenceDisposal?.abort();for(let{unsubscribe:e}of this.liveSubscriptions.values())try{e()}catch{}this.liveSubscriptions.clear()}requireDurableMutationTransport(){if(!this.transport.mutateDurably)throw new D_(`BAD_REQUEST`,`fate: Persisted mutations require transport.mutateDurably connected to a server idempotency handler. Configure that adapter, or use persist: false for immediate calls. Cache persistence remains available.`)}async executeMutation(e,t,n,r={}){if(r.identity)this.requireDurableMutationTransport();else if(!this.transport.mutate)throw Error(`fate: transport does not support mutations. Please provide a 'mutate' implementation in your transport.`);let i=t&&typeof t==`object`?t:void 0,a=this.transport.separateMutationSelectionArgs,o=!a&&i&&typeof i.args==`object`?i.args:void 0,s=Wg(r.plan?Hg(r.plan):void 0,Wg(o,r.args)),c=a?t:s&&i?{...i,args:s}:s?{args:s}:t;return await this.trackPendingRequest(()=>r.identity?a?this.transport.mutateDurably(e,c,n,r.identity,s):this.transport.mutateDurably(e,c,n,r.identity):a?this.transport.mutate(e,c,n,s):this.transport.mutate(e,c,n))}write(e,t,n,r,i){return this.writeEntity(e,t,n,r,null,i)}deleteRecord(e,t){return this.store.update(()=>{let n=gv(e,t);this.viewDataCache.invalidate(n),this.stableRefs.delete(n),this.store.deleteRecord(n),this.store.removeReferencesTo(n,this.viewDataCache)})}stableRefWithViewNames(e,t,n){let r=gv(e,t),i=`${typeof t}:${String(t)}:${[...n].sort().join(`,`)}`,a=this.stableRefs.get(r);a||(a=new Map,this.stableRefs.set(r,a));let o=a.get(i);if(o)return o;let s=L_(e,t,n);return a.set(i,s),s}ref(e,t,n){return this.stableRefWithViewNames(e,t,uv(n))}rootListRef(e,t){let{id:n,type:r}=F_(e);return this.stableRefWithViewNames(r,n,_v(t))}readView(e,t){if(e=cv(e,t),this.persistence&&this.persistence.getSnapshot().status!==`ready`){let n=`restore:${t.__typename}:${t.id}:${[...uv(e)].sort().join(`,`)}`,r=this.pending.get(n);return r||(r=this.persistence.ready.then(()=>{if(this.persistence?.getSnapshot().status===`disposed`)throw Error(`fate: Persistence was disposed.`);return this.readView(e,t)}).finally(()=>this.pending.delete(n)),this.pending.set(n,r)),r}let n=t.id,r=t.__typename;if(n==null){let e=Object.keys(t).length>0?`'${JSON.stringify(t)}'`:`an empty object`;throw Error(`fate: Invalid view reference. Expected 'id' to be provided as part of the reference, received ${e}. Did you forget to spread the correct view into its parent or pass the wrong ref to 'useView'?`)}if(r==null)throw Error(`fate: Invalid view reference. Expected '__typename' to be provided as part of the reference, received '${JSON.stringify(t)}'.`);let i=gv(r,n),a=this.optimisticEntityResolutions.get(i)??null;if(a&&a!==i){let{id:t,type:n}=F_(a);return this.readView(e,this.stableRefWithViewNames(n,t,uv(e)))}let o=uv(e),s=t[lg];if(!s||![...o].every(e=>s.has(e))){let e=s?[...s].join(`, `):JSON.stringify(t);throw Error(`fate: Invalid view reference. Expected the provided ref to include the view(s) '${[...o].join(`', '`)}', received '${e}'. You can fix this issue by spreading the correct view into its parent so fate can create the correct view refs for you.`)}let c=this.viewDataCache.get(i,e,t);if(c)return c;let l=Sv(e,t),u=l.paths,d=this.missingForSelection(i,u,l),f=()=>{let n=this.readViewSelection(e,t,i,l);this.cacheOnlyRefs.has(t)&&this.markCacheOnly(n.data);let r={status:`fulfilled`,then:(e,t)=>Promise.resolve(n).then(e,t),value:n};return this.viewDataCache.set(i,e,t,r,new Set(n.coverage.map(([e])=>e))),r};if(d.size===0)return this.clearStalledRequestsForEntity(i),f();if(d.size>0){if(this.cacheOnlyRefs.has(t))throw Error(`fate: Cache-only view is missing selected fields.`);let a=this.pendingKey(i,new Set([...d].map(e=>nv(e,l)))),o=this.getPendingOptimisticMutations(i);if(o){let n=this.pending.get(a);if(n)return n;let r=Promise.all(o).then(()=>this.readView(e,t)).finally(()=>this.pending.delete(a));return this.pending.set(a,r),r}if(this.stalledRequests.has(a))return f();let s=this.pending.get(a)||null;if(s)return s;let c=this.trackPendingRequest(async()=>{let o=this.persistenceRuntime;if(o){let e={items:[{ids:[n],kind:`node`,name:r,plan:l,refViewNames:new Set,type:r,viewSignature:``}],key:`view:${a}`};await o.restoreRequest(e);let t=this.missingForSelection(i,u,l);t.size&&(await this.fetchByIdAndNormalize(r,[n],t,l),o.fetched({...e,items:e.items.map(e=>({...e,plan:{...e.plan,paths:t}})),key:`${e.key}:${JSON.stringify([...t].sort())}`}))}else await this.fetchByIdAndNormalize(r,[n],d,l);try{return this.missingForSelection(i,u,l).size>0?(this.stalledRequests.add(a),f()):(this.stalledRequests.delete(a),this.readView(e,t))}finally{this.pending.delete(a)}});return this.pending.set(a,c),c}return f()}readDeferred(e){let t=$_(e),n=this.optimisticEntityResolutions.get(t.owner)??t.owner,r=F_(n),i=this.store.read(n),a=i&&(typeof i.id==`string`||typeof i.id==`number`)?i.id:r.id,o=r.type||t.type,s=Cv(t.field,t.selection),c=s.paths,l=this.missingForSelection(n,c,s),u=()=>this.hasMissingDeferredList(n,o,t.field,s),d=u(),f=d?c:l,p=()=>{let e=this.readViewSelection({[t.field]:t.selection},this.stableRefWithViewNames(o,a,new Set),n,s),r={coverage:e.coverage,data:e.data[t.field]};return{status:`fulfilled`,then:(e,t)=>Promise.resolve(r).then(e,t),value:r}};if(l.size===0&&!d)return this.clearStalledRequestsForEntity(n),p();let m=this.deferredPendingKey(n,f,s,this.deferredSelectionSignature(t.selection));if(this.stalledRequests.has(m))return p();let h=this.getPendingOptimisticMutations(n);if(h){let t=this.pendingDeferred.get(m);if(t)return t;let n=Promise.all(h).then(()=>this.readDeferred(e)).finally(()=>this.pendingDeferred.delete(m));return this.pendingDeferred.set(m,n),n}let g=this.pendingDeferred.get(m)||null;if(g)return g;let _=this.trackPendingRequest(async()=>{try{return await this.fetchByIdAndNormalize(o,[a],f,s),this.missingForSelection(n,c,s).size>0||u()?(this.stalledRequests.add(m),p().value):(this.stalledRequests.delete(m),this.readDeferred(e).value)}finally{this.pendingDeferred.delete(m)}});return this.pendingDeferred.set(m,_),_}assertLiveViewSupport(){if(!this.transport.subscribeById)throw Error(`fate: transport does not support live views. Please provide a 'subscribeById' implementation in your transport.`)}assertLiveConnectionSupport(){if(!this.transport.subscribeConnection)throw Error(`fate: transport does not support live list views. Please provide a 'subscribeConnection' implementation in your transport.`)}subscribeLiveView(e,t){e=cv(e,t),this.assertPersistenceActive();let n=t.id,r=t.__typename;if(n==null)throw Error(`fate: Invalid live view reference. Expected 'id' to be provided as part of the reference.`);if(r==null)throw Error(`fate: Invalid live view reference. Expected '__typename' to be provided as part of the reference.`);let i=uv(e),a=t[lg];if(!a||![...i].every(e=>a.has(e))){let e=a?[...a].join(`, `):JSON.stringify(t);throw Error(`fate: Invalid live view reference. Expected the provided ref to include the view(s) '${[...i].join(`', '`)}', received '${e}'.`)}let o=gv(r,n),s=Sv(e,t,{includeNestedViews:!0});if(s.paths.size===0)return()=>{};this.assertLiveViewSupport();let c=this.liveSubscriptionKey(o,s),l=this.liveSubscriptions.get(c);if(l)return l.count+=1,l.releaseScheduled=!1,()=>{this.releaseLiveSubscription(c)};let u=Hg(s),d;try{d=this.transport.subscribeById(r,n,s.paths,u,{onData:(e,t)=>{if(this.persistenceDisposal?.signal.aborted||!e||typeof e!=`object`)return;let n=new Set(t??s.paths);this.write(r,e,n,s,`none`)},onDelete:e=>{this.persistenceDisposal?.signal.aborted||this.deleteRecord(r,e??n)},onError:e=>{this.persistenceDisposal?.signal.aborted||this.reportLiveError(e)}})}catch(e){return this.reportLiveError(e),yy}return this.persistenceDisposal?.signal.aborted?(d(),yy):(this.liveSubscriptions.set(c,{count:1,unsubscribe:d}),()=>{this.releaseLiveSubscription(c)})}subscribeLiveListView(e,t){this.assertPersistenceActive(),this.assertLiveConnectionSupport();let n=Sv(e,null),r=Bg(t.root?t.args:{...t.args,id:F_(t.owner).id}),i=Hg(n),a=this.liveConnectionSubscriptionKey(t,n,r),o=this.liveSubscriptions.get(a);if(o)return o.count+=1,o.releaseScheduled=!1,()=>{this.releaseLiveSubscription(a)};let s;try{s=this.transport.subscribeConnection(t.procedure,t.type,r,n.paths,i,{onError:e=>{this.persistenceDisposal?.signal.aborted||this.reportLiveError(e)},onEvent:r=>{this.persistenceDisposal?.signal.aborted||this.applyLiveConnectionEvent(e,t,n,r)}})}catch(e){return this.reportLiveError(e),yy}return this.persistenceDisposal?.signal.aborted?(s(),yy):(this.liveSubscriptions.set(a,{count:1,unsubscribe:s}),()=>{this.releaseLiveSubscription(a)})}applyLiveConnectionEvent(e,t,n,r){return this.store.update(()=>{if(r.type===`invalidate`){this.invalidateLiveConnection(e,t);return}if(r.type===`deleteEdge`){this.deleteConnectionEdge(t,gv(r.nodeType,r.id));return}let i=r.edge.node;if(!i||typeof i!=`object`)return;let a=i,o=r.nodeType;if(!o){this.reportLiveError(Error(`fate: Live connection event for '${t.procedure}' did not include a node type.`));return}let s=this.write(o,a,n.paths,n,`none`);this.insertConnectionEdge(t.key,s,r.edge.cursor,r.type,r.targetCursor,e,t)})}invalidateLiveConnection(e,t){let n=++this.liveConnectionInvalidationToken;this.liveConnectionInvalidations.set(t.key,n);let r=this.store.getListState(t.key);this.store.restoreList(t.key,void 0),this.loadConnection(e,t,t.args??{}).then(()=>{this.liveConnectionInvalidations.get(t.key)===n&&this.liveConnectionInvalidations.delete(t.key)}).catch(e=>{this.liveConnectionInvalidations.get(t.key)===n&&(this.store.restoreList(t.key,r),this.liveConnectionInvalidations.delete(t.key)),this.reportLiveError(e)})}deleteConnectionEdge(e,t){let n=this.store.getListState(e.key);if(!n){this.syncNestedConnectionOwnerField(e,t,void 0,`delete`);return}let r=[],i=n.cursors?[]:void 0,a=!1;n.ids.forEach((e,o)=>{if(e===t){a=!0;return}r.push(e),i&&i.push(n.cursors?.[o])});let o=Cy(n.liveAfterIds,t),s=Cy(n.liveBeforeIds,t),c=Cy(n.pendingAfterIds,t),l=Cy(n.pendingBeforeIds,t);if(a=a||o?.length!==n.liveAfterIds?.length||s?.length!==n.liveBeforeIds?.length||c?.length!==n.pendingAfterIds?.length||l?.length!==n.pendingBeforeIds?.length,a){let a={...n,cursors:i,ids:r,liveAfterIds:o,liveBeforeIds:s,pendingAfterIds:c,pendingBeforeIds:l};this.store.setList(e.key,a),this.syncNestedConnectionOwnerField(e,t,a,`delete`);return}this.syncNestedConnectionOwnerField(e,t,n,`delete`)}insertConnectionEdge(e,t,n,r,i,a,o){let s=this.store.getListState(e)??{ids:[]},c=r===`appendEdge`||r===`appendNode`,l=r===`prependEdge`||r===`prependNode`,u=o.live?.append??`edge`,d=o.live?.prepend??`edge`;if(c&&s.pendingAfterIds?.includes(t)||l&&s.pendingBeforeIds?.includes(t)){this.syncNestedConnectionOwnerField(o,t,s,`insert`);return}let f=s.ids.indexOf(t);if(f>=0&&(c&&u===`visible`||l&&d===`visible`)){let r=n===void 0?s:{...s,cursors:s.ids.map((e,t)=>t===f?n:s.cursors?.[t])};r!==s&&this.store.setList(e,r),this.syncNestedConnectionOwnerField(o,t,r,`insert`);return}let p=this.removeEntityFromListState(s,t),m=l&&d!==`visible`&&(!!p.pagination?.hasPrevious||ky(p,o,`backward`)),h=c&&u!==`visible`&&(!!p.pagination?.hasNext||ky(p,o,`forward`)),g=l&&d===`visible`&&(p.pagination?.hasPrevious===!0||p.pagination?.hasPrevious===void 0&&ky(p,o,`backward`)),_=c&&u===`visible`&&(p.pagination?.hasNext===!0||p.pagination?.hasNext===void 0&&ky(p,o,`forward`));if(m){let n=Ny(p,`backward`),r={...n,liveBeforeIds:[t,...n.liveBeforeIds??[]]};this.store.setList(e,r),this.syncNestedConnectionOwnerField(o,t,r,`insert`);return}if(h){let n=Ny(p,`forward`),r={...n,liveAfterIds:[...n.liveAfterIds??[],t]};this.store.setList(e,r),this.syncNestedConnectionOwnerField(o,t,r,`insert`);return}if(g){let n=Ny(p,`backward`),r={...n,pendingBeforeIds:[t,...n.pendingBeforeIds??[]]};this.store.setList(e,r),this.syncNestedConnectionOwnerField(o,t,r,`insert`);return}if(_){let n=Ny(p,`forward`),r={...n,pendingAfterIds:[...n.pendingAfterIds??[],t]};this.store.setList(e,r),this.syncNestedConnectionOwnerField(o,t,r,`insert`);return}let v=this.getConnectionInsertIndex(p,r,i);if(v==null){this.invalidateLiveConnection(a,o);return}let y=[...p.ids];y.splice(v,0,t);let b=p.cursors||n!==void 0?[...p.cursors??[]]:void 0;if(b){for(;b.length<p.ids.length;)b.push(void 0);b.splice(v,0,n)}let x={...p,cursors:b,ids:y,liveAfterIds:Cy(p.liveAfterIds,t),liveBeforeIds:Cy(p.liveBeforeIds,t)};this.store.setList(e,x),this.syncNestedConnectionOwnerField(o,t,x,`insert`)}syncNestedConnectionOwnerField(e,t,n,r){if(e.root)return;let i=this.store.read(e.owner),a=Array.isArray(i?.[ev(e.field,e.hash)])?i?.[ev(e.field,e.hash)]:[],o=a.map(e=>Xg(e)?Zg(e):null).filter(e=>e!=null),s=o.filter(e=>e!==t);if(r===`insert`&&n){let e=Kv(n).map(({id:e})=>e),r=e.indexOf(t);if(r>=0){let n=new Map(s.map((e,t)=>[e,t])),i=null;for(let t=r-1;t>=0;--t){let r=n.get(e[t]);if(r!=null){i=r+1;break}}if(i==null)for(let t=r+1;t<e.length;t+=1){let r=n.get(e[t]);if(r!=null){i=r;break}}s.splice(i??(r===0?0:s.length),0,t)}}o.length===s.length&&o.every((e,t)=>e===s[t])||(this.viewDataCache.invalidate(e.owner),this.store.merge(e.owner,{[ev(e.field,e.hash)]:Dy(s,a)},[ev(e.field,e.hash)]))}getConnectionInsertIndex(e,t,n){if(t===`prependEdge`||t===`prependNode`)return 0;if(t===`appendEdge`||t===`appendNode`)return e.ids.length;if(n&&e.cursors){let r=e.cursors.indexOf(n);if(r>=0)return t===`insertEdgeBefore`?r:r+1}return null}removeEntityFromListState(e,t){let n=[],r=e.cursors?[]:void 0;return e.ids.forEach((i,a)=>{i!==t&&(n.push(i),r&&r.push(e.cursors?.[a]))}),{...e,cursors:r,ids:n,liveAfterIds:Cy(e.liveAfterIds,t),liveBeforeIds:Cy(e.liveBeforeIds,t),pendingAfterIds:Cy(e.pendingAfterIds,t),pendingBeforeIds:Cy(e.pendingBeforeIds,t)}}mergeListState(e,t,n,r,i){let a=e?.ids??[],o=new Set(a),s=i.direction===`backward`,c=(()=>{if(!e||!i.hasCursorArg&&i.replace)return[...t];if(!i.hasCursorArg){let e=new Set(t),n=a.filter(t=>!e.has(t));return s?[...n,...t]:[...t,...n]}let n=t.filter(e=>!o.has(e));return s?[...n,...a]:[...a,...n]})(),l=n.some(e=>e!==void 0),u=new Map;e?.cursors&&e.cursors.forEach((e,t)=>{u.set(a[t],e)}),n.forEach((e,n)=>{e!==void 0&&u.set(t[n],e)});let d=l||e?.cursors||i.hasCursorArg?c.map(e=>u.get(e)):void 0,f=e?.pagination,p=r,m=i.hasCursorArg&&a.length>0,h=m&&!s?f??p:p,g=m&&s?f??p:p,_=f||p?{hasNext:!!(g?.hasNext??f?.hasNext),hasPrevious:!!(h?.hasPrevious??f?.hasPrevious),nextCursor:g?.nextCursor??f?.nextCursor,previousCursor:h?.previousCursor??f?.previousCursor}:void 0;return{backwardPageLimit:!i.hasCursorArg&&s&&i.pageLimit!=null?Math.max(e?.backwardPageLimit??0,i.pageLimit):e?.backwardPageLimit,cursors:d,forwardPageLimit:!i.hasCursorArg&&!s&&i.pageLimit!=null?Math.max(e?.forwardPageLimit??0,i.pageLimit):e?.forwardPageLimit,ids:c,liveAfterIds:Sy(e?.liveAfterIds,c),liveBeforeIds:Sy(e?.liveBeforeIds,c),pagination:_,pendingAfterIds:Sy(e?.pendingAfterIds,c),pendingBeforeIds:Sy(e?.pendingBeforeIds,c)}}registerPendingOptimisticMutation(e,t){let n=this.pendingOptimisticMutations.get(e);n||(n=new Set,this.pendingOptimisticMutations.set(e,n));let r=t.catch(()=>void 0);n.add(r),r.finally(()=>{let t=this.pendingOptimisticMutations.get(e);t&&(t.delete(r),t.size===0&&this.pendingOptimisticMutations.delete(e),this.runPendingGarbageCollection())})}resolveOptimisticEntity(e,t){this.optimisticEntityResolutions.set(e,t),this.store.replaceListEntityId(e,t)}getPendingOptimisticMutations(e){let t=this.pendingOptimisticMutations.get(e);return t&&t.size>0?[...t]:null}async loadConnection(e,t,n,r={}){return await this.trackPendingRequest(()=>this.loadConnectionInternal(e,t,n,r))}async loadConnectionInternal(e,t,n,r={}){let i=r.direction??`forward`;if(t.root){if(!this.transport.fetchList)throw Error(`fate: transport does not support list fetching. Please add support for 'fetchList' in your transport.`);let r=Fy({...t.args,...n}),{argsPayload:i,plan:a}=py(e,r),o=await this.transport.fetchList(t.field,a.paths,i);if(this.assertPersistenceActive(),o===null)return this.store.getListState(t.key);let{items:s,pagination:c}=o;return s&&this.store.update(()=>{let e=[],n=[];for(let r of s){let i=this.write(t.type,r.node,a.paths,a,`none`);e.push(i),n.push(r.cursor)}let i=this.store.getListState(t.key),o=this.mergeListState(i,e,n,c,{...jy(r),replace:!0});Bg(t.args)||this.registerRootList(t.type,t.key),this.store.setList(t.key,o)}),this.store.getListState(t.key)}let a=F_(t.owner),o=Fy({...t.args,...n}),{argsPayload:s,plan:c}=py(e,o),l=c.paths,u=s?qg(s,t.field):void 0,d=new Set;for(let e of l)d.add(`${t.field}.${e}`);let[f]=await this.transport.fetchById(a.type,[a.id],d,u);if(this.assertPersistenceActive(),!f||typeof f!=`object`)return this.store.getListState(t.key);let p=f[t.field],m=Array.isArray(p)?{items:p.map(e=>({cursor:void 0,node:e})),pagination:void 0}:p;return m&&this.store.update(()=>{let e=[],n=[],r=this.getListNodeType(a.type,t.field);for(let t of m.items){let{node:i}=t,a=this.write(r,i,l,c);e.push(a),n.push(t.cursor)}let o=this.store.getListState(t.key),u=o?.ids??[],d=new Set(u),f=e.filter(e=>!d.has(e)),p=this.mergeListState(o,e,n,m.pagination,{...jy(s),direction:i,hasCursorArg:!0,replace:!0});this.store.setList(t.key,p);let h=this.store.read(t.owner),g=Array.isArray(h?.[ev(t.field,t.hash)])&&h?.[ev(t.field,t.hash)]||[],_=Dy(f,void 0),v=i===`forward`?[...g,..._]:[..._,...g];this.viewDataCache.invalidate(t.owner),this.store.merge(t.owner,{[ev(t.field,t.hash)]:v},[ev(t.field,t.hash)])}),this.store.getListState(t.key)}requestDependencies(e){let t=new Set;for(let n of e.items)if(n.kind===`node`||n.kind===`nodes`)for(let e of n.ids)t.add(`entity:${gv(n.type,e)}`);else if(n.kind===`query`){t.add(`root:${n.queryKey}`);let e=this.rootRequests.get(n.queryKey);e&&t.add(`entity:${e}`)}else n.kind===`value`?t.add(`root:${n.queryKey}`):n.kind===`list`&&t.add(`list:${n.listKey}`);return t}updateRequestListenerDependencies(e){let t=this.requestListeners.get(e);if(!t)return;let n=this.requestDependencies(t.descriptor);for(let r of t.dependencies)if(!n.has(r)){let t=this.requestListenersByDependency.get(r);t?.delete(e),t?.size||this.requestListenersByDependency.delete(r)}for(let r of n)if(!t.dependencies.has(r)){let t=this.requestListenersByDependency.get(r);t||(t=new Set,this.requestListenersByDependency.set(r,t)),t.add(e)}t.dependencies=n}notifyRequests(e){for(let t of e)for(let e of this.requestListenersByDependency.get(t)??[])this.pendingRequestListeners.add(e);this.pendingRequestListeners.size!==0&&(this.requestNotificationScheduled||(this.requestNotificationScheduled=!0,queueMicrotask(()=>{this.requestNotificationScheduled=!1;let e=[...this.pendingRequestListeners];this.pendingRequestListeners.clear();for(let t of e)this.updateRequestListenerDependencies(t),this.requestListeners.has(t)&&t()})))}markCacheOnly(e){if(e&&typeof e==`object`&&!this.cacheOnlyRefs.has(e)){this.cacheOnlyRefs.add(e);for(let t of Object.values(e))this.markCacheOnly(t)}}cacheOnlyResult(e){if(!e||typeof e!=`object`)return e;let t=this.cacheOnlyCopies.get(e);if(t)return t;if(lg in e){let t=Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e));return this.cacheOnlyCopies.set(e,t),this.cacheOnlyRefs.add(t),t}if(Array.isArray(e)){let t=e.map(e=>this.cacheOnlyResult(e));return this.cacheOnlyCopies.set(e,t),t}if(Object.getPrototypeOf(e)!==Object.prototype)return e;let n=Object.getOwnPropertyDescriptors(e);for(let e of Object.values(n))`value`in e&&(e.value=this.cacheOnlyResult(e.value));let r=Object.create(Object.prototype,n);return this.cacheOnlyCopies.set(e,r),r}cacheOnlyRequestResult(e,t){let n=this.cacheOnlyCopies.get(t);if(n)return n;let r=Object.fromEntries(e.items.map(e=>[e.name,e.kind===`value`?t[e.name]:this.cacheOnlyResult(t[e.name])]));return this.cacheOnlyCopies.set(t,r),r}observeRequest(e,t={}){let n=this.createRequestDescriptor(e);return my({options:t,read:()=>{if(!this.hasRequestData(n))return;let e=this.getRequestResultFromDescriptor(n);return t.mode===`cache-only`?this.cacheOnlyRequestResult(n,e):e},retain:()=>this.retain(e),start:e=>this.requestWithDescriptor(n,e||t.mode===`stale-while-revalidate`?`network-only`:t.mode===`cache-only`?`cache-first`:t.mode??`cache-first`,{revalidateExisting:!0},{persist:t.persist}),subscribe:e=>(this.requestListeners.set(e,{dependencies:new Set,descriptor:n}),this.updateRequestListenerDependencies(e),()=>{let t=this.requestListeners.get(e);this.requestListeners.delete(e),this.pendingRequestListeners.delete(e);for(let n of t?.dependencies??[]){let t=this.requestListenersByDependency.get(n);t?.delete(e),t?.size||this.requestListenersByDependency.delete(n)}})})}request(e,t){let n=t?.mode??`cache-first`;return this.requestWithDescriptor(this.createRequestDescriptor(e),n,{revalidateExisting:!0},t)}requestForRender(e,t){return this.prepareRequestForRender(e,t).promise}prepareRequestForRender(e,t){let n=t?.mode??`cache-first`,r=this.createRequestDescriptor(e);return{promise:this.requestWithDescriptor(r,n,{revalidateExisting:!1},t),requestKey:r.key}}requestWithDescriptor(e,t,{revalidateExisting:n},r){this.assertPersistenceActive();let i=this.persistenceRuntime;if(i&&r?.persist&&(!Number.isSafeInteger(r.persist.maxAge)||r.persist.maxAge<0||r.persist.maxAge>2**53-1-Date.now()))throw Error(`fate: Persistence maxAge must be a non-negative finite duration.`);let a=e.key,o=this.requests.get(a)?.get(t);if(o){if(i&&r?.persist){let e=this.requestExecutionOptions.get(o.descriptor);e&&(e.persist={...r.persist})}i&&r?.persist&&o.status===`fulfilled`&&i.used(o.descriptor,r.persist);let e=t===`cache-first`&&o.status===`fulfilled`&&!this.hasRequestData(o.descriptor);return o.status!==`pending`&&(e||n&&(t===`network-only`||t===`stale-while-revalidate`||t===`cache-first`&&o.status===`rejected`))&&this.executeRequestHandle(o,t,r),o}let s=new gy(e,()=>this.getRequestResultFromDescriptor(e)),c=this.requests.get(a);return c||(c=new Map,this.requests.set(a,c)),c.set(t,s),this.executeRequestHandle(s,t,r),s}releaseRequest(e,t){this.releaseRequestKey(this.createRequestDescriptor(e).key,t)}releaseRequestKey(e,t){let n=this.requests.get(e);n&&(n.delete(t),n.size===0&&this.requests.delete(e))}retainRequestKey(e,t){let n=this.requests.get(e),r=(t?n?.get(t)?.descriptor:void 0)??n?.values().next().value?.descriptor;return r?this.operationLifetime.retain(r,()=>this.scheduleGarbageCollection()):{dispose:yy}}retain(e){return this.operationLifetime.retain(this.createRequestDescriptor(e),()=>this.scheduleGarbageCollection())}scheduleGarbageCollection(){this.gcScheduled||(this.gcScheduled=!0,queueMicrotask(()=>{this.gcScheduled=!1,this.gc()}))}gc(){if(this.persistence?this.store.hasTransientOptimisticUpdates:this.hasActiveOptimisticUpdates()){this.gcPending=!0;return}this.gcPending=!1;let e=new Set,t=new Set,n=[],r=e=>{e&&!t.has(e)&&(t.add(e),n.push(e))},i=t=>{e.add(t);let n=this.store.getListState(t);if(n){for(let e of n.pendingBeforeIds??[])r(e);for(let e of n.ids)r(e);for(let e of n.pendingAfterIds??[])r(e)}},a=this.store.getOptimisticRoots();a.baseRecords.forEach(e=>this.markRecordReferences(e,r)),a.records.forEach(r),a.lists.forEach(i);let o=new Set;for(let e of this.operationLifetime.getDescriptors())for(let t of e.items){if(t.kind===`node`||t.kind===`nodes`){for(let e of t.ids)r(gv(t.type,e));continue}if(t.kind===`query`){r(this.rootRequests.get(t.queryKey));continue}if(t.kind===`value`){o.add(t.queryKey);continue}t.kind===`list`&&(i(t.listKey),o.add(`list:${t.listKey}`))}for(let e=0;e<n.length;e+=1){let t=n[e];if(!t)continue;let a=this.store.read(t);if(!a)continue;this.markRecordReferences(a,r);let{type:o}=F_(t),s=this.types.get(o);if(s?.fields){for(let[e,n]of Object.entries(s.fields))if(n&&n!==`scalar`&&`listOf`in n)for(let[n]of this.store.getListsForField(t,e))i(n)}}let s=this.store.collectGarbage(t,e,{onRecordDeleted:e=>{this.viewDataCache.invalidate(e),this.stableRefs.delete(e),this.clearStalledRequestsForEntity(e)}});if(s.records.size>0)for(let[e,t]of this.rootRequests.entries())t&&s.records.has(t)&&this.rootRequests.delete(e);for(let e of this.rootValues.keys())o.has(e)||this.rootValues.delete(e);if(s.lists.size>0)for(let[e,t]of this.rootLists.entries()){for(let e of s.lists)t.delete(e);t.size===0&&this.rootLists.delete(e)}}executeRequestHandle(e,t,n){let r=this.persistenceRuntime,i={fetchAll:t!==`cache-first`,persist:n?.persist?{...n.persist}:void 0};r&&this.requestExecutionOptions.set(e.descriptor,i);let a=()=>(this.assertPersistenceActive(),t===`stale-while-revalidate`?this.handleStoreAndNetworkRequest(e.descriptor,i):this.executeRequest(e.descriptor,i).then(()=>this.getRequestResultFromDescriptor(e.descriptor)));e.start(r?this.withPersistenceLifecycle(()=>r.ready.then(()=>t===`network-only`?void 0:r.restoreRequest(e.descriptor)).then(a)):a()),e.then(()=>this.notifyRequests(this.requestDependencies(e.descriptor)),()=>this.notifyRequests(this.requestDependencies(e.descriptor)))}markRecordReferences(e,t){let n=new Set,r=e=>{if(Xg(e)){t(Zg(e));return}if(e&&typeof e==`object`&&!n.has(e)){if(n.add(e),Array.isArray(e)){for(let t of e)r(t);return}for(let t of Object.values(e))r(t)}};r(e)}hasActiveOptimisticUpdates(){return this.store.hasOptimisticUpdates||this.pendingOptimisticMutations.size>0}hasPendingRequests(){return this.pendingNetworkRequests>0}async withPersistenceLifecycle(e){this.assertPersistenceActive();let t=this.persistenceDisposal?.signal,n;try{let r=e(),i=t?await Promise.race([r,new Promise((e,r)=>{n=()=>r(Error(`fate: Persistence was disposed.`)),t.addEventListener(`abort`,n,{once:!0}),t.aborted&&n()})]):await r;return this.assertPersistenceActive(),i}finally{n&&t?.removeEventListener(`abort`,n)}}async trackPendingRequest(e){return this.withPersistenceLifecycle(async()=>{this.persistence&&await this.persistence.ready,this.assertPersistenceActive(),this.pendingNetworkRequests+=1;try{return await this.withPersistenceLifecycle(e)}finally{--this.pendingNetworkRequests,this.pendingNetworkRequests||this.writeVersions.clear(),this.persistenceRuntime?.changed()}})}runPendingGarbageCollection(){this.gcPending&&!this.hasActiveOptimisticUpdates()&&this.gc()}async handleStoreAndNetworkRequest(e,t){if(!this.hasRequestData(e))return await this.executeRequest(e,t),this.getRequestResultFromDescriptor(e);let n=this.getRequestResultFromDescriptor(e);return this.executeRequest(e,t).then(()=>this.notifyRequests(this.requestDependencies(e)),()=>this.notifyRequests(this.requestDependencies(e))),n}getRootType(e){let t=this.roots[e];if(!t)throw Error(`fate: Unknown root request '${e}'.`);return t.type}createRequestDescriptor(e){return fy(e,e=>this.getRootType(e))}getRequestKey(e){return this.createRequestDescriptor(e).key}missingForSelection(e,t,n){let r=new Map([...t].map(e=>[nv(e,n),e]));return new Set([...this.store.missingForSelection(e,r.keys())].map(e=>r.get(e)))}hasRootListData(e){if(this.rootValues.has(`list:${e.listKey}`))return!0;let t=this.store.getListState(e.listKey);if(!t)return!1;let n=uy(e.argsPayload);if(!n.hasCursorArg&&!Ay(t,e.argsPayload,n.direction))return!1;for(let n of t.ids)if(this.missingForSelection(n,e.plan.paths,e.plan).size>0)return!1;return!0}async executeRequest(e,t={}){let n=t.fetchAll??!1,r=new Map,i=[],a=[],o=!0;for(let t of e.items)if(t.kind===`node`||t.kind===`nodes`){let e=t.plan.paths,i=[...e].slice().sort().join(`,`),s=[...t.plan.args.entries()].map(([e,t])=>`${e}:${t.hash}`).sort().join(`,`),c=`${t.type}#${i}|${s}`,l=r.get(c);l||(l={fields:e,ids:[],plan:t.plan,type:t.type},r.set(c,l));let u=[];for(let r of t.ids){let i=gv(t.type,r),a=this.missingForSelection(i,e,t.plan);(n||a.size>0)&&(l.ids.push(r),u.push(r))}u.length&&a.push({...t,ids:u}),o&&=u.length===t.ids.length}else{if(t.kind===`value`){n||!this.rootValues.has(t.queryKey)?(i.push(this.fetchValue(t)),a.push(t)):o=!1;continue}if(t.kind===`query`){let e=this.rootRequests.has(t.queryKey),r=this.rootRequests.get(t.queryKey),s=e&&r?this.missingForSelection(r,t.plan.paths,t.plan):t.plan.paths;n||!e||r&&s.size>0?(i.push(this.fetchQueryAndNormalize(t)),a.push(t)):o=!1}if(t.kind!==`list`)continue;if(!n&&!uy(t.argsPayload).hasCursorArg&&this.hasRootListData(t)){o=!1;continue}i.push(this.fetchListAndNormalize(t)),a.push(t)}await Promise.all([...i,...Array.from(r.values()).map(e=>e.ids.length?this.fetchByIdAndNormalize(e.type,e.ids,e.fields,e.plan):Promise.resolve())]);let s=this.persistenceRuntime;s&&(a.length&&s.fetched(o?e:{items:a,key:`partial:${JSON.stringify([e.key,a.map(e=>[e.name,`ids`in e?e.ids:null])])}`},t.persist),(!a.length||!o)&&s.used(e,t.persist))}hasRequestData(e){for(let t of e.items){if(t.kind===`node`||t.kind===`nodes`){let e=t.plan.paths;for(let n of t.ids){let r=gv(t.type,n);if(this.missingForSelection(r,e,t.plan).size>0)return!1}continue}if(t.kind===`query`){let e=this.rootRequests.has(t.queryKey),n=this.rootRequests.get(t.queryKey),r=e&&n?this.missingForSelection(n,t.plan.paths,t.plan):t.plan.paths;if(!e||n&&r.size>0)return!1;continue}if(t.kind===`value`){if(!this.rootValues.has(t.queryKey))return!1;continue}if(t.kind===`list`&&!this.hasRootListData(t))return!1}return!0}getRequestResult(e){return this.getRequestResultFromDescriptor(this.createRequestDescriptor(e))}getRequestResultFromDescriptor(e){let t=this.requestResults.get(e),n=t??{};for(let r of e.items){let e=this.getRequestItemResult(r);(!t||!Object.is(t[r.name],e))&&(n===t&&(n={...t}),n[r.name]=e)}return n!==t&&this.requestResults.set(e,n),n}getRequestItemResult(e){if(e.kind===`node`)return this.stableRefWithViewNames(e.type,e.ids[0],e.refViewNames);if(e.kind===`query`){let t=this.rootRequests.get(e.queryKey);return t?this.stableRefWithViewNames(e.type,F_(t).id,e.refViewNames):null}if(e.kind===`value`)return this.rootValues.get(e.queryKey);if(e.kind===`list`&&this.rootValues.has(`list:${e.listKey}`))return null;let t=e.kind===`list`?this.store.getListState(e.listKey):void 0,n=e.kind===`nodes`?e.ids:t,r=this.requestItemResults.get(e);if(r&&Object.is(r.source,n))return r.value;let i;if(e.kind===`nodes`)i=e.ids.map(t=>this.stableRefWithViewNames(e.type,t,e.refViewNames));else if(e.kind===`list`){let n=Kv(t),r=n.map(({id:t})=>{let{id:n,type:r}=F_(t);return this.stableRefWithViewNames(r,n,e.nodeRefViewNames)});if(e.hasItems){let a={items:r.map((e,t)=>({cursor:n[t]?.cursor,node:e})),pagination:t?.pagination},o={args:e.argsPayload,field:e.procedure,key:e.listKey,live:e.plan.live.get(``),owner:e.name,procedure:e.procedure,root:!0,type:e.type};Object.defineProperty(a,dg,{configurable:!1,enumerable:!1,value:o,writable:!1}),i=a}else i=r}return this.requestItemResults.set(e,{source:n,value:i}),i}async fetchByIdAndNormalize(e,t,n,r,i=null){let a=Hg(r),o=++this.writeGeneration;await this.trackPendingRequest(async()=>{let s=await this.transport.fetchById(e,t,n,a);this.assertPersistenceActive();for(let t of s)this.withWriteGeneration(o,()=>this.writeEntity(e,t,n,r,i))})}async fetchQueryAndNormalize(e){if(!this.transport.fetchQuery)throw Error(`fate: transport does not support queries. Please add support for 'fetchQuery' in your transport for '${e.name}'.`);let t=++this.writeGeneration;await this.trackPendingRequest(async()=>{let n=await this.transport.fetchQuery(e.procedure,e.plan.paths,e.argsPayload);if(this.assertPersistenceActive(),!n||typeof n!=`object`){this.acceptWrite(`root:${e.queryKey}`,t)&&this.rootRequests.set(e.queryKey,null);return}let r=this.withWriteGeneration(t,()=>this.writeEntity(e.type,n,e.plan.paths,e.plan));this.acceptWrite(`root:${e.queryKey}`,t)&&this.rootRequests.set(e.queryKey,r)})}async fetchValue(e){if(!this.transport.fetchQuery)throw Error(`fate: transport does not support value queries for '${e.name}'.`);let t=++this.writeGeneration;await this.trackPendingRequest(async()=>{let n=await this.transport.fetchQuery(e.procedure,e.plan.paths,e.argsPayload);this.assertPersistenceActive(),this.acceptWrite(`root:${e.queryKey}`,t)&&this.rootValues.set(e.queryKey,n)})}async fetchListAndNormalize(e){if(!this.transport.fetchList)throw Error(`fate: 'transport.fetchList' is not configured but request includes a list for key '${e.name}'.`);let t=++this.writeGeneration;await this.trackPendingRequest(async()=>{let n=await this.transport.fetchList(e.procedure,e.plan.paths,e.argsPayload);this.assertPersistenceActive();let r=this.acceptWrite(`list:${e.listKey}`,t);if(n===null){r&&this.rootValues.set(`list:${e.listKey}`,null);return}r&&this.rootValues.delete(`list:${e.listKey}`);let{items:i,pagination:a}=n;this.withWriteGeneration(t,()=>this.store.update(()=>{let t=[],n=[];for(let r of i){let i=this.writeEntity(e.type,r.node,e.plan.paths,e.plan);t.push(i),n.push(r.cursor)}if(!r)return;Bg(e.argsPayload)||this.registerRootList(e.type,e.listKey);let o=this.store.getListState(e.listKey);this.store.setList(e.listKey,this.mergeListState(o,t,n,a,{...jy(e.argsPayload),replace:!0}))}))})}normalizeEmbedded(e,t,n){return Array.isArray(e)?e.map(e=>this.normalizeEmbedded(e,t,n)):!Tg(e)||![...t?.paths??[]].some(e=>e.startsWith(`${n}.`))?e:Object.fromEntries(Object.entries(e).map(([e,r])=>{let i=`${n}.${e}`;return[tv(i,t),this.normalizeEmbedded(r,t,i)]}))}writeEntity(e,t,n,r,i=null,a){return this.store.update(()=>{e=this.relatedEntityType(e,this.types.get(e)?.possibleTypes,t);let o=this.types.get(e);if(!o)throw Error(`fate: Found unknown entity type '${e}' in normalization.`);let s=o.getId(t),c=gv(e,s),l=this.applyingGeneration??++this.writeGeneration;if(!this.store.isRecordingOptimistic&&(this.writeVersions.get(JSON.stringify([c]))??0)>l)return c;let u={},d=Iy(n),f=Object.fromEntries(Object.keys(t).map(e=>[e,o.fields?.[xg(e)]]));if(o.fields)for(let[n,a]of Object.entries(f)){if(!a)continue;let o=t[n],s=i?`${i}.${n}`:n,f=r?.args.get(s),p=tv(s,r);if(!Object.hasOwn(t,n))continue;let m=this.acceptWrite(JSON.stringify([c,p]),l);if(a===`scalar`){if(!m)continue;u[p]=o}else if(a&&typeof a==`object`&&`type`in a){let t=d.get(n)??vy;if(o===null){m&&(u[p]=null);continue}if(o&&typeof o==`object`&&!Xg(o)){let i=this.relatedEntityType(a.type,a.possibleTypes,o),c=this.types.get(i);if(!c)throw Error(`fate: Unknown related type '${i}' (field '${e}.${n}').`);let l=gv(i,c.getId(o));m&&(u[p]=Yg(l)),this.writeEntity(i,o,t,r,s)}}else if(a&&typeof a==`object`&&`listOf`in a){let t=d.get(n)??vy;if(o===null){m&&(u[p]=null);continue}let i=a.listOf;if(!this.types.has(i))throw Error(`fate: Unknown related type '${i}' (field '${e}.${n}').`);let l=(()=>{if(Array.isArray(o))return{items:o.map(e=>({node:e}))};if(o&&typeof o==`object`){let e=o;if(Array.isArray(e.items))return{items:e.items.map(e=>{if(e&&typeof e==`object`&&`node`in e){let t=e;return{cursor:t.cursor,node:t.node}}return{node:e}}),pagination:e.pagination}}return null})();if(l){let o=[],d=[],h=t.size>0?new Set:t;if(t.size>0)for(let e of t){if(e.startsWith(`items.node.`)){h.add(e.slice(11));continue}if(e.startsWith(`node.`)){h.add(e.slice(5));continue}e===`items.node`||e.startsWith(`items.`)||h.add(e)}for(let t of l.items){let c=t.node,l=`cursor`in t?t.cursor:void 0;if(d.push(l),Xg(c)){o.push(Zg(c));continue}if(c&&typeof c==`object`){let t=this.relatedEntityType(i,a.possibleTypes,c),l=this.types.get(t);if(!l)throw Error(`fate: Unknown related type '${t}' (field '${e}.${n}').`);let u=gv(t,l.getId(c));this.writeEntity(t,c,h,r,s),o.push(u);continue}}if(!m)continue;let g=Nv(c,xg(n),f?.hash),_=this.store.getListState(g),v=f?.value,y=this.mergeListState(_,o,d,l.pagination,jy(v)),b=!Ey(_,y);u[p]=Dy(y.ids,this.store.read(c)?.[p],{reuseCurrentArray:!b}),this.store.setList(g,y)}}else m&&(u[p]=this.normalizeEmbedded(o,r,s))}for(let[e,n]of Object.entries(t))if(!f[e]){let t=i?`${i}.${e}`:e,a=tv(t,r);this.acceptWrite(JSON.stringify([c,a]),l)&&(u[a]=n)}let p=[];for(let e of n){let n=nv(e,r,i??``),a=n.split(`.`)[0];(Object.hasOwn(u,a)||!Object.hasOwn(t,e.split(`.`)[0])&&this.acceptWrite(JSON.stringify([c,a]),l))&&p.push(n)}return this.viewDataCache.invalidate(c),this.withWriteGeneration(l,()=>this.store.merge(c,u,p)),this.linkParentLists(e,c,u,a??`after`),!i&&a&&this.insertIntoRootLists(e,c,a),c})}linkParentLists(e,t,n,r){if(r===`none`)return;let i=this.parentLists.get(e);if(i)for(let e of i){if(!e.via)continue;let i=n[e.via],a=Xg(i)?Zg(i):null;if(!a)continue;let o=this.store.read(a);if(!o)continue;let s=Array.isArray(o[e.field])?o[e.field]:[];if(s.some(e=>Xg(e)&&Zg(e)===t))continue;this.viewDataCache.invalidate(a);let c=Nv(a,e.field),l=this.store.getListState(c),u=s;if(l){let{list:e,pending:n}=this.applyListInsert(l,t,r);e!==l&&this.store.setList(c,e);let i=n?Kv(e).map(({id:e})=>e):e.ids;u=Dy(i,s)}else{let e=s.map(e=>Xg(e)?Zg(e):null).filter(e=>e!=null),n={ids:r===`before`?[t,...e]:[...e,t]};this.store.setList(c,n),u=Dy(n.ids,s)}let d=this.store.getListsForField(a,e.field).filter(([e])=>e!==c);for(let[e,n]of d){let i=this.applyListInsert(n,t,r).list;i!==n&&this.store.setList(e,i)}this.store.merge(a,{[e.field]:u},[e.field])}}readViewSelection(e,t,n,r,i=null){let a=this.store.read(n)||{id:n},o=new Set;o.add(n);let s=new Map,c=(e,i,a,l,u)=>{for(let[d,f]of Object.entries(e)){let e=bv(f);if(e===void 0){a[d]=void 0;continue}if(yg(e)){Cg(d,d);let{id:r,type:i}=F_(l),o=this.stableRefWithViewNames(i,l===n?t.id:r,uv(e.view));a[d]=this.cacheOnlyRefs.has(t)?this.cacheOnlyResult(o):o;continue}let p=bg(e)?e.selection:e,m=bg(e)?e.field:d,h=bg(e)?Cg(d,m):d;if(rg(d)){a[lg]||I_(a,new Set),sv(a[lg],d,e);continue}let g=u?`${u}.${h}`:h,_=tv(g,r);if(Y_(p)){let{id:e,type:t}=F_(l);s.set(l,(s.get(l)??new Set).add(_)),a[d]=Z_({field:m,id:e,owner:l,selection:X_(p),type:t});continue}s.set(l,(s.get(l)??new Set).add(_));let v=typeof p;if(v===`boolean`&&p)a[d]=i[_];else if(p&&v===`object`){let e=p,{args:t,...s}=e;if(t&&typeof t==`object`&&Object.keys(s).length===0){a[d]=i[_];continue}d in a||(a[d]={});let u=Object.keys(s).length?s:e,f=i[_];if(f==null){a[d]=null;continue}if(Array.isArray(f)){if(u.items&&typeof u.items==`object`){let e=u.items,t=r.args.get(g),n=Nv(l,m,t?.hash),i=this.store.getListState(n),s={items:(i?Kv(i):f.map(e=>({cursor:void 0,id:Xg(e)?Zg(e):null}))).map((t,n)=>{let r=t.id;if(!r)return{cursor:i?.cursors?.[n],node:null};o.add(r);let a=this.store.read(r),{id:s,type:l}=F_(r),u={__typename:l,id:s};a&&c(e.node,a,u,r,g);let d={node:a?u:null};return e.cursor===!0&&(d.cursor=t.cursor),d})};if(`pagination`in u&&u.pagination){let e=u.pagination,t=i?.pagination;if(t){let n={};e.nextCursor===!0&&t.nextCursor!==void 0&&(n.nextCursor=t.nextCursor),e.previousCursor===!0&&t.previousCursor!==void 0&&(n.previousCursor=t.previousCursor),e.hasNext===!0&&(n.hasNext=t.hasNext),e.hasPrevious===!0&&(n.hasPrevious=t.hasPrevious),Object.keys(n).length>0&&(s.pagination=n)}else s.pagination=void 0}let{type:p}=F_(l);if(p){let e=this.getListNodeType(p,m),i={args:t?.value?{...t.value}:void 0,field:m,hash:t?.hash,key:n,live:r.live.get(g),owner:l,procedure:`${p}.${m}`,root:!1,type:e};Object.defineProperty(s,dg,{configurable:!1,enumerable:!1,value:i,writable:!1})}a[d]=s}else a[d]=f.map(e=>{let t=Xg(e)?Zg(e):null;if(!t)return e;o.add(t);let n=this.store.read(t),{id:r,type:i}=F_(t);if(n){let e={__typename:i,id:r};return c(u,n,e,t,g),e}return null})}else if(Xg(f)){let e=Zg(f);o.add(e);let t=this.store.read(e),{id:n,type:r}=F_(e),i=a[d];i.id=n,i.__typename=r,t&&c(u,t,i,e,g)}else c(u,f,a[d],n,g)}}},l={__typename:F_(n).type},u=lv(e,t);if(u.length===0&&Tg(e))c(e,a,l,n,i);else for(let e of u)c(e.select,a,l,n,i);return{coverage:[...s.entries()],data:l}}clearStalledRequestsForEntity(e){let t=this.pendingPrefix(e);for(let e of this.stalledRequests)e.startsWith(t)&&this.stalledRequests.delete(e)}pendingPrefix(e){return`__fate__|${e}|`}pendingKey(e,t){return`${this.pendingPrefix(e)}${[...t].sort().join(`|`)}`}deferredPendingKey(e,t,n,r){let i=[...n.args.entries()].map(([e,t])=>`${e}:${t.hash}`).sort().join(`|`);return`${this.pendingKey(e,new Set(t))}|${i}|${r}`}deferredSelectionSignature(e){let t=new Set,n=e=>typeof e!=`object`||!e?`${typeof e}:${String(e)}`:t.has(e)?`[Circular]`:(t.add(e),Array.isArray(e)?`[${e.map(e=>n(e)).join(`,`)}]`:`{${Object.entries(e).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>rg(e)?`view:${e}`:`${e}:${n(t)}`).join(`,`)}}`);return n(e)}hasMissingDeferredList(e,t,n,r){let i=this.types.get(t)?.fields?.[n];if(!i||i===`scalar`||!(`listOf`in i))return!1;let a=r.args.get(n),o=this.store.getListState(Nv(e,n,a?.hash));if(!o)return!0;let s=a?.value,c=uy(s);return c.hasCursorArg?!0:!Ay(o,s,c.direction)}liveSubscriptionKey(e,t){return`${e}|${[...t.paths].sort().join(`|`)}|${[...t.args.entries()].map(([e,t])=>`${e}:${t.hash}`).sort().join(`|`)}`}liveConnectionSubscriptionKey(e,t,n){let r=[...t.paths].sort().join(`|`),i=[...t.args.entries()].map(([e,t])=>`${e}:${t.hash}`).sort().join(`|`);return`connection|${e.procedure}|${e.type}|${zg(n??{})}|${r}|${i}`}releaseLiveSubscription(e){let t=this.liveSubscriptions.get(e);t&&(t.count<=0||(--t.count,!(t.count>0)&&(t.releaseScheduled=!0,queueMicrotask(()=>{let t=this.liveSubscriptions.get(e);!t||!t.releaseScheduled||t.count>0||(t.unsubscribe(),this.liveSubscriptions.delete(e))}))))}reportLiveError(e){let t=this.onLiveError;t&&queueMicrotask(()=>{t(e)})}},Ry=(e,t)=>{e.handlers.onError?.(t)},zy=(e,t,n)=>{if(n){e.onData(t,n);return}e.onData(t)},By=e=>new D_(e.error.code,e.error.message,{issues:e.error.issues}),Vy=(e,t)=>e===t||e.startsWith(`${t}.`)||t.startsWith(`${e}.`),Hy=(e,t)=>{if(!t)return null;let n=t.filter(e=>e.length>0);if(n.length===0)return[];let r=e.filter(e=>n.some(t=>Vy(e,t)));if(r.length===0)return[];let i=new Set(r);i.add(`id`);for(let t of e){if(!t.endsWith(`.id`))continue;let e=t.slice(0,-3);r.some(t=>Vy(t,e))&&i.add(t)}return[...i]},Uy=(e,t)=>{if(t.length===0)return!0;if(Array.isArray(e))return e.every(e=>Uy(e,t));if(!Tg(e))return!1;let[n,...r]=t;return n in e&&Uy(e[n],r)},Wy=(e,t)=>{if(!Tg(e))return!1;for(let n of t)if(!Uy(e,n.split(`.`)))return!1;return!0},Gy=(e,t)=>globalThis.fetch(e,t),Ky=async e=>typeof e==`function`?await e():e??{},qy=async(e,t)=>{let n=new Headers(e);return new Headers(await Ky(t)).forEach((e,t)=>{n.set(t,e)}),n},Jy=e=>String(e).replace(/\/$/,``),Yy=e=>`${Jy(e)}/live`,Xy=async e=>{let t=e.statusText||`HTTP ${e.status}`;try{let n=await e.clone().json();Tg(n)&&Array.isArray(n.results)&&Tg(n.results[0])&&Tg(n.results[0].error)&&typeof n.results[0].error.message==`string`&&(t=n.results[0].error.message)}catch{try{let n=await e.text();n&&(t=n)}catch{}}return new D_(k_(e.status),t,{status:e.status})},Zy=e=>{if(!Tg(e)||e.version!==1&&e.version!==2||!Array.isArray(e.results)||e.results.some(e=>!Tg(e)||typeof e.id!=`string`))throw Error(`fate(http): Invalid protocol response.`);return e},Qy=e=>{if(e.ok)return e.data;throw new D_(e.error.code,e.error.message,{issues:e.error.issues})}})),eb=o((()=>{qv()}));function tb({children:e,client:t}){return(0,sb.jsx)(cb,{value:t,children:e})}function nb(){let e=(0,ob.use)(cb);if(!e)throw Error(`react-fate: '<FateClient client={fate}>' is missing.`);return e}function rb(e,t){let n=nb(),r=Q_(t),i=(0,ob.useRef)(null),a=(0,ob.useRef)(null),o=(0,ob.useCallback)((t,r=[],a)=>{let o=n.readView(e,t),s=e=>({...e,coverage:r.length?[...r,...e.coverage]:e.coverage});if(lb(o)){if(r.length){let e=i.current,n=`${t.__typename}:${String(t.id)}`;if(e?.source===o.value&&e.cacheKey===a&&e.resolvedKey===n)return e.thenable;let r=s(o.value),c=ub(r);return i.current={cacheKey:a,resolvedKey:n,source:o.value,thenable:c},c}return i.current=null,o}return i.current=null,r.length?Promise.resolve(o).then(s):o},[n,e]),s=(0,ob.useCallback)(()=>{if(t==null)return t===void 0?db:fb;if(!r)return a.current=null,o(t);let i=t,s=n.readDeferred(i);if(lb(s)){let t=s.value.data;return a.current=null,t===null?ub({coverage:s.value.coverage,data:null}):o(n.ref(t.__typename,t.id,cv(e,t)),s.value.coverage,i)}if(a.current?.deferred===t&&a.current.snapshot===s)return a.current.viewSnapshot;let c=Promise.resolve(s).then(t=>{let r=t.data;return r===null?{coverage:t.coverage,data:null}:o(n.ref(r.__typename,r.id,cv(e,r)),t.coverage,i)});return a.current={deferred:i,snapshot:s,viewSnapshot:c},c},[n,e,t,r,o]),c=(0,ob.useCallback)(e=>{if(t==null)return()=>{};let r=new Map,i=!1,a=null,o=()=>{try{u()}catch{}e()},c=(e,t)=>{r.has(e)||r.set(e,n.store.subscribe(e,t,o))},l=e=>{for(let[t,n]of r)e.has(t)||(n(),r.delete(t))},u=()=>{let t=s();if(!lb(t)){a!==t&&(a=t,Promise.resolve(t).then(()=>{!i&&a===t&&o()},()=>{!i&&a===t&&e()}));return}if(a=null,t.value){for(let[e,n]of t.value.coverage)c(e,n);l(new Set(t.value.coverage.map(([e])=>e)))}};return u(),()=>{i=!0;for(let e of r.values())e();r.clear()}},[n.store,s,t]),l=(0,ob.use)((0,ob.useDeferredValue)((0,ob.useSyncExternalStore)(c,s,s)));return l&&l.data}function ib(e,t){let n=nb(),r=Q_(t)?(0,ob.use)(n.readDeferred(t)).data:t,{metadata:i,nodeView:a}=hb(e,r),o=(0,ob.useCallback)(e=>i?n.store.subscribeList(i.key,e):()=>{},[n,i]),s=(0,ob.useCallback)(()=>i?n.store.getListState(i.key):void 0,[n,i]),c=(0,ob.useDeferredValue)((0,ob.useSyncExternalStore)(o,s,s)),l=c?.pagination??r?.pagination,u=!!l?.hasNext,d=!!l?.hasPrevious,f=l?.nextCursor,p=l?.previousCursor;return[(0,ob.useMemo)(()=>i&&c?Kv(c).map(({cursor:e,id:t})=>({cursor:e,node:n.rootListRef(t,a)})):r?.items,[n,r?.items,c,i,a]),(0,ob.useMemo)(()=>!i||!u||!f?null:async()=>{let{before:e,first:t,last:r,...o}=i.args||{},s=t??r;await n.loadConnection(a,i,{...o,after:f,before:void 0,...s===void 0?null:{first:s},last:void 0},{direction:`forward`})},[n,u,a,i,f]),(0,ob.useMemo)(()=>!i||!d||!p?null:async()=>{let{after:e,first:t,last:r,...o}=i.args||{},s=r??t;await n.loadConnection(a,i,{...o,after:void 0,before:p,first:void 0,...s===void 0?null:{last:s}},{direction:`backward`})},[n,d,a,i,p])]}function ab(e,t){let n=nb(),r=t?.mode??`cache-first`,{promise:i,requestKey:a}=n.prepareRequestForRender(e,t);return(0,ob.useEffect)(()=>{let e=n.retainRequestKey(a,r);return()=>{e.dispose(),(r===`network-only`||r===`stale-while-revalidate`)&&n.releaseRequestKey(a,r)}},[n,r,a]),(0,ob.use)((0,ob.useDeferredValue)(i))}var ob,sb,cb,lb,ub,db,fb,pb,mb,hb,gb=o((()=>{$y(),ob=u(f(),1),sb=G(),eb(),cb=(0,ob.createContext)(null),lb=e=>`status`in e&&e.status===`fulfilled`&&`value`in e,ub=e=>({status:`fulfilled`,then(t,n){return Promise.resolve(e).then(t,n)},value:e}),db=ub(void 0),fb={status:`fulfilled`,then(e,t){return Promise.resolve(null).then(e,t)},value:null},pb=e=>{let t=e.items?.node;if(t&&typeof t==`object`){for(let e of Object.keys(t))if(rg(e))return t}return e},mb=e=>e&&typeof e==`object`?e[dg]:null,hb=(e,t)=>({metadata:mb(t),nodeView:(0,ob.useMemo)(()=>pb(e),[e])})})),_b,vb,yb,bb,xb=o((()=>{gb(),_b={},vb={adminAuthEdit:ny(`AdminAuthEdit`),adminAuthNew:ny(`AdminAuthNew`),adminAuthSettings:ny(`AdminAuthSettings`),adminBuildDetail:ny(`AdminBuildDetail`),adminBuildLogs:ny(`AdminBuildLogs`),adminBuildStatus:ny(`AdminBuildStatus`),adminCliVersions:ny(`AdminCliVersions`),adminDashboard:ny(`AdminDashboard`),adminDeploymentDetail:ny(`AdminDeploymentDetail`),adminDeploymentLogs:ny(`AdminDeploymentLogs`),adminDeploymentsPage:ny(`AdminDeploymentsPage`),adminEmailProject:ny(`AdminEmailProject`),adminEmailSettings:ny(`AdminEmailSettings`),adminHealth:ny(`AdminHealth`),adminInvitations:ny(`AdminInvitations`),adminPlans:ny(`AdminPlans`),adminProjectDetail:ny(`AdminProjectDetail`),adminProjectsPage:ny(`AdminProjectsPage`),adminSignup:ny(`AdminSignup`),adminTopProject:ny(`AdminTopProject`),adminUserDetail:ny(`AdminUserDetail`),adminUsersPage:ny(`AdminUsersPage`),adminZeroTrust:ny(`AdminZeroTrust`),authEdit:ny(`AdminAuthEdit`),authNew:ny(`AdminAuthNew`),authSettings:ny(`AdminAuthSettings`),buildDetail:ny(`AdminBuildDetail`),buildLogs:ny(`AdminBuildLogs`),buildStatus:ny(`AdminBuildStatus`),cliVersions:ny(`AdminCliVersions`),dashboard:ny(`AdminDashboard`),deploymentDetail:ny(`AdminDeploymentDetail`),deploymentLogs:ny(`AdminDeploymentLogs`),deploymentsPage:ny(`AdminDeploymentsPage`),emailProject:ny(`AdminEmailProject`),emailSettings:ny(`AdminEmailSettings`),health:ny(`AdminHealth`),invitations:ny(`AdminInvitations`),plans:ny(`AdminPlans`),projectDetail:ny(`AdminProjectDetail`),projectsPage:ny(`AdminProjectsPage`),signupControl:ny(`AdminSignup`),userDetail:ny(`AdminUserDetail`),usersPage:ny(`AdminUsersPage`),zeroTrust:ny(`AdminZeroTrust`)},yb=`{"moduleName":"./server.ts","roots":{"authEdit":{"kind":"query","procedure":"authEdit","router":"adminAuthEdit","type":"AdminAuthEdit"},"authNew":{"kind":"query","procedure":"authNew","router":"adminAuthNew","type":"AdminAuthNew"},"authSettings":{"kind":"query","procedure":"authSettings","router":"adminAuthSettings","type":"AdminAuthSettings"},"buildDetail":{"kind":"query","procedure":"buildDetail","router":"adminBuildDetail","type":"AdminBuildDetail"},"buildLogs":{"kind":"query","procedure":"buildLogs","router":"adminBuildLogs","type":"AdminBuildLogs"},"buildStatus":{"kind":"query","procedure":"buildStatus","router":"adminBuildStatus","type":"AdminBuildStatus"},"cliVersions":{"kind":"query","procedure":"cliVersions","router":"adminCliVersions","type":"AdminCliVersions"},"dashboard":{"kind":"query","procedure":"dashboard","router":"adminDashboard","type":"AdminDashboard"},"deploymentDetail":{"kind":"query","procedure":"deploymentDetail","router":"adminDeploymentDetail","type":"AdminDeploymentDetail"},"deploymentLogs":{"kind":"query","procedure":"deploymentLogs","router":"adminDeploymentLogs","type":"AdminDeploymentLogs"},"deploymentsPage":{"kind":"query","procedure":"deploymentsPage","router":"adminDeploymentsPage","type":"AdminDeploymentsPage"},"emailProject":{"kind":"query","procedure":"emailProject","router":"adminEmailProject","type":"AdminEmailProject"},"emailSettings":{"kind":"query","procedure":"emailSettings","router":"adminEmailSettings","type":"AdminEmailSettings"},"health":{"kind":"query","procedure":"health","router":"adminHealth","type":"AdminHealth"},"invitations":{"kind":"query","procedure":"invitations","router":"adminInvitations","type":"AdminInvitations"},"plans":{"kind":"query","procedure":"plans","router":"adminPlans","type":"AdminPlans"},"projectDetail":{"kind":"query","procedure":"projectDetail","router":"adminProjectDetail","type":"AdminProjectDetail"},"projectsPage":{"kind":"query","procedure":"projectsPage","router":"adminProjectsPage","type":"AdminProjectsPage"},"signupControl":{"kind":"query","procedure":"signupControl","router":"adminSignup","type":"AdminSignup"},"userDetail":{"kind":"query","procedure":"userDetail","router":"adminUserDetail","type":"AdminUserDetail"},"usersPage":{"kind":"query","procedure":"usersPage","router":"adminUsersPage","type":"AdminUsersPage"},"zeroTrust":{"kind":"query","procedure":"zeroTrust","router":"adminZeroTrust","type":"AdminZeroTrust"}},"types":[{"type":"AdminAuthEdit"},{"type":"AdminAuthNew"},{"type":"AdminAuthSettings"},{"type":"AdminBuildDetail"},{"type":"AdminBuildLogs"},{"type":"AdminBuildStatus"},{"type":"AdminCliVersions"},{"fields":{"topProjects":{"listOf":"AdminTopProject"}},"type":"AdminDashboard"},{"type":"AdminDeploymentDetail"},{"type":"AdminDeploymentLogs"},{"type":"AdminDeploymentsPage"},{"type":"AdminEmailProject"},{"type":"AdminEmailSettings"},{"type":"AdminHealth"},{"type":"AdminInvitations"},{"type":"AdminPlans"},{"type":"AdminProjectDetail"},{"type":"AdminProjectsPage"},{"type":"AdminSignup"},{"type":"AdminTopProject"},{"type":"AdminUserDetail"},{"type":"AdminUsersPage"},{"type":"AdminZeroTrust"}]}`,bb=e=>ey({hydrationScope:yb,mutations:_b,onLiveError:e.onLiveError,persistence:e.persistence,roots:vb,transport:ty({fetch:e.fetch,headers:e.headers,live:!1,liveRetryMs:e.liveRetryMs,liveUrl:e.liveUrl,url:e.url}),types:[{type:`AdminHealth`},{type:`AdminTopProject`},{fields:{topProjects:{listOf:`AdminTopProject`}},type:`AdminDashboard`},{type:`AdminPlans`},{type:`AdminUsersPage`},{type:`AdminProjectsPage`},{type:`AdminDeploymentsPage`},{type:`AdminUserDetail`},{type:`AdminProjectDetail`},{type:`AdminDeploymentDetail`},{type:`AdminBuildDetail`},{type:`AdminCliVersions`},{type:`AdminSignup`},{type:`AdminInvitations`},{type:`AdminAuthSettings`},{type:`AdminAuthNew`},{type:`AdminAuthEdit`},{type:`AdminEmailSettings`},{type:`AdminEmailProject`},{type:`AdminZeroTrust`},{type:`AdminBuildLogs`},{type:`AdminBuildStatus`},{type:`AdminDeploymentLogs`}]})})),Sb,Cb,wb=o((()=>{Sb=`<svg role="img" aria-label="Void" viewBox="0 0 270 58" fill="none" xmlns="http://www.w3.org/2000/svg">
56
+ `,`MISSING_INTL_API`,o);let e=typeof l==`bigint`?Number(l):l,r=n.getPluralRules(t,{type:c.pluralType}).select(e-(c.offset||0));a=(Object.prototype.hasOwnProperty.call(c.options,r)?c.options[r]:void 0)||c.options.other}if(!a)throw new nf(c.value,l,Object.keys(c.options),o);let u=typeof l==`bigint`?Number(l):l;s.push(...Xd(a.value,t,n,r,i,u-(c.offset||0)));continue}}return Jd(s)}function Zd(e,t){return t?{...e,...t,...Object.keys(e).reduce((n,r)=>(n[r]={...e[r],...t[r]},n),{})}:e}function Qd(e,t){return t?Object.keys(e).reduce((n,r)=>(n[r]=Zd(e[r],t[r]),n),{...e}):e}function $d(e){return{create(){return{get(t){return e[t]},set(t,n){e[t]=n}}}}}function ef(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:Ru((...e)=>new Intl.NumberFormat(...e),{cache:$d(e.number),strategy:Yu.variadic}),getDateTimeFormat:Ru((...e)=>new Intl.DateTimeFormat(...e),{cache:$d(e.dateTime),strategy:Yu.variadic}),getPluralRules:Ru((...e)=>new Intl.PluralRules(...e),{cache:$d(e.pluralRules),strategy:Yu.variadic})}}var tf,nf,rf,af,of,sf,cf=o((()=>{Xu(),qd(),tf=class extends Error{constructor(e,t,n){super(e),this.code=t,this.originalMessage=n}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},nf=class extends tf{constructor(e,t,n,r){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join(`", "`)}"`,`INVALID_VALUE`,r)}},rf=class extends tf{constructor(e,t,n){super(`Value for "${e}" must be of type ${t}`,`INVALID_VALUE`,n)}},af=class extends tf{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,`MISSING_VALUE`,t)}},of=class e{constructor(t,n=e.defaultLocale,r,i){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{let t=this.formatToParts(e);if(t.length===1)return t[0].value;let n=t.reduce((e,t)=>(!e.length||t.type!==0||typeof e[e.length-1]!=`string`?e.push(t.value):e[e.length-1]+=t.value,e),[]);return n.length<=1?n[0]||``:n},this.formatToParts=e=>Xd(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t==`string`){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");let{...n}=i||{};this.ast=e.__parse(t,{...n,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError(`A message must be provided as a String or AST.`);this.formats=Qd(e.formats,r),this.formatters=i&&i.formatters||ef(this.formatterCache)}static{this.memoizedDefaultLocale=null}static get defaultLocale(){return e.memoizedDefaultLocale||=new Intl.NumberFormat().resolvedOptions().locale,e.memoizedDefaultLocale}static{this.resolveLocale=e=>{if(Intl.Locale===void 0)return;let t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e==`string`?e:e[0])}}static{this.__parse=Nd}static{this.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`}}}}},sf=of})),lf,uf=o((()=>{lf={"@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.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.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.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`}}));function df(e,t){let n=`${t}::${e}`,r=hf.get(n);return r===void 0&&(r=new sf(e,t),hf.set(n,r)),r}function ff(e){let t;try{t=new Intl.Locale(e).baseName}catch{t=e}let n=t.split(`-`),r=[];for(let e=n.length;e>0;e--)r.push(n.slice(0,e).join(`-`));return r}function pf(e,t,n){let r={},i=ff(e);if(n!==void 0){for(let e of i)if(n[e])for(let[t,i]of Object.entries(n[e]))r[t]===void 0&&i!==null&&(r[t]=i)}for(let e of i)if(t[e])for(let[n,i]of Object.entries(t[e])){let e=typeof i==`string`?i:i?.defaultMessage;r[n]===void 0&&e!=null&&(r[n]=e)}return r}function mf(e,t,n){let r=pf(e,t,n);return(t,n)=>{let i=r[t]??lf[t];return i===void 0?(`${e}${t}`,`${t}${e}`,t):n===void 0?i:df(i,e).format(n)}}var hf,gf=o((()=>{cf(),uf(),En(),hf=new Map})),_f,vf,yf=o((()=>{_f=u(f(),1),gf(),vf=(0,_f.createContext)({locale:`en`,direction:`ltr`,messages:{},translate:mf(`en`,{})}),vf.displayName=`InternationalizationContext`}));function bf(){return(0,xf.use)(vf).translate}var xf,Sf=o((()=>{xf=u(f(),1),yf()}));function Cf(){return(0,wf.use)(vf).locale}var wf,Tf=o((()=>{wf=u(f(),1),yf()})),Ef=o((()=>{yf(),gf(),Sf(),Tf()}));function Df(e){e.preventDefault()}function Of({as:e,label:t,href:n,hasUnderline:r=!1,isDisabled:i=!1,isExternalLink:a=!1,newTabLabel:o,target:s,onClick:c,tooltip:l,isStandalone:u=!1,type:d=`body`,size:f,weight:p,color:m=`accent`,display:h=`inline`,maxLines:g=0,children:_,rel:v,xstyle:y,className:b,style:x,ref:S,...C}){let w=bf(),T=o??w(`@astryx.link.newTab`),E=wu(e),D=Pu({href:n,onClick:c,isDisabled:i}),{target:O,rel:k}=Du(a?`_blank`:s,v),A=D===`button`||D===`inert`&&n==null,j=(0,kf.jsxs)(kf.Fragment,{children:[(0,kf.jsx)(Na,{type:d,size:f,weight:p,color:m,display:h,maxLines:g,children:_}),a&&!A&&(0,kf.jsxs)(kf.Fragment,{children:[(0,kf.jsx)(nu,{icon:`externalLink`,size:`xsm`,color:`inherit`}),(0,kf.jsx)(du,{children:T})]})]}),M;return M=A?(0,kf.jsx)(`button`,{ref:S,type:`button`,onClick:c,"aria-label":t||void 0,"aria-disabled":i||void 0,tabIndex:i?-1:void 0,disabled:i,...U(V(`link`,{color:m}),Rn.focusVisible(Af.base,Af.buttonReset,jf[m],!i&&Iu.pressedBackgroundColor,r&&Af.hasUnderline,u&&Af.standalone,i&&Af.disabled,y),b,x),...C,children:j}):i?(0,kf.jsx)(`a`,{ref:S,onClick:Df,"aria-label":t||void 0,"aria-disabled":!0,tabIndex:-1,...U(V(`link`,{color:m}),Rn.focusVisible(Af.base,jf[m],r&&Af.hasUnderline,u&&Af.standalone,Af.disabled,y),b,x),...C,children:j}):(0,kf.jsx)(E,{ref:S,href:n,target:O,rel:k,onClick:c,"aria-label":t||void 0,"aria-disabled":i||void 0,tabIndex:i?-1:void 0,...U(V(`link`,{color:m}),Rn.focusVisible(Af.base,jf[m],!i&&Iu.pressedBackgroundColor,r&&Af.hasUnderline,u&&Af.standalone,i&&Af.disabled,y),b,x),...C,children:j}),l?(0,kf.jsx)(Da,{content:l,placement:`above`,children:M}):M}var kf,Af,jf,Mf=o((()=>{lu(),uu(),qa(),mu(),Eu(),W(),ku(),Fu(),H(),zn(),Lu(),Ef(),kf=G(),Af={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}},jf={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}},Of.displayName=`Link`}));function Nf({component:e,children:t}){let n=(0,Pf.useMemo)(()=>({component:e}),[e]);return(0,Ff.jsx)(gu,{value:n,children:t})}var Pf,Ff,If=o((()=>{Pf=u(f(),1),_u(),Ff=G(),Nf.displayName=`LinkProvider`})),Lf=o((()=>{Mf(),If(),Eu()}));function Rf(e){let t=(0,Vf.useId)();(0,Vf.useInsertionEffect)(()=>{if(e.__built)return;let n=`astryx-theme-${e.name}`;if(Gf.has(n))return;`${e.name}`,`${e.name}${e.name}${e.name}${e.name}`;let{prose:r,component:i}=dl(e),a=ul();Gf.add(n);let o=[()=>Gf.delete(n)];if(a){if(Kf++===0){let e=document.createElement(`style`);e.setAttribute(Ot(`theme-base`),``),e.textContent=`@layer astryx-base {\n${a}\n}`,document.head.appendChild(e)}o.push(()=>{--Kf===0&&document.querySelector(`style[${Ot(`theme-base`)}]`)?.remove()})}if(r){let n=document.createElement(`style`);n.setAttribute(Ot(`theme-prose`),e.name),n.setAttribute(Ot(`id`),t),n.textContent=`@layer reset {\n${r}\n}`,document.head.appendChild(n)}if(i){let n=document.createElement(`style`);n.setAttribute(Ot(`theme`),e.name),n.setAttribute(Ot(`id`),t),n.textContent=`@layer astryx-theme {\n${i}\n}`,document.head.appendChild(n)}return(r||i)&&o.push(()=>{let n=document.querySelector(`style[${Ot(`theme-prose`)}="${e.name}"][${Ot(`id`)}="${t}"]`),r=document.querySelector(`style[${Ot(`theme`)}="${e.name}"][${Ot(`id`)}="${t}"]`);n?.remove(),r?.remove()}),()=>{for(let e of o)e()}},[e,t])}function zf(e,t,n){Cr(()=>{if(!e&&typeof document<`u`)return t===`light`||t===`dark`?document.documentElement.setAttribute(`data-theme`,t):document.documentElement.removeAttribute(`data-theme`),document.documentElement.setAttribute(Ot(`theme`),n),()=>{document.documentElement.removeAttribute(`data-theme`),document.documentElement.removeAttribute(Ot(`theme`))}},[e,t,n])}function Bf({theme:e,mode:t=`system`,children:n}){let r=(0,Vf.use)(Wf);lc(e),Rf(e),zf(r,t,e.name);let i=t===`dark`?Uf.dark:t===`light`?Uf.light:Uf.system,a=(0,Vf.useMemo)(()=>({theme:e,mode:t}),[e,t]);return(0,Hf.jsx)(Fl,{value:a,children:(0,Hf.jsx)(Wf,{value:!0,children:(0,Hf.jsx)(`div`,{...z(Uf.base,i),"data-astryx-theme":e.name,"data-theme":t===`system`?void 0:t,children:n})})})}var Vf,Hf,Uf,Wf,Gf,Kf,qf=o((()=>{Vf=u(f(),1),wr(),B(),xl(),bl(),fc(),Pt(),Rl(),En(),Hf=G(),Uf={base:{k1xSpc:`xjp7ctv`,kMwMTN:`x1tgivj0`,kMv6JI:`x9ynric`,$$css:!0},light:{kQNsl9:`x19aimcq`,$$css:!0},dark:{kQNsl9:`xntwwlm`,$$css:!0},system:{kQNsl9:`x108lcm5`,$$css:!0}},Wf=Vf.createContext(!1),Wf.displayName=`ThemeNestingContext`,Gf=new Set,Kf=0,Bf.displayName=`Theme`})),Jf=o((()=>{qf(),B(),Et(),Pt(),Cn(),Lo(),Rl(),wr(),xl(),fc(),oc(),cc(),En(),wl(),Do(),ds()})),Yf,Xf=o((()=>{Yf=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase()}));function Zf(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:Yf(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Qf=o((()=>{Xf()})),$f,ep=o((()=>{$f=e=>{let t=``,n=!1;for(let r of e){if(r===`-`||r===`_`||r<=` `){n=t.length>0;continue}t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t}})),tp,np=o((()=>{ep(),tp=e=>{let t=$f(e);return t.charAt(0).toUpperCase()+t.slice(1)}})),rp,ip=o((()=>{rp=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim()})),ap,op=o((()=>{ap={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 sp(e){return e!=null}function cp(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??ap.width,a=e.size??e.height??ap.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?rp(...c):rp(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??ap[`stroke-width`])*Number(e.size??e.width??ap.width)/Number(t.size??t.width??ap.width):t.strokeWidth??ap[`stroke-width`];return[`svg`,{...Object.entries(ap).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&sp(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&sp(t.width)&&{[r(`width`)]:t.width},...`height`in t&&sp(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}var lp=o((()=>{op(),ip()}));function up(e,t={}){return cp(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var dp=o((()=>{lp()})),fp,pp=o((()=>{fp=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1}})),mp,hp,gp,_p=o((()=>{mp=u(f(),1),hp=(0,mp.createContext)({}),gp=()=>(0,mp.useContext)(hp)})),vp,yp,bp=o((()=>{vp=u(f(),1),ip(),dp(),pp(),_p(),yp=(0,vp.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=gp()??{},y=!!c||fp(d),[b,x,S=[]]=up(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:rp(v,s),hasA11yProp:y,attributes:d});return(0,vp.createElement)(b,{ref:f,...x},[...S.map(([e,t])=>(0,vp.createElement)(e,t)),...Array.isArray(c)?c:[c]])})}));function xp(e,t=[],n=[]){let r=typeof e==`string`?Zf(e,t,n):e,i=(0,Sp.forwardRef)(({className:e,...t},n)=>(0,Sp.createElement)(yp,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=tp(r.name)),i}var Sp,Cp=o((()=>{Sp=u(f(),1),Qf(),np(),bp()})),wp,Tp,Ep=o((()=>{Cp(),wp={name:`activity`,size:24,node:[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]},wp.node,Tp=xp(wp)})),Dp,Op,kp=o((()=>{Cp(),Dp={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]},Dp.node,Op=xp(Dp)})),Ap,jp,Mp=o((()=>{Cp(),Ap={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`}]]},Ap.node,jp=xp(Ap)})),Np,Pp,Fp=o((()=>{Cp(),Np={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]},Np.node,Pp=xp(Np)})),Ip,Lp,Rp=o((()=>{Cp(),Ip={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`}]]},Ip.node,Lp=xp(Ip)})),zp,Bp,Vp=o((()=>{Cp(),zp={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`}]]},zp.node,Bp=xp(zp)})),Hp,Up,Wp=o((()=>{Cp(),Hp={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]},Hp.node,Up=xp(Hp)})),Gp,Kp,qp=o((()=>{Cp(),Gp={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]},Gp.node,Kp=xp(Gp)})),Jp,Yp,Xp=o((()=>{Cp(),Jp={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]},Jp.node,Yp=xp(Jp)})),Zp,Qp,$p=o((()=>{Cp(),Zp={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]},Zp.node,Qp=xp(Zp)})),em,tm,nm=o((()=>{Cp(),em={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`}]]},em.node,tm=xp(em)})),rm,im,am=o((()=>{Cp(),rm={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`}]]},rm.node,im=xp(rm)})),om,sm,cm=o((()=>{Cp(),om={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`]},om.node,sm=xp(om)})),lm,um,dm=o((()=>{Cp(),lm={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]},lm.node,um=xp(lm)})),fm,pm,mm=o((()=>{Cp(),fm={name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`help-circle`,`circle-help`]},fm.node,pm=xp(fm)})),hm,gm,_m=o((()=>{Cp(),hm={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`]},hm.node,gm=xp(hm)})),vm,ym,bm=o((()=>{Cp(),vm={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]},vm.node,ym=xp(vm)})),xm,Sm,Cm=o((()=>{Cp(),xm={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`]},xm.node,Sm=xp(xm)})),wm,Tm,Em=o((()=>{Cp(),wm={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`}]]},wm.node,Tm=xp(wm)})),Dm,Om,km=o((()=>{Cp(),Dm={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`]},Dm.node,Om=xp(Dm)})),Am,jm,Mm=o((()=>{Cp(),Am={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`}]]},Am.node,jm=xp(Am)})),Nm,Pm,Fm=o((()=>{Cp(),Nm={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`}]]},Nm.node,Pm=xp(Nm)})),Im,Lm,Rm=o((()=>{Cp(),Im={name:`folder-kanban`,size:24,node:[[`path`,{d:`M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z`,key:`1fr9dc`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M12 10v2`,key:`hh53o1`}],[`path`,{d:`M16 10v6`,key:`1d6xys`}]]},Im.node,Lm=xp(Im)})),zm,Bm,Vm=o((()=>{Cp(),zm={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`]},zm.node,Bm=xp(zm)})),Hm,Um,Wm=o((()=>{Cp(),Hm={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`}]]},Hm.node,Um=xp(Hm)})),Gm,Km,qm=o((()=>{Cp(),Gm={name:`layout-dashboard`,size:24,node:[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]},Gm.node,Km=xp(Gm)})),Jm,Ym,Xm=o((()=>{Cp(),Jm={name:`lock-keyhole`,size:24,node:[[`circle`,{cx:`12`,cy:`16`,r:`1`,key:`1au0dj`}],[`rect`,{x:`3`,y:`10`,width:`18`,height:`12`,rx:`2`,key:`6s8ecr`}],[`path`,{d:`M7 10V7a5 5 0 0 1 10 0v3`,key:`1pqi11`}]]},Jm.node,Ym=xp(Jm)})),Zm,Qm,$m=o((()=>{Cp(),Zm={name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]},Zm.node,Qm=xp(Zm)})),eh,th,nh=o((()=>{Cp(),eh={name:`mail`,size:24,node:[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]},eh.node,th=xp(eh)})),rh,ih,ah=o((()=>{Cp(),rh={name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]},rh.node,ih=xp(rh)})),oh,sh,ch=o((()=>{Cp(),oh={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`}]]},oh.node,sh=xp(oh)})),lh,uh,dh=o((()=>{Cp(),lh={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]},lh.node,uh=xp(lh)})),fh,ph,mh=o((()=>{Cp(),fh={name:`pause`,size:24,node:[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]},fh.node,ph=xp(fh)})),hh,gh,_h=o((()=>{Cp(),hh={name:`rocket`,size:24,node:[[`path`,{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`,key:`qeys4`}],[`path`,{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09`,key:`u4xsad`}],[`path`,{d:`M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z`,key:`676m9`}],[`path`,{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05`,key:`92ym6u`}]]},hh.node,gh=xp(hh)})),vh,yh,bh=o((()=>{Cp(),vh={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]},vh.node,yh=xp(vh)})),xh,Sh,Ch=o((()=>{Cp(),xh={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]},xh.node,Sh=xp(xh)})),wh,Th,Eh=o((()=>{Cp(),wh={name:`shield-lock`,size:24,node:[[`path`,{d:`M20 9.807V6a1 1 0 00-1-1c-2 0-4.49-1.19-6.24-2.72a1.17 1.17 0 00-1.52 0C9.5 3.8 7 5 5 5a1 1 0 00-1 1v7c0 3.88 2.107 6.254 5 7.796`,key:`1gl1o4`}],[`path`,{d:`M19 17v-2a2 2 0 00-4 0v2`,key:`uefur0`}],[`rect`,{x:`13`,y:`17`,width:`8`,height:`5`,rx:`1`,key:`2y8vuh`}]]},wh.node,Th=xp(wh)})),Dh,Oh,kh=o((()=>{Cp(),Dh={name:`sliders-horizontal`,size:24,node:[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]},Dh.node,Oh=xp(Dh)})),Ah,jh,Mh=o((()=>{Cp(),Ah={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]},Ah.node,jh=xp(Ah)})),Nh,Ph,Fh=o((()=>{Cp(),Nh={name:`terminal`,size:24,node:[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]},Nh.node,Ph=xp(Nh)})),Ih,Lh,Rh=o((()=>{Cp(),Ih={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`]},Ih.node,Lh=xp(Ih)})),zh,Bh,Vh=o((()=>{Cp(),zh={name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]},zh.node,Bh=xp(zh)})),Hh,Uh,Wh=o((()=>{Cp(),Hh={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`}]]},Hh.node,Uh=xp(Hh)})),Gh,Kh,qh=o((()=>{Cp(),Gh={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]},Gh.node,Kh=xp(Gh)})),Jh=o((()=>{Cp(),cm(),dm(),mm(),_m(),Cm(),km(),Vm(),Rh(),Ep(),kp(),Mp(),Fp(),Rp(),Vp(),Wp(),qp(),Xp(),$p(),nm(),am(),bm(),Em(),Mm(),Fm(),Rm(),Wm(),qm(),Xm(),$m(),nh(),ah(),ch(),dh(),mh(),_h(),bh(),Ch(),Eh(),kh(),Mh(),Fh(),Vh(),Wh(),qh(),_p(),bp()})),Yh,Xh,Zh,Qh=o((()=>{Jh(),Yh=G(),Xh={size:`1em`,"aria-hidden":!0},Zh={close:(0,Yh.jsx)(Kh,{...Xh}),chevronDown:(0,Yh.jsx)(Kp,{...Xh}),chevronLeft:(0,Yh.jsx)(Yp,{...Xh}),chevronRight:(0,Yh.jsx)(Qp,{...Xh}),chevronsLeft:(0,Yh.jsx)(tm,{...Xh}),chevronsRight:(0,Yh.jsx)(im,{...Xh}),check:(0,Yh.jsx)(Up,{...Xh}),success:(0,Yh.jsx)(sm,{...Xh}),error:(0,Yh.jsx)(gm,{...Xh}),warning:(0,Yh.jsx)(Lh,{...Xh}),info:(0,Yh.jsx)(Um,{...Xh}),calendar:(0,Yh.jsx)(Lp,{...Xh}),clock:(0,Yh.jsx)(ym,{...Xh}),externalLink:(0,Yh.jsx)(jm,{...Xh}),menu:(0,Yh.jsx)(ih,{...Xh}),moreHorizontal:(0,Yh.jsx)(Om,{...Xh}),search:(0,Yh.jsx)(yh,{...Xh}),arrowUp:(0,Yh.jsx)(Pp,{...Xh}),arrowDown:(0,Yh.jsx)(Op,{...Xh}),arrowsUpDown:(0,Yh.jsx)(jp,{...Xh}),funnel:(0,Yh.jsx)(Bm,{...Xh}),eyeSlash:(0,Yh.jsx)(Pm,{...Xh}),viewColumns:(0,Yh.jsx)(Sm,{...Xh}),copy:(0,Yh.jsx)(Tm,{...Xh}),checkDouble:(0,Yh.jsx)(Bp,{...Xh}),wrench:(0,Yh.jsx)(Uh,{...Xh}),stop:(0,Yh.jsx)(jh,{...Xh}),microphone:(0,Yh.jsx)(sh,{...Xh})}})),$h,eg=o((()=>{Qh(),$h={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:[]},__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:Zh}}));function tg(e){return`${pg}${e}`}function ng(e){return e.startsWith(pg)}function rg(e){return`id`in e}function ig(e){return`ids`in e}function ag(e){return`view`in e&&!(`id`in e)&&!(`ids`in e)}function og(e){return`value`in e}var sg,cg,lg,ug,dg,fg,pg,mg,hg=o((()=>{sg=Symbol(`__fate__view`),cg=Symbol(`__fate__views`),lg=Symbol(`__fate__node-ref`),ug=Symbol(`__fate__connection`),dg=Symbol(`__fate__defer`),fg=Symbol(`__fate__deferred`),pg=`__fate-view__`,mg=`__fate__root`})),gg,_g,vg,yg,bg,xg,Sg,Cg=o((()=>{gg=Symbol(`fate.alias`),_g=Symbol(`fate.fragment-alias`),vg=e=>!!(e&&typeof e==`object`&&_g in e),yg=e=>!!(e&&typeof e==`object`&&gg in e),bg=e=>e.slice(e.indexOf(`:`)+1),xg=e=>e.split(`:`)[0],Sg=(e,t)=>{if(!/^[_A-Za-z][_0-9A-Za-z]*$/.test(e)||e===`id`||e===`__typename`||e===`__proto__`)throw Error(`fate: Invalid or reserved alias result name '${e}'.`);return`${e}:${t}`}})),wg,Tg=o((()=>{wg=e=>!!e&&typeof e==`object`&&!Array.isArray(e)})),Eg,Dg,Og,kg,Ag,jg,Mg=o((()=>{Cg(),Tg(),Eg=e=>{let t=[];for(let n of e){let e=n.split(`.`),r=e.map((t,n)=>[e.slice(0,n+1).map(bg).join(`.`),e.slice(0,n+1).join(`.`)]),i=t.find(({sources:e})=>r.every(([t,n])=>!e.has(t)||e.get(t)===n));i||(i={paths:new Set,sources:new Map,tree:new Map},t.push(i));for(let[e,t]of r)i.sources.set(e,t);i.paths.add(e.map(bg).join(`.`));let a=i.tree;for(let t of e){let e=a.get(t);e||(e=new Map,a.set(t,e)),a=e}}return t},Dg=(e,t)=>{if(Array.isArray(e))return e.map(e=>Dg(e,t));if(!wg(e))return e;if(Array.isArray(e.items))return{...e,items:e.items.map(e=>wg(e)?{...e,node:Dg(e.node,t)}:e)};let n={...e};for(let e of t.keys())e.includes(`:`)&&delete n[bg(e)];for(let[r,i]of t)Object.hasOwn(e,bg(r))&&(n[r]=Dg(e[bg(r)],i));return n},Og=(e,t)=>{if(!e)return;let n=(e,r)=>Object.fromEntries(Object.entries(e).flatMap(([e,i])=>{let a=r?`${r}.${bg(e)}`:bg(e),o=t.sources.get(a);return(o||e.includes(`:`))&&o?.split(`.`).at(-1)!==e?[]:[[bg(e),o&&wg(i)?n(i,a):i]]}));return n(e,``)},kg=(e,t)=>{if(Array.isArray(e)&&Array.isArray(t)){let n=new Map;for(let e of t)wg(e)&&e.id!==void 0&&!n.has(e.id)&&n.set(e.id,e);return e.map((e,r)=>{let i=wg(e)&&e.id!==void 0?n.get(e.id):t[r];return i===void 0?e:kg(e,i)})}if(wg(e)&&wg(t)){let n={...e};for(let[r,i]of Object.entries(t))n[r]=Object.hasOwn(e,r)?kg(e[r],i):i;return n}return t},Ag=(e,t,n)=>{let r=new Set(e);if(![...r].some(e=>e.includes(`:`)))return n(r,t);let i=Eg(r);return Promise.all(i.map(async e=>Dg(await n(e.paths,Og(t,e)),e.tree))).then(e=>e.reduce(kg))},jg=e=>{if(e.supportsAliases)return e;let t=(t,n,r,i)=>{if(![...t].some(e=>e.includes(`:`)))return i(t,n,r);let a=Eg(t);if(a.length>1)return Promise.reject(Error(`fate: This mutation selection requires a transport with native alias support.`));let o=a[0],s=!e.separateMutationSelectionArgs&&wg(n)&&wg(n.args)?{...n,args:Og(n.args,o)}:n;return i(o.paths,s,e.separateMutationSelectionArgs?Og(r,o):r).then(e=>Dg(e,o.tree))};return{...e,fetchById:(t,n,r,i)=>Ag(r,i,(r,i)=>e.fetchById(t,n,r,i)),fetchList:e.fetchList?(t,n,r)=>Ag(n,r,(n,r)=>e.fetchList(t,n,r)):void 0,fetchQuery:e.fetchQuery?(t,n,r)=>Ag(n,r,(n,r)=>e.fetchQuery(t,n,r)):void 0,mutate:e.mutate?(n,r,i,a)=>t(i,r,a,(t,r,i)=>e.separateMutationSelectionArgs?e.mutate(n,r,t,i):e.mutate(n,r,t)):void 0,mutateDurably:e.mutateDurably?(n,r,i,a,o)=>t(i,r,o,(t,r,i)=>e.separateMutationSelectionArgs?e.mutateDurably(n,r,t,a,i):e.mutateDurably(n,r,t,a)):void 0,subscribeById:e.subscribeById?(t,n,r,i,a)=>{let o=new Set(r);if(![...o].some(e=>e.includes(`:`)))return e.subscribeById(t,n,o,i,a);let s=Eg(o).map(r=>e.subscribeById(t,n,r.paths,Og(i,r),{...a,onData:(e,t)=>a.onData(Dg(e,r.tree),t?.flatMap(e=>{let t=r.sources.get(e);return t?[t]:[]}))}));return()=>s.forEach(e=>e())}:void 0,subscribeConnection:e.subscribeConnection?(t,n,r,i,a,o)=>{let s=new Set(i);if(![...s].some(e=>e.includes(`:`)))return e.subscribeConnection(t,n,r,s,a,o);let c=Eg(s).map(i=>e.subscribeConnection(t,n,r,i.paths,Og(a,i),{...o,onEvent:e=>o.onEvent(`edge`in e?{...e,edge:{...e.edge,node:Dg(e.edge.node,i.tree)}}:e)}));return()=>c.forEach(e=>e())}:void 0}}})),Ng,Pg,Fg,Ig,Lg,Rg,zg,Bg,Vg,Hg,Ug,Wg,Gg,Kg,qg=o((()=>{Tg(),Ng=(e,t)=>{let n=typeof e;if(n===`function`||n===`symbol`)throw Error(`fate: Argument '${t}' must be serializable. Received '${n}'.`)},Pg=(e,t)=>{if(Array.isArray(e))return e.map((e,n)=>Pg(e,`${t}[${n}]`));if(wg(e)){let n={};for(let[r,i]of Object.entries(e))n[r]=Pg(i,`${t}.${r}`);return n}return Ng(e,t),e},Fg=(e,t)=>Pg(e,t),Ig=new Set([`after`,`before`,`cursor`,`first`,`last`]),Lg=e=>{if(e===null)return`null`;let t=typeof e;if(t===`number`||t===`boolean`||t===`bigint`)return`${t}:${String(e)}`;if(t===`string`)return`string:${JSON.stringify(e)}`;if(t===`undefined`)return`undefined`;if(Array.isArray(e))return`array:[${e.map(Lg).join(`,`)}]`;if(typeof e==`object`)return`object:{${Object.entries(e).map(([e,t])=>[e,t]).sort(([e],[t])=>e<t?-1:+(e>t)).map(([e,t])=>`${JSON.stringify(e)}:${Lg(t)}`).join(`,`)}}`;throw Error(`fate: Unable to serialize argument value of type '${t}'.`)},Rg=(e,t={})=>{let n={};for(let[r,i]of Object.entries(e))t.ignoreKeys&&t.ignoreKeys.has(r)||(n[r]=i);return Lg(n)},zg=e=>{if(!e)return;let t={};for(let[n,r]of Object.entries(e))Ig.has(n)||(t[n]=r);return Object.keys(t).length>0?t:void 0},Bg=(e,t)=>{for(let[n,r]of Object.entries(t)){if(wg(r)){let t=e[n];wg(t)?Bg(t,r):e[n]={...r};continue}e[n]=r}},Vg=e=>{if(!e||e.args.size===0)return;let t={};for(let[n,r]of e.args.entries()){if(n===``){Bg(t,r.value);continue}let e=n.split(`.`),i=t;e.forEach((t,n)=>{if(n===e.length-1){let e=i[t];wg(e)?Bg(e,r.value):i[t]={...r.value};return}let a=i[t];if(wg(a)){i=a;return}let o={};i[t]=o,i=o})}return t},Hg=e=>!!(e&&Object.keys(e).length>0),Ug=(e,t)=>{if(!Hg(e)&&!Hg(t))return;let n=Hg(e)?{...e}:{};return Hg(t)&&Bg(n,t),n},Wg=(e,t)=>{if(!e)return;if(t===``)return e;let n=t.split(`.`),r=e;for(let e of n)if(!wg(r)||(r=r[e],r===void 0))return;return wg(r)?r:void 0},Gg=(e,t)=>{for(let[n,r]of e.args.entries()){let i=n===``?t:Wg(t,n);if(!i)continue;let a=Fg(i,n),o=n?`${n}.`:``;for(let t of e.args.keys())if(t!==n&&t.startsWith(o)){let e=t.slice(o.length).split(`.`)[0];Object.hasOwn(r.value,e)||delete a[e]}let s=Rg(a,{ignoreKeys:r.ignoreKeys});e.args.set(n,{hash:s,ignoreKeys:r.ignoreKeys,value:a})}},Kg=(e,t)=>{let n=t.split(`.`),r={},i=r;return n.forEach((t,r)=>{if(r===n.length-1){i[t]=e;return}let a={};i[t]=a,i=a}),r}}));function Jg(e){let t={};return Object.defineProperty(t,lg,{configurable:!1,enumerable:!1,value:e,writable:!1}),Object.freeze(t)}function Yg(e){return!e||typeof e!=`object`?!1:lg in e}function Xg(e){return e[lg]}var Zg,Qg,$g,e_,t_,n_,r_,i_,a_,o_,s_,c_,l_,u_,d_,f_,p_,m_,h_,g_,__,v_,y_,b_,x_,S_,C_,w_,T_=o((()=>{hg(),Zg=64,Qg={maxCollectionLength:1e5,maxNodes:25e4,maxStringLength:1e6},$g=e=>{let t={...Qg,...e};for(let[e,n]of Object.entries(t))if(!Number.isInteger(n)||n<1)throw Error(`fate: Hydration limit '${e}' must be a positive integer.`);return t},e_=(e,t)=>Error(`fate: Cannot serialize hydration value at '${e}': ${t}`),t_=e=>{let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},n_=e=>{for(let t=0;t<e.length;t+=1)if(!Object.hasOwn(e,t))return!1;return!0},r_=e=>Object.prototype.toString.call(e)===`[object Date]`&&typeof e.getTime==`function`&&typeof e.toISOString==`function`,i_=(e,t)=>{let n=$g(t),r=new Set,i=0,a=(e,t,o)=>{if(i+=1,i>n.maxNodes)throw e_(t,`Maximum node count of ${String(n.maxNodes)} exceeded.`);if(o>Zg)throw e_(t,`Maximum depth of ${String(Zg)} exceeded.`);if(e===null)return[`null`];let s=typeof e;if(typeof e==`string`||typeof e==`boolean`){if(typeof e==`string`&&e.length>n.maxStringLength)throw e_(t,`Maximum string length of ${String(n.maxStringLength)} exceeded.`);return[typeof e,e]}if(s===`number`)return Number.isNaN(e)?[`number`,`NaN`]:e===1/0?[`number`,`Infinity`]:e===-1/0?[`number`,`-Infinity`]:Object.is(e,-0)?[`number`,`-0`]:[`number`,e];if(s===`undefined`)return[`undefined`];if(s===`bigint`){let r=String(e);if(r.length>n.maxStringLength)throw e_(t,`Maximum string length of ${String(n.maxStringLength)} exceeded.`);return[`bigint`,r]}if(s===`function`||s===`symbol`||!e||typeof e!=`object`)throw e_(t,`Received unsupported '${s}' value.`);if(Yg(e)){let r=Xg(e);if(r.length>n.maxStringLength)throw e_(t,`Maximum string length of ${String(n.maxStringLength)} exceeded.`);return[`ref`,r]}if(r_(e)){if(Number.isNaN(e.getTime()))throw e_(t,`Received an invalid Date.`);return[`date`,e.toISOString()]}if(r.has(e))throw e_(t,`Circular references are not supported.`);r.add(e);try{if(Array.isArray(e)){if(!n_(e))throw e_(t,`Sparse arrays are not supported.`);if(e.length>n.maxCollectionLength)throw e_(t,`Maximum collection length of ${String(n.maxCollectionLength)} exceeded.`);return[`array`,e.map((e,n)=>a(e,`${t}[${String(n)}]`,o+1))]}if(!t_(e))throw e_(t,`Received unsupported '${e.constructor?.name??`object`}' value.`);if(Object.getOwnPropertySymbols(e).length>0)throw e_(t,`Received an unsupported symbol-keyed property.`);let r=Object.entries(e);if(r.length>n.maxCollectionLength)throw e_(t,`Maximum collection length of ${String(n.maxCollectionLength)} exceeded.`);return[`object`,r.map(([e,r])=>{if(e.length>n.maxStringLength)throw e_(t,`Maximum string length of ${String(n.maxStringLength)} exceeded.`);return[e,a(r,`${t}.${e}`,o+1)]})]}finally{r.delete(e)}};return a(e,`data`,0)},a_=e=>Error(`fate: Invalid hydration payload at '${e}'.`),o_={array:2,bigint:2,boolean:2,date:2,null:1,number:2,object:2,ref:2,string:2,undefined:1},s_=(e,t)=>{let n=$g(t),r=0,i=(e,t,a)=>{if(r+=1,r>n.maxNodes||a>Zg||!Array.isArray(e)||typeof e[0]!=`string`)throw a_(t);let[o,s]=e;if(e.length!==o_[o])throw a_(t);switch(o){case`null`:return null;case`undefined`:return;case`string`:if(typeof s!=`string`||s.length>n.maxStringLength)throw a_(t);return s;case`boolean`:if(typeof s!=`boolean`)throw a_(t);return s;case`number`:if(typeof s==`number`){if(!Number.isFinite(s)||Object.is(s,-0))throw a_(t);return s}if(s===`NaN`)return NaN;if(s===`Infinity`)return 1/0;if(s===`-Infinity`)return-1/0;if(s===`-0`)return-0;throw a_(t);case`bigint`:if(typeof s!=`string`||s.length>n.maxStringLength)throw a_(t);try{let e=BigInt(s);if(String(e)!==s)throw a_(t);return e}catch{throw a_(t)}case`date`:{if(typeof s!=`string`||s.length>n.maxStringLength)throw a_(t);let e=new Date(s);if(Number.isNaN(e.getTime())||e.toISOString()!==s)throw a_(t);return e}case`ref`:if(typeof s!=`string`||s.length>n.maxStringLength)throw a_(t);return Jg(s);case`array`:if(!Array.isArray(s)||!n_(s)||s.length>n.maxCollectionLength)throw a_(t);return s.map((e,n)=>i(e,`${t}[${String(n)}]`,a+1));case`object`:{if(!Array.isArray(s)||s.length>n.maxCollectionLength)throw a_(t);let e=Object.create(null);for(let r of s){if(!Array.isArray(r)||r.length!==2||typeof r[0]!=`string`||r[0].length>n.maxStringLength||r[0]in e)throw a_(t);e[r[0]]=i(r[1],`${t}.${r[0]}`,a+1)}return e}default:throw a_(t)}};return i(e,`data`,0)},c_=e=>{if(!e||typeof e!=`object`||Array.isArray(e)||Yg(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},l_=e=>Array.isArray(e)&&e.every(e=>typeof e==`string`),u_=e=>new Set(e).size!==e.length,d_=e=>l_(e)&&!u_(e),f_=(e,t)=>Object.keys(e).every(e=>t.has(e)),p_=new Set([`backwardPageLimit`,`cursors`,`forwardPageLimit`,`ids`,`liveAfterIds`,`liveBeforeIds`,`pagination`,`pendingAfterIds`,`pendingBeforeIds`]),m_=new Set([`hasNext`,`hasPrevious`,`nextCursor`,`previousCursor`]),h_=new Set([`rootLists`,`rootRequests`,`rootValues`,`store`]),g_=new Set([`coverage`,`lists`,`records`]),__=e=>Array.isArray(e)&&e.length===2&&typeof e[0]==`string`,v_=e=>e===void 0||typeof e==`number`&&Number.isInteger(e)&&e>=0,y_=e=>e===void 0||c_(e)&&f_(e,m_)&&typeof e.hasNext==`boolean`&&typeof e.hasPrevious==`boolean`&&(e.nextCursor===void 0||typeof e.nextCursor==`string`)&&(e.previousCursor===void 0||typeof e.previousCursor==`string`),b_=e=>!c_(e)||!f_(e,p_)||!l_(e.ids)||u_(e.ids)||e.cursors!==void 0&&(!Array.isArray(e.cursors)||e.cursors.length!==e.ids.length)?!1:(e.cursors===void 0||Array.isArray(e.cursors)&&e.cursors.every(e=>e===void 0||typeof e==`string`))&&(e.liveAfterIds===void 0||d_(e.liveAfterIds))&&(e.liveBeforeIds===void 0||d_(e.liveBeforeIds))&&v_(e.backwardPageLimit)&&v_(e.forwardPageLimit)&&y_(e.pagination)&&(e.pendingAfterIds===void 0||d_(e.pendingAfterIds))&&(e.pendingBeforeIds===void 0||d_(e.pendingBeforeIds)),x_=e=>e.length>0&&e.split(`.`).every(e=>e.length>0),S_=e=>d_(e)&&e.every(x_),C_=e=>u_(e.map(e=>e[0])),w_=(e,t)=>{let n=s_(e,t);if(!c_(n)||!f_(n,h_)||!Array.isArray(n.rootLists)||!Array.isArray(n.rootRequests)||n.rootValues!==void 0&&!Array.isArray(n.rootValues)||!c_(n.store)||!f_(n.store,g_)||!Array.isArray(n.store.coverage)||!Array.isArray(n.store.lists)||!Array.isArray(n.store.records)||n.rootLists.some(e=>!__(e)||!l_(e[1]))||n.rootRequests.some(e=>!__(e)||e[1]!==null&&typeof e[1]!=`string`)||n.rootValues?.some(e=>!__(e))||n.store.coverage.some(e=>!__(e)||!S_(e[1]))||n.store.lists.some(e=>!__(e)||!b_(e[1]))||n.store.records.some(e=>!__(e)||!c_(e[1]))||C_(n.rootLists)||C_(n.rootRequests)||n.rootValues&&C_(n.rootValues)||C_(n.store.coverage)||C_(n.store.lists)||C_(n.store.records)||n.rootLists.some(([,e])=>u_(e)))throw a_(`data`);return n}})),E_,D_,O_,k_=o((()=>{E_=class extends Error{constructor(e,t,n={}){super(t),this.name=`FateRequestError`,this.code=e,this.issues=n.issues,this.status=n.status??D_(e)}},D_=e=>{switch(e){case`BAD_REQUEST`:case`VALIDATION_ERROR`:return 400;case`UNAUTHORIZED`:return 401;case`FORBIDDEN`:return 403;case`NOT_FOUND`:return 404;case`INTERNAL_ERROR`:return 500}},O_=e=>e===400?`BAD_REQUEST`:e===401?`UNAUTHORIZED`:e===403?`FORBIDDEN`:e===404?`NOT_FOUND`:`INTERNAL_ERROR`}));function A_(e){return Object.freeze({[dg]:e})}function j_(e){return nv[e]??500}function M_(e){return j_(e.code)}function N_(){let e=mv();function t(t){let n=(e,t,n)=>{let r=Object.freeze({definition:n,select:e,[sg]:!0}),i=Object.freeze({[t]:r});return iv.set(r,i),i},r=tg(e);if(typeof t==`function`){let i=i=>{let a=Fg(i,`parameters`),o=Rg(a);return n(t(a),tg(`${e}:${o}`),r)};return Object.defineProperty(i,rv,{value:r}),Object.defineProperty(i,r,{enumerable:!0,get(){throw Error(`fate: Bind the view parameters before spreading a view.`)}}),Object.freeze(i)}return n(t,r)}return t}function P_(e){let t=e.indexOf(`:`);return t<0?{id:e,type:``}:{id:e.slice(t+1),type:e.slice(0,t)}}function F_(e,t){Object.defineProperty(e,cg,{configurable:!1,enumerable:!1,value:t,writable:!1})}function I_(e,t,n){let r={__typename:e,id:t};return F_(r,n),Object.freeze(r)}function L_(e,t,n,r=!1){let{args:i,delete:a,entity:o,input:s,insert:c,key:l,optimistic:u,plan:d}=t;if(!n){if(a||u)throw Error(`fate: Value mutation '${l}' does not support entity updates.`);return{commit:e=>{},entityId:null,execute:t=>e.executeMutation(l,s,d?.paths??new Set,{args:i,identity:t}),rollback:()=>{}}}let f=wv(n.getId,s),p=u?f==null?u:{id:f,...u}:void 0,m=p?wv(n.getId,p):null,h=f==null?m==null?null:hv(o,m):hv(o,f),g=p?Cv(p):void 0,_=new Set([...d?.paths??[],...g??[]]);if(a&&f==null)throw Error(`fate: Mutation '${l}' requires an 'id' to delete.`);let v=e.store.optimisticUpdate(()=>{p&&h&&e.write(o,p,g??Tv,d,c),a&&f!=null&&e.deleteRecord(o,f)},r);return{commit:t=>v(()=>{if(t&&typeof t==`object`&&(!a||d)){e.write(o,t,Cv(t),d,c);let r=wv(n.getId,t);h&&r!=null&&e.resolveOptimisticEntity(h,hv(o,r)),m!=null&&r!=null&&m!==r&&e.deleteRecord(o,m)}a&&f!=null&&e.deleteRecord(o,f)}),entityId:h,execute:t=>e.executeMutation(l,s,_,{args:i,identity:t,plan:d}),rollback:()=>v()}}function R_(e,t){let n=t.entity===`__value__`?void 0:e.getTypeConfig(t.entity);return async({args:r,delete:i,input:a,insert:o=`after`,optimistic:s,persist:c,select:l,view:u})=>{let d={args:r,delete:i,entity:t.entity,input:a,insert:o,key:t.key,optimistic:s,plan:u?xv(u,null):l?xv(l,null):void 0};if(e.persistence&&c!==!1)try{return{error:void 0,result:await e.withPersistenceLifecycle(()=>e.persistMutation(d))}}catch(e){return Ev(t.key,e)}e.persistence&&await e.withPersistenceLifecycle(()=>e.persistence.ready),e.assertPersistenceActive();let f=L_(e,d,n),p=e.trackPendingRequest(async()=>{try{let t=await f.execute();return e.assertPersistenceActive(),f.commit(t),{error:void 0,result:t}}catch(e){return f.rollback(),Ev(t.key,e)}});return f.entityId&&e.registerPendingOptimisticMutation(f.entityId,p),p}}function z_(){return{all:!1,children:new Map}}function B_(e){let t={all:e.all,children:new Map};for(let[n,r]of e.children)t.children.set(n,B_(r));return t}function V_(e,t){if(e.all)return;let n=t.split(`.`),r=e;for(let e=0;e<n.length;e++){let t=n[e],i=r.children.get(t);i||(i=z_(),r.children.set(t,i)),r=i}r.all=!0,r.children.clear()}function H_(e,t){if(e.all||t.all){e.all=!0,e.children.clear();return}for(let[n,r]of t.children){let t=e.children.get(n);t?H_(t,r):e.children.set(n,B_(r))}}function U_(e){let t=z_();for(let n of e)V_(t,n);return t}function W_(e){let t=[],n=(e,r)=>{if(e.all){r&&t.push(r);return}for(let[t,i]of e.children)n(i,r?`${r}.${t}`:t)};return n(e,null),t}function G_(e,t){if(e.all)return!0;let n=t.split(`.`),r=e;for(let e=0;e<n.length;e++){if(!r)return!1;if(r.all)return!0;r=r.children.get(n[e])}return!!r&&(r.all||r.children.size===0)}function K_(e,t){let n=new Set;for(let r of e)G_(t,r)||n.add(r);return n}function q_(e,t){if(e.all||t.all)return!0;for(let[n,r]of e.children){let e=t.children.get(n);if(e&&(r.all||e.all||q_(r,e)))return!0}return!1}var J_,Y_,X_,Z_,Q_,$_,ev,tv,nv,rv,iv,av,ov,sv,cv,lv,uv,dv,fv,pv,mv,hv,gv,_v,vv,yv,bv,xv,Sv,Cv,wv,Tv,Ev,Dv,Ov,kv,Av,jv,Mv,Nv,Pv,Fv,Iv,Lv,Rv,zv,Bv,Vv,Hv,Uv,Wv=o((()=>{hg(),Cg(),Tg(),qg(),T_(),k_(),J_=e=>typeof e==`object`&&!!e&&dg in e,Y_=e=>e[dg],X_=e=>Object.freeze({[fg]:e}),Z_=e=>typeof e==`object`&&!!e&&fg in e,Q_=e=>e[fg],$_=(e,t)=>t&&t!==`object:{}`?`${e}(${encodeURIComponent(t).replaceAll(`.`,`%2E`)})`:e,ev=(e,t)=>$_(bg(e.slice(e.lastIndexOf(`.`)+1)),t?.args.get(e)?.hash),tv=(e,t,n=``)=>{let r=n;return e.split(`.`).map(e=>(r=r?`${r}.${e}`:e,ev(r,t))).join(`.`)},nv={PARSE_ERROR:400,BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,METHOD_NOT_SUPPORTED:405,TIMEOUT:408,CONFLICT:409,PRECONDITION_FAILED:412,PAYLOAD_TOO_LARGE:413,UNSUPPORTED_MEDIA_TYPE:415,UNPROCESSABLE_CONTENT:422,PRECONDITION_REQUIRED:428,TOO_MANY_REQUESTS:429,CLIENT_CLOSED_REQUEST:499,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENTED:501,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504},rv=Symbol(`fate.parameterized-view`),iv=new WeakMap,av=new WeakMap,ov=(e,t,n)=>{e.add(t);let r=av.get(e);r||(r=new Map,av.set(e,r)),r.set(t,n)},sv=(e,t)=>{if(typeof e!=`function`||!(rv in e))return e;let n=e[rv],r=[...av.get(t?.[cg]??new Set)?.values()??[]].filter(e=>e.definition===n);if(r.length!==1)throw Error(r.length?`fate: Multiple bindings for this view are ambiguous. Use named fragment aliases.`:`fate: Bind the view parameters before creating a request or ref.`);return iv.get(r[0])},cv=(e,t)=>{e=sv(e,t);let n=[];for(let[r,i]of Object.entries(e))ng(r)&&(!t||t[cg]?.has(r))&&n.push(i);return n},lv=e=>{e=sv(e,null);let t=new Set;for(let[n,r]of Object.entries(e))ng(n)&&ov(t,n,r);return t},uv=0,dv={BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1},fv=typeof dv?.DEV==`boolean`&&dv.DEV,pv=null,mv=()=>{if(fv)try{pv??=new URL({}.url).pathname;let e=Error().stack?.split(`
57
+ `);if(e)for(let t=1;t<e.length;t++){let n=e[t].trim().match(/\(?([^()]+):(\d+):(\d+)\)?$/);if(!n)continue;let[,r,i,a]=n;if(!r.includes(pv)){let e=r.startsWith(`at `)?r.slice(3):r;return`${/^[A-Za-z][\d+.A-Za-z-]*:/.test(e)?new URL(e).pathname:e}:${i}:${a}`}}}catch{}return String(uv++)},hv=(e,t)=>`${e}:${String(t)}`,gv=e=>{let t=lv(e),n=cv(e,null);for(let e of n)for(let[n,r]of Object.entries(e.select))ng(n)&&ov(t,n,r);return t},_v=Symbol(`fate.condition`),vv=e=>!!(e&&typeof e==`object`&&_v in e),yv=e=>{for(;vv(e);){if(!e.condition)return;e=e.selection}return e},bv=e=>wg(e.items)&&`node`in e.items,xv=(e,t,n)=>{let r=new Map,i=new Map,a=new Set,o=new Map,s=(e,t,n)=>{let i=r.get(e);if(i&&Rg(i.value)!==Rg(t))throw Error(`fate: Conflicting arguments for '${e}'. Use distinct aliases.`);let a=Rg(t,{ignoreKeys:n});r.set(e,{hash:a,ignoreKeys:n,value:t})},c=(e,r,l=`default`,u=[])=>{if(r===null&&l!==`connection`&&bv(e)){if(e.live&&wg(e.live)&&i.set(``,{append:e.live.append===`visible`?`visible`:`edge`,prepend:e.live.prepend===`visible`?`visible`:`edge`}),e.args&&wg(e.args)){let t=Fg(e.args,`args`),n=wg(e.items)&&wg(e.items.node)?Ig:void 0;s(``,t,n)}let{args:t,live:n,...a}=e;c(a,r,`connection`,u);return}for(let[d,f]of Object.entries(e)){let e=yv(f);if(e===void 0)continue;if(vg(e)){Sg(d,d);for(let t of cv(e.view,null))c(t.select,r,l,[...u,d]);continue}let p=yg(e)?e.selection:e,m=yg(e)?e.field:d,h=yg(e)?Sg(d,m):d,g=u.length&&!ng(d)?`fate_fragment_${[...u,d].map(e=>`${e.length}_${e}`).join(`_`)}:${m}`:h,_=typeof p;if(_===`function`)throw Error(`fate: Bind the view parameters before using a view in a selection.`);let v=r?`${r}.${g}`:g;if(l===`connection`){if(d===`args`||d===`live`||d===`pagination`)continue;if(d===`items`&&wg(p)){wg(p.node)&&c(p.node,r);continue}}if(!ng(d)&&!J_(p)){let e=v.split(`.`).map(xg).join(`.`),t=o.get(e);if(t&&t!==v)throw Error(`fate: Conflicting alias selections for '${e}'.`);o.set(e,v)}if(_===`boolean`){p&&a.add(v);continue}if(!J_(p)){if(ng(d)){(n?.includeNestedViews||!t||t[cg]?.has(d))&&c(p.select,r,l,u);continue}if(wg(p)){let e=p;if(bv(e)){if(e.live&&wg(e.live)&&i.set(v,{append:e.live.append===`visible`?`visible`:`edge`,prepend:e.live.prepend===`visible`?`visible`:`edge`}),e.args&&wg(e.args)){let t=Fg(e.args,v),n=wg(e.items)&&wg(e.items.node)?Ig:void 0;s(v,t,n)}let{args:t,live:n,...r}=e;c(r,v,`connection`);continue}let t=e.args&&wg(e.args),n=e;if(t){let t=Fg(e.args,v),r=wg(e.items)&&wg(e.items?.node)?Ig:void 0;s(v,t,r);let{args:i,...a}=e;n=a}Object.keys(n).length>0?c(n,v):t&&a.add(v)}}}},l=cv(e,t);if(l.length===0&&wg(e))c(e,null);else for(let e of l)c(e.select,null);return{args:r,live:i,paths:a}},Sv=(e,t)=>xv({[e]:t},null),Cv=e=>{let t=new Set,n=(e,r)=>{if(!e||typeof e!=`object`){r&&t.add(r);return}if(Array.isArray(e)){r&&t.add(r);for(let t of e)n(t,r);return}for(let[i,a]of Object.entries(e)){let e=r?`${r}.${i}`:i;t.add(e),n(a,e)}};return n(e,null),t},wv=(e,t)=>{try{return e(t)}catch{return null}},Tv=new Set,Ev=(e,t)=>{if(t instanceof Error){let e=Dv(t);if((e?Ov(e):`boundary`)===`boundary`)throw t;return{error:t,result:void 0}}throw Error(`fate: Mutation '${e}' failed.`,{cause:t})},Dv=e=>{if(e instanceof E_)return e.status;let{data:t}=e;if(t&&typeof t==`object`)return M_(t)},Ov=e=>{switch(e){case 400:case 402:case 404:case 408:case 409:case 412:case 413:case 415:case 422:case 429:case 499:return`callSite`;default:return`boundary`}},kv=` __fate__ `,Av=e=>{try{return decodeURIComponent(e)}catch{return e}},jv=e=>encodeURIComponent(e),Mv=(e,t,n=`default`)=>`${jv(e)}${kv}${jv(t)}${kv}${jv(n)}`,Nv=(e,t)=>JSON.stringify([e,t]),Pv=e=>{let t=e.split(kv);if(t.length!==3)return null;let[n,r,i]=t;return{field:Av(r),hash:i==="default"?void 0:Av(i),ownerId:Av(n)}},Fv=e=>{if(typeof e!=`object`||!e||Array.isArray(e)||Yg(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},Iv=e=>typeof e==`object`&&!!e&&Object.prototype.toString.call(e)===`[object Date]`&&typeof e.getTime==`function`,Lv=(e,t)=>{if(!Fv(e)||!Fv(t))return t;let n=Object.create(null);for(let[t,r]of Object.entries(e))Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0});for(let[e,r]of Object.entries(t))Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:Object.hasOwn(n,e)?Lv(n[e],r):r,writable:!0});return n},Rv=(e,t)=>{if(Object.is(e,t))return!0;if(Yg(e)||Yg(t))return Yg(e)&&Yg(t)&&Xg(e)===Xg(t);if(Iv(e)||Iv(t))return Iv(e)&&Iv(t)&&e.getTime()===t.getTime();if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((e,n)=>Rv(e,t[n]));if(!Fv(e)||!Fv(t))return!1;let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>Object.hasOwn(t,n)&&Rv(e[n],t[n]))},zv=(e,t)=>{if(e===t||e?.all&&t?.all)return!0;if(!e||!t||e.all!==t.all||e.children.size!==t.children.size)return!1;for(let[n,r]of e.children)if(!zv(r,t.children.get(n)))return!1;return!0},Bv=()=>{},Vv=e=>Yg(e)||Array.isArray(e)&&e.some(Yg),Hv=(e,t)=>Object.is(e,t)||Yg(e)&&Yg(t)&&Xg(e)===Xg(t)||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((e,n)=>Hv(e,t[n])),Uv=class{constructor(e,t){this.onRebase=e,this.onChange=t,this.coverage=new Map,this.listKeysByOwnerField=new Map,this.listKeysByReferencedEntity=new Map,this.lists=new Map,this.recordReferenceFields=new Map,this.recordReferencesByTarget=new Map,this.records=new Map,this.subscriptions=new Map,this.listSubscriptions=new Map,this.optimisticLayers=new Set,this.optimisticBase={lists:new Map,records:new Map}}get hasOptimisticUpdates(){return this.optimisticLayers.size>0}get isRecordingOptimistic(){return this.recordingLayer!==void 0}get isRebasing(){return this.rebase!==void 0}update(e){if(this.rebase||this.optimisticLayers.size===0)return e();let t={lists:new Map,records:new Map};this.rebase=t;try{for(let[e,t]of this.optimisticBase.records)this.restore(e,t);for(let[e,t]of this.optimisticBase.lists)this.restoreList(e,t);return this.optimisticBase.records.clear(),this.optimisticBase.lists.clear(),e()}finally{try{for(let e of this.optimisticLayers)e.writes.clear(),this.recordingLayer=e,e.apply()}finally{this.recordingLayer=void 0;let e=this.getRebaseChanges(t),n=new Set;for(let[r,i]of t.lists)if(Rv(i,this.lists.get(r)))i&&this.lists.set(r,i);else{n.add(r);let t=Pv(r);t&&(e.has(t.ownerId)?e.get(t.ownerId)?.add($_(t.field,t.hash)):e.set(t.ownerId,new Set([$_(t.field,t.hash)])))}this.rebase=void 0,this.onRebase?.(new Set(e.keys()),n);for(let[t,n]of e)this.notify(t,n,!1);for(let e of n)this.notifyListSubscribers(e,!1)}}}getRebaseChanges(e){let t=new Map;for(let[n,r]of e.records){let e=this.records.get(n),i=this.coverage.get(n);if(!!r.record!=!!e||r.mask?.all!==i?.all){t.set(n,void 0);continue}let a=new Set;for(let t of new Set([...Object.keys(r.record??{}),...Object.keys(e??{})]))(Object.hasOwn(r.record??{},t)!==Object.hasOwn(e??{},t)||!Hv(r.record?.[t],e?.[t]))&&a.add(t);if(!zv(r.mask,i)){for(let e of r.mask?W_(r.mask):[])(!i||!G_(i,e))&&a.add(e);for(let e of i?W_(i):[])(!r.mask||!G_(r.mask,e))&&a.add(e)}a.size>0?t.set(n,a):r.record&&this.records.set(n,r.record)}return t}optimisticUpdate(e,t=!1){let n={apply:e,durable:t,writes:new Map},r=e=>{this.optimisticLayers.has(n)&&!n.settled&&this.update(()=>{let t=e?this.getPendingOverlap(n,n.writes):new Map;t.size>0?(n.settled=!0,n.apply=()=>{for(let[e,{partial:r,paths:i}]of this.getPendingOverlap(n,t))this.merge(e,r,i)}):this.optimisticLayers.delete(n);for(let e of this.optimisticLayers){if(!e.settled)break;this.optimisticLayers.delete(e)}e?.()})};this.optimisticLayers.add(n);try{this.update(()=>{})}catch(e){throw r(),e}return r}getPendingOverlap(e,t){let n=[];for(let t of this.optimisticLayers){if(t===e)break;t.settled||n.push(t)}let r=new Map;for(let[e,i]of t){let t=Object.fromEntries(Object.entries(i.partial).filter(([t,r])=>!Vv(r)&&n.some(({writes:n})=>{let r=n.get(e)?.partial;return r&&Object.hasOwn(r,t)&&!Vv(r[t])})));Object.keys(t).length&&r.set(e,{partial:t,paths:new Set([...i.paths].filter(e=>Object.hasOwn(t,e.split(`.`)[0])))})}return r}captureRecord(e){if(this.rebase){for(let t of[this.rebase,this.recordingLayer&&this.optimisticBase])if(t&&!t.records.has(e)){let n=this.coverage.get(e);t.records.set(e,{mask:n?B_(n):void 0,record:this.records.get(e)})}}}captureList(e){if(this.rebase)for(let t of[this.rebase,this.recordingLayer&&this.optimisticBase])t&&!t.lists.has(e)&&t.lists.set(e,this.lists.get(e))}get hasTransientOptimisticUpdates(){return[...this.optimisticLayers].some(e=>!e.durable)}getOptimisticRoots(){return{baseRecords:[...this.optimisticBase.records.values()].flatMap(({record:e})=>e?[e]:[]),lists:[...this.optimisticBase.lists.keys()],records:[...this.optimisticBase.records.keys(),...[...this.optimisticBase.lists.values()].flatMap(e=>e?[...e.ids,...e.pendingBeforeIds??[],...e.pendingAfterIds??[],...e.liveBeforeIds??[],...e.liveAfterIds??[]]:[])]}}getPersistenceOwners(e){return{lists:[...this.listKeysByReferencedEntity.get(e)??[]],records:[...this.recordReferencesByTarget.get(e)?.keys()??[]]}}getListKeysForEntity(e){return[...this.listKeysByReferencedEntity.get(e)??[]]}readConfirmed(e){let t=this.optimisticBase.records.get(e),n=t?t.record:this.records.get(e),r=t?t.mask:this.coverage.get(e);return n?{paths:r?W_(r):[],record:n}:void 0}readConfirmedList(e){return this.optimisticBase.lists.has(e)?this.optimisticBase.lists.get(e):this.lists.get(e)}dehydrateConfirmed(){let e=new Map(this.records),t=new Map(this.coverage),n=new Map(this.lists);for(let[n,r]of this.optimisticBase.records)r.record===void 0?e.delete(n):e.set(n,r.record),r.mask===void 0?t.delete(n):t.set(n,r.mask);for(let[e,t]of this.optimisticBase.lists)t===void 0?n.delete(e):n.set(e,t);return{coverage:[...t].map(([e,t])=>[e,W_(t)]),lists:[...n],records:[...e]}}dehydrate(){return{coverage:[...this.coverage].map(([e,t])=>[e,W_(t)]),lists:[...this.lists],records:[...this.records]}}hydrate(e,t,n={}){let r=this.coverage,i=this.lists,a=this.records,o=t===`replace`?new Map:new Map([...r].map(([e,t])=>[e,B_(t)])),s=t===`replace`?new Map:new Map(i),c=t===`replace`?new Map:new Map(a);for(let[n,r]of e.records){let e=c.get(n),i=e&&t===`preserve-existing`?Lv(r,e):r;c.set(n,e&&Rv(e,i)?e:i)}for(let[n,r]of e.coverage){let e=U_(r),i=o.get(n);i&&t===`preserve-existing`?H_(i,e):o.set(n,e)}for(let[n,r]of e.lists){let e=s.get(n);(t===`replace`||!e)&&s.set(n,e&&Rv(e,r)?e:r)}this.coverage=o,this.lists=s,this.records=c,this.rebuildIndexes();let l=new Set,u=new Set;for(let e of new Set([...a.keys(),...c.keys()]))(!Rv(a.get(e),c.get(e))||!zv(r.get(e),o.get(e)))&&(l.add(e),this.recordReferencesChanged(a.get(e),c.get(e))&&u.add(e));let d=new Set;for(let e of new Set([...i.keys(),...s.keys()]))Rv(i.get(e),s.get(e))||d.add(e);let f=()=>{for(let e of l)this.notify(e,void 0,!0,u.has(e));for(let e of d)this.notifyListSubscribers(e)};return n.deferNotifications||f(),f}rebuildIndexes(){this.listKeysByOwnerField.clear(),this.listKeysByReferencedEntity.clear(),this.recordReferenceFields.clear(),this.recordReferencesByTarget.clear();for(let[e,t]of this.records)this.addRecordReferenceIndexes(e,t);for(let[e,t]of this.lists)this.addListIndexes(e,t)}read(e){return this.records.get(e)}merge(e,t,n){return this.update(()=>{let r=this.mergeInternal(e,t,n);r&&this.notify(e,r.paths,!0,r.referencesChanged)})}mergeInternal(e,t,n){this.captureRecord(e);let r=this.recordingLayer?new Set(n):n;if(this.recordingLayer){let n=this.recordingLayer.writes.get(e)??{partial:{},paths:new Set};Object.assign(n.partial,t);for(let e of r)n.paths.add(e);this.recordingLayer.writes.set(e,n)}let i=this.records.get(e),a=new Set,o=this.coverage.get(e);if(o||(o=z_(),this.coverage.set(e,o)),H_(o,U_(r)),i){let n=!1;for(let[e,r]of Object.entries(t))i[e]!==r&&(n=!0,a.add(e));if(!n)return null;let r={...i,...t},o=this.recordReferencesChanged(i,r,a);return this.records.set(e,r),this.updateRecordReferenceIndexes(e,i,r,a),{paths:a,referencesChanged:o}}{let n={...t};return this.records.set(e,n),this.updateRecordReferenceIndexes(e,void 0,n,Object.keys(n)),{paths:a,referencesChanged:this.recordReferencesChanged(void 0,n)}}}deleteRecord(e){return this.update(()=>{this.captureRecord(e);let t=this.records.get(e);t&&this.removeRecordReferenceIndexes(e,t),this.records.delete(e),this.coverage.delete(e),this.recordingLayer||this.onChange?.({key:e,kind:`record`,referencesChanged:!0})})}missingForSelection(e,t){let n=new Set(t);if(!this.records.has(e))return n;let r=this.coverage.get(e);return r?K_(n,r):n}subscribe(e,t,n){let r=null,i=Bv;typeof t==`function`?i=t:n&&(r=t?U_(t):null,i=n);let a=this.subscriptions.get(e);a||(a=new Set,this.subscriptions.set(e,a));let o={fn:i,mask:r};return a.add(o),()=>{let t=this.subscriptions.get(e);t&&(t.delete(o),t.size===0&&this.subscriptions.delete(e))}}notify(e,t,n=!0,r=!1){if(n&&!this.recordingLayer&&this.onChange?.({key:e,kind:`record`,paths:t,referencesChanged:r}),this.rebase)return;let i=this.subscriptions.get(e);if(!i)return;let a=t?[...t]:[],o=a.length>0?U_(a):null;for(let{fn:e,mask:t}of i)if(!(t&&o&&!q_(o,t)))try{e()}catch{}}notifyListSubscribers(e,t=!0,n){if(t&&!this.recordingLayer&&this.onChange?.({key:e,kind:`list`,previousList:n}),this.rebase)return;let r=this.listSubscriptions.get(e);if(r)for(let e of r)try{e()}catch{}}getList(e){return this.lists.get(e)?.ids}getListState(e){return this.lists.get(e)}getListsForField(e,t){let n=[],r=this.listKeysByOwnerField.get(Nv(e,t));if(!r)return n;for(let e of r){let t=this.lists.get(e);t&&n.push([e,t])}return n}setList(e,t){return this.update(()=>{this.captureList(e);let n=this.lists.get(e);n&&this.removeListIndexes(e,n),this.lists.set(e,t),this.addListIndexes(e,t),this.notifyListSubscribers(e,!0,n)})}replaceListEntityId(e,t){return this.update(()=>{let n=[...this.listKeysByReferencedEntity.get(e)??[]];for(let r of n){let n=this.lists.get(r);if(!n)continue;let i=!1,a=n.ids,o=n.cursors;if(n.ids.includes(e)){let r=[],s=n.cursors?[]:void 0,c=new Set;n.ids.forEach((i,a)=>{let o=i===e?t:i;c.has(o)||(c.add(o),r.push(o),s&&s.push(n.cursors?.[a]))}),i=!0,a=r,o=s}let s=n=>{if(!n||!n.includes(e))return;let r=new Set,a=[];for(let i of n){let n=i===e?t:i;r.has(n)||(r.add(n),a.push(n))}return i=!0,a},c=s(n.pendingBeforeIds)??n.pendingBeforeIds,l=s(n.pendingAfterIds)??n.pendingAfterIds,u=s(n.liveBeforeIds)??n.liveBeforeIds,d=s(n.liveAfterIds)??n.liveAfterIds;if(!i)continue;let f=new Set(a);this.setList(r,{backwardPageLimit:n.backwardPageLimit,cursors:o,forwardPageLimit:n.forwardPageLimit,ids:a,liveAfterIds:d?.filter(e=>!f.has(e)),liveBeforeIds:u?.filter(e=>!f.has(e)),pagination:n.pagination,pendingAfterIds:l?.filter(e=>!f.has(e)),pendingBeforeIds:c?.filter(e=>!f.has(e))})}})}restoreList(e,t){return this.update(()=>{t==null?this.deleteList(e):this.setList(e,t)})}collectGarbage(e,t,n={}){let r=new Set,i=new Set;for(let t of this.records.keys())e.has(t)||r.add(t);for(let e of this.lists.keys())t.has(e)||i.add(e);for(let e of r){let t=this.records.get(e);t&&this.removeRecordReferenceIndexes(e,t),this.records.delete(e),this.coverage.delete(e),n.onRecordDeleted?.(e)}for(let e of i)this.deleteList(e,!0);return{lists:i,records:r}}deleteList(e,t=!1){return this.update(()=>{this.captureList(e);let n=this.lists.get(e);n&&this.removeListIndexes(e,n),this.lists.delete(e),this.notifyListSubscribers(e,!t,n)})}subscribeList(e,t){let n=this.listSubscriptions.get(e);return n||(n=new Set,this.listSubscriptions.set(e,n)),n.add(t),()=>{let n=this.listSubscriptions.get(e);n&&(n.delete(t),n.size===0&&this.listSubscriptions.delete(e))}}removeReferencesTo(e,t){return this.update(()=>{let n=[...this.listKeysByReferencedEntity.get(e)??[]];for(let t of n){let n=this.lists.get(t);if(!n)continue;let{ids:r}=n,i=!!n.liveAfterIds?.includes(e),a=!!n.liveBeforeIds?.includes(e),o=!!n.pendingAfterIds?.includes(e),s=!!n.pendingBeforeIds?.includes(e);if(!r.includes(e)&&!i&&!a&&!o&&!s)continue;let c=[],l=n.cursors?[]:void 0;for(let t=0;t<r.length;t++){let i=r[t];i!==e&&(c.push(i),l&&l.push(n.cursors?.[t]))}this.setList(t,{backwardPageLimit:n.backwardPageLimit,cursors:l,forwardPageLimit:n.forwardPageLimit,ids:c,liveAfterIds:n.liveAfterIds?.filter(t=>t!==e),liveBeforeIds:n.liveBeforeIds?.filter(t=>t!==e),pagination:n.pagination,pendingAfterIds:n.pendingAfterIds?.filter(t=>t!==e),pendingBeforeIds:n.pendingBeforeIds?.filter(t=>t!==e)})}let r=new Map,i=[...this.recordReferencesByTarget.get(e)?.entries()??[]];for(let[n,a]of i){let i=this.records.get(n);if(!i)continue;let o=!1,s={},c=new Set;for(let t of a){let n=i[t];if(Array.isArray(n)){let r=n.filter(t=>!(Yg(t)&&Xg(t)===e));r.length!==n.length&&(o=!0,c.add(t),s[t]=r)}else Yg(n)&&Xg(n)===e&&(o=!0,c.add(t),s[t]=null)}o&&(t.invalidate(n),this.mergeInternal(n,s,c),r.set(n,c))}for(let[e,t]of r)this.notify(e,t,!0,!0)})}restore(e,t){return this.update(()=>{this.captureRecord(e);let n=this.records.get(e);n&&this.removeRecordReferenceIndexes(e,n),t.record===void 0?this.records.delete(e):(this.records.set(e,t.record),this.addRecordReferenceIndexes(e,t.record)),t.mask===void 0?this.coverage.delete(e):this.coverage.set(e,t.mask),this.notify(e)})}addListIndexes(e,t){let n=Pv(e);if(n){let t=Nv(n.ownerId,n.field),r=this.listKeysByOwnerField.get(t);r||(r=new Set,this.listKeysByOwnerField.set(t,r)),r.add(e)}for(let n of this.getListReferencedEntityIds(t)){let t=this.listKeysByReferencedEntity.get(n);t||(t=new Set,this.listKeysByReferencedEntity.set(n,t)),t.add(e)}}removeListIndexes(e,t){let n=Pv(e);if(n){let t=Nv(n.ownerId,n.field),r=this.listKeysByOwnerField.get(t);r&&(r.delete(e),r.size===0&&this.listKeysByOwnerField.delete(t))}for(let n of this.getListReferencedEntityIds(t)){let t=this.listKeysByReferencedEntity.get(n);t&&(t.delete(e),t.size===0&&this.listKeysByReferencedEntity.delete(n))}}getListReferencedEntityIds(e){let t=new Set;for(let n of e.ids)t.add(n);for(let n of e.liveAfterIds??[])t.add(n);for(let n of e.liveBeforeIds??[])t.add(n);for(let n of e.pendingAfterIds??[])t.add(n);for(let n of e.pendingBeforeIds??[])t.add(n);return t}getRecordFieldReferences(e){if(Array.isArray(e)){let t=null;for(let n of e)Yg(n)&&(t||=new Set,t.add(Xg(n)));return t}return Yg(e)?new Set([Xg(e)]):null}recordReferencesChanged(e,t,n=new Set([...Object.keys(e??{}),...Object.keys(t??{})])){for(let r of n){let n=this.getRecordFieldReferences(e?.[r]),i=this.getRecordFieldReferences(t?.[r]);if(n?.size!==i?.size)return!0;if(n){for(let e of n)if(!i?.has(e))return!0}}return!1}addRecordFieldReferenceIndex(e,t,n){let r=this.getRecordFieldReferences(n);if(!r||r.size===0)return;let i=this.recordReferenceFields.get(e);i||(i=new Map,this.recordReferenceFields.set(e,i)),i.set(t,r);for(let n of r){let r=this.recordReferencesByTarget.get(n);r||(r=new Map,this.recordReferencesByTarget.set(n,r));let i=r.get(e);i||(i=new Set,r.set(e,i)),i.add(t)}}removeRecordFieldReferenceIndex(e,t){let n=this.recordReferenceFields.get(e),r=n?.get(t);if(n&&r){for(let n of r){let r=this.recordReferencesByTarget.get(n),i=r?.get(e);r&&i&&(i.delete(t),i.size===0&&r.delete(e),r.size===0&&this.recordReferencesByTarget.delete(n))}n.delete(t),n.size===0&&this.recordReferenceFields.delete(e)}}addRecordReferenceIndexes(e,t){for(let[n,r]of Object.entries(t))this.addRecordFieldReferenceIndex(e,n,r)}removeRecordReferenceIndexes(e,t){for(let n of Object.keys(t))this.removeRecordFieldReferenceIndex(e,n)}updateRecordReferenceIndexes(e,t,n,r){for(let i of r)t&&this.removeRecordFieldReferenceIndex(e,i),this.addRecordFieldReferenceIndex(e,i,n[i])}}})),Gv,Kv=o((()=>{Gv=e=>{if(!e)return[];let t=[];for(let n of e.pendingBeforeIds??[])t.push({id:n});e.ids.forEach((n,r)=>{t.push({cursor:e.cursors?.[r],id:n})});for(let n of e.pendingAfterIds??[])t.push({id:n});return t}})),qv,Jv,Yv,Xv,Zv,Qv=o((()=>{qg(),qv=e=>encodeURIComponent(String(e)),Jv=e=>{let t=zg(e);if(!t)return;let n=t.id;return typeof n==`string`||typeof n==`number`?{...t,id:String(n)}:t},Yv=(e,t)=>`entity:${qv(e)}:${qv(t)}`,Xv=(e,t)=>`connection:${qv(e)}:${qv(Rg(Jv(t)??{}))}`,Zv=e=>`connection:${qv(e)}:*`}));function $v(e){return new Iy(e)}function ey({eventSource:e,fetch:t=Wy,headers:n,live:r=!0,liveRetryMs:i=1e3,liveUrl:a,url:o}){let s=qy(o),c=a?String(a):Jy(s),l=typeof r==`function`?r:void 0,u=r!==!1,d=0,f=[],p=!1,m=e=>new Promise((t,n)=>{f.push({operation:{...e,id:String(++d)},reject:n,resolve:t}),p||(p=!0,queueMicrotask(h))}),h=async()=>{p=!1;let e=f;if(f=[],e.length)try{let r=await t(s,{body:JSON.stringify({operations:e.map(e=>e.operation),version:e.some(e=>e.operation.mutation)?2:1}),headers:await Ky({"content-type":`application/json`},n),method:`POST`});if(!r.ok)throw await Yy(r);let i=Xy(await r.json()),a=new Map(i.results.map(e=>[e.id,e]));for(let t of e){let e=a.get(t.operation.id);if(!e){t.reject(Error(`fate(http): Missing result for operation '${t.operation.id}'.`));continue}try{t.resolve(Zy(e))}catch(e){t.reject(e)}}}catch(t){for(let n of e)n.reject(t)}},g={fetchById(e,t,n,r){return m({args:r,ids:t,kind:`byId`,select:[...n],type:e})},fetchList(e,t,n){return m({args:n,kind:`list`,name:e,select:[...t]})},fetchQuery(e,t,n){return m({args:n,kind:`query`,name:e,select:[...t]})},mutate(e,t,n){return m({input:t,kind:`mutation`,name:e,select:[...n]})},mutateDurably(e,t,n,r){return m({input:t,kind:`mutation`,mutation:r,name:e,select:[...n]})}};if(u){let r=new Map,a=e=>{for(let t of new Set(r.values()))Ly(t,e)},o,s,u=0,d=()=>{if(!l)throw Error(`fate(http): A live connector is required for topic subscriptions.`);return o??=l(c,{eventSource:e,fetch:t,headers:n,onError(e){for(let t of new Set(r.values()))t.handlers.onError?.(e)},retryDelay:i,withCredentials:!0})},f=()=>{if(s)return s;let i=e??globalThis.EventSource;if(!i)throw Error(`fate(http): EventSource is required for live views.`);let o=globalThis.crypto?.randomUUID?.()??`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`,l=new Map,u=new Map,d=!1,f=!1,p,m,h=new Promise((e,t)=>{p=e,m=t}),g=new URL(c,typeof globalThis.location==`object`?globalThis.location.href:`http://local`);g.searchParams.set(`connectionId`,o);let _=new i(g.href,{withCredentials:!0}),v=async e=>{if(!d)try{let r=await Ky({"content-type":`application/json`},n);if(d)return;let i=await t(c,{body:JSON.stringify({connectionId:o,operations:e,version:1}),headers:r,method:`POST`});if(!i.ok)throw await Yy(i);let a=Xy(await i.json());for(let e of a.results)Zy(e)}catch(e){if(!d)throw e}},y=e=>{let t=u.get(e.id);return t?{...e,lastEventId:t}:e};_.addEventListener(`open`,()=>{if(!f){f=!0,p?.();return}let e=[...l.values()].map(y);e.length>0&&v(e).catch(a)});let b=e=>{let t=JSON.parse(e.data),n=r.get(t.id);if(!n)return;let i=e.lastEventId;if(i&&u.set(t.id,i),t.kind===`error`){Ly(n,zy(t));return}if(t.kind===`connection`){`onEvent`in n.handlers&&n.handlers.onEvent(t.event);return}if(`delete`in t.event&&t.event.delete){`onDelete`in n.handlers&&n.handlers.onDelete?.(t.event.id??n.targetId);return}`onData`in n.handlers&&Ry(n.handlers,t.event.data,t.event.select)};return _.addEventListener(`error`,e=>{if(`data`in e){b(e);return}f||m?.(e),a(e)}),_.addEventListener(`message`,b),_.addEventListener(`next`,b),_.addEventListener(`connection`,b),s={add(e){l.set(e.id,e),h.then(()=>v([y(e)])).catch(t=>{l.delete(e.id),r.delete(e.id),a(t)})},remove(e){if(l.delete(e),u.delete(e),l.size===0){d=!0,_.close(),s=void 0;return}h.then(()=>v([{id:e,kind:`unsubscribe`}])).catch(a)}},s},p=async(e,t=e.select)=>{let[n]=await g.fetchById(e.type,[e.targetId],t,e.args);return n},m=async(e,t,n)=>{let[r]=await g.fetchById(n,[t],e.select,e.selectionArgs);return r};g.subscribeById=(e,t,n,i,a)=>{let o=String(++u),s={args:i,handlers:a,select:[...n],targetId:t,type:e};if(r.set(o,s),!l)return f().add({args:i,entityId:t,id:o,kind:`subscribe`,select:[...n],type:e}),()=>{r.delete(o)&&f().remove(o)};let c=d().subscribe({id:o,onEvent(e){if(e.type===`delete`){a.onDelete?.(e.data.id??t);return}let n=(Array.isArray(e.data.select)?e.data.select:null)??Vy(s.select,e.data.changed);if(n?.length!==0){if(`data`in e.data&&e.data.data!==void 0&&(!n||Uy(e.data.data,n))){Ry(a,e.data.data,n??void 0);return}p(s,n??s.select).then(e=>{e==null?a.onDelete?.(t):Ry(a,e,n??void 0)}).catch(e=>Ly(s,e))}},topic:Yv(e,t)}).catch(e=>(r.delete(o),Ly(s,e),null));return()=>{r.delete(o)&&c.then(e=>e?.())}},g.subscribeConnection=(e,t,n,i,a,o)=>{let s=String(++u),c=`${s}:global`,p={args:n,handlers:o,procedure:e,select:[...i],selectionArgs:a,type:t},h=n=>{let r=wg(n.data)?n.data:{};if(n.type===`invalidate`){o.onEvent({type:`invalidate`});return}let i=typeof r.nodeType==`string`?r.nodeType:t,a=r.id;if(n.type===`deleteEdge`){typeof a==`string`||typeof a==`number`?o.onEvent({id:a,nodeType:i,type:`deleteEdge`}):Ly(p,Error(`fate(http): Live connection delete event for '${e}' missed an id.`));return}if(n.type!==`appendEdge`&&n.type!==`appendNode`&&n.type!==`insertEdgeAfter`&&n.type!==`insertEdgeBefore`&&n.type!==`prependEdge`&&n.type!==`prependNode`)return;let s=n.type,c=e=>{o.onEvent({edge:{cursor:typeof r.cursor==`string`?r.cursor:void 0,node:e},nodeType:i,targetCursor:typeof r.targetCursor==`string`?r.targetCursor:void 0,type:s})};if(`node`in r&&r.node!==void 0){c(r.node);return}if(typeof a!=`string`&&typeof a!=`number`){Ly(p,Error(`fate(http): Live connection event for '${e}' missed a node id.`));return}m(p,a,i).then(c).catch(e=>Ly(p,e))};if(r.set(s,p),!l)return f().add({args:n,id:s,kind:`subscribeConnection`,procedure:e,select:[...i],selectionArgs:a,type:t}),()=>{r.delete(s)&&f().remove(s)};r.set(c,p);let g=d(),_=g.subscribe({id:s,onEvent:h,topic:Xv(e,n)}),v=g.subscribe({id:c,onEvent:h,topic:Zv(e)}),y=Promise.all([_,v]).catch(e=>(r.delete(s),r.delete(c),Ly(p,e),[]));return()=>{(r.delete(s)||r.delete(c))&&(r.delete(c),y.then(e=>Promise.all(e.map(e=>e()))))}}}return g}function ty(e){return Object.freeze({[mg]:!0,type:e})}var ny,ry,iy,ay,oy,sy,cy,ly,uy,dy,fy,py,my,hy,gy,_y,vy,yy,by,xy,Sy,Cy,wy,Ty,Ey,Dy,Oy,ky,Ay,jy,My,Ny,Py,Fy,Iy,Ly,Ry,zy,By,Vy,Hy,Uy,Wy,Gy,Ky,qy,Jy,Yy,Xy,Zy,Qy=o((()=>{hg(),Cg(),Tg(),Mg(),qg(),Wv(),T_(),Kv(),k_(),Qv(),ny=class{constructor(e=()=>!0){this.isEnabled=e,this.cache=new Map,this.rootDependencies=new Map,this.dependencyIndex=new Map}clear(){this.cache.clear(),this.rootDependencies.clear(),this.dependencyIndex.clear()}get(e,t,n){return this.isEnabled()?this.cache.get(e)?.get(t)?.get(n)??null:null}set(e,t,n,r,i){if(!this.isEnabled())return;let a=this.cache.get(e);a||(a=new WeakMap,this.cache.set(e,a));let o=a.get(t);o||(o=new WeakMap,a.set(t,o)),o.set(n,r);let s=this.rootDependencies.get(e);s||(s=new Set,this.rootDependencies.set(e,s));for(let t of i)if(!s.has(t)){s.add(t);let n=this.dependencyIndex.get(t);n||(n=new Set,this.dependencyIndex.set(t,n)),n.add(e)}}invalidate(e){this.isEnabled()&&this.invalidateDependents(e,new Set)}invalidateDependents(e,t){if(t.has(e))return;t.add(e);let n=this.dependencyIndex.get(e);if(n)for(let e of n)this.invalidateDependents(e,t);this.delete(e)}delete(e){let t=this.rootDependencies.get(e);if(t){for(let n of t){let t=this.dependencyIndex.get(n);t&&(t.delete(e),t.size===0&&this.dependencyIndex.delete(n))}this.rootDependencies.delete(e)}this.cache.delete(e)}},ry=class{constructor(e){this.releaseBufferSize=e,this.operations=new Map,this.releaseBuffer=[]}retain(e,t){let n=this.operations.get(e.key);n||(n={descriptor:e,refCount:0},this.operations.set(e.key,n)),n.refCount+=1,this.removeFromReleaseBuffer(e.key);let r=!1;return{dispose:()=>{r||(r=!0,this.release(e.key)&&t?.())}}}getDescriptors(){return[...this.operations.values()].map(e=>e.descriptor)}restore(e){for(let t of e.slice(-Math.max(1,this.releaseBufferSize)))this.operations.has(t.key)||(this.operations.set(t.key,{descriptor:t,refCount:0}),this.releaseBuffer.push(t.key))}release(e){let t=this.operations.get(e);if(!t||(--t.refCount,t.refCount>0))return!1;if(this.releaseBufferSize<=0)return this.operations.delete(e),!0;this.releaseBuffer.push(e);let n=!1;for(;this.releaseBuffer.length>this.releaseBufferSize;){let e=this.releaseBuffer.shift();if(!e)continue;let t=this.operations.get(e);t&&t.refCount<=0&&(this.operations.delete(e),n=!0)}return n}removeFromReleaseBuffer(e){let t=this.releaseBuffer.indexOf(e);t!==-1&&this.releaseBuffer.splice(t,1)}},iy=e=>`${typeof e}:${String(e)}`,ay=e=>{let t=new Set,n=new Set,r=e=>{if(e&&typeof e==`object`&&!n.has(e)){n.add(e);for(let[n,i]of Object.entries(e))ng(n)&&t.add(n),r(i)}};return r(e),t.size?[...t].sort().join(`,`):``},oy=(e,t,n)=>t?Mv(`__root__`,e,n.args.get(``)?.hash??Rg(t)):e,sy=(e,t,n)=>t?Mv(`__root__`,e,n.args.get(``)?.hash??Rg(zg(t)??{})):e,cy=e=>!!(e&&(`after`in e||`before`in e||`cursor`in e)),ly=e=>({direction:e?.before!==void 0||e?.last!==void 0?`backward`:`forward`,hasCursorArg:cy(e)}),uy=e=>{let t=[],n=[...e].sort((e,t)=>e.name.localeCompare(t.name));for(let e of n){if(e.kind===`node`){let n=Vg(e.plan);t.push(`node:${e.name}:${e.viewSignature}:${e.ids[0]}${n?`:${Rg(n)}`:``}`);continue}if(e.kind===`nodes`){let n=Vg(e.plan);t.push(`node:${e.name}:${e.viewSignature}:${e.ids.map(iy).join(`,`)}${n?`:${Rg(n)}`:``}`);continue}if(e.kind===`query`||e.kind===`value`){t.push(`${e.kind}:${e.name}:${e.kind===`query`?e.viewSignature:``}:${e.argsPayload?Rg(e.argsPayload):``}`);continue}e.kind===`list`&&t.push(`list:${e.name}:${e.hasItems?`connection`:`entity`}:${e.viewSignature}:${e.argsPayload?Rg(e.argsPayload):``}`)}return`${t.join(`$`)}|${JSON.stringify(n.map(e=>[`procedure`in e?e.procedure:e.type,[...e.plan.paths].sort()]))}`},dy=(e,t)=>{let n=[];for(let[r,i]of Object.entries(e)){let e=yg(i)?i.selection:i,a=yg(i)?i.field:r;yg(i)&&Sg(r,a);let o=t(a);if(og(e)){let t=e.value===!0?{args:new Map,live:new Map,paths:new Set}:xv(e.value,null);n.push({argsPayload:e.args,kind:`value`,name:r,plan:t,procedure:a,queryKey:`${oy(a,e.args,t)}#${[...t.paths].sort().join(`,`)}`,refViewNames:new Set,type:o});continue}if(rg(e)){n.push({ids:[e.id],kind:`node`,name:r,plan:xv(e.view,null),refViewNames:lv(e.view),type:o,viewSignature:ay(e.view)});continue}if(ig(e)){n.push({ids:e.ids,kind:`nodes`,name:r,plan:xv(e.view,null),refViewNames:lv(e.view),type:o,viewSignature:ay(e.view)});continue}if(ag(e)){let{argsPayload:t,plan:i}=fy(e.view,e.args);n.push({argsPayload:t,kind:`query`,name:r,plan:i,procedure:a,queryKey:oy(a,t,i),refViewNames:gv(e.view),type:o,viewSignature:ay(e.view)});continue}let{argsPayload:s,plan:c}=fy(e.list,e.args),l=e.list&&typeof e.list==`object`&&`items`in e.list,u=l&&e.list.items?e.list.items.node??e.list:e.list;n.push({argsPayload:s,hasItems:l,kind:`list`,listKey:sy(a,s,c),name:r,nodeRefViewNames:gv(u),plan:c,procedure:a,type:o,viewSignature:ay(e.list)})}return{items:n,key:uy(n)}},fy=(e,t)=>{let n=xv(e,null),r=Ug(t,Vg(n));return r&&Gg(n,r),{argsPayload:r,plan:n}},py=({options:e,read:t,retain:n,start:r,subscribe:i})=>{let a=e.enabled!==!1,o=e.mode===`cache-only`,s=new Set,c,l,u=!1,d=!1,f,p=!1,m,h,g=()=>{let n=a&&(e.mode!==`network-only`||p)?t():void 0,r={data:n,error:l,isFetching:u,refetch:y,status:a?n===void 0?l===void 0?o?`missing`:`pending`:`error`:`ready`:`disabled`};return c&&c.status===r.status&&c.error===l&&c.isFetching===u&&Object.is(c.data,n)?c:(c=r,r)},_=()=>{let e=c;if(g()!==e)for(let e of s)e()},v=e=>!a||o?Promise.reject(Error(`fate: Cannot refetch a disabled or cache-only request.`)):f||(d=!0,u=!0,l=void 0,f=Promise.resolve().then(()=>r(e)).then(e=>(p=!0,e),e=>{throw l=e,e}).finally(()=>{f=void 0,u=!1,_()}),_(),f),y=()=>v(!0);return{getSnapshot:g,subscribe(e){return s.add(e),s.size===1&&a&&(h=n(),m=i(_),!d&&!o&&v(!1).catch(()=>{})),()=>{s.delete(e),s.size||(m?.(),m=void 0,h?.dispose(),h=void 0)}}}},hy=class{static{my=Symbol.toStringTag}constructor(e,t){this.descriptor=e,this.readValue=t,this[my]=`Promise`,this.status=`pending`,this.execution=null}get value(){return this.readValue()}start(e){this.execution=e,this.reason=void 0,this.status=`pending`,e.then(()=>{this.execution===e&&(this.execution=null,this.status=`fulfilled`)},t=>{this.execution===e&&(this.execution=null,this.reason=t,this.status=`rejected`)})}then(e,t){switch(this.status){case`fulfilled`:return Promise.resolve().then(()=>this.readValue()).then(e??void 0,t??void 0);case`rejected`:return Promise.reject(this.reason).then(e??void 0,t??void 0);default:if(!this.execution)throw Error(`fate: Pending request is missing its execution.`);return this.execution.then(e??void 0,t??void 0)}}catch(e){return this.then(void 0,e??void 0)}finally(e){return this.then(async t=>(await e?.(),t),async t=>{throw await e?.(),t})}},gy=e=>{if(!e||typeof e!=`object`||!(`id`in e))throw Error(`fate: Missing 'id' on entity record.`);let t=e.id,n=typeof t;if(n!==`string`&&n!==`number`)throw Error(`fate: Entity id must be a string or number, received '${n}'.`);return t},_y=new Set,vy=()=>void 0,yy=(e,t)=>e<t?-1:+(e>t),by=(e,t)=>JSON.stringify({roots:Object.entries(e??{}).map(([e,t])=>[e,t.type]).sort(([e],[t])=>yy(e,t)),types:t.map(({fields:e,possibleTypes:t,type:n})=>({fields:Object.entries(e??{}).map(([e,t])=>[e,t]).sort(([e],[t])=>yy(e,t)),possibleTypes:t,type:n})).sort((e,t)=>yy(e.type,t.type))}),xy=(e,t)=>{if(!e||e.length===0)return;let n=new Set(t),r=e.filter(e=>!n.has(e));return r.length>0?r:void 0},Sy=(e,t)=>e?.includes(t)?e.filter(e=>e!==t):e,Cy=(e,t)=>e===t?!0:!e||!t||e.length!==t.length?!1:e.every((e,n)=>e===t[n]),wy=(e,t)=>e===t||(!e||!t?!1:e.hasNext===t.hasNext&&e.hasPrevious===t.hasPrevious&&e.nextCursor===t.nextCursor&&e.previousCursor===t.previousCursor),Ty=(e,t)=>!!e&&Cy(e?.ids,t.ids)&&Cy(e?.cursors,t.cursors)&&Cy(e?.liveAfterIds,t.liveAfterIds)&&Cy(e?.liveBeforeIds,t.liveBeforeIds)&&Cy(e?.pendingAfterIds,t.pendingAfterIds)&&Cy(e?.pendingBeforeIds,t.pendingBeforeIds)&&e?.backwardPageLimit===t.backwardPageLimit&&e?.forwardPageLimit===t.forwardPageLimit&&wy(e?.pagination,t.pagination),Ey=(e,t,n={})=>{if(n.reuseCurrentArray!==!1&&Array.isArray(t)&&t.length===e.length){let n=!0;for(let r=0;r<e.length;r+=1){let i=t[r];if(!Yg(i)||Xg(i)!==e[r]){n=!1;break}}if(n)return t}let r=new Map;if(Array.isArray(t))for(let e of t)Yg(e)&&r.set(Xg(e),e);return e.map(e=>r.get(e)??Jg(e))},Dy=(e,t)=>{let n=t===`forward`?e?.first??e?.last:e?.last??e?.first;return typeof n==`number`&&Number.isFinite(n)&&n>=0?n:null},Oy=(e,t,n)=>{let r=Dy(t.args,n);return r!=null&&e.ids.length>=r},ky=(e,t,n)=>{let r=Dy(t,n),i=e.pagination;return n===`forward`?i?.hasPrevious?!1:r==null||e.ids.length>=r||e.forwardPageLimit!=null&&e.forwardPageLimit>=r||i?.hasNext===!1:i?.hasNext?!1:r==null||e.ids.length>=r||e.backwardPageLimit!=null&&e.backwardPageLimit>=r||i?.hasPrevious===!1},Ay=e=>{let t=ly(e);return{...t,pageLimit:Dy(e,t.direction)}},jy=(e,t)=>{if(e.cursors&&e.cursors.length!==0)return t===`forward`?e.cursors.at(-1):e.cursors[0]},My=(e,t)=>{let n={hasNext:!!e.pagination?.hasNext,hasPrevious:!!e.pagination?.hasPrevious,nextCursor:e.pagination?.nextCursor,previousCursor:e.pagination?.previousCursor},r=jy(e,t);return t===`forward`?(n.hasNext=!0,n.nextCursor=r??n.nextCursor):(n.hasPrevious=!0,n.previousCursor=r??n.previousCursor),{...e,pagination:n}},Ny=(e,t,n)=>{let r=t.split(`.`),i=e;for(let e=0;e<r.length;e+=1){let t=r[e],a=e===r.length-1;if(t){if(a){i[t]=n;return}i[t]=i[t]??Object.create(null),i=i[t]}}},Py=e=>{let t={};for(let[n,r]of Object.entries(e))r!==void 0&&(t[n]=r);return t},Fy=e=>{if(e.size===0)return new Map;let t=new Map;for(let n of e){let e=n.indexOf(`.`);if(e===-1)continue;let r=n.slice(0,e),i=n.slice(e+1),a=t.get(r);a||(a=new Set,t.set(r,a)),a.add(i)}return t},Iy=class{acceptWrite(e,t){return this.store.isRecordingOptimistic?!0:(this.writeVersions.get(e)??0)>t?!1:(this.writeVersions.set(e,t),!0)}withWriteGeneration(e,t){let n=this.applyingGeneration;this.applyingGeneration=e;try{return t()}finally{this.applyingGeneration=n}}relatedEntityType(e,t,n){if(!t)return e;let r=n.__typename;if(typeof r!=`string`||!t.includes(r))throw Error(`fate: Expected '${e}' relation to contain one of ${t.join(`, `)}, received '${String(r)}'.`);return r}constructor(e){this.writeGeneration=0,this.writeVersions=new Map,this.requestListeners=new Map,this.requestListenersByDependency=new Map,this.pendingRequestListeners=new Set,this.requestNotificationScheduled=!1,this.cacheOnlyRefs=new WeakSet,this.cacheOnlyCopies=new WeakMap,this.requestResults=new WeakMap,this.requestItemResults=new WeakMap,this.parentLists=new Map,this.rootLists=new Map,this.pending=new Map,this.pendingDeferred=new Map,this.pendingOptimisticMutations=new Map,this.optimisticEntityResolutions=new Map,this.liveSubscriptions=new Map,this.liveConnectionInvalidations=new Map,this.stableRefs=new Map,this.requests=new Map,this.requestExecutionOptions=new WeakMap,this.rootRequests=new Map,this.rootValues=new Map,this.stalledRequests=new Set,this.gcPending=!1,this.gcScheduled=!1,this.pendingNetworkRequests=0,this.store=new Uv((e,t)=>{for(let t of e)this.viewDataCache.invalidate(t);this.runPendingGarbageCollection(),this.notifyRequests([...[...e].map(e=>`entity:${e}`),...[...t].map(e=>`list:${e}`),...[...e].flatMap(e=>this.store.getListKeysForEntity(e).map(e=>`list:${e}`))])},e=>{if(!this.store.isRecordingOptimistic){let t=this.applyingGeneration??++this.writeGeneration;if(e.kind===`record`){if(e.paths)for(let n of e.paths)this.acceptWrite(JSON.stringify([e.key,n.split(`.`)[0]]),t);else this.acceptWrite(JSON.stringify([e.key]),t)}else this.acceptWrite(`list:${e.key}`,t)}this.persistenceRuntime?.changed(e),this.notifyRequests(e.kind===`record`?[`entity:${e.key}`,...this.store.getListKeysForEntity(e.key).map(e=>`list:${e}`)]:[`list:${e.key}`])}),this.viewDataCache=new ny(()=>!this.store.isRebasing),this.liveConnectionInvalidationToken=0,this.persistenceDisposal=e.persistence?new AbortController:void 0,this.actions=Object.create(null),this.mutationMap=Object.create(null),e.persistence&&(this.mutationEntities=new Map(Object.entries(e.mutations??{}).map(([e,t])=>[e,t.entity]))),this.mutations=Object.create(null),this.onLiveError=e.onLiveError,this.operationLifetime=new ry(e.gcReleaseBufferSize??10),this.hydrationLimits=$g(e.hydrationLimits);let t=e.hydrationScope??by(e.roots,e.types);if(typeof t!=`string`||t.length===0)throw Error(`fate: Hydration scope must be a non-empty string.`);if(this.hydrationScope=t,this.roots=e.roots,this.transport=jg(e.transport),this.types=new Map(e.types.map(e=>[e.type,{getId:gy,...e}])),e.mutations)for(let[t,n]of Object.entries(e.mutations)){let e=R_(this,{...n,key:t});this.mutationMap[t]=e,Ny(this.mutations,t,e),Ny(this.actions,t,async(e,n)=>n===`reset`?null:await this.mutationMap[t](n))}this.initializeParentLists(),this.persistenceRuntime=e.persistence?.attach(this),this.persistence=this.persistenceRuntime}initializeParentLists(){for(let e of this.types.values())if(e.fields){for(let[t,n]of Object.entries(e.fields))if(n&&typeof n==`object`&&`listOf`in n){let r=n.listOf,i=this.types.get(r);if(!i)throw Error(`fate: Unknown related type '${r}' (field '${e.type}.${t}').`);if(!i.fields)continue;let a;for(let[t,n]of Object.entries(i.fields))if(n&&typeof n==`object`&&`type`in n&&n.type===e.type){a=t;break}if(!a)continue;let o=this.parentLists.get(r);o||(o=[],this.parentLists.set(r,o)),o.push({field:t,parentType:e.type,via:a})}}}dehydrate(){if(this.hasActiveOptimisticUpdates())throw Error(`fate: Cannot dehydrate while optimistic updates are active.`);if(this.hasPendingRequests())throw Error(`fate: Cannot dehydrate while requests are pending.`);return{data:i_({rootLists:[...this.rootLists].map(([e,t])=>[e,[...t]]),rootRequests:[...this.rootRequests],rootValues:[...this.rootValues],store:this.store.dehydrate()},this.hydrationLimits),scope:this.hydrationScope,version:1}}hydrate(e,t={}){if(!e||typeof e!=`object`||e.version!==1)throw Error(`fate: Unsupported hydration state version.`);if(e.scope!==this.hydrationScope)throw Error(`fate: Hydration state scope does not match this client.`);if(this.hasActiveOptimisticUpdates())throw Error(`fate: Cannot hydrate while optimistic updates are active.`);if(this.hasPendingRequests())throw Error(`fate: Cannot hydrate while requests are pending.`);let n=t.merge??`preserve-existing`;if(n!==`preserve-existing`&&n!==`replace`)throw Error(`fate: Unsupported hydration merge mode.`);let r=w_(e.data,this.hydrationLimits),i=this.store.hydrate(r.store,n,{deferNotifications:!0});n===`replace`&&(this.rootLists.clear(),this.rootRequests.clear(),this.rootValues.clear(),this.stableRefs.clear());for(let[e,t]of r.rootLists){let n=this.rootLists.get(e);n||(n=new Set,this.rootLists.set(e,n));for(let e of t)n.add(e)}for(let[e,t]of r.rootRequests)(n===`replace`||!this.rootRequests.has(e))&&this.rootRequests.set(e,t);for(let[e,t]of r.rootValues??[])(n===`replace`||!this.rootValues.has(e))&&this.rootValues.set(e,t);this.stalledRequests.clear(),this.viewDataCache.clear(),i()}exportPersistenceState(){return{data:i_({rootLists:[...this.rootLists].map(([e,t])=>[e,[...t]]),rootRequests:[...this.rootRequests],rootValues:[...this.rootValues],store:this.store.dehydrateConfirmed()},this.hydrationLimits),scope:this.hydrationScope,version:1}}retainPersistenceRequest(e){return this.operationLifetime.retain(e,()=>this.scheduleGarbageCollection())}getPersistenceScope(){return this.hydrationScope}getPersistenceRootLists(e){return this.rootLists.get(e)??new Set}getPersistenceQuery(e){return this.rootRequests.get(e)}getPersistenceValue(e){return this.rootValues.get(e)}restorePersistenceData(e){this.store.update(()=>{let t=new Map(e.store.coverage);for(let[n,r]of e.store.records){let e=this.store.read(n),i=t.get(n)??[];this.store.merge(n,e?Lv(r,e):r,i)}for(let[t,n]of e.store.lists)this.store.getListState(t)||this.store.setList(t,n);for(let[t,n]of e.rootRequests)this.rootRequests.has(t)||this.rootRequests.set(t,n);for(let[t,n]of e.rootValues??[])this.rootValues.has(t)||this.rootValues.set(t,n);for(let[t,n]of e.rootLists)for(let e of n)this.registerRootList(t,e)})}getRetainedRequests(){return this.operationLifetime.getDescriptors()}restoreRetainedRequests(e){this.operationLifetime.restore(e)}hasMutation(e,t){return this.mutationEntities?.get(e)===t&&this.types.has(t)}registerRootList(e,t){let n=this.rootLists.get(e);n||(n=new Set,this.rootLists.set(e,n)),n.add(t)}applyListInsert(e,t,n){let r=e.pendingBeforeIds??[],i=e.pendingAfterIds??[];if(e.ids.includes(t)||r.includes(t)||i.includes(t))return{list:e,pending:!1};if(n===`before`?e.pagination?.hasPrevious:e.pagination?.hasNext)return{list:n===`before`?{...e,pendingBeforeIds:[t,...r]}:{...e,pendingAfterIds:[...i,t]},pending:!0};let a=n===`before`?[t,...e.ids]:[...e.ids,t],o=e.cursors?n===`before`?[void 0,...e.cursors]:[...e.cursors,void 0]:e.cursors;return{list:{...e,cursors:o,ids:a},pending:!1}}insertIntoRootLists(e,t,n){if(n===`none`)return;let r=this.rootLists.get(e);if(r)for(let e of r){let r=this.store.getListState(e);if(!r)continue;let i=this.applyListInsert(r,t,n).list;i!==r&&this.store.setList(e,i)}}getTypeConfig(e){let t=this.types.get(e);if(!t)throw Error(`fate: Unknown entity type '${e}'.`);return t}getListNodeType(e,t){let n=this.getTypeConfig(e).fields?.[t];if(!n||n===`scalar`||!(`listOf`in n))throw Error(`fate: Could not find node type for '${e}.${t}'.`);return n.listOf}validatePersistence(){this.mutationEntities?.size&&this.requireDurableMutationTransport()}persistMutation(e){if(!this.persistenceRuntime)throw Error(`fate: Persistence is not configured.`);return this.persistenceRuntime.mutate(e)}assertPersistenceActive(){if(this.persistenceDisposal?.signal.aborted||this.persistence?.getSnapshot().status===`disposed`)throw Error(`fate: Persistence was disposed.`)}disposePersistence(){this.persistenceDisposal?.abort();for(let{unsubscribe:e}of this.liveSubscriptions.values())try{e()}catch{}this.liveSubscriptions.clear()}requireDurableMutationTransport(){if(!this.transport.mutateDurably)throw new E_(`BAD_REQUEST`,`fate: Persisted mutations require transport.mutateDurably connected to a server idempotency handler. Configure that adapter, or use persist: false for immediate calls. Cache persistence remains available.`)}async executeMutation(e,t,n,r={}){if(r.identity)this.requireDurableMutationTransport();else if(!this.transport.mutate)throw Error(`fate: transport does not support mutations. Please provide a 'mutate' implementation in your transport.`);let i=t&&typeof t==`object`?t:void 0,a=this.transport.separateMutationSelectionArgs,o=!a&&i&&typeof i.args==`object`?i.args:void 0,s=Ug(r.plan?Vg(r.plan):void 0,Ug(o,r.args)),c=a?t:s&&i?{...i,args:s}:s?{args:s}:t;return await this.trackPendingRequest(()=>r.identity?a?this.transport.mutateDurably(e,c,n,r.identity,s):this.transport.mutateDurably(e,c,n,r.identity):a?this.transport.mutate(e,c,n,s):this.transport.mutate(e,c,n))}write(e,t,n,r,i){return this.writeEntity(e,t,n,r,null,i)}deleteRecord(e,t){return this.store.update(()=>{let n=hv(e,t);this.viewDataCache.invalidate(n),this.stableRefs.delete(n),this.store.deleteRecord(n),this.store.removeReferencesTo(n,this.viewDataCache)})}stableRefWithViewNames(e,t,n){let r=hv(e,t),i=`${typeof t}:${String(t)}:${[...n].sort().join(`,`)}`,a=this.stableRefs.get(r);a||(a=new Map,this.stableRefs.set(r,a));let o=a.get(i);if(o)return o;let s=I_(e,t,n);return a.set(i,s),s}ref(e,t,n){return this.stableRefWithViewNames(e,t,lv(n))}rootListRef(e,t){let{id:n,type:r}=P_(e);return this.stableRefWithViewNames(r,n,gv(t))}readView(e,t){if(e=sv(e,t),this.persistence&&this.persistence.getSnapshot().status!==`ready`){let n=`restore:${t.__typename}:${t.id}:${[...lv(e)].sort().join(`,`)}`,r=this.pending.get(n);return r||(r=this.persistence.ready.then(()=>{if(this.persistence?.getSnapshot().status===`disposed`)throw Error(`fate: Persistence was disposed.`);return this.readView(e,t)}).finally(()=>this.pending.delete(n)),this.pending.set(n,r)),r}let n=t.id,r=t.__typename;if(n==null){let e=Object.keys(t).length>0?`'${JSON.stringify(t)}'`:`an empty object`;throw Error(`fate: Invalid view reference. Expected 'id' to be provided as part of the reference, received ${e}. Did you forget to spread the correct view into its parent or pass the wrong ref to 'useView'?`)}if(r==null)throw Error(`fate: Invalid view reference. Expected '__typename' to be provided as part of the reference, received '${JSON.stringify(t)}'.`);let i=hv(r,n),a=this.optimisticEntityResolutions.get(i)??null;if(a&&a!==i){let{id:t,type:n}=P_(a);return this.readView(e,this.stableRefWithViewNames(n,t,lv(e)))}let o=lv(e),s=t[cg];if(!s||![...o].every(e=>s.has(e))){let e=s?[...s].join(`, `):JSON.stringify(t);throw Error(`fate: Invalid view reference. Expected the provided ref to include the view(s) '${[...o].join(`', '`)}', received '${e}'. You can fix this issue by spreading the correct view into its parent so fate can create the correct view refs for you.`)}let c=this.viewDataCache.get(i,e,t);if(c)return c;let l=xv(e,t),u=l.paths,d=this.missingForSelection(i,u,l),f=()=>{let n=this.readViewSelection(e,t,i,l);this.cacheOnlyRefs.has(t)&&this.markCacheOnly(n.data);let r={status:`fulfilled`,then:(e,t)=>Promise.resolve(n).then(e,t),value:n};return this.viewDataCache.set(i,e,t,r,new Set(n.coverage.map(([e])=>e))),r};if(d.size===0)return this.clearStalledRequestsForEntity(i),f();if(d.size>0){if(this.cacheOnlyRefs.has(t))throw Error(`fate: Cache-only view is missing selected fields.`);let a=this.pendingKey(i,new Set([...d].map(e=>tv(e,l)))),o=this.getPendingOptimisticMutations(i);if(o){let n=this.pending.get(a);if(n)return n;let r=Promise.all(o).then(()=>this.readView(e,t)).finally(()=>this.pending.delete(a));return this.pending.set(a,r),r}if(this.stalledRequests.has(a))return f();let s=this.pending.get(a)||null;if(s)return s;let c=this.trackPendingRequest(async()=>{let o=this.persistenceRuntime;if(o){let e={items:[{ids:[n],kind:`node`,name:r,plan:l,refViewNames:new Set,type:r,viewSignature:``}],key:`view:${a}`};await o.restoreRequest(e);let t=this.missingForSelection(i,u,l);t.size&&(await this.fetchByIdAndNormalize(r,[n],t,l),o.fetched({...e,items:e.items.map(e=>({...e,plan:{...e.plan,paths:t}})),key:`${e.key}:${JSON.stringify([...t].sort())}`}))}else await this.fetchByIdAndNormalize(r,[n],d,l);try{return this.missingForSelection(i,u,l).size>0?(this.stalledRequests.add(a),f()):(this.stalledRequests.delete(a),this.readView(e,t))}finally{this.pending.delete(a)}});return this.pending.set(a,c),c}return f()}readDeferred(e){let t=Q_(e),n=this.optimisticEntityResolutions.get(t.owner)??t.owner,r=P_(n),i=this.store.read(n),a=i&&(typeof i.id==`string`||typeof i.id==`number`)?i.id:r.id,o=r.type||t.type,s=Sv(t.field,t.selection),c=s.paths,l=this.missingForSelection(n,c,s),u=()=>this.hasMissingDeferredList(n,o,t.field,s),d=u(),f=d?c:l,p=()=>{let e=this.readViewSelection({[t.field]:t.selection},this.stableRefWithViewNames(o,a,new Set),n,s),r={coverage:e.coverage,data:e.data[t.field]};return{status:`fulfilled`,then:(e,t)=>Promise.resolve(r).then(e,t),value:r}};if(l.size===0&&!d)return this.clearStalledRequestsForEntity(n),p();let m=this.deferredPendingKey(n,f,s,this.deferredSelectionSignature(t.selection));if(this.stalledRequests.has(m))return p();let h=this.getPendingOptimisticMutations(n);if(h){let t=this.pendingDeferred.get(m);if(t)return t;let n=Promise.all(h).then(()=>this.readDeferred(e)).finally(()=>this.pendingDeferred.delete(m));return this.pendingDeferred.set(m,n),n}let g=this.pendingDeferred.get(m)||null;if(g)return g;let _=this.trackPendingRequest(async()=>{try{return await this.fetchByIdAndNormalize(o,[a],f,s),this.missingForSelection(n,c,s).size>0||u()?(this.stalledRequests.add(m),p().value):(this.stalledRequests.delete(m),this.readDeferred(e).value)}finally{this.pendingDeferred.delete(m)}});return this.pendingDeferred.set(m,_),_}assertLiveViewSupport(){if(!this.transport.subscribeById)throw Error(`fate: transport does not support live views. Please provide a 'subscribeById' implementation in your transport.`)}assertLiveConnectionSupport(){if(!this.transport.subscribeConnection)throw Error(`fate: transport does not support live list views. Please provide a 'subscribeConnection' implementation in your transport.`)}subscribeLiveView(e,t){e=sv(e,t),this.assertPersistenceActive();let n=t.id,r=t.__typename;if(n==null)throw Error(`fate: Invalid live view reference. Expected 'id' to be provided as part of the reference.`);if(r==null)throw Error(`fate: Invalid live view reference. Expected '__typename' to be provided as part of the reference.`);let i=lv(e),a=t[cg];if(!a||![...i].every(e=>a.has(e))){let e=a?[...a].join(`, `):JSON.stringify(t);throw Error(`fate: Invalid live view reference. Expected the provided ref to include the view(s) '${[...i].join(`', '`)}', received '${e}'.`)}let o=hv(r,n),s=xv(e,t,{includeNestedViews:!0});if(s.paths.size===0)return()=>{};this.assertLiveViewSupport();let c=this.liveSubscriptionKey(o,s),l=this.liveSubscriptions.get(c);if(l)return l.count+=1,l.releaseScheduled=!1,()=>{this.releaseLiveSubscription(c)};let u=Vg(s),d;try{d=this.transport.subscribeById(r,n,s.paths,u,{onData:(e,t)=>{if(this.persistenceDisposal?.signal.aborted||!e||typeof e!=`object`)return;let n=new Set(t??s.paths);this.write(r,e,n,s,`none`)},onDelete:e=>{this.persistenceDisposal?.signal.aborted||this.deleteRecord(r,e??n)},onError:e=>{this.persistenceDisposal?.signal.aborted||this.reportLiveError(e)}})}catch(e){return this.reportLiveError(e),vy}return this.persistenceDisposal?.signal.aborted?(d(),vy):(this.liveSubscriptions.set(c,{count:1,unsubscribe:d}),()=>{this.releaseLiveSubscription(c)})}subscribeLiveListView(e,t){this.assertPersistenceActive(),this.assertLiveConnectionSupport();let n=xv(e,null),r=zg(t.root?t.args:{...t.args,id:P_(t.owner).id}),i=Vg(n),a=this.liveConnectionSubscriptionKey(t,n,r),o=this.liveSubscriptions.get(a);if(o)return o.count+=1,o.releaseScheduled=!1,()=>{this.releaseLiveSubscription(a)};let s;try{s=this.transport.subscribeConnection(t.procedure,t.type,r,n.paths,i,{onError:e=>{this.persistenceDisposal?.signal.aborted||this.reportLiveError(e)},onEvent:r=>{this.persistenceDisposal?.signal.aborted||this.applyLiveConnectionEvent(e,t,n,r)}})}catch(e){return this.reportLiveError(e),vy}return this.persistenceDisposal?.signal.aborted?(s(),vy):(this.liveSubscriptions.set(a,{count:1,unsubscribe:s}),()=>{this.releaseLiveSubscription(a)})}applyLiveConnectionEvent(e,t,n,r){return this.store.update(()=>{if(r.type===`invalidate`){this.invalidateLiveConnection(e,t);return}if(r.type===`deleteEdge`){this.deleteConnectionEdge(t,hv(r.nodeType,r.id));return}let i=r.edge.node;if(!i||typeof i!=`object`)return;let a=i,o=r.nodeType;if(!o){this.reportLiveError(Error(`fate: Live connection event for '${t.procedure}' did not include a node type.`));return}let s=this.write(o,a,n.paths,n,`none`);this.insertConnectionEdge(t.key,s,r.edge.cursor,r.type,r.targetCursor,e,t)})}invalidateLiveConnection(e,t){let n=++this.liveConnectionInvalidationToken;this.liveConnectionInvalidations.set(t.key,n);let r=this.store.getListState(t.key);this.store.restoreList(t.key,void 0),this.loadConnection(e,t,t.args??{}).then(()=>{this.liveConnectionInvalidations.get(t.key)===n&&this.liveConnectionInvalidations.delete(t.key)}).catch(e=>{this.liveConnectionInvalidations.get(t.key)===n&&(this.store.restoreList(t.key,r),this.liveConnectionInvalidations.delete(t.key)),this.reportLiveError(e)})}deleteConnectionEdge(e,t){let n=this.store.getListState(e.key);if(!n){this.syncNestedConnectionOwnerField(e,t,void 0,`delete`);return}let r=[],i=n.cursors?[]:void 0,a=!1;n.ids.forEach((e,o)=>{if(e===t){a=!0;return}r.push(e),i&&i.push(n.cursors?.[o])});let o=Sy(n.liveAfterIds,t),s=Sy(n.liveBeforeIds,t),c=Sy(n.pendingAfterIds,t),l=Sy(n.pendingBeforeIds,t);if(a=a||o?.length!==n.liveAfterIds?.length||s?.length!==n.liveBeforeIds?.length||c?.length!==n.pendingAfterIds?.length||l?.length!==n.pendingBeforeIds?.length,a){let a={...n,cursors:i,ids:r,liveAfterIds:o,liveBeforeIds:s,pendingAfterIds:c,pendingBeforeIds:l};this.store.setList(e.key,a),this.syncNestedConnectionOwnerField(e,t,a,`delete`);return}this.syncNestedConnectionOwnerField(e,t,n,`delete`)}insertConnectionEdge(e,t,n,r,i,a,o){let s=this.store.getListState(e)??{ids:[]},c=r===`appendEdge`||r===`appendNode`,l=r===`prependEdge`||r===`prependNode`,u=o.live?.append??`edge`,d=o.live?.prepend??`edge`;if(c&&s.pendingAfterIds?.includes(t)||l&&s.pendingBeforeIds?.includes(t)){this.syncNestedConnectionOwnerField(o,t,s,`insert`);return}let f=s.ids.indexOf(t);if(f>=0&&(c&&u===`visible`||l&&d===`visible`)){let r=n===void 0?s:{...s,cursors:s.ids.map((e,t)=>t===f?n:s.cursors?.[t])};r!==s&&this.store.setList(e,r),this.syncNestedConnectionOwnerField(o,t,r,`insert`);return}let p=this.removeEntityFromListState(s,t),m=l&&d!==`visible`&&(!!p.pagination?.hasPrevious||Oy(p,o,`backward`)),h=c&&u!==`visible`&&(!!p.pagination?.hasNext||Oy(p,o,`forward`)),g=l&&d===`visible`&&(p.pagination?.hasPrevious===!0||p.pagination?.hasPrevious===void 0&&Oy(p,o,`backward`)),_=c&&u===`visible`&&(p.pagination?.hasNext===!0||p.pagination?.hasNext===void 0&&Oy(p,o,`forward`));if(m){let n=My(p,`backward`),r={...n,liveBeforeIds:[t,...n.liveBeforeIds??[]]};this.store.setList(e,r),this.syncNestedConnectionOwnerField(o,t,r,`insert`);return}if(h){let n=My(p,`forward`),r={...n,liveAfterIds:[...n.liveAfterIds??[],t]};this.store.setList(e,r),this.syncNestedConnectionOwnerField(o,t,r,`insert`);return}if(g){let n=My(p,`backward`),r={...n,pendingBeforeIds:[t,...n.pendingBeforeIds??[]]};this.store.setList(e,r),this.syncNestedConnectionOwnerField(o,t,r,`insert`);return}if(_){let n=My(p,`forward`),r={...n,pendingAfterIds:[...n.pendingAfterIds??[],t]};this.store.setList(e,r),this.syncNestedConnectionOwnerField(o,t,r,`insert`);return}let v=this.getConnectionInsertIndex(p,r,i);if(v==null){this.invalidateLiveConnection(a,o);return}let y=[...p.ids];y.splice(v,0,t);let b=p.cursors||n!==void 0?[...p.cursors??[]]:void 0;if(b){for(;b.length<p.ids.length;)b.push(void 0);b.splice(v,0,n)}let x={...p,cursors:b,ids:y,liveAfterIds:Sy(p.liveAfterIds,t),liveBeforeIds:Sy(p.liveBeforeIds,t)};this.store.setList(e,x),this.syncNestedConnectionOwnerField(o,t,x,`insert`)}syncNestedConnectionOwnerField(e,t,n,r){if(e.root)return;let i=this.store.read(e.owner),a=Array.isArray(i?.[$_(e.field,e.hash)])?i?.[$_(e.field,e.hash)]:[],o=a.map(e=>Yg(e)?Xg(e):null).filter(e=>e!=null),s=o.filter(e=>e!==t);if(r===`insert`&&n){let e=Gv(n).map(({id:e})=>e),r=e.indexOf(t);if(r>=0){let n=new Map(s.map((e,t)=>[e,t])),i=null;for(let t=r-1;t>=0;--t){let r=n.get(e[t]);if(r!=null){i=r+1;break}}if(i==null)for(let t=r+1;t<e.length;t+=1){let r=n.get(e[t]);if(r!=null){i=r;break}}s.splice(i??(r===0?0:s.length),0,t)}}o.length===s.length&&o.every((e,t)=>e===s[t])||(this.viewDataCache.invalidate(e.owner),this.store.merge(e.owner,{[$_(e.field,e.hash)]:Ey(s,a)},[$_(e.field,e.hash)]))}getConnectionInsertIndex(e,t,n){if(t===`prependEdge`||t===`prependNode`)return 0;if(t===`appendEdge`||t===`appendNode`)return e.ids.length;if(n&&e.cursors){let r=e.cursors.indexOf(n);if(r>=0)return t===`insertEdgeBefore`?r:r+1}return null}removeEntityFromListState(e,t){let n=[],r=e.cursors?[]:void 0;return e.ids.forEach((i,a)=>{i!==t&&(n.push(i),r&&r.push(e.cursors?.[a]))}),{...e,cursors:r,ids:n,liveAfterIds:Sy(e.liveAfterIds,t),liveBeforeIds:Sy(e.liveBeforeIds,t),pendingAfterIds:Sy(e.pendingAfterIds,t),pendingBeforeIds:Sy(e.pendingBeforeIds,t)}}mergeListState(e,t,n,r,i){let a=e?.ids??[],o=new Set(a),s=i.direction===`backward`,c=(()=>{if(!e||!i.hasCursorArg&&i.replace)return[...t];if(!i.hasCursorArg){let e=new Set(t),n=a.filter(t=>!e.has(t));return s?[...n,...t]:[...t,...n]}let n=t.filter(e=>!o.has(e));return s?[...n,...a]:[...a,...n]})(),l=n.some(e=>e!==void 0),u=new Map;e?.cursors&&e.cursors.forEach((e,t)=>{u.set(a[t],e)}),n.forEach((e,n)=>{e!==void 0&&u.set(t[n],e)});let d=l||e?.cursors||i.hasCursorArg?c.map(e=>u.get(e)):void 0,f=e?.pagination,p=r,m=i.hasCursorArg&&a.length>0,h=m&&!s?f??p:p,g=m&&s?f??p:p,_=f||p?{hasNext:!!(g?.hasNext??f?.hasNext),hasPrevious:!!(h?.hasPrevious??f?.hasPrevious),nextCursor:g?.nextCursor??f?.nextCursor,previousCursor:h?.previousCursor??f?.previousCursor}:void 0;return{backwardPageLimit:!i.hasCursorArg&&s&&i.pageLimit!=null?Math.max(e?.backwardPageLimit??0,i.pageLimit):e?.backwardPageLimit,cursors:d,forwardPageLimit:!i.hasCursorArg&&!s&&i.pageLimit!=null?Math.max(e?.forwardPageLimit??0,i.pageLimit):e?.forwardPageLimit,ids:c,liveAfterIds:xy(e?.liveAfterIds,c),liveBeforeIds:xy(e?.liveBeforeIds,c),pagination:_,pendingAfterIds:xy(e?.pendingAfterIds,c),pendingBeforeIds:xy(e?.pendingBeforeIds,c)}}registerPendingOptimisticMutation(e,t){let n=this.pendingOptimisticMutations.get(e);n||(n=new Set,this.pendingOptimisticMutations.set(e,n));let r=t.catch(()=>void 0);n.add(r),r.finally(()=>{let t=this.pendingOptimisticMutations.get(e);t&&(t.delete(r),t.size===0&&this.pendingOptimisticMutations.delete(e),this.runPendingGarbageCollection())})}resolveOptimisticEntity(e,t){this.optimisticEntityResolutions.set(e,t),this.store.replaceListEntityId(e,t)}getPendingOptimisticMutations(e){let t=this.pendingOptimisticMutations.get(e);return t&&t.size>0?[...t]:null}async loadConnection(e,t,n,r={}){return await this.trackPendingRequest(()=>this.loadConnectionInternal(e,t,n,r))}async loadConnectionInternal(e,t,n,r={}){let i=r.direction??`forward`;if(t.root){if(!this.transport.fetchList)throw Error(`fate: transport does not support list fetching. Please add support for 'fetchList' in your transport.`);let r=Py({...t.args,...n}),{argsPayload:i,plan:a}=fy(e,r),o=await this.transport.fetchList(t.field,a.paths,i);if(this.assertPersistenceActive(),o===null)return this.store.getListState(t.key);let{items:s,pagination:c}=o;return s&&this.store.update(()=>{let e=[],n=[];for(let r of s){let i=this.write(t.type,r.node,a.paths,a,`none`);e.push(i),n.push(r.cursor)}let i=this.store.getListState(t.key),o=this.mergeListState(i,e,n,c,{...Ay(r),replace:!0});zg(t.args)||this.registerRootList(t.type,t.key),this.store.setList(t.key,o)}),this.store.getListState(t.key)}let a=P_(t.owner),o=Py({...t.args,...n}),{argsPayload:s,plan:c}=fy(e,o),l=c.paths,u=s?Kg(s,t.field):void 0,d=new Set;for(let e of l)d.add(`${t.field}.${e}`);let[f]=await this.transport.fetchById(a.type,[a.id],d,u);if(this.assertPersistenceActive(),!f||typeof f!=`object`)return this.store.getListState(t.key);let p=f[t.field],m=Array.isArray(p)?{items:p.map(e=>({cursor:void 0,node:e})),pagination:void 0}:p;return m&&this.store.update(()=>{let e=[],n=[],r=this.getListNodeType(a.type,t.field);for(let t of m.items){let{node:i}=t,a=this.write(r,i,l,c);e.push(a),n.push(t.cursor)}let o=this.store.getListState(t.key),u=o?.ids??[],d=new Set(u),f=e.filter(e=>!d.has(e)),p=this.mergeListState(o,e,n,m.pagination,{...Ay(s),direction:i,hasCursorArg:!0,replace:!0});this.store.setList(t.key,p);let h=this.store.read(t.owner),g=Array.isArray(h?.[$_(t.field,t.hash)])&&h?.[$_(t.field,t.hash)]||[],_=Ey(f,void 0),v=i===`forward`?[...g,..._]:[..._,...g];this.viewDataCache.invalidate(t.owner),this.store.merge(t.owner,{[$_(t.field,t.hash)]:v},[$_(t.field,t.hash)])}),this.store.getListState(t.key)}requestDependencies(e){let t=new Set;for(let n of e.items)if(n.kind===`node`||n.kind===`nodes`)for(let e of n.ids)t.add(`entity:${hv(n.type,e)}`);else if(n.kind===`query`){t.add(`root:${n.queryKey}`);let e=this.rootRequests.get(n.queryKey);e&&t.add(`entity:${e}`)}else n.kind===`value`?t.add(`root:${n.queryKey}`):n.kind===`list`&&t.add(`list:${n.listKey}`);return t}updateRequestListenerDependencies(e){let t=this.requestListeners.get(e);if(!t)return;let n=this.requestDependencies(t.descriptor);for(let r of t.dependencies)if(!n.has(r)){let t=this.requestListenersByDependency.get(r);t?.delete(e),t?.size||this.requestListenersByDependency.delete(r)}for(let r of n)if(!t.dependencies.has(r)){let t=this.requestListenersByDependency.get(r);t||(t=new Set,this.requestListenersByDependency.set(r,t)),t.add(e)}t.dependencies=n}notifyRequests(e){for(let t of e)for(let e of this.requestListenersByDependency.get(t)??[])this.pendingRequestListeners.add(e);this.pendingRequestListeners.size!==0&&(this.requestNotificationScheduled||(this.requestNotificationScheduled=!0,queueMicrotask(()=>{this.requestNotificationScheduled=!1;let e=[...this.pendingRequestListeners];this.pendingRequestListeners.clear();for(let t of e)this.updateRequestListenerDependencies(t),this.requestListeners.has(t)&&t()})))}markCacheOnly(e){if(e&&typeof e==`object`&&!this.cacheOnlyRefs.has(e)){this.cacheOnlyRefs.add(e);for(let t of Object.values(e))this.markCacheOnly(t)}}cacheOnlyResult(e){if(!e||typeof e!=`object`)return e;let t=this.cacheOnlyCopies.get(e);if(t)return t;if(cg in e){let t=Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e));return this.cacheOnlyCopies.set(e,t),this.cacheOnlyRefs.add(t),t}if(Array.isArray(e)){let t=e.map(e=>this.cacheOnlyResult(e));return this.cacheOnlyCopies.set(e,t),t}if(Object.getPrototypeOf(e)!==Object.prototype)return e;let n=Object.getOwnPropertyDescriptors(e);for(let e of Object.values(n))`value`in e&&(e.value=this.cacheOnlyResult(e.value));let r=Object.create(Object.prototype,n);return this.cacheOnlyCopies.set(e,r),r}cacheOnlyRequestResult(e,t){let n=this.cacheOnlyCopies.get(t);if(n)return n;let r=Object.fromEntries(e.items.map(e=>[e.name,e.kind===`value`?t[e.name]:this.cacheOnlyResult(t[e.name])]));return this.cacheOnlyCopies.set(t,r),r}observeRequest(e,t={}){let n=this.createRequestDescriptor(e);return py({options:t,read:()=>{if(!this.hasRequestData(n))return;let e=this.getRequestResultFromDescriptor(n);return t.mode===`cache-only`?this.cacheOnlyRequestResult(n,e):e},retain:()=>this.retain(e),start:e=>this.requestWithDescriptor(n,e||t.mode===`stale-while-revalidate`?`network-only`:t.mode===`cache-only`?`cache-first`:t.mode??`cache-first`,{revalidateExisting:!0},{persist:t.persist}),subscribe:e=>(this.requestListeners.set(e,{dependencies:new Set,descriptor:n}),this.updateRequestListenerDependencies(e),()=>{let t=this.requestListeners.get(e);this.requestListeners.delete(e),this.pendingRequestListeners.delete(e);for(let n of t?.dependencies??[]){let t=this.requestListenersByDependency.get(n);t?.delete(e),t?.size||this.requestListenersByDependency.delete(n)}})})}request(e,t){let n=t?.mode??`cache-first`;return this.requestWithDescriptor(this.createRequestDescriptor(e),n,{revalidateExisting:!0},t)}requestForRender(e,t){return this.prepareRequestForRender(e,t).promise}prepareRequestForRender(e,t){let n=t?.mode??`cache-first`,r=this.createRequestDescriptor(e);return{promise:this.requestWithDescriptor(r,n,{revalidateExisting:!1},t),requestKey:r.key}}requestWithDescriptor(e,t,{revalidateExisting:n},r){this.assertPersistenceActive();let i=this.persistenceRuntime;if(i&&r?.persist&&(!Number.isSafeInteger(r.persist.maxAge)||r.persist.maxAge<0||r.persist.maxAge>2**53-1-Date.now()))throw Error(`fate: Persistence maxAge must be a non-negative finite duration.`);let a=e.key,o=this.requests.get(a)?.get(t);if(o){if(i&&r?.persist){let e=this.requestExecutionOptions.get(o.descriptor);e&&(e.persist={...r.persist})}i&&r?.persist&&o.status===`fulfilled`&&i.used(o.descriptor,r.persist);let e=t===`cache-first`&&o.status===`fulfilled`&&!this.hasRequestData(o.descriptor);return o.status!==`pending`&&(e||n&&(t===`network-only`||t===`stale-while-revalidate`||t===`cache-first`&&o.status===`rejected`))&&this.executeRequestHandle(o,t,r),o}let s=new hy(e,()=>this.getRequestResultFromDescriptor(e)),c=this.requests.get(a);return c||(c=new Map,this.requests.set(a,c)),c.set(t,s),this.executeRequestHandle(s,t,r),s}releaseRequest(e,t){this.releaseRequestKey(this.createRequestDescriptor(e).key,t)}releaseRequestKey(e,t){let n=this.requests.get(e);n&&(n.delete(t),n.size===0&&this.requests.delete(e))}retainRequestKey(e,t){let n=this.requests.get(e),r=(t?n?.get(t)?.descriptor:void 0)??n?.values().next().value?.descriptor;return r?this.operationLifetime.retain(r,()=>this.scheduleGarbageCollection()):{dispose:vy}}retain(e){return this.operationLifetime.retain(this.createRequestDescriptor(e),()=>this.scheduleGarbageCollection())}scheduleGarbageCollection(){this.gcScheduled||(this.gcScheduled=!0,queueMicrotask(()=>{this.gcScheduled=!1,this.gc()}))}gc(){if(this.persistence?this.store.hasTransientOptimisticUpdates:this.hasActiveOptimisticUpdates()){this.gcPending=!0;return}this.gcPending=!1;let e=new Set,t=new Set,n=[],r=e=>{e&&!t.has(e)&&(t.add(e),n.push(e))},i=t=>{e.add(t);let n=this.store.getListState(t);if(n){for(let e of n.pendingBeforeIds??[])r(e);for(let e of n.ids)r(e);for(let e of n.pendingAfterIds??[])r(e)}},a=this.store.getOptimisticRoots();a.baseRecords.forEach(e=>this.markRecordReferences(e,r)),a.records.forEach(r),a.lists.forEach(i);let o=new Set;for(let e of this.operationLifetime.getDescriptors())for(let t of e.items){if(t.kind===`node`||t.kind===`nodes`){for(let e of t.ids)r(hv(t.type,e));continue}if(t.kind===`query`){r(this.rootRequests.get(t.queryKey));continue}if(t.kind===`value`){o.add(t.queryKey);continue}t.kind===`list`&&(i(t.listKey),o.add(`list:${t.listKey}`))}for(let e=0;e<n.length;e+=1){let t=n[e];if(!t)continue;let a=this.store.read(t);if(!a)continue;this.markRecordReferences(a,r);let{type:o}=P_(t),s=this.types.get(o);if(s?.fields){for(let[e,n]of Object.entries(s.fields))if(n&&n!==`scalar`&&`listOf`in n)for(let[n]of this.store.getListsForField(t,e))i(n)}}let s=this.store.collectGarbage(t,e,{onRecordDeleted:e=>{this.viewDataCache.invalidate(e),this.stableRefs.delete(e),this.clearStalledRequestsForEntity(e)}});if(s.records.size>0)for(let[e,t]of this.rootRequests.entries())t&&s.records.has(t)&&this.rootRequests.delete(e);for(let e of this.rootValues.keys())o.has(e)||this.rootValues.delete(e);if(s.lists.size>0)for(let[e,t]of this.rootLists.entries()){for(let e of s.lists)t.delete(e);t.size===0&&this.rootLists.delete(e)}}executeRequestHandle(e,t,n){let r=this.persistenceRuntime,i={fetchAll:t!==`cache-first`,persist:n?.persist?{...n.persist}:void 0};r&&this.requestExecutionOptions.set(e.descriptor,i);let a=()=>(this.assertPersistenceActive(),t===`stale-while-revalidate`?this.handleStoreAndNetworkRequest(e.descriptor,i):this.executeRequest(e.descriptor,i).then(()=>this.getRequestResultFromDescriptor(e.descriptor)));e.start(r?this.withPersistenceLifecycle(()=>r.ready.then(()=>t===`network-only`?void 0:r.restoreRequest(e.descriptor)).then(a)):a()),e.then(()=>this.notifyRequests(this.requestDependencies(e.descriptor)),()=>this.notifyRequests(this.requestDependencies(e.descriptor)))}markRecordReferences(e,t){let n=new Set,r=e=>{if(Yg(e)){t(Xg(e));return}if(e&&typeof e==`object`&&!n.has(e)){if(n.add(e),Array.isArray(e)){for(let t of e)r(t);return}for(let t of Object.values(e))r(t)}};r(e)}hasActiveOptimisticUpdates(){return this.store.hasOptimisticUpdates||this.pendingOptimisticMutations.size>0}hasPendingRequests(){return this.pendingNetworkRequests>0}async withPersistenceLifecycle(e){this.assertPersistenceActive();let t=this.persistenceDisposal?.signal,n;try{let r=e(),i=t?await Promise.race([r,new Promise((e,r)=>{n=()=>r(Error(`fate: Persistence was disposed.`)),t.addEventListener(`abort`,n,{once:!0}),t.aborted&&n()})]):await r;return this.assertPersistenceActive(),i}finally{n&&t?.removeEventListener(`abort`,n)}}async trackPendingRequest(e){return this.withPersistenceLifecycle(async()=>{this.persistence&&await this.persistence.ready,this.assertPersistenceActive(),this.pendingNetworkRequests+=1;try{return await this.withPersistenceLifecycle(e)}finally{--this.pendingNetworkRequests,this.pendingNetworkRequests||this.writeVersions.clear(),this.persistenceRuntime?.changed()}})}runPendingGarbageCollection(){this.gcPending&&!this.hasActiveOptimisticUpdates()&&this.gc()}async handleStoreAndNetworkRequest(e,t){if(!this.hasRequestData(e))return await this.executeRequest(e,t),this.getRequestResultFromDescriptor(e);let n=this.getRequestResultFromDescriptor(e);return this.executeRequest(e,t).then(()=>this.notifyRequests(this.requestDependencies(e)),()=>this.notifyRequests(this.requestDependencies(e))),n}getRootType(e){let t=this.roots[e];if(!t)throw Error(`fate: Unknown root request '${e}'.`);return t.type}createRequestDescriptor(e){return dy(e,e=>this.getRootType(e))}getRequestKey(e){return this.createRequestDescriptor(e).key}missingForSelection(e,t,n){let r=new Map([...t].map(e=>[tv(e,n),e]));return new Set([...this.store.missingForSelection(e,r.keys())].map(e=>r.get(e)))}hasRootListData(e){if(this.rootValues.has(`list:${e.listKey}`))return!0;let t=this.store.getListState(e.listKey);if(!t)return!1;let n=ly(e.argsPayload);if(!n.hasCursorArg&&!ky(t,e.argsPayload,n.direction))return!1;for(let n of t.ids)if(this.missingForSelection(n,e.plan.paths,e.plan).size>0)return!1;return!0}async executeRequest(e,t={}){let n=t.fetchAll??!1,r=new Map,i=[],a=[],o=!0;for(let t of e.items)if(t.kind===`node`||t.kind===`nodes`){let e=t.plan.paths,i=[...e].slice().sort().join(`,`),s=[...t.plan.args.entries()].map(([e,t])=>`${e}:${t.hash}`).sort().join(`,`),c=`${t.type}#${i}|${s}`,l=r.get(c);l||(l={fields:e,ids:[],plan:t.plan,type:t.type},r.set(c,l));let u=[];for(let r of t.ids){let i=hv(t.type,r),a=this.missingForSelection(i,e,t.plan);(n||a.size>0)&&(l.ids.push(r),u.push(r))}u.length&&a.push({...t,ids:u}),o&&=u.length===t.ids.length}else{if(t.kind===`value`){n||!this.rootValues.has(t.queryKey)?(i.push(this.fetchValue(t)),a.push(t)):o=!1;continue}if(t.kind===`query`){let e=this.rootRequests.has(t.queryKey),r=this.rootRequests.get(t.queryKey),s=e&&r?this.missingForSelection(r,t.plan.paths,t.plan):t.plan.paths;n||!e||r&&s.size>0?(i.push(this.fetchQueryAndNormalize(t)),a.push(t)):o=!1}if(t.kind!==`list`)continue;if(!n&&!ly(t.argsPayload).hasCursorArg&&this.hasRootListData(t)){o=!1;continue}i.push(this.fetchListAndNormalize(t)),a.push(t)}await Promise.all([...i,...Array.from(r.values()).map(e=>e.ids.length?this.fetchByIdAndNormalize(e.type,e.ids,e.fields,e.plan):Promise.resolve())]);let s=this.persistenceRuntime;s&&(a.length&&s.fetched(o?e:{items:a,key:`partial:${JSON.stringify([e.key,a.map(e=>[e.name,`ids`in e?e.ids:null])])}`},t.persist),(!a.length||!o)&&s.used(e,t.persist))}hasRequestData(e){for(let t of e.items){if(t.kind===`node`||t.kind===`nodes`){let e=t.plan.paths;for(let n of t.ids){let r=hv(t.type,n);if(this.missingForSelection(r,e,t.plan).size>0)return!1}continue}if(t.kind===`query`){let e=this.rootRequests.has(t.queryKey),n=this.rootRequests.get(t.queryKey),r=e&&n?this.missingForSelection(n,t.plan.paths,t.plan):t.plan.paths;if(!e||n&&r.size>0)return!1;continue}if(t.kind===`value`){if(!this.rootValues.has(t.queryKey))return!1;continue}if(t.kind===`list`&&!this.hasRootListData(t))return!1}return!0}getRequestResult(e){return this.getRequestResultFromDescriptor(this.createRequestDescriptor(e))}getRequestResultFromDescriptor(e){let t=this.requestResults.get(e),n=t??{};for(let r of e.items){let e=this.getRequestItemResult(r);(!t||!Object.is(t[r.name],e))&&(n===t&&(n={...t}),n[r.name]=e)}return n!==t&&this.requestResults.set(e,n),n}getRequestItemResult(e){if(e.kind===`node`)return this.stableRefWithViewNames(e.type,e.ids[0],e.refViewNames);if(e.kind===`query`){let t=this.rootRequests.get(e.queryKey);return t?this.stableRefWithViewNames(e.type,P_(t).id,e.refViewNames):null}if(e.kind===`value`)return this.rootValues.get(e.queryKey);if(e.kind===`list`&&this.rootValues.has(`list:${e.listKey}`))return null;let t=e.kind===`list`?this.store.getListState(e.listKey):void 0,n=e.kind===`nodes`?e.ids:t,r=this.requestItemResults.get(e);if(r&&Object.is(r.source,n))return r.value;let i;if(e.kind===`nodes`)i=e.ids.map(t=>this.stableRefWithViewNames(e.type,t,e.refViewNames));else if(e.kind===`list`){let n=Gv(t),r=n.map(({id:t})=>{let{id:n,type:r}=P_(t);return this.stableRefWithViewNames(r,n,e.nodeRefViewNames)});if(e.hasItems){let a={items:r.map((e,t)=>({cursor:n[t]?.cursor,node:e})),pagination:t?.pagination},o={args:e.argsPayload,field:e.procedure,key:e.listKey,live:e.plan.live.get(``),owner:e.name,procedure:e.procedure,root:!0,type:e.type};Object.defineProperty(a,ug,{configurable:!1,enumerable:!1,value:o,writable:!1}),i=a}else i=r}return this.requestItemResults.set(e,{source:n,value:i}),i}async fetchByIdAndNormalize(e,t,n,r,i=null){let a=Vg(r),o=++this.writeGeneration;await this.trackPendingRequest(async()=>{let s=await this.transport.fetchById(e,t,n,a);this.assertPersistenceActive();for(let t of s)this.withWriteGeneration(o,()=>this.writeEntity(e,t,n,r,i))})}async fetchQueryAndNormalize(e){if(!this.transport.fetchQuery)throw Error(`fate: transport does not support queries. Please add support for 'fetchQuery' in your transport for '${e.name}'.`);let t=++this.writeGeneration;await this.trackPendingRequest(async()=>{let n=await this.transport.fetchQuery(e.procedure,e.plan.paths,e.argsPayload);if(this.assertPersistenceActive(),!n||typeof n!=`object`){this.acceptWrite(`root:${e.queryKey}`,t)&&this.rootRequests.set(e.queryKey,null);return}let r=this.withWriteGeneration(t,()=>this.writeEntity(e.type,n,e.plan.paths,e.plan));this.acceptWrite(`root:${e.queryKey}`,t)&&this.rootRequests.set(e.queryKey,r)})}async fetchValue(e){if(!this.transport.fetchQuery)throw Error(`fate: transport does not support value queries for '${e.name}'.`);let t=++this.writeGeneration;await this.trackPendingRequest(async()=>{let n=await this.transport.fetchQuery(e.procedure,e.plan.paths,e.argsPayload);this.assertPersistenceActive(),this.acceptWrite(`root:${e.queryKey}`,t)&&this.rootValues.set(e.queryKey,n)})}async fetchListAndNormalize(e){if(!this.transport.fetchList)throw Error(`fate: 'transport.fetchList' is not configured but request includes a list for key '${e.name}'.`);let t=++this.writeGeneration;await this.trackPendingRequest(async()=>{let n=await this.transport.fetchList(e.procedure,e.plan.paths,e.argsPayload);this.assertPersistenceActive();let r=this.acceptWrite(`list:${e.listKey}`,t);if(n===null){r&&this.rootValues.set(`list:${e.listKey}`,null);return}r&&this.rootValues.delete(`list:${e.listKey}`);let{items:i,pagination:a}=n;this.withWriteGeneration(t,()=>this.store.update(()=>{let t=[],n=[];for(let r of i){let i=this.writeEntity(e.type,r.node,e.plan.paths,e.plan);t.push(i),n.push(r.cursor)}if(!r)return;zg(e.argsPayload)||this.registerRootList(e.type,e.listKey);let o=this.store.getListState(e.listKey);this.store.setList(e.listKey,this.mergeListState(o,t,n,a,{...Ay(e.argsPayload),replace:!0}))}))})}normalizeEmbedded(e,t,n){return Array.isArray(e)?e.map(e=>this.normalizeEmbedded(e,t,n)):!wg(e)||![...t?.paths??[]].some(e=>e.startsWith(`${n}.`))?e:Object.fromEntries(Object.entries(e).map(([e,r])=>{let i=`${n}.${e}`;return[ev(i,t),this.normalizeEmbedded(r,t,i)]}))}writeEntity(e,t,n,r,i=null,a){return this.store.update(()=>{e=this.relatedEntityType(e,this.types.get(e)?.possibleTypes,t);let o=this.types.get(e);if(!o)throw Error(`fate: Found unknown entity type '${e}' in normalization.`);let s=o.getId(t),c=hv(e,s),l=this.applyingGeneration??++this.writeGeneration;if(!this.store.isRecordingOptimistic&&(this.writeVersions.get(JSON.stringify([c]))??0)>l)return c;let u={},d=Fy(n),f=Object.fromEntries(Object.keys(t).map(e=>[e,o.fields?.[bg(e)]]));if(o.fields)for(let[n,a]of Object.entries(f)){if(!a)continue;let o=t[n],s=i?`${i}.${n}`:n,f=r?.args.get(s),p=ev(s,r);if(!Object.hasOwn(t,n))continue;let m=this.acceptWrite(JSON.stringify([c,p]),l);if(a===`scalar`){if(!m)continue;u[p]=o}else if(a&&typeof a==`object`&&`type`in a){let t=d.get(n)??_y;if(o===null){m&&(u[p]=null);continue}if(o&&typeof o==`object`&&!Yg(o)){let i=this.relatedEntityType(a.type,a.possibleTypes,o),c=this.types.get(i);if(!c)throw Error(`fate: Unknown related type '${i}' (field '${e}.${n}').`);let l=hv(i,c.getId(o));m&&(u[p]=Jg(l)),this.writeEntity(i,o,t,r,s)}}else if(a&&typeof a==`object`&&`listOf`in a){let t=d.get(n)??_y;if(o===null){m&&(u[p]=null);continue}let i=a.listOf;if(!this.types.has(i))throw Error(`fate: Unknown related type '${i}' (field '${e}.${n}').`);let l=(()=>{if(Array.isArray(o))return{items:o.map(e=>({node:e}))};if(o&&typeof o==`object`){let e=o;if(Array.isArray(e.items))return{items:e.items.map(e=>{if(e&&typeof e==`object`&&`node`in e){let t=e;return{cursor:t.cursor,node:t.node}}return{node:e}}),pagination:e.pagination}}return null})();if(l){let o=[],d=[],h=t.size>0?new Set:t;if(t.size>0)for(let e of t){if(e.startsWith(`items.node.`)){h.add(e.slice(11));continue}if(e.startsWith(`node.`)){h.add(e.slice(5));continue}e===`items.node`||e.startsWith(`items.`)||h.add(e)}for(let t of l.items){let c=t.node,l=`cursor`in t?t.cursor:void 0;if(d.push(l),Yg(c)){o.push(Xg(c));continue}if(c&&typeof c==`object`){let t=this.relatedEntityType(i,a.possibleTypes,c),l=this.types.get(t);if(!l)throw Error(`fate: Unknown related type '${t}' (field '${e}.${n}').`);let u=hv(t,l.getId(c));this.writeEntity(t,c,h,r,s),o.push(u);continue}}if(!m)continue;let g=Mv(c,bg(n),f?.hash),_=this.store.getListState(g),v=f?.value,y=this.mergeListState(_,o,d,l.pagination,Ay(v)),b=!Ty(_,y);u[p]=Ey(y.ids,this.store.read(c)?.[p],{reuseCurrentArray:!b}),this.store.setList(g,y)}}else m&&(u[p]=this.normalizeEmbedded(o,r,s))}for(let[e,n]of Object.entries(t))if(!f[e]){let t=i?`${i}.${e}`:e,a=ev(t,r);this.acceptWrite(JSON.stringify([c,a]),l)&&(u[a]=n)}let p=[];for(let e of n){let n=tv(e,r,i??``),a=n.split(`.`)[0];(Object.hasOwn(u,a)||!Object.hasOwn(t,e.split(`.`)[0])&&this.acceptWrite(JSON.stringify([c,a]),l))&&p.push(n)}return this.viewDataCache.invalidate(c),this.withWriteGeneration(l,()=>this.store.merge(c,u,p)),this.linkParentLists(e,c,u,a??`after`),!i&&a&&this.insertIntoRootLists(e,c,a),c})}linkParentLists(e,t,n,r){if(r===`none`)return;let i=this.parentLists.get(e);if(i)for(let e of i){if(!e.via)continue;let i=n[e.via],a=Yg(i)?Xg(i):null;if(!a)continue;let o=this.store.read(a);if(!o)continue;let s=Array.isArray(o[e.field])?o[e.field]:[];if(s.some(e=>Yg(e)&&Xg(e)===t))continue;this.viewDataCache.invalidate(a);let c=Mv(a,e.field),l=this.store.getListState(c),u=s;if(l){let{list:e,pending:n}=this.applyListInsert(l,t,r);e!==l&&this.store.setList(c,e);let i=n?Gv(e).map(({id:e})=>e):e.ids;u=Ey(i,s)}else{let e=s.map(e=>Yg(e)?Xg(e):null).filter(e=>e!=null),n={ids:r===`before`?[t,...e]:[...e,t]};this.store.setList(c,n),u=Ey(n.ids,s)}let d=this.store.getListsForField(a,e.field).filter(([e])=>e!==c);for(let[e,n]of d){let i=this.applyListInsert(n,t,r).list;i!==n&&this.store.setList(e,i)}this.store.merge(a,{[e.field]:u},[e.field])}}readViewSelection(e,t,n,r,i=null){let a=this.store.read(n)||{id:n},o=new Set;o.add(n);let s=new Map,c=(e,i,a,l,u)=>{for(let[d,f]of Object.entries(e)){let e=yv(f);if(e===void 0){a[d]=void 0;continue}if(vg(e)){Sg(d,d);let{id:r,type:i}=P_(l),o=this.stableRefWithViewNames(i,l===n?t.id:r,lv(e.view));a[d]=this.cacheOnlyRefs.has(t)?this.cacheOnlyResult(o):o;continue}let p=yg(e)?e.selection:e,m=yg(e)?e.field:d,h=yg(e)?Sg(d,m):d;if(ng(d)){a[cg]||F_(a,new Set),ov(a[cg],d,e);continue}let g=u?`${u}.${h}`:h,_=ev(g,r);if(J_(p)){let{id:e,type:t}=P_(l);s.set(l,(s.get(l)??new Set).add(_)),a[d]=X_({field:m,id:e,owner:l,selection:Y_(p),type:t});continue}s.set(l,(s.get(l)??new Set).add(_));let v=typeof p;if(v===`boolean`&&p)a[d]=i[_];else if(p&&v===`object`){let e=p,{args:t,...s}=e;if(t&&typeof t==`object`&&Object.keys(s).length===0){a[d]=i[_];continue}d in a||(a[d]={});let u=Object.keys(s).length?s:e,f=i[_];if(f==null){a[d]=null;continue}if(Array.isArray(f)){if(u.items&&typeof u.items==`object`){let e=u.items,t=r.args.get(g),n=Mv(l,m,t?.hash),i=this.store.getListState(n),s={items:(i?Gv(i):f.map(e=>({cursor:void 0,id:Yg(e)?Xg(e):null}))).map((t,n)=>{let r=t.id;if(!r)return{cursor:i?.cursors?.[n],node:null};o.add(r);let a=this.store.read(r),{id:s,type:l}=P_(r),u={__typename:l,id:s};a&&c(e.node,a,u,r,g);let d={node:a?u:null};return e.cursor===!0&&(d.cursor=t.cursor),d})};if(`pagination`in u&&u.pagination){let e=u.pagination,t=i?.pagination;if(t){let n={};e.nextCursor===!0&&t.nextCursor!==void 0&&(n.nextCursor=t.nextCursor),e.previousCursor===!0&&t.previousCursor!==void 0&&(n.previousCursor=t.previousCursor),e.hasNext===!0&&(n.hasNext=t.hasNext),e.hasPrevious===!0&&(n.hasPrevious=t.hasPrevious),Object.keys(n).length>0&&(s.pagination=n)}else s.pagination=void 0}let{type:p}=P_(l);if(p){let e=this.getListNodeType(p,m),i={args:t?.value?{...t.value}:void 0,field:m,hash:t?.hash,key:n,live:r.live.get(g),owner:l,procedure:`${p}.${m}`,root:!1,type:e};Object.defineProperty(s,ug,{configurable:!1,enumerable:!1,value:i,writable:!1})}a[d]=s}else a[d]=f.map(e=>{let t=Yg(e)?Xg(e):null;if(!t)return e;o.add(t);let n=this.store.read(t),{id:r,type:i}=P_(t);if(n){let e={__typename:i,id:r};return c(u,n,e,t,g),e}return null})}else if(Yg(f)){let e=Xg(f);o.add(e);let t=this.store.read(e),{id:n,type:r}=P_(e),i=a[d];i.id=n,i.__typename=r,t&&c(u,t,i,e,g)}else c(u,f,a[d],n,g)}}},l={__typename:P_(n).type},u=cv(e,t);if(u.length===0&&wg(e))c(e,a,l,n,i);else for(let e of u)c(e.select,a,l,n,i);return{coverage:[...s.entries()],data:l}}clearStalledRequestsForEntity(e){let t=this.pendingPrefix(e);for(let e of this.stalledRequests)e.startsWith(t)&&this.stalledRequests.delete(e)}pendingPrefix(e){return`__fate__|${e}|`}pendingKey(e,t){return`${this.pendingPrefix(e)}${[...t].sort().join(`|`)}`}deferredPendingKey(e,t,n,r){let i=[...n.args.entries()].map(([e,t])=>`${e}:${t.hash}`).sort().join(`|`);return`${this.pendingKey(e,new Set(t))}|${i}|${r}`}deferredSelectionSignature(e){let t=new Set,n=e=>typeof e!=`object`||!e?`${typeof e}:${String(e)}`:t.has(e)?`[Circular]`:(t.add(e),Array.isArray(e)?`[${e.map(e=>n(e)).join(`,`)}]`:`{${Object.entries(e).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>ng(e)?`view:${e}`:`${e}:${n(t)}`).join(`,`)}}`);return n(e)}hasMissingDeferredList(e,t,n,r){let i=this.types.get(t)?.fields?.[n];if(!i||i===`scalar`||!(`listOf`in i))return!1;let a=r.args.get(n),o=this.store.getListState(Mv(e,n,a?.hash));if(!o)return!0;let s=a?.value,c=ly(s);return c.hasCursorArg?!0:!ky(o,s,c.direction)}liveSubscriptionKey(e,t){return`${e}|${[...t.paths].sort().join(`|`)}|${[...t.args.entries()].map(([e,t])=>`${e}:${t.hash}`).sort().join(`|`)}`}liveConnectionSubscriptionKey(e,t,n){let r=[...t.paths].sort().join(`|`),i=[...t.args.entries()].map(([e,t])=>`${e}:${t.hash}`).sort().join(`|`);return`connection|${e.procedure}|${e.type}|${Rg(n??{})}|${r}|${i}`}releaseLiveSubscription(e){let t=this.liveSubscriptions.get(e);t&&(t.count<=0||(--t.count,!(t.count>0)&&(t.releaseScheduled=!0,queueMicrotask(()=>{let t=this.liveSubscriptions.get(e);!t||!t.releaseScheduled||t.count>0||(t.unsubscribe(),this.liveSubscriptions.delete(e))}))))}reportLiveError(e){let t=this.onLiveError;t&&queueMicrotask(()=>{t(e)})}},Ly=(e,t)=>{e.handlers.onError?.(t)},Ry=(e,t,n)=>{if(n){e.onData(t,n);return}e.onData(t)},zy=e=>new E_(e.error.code,e.error.message,{issues:e.error.issues}),By=(e,t)=>e===t||e.startsWith(`${t}.`)||t.startsWith(`${e}.`),Vy=(e,t)=>{if(!t)return null;let n=t.filter(e=>e.length>0);if(n.length===0)return[];let r=e.filter(e=>n.some(t=>By(e,t)));if(r.length===0)return[];let i=new Set(r);i.add(`id`);for(let t of e){if(!t.endsWith(`.id`))continue;let e=t.slice(0,-3);r.some(t=>By(t,e))&&i.add(t)}return[...i]},Hy=(e,t)=>{if(t.length===0)return!0;if(Array.isArray(e))return e.every(e=>Hy(e,t));if(!wg(e))return!1;let[n,...r]=t;return n in e&&Hy(e[n],r)},Uy=(e,t)=>{if(!wg(e))return!1;for(let n of t)if(!Hy(e,n.split(`.`)))return!1;return!0},Wy=(e,t)=>globalThis.fetch(e,t),Gy=async e=>typeof e==`function`?await e():e??{},Ky=async(e,t)=>{let n=new Headers(e);return new Headers(await Gy(t)).forEach((e,t)=>{n.set(t,e)}),n},qy=e=>String(e).replace(/\/$/,``),Jy=e=>`${qy(e)}/live`,Yy=async e=>{let t=e.statusText||`HTTP ${e.status}`;try{let n=await e.clone().json();wg(n)&&Array.isArray(n.results)&&wg(n.results[0])&&wg(n.results[0].error)&&typeof n.results[0].error.message==`string`&&(t=n.results[0].error.message)}catch{try{let n=await e.text();n&&(t=n)}catch{}}return new E_(O_(e.status),t,{status:e.status})},Xy=e=>{if(!wg(e)||e.version!==1&&e.version!==2||!Array.isArray(e.results)||e.results.some(e=>!wg(e)||typeof e.id!=`string`))throw Error(`fate(http): Invalid protocol response.`);return e},Zy=e=>{if(e.ok)return e.data;throw new E_(e.error.code,e.error.message,{issues:e.error.issues})}})),$y=o((()=>{Kv()}));function eb({children:e,client:t}){return(0,ob.jsx)(sb,{value:t,children:e})}function tb(){let e=(0,ab.use)(sb);if(!e)throw Error(`react-fate: '<FateClient client={fate}>' is missing.`);return e}function nb(e,t){let n=tb(),r=Z_(t),i=(0,ab.useRef)(null),a=(0,ab.useRef)(null),o=(0,ab.useCallback)((t,r=[],a)=>{let o=n.readView(e,t),s=e=>({...e,coverage:r.length?[...r,...e.coverage]:e.coverage});if(cb(o)){if(r.length){let e=i.current,n=`${t.__typename}:${String(t.id)}`;if(e?.source===o.value&&e.cacheKey===a&&e.resolvedKey===n)return e.thenable;let r=s(o.value),c=lb(r);return i.current={cacheKey:a,resolvedKey:n,source:o.value,thenable:c},c}return i.current=null,o}return i.current=null,r.length?Promise.resolve(o).then(s):o},[n,e]),s=(0,ab.useCallback)(()=>{if(t==null)return t===void 0?ub:db;if(!r)return a.current=null,o(t);let i=t,s=n.readDeferred(i);if(cb(s)){let t=s.value.data;return a.current=null,t===null?lb({coverage:s.value.coverage,data:null}):o(n.ref(t.__typename,t.id,sv(e,t)),s.value.coverage,i)}if(a.current?.deferred===t&&a.current.snapshot===s)return a.current.viewSnapshot;let c=Promise.resolve(s).then(t=>{let r=t.data;return r===null?{coverage:t.coverage,data:null}:o(n.ref(r.__typename,r.id,sv(e,r)),t.coverage,i)});return a.current={deferred:i,snapshot:s,viewSnapshot:c},c},[n,e,t,r,o]),c=(0,ab.useCallback)(e=>{if(t==null)return()=>{};let r=new Map,i=!1,a=null,o=()=>{try{u()}catch{}e()},c=(e,t)=>{r.has(e)||r.set(e,n.store.subscribe(e,t,o))},l=e=>{for(let[t,n]of r)e.has(t)||(n(),r.delete(t))},u=()=>{let t=s();if(!cb(t)){a!==t&&(a=t,Promise.resolve(t).then(()=>{!i&&a===t&&o()},()=>{!i&&a===t&&e()}));return}if(a=null,t.value){for(let[e,n]of t.value.coverage)c(e,n);l(new Set(t.value.coverage.map(([e])=>e)))}};return u(),()=>{i=!0;for(let e of r.values())e();r.clear()}},[n.store,s,t]),l=(0,ab.use)((0,ab.useDeferredValue)((0,ab.useSyncExternalStore)(c,s,s)));return l&&l.data}function rb(e,t){let n=tb(),r=Z_(t)?(0,ab.use)(n.readDeferred(t)).data:t,{metadata:i,nodeView:a}=mb(e,r),o=(0,ab.useCallback)(e=>i?n.store.subscribeList(i.key,e):()=>{},[n,i]),s=(0,ab.useCallback)(()=>i?n.store.getListState(i.key):void 0,[n,i]),c=(0,ab.useDeferredValue)((0,ab.useSyncExternalStore)(o,s,s)),l=c?.pagination??r?.pagination,u=!!l?.hasNext,d=!!l?.hasPrevious,f=l?.nextCursor,p=l?.previousCursor;return[(0,ab.useMemo)(()=>i&&c?Gv(c).map(({cursor:e,id:t})=>({cursor:e,node:n.rootListRef(t,a)})):r?.items,[n,r?.items,c,i,a]),(0,ab.useMemo)(()=>!i||!u||!f?null:async()=>{let{before:e,first:t,last:r,...o}=i.args||{},s=t??r;await n.loadConnection(a,i,{...o,after:f,before:void 0,...s===void 0?null:{first:s},last:void 0},{direction:`forward`})},[n,u,a,i,f]),(0,ab.useMemo)(()=>!i||!d||!p?null:async()=>{let{after:e,first:t,last:r,...o}=i.args||{},s=r??t;await n.loadConnection(a,i,{...o,after:void 0,before:p,first:void 0,...s===void 0?null:{last:s}},{direction:`backward`})},[n,d,a,i,p])]}function ib(e,t){let n=tb(),r=t?.mode??`cache-first`,{promise:i,requestKey:a}=n.prepareRequestForRender(e,t);return(0,ab.useEffect)(()=>{let e=n.retainRequestKey(a,r);return()=>{e.dispose(),(r===`network-only`||r===`stale-while-revalidate`)&&n.releaseRequestKey(a,r)}},[n,r,a]),(0,ab.use)((0,ab.useDeferredValue)(i))}var ab,ob,sb,cb,lb,ub,db,fb,pb,mb,hb=o((()=>{Qy(),ab=u(f(),1),ob=G(),$y(),sb=(0,ab.createContext)(null),cb=e=>`status`in e&&e.status===`fulfilled`&&`value`in e,lb=e=>({status:`fulfilled`,then(t,n){return Promise.resolve(e).then(t,n)},value:e}),ub=lb(void 0),db={status:`fulfilled`,then(e,t){return Promise.resolve(null).then(e,t)},value:null},fb=e=>{let t=e.items?.node;if(t&&typeof t==`object`){for(let e of Object.keys(t))if(ng(e))return t}return e},pb=e=>e&&typeof e==`object`?e[ug]:null,mb=(e,t)=>({metadata:pb(t),nodeView:(0,ab.useMemo)(()=>fb(e),[e])})})),gb,_b,vb,yb,bb=o((()=>{hb(),gb={},_b={adminAuthEdit:ty(`AdminAuthEdit`),adminAuthNew:ty(`AdminAuthNew`),adminAuthSettings:ty(`AdminAuthSettings`),adminBuildDetail:ty(`AdminBuildDetail`),adminBuildLogs:ty(`AdminBuildLogs`),adminBuildStatus:ty(`AdminBuildStatus`),adminCliVersions:ty(`AdminCliVersions`),adminDashboard:ty(`AdminDashboard`),adminDeploymentDetail:ty(`AdminDeploymentDetail`),adminDeploymentLogs:ty(`AdminDeploymentLogs`),adminDeploymentsPage:ty(`AdminDeploymentsPage`),adminEmailProject:ty(`AdminEmailProject`),adminEmailSettings:ty(`AdminEmailSettings`),adminHealth:ty(`AdminHealth`),adminInvitations:ty(`AdminInvitations`),adminPlans:ty(`AdminPlans`),adminProjectDetail:ty(`AdminProjectDetail`),adminProjectsPage:ty(`AdminProjectsPage`),adminSignup:ty(`AdminSignup`),adminTopProject:ty(`AdminTopProject`),adminUserDetail:ty(`AdminUserDetail`),adminUsersPage:ty(`AdminUsersPage`),adminZeroTrust:ty(`AdminZeroTrust`),authEdit:ty(`AdminAuthEdit`),authNew:ty(`AdminAuthNew`),authSettings:ty(`AdminAuthSettings`),buildDetail:ty(`AdminBuildDetail`),buildLogs:ty(`AdminBuildLogs`),buildStatus:ty(`AdminBuildStatus`),cliVersions:ty(`AdminCliVersions`),dashboard:ty(`AdminDashboard`),deploymentDetail:ty(`AdminDeploymentDetail`),deploymentLogs:ty(`AdminDeploymentLogs`),deploymentsPage:ty(`AdminDeploymentsPage`),emailProject:ty(`AdminEmailProject`),emailSettings:ty(`AdminEmailSettings`),health:ty(`AdminHealth`),invitations:ty(`AdminInvitations`),plans:ty(`AdminPlans`),projectDetail:ty(`AdminProjectDetail`),projectsPage:ty(`AdminProjectsPage`),signupControl:ty(`AdminSignup`),userDetail:ty(`AdminUserDetail`),usersPage:ty(`AdminUsersPage`),zeroTrust:ty(`AdminZeroTrust`)},vb=`{"moduleName":"./server.ts","roots":{"authEdit":{"kind":"query","procedure":"authEdit","router":"adminAuthEdit","type":"AdminAuthEdit"},"authNew":{"kind":"query","procedure":"authNew","router":"adminAuthNew","type":"AdminAuthNew"},"authSettings":{"kind":"query","procedure":"authSettings","router":"adminAuthSettings","type":"AdminAuthSettings"},"buildDetail":{"kind":"query","procedure":"buildDetail","router":"adminBuildDetail","type":"AdminBuildDetail"},"buildLogs":{"kind":"query","procedure":"buildLogs","router":"adminBuildLogs","type":"AdminBuildLogs"},"buildStatus":{"kind":"query","procedure":"buildStatus","router":"adminBuildStatus","type":"AdminBuildStatus"},"cliVersions":{"kind":"query","procedure":"cliVersions","router":"adminCliVersions","type":"AdminCliVersions"},"dashboard":{"kind":"query","procedure":"dashboard","router":"adminDashboard","type":"AdminDashboard"},"deploymentDetail":{"kind":"query","procedure":"deploymentDetail","router":"adminDeploymentDetail","type":"AdminDeploymentDetail"},"deploymentLogs":{"kind":"query","procedure":"deploymentLogs","router":"adminDeploymentLogs","type":"AdminDeploymentLogs"},"deploymentsPage":{"kind":"query","procedure":"deploymentsPage","router":"adminDeploymentsPage","type":"AdminDeploymentsPage"},"emailProject":{"kind":"query","procedure":"emailProject","router":"adminEmailProject","type":"AdminEmailProject"},"emailSettings":{"kind":"query","procedure":"emailSettings","router":"adminEmailSettings","type":"AdminEmailSettings"},"health":{"kind":"query","procedure":"health","router":"adminHealth","type":"AdminHealth"},"invitations":{"kind":"query","procedure":"invitations","router":"adminInvitations","type":"AdminInvitations"},"plans":{"kind":"query","procedure":"plans","router":"adminPlans","type":"AdminPlans"},"projectDetail":{"kind":"query","procedure":"projectDetail","router":"adminProjectDetail","type":"AdminProjectDetail"},"projectsPage":{"kind":"query","procedure":"projectsPage","router":"adminProjectsPage","type":"AdminProjectsPage"},"signupControl":{"kind":"query","procedure":"signupControl","router":"adminSignup","type":"AdminSignup"},"userDetail":{"kind":"query","procedure":"userDetail","router":"adminUserDetail","type":"AdminUserDetail"},"usersPage":{"kind":"query","procedure":"usersPage","router":"adminUsersPage","type":"AdminUsersPage"},"zeroTrust":{"kind":"query","procedure":"zeroTrust","router":"adminZeroTrust","type":"AdminZeroTrust"}},"types":[{"type":"AdminAuthEdit"},{"type":"AdminAuthNew"},{"type":"AdminAuthSettings"},{"type":"AdminBuildDetail"},{"type":"AdminBuildLogs"},{"type":"AdminBuildStatus"},{"type":"AdminCliVersions"},{"fields":{"topProjects":{"listOf":"AdminTopProject"}},"type":"AdminDashboard"},{"type":"AdminDeploymentDetail"},{"type":"AdminDeploymentLogs"},{"type":"AdminDeploymentsPage"},{"type":"AdminEmailProject"},{"type":"AdminEmailSettings"},{"type":"AdminHealth"},{"type":"AdminInvitations"},{"type":"AdminPlans"},{"type":"AdminProjectDetail"},{"type":"AdminProjectsPage"},{"type":"AdminSignup"},{"type":"AdminTopProject"},{"type":"AdminUserDetail"},{"type":"AdminUsersPage"},{"type":"AdminZeroTrust"}]}`,yb=e=>$v({hydrationScope:vb,mutations:gb,onLiveError:e.onLiveError,persistence:e.persistence,roots:_b,transport:ey({fetch:e.fetch,headers:e.headers,live:!1,liveRetryMs:e.liveRetryMs,liveUrl:e.liveUrl,url:e.url}),types:[{type:`AdminHealth`},{type:`AdminTopProject`},{fields:{topProjects:{listOf:`AdminTopProject`}},type:`AdminDashboard`},{type:`AdminPlans`},{type:`AdminUsersPage`},{type:`AdminProjectsPage`},{type:`AdminDeploymentsPage`},{type:`AdminUserDetail`},{type:`AdminProjectDetail`},{type:`AdminDeploymentDetail`},{type:`AdminBuildDetail`},{type:`AdminCliVersions`},{type:`AdminSignup`},{type:`AdminInvitations`},{type:`AdminAuthSettings`},{type:`AdminAuthNew`},{type:`AdminAuthEdit`},{type:`AdminEmailSettings`},{type:`AdminEmailProject`},{type:`AdminZeroTrust`},{type:`AdminBuildLogs`},{type:`AdminBuildStatus`},{type:`AdminDeploymentLogs`}]})})),xb,Sb,Cb=o((()=>{xb=`<svg role="img" aria-label="Void" viewBox="0 0 270 58" fill="none" xmlns="http://www.w3.org/2000/svg">
58
58
  <circle cx="262" cy="48.96" r="8" fill="currentColor"/>
59
59
  <path d="M20.72 0.959999L35.52 41.28L50.08 0.959999H70L47.92 56.96H22.32L0.24 0.959999H20.72ZM106.542 57.92C82.9419 57.92 70.6219 48 70.6219 28.96C70.6219 9.92 82.9419 1.90735e-06 106.542 1.90735e-06C130.142 1.90735e-06 142.542 9.92 142.542 28.96C142.542 48 130.142 57.92 106.542 57.92ZM106.542 44.08C117.662 44.08 122.862 39.36 122.862 28.96C122.862 18.48 117.662 13.76 106.542 13.76C95.4219 13.76 90.2219 18.48 90.2219 28.96C90.2219 39.36 95.4219 44.08 106.542 44.08ZM152.265 56.96V0.959999H171.465V56.96H152.265ZM184.687 56.96V0.959999H219.887C239.327 0.959999 250.447 9.84 250.447 28.96C250.447 48.16 239.247 56.96 219.807 56.96H184.687ZM230.767 28.96C230.767 18.48 226.287 14.56 217.167 14.56H203.887V43.36H217.167C226.287 43.36 230.767 39.44 230.767 28.96Z" fill="currentColor"/>
60
- </svg>`,Cb=`
60
+ </svg>`,Sb=`
61
61
  :root { color-scheme: light dark; }
62
62
  html[data-theme="light"] { color-scheme: light; }
63
63
  html[data-theme="dark"] { color-scheme: dark; }
@@ -115,8 +115,8 @@ html[data-theme="dark"] { color-scheme: dark; }
115
115
  .void-auth-page .void-auth-status-success { color: var(--auth-success); background: var(--auth-success-bg); }
116
116
  .void-auth-page .void-auth-status-error { color: var(--auth-error); background: var(--auth-error-bg); }
117
117
  @media (max-width: 500px) { .void-auth-page h1 { font-size: 24px; } }
118
- `}));function Tb(e){let t={};for(let n of e.split(`;`)){let e=n.indexOf(`:`);if(e===-1)continue;let r=n.slice(0,e).trim().replace(/-([a-z])/g,(e,t)=>t.toUpperCase());r&&(t[r]=n.slice(e+1).trim())}return t}function Eb(e,t){if(typeof e!=`string`)return t;let n={...t};typeof n.style==`string`&&(n.style=Tb(n.style)),`class`in n&&(n.className=n.class,delete n.class);for(let[e,t]of[[`readonly`,`readOnly`],[`colspan`,`colSpan`],[`rowspan`,`rowSpan`],[`maxlength`,`maxLength`],[`autocomplete`,`autoComplete`]])e in n&&(n[t]=n[e],delete n[e]);return(e===`input`||e===`textarea`||e===`select`)&&(`value`in n&&!(`onChange`in n)&&(n.defaultValue=n.value,delete n.value),`checked`in n&&!(`onChange`in n)&&(n.defaultChecked=n.checked,delete n.checked)),n}function Db(e,t){let n=Eb(e,t);return e===`a`&&typeof n.href==`string`&&n.href.startsWith(`/admin/`)&&n.href!==`/admin/logout`&&!n.href.startsWith(`/admin/login`)?{type:Xa,props:n}:{type:e,props:n}}function q(e,t,n){let r=Db(e,t);return(0,Ob.jsx)(r.type,r.props,n)}function J(e,t,n){let r=Db(e,t);return(0,Ob.jsxs)(r.type,r.props,n)}var Ob,kb=o((()=>{po(),Ob=G()}));function Ab({platformName:e,children:t}){return J(`main`,{className:`void-auth-page`,children:[q(`style`,{children:Cb}),J(`div`,{className:`void-auth-container`,children:[J(`div`,{className:`void-auth-brand`,children:[q(`span`,{className:`void-auth-logo`,dangerouslySetInnerHTML:{__html:Sb}}),q(`span`,{className:`void-auth-divider`,"aria-hidden":`true`}),q(`span`,{children:e})]}),q(`section`,{className:`void-auth-card`,"aria-labelledby":`void-auth-title`,children:t})]})]})}var jb=o((()=>{wb(),kb()})),Mb=c({AdminErrorPage:()=>Nb});function Nb({message:e,status:t,platformName:n}){return J(Ab,{platformName:n,children:[q(`div`,{className:`void-auth-status void-auth-status-error`,"aria-label":`Error`,children:`!`}),J(`div`,{className:`void-auth-lead`,children:[q(`h1`,{id:`void-auth-title`,children:t===401?`Sign in again`:`Unable to continue`}),q(`p`,{children:e})]}),q(`a`,{className:`void-auth-button void-auth-button-primary`,href:t===401?`/admin/logout`:`/admin/`,children:t===401?`Sign in again`:`Refresh dashboard`})]})}var Pb=o((()=>{jb(),kb()}));function Fb(e){return e instanceof Error&&e.name===`FateRequestError`&&`status`in e&&typeof e.status==`number`}var Ib,Lb,Rb=o((()=>{Ib=u(f(),1),Pb(),kb(),Lb=class extends Ib.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}render(){let{error:e}=this.state;if(e){let t=Fb(e)?e.status:500;return q(Nb,{message:Fb(e)?e.message:`The admin page could not be loaded.`,status:t,platformName:this.props.platformName})}return this.props.children}}})),zb=c({AdminProviders:()=>Vb,AdminUiProviders:()=>Bb});function Bb({children:e}){return q(Vf,{theme:eg,children:q(Pf,{component:Xa,children:e})})}function Vb({children:e}){let t=io(),n=t.adminFateSession??`guest`;return q(Bb,{children:q(tb,{client:(0,Hb.useMemo)(()=>{let e=bb({url:typeof window>`u`?`http://localhost/admin/fate`:`/admin/fate`,fetch:(e,t)=>fetch(e,{...t,credentials:`same-origin`}).then(e=>{if(e.redirected&&new URL(e.url).pathname===`/admin/login`)throw window.location.assign(`/admin/login`),Error(`Administrator session expired.`);return e})});return t.adminFateSnapshot&&e.hydrate(t.adminFateSnapshot),e},[n]),children:q(Lb,{platformName:t.platformName??`Void Platform`,children:e},t.adminPageUrl)},n)})}var Hb,Ub=o((()=>{Rf(),Yf(),tg(),po(),Hb=u(f(),1),gb(),xb(),Rb(),kb()}));function Wb(){if(typeof CSS<`u`&&typeof CSS.registerProperty==`function`)for(let e of Qb)try{CSS.registerProperty({name:e,syntax:`<length>`,inherits:!0,initialValue:`0px`})}catch{}}function Gb(){tx=!1;let e=[];for(let t of ex)e.push(...t.getAnimations({subtree:!0}));ex.clear();for(let t of e)t.startTime=0}function Kb(e){if(e!=null&&typeof e.getAnimations==`function`)return ex.add(e),tx||(tx=!0,requestAnimationFrame(Gb)),()=>{ex.delete(e)}}function qb({size:e=`md`,shade:t=`default`,label:n,xstyle:r,className:i,style:a,"aria-label":o,"data-testid":s,ref:c,...l}){let{border:u,diameter:d}=Zb[e],f=d+u*2,p=Math.PI*d,m=p*Xb,h=n!=null,g=(0,Jb.useId)(),_=xf(),v=h&&typeof n==`string`&&o==null,y=o??(typeof n==`string`?n:void 0)??_(`@astryx.spinner.loading`),b=(0,Yb.jsx)(`span`,{ref:h?void 0:c,role:`status`,"aria-label":v?void 0:y,"aria-labelledby":v?g:void 0,"data-testid":h?void 0:s,...h?{}:l,...U(h?``:V(`spinner`,{size:e,shade:t}),z(nx.spinner,!h&&rx[e],!h&&ix[t],!h&&r),h?void 0:i,{...h?{}:a,width:`var(${$b}, ${f}px)`,height:`var(${$b}, ${f}px)`}),children:(0,Yb.jsxs)(`svg`,{ref:Kb,width:f,height:f,"aria-hidden":`true`,className:`xlp1x4z x1lliihq x6v0vjy x7yyq19 x1rea2x4`,children:[(0,Yb.jsx)(`circle`,{cx:`50%`,cy:`50%`,r:d/2,strokeWidth:u,...z(nx.circle,nx.track,ax[t])}),(0,Yb.jsx)(`circle`,{cx:`50%`,cy:`50%`,r:d/2,strokeWidth:u,strokeDasharray:`${m} ${p-m}`,className:`xbh8q5q x1764fhq x1g0ag68 x1owpc8m xio8zfp xgw3ha0 x14qxm4i xnh0sag xa4qsjk x1nlxm0d x1esw782 xtve3lm x9tu13d xdv9ggb`})]})});return h?(0,Yb.jsxs)(`div`,{ref:c,"data-testid":s,...l,...U(V(`spinner`,{size:e,shade:t}),z(nx.wrapper,rx[e],ix[t],r),i,a),children:[b,typeof n==`string`?(0,Yb.jsx)(Na,{id:g,type:`body`,weight:`bold`,children:n}):n]}):b}var Jb,Yb,Xb,Zb,Qb,$b,ex,tx,nx,rx,ix,ax,ox=o((()=>{Jb=u(f(),1),B(),Ra(),W(),Df(),H(),Yb=G(),Xb=.375,Zb={sm:{diameter:10,border:2},md:{diameter:14,border:3},lg:{diameter:18,border:3},xl:{diameter:28,border:4}},Qb=[`--_spinner-ring-diameter`,`--_spinner-ring-stroke`],$b=`--_spinner-box-size`,Wb(),ex=new Set,tx=!1,nx={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}},rx={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}},ix={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}},ax={default:{kDd8S0:`x1g350g8`,$$css:!0},subtle:{kDd8S0:`x1g350g8`,$$css:!0},onMedia:{kDd8S0:`x1smxkh6`,$$css:!0},inherit:{kDd8S0:`x7bo2k`,$$css:!0}},qb.displayName=`Spinner`})),sx=o((()=>{ox()})),cx,lx,ux,dx=o((()=>{cx=`data-astryx-edge-comp`,lx={keTefX:`x1kftj4p`,k71WvV:`x92e2el`,$$css:!0},ux={inset:e=>[lx,{"--x-126w13d":(e=>typeof e==`number`?e+`px`:e??void 0)(`calc(-1 * ${e})`),"--x-4drmnv":(e=>typeof e==`number`?e+`px`:e??void 0)(`calc(-1 * ${e})`)}]}}));function fx(e,t=`md`){let n=(0,px.use)(mx);return e??n??t}var px,mx,hx,gx=o((()=>{px=u(f(),1),Ar(),mx=Tr(null),mx.displayName=`SizeContext`,hx=mx.Provider}));function _x(){return(0,vx.use)(yx)}var vx,yx,bx=o((()=>{vx=u(f(),1),Ar(),yx=Tr(null),yx.displayName=`ButtonGroupContext`}));function Y({label:e,variant:t=`secondary`,size:n,type:r=`button`,isDisabled:i=!1,isLoading:a=!1,isInterruptible:o=!1,clickAction:s,icon:c,isIconOnly:l=!1,width:u,elevation:d=`none`,children:f,endContent:p,tooltip:m,href:h,as:g,target:_,rel:v,xstyle:y,className:b,style:x,ref:S,...C}){let w=xf(),T=fx(n,`md`),E=_x(),[D,O]=(0,xx.useTransition)(),k=(0,xx.useRef)(!1),A=a||D,j=D||o,M=E?.isDisabled??!1,N=i||M||A&&!o,ee=i||M,P=Tu(g),te=h!=null&&!N,F=m!=null&&N,ne=va({placement:`above`,isEnabled:m!=null}),I=e=>{if(N||k.current&&!o){e.preventDefault();return}C.onClick?.(e),s&&!e.defaultPrevented&&(k.current=!0,O(async()=>{try{await s(e)}finally{k.current=!1}}))},re=F?e=>{e.key===`Enter`||e.key===` `?e.preventDefault():C.onKeyDown?.(e)}:void 0,ie=t===`ghost`?{[cx]:``}:null,ae=Rn.focusVisible(Cx.base,Tx[T],l&&Cx.iconOnly,Lu.backgroundImage,N&&Cx.inactive,ee&&Cx.disabled,F&&Cx.ariaDisabled,te&&Cx.link,!E&&Cx.pressable,E&&(E.orientation===`horizontal`?Ax.horizontal:Ax.vertical),E&&(t===`primary`||t===`destructive`)&&(E.orientation===`horizontal`?Ax.onSolidHorizontal:Ax.onSolidVertical),!E&&Ex[d],u!=null&&wx.width(u),Dx[t],y),oe=U(V(`button`,{variant:t,size:T,elevation:E?`none`:d}),ae,b,x),se=Ox[T],ce=(0,Sx.jsxs)(Sx.Fragment,{children:[A&&(0,Sx.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`}}[!!j<<0],"aria-hidden":`true`,children:(0,Sx.jsx)(qb,{size:`sm`,shade:`inherit`})}),(0,Sx.jsxs)(`span`,{...z(Cx.contentWrapper,A&&(j?kx.hiddenContentDelayed:kx.hiddenContent)),"aria-hidden":A||void 0,children:[c&&(0,Sx.jsx)(`span`,{...z(Cx.iconWrapper,eu[se]),children:(0,Sx.jsx)(Zl,{value:se,children:c})}),l?null:(0,Sx.jsx)(`span`,{className:`xb3r6kr xlyipyv xeuugli`,children:f??e}),!l&&p&&(0,Sx.jsx)(`span`,{className:`x3nfvp2 x6s0dn4 x1heor9g`,children:p})]}),(0,Sx.jsx)(fu,{role:`status`,"aria-live":`polite`,children:A?w(`@astryx.button.loading`):``})]}),le=l&&e!==``||A&&!l||f!=null&&f!==e?{"aria-label":e}:null,ue=m==null?null:{"aria-describedby":[C[`aria-describedby`],ne.describedBy].filter(Boolean).join(` `)||void 0},de=yr(S,m==null?void 0:ne.ref),fe;return fe=te?(0,Sx.jsx)(P,{ref:de,href:h,target:_,rel:v,...oe,...C,...le,...ue,...ie,"aria-busy":A||void 0,onClick:I,children:ce}):(0,Sx.jsx)(`button`,{ref:de,type:r,disabled:F?void 0:N,...oe,...C,...le,...ue,...ie,"aria-busy":A||void 0,"aria-disabled":F||void 0,onClick:I,...re?{onKeyDown:re}:null,children:ce}),m?(0,Sx.jsxs)(Sx.Fragment,{children:[fe,ne.renderTooltip(m)]}):fe}var xx,Sx,Cx,wx,Tx,Ex,Dx,Ox,kx,Ax,jx=o((()=>{xx=u(f(),1),B(),Ca(),Et(),sx(),hu(),Ql(),tu(),dx(),gx(),bx(),W(),xr(),Du(),H(),zn(),Ru(),Df(),Sx=G(),Cx={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`,$$css:!0},inactive:{kkrTdU:`xt0e3qv`,kKwaWg:`x18o3ruo`,k3aq6I:`x1c071of x1pdlv7q`,$$css:!0},disabled:{kSiTet:`xbyyjgo`,$$css:!0},ariaDisabled:{kKwaWg:`x18o3ruo xuqm82a`,$$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}},wx={width:e=>[{kzqmXN:e==null?e:`x5lhr3w`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]},Tx={sm:{kZKoxP:`x6k0iem`,$$css:!0},md:{kZKoxP:`x1ueg155`,$$css:!0},lg:{kZKoxP:`xssyfek`,$$css:!0}},Ex={none:{kGVxlE:`x1gnnqk1`,$$css:!0},low:{kGVxlE:`x1i5ehqx`,$$css:!0},med:{kGVxlE:`x14hfi27`,$$css:!0},high:{kGVxlE:`x1kcpxr7`,$$css:!0}},Dx={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}},Ox={sm:`sm`,md:`sm`,lg:`md`},wt[`--duration-medium-min`],kx={hiddenContent:{kMwMTN:`x19co3pv`,$$css:!0},hiddenContentDelayed:{kKVMdj:`x1ffowhz`,k44tkh:`xjlvqhv`,kWV6AL:`x10e4vud`,kKxzle:`x17yabm6 x14q22ui`,$$css:!0}},Ax={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}},Y.displayName=`Button`})),Mx=o((()=>{jx()}));function Nx(e){let t=e.replace(` `,`T`);return new Date(/(?:Z|[+-]\d{2}:?\d{2})$/i.test(t)?t:`${t}Z`)}function Px(e){return Nx(e).toLocaleDateString(`en-US`,{timeZone:`UTC`,month:`short`,day:`numeric`})}function Fx(e,t){let n=Nx(e);if(isNaN(n.getTime()))return(0,zx.createElement)(`span`,{suppressHydrationWarning:!0},e);let r=n.toLocaleString(`en-US`,{timeZone:t||`UTC`,month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`}),i=Math.floor((Date.now()-n.getTime())/1e3),a;return a=i<60?`${i}s ago`:i<3600?`${Math.floor(i/60)}m ago`:i<86400?`${Math.floor(i/3600)}h ago`:`${Math.floor(i/86400)}d ago`,(0,zx.createElement)(`span`,{className:`void-admin-date-time`,suppressHydrationWarning:!0},`${r} (${a})`)}function Ix(e){if(e===0)return`0 B`;let t=[`B`,`KB`,`MB`,`GB`,`TB`],n=Math.floor(Math.log(e)/Math.log(1024)),r=e/1024**n;return`${r%1==0?r:r.toFixed(1)} ${t[n]}`}function Lx(e){return e.toLocaleString(`en-US`)}function Rx(e,t){return e===0?`Unlimited`:t===`bytes`?Ix(e):Lx(e)}var zx,Bx,Vx=o((()=>{zx=u(f(),1),Bx={success:`#16a34a`,failed:`#dc2626`,pending:`#d97706`,skipped:`#6b7280`}})),Hx,Ux,Wx=o((()=>{Hx=u(f(),1),Ux=(0,Hx.createContext)(null),Ux.displayName=`LayoutAreaContext`})),Gx,Kx,qx=o((()=>{Ar(),Gx={hasHeader:!1,hasFooter:!1,hasStart:!1,hasEnd:!1},Kx=Tr(Gx),Kx.displayName=`LayoutSlotsContext`})),Jx,Yx=o((()=>{Ar(),Jx=Tr(null),Jx.displayName=`LayoutDividerContext`}));function Xx({crossAlign:e,direction:t,gap:n,mainAlign:r,wrap:i}){return[tS.stack,$x[t],n!=null&&nS[n],e!=null&&Zx[e],r!=null&&Qx[r],i!=null&&eS[i]]}var Zx,Qx,$x,eS,tS,nS,rS=o((()=>{Zx={center:{kGNEyG:`x6s0dn4`,$$css:!0},end:{kGNEyG:`xuk3077`,$$css:!0},start:{kGNEyG:`x1cy8zhl`,$$css:!0},stretch:{kGNEyG:`x1qjc9v5`,$$css:!0}},Qx={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}},$x={horizontal:{kXwgrk:`x1q0g3np`,$$css:!0},vertical:{kXwgrk:`xdt5ytf`,$$css:!0}},eS={nowrap:{kwnvtZ:`xozqiw3`,$$css:!0},wrap:{kwnvtZ:`x1a02dak`,$$css:!0},"wrap-reverse":{kwnvtZ:`x8hhl5t`,$$css:!0}},tS={stack:{k1xSpc:`x78zum5`,$$css:!0}},nS={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 iS({crossAlignSelf:e,size:t}={}){return[aS.reset,sS[t??`static`],e!=null&&oS[e]]}var aS,oS,sS,cS=o((()=>{aS={reset:{kAzted:`x2lwn1j`,k7Eaqz:`xeuugli`,$$css:!0}},oS={center:{kSGwAc:`xamitd3`,$$css:!0},end:{kSGwAc:`xpvyfi4`,$$css:!0},start:{kSGwAc:`xqcrz7y`,$$css:!0},stretch:{kSGwAc:`xkh2ocl`,$$css:!0}},sS={fill:{kzQI83:`x1iyjqo2`,$$css:!0},static:{kzQI83:`x1c4vz4f`,kmuXW:`x2lah0s`,$$css:!0}}}));function lS(e){if(e==null||typeof e==`number`)return!0;let t=e.trim().toLowerCase();return t.includes(`%`)?!1:t===`0`||/^-?(?:\d+(?:\.\d+)?|\.\d+)[a-z]+$/.test(t)||/^(?:calc|min|max|clamp)\(/.test(t)}function uS({area:e,children:t}){return t==null?null:(0,pS.jsx)(Ux,{value:e,children:t})}function dS({children:e,content:t,contentWidth:n,defaultHasDividers:r,end:i,footer:a,header:o,height:s=`fill`,padding:c,ref:l,start:u,xstyle:d,className:f,style:p}){let m=s===`fill`,h=t??e,g=(0,fS.useMemo)(()=>r==null?null:{defaultHasDividers:r},[r]),_=o!=null,v=a!=null,y=u!=null,b=i!=null,x=y&&b,S=y!==b,C=n!=null&&lS(n),w=(0,fS.useMemo)(()=>({hasHeader:_,hasFooter:v,hasStart:y,hasEnd:b}),[_,v,y,b]),T=(0,pS.jsx)(Kx,{value:w,children:(0,pS.jsx)(`div`,{ref:l,...U(V(`layout`,{height:s}),z(mS.layoutOuter,m?mS.fill:mS.auto,d),f,p),children:(0,pS.jsxs)(`div`,{...z(_S,mS.layoutInner,...Xx({direction:`vertical`}),m?mS.fill:mS.auto,c===0&&mS.fullBleed,c!=null&&ti[c],c!=null&&ni[c],n!=null&&gS.contentWidthVar(n),C&&gS.contentAlignmentWidthVar(n)),children:[(0,pS.jsx)(uS,{area:`header`,children:o}),(0,pS.jsxs)(`div`,{...z(...Xx({direction:`horizontal`}),mS.middle,n!=null&&(!C||x)&&gS.contentWidth(n),C&&!x&&mS.middleQuery,C&&S&&mS.singlePanelMiddle,C&&y&&!b&&mS.singleStartPanel,C&&!y&&b&&mS.singleEndPanel),children:[(0,pS.jsx)(uS,{area:`start`,children:u}),(0,pS.jsx)(`div`,{...z(...iS({size:`fill`}),C&&!y&&!b&&mS.singleColumnContent),children:(0,pS.jsx)(uS,{area:`content`,children:h})}),(0,pS.jsx)(uS,{area:`end`,children:i})]}),(0,pS.jsx)(uS,{area:`footer`,children:a})]})})});return g==null?T:(0,pS.jsx)(Jx,{value:g,children:T})}var fS,pS,mS,hS,gS,_S,vS=o((()=>{fS=u(f(),1),B(),Wx(),qx(),Yx(),rS(),cS(),W(),H(),pi(),pS=G(),mS={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`,$$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-outer-x":`x1wbjvqu`,"--layout-padding-outer-y":`xzxxx64`,$$css:!0}},hS={kzqmXN:`xh8yej3`,kUOVxO:`xvueqy4`,$$css:!0},gS={contentWidthVar:e=>[{"--layout-content-width":(typeof e==`number`?`${e}px`:e)==null?typeof e==`number`?`${e}px`:e:`x4906uf`,$$css:!0},{"--x---layout-content-width":(typeof e==`number`?`${e}px`:e)==null?void 0:typeof e==`number`?`${e}px`:e}],contentAlignmentWidthVar:e=>[{"--layout-alignment-width":(typeof e==`number`?`${e}px`:e)==null?typeof e==`number`?`${e}px`:e:`x1b1nz06`,$$css:!0},{"--x---layout-alignment-width":(typeof e==`number`?`${e}px`:e)==null?void 0:typeof e==`number`?`${e}px`:e}],contentWidth:e=>[hS,{ks0D6T:(typeof e==`number`?`${e}px`:e)==null?typeof e==`number`?`${e}px`:e:`xf68679`,$$css:!0},{"--x-maxWidth":(e=>typeof e==`number`?e+`px`:e??void 0)(typeof e==`number`?`${e}px`:e)}]},_S={"x-default-marker":`x-default-marker`,$$css:!0},dS.displayName=`Layout`}));function yS({children:e,hasDivider:t,height:n,label:r,padding:i,paddingBlockEnd:a,role:o,xstyle:s,className:c,style:l,ref:u,...d}){let f=(0,bS.use)(Jx),p=t??f?.defaultHasDividers??!1,m=i===0;return(0,xS.jsx)(`div`,{ref:u,role:o,"aria-label":r,"data-divider":p||void 0,...U(V(`layout-header`),z(SS.header,CS.sizing(n??null),p&&SS.divider,s),c,l),...d,children:(0,xS.jsx)(`div`,{...z(SS.inner,m&&SS.fullBleed,i!=null&&Zr[i],i!=null&&Qr[i],i!=null&&$r[i],i!=null&&ei[i],a!=null&&ui[a],a!=null&&ei[a]),children:e})})}var bS,xS,SS,CS,wS=o((()=>{bS=u(f(),1),B(),Yx(),W(),H(),pi(),xS=G(),SS={header:{kmuXW:`x2lah0s`,$$css:!0},inner:{kB7OPa:`x9f619`,ks0D6T:`xjl2t3p`,kUOVxO:`xvueqy4`,kZCmMZ:`x139j0dd`,kwRFfy:`xpc6k2p`,kLKAdn:`x81pis9`,kGO01o:`xg476vw`,"--container-padding-inline-start":`xdvaxxn`,"--container-padding-inline-end":`xqpvj4r`,"--container-padding-block-start":`xzz8v79`,"--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}},CS={sizing:e=>[{kZKoxP:e==null?e:`x16ye13r`,$$css:!0},{"--x-height":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]},yS.displayName=`LayoutHeader`}));function TS({children:e,hasDivider:t=!1,isScrollable:n=!0,label:r,padding:i,role:a,width:o,resizable:s,xstyle:c,className:l,style:u,ref:d,...f}){let p=(0,ES.use)(Ux),{hasHeader:m,hasFooter:h}=(0,ES.use)(Kx),g=s?s._size:o,_=p===`start`,v=p===`end`,y=i===0,b=!t&&!y&&i==null,x=_?OS.dividerEnd:v?OS.dividerStart:null,S=_?OS.collapseEnd:v?OS.collapseStart:null;return(0,DS.jsx)(`div`,{ref:d,role:a,"aria-label":r,...U(V(`layout-panel`),z(OS.panel,kS.sizing(g??null),_&&!y&&i==null&&OS.startPanel,v&&!y&&i==null&&OS.endPanel,!m&&!y&&i==null&&OS.noHeader,!h&&!y&&i==null&&OS.noFooter,n&&OS.scrollable,y&&OS.fullBleed,i!=null&&Zr[i],i!=null&&Qr[i],i!=null&&$r[i],i!=null&&ei[i],t&&x,b&&S,c),l,u),...f,children:e})}var ES,DS,OS,kS,AS=o((()=>{ES=u(f(),1),B(),Wx(),qx(),W(),H(),pi(),DS=G(),OS={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:`x139j0dd`,$$css:!0},endPanel:{kwRFfy:`xpc6k2p`,$$css:!0},noHeader:{kLKAdn:`x81pis9`,$$css:!0},noFooter:{kGO01o:`xon7vh3`,$$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}},kS={sizing:e=>[{kzqmXN:e==null?e:`x5lhr3w`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]},TS.displayName=`LayoutPanel`}));function jS({children:e,isScrollable:t=!0,padding:n,label:r,role:i,xstyle:a,className:o,style:s,ref:c,...l}){let{hasHeader:u,hasFooter:d,hasStart:f,hasEnd:p}=(0,MS.use)(Kx),m=n===0;return(0,NS.jsx)(`div`,{ref:c,role:i,"aria-label":r,...U(V(`layout-content`),z(PS.content,!f&&!m&&n==null&&PS.noStart,!p&&!m&&n==null&&PS.noEnd,!u&&!m&&n==null&&PS.noHeader,!d&&!m&&n==null&&PS.noFooter,t&&PS.scrollable,m&&PS.fullBleed,n!=null&&Zr[n],n!=null&&Qr[n],n!=null&&$r[n],n!=null&&ei[n],!f&&!p&&!m&&PS.constrainedNoPanelsStart,!f&&!p&&!m&&PS.constrainedNoPanelsEnd,f&&!p&&!m&&PS.constrainedSingleStartPanel,!f&&p&&!m&&PS.constrainedSingleEndPanel,a),o,s),...l,children:e})}var MS,NS,PS,FS=o((()=>{MS=u(f(),1),B(),qx(),W(),H(),pi(),NS=G(),PS={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:`x139j0dd`,"--container-padding-inline-start":`xdvaxxn`,"--container-padding-inline-end":`xqpvj4r`,$$css:!0},noEnd:{kwRFfy:`xpc6k2p`,$$css:!0},noHeader:{kLKAdn:`x81pis9`,"--container-padding-block-start":`xzz8v79`,$$css:!0},noFooter:{kGO01o:`xon7vh3`,"--container-padding-block-end":`x1xjq73n`,$$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}},jS.displayName=`LayoutContent`}));function IS(){return(0,LS.use)(zS)}var LS,RS,zS,BS=o((()=>{LS=u(f(),1),RS={isMobile:!1,isMobileNavOpen:!1,toggleMobileNav:()=>{},openMobileNav:()=>{},closeMobileNav:()=>{},isMobileNavEnabled:!1,hasAutoToggle:!0},zS=(0,LS.createContext)(RS),zS.displayName=`AppShellMobileContext`}));function VS({ref:e,children:t,label:n,"data-testid":r,xstyle:i,className:a,style:o}){let s=xf(),c=n??s(`@astryx.mobileNav.toggle.open`),{isMobile:l,isMobileNavEnabled:u,isMobileNavOpen:d,mobileNavId:f,toggleMobileNav:p}=IS();return!l||!u?null:(0,HS.jsx)(Y,{ref:e,variant:`ghost`,label:c,icon:t??(0,HS.jsx)(ru,{icon:`menu`,color:`inherit`}),onClick:p,"aria-expanded":d,"aria-controls":f||void 0,"data-testid":r??`mobile-nav-toggle`,xstyle:i,className:a,style:o,isIconOnly:!0})}var HS,US=o((()=>{f(),Mx(),uu(),BS(),Df(),HS=G(),VS.displayName=`MobileNavToggle`}));function WS(){return(0,GS.use)(KS)}var GS,KS,qS=o((()=>{GS=u(f(),1),KS=(0,GS.createContext)(`default`),KS.displayName=`SideNavRenderContext`}));function JS(){return(0,YS.use)(XS)}var YS,XS,ZS=o((()=>{YS=u(f(),1),XS=(0,YS.createContext)(`default`),XS.displayName=`TopNavRenderContext`}));function QS(){return(0,$S.use)(eC)}var $S,eC,tC=o((()=>{$S=u(f(),1),eC=(0,$S.createContext)(null),eC.displayName=`TopNavMobileContentContext`}));function nC({variant:e=`elevated`,banner:t,children:n,contentPadding:r,"data-testid":i,height:a=`fill`,mobileNav:o,sideNav:s,topNav:c,xstyle:l,className:u,style:d,ref:f,...p}){let m=xf(),h=Pl(),g=o===!1,_=o!=null&&o!==!1&&typeof o==`object`&&!(0,iC.isValidElement)(o)?o:null,v=_?.breakpoint??`md`,y=o!=null&&o!==!1&&((0,iC.isValidElement)(o)||typeof o==`string`)?o:null,b=_?.content??null,x=_?.hasToggle!==!1,S=_?.isOpen!==void 0,C=h?.__adaptations?.widthBreakpoints,w=Cl(v===`none`?`(width < 0px)`:`(width < ${C?.[v]??$s[v]}px)`,v!==`none`&&_?.defaultIsMobile),[T,E]=(0,iC.useState)(!1),D=_?.isOpen??T,O=_?.onOpenChange,k=(0,iC.useCallback)(e=>{S||E(e),O?.(e)},[S,O]),A=(0,iC.useCallback)(()=>{document.getElementById(sC)?.focus()},[]),j=a===`fill`,M=a===`auto`,N=dn(t),ee=dn(c),P=dn(s),te=!g&&(ee||P)&&y==null,F=e===`section`,ne=e===`elevated`,I=e===`wash`||e===`elevated`?cC.navAreaWash:e===`surface`?cC.navAreaSurface:void 0,re=I??(M&&e===`section`?cC.navAreaSurface:void 0),ie=e===`wash`?cC.contentBgWash:e===`elevated`&&ee&&P&&!w?cC.contentBgTransparent:e===`surface`||e===`elevated`?cC.contentBgSurface:void 0,ae=I??cC.navAreaSurface,oe=(0,iC.useRef)(null),se=(0,iC.useRef)(null);(0,iC.useEffect)(()=>{if(!M||!oe.current||!se.current)return;let e=oe.current,t=se.current,n=()=>{let n=e.getBoundingClientRect().height;t.style.setProperty(`--_app-shell-header-height`,`${n}px`)};return on(e,()=>n())},[M]);let ce=P&&!w,le=y!=null,ue=te&&b!=null&&w,de=(0,iC.useId)(),fe=(0,iC.useMemo)(()=>({isMobile:w,isMobileNavOpen:D,mobileNavId:de,toggleMobileNav:()=>te&&k(!D),openMobileNav:()=>te&&k(!0),closeMobileNav:()=>k(!1),isMobileNavEnabled:te,hasAutoToggle:x}),[w,D,de,k,te,x]),pe=P&&x?(0,aC.jsx)(KS,{value:`drawer-content`,children:s}):null,L=P?(0,aC.jsx)(KS,{value:`drawer-content`,children:s}):null,R=ee?w&&!g&&y==null?(0,aC.jsx)(eC,{value:pe,children:(0,aC.jsx)(XS,{value:`mobile-bar`,children:c})}):c:null,me=ee||N?(0,aC.jsxs)(yS,{padding:0,hasDivider:F&&ee,children:[N&&(0,aC.jsx)(`div`,{...z(cC.banner,I),children:t}),ee&&R]}):void 0,he=dn(me)?(0,aC.jsx)(`div`,{ref:oe,role:`banner`,...U(V(`app-shell-header`,{variant:e}),z(re,M&&cC.headerSticky)),children:me}):void 0,ge=ce?(0,aC.jsx)(TS,{padding:0,hasDivider:F,isScrollable:j,...V(`app-shell-sidenav`,{variant:e}),xstyle:[I,M&&ae,M&&cC.panelAutoFill],children:s}):void 0,_e=ge!=null&&M?(0,aC.jsx)(`div`,{className:`x2lah0s x7giv3 x7wzq59 xht72ud xpa73km x78zum5 xdt5ytf`,children:ge}):ge,ve=ne&&ee&&ce,ye=(0,aC.jsx)(jS,{padding:r??0,role:`main`,id:sC,tabIndex:-1,isScrollable:j,xstyle:[ie,cC.mainFocusTarget],children:n}),be=ve?(0,aC.jsxs)(`div`,{className:`x1n2onr6 x78zum5 x98rzlu x2lwn1j x5yr21d`,children:[(0,aC.jsx)(`div`,{className:`x10l6tqk x10a8y8t x10xzikg x183tx6i x47corl`}),ye]}):ye,xe=!g&&x&&w&&!ee&&P?(0,aC.jsx)(`div`,{role:he==null?`banner`:void 0,...U(V(`app-shell-header`,{variant:e}),z(re,M&&cC.headerSticky)),children:(0,aC.jsx)(yS,{padding:0,hasDivider:F,children:(0,aC.jsxs)(`div`,{className:`x78zum5 x6s0dn4 x1k15mir xf314gf`,role:`navigation`,"aria-label":m(`@astryx.appShell.mobileNavigation`),children:[(0,aC.jsx)(KS,{value:`topbar`,children:s}),(0,aC.jsx)(VS,{})]})})}):void 0;return(0,aC.jsx)(zS,{value:fe,children:(0,aC.jsxs)(`div`,{...p,ref:yr(f,se),"data-testid":i,...U(V(`app-shell`,{variant:e}),z(cC.root,e===`wash`?cC.variantWash:e===`surface`?cC.variantSurface:e===`section`?cC.variantSection:cC.variantElevated,j?cC.rootFill:cC.rootAuto,l),u,d),children:[(0,aC.jsx)(`a`,{href:`#${sC}`,onClick:A,...Rn.focusVisible(cC.skipLink),"data-testid":`skip-to-content`,children:m(`@astryx.appShell.skipToContent`)}),(0,aC.jsx)(dS,{height:a,padding:0,header:(0,aC.jsxs)(aC.Fragment,{children:[he,xe]}),start:_e,content:be}),le&&y,ue&&b,w&&!g&&y==null&&!b&&(0,aC.jsxs)(oC,{mode:D?`visible`:`hidden`,children:[P&&!ee&&(0,aC.jsx)(KS,{value:`drawer`,children:s}),ee&&(0,aC.jsx)(eC,{value:L,children:(0,aC.jsx)(XS,{value:`drawer`,children:c})})]})]})})}var rC,iC,aC,oC,sC,cC,lC=o((()=>{rC=u(f(),1),iC=u(f(),1),B(),vS(),wS(),AS(),FS(),US(),qS(),ZS(),tC(),BS(),W(),zn(),Tl(),un(),H(),Df(),zl(),sc(),xr(),aC=G(),oC=rC.Activity===void 0?({children:e})=>(0,aC.jsx)(aC.Fragment,{children:e}):({mode:e,children:t})=>(0,aC.jsx)(rC.Activity,{mode:e,children:t}),sC=`astryx-app-shell-main`,cC={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}},nC.displayName=`AppShell`})),uC=o((()=>{lC(),BS()})),dC,fC=o((()=>{dC=`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 pC(e){(0,bC.useEffect)(()=>{if(e)return xC+=1,()=>{--xC}},[e])}function mC(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){let t=window.getComputedStyle(e);if(t.visibility===`hidden`||t.display===`none`)return!1}return!0}function hC(e){return Array.from(e.querySelectorAll(dC)).filter(mC)}function gC(e){try{e.focus()}catch{}return document.activeElement===e}function _C(e){let t=hC(e);for(let e of t)if(gC(e))return!0;return!1}function vC(e){let t=hC(e);for(let e=t.length-1;e>=0;e--)if(gC(t[e]))return!0;return!1}function yC(e){let{isActive:t,onEscape:n}=e,r=(0,bC.useRef)(null),i=(0,bC.useRef)(null),a=(0,bC.useRef)(!1),o=t&&n!=null;ma({isActive:o,onDismiss:()=>{n?.()},getContainer:()=>r.current}),pC(o);let s=(0,bC.useCallback)(()=>{r.current&&_C(r.current)},[]);return(0,bC.useEffect)(()=>{if(!t)return;let e=document.activeElement,n=r.current,i=n!=null&&n.contains(document.activeElement),a=e=>{let t=e.target;t!=null&&r.current?.contains(t)&&(i=!0)};return document.addEventListener(`focusin`,a,!0),()=>{if(document.removeEventListener(`focusin`,a,!0),!i)return;let t=document.activeElement;(t==null||t===document.body||t===document.documentElement||n!=null&&n.contains(t))&&e!=null&&e.isConnected&&typeof e.focus==`function`&&e.focus()}},[t]),(0,bC.useEffect)(()=>{if(!t)return;let e=e=>{let t=r.current;if(!t)return;let n=e.target;if(t.contains(n))i.current=n;else if(a.current){let e=_C(t);e&&i.current===document.activeElement?vC(t):!e&&i.current instanceof HTMLElement&&t.contains(i.current)&&gC(i.current),i.current=document.activeElement}a.current=!1};return document.addEventListener(`focus`,e,!0),()=>{document.removeEventListener(`focus`,e,!0)}},[t]),(0,bC.useEffect)(()=>{if(!t)return;let e=e=>{let t=r.current;if(t&&e.key===`Tab`){a.current=!0;let n=hC(t);if(n.length===0){let n=document.activeElement;if(!(n instanceof HTMLElement)||!t.contains(n))return;e.preventDefault(),i.current=n,a.current=!1;return}let r=n[0],o=n[n.length-1];if(document.activeElement===t){e.preventDefault(),e.shiftKey?o.focus():r.focus();return}e.shiftKey?document.activeElement===r&&(e.preventDefault(),o.focus()):document.activeElement===o&&(e.preventDefault(),r.focus())}};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[t,n]),{containerRef:r,focusFirst:s}}var bC,xC,SC=o((()=>{bC=u(f(),1),fC(),ga(),xC=0}));function CC(e,t,n=!0){let r=(0,wC.useRef)(!1);(0,wC.useEffect)(()=>{n&&!r.current&&(r.current=!0)},[e,t,n])}var wC,TC=o((()=>{wC=u(f(),1),En()}));function EC(e){try{e.focus()}catch{}return document.activeElement===e}function DC(e){let t=Array.from(e.querySelectorAll(dC)).filter(e=>e.closest(MC)==null);for(let e of t)if(EC(e))return!0;return!1}function OC(e={}){let{onShow:t,onHide:n,xstyle:r,className:i,style:a,hasLightDismiss:o=!0,hasEscapeDismiss:s=!0,hasAutoFocus:c=!0,hasSurface:l=!0,padding:u,surfaceTarget:d,hasCloseButton:f=!0,closeButtonLabel:p,dialogLabel:m,role:h=`dialog`,isModal:g=!0}=e,_=xf(),v=p??_(`@astryx.popover.close`),y=(0,AC.useRef)(null),b=(0,AC.useRef)(!1),x=bi({mode:`context`,lightDismiss:o,onShow:t,onHide:n}),{containerRef:S,focusFirst:C}=yC({isActive:x.isOpen,onEscape:s||o?x.hide:void 0}),w=(0,AC.useCallback)(()=>{let e=S.current;if(e&&!DC(e)){if(h===`dialog`){EC(e);return}C()}},[S,C,h]);(0,AC.useEffect)(()=>{x.isOpen&&c&&!b.current&&requestAnimationFrame(w),x.isOpen||(b.current=!1)},[x.isOpen,c,w]);let T=(0,AC.useCallback)(e=>{y.current=e,x.ref(e)},[x]),E=(0,AC.useCallback)(e=>{b.current=e?.skipAutoFocus??!1,x.show()},[x]),D=(0,AC.useCallback)(()=>{x.isOpen?x.hide():E()},[x,E]),O={"aria-haspopup":h===`dialog`?`dialog`:`true`,"aria-expanded":x.isOpen,"aria-controls":x.id};CC(`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.',h===`dialog`&&!m);let k=(0,AC.useCallback)((e,t)=>{let n=V(`popover`,void 0,{legacyNames:[`popover-surface`]}),o=d!=null&&d!==`popover`?`${n.className} ${Dt(d)}`:n.className;return x.render((0,jC.jsx)(Wi,{children:(0,jC.jsxs)(`div`,{ref:S,role:h===`dialog`?`dialog`:void 0,"aria-modal":h===`dialog`&&g?!0:void 0,"aria-label":h===`dialog`?m:void 0,tabIndex:h===`dialog`?-1:void 0,...U({...n,className:o},Rn.focusVisible(NC.contentWrapper,l&&NC.surface,u!=null&&Zr[u],r),i,a),children:[e,f&&(0,jC.jsx)(`div`,{"data-astryx-popover-fallback-close":``,...z(NC.closeButtonWrapper,On.centerInline(`100%`)),children:(0,jC.jsx)(Y,{variant:`secondary`,label:v,onClick:x.hide})})]})}),{...t,xstyle:t?.xstyle})},[x,f,l,u,d,i,a,v,S,m,h,g,r]);return{triggerRef:T,contentRef:S,anchorId:x.anchorId,show:E,hide:x.hide,toggle:D,isOpen:x.isOpen,id:x.id,render:k,triggerProps:O}}function kC(e={}){return OC(e)}var AC,jC,MC,NC,PC=o((()=>{AC=u(f(),1),B(),Ei(),SC(),Ji(),Mx(),fC(),W(),Df(),TC(),zn(),Xt(),H(),pi(),Pt(),jC=G(),MC=`[data-astryx-popover-fallback-close]`,NC={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}}})),FC,IC,LC=o((()=>{FC=u(f(),1),IC=(0,FC.createContext)(null),IC.displayName=`ItemDescriptionContext`}));function RC(e,t){let n=e;for(;n!=null&&n!==t&&n!==document.body;){if(n.matches(HC)&&!n.matches(UC))return!0;n=n.parentElement}return!1}function zC(e){if(typeof document>`u`||!(`getSelection`in document))return!1;let t=document.getSelection();return t==null||t.isCollapsed?!1:e.contains(t.anchorNode)}function BC({containerRef:e,interactiveRef:t,onClick:n,href:r,target:i,disabled:a=!1}){return(0,VC.useEffect)(()=>{let t=e.current;t&&t.setAttribute(`data-pressable-container`,`true`)},[e]),{onClick:(0,VC.useCallback)(o=>{if(a)return;let s=e.current;if(!s||zC(s))return;let c=o.target;if(c instanceof Element&&!(c!==o.currentTarget&&RC(c,s))&&(n?.(o),!o.defaultPrevented&&(r!=null&&xu(r)&&(i===`_blank`||o.ctrlKey||o.metaKey?window.open(r,`_blank`,`noopener`):t?.current?t.current.click():window.location.href=r),r==null&&n==null&&t?.current))){let e=new MouseEvent(`click`,{bubbles:o.bubbles,cancelable:o.cancelable,ctrlKey:o.ctrlKey,metaKey:o.metaKey,shiftKey:o.shiftKey,altKey:o.altKey,button:o.button});t.current.dispatchEvent(e),o.stopPropagation()}},[e,t,n,r,i,a]),onMouseUp:(0,VC.useCallback)(t=>{if(a)return;let n=e.current;if(!n)return;let i=t.target;i instanceof Element&&t.button===1&&r!=null&&xu(r)&&(i===t.currentTarget||!RC(i,n))&&window.open(r,`_blank`,`noopener`)},[e,r,a])}}var VC,HC,UC,WC=o((()=>{VC=u(f(),1),Cu(),HC=[`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(`,`),UC=`[aria-readonly="true"]`}));function GC({as:e=`div`,marker:t,startContent:n,label:r,description:i,endContent:a,align:o=`center`,density:s=`balanced`,labelLines:c,descriptionLines:l,layout:u=`stacked`,onClick:d,interactiveRef:f,href:p,target:m,rel:h,isHighlighted:g=!1,isSelected:_=!1,isDisabled:v=!1,xstyle:y,className:b,style:x,ref:S,role:C,...w}){let T=Tu(),E=f!=null,D=(0,KC.useRef)(null),{onClick:O}=BC({containerRef:D,interactiveRef:f??void 0,disabled:v});CC(`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.",E&&(d!=null||p!=null));let k=d!=null||p!=null||E,{target:A,rel:j}=Ou(m,h),M=C!=null,N=C!=null&&JC.has(C),ee=(0,KC.useId)(),P=dn(i),te=typeof r==`string`,F=typeof i==`string`,ne=c==null?te?YC.labelSingleTruncate:null:c===1?YC.labelSingleTruncate:YC.labelMultiTruncate,I=u===`inline`&&i!=null,re=l==null?F||I?YC.descriptionSingleTruncate:null:l===1?YC.descriptionSingleTruncate:YC.descriptionMultiTruncate,ie=(0,qC.jsxs)(qC.Fragment,{children:[(0,qC.jsx)(`span`,{...z(YC.label,I&&YC.inlineLabel,ne,c!=null&&c>1&&XC.lineClamp(c)),children:r}),i!=null&&(0,qC.jsx)(`span`,{id:P?ee:void 0,...z(YC.description,I&&YC.inlineDescription,re,l!=null&&l>1&&XC.lineClamp(l)),children:i})]}),ae=e=>{v||e.target.closest(`button, a, input, select, textarea`)||d?.(e)},oe=(0,qC.jsxs)(qC.Fragment,{children:[t,n!=null&&(0,qC.jsx)(`span`,{className:`x3psx0u x78zum5`,children:n}),M||E?(0,qC.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`}}[!!I<<1|!!v<<0],children:ie}):p==null?d==null?(0,qC.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`}}[!!I<<1|!!v<<0],children:ie}):(0,qC.jsx)(`button`,{type:`button`,onClick:d,disabled:v,...{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`}}[!!I<<1|!!v<<0],children:ie}):(0,qC.jsx)(T,{href:p,target:A,rel:j,"aria-disabled":v||void 0,tabIndex:v?-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`}}[!!I<<1|!!v<<0],children:ie}),a!=null&&(0,qC.jsx)(`span`,{...{0:{className:`x3psx0u x78zum5 xvc5jky`},1:{className:`x3psx0u x78zum5 xvc5jky xbyyjgo`}}[!!v<<0],children:a})]}),se=yr(S,D);return(0,qC.jsx)(e,{ref:E?se:S,...w,"aria-selected":N&&_||void 0,"aria-current":w[`aria-current`]??(_&&!N?!0:void 0),"aria-disabled":v||void 0,...U(V(`item`,{density:s,align:o}),Rn.focusWithin(YC.root,ZC[s],o===`start`&&YC.alignStart,k&&YC.interactive,k&&Lu.backgroundColor,g&&YC.highlighted,_&&YC.selected,v&&!M&&YC.disabled,y),b,x),role:C,onClick:E?O:M?d:k?ae:void 0,children:(0,qC.jsx)(IC,{value:P?ee:null,children:oe})})}var KC,qC,JC,YC,XC,ZC,QC=o((()=>{KC=u(f(),1),B(),W(),LC(),xr(),Au(),Du(),WC(),TC(),H(),zn(),Ru(),qC=G(),JC=new Set([`option`,`tab`,`row`,`gridcell`,`columnheader`,`rowheader`,`treeitem`]),YC={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},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}},XC={lineClamp:e=>[{kJFfOR:e==null?e:`x1yhjpo9`,$$css:!0},{"--x-WebkitLineClamp":e??void 0}]},ZC={compact:{k8WAf4:`xu0wf1k`,$$css:!0},balanced:{k8WAf4:`xce4md1`,$$css:!0},spacious:{k8WAf4:`x8o8v82`,"--_item-inset-inline":`x1ytau7y`,$$css:!0}},GC.displayName=`Item`})),$C=o((()=>{QC()}));function ew(){return(0,tw.use)(nw)}var tw,nw,rw,iw=o((()=>{tw=u(f(),1),Ar(),nw=Tr(null),nw.displayName=`DropdownMenuContext`,rw=(0,tw.createContext)(null),rw.displayName=`DropdownMenuRadioGroupContext`}));function aw(e,t){if(t||e.pointerType!==`mouse`)return;let n=e.currentTarget;n!==n.ownerDocument.activeElement&&n.focus({preventScroll:!0})}var ow=o((()=>{}));function sw({icon:e,label:t,description:n,onClick:r,isDisabled:i=!1,endContent:a,hasCloseOnSelect:o=!0,variant:s=`default`,xstyle:c,className:l,style:u,ref:d}){let f=ew(),p=f?.menuSize??`md`,m=(0,cw.useCallback)(()=>{i||(r?.(),o&&f?.closeMenu())},[i,r,o,f]),h=(0,cw.useCallback)(e=>aw(e,i),[i]),g=s===`destructive`;return(0,lw.jsx)(GC,{ref:d,role:`menuitem`,tabIndex:i?void 0:-1,onPointerMove:h,startContent:e?au(e,{size:`sm`,color:g?`error`:`secondary`}):void 0,label:t,description:n,endContent:a,onClick:m,isDisabled:i,xstyle:[uw.root,dw[p],g&&uw.destructive,i&&uw.disabled,c],...U(V(`dropdown-menu-item`,{size:p,variant:g?`destructive`:null}),{className:l,style:u})})}var cw,lw,uw,dw,fw=o((()=>{cw=u(f(),1),uu(),$C(),W(),iw(),ow(),H(),lw=G(),uw={root:{kB7OPa:`x9f619`,kzqmXN:`xh8yej3`,k8WAf4:`xce4md1`,kg3NbH:`xf314gf`,kaIpWk:`x1ws5lxm`,kMv6JI:`x9ynric`,kGuDYH:`xcr08ib`,kMwMTN:`x1tgivj0`,kWkggS:`xjbqb8w x1c52tdz x1anq1lc`,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}},dw={sm:{k8WAf4:`xu0wf1k`,kg3NbH:`xf314gf`,$$css:!0},md:{k8WAf4:`x1vofgu7`,$$css:!0},lg:{$$css:!0}},sw.displayName=`DropdownMenuItem`}));function pw({orientation:e=`horizontal`,label:t,variant:n=`subtle`,isFullBleed:r=!1,xstyle:i,className:a,style:o,ref:s,"aria-label":c,"aria-labelledby":l,...u}){let d=e===`horizontal`,f=(0,mw.useId)(),p=l??(t&&c==null?f:void 0);return(0,hw.jsxs)(`div`,{ref:s,...u,role:`separator`,"aria-orientation":e,"aria-label":c,"aria-labelledby":p,...U(V(`divider`,{variant:n,orientation:e}),z(d?gw.horizontal:gw.vertical,r&&(d?vw.horizontal:vw.vertical),i),a,o),children:[(0,hw.jsx)(`div`,{...z(d?_w.horizontalLine:_w.verticalLine,_w[n])}),t&&(0,hw.jsx)(`div`,{id:f,...{0:{className:`x2lah0s xrrkdod x141an7d x1ltkj2j xv1l7n4`},1:{className:`x2lah0s x141an7d x1ltkj2j xv1l7n4 xnjsko4 x8o8v82`}}[!d<<0],children:t}),t&&(0,hw.jsx)(`div`,{...z(d?_w.horizontalLine:_w.verticalLine,_w[n])})]})}var mw,hw,gw,_w,vw,yw=o((()=>{mw=u(f(),1),B(),W(),H(),hw=G(),gw={horizontal:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kzqmXN:`xh8yej3`,$$css:!0},vertical:{k1xSpc:`x3nfvp2`,kXwgrk:`xdt5ytf`,kGNEyG:`x6s0dn4`,kZKoxP:`x5yr21d`,$$css:!0}},_w={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}},vw={horizontal:{keTefX:`xojxgvx`,k71WvV:`x1fcf3bl`,kzqmXN:`xx6qvi6`,$$css:!0},vertical:{keoZOQ:`x1sa9bsh`,k1K539:`x6h7pi7`,kZKoxP:`x12qplqi`,$$css:!0}},pw.displayName=`Divider`})),bw=o((()=>{yw()}));function xw({xstyle:e,className:t,style:n,ref:r}){return(0,Sw.jsx)(pw,{ref:r,xstyle:[Cw.divider,e],className:t?`${ww} ${t}`:ww,style:n})}var Sw,Cw,ww,Tw=o((()=>{bw(),H(),Sw=G(),Cw={divider:{kqGvvJ:`xsq74q5`,$$css:!0}},ww=V(`dropdown-menu-divider`).className,xw.displayName=`DropdownMenuDivider`}));function Ew(e){return!e||typeof window>`u`?!1:window.getComputedStyle(e).direction===`rtl`}var Dw=o((()=>{}));function Ow(e){if(e.isContentEditable)return e;let t=e.closest(`[contenteditable]`);return t&&t.getAttribute(`contenteditable`)!==`false`?t:null}function kw(e,t){if(!(e instanceof HTMLElement))return!1;let n=Ow(e);if(n){let e=typeof window<`u`?window.getSelection():null;return e&&e.rangeCount>0&&!e.isCollapsed?!0:(n.textContent??``).length>0}let r=e.tagName===`TEXTAREA`,i=e.tagName===`INPUT`&&Mw.has(e.type);if(!r&&!i)return!1;let{selectionStart:a,selectionEnd:o,value:s}=e;return a!==o||a==null?!0:t===`ArrowLeft`||t===`ArrowUp`||t===`Home`?a>0:t===`ArrowRight`||t===`ArrowDown`||t===`End`?a<s.length:!1}function Aw(e={}){let{itemSelector:t=`[role="menuitem"]`,boundarySelector:n,wrap:r=!0,onEscape:i,orientation:a=`vertical`,hasHomeEnd:o=!0,hasRovingTabIndex:s=!1,hasCaretGuard:c=!1}=e,l=(0,jw.useRef)(null),u=(0,jw.useCallback)(e=>e.getAttribute(`aria-disabled`)===`true`||e.disabled===!0||e.hasAttribute(`disabled`),[]),d=(0,jw.useCallback)(()=>{let e=l.current;if(!e)return[];let r=Array.from(e.querySelectorAll(t));return n?r.filter(t=>t.closest(n)===e):r},[t,n]),f=(0,jw.useCallback)(e=>{let t=l.current;if(!t||!n)return!0;let r=e.target;return!r||r.closest(n)===t},[n]),p=(0,jw.useCallback)((e,t,n,r)=>{let i=e.length;if(i===0)return-1;let a=t;for(let t=0;t<i;t++){if(a<0||a>=i){if(!r)return-1;a=(a+i)%i}let t=e[a];if(t&&!u(t))return a;a+=n}return-1},[u]),m=(0,jw.useCallback)(()=>{let e=d(),t=document.activeElement;return e.findIndex(e=>e===t||e.contains(t))},[d]),h=(0,jw.useCallback)((e,t)=>{e.getAttribute(`tabindex`)!==String(t)&&e.setAttribute(`tabindex`,String(t))},[]),g=(0,jw.useCallback)(()=>{let e=d(),t=e.filter(e=>!u(e));if(t.length===0)return;let n=t.find(e=>e.getAttribute(`tabindex`)===`0`)??t[0];for(let t of e)h(t,t===n?0:-1)},[d,u,h]);Cr(()=>{s&&g()});let _=(0,jw.useCallback)((e,t)=>{let n=e[t];if(n){if(s)for(let t of e)h(t,t===n?0:-1);n.focus()}},[s,h]),v=(0,jw.useCallback)(e=>{let t=d();if(t.length===0)return;let n=Math.max(0,Math.min(e,t.length-1));_(t,n)},[d,_]),y=(0,jw.useCallback)(()=>{let e=d(),t=p(e,0,1,!1);return t!==-1&&(_(e,t),!0)},[d,p,_]),b=(0,jw.useCallback)(()=>{let e=d(),t=p(e,e.length-1,-1,!1);return t!==-1&&(_(e,t),!0)},[d,p,_]),x=(0,jw.useCallback)(()=>{s&&g()},[s,g]);return{listRef:l,handleKeyDown:(0,jw.useCallback)(e=>{if(e.ctrlKey||e.metaKey||e.altKey||!f(e))return;if(e.key===`Escape`){i&&(e.preventDefault(),i());return}let t=a===`horizontal`||a===`both`,n=a===`vertical`||a===`both`,s=[],u=[];if(t){let t=e.key===`ArrowLeft`||e.key===`ArrowRight`?Ew(l.current):!1;s.push(t?`ArrowLeft`:`ArrowRight`),u.push(t?`ArrowRight`:`ArrowLeft`)}n&&(s.push(`ArrowDown`),u.push(`ArrowUp`));let h=s.includes(e.key),g=u.includes(e.key),v=o&&e.key===`Home`,x=o&&e.key===`End`;if(!h&&!g&&!v&&!x||c&&(kw(e.target,e.key)||kw(document.activeElement,e.key)))return;let S=m(),C=d();if(h){let e=S===-1?0:S+1,t=p(C,e,1,r);t!==-1&&_(C,t)}else if(g){let e=S===-1?C.length-1:S-1,t=p(C,e,-1,r);t!==-1&&_(C,t)}else v?y():x&&b();e.preventDefault()},[m,d,r,a,o,c,p,_,y,b,i,f]),handleFocus:x,focusItem:v,focusFirst:y,focusLast:b,ownsEvent:f,getItems:d}}var jw,Mw,Nw=o((()=>{jw=u(f(),1),Dw(),wr(),Mw=new Set([`text`,`search`,`url`,`tel`,`email`,`password`,`number`])}));function Pw(e){let{show:t,hide:n,isOpen:r,isEnabled:i,showDelay:a=150,hideDelay:o=200,clickGuardMs:s=Iw,itemSelector:c,popoverId:l,ownsFocus:u=!0}=e,d=Cl(`(hover: hover)`),f=(0,Fw.useRef)(null),p=(0,Fw.useRef)(null),m=(0,Fw.useRef)(null),h=(0,Fw.useRef)(!1),g=(0,Fw.useRef)(0),_=(0,Fw.useRef)(0),v=(0,Fw.useRef)(r);Cr(()=>{let e=v.current;v.current=r,e&&!r&&(h.current=!1,_.current=0,g.current=Date.now())},[r]);let y=(0,Fw.useCallback)(()=>{f.current&&=(clearTimeout(f.current),null),p.current&&=(clearTimeout(p.current),null)},[]),b=(0,Fw.useRef)(()=>{}),{listRef:x,handleKeyDown:S,focusFirst:C}=Aw({itemSelector:c,onEscape:()=>b.current()}),w=(0,Fw.useCallback)(()=>{let e=x.current?.contains(document.activeElement)??!1;n(),e&&m.current?.focus()},[n,x]);(0,Fw.useEffect)(()=>{b.current=()=>{y(),w()}},[y,w]),(0,Fw.useEffect)(()=>()=>y(),[y]);let T=(0,Fw.useCallback)(()=>{C()||x.current?.focus()},[C,x]),E=(0,Fw.useCallback)(()=>{if(!u){t();return}t({skipAutoFocus:!0}),T()},[u,t,T]),D=(0,Fw.useCallback)(()=>s>0&&_.current>0&&Date.now()-_.current<s&&(h.current=!1,_.current=0,!0),[s]),O=(0,Fw.useCallback)(e=>{if(l&&e?.preventDefault(),y(),e!=null&&e.detail===0){g.current=0,h.current=!1,_.current=0,r?u&&T():E();return}if(!r){g.current=0,h.current=!1,_.current=0,E();return}if(D()){u&&T();return}w()},[l,y,r,u,D,E,T,w]),k=(0,Fw.useCallback)(()=>{if(!d||g.current>0&&Date.now()-g.current<Lw)return;if(r){y();return}h.current=!0,y();let e=()=>{_.current=Date.now(),t({skipAutoFocus:!0})};a>0?f.current=setTimeout(e,a):e()},[d,r,y,t,a]),A=(0,Fw.useCallback)(()=>{g.current=0,h.current&&(y(),p.current=setTimeout(()=>{n()},o))},[y,n,o]),j=(0,Fw.useCallback)(()=>{y()},[y]),M=(0,Fw.useCallback)(e=>{m.current=e},[]),N=(0,Fw.useCallback)(()=>{},[]),ee=(0,Fw.useCallback)(e=>{},[]),P=(0,Fw.useCallback)(e=>{},[]);return i?{triggerProps:{onClick:O,onMouseEnter:k,onMouseLeave:A,...l?{popoverTarget:l}:null},contentProps:{onMouseEnter:j,onMouseLeave:A,onKeyDown:S},menuRef:x,focusFirst:C,focusMenu:T,confirmHoverOpen:D,close:w,setTriggerEl:M}:{triggerProps:{onClick:N,onMouseEnter:N,onMouseLeave:N},contentProps:{onMouseEnter:N,onMouseLeave:N,onKeyDown:P},menuRef:x,focusFirst:C,focusMenu:T,confirmHoverOpen:D,close:w,setTriggerEl:ee}}var Fw,Iw,Lw,Rw=o((()=>{Fw=u(f(),1),wr(),Nw(),Tl(),Iw=500,Lw=300}));function zw(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey&&e.key!==` `}function Bw(e){let{getItemLabels:t,onMatch:n,getCurrentIndex:r,resetMs:i=750,isDisabled:a}=e,o=(0,Vw.useRef)(``),s=(0,Vw.useRef)(void 0),c=(0,Vw.useCallback)(()=>{o.current=``,s.current&&=(clearTimeout(s.current),void 0)},[]),l=(0,Vw.useCallback)(()=>{s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{o.current=``,s.current=void 0},i)},[i]);return{onKeyDown:(0,Vw.useCallback)(e=>{let i=e.key===` `&&!e.ctrlKey&&!e.metaKey&&o.current.length>0;if(!zw(e)&&!i)return!1;let s=t();if(s.length===0)return!1;let c=e.key.toLowerCase(),u=o.current.length>0&&o.current.split(``).every(e=>e===c)?c:o.current+c;o.current=u,l();let d=r?.()??-1,f=s.length,p=d>=0,m=p?d:0,h=p&&u.length===1?1:0;for(let e=0;e<f;e++){let t=(m+h+e+f)%f;if(a?.(t))continue;let r=s[t];if(r!=null&&r.trim().toLowerCase().startsWith(u))return n(t),!0}return!0},[t,n,r,l,a]),reset:c}}var Vw,Hw=o((()=>{Vw=u(f(),1)}));function Uw(e,t,n){let[r,i]=(0,Ww.useState)(!1),a=(0,Ww.useCallback)(()=>{let t=e.current;if(!t)return;let n=t.scrollHeight>t.clientHeight+1;i(e=>e===n?e:n)},[e]);return Cr(()=>{if(!n)return;let t=e.current;if(!t)return;a();let r=typeof ResizeObserver>`u`?null:new ResizeObserver(a),i=typeof MutationObserver>`u`?null:new MutationObserver(a);return r?.observe(t),i?.observe(t,{childList:!0,characterData:!0,subtree:!0}),t.addEventListener(`load`,a,!0),window.addEventListener(`resize`,a),window.visualViewport?.addEventListener(`resize`,a),()=>{r?.disconnect(),i?.disconnect(),t.removeEventListener(`load`,a,!0),window.removeEventListener(`resize`,a),window.visualViewport?.removeEventListener(`resize`,a)}},[n,a,e]),Cr(()=>{n&&a()},[t,n,a]),r}var Ww,Gw=o((()=>{Ww=u(f(),1),wr()}));function Kw(e,t){if(typeof e==`number`)return{property:`minWidth`,value:`min(${e}px, ${t})`};let n=e.trim(),r=n.toLowerCase();return qw.has(r)||r.startsWith(`fit-content(`)?{property:`inlineSize`,value:n}:{property:`minWidth`,value:`min(${n}, ${t})`}}var qw,Jw=o((()=>{qw=new Set([`auto`,`contain`,`fit-content`,`inherit`,`initial`,`max-content`,`min-content`,`revert`,`revert-layer`,`stretch`,`unset`])})),Yw,Xw,Zw,Qw=o((()=>{Yw=new Set([`menuitem`,`menuitemradio`,`menuitemcheckbox`]),Xw=[...Yw].map(e=>`[role="${e}"]:not([aria-disabled="true"])`).join(`,`),Zw=`[role="menu"]`}));function $w(e){let{icon:t,label:n,description:r,isDisabled:i=!1,hasSpinner:a=!1,menuWidth:o,onOpenChange:s,children:c,xstyle:l,className:u,style:d,"data-testid":f,menuDataTestId:p}=e,m=ew(),h=m?.menuSize??`md`,g=!i,_=(0,eT.useId)(),v=(0,eT.useId)(),y=(0,eT.useRef)(null),[b,x]=(0,eT.useState)(!1),S=bi({mode:`context`,lightDismiss:!1,onShow:(0,eT.useCallback)(()=>{x(!0),s?.(!0)},[s]),onHide:(0,eT.useCallback)(()=>{x(!1),s?.(!1)},[s])}),C=(0,eT.useCallback)(()=>{g&&S.show()},[g,S]),w=(0,eT.useCallback)(()=>{S.hide()},[S]),{listRef:T,handleKeyDown:E,focusFirst:D,focusItem:O,ownsEvent:k,getItems:A}=Aw({itemSelector:Xw,boundarySelector:Zw,wrap:!1,onEscape:()=>F({focusTrigger:!0})}),j=Uw(T,c,b),M=Bw({getItemLabels:()=>A().map(e=>e.textContent),onMatch:O,getCurrentIndex:()=>A().findIndex(e=>e===document.activeElement||e.contains(document.activeElement))}),{triggerProps:N,contentProps:ee,confirmHoverOpen:P}=Pw({show:C,hide:w,isOpen:b,isEnabled:g}),te=(0,eT.useCallback)(e=>{g&&(S.show(),e?.focusFirst&&(D()||T.current?.focus()))},[g,S,D,T]),F=(0,eT.useCallback)(e=>{S.hide(),e?.focusTrigger!==!1&&y.current?.focus()},[S]),ne=(0,eT.useCallback)(e=>{y.current=e,S.ref(e)},[S]),I=(0,eT.useCallback)(()=>{if(!i){if(b){if(P()){D()||T.current?.focus();return}F({focusTrigger:!0})}else te({focusFirst:!0})}},[i,b,te,F,P,D,T]),re=(0,eT.useCallback)(e=>{if(i)return;let t=typeof window<`u`&&y.current&&window.getComputedStyle(y.current).direction===`rtl`?`ArrowLeft`:`ArrowRight`;(e.key===t||e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),te({focusFirst:!0}))},[i,te]),ie=(0,eT.useCallback)(e=>aw(e,i),[i]),ae=(0,eT.useCallback)(e=>{if(!k(e))return;if(e.key===`Escape`){e.preventDefault(),e.stopPropagation(),F({focusTrigger:!0});return}if(e.key===`Enter`||e.key===` `){e.preventDefault();let t=document.activeElement;t&&Yw.has(t.getAttribute(`role`)??``)&&t.click();return}let t=typeof window<`u`&&T.current&&window.getComputedStyle(T.current).direction===`rtl`?`ArrowRight`:`ArrowLeft`;if(e.key===t){e.preventDefault(),F({focusTrigger:!0});return}if(M.onKeyDown(e)){e.preventDefault();return}E(e)},[k,F,E,M,T]),oe=(0,eT.useMemo)(()=>({menuSize:h,closeMenu:()=>{F({focusTrigger:!1}),m?.closeMenu()}}),[h,F,m]),se=a?(0,tT.jsx)(`span`,{className:`x78zum5 x6s0dn4`,children:(0,tT.jsx)(qb,{size:`sm`})}):(0,tT.jsx)(`span`,{className:`x78zum5 x6s0dn4`,children:(0,tT.jsx)(ru,{icon:`chevronRight`,size:`sm`,color:`secondary`,xstyle:On.mirror,...V(`dropdown-menu-indicator-icon`)})}),ce=o?Kw(o,rT):null,le=ce?ce.property===`inlineSize`?sT.popoverCustomIntrinsicWidth(ce.value):sT.popoverCustomWidth(ce.value):sT.popover;return(0,tT.jsxs)(tT.Fragment,{children:[(0,tT.jsx)(GC,{ref:e=>ne(e),id:v,role:`menuitem`,tabIndex:i?void 0:-1,"aria-haspopup":`menu`,"aria-expanded":b,"aria-controls":b?_:void 0,"aria-disabled":i||void 0,"data-testid":f,onMouseEnter:N.onMouseEnter,onMouseLeave:N.onMouseLeave,onPointerMove:ie,startContent:t?au(t,{size:`sm`,color:`secondary`}):void 0,label:n,description:r,endContent:se,onClick:I,onKeyDown:re,isDisabled:i,xstyle:[iT.root,aT[h],b&&iT.open,i&&iT.disabled,l],...U(V(`dropdown-menu-item`,{size:h}),{className:u,style:d})}),S.render((0,tT.jsx)(`div`,{ref:T,id:_,role:`menu`,tabIndex:j?0:-1,"aria-labelledby":v,onKeyDown:ae,onMouseEnter:ee.onMouseEnter,onMouseLeave:ee.onMouseLeave,"data-testid":p,...U(V(`dropdown-menu`),{0:{className:`x9f619 x78zum5 xdt5ytf x1lsbc85 xs2v1xk x1hkkhfe x1fcsqxe xgory14 x9epnlk x1n97fys x1prclbq x1i5ehqx x1hc1fzr x19991ni xuedmi6 xlr8y92`},1:{className:`x9f619 x78zum5 xdt5ytf x1lsbc85 xs2v1xk x1hkkhfe x1fcsqxe xgory14 x9epnlk x1n97fys x1prclbq x1i5ehqx x1hc1fzr x19991ni xuedmi6 xlr8y92 x1odjw0f x6ikm8r xish69e`}}[!!j<<0]),children:(0,tT.jsx)(nw,{value:oe,children:c})}),{placement:`end`,alignment:`start`,offset:St[`--spacing-1`],xstyle:[sT.popoverViewport,le,Vi.end]})]})}var eT,tT,nT,rT,iT,aT,oT,sT,cT=o((()=>{eT=u(f(),1),uu(),sx(),$C(),Ei(),Hi(),Nw(),Rw(),Hw(),Gw(),Jw(),Et(),W(),H(),Qw(),iw(),ow(),tT=G(),nT=St[`--spacing-4`],`${nT}${nT}`,rT=`calc(100vw - ${nT} - ${nT})`,`${nT}${nT}`,`${nT}${nT}`,iT={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}},aT={sm:{k8WAf4:`xu0wf1k`,kg3NbH:`xf314gf`,$$css:!0},md:{k8WAf4:`x1vofgu7`,$$css:!0},lg:{$$css:!0}},oT={kzqmXN:`x1uyokj7`,$$css:!0},sT={popoverViewport:{kB7OPa:`x9f619`,kskxy:`x1hkkhfe`,$$css:!0},popover:{k7Eaqz:`x12knhqr`,$$css:!0},popoverCustomWidth:e=>[{k7Eaqz:e==null?e:`xkj4a21`,$$css:!0},{"--x-minWidth":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}],popoverCustomIntrinsicWidth:e=>[oT,{"--x-inlineSize":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]},$w.displayName=`DropdownMenuSubMenu`}));function lT(e,t){return`item-${e.id??t}`}function uT(e,t){return`section-${e.id??t}`}function dT(e,t){let{items:n,id:r,...i}=e;return(0,pT.jsx)(sw,{...i},lT(e,t))}function fT(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];`type`in r&&r.type===`divider`?t.push((0,pT.jsx)(xw,{},`divider-${n}`)):`type`in r&&r.type===`section`?t.push((0,pT.jsxs)(`div`,{role:`group`,"aria-label":r.title,children:[r.title&&(0,pT.jsx)(`div`,{"aria-hidden":`true`,...U(V(`dropdown-menu-section-heading`),{className:`xu0wf1k xf314gf x9ynric x141an7d x1ltkj2j xv1l7n4 x87ps6o`}),children:r.title}),r.items.map(dT)]},uT(r,n))):`type`in r||(r.items&&r.items.length>0?t.push((0,pT.jsx)($w,{icon:r.icon,label:r.label,isDisabled:r.isDisabled,children:fT(r.items)},lT(r,n))):t.push(dT(r,n)))}return t}var pT,mT=o((()=>{fw(),Tw(),cT(),W(),pT=G()}));function hT(){let[e,t]=(0,gT.useState)(!1);ki();let n=(0,gT.useCallback)(()=>{t(Ai()===`pointer`)},[]),r=(0,gT.useCallback)(()=>{t(!1)},[]);return{isFocusRingSuppressed:e,onFocusReturnTargetFocus:(0,gT.useCallback)(()=>{Ai()===`keyboard`&&t(!1)},[]),prepareFocusReturn:n,resetFocusReturn:r}}var gT,_T=o((()=>{gT=u(f(),1),Ni()}));function vT(e){let t=Cl(yT);return e===`adaptive`?t?`bottom-sheet`:`popover`:e}var yT,bT=o((()=>{Tl(),yT=`(max-width: 768px) and (pointer: coarse)`}));function xT(e){let t=MT[e];t!=null&&(clearTimeout(t),MT[e]=null)}function ST(e,t){xT(e),MT[e]=setTimeout(()=>{MT[e]=null,t.textContent=``},jT)}function CT(e){let t=document.createElement(`div`);return t.setAttribute(kT,e),t.setAttribute(`aria-live`,e),t.setAttribute(`aria-atomic`,`true`),t.setAttribute(`role`,e===`assertive`?`alert`:`status`),t.style.cssText=AT,document.body.appendChild(t),t}function wT(){return typeof document>`u`?null:NT?(NT.polite.isConnected||document.body.appendChild(NT.polite),NT.assertive.isConnected||document.body.appendChild(NT.assertive),NT):(NT={polite:CT(`polite`),assertive:CT(`assertive`)},NT)}function TT(e,t){let n=wT();if(!n)return;let r=t===`assertive`?n.assertive:n.polite;r.textContent=``,requestAnimationFrame(()=>{r.textContent=e}),ST(t,r)}function ET(e){if(xT(e),!NT)return;let t=e===`assertive`?NT.assertive:NT.polite;t.textContent=``}function DT(){return(0,OT.useCallback)((e,t=`polite`)=>{if(!e){ET(t);return}TT(e,t)},[])}var OT,kT,AT,jT,MT,NT,PT=o((()=>{OT=u(f(),1),kT=`data-astryx-live-region`,AT=`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;`,jT=2e3,MT={polite:null,assertive:null},NT=null}));function FT(e={}){let{announce:t,resetAfterMs:n=LT}=e,r=DT(),[i,a]=(0,IT.useState)(!1),o=(0,IT.useRef)(null);return(0,IT.useEffect)(()=>()=>{o.current!=null&&clearTimeout(o.current)},[]),{copy:(0,IT.useCallback)(async e=>{try{return await navigator.clipboard.writeText(e),a(!0),t&&r(t),o.current!=null&&clearTimeout(o.current),o.current=setTimeout(()=>{o.current=null,a(!1)},n),!0}catch{return!1}},[r,t,n]),isCopied:i}}var IT,LT,RT=o((()=>{IT=u(f(),1),PT(),LT=2e3}));function zT(e,t){HT.set(e,t)}function BT(e){HT.delete(e)}function VT(e){return HT.get(e)}var HT,UT=o((()=>{HT=new WeakMap}));function WT(e){if(e.tabIndex<0||e.matches(`:disabled`)||e.closest(`[inert], [hidden]`)!=null||e.getClientRects().length===0)return!1;let t=getComputedStyle(e).visibility;return t!==`hidden`&&t!==`collapse`}function GT(e,t){let n=t.querySelectorAll(dC),r=t.matches(`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`)&&WT(t)?t:null;for(let e of n)if(!(r!=null&&e.tabIndex<=0)&&WT(e)){if(e.tabIndex>0)return null;r??=e}if(r==null||r.tabIndex!==0||!r.matches(`a[href], button`)||r.closest(`[aria-hidden="true"]`)!=null||r.matches(`[aria-disabled="true"], [aria-haspopup]:not([aria-haspopup="false"])`))return null;let i=r;for(;i!=null&&i!==e;){let e=i.getAttribute(`role`)?.trim().toLowerCase(),t=i===r&&(e===`button`&&r.localName===`button`||e===`link`&&r.localName===`a`);if(e!=null&&e!==``&&!t&&!qT.has(e)||i===r&&e!=null&&e!==``&&!t||i.hasAttribute(`aria-activedescendant`)||i.isContentEditable||i.matches(`[contenteditable]:not([contenteditable="false"])`)||VT(i)!=null)return null;let n=getComputedStyle(i);if(/^(auto|scroll|overlay)$/.test(n.overflowX)&&i.scrollWidth>i.clientWidth+1||/^(auto|scroll|overlay)$/.test(n.overflowY)&&i.scrollHeight>i.clientHeight+1)return null;i=i.parentElement}return i===e?r:null}function KT(e,t){let n=e.ownerDocument,r=n.defaultView;if(r==null)return()=>{};let i=null,a=null,o=null,s,c,l=()=>{i=null,a=null,r.clearTimeout(s),c?.(),c=void 0},u=t=>{if(l(),!(t.key!==`Tab`||t.ctrlKey||t.metaKey)){if(i=t,a=t.target,t.shiftKey&&o!=null&&n.activeElement===o&&e.contains(o)){let t=e.getAttribute(`tabindex`);e.tabIndex=-1,c=()=>{e.getAttribute(`tabindex`)===`-1`&&(t==null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t))}}s=r.setTimeout(l,0)}},d=r=>{let s=i,c=a;if(l(),r.target!==e){e.contains(r.target)||(o=null);return}if(o=null,s==null||s.shiftKey||s.defaultPrevented||s.eventPhase!==0||r.relatedTarget!=null&&r.relatedTarget!==c)return;let u=GT(e,t);u!=null&&(o=u,u.focus(),n.activeElement!==u&&(o=null))};return n.addEventListener(`keydown`,u,!0),n.addEventListener(`keyup`,l,!0),n.addEventListener(`pointerdown`,l,!0),n.addEventListener(`focusin`,d,!0),r.addEventListener(`blur`,l),()=>{l(),n.removeEventListener(`keydown`,u,!0),n.removeEventListener(`keyup`,l,!0),n.removeEventListener(`pointerdown`,l,!0),n.removeEventListener(`focusin`,d,!0),r.removeEventListener(`blur`,l)}}var qT,JT=o((()=>{fC(),UT(),qT=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 YT(e,t){let n=e.toLowerCase(),r=n.startsWith(`vertical`)||n.startsWith(`sideways`),i=t===`rtl`;return r?{inline:`y`,block:`x`,inlineReversed:n===`sideways-lr`?!i:i,blockReversed:n.endsWith(`-rl`)}:{inline:`x`,block:`y`,inlineReversed:i,blockReversed:!1}}function XT(e){return e===`auto`||e===`scroll`||e===`overlay`}function ZT(e,t){let n=getComputedStyle(e);return t===`x`?{clientExtent:e.clientWidth,contentExtent:e.scrollWidth,offset:e.scrollLeft,overflow:n.overflowX}:{clientExtent:e.clientHeight,contentExtent:e.scrollHeight,offset:e.scrollTop,overflow:n.overflowY}}function QT(e,t){return e.isConnected&&t.display!==`none`&&e.clientWidth>0&&e.clientHeight>0}function $T(e,t,n){if(!QT(e,getComputedStyle(e)))return null;let r=n[t],i=r===`x`?e.clientWidth:e.clientHeight;return(r===`x`?e.scrollWidth:e.scrollHeight)-i>1}function eE(e,t,n){if(!QT(e,getComputedStyle(e)))return null;let r=n[t],i=ZT(e,r),a=i.contentExtent-i.clientExtent;if(!XT(i.overflow)||a<=1)return tE;let o=n[`${t}Reversed`],s=Math.min(a,Math.max(0,o?Math.abs(i.offset):i.offset));return{isScrollable:!0,atStart:s<=1,atEnd:s>=a-1}}var tE,nE=o((()=>{tE={isScrollable:!1,atStart:!0,atEnd:!0}}));function rE(e,t){return e===t||e===`both`}function iE(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 aE(e,t){return e.inline===t.inline&&e.block===t.block}function oE(e,t){return e.inline===t.inline&&e.block===t.block&&e.inlineReversed===t.inlineReversed&&e.blockReversed===t.blockReversed}function sE(e){if(e==null)return;let t={...e};return delete t.overflow,delete t.overflowX,delete t.overflowY,delete t.overflowInline,delete t.overflowBlock,t}function cE(e){let t=(0,uE.useRef)(void 0),n=(0,uE.useRef)(null);return(0,uE.useCallback)(r=>{if(n.current!=null&&Object.is(t.current,r))return n.current;let i=Zt(r,e);return t.current=r,n.current=i,i},[e])}function lE({axis:e,keyboardAccess:t,overscroll:n=`allow`,stickyContainment:r=`whenScrollable`}){let[i,a]=(0,uE.useState)(null),[o,s]=(0,uE.useState)(null),[c,l]=(0,uE.useState)(fE),[u,d]=(0,uE.useState)(pE),[f,p]=(0,uE.useState)(mE),m=(0,uE.useRef)(fE),h=(0,uE.useCallback)(e=>{a(t=>t===e?t:e)},[]),g=(0,uE.useCallback)(e=>{s(t=>t===e?t:e)},[]),_=cE(h),v=cE(g);Cr(()=>{if(i==null||o==null)return;let t=null,n=!0,r=()=>{t=null;let n=getComputedStyle(i),r=YT(n.writingMode,n.direction),a=rE(e,`inline`)?$T(i,`inline`,r):!1,o=rE(e,`block`)?$T(i,`block`,r):!1,s=rE(e,`inline`)?eE(i,`inline`,r):dE,c=rE(e,`block`)?eE(i,`block`,r):dE;if(a==null||o==null||s==null||c==null)return;let u={inline:a,block:o},f={inline:s,block:c};m.current=f,zT(i,f),d(e=>aE(e,u)?e:u),l(e=>iE(e,f)?e:f),p(e=>oE(e,r)?e:r)},a=()=>{n&&t==null&&(t=window.requestAnimationFrame(r))};zT(i,m.current),r();let s=on(i,a),c=on(o,a);i.addEventListener(`scroll`,a,{passive:!0}),window.addEventListener(`resize`,a),window.visualViewport?.addEventListener(`resize`,a),o.addEventListener(`load`,a,!0),i.addEventListener(`transitionend`,a),i.addEventListener(`animationend`,a),o.addEventListener(`transitionend`,a),o.addEventListener(`animationend`,a);let u=typeof MutationObserver>`u`?null:new MutationObserver(a);u?.observe(i,{attributes:!0,attributeFilter:[`class`,`dir`,`hidden`,`style`]}),u?.observe(o,{attributes:!0,attributeFilter:[`class`,`dir`,`hidden`,`style`],characterData:!0,childList:!0,subtree:!0});let f=i.parentElement;for(;f!=null;)u?.observe(f,{attributes:!0,attributeFilter:[`class`,`dir`,`hidden`,`style`]}),f=f.parentElement;let h=document.fonts;return h?.addEventListener?.(`loadingdone`,a),h?.ready.then(a),()=>{n=!1,BT(i),s(),c(),u?.disconnect(),i.removeEventListener(`scroll`,a),window.removeEventListener(`resize`,a),window.visualViewport?.removeEventListener(`resize`,a),o.removeEventListener(`load`,a,!0),i.removeEventListener(`transitionend`,a),i.removeEventListener(`animationend`,a),o.removeEventListener(`transitionend`,a),o.removeEventListener(`animationend`,a),h?.removeEventListener?.(`loadingdone`,a),t!=null&&window.cancelAnimationFrame(t)}},[e,o,i]);let y=(0,uE.useMemo)(()=>({inline:rE(e,`inline`)?c.inline:dE,block:rE(e,`block`)?c.block:dE}),[e,c]),b=y.inline.isScrollable||y.block.isScrollable;return Cr(()=>{if(t.owner===`contentOrViewport`&&b&&i!=null&&o!=null)return KT(i,o)},[o,b,t.owner,i]),{getViewportProps:(0,uE.useCallback)((a={})=>{let o=y.inline.isScrollable||y.block.isScrollable,s=rE(e,`inline`)&&f.inline===`x`||rE(e,`block`)&&f.block===`x`,c=rE(e,`inline`)&&f.inline===`y`||rE(e,`block`)&&f.block===`y`,l=u.inline&&f.inline===`x`||u.block&&f.block===`x`,d=u.inline&&f.inline===`y`||u.block&&f.block===`y`,p=l||d||r===`always`,m=r===`always`?s:l,h=r===`always`?c:d,{xstyle:g,...v}=a,b=U({...v,style:sE(v.style)},z(g,hE.overflow(p?m?`auto`:`hidden`:`clip`,p?h?`auto`:`hidden`:`clip`))),x=t.owner!==`content`,S=(!x||!o)&&i!=null&&typeof document<`u`&&document.activeElement===i,C={...b.style},w=n===`contain`&&y.inline.isScrollable,T=n===`contain`&&y.block.isScrollable,E=f.inline,D=f.block;rE(e,`inline`)&&(C[E===`x`?`overscrollBehaviorX`:`overscrollBehaviorY`]=w?`contain`:`auto`),rE(e,`block`)&&(C[D===`x`?`overscrollBehaviorX`:`overscrollBehaviorY`]=T?`contain`:`auto`);let O=t.owner===`content`?{}:{role:t.role??`group`,"aria-label":t.label,tabIndex:x&&o?0:S?-1:void 0};return{...b,...O,ref:_(b.ref),style:C,"data-scroll-axis":e,"data-scrollable-inline":y.inline.isScrollable?`true`:void 0,"data-scrollable-block":y.block.isScrollable?`true`:void 0,"data-scroll-inline-start":y.inline.atStart?`true`:void 0,"data-scroll-inline-end":y.inline.atEnd?`true`:void 0,"data-scroll-block-start":y.block.atStart?`true`:void 0,"data-scroll-block-end":y.block.atEnd?`true`:void 0}},[e,_,t,f,u,n,y,r,i]),getContentProps:(0,uE.useCallback)((e={})=>({...e,ref:v(e.ref),"data-scroll-content":``}),[v]),state:y}}var uE,dE,fE,pE,mE,hE,gE=o((()=>{uE=u(f(),1),B(),JT(),wr(),Xt(),Qt(),un(),nE(),UT(),dE={isScrollable:!1,atStart:!0,atEnd:!0},fE={inline:dE,block:dE},pE={inline:!1,block:!1},mE={inline:`x`,block:`y`,inlineReversed:!1,blockReversed:!1},hE={overflow:(e,t)=>[{kXHlph:e==null?e:`xyto64x`,kORKVm:t==null?t:`x4ncuvb`,$$css:!0},{"--x-overflowX":e??void 0,"--x-overflowY":t??void 0}]}}));function _E(e){if(typeof window>`u`||typeof document>`u`)return vE;let t=document.documentElement,n=t.clientWidth;if(n===0)return vE;let r=t.style.scrollbarGutter,i=e.style.paddingRight,a=e.getBoundingClientRect().width,o=!1,s=!1,c=!1;return window.innerWidth>n&&(t.style.scrollbarGutter=`stable`,o=!0),{settle(){if(c)return;c=!0;let t=e.getBoundingClientRect().width-a;if(t<=0)return;let n=Number.parseFloat(window.getComputedStyle(e).paddingRight)||0;e.style.paddingRight=`${n+t}px`,s=!0},release(){s&&=(e.style.paddingRight=i,!1),o&&=(t.style.scrollbarGutter=r,!1)}}}var vE,yE=o((()=>{vE={settle(){},release(){}}}));function bE(e){(0,xE.useEffect)(()=>{if(!e)return;let{body:t}=document;if(SE===0){let e=window.scrollX,n=window.scrollY,r=_E(t);CE={scrollX:e,scrollY:n,overflow:t.style.overflow,position:t.style.position,top:t.style.top,left:t.style.left,right:t.style.right,gutter:r},t.style.overflow=`hidden`,t.style.position=`fixed`,t.style.top=`-${n}px`,t.style.left=`0`,t.style.right=`0`,r.settle()}return SE+=1,()=>{if(--SE,SE!==0||CE==null)return;let e=CE;CE=null,t.style.overflow=e.overflow,t.style.position=e.position,t.style.top=e.top,t.style.left=e.left,t.style.right=e.right,e.gutter.release(),window.scrollTo(e.scrollX,e.scrollY)}},[e])}var xE,SE,CE,wE=o((()=>{xE=u(f(),1),yE(),SE=0,CE=null}));function TE(e=`slideDown`){let[t]=(0,EE.useState)(()=>DE);return t?OE[e]:null}var EE,DE,OE,kE=o((()=>{EE=u(f(),1),DE=!1,typeof window<`u`&&requestAnimationFrame(()=>{DE=!0}),OE={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 AE(e){if(e.getAttribute(`role`)===`combobox`)return!0;let t=e.getAttribute(`aria-haspopup`);return t!=null&&PE.has(t)}function jE({containerRef:e,inputRef:t,disabled:n=!1}){return BC({containerRef:e,interactiveRef:t,onClick:(0,ME.useCallback)(()=>{let e=t.current;e!=null&&(e instanceof HTMLElement&&AE(e)?e.click():e instanceof HTMLInputElement&&NE.has(e.type)||e instanceof HTMLTextAreaElement?e.focus():e instanceof HTMLElement?e.click():`focus`in e&&e.focus())},[t]),disabled:n})}var ME,NE,PE,FE=o((()=>{ME=u(f(),1),WC(),NE=new Set([`text`,`password`,`email`,`number`,`search`,`tel`,`url`,`date`,`datetime-local`,`month`,`time`,`week`]),PE=new Set([`true`,`menu`,`listbox`,`tree`,`grid`,`dialog`])}));function IE({status:e,statusVariant:t=`attached`,isInGroup:n=!1,size:r=`md`}){let i=xf(),a=t===`tooltip`&&!!e?.message,[o,s]=(0,LE.useState)(void 0),c=va({placement:`above`,isEnabled:a,isOpen:o}),l=(0,LE.useCallback)(()=>{s(void 0)},[]),u=(0,LE.useCallback)(()=>{typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(hover: none)`).matches&&s(e=>e!==!0)},[]);if((0,LE.useEffect)(()=>{if(o!==!0)return;let e=e=>{e.key===`Escape`&&s(void 0)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[o]),!e||n||t===`detached`)return{statusIcon:null,describedBy:void 0};let d=(0,RE.jsx)(ru,{icon:zE[e.type],size:r,color:e.type,...V(`input-status-icon`,{size:r,status:e.type})});return a?{statusIcon:(0,RE.jsxs)(RE.Fragment,{children:[(0,RE.jsx)(`button`,{type:`button`,ref:c.ref,"aria-label":i(BE[e.type]),"aria-describedby":c.describedBy,onClick:u,onBlur:l,...z(Ln.focusVisible,VE.statusButton),children:d}),c.renderTooltip(e.message)]}),describedBy:c.describedBy}:{statusIcon:d,describedBy:void 0}}var LE,RE,zE,BE,VE,HE=o((()=>{LE=u(f(),1),B(),uu(),du(),Df(),H(),zn(),RE=G(),zE={warning:`warning`,error:`error`,success:`success`},BE={warning:`@astryx.input.statusButton.warning`,error:`@astryx.input.statusButton.error`,success:`@astryx.input.statusButton.success`},VE={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 UE(e){let{onLongPress:t,disabled:n=!1,delayMs:r=GE,moveCancelPx:i=KE}=e,a=(0,WE.useRef)(null),o=(0,WE.useRef)(null),s=(0,WE.useRef)(t);s.current=t;let c=(0,WE.useCallback)(()=>{a.current!=null&&(clearTimeout(a.current),a.current=null),o.current=null},[]),l=(0,WE.useCallback)(e=>{if(n)return;if(e.touches.length!==1){c();return}let t=e.touches[0];c(),o.current={x:t.clientX,y:t.clientY},a.current=setTimeout(()=>{let e=o.current;e!=null&&s.current({x:e.x,y:e.y})},r)},[n,r,c]),u=(0,WE.useCallback)(e=>{let t=o.current;if(t==null)return;if(e.touches.length!==1){c();return}let n=e.touches[0];(Math.abs(n.clientX-t.x)>i||Math.abs(n.clientY-t.y)>i)&&c()},[i,c]);return(0,WE.useEffect)(()=>c,[c]),{onTouchStart:l,onTouchMove:u,onTouchEnd:c,onTouchCancel:c}}var WE,GE,KE,qE=o((()=>{WE=u(f(),1),GE=500,KE=10}));function JE(e,t=!1){let n=(0,YE.useCallback)(t=>{let n=e.current?.firstElementChild;n instanceof HTMLElement&&Object.assign(n.style,t?Fn:In)},[e]),r=(0,YE.useCallback)(e=>{if(t)return;let r=e.target;r instanceof HTMLElement&&!r.matches(`:focus-visible`)||n(!0)},[t,n]),i=(0,YE.useCallback)(()=>n(!1),[n]);return(0,YE.useMemo)(()=>({focusProps:{onFocus:r,onBlur:i}}),[r,i])}var YE,XE=o((()=>{YE=u(f(),1),zn()})),ZE=o((()=>{SC(),PT(),RT(),wr(),Nw(),Hn(),Hw(),B(),Et(),W(),H(),Ei(),Df(),Tl(),xr(),un(),TC(),gE(),wE(),kE(),zl(),WC(),FE(),HE(),Iu(),qE(),XE()}));function QE(e,t){if(typeof e==`number`)return Number.isFinite(e)&&e>0&&e<=1?e*t:null;let n=oD.exec(e.trim());if(n===null)return null;let r=Number.parseFloat(n[1]);return r>0?n[2].toLowerCase()===`%`?r/100*t:r:null}function $E(e){return QE(e,1)!==null}function eD(e,t){let n=[];for(let r of e){let e=QE(r,t);e!==null&&n.push(e)}return n}function tD(e,t,n=48){let r=[0,...t.filter(t=>t>0&&t<e).map(t=>e-t)].sort((e,t)=>e-t),i=[];for(let e of r){let t=i[i.length-1];(t===void 0||e-t>=n)&&i.push(e)}return i}function nD(e,t){return t.reduce((t,n)=>Math.abs(n-e)<Math.abs(t-e)?n:t,t[0])}function rD(e,t){if(e.length<2||t<=0)return null;let n=e[e.length-1];return t-n<=.25*t?n:null}function iD(e,t,n,r){let i=r!==null,a=i?t[t.length-2]:t[t.length-1],o=i?r:n,s=i?sD:0;return e<=a?1:e>=o?s:1-(1-s)*((e-a)/(o-a))}function aD(e,t,n,r){let i=t;if(n>0){let e=t.filter(e=>e>=r);e.length>0&&(i=e)}else if(n<0){let e=t.filter(e=>e<=r);e.length>0&&(i=e)}return nD(e,i)}var oD,sD,cD=o((()=>{oD=/^(\d+(?:\.\d+)?|\.\d+)(px|%)$/i,sD=.3}));function lD(){return window.visualViewport?.height??window.innerHeight}function uD(){return lD()>=window.innerHeight-.5}function dD(){let e=window.navigator.userAgent;return/iPad|iPhone|iPod/.test(e)||e.includes(`Macintosh`)&&window.navigator.maxTouchPoints>1}function fD(e){return e instanceof HTMLTextAreaElement?!e.disabled&&!e.readOnly:e instanceof HTMLInputElement?!e.disabled&&!e.readOnly&&!_D.has((e.getAttribute(`type`)??`text`).toLowerCase()):e instanceof HTMLElement&&e.matches(`[contenteditable]:not([contenteditable="false"])`)}function pD(e,t){if(!(e instanceof Element))return null;let n=e.closest(`input, textarea, [contenteditable]:not([contenteditable="false"])`);if(t.contains(n)&&fD(n))return n;let r=e.closest(`label`),i=r instanceof HTMLLabelElement?r.control:null;return t.contains(i)&&fD(i)?i:null}function mD({bodyRef:e,bottomClearance:t,isEnabled:n,isFullyExpanded:r,isPageScrollLocked:i,isSheetTraveling:a,isOpen:o,isPresented:s,sheetRef:c}){let l=(0,hD.useRef)(!1),u=(0,hD.useRef)(!1),d=(0,hD.useRef)(r),f=(0,hD.useRef)(o);d.current=r,f.current=o,(0,hD.useEffect)(()=>{if(!n||!a)return;let e=c.current,t=document.activeElement;e&&t instanceof HTMLElement&&t!==e&&e.contains(t)&&(u.current=l.current,e.focus({preventScroll:!0}))},[n,a,c]),(0,hD.useEffect)(()=>{if(!n||!s||o)return;let e=c.current,t=document.activeElement;e&&t instanceof HTMLElement&&t!==e&&e.contains(t)&&(u.current=l.current,t.blur())},[n,o,s,c]),(0,hD.useEffect)(()=>{let r=e.current,a=c.current;if(!n||!s||!r)return;let o=null,p=null,m=dD(),h=()=>{r.style.setProperty(gD,`0px`),o=null,p=null,l.current=!1,u.current=!1},g=(e,t)=>{if(typeof r.scrollBy!=`function`){r.scrollTop+=e;return}let n=typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;r.scrollBy({top:e,behavior:t&&!n?`smooth`:`instant`})},_=(e,n)=>{let i=r.getBoundingClientRect(),a=e.getBoundingClientRect(),o=lD(),s=Math.max(0,i.bottom-o)>0?t:0,c=i.top,l=Math.min(i.bottom,o-s);l<=c||(a.bottom>l?g(a.bottom-l,n):a.top<c&&g(a.top-c,n))},v=e=>{let n=lD();if(uD()){h();return}if(Math.max(0,e.bodyBottom-n)===0){h();return}let i=Math.max(0,e.bodyBottom-(n-t));r.style.setProperty(gD,`${i}px`)},y=e=>{if(!d.current)return;let t=pD(e.relatedTarget,r);if(t){t!==document.activeElement&&t.focus({preventScroll:!0});return}let n=pD(e.target,r);f.current&&n&&!e.relatedTarget&&a?.focus({preventScroll:!0})},b=()=>{let e=document.activeElement;if(!d.current||!(e instanceof HTMLElement)||!r.contains(e)||!fD(e)){if(u.current&&o){v(o);return}h();return}u.current=!1;let n=r.getBoundingClientRect(),a=lD(),s=Math.max(0,n.bottom-a),c=s>0?t:0;o=s>0?{bodyBottom:n.bottom}:null,i&&s>0&&!l.current&&(p={x:window.scrollX,y:window.scrollY}),l.current=s>0;let f=s>0?Math.max(0,n.bottom-(a-c)):0;r.style.setProperty(gD,`${f}px`),_(e,s>0)},x=0,S=()=>{cancelAnimationFrame(x),x=requestAnimationFrame(b)},C=()=>{let e=p;if(e==null||window.scrollX===e.x&&window.scrollY===e.y)return;window.scrollTo(e.x,e.y);let t=document.activeElement;t instanceof HTMLElement&&r.contains(t)&&fD(t)&&_(t,!1)},w=typeof ResizeObserver>`u`?null:new ResizeObserver(S),T=()=>{if(!w)return;w.disconnect();let e=new Set([r]);a&&e.add(a);for(let t of r.children)e.add(t);let t=document.activeElement;if(t instanceof HTMLElement&&r.contains(t))for(let n=t;n&&n!==r;n=n.parentElement)e.add(n);for(let t of e)w.observe(t)},E=typeof MutationObserver>`u`?null:new MutationObserver(e=>{e.every(e=>e.type===`attributes`&&e.target===r)||(T(),S())}),D=()=>{T(),S()},O=()=>{u.current=l.current,S()},k=e=>{e.target===a&&e.propertyName===`transform`&&S()},A=window.visualViewport;return m&&document.addEventListener(`blur`,y,!0),r.addEventListener(`focusin`,D),r.addEventListener(`focusout`,O),a?.addEventListener(`transitionend`,k),A?.addEventListener(`resize`,S),A?.addEventListener(`scroll`,S),window.addEventListener(`scroll`,C),window.addEventListener(`resize`,S),E?.observe(r,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),T(),S(),()=>{cancelAnimationFrame(x),m&&document.removeEventListener(`blur`,y,!0),r.removeEventListener(`focusin`,D),r.removeEventListener(`focusout`,O),a?.removeEventListener(`transitionend`,k),A?.removeEventListener(`resize`,S),A?.removeEventListener(`scroll`,S),window.removeEventListener(`scroll`,C),window.removeEventListener(`resize`,S),w?.disconnect(),E?.disconnect(),r.style.removeProperty(gD),l.current=!1,u.current=!1}},[e,t,n,i,s,c])}var hD,gD,_D,vD=o((()=>{hD=u(f(),1),gD=`--_sheet-keyboard-inset`,_D=new Set([`button`,`checkbox`,`color`,`file`,`hidden`,`image`,`radio`,`range`,`reset`,`submit`])}));function yD(e){return e.syntheticTouch===!0}function bD(){typeof navigator<`u`&&typeof navigator.vibrate==`function`&&(ED()||navigator.vibrate(8))}function xD(e,t){let n=t[0],r=Math.abs(e-n);for(let i of t){let t=Math.abs(e-i);t<r&&(r=t,n=i)}if(r>=jD)return e;let i=r/jD,a=1-i*i;return e+(n-e)*a}function SD(e,t,n){return Math.max(0,e-t-n)}function CD(e){let t=Number.parseFloat(getComputedStyle(e).paddingBlockEnd);return Number.isFinite(t)?t:0}function wD(e){if(!e)return 0;let t=CD(e);return Math.max(0,e.scrollHeight-e.clientHeight-t)-e.scrollTop}function TD(e,t,n){return Math.max(0,e-n-t)}function ED(){return typeof window>`u`||!window.matchMedia?!1:window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function DD({isOpen:e,canDismiss:t=!0,offscreenBlockEndInset:n=0,onDismiss:r,snapHeights:i,onSnap:a,onScrimOpacity:o}){let[s,c]=(0,X.useState)(0),[l,u]=(0,X.useState)(0),[d,f]=(0,X.useState)(!1),[p,m]=(0,X.useState)(0),[h,g]=(0,X.useState)(0),[_,v]=(0,X.useState)(0),y=(0,X.useRef)(0),b=(0,X.useRef)(0),[x,S]=(0,X.useState)(null),[C,w]=(0,X.useState)(!1),T=(0,X.useRef)(0),E=(0,X.useRef)(null),D=(0,X.useRef)(null),O=(0,X.useRef)(n);O.current=Math.max(0,n);let k=(0,X.useCallback)(e=>{let t=Math.max(0,e);y.current=t,v(t)},[]),A=(0,X.useCallback)(e=>{let t=Math.max(0,e);Math.abs(t-T.current)>.5&&(T.current=t,g(t))},[]),j=(0,X.useCallback)(()=>{w(!0),E.current=null,S(null);let e=D.current;D.current=null,e!=null&&A(e)},[A]),M=(0,X.useCallback)((e,t,n,r,i,a,o)=>{let s=SD(e,n,a);if(o&&Math.abs(r-t)>.5&&!ED()){D.current=s,E.current=i,S(i);return}D.current=null,E.current=null,S(null),w(Math.abs(i-n)>.5),A(s)},[A]),N=(0,X.useRef)(0);N.current=d?s:l;let ee=(0,X.useRef)(e);ee.current=e;let P=(0,X.useRef)(i);P.current=i;let te=(0,X.useRef)(r),F=(0,X.useRef)(t),ne=(0,X.useRef)(a),I=(0,X.useRef)(o);(0,X.useEffect)(()=>{te.current=r,F.current=t,ne.current=a,I.current=o});let re=(0,X.useRef)(null),ie=(0,X.useRef)(0),ae=(0,X.useRef)(null),oe=(0,X.useRef)(null),se=(0,X.useRef)(null);(0,X.useLayoutEffect)(()=>{if(!C)return;ae.current?.offsetHeight;let e=requestAnimationFrame(()=>{w(!1)});return()=>cancelAnimationFrame(e)},[C]);let ce=(0,X.useCallback)(e=>{e<=0||!ee.current||N.current>0||(ie.current=e,m(t=>t===e?t:e))},[]),le=(0,X.useCallback)(e=>{if(se.current?.disconnect(),se.current=null,ae.current=e,!e||typeof ResizeObserver>`u`){e&&ce(e.getBoundingClientRect().height);return}ce(e.getBoundingClientRect().height);let t=new ResizeObserver(e=>{let t=e[0];if(t){let e=t.borderBoxSize?.[0]?.blockSize;ce(e??t.target.getBoundingClientRect().height)}});t.observe(e),se.current=t},[ce]);(0,X.useEffect)(()=>()=>se.current?.disconnect(),[]),(0,X.useEffect)(()=>{e&&(c(0),u(0),f(!1),w(!1),k(0),b.current=0,T.current=0,E.current=null,D.current=null,g(0),S(null))},[e,k]);let ue=(0,X.useCallback)(()=>ie.current>0?ie.current:ae.current?.getBoundingClientRect().height??0,[]),de=(0,X.useCallback)(e=>{let t=TD(e,0,O.current),n=tD(t,P.current?.()??[]);return{offsets:n,peekOffset:rD(n,t)}},[]),fe=(0,X.useCallback)(()=>{let e=ae.current;if(!e)return ie.current;let t=e.style.height;if(t===``)return e.getBoundingClientRect().height;e.style.height=``;let n=e.getBoundingClientRect().height;return e.style.height=t,n},[]),pe=(0,X.useCallback)(()=>{if(!ee.current||re.current!=null||E.current!=null)return;let e=fe();if(e<=0)return;let{offsets:t,peekOffset:n}=de(e),r=Math.min(b.current,t.length-1),i=t[r],a=i===n?0:i,o=y.current;if(e===ie.current&&Math.abs(i-N.current)<=.5&&Math.abs(a-o)<=.5)return;ie.current=e,m(e),b.current=r,M(o,i,a,i,o,wD(oe.current),!1),k(a),u(i),ne.current?.(TD(e,i,O.current));let s=t[t.length-1],c=TD(e,s,O.current);I.current?.(iD(i,t,s+c*AD,n))},[fe,M,k,de]);(0,X.useEffect)(()=>{if(e&&typeof window<`u`)return window.addEventListener(`resize`,pe),window.addEventListener(`orientationchange`,pe),()=>{window.removeEventListener(`resize`,pe),window.removeEventListener(`orientationchange`,pe)}},[e,pe]);let L=(0,X.useRef)(!1);(0,X.useLayoutEffect)(()=>{if(!L.current){L.current=!0;return}pe()},[pe,i]);let R=(0,X.useCallback)(e=>{let t=re.current;if(t==null)return;re.current=null,e?.hasPointerCapture?.(t.pointerId)&&e.releasePointerCapture(t.pointerId),c(t.baseOffset),f(!1),M(t.baseLayoutOffset,t.baseOffset,t.baseLayoutOffset,t.renderedOffset,t.layoutOffset,t.naturalEndGap,!0);let{offsets:n,peekOffset:r}=de(t.height),i=n[n.length-1],a=i+TD(t.height,i,O.current)*AD;I.current?.(iD(t.baseOffset,n,a,r))},[M,de]);(0,X.useEffect)(()=>{let e=()=>R(),t=()=>{document.visibilityState===`hidden`&&R()};return window.addEventListener(`blur`,e),document.addEventListener(`visibilitychange`,t),()=>{window.removeEventListener(`blur`,e),document.removeEventListener(`visibilitychange`,t)}},[R]);let me=(0,X.useCallback)((e,t,n,r,i,a,o,s,l,d)=>{let{offsets:f,peekOffset:p}=de(n),m=f[f.length-1],h=TD(n,m,O.current),g=Math.abs(t)>OD&&i>kD,_=e=>{let t=e===p?0:e;M(o,e,t,s,l,d,!0),k(t),b.current=Math.max(0,f.indexOf(e)),u(e),ne.current?.(TD(n,e,O.current));let r=m+h*AD;I.current?.(iD(e,f,r,p)),e!==a&&bD()};if(r>0&&g){F.current?(M(o,a,o,o,o,d,!1),te.current()):_(m);return}if(r<0&&g){M(o,0,0,s,l,d,!0),k(0),b.current=0,c(0),u(0),ne.current?.(TD(n,0,O.current)),I.current?.(1),bD();return}if(e>m+h*AD){F.current?(M(o,a,o,o,o,d,!1),te.current()):_(m);return}_(aD(e,f,r,a))},[M,k,de]),he=(0,X.useCallback)((e,t,n)=>{let r=e.currentTarget,i=yD(e);i||r.setPointerCapture?.(e.pointerId);let a=n??e.clientY,o=wD(oe.current),s=y.current;re.current={syntheticTouch:i,pointerId:e.pointerId,startCoord:a,lastCoord:e.clientY,lastTime:e.timeStamp,velocity:0,height:t,baseOffset:l,baseLayoutOffset:s,renderedOffset:l,layoutOffset:s,naturalEndGap:o},A(SD(s,s,o)),c(l),f(!0)},[l,A]),ge=(0,X.useCallback)(e=>{e.button===0&&e.isPrimary&&(e.preventDefault(),he(e,ue()))},[he,ue]),_e=(0,X.useCallback)(e=>{re.current!=null&&(e.preventDefault(),R(e.currentTarget))},[R]),ve=(0,X.useCallback)(e=>{re.current?.syntheticTouch||re.current?.pointerId===e.pointerId&&R()},[R]),ye=(0,X.useCallback)(e=>{let t=re.current;if(!t||t.pointerId!==e.pointerId||t.syntheticTouch&&!yD(e))return;let n=e.clientY-t.startCoord,r=e.timeStamp-t.lastTime;r>0&&(t.velocity=(e.clientY-t.lastCoord)/r,t.lastCoord=e.clientY,t.lastTime=e.timeStamp);let{offsets:i,peekOffset:a}=de(t.height),o=t.baseOffset+n,s=i[i.length-1],l;l=o<0?Math.max(-48,o*MD):o>s?o:xD(o,i);let u=l<t.baseOffset?0:t.baseLayoutOffset;t.renderedOffset=l,t.layoutOffset=u,c(l),A(SD(t.baseLayoutOffset,u,t.naturalEndGap));let d=i[i.length-1],f=d+TD(t.height,d,O.current)*AD;I.current?.(iD(l,i,f,a))},[de,A]),be=(0,X.useCallback)(e=>{let t=re.current;if(!t||t.pointerId!==e.pointerId||t.syntheticTouch&&!yD(e))return;let n=e.currentTarget,r=e.clientY-t.startCoord,i=Math.max(0,t.baseOffset+r),a=r===0?0:r>0?1:-1;re.current=null,t.syntheticTouch||n.releasePointerCapture?.(e.pointerId),f(!1),me(i,t.velocity,t.height||1,a,Math.abs(r),t.baseOffset,t.baseLayoutOffset,t.renderedOffset,t.layoutOffset,t.naturalEndGap)},[me]),xe=(0,X.useRef)(null),Se=(0,X.useCallback)(e=>{if(e.button!==0||!e.isPrimary)return;let t=e.currentTarget;if(t.scrollTop>0){xe.current=null;return}xe.current={pointerId:e.pointerId,startCoord:e.clientY,scroller:t}},[]),Ce=(0,X.useCallback)(e=>{if(re.current){ye(e);return}let t=xe.current;if(!t||t.pointerId!==e.pointerId)return;let n=e.clientY-t.startCoord;n>PD&&t.scroller.scrollTop<=0?(xe.current=null,he(e,ue(),t.startCoord),ye(e)):n<0&&(xe.current=null)},[he,ye,ue]),we=(0,X.useCallback)(e=>{xe.current=null,!re.current?.syntheticTouch&&re.current&&be(e)},[be]),Te=(0,X.useRef)(null),Ee=(0,X.useRef)(null),De=(0,X.useRef)(he),Oe=(0,X.useRef)(R),ke=(0,X.useRef)(ye),Ae=(0,X.useRef)(be),je=(0,X.useRef)(ue);(0,X.useEffect)(()=>{De.current=he,Oe.current=R,ke.current=ye,Ae.current=be,je.current=ue});let Me=(0,X.useCallback)(e=>{let t=(e,t)=>({syntheticTouch:!0,pointerId:e.identifier,clientY:e.clientY,timeStamp:Date.now(),currentTarget:t,setPointerCapture:()=>{},releasePointerCapture:()=>{}}),n=e=>e.scrollTop<=0,r=e=>e.scrollTop+e.clientHeight>=e.scrollHeight-1,i=e=>{let t=e.currentTarget,i=e.changedTouches[0];if(!i){Te.current=null;return}let a=n(t),o=r(t)&&N.current>0;Te.current={id:i.identifier,startY:i.clientY,top:a,bottom:o,contentEndY:null,promotedAtContentEnd:!1}},a=e=>{let i=e.currentTarget,a=Te.current;if(re.current){let n=[...e.changedTouches].find(e=>e.identifier===re.current?.pointerId);if(!n)return;if(a?.promotedAtContentEnd&&a.contentEndY!=null){if(n.clientY>=a.contentEndY){a.contentEndY=null,a.promotedAtContentEnd=!1,Oe.current(i);return}ke.current(t(n,i));return}e.preventDefault(),ke.current(t(n,i));return}if(!a)return;let o=[...e.changedTouches].find(e=>e.identifier===a.id);if(!o)return;let s=o.clientY-a.startY,c=a.top&&s>PD&&n(i),l=a.bottom&&s<-8&&r(i);if(c||l){e.preventDefault(),Te.current=null,De.current(t(o,i),je.current(),a.startY),ke.current(t(o,i));return}(a.top&&s<0||a.bottom&&s>0)&&(a.top=!1,a.bottom=!1),N.current>0&&r(i)?a.contentEndY==null?a.contentEndY=o.clientY:a.contentEndY-o.clientY>=ND&&(a.promotedAtContentEnd=!0,De.current(t(o,i),je.current(),a.contentEndY),ke.current(t(o,i))):a.contentEndY=null},o=e=>{Te.current=null;let n=re.current?.pointerId;if(n==null)return;let r=[...e.changedTouches].find(e=>e.identifier===n),i=e.currentTarget;r?Ae.current(t(r,i)):e.touches.length===0&&Oe.current(i)},s=oe.current;if(s&&Ee.current){let e=Ee.current;s.removeEventListener(`touchstart`,e.start),s.removeEventListener(`touchmove`,e.move),s.removeEventListener(`touchend`,e.end),s.removeEventListener(`touchcancel`,e.end)}oe.current=e,e?(e.addEventListener(`touchstart`,i,{passive:!0}),e.addEventListener(`touchmove`,a,{passive:!1}),e.addEventListener(`touchend`,o,{passive:!0}),e.addEventListener(`touchcancel`,o,{passive:!0}),Ee.current={start:i,move:a,end:o}):Ee.current=null},[]),Ne=Cl(`(prefers-reduced-motion: reduce)`),Pe=(0,X.useCallback)(e=>{if(T.current<=0)return;let t=CD(e),n=Math.max(0,e.scrollHeight-e.clientHeight-t),r=Math.max(0,e.scrollTop-n);r<T.current-.5&&A(r)},[A]),Fe=(0,X.useCallback)(e=>{re.current==null&&E.current==null&&Pe(e.currentTarget)},[Pe]),Ie=d?s:l;return{sheetRef:le,contentProps:(0,X.useMemo)(()=>({style:{transform:Ie===0?void 0:`translateY(${Ie}px)`,transition:e&&(d||C||Ne)?`none`:void 0,touchAction:`none`,overscrollBehavior:`contain`}}),[Ie,d,e,C,Ne]),handleProps:(0,X.useMemo)(()=>({style:{touchAction:`none`,cursor:`grab`},onContextMenu:_e,onLostPointerCapture:ve,onPointerDown:ge,onPointerMove:ye,onPointerUp:be,onPointerCancel:be}),[be,_e,ve,ge,ye]),bodyProps:(0,X.useMemo)(()=>({ref:Me,onContextMenu:_e,onLostPointerCapture:ve,onPointerDown:Se,onPointerMove:Ce,onPointerUp:we,onPointerCancel:we,onScroll:Fe}),[Me,we,Se,Ce,Fe,_e,ve]),bodyElementRef:oe,dragOffset:s,settledOffset:l,isDragging:d,sheetHeight:p,scrollPreservationInset:h,settlingLayoutOffset:x,settledLayoutOffset:_,completeScrollAreaSettle:j}}var X,OD,kD,AD,jD,MD,ND,PD,FD=o((()=>{X=u(f(),1),ZE(),cD(),OD=1.2,kD=48,AD=.4,jD=40,MD=.35,ND=4,PD=8}));function ID(){return typeof window>`u`?0:window.innerHeight}function LD(e){let t=``;for(let n of e??[])t+=`${typeof n}:${n}|`;return t}function RD(e){return e.kind===`open`?e.entering?`entering`:null:e.kind===`retained`?e.motion===`covered`?null:e.motion:e.kind===`exiting`?`exiting`:null}function zD(e,t,n){if(e==null)return n(),()=>{};let r=!1,i=null,a=()=>{r||(r=!0,i!=null&&clearTimeout(i),e.removeEventListener(`transitionend`,o),e.removeEventListener(`transitioncancel`,o),n())},o=n=>{n.target===e&&n.propertyName===t&&a()};e.addEventListener(`transitionend`,o),e.addEventListener(`transitioncancel`,o);let s=getComputedStyle(e);if(e.style.transition.trim()===`none`||s.transition.trim()===`none`)return a(),()=>{};let c=s.transitionProperty.split(`,`).map(e=>e.trim()),l=s.transitionDuration.split(`,`).map(BD),u=s.transitionDelay.split(`,`).map(BD),d=!1,f=c.reduce((e,n,r)=>{if(n!==t&&n!==`all`)return e;let i=l[r%l.length],a=u[r%u.length];return i==null||a==null?(d=!0,e):Math.max(e,i+a)},0);return d?()=>{e.removeEventListener(`transitionend`,o),e.removeEventListener(`transitioncancel`,o)}:f<=0?(a(),()=>{}):(i=setTimeout(a,f+qD),()=>{i!=null&&clearTimeout(i),e.removeEventListener(`transitionend`,o),e.removeEventListener(`transitioncancel`,o)})}function BD(e){let t=e.trim();if(!/^-?(?:\d+|\d*\.\d+)(?:ms|s)$/.test(t))return null;let n=Number.parseFloat(e);return t.endsWith(`ms`)?n:n*1e3}function VD({ref:e,state:t,height:n,label:r,children:i,snapPoints:a,className:o,style:s,tabIndex:c,xstyle:l,isSwipeDismissAllowed:u=!0,isPageScrollLocked:d=!1,onDismiss:f,onScrimOpacity:p,onElementChange:m,onMotionStart:h,onMotionComplete:g,..._}){let v=(0,HD.useRef)(null),y=(0,HD.useRef)(t),b=(0,HD.useRef)(!1),x=(0,HD.useRef)(h),S=(0,HD.useRef)(g),C=(0,HD.useRef)(null),w=(0,HD.useRef)(null),T=t.kind===`open`&&t.entering,E=y.current,D=E.kind===`open`&&E.entering;T&&!D?b.current=E.kind===`retained`:T||(b.current=!1),(0,HD.useLayoutEffect)(()=>{y.current=t,x.current=h,S.current=g},[g,h,t]);let O=t.kind===`open`,k=t.kind!==`hidden`,A=t.kind===`retained`,j=A||t.kind===`exiting`,M=t.kind===`exiting`,N=A&&t.motion===`fading`,ee=A?t.alignmentOffset:0,P=LD(a),te=(0,HD.useRef)(a);te.current=a;let{snapHeights:F,ignoredSnapPointsMessage:ne}=(0,HD.useMemo)(()=>{if(P===``)return{snapHeights:void 0,ignoredSnapPointsMessage:``};let e=(te.current??[]).filter(e=>!$E(e));return{snapHeights:()=>eD(te.current??[],ID()),ignoredSnapPointsMessage:e.length===0?``:`snapPoints ignored ${JSON.stringify(e)}. A snap point is a viewport fraction above 0 and up to 1 (0.5 is half the screen), a px length ('320px'), or a percentage ('50%').`}},[P]);CC(`BottomSheet`,ne,ne!==``);let{contentProps:I,handleProps:re,bodyProps:ie,bodyElementRef:ae,sheetRef:oe,dragOffset:se,settledOffset:ce,isDragging:le,sheetHeight:ue,scrollPreservationInset:de,settlingLayoutOffset:fe,settledLayoutOffset:pe,completeScrollAreaSettle:L}=DD({isOpen:O,canDismiss:u,offscreenBlockEndInset:GD,onDismiss:f,snapHeights:F,onScrimOpacity:p}),{getViewportProps:R,getContentProps:me}=lE({axis:`both`,keyboardAccess:{owner:`contentOrViewport`,label:r},overscroll:`contain`,stickyContainment:`always`}),he=(0,HD.useCallback)(e=>{oe(e),v.current=e,m?.(e)},[m,oe]);mD({bodyRef:ae,bottomClearance:KD,isEnabled:n===`tall`,isFullyExpanded:ce===0,isPageScrollLocked:d,isSheetTraveling:le&&se!==ce,isOpen:O,isPresented:k,sheetRef:v}),(0,HD.useImperativeHandle)(e,()=>v.current,[]);let ge=RD(t);(0,HD.useLayoutEffect)(()=>{if(ge!=null){if(C.current=null,w.current=null,ge===`entering`&&b.current){w.current=ge;return}return zD(v.current,ge===`fading`?`opacity`:`transform`,()=>{C.current===ge?S.current?.(ge):w.current=ge})}},[ge]),(0,HD.useLayoutEffect)(()=>{if(fe!=null)return zD(v.current,`transform`,L)},[L,fe]),(0,HD.useEffect)(()=>{if(ge!=null)return x.current?.(ge),C.current=ge,w.current===ge&&(w.current=null,S.current?.(ge)),()=>{C.current===ge&&(C.current=null),w.current===ge&&(w.current=null)}},[ge]);let _e=typeof n==`string`&&n in WD?WD[n]:typeof n==`number`?`${n}px`:n,ve=ue>0,ye=I.style.transform,be;if(ve){let e=le?se<ce?0:pe:fe??pe,t=(le?se:ce)-e;be=e>0||le||fe!=null?`${Math.max(0,ue-Math.max(0,e))}px`:void 0,ye=t===0?void 0:`translateY(${t}px)`}let xe=ee>0?[ye,`translateY(${ee}px)`].filter(Boolean).join(` `):ye,Se={...I.style,transform:ye,height:be};return(0,UD.jsxs)(`div`,{..._,ref:he,tabIndex:c??-1,...U(V(`bottom-sheet`),z(Jr.reset,JD.sheet,fi.reset,n===`hug`?JD.hugHeight:JD.budget,M&&JD.sheetClosing,N&&JD.sheetFading,j&&JD.sheetInactive,l),o,{"--_sheet-budget":_e,...O?Se:A?{transform:xe,height:be}:M?{height:be}:{},...s}),children:[(0,UD.jsx)(`div`,{className:`x10l6tqk x13vifvy x1o0tod xtijo5x x1vjfegm x78zum5 x6s0dn4 xl56j7k xvpftlf xafqdz2 x5ve5x3 x1jm3nie x16khyan`,...re,"aria-hidden":`true`,children:(0,UD.jsx)(`div`,{className:`x1m747yf x11c6zpc xjspbzw x1m4xfpy`})}),(0,UD.jsx)(`div`,{...R({...ie,...U(z(Ln.focusVisible,JD.body,n===`tall`&&JD.tallKeyboardBody),de>0?{style:{paddingBlockEnd:`${de}px`}}:{})}),children:(0,UD.jsx)(`div`,{...me({className:`xufnvkl x9f619 x5yr21d x121v3j4`}),children:(0,UD.jsx)(Er,{children:i})})})]})}var HD,UD,WD,GD,KD,qD,JD,YD=o((()=>{HD=u(f(),1),B(),ZE(),gE(),Et(),W(),zn(),Yr(),Ar(),pi(),cD(),vD(),FD(),UD=G(),WD={hug:`92dvh`,capped:`62dvh`,tall:`92dvh`},GD=48,KD=48,qD=50,St[`--spacing-6`],JD={sheet:{kfzvcC:`x67bb7w`,kB7OPa:`x9f619`,kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kAzted:`x2lwn1j`,kzqmXN:`xh8yej3`,ks0D6T:`x11gisft`,kWkggS:`x10xzikg`,kEafiO:`x11xkdxz`,kPef9Z:`x13fuv20`,kLZC3w:`x1pc3f07`,k2ei4v:`xgbv0en`,kVhnKS:`x1t7ytsu`,kGJrpR:`x1j92z86`,ke9TFa:`xw8tdv1`,k8ry5P:`x18b5jzi`,kBCPoo:`x1gejf6u`,krdFHd:`x81l70g`,kfmiAY:`x7hs6f1`,kGVxlE:`x1kcpxr7`,kI3sdo:`x1a2a7pz`,kVQacm:`xb3r6kr`,kGO01o:`x1wkw6tp`,k1K539:`x1if0o47`,k3aq6I:`xnn1q72 xhbqy3z`,kSiTet:`x1hc1fzr`,k1ekBW:`xwcsmn1`,kIyJzY:`x80gvsz`,kAMwcw:`xlr8y92`,k6sLGO:`x1q1rmc8`,k6CgDc:`xzg1mie`,$$css:!0},sheetClosing:{k3aq6I:`x1weeur4`,kAMwcw:`xv2sgk5`,$$css:!0},sheetFading:{kSiTet:`xg01cxk`,$$css:!0},sheetInactive:{kfzvcC:`x47corl`,$$css:!0},body:{kzQI83:`x1iyjqo2`,kAzted:`x2lwn1j`,kB7OPa:`x9f619`,kFalU9:`xx69xxh`,kInvED:`x1wfwxd8 x1nw7mhf`,kWkggS:`x10xzikg`,kGO01o:`x18d9i69`,$$css:!0},tallKeyboardBody:{kFlMNQ:`xrw9175`,k5JduY:`x1s928wv`,kc3QkE:`xhkezso`,k4zj60:`xu6fald`,kloYau:`x2q1x1w`,$$css:!0},budget:{kZKoxP:`x1tpcejd`,$$css:!0},hugHeight:{kZKoxP:`xg7h5cd`,kskxy:`x14bu9tk`,$$css:!0}},VD.displayName=`BottomSheetPanel`}));function XD(){return(0,ZD.jsx)(`div`,{className:`xixxii4 x17y0mx6 x1ey2m1c x1kpxq89 x10xzikg xhtitgo x47corl x1cb67k9 xt2iwb0`,"data-sheet-edge-tint":``,"aria-hidden":`true`})}var ZD,QD=o((()=>{ZD=G()})),$D,eO,tO=o((()=>{$D=u(f(),1),eO=(0,$D.createContext)(null),eO.displayName=`BottomSheetSwitcherContext`})),nO=c({BottomSheet:()=>sO});function rO(e,t){switch(e){case`active`:return{kind:`open`,entering:!1};case`entering`:return{kind:`open`,entering:!0};case`covered`:case`aligning`:case`fading`:return{kind:`retained`,motion:e,alignmentOffset:t};case`exiting`:return{kind:`exiting`};case`hidden`:return{kind:`hidden`}}}function iO(e,t){let n=document.activeElement;if(n!=null&&e?.contains(n))return;let r=e?.querySelector(`[data-autofocus]`);r==null?t&&e?.focus({preventScroll:!0}):r.focus({preventScroll:!0})}function aO({ref:e,isOpen:t,onOpenChange:n,label:r,children:i,height:a=`capped`,snapPoints:o,hasScrim:s=!0,finalFocusRef:c,purpose:l=`info`,xstyle:u,...d}){let f=(0,cO.useRef)(null),p=(0,cO.useRef)(null),m=(0,cO.useRef)(null),[h,g]=(0,cO.useState)(t),_=t||h,v=t?{kind:`open`,entering:!1}:h?{kind:`exiting`}:{kind:`hidden`},y=(0,cO.useCallback)(()=>{l!==`required`&&n(!1)},[n,l]),b=(0,cO.useCallback)(()=>{l===`info`&&n(!1)},[n,l]),x=(0,cO.useCallback)(e=>{p.current=e},[]),S=(0,cO.useCallback)(e=>{f.current?.style.setProperty(`--_sheet-scrim-opacity`,String(e))},[]);(0,cO.useEffect)(()=>{let e=f.current;e!=null&&t&&(g(!0),e.style.setProperty(`--_sheet-scrim-opacity`,`1`),e.open||(s?(m.current=document.activeElement,e.showModal()):e.show(),iO(p.current,s)))},[s,t]),(0,cO.useEffect)(()=>{!t&&h&&s&&S(0)},[S,s,t,h]);let C=(0,cO.useCallback)(e=>{if(e!==`exiting`||t)return;let n=f.current;n?.open&&n.close(),g(!1),(c?.current??m.current)?.focus(),m.current=null},[c,t]);bE(_&&s),CC(`BottomSheet`,"requires a non-empty `label` for an accessible name; the open sheet has no built-in heading to derive one from.",t&&!r);let w=(0,cO.useCallback)(e=>{e.preventDefault(),y()},[y]),T=(0,cO.useCallback)(e=>{e.key===`Escape`&&(e.preventDefault(),!Bn(e.nativeEvent)&&y())},[y]),E=(0,cO.useCallback)(e=>{s&&e.target===e.currentTarget&&b()},[b,s]);return(0,lO.jsxs)(`dialog`,{...{0:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1s85apg x1a2a7pz`},8:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1a2a7pz x1lliihq`},4:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1s85apg x1a2a7pz xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x15h3t91 x142juwg x1viac0w`},12:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1a2a7pz x1lliihq xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x15h3t91 x142juwg x1viac0w`},2:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1s85apg x1a2a7pz x1cz9k3x`},10:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1a2a7pz x1lliihq x1cz9k3x`},6:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1s85apg x1a2a7pz xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x142juwg x1viac0w x1cz9k3x`},14:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1a2a7pz x1lliihq xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x142juwg x1viac0w x1cz9k3x`},1:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1s85apg x1a2a7pz x47corl xfo81ep xh8yej3 x5yr21d`},9:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1a2a7pz x1lliihq x47corl xfo81ep xh8yej3 x5yr21d`},5:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1s85apg x1a2a7pz xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x15h3t91 x142juwg x1viac0w x47corl xfo81ep xh8yej3 x5yr21d`},13:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1a2a7pz x1lliihq xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x15h3t91 x142juwg x1viac0w x47corl xfo81ep xh8yej3 x5yr21d`},3:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1s85apg x1a2a7pz x1cz9k3x x47corl xfo81ep xh8yej3 x5yr21d`},11:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1a2a7pz x1lliihq x1cz9k3x x47corl xfo81ep xh8yej3 x5yr21d`},7:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1s85apg x1a2a7pz xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x142juwg x1viac0w x1cz9k3x x47corl xfo81ep xh8yej3 x5yr21d`},15:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1a2a7pz x1lliihq xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x142juwg x1viac0w x1cz9k3x x47corl xfo81ep xh8yej3 x5yr21d`}}[!!_<<3|!!s<<2|!!(s&&!t&&h)<<1|!s<<0],ref:f,"aria-label":r,"aria-hidden":!t&&h?`true`:void 0,"aria-modal":s&&t?`true`:void 0,role:l===`required`?`alertdialog`:void 0,inert:!t&&h?!0:void 0,onCancel:w,onClick:E,onKeyDown:T,children:[(0,lO.jsx)(`div`,{className:`x10l6tqk x17y0mx6 x1ey2m1c x78zum5 xl56j7k x47corl`,children:(0,lO.jsx)(VD,{...d,ref:e,state:v,height:a,label:r,snapPoints:o,isSwipeDismissAllowed:l===`info`,isPageScrollLocked:_&&s,xstyle:u,onDismiss:b,onScrimOpacity:S,onElementChange:x,onMotionComplete:C,children:i})}),(0,lO.jsx)(XD,{})]})}function oO({switcher:e,ref:t,sheetId:n,label:r,children:i,height:a=`capped`,snapPoints:o,purpose:s=`info`,xstyle:c,...l}){let{activeSheet:u,hasScrim:d,onActiveSheetChange:f,getSheetPhase:p,getSheetAlignmentOffset:m,registerSheetElement:h,registerSheetLabel:g,registerSheetPurpose:_,onSheetEnterStart:v,onSheetTransitionComplete:y,onSheetScrimOpacityChange:b}=e,x=typeof n==`string`&&n.length>0,S=x?p(n):`hidden`,C=rO(S,x?m(n):0),w=S===`active`||S===`entering`,T=S===`covered`||S===`aligning`||S===`fading`||S===`exiting`,E=S!==`hidden`,D=S===`active`||S===`entering`,O=(0,cO.useRef)(null),k=(0,cO.useRef)(S),A=k.current,j=(0,cO.useRef)(!1);(0,cO.useLayoutEffect)(()=>{k.current=S},[S]);let M=(0,cO.useCallback)(()=>{s===`info`&&x&&u===n&&f(null)},[u,x,f,s,n]),N=(0,cO.useCallback)(e=>{O.current=e,x&&h(n,e)},[x,h,n]),ee=(0,cO.useCallback)(e=>{e===`entering`&&x&&v(n)},[x,v,n]),P=(0,cO.useCallback)(e=>{x&&y({sheetId:n,phase:e})},[x,y,n]),te=(0,cO.useCallback)(e=>{x&&b(n,e)},[x,b,n]);return(0,cO.useLayoutEffect)(()=>{if(x)return g(n,r),()=>g(n,null)},[x,r,g,n]),(0,cO.useLayoutEffect)(()=>{if(x)return _(n,s),()=>_(n,null)},[x,s,_,n]),(0,cO.useEffect)(()=>{if(w){let e=A===`active`||A===`entering`;(!j.current||!e)&&iO(O.current,d),j.current=!0}else S===`hidden`&&(j.current=!1)},[d,w,S,A]),CC(`BottomSheet`,"requires a non-empty `label` for an accessible name; the open sheet has no built-in heading to derive one from.",w&&!r),(0,lO.jsx)(`div`,{...{0:{className:`x10l6tqk x17y0mx6 x1ey2m1c x78zum5 xl56j7k x47corl`},2:{className:`x10l6tqk x17y0mx6 x1ey2m1c xl56j7k x47corl x1s85apg`},1:{className:`x10l6tqk x17y0mx6 x1ey2m1c x78zum5 xl56j7k x47corl x1vjfegm`},3:{className:`x10l6tqk x17y0mx6 x1ey2m1c xl56j7k x47corl x1s85apg x1vjfegm`}}[!E<<1|!!D<<0],hidden:!E,"aria-hidden":T?`true`:void 0,inert:T?!0:void 0,children:(0,lO.jsx)(VD,{...l,ref:t,state:C,height:a,label:r,snapPoints:o,isSwipeDismissAllowed:s===`info`,isPageScrollLocked:d,xstyle:c,onDismiss:M,onScrimOpacity:te,onElementChange:N,onMotionStart:ee,onMotionComplete:P,children:(0,lO.jsx)(eO,{value:null,children:i})})})}function sO(e){let t=(0,cO.use)(eO),n=e.sheetId,r=typeof n==`string`&&n.length>0;return CC(`BottomSheet`,"requires a non-empty `sheetId` when nested in BottomSheetSwitcher; standalone `isOpen` / `onOpenChange` props are ignored there.",t!=null&&!r),CC(`BottomSheet`,"`sheetId` only works inside BottomSheetSwitcher. Use `isOpen` and `onOpenChange` for a standalone sheet.",t==null&&n!=null),t==null?(0,lO.jsx)(aO,{...e}):(0,lO.jsx)(oO,{...e,switcher:t})}var cO,lO,uO=o((()=>{cO=u(f(),1),ZE(),W(),YD(),QD(),tO(),lO=G(),sO.displayName=`BottomSheet`}));function dO({padding:e=`spacing4`,paddingOuterX:t,paddingOuterY:n,paddingInnerX:r,paddingInnerY:i,useThemeDefault:a,maxHeight:o}){let s=t??e,c=n??e,l=r??e,u=i??e,d=o?kO.containerMaxHeight(o):null;if(a){let e=bO[a];return[fO.container,e.containerPaddingInlineStart,e.containerPaddingInlineEnd,e.containerPaddingBlockStart,e.containerPaddingBlockEnd,e.layoutPaddingOuterX,e.layoutPaddingOuterY,e.layoutPaddingInnerX,e.layoutPaddingInnerY,d]}return[fO.container,xO[s],SO[s],CO[c],wO[c],TO[s],EO[c],DO[l],OO[u],d]}var fO,pO,mO,hO,gO,_O,vO,yO,bO,xO,SO,CO,wO,TO,EO,DO,OO,kO,AO=o((()=>{Et(),fO={container:{kB7OPa:`x9f619`,kZCmMZ:`x1c35znw`,kwRFfy:`x64h4k7`,kLKAdn:`x14m0hsi`,kGO01o:`xc1wllq`,$$css:!0}},pO=St[`--spacing-4`],mO=`var(--astryx-card-padding, ${pO})`,hO=`var(--astryx-card-padding-inline, ${mO})`,`${hO}`,`${hO}`,`${mO}`,`${mO}`,gO=`var(--_section-padding-propagated, ${`var(--astryx-section-padding, ${pO})`})`,_O=`var(--astryx-section-padding-inline, ${gO})`,`${_O}`,`${_O}`,`${gO}`,`${gO}`,vO=`var(--astryx-dialog-padding, ${pO})`,yO=`var(--astryx-dialog-padding-inline, ${vO})`,`${yO}`,`${yO}`,`${vO}`,`${vO}`,bO={card:{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}},section:{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}},dialog:{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}}},xO={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}},SO={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}},CO={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}},wO={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}},TO={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}},EO={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}},DO={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}},OO={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}},kO={containerMaxHeight:e=>[{"--container-max-height":e==null?e:`x18nyedi`,$$css:!0},{"--x---container-max-height":e??void 0}]}}));function jO({variant:e=`section`,width:t,height:n,maxWidth:r,minHeight:i,children:a,dividers:o,padding:s,paddingInline:c,paddingInlineStart:l,paddingInlineEnd:u,paddingBlock:d,paddingBlockStart:f,paddingBlockEnd:p,xstyle:m,className:h,style:g,ref:_,...v}){let y=s==null,b=s??4,x=Xr[b],S=z(PO.outer,IO.sizing(t??null,n??null,r??null,i??null),m);return(0,MO.jsx)(`div`,{ref:_,className:[S.className,h].filter(Boolean).join(` `)||void 0,style:g&&S.style?{...S.style,...g}:g||S.style,...v,children:(0,MO.jsx)(`div`,{...U(V(`section`,{variant:e}),z(PO.inner,...dO(y?{useThemeDefault:`section`}:{paddingInnerX:x,paddingInnerY:x,paddingOuterX:x,paddingOuterY:x}),!y&&b!==4&&Zr[b],!y&&b!==4&&Qr[b],!y&&b!==4&&$r[b],!y&&b!==4&&ei[b],!y&&di[b],c!=null&&ri[c],c!=null&&Qr[c],d!=null&&ii[d],d!=null&&$r[d],d!=null&&ei[d],f!=null&&li[f],f!=null&&$r[f],p!=null&&ui[p],p!=null&&ei[p],l!=null&&ai[l],l!=null&&si[l],u!=null&&oi[u],u!=null&&ci[u],NO[e],o?.includes(`top`)&&FO.top,o?.includes(`bottom`)&&FO.bottom,o?.includes(`start`)&&FO.start,o?.includes(`end`)&&FO.end)),children:a})})}var MO,NO,PO,FO,IO,LO=o((()=>{B(),AO(),pi(),W(),H(),MO=G(),NO={section:{kWkggS:`x10xzikg`,$$css:!0},transparent:{kWkggS:`xjbqb8w`,$$css:!0},muted:{kWkggS:`xwmxj5m`,$$css:!0}},PO={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}},FO={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}},IO={sizing:(e,t,n,r)=>[{kzqmXN:e==null?e:`x5lhr3w`,kZKoxP:t==null?t:`x16ye13r`,ks0D6T:n==null?n:`xf68679`,kAzted:r==null?r:`x82snj4`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(e),"--x-height":(e=>typeof e==`number`?e+`px`:e??void 0)(t),"--x-maxWidth":(e=>typeof e==`number`?e+`px`:e??void 0)(n),"--x-minHeight":(e=>typeof e==`number`?e+`px`:e??void 0)(r)}]},jO.displayName=`Section`})),RO=c({MenuBottomSheet:()=>zO});function zO({finalFocusRef:e,isOpen:t,onOpenChange:n,label:r,children:i}){return(0,BO.jsx)(sO,{finalFocusRef:e,isOpen:t,onOpenChange:n,label:r,height:`hug`,purpose:`info`,children:(0,BO.jsx)(jO,{paddingBlockStart:4,paddingBlockEnd:0,paddingInline:1,children:i})})}var BO,VO=o((()=>{uO(),LO(),BO=G(),zO.displayName=`MenuBottomSheet`})),HO,UO=o((()=>{Ar(),HO=Tr(null),HO.displayName=`ListContext`}));function WO({children:e,density:t=`balanced`,hasDividers:n=!1,edgeCompensation:r,header:i,listStyle:a=`none`,start:o,xstyle:s,className:c,style:l,"data-testid":u,ref:d,...f}){let p=(0,GO.useId)(),m=a===`decimal`,h=m?`ol`:`ul`,g=(0,GO.useMemo)(()=>({density:t,hasDividers:n,listStyle:a,edgeCompensation:r}),[t,n,a,r]),_=(0,KO.jsx)(h,{ref:d,...f,"data-testid":u,...i==null?null:{"aria-labelledby":p},...m&&o!=null&&o!==1?{start:o}:{},role:`list`,...U(V(`list`,{density:t,listStyle:a}),z(qO.list,n&&qO.withDividers,a!==`none`&&(o!=null&&o!==1?YO.counterStart(o-1):qO.withCounter),s),c,l),children:e});return i==null?(0,KO.jsx)(HO,{value:g,children:_}):(0,KO.jsx)(HO,{value:g,children:(0,KO.jsxs)(`div`,{className:`x78zum5 xdt5ytf`,children:[(0,KO.jsx)(`div`,{id:p,className:`x1p37lm5`,children:i}),_]})})}var GO,KO,qO,JO,YO,XO=o((()=>{GO=u(f(),1),B(),UO(),W(),H(),KO=G(),qO={list:{kogj98:`x1ghz6dp`,kZCmMZ:`x1c1uobl`,kH6xsr:`x3ct3a4`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kOIVth:`x1lsbc85`,$$css:!0},withDividers:{kOIVth:`xxhr3t`,$$css:!0},withCounter:{kt6KFK:`xif0320`,$$css:!0}},JO={kt6KFK:`x1khind5`,$$css:!0},YO={counterStart:e=>[JO,{"--x-counterReset":`astryx-list ${e}`==null?void 0:`astryx-list ${e}`}]},WO.displayName=`List`}));function ZO({label:e,description:t,startContent:n,endContent:r,onClick:i,interactiveRef:a,href:o,target:s,rel:c,isDisabled:l=!1,isSelected:u=!1,xstyle:d,className:f,style:p,ref:m,...h}){let g=(0,QO.use)(HO),_=g?.density??`balanced`,v=g?.hasDividers??!1,y=g?.listStyle??`none`,b=g?.edgeCompensation;return(0,$O.jsx)(GC,{as:`li`,ref:m,marker:y===`disc`?(0,$O.jsx)(`span`,{className:`xoi2r2e x9f619 x78zum5 x6s0dn4 xl56j7k x2lah0s x12xnipv x1233pnv`,children:(0,$O.jsx)(`span`,{className:`x1v4s8kt xols6we x16rqkct x19aspcf`})}):y===`circle`?(0,$O.jsx)(`span`,{className:`xoi2r2e x9f619 x78zum5 x6s0dn4 xl56j7k x2lah0s x12xnipv x1233pnv`,children:(0,$O.jsx)(`span`,{className:`x1v4s8kt xols6we x16rqkct xmkeg23 x1y0btm7 xqcx1ss xjbqb8w`})}):y===`decimal`?(0,$O.jsx)(`span`,{className:`xoi2r2e x2lah0s x1tgivj0 xjm74w1 xw6l6zx x12xnipv xc2ndz5`}):null,startContent:n,label:e,description:t,endContent:r,onClick:i,interactiveRef:a,href:o,target:s,rel:c,isDisabled:l,isSelected:u,density:_,xstyle:[y!==`none`&&ek.withCounter,v&&ek.withDivider,v&&tk.noRadius,b===`inline`&&ek.inlineEdgeCompensation,d],...U(V(`list-item`),{className:f,style:p}),...h})}var QO,$O,ek,tk,nk=o((()=>{QO=u(f(),1),UO(),W(),$C(),H(),$O=G(),ek={withCounter:{kAmcRD:`xfrknyr`,$$css:!0},inlineEdgeCompensation:{keTefX:`x1t1czy8`,k71WvV:`x1cphv78`,$$css:!0},withDivider:{kt9PQ7:`x92x3c3`,kfdmCh:`x1q0q8m5`,kL6WhQ:`xw8gpjh`,kx8K5S:`x1t1lzn6`,$$css:!0}},tk={noRadius:{kaIpWk:`x2u8bby`,$$css:!0}},ZO.displayName=`ListItem`})),rk=o((()=>{XO(),nk()}));function ik(e,t){return`item-${e.id??t}`}function ak({items:e,onSelect:t,onOpenSubmenu:n}){let r=(e,r)=>{let i=e.items!=null&&e.items.length>0,a=e.variant===`destructive`;return(0,ok.jsx)(ZO,{label:e.label,description:e.description,startContent:e.icon?au(e.icon,{size:`sm`,color:a?`error`:`secondary`}):void 0,endContent:i?(0,ok.jsx)(ru,{icon:`chevronRight`,size:`sm`,color:`secondary`,xstyle:On.mirror}):e.endContent,isDisabled:e.isDisabled,onClick:r=>{Ai()===`pointer`&&r.currentTarget.blur(),i?n(e):t(e)},xstyle:a&&sk.destructiveAction},ik(e,r))};return(0,ok.jsx)(WO,{density:`spacious`,children:e.map((e,t)=>`type`in e&&e.type===`divider`?(0,ok.jsx)(`li`,{role:`presentation`,className:`x3ct3a4`,children:(0,ok.jsx)(pw,{xstyle:sk.divider})},`divider-${t}`):`type`in e&&e.type===`section`?(0,ok.jsx)(`li`,{className:`x3ct3a4`,children:(0,ok.jsxs)(`div`,{role:`group`,"aria-label":e.title,className:`x78zum5 xdt5ytf xzye2dw`,children:[e.title&&(0,ok.jsx)(Ba,{level:4,xstyle:sk.sectionHeading,children:e.title}),(0,ok.jsx)(WO,{density:`spacious`,children:e.items.map(r)})]})},`section-${e.id??t}`):r(e,t))})}var ok,sk,ck=o((()=>{bw(),Ka(),uu(),rk(),W(),Ni(),ok=G(),sk={destructiveAction:{"--_item-label-color":`xufyqxy`,"--_item-description-color":`xqlix59`,kMwMTN:`xjt36v0`,$$css:!0},divider:{kqGvvJ:`xsq74q5`,$$css:!0},sectionHeading:{kg3NbH:`xrrkdod`,$$css:!0}},ak.displayName=`MenuBottomSheetActionList`}));function lk({button:e,isMenuOpen:t,onOpenChange:n,onClick:r,hasChevron:i=!0,items:a,presentation:o,menuWidth:s,placement:c,alignment:l,className:u,style:d,xstyle:f,"data-testid":p,...m}){let h=xf(),g=e??{label:h(bk)},_=h(`@astryx.dropdownMenu.back`),v=(0,fk.useRef)(null),y=(0,fk.useRef)(null),b=(0,fk.useRef)(`pointer`),{isFocusRingSuppressed:x,onFocusReturnTargetFocus:S,prepareFocusReturn:C,resetFocusReturn:w}=hT(),T=(0,fk.useRef)(null),E=(0,fk.useRef)(0),[D,O]=(0,fk.useState)(!1),[k,A]=(0,fk.useState)([]),j=t!==void 0,M=j?t:D,[N,ee]=(0,fk.useState)(M);N!==M&&(ee(M),!M&&k.length>0&&A([]));let P=k.at(-1),te=P?.items??a,F=P?.label??g.label,ne=typeof F==`string`?F:g.label,I=(0,fk.useCallback)(e=>{e?w():(A([]),C()),n?.(e),j||O(e)},[j,n,C,w]),re=(0,fk.useCallback)(e=>{e.isDisabled||(e.onClick?.(),e.hasCloseOnSelect!==!1&&I(!1))},[I]),ie=g.isIconOnly===!0,ae=g.endContent??(i&&!ie?(0,pk.jsx)(ru,{icon:`chevronDown`,size:`sm`,color:`inherit`}):void 0);return(0,fk.useEffect)(()=>{if(!M||b.current!==`keyboard`)return;let e=requestAnimationFrame(()=>{y.current?.querySelector(`button:not(:disabled), a[href]`)?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(e)},[te,M]),(0,fk.useEffect)(()=>{if(!M){E.current=0;return}if(k.length===E.current)return;E.current=k.length;let e=requestAnimationFrame(()=>{T.current?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(e)},[M,k.length]),(0,pk.jsxs)(pk.Fragment,{children:[(0,pk.jsx)(Y,{...g,ref:v,xstyle:[M&&vk.triggerOpen,g.xstyle,x&&Ln.suppressed],tooltip:M?void 0:g.tooltip,endContent:ae,onPointerDown:e=>{g.onPointerDown?.(e),b.current=`pointer`},onKeyDown:e=>{g.onKeyDown?.(e),(e.key===`ArrowDown`||e.key===`Enter`||e.key===` `)&&(b.current=`keyboard`)},onFocus:e=>{g.onFocus?.(e),S()},onClick:()=>{r?.(),I(!M)},"aria-haspopup":`dialog`,"aria-expanded":M,"data-testid":p}),(0,pk.jsx)(zO,{isOpen:M,onOpenChange:I,finalFocusRef:v,label:ne,children:(0,pk.jsxs)(`div`,{ref:y,...m,...U(V(`dropdown-menu`,{presentation:`bottom-sheet`}),z(yk.content,f),u,d),children:[(0,pk.jsxs)(`div`,{className:`x78zum5 x1q0g3np x6s0dn4 xzye2dw x1p37lm5`,children:[k.length>0&&(0,pk.jsx)(Y,{label:_,variant:`ghost`,size:`sm`,icon:(0,pk.jsx)(ru,{icon:`chevronLeft`,size:`sm`,xstyle:On.mirror}),isIconOnly:!0,onClick:()=>A(e=>e.slice(0,-1))}),(0,pk.jsx)(Ba,{ref:T,level:3,tabIndex:-1,xstyle:[yk.viewHeading,k.length===0&&yk.rootHeading],children:F})]}),(0,pk.jsx)(ak,{items:te,onSelect:re,onOpenSubmenu:e=>A(t=>[...t,e])})]})})]})}function uk({button:e,isMenuOpen:t,onOpenChange:n,menuWidth:r,onClick:i,hasChevron:a=!0,placement:o=`below`,alignment:s=`start`,presentation:c,className:l,style:u,xstyle:d,"data-testid":f,...p}){let m=xf(),h=e??{label:m(bk)},g=(`items`in p?p.items:void 0)??[],_=p.children,{items:v,children:y,...b}=p,x=(0,fk.useId)(),S=h.size??`md`,C=(0,fk.useRef)(null),[w,T]=(0,fk.useState)(!1),E=t!==void 0,D=E?t:w,O=(0,fk.useRef)(!1),k=(0,fk.useRef)(!1),A=(0,fk.useRef)(!1),j=(0,fk.useRef)(!1);ki();let M=(0,fk.useCallback)(()=>{if(j.current){j.current=!1;return}A.current=!1,n?.(!1),E||T(!1);let e=C.current;Ai()===`keyboard`?e?.focus():document.activeElement===e&&e?.blur()},[E,n]),N=(0,fk.useRef)(!1),ee=(0,fk.useRef)(`keyboard`),P=kC({onHide:M,onShow:(0,fk.useCallback)(()=>{O.current=!0,k.current&&(k.current=!1,i?.()),n?.(!0),E||T(!0)},[E,i,n]),hasLightDismiss:!0,hasCloseButton:!1,hasAutoFocus:!1,role:`none`}),te=(0,fk.useCallback)(()=>{P.hide()},[P]),{listRef:F,handleKeyDown:ne,focusFirst:I,focusItem:re,ownsEvent:ie,getItems:ae}=Aw({itemSelector:Xw,boundarySelector:Zw,wrap:!1,onEscape:te}),oe=Bw({getItemLabels:()=>ae().map(e=>e.textContent),onMatch:re,getCurrentIndex:()=>ae().findIndex(e=>e===document.activeElement||e.contains(document.activeElement))}),se=(0,fk.useRef)(E&&t===!0);Cr(()=>{E&&(t?(A.current=!1,P.isOpen||(N.current=!se.current,P.show())):(se.current=!1,P.isOpen&&(j.current=A.current,A.current=!1,P.hide())))},[t,E,P]),(0,fk.useEffect)(()=>{P.isOpen&&N.current&&(N.current=!1,requestAnimationFrame(()=>{(ee.current===`pointer`||!I())&&F.current?.focus(),ee.current=`keyboard`}))},[P.isOpen,I,F]);let ce=(0,fk.useCallback)(e=>{if(ie(e)){if(e.key===`Enter`||e.key===` `){e.preventDefault();let t=document.activeElement;t&&Yw.has(t.getAttribute(`role`)??``)&&t.click();return}if(e.key===`Tab`){te();return}if(oe.onKeyDown(e)){e.preventDefault();return}ne(e)}},[ne,te,oe,ie]),le=(0,fk.useCallback)((e=`keyboard`,t=!1)=>(O.current=!1,k.current=t,A.current=E,ee.current=e,N.current=!0,P.show(),O.current?!0:(k.current=!1,A.current=!1,ee.current=`keyboard`,N.current=!1,!1)),[E,P]),ue=(0,fk.useCallback)(e=>{let r=e.detail===0?`keyboard`:`pointer`;E?t?(i?.(),n?.(!1)):le(r,!0):P.isOpen?(i?.(),P.hide()):le(r,!0)},[i,E,n,t,P,le]),de=(0,fk.useCallback)(e=>{if(!P.isOpen){(e.key===`ArrowDown`||e.key===`Enter`||e.key===` `)&&(e.preventDefault(),le());return}e.key===`ArrowDown`&&(e.preventDefault(),I()||F.current?.focus())},[P.isOpen,le,I,F]),fe=h.isIconOnly===!0,pe=h.endContent??(a&&!fe?(0,pk.jsx)(ru,{icon:`chevronDown`,size:`sm`,color:`inherit`}):void 0),L=r?Kw(r,s===`center`?hk:gk):null,R=L?L.property===`inlineSize`?vk.popoverCustomIntrinsicWidth(L.value):vk.popoverCustomWidth(L.value):s===`center`?vk.popoverCentered:vk.popoverAligned,me=o===`start`||o===`end`,he=(0,fk.useMemo)(()=>({closeMenu:te,menuSize:S}),[te,S]),ge=p.items===void 0?_:fT(g),_e=Uw(F,ge,P.isOpen);return(0,pk.jsxs)(pk.Fragment,{children:[(0,pk.jsx)(Y,{...h,ref:e=>{C.current=e,P.triggerRef(e);let t=h.ref;typeof t==`function`?t(e):t&&(t.current=e)},xstyle:[D&&vk.triggerOpen,h.xstyle],tooltip:D?void 0:h.tooltip,endContent:pe,onClick:ue,onKeyDown:de,"aria-haspopup":`menu`,"aria-expanded":D,"aria-controls":x,"data-testid":f}),P.render((0,pk.jsx)(`div`,{...b,ref:F,id:x,role:`menu`,tabIndex:_e?0:-1,"aria-label":h.label,onKeyDown:ce,...U(V(`dropdown-menu`),z(vk.dropdown,_e&&vk.scrollable,d),l,u),children:(0,pk.jsx)(nw,{value:he,children:ge})}),{placement:o,alignment:s,offset:St[`--spacing-1`],xstyle:[vk.popoverViewport,s===`center`?me?vk.popoverViewportBlockCentered:vk.popoverViewportCentered:[vk.popoverViewportAligned,me?s===`start`?vk.popoverViewportBlockStart:vk.popoverViewportBlockEnd:s===`start`?vk.popoverViewportStart:vk.popoverViewportEnd],R,Vi[o]]})]})}function dk(e){let{onOpenChange:t}=e,n=vT(`items`in e?e.presentation??`popover`:`popover`),r=e.isMenuOpen!==void 0,[i,a]=(0,fk.useState)(!1),o=r?e.isMenuOpen:i,s=(0,fk.useCallback)(e=>{t?.(e),r||a(e)},[r,t]),c={...e,isMenuOpen:o,onOpenChange:s};return n===`bottom-sheet`&&`items`in e&&e.items!==void 0?(0,pk.jsx)(lk,{...c,presentation:`bottom-sheet`}):(0,pk.jsx)(uk,{...c,presentation:`popover`})}var fk,pk,mk,hk,gk,_k,vk,yk,bk,xk=o((()=>{fk=u(f(),1),B(),PC(),Mx(),Ka(),uu(),mT(),Qw(),iw(),wr(),Nw(),Hw(),_T(),Gw(),Jw(),bT(),VO(),ck(),Hi(),Et(),W(),H(),Ni(),Df(),zn(),pk=G(),mk=St[`--spacing-4`],`${mk}${mk}`,hk=`calc(100vw - ${mk} - ${mk})`,`${mk}${mk}`,`${mk}${mk}`,`${mk}`,gk=`calc(100% - ${mk})`,`${mk}`,`${xt[`--color-overlay-pressed`]}${xt[`--color-overlay-pressed`]}`,_k={kzqmXN:`x1uyokj7`,$$css:!0},vk={triggerOpen:{kKwaWg:`xpl5ynk`,$$css:!0},dropdown:{kB7OPa:`x9f619`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kOIVth:`x1lsbc85`,kI3sdo:`x1a2a7pz`,ks0D6T:`xs2v1xk`,kskxy:`x1hkkhfe`,"--_dropdown-menu-radius":`x1fcsqxe`,"--_dropdown-menu-padding":`xgory14`,kmVPX3:`x9epnlk`,kaIpWk:`x1n97fys`,kSiTet:`x1hc1fzr`,k1ekBW:`x19991ni`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,$$css:!0},scrollable:{kORKVm:`x1odjw0f`,kXHlph:`x6ikm8r`,kZeWKH:`xish69e`,$$css:!0},popoverViewport:{kB7OPa:`x9f619`,kskxy:`x1hkkhfe`,$$css:!0},popoverViewportAligned:{ks0D6T:`xbd96yr`,$$css:!0},popoverViewportStart:{k71WvV:`xxeicf8`,$$css:!0},popoverViewportEnd:{keTefX:`x47fqr9`,$$css:!0},popoverViewportBlockStart:{k1K539:`x1kps3mo`,$$css:!0},popoverViewportBlockEnd:{keoZOQ:`xsoubt3`,$$css:!0},popoverViewportCentered:{keTefX:`x47fqr9`,k71WvV:`xxeicf8`,ks0D6T:`xs2v1xk`,$$css:!0},popoverViewportBlockCentered:{keoZOQ:`xsoubt3`,k1K539:`x1kps3mo`,ks0D6T:`xs2v1xk`,$$css:!0},popoverAligned:{k7Eaqz:`x1ks9poc`,$$css:!0},popoverCentered:{k7Eaqz:`xagy28z`,$$css:!0},popoverCustomWidth:e=>[{k7Eaqz:e==null?e:`xkj4a21`,$$css:!0},{"--x-minWidth":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}],popoverCustomIntrinsicWidth:e=>[_k,{"--x-inlineSize":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]},yk={content:{kzqmXN:`xh8yej3`,$$css:!0},rootHeading:{keTefX:`x6i7dpz`,$$css:!0},viewHeading:{kI3sdo:`x1a2a7pz`,$$css:!0}},bk=`@astryx.dropdownMenu.label`,dk.displayName=`DropdownMenu`})),Sk,Ck=o((()=>{Sk={x1odsvnm:`x1odsvnm`,$$css:!0}}));function wk({state:e,size:t=`md`,isDisabled:n=!1,children:r,ref:i,className:a,style:o,xstyle:s,...c}){let l=e===`checked`,u=e===`indeterminate`,d=l||u;return(0,Tk.jsx)(`span`,{...c,ref:i,"aria-hidden":`true`,...U(V(`checkbox-indicator`,{size:t,checked:l?`checked`:u?`indeterminate`:null,disabled:n?`disabled`:null},{legacyNames:[`checkbox`]}),z(Ek.box,Dk[t],d?Ek.checked:Ek.unchecked,n&&Ek.disabled,n&&!d&&Ek.disabledUnchecked,s),a,o),children:dn(r)?r:(0,Tk.jsxs)(Tk.Fragment,{children:[(0,Tk.jsx)(`svg`,{viewBox:`0 0 10 10`,...U(V(`checkbox-indicator-check`,{size:t}),z(Ek.checkmark,Ok[t],l&&Ek.checkmarkVisible)),children:(0,Tk.jsx)(`path`,{d:`M8.5 2.5L4 7.5L1.5 5`,stroke:`currentColor`,strokeWidth:`1.5`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`})}),(0,Tk.jsx)(`span`,{...U(V(`checkbox-indicator-dash`,{size:t}),z(Ek.indeterminateMark,kk[t],u&&Ek.indeterminateMarkVisible))})]})})}var Tk,Ek,Dk,Ok,kk,Ak=o((()=>{B(),W(),Tk=G(),Ek={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}},Dk={sm:{kzqmXN:`xw4jnvo`,kZKoxP:`x1qx5ct2`,$$css:!0},md:{kzqmXN:`xvy4d1p`,kZKoxP:`xxk0z11`,$$css:!0}},Ok={sm:{kzqmXN:`xsmyaan`,kZKoxP:`x1kpxq89`,$$css:!0},md:{kzqmXN:`x6jxa94`,kZKoxP:`x1v9usgg`,$$css:!0}},kk={sm:{kzqmXN:`x1fsd2vl`,kZKoxP:`x36qwtl`,$$css:!0},md:{kzqmXN:`xsmyaan`,kZKoxP:`x36qwtl`,$$css:!0}},wk.displayName=`CheckboxIndicator`}));function jk({state:e,size:t=`md`,isDisabled:n=!1,children:r,ref:i,className:a,style:o,xstyle:s,...c}){let l=e===`checked`;return dn(r)?(0,Mk.jsx)(`span`,{...c,ref:i,"aria-hidden":`true`,...U(z(Pk.slot,n?Pk.disabled:Pk.enabled,s),a,o),children:r}):l?(0,Mk.jsx)(ru,{...c,"aria-hidden":`true`,icon:`check`,size:Nk[t],color:n?`disabled`:`accent`,xstyle:s,className:a,style:o}):null}var Mk,Nk,Pk,Fk=o((()=>{B(),lu(),W(),Mk=G(),Nk={sm:`sm`,md:`sm`},Pk={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}},jk.displayName=`CheckIndicator`}));function Ik({state:e,size:t=`md`,isDisabled:n=!1,children:r,ref:i,className:a,style:o,xstyle:s,...c}){let l=e!==`unchecked`;return(0,Lk.jsx)(`span`,{...c,ref:i,"aria-hidden":`true`,...U(V(`radio-indicator`,{size:t,checked:l?`checked`:null,disabled:n?`disabled`:null},{legacyNames:[`radio`]}),z(Rk.circle,zk[t],l?Rk.checked:Rk.unchecked,n&&Rk.disabled,n&&!l&&Rk.disabledUnchecked,s),a,o),children:dn(r)?r:l&&(0,Lk.jsx)(`span`,{...U(V(`radio-indicator-dot`,{size:t},{legacyNames:[`radio-dot`]}),z(Rk.dot,Bk[t]))})})}var Lk,Rk,zk,Bk,Vk=o((()=>{B(),W(),Lk=G(),Rk={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}},zk={sm:{kzqmXN:`xw4jnvo`,kZKoxP:`x1qx5ct2`,$$css:!0},md:{kzqmXN:`xvy4d1p`,kZKoxP:`xxk0z11`,$$css:!0}},Bk={sm:{kzqmXN:`x1xc55vz`,kZKoxP:`xdk7pt`,$$css:!0},md:{kzqmXN:`x1fsd2vl`,kZKoxP:`x170jfvy`,$$css:!0}},Ik.displayName=`RadioIndicator`}));function Hk(e){return e==null?null:typeof e==`string`?dc(e):e}function Uk(e){return Hk(e)?.indicators??null}function Wk(e,t){return Uk(t)?.[e]??Gk[e]}var Gk,Kk=o((()=>{pc(),Ak(),Fk(),Vk(),Gk={check:jk,checkbox:wk,radio:Ik}}));function qk(e){return Wk(e,Nl())}var Jk=o((()=>{zl(),Kk()})),Yk=o((()=>{Ak(),Fk(),Vk(),Kk(),Jk(),Ck()})),Xk=o((()=>{xk(),fw(),Tw(),B(),uu(),Yk(),$C(),iw(),Et(),W(),cT()}));function Zk(){return(0,Qk.use)($k)}var Qk,$k,eA=o((()=>{Qk=u(f(),1),$k=(0,Qk.createContext)({isCollapsed:!1,toggle:()=>{},isCollapsible:!1}),$k.displayName=`SideNavCollapseContext`}));function tA({ref:e,collapsible:t,handleRef:n,label:r,size:i,children:a,onClick:o,...s}){let c=xf(),{isCollapsed:l,toggle:u,isCollapsible:d}=nA(t,n),{isMobile:f}=IS();return!d||f?null:(0,iA.jsx)(Y,{ref:e,label:r??c(l?`@astryx.sideNavCollapseButton.expandSidebar`:`@astryx.sideNavCollapseButton.collapseSidebar`),variant:`ghost`,size:i,...s,onClick:$t(o,u),icon:a??(0,iA.jsx)(`span`,{...z(aA.chevronMirror,On.mirror),children:(0,iA.jsx)(ru,{icon:`chevronLeft`,size:`sm`,color:`inherit`,xstyle:[aA.chevron,l&&aA.chevronCollapsed]})}),isIconOnly:!0})}function nA(e,t){let n=Zk(),{isCollapsed:r,onCollapsedChange:i}=e??{},a=(0,rA.useCallback)(()=>i?.(!r),[r,i]),o=(0,rA.useCallback)(()=>{t?.current?.getCollapseState()?.toggle()},[t]);if(e!=null)return{isCollapsed:r??!1,toggle:a,isCollapsible:!0};if(t==null)return n;let s=t.current?.getCollapseState()??null;return{isCollapsed:s?.isCollapsed??!1,toggle:o,isCollapsible:s?.isCollapsible??!0}}var rA,iA,aA,oA=o((()=>{rA=u(f(),1),B(),uu(),Mx(),W(),eA(),BS(),Df(),iA=G(),aA={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}},tA.displayName=`SideNavCollapseButton`}));function sA(e){let t=e.split(`,`).map(e=>{let t=e.trim(),n=Number.parseFloat(t);return Number.isFinite(n)?t.endsWith(`ms`)?n:t.endsWith(`s`)?n*1e3:null:null}).filter(e=>e!==null);return t.length?Math.min(...t):null}function cA(e){let t=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches?0:hA,n=sA(window.getComputedStyle(e).transitionDuration);return n===null?t:n<=0?0:Math.min(t,n*gA)}function lA({isOpen:e,onOpenChange:t,children:n,header:r,width:i=320,side:a=`auto`,label:o,"data-testid":s,xstyle:c,className:l,style:u,onClick:d,ref:f,...p}){let m=xf(),h=IS(),g=e??h.isMobileNavOpen,_=(0,uA.useId)(),v=h.mobileNavId||_,y=(0,uA.useMemo)(()=>t??(e=>{e?h.openMobileNav():h.closeMobileNav()}),[t,h]),b=(0,uA.useRef)(null),x=(0,uA.useRef)(null),S=(0,uA.useRef)(null),C=(0,uA.useCallback)(()=>{S.current&&=(S.current.release(),null)},[]),[w,T]=(0,uA.useState)(a===`auto`?`end`:a);(0,uA.useEffect)(()=>{if(g){if(a===`auto`){let e=document.activeElement;if(e&&e!==document.body){let t=e.getBoundingClientRect(),n=t.left+t.width/2;T(n<window.innerWidth/2?`start`:`end`)}}else T(a)}},[g,a]),(0,uA.useEffect)(()=>{let e=b.current;if(e)return g?(S.current??=_E(document.documentElement),e.open||e.showModal(),document.documentElement.style.overflow=`clip`,S.current.settle()):e.open&&(document.documentElement.style.overflow=``,C(),x.current=setTimeout(()=>{e.close()},cA(e))),()=>{x.current&&=(clearTimeout(x.current),null),document.documentElement.style.overflow=``,C()}},[g,C]),(0,uA.useEffect)(()=>{let e=b.current;return()=>{e?.open&&e.close()}},[]);let{shouldDismissOnCloseRequest:E}=ma({isActive:g,onDismiss:()=>y(!1)}),D=(0,uA.useCallback)(e=>{e.preventDefault(),E()&&y(!1)},[y,E]),O=(0,uA.useCallback)(e=>{e.target===e.currentTarget&&y(!1)},[y]),k=w===`start`;return(0,dA.jsx)(`dialog`,{ref:yr(f,b),id:v,...U(V(`mobile-nav`,{side:w}),z(Jr.reset,fA.dialog,fi.reset,g&&fA.open,fA.backdrop,g&&fA.backdropOpen,c),l,u),...p,"data-testid":s,"aria-label":o??(typeof r==`string`?r:m(`@astryx.mobileNav.navigation`)),onClick:$t(d,O),onCancel:D,children:(0,dA.jsx)(Wi,{children:(0,dA.jsx)(Er,{children:(0,dA.jsxs)(`div`,{tabIndex:-1,...z(fA.drawer,mA.width(i),k&&fA.drawerStart,k&&g&&fA.drawerStartOpen,!k&&fA.drawerEnd,!k&&g&&fA.drawerEndOpen),children:[(0,dA.jsxs)(`div`,{...{0:{className:`x78zum5 x6s0dn4 x1qughib x1k15mir xf314gf x2lah0s x92x3c3 x1q0q8m5 xw8gpjh`},1:{className:`x78zum5 x6s0dn4 x1k15mir xf314gf x2lah0s x92x3c3 x1q0q8m5 xw8gpjh x13a6bvl`}}[!r<<0],children:[typeof r==`string`?(0,dA.jsx)(Ba,{level:2,xstyle:fA.headerText,children:r}):r??null,(0,dA.jsx)(Y,{variant:`ghost`,label:m(`@astryx.mobileNav.closeNavigation`),icon:(0,dA.jsx)(ru,{icon:`close`,color:`inherit`}),onClick:()=>y(!1),isIconOnly:!0})]}),(0,dA.jsx)(`div`,{className:`x98rzlu x1odjw0f x6ikm8r xish69e xx69xxh xf314gf xce4md1`,children:n})]})})})})}var uA,dA,fA,pA,mA,hA,gA,_A=o((()=>{uA=u(f(),1),B(),Mx(),uu(),Ga(),BS(),yE(),W(),Yr(),Ar(),pi(),Ji(),ga(),H(),Df(),xr(),dA=G(),fA={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:`x5ve5x3`,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}},pA={kzqmXN:`xn9wirt`,ks0D6T:`xf68679`,$$css:!0},mA={width:e=>[pA,{"--x-maxWidth":(e=>typeof e==`number`?e+`px`:e??void 0)(`${e}px`)}]},hA=250,gA=.6,lA.displayName=`MobileNav`}));function vA(e,t,n,r){let i=Math.min(n,Math.max(t,e));if(r.length>0){let e=r[0],a=Math.abs(i-e);for(let t=1;t<r.length;t++){let n=Math.abs(i-r[t]);n<a&&(e=r[t],a=n)}return Math.min(n,Math.max(t,e))}return i}function yA(e){if(typeof window>`u`)return null;try{let t=localStorage.getItem(RA+e);if(t==null)return null;let n=JSON.parse(t);if(typeof n==`number`)return Number.isFinite(n)?n===0?{size:null,isCollapsed:!0}:{size:n,isCollapsed:null}:null;if(typeof n==`object`&&n){let{size:e,isCollapsed:t}=n,r=typeof e==`number`&&Number.isFinite(e)&&e>0;if(r||t===!0)return{size:r?e:null,isCollapsed:t===!0}}}catch{}return null}function bA(e,t){if(typeof window<`u`)try{localStorage.setItem(RA+e,JSON.stringify(t))}catch{}}function xA(e){let t=HA.exec(e);if(t){let e=Number(t[1]);return Number.isFinite(e)?{kind:`px`,value:e}:null}let n=UA.exec(e);if(n){let e=Number(n[1]);return Number.isFinite(e)&&e<=100?{kind:`percent`,value:e}:null}return null}function SA(e){if(typeof e!=`object`||!e||Array.isArray(e))return null;let t=e;return t.type===`pixel`&&typeof t.value==`number`&&Number.isFinite(t.value)&&t.value>=0?t.value:null}function CA(e){if(Array.isArray(e))return null;let t=e;if(t.type!==`percent`||typeof t.value!=`number`||!Number.isFinite(t.value)||t.value<0||t.value>100)return null;let n=t.min!==void 0;if(n===(t.max!==void 0))return null;if(n){let e=SA(t.min);return e==null?null:{kind:`percent`,value:t.value,min:e}}let r=SA(t.max);return r==null?null:{kind:`percent`,value:t.value,max:r}}function wA(e){if(typeof e==`number`)return Number.isFinite(e)&&e>=0?{kind:`px`,value:e}:null;if(typeof e==`string`)return xA(e);if(typeof e==`object`&&e){let t=SA(e);return t==null?CA(e):{kind:`px`,value:t}}return null}function TA(e){return e?.kind===`percent`}function EA(e,t){if(e.kind===`px`)return e.value;if(t==null)return null;let n=Math.round(e.value/100*t);return e.min===void 0?e.max===void 0?n:Math.min(n,e.max):Math.max(n,e.min)}function DA(e){if(typeof e==`number`&&!Number.isFinite(e))return String(e);try{return JSON.stringify(e)??String(e)}catch{return String(e)}}function OA(e){if(typeof e!=`object`||!e||Array.isArray(e))return DA(e);let t=e;return t.type===`pixel`?`{"type":"pixel","value":${DA(t.value)}}`:DA(e)}function kA(e){if(typeof e==`object`&&e&&!Array.isArray(e)){let t=e;if(t.type===`pixel`)return OA(e);if(t.type===`percent`){let e=[`"type":"percent"`,`"value":${DA(t.value)}`];return t.min!==void 0&&e.push(`"min":${OA(t.min)}`),t.max!==void 0&&e.push(`"max":${OA(t.max)}`),`{${e.join(`,`)}}`}}return DA(e)}function AA(e,t,n,r,i,a,o){return e===void 0?r:e===1/0&&r===1/0?1/0:t==null?(o.current||(o.current=!0,`${i}${kA(e)}${a}${r}`),r):EA(t,n)??r}function jA(e,t,n){let r=n?.contentBoxSize?.[0];if(r)return t===`vertical`?r.blockSize:r.inlineSize;let i=typeof window>`u`?null:window.getComputedStyle(e);if(i==null)return null;let a=t===`vertical`?e.clientHeight-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom):e.clientWidth-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight);return Number.isFinite(a)?a:null}function MA(e){let{defaultSize:t,minSize:n,maxSize:r,containerRef:i,direction:a=`horizontal`,collapsible:o=!1,collapsedSize:s=LA,snaps:c,autoSaveId:l,defaultIsCollapsed:u,isCollapsed:d,onSizeChange:f,onCollapseChange:p}=e,m=(0,FA.useRef)([]),h=c??m.current,g=n,_=r,v=wA(t),y=wA(n),b=wA(r),x=i!=null,S=l?yA(l):null,C=(0,FA.useRef)(null),[,w]=(0,FA.useState)(0),T=TA(v),E=TA(y)||TA(b),D=S?.size==null&&T&&C.current?.isFinal!==!0,O=x&&(E||D),k=!x&&E,A=(0,FA.useRef)(null),[,j]=(0,FA.useState)(0),M=(0,FA.useRef)(null),N=O?A.current:null;Cr(()=>{if(!O){A.current=null,M.current=null;return}let e=i?.current??null;e!==A.current&&(M.current=null,A.current=e,j(e=>e+1))});let ee=(0,FA.useCallback)(e=>!O||N==null||N!==i?.current?()=>{}:on(N,t=>{M.current=jA(N,a,t),e()}),[N,O,a,i]),P=(0,FA.useCallback)(()=>!O||N==null?(M.current=null,null):(M.current??=jA(N,a),M.current),[N,O,a]),te=(0,FA.useSyncExternalStore)(ee,P,()=>null),F=(0,FA.useCallback)(e=>x||!k||typeof window>`u`?()=>{}:(window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)),[x,k]),ne=(0,FA.useSyncExternalStore)(F,()=>typeof window>`u`?zA:window.innerWidth,()=>zA),I=O,re=te!=null&&te>0,ie=x?re?te:zA:ne,ae=!I||re,oe=(0,FA.useRef)(null),[se,ce]=(0,FA.useState)(0),le=oe.current??ie,ue=(0,FA.useRef)(!1),de=(0,FA.useRef)(!1),fe=(0,FA.useRef)(!1),pe=(0,FA.useRef)(!1),L=AA(g,y,le,IA,`minSize`,VA,ue),R=AA(_,b,le,1/0,`maxSize`,VA,de);(C.current==null||!C.current.isFinal)&&(C.current={px:AA(t,v,le,BA,`defaultSize`,VA,fe),isFinal:ae});let me=C.current.px,[he,ge]=(0,FA.useState)(()=>S?.size==null?ae?vA(me,L,R,h):null:S.size);x&&!E&&ae&&D&&he!=null&&w(e=>e+1),ae&&he==null&&ge(vA(me,L,R,h));let[_e,ve]=(0,FA.useState)({min:L,max:R});ae&&oe.current==null&&(_e.min!==L||_e.max!==R)&&(ve({min:L,max:R}),ge(e=>e==null?null:vA(e,L,R,h)));let ye=vA(he??me,L,R,h),[be,xe]=(0,FA.useState)(()=>S?.isCollapsed??u??!1),Se=d!==void 0,Ce=o&&(Se?d:be),we=(0,FA.useRef)(ye),Te=(0,FA.useRef)(Ce);Te.current=Ce;let Ee=(0,FA.useCallback)(e=>{Se||(Te.current=e,xe(e))},[Se]);(0,FA.useEffect)(()=>{L>R&&!pe.current&&(pe.current=!0,`${L}${R}`)},[L,R]),(0,FA.useEffect)(()=>{l&&ae&&bA(l,{size:ye,isCollapsed:Ce})},[ye,Ce,l,ae]);let De=(0,FA.useCallback)(()=>{o&&!Te.current&&(Ee(!0),p?.(!0),f?.(0))},[o,Ee,p,f]),Oe=(0,FA.useCallback)(()=>{let e=Te.current;Ee(!1),e&&p?.(!1),f?.(ye)},[Ee,ye,p,f]),ke=(0,FA.useCallback)(e=>{if(!Number.isFinite(e)||e<0){`${String(e)}`;return}let t=vA(e,L,R,h),n=Te.current;ge(t),Ee(!1),n&&p?.(!1),f?.(t)},[L,R,h,Ee,p,f]),Ae=(0,FA.useCallback)(()=>{oe.current=ie,we.current=Te.current?0:ye},[ye,ie]),je=(0,FA.useCallback)(e=>{let t=we.current+e;if(o&&t<s){Te.current||(Ee(!0),p?.(!0),f?.(0));return}Te.current&&t>=s&&(Ee(!1),p?.(!1));let n=vA(t,L,R,h);ge(n),f?.(n)},[o,s,Ee,L,R,h,f,p]),Me=(0,FA.useCallback)(()=>{oe.current!=null&&(oe.current=null,ce(e=>e+1))},[]),Ne=(0,FA.useCallback)(()=>{Me()},[Me]);return{size:Ce?0:ye,isCollapsed:Ce,collapse:De,expand:Oe,resize:ke,props:{_size:Ce?0:ye,_isCollapsed:Ce,_onResizeStart:Ae,_onResizeMove:je,_onResizeEnd:Ne,_onResizeCancel:Me,_minSizePx:L,_maxSizePx:R,_snaps:h,_collapsedSize:s,_collapsible:o,_direction:a,_isResizableProps:!0}}}function NA(e){let{regions:t,autoSaveId:n,containerRef:r,direction:i}=e,a=Object.entries(t),o=a.map(([e,t])=>MA({...t,containerRef:r,direction:i,autoSaveId:n?`${n}:${e}`:void 0})),s={};return a.forEach(([e],t)=>{s[e]=o[t]}),s}function PA(e){return`regions`in e?NA(e):MA(e)}var FA,IA,LA,RA,zA,BA,VA,HA,UA,WA=o((()=>{FA=u(f(),1),un(),wr(),En(),IA=50,LA=40,RA=`astryx-resizable:`,zA=1200,BA=250,VA=`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)}).`,HA=/^(\d+(?:\.\d+)?)px$/,UA=/^(\d+(?:\.\d+)?)%$/}));function GA(e,t,n){if(e!==`auto`)return e;let r=t?`end`:`start`;return n?r===`start`?`end`:`start`:r}function KA(e){return e===`center`?null:e===`start`?-1:1}function qA(e){document.body.style.cursor=e?`col-resize`:`row-resize`,document.body.style.userSelect=`none`}function JA(){document.body.style.cursor=``,document.body.style.userSelect=``}function YA({direction:e=`horizontal`,position:t=`inline`,isReversed:n=!1,isDisabled:r=!1,hasDivider:i=!1,isAlwaysVisible:a=!0,pillPlacement:o=`auto`,label:s,resizable:c,children:l,xstyle:u,className:d,ref:f,...p}){let m=xf(),h=s??m(`@astryx.resizable.handle.label`),g=(0,XA.useRef)(null),_=(0,XA.useRef)(null),[v,y]=(0,XA.useState)(!1),[b,x]=(0,XA.useState)(!1),[S,C]=(0,XA.useState)(!1),w=e===`horizontal`,T=t===`overlay`,E=n?-1:1,D=GA(o,n,c?._isCollapsed??!1),O=KA(D),k=(0,XA.useCallback)(()=>{let e=g.current;return e&&getComputedStyle(e).direction===`rtl`?-1:1},[]),A=b||S,j=(0,XA.useRef)(!1);(0,XA.useEffect)(()=>{let t=c?._direction;t!=null&&t!==e&&!j.current&&(j.current=!0,`${e}${t}`)},[e,c]);let M=(0,XA.useCallback)(()=>{_.current=null,y(!1),JA()},[]),N=(0,XA.useCallback)(e=>{r||!c||_.current||(e.preventDefault(),e.stopPropagation(),e.currentTarget.setPointerCapture?.(e.pointerId),_.current={pointerId:e.pointerId,startPos:w?e.clientX:e.clientY,rtl:w?k():1},y(!0),c._onResizeStart(),qA(w))},[r,c,w,k]),ee=(0,XA.useCallback)(e=>{let t=_.current;if(!t||t.pointerId!==e.pointerId||!c)return;let n=w?e.clientX:e.clientY;c._onResizeMove((n-t.startPos)*t.rtl*E)},[c,w,E]),P=(0,XA.useCallback)(e=>{_.current?.pointerId===e.pointerId&&(M(),c?._onResizeEnd())},[M,c]),te=(0,XA.useCallback)(e=>{_.current?.pointerId===e.pointerId&&(M(),c?._onResizeCancel?.())},[M,c]),F=(0,XA.useCallback)(e=>{if(r||!c)return;let t=e.shiftKey?$A:QA,n=w?k():1;switch(e.key){case`ArrowRight`:case`ArrowDown`:e.preventDefault(),c._onResizeStart(),c._onResizeMove(t*(w?n:1)*E),c._onResizeEnd();break;case`ArrowLeft`:case`ArrowUp`:e.preventDefault(),c._onResizeStart(),c._onResizeMove(-t*(w?n:1)*E),c._onResizeEnd();break;case`Home`:e.preventDefault(),c._onResizeStart(),c._onResizeMove(c._minSizePx-c._size),c._onResizeEnd();break;case`End`:e.preventDefault(),c._maxSizePx!==1/0&&(c._onResizeStart(),c._onResizeMove(c._maxSizePx-c._size),c._onResizeEnd());break;case`Enter`:e.preventDefault(),c._collapsible&&(c._onResizeStart(),c._onResizeMove(c._isCollapsed?c._minSizePx:-c._size),c._onResizeEnd())}},[r,c,w,k,E]),ne=(0,XA.useCallback)(()=>{!r&&c&&c._collapsible&&(c._onResizeStart(),c._onResizeMove(c._isCollapsed?c._minSizePx:-c._size),c._onResizeEnd())},[r,c]),I=(0,XA.useRef)(void 0);I.current=c?._onResizeCancel,(0,XA.useEffect)(()=>()=>{_.current&&(_.current=null,JA(),I.current?.())},[]);let re=c?._isCollapsed??!1,ie=c?re?Math.max(c._size,c._minSizePx):c._size:void 0,ae=c?c._minSizePx:void 0,oe=c&&c._maxSizePx!==1/0?c._maxSizePx:void 0,se=c&&re?m(`@astryx.resizable.collapsed`):void 0;return(0,ZA.jsxs)(`div`,{ref:yr(f,g),role:`separator`,"aria-orientation":w?`vertical`:`horizontal`,"aria-valuenow":ie,"aria-valuemin":ae,"aria-valuemax":oe,"aria-valuetext":se,"aria-label":h,"aria-disabled":r||void 0,tabIndex:r?-1:0,onDoubleClick:ne,onFocus:()=>C(!0),onBlur:()=>C(!1),"data-resizing":v||void 0,...U(V(`resize-handle`),Rn.focusVisible(ej.handle,T&&ej.overlay,T&&(w?ej.overlayHorizontal:ej.overlayVertical),!T&&(w?ej.horizontal:ej.vertical),!T&&!i&&(w?ej.noDividerHorizontal:ej.noDividerVertical),!T&&i&&A&&!v&&ej.handleHover,!T&&i&&v&&ej.handleActive,r&&ej.disabled,u),d),...p,onKeyDown:e=>{p.onKeyDown?.(e),F(e)},children:[(0,ZA.jsx)(`div`,{...z(ej.hitArea,w?ej.hitAreaHorizontal:ej.hitAreaVertical,O==null?w?On.centerInline(`0px`):ej.hitAreaCenteredY:w?aj.hitAreaOffsetX(O):aj.hitAreaOffsetY(O),r&&ej.disabled),onPointerDown:N,onPointerMove:ee,onPointerUp:P,onPointerCancel:te,onLostPointerCapture:te,onPointerEnter:()=>x(!0),onPointerLeave:()=>{v||x(!1)}}),l??(0,ZA.jsx)(`div`,{...U(V(`resize-handle-pill`),z(ej.pill,w?ej.pillHorizontal:ej.pillVertical,D===`center`?On.centerInline(`-50%`):w?aj.pillOffsetX(D===`start`?-1:1):aj.pillOffsetY(D===`start`?-1:1),a?ej.pillVisible:ej.pillHidden,A&&!v&&ej.pillHover,v&&ej.pillActive))})]})}var XA,ZA,QA,$A,ej,tj,nj,rj,ij,aj,oj=o((()=>{XA=u(f(),1),B(),En(),Et(),zn(),W(),H(),Df(),xr(),ZA=G(),QA=10,$A=50,ej={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}},tj={kLqNvP:`x1o0tod`,k3aq6I:`x11wx31z x75qhwu`,$$css:!0},nj={k87sOh:`x13vifvy`,k3aq6I:`xsqj5wx`,$$css:!0},rj={kLqNvP:`x1o0tod`,k3aq6I:`xsqj5wx`,$$css:!0},ij={k87sOh:`x13vifvy`,k3aq6I:`xsqj5wx`,$$css:!0},aj={hitAreaOffsetX:e=>[tj,{"--x-qthpiu":`translateX(calc(${e} * (3px + ${St[`--spacing-1`]}) - 6.5px))`==null?void 0:`translateX(calc(${e} * (3px + ${St[`--spacing-1`]}) - 6.5px))`,"--x-sj6hyi":`translateX(calc(${e} * (3px + ${St[`--spacing-1`]}) + 6.5px))`==null?void 0:`translateX(calc(${e} * (3px + ${St[`--spacing-1`]}) + 6.5px))`}],hitAreaOffsetY:e=>[nj,{"--x-transform":`translateY(calc(${e} * (3px + ${St[`--spacing-1`]}) - 6.5px))`==null?void 0:`translateY(calc(${e} * (3px + ${St[`--spacing-1`]}) - 6.5px))`}],pillOffsetX:e=>[rj,{"--x-transform":`translate(calc(${e} * (100% + ${St[`--spacing-1`]})), -50%)`==null?void 0:`translate(calc(${e} * (100% + ${St[`--spacing-1`]})), -50%)`}],pillOffsetY:e=>[ij,{"--x-transform":`translate(-50%, calc(${e} * (100% + ${St[`--spacing-1`]})))`==null?void 0:`translate(-50%, calc(${e} * (100% + ${St[`--spacing-1`]})))`}]},YA.displayName=`ResizeHandle`}));function sj(e,t){let n=typeof e==`object`?e:{},r=typeof t==`object`?t:{},i=r.defaultIsCollapsed!==void 0||r.isCollapsed!==void 0||r.onCollapseChange!==void 0;return{isCollapsible:!!e||i,defaultIsCollapsed:(i?r.defaultIsCollapsed:n.defaultIsCollapsed)??!1,isCollapsed:i?r.isCollapsed:n.isCollapsed,onCollapsedChange:i?r.onCollapseChange:n.onCollapsedChange,conflict:cj(n,r)}}function cj(e,t){let n=[e.defaultIsCollapsed!==void 0&&`defaultIsCollapsed`,e.isCollapsed!==void 0&&`isCollapsed`,e.onCollapsedChange!==void 0&&`onCollapsedChange`].filter(e=>e!==!1),r=[t.defaultIsCollapsed!==void 0&&`defaultIsCollapsed`,t.isCollapsed!==void 0&&`isCollapsed`,t.onCollapseChange!==void 0&&`onCollapseChange`].filter(e=>e!==!1);return n.length===0||r.length===0?null:`${n.map(e=>`collapsible.${e}`).join(`, `)} and ${r.map(e=>`resizable.${e}`).join(`, `)} address the same collapse state. resizable wins; the collapsible ${n.length===1?`value is`:`values are`} ignored.`}function lj({header:e,topContent:t,children:n,footer:r,footerIcons:i,collapsible:a=!1,resizable:o=!1,xstyle:s,className:c,style:l,"data-testid":u,ref:d,handleRef:f,...p}){let m=xf(),h=(typeof a==`object`?a:{}).hasButton??!0,g=typeof o==`object`?o:{},_=!!o,v=sj(a,o),{isCollapsible:y,onCollapsedChange:b}=v;CC(`SideNav`,v.conflict??``,v.conflict!=null);let x=yr(d,(0,uj.useRef)(null)),S=(0,uj.useRef)({isCollapsed:!1,toggle:()=>{},isCollapsible:y}),C=PA({defaultSize:g.defaultWidth??260,minSize:g.minWidth??180,maxSize:g.maxWidth??480,collapsible:y,collapsedSize:fj,autoSaveId:g.autoSaveId,defaultIsCollapsed:v.defaultIsCollapsed,isCollapsed:v.isCollapsed,onSizeChange:g.onWidthChange,onCollapseChange:b}),w=C.isCollapsed,T=(0,uj.useCallback)(()=>{let e=!w;S.current={...S.current,isCollapsed:e},e?C.collapse():C.expand()},[w,C]),E=_&&!w;S.current={isCollapsed:w,toggle:T,isCollapsible:y};let D={isCollapsed:w,toggle:T,isCollapsible:y};(0,uj.useImperativeHandle)(f,()=>({getCollapseState:()=>S.current}),[]);let O=WS();if(O===`topbar`)return(0,dj.jsxs)(`div`,{"data-testid":u,...U(V(`side-nav`,{mode:`topbar`}),z(pj.topbar,s),c,l),children:[e,(0,dj.jsx)(`div`,{className:`x78zum5 x6s0dn4 xzye2dw xvc5jky`,children:(0,dj.jsx)(hx,{value:mj,children:i})})]});let k=!!(r||i);if(O===`drawer`)return(0,dj.jsxs)(lA,{header:e,"data-testid":u,xstyle:s,className:c,style:l,...p,children:[t,n,k&&(0,dj.jsxs)(`div`,{className:`x78zum5 xdt5ytf xr1yuqi x1txdalj x1xye8es`,children:[r,i&&(0,dj.jsx)(`div`,{className:`x78zum5 x6s0dn4 xzye2dw`,children:(0,dj.jsx)(hx,{value:mj,children:i})})]})]});if(O===`drawer-content`)return(0,dj.jsxs)(dj.Fragment,{children:[t,n,k&&(0,dj.jsxs)(`div`,{className:`x78zum5 xdt5ytf xr1yuqi x1txdalj x1xye8es`,children:[r,i&&(0,dj.jsx)(`div`,{className:`x78zum5 x6s0dn4 xzye2dw`,children:(0,dj.jsx)(hx,{value:mj,children:i})})]})]});let A=!!(e||t),j=!!(r||i),M=y&&h,N=_?{...l??{},width:w?void 0:C.size}:l,ee=(0,dj.jsxs)(`nav`,{ref:x,role:`navigation`,"aria-label":m(`@astryx.sideNav.label`),"data-testid":u,...U(V(`side-nav`),z(pj.root,w&&pj.rootCollapsed,s),c,N),...p,children:[A&&(0,dj.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`}}[!!w<<0],children:[e,t&&(0,dj.jsx)(`div`,{children:t})]}),(0,dj.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`}}[!!w<<2|!!A<<1|!!j<<0],children:n}),(j||M)&&(0,dj.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`}}[!!w<<0],children:[r,(0,dj.jsx)(`div`,{...{0:{className:`x78zum5 x6s0dn4 xzye2dw`},1:{className:`x78zum5 x6s0dn4 xzye2dw x3ieub6`}}[!!w<<0],children:(0,dj.jsxs)(hx,{value:mj,children:[M&&(0,dj.jsx)(tA,{}),i]})})]})]}),P=E?(0,dj.jsxs)(`div`,{className:`x1n2onr6 x78zum5 x2lah0s x5yr21d x7giv3`,children:[ee,(0,dj.jsx)(YA,{"data-testid":`astryx-sidenav-resize-handle`,direction:`horizontal`,position:`overlay`,pillPlacement:`end`,isAlwaysVisible:!1,xstyle:pj.resizableHandle,resizable:C.props,label:m(`@astryx.sideNav.resizeSidebar`)})]}):ee;return y?(0,dj.jsx)($k,{value:D,children:P}):P}var uj,dj,fj,pj,mj,hj=o((()=>{uj=u(f(),1),B(),W(),eA(),oA(),qS(),_A(),WA(),oj(),H(),gx(),TC(),Df(),xr(),dj=G(),fj=160,pj={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}},mj=`sm`,lj.displayName=`SideNav`})),gj,_j=o((()=>{gj={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`,$$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}}})),vj,yj,bj,xj=o((()=>{vj=u(f(),1),Ar(),yj=(0,vj.createContext)(null),yj.displayName=`NavHeadingCloseContext`,bj=Tr(null),bj.displayName=`NavHeadingMenuContext`}));function Sj({href:e,as:t,isDisabled:n,onClick:r,ref:i,children:a,...o}){let s=Tu(t);return e&&!n?(0,Tj.jsx)(s,{ref:i,href:e,onClick:r,...o,children:a}):(0,Tj.jsx)(`button`,{ref:i,type:`button`,onClick:r,disabled:n,...o,children:a})}function Cj({as:e,label:t,icon:n,selectedIcon:r,isSelected:i=!1,isDisabled:a=!1,href:o,onClick:s,endContent:c,actions:l,children:u,collapsible:d,size:f=`md`,"data-testid":p,ref:m,xstyle:h,...g}){let _=xf(),{isCollapsed:v}=Zk(),y=WS(),{closeMobileNav:b}=IS(),x=y===`drawer`||y===`drawer-content`,S=(0,wj.useId)(),C=!!u,w=(0,wj.useRef)(null),T=kC({hasLightDismiss:!0,hasAutoFocus:!0,hasCloseButton:!1,dialogLabel:_(`@astryx.sideNavItem.submenuLabel`,{label:t})}),E=yr(m,T.triggerRef),D=(0,wj.useMemo)(()=>typeof d==`object`?d:{},[d]),O=C&&d!==!1,k=D.isCollapsed,A=k!==void 0,[j,M]=(0,wj.useState)(D.defaultIsCollapsed??!1),N=A?k:j,ee=(0,wj.useCallback)(()=>{let e=!N;A||M(e),D.onCollapsedChange?.(e)},[N,A,D]),P=i&&r?r:n,te=O&&(!!o||!!s)&&!v,F=!!l,ne=e=>{if(a){e.preventDefault();return}if(O&&!te&&!v){e.preventDefault(),ee();return}s?.(e),x&&b()},I=e=>{e.preventDefault(),e.stopPropagation(),ee()},{triggerProps:re,contentProps:ie}=Pw({show:T.show,hide:T.hide,isOpen:T.isOpen,isEnabled:v&&C,clickGuardMs:0,ownsFocus:!1});if(v&&!n)return null;if(v){let n=P&&au(P,{size:`sm`,color:i?`inherit`:a?`disabled`:`secondary`}),r=U(V(`side-nav-item`,{size:f,selected:i?`selected`:null,disabled:a?`disabled`:null}),Rn.focusVisible(gj.item,Lu.backgroundColor,gj[f],Ej.itemCollapsed,f===`sm`&&Ej.itemCollapsedSm,f===`lg`&&Ej.itemCollapsedLg,i&&gj.selected,a&&gj.disabled)),s=g[`aria-label`]!=null&&g[`aria-label`].trim()!==``?g[`aria-label`]:t;if(C)return(0,Tj.jsxs)(`div`,{...z(Ej.root,h),children:[(0,Tj.jsx)(`button`,{ref:E,type:`button`,...g,...re,"aria-label":s,"data-testid":p,...T.triggerProps,...r,children:n}),T.render((0,Tj.jsxs)(`div`,{className:`x1hviunn xu0wf1k x7a5moj xfb3i0g`,onMouseEnter:ie.onMouseEnter,onMouseLeave:ie.onMouseLeave,onClick:()=>T.hide(),children:[(0,Tj.jsx)(`div`,{className:`xf314gf xu0wf1k x141an7d x2mo6ok xv1l7n4 x1ltkj2j`,children:t}),(0,Tj.jsx)($k,{value:Oj,children:u})]}),{placement:`end`,alignment:`start`,xstyle:Ej.popoverGap})]});let c={"aria-current":i?`page`:void 0,"aria-disabled":a||void 0,"aria-label":s,"data-testid":p},l=(0,Tj.jsx)(Sj,{ref:m,href:o,as:e,isDisabled:a,onClick:ne,...g,...c,...r,children:n});return(0,Tj.jsxs)(`div`,{ref:w,...z(Ej.root,h),children:[l,(0,Tj.jsx)(Da,{content:t,placement:`end`,anchorRef:w})]})}let ae=(0,Tj.jsxs)(Tj.Fragment,{children:[P&&au(P,{size:`sm`,color:i?`inherit`:a?`disabled`:`secondary`}),!v&&(0,Tj.jsx)(`span`,{className:`x98rzlu xeuugli xb3r6kr xlyipyv xuxw1ft`,children:t}),!v&&c&&(0,Tj.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4`,children:c}),!v&&O&&!te&&(0,Tj.jsx)(ru,{icon:`chevronDown`,size:`lg`,color:`inherit`,xstyle:[Ej.expandChevron,!N&&Ej.expandChevronExpanded]})]}),oe=V(`side-nav-item`,{size:f,selected:i?`selected`:null,disabled:a?`disabled`:null}),se=[gj.item,Lu.backgroundColor,gj[f],i&&gj.selected,a&&gj.disabled],ce=U(oe,z(...se)),le=U(oe,Rn.focusVisible(...se)),ue=U(oe,Rn.focusWithinFirstChild(...se)),de=te||F,fe;if(de){let n=te?{"aria-current":i?`page`:void 0}:{"aria-current":i?`page`:void 0,"aria-disabled":a||void 0,"aria-expanded":O?!N:void 0,"aria-controls":O?`${S}-children`:void 0};fe=(0,Tj.jsxs)(`div`,{"data-testid":p,...F?ue:ce,children:[(0,Tj.jsx)(Sj,{ref:m,href:o,as:e,isDisabled:a,onClick:ne,...g,...n,...F?Rn.suppressed(Ej.splitAction):Rn.focusVisible(Ej.splitAction),children:ae}),te&&(0,Tj.jsx)(`button`,{type:`button`,onClick:I,"aria-label":_(N?`@astryx.sideNavItem.expand`:`@astryx.sideNavItem.collapse`,{label:t}),"aria-expanded":!N,"aria-controls":`${S}-children`,...Rn.focusVisible(Ej.expandToggle,Lu.backgroundColor),children:(0,Tj.jsx)(ru,{icon:`chevronDown`,size:`lg`,color:`inherit`,xstyle:[Ej.expandChevron,!N&&Ej.expandChevronExpanded]})}),F&&(0,Tj.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xzye2dw x67bb7w`,children:(0,Tj.jsx)(hx,{value:Dj,children:l})})]})}else{let t={"aria-current":i?`page`:void 0,"aria-disabled":a||void 0,"aria-expanded":O?!N:void 0,"aria-controls":O?`${S}-children`:void 0,"data-testid":p};fe=(0,Tj.jsx)(Sj,{ref:m,href:o,as:e,isDisabled:a,onClick:ne,...g,...t,...le,children:ae})}return(0,Tj.jsxs)(`div`,{ref:w,...z(Ej.root,h),children:[fe,C&&!v&&(0,Tj.jsx)(`div`,{id:`${S}-children`,role:`group`,"aria-labelledby":`${S}-label`,"aria-hidden":N,inert:N?!0:void 0,...{0:{className:`xrvj5dj x1tu4anv x1qn9uv2 x80gvsz x12w9bfk xlr8y92`},1:{className:`xrvj5dj x1qn9uv2 x80gvsz x12w9bfk xlr8y92 xihq33y`}}[!!N<<0],children:(0,Tj.jsxs)(`div`,{className:`xb3r6kr x2lwn1j x31w388`,children:[(0,Tj.jsx)(`span`,{id:`${S}-label`,hidden:!0,children:t}),u]})})]})}var wj,Tj,Ej,Dj,Oj,kj=o((()=>{wj=u(f(),1),B(),uu(),Du(),PC(),Rw(),W(),du(),_j(),gx(),zn(),Ru(),eA(),qS(),BS(),H(),Df(),xr(),Tj=G(),Ej={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}},Dj=`sm`,Oj={isCollapsed:!1,toggle:()=>{},isCollapsible:!1},Cj.displayName=`SideNavItem`}));function Aj({ref:e,title:t,subtitle:n,children:r,endContent:i,isHeaderHidden:a=!1,xstyle:o,className:s,style:c,"data-testid":l,...u}){let{isCollapsed:d}=Zk(),f=`${(0,jj.useId)()}-title`,p=(0,Mj.jsxs)(Mj.Fragment,{children:[(0,Mj.jsxs)(`span`,{className:`x78zum5 xdt5ytf x98rzlu xeuugli`,children:[(0,Mj.jsx)(`span`,{id:f,className:`x141an7d x2mo6ok x1ltkj2j xv1l7n4 xb3r6kr xlyipyv xuxw1ft`,children:t}),n&&(0,Mj.jsx)(`span`,{className:`x141an7d x1ltkj2j xv1l7n4 xb3r6kr xlyipyv xuxw1ft`,children:n})]}),i&&(0,Mj.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4`,children:i})]}),m=a||d;return(0,Mj.jsxs)(`div`,{ref:e,...U(V(`side-nav-section`),z(Nj.root,o),s,c),...u,role:`group`,"aria-labelledby":f,"data-testid":l,children:[m?(0,Mj.jsx)(fu,{as:`div`,children:p}):(0,Mj.jsx)(`div`,{className:`x78zum5 x6s0dn4 x1txdalj xf314gf xu0wf1k xt0e3qv x87ps6o`,children:p}),(0,Mj.jsx)(`div`,{className:`x78zum5 xdt5ytf x1lsbc85`,children:r})]})}var jj,Mj,Nj,Pj=o((()=>{jj=u(f(),1),B(),W(),eA(),hu(),H(),Mj=G(),Nj={root:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,k8WAf4:`xu0wf1k`,$$css:!0}},Aj.displayName=`SideNavSection`})),Fj=o((()=>{hj(),B(),Et(),PC(),Rf(),uu(),du(),_j(),zn(),Ru(),eA(),Du(),W(),xr(),Rw(),xj(),H(),Df(),kj(),Pj(),oA(),qS()})),Ij,Lj=o((()=>{f(),Ar(),Ij=Tr(`start`),Ij.displayName=`TopNavSlotContext`}));function Rj({heading:e,startContent:t,children:n,centerContent:r,endContent:i,label:a,xstyle:o,className:s,style:c,ref:l,...u}){let d=xf(),f=a??d(`@astryx.topNav.landmarkLabel`),p=JS(),m=QS(),{hasAutoToggle:h}=IS(),g=t??n,_=r!=null,v=g!=null||r!=null,y=v||m!=null;return p===`mobile-bar`?(0,zj.jsxs)(`nav`,{ref:l,role:`navigation`,"aria-label":f,...U(V(`top-nav`,{mode:`mobile-bar`}),z(Bj.mobileBar,o),s,c),...u,children:[e&&(0,zj.jsx)(`div`,{className:`x78zum5 x6s0dn4 x2lah0s`,children:e}),(0,zj.jsxs)(`div`,{className:`x78zum5 x6s0dn4 xzye2dw xvc5jky`,children:[i,y&&h&&(0,zj.jsx)(VS,{})]})]}):p===`drawer`?!v&&!m?null:(0,zj.jsxs)(lA,{header:e,children:[v&&(0,zj.jsxs)(`div`,{className:`x78zum5 xdt5ytf x1lsbc85`,children:[g,r]}),v&&m&&(0,zj.jsx)(pw,{xstyle:Bj.drawerDivider}),m&&(0,zj.jsx)(`div`,{children:m})]}):(0,zj.jsxs)(`nav`,{ref:l,role:`navigation`,"aria-label":f,...U(V(`top-nav`),z(Bj.base,_?Bj.baseGrid:Bj.baseFlex,o),s,c),...u,children:[(0,zj.jsxs)(`div`,{className:`x78zum5 x6s0dn4 x18g69wz x845mor xeuugli`,children:[e&&(0,zj.jsx)(`div`,{className:`x78zum5 x6s0dn4 x2lah0s`,children:e}),g&&(0,zj.jsx)(Ij,{value:`start`,children:(0,zj.jsx)(`div`,{className:`x78zum5 x6s0dn4 xzye2dw`,children:g})})]}),_&&(0,zj.jsx)(Ij,{value:`center`,children:(0,zj.jsx)(`div`,{className:`x78zum5 x6s0dn4 xl56j7k xzye2dw`,children:r})}),_?(0,zj.jsx)(`div`,{className:`x78zum5 x6s0dn4 x13a6bvl xzye2dw`,children:(0,zj.jsx)(Ij,{value:`end`,children:i})}):i&&(0,zj.jsx)(`div`,{className:`x78zum5 x6s0dn4 xzye2dw x2lah0s xvc5jky`,children:(0,zj.jsx)(Ij,{value:`end`,children:i})})]})}var zj,Bj,Vj=o((()=>{B(),W(),Df(),Lj(),ZS(),tC(),yw(),_A(),US(),BS(),H(),zj=G(),Bj={base:{kGNEyG:`x6s0dn4`,kzqmXN:`xh8yej3`,kmVPX3:`xlsj2fj`,kB7OPa:`x9f619`,$$css:!0},baseFlex:{k1xSpc:`x78zum5`,$$css:!0},baseGrid:{k1xSpc:`xrvj5dj`,kumcoG:`x134kloy`,$$css:!0},mobileBar:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kzqmXN:`xh8yej3`,kmVPX3:`xlsj2fj`,kB7OPa:`x9f619`,$$css:!0},drawerDivider:{kqGvvJ:`x1g06x3t`,$$css:!0}},Rj.displayName=`TopNav`}));function Hj({as:e,logo:t,logoLabel:n,heading:r,headingHref:i,superheading:a,superheadingHref:o,subheading:s,subheadingHref:c,headerEndContent:l,menu:u,xstyle:d,className:f,style:p,"data-testid":m,ref:h,...g}){let _=xf(),v=Tu(e),y=n??r,b=(0,Uj.useRef)(null),x=kC({dialogLabel:_(`@astryx.topNav.heading.dialogLabel`),role:`none`,hasCloseButton:!1}),{triggerProps:S,contentProps:C,menuRef:w,setTriggerEl:T,close:E}=Pw({show:x.show,hide:x.hide,isOpen:x.isOpen,isEnabled:!!u,showDelay:0}),D=(0,Uj.useMemo)(()=>({closeMenu:E}),[E]),O=yr(b,h,u?x.triggerRef:void 0),k=!!u,A=!!(i||o||c),j=!!u&&!A,M=!!i&&!u&&!o&&!c,N=e=>(0,Wj.jsxs)(`span`,{className:`x78zum5 xdt5ytf xeuugli`,children:[a&&(A&&o&&u?(0,Wj.jsx)(kf,{href:o,onClick:e=>e.stopPropagation(),color:`secondary`,size:`xsm`,children:a}):(0,Wj.jsx)(`span`,{className:`x141an7d x1ltkj2j xv1l7n4 x1hl2dhg xb3r6kr xlyipyv xuxw1ft`,children:a})),(0,Wj.jsxs)(`span`,{className:`x78zum5 x6s0dn4 xzye2dw`,children:[A&&i&&u?(0,Wj.jsx)(v,{href:i,onClick:e=>e.stopPropagation(),className:`x18juvz8 x2mo6ok xf74fhv x1hl2dhg x1heor9g xb3r6kr xlyipyv xuxw1ft`,children:r}):(0,Wj.jsx)(`span`,{className:`x18juvz8 x2mo6ok xf74fhv x1tgivj0 x1hl2dhg xb3r6kr xlyipyv xuxw1ft`,children:r}),e]}),s&&(A&&c&&u?(0,Wj.jsx)(kf,{href:c,onClick:e=>e.stopPropagation(),color:`secondary`,size:`xsm`,children:s}):(0,Wj.jsx)(`span`,{className:`x141an7d x1ltkj2j xv1l7n4 x1hl2dhg xb3r6kr xlyipyv xuxw1ft`,children:s}))]}),ee=k&&(0,Wj.jsx)(ru,{icon:`chevronDown`,size:`sm`,color:`secondary`,xstyle:[Gj.chevron,Gj.chevronGlyph]}),P=l&&(0,Wj.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xvc5jky`,children:l}),te=(0,Wj.jsxs)(`button`,{type:`button`,className:`x78zum5 x6s0dn4 x1txdalj xh8yej3 xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x1heor9g x1yc453h xkoleio x12gdq22 xmnmr5y x1djylfy xt970qd xcsaf9d x1p37lm5 xhrcg97 x1ypdohk x16khyan`,onClick:E,children:[t&&(0,Wj.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t}),N((0,Wj.jsx)(ru,{icon:`chevronDown`,size:`sm`,color:`secondary`,xstyle:[Gj.chevron,Gj.chevronGlyph,Gj.popoverChevron]}))]});return!r&&!u?(0,Wj.jsx)(i?v:`div`,{ref:h,href:i,"aria-label":i?n:void 0,"data-testid":m,...U(V(`top-nav-heading`),z(Gj.root,!!i&&Gj.menuTrigger,d),f,p),...g,children:t&&(0,Wj.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t})}):M&&i?(0,Wj.jsxs)(v,{ref:h,href:i,"data-testid":m,...U(V(`top-nav-heading`),z(Gj.root,Gj.menuTrigger,d),f,p),...g,children:[t&&(0,Wj.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t}),N(),P,ee]}):j?(0,Wj.jsxs)(Wj.Fragment,{children:[(0,Wj.jsxs)(`div`,{ref:O,"data-testid":m,...S,...U(V(`top-nav-heading`),z(Gj.root,Gj.menuTrigger,d),f,p),children:[t&&(0,Wj.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t}),N((0,Wj.jsx)(`button`,{ref:T,type:`button`,"aria-label":_(`@astryx.topNav.heading.openMenu`),onClick:e=>{e.stopPropagation(),S.onClick()},...x.triggerProps,className:`x2lah0s x78zum5 x6s0dn4 xl56j7k xy8csz5 ximsjs8 xv9yike x1ypdohk x16khyan xh6dtrn xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x1sodnla x1yc453h xoevpu5`,children:(0,Wj.jsx)(ru,{icon:`chevronDown`,size:`sm`,color:`inherit`,xstyle:Gj.chevronGlyph})})),P]}),x.render((0,Wj.jsxs)(`div`,{ref:w,className:`x9epnlk xb3r6kr`,...C,children:[te,(0,Wj.jsx)(`div`,{role:`menu`,"aria-label":r??_(`@astryx.topNav.heading.dialogLabel`),children:(0,Wj.jsx)(yj,{value:D,children:u})})]}),{placement:`below`,alignment:`start`,xstyle:Gj.popoverOverlap})]}):u&&A?(0,Wj.jsxs)(Wj.Fragment,{children:[(0,Wj.jsxs)(`div`,{ref:O,"data-testid":m,...S,...U(V(`top-nav-heading`),z(Gj.root,d),f,p),children:[t&&(i?(0,Wj.jsx)(v,{href:i,"aria-label":y,onClick:e=>e.stopPropagation(),className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t}):(0,Wj.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t})),N(k?(0,Wj.jsx)(`button`,{ref:T,type:`button`,"aria-label":_(`@astryx.topNav.heading.openMenu`),onClick:e=>{e.stopPropagation(),S.onClick()},...x.triggerProps,className:`x2lah0s x78zum5 x6s0dn4 xl56j7k xy8csz5 ximsjs8 xv9yike x1ypdohk x16khyan xh6dtrn xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x1sodnla x1yc453h xoevpu5`,children:(0,Wj.jsx)(ru,{icon:`chevronDown`,size:`sm`,color:`inherit`,xstyle:Gj.chevronGlyph})}):void 0),P]}),x.render((0,Wj.jsxs)(`div`,{ref:w,className:`x9epnlk xb3r6kr`,...C,children:[te,(0,Wj.jsx)(`div`,{role:`menu`,"aria-label":r??_(`@astryx.topNav.heading.dialogLabel`),children:(0,Wj.jsx)(yj,{value:D,children:u})})]}),{placement:`below`,alignment:`start`,xstyle:Gj.popoverOverlap})]}):A&&!M?(0,Wj.jsxs)(`div`,{ref:h,"data-testid":m,...U(V(`top-nav-heading`),z(Gj.root,d),f,p),...g,children:[t&&(i?(0,Wj.jsx)(v,{href:i,"aria-label":y,className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t}):(0,Wj.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t})),(0,Wj.jsxs)(`span`,{className:`x78zum5 xdt5ytf xeuugli`,children:[a&&(o?(0,Wj.jsx)(kf,{href:o,color:`secondary`,size:`xsm`,children:a}):(0,Wj.jsx)(`span`,{className:`x141an7d x1ltkj2j xv1l7n4 x1hl2dhg xb3r6kr xlyipyv xuxw1ft`,children:a})),i?(0,Wj.jsx)(kf,{href:i,color:`primary`,weight:`semibold`,children:r}):(0,Wj.jsx)(`span`,{className:`x18juvz8 x2mo6ok xf74fhv x1tgivj0 x1hl2dhg xb3r6kr xlyipyv xuxw1ft`,children:r}),s&&(c?(0,Wj.jsx)(kf,{href:c,color:`secondary`,size:`xsm`,children:s}):(0,Wj.jsx)(`span`,{className:`x141an7d x1ltkj2j xv1l7n4 x1hl2dhg xb3r6kr xlyipyv xuxw1ft`,children:s}))]}),P,ee]}):(0,Wj.jsxs)(`div`,{ref:h,"data-testid":m,...U(V(`top-nav-heading`),z(Gj.root,d),f,p),...g,children:[t&&(0,Wj.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t}),N(),P,ee]})}var Uj,Wj,Gj,Kj=o((()=>{Uj=u(f(),1),B(),PC(),Rf(),uu(),Du(),W(),xr(),Rw(),xj(),H(),Df(),Wj=G(),Gj={root:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x1txdalj`,kAzted:`xkoleio`,kZCmMZ:`x12gdq22 xmnmr5y`,kwRFfy:`x1djylfy`,k8WAf4:`xt970qd`,kB7OPa:`x9f619`,kybGjl:`x1hl2dhg`,kMwMTN:`x1tgivj0`,kkrTdU:`xt0e3qv`,$$css:!0},menuTrigger:{kkrTdU:`x1ypdohk x16khyan`,kaIpWk:`xh6dtrn`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,kWkggS:`xjbqb8w`,kMv6JI:`xjb2p0i`,kGuDYH:`x1qlqyl8`,k63SB2:`x1sodnla`,k9WMMc:`x1yc453h`,$$css:!0},chevron:{kmuXW:`x2lah0s`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,k7Eaqz:`xy8csz5`,kAzted:`ximsjs8`,kMwMTN:`xv9yike`,$$css:!0},chevronGlyph:{kzqmXN:`x15vhz18`,kZKoxP:`xlzyvqe`,kGuDYH:`x1qlqyl8`,$$css:!0},popoverChevron:{k3aq6I:`x19jd1h0`,$$css:!0},popoverOverlap:{k7Eaqz:`x8wyhu6`,keoZOQ:`xvyqdj1`,keTefX:`x1qfufaz`,$$css:!0}},Hj.displayName=`TopNavHeading`})),qj=o((()=>{Vj(),Kj(),B(),Et(),Du(),ZS(),_j(),W(),BS(),H(),zn(),Ru(),PC(),Rw(),Nw(),Hw(),uu(),xr(),Lj()}));function Jj(e,t){return`${e} · ${t}${/\bvoid\b/i.test(t)?``:` · Void`}`}var Yj=o((()=>{}));function Xj(){return(0,Zj.jsxs)(`svg`,{role:`img`,"aria-label":`Void`,viewBox:`0 0 270 58`,fill:`none`,className:`void-admin-logo`,children:[(0,Zj.jsx)(`circle`,{cx:`262`,cy:`48.96`,r:`8`,fill:`currentColor`}),(0,Zj.jsx)(`path`,{d:`M20.72 0.959999L35.52 41.28L50.08 0.959999H70L47.92 56.96H22.32L0.24 0.959999H20.72ZM106.542 57.92C82.9419 57.92 70.6219 48 70.6219 28.96C70.6219 9.92 82.9419 1.90735e-06 106.542 1.90735e-06C130.142 1.90735e-06 142.542 9.92 142.542 28.96C142.542 48 130.142 57.92 106.542 57.92ZM106.542 44.08C117.662 44.08 122.862 39.36 122.862 28.96C122.862 18.48 117.662 13.76 106.542 13.76C95.4219 13.76 90.2219 18.48 90.2219 28.96C90.2219 39.36 95.4219 44.08 106.542 44.08ZM152.265 56.96V0.959999H171.465V56.96H152.265ZM184.687 56.96V0.959999H219.887C239.327 0.959999 250.447 9.84 250.447 28.96C250.447 48.16 239.247 56.96 219.807 56.96H184.687ZM230.767 28.96C230.767 18.48 226.287 14.56 217.167 14.56H203.887V43.36H217.167C226.287 43.36 230.767 39.44 230.767 28.96Z`,fill:`currentColor`})]})}var Zj,Qj=o((()=>{Zj=G()}));function $j({title:e,platformName:t,username:n,children:r}){let i=eo().path,a=co().location?.pathname??i,[o,s]=(0,eM.useState)(tM);return(0,eM.useEffect)(()=>{document.title=Jj(e,t)},[e,t]),(0,eM.useEffect)(()=>{let e=e=>{let t=e.target;if(!(t instanceof HTMLFormElement))return;let n=t.dataset.confirm;n&&!window.confirm(n)&&e.preventDefault()};return document.addEventListener(`submit`,e,!0),()=>document.removeEventListener(`submit`,e,!0)},[]),q(nC,{className:`void-admin-shell`,height:`auto`,contentPadding:6,mobileNav:{breakpoint:`lg`},topNav:q(Rj,{label:`Platform administration`,heading:q(Hj,{className:`void-admin-brand`,logo:q(Xj,{}),heading:t}),endContent:q(dk,{button:{label:n??`Account`,variant:`ghost`},alignment:`end`,items:[{label:`Log out`,icon:$m,onClick:()=>window.location.assign(`/admin/logout`)}]})}),sideNav:J(lj,{label:`Admin sections`,collapsible:{isCollapsed:o,onCollapsedChange:e=>{tM=e,s(e)}},children:[q(Aj,{title:`Overview`,children:q(Cj,{label:`Dashboard`,icon:qm,href:`/admin/`,isSelected:a===`/admin/`})}),J(Aj,{title:`Applications`,children:[q(Cj,{label:`Projects`,icon:Rm,href:`/admin/projects`,isSelected:a.startsWith(`/admin/projects`)}),q(Cj,{label:`Deployments`,icon:_h,href:`/admin/deployments`,isSelected:a.startsWith(`/admin/deployments`)})]}),J(Aj,{title:`People`,children:[q(Cj,{label:`Users`,icon:Vh,href:`/admin/users`,isSelected:a.startsWith(`/admin/users`)}),q(Cj,{label:`Access`,icon:Xm,href:`/admin/signup-control`,isSelected:a.startsWith(`/admin/signup-control`)||a.startsWith(`/admin/invitations`)})]}),J(Aj,{title:`Platform`,children:[q(Cj,{label:`Platform status`,icon:Ep,href:`/admin/status`,isSelected:a===`/admin/status`}),q(Cj,{label:`Plans`,icon:kh,href:`/admin/config/plans`,isSelected:a.startsWith(`/admin/config/plans`)}),q(Cj,{label:`Authentication`,icon:Ch,href:`/admin/config/auth`,isSelected:a.startsWith(`/admin/config/auth`)}),q(Cj,{label:`Email`,icon:nh,href:`/admin/email`,isSelected:a.startsWith(`/admin/email`)}),q(Cj,{label:`Zero Trust`,icon:Eh,href:`/admin/zero-trust`,isSelected:a===`/admin/zero-trust`}),q(Cj,{label:`CLI Versions`,icon:Fh,href:`/admin/cli-versions`,isSelected:a===`/admin/cli-versions`})]})]}),children:q(`div`,{className:`void-admin-content`,children:r})})}var eM,tM,nM=o((()=>{uC(),Xk(),Fj(),qj(),po(),Yh(),eM=u(f(),1),Yj(),Qj(),kb(),tM=!1}));function rM({width:e,height:t,maxWidth:n,minHeight:r,children:i,padding:a,variant:o=`default`,elevation:s=`none`,xstyle:c,className:l,style:u,ref:d,...f}){let p=t!=null&&t!==`auto`,m=a==null?void 0:Xr[a];return(0,iM.jsx)(`div`,{ref:d,...U(V(`card`,{variant:o,elevation:s}),z(aM.card,oM[o],sM[s],p&&aM.scrollable,cM.sizing(e??null,t??null,n??null,r??null),...dO(m==null?{useThemeDefault:`card`}:{paddingInnerX:m,paddingInnerY:m,paddingOuterX:m,paddingOuterY:m}),o==="default"&&aM.withBorder,c),l,u),...f,children:i})}var iM,aM,oM,sM,cM,lM=o((()=>{B(),AO(),pi(),W(),H(),iM=G(),aM={card:{"--_card-radius":`x2kkz0m`,kaIpWk:`x153u1i6`,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}},oM={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}},sM={none:{"--_card-elevation":`xw28qpl`,$$css:!0},low:{"--_card-elevation":`x1nn8khe`,$$css:!0},med:{"--_card-elevation":`x1ovzxg0`,$$css:!0},high:{"--_card-elevation":`xnpe7fx`,$$css:!0}},cM={sizing:(e,t,n,r)=>[{kzqmXN:e==null?e:`x5lhr3w`,kZKoxP:t==null?t:`x16ye13r`,ks0D6T:n==null?n:`xf68679`,kAzted:r==null?r:`x82snj4`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(e),"--x-height":(e=>typeof e==`number`?e+`px`:e??void 0)(t),"--x-maxWidth":(e=>typeof e==`number`?e+`px`:e??void 0)(n),"--x-minHeight":(e=>typeof e==`number`?e+`px`:e??void 0)(r)}]},rM.displayName=`Card`})),uM=o((()=>{lM()}));function dM({label:e,onClick:t,onMouseUp:n,href:r,target:i,isDisabled:a=!1,children:o,padding:s,variant:c=`default`,elevation:l=`none`,width:u,height:d,maxWidth:f,ref:p,xstyle:m,className:h,style:g,..._}){let v=(0,fM.useRef)(null),y=(0,fM.useRef)(null),b=Tu(),{onClick:x,onMouseUp:S}=BC({containerRef:v,interactiveRef:y,onClick:t,href:r,target:i,disabled:a}),C=n?e=>{S(e),n(e)}:S,w=r!=null,T=c==="default";return(0,pM.jsxs)(rM,{ref:yr(p,v),width:u,height:d,maxWidth:f,padding:s,variant:c,elevation:l,...U(V(`clickable-card`,{variant:c}),Rn.focusWithin(),h,g),xstyle:[mM.interactive,T?mM.bordered:mM.borderless,!a&&mM.overlay,!a&&mM.hoverOnPointer,!a&&T&&mM.borderedHoverOnPointer,a&&mM.disabled,m],onClick:a?void 0:x,onMouseUp:a?void 0:C,..._,children:[w?(0,pM.jsx)(b,{ref:y,href:r,target:i,"aria-label":e,"aria-disabled":a||void 0,tabIndex:a?-1:0,className:`x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr xzpqnlu xuxw1ft xc342km`}):(0,pM.jsx)(`button`,{ref:y,type:`button`,"aria-label":e,disabled:a,onClick:t,className:`x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr xzpqnlu xuxw1ft xc342km`}),o]})}var fM,pM,mM,hM=o((()=>{fM=u(f(),1),W(),lM(),WC(),Du(),H(),zn(),xr(),pM=G(),mM={interactive:{kVAEAm:`x1n2onr6`,kkrTdU:`x1ypdohk x16khyan`,kybGjl:`x1hl2dhg`,kMwMTN:`x1heor9g`,$$css:!0},overlay:{k5JduY:`x1s928wv`,kwXMNM:`x1j6awrg`,kv0HGH:`xarstr8`,kloYau:`x2q1x1w`,kRicXK:`x1ywzrc5`,kPNhGg:`x97pup0`,kA8PQs:`x1dlmc9c`,ks3ayO:`xyhc2n1`,kAcZsS:`x1k7wiig`,$$css:!0},hoverOnPointer:{k8t4tK:`x1912f9e`,$$css:!0},borderless:{kMzoRj:`xc342km`,$$css:!0},bordered:{kVAM5u:`x14i3s5s`,kZCmMZ:`xs19ii7`,kwRFfy:`x12frdag`,kLKAdn:`x1nex4ik`,kGO01o:`xbv1mwh`,k1ekBW:`xshfolx`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,$$css:!0},borderedHoverOnPointer:{kpsWHe:`x1xwh4np`,$$css:!0},disabled:{kkrTdU:`xt0e3qv`,kSiTet:`xbyyjgo`,$$css:!0}},dM.displayName=`ClickableCard`})),gM=o((()=>{hM()})),_M=o((()=>{LO()}));function vM({children:e,hasDivider:t,height:n,label:r,padding:i,role:a,xstyle:o,className:s,style:c,ref:l,...u}){let d=(0,yM.use)(Jx),f=t??d?.defaultHasDividers??!1,p=i===0;return(0,bM.jsx)(`div`,{ref:l,role:a,"aria-label":r,"data-divider":f||void 0,...U(V(`layout-footer`),z(xM.footer,SM.sizing(n??null),f&&xM.divider,o),s,c),...u,children:(0,bM.jsx)(`div`,{...z(xM.inner,p&&xM.fullBleed,i!=null&&Zr[i],i!=null&&Qr[i],i!=null&&$r[i],i!=null&&ei[i]),children:e})})}var yM,bM,xM,SM,CM=o((()=>{yM=u(f(),1),B(),Yx(),W(),H(),pi(),bM=G(),xM={footer:{kmuXW:`x2lah0s`,$$css:!0},inner:{kB7OPa:`x9f619`,ks0D6T:`xjl2t3p`,kUOVxO:`xvueqy4`,kZCmMZ:`x139j0dd`,kwRFfy:`xpc6k2p`,kLKAdn:`xqty4a`,kGO01o:`xon7vh3`,"--container-padding-inline-start":`xdvaxxn`,"--container-padding-inline-end":`xqpvj4r`,"--container-padding-block-start":`xjmgx01`,"--container-padding-block-end":`x1xjq73n`,$$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}},SM={sizing:e=>[{kZKoxP:e==null?e:`x16ye13r`,$$css:!0},{"--x-height":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]},vM.displayName=`LayoutFooter`})),wM=o((()=>{AO(),pi(),dx(),rS(),cS(),B(),W(),H(),uM(),_M(),vS(),wS(),CM(),FS(),AS(),Wx(),Yx()}));function TM({title:e,titleId:t,headingLevel:n=2,titleIcon:r,description:i,href:a,headerAccessory:o,children:s,footer:c}){let l=(0,EM.jsx)(dS,{height:`auto`,header:(0,EM.jsx)(yS,{hasDivider:!0,padding:0,children:(0,EM.jsx)(`div`,{className:`void-admin-card-heading`,children:(0,EM.jsxs)(`div`,{className:`void-admin-card-title`,children:[(0,EM.jsx)(Ba,{level:n,id:t,children:r?(0,EM.jsxs)(`span`,{className:`void-admin-card-label`,children:[r,e]}):e}),o,a&&(0,EM.jsx)($p,{className:`void-admin-card-arrow`,size:18,"aria-hidden":`true`})]})})}),content:(i!=null||s!=null)&&(0,EM.jsx)(jS,{children:(0,EM.jsxs)(`div`,{className:`void-admin-card-content`,children:[i!=null&&(0,EM.jsx)(Na,{as:`p`,type:`body`,children:i}),s]})}),footer:c!=null&&(0,EM.jsx)(vM,{hasDivider:!0,className:`void-admin-card-footer`,children:c})});return a?(0,EM.jsx)(dM,{className:`void-admin-card`,label:e,href:a,children:l}):(0,EM.jsx)(rM,{className:`void-admin-card`,children:l})}var EM,DM=o((()=>{uM(),gM(),wM(),qa(),Yh(),EM=G()}));function OM({checkedAt:e,unavailable:t}){let[n,r]=(0,AM.useState)(Date.now);(0,AM.useEffect)(()=>{if(e===void 0)return;r(Date.now());let t=setInterval(()=>r(Date.now()),5e3);return()=>clearInterval(t)},[e]);let i=e===void 0?0:Math.max(0,Math.floor((n-e)/1e3)),a=i<5?`just now`:i<60?`${i}s ago`:`${Math.floor(i/60)}m ago`;return(0,jM.jsx)(`span`,{className:`void-admin-health-checked-at`,"data-unavailable":t||void 0,children:t?(0,jM.jsx)(`span`,{role:`status`,children:`Status unavailable`}):e===void 0?null:(0,jM.jsxs)(`time`,{dateTime:new Date(e).toISOString(),title:new Date(e).toLocaleTimeString(),children:[`Checked `,a]})})}function kM({id:e,title:t,state:n,statusLabel:r,headerAccessory:i,children:a}){return(0,jM.jsx)(`div`,{id:e,className:`void-admin-status-card`,"data-state":n,children:(0,jM.jsx)(TM,{title:t,titleIcon:(0,jM.jsx)(`span`,{className:`void-admin-health-overall-icon`,role:`img`,"aria-label":r,children:(0,jM.jsx)(n===`healthy`?dm:n===`error`?_m:n===`waiting`?bm:n===`loading`?Ep:mm,{size:20,"aria-hidden":`true`})}),headerAccessory:i,children:a})})}var AM,jM,MM=o((()=>{Yh(),AM=u(f(),1),DM(),jM=G()})),NM=c({PlatformStatusPage:()=>PM});function PM({platformName:e,username:t,snapshot:n}){let[r,i]=(0,FM.useState)(n),[a,o]=(0,FM.useState)(n?`current`:`unavailable`),[s,c]=(0,FM.useState)(0);(0,FM.useEffect)(()=>{let e=!1,t,n=new AbortController,r=async()=>{if(document.visibilityState===`hidden`){t=setTimeout(r,5e3);return}try{let t=await fetch(`/admin/status.json`,{cache:`no-store`,credentials:`same-origin`,headers:{Accept:`application/json`},signal:AbortSignal.any([n.signal,AbortSignal.timeout(1e4)])});if(e)return;if(t.redirected||t.status===401||t.status===403){o(`expired`);return}if(!t.ok||!t.headers.get(`Content-Type`)?.includes(`application/json`))throw Error(`Status unavailable`);let r=await t.json();if(e)return;i(r),o(`current`)}catch{if(e)return;o(`unavailable`)}e||(t=setTimeout(r,5e3))};return r(),()=>{e=!0,n.abort(),clearTimeout(t)}},[s]);let l=r?.checkpoint?.operation,u=l?.phase===`waiting-for-dns`||l?.phase===`waiting-for-sandbox-drain`,d=l?.phase===`failed`||r?.checkpoint?.status===`failed`&&(!l||l.phase===`complete`),f=d||u,p=r?r.traffic===`paused`?`Traffic paused`:`Traffic enabled`:`Unknown`,m=d?`Operation needs attention`:l?LM[l.phase]:r?.checkpoint?`Installation ${r.checkpoint.status}`:`Installation status unavailable`,h=d?`error`:u?`waiting`:l?.phase===`complete`||!l&&r?.checkpoint?.status===`installed`?`healthy`:l||r?.checkpoint?`loading`:`unavailable`,g=a===`current`?d?`error`:u||r?.traffic===`paused`?`waiting`:h===`loading`?`loading`:`healthy`:`unavailable`,_=h===`error`?qh:h===`waiting`?bm:h===`healthy`?Wp:h===`loading`?Ep:dh,v=r?r.traffic===`paused`?mh:Wp:dh;return(0,IM.jsx)($j,{platformName:e,username:t,title:`Platform status`,children:(0,IM.jsxs)(`div`,{className:`void-platform-status`,children:[(0,IM.jsxs)(`div`,{className:`void-platform-status-heading`,children:[(0,IM.jsxs)(`div`,{children:[(0,IM.jsx)(Ba,{level:1,children:`Platform status`}),(0,IM.jsx)(`p`,{children:`Follow upgrade and rollback progress. This page is read-only during maintenance.`})]}),(0,IM.jsx)(Y,{type:`button`,label:`Refresh status`,size:`sm`,variant:`secondary`,onClick:()=>c(e=>e+1)})]}),(0,IM.jsxs)(kM,{title:`Current status`,state:g,statusLabel:a===`current`?f||h===`loading`?m:p:`Live status unavailable`,headerAccessory:(0,IM.jsx)(OM,{checkedAt:r?Date.parse(r.checkedAt):void 0,unavailable:a!==`current`}),children:[(0,IM.jsxs)(`ul`,{className:`void-platform-status-summary`,"aria-label":`Installation and traffic`,children:[(l||d)&&(0,IM.jsxs)(`li`,{"data-state":a===`current`?h:`unavailable`,children:[(0,IM.jsx)(`span`,{className:`void-admin-health-indicator`,"aria-hidden":`true`,children:(0,IM.jsx)(_,{size:16})}),(0,IM.jsxs)(`span`,{children:[(0,IM.jsx)(`span`,{className:`void-platform-status-summary-label`,children:l?RM[l.action]:`Installation`}),(0,IM.jsx)(`strong`,{children:m})]})]}),(0,IM.jsxs)(`li`,{"data-state":a!==`current`||!r?`unavailable`:r.traffic===`paused`?`waiting`:`healthy`,children:[(0,IM.jsx)(`span`,{className:`void-admin-health-indicator`,"aria-hidden":`true`,children:(0,IM.jsx)(v,{size:16})}),(0,IM.jsxs)(`span`,{children:[(0,IM.jsx)(`span`,{className:`void-platform-status-summary-label`,children:`Application traffic`}),(0,IM.jsxs)(`strong`,{children:[p,r&&a!==`current`?` (last confirmed)`:``]})]})]})]}),(0,IM.jsx)(`div`,{className:`void-platform-status-notice`,"data-state":a,role:`status`,"aria-live":`polite`,children:a===`expired`?(0,IM.jsxs)(`div`,{className:`void-admin-auth-recovery`,children:[(0,IM.jsx)(`p`,{children:`Sign in again to confirm the current status.`}),(0,IM.jsx)(Y,{as:`a`,href:`/admin/login`,label:`Sign in again`,size:`sm`})]}):a===`unavailable`?(0,IM.jsxs)(`p`,{children:[`Live status is unavailable.`,` `,r?`Showing the last confirmed snapshot; it may be out of date.`:`The current operation and traffic state could not be confirmed.`,` `,`Progress is saved independently of this page.`]}):(0,IM.jsxs)(`p`,{children:[`Refreshes every 5 seconds.`,l&&` Saved progress may remain unchanged during a phase.`]})}),(0,IM.jsxs)(`div`,{className:`void-platform-status-grid`,children:[r?.checkpoint&&(0,IM.jsxs)(`section`,{"aria-labelledby":`platform-operation-heading`,children:[(0,IM.jsx)(Ba,{level:3,id:`platform-operation-heading`,children:l?RM[l.action]:`Installation`}),l?(0,IM.jsxs)(IM.Fragment,{children:[(0,IM.jsxs)(`p`,{className:`void-platform-status-version`,children:[l.fromVersion??`New installation`,` `,(0,IM.jsx)(`span`,{"aria-label":`to`,children:`→`}),` `,l.toVersion]}),(0,IM.jsxs)(`dl`,{children:[(0,IM.jsx)(`dt`,{children:`Started`}),(0,IM.jsx)(`dd`,{children:Fx(l.startedAt)}),(0,IM.jsx)(`dt`,{children:`Progress saved`}),(0,IM.jsx)(`dd`,{children:Fx(l.updatedAt)}),(0,IM.jsx)(`dt`,{children:`Installation state`}),(0,IM.jsx)(`dd`,{children:r?.checkpoint?.status})]})]}):(0,IM.jsxs)(`dl`,{children:[(0,IM.jsx)(`dt`,{children:`Version`}),(0,IM.jsx)(`dd`,{children:r.checkpoint.platformVersion}),(0,IM.jsx)(`dt`,{children:`Updated`}),(0,IM.jsx)(`dd`,{children:Fx(r.checkpoint.updatedAt)})]}),l&&!f&&l.phase!==`complete`&&(0,IM.jsx)(`p`,{children:`Keep the CLI command running until it finishes. Refreshing this page won’t interrupt it.`})]}),(0,IM.jsxs)(`section`,{"aria-labelledby":`platform-traffic-heading`,children:[(0,IM.jsx)(Ba,{level:3,id:`platform-traffic-heading`,children:`Traffic availability`}),(0,IM.jsx)(`p`,{children:r?r.traffic===`paused`?`App traffic and dashboard changes are paused for maintenance. You can still sign in and follow progress here.`:`Maintenance mode is off. The platform is allowing requests to your apps.`:`Traffic status is unavailable. Try refreshing.`}),r?.traffic===`enabled`&&l&&[`deploying`,`verifying`,`enabling`].includes(l.phase)&&(0,IM.jsx)(`p`,{children:`Some apps may be temporarily unavailable while services are being updated.`})]})]}),f&&(0,IM.jsxs)(`section`,{className:`void-platform-status-recovery`,"aria-labelledby":`platform-recovery-heading`,children:[(0,IM.jsx)(Ba,{level:3,id:`platform-recovery-heading`,children:`Next step`}),(0,IM.jsx)(`p`,{children:l?.phase===`waiting-for-dns`?`Wait for the zone to become active, then rerun the lifecycle command.`:l?.phase===`waiting-for-sandbox-drain`?`Complete the remaining Sandbox drain work using the CLI, then rerun the lifecycle command. Traffic stays paused until the cutover is verified.`:`Review the CLI error and saved installation state. Resolve the error before resuming the same lifecycle command.`}),(0,IM.jsxs)(`p`,{children:[`Use the recovery commands printed by the CLI and keep the same runtime files`,l?.action===`rollback`?`, including the rollback source runtime`:``,`. Reloading this page does not resume an operation.`]})]})]})]})})}var FM,IM,LM,RM,zM=o((()=>{Mx(),qa(),Yh(),FM=u(f(),1),Vx(),nM(),MM(),IM=G(),LM={preparing:`Preparing the platform`,deploying:`Deploying services`,verifying:`Verifying the platform`,enabling:`Enabling traffic and verifying cutover`,"waiting-for-dns":`Waiting for DNS`,"waiting-for-sandbox-drain":`Waiting for Sandbox drain`,complete:`Operation complete`,failed:`Operation needs attention`},RM={install:`Installation`,upgrade:`Upgrade`,rollback:`Rollback`,repair:`Repair`,enable:`Enable`}}));function BM(e){let t=0,n=0,r=[];for(let i of e){let e=i.width;if(e?.type===`pixel`)n+=e.value;else{let n=e?.value??1,a=e==null?0:e.minWidth??120;t+=n,r.push({key:i.key,proportion:n,minWidth:a})}}let i=0;if(t>0)for(let e of r){let n=e.minWidth*t/e.proportion;n>i&&(i=n)}let a=n+i,o=new Map;for(let n of e){let e=n.width,r={};if(e?.type===`pixel`)r.width=`${e.value}px`,r.minWidth=`${e.value}px`;else{let n=e?.value??1;t>0&&(r.width=`${n/t*100}%`),e!=null&&(r.minWidth=`${e.minWidth??120}px`)}o.set(n.key,{style:r})}return{columns:o,tableMinWidth:a}}function VM(e=1,t){return{type:`proportional`,value:e,minWidth:t?.minWidth??120}}function HM(e){return{type:`pixel`,value:e}}function UM(e){if(e.length===0)return e;let t=Kt(e);return t.toUpperCase()+e.slice(t.length)}function WM(e,t){let n=e[t];return n==null?``:n instanceof Date?n.toISOString():typeof n==`string`||typeof n==`number`||typeof n==`boolean`||typeof n==`bigint`?String(n):``}function GM(e){return e==null?0:typeof e==`string`?e.length:typeof e==`number`||typeof e==`boolean`?String(e).length:0}function KM(e){if(e==null||typeof e!=`string`&&typeof e!=`number`&&typeof e!=`boolean`)return 0;let t=String(e),n=0,r=0;for(let e=0;e<=t.length;e++)e===t.length||t[e]===` `||t[e]===` `||t[e]===`
119
- `?(r>n&&(n=r),r=0):r++;return n}function qM(e){if(e.length===0)return[];let t=e[0],n=Object.keys(t),r=e.slice(0,Math.min(5,e.length));return n.map(e=>{let t=UM(e).length,n=t,i=t;for(let t of r){let r=GM(t[e]);r>n&&(n=r);let a=KM(t[e]);a>i&&(i=a)}return{key:e,headerLen:t,maxContentLen:n,maxWordLen:i}}).map(e=>{let t=e.maxContentLen<=6?1:e.maxContentLen<=15?2:3,n=Math.max(Math.max(e.headerLen,e.maxWordLen)*YM,JM);return{key:e.key,header:UM(e.key),width:VM(t,{minWidth:n})}})}var JM,YM,XM=o((()=>{Jt(),JM=60,YM=8})),ZM,QM,$M,eN,tN=o((()=>{ZM={x139im0d:`x139im0d`,$$css:!0},QM={cell:{kVQacm:`xb3r6kr`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,ks0D6T:`x1m189uc`,$$css:!0}},$M={cell:{kVQacm:`xb3r6kr`,kHjlTd:`x1mzt3pk`,kTgw9:`x13faqbe`,ks0D6T:`x1m189uc`,$$css:!0}},eN={compact:{kZCmMZ:`x5uh4xs`,kwRFfy:`xbg7gas`,$$css:!0},balanced:{kZCmMZ:`x9bi00s`,kwRFfy:`xpilulx`,$$css:!0},spacious:{kZCmMZ:`x18c6q21`,kwRFfy:`x1wzlfcn`,$$css:!0}}})),nN,rN=o((()=>{Ar(),nN=Tr(null),nN.displayName=`TableContext`}));function Z({children:e,xstyle:t,ref:n,isHeaderRow:r=!1,className:i,style:a,...o}){let s=(0,iN.use)(nN);if(!s)return(0,aN.jsx)(`tr`,{ref:n,...o,...U(V(`table-row`),z(ZM,t),i,a),children:e});let c=[];return r||(s.isStriped&&s.hasHover?c.push(cN.row):s.isStriped?c.push(oN.row):s.hasHover&&c.push(sN.row)),s.dividers===`rows`||s.dividers,t&&c.push(...t),(0,aN.jsx)(`tr`,{ref:n,...o,...U(V(`table-row`),z(ZM,...c),i,a),children:e})}var iN,aN,oN,sN,cN,lN=o((()=>{iN=u(f(),1),B(),tN(),rN(),W(),H(),aN=G(),oN={row:{kWkggS:`x1dnou9g`,"--table-row-overlay":`x1rht92`,$$css:!0}},sN={row:{kWkggS:`xoevpu5`,"--table-row-overlay":`xc01ov8`,k1ekBW:`x15406qy`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,$$css:!0}},cN={row:{kWkggS:`x1dnou9g xoevpu5`,"--table-row-overlay":`x1rht92 xc01ov8`,k1ekBW:`x15406qy`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,$$css:!0}},Z.displayName=`TableRow`}));function uN({children:e,menuWidth:t,size:n=`md`,label:r,isDisabled:i=!1,onOpenChange:a,presentation:o=`popover`,ref:s,className:c,style:l,xstyle:u,triggerXstyle:d,"data-testid":f,...p}){let m=xf(),h=r??m(`@astryx.contextMenu.label`),g=m(`@astryx.dropdownMenu.back`),_=vT(o)===`bottom-sheet`,{items:v,menuContent:y,...b}=p,x=v??[],S=y,C=(0,dN.useId)(),w=(0,dN.useRef)({x:0,y:0}),T=(0,dN.useRef)(null),E=(0,dN.useRef)(null),D=(0,dN.useRef)(null),O=(0,dN.useRef)(null),[k,A]=(0,dN.useState)(!1),[j,M]=(0,dN.useState)([]),N=j.at(-1),ee=N?.items??x,P=N?.label??h,te=typeof P==`string`?P:h,F=(0,dN.useCallback)(e=>{e||M([]),A(e),a?.(e)},[a]),ne=bi({mode:`context`,onHide:(0,dN.useCallback)(()=>{A(!1),a?.(!1);let e=D.current;D.current=null,e&&document.contains(e)&&e.focus()},[a]),onShow:(0,dN.useCallback)(()=>{A(!0),a?.(!0)},[a]),lightDismiss:!1}),I=(0,dN.useCallback)(()=>{_?F(!1):ne.hide()},[ne,F,_]),re=(0,dN.useCallback)(e=>{e.isDisabled||(e.onClick?.(),e.hasCloseOnSelect!==!1&&I())},[I]);(0,dN.useEffect)(()=>{if(!k||j.length===0)return;let e=requestAnimationFrame(()=>{O.current?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(e)},[k,j.length]);let{listRef:ie,handleKeyDown:ae,focusFirst:oe,focusItem:se,ownsEvent:ce,getItems:le}=Aw({itemSelector:Xw,boundarySelector:Zw,wrap:!1,onEscape:I}),ue=Bw({getItemLabels:()=>le().map(e=>e.textContent),onMatch:se,getCurrentIndex:()=>le().findIndex(e=>e===document.activeElement||e.contains(document.activeElement))});(0,dN.useEffect)(()=>{if(!k||_)return;let e=e=>{let t=ie.current;t&&!t.contains(e.target)&&I()};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[k,I,ie,_]),(0,dN.useEffect)(()=>{if(!k||_)return;let e=e=>{e.key===`Escape`&&(Bn(e)||(e.preventDefault(),I()))};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[k,I,_]);let de=(0,dN.useCallback)(e=>{if(ce(e)){if(e.key===`Enter`||e.key===` `){e.preventDefault();let t=document.activeElement;t&&Yw.has(t.getAttribute(`role`)??``)&&t.click();return}if(e.key===`Tab`){I();return}if(ue.onKeyDown(e)){e.preventDefault();return}ae(e)}},[ae,I,ue,ce]),fe=(0,dN.useCallback)((e,t,n)=>{w.current={x:e,y:t};let r=T.current;r&&(r.style.left=`${e}px`,r.style.top=`${t}px`),D.current=document.activeElement instanceof HTMLElement?document.activeElement:n,_?F(!0):(ne.show(),requestAnimationFrame(()=>oe()))},[ne,oe,F,_]),pe=(0,dN.useCallback)(e=>{if(i)return;e.preventDefault();let t=E.current?.getBoundingClientRect(),n=e.clientX===0&&e.clientY===0&&e.detail===0,r=n||!t?0:e.clientX-t.left,a=n||!t?t?.height??0:e.clientY-t.top;fe(r,a,e.currentTarget)},[i,fe]),L=UE({disabled:i,onLongPress:(0,dN.useCallback)(e=>{let t=E.current?.getBoundingClientRect();fe(t?e.x-t.left:e.x,t?e.y-t.top:e.y,E.current)},[fe])}),R=t?mN.popoverCustomWidth(t):mN.popover,me=(0,dN.useMemo)(()=>({closeMenu:I,menuSize:n}),[I,n]),he=v===void 0?S:fT(x),ge=(0,fN.jsx)(`div`,{ref:ie,id:C,role:`menu`,"data-autofocus":_?``:void 0,tabIndex:_?0:-1,"aria-label":h,onKeyDown:de,onContextMenu:e=>e.preventDefault(),...U(V(`context-menu`),z(_?mN.sheetMenu:mN.menu,u),c,l),children:(0,fN.jsx)(nw,{value:me,children:he})}),_e=v===void 0?ge:(0,fN.jsxs)(`div`,{ref:ie,"data-autofocus":``,tabIndex:0,...U(V(`context-menu`),z(mN.sheetMenu,u),c,l),children:[(0,fN.jsxs)(`div`,{className:`x78zum5 x1q0g3np x6s0dn4 xzye2dw x1p37lm5`,children:[j.length>0&&(0,fN.jsx)(Y,{label:g,variant:`ghost`,size:`sm`,icon:(0,fN.jsx)(ru,{icon:`chevronLeft`,size:`sm`,xstyle:On.mirror}),isIconOnly:!0,onClick:()=>M(e=>e.slice(0,-1))}),(0,fN.jsx)(Ba,{ref:O,level:3,tabIndex:-1,xstyle:[mN.sheetViewHeading,j.length===0&&mN.sheetRootHeading],children:P})]}),(0,fN.jsx)(ak,{items:ee,onSelect:re,onOpenSubmenu:e=>M(t=>[...t,e])})]});return(0,fN.jsxs)(fN.Fragment,{children:[(0,fN.jsxs)(`div`,{ref:yr(s,E),...b,onContextMenu:pe,...L,"data-testid":f,...z(mN.trigger,...d?Array.isArray(d)?d:[d]:[]),children:[e,(0,fN.jsx)(`span`,{ref:yr(T,ne.ref),"aria-hidden":`true`,...U({className:`x10l6tqk xnalus7 xqtp20y x47corl`},{style:{left:`${w.current.x}px`,top:`${w.current.y}px`}})})]}),_?(0,fN.jsx)(dN.Suspense,{fallback:null,children:(0,fN.jsx)(pN,{isOpen:k,onOpenChange:F,label:te,children:_e})}):ne.render(ge,{placement:`below`,alignment:`start`,xstyle:[R,Vi.below]})]})}var dN,fN,pN,mN,hN=o((()=>{dN=u(f(),1),B(),Mx(),Ka(),uu(),Ei(),ck(),mT(),iw(),Qw(),Nw(),Hw(),qE(),Hi(),W(),H(),Df(),xr(),bT(),fN=G(),pN=(0,dN.lazy)(async()=>Promise.resolve().then(()=>(VO(),RO)).then(e=>({default:e.MenuBottomSheet}))),mN={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`,$$css:!0},popover:{k7Eaqz:`x5w4yej`,$$css:!0},popoverCustomWidth:e=>[{k7Eaqz:(typeof e==`number`?`${e}px`:e)==null?typeof e==`number`?`${e}px`:e:`xkj4a21`,$$css:!0},{"--x-minWidth":(e=>typeof e==`number`?e+`px`:e??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}},uN.displayName=`ContextMenu`})),gN=o((()=>{hN(),fw(),Tw(),B(),uu(),Yk(),$C(),iw(),Et(),W(),cT()}));function _N(e){let t=[],n=new Map;for(let r of e){let e=r.group??`__ungrouped__`,i=n.get(e);i||(i=[],n.set(e,i),t.push(e)),i.push(r)}let r=[];return t.forEach((e,t)=>{t>0&&r.push({type:`divider`});for(let t of n.get(e)??[])r.push({label:typeof t.label==`string`?t.label:t.id,icon:t.checked?(0,xN.jsx)(ru,{icon:`check`,size:`xsm`,"aria-hidden":!0}):t.icon,isDisabled:t.disabled,onClick:t.onSelect,variant:t.variant})}),r}function vN({element:e,getActions:t,triggerXstyle:n}){let[r,i]=(0,bN.useState)(null);return(0,xN.jsx)(uN,{items:r??[],triggerXstyle:n,onOpenChange:e=>{i(e?_N(t()):null)},children:e})}function yN(e,t,n){return typeof t==`function`?(0,xN.jsx)(vN,{element:e,getActions:t,triggerXstyle:n}):!t||t.length===0?e:(0,xN.jsx)(uN,{items:_N(t),triggerXstyle:n,children:e})}var bN,xN,SN=o((()=>{bN=u(f(),1),gN(),uu(),xN=G()}));function CN(e,t,n){let r=[];return(e.dividers===`rows`||e.dividers===`grid`)&&r.push(t),(e.dividers===`columns`||e.dividers===`grid`)&&r.push(n),r}function wN(e,t){return t?Array.isArray(t)?[...e,...t]:[...e,t]:e}function TN(){return(0,EN.use)(nN)}var EN,DN=o((()=>{EN=u(f(),1),rN()}));function Q({children:e,xstyle:t,ref:n,className:r,style:i,contextMenuActions:a,...o}){let s=TN(),c=typeof a==`function`||Array.isArray(a)&&a.length>0,l=s?[c?AN[s.density]:kN[s.density],s.textOverflow===`truncate`?QM.cell:$M.cell,eN[s.density],IN[s.verticalAlign],...CN(s,PN.cell,FN.cell),...c?[NN.cell]:[]]:[],u=yN(e,a,c&&s?[MN.fill,jN[s.density]]:c?MN.fill:void 0);return(0,ON.jsx)(`td`,{ref:n,...o,...U(V(`table-cell`,{density:s?.density}),z(...wN(l,t)),r,i),children:u})}var ON,kN,AN,jN,MN,NN,PN,FN,IN,LN=o((()=>{B(),SN(),tN(),DN(),W(),H(),ON=G(),kN={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}},AN={compact:{kGuDYH:`xjm74w1`,kB7OPa:`x9f619`,$$css:!0},balanced:{kGuDYH:`xjm74w1`,kB7OPa:`x9f619`,$$css:!0},spacious:{kGuDYH:`xjm74w1`,kB7OPa:`x9f619`,$$css:!0}},jN={compact:{k8WAf4:`xu0wf1k`,kg3NbH:`xf314gf`,$$css:!0},balanced:{k8WAf4:`xce4md1`,kg3NbH:`xrrkdod`,$$css:!0},spacious:{k8WAf4:`x8o8v82`,kg3NbH:`x1pzlopt`,$$css:!0}},MN={fill:{k1xSpc:`x1lliihq`,kB7OPa:`x9f619`,kZKoxP:`x5yr21d`,kzqmXN:`xh8yej3`,$$css:!0}},NN={cell:{kZKoxP:`x5yr21d`,$$css:!0}},PN={cell:{kt9PQ7:`x92x3c3 x1wp2rvj`,kfdmCh:`x1q0q8m5`,kL6WhQ:`xw8gpjh`,$$css:!0}},FN={cell:{ke9TFa:`xw8tdv1 x1qlsc9e`,k8ry5P:`x18b5jzi`,kBCPoo:`x1gejf6u`,$$css:!0}},IN={middle:{kXLuUW:`xxymvpz`,$$css:!0},top:{kXLuUW:`x16dsc37`,$$css:!0},bottom:{kXLuUW:`x3ajldb`,$$css:!0}},Q.displayName=`TableCell`}));function $({children:e,xstyle:t,ref:n,className:r,style:i,contextMenuActions:a,...o}){let s=TN(),c=[];s&&(c.push(BN.cell,zN[s.density],VN.cell,QM.cell,eN[s.density]),(s.dividers===`columns`||s.dividers===`grid`)&&c.push(HN.cell));let l=yN(e,a);return(0,RN.jsx)(`th`,{ref:n,...o,...U(V(`table-header-cell`,{density:s?.density}),z(...wN(c,t)),r,i),children:l})}var RN,zN,BN,VN,HN,UN=o((()=>{B(),tN(),DN(),SN(),W(),H(),RN=G(),zN={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}},BN={cell:{k63SB2:`x2mo6ok`,kMwMTN:`xv1l7n4`,k9WMMc:`x1yc453h`,$$css:!0}},VN={cell:{kt9PQ7:`x92x3c3`,kfdmCh:`x1q0q8m5`,kL6WhQ:`xw8gpjh`,$$css:!0}},HN={cell:{ke9TFa:`xw8tdv1 x1qlsc9e`,k8ry5P:`x18b5jzi`,kBCPoo:`x1gejf6u`,$$css:!0}},$.displayName=`TableHeaderCell`}));function WN({ref:e,children:t,xstyle:n,className:r,style:i,...a}){return(0,GN.jsx)(`thead`,{ref:e,...U(V(`table-header`),z(n),r,i),...a,children:t})}var GN,KN=o((()=>{B(),W(),H(),GN=G(),WN.displayName=`TableHeader`}));function qN({ref:e,children:t,xstyle:n,className:r,style:i,...a}){return(0,JN.jsx)(`tbody`,{ref:e,...U(V(`table-body`),z(n),r,i),...a,children:t})}var JN,YN=o((()=>{B(),W(),H(),JN=G(),qN.displayName=`TableBody`}));function XN({title:e,description:t,icon:n,actions:r,headingLevel:i=3,isCompact:a=!1,xstyle:o,className:s,style:c,ref:l,...u}){let d=`h${i}`;return(0,QN.jsxs)(`div`,{ref:l,...u,role:`status`,...U(V(`empty-state`,{variant:a?`compact`:null}),z($N.container,a&&$N.containerCompact,o),s,c),children:[n!=null&&(0,QN.jsx)(`div`,{"aria-hidden":`true`,children:n}),(0,QN.jsxs)(`div`,{className:`x78zum5 xdt5ytf x6s0dn4 xxc7z9f`,children:[(0,ZN.createElement)(d,U(V(`empty-state-title`,{variant:a?`compact`:null}),{0:{className:`x1ghz6dp xjb2p0i x18juvz8 x2mo6ok xf74fhv x1tgivj0`},1:{className:`x1ghz6dp xjb2p0i x2mo6ok xf74fhv x1tgivj0 xcr08ib`}}[!!a<<0]),e),t!=null&&(0,QN.jsx)(`div`,{...U(V(`empty-state-description`,{variant:a?`compact`:null}),{0:{className:`x1ghz6dp xjb2p0i xjm74w1 x1sodnla xw6l6zx xv1l7n4`},1:{className:`x1ghz6dp xjb2p0i x1sodnla xw6l6zx xv1l7n4 x141an7d`}}[!!a<<0]),children:t})]}),r!=null&&(0,QN.jsx)(`div`,{...{0:{className:`x78zum5 x1q0g3np x6s0dn4 x1txdalj xcsaf9d`},1:{className:`x78zum5 x6s0dn4 x1txdalj xcsaf9d xdt5ytf`}}[!!a<<0],children:r})]})}var ZN,QN,$N,eP=o((()=>{ZN=u(f(),1),B(),W(),H(),QN=G(),$N={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}},XN.displayName=`EmptyState`})),tP=o((()=>{eP()}));function nP(e,t,n,...r){return e.reduce((e,n,i)=>{let a=t(n);if(!a)return e;try{return a(e,...r)}catch(t){return Tn(`Table`,`Plugin at index ${i} threw in transform:`,t),e}},n)}function rP(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function iP({item:e,rowIndex:t,rowKey:n,columns:r,plugins:i,textOverflow:a,RowComponent:o,CellComponent:s,ariaRowIndex:c}){let l=r.map((t,n)=>{let o={};t.align&&(o.style={textAlign:t.align});let c=nP(i,e=>e.transformBodyCell,{htmlProps:o,xstyle:[],columnIndex:n,columns:r},t,e,n,r),l=!t.renderCell,u=null;c.isContentSuppressed||(u=l?WM(e,t.key):t.renderCell?.(e)??null);let d;return d=l&&a===`truncate`&&typeof u==`string`&&u.length>0?(0,cP.jsx)(Na,{type:`body`,maxLines:1,children:u}):u,(0,cP.jsx)(s,{...c.htmlProps,contextMenuActions:c.contextMenuActions,xstyle:c.xstyle,children:d},t.key)}),u=nP(i,e=>e.transformBodyRow,{htmlProps:c==null?{}:{"aria-rowindex":c},xstyle:[],children:(0,cP.jsx)(cP.Fragment,{children:l})},e,t),d=(0,cP.jsx)(o,{ref:u.ref,...u.htmlProps,xstyle:u.xstyle,children:u.children},n);return u.afterRow?(0,cP.jsxs)(cP.Fragment,{children:[d,u.afterRow]}):d}function aP(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;let n=e.item,r=t.item,i=Object.keys(r);if(Object.keys(n).length!==i.length)return!1;for(let e of i)if(n[e]!==r[e])return!1;return!0}function oP({data:e,columns:t,idKey:n,plugins:r,children:i,textOverflow:a=`wrap`,scrollWrapper:o,emptyState:s,rowIndexStart:c,rowCount:l,xstyle:u,className:d,style:f,ref:p,...m}){let h=xf(),g=r??uP,_=c!=null||l!=null,v=c??1,y=_?l??-1:void 0,b=Z,x=Q,S=$,C=nP(g,e=>e.transformColumns,t??(e?qM(e):[])),w=(0,sP.useRef)(C);rP(w.current,C)||(w.current=C);let T=w.current,E=BM(T),D=nP(g,e=>e.transformTable,{htmlProps:{},xstyle:i?[lP.table,lP.tableAutoLayout]:[lP.table]}),O=T.map((e,t)=>{let n=e.header??e.key,r={"data-column-key":e.key,scope:`col`};e.align&&(r.style={textAlign:e.align});let i=nP(g,e=>e.transformHeaderCell,{htmlProps:r,xstyle:[],content:n,columnIndex:t,columns:T},e,t,T),a=E.columns.get(e.key)?.style??{},o=i.htmlProps.style,s={...i.htmlProps,style:o?{...a,...o}:a},c=i.content??n,l=typeof c==`string`&&c.length>0?{title:c}:{},{before:u,after:d,overlay:f,below:p}=i,m=u!=null||d!=null||f!=null||p!=null?(0,cP.jsxs)(cP.Fragment,{children:[u,d==null?c:(0,cP.jsxs)(`div`,{className:`x3nfvp2 x6s0dn4 xzye2dw xeuugli`,children:[c,d]}),f,p]}):c;return(0,cP.jsx)(S,{...s,...l,contextMenuActions:i.contextMenuActions,xstyle:i.xstyle,children:m},e.key)}),k=nP(g,e=>e.transformHeaderRow,{htmlProps:{},xstyle:[],children:(0,cP.jsx)(cP.Fragment,{children:O})}),A=e!=null&&e.length>0,j=T.length>0,M={...D.htmlProps.style,...f,...E.tableMinWidth>0?{minWidth:`${E.tableMinWidth}px`}:null},N=(0,cP.jsx)(`table`,{ref:p,...y==null?null:{"aria-rowcount":y},...D.htmlProps,...U(V(`table`,void 0,{legacyNames:[`base-table`]}),z(...D.xstyle,u),[D.htmlProps.className,d].filter(Boolean).join(` `)||void 0,M),...m,children:i||(0,cP.jsxs)(cP.Fragment,{children:[j&&(0,cP.jsx)(WN,{children:(0,cP.jsx)(b,{...k.htmlProps,isHeaderRow:!0,xstyle:k.xstyle,children:k.children})}),(0,cP.jsx)(qN,{children:A?e.map((e,t)=>{let r=n==null?t:typeof n==`function`?n(e):String(e[n]);return(0,cP.jsx)(dP,{item:e,rowIndex:t,rowKey:r,columns:T,plugins:g,textOverflow:a,RowComponent:b,CellComponent:x,ariaRowIndex:_?v+t:void 0},r)}):e!=null&&s!==!1&&(0,cP.jsx)(`tr`,{children:(0,cP.jsx)(`td`,{colSpan:T.length,children:s??(0,cP.jsx)(XN,{title:h(`@astryx.table.noData`),isCompact:!0})})})})]})});if(o){let e=nP(g,e=>e.transformScrollWrapper,{htmlProps:{},xstyle:[]});N=(0,cP.jsx)(o,{htmlProps:e.htmlProps,xstyle:e.xstyle,beforeTable:e.beforeTable,afterTable:e.afterTable,children:N})}for(let e=g.length-1;e>=0;e--){let t=g[e];if(t.transformTableContext)try{N=t.transformTableContext(N)}catch(e){Tn(`Table`,`Plugin threw in transformTableContext:`,e)}}return N}var sP,cP,lP,uP,dP,fP,pP=o((()=>{sP=u(f(),1),B(),XM(),lN(),LN(),UN(),KN(),YN(),W(),En(),tP(),qa(),H(),Df(),cP=G(),lP={table:{kzqmXN:`xh8yej3`,kLvRdT:`x1mwwwfo`,kheTzg:`x1gukg7c`,kPzzVL:`x140o2bo`,$$css:!0},tableAutoLayout:{kPzzVL:`x1drmoe9`,$$css:!0}},uP=[],dP=(0,sP.memo)(iP,aP),fP=oP,fP.displayName=`BaseTable`}));function mP(e){let t=yP.length;return e.sort(([e],[n])=>(bP.get(e)??t)-(bP.get(n)??t))}function hP(e,t){let n=Object.keys(t);for(let t of n)xP.has(t)||`${e}${t}${[...xP].join(`, `)}`;for(let r of n)if(xP.has(r)){let n=t[r];n!=null&&typeof n!=`function`&&`${e}${r}`}n.some(e=>xP.has(e)&&typeof t[e]==`function`)||`${e}`}function gP(e,t){let n=(0,vP.useRef)(null);if(n.current!=null){let r=n.current;if(r.basePlugins===e&&r.userPlugins===t)return r.result;if(r.basePlugins===e&&_P(r.userPlugins,t))return r.userPlugins=t,r.result}let r=t?mP(Object.entries(t)).map(([,e])=>e):[],i=[...e,...r];if(t)for(let[e,n]of Object.entries(t))hP(e,n);return n.current={basePlugins:e,userPlugins:t,result:i},i}function _P(e,t){if(e===t)return!0;if(e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(e[r]!==t[r])return!1;return!0}var vP,yP,bP,xP,SP=o((()=>{vP=u(f(),1),En(),yP=[`columnSettings`,`sort`,`tree`,`selection`,`pagination`],bP=new Map(yP.map((e,t)=>[e,t])),xP=new Set([`transformColumns`,`transformTable`,`transformHeaderRow`,`transformHeaderCell`,`transformBodyRow`,`transformBodyCell`,`transformScrollWrapper`,`transformTableContext`])}));function CP({children:e,htmlProps:t,xstyle:n,beforeTable:r,afterTable:i}){let a=xf()(`@astryx.table.label`),{getViewportProps:o,getContentProps:s,state:c}=lE({axis:`inline`,keyboardAccess:{owner:`content`},overscroll:`contain`}),{ref:l,...u}=t??{},d=o({role:`group`,"aria-label":a,...c.inline.isScrollable?{tabIndex:0}:{},...u,ref:l,...U(V(`table-scroll-wrapper`),z(kP.base,kP.containerBleed,...n??[]))});return(0,DP.jsx)(`div`,{...d,children:(0,DP.jsxs)(`div`,{...s(),children:[r,e,i]})})}function wP(){return{transformTable(e){return{...e,xstyle:[...e.xstyle,OP.base]}}}}function TP({density:e=`balanced`,dividers:t=`rows`,isStriped:n=!1,hasHover:r=!1,verticalAlign:i=`middle`,textOverflow:a=`wrap`,plugins:o,columns:s,data:c,ref:l,...u}){let d=(0,EP.useMemo)(()=>wP(),[]),f=gP((0,EP.useMemo)(()=>[d],[d]),o),p=(0,EP.useMemo)(()=>({density:e,dividers:t,isStriped:n,hasHover:r,verticalAlign:i,textOverflow:a}),[e,t,n,r,i,a]);return(0,DP.jsx)(nN,{value:p,children:(0,DP.jsx)(fP,{ref:l,data:c,columns:s,plugins:f,textOverflow:a,scrollWrapper:CP,...u})})}var EP,DP,OP,kP,AP,jP=o((()=>{EP=u(f(),1),B(),pP(),rN(),SP(),gE(),W(),H(),Df(),DP=G(),OP={base:{kMv6JI:`xjb2p0i`,kMwMTN:`x1tgivj0`,$$css:!0}},kP={base:{kXHlph:`xw2csxc`,kuHK5b:`x5lxg6s`,$$css:!0},containerBleed:{keTefX:`xojxgvx`,k71WvV:`x1fcf3bl`,kzqmXN:`xx6qvi6`,keoZOQ:`xkibk3`,k1K539:`xlayyun`,$$css:!0}},AP=TP,AP.displayName=`Table`})),MP,NP=o((()=>{Ar(),MP=Tr({direction:`vertical`}),MP.displayName=`FormLayoutContext`}));function PP({label:e,inputID:t,labelID:n,isGroupLabel:r=!1,isLabelHidden:i=!1,isDisabled:a=!1,isOptional:o=!1,isRequired:s=!1,labelIcon:c,labelTooltip:l,description:u,descriptionID:d,className:f,style:p,xstyle:m,ref:h,...g}){let _=xf(),{defaultOptionality:v}=(0,FP.use)(MP),y=o&&v!==`optional`?_(`@astryx.field.optional`):s&&v!==`required`?_(`@astryx.field.required`):null,b=r?`span`:`label`,x=!r&&t!=null,S=(0,FP.useRef)(null),C=jE({containerRef:S,inputRef:(0,FP.useMemo)(()=>({get current(){return t==null?null:S.current?.ownerDocument.getElementById(t)??null},set current(e){}}),[t]),disabled:!x}),w=(0,IP.jsxs)(IP.Fragment,{children:[c&&au(c,{size:`sm`,color:`inherit`}),e,y&&(0,IP.jsxs)(`span`,{className:`x1sodnla x141an7d x1ltkj2j xv1l7n4`,children:[(0,IP.jsx)(`span`,{"aria-hidden":`true`,children:` ∙ `}),y]}),l&&(0,IP.jsx)(Da,{content:l,placement:`above`,children:(0,IP.jsx)(ru,{icon:`info`,size:`sm`,color:`inherit`})})]}),T=(0,IP.jsx)(b,{ref:h,id:n,htmlFor:r?void 0:t,...g,...U(V(`field-label`),z(LP.label,a&&LP.labelDisabled,i&&LP.srOnly,m),f,p),children:w});return u?(0,IP.jsxs)(`div`,{...{0:{className:`x78zum5 xdt5ytf`},1:{className:`xdt5ytf xjp7ctv`}}[!!i<<0],children:[T,(0,IP.jsx)(`span`,{ref:x?S:void 0,id:d,...x?C: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`}}[!!x<<1|!!i<<0],children:u})]}):T}var FP,IP,LP,RP=o((()=>{FP=u(f(),1),B(),W(),uu(),du(),Df(),H(),ZE(),NP(),IP=G(),LP={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}},PP.displayName=`FieldLabel`}));function zP({ref:e,type:t,message:n,id:r,variant:i=`attached`,xstyle:a,className:o,style:s,...c}){let l=TE(`slideDown`),u=DT();return(0,BP.useEffect)(()=>{n&&u(n,t===`error`?`assertive`:`polite`)},[u,n,t]),(0,VP.jsx)(`div`,{ref:e,id:r,...c,...U(V(`field-status`,{type:t,variant:i}),z(UP.base,l,i===`attached`?UP.attached:UP.detached,WP[t],a),o,s),children:i===`detached`?(0,VP.jsxs)(`span`,{className:`x78zum5 x1cy8zhl xzye2dw`,children:[(0,VP.jsx)(`span`,{className:`x3nfvp2 x6s0dn4 x14o5nre x2lah0s`,children:(0,VP.jsx)(ru,{icon:HP[t],size:`sm`,color:`inherit`,...V(`field-status-icon`,{type:t})})}),(0,VP.jsx)(`span`,{children:n})]}):n})}var BP,VP,HP,UP,WP,GP=o((()=>{BP=u(f(),1),B(),PT(),W(),Et(),kE(),H(),uu(),VP=G(),HP={warning:`warning`,error:`error`,success:`success`},`${St[`--spacing-1-5`]}`,UP={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}},WP={warning:{kWkggS:`x24i8r5`,kMwMTN:`xdhq94a`,$$css:!0},error:{kWkggS:`x1pritpl`,kMwMTN:`x1joocv1`,$$css:!0},success:{kWkggS:`xu13z74`,kMwMTN:`xltfdvo`,$$css:!0}},zP.displayName=`FieldStatus`}));function KP({isRequired:e=!1,isOptional:t=!1}){let{defaultOptionality:n}=(0,qP.use)(MP);return!t&&(e||n===`required`)}var qP,JP=o((()=>{qP=u(f(),1),NP()})),YP,XP=o((()=>{Ar(),YP=Tr(null),YP.displayName=`CheckboxListContext`}));function ZP({label:e,isLabelHidden:t=!1,description:n,onChange:r,changeAction:i,isLoading:a=!1,value:o,isDisabled:s=!1,htmlName:c,disabledMessage:l,isReadOnly:u=!1,isOptional:d=!1,isRequired:f=!1,size:p=`md`,onFocus:m,onBlur:h,labelIcon:g,status:_,width:v,xstyle:y,className:b,style:x,ref:S,"aria-describedby":C,...w}){let T=(0,QP.useId)(),E=(0,QP.useId)(),D=(0,QP.useId)(),O=KP({isRequired:f,isOptional:d}),[,k]=(0,QP.useTransition)(),[A,j]=(0,QP.useOptimistic)(o),M=a||A!==o,N=s&&!!l,ee=(0,QP.use)(YP),P=s&&(N||(ee?.hasDisabledMessage??!1)),te=va({placement:`above`,focusTrigger:`always`,isEnabled:N}),F=qk(`checkbox`),ne=(0,QP.useRef)(null),{focusProps:I}=JE(ne,s),re=A===`indeterminate`,ie=A===!0,ae=(0,QP.useCallback)(e=>{e&&(e.indeterminate=re)},[re]),oe=[];C&&oe.push(C),n&&oe.push(E),_?.message&&oe.push(D),N&&oe.push(te.describedBy);let se=oe.length>0?oe.join(` `):void 0;return(0,$P.jsxs)(`div`,{...U(V(`checkbox-input`,{size:p}),z(v!=null&&nF.width(v),y),b,x),children:[(0,$P.jsxs)(`div`,{ref:e=>{te.interactionRef(e)},...z(eF.container,t&&eF.containerLabelHidden,!s&&Sk),children:[(0,$P.jsxs)(`div`,{...z(eF.checkboxWrapper,tF[p],!s&&eF.indicatorPressOverlay),...I,children:[(0,$P.jsx)(`input`,{...w,ref:yr(S,ae,te.positionRef),id:T,type:`checkbox`,name:s?void 0:c,checked:ie,disabled:s&&!P,"aria-disabled":P?`true`:void 0,form:P?``:void 0,readOnly:u,required:f,"aria-required":O?`true`:void 0,onChange:e=>{if(s||M||u)return;let t=e.target.checked;r?.(t,e),i&&!e.defaultPrevented&&k(async()=>{j(t),await i(t,e)})},onFocus:m,onBlur:h,"aria-readonly":u||void 0,"aria-describedby":se,"aria-invalid":_?.type===`error`||void 0,"aria-busy":M||void 0,...z(eF.input,On.centerInline(`-50%`),eF.inputCoarse,tF[p],s&&eF.inputDisabled)}),(0,$P.jsx)(`span`,{ref:ne,className:`xjp7ctv`,children:(0,$P.jsx)(F,{state:re?`indeterminate`:ie?`checked`:`unchecked`,size:p,isDisabled:s,children:M?(0,$P.jsx)(qb,{size:`sm`,shade:`inherit`}):null})})]}),(0,$P.jsx)(`div`,{className:`x78zum5 xdt5ytf`,children:(0,$P.jsx)(PP,{...V(`checkbox-label`),label:e,inputID:T,isLabelHidden:t,isDisabled:s,isOptional:d,isRequired:f,labelIcon:g,description:n,descriptionID:E})})]}),_?.message&&(0,$P.jsx)(zP,{type:_.type,message:_.message,id:D,variant:`detached`}),N&&te.renderTooltip(l)]})}var QP,$P,eF,tF,nF,rF=o((()=>{QP=u(f(),1),B(),RP(),GP(),sx(),du(),W(),Ck(),XE(),JP(),Yk(),H(),XP(),xr(),$P=G(),eF={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`,$$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}},tF={sm:{kzqmXN:`xw4jnvo`,kZKoxP:`x1qx5ct2`,$$css:!0},md:{kzqmXN:`xvy4d1p`,kZKoxP:`xxk0z11`,$$css:!0}},nF={width:e=>[{kzqmXN:e==null?e:`x5lhr3w`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]},ZP.displayName=`CheckboxInput`})),iF=o((()=>{rF()}));function aF({label:e,isLabelHidden:t=!1,description:n,inputID:r,labelID:i,isGroupLabel:a=!1,descriptionID:o,isOptional:s=!1,isRequired:c=!1,isDisabled:l=!1,labelIcon:u,status:d,labelTooltip:f,statusVariant:p=`attached`,width:m,xstyle:h,children:g,className:_,style:v,ref:y,...b}){let{direction:x}=(0,oF.use)(MP),S=x===`horizontal-labels`,C=o??(n?`${r}-desc`:void 0),w=d?.messageID??(d?.message?`${r}-status`:void 0);CC(`Field`,`isOptional and isRequired are mutually exclusive. isOptional takes precedence.`,s&&c);let T=(0,sF.jsx)(PP,{label:e,inputID:r,labelID:i,isGroupLabel:a,isLabelHidden:t,isDisabled:l,isOptional:s,isRequired:c,labelIcon:u,labelTooltip:f,description:S?void 0:n,descriptionID:S?void 0:C}),E=d?.message&&p!==`tooltip`?(0,sF.jsx)(zP,{type:d.type,message:d.message,id:w,variant:p,xstyle:p===`attached`?cF.attachedStatusLayer:void 0}):null;return S?(0,sF.jsxs)(`div`,{ref:y,...U(V(`field`,{layout:`horizontal-labels`}),z(cF.horizontalLabels,h),_,v),...b,children:[(0,sF.jsx)(`div`,{className:`x1enrzb7`,children:T}),(0,sF.jsxs)(`div`,{className:`x78zum5 xdt5ytf xc8icb0 x19nvjgn xlumz0n x1qs65gq`,children:[n&&(0,sF.jsx)(Na,{type:`supporting`,display:`block`,id:C,children:n}),g,E]})]}):(0,sF.jsxs)(`div`,{ref:y,...U(V(`field`),z(cF.container,!t&&cF.containerGap,m!=null&&lF.width(m),h),_,v),...b,children:[T,p===`attached`?(0,sF.jsxs)(`div`,{className:`x78zum5 xdt5ytf xc8icb0 x19nvjgn xlumz0n x1qs65gq`,children:[g,E]}):(0,sF.jsxs)(sF.Fragment,{children:[g,E]})]})}var oF,sF,cF,lF,uF=o((()=>{oF=u(f(),1),B(),RP(),GP(),W(),TC(),NP(),qa(),H(),sF=G(),cF={container:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kHBbk8:`xc8icb0`,$$css:!0},containerGap:{kOIVth:`xzye2dw`,$$css:!0},horizontalLabels:{k1xSpc:`xjp7ctv`,$$css:!0},attachedStatusLayer:{kVAEAm:`x1n2onr6`,kY2c9j:`x8knxv4`,$$css:!0}},lF={width:e=>[{kzqmXN:e==null?e:`x5lhr3w`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]},aF.displayName=`Field`})),dF,fF,pF,mF,hF=o((()=>{dF={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}},fF={warning:{kVAM5u:`x8wg1ba`,$$css:!0},error:{kVAM5u:`x1ofxpqo`,$$css:!0},success:{kVAM5u:`x16m2moy`,$$css:!0}},pF={warning:{kGVxlE:`x1gnnqk1 x9156jc`,$$css:!0},error:{kGVxlE:`x1gnnqk1 x1bgmis8`,$$css:!0},success:{kGVxlE:`x1gnnqk1 x8wp45d`,$$css:!0}},mF={warning:{kVAM5u:`x8wg1ba xa1yw2k`,$$css:!0},error:{kVAM5u:`x1ofxpqo xk2sxw7`,$$css:!0},success:{kVAM5u:`x16m2moy xyq33ac`,$$css:!0}}}));function gF({label:e,onClick:t,onPointerDown:n,onClickCapture:r,xstyle:i,iconClassName:a}){let{className:o}=V(`input-clear-icon`),{className:s}=V(`input-clear-button`);return(0,yF.jsx)(Y,{variant:`ghost`,size:`sm`,label:e,tooltip:e,className:s,icon:(0,yF.jsx)(ru,{icon:`close`,size:`sm`,color:`secondary`,className:a==null?o:`${o} ${a}`}),onPointerDown:e=>{e.preventDefault(),n?.(e)},onMouseDown:e=>e.preventDefault(),onClick:t,onClickCapture:r,isIconOnly:!0,xstyle:[bF.button,i]})}function _F(e){return gF(e)}function vF(e){return gF(e)}var yF,bF,xF=o((()=>{Mx(),uu(),H(),yF=G(),bF={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}},_F.displayName=`InputClearButton`})),SF=o((()=>{uF(),RP(),GP(),hF(),xF()}));function CF(){return(0,wF.use)(TF)}var wF,TF,EF=o((()=>{wF=u(f(),1),Ar(),TF=Tr(null),TF.displayName=`InputGroupContext`})),DF,OF=o((()=>{DF={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 kF(e){let t=e??``,n=RF.get(t);if(n===void 0){let r;try{r=new Intl.NumberFormat(e)}catch{r=new Intl.NumberFormat(`en`)}let i=r.formatToParts(12345.6),a=r.formatToParts(11111111111).filter(e=>e.type===`integer`).map(e=>e.value.length),o=a.length>1;n={group:(i.find(e=>e.type===`group`)?.value??`,`).normalize(`NFKC`),decimal:i.find(e=>e.type===`decimal`)?.value??`.`,primaryGroupSize:o?a[a.length-1]:3,secondaryGroupSize:o?a[a.length-2]:3},RF.set(t,n)}return n}function AF(e){let t=e.codePointAt(0);if(t==null)return null;for(let e=t;t-e<10;e--)if(!zF.test(String.fromCodePoint(e-1)))return t-e;return null}function jF(e){let t=``;for(let n of e){if(!zF.test(n)){t+=n;continue}let e=AF(n);if(e==null)return null;t+=String(e)}return t}function MF(e,t,n,r,i,a){let o=e,s=null;if(n!==``&&e.includes(n)){let t=e.indexOf(n);if(e.includes(n,t+n.length)||(o=e.slice(0,t),s=e.slice(t+n.length),!/^\d*$/.test(s)))return null}let c;if(t!==``&&o.includes(t)){let e=o.split(t);if(e.length-1<a||!e.every(e=>/^\d+$/.test(e)))return null;let n=e[0];if(e[e.length-1].length!==r||n.length>i)return null;for(let t=1;t<e.length-1;t++)if(e[t].length!==i)return null;c=e.join(``)}else{if(!/^\d*$/.test(o))return null;c=o}return c===``&&(s==null||s===``)?null:s==null?c:`${c}.${s}`}function NF(e){return/^[\s'\u2019]$/.test(e)}function PF(e,t){if(!UF.test(e))return null;let{group:n,decimal:r,primaryGroupSize:i,secondaryGroupSize:a}=kF(t),o=MF(e,n,r,i,a,1);if(o!=null)return o;if(WF.test(e))return e;let s=[...new Set(e.replace(/\d/g,``))];if(s.length===0||s.length>2)return null;for(let t of s){let n=e.split(t).length-1,r=NF(t)?1:2;if(n<r)continue;let i=s.find(e=>e!==t)??``;if(i!==``&&e.split(i).length-1!=1)continue;let a=MF(e,t,i,3,3,r);if(a!=null)return a}return null}function FF(e,t){let n=jF(e.normalize(`NFKC`).replace(VF,``));if(n==null)return null;let r=n.trim(),i=1,a=/^\((.*)\)$/s.exec(r);a&&(i=-1,r=a[1].trim()),r=IF(r);let o=!1,s=RegExp(`^([+${HF}])\\s*`).exec(r);if(s)o=!0,i=s[1]===`+`?i:-i,r=r.slice(s[0].length);else{let e=RegExp(`\\s*([+${HF}])$`).exec(r);e&&(o=!0,i=e[1]===`+`?i:-i,r=r.slice(0,r.length-e[0].length))}if(a&&o)return null;r=IF(r);let c=0,l=/\s*[eE]\s*([+-]?\d+)$/.exec(r);l&&(c=Number(l[1]),r=r.slice(0,r.length-l[0].length));let u=r.trim();if(u===``)return null;let d=PF(u,t);if(d==null)return null;let f=Number(d);if(!Number.isFinite(f))return null;let p=c===0?f:Number((f*10**c).toPrecision(15));if(!Number.isFinite(p))return null;let m=i*p;return Object.is(m,-0)?0:m}function IF(e){let t=e.trim();return BF.test(t.charAt(0))&&(t=t.slice(1).trim()),BF.test(t.charAt(t.length-1))&&(t=t.slice(0,-1).trim()),t}function LF(e,t){let{decimal:n}=kF(t),r=String(e);return n===`.`?r:r.replace(`.`,n)}var RF,zF,BF,VF,HF,UF,WF,GF=o((()=>{RF=new Map,zF=RegExp(`\\p{Nd}`,`u`),BF=RegExp(`\\p{Sc}`,`u`),VF=/[\u200B-\u200D\u200E\u200F\u061C\u2066-\u2069\uFEFF]/g,HF=`−‒–-`,UF=RegExp(`^[0-9,.' ’٫٬]+$`),WF=/^(?:\d+\.?\d*|\.\d+)$/}));function KF(e,t){let n=e.trim();if(n===``)return null;let r=FF(n,t.locale);return r==null||!Number.isFinite(r)||t.isIntegerOnly&&!Number.isInteger(r)?null:r}function qF(e,t){let n=KF(e,t);return n===null||t.min!=null&&n<t.min||t.max!=null&&n>t.max?null:n}function JF(e,t){if(e.trim()===``)return t.hasClear?{type:`clear`}:{type:`revert`};let n=KF(e,t);if(n===null)return{type:`revert`};let r=t.min==null?null:t.isIntegerOnly?Math.ceil(t.min):t.min,i=t.max==null?null:t.isIntegerOnly?Math.floor(t.max):t.max;if(r!=null&&i!=null&&r>i)return{type:`revert`};let a=r!=null&&n<r?r:i!=null&&n>i?i:n;return{type:`commit`,value:a,didClamp:a!==n}}var YF=o((()=>{GF()}));function XF(e){let[t,n]=String(e).toLowerCase().split(`e`),r=t.split(`.`)[1]?.length??0,i=n==null?0:Number(n);return Math.max(0,r-i)}function ZF(e,t){return e==null||!Number.isFinite(e)||e<=0||t&&!Number.isInteger(e)?1:e}function QF({currentValue:e,direction:t,min:n,max:r,step:i,isIntegerOnly:a}){let o=ZF(i,a),s=n!=null&&(!a||Number.isInteger(n))?n:0,c;if(e==null)c=t===1?n??0:r??0,a&&(c=t===1?Math.ceil(c):Math.floor(c));else{let n=(e-s)/o,r=2**-52*Math.max(1,Math.abs(n))*4;c=s+(t===1?Math.floor(n+r)+1:Math.ceil(n-r)-1)*o}let l=Math.min(12,Math.max(XF(o),XF(s)));return c=Number(c.toFixed(l)),n!=null&&(c=Math.max(n,c)),r!=null&&(c=Math.min(r,c)),!Number.isFinite(c)||a&&!Number.isInteger(c)?e:Object.is(c,-0)?0:c}function $F({label:e,isLabelHidden:t=!1,description:n,isOptional:r=!1,isRequired:i=!1,isDisabled:a=!1,isReadOnly:o=!1,disabledMessage:s,startIcon:c,labelIcon:l,status:u,statusVariant:d=`attached`,size:f,onChange:p,value:m,placeholder:h,labelTooltip:g,hasAutoFocus:_=!1,htmlName:v,autoComplete:y,min:b,max:x,step:S,formatValue:C,isWheelEnabled:w=!0,hasNumberSteppers:T=!1,units:E,isIntegerOnly:D=!1,onFocus:O,onBlur:k,hasClear:A,onEnter:j,onKeyDown:M,width:N,xstyle:ee,className:P,style:te,ref:F,...ne}){let I=xf(),re=wf(),ie=KP({isRequired:i,isOptional:r}),ae=fx(f,`md`),oe=(0,eI.useId)(),se=(0,eI.useId)(),ce=(0,eI.useId)(),le=(0,eI.useId)(),ue=(0,eI.useId)(),de=(0,eI.useRef)(null),fe=(0,eI.useRef)(null),pe=CF(),[L,R]=(0,eI.useState)(null),[me,he]=(0,eI.useState)(!1),ge=a&&!!s,_e=va({placement:`above`,focusTrigger:`always`,isEnabled:ge}),{statusIcon:ve,describedBy:ye}=IE({status:u,statusVariant:d,isInGroup:!!pe}),{ariaLabelledBy:be,ariaDescribedBy:xe}=mn(se,[n?ce:null,!pe&&d!==`tooltip`&&u?.message?le:null,ye,E?ue:null,ge?_e.describedBy:null],pe),Se=(0,eI.useCallback)(e=>qF(e,{min:b,max:x,isIntegerOnly:D,locale:re}),[D,re,x,b]),Ce=(0,eI.useMemo)(()=>m==null?``:C?.(m)??String(m),[C,m]),we=(0,eI.useMemo)(()=>L===null?m==null?``:me?LF(m,re):Ce:L,[Ce,me,re,L,m]),Te=(0,eI.useMemo)(()=>L===null||!L.trim()||Se(L)!==null,[L,Se]),Ee=(0,eI.useCallback)(e=>{a||o||R(e.target.value)},[a,o]),De=(0,eI.useCallback)(e=>{he(!0),O?.(e)},[O]),Oe=(0,eI.useCallback)(e=>{if(L===null)return;let t=JF(L,{min:b,max:x,isIntegerOnly:D,locale:re,hasClear:!!A});(e===`blur`||t.type===`commit`&&t.didClamp)&&R(null),t.type===`clear`?A&&m!=null&&p(null):t.type===`commit`&&t.value!==m&&p(t.value)},[A,D,re,x,b,p,L,m]),ke=(0,eI.useCallback)(e=>{Oe(`blur`),he(!1),k?.(e)},[Oe,k]),Ae=(0,eI.useMemo)(()=>L===null?m??null:L.trim()===``?null:Se(L)??m??null,[Se,L,m]),je=(0,eI.useCallback)(e=>QF({currentValue:Ae,direction:e,min:b,max:x,step:S,isIntegerOnly:D}),[D,x,b,S,Ae]),Me=(0,eI.useCallback)(e=>{if(a||o)return;let t=je(e);t!=null&&(R(null),t!==m&&p(t))},[je,a,o,p,m]),Ne=(0,eI.useCallback)(e=>{if(!Bn(e.nativeEvent)){if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)&&(e.key===`ArrowUp`||e.key===`ArrowDown`)){if(M?.(e),e.defaultPrevented)return;e.preventDefault(),Me(e.key===`ArrowUp`?1:-1);return}e.key===`Enter`&&(Oe(`Enter`),j?.()),M?.(e)}},[Oe,j,M,Me]),Pe=(0,eI.useCallback)(e=>{if(e==null||!w)return;let t=t=>{document.activeElement!==e||a||o||t.deltaY===0||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||(t.preventDefault(),t.stopPropagation(),Me(t.deltaY<0?1:-1))};return e.addEventListener(`wheel`,t,{passive:!1}),()=>e.removeEventListener(`wheel`,t)},[a,o,w,Me]),Fe=(0,eI.useMemo)(()=>Zt(F,de,Pe),[F,Pe]),Ie=je(1)!==Ae,Le=je(-1)!==Ae,Re=(0,eI.useCallback)(e=>{A&&p(null),R(null),!e||e.detail===0?de.current?.focus():requestAnimationFrame(()=>{de.current?.focus({preventScroll:!0})})},[A,p]),{onClick:ze,onMouseUp:Be}=jE({containerRef:fe,inputRef:de,disabled:a}),Ve=(0,tI.jsxs)(`div`,{ref:e=>{fe.current=e,_e.ref(e)},onClick:ze,onMouseUp:Be,...U(V(`number-input`,{size:ae,status:u?.type??null,disabled:a?`disabled`:null,readonly:o?`readonly`:null}),z(dF.base,oI.wrapper,T&&oI.wrapperWithNumberSteppers,sI[ae],a&&dF.disabled,u&&fF[u.type],u&&!a&&pF[u.type],u&&mF[u.type],pe&&DF.inGroup,ee),P,te),children:[c&&au(c,{size:`sm`,color:`secondary`}),pe&&(0,tI.jsx)(fu,{id:se,children:e}),(0,tI.jsx)(`input`,{...ne,ref:Fe,id:oe,name:a||C?void 0:v,type:`text`,inputMode:D?`numeric`:`decimal`,role:`spinbutton`,autoComplete:y,value:we,onChange:Ee,onFocus:De,onBlur:ke,onKeyDown:Ne,placeholder:h,disabled:a&&!ge,"aria-disabled":ge?`true`:void 0,readOnly:o||ge||void 0,autoFocus:_,"data-autofocus":_||void 0,"aria-valuemin":b??void 0,"aria-valuemax":x??void 0,"aria-valuenow":m??void 0,"aria-valuetext":m==null||!C?void 0:Ce,"aria-describedby":xe,"aria-required":ie?`true`:void 0,"aria-invalid":u?.type===`error`||!Te?`true`:void 0,"aria-labelledby":be,...{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`}}[!!a<<1|!Te<<0]}),C&&v&&!a&&(0,tI.jsx)(`input`,{type:`hidden`,name:v,value:m==null?``:String(m)}),E&&(0,tI.jsx)(`span`,{id:ue,className:`x9ynric xjm74w1 xw6l6zx xv1l7n4 x2lah0s`,children:E}),(0,tI.jsx)(fu,{as:`div`,role:`alert`,"aria-live":`assertive`,children:Te?``:`Invalid number`}),A&&m!=null&&!a&&!o&&(0,tI.jsx)(_F,{label:I(`@astryx.numberInput.clearLabel`,{label:e}),onClick:Re}),ve,T&&(0,tI.jsxs)(`div`,{className:`xkh2ocl x78zum5 xdt5ytf x2lah0s x12xnipv x5j3pgv x13i4uq0 xgbv0en x1t7ytsu x14ydlgx xb3r6kr x1g2gkjz xoao14b`,children:[(0,tI.jsx)(`button`,{type:`button`,tabIndex:-1,disabled:a||o||!Ie,"aria-label":I(`@astryx.numberInput.incrementLabel`,{label:e}),onPointerDown:e=>e.preventDefault(),onClick:()=>{de.current?.focus(),Me(1)},...z(oI.numberStepperButton,Lu.backgroundImage,(a||o||!Ie)&&oI.numberStepperButtonDisabled),children:(0,tI.jsx)(ru,{icon:`numberInput:stepperDown`,size:`xsm`,color:`inherit`,xstyle:oI.incrementIcon})}),(0,tI.jsx)(`button`,{type:`button`,tabIndex:-1,disabled:a||o||!Le,"aria-label":I(`@astryx.numberInput.decrementLabel`,{label:e}),onPointerDown:e=>e.preventDefault(),onClick:()=>{de.current?.focus(),Me(-1)},...z(oI.numberStepperButton,Lu.backgroundImage,oI.decrementButton,(a||o||!Le)&&oI.numberStepperButtonDisabled),children:(0,tI.jsx)(ru,{icon:`numberInput:stepperDown`,size:`xsm`,color:`inherit`})})]})]});return pe?(0,tI.jsxs)(tI.Fragment,{children:[Ve,ge&&_e.renderTooltip(s)]}):(0,tI.jsxs)(aF,{label:e,isLabelHidden:t,description:n,inputID:oe,descriptionID:n?ce:void 0,isOptional:r,isRequired:i,isDisabled:a,labelIcon:l,status:u?{type:u.type,message:u.message,messageID:u.message?le:void 0}:void 0,statusVariant:d,labelTooltip:g,width:N,children:[Ve,ge&&_e.renderTooltip(s)]})}var eI,tI,nI,rI,iI,aI,oI,sI,cI=o((()=>{eI=u(f(),1),B(),Et(),SF(),uu(),hu(),du(),W(),Ru(),gx(),FE(),HE(),JP(),EF(),OF(),H(),Df(),GF(),YF(),tI=G(),nI=St[`--spacing-1`],rI=St[`--spacing-2`],iI=`var(--astryx-number-input-padding, ${nI})`,aI=`var(--astryx-number-input-padding-inline, ${`var(--astryx-number-input-padding, ${rI})`})`,`${aI}`,`${aI}`,`${iI}`,`${iI}`,oI={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}},sI={sm:{kZKoxP:`x6k0iem`,$$css:!0},md:{kZKoxP:`x1ueg155`,$$css:!0},lg:{kZKoxP:`xssyfek`,$$css:!0}},$F.displayName=`NumberInput`})),lI=o((()=>{cI()}));function uI({ref:e,label:t,clearLabel:n,placeholder:r,value:i,onValueChange:a,onKeyDown:o,onFocus:s,onBlur:c,onContainerKeyDown:l,xstyle:u,className:d,style:f,...p}){let[m,h]=(0,dI.useState)(!1);ki();let g=(0,dI.useCallback)(e=>{h(Ai()===`keyboard`),s?.(e)},[s]),_=(0,dI.useCallback)(e=>{h(!1),c?.(e)},[c]),v=(0,dI.useCallback)(t=>{a(``),!t||t.detail===0?typeof e==`object`&&e?.current&&e.current.focus():requestAnimationFrame(()=>{typeof e==`object`&&e?.current&&e.current.focus({preventScroll:!0})})},[a,e]);return(0,fI.jsx)(`div`,{onKeyDown:l,...U(z(pI.wrapper,u),d,f),children:(0,fI.jsxs)(`div`,{"data-keyboard-focus":m?`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`}}[!!m<<0],children:[(0,fI.jsx)(ru,{icon:`search`,size:`sm`,color:`secondary`,xstyle:pI.icon}),(0,fI.jsx)(`input`,{ref:e,type:`text`,"aria-label":t,placeholder:r,value:i,onChange:e=>a(e.target.value),onKeyDown:o,onFocus:g,onBlur:_,className:`x1iyjqo2 xs83m0k xeuugli x1717udv x1ghz6dp xc342km xng3xce xjbqb8w x1tgivj0 x9ynric xcr08ib x1w61h2b x1kq96og x1a2a7pz xeyghm5`,...p}),i!==``&&(0,fI.jsx)(_F,{label:n,onClick:v})]})})}var dI,fI,pI,mI=o((()=>{dI=u(f(),1),B(),uu(),xF(),W(),Ni(),fI=G(),pI={wrapper:{k8WAf4:`xu0wf1k`,kg3NbH:`x7a5moj`,$$css:!0},icon:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kmuXW:`x2lah0s`,$$css:!0}},uI.displayName=`PanelSearchInput`}));function hI(e){return typeof e==`string`||!(`type`in e)}function gI(e){return typeof e==`object`&&`type`in e&&e.type===`divider`}function _I(e){return typeof e==`object`&&`type`in e&&e.type===`section`}function vI(e){return typeof e==`string`?{value:e,label:e}:{...e,label:e.label??e.value}}function yI(e){let t=[];for(let n of e)if(hI(n))t.push(vI(n));else if(_I(n))for(let e of n.options)t.push(vI(e));return t}var bI=o((()=>{}));function xI({isOpen:e,highlightedIndex:t,setHighlightedIndex:n,getOptionId:r,itemCount:i}){let a=(0,SI.useRef)(!1),o=(0,SI.useCallback)(e=>{e!==t&&(a.current=!0),n(e)},[t,n]);return(0,SI.useEffect)(()=>{if(a.current){a.current=!1;return}!e||t<0||document.getElementById(r(t))?.scrollIntoView?.({block:`nearest`})},[e,t,r,i]),o}var SI,CI=o((()=>{SI=u(f(),1)}));function wI(e){let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t}function TI({isOpen:e,selectedItemIndex:t,listboxId:n,listboxRef:r,anchorRef:i}){let[a,o]=(0,DI.useState)(0),[s,c]=(0,DI.useState)(!1),l=(0,DI.useCallback)((e,t)=>{o(e),c(t)},[]);return Cr(()=>{if(!e){l(0,!1);return}if(!r.current||!i.current){l(0,!0);return}let a=`${n}-item-${t>=0?t:0}`,o=document.getElementById(a);if(!o){l(0,!0);return}let s=r.current,c=i.current.getBoundingClientRect(),u=s.offsetHeight;if(u<=0){l(0,!0);return}let d=wI(o)-wI(s)-s.scrollTop+o.offsetHeight/2,f=c.top+c.height/2-d-OI,p=window.innerHeight,m=Math.max(0,p-u),h=Math.min(Math.max(f,0),m),g=Math.max(0,c.bottom-h);l(g,!0)},[e,t,n,r,i,l]),{offset:a,isPositioned:s}}function EI({selectableItems:e,value:t,isDisabled:n=!1,isOpen:r,hasSearch:i=!1,onOpen:a,onClose:o,onSelect:s,onClear:c,onSearchSeed:l,listboxId:u}){let[d,f]=(0,DI.useState)(-1),p=(0,DI.useCallback)(e=>`${u}-item-${e}`,[u]),m=(0,DI.useCallback)(()=>e.map((e,t)=>e.disabled?-1:t).filter(e=>e>=0),[e]),h=(0,DI.useCallback)(()=>e.findIndex(e=>e.value===t),[e,t]),g=(0,DI.useCallback)(()=>{f(-1),o()},[o]),_=(0,DI.useCallback)(e=>{e.disabled||(s?.(e.value),g())},[s,g]),v=(0,DI.useCallback)(()=>{if(!n){if(r)g();else if(a()!==!1&&!i){let e=h();f(e>=0?e:0)}}},[n,r,a,g,h,i]),y=xI({isOpen:r,highlightedIndex:d,setHighlightedIndex:f,getOptionId:p}),b=(0,DI.useCallback)((e,t)=>{e.disabled||y(t)},[y]);return{highlightedIndex:d,setHighlightedIndex:f,getItemId:p,onTriggerClick:v,onKeyDown:(0,DI.useCallback)(o=>{if(n)return;let s=m();switch(o.key){case`ArrowDown`:if(o.preventDefault(),!r)a()!==!1&&f(0);else{let e=s.indexOf(d),t=Math.min(e+1,s.length-1);f(s[t]??d)}break;case`ArrowUp`:if(o.preventDefault(),!r)a()!==!1&&f(e.length-1);else{let e=s.indexOf(d),t=Math.max(e-1,0);f(s[t]??d)}break;case` `:if(i)break;case`Enter`:if(o.preventDefault(),r&&d>=0){let t=e[d];t&&!t.disabled&&_(t)}else if(!r&&a()!==!1&&!i){let e=h();f(e>=0?e:0)}break;case`Escape`:r&&(o.preventDefault(),g());break;case`Tab`:r&&g();break;case`Home`:o.preventDefault(),r&&s.length>0&&f(s[0]);break;case`End`:o.preventDefault(),r&&s.length>0&&f(s[s.length-1]);break;case`PageUp`:o.preventDefault(),r&&s.length>0&&f(s[0]);break;case`PageDown`:o.preventDefault(),r&&s.length>0&&f(s[s.length-1]);break;case`Delete`:case`Backspace`:!i&&!r&&c!=null&&t!=null&&(o.preventDefault(),c());break;default:i&&l&&o.key.length===1&&!o.ctrlKey&&!o.metaKey&&(r||a()!==!1)&&l(o.key)}},[n,r,a,g,e,d,_,h,m,i,c,l,t]),onItemSelect:_,onItemMouseEnter:b}}var DI,OI,kI=o((()=>{DI=u(f(),1),CI(),wr(),OI=1}));function AI(){return(0,jI.use)(MI)}var jI,MI,NI=o((()=>{jI=u(f(),1),Ar(),MI=Tr(`stacked`),MI.displayName=`SelectorRowLayoutContext`}));function PI({icon:e,label:t,description:n,layout:r,endContent:i,xstyle:a,className:o,style:s}){let c=AI();return(0,FI.jsx)(GC,{startContent:e?au(e,{size:`sm`,color:`secondary`}):void 0,label:t,description:n,layout:c===`inline`?`inline`:r,endContent:i,xstyle:[II.root,a],...U(V(`selector-option`),{className:o,style:s})})}var FI,II,LI=o((()=>{uu(),$C(),NI(),W(),H(),FI=G(),II={root:{k8WAf4:`xt970qd`,kg3NbH:`xnjsko4`,kaIpWk:`x2u8bby`,$$css:!0}},PI.displayName=`SelectorOption`}));function RI({isOpen:e,targetRef:t}){return(0,BI.useEffect)(()=>{if(!e)return;let n=requestAnimationFrame(()=>{t.current?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(n)},[e,t]),null}function zI({children:e,finalFocusRef:t,initialFocusRef:n,isOpen:r,label:i,onOpenChange:a}){return(0,VI.jsx)(BI.Suspense,{fallback:null,children:(0,VI.jsx)(HI,{isOpen:r,onOpenChange:a,finalFocusRef:t,label:i,height:`hug`,purpose:`info`,children:(0,VI.jsx)(jO,{paddingBlockStart:4,paddingBlockEnd:0,paddingInline:1,children:(0,VI.jsxs)(`div`,{className:`xh8yej3`,children:[(0,VI.jsx)(Ba,{level:3,xstyle:UI.heading,children:i}),e,(0,VI.jsx)(RI,{isOpen:r,targetRef:n})]})})})})}var BI,VI,HI,UI,WI=o((()=>{BI=u(f(),1),Ka(),_M(),VI=G(),HI=(0,BI.lazy)(async()=>Promise.resolve().then(()=>(uO(),nO)).then(e=>({default:e.BottomSheet}))),UI={heading:{k1K539:`x1p37lm5`,kUOVxO:`xam6yil`,$$css:!0}},zI.displayName=`SelectorBottomSheet`}));function GI({presentation:e,onHide:t,onShow:n,popoverOptions:r,triggerRef:i}){let a=vT(e),o=(0,KI.useRef)(a),[s,c]=(0,KI.useState)(!1),l=(0,KI.useRef)(!1),[u,d]=(0,KI.useState)(!1),f=(0,KI.useRef)(t),p=(0,KI.useRef)(n),m=(0,KI.useRef)(!1),{isFocusRingSuppressed:h,onFocusReturnTargetFocus:g,prepareFocusReturn:_,resetFocusReturn:v}=hT();f.current=t,p.current=n;let y=(0,KI.useCallback)(()=>{_(),f.current(),i.current?.focus()},[_,i]),b=(0,KI.useCallback)(()=>{m.current=!0,v(),p.current()},[v]),x=kC({...r,onHide:y,onShow:b}),{hide:S,show:C}=x,w=(0,KI.useCallback)(()=>(o.current=a,a===`bottom-sheet`?(v(),p.current(),l.current=!0,d(!0),c(!0),!0):(d(!1),m.current=!1,C(),m.current)),[v,a,C]),T=(0,KI.useCallback)(()=>{l.current?(_(),l.current=!1,c(!1),f.current()):S()},[S,_]),E=(0,KI.useCallback)(e=>{g(),!l.current&&o.current===`bottom-sheet`&&d(!1)},[g]),D=(0,KI.useCallback)(e=>{e?w():T()},[T,w]),O=x.isOpen||s;return{activePresentation:O||u?o.current:a,hide:T,isOpen:O,isSheetOpen:s,isSheetPresented:u,isTriggerFocusRingSuppressed:h,onSheetOpenChange:D,onTriggerFocus:E,popover:x,show:w}}var KI,qI=o((()=>{KI=u(f(),1),PC(),bT(),_T()})),JI,YI=o((()=>{JI={pointerRestoredFocus:{kVAM5u:`xvy26l8`,kGVxlE:`x1gnnqk1`,kMeerF:`x1k57tk5`,k3XXqK:`x1t137rt`,$$css:!0}}}));function XI({option:e}){return(0,tL.jsx)(PI,{icon:e.icon,label:e.label??e.value,description:e.description})}function ZI(e,t){return!t||(e.label??e.value).toLowerCase().includes(t.toLowerCase())}function QI(e,t){return t?e.filter(e=>ZI(e,t)):e}function $I(e){let t=xf(),{label:n,isLabelHidden:r=!1,description:i,isOptional:a=!1,isRequired:o=!1,isDisabled:s=!1,isReadOnly:c=!1,disabledMessage:l,options:u,value:d,onChange:f,changeAction:p,isLoading:m=!1,placeholder:h,size:g,variant:_=`input`,status:v,statusVariant:y=`attached`,labelTooltip:b,startIcon:x,htmlName:S,renderOption:C,renderValue:w,indicatorPosition:T=`end`,hasSearch:E=!1,searchPlaceholder:D,emptyText:O,emptySearchText:k,placement:A,presentation:j=`popover`,isDefaultOpen:M=!1,"data-testid":N,width:ee,xstyle:P,className:te,style:F,onFocus:ne,hasClear:I,id:re,...ie}=e,ae=KP({isRequired:o,isOptional:a}),oe=h??t(`@astryx.selector.placeholder`),se=D??t(`@astryx.selector.searchPlaceholder`),ce=O??t(`@astryx.selector.empty`),le=k??t(`@astryx.selector.emptySearchResults`),ue=I===!0,de=fx(g,`md`),fe=_===`ghost`&&y===`attached`?`detached`:y,pe=c&&!s,L=d===null?void 0:d,R=(0,eL.useId)(),me=re??R,he=(0,eL.useId)(),ge=(0,eL.useId)(),_e=(0,eL.useId)(),ve=(0,eL.useId)(),ye=(0,eL.useId)(),be=(0,eL.useId)(),xe=(0,eL.useRef)(null),Se=(0,eL.useRef)(null),Ce=(0,eL.useRef)(null),we=CF(),[Te,Ee]=(0,eL.useState)(``),De=(0,eL.useRef)(``),Oe=Te.length>0,[,ke]=(0,eL.useTransition)(),[Ae,je]=(0,eL.useOptimistic)(L),Me=m||Ae!==L,Ne=DT(),Pe=typeof ce==`string`?ce:t(`@astryx.selector.empty`),Fe=typeof le==`string`?le:t(`@astryx.selector.emptySearchResults`),Ie=s&&!!l,Le=va({placement:`above`,focusTrigger:`always`,isEnabled:Ie}),Re=va({placement:`above`,isEnabled:fe===`tooltip`&&!!v?.message}),{ariaLabelledBy:ze,ariaDescribedBy:Be}=mn(ve,[i?ge:null,!we&&fe!==`tooltip`&&v?.message?_e:null,fe===`tooltip`&&v?.message?Re.describedBy:null,Ie?Le.describedBy:null,pe?ye:null],we),Ve=(0,eL.useMemo)(()=>yI(u),[u]),He=(0,eL.useMemo)(()=>QI(Ve,Te),[Ve,Te]),Ue=(0,eL.useMemo)(()=>Ve.findIndex(e=>e.value===Ae),[Ve,Ae]),We=(0,eL.useMemo)(()=>Ue>=0?Ve[Ue]:void 0,[Ve,Ue]),Ge=(0,eL.useRef)(null),Ke=(0,eL.useRef)(()=>{}),qe=GI({presentation:j,onHide:(0,eL.useCallback)(()=>{Ee(``),De.current=``,Ke.current(),Ne(``)},[Ne]),onShow:(0,eL.useCallback)(()=>{E&&requestAnimationFrame(()=>{let e=Ce.current;e&&(e.focus(),e.setSelectionRange(e.value.length,e.value.length))})},[E]),triggerRef:Se,popoverOptions:{hasLightDismiss:!0,hasCloseButton:!1,hasAutoFocus:!1,role:`none`,surfaceTarget:`selector-popup`}}),{popover:Je}=qe,Ye=qe.hide,Xe=qe.isOpen,Ze=vi(Je.id,Je.isOpen);(0,eL.useEffect)(()=>{M&&!pe&&qe.show()},[]),(0,eL.useEffect)(()=>{pe&&Xe&&Ye()},[pe,Xe,Ye]);let Qe=(0,eL.useCallback)(e=>{if(e.length===0){Ne(``);return}if(m){Ne(``);return}let n=QI(Ve,e).length;Ne(n===0?Fe:t(`@astryx.selector.resultCount`,{count:n}))},[Ne,m,Ve,Fe,t]),$e=(0,eL.useCallback)(e=>{Ee(e),De.current=e,Qe(e)},[Qe]),et=(0,eL.useRef)(null);(0,eL.useEffect)(()=>{if(!qe.isOpen||m||Te!==``||Ve.length!==0){et.current=null;return}et.current!==Pe&&(et.current=Pe,Ne(Pe))},[qe.isOpen,m,Te,Ve.length,Pe,Ne]);let tt=A==null&&!E,{offset:nt,isPositioned:rt}=TI({isOpen:Je.isOpen&&tt,selectedItemIndex:Ue,listboxId:he,listboxRef:Ge,anchorRef:xe}),it=tt?nt:0,at=!tt||rt,ot=A??`below`,st=it>0?{marginBlockStart:`-${it}px`}:void 0,ct=(0,eL.useCallback)(()=>{Ke.current(),f?.(null),p&&ke(async()=>{je(void 0),await p(null)})},[f,p,ke,je]),lt=(0,eL.useCallback)(e=>{let t=De.current+e;De.current=t,Ee(t),Qe(t)},[Qe]),ut=(0,eL.useCallback)(e=>{f?.(e),p&&ke(async()=>{je(e),await p(e)})},[f,p,ke,je]),{highlightedIndex:dt,setHighlightedIndex:ft,getItemId:pt,onTriggerClick:mt,onKeyDown:ht,onItemSelect:gt,onItemMouseEnter:_t}=EI({selectableItems:He,value:Ae,isDisabled:s||pe,isOpen:qe.isOpen,hasSearch:E,onOpen:(0,eL.useCallback)(()=>qe.show(),[qe]),onClose:qe.hide,onSelect:ut,onClear:ue?ct:void 0,onSearchSeed:lt,listboxId:he}),vt=Bw({getItemLabels:()=>Ve.map(e=>e.label??e.value),isDisabled:e=>Ve[e]?.disabled===!0,getCurrentIndex:()=>qe.isOpen?dt:Ue,onMatch:e=>{let t=Ve[e];qe.isOpen?ft(e):t.value!==Ae&&(ut(t.value),Ne(t.label??t.value))}});Ke.current=vt.reset;let yt=(0,eL.useCallback)(e=>{if(!(s||pe)){if(!E&&vt.onKeyDown(e)){e.preventDefault();return}ht(e)}},[s,pe,E,vt,ht]),bt=(0,eL.useCallback)(e=>{e.stopPropagation(),ct()},[ct]),B=(0,eL.useCallback)(()=>E?(0,tL.jsx)(uI,{ref:Ce,id:be,label:t(`@astryx.selector.searchOptions`),clearLabel:t(`@astryx.textInput.clearLabel`,{label:t(`@astryx.selector.searchOptions`)}),...V(`selector-search`),xstyle:qe.activePresentation===`popover`&&_!==`ghost`&&nL.searchRowInput,role:`combobox`,"aria-expanded":qe.isOpen,"aria-controls":he,"aria-autocomplete":`list`,"aria-activedescendant":qe.isOpen&&dt>=0?pt(dt):void 0,value:Te,onValueChange:$e,onContainerKeyDown:e=>{e.target!==Ce.current&&e.key===`Tab`&&!e.shiftKey&&ht(e)},onKeyDown:e=>{if(!Bn(e.nativeEvent)){if(e.key===`ArrowDown`||e.key===`ArrowUp`||e.key===`PageUp`||e.key===`PageDown`||e.key===`Enter`||e.key===`Escape`){ht(e);return}e.key===`Tab`&&(e.shiftKey||!Oe)&&ht(e)}},placeholder:se}):null,[E,be,he,Te,Oe,se,$e,ht,qe.isOpen,qe.activePresentation,dt,pt,_,t]),xt=qk(`check`),Ct=(0,eL.useCallback)((e,t)=>{let n=t===dt,r=e.value===L,i=(0,tL.jsx)(`span`,{className:`x3nfvp2 x6s0dn4 xl56j7k x2lah0s xgomdpo xjl7jj`,children:(0,tL.jsx)(xt,{state:r?`checked`:`unchecked`,size:`sm`,isDisabled:e.disabled??!1,...V(`selector-check`)})}),a=(0,tL.jsx)(`span`,{className:`x78zum5 x6s0dn4 x1txdalj x98rzlu xeuugli`,children:C?C(e):(0,tL.jsx)(XI,{option:e})}),o=T===`start`?(0,tL.jsxs)(tL.Fragment,{children:[i,a]}):(0,tL.jsxs)(tL.Fragment,{children:[a,i]});return(0,tL.jsx)(`div`,{id:pt(t),role:`option`,"aria-selected":r,"aria-disabled":e.disabled,onClick:()=>gt(e),onMouseEnter:()=>_t(e,t),...U(V(`selector-option-row`,{size:de,selected:r?`selected`:null,disabled:e.disabled?`disabled`:null}),z(nL.item,iL[de],n&&nL.itemHighlighted,r&&nL.itemSelected,e.disabled&&nL.itemDisabled)),children:o},e.value)},[C,T,dt,de,L,pt,gt,_t,xt]),wt=(0,eL.useCallback)(()=>{let e=E&&!!Te;if(He.length===0&&!m)return[(0,tL.jsx)(`div`,{role:`presentation`,...U(V(`selector-empty-state`),{className:`x1b2ylru x2b8uid xv1l7n4 x9ynric xcr08ib`}),children:e?le:ce},`empty`)];let t=0,n=[];for(let r=0;r<u.length;r++){let i=u[r];if(gI(i)){if(e)continue;n.push((0,tL.jsx)(pw,{"aria-hidden":`true`,xstyle:nL.divider},`divider-${r}`))}else if(_I(i)){let a=[];for(let n of i.options){let r=vI(n);(!e||ZI(r,Te))&&(a.push(Ct(r,t)),t++)}if(a.length===0)continue;n.push((0,tL.jsxs)(`div`,{role:`group`,"aria-label":i.title,children:[i.title&&(0,tL.jsx)(`div`,{"aria-hidden":`true`,...U(V(`selector-section-heading`),{className:`xu0wf1k xf314gf x9ynric x141an7d x1ltkj2j xv1l7n4 x87ps6o`}),children:i.title}),a]},`section-${r}`))}else if(hI(i)){let r=vI(i);if(e&&!ZI(r,Te))continue;n.push(Ct(r,t)),t++}}return n},[u,Ct,E,Te,He,m,ce,le]),Tt=v!=null&&fe!==`detached`,Et=v!=null&&fe===`tooltip`&&!!v.message,Ot=We&&w?(0,tL.jsx)(MI,{value:we?`inline`:`stacked`,children:(0,tL.jsx)(`span`,{...{0:{className:`x1iyjqo2 xeuugli xb3r6kr x1yc453h`},1:{className:`x1iyjqo2 xeuugli xb3r6kr x1yc453h xmz0i5r`}}[!!we<<0],children:w(We)})}):(0,tL.jsxs)(tL.Fragment,{children:[!x&&We?.icon!=null&&au(We.icon,{size:`sm`,color:`secondary`}),(0,tL.jsx)(`span`,{className:`x1iyjqo2 xeuugli xb3r6kr xlyipyv xuxw1ft x1yc453h`,children:We?.label??oe})]}),kt=E?(0,tL.jsxs)(`div`,{children:[B(),(0,tL.jsx)(pw,{}),(0,tL.jsx)(`div`,{ref:Ge,id:he,role:`listbox`,"aria-labelledby":me,...{0:{className:`x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x7a5moj x1hc1fzr x1ey1afo`},1:{className:`x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x1hc1fzr x1ey1afo x2hg6jq`}}[(qe.activePresentation===`popover`&&_!==`ghost`)<<0],children:wt()})]}):(0,tL.jsx)(`div`,{ref:Ge,id:he,role:`listbox`,"aria-label":qe.activePresentation===`bottom-sheet`?n:void 0,"aria-labelledby":qe.activePresentation===`bottom-sheet`?void 0:me,"aria-activedescendant":qe.isOpen&&dt>=0?pt(dt):void 0,tabIndex:qe.activePresentation===`bottom-sheet`?0:void 0,onKeyDown:qe.activePresentation===`bottom-sheet`?yt:void 0,...{0:{className:`x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x7a5moj x1hc1fzr x1ey1afo`},2:{className:`x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x1hc1fzr x1ey1afo x2hg6jq`},1:{className:`x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x7a5moj xg01cxk xq2gx43`},3:{className:`x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x2hg6jq xg01cxk xq2gx43`}}[(qe.activePresentation===`popover`&&_!==`ghost`)<<1|!(qe.activePresentation!==`popover`||at)<<0],children:wt()}),At=null;qe.activePresentation===`bottom-sheet`?(!pe||qe.isSheetPresented)&&(At=(0,tL.jsx)(zI,{isOpen:qe.isSheetOpen,onOpenChange:qe.onSheetOpenChange,finalFocusRef:Se,initialFocusRef:E?Ce:Ge,label:n,children:kt})):pe||(At=Je.render(kt,{placement:ot,alignment:`start`,offset:tt?void 0:St[`--spacing-1`],xstyle:[nL.popover,Vi[ot]],style:st}));let jt={...ie,id:me,"aria-describedby":Be,"aria-labelledby":ze,"aria-required":ae?`true`:void 0,"aria-invalid":v?.type===`error`?`true`:void 0,"aria-busy":Me||void 0,onKeyDown:yt,onFocus:e=>{ne?.(e),qe.onTriggerFocus(e)},tabIndex:s&&!Ie?-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`}}[!!pe<<1|!!we<<0]},Mt=(0,tL.jsxs)(tL.Fragment,{children:[(0,tL.jsxs)(`div`,{ref:e=>{xe.current=e,Je.triggerRef(e),Le.ref(e)},onClick:mt,"data-testid":N,...U(V(`selector`,{variant:_,size:de,status:v?.type??null,disabled:s?`disabled`:null,readonly:pe?`readonly`:null}),z(dF.base,nL.triggerContainer,rL[de],_===`ghost`&&nL.triggerGhost,_===`ghost`&&Lu.backgroundImage,_===`ghost`&&Ln.focusWithin,qe.isTriggerFocusRingSuppressed&&JI.pointerRestoredFocus,s&&dF.disabled,pe&&nL.triggerReadOnly,_===`ghost`&&s&&nL.triggerGhostDisabled,_===`ghost`&&pe&&nL.triggerGhostReadOnly,!We&&nL.triggerPlaceholder,_!==`ghost`&&v&&fF[v.type],_!==`ghost`&&v&&!s&&pF[v.type],_!==`ghost`&&we&&DF.inGroup,we&&nL.triggerInGroup,P),te,F),children:[x&&au(x,{size:`sm`,color:`secondary`}),we&&(0,tL.jsx)(fu,{id:ve,children:n}),pe&&(0,tL.jsx)(fu,{id:ye,children:t(`@astryx.input.readOnly`)}),(0,tL.jsx)(`button`,{...jt,ref:Se,type:`button`,role:pe||!E?`combobox`:void 0,"aria-haspopup":pe?void 0:qe.activePresentation===`bottom-sheet`?`dialog`:`listbox`,"aria-expanded":!pe&&qe.isOpen,"aria-controls":pe?void 0:he,"aria-readonly":pe||void 0,"aria-activedescendant":!pe&&!E&&qe.isOpen&&dt>=0?pt(dt):void 0,disabled:s&&!Ie,"aria-disabled":Ie?`true`:void 0,children:Ot}),S!=null&&(0,tL.jsx)(`input`,{type:`hidden`,name:S,value:d??``,disabled:s}),Me&&(0,tL.jsx)(qb,{size:`sm`}),ue&&d!=null&&!s&&!pe&&(0,tL.jsx)(vF,{...Ze,label:t(`@astryx.selector.clearLabel`,{label:n}),onClick:bt,iconClassName:Dt(`selector-clear-icon`)}),Tt?Et?(0,tL.jsx)(`button`,{ref:Re.ref,type:`button`,"aria-label":t(sL[v.type]),"aria-describedby":Re.describedBy,...Ze,onClick:e=>e.stopPropagation(),...z(Ln.focusVisible,nL.statusButton),children:(0,tL.jsx)(ru,{icon:aL[v.type],size:`sm`,color:oL[v.type],xstyle:nL.triggerIcon})}):(0,tL.jsx)(ru,{icon:aL[v.type],size:`sm`,color:oL[v.type],xstyle:nL.triggerIcon}):pe?null:(0,tL.jsx)(ru,{icon:`chevronDown`,size:`sm`,color:`secondary`,xstyle:[nL.triggerIcon,nL.triggerIconRotation,qe.isOpen&&nL.triggerIconOpen],...V(`selector-indicator-icon`,{state:qe.isOpen?`expanded`:`collapsed`})})]}),At,Et&&Re.renderTooltip(v?.message??``),Ie&&Le.renderTooltip(l)]});return we?Mt:(0,tL.jsx)(aF,{label:n,isLabelHidden:r,description:i,inputID:me,descriptionID:i?ge:void 0,isOptional:a,isRequired:o,isDisabled:s,status:v?{type:v.type,message:v.message,messageID:v.message?_e:void 0}:void 0,statusVariant:fe,labelTooltip:b,width:ee,children:Mt})}var eL,tL,nL,rL,iL,aL,oL,sL,cL=o((()=>{eL=u(f(),1),B(),du(),uu(),Yk(),SF(),bw(),Hi(),Ei(),xF(),sx(),mI(),PT(),Et(),bI(),kI(),Hw(),JP(),LI(),NI(),W(),gx(),H(),zn(),Ru(),Pt(),OF(),EF(),hu(),Df(),WI(),qI(),YI(),tL=G(),nL={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`,$$css:!0},triggerGhostDisabled:{kKwaWg:`x18o3ruo`,k3aq6I:`x1c071of x1pdlv7q`,$$css:!0},triggerReadOnly:{kkrTdU:`xt0e3qv`,$$css:!0},triggerGhostReadOnly:{kKwaWg:`x18o3ruo`,k3aq6I:`x1c071of x1pdlv7q`,$$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}},rL={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}},iL={sm:{k8WAf4:`xu0wf1k`,kg3NbH:`xf314gf`,$$css:!0},md:{k8WAf4:`x1vofgu7`,$$css:!0},lg:{$$css:!0}},aL={warning:`warning`,error:`error`,success:`success`},oL={warning:`warning`,error:`error`,success:`success`},sL={warning:`@astryx.input.statusButton.warning`,error:`@astryx.input.statusButton.error`,success:`@astryx.input.statusButton.success`},$I.displayName=`Selector`})),lL=o((()=>{cL(),LI(),kI()}));function uL({type:e=`text`,label:t,isLabelHidden:n=!1,description:r,isOptional:i=!1,isRequired:a=!1,isDisabled:o=!1,isReadOnly:s=!1,disabledMessage:c,startIcon:l,status:u,statusVariant:d=`attached`,size:f,onChange:p,changeAction:m,isLoading:h=!1,value:g,placeholder:_,labelTooltip:v,hasClear:y=!1,hasAutoFocus:b=!1,htmlName:x,onEnter:S,onKeyDown:C,width:w,xstyle:T,className:E,style:D,ref:O,...k}){let A=xf(),j=KP({isRequired:a,isOptional:i}),M=fx(f,`md`),N=(0,dL.useId)(),ee=(0,dL.useId)(),P=(0,dL.useId)(),te=(0,dL.useId)(),F=(0,dL.useRef)(null),ne=(0,dL.useRef)(null),I=CF(),[,re]=(0,dL.useTransition)(),[ie,ae]=(0,dL.useOptimistic)(g),oe=h||ie!==g,se=o&&!!c,ce=va({placement:`above`,focusTrigger:`always`,isEnabled:se}),{statusIcon:le,describedBy:ue}=IE({status:u,statusVariant:d,isInGroup:!!I}),{ariaLabelledBy:de,ariaDescribedBy:fe}=mn(ee,[r?P:null,!I&&d!==`tooltip`&&u?.message?te:null,ue,se?ce.describedBy:null],I),pe=e=>{if(o||s)return;let t=e.target.value;p?.(t,e),m&&!e.defaultPrevented&&re(async()=>{ae(t),await m(t,e)})},L=(0,dL.useCallback)(e=>{p?.(``,null),!e||e.detail===0?F.current?.focus():requestAnimationFrame(()=>{F.current?.focus({preventScroll:!0})})},[p]),{onClick:R,onMouseUp:me}=jE({containerRef:ne,inputRef:F,disabled:o}),he=(0,fL.jsxs)(`div`,{ref:e=>{ne.current=e,ce.ref(e)},onClick:R,onMouseUp:me,...U(V(`text-input`,{size:M,status:u?.type??null,disabled:o?`disabled`:null,readonly:s?`readonly`:null}),z(dF.base,pL[M],o&&dF.disabled,u&&fF[u.type],u&&!o&&pF[u.type],u&&mF[u.type],I&&DF.inGroup,T),E,D),children:[l&&au(l,{size:`sm`,color:`secondary`}),I&&(0,fL.jsx)(fu,{id:ee,children:t}),(0,fL.jsx)(`input`,{...k,ref:yr(O,F),id:N,name:o?void 0:x,type:e,value:ie,onChange:pe,onKeyDown:S||C?e=>{e.key===`Enter`&&!Bn(e.nativeEvent)&&S?.(),C?.(e)}:void 0,placeholder:_,disabled:o&&!se,"aria-disabled":se?`true`:void 0,readOnly:s||se||void 0,autoFocus:b,"data-autofocus":b||void 0,"aria-describedby":fe,"aria-required":j?`true`:void 0,"aria-invalid":u?.type===`error`?`true`:void 0,"aria-busy":oe||void 0,"aria-labelledby":de,...{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`}}[!!o<<0]}),y&&g!==``&&!o&&!s&&(0,fL.jsx)(_F,{label:A(`@astryx.textInput.clearLabel`,{label:t}),onClick:L}),oe&&(0,fL.jsx)(qb,{size:`sm`}),le]});return I?(0,fL.jsxs)(fL.Fragment,{children:[he,se&&ce.renderTooltip(c)]}):(0,fL.jsxs)(aF,{label:t,isLabelHidden:n,description:r,inputID:N,descriptionID:r?P:void 0,isOptional:i,isRequired:a,isDisabled:o,status:u?{type:u.type,message:u.message,messageID:u.message?te:void 0}:void 0,statusVariant:d,labelTooltip:v,width:w,children:[he,se&&ce.renderTooltip(c)]})}var dL,fL,pL,mL=o((()=>{dL=u(f(),1),B(),SF(),uu(),sx(),du(),hu(),W(),OF(),gx(),FE(),HE(),JP(),EF(),H(),Df(),xr(),fL=G(),pL={sm:{kZKoxP:`x6k0iem`,$$css:!0},md:{kZKoxP:`x1ueg155`,$$css:!0},lg:{kZKoxP:`xssyfek`,$$css:!0}},uL.displayName=`TextInput`})),hL=o((()=>{mL()}));function gL({children:e,label:t,isLabelHidden:n=!1,description:r,isDisabled:i=!1,isOptional:a=!1,isRequired:o=!1,size:s,status:c,labelTooltip:l,xstyle:u,className:d,style:f,ref:p,"data-testid":m,...h}){let g=fx(s,`md`),_=(0,_L.useId)(),v=(0,_L.useId)(),y=(0,_L.useId)(),b=(0,_L.useId)(),x=[r?y:null,c?.message?b:null].filter(Boolean).join(` `)||void 0,S=(0,_L.useMemo)(()=>({isInGroup:!0,labelID:v,describedByIDs:x}),[v,x]);return(0,vL.jsx)(TF,{value:S,children:(0,vL.jsx)(hx,{value:g,children:(0,vL.jsx)(aF,{label:t,isLabelHidden:n,description:r,inputID:_,labelID:v,descriptionID:r?y:void 0,isGroupLabel:!0,isOptional:a,isRequired:o,isDisabled:i,status:c?{type:c.type,message:c.message,messageID:c.message?b:void 0}:void 0,statusVariant:`detached`,labelTooltip:l,children:(0,vL.jsx)(`div`,{ref:p,"data-testid":m,...h,role:`group`,"aria-labelledby":v,"aria-describedby":x,...U(V(`input-group`,{size:g,status:c?.type??null}),z(yL.group,bL[g],i&&yL.disabled,u),d,f),children:e})})})})}var _L,vL,yL,bL,xL=o((()=>{_L=u(f(),1),B(),SF(),gx(),W(),EF(),H(),vL=G(),yL={group:{k1xSpc:`x3nfvp2`,kGNEyG:`x1qjc9v5`,kWkggS:`xjbqb8w`,$$css:!0},disabled:{kkrTdU:`xt0e3qv`,kSiTet:`xbyyjgo`,$$css:!0}},bL={sm:{kZKoxP:`x6k0iem`,$$css:!0},md:{kZKoxP:`x1ueg155`,$$css:!0},lg:{kZKoxP:`xssyfek`,$$css:!0}},gL.displayName=`InputGroup`})),SL=o((()=>{xL(),B(),Et(),W(),H(),EF()}));function CL({variant:e=`neutral`,label:t,icon:n,xstyle:r,className:i,style:a,ref:o,...s}){let c=typeof t==`number`?String(t):typeof t==`string`&&t.length>0?t:void 0;return(0,wL.jsxs)(`span`,{ref:o,...U(V(`badge`,{variant:e}),z(TL.base,EL[e],r),i,a),title:c,...s,children:[n,(0,wL.jsx)(`span`,{className:`xb3r6kr xlyipyv xeuugli`,children:t})]})}var wL,TL,EL,DL=o((()=>{B(),W(),H(),wL=G(),TL={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}},EL={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}},CL.displayName=`Badge`})),OL=o((()=>{DL()}));function kL(){let e=!1,t=new Set;return{onBusyChange(n){if(e!==n){e=n;for(let e of t)e()}},subscribe(e){return t.add(e),()=>{t.delete(e)}},getIsBusy:()=>e}}function AL(e){return(0,ML.useSyncExternalStore)(e.subscribe,e.getIsBusy,e.getIsBusy)}function jL(){return(0,ML.use)(NL)}var ML,NL,PL,FL=o((()=>{ML=u(f(),1),NL=(0,ML.createContext)(null),NL.displayName=`BusyIndicatorLaneContext`,PL=NL.Provider}));function IL({ref:e,item:t,icon:n,description:r,isDisabled:i=!1,group:a,xstyle:o,className:s,style:c,...l}){return t.element?(0,LL.jsx)(LL.Fragment,{children:t.element}):(0,LL.jsxs)(`div`,{ref:e,...U(V(`typeahead-item`),z(RL.container,i&&RL.disabled,o),s,c),...l,children:[n,(0,LL.jsxs)(`div`,{className:`x78zum5 xdt5ytf x98rzlu xeuugli`,children:[(0,LL.jsx)(`span`,{className:`xcr08ib x1kq96og x1sodnla x1tgivj0 xb3r6kr xlyipyv xuxw1ft`,children:t.label}),r&&(0,LL.jsx)(`span`,{className:`x141an7d x1ltkj2j xv1l7n4 xb3r6kr xlyipyv xuxw1ft`,children:r})]})]})}var LL,RL,zL=o((()=>{f(),B(),W(),H(),LL=G(),RL={container:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x1txdalj`,kAzted:`x2lwn1j`,$$css:!0},disabled:{kSiTet:`xbyyjgo`,$$css:!0}},IL.displayName=`TypeaheadItem`}));function BL(e,t){let n=Gt(e);return n>0&&n<t}var VL,HL,UL,WL,GL,KL,qL,JL=o((()=>{VL=u(f(),1),B(),FL(),PC(),PT(),CI(),wr(),Hn(),zL(),uu(),sx(),Et(),W(),H(),Df(),xr(),HL=G(),UL=St[`--spacing-4`],`${UL}`,`${UL}`,WL={kzqmXN:`x5lhr3w`,$$css:!0},GL={input:{k1xSpc:`x1lliihq`,kUk6DE:`x98rzlu`,k7Eaqz:`xfvyar9`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,kmVPX3:`x1717udv`,kMv6JI:`x9ynric`,kGuDYH:`xjm74w1 xf9zqsd`,kLWn49:`xw6l6zx`,kMwMTN:`x1tgivj0`,kWkggS:`xjbqb8w`,kI3sdo:`x1a2a7pz`,k8Qsv1:`xeyghm5`,$$css:!0},inputDisabled:{kkrTdU:`xt0e3qv`,$$css:!0},popover:{kB7OPa:`x9f619`,k7Eaqz:`xrzjruh`,ks0D6T:`xbd96yr`,$$css:!0},popoverCustomWidth:e=>[WL,{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(`${e}px`)}],item:{kB7OPa:`x9f619`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kzqmXN:`xh8yej3`,kmVPX3:`xlsj2fj`,kaIpWk:`xh6dtrn`,kkrTdU:`x1ypdohk x16khyan`,kI3sdo:`x1a2a7pz`,kWkggS:`xjbqb8w`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,k9WMMc:`x1yc453h`,$$css:!0},itemHighlighted:{kWkggS:`x1lmrjuc`,kjBf7l:`x1x84bn5`,k3XXqK:`x815t2r`,kMeerF:`x1xvue0r`,$$css:!0},itemSelected:{k63SB2:`x1e4wzip`,$$css:!0},defaultItem:{k7Eaqz:`xeuugli`,kzqmXN:`xh8yej3`,$$css:!0}},KL={sm:{k8WAf4:`xu0wf1k`,kg3NbH:`xf314gf`,$$css:!0},md:{k8WAf4:`x1vofgu7`,$$css:!0},lg:{k8WAf4:`xce4md1`,$$css:!0}},qL=function({searchSource:e,value:t,onChange:n,renderItem:r,placeholder:i,hasEntriesOnFocus:a=!1,maxMenuItems:o=10,menuWidth:s,minQueryLength:c=1,emptySearchResultsText:l,isDisabled:u=!1,isFocusableDisabled:d=!1,hasAutoFocus:f=!1,onChangeQuery:p,onOpenChange:m,__queryEntries:h,inputId:g,ariaDescribedBy:_,ariaLabelledBy:v,inputXStyle:y,inputTabIndex:b,anchorRef:x,onKeyDown:S,debounceMs:C=150,size:w=`md`,xstyle:T,className:E,style:D,onPointerDown:O,onFocus:k,onBlur:A,id:j,"aria-describedby":M,"aria-labelledby":N,tabIndex:ee,ref:P,...te}){let F=xf(),ne=i??F(`@astryx.typeahead.searchPlaceholder`),I=l??F(`@astryx.typeahead.emptySearchResults`),re=(0,VL.useId)(),ie=g??j??re,ae=_??M,oe=v??N,se=b??ee,ce=(0,VL.useId)(),le=(0,VL.useRef)(null),ue=(0,VL.useRef)(null),de=DT(),[fe,pe]=(0,VL.useState)(``),[L,R]=(0,VL.useState)([]),[me,he]=(0,VL.useState)(-1),[ge,_e]=(0,VL.useState)(!1),[ve,ye]=(0,VL.useState)(!1),be=jL(),xe=(0,VL.useRef)(be?.onBusyChange);Cr(()=>{xe.current=be?.onBusyChange},[be]);let Se=(0,VL.useRef)(!1),Ce=(0,VL.useCallback)(e=>{Se.current!==e&&(Se.current=e,_e(e),xe.current?.(e))},[]),we=(0,VL.useRef)(!1),Te=(0,VL.useRef)(null),Ee=(0,VL.useRef)(0),De=(0,VL.useRef)(0),Oe=(0,VL.useRef)(e);Oe.current!==e&&(Oe.current.cancel?.(),Oe.current=e,Ee.current++);let ke=kC({onShow:(0,VL.useCallback)(()=>{m?.(!0)},[m]),onHide:(0,VL.useCallback)(()=>{m?.(!1),he(-1),e.cancel?.()},[m,e]),hasLightDismiss:!0,hasCloseButton:!1,hasAutoFocus:!1,role:`none`}),Ae=(0,VL.useCallback)(()=>{we.current?document.addEventListener(`click`,()=>requestAnimationFrame(()=>ke.show()),{once:!0}):ke.show()},[ke]);(0,VL.useEffect)(()=>{let e=x?.current??ue.current;return e&&ke.triggerRef(e),()=>{ke.triggerRef(null)}},[ke,x]);let je=(0,VL.useCallback)(async t=>{e.cancel?.();let n=++Ee.current;Ce(!0),ye(!0);try{let r=await e.search(t);if(Ee.current!==n)return;De.current=n;let i=r.slice(0,o),a=[...i,...h?.(t,i)??[]];R(a),he(a.length>0?0:-1),(r.length>0||t.length>0)&&Ae(),t.length>0&&de(a.length===0?I:F(`@astryx.typeahead.resultCount`,{count:a.length}))}catch{if(Ee.current!==n)return;R([]),he(-1)}finally{Ee.current===n&&Ce(!1)}},[e,o,Ae,de,I,h,Ce,F]),Me=(0,VL.useCallback)((e,t)=>{if(Ee.current!==t)return;De.current=t;let n=e.slice(0,o),r=n.length>0?0:-1;(L.length!==0||n.length!==0||me!==-1)&&(R(n),he(r),e.length>0&&Ae())},[me,o,L.length,Ae]),Ne=(0,VL.useCallback)(async()=>{let t=++Ee.current,n;try{n=e.bootstrap()}catch{Ee.current===t&&(R([]),Ce(!1));return}if(Array.isArray(n)){Ce(!1),Me(n,t);return}Ce(!0);try{Me(await n,t)}catch{Ee.current===t&&R([])}finally{Ee.current===t&&Ce(!1)}},[e,Me,Ce]),Pe=(0,VL.useCallback)(t=>{if(pe(t),p?.(t),Te.current&&clearTimeout(Te.current),t.length===0&&!a||BL(t,c)){Ee.current++,e.cancel?.();let n=h?.(t,[])??[];R(n),he(n.length>0?0:-1),ye(!1),Ce(!1),de(``),n.length>0?Ae():ke.hide();return}let n=()=>{t.length>0?je(t):a&&Ne()};C<=0?n():Te.current=setTimeout(n,C)},[p,a,c,h,Ae,je,Ne,ke,C,e,de,Ce]),Fe=(0,VL.useCallback)(e=>{Pe(e.target.value)},[Pe]),Ie=(0,VL.useCallback)(t=>{Ee.current++,Te.current&&=(clearTimeout(Te.current),null),e.cancel?.(),n(t),pe(``),R([]),ye(!1),Ce(!1),ke.hide(),le.current?.focus()},[n,ke,e,Ce]),Le=(0,VL.useCallback)(()=>{u||(a&&L.length===0&&fe.length===0?Ne():L.length>0&&(fe.length>0||a)&&De.current===Ee.current&&Ae())},[u,a,L.length,fe.length,Ne,Ae]),Re=(0,VL.useCallback)(e=>{if(!ke.isOpen)return;let t=e.relatedTarget;if(t){let e=x?.current??ue.current,n=document.getElementById(ke.id);if(e?.contains(t)||n?.contains(t))return}ke.hide()},[ke,x]),ze=(0,VL.useCallback)(e=>{if(S?.(e),!e.defaultPrevented&&!Bn(e.nativeEvent)){if(!ke.isOpen){e.key===`ArrowDown`&&(a||fe.length>0)&&(e.preventDefault(),L.length>0?(ke.show(),he(0)):a&&!BL(fe,c)&&Ne());return}switch(e.key){case`ArrowDown`:e.preventDefault(),L.length>0&&he(e=>e<L.length-1?e+1:0);break;case`ArrowUp`:e.preventDefault(),L.length>0&&he(e=>e>0?e-1:L.length-1);break;case`Enter`:e.preventDefault(),me>=0&&me<L.length&&Ie(L[me]);break;case`Escape`:e.preventDefault(),ke.hide();break;case`Tab`:ke.hide();break;case`Home`:ke.isOpen&&(e.preventDefault(),L.length>0&&he(0));break;case`End`:ke.isOpen&&(e.preventDefault(),L.length>0&&he(L.length-1))}}},[ke,L,me,Ie,a,fe,c,Ne,S]),Be=(0,VL.useCallback)(e=>`${ce}-option-${e}`,[ce]),Ve=xI({isOpen:ke.isOpen,highlightedIndex:me,setHighlightedIndex:he,getOptionId:Be,itemCount:L.length}),He=t==null?null:Ht(t.id,()=>L.indexOf(t));return(0,VL.useEffect)(()=>()=>{Te.current&&clearTimeout(Te.current),Oe.current.cancel?.()},[]),(0,HL.jsxs)(HL.Fragment,{children:[(0,HL.jsx)(`input`,{...te,ref:yr(P,le,ue),id:ie,type:`text`,role:`combobox`,"aria-expanded":ke.isOpen,"aria-controls":ce,"aria-activedescendant":ke.isOpen&&me>=0&&me<L.length?Be(me):void 0,"aria-autocomplete":`list`,"aria-busy":ge||void 0,"aria-describedby":ae,"aria-labelledby":oe,"aria-disabled":d?`true`:void 0,tabIndex:se,value:fe,onChange:Fe,onPointerDown:$t(()=>{we.current=!0,document.addEventListener(`click`,()=>{we.current=!1},{once:!0})},O),onFocus:$t(Le,k),onBlur:$t(Re,A),onKeyDown:ze,placeholder:ne,disabled:u&&!d,readOnly:d||void 0,autoFocus:f,"data-autofocus":f||void 0,autoComplete:`off`,...U(z(GL.input,u&&GL.inputDisabled,y,T),E,D)}),ge&&be==null&&(0,HL.jsx)(`span`,{className:`x3nfvp2 x6s0dn4 xl56j7k x2lah0s x9epnlk`,children:(0,HL.jsx)(qb,{size:`sm`,"aria-label":F(`@astryx.typeahead.loading`)})}),ke.render((0,HL.jsx)(`div`,{id:ce,role:`listbox`,"aria-label":F(`@astryx.typeahead.searchResults`),...U(V(`typeahead-dropdown`),{className:`x9f619 xuyqlj2 x1odjw0f x9epnlk`}),children:L.length===0&&ve?(0,HL.jsx)(`div`,{role:`option`,"aria-disabled":`true`,...U(V(`typeahead-empty-state`),{className:`x1b2ylru x2b8uid x141an7d xv1l7n4`}),children:I}):(()=>{let e=0,t=t=>{let n=e++,i=Ht(t.id,n),a=i===He;return(0,HL.jsxs)(`div`,{id:Be(n),role:`option`,"aria-selected":a,tabIndex:-1,onClick:()=>Ie(t),onMouseEnter:()=>Ve(n),...z(GL.item,KL[w],n===me&&GL.itemHighlighted,a&&GL.itemSelected),children:[(0,HL.jsx)(`span`,{className:`x78zum5 x98rzlu xeuugli xb3r6kr`,children:r?r(t):(0,HL.jsx)(IL,{item:t,xstyle:GL.defaultItem})}),a&&(0,HL.jsx)(ru,{icon:`check`,size:`sm`,color:`primary`})]},i)};return nn(L,{ungroupedFirst:!0}).map(e=>{let n=e.items.map(t);return e.heading==null?n:(0,HL.jsxs)(`div`,{role:`group`,"aria-label":e.heading,children:[(0,HL.jsx)(`div`,{"aria-hidden":`true`,className:`xf314gf x1xye8es xy143xn x141an7d x1ltkj2j xv1l7n4 x87ps6o`,children:e.heading}),n]},`group-${e.heading}`)})})()}),{placement:`below`,alignment:`start`,offset:St[`--spacing-1`],xstyle:[GL.popover,s!=null&&GL.popoverCustomWidth(s)]})]})},qL.displayName=`BaseTypeahead`}));function YL({ref:e,href:t,isDisabled:n,LinkComponent:r,linkStyleProps:i,labelContent:a,icon:o,endContent:s,removeButton:c,onClick:l,onMouseUp:u,...d}){let f=(0,XL.useRef)(null),p=(0,XL.useRef)(null),{onClick:m,onMouseUp:h}=BC({containerRef:f,interactiveRef:p,href:t,disabled:n});return(0,ZL.jsxs)(`span`,{ref:yr(e,f),...d,onClick:n?l:$t(l,m),onMouseUp:n?u:$t(u,h),children:[o,(0,ZL.jsx)(r,{ref:p,href:t,"aria-disabled":n||void 0,...i,children:a}),s,c]})}var XL,ZL,QL=o((()=>{XL=u(f(),1),WC(),W(),xr(),ZL=G(),YL.displayName=`TokenLink`}));function $L({label:e,size:t=`md`,color:n=`default`,icon:r,isDisabled:i=!1,onRemove:a,onClick:o,href:s,description:c,endContent:l,isLabelHidden:u=!1,xstyle:d,className:f,style:p,"data-testid":m,ref:h,...g}){let _=xf(),v=Tu(),y=Fu({href:s,onClick:o,isDisabled:i}),b=o??(y===`button`?()=>{}:null),x=a!=null&&(0,eR.jsx)(`button`,{type:`button`,"aria-label":_(`@astryx.token.remove`,{label:e}),onClick:e=>{e.stopPropagation(),a(e)},disabled:i,...Rn.focusVisible(tR.removeButton),children:(0,eR.jsx)(ru,{icon:`close`,size:`xsm`,color:`inherit`})}),S=(0,eR.jsxs)(eR.Fragment,{children:[r,(0,eR.jsx)(`span`,{...{0:{className:`xb3r6kr xlyipyv xuxw1ft xeuugli`},1:{className:`xlyipyv xeuugli x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr x1hyvwdk xuxw1ft xc342km`}}[!!u<<0],children:e}),l,x]}),C={"data-testid":m,...u?{"aria-label":e}:{},...c==null?{}:{"aria-description":c}};return y===`link`?a==null?(0,eR.jsx)(v,{ref:h,href:s,...U(V(`token`,{color:n,size:t}),Rn.focusVisible(tR.base,nR[t],rR[n],tR.interactive,Lu.backgroundImage,i&&tR.disabled,d),f,p),...g,...i?{"aria-disabled":!0}:{},...C,children:S}):(0,eR.jsx)(YL,{ref:h,href:s,isDisabled:i,LinkComponent:v,icon:r,endContent:l,removeButton:x,linkStyleProps:{className:`xmper1u x16khyan x1heor9g x1a2a7pz xb3r6kr xeuugli`},labelContent:(0,eR.jsx)(`span`,{...{0:{className:`xb3r6kr xlyipyv xuxw1ft xeuugli`},1:{className:`xlyipyv xeuugli x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr x1hyvwdk xuxw1ft xc342km`}}[!!u<<0],children:e}),...U(V(`token`,{color:n,size:t}),Rn.focusWithin(tR.base,nR[t],rR[n],tR.interactive,Lu.backgroundImage,i&&tR.disabled,d),f,p),...g,...C}):b==null?(0,eR.jsx)(`span`,{ref:h,...U(V(`token`,{color:n,size:t}),z(tR.base,nR[t],rR[n],i&&tR.disabled,d),f,p),...g,...C,children:S}):(0,eR.jsxs)(`span`,{ref:h,onClick:i?void 0:e=>{e.target.closest(`button, a`)||b(e)},...U(V(`token`,{color:n,size:t}),Rn.focusWithin(tR.base,nR[t],rR[n],tR.interactive,Lu.backgroundImage,i&&tR.disabled,d),f,p),...g,...C,children:[r,(0,eR.jsx)(`button`,{type:`button`,onClick:b,disabled:i,className:`xmper1u x16khyan x1heor9g x1a2a7pz xb3r6kr xeuugli`,children:(0,eR.jsx)(`span`,{...{0:{className:`xb3r6kr xlyipyv xuxw1ft xeuugli`},1:{className:`xlyipyv xeuugli x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr x1hyvwdk xuxw1ft xc342km`}}[!!u<<0],children:e})}),l,x]})}var eR,tR,nR,rR,iR=o((()=>{B(),uu(),W(),Du(),Iu(),QL(),H(),zn(),Ru(),Df(),eR=G(),tR={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}},nR={sm:{kZKoxP:`xzydfjl`,kGuDYH:`x141an7d`,kg3NbH:`xf314gf`,$$css:!0},md:{kZKoxP:`xrmxcn7`,kg3NbH:`xf314gf`,$$css:!0},lg:{kZKoxP:`x102lyln`,kg3NbH:`xf314gf`,$$css:!0}},rR={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}},$L.displayName=`Token`})),aR=o((()=>{iR()})),oR=o((()=>{jP(),lN(),LN(),UN(),KN(),YN(),B(),W(),H(),rN(),Mx(),Et(),LO(),Nw(),Ei(),Df(),gx(),dx(),iF(),XM(),zn(),uu(),SN(),bf(),lI(),lL(),qa(),PT(),Cf(),un(),du(),En(),hu(),PC(),wr(),Hi(),Pu(),hL(),YF(),SF(),EF(),OF(),sx(),ZE(),Ru(),HE(),Tl(),JP(),SL(),Pt(),uO(),SC(),Ji(),pa(),ga(),QD(),tO(),xr(),jx(),TC(),FE(),xF(),bw(),mI(),OL(),CI(),WI(),qI(),YI(),FL(),JL(),aR(),SP()})),sR,cR,lR,uR,dR,fR,pR,mR,hR,gR,_R,vR,yR,bR,xR,SR,CR,wR,TR,ER,DR,OR,kR,AR,jR,MR,NR,PR,FR,IR,LR,RR,zR,BR,VR,HR,UR,WR,GR,KR,qR,JR,YR,XR=o((()=>{gb(),sR=P_()({id:!0,user_id:!0,slug:!0,type:!0,owner_login:!0,requests:!0,bandwidthBytes:!0,lastSeen:!0,url:!0}),cR=P_()({id:!0,userCount:!0,projectCount:!0,deploymentCount:!0,projects:!0,deployments:!0,siteDomain:!0,tz:!0,topProjects:j_({items:{node:sR}})}),lR={dashboard:{view:cR}},uR=P_()({id:!0,allOk:!0,checks:!0,checkedAt:!0}),dR={health:{view:uR}},fR=P_()({id:!0,lines:!0,lastSeq:!0,terminal:!0,logsComplete:!0}),pR=P_()({id:!0,data:!0}),mR=(e,t)=>({buildLogs:{view:fR,args:{id:e,since:t}}}),hR=(e,t,n)=>({deploymentLogs:{view:pR,args:{id:e,since:t,limit:n}}}),gR=P_()({id:!0,users:!0,search:!0,page:!0,totalPages:!0,tz:!0}),_R=P_()({id:!0,projects:!0,search:!0,page:!0,totalPages:!0,siteDomain:!0,tz:!0}),vR=P_()({id:!0,deployments:!0,search:!0,page:!0,totalPages:!0,tz:!0}),yR=e=>({usersPage:{view:gR,args:{path:e}}}),bR=e=>({projectsPage:{view:_R,args:{path:e}}}),xR=e=>({deploymentsPage:{view:vR,args:{path:e}}}),SR=P_()({limits:!0,plans:!0,id:!0,user:!0,projects:!0,deploysToday:!0,usage:!0,tz:!0}),CR=P_()({id:!0,project:!0,deployments:!0,resources:!0,owner:!0,teamMembers:!0,pendingTeamInvitations:!0,domains:!0,builds:!0,zeroTrust:!0,cfAccountId:!0,deployUrl:!0,tz:!0}),wR=P_()({id:!0,deployment:!0,project:!0,manifest:!0,canCancel:!0,tz:!0}),TR=P_()({id:!0,build:!0,tz:!0}),ER=e=>({userDetail:{view:SR,args:{path:e}}}),DR=e=>({projectDetail:{view:CR,args:{path:e}}}),OR=e=>({deploymentDetail:{view:wR,args:{path:e}}}),kR=e=>({buildDetail:{view:TR,args:{path:e}}}),AR=P_()({id:!0,allTime:!0,last30Days:!0,tz:!0}),jR=P_()({id:!0,enabled:!0,entries:!0,directEntries:!0,admission:!0,connections:!0,initialized:!0,revision:!0,methods:!0,protection:!0,invitations:!0,page:!0,totalPages:!0,emailEnabled:!0,connectCommand:!0,inviteUrl:!0,result:!0,tz:!0}),MR=P_()({id:!0,invitations:!0,page:!0,totalPages:!0,tz:!0}),NR=e=>({cliVersions:{view:AR,args:{path:e}}}),PR=e=>({signupControl:{view:jR,args:{path:e}}}),FR=e=>({invitations:{view:MR,args:{path:e}}}),IR=P_()({id:!0,data:!0,tested:!0}),LR=P_()({id:!0,kind:!0,connectionId:!0,callbackUrl:!0}),RR=P_()({id:!0,configuration:!0,label:!0,revision:!0,callbackUrl:!0}),zR=e=>({authSettings:{view:IR,args:{path:e}}}),BR=e=>({authNew:{view:LR,args:{path:e}}}),VR=e=>({authEdit:{view:RR,args:{path:e}}}),HR=P_()({id:!0,policy:!0,management:!0,senderDomain:!0}),UR=P_()({id:!0,projectId:!0,project:!0,month:!0,attempts:!0,received:!0,monthlyLimit:!0,burstLimit:!0,isSuspended:!0,domains:!0,destinations:!0,senderDomain:!0,tz:!0}),WR=e=>({emailSettings:{view:HR,args:{path:e}}}),GR=e=>({emailProject:{view:UR,args:{path:e}}}),KR=P_()({id:!0,configured:!0,enabled:!0,status:!0,accountId:!0,teamDomain:!0,identityProviderIds:!0,policyIds:!0,protectNewProjects:!0,operation:!0,lastError:!0,checked:!0,live:!0,projects:!0}),qR=e=>({zeroTrust:{view:KR,args:{path:e}}}),JR=P_()({id:!0,catalog:!0,accounts:!0,selectedPlanId:!0}),YR=e=>({plans:{view:JR,args:{path:e}}})}));function ZR({text:e,label:t=`Copy`}){let[n,r]=(0,QR.useState)(!1);return(0,QR.useEffect)(()=>{if(!n)return;let e=setTimeout(()=>r(!1),1500);return()=>clearTimeout(e)},[n]),(0,$R.jsx)(Y,{type:`button`,size:`sm`,label:n?`Copied!`:t,onClick:()=>{navigator.clipboard.writeText(e).then(()=>r(!0))}})}var QR,$R,ez=o((()=>{Mx(),QR=u(f(),1),$R=G()}));function tz(e,t){return e.status===`failed`?`failed`:e.status===`live`?e.id===t?`live`:e.retained?`retained`:`evicted`:e.status}function nz(e){switch(e){case`live`:return`color: #16a34a; font-weight: 600`;case`retained`:return`color: #16a34a`;case`evicted`:return`color: #888`;case`failed`:case`canceled`:return`color: #dc2626`;case`canceling`:return`color: #ca8a04`;default:return}}function rz({deployments:e,activeDeploymentId:t,showProject:n,tz:r}){if(e.length===0)return q(`p`,{children:q(`em`,{children:`No deployments found.`})});let i=[{key:`id`,header:`ID`,width:VM(1,{minWidth:115}),renderCell:e=>q(`a`,{className:`void-admin-deployment-link`,href:`/admin/deployments/${e.id}`,title:e.id,children:e.id})}];return n&&i.push({key:`project_slug`,header:`Project`,width:VM(1,{minWidth:115}),renderCell:e=>e.project_slug?q(`a`,{className:`void-admin-deployment-link`,href:`/admin/projects/${e.project_id}`,title:e.project_slug,children:e.project_slug}):`-`}),i.push({key:`status`,header:`Status`,width:HM(88),renderCell:e=>{let n=tz(e,t??e.active_deployment_id);return q(`span`,{style:nz(n),children:n})}},{key:`source`,header:`Source`,width:HM(84),renderCell:e=>e.source??`-`},{key:`cli_version`,header:`CLI`,width:HM(64),renderCell:e=>e.cli_version??`-`},{key:`commit`,header:`Commit`,width:HM(90),renderCell:e=>e.commit?.slice(0,7)??`-`},{key:`error_message`,header:`Error`,width:VM(1.8,{minWidth:180}),renderCell:e=>e.error_message?J(`div`,{className:`void-admin-deployment-error`,children:[q(Na,{className:`void-admin-deployment-error-message`,maxLines:1,children:e.error_message}),q(ZR,{text:e.error_message})]}):`-`},{key:`created_at`,header:`Created`,width:HM(200),renderCell:e=>Fx(e.created_at,r)}),q(AP,{className:`void-admin-deployments-table`,data:[...e],columns:i,textOverflow:`truncate`,hasHover:!0})}var iz=o((()=>{oR(),qa(),ez(),Vx(),kb()}));function az({url:e}){return q(kf,{as:`a`,className:`void-admin-url`,href:e,isExternalLink:!0,hasUnderline:!0,title:e,children:e.replace(/^https:\/\//,``)})}var oz=o((()=>{Rf(),kb()}));function sz({projects:e,siteDomain:t,tz:n}){return J(Ob.Fragment,{children:[J(AP,{className:`void-admin-projects-table`,hasHover:!0,children:[q(WN,{children:J(Z,{children:[q($,{children:`Slug`}),q($,{children:`URL`}),q($,{children:`Owner`}),q($,{children:`Type`}),q($,{children:`Created`}),q($,{children:`Last Deploy`})]})}),q(qN,{children:e.map(e=>J(Z,{children:[q(Q,{children:q(`a`,{href:`/admin/projects/${e.id}`,children:e.slug})}),q(Q,{children:q(az,{url:e.url??`https://${e.slug}.${t}`})}),q(Q,{children:e.owner_login?q(`a`,{href:`/admin/users/${e.user_id}`,children:e.owner_login}):`-`}),q(Q,{children:e.type}),q(Q,{children:Fx(e.created_at,n)}),q(Q,{children:e.last_deploy?J(Ob.Fragment,{children:[q(`span`,{style:`display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:10px;vertical-align:middle;background:${e.last_deploy_status===`failed`?`#dc2626`:`#16a34a`}`}),e.last_deploy_id?q(`a`,{href:`/admin/deployments/${e.last_deploy_id}`,children:Fx(e.last_deploy,n)}):Fx(e.last_deploy,n)]}):`-`})]},e.id))})]}),e.length===0&&q(`p`,{children:q(`em`,{children:`No projects found.`})})]})}var cz=o((()=>{oR(),Vx(),oz(),kb()}));function lz({checkNames:e}){let t=nb(),[n,r]=(0,uz.useState)(null),[i,a]=(0,uz.useState)(`loading`),o=rb(uR,n);(0,uz.useEffect)(()=>{let e=!0,n=t.retain(dR),i=async n=>{try{let{health:i}=await t.request(dR,{mode:n});if(!i)throw Error(`Health data is unavailable.`);e&&(r(i),a(`ready`))}catch{e&&a(`unavailable`)}};i(`stale-while-revalidate`);let o=setInterval(()=>void i(`network-only`),3e4);return()=>{e=!1,clearInterval(o),n.dispose()}},[t]);let s=new Map(o?.checks.map(e=>[e.name,e])),c=i===`ready`?!o||e.some(e=>!s.has(e))?`unavailable`:o.allOk?`healthy`:`error`:i;return(0,dz.jsx)(kM,{id:`health-status`,title:`System Status`,state:c,statusLabel:c===`healthy`?`All services healthy`:c===`error`?`System checks failed`:c===`loading`?`Checking system status`:`System status unavailable`,headerAccessory:(0,dz.jsx)(OM,{checkedAt:o?.checkedAt,unavailable:i===`unavailable`}),children:(0,dz.jsx)(`ul`,{id:`health-checks`,className:`void-admin-health-checks`,"aria-label":`Service health`,children:e.map(e=>{let t=fz[e]??e,n=i===`ready`?s.get(e):void 0,r=i===`loading`?`loading`:n?n.ok?`healthy`:`error`:`unavailable`,a=i===`ready`?n?n.ok?``:n.error||`Health check failed.`:`Unavailable`:``,o=r===`loading`?`Pending`:r===`healthy`?`Healthy`:a||`Unavailable`,c=n?.ok&&n.latencyMs>0?` (${n.latencyMs}ms)`:``;return(0,dz.jsxs)(`li`,{className:`void-admin-health-check`,"data-state":r,"aria-label":`${t}: ${o}`,title:`${t}: ${o}${c}`,children:[(0,dz.jsx)(`span`,{className:`void-admin-health-indicator`,"aria-hidden":`true`,children:r===`healthy`?(0,dz.jsx)(Wp,{size:16}):r===`error`?(0,dz.jsx)(qh,{size:16}):r===`unavailable`?(0,dz.jsx)(dh,{size:16}):null}),(0,dz.jsx)(Da,{content:a,isEnabled:!!a,hasHoverIndication:!1,children:(0,dz.jsxs)(`span`,{className:`void-admin-health-service`,tabIndex:a?0:void 0,children:[(0,dz.jsx)(`span`,{className:`void-admin-health-label`,children:t}),a&&(0,dz.jsx)(`span`,{className:`void-admin-health-detail`,children:a})]})})]},e)})})})}var uz,dz,fz,pz=o((()=>{du(),Yh(),uz=u(f(),1),gb(),XR(),MM(),dz=G(),fz={api:`API`,proxy:`Proxy`,dashboard:`Dashboard`,dispatch:`Dispatch`,db:`Database`}})),mz=c({DashboardPage:()=>yz});function hz(e){if(e<1024)return`${e} B`;let t=[`KB`,`MB`,`GB`,`TB`],n=e,r=-1;for(;n>=1024&&r<t.length-1;)n/=1024,r++;return`${n.toFixed(n>=10?0:1)} ${t[r]}`}function gz({topProjects:e,siteDomain:t,tz:n}){let[r]=ib({items:{node:sR}},e);return q(TM,{title:`Top Projects by Traffic (last hour)`,children:r.length>0?J(AP,{className:`void-admin-top-projects-table`,hasHover:!0,children:[q(WN,{children:J(Z,{children:[q($,{children:`#`}),q($,{children:`Project`}),q($,{children:`Owner`}),q($,{children:`Requests`}),q($,{children:`Bandwidth`}),q($,{children:`Last Seen`})]})}),q(qN,{children:r.map(({node:e},r)=>q(_z,{projectRef:e,index:r,siteDomain:t,tz:n},e.id))})]}):q(Na,{type:`supporting`,children:`No recent project traffic in the last hour.`})})}function _z({projectRef:e,index:t,siteDomain:n,tz:r}){let i=rb(sR,e);return J(Z,{children:[q(Q,{children:t+1}),q(Q,{children:J(`div`,{className:`void-admin-top-project`,children:[J(`div`,{className:`void-admin-top-project-heading`,children:[q(`a`,{className:`void-admin-top-project-name`,href:`/admin/projects/${i.id}`,title:i.slug,children:i.slug}),q(`span`,{className:`void-admin-top-project-type`,children:i.type})]}),q(`div`,{className:`void-admin-top-project-meta`,children:q(az,{url:i.url??`https://${i.slug}.${n}`})})]})}),q(Q,{children:i.owner_login?q(`a`,{href:`/admin/users/${i.user_id}`,children:i.owner_login}):`-`}),q(Q,{children:Lx(i.requests)}),q(Q,{children:hz(i.bandwidthBytes)}),q(Q,{children:Fx(i.lastSeen,r)})]})}function vz({topProjects:e,siteDomain:t,tz:n}){let r=(0,bz.useSyncExternalStore)(Sz,Cz,wz),i=q(TM,{title:`Top Projects by Traffic (last hour)`,children:J(`div`,{className:`void-admin-card-loading`,children:[q(Wn,{width:`100%`,height:48}),q(Wn,{width:`100%`,height:48,index:1})]})});return r?q(xz,{fallback:i,children:q(gz,{topProjects:e,siteDomain:t,tz:n})}):i}function yz({platformName:e,username:t,healthCheckNames:n}){let{dashboard:r}=ab(lR,{mode:`stale-while-revalidate`}),i=rb(cR,r);if(!i)throw Error(`Dashboard data is unavailable.`);return J($j,{platformName:e,title:`Dashboard`,username:t,children:[q(Ba,{level:1,children:`Dashboard`}),q(lz,{checkNames:n}),J(`div`,{className:`void-admin-metrics`,children:[q(TM,{title:`Users`,href:`/admin/users`,children:q(Na,{type:`display-3`,display:`block`,hasTabularNumbers:!0,children:Lx(i.userCount)})}),q(TM,{title:`Projects`,href:`/admin/projects`,children:q(Na,{type:`display-3`,display:`block`,hasTabularNumbers:!0,children:Lx(i.projectCount)})}),q(TM,{title:`Deployments`,href:`/admin/deployments`,children:q(Na,{type:`display-3`,display:`block`,hasTabularNumbers:!0,children:Lx(i.deploymentCount)})})]}),J(`div`,{className:`void-admin-dashboard-sections`,children:[q(vz,{topProjects:i.topProjects,siteDomain:i.siteDomain,tz:i.tz}),q(TM,{title:`Latest Projects`,children:q(sz,{projects:i.projects,siteDomain:i.siteDomain,tz:i.tz})}),q(TM,{title:`Latest Deployments`,children:q(rz,{deployments:i.deployments,showProject:!0,tz:i.tz})})]})]})}var bz,xz,Sz,Cz,wz,Tz=o((()=>{$n(),oR(),qa(),bz=u(f(),1),gb(),XR(),DM(),iz(),Vx(),nM(),cz(),oz(),pz(),kb(),xz=bz.Suspense,Sz=()=>()=>{},Cz=()=>!0,wz=()=>!1})),Ez=c({AdminLoginPage:()=>Dz});function Dz({providers:e,platformName:t}){return J(Ab,{platformName:t,children:[J(`div`,{className:`void-auth-lead`,children:[J(`h1`,{id:`void-auth-title`,children:[`Sign in to administer `,t]}),q(`p`,{children:`Sign in with your administrator account.`})]}),q(`div`,{className:`void-auth-actions`,children:e.map(({id:e,label:t},n)=>J(`a`,{className:n===0?`void-auth-button void-auth-button-primary`:`void-auth-button`,href:`/admin/login/${encodeURIComponent(e)}`,children:[`Sign in with `,t]},e))}),e.length===0&&q(`p`,{children:`No administrator login methods are available. Resume setup from the installing CLI.`})]})}var Oz=o((()=>{jb(),kb()})),kz=c({LoginErrorPage:()=>Az});function Az({message:e,platformName:t}){return J(Ab,{platformName:t,children:[q(`div`,{className:`void-auth-status void-auth-status-error`,"aria-label":`Error`,children:`!`}),J(`div`,{className:`void-auth-lead`,children:[q(`h1`,{id:`void-auth-title`,children:`Login failed`}),q(`p`,{children:e})]}),q(`a`,{className:`void-auth-button void-auth-button-primary`,href:`/admin/logout`,children:`Start a new sign-in`})]})}var jz=o((()=>{jb(),kb()})),Mz,Nz,Pz,Fz=o((()=>{Mz=1073741824,Nz={free:{requestsPerMonth:3e6,cpuMsPerRequest:10,maxCpuMsPerRequest:10,subRequestsPerInvocation:50,deploysPerDay:100,d1StorageBytes:1*Mz,r2StorageBytes:5*Mz,kvStorageBytes:1*Mz,aiNeuronsPerMonth:1e5,retainedDeployments:1,sandboxRuntimeSecondsPerMonth:1,sandboxMaxConcurrentInstances:1,concurrentBuilds:1,buildTimeoutMinutes:10},solo:{requestsPerMonth:1e7,cpuMsPerRequest:30,maxCpuMsPerRequest:3e4,subRequestsPerInvocation:50,deploysPerDay:500,d1StorageBytes:5*Mz,r2StorageBytes:25*Mz,kvStorageBytes:5*Mz,aiNeuronsPerMonth:3e5,retainedDeployments:5,sandboxRuntimeSecondsPerMonth:108e3,sandboxMaxConcurrentInstances:2,concurrentBuilds:2,buildTimeoutMinutes:15},pro:{requestsPerMonth:1e8,cpuMsPerRequest:50,maxCpuMsPerRequest:3e4,subRequestsPerInvocation:1e3,deploysPerDay:3e3,d1StorageBytes:10*Mz,r2StorageBytes:100*Mz,kvStorageBytes:25*Mz,aiNeuronsPerMonth:5e5,retainedDeployments:25,sandboxRuntimeSecondsPerMonth:72e4,sandboxMaxConcurrentInstances:10,concurrentBuilds:3,buildTimeoutMinutes:15},sponsored:{requestsPerMonth:0,cpuMsPerRequest:50,maxCpuMsPerRequest:3e4,subRequestsPerInvocation:1e3,deploysPerDay:0,d1StorageBytes:0,r2StorageBytes:0,kvStorageBytes:0,aiNeuronsPerMonth:0,retainedDeployments:0,sandboxRuntimeSecondsPerMonth:0,sandboxMaxConcurrentInstances:0,concurrentBuilds:6,buildTimeoutMinutes:20},custom:{requestsPerMonth:0,cpuMsPerRequest:0,maxCpuMsPerRequest:0,subRequestsPerInvocation:0,deploysPerDay:0,d1StorageBytes:0,r2StorageBytes:0,kvStorageBytes:0,aiNeuronsPerMonth:0,retainedDeployments:0,sandboxRuntimeSecondsPerMonth:0,sandboxMaxConcurrentInstances:0,concurrentBuilds:0,buildTimeoutMinutes:0}},Pz=[`requestsPerMonth`,`cpuMsPerRequest`,`maxCpuMsPerRequest`,`subRequestsPerInvocation`,`deploysPerDay`,`aiNeuronsPerMonth`,`retainedDeployments`,`sandboxRuntimeSecondsPerMonth`,`sandboxMaxConcurrentInstances`,`concurrentBuilds`,`buildTimeoutMinutes`]}));function Iz({label:e,isLabelHidden:t=!1,description:n,isOptional:r=!1,isRequired:i=!1,onChange:a,changeAction:o,isLoading:s=!1,value:c,placeholder:l,rows:u=3,isDisabled:d=!1,isReadOnly:f=!1,disabledMessage:p,status:m,statusVariant:h=`attached`,labelTooltip:g,startIcon:_,hasSpellCheck:v=!0,onPaste:y,maxLength:b,hasAutoFocus:x=!1,size:S,htmlName:C,onFocus:w,onBlur:T,width:E,xstyle:D,className:O,style:k,ref:A,...j}){let M=fx(S,`md`),N=xf(),ee=KP({isRequired:i,isOptional:r}),P=DT(),te=(0,Lz.useId)(),F=(0,Lz.useId)(),ne=(0,Lz.useId)(),I=(0,Lz.useId)(),re=(0,Lz.useRef)(null),ie=(0,Lz.useRef)(null),ae=(0,Lz.useRef)(null),[,oe]=(0,Lz.useTransition)(),[se,ce]=(0,Lz.useOptimistic)(c),le=s||se!==c,ue=d&&!!p,de=va({placement:`above`,focusTrigger:`always`,isEnabled:ue}),{statusIcon:fe,describedBy:pe}=IE({status:m,statusVariant:h}),L=[n?F:null,h!==`tooltip`&&m?.message?ne:null,pe,b==null?null:I,ue?de.describedBy:null].filter(Boolean).join(` `)||void 0,R=(0,Lz.useCallback)(e=>{if(b==null)return;let t=e>b?`over`:e>=b*zz?`near`:`under`;t!==ae.current&&(ae.current=t,t===`over`?P(N(`@astryx.textArea.charactersOverLimit`,{count:e-b}),`assertive`):t===`near`&&P(N(`@astryx.textArea.charactersRemaining`,{count:b-e})))},[P,N,b]),me=e=>{if(d||f)return;let t=e.target.value;b!=null&&R(Gt(t)),a?.(t,e),o&&!e.defaultPrevented&&oe(async()=>{ce(t),await o(t,e)})},he=(0,Lz.useMemo)(()=>b==null?0:Gt(se),[b,se]),{onClick:ge,onMouseUp:_e}=jE({containerRef:ie,inputRef:re,disabled:d||le});return(0,Rz.jsxs)(aF,{label:e,isLabelHidden:t,description:n,inputID:te,descriptionID:n?F:void 0,isOptional:r,isRequired:i,isDisabled:d,status:m?{type:m.type,message:m.message,messageID:m.message?ne:void 0}:void 0,statusVariant:h,labelTooltip:g,width:E,children:[(0,Rz.jsxs)(`div`,{ref:e=>{ie.current=e,de.ref(e)},onClick:ge,onMouseUp:_e,...U(V(`text-area`,{size:M,status:m?.type??null,disabled:d?`disabled`:null,readonly:f?`readonly`:null},{legacyNames:[`textarea`]}),z(dF.base,Bz.wrapper,d&&dF.disabled,m&&fF[m.type],m&&!d&&pF[m.type],m&&mF[m.type],D),O,k),children:[_&&(0,Rz.jsx)(`span`,{className:`x10l6tqk xctzyg x1kiyvbf x47corl x78zum5`,children:au(_,{size:`sm`,color:`secondary`})}),(0,Rz.jsx)(`textarea`,{...j,ref:yr(A,re),id:te,name:d?void 0:C,value:se,onChange:me,onPaste:y,onFocus:w,onBlur:T,placeholder:l,rows:u,disabled:d&&!ue,"aria-disabled":ue?`true`:void 0,readOnly:f||ue||void 0,spellCheck:v,autoFocus:x,"data-autofocus":x||void 0,"aria-describedby":L,"aria-required":ee?`true`:void 0,"aria-invalid":m?.type===`error`||b!=null&&he>b?`true`:void 0,"aria-busy":le||void 0,...U(V(`text-area-control`),z(Bz.textarea,Vz[M],d&&Bz.textareaDisabled,!!_&&Bz.textareaWithStartIcon,(le||fe!=null)&&Bz.textareaWithStatus,le&&fe!=null&&Bz.textareaWithBusyStatus,b!=null&&Bz.textareaWithCounter))}),(le||fe)&&(0,Rz.jsxs)(`span`,{className:`x10l6tqk xctzyg x13oyzgk x47corl x78zum5 x6s0dn4 x1txdalj`,children:[le&&(0,Rz.jsx)(qb,{size:`sm`}),fe]}),b!=null&&(0,Rz.jsxs)(`div`,{id:I,...U(V(`text-area-counter`),{0:{className:`x10l6tqk x112dmjn x13oyzgk x47corl x78zum5 x6s0dn4 xzye2dw x9ynric x141an7d x1ltkj2j xv1l7n4`},1:{className:`x10l6tqk x112dmjn x13oyzgk x47corl x78zum5 x6s0dn4 xzye2dw x9ynric x141an7d x1ltkj2j xjt36v0`}}[(he>b)<<0]),children:[he>b&&(0,Rz.jsx)(ru,{icon:`warning`,size:`sm`}),he,`/`,b]})]}),ue&&de.renderTooltip(p)]})}var Lz,Rz,zz,Bz,Vz,Hz=o((()=>{Lz=u(f(),1),B(),SF(),uu(),sx(),du(),W(),FE(),HE(),PT(),JP(),gx(),H(),Jt(),Df(),xr(),Rz=G(),zz=.8,Bz={wrapper:{kY2c9j:`x1vjfegm`,k1xSpc:`x1lliihq`,k8WAf4:`xt970qd`,kg3NbH:`xnjsko4`,"--_textarea-inline-padding":`x1kdpo6e`,$$css:!0},textarea:{k1xSpc:`x1lliihq`,kzqmXN:`xh8yej3`,kB7OPa:`x9f619`,k7Eaqz:`xeuugli`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,k8WAf4:`xu0wf1k`,kg3NbH:`x1w6f3ag`,kMv6JI:`x9ynric`,kGuDYH:`xjm74w1 xf9zqsd`,kLWn49:`xw6l6zx`,kMwMTN:`x1tgivj0`,kWkggS:`xjbqb8w`,kI3sdo:`x1a2a7pz`,k8Qsv1:`xeyghm5`,kHenm0:`x288g5`,$$css:!0},textareaDisabled:{kkrTdU:`xt0e3qv`,$$css:!0},textareaWithStartIcon:{kZCmMZ:`x1b6te9z`,$$css:!0},textareaWithStatus:{kwRFfy:`xp2dy4z`,$$css:!0},textareaWithBusyStatus:{kwRFfy:`x1g2apga`,$$css:!0},textareaWithCounter:{kGO01o:`xekm6fs`,$$css:!0}},Vz={sm:{$$css:!0},md:{$$css:!0},lg:{k8WAf4:`xce4md1`,$$css:!0}},Iz.displayName=`TextArea`})),Uz=o((()=>{Hz()}));function Wz({label:e,name:t,initialValue:n=``,type:r=`text`,required:i=!1,maxLength:a,placeholder:o,description:s,isReadOnly:c,autoComplete:l,width:u}){let[d,f]=(0,Yz.useState)(n);return(0,Yz.useEffect)(()=>f(n),[n]),(0,Xz.jsx)(uL,{label:e,htmlName:t,value:d,onChange:f,type:r,isRequired:i,required:i,maxLength:a,placeholder:o,description:s,isReadOnly:c,autoComplete:l,width:u})}function Gz({label:e,name:t,initialValue:n=``,required:r=!1,placeholder:i,width:a}){let[o,s]=(0,Yz.useState)(n),c=(0,Yz.useRef)(null);(0,Yz.useEffect)(()=>s(n),[n]);let l=(0,Yz.useCallback)(()=>{let e=c.current;e&&(e.style.height=`auto`,e.value&&(e.style.height=`${e.scrollHeight}px`))},[]);return(0,Yz.useLayoutEffect)(l,[o,l]),(0,Yz.useLayoutEffect)(()=>{let e=c.current;if(!e)return;let t=e.clientWidth,n=new ResizeObserver(()=>{e.clientWidth!==t&&(t=e.clientWidth,l())});return n.observe(e),()=>n.disconnect()},[l]),(0,Xz.jsx)(Iz,{ref:c,className:`void-admin-autogrow-textarea`,label:e,htmlName:t,value:o,onChange:s,isRequired:r,required:r,placeholder:i,rows:1,width:a})}function Kz({label:e,name:t,options:n,initialValue:r,width:i,hasSearch:a=!1}){let[o,s]=(0,Yz.useState)(r);return(0,Yz.useEffect)(()=>s(r),[r]),(0,Xz.jsx)($I,{label:e,htmlName:t,options:n,value:o,onChange:s,width:i,hasSearch:a})}function qz({label:e,name:t,submitValue:n,initialValue:r=!1}){let[i,a]=(0,Yz.useState)(r);return(0,Yz.useEffect)(()=>a(r),[r]),(0,Xz.jsxs)(Xz.Fragment,{children:[(0,Xz.jsx)(ZP,{label:e,value:i,onChange:a}),i&&(0,Xz.jsx)(`input`,{type:`hidden`,name:t,value:n})]})}function Jz({label:e,name:t,width:n,initialValue:r=null,min:i=1,max:a,required:o=!1}){let[s,c]=(0,Yz.useState)(r);return(0,Yz.useEffect)(()=>c(r),[r]),(0,Xz.jsx)($F,{label:e,htmlName:t,value:s,onChange:c,min:i,max:a,isRequired:o,required:o,isIntegerOnly:!0,hasClear:!0,width:n})}var Yz,Xz,Zz=o((()=>{iF(),lI(),lL(),Uz(),hL(),Yz=u(f(),1),Xz=G()})),Qz=c({PlanEditPage:()=>rB,PlanPreviewPage:()=>aB,PlanResultPage:()=>oB,PlansPage:()=>nB});function $z(e,t){return e===0?t===`buildTimeoutMinutes`?`60 minutes (platform maximum)`:`Unlimited`:e.toLocaleString(`en-US`)}function eB(e){let{plans:t}=ab(YR(e),{mode:`stale-while-revalidate`}),n=rb(JR,t);if(!n)throw Error(`Plans are unavailable.`);return n}function tB({action:e,id:t,revision:n,label:r,archived:i}){return J(`form`,{method:`post`,action:`${cB}/preview`,children:[q(`input`,{type:`hidden`,name:`action`,value:e}),q(`input`,{type:`hidden`,name:`id`,value:t}),q(`input`,{type:`hidden`,name:`revision`,value:n}),i!==void 0&&q(`input`,{type:`hidden`,name:`archived`,value:String(i)}),q(Y,{type:`submit`,label:r,variant:`secondary`})]})}function nB({path:e,platformName:t,username:n}){let{catalog:r,accounts:i}=eB(e),a=r.reconciliation&&!r.reconciliation.complete;return J($j,{platformName:t,username:n,title:`Plans`,children:[J(`div`,{className:`void-admin-plan-heading`,children:[q(`h1`,{children:`Plans`}),q(Y,{href:`${cB}/new`,label:`Add plan`})]}),J(`p`,{children:[`Default for new accounts:`,` `,q(`strong`,{children:r.plans.find(e=>e.id===r.defaultPlanId)?.name}),`. Changes to this default leave existing accounts on their current plans.`]}),a&&J(`section`,{"aria-label":`Pending plan update`,children:[q(`h2`,{children:`Account updates pending`}),q(`p`,{children:`Finish this update before changing plans again. Recorded usage and billing periods are preserved.`}),r.reconciliation?.error&&q(`p`,{role:`alert`,children:r.reconciliation.error.message}),J(`form`,{method:`post`,action:`${cB}/resume`,children:[q(`input`,{type:`hidden`,name:`revision`,value:r.revision}),q(Y,{type:`submit`,label:`Continue account updates`})]})]}),J(AP,{children:[q(WN,{children:J(Z,{children:[q($,{children:`Plan`}),q($,{children:`Status`}),q($,{children:`Accounts`}),q($,{children:`Monthly requests`}),q($,{children:`Build size`}),q($,{children:`Actions`})]})}),q(qN,{children:r.plans.map(e=>J(Z,{children:[J(Q,{children:[q(`a`,{href:`${cB}/${e.id}/edit`,children:e.name}),q(`div`,{children:q(`code`,{children:e.id})})]}),q(Q,{children:e.archived?`Archived`:e.id===r.defaultPlanId?`Default`:`Active`}),q(Q,{children:i.find(t=>t.planId===e.id)?.count??0}),q(Q,{children:$z(e.limits.requestsPerMonth)}),q(Q,{children:e.buildInstanceType===`standard-3`?`Standard`:`Large`}),q(Q,{children:q(Y,{href:`${cB}/${e.id}/edit`,label:`Edit`,variant:`secondary`,size:`sm`})})]},e.id))})]})]})}function rB({path:e,platformName:t,username:n}){let{catalog:r,accounts:i,selectedPlanId:a}=eB(e),o=r.plans.find(e=>e.id===a),s=r.reconciliation&&!r.reconciliation.complete,c=i.find(e=>e.planId===o?.id)?.count??0;return J($j,{platformName:t,username:n,title:o?`Edit ${o.name}`:`Add plan`,children:[q(`h1`,{children:o?`Edit ${o.name}`:`Add plan`}),s?J(`p`,{children:[`Finish the pending `,q(`a`,{href:cB,children:`account update`}),` before changing plans.`]}):J(Ob.Fragment,{children:[J(`form`,{method:`post`,action:`${cB}/preview`,className:`void-admin-plan-form`,children:[q(`input`,{type:`hidden`,name:`action`,value:o?`set`:`add`}),q(`input`,{type:`hidden`,name:`revision`,value:r.revision}),o?J(Ob.Fragment,{children:[q(`input`,{type:`hidden`,name:`id`,value:o.id}),J(`p`,{children:[`Plan ID: `,q(`code`,{children:o.id}),` · `,c,` accounts`,o.archived?` · Archived`:``]})]}):q(Wz,{label:`Plan ID`,name:`id`,required:!0,maxLength:64,description:`A stable ID using lowercase letters, digits, and hyphens.`}),q(Wz,{label:`Display name`,name:`name`,initialValue:o?.name??``,required:!0,maxLength:80}),o?J(Ob.Fragment,{children:[q(`p`,{children:`0 means unlimited by the plan. Build timeouts always have a maximum of 60 minutes.`}),lB.map(e=>J(`section`,{children:[q(`h2`,{children:e.title}),q(`div`,{className:`void-admin-plan-fields`,children:e.keys.map(e=>q(Jz,{name:e,label:uB[e],initialValue:o.limits[e],min:0,max:e===`buildTimeoutMinutes`?60:void 0,required:!0},`${o.id}:${e}`))})]},e.title)),q(`p`,{children:`The default CPU limit must fit the maximum app CPU limit. An unlimited default requires an unlimited maximum.`}),q(`h2`,{children:`Build size and permissions`}),q(Kz,{label:`Build size`,name:`buildInstanceType`,initialValue:o.buildInstanceType,options:[{value:`standard-3`,label:`Standard · 2 vCPU, 8 GiB`},{value:`standard-4`,label:`Large · 4 vCPU, 12 GiB`}]}),q(qz,{label:`Allow short project slugs (five characters or fewer)`,name:`allowShortSlugs`,submitValue:`true`,initialValue:o.allowShortSlugs}),q(`p`,{children:`Existing URLs remain available. Storage figures are informational; static deployment retention is unchanged.`})]}):q(Kz,{label:`Copy limits, build size, and permissions from`,name:`copyFrom`,initialValue:r.defaultPlanId,options:r.plans.map(e=>({value:e.id,label:`${e.name} (${e.id})`}))}),q(Y,{type:`submit`,label:`Review changes`})]}),o&&J(`section`,{children:[q(`h2`,{children:`Plan management`}),J(`div`,{className:`void-admin-plan-actions`,children:[!o.archived&&o.id!==r.defaultPlanId&&q(tB,{action:`default`,id:o.id,revision:r.revision,label:`Make signup default`}),o.id!==r.defaultPlanId&&q(tB,{action:`archive`,id:o.id,revision:r.revision,archived:!o.archived,label:o.archived?`Restore assignments`:`Archive plan`}),Object.hasOwn(Nz,o.id)&&q(tB,{action:`reset`,id:o.id,revision:r.revision,label:`Reset original limits`})]}),o.id===r.defaultPlanId&&q(`p`,{children:`Choose another signup default before archiving this plan.`}),q(`h2`,{children:`Remove plan`}),q(`p`,{children:`Accounts keep their recorded usage when moved to a replacement plan.`}),J(`form`,{method:`post`,action:`${cB}/preview`,className:`void-admin-plan-form`,children:[q(`input`,{type:`hidden`,name:`action`,value:`remove`}),q(`input`,{type:`hidden`,name:`id`,value:o.id}),q(`input`,{type:`hidden`,name:`revision`,value:r.revision}),q(Kz,{label:`Replacement plan`,name:`replacementPlanId`,initialValue:``,options:[...!c&&o.id!==r.defaultPlanId?[{value:``,label:`No replacement needed`}]:[{value:``,label:`Choose a replacement`}],...r.plans.filter(e=>e.id!==o.id&&!e.archived).map(e=>({value:e.id,label:`${e.name} (${e.id})`}))]}),q(Y,{type:`submit`,label:`Review removal`,variant:`destructive`})]})]})]})]})}function iB(e,t){return t?[{label:`Display name`,before:e?.name??`—`,after:t.name},{label:`Assignments`,before:e?.archived?`Archived`:e?`Active`:`—`,after:t.archived?`Archived`:`Active`},{label:`Build size`,before:e?.buildInstanceType??`—`,after:t.buildInstanceType},{label:`Short project slugs`,before:e?e.allowShortSlugs?`Allowed`:`Not allowed`:`—`,after:t.allowShortSlugs?`Allowed`:`Not allowed`},...Pz.map(n=>({label:uB[n],before:e?$z(e.limits[n],n):`—`,after:$z(t.limits[n],n)}))].filter(e=>e.before!==e.after):[{label:`Plan`,before:e.name,after:`Removed`}]}function aB({preview:e,platformName:t,username:n}){let{before:r,after:i,target:a}=e,o=iB(r.plans.find(e=>e.id===a),i.plans.find(e=>e.id===a));if(r.defaultPlanId!==i.defaultPlanId&&o.push({label:`Signup default`,before:r.defaultPlanId,after:i.defaultPlanId}),e.action===`remove`&&e.body.replacementPlanId){o.push({label:`Move accounts to`,before:a,after:String(e.body.replacementPlanId)});let t=i.plans.find(t=>t.id===e.body.replacementPlanId);t&&o.push(...iB(r.plans.find(e=>e.id===a),t).filter(e=>e.label!==`Display name`))}return J($j,{platformName:t,username:n,title:`Review plan change`,children:[q(`h1`,{children:`Review plan change`}),J(`p`,{children:[q(`strong`,{children:e.affectedAccounts}),` existing accounts affected.`]}),J(AP,{children:[q(WN,{children:J(Z,{children:[q($,{children:`Setting`}),q($,{children:`Current`}),q($,{children:`Proposed`})]})}),q(qN,{children:o.map(e=>J(Z,{children:[q($,{children:e.label}),q(Q,{children:e.before}),q(Q,{children:e.after})]},e.label))})]}),e.warnings.map(e=>q(`p`,{role:`alert`,children:e},e)),e.overLimitAccounts.length>0&&J(`section`,{children:[q(`h2`,{children:`Accounts above proposed quotas`}),J(`p`,{children:[`This preview samples up to `,e.usageSampleSize,` accounts. Other affected accounts may also be above the limits.`]}),q(`ul`,{children:e.overLimitAccounts.map(e=>J(`li`,{children:[q(`a`,{href:`/admin/users/${e.id}`,children:e.login}),`:`,` `,e.reasons.map(e=>uB[e]??e).join(`, `)]},e.id))})]}),q(`p`,{children:`Recorded usage and billing periods are preserved. Lowering quotas can restrict existing apps. Raising quotas leaves manual administrator suspensions in place.`}),J(`form`,{method:`post`,action:`${cB}/apply`,className:`void-admin-plan-actions`,children:[q(`input`,{type:`hidden`,name:`action`,value:e.action}),q(`input`,{type:`hidden`,name:`id`,value:a}),q(`input`,{type:`hidden`,name:`revision`,value:e.expectedRevision}),q(`input`,{type:`hidden`,name:`body`,value:JSON.stringify(e.body)}),q(Y,{type:`submit`,label:`Apply changes`,variant:e.action===`remove`?`destructive`:`primary`}),q(Y,{href:cB,label:`Cancel`,variant:`secondary`})]})]})}function oB({initial:e,platformName:t,username:n}){let[r,i]=(0,sB.useState)(e),[a,o]=(0,sB.useState)(e.processed),[s,c]=(0,sB.useState)(!1);return(0,sB.useEffect)(()=>{i(e),o(e.processed),c(!e.complete&&!e.error);let t=new AbortController,n,r=e;async function a(){try{let s=await fetch(`${cB}/sync`,{method:`POST`,headers:{"Content-Type":`application/json`,Accept:`application/json`},body:JSON.stringify({expectedRevision:e.revision}),signal:AbortSignal.any([t.signal,AbortSignal.timeout(3e5)]),redirect:`error`});if(!s.ok)throw Error(`Account updates paused. Reload plans to inspect the saved configuration, then retry.`);let l=await s.json();if(l.revision!==e.revision||typeof l.complete!=`boolean`||!Number.isSafeInteger(l.processed)||l.processed<0||!l.complete&&!l.error&&(l.processed<=0||l.cursor===r.cursor))throw Error(`Account updates stopped making progress. Inspect plans, then retry.`);if(t.signal.aborted)return;i(l),o(e=>e+l.processed),r=l,(l.complete||l.error)&&c(!1),!l.complete&&!l.error&&(n=setTimeout(()=>void a(),1e3))}catch(e){t.signal.aborted||(c(!1),i(t=>({...t,error:e instanceof Error?e.message:`Account updates paused. Retry from plans.`})))}}return!e.complete&&!e.error&&a(),()=>{t.abort(),clearTimeout(n)}},[e]),J($j,{platformName:t,username:n,title:`Plan update`,children:[q(`h1`,{children:`Plan saved`}),J(`p`,{role:`status`,children:[r.complete?`Account updates complete.`:r.error?`Account updates paused.`:`Updating accounts…`,` `,a,` accounts updated in this session.`]}),r.error&&q(`p`,{role:`alert`,children:r.error}),!r.complete&&J(`form`,{method:`post`,action:`${cB}/resume`,children:[q(`input`,{type:`hidden`,name:`revision`,value:r.revision}),q(Y,{type:`submit`,label:`Continue account updates`,isDisabled:s})]}),q(`p`,{children:`Usage totals and billing periods are preserved. If you leave this page, you can continue any pending updates from Plans.`})]})}var sB,cB,lB,uB,dB=o((()=>{Mx(),oR(),Fz(),sB=u(f(),1),gb(),XR(),Zz(),nM(),kb(),cB=`/admin/config/plans`,lB=[{title:`Requests`,keys:[`requestsPerMonth`,`cpuMsPerRequest`,`maxCpuMsPerRequest`,`subRequestsPerInvocation`,`aiNeuronsPerMonth`]},{title:`Deployments and builds`,keys:[`deploysPerDay`,`retainedDeployments`,`concurrentBuilds`,`buildTimeoutMinutes`]},{title:`Sandbox`,keys:[`sandboxRuntimeSecondsPerMonth`,`sandboxMaxConcurrentInstances`]}],uB={requestsPerMonth:`Requests per billing month`,cpuMsPerRequest:`Default CPU per request (ms)`,maxCpuMsPerRequest:`Maximum app CPU per request (ms)`,subRequestsPerInvocation:`Subrequests per invocation`,aiNeuronsPerMonth:`AI neurons per billing month`,deploysPerDay:`Deployments per day`,retainedDeployments:`Retained Worker deployments`,concurrentBuilds:`Concurrent builds`,buildTimeoutMinutes:`Build timeout (minutes)`,sandboxRuntimeSecondsPerMonth:`Sandbox runtime per billing month (seconds)`,sandboxMaxConcurrentInstances:`Concurrent Sandbox instances`}})),fB=c({AuthSettingsPage:()=>pB});function pB({path:e,platformName:t,username:n}){let{authSettings:r}=ab(zR(e),{mode:`stale-while-revalidate`}),i=rb(IR,r);if(!i)throw Error(`Authentication settings are unavailable.`);let{data:a,tested:o}=i;return q($j,{platformName:t,title:`Authentication settings`,username:n,children:J(`div`,{className:`void-admin-auth-settings`,children:[J(`header`,{className:`void-admin-auth-intro`,children:[q(Ba,{level:1,children:`Authentication`}),q(`p`,{children:`Manage how people reach the platform and sign in.`})]}),q(`section`,{"aria-labelledby":`platform-protection-heading`,children:q(TM,{title:`Platform protection`,titleId:`platform-protection-heading`,description:`Control access to the platform before visitors reach a login page.`,headerAccessory:q(CL,{label:a.protection?`Cloudflare Access enabled`:`Cloudflare Access not enabled`,variant:a.protection?`success`:`neutral`}),children:J(`div`,{className:`void-admin-auth-protection-details`,children:[J(`div`,{className:`void-admin-auth-protection-steps`,children:[J(TM,{title:`Enable Cloudflare Access`,headingLevel:3,children:[q(`p`,{children:`Create or connect an Access application and verify every platform origin. The installing CLI needs the installation's recovery credentials and Access setup permission.`}),q(`pre`,{children:`void platform config auth protection enable --installation <id>`})]}),J(TM,{title:`Disable Cloudflare Access`,headingLevel:3,children:[q(`p`,{children:`First change any signup policy that relies on Access.`}),q(`pre`,{children:`void platform config auth protection disable --installation <id>`})]})]}),q(`p`,{children:`Enabling or disabling platform protection signs out users and administrators. They’ll need to sign in again.`}),q(`p`,{children:`Disabling protection leaves the Cloudflare Access applications in place. Delete them in Cloudflare when you no longer need them.`}),q(`p`,{children:`Login methods and protection for individual apps are configured separately.`})]})})}),a.initialized?J(Ob.Fragment,{children:[o&&q(`section`,{"aria-labelledby":`verified-login-heading`,children:J(TM,{title:`Login verified`,titleId:`verified-login-heading`,description:`Review this identity before linking or enabling the tested method.`,headerAccessory:q(CL,{label:`Ready to review`,variant:`success`}),children:[J(`dl`,{className:`void-admin-auth-identity`,children:[J(`div`,{children:[q(`dt`,{children:`Account`}),q(`dd`,{children:o.login||o.subject})]}),J(`div`,{children:[q(`dt`,{children:`Provider`}),q(`dd`,{children:o.issuer})]}),J(`div`,{children:[q(`dt`,{children:`Identity`}),q(`dd`,{children:o.subject})]})]}),q(`div`,{className:`void-admin-auth-actions`,children:[`link`,`enable`].map(e=>J(`form`,{method:`post`,action:`${mB}/connections/${encodeURIComponent(o.connection_id)}/${e}`,children:[q(`input`,{type:`hidden`,name:`revision`,value:o.revision}),q(`input`,{type:`hidden`,name:`testId`,value:o.id}),q(Y,{type:`submit`,label:e===`link`?`Link to my account`:`Enable tested configuration`,variant:e===`link`?`secondary`:`primary`})]},e))})]})}),q(`section`,{"aria-labelledby":`login-methods-heading`,children:J(TM,{title:`Login methods`,titleId:`login-methods-heading`,description:`Choose the identity providers people can use to sign in.`,headerAccessory:q(CL,{label:`${a.methods.filter(e=>e.enabled).length} active`,variant:`neutral`}),children:[a.methods.length?q(`div`,{className:`void-admin-auth-method-list`,children:a.methods.map(e=>J(`div`,{className:`void-admin-auth-method`,children:[J(`div`,{className:`void-admin-auth-method-info`,children:[J(`div`,{className:`void-admin-auth-method-title`,children:[q(`strong`,{children:e.label}),q(CL,{label:e.enabled?`Enabled`:`Disabled`,variant:e.enabled?`success`:`neutral`}),`activeRevision`in e&&e.activeRevision!==e.revision&&q(CL,{label:`Pending configuration`,variant:`warning`})]}),q(`span`,{className:`void-admin-auth-method-type`,children:hB.find(({kind:t})=>t===e.kind)?.label??e.kind})]}),J(`div`,{className:`void-admin-auth-actions`,children:[q(Y,{href:`${mB}/connections/${encodeURIComponent(e.id)}`,label:`Edit`,variant:`secondary`,size:`sm`}),q(`form`,{method:`post`,action:`${mB}/connections/${encodeURIComponent(e.id)}/test`,children:q(Y,{type:`submit`,label:`Test login`,variant:`secondary`,size:`sm`})}),e.enabled&&`revision`in e&&J(`form`,{method:`post`,action:`${mB}/connections/${encodeURIComponent(e.id)}/disable`,children:[q(`input`,{type:`hidden`,name:`revision`,value:e.revision}),q(Y,{type:`submit`,label:`Disable and revoke sessions`,variant:`destructive`,size:`sm`})]})]})]},e.id))}):q(`p`,{className:`void-admin-auth-empty`,children:`No login methods configured yet.`}),J(`div`,{className:`void-admin-auth-add-methods`,children:[q(`h3`,{children:`Add a login method`}),q(`div`,{className:`void-admin-auth-actions`,children:hB.map(({kind:e,label:t})=>q(Y,{href:`${mB}/new?kind=${e}`,label:t,variant:`secondary`,size:`sm`},e))})]})]})})]}):J(TM,{title:`Set up authentication settings`,children:[q(`p`,{children:`Initialize settings to manage your existing login methods here. Their configuration is preserved; you will sign in again.`}),q(`form`,{method:`post`,action:`${mB}/initialize`,children:q(Y,{type:`submit`,label:`Initialize settings`})})]}),q(`section`,{"aria-labelledby":`account-access-heading`,children:q(TM,{title:`Who can join?`,titleId:`account-access-heading`,description:`Set the signup policy, invite people, and manage individual grants on Access.`,children:q(Y,{href:`/admin/signup-control`,label:`Manage access`,variant:`secondary`})})})]})})}var mB,hB,gB=o((()=>{OL(),Mx(),qa(),gb(),XR(),DM(),nM(),kb(),mB=`/admin/config/auth`,hB=[{kind:`github`,label:`GitHub`},{kind:`google`,label:`Google`},{kind:`oidc`,label:`Generic OIDC`},{kind:`cloudflare-access`,label:`Cloudflare Access`}]}));function _B({configuration:e,revision:t,callbackUrl:n}){return J(`form`,{method:`post`,action:`${vB}/connections/${encodeURIComponent(e.id)}/configure`,style:`display: grid; gap: 12px; max-width: 700px`,children:[q(`input`,{type:`hidden`,name:`id`,value:e.id}),q(`input`,{type:`hidden`,name:`kind`,value:e.kind}),q(`input`,{type:`hidden`,name:`revision`,value:t??``}),q(`p`,{children:`Register this callback URL with the provider:`}),q(`pre`,{children:n}),q(Wz,{label:`Connection ID`,name:`connectionId`,initialValue:e.id,isReadOnly:t!==null||e.kind===`github`||e.kind===`google`,required:!0}),q(Wz,{label:`Login button label`,name:`label`,initialValue:e.label??``,maxLength:100,required:!0}),(e.kind===`oidc`||e.kind===`cloudflare-access`)&&q(Wz,{label:`Issuer URL`,name:`issuer`,type:`url`,initialValue:e.issuer??``,required:!0}),q(Wz,{label:`Client ID`,name:`clientId`,initialValue:e.clientId??``,required:!0}),q(Wz,{label:`Client secret`,name:`clientSecret`,type:`password`,autoComplete:`new-password`,required:t===null}),t!==null&&q(`p`,{children:`Leave the secret blank to retain its saved value.`}),e.kind===`google`&&q(Wz,{label:`Allowed Workspace domains`,name:`domains`,initialValue:e.allowedDomains?.join(`, `)??``,placeholder:`example.com, example.org`,description:`Leave blank to allow any Google account to authenticate. Signup remains controlled separately.`}),(e.kind===`oidc`||e.kind===`cloudflare-access`)&&q(Wz,{label:`Allowed groups`,name:`groups`,initialValue:e.requiredGroups?.join(`, `)??``,description:`Comma-separated; leave blank to use the provider's access policy.`}),q(`p`,{children:`Save a pending configuration, then test it before enabling it.`}),q(Y,{type:`submit`,label:`Save configuration`})]})}var vB,yB=o((()=>{Mx(),Zz(),kb(),vB=`/admin/config/auth`})),bB=c({AuthNewPage:()=>xB});function xB({path:e,platformName:t,username:n}){let{authNew:r}=ab(BR(e),{mode:`stale-while-revalidate`}),i=rb(LR,r);if(!i)throw Error(`Login method is unavailable.`);let{kind:a,connectionId:o,callbackUrl:s}=i;return J($j,{platformName:t,title:`Add login method`,username:n,children:[q(`h1`,{children:`Add login method`}),q(_B,{configuration:{id:o,kind:a,label:a===`oidc`?`Company SSO`:a===`cloudflare-access`?`Cloudflare Access`:a===`github`?`GitHub`:`Google`},revision:null,callbackUrl:s})]})}var SB=o((()=>{gb(),XR(),yB(),nM(),kb()})),CB=c({AuthEditPage:()=>wB});function wB({path:e,platformName:t,username:n}){let{authEdit:r}=ab(VR(e),{mode:`stale-while-revalidate`}),i=rb(RR,r);if(!i)throw Error(`Login method is unavailable.`);let{configuration:a,revision:o,callbackUrl:s,label:c}=i;return J($j,{platformName:t,title:`Edit login method`,username:n,children:[J(`h1`,{children:[`Edit `,c]}),q(_B,{configuration:a,revision:o,callbackUrl:s})]})}var TB=o((()=>{gb(),XR(),yB(),nM(),kb()})),EB=c({AuthErrorPage:()=>DB});function DB({message:e,platformName:t,username:n}){return J($j,{platformName:t,title:`Authentication settings`,username:n,children:[q(`h1`,{children:`Authentication settings`}),q(`p`,{children:e}),q(Y,{as:`a`,href:`/admin/logout`,label:`Sign in again`})]})}var OB=o((()=>{Mx(),nM(),kb()}));function kB({build:e}){let t=nb(),[n,r]=(0,AB.useState)(null),[i,a]=(0,AB.useState)(null),o=(0,AB.useRef)(null);return(0,AB.useEffect)(()=>{let n=!0,i=0,o=!1,s=null;r(null),a(null);let c=async()=>{if(!o){o=!0;try{let{buildLogs:a}=await t.request(mR(e.id,i),{mode:`network-only`});if(!a)return;let{data:o}=await t.readView(fR,a);return n?(i=Math.max(i,o.lastSeq),r(e=>[...e??[],...o.lines]),o):void 0}catch{}finally{o=!1}}},l=async()=>{let e=await c();if(e){if(!e.terminal){s=null;return}if(e.logsComplete===!0){clearInterval(u);return}if(e.logsComplete==null){clearInterval(u),a(`Final log completion is unavailable. Upgrade the platform runtime to follow the complete log tail.`);return}s??=Date.now(),Date.now()-s>=12e4&&(clearInterval(u),a(`The build finished, but its final logs have not been confirmed. Reload to recover the final log tail.`))}},u=setInterval(()=>void l(),2e3);return l(),()=>{n=!1,clearInterval(u)}},[e.id,e.status,t]),(0,AB.useEffect)(()=>{let e=o.current;e&&e.scrollHeight-e.scrollTop-e.clientHeight<40&&(e.scrollTop=e.scrollHeight)},[n]),J(Ob.Fragment,{children:[q(`h2`,{children:`Build Logs`}),i&&q(`p`,{role:`alert`,children:i}),q(`pre`,{ref:o,id:`build-log`,style:`min-height: 120px; max-height: 480px; overflow-y: auto; font-size: 0.78rem`,children:n===null?`Loading logs...`:n.length===0?`No logs yet.`:n.map((e,t)=>J(`span`,{style:{color:e.stream===`stderr`?`#dc2626`:`inherit`},children:[t>0&&`
120
- `,e.line]},e.seq))})]})}var AB,jB=o((()=>{AB=u(f(),1),gb(),XR(),kb()})),MB=c({BuildDetailPage:()=>NB});function NB({path:e,platformName:t,username:n}){let{buildDetail:r}=ab(kR(e),{mode:`stale-while-revalidate`}),i=rb(TR,r);if(!i)throw Error(`Build data is unavailable.`);let{build:a,tz:o}=i;return J($j,{platformName:t,title:`Build ${a.id}`,username:n,children:[J(`h1`,{children:[`Build `,a.id]}),q(AP,{children:J(qN,{children:[J(Z,{children:[q($,{children:`Status`}),q(Q,{children:a.status})]}),J(Z,{children:[q($,{children:`Project`}),q(Q,{children:q(`a`,{href:`/admin/projects/${a.project_id}`,children:a.project_id})})]}),J(Z,{children:[q($,{children:`Executor`}),q(Q,{children:a.executor})]}),J(Z,{children:[q($,{children:`Instance Type`}),q(Q,{children:a.instance_type??`-`})]}),J(Z,{children:[q($,{children:`Commit`}),q(Q,{children:a.commit_sha?a.commit_sha.slice(0,7):`-`})]}),J(Z,{children:[q($,{children:`Branch`}),q(Q,{children:a.branch??`-`})]}),J(Z,{children:[q($,{children:`Deployment`}),q(Q,{children:a.deployment_id?q(`a`,{href:`/admin/deployments/${a.deployment_id}`,children:a.deployment_id}):`-`})]}),a.error?J(Z,{children:[q($,{children:`Error`}),q(Q,{children:q(`span`,{style:`color: red; max-width: 600px; display: inline-block; word-break: break-word`,children:a.error})})]}):null,J(Z,{children:[q($,{children:`Exit Code`}),q(Q,{children:a.exit_code??`-`})]}),J(Z,{children:[q($,{children:`Started`}),q(Q,{children:a.started_at?Fx(a.started_at,o):`-`})]}),J(Z,{children:[q($,{children:`Completed`}),q(Q,{children:a.completed_at?Fx(a.completed_at,o):`-`})]}),J(Z,{children:[q($,{children:`Created`}),q(Q,{children:Fx(a.created_at,o)})]})]})}),a.executor===`container`?q(kB,{build:a}):J(Ob.Fragment,{children:[q(`h2`,{children:`Build Logs`}),a.logs_url?q(Y,{as:`a`,href:a.logs_url,target:`_blank`,rel:`noopener noreferrer`,label:`View logs on GitHub ↗`,variant:`secondary`}):q(`p`,{children:q(`em`,{children:`No external logs available.`})})]})]})}var PB=o((()=>{Mx(),oR(),gb(),XR(),jB(),Vx(),nM(),kb()})),FB,IB,LB,RB=o((()=>{FB=u(f(),1),Ar(),IB=(0,FB.createContext)(null),IB.displayName=`CollapsibleGroupContext`,LB=Tr(null),LB.displayName=`CollapsibleGroupPresentationContext`}));function zB(e){let{isCollapsible:t,value:n}=e,r=(0,BB.use)(IB),i=r!=null&&n!=null,a=t===!0?{}:t||null,o=a!=null,[s,c]=(0,BB.useState)(()=>i?!0:a?.isOpen===void 0?a?.defaultIsOpen??!0:a.isOpen),l;return l=i&&n!=null?r.isOpen(n):a?.isOpen===void 0?s:a.isOpen,{isEnabled:o,isOpen:l,toggle:()=>{if(i&&n!=null){r.toggle(n);return}let e=!l;a?.isOpen===void 0&&c(e),a?.onOpenChange?.(e)}}}var BB,VB=o((()=>{BB=u(f(),1),RB()}));function HB({trigger:e,children:t,defaultIsOpen:n,isOpen:r,isDisabled:i=!1,onOpenChange:a,chevronPosition:o,value:s,ref:c,xstyle:l,className:u,style:d,...f}){let{isOpen:p,toggle:m}=zB({isCollapsible:r===void 0?{defaultIsOpen:n??!0,onOpenChange:a}:{isOpen:r,onOpenChange:a},value:s}),h=()=>{i||m()},g=(0,UB.use)(LB),_=g?.hasDividers??!1,v=g?.density??null,y=(o??g?.chevronPosition??`end`)===`start`,b=(0,UB.useId)(),x=(0,WB.jsx)(ru,{icon:y?`chevronRight`:`chevronDown`,size:`sm`,color:`secondary`,xstyle:[GB.chevron,y&&GB.chevronStart,y?p?GB.chevronStartOpen:GB.chevronStartClosed:p?GB.chevronOpen:GB.chevronClosed]});return(0,WB.jsxs)(`div`,{ref:c,...U(V(`collapsible`,{density:v??void 0}),z(GB.root,_&&GB.divided,l),u,d),...f,children:[(0,WB.jsxs)(`button`,{type:`button`,onClick:h,"aria-disabled":i||void 0,"aria-expanded":p,"aria-controls":b,tabIndex:i?-1:void 0,...U(V(`collapsible-trigger`,{density:v??void 0}),Rn.focusVisible(GB.trigger,v!=null&&qB[v],!i&&Lu.pressedBackgroundColor,i&&GB.triggerDisabled)),children:[y&&x,(0,WB.jsx)(`span`,{className:`x1b2iylo xwgcxoh x1iyjqo2`,children:e}),!y&&x]}),(0,WB.jsx)(`div`,{id:b,...U(V(`collapsible-content`,{density:v??void 0}),z(GB.content,v!=null&&JB[v],!p&&GB.contentHidden)),children:g==null?t:(0,WB.jsx)(LB,{value:null,children:t})})]})}var UB,WB,GB,KB,qB,JB,YB=o((()=>{UB=u(f(),1),B(),VB(),RB(),uu(),W(),H(),zn(),Ru(),WB=G(),GB={root:{kzqmXN:`xh8yej3`,$$css:!0},trigger:{kB7OPa:`x9f619`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`x1qughib`,kzqmXN:`xh8yej3`,kkrTdU:`x1ypdohk x16khyan`,kMv6JI:`x9ynric`,kGuDYH:`x18juvz8`,k63SB2:`x2mo6ok`,kMwMTN:`x1tgivj0`,k9WMMc:`x1yc453h`,k8WAf4:`xt970qd`,$$css:!0},triggerDisabled:{kkrTdU:`xt0e3qv`,kSiTet:`xbyyjgo`,$$css:!0},chevron:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,kzqmXN:`xta46cu`,kZKoxP:`x1seg80s`,kGuDYH:`x18juvz8`,k1ekBW:`x11xpdln`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,$$css:!0},chevronOpen:{k3aq6I:`x19jd1h0`,$$css:!0},chevronClosed:{k3aq6I:`x7p49u4`,$$css:!0},chevronStart:{k71WvV:`x1pezmd8`,$$css:!0},chevronStartOpen:{k3aq6I:`x1iffjtl x1nxqau`,$$css:!0},chevronStartClosed:{k3aq6I:`x7p49u4 xaafvuh`,$$css:!0},contentHidden:{k1xSpc:`x1s85apg`,$$css:!0},content:{kLKAdn:`xfsso4q`,kMv6JI:`x9ynric`,kGuDYH:`xjm74w1`,k63SB2:`xxovm9e`,kLWn49:`xw6l6zx`,kMwMTN:`x1tgivj0`,$$css:!0},divided:{kEafiO:`x11xkdxz x1g31smg`,kPef9Z:`x13fuv20`,kLZC3w:`x1pc3f07`,$$css:!0}},KB={triggerCompact:{k8WAf4:`xu0wf1k`,$$css:!0},triggerBalanced:{k8WAf4:`xce4md1`,$$css:!0},triggerSpacious:{k8WAf4:`x8o8v82`,$$css:!0},contentCompact:{kGO01o:`xy143xn`,$$css:!0},contentBalanced:{kGO01o:`x1wesfrj`,$$css:!0},contentSpacious:{kGO01o:`xvmdzux`,$$css:!0}},qB={compact:KB.triggerCompact,balanced:KB.triggerBalanced,spacious:KB.triggerSpacious},JB={compact:KB.contentCompact,balanced:KB.contentBalanced,spacious:KB.contentSpacious},HB.displayName=`Collapsible`})),XB=o((()=>{YB(),B(),RB(),W(),H(),VB()}));function ZB(e,t){let n=t?.keywords;return{search(t){let r=t.toLowerCase().trim();return r===``?e:e.filter(e=>e.label.toLowerCase().includes(r)?!0:n?n(e).some(e=>e.toLowerCase().includes(r)):!1)},bootstrap(){return e}}}var QB=o((()=>{}));function $B({lane:e,loadingLabel:t,clear:n}){let r=AL(e);return!r&&n==null?null:(0,nV.jsxs)(`div`,{className:`x78zum5 x6s0dn4 xzye2dw xvc5jky`,children:[r&&(0,nV.jsx)(qb,{size:`sm`,"aria-label":t}),n]})}function eV({ref:e,label:t,isLabelHidden:n=!1,description:r,isRequired:i=!1,isOptional:a=!1,status:o,statusVariant:s=`attached`,startIcon:c,labelTooltip:l,searchSource:u,value:d,onChange:f,renderItem:p,placeholder:m,hasEntriesOnFocus:h,maxMenuItems:g,minQueryLength:_,emptySearchResultsText:v,isDisabled:y=!1,disabledMessage:b,hasClear:x=!0,hasAutoFocus:S,size:C,debounceMs:w,onChangeQuery:T,onOpenChange:E,width:D,xstyle:O,className:k,style:A,"data-testid":j}){let M=xf(),N=fx(C,`md`),ee=(0,tV.useId)(),P=(0,tV.useId)(),te=(0,tV.useId)(),F=(0,tV.useId)(),ne=CF(),I=(0,tV.useRef)(null),re=(0,tV.useRef)(null),ie=(0,tV.useRef)(null),ae=y&&!!b,oe=va({placement:`above`,focusTrigger:`always`,isEnabled:ae}),se=(0,tV.useMemo)(()=>kL(),[]),[ce,le]=(0,tV.useState)(!1),[ue,de]=(0,tV.useState)(null),fe=d!=null&&!ce,pe=(0,tV.useCallback)(()=>{!y&&d&&(de(d),le(!0),T?.(d.label),requestAnimationFrame(()=>{let e=re.current;e&&((Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,`value`)?.set)?.call(e,d.label),e.dispatchEvent(new Event(`input`,{bubbles:!0})),e.focus(),e.setSelectionRange(0,e.value.length))}))},[y,d,T]),L=(0,tV.useCallback)(e=>{I.current?.contains(e.relatedTarget)||ue&&ce&&(le(!1),de(null))},[ue,ce]),R=(0,tV.useCallback)(e=>{le(!1),de(null),f(e),e&&requestAnimationFrame(()=>{let e=ie.current;e&&(e.querySelector(`button`)??e).focus()})},[f]),me=(0,tV.useCallback)(()=>{le(!1),de(null),f(null),re.current?.focus()},[f]),he=(0,tV.useCallback)(e=>{Bn(e.nativeEvent)||e.key===`Escape`&&ue&&(e.preventDefault(),le(!1),de(null),re.current?.blur())},[ue]),ge=(0,tV.useCallback)(()=>{y||(fe?pe():re.current?.focus())},[y,fe,pe]),{ariaLabelledBy:_e,ariaDescribedBy:ve}=mn(P,[r?te:null,o?.message?F:null,ae?oe.describedBy:null],ne),ye=iV[N],be=(0,nV.jsxs)(nV.Fragment,{children:[(0,nV.jsxs)(`div`,{ref:yr(I,oe.ref,ne?e:void 0),"data-testid":j,onClick:ge,onBlur:L,...U(V(`typeahead`,{size:N,status:o?.type}),z(dF.base,rV.wrapper,ye,o&&fF[o.type],o&&!y&&pF[o.type],o&&mF[o.type],y&&dF.disabled,ne&&DF.inGroup,ne&&O),ne?k:void 0,ne?A:void 0),children:[c&&au(c,{size:`sm`,color:`secondary`}),ne&&(0,nV.jsx)(fu,{id:P,children:t}),(0,nV.jsx)(PL,{value:se,children:(0,nV.jsxs)(`div`,{className:`x1n2onr6 x78zum5 x6s0dn4 xkh2ocl x98rzlu xeuugli`,children:[fe&&(0,nV.jsx)($L,{ref:ie,label:d.label,size:N,onClick:pe,isDisabled:y,xstyle:rV.tokenOverlay}),(0,nV.jsx)(qL,{ref:re,searchSource:u,value:d,onChange:R,renderItem:p,placeholder:fe?void 0:m,hasEntriesOnFocus:h,maxMenuItems:g,minQueryLength:_,emptySearchResultsText:v,isDisabled:y,hasAutoFocus:S,isFocusableDisabled:ae,inputId:ee,ariaDescribedBy:ve,ariaLabelledBy:_e,onChangeQuery:T,onOpenChange:E,debounceMs:w,anchorRef:I,onKeyDown:he,inputXStyle:fe?rV.inputHidden:void 0,inputTabIndex:fe?-1:void 0,size:N})]})}),(0,nV.jsx)($B,{lane:se,loadingLabel:M(`@astryx.typeahead.loading`),clear:x&&d&&!y?(0,nV.jsx)(_F,{label:M(`@astryx.typeahead.clearSelection`),onClick:e=>{e.stopPropagation(),me()}}):null})]}),ae&&oe.renderTooltip(b)]});return ne?be:(0,nV.jsx)(aF,{ref:e,label:t,isLabelHidden:n,description:r,inputID:ee,descriptionID:r?te:void 0,isOptional:a,isRequired:i,isDisabled:y,status:o?{type:o.type,message:o.message,messageID:o.message?F:void 0}:void 0,statusVariant:s,labelTooltip:l,width:D,xstyle:O,className:k,style:A,children:be})}var tV,nV,rV,iV,aV=o((()=>{tV=u(f(),1),B(),FL(),JL(),gx(),SF(),aR(),du(),uu(),hu(),sx(),OF(),EF(),W(),H(),Df(),xr(),nV=G(),rV={wrapper:{kVAEAm:`x1n2onr6`,kOIVth:`xzye2dw`,k8WAf4:`x1x7cmac`,kkrTdU:`x1ed109x x16khyan`,$$css:!0},inputHidden:{kSiTet:`xg01cxk`,kfzvcC:`x47corl`,$$css:!0},tokenOverlay:{kVAEAm:`x10l6tqk`,k87sOh:`x13vifvy`,kLqNvP:`xmt1zuk`,kt4wiu:`xtijo5x`,kzqmXN:`xeq5yr9`,kqGvvJ:`x10im51j`,keTefX:`x1lziwak`,k71WvV:`x11t971q`,$$css:!0}},iV={sm:{kAzted:`x1gdqauq`,$$css:!0},md:{kAzted:`x1uogy3y`,$$css:!0},lg:{kAzted:`x1xf4nls`,$$css:!0}},eV.displayName=`Typeahead`})),oV=o((()=>{QB(),JL(),aV(),zL()}));function sV({label:e,onChange:t,onSelect:n,onClear:r,suggestions:i=dV,remoteSearch:a,initialValue:o=``,initialSelection:s,width:c=320}){let l=(0,lV.useMemo)(()=>cV(i),[i]),u=(0,lV.useMemo)(()=>a?{bootstrap:()=>[],search:async e=>cV(await a(e))}:ZB(l,{keywords:e=>e.auxiliaryData?.keywords??[]}),[l,a]),[d,f]=(0,lV.useState)(()=>o?l.find(e=>e.id===o)??(s?.id===o?cV([s])[0]:void 0)??{id:o,label:o}:null);return(0,uV.jsx)(eV,{label:e,isLabelHidden:!0,placeholder:e,searchSource:u,value:d,renderItem:e=>(0,uV.jsx)(IL,{item:e,description:e.auxiliaryData?.description}),onChange:e=>{f(e),t(e?.id??``),e?n?.(e.id):r?.()},onChangeQuery:e=>{f(null),t(e)},hasEntriesOnFocus:!a,hasClear:!0,minQueryLength:a?2:1,debounceMs:a?200:0,width:c,emptySearchResultsText:a?`No matching results.`:`No suggestions. Search for any text.`})}function cV(e){let t=new Map;for(let n of e){if(!n)continue;let e=typeof n==`string`?{id:n,label:n,auxiliaryData:{keywords:[]}}:{id:n.id,label:n.label,auxiliaryData:{keywords:n.keywords?.filter(e=>!!e)??[],description:n.description}};e.id&&e.label&&t.set(e.id,e)}return[...t.values()]}var lV,uV,dV,fV=o((()=>{oV(),lV=u(f(),1),uV=G(),dV=[]}));function pV(e){return typeof e==`string`?e.slice(0,500):Array.isArray(e)?e.join(` `).slice(0,500):JSON.stringify(e??null).slice(0,500)}function mV({entry:e}){let t=[...(e.logs??[]).map(e=>({level:e.level??`log`,text:pV(e.message)})),...(e.exceptions??[]).map(e=>({level:`error`,text:`${e.name}: ${e.message}`}))],n=Number.parseInt(e.status??``,10),r=n>=500?`#dc2626`:n>=400?`#d97706`:`#16a34a`;return J(`div`,{style:`padding: 4px 0; border-bottom: 1px solid #eee; font-size: 0.8rem`,children:[q(`span`,{style:`color: #999; margin-right: 8px`,children:new Date(e.timestamp).toLocaleTimeString()}),e.method&&e.url&&J(Ob.Fragment,{children:[q(`span`,{style:`margin-right: 8px; font-weight: 600`,children:e.method}),q(`span`,{style:`margin-right: 8px`,children:e.url})]}),e.status&&q(`span`,{style:{color:r,fontWeight:600,marginRight:8},children:e.status}),q(`span`,{style:{color:e.outcome===`ok`?`#16a34a`:`#dc2626`},children:e.outcome}),t.length>0&&J(`div`,{style:`position: relative; margin-top: 4px; margin-left: 24px`,children:[q(`div`,{style:`position: absolute; top: 4px; right: 4px`,children:q(ZR,{text:t.map(e=>e.text).join(`
121
- `)})}),q(`pre`,{style:`margin: 0; padding: 8px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: var(--radius-inner); font-size: 0.78rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all`,children:t.map((e,t)=>J(`div`,{children:[q(`span`,{style:{color:_V[e.level]??`#6b7280`,fontWeight:600,textTransform:`uppercase`,width:50,display:`inline-block`},children:e.level}),q(`span`,{children:e.text})]},t))})]})]})}function hV({deploymentId:e}){let t=nb(),[n,r]=(0,gV.useState)(`1h`),[i,a]=(0,gV.useState)(100),[o,s]=(0,gV.useState)(``),[c,l]=(0,gV.useState)(null),[u,d]=(0,gV.useState)(null),[f,p]=(0,gV.useState)(!1),m=(0,gV.useCallback)(async(n,r)=>{let{deploymentLogs:i}=await t.request(hR(e,n,r),{mode:`network-only`});if(!i)return null;let{data:a}=await t.readView(pR,i);return a.data},[e,t]),h=(0,gV.useCallback)(async()=>{l(null),d(null);try{let e=await m(n,i);if(!e)throw Error(`Deployment logs are unavailable.`);l(e)}catch(e){d(e instanceof Error?e.message:String(e))}},[m,n,i]);(0,gV.useEffect)(()=>{h()},[h]),(0,gV.useEffect)(()=>{if(!f)return;let e=!0,t=new Set,n=async()=>{try{let n=await m(`1m`,50);if(!n||!e)return;let r=n.filter(e=>{let n=`${e.timestamp}:${e.url}:${e.status}`;return!t.has(n)&&(t.add(n),!0)});r.length>0&&l(e=>[...r,...e??[]])}catch{}};n();let r=setInterval(()=>void n(),3e3);return()=>{e=!1,clearInterval(r)}},[m,f]);let g=o.toLowerCase().trim(),_=(c??[]).filter(e=>!g||[e.outcome,e.method,e.url,e.status,...(e.logs??[]).map(e=>pV(e.message)),...(e.exceptions??[]).flatMap(e=>[e.name,e.message])].join(` `).toLowerCase().includes(g));return J(Ob.Fragment,{children:[q(`h2`,{children:`Runtime Logs`}),J(`div`,{style:`margin-bottom: 15px; display: flex; gap: 10px; align-items: center`,children:[q($I,{id:`log-since`,label:`Time`,value:n,onChange:r,options:[`1h`,`6h`,`24h`,`7d`],width:100}),q(Y,{type:`button`,id:`load-logs-btn`,label:`Load`,onClick:()=>void h()}),q($I,{id:`log-count`,label:`Count`,value:String(i),onChange:e=>a(Number(e)),options:[100,200,300,400,500].map(String),width:110}),q(sV,{label:`Filter logs`,onChange:s,suggestions:(c??[]).flatMap(e=>[e.outcome,e.method,e.url,e.status]),width:240}),q(Y,{type:`button`,id:`live-tail-btn`,style:{marginLeft:`auto`},label:f?`Stop Tail`:`Live Tail`,variant:f?`destructive`:`secondary`,onClick:()=>{f||l([]),p(!f)}})]}),q(`div`,{id:`log-entries`,children:u?J(`p`,{style:`color: red; font-size: 0.8rem`,children:[`Failed to load logs: `,u]}):f&&_.length===0?q(`p`,{style:`color: #999; font-size: 0.8rem`,children:`Polling for new events... New logs may take up to 2 minutes to appear.`}):c===null?q(`p`,{style:`color: #999; font-size: 0.8rem`,children:`Loading logs...`}):_.length===0?J(`p`,{style:`color: #999; font-size: 0.8rem`,children:[`No logs found`,g?` matching filter`:` for this time range`,`. New logs may take up to 2 minutes to appear.`]}):_.map((e,t)=>q(mV,{entry:e},`${e.timestamp}:${e.url}:${e.status}:${t}`))})]})}var gV,_V,vV=o((()=>{Mx(),lL(),gV=u(f(),1),gb(),XR(),ez(),fV(),kb(),_V={error:`#dc2626`,warn:`#d97706`,info:`#6b7280`,log:`#6b7280`,debug:`#9ca3af`}})),yV=c({DeploymentDetailPage:()=>bV});function bV({path:e,platformName:t,username:n}){let{deploymentDetail:r}=ab(OR(e),{mode:`stale-while-revalidate`}),i=rb(wR,r);if(!i)throw Error(`Deployment data is unavailable.`);let{deployment:a,project:o,canCancel:s,tz:c}=i,l=i.manifest,u=tz(a,o?.active_deployment_id),d=u===`live`?{color:`#16a34a`,fontWeight:600}:u===`retained`?{color:`#16a34a`}:u===`evicted`?{color:`#888`}:u===`failed`?{color:`#dc2626`}:void 0;return J($j,{platformName:t,title:`Deployment ${a.id}`,username:n,children:[J(`h1`,{children:[`Deployment `,a.id]}),s&&J(Ob.Fragment,{children:[q(`h2`,{children:`Deploy Control`}),q(`form`,{method:`post`,action:`/admin/deployments/${a.id}/cancel`,"data-confirm":`Cancel deployment "${a.id}"?`,children:q(Y,{type:`submit`,label:`Cancel Deploy`,variant:`destructive`})})]}),(a.status===`failed`||a.status===`canceled`)&&a.error_message&&J(Ob.Fragment,{children:[q(`h2`,{children:`Error`}),q(`pre`,{children:a.error_message}),q(`p`,{children:q(ZR,{text:a.error_message,label:`Copy error`})})]}),q(AP,{children:J(qN,{children:[J(Z,{children:[q($,{children:`ID`}),q(Q,{children:a.id}),q($,{children:`Project`}),q(Q,{children:o?q(`a`,{href:`/admin/projects/${o.id}`,children:o.slug}):a.project_id})]}),J(Z,{children:[q($,{children:`Status`}),q(Q,{style:d,children:u}),q($,{children:`Source`}),q(Q,{children:a.source??`-`})]}),J(Z,{children:[q($,{children:`Commit`}),q(Q,{children:a.commit??`-`}),q($,{children:`Created`}),q(Q,{children:Fx(a.created_at,c)})]}),J(Z,{children:[q($,{children:`Deployed`}),q(Q,{children:a.deployed_at?Fx(a.deployed_at,c):`-`}),q($,{children:`Type`}),q(Q,{children:o?.type??`-`})]}),J(Z,{children:[q($,{children:`CLI Version`}),q(Q,{children:a.cli_version??`-`}),q($,{}),q(Q,{})]}),l&&q(Z,{children:q(Q,{colSpan:4,style:{padding:0},children:q(HB,{trigger:`Manifest`,children:J(`div`,{style:`padding: 0 8px 8px`,children:[q(AP,{style:{margin:0},children:J(qN,{children:[l.bindings&&Object.entries(l.bindings).map(([e,t])=>Array.isArray(t)&&t.length>0?J(Z,{children:[q($,{children:e.toUpperCase()}),q(Q,{children:t.map((e,t)=>J(`span`,{children:[t>0&&`, `,q(`code`,{children:e})]},e))})]},e):t===!0?J(Z,{children:[q($,{children:e.toUpperCase()}),q(Q,{children:`enabled`})]},e):null),l.migrations&&J(Z,{children:[q($,{children:`Migrations`}),J(Q,{children:[l.migrations.dialect,` — `,l.migrations.pending,` pending`]})]}),l.schedules&&l.schedules.length>0&&J(Z,{children:[q($,{children:`Schedules`}),q(Q,{children:l.schedules.map((e,t)=>J(`span`,{children:[t>0&&`, `,e.name,`: `,e.cron]},e.name))})]})]})}),a.manifest&&q(HB,{trigger:`Raw JSON`,children:q(`pre`,{style:`margin-top: 8px; font-size: 0.8rem`,children:JSON.stringify(JSON.parse(a.manifest),null,2)})})]})})})})]})}),a.status===`live`&&o&&q(hV,{deploymentId:a.id})]})}var xV=o((()=>{Mx(),XB(),oR(),gb(),XR(),ez(),vV(),iz(),Vx(),nM(),kb()}));function SV({page:e,totalPages:t,baseUrl:n}){return t<=1?q(Ob.Fragment,{}):J(`nav`,{"aria-label":`Pagination`,className:`void-admin-pagination`,children:[e>1?q(Y,{href:`${n}?page=${e-1}`,label:`Previous`,variant:`secondary`}):q(Y,{label:`Previous`,variant:`secondary`,isDisabled:!0}),J(`span`,{children:[e,` / `,t]}),e<t?q(Y,{href:`${n}?page=${e+1}`,label:`Next`,variant:`secondary`}):q(Y,{label:`Next`,variant:`secondary`,isDisabled:!0})]})}var CV=o((()=>{Mx(),kb()}));function wV({action:e,kind:t,label:n,value:r,onChange:i,initialValue:a,initialSelection:o}){let s=nb(),c=eo(),l=(0,TV.useCallback)(async n=>{let r=`${e}?search=${encodeURIComponent(n)}`;if(t===`users`){let{usersPage:e}=await s.request(yR(r),{mode:`network-only`});if(!e)return[];let{data:t}=await s.readView(gR,e);return t.users.map(e=>({id:e.id,label:e.login,description:[e.email,e.id].filter(Boolean).join(` · `)}))}if(t===`projects`){let{projectsPage:e}=await s.request(bR(r),{mode:`network-only`});if(!e)return[];let{data:t}=await s.readView(_R,e);return t.projects.map(e=>({id:e.id,label:e.slug,description:e.owner_login??void 0}))}let{deploymentsPage:i}=await s.request(xR(r),{mode:`network-only`});if(!i)return[];let{data:a}=await s.readView(vR,i);return a.deployments.map(e=>({id:e.id,label:e.id,description:[e.project_slug,e.status].filter(Boolean).join(` · `)}))},[e,s,t]);return(0,EV.jsxs)(`form`,{method:`get`,action:e,className:`void-admin-search`,children:[(0,EV.jsx)(`input`,{type:`hidden`,name:`search`,value:r}),(0,EV.jsx)(sV,{label:n,onChange:i,onSelect:t=>void c.visit(`${e}/${encodeURIComponent(t)}`),onClear:()=>{a&&c.visit(e)},remoteSearch:l,initialValue:a,initialSelection:o},a??``),(0,EV.jsx)(Y,{type:`submit`,label:`Search`})]})}var TV,EV,DV=o((()=>{Mx(),po(),TV=u(f(),1),gb(),XR(),fV(),EV=G()})),OV=c({UsersListPage:()=>kV});function kV({path:e,platformName:t,username:n}){let{usersPage:r}=ab(yR(e),{mode:`stale-while-revalidate`}),i=rb(gR,r);if(!i)throw Error(`Users page data is unavailable.`);let{users:a,search:o,page:s,totalPages:c,tz:l}=i,[u,d]=(0,AV.useState)(o??``);(0,AV.useEffect)(()=>d(o??``),[o]);let f=a.find(e=>e.id===o),p=[{key:`login`,header:`Login`,width:VM(1,{minWidth:110}),renderCell:e=>q(`a`,{className:`void-admin-user-link`,href:`/admin/users/${e.id}`,title:e.login,children:e.login})},{key:`provider`,header:`Provider`,width:HM(88)},{key:`email`,header:`Email`,width:VM(2,{minWidth:220}),renderCell:e=>q(Na,{maxLines:1,children:e.email??`-`})},{key:`plan`,header:`Plan`,width:HM(100)},{key:`role`,header:`Role`,width:HM(68)},{key:`suspended_reason`,header:`Status`,width:HM(100),renderCell:e=>e.suspended_reason?`suspended`:`active`},{key:`created_at`,header:`Created`,width:HM(220),renderCell:e=>Fx(e.created_at,l)},{key:`actions`,header:`Actions`,width:HM(108),renderCell:e=>q(`form`,{method:`post`,action:`/admin/users/${e.id}/delete`,"data-confirm":`Delete user "${e.login}" and all their projects?`,children:q(Y,{type:`submit`,label:`Delete`,variant:`destructive`,size:`sm`})})}];return J($j,{platformName:t,title:`Users`,username:n,children:[q(`h1`,{children:`Users`}),q(wV,{action:`/admin/users`,kind:`users`,label:`Search users`,value:u,onChange:d,initialValue:o,initialSelection:f?{id:f.id,label:f.login,description:[f.email,f.id].filter(Boolean).join(` · `)}:void 0}),q(AP,{className:`void-admin-users-table`,data:[...a],columns:p,idKey:`id`,textOverflow:`truncate`,hasHover:!0}),a.length===0&&q(`p`,{children:q(`em`,{children:`No users found.`})}),s!=null&&c!=null&&q(SV,{page:s,totalPages:c,baseUrl:`/admin/users`})]})}var AV,jV=o((()=>{Mx(),oR(),qa(),AV=u(f(),1),gb(),XR(),Vx(),nM(),CV(),DV(),kb()})),MV=c({UserDetailPage:()=>NV});function NV({path:e,platformName:t,username:n}){let{userDetail:r}=ab(ER(e),{mode:`stale-while-revalidate`}),i=rb(SR,r);if(!i)throw Error(`User data is unavailable.`);let{user:a,projects:o,deploysToday:s,usage:c,tz:l,plans:u,limits:d}=i;return J($j,{platformName:t,title:a.login,username:n,children:[q(`h1`,{children:a.login}),q(AP,{children:J(qN,{children:[J(Z,{children:[q($,{children:`ID`}),q(Q,{children:a.id})]}),J(Z,{children:[q($,{children:`Provider`}),q(Q,{children:a.provider})]}),J(Z,{children:[q($,{children:`Email`}),q(Q,{children:a.email??`-`})]}),J(Z,{children:[q($,{children:`Role`}),q(Q,{children:a.role})]}),J(Z,{children:[q($,{children:`Status`}),q(Q,{children:a.suspended_reason?`suspended: ${a.suspended_reason}`:`active`})]}),J(Z,{children:[q($,{children:`Created`}),q(Q,{children:Fx(a.created_at,l)})]})]})}),q(`h2`,{children:`Plan`}),J(`form`,{method:`post`,action:`/admin/users/${a.id}/plan`,style:`margin-bottom: 10px`,children:[q(Kz,{label:`Plan`,name:`plan`,initialValue:a.plan,options:u.map(e=>({value:e.id,label:e.archived?`${e.name} (archived)`:e.name}))}),q(Y,{type:`submit`,label:`Update`})]}),J(AP,{children:[q(WN,{children:J(Z,{children:[q($,{children:`Limit`}),q($,{children:`Value`})]})}),J(qN,{children:[J(Z,{children:[q(Q,{children:`Requests / month`}),q(Q,{children:Rx(d.requestsPerMonth)})]}),J(Z,{children:[q(Q,{children:`CPU ms / request`}),q(Q,{children:Rx(d.cpuMsPerRequest)})]}),J(Z,{children:[q(Q,{children:`Sub-requests / invocation`}),q(Q,{children:Rx(d.subRequestsPerInvocation)})]}),J(Z,{children:[q(Q,{children:`Deploys / day`}),J(Q,{children:[s,` / `,Rx(d.deploysPerDay)]})]}),J(Z,{children:[q(Q,{children:`D1 storage`}),q(Q,{children:Rx(d.d1StorageBytes,`bytes`)})]}),J(Z,{children:[q(Q,{children:`R2 storage`}),q(Q,{children:Rx(d.r2StorageBytes,`bytes`)})]}),J(Z,{children:[q(Q,{children:`KV storage`}),q(Q,{children:Rx(d.kvStorageBytes,`bytes`)})]}),J(Z,{children:[q(Q,{children:`AI neurons / month`}),q(Q,{children:Rx(d.aiNeuronsPerMonth)})]}),J(Z,{children:[q(Q,{children:`Retained deployments`}),q(Q,{children:Rx(d.retainedDeployments)})]})]})]}),J(`h2`,{children:[`Current Usage (since `,Px(c.billingPeriodStart),`)`]}),J(`p`,{children:[`Requests: `,Lx(c.totalRequests),` / `,Rx(d.requestsPerMonth)]}),J(`p`,{children:[`Deploys today: `,Lx(s),` / `,Rx(d.deploysPerDay)]}),J(`p`,{children:[`Bandwidth: `,Ix(c.totalBandwidth)]}),c.projects.length>1&&J(Ob.Fragment,{children:[q(`h3`,{children:`Per Project`}),J(AP,{children:[q(WN,{children:J(Z,{children:[q($,{children:`Project`}),q($,{children:`Requests`}),q($,{children:`Bandwidth`})]})}),q(qN,{children:c.projects.map(e=>J(Z,{children:[q(Q,{children:q(`a`,{href:`/admin/projects/${e.projectId}`,children:e.slug})}),q(Q,{children:Lx(e.requests)}),q(Q,{children:Ix(e.bandwidthBytes)})]},e.projectId))})]})]}),q(`h2`,{children:`Suspension`}),a.suspended_reason?q(`form`,{method:`post`,action:`/admin/users/${a.id}/unsuspend`,children:q(Y,{type:`submit`,label:`Unsuspend`})}):J(`form`,{method:`post`,action:`/admin/users/${a.id}/suspend`,"data-confirm":`Suspend "${a.login}" and ${o.length} project(s)? Requests, cron jobs and queue delivery stop. Queue messages are dropped when their retries run out, after about 3 hours by default. Restore does not bring them back.`,children:[q(Wz,{label:`Reason`,name:`reason`,initialValue:`admin_suspended`,placeholder:`Reason...`}),q(Y,{type:`submit`,label:`Suspend`,variant:`destructive`})]}),J(`h2`,{children:[`Projects (`,o.length,`)`]}),o.length>0?J(AP,{children:[q(WN,{children:J(Z,{children:[q($,{children:`Slug`}),q($,{children:`Type`}),q($,{children:`Created`})]})}),q(qN,{children:o.map(e=>J(Z,{children:[q(Q,{children:q(`a`,{href:`/admin/projects/${e.id}`,children:e.slug})}),q(Q,{children:e.type}),q(Q,{children:Fx(e.created_at,l)})]},e.id))})]}):q(`p`,{children:q(`em`,{children:`No projects.`})}),q(`h2`,{children:`Danger Zone`}),q(`form`,{method:`post`,action:`/admin/users/${a.id}/delete`,"data-confirm":`Permanently delete user "${a.login}" and all ${o.length} project(s)? This cannot be undone.`,children:q(Y,{type:`submit`,label:`Delete User`,variant:`destructive`})})]})}var PV=o((()=>{Mx(),oR(),gb(),XR(),Vx(),Zz(),nM(),kb()})),FV=c({ProjectsListPage:()=>IV});function IV({path:e,platformName:t,username:n}){let{projectsPage:r}=ab(bR(e),{mode:`stale-while-revalidate`}),i=rb(_R,r);if(!i)throw Error(`Projects page data is unavailable.`);let{projects:a,search:o,page:s,totalPages:c,siteDomain:l,tz:u}=i,[d,f]=(0,LV.useState)(o??``);(0,LV.useEffect)(()=>f(o??``),[o]);let p=a.find(e=>e.id===o);return J($j,{platformName:t,title:`Projects`,username:n,children:[q(`h1`,{children:`Projects`}),q(wV,{action:`/admin/projects`,kind:`projects`,label:`Search projects`,value:d,onChange:f,initialValue:o,initialSelection:p?{id:p.id,label:p.slug,description:p.owner_login??void 0}:void 0}),q(sz,{projects:a,siteDomain:l,tz:u}),s!=null&&c!=null&&q(SV,{page:s,totalPages:c,baseUrl:`/admin/projects`})]})}var LV,RV=o((()=>{LV=u(f(),1),gb(),XR(),nM(),CV(),cz(),DV(),kb()})),zV,BV=o((()=>{zV=[`starting`,`building`,`deploying`]}));function VV(e){return zV.includes(e)}function HV(e){switch(e){case`complete`:return`color: #16a34a; font-weight: 600`;case`failed`:case`cancelled`:return`color: #dc2626`;case`starting`:case`building`:case`deploying`:return`color: #ca8a04; font-weight: 600`;default:return}}function UV(e){if(!e.started_at)return`-`;let t=Nx(e.started_at).getTime(),n=e.completed_at?Nx(e.completed_at).getTime():Date.now();if(isNaN(t)||isNaN(n)||n<t)return`-`;let r=Math.floor((n-t)/1e3);return r<60?`${r}s`:`${Math.floor(r/60)}m ${r%60}s`}function WV({builds:e,tz:t}){return e.length===0?q(`p`,{children:q(`em`,{children:`No builds.`})}):J(AP,{hasHover:!0,children:[q(WN,{children:J(Z,{children:[q($,{children:`ID`}),q($,{children:`Status`}),q($,{children:`Executor`}),q($,{children:`Instance`}),q($,{children:`Commit`}),q($,{children:`Branch`}),q($,{children:`Started`}),q($,{children:`Duration`})]})}),q(qN,{children:e.map(e=>J(Z,{className:VV(e.status)?`build-active`:void 0,children:[q(Q,{children:q(`a`,{href:`/admin/builds/${e.id}`,children:e.id})}),q(Q,{children:q(`span`,{style:HV(e.status),children:GV[e.status]??e.status})}),q(Q,{children:e.executor}),q(Q,{children:e.instance_type??`-`}),q(Q,{children:e.commit_sha?e.commit_sha.slice(0,7):`-`}),q(Q,{children:e.branch??`-`}),q(Q,{children:e.started_at?Fx(e.started_at,t):`-`}),q(Q,{children:q(`span`,{suppressHydrationWarning:!0,children:UV(e)})})]},e.id))})]})}var GV,KV=o((()=>{oR(),BV(),Vx(),kb(),GV={queued:`○ queued`,starting:`● starting`,building:`● building`,deploying:`● deploying`,complete:`✓ complete`,failed:`✗ failed`,cancelled:`⊘ cancelled`}}));function qV({label:e,selected:t,onChange:n,excludedUserIds:r=XV}){let i=nb(),a=(0,JV.useMemo)(()=>({bootstrap:()=>[],search:async e=>{let{usersPage:t}=await i.request(yR(`/admin/users?search=${encodeURIComponent(e)}`),{mode:`network-only`});if(!t)return[];let{data:n}=await i.readView(gR,t);return n.users.filter(e=>!r.has(e.id)).map(e=>({id:e.id,label:e.login,auxiliaryData:{email:e.email}}))}}),[i,r]);return(0,YV.jsx)(eV,{label:e,placeholder:`Search by login, email, or ID`,searchSource:a,value:t,onChange:n,onChangeQuery:()=>n(null),renderItem:e=>(0,YV.jsx)(IL,{item:e,description:[e.auxiliaryData?.email,e.id].filter(Boolean).join(` · `)}),minQueryLength:2,width:`min(100%, 320px)`,emptySearchResultsText:`No eligible users found.`})}var JV,YV,XV,ZV=o((()=>{oV(),JV=u(f(),1),gb(),XR(),YV=G(),XV=new Set}));function QV({projectId:e}){let[t,n]=(0,$V.useState)(null);return(0,eH.jsxs)(`section`,{id:`owner-transfer`,className:`void-admin-owner-transfer`,children:[(0,eH.jsx)(`h2`,{children:`Transfer Ownership`}),(0,eH.jsx)(`p`,{children:`Transfer this project to an existing Void Platform user. You will review the ownership, plan, suspension, active-work, routing, and usage-counter changes before applying them.`}),(0,eH.jsxs)(`form`,{className:`void-admin-owner-transfer-form`,method:`post`,action:`/admin/projects/${e}/owner/preview`,children:[(0,eH.jsx)(qV,{label:`New owner`,selected:t,onChange:n}),(0,eH.jsx)(`input`,{type:`hidden`,name:`userId`,value:t?.id??``}),(0,eH.jsx)(Y,{type:`submit`,label:`Preview Transfer`,isDisabled:!t})]})]})}var $V,eH,tH=o((()=>{Mx(),$V=u(f(),1),ZV(),eH=G()}));function nH({projectId:e,owner:t,members:n,invitations:r,tz:i}){let[a,o]=(0,rH.useState)(null),s=(0,rH.useMemo)(()=>new Set([...t?[t.id]:[],...n.map(({user:e})=>e.id)]),[t,n]);return(0,iH.jsxs)(`section`,{id:`team`,className:`void-admin-project-team`,children:[(0,iH.jsxs)(`h2`,{children:[`Team members (`,n.length+1,`)`]}),(0,iH.jsx)(`p`,{children:`Add an existing platform user to this project with the selected role.`}),(0,iH.jsx)(`div`,{className:`void-admin-team-table-scroll`,children:(0,iH.jsxs)(AP,{children:[(0,iH.jsx)(WN,{children:(0,iH.jsxs)(Z,{children:[(0,iH.jsx)($,{children:`User`}),(0,iH.jsx)($,{children:`Role`}),(0,iH.jsx)($,{children:`Joined`}),(0,iH.jsx)($,{children:`Actions`})]})}),(0,iH.jsxs)(qN,{children:[(0,iH.jsxs)(Z,{children:[(0,iH.jsx)(Q,{children:t?(0,iH.jsx)(`a`,{href:`/admin/users/${t.id}`,children:t.login}):`Owner account unavailable`}),(0,iH.jsx)(Q,{children:`Owner`}),(0,iH.jsx)(Q,{children:`—`}),(0,iH.jsx)(Q,{children:(0,iH.jsx)(Y,{as:`a`,href:`#owner-transfer`,label:`Transfer ownership`,variant:`secondary`,size:`sm`})})]}),n.map(({user:t,role:n,createdAt:r})=>(0,iH.jsxs)(Z,{children:[(0,iH.jsxs)(Q,{children:[(0,iH.jsx)(`a`,{href:`/admin/users/${t.id}`,children:t.login}),t.email&&(0,iH.jsx)(`span`,{className:`void-admin-team-email`,children:t.email})]}),(0,iH.jsx)(Q,{children:n}),(0,iH.jsx)(Q,{children:Fx(r,i)}),(0,iH.jsx)(Q,{children:(0,iH.jsxs)(`div`,{className:`void-admin-team-actions`,children:[(0,iH.jsxs)(`form`,{method:`post`,action:`/admin/projects/${e}/team/${t.id}/role`,children:[(0,iH.jsx)(Kz,{label:`Role for ${t.login}`,name:`role`,options:aH,initialValue:n,width:160}),(0,iH.jsx)(Y,{type:`submit`,label:`Save role`,size:`sm`})]}),(0,iH.jsx)(`form`,{method:`post`,action:`/admin/projects/${e}/team/${t.id}/remove`,"data-confirm":`Remove ${t.login} from this project?`,children:(0,iH.jsx)(Y,{type:`submit`,label:`Remove`,variant:`destructive`,size:`sm`})})]})})]},t.id))]})]})}),(0,iH.jsx)(`h3`,{children:`Add team member`}),(0,iH.jsxs)(`form`,{className:`void-admin-team-add`,method:`post`,action:`/admin/projects/${e}/team/add`,children:[(0,iH.jsx)(qV,{label:`Search registered users`,selected:a,onChange:o,excludedUserIds:s}),(0,iH.jsx)(`input`,{type:`hidden`,name:`userId`,value:a?.id??``}),(0,iH.jsx)(Kz,{label:`Project role`,name:`role`,options:aH,initialValue:`reader`,width:180}),(0,iH.jsx)(Y,{type:`submit`,label:`Add member`,isDisabled:!a})]}),r.length>0&&(0,iH.jsxs)(iH.Fragment,{children:[(0,iH.jsxs)(`h3`,{children:[`Pending invitations (`,r.length,`)`]}),(0,iH.jsxs)(`p`,{children:[`If email delivery is unavailable, share the invitation ID and ask the user to run`,` `,(0,iH.jsx)(`code`,{children:`void project team accept <invitation-id>`}),`.`]}),(0,iH.jsx)(`div`,{className:`void-admin-team-table-scroll`,children:(0,iH.jsxs)(AP,{children:[(0,iH.jsx)(WN,{children:(0,iH.jsxs)(Z,{children:[(0,iH.jsx)($,{children:`Email`}),(0,iH.jsx)($,{children:`Role`}),(0,iH.jsx)($,{children:`Invitation ID`}),(0,iH.jsx)($,{children:`Expires`}),(0,iH.jsx)($,{children:`Action`})]})}),(0,iH.jsx)(qN,{children:r.map(t=>(0,iH.jsxs)(Z,{children:[(0,iH.jsx)(Q,{children:t.email}),(0,iH.jsx)(Q,{children:t.role}),(0,iH.jsx)(Q,{children:(0,iH.jsx)(`code`,{children:t.id})}),(0,iH.jsx)(Q,{children:Fx(t.expiresAt,i)}),(0,iH.jsx)(Q,{children:(0,iH.jsx)(`form`,{method:`post`,action:`/admin/projects/${e}/team/invitations/${t.id}/revoke`,"data-confirm":`Revoke the invitation for ${t.email}?`,children:(0,iH.jsx)(Y,{type:`submit`,label:`Revoke`,variant:`destructive`,size:`sm`})})})]},t.id))})]})})]})]})}var rH,iH,aH,oH=o((()=>{Mx(),oR(),rH=u(f(),1),ZV(),Vx(),Zz(),iH=G(),aH=[{value:`reader`,label:`Reader`},{value:`collaborator`,label:`Collaborator`},{value:`admin`,label:`Admin`}]}));function sH(e){return Object.prototype.hasOwnProperty.call(gH,e)}function cH({status:e,title:t,description:n,icon:r,isDismissable:i=!1,onDismiss:a,dismissLabel:o,endContent:s,container:c=`card`,elevation:l=`none`,collapsible:u=!0,children:d,xstyle:f,className:p,style:m,ref:h,onFocusCapture:g,onPointerDownCapture:_,...v}){let y=xf(),[b,x]=(0,lH.useState)(!1),S=typeof u==`object`&&u?u:{},{isEnabled:C,isOpen:w,toggle:T}=zB({isCollapsible:u!==!1&&{...S,defaultIsOpen:S.defaultIsOpen??!1}}),E=(0,lH.useRef)(null),D=(0,lH.useId)(),O=dH[e],k=fH[e]??pH,A=mH[e],j=dn(d),M=y(`@astryx.banner.dismiss`),N=o??M,ee=o??(typeof t==`string`?y(`@astryx.banner.dismissTitled`,{dismiss:M,title:t}):M);if(b)return null;let P=(e,t)=>{e instanceof HTMLElement&&e!==document.body&&!t.contains(e)&&(E.current=e)},te=e=>{P(e.relatedTarget,e.currentTarget)},F=e=>{P(document.activeElement,e.currentTarget)},ne=()=>{let e=E.current;x(!0),a?.(),e?.isConnected&&e.focus()},I=C&&j,re=dn(s)||i||I,ie=dn(s)||i,ae=!dn(n)&&ie,oe=j&&(!C||w),se=c===`card`;return(0,uH.jsxs)(`div`,{ref:h,role:k,onFocusCapture:$t(g,te),onPointerDownCapture:$t(_,F),...U(V(`banner-frame`,{container:c,elevation:l}),z(hH.root,_H[l],se&&l!==`none`&&hH.rootElevatedCard,f),p,m),...v,children:[(0,uH.jsxs)(`div`,{...U(V(`banner`,{container:c,status:e}),z(hH.header,ae&&hH.headerCentered,sH(e)&&gH[e],se&&(oe?hH.headerCardWithContent:hH.headerCardStandalone))),children:[(0,uH.jsx)(`div`,{...dn(r)?U(V(`banner-icon`,{status:e}),{className:`x78zum5 x6s0dn4 x2lah0s`}):{className:`x78zum5 x6s0dn4 x2lah0s`},"aria-hidden":`true`,children:dn(r)?r:O==null?null:(0,uH.jsx)(ru,{icon:O,size:`md`,color:A,...V(`banner-icon`,{status:e})})}),(0,uH.jsxs)(`div`,{...{0:{className:`x78zum5 xdt5ytf xxhr3t x98rzlu xeuugli`},1:{className:`x78zum5 xdt5ytf xxhr3t x98rzlu xeuugli xgualba`}}[!!dn(s)<<0],children:[(0,uH.jsx)(`div`,{className:`x1ghz6dp xjb2p0i xcr08ib x2mo6ok x1kq96og x1tgivj0 xj0a0fe`,children:t}),dn(n)&&(0,uH.jsx)(`div`,{...U(V(`banner-description`),{className:`x1ghz6dp xjb2p0i x141an7d x1sodnla x1ltkj2j xv1l7n4 xj0a0fe`}),children:n})]}),re&&(0,uH.jsxs)(`div`,{...z(hH.endArea,ux.inset(St[`--spacing-2`])),children:[s,I&&(0,uH.jsx)(Y,{variant:`ghost`,size:`sm`,label:y(w?`@astryx.banner.collapse`:`@astryx.banner.expand`),tooltip:y(w?`@astryx.banner.collapse`:`@astryx.banner.expand`),icon:(0,uH.jsx)(ru,{icon:`chevronDown`,size:`sm`,color:`inherit`,xstyle:[hH.chevron,w&&hH.chevronExpanded]}),onClick:T,"aria-expanded":w,"aria-controls":oe?D:void 0,isIconOnly:!0}),i&&(0,uH.jsx)(Y,{variant:`ghost`,size:`sm`,label:ee,tooltip:N,icon:(0,uH.jsx)(ru,{icon:`close`,size:`sm`,color:`inherit`}),onClick:ne,isIconOnly:!0})]})]}),oe&&(0,uH.jsx)(`div`,{id:I?D:void 0,...U(V(`banner-content`,{container:c,status:e}),{0:{className:`x1de1mus x8o8v82 x1pzlopt xgbv0en xw8tdv1 x92x3c3 x1t7ytsu x18b5jzi x1q0q8m5 x1j92z86 x1gejf6u xw8gpjh`},1:{className:`x1de1mus x8o8v82 x1pzlopt xgbv0en xw8tdv1 x92x3c3 x1t7ytsu x18b5jzi x1q0q8m5 x1j92z86 x1gejf6u xw8gpjh x1k5g1gk x1eprgri`}}[!!se<<0]),children:d})]})}var lH,uH,dH,fH,pH,mH,hH,gH,_H,vH=o((()=>{lH=u(f(),1),B(),Mx(),uu(),Et(),VB(),W(),dx(),H(),Df(),uH=G(),dH={info:`info`,warning:`warning`,error:`error`,success:`success`},fH={info:`status`,warning:`alert`,error:`alert`,success:`status`},pH=`status`,mH={info:`accent`,warning:`warning`,error:`error`,success:`success`},hH={root:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kMv6JI:`xjb2p0i`,$$css:!0},rootElevatedCard:{kaIpWk:`x1vf2byn`,$$css:!0},header:{k1xSpc:`x78zum5`,kGNEyG:`x1cy8zhl`,kwnvtZ:`x1a02dak`,k1C7PZ:`xak3so`,khm7nJ:`x4olc9o`,k8WAf4:`x8o8v82`,kg3NbH:`x1pzlopt`,$$css:!0},headerCardStandalone:{kaIpWk:`x1vf2byn`,$$css:!0},headerCardWithContent:{krdFHd:`xwxb7qi`,kfmiAY:`x13nour3`,kVL7Gh:`xbiv7yw`,kT0f0o:`x16uus16`,$$css:!0},headerCentered:{kGNEyG:`x6s0dn4`,$$css:!0},endArea:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kwnvtZ:`x1a02dak`,kjj79g:`x13a6bvl`,kOIVth:`x1txdalj`,kmuXW:`x2lah0s`,ks0D6T:`x193iq5w`,keTefX:`xvc5jky`,kqGvvJ:`x81ka23`,$$css:!0},chevron:{k1ekBW:`x11xpdln`,kIyJzY:`xuedmi6 x12w9bfk`,kAMwcw:`xlr8y92`,$$css:!0},chevronExpanded:{k3aq6I:`x19jd1h0`,$$css:!0}},gH={info:{kWkggS:`xgcxg3y`,$$css:!0},warning:{kWkggS:`x24i8r5`,$$css:!0},error:{kWkggS:`x1pritpl`,$$css:!0},success:{kWkggS:`xu13z74`,$$css:!0}},_H={none:{kGVxlE:`x1gnnqk1`,$$css:!0},low:{kGVxlE:`x1i5ehqx`,$$css:!0},med:{kGVxlE:`x14hfi27`,$$css:!0},high:{kGVxlE:`x1kcpxr7`,$$css:!0}},cH.displayName=`Banner`})),yH=o((()=>{vH()}));function bH(e){return e===void 0?`not initialized`:e?`protected`:`public`}function xH(e){return e===`error`?`needs attention`:e}function SH(e){if(e.invalid)return`invalid configuration`;if(!e.configured)return`not configured`;let t=e.enabled?`enabled`:`disabled`;return e.status&&e.status!==`ready`?`${t}, ${xH(e.status)}`:t}function CH(e){return e.invalid?`The saved Zero Trust configuration is invalid.`:!e.configured||!e.enabled&&!e.operation?`Project Zero Trust is not enabled.`:e.operation?`A Zero Trust ${e.operation} operation is running. Project changes are available after it finishes.`:`Platform Zero Trust status: ${e.status?xH(e.status):`not ready`}.`}function wH({projectId:e,zeroTrust:t}){let{state:n}=t;return(0,TH.jsxs)(`section`,{id:`zero-trust`,className:`void-admin-project-zero-trust`,children:[(0,TH.jsx)(`h2`,{children:`Zero Trust`}),(0,TH.jsxs)(`div`,{className:`void-admin-project-zero-trust-state`,children:[(0,TH.jsxs)(`span`,{children:[`Platform: `,SH(t)]}),(n!==null||t.enabled)&&(0,TH.jsxs)(TH.Fragment,{children:[(0,TH.jsxs)(`span`,{children:[`Desired: `,bH(n?.desired_protected)]}),(0,TH.jsxs)(`span`,{children:[`Effective: `,bH(n?.effective_protected)]}),(0,TH.jsx)(CL,{label:n?.state??`not initialized`,variant:n?.state===`error`?`error`:n?.state===`reconciling`?`info`:n?.state===`protected`?`success`:`neutral`})]})]}),n?.last_error&&(0,TH.jsx)(cH,{status:`error`,title:`Last error`,description:n.last_error}),t.available?(0,TH.jsxs)(`div`,{className:`void-admin-team-actions`,children:[(0,TH.jsxs)(`form`,{method:`post`,action:`/admin/projects/${e}/zero-trust`,...n?.desired_protected?{"data-confirm":`Make this project public? Anyone can reach its hostnames without signing in.`}:{},children:[(0,TH.jsx)(`input`,{type:`hidden`,name:`protected`,value:n?.desired_protected?`false`:`true`}),(0,TH.jsx)(Y,{type:`submit`,label:n?.desired_protected?`Make project public`:`Protect project`,variant:n?.desired_protected?`destructive`:`primary`})]}),(0,TH.jsx)(`form`,{method:`post`,action:`/admin/projects/${e}/zero-trust/reconcile`,children:(0,TH.jsx)(Y,{type:`submit`,label:`Reconcile`,variant:`secondary`})})]}):(0,TH.jsxs)(`div`,{className:`void-admin-auth-recovery`,children:[(0,TH.jsx)(`p`,{children:CH(t)}),(0,TH.jsx)(Y,{href:EH,label:t.operation?`View status`:!t.configured||!t.enabled?`Configure Zero Trust`:`Review configuration`,variant:`secondary`,size:`sm`})]})]})}var TH,EH,DH=o((()=>{OL(),yH(),Mx(),TH=G(),EH=`/admin/zero-trust`})),OH=c({ProjectDetailPage:()=>kH});function kH({path:e,platformName:t,username:n}){let{projectDetail:r}=ab(DR(e),{mode:`stale-while-revalidate`}),i=rb(CR,r);if(!i)throw Error(`Project data is unavailable.`);let{project:a,deployments:o,resources:s,owner:c,teamMembers:l,pendingTeamInvitations:u,domains:d,builds:f,zeroTrust:p,cfAccountId:m,deployUrl:h,tz:g}=i;return J($j,{platformName:t,title:a.slug,username:n,children:[q(`h1`,{children:a.slug}),q(AP,{children:J(qN,{children:[J(Z,{children:[q($,{children:`ID`}),q(Q,{children:a.id})]}),J(Z,{children:[q($,{children:`Slug`}),q(Q,{children:a.slug})]}),J(Z,{children:[q($,{children:`URL`}),q(Q,{children:q(`a`,{href:h,target:`_blank`,rel:`noopener noreferrer`,children:h})})]}),J(Z,{children:[q($,{children:`Custom Domain`}),q(Q,{children:d.length>0?d.map(e=>J(`span`,{children:[q(`a`,{href:`https://${e.hostname}`,target:`_blank`,rel:`noopener noreferrer`,children:e.hostname}),` `,`(`,e.status,`)`,` `]},e.id)):q(Ob.Fragment,{children:`None`})})]}),J(Z,{children:[q($,{children:`Owner`}),q(Q,{children:c?q(`a`,{href:`/admin/users/${c.id}`,children:c.login}):a.user_id})]}),J(Z,{children:[q($,{children:`Type`}),q(Q,{children:a.type})]}),J(Z,{children:[q($,{children:`Email`}),q(Q,{children:q(`a`,{href:`/admin/email/${a.id}`,children:`usage, limits, destinations`})})]}),J(Z,{children:[q($,{children:`Created`}),q(Q,{children:Fx(a.created_at,g)})]})]})}),J(`h2`,{children:[`Resources (`,s.length,`)`]}),s.length>0?J(AP,{children:[q(WN,{children:J(Z,{children:[q($,{children:`Type`}),q($,{children:`Binding`}),q($,{children:`CF ID`})]})}),q(qN,{children:s.map(e=>J(Z,{children:[q(Q,{children:e.type}),q(Q,{children:e.binding_name}),q(Q,{children:m&&(e.type===`d1`||e.type===`kv`||e.type===`r2`)?q(`a`,{href:e.type===`d1`?`https://dash.cloudflare.com/${m}/workers/d1/databases/${e.cf_id}/metrics`:e.type===`kv`?`https://dash.cloudflare.com/${m}/workers/kv/namespaces/${e.cf_id}/metrics`:`https://dash.cloudflare.com/${m}/r2/default/buckets/${e.cf_id}`,target:`_blank`,rel:`noopener noreferrer`,children:e.cf_id}):e.cf_id})]},e.id))})]}):q(`p`,{children:q(`em`,{children:`No resources provisioned.`})}),J(`h2`,{children:[`Recent Deployments (`,o.length,`)`]}),q(rz,{deployments:o,activeDeploymentId:a.active_deployment_id,tz:g}),J(`h2`,{children:[`Builds (`,f.length,`)`]}),q(WV,{builds:f,tz:g}),q(wH,{projectId:a.id,zeroTrust:p}),q(nH,{projectId:a.id,owner:c,members:l,invitations:u,tz:g}),q(QV,{projectId:a.id}),q(`h2`,{children:`Danger Zone`}),q(`form`,{method:`post`,action:`/admin/projects/${a.id}/delete`,"data-confirm":`Permanently delete project "${a.slug}" and all its resources? This cannot be undone.`,children:q(Y,{type:`submit`,label:`Delete Project`,variant:`destructive`})})]})}var AH=o((()=>{Mx(),oR(),gb(),XR(),KV(),iz(),Vx(),nM(),tH(),oH(),DH(),kb()})),jH=c({ProjectOwnerPreviewPage:()=>NH});function MH(e){return e.suspended?`Suspended (${e.suspendedReason??`unknown reason`})`:`Active`}function NH({result:e,convergenceOnly:t,operationBlocked:n,projectId:r,userId:i,platformName:a,username:o}){return J($j,{platformName:a,title:`${t?`Converge`:`Transfer`} ${e.target.slug}`,username:o,children:[J(`h1`,{children:[t?`Converge Ownership State`:`Transfer Ownership`,`: `,e.target.slug]}),J(AP,{children:[q(WN,{children:J(Z,{children:[q($,{children:`Account`}),q($,{children:`User`}),q($,{children:`Plan`}),q($,{children:`Status`})]})}),J(qN,{children:[J(Z,{children:[q($,{children:`Current owner`}),J(Q,{children:[e.currentOwner.login,` (`,q(`code`,{children:e.currentOwner.id}),`)`]}),q(Q,{children:e.currentOwner.plan}),q(Q,{children:MH(e.currentOwner)})]}),J(Z,{children:[q($,{children:`New owner`}),J(Q,{children:[e.newOwner.login,` (`,q(`code`,{children:e.newOwner.id}),`)`]}),q(Q,{children:e.newOwner.plan}),q(Q,{children:MH(e.newOwner)})]})]})]}),t?J(`p`,{children:[`This project is already owned by the target. This is a convergence-only operation: applying it repairs membership, usage-counter, routing, and account metadata without changing ownership. The owner's stored project role is`,` `,q(`strong`,{children:e.targetPreviousRole??`none`}),`. Usage transfer is`,` `,e.usageTransfer,`.`]}):J(`p`,{children:[`The former owner will become a `,q(`strong`,{children:e.formerOwnerRole}),`. The target's current project role is `,q(`strong`,{children:e.targetPreviousRole??`none`}),`. Usage transfer is `,e.usageTransfer,`.`]}),q(`h2`,{children:`Operation blockers`}),e.blockers.length>0?J(Ob.Fragment,{children:[q(`ul`,{children:e.blockers.map(e=>J(`li`,{children:[e.kind,`: `,e.id,` (`,e.status,`)`]},`${e.kind}:${e.id}`))}),t&&!n?q(`p`,{children:`Active work does not block convergence.`}):null]}):q(`p`,{children:`None.`}),q(`h2`,{children:`Convergence`}),q(`p`,{children:e.counterUpdates.detachUserId?J(Ob.Fragment,{children:[`Usage counters: detach from `,q(`code`,{children:e.counterUpdates.detachUserId}),`, attach to`,` `,q(`code`,{children:e.counterUpdates.attachUserId}),`.`]}):J(Ob.Fragment,{children:[`Usage counters: attach or reconcile with`,` `,q(`code`,{children:e.counterUpdates.attachUserId}),`; no former-owner detachment is needed.`]})}),J(`p`,{children:[`Routing and account entries: `,e.routingUpdates.join(`, `)]}),q(`h2`,{children:`GitHub authorization provenance`}),e.github?J(`p`,{children:[e.github.repository,` installation `,e.github.installationId,`, authorized by`,` `,e.github.authorizedByUserId,` (`,e.github.executor,`).`]}):q(`p`,{children:`No GitHub connection.`}),n?q(`p`,{children:t?`Project deletion blocks convergence.`:`Resolve or cancel all active work before applying this transfer.`}):J(`form`,{method:`post`,action:`/admin/projects/${r}/owner`,className:`void-admin-team-actions`,children:[q(`input`,{type:`hidden`,name:`userId`,value:i}),q(Y,{type:`submit`,label:t?`Apply Convergence`:`Apply Ownership Transfer`,variant:`destructive`}),q(Y,{href:`/admin/projects/${r}`,label:`Cancel`,variant:`secondary`})]})]})}var PH=o((()=>{Mx(),oR(),nM(),kb()})),FH=c({DeploymentsListPage:()=>IH});function IH({path:e,platformName:t,username:n}){let{deploymentsPage:r}=ab(xR(e),{mode:`stale-while-revalidate`}),i=rb(vR,r);if(!i)throw Error(`Deployments page data is unavailable.`);let{deployments:a,search:o,page:s,totalPages:c,tz:l}=i,[u,d]=(0,LH.useState)(o??``);(0,LH.useEffect)(()=>d(o??``),[o]);let f=a.find(e=>e.id===o);return J($j,{platformName:t,title:`Deployments`,username:n,children:[q(`h1`,{children:`Deployments`}),q(wV,{action:`/admin/deployments`,kind:`deployments`,label:`Search deployments`,value:u,onChange:d,initialValue:o,initialSelection:f?{id:f.id,label:f.id,description:[f.project_slug,f.status].filter(Boolean).join(` · `)}:void 0}),q(rz,{deployments:a,showProject:!0,tz:l}),s!=null&&c!=null&&q(SV,{page:s,totalPages:c,baseUrl:`/admin/deployments`})]})}var LH,RH=o((()=>{LH=u(f(),1),gb(),XR(),iz(),nM(),CV(),DV(),kb()})),zH=c({CliVersionsPage:()=>VH});function BH({rows:e,title:t,tz:n}){let r=[{key:`cli_version`,header:`Version`,width:VM(2,{minWidth:160}),renderCell:e=>q(Na,{maxLines:1,children:e.cli_version??`unknown`})},{key:`deployments`,header:`Deploys`,width:VM(1,{minWidth:96}),renderCell:e=>Lx(e.deployments)},{key:`projects`,header:`Projects`,width:VM(1,{minWidth:96}),renderCell:e=>Lx(e.projects)},{key:`users`,header:`Users`,width:VM(1,{minWidth:96}),renderCell:e=>Lx(e.users)},{key:`first_seen`,header:`First Seen`,width:HM(220),renderCell:e=>Fx(e.first_seen,n)},{key:`last_seen`,header:`Last Seen`,width:HM(220),renderCell:e=>Fx(e.last_seen,n)}];return J(Ob.Fragment,{children:[q(Ba,{level:2,children:t}),e.length===0?q(`p`,{children:q(`em`,{children:`No deployments found.`})}):q(AP,{data:[...e],columns:r,idKey:e=>e.cli_version??`unknown`,textOverflow:`truncate`,hasHover:!0})]})}function VH({path:e,platformName:t,username:n}){let{cliVersions:r}=ab(NR(e),{mode:`stale-while-revalidate`}),i=rb(AR,r);if(!i)throw Error(`CLI version data is unavailable.`);let{allTime:a,last30Days:o,tz:s}=i;return J($j,{platformName:t,title:`CLI Versions`,username:n,children:[q(Ba,{level:1,children:`CLI Versions`}),q(BH,{rows:o,title:`Last 30 Days`,tz:s}),q(BH,{rows:a,title:`All Time`,tz:s})]})}var HH=o((()=>{oR(),qa(),gb(),XR(),Vx(),nM(),kb()})),UH=c({SignupControlPage:()=>qH});function WH({value:e}){return q(CL,{label:e?`Yes`:`No`,variant:e?`success`:`neutral`})}function GH({label:e,value:t}){let{copy:n,isCopied:r}=FT({announce:`${e} copied`}),[i,a]=(0,JH.useState)(!1);return J(`div`,{className:`void-admin-access-copy-value`,children:[J(gL,{label:e,children:[q(uL,{label:``,isReadOnly:!0,value:t,onFocus:e=>e.currentTarget.select()}),q(Y,{type:`button`,label:`${r?`Copied`:`Copy`} ${e}`,tooltip:r?`Copied`:`Copy`,icon:(0,JH.createElement)(r?Wp:Em,{size:16,"aria-hidden":!0}),isIconOnly:!0,variant:`ghost`,size:`sm`,onClick:async()=>a(!await n(t))})]}),i&&q(`span`,{role:`status`,children:`Select the value to copy it manually.`})]})}function KH({status:e}){return e===`sent`?q(CL,{label:`Sent`,variant:`success`}):e===`failed`?q(CL,{label:`Failed`,variant:`error`}):e===`unavailable`?q(CL,{label:`Email off`,variant:`neutral`}):q(CL,{label:`Not recorded`,variant:`neutral`})}function qH({path:e,platformName:t,username:n}){let{signupControl:r}=ab(PR(e),{mode:`stale-while-revalidate`}),i=rb(jR,r);if(!i)throw Error(`Access settings are unavailable.`);let{enabled:a,admission:o,initialized:s,revision:c,methods:l,protection:u,connections:d,directEntries:f,invitations:p,page:m,totalPages:h,emailEnabled:g,connectCommand:_,inviteUrl:v,result:y,tz:b}=i,x=o?.mode??(a?`restricted`:`public`),S=l.filter(e=>e.enabled&&e.kind!==`github`);return q($j,{platformName:t,title:`Access`,username:n,children:J(`div`,{className:`void-admin-access-page`,children:[J(`header`,{className:`void-admin-access-intro`,children:[q(Ba,{level:1,children:`Access`}),q(`p`,{children:`Decide who can join this platform and manage invitations and individual grants.`})]}),q(`section`,{"aria-labelledby":`access-policy-heading`,children:q(TM,{title:`Who can join?`,titleId:`access-policy-heading`,description:`These rules apply when someone creates a platform account.`,headerAccessory:q(CL,{label:x===`public`?`Public`:x===`company`?`Company or approved`:`Approved only`,variant:x===`public`?`warning`:`neutral`}),children:s?J(`form`,{method:`post`,action:`/admin/signup-control/policy`,className:`void-admin-access-form`,children:[q(`input`,{type:`hidden`,name:`revision`,value:c??0}),q(Kz,{label:`Signup policy`,name:`mode`,initialValue:x,options:[{value:`restricted`,label:`Only individually approved people`},{value:`company`,label:`Company-approved or individually approved people`},{value:`public`,label:`Anyone with an enabled login method`}],width:420}),q(`p`,{children:x===`restricted`?`An invitation or direct grant is required before someone can create an account.`:x===`company`?`People who meet a selected company policy or have an individual grant can join.`:`Anyone with an enabled login method can join. Individual invitations are unnecessary.`}),q(TM,{title:`Company-approved methods`,headingLevel:3,description:`Select which existing login checks qualify someone when company signup is chosen.`,children:J(`div`,{className:`void-admin-access-checkboxes`,children:[S.map(e=>q(qz,{label:e.label,name:`connections`,submitValue:e.id,initialValue:o?.mode===`company`&&o.connections.includes(e.id)},e.id)),u&&q(qz,{label:`Anyone who passes Cloudflare Access protection`,name:`access`,submitValue:`true`,initialValue:o?.mode===`company`&&o.access}),S.length===0&&!u&&J(`p`,{children:[`No company-approved methods are available. Configure one in`,` `,q(`a`,{href:`/admin/config/auth`,children:`Authentication`}),` before selecting this policy.`]})]})}),q(`p`,{children:`New accounts are ordinary users. Changing this policy does not change Cloudflare Access protection.`}),q(Y,{type:`submit`,label:`Save signup policy`})]}):J(`div`,{className:`void-admin-access-form`,children:[J(`p`,{children:[`To use company-approved signup, first set up`,` `,q(`a`,{href:`/admin/config/auth`,children:`Authentication settings`}),`.`]}),J(`form`,{method:`post`,action:`/admin/signup-control/toggle`,className:`void-admin-access-form`,children:[J(`p`,{children:[`Signup is`,` `,a?`restricted to approved people`:`open to anyone with an enabled login`,`.`]}),q(Y,{type:`submit`,label:a?`Open signup`:`Restrict signup`,variant:`secondary`})]})]})})}),q(`section`,{"aria-labelledby":`access-invite-heading`,children:J(TM,{title:`Invite people`,titleId:`access-invite-heading`,description:x===`public`?`Signup is public. Share the platform address with anyone you want to join.`:g?`Create an invitation for each email address. We'll email them connection instructions.`:`Create an invitation for each email address. Since email is off, share the platform link below yourself.`,headerAccessory:q(CL,{label:g?`Email enabled`:`Email not enabled`,variant:g?`success`:`neutral`}),children:[y===`invited`&&q(`p`,{role:`status`,className:`void-admin-access-notice`,children:g?`Invitations created. Check the history below to see whether email was sent.`:`Invitations created. Share the platform link below with each person.`}),x!==`public`&&J(`form`,{method:`post`,action:`/admin/invitations/send`,className:`void-admin-access-form`,children:[q(Gz,{label:`Email addresses`,name:`email`,placeholder:`person@example.com, teammate@example.com`,required:!0,width:440}),q(`p`,{children:`Each person must sign in with a login method that supplies the same verified email address.`}),q(Y,{type:`submit`,label:g?`Invite and email`:`Create invitations`})]}),J(`div`,{className:`void-admin-access-share`,children:[q(`h3`,{children:g?`Share connection details`:`Share these details manually`}),q(GH,{label:`Platform invitation page`,value:v}),q(GH,{label:`Void CLI connection command`,value:_})]})]})}),q(`section`,{"aria-labelledby":`access-grants-heading`,children:J(TM,{title:`Direct grants`,titleId:`access-grants-heading`,description:J(Ob.Fragment,{children:[`Allow a GitHub username, email address or domain, or login identity to sign up. These rules do not create invitations or send email.`,x===`public`&&` While signup is public, grants do not limit who can join.`]}),children:[J(`form`,{method:`post`,action:`/admin/signup-control/add`,className:`void-admin-access-fields`,children:[q(Kz,{label:`Grant type`,name:`type`,initialValue:`github`,options:[{value:`github`,label:`GitHub username`},{value:`email`,label:`Email or domain pattern`}],width:210}),q(Gz,{label:`Pattern`,name:`pattern`,placeholder:`username, person@example.com, *@company.com`,required:!0,width:360}),q(Wz,{label:`Note`,name:`note`,placeholder:`Optional`,width:180}),q(Y,{type:`submit`,label:`Add grant`})]}),d.length>0&&J(`form`,{method:`post`,action:`/admin/signup-control/add`,className:`void-admin-access-fields`,children:[q(`input`,{type:`hidden`,name:`type`,value:`identity`}),q(Kz,{label:`Login connection`,name:`connectionId`,initialValue:d[0]?.id??``,options:d.map(e=>({value:e.id,label:`${e.label} (${e.id})`})),width:250,hasSearch:!0}),q(Wz,{label:`Provider subject`,name:`subject`,placeholder:`Exact provider subject`,required:!0,maxLength:255,width:340}),q(Wz,{label:`Note`,name:`note`,placeholder:`Optional`,width:180}),q(Y,{type:`submit`,label:`Add identity`})]}),q(`p`,{children:`Identity grants match the selected login connection and provider subject exactly, including case. Email is not inferred or linked.`}),q(`div`,{className:`void-admin-access-table`,children:J(AP,{hasHover:!0,children:[q(WN,{children:J(Z,{children:[q($,{children:`Type`}),q($,{children:`Grant`}),q($,{children:`Note`}),q($,{children:`Accepted`}),q($,{children:`Deployed`}),q($,{children:`Actions`})]})}),q(qN,{children:f.map(e=>J(Z,{children:[q(Q,{children:e.type}),q(Q,{children:e.type===`identity`?`${e.connectionId}: ${e.subject}`:e.pattern}),q(Q,{children:e.note||`—`}),q(Q,{children:q(WH,{value:e.accepted})}),q(Q,{children:q(WH,{value:e.deployed})}),q(Q,{children:J(`form`,{method:`post`,action:`/admin/signup-control/delete`,children:[q(`input`,{type:`hidden`,name:`index`,value:e.index}),q(Y,{type:`submit`,label:`Remove`,variant:`destructive`,size:`sm`})]})})]},e.type===`identity`?`${e.type}-${e.connectionId}-${e.subject}`:`${e.type}-${e.pattern}`))})]})}),f.length===0&&q(`p`,{children:`No direct grants yet.`})]})}),q(`section`,{"aria-labelledby":`access-history-heading`,children:J(TM,{title:`Invitation history`,titleId:`access-history-heading`,description:`Invitation status and email delivery are tracked separately. Invitations do not expire.`,footer:h>1?q(SV,{page:m,totalPages:h,baseUrl:`/admin/signup-control`}):void 0,children:[q(`div`,{className:`void-admin-access-table`,children:J(AP,{hasHover:!0,children:[q(WN,{children:J(Z,{children:[q($,{children:`Email`}),q($,{children:`Access`}),q($,{children:`Email delivery`}),q($,{children:`Invited by`}),q($,{children:`Created`}),q($,{children:`Accepted`}),q($,{children:`Revoked`}),q($,{children:`Actions`})]})}),q(qN,{children:p.map(e=>J(Z,{children:[q(Q,{children:e.email}),q(Q,{children:q(CL,{label:e.status,variant:e.status===`pending`?`warning`:e.status===`revoked`?`error`:`success`})}),q(Q,{children:q(KH,{status:e.email_delivery_status})}),q(Q,{children:e.invited_by_login??e.invited_by}),q(Q,{children:e.created_at?Fx(e.created_at,b):`—`}),q(Q,{children:e.accepted_at?Fx(e.accepted_at,b):`—`}),q(Q,{children:e.revoked_at?J(Ob.Fragment,{children:[Fx(e.revoked_at,b),` by`,` `,e.revoked_by_login??e.revoked_by??`?`]}):`—`}),J(Q,{children:[e.status===`pending`&&J(`form`,{method:`post`,action:`/admin/invitations/revoke`,children:[q(`input`,{type:`hidden`,name:`id`,value:e.id}),q(Y,{type:`submit`,label:`Revoke`,variant:`destructive`,size:`sm`})]}),e.status===`accepted`&&e.grantIndex!==null&&J(`form`,{method:`post`,action:`/admin/signup-control/delete`,children:[q(`input`,{type:`hidden`,name:`index`,value:e.grantIndex}),q(Y,{type:`submit`,label:`Remove signup grant`,variant:`destructive`,size:`sm`})]})]})]},e.id))})]})}),p.length===0&&q(`p`,{children:`No invitations yet.`})]})})]})})}var JH,YH=o((()=>{OL(),Mx(),ZE(),SL(),oR(),qa(),hL(),Yh(),JH=u(f(),1),gb(),XR(),DM(),Vx(),Zz(),nM(),CV(),kb()}));function XH({ref:e,label:t,isLabelHidden:n=!1,description:r,value:i,onChange:a,orientation:o=`vertical`,isDisabled:s=!1,disabledMessage:c,isRequired:l=!1,isOptional:u=!1,size:d=`md`,status:f,labelTooltip:p,width:m,xstyle:h,className:g,style:_,"data-testid":v,htmlName:y,children:b}){let x=(0,ZH.useId)(),S=y??x,C=(0,ZH.useId)(),w=(0,ZH.useId)(),T=(0,ZH.useId)(),E=(0,ZH.useId)(),D=(0,ZH.useRef)(null),O=KP({isRequired:l,isOptional:u}),k=s&&!!c,A=va({placement:`above`,focusTrigger:`always`,isEnabled:k}),j=(0,ZH.useMemo)(()=>({name:S,value:i,onChange:a,isDisabled:s,hasDisabledMessage:k,isRequired:l,size:d,status:f}),[S,i,a,s,k,l,d,f]),M=(0,ZH.useCallback)(e=>{if(i!==``)return;let t=D.current;if(!t)return;let n=e.relatedTarget;if(n){if(t.contains(n))return}else if(document.activeElement&&document.activeElement!==e.target&&t.contains(document.activeElement))return;let r=Array.from(t.querySelectorAll(`input[type="radio"]:not([disabled])`));if(r.length===0)return;let a=e.target,o=r.findIndex(e=>e===a);if(o===-1)return;let s=o===r.length-1?r[r.length-1]:r[0];a!==s&&s.focus()},[i]);return(0,QH.jsxs)(aF,{ref:e,"data-testid":v,label:t,isLabelHidden:n,description:r,inputID:C,labelID:w,isGroupLabel:!0,descriptionID:r?T:void 0,isOptional:u,isRequired:l,isDisabled:s,status:f?{type:f.type,message:f.message,messageID:f.message?E:void 0}:void 0,labelTooltip:p,statusVariant:`detached`,width:m,xstyle:h,className:g,style:_,children:[(0,QH.jsx)(`div`,{ref:e=>{D.current=e,A.ref(e)},role:`radiogroup`,"aria-labelledby":w,onFocus:M,"aria-describedby":[r?T:null,f?.message?E:null,k?A.describedBy:null].filter(Boolean).join(` `)||void 0,"aria-invalid":f?.type===`error`||void 0,"aria-required":O||void 0,...U(V(`radio-list`,{orientation:o,size:d}),{0:{className:`x78zum5 x1q0g3np x9mgr7n`},1:{className:`x78zum5 xdt5ytf x1txdalj`}}[(o===`vertical`)<<0]),children:(0,QH.jsx)($H,{value:j,children:b})}),k&&A.renderTooltip(c)]})}var ZH,QH,$H,eU=o((()=>{Ar(),ZH=u(f(),1),uF(),du(),JP(),W(),H(),QH=G(),$H=Tr(null),$H.displayName=`RadioListContext`,XH.displayName=`RadioList`}));function tU({ref:e,label:t,"aria-label":n,value:r,description:i,isDisabled:a=!1,startContent:o,endContent:s,xstyle:c,className:l,style:u,onClick:d,...f}){let p=(0,nU.use)($H);if(!p)throw Error(`RadioListItem must be used within an RadioList`);let m=(0,nU.useId)(),h=(0,nU.useId)(),g=(0,nU.useId)(),_=p.isDisabled||a,v=p.hasDisabledMessage&&!a,y=p.value===r,b=dn(i),x=p.size,S=qk(`radio`),C=(0,nU.useRef)(null),{focusProps:w}=JE(C,_),T=(0,nU.useRef)(null),E=(0,rU.jsxs)(`div`,{...z(iU.radioWrapper,aU[x],!_&&iU.indicatorPressOverlay),...w,children:[(0,rU.jsx)(`input`,{ref:T,id:m,type:`radio`,name:p.name,value:r,checked:y,disabled:_&&!v,"aria-disabled":v?`true`:void 0,form:v?``:void 0,required:p.isRequired,onChange:()=>{_||p.onChange(r)},onClick:d,"aria-label":n,"aria-labelledby":n==null?h:void 0,"aria-describedby":b?g:void 0,...z(iU.input,On.centerInline(`-50%`),iU.inputCoarse,aU[x],_&&iU.inputDisabled)}),(0,rU.jsx)(`span`,{ref:C,className:`xjp7ctv`,children:(0,rU.jsx)(S,{state:y?`checked`:`unchecked`,size:x,isDisabled:_})})]}),D=dn(o)?(0,rU.jsxs)(rU.Fragment,{children:[E,o]}):E;return(0,rU.jsx)(GC,{ref:e,startContent:D,interactiveRef:T,isDisabled:_,label:(0,rU.jsx)(`span`,{id:h,children:t}),description:b?(0,rU.jsx)(`span`,{id:g,children:i}):void 0,endContent:s,xstyle:[!_&&Sk,oU.root,c],...U(V(`radio-list-item`,{size:x,selected:y?`selected`:null,disabled:_?`disabled`:null}),{className:l,style:u}),...f})}var nU,rU,iU,aU,oU,sU=o((()=>{nU=u(f(),1),B(),eU(),W(),Ck(),XE(),Yk(),$C(),H(),rU=G(),iU={radioWrapper:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,kHBbk8:`xc8icb0`,$$css:!0},indicatorPressOverlay:{k5JduY:`x1s928wv`,kwXMNM:`x1j6awrg`,kv0HGH:`xarstr8`,kUfP38:`xq94oqs`,kloYau:`x2q1x1w`,ks3ayO:`xyhc2n1 x2kv6q6`,$$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}},aU={sm:{kzqmXN:`xw4jnvo`,kZKoxP:`x1qx5ct2`,$$css:!0},md:{kzqmXN:`xvy4d1p`,kZKoxP:`xxk0z11`,$$css:!0}},oU={root:{k8WAf4:`xt970qd`,kg3NbH:`xnjsko4`,kaIpWk:`x2u8bby`,k7Eaqz:`xeuugli`,kWkggS:`xjbqb8w`,$$css:!0}},tU.displayName=`RadioListItem`})),cU=o((()=>{eU(),sU()})),lU=c({EmailSettingsPage:()=>dU});function uU(){return J(`header`,{className:`void-admin-email-intro`,children:[q(Ba,{level:1,children:`Email`}),q(`p`,{children:`Manage email settings for the platform. Each project’s email page contains its usage, limits, and domains.`})]})}function dU({path:e,platformName:t,username:n,emailEnabled:r}){return r===!1?q($j,{platformName:t,title:`Email`,username:n,children:J(`div`,{className:`void-admin-email-settings`,children:[q(uU,{}),J(TM,{title:`Enable email`,children:[q(`p`,{children:`Email is not enabled on this platform.`}),q(`p`,{children:`Set up a shared sender domain and Cloudflare zone, then upgrade the platform.`}),q(Y,{as:`a`,href:mU,label:`How to enable email`,variant:`secondary`})]})]})}):q(fU,{path:e,platformName:t,username:n})}function fU({path:e,platformName:t,username:n}){let{emailSettings:r}=ab(WR(e),{mode:`stale-while-revalidate`}),i=rb(HR,r);if(!i)throw Error(`Email settings are unavailable.`);let{policy:a,management:o,senderDomain:s}=i,[c,l]=(0,pU.useState)(a.mode),[u,d]=(0,pU.useState)(o);return q($j,{platformName:t,title:`Email`,username:n,children:J(`div`,{className:`void-admin-email-settings`,children:[q(uU,{}),J(TM,{title:`Recipient policy`,children:[J(`p`,{children:[`Choose which recipients can receive email sent from the shared sender`,s?J(Ob.Fragment,{children:[` `,`(`,q(`code`,{children:`<slug>+tag@${s}`}),`)`]}):null,`. This does not affect email sent from custom domains.`]}),J(`form`,{method:`post`,action:`/admin/email/policy`,className:`void-admin-email-choice-form`,children:[J(XH,{label:`Recipient policy`,isLabelHidden:!0,size:`sm`,htmlName:`mode`,value:c,onChange:e=>l(e),children:[q(tU,{value:`verified`,label:`verified`,description:`Only each project's verified destinations (default)`}),q(tU,{value:`domains`,label:`domains`,description:`Verified destinations, plus any address on these domains. Addresses on the platform's own mail domain stay verified-destination-only.`}),q(tU,{value:`any`,label:`any`,description:`Every recipient; addresses on the platform's own mail domain stay verified-destination-only, so no project reaches another project's inbox without its consent.`})]}),q(Gz,{label:`Allowed domains`,name:`domains`,initialValue:a.domains.join(`
122
- `),width:360,placeholder:`example.com, corp.example.net`}),q(Y,{type:`submit`,label:`Save policy`})]}),J(`p`,{children:[`With `,q(`code`,{children:`domains`}),` or `,q(`code`,{children:`any`}),`, Cloudflare still refuses a destination it has not verified unless the platform mail domain is onboarded for Email Sending (Workers Paid). Those refusals arrive as per-recipient `,q(`code`,{children:`UNVERIFIED_DESTINATION`}),` `,`results.`]})]}),J(TM,{title:`Domain management`,children:[q(`p`,{children:`Who registers custom email domains for projects.`}),J(`form`,{method:`post`,action:`/admin/email/settings`,className:`void-admin-email-choice-form`,children:[J(XH,{label:`Domain management`,isLabelHidden:!0,size:`sm`,htmlName:`domains`,value:u,onChange:e=>d(e),children:[q(tU,{value:`self-serve`,label:`self-serve`,description:`Project owners grant a Cloudflare credential from void email domain add.`}),q(tU,{value:`admin`,label:`admin`,description:`Administrators add domains; void email domain add prints the administrator's command instead.`})]}),q(Y,{type:`submit`,label:`Save`})]})]})]})})}var pU,mU,hU=o((()=>{Mx(),cU(),qa(),pU=u(f(),1),gb(),XR(),DM(),Zz(),nM(),kb(),mU=`https://void.cloud/guide/platform/installation/credentials#enable-email`})),gU=o((()=>{})),_U=c({EmailProjectPage:()=>yU});function vU(e){return e===`ready`||e===`healthy`?Bx.success:e===`pending`||e===`verified_only`||e===`probe_failed`?Bx.pending:Bx.failed}function yU({path:e,platformName:t,username:n}){let{emailProject:r}=ab(GR(e),{mode:`stale-while-revalidate`}),i=rb(UR,r);if(!i)throw Error(`Project email data is unavailable.`);let{projectId:a,project:o,month:s,attempts:c,received:l,monthlyLimit:u,burstLimit:d,isSuspended:f,domains:p,destinations:m,senderDomain:h,tz:g}=i;return J($j,{platformName:t,title:`Email - ${o.slug}`,username:n,children:[J(`h1`,{children:[`Email — `,q(`a`,{href:`/admin/projects/${a}`,children:o.slug})]}),q(AP,{children:J(qN,{children:[J(Z,{children:[q($,{children:`Project ID`}),q(Q,{children:a})]}),J(Z,{children:[q($,{children:`Sender`}),q(Q,{children:h?q(`code`,{children:`${o.slug}+noreply@${h}`}):q(`em`,{children:`EMAIL_SENDER_DOMAIN is not configured for this environment`})})]}),J(Z,{children:[q($,{children:`Status`}),q(Q,{children:f?q(`strong`,{style:`color: red`,children:`SUSPENDED`}):q(`span`,{style:`color: #16a34a`,children:`active`})})]})]})}),J(`h2`,{children:[`Usage (`,s,`)`]}),q(AP,{children:J(qN,{children:[J(Z,{children:[q($,{children:`Outbound recipient attempts`}),J(Q,{children:[c,` / `,u??200,` `,J(`span`,{style:bU,children:[`(`,u===void 0?`default`:`override`,`)`]})]})]}),J(Z,{children:[q($,{children:`Inbound (received)`}),q(Q,{children:l})]}),J(Z,{children:[q($,{children:`Burst cap`}),J(Q,{children:[d??10,` / minute`,` `,J(`span`,{style:bU,children:[`(`,d===void 0?`default`:`override`,`)`]})]})]})]})}),q(`p`,{style:bU,children:`Recipient submission attempts and inbound receipts are recorded in the platform database.`}),q(`h2`,{children:`Controls`}),J(`form`,{method:`post`,action:`/admin/email/${a}/suspend`,children:[q(`input`,{type:`hidden`,name:`state`,value:f?`active`:`suspended`}),q(Y,{type:`submit`,label:f?`Unsuspend email`:`Suspend email`,variant:f?`secondary`:`destructive`}),` `,q(`span`,{style:bU,children:`Suspending stops new outbound attempts and rejects new inbound messages with a permanent SMTP error. Outbound submissions that already started may still finish. There is no per-direction switch.`})]}),J(`form`,{method:`post`,action:`/admin/email/${a}/limit`,style:`margin-top: 12px`,children:[q(Jz,{label:`Monthly limit`,name:`limit`,width:200}),q(Y,{type:`submit`,label:`Set monthly limit`}),` `,q(`span`,{style:bU,children:`Submit blank to drop the override back to the platform default.`})]}),J(`form`,{method:`post`,action:`/admin/email/${a}/burst-limit`,style:`margin-top: 12px`,children:[q(Jz,{label:`Burst limit`,name:`burstLimit`,width:200}),q(Y,{type:`submit`,label:`Set burst limit`}),` `,q(`span`,{style:bU,children:`Per-minute cap. Submit blank to drop the override.`})]}),J(`h2`,{children:[`Verified destinations (`,m.length,`)`]}),J(`p`,{style:bU,children:[`Recipient addresses this project is allowed to send to. A `,q(`code`,{children:`pending`}),` row is waiting on the recipient clicking their verification link. Removing a row revokes it for this project only; the Cloudflare account-level address is deleted just when no other project still references it.`]}),m.length===0?q(`p`,{children:q(`em`,{children:`No destinations yet.`})}):J(AP,{children:[q(WN,{children:J(Z,{children:[q($,{children:`Address`}),q($,{children:`Status`}),q($,{children:`Source`}),q($,{children:`Verified`}),q($,{})]})}),q(qN,{children:m.map(e=>J(Z,{children:[q(Q,{children:e.address}),q(Q,{children:e.status===`verified`?q(`span`,{style:`color: #16a34a`,children:`verified`}):q(`span`,{style:`color: #d97706`,children:`pending`})}),q(Q,{children:e.verification_source}),q(Q,{children:e.verified_at?Fx(e.verified_at,g):`-`}),q(Q,{children:q(`form`,{method:`post`,action:`/admin/email/${a}/destinations/${e.id}/delete`,"data-confirm":`Remove "${e.address}" from this project?`,children:q(Y,{type:`submit`,label:`Remove`,variant:`destructive`,size:`sm`})})})]},e.id))})]}),J(`p`,{style:bU,children:[`Destinations are added by the project owner through`,` `,q(`code`,{children:`POST /projects/:id/email/destinations`}),`, which emails the recipient for consent. There is deliberately no operator-side "add" here: an admin cannot consent on a recipient's behalf.`]}),J(`h2`,{children:[`Custom domains (`,p.length,`)`]}),q(`p`,{style:bU,children:`Exact sender and recipient domains on a Cloudflare zone. One connection owns the ingress Worker and catch-all; removing an assignment keeps shared resources while sibling domains use them. The platform stores connection credentials and never shows them here.`}),J(`form`,{method:`post`,action:`/admin/email/${a}/domains/add`,style:`margin-bottom: 12px; display: flex; gap: 8px; align-items: center`,children:[q(Wz,{label:`Domain`,name:`domain`,placeholder:`mail.example.com`,autoComplete:`off`,required:!0,width:240}),q(Wz,{label:`API token`,name:`token`,type:`password`,placeholder:`Blank = platform credential`,autoComplete:`off`,width:300}),q(Y,{type:`submit`,label:`Add domain`})]}),p.length===0?q(`p`,{children:q(`em`,{children:`No custom domains.`})}):J(AP,{children:[q(WN,{children:J(Z,{children:[q($,{children:`Domain`}),q($,{children:`Inbound`}),q($,{children:`Outbound`}),q($,{children:`Management`}),q($,{children:`Managed by`}),q($,{children:`Ingress worker`}),q($,{children:`v`}),q($,{children:`Latest operation`}),q($,{})]})}),q(qN,{children:p.map(e=>J(Z,{children:[q(Q,{children:e.domain}),J(Q,{children:[q(`span`,{style:`color: ${vU(e.inbound)}`,children:e.inbound}),e.inboundReason&&J(`small`,{children:[` — `,e.inboundReason]})]}),J(Q,{children:[q(`span`,{style:`color: ${vU(e.outbound)}`,children:e.outbound}),e.outboundReason&&J(`small`,{children:[` — `,e.outboundReason]})]}),J(Q,{children:[q(`span`,{style:`color: ${vU(e.management)}`,children:e.management}),e.managementReason&&J(`small`,{children:[` — `,e.managementReason]})]}),q(Q,{children:e.managed_by}),q(Q,{children:e.relay_worker_name??`-`}),q(Q,{children:e.relay_version??`-`}),q(Q,{children:e.operation?J(Ob.Fragment,{children:[q(`code`,{children:e.operation.id}),` (`,e.operation.status,`)`]}):`-`}),J(Q,{children:[q(`form`,{method:`post`,action:`/admin/email/${a}/domains/${e.domain}/rotate-secret`,children:q(Y,{type:`submit`,label:`Rotate secret`,size:`sm`})}),J(`form`,{method:`post`,action:`/admin/email/${a}/domains/${e.domain}/revoke`,"data-confirm":`Remove "${e.domain}"? This disables its exact assignment. Shared ingress stays while another domain uses it.`,children:[q(Wz,{label:`Confirm project slug`,name:`confirm`,placeholder:o.slug,autoComplete:`off`,required:!0,width:190}),` `,q(Y,{type:`submit`,label:`Revoke`,variant:`destructive`,size:`sm`})]})]})]},e.id))})]})]})}var bU,xU=o((()=>{Mx(),oR(),gb(),gU(),XR(),Vx(),Zz(),nM(),kb(),bU=`font-size: 0.8rem; color: #666`})),SU=c({EmailOperationPage:()=>CU});function CU({label:e,status:t,error:n,operationId:r,platformName:i,username:a}){return J($j,{platformName:i,title:e,username:a,children:[J(`h1`,{children:[e,` `,t]}),q(`p`,{children:n??`The operation has not completed. Check its status before retrying.`}),J(`p`,{children:[`Operation ID: `,q(`code`,{children:r??`unavailable`})]})]})}var wU=o((()=>{nM(),kb()})),TU=c({InvitationsPage:()=>DU});function EU({status:e}){return q(CL,{label:e,variant:e===`pending`?`warning`:e===`revoked`?`error`:`neutral`})}function DU({path:e,platformName:t,username:n}){let{invitations:r}=ab(FR(e),{mode:`stale-while-revalidate`}),i=rb(MR,r);if(!i)throw Error(`Invitations are unavailable.`);let{invitations:a,page:o,totalPages:s,tz:c}=i;return J($j,{platformName:t,title:`Invitations`,username:n,children:[q(Ba,{level:1,children:`Invitations`}),J(`form`,{method:`post`,action:`/admin/invitations/send`,style:`margin-bottom: 20px; display: flex; gap: 8px; align-items: flex-start`,children:[q(Gz,{label:`Email addresses`,name:`email`,placeholder:`user@example.com, teammate@example.com`,required:!0,width:360}),q(Y,{type:`submit`,label:`Send Invites`})]}),J(AP,{hasHover:!0,children:[q(WN,{children:J(Z,{children:[q($,{children:`Email`}),q($,{children:`Status`}),q($,{children:`Invited By`}),q($,{children:`Sent`}),q($,{children:`Accepted At`}),q($,{children:`Revoked`}),q($,{children:`Actions`})]})}),q(qN,{children:a.map(e=>J(Z,{children:[q(Q,{children:e.email}),q(Q,{children:q(EU,{status:e.status})}),q(Q,{children:e.invited_by_login??e.invited_by}),q(Q,{children:e.created_at?Fx(e.created_at,c):`-`}),q(Q,{children:e.accepted_at?Fx(e.accepted_at,c):`-`}),q(Q,{children:e.revoked_at?J(Ob.Fragment,{children:[Fx(e.revoked_at,c),` by`,` `,e.revoked_by_login??e.revoked_by??`?`]}):`-`}),q(Q,{children:e.status===`pending`&&J(`form`,{method:`post`,action:`/admin/invitations/revoke`,style:`display:inline`,children:[q(`input`,{type:`hidden`,name:`id`,value:e.id}),q(Y,{type:`submit`,label:`Revoke`,variant:`destructive`,size:`sm`})]})})]},e.id))})]}),a.length===0&&q(`p`,{children:q(`em`,{children:`No invitations yet.`})}),q(SV,{page:o,totalPages:s,baseUrl:`/admin/invitations`})]})}var OU=o((()=>{OL(),Mx(),oR(),qa(),gb(),XR(),Vx(),Zz(),nM(),CV(),kb()})),kU=c({ZeroTrustPage:()=>MU});function AU(e,t,n){return e?n===`invalid_configuration`?{label:`Invalid configuration`,variant:`error`}:n===`error`?{label:`Needs attention`,variant:`error`}:n===`configuring`?{label:`Configuring`,variant:`info`}:n===`disabling`?{label:`Disabling`,variant:`warning`}:t?{label:`Enabled`,variant:`success`}:{label:`Disabled`,variant:`neutral`}:{label:`Not configured`,variant:`neutral`}}function jU(e,t,n){return e?!t||!n?`Not checked`:n.present&&!n.drifted?`Healthy`:`Missing or drifted`:`Not active`}function MU({path:e,platformName:t,username:n}){let{zeroTrust:r}=ab(qR(e),{mode:`stale-while-revalidate`}),i=rb(KR,r);if(!i)throw Error(`Zero Trust settings are unavailable.`);let{configured:a,enabled:o,status:s,accountId:c,teamDomain:l,identityProviderIds:u,policyIds:d,protectNewProjects:f,operation:p,lastError:m,checked:h,live:g,projects:_}=i,v=p?p.existingProjects!==null:!o,[y,b]=(0,NU.useState)(p?.existingProjects===`public`?`public`:`protected`),x=AU(a,o,s??null),S=a&&s!==`invalid_configuration`&&u.length===0&&d.length===0;return q($j,{platformName:t,title:`Zero Trust`,username:n,children:J(`div`,{className:`void-admin-zero-trust`,children:[J(`header`,{className:`void-admin-zero-trust-intro`,children:[q(Ba,{level:1,children:`Project Zero Trust`}),q(`p`,{children:`Void manages a wildcard Cloudflare Access application for protected projects and exact-host bypass applications for public exceptions. The Cloudflare API token is encrypted and never shown again.`})]}),m&&q(cH,{status:`error`,title:`Last error`,description:m}),q(`section`,{"aria-labelledby":`zero-trust-status-heading`,children:J(TM,{title:`Status`,titleId:`zero-trust-status-heading`,headerAccessory:q(CL,{label:x.label,variant:x.variant}),children:[J(`dl`,{className:`void-admin-zero-trust-details`,children:[J(`div`,{children:[q(`dt`,{children:`Current operation`}),q(`dd`,{children:p?`${p.kind} · ${p.phase}`:`None`})]}),J(`div`,{children:[q(`dt`,{children:`Cloudflare account`}),q(`dd`,{children:c??`—`})]}),J(`div`,{children:[q(`dt`,{children:`Access team domain`}),q(`dd`,{children:l??`—`})]}),J(`div`,{children:[q(`dt`,{children:`Protect new projects`}),q(`dd`,{children:f===null?`—`:f?`Yes`:`No`})]}),J(`div`,{children:[q(`dt`,{children:`Live application`}),q(`dd`,{children:jU(o,h,g)})]})]}),o&&!h&&q(Y,{href:`${PU}?check=1`,label:`Check with Cloudflare`,variant:`secondary`,size:`sm`})]})}),q(`section`,{"aria-labelledby":`zero-trust-projects-heading`,children:q(TM,{title:`Project states`,titleId:`zero-trust-projects-heading`,children:_.length>0?J(AP,{children:[q(WN,{children:J(Z,{children:[q($,{children:`Desired`}),q($,{children:`Effective`}),q($,{children:`State`}),q($,{children:`Projects`})]})}),q(qN,{children:_.map(e=>J(Z,{children:[q(Q,{children:e.desiredProtected?`protected`:`public`}),q(Q,{children:e.effectiveProtected?`protected`:`public`}),q(Q,{children:e.state}),q(Q,{children:e.count})]},`${e.desiredProtected}:${e.effectiveProtected}:${e.state}`))})]}):q(`p`,{children:`No project protection state has been recorded.`})})}),q(`section`,{"aria-labelledby":`zero-trust-configure-heading`,children:J(TM,{title:`Configure`,titleId:`zero-trust-configure-heading`,description:`The token needs Access Apps and Policies Write plus Organizations, Identity Providers, and Groups Read on the Cloudflare account that hosts this platform.`,children:[p&&q(`p`,{children:`To replace an expired or revoked token, keep the saved settings and submit a new token. The pending operation will resume.`}),J(`form`,{method:`post`,action:`${PU}/configure`,className:`void-admin-zero-trust-form`,children:[S&&q(`p`,{children:`Void manages public app rules for this account. Leave policy fields blank to replace its token, or enter company identities and policies to configure protection.`}),q(Wz,{label:`API token`,name:`apiToken`,type:`password`,autoComplete:`new-password`,required:!0,width:360}),q(Wz,{label:`Identity provider IDs`,name:`identityProviderIds`,initialValue:u.join(`, `),description:S?`Leave blank to keep public app rules, or enter company IDs to configure protection.`:`Separate IDs with commas or spaces.`,required:!S,width:480}),q(Wz,{label:`Reusable policy IDs`,name:`policyIds`,initialValue:d.join(`, `),description:`Separate IDs with commas or spaces.`,required:!S,width:480}),q(qz,{label:`Protect new projects by default`,name:`protectNewProjects`,submitValue:`yes`,initialValue:f??!0}),v&&J(XH,{label:`Existing projects`,description:`Applies when Zero Trust is enabled. Later changes use per-project overrides.`,size:`sm`,htmlName:`existingProjects`,value:y,onChange:e=>b(e===`public`?`public`:`protected`),children:[q(tU,{value:`protected`,label:`Protect existing projects`}),q(tU,{value:`public`,label:`Keep existing projects public`})]}),q(Y,{type:`submit`,label:`Save and reconcile`})]})]})}),a&&q(`section`,{"aria-labelledby":`zero-trust-maintenance-heading`,children:q(TM,{title:`Maintenance`,titleId:`zero-trust-maintenance-heading`,children:J(`div`,{className:`void-admin-zero-trust-actions`,children:[q(`form`,{method:`post`,action:`${PU}/reconcile`,children:q(Y,{type:`submit`,label:`Reconcile drift`,variant:`secondary`})}),(o||p)&&q(`form`,{method:`post`,action:`${PU}/disable`,"data-confirm":`Remove Void-managed Access protection? Apps may become public or be blocked by account-wide Default-Deny.`,children:q(Y,{type:`submit`,label:o?`Disable Zero Trust`:`Cancel setup and clean up`,variant:`destructive`})})]})})})]})})}var NU,PU,FU=o((()=>{OL(),yH(),Mx(),cU(),oR(),qa(),NU=u(f(),1),gb(),XR(),DM(),Zz(),nM(),kb(),PU=`/admin/zero-trust`}));Ub();var IU={platformStatus:async()=>({default:(await Promise.resolve().then(()=>(zM(),NM))).PlatformStatusPage}),adminLayout:async()=>({default:(await Promise.resolve().then(()=>(Ub(),zb))).AdminProviders}),dashboard:async()=>({default:(await Promise.resolve().then(()=>(Tz(),mz))).DashboardPage}),adminLogin:async()=>({default:(await Promise.resolve().then(()=>(Oz(),Ez))).AdminLoginPage}),loginError:async()=>({default:(await Promise.resolve().then(()=>(jz(),kz))).LoginErrorPage}),plans:async()=>({default:(await Promise.resolve().then(()=>(dB(),Qz))).PlansPage}),planEdit:async()=>({default:(await Promise.resolve().then(()=>(dB(),Qz))).PlanEditPage}),planPreview:async()=>({default:(await Promise.resolve().then(()=>(dB(),Qz))).PlanPreviewPage}),planResult:async()=>({default:(await Promise.resolve().then(()=>(dB(),Qz))).PlanResultPage}),authSettings:async()=>({default:(await Promise.resolve().then(()=>(gB(),fB))).AuthSettingsPage}),authNew:async()=>({default:(await Promise.resolve().then(()=>(SB(),bB))).AuthNewPage}),authEdit:async()=>({default:(await Promise.resolve().then(()=>(TB(),CB))).AuthEditPage}),authError:async()=>({default:(await Promise.resolve().then(()=>(OB(),EB))).AuthErrorPage}),buildDetail:async()=>({default:(await Promise.resolve().then(()=>(PB(),MB))).BuildDetailPage}),deploymentDetail:async()=>({default:(await Promise.resolve().then(()=>(xV(),yV))).DeploymentDetailPage}),users:async()=>({default:(await Promise.resolve().then(()=>(jV(),OV))).UsersListPage}),userDetail:async()=>({default:(await Promise.resolve().then(()=>(PV(),MV))).UserDetailPage}),projects:async()=>({default:(await Promise.resolve().then(()=>(RV(),FV))).ProjectsListPage}),projectDetail:async()=>({default:(await Promise.resolve().then(()=>(AH(),OH))).ProjectDetailPage}),projectOwnerPreview:async()=>({default:(await Promise.resolve().then(()=>(PH(),jH))).ProjectOwnerPreviewPage}),deployments:async()=>({default:(await Promise.resolve().then(()=>(RH(),FH))).DeploymentsListPage}),cliVersions:async()=>({default:(await Promise.resolve().then(()=>(HH(),zH))).CliVersionsPage}),signupControl:async()=>({default:(await Promise.resolve().then(()=>(YH(),UH))).SignupControlPage}),email:async()=>({default:(await Promise.resolve().then(()=>(hU(),lU))).EmailSettingsPage}),emailProject:async()=>({default:(await Promise.resolve().then(()=>(xU(),_U))).EmailProjectPage}),emailOperation:async()=>({default:(await Promise.resolve().then(()=>(wU(),SU))).EmailOperationPage}),adminError:async()=>({default:(await Promise.resolve().then(()=>(Pb(),Mb))).AdminErrorPage}),invitations:async()=>({default:(await Promise.resolve().then(()=>(OU(),TU))).InvitationsPage}),zeroTrust:async()=>({default:(await Promise.resolve().then(()=>(FU(),kU))).ZeroTrustPage})},LU=Object.fromEntries(Object.keys(IU).filter(e=>e!==`adminLayout`).map(e=>[e,[`adminLayout`]]));function RU(e){let t=new URL(e,`https://void.invalid`).pathname;return t===`/admin/`?`dashboard`:t===`/admin/status`?`platformStatus`:t===`/admin/login`?`adminLogin`:t===`/admin/users`?`users`:/^\/admin\/builds\/[^/]+$/.test(t)?`buildDetail`:/^\/admin\/users\/[^/]+$/.test(t)?`userDetail`:t===`/admin/projects`?`projects`:/^\/admin\/projects\/[^/]+$/.test(t)?`projectDetail`:/^\/admin\/projects\/[^/]+\/owner\/preview$/.test(t)?`projectOwnerPreview`:t===`/admin/deployments`?`deployments`:/^\/admin\/deployments\/[^/]+$/.test(t)?`deploymentDetail`:t===`/admin/cli-versions`?`cliVersions`:t===`/admin/signup-control`?`signupControl`:t===`/admin/config/plans`?`plans`:t===`/admin/config/plans/new`||/^\/admin\/config\/plans\/[^/]+\/edit$/.test(t)?`planEdit`:t===`/admin/config/plans/preview`?`planPreview`:t===`/admin/config/plans/apply`||t===`/admin/config/plans/resume`?`planResult`:t===`/admin/config/auth`?`authSettings`:t===`/admin/config/auth/new`?`authNew`:/^\/admin\/config\/auth\/connections\/[^/]+$/.test(t)?`authEdit`:t===`/admin/email`?`email`:/^\/admin\/email\/[^/]+$/.test(t)?`emailProject`:t===`/admin/invitations`?`invitations`:t===`/admin/zero-trust`?`zeroTrust`:null}$n(),qa(),po(),nM(),kb();var zU={platformStatus:`Platform status`,dashboard:`Dashboard`,plans:`Plans`,planEdit:`Edit plan`,planPreview:`Review plan change`,planResult:`Plan update`,users:`Users`,userDetail:`User`,projects:`Projects`,projectDetail:`Project`,projectOwnerPreview:`Transfer owner`,deployments:`Deployments`,deploymentDetail:`Deployment`,buildDetail:`Build`,cliVersions:`CLI Versions`,signupControl:`Access`,authSettings:`Authentication`,authNew:`Add login method`,authEdit:`Edit login method`,email:`Email`,emailProject:`Project email`,emailOperation:`Email operation`,invitations:`Invitations`,zeroTrust:`Zero Trust`};function BU({initialPageData:e}){let t=zU[RU(co().location?.pathname??e.url)??`adminError`]??`Admin`;return q(Bb,{children:q($j,{title:t,platformName:String(e.props.platformName??`Void`),username:typeof e.props.username==`string`?e.props.username:void 0,children:J(`div`,{className:`void-admin-loading`,role:`status`,"aria-live":`polite`,children:[q(Ba,{level:1,children:t}),J(`span`,{className:`void-admin-sr-only`,children:[`Loading `,t.toLowerCase(),`…`]}),J(`div`,{className:`void-admin-loading-lines`,"aria-hidden":`true`,children:[q(Wn,{width:`32%`,height:24}),q(Wn,{width:`100%`,height:48,index:1}),q(Wn,{width:`100%`,height:48,index:2}),q(Wn,{width:`78%`,height:48,index:3})]})]})})})}gt({components:IU,layoutTree:LU,routeMeta:{},matchRoute:RU,staticPageData:!1,staticPageDataFastPath:!1,viewTransitions:!1,prefetchHoverDelay:75,prefetchDefaultCacheFor:{stale:0,expires:3e5},cacheVisitedPageData:!0,navigationFallback:BU})})();
118
+ `}));function wb(e){let t={};for(let n of e.split(`;`)){let e=n.indexOf(`:`);if(e===-1)continue;let r=n.slice(0,e).trim().replace(/-([a-z])/g,(e,t)=>t.toUpperCase());r&&(t[r]=n.slice(e+1).trim())}return t}function Tb(e,t){if(typeof e!=`string`)return t;let n={...t};typeof n.style==`string`&&(n.style=wb(n.style)),`class`in n&&(n.className=n.class,delete n.class);for(let[e,t]of[[`readonly`,`readOnly`],[`colspan`,`colSpan`],[`rowspan`,`rowSpan`],[`maxlength`,`maxLength`],[`autocomplete`,`autoComplete`]])e in n&&(n[t]=n[e],delete n[e]);return(e===`input`||e===`textarea`||e===`select`)&&(`value`in n&&!(`onChange`in n)&&(n.defaultValue=n.value,delete n.value),`checked`in n&&!(`onChange`in n)&&(n.defaultChecked=n.checked,delete n.checked)),n}function Eb(e,t){let n=Tb(e,t);return e===`a`&&typeof n.href==`string`&&n.href.startsWith(`/admin/`)&&n.href!==`/admin/logout`&&!n.href.startsWith(`/admin/login`)?{type:Ya,props:n}:{type:e,props:n}}function q(e,t,n){let r=Eb(e,t);return(0,Db.jsx)(r.type,r.props,n)}function J(e,t,n){let r=Eb(e,t);return(0,Db.jsxs)(r.type,r.props,n)}var Db,Ob=o((()=>{fo(),Db=G()}));function kb({platformName:e,children:t}){return J(`main`,{className:`void-auth-page`,children:[q(`style`,{children:Sb}),J(`div`,{className:`void-auth-container`,children:[J(`div`,{className:`void-auth-brand`,children:[q(`span`,{className:`void-auth-logo`,dangerouslySetInnerHTML:{__html:xb}}),q(`span`,{className:`void-auth-divider`,"aria-hidden":`true`}),q(`span`,{children:e})]}),q(`section`,{className:`void-auth-card`,"aria-labelledby":`void-auth-title`,children:t})]})]})}var Ab=o((()=>{Cb(),Ob()})),jb=c({AdminErrorPage:()=>Mb});function Mb({message:e,status:t,platformName:n}){return J(kb,{platformName:n,children:[q(`div`,{className:`void-auth-status void-auth-status-error`,"aria-label":`Error`,children:`!`}),J(`div`,{className:`void-auth-lead`,children:[q(`h1`,{id:`void-auth-title`,children:t===401?`Sign in again`:`Unable to continue`}),q(`p`,{children:e})]}),q(`a`,{className:`void-auth-button void-auth-button-primary`,href:t===401?`/admin/logout`:`/admin/`,children:t===401?`Sign in again`:`Refresh dashboard`})]})}var Nb=o((()=>{Ab(),Ob()}));function Pb(e){return e instanceof Error&&e.name===`FateRequestError`&&`status`in e&&typeof e.status==`number`}var Fb,Ib,Lb=o((()=>{Fb=u(f(),1),Nb(),Ob(),Ib=class extends Fb.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}render(){let{error:e}=this.state;if(e){let t=Pb(e)?e.status:500;return q(Mb,{message:Pb(e)?e.message:`The admin page could not be loaded.`,status:t,platformName:this.props.platformName})}return this.props.children}}})),Rb=c({AdminProviders:()=>Bb,AdminUiProviders:()=>zb});function zb({children:e}){return q(Bf,{theme:$h,children:q(Nf,{component:Ya,children:e})})}function Bb({children:e}){let t=ro(),n=t.adminFateSession??`guest`;return q(zb,{children:q(eb,{client:(0,Vb.useMemo)(()=>{let e=yb({url:typeof window>`u`?`http://localhost/admin/fate`:`/admin/fate`,fetch:(e,t)=>fetch(e,{...t,credentials:`same-origin`}).then(e=>{if(e.redirected&&new URL(e.url).pathname===`/admin/login`)throw window.location.assign(`/admin/login`),Error(`Administrator session expired.`);return e})});return t.adminFateSnapshot&&e.hydrate(t.adminFateSnapshot),e},[n]),children:q(Ib,{platformName:t.platformName??`Void Platform`,children:e},t.adminPageUrl)},n)})}var Vb,Hb=o((()=>{Lf(),Jf(),eg(),fo(),Vb=u(f(),1),hb(),bb(),Lb(),Ob()}));function Ub(){if(typeof CSS<`u`&&typeof CSS.registerProperty==`function`)for(let e of Zb)try{CSS.registerProperty({name:e,syntax:`<length>`,inherits:!0,initialValue:`0px`})}catch{}}function Wb(){ex=!1;let e=[];for(let t of $b)e.push(...t.getAnimations({subtree:!0}));$b.clear();for(let t of e)t.startTime=0}function Gb(e){if(e!=null&&typeof e.getAnimations==`function`)return $b.add(e),ex||(ex=!0,requestAnimationFrame(Wb)),()=>{$b.delete(e)}}function Kb({size:e=`md`,shade:t=`default`,label:n,xstyle:r,className:i,style:a,"aria-label":o,"data-testid":s,ref:c,...l}){let{border:u,diameter:d}=Xb[e],f=d+u*2,p=Math.PI*d,m=p*Yb,h=n!=null,g=(0,qb.useId)(),_=bf(),v=h&&typeof n==`string`&&o==null,y=o??(typeof n==`string`?n:void 0)??_(`@astryx.spinner.loading`),b=(0,Jb.jsx)(`span`,{ref:h?void 0:c,role:`status`,"aria-label":v?void 0:y,"aria-labelledby":v?g:void 0,"data-testid":h?void 0:s,...h?{}:l,...U(h?``:V(`spinner`,{size:e,shade:t}),z(tx.spinner,!h&&nx[e],!h&&rx[t],!h&&r),h?void 0:i,{...h?{}:a,width:`var(${Qb}, ${f}px)`,height:`var(${Qb}, ${f}px)`}),children:(0,Jb.jsxs)(`svg`,{ref:Gb,width:f,height:f,"aria-hidden":`true`,className:`xlp1x4z x1lliihq x6v0vjy x7yyq19 x1rea2x4`,children:[(0,Jb.jsx)(`circle`,{cx:`50%`,cy:`50%`,r:d/2,strokeWidth:u,...z(tx.circle,tx.track,ix[t])}),(0,Jb.jsx)(`circle`,{cx:`50%`,cy:`50%`,r:d/2,strokeWidth:u,strokeDasharray:`${m} ${p-m}`,className:`xbh8q5q x1764fhq x1g0ag68 x1owpc8m xio8zfp xgw3ha0 x14qxm4i xnh0sag xa4qsjk x1nlxm0d x1esw782 xtve3lm x9tu13d xdv9ggb`})]})});return h?(0,Jb.jsxs)(`div`,{ref:c,"data-testid":s,...l,...U(V(`spinner`,{size:e,shade:t}),z(tx.wrapper,nx[e],rx[t],r),i,a),children:[b,typeof n==`string`?(0,Jb.jsx)(Na,{id:g,type:`body`,weight:`bold`,children:n}):n]}):b}var qb,Jb,Yb,Xb,Zb,Qb,$b,ex,tx,nx,rx,ix,ax=o((()=>{qb=u(f(),1),B(),Ra(),W(),Ef(),H(),Jb=G(),Yb=.375,Xb={sm:{diameter:10,border:2},md:{diameter:14,border:3},lg:{diameter:18,border:3},xl:{diameter:28,border:4}},Zb=[`--_spinner-ring-diameter`,`--_spinner-ring-stroke`],Qb=`--_spinner-box-size`,Ub(),$b=new Set,ex=!1,tx={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}},nx={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}},rx={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}},ix={default:{kDd8S0:`x1g350g8`,$$css:!0},subtle:{kDd8S0:`x1g350g8`,$$css:!0},onMedia:{kDd8S0:`x1smxkh6`,$$css:!0},inherit:{kDd8S0:`x7bo2k`,$$css:!0}},Kb.displayName=`Spinner`})),ox=o((()=>{ax()})),sx,cx,lx,ux=o((()=>{sx=`data-astryx-edge-comp`,cx={keTefX:`x1kftj4p`,k71WvV:`x92e2el`,$$css:!0},lx={inset:e=>[cx,{"--x-126w13d":(e=>typeof e==`number`?e+`px`:e??void 0)(`calc(-1 * ${e})`),"--x-4drmnv":(e=>typeof e==`number`?e+`px`:e??void 0)(`calc(-1 * ${e})`)}]}}));function dx(e,t=`md`){let n=(0,fx.use)(px);return e??n??t}var fx,px,mx,hx=o((()=>{fx=u(f(),1),Ar(),px=Tr(null),px.displayName=`SizeContext`,mx=px.Provider}));function gx(){return(0,_x.use)(vx)}var _x,vx,yx=o((()=>{_x=u(f(),1),Ar(),vx=Tr(null),vx.displayName=`ButtonGroupContext`}));function Y({label:e,variant:t=`secondary`,size:n,type:r=`button`,isDisabled:i=!1,isLoading:a=!1,isInterruptible:o=!1,clickAction:s,icon:c,isIconOnly:l=!1,width:u,elevation:d=`none`,children:f,endContent:p,tooltip:m,href:h,as:g,target:_,rel:v,xstyle:y,className:b,style:x,ref:S,...C}){let w=bf(),T=dx(n,`md`),E=gx(),[D,O]=(0,bx.useTransition)(),k=(0,bx.useRef)(!1),A=a||D,j=D||o,M=E?.isDisabled??!1,N=i||M||A&&!o,ee=i||M,P=wu(g),te=h!=null&&!N,F=m!=null&&N,ne=va({placement:`above`,isEnabled:m!=null}),I=e=>{if(N||k.current&&!o){e.preventDefault();return}C.onClick?.(e),s&&!e.defaultPrevented&&(k.current=!0,O(async()=>{try{await s(e)}finally{k.current=!1}}))},re=F?e=>{e.key===`Enter`||e.key===` `?e.preventDefault():C.onKeyDown?.(e)}:void 0,ie=t===`ghost`?{[sx]:``}:null,ae=Rn.focusVisible(Sx.base,wx[T],l&&Sx.iconOnly,Iu.backgroundImage,N&&Sx.inactive,ee&&Sx.disabled,F&&Sx.ariaDisabled,te&&Sx.link,!E&&Sx.pressable,E&&(E.orientation===`horizontal`?kx.horizontal:kx.vertical),E&&(t===`primary`||t===`destructive`)&&(E.orientation===`horizontal`?kx.onSolidHorizontal:kx.onSolidVertical),!E&&Tx[d],u!=null&&Cx.width(u),Ex[t],y),oe=U(V(`button`,{variant:t,size:T,elevation:E?`none`:d}),ae,b,x),se=Dx[T],ce=(0,xx.jsxs)(xx.Fragment,{children:[A&&(0,xx.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`}}[!!j<<0],"aria-hidden":`true`,children:(0,xx.jsx)(Kb,{size:`sm`,shade:`inherit`})}),(0,xx.jsxs)(`span`,{...z(Sx.contentWrapper,A&&(j?Ox.hiddenContentDelayed:Ox.hiddenContent)),"aria-hidden":A||void 0,children:[c&&(0,xx.jsx)(`span`,{...z(Sx.iconWrapper,$l[se]),children:(0,xx.jsx)(Xl,{value:se,children:c})}),l?null:(0,xx.jsx)(`span`,{className:`xb3r6kr xlyipyv xeuugli`,children:f??e}),!l&&p&&(0,xx.jsx)(`span`,{className:`x3nfvp2 x6s0dn4 x1heor9g`,children:p})]}),(0,xx.jsx)(du,{role:`status`,"aria-live":`polite`,children:A?w(`@astryx.button.loading`):``})]}),le=l&&e!==``||A&&!l||f!=null&&f!==e?{"aria-label":e}:null,ue=m==null?null:{"aria-describedby":[C[`aria-describedby`],ne.describedBy].filter(Boolean).join(` `)||void 0},de=yr(S,m==null?void 0:ne.ref),fe;return fe=te?(0,xx.jsx)(P,{ref:de,href:h,target:_,rel:v,...oe,...C,...le,...ue,...ie,"aria-busy":A||void 0,onClick:I,children:ce}):(0,xx.jsx)(`button`,{ref:de,type:r,disabled:F?void 0:N,...oe,...C,...le,...ue,...ie,"aria-busy":A||void 0,"aria-disabled":F||void 0,onClick:I,...re?{onKeyDown:re}:null,children:ce}),m?(0,xx.jsxs)(xx.Fragment,{children:[fe,ne.renderTooltip(m)]}):fe}var bx,xx,Sx,Cx,wx,Tx,Ex,Dx,Ox,kx,Ax=o((()=>{bx=u(f(),1),B(),Ca(),Et(),ox(),mu(),Zl(),eu(),ux(),hx(),yx(),W(),xr(),Eu(),H(),zn(),Lu(),Ef(),xx=G(),Sx={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`,$$css:!0},inactive:{kkrTdU:`xt0e3qv`,kKwaWg:`x18o3ruo`,k3aq6I:`x1c071of x1pdlv7q`,$$css:!0},disabled:{kSiTet:`xbyyjgo`,$$css:!0},ariaDisabled:{kKwaWg:`x18o3ruo xuqm82a`,$$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}},Cx={width:e=>[{kzqmXN:e==null?e:`x5lhr3w`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]},wx={sm:{kZKoxP:`x6k0iem`,$$css:!0},md:{kZKoxP:`x1ueg155`,$$css:!0},lg:{kZKoxP:`xssyfek`,$$css:!0}},Tx={none:{kGVxlE:`x1gnnqk1`,$$css:!0},low:{kGVxlE:`x1i5ehqx`,$$css:!0},med:{kGVxlE:`x14hfi27`,$$css:!0},high:{kGVxlE:`x1kcpxr7`,$$css:!0}},Ex={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}},Dx={sm:`sm`,md:`sm`,lg:`md`},wt[`--duration-medium-min`],Ox={hiddenContent:{kMwMTN:`x19co3pv`,$$css:!0},hiddenContentDelayed:{kKVMdj:`x1ffowhz`,k44tkh:`xjlvqhv`,kWV6AL:`x10e4vud`,kKxzle:`x17yabm6 x14q22ui`,$$css:!0}},kx={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}},Y.displayName=`Button`})),jx=o((()=>{Ax()}));function Mx({padding:e=`spacing4`,paddingOuterX:t,paddingOuterY:n,paddingInnerX:r,paddingInnerY:i,useThemeDefault:a,maxHeight:o}){let s=t??e,c=n??e,l=r??e,u=i??e,d=o?Xx.containerMaxHeight(o):null;if(a){let e=Vx[a];return[Nx.container,e.containerPaddingInlineStart,e.containerPaddingInlineEnd,e.containerPaddingBlockStart,e.containerPaddingBlockEnd,e.layoutPaddingOuterX,e.layoutPaddingOuterY,e.layoutPaddingInnerX,e.layoutPaddingInnerY,d]}return[Nx.container,Hx[s],Ux[s],Wx[c],Gx[c],Kx[s],qx[c],Jx[l],Yx[u],d]}var Nx,Px,Fx,Ix,Lx,Rx,zx,Bx,Vx,Hx,Ux,Wx,Gx,Kx,qx,Jx,Yx,Xx,Zx=o((()=>{Et(),Nx={container:{kB7OPa:`x9f619`,kZCmMZ:`x1c35znw`,kwRFfy:`x64h4k7`,kLKAdn:`x14m0hsi`,kGO01o:`xc1wllq`,$$css:!0}},Px=St[`--spacing-4`],Fx=`var(--astryx-card-padding, ${Px})`,Ix=`var(--astryx-card-padding-inline, ${Fx})`,`${Ix}`,`${Ix}`,`${Fx}`,`${Fx}`,Lx=`var(--_section-padding-propagated, ${`var(--astryx-section-padding, ${Px})`})`,Rx=`var(--astryx-section-padding-inline, ${Lx})`,`${Rx}`,`${Rx}`,`${Lx}`,`${Lx}`,zx=`var(--astryx-dialog-padding, ${Px})`,Bx=`var(--astryx-dialog-padding-inline, ${zx})`,`${Bx}`,`${Bx}`,`${zx}`,`${zx}`,Vx={card:{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}},section:{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}},dialog:{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}}},Hx={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}},Ux={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}},Wx={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}},Gx={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}},Kx={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}},qx={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}},Jx={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}},Yx={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}},Xx={containerMaxHeight:e=>[{"--container-max-height":e==null?e:`x18nyedi`,$$css:!0},{"--x---container-max-height":e??void 0}]}}));function Qx({width:e,height:t,maxWidth:n,minHeight:r,children:i,padding:a,variant:o=`default`,elevation:s=`none`,xstyle:c,className:l,style:u,ref:d,...f}){let p=t!=null&&t!==`auto`,m=a==null?void 0:Xr[a];return(0,$x.jsx)(`div`,{ref:d,...U(V(`card`,{variant:o,elevation:s}),z(eS.card,tS[o],nS[s],p&&eS.scrollable,rS.sizing(e??null,t??null,n??null,r??null),...Mx(m==null?{useThemeDefault:`card`}:{paddingInnerX:m,paddingInnerY:m,paddingOuterX:m,paddingOuterY:m}),o==="default"&&eS.withBorder,c),l,u),...f,children:i})}var $x,eS,tS,nS,rS,iS=o((()=>{B(),Zx(),pi(),W(),H(),$x=G(),eS={card:{"--_card-radius":`x2kkz0m`,kaIpWk:`x153u1i6`,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}},tS={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}},nS={none:{"--_card-elevation":`xw28qpl`,$$css:!0},low:{"--_card-elevation":`x1nn8khe`,$$css:!0},med:{"--_card-elevation":`x1ovzxg0`,$$css:!0},high:{"--_card-elevation":`xnpe7fx`,$$css:!0}},rS={sizing:(e,t,n,r)=>[{kzqmXN:e==null?e:`x5lhr3w`,kZKoxP:t==null?t:`x16ye13r`,ks0D6T:n==null?n:`xf68679`,kAzted:r==null?r:`x82snj4`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(e),"--x-height":(e=>typeof e==`number`?e+`px`:e??void 0)(t),"--x-maxWidth":(e=>typeof e==`number`?e+`px`:e??void 0)(n),"--x-minHeight":(e=>typeof e==`number`?e+`px`:e??void 0)(r)}]},Qx.displayName=`Card`})),aS=o((()=>{iS()}));function oS(e,t){let n=e;for(;n!=null&&n!==t&&n!==document.body;){if(n.matches(uS)&&!n.matches(dS))return!0;n=n.parentElement}return!1}function sS(e){if(typeof document>`u`||!(`getSelection`in document))return!1;let t=document.getSelection();return t==null||t.isCollapsed?!1:e.contains(t.anchorNode)}function cS({containerRef:e,interactiveRef:t,onClick:n,href:r,target:i,disabled:a=!1}){return(0,lS.useEffect)(()=>{let t=e.current;t&&t.setAttribute(`data-pressable-container`,`true`)},[e]),{onClick:(0,lS.useCallback)(o=>{if(a)return;let s=e.current;if(!s||sS(s))return;let c=o.target;if(c instanceof Element&&!(c!==o.currentTarget&&oS(c,s))&&(n?.(o),!o.defaultPrevented&&(r!=null&&bu(r)&&(i===`_blank`||o.ctrlKey||o.metaKey?window.open(r,`_blank`,`noopener`):t?.current?t.current.click():window.location.href=r),r==null&&n==null&&t?.current))){let e=new MouseEvent(`click`,{bubbles:o.bubbles,cancelable:o.cancelable,ctrlKey:o.ctrlKey,metaKey:o.metaKey,shiftKey:o.shiftKey,altKey:o.altKey,button:o.button});t.current.dispatchEvent(e),o.stopPropagation()}},[e,t,n,r,i,a]),onMouseUp:(0,lS.useCallback)(t=>{if(a)return;let n=e.current;if(!n)return;let i=t.target;i instanceof Element&&t.button===1&&r!=null&&bu(r)&&(i===t.currentTarget||!oS(i,n))&&window.open(r,`_blank`,`noopener`)},[e,r,a])}}var lS,uS,dS,fS=o((()=>{lS=u(f(),1),Su(),uS=[`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(`,`),dS=`[aria-readonly="true"]`}));function pS({label:e,onClick:t,onMouseUp:n,href:r,target:i,isDisabled:a=!1,children:o,padding:s,variant:c=`default`,elevation:l=`none`,width:u,height:d,maxWidth:f,ref:p,xstyle:m,className:h,style:g,..._}){let v=(0,mS.useRef)(null),y=(0,mS.useRef)(null),b=wu(),{onClick:x,onMouseUp:S}=cS({containerRef:v,interactiveRef:y,onClick:t,href:r,target:i,disabled:a}),C=n?e=>{S(e),n(e)}:S,w=r!=null,T=c==="default";return(0,hS.jsxs)(Qx,{ref:yr(p,v),width:u,height:d,maxWidth:f,padding:s,variant:c,elevation:l,...U(V(`clickable-card`,{variant:c}),Rn.focusWithin(),h,g),xstyle:[gS.interactive,T?gS.bordered:gS.borderless,!a&&gS.overlay,!a&&gS.hoverOnPointer,!a&&T&&gS.borderedHoverOnPointer,a&&gS.disabled,m],onClick:a?void 0:x,onMouseUp:a?void 0:C,..._,children:[w?(0,hS.jsx)(b,{ref:y,href:r,target:i,"aria-label":e,"aria-disabled":a||void 0,tabIndex:a?-1:0,className:`x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr xzpqnlu xuxw1ft xc342km`}):(0,hS.jsx)(`button`,{ref:y,type:`button`,"aria-label":e,disabled:a,onClick:t,className:`x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr xzpqnlu xuxw1ft xc342km`}),o]})}var mS,hS,gS,_S=o((()=>{mS=u(f(),1),W(),iS(),fS(),Eu(),H(),zn(),xr(),hS=G(),gS={interactive:{kVAEAm:`x1n2onr6`,kkrTdU:`x1ypdohk x16khyan`,kybGjl:`x1hl2dhg`,kMwMTN:`x1heor9g`,$$css:!0},overlay:{k5JduY:`x1s928wv`,kwXMNM:`x1j6awrg`,kv0HGH:`xarstr8`,kloYau:`x2q1x1w`,kRicXK:`x1ywzrc5`,kPNhGg:`x97pup0`,kA8PQs:`x1dlmc9c`,ks3ayO:`xyhc2n1`,kAcZsS:`x1k7wiig`,$$css:!0},hoverOnPointer:{k8t4tK:`x1912f9e`,$$css:!0},borderless:{kMzoRj:`xc342km`,$$css:!0},bordered:{kVAM5u:`x14i3s5s`,kZCmMZ:`xs19ii7`,kwRFfy:`x12frdag`,kLKAdn:`x1nex4ik`,kGO01o:`xbv1mwh`,k1ekBW:`xshfolx`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,$$css:!0},borderedHoverOnPointer:{kpsWHe:`x1xwh4np`,$$css:!0},disabled:{kkrTdU:`xt0e3qv`,kSiTet:`xbyyjgo`,$$css:!0}},pS.displayName=`ClickableCard`})),vS=o((()=>{_S()}));function yS({crossAlign:e,direction:t,gap:n,mainAlign:r,wrap:i}){return[wS.stack,SS[t],n!=null&&TS[n],e!=null&&bS[e],r!=null&&xS[r],i!=null&&CS[i]]}var bS,xS,SS,CS,wS,TS,ES=o((()=>{bS={center:{kGNEyG:`x6s0dn4`,$$css:!0},end:{kGNEyG:`xuk3077`,$$css:!0},start:{kGNEyG:`x1cy8zhl`,$$css:!0},stretch:{kGNEyG:`x1qjc9v5`,$$css:!0}},xS={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}},SS={horizontal:{kXwgrk:`x1q0g3np`,$$css:!0},vertical:{kXwgrk:`xdt5ytf`,$$css:!0}},CS={nowrap:{kwnvtZ:`xozqiw3`,$$css:!0},wrap:{kwnvtZ:`x1a02dak`,$$css:!0},"wrap-reverse":{kwnvtZ:`x8hhl5t`,$$css:!0}},wS={stack:{k1xSpc:`x78zum5`,$$css:!0}},TS={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 DS({crossAlignSelf:e,size:t}={}){return[OS.reset,AS[t??`static`],e!=null&&kS[e]]}var OS,kS,AS,jS=o((()=>{OS={reset:{kAzted:`x2lwn1j`,k7Eaqz:`xeuugli`,$$css:!0}},kS={center:{kSGwAc:`xamitd3`,$$css:!0},end:{kSGwAc:`xpvyfi4`,$$css:!0},start:{kSGwAc:`xqcrz7y`,$$css:!0},stretch:{kSGwAc:`xkh2ocl`,$$css:!0}},AS={fill:{kzQI83:`x1iyjqo2`,$$css:!0},static:{kzQI83:`x1c4vz4f`,kmuXW:`x2lah0s`,$$css:!0}}}));function MS({variant:e=`section`,width:t,height:n,maxWidth:r,minHeight:i,children:a,dividers:o,padding:s,paddingInline:c,paddingInlineStart:l,paddingInlineEnd:u,paddingBlock:d,paddingBlockStart:f,paddingBlockEnd:p,xstyle:m,className:h,style:g,ref:_,...v}){let y=s==null,b=s??4,x=Xr[b],S=z(FS.outer,LS.sizing(t??null,n??null,r??null,i??null),m);return(0,NS.jsx)(`div`,{ref:_,className:[S.className,h].filter(Boolean).join(` `)||void 0,style:g&&S.style?{...S.style,...g}:g||S.style,...v,children:(0,NS.jsx)(`div`,{...U(V(`section`,{variant:e}),z(FS.inner,...Mx(y?{useThemeDefault:`section`}:{paddingInnerX:x,paddingInnerY:x,paddingOuterX:x,paddingOuterY:x}),!y&&b!==4&&Zr[b],!y&&b!==4&&Qr[b],!y&&b!==4&&$r[b],!y&&b!==4&&ei[b],!y&&di[b],c!=null&&ri[c],c!=null&&Qr[c],d!=null&&ii[d],d!=null&&$r[d],d!=null&&ei[d],f!=null&&li[f],f!=null&&$r[f],p!=null&&ui[p],p!=null&&ei[p],l!=null&&ai[l],l!=null&&si[l],u!=null&&oi[u],u!=null&&ci[u],PS[e],o?.includes(`top`)&&IS.top,o?.includes(`bottom`)&&IS.bottom,o?.includes(`start`)&&IS.start,o?.includes(`end`)&&IS.end)),children:a})})}var NS,PS,FS,IS,LS,RS=o((()=>{B(),Zx(),pi(),W(),H(),NS=G(),PS={section:{kWkggS:`x10xzikg`,$$css:!0},transparent:{kWkggS:`xjbqb8w`,$$css:!0},muted:{kWkggS:`xwmxj5m`,$$css:!0}},FS={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}},IS={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}},LS={sizing:(e,t,n,r)=>[{kzqmXN:e==null?e:`x5lhr3w`,kZKoxP:t==null?t:`x16ye13r`,ks0D6T:n==null?n:`xf68679`,kAzted:r==null?r:`x82snj4`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(e),"--x-height":(e=>typeof e==`number`?e+`px`:e??void 0)(t),"--x-maxWidth":(e=>typeof e==`number`?e+`px`:e??void 0)(n),"--x-minHeight":(e=>typeof e==`number`?e+`px`:e??void 0)(r)}]},MS.displayName=`Section`})),zS=o((()=>{RS()})),BS,VS,HS=o((()=>{BS=u(f(),1),VS=(0,BS.createContext)(null),VS.displayName=`LayoutAreaContext`})),US,WS,GS=o((()=>{Ar(),US={hasHeader:!1,hasFooter:!1,hasStart:!1,hasEnd:!1},WS=Tr(US),WS.displayName=`LayoutSlotsContext`})),KS,qS=o((()=>{Ar(),KS=Tr(null),KS.displayName=`LayoutDividerContext`}));function JS(e){if(e==null||typeof e==`number`)return!0;let t=e.trim().toLowerCase();return t.includes(`%`)?!1:t===`0`||/^-?(?:\d+(?:\.\d+)?|\.\d+)[a-z]+$/.test(t)||/^(?:calc|min|max|clamp)\(/.test(t)}function YS({area:e,children:t}){return t==null?null:(0,QS.jsx)(VS,{value:e,children:t})}function XS({children:e,content:t,contentWidth:n,defaultHasDividers:r,end:i,footer:a,header:o,height:s=`fill`,padding:c,ref:l,start:u,xstyle:d,className:f,style:p}){let m=s===`fill`,h=t??e,g=(0,ZS.useMemo)(()=>r==null?null:{defaultHasDividers:r},[r]),_=o!=null,v=a!=null,y=u!=null,b=i!=null,x=y&&b,S=y!==b,C=n!=null&&JS(n),w=(0,ZS.useMemo)(()=>({hasHeader:_,hasFooter:v,hasStart:y,hasEnd:b}),[_,v,y,b]),T=(0,QS.jsx)(WS,{value:w,children:(0,QS.jsx)(`div`,{ref:l,...U(V(`layout`,{height:s}),z($S.layoutOuter,m?$S.fill:$S.auto,d),f,p),children:(0,QS.jsxs)(`div`,{...z(nC,$S.layoutInner,...yS({direction:`vertical`}),m?$S.fill:$S.auto,c===0&&$S.fullBleed,c!=null&&ti[c],c!=null&&ni[c],n!=null&&tC.contentWidthVar(n),C&&tC.contentAlignmentWidthVar(n)),children:[(0,QS.jsx)(YS,{area:`header`,children:o}),(0,QS.jsxs)(`div`,{...z(...yS({direction:`horizontal`}),$S.middle,n!=null&&(!C||x)&&tC.contentWidth(n),C&&!x&&$S.middleQuery,C&&S&&$S.singlePanelMiddle,C&&y&&!b&&$S.singleStartPanel,C&&!y&&b&&$S.singleEndPanel),children:[(0,QS.jsx)(YS,{area:`start`,children:u}),(0,QS.jsx)(`div`,{...z(...DS({size:`fill`}),C&&!y&&!b&&$S.singleColumnContent),children:(0,QS.jsx)(YS,{area:`content`,children:h})}),(0,QS.jsx)(YS,{area:`end`,children:i})]}),(0,QS.jsx)(YS,{area:`footer`,children:a})]})})});return g==null?T:(0,QS.jsx)(KS,{value:g,children:T})}var ZS,QS,$S,eC,tC,nC,rC=o((()=>{ZS=u(f(),1),B(),HS(),GS(),qS(),ES(),jS(),W(),H(),pi(),QS=G(),$S={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`,$$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-outer-x":`x1wbjvqu`,"--layout-padding-outer-y":`xzxxx64`,$$css:!0}},eC={kzqmXN:`xh8yej3`,kUOVxO:`xvueqy4`,$$css:!0},tC={contentWidthVar:e=>[{"--layout-content-width":(typeof e==`number`?`${e}px`:e)==null?typeof e==`number`?`${e}px`:e:`x4906uf`,$$css:!0},{"--x---layout-content-width":(typeof e==`number`?`${e}px`:e)==null?void 0:typeof e==`number`?`${e}px`:e}],contentAlignmentWidthVar:e=>[{"--layout-alignment-width":(typeof e==`number`?`${e}px`:e)==null?typeof e==`number`?`${e}px`:e:`x1b1nz06`,$$css:!0},{"--x---layout-alignment-width":(typeof e==`number`?`${e}px`:e)==null?void 0:typeof e==`number`?`${e}px`:e}],contentWidth:e=>[eC,{ks0D6T:(typeof e==`number`?`${e}px`:e)==null?typeof e==`number`?`${e}px`:e:`xf68679`,$$css:!0},{"--x-maxWidth":(e=>typeof e==`number`?e+`px`:e??void 0)(typeof e==`number`?`${e}px`:e)}]},nC={"x-default-marker":`x-default-marker`,$$css:!0},XS.displayName=`Layout`}));function iC({children:e,hasDivider:t,height:n,label:r,padding:i,paddingBlockEnd:a,role:o,xstyle:s,className:c,style:l,ref:u,...d}){let f=(0,aC.use)(KS),p=t??f?.defaultHasDividers??!1,m=i===0;return(0,oC.jsx)(`div`,{ref:u,role:o,"aria-label":r,"data-divider":p||void 0,...U(V(`layout-header`),z(sC.header,cC.sizing(n??null),p&&sC.divider,s),c,l),...d,children:(0,oC.jsx)(`div`,{...z(sC.inner,m&&sC.fullBleed,i!=null&&Zr[i],i!=null&&Qr[i],i!=null&&$r[i],i!=null&&ei[i],a!=null&&ui[a],a!=null&&ei[a]),children:e})})}var aC,oC,sC,cC,lC=o((()=>{aC=u(f(),1),B(),qS(),W(),H(),pi(),oC=G(),sC={header:{kmuXW:`x2lah0s`,$$css:!0},inner:{kB7OPa:`x9f619`,ks0D6T:`xjl2t3p`,kUOVxO:`xvueqy4`,kZCmMZ:`x139j0dd`,kwRFfy:`xpc6k2p`,kLKAdn:`x81pis9`,kGO01o:`xg476vw`,"--container-padding-inline-start":`xdvaxxn`,"--container-padding-inline-end":`xqpvj4r`,"--container-padding-block-start":`xzz8v79`,"--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}},cC={sizing:e=>[{kZKoxP:e==null?e:`x16ye13r`,$$css:!0},{"--x-height":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]},iC.displayName=`LayoutHeader`}));function uC({children:e,hasDivider:t,height:n,label:r,padding:i,role:a,xstyle:o,className:s,style:c,ref:l,...u}){let d=(0,dC.use)(KS),f=t??d?.defaultHasDividers??!1,p=i===0;return(0,fC.jsx)(`div`,{ref:l,role:a,"aria-label":r,"data-divider":f||void 0,...U(V(`layout-footer`),z(pC.footer,mC.sizing(n??null),f&&pC.divider,o),s,c),...u,children:(0,fC.jsx)(`div`,{...z(pC.inner,p&&pC.fullBleed,i!=null&&Zr[i],i!=null&&Qr[i],i!=null&&$r[i],i!=null&&ei[i]),children:e})})}var dC,fC,pC,mC,hC=o((()=>{dC=u(f(),1),B(),qS(),W(),H(),pi(),fC=G(),pC={footer:{kmuXW:`x2lah0s`,$$css:!0},inner:{kB7OPa:`x9f619`,ks0D6T:`xjl2t3p`,kUOVxO:`xvueqy4`,kZCmMZ:`x139j0dd`,kwRFfy:`xpc6k2p`,kLKAdn:`xqty4a`,kGO01o:`xon7vh3`,"--container-padding-inline-start":`xdvaxxn`,"--container-padding-inline-end":`xqpvj4r`,"--container-padding-block-start":`xjmgx01`,"--container-padding-block-end":`x1xjq73n`,$$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}},mC={sizing:e=>[{kZKoxP:e==null?e:`x16ye13r`,$$css:!0},{"--x-height":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]},uC.displayName=`LayoutFooter`}));function gC({children:e,isScrollable:t=!0,padding:n,label:r,role:i,xstyle:a,className:o,style:s,ref:c,...l}){let{hasHeader:u,hasFooter:d,hasStart:f,hasEnd:p}=(0,_C.use)(WS),m=n===0;return(0,vC.jsx)(`div`,{ref:c,role:i,"aria-label":r,...U(V(`layout-content`),z(yC.content,!f&&!m&&n==null&&yC.noStart,!p&&!m&&n==null&&yC.noEnd,!u&&!m&&n==null&&yC.noHeader,!d&&!m&&n==null&&yC.noFooter,t&&yC.scrollable,m&&yC.fullBleed,n!=null&&Zr[n],n!=null&&Qr[n],n!=null&&$r[n],n!=null&&ei[n],!f&&!p&&!m&&yC.constrainedNoPanelsStart,!f&&!p&&!m&&yC.constrainedNoPanelsEnd,f&&!p&&!m&&yC.constrainedSingleStartPanel,!f&&p&&!m&&yC.constrainedSingleEndPanel,a),o,s),...l,children:e})}var _C,vC,yC,bC=o((()=>{_C=u(f(),1),B(),GS(),W(),H(),pi(),vC=G(),yC={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:`x139j0dd`,"--container-padding-inline-start":`xdvaxxn`,"--container-padding-inline-end":`xqpvj4r`,$$css:!0},noEnd:{kwRFfy:`xpc6k2p`,$$css:!0},noHeader:{kLKAdn:`x81pis9`,"--container-padding-block-start":`xzz8v79`,$$css:!0},noFooter:{kGO01o:`xon7vh3`,"--container-padding-block-end":`x1xjq73n`,$$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}},gC.displayName=`LayoutContent`}));function xC({children:e,hasDivider:t=!1,isScrollable:n=!0,label:r,padding:i,role:a,width:o,resizable:s,xstyle:c,className:l,style:u,ref:d,...f}){let p=(0,SC.use)(VS),{hasHeader:m,hasFooter:h}=(0,SC.use)(WS),g=s?s._size:o,_=p===`start`,v=p===`end`,y=i===0,b=!t&&!y&&i==null,x=_?wC.dividerEnd:v?wC.dividerStart:null,S=_?wC.collapseEnd:v?wC.collapseStart:null;return(0,CC.jsx)(`div`,{ref:d,role:a,"aria-label":r,...U(V(`layout-panel`),z(wC.panel,TC.sizing(g??null),_&&!y&&i==null&&wC.startPanel,v&&!y&&i==null&&wC.endPanel,!m&&!y&&i==null&&wC.noHeader,!h&&!y&&i==null&&wC.noFooter,n&&wC.scrollable,y&&wC.fullBleed,i!=null&&Zr[i],i!=null&&Qr[i],i!=null&&$r[i],i!=null&&ei[i],t&&x,b&&S,c),l,u),...f,children:e})}var SC,CC,wC,TC,EC=o((()=>{SC=u(f(),1),B(),HS(),GS(),W(),H(),pi(),CC=G(),wC={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:`x139j0dd`,$$css:!0},endPanel:{kwRFfy:`xpc6k2p`,$$css:!0},noHeader:{kLKAdn:`x81pis9`,$$css:!0},noFooter:{kGO01o:`xon7vh3`,$$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}},TC={sizing:e=>[{kzqmXN:e==null?e:`x5lhr3w`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]},xC.displayName=`LayoutPanel`})),DC=o((()=>{Zx(),pi(),ux(),ES(),jS(),B(),W(),H(),aS(),zS(),rC(),lC(),hC(),bC(),EC(),HS(),qS()}));function OC({title:e,titleId:t,headingLevel:n=2,titleIcon:r,description:i,href:a,headerAccessory:o,children:s,footer:c}){let l=(0,kC.jsx)(XS,{height:`auto`,header:(0,kC.jsx)(iC,{hasDivider:!0,padding:0,children:(0,kC.jsx)(`div`,{className:`void-admin-card-heading`,children:(0,kC.jsxs)(`div`,{className:`void-admin-card-title`,children:[(0,kC.jsx)(Ba,{level:n,id:t,children:r?(0,kC.jsxs)(`span`,{className:`void-admin-card-label`,children:[r,e]}):e}),o,a&&(0,kC.jsx)(Qp,{className:`void-admin-card-arrow`,size:18,"aria-hidden":`true`})]})})}),content:(i!=null||s!=null)&&(0,kC.jsx)(gC,{children:(0,kC.jsxs)(`div`,{className:`void-admin-card-content`,children:[i!=null&&(0,kC.jsx)(Na,{as:`p`,type:`body`,children:i}),s]})}),footer:c!=null&&(0,kC.jsx)(uC,{hasDivider:!0,className:`void-admin-card-footer`,children:c})});return a?(0,kC.jsx)(pS,{className:`void-admin-card`,label:e,href:a,children:l}):(0,kC.jsx)(Qx,{className:`void-admin-card`,children:l})}var kC,AC=o((()=>{aS(),vS(),DC(),qa(),Jh(),kC=G()})),jC,MC=o((()=>{jC=`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 NC(e){(0,BC.useEffect)(()=>{if(e)return VC+=1,()=>{--VC}},[e])}function PC(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){let t=window.getComputedStyle(e);if(t.visibility===`hidden`||t.display===`none`)return!1}return!0}function FC(e){return Array.from(e.querySelectorAll(jC)).filter(PC)}function IC(e){try{e.focus()}catch{}return document.activeElement===e}function LC(e){let t=FC(e);for(let e of t)if(IC(e))return!0;return!1}function RC(e){let t=FC(e);for(let e=t.length-1;e>=0;e--)if(IC(t[e]))return!0;return!1}function zC(e){let{isActive:t,onEscape:n}=e,r=(0,BC.useRef)(null),i=(0,BC.useRef)(null),a=(0,BC.useRef)(!1),o=t&&n!=null;ma({isActive:o,onDismiss:()=>{n?.()},getContainer:()=>r.current}),NC(o);let s=(0,BC.useCallback)(()=>{r.current&&LC(r.current)},[]);return(0,BC.useEffect)(()=>{if(!t)return;let e=document.activeElement,n=r.current,i=n!=null&&n.contains(document.activeElement),a=e=>{let t=e.target;t!=null&&r.current?.contains(t)&&(i=!0)};return document.addEventListener(`focusin`,a,!0),()=>{if(document.removeEventListener(`focusin`,a,!0),!i)return;let t=document.activeElement;(t==null||t===document.body||t===document.documentElement||n!=null&&n.contains(t))&&e!=null&&e.isConnected&&typeof e.focus==`function`&&e.focus()}},[t]),(0,BC.useEffect)(()=>{if(!t)return;let e=e=>{let t=r.current;if(!t)return;let n=e.target;if(t.contains(n))i.current=n;else if(a.current){let e=LC(t);e&&i.current===document.activeElement?RC(t):!e&&i.current instanceof HTMLElement&&t.contains(i.current)&&IC(i.current),i.current=document.activeElement}a.current=!1};return document.addEventListener(`focus`,e,!0),()=>{document.removeEventListener(`focus`,e,!0)}},[t]),(0,BC.useEffect)(()=>{if(!t)return;let e=e=>{let t=r.current;if(t&&e.key===`Tab`){a.current=!0;let n=FC(t);if(n.length===0){let n=document.activeElement;if(!(n instanceof HTMLElement)||!t.contains(n))return;e.preventDefault(),i.current=n,a.current=!1;return}let r=n[0],o=n[n.length-1];if(document.activeElement===t){e.preventDefault(),e.shiftKey?o.focus():r.focus();return}e.shiftKey?document.activeElement===r&&(e.preventDefault(),o.focus()):document.activeElement===o&&(e.preventDefault(),r.focus())}};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[t,n]),{containerRef:r,focusFirst:s}}var BC,VC,HC=o((()=>{BC=u(f(),1),MC(),ga(),VC=0}));function UC(e){let t=ew[e];t!=null&&(clearTimeout(t),ew[e]=null)}function WC(e,t){UC(e),ew[e]=setTimeout(()=>{ew[e]=null,t.textContent=``},$C)}function GC(e){let t=document.createElement(`div`);return t.setAttribute(ZC,e),t.setAttribute(`aria-live`,e),t.setAttribute(`aria-atomic`,`true`),t.setAttribute(`role`,e===`assertive`?`alert`:`status`),t.style.cssText=QC,document.body.appendChild(t),t}function KC(){return typeof document>`u`?null:tw?(tw.polite.isConnected||document.body.appendChild(tw.polite),tw.assertive.isConnected||document.body.appendChild(tw.assertive),tw):(tw={polite:GC(`polite`),assertive:GC(`assertive`)},tw)}function qC(e,t){let n=KC();if(!n)return;let r=t===`assertive`?n.assertive:n.polite;r.textContent=``,requestAnimationFrame(()=>{r.textContent=e}),WC(t,r)}function JC(e){if(UC(e),!tw)return;let t=e===`assertive`?tw.assertive:tw.polite;t.textContent=``}function YC(){return(0,XC.useCallback)((e,t=`polite`)=>{if(!e){JC(t);return}qC(e,t)},[])}var XC,ZC,QC,$C,ew,tw,nw=o((()=>{XC=u(f(),1),ZC=`data-astryx-live-region`,QC=`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;`,$C=2e3,ew={polite:null,assertive:null},tw=null}));function rw(e={}){let{announce:t,resetAfterMs:n=aw}=e,r=YC(),[i,a]=(0,iw.useState)(!1),o=(0,iw.useRef)(null);return(0,iw.useEffect)(()=>()=>{o.current!=null&&clearTimeout(o.current)},[]),{copy:(0,iw.useCallback)(async e=>{try{return await navigator.clipboard.writeText(e),a(!0),t&&r(t),o.current!=null&&clearTimeout(o.current),o.current=setTimeout(()=>{o.current=null,a(!1)},n),!0}catch{return!1}},[r,t,n]),isCopied:i}}var iw,aw,ow=o((()=>{iw=u(f(),1),nw(),aw=2e3}));function sw(e){return!e||typeof window>`u`?!1:window.getComputedStyle(e).direction===`rtl`}var cw=o((()=>{}));function lw(e){if(e.isContentEditable)return e;let t=e.closest(`[contenteditable]`);return t&&t.getAttribute(`contenteditable`)!==`false`?t:null}function uw(e,t){if(!(e instanceof HTMLElement))return!1;let n=lw(e);if(n){let e=typeof window<`u`?window.getSelection():null;return e&&e.rangeCount>0&&!e.isCollapsed?!0:(n.textContent??``).length>0}let r=e.tagName===`TEXTAREA`,i=e.tagName===`INPUT`&&pw.has(e.type);if(!r&&!i)return!1;let{selectionStart:a,selectionEnd:o,value:s}=e;return a!==o||a==null?!0:t===`ArrowLeft`||t===`ArrowUp`||t===`Home`?a>0:t===`ArrowRight`||t===`ArrowDown`||t===`End`?a<s.length:!1}function dw(e={}){let{itemSelector:t=`[role="menuitem"]`,boundarySelector:n,wrap:r=!0,onEscape:i,orientation:a=`vertical`,hasHomeEnd:o=!0,hasRovingTabIndex:s=!1,hasCaretGuard:c=!1}=e,l=(0,fw.useRef)(null),u=(0,fw.useCallback)(e=>e.getAttribute(`aria-disabled`)===`true`||e.disabled===!0||e.hasAttribute(`disabled`),[]),d=(0,fw.useCallback)(()=>{let e=l.current;if(!e)return[];let r=Array.from(e.querySelectorAll(t));return n?r.filter(t=>t.closest(n)===e):r},[t,n]),f=(0,fw.useCallback)(e=>{let t=l.current;if(!t||!n)return!0;let r=e.target;return!r||r.closest(n)===t},[n]),p=(0,fw.useCallback)((e,t,n,r)=>{let i=e.length;if(i===0)return-1;let a=t;for(let t=0;t<i;t++){if(a<0||a>=i){if(!r)return-1;a=(a+i)%i}let t=e[a];if(t&&!u(t))return a;a+=n}return-1},[u]),m=(0,fw.useCallback)(()=>{let e=d(),t=document.activeElement;return e.findIndex(e=>e===t||e.contains(t))},[d]),h=(0,fw.useCallback)((e,t)=>{e.getAttribute(`tabindex`)!==String(t)&&e.setAttribute(`tabindex`,String(t))},[]),g=(0,fw.useCallback)(()=>{let e=d(),t=e.filter(e=>!u(e));if(t.length===0)return;let n=t.find(e=>e.getAttribute(`tabindex`)===`0`)??t[0];for(let t of e)h(t,t===n?0:-1)},[d,u,h]);Cr(()=>{s&&g()});let _=(0,fw.useCallback)((e,t)=>{let n=e[t];if(n){if(s)for(let t of e)h(t,t===n?0:-1);n.focus()}},[s,h]),v=(0,fw.useCallback)(e=>{let t=d();if(t.length===0)return;let n=Math.max(0,Math.min(e,t.length-1));_(t,n)},[d,_]),y=(0,fw.useCallback)(()=>{let e=d(),t=p(e,0,1,!1);return t!==-1&&(_(e,t),!0)},[d,p,_]),b=(0,fw.useCallback)(()=>{let e=d(),t=p(e,e.length-1,-1,!1);return t!==-1&&(_(e,t),!0)},[d,p,_]),x=(0,fw.useCallback)(()=>{s&&g()},[s,g]);return{listRef:l,handleKeyDown:(0,fw.useCallback)(e=>{if(e.ctrlKey||e.metaKey||e.altKey||!f(e))return;if(e.key===`Escape`){i&&(e.preventDefault(),i());return}let t=a===`horizontal`||a===`both`,n=a===`vertical`||a===`both`,s=[],u=[];if(t){let t=e.key===`ArrowLeft`||e.key===`ArrowRight`?sw(l.current):!1;s.push(t?`ArrowLeft`:`ArrowRight`),u.push(t?`ArrowRight`:`ArrowLeft`)}n&&(s.push(`ArrowDown`),u.push(`ArrowUp`));let h=s.includes(e.key),g=u.includes(e.key),v=o&&e.key===`Home`,x=o&&e.key===`End`;if(!h&&!g&&!v&&!x||c&&(uw(e.target,e.key)||uw(document.activeElement,e.key)))return;let S=m(),C=d();if(h){let e=S===-1?0:S+1,t=p(C,e,1,r);t!==-1&&_(C,t)}else if(g){let e=S===-1?C.length-1:S-1,t=p(C,e,-1,r);t!==-1&&_(C,t)}else v?y():x&&b();e.preventDefault()},[m,d,r,a,o,c,p,_,y,b,i,f]),handleFocus:x,focusItem:v,focusFirst:y,focusLast:b,ownsEvent:f,getItems:d}}var fw,pw,mw=o((()=>{fw=u(f(),1),cw(),wr(),pw=new Set([`text`,`search`,`url`,`tel`,`email`,`password`,`number`])}));function hw(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey&&e.key!==` `}function gw(e){let{getItemLabels:t,onMatch:n,getCurrentIndex:r,resetMs:i=750,isDisabled:a}=e,o=(0,_w.useRef)(``),s=(0,_w.useRef)(void 0),c=(0,_w.useCallback)(()=>{o.current=``,s.current&&=(clearTimeout(s.current),void 0)},[]),l=(0,_w.useCallback)(()=>{s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{o.current=``,s.current=void 0},i)},[i]);return{onKeyDown:(0,_w.useCallback)(e=>{let i=e.key===` `&&!e.ctrlKey&&!e.metaKey&&o.current.length>0;if(!hw(e)&&!i)return!1;let s=t();if(s.length===0)return!1;let c=e.key.toLowerCase(),u=o.current.length>0&&o.current.split(``).every(e=>e===c)?c:o.current+c;o.current=u,l();let d=r?.()??-1,f=s.length,p=d>=0,m=p?d:0,h=p&&u.length===1?1:0;for(let e=0;e<f;e++){let t=(m+h+e+f)%f;if(a?.(t))continue;let r=s[t];if(r!=null&&r.trim().toLowerCase().startsWith(u))return n(t),!0}return!0},[t,n,r,l,a]),reset:c}}var _w,vw=o((()=>{_w=u(f(),1)}));function yw(e,t,n=!0){let r=(0,bw.useRef)(!1);(0,bw.useEffect)(()=>{n&&!r.current&&(r.current=!0)},[e,t,n])}var bw,xw=o((()=>{bw=u(f(),1),En()}));function Sw(e,t){Tw.set(e,t)}function Cw(e){Tw.delete(e)}function ww(e){return Tw.get(e)}var Tw,Ew=o((()=>{Tw=new WeakMap}));function Dw(e){if(e.tabIndex<0||e.matches(`:disabled`)||e.closest(`[inert], [hidden]`)!=null||e.getClientRects().length===0)return!1;let t=getComputedStyle(e).visibility;return t!==`hidden`&&t!==`collapse`}function Ow(e,t){let n=t.querySelectorAll(jC),r=t.matches(`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`)&&Dw(t)?t:null;for(let e of n)if(!(r!=null&&e.tabIndex<=0)&&Dw(e)){if(e.tabIndex>0)return null;r??=e}if(r==null||r.tabIndex!==0||!r.matches(`a[href], button`)||r.closest(`[aria-hidden="true"]`)!=null||r.matches(`[aria-disabled="true"], [aria-haspopup]:not([aria-haspopup="false"])`))return null;let i=r;for(;i!=null&&i!==e;){let e=i.getAttribute(`role`)?.trim().toLowerCase(),t=i===r&&(e===`button`&&r.localName===`button`||e===`link`&&r.localName===`a`);if(e!=null&&e!==``&&!t&&!Aw.has(e)||i===r&&e!=null&&e!==``&&!t||i.hasAttribute(`aria-activedescendant`)||i.isContentEditable||i.matches(`[contenteditable]:not([contenteditable="false"])`)||ww(i)!=null)return null;let n=getComputedStyle(i);if(/^(auto|scroll|overlay)$/.test(n.overflowX)&&i.scrollWidth>i.clientWidth+1||/^(auto|scroll|overlay)$/.test(n.overflowY)&&i.scrollHeight>i.clientHeight+1)return null;i=i.parentElement}return i===e?r:null}function kw(e,t){let n=e.ownerDocument,r=n.defaultView;if(r==null)return()=>{};let i=null,a=null,o=null,s,c,l=()=>{i=null,a=null,r.clearTimeout(s),c?.(),c=void 0},u=t=>{if(l(),!(t.key!==`Tab`||t.ctrlKey||t.metaKey)){if(i=t,a=t.target,t.shiftKey&&o!=null&&n.activeElement===o&&e.contains(o)){let t=e.getAttribute(`tabindex`);e.tabIndex=-1,c=()=>{e.getAttribute(`tabindex`)===`-1`&&(t==null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t))}}s=r.setTimeout(l,0)}},d=r=>{let s=i,c=a;if(l(),r.target!==e){e.contains(r.target)||(o=null);return}if(o=null,s==null||s.shiftKey||s.defaultPrevented||s.eventPhase!==0||r.relatedTarget!=null&&r.relatedTarget!==c)return;let u=Ow(e,t);u!=null&&(o=u,u.focus(),n.activeElement!==u&&(o=null))};return n.addEventListener(`keydown`,u,!0),n.addEventListener(`keyup`,l,!0),n.addEventListener(`pointerdown`,l,!0),n.addEventListener(`focusin`,d,!0),r.addEventListener(`blur`,l),()=>{l(),n.removeEventListener(`keydown`,u,!0),n.removeEventListener(`keyup`,l,!0),n.removeEventListener(`pointerdown`,l,!0),n.removeEventListener(`focusin`,d,!0),r.removeEventListener(`blur`,l)}}var Aw,jw=o((()=>{MC(),Ew(),Aw=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 Mw(e,t){let n=e.toLowerCase(),r=n.startsWith(`vertical`)||n.startsWith(`sideways`),i=t===`rtl`;return r?{inline:`y`,block:`x`,inlineReversed:n===`sideways-lr`?!i:i,blockReversed:n.endsWith(`-rl`)}:{inline:`x`,block:`y`,inlineReversed:i,blockReversed:!1}}function Nw(e){return e===`auto`||e===`scroll`||e===`overlay`}function Pw(e,t){let n=getComputedStyle(e);return t===`x`?{clientExtent:e.clientWidth,contentExtent:e.scrollWidth,offset:e.scrollLeft,overflow:n.overflowX}:{clientExtent:e.clientHeight,contentExtent:e.scrollHeight,offset:e.scrollTop,overflow:n.overflowY}}function Fw(e,t){return e.isConnected&&t.display!==`none`&&e.clientWidth>0&&e.clientHeight>0}function Iw(e,t,n){if(!Fw(e,getComputedStyle(e)))return null;let r=n[t],i=r===`x`?e.clientWidth:e.clientHeight;return(r===`x`?e.scrollWidth:e.scrollHeight)-i>1}function Lw(e,t,n){if(!Fw(e,getComputedStyle(e)))return null;let r=n[t],i=Pw(e,r),a=i.contentExtent-i.clientExtent;if(!Nw(i.overflow)||a<=1)return Rw;let o=n[`${t}Reversed`],s=Math.min(a,Math.max(0,o?Math.abs(i.offset):i.offset));return{isScrollable:!0,atStart:s<=1,atEnd:s>=a-1}}var Rw,zw=o((()=>{Rw={isScrollable:!1,atStart:!0,atEnd:!0}}));function Bw(e,t){return e===t||e===`both`}function Vw(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 Hw(e,t){return e.inline===t.inline&&e.block===t.block}function Uw(e,t){return e.inline===t.inline&&e.block===t.block&&e.inlineReversed===t.inlineReversed&&e.blockReversed===t.blockReversed}function Ww(e){if(e==null)return;let t={...e};return delete t.overflow,delete t.overflowX,delete t.overflowY,delete t.overflowInline,delete t.overflowBlock,t}function Gw(e){let t=(0,qw.useRef)(void 0),n=(0,qw.useRef)(null);return(0,qw.useCallback)(r=>{if(n.current!=null&&Object.is(t.current,r))return n.current;let i=Zt(r,e);return t.current=r,n.current=i,i},[e])}function Kw({axis:e,keyboardAccess:t,overscroll:n=`allow`,stickyContainment:r=`whenScrollable`}){let[i,a]=(0,qw.useState)(null),[o,s]=(0,qw.useState)(null),[c,l]=(0,qw.useState)(Yw),[u,d]=(0,qw.useState)(Xw),[f,p]=(0,qw.useState)(Zw),m=(0,qw.useRef)(Yw),h=(0,qw.useCallback)(e=>{a(t=>t===e?t:e)},[]),g=(0,qw.useCallback)(e=>{s(t=>t===e?t:e)},[]),_=Gw(h),v=Gw(g);Cr(()=>{if(i==null||o==null)return;let t=null,n=!0,r=()=>{t=null;let n=getComputedStyle(i),r=Mw(n.writingMode,n.direction),a=Bw(e,`inline`)?Iw(i,`inline`,r):!1,o=Bw(e,`block`)?Iw(i,`block`,r):!1,s=Bw(e,`inline`)?Lw(i,`inline`,r):Jw,c=Bw(e,`block`)?Lw(i,`block`,r):Jw;if(a==null||o==null||s==null||c==null)return;let u={inline:a,block:o},f={inline:s,block:c};m.current=f,Sw(i,f),d(e=>Hw(e,u)?e:u),l(e=>Vw(e,f)?e:f),p(e=>Uw(e,r)?e:r)},a=()=>{n&&t==null&&(t=window.requestAnimationFrame(r))};Sw(i,m.current),r();let s=on(i,a),c=on(o,a);i.addEventListener(`scroll`,a,{passive:!0}),window.addEventListener(`resize`,a),window.visualViewport?.addEventListener(`resize`,a),o.addEventListener(`load`,a,!0),i.addEventListener(`transitionend`,a),i.addEventListener(`animationend`,a),o.addEventListener(`transitionend`,a),o.addEventListener(`animationend`,a);let u=typeof MutationObserver>`u`?null:new MutationObserver(a);u?.observe(i,{attributes:!0,attributeFilter:[`class`,`dir`,`hidden`,`style`]}),u?.observe(o,{attributes:!0,attributeFilter:[`class`,`dir`,`hidden`,`style`],characterData:!0,childList:!0,subtree:!0});let f=i.parentElement;for(;f!=null;)u?.observe(f,{attributes:!0,attributeFilter:[`class`,`dir`,`hidden`,`style`]}),f=f.parentElement;let h=document.fonts;return h?.addEventListener?.(`loadingdone`,a),h?.ready.then(a),()=>{n=!1,Cw(i),s(),c(),u?.disconnect(),i.removeEventListener(`scroll`,a),window.removeEventListener(`resize`,a),window.visualViewport?.removeEventListener(`resize`,a),o.removeEventListener(`load`,a,!0),i.removeEventListener(`transitionend`,a),i.removeEventListener(`animationend`,a),o.removeEventListener(`transitionend`,a),o.removeEventListener(`animationend`,a),h?.removeEventListener?.(`loadingdone`,a),t!=null&&window.cancelAnimationFrame(t)}},[e,o,i]);let y=(0,qw.useMemo)(()=>({inline:Bw(e,`inline`)?c.inline:Jw,block:Bw(e,`block`)?c.block:Jw}),[e,c]),b=y.inline.isScrollable||y.block.isScrollable;return Cr(()=>{if(t.owner===`contentOrViewport`&&b&&i!=null&&o!=null)return kw(i,o)},[o,b,t.owner,i]),{getViewportProps:(0,qw.useCallback)((a={})=>{let o=y.inline.isScrollable||y.block.isScrollable,s=Bw(e,`inline`)&&f.inline===`x`||Bw(e,`block`)&&f.block===`x`,c=Bw(e,`inline`)&&f.inline===`y`||Bw(e,`block`)&&f.block===`y`,l=u.inline&&f.inline===`x`||u.block&&f.block===`x`,d=u.inline&&f.inline===`y`||u.block&&f.block===`y`,p=l||d||r===`always`,m=r===`always`?s:l,h=r===`always`?c:d,{xstyle:g,...v}=a,b=U({...v,style:Ww(v.style)},z(g,Qw.overflow(p?m?`auto`:`hidden`:`clip`,p?h?`auto`:`hidden`:`clip`))),x=t.owner!==`content`,S=(!x||!o)&&i!=null&&typeof document<`u`&&document.activeElement===i,C={...b.style},w=n===`contain`&&y.inline.isScrollable,T=n===`contain`&&y.block.isScrollable,E=f.inline,D=f.block;Bw(e,`inline`)&&(C[E===`x`?`overscrollBehaviorX`:`overscrollBehaviorY`]=w?`contain`:`auto`),Bw(e,`block`)&&(C[D===`x`?`overscrollBehaviorX`:`overscrollBehaviorY`]=T?`contain`:`auto`);let O=t.owner===`content`?{}:{role:t.role??`group`,"aria-label":t.label,tabIndex:x&&o?0:S?-1:void 0};return{...b,...O,ref:_(b.ref),style:C,"data-scroll-axis":e,"data-scrollable-inline":y.inline.isScrollable?`true`:void 0,"data-scrollable-block":y.block.isScrollable?`true`:void 0,"data-scroll-inline-start":y.inline.atStart?`true`:void 0,"data-scroll-inline-end":y.inline.atEnd?`true`:void 0,"data-scroll-block-start":y.block.atStart?`true`:void 0,"data-scroll-block-end":y.block.atEnd?`true`:void 0}},[e,_,t,f,u,n,y,r,i]),getContentProps:(0,qw.useCallback)((e={})=>({...e,ref:v(e.ref),"data-scroll-content":``}),[v]),state:y}}var qw,Jw,Yw,Xw,Zw,Qw,$w=o((()=>{qw=u(f(),1),B(),jw(),wr(),Xt(),Qt(),un(),zw(),Ew(),Jw={isScrollable:!1,atStart:!0,atEnd:!0},Yw={inline:Jw,block:Jw},Xw={inline:!1,block:!1},Zw={inline:`x`,block:`y`,inlineReversed:!1,blockReversed:!1},Qw={overflow:(e,t)=>[{kXHlph:e==null?e:`xyto64x`,kORKVm:t==null?t:`x4ncuvb`,$$css:!0},{"--x-overflowX":e??void 0,"--x-overflowY":t??void 0}]}}));function eT(e){if(typeof window>`u`||typeof document>`u`)return tT;let t=document.documentElement,n=t.clientWidth;if(n===0)return tT;let r=t.style.scrollbarGutter,i=e.style.paddingRight,a=e.getBoundingClientRect().width,o=!1,s=!1,c=!1;return window.innerWidth>n&&(t.style.scrollbarGutter=`stable`,o=!0),{settle(){if(c)return;c=!0;let t=e.getBoundingClientRect().width-a;if(t<=0)return;let n=Number.parseFloat(window.getComputedStyle(e).paddingRight)||0;e.style.paddingRight=`${n+t}px`,s=!0},release(){s&&=(e.style.paddingRight=i,!1),o&&=(t.style.scrollbarGutter=r,!1)}}}var tT,nT=o((()=>{tT={settle(){},release(){}}}));function rT(e){(0,iT.useEffect)(()=>{if(!e)return;let{body:t}=document;if(aT===0){let e=window.scrollX,n=window.scrollY,r=eT(t);oT={scrollX:e,scrollY:n,overflow:t.style.overflow,position:t.style.position,top:t.style.top,left:t.style.left,right:t.style.right,gutter:r},t.style.overflow=`hidden`,t.style.position=`fixed`,t.style.top=`-${n}px`,t.style.left=`0`,t.style.right=`0`,r.settle()}return aT+=1,()=>{if(--aT,aT!==0||oT==null)return;let e=oT;oT=null,t.style.overflow=e.overflow,t.style.position=e.position,t.style.top=e.top,t.style.left=e.left,t.style.right=e.right,e.gutter.release(),window.scrollTo(e.scrollX,e.scrollY)}},[e])}var iT,aT,oT,sT=o((()=>{iT=u(f(),1),nT(),aT=0,oT=null}));function cT(e=`slideDown`){let[t]=(0,lT.useState)(()=>uT);return t?dT[e]:null}var lT,uT,dT,fT=o((()=>{lT=u(f(),1),uT=!1,typeof window<`u`&&requestAnimationFrame(()=>{uT=!0}),dT={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 pT(e){if(e.getAttribute(`role`)===`combobox`)return!0;let t=e.getAttribute(`aria-haspopup`);return t!=null&&_T.has(t)}function mT({containerRef:e,inputRef:t,disabled:n=!1}){return cS({containerRef:e,interactiveRef:t,onClick:(0,hT.useCallback)(()=>{let e=t.current;e!=null&&(e instanceof HTMLElement&&pT(e)?e.click():e instanceof HTMLInputElement&&gT.has(e.type)||e instanceof HTMLTextAreaElement?e.focus():e instanceof HTMLElement?e.click():`focus`in e&&e.focus())},[t]),disabled:n})}var hT,gT,_T,vT=o((()=>{hT=u(f(),1),fS(),gT=new Set([`text`,`password`,`email`,`number`,`search`,`tel`,`url`,`date`,`datetime-local`,`month`,`time`,`week`]),_T=new Set([`true`,`menu`,`listbox`,`tree`,`grid`,`dialog`])}));function yT({status:e,statusVariant:t=`attached`,isInGroup:n=!1,size:r=`md`}){let i=bf(),a=t===`tooltip`&&!!e?.message,[o,s]=(0,bT.useState)(void 0),c=va({placement:`above`,isEnabled:a,isOpen:o}),l=(0,bT.useCallback)(()=>{s(void 0)},[]),u=(0,bT.useCallback)(()=>{typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(hover: none)`).matches&&s(e=>e!==!0)},[]);if((0,bT.useEffect)(()=>{if(o!==!0)return;let e=e=>{e.key===`Escape`&&s(void 0)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[o]),!e||n||t===`detached`)return{statusIcon:null,describedBy:void 0};let d=(0,xT.jsx)(nu,{icon:ST[e.type],size:r,color:e.type,...V(`input-status-icon`,{size:r,status:e.type})});return a?{statusIcon:(0,xT.jsxs)(xT.Fragment,{children:[(0,xT.jsx)(`button`,{type:`button`,ref:c.ref,"aria-label":i(CT[e.type]),"aria-describedby":c.describedBy,onClick:u,onBlur:l,...z(Ln.focusVisible,wT.statusButton),children:d}),c.renderTooltip(e.message)]}),describedBy:c.describedBy}:{statusIcon:d,describedBy:void 0}}var bT,xT,ST,CT,wT,TT=o((()=>{bT=u(f(),1),B(),lu(),uu(),Ef(),H(),zn(),xT=G(),ST={warning:`warning`,error:`error`,success:`success`},CT={warning:`@astryx.input.statusButton.warning`,error:`@astryx.input.statusButton.error`,success:`@astryx.input.statusButton.success`},wT={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 ET(e){let{onLongPress:t,disabled:n=!1,delayMs:r=OT,moveCancelPx:i=kT}=e,a=(0,DT.useRef)(null),o=(0,DT.useRef)(null),s=(0,DT.useRef)(t);s.current=t;let c=(0,DT.useCallback)(()=>{a.current!=null&&(clearTimeout(a.current),a.current=null),o.current=null},[]),l=(0,DT.useCallback)(e=>{if(n)return;if(e.touches.length!==1){c();return}let t=e.touches[0];c(),o.current={x:t.clientX,y:t.clientY},a.current=setTimeout(()=>{let e=o.current;e!=null&&s.current({x:e.x,y:e.y})},r)},[n,r,c]),u=(0,DT.useCallback)(e=>{let t=o.current;if(t==null)return;if(e.touches.length!==1){c();return}let n=e.touches[0];(Math.abs(n.clientX-t.x)>i||Math.abs(n.clientY-t.y)>i)&&c()},[i,c]);return(0,DT.useEffect)(()=>c,[c]),{onTouchStart:l,onTouchMove:u,onTouchEnd:c,onTouchCancel:c}}var DT,OT,kT,AT=o((()=>{DT=u(f(),1),OT=500,kT=10}));function jT(e,t=!1){let n=(0,MT.useCallback)(t=>{let n=e.current?.firstElementChild;n instanceof HTMLElement&&Object.assign(n.style,t?Fn:In)},[e]),r=(0,MT.useCallback)(e=>{if(t)return;let r=e.target;r instanceof HTMLElement&&!r.matches(`:focus-visible`)||n(!0)},[t,n]),i=(0,MT.useCallback)(()=>n(!1),[n]);return(0,MT.useMemo)(()=>({focusProps:{onFocus:r,onBlur:i}}),[r,i])}var MT,NT=o((()=>{MT=u(f(),1),zn()})),PT=o((()=>{HC(),nw(),ow(),wr(),mw(),Hn(),vw(),B(),Et(),W(),H(),Ei(),Ef(),wl(),xr(),un(),xw(),$w(),sT(),fT(),Rl(),fS(),vT(),TT(),Fu(),AT(),NT()})),FT,IT=o((()=>{Ar(),FT=Tr({direction:`vertical`}),FT.displayName=`FormLayoutContext`}));function LT({label:e,inputID:t,labelID:n,isGroupLabel:r=!1,isLabelHidden:i=!1,isDisabled:a=!1,isOptional:o=!1,isRequired:s=!1,labelIcon:c,labelTooltip:l,description:u,descriptionID:d,className:f,style:p,xstyle:m,ref:h,...g}){let _=bf(),{defaultOptionality:v}=(0,RT.use)(FT),y=o&&v!==`optional`?_(`@astryx.field.optional`):s&&v!==`required`?_(`@astryx.field.required`):null,b=r?`span`:`label`,x=!r&&t!=null,S=(0,RT.useRef)(null),C=mT({containerRef:S,inputRef:(0,RT.useMemo)(()=>({get current(){return t==null?null:S.current?.ownerDocument.getElementById(t)??null},set current(e){}}),[t]),disabled:!x}),w=(0,zT.jsxs)(zT.Fragment,{children:[c&&iu(c,{size:`sm`,color:`inherit`}),e,y&&(0,zT.jsxs)(`span`,{className:`x1sodnla x141an7d x1ltkj2j xv1l7n4`,children:[(0,zT.jsx)(`span`,{"aria-hidden":`true`,children:` ∙ `}),y]}),l&&(0,zT.jsx)(Da,{content:l,placement:`above`,children:(0,zT.jsx)(nu,{icon:`info`,size:`sm`,color:`inherit`})})]}),T=(0,zT.jsx)(b,{ref:h,id:n,htmlFor:r?void 0:t,...g,...U(V(`field-label`),z(BT.label,a&&BT.labelDisabled,i&&BT.srOnly,m),f,p),children:w});return u?(0,zT.jsxs)(`div`,{...{0:{className:`x78zum5 xdt5ytf`},1:{className:`xdt5ytf xjp7ctv`}}[!!i<<0],children:[T,(0,zT.jsx)(`span`,{ref:x?S:void 0,id:d,...x?C: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`}}[!!x<<1|!!i<<0],children:u})]}):T}var RT,zT,BT,VT=o((()=>{RT=u(f(),1),B(),W(),lu(),uu(),Ef(),H(),PT(),IT(),zT=G(),BT={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}},LT.displayName=`FieldLabel`}));function HT({ref:e,type:t,message:n,id:r,variant:i=`attached`,xstyle:a,className:o,style:s,...c}){let l=cT(`slideDown`),u=YC();return(0,UT.useEffect)(()=>{n&&u(n,t===`error`?`assertive`:`polite`)},[u,n,t]),(0,WT.jsx)(`div`,{ref:e,id:r,...c,...U(V(`field-status`,{type:t,variant:i}),z(KT.base,l,i===`attached`?KT.attached:KT.detached,qT[t],a),o,s),children:i===`detached`?(0,WT.jsxs)(`span`,{className:`x78zum5 x1cy8zhl xzye2dw`,children:[(0,WT.jsx)(`span`,{className:`x3nfvp2 x6s0dn4 x14o5nre x2lah0s`,children:(0,WT.jsx)(nu,{icon:GT[t],size:`sm`,color:`inherit`,...V(`field-status-icon`,{type:t})})}),(0,WT.jsx)(`span`,{children:n})]}):n})}var UT,WT,GT,KT,qT,JT=o((()=>{UT=u(f(),1),B(),nw(),W(),Et(),fT(),H(),lu(),WT=G(),GT={warning:`warning`,error:`error`,success:`success`},`${St[`--spacing-1-5`]}`,KT={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}},qT={warning:{kWkggS:`x24i8r5`,kMwMTN:`xdhq94a`,$$css:!0},error:{kWkggS:`x1pritpl`,kMwMTN:`x1joocv1`,$$css:!0},success:{kWkggS:`xu13z74`,kMwMTN:`xltfdvo`,$$css:!0}},HT.displayName=`FieldStatus`})),YT,XT=o((()=>{YT={x1odsvnm:`x1odsvnm`,$$css:!0}}));function ZT({isRequired:e=!1,isOptional:t=!1}){let{defaultOptionality:n}=(0,QT.use)(FT);return!t&&(e||n===`required`)}var QT,$T=o((()=>{QT=u(f(),1),IT()}));function eE({state:e,size:t=`md`,isDisabled:n=!1,children:r,ref:i,className:a,style:o,xstyle:s,...c}){let l=e===`checked`,u=e===`indeterminate`,d=l||u;return(0,tE.jsx)(`span`,{...c,ref:i,"aria-hidden":`true`,...U(V(`checkbox-indicator`,{size:t,checked:l?`checked`:u?`indeterminate`:null,disabled:n?`disabled`:null},{legacyNames:[`checkbox`]}),z(nE.box,rE[t],d?nE.checked:nE.unchecked,n&&nE.disabled,n&&!d&&nE.disabledUnchecked,s),a,o),children:dn(r)?r:(0,tE.jsxs)(tE.Fragment,{children:[(0,tE.jsx)(`svg`,{viewBox:`0 0 10 10`,...U(V(`checkbox-indicator-check`,{size:t}),z(nE.checkmark,iE[t],l&&nE.checkmarkVisible)),children:(0,tE.jsx)(`path`,{d:`M8.5 2.5L4 7.5L1.5 5`,stroke:`currentColor`,strokeWidth:`1.5`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`})}),(0,tE.jsx)(`span`,{...U(V(`checkbox-indicator-dash`,{size:t}),z(nE.indeterminateMark,aE[t],u&&nE.indeterminateMarkVisible))})]})})}var tE,nE,rE,iE,aE,oE=o((()=>{B(),W(),tE=G(),nE={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}},rE={sm:{kzqmXN:`xw4jnvo`,kZKoxP:`x1qx5ct2`,$$css:!0},md:{kzqmXN:`xvy4d1p`,kZKoxP:`xxk0z11`,$$css:!0}},iE={sm:{kzqmXN:`xsmyaan`,kZKoxP:`x1kpxq89`,$$css:!0},md:{kzqmXN:`x6jxa94`,kZKoxP:`x1v9usgg`,$$css:!0}},aE={sm:{kzqmXN:`x1fsd2vl`,kZKoxP:`x36qwtl`,$$css:!0},md:{kzqmXN:`xsmyaan`,kZKoxP:`x36qwtl`,$$css:!0}},eE.displayName=`CheckboxIndicator`}));function sE({state:e,size:t=`md`,isDisabled:n=!1,children:r,ref:i,className:a,style:o,xstyle:s,...c}){let l=e===`checked`;return dn(r)?(0,cE.jsx)(`span`,{...c,ref:i,"aria-hidden":`true`,...U(z(uE.slot,n?uE.disabled:uE.enabled,s),a,o),children:r}):l?(0,cE.jsx)(nu,{...c,"aria-hidden":`true`,icon:`check`,size:lE[t],color:n?`disabled`:`accent`,xstyle:s,className:a,style:o}):null}var cE,lE,uE,dE=o((()=>{B(),cu(),W(),cE=G(),lE={sm:`sm`,md:`sm`},uE={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}},sE.displayName=`CheckIndicator`}));function fE({state:e,size:t=`md`,isDisabled:n=!1,children:r,ref:i,className:a,style:o,xstyle:s,...c}){let l=e!==`unchecked`;return(0,pE.jsx)(`span`,{...c,ref:i,"aria-hidden":`true`,...U(V(`radio-indicator`,{size:t,checked:l?`checked`:null,disabled:n?`disabled`:null},{legacyNames:[`radio`]}),z(mE.circle,hE[t],l?mE.checked:mE.unchecked,n&&mE.disabled,n&&!l&&mE.disabledUnchecked,s),a,o),children:dn(r)?r:l&&(0,pE.jsx)(`span`,{...U(V(`radio-indicator-dot`,{size:t},{legacyNames:[`radio-dot`]}),z(mE.dot,gE[t]))})})}var pE,mE,hE,gE,_E=o((()=>{B(),W(),pE=G(),mE={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}},hE={sm:{kzqmXN:`xw4jnvo`,kZKoxP:`x1qx5ct2`,$$css:!0},md:{kzqmXN:`xvy4d1p`,kZKoxP:`xxk0z11`,$$css:!0}},gE={sm:{kzqmXN:`x1xc55vz`,kZKoxP:`xdk7pt`,$$css:!0},md:{kzqmXN:`x1fsd2vl`,kZKoxP:`x170jfvy`,$$css:!0}},fE.displayName=`RadioIndicator`}));function vE(e){return e==null?null:typeof e==`string`?uc(e):e}function yE(e){return vE(e)?.indicators??null}function bE(e,t){return yE(t)?.[e]??xE[e]}var xE,SE=o((()=>{fc(),oE(),dE(),_E(),xE={check:sE,checkbox:eE,radio:fE}}));function CE(e){return bE(e,Ml())}var wE=o((()=>{Rl(),SE()})),TE=o((()=>{oE(),dE(),_E(),SE(),wE(),XT()})),EE,DE=o((()=>{Ar(),EE=Tr(null),EE.displayName=`CheckboxListContext`}));function OE({label:e,isLabelHidden:t=!1,description:n,onChange:r,changeAction:i,isLoading:a=!1,value:o,isDisabled:s=!1,htmlName:c,disabledMessage:l,isReadOnly:u=!1,isOptional:d=!1,isRequired:f=!1,size:p=`md`,onFocus:m,onBlur:h,labelIcon:g,status:_,width:v,xstyle:y,className:b,style:x,ref:S,"aria-describedby":C,...w}){let T=(0,kE.useId)(),E=(0,kE.useId)(),D=(0,kE.useId)(),O=ZT({isRequired:f,isOptional:d}),[,k]=(0,kE.useTransition)(),[A,j]=(0,kE.useOptimistic)(o),M=a||A!==o,N=s&&!!l,ee=(0,kE.use)(EE),P=s&&(N||(ee?.hasDisabledMessage??!1)),te=va({placement:`above`,focusTrigger:`always`,isEnabled:N}),F=CE(`checkbox`),ne=(0,kE.useRef)(null),{focusProps:I}=jT(ne,s),re=A===`indeterminate`,ie=A===!0,ae=(0,kE.useCallback)(e=>{e&&(e.indeterminate=re)},[re]),oe=[];C&&oe.push(C),n&&oe.push(E),_?.message&&oe.push(D),N&&oe.push(te.describedBy);let se=oe.length>0?oe.join(` `):void 0;return(0,AE.jsxs)(`div`,{...U(V(`checkbox-input`,{size:p}),z(v!=null&&NE.width(v),y),b,x),children:[(0,AE.jsxs)(`div`,{ref:e=>{te.interactionRef(e)},...z(jE.container,t&&jE.containerLabelHidden,!s&&YT),children:[(0,AE.jsxs)(`div`,{...z(jE.checkboxWrapper,ME[p],!s&&jE.indicatorPressOverlay),...I,children:[(0,AE.jsx)(`input`,{...w,ref:yr(S,ae,te.positionRef),id:T,type:`checkbox`,name:s?void 0:c,checked:ie,disabled:s&&!P,"aria-disabled":P?`true`:void 0,form:P?``:void 0,readOnly:u,required:f,"aria-required":O?`true`:void 0,onChange:e=>{if(s||M||u)return;let t=e.target.checked;r?.(t,e),i&&!e.defaultPrevented&&k(async()=>{j(t),await i(t,e)})},onFocus:m,onBlur:h,"aria-readonly":u||void 0,"aria-describedby":se,"aria-invalid":_?.type===`error`||void 0,"aria-busy":M||void 0,...z(jE.input,On.centerInline(`-50%`),jE.inputCoarse,ME[p],s&&jE.inputDisabled)}),(0,AE.jsx)(`span`,{ref:ne,className:`xjp7ctv`,children:(0,AE.jsx)(F,{state:re?`indeterminate`:ie?`checked`:`unchecked`,size:p,isDisabled:s,children:M?(0,AE.jsx)(Kb,{size:`sm`,shade:`inherit`}):null})})]}),(0,AE.jsx)(`div`,{className:`x78zum5 xdt5ytf`,children:(0,AE.jsx)(LT,{...V(`checkbox-label`),label:e,inputID:T,isLabelHidden:t,isDisabled:s,isOptional:d,isRequired:f,labelIcon:g,description:n,descriptionID:E})})]}),_?.message&&(0,AE.jsx)(HT,{type:_.type,message:_.message,id:D,variant:`detached`}),N&&te.renderTooltip(l)]})}var kE,AE,jE,ME,NE,PE=o((()=>{kE=u(f(),1),B(),VT(),JT(),ox(),uu(),W(),XT(),NT(),$T(),TE(),H(),DE(),xr(),AE=G(),jE={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`,$$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}},ME={sm:{kzqmXN:`xw4jnvo`,kZKoxP:`x1qx5ct2`,$$css:!0},md:{kzqmXN:`xvy4d1p`,kZKoxP:`xxk0z11`,$$css:!0}},NE={width:e=>[{kzqmXN:e==null?e:`x5lhr3w`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]},OE.displayName=`CheckboxInput`})),FE=o((()=>{PE()}));function IE({label:e,isLabelHidden:t=!1,description:n,inputID:r,labelID:i,isGroupLabel:a=!1,descriptionID:o,isOptional:s=!1,isRequired:c=!1,isDisabled:l=!1,labelIcon:u,status:d,labelTooltip:f,statusVariant:p=`attached`,width:m,xstyle:h,children:g,className:_,style:v,ref:y,...b}){let{direction:x}=(0,LE.use)(FT),S=x===`horizontal-labels`,C=o??(n?`${r}-desc`:void 0),w=d?.messageID??(d?.message?`${r}-status`:void 0);yw(`Field`,`isOptional and isRequired are mutually exclusive. isOptional takes precedence.`,s&&c);let T=(0,RE.jsx)(LT,{label:e,inputID:r,labelID:i,isGroupLabel:a,isLabelHidden:t,isDisabled:l,isOptional:s,isRequired:c,labelIcon:u,labelTooltip:f,description:S?void 0:n,descriptionID:S?void 0:C}),E=d?.message&&p!==`tooltip`?(0,RE.jsx)(HT,{type:d.type,message:d.message,id:w,variant:p,xstyle:p===`attached`?zE.attachedStatusLayer:void 0}):null;return S?(0,RE.jsxs)(`div`,{ref:y,...U(V(`field`,{layout:`horizontal-labels`}),z(zE.horizontalLabels,h),_,v),...b,children:[(0,RE.jsx)(`div`,{className:`x1enrzb7`,children:T}),(0,RE.jsxs)(`div`,{className:`x78zum5 xdt5ytf xc8icb0 x19nvjgn xlumz0n x1qs65gq`,children:[n&&(0,RE.jsx)(Na,{type:`supporting`,display:`block`,id:C,children:n}),g,E]})]}):(0,RE.jsxs)(`div`,{ref:y,...U(V(`field`),z(zE.container,!t&&zE.containerGap,m!=null&&BE.width(m),h),_,v),...b,children:[T,p===`attached`?(0,RE.jsxs)(`div`,{className:`x78zum5 xdt5ytf xc8icb0 x19nvjgn xlumz0n x1qs65gq`,children:[g,E]}):(0,RE.jsxs)(RE.Fragment,{children:[g,E]})]})}var LE,RE,zE,BE,VE=o((()=>{LE=u(f(),1),B(),VT(),JT(),W(),xw(),IT(),qa(),H(),RE=G(),zE={container:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kHBbk8:`xc8icb0`,$$css:!0},containerGap:{kOIVth:`xzye2dw`,$$css:!0},horizontalLabels:{k1xSpc:`xjp7ctv`,$$css:!0},attachedStatusLayer:{kVAEAm:`x1n2onr6`,kY2c9j:`x8knxv4`,$$css:!0}},BE={width:e=>[{kzqmXN:e==null?e:`x5lhr3w`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]},IE.displayName=`Field`})),HE,UE,WE,GE,KE=o((()=>{HE={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}},UE={warning:{kVAM5u:`x8wg1ba`,$$css:!0},error:{kVAM5u:`x1ofxpqo`,$$css:!0},success:{kVAM5u:`x16m2moy`,$$css:!0}},WE={warning:{kGVxlE:`x1gnnqk1 x9156jc`,$$css:!0},error:{kGVxlE:`x1gnnqk1 x1bgmis8`,$$css:!0},success:{kGVxlE:`x1gnnqk1 x8wp45d`,$$css:!0}},GE={warning:{kVAM5u:`x8wg1ba xa1yw2k`,$$css:!0},error:{kVAM5u:`x1ofxpqo xk2sxw7`,$$css:!0},success:{kVAM5u:`x16m2moy xyq33ac`,$$css:!0}}}));function qE({label:e,onClick:t,onPointerDown:n,onClickCapture:r,xstyle:i,iconClassName:a}){let{className:o}=V(`input-clear-icon`),{className:s}=V(`input-clear-button`);return(0,XE.jsx)(Y,{variant:`ghost`,size:`sm`,label:e,tooltip:e,className:s,icon:(0,XE.jsx)(nu,{icon:`close`,size:`sm`,color:`secondary`,className:a==null?o:`${o} ${a}`}),onPointerDown:e=>{e.preventDefault(),n?.(e)},onMouseDown:e=>e.preventDefault(),onClick:t,onClickCapture:r,isIconOnly:!0,xstyle:[ZE.button,i]})}function JE(e){return qE(e)}function YE(e){return qE(e)}var XE,ZE,QE=o((()=>{jx(),lu(),H(),XE=G(),ZE={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}},JE.displayName=`InputClearButton`})),$E=o((()=>{VE(),VT(),JT(),KE(),QE()}));function eD(){return(0,tD.use)(nD)}var tD,nD,rD=o((()=>{tD=u(f(),1),Ar(),nD=Tr(null),nD.displayName=`InputGroupContext`})),iD,aD=o((()=>{iD={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 oD(e){let t=e??``,n=hD.get(t);if(n===void 0){let r;try{r=new Intl.NumberFormat(e)}catch{r=new Intl.NumberFormat(`en`)}let i=r.formatToParts(12345.6),a=r.formatToParts(11111111111).filter(e=>e.type===`integer`).map(e=>e.value.length),o=a.length>1;n={group:(i.find(e=>e.type===`group`)?.value??`,`).normalize(`NFKC`),decimal:i.find(e=>e.type===`decimal`)?.value??`.`,primaryGroupSize:o?a[a.length-1]:3,secondaryGroupSize:o?a[a.length-2]:3},hD.set(t,n)}return n}function sD(e){let t=e.codePointAt(0);if(t==null)return null;for(let e=t;t-e<10;e--)if(!gD.test(String.fromCodePoint(e-1)))return t-e;return null}function cD(e){let t=``;for(let n of e){if(!gD.test(n)){t+=n;continue}let e=sD(n);if(e==null)return null;t+=String(e)}return t}function lD(e,t,n,r,i,a){let o=e,s=null;if(n!==``&&e.includes(n)){let t=e.indexOf(n);if(e.includes(n,t+n.length)||(o=e.slice(0,t),s=e.slice(t+n.length),!/^\d*$/.test(s)))return null}let c;if(t!==``&&o.includes(t)){let e=o.split(t);if(e.length-1<a||!e.every(e=>/^\d+$/.test(e)))return null;let n=e[0];if(e[e.length-1].length!==r||n.length>i)return null;for(let t=1;t<e.length-1;t++)if(e[t].length!==i)return null;c=e.join(``)}else{if(!/^\d*$/.test(o))return null;c=o}return c===``&&(s==null||s===``)?null:s==null?c:`${c}.${s}`}function uD(e){return/^[\s'\u2019]$/.test(e)}function dD(e,t){if(!bD.test(e))return null;let{group:n,decimal:r,primaryGroupSize:i,secondaryGroupSize:a}=oD(t),o=lD(e,n,r,i,a,1);if(o!=null)return o;if(xD.test(e))return e;let s=[...new Set(e.replace(/\d/g,``))];if(s.length===0||s.length>2)return null;for(let t of s){let n=e.split(t).length-1,r=uD(t)?1:2;if(n<r)continue;let i=s.find(e=>e!==t)??``;if(i!==``&&e.split(i).length-1!=1)continue;let a=lD(e,t,i,3,3,r);if(a!=null)return a}return null}function fD(e,t){let n=cD(e.normalize(`NFKC`).replace(vD,``));if(n==null)return null;let r=n.trim(),i=1,a=/^\((.*)\)$/s.exec(r);a&&(i=-1,r=a[1].trim()),r=pD(r);let o=!1,s=RegExp(`^([+${yD}])\\s*`).exec(r);if(s)o=!0,i=s[1]===`+`?i:-i,r=r.slice(s[0].length);else{let e=RegExp(`\\s*([+${yD}])$`).exec(r);e&&(o=!0,i=e[1]===`+`?i:-i,r=r.slice(0,r.length-e[0].length))}if(a&&o)return null;r=pD(r);let c=0,l=/\s*[eE]\s*([+-]?\d+)$/.exec(r);l&&(c=Number(l[1]),r=r.slice(0,r.length-l[0].length));let u=r.trim();if(u===``)return null;let d=dD(u,t);if(d==null)return null;let f=Number(d);if(!Number.isFinite(f))return null;let p=c===0?f:Number((f*10**c).toPrecision(15));if(!Number.isFinite(p))return null;let m=i*p;return Object.is(m,-0)?0:m}function pD(e){let t=e.trim();return _D.test(t.charAt(0))&&(t=t.slice(1).trim()),_D.test(t.charAt(t.length-1))&&(t=t.slice(0,-1).trim()),t}function mD(e,t){let{decimal:n}=oD(t),r=String(e);return n===`.`?r:r.replace(`.`,n)}var hD,gD,_D,vD,yD,bD,xD,SD=o((()=>{hD=new Map,gD=RegExp(`\\p{Nd}`,`u`),_D=RegExp(`\\p{Sc}`,`u`),vD=/[\u200B-\u200D\u200E\u200F\u061C\u2066-\u2069\uFEFF]/g,yD=`−‒–-`,bD=RegExp(`^[0-9,.' ’٫٬]+$`),xD=/^(?:\d+\.?\d*|\.\d+)$/}));function CD(e,t){let n=e.trim();if(n===``)return null;let r=fD(n,t.locale);return r==null||!Number.isFinite(r)||t.isIntegerOnly&&!Number.isInteger(r)?null:r}function wD(e,t){let n=CD(e,t);return n===null||t.min!=null&&n<t.min||t.max!=null&&n>t.max?null:n}function TD(e,t){if(e.trim()===``)return t.hasClear?{type:`clear`}:{type:`revert`};let n=CD(e,t);if(n===null)return{type:`revert`};let r=t.min==null?null:t.isIntegerOnly?Math.ceil(t.min):t.min,i=t.max==null?null:t.isIntegerOnly?Math.floor(t.max):t.max;if(r!=null&&i!=null&&r>i)return{type:`revert`};let a=r!=null&&n<r?r:i!=null&&n>i?i:n;return{type:`commit`,value:a,didClamp:a!==n}}var ED=o((()=>{SD()}));function DD(e){let[t,n]=String(e).toLowerCase().split(`e`),r=t.split(`.`)[1]?.length??0,i=n==null?0:Number(n);return Math.max(0,r-i)}function OD(e,t){return e==null||!Number.isFinite(e)||e<=0||t&&!Number.isInteger(e)?1:e}function kD({currentValue:e,direction:t,min:n,max:r,step:i,isIntegerOnly:a}){let o=OD(i,a),s=n!=null&&(!a||Number.isInteger(n))?n:0,c;if(e==null)c=t===1?n??0:r??0,a&&(c=t===1?Math.ceil(c):Math.floor(c));else{let n=(e-s)/o,r=2**-52*Math.max(1,Math.abs(n))*4;c=s+(t===1?Math.floor(n+r)+1:Math.ceil(n-r)-1)*o}let l=Math.min(12,Math.max(DD(o),DD(s)));return c=Number(c.toFixed(l)),n!=null&&(c=Math.max(n,c)),r!=null&&(c=Math.min(r,c)),!Number.isFinite(c)||a&&!Number.isInteger(c)?e:Object.is(c,-0)?0:c}function AD({label:e,isLabelHidden:t=!1,description:n,isOptional:r=!1,isRequired:i=!1,isDisabled:a=!1,isReadOnly:o=!1,disabledMessage:s,startIcon:c,labelIcon:l,status:u,statusVariant:d=`attached`,size:f,onChange:p,value:m,placeholder:h,labelTooltip:g,hasAutoFocus:_=!1,htmlName:v,autoComplete:y,min:b,max:x,step:S,formatValue:C,isWheelEnabled:w=!0,hasNumberSteppers:T=!1,units:E,isIntegerOnly:D=!1,onFocus:O,onBlur:k,hasClear:A,onEnter:j,onKeyDown:M,width:N,xstyle:ee,className:P,style:te,ref:F,...ne}){let I=bf(),re=Cf(),ie=ZT({isRequired:i,isOptional:r}),ae=dx(f,`md`),oe=(0,jD.useId)(),se=(0,jD.useId)(),ce=(0,jD.useId)(),le=(0,jD.useId)(),ue=(0,jD.useId)(),de=(0,jD.useRef)(null),fe=(0,jD.useRef)(null),pe=eD(),[L,R]=(0,jD.useState)(null),[me,he]=(0,jD.useState)(!1),ge=a&&!!s,_e=va({placement:`above`,focusTrigger:`always`,isEnabled:ge}),{statusIcon:ve,describedBy:ye}=yT({status:u,statusVariant:d,isInGroup:!!pe}),{ariaLabelledBy:be,ariaDescribedBy:xe}=mn(se,[n?ce:null,!pe&&d!==`tooltip`&&u?.message?le:null,ye,E?ue:null,ge?_e.describedBy:null],pe),Se=(0,jD.useCallback)(e=>wD(e,{min:b,max:x,isIntegerOnly:D,locale:re}),[D,re,x,b]),Ce=(0,jD.useMemo)(()=>m==null?``:C?.(m)??String(m),[C,m]),we=(0,jD.useMemo)(()=>L===null?m==null?``:me?mD(m,re):Ce:L,[Ce,me,re,L,m]),Te=(0,jD.useMemo)(()=>L===null||!L.trim()||Se(L)!==null,[L,Se]),Ee=(0,jD.useCallback)(e=>{a||o||R(e.target.value)},[a,o]),De=(0,jD.useCallback)(e=>{he(!0),O?.(e)},[O]),Oe=(0,jD.useCallback)(e=>{if(L===null)return;let t=TD(L,{min:b,max:x,isIntegerOnly:D,locale:re,hasClear:!!A});(e===`blur`||t.type===`commit`&&t.didClamp)&&R(null),t.type===`clear`?A&&m!=null&&p(null):t.type===`commit`&&t.value!==m&&p(t.value)},[A,D,re,x,b,p,L,m]),ke=(0,jD.useCallback)(e=>{Oe(`blur`),he(!1),k?.(e)},[Oe,k]),Ae=(0,jD.useMemo)(()=>L===null?m??null:L.trim()===``?null:Se(L)??m??null,[Se,L,m]),je=(0,jD.useCallback)(e=>kD({currentValue:Ae,direction:e,min:b,max:x,step:S,isIntegerOnly:D}),[D,x,b,S,Ae]),Me=(0,jD.useCallback)(e=>{if(a||o)return;let t=je(e);t!=null&&(R(null),t!==m&&p(t))},[je,a,o,p,m]),Ne=(0,jD.useCallback)(e=>{if(!Bn(e.nativeEvent)){if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)&&(e.key===`ArrowUp`||e.key===`ArrowDown`)){if(M?.(e),e.defaultPrevented)return;e.preventDefault(),Me(e.key===`ArrowUp`?1:-1);return}e.key===`Enter`&&(Oe(`Enter`),j?.()),M?.(e)}},[Oe,j,M,Me]),Pe=(0,jD.useCallback)(e=>{if(e==null||!w)return;let t=t=>{document.activeElement!==e||a||o||t.deltaY===0||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||(t.preventDefault(),t.stopPropagation(),Me(t.deltaY<0?1:-1))};return e.addEventListener(`wheel`,t,{passive:!1}),()=>e.removeEventListener(`wheel`,t)},[a,o,w,Me]),Fe=(0,jD.useMemo)(()=>Zt(F,de,Pe),[F,Pe]),Ie=je(1)!==Ae,Le=je(-1)!==Ae,Re=(0,jD.useCallback)(e=>{A&&p(null),R(null),!e||e.detail===0?de.current?.focus():requestAnimationFrame(()=>{de.current?.focus({preventScroll:!0})})},[A,p]),{onClick:ze,onMouseUp:Be}=mT({containerRef:fe,inputRef:de,disabled:a}),Ve=(0,MD.jsxs)(`div`,{ref:e=>{fe.current=e,_e.ref(e)},onClick:ze,onMouseUp:Be,...U(V(`number-input`,{size:ae,status:u?.type??null,disabled:a?`disabled`:null,readonly:o?`readonly`:null}),z(HE.base,LD.wrapper,T&&LD.wrapperWithNumberSteppers,RD[ae],a&&HE.disabled,u&&UE[u.type],u&&!a&&WE[u.type],u&&GE[u.type],pe&&iD.inGroup,ee),P,te),children:[c&&iu(c,{size:`sm`,color:`secondary`}),pe&&(0,MD.jsx)(du,{id:se,children:e}),(0,MD.jsx)(`input`,{...ne,ref:Fe,id:oe,name:a||C?void 0:v,type:`text`,inputMode:D?`numeric`:`decimal`,role:`spinbutton`,autoComplete:y,value:we,onChange:Ee,onFocus:De,onBlur:ke,onKeyDown:Ne,placeholder:h,disabled:a&&!ge,"aria-disabled":ge?`true`:void 0,readOnly:o||ge||void 0,autoFocus:_,"data-autofocus":_||void 0,"aria-valuemin":b??void 0,"aria-valuemax":x??void 0,"aria-valuenow":m??void 0,"aria-valuetext":m==null||!C?void 0:Ce,"aria-describedby":xe,"aria-required":ie?`true`:void 0,"aria-invalid":u?.type===`error`||!Te?`true`:void 0,"aria-labelledby":be,...{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`}}[!!a<<1|!Te<<0]}),C&&v&&!a&&(0,MD.jsx)(`input`,{type:`hidden`,name:v,value:m==null?``:String(m)}),E&&(0,MD.jsx)(`span`,{id:ue,className:`x9ynric xjm74w1 xw6l6zx xv1l7n4 x2lah0s`,children:E}),(0,MD.jsx)(du,{as:`div`,role:`alert`,"aria-live":`assertive`,children:Te?``:`Invalid number`}),A&&m!=null&&!a&&!o&&(0,MD.jsx)(JE,{label:I(`@astryx.numberInput.clearLabel`,{label:e}),onClick:Re}),ve,T&&(0,MD.jsxs)(`div`,{className:`xkh2ocl x78zum5 xdt5ytf x2lah0s x12xnipv x5j3pgv x13i4uq0 xgbv0en x1t7ytsu x14ydlgx xb3r6kr x1g2gkjz xoao14b`,children:[(0,MD.jsx)(`button`,{type:`button`,tabIndex:-1,disabled:a||o||!Ie,"aria-label":I(`@astryx.numberInput.incrementLabel`,{label:e}),onPointerDown:e=>e.preventDefault(),onClick:()=>{de.current?.focus(),Me(1)},...z(LD.numberStepperButton,Iu.backgroundImage,(a||o||!Ie)&&LD.numberStepperButtonDisabled),children:(0,MD.jsx)(nu,{icon:`numberInput:stepperDown`,size:`xsm`,color:`inherit`,xstyle:LD.incrementIcon})}),(0,MD.jsx)(`button`,{type:`button`,tabIndex:-1,disabled:a||o||!Le,"aria-label":I(`@astryx.numberInput.decrementLabel`,{label:e}),onPointerDown:e=>e.preventDefault(),onClick:()=>{de.current?.focus(),Me(-1)},...z(LD.numberStepperButton,Iu.backgroundImage,LD.decrementButton,(a||o||!Le)&&LD.numberStepperButtonDisabled),children:(0,MD.jsx)(nu,{icon:`numberInput:stepperDown`,size:`xsm`,color:`inherit`})})]})]});return pe?(0,MD.jsxs)(MD.Fragment,{children:[Ve,ge&&_e.renderTooltip(s)]}):(0,MD.jsxs)(IE,{label:e,isLabelHidden:t,description:n,inputID:oe,descriptionID:n?ce:void 0,isOptional:r,isRequired:i,isDisabled:a,labelIcon:l,status:u?{type:u.type,message:u.message,messageID:u.message?le:void 0}:void 0,statusVariant:d,labelTooltip:g,width:N,children:[Ve,ge&&_e.renderTooltip(s)]})}var jD,MD,ND,PD,FD,ID,LD,RD,zD=o((()=>{jD=u(f(),1),B(),Et(),$E(),lu(),mu(),uu(),W(),Lu(),hx(),vT(),TT(),$T(),rD(),aD(),H(),Ef(),SD(),ED(),MD=G(),ND=St[`--spacing-1`],PD=St[`--spacing-2`],FD=`var(--astryx-number-input-padding, ${ND})`,ID=`var(--astryx-number-input-padding-inline, ${`var(--astryx-number-input-padding, ${PD})`})`,`${ID}`,`${ID}`,`${FD}`,`${FD}`,LD={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}},RD={sm:{kZKoxP:`x6k0iem`,$$css:!0},md:{kZKoxP:`x1ueg155`,$$css:!0},lg:{kZKoxP:`xssyfek`,$$css:!0}},AD.displayName=`NumberInput`})),BD=o((()=>{zD()}));function VD({orientation:e=`horizontal`,label:t,variant:n=`subtle`,isFullBleed:r=!1,xstyle:i,className:a,style:o,ref:s,"aria-label":c,"aria-labelledby":l,...u}){let d=e===`horizontal`,f=(0,HD.useId)(),p=l??(t&&c==null?f:void 0);return(0,UD.jsxs)(`div`,{ref:s,...u,role:`separator`,"aria-orientation":e,"aria-label":c,"aria-labelledby":p,...U(V(`divider`,{variant:n,orientation:e}),z(d?WD.horizontal:WD.vertical,r&&(d?KD.horizontal:KD.vertical),i),a,o),children:[(0,UD.jsx)(`div`,{...z(d?GD.horizontalLine:GD.verticalLine,GD[n])}),t&&(0,UD.jsx)(`div`,{id:f,...{0:{className:`x2lah0s xrrkdod x141an7d x1ltkj2j xv1l7n4`},1:{className:`x2lah0s x141an7d x1ltkj2j xv1l7n4 xnjsko4 x8o8v82`}}[!d<<0],children:t}),t&&(0,UD.jsx)(`div`,{...z(d?GD.horizontalLine:GD.verticalLine,GD[n])})]})}var HD,UD,WD,GD,KD,qD=o((()=>{HD=u(f(),1),B(),W(),H(),UD=G(),WD={horizontal:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kzqmXN:`xh8yej3`,$$css:!0},vertical:{k1xSpc:`x3nfvp2`,kXwgrk:`xdt5ytf`,kGNEyG:`x6s0dn4`,kZKoxP:`x5yr21d`,$$css:!0}},GD={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}},KD={horizontal:{keTefX:`xojxgvx`,k71WvV:`x1fcf3bl`,kzqmXN:`xx6qvi6`,$$css:!0},vertical:{keoZOQ:`x1sa9bsh`,k1K539:`x6h7pi7`,kZKoxP:`x12qplqi`,$$css:!0}},VD.displayName=`Divider`})),JD=o((()=>{qD()}));function YD({ref:e,label:t,clearLabel:n,placeholder:r,value:i,onValueChange:a,onKeyDown:o,onFocus:s,onBlur:c,onContainerKeyDown:l,xstyle:u,className:d,style:f,...p}){let[m,h]=(0,XD.useState)(!1);ki();let g=(0,XD.useCallback)(e=>{h(Ai()===`keyboard`),s?.(e)},[s]),_=(0,XD.useCallback)(e=>{h(!1),c?.(e)},[c]),v=(0,XD.useCallback)(t=>{a(``),!t||t.detail===0?typeof e==`object`&&e?.current&&e.current.focus():requestAnimationFrame(()=>{typeof e==`object`&&e?.current&&e.current.focus({preventScroll:!0})})},[a,e]);return(0,ZD.jsx)(`div`,{onKeyDown:l,...U(z(QD.wrapper,u),d,f),children:(0,ZD.jsxs)(`div`,{"data-keyboard-focus":m?`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`}}[!!m<<0],children:[(0,ZD.jsx)(nu,{icon:`search`,size:`sm`,color:`secondary`,xstyle:QD.icon}),(0,ZD.jsx)(`input`,{ref:e,type:`text`,"aria-label":t,placeholder:r,value:i,onChange:e=>a(e.target.value),onKeyDown:o,onFocus:g,onBlur:_,className:`x1iyjqo2 xs83m0k xeuugli x1717udv x1ghz6dp xc342km xng3xce xjbqb8w x1tgivj0 x9ynric xcr08ib x1w61h2b x1kq96og x1a2a7pz xeyghm5`,...p}),i!==``&&(0,ZD.jsx)(JE,{label:n,onClick:v})]})})}var XD,ZD,QD,$D=o((()=>{XD=u(f(),1),B(),lu(),QE(),W(),Ni(),ZD=G(),QD={wrapper:{k8WAf4:`xu0wf1k`,kg3NbH:`x7a5moj`,$$css:!0},icon:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kmuXW:`x2lah0s`,$$css:!0}},YD.displayName=`PanelSearchInput`}));function eO(e){return typeof e==`string`||!(`type`in e)}function tO(e){return typeof e==`object`&&`type`in e&&e.type===`divider`}function nO(e){return typeof e==`object`&&`type`in e&&e.type===`section`}function rO(e){return typeof e==`string`?{value:e,label:e}:{...e,label:e.label??e.value}}function iO(e){let t=[];for(let n of e)if(eO(n))t.push(rO(n));else if(nO(n))for(let e of n.options)t.push(rO(e));return t}var aO=o((()=>{}));function oO({isOpen:e,highlightedIndex:t,setHighlightedIndex:n,getOptionId:r,itemCount:i}){let a=(0,sO.useRef)(!1),o=(0,sO.useCallback)(e=>{e!==t&&(a.current=!0),n(e)},[t,n]);return(0,sO.useEffect)(()=>{if(a.current){a.current=!1;return}!e||t<0||document.getElementById(r(t))?.scrollIntoView?.({block:`nearest`})},[e,t,r,i]),o}var sO,cO=o((()=>{sO=u(f(),1)}));function lO(e){let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t}function uO({isOpen:e,selectedItemIndex:t,listboxId:n,listboxRef:r,anchorRef:i}){let[a,o]=(0,fO.useState)(0),[s,c]=(0,fO.useState)(!1),l=(0,fO.useCallback)((e,t)=>{o(e),c(t)},[]);return Cr(()=>{if(!e){l(0,!1);return}if(!r.current||!i.current){l(0,!0);return}let a=`${n}-item-${t>=0?t:0}`,o=document.getElementById(a);if(!o){l(0,!0);return}let s=r.current,c=i.current.getBoundingClientRect(),u=s.offsetHeight;if(u<=0){l(0,!0);return}let d=lO(o)-lO(s)-s.scrollTop+o.offsetHeight/2,f=c.top+c.height/2-d-pO,p=window.innerHeight,m=Math.max(0,p-u),h=Math.min(Math.max(f,0),m),g=Math.max(0,c.bottom-h);l(g,!0)},[e,t,n,r,i,l]),{offset:a,isPositioned:s}}function dO({selectableItems:e,value:t,isDisabled:n=!1,isOpen:r,hasSearch:i=!1,onOpen:a,onClose:o,onSelect:s,onClear:c,onSearchSeed:l,listboxId:u}){let[d,f]=(0,fO.useState)(-1),p=(0,fO.useCallback)(e=>`${u}-item-${e}`,[u]),m=(0,fO.useCallback)(()=>e.map((e,t)=>e.disabled?-1:t).filter(e=>e>=0),[e]),h=(0,fO.useCallback)(()=>e.findIndex(e=>e.value===t),[e,t]),g=(0,fO.useCallback)(()=>{f(-1),o()},[o]),_=(0,fO.useCallback)(e=>{e.disabled||(s?.(e.value),g())},[s,g]),v=(0,fO.useCallback)(()=>{if(!n){if(r)g();else if(a()!==!1&&!i){let e=h();f(e>=0?e:0)}}},[n,r,a,g,h,i]),y=oO({isOpen:r,highlightedIndex:d,setHighlightedIndex:f,getOptionId:p}),b=(0,fO.useCallback)((e,t)=>{e.disabled||y(t)},[y]);return{highlightedIndex:d,setHighlightedIndex:f,getItemId:p,onTriggerClick:v,onKeyDown:(0,fO.useCallback)(o=>{if(n)return;let s=m();switch(o.key){case`ArrowDown`:if(o.preventDefault(),!r)a()!==!1&&f(0);else{let e=s.indexOf(d),t=Math.min(e+1,s.length-1);f(s[t]??d)}break;case`ArrowUp`:if(o.preventDefault(),!r)a()!==!1&&f(e.length-1);else{let e=s.indexOf(d),t=Math.max(e-1,0);f(s[t]??d)}break;case` `:if(i)break;case`Enter`:if(o.preventDefault(),r&&d>=0){let t=e[d];t&&!t.disabled&&_(t)}else if(!r&&a()!==!1&&!i){let e=h();f(e>=0?e:0)}break;case`Escape`:r&&(o.preventDefault(),g());break;case`Tab`:r&&g();break;case`Home`:o.preventDefault(),r&&s.length>0&&f(s[0]);break;case`End`:o.preventDefault(),r&&s.length>0&&f(s[s.length-1]);break;case`PageUp`:o.preventDefault(),r&&s.length>0&&f(s[0]);break;case`PageDown`:o.preventDefault(),r&&s.length>0&&f(s[s.length-1]);break;case`Delete`:case`Backspace`:!i&&!r&&c!=null&&t!=null&&(o.preventDefault(),c());break;default:i&&l&&o.key.length===1&&!o.ctrlKey&&!o.metaKey&&(r||a()!==!1)&&l(o.key)}},[n,r,a,g,e,d,_,h,m,i,c,l,t]),onItemSelect:_,onItemMouseEnter:b}}var fO,pO,mO=o((()=>{fO=u(f(),1),cO(),wr(),pO=1})),hO,gO,_O=o((()=>{hO=u(f(),1),gO=(0,hO.createContext)(null),gO.displayName=`ItemDescriptionContext`}));function vO({as:e=`div`,marker:t,startContent:n,label:r,description:i,endContent:a,align:o=`center`,density:s=`balanced`,labelLines:c,descriptionLines:l,layout:u=`stacked`,onClick:d,interactiveRef:f,href:p,target:m,rel:h,isHighlighted:g=!1,isSelected:_=!1,isDisabled:v=!1,xstyle:y,className:b,style:x,ref:S,role:C,...w}){let T=wu(),E=f!=null,D=(0,yO.useRef)(null),{onClick:O}=cS({containerRef:D,interactiveRef:f??void 0,disabled:v});yw(`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.",E&&(d!=null||p!=null));let k=d!=null||p!=null||E,{target:A,rel:j}=Du(m,h),M=C!=null,N=C!=null&&xO.has(C),ee=(0,yO.useId)(),P=dn(i),te=typeof r==`string`,F=typeof i==`string`,ne=c==null?te?SO.labelSingleTruncate:null:c===1?SO.labelSingleTruncate:SO.labelMultiTruncate,I=u===`inline`&&i!=null,re=l==null?F||I?SO.descriptionSingleTruncate:null:l===1?SO.descriptionSingleTruncate:SO.descriptionMultiTruncate,ie=(0,bO.jsxs)(bO.Fragment,{children:[(0,bO.jsx)(`span`,{...z(SO.label,I&&SO.inlineLabel,ne,c!=null&&c>1&&CO.lineClamp(c)),children:r}),i!=null&&(0,bO.jsx)(`span`,{id:P?ee:void 0,...z(SO.description,I&&SO.inlineDescription,re,l!=null&&l>1&&CO.lineClamp(l)),children:i})]}),ae=e=>{v||e.target.closest(`button, a, input, select, textarea`)||d?.(e)},oe=(0,bO.jsxs)(bO.Fragment,{children:[t,n!=null&&(0,bO.jsx)(`span`,{className:`x3psx0u x78zum5`,children:n}),M||E?(0,bO.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`}}[!!I<<1|!!v<<0],children:ie}):p==null?d==null?(0,bO.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`}}[!!I<<1|!!v<<0],children:ie}):(0,bO.jsx)(`button`,{type:`button`,onClick:d,disabled:v,...{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`}}[!!I<<1|!!v<<0],children:ie}):(0,bO.jsx)(T,{href:p,target:A,rel:j,"aria-disabled":v||void 0,tabIndex:v?-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`}}[!!I<<1|!!v<<0],children:ie}),a!=null&&(0,bO.jsx)(`span`,{...{0:{className:`x3psx0u x78zum5 xvc5jky`},1:{className:`x3psx0u x78zum5 xvc5jky xbyyjgo`}}[!!v<<0],children:a})]}),se=yr(S,D);return(0,bO.jsx)(e,{ref:E?se:S,...w,"aria-selected":N&&_||void 0,"aria-current":w[`aria-current`]??(_&&!N?!0:void 0),"aria-disabled":v||void 0,...U(V(`item`,{density:s,align:o}),Rn.focusWithin(SO.root,wO[s],o===`start`&&SO.alignStart,k&&SO.interactive,k&&Iu.backgroundColor,g&&SO.highlighted,_&&SO.selected,v&&!M&&SO.disabled,y),b,x),role:C,onClick:E?O:M?d:k?ae:void 0,children:(0,bO.jsx)(gO,{value:P?ee:null,children:oe})})}var yO,bO,xO,SO,CO,wO,TO=o((()=>{yO=u(f(),1),B(),W(),_O(),xr(),ku(),Eu(),fS(),xw(),H(),zn(),Lu(),bO=G(),xO=new Set([`option`,`tab`,`row`,`gridcell`,`columnheader`,`rowheader`,`treeitem`]),SO={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},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}},CO={lineClamp:e=>[{kJFfOR:e==null?e:`x1yhjpo9`,$$css:!0},{"--x-WebkitLineClamp":e??void 0}]},wO={compact:{k8WAf4:`xu0wf1k`,$$css:!0},balanced:{k8WAf4:`xce4md1`,$$css:!0},spacious:{k8WAf4:`x8o8v82`,"--_item-inset-inline":`x1ytau7y`,$$css:!0}},vO.displayName=`Item`})),EO=o((()=>{TO()}));function DO(){return(0,OO.use)(kO)}var OO,kO,AO=o((()=>{OO=u(f(),1),Ar(),kO=Tr(`stacked`),kO.displayName=`SelectorRowLayoutContext`}));function jO({icon:e,label:t,description:n,layout:r,endContent:i,xstyle:a,className:o,style:s}){let c=DO();return(0,MO.jsx)(vO,{startContent:e?iu(e,{size:`sm`,color:`secondary`}):void 0,label:t,description:n,layout:c===`inline`?`inline`:r,endContent:i,xstyle:[NO.root,a],...U(V(`selector-option`),{className:o,style:s})})}var MO,NO,PO=o((()=>{lu(),EO(),AO(),W(),H(),MO=G(),NO={root:{k8WAf4:`xt970qd`,kg3NbH:`xnjsko4`,kaIpWk:`x2u8bby`,$$css:!0}},jO.displayName=`SelectorOption`}));function FO(e,t){if(typeof e==`number`)return Number.isFinite(e)&&e>0&&e<=1?e*t:null;let n=UO.exec(e.trim());if(n===null)return null;let r=Number.parseFloat(n[1]);return r>0?n[2].toLowerCase()===`%`?r/100*t:r:null}function IO(e){return FO(e,1)!==null}function LO(e,t){let n=[];for(let r of e){let e=FO(r,t);e!==null&&n.push(e)}return n}function RO(e,t,n=48){let r=[0,...t.filter(t=>t>0&&t<e).map(t=>e-t)].sort((e,t)=>e-t),i=[];for(let e of r){let t=i[i.length-1];(t===void 0||e-t>=n)&&i.push(e)}return i}function zO(e,t){return t.reduce((t,n)=>Math.abs(n-e)<Math.abs(t-e)?n:t,t[0])}function BO(e,t){if(e.length<2||t<=0)return null;let n=e[e.length-1];return t-n<=.25*t?n:null}function VO(e,t,n,r){let i=r!==null,a=i?t[t.length-2]:t[t.length-1],o=i?r:n,s=i?WO:0;return e<=a?1:e>=o?s:1-(1-s)*((e-a)/(o-a))}function HO(e,t,n,r){let i=t;if(n>0){let e=t.filter(e=>e>=r);e.length>0&&(i=e)}else if(n<0){let e=t.filter(e=>e<=r);e.length>0&&(i=e)}return zO(e,i)}var UO,WO,GO=o((()=>{UO=/^(\d+(?:\.\d+)?|\.\d+)(px|%)$/i,WO=.3}));function KO(){return window.visualViewport?.height??window.innerHeight}function qO(){return KO()>=window.innerHeight-.5}function JO(){let e=window.navigator.userAgent;return/iPad|iPhone|iPod/.test(e)||e.includes(`Macintosh`)&&window.navigator.maxTouchPoints>1}function YO(e){return e instanceof HTMLTextAreaElement?!e.disabled&&!e.readOnly:e instanceof HTMLInputElement?!e.disabled&&!e.readOnly&&!ek.has((e.getAttribute(`type`)??`text`).toLowerCase()):e instanceof HTMLElement&&e.matches(`[contenteditable]:not([contenteditable="false"])`)}function XO(e,t){if(!(e instanceof Element))return null;let n=e.closest(`input, textarea, [contenteditable]:not([contenteditable="false"])`);if(t.contains(n)&&YO(n))return n;let r=e.closest(`label`),i=r instanceof HTMLLabelElement?r.control:null;return t.contains(i)&&YO(i)?i:null}function ZO({bodyRef:e,bottomClearance:t,isEnabled:n,isFullyExpanded:r,isPageScrollLocked:i,isSheetTraveling:a,isOpen:o,isPresented:s,sheetRef:c}){let l=(0,QO.useRef)(!1),u=(0,QO.useRef)(!1),d=(0,QO.useRef)(r),f=(0,QO.useRef)(o);d.current=r,f.current=o,(0,QO.useEffect)(()=>{if(!n||!a)return;let e=c.current,t=document.activeElement;e&&t instanceof HTMLElement&&t!==e&&e.contains(t)&&(u.current=l.current,e.focus({preventScroll:!0}))},[n,a,c]),(0,QO.useEffect)(()=>{if(!n||!s||o)return;let e=c.current,t=document.activeElement;e&&t instanceof HTMLElement&&t!==e&&e.contains(t)&&(u.current=l.current,t.blur())},[n,o,s,c]),(0,QO.useEffect)(()=>{let r=e.current,a=c.current;if(!n||!s||!r)return;let o=null,p=null,m=JO(),h=()=>{r.style.setProperty($O,`0px`),o=null,p=null,l.current=!1,u.current=!1},g=(e,t)=>{if(typeof r.scrollBy!=`function`){r.scrollTop+=e;return}let n=typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;r.scrollBy({top:e,behavior:t&&!n?`smooth`:`instant`})},_=(e,n)=>{let i=r.getBoundingClientRect(),a=e.getBoundingClientRect(),o=KO(),s=Math.max(0,i.bottom-o)>0?t:0,c=i.top,l=Math.min(i.bottom,o-s);l<=c||(a.bottom>l?g(a.bottom-l,n):a.top<c&&g(a.top-c,n))},v=e=>{let n=KO();if(qO()){h();return}if(Math.max(0,e.bodyBottom-n)===0){h();return}let i=Math.max(0,e.bodyBottom-(n-t));r.style.setProperty($O,`${i}px`)},y=e=>{if(!d.current)return;let t=XO(e.relatedTarget,r);if(t){t!==document.activeElement&&t.focus({preventScroll:!0});return}let n=XO(e.target,r);f.current&&n&&!e.relatedTarget&&a?.focus({preventScroll:!0})},b=()=>{let e=document.activeElement;if(!d.current||!(e instanceof HTMLElement)||!r.contains(e)||!YO(e)){if(u.current&&o){v(o);return}h();return}u.current=!1;let n=r.getBoundingClientRect(),a=KO(),s=Math.max(0,n.bottom-a),c=s>0?t:0;o=s>0?{bodyBottom:n.bottom}:null,i&&s>0&&!l.current&&(p={x:window.scrollX,y:window.scrollY}),l.current=s>0;let f=s>0?Math.max(0,n.bottom-(a-c)):0;r.style.setProperty($O,`${f}px`),_(e,s>0)},x=0,S=()=>{cancelAnimationFrame(x),x=requestAnimationFrame(b)},C=()=>{let e=p;if(e==null||window.scrollX===e.x&&window.scrollY===e.y)return;window.scrollTo(e.x,e.y);let t=document.activeElement;t instanceof HTMLElement&&r.contains(t)&&YO(t)&&_(t,!1)},w=typeof ResizeObserver>`u`?null:new ResizeObserver(S),T=()=>{if(!w)return;w.disconnect();let e=new Set([r]);a&&e.add(a);for(let t of r.children)e.add(t);let t=document.activeElement;if(t instanceof HTMLElement&&r.contains(t))for(let n=t;n&&n!==r;n=n.parentElement)e.add(n);for(let t of e)w.observe(t)},E=typeof MutationObserver>`u`?null:new MutationObserver(e=>{e.every(e=>e.type===`attributes`&&e.target===r)||(T(),S())}),D=()=>{T(),S()},O=()=>{u.current=l.current,S()},k=e=>{e.target===a&&e.propertyName===`transform`&&S()},A=window.visualViewport;return m&&document.addEventListener(`blur`,y,!0),r.addEventListener(`focusin`,D),r.addEventListener(`focusout`,O),a?.addEventListener(`transitionend`,k),A?.addEventListener(`resize`,S),A?.addEventListener(`scroll`,S),window.addEventListener(`scroll`,C),window.addEventListener(`resize`,S),E?.observe(r,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),T(),S(),()=>{cancelAnimationFrame(x),m&&document.removeEventListener(`blur`,y,!0),r.removeEventListener(`focusin`,D),r.removeEventListener(`focusout`,O),a?.removeEventListener(`transitionend`,k),A?.removeEventListener(`resize`,S),A?.removeEventListener(`scroll`,S),window.removeEventListener(`scroll`,C),window.removeEventListener(`resize`,S),w?.disconnect(),E?.disconnect(),r.style.removeProperty($O),l.current=!1,u.current=!1}},[e,t,n,i,s,c])}var QO,$O,ek,tk=o((()=>{QO=u(f(),1),$O=`--_sheet-keyboard-inset`,ek=new Set([`button`,`checkbox`,`color`,`file`,`hidden`,`image`,`radio`,`range`,`reset`,`submit`])}));function nk(e){return e.syntheticTouch===!0}function rk(){typeof navigator<`u`&&typeof navigator.vibrate==`function`&&(lk()||navigator.vibrate(8))}function ik(e,t){let n=t[0],r=Math.abs(e-n);for(let i of t){let t=Math.abs(e-i);t<r&&(r=t,n=i)}if(r>=mk)return e;let i=r/mk,a=1-i*i;return e+(n-e)*a}function ak(e,t,n){return Math.max(0,e-t-n)}function ok(e){let t=Number.parseFloat(getComputedStyle(e).paddingBlockEnd);return Number.isFinite(t)?t:0}function sk(e){if(!e)return 0;let t=ok(e);return Math.max(0,e.scrollHeight-e.clientHeight-t)-e.scrollTop}function ck(e,t,n){return Math.max(0,e-n-t)}function lk(){return typeof window>`u`||!window.matchMedia?!1:window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function uk({isOpen:e,canDismiss:t=!0,offscreenBlockEndInset:n=0,onDismiss:r,snapHeights:i,onSnap:a,onScrimOpacity:o}){let[s,c]=(0,X.useState)(0),[l,u]=(0,X.useState)(0),[d,f]=(0,X.useState)(!1),[p,m]=(0,X.useState)(0),[h,g]=(0,X.useState)(0),[_,v]=(0,X.useState)(0),y=(0,X.useRef)(0),b=(0,X.useRef)(0),[x,S]=(0,X.useState)(null),[C,w]=(0,X.useState)(!1),T=(0,X.useRef)(0),E=(0,X.useRef)(null),D=(0,X.useRef)(null),O=(0,X.useRef)(n);O.current=Math.max(0,n);let k=(0,X.useCallback)(e=>{let t=Math.max(0,e);y.current=t,v(t)},[]),A=(0,X.useCallback)(e=>{let t=Math.max(0,e);Math.abs(t-T.current)>.5&&(T.current=t,g(t))},[]),j=(0,X.useCallback)(()=>{w(!0),E.current=null,S(null);let e=D.current;D.current=null,e!=null&&A(e)},[A]),M=(0,X.useCallback)((e,t,n,r,i,a,o)=>{let s=ak(e,n,a);if(o&&Math.abs(r-t)>.5&&!lk()){D.current=s,E.current=i,S(i);return}D.current=null,E.current=null,S(null),w(Math.abs(i-n)>.5),A(s)},[A]),N=(0,X.useRef)(0);N.current=d?s:l;let ee=(0,X.useRef)(e);ee.current=e;let P=(0,X.useRef)(i);P.current=i;let te=(0,X.useRef)(r),F=(0,X.useRef)(t),ne=(0,X.useRef)(a),I=(0,X.useRef)(o);(0,X.useEffect)(()=>{te.current=r,F.current=t,ne.current=a,I.current=o});let re=(0,X.useRef)(null),ie=(0,X.useRef)(0),ae=(0,X.useRef)(null),oe=(0,X.useRef)(null),se=(0,X.useRef)(null);(0,X.useLayoutEffect)(()=>{if(!C)return;ae.current?.offsetHeight;let e=requestAnimationFrame(()=>{w(!1)});return()=>cancelAnimationFrame(e)},[C]);let ce=(0,X.useCallback)(e=>{e<=0||!ee.current||N.current>0||(ie.current=e,m(t=>t===e?t:e))},[]),le=(0,X.useCallback)(e=>{if(se.current?.disconnect(),se.current=null,ae.current=e,!e||typeof ResizeObserver>`u`){e&&ce(e.getBoundingClientRect().height);return}ce(e.getBoundingClientRect().height);let t=new ResizeObserver(e=>{let t=e[0];if(t){let e=t.borderBoxSize?.[0]?.blockSize;ce(e??t.target.getBoundingClientRect().height)}});t.observe(e),se.current=t},[ce]);(0,X.useEffect)(()=>()=>se.current?.disconnect(),[]),(0,X.useEffect)(()=>{e&&(c(0),u(0),f(!1),w(!1),k(0),b.current=0,T.current=0,E.current=null,D.current=null,g(0),S(null))},[e,k]);let ue=(0,X.useCallback)(()=>ie.current>0?ie.current:ae.current?.getBoundingClientRect().height??0,[]),de=(0,X.useCallback)(e=>{let t=ck(e,0,O.current),n=RO(t,P.current?.()??[]);return{offsets:n,peekOffset:BO(n,t)}},[]),fe=(0,X.useCallback)(()=>{let e=ae.current;if(!e)return ie.current;let t=e.style.height;if(t===``)return e.getBoundingClientRect().height;e.style.height=``;let n=e.getBoundingClientRect().height;return e.style.height=t,n},[]),pe=(0,X.useCallback)(()=>{if(!ee.current||re.current!=null||E.current!=null)return;let e=fe();if(e<=0)return;let{offsets:t,peekOffset:n}=de(e),r=Math.min(b.current,t.length-1),i=t[r],a=i===n?0:i,o=y.current;if(e===ie.current&&Math.abs(i-N.current)<=.5&&Math.abs(a-o)<=.5)return;ie.current=e,m(e),b.current=r,M(o,i,a,i,o,sk(oe.current),!1),k(a),u(i),ne.current?.(ck(e,i,O.current));let s=t[t.length-1],c=ck(e,s,O.current);I.current?.(VO(i,t,s+c*pk,n))},[fe,M,k,de]);(0,X.useEffect)(()=>{if(e&&typeof window<`u`)return window.addEventListener(`resize`,pe),window.addEventListener(`orientationchange`,pe),()=>{window.removeEventListener(`resize`,pe),window.removeEventListener(`orientationchange`,pe)}},[e,pe]);let L=(0,X.useRef)(!1);(0,X.useLayoutEffect)(()=>{if(!L.current){L.current=!0;return}pe()},[pe,i]);let R=(0,X.useCallback)(e=>{let t=re.current;if(t==null)return;re.current=null,e?.hasPointerCapture?.(t.pointerId)&&e.releasePointerCapture(t.pointerId),c(t.baseOffset),f(!1),M(t.baseLayoutOffset,t.baseOffset,t.baseLayoutOffset,t.renderedOffset,t.layoutOffset,t.naturalEndGap,!0);let{offsets:n,peekOffset:r}=de(t.height),i=n[n.length-1],a=i+ck(t.height,i,O.current)*pk;I.current?.(VO(t.baseOffset,n,a,r))},[M,de]);(0,X.useEffect)(()=>{let e=()=>R(),t=()=>{document.visibilityState===`hidden`&&R()};return window.addEventListener(`blur`,e),document.addEventListener(`visibilitychange`,t),()=>{window.removeEventListener(`blur`,e),document.removeEventListener(`visibilitychange`,t)}},[R]);let me=(0,X.useCallback)((e,t,n,r,i,a,o,s,l,d)=>{let{offsets:f,peekOffset:p}=de(n),m=f[f.length-1],h=ck(n,m,O.current),g=Math.abs(t)>dk&&i>fk,_=e=>{let t=e===p?0:e;M(o,e,t,s,l,d,!0),k(t),b.current=Math.max(0,f.indexOf(e)),u(e),ne.current?.(ck(n,e,O.current));let r=m+h*pk;I.current?.(VO(e,f,r,p)),e!==a&&rk()};if(r>0&&g){F.current?(M(o,a,o,o,o,d,!1),te.current()):_(m);return}if(r<0&&g){M(o,0,0,s,l,d,!0),k(0),b.current=0,c(0),u(0),ne.current?.(ck(n,0,O.current)),I.current?.(1),rk();return}if(e>m+h*pk){F.current?(M(o,a,o,o,o,d,!1),te.current()):_(m);return}_(HO(e,f,r,a))},[M,k,de]),he=(0,X.useCallback)((e,t,n)=>{let r=e.currentTarget,i=nk(e);i||r.setPointerCapture?.(e.pointerId);let a=n??e.clientY,o=sk(oe.current),s=y.current;re.current={syntheticTouch:i,pointerId:e.pointerId,startCoord:a,lastCoord:e.clientY,lastTime:e.timeStamp,velocity:0,height:t,baseOffset:l,baseLayoutOffset:s,renderedOffset:l,layoutOffset:s,naturalEndGap:o},A(ak(s,s,o)),c(l),f(!0)},[l,A]),ge=(0,X.useCallback)(e=>{e.button===0&&e.isPrimary&&(e.preventDefault(),he(e,ue()))},[he,ue]),_e=(0,X.useCallback)(e=>{re.current!=null&&(e.preventDefault(),R(e.currentTarget))},[R]),ve=(0,X.useCallback)(e=>{re.current?.syntheticTouch||re.current?.pointerId===e.pointerId&&R()},[R]),ye=(0,X.useCallback)(e=>{let t=re.current;if(!t||t.pointerId!==e.pointerId||t.syntheticTouch&&!nk(e))return;let n=e.clientY-t.startCoord,r=e.timeStamp-t.lastTime;r>0&&(t.velocity=(e.clientY-t.lastCoord)/r,t.lastCoord=e.clientY,t.lastTime=e.timeStamp);let{offsets:i,peekOffset:a}=de(t.height),o=t.baseOffset+n,s=i[i.length-1],l;l=o<0?Math.max(-48,o*hk):o>s?o:ik(o,i);let u=l<t.baseOffset?0:t.baseLayoutOffset;t.renderedOffset=l,t.layoutOffset=u,c(l),A(ak(t.baseLayoutOffset,u,t.naturalEndGap));let d=i[i.length-1],f=d+ck(t.height,d,O.current)*pk;I.current?.(VO(l,i,f,a))},[de,A]),be=(0,X.useCallback)(e=>{let t=re.current;if(!t||t.pointerId!==e.pointerId||t.syntheticTouch&&!nk(e))return;let n=e.currentTarget,r=e.clientY-t.startCoord,i=Math.max(0,t.baseOffset+r),a=r===0?0:r>0?1:-1;re.current=null,t.syntheticTouch||n.releasePointerCapture?.(e.pointerId),f(!1),me(i,t.velocity,t.height||1,a,Math.abs(r),t.baseOffset,t.baseLayoutOffset,t.renderedOffset,t.layoutOffset,t.naturalEndGap)},[me]),xe=(0,X.useRef)(null),Se=(0,X.useCallback)(e=>{if(e.button!==0||!e.isPrimary)return;let t=e.currentTarget;if(t.scrollTop>0){xe.current=null;return}xe.current={pointerId:e.pointerId,startCoord:e.clientY,scroller:t}},[]),Ce=(0,X.useCallback)(e=>{if(re.current){ye(e);return}let t=xe.current;if(!t||t.pointerId!==e.pointerId)return;let n=e.clientY-t.startCoord;n>_k&&t.scroller.scrollTop<=0?(xe.current=null,he(e,ue(),t.startCoord),ye(e)):n<0&&(xe.current=null)},[he,ye,ue]),we=(0,X.useCallback)(e=>{xe.current=null,!re.current?.syntheticTouch&&re.current&&be(e)},[be]),Te=(0,X.useRef)(null),Ee=(0,X.useRef)(null),De=(0,X.useRef)(he),Oe=(0,X.useRef)(R),ke=(0,X.useRef)(ye),Ae=(0,X.useRef)(be),je=(0,X.useRef)(ue);(0,X.useEffect)(()=>{De.current=he,Oe.current=R,ke.current=ye,Ae.current=be,je.current=ue});let Me=(0,X.useCallback)(e=>{let t=(e,t)=>({syntheticTouch:!0,pointerId:e.identifier,clientY:e.clientY,timeStamp:Date.now(),currentTarget:t,setPointerCapture:()=>{},releasePointerCapture:()=>{}}),n=e=>e.scrollTop<=0,r=e=>e.scrollTop+e.clientHeight>=e.scrollHeight-1,i=e=>{let t=e.currentTarget,i=e.changedTouches[0];if(!i){Te.current=null;return}let a=n(t),o=r(t)&&N.current>0;Te.current={id:i.identifier,startY:i.clientY,top:a,bottom:o,contentEndY:null,promotedAtContentEnd:!1}},a=e=>{let i=e.currentTarget,a=Te.current;if(re.current){let n=[...e.changedTouches].find(e=>e.identifier===re.current?.pointerId);if(!n)return;if(a?.promotedAtContentEnd&&a.contentEndY!=null){if(n.clientY>=a.contentEndY){a.contentEndY=null,a.promotedAtContentEnd=!1,Oe.current(i);return}ke.current(t(n,i));return}e.preventDefault(),ke.current(t(n,i));return}if(!a)return;let o=[...e.changedTouches].find(e=>e.identifier===a.id);if(!o)return;let s=o.clientY-a.startY,c=a.top&&s>_k&&n(i),l=a.bottom&&s<-8&&r(i);if(c||l){e.preventDefault(),Te.current=null,De.current(t(o,i),je.current(),a.startY),ke.current(t(o,i));return}(a.top&&s<0||a.bottom&&s>0)&&(a.top=!1,a.bottom=!1),N.current>0&&r(i)?a.contentEndY==null?a.contentEndY=o.clientY:a.contentEndY-o.clientY>=gk&&(a.promotedAtContentEnd=!0,De.current(t(o,i),je.current(),a.contentEndY),ke.current(t(o,i))):a.contentEndY=null},o=e=>{Te.current=null;let n=re.current?.pointerId;if(n==null)return;let r=[...e.changedTouches].find(e=>e.identifier===n),i=e.currentTarget;r?Ae.current(t(r,i)):e.touches.length===0&&Oe.current(i)},s=oe.current;if(s&&Ee.current){let e=Ee.current;s.removeEventListener(`touchstart`,e.start),s.removeEventListener(`touchmove`,e.move),s.removeEventListener(`touchend`,e.end),s.removeEventListener(`touchcancel`,e.end)}oe.current=e,e?(e.addEventListener(`touchstart`,i,{passive:!0}),e.addEventListener(`touchmove`,a,{passive:!1}),e.addEventListener(`touchend`,o,{passive:!0}),e.addEventListener(`touchcancel`,o,{passive:!0}),Ee.current={start:i,move:a,end:o}):Ee.current=null},[]),Ne=Sl(`(prefers-reduced-motion: reduce)`),Pe=(0,X.useCallback)(e=>{if(T.current<=0)return;let t=ok(e),n=Math.max(0,e.scrollHeight-e.clientHeight-t),r=Math.max(0,e.scrollTop-n);r<T.current-.5&&A(r)},[A]),Fe=(0,X.useCallback)(e=>{re.current==null&&E.current==null&&Pe(e.currentTarget)},[Pe]),Ie=d?s:l;return{sheetRef:le,contentProps:(0,X.useMemo)(()=>({style:{transform:Ie===0?void 0:`translateY(${Ie}px)`,transition:e&&(d||C||Ne)?`none`:void 0,touchAction:`none`,overscrollBehavior:`contain`}}),[Ie,d,e,C,Ne]),handleProps:(0,X.useMemo)(()=>({style:{touchAction:`none`,cursor:`grab`},onContextMenu:_e,onLostPointerCapture:ve,onPointerDown:ge,onPointerMove:ye,onPointerUp:be,onPointerCancel:be}),[be,_e,ve,ge,ye]),bodyProps:(0,X.useMemo)(()=>({ref:Me,onContextMenu:_e,onLostPointerCapture:ve,onPointerDown:Se,onPointerMove:Ce,onPointerUp:we,onPointerCancel:we,onScroll:Fe}),[Me,we,Se,Ce,Fe,_e,ve]),bodyElementRef:oe,dragOffset:s,settledOffset:l,isDragging:d,sheetHeight:p,scrollPreservationInset:h,settlingLayoutOffset:x,settledLayoutOffset:_,completeScrollAreaSettle:j}}var X,dk,fk,pk,mk,hk,gk,_k,vk=o((()=>{X=u(f(),1),PT(),GO(),dk=1.2,fk=48,pk=.4,mk=40,hk=.35,gk=4,_k=8}));function yk(){return typeof window>`u`?0:window.innerHeight}function bk(e){let t=``;for(let n of e??[])t+=`${typeof n}:${n}|`;return t}function xk(e){return e.kind===`open`?e.entering?`entering`:null:e.kind===`retained`?e.motion===`covered`?null:e.motion:e.kind===`exiting`?`exiting`:null}function Sk(e,t,n){if(e==null)return n(),()=>{};let r=!1,i=null,a=()=>{r||(r=!0,i!=null&&clearTimeout(i),e.removeEventListener(`transitionend`,o),e.removeEventListener(`transitioncancel`,o),n())},o=n=>{n.target===e&&n.propertyName===t&&a()};e.addEventListener(`transitionend`,o),e.addEventListener(`transitioncancel`,o);let s=getComputedStyle(e);if(e.style.transition.trim()===`none`||s.transition.trim()===`none`)return a(),()=>{};let c=s.transitionProperty.split(`,`).map(e=>e.trim()),l=s.transitionDuration.split(`,`).map(Ck),u=s.transitionDelay.split(`,`).map(Ck),d=!1,f=c.reduce((e,n,r)=>{if(n!==t&&n!==`all`)return e;let i=l[r%l.length],a=u[r%u.length];return i==null||a==null?(d=!0,e):Math.max(e,i+a)},0);return d?()=>{e.removeEventListener(`transitionend`,o),e.removeEventListener(`transitioncancel`,o)}:f<=0?(a(),()=>{}):(i=setTimeout(a,f+Ak),()=>{i!=null&&clearTimeout(i),e.removeEventListener(`transitionend`,o),e.removeEventListener(`transitioncancel`,o)})}function Ck(e){let t=e.trim();if(!/^-?(?:\d+|\d*\.\d+)(?:ms|s)$/.test(t))return null;let n=Number.parseFloat(e);return t.endsWith(`ms`)?n:n*1e3}function wk({ref:e,state:t,height:n,label:r,children:i,snapPoints:a,className:o,style:s,tabIndex:c,xstyle:l,isSwipeDismissAllowed:u=!0,isPageScrollLocked:d=!1,onDismiss:f,onScrimOpacity:p,onElementChange:m,onMotionStart:h,onMotionComplete:g,..._}){let v=(0,Tk.useRef)(null),y=(0,Tk.useRef)(t),b=(0,Tk.useRef)(!1),x=(0,Tk.useRef)(h),S=(0,Tk.useRef)(g),C=(0,Tk.useRef)(null),w=(0,Tk.useRef)(null),T=t.kind===`open`&&t.entering,E=y.current,D=E.kind===`open`&&E.entering;T&&!D?b.current=E.kind===`retained`:T||(b.current=!1),(0,Tk.useLayoutEffect)(()=>{y.current=t,x.current=h,S.current=g},[g,h,t]);let O=t.kind===`open`,k=t.kind!==`hidden`,A=t.kind===`retained`,j=A||t.kind===`exiting`,M=t.kind===`exiting`,N=A&&t.motion===`fading`,ee=A?t.alignmentOffset:0,P=bk(a),te=(0,Tk.useRef)(a);te.current=a;let{snapHeights:F,ignoredSnapPointsMessage:ne}=(0,Tk.useMemo)(()=>{if(P===``)return{snapHeights:void 0,ignoredSnapPointsMessage:``};let e=(te.current??[]).filter(e=>!IO(e));return{snapHeights:()=>LO(te.current??[],yk()),ignoredSnapPointsMessage:e.length===0?``:`snapPoints ignored ${JSON.stringify(e)}. A snap point is a viewport fraction above 0 and up to 1 (0.5 is half the screen), a px length ('320px'), or a percentage ('50%').`}},[P]);yw(`BottomSheet`,ne,ne!==``);let{contentProps:I,handleProps:re,bodyProps:ie,bodyElementRef:ae,sheetRef:oe,dragOffset:se,settledOffset:ce,isDragging:le,sheetHeight:ue,scrollPreservationInset:de,settlingLayoutOffset:fe,settledLayoutOffset:pe,completeScrollAreaSettle:L}=uk({isOpen:O,canDismiss:u,offscreenBlockEndInset:Ok,onDismiss:f,snapHeights:F,onScrimOpacity:p}),{getViewportProps:R,getContentProps:me}=Kw({axis:`both`,keyboardAccess:{owner:`contentOrViewport`,label:r},overscroll:`contain`,stickyContainment:`always`}),he=(0,Tk.useCallback)(e=>{oe(e),v.current=e,m?.(e)},[m,oe]);ZO({bodyRef:ae,bottomClearance:kk,isEnabled:n===`tall`,isFullyExpanded:ce===0,isPageScrollLocked:d,isSheetTraveling:le&&se!==ce,isOpen:O,isPresented:k,sheetRef:v}),(0,Tk.useImperativeHandle)(e,()=>v.current,[]);let ge=xk(t);(0,Tk.useLayoutEffect)(()=>{if(ge!=null){if(C.current=null,w.current=null,ge===`entering`&&b.current){w.current=ge;return}return Sk(v.current,ge===`fading`?`opacity`:`transform`,()=>{C.current===ge?S.current?.(ge):w.current=ge})}},[ge]),(0,Tk.useLayoutEffect)(()=>{if(fe!=null)return Sk(v.current,`transform`,L)},[L,fe]),(0,Tk.useEffect)(()=>{if(ge!=null)return x.current?.(ge),C.current=ge,w.current===ge&&(w.current=null,S.current?.(ge)),()=>{C.current===ge&&(C.current=null),w.current===ge&&(w.current=null)}},[ge]);let _e=typeof n==`string`&&n in Dk?Dk[n]:typeof n==`number`?`${n}px`:n,ve=ue>0,ye=I.style.transform,be;if(ve){let e=le?se<ce?0:pe:fe??pe,t=(le?se:ce)-e;be=e>0||le||fe!=null?`${Math.max(0,ue-Math.max(0,e))}px`:void 0,ye=t===0?void 0:`translateY(${t}px)`}let xe=ee>0?[ye,`translateY(${ee}px)`].filter(Boolean).join(` `):ye,Se={...I.style,transform:ye,height:be};return(0,Ek.jsxs)(`div`,{..._,ref:he,tabIndex:c??-1,...U(V(`bottom-sheet`),z(Jr.reset,jk.sheet,fi.reset,n===`hug`?jk.hugHeight:jk.budget,M&&jk.sheetClosing,N&&jk.sheetFading,j&&jk.sheetInactive,l),o,{"--_sheet-budget":_e,...O?Se:A?{transform:xe,height:be}:M?{height:be}:{},...s}),children:[(0,Ek.jsx)(`div`,{className:`x10l6tqk x13vifvy x1o0tod xtijo5x x1vjfegm x78zum5 x6s0dn4 xl56j7k xvpftlf xafqdz2 x5ve5x3 x1jm3nie x16khyan`,...re,"aria-hidden":`true`,children:(0,Ek.jsx)(`div`,{className:`x1m747yf x11c6zpc xjspbzw x1m4xfpy`})}),(0,Ek.jsx)(`div`,{...R({...ie,...U(z(Ln.focusVisible,jk.body,n===`tall`&&jk.tallKeyboardBody),de>0?{style:{paddingBlockEnd:`${de}px`}}:{})}),children:(0,Ek.jsx)(`div`,{...me({className:`xufnvkl x9f619 x5yr21d x121v3j4`}),children:(0,Ek.jsx)(Er,{children:i})})})]})}var Tk,Ek,Dk,Ok,kk,Ak,jk,Mk=o((()=>{Tk=u(f(),1),B(),PT(),$w(),Et(),W(),zn(),Yr(),Ar(),pi(),GO(),tk(),vk(),Ek=G(),Dk={hug:`92dvh`,capped:`62dvh`,tall:`92dvh`},Ok=48,kk=48,Ak=50,St[`--spacing-6`],jk={sheet:{kfzvcC:`x67bb7w`,kB7OPa:`x9f619`,kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kAzted:`x2lwn1j`,kzqmXN:`xh8yej3`,ks0D6T:`x11gisft`,kWkggS:`x10xzikg`,kEafiO:`x11xkdxz`,kPef9Z:`x13fuv20`,kLZC3w:`x1pc3f07`,k2ei4v:`xgbv0en`,kVhnKS:`x1t7ytsu`,kGJrpR:`x1j92z86`,ke9TFa:`xw8tdv1`,k8ry5P:`x18b5jzi`,kBCPoo:`x1gejf6u`,krdFHd:`x81l70g`,kfmiAY:`x7hs6f1`,kGVxlE:`x1kcpxr7`,kI3sdo:`x1a2a7pz`,kVQacm:`xb3r6kr`,kGO01o:`x1wkw6tp`,k1K539:`x1if0o47`,k3aq6I:`xnn1q72 xhbqy3z`,kSiTet:`x1hc1fzr`,k1ekBW:`xwcsmn1`,kIyJzY:`x80gvsz`,kAMwcw:`xlr8y92`,k6sLGO:`x1q1rmc8`,k6CgDc:`xzg1mie`,$$css:!0},sheetClosing:{k3aq6I:`x1weeur4`,kAMwcw:`xv2sgk5`,$$css:!0},sheetFading:{kSiTet:`xg01cxk`,$$css:!0},sheetInactive:{kfzvcC:`x47corl`,$$css:!0},body:{kzQI83:`x1iyjqo2`,kAzted:`x2lwn1j`,kB7OPa:`x9f619`,kFalU9:`xx69xxh`,kInvED:`x1wfwxd8 x1nw7mhf`,kWkggS:`x10xzikg`,kGO01o:`x18d9i69`,$$css:!0},tallKeyboardBody:{kFlMNQ:`xrw9175`,k5JduY:`x1s928wv`,kc3QkE:`xhkezso`,k4zj60:`xu6fald`,kloYau:`x2q1x1w`,$$css:!0},budget:{kZKoxP:`x1tpcejd`,$$css:!0},hugHeight:{kZKoxP:`xg7h5cd`,kskxy:`x14bu9tk`,$$css:!0}},wk.displayName=`BottomSheetPanel`}));function Nk(){return(0,Pk.jsx)(`div`,{className:`xixxii4 x17y0mx6 x1ey2m1c x1kpxq89 x10xzikg xhtitgo x47corl x1cb67k9 xt2iwb0`,"data-sheet-edge-tint":``,"aria-hidden":`true`})}var Pk,Fk=o((()=>{Pk=G()})),Ik,Lk,Rk=o((()=>{Ik=u(f(),1),Lk=(0,Ik.createContext)(null),Lk.displayName=`BottomSheetSwitcherContext`})),zk=c({BottomSheet:()=>Wk});function Bk(e,t){switch(e){case`active`:return{kind:`open`,entering:!1};case`entering`:return{kind:`open`,entering:!0};case`covered`:case`aligning`:case`fading`:return{kind:`retained`,motion:e,alignmentOffset:t};case`exiting`:return{kind:`exiting`};case`hidden`:return{kind:`hidden`}}}function Vk(e,t){let n=document.activeElement;if(n!=null&&e?.contains(n))return;let r=e?.querySelector(`[data-autofocus]`);r==null?t&&e?.focus({preventScroll:!0}):r.focus({preventScroll:!0})}function Hk({ref:e,isOpen:t,onOpenChange:n,label:r,children:i,height:a=`capped`,snapPoints:o,hasScrim:s=!0,finalFocusRef:c,purpose:l=`info`,xstyle:u,...d}){let f=(0,Gk.useRef)(null),p=(0,Gk.useRef)(null),m=(0,Gk.useRef)(null),[h,g]=(0,Gk.useState)(t),_=t||h,v=t?{kind:`open`,entering:!1}:h?{kind:`exiting`}:{kind:`hidden`},y=(0,Gk.useCallback)(()=>{l!==`required`&&n(!1)},[n,l]),b=(0,Gk.useCallback)(()=>{l===`info`&&n(!1)},[n,l]),x=(0,Gk.useCallback)(e=>{p.current=e},[]),S=(0,Gk.useCallback)(e=>{f.current?.style.setProperty(`--_sheet-scrim-opacity`,String(e))},[]);(0,Gk.useEffect)(()=>{let e=f.current;e!=null&&t&&(g(!0),e.style.setProperty(`--_sheet-scrim-opacity`,`1`),e.open||(s?(m.current=document.activeElement,e.showModal()):e.show(),Vk(p.current,s)))},[s,t]),(0,Gk.useEffect)(()=>{!t&&h&&s&&S(0)},[S,s,t,h]);let C=(0,Gk.useCallback)(e=>{if(e!==`exiting`||t)return;let n=f.current;n?.open&&n.close(),g(!1),(c?.current??m.current)?.focus(),m.current=null},[c,t]);rT(_&&s),yw(`BottomSheet`,"requires a non-empty `label` for an accessible name; the open sheet has no built-in heading to derive one from.",t&&!r);let w=(0,Gk.useCallback)(e=>{e.preventDefault(),y()},[y]),T=(0,Gk.useCallback)(e=>{e.key===`Escape`&&(e.preventDefault(),!Bn(e.nativeEvent)&&y())},[y]),E=(0,Gk.useCallback)(e=>{s&&e.target===e.currentTarget&&b()},[b,s]);return(0,Kk.jsxs)(`dialog`,{...{0:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1s85apg x1a2a7pz`},8:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1a2a7pz x1lliihq`},4:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1s85apg x1a2a7pz xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x15h3t91 x142juwg x1viac0w`},12:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1a2a7pz x1lliihq xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x15h3t91 x142juwg x1viac0w`},2:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1s85apg x1a2a7pz x1cz9k3x`},10:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1a2a7pz x1lliihq x1cz9k3x`},6:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1s85apg x1a2a7pz xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x142juwg x1viac0w x1cz9k3x`},14:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1a2a7pz x1lliihq xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x142juwg x1viac0w x1cz9k3x`},1:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1s85apg x1a2a7pz x47corl xfo81ep xh8yej3 x5yr21d`},9:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1a2a7pz x1lliihq x47corl xfo81ep xh8yej3 x5yr21d`},5:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1s85apg x1a2a7pz xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x15h3t91 x142juwg x1viac0w x47corl xfo81ep xh8yej3 x5yr21d`},13:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1a2a7pz x1lliihq xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x15h3t91 x142juwg x1viac0w x47corl xfo81ep xh8yej3 x5yr21d`},3:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1s85apg x1a2a7pz x1cz9k3x x47corl xfo81ep xh8yej3 x5yr21d`},11:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1a2a7pz x1lliihq x1cz9k3x x47corl xfo81ep xh8yej3 x5yr21d`},7:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1s85apg x1a2a7pz xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x142juwg x1viac0w x1cz9k3x x47corl xfo81ep xh8yej3 x5yr21d`},15:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1a2a7pz x1lliihq xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x142juwg x1viac0w x1cz9k3x x47corl xfo81ep xh8yej3 x5yr21d`}}[!!_<<3|!!s<<2|!!(s&&!t&&h)<<1|!s<<0],ref:f,"aria-label":r,"aria-hidden":!t&&h?`true`:void 0,"aria-modal":s&&t?`true`:void 0,role:l===`required`?`alertdialog`:void 0,inert:!t&&h?!0:void 0,onCancel:w,onClick:E,onKeyDown:T,children:[(0,Kk.jsx)(`div`,{className:`x10l6tqk x17y0mx6 x1ey2m1c x78zum5 xl56j7k x47corl`,children:(0,Kk.jsx)(wk,{...d,ref:e,state:v,height:a,label:r,snapPoints:o,isSwipeDismissAllowed:l===`info`,isPageScrollLocked:_&&s,xstyle:u,onDismiss:b,onScrimOpacity:S,onElementChange:x,onMotionComplete:C,children:i})}),(0,Kk.jsx)(Nk,{})]})}function Uk({switcher:e,ref:t,sheetId:n,label:r,children:i,height:a=`capped`,snapPoints:o,purpose:s=`info`,xstyle:c,...l}){let{activeSheet:u,hasScrim:d,onActiveSheetChange:f,getSheetPhase:p,getSheetAlignmentOffset:m,registerSheetElement:h,registerSheetLabel:g,registerSheetPurpose:_,onSheetEnterStart:v,onSheetTransitionComplete:y,onSheetScrimOpacityChange:b}=e,x=typeof n==`string`&&n.length>0,S=x?p(n):`hidden`,C=Bk(S,x?m(n):0),w=S===`active`||S===`entering`,T=S===`covered`||S===`aligning`||S===`fading`||S===`exiting`,E=S!==`hidden`,D=S===`active`||S===`entering`,O=(0,Gk.useRef)(null),k=(0,Gk.useRef)(S),A=k.current,j=(0,Gk.useRef)(!1);(0,Gk.useLayoutEffect)(()=>{k.current=S},[S]);let M=(0,Gk.useCallback)(()=>{s===`info`&&x&&u===n&&f(null)},[u,x,f,s,n]),N=(0,Gk.useCallback)(e=>{O.current=e,x&&h(n,e)},[x,h,n]),ee=(0,Gk.useCallback)(e=>{e===`entering`&&x&&v(n)},[x,v,n]),P=(0,Gk.useCallback)(e=>{x&&y({sheetId:n,phase:e})},[x,y,n]),te=(0,Gk.useCallback)(e=>{x&&b(n,e)},[x,b,n]);return(0,Gk.useLayoutEffect)(()=>{if(x)return g(n,r),()=>g(n,null)},[x,r,g,n]),(0,Gk.useLayoutEffect)(()=>{if(x)return _(n,s),()=>_(n,null)},[x,s,_,n]),(0,Gk.useEffect)(()=>{if(w){let e=A===`active`||A===`entering`;(!j.current||!e)&&Vk(O.current,d),j.current=!0}else S===`hidden`&&(j.current=!1)},[d,w,S,A]),yw(`BottomSheet`,"requires a non-empty `label` for an accessible name; the open sheet has no built-in heading to derive one from.",w&&!r),(0,Kk.jsx)(`div`,{...{0:{className:`x10l6tqk x17y0mx6 x1ey2m1c x78zum5 xl56j7k x47corl`},2:{className:`x10l6tqk x17y0mx6 x1ey2m1c xl56j7k x47corl x1s85apg`},1:{className:`x10l6tqk x17y0mx6 x1ey2m1c x78zum5 xl56j7k x47corl x1vjfegm`},3:{className:`x10l6tqk x17y0mx6 x1ey2m1c xl56j7k x47corl x1s85apg x1vjfegm`}}[!E<<1|!!D<<0],hidden:!E,"aria-hidden":T?`true`:void 0,inert:T?!0:void 0,children:(0,Kk.jsx)(wk,{...l,ref:t,state:C,height:a,label:r,snapPoints:o,isSwipeDismissAllowed:s===`info`,isPageScrollLocked:d,xstyle:c,onDismiss:M,onScrimOpacity:te,onElementChange:N,onMotionStart:ee,onMotionComplete:P,children:(0,Kk.jsx)(Lk,{value:null,children:i})})})}function Wk(e){let t=(0,Gk.use)(Lk),n=e.sheetId,r=typeof n==`string`&&n.length>0;return yw(`BottomSheet`,"requires a non-empty `sheetId` when nested in BottomSheetSwitcher; standalone `isOpen` / `onOpenChange` props are ignored there.",t!=null&&!r),yw(`BottomSheet`,"`sheetId` only works inside BottomSheetSwitcher. Use `isOpen` and `onOpenChange` for a standalone sheet.",t==null&&n!=null),t==null?(0,Kk.jsx)(Hk,{...e}):(0,Kk.jsx)(Uk,{...e,switcher:t})}var Gk,Kk,qk=o((()=>{Gk=u(f(),1),PT(),W(),Mk(),Fk(),Rk(),Kk=G(),Wk.displayName=`BottomSheet`}));function Jk({isOpen:e,targetRef:t}){return(0,Xk.useEffect)(()=>{if(!e)return;let n=requestAnimationFrame(()=>{t.current?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(n)},[e,t]),null}function Yk({children:e,finalFocusRef:t,initialFocusRef:n,isOpen:r,label:i,onOpenChange:a}){return(0,Zk.jsx)(Xk.Suspense,{fallback:null,children:(0,Zk.jsx)(Qk,{isOpen:r,onOpenChange:a,finalFocusRef:t,label:i,height:`hug`,purpose:`info`,children:(0,Zk.jsx)(MS,{paddingBlockStart:4,paddingBlockEnd:0,paddingInline:1,children:(0,Zk.jsxs)(`div`,{className:`xh8yej3`,children:[(0,Zk.jsx)(Ba,{level:3,xstyle:$k.heading,children:i}),e,(0,Zk.jsx)(Jk,{isOpen:r,targetRef:n})]})})})})}var Xk,Zk,Qk,$k,eA=o((()=>{Xk=u(f(),1),Ka(),zS(),Zk=G(),Qk=(0,Xk.lazy)(async()=>Promise.resolve().then(()=>(qk(),zk)).then(e=>({default:e.BottomSheet}))),$k={heading:{k1K539:`x1p37lm5`,kUOVxO:`xam6yil`,$$css:!0}},Yk.displayName=`SelectorBottomSheet`}));function tA(e){try{e.focus()}catch{}return document.activeElement===e}function nA(e){let t=Array.from(e.querySelectorAll(jC)).filter(e=>e.closest(sA)==null);for(let e of t)if(tA(e))return!0;return!1}function rA(e={}){let{onShow:t,onHide:n,xstyle:r,className:i,style:a,hasLightDismiss:o=!0,hasEscapeDismiss:s=!0,hasAutoFocus:c=!0,hasSurface:l=!0,padding:u,surfaceTarget:d,hasCloseButton:f=!0,closeButtonLabel:p,dialogLabel:m,role:h=`dialog`,isModal:g=!0}=e,_=bf(),v=p??_(`@astryx.popover.close`),y=(0,aA.useRef)(null),b=(0,aA.useRef)(!1),x=bi({mode:`context`,lightDismiss:o,onShow:t,onHide:n}),{containerRef:S,focusFirst:C}=zC({isActive:x.isOpen,onEscape:s||o?x.hide:void 0}),w=(0,aA.useCallback)(()=>{let e=S.current;if(e&&!nA(e)){if(h===`dialog`){tA(e);return}C()}},[S,C,h]);(0,aA.useEffect)(()=>{x.isOpen&&c&&!b.current&&requestAnimationFrame(w),x.isOpen||(b.current=!1)},[x.isOpen,c,w]);let T=(0,aA.useCallback)(e=>{y.current=e,x.ref(e)},[x]),E=(0,aA.useCallback)(e=>{b.current=e?.skipAutoFocus??!1,x.show()},[x]),D=(0,aA.useCallback)(()=>{x.isOpen?x.hide():E()},[x,E]),O={"aria-haspopup":h===`dialog`?`dialog`:`true`,"aria-expanded":x.isOpen,"aria-controls":x.id};yw(`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.',h===`dialog`&&!m);let k=(0,aA.useCallback)((e,t)=>{let n=V(`popover`,void 0,{legacyNames:[`popover-surface`]}),o=d!=null&&d!==`popover`?`${n.className} ${Dt(d)}`:n.className;return x.render((0,oA.jsx)(Wi,{children:(0,oA.jsxs)(`div`,{ref:S,role:h===`dialog`?`dialog`:void 0,"aria-modal":h===`dialog`&&g?!0:void 0,"aria-label":h===`dialog`?m:void 0,tabIndex:h===`dialog`?-1:void 0,...U({...n,className:o},Rn.focusVisible(cA.contentWrapper,l&&cA.surface,u!=null&&Zr[u],r),i,a),children:[e,f&&(0,oA.jsx)(`div`,{"data-astryx-popover-fallback-close":``,...z(cA.closeButtonWrapper,On.centerInline(`100%`)),children:(0,oA.jsx)(Y,{variant:`secondary`,label:v,onClick:x.hide})})]})}),{...t,xstyle:t?.xstyle})},[x,f,l,u,d,i,a,v,S,m,h,g,r]);return{triggerRef:T,contentRef:S,anchorId:x.anchorId,show:E,hide:x.hide,toggle:D,isOpen:x.isOpen,id:x.id,render:k,triggerProps:O}}function iA(e={}){return rA(e)}var aA,oA,sA,cA,lA=o((()=>{aA=u(f(),1),B(),Ei(),HC(),Ji(),jx(),MC(),W(),Ef(),xw(),zn(),Xt(),H(),pi(),Pt(),oA=G(),sA=`[data-astryx-popover-fallback-close]`,cA={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 uA(e){let t=Sl(dA);return e===`adaptive`?t?`bottom-sheet`:`popover`:e}var dA,fA=o((()=>{wl(),dA=`(max-width: 768px) and (pointer: coarse)`}));function pA(){let[e,t]=(0,mA.useState)(!1);ki();let n=(0,mA.useCallback)(()=>{t(Ai()===`pointer`)},[]),r=(0,mA.useCallback)(()=>{t(!1)},[]);return{isFocusRingSuppressed:e,onFocusReturnTargetFocus:(0,mA.useCallback)(()=>{Ai()===`keyboard`&&t(!1)},[]),prepareFocusReturn:n,resetFocusReturn:r}}var mA,hA=o((()=>{mA=u(f(),1),Ni()}));function gA({presentation:e,onHide:t,onShow:n,popoverOptions:r,triggerRef:i}){let a=uA(e),o=(0,_A.useRef)(a),[s,c]=(0,_A.useState)(!1),l=(0,_A.useRef)(!1),[u,d]=(0,_A.useState)(!1),f=(0,_A.useRef)(t),p=(0,_A.useRef)(n),m=(0,_A.useRef)(!1),{isFocusRingSuppressed:h,onFocusReturnTargetFocus:g,prepareFocusReturn:_,resetFocusReturn:v}=pA();f.current=t,p.current=n;let y=(0,_A.useCallback)(()=>{_(),f.current(),i.current?.focus()},[_,i]),b=(0,_A.useCallback)(()=>{m.current=!0,v(),p.current()},[v]),x=iA({...r,onHide:y,onShow:b}),{hide:S,show:C}=x,w=(0,_A.useCallback)(()=>(o.current=a,a===`bottom-sheet`?(v(),p.current(),l.current=!0,d(!0),c(!0),!0):(d(!1),m.current=!1,C(),m.current)),[v,a,C]),T=(0,_A.useCallback)(()=>{l.current?(_(),l.current=!1,c(!1),f.current()):S()},[S,_]),E=(0,_A.useCallback)(e=>{g(),!l.current&&o.current===`bottom-sheet`&&d(!1)},[g]),D=(0,_A.useCallback)(e=>{e?w():T()},[T,w]),O=x.isOpen||s;return{activePresentation:O||u?o.current:a,hide:T,isOpen:O,isSheetOpen:s,isSheetPresented:u,isTriggerFocusRingSuppressed:h,onSheetOpenChange:D,onTriggerFocus:E,popover:x,show:w}}var _A,vA=o((()=>{_A=u(f(),1),lA(),fA(),hA()})),yA,bA=o((()=>{yA={pointerRestoredFocus:{kVAM5u:`xvy26l8`,kGVxlE:`x1gnnqk1`,kMeerF:`x1k57tk5`,k3XXqK:`x1t137rt`,$$css:!0}}}));function xA({option:e}){return(0,EA.jsx)(jO,{icon:e.icon,label:e.label??e.value,description:e.description})}function SA(e,t){return!t||(e.label??e.value).toLowerCase().includes(t.toLowerCase())}function CA(e,t){return t?e.filter(e=>SA(e,t)):e}function wA(e){let t=bf(),{label:n,isLabelHidden:r=!1,description:i,isOptional:a=!1,isRequired:o=!1,isDisabled:s=!1,isReadOnly:c=!1,disabledMessage:l,options:u,value:d,onChange:f,changeAction:p,isLoading:m=!1,placeholder:h,size:g,variant:_=`input`,status:v,statusVariant:y=`attached`,labelTooltip:b,startIcon:x,htmlName:S,renderOption:C,renderValue:w,indicatorPosition:T=`end`,hasSearch:E=!1,searchPlaceholder:D,emptyText:O,emptySearchText:k,placement:A,presentation:j=`popover`,isDefaultOpen:M=!1,"data-testid":N,width:ee,xstyle:P,className:te,style:F,onFocus:ne,hasClear:I,id:re,...ie}=e,ae=ZT({isRequired:o,isOptional:a}),oe=h??t(`@astryx.selector.placeholder`),se=D??t(`@astryx.selector.searchPlaceholder`),ce=O??t(`@astryx.selector.empty`),le=k??t(`@astryx.selector.emptySearchResults`),ue=I===!0,de=dx(g,`md`),fe=_===`ghost`&&y===`attached`?`detached`:y,pe=c&&!s,L=d===null?void 0:d,R=(0,TA.useId)(),me=re??R,he=(0,TA.useId)(),ge=(0,TA.useId)(),_e=(0,TA.useId)(),ve=(0,TA.useId)(),ye=(0,TA.useId)(),be=(0,TA.useId)(),xe=(0,TA.useRef)(null),Se=(0,TA.useRef)(null),Ce=(0,TA.useRef)(null),we=eD(),[Te,Ee]=(0,TA.useState)(``),De=(0,TA.useRef)(``),Oe=Te.length>0,[,ke]=(0,TA.useTransition)(),[Ae,je]=(0,TA.useOptimistic)(L),Me=m||Ae!==L,Ne=YC(),Pe=typeof ce==`string`?ce:t(`@astryx.selector.empty`),Fe=typeof le==`string`?le:t(`@astryx.selector.emptySearchResults`),Ie=s&&!!l,Le=va({placement:`above`,focusTrigger:`always`,isEnabled:Ie}),Re=va({placement:`above`,isEnabled:fe===`tooltip`&&!!v?.message}),{ariaLabelledBy:ze,ariaDescribedBy:Be}=mn(ve,[i?ge:null,!we&&fe!==`tooltip`&&v?.message?_e:null,fe===`tooltip`&&v?.message?Re.describedBy:null,Ie?Le.describedBy:null,pe?ye:null],we),Ve=(0,TA.useMemo)(()=>iO(u),[u]),He=(0,TA.useMemo)(()=>CA(Ve,Te),[Ve,Te]),Ue=(0,TA.useMemo)(()=>Ve.findIndex(e=>e.value===Ae),[Ve,Ae]),We=(0,TA.useMemo)(()=>Ue>=0?Ve[Ue]:void 0,[Ve,Ue]),Ge=(0,TA.useRef)(null),Ke=(0,TA.useRef)(()=>{}),qe=gA({presentation:j,onHide:(0,TA.useCallback)(()=>{Ee(``),De.current=``,Ke.current(),Ne(``)},[Ne]),onShow:(0,TA.useCallback)(()=>{E&&requestAnimationFrame(()=>{let e=Ce.current;e&&(e.focus(),e.setSelectionRange(e.value.length,e.value.length))})},[E]),triggerRef:Se,popoverOptions:{hasLightDismiss:!0,hasCloseButton:!1,hasAutoFocus:!1,role:`none`,surfaceTarget:`selector-popup`}}),{popover:Je}=qe,Ye=qe.hide,Xe=qe.isOpen,Ze=vi(Je.id,Je.isOpen);(0,TA.useEffect)(()=>{M&&!pe&&qe.show()},[]),(0,TA.useEffect)(()=>{pe&&Xe&&Ye()},[pe,Xe,Ye]);let Qe=(0,TA.useCallback)(e=>{if(e.length===0){Ne(``);return}if(m){Ne(``);return}let n=CA(Ve,e).length;Ne(n===0?Fe:t(`@astryx.selector.resultCount`,{count:n}))},[Ne,m,Ve,Fe,t]),$e=(0,TA.useCallback)(e=>{Ee(e),De.current=e,Qe(e)},[Qe]),et=(0,TA.useRef)(null);(0,TA.useEffect)(()=>{if(!qe.isOpen||m||Te!==``||Ve.length!==0){et.current=null;return}et.current!==Pe&&(et.current=Pe,Ne(Pe))},[qe.isOpen,m,Te,Ve.length,Pe,Ne]);let tt=A==null&&!E,{offset:nt,isPositioned:rt}=uO({isOpen:Je.isOpen&&tt,selectedItemIndex:Ue,listboxId:he,listboxRef:Ge,anchorRef:xe}),it=tt?nt:0,at=!tt||rt,ot=A??`below`,st=it>0?{marginBlockStart:`-${it}px`}:void 0,ct=(0,TA.useCallback)(()=>{Ke.current(),f?.(null),p&&ke(async()=>{je(void 0),await p(null)})},[f,p,ke,je]),lt=(0,TA.useCallback)(e=>{let t=De.current+e;De.current=t,Ee(t),Qe(t)},[Qe]),ut=(0,TA.useCallback)(e=>{f?.(e),p&&ke(async()=>{je(e),await p(e)})},[f,p,ke,je]),{highlightedIndex:dt,setHighlightedIndex:ft,getItemId:pt,onTriggerClick:mt,onKeyDown:ht,onItemSelect:gt,onItemMouseEnter:_t}=dO({selectableItems:He,value:Ae,isDisabled:s||pe,isOpen:qe.isOpen,hasSearch:E,onOpen:(0,TA.useCallback)(()=>qe.show(),[qe]),onClose:qe.hide,onSelect:ut,onClear:ue?ct:void 0,onSearchSeed:lt,listboxId:he}),vt=gw({getItemLabels:()=>Ve.map(e=>e.label??e.value),isDisabled:e=>Ve[e]?.disabled===!0,getCurrentIndex:()=>qe.isOpen?dt:Ue,onMatch:e=>{let t=Ve[e];qe.isOpen?ft(e):t.value!==Ae&&(ut(t.value),Ne(t.label??t.value))}});Ke.current=vt.reset;let yt=(0,TA.useCallback)(e=>{if(!(s||pe)){if(!E&&vt.onKeyDown(e)){e.preventDefault();return}ht(e)}},[s,pe,E,vt,ht]),bt=(0,TA.useCallback)(e=>{e.stopPropagation(),ct()},[ct]),B=(0,TA.useCallback)(()=>E?(0,EA.jsx)(YD,{ref:Ce,id:be,label:t(`@astryx.selector.searchOptions`),clearLabel:t(`@astryx.textInput.clearLabel`,{label:t(`@astryx.selector.searchOptions`)}),...V(`selector-search`),xstyle:qe.activePresentation===`popover`&&_!==`ghost`&&DA.searchRowInput,role:`combobox`,"aria-expanded":qe.isOpen,"aria-controls":he,"aria-autocomplete":`list`,"aria-activedescendant":qe.isOpen&&dt>=0?pt(dt):void 0,value:Te,onValueChange:$e,onContainerKeyDown:e=>{e.target!==Ce.current&&e.key===`Tab`&&!e.shiftKey&&ht(e)},onKeyDown:e=>{if(!Bn(e.nativeEvent)){if(e.key===`ArrowDown`||e.key===`ArrowUp`||e.key===`PageUp`||e.key===`PageDown`||e.key===`Enter`||e.key===`Escape`){ht(e);return}e.key===`Tab`&&(e.shiftKey||!Oe)&&ht(e)}},placeholder:se}):null,[E,be,he,Te,Oe,se,$e,ht,qe.isOpen,qe.activePresentation,dt,pt,_,t]),xt=CE(`check`),Ct=(0,TA.useCallback)((e,t)=>{let n=t===dt,r=e.value===L,i=(0,EA.jsx)(`span`,{className:`x3nfvp2 x6s0dn4 xl56j7k x2lah0s xgomdpo xjl7jj`,children:(0,EA.jsx)(xt,{state:r?`checked`:`unchecked`,size:`sm`,isDisabled:e.disabled??!1,...V(`selector-check`)})}),a=(0,EA.jsx)(`span`,{className:`x78zum5 x6s0dn4 x1txdalj x98rzlu xeuugli`,children:C?C(e):(0,EA.jsx)(xA,{option:e})}),o=T===`start`?(0,EA.jsxs)(EA.Fragment,{children:[i,a]}):(0,EA.jsxs)(EA.Fragment,{children:[a,i]});return(0,EA.jsx)(`div`,{id:pt(t),role:`option`,"aria-selected":r,"aria-disabled":e.disabled,onClick:()=>gt(e),onMouseEnter:()=>_t(e,t),...U(V(`selector-option-row`,{size:de,selected:r?`selected`:null,disabled:e.disabled?`disabled`:null}),z(DA.item,kA[de],n&&DA.itemHighlighted,r&&DA.itemSelected,e.disabled&&DA.itemDisabled)),children:o},e.value)},[C,T,dt,de,L,pt,gt,_t,xt]),wt=(0,TA.useCallback)(()=>{let e=E&&!!Te;if(He.length===0&&!m)return[(0,EA.jsx)(`div`,{role:`presentation`,...U(V(`selector-empty-state`),{className:`x1b2ylru x2b8uid xv1l7n4 x9ynric xcr08ib`}),children:e?le:ce},`empty`)];let t=0,n=[];for(let r=0;r<u.length;r++){let i=u[r];if(tO(i)){if(e)continue;n.push((0,EA.jsx)(VD,{"aria-hidden":`true`,xstyle:DA.divider},`divider-${r}`))}else if(nO(i)){let a=[];for(let n of i.options){let r=rO(n);(!e||SA(r,Te))&&(a.push(Ct(r,t)),t++)}if(a.length===0)continue;n.push((0,EA.jsxs)(`div`,{role:`group`,"aria-label":i.title,children:[i.title&&(0,EA.jsx)(`div`,{"aria-hidden":`true`,...U(V(`selector-section-heading`),{className:`xu0wf1k xf314gf x9ynric x141an7d x1ltkj2j xv1l7n4 x87ps6o`}),children:i.title}),a]},`section-${r}`))}else if(eO(i)){let r=rO(i);if(e&&!SA(r,Te))continue;n.push(Ct(r,t)),t++}}return n},[u,Ct,E,Te,He,m,ce,le]),Tt=v!=null&&fe!==`detached`,Et=v!=null&&fe===`tooltip`&&!!v.message,Ot=We&&w?(0,EA.jsx)(kO,{value:we?`inline`:`stacked`,children:(0,EA.jsx)(`span`,{...{0:{className:`x1iyjqo2 xeuugli xb3r6kr x1yc453h`},1:{className:`x1iyjqo2 xeuugli xb3r6kr x1yc453h xmz0i5r`}}[!!we<<0],children:w(We)})}):(0,EA.jsxs)(EA.Fragment,{children:[!x&&We?.icon!=null&&iu(We.icon,{size:`sm`,color:`secondary`}),(0,EA.jsx)(`span`,{className:`x1iyjqo2 xeuugli xb3r6kr xlyipyv xuxw1ft x1yc453h`,children:We?.label??oe})]}),kt=E?(0,EA.jsxs)(`div`,{children:[B(),(0,EA.jsx)(VD,{}),(0,EA.jsx)(`div`,{ref:Ge,id:he,role:`listbox`,"aria-labelledby":me,...{0:{className:`x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x7a5moj x1hc1fzr x1ey1afo`},1:{className:`x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x1hc1fzr x1ey1afo x2hg6jq`}}[(qe.activePresentation===`popover`&&_!==`ghost`)<<0],children:wt()})]}):(0,EA.jsx)(`div`,{ref:Ge,id:he,role:`listbox`,"aria-label":qe.activePresentation===`bottom-sheet`?n:void 0,"aria-labelledby":qe.activePresentation===`bottom-sheet`?void 0:me,"aria-activedescendant":qe.isOpen&&dt>=0?pt(dt):void 0,tabIndex:qe.activePresentation===`bottom-sheet`?0:void 0,onKeyDown:qe.activePresentation===`bottom-sheet`?yt:void 0,...{0:{className:`x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x7a5moj x1hc1fzr x1ey1afo`},2:{className:`x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x1hc1fzr x1ey1afo x2hg6jq`},1:{className:`x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x7a5moj xg01cxk xq2gx43`},3:{className:`x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x2hg6jq xg01cxk xq2gx43`}}[(qe.activePresentation===`popover`&&_!==`ghost`)<<1|!(qe.activePresentation!==`popover`||at)<<0],children:wt()}),At=null;qe.activePresentation===`bottom-sheet`?(!pe||qe.isSheetPresented)&&(At=(0,EA.jsx)(Yk,{isOpen:qe.isSheetOpen,onOpenChange:qe.onSheetOpenChange,finalFocusRef:Se,initialFocusRef:E?Ce:Ge,label:n,children:kt})):pe||(At=Je.render(kt,{placement:ot,alignment:`start`,offset:tt?void 0:St[`--spacing-1`],xstyle:[DA.popover,Vi[ot]],style:st}));let jt={...ie,id:me,"aria-describedby":Be,"aria-labelledby":ze,"aria-required":ae?`true`:void 0,"aria-invalid":v?.type===`error`?`true`:void 0,"aria-busy":Me||void 0,onKeyDown:yt,onFocus:e=>{ne?.(e),qe.onTriggerFocus(e)},tabIndex:s&&!Ie?-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`}}[!!pe<<1|!!we<<0]},Mt=(0,EA.jsxs)(EA.Fragment,{children:[(0,EA.jsxs)(`div`,{ref:e=>{xe.current=e,Je.triggerRef(e),Le.ref(e)},onClick:mt,"data-testid":N,...U(V(`selector`,{variant:_,size:de,status:v?.type??null,disabled:s?`disabled`:null,readonly:pe?`readonly`:null}),z(HE.base,DA.triggerContainer,OA[de],_===`ghost`&&DA.triggerGhost,_===`ghost`&&Iu.backgroundImage,_===`ghost`&&Ln.focusWithin,qe.isTriggerFocusRingSuppressed&&yA.pointerRestoredFocus,s&&HE.disabled,pe&&DA.triggerReadOnly,_===`ghost`&&s&&DA.triggerGhostDisabled,_===`ghost`&&pe&&DA.triggerGhostReadOnly,!We&&DA.triggerPlaceholder,_!==`ghost`&&v&&UE[v.type],_!==`ghost`&&v&&!s&&WE[v.type],_!==`ghost`&&we&&iD.inGroup,we&&DA.triggerInGroup,P),te,F),children:[x&&iu(x,{size:`sm`,color:`secondary`}),we&&(0,EA.jsx)(du,{id:ve,children:n}),pe&&(0,EA.jsx)(du,{id:ye,children:t(`@astryx.input.readOnly`)}),(0,EA.jsx)(`button`,{...jt,ref:Se,type:`button`,role:pe||!E?`combobox`:void 0,"aria-haspopup":pe?void 0:qe.activePresentation===`bottom-sheet`?`dialog`:`listbox`,"aria-expanded":!pe&&qe.isOpen,"aria-controls":pe?void 0:he,"aria-readonly":pe||void 0,"aria-activedescendant":!pe&&!E&&qe.isOpen&&dt>=0?pt(dt):void 0,disabled:s&&!Ie,"aria-disabled":Ie?`true`:void 0,children:Ot}),S!=null&&(0,EA.jsx)(`input`,{type:`hidden`,name:S,value:d??``,disabled:s}),Me&&(0,EA.jsx)(Kb,{size:`sm`}),ue&&d!=null&&!s&&!pe&&(0,EA.jsx)(YE,{...Ze,label:t(`@astryx.selector.clearLabel`,{label:n}),onClick:bt,iconClassName:Dt(`selector-clear-icon`)}),Tt?Et?(0,EA.jsx)(`button`,{ref:Re.ref,type:`button`,"aria-label":t(MA[v.type]),"aria-describedby":Re.describedBy,...Ze,onClick:e=>e.stopPropagation(),...z(Ln.focusVisible,DA.statusButton),children:(0,EA.jsx)(nu,{icon:AA[v.type],size:`sm`,color:jA[v.type],xstyle:DA.triggerIcon})}):(0,EA.jsx)(nu,{icon:AA[v.type],size:`sm`,color:jA[v.type],xstyle:DA.triggerIcon}):pe?null:(0,EA.jsx)(nu,{icon:`chevronDown`,size:`sm`,color:`secondary`,xstyle:[DA.triggerIcon,DA.triggerIconRotation,qe.isOpen&&DA.triggerIconOpen],...V(`selector-indicator-icon`,{state:qe.isOpen?`expanded`:`collapsed`})})]}),At,Et&&Re.renderTooltip(v?.message??``),Ie&&Le.renderTooltip(l)]});return we?Mt:(0,EA.jsx)(IE,{label:n,isLabelHidden:r,description:i,inputID:me,descriptionID:i?ge:void 0,isOptional:a,isRequired:o,isDisabled:s,status:v?{type:v.type,message:v.message,messageID:v.message?_e:void 0}:void 0,statusVariant:fe,labelTooltip:b,width:ee,children:Mt})}var TA,EA,DA,OA,kA,AA,jA,MA,NA=o((()=>{TA=u(f(),1),B(),uu(),lu(),TE(),$E(),JD(),Hi(),Ei(),QE(),ox(),$D(),nw(),Et(),aO(),mO(),vw(),$T(),PO(),AO(),W(),hx(),H(),zn(),Lu(),Pt(),aD(),rD(),mu(),Ef(),eA(),vA(),bA(),EA=G(),DA={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`,$$css:!0},triggerGhostDisabled:{kKwaWg:`x18o3ruo`,k3aq6I:`x1c071of x1pdlv7q`,$$css:!0},triggerReadOnly:{kkrTdU:`xt0e3qv`,$$css:!0},triggerGhostReadOnly:{kKwaWg:`x18o3ruo`,k3aq6I:`x1c071of x1pdlv7q`,$$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}},OA={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}},kA={sm:{k8WAf4:`xu0wf1k`,kg3NbH:`xf314gf`,$$css:!0},md:{k8WAf4:`x1vofgu7`,$$css:!0},lg:{$$css:!0}},AA={warning:`warning`,error:`error`,success:`success`},jA={warning:`warning`,error:`error`,success:`success`},MA={warning:`@astryx.input.statusButton.warning`,error:`@astryx.input.statusButton.error`,success:`@astryx.input.statusButton.success`},wA.displayName=`Selector`})),PA=o((()=>{NA(),PO(),mO()}));function FA({label:e,isLabelHidden:t=!1,description:n,isOptional:r=!1,isRequired:i=!1,onChange:a,changeAction:o,isLoading:s=!1,value:c,placeholder:l,rows:u=3,isDisabled:d=!1,isReadOnly:f=!1,disabledMessage:p,status:m,statusVariant:h=`attached`,labelTooltip:g,startIcon:_,hasSpellCheck:v=!0,onPaste:y,maxLength:b,hasAutoFocus:x=!1,size:S,htmlName:C,onFocus:w,onBlur:T,width:E,xstyle:D,className:O,style:k,ref:A,...j}){let M=dx(S,`md`),N=bf(),ee=ZT({isRequired:i,isOptional:r}),P=YC(),te=(0,IA.useId)(),F=(0,IA.useId)(),ne=(0,IA.useId)(),I=(0,IA.useId)(),re=(0,IA.useRef)(null),ie=(0,IA.useRef)(null),ae=(0,IA.useRef)(null),[,oe]=(0,IA.useTransition)(),[se,ce]=(0,IA.useOptimistic)(c),le=s||se!==c,ue=d&&!!p,de=va({placement:`above`,focusTrigger:`always`,isEnabled:ue}),{statusIcon:fe,describedBy:pe}=yT({status:m,statusVariant:h}),L=[n?F:null,h!==`tooltip`&&m?.message?ne:null,pe,b==null?null:I,ue?de.describedBy:null].filter(Boolean).join(` `)||void 0,R=(0,IA.useCallback)(e=>{if(b==null)return;let t=e>b?`over`:e>=b*RA?`near`:`under`;t!==ae.current&&(ae.current=t,t===`over`?P(N(`@astryx.textArea.charactersOverLimit`,{count:e-b}),`assertive`):t===`near`&&P(N(`@astryx.textArea.charactersRemaining`,{count:b-e})))},[P,N,b]),me=e=>{if(d||f)return;let t=e.target.value;b!=null&&R(Gt(t)),a?.(t,e),o&&!e.defaultPrevented&&oe(async()=>{ce(t),await o(t,e)})},he=(0,IA.useMemo)(()=>b==null?0:Gt(se),[b,se]),{onClick:ge,onMouseUp:_e}=mT({containerRef:ie,inputRef:re,disabled:d||le});return(0,LA.jsxs)(IE,{label:e,isLabelHidden:t,description:n,inputID:te,descriptionID:n?F:void 0,isOptional:r,isRequired:i,isDisabled:d,status:m?{type:m.type,message:m.message,messageID:m.message?ne:void 0}:void 0,statusVariant:h,labelTooltip:g,width:E,children:[(0,LA.jsxs)(`div`,{ref:e=>{ie.current=e,de.ref(e)},onClick:ge,onMouseUp:_e,...U(V(`text-area`,{size:M,status:m?.type??null,disabled:d?`disabled`:null,readonly:f?`readonly`:null},{legacyNames:[`textarea`]}),z(HE.base,zA.wrapper,d&&HE.disabled,m&&UE[m.type],m&&!d&&WE[m.type],m&&GE[m.type],D),O,k),children:[_&&(0,LA.jsx)(`span`,{className:`x10l6tqk xctzyg x1kiyvbf x47corl x78zum5`,children:iu(_,{size:`sm`,color:`secondary`})}),(0,LA.jsx)(`textarea`,{...j,ref:yr(A,re),id:te,name:d?void 0:C,value:se,onChange:me,onPaste:y,onFocus:w,onBlur:T,placeholder:l,rows:u,disabled:d&&!ue,"aria-disabled":ue?`true`:void 0,readOnly:f||ue||void 0,spellCheck:v,autoFocus:x,"data-autofocus":x||void 0,"aria-describedby":L,"aria-required":ee?`true`:void 0,"aria-invalid":m?.type===`error`||b!=null&&he>b?`true`:void 0,"aria-busy":le||void 0,...U(V(`text-area-control`),z(zA.textarea,BA[M],d&&zA.textareaDisabled,!!_&&zA.textareaWithStartIcon,(le||fe!=null)&&zA.textareaWithStatus,le&&fe!=null&&zA.textareaWithBusyStatus,b!=null&&zA.textareaWithCounter))}),(le||fe)&&(0,LA.jsxs)(`span`,{className:`x10l6tqk xctzyg x13oyzgk x47corl x78zum5 x6s0dn4 x1txdalj`,children:[le&&(0,LA.jsx)(Kb,{size:`sm`}),fe]}),b!=null&&(0,LA.jsxs)(`div`,{id:I,...U(V(`text-area-counter`),{0:{className:`x10l6tqk x112dmjn x13oyzgk x47corl x78zum5 x6s0dn4 xzye2dw x9ynric x141an7d x1ltkj2j xv1l7n4`},1:{className:`x10l6tqk x112dmjn x13oyzgk x47corl x78zum5 x6s0dn4 xzye2dw x9ynric x141an7d x1ltkj2j xjt36v0`}}[(he>b)<<0]),children:[he>b&&(0,LA.jsx)(nu,{icon:`warning`,size:`sm`}),he,`/`,b]})]}),ue&&de.renderTooltip(p)]})}var IA,LA,RA,zA,BA,VA=o((()=>{IA=u(f(),1),B(),$E(),lu(),ox(),uu(),W(),vT(),TT(),nw(),$T(),hx(),H(),Jt(),Ef(),xr(),LA=G(),RA=.8,zA={wrapper:{kY2c9j:`x1vjfegm`,k1xSpc:`x1lliihq`,k8WAf4:`xt970qd`,kg3NbH:`xnjsko4`,"--_textarea-inline-padding":`x1kdpo6e`,$$css:!0},textarea:{k1xSpc:`x1lliihq`,kzqmXN:`xh8yej3`,kB7OPa:`x9f619`,k7Eaqz:`xeuugli`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,k8WAf4:`xu0wf1k`,kg3NbH:`x1w6f3ag`,kMv6JI:`x9ynric`,kGuDYH:`xjm74w1 xf9zqsd`,kLWn49:`xw6l6zx`,kMwMTN:`x1tgivj0`,kWkggS:`xjbqb8w`,kI3sdo:`x1a2a7pz`,k8Qsv1:`xeyghm5`,kHenm0:`x288g5`,$$css:!0},textareaDisabled:{kkrTdU:`xt0e3qv`,$$css:!0},textareaWithStartIcon:{kZCmMZ:`x1b6te9z`,$$css:!0},textareaWithStatus:{kwRFfy:`xp2dy4z`,$$css:!0},textareaWithBusyStatus:{kwRFfy:`x1g2apga`,$$css:!0},textareaWithCounter:{kGO01o:`xekm6fs`,$$css:!0}},BA={sm:{$$css:!0},md:{$$css:!0},lg:{k8WAf4:`xce4md1`,$$css:!0}},FA.displayName=`TextArea`})),HA=o((()=>{VA()}));function UA({type:e=`text`,label:t,isLabelHidden:n=!1,description:r,isOptional:i=!1,isRequired:a=!1,isDisabled:o=!1,isReadOnly:s=!1,disabledMessage:c,startIcon:l,status:u,statusVariant:d=`attached`,size:f,onChange:p,changeAction:m,isLoading:h=!1,value:g,placeholder:_,labelTooltip:v,hasClear:y=!1,hasAutoFocus:b=!1,htmlName:x,onEnter:S,onKeyDown:C,width:w,xstyle:T,className:E,style:D,ref:O,...k}){let A=bf(),j=ZT({isRequired:a,isOptional:i}),M=dx(f,`md`),N=(0,WA.useId)(),ee=(0,WA.useId)(),P=(0,WA.useId)(),te=(0,WA.useId)(),F=(0,WA.useRef)(null),ne=(0,WA.useRef)(null),I=eD(),[,re]=(0,WA.useTransition)(),[ie,ae]=(0,WA.useOptimistic)(g),oe=h||ie!==g,se=o&&!!c,ce=va({placement:`above`,focusTrigger:`always`,isEnabled:se}),{statusIcon:le,describedBy:ue}=yT({status:u,statusVariant:d,isInGroup:!!I}),{ariaLabelledBy:de,ariaDescribedBy:fe}=mn(ee,[r?P:null,!I&&d!==`tooltip`&&u?.message?te:null,ue,se?ce.describedBy:null],I),pe=e=>{if(o||s)return;let t=e.target.value;p?.(t,e),m&&!e.defaultPrevented&&re(async()=>{ae(t),await m(t,e)})},L=(0,WA.useCallback)(e=>{p?.(``,null),!e||e.detail===0?F.current?.focus():requestAnimationFrame(()=>{F.current?.focus({preventScroll:!0})})},[p]),{onClick:R,onMouseUp:me}=mT({containerRef:ne,inputRef:F,disabled:o}),he=(0,GA.jsxs)(`div`,{ref:e=>{ne.current=e,ce.ref(e)},onClick:R,onMouseUp:me,...U(V(`text-input`,{size:M,status:u?.type??null,disabled:o?`disabled`:null,readonly:s?`readonly`:null}),z(HE.base,KA[M],o&&HE.disabled,u&&UE[u.type],u&&!o&&WE[u.type],u&&GE[u.type],I&&iD.inGroup,T),E,D),children:[l&&iu(l,{size:`sm`,color:`secondary`}),I&&(0,GA.jsx)(du,{id:ee,children:t}),(0,GA.jsx)(`input`,{...k,ref:yr(O,F),id:N,name:o?void 0:x,type:e,value:ie,onChange:pe,onKeyDown:S||C?e=>{e.key===`Enter`&&!Bn(e.nativeEvent)&&S?.(),C?.(e)}:void 0,placeholder:_,disabled:o&&!se,"aria-disabled":se?`true`:void 0,readOnly:s||se||void 0,autoFocus:b,"data-autofocus":b||void 0,"aria-describedby":fe,"aria-required":j?`true`:void 0,"aria-invalid":u?.type===`error`?`true`:void 0,"aria-busy":oe||void 0,"aria-labelledby":de,...{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`}}[!!o<<0]}),y&&g!==``&&!o&&!s&&(0,GA.jsx)(JE,{label:A(`@astryx.textInput.clearLabel`,{label:t}),onClick:L}),oe&&(0,GA.jsx)(Kb,{size:`sm`}),le]});return I?(0,GA.jsxs)(GA.Fragment,{children:[he,se&&ce.renderTooltip(c)]}):(0,GA.jsxs)(IE,{label:t,isLabelHidden:n,description:r,inputID:N,descriptionID:r?P:void 0,isOptional:i,isRequired:a,isDisabled:o,status:u?{type:u.type,message:u.message,messageID:u.message?te:void 0}:void 0,statusVariant:d,labelTooltip:v,width:w,children:[he,se&&ce.renderTooltip(c)]})}var WA,GA,KA,qA=o((()=>{WA=u(f(),1),B(),$E(),lu(),ox(),uu(),mu(),W(),aD(),hx(),vT(),TT(),$T(),rD(),H(),Ef(),xr(),GA=G(),KA={sm:{kZKoxP:`x6k0iem`,$$css:!0},md:{kZKoxP:`x1ueg155`,$$css:!0},lg:{kZKoxP:`xssyfek`,$$css:!0}},UA.displayName=`TextInput`})),JA=o((()=>{qA()}));function YA({label:e,name:t,initialValue:n=``,type:r=`text`,required:i=!1,maxLength:a,placeholder:o,description:s,isReadOnly:c,autoComplete:l,width:u}){let[d,f]=(0,ej.useState)(n);return(0,ej.useEffect)(()=>f(n),[n]),(0,tj.jsx)(UA,{label:e,htmlName:t,value:d,onChange:f,type:r,isRequired:i,required:i,maxLength:a,placeholder:o,description:s,isReadOnly:c,autoComplete:l,width:u})}function XA({label:e,name:t,initialValue:n=``,required:r=!1,placeholder:i,width:a}){let[o,s]=(0,ej.useState)(n),c=(0,ej.useRef)(null);(0,ej.useEffect)(()=>s(n),[n]);let l=(0,ej.useCallback)(()=>{let e=c.current;e&&(e.style.height=`auto`,e.value&&(e.style.height=`${e.scrollHeight}px`))},[]);return(0,ej.useLayoutEffect)(l,[o,l]),(0,ej.useLayoutEffect)(()=>{let e=c.current;if(!e)return;let t=e.clientWidth,n=new ResizeObserver(()=>{e.clientWidth!==t&&(t=e.clientWidth,l())});return n.observe(e),()=>n.disconnect()},[l]),(0,tj.jsx)(FA,{ref:c,className:`void-admin-autogrow-textarea`,label:e,htmlName:t,value:o,onChange:s,isRequired:r,required:r,placeholder:i,rows:1,width:a})}function ZA({label:e,name:t,options:n,initialValue:r,width:i,hasSearch:a=!1}){let[o,s]=(0,ej.useState)(r);return(0,ej.useEffect)(()=>s(r),[r]),(0,tj.jsx)(wA,{label:e,htmlName:t,options:n,value:o,onChange:s,width:i,hasSearch:a})}function QA({label:e,name:t,submitValue:n,initialValue:r=!1}){let[i,a]=(0,ej.useState)(r);return(0,ej.useEffect)(()=>a(r),[r]),(0,tj.jsxs)(tj.Fragment,{children:[(0,tj.jsx)(OE,{label:e,value:i,onChange:a}),i&&(0,tj.jsx)(`input`,{type:`hidden`,name:t,value:n})]})}function $A({label:e,name:t,width:n,initialValue:r=null,min:i=1,max:a,required:o=!1}){let[s,c]=(0,ej.useState)(r);return(0,ej.useEffect)(()=>c(r),[r]),(0,tj.jsx)(AD,{label:e,htmlName:t,value:s,onChange:c,min:i,max:a,isRequired:o,required:o,isIntegerOnly:!0,hasClear:!0,width:n})}var ej,tj,nj=o((()=>{FE(),BD(),PA(),HA(),JA(),ej=u(f(),1),tj=G()}));function rj(){return(0,ij.use)(oj)}var ij,aj,oj,sj=o((()=>{ij=u(f(),1),aj={isMobile:!1,isMobileNavOpen:!1,toggleMobileNav:()=>{},openMobileNav:()=>{},closeMobileNav:()=>{},isMobileNavEnabled:!1,hasAutoToggle:!0},oj=(0,ij.createContext)(aj),oj.displayName=`AppShellMobileContext`}));function cj({ref:e,children:t,label:n,"data-testid":r,xstyle:i,className:a,style:o}){let s=bf(),c=n??s(`@astryx.mobileNav.toggle.open`),{isMobile:l,isMobileNavEnabled:u,isMobileNavOpen:d,mobileNavId:f,toggleMobileNav:p}=rj();return!l||!u?null:(0,lj.jsx)(Y,{ref:e,variant:`ghost`,label:c,icon:t??(0,lj.jsx)(nu,{icon:`menu`,color:`inherit`}),onClick:p,"aria-expanded":d,"aria-controls":f||void 0,"data-testid":r??`mobile-nav-toggle`,xstyle:i,className:a,style:o,isIconOnly:!0})}var lj,uj=o((()=>{f(),jx(),lu(),sj(),Ef(),lj=G(),cj.displayName=`MobileNavToggle`}));function dj(){return(0,fj.use)(pj)}var fj,pj,mj=o((()=>{fj=u(f(),1),pj=(0,fj.createContext)(`default`),pj.displayName=`SideNavRenderContext`}));function hj(){return(0,gj.use)(_j)}var gj,_j,vj=o((()=>{gj=u(f(),1),_j=(0,gj.createContext)(`default`),_j.displayName=`TopNavRenderContext`}));function yj(){return(0,bj.use)(xj)}var bj,xj,Sj=o((()=>{bj=u(f(),1),xj=(0,bj.createContext)(null),xj.displayName=`TopNavMobileContentContext`}));function Cj({variant:e=`elevated`,banner:t,children:n,contentPadding:r,"data-testid":i,height:a=`fill`,mobileNav:o,sideNav:s,topNav:c,xstyle:l,className:u,style:d,ref:f,...p}){let m=bf(),h=Nl(),g=o===!1,_=o!=null&&o!==!1&&typeof o==`object`&&!(0,Tj.isValidElement)(o)?o:null,v=_?.breakpoint??`md`,y=o!=null&&o!==!1&&((0,Tj.isValidElement)(o)||typeof o==`string`)?o:null,b=_?.content??null,x=_?.hasToggle!==!1,S=_?.isOpen!==void 0,C=h?.__adaptations?.widthBreakpoints,w=Sl(v===`none`?`(width < 0px)`:`(width < ${C?.[v]??Qs[v]}px)`,v!==`none`&&_?.defaultIsMobile),[T,E]=(0,Tj.useState)(!1),D=_?.isOpen??T,O=_?.onOpenChange,k=(0,Tj.useCallback)(e=>{S||E(e),O?.(e)},[S,O]),A=(0,Tj.useCallback)(()=>{document.getElementById(Oj)?.focus()},[]),j=a===`fill`,M=a===`auto`,N=dn(t),ee=dn(c),P=dn(s),te=!g&&(ee||P)&&y==null,F=e===`section`,ne=e===`elevated`,I=e===`wash`||e===`elevated`?kj.navAreaWash:e===`surface`?kj.navAreaSurface:void 0,re=I??(M&&e===`section`?kj.navAreaSurface:void 0),ie=e===`wash`?kj.contentBgWash:e===`elevated`&&ee&&P&&!w?kj.contentBgTransparent:e===`surface`||e===`elevated`?kj.contentBgSurface:void 0,ae=I??kj.navAreaSurface,oe=(0,Tj.useRef)(null),se=(0,Tj.useRef)(null);(0,Tj.useEffect)(()=>{if(!M||!oe.current||!se.current)return;let e=oe.current,t=se.current,n=()=>{let n=e.getBoundingClientRect().height;t.style.setProperty(`--_app-shell-header-height`,`${n}px`)};return on(e,()=>n())},[M]);let ce=P&&!w,le=y!=null,ue=te&&b!=null&&w,de=(0,Tj.useId)(),fe=(0,Tj.useMemo)(()=>({isMobile:w,isMobileNavOpen:D,mobileNavId:de,toggleMobileNav:()=>te&&k(!D),openMobileNav:()=>te&&k(!0),closeMobileNav:()=>k(!1),isMobileNavEnabled:te,hasAutoToggle:x}),[w,D,de,k,te,x]),pe=P&&x?(0,Ej.jsx)(pj,{value:`drawer-content`,children:s}):null,L=P?(0,Ej.jsx)(pj,{value:`drawer-content`,children:s}):null,R=ee?w&&!g&&y==null?(0,Ej.jsx)(xj,{value:pe,children:(0,Ej.jsx)(_j,{value:`mobile-bar`,children:c})}):c:null,me=ee||N?(0,Ej.jsxs)(iC,{padding:0,hasDivider:F&&ee,children:[N&&(0,Ej.jsx)(`div`,{...z(kj.banner,I),children:t}),ee&&R]}):void 0,he=dn(me)?(0,Ej.jsx)(`div`,{ref:oe,role:`banner`,...U(V(`app-shell-header`,{variant:e}),z(re,M&&kj.headerSticky)),children:me}):void 0,ge=ce?(0,Ej.jsx)(xC,{padding:0,hasDivider:F,isScrollable:j,...V(`app-shell-sidenav`,{variant:e}),xstyle:[I,M&&ae,M&&kj.panelAutoFill],children:s}):void 0,_e=ge!=null&&M?(0,Ej.jsx)(`div`,{className:`x2lah0s x7giv3 x7wzq59 xht72ud xpa73km x78zum5 xdt5ytf`,children:ge}):ge,ve=ne&&ee&&ce,ye=(0,Ej.jsx)(gC,{padding:r??0,role:`main`,id:Oj,tabIndex:-1,isScrollable:j,xstyle:[ie,kj.mainFocusTarget],children:n}),be=ve?(0,Ej.jsxs)(`div`,{className:`x1n2onr6 x78zum5 x98rzlu x2lwn1j x5yr21d`,children:[(0,Ej.jsx)(`div`,{className:`x10l6tqk x10a8y8t x10xzikg x183tx6i x47corl`}),ye]}):ye,xe=!g&&x&&w&&!ee&&P?(0,Ej.jsx)(`div`,{role:he==null?`banner`:void 0,...U(V(`app-shell-header`,{variant:e}),z(re,M&&kj.headerSticky)),children:(0,Ej.jsx)(iC,{padding:0,hasDivider:F,children:(0,Ej.jsxs)(`div`,{className:`x78zum5 x6s0dn4 x1k15mir xf314gf`,role:`navigation`,"aria-label":m(`@astryx.appShell.mobileNavigation`),children:[(0,Ej.jsx)(pj,{value:`topbar`,children:s}),(0,Ej.jsx)(cj,{})]})})}):void 0;return(0,Ej.jsx)(oj,{value:fe,children:(0,Ej.jsxs)(`div`,{...p,ref:yr(f,se),"data-testid":i,...U(V(`app-shell`,{variant:e}),z(kj.root,e===`wash`?kj.variantWash:e===`surface`?kj.variantSurface:e===`section`?kj.variantSection:kj.variantElevated,j?kj.rootFill:kj.rootAuto,l),u,d),children:[(0,Ej.jsx)(`a`,{href:`#${Oj}`,onClick:A,...Rn.focusVisible(kj.skipLink),"data-testid":`skip-to-content`,children:m(`@astryx.appShell.skipToContent`)}),(0,Ej.jsx)(XS,{height:a,padding:0,header:(0,Ej.jsxs)(Ej.Fragment,{children:[he,xe]}),start:_e,content:be}),le&&y,ue&&b,w&&!g&&y==null&&!b&&(0,Ej.jsxs)(Dj,{mode:D?`visible`:`hidden`,children:[P&&!ee&&(0,Ej.jsx)(pj,{value:`drawer`,children:s}),ee&&(0,Ej.jsx)(xj,{value:L,children:(0,Ej.jsx)(_j,{value:`drawer`,children:c})})]})]})})}var wj,Tj,Ej,Dj,Oj,kj,Aj=o((()=>{wj=u(f(),1),Tj=u(f(),1),B(),rC(),lC(),EC(),bC(),uj(),mj(),vj(),Sj(),sj(),W(),zn(),wl(),un(),H(),Ef(),Rl(),oc(),xr(),Ej=G(),Dj=wj.Activity===void 0?({children:e})=>(0,Ej.jsx)(Ej.Fragment,{children:e}):({mode:e,children:t})=>(0,Ej.jsx)(wj.Activity,{mode:e,children:t}),Oj=`astryx-app-shell-main`,kj={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}},Cj.displayName=`AppShell`})),jj=o((()=>{Aj(),sj()}));function Mj(){return(0,Nj.use)(Pj)}var Nj,Pj,Fj,Ij=o((()=>{Nj=u(f(),1),Ar(),Pj=Tr(null),Pj.displayName=`DropdownMenuContext`,Fj=(0,Nj.createContext)(null),Fj.displayName=`DropdownMenuRadioGroupContext`}));function Lj(e,t){if(t||e.pointerType!==`mouse`)return;let n=e.currentTarget;n!==n.ownerDocument.activeElement&&n.focus({preventScroll:!0})}var Rj=o((()=>{}));function zj({icon:e,label:t,description:n,onClick:r,isDisabled:i=!1,endContent:a,hasCloseOnSelect:o=!0,variant:s=`default`,xstyle:c,className:l,style:u,ref:d}){let f=Mj(),p=f?.menuSize??`md`,m=(0,Bj.useCallback)(()=>{i||(r?.(),o&&f?.closeMenu())},[i,r,o,f]),h=(0,Bj.useCallback)(e=>Lj(e,i),[i]),g=s===`destructive`;return(0,Vj.jsx)(vO,{ref:d,role:`menuitem`,tabIndex:i?void 0:-1,onPointerMove:h,startContent:e?iu(e,{size:`sm`,color:g?`error`:`secondary`}):void 0,label:t,description:n,endContent:a,onClick:m,isDisabled:i,xstyle:[Hj.root,Uj[p],g&&Hj.destructive,i&&Hj.disabled,c],...U(V(`dropdown-menu-item`,{size:p,variant:g?`destructive`:null}),{className:l,style:u})})}var Bj,Vj,Hj,Uj,Wj=o((()=>{Bj=u(f(),1),lu(),EO(),W(),Ij(),Rj(),H(),Vj=G(),Hj={root:{kB7OPa:`x9f619`,kzqmXN:`xh8yej3`,k8WAf4:`xce4md1`,kg3NbH:`xf314gf`,kaIpWk:`x1ws5lxm`,kMv6JI:`x9ynric`,kGuDYH:`xcr08ib`,kMwMTN:`x1tgivj0`,kWkggS:`xjbqb8w x1c52tdz x1anq1lc`,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}},Uj={sm:{k8WAf4:`xu0wf1k`,kg3NbH:`xf314gf`,$$css:!0},md:{k8WAf4:`x1vofgu7`,$$css:!0},lg:{$$css:!0}},zj.displayName=`DropdownMenuItem`}));function Gj({xstyle:e,className:t,style:n,ref:r}){return(0,Kj.jsx)(VD,{ref:r,xstyle:[qj.divider,e],className:t?`${Jj} ${t}`:Jj,style:n})}var Kj,qj,Jj,Yj=o((()=>{JD(),H(),Kj=G(),qj={divider:{kqGvvJ:`xsq74q5`,$$css:!0}},Jj=V(`dropdown-menu-divider`).className,Gj.displayName=`DropdownMenuDivider`}));function Xj(e){let{show:t,hide:n,isOpen:r,isEnabled:i,showDelay:a=150,hideDelay:o=200,clickGuardMs:s=Qj,itemSelector:c,popoverId:l,ownsFocus:u=!0}=e,d=Sl(`(hover: hover)`),f=(0,Zj.useRef)(null),p=(0,Zj.useRef)(null),m=(0,Zj.useRef)(null),h=(0,Zj.useRef)(!1),g=(0,Zj.useRef)(0),_=(0,Zj.useRef)(0),v=(0,Zj.useRef)(r);Cr(()=>{let e=v.current;v.current=r,e&&!r&&(h.current=!1,_.current=0,g.current=Date.now())},[r]);let y=(0,Zj.useCallback)(()=>{f.current&&=(clearTimeout(f.current),null),p.current&&=(clearTimeout(p.current),null)},[]),b=(0,Zj.useRef)(()=>{}),{listRef:x,handleKeyDown:S,focusFirst:C}=dw({itemSelector:c,onEscape:()=>b.current()}),w=(0,Zj.useCallback)(()=>{let e=x.current?.contains(document.activeElement)??!1;n(),e&&m.current?.focus()},[n,x]);(0,Zj.useEffect)(()=>{b.current=()=>{y(),w()}},[y,w]),(0,Zj.useEffect)(()=>()=>y(),[y]);let T=(0,Zj.useCallback)(()=>{C()||x.current?.focus()},[C,x]),E=(0,Zj.useCallback)(()=>{if(!u){t();return}t({skipAutoFocus:!0}),T()},[u,t,T]),D=(0,Zj.useCallback)(()=>s>0&&_.current>0&&Date.now()-_.current<s&&(h.current=!1,_.current=0,!0),[s]),O=(0,Zj.useCallback)(e=>{if(l&&e?.preventDefault(),y(),e!=null&&e.detail===0){g.current=0,h.current=!1,_.current=0,r?u&&T():E();return}if(!r){g.current=0,h.current=!1,_.current=0,E();return}if(D()){u&&T();return}w()},[l,y,r,u,D,E,T,w]),k=(0,Zj.useCallback)(()=>{if(!d||g.current>0&&Date.now()-g.current<$j)return;if(r){y();return}h.current=!0,y();let e=()=>{_.current=Date.now(),t({skipAutoFocus:!0})};a>0?f.current=setTimeout(e,a):e()},[d,r,y,t,a]),A=(0,Zj.useCallback)(()=>{g.current=0,h.current&&(y(),p.current=setTimeout(()=>{n()},o))},[y,n,o]),j=(0,Zj.useCallback)(()=>{y()},[y]),M=(0,Zj.useCallback)(e=>{m.current=e},[]),N=(0,Zj.useCallback)(()=>{},[]),ee=(0,Zj.useCallback)(e=>{},[]),P=(0,Zj.useCallback)(e=>{},[]);return i?{triggerProps:{onClick:O,onMouseEnter:k,onMouseLeave:A,...l?{popoverTarget:l}:null},contentProps:{onMouseEnter:j,onMouseLeave:A,onKeyDown:S},menuRef:x,focusFirst:C,focusMenu:T,confirmHoverOpen:D,close:w,setTriggerEl:M}:{triggerProps:{onClick:N,onMouseEnter:N,onMouseLeave:N},contentProps:{onMouseEnter:N,onMouseLeave:N,onKeyDown:P},menuRef:x,focusFirst:C,focusMenu:T,confirmHoverOpen:D,close:w,setTriggerEl:ee}}var Zj,Qj,$j,eM=o((()=>{Zj=u(f(),1),wr(),mw(),wl(),Qj=500,$j=300}));function tM(e,t,n){let[r,i]=(0,nM.useState)(!1),a=(0,nM.useCallback)(()=>{let t=e.current;if(!t)return;let n=t.scrollHeight>t.clientHeight+1;i(e=>e===n?e:n)},[e]);return Cr(()=>{if(!n)return;let t=e.current;if(!t)return;a();let r=typeof ResizeObserver>`u`?null:new ResizeObserver(a),i=typeof MutationObserver>`u`?null:new MutationObserver(a);return r?.observe(t),i?.observe(t,{childList:!0,characterData:!0,subtree:!0}),t.addEventListener(`load`,a,!0),window.addEventListener(`resize`,a),window.visualViewport?.addEventListener(`resize`,a),()=>{r?.disconnect(),i?.disconnect(),t.removeEventListener(`load`,a,!0),window.removeEventListener(`resize`,a),window.visualViewport?.removeEventListener(`resize`,a)}},[n,a,e]),Cr(()=>{n&&a()},[t,n,a]),r}var nM,rM=o((()=>{nM=u(f(),1),wr()}));function iM(e,t){if(typeof e==`number`)return{property:`minWidth`,value:`min(${e}px, ${t})`};let n=e.trim(),r=n.toLowerCase();return aM.has(r)||r.startsWith(`fit-content(`)?{property:`inlineSize`,value:n}:{property:`minWidth`,value:`min(${n}, ${t})`}}var aM,oM=o((()=>{aM=new Set([`auto`,`contain`,`fit-content`,`inherit`,`initial`,`max-content`,`min-content`,`revert`,`revert-layer`,`stretch`,`unset`])})),sM,cM,lM,uM=o((()=>{sM=new Set([`menuitem`,`menuitemradio`,`menuitemcheckbox`]),cM=[...sM].map(e=>`[role="${e}"]:not([aria-disabled="true"])`).join(`,`),lM=`[role="menu"]`}));function dM(e){let{icon:t,label:n,description:r,isDisabled:i=!1,hasSpinner:a=!1,menuWidth:o,onOpenChange:s,children:c,xstyle:l,className:u,style:d,"data-testid":f,menuDataTestId:p}=e,m=Mj(),h=m?.menuSize??`md`,g=!i,_=(0,fM.useId)(),v=(0,fM.useId)(),y=(0,fM.useRef)(null),[b,x]=(0,fM.useState)(!1),S=bi({mode:`context`,lightDismiss:!1,onShow:(0,fM.useCallback)(()=>{x(!0),s?.(!0)},[s]),onHide:(0,fM.useCallback)(()=>{x(!1),s?.(!1)},[s])}),C=(0,fM.useCallback)(()=>{g&&S.show()},[g,S]),w=(0,fM.useCallback)(()=>{S.hide()},[S]),{listRef:T,handleKeyDown:E,focusFirst:D,focusItem:O,ownsEvent:k,getItems:A}=dw({itemSelector:cM,boundarySelector:lM,wrap:!1,onEscape:()=>F({focusTrigger:!0})}),j=tM(T,c,b),M=gw({getItemLabels:()=>A().map(e=>e.textContent),onMatch:O,getCurrentIndex:()=>A().findIndex(e=>e===document.activeElement||e.contains(document.activeElement))}),{triggerProps:N,contentProps:ee,confirmHoverOpen:P}=Xj({show:C,hide:w,isOpen:b,isEnabled:g}),te=(0,fM.useCallback)(e=>{g&&(S.show(),e?.focusFirst&&(D()||T.current?.focus()))},[g,S,D,T]),F=(0,fM.useCallback)(e=>{S.hide(),e?.focusTrigger!==!1&&y.current?.focus()},[S]),ne=(0,fM.useCallback)(e=>{y.current=e,S.ref(e)},[S]),I=(0,fM.useCallback)(()=>{if(!i){if(b){if(P()){D()||T.current?.focus();return}F({focusTrigger:!0})}else te({focusFirst:!0})}},[i,b,te,F,P,D,T]),re=(0,fM.useCallback)(e=>{if(i)return;let t=typeof window<`u`&&y.current&&window.getComputedStyle(y.current).direction===`rtl`?`ArrowLeft`:`ArrowRight`;(e.key===t||e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),te({focusFirst:!0}))},[i,te]),ie=(0,fM.useCallback)(e=>Lj(e,i),[i]),ae=(0,fM.useCallback)(e=>{if(!k(e))return;if(e.key===`Escape`){e.preventDefault(),e.stopPropagation(),F({focusTrigger:!0});return}if(e.key===`Enter`||e.key===` `){e.preventDefault();let t=document.activeElement;t&&sM.has(t.getAttribute(`role`)??``)&&t.click();return}let t=typeof window<`u`&&T.current&&window.getComputedStyle(T.current).direction===`rtl`?`ArrowRight`:`ArrowLeft`;if(e.key===t){e.preventDefault(),F({focusTrigger:!0});return}if(M.onKeyDown(e)){e.preventDefault();return}E(e)},[k,F,E,M,T]),oe=(0,fM.useMemo)(()=>({menuSize:h,closeMenu:()=>{F({focusTrigger:!1}),m?.closeMenu()}}),[h,F,m]),se=a?(0,pM.jsx)(`span`,{className:`x78zum5 x6s0dn4`,children:(0,pM.jsx)(Kb,{size:`sm`})}):(0,pM.jsx)(`span`,{className:`x78zum5 x6s0dn4`,children:(0,pM.jsx)(nu,{icon:`chevronRight`,size:`sm`,color:`secondary`,xstyle:On.mirror,...V(`dropdown-menu-indicator-icon`)})}),ce=o?iM(o,hM):null,le=ce?ce.property===`inlineSize`?yM.popoverCustomIntrinsicWidth(ce.value):yM.popoverCustomWidth(ce.value):yM.popover;return(0,pM.jsxs)(pM.Fragment,{children:[(0,pM.jsx)(vO,{ref:e=>ne(e),id:v,role:`menuitem`,tabIndex:i?void 0:-1,"aria-haspopup":`menu`,"aria-expanded":b,"aria-controls":b?_:void 0,"aria-disabled":i||void 0,"data-testid":f,onMouseEnter:N.onMouseEnter,onMouseLeave:N.onMouseLeave,onPointerMove:ie,startContent:t?iu(t,{size:`sm`,color:`secondary`}):void 0,label:n,description:r,endContent:se,onClick:I,onKeyDown:re,isDisabled:i,xstyle:[gM.root,_M[h],b&&gM.open,i&&gM.disabled,l],...U(V(`dropdown-menu-item`,{size:h}),{className:u,style:d})}),S.render((0,pM.jsx)(`div`,{ref:T,id:_,role:`menu`,tabIndex:j?0:-1,"aria-labelledby":v,onKeyDown:ae,onMouseEnter:ee.onMouseEnter,onMouseLeave:ee.onMouseLeave,"data-testid":p,...U(V(`dropdown-menu`),{0:{className:`x9f619 x78zum5 xdt5ytf x1lsbc85 xs2v1xk x1hkkhfe x1fcsqxe xgory14 x9epnlk x1n97fys x1prclbq x1i5ehqx x1hc1fzr x19991ni xuedmi6 xlr8y92`},1:{className:`x9f619 x78zum5 xdt5ytf x1lsbc85 xs2v1xk x1hkkhfe x1fcsqxe xgory14 x9epnlk x1n97fys x1prclbq x1i5ehqx x1hc1fzr x19991ni xuedmi6 xlr8y92 x1odjw0f x6ikm8r xish69e`}}[!!j<<0]),children:(0,pM.jsx)(Pj,{value:oe,children:c})}),{placement:`end`,alignment:`start`,offset:St[`--spacing-1`],xstyle:[yM.popoverViewport,le,Vi.end]})]})}var fM,pM,mM,hM,gM,_M,vM,yM,bM=o((()=>{fM=u(f(),1),lu(),ox(),EO(),Ei(),Hi(),mw(),eM(),vw(),rM(),oM(),Et(),W(),H(),uM(),Ij(),Rj(),pM=G(),mM=St[`--spacing-4`],`${mM}${mM}`,hM=`calc(100vw - ${mM} - ${mM})`,`${mM}${mM}`,`${mM}${mM}`,gM={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}},_M={sm:{k8WAf4:`xu0wf1k`,kg3NbH:`xf314gf`,$$css:!0},md:{k8WAf4:`x1vofgu7`,$$css:!0},lg:{$$css:!0}},vM={kzqmXN:`x1uyokj7`,$$css:!0},yM={popoverViewport:{kB7OPa:`x9f619`,kskxy:`x1hkkhfe`,$$css:!0},popover:{k7Eaqz:`x12knhqr`,$$css:!0},popoverCustomWidth:e=>[{k7Eaqz:e==null?e:`xkj4a21`,$$css:!0},{"--x-minWidth":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}],popoverCustomIntrinsicWidth:e=>[vM,{"--x-inlineSize":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]},dM.displayName=`DropdownMenuSubMenu`}));function xM(e,t){return`item-${e.id??t}`}function SM(e,t){return`section-${e.id??t}`}function CM(e,t){let{items:n,id:r,...i}=e;return(0,TM.jsx)(zj,{...i},xM(e,t))}function wM(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];`type`in r&&r.type===`divider`?t.push((0,TM.jsx)(Gj,{},`divider-${n}`)):`type`in r&&r.type===`section`?t.push((0,TM.jsxs)(`div`,{role:`group`,"aria-label":r.title,children:[r.title&&(0,TM.jsx)(`div`,{"aria-hidden":`true`,...U(V(`dropdown-menu-section-heading`),{className:`xu0wf1k xf314gf x9ynric x141an7d x1ltkj2j xv1l7n4 x87ps6o`}),children:r.title}),r.items.map(CM)]},SM(r,n))):`type`in r||(r.items&&r.items.length>0?t.push((0,TM.jsx)(dM,{icon:r.icon,label:r.label,isDisabled:r.isDisabled,children:wM(r.items)},xM(r,n))):t.push(CM(r,n)))}return t}var TM,EM=o((()=>{Wj(),Yj(),bM(),W(),TM=G()})),DM=c({MenuBottomSheet:()=>OM});function OM({finalFocusRef:e,isOpen:t,onOpenChange:n,label:r,children:i}){return(0,kM.jsx)(Wk,{finalFocusRef:e,isOpen:t,onOpenChange:n,label:r,height:`hug`,purpose:`info`,children:(0,kM.jsx)(MS,{paddingBlockStart:4,paddingBlockEnd:0,paddingInline:1,children:i})})}var kM,AM=o((()=>{qk(),RS(),kM=G(),OM.displayName=`MenuBottomSheet`})),jM,MM=o((()=>{Ar(),jM=Tr(null),jM.displayName=`ListContext`}));function NM({children:e,density:t=`balanced`,hasDividers:n=!1,edgeCompensation:r,header:i,listStyle:a=`none`,start:o,xstyle:s,className:c,style:l,"data-testid":u,ref:d,...f}){let p=(0,PM.useId)(),m=a===`decimal`,h=m?`ol`:`ul`,g=(0,PM.useMemo)(()=>({density:t,hasDividers:n,listStyle:a,edgeCompensation:r}),[t,n,a,r]),_=(0,FM.jsx)(h,{ref:d,...f,"data-testid":u,...i==null?null:{"aria-labelledby":p},...m&&o!=null&&o!==1?{start:o}:{},role:`list`,...U(V(`list`,{density:t,listStyle:a}),z(IM.list,n&&IM.withDividers,a!==`none`&&(o!=null&&o!==1?RM.counterStart(o-1):IM.withCounter),s),c,l),children:e});return i==null?(0,FM.jsx)(jM,{value:g,children:_}):(0,FM.jsx)(jM,{value:g,children:(0,FM.jsxs)(`div`,{className:`x78zum5 xdt5ytf`,children:[(0,FM.jsx)(`div`,{id:p,className:`x1p37lm5`,children:i}),_]})})}var PM,FM,IM,LM,RM,zM=o((()=>{PM=u(f(),1),B(),MM(),W(),H(),FM=G(),IM={list:{kogj98:`x1ghz6dp`,kZCmMZ:`x1c1uobl`,kH6xsr:`x3ct3a4`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kOIVth:`x1lsbc85`,$$css:!0},withDividers:{kOIVth:`xxhr3t`,$$css:!0},withCounter:{kt6KFK:`xif0320`,$$css:!0}},LM={kt6KFK:`x1khind5`,$$css:!0},RM={counterStart:e=>[LM,{"--x-counterReset":`astryx-list ${e}`==null?void 0:`astryx-list ${e}`}]},NM.displayName=`List`}));function BM({label:e,description:t,startContent:n,endContent:r,onClick:i,interactiveRef:a,href:o,target:s,rel:c,isDisabled:l=!1,isSelected:u=!1,xstyle:d,className:f,style:p,ref:m,...h}){let g=(0,VM.use)(jM),_=g?.density??`balanced`,v=g?.hasDividers??!1,y=g?.listStyle??`none`,b=g?.edgeCompensation;return(0,HM.jsx)(vO,{as:`li`,ref:m,marker:y===`disc`?(0,HM.jsx)(`span`,{className:`xoi2r2e x9f619 x78zum5 x6s0dn4 xl56j7k x2lah0s x12xnipv x1233pnv`,children:(0,HM.jsx)(`span`,{className:`x1v4s8kt xols6we x16rqkct x19aspcf`})}):y===`circle`?(0,HM.jsx)(`span`,{className:`xoi2r2e x9f619 x78zum5 x6s0dn4 xl56j7k x2lah0s x12xnipv x1233pnv`,children:(0,HM.jsx)(`span`,{className:`x1v4s8kt xols6we x16rqkct xmkeg23 x1y0btm7 xqcx1ss xjbqb8w`})}):y===`decimal`?(0,HM.jsx)(`span`,{className:`xoi2r2e x2lah0s x1tgivj0 xjm74w1 xw6l6zx x12xnipv xc2ndz5`}):null,startContent:n,label:e,description:t,endContent:r,onClick:i,interactiveRef:a,href:o,target:s,rel:c,isDisabled:l,isSelected:u,density:_,xstyle:[y!==`none`&&UM.withCounter,v&&UM.withDivider,v&&WM.noRadius,b===`inline`&&UM.inlineEdgeCompensation,d],...U(V(`list-item`),{className:f,style:p}),...h})}var VM,HM,UM,WM,GM=o((()=>{VM=u(f(),1),MM(),W(),EO(),H(),HM=G(),UM={withCounter:{kAmcRD:`xfrknyr`,$$css:!0},inlineEdgeCompensation:{keTefX:`x1t1czy8`,k71WvV:`x1cphv78`,$$css:!0},withDivider:{kt9PQ7:`x92x3c3`,kfdmCh:`x1q0q8m5`,kL6WhQ:`xw8gpjh`,kx8K5S:`x1t1lzn6`,$$css:!0}},WM={noRadius:{kaIpWk:`x2u8bby`,$$css:!0}},BM.displayName=`ListItem`})),KM=o((()=>{zM(),GM()}));function qM(e,t){return`item-${e.id??t}`}function JM({items:e,onSelect:t,onOpenSubmenu:n}){let r=(e,r)=>{let i=e.items!=null&&e.items.length>0,a=e.variant===`destructive`;return(0,YM.jsx)(BM,{label:e.label,description:e.description,startContent:e.icon?iu(e.icon,{size:`sm`,color:a?`error`:`secondary`}):void 0,endContent:i?(0,YM.jsx)(nu,{icon:`chevronRight`,size:`sm`,color:`secondary`,xstyle:On.mirror}):e.endContent,isDisabled:e.isDisabled,onClick:r=>{Ai()===`pointer`&&r.currentTarget.blur(),i?n(e):t(e)},xstyle:a&&XM.destructiveAction},qM(e,r))};return(0,YM.jsx)(NM,{density:`spacious`,children:e.map((e,t)=>`type`in e&&e.type===`divider`?(0,YM.jsx)(`li`,{role:`presentation`,className:`x3ct3a4`,children:(0,YM.jsx)(VD,{xstyle:XM.divider})},`divider-${t}`):`type`in e&&e.type===`section`?(0,YM.jsx)(`li`,{className:`x3ct3a4`,children:(0,YM.jsxs)(`div`,{role:`group`,"aria-label":e.title,className:`x78zum5 xdt5ytf xzye2dw`,children:[e.title&&(0,YM.jsx)(Ba,{level:4,xstyle:XM.sectionHeading,children:e.title}),(0,YM.jsx)(NM,{density:`spacious`,children:e.items.map(r)})]})},`section-${e.id??t}`):r(e,t))})}var YM,XM,ZM=o((()=>{JD(),Ka(),lu(),KM(),W(),Ni(),YM=G(),XM={destructiveAction:{"--_item-label-color":`xufyqxy`,"--_item-description-color":`xqlix59`,kMwMTN:`xjt36v0`,$$css:!0},divider:{kqGvvJ:`xsq74q5`,$$css:!0},sectionHeading:{kg3NbH:`xrrkdod`,$$css:!0}},JM.displayName=`MenuBottomSheetActionList`}));function QM({button:e,isMenuOpen:t,onOpenChange:n,onClick:r,hasChevron:i=!0,items:a,presentation:o,menuWidth:s,placement:c,alignment:l,className:u,style:d,xstyle:f,"data-testid":p,...m}){let h=bf(),g=e??{label:h(lN)},_=h(`@astryx.dropdownMenu.back`),v=(0,tN.useRef)(null),y=(0,tN.useRef)(null),b=(0,tN.useRef)(`pointer`),{isFocusRingSuppressed:x,onFocusReturnTargetFocus:S,prepareFocusReturn:C,resetFocusReturn:w}=pA(),T=(0,tN.useRef)(null),E=(0,tN.useRef)(0),[D,O]=(0,tN.useState)(!1),[k,A]=(0,tN.useState)([]),j=t!==void 0,M=j?t:D,[N,ee]=(0,tN.useState)(M);N!==M&&(ee(M),!M&&k.length>0&&A([]));let P=k.at(-1),te=P?.items??a,F=P?.label??g.label,ne=typeof F==`string`?F:g.label,I=(0,tN.useCallback)(e=>{e?w():(A([]),C()),n?.(e),j||O(e)},[j,n,C,w]),re=(0,tN.useCallback)(e=>{e.isDisabled||(e.onClick?.(),e.hasCloseOnSelect!==!1&&I(!1))},[I]),ie=g.isIconOnly===!0,ae=g.endContent??(i&&!ie?(0,nN.jsx)(nu,{icon:`chevronDown`,size:`sm`,color:`inherit`}):void 0);return(0,tN.useEffect)(()=>{if(!M||b.current!==`keyboard`)return;let e=requestAnimationFrame(()=>{y.current?.querySelector(`button:not(:disabled), a[href]`)?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(e)},[te,M]),(0,tN.useEffect)(()=>{if(!M){E.current=0;return}if(k.length===E.current)return;E.current=k.length;let e=requestAnimationFrame(()=>{T.current?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(e)},[M,k.length]),(0,nN.jsxs)(nN.Fragment,{children:[(0,nN.jsx)(Y,{...g,ref:v,xstyle:[M&&sN.triggerOpen,g.xstyle,x&&Ln.suppressed],tooltip:M?void 0:g.tooltip,endContent:ae,onPointerDown:e=>{g.onPointerDown?.(e),b.current=`pointer`},onKeyDown:e=>{g.onKeyDown?.(e),(e.key===`ArrowDown`||e.key===`Enter`||e.key===` `)&&(b.current=`keyboard`)},onFocus:e=>{g.onFocus?.(e),S()},onClick:()=>{r?.(),I(!M)},"aria-haspopup":`dialog`,"aria-expanded":M,"data-testid":p}),(0,nN.jsx)(OM,{isOpen:M,onOpenChange:I,finalFocusRef:v,label:ne,children:(0,nN.jsxs)(`div`,{ref:y,...m,...U(V(`dropdown-menu`,{presentation:`bottom-sheet`}),z(cN.content,f),u,d),children:[(0,nN.jsxs)(`div`,{className:`x78zum5 x1q0g3np x6s0dn4 xzye2dw x1p37lm5`,children:[k.length>0&&(0,nN.jsx)(Y,{label:_,variant:`ghost`,size:`sm`,icon:(0,nN.jsx)(nu,{icon:`chevronLeft`,size:`sm`,xstyle:On.mirror}),isIconOnly:!0,onClick:()=>A(e=>e.slice(0,-1))}),(0,nN.jsx)(Ba,{ref:T,level:3,tabIndex:-1,xstyle:[cN.viewHeading,k.length===0&&cN.rootHeading],children:F})]}),(0,nN.jsx)(JM,{items:te,onSelect:re,onOpenSubmenu:e=>A(t=>[...t,e])})]})})]})}function $M({button:e,isMenuOpen:t,onOpenChange:n,menuWidth:r,onClick:i,hasChevron:a=!0,placement:o=`below`,alignment:s=`start`,presentation:c,className:l,style:u,xstyle:d,"data-testid":f,...p}){let m=bf(),h=e??{label:m(lN)},g=(`items`in p?p.items:void 0)??[],_=p.children,{items:v,children:y,...b}=p,x=(0,tN.useId)(),S=h.size??`md`,C=(0,tN.useRef)(null),[w,T]=(0,tN.useState)(!1),E=t!==void 0,D=E?t:w,O=(0,tN.useRef)(!1),k=(0,tN.useRef)(!1),A=(0,tN.useRef)(!1),j=(0,tN.useRef)(!1);ki();let M=(0,tN.useCallback)(()=>{if(j.current){j.current=!1;return}A.current=!1,n?.(!1),E||T(!1);let e=C.current;Ai()===`keyboard`?e?.focus():document.activeElement===e&&e?.blur()},[E,n]),N=(0,tN.useRef)(!1),ee=(0,tN.useRef)(`keyboard`),P=iA({onHide:M,onShow:(0,tN.useCallback)(()=>{O.current=!0,k.current&&(k.current=!1,i?.()),n?.(!0),E||T(!0)},[E,i,n]),hasLightDismiss:!0,hasCloseButton:!1,hasAutoFocus:!1,role:`none`}),te=(0,tN.useCallback)(()=>{P.hide()},[P]),{listRef:F,handleKeyDown:ne,focusFirst:I,focusItem:re,ownsEvent:ie,getItems:ae}=dw({itemSelector:cM,boundarySelector:lM,wrap:!1,onEscape:te}),oe=gw({getItemLabels:()=>ae().map(e=>e.textContent),onMatch:re,getCurrentIndex:()=>ae().findIndex(e=>e===document.activeElement||e.contains(document.activeElement))}),se=(0,tN.useRef)(E&&t===!0);Cr(()=>{E&&(t?(A.current=!1,P.isOpen||(N.current=!se.current,P.show())):(se.current=!1,P.isOpen&&(j.current=A.current,A.current=!1,P.hide())))},[t,E,P]),(0,tN.useEffect)(()=>{P.isOpen&&N.current&&(N.current=!1,requestAnimationFrame(()=>{(ee.current===`pointer`||!I())&&F.current?.focus(),ee.current=`keyboard`}))},[P.isOpen,I,F]);let ce=(0,tN.useCallback)(e=>{if(ie(e)){if(e.key===`Enter`||e.key===` `){e.preventDefault();let t=document.activeElement;t&&sM.has(t.getAttribute(`role`)??``)&&t.click();return}if(e.key===`Tab`){te();return}if(oe.onKeyDown(e)){e.preventDefault();return}ne(e)}},[ne,te,oe,ie]),le=(0,tN.useCallback)((e=`keyboard`,t=!1)=>(O.current=!1,k.current=t,A.current=E,ee.current=e,N.current=!0,P.show(),O.current?!0:(k.current=!1,A.current=!1,ee.current=`keyboard`,N.current=!1,!1)),[E,P]),ue=(0,tN.useCallback)(e=>{let r=e.detail===0?`keyboard`:`pointer`;E?t?(i?.(),n?.(!1)):le(r,!0):P.isOpen?(i?.(),P.hide()):le(r,!0)},[i,E,n,t,P,le]),de=(0,tN.useCallback)(e=>{if(!P.isOpen){(e.key===`ArrowDown`||e.key===`Enter`||e.key===` `)&&(e.preventDefault(),le());return}e.key===`ArrowDown`&&(e.preventDefault(),I()||F.current?.focus())},[P.isOpen,le,I,F]),fe=h.isIconOnly===!0,pe=h.endContent??(a&&!fe?(0,nN.jsx)(nu,{icon:`chevronDown`,size:`sm`,color:`inherit`}):void 0),L=r?iM(r,s===`center`?iN:aN):null,R=L?L.property===`inlineSize`?sN.popoverCustomIntrinsicWidth(L.value):sN.popoverCustomWidth(L.value):s===`center`?sN.popoverCentered:sN.popoverAligned,me=o===`start`||o===`end`,he=(0,tN.useMemo)(()=>({closeMenu:te,menuSize:S}),[te,S]),ge=p.items===void 0?_:wM(g),_e=tM(F,ge,P.isOpen);return(0,nN.jsxs)(nN.Fragment,{children:[(0,nN.jsx)(Y,{...h,ref:e=>{C.current=e,P.triggerRef(e);let t=h.ref;typeof t==`function`?t(e):t&&(t.current=e)},xstyle:[D&&sN.triggerOpen,h.xstyle],tooltip:D?void 0:h.tooltip,endContent:pe,onClick:ue,onKeyDown:de,"aria-haspopup":`menu`,"aria-expanded":D,"aria-controls":x,"data-testid":f}),P.render((0,nN.jsx)(`div`,{...b,ref:F,id:x,role:`menu`,tabIndex:_e?0:-1,"aria-label":h.label,onKeyDown:ce,...U(V(`dropdown-menu`),z(sN.dropdown,_e&&sN.scrollable,d),l,u),children:(0,nN.jsx)(Pj,{value:he,children:ge})}),{placement:o,alignment:s,offset:St[`--spacing-1`],xstyle:[sN.popoverViewport,s===`center`?me?sN.popoverViewportBlockCentered:sN.popoverViewportCentered:[sN.popoverViewportAligned,me?s===`start`?sN.popoverViewportBlockStart:sN.popoverViewportBlockEnd:s===`start`?sN.popoverViewportStart:sN.popoverViewportEnd],R,Vi[o]]})]})}function eN(e){let{onOpenChange:t}=e,n=uA(`items`in e?e.presentation??`popover`:`popover`),r=e.isMenuOpen!==void 0,[i,a]=(0,tN.useState)(!1),o=r?e.isMenuOpen:i,s=(0,tN.useCallback)(e=>{t?.(e),r||a(e)},[r,t]),c={...e,isMenuOpen:o,onOpenChange:s};return n===`bottom-sheet`&&`items`in e&&e.items!==void 0?(0,nN.jsx)(QM,{...c,presentation:`bottom-sheet`}):(0,nN.jsx)($M,{...c,presentation:`popover`})}var tN,nN,rN,iN,aN,oN,sN,cN,lN,uN=o((()=>{tN=u(f(),1),B(),lA(),jx(),Ka(),lu(),EM(),uM(),Ij(),wr(),mw(),vw(),hA(),rM(),oM(),fA(),AM(),ZM(),Hi(),Et(),W(),H(),Ni(),Ef(),zn(),nN=G(),rN=St[`--spacing-4`],`${rN}${rN}`,iN=`calc(100vw - ${rN} - ${rN})`,`${rN}${rN}`,`${rN}${rN}`,`${rN}`,aN=`calc(100% - ${rN})`,`${rN}`,`${xt[`--color-overlay-pressed`]}${xt[`--color-overlay-pressed`]}`,oN={kzqmXN:`x1uyokj7`,$$css:!0},sN={triggerOpen:{kKwaWg:`xpl5ynk`,$$css:!0},dropdown:{kB7OPa:`x9f619`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kOIVth:`x1lsbc85`,kI3sdo:`x1a2a7pz`,ks0D6T:`xs2v1xk`,kskxy:`x1hkkhfe`,"--_dropdown-menu-radius":`x1fcsqxe`,"--_dropdown-menu-padding":`xgory14`,kmVPX3:`x9epnlk`,kaIpWk:`x1n97fys`,kSiTet:`x1hc1fzr`,k1ekBW:`x19991ni`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,$$css:!0},scrollable:{kORKVm:`x1odjw0f`,kXHlph:`x6ikm8r`,kZeWKH:`xish69e`,$$css:!0},popoverViewport:{kB7OPa:`x9f619`,kskxy:`x1hkkhfe`,$$css:!0},popoverViewportAligned:{ks0D6T:`xbd96yr`,$$css:!0},popoverViewportStart:{k71WvV:`xxeicf8`,$$css:!0},popoverViewportEnd:{keTefX:`x47fqr9`,$$css:!0},popoverViewportBlockStart:{k1K539:`x1kps3mo`,$$css:!0},popoverViewportBlockEnd:{keoZOQ:`xsoubt3`,$$css:!0},popoverViewportCentered:{keTefX:`x47fqr9`,k71WvV:`xxeicf8`,ks0D6T:`xs2v1xk`,$$css:!0},popoverViewportBlockCentered:{keoZOQ:`xsoubt3`,k1K539:`x1kps3mo`,ks0D6T:`xs2v1xk`,$$css:!0},popoverAligned:{k7Eaqz:`x1ks9poc`,$$css:!0},popoverCentered:{k7Eaqz:`xagy28z`,$$css:!0},popoverCustomWidth:e=>[{k7Eaqz:e==null?e:`xkj4a21`,$$css:!0},{"--x-minWidth":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}],popoverCustomIntrinsicWidth:e=>[oN,{"--x-inlineSize":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]},cN={content:{kzqmXN:`xh8yej3`,$$css:!0},rootHeading:{keTefX:`x6i7dpz`,$$css:!0},viewHeading:{kI3sdo:`x1a2a7pz`,$$css:!0}},lN=`@astryx.dropdownMenu.label`,eN.displayName=`DropdownMenu`})),dN=o((()=>{uN(),Wj(),Yj(),B(),lu(),TE(),EO(),Ij(),Et(),W(),bM()}));function fN(){return(0,pN.use)(mN)}var pN,mN,hN=o((()=>{pN=u(f(),1),mN=(0,pN.createContext)({isCollapsed:!1,toggle:()=>{},isCollapsible:!1}),mN.displayName=`SideNavCollapseContext`}));function gN({ref:e,collapsible:t,handleRef:n,label:r,size:i,children:a,onClick:o,...s}){let c=bf(),{isCollapsed:l,toggle:u,isCollapsible:d}=_N(t,n),{isMobile:f}=rj();return!d||f?null:(0,yN.jsx)(Y,{ref:e,label:r??c(l?`@astryx.sideNavCollapseButton.expandSidebar`:`@astryx.sideNavCollapseButton.collapseSidebar`),variant:`ghost`,size:i,...s,onClick:$t(o,u),icon:a??(0,yN.jsx)(`span`,{...z(bN.chevronMirror,On.mirror),children:(0,yN.jsx)(nu,{icon:`chevronLeft`,size:`sm`,color:`inherit`,xstyle:[bN.chevron,l&&bN.chevronCollapsed]})}),isIconOnly:!0})}function _N(e,t){let n=fN(),{isCollapsed:r,onCollapsedChange:i}=e??{},a=(0,vN.useCallback)(()=>i?.(!r),[r,i]),o=(0,vN.useCallback)(()=>{t?.current?.getCollapseState()?.toggle()},[t]);if(e!=null)return{isCollapsed:r??!1,toggle:a,isCollapsible:!0};if(t==null)return n;let s=t.current?.getCollapseState()??null;return{isCollapsed:s?.isCollapsed??!1,toggle:o,isCollapsible:s?.isCollapsible??!0}}var vN,yN,bN,xN=o((()=>{vN=u(f(),1),B(),lu(),jx(),W(),hN(),sj(),Ef(),yN=G(),bN={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}},gN.displayName=`SideNavCollapseButton`}));function SN(e){let t=e.split(`,`).map(e=>{let t=e.trim(),n=Number.parseFloat(t);return Number.isFinite(n)?t.endsWith(`ms`)?n:t.endsWith(`s`)?n*1e3:null:null}).filter(e=>e!==null);return t.length?Math.min(...t):null}function CN(e){let t=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches?0:AN,n=SN(window.getComputedStyle(e).transitionDuration);return n===null?t:n<=0?0:Math.min(t,n*jN)}function wN({isOpen:e,onOpenChange:t,children:n,header:r,width:i=320,side:a=`auto`,label:o,"data-testid":s,xstyle:c,className:l,style:u,onClick:d,ref:f,...p}){let m=bf(),h=rj(),g=e??h.isMobileNavOpen,_=(0,TN.useId)(),v=h.mobileNavId||_,y=(0,TN.useMemo)(()=>t??(e=>{e?h.openMobileNav():h.closeMobileNav()}),[t,h]),b=(0,TN.useRef)(null),x=(0,TN.useRef)(null),S=(0,TN.useRef)(null),C=(0,TN.useCallback)(()=>{S.current&&=(S.current.release(),null)},[]),[w,T]=(0,TN.useState)(a===`auto`?`end`:a);(0,TN.useEffect)(()=>{if(g){if(a===`auto`){let e=document.activeElement;if(e&&e!==document.body){let t=e.getBoundingClientRect(),n=t.left+t.width/2;T(n<window.innerWidth/2?`start`:`end`)}}else T(a)}},[g,a]),(0,TN.useEffect)(()=>{let e=b.current;if(e)return g?(S.current??=eT(document.documentElement),e.open||e.showModal(),document.documentElement.style.overflow=`clip`,S.current.settle()):e.open&&(document.documentElement.style.overflow=``,C(),x.current=setTimeout(()=>{e.close()},CN(e))),()=>{x.current&&=(clearTimeout(x.current),null),document.documentElement.style.overflow=``,C()}},[g,C]),(0,TN.useEffect)(()=>{let e=b.current;return()=>{e?.open&&e.close()}},[]);let{shouldDismissOnCloseRequest:E}=ma({isActive:g,onDismiss:()=>y(!1)}),D=(0,TN.useCallback)(e=>{e.preventDefault(),E()&&y(!1)},[y,E]),O=(0,TN.useCallback)(e=>{e.target===e.currentTarget&&y(!1)},[y]),k=w===`start`;return(0,EN.jsx)(`dialog`,{ref:yr(f,b),id:v,...U(V(`mobile-nav`,{side:w}),z(Jr.reset,DN.dialog,fi.reset,g&&DN.open,DN.backdrop,g&&DN.backdropOpen,c),l,u),...p,"data-testid":s,"aria-label":o??(typeof r==`string`?r:m(`@astryx.mobileNav.navigation`)),onClick:$t(d,O),onCancel:D,children:(0,EN.jsx)(Wi,{children:(0,EN.jsx)(Er,{children:(0,EN.jsxs)(`div`,{tabIndex:-1,...z(DN.drawer,kN.width(i),k&&DN.drawerStart,k&&g&&DN.drawerStartOpen,!k&&DN.drawerEnd,!k&&g&&DN.drawerEndOpen),children:[(0,EN.jsxs)(`div`,{...{0:{className:`x78zum5 x6s0dn4 x1qughib x1k15mir xf314gf x2lah0s x92x3c3 x1q0q8m5 xw8gpjh`},1:{className:`x78zum5 x6s0dn4 x1k15mir xf314gf x2lah0s x92x3c3 x1q0q8m5 xw8gpjh x13a6bvl`}}[!r<<0],children:[typeof r==`string`?(0,EN.jsx)(Ba,{level:2,xstyle:DN.headerText,children:r}):r??null,(0,EN.jsx)(Y,{variant:`ghost`,label:m(`@astryx.mobileNav.closeNavigation`),icon:(0,EN.jsx)(nu,{icon:`close`,color:`inherit`}),onClick:()=>y(!1),isIconOnly:!0})]}),(0,EN.jsx)(`div`,{className:`x98rzlu x1odjw0f x6ikm8r xish69e xx69xxh xf314gf xce4md1`,children:n})]})})})})}var TN,EN,DN,ON,kN,AN,jN,MN=o((()=>{TN=u(f(),1),B(),jx(),lu(),Ga(),sj(),nT(),W(),Yr(),Ar(),pi(),Ji(),ga(),H(),Ef(),xr(),EN=G(),DN={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:`x5ve5x3`,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}},ON={kzqmXN:`xn9wirt`,ks0D6T:`xf68679`,$$css:!0},kN={width:e=>[ON,{"--x-maxWidth":(e=>typeof e==`number`?e+`px`:e??void 0)(`${e}px`)}]},AN=250,jN=.6,wN.displayName=`MobileNav`}));function NN(e,t,n,r){let i=Math.min(n,Math.max(t,e));if(r.length>0){let e=r[0],a=Math.abs(i-e);for(let t=1;t<r.length;t++){let n=Math.abs(i-r[t]);n<a&&(e=r[t],a=n)}return Math.min(n,Math.max(t,e))}return i}function PN(e){if(typeof window>`u`)return null;try{let t=localStorage.getItem($N+e);if(t==null)return null;let n=JSON.parse(t);if(typeof n==`number`)return Number.isFinite(n)?n===0?{size:null,isCollapsed:!0}:{size:n,isCollapsed:null}:null;if(typeof n==`object`&&n){let{size:e,isCollapsed:t}=n,r=typeof e==`number`&&Number.isFinite(e)&&e>0;if(r||t===!0)return{size:r?e:null,isCollapsed:t===!0}}}catch{}return null}function FN(e,t){if(typeof window<`u`)try{localStorage.setItem($N+e,JSON.stringify(t))}catch{}}function IN(e){let t=rP.exec(e);if(t){let e=Number(t[1]);return Number.isFinite(e)?{kind:`px`,value:e}:null}let n=iP.exec(e);if(n){let e=Number(n[1]);return Number.isFinite(e)&&e<=100?{kind:`percent`,value:e}:null}return null}function LN(e){if(typeof e!=`object`||!e||Array.isArray(e))return null;let t=e;return t.type===`pixel`&&typeof t.value==`number`&&Number.isFinite(t.value)&&t.value>=0?t.value:null}function RN(e){if(Array.isArray(e))return null;let t=e;if(t.type!==`percent`||typeof t.value!=`number`||!Number.isFinite(t.value)||t.value<0||t.value>100)return null;let n=t.min!==void 0;if(n===(t.max!==void 0))return null;if(n){let e=LN(t.min);return e==null?null:{kind:`percent`,value:t.value,min:e}}let r=LN(t.max);return r==null?null:{kind:`percent`,value:t.value,max:r}}function zN(e){if(typeof e==`number`)return Number.isFinite(e)&&e>=0?{kind:`px`,value:e}:null;if(typeof e==`string`)return IN(e);if(typeof e==`object`&&e){let t=LN(e);return t==null?RN(e):{kind:`px`,value:t}}return null}function BN(e){return e?.kind===`percent`}function VN(e,t){if(e.kind===`px`)return e.value;if(t==null)return null;let n=Math.round(e.value/100*t);return e.min===void 0?e.max===void 0?n:Math.min(n,e.max):Math.max(n,e.min)}function HN(e){if(typeof e==`number`&&!Number.isFinite(e))return String(e);try{return JSON.stringify(e)??String(e)}catch{return String(e)}}function UN(e){if(typeof e!=`object`||!e||Array.isArray(e))return HN(e);let t=e;return t.type===`pixel`?`{"type":"pixel","value":${HN(t.value)}}`:HN(e)}function WN(e){if(typeof e==`object`&&e&&!Array.isArray(e)){let t=e;if(t.type===`pixel`)return UN(e);if(t.type===`percent`){let e=[`"type":"percent"`,`"value":${HN(t.value)}`];return t.min!==void 0&&e.push(`"min":${UN(t.min)}`),t.max!==void 0&&e.push(`"max":${UN(t.max)}`),`{${e.join(`,`)}}`}}return HN(e)}function GN(e,t,n,r,i,a,o){return e===void 0?r:e===1/0&&r===1/0?1/0:t==null?(o.current||(o.current=!0,`${i}${WN(e)}${a}${r}`),r):VN(t,n)??r}function KN(e,t,n){let r=n?.contentBoxSize?.[0];if(r)return t===`vertical`?r.blockSize:r.inlineSize;let i=typeof window>`u`?null:window.getComputedStyle(e);if(i==null)return null;let a=t===`vertical`?e.clientHeight-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom):e.clientWidth-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight);return Number.isFinite(a)?a:null}function qN(e){let{defaultSize:t,minSize:n,maxSize:r,containerRef:i,direction:a=`horizontal`,collapsible:o=!1,collapsedSize:s=QN,snaps:c,autoSaveId:l,defaultIsCollapsed:u,isCollapsed:d,onSizeChange:f,onCollapseChange:p}=e,m=(0,XN.useRef)([]),h=c??m.current,g=n,_=r,v=zN(t),y=zN(n),b=zN(r),x=i!=null,S=l?PN(l):null,C=(0,XN.useRef)(null),[,w]=(0,XN.useState)(0),T=BN(v),E=BN(y)||BN(b),D=S?.size==null&&T&&C.current?.isFinal!==!0,O=x&&(E||D),k=!x&&E,A=(0,XN.useRef)(null),[,j]=(0,XN.useState)(0),M=(0,XN.useRef)(null),N=O?A.current:null;Cr(()=>{if(!O){A.current=null,M.current=null;return}let e=i?.current??null;e!==A.current&&(M.current=null,A.current=e,j(e=>e+1))});let ee=(0,XN.useCallback)(e=>!O||N==null||N!==i?.current?()=>{}:on(N,t=>{M.current=KN(N,a,t),e()}),[N,O,a,i]),P=(0,XN.useCallback)(()=>!O||N==null?(M.current=null,null):(M.current??=KN(N,a),M.current),[N,O,a]),te=(0,XN.useSyncExternalStore)(ee,P,()=>null),F=(0,XN.useCallback)(e=>x||!k||typeof window>`u`?()=>{}:(window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)),[x,k]),ne=(0,XN.useSyncExternalStore)(F,()=>typeof window>`u`?eP:window.innerWidth,()=>eP),I=O,re=te!=null&&te>0,ie=x?re?te:eP:ne,ae=!I||re,oe=(0,XN.useRef)(null),[se,ce]=(0,XN.useState)(0),le=oe.current??ie,ue=(0,XN.useRef)(!1),de=(0,XN.useRef)(!1),fe=(0,XN.useRef)(!1),pe=(0,XN.useRef)(!1),L=GN(g,y,le,ZN,`minSize`,nP,ue),R=GN(_,b,le,1/0,`maxSize`,nP,de);(C.current==null||!C.current.isFinal)&&(C.current={px:GN(t,v,le,tP,`defaultSize`,nP,fe),isFinal:ae});let me=C.current.px,[he,ge]=(0,XN.useState)(()=>S?.size==null?ae?NN(me,L,R,h):null:S.size);x&&!E&&ae&&D&&he!=null&&w(e=>e+1),ae&&he==null&&ge(NN(me,L,R,h));let[_e,ve]=(0,XN.useState)({min:L,max:R});ae&&oe.current==null&&(_e.min!==L||_e.max!==R)&&(ve({min:L,max:R}),ge(e=>e==null?null:NN(e,L,R,h)));let ye=NN(he??me,L,R,h),[be,xe]=(0,XN.useState)(()=>S?.isCollapsed??u??!1),Se=d!==void 0,Ce=o&&(Se?d:be),we=(0,XN.useRef)(ye),Te=(0,XN.useRef)(Ce);Te.current=Ce;let Ee=(0,XN.useCallback)(e=>{Se||(Te.current=e,xe(e))},[Se]);(0,XN.useEffect)(()=>{L>R&&!pe.current&&(pe.current=!0,`${L}${R}`)},[L,R]),(0,XN.useEffect)(()=>{l&&ae&&FN(l,{size:ye,isCollapsed:Ce})},[ye,Ce,l,ae]);let De=(0,XN.useCallback)(()=>{o&&!Te.current&&(Ee(!0),p?.(!0),f?.(0))},[o,Ee,p,f]),Oe=(0,XN.useCallback)(()=>{let e=Te.current;Ee(!1),e&&p?.(!1),f?.(ye)},[Ee,ye,p,f]),ke=(0,XN.useCallback)(e=>{if(!Number.isFinite(e)||e<0){`${String(e)}`;return}let t=NN(e,L,R,h),n=Te.current;ge(t),Ee(!1),n&&p?.(!1),f?.(t)},[L,R,h,Ee,p,f]),Ae=(0,XN.useCallback)(()=>{oe.current=ie,we.current=Te.current?0:ye},[ye,ie]),je=(0,XN.useCallback)(e=>{let t=we.current+e;if(o&&t<s){Te.current||(Ee(!0),p?.(!0),f?.(0));return}Te.current&&t>=s&&(Ee(!1),p?.(!1));let n=NN(t,L,R,h);ge(n),f?.(n)},[o,s,Ee,L,R,h,f,p]),Me=(0,XN.useCallback)(()=>{oe.current!=null&&(oe.current=null,ce(e=>e+1))},[]),Ne=(0,XN.useCallback)(()=>{Me()},[Me]);return{size:Ce?0:ye,isCollapsed:Ce,collapse:De,expand:Oe,resize:ke,props:{_size:Ce?0:ye,_isCollapsed:Ce,_onResizeStart:Ae,_onResizeMove:je,_onResizeEnd:Ne,_onResizeCancel:Me,_minSizePx:L,_maxSizePx:R,_snaps:h,_collapsedSize:s,_collapsible:o,_direction:a,_isResizableProps:!0}}}function JN(e){let{regions:t,autoSaveId:n,containerRef:r,direction:i}=e,a=Object.entries(t),o=a.map(([e,t])=>qN({...t,containerRef:r,direction:i,autoSaveId:n?`${n}:${e}`:void 0})),s={};return a.forEach(([e],t)=>{s[e]=o[t]}),s}function YN(e){return`regions`in e?JN(e):qN(e)}var XN,ZN,QN,$N,eP,tP,nP,rP,iP,aP=o((()=>{XN=u(f(),1),un(),wr(),En(),ZN=50,QN=40,$N=`astryx-resizable:`,eP=1200,tP=250,nP=`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)}).`,rP=/^(\d+(?:\.\d+)?)px$/,iP=/^(\d+(?:\.\d+)?)%$/}));function oP(e,t,n){if(e!==`auto`)return e;let r=t?`end`:`start`;return n?r===`start`?`end`:`start`:r}function sP(e){return e===`center`?null:e===`start`?-1:1}function cP(e){document.body.style.cursor=e?`col-resize`:`row-resize`,document.body.style.userSelect=`none`}function lP(){document.body.style.cursor=``,document.body.style.userSelect=``}function uP({direction:e=`horizontal`,position:t=`inline`,isReversed:n=!1,isDisabled:r=!1,hasDivider:i=!1,isAlwaysVisible:a=!0,pillPlacement:o=`auto`,label:s,resizable:c,children:l,xstyle:u,className:d,ref:f,...p}){let m=bf(),h=s??m(`@astryx.resizable.handle.label`),g=(0,dP.useRef)(null),_=(0,dP.useRef)(null),[v,y]=(0,dP.useState)(!1),[b,x]=(0,dP.useState)(!1),[S,C]=(0,dP.useState)(!1),w=e===`horizontal`,T=t===`overlay`,E=n?-1:1,D=oP(o,n,c?._isCollapsed??!1),O=sP(D),k=(0,dP.useCallback)(()=>{let e=g.current;return e&&getComputedStyle(e).direction===`rtl`?-1:1},[]),A=b||S,j=(0,dP.useRef)(!1);(0,dP.useEffect)(()=>{let t=c?._direction;t!=null&&t!==e&&!j.current&&(j.current=!0,`${e}${t}`)},[e,c]);let M=(0,dP.useCallback)(()=>{_.current=null,y(!1),lP()},[]),N=(0,dP.useCallback)(e=>{r||!c||_.current||(e.preventDefault(),e.stopPropagation(),e.currentTarget.setPointerCapture?.(e.pointerId),_.current={pointerId:e.pointerId,startPos:w?e.clientX:e.clientY,rtl:w?k():1},y(!0),c._onResizeStart(),cP(w))},[r,c,w,k]),ee=(0,dP.useCallback)(e=>{let t=_.current;if(!t||t.pointerId!==e.pointerId||!c)return;let n=w?e.clientX:e.clientY;c._onResizeMove((n-t.startPos)*t.rtl*E)},[c,w,E]),P=(0,dP.useCallback)(e=>{_.current?.pointerId===e.pointerId&&(M(),c?._onResizeEnd())},[M,c]),te=(0,dP.useCallback)(e=>{_.current?.pointerId===e.pointerId&&(M(),c?._onResizeCancel?.())},[M,c]),F=(0,dP.useCallback)(e=>{if(r||!c)return;let t=e.shiftKey?mP:pP,n=w?k():1;switch(e.key){case`ArrowRight`:case`ArrowDown`:e.preventDefault(),c._onResizeStart(),c._onResizeMove(t*(w?n:1)*E),c._onResizeEnd();break;case`ArrowLeft`:case`ArrowUp`:e.preventDefault(),c._onResizeStart(),c._onResizeMove(-t*(w?n:1)*E),c._onResizeEnd();break;case`Home`:e.preventDefault(),c._onResizeStart(),c._onResizeMove(c._minSizePx-c._size),c._onResizeEnd();break;case`End`:e.preventDefault(),c._maxSizePx!==1/0&&(c._onResizeStart(),c._onResizeMove(c._maxSizePx-c._size),c._onResizeEnd());break;case`Enter`:e.preventDefault(),c._collapsible&&(c._onResizeStart(),c._onResizeMove(c._isCollapsed?c._minSizePx:-c._size),c._onResizeEnd())}},[r,c,w,k,E]),ne=(0,dP.useCallback)(()=>{!r&&c&&c._collapsible&&(c._onResizeStart(),c._onResizeMove(c._isCollapsed?c._minSizePx:-c._size),c._onResizeEnd())},[r,c]),I=(0,dP.useRef)(void 0);I.current=c?._onResizeCancel,(0,dP.useEffect)(()=>()=>{_.current&&(_.current=null,lP(),I.current?.())},[]);let re=c?._isCollapsed??!1,ie=c?re?Math.max(c._size,c._minSizePx):c._size:void 0,ae=c?c._minSizePx:void 0,oe=c&&c._maxSizePx!==1/0?c._maxSizePx:void 0,se=c&&re?m(`@astryx.resizable.collapsed`):void 0;return(0,fP.jsxs)(`div`,{ref:yr(f,g),role:`separator`,"aria-orientation":w?`vertical`:`horizontal`,"aria-valuenow":ie,"aria-valuemin":ae,"aria-valuemax":oe,"aria-valuetext":se,"aria-label":h,"aria-disabled":r||void 0,tabIndex:r?-1:0,onDoubleClick:ne,onFocus:()=>C(!0),onBlur:()=>C(!1),"data-resizing":v||void 0,...U(V(`resize-handle`),Rn.focusVisible(hP.handle,T&&hP.overlay,T&&(w?hP.overlayHorizontal:hP.overlayVertical),!T&&(w?hP.horizontal:hP.vertical),!T&&!i&&(w?hP.noDividerHorizontal:hP.noDividerVertical),!T&&i&&A&&!v&&hP.handleHover,!T&&i&&v&&hP.handleActive,r&&hP.disabled,u),d),...p,onKeyDown:e=>{p.onKeyDown?.(e),F(e)},children:[(0,fP.jsx)(`div`,{...z(hP.hitArea,w?hP.hitAreaHorizontal:hP.hitAreaVertical,O==null?w?On.centerInline(`0px`):hP.hitAreaCenteredY:w?bP.hitAreaOffsetX(O):bP.hitAreaOffsetY(O),r&&hP.disabled),onPointerDown:N,onPointerMove:ee,onPointerUp:P,onPointerCancel:te,onLostPointerCapture:te,onPointerEnter:()=>x(!0),onPointerLeave:()=>{v||x(!1)}}),l??(0,fP.jsx)(`div`,{...U(V(`resize-handle-pill`),z(hP.pill,w?hP.pillHorizontal:hP.pillVertical,D===`center`?On.centerInline(`-50%`):w?bP.pillOffsetX(D===`start`?-1:1):bP.pillOffsetY(D===`start`?-1:1),a?hP.pillVisible:hP.pillHidden,A&&!v&&hP.pillHover,v&&hP.pillActive))})]})}var dP,fP,pP,mP,hP,gP,_P,vP,yP,bP,xP=o((()=>{dP=u(f(),1),B(),En(),Et(),zn(),W(),H(),Ef(),xr(),fP=G(),pP=10,mP=50,hP={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}},gP={kLqNvP:`x1o0tod`,k3aq6I:`x11wx31z x75qhwu`,$$css:!0},_P={k87sOh:`x13vifvy`,k3aq6I:`xsqj5wx`,$$css:!0},vP={kLqNvP:`x1o0tod`,k3aq6I:`xsqj5wx`,$$css:!0},yP={k87sOh:`x13vifvy`,k3aq6I:`xsqj5wx`,$$css:!0},bP={hitAreaOffsetX:e=>[gP,{"--x-qthpiu":`translateX(calc(${e} * (3px + ${St[`--spacing-1`]}) - 6.5px))`==null?void 0:`translateX(calc(${e} * (3px + ${St[`--spacing-1`]}) - 6.5px))`,"--x-sj6hyi":`translateX(calc(${e} * (3px + ${St[`--spacing-1`]}) + 6.5px))`==null?void 0:`translateX(calc(${e} * (3px + ${St[`--spacing-1`]}) + 6.5px))`}],hitAreaOffsetY:e=>[_P,{"--x-transform":`translateY(calc(${e} * (3px + ${St[`--spacing-1`]}) - 6.5px))`==null?void 0:`translateY(calc(${e} * (3px + ${St[`--spacing-1`]}) - 6.5px))`}],pillOffsetX:e=>[vP,{"--x-transform":`translate(calc(${e} * (100% + ${St[`--spacing-1`]})), -50%)`==null?void 0:`translate(calc(${e} * (100% + ${St[`--spacing-1`]})), -50%)`}],pillOffsetY:e=>[yP,{"--x-transform":`translate(-50%, calc(${e} * (100% + ${St[`--spacing-1`]})))`==null?void 0:`translate(-50%, calc(${e} * (100% + ${St[`--spacing-1`]})))`}]},uP.displayName=`ResizeHandle`}));function SP(e,t){let n=typeof e==`object`?e:{},r=typeof t==`object`?t:{},i=r.defaultIsCollapsed!==void 0||r.isCollapsed!==void 0||r.onCollapseChange!==void 0;return{isCollapsible:!!e||i,defaultIsCollapsed:(i?r.defaultIsCollapsed:n.defaultIsCollapsed)??!1,isCollapsed:i?r.isCollapsed:n.isCollapsed,onCollapsedChange:i?r.onCollapseChange:n.onCollapsedChange,conflict:CP(n,r)}}function CP(e,t){let n=[e.defaultIsCollapsed!==void 0&&`defaultIsCollapsed`,e.isCollapsed!==void 0&&`isCollapsed`,e.onCollapsedChange!==void 0&&`onCollapsedChange`].filter(e=>e!==!1),r=[t.defaultIsCollapsed!==void 0&&`defaultIsCollapsed`,t.isCollapsed!==void 0&&`isCollapsed`,t.onCollapseChange!==void 0&&`onCollapseChange`].filter(e=>e!==!1);return n.length===0||r.length===0?null:`${n.map(e=>`collapsible.${e}`).join(`, `)} and ${r.map(e=>`resizable.${e}`).join(`, `)} address the same collapse state. resizable wins; the collapsible ${n.length===1?`value is`:`values are`} ignored.`}function wP({header:e,topContent:t,children:n,footer:r,footerIcons:i,collapsible:a=!1,resizable:o=!1,xstyle:s,className:c,style:l,"data-testid":u,ref:d,handleRef:f,...p}){let m=bf(),h=(typeof a==`object`?a:{}).hasButton??!0,g=typeof o==`object`?o:{},_=!!o,v=SP(a,o),{isCollapsible:y,onCollapsedChange:b}=v;yw(`SideNav`,v.conflict??``,v.conflict!=null);let x=yr(d,(0,TP.useRef)(null)),S=(0,TP.useRef)({isCollapsed:!1,toggle:()=>{},isCollapsible:y}),C=YN({defaultSize:g.defaultWidth??260,minSize:g.minWidth??180,maxSize:g.maxWidth??480,collapsible:y,collapsedSize:DP,autoSaveId:g.autoSaveId,defaultIsCollapsed:v.defaultIsCollapsed,isCollapsed:v.isCollapsed,onSizeChange:g.onWidthChange,onCollapseChange:b}),w=C.isCollapsed,T=(0,TP.useCallback)(()=>{let e=!w;S.current={...S.current,isCollapsed:e},e?C.collapse():C.expand()},[w,C]),E=_&&!w;S.current={isCollapsed:w,toggle:T,isCollapsible:y};let D={isCollapsed:w,toggle:T,isCollapsible:y};(0,TP.useImperativeHandle)(f,()=>({getCollapseState:()=>S.current}),[]);let O=dj();if(O===`topbar`)return(0,EP.jsxs)(`div`,{"data-testid":u,...U(V(`side-nav`,{mode:`topbar`}),z(OP.topbar,s),c,l),children:[e,(0,EP.jsx)(`div`,{className:`x78zum5 x6s0dn4 xzye2dw xvc5jky`,children:(0,EP.jsx)(mx,{value:kP,children:i})})]});let k=!!(r||i);if(O===`drawer`)return(0,EP.jsxs)(wN,{header:e,"data-testid":u,xstyle:s,className:c,style:l,...p,children:[t,n,k&&(0,EP.jsxs)(`div`,{className:`x78zum5 xdt5ytf xr1yuqi x1txdalj x1xye8es`,children:[r,i&&(0,EP.jsx)(`div`,{className:`x78zum5 x6s0dn4 xzye2dw`,children:(0,EP.jsx)(mx,{value:kP,children:i})})]})]});if(O===`drawer-content`)return(0,EP.jsxs)(EP.Fragment,{children:[t,n,k&&(0,EP.jsxs)(`div`,{className:`x78zum5 xdt5ytf xr1yuqi x1txdalj x1xye8es`,children:[r,i&&(0,EP.jsx)(`div`,{className:`x78zum5 x6s0dn4 xzye2dw`,children:(0,EP.jsx)(mx,{value:kP,children:i})})]})]});let A=!!(e||t),j=!!(r||i),M=y&&h,N=_?{...l??{},width:w?void 0:C.size}:l,ee=(0,EP.jsxs)(`nav`,{ref:x,role:`navigation`,"aria-label":m(`@astryx.sideNav.label`),"data-testid":u,...U(V(`side-nav`),z(OP.root,w&&OP.rootCollapsed,s),c,N),...p,children:[A&&(0,EP.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`}}[!!w<<0],children:[e,t&&(0,EP.jsx)(`div`,{children:t})]}),(0,EP.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`}}[!!w<<2|!!A<<1|!!j<<0],children:n}),(j||M)&&(0,EP.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`}}[!!w<<0],children:[r,(0,EP.jsx)(`div`,{...{0:{className:`x78zum5 x6s0dn4 xzye2dw`},1:{className:`x78zum5 x6s0dn4 xzye2dw x3ieub6`}}[!!w<<0],children:(0,EP.jsxs)(mx,{value:kP,children:[M&&(0,EP.jsx)(gN,{}),i]})})]})]}),P=E?(0,EP.jsxs)(`div`,{className:`x1n2onr6 x78zum5 x2lah0s x5yr21d x7giv3`,children:[ee,(0,EP.jsx)(uP,{"data-testid":`astryx-sidenav-resize-handle`,direction:`horizontal`,position:`overlay`,pillPlacement:`end`,isAlwaysVisible:!1,xstyle:OP.resizableHandle,resizable:C.props,label:m(`@astryx.sideNav.resizeSidebar`)})]}):ee;return y?(0,EP.jsx)(mN,{value:D,children:P}):P}var TP,EP,DP,OP,kP,AP=o((()=>{TP=u(f(),1),B(),W(),hN(),xN(),mj(),MN(),aP(),xP(),H(),hx(),xw(),Ef(),xr(),EP=G(),DP=160,OP={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}},kP=`sm`,wP.displayName=`SideNav`})),jP,MP=o((()=>{jP={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`,$$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}}})),NP,PP,FP,IP=o((()=>{NP=u(f(),1),Ar(),PP=(0,NP.createContext)(null),PP.displayName=`NavHeadingCloseContext`,FP=Tr(null),FP.displayName=`NavHeadingMenuContext`}));function LP({href:e,as:t,isDisabled:n,onClick:r,ref:i,children:a,...o}){let s=wu(t);return e&&!n?(0,BP.jsx)(s,{ref:i,href:e,onClick:r,...o,children:a}):(0,BP.jsx)(`button`,{ref:i,type:`button`,onClick:r,disabled:n,...o,children:a})}function RP({as:e,label:t,icon:n,selectedIcon:r,isSelected:i=!1,isDisabled:a=!1,href:o,onClick:s,endContent:c,actions:l,children:u,collapsible:d,size:f=`md`,"data-testid":p,ref:m,xstyle:h,...g}){let _=bf(),{isCollapsed:v}=fN(),y=dj(),{closeMobileNav:b}=rj(),x=y===`drawer`||y===`drawer-content`,S=(0,zP.useId)(),C=!!u,w=(0,zP.useRef)(null),T=iA({hasLightDismiss:!0,hasAutoFocus:!0,hasCloseButton:!1,dialogLabel:_(`@astryx.sideNavItem.submenuLabel`,{label:t})}),E=yr(m,T.triggerRef),D=(0,zP.useMemo)(()=>typeof d==`object`?d:{},[d]),O=C&&d!==!1,k=D.isCollapsed,A=k!==void 0,[j,M]=(0,zP.useState)(D.defaultIsCollapsed??!1),N=A?k:j,ee=(0,zP.useCallback)(()=>{let e=!N;A||M(e),D.onCollapsedChange?.(e)},[N,A,D]),P=i&&r?r:n,te=O&&(!!o||!!s)&&!v,F=!!l,ne=e=>{if(a){e.preventDefault();return}if(O&&!te&&!v){e.preventDefault(),ee();return}s?.(e),x&&b()},I=e=>{e.preventDefault(),e.stopPropagation(),ee()},{triggerProps:re,contentProps:ie}=Xj({show:T.show,hide:T.hide,isOpen:T.isOpen,isEnabled:v&&C,clickGuardMs:0,ownsFocus:!1});if(v&&!n)return null;if(v){let n=P&&iu(P,{size:`sm`,color:i?`inherit`:a?`disabled`:`secondary`}),r=U(V(`side-nav-item`,{size:f,selected:i?`selected`:null,disabled:a?`disabled`:null}),Rn.focusVisible(jP.item,Iu.backgroundColor,jP[f],VP.itemCollapsed,f===`sm`&&VP.itemCollapsedSm,f===`lg`&&VP.itemCollapsedLg,i&&jP.selected,a&&jP.disabled)),s=g[`aria-label`]!=null&&g[`aria-label`].trim()!==``?g[`aria-label`]:t;if(C)return(0,BP.jsxs)(`div`,{...z(VP.root,h),children:[(0,BP.jsx)(`button`,{ref:E,type:`button`,...g,...re,"aria-label":s,"data-testid":p,...T.triggerProps,...r,children:n}),T.render((0,BP.jsxs)(`div`,{className:`x1hviunn xu0wf1k x7a5moj xfb3i0g`,onMouseEnter:ie.onMouseEnter,onMouseLeave:ie.onMouseLeave,onClick:()=>T.hide(),children:[(0,BP.jsx)(`div`,{className:`xf314gf xu0wf1k x141an7d x2mo6ok xv1l7n4 x1ltkj2j`,children:t}),(0,BP.jsx)(mN,{value:UP,children:u})]}),{placement:`end`,alignment:`start`,xstyle:VP.popoverGap})]});let c={"aria-current":i?`page`:void 0,"aria-disabled":a||void 0,"aria-label":s,"data-testid":p},l=(0,BP.jsx)(LP,{ref:m,href:o,as:e,isDisabled:a,onClick:ne,...g,...c,...r,children:n});return(0,BP.jsxs)(`div`,{ref:w,...z(VP.root,h),children:[l,(0,BP.jsx)(Da,{content:t,placement:`end`,anchorRef:w})]})}let ae=(0,BP.jsxs)(BP.Fragment,{children:[P&&iu(P,{size:`sm`,color:i?`inherit`:a?`disabled`:`secondary`}),!v&&(0,BP.jsx)(`span`,{className:`x98rzlu xeuugli xb3r6kr xlyipyv xuxw1ft`,children:t}),!v&&c&&(0,BP.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4`,children:c}),!v&&O&&!te&&(0,BP.jsx)(nu,{icon:`chevronDown`,size:`lg`,color:`inherit`,xstyle:[VP.expandChevron,!N&&VP.expandChevronExpanded]})]}),oe=V(`side-nav-item`,{size:f,selected:i?`selected`:null,disabled:a?`disabled`:null}),se=[jP.item,Iu.backgroundColor,jP[f],i&&jP.selected,a&&jP.disabled],ce=U(oe,z(...se)),le=U(oe,Rn.focusVisible(...se)),ue=U(oe,Rn.focusWithinFirstChild(...se)),de=te||F,fe;if(de){let n=te?{"aria-current":i?`page`:void 0}:{"aria-current":i?`page`:void 0,"aria-disabled":a||void 0,"aria-expanded":O?!N:void 0,"aria-controls":O?`${S}-children`:void 0};fe=(0,BP.jsxs)(`div`,{"data-testid":p,...F?ue:ce,children:[(0,BP.jsx)(LP,{ref:m,href:o,as:e,isDisabled:a,onClick:ne,...g,...n,...F?Rn.suppressed(VP.splitAction):Rn.focusVisible(VP.splitAction),children:ae}),te&&(0,BP.jsx)(`button`,{type:`button`,onClick:I,"aria-label":_(N?`@astryx.sideNavItem.expand`:`@astryx.sideNavItem.collapse`,{label:t}),"aria-expanded":!N,"aria-controls":`${S}-children`,...Rn.focusVisible(VP.expandToggle,Iu.backgroundColor),children:(0,BP.jsx)(nu,{icon:`chevronDown`,size:`lg`,color:`inherit`,xstyle:[VP.expandChevron,!N&&VP.expandChevronExpanded]})}),F&&(0,BP.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xzye2dw x67bb7w`,children:(0,BP.jsx)(mx,{value:HP,children:l})})]})}else{let t={"aria-current":i?`page`:void 0,"aria-disabled":a||void 0,"aria-expanded":O?!N:void 0,"aria-controls":O?`${S}-children`:void 0,"data-testid":p};fe=(0,BP.jsx)(LP,{ref:m,href:o,as:e,isDisabled:a,onClick:ne,...g,...t,...le,children:ae})}return(0,BP.jsxs)(`div`,{ref:w,...z(VP.root,h),children:[fe,C&&!v&&(0,BP.jsx)(`div`,{id:`${S}-children`,role:`group`,"aria-labelledby":`${S}-label`,"aria-hidden":N,inert:N?!0:void 0,...{0:{className:`xrvj5dj x1tu4anv x1qn9uv2 x80gvsz x12w9bfk xlr8y92`},1:{className:`xrvj5dj x1qn9uv2 x80gvsz x12w9bfk xlr8y92 xihq33y`}}[!!N<<0],children:(0,BP.jsxs)(`div`,{className:`xb3r6kr x2lwn1j x31w388`,children:[(0,BP.jsx)(`span`,{id:`${S}-label`,hidden:!0,children:t}),u]})})]})}var zP,BP,VP,HP,UP,WP=o((()=>{zP=u(f(),1),B(),lu(),Eu(),lA(),eM(),W(),uu(),MP(),hx(),zn(),Lu(),hN(),mj(),sj(),H(),Ef(),xr(),BP=G(),VP={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}},HP=`sm`,UP={isCollapsed:!1,toggle:()=>{},isCollapsible:!1},RP.displayName=`SideNavItem`}));function GP({ref:e,title:t,subtitle:n,children:r,endContent:i,isHeaderHidden:a=!1,xstyle:o,className:s,style:c,"data-testid":l,...u}){let{isCollapsed:d}=fN(),f=`${(0,KP.useId)()}-title`,p=(0,qP.jsxs)(qP.Fragment,{children:[(0,qP.jsxs)(`span`,{className:`x78zum5 xdt5ytf x98rzlu xeuugli`,children:[(0,qP.jsx)(`span`,{id:f,className:`x141an7d x2mo6ok x1ltkj2j xv1l7n4 xb3r6kr xlyipyv xuxw1ft`,children:t}),n&&(0,qP.jsx)(`span`,{className:`x141an7d x1ltkj2j xv1l7n4 xb3r6kr xlyipyv xuxw1ft`,children:n})]}),i&&(0,qP.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4`,children:i})]}),m=a||d;return(0,qP.jsxs)(`div`,{ref:e,...U(V(`side-nav-section`),z(JP.root,o),s,c),...u,role:`group`,"aria-labelledby":f,"data-testid":l,children:[m?(0,qP.jsx)(du,{as:`div`,children:p}):(0,qP.jsx)(`div`,{className:`x78zum5 x6s0dn4 x1txdalj xf314gf xu0wf1k xt0e3qv x87ps6o`,children:p}),(0,qP.jsx)(`div`,{className:`x78zum5 xdt5ytf x1lsbc85`,children:r})]})}var KP,qP,JP,YP=o((()=>{KP=u(f(),1),B(),W(),hN(),mu(),H(),qP=G(),JP={root:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,k8WAf4:`xu0wf1k`,$$css:!0}},GP.displayName=`SideNavSection`})),XP=o((()=>{AP(),B(),Et(),lA(),Lf(),lu(),uu(),MP(),zn(),Lu(),hN(),Eu(),W(),xr(),eM(),IP(),H(),Ef(),WP(),YP(),xN(),mj()})),ZP,QP=o((()=>{f(),Ar(),ZP=Tr(`start`),ZP.displayName=`TopNavSlotContext`}));function $P({heading:e,startContent:t,children:n,centerContent:r,endContent:i,label:a,xstyle:o,className:s,style:c,ref:l,...u}){let d=bf(),f=a??d(`@astryx.topNav.landmarkLabel`),p=hj(),m=yj(),{hasAutoToggle:h}=rj(),g=t??n,_=r!=null,v=g!=null||r!=null,y=v||m!=null;return p===`mobile-bar`?(0,eF.jsxs)(`nav`,{ref:l,role:`navigation`,"aria-label":f,...U(V(`top-nav`,{mode:`mobile-bar`}),z(tF.mobileBar,o),s,c),...u,children:[e&&(0,eF.jsx)(`div`,{className:`x78zum5 x6s0dn4 x2lah0s`,children:e}),(0,eF.jsxs)(`div`,{className:`x78zum5 x6s0dn4 xzye2dw xvc5jky`,children:[i,y&&h&&(0,eF.jsx)(cj,{})]})]}):p===`drawer`?!v&&!m?null:(0,eF.jsxs)(wN,{header:e,children:[v&&(0,eF.jsxs)(`div`,{className:`x78zum5 xdt5ytf x1lsbc85`,children:[g,r]}),v&&m&&(0,eF.jsx)(VD,{xstyle:tF.drawerDivider}),m&&(0,eF.jsx)(`div`,{children:m})]}):(0,eF.jsxs)(`nav`,{ref:l,role:`navigation`,"aria-label":f,...U(V(`top-nav`),z(tF.base,_?tF.baseGrid:tF.baseFlex,o),s,c),...u,children:[(0,eF.jsxs)(`div`,{className:`x78zum5 x6s0dn4 x18g69wz x845mor xeuugli`,children:[e&&(0,eF.jsx)(`div`,{className:`x78zum5 x6s0dn4 x2lah0s`,children:e}),g&&(0,eF.jsx)(ZP,{value:`start`,children:(0,eF.jsx)(`div`,{className:`x78zum5 x6s0dn4 xzye2dw`,children:g})})]}),_&&(0,eF.jsx)(ZP,{value:`center`,children:(0,eF.jsx)(`div`,{className:`x78zum5 x6s0dn4 xl56j7k xzye2dw`,children:r})}),_?(0,eF.jsx)(`div`,{className:`x78zum5 x6s0dn4 x13a6bvl xzye2dw`,children:(0,eF.jsx)(ZP,{value:`end`,children:i})}):i&&(0,eF.jsx)(`div`,{className:`x78zum5 x6s0dn4 xzye2dw x2lah0s xvc5jky`,children:(0,eF.jsx)(ZP,{value:`end`,children:i})})]})}var eF,tF,nF=o((()=>{B(),W(),Ef(),QP(),vj(),Sj(),qD(),MN(),uj(),sj(),H(),eF=G(),tF={base:{kGNEyG:`x6s0dn4`,kzqmXN:`xh8yej3`,kmVPX3:`xlsj2fj`,kB7OPa:`x9f619`,$$css:!0},baseFlex:{k1xSpc:`x78zum5`,$$css:!0},baseGrid:{k1xSpc:`xrvj5dj`,kumcoG:`x134kloy`,$$css:!0},mobileBar:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kzqmXN:`xh8yej3`,kmVPX3:`xlsj2fj`,kB7OPa:`x9f619`,$$css:!0},drawerDivider:{kqGvvJ:`x1g06x3t`,$$css:!0}},$P.displayName=`TopNav`}));function rF({as:e,logo:t,logoLabel:n,heading:r,headingHref:i,superheading:a,superheadingHref:o,subheading:s,subheadingHref:c,headerEndContent:l,menu:u,xstyle:d,className:f,style:p,"data-testid":m,ref:h,...g}){let _=bf(),v=wu(e),y=n??r,b=(0,iF.useRef)(null),x=iA({dialogLabel:_(`@astryx.topNav.heading.dialogLabel`),role:`none`,hasCloseButton:!1}),{triggerProps:S,contentProps:C,menuRef:w,setTriggerEl:T,close:E}=Xj({show:x.show,hide:x.hide,isOpen:x.isOpen,isEnabled:!!u,showDelay:0}),D=(0,iF.useMemo)(()=>({closeMenu:E}),[E]),O=yr(b,h,u?x.triggerRef:void 0),k=!!u,A=!!(i||o||c),j=!!u&&!A,M=!!i&&!u&&!o&&!c,N=e=>(0,aF.jsxs)(`span`,{className:`x78zum5 xdt5ytf xeuugli`,children:[a&&(A&&o&&u?(0,aF.jsx)(Of,{href:o,onClick:e=>e.stopPropagation(),color:`secondary`,size:`xsm`,children:a}):(0,aF.jsx)(`span`,{className:`x141an7d x1ltkj2j xv1l7n4 x1hl2dhg xb3r6kr xlyipyv xuxw1ft`,children:a})),(0,aF.jsxs)(`span`,{className:`x78zum5 x6s0dn4 xzye2dw`,children:[A&&i&&u?(0,aF.jsx)(v,{href:i,onClick:e=>e.stopPropagation(),className:`x18juvz8 x2mo6ok xf74fhv x1hl2dhg x1heor9g xb3r6kr xlyipyv xuxw1ft`,children:r}):(0,aF.jsx)(`span`,{className:`x18juvz8 x2mo6ok xf74fhv x1tgivj0 x1hl2dhg xb3r6kr xlyipyv xuxw1ft`,children:r}),e]}),s&&(A&&c&&u?(0,aF.jsx)(Of,{href:c,onClick:e=>e.stopPropagation(),color:`secondary`,size:`xsm`,children:s}):(0,aF.jsx)(`span`,{className:`x141an7d x1ltkj2j xv1l7n4 x1hl2dhg xb3r6kr xlyipyv xuxw1ft`,children:s}))]}),ee=k&&(0,aF.jsx)(nu,{icon:`chevronDown`,size:`sm`,color:`secondary`,xstyle:[oF.chevron,oF.chevronGlyph]}),P=l&&(0,aF.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xvc5jky`,children:l}),te=(0,aF.jsxs)(`button`,{type:`button`,className:`x78zum5 x6s0dn4 x1txdalj xh8yej3 xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x1heor9g x1yc453h xkoleio x12gdq22 xmnmr5y x1djylfy xt970qd xcsaf9d x1p37lm5 xhrcg97 x1ypdohk x16khyan`,onClick:E,children:[t&&(0,aF.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t}),N((0,aF.jsx)(nu,{icon:`chevronDown`,size:`sm`,color:`secondary`,xstyle:[oF.chevron,oF.chevronGlyph,oF.popoverChevron]}))]});return!r&&!u?(0,aF.jsx)(i?v:`div`,{ref:h,href:i,"aria-label":i?n:void 0,"data-testid":m,...U(V(`top-nav-heading`),z(oF.root,!!i&&oF.menuTrigger,d),f,p),...g,children:t&&(0,aF.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t})}):M&&i?(0,aF.jsxs)(v,{ref:h,href:i,"data-testid":m,...U(V(`top-nav-heading`),z(oF.root,oF.menuTrigger,d),f,p),...g,children:[t&&(0,aF.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t}),N(),P,ee]}):j?(0,aF.jsxs)(aF.Fragment,{children:[(0,aF.jsxs)(`div`,{ref:O,"data-testid":m,...S,...U(V(`top-nav-heading`),z(oF.root,oF.menuTrigger,d),f,p),children:[t&&(0,aF.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t}),N((0,aF.jsx)(`button`,{ref:T,type:`button`,"aria-label":_(`@astryx.topNav.heading.openMenu`),onClick:e=>{e.stopPropagation(),S.onClick()},...x.triggerProps,className:`x2lah0s x78zum5 x6s0dn4 xl56j7k xy8csz5 ximsjs8 xv9yike x1ypdohk x16khyan xh6dtrn xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x1sodnla x1yc453h xoevpu5`,children:(0,aF.jsx)(nu,{icon:`chevronDown`,size:`sm`,color:`inherit`,xstyle:oF.chevronGlyph})})),P]}),x.render((0,aF.jsxs)(`div`,{ref:w,className:`x9epnlk xb3r6kr`,...C,children:[te,(0,aF.jsx)(`div`,{role:`menu`,"aria-label":r??_(`@astryx.topNav.heading.dialogLabel`),children:(0,aF.jsx)(PP,{value:D,children:u})})]}),{placement:`below`,alignment:`start`,xstyle:oF.popoverOverlap})]}):u&&A?(0,aF.jsxs)(aF.Fragment,{children:[(0,aF.jsxs)(`div`,{ref:O,"data-testid":m,...S,...U(V(`top-nav-heading`),z(oF.root,d),f,p),children:[t&&(i?(0,aF.jsx)(v,{href:i,"aria-label":y,onClick:e=>e.stopPropagation(),className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t}):(0,aF.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t})),N(k?(0,aF.jsx)(`button`,{ref:T,type:`button`,"aria-label":_(`@astryx.topNav.heading.openMenu`),onClick:e=>{e.stopPropagation(),S.onClick()},...x.triggerProps,className:`x2lah0s x78zum5 x6s0dn4 xl56j7k xy8csz5 ximsjs8 xv9yike x1ypdohk x16khyan xh6dtrn xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x1sodnla x1yc453h xoevpu5`,children:(0,aF.jsx)(nu,{icon:`chevronDown`,size:`sm`,color:`inherit`,xstyle:oF.chevronGlyph})}):void 0),P]}),x.render((0,aF.jsxs)(`div`,{ref:w,className:`x9epnlk xb3r6kr`,...C,children:[te,(0,aF.jsx)(`div`,{role:`menu`,"aria-label":r??_(`@astryx.topNav.heading.dialogLabel`),children:(0,aF.jsx)(PP,{value:D,children:u})})]}),{placement:`below`,alignment:`start`,xstyle:oF.popoverOverlap})]}):A&&!M?(0,aF.jsxs)(`div`,{ref:h,"data-testid":m,...U(V(`top-nav-heading`),z(oF.root,d),f,p),...g,children:[t&&(i?(0,aF.jsx)(v,{href:i,"aria-label":y,className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t}):(0,aF.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t})),(0,aF.jsxs)(`span`,{className:`x78zum5 xdt5ytf xeuugli`,children:[a&&(o?(0,aF.jsx)(Of,{href:o,color:`secondary`,size:`xsm`,children:a}):(0,aF.jsx)(`span`,{className:`x141an7d x1ltkj2j xv1l7n4 x1hl2dhg xb3r6kr xlyipyv xuxw1ft`,children:a})),i?(0,aF.jsx)(Of,{href:i,color:`primary`,weight:`semibold`,children:r}):(0,aF.jsx)(`span`,{className:`x18juvz8 x2mo6ok xf74fhv x1tgivj0 x1hl2dhg xb3r6kr xlyipyv xuxw1ft`,children:r}),s&&(c?(0,aF.jsx)(Of,{href:c,color:`secondary`,size:`xsm`,children:s}):(0,aF.jsx)(`span`,{className:`x141an7d x1ltkj2j xv1l7n4 x1hl2dhg xb3r6kr xlyipyv xuxw1ft`,children:s}))]}),P,ee]}):(0,aF.jsxs)(`div`,{ref:h,"data-testid":m,...U(V(`top-nav-heading`),z(oF.root,d),f,p),...g,children:[t&&(0,aF.jsx)(`span`,{className:`x2lah0s x78zum5 x6s0dn4 xl56j7k`,children:t}),N(),P,ee]})}var iF,aF,oF,sF=o((()=>{iF=u(f(),1),B(),lA(),Lf(),lu(),Eu(),W(),xr(),eM(),IP(),H(),Ef(),aF=G(),oF={root:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x1txdalj`,kAzted:`xkoleio`,kZCmMZ:`x12gdq22 xmnmr5y`,kwRFfy:`x1djylfy`,k8WAf4:`xt970qd`,kB7OPa:`x9f619`,kybGjl:`x1hl2dhg`,kMwMTN:`x1tgivj0`,kkrTdU:`xt0e3qv`,$$css:!0},menuTrigger:{kkrTdU:`x1ypdohk x16khyan`,kaIpWk:`xh6dtrn`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,kWkggS:`xjbqb8w`,kMv6JI:`xjb2p0i`,kGuDYH:`x1qlqyl8`,k63SB2:`x1sodnla`,k9WMMc:`x1yc453h`,$$css:!0},chevron:{kmuXW:`x2lah0s`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,k7Eaqz:`xy8csz5`,kAzted:`ximsjs8`,kMwMTN:`xv9yike`,$$css:!0},chevronGlyph:{kzqmXN:`x15vhz18`,kZKoxP:`xlzyvqe`,kGuDYH:`x1qlqyl8`,$$css:!0},popoverChevron:{k3aq6I:`x19jd1h0`,$$css:!0},popoverOverlap:{k7Eaqz:`x8wyhu6`,keoZOQ:`xvyqdj1`,keTefX:`x1qfufaz`,$$css:!0}},rF.displayName=`TopNavHeading`})),cF=o((()=>{nF(),sF(),B(),Et(),Eu(),vj(),MP(),W(),sj(),H(),zn(),Lu(),lA(),eM(),mw(),vw(),lu(),xr(),QP()}));function lF(e,t){return`${e} · ${t}${/\bvoid\b/i.test(t)?``:` · Void`}`}var uF=o((()=>{}));function dF(){return(0,fF.jsxs)(`svg`,{role:`img`,"aria-label":`Void`,viewBox:`0 0 270 58`,fill:`none`,className:`void-admin-logo`,children:[(0,fF.jsx)(`circle`,{cx:`262`,cy:`48.96`,r:`8`,fill:`currentColor`}),(0,fF.jsx)(`path`,{d:`M20.72 0.959999L35.52 41.28L50.08 0.959999H70L47.92 56.96H22.32L0.24 0.959999H20.72ZM106.542 57.92C82.9419 57.92 70.6219 48 70.6219 28.96C70.6219 9.92 82.9419 1.90735e-06 106.542 1.90735e-06C130.142 1.90735e-06 142.542 9.92 142.542 28.96C142.542 48 130.142 57.92 106.542 57.92ZM106.542 44.08C117.662 44.08 122.862 39.36 122.862 28.96C122.862 18.48 117.662 13.76 106.542 13.76C95.4219 13.76 90.2219 18.48 90.2219 28.96C90.2219 39.36 95.4219 44.08 106.542 44.08ZM152.265 56.96V0.959999H171.465V56.96H152.265ZM184.687 56.96V0.959999H219.887C239.327 0.959999 250.447 9.84 250.447 28.96C250.447 48.16 239.247 56.96 219.807 56.96H184.687ZM230.767 28.96C230.767 18.48 226.287 14.56 217.167 14.56H203.887V43.36H217.167C226.287 43.36 230.767 39.44 230.767 28.96Z`,fill:`currentColor`})]})}var fF,pF=o((()=>{fF=G()}));function mF({title:e,platformName:t,username:n,children:r}){let i=$a().path,a=so().location?.pathname??i,[o,s]=(0,hF.useState)(gF);return(0,hF.useEffect)(()=>{document.title=lF(e,t)},[e,t]),(0,hF.useEffect)(()=>{let e=e=>{let t=e.target;if(!(t instanceof HTMLFormElement))return;let n=t.dataset.confirm;n&&!window.confirm(n)&&e.preventDefault()};return document.addEventListener(`submit`,e,!0),()=>document.removeEventListener(`submit`,e,!0)},[]),q(Cj,{className:`void-admin-shell`,height:`auto`,contentPadding:6,mobileNav:{breakpoint:`lg`},topNav:q($P,{label:`Platform administration`,heading:q(rF,{className:`void-admin-brand`,logo:q(dF,{}),heading:t}),endContent:q(eN,{button:{label:n??`Account`,variant:`ghost`},alignment:`end`,items:[{label:`Log out`,icon:Qm,onClick:()=>window.location.assign(`/admin/logout`)}]})}),sideNav:J(wP,{label:`Admin sections`,collapsible:{isCollapsed:o,onCollapsedChange:e=>{gF=e,s(e)}},children:[q(GP,{title:`Overview`,children:q(RP,{label:`Dashboard`,icon:Km,href:`/admin/`,isSelected:a===`/admin/`})}),J(GP,{title:`Applications`,children:[q(RP,{label:`Connected apps`,icon:Ym,href:`/admin/connected-apps`,isSelected:a.startsWith(`/admin/connected-apps`)}),q(RP,{label:`Projects`,icon:Lm,href:`/admin/projects`,isSelected:a.startsWith(`/admin/projects`)}),q(RP,{label:`Deployments`,icon:gh,href:`/admin/deployments`,isSelected:a.startsWith(`/admin/deployments`)})]}),J(GP,{title:`People`,children:[q(RP,{label:`Users`,icon:Bh,href:`/admin/users`,isSelected:a.startsWith(`/admin/users`)}),q(RP,{label:`Access`,icon:Ym,href:`/admin/signup-control`,isSelected:a.startsWith(`/admin/signup-control`)||a.startsWith(`/admin/invitations`)})]}),J(GP,{title:`Platform`,children:[q(RP,{label:`Platform status`,icon:Tp,href:`/admin/status`,isSelected:a===`/admin/status`}),q(RP,{label:`Plans`,icon:Oh,href:`/admin/config/plans`,isSelected:a.startsWith(`/admin/config/plans`)}),q(RP,{label:`Authentication`,icon:Sh,href:`/admin/config/auth`,isSelected:a.startsWith(`/admin/config/auth`)}),q(RP,{label:`Email`,icon:th,href:`/admin/email`,isSelected:a.startsWith(`/admin/email`)}),q(RP,{label:`Zero Trust`,icon:Th,href:`/admin/zero-trust`,isSelected:a===`/admin/zero-trust`}),q(RP,{label:`CLI Versions`,icon:Ph,href:`/admin/cli-versions`,isSelected:a===`/admin/cli-versions`})]})]}),children:q(`div`,{className:`void-admin-content`,children:r})})}var hF,gF,_F=o((()=>{jj(),dN(),XP(),cF(),fo(),Jh(),hF=u(f(),1),uF(),pF(),Ob(),gF=!1})),vF=c({ConnectedAppsPage:()=>yF});function yF({platformName:e,username:t,clients:n,credentials:r,error:i}){return J(mF,{title:`Connected apps`,platformName:e,username:t,children:[q(`h1`,{children:`Connected apps`}),J(`div`,{style:`display: grid; gap: 24px; max-width: 800px`,children:[i&&q(`p`,{role:`alert`,children:i}),r&&q(OC,{title:`App credentials`,description:`Save the client secret on the app’s server. It is shown once.`,children:J(`dl`,{children:[q(`dt`,{children:`Client ID`}),q(`dd`,{children:q(`code`,{children:r.clientId})}),q(`dt`,{children:`Client secret`}),q(`dd`,{style:`overflow-wrap: anywhere`,children:q(`code`,{children:r.clientSecret})})]})}),q(OC,{title:`Register application`,children:J(`form`,{method:`post`,action:`/admin/connected-apps`,style:`display: grid; gap: 16px`,children:[q(YA,{label:`App name`,name:`name`,required:!0,maxLength:80}),q(YA,{label:`Operator`,name:`operator`,required:!0,maxLength:160}),q(XA,{label:`Redirect URLs`,name:`redirectUris`,required:!0,placeholder:`https://build.example.com/auth/callback`}),q(QA,{label:`Allow users to approve individual publishes`,name:`publish`,submitValue:`true`}),q(Y,{type:`submit`,label:`Register`})]})}),n.map(e=>J(OC,{title:e.name,description:e.operator,children:[q(`p`,{children:q(`code`,{children:e.id})}),q(`p`,{children:e.redirect_uris.join(`, `)}),q(`p`,{children:e.enabled?`Enabled`:`Disabled`}),e.enabled&&q(`form`,{method:`post`,action:`/admin/connected-apps/${e.id}/disable`,"data-confirm":`Disable this app and revoke all of its access?`,children:q(Y,{type:`submit`,label:`Disable and revoke access`})})]},e.id))]})]})}var bF=o((()=>{jx(),AC(),nj(),_F(),Ob()}));function xF(e){let t=e.replace(` `,`T`);return new Date(/(?:Z|[+-]\d{2}:?\d{2})$/i.test(t)?t:`${t}Z`)}function SF(e){return xF(e).toLocaleDateString(`en-US`,{timeZone:`UTC`,month:`short`,day:`numeric`})}function CF(e,t){let n=xF(e);if(isNaN(n.getTime()))return(0,DF.createElement)(`span`,{suppressHydrationWarning:!0},e);let r=n.toLocaleString(`en-US`,{timeZone:t||`UTC`,month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`}),i=Math.floor((Date.now()-n.getTime())/1e3),a;return a=i<60?`${i}s ago`:i<3600?`${Math.floor(i/60)}m ago`:i<86400?`${Math.floor(i/3600)}h ago`:`${Math.floor(i/86400)}d ago`,(0,DF.createElement)(`span`,{className:`void-admin-date-time`,suppressHydrationWarning:!0},`${r} (${a})`)}function wF(e){if(e===0)return`0 B`;let t=[`B`,`KB`,`MB`,`GB`,`TB`],n=Math.floor(Math.log(e)/Math.log(1024)),r=e/1024**n;return`${r%1==0?r:r.toFixed(1)} ${t[n]}`}function TF(e){return e.toLocaleString(`en-US`)}function EF(e,t){return e===0?`Unlimited`:t===`bytes`?wF(e):TF(e)}var DF,OF,kF=o((()=>{DF=u(f(),1),OF={success:`#16a34a`,failed:`#dc2626`,pending:`#d97706`,skipped:`#6b7280`}}));function AF({checkedAt:e,unavailable:t}){let[n,r]=(0,MF.useState)(Date.now);(0,MF.useEffect)(()=>{if(e===void 0)return;r(Date.now());let t=setInterval(()=>r(Date.now()),5e3);return()=>clearInterval(t)},[e]);let i=e===void 0?0:Math.max(0,Math.floor((n-e)/1e3)),a=i<5?`just now`:i<60?`${i}s ago`:`${Math.floor(i/60)}m ago`;return(0,NF.jsx)(`span`,{className:`void-admin-health-checked-at`,"data-unavailable":t||void 0,children:t?(0,NF.jsx)(`span`,{role:`status`,children:`Status unavailable`}):e===void 0?null:(0,NF.jsxs)(`time`,{dateTime:new Date(e).toISOString(),title:new Date(e).toLocaleTimeString(),children:[`Checked `,a]})})}function jF({id:e,title:t,state:n,statusLabel:r,headerAccessory:i,children:a}){return(0,NF.jsx)(`div`,{id:e,className:`void-admin-status-card`,"data-state":n,children:(0,NF.jsx)(OC,{title:t,titleIcon:(0,NF.jsx)(`span`,{className:`void-admin-health-overall-icon`,role:`img`,"aria-label":r,children:(0,NF.jsx)(n===`healthy`?um:n===`error`?gm:n===`waiting`?ym:n===`loading`?Tp:pm,{size:20,"aria-hidden":`true`})}),headerAccessory:i,children:a})})}var MF,NF,PF=o((()=>{Jh(),MF=u(f(),1),AC(),NF=G()})),FF=c({PlatformStatusPage:()=>IF});function IF({platformName:e,username:t,snapshot:n}){let[r,i]=(0,LF.useState)(n),[a,o]=(0,LF.useState)(n?`current`:`unavailable`),[s,c]=(0,LF.useState)(0);(0,LF.useEffect)(()=>{let e=!1,t,n=new AbortController,r=async()=>{if(document.visibilityState===`hidden`){t=setTimeout(r,5e3);return}try{let t=await fetch(`/admin/status.json`,{cache:`no-store`,credentials:`same-origin`,headers:{Accept:`application/json`},signal:AbortSignal.any([n.signal,AbortSignal.timeout(1e4)])});if(e)return;if(t.redirected||t.status===401||t.status===403){o(`expired`);return}if(!t.ok||!t.headers.get(`Content-Type`)?.includes(`application/json`))throw Error(`Status unavailable`);let r=await t.json();if(e)return;i(r),o(`current`)}catch{if(e)return;o(`unavailable`)}e||(t=setTimeout(r,5e3))};return r(),()=>{e=!0,n.abort(),clearTimeout(t)}},[s]);let l=r?.checkpoint?.operation,u=l?.phase===`waiting-for-dns`||l?.phase===`waiting-for-sandbox-drain`,d=l?.phase===`failed`||r?.checkpoint?.status===`failed`&&(!l||l.phase===`complete`),f=d||u,p=r?r.traffic===`paused`?`Traffic paused`:`Traffic enabled`:`Unknown`,m=d?`Operation needs attention`:l?zF[l.phase]:r?.checkpoint?`Installation ${r.checkpoint.status}`:`Installation status unavailable`,h=d?`error`:u?`waiting`:l?.phase===`complete`||!l&&r?.checkpoint?.status===`installed`?`healthy`:l||r?.checkpoint?`loading`:`unavailable`,g=a===`current`?d?`error`:u||r?.traffic===`paused`?`waiting`:h===`loading`?`loading`:`healthy`:`unavailable`,_=h===`error`?Kh:h===`waiting`?ym:h===`healthy`?Up:h===`loading`?Tp:uh,v=r?r.traffic===`paused`?ph:Up:uh;return(0,RF.jsx)(mF,{platformName:e,username:t,title:`Platform status`,children:(0,RF.jsxs)(`div`,{className:`void-platform-status`,children:[(0,RF.jsxs)(`div`,{className:`void-platform-status-heading`,children:[(0,RF.jsxs)(`div`,{children:[(0,RF.jsx)(Ba,{level:1,children:`Platform status`}),(0,RF.jsx)(`p`,{children:`Follow upgrade and rollback progress. This page is read-only during maintenance.`})]}),(0,RF.jsx)(Y,{type:`button`,label:`Refresh status`,size:`sm`,variant:`secondary`,onClick:()=>c(e=>e+1)})]}),(0,RF.jsxs)(jF,{title:`Current status`,state:g,statusLabel:a===`current`?f||h===`loading`?m:p:`Live status unavailable`,headerAccessory:(0,RF.jsx)(AF,{checkedAt:r?Date.parse(r.checkedAt):void 0,unavailable:a!==`current`}),children:[(0,RF.jsxs)(`ul`,{className:`void-platform-status-summary`,"aria-label":`Installation and traffic`,children:[(l||d)&&(0,RF.jsxs)(`li`,{"data-state":a===`current`?h:`unavailable`,children:[(0,RF.jsx)(`span`,{className:`void-admin-health-indicator`,"aria-hidden":`true`,children:(0,RF.jsx)(_,{size:16})}),(0,RF.jsxs)(`span`,{children:[(0,RF.jsx)(`span`,{className:`void-platform-status-summary-label`,children:l?BF[l.action]:`Installation`}),(0,RF.jsx)(`strong`,{children:m})]})]}),(0,RF.jsxs)(`li`,{"data-state":a!==`current`||!r?`unavailable`:r.traffic===`paused`?`waiting`:`healthy`,children:[(0,RF.jsx)(`span`,{className:`void-admin-health-indicator`,"aria-hidden":`true`,children:(0,RF.jsx)(v,{size:16})}),(0,RF.jsxs)(`span`,{children:[(0,RF.jsx)(`span`,{className:`void-platform-status-summary-label`,children:`Application traffic`}),(0,RF.jsxs)(`strong`,{children:[p,r&&a!==`current`?` (last confirmed)`:``]})]})]})]}),(0,RF.jsx)(`div`,{className:`void-platform-status-notice`,"data-state":a,role:`status`,"aria-live":`polite`,children:a===`expired`?(0,RF.jsxs)(`div`,{className:`void-admin-auth-recovery`,children:[(0,RF.jsx)(`p`,{children:`Sign in again to confirm the current status.`}),(0,RF.jsx)(Y,{as:`a`,href:`/admin/login`,label:`Sign in again`,size:`sm`})]}):a===`unavailable`?(0,RF.jsxs)(`p`,{children:[`Live status is unavailable.`,` `,r?`Showing the last confirmed snapshot; it may be out of date.`:`The current operation and traffic state could not be confirmed.`,` `,`Progress is saved independently of this page.`]}):(0,RF.jsxs)(`p`,{children:[`Refreshes every 5 seconds.`,l&&` Saved progress may remain unchanged during a phase.`]})}),(0,RF.jsxs)(`div`,{className:`void-platform-status-grid`,children:[r?.checkpoint&&(0,RF.jsxs)(`section`,{"aria-labelledby":`platform-operation-heading`,children:[(0,RF.jsx)(Ba,{level:3,id:`platform-operation-heading`,children:l?BF[l.action]:`Installation`}),l?(0,RF.jsxs)(RF.Fragment,{children:[(0,RF.jsxs)(`p`,{className:`void-platform-status-version`,children:[l.fromVersion??`New installation`,` `,(0,RF.jsx)(`span`,{"aria-label":`to`,children:`→`}),` `,l.toVersion]}),(0,RF.jsxs)(`dl`,{children:[(0,RF.jsx)(`dt`,{children:`Started`}),(0,RF.jsx)(`dd`,{children:CF(l.startedAt)}),(0,RF.jsx)(`dt`,{children:`Progress saved`}),(0,RF.jsx)(`dd`,{children:CF(l.updatedAt)}),(0,RF.jsx)(`dt`,{children:`Installation state`}),(0,RF.jsx)(`dd`,{children:r?.checkpoint?.status})]})]}):(0,RF.jsxs)(`dl`,{children:[(0,RF.jsx)(`dt`,{children:`Version`}),(0,RF.jsx)(`dd`,{children:r.checkpoint.platformVersion}),(0,RF.jsx)(`dt`,{children:`Updated`}),(0,RF.jsx)(`dd`,{children:CF(r.checkpoint.updatedAt)})]}),l&&!f&&l.phase!==`complete`&&(0,RF.jsx)(`p`,{children:`Keep the CLI command running until it finishes. Refreshing this page won’t interrupt it.`})]}),(0,RF.jsxs)(`section`,{"aria-labelledby":`platform-traffic-heading`,children:[(0,RF.jsx)(Ba,{level:3,id:`platform-traffic-heading`,children:`Traffic availability`}),(0,RF.jsx)(`p`,{children:r?r.traffic===`paused`?`App traffic and dashboard changes are paused for maintenance. You can still sign in and follow progress here.`:`Maintenance mode is off. The platform is allowing requests to your apps.`:`Traffic status is unavailable. Try refreshing.`}),r?.traffic===`enabled`&&l&&[`deploying`,`verifying`,`enabling`].includes(l.phase)&&(0,RF.jsx)(`p`,{children:`Some apps may be temporarily unavailable while services are being updated.`})]})]}),f&&(0,RF.jsxs)(`section`,{className:`void-platform-status-recovery`,"aria-labelledby":`platform-recovery-heading`,children:[(0,RF.jsx)(Ba,{level:3,id:`platform-recovery-heading`,children:`Next step`}),(0,RF.jsx)(`p`,{children:l?.phase===`waiting-for-dns`?`Wait for the zone to become active, then rerun the lifecycle command.`:l?.phase===`waiting-for-sandbox-drain`?`Complete the remaining Sandbox drain work using the CLI, then rerun the lifecycle command. Traffic stays paused until the cutover is verified.`:`Review the CLI error and saved installation state. Resolve the error before resuming the same lifecycle command.`}),(0,RF.jsxs)(`p`,{children:[`Use the recovery commands printed by the CLI and keep the same runtime files`,l?.action===`rollback`?`, including the rollback source runtime`:``,`. Reloading this page does not resume an operation.`]})]})]})]})})}var LF,RF,zF,BF,VF=o((()=>{jx(),qa(),Jh(),LF=u(f(),1),kF(),_F(),PF(),RF=G(),zF={preparing:`Preparing the platform`,deploying:`Deploying services`,verifying:`Verifying the platform`,enabling:`Enabling traffic and verifying cutover`,"waiting-for-dns":`Waiting for DNS`,"waiting-for-sandbox-drain":`Waiting for Sandbox drain`,complete:`Operation complete`,failed:`Operation needs attention`},BF={install:`Installation`,upgrade:`Upgrade`,rollback:`Rollback`,repair:`Repair`,enable:`Enable`}}));function HF(e){let t=0,n=0,r=[];for(let i of e){let e=i.width;if(e?.type===`pixel`)n+=e.value;else{let n=e?.value??1,a=e==null?0:e.minWidth??120;t+=n,r.push({key:i.key,proportion:n,minWidth:a})}}let i=0;if(t>0)for(let e of r){let n=e.minWidth*t/e.proportion;n>i&&(i=n)}let a=n+i,o=new Map;for(let n of e){let e=n.width,r={};if(e?.type===`pixel`)r.width=`${e.value}px`,r.minWidth=`${e.value}px`;else{let n=e?.value??1;t>0&&(r.width=`${n/t*100}%`),e!=null&&(r.minWidth=`${e.minWidth??120}px`)}o.set(n.key,{style:r})}return{columns:o,tableMinWidth:a}}function UF(e=1,t){return{type:`proportional`,value:e,minWidth:t?.minWidth??120}}function WF(e){return{type:`pixel`,value:e}}function GF(e){if(e.length===0)return e;let t=Kt(e);return t.toUpperCase()+e.slice(t.length)}function KF(e,t){let n=e[t];return n==null?``:n instanceof Date?n.toISOString():typeof n==`string`||typeof n==`number`||typeof n==`boolean`||typeof n==`bigint`?String(n):``}function qF(e){return e==null?0:typeof e==`string`?e.length:typeof e==`number`||typeof e==`boolean`?String(e).length:0}function JF(e){if(e==null||typeof e!=`string`&&typeof e!=`number`&&typeof e!=`boolean`)return 0;let t=String(e),n=0,r=0;for(let e=0;e<=t.length;e++)e===t.length||t[e]===` `||t[e]===` `||t[e]===`
119
+ `?(r>n&&(n=r),r=0):r++;return n}function YF(e){if(e.length===0)return[];let t=e[0],n=Object.keys(t),r=e.slice(0,Math.min(5,e.length));return n.map(e=>{let t=GF(e).length,n=t,i=t;for(let t of r){let r=qF(t[e]);r>n&&(n=r);let a=JF(t[e]);a>i&&(i=a)}return{key:e,headerLen:t,maxContentLen:n,maxWordLen:i}}).map(e=>{let t=e.maxContentLen<=6?1:e.maxContentLen<=15?2:3,n=Math.max(Math.max(e.headerLen,e.maxWordLen)*ZF,XF);return{key:e.key,header:GF(e.key),width:UF(t,{minWidth:n})}})}var XF,ZF,QF=o((()=>{Jt(),XF=60,ZF=8})),$F,eI,tI,nI,rI=o((()=>{$F={x139im0d:`x139im0d`,$$css:!0},eI={cell:{kVQacm:`xb3r6kr`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,ks0D6T:`x1m189uc`,$$css:!0}},tI={cell:{kVQacm:`xb3r6kr`,kHjlTd:`x1mzt3pk`,kTgw9:`x13faqbe`,ks0D6T:`x1m189uc`,$$css:!0}},nI={compact:{kZCmMZ:`x5uh4xs`,kwRFfy:`xbg7gas`,$$css:!0},balanced:{kZCmMZ:`x9bi00s`,kwRFfy:`xpilulx`,$$css:!0},spacious:{kZCmMZ:`x18c6q21`,kwRFfy:`x1wzlfcn`,$$css:!0}}})),iI,aI=o((()=>{Ar(),iI=Tr(null),iI.displayName=`TableContext`}));function Z({children:e,xstyle:t,ref:n,isHeaderRow:r=!1,className:i,style:a,...o}){let s=(0,oI.use)(iI);if(!s)return(0,sI.jsx)(`tr`,{ref:n,...o,...U(V(`table-row`),z($F,t),i,a),children:e});let c=[];return r||(s.isStriped&&s.hasHover?c.push(uI.row):s.isStriped?c.push(cI.row):s.hasHover&&c.push(lI.row)),s.dividers===`rows`||s.dividers,t&&c.push(...t),(0,sI.jsx)(`tr`,{ref:n,...o,...U(V(`table-row`),z($F,...c),i,a),children:e})}var oI,sI,cI,lI,uI,dI=o((()=>{oI=u(f(),1),B(),rI(),aI(),W(),H(),sI=G(),cI={row:{kWkggS:`x1dnou9g`,"--table-row-overlay":`x1rht92`,$$css:!0}},lI={row:{kWkggS:`xoevpu5`,"--table-row-overlay":`xc01ov8`,k1ekBW:`x15406qy`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,$$css:!0}},uI={row:{kWkggS:`x1dnou9g xoevpu5`,"--table-row-overlay":`x1rht92 xc01ov8`,k1ekBW:`x15406qy`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,$$css:!0}},Z.displayName=`TableRow`}));function fI({children:e,menuWidth:t,size:n=`md`,label:r,isDisabled:i=!1,onOpenChange:a,presentation:o=`popover`,ref:s,className:c,style:l,xstyle:u,triggerXstyle:d,"data-testid":f,...p}){let m=bf(),h=r??m(`@astryx.contextMenu.label`),g=m(`@astryx.dropdownMenu.back`),_=uA(o)===`bottom-sheet`,{items:v,menuContent:y,...b}=p,x=v??[],S=y,C=(0,pI.useId)(),w=(0,pI.useRef)({x:0,y:0}),T=(0,pI.useRef)(null),E=(0,pI.useRef)(null),D=(0,pI.useRef)(null),O=(0,pI.useRef)(null),[k,A]=(0,pI.useState)(!1),[j,M]=(0,pI.useState)([]),N=j.at(-1),ee=N?.items??x,P=N?.label??h,te=typeof P==`string`?P:h,F=(0,pI.useCallback)(e=>{e||M([]),A(e),a?.(e)},[a]),ne=bi({mode:`context`,onHide:(0,pI.useCallback)(()=>{A(!1),a?.(!1);let e=D.current;D.current=null,e&&document.contains(e)&&e.focus()},[a]),onShow:(0,pI.useCallback)(()=>{A(!0),a?.(!0)},[a]),lightDismiss:!1}),I=(0,pI.useCallback)(()=>{_?F(!1):ne.hide()},[ne,F,_]),re=(0,pI.useCallback)(e=>{e.isDisabled||(e.onClick?.(),e.hasCloseOnSelect!==!1&&I())},[I]);(0,pI.useEffect)(()=>{if(!k||j.length===0)return;let e=requestAnimationFrame(()=>{O.current?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(e)},[k,j.length]);let{listRef:ie,handleKeyDown:ae,focusFirst:oe,focusItem:se,ownsEvent:ce,getItems:le}=dw({itemSelector:cM,boundarySelector:lM,wrap:!1,onEscape:I}),ue=gw({getItemLabels:()=>le().map(e=>e.textContent),onMatch:se,getCurrentIndex:()=>le().findIndex(e=>e===document.activeElement||e.contains(document.activeElement))});(0,pI.useEffect)(()=>{if(!k||_)return;let e=e=>{let t=ie.current;t&&!t.contains(e.target)&&I()};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[k,I,ie,_]),(0,pI.useEffect)(()=>{if(!k||_)return;let e=e=>{e.key===`Escape`&&(Bn(e)||(e.preventDefault(),I()))};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[k,I,_]);let de=(0,pI.useCallback)(e=>{if(ce(e)){if(e.key===`Enter`||e.key===` `){e.preventDefault();let t=document.activeElement;t&&sM.has(t.getAttribute(`role`)??``)&&t.click();return}if(e.key===`Tab`){I();return}if(ue.onKeyDown(e)){e.preventDefault();return}ae(e)}},[ae,I,ue,ce]),fe=(0,pI.useCallback)((e,t,n)=>{w.current={x:e,y:t};let r=T.current;r&&(r.style.left=`${e}px`,r.style.top=`${t}px`),D.current=document.activeElement instanceof HTMLElement?document.activeElement:n,_?F(!0):(ne.show(),requestAnimationFrame(()=>oe()))},[ne,oe,F,_]),pe=(0,pI.useCallback)(e=>{if(i)return;e.preventDefault();let t=E.current?.getBoundingClientRect(),n=e.clientX===0&&e.clientY===0&&e.detail===0,r=n||!t?0:e.clientX-t.left,a=n||!t?t?.height??0:e.clientY-t.top;fe(r,a,e.currentTarget)},[i,fe]),L=ET({disabled:i,onLongPress:(0,pI.useCallback)(e=>{let t=E.current?.getBoundingClientRect();fe(t?e.x-t.left:e.x,t?e.y-t.top:e.y,E.current)},[fe])}),R=t?gI.popoverCustomWidth(t):gI.popover,me=(0,pI.useMemo)(()=>({closeMenu:I,menuSize:n}),[I,n]),he=v===void 0?S:wM(x),ge=(0,mI.jsx)(`div`,{ref:ie,id:C,role:`menu`,"data-autofocus":_?``:void 0,tabIndex:_?0:-1,"aria-label":h,onKeyDown:de,onContextMenu:e=>e.preventDefault(),...U(V(`context-menu`),z(_?gI.sheetMenu:gI.menu,u),c,l),children:(0,mI.jsx)(Pj,{value:me,children:he})}),_e=v===void 0?ge:(0,mI.jsxs)(`div`,{ref:ie,"data-autofocus":``,tabIndex:0,...U(V(`context-menu`),z(gI.sheetMenu,u),c,l),children:[(0,mI.jsxs)(`div`,{className:`x78zum5 x1q0g3np x6s0dn4 xzye2dw x1p37lm5`,children:[j.length>0&&(0,mI.jsx)(Y,{label:g,variant:`ghost`,size:`sm`,icon:(0,mI.jsx)(nu,{icon:`chevronLeft`,size:`sm`,xstyle:On.mirror}),isIconOnly:!0,onClick:()=>M(e=>e.slice(0,-1))}),(0,mI.jsx)(Ba,{ref:O,level:3,tabIndex:-1,xstyle:[gI.sheetViewHeading,j.length===0&&gI.sheetRootHeading],children:P})]}),(0,mI.jsx)(JM,{items:ee,onSelect:re,onOpenSubmenu:e=>M(t=>[...t,e])})]});return(0,mI.jsxs)(mI.Fragment,{children:[(0,mI.jsxs)(`div`,{ref:yr(s,E),...b,onContextMenu:pe,...L,"data-testid":f,...z(gI.trigger,...d?Array.isArray(d)?d:[d]:[]),children:[e,(0,mI.jsx)(`span`,{ref:yr(T,ne.ref),"aria-hidden":`true`,...U({className:`x10l6tqk xnalus7 xqtp20y x47corl`},{style:{left:`${w.current.x}px`,top:`${w.current.y}px`}})})]}),_?(0,mI.jsx)(pI.Suspense,{fallback:null,children:(0,mI.jsx)(hI,{isOpen:k,onOpenChange:F,label:te,children:_e})}):ne.render(ge,{placement:`below`,alignment:`start`,xstyle:[R,Vi.below]})]})}var pI,mI,hI,gI,_I=o((()=>{pI=u(f(),1),B(),jx(),Ka(),lu(),Ei(),ZM(),EM(),Ij(),uM(),mw(),vw(),AT(),Hi(),W(),H(),Ef(),xr(),fA(),mI=G(),hI=(0,pI.lazy)(async()=>Promise.resolve().then(()=>(AM(),DM)).then(e=>({default:e.MenuBottomSheet}))),gI={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`,$$css:!0},popover:{k7Eaqz:`x5w4yej`,$$css:!0},popoverCustomWidth:e=>[{k7Eaqz:(typeof e==`number`?`${e}px`:e)==null?typeof e==`number`?`${e}px`:e:`xkj4a21`,$$css:!0},{"--x-minWidth":(e=>typeof e==`number`?e+`px`:e??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}},fI.displayName=`ContextMenu`})),vI=o((()=>{_I(),Wj(),Yj(),B(),lu(),TE(),EO(),Ij(),Et(),W(),bM()}));function yI(e){let t=[],n=new Map;for(let r of e){let e=r.group??`__ungrouped__`,i=n.get(e);i||(i=[],n.set(e,i),t.push(e)),i.push(r)}let r=[];return t.forEach((e,t)=>{t>0&&r.push({type:`divider`});for(let t of n.get(e)??[])r.push({label:typeof t.label==`string`?t.label:t.id,icon:t.checked?(0,CI.jsx)(nu,{icon:`check`,size:`xsm`,"aria-hidden":!0}):t.icon,isDisabled:t.disabled,onClick:t.onSelect,variant:t.variant})}),r}function bI({element:e,getActions:t,triggerXstyle:n}){let[r,i]=(0,SI.useState)(null);return(0,CI.jsx)(fI,{items:r??[],triggerXstyle:n,onOpenChange:e=>{i(e?yI(t()):null)},children:e})}function xI(e,t,n){return typeof t==`function`?(0,CI.jsx)(bI,{element:e,getActions:t,triggerXstyle:n}):!t||t.length===0?e:(0,CI.jsx)(fI,{items:yI(t),triggerXstyle:n,children:e})}var SI,CI,wI=o((()=>{SI=u(f(),1),vI(),lu(),CI=G()}));function TI(e,t,n){let r=[];return(e.dividers===`rows`||e.dividers===`grid`)&&r.push(t),(e.dividers===`columns`||e.dividers===`grid`)&&r.push(n),r}function EI(e,t){return t?Array.isArray(t)?[...e,...t]:[...e,t]:e}function DI(){return(0,OI.use)(iI)}var OI,kI=o((()=>{OI=u(f(),1),aI()}));function Q({children:e,xstyle:t,ref:n,className:r,style:i,contextMenuActions:a,...o}){let s=DI(),c=typeof a==`function`||Array.isArray(a)&&a.length>0,l=s?[c?MI[s.density]:jI[s.density],s.textOverflow===`truncate`?eI.cell:tI.cell,nI[s.density],RI[s.verticalAlign],...TI(s,II.cell,LI.cell),...c?[FI.cell]:[]]:[],u=xI(e,a,c&&s?[PI.fill,NI[s.density]]:c?PI.fill:void 0);return(0,AI.jsx)(`td`,{ref:n,...o,...U(V(`table-cell`,{density:s?.density}),z(...EI(l,t)),r,i),children:u})}var AI,jI,MI,NI,PI,FI,II,LI,RI,zI=o((()=>{B(),wI(),rI(),kI(),W(),H(),AI=G(),jI={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}},MI={compact:{kGuDYH:`xjm74w1`,kB7OPa:`x9f619`,$$css:!0},balanced:{kGuDYH:`xjm74w1`,kB7OPa:`x9f619`,$$css:!0},spacious:{kGuDYH:`xjm74w1`,kB7OPa:`x9f619`,$$css:!0}},NI={compact:{k8WAf4:`xu0wf1k`,kg3NbH:`xf314gf`,$$css:!0},balanced:{k8WAf4:`xce4md1`,kg3NbH:`xrrkdod`,$$css:!0},spacious:{k8WAf4:`x8o8v82`,kg3NbH:`x1pzlopt`,$$css:!0}},PI={fill:{k1xSpc:`x1lliihq`,kB7OPa:`x9f619`,kZKoxP:`x5yr21d`,kzqmXN:`xh8yej3`,$$css:!0}},FI={cell:{kZKoxP:`x5yr21d`,$$css:!0}},II={cell:{kt9PQ7:`x92x3c3 x1wp2rvj`,kfdmCh:`x1q0q8m5`,kL6WhQ:`xw8gpjh`,$$css:!0}},LI={cell:{ke9TFa:`xw8tdv1 x1qlsc9e`,k8ry5P:`x18b5jzi`,kBCPoo:`x1gejf6u`,$$css:!0}},RI={middle:{kXLuUW:`xxymvpz`,$$css:!0},top:{kXLuUW:`x16dsc37`,$$css:!0},bottom:{kXLuUW:`x3ajldb`,$$css:!0}},Q.displayName=`TableCell`}));function $({children:e,xstyle:t,ref:n,className:r,style:i,contextMenuActions:a,...o}){let s=DI(),c=[];s&&(c.push(HI.cell,VI[s.density],UI.cell,eI.cell,nI[s.density]),(s.dividers===`columns`||s.dividers===`grid`)&&c.push(WI.cell));let l=xI(e,a);return(0,BI.jsx)(`th`,{ref:n,...o,...U(V(`table-header-cell`,{density:s?.density}),z(...EI(c,t)),r,i),children:l})}var BI,VI,HI,UI,WI,GI=o((()=>{B(),rI(),kI(),wI(),W(),H(),BI=G(),VI={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}},HI={cell:{k63SB2:`x2mo6ok`,kMwMTN:`xv1l7n4`,k9WMMc:`x1yc453h`,$$css:!0}},UI={cell:{kt9PQ7:`x92x3c3`,kfdmCh:`x1q0q8m5`,kL6WhQ:`xw8gpjh`,$$css:!0}},WI={cell:{ke9TFa:`xw8tdv1 x1qlsc9e`,k8ry5P:`x18b5jzi`,kBCPoo:`x1gejf6u`,$$css:!0}},$.displayName=`TableHeaderCell`}));function KI({ref:e,children:t,xstyle:n,className:r,style:i,...a}){return(0,qI.jsx)(`thead`,{ref:e,...U(V(`table-header`),z(n),r,i),...a,children:t})}var qI,JI=o((()=>{B(),W(),H(),qI=G(),KI.displayName=`TableHeader`}));function YI({ref:e,children:t,xstyle:n,className:r,style:i,...a}){return(0,XI.jsx)(`tbody`,{ref:e,...U(V(`table-body`),z(n),r,i),...a,children:t})}var XI,ZI=o((()=>{B(),W(),H(),XI=G(),YI.displayName=`TableBody`}));function QI({title:e,description:t,icon:n,actions:r,headingLevel:i=3,isCompact:a=!1,xstyle:o,className:s,style:c,ref:l,...u}){let d=`h${i}`;return(0,eL.jsxs)(`div`,{ref:l,...u,role:`status`,...U(V(`empty-state`,{variant:a?`compact`:null}),z(tL.container,a&&tL.containerCompact,o),s,c),children:[n!=null&&(0,eL.jsx)(`div`,{"aria-hidden":`true`,children:n}),(0,eL.jsxs)(`div`,{className:`x78zum5 xdt5ytf x6s0dn4 xxc7z9f`,children:[(0,$I.createElement)(d,U(V(`empty-state-title`,{variant:a?`compact`:null}),{0:{className:`x1ghz6dp xjb2p0i x18juvz8 x2mo6ok xf74fhv x1tgivj0`},1:{className:`x1ghz6dp xjb2p0i x2mo6ok xf74fhv x1tgivj0 xcr08ib`}}[!!a<<0]),e),t!=null&&(0,eL.jsx)(`div`,{...U(V(`empty-state-description`,{variant:a?`compact`:null}),{0:{className:`x1ghz6dp xjb2p0i xjm74w1 x1sodnla xw6l6zx xv1l7n4`},1:{className:`x1ghz6dp xjb2p0i x1sodnla xw6l6zx xv1l7n4 x141an7d`}}[!!a<<0]),children:t})]}),r!=null&&(0,eL.jsx)(`div`,{...{0:{className:`x78zum5 x1q0g3np x6s0dn4 x1txdalj xcsaf9d`},1:{className:`x78zum5 x6s0dn4 x1txdalj xcsaf9d xdt5ytf`}}[!!a<<0],children:r})]})}var $I,eL,tL,nL=o((()=>{$I=u(f(),1),B(),W(),H(),eL=G(),tL={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}},QI.displayName=`EmptyState`})),rL=o((()=>{nL()}));function iL(e,t,n,...r){return e.reduce((e,n,i)=>{let a=t(n);if(!a)return e;try{return a(e,...r)}catch(t){return Tn(`Table`,`Plugin at index ${i} threw in transform:`,t),e}},n)}function aL(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function oL({item:e,rowIndex:t,rowKey:n,columns:r,plugins:i,textOverflow:a,RowComponent:o,CellComponent:s,ariaRowIndex:c}){let l=r.map((t,n)=>{let o={};t.align&&(o.style={textAlign:t.align});let c=iL(i,e=>e.transformBodyCell,{htmlProps:o,xstyle:[],columnIndex:n,columns:r},t,e,n,r),l=!t.renderCell,u=null;c.isContentSuppressed||(u=l?KF(e,t.key):t.renderCell?.(e)??null);let d;return d=l&&a===`truncate`&&typeof u==`string`&&u.length>0?(0,uL.jsx)(Na,{type:`body`,maxLines:1,children:u}):u,(0,uL.jsx)(s,{...c.htmlProps,contextMenuActions:c.contextMenuActions,xstyle:c.xstyle,children:d},t.key)}),u=iL(i,e=>e.transformBodyRow,{htmlProps:c==null?{}:{"aria-rowindex":c},xstyle:[],children:(0,uL.jsx)(uL.Fragment,{children:l})},e,t),d=(0,uL.jsx)(o,{ref:u.ref,...u.htmlProps,xstyle:u.xstyle,children:u.children},n);return u.afterRow?(0,uL.jsxs)(uL.Fragment,{children:[d,u.afterRow]}):d}function sL(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;let n=e.item,r=t.item,i=Object.keys(r);if(Object.keys(n).length!==i.length)return!1;for(let e of i)if(n[e]!==r[e])return!1;return!0}function cL({data:e,columns:t,idKey:n,plugins:r,children:i,textOverflow:a=`wrap`,scrollWrapper:o,emptyState:s,rowIndexStart:c,rowCount:l,xstyle:u,className:d,style:f,ref:p,...m}){let h=bf(),g=r??fL,_=c!=null||l!=null,v=c??1,y=_?l??-1:void 0,b=Z,x=Q,S=$,C=iL(g,e=>e.transformColumns,t??(e?YF(e):[])),w=(0,lL.useRef)(C);aL(w.current,C)||(w.current=C);let T=w.current,E=HF(T),D=iL(g,e=>e.transformTable,{htmlProps:{},xstyle:i?[dL.table,dL.tableAutoLayout]:[dL.table]}),O=T.map((e,t)=>{let n=e.header??e.key,r={"data-column-key":e.key,scope:`col`};e.align&&(r.style={textAlign:e.align});let i=iL(g,e=>e.transformHeaderCell,{htmlProps:r,xstyle:[],content:n,columnIndex:t,columns:T},e,t,T),a=E.columns.get(e.key)?.style??{},o=i.htmlProps.style,s={...i.htmlProps,style:o?{...a,...o}:a},c=i.content??n,l=typeof c==`string`&&c.length>0?{title:c}:{},{before:u,after:d,overlay:f,below:p}=i,m=u!=null||d!=null||f!=null||p!=null?(0,uL.jsxs)(uL.Fragment,{children:[u,d==null?c:(0,uL.jsxs)(`div`,{className:`x3nfvp2 x6s0dn4 xzye2dw xeuugli`,children:[c,d]}),f,p]}):c;return(0,uL.jsx)(S,{...s,...l,contextMenuActions:i.contextMenuActions,xstyle:i.xstyle,children:m},e.key)}),k=iL(g,e=>e.transformHeaderRow,{htmlProps:{},xstyle:[],children:(0,uL.jsx)(uL.Fragment,{children:O})}),A=e!=null&&e.length>0,j=T.length>0,M={...D.htmlProps.style,...f,...E.tableMinWidth>0?{minWidth:`${E.tableMinWidth}px`}:null},N=(0,uL.jsx)(`table`,{ref:p,...y==null?null:{"aria-rowcount":y},...D.htmlProps,...U(V(`table`,void 0,{legacyNames:[`base-table`]}),z(...D.xstyle,u),[D.htmlProps.className,d].filter(Boolean).join(` `)||void 0,M),...m,children:i||(0,uL.jsxs)(uL.Fragment,{children:[j&&(0,uL.jsx)(KI,{children:(0,uL.jsx)(b,{...k.htmlProps,isHeaderRow:!0,xstyle:k.xstyle,children:k.children})}),(0,uL.jsx)(YI,{children:A?e.map((e,t)=>{let r=n==null?t:typeof n==`function`?n(e):String(e[n]);return(0,uL.jsx)(pL,{item:e,rowIndex:t,rowKey:r,columns:T,plugins:g,textOverflow:a,RowComponent:b,CellComponent:x,ariaRowIndex:_?v+t:void 0},r)}):e!=null&&s!==!1&&(0,uL.jsx)(`tr`,{children:(0,uL.jsx)(`td`,{colSpan:T.length,children:s??(0,uL.jsx)(QI,{title:h(`@astryx.table.noData`),isCompact:!0})})})})]})});if(o){let e=iL(g,e=>e.transformScrollWrapper,{htmlProps:{},xstyle:[]});N=(0,uL.jsx)(o,{htmlProps:e.htmlProps,xstyle:e.xstyle,beforeTable:e.beforeTable,afterTable:e.afterTable,children:N})}for(let e=g.length-1;e>=0;e--){let t=g[e];if(t.transformTableContext)try{N=t.transformTableContext(N)}catch(e){Tn(`Table`,`Plugin threw in transformTableContext:`,e)}}return N}var lL,uL,dL,fL,pL,mL,hL=o((()=>{lL=u(f(),1),B(),QF(),dI(),zI(),GI(),JI(),ZI(),W(),En(),rL(),qa(),H(),Ef(),uL=G(),dL={table:{kzqmXN:`xh8yej3`,kLvRdT:`x1mwwwfo`,kheTzg:`x1gukg7c`,kPzzVL:`x140o2bo`,$$css:!0},tableAutoLayout:{kPzzVL:`x1drmoe9`,$$css:!0}},fL=[],pL=(0,lL.memo)(oL,sL),mL=cL,mL.displayName=`BaseTable`}));function gL(e){let t=xL.length;return e.sort(([e],[n])=>(SL.get(e)??t)-(SL.get(n)??t))}function _L(e,t){let n=Object.keys(t);for(let t of n)CL.has(t)||`${e}${t}${[...CL].join(`, `)}`;for(let r of n)if(CL.has(r)){let n=t[r];n!=null&&typeof n!=`function`&&`${e}${r}`}n.some(e=>CL.has(e)&&typeof t[e]==`function`)||`${e}`}function vL(e,t){let n=(0,bL.useRef)(null);if(n.current!=null){let r=n.current;if(r.basePlugins===e&&r.userPlugins===t)return r.result;if(r.basePlugins===e&&yL(r.userPlugins,t))return r.userPlugins=t,r.result}let r=t?gL(Object.entries(t)).map(([,e])=>e):[],i=[...e,...r];if(t)for(let[e,n]of Object.entries(t))_L(e,n);return n.current={basePlugins:e,userPlugins:t,result:i},i}function yL(e,t){if(e===t)return!0;if(e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(e[r]!==t[r])return!1;return!0}var bL,xL,SL,CL,wL=o((()=>{bL=u(f(),1),En(),xL=[`columnSettings`,`sort`,`tree`,`selection`,`pagination`],SL=new Map(xL.map((e,t)=>[e,t])),CL=new Set([`transformColumns`,`transformTable`,`transformHeaderRow`,`transformHeaderCell`,`transformBodyRow`,`transformBodyCell`,`transformScrollWrapper`,`transformTableContext`])}));function TL({children:e,htmlProps:t,xstyle:n,beforeTable:r,afterTable:i}){let a=bf()(`@astryx.table.label`),{getViewportProps:o,getContentProps:s,state:c}=Kw({axis:`inline`,keyboardAccess:{owner:`content`},overscroll:`contain`}),{ref:l,...u}=t??{},d=o({role:`group`,"aria-label":a,...c.inline.isScrollable?{tabIndex:0}:{},...u,ref:l,...U(V(`table-scroll-wrapper`),z(jL.base,jL.containerBleed,...n??[]))});return(0,kL.jsx)(`div`,{...d,children:(0,kL.jsxs)(`div`,{...s(),children:[r,e,i]})})}function EL(){return{transformTable(e){return{...e,xstyle:[...e.xstyle,AL.base]}}}}function DL({density:e=`balanced`,dividers:t=`rows`,isStriped:n=!1,hasHover:r=!1,verticalAlign:i=`middle`,textOverflow:a=`wrap`,plugins:o,columns:s,data:c,ref:l,...u}){let d=(0,OL.useMemo)(()=>EL(),[]),f=vL((0,OL.useMemo)(()=>[d],[d]),o),p=(0,OL.useMemo)(()=>({density:e,dividers:t,isStriped:n,hasHover:r,verticalAlign:i,textOverflow:a}),[e,t,n,r,i,a]);return(0,kL.jsx)(iI,{value:p,children:(0,kL.jsx)(mL,{ref:l,data:c,columns:s,plugins:f,textOverflow:a,scrollWrapper:TL,...u})})}var OL,kL,AL,jL,ML,NL=o((()=>{OL=u(f(),1),B(),hL(),aI(),wL(),$w(),W(),H(),Ef(),kL=G(),AL={base:{kMv6JI:`xjb2p0i`,kMwMTN:`x1tgivj0`,$$css:!0}},jL={base:{kXHlph:`xw2csxc`,kuHK5b:`x5lxg6s`,$$css:!0},containerBleed:{keTefX:`xojxgvx`,k71WvV:`x1fcf3bl`,kzqmXN:`xx6qvi6`,keoZOQ:`xkibk3`,k1K539:`xlayyun`,$$css:!0}},ML=DL,ML.displayName=`Table`}));function PL({children:e,label:t,isLabelHidden:n=!1,description:r,isDisabled:i=!1,isOptional:a=!1,isRequired:o=!1,size:s,status:c,labelTooltip:l,xstyle:u,className:d,style:f,ref:p,"data-testid":m,...h}){let g=dx(s,`md`),_=(0,FL.useId)(),v=(0,FL.useId)(),y=(0,FL.useId)(),b=(0,FL.useId)(),x=[r?y:null,c?.message?b:null].filter(Boolean).join(` `)||void 0,S=(0,FL.useMemo)(()=>({isInGroup:!0,labelID:v,describedByIDs:x}),[v,x]);return(0,IL.jsx)(nD,{value:S,children:(0,IL.jsx)(mx,{value:g,children:(0,IL.jsx)(IE,{label:t,isLabelHidden:n,description:r,inputID:_,labelID:v,descriptionID:r?y:void 0,isGroupLabel:!0,isOptional:a,isRequired:o,isDisabled:i,status:c?{type:c.type,message:c.message,messageID:c.message?b:void 0}:void 0,statusVariant:`detached`,labelTooltip:l,children:(0,IL.jsx)(`div`,{ref:p,"data-testid":m,...h,role:`group`,"aria-labelledby":v,"aria-describedby":x,...U(V(`input-group`,{size:g,status:c?.type??null}),z(LL.group,RL[g],i&&LL.disabled,u),d,f),children:e})})})})}var FL,IL,LL,RL,zL=o((()=>{FL=u(f(),1),B(),$E(),hx(),W(),rD(),H(),IL=G(),LL={group:{k1xSpc:`x3nfvp2`,kGNEyG:`x1qjc9v5`,kWkggS:`xjbqb8w`,$$css:!0},disabled:{kkrTdU:`xt0e3qv`,kSiTet:`xbyyjgo`,$$css:!0}},RL={sm:{kZKoxP:`x6k0iem`,$$css:!0},md:{kZKoxP:`x1ueg155`,$$css:!0},lg:{kZKoxP:`xssyfek`,$$css:!0}},PL.displayName=`InputGroup`})),BL=o((()=>{zL(),B(),Et(),W(),H(),rD()}));function VL({variant:e=`neutral`,label:t,icon:n,xstyle:r,className:i,style:a,ref:o,...s}){let c=typeof t==`number`?String(t):typeof t==`string`&&t.length>0?t:void 0;return(0,HL.jsxs)(`span`,{ref:o,...U(V(`badge`,{variant:e}),z(UL.base,WL[e],r),i,a),title:c,...s,children:[n,(0,HL.jsx)(`span`,{className:`xb3r6kr xlyipyv xeuugli`,children:t})]})}var HL,UL,WL,GL=o((()=>{B(),W(),H(),HL=G(),UL={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}},WL={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}},VL.displayName=`Badge`})),KL=o((()=>{GL()}));function qL(){let e=!1,t=new Set;return{onBusyChange(n){if(e!==n){e=n;for(let e of t)e()}},subscribe(e){return t.add(e),()=>{t.delete(e)}},getIsBusy:()=>e}}function JL(e){return(0,XL.useSyncExternalStore)(e.subscribe,e.getIsBusy,e.getIsBusy)}function YL(){return(0,XL.use)(ZL)}var XL,ZL,QL,$L=o((()=>{XL=u(f(),1),ZL=(0,XL.createContext)(null),ZL.displayName=`BusyIndicatorLaneContext`,QL=ZL.Provider}));function eR({ref:e,item:t,icon:n,description:r,isDisabled:i=!1,group:a,xstyle:o,className:s,style:c,...l}){return t.element?(0,tR.jsx)(tR.Fragment,{children:t.element}):(0,tR.jsxs)(`div`,{ref:e,...U(V(`typeahead-item`),z(nR.container,i&&nR.disabled,o),s,c),...l,children:[n,(0,tR.jsxs)(`div`,{className:`x78zum5 xdt5ytf x98rzlu xeuugli`,children:[(0,tR.jsx)(`span`,{className:`xcr08ib x1kq96og x1sodnla x1tgivj0 xb3r6kr xlyipyv xuxw1ft`,children:t.label}),r&&(0,tR.jsx)(`span`,{className:`x141an7d x1ltkj2j xv1l7n4 xb3r6kr xlyipyv xuxw1ft`,children:r})]})]})}var tR,nR,rR=o((()=>{f(),B(),W(),H(),tR=G(),nR={container:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x1txdalj`,kAzted:`x2lwn1j`,$$css:!0},disabled:{kSiTet:`xbyyjgo`,$$css:!0}},eR.displayName=`TypeaheadItem`}));function iR(e,t){let n=Gt(e);return n>0&&n<t}var aR,oR,sR,cR,lR,uR,dR,fR=o((()=>{aR=u(f(),1),B(),$L(),lA(),nw(),cO(),wr(),Hn(),rR(),lu(),ox(),Et(),W(),H(),Ef(),xr(),oR=G(),sR=St[`--spacing-4`],`${sR}`,`${sR}`,cR={kzqmXN:`x5lhr3w`,$$css:!0},lR={input:{k1xSpc:`x1lliihq`,kUk6DE:`x98rzlu`,k7Eaqz:`xfvyar9`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,kmVPX3:`x1717udv`,kMv6JI:`x9ynric`,kGuDYH:`xjm74w1 xf9zqsd`,kLWn49:`xw6l6zx`,kMwMTN:`x1tgivj0`,kWkggS:`xjbqb8w`,kI3sdo:`x1a2a7pz`,k8Qsv1:`xeyghm5`,$$css:!0},inputDisabled:{kkrTdU:`xt0e3qv`,$$css:!0},popover:{kB7OPa:`x9f619`,k7Eaqz:`xrzjruh`,ks0D6T:`xbd96yr`,$$css:!0},popoverCustomWidth:e=>[cR,{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(`${e}px`)}],item:{kB7OPa:`x9f619`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kzqmXN:`xh8yej3`,kmVPX3:`xlsj2fj`,kaIpWk:`xh6dtrn`,kkrTdU:`x1ypdohk x16khyan`,kI3sdo:`x1a2a7pz`,kWkggS:`xjbqb8w`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,k9WMMc:`x1yc453h`,$$css:!0},itemHighlighted:{kWkggS:`x1lmrjuc`,kjBf7l:`x1x84bn5`,k3XXqK:`x815t2r`,kMeerF:`x1xvue0r`,$$css:!0},itemSelected:{k63SB2:`x1e4wzip`,$$css:!0},defaultItem:{k7Eaqz:`xeuugli`,kzqmXN:`xh8yej3`,$$css:!0}},uR={sm:{k8WAf4:`xu0wf1k`,kg3NbH:`xf314gf`,$$css:!0},md:{k8WAf4:`x1vofgu7`,$$css:!0},lg:{k8WAf4:`xce4md1`,$$css:!0}},dR=function({searchSource:e,value:t,onChange:n,renderItem:r,placeholder:i,hasEntriesOnFocus:a=!1,maxMenuItems:o=10,menuWidth:s,minQueryLength:c=1,emptySearchResultsText:l,isDisabled:u=!1,isFocusableDisabled:d=!1,hasAutoFocus:f=!1,onChangeQuery:p,onOpenChange:m,__queryEntries:h,inputId:g,ariaDescribedBy:_,ariaLabelledBy:v,inputXStyle:y,inputTabIndex:b,anchorRef:x,onKeyDown:S,debounceMs:C=150,size:w=`md`,xstyle:T,className:E,style:D,onPointerDown:O,onFocus:k,onBlur:A,id:j,"aria-describedby":M,"aria-labelledby":N,tabIndex:ee,ref:P,...te}){let F=bf(),ne=i??F(`@astryx.typeahead.searchPlaceholder`),I=l??F(`@astryx.typeahead.emptySearchResults`),re=(0,aR.useId)(),ie=g??j??re,ae=_??M,oe=v??N,se=b??ee,ce=(0,aR.useId)(),le=(0,aR.useRef)(null),ue=(0,aR.useRef)(null),de=YC(),[fe,pe]=(0,aR.useState)(``),[L,R]=(0,aR.useState)([]),[me,he]=(0,aR.useState)(-1),[ge,_e]=(0,aR.useState)(!1),[ve,ye]=(0,aR.useState)(!1),be=YL(),xe=(0,aR.useRef)(be?.onBusyChange);Cr(()=>{xe.current=be?.onBusyChange},[be]);let Se=(0,aR.useRef)(!1),Ce=(0,aR.useCallback)(e=>{Se.current!==e&&(Se.current=e,_e(e),xe.current?.(e))},[]),we=(0,aR.useRef)(!1),Te=(0,aR.useRef)(null),Ee=(0,aR.useRef)(0),De=(0,aR.useRef)(0),Oe=(0,aR.useRef)(e);Oe.current!==e&&(Oe.current.cancel?.(),Oe.current=e,Ee.current++);let ke=iA({onShow:(0,aR.useCallback)(()=>{m?.(!0)},[m]),onHide:(0,aR.useCallback)(()=>{m?.(!1),he(-1),e.cancel?.()},[m,e]),hasLightDismiss:!0,hasCloseButton:!1,hasAutoFocus:!1,role:`none`}),Ae=(0,aR.useCallback)(()=>{we.current?document.addEventListener(`click`,()=>requestAnimationFrame(()=>ke.show()),{once:!0}):ke.show()},[ke]);(0,aR.useEffect)(()=>{let e=x?.current??ue.current;return e&&ke.triggerRef(e),()=>{ke.triggerRef(null)}},[ke,x]);let je=(0,aR.useCallback)(async t=>{e.cancel?.();let n=++Ee.current;Ce(!0),ye(!0);try{let r=await e.search(t);if(Ee.current!==n)return;De.current=n;let i=r.slice(0,o),a=[...i,...h?.(t,i)??[]];R(a),he(a.length>0?0:-1),(r.length>0||t.length>0)&&Ae(),t.length>0&&de(a.length===0?I:F(`@astryx.typeahead.resultCount`,{count:a.length}))}catch{if(Ee.current!==n)return;R([]),he(-1)}finally{Ee.current===n&&Ce(!1)}},[e,o,Ae,de,I,h,Ce,F]),Me=(0,aR.useCallback)((e,t)=>{if(Ee.current!==t)return;De.current=t;let n=e.slice(0,o),r=n.length>0?0:-1;(L.length!==0||n.length!==0||me!==-1)&&(R(n),he(r),e.length>0&&Ae())},[me,o,L.length,Ae]),Ne=(0,aR.useCallback)(async()=>{let t=++Ee.current,n;try{n=e.bootstrap()}catch{Ee.current===t&&(R([]),Ce(!1));return}if(Array.isArray(n)){Ce(!1),Me(n,t);return}Ce(!0);try{Me(await n,t)}catch{Ee.current===t&&R([])}finally{Ee.current===t&&Ce(!1)}},[e,Me,Ce]),Pe=(0,aR.useCallback)(t=>{if(pe(t),p?.(t),Te.current&&clearTimeout(Te.current),t.length===0&&!a||iR(t,c)){Ee.current++,e.cancel?.();let n=h?.(t,[])??[];R(n),he(n.length>0?0:-1),ye(!1),Ce(!1),de(``),n.length>0?Ae():ke.hide();return}let n=()=>{t.length>0?je(t):a&&Ne()};C<=0?n():Te.current=setTimeout(n,C)},[p,a,c,h,Ae,je,Ne,ke,C,e,de,Ce]),Fe=(0,aR.useCallback)(e=>{Pe(e.target.value)},[Pe]),Ie=(0,aR.useCallback)(t=>{Ee.current++,Te.current&&=(clearTimeout(Te.current),null),e.cancel?.(),n(t),pe(``),R([]),ye(!1),Ce(!1),ke.hide(),le.current?.focus()},[n,ke,e,Ce]),Le=(0,aR.useCallback)(()=>{u||(a&&L.length===0&&fe.length===0?Ne():L.length>0&&(fe.length>0||a)&&De.current===Ee.current&&Ae())},[u,a,L.length,fe.length,Ne,Ae]),Re=(0,aR.useCallback)(e=>{if(!ke.isOpen)return;let t=e.relatedTarget;if(t){let e=x?.current??ue.current,n=document.getElementById(ke.id);if(e?.contains(t)||n?.contains(t))return}ke.hide()},[ke,x]),ze=(0,aR.useCallback)(e=>{if(S?.(e),!e.defaultPrevented&&!Bn(e.nativeEvent)){if(!ke.isOpen){e.key===`ArrowDown`&&(a||fe.length>0)&&(e.preventDefault(),L.length>0?(ke.show(),he(0)):a&&!iR(fe,c)&&Ne());return}switch(e.key){case`ArrowDown`:e.preventDefault(),L.length>0&&he(e=>e<L.length-1?e+1:0);break;case`ArrowUp`:e.preventDefault(),L.length>0&&he(e=>e>0?e-1:L.length-1);break;case`Enter`:e.preventDefault(),me>=0&&me<L.length&&Ie(L[me]);break;case`Escape`:e.preventDefault(),ke.hide();break;case`Tab`:ke.hide();break;case`Home`:ke.isOpen&&(e.preventDefault(),L.length>0&&he(0));break;case`End`:ke.isOpen&&(e.preventDefault(),L.length>0&&he(L.length-1))}}},[ke,L,me,Ie,a,fe,c,Ne,S]),Be=(0,aR.useCallback)(e=>`${ce}-option-${e}`,[ce]),Ve=oO({isOpen:ke.isOpen,highlightedIndex:me,setHighlightedIndex:he,getOptionId:Be,itemCount:L.length}),He=t==null?null:Ht(t.id,()=>L.indexOf(t));return(0,aR.useEffect)(()=>()=>{Te.current&&clearTimeout(Te.current),Oe.current.cancel?.()},[]),(0,oR.jsxs)(oR.Fragment,{children:[(0,oR.jsx)(`input`,{...te,ref:yr(P,le,ue),id:ie,type:`text`,role:`combobox`,"aria-expanded":ke.isOpen,"aria-controls":ce,"aria-activedescendant":ke.isOpen&&me>=0&&me<L.length?Be(me):void 0,"aria-autocomplete":`list`,"aria-busy":ge||void 0,"aria-describedby":ae,"aria-labelledby":oe,"aria-disabled":d?`true`:void 0,tabIndex:se,value:fe,onChange:Fe,onPointerDown:$t(()=>{we.current=!0,document.addEventListener(`click`,()=>{we.current=!1},{once:!0})},O),onFocus:$t(Le,k),onBlur:$t(Re,A),onKeyDown:ze,placeholder:ne,disabled:u&&!d,readOnly:d||void 0,autoFocus:f,"data-autofocus":f||void 0,autoComplete:`off`,...U(z(lR.input,u&&lR.inputDisabled,y,T),E,D)}),ge&&be==null&&(0,oR.jsx)(`span`,{className:`x3nfvp2 x6s0dn4 xl56j7k x2lah0s x9epnlk`,children:(0,oR.jsx)(Kb,{size:`sm`,"aria-label":F(`@astryx.typeahead.loading`)})}),ke.render((0,oR.jsx)(`div`,{id:ce,role:`listbox`,"aria-label":F(`@astryx.typeahead.searchResults`),...U(V(`typeahead-dropdown`),{className:`x9f619 xuyqlj2 x1odjw0f x9epnlk`}),children:L.length===0&&ve?(0,oR.jsx)(`div`,{role:`option`,"aria-disabled":`true`,...U(V(`typeahead-empty-state`),{className:`x1b2ylru x2b8uid x141an7d xv1l7n4`}),children:I}):(()=>{let e=0,t=t=>{let n=e++,i=Ht(t.id,n),a=i===He;return(0,oR.jsxs)(`div`,{id:Be(n),role:`option`,"aria-selected":a,tabIndex:-1,onClick:()=>Ie(t),onMouseEnter:()=>Ve(n),...z(lR.item,uR[w],n===me&&lR.itemHighlighted,a&&lR.itemSelected),children:[(0,oR.jsx)(`span`,{className:`x78zum5 x98rzlu xeuugli xb3r6kr`,children:r?r(t):(0,oR.jsx)(eR,{item:t,xstyle:lR.defaultItem})}),a&&(0,oR.jsx)(nu,{icon:`check`,size:`sm`,color:`primary`})]},i)};return nn(L,{ungroupedFirst:!0}).map(e=>{let n=e.items.map(t);return e.heading==null?n:(0,oR.jsxs)(`div`,{role:`group`,"aria-label":e.heading,children:[(0,oR.jsx)(`div`,{"aria-hidden":`true`,className:`xf314gf x1xye8es xy143xn x141an7d x1ltkj2j xv1l7n4 x87ps6o`,children:e.heading}),n]},`group-${e.heading}`)})})()}),{placement:`below`,alignment:`start`,offset:St[`--spacing-1`],xstyle:[lR.popover,s!=null&&lR.popoverCustomWidth(s)]})]})},dR.displayName=`BaseTypeahead`}));function pR({ref:e,href:t,isDisabled:n,LinkComponent:r,linkStyleProps:i,labelContent:a,icon:o,endContent:s,removeButton:c,onClick:l,onMouseUp:u,...d}){let f=(0,mR.useRef)(null),p=(0,mR.useRef)(null),{onClick:m,onMouseUp:h}=cS({containerRef:f,interactiveRef:p,href:t,disabled:n});return(0,hR.jsxs)(`span`,{ref:yr(e,f),...d,onClick:n?l:$t(l,m),onMouseUp:n?u:$t(u,h),children:[o,(0,hR.jsx)(r,{ref:p,href:t,"aria-disabled":n||void 0,...i,children:a}),s,c]})}var mR,hR,gR=o((()=>{mR=u(f(),1),fS(),W(),xr(),hR=G(),pR.displayName=`TokenLink`}));function _R({label:e,size:t=`md`,color:n=`default`,icon:r,isDisabled:i=!1,onRemove:a,onClick:o,href:s,description:c,endContent:l,isLabelHidden:u=!1,xstyle:d,className:f,style:p,"data-testid":m,ref:h,...g}){let _=bf(),v=wu(),y=Pu({href:s,onClick:o,isDisabled:i}),b=o??(y===`button`?()=>{}:null),x=a!=null&&(0,vR.jsx)(`button`,{type:`button`,"aria-label":_(`@astryx.token.remove`,{label:e}),onClick:e=>{e.stopPropagation(),a(e)},disabled:i,...Rn.focusVisible(yR.removeButton),children:(0,vR.jsx)(nu,{icon:`close`,size:`xsm`,color:`inherit`})}),S=(0,vR.jsxs)(vR.Fragment,{children:[r,(0,vR.jsx)(`span`,{...{0:{className:`xb3r6kr xlyipyv xuxw1ft xeuugli`},1:{className:`xlyipyv xeuugli x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr x1hyvwdk xuxw1ft xc342km`}}[!!u<<0],children:e}),l,x]}),C={"data-testid":m,...u?{"aria-label":e}:{},...c==null?{}:{"aria-description":c}};return y===`link`?a==null?(0,vR.jsx)(v,{ref:h,href:s,...U(V(`token`,{color:n,size:t}),Rn.focusVisible(yR.base,bR[t],xR[n],yR.interactive,Iu.backgroundImage,i&&yR.disabled,d),f,p),...g,...i?{"aria-disabled":!0}:{},...C,children:S}):(0,vR.jsx)(pR,{ref:h,href:s,isDisabled:i,LinkComponent:v,icon:r,endContent:l,removeButton:x,linkStyleProps:{className:`xmper1u x16khyan x1heor9g x1a2a7pz xb3r6kr xeuugli`},labelContent:(0,vR.jsx)(`span`,{...{0:{className:`xb3r6kr xlyipyv xuxw1ft xeuugli`},1:{className:`xlyipyv xeuugli x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr x1hyvwdk xuxw1ft xc342km`}}[!!u<<0],children:e}),...U(V(`token`,{color:n,size:t}),Rn.focusWithin(yR.base,bR[t],xR[n],yR.interactive,Iu.backgroundImage,i&&yR.disabled,d),f,p),...g,...C}):b==null?(0,vR.jsx)(`span`,{ref:h,...U(V(`token`,{color:n,size:t}),z(yR.base,bR[t],xR[n],i&&yR.disabled,d),f,p),...g,...C,children:S}):(0,vR.jsxs)(`span`,{ref:h,onClick:i?void 0:e=>{e.target.closest(`button, a`)||b(e)},...U(V(`token`,{color:n,size:t}),Rn.focusWithin(yR.base,bR[t],xR[n],yR.interactive,Iu.backgroundImage,i&&yR.disabled,d),f,p),...g,...C,children:[r,(0,vR.jsx)(`button`,{type:`button`,onClick:b,disabled:i,className:`xmper1u x16khyan x1heor9g x1a2a7pz xb3r6kr xeuugli`,children:(0,vR.jsx)(`span`,{...{0:{className:`xb3r6kr xlyipyv xuxw1ft xeuugli`},1:{className:`xlyipyv xeuugli x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr x1hyvwdk xuxw1ft xc342km`}}[!!u<<0],children:e})}),l,x]})}var vR,yR,bR,xR,SR=o((()=>{B(),lu(),W(),Eu(),Fu(),gR(),H(),zn(),Lu(),Ef(),vR=G(),yR={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}},bR={sm:{kZKoxP:`xzydfjl`,kGuDYH:`x141an7d`,kg3NbH:`xf314gf`,$$css:!0},md:{kZKoxP:`xrmxcn7`,kg3NbH:`xf314gf`,$$css:!0},lg:{kZKoxP:`x102lyln`,kg3NbH:`xf314gf`,$$css:!0}},xR={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}},_R.displayName=`Token`})),CR=o((()=>{SR()})),wR=o((()=>{NL(),dI(),zI(),GI(),JI(),ZI(),B(),W(),H(),aI(),jx(),Et(),RS(),mw(),Ei(),Ef(),hx(),ux(),FE(),QF(),zn(),lu(),wI(),yf(),BD(),PA(),qa(),nw(),Sf(),un(),uu(),En(),mu(),lA(),wr(),Hi(),Nu(),JA(),ED(),$E(),rD(),aD(),ox(),PT(),Lu(),TT(),wl(),$T(),BL(),Pt(),qk(),HC(),Ji(),pa(),ga(),Fk(),Rk(),xr(),Ax(),xw(),vT(),QE(),JD(),$D(),KL(),cO(),eA(),vA(),bA(),$L(),fR(),CR(),wL()})),TR,ER,DR,OR,kR,AR,jR,MR,NR,PR,FR,IR,LR,RR,zR,BR,VR,HR,UR,WR,GR,KR,qR,JR,YR,XR,ZR,QR,$R,ez,tz,nz,rz,iz,az,oz,sz,cz,lz,uz,dz,fz,pz,mz=o((()=>{hb(),TR=N_()({id:!0,user_id:!0,slug:!0,type:!0,owner_login:!0,requests:!0,bandwidthBytes:!0,lastSeen:!0,url:!0}),ER=N_()({id:!0,userCount:!0,projectCount:!0,deploymentCount:!0,projects:!0,deployments:!0,siteDomain:!0,tz:!0,topProjects:A_({items:{node:TR}})}),DR={dashboard:{view:ER}},OR=N_()({id:!0,allOk:!0,checks:!0,checkedAt:!0}),kR={health:{view:OR}},AR=N_()({id:!0,lines:!0,lastSeq:!0,terminal:!0,logsComplete:!0}),jR=N_()({id:!0,data:!0}),MR=(e,t)=>({buildLogs:{view:AR,args:{id:e,since:t}}}),NR=(e,t,n)=>({deploymentLogs:{view:jR,args:{id:e,since:t,limit:n}}}),PR=N_()({id:!0,users:!0,search:!0,page:!0,totalPages:!0,tz:!0}),FR=N_()({id:!0,projects:!0,search:!0,page:!0,totalPages:!0,siteDomain:!0,tz:!0}),IR=N_()({id:!0,deployments:!0,search:!0,page:!0,totalPages:!0,tz:!0}),LR=e=>({usersPage:{view:PR,args:{path:e}}}),RR=e=>({projectsPage:{view:FR,args:{path:e}}}),zR=e=>({deploymentsPage:{view:IR,args:{path:e}}}),BR=N_()({limits:!0,plans:!0,id:!0,user:!0,projects:!0,deploysToday:!0,usage:!0,tz:!0}),VR=N_()({id:!0,project:!0,deployments:!0,resources:!0,owner:!0,teamMembers:!0,pendingTeamInvitations:!0,domains:!0,builds:!0,zeroTrust:!0,cfAccountId:!0,deployUrl:!0,tz:!0}),HR=N_()({id:!0,deployment:!0,project:!0,manifest:!0,canCancel:!0,tz:!0}),UR=N_()({id:!0,build:!0,tz:!0}),WR=e=>({userDetail:{view:BR,args:{path:e}}}),GR=e=>({projectDetail:{view:VR,args:{path:e}}}),KR=e=>({deploymentDetail:{view:HR,args:{path:e}}}),qR=e=>({buildDetail:{view:UR,args:{path:e}}}),JR=N_()({id:!0,allTime:!0,last30Days:!0,tz:!0}),YR=N_()({id:!0,enabled:!0,entries:!0,directEntries:!0,admission:!0,connections:!0,initialized:!0,revision:!0,methods:!0,protection:!0,invitations:!0,page:!0,totalPages:!0,emailEnabled:!0,connectCommand:!0,inviteUrl:!0,result:!0,tz:!0}),XR=N_()({id:!0,invitations:!0,page:!0,totalPages:!0,tz:!0}),ZR=e=>({cliVersions:{view:JR,args:{path:e}}}),QR=e=>({signupControl:{view:YR,args:{path:e}}}),$R=e=>({invitations:{view:XR,args:{path:e}}}),ez=N_()({id:!0,data:!0,tested:!0}),tz=N_()({id:!0,kind:!0,connectionId:!0,callbackUrl:!0}),nz=N_()({id:!0,configuration:!0,label:!0,revision:!0,callbackUrl:!0}),rz=e=>({authSettings:{view:ez,args:{path:e}}}),iz=e=>({authNew:{view:tz,args:{path:e}}}),az=e=>({authEdit:{view:nz,args:{path:e}}}),oz=N_()({id:!0,policy:!0,management:!0,senderDomain:!0}),sz=N_()({id:!0,projectId:!0,project:!0,month:!0,attempts:!0,received:!0,monthlyLimit:!0,burstLimit:!0,isSuspended:!0,domains:!0,destinations:!0,senderDomain:!0,tz:!0}),cz=e=>({emailSettings:{view:oz,args:{path:e}}}),lz=e=>({emailProject:{view:sz,args:{path:e}}}),uz=N_()({id:!0,configured:!0,enabled:!0,status:!0,accountId:!0,teamDomain:!0,identityProviderIds:!0,policyIds:!0,protectNewProjects:!0,operation:!0,lastError:!0,checked:!0,live:!0,projects:!0}),dz=e=>({zeroTrust:{view:uz,args:{path:e}}}),fz=N_()({id:!0,catalog:!0,accounts:!0,selectedPlanId:!0}),pz=e=>({plans:{view:fz,args:{path:e}}})}));function hz({text:e,label:t=`Copy`}){let[n,r]=(0,gz.useState)(!1);return(0,gz.useEffect)(()=>{if(!n)return;let e=setTimeout(()=>r(!1),1500);return()=>clearTimeout(e)},[n]),(0,_z.jsx)(Y,{type:`button`,size:`sm`,label:n?`Copied!`:t,onClick:()=>{navigator.clipboard.writeText(e).then(()=>r(!0))}})}var gz,_z,vz=o((()=>{jx(),gz=u(f(),1),_z=G()}));function yz(e,t){return e.status===`failed`?`failed`:e.status===`live`?e.id===t?`live`:e.retained?`retained`:`evicted`:e.status}function bz(e){switch(e){case`live`:return`color: #16a34a; font-weight: 600`;case`retained`:return`color: #16a34a`;case`evicted`:return`color: #888`;case`failed`:case`canceled`:return`color: #dc2626`;case`canceling`:return`color: #ca8a04`;default:return}}function xz({deployments:e,activeDeploymentId:t,showProject:n,tz:r}){if(e.length===0)return q(`p`,{children:q(`em`,{children:`No deployments found.`})});let i=[{key:`id`,header:`ID`,width:UF(1,{minWidth:115}),renderCell:e=>q(`a`,{className:`void-admin-deployment-link`,href:`/admin/deployments/${e.id}`,title:e.id,children:e.id})}];return n&&i.push({key:`project_slug`,header:`Project`,width:UF(1,{minWidth:115}),renderCell:e=>e.project_slug?q(`a`,{className:`void-admin-deployment-link`,href:`/admin/projects/${e.project_id}`,title:e.project_slug,children:e.project_slug}):`-`}),i.push({key:`status`,header:`Status`,width:WF(88),renderCell:e=>{let n=yz(e,t??e.active_deployment_id);return q(`span`,{style:bz(n),children:n})}},{key:`source`,header:`Source`,width:WF(84),renderCell:e=>e.source??`-`},{key:`cli_version`,header:`CLI`,width:WF(64),renderCell:e=>e.cli_version??`-`},{key:`commit`,header:`Commit`,width:WF(90),renderCell:e=>e.commit?.slice(0,7)??`-`},{key:`error_message`,header:`Error`,width:UF(1.8,{minWidth:180}),renderCell:e=>e.error_message?J(`div`,{className:`void-admin-deployment-error`,children:[q(Na,{className:`void-admin-deployment-error-message`,maxLines:1,children:e.error_message}),q(hz,{text:e.error_message})]}):`-`},{key:`created_at`,header:`Created`,width:WF(200),renderCell:e=>CF(e.created_at,r)}),q(ML,{className:`void-admin-deployments-table`,data:[...e],columns:i,textOverflow:`truncate`,hasHover:!0})}var Sz=o((()=>{wR(),qa(),vz(),kF(),Ob()}));function Cz({url:e}){return q(Of,{as:`a`,className:`void-admin-url`,href:e,isExternalLink:!0,hasUnderline:!0,title:e,children:e.replace(/^https:\/\//,``)})}var wz=o((()=>{Lf(),Ob()}));function Tz({projects:e,siteDomain:t,tz:n}){return J(Db.Fragment,{children:[J(ML,{className:`void-admin-projects-table`,hasHover:!0,children:[q(KI,{children:J(Z,{children:[q($,{children:`Slug`}),q($,{children:`URL`}),q($,{children:`Owner`}),q($,{children:`Type`}),q($,{children:`Created`}),q($,{children:`Last Deploy`})]})}),q(YI,{children:e.map(e=>J(Z,{children:[q(Q,{children:q(`a`,{href:`/admin/projects/${e.id}`,children:e.slug})}),q(Q,{children:q(Cz,{url:e.url??`https://${e.slug}.${t}`})}),q(Q,{children:e.owner_login?q(`a`,{href:`/admin/users/${e.user_id}`,children:e.owner_login}):`-`}),q(Q,{children:e.type}),q(Q,{children:CF(e.created_at,n)}),q(Q,{children:e.last_deploy?J(Db.Fragment,{children:[q(`span`,{style:`display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:10px;vertical-align:middle;background:${e.last_deploy_status===`failed`?`#dc2626`:`#16a34a`}`}),e.last_deploy_id?q(`a`,{href:`/admin/deployments/${e.last_deploy_id}`,children:CF(e.last_deploy,n)}):CF(e.last_deploy,n)]}):`-`})]},e.id))})]}),e.length===0&&q(`p`,{children:q(`em`,{children:`No projects found.`})})]})}var Ez=o((()=>{wR(),kF(),wz(),Ob()}));function Dz({checkNames:e}){let t=tb(),[n,r]=(0,Oz.useState)(null),[i,a]=(0,Oz.useState)(`loading`),o=nb(OR,n);(0,Oz.useEffect)(()=>{let e=!0,n=t.retain(kR),i=async n=>{try{let{health:i}=await t.request(kR,{mode:n});if(!i)throw Error(`Health data is unavailable.`);e&&(r(i),a(`ready`))}catch{e&&a(`unavailable`)}};i(`stale-while-revalidate`);let o=setInterval(()=>void i(`network-only`),3e4);return()=>{e=!1,clearInterval(o),n.dispose()}},[t]);let s=new Map(o?.checks.map(e=>[e.name,e])),c=i===`ready`?!o||e.some(e=>!s.has(e))?`unavailable`:o.allOk?`healthy`:`error`:i;return(0,kz.jsx)(jF,{id:`health-status`,title:`System Status`,state:c,statusLabel:c===`healthy`?`All services healthy`:c===`error`?`System checks failed`:c===`loading`?`Checking system status`:`System status unavailable`,headerAccessory:(0,kz.jsx)(AF,{checkedAt:o?.checkedAt,unavailable:i===`unavailable`}),children:(0,kz.jsx)(`ul`,{id:`health-checks`,className:`void-admin-health-checks`,"aria-label":`Service health`,children:e.map(e=>{let t=Az[e]??e,n=i===`ready`?s.get(e):void 0,r=i===`loading`?`loading`:n?n.ok?`healthy`:`error`:`unavailable`,a=i===`ready`?n?n.ok?``:n.error||`Health check failed.`:`Unavailable`:``,o=r===`loading`?`Pending`:r===`healthy`?`Healthy`:a||`Unavailable`,c=n?.ok&&n.latencyMs>0?` (${n.latencyMs}ms)`:``;return(0,kz.jsxs)(`li`,{className:`void-admin-health-check`,"data-state":r,"aria-label":`${t}: ${o}`,title:`${t}: ${o}${c}`,children:[(0,kz.jsx)(`span`,{className:`void-admin-health-indicator`,"aria-hidden":`true`,children:r===`healthy`?(0,kz.jsx)(Up,{size:16}):r===`error`?(0,kz.jsx)(Kh,{size:16}):r===`unavailable`?(0,kz.jsx)(uh,{size:16}):null}),(0,kz.jsx)(Da,{content:a,isEnabled:!!a,hasHoverIndication:!1,children:(0,kz.jsxs)(`span`,{className:`void-admin-health-service`,tabIndex:a?0:void 0,children:[(0,kz.jsx)(`span`,{className:`void-admin-health-label`,children:t}),a&&(0,kz.jsx)(`span`,{className:`void-admin-health-detail`,children:a})]})})]},e)})})})}var Oz,kz,Az,jz=o((()=>{uu(),Jh(),Oz=u(f(),1),hb(),mz(),PF(),kz=G(),Az={api:`API`,proxy:`Proxy`,dashboard:`Dashboard`,dispatch:`Dispatch`,db:`Database`}})),Mz=c({DashboardPage:()=>Lz});function Nz(e){if(e<1024)return`${e} B`;let t=[`KB`,`MB`,`GB`,`TB`],n=e,r=-1;for(;n>=1024&&r<t.length-1;)n/=1024,r++;return`${n.toFixed(n>=10?0:1)} ${t[r]}`}function Pz({topProjects:e,siteDomain:t,tz:n}){let[r]=rb({items:{node:TR}},e);return q(OC,{title:`Top Projects by Traffic (last hour)`,children:r.length>0?J(ML,{className:`void-admin-top-projects-table`,hasHover:!0,children:[q(KI,{children:J(Z,{children:[q($,{children:`#`}),q($,{children:`Project`}),q($,{children:`Owner`}),q($,{children:`Requests`}),q($,{children:`Bandwidth`}),q($,{children:`Last Seen`})]})}),q(YI,{children:r.map(({node:e},r)=>q(Fz,{projectRef:e,index:r,siteDomain:t,tz:n},e.id))})]}):q(Na,{type:`supporting`,children:`No recent project traffic in the last hour.`})})}function Fz({projectRef:e,index:t,siteDomain:n,tz:r}){let i=nb(TR,e);return J(Z,{children:[q(Q,{children:t+1}),q(Q,{children:J(`div`,{className:`void-admin-top-project`,children:[J(`div`,{className:`void-admin-top-project-heading`,children:[q(`a`,{className:`void-admin-top-project-name`,href:`/admin/projects/${i.id}`,title:i.slug,children:i.slug}),q(`span`,{className:`void-admin-top-project-type`,children:i.type})]}),q(`div`,{className:`void-admin-top-project-meta`,children:q(Cz,{url:i.url??`https://${i.slug}.${n}`})})]})}),q(Q,{children:i.owner_login?q(`a`,{href:`/admin/users/${i.user_id}`,children:i.owner_login}):`-`}),q(Q,{children:TF(i.requests)}),q(Q,{children:Nz(i.bandwidthBytes)}),q(Q,{children:CF(i.lastSeen,r)})]})}function Iz({topProjects:e,siteDomain:t,tz:n}){let r=(0,Rz.useSyncExternalStore)(Bz,Vz,Hz),i=q(OC,{title:`Top Projects by Traffic (last hour)`,children:J(`div`,{className:`void-admin-card-loading`,children:[q(Wn,{width:`100%`,height:48}),q(Wn,{width:`100%`,height:48,index:1})]})});return r?q(zz,{fallback:i,children:q(Pz,{topProjects:e,siteDomain:t,tz:n})}):i}function Lz({platformName:e,username:t,healthCheckNames:n}){let{dashboard:r}=ib(DR,{mode:`stale-while-revalidate`}),i=nb(ER,r);if(!i)throw Error(`Dashboard data is unavailable.`);return J(mF,{platformName:e,title:`Dashboard`,username:t,children:[q(Ba,{level:1,children:`Dashboard`}),q(Dz,{checkNames:n}),J(`div`,{className:`void-admin-metrics`,children:[q(OC,{title:`Users`,href:`/admin/users`,children:q(Na,{type:`display-3`,display:`block`,hasTabularNumbers:!0,children:TF(i.userCount)})}),q(OC,{title:`Projects`,href:`/admin/projects`,children:q(Na,{type:`display-3`,display:`block`,hasTabularNumbers:!0,children:TF(i.projectCount)})}),q(OC,{title:`Deployments`,href:`/admin/deployments`,children:q(Na,{type:`display-3`,display:`block`,hasTabularNumbers:!0,children:TF(i.deploymentCount)})})]}),J(`div`,{className:`void-admin-dashboard-sections`,children:[q(Iz,{topProjects:i.topProjects,siteDomain:i.siteDomain,tz:i.tz}),q(OC,{title:`Latest Projects`,children:q(Tz,{projects:i.projects,siteDomain:i.siteDomain,tz:i.tz})}),q(OC,{title:`Latest Deployments`,children:q(xz,{deployments:i.deployments,showProject:!0,tz:i.tz})})]})]})}var Rz,zz,Bz,Vz,Hz,Uz=o((()=>{$n(),wR(),qa(),Rz=u(f(),1),hb(),mz(),AC(),Sz(),kF(),_F(),Ez(),wz(),jz(),Ob(),zz=Rz.Suspense,Bz=()=>()=>{},Vz=()=>!0,Hz=()=>!1})),Wz=c({AdminLoginPage:()=>Gz});function Gz({providers:e,platformName:t}){return J(kb,{platformName:t,children:[J(`div`,{className:`void-auth-lead`,children:[J(`h1`,{id:`void-auth-title`,children:[`Sign in to administer `,t]}),q(`p`,{children:`Sign in with your administrator account.`})]}),q(`div`,{className:`void-auth-actions`,children:e.map(({id:e,label:t},n)=>J(`a`,{className:n===0?`void-auth-button void-auth-button-primary`:`void-auth-button`,href:`/admin/login/${encodeURIComponent(e)}`,children:[`Sign in with `,t]},e))}),e.length===0&&q(`p`,{children:`No administrator login methods are available. Resume setup from the installing CLI.`})]})}var Kz=o((()=>{Ab(),Ob()})),qz=c({LoginErrorPage:()=>Jz});function Jz({message:e,platformName:t}){return J(kb,{platformName:t,children:[q(`div`,{className:`void-auth-status void-auth-status-error`,"aria-label":`Error`,children:`!`}),J(`div`,{className:`void-auth-lead`,children:[q(`h1`,{id:`void-auth-title`,children:`Login failed`}),q(`p`,{children:e})]}),q(`a`,{className:`void-auth-button void-auth-button-primary`,href:`/admin/logout`,children:`Start a new sign-in`})]})}var Yz=o((()=>{Ab(),Ob()})),Xz,Zz,Qz,$z=o((()=>{Xz=1073741824,Zz={free:{requestsPerMonth:3e6,cpuMsPerRequest:10,maxCpuMsPerRequest:10,subRequestsPerInvocation:50,deploysPerDay:100,d1StorageBytes:1*Xz,r2StorageBytes:5*Xz,kvStorageBytes:1*Xz,aiNeuronsPerMonth:1e5,retainedDeployments:1,sandboxRuntimeSecondsPerMonth:1,sandboxMaxConcurrentInstances:1,concurrentBuilds:1,buildTimeoutMinutes:10},solo:{requestsPerMonth:1e7,cpuMsPerRequest:30,maxCpuMsPerRequest:3e4,subRequestsPerInvocation:50,deploysPerDay:500,d1StorageBytes:5*Xz,r2StorageBytes:25*Xz,kvStorageBytes:5*Xz,aiNeuronsPerMonth:3e5,retainedDeployments:5,sandboxRuntimeSecondsPerMonth:108e3,sandboxMaxConcurrentInstances:2,concurrentBuilds:2,buildTimeoutMinutes:15},pro:{requestsPerMonth:1e8,cpuMsPerRequest:50,maxCpuMsPerRequest:3e4,subRequestsPerInvocation:1e3,deploysPerDay:3e3,d1StorageBytes:10*Xz,r2StorageBytes:100*Xz,kvStorageBytes:25*Xz,aiNeuronsPerMonth:5e5,retainedDeployments:25,sandboxRuntimeSecondsPerMonth:72e4,sandboxMaxConcurrentInstances:10,concurrentBuilds:3,buildTimeoutMinutes:15},sponsored:{requestsPerMonth:0,cpuMsPerRequest:50,maxCpuMsPerRequest:3e4,subRequestsPerInvocation:1e3,deploysPerDay:0,d1StorageBytes:0,r2StorageBytes:0,kvStorageBytes:0,aiNeuronsPerMonth:0,retainedDeployments:0,sandboxRuntimeSecondsPerMonth:0,sandboxMaxConcurrentInstances:0,concurrentBuilds:6,buildTimeoutMinutes:20},custom:{requestsPerMonth:0,cpuMsPerRequest:0,maxCpuMsPerRequest:0,subRequestsPerInvocation:0,deploysPerDay:0,d1StorageBytes:0,r2StorageBytes:0,kvStorageBytes:0,aiNeuronsPerMonth:0,retainedDeployments:0,sandboxRuntimeSecondsPerMonth:0,sandboxMaxConcurrentInstances:0,concurrentBuilds:0,buildTimeoutMinutes:0}},Qz=[`requestsPerMonth`,`cpuMsPerRequest`,`maxCpuMsPerRequest`,`subRequestsPerInvocation`,`deploysPerDay`,`aiNeuronsPerMonth`,`retainedDeployments`,`sandboxRuntimeSecondsPerMonth`,`sandboxMaxConcurrentInstances`,`concurrentBuilds`,`buildTimeoutMinutes`]})),eB=c({PlanEditPage:()=>aB,PlanPreviewPage:()=>sB,PlanResultPage:()=>cB,PlansPage:()=>iB});function tB(e,t){return e===0?t===`buildTimeoutMinutes`?`60 minutes (platform maximum)`:`Unlimited`:e.toLocaleString(`en-US`)}function nB(e){let{plans:t}=ib(pz(e),{mode:`stale-while-revalidate`}),n=nb(fz,t);if(!n)throw Error(`Plans are unavailable.`);return n}function rB({action:e,id:t,revision:n,label:r,archived:i}){return J(`form`,{method:`post`,action:`${uB}/preview`,children:[q(`input`,{type:`hidden`,name:`action`,value:e}),q(`input`,{type:`hidden`,name:`id`,value:t}),q(`input`,{type:`hidden`,name:`revision`,value:n}),i!==void 0&&q(`input`,{type:`hidden`,name:`archived`,value:String(i)}),q(Y,{type:`submit`,label:r,variant:`secondary`})]})}function iB({path:e,platformName:t,username:n}){let{catalog:r,accounts:i}=nB(e),a=r.reconciliation&&!r.reconciliation.complete;return J(mF,{platformName:t,username:n,title:`Plans`,children:[J(`div`,{className:`void-admin-plan-heading`,children:[q(`h1`,{children:`Plans`}),q(Y,{href:`${uB}/new`,label:`Add plan`})]}),J(`p`,{children:[`Default for new accounts:`,` `,q(`strong`,{children:r.plans.find(e=>e.id===r.defaultPlanId)?.name}),`. Changes to this default leave existing accounts on their current plans.`]}),a&&J(`section`,{"aria-label":`Pending plan update`,children:[q(`h2`,{children:`Account updates pending`}),q(`p`,{children:`Finish this update before changing plans again. Recorded usage and billing periods are preserved.`}),r.reconciliation?.error&&q(`p`,{role:`alert`,children:r.reconciliation.error.message}),J(`form`,{method:`post`,action:`${uB}/resume`,children:[q(`input`,{type:`hidden`,name:`revision`,value:r.revision}),q(Y,{type:`submit`,label:`Continue account updates`})]})]}),J(ML,{children:[q(KI,{children:J(Z,{children:[q($,{children:`Plan`}),q($,{children:`Status`}),q($,{children:`Accounts`}),q($,{children:`Monthly requests`}),q($,{children:`Build size`}),q($,{children:`Actions`})]})}),q(YI,{children:r.plans.map(e=>J(Z,{children:[J(Q,{children:[q(`a`,{href:`${uB}/${e.id}/edit`,children:e.name}),q(`div`,{children:q(`code`,{children:e.id})})]}),q(Q,{children:e.archived?`Archived`:e.id===r.defaultPlanId?`Default`:`Active`}),q(Q,{children:i.find(t=>t.planId===e.id)?.count??0}),q(Q,{children:tB(e.limits.requestsPerMonth)}),q(Q,{children:e.buildInstanceType===`standard-3`?`Standard`:`Large`}),q(Q,{children:q(Y,{href:`${uB}/${e.id}/edit`,label:`Edit`,variant:`secondary`,size:`sm`})})]},e.id))})]})]})}function aB({path:e,platformName:t,username:n}){let{catalog:r,accounts:i,selectedPlanId:a}=nB(e),o=r.plans.find(e=>e.id===a),s=r.reconciliation&&!r.reconciliation.complete,c=i.find(e=>e.planId===o?.id)?.count??0;return J(mF,{platformName:t,username:n,title:o?`Edit ${o.name}`:`Add plan`,children:[q(`h1`,{children:o?`Edit ${o.name}`:`Add plan`}),s?J(`p`,{children:[`Finish the pending `,q(`a`,{href:uB,children:`account update`}),` before changing plans.`]}):J(Db.Fragment,{children:[J(`form`,{method:`post`,action:`${uB}/preview`,className:`void-admin-plan-form`,children:[q(`input`,{type:`hidden`,name:`action`,value:o?`set`:`add`}),q(`input`,{type:`hidden`,name:`revision`,value:r.revision}),o?J(Db.Fragment,{children:[q(`input`,{type:`hidden`,name:`id`,value:o.id}),J(`p`,{children:[`Plan ID: `,q(`code`,{children:o.id}),` · `,c,` accounts`,o.archived?` · Archived`:``]})]}):q(YA,{label:`Plan ID`,name:`id`,required:!0,maxLength:64,description:`A stable ID using lowercase letters, digits, and hyphens.`}),q(YA,{label:`Display name`,name:`name`,initialValue:o?.name??``,required:!0,maxLength:80}),o?J(Db.Fragment,{children:[q(`p`,{children:`0 means unlimited by the plan. Build timeouts always have a maximum of 60 minutes.`}),dB.map(e=>J(`section`,{children:[q(`h2`,{children:e.title}),q(`div`,{className:`void-admin-plan-fields`,children:e.keys.map(e=>q($A,{name:e,label:fB[e],initialValue:o.limits[e],min:0,max:e===`buildTimeoutMinutes`?60:void 0,required:!0},`${o.id}:${e}`))})]},e.title)),q(`p`,{children:`The default CPU limit must fit the maximum app CPU limit. An unlimited default requires an unlimited maximum.`}),q(`h2`,{children:`Build size and permissions`}),q(ZA,{label:`Build size`,name:`buildInstanceType`,initialValue:o.buildInstanceType,options:[{value:`standard-3`,label:`Standard · 2 vCPU, 8 GiB`},{value:`standard-4`,label:`Large · 4 vCPU, 12 GiB`}]}),q(QA,{label:`Allow short project slugs (five characters or fewer)`,name:`allowShortSlugs`,submitValue:`true`,initialValue:o.allowShortSlugs}),q(`p`,{children:`Existing URLs remain available. Storage figures are informational; static deployment retention is unchanged.`})]}):q(ZA,{label:`Copy limits, build size, and permissions from`,name:`copyFrom`,initialValue:r.defaultPlanId,options:r.plans.map(e=>({value:e.id,label:`${e.name} (${e.id})`}))}),q(Y,{type:`submit`,label:`Review changes`})]}),o&&J(`section`,{children:[q(`h2`,{children:`Plan management`}),J(`div`,{className:`void-admin-plan-actions`,children:[!o.archived&&o.id!==r.defaultPlanId&&q(rB,{action:`default`,id:o.id,revision:r.revision,label:`Make signup default`}),o.id!==r.defaultPlanId&&q(rB,{action:`archive`,id:o.id,revision:r.revision,archived:!o.archived,label:o.archived?`Restore assignments`:`Archive plan`}),Object.hasOwn(Zz,o.id)&&q(rB,{action:`reset`,id:o.id,revision:r.revision,label:`Reset original limits`})]}),o.id===r.defaultPlanId&&q(`p`,{children:`Choose another signup default before archiving this plan.`}),q(`h2`,{children:`Remove plan`}),q(`p`,{children:`Accounts keep their recorded usage when moved to a replacement plan.`}),J(`form`,{method:`post`,action:`${uB}/preview`,className:`void-admin-plan-form`,children:[q(`input`,{type:`hidden`,name:`action`,value:`remove`}),q(`input`,{type:`hidden`,name:`id`,value:o.id}),q(`input`,{type:`hidden`,name:`revision`,value:r.revision}),q(ZA,{label:`Replacement plan`,name:`replacementPlanId`,initialValue:``,options:[...!c&&o.id!==r.defaultPlanId?[{value:``,label:`No replacement needed`}]:[{value:``,label:`Choose a replacement`}],...r.plans.filter(e=>e.id!==o.id&&!e.archived).map(e=>({value:e.id,label:`${e.name} (${e.id})`}))]}),q(Y,{type:`submit`,label:`Review removal`,variant:`destructive`})]})]})]})]})}function oB(e,t){return t?[{label:`Display name`,before:e?.name??`—`,after:t.name},{label:`Assignments`,before:e?.archived?`Archived`:e?`Active`:`—`,after:t.archived?`Archived`:`Active`},{label:`Build size`,before:e?.buildInstanceType??`—`,after:t.buildInstanceType},{label:`Short project slugs`,before:e?e.allowShortSlugs?`Allowed`:`Not allowed`:`—`,after:t.allowShortSlugs?`Allowed`:`Not allowed`},...Qz.map(n=>({label:fB[n],before:e?tB(e.limits[n],n):`—`,after:tB(t.limits[n],n)}))].filter(e=>e.before!==e.after):[{label:`Plan`,before:e.name,after:`Removed`}]}function sB({preview:e,platformName:t,username:n}){let{before:r,after:i,target:a}=e,o=oB(r.plans.find(e=>e.id===a),i.plans.find(e=>e.id===a));if(r.defaultPlanId!==i.defaultPlanId&&o.push({label:`Signup default`,before:r.defaultPlanId,after:i.defaultPlanId}),e.action===`remove`&&e.body.replacementPlanId){o.push({label:`Move accounts to`,before:a,after:String(e.body.replacementPlanId)});let t=i.plans.find(t=>t.id===e.body.replacementPlanId);t&&o.push(...oB(r.plans.find(e=>e.id===a),t).filter(e=>e.label!==`Display name`))}return J(mF,{platformName:t,username:n,title:`Review plan change`,children:[q(`h1`,{children:`Review plan change`}),J(`p`,{children:[q(`strong`,{children:e.affectedAccounts}),` existing accounts affected.`]}),J(ML,{children:[q(KI,{children:J(Z,{children:[q($,{children:`Setting`}),q($,{children:`Current`}),q($,{children:`Proposed`})]})}),q(YI,{children:o.map(e=>J(Z,{children:[q($,{children:e.label}),q(Q,{children:e.before}),q(Q,{children:e.after})]},e.label))})]}),e.warnings.map(e=>q(`p`,{role:`alert`,children:e},e)),e.overLimitAccounts.length>0&&J(`section`,{children:[q(`h2`,{children:`Accounts above proposed quotas`}),J(`p`,{children:[`This preview samples up to `,e.usageSampleSize,` accounts. Other affected accounts may also be above the limits.`]}),q(`ul`,{children:e.overLimitAccounts.map(e=>J(`li`,{children:[q(`a`,{href:`/admin/users/${e.id}`,children:e.login}),`:`,` `,e.reasons.map(e=>fB[e]??e).join(`, `)]},e.id))})]}),q(`p`,{children:`Recorded usage and billing periods are preserved. Lowering quotas can restrict existing apps. Raising quotas leaves manual administrator suspensions in place.`}),J(`form`,{method:`post`,action:`${uB}/apply`,className:`void-admin-plan-actions`,children:[q(`input`,{type:`hidden`,name:`action`,value:e.action}),q(`input`,{type:`hidden`,name:`id`,value:a}),q(`input`,{type:`hidden`,name:`revision`,value:e.expectedRevision}),q(`input`,{type:`hidden`,name:`body`,value:JSON.stringify(e.body)}),q(Y,{type:`submit`,label:`Apply changes`,variant:e.action===`remove`?`destructive`:`primary`}),q(Y,{href:uB,label:`Cancel`,variant:`secondary`})]})]})}function cB({initial:e,platformName:t,username:n}){let[r,i]=(0,lB.useState)(e),[a,o]=(0,lB.useState)(e.processed),[s,c]=(0,lB.useState)(!1);return(0,lB.useEffect)(()=>{i(e),o(e.processed),c(!e.complete&&!e.error);let t=new AbortController,n,r=e;async function a(){try{let s=await fetch(`${uB}/sync`,{method:`POST`,headers:{"Content-Type":`application/json`,Accept:`application/json`},body:JSON.stringify({expectedRevision:e.revision}),signal:AbortSignal.any([t.signal,AbortSignal.timeout(3e5)]),redirect:`error`});if(!s.ok)throw Error(`Account updates paused. Reload plans to inspect the saved configuration, then retry.`);let l=await s.json();if(l.revision!==e.revision||typeof l.complete!=`boolean`||!Number.isSafeInteger(l.processed)||l.processed<0||!l.complete&&!l.error&&(l.processed<=0||l.cursor===r.cursor))throw Error(`Account updates stopped making progress. Inspect plans, then retry.`);if(t.signal.aborted)return;i(l),o(e=>e+l.processed),r=l,(l.complete||l.error)&&c(!1),!l.complete&&!l.error&&(n=setTimeout(()=>void a(),1e3))}catch(e){t.signal.aborted||(c(!1),i(t=>({...t,error:e instanceof Error?e.message:`Account updates paused. Retry from plans.`})))}}return!e.complete&&!e.error&&a(),()=>{t.abort(),clearTimeout(n)}},[e]),J(mF,{platformName:t,username:n,title:`Plan update`,children:[q(`h1`,{children:`Plan saved`}),J(`p`,{role:`status`,children:[r.complete?`Account updates complete.`:r.error?`Account updates paused.`:`Updating accounts…`,` `,a,` accounts updated in this session.`]}),r.error&&q(`p`,{role:`alert`,children:r.error}),!r.complete&&J(`form`,{method:`post`,action:`${uB}/resume`,children:[q(`input`,{type:`hidden`,name:`revision`,value:r.revision}),q(Y,{type:`submit`,label:`Continue account updates`,isDisabled:s})]}),q(`p`,{children:`Usage totals and billing periods are preserved. If you leave this page, you can continue any pending updates from Plans.`})]})}var lB,uB,dB,fB,pB=o((()=>{jx(),wR(),$z(),lB=u(f(),1),hb(),mz(),nj(),_F(),Ob(),uB=`/admin/config/plans`,dB=[{title:`Requests`,keys:[`requestsPerMonth`,`cpuMsPerRequest`,`maxCpuMsPerRequest`,`subRequestsPerInvocation`,`aiNeuronsPerMonth`]},{title:`Deployments and builds`,keys:[`deploysPerDay`,`retainedDeployments`,`concurrentBuilds`,`buildTimeoutMinutes`]},{title:`Sandbox`,keys:[`sandboxRuntimeSecondsPerMonth`,`sandboxMaxConcurrentInstances`]}],fB={requestsPerMonth:`Requests per billing month`,cpuMsPerRequest:`Default CPU per request (ms)`,maxCpuMsPerRequest:`Maximum app CPU per request (ms)`,subRequestsPerInvocation:`Subrequests per invocation`,aiNeuronsPerMonth:`AI neurons per billing month`,deploysPerDay:`Deployments per day`,retainedDeployments:`Retained Worker deployments`,concurrentBuilds:`Concurrent builds`,buildTimeoutMinutes:`Build timeout (minutes)`,sandboxRuntimeSecondsPerMonth:`Sandbox runtime per billing month (seconds)`,sandboxMaxConcurrentInstances:`Concurrent Sandbox instances`}})),mB=c({AuthSettingsPage:()=>hB});function hB({path:e,platformName:t,username:n}){let{authSettings:r}=ib(rz(e),{mode:`stale-while-revalidate`}),i=nb(ez,r);if(!i)throw Error(`Authentication settings are unavailable.`);let{data:a,tested:o}=i;return q(mF,{platformName:t,title:`Authentication settings`,username:n,children:J(`div`,{className:`void-admin-auth-settings`,children:[J(`header`,{className:`void-admin-auth-intro`,children:[q(Ba,{level:1,children:`Authentication`}),q(`p`,{children:`Manage how people reach the platform and sign in.`})]}),q(`section`,{"aria-labelledby":`platform-protection-heading`,children:q(OC,{title:`Platform protection`,titleId:`platform-protection-heading`,description:`Control access to the platform before visitors reach a login page.`,headerAccessory:q(VL,{label:a.protection?`Cloudflare Access enabled`:`Cloudflare Access not enabled`,variant:a.protection?`success`:`neutral`}),children:J(`div`,{className:`void-admin-auth-protection-details`,children:[J(`div`,{className:`void-admin-auth-protection-steps`,children:[J(OC,{title:`Enable Cloudflare Access`,headingLevel:3,children:[q(`p`,{children:`Create or connect an Access application and verify every platform origin. The installing CLI needs the installation's recovery credentials and Access setup permission.`}),q(`pre`,{children:`void platform config auth protection enable --installation <id>`})]}),J(OC,{title:`Disable Cloudflare Access`,headingLevel:3,children:[q(`p`,{children:`First change any signup policy that relies on Access.`}),q(`pre`,{children:`void platform config auth protection disable --installation <id>`})]})]}),q(`p`,{children:`Enabling or disabling platform protection signs out users and administrators. They’ll need to sign in again.`}),q(`p`,{children:`Disabling protection leaves the Cloudflare Access applications in place. Delete them in Cloudflare when you no longer need them.`}),q(`p`,{children:`Login methods and protection for individual apps are configured separately.`})]})})}),a.initialized?J(Db.Fragment,{children:[o&&q(`section`,{"aria-labelledby":`verified-login-heading`,children:J(OC,{title:`Login verified`,titleId:`verified-login-heading`,description:`Review this identity before linking or enabling the tested method.`,headerAccessory:q(VL,{label:`Ready to review`,variant:`success`}),children:[J(`dl`,{className:`void-admin-auth-identity`,children:[J(`div`,{children:[q(`dt`,{children:`Account`}),q(`dd`,{children:o.login||o.subject})]}),J(`div`,{children:[q(`dt`,{children:`Provider`}),q(`dd`,{children:o.issuer})]}),J(`div`,{children:[q(`dt`,{children:`Identity`}),q(`dd`,{children:o.subject})]})]}),q(`div`,{className:`void-admin-auth-actions`,children:[`link`,`enable`].map(e=>J(`form`,{method:`post`,action:`${gB}/connections/${encodeURIComponent(o.connection_id)}/${e}`,children:[q(`input`,{type:`hidden`,name:`revision`,value:o.revision}),q(`input`,{type:`hidden`,name:`testId`,value:o.id}),q(Y,{type:`submit`,label:e===`link`?`Link to my account`:`Enable tested configuration`,variant:e===`link`?`secondary`:`primary`})]},e))})]})}),q(`section`,{"aria-labelledby":`login-methods-heading`,children:J(OC,{title:`Login methods`,titleId:`login-methods-heading`,description:`Choose the identity providers people can use to sign in.`,headerAccessory:q(VL,{label:`${a.methods.filter(e=>e.enabled).length} active`,variant:`neutral`}),children:[a.methods.length?q(`div`,{className:`void-admin-auth-method-list`,children:a.methods.map(e=>J(`div`,{className:`void-admin-auth-method`,children:[J(`div`,{className:`void-admin-auth-method-info`,children:[J(`div`,{className:`void-admin-auth-method-title`,children:[q(`strong`,{children:e.label}),q(VL,{label:e.enabled?`Enabled`:`Disabled`,variant:e.enabled?`success`:`neutral`}),`activeRevision`in e&&e.activeRevision!==e.revision&&q(VL,{label:`Pending configuration`,variant:`warning`})]}),q(`span`,{className:`void-admin-auth-method-type`,children:_B.find(({kind:t})=>t===e.kind)?.label??e.kind})]}),J(`div`,{className:`void-admin-auth-actions`,children:[q(Y,{href:`${gB}/connections/${encodeURIComponent(e.id)}`,label:`Edit`,variant:`secondary`,size:`sm`}),q(`form`,{method:`post`,action:`${gB}/connections/${encodeURIComponent(e.id)}/test`,children:q(Y,{type:`submit`,label:`Test login`,variant:`secondary`,size:`sm`})}),e.enabled&&`revision`in e&&J(`form`,{method:`post`,action:`${gB}/connections/${encodeURIComponent(e.id)}/disable`,children:[q(`input`,{type:`hidden`,name:`revision`,value:e.revision}),q(Y,{type:`submit`,label:`Disable and revoke sessions`,variant:`destructive`,size:`sm`})]})]})]},e.id))}):q(`p`,{className:`void-admin-auth-empty`,children:`No login methods configured yet.`}),J(`div`,{className:`void-admin-auth-add-methods`,children:[q(`h3`,{children:`Add a login method`}),q(`div`,{className:`void-admin-auth-actions`,children:_B.map(({kind:e,label:t})=>q(Y,{href:`${gB}/new?kind=${e}`,label:t,variant:`secondary`,size:`sm`},e))})]})]})})]}):J(OC,{title:`Set up authentication settings`,children:[q(`p`,{children:`Initialize settings to manage your existing login methods here. Their configuration is preserved; you will sign in again.`}),q(`form`,{method:`post`,action:`${gB}/initialize`,children:q(Y,{type:`submit`,label:`Initialize settings`})})]}),q(`section`,{"aria-labelledby":`account-access-heading`,children:q(OC,{title:`Who can join?`,titleId:`account-access-heading`,description:`Set the signup policy, invite people, and manage individual grants on Access.`,children:q(Y,{href:`/admin/signup-control`,label:`Manage access`,variant:`secondary`})})})]})})}var gB,_B,vB=o((()=>{KL(),jx(),qa(),hb(),mz(),AC(),_F(),Ob(),gB=`/admin/config/auth`,_B=[{kind:`github`,label:`GitHub`},{kind:`google`,label:`Google`},{kind:`oidc`,label:`Generic OIDC`},{kind:`cloudflare-access`,label:`Cloudflare Access`}]}));function yB({configuration:e,revision:t,callbackUrl:n}){return J(`form`,{method:`post`,action:`${bB}/connections/${encodeURIComponent(e.id)}/configure`,style:`display: grid; gap: 12px; max-width: 700px`,children:[q(`input`,{type:`hidden`,name:`id`,value:e.id}),q(`input`,{type:`hidden`,name:`kind`,value:e.kind}),q(`input`,{type:`hidden`,name:`revision`,value:t??``}),q(`p`,{children:`Register this callback URL with the provider:`}),q(`pre`,{children:n}),q(YA,{label:`Connection ID`,name:`connectionId`,initialValue:e.id,isReadOnly:t!==null||e.kind===`github`||e.kind===`google`,required:!0}),q(YA,{label:`Login button label`,name:`label`,initialValue:e.label??``,maxLength:100,required:!0}),(e.kind===`oidc`||e.kind===`cloudflare-access`)&&q(YA,{label:`Issuer URL`,name:`issuer`,type:`url`,initialValue:e.issuer??``,required:!0}),q(YA,{label:`Client ID`,name:`clientId`,initialValue:e.clientId??``,required:!0}),q(YA,{label:`Client secret`,name:`clientSecret`,type:`password`,autoComplete:`new-password`,required:t===null}),t!==null&&q(`p`,{children:`Leave the secret blank to retain its saved value.`}),e.kind===`google`&&q(YA,{label:`Allowed Workspace domains`,name:`domains`,initialValue:e.allowedDomains?.join(`, `)??``,placeholder:`example.com, example.org`,description:`Leave blank to allow any Google account to authenticate. Signup remains controlled separately.`}),(e.kind===`oidc`||e.kind===`cloudflare-access`)&&q(YA,{label:`Allowed groups`,name:`groups`,initialValue:e.requiredGroups?.join(`, `)??``,description:`Comma-separated; leave blank to use the provider's access policy.`}),q(`p`,{children:`Save a pending configuration, then test it before enabling it.`}),q(Y,{type:`submit`,label:`Save configuration`})]})}var bB,xB=o((()=>{jx(),nj(),Ob(),bB=`/admin/config/auth`})),SB=c({AuthNewPage:()=>CB});function CB({path:e,platformName:t,username:n}){let{authNew:r}=ib(iz(e),{mode:`stale-while-revalidate`}),i=nb(tz,r);if(!i)throw Error(`Login method is unavailable.`);let{kind:a,connectionId:o,callbackUrl:s}=i;return J(mF,{platformName:t,title:`Add login method`,username:n,children:[q(`h1`,{children:`Add login method`}),q(yB,{configuration:{id:o,kind:a,label:a===`oidc`?`Company SSO`:a===`cloudflare-access`?`Cloudflare Access`:a===`github`?`GitHub`:`Google`},revision:null,callbackUrl:s})]})}var wB=o((()=>{hb(),mz(),xB(),_F(),Ob()})),TB=c({AuthEditPage:()=>EB});function EB({path:e,platformName:t,username:n}){let{authEdit:r}=ib(az(e),{mode:`stale-while-revalidate`}),i=nb(nz,r);if(!i)throw Error(`Login method is unavailable.`);let{configuration:a,revision:o,callbackUrl:s,label:c}=i;return J(mF,{platformName:t,title:`Edit login method`,username:n,children:[J(`h1`,{children:[`Edit `,c]}),q(yB,{configuration:a,revision:o,callbackUrl:s})]})}var DB=o((()=>{hb(),mz(),xB(),_F(),Ob()})),OB=c({AuthErrorPage:()=>kB});function kB({message:e,platformName:t,username:n}){return J(mF,{platformName:t,title:`Authentication settings`,username:n,children:[q(`h1`,{children:`Authentication settings`}),q(`p`,{children:e}),q(Y,{as:`a`,href:`/admin/logout`,label:`Sign in again`})]})}var AB=o((()=>{jx(),_F(),Ob()}));function jB({build:e}){let t=tb(),[n,r]=(0,MB.useState)(null),[i,a]=(0,MB.useState)(null),o=(0,MB.useRef)(null);return(0,MB.useEffect)(()=>{let n=!0,i=0,o=!1,s=null;r(null),a(null);let c=async()=>{if(!o){o=!0;try{let{buildLogs:a}=await t.request(MR(e.id,i),{mode:`network-only`});if(!a)return;let{data:o}=await t.readView(AR,a);return n?(i=Math.max(i,o.lastSeq),r(e=>[...e??[],...o.lines]),o):void 0}catch{}finally{o=!1}}},l=async()=>{let e=await c();if(e){if(!e.terminal){s=null;return}if(e.logsComplete===!0){clearInterval(u);return}if(e.logsComplete==null){clearInterval(u),a(`Final log completion is unavailable. Upgrade the platform runtime to follow the complete log tail.`);return}s??=Date.now(),Date.now()-s>=12e4&&(clearInterval(u),a(`The build finished, but its final logs have not been confirmed. Reload to recover the final log tail.`))}},u=setInterval(()=>void l(),2e3);return l(),()=>{n=!1,clearInterval(u)}},[e.id,e.status,t]),(0,MB.useEffect)(()=>{let e=o.current;e&&e.scrollHeight-e.scrollTop-e.clientHeight<40&&(e.scrollTop=e.scrollHeight)},[n]),J(Db.Fragment,{children:[q(`h2`,{children:`Build Logs`}),i&&q(`p`,{role:`alert`,children:i}),q(`pre`,{ref:o,id:`build-log`,style:`min-height: 120px; max-height: 480px; overflow-y: auto; font-size: 0.78rem`,children:n===null?`Loading logs...`:n.length===0?`No logs yet.`:n.map((e,t)=>J(`span`,{style:{color:e.stream===`stderr`?`#dc2626`:`inherit`},children:[t>0&&`
120
+ `,e.line]},e.seq))})]})}var MB,NB=o((()=>{MB=u(f(),1),hb(),mz(),Ob()})),PB=c({BuildDetailPage:()=>FB});function FB({path:e,platformName:t,username:n}){let{buildDetail:r}=ib(qR(e),{mode:`stale-while-revalidate`}),i=nb(UR,r);if(!i)throw Error(`Build data is unavailable.`);let{build:a,tz:o}=i;return J(mF,{platformName:t,title:`Build ${a.id}`,username:n,children:[J(`h1`,{children:[`Build `,a.id]}),q(ML,{children:J(YI,{children:[J(Z,{children:[q($,{children:`Status`}),q(Q,{children:a.status})]}),J(Z,{children:[q($,{children:`Project`}),q(Q,{children:q(`a`,{href:`/admin/projects/${a.project_id}`,children:a.project_id})})]}),J(Z,{children:[q($,{children:`Executor`}),q(Q,{children:a.executor})]}),J(Z,{children:[q($,{children:`Instance Type`}),q(Q,{children:a.instance_type??`-`})]}),J(Z,{children:[q($,{children:`Commit`}),q(Q,{children:a.commit_sha?a.commit_sha.slice(0,7):`-`})]}),J(Z,{children:[q($,{children:`Branch`}),q(Q,{children:a.branch??`-`})]}),J(Z,{children:[q($,{children:`Deployment`}),q(Q,{children:a.deployment_id?q(`a`,{href:`/admin/deployments/${a.deployment_id}`,children:a.deployment_id}):`-`})]}),a.error?J(Z,{children:[q($,{children:`Error`}),q(Q,{children:q(`span`,{style:`color: red; max-width: 600px; display: inline-block; word-break: break-word`,children:a.error})})]}):null,J(Z,{children:[q($,{children:`Exit Code`}),q(Q,{children:a.exit_code??`-`})]}),J(Z,{children:[q($,{children:`Started`}),q(Q,{children:a.started_at?CF(a.started_at,o):`-`})]}),J(Z,{children:[q($,{children:`Completed`}),q(Q,{children:a.completed_at?CF(a.completed_at,o):`-`})]}),J(Z,{children:[q($,{children:`Created`}),q(Q,{children:CF(a.created_at,o)})]})]})}),a.executor===`container`?q(jB,{build:a}):J(Db.Fragment,{children:[q(`h2`,{children:`Build Logs`}),a.logs_url?q(Y,{as:`a`,href:a.logs_url,target:`_blank`,rel:`noopener noreferrer`,label:`View logs on GitHub ↗`,variant:`secondary`}):q(`p`,{children:q(`em`,{children:`No external logs available.`})})]})]})}var IB=o((()=>{jx(),wR(),hb(),mz(),NB(),kF(),_F(),Ob()})),LB,RB,zB,BB=o((()=>{LB=u(f(),1),Ar(),RB=(0,LB.createContext)(null),RB.displayName=`CollapsibleGroupContext`,zB=Tr(null),zB.displayName=`CollapsibleGroupPresentationContext`}));function VB(e){let{isCollapsible:t,value:n}=e,r=(0,HB.use)(RB),i=r!=null&&n!=null,a=t===!0?{}:t||null,o=a!=null,[s,c]=(0,HB.useState)(()=>i?!0:a?.isOpen===void 0?a?.defaultIsOpen??!0:a.isOpen),l;return l=i&&n!=null?r.isOpen(n):a?.isOpen===void 0?s:a.isOpen,{isEnabled:o,isOpen:l,toggle:()=>{if(i&&n!=null){r.toggle(n);return}let e=!l;a?.isOpen===void 0&&c(e),a?.onOpenChange?.(e)}}}var HB,UB=o((()=>{HB=u(f(),1),BB()}));function WB({trigger:e,children:t,defaultIsOpen:n,isOpen:r,isDisabled:i=!1,onOpenChange:a,chevronPosition:o,value:s,ref:c,xstyle:l,className:u,style:d,...f}){let{isOpen:p,toggle:m}=VB({isCollapsible:r===void 0?{defaultIsOpen:n??!0,onOpenChange:a}:{isOpen:r,onOpenChange:a},value:s}),h=()=>{i||m()},g=(0,GB.use)(zB),_=g?.hasDividers??!1,v=g?.density??null,y=(o??g?.chevronPosition??`end`)===`start`,b=(0,GB.useId)(),x=(0,KB.jsx)(nu,{icon:y?`chevronRight`:`chevronDown`,size:`sm`,color:`secondary`,xstyle:[qB.chevron,y&&qB.chevronStart,y?p?qB.chevronStartOpen:qB.chevronStartClosed:p?qB.chevronOpen:qB.chevronClosed]});return(0,KB.jsxs)(`div`,{ref:c,...U(V(`collapsible`,{density:v??void 0}),z(qB.root,_&&qB.divided,l),u,d),...f,children:[(0,KB.jsxs)(`button`,{type:`button`,onClick:h,"aria-disabled":i||void 0,"aria-expanded":p,"aria-controls":b,tabIndex:i?-1:void 0,...U(V(`collapsible-trigger`,{density:v??void 0}),Rn.focusVisible(qB.trigger,v!=null&&YB[v],!i&&Iu.pressedBackgroundColor,i&&qB.triggerDisabled)),children:[y&&x,(0,KB.jsx)(`span`,{className:`x1b2iylo xwgcxoh x1iyjqo2`,children:e}),!y&&x]}),(0,KB.jsx)(`div`,{id:b,...U(V(`collapsible-content`,{density:v??void 0}),z(qB.content,v!=null&&XB[v],!p&&qB.contentHidden)),children:g==null?t:(0,KB.jsx)(zB,{value:null,children:t})})]})}var GB,KB,qB,JB,YB,XB,ZB=o((()=>{GB=u(f(),1),B(),UB(),BB(),lu(),W(),H(),zn(),Lu(),KB=G(),qB={root:{kzqmXN:`xh8yej3`,$$css:!0},trigger:{kB7OPa:`x9f619`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`x1qughib`,kzqmXN:`xh8yej3`,kkrTdU:`x1ypdohk x16khyan`,kMv6JI:`x9ynric`,kGuDYH:`x18juvz8`,k63SB2:`x2mo6ok`,kMwMTN:`x1tgivj0`,k9WMMc:`x1yc453h`,k8WAf4:`xt970qd`,$$css:!0},triggerDisabled:{kkrTdU:`xt0e3qv`,kSiTet:`xbyyjgo`,$$css:!0},chevron:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,kzqmXN:`xta46cu`,kZKoxP:`x1seg80s`,kGuDYH:`x18juvz8`,k1ekBW:`x11xpdln`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,$$css:!0},chevronOpen:{k3aq6I:`x19jd1h0`,$$css:!0},chevronClosed:{k3aq6I:`x7p49u4`,$$css:!0},chevronStart:{k71WvV:`x1pezmd8`,$$css:!0},chevronStartOpen:{k3aq6I:`x1iffjtl x1nxqau`,$$css:!0},chevronStartClosed:{k3aq6I:`x7p49u4 xaafvuh`,$$css:!0},contentHidden:{k1xSpc:`x1s85apg`,$$css:!0},content:{kLKAdn:`xfsso4q`,kMv6JI:`x9ynric`,kGuDYH:`xjm74w1`,k63SB2:`xxovm9e`,kLWn49:`xw6l6zx`,kMwMTN:`x1tgivj0`,$$css:!0},divided:{kEafiO:`x11xkdxz x1g31smg`,kPef9Z:`x13fuv20`,kLZC3w:`x1pc3f07`,$$css:!0}},JB={triggerCompact:{k8WAf4:`xu0wf1k`,$$css:!0},triggerBalanced:{k8WAf4:`xce4md1`,$$css:!0},triggerSpacious:{k8WAf4:`x8o8v82`,$$css:!0},contentCompact:{kGO01o:`xy143xn`,$$css:!0},contentBalanced:{kGO01o:`x1wesfrj`,$$css:!0},contentSpacious:{kGO01o:`xvmdzux`,$$css:!0}},YB={compact:JB.triggerCompact,balanced:JB.triggerBalanced,spacious:JB.triggerSpacious},XB={compact:JB.contentCompact,balanced:JB.contentBalanced,spacious:JB.contentSpacious},WB.displayName=`Collapsible`})),QB=o((()=>{ZB(),B(),BB(),W(),H(),UB()}));function $B(e,t){let n=t?.keywords;return{search(t){let r=t.toLowerCase().trim();return r===``?e:e.filter(e=>e.label.toLowerCase().includes(r)?!0:n?n(e).some(e=>e.toLowerCase().includes(r)):!1)},bootstrap(){return e}}}var eV=o((()=>{}));function tV({lane:e,loadingLabel:t,clear:n}){let r=JL(e);return!r&&n==null?null:(0,iV.jsxs)(`div`,{className:`x78zum5 x6s0dn4 xzye2dw xvc5jky`,children:[r&&(0,iV.jsx)(Kb,{size:`sm`,"aria-label":t}),n]})}function nV({ref:e,label:t,isLabelHidden:n=!1,description:r,isRequired:i=!1,isOptional:a=!1,status:o,statusVariant:s=`attached`,startIcon:c,labelTooltip:l,searchSource:u,value:d,onChange:f,renderItem:p,placeholder:m,hasEntriesOnFocus:h,maxMenuItems:g,minQueryLength:_,emptySearchResultsText:v,isDisabled:y=!1,disabledMessage:b,hasClear:x=!0,hasAutoFocus:S,size:C,debounceMs:w,onChangeQuery:T,onOpenChange:E,width:D,xstyle:O,className:k,style:A,"data-testid":j}){let M=bf(),N=dx(C,`md`),ee=(0,rV.useId)(),P=(0,rV.useId)(),te=(0,rV.useId)(),F=(0,rV.useId)(),ne=eD(),I=(0,rV.useRef)(null),re=(0,rV.useRef)(null),ie=(0,rV.useRef)(null),ae=y&&!!b,oe=va({placement:`above`,focusTrigger:`always`,isEnabled:ae}),se=(0,rV.useMemo)(()=>qL(),[]),[ce,le]=(0,rV.useState)(!1),[ue,de]=(0,rV.useState)(null),fe=d!=null&&!ce,pe=(0,rV.useCallback)(()=>{!y&&d&&(de(d),le(!0),T?.(d.label),requestAnimationFrame(()=>{let e=re.current;e&&((Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,`value`)?.set)?.call(e,d.label),e.dispatchEvent(new Event(`input`,{bubbles:!0})),e.focus(),e.setSelectionRange(0,e.value.length))}))},[y,d,T]),L=(0,rV.useCallback)(e=>{I.current?.contains(e.relatedTarget)||ue&&ce&&(le(!1),de(null))},[ue,ce]),R=(0,rV.useCallback)(e=>{le(!1),de(null),f(e),e&&requestAnimationFrame(()=>{let e=ie.current;e&&(e.querySelector(`button`)??e).focus()})},[f]),me=(0,rV.useCallback)(()=>{le(!1),de(null),f(null),re.current?.focus()},[f]),he=(0,rV.useCallback)(e=>{Bn(e.nativeEvent)||e.key===`Escape`&&ue&&(e.preventDefault(),le(!1),de(null),re.current?.blur())},[ue]),ge=(0,rV.useCallback)(()=>{y||(fe?pe():re.current?.focus())},[y,fe,pe]),{ariaLabelledBy:_e,ariaDescribedBy:ve}=mn(P,[r?te:null,o?.message?F:null,ae?oe.describedBy:null],ne),ye=oV[N],be=(0,iV.jsxs)(iV.Fragment,{children:[(0,iV.jsxs)(`div`,{ref:yr(I,oe.ref,ne?e:void 0),"data-testid":j,onClick:ge,onBlur:L,...U(V(`typeahead`,{size:N,status:o?.type}),z(HE.base,aV.wrapper,ye,o&&UE[o.type],o&&!y&&WE[o.type],o&&GE[o.type],y&&HE.disabled,ne&&iD.inGroup,ne&&O),ne?k:void 0,ne?A:void 0),children:[c&&iu(c,{size:`sm`,color:`secondary`}),ne&&(0,iV.jsx)(du,{id:P,children:t}),(0,iV.jsx)(QL,{value:se,children:(0,iV.jsxs)(`div`,{className:`x1n2onr6 x78zum5 x6s0dn4 xkh2ocl x98rzlu xeuugli`,children:[fe&&(0,iV.jsx)(_R,{ref:ie,label:d.label,size:N,onClick:pe,isDisabled:y,xstyle:aV.tokenOverlay}),(0,iV.jsx)(dR,{ref:re,searchSource:u,value:d,onChange:R,renderItem:p,placeholder:fe?void 0:m,hasEntriesOnFocus:h,maxMenuItems:g,minQueryLength:_,emptySearchResultsText:v,isDisabled:y,hasAutoFocus:S,isFocusableDisabled:ae,inputId:ee,ariaDescribedBy:ve,ariaLabelledBy:_e,onChangeQuery:T,onOpenChange:E,debounceMs:w,anchorRef:I,onKeyDown:he,inputXStyle:fe?aV.inputHidden:void 0,inputTabIndex:fe?-1:void 0,size:N})]})}),(0,iV.jsx)(tV,{lane:se,loadingLabel:M(`@astryx.typeahead.loading`),clear:x&&d&&!y?(0,iV.jsx)(JE,{label:M(`@astryx.typeahead.clearSelection`),onClick:e=>{e.stopPropagation(),me()}}):null})]}),ae&&oe.renderTooltip(b)]});return ne?be:(0,iV.jsx)(IE,{ref:e,label:t,isLabelHidden:n,description:r,inputID:ee,descriptionID:r?te:void 0,isOptional:a,isRequired:i,isDisabled:y,status:o?{type:o.type,message:o.message,messageID:o.message?F:void 0}:void 0,statusVariant:s,labelTooltip:l,width:D,xstyle:O,className:k,style:A,children:be})}var rV,iV,aV,oV,sV=o((()=>{rV=u(f(),1),B(),$L(),fR(),hx(),$E(),CR(),uu(),lu(),mu(),ox(),aD(),rD(),W(),H(),Ef(),xr(),iV=G(),aV={wrapper:{kVAEAm:`x1n2onr6`,kOIVth:`xzye2dw`,k8WAf4:`x1x7cmac`,kkrTdU:`x1ed109x x16khyan`,$$css:!0},inputHidden:{kSiTet:`xg01cxk`,kfzvcC:`x47corl`,$$css:!0},tokenOverlay:{kVAEAm:`x10l6tqk`,k87sOh:`x13vifvy`,kLqNvP:`xmt1zuk`,kt4wiu:`xtijo5x`,kzqmXN:`xeq5yr9`,kqGvvJ:`x10im51j`,keTefX:`x1lziwak`,k71WvV:`x11t971q`,$$css:!0}},oV={sm:{kAzted:`x1gdqauq`,$$css:!0},md:{kAzted:`x1uogy3y`,$$css:!0},lg:{kAzted:`x1xf4nls`,$$css:!0}},nV.displayName=`Typeahead`})),cV=o((()=>{eV(),fR(),sV(),rR()}));function lV({label:e,onChange:t,onSelect:n,onClear:r,suggestions:i=pV,remoteSearch:a,initialValue:o=``,initialSelection:s,width:c=320}){let l=(0,dV.useMemo)(()=>uV(i),[i]),u=(0,dV.useMemo)(()=>a?{bootstrap:()=>[],search:async e=>uV(await a(e))}:$B(l,{keywords:e=>e.auxiliaryData?.keywords??[]}),[l,a]),[d,f]=(0,dV.useState)(()=>o?l.find(e=>e.id===o)??(s?.id===o?uV([s])[0]:void 0)??{id:o,label:o}:null);return(0,fV.jsx)(nV,{label:e,isLabelHidden:!0,placeholder:e,searchSource:u,value:d,renderItem:e=>(0,fV.jsx)(eR,{item:e,description:e.auxiliaryData?.description}),onChange:e=>{f(e),t(e?.id??``),e?n?.(e.id):r?.()},onChangeQuery:e=>{f(null),t(e)},hasEntriesOnFocus:!a,hasClear:!0,minQueryLength:a?2:1,debounceMs:a?200:0,width:c,emptySearchResultsText:a?`No matching results.`:`No suggestions. Search for any text.`})}function uV(e){let t=new Map;for(let n of e){if(!n)continue;let e=typeof n==`string`?{id:n,label:n,auxiliaryData:{keywords:[]}}:{id:n.id,label:n.label,auxiliaryData:{keywords:n.keywords?.filter(e=>!!e)??[],description:n.description}};e.id&&e.label&&t.set(e.id,e)}return[...t.values()]}var dV,fV,pV,mV=o((()=>{cV(),dV=u(f(),1),fV=G(),pV=[]}));function hV(e){return typeof e==`string`?e.slice(0,500):Array.isArray(e)?e.join(` `).slice(0,500):JSON.stringify(e??null).slice(0,500)}function gV({entry:e}){let t=[...(e.logs??[]).map(e=>({level:e.level??`log`,text:hV(e.message)})),...(e.exceptions??[]).map(e=>({level:`error`,text:`${e.name}: ${e.message}`}))],n=Number.parseInt(e.status??``,10),r=n>=500?`#dc2626`:n>=400?`#d97706`:`#16a34a`;return J(`div`,{style:`padding: 4px 0; border-bottom: 1px solid #eee; font-size: 0.8rem`,children:[q(`span`,{style:`color: #999; margin-right: 8px`,children:new Date(e.timestamp).toLocaleTimeString()}),e.method&&e.url&&J(Db.Fragment,{children:[q(`span`,{style:`margin-right: 8px; font-weight: 600`,children:e.method}),q(`span`,{style:`margin-right: 8px`,children:e.url})]}),e.status&&q(`span`,{style:{color:r,fontWeight:600,marginRight:8},children:e.status}),q(`span`,{style:{color:e.outcome===`ok`?`#16a34a`:`#dc2626`},children:e.outcome}),t.length>0&&J(`div`,{style:`position: relative; margin-top: 4px; margin-left: 24px`,children:[q(`div`,{style:`position: absolute; top: 4px; right: 4px`,children:q(hz,{text:t.map(e=>e.text).join(`
121
+ `)})}),q(`pre`,{style:`margin: 0; padding: 8px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: var(--radius-inner); font-size: 0.78rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all`,children:t.map((e,t)=>J(`div`,{children:[q(`span`,{style:{color:yV[e.level]??`#6b7280`,fontWeight:600,textTransform:`uppercase`,width:50,display:`inline-block`},children:e.level}),q(`span`,{children:e.text})]},t))})]})]})}function _V({deploymentId:e}){let t=tb(),[n,r]=(0,vV.useState)(`1h`),[i,a]=(0,vV.useState)(100),[o,s]=(0,vV.useState)(``),[c,l]=(0,vV.useState)(null),[u,d]=(0,vV.useState)(null),[f,p]=(0,vV.useState)(!1),m=(0,vV.useCallback)(async(n,r)=>{let{deploymentLogs:i}=await t.request(NR(e,n,r),{mode:`network-only`});if(!i)return null;let{data:a}=await t.readView(jR,i);return a.data},[e,t]),h=(0,vV.useCallback)(async()=>{l(null),d(null);try{let e=await m(n,i);if(!e)throw Error(`Deployment logs are unavailable.`);l(e)}catch(e){d(e instanceof Error?e.message:String(e))}},[m,n,i]);(0,vV.useEffect)(()=>{h()},[h]),(0,vV.useEffect)(()=>{if(!f)return;let e=!0,t=new Set,n=async()=>{try{let n=await m(`1m`,50);if(!n||!e)return;let r=n.filter(e=>{let n=`${e.timestamp}:${e.url}:${e.status}`;return!t.has(n)&&(t.add(n),!0)});r.length>0&&l(e=>[...r,...e??[]])}catch{}};n();let r=setInterval(()=>void n(),3e3);return()=>{e=!1,clearInterval(r)}},[m,f]);let g=o.toLowerCase().trim(),_=(c??[]).filter(e=>!g||[e.outcome,e.method,e.url,e.status,...(e.logs??[]).map(e=>hV(e.message)),...(e.exceptions??[]).flatMap(e=>[e.name,e.message])].join(` `).toLowerCase().includes(g));return J(Db.Fragment,{children:[q(`h2`,{children:`Runtime Logs`}),J(`div`,{style:`margin-bottom: 15px; display: flex; gap: 10px; align-items: center`,children:[q(wA,{id:`log-since`,label:`Time`,value:n,onChange:r,options:[`1h`,`6h`,`24h`,`7d`],width:100}),q(Y,{type:`button`,id:`load-logs-btn`,label:`Load`,onClick:()=>void h()}),q(wA,{id:`log-count`,label:`Count`,value:String(i),onChange:e=>a(Number(e)),options:[100,200,300,400,500].map(String),width:110}),q(lV,{label:`Filter logs`,onChange:s,suggestions:(c??[]).flatMap(e=>[e.outcome,e.method,e.url,e.status]),width:240}),q(Y,{type:`button`,id:`live-tail-btn`,style:{marginLeft:`auto`},label:f?`Stop Tail`:`Live Tail`,variant:f?`destructive`:`secondary`,onClick:()=>{f||l([]),p(!f)}})]}),q(`div`,{id:`log-entries`,children:u?J(`p`,{style:`color: red; font-size: 0.8rem`,children:[`Failed to load logs: `,u]}):f&&_.length===0?q(`p`,{style:`color: #999; font-size: 0.8rem`,children:`Polling for new events... New logs may take up to 2 minutes to appear.`}):c===null?q(`p`,{style:`color: #999; font-size: 0.8rem`,children:`Loading logs...`}):_.length===0?J(`p`,{style:`color: #999; font-size: 0.8rem`,children:[`No logs found`,g?` matching filter`:` for this time range`,`. New logs may take up to 2 minutes to appear.`]}):_.map((e,t)=>q(gV,{entry:e},`${e.timestamp}:${e.url}:${e.status}:${t}`))})]})}var vV,yV,bV=o((()=>{jx(),PA(),vV=u(f(),1),hb(),mz(),vz(),mV(),Ob(),yV={error:`#dc2626`,warn:`#d97706`,info:`#6b7280`,log:`#6b7280`,debug:`#9ca3af`}})),xV=c({DeploymentDetailPage:()=>SV});function SV({path:e,platformName:t,username:n}){let{deploymentDetail:r}=ib(KR(e),{mode:`stale-while-revalidate`}),i=nb(HR,r);if(!i)throw Error(`Deployment data is unavailable.`);let{deployment:a,project:o,canCancel:s,tz:c}=i,l=i.manifest,u=yz(a,o?.active_deployment_id),d=u===`live`?{color:`#16a34a`,fontWeight:600}:u===`retained`?{color:`#16a34a`}:u===`evicted`?{color:`#888`}:u===`failed`?{color:`#dc2626`}:void 0;return J(mF,{platformName:t,title:`Deployment ${a.id}`,username:n,children:[J(`h1`,{children:[`Deployment `,a.id]}),s&&J(Db.Fragment,{children:[q(`h2`,{children:`Deploy Control`}),q(`form`,{method:`post`,action:`/admin/deployments/${a.id}/cancel`,"data-confirm":`Cancel deployment "${a.id}"?`,children:q(Y,{type:`submit`,label:`Cancel Deploy`,variant:`destructive`})})]}),(a.status===`failed`||a.status===`canceled`)&&a.error_message&&J(Db.Fragment,{children:[q(`h2`,{children:`Error`}),q(`pre`,{children:a.error_message}),q(`p`,{children:q(hz,{text:a.error_message,label:`Copy error`})})]}),q(ML,{children:J(YI,{children:[J(Z,{children:[q($,{children:`ID`}),q(Q,{children:a.id}),q($,{children:`Project`}),q(Q,{children:o?q(`a`,{href:`/admin/projects/${o.id}`,children:o.slug}):a.project_id})]}),J(Z,{children:[q($,{children:`Status`}),q(Q,{style:d,children:u}),q($,{children:`Source`}),q(Q,{children:a.source??`-`})]}),J(Z,{children:[q($,{children:`Commit`}),q(Q,{children:a.commit??`-`}),q($,{children:`Created`}),q(Q,{children:CF(a.created_at,c)})]}),J(Z,{children:[q($,{children:`Deployed`}),q(Q,{children:a.deployed_at?CF(a.deployed_at,c):`-`}),q($,{children:`Type`}),q(Q,{children:o?.type??`-`})]}),J(Z,{children:[q($,{children:`CLI Version`}),q(Q,{children:a.cli_version??`-`}),q($,{}),q(Q,{})]}),l&&q(Z,{children:q(Q,{colSpan:4,style:{padding:0},children:q(WB,{trigger:`Manifest`,children:J(`div`,{style:`padding: 0 8px 8px`,children:[q(ML,{style:{margin:0},children:J(YI,{children:[l.bindings&&Object.entries(l.bindings).map(([e,t])=>Array.isArray(t)&&t.length>0?J(Z,{children:[q($,{children:e.toUpperCase()}),q(Q,{children:t.map((e,t)=>J(`span`,{children:[t>0&&`, `,q(`code`,{children:e})]},e))})]},e):t===!0?J(Z,{children:[q($,{children:e.toUpperCase()}),q(Q,{children:`enabled`})]},e):null),l.migrations&&J(Z,{children:[q($,{children:`Migrations`}),J(Q,{children:[l.migrations.dialect,` — `,l.migrations.pending,` pending`]})]}),l.schedules&&l.schedules.length>0&&J(Z,{children:[q($,{children:`Schedules`}),q(Q,{children:l.schedules.map((e,t)=>J(`span`,{children:[t>0&&`, `,e.name,`: `,e.cron]},e.name))})]})]})}),a.manifest&&q(WB,{trigger:`Raw JSON`,children:q(`pre`,{style:`margin-top: 8px; font-size: 0.8rem`,children:JSON.stringify(JSON.parse(a.manifest),null,2)})})]})})})})]})}),a.status===`live`&&o&&q(_V,{deploymentId:a.id})]})}var CV=o((()=>{jx(),QB(),wR(),hb(),mz(),vz(),bV(),Sz(),kF(),_F(),Ob()}));function wV({page:e,totalPages:t,baseUrl:n}){return t<=1?q(Db.Fragment,{}):J(`nav`,{"aria-label":`Pagination`,className:`void-admin-pagination`,children:[e>1?q(Y,{href:`${n}?page=${e-1}`,label:`Previous`,variant:`secondary`}):q(Y,{label:`Previous`,variant:`secondary`,isDisabled:!0}),J(`span`,{children:[e,` / `,t]}),e<t?q(Y,{href:`${n}?page=${e+1}`,label:`Next`,variant:`secondary`}):q(Y,{label:`Next`,variant:`secondary`,isDisabled:!0})]})}var TV=o((()=>{jx(),Ob()}));function EV({action:e,kind:t,label:n,value:r,onChange:i,initialValue:a,initialSelection:o}){let s=tb(),c=$a(),l=(0,DV.useCallback)(async n=>{let r=`${e}?search=${encodeURIComponent(n)}`;if(t===`users`){let{usersPage:e}=await s.request(LR(r),{mode:`network-only`});if(!e)return[];let{data:t}=await s.readView(PR,e);return t.users.map(e=>({id:e.id,label:e.login,description:[e.email,e.id].filter(Boolean).join(` · `)}))}if(t===`projects`){let{projectsPage:e}=await s.request(RR(r),{mode:`network-only`});if(!e)return[];let{data:t}=await s.readView(FR,e);return t.projects.map(e=>({id:e.id,label:e.slug,description:e.owner_login??void 0}))}let{deploymentsPage:i}=await s.request(zR(r),{mode:`network-only`});if(!i)return[];let{data:a}=await s.readView(IR,i);return a.deployments.map(e=>({id:e.id,label:e.id,description:[e.project_slug,e.status].filter(Boolean).join(` · `)}))},[e,s,t]);return(0,OV.jsxs)(`form`,{method:`get`,action:e,className:`void-admin-search`,children:[(0,OV.jsx)(`input`,{type:`hidden`,name:`search`,value:r}),(0,OV.jsx)(lV,{label:n,onChange:i,onSelect:t=>void c.visit(`${e}/${encodeURIComponent(t)}`),onClear:()=>{a&&c.visit(e)},remoteSearch:l,initialValue:a,initialSelection:o},a??``),(0,OV.jsx)(Y,{type:`submit`,label:`Search`})]})}var DV,OV,kV=o((()=>{jx(),fo(),DV=u(f(),1),hb(),mz(),mV(),OV=G()})),AV=c({UsersListPage:()=>jV});function jV({path:e,platformName:t,username:n}){let{usersPage:r}=ib(LR(e),{mode:`stale-while-revalidate`}),i=nb(PR,r);if(!i)throw Error(`Users page data is unavailable.`);let{users:a,search:o,page:s,totalPages:c,tz:l}=i,[u,d]=(0,MV.useState)(o??``);(0,MV.useEffect)(()=>d(o??``),[o]);let f=a.find(e=>e.id===o),p=[{key:`login`,header:`Login`,width:UF(1,{minWidth:110}),renderCell:e=>q(`a`,{className:`void-admin-user-link`,href:`/admin/users/${e.id}`,title:e.login,children:e.login})},{key:`provider`,header:`Provider`,width:WF(88)},{key:`email`,header:`Email`,width:UF(2,{minWidth:220}),renderCell:e=>q(Na,{maxLines:1,children:e.email??`-`})},{key:`plan`,header:`Plan`,width:WF(100)},{key:`role`,header:`Role`,width:WF(68)},{key:`suspended_reason`,header:`Status`,width:WF(100),renderCell:e=>e.suspended_reason?`suspended`:`active`},{key:`created_at`,header:`Created`,width:WF(220),renderCell:e=>CF(e.created_at,l)},{key:`actions`,header:`Actions`,width:WF(108),renderCell:e=>q(`form`,{method:`post`,action:`/admin/users/${e.id}/delete`,"data-confirm":`Delete user "${e.login}" and all their projects?`,children:q(Y,{type:`submit`,label:`Delete`,variant:`destructive`,size:`sm`})})}];return J(mF,{platformName:t,title:`Users`,username:n,children:[q(`h1`,{children:`Users`}),q(EV,{action:`/admin/users`,kind:`users`,label:`Search users`,value:u,onChange:d,initialValue:o,initialSelection:f?{id:f.id,label:f.login,description:[f.email,f.id].filter(Boolean).join(` · `)}:void 0}),q(ML,{className:`void-admin-users-table`,data:[...a],columns:p,idKey:`id`,textOverflow:`truncate`,hasHover:!0}),a.length===0&&q(`p`,{children:q(`em`,{children:`No users found.`})}),s!=null&&c!=null&&q(wV,{page:s,totalPages:c,baseUrl:`/admin/users`})]})}var MV,NV=o((()=>{jx(),wR(),qa(),MV=u(f(),1),hb(),mz(),kF(),_F(),TV(),kV(),Ob()})),PV=c({UserDetailPage:()=>FV});function FV({path:e,platformName:t,username:n}){let{userDetail:r}=ib(WR(e),{mode:`stale-while-revalidate`}),i=nb(BR,r);if(!i)throw Error(`User data is unavailable.`);let{user:a,projects:o,deploysToday:s,usage:c,tz:l,plans:u,limits:d}=i;return J(mF,{platformName:t,title:a.login,username:n,children:[q(`h1`,{children:a.login}),q(ML,{children:J(YI,{children:[J(Z,{children:[q($,{children:`ID`}),q(Q,{children:a.id})]}),J(Z,{children:[q($,{children:`Provider`}),q(Q,{children:a.provider})]}),J(Z,{children:[q($,{children:`Email`}),q(Q,{children:a.email??`-`})]}),J(Z,{children:[q($,{children:`Role`}),q(Q,{children:a.role})]}),J(Z,{children:[q($,{children:`Status`}),q(Q,{children:a.suspended_reason?`suspended: ${a.suspended_reason}`:`active`})]}),J(Z,{children:[q($,{children:`Created`}),q(Q,{children:CF(a.created_at,l)})]})]})}),q(`h2`,{children:`Plan`}),J(`form`,{method:`post`,action:`/admin/users/${a.id}/plan`,style:`margin-bottom: 10px`,children:[q(ZA,{label:`Plan`,name:`plan`,initialValue:a.plan,options:u.map(e=>({value:e.id,label:e.archived?`${e.name} (archived)`:e.name}))}),q(Y,{type:`submit`,label:`Update`})]}),J(ML,{children:[q(KI,{children:J(Z,{children:[q($,{children:`Limit`}),q($,{children:`Value`})]})}),J(YI,{children:[J(Z,{children:[q(Q,{children:`Requests / month`}),q(Q,{children:EF(d.requestsPerMonth)})]}),J(Z,{children:[q(Q,{children:`CPU ms / request`}),q(Q,{children:EF(d.cpuMsPerRequest)})]}),J(Z,{children:[q(Q,{children:`Sub-requests / invocation`}),q(Q,{children:EF(d.subRequestsPerInvocation)})]}),J(Z,{children:[q(Q,{children:`Deploys / day`}),J(Q,{children:[s,` / `,EF(d.deploysPerDay)]})]}),J(Z,{children:[q(Q,{children:`D1 storage`}),q(Q,{children:EF(d.d1StorageBytes,`bytes`)})]}),J(Z,{children:[q(Q,{children:`R2 storage`}),q(Q,{children:EF(d.r2StorageBytes,`bytes`)})]}),J(Z,{children:[q(Q,{children:`KV storage`}),q(Q,{children:EF(d.kvStorageBytes,`bytes`)})]}),J(Z,{children:[q(Q,{children:`AI neurons / month`}),q(Q,{children:EF(d.aiNeuronsPerMonth)})]}),J(Z,{children:[q(Q,{children:`Retained deployments`}),q(Q,{children:EF(d.retainedDeployments)})]})]})]}),J(`h2`,{children:[`Current Usage (since `,SF(c.billingPeriodStart),`)`]}),J(`p`,{children:[`Requests: `,TF(c.totalRequests),` / `,EF(d.requestsPerMonth)]}),J(`p`,{children:[`Deploys today: `,TF(s),` / `,EF(d.deploysPerDay)]}),J(`p`,{children:[`Bandwidth: `,wF(c.totalBandwidth)]}),c.projects.length>1&&J(Db.Fragment,{children:[q(`h3`,{children:`Per Project`}),J(ML,{children:[q(KI,{children:J(Z,{children:[q($,{children:`Project`}),q($,{children:`Requests`}),q($,{children:`Bandwidth`})]})}),q(YI,{children:c.projects.map(e=>J(Z,{children:[q(Q,{children:q(`a`,{href:`/admin/projects/${e.projectId}`,children:e.slug})}),q(Q,{children:TF(e.requests)}),q(Q,{children:wF(e.bandwidthBytes)})]},e.projectId))})]})]}),q(`h2`,{children:`Suspension`}),a.suspended_reason?q(`form`,{method:`post`,action:`/admin/users/${a.id}/unsuspend`,children:q(Y,{type:`submit`,label:`Unsuspend`})}):J(`form`,{method:`post`,action:`/admin/users/${a.id}/suspend`,"data-confirm":`Suspend "${a.login}" and ${o.length} project(s)? Requests, cron jobs and queue delivery stop. Queue messages are dropped when their retries run out, after about 3 hours by default. Restore does not bring them back.`,children:[q(YA,{label:`Reason`,name:`reason`,initialValue:`admin_suspended`,placeholder:`Reason...`}),q(Y,{type:`submit`,label:`Suspend`,variant:`destructive`})]}),J(`h2`,{children:[`Projects (`,o.length,`)`]}),o.length>0?J(ML,{children:[q(KI,{children:J(Z,{children:[q($,{children:`Slug`}),q($,{children:`Type`}),q($,{children:`Created`})]})}),q(YI,{children:o.map(e=>J(Z,{children:[q(Q,{children:q(`a`,{href:`/admin/projects/${e.id}`,children:e.slug})}),q(Q,{children:e.type}),q(Q,{children:CF(e.created_at,l)})]},e.id))})]}):q(`p`,{children:q(`em`,{children:`No projects.`})}),q(`h2`,{children:`Danger Zone`}),q(`form`,{method:`post`,action:`/admin/users/${a.id}/delete`,"data-confirm":`Permanently delete user "${a.login}" and all ${o.length} project(s)? This cannot be undone.`,children:q(Y,{type:`submit`,label:`Delete User`,variant:`destructive`})})]})}var IV=o((()=>{jx(),wR(),hb(),mz(),kF(),nj(),_F(),Ob()})),LV=c({ProjectsListPage:()=>RV});function RV({path:e,platformName:t,username:n}){let{projectsPage:r}=ib(RR(e),{mode:`stale-while-revalidate`}),i=nb(FR,r);if(!i)throw Error(`Projects page data is unavailable.`);let{projects:a,search:o,page:s,totalPages:c,siteDomain:l,tz:u}=i,[d,f]=(0,zV.useState)(o??``);(0,zV.useEffect)(()=>f(o??``),[o]);let p=a.find(e=>e.id===o);return J(mF,{platformName:t,title:`Projects`,username:n,children:[q(`h1`,{children:`Projects`}),q(EV,{action:`/admin/projects`,kind:`projects`,label:`Search projects`,value:d,onChange:f,initialValue:o,initialSelection:p?{id:p.id,label:p.slug,description:p.owner_login??void 0}:void 0}),q(Tz,{projects:a,siteDomain:l,tz:u}),s!=null&&c!=null&&q(wV,{page:s,totalPages:c,baseUrl:`/admin/projects`})]})}var zV,BV=o((()=>{zV=u(f(),1),hb(),mz(),_F(),TV(),Ez(),kV(),Ob()})),VV,HV=o((()=>{VV=[`starting`,`building`,`deploying`]}));function UV(e){return VV.includes(e)}function WV(e){switch(e){case`complete`:return`color: #16a34a; font-weight: 600`;case`failed`:case`cancelled`:return`color: #dc2626`;case`starting`:case`building`:case`deploying`:return`color: #ca8a04; font-weight: 600`;default:return}}function GV(e){if(!e.started_at)return`-`;let t=xF(e.started_at).getTime(),n=e.completed_at?xF(e.completed_at).getTime():Date.now();if(isNaN(t)||isNaN(n)||n<t)return`-`;let r=Math.floor((n-t)/1e3);return r<60?`${r}s`:`${Math.floor(r/60)}m ${r%60}s`}function KV({builds:e,tz:t}){return e.length===0?q(`p`,{children:q(`em`,{children:`No builds.`})}):J(ML,{hasHover:!0,children:[q(KI,{children:J(Z,{children:[q($,{children:`ID`}),q($,{children:`Status`}),q($,{children:`Executor`}),q($,{children:`Instance`}),q($,{children:`Commit`}),q($,{children:`Branch`}),q($,{children:`Started`}),q($,{children:`Duration`})]})}),q(YI,{children:e.map(e=>J(Z,{className:UV(e.status)?`build-active`:void 0,children:[q(Q,{children:q(`a`,{href:`/admin/builds/${e.id}`,children:e.id})}),q(Q,{children:q(`span`,{style:WV(e.status),children:qV[e.status]??e.status})}),q(Q,{children:e.executor}),q(Q,{children:e.instance_type??`-`}),q(Q,{children:e.commit_sha?e.commit_sha.slice(0,7):`-`}),q(Q,{children:e.branch??`-`}),q(Q,{children:e.started_at?CF(e.started_at,t):`-`}),q(Q,{children:q(`span`,{suppressHydrationWarning:!0,children:GV(e)})})]},e.id))})]})}var qV,JV=o((()=>{wR(),HV(),kF(),Ob(),qV={queued:`○ queued`,starting:`● starting`,building:`● building`,deploying:`● deploying`,complete:`✓ complete`,failed:`✗ failed`,cancelled:`⊘ cancelled`}}));function YV({label:e,selected:t,onChange:n,excludedUserIds:r=QV}){let i=tb(),a=(0,XV.useMemo)(()=>({bootstrap:()=>[],search:async e=>{let{usersPage:t}=await i.request(LR(`/admin/users?search=${encodeURIComponent(e)}`),{mode:`network-only`});if(!t)return[];let{data:n}=await i.readView(PR,t);return n.users.filter(e=>!r.has(e.id)).map(e=>({id:e.id,label:e.login,auxiliaryData:{email:e.email}}))}}),[i,r]);return(0,ZV.jsx)(nV,{label:e,placeholder:`Search by login, email, or ID`,searchSource:a,value:t,onChange:n,onChangeQuery:()=>n(null),renderItem:e=>(0,ZV.jsx)(eR,{item:e,description:[e.auxiliaryData?.email,e.id].filter(Boolean).join(` · `)}),minQueryLength:2,width:`min(100%, 320px)`,emptySearchResultsText:`No eligible users found.`})}var XV,ZV,QV,$V=o((()=>{cV(),XV=u(f(),1),hb(),mz(),ZV=G(),QV=new Set}));function eH({projectId:e}){let[t,n]=(0,tH.useState)(null);return(0,nH.jsxs)(`section`,{id:`owner-transfer`,className:`void-admin-owner-transfer`,children:[(0,nH.jsx)(`h2`,{children:`Transfer Ownership`}),(0,nH.jsx)(`p`,{children:`Transfer this project to an existing Void Platform user. You will review the ownership, plan, suspension, active-work, routing, and usage-counter changes before applying them.`}),(0,nH.jsxs)(`form`,{className:`void-admin-owner-transfer-form`,method:`post`,action:`/admin/projects/${e}/owner/preview`,children:[(0,nH.jsx)(YV,{label:`New owner`,selected:t,onChange:n}),(0,nH.jsx)(`input`,{type:`hidden`,name:`userId`,value:t?.id??``}),(0,nH.jsx)(Y,{type:`submit`,label:`Preview Transfer`,isDisabled:!t})]})]})}var tH,nH,rH=o((()=>{jx(),tH=u(f(),1),$V(),nH=G()}));function iH({projectId:e,owner:t,members:n,invitations:r,tz:i}){let[a,o]=(0,aH.useState)(null),s=(0,aH.useMemo)(()=>new Set([...t?[t.id]:[],...n.map(({user:e})=>e.id)]),[t,n]);return(0,oH.jsxs)(`section`,{id:`team`,className:`void-admin-project-team`,children:[(0,oH.jsxs)(`h2`,{children:[`Team members (`,n.length+1,`)`]}),(0,oH.jsx)(`p`,{children:`Add an existing platform user to this project with the selected role.`}),(0,oH.jsx)(`div`,{className:`void-admin-team-table-scroll`,children:(0,oH.jsxs)(ML,{children:[(0,oH.jsx)(KI,{children:(0,oH.jsxs)(Z,{children:[(0,oH.jsx)($,{children:`User`}),(0,oH.jsx)($,{children:`Role`}),(0,oH.jsx)($,{children:`Joined`}),(0,oH.jsx)($,{children:`Actions`})]})}),(0,oH.jsxs)(YI,{children:[(0,oH.jsxs)(Z,{children:[(0,oH.jsx)(Q,{children:t?(0,oH.jsx)(`a`,{href:`/admin/users/${t.id}`,children:t.login}):`Owner account unavailable`}),(0,oH.jsx)(Q,{children:`Owner`}),(0,oH.jsx)(Q,{children:`—`}),(0,oH.jsx)(Q,{children:(0,oH.jsx)(Y,{as:`a`,href:`#owner-transfer`,label:`Transfer ownership`,variant:`secondary`,size:`sm`})})]}),n.map(({user:t,role:n,createdAt:r})=>(0,oH.jsxs)(Z,{children:[(0,oH.jsxs)(Q,{children:[(0,oH.jsx)(`a`,{href:`/admin/users/${t.id}`,children:t.login}),t.email&&(0,oH.jsx)(`span`,{className:`void-admin-team-email`,children:t.email})]}),(0,oH.jsx)(Q,{children:n}),(0,oH.jsx)(Q,{children:CF(r,i)}),(0,oH.jsx)(Q,{children:(0,oH.jsxs)(`div`,{className:`void-admin-team-actions`,children:[(0,oH.jsxs)(`form`,{method:`post`,action:`/admin/projects/${e}/team/${t.id}/role`,children:[(0,oH.jsx)(ZA,{label:`Role for ${t.login}`,name:`role`,options:sH,initialValue:n,width:160}),(0,oH.jsx)(Y,{type:`submit`,label:`Save role`,size:`sm`})]}),(0,oH.jsx)(`form`,{method:`post`,action:`/admin/projects/${e}/team/${t.id}/remove`,"data-confirm":`Remove ${t.login} from this project?`,children:(0,oH.jsx)(Y,{type:`submit`,label:`Remove`,variant:`destructive`,size:`sm`})})]})})]},t.id))]})]})}),(0,oH.jsx)(`h3`,{children:`Add team member`}),(0,oH.jsxs)(`form`,{className:`void-admin-team-add`,method:`post`,action:`/admin/projects/${e}/team/add`,children:[(0,oH.jsx)(YV,{label:`Search registered users`,selected:a,onChange:o,excludedUserIds:s}),(0,oH.jsx)(`input`,{type:`hidden`,name:`userId`,value:a?.id??``}),(0,oH.jsx)(ZA,{label:`Project role`,name:`role`,options:sH,initialValue:`reader`,width:180}),(0,oH.jsx)(Y,{type:`submit`,label:`Add member`,isDisabled:!a})]}),r.length>0&&(0,oH.jsxs)(oH.Fragment,{children:[(0,oH.jsxs)(`h3`,{children:[`Pending invitations (`,r.length,`)`]}),(0,oH.jsxs)(`p`,{children:[`If email delivery is unavailable, share the invitation ID and ask the user to run`,` `,(0,oH.jsx)(`code`,{children:`void project team accept <invitation-id>`}),`.`]}),(0,oH.jsx)(`div`,{className:`void-admin-team-table-scroll`,children:(0,oH.jsxs)(ML,{children:[(0,oH.jsx)(KI,{children:(0,oH.jsxs)(Z,{children:[(0,oH.jsx)($,{children:`Email`}),(0,oH.jsx)($,{children:`Role`}),(0,oH.jsx)($,{children:`Invitation ID`}),(0,oH.jsx)($,{children:`Expires`}),(0,oH.jsx)($,{children:`Action`})]})}),(0,oH.jsx)(YI,{children:r.map(t=>(0,oH.jsxs)(Z,{children:[(0,oH.jsx)(Q,{children:t.email}),(0,oH.jsx)(Q,{children:t.role}),(0,oH.jsx)(Q,{children:(0,oH.jsx)(`code`,{children:t.id})}),(0,oH.jsx)(Q,{children:CF(t.expiresAt,i)}),(0,oH.jsx)(Q,{children:(0,oH.jsx)(`form`,{method:`post`,action:`/admin/projects/${e}/team/invitations/${t.id}/revoke`,"data-confirm":`Revoke the invitation for ${t.email}?`,children:(0,oH.jsx)(Y,{type:`submit`,label:`Revoke`,variant:`destructive`,size:`sm`})})})]},t.id))})]})})]})]})}var aH,oH,sH,cH=o((()=>{jx(),wR(),aH=u(f(),1),$V(),kF(),nj(),oH=G(),sH=[{value:`reader`,label:`Reader`},{value:`collaborator`,label:`Collaborator`},{value:`admin`,label:`Admin`}]}));function lH(e){return Object.prototype.hasOwnProperty.call(vH,e)}function uH({status:e,title:t,description:n,icon:r,isDismissable:i=!1,onDismiss:a,dismissLabel:o,endContent:s,container:c=`card`,elevation:l=`none`,collapsible:u=!0,children:d,xstyle:f,className:p,style:m,ref:h,onFocusCapture:g,onPointerDownCapture:_,...v}){let y=bf(),[b,x]=(0,dH.useState)(!1),S=typeof u==`object`&&u?u:{},{isEnabled:C,isOpen:w,toggle:T}=VB({isCollapsible:u!==!1&&{...S,defaultIsOpen:S.defaultIsOpen??!1}}),E=(0,dH.useRef)(null),D=(0,dH.useId)(),O=pH[e],k=mH[e]??hH,A=gH[e],j=dn(d),M=y(`@astryx.banner.dismiss`),N=o??M,ee=o??(typeof t==`string`?y(`@astryx.banner.dismissTitled`,{dismiss:M,title:t}):M);if(b)return null;let P=(e,t)=>{e instanceof HTMLElement&&e!==document.body&&!t.contains(e)&&(E.current=e)},te=e=>{P(e.relatedTarget,e.currentTarget)},F=e=>{P(document.activeElement,e.currentTarget)},ne=()=>{let e=E.current;x(!0),a?.(),e?.isConnected&&e.focus()},I=C&&j,re=dn(s)||i||I,ie=dn(s)||i,ae=!dn(n)&&ie,oe=j&&(!C||w),se=c===`card`;return(0,fH.jsxs)(`div`,{ref:h,role:k,onFocusCapture:$t(g,te),onPointerDownCapture:$t(_,F),...U(V(`banner-frame`,{container:c,elevation:l}),z(_H.root,yH[l],se&&l!==`none`&&_H.rootElevatedCard,f),p,m),...v,children:[(0,fH.jsxs)(`div`,{...U(V(`banner`,{container:c,status:e}),z(_H.header,ae&&_H.headerCentered,lH(e)&&vH[e],se&&(oe?_H.headerCardWithContent:_H.headerCardStandalone))),children:[(0,fH.jsx)(`div`,{...dn(r)?U(V(`banner-icon`,{status:e}),{className:`x78zum5 x6s0dn4 x2lah0s`}):{className:`x78zum5 x6s0dn4 x2lah0s`},"aria-hidden":`true`,children:dn(r)?r:O==null?null:(0,fH.jsx)(nu,{icon:O,size:`md`,color:A,...V(`banner-icon`,{status:e})})}),(0,fH.jsxs)(`div`,{...{0:{className:`x78zum5 xdt5ytf xxhr3t x98rzlu xeuugli`},1:{className:`x78zum5 xdt5ytf xxhr3t x98rzlu xeuugli xgualba`}}[!!dn(s)<<0],children:[(0,fH.jsx)(`div`,{className:`x1ghz6dp xjb2p0i xcr08ib x2mo6ok x1kq96og x1tgivj0 xj0a0fe`,children:t}),dn(n)&&(0,fH.jsx)(`div`,{...U(V(`banner-description`),{className:`x1ghz6dp xjb2p0i x141an7d x1sodnla x1ltkj2j xv1l7n4 xj0a0fe`}),children:n})]}),re&&(0,fH.jsxs)(`div`,{...z(_H.endArea,lx.inset(St[`--spacing-2`])),children:[s,I&&(0,fH.jsx)(Y,{variant:`ghost`,size:`sm`,label:y(w?`@astryx.banner.collapse`:`@astryx.banner.expand`),tooltip:y(w?`@astryx.banner.collapse`:`@astryx.banner.expand`),icon:(0,fH.jsx)(nu,{icon:`chevronDown`,size:`sm`,color:`inherit`,xstyle:[_H.chevron,w&&_H.chevronExpanded]}),onClick:T,"aria-expanded":w,"aria-controls":oe?D:void 0,isIconOnly:!0}),i&&(0,fH.jsx)(Y,{variant:`ghost`,size:`sm`,label:ee,tooltip:N,icon:(0,fH.jsx)(nu,{icon:`close`,size:`sm`,color:`inherit`}),onClick:ne,isIconOnly:!0})]})]}),oe&&(0,fH.jsx)(`div`,{id:I?D:void 0,...U(V(`banner-content`,{container:c,status:e}),{0:{className:`x1de1mus x8o8v82 x1pzlopt xgbv0en xw8tdv1 x92x3c3 x1t7ytsu x18b5jzi x1q0q8m5 x1j92z86 x1gejf6u xw8gpjh`},1:{className:`x1de1mus x8o8v82 x1pzlopt xgbv0en xw8tdv1 x92x3c3 x1t7ytsu x18b5jzi x1q0q8m5 x1j92z86 x1gejf6u xw8gpjh x1k5g1gk x1eprgri`}}[!!se<<0]),children:d})]})}var dH,fH,pH,mH,hH,gH,_H,vH,yH,bH=o((()=>{dH=u(f(),1),B(),jx(),lu(),Et(),UB(),W(),ux(),H(),Ef(),fH=G(),pH={info:`info`,warning:`warning`,error:`error`,success:`success`},mH={info:`status`,warning:`alert`,error:`alert`,success:`status`},hH=`status`,gH={info:`accent`,warning:`warning`,error:`error`,success:`success`},_H={root:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kMv6JI:`xjb2p0i`,$$css:!0},rootElevatedCard:{kaIpWk:`x1vf2byn`,$$css:!0},header:{k1xSpc:`x78zum5`,kGNEyG:`x1cy8zhl`,kwnvtZ:`x1a02dak`,k1C7PZ:`xak3so`,khm7nJ:`x4olc9o`,k8WAf4:`x8o8v82`,kg3NbH:`x1pzlopt`,$$css:!0},headerCardStandalone:{kaIpWk:`x1vf2byn`,$$css:!0},headerCardWithContent:{krdFHd:`xwxb7qi`,kfmiAY:`x13nour3`,kVL7Gh:`xbiv7yw`,kT0f0o:`x16uus16`,$$css:!0},headerCentered:{kGNEyG:`x6s0dn4`,$$css:!0},endArea:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kwnvtZ:`x1a02dak`,kjj79g:`x13a6bvl`,kOIVth:`x1txdalj`,kmuXW:`x2lah0s`,ks0D6T:`x193iq5w`,keTefX:`xvc5jky`,kqGvvJ:`x81ka23`,$$css:!0},chevron:{k1ekBW:`x11xpdln`,kIyJzY:`xuedmi6 x12w9bfk`,kAMwcw:`xlr8y92`,$$css:!0},chevronExpanded:{k3aq6I:`x19jd1h0`,$$css:!0}},vH={info:{kWkggS:`xgcxg3y`,$$css:!0},warning:{kWkggS:`x24i8r5`,$$css:!0},error:{kWkggS:`x1pritpl`,$$css:!0},success:{kWkggS:`xu13z74`,$$css:!0}},yH={none:{kGVxlE:`x1gnnqk1`,$$css:!0},low:{kGVxlE:`x1i5ehqx`,$$css:!0},med:{kGVxlE:`x14hfi27`,$$css:!0},high:{kGVxlE:`x1kcpxr7`,$$css:!0}},uH.displayName=`Banner`})),xH=o((()=>{bH()}));function SH(e){return e===void 0?`not initialized`:e?`protected`:`public`}function CH(e){return e===`error`?`needs attention`:e}function wH(e){if(e.invalid)return`invalid configuration`;if(!e.configured)return`not configured`;let t=e.enabled?`enabled`:`disabled`;return e.status&&e.status!==`ready`?`${t}, ${CH(e.status)}`:t}function TH(e){return e.invalid?`The saved Zero Trust configuration is invalid.`:!e.configured||!e.enabled&&!e.operation?`Project Zero Trust is not enabled.`:e.operation?`A Zero Trust ${e.operation} operation is running. Project changes are available after it finishes.`:`Platform Zero Trust status: ${e.status?CH(e.status):`not ready`}.`}function EH({projectId:e,zeroTrust:t}){let{state:n}=t;return(0,DH.jsxs)(`section`,{id:`zero-trust`,className:`void-admin-project-zero-trust`,children:[(0,DH.jsx)(`h2`,{children:`Zero Trust`}),(0,DH.jsxs)(`div`,{className:`void-admin-project-zero-trust-state`,children:[(0,DH.jsxs)(`span`,{children:[`Platform: `,wH(t)]}),(n!==null||t.enabled)&&(0,DH.jsxs)(DH.Fragment,{children:[(0,DH.jsxs)(`span`,{children:[`Desired: `,SH(n?.desired_protected)]}),(0,DH.jsxs)(`span`,{children:[`Effective: `,SH(n?.effective_protected)]}),(0,DH.jsx)(VL,{label:n?.state??`not initialized`,variant:n?.state===`error`?`error`:n?.state===`reconciling`?`info`:n?.state===`protected`?`success`:`neutral`})]})]}),n?.last_error&&(0,DH.jsx)(uH,{status:`error`,title:`Last error`,description:n.last_error}),t.available?(0,DH.jsxs)(`div`,{className:`void-admin-team-actions`,children:[(0,DH.jsxs)(`form`,{method:`post`,action:`/admin/projects/${e}/zero-trust`,...n?.desired_protected?{"data-confirm":`Make this project public? Anyone can reach its hostnames without signing in.`}:{},children:[(0,DH.jsx)(`input`,{type:`hidden`,name:`protected`,value:n?.desired_protected?`false`:`true`}),(0,DH.jsx)(Y,{type:`submit`,label:n?.desired_protected?`Make project public`:`Protect project`,variant:n?.desired_protected?`destructive`:`primary`})]}),(0,DH.jsx)(`form`,{method:`post`,action:`/admin/projects/${e}/zero-trust/reconcile`,children:(0,DH.jsx)(Y,{type:`submit`,label:`Reconcile`,variant:`secondary`})})]}):(0,DH.jsxs)(`div`,{className:`void-admin-auth-recovery`,children:[(0,DH.jsx)(`p`,{children:TH(t)}),(0,DH.jsx)(Y,{href:OH,label:t.operation?`View status`:!t.configured||!t.enabled?`Configure Zero Trust`:`Review configuration`,variant:`secondary`,size:`sm`})]})]})}var DH,OH,kH=o((()=>{KL(),xH(),jx(),DH=G(),OH=`/admin/zero-trust`})),AH=c({ProjectDetailPage:()=>jH});function jH({path:e,platformName:t,username:n}){let{projectDetail:r}=ib(GR(e),{mode:`stale-while-revalidate`}),i=nb(VR,r);if(!i)throw Error(`Project data is unavailable.`);let{project:a,deployments:o,resources:s,owner:c,teamMembers:l,pendingTeamInvitations:u,domains:d,builds:f,zeroTrust:p,cfAccountId:m,deployUrl:h,tz:g}=i;return J(mF,{platformName:t,title:a.slug,username:n,children:[q(`h1`,{children:a.slug}),q(ML,{children:J(YI,{children:[J(Z,{children:[q($,{children:`ID`}),q(Q,{children:a.id})]}),J(Z,{children:[q($,{children:`Slug`}),q(Q,{children:a.slug})]}),J(Z,{children:[q($,{children:`URL`}),q(Q,{children:q(`a`,{href:h,target:`_blank`,rel:`noopener noreferrer`,children:h})})]}),J(Z,{children:[q($,{children:`Custom Domain`}),q(Q,{children:d.length>0?d.map(e=>J(`span`,{children:[q(`a`,{href:`https://${e.hostname}`,target:`_blank`,rel:`noopener noreferrer`,children:e.hostname}),` `,`(`,e.status,`)`,` `]},e.id)):q(Db.Fragment,{children:`None`})})]}),J(Z,{children:[q($,{children:`Owner`}),q(Q,{children:c?q(`a`,{href:`/admin/users/${c.id}`,children:c.login}):a.user_id})]}),J(Z,{children:[q($,{children:`Type`}),q(Q,{children:a.type})]}),J(Z,{children:[q($,{children:`Email`}),q(Q,{children:q(`a`,{href:`/admin/email/${a.id}`,children:`usage, limits, destinations`})})]}),J(Z,{children:[q($,{children:`Created`}),q(Q,{children:CF(a.created_at,g)})]})]})}),J(`h2`,{children:[`Resources (`,s.length,`)`]}),s.length>0?J(ML,{children:[q(KI,{children:J(Z,{children:[q($,{children:`Type`}),q($,{children:`Binding`}),q($,{children:`CF ID`})]})}),q(YI,{children:s.map(e=>J(Z,{children:[q(Q,{children:e.type}),q(Q,{children:e.binding_name}),q(Q,{children:m&&(e.type===`d1`||e.type===`kv`||e.type===`r2`)?q(`a`,{href:e.type===`d1`?`https://dash.cloudflare.com/${m}/workers/d1/databases/${e.cf_id}/metrics`:e.type===`kv`?`https://dash.cloudflare.com/${m}/workers/kv/namespaces/${e.cf_id}/metrics`:`https://dash.cloudflare.com/${m}/r2/default/buckets/${e.cf_id}`,target:`_blank`,rel:`noopener noreferrer`,children:e.cf_id}):e.cf_id})]},e.id))})]}):q(`p`,{children:q(`em`,{children:`No resources provisioned.`})}),J(`h2`,{children:[`Recent Deployments (`,o.length,`)`]}),q(xz,{deployments:o,activeDeploymentId:a.active_deployment_id,tz:g}),J(`h2`,{children:[`Builds (`,f.length,`)`]}),q(KV,{builds:f,tz:g}),q(EH,{projectId:a.id,zeroTrust:p}),q(iH,{projectId:a.id,owner:c,members:l,invitations:u,tz:g}),q(eH,{projectId:a.id}),q(`h2`,{children:`Danger Zone`}),q(`form`,{method:`post`,action:`/admin/projects/${a.id}/delete`,"data-confirm":`Permanently delete project "${a.slug}" and all its resources? This cannot be undone.`,children:q(Y,{type:`submit`,label:`Delete Project`,variant:`destructive`})})]})}var MH=o((()=>{jx(),wR(),hb(),mz(),JV(),Sz(),kF(),_F(),rH(),cH(),kH(),Ob()})),NH=c({ProjectOwnerPreviewPage:()=>FH});function PH(e){return e.suspended?`Suspended (${e.suspendedReason??`unknown reason`})`:`Active`}function FH({result:e,convergenceOnly:t,operationBlocked:n,projectId:r,userId:i,platformName:a,username:o}){return J(mF,{platformName:a,title:`${t?`Converge`:`Transfer`} ${e.target.slug}`,username:o,children:[J(`h1`,{children:[t?`Converge Ownership State`:`Transfer Ownership`,`: `,e.target.slug]}),J(ML,{children:[q(KI,{children:J(Z,{children:[q($,{children:`Account`}),q($,{children:`User`}),q($,{children:`Plan`}),q($,{children:`Status`})]})}),J(YI,{children:[J(Z,{children:[q($,{children:`Current owner`}),J(Q,{children:[e.currentOwner.login,` (`,q(`code`,{children:e.currentOwner.id}),`)`]}),q(Q,{children:e.currentOwner.plan}),q(Q,{children:PH(e.currentOwner)})]}),J(Z,{children:[q($,{children:`New owner`}),J(Q,{children:[e.newOwner.login,` (`,q(`code`,{children:e.newOwner.id}),`)`]}),q(Q,{children:e.newOwner.plan}),q(Q,{children:PH(e.newOwner)})]})]})]}),t?J(`p`,{children:[`This project is already owned by the target. This is a convergence-only operation: applying it repairs membership, usage-counter, routing, and account metadata without changing ownership. The owner's stored project role is`,` `,q(`strong`,{children:e.targetPreviousRole??`none`}),`. Usage transfer is`,` `,e.usageTransfer,`.`]}):J(`p`,{children:[`The former owner will become a `,q(`strong`,{children:e.formerOwnerRole}),`. The target's current project role is `,q(`strong`,{children:e.targetPreviousRole??`none`}),`. Usage transfer is `,e.usageTransfer,`.`]}),q(`h2`,{children:`Operation blockers`}),e.blockers.length>0?J(Db.Fragment,{children:[q(`ul`,{children:e.blockers.map(e=>J(`li`,{children:[e.kind,`: `,e.id,` (`,e.status,`)`]},`${e.kind}:${e.id}`))}),t&&!n?q(`p`,{children:`Active work does not block convergence.`}):null]}):q(`p`,{children:`None.`}),q(`h2`,{children:`Convergence`}),q(`p`,{children:e.counterUpdates.detachUserId?J(Db.Fragment,{children:[`Usage counters: detach from `,q(`code`,{children:e.counterUpdates.detachUserId}),`, attach to`,` `,q(`code`,{children:e.counterUpdates.attachUserId}),`.`]}):J(Db.Fragment,{children:[`Usage counters: attach or reconcile with`,` `,q(`code`,{children:e.counterUpdates.attachUserId}),`; no former-owner detachment is needed.`]})}),J(`p`,{children:[`Routing and account entries: `,e.routingUpdates.join(`, `)]}),q(`h2`,{children:`GitHub authorization provenance`}),e.github?J(`p`,{children:[e.github.repository,` installation `,e.github.installationId,`, authorized by`,` `,e.github.authorizedByUserId,` (`,e.github.executor,`).`]}):q(`p`,{children:`No GitHub connection.`}),n?q(`p`,{children:t?`Project deletion blocks convergence.`:`Resolve or cancel all active work before applying this transfer.`}):J(`form`,{method:`post`,action:`/admin/projects/${r}/owner`,className:`void-admin-team-actions`,children:[q(`input`,{type:`hidden`,name:`userId`,value:i}),q(Y,{type:`submit`,label:t?`Apply Convergence`:`Apply Ownership Transfer`,variant:`destructive`}),q(Y,{href:`/admin/projects/${r}`,label:`Cancel`,variant:`secondary`})]})]})}var IH=o((()=>{jx(),wR(),_F(),Ob()})),LH=c({DeploymentsListPage:()=>RH});function RH({path:e,platformName:t,username:n}){let{deploymentsPage:r}=ib(zR(e),{mode:`stale-while-revalidate`}),i=nb(IR,r);if(!i)throw Error(`Deployments page data is unavailable.`);let{deployments:a,search:o,page:s,totalPages:c,tz:l}=i,[u,d]=(0,zH.useState)(o??``);(0,zH.useEffect)(()=>d(o??``),[o]);let f=a.find(e=>e.id===o);return J(mF,{platformName:t,title:`Deployments`,username:n,children:[q(`h1`,{children:`Deployments`}),q(EV,{action:`/admin/deployments`,kind:`deployments`,label:`Search deployments`,value:u,onChange:d,initialValue:o,initialSelection:f?{id:f.id,label:f.id,description:[f.project_slug,f.status].filter(Boolean).join(` · `)}:void 0}),q(xz,{deployments:a,showProject:!0,tz:l}),s!=null&&c!=null&&q(wV,{page:s,totalPages:c,baseUrl:`/admin/deployments`})]})}var zH,BH=o((()=>{zH=u(f(),1),hb(),mz(),Sz(),_F(),TV(),kV(),Ob()})),VH=c({CliVersionsPage:()=>UH});function HH({rows:e,title:t,tz:n}){let r=[{key:`cli_version`,header:`Version`,width:UF(2,{minWidth:160}),renderCell:e=>q(Na,{maxLines:1,children:e.cli_version??`unknown`})},{key:`deployments`,header:`Deploys`,width:UF(1,{minWidth:96}),renderCell:e=>TF(e.deployments)},{key:`projects`,header:`Projects`,width:UF(1,{minWidth:96}),renderCell:e=>TF(e.projects)},{key:`users`,header:`Users`,width:UF(1,{minWidth:96}),renderCell:e=>TF(e.users)},{key:`first_seen`,header:`First Seen`,width:WF(220),renderCell:e=>CF(e.first_seen,n)},{key:`last_seen`,header:`Last Seen`,width:WF(220),renderCell:e=>CF(e.last_seen,n)}];return J(Db.Fragment,{children:[q(Ba,{level:2,children:t}),e.length===0?q(`p`,{children:q(`em`,{children:`No deployments found.`})}):q(ML,{data:[...e],columns:r,idKey:e=>e.cli_version??`unknown`,textOverflow:`truncate`,hasHover:!0})]})}function UH({path:e,platformName:t,username:n}){let{cliVersions:r}=ib(ZR(e),{mode:`stale-while-revalidate`}),i=nb(JR,r);if(!i)throw Error(`CLI version data is unavailable.`);let{allTime:a,last30Days:o,tz:s}=i;return J(mF,{platformName:t,title:`CLI Versions`,username:n,children:[q(Ba,{level:1,children:`CLI Versions`}),q(HH,{rows:o,title:`Last 30 Days`,tz:s}),q(HH,{rows:a,title:`All Time`,tz:s})]})}var WH=o((()=>{wR(),qa(),hb(),mz(),kF(),_F(),Ob()})),GH=c({SignupControlPage:()=>YH});function KH({value:e}){return q(VL,{label:e?`Yes`:`No`,variant:e?`success`:`neutral`})}function qH({label:e,value:t}){let{copy:n,isCopied:r}=rw({announce:`${e} copied`}),[i,a]=(0,XH.useState)(!1);return J(`div`,{className:`void-admin-access-copy-value`,children:[J(PL,{label:e,children:[q(UA,{label:``,isReadOnly:!0,value:t,onFocus:e=>e.currentTarget.select()}),q(Y,{type:`button`,label:`${r?`Copied`:`Copy`} ${e}`,tooltip:r?`Copied`:`Copy`,icon:(0,XH.createElement)(r?Up:Tm,{size:16,"aria-hidden":!0}),isIconOnly:!0,variant:`ghost`,size:`sm`,onClick:async()=>a(!await n(t))})]}),i&&q(`span`,{role:`status`,children:`Select the value to copy it manually.`})]})}function JH({status:e}){return e===`sent`?q(VL,{label:`Sent`,variant:`success`}):e===`failed`?q(VL,{label:`Failed`,variant:`error`}):e===`unavailable`?q(VL,{label:`Email off`,variant:`neutral`}):q(VL,{label:`Not recorded`,variant:`neutral`})}function YH({path:e,platformName:t,username:n}){let{signupControl:r}=ib(QR(e),{mode:`stale-while-revalidate`}),i=nb(YR,r);if(!i)throw Error(`Access settings are unavailable.`);let{enabled:a,admission:o,initialized:s,revision:c,methods:l,protection:u,connections:d,directEntries:f,invitations:p,page:m,totalPages:h,emailEnabled:g,connectCommand:_,inviteUrl:v,result:y,tz:b}=i,x=o?.mode??(a?`restricted`:`public`),S=l.filter(e=>e.enabled&&e.kind!==`github`);return q(mF,{platformName:t,title:`Access`,username:n,children:J(`div`,{className:`void-admin-access-page`,children:[J(`header`,{className:`void-admin-access-intro`,children:[q(Ba,{level:1,children:`Access`}),q(`p`,{children:`Decide who can join this platform and manage invitations and individual grants.`})]}),q(`section`,{"aria-labelledby":`access-policy-heading`,children:q(OC,{title:`Who can join?`,titleId:`access-policy-heading`,description:`These rules apply when someone creates a platform account.`,headerAccessory:q(VL,{label:x===`public`?`Public`:x===`company`?`Company or approved`:`Approved only`,variant:x===`public`?`warning`:`neutral`}),children:s?J(`form`,{method:`post`,action:`/admin/signup-control/policy`,className:`void-admin-access-form`,children:[q(`input`,{type:`hidden`,name:`revision`,value:c??0}),q(ZA,{label:`Signup policy`,name:`mode`,initialValue:x,options:[{value:`restricted`,label:`Only individually approved people`},{value:`company`,label:`Company-approved or individually approved people`},{value:`public`,label:`Anyone with an enabled login method`}],width:420}),q(`p`,{children:x===`restricted`?`An invitation or direct grant is required before someone can create an account.`:x===`company`?`People who meet a selected company policy or have an individual grant can join.`:`Anyone with an enabled login method can join. Individual invitations are unnecessary.`}),q(OC,{title:`Company-approved methods`,headingLevel:3,description:`Select which existing login checks qualify someone when company signup is chosen.`,children:J(`div`,{className:`void-admin-access-checkboxes`,children:[S.map(e=>q(QA,{label:e.label,name:`connections`,submitValue:e.id,initialValue:o?.mode===`company`&&o.connections.includes(e.id)},e.id)),u&&q(QA,{label:`Anyone who passes Cloudflare Access protection`,name:`access`,submitValue:`true`,initialValue:o?.mode===`company`&&o.access}),S.length===0&&!u&&J(`p`,{children:[`No company-approved methods are available. Configure one in`,` `,q(`a`,{href:`/admin/config/auth`,children:`Authentication`}),` before selecting this policy.`]})]})}),q(`p`,{children:`New accounts are ordinary users. Changing this policy does not change Cloudflare Access protection.`}),q(Y,{type:`submit`,label:`Save signup policy`})]}):J(`div`,{className:`void-admin-access-form`,children:[J(`p`,{children:[`To use company-approved signup, first set up`,` `,q(`a`,{href:`/admin/config/auth`,children:`Authentication settings`}),`.`]}),J(`form`,{method:`post`,action:`/admin/signup-control/toggle`,className:`void-admin-access-form`,children:[J(`p`,{children:[`Signup is`,` `,a?`restricted to approved people`:`open to anyone with an enabled login`,`.`]}),q(Y,{type:`submit`,label:a?`Open signup`:`Restrict signup`,variant:`secondary`})]})]})})}),q(`section`,{"aria-labelledby":`access-invite-heading`,children:J(OC,{title:`Invite people`,titleId:`access-invite-heading`,description:x===`public`?`Signup is public. Share the platform address with anyone you want to join.`:g?`Create an invitation for each email address. We'll email them connection instructions.`:`Create an invitation for each email address. Since email is off, share the platform link below yourself.`,headerAccessory:q(VL,{label:g?`Email enabled`:`Email not enabled`,variant:g?`success`:`neutral`}),children:[y===`invited`&&q(`p`,{role:`status`,className:`void-admin-access-notice`,children:g?`Invitations created. Check the history below to see whether email was sent.`:`Invitations created. Share the platform link below with each person.`}),x!==`public`&&J(`form`,{method:`post`,action:`/admin/invitations/send`,className:`void-admin-access-form`,children:[q(XA,{label:`Email addresses`,name:`email`,placeholder:`person@example.com, teammate@example.com`,required:!0,width:440}),q(`p`,{children:`Each person must sign in with a login method that supplies the same verified email address.`}),q(Y,{type:`submit`,label:g?`Invite and email`:`Create invitations`})]}),J(`div`,{className:`void-admin-access-share`,children:[q(`h3`,{children:g?`Share connection details`:`Share these details manually`}),q(qH,{label:`Platform invitation page`,value:v}),q(qH,{label:`Void CLI connection command`,value:_})]})]})}),q(`section`,{"aria-labelledby":`access-grants-heading`,children:J(OC,{title:`Direct grants`,titleId:`access-grants-heading`,description:J(Db.Fragment,{children:[`Allow a GitHub username, email address or domain, or login identity to sign up. These rules do not create invitations or send email.`,x===`public`&&` While signup is public, grants do not limit who can join.`]}),children:[J(`form`,{method:`post`,action:`/admin/signup-control/add`,className:`void-admin-access-fields`,children:[q(ZA,{label:`Grant type`,name:`type`,initialValue:`github`,options:[{value:`github`,label:`GitHub username`},{value:`email`,label:`Email or domain pattern`}],width:210}),q(XA,{label:`Pattern`,name:`pattern`,placeholder:`username, person@example.com, *@company.com`,required:!0,width:360}),q(YA,{label:`Note`,name:`note`,placeholder:`Optional`,width:180}),q(Y,{type:`submit`,label:`Add grant`})]}),d.length>0&&J(`form`,{method:`post`,action:`/admin/signup-control/add`,className:`void-admin-access-fields`,children:[q(`input`,{type:`hidden`,name:`type`,value:`identity`}),q(ZA,{label:`Login connection`,name:`connectionId`,initialValue:d[0]?.id??``,options:d.map(e=>({value:e.id,label:`${e.label} (${e.id})`})),width:250,hasSearch:!0}),q(YA,{label:`Provider subject`,name:`subject`,placeholder:`Exact provider subject`,required:!0,maxLength:255,width:340}),q(YA,{label:`Note`,name:`note`,placeholder:`Optional`,width:180}),q(Y,{type:`submit`,label:`Add identity`})]}),q(`p`,{children:`Identity grants match the selected login connection and provider subject exactly, including case. Email is not inferred or linked.`}),q(`div`,{className:`void-admin-access-table`,children:J(ML,{hasHover:!0,children:[q(KI,{children:J(Z,{children:[q($,{children:`Type`}),q($,{children:`Grant`}),q($,{children:`Note`}),q($,{children:`Accepted`}),q($,{children:`Deployed`}),q($,{children:`Actions`})]})}),q(YI,{children:f.map(e=>J(Z,{children:[q(Q,{children:e.type}),q(Q,{children:e.type===`identity`?`${e.connectionId}: ${e.subject}`:e.pattern}),q(Q,{children:e.note||`—`}),q(Q,{children:q(KH,{value:e.accepted})}),q(Q,{children:q(KH,{value:e.deployed})}),q(Q,{children:J(`form`,{method:`post`,action:`/admin/signup-control/delete`,children:[q(`input`,{type:`hidden`,name:`index`,value:e.index}),q(Y,{type:`submit`,label:`Remove`,variant:`destructive`,size:`sm`})]})})]},e.type===`identity`?`${e.type}-${e.connectionId}-${e.subject}`:`${e.type}-${e.pattern}`))})]})}),f.length===0&&q(`p`,{children:`No direct grants yet.`})]})}),q(`section`,{"aria-labelledby":`access-history-heading`,children:J(OC,{title:`Invitation history`,titleId:`access-history-heading`,description:`Invitation status and email delivery are tracked separately. Invitations do not expire.`,footer:h>1?q(wV,{page:m,totalPages:h,baseUrl:`/admin/signup-control`}):void 0,children:[q(`div`,{className:`void-admin-access-table`,children:J(ML,{hasHover:!0,children:[q(KI,{children:J(Z,{children:[q($,{children:`Email`}),q($,{children:`Access`}),q($,{children:`Email delivery`}),q($,{children:`Invited by`}),q($,{children:`Created`}),q($,{children:`Accepted`}),q($,{children:`Revoked`}),q($,{children:`Actions`})]})}),q(YI,{children:p.map(e=>J(Z,{children:[q(Q,{children:e.email}),q(Q,{children:q(VL,{label:e.status,variant:e.status===`pending`?`warning`:e.status===`revoked`?`error`:`success`})}),q(Q,{children:q(JH,{status:e.email_delivery_status})}),q(Q,{children:e.invited_by_login??e.invited_by}),q(Q,{children:e.created_at?CF(e.created_at,b):`—`}),q(Q,{children:e.accepted_at?CF(e.accepted_at,b):`—`}),q(Q,{children:e.revoked_at?J(Db.Fragment,{children:[CF(e.revoked_at,b),` by`,` `,e.revoked_by_login??e.revoked_by??`?`]}):`—`}),J(Q,{children:[e.status===`pending`&&J(`form`,{method:`post`,action:`/admin/invitations/revoke`,children:[q(`input`,{type:`hidden`,name:`id`,value:e.id}),q(Y,{type:`submit`,label:`Revoke`,variant:`destructive`,size:`sm`})]}),e.status===`accepted`&&e.grantIndex!==null&&J(`form`,{method:`post`,action:`/admin/signup-control/delete`,children:[q(`input`,{type:`hidden`,name:`index`,value:e.grantIndex}),q(Y,{type:`submit`,label:`Remove signup grant`,variant:`destructive`,size:`sm`})]})]})]},e.id))})]})}),p.length===0&&q(`p`,{children:`No invitations yet.`})]})})]})})}var XH,ZH=o((()=>{KL(),jx(),PT(),BL(),wR(),qa(),JA(),Jh(),XH=u(f(),1),hb(),mz(),AC(),kF(),nj(),_F(),TV(),Ob()}));function QH({ref:e,label:t,isLabelHidden:n=!1,description:r,value:i,onChange:a,orientation:o=`vertical`,isDisabled:s=!1,disabledMessage:c,isRequired:l=!1,isOptional:u=!1,size:d=`md`,status:f,labelTooltip:p,width:m,xstyle:h,className:g,style:_,"data-testid":v,htmlName:y,children:b}){let x=(0,$H.useId)(),S=y??x,C=(0,$H.useId)(),w=(0,$H.useId)(),T=(0,$H.useId)(),E=(0,$H.useId)(),D=(0,$H.useRef)(null),O=ZT({isRequired:l,isOptional:u}),k=s&&!!c,A=va({placement:`above`,focusTrigger:`always`,isEnabled:k}),j=(0,$H.useMemo)(()=>({name:S,value:i,onChange:a,isDisabled:s,hasDisabledMessage:k,isRequired:l,size:d,status:f}),[S,i,a,s,k,l,d,f]),M=(0,$H.useCallback)(e=>{if(i!==``)return;let t=D.current;if(!t)return;let n=e.relatedTarget;if(n){if(t.contains(n))return}else if(document.activeElement&&document.activeElement!==e.target&&t.contains(document.activeElement))return;let r=Array.from(t.querySelectorAll(`input[type="radio"]:not([disabled])`));if(r.length===0)return;let a=e.target,o=r.findIndex(e=>e===a);if(o===-1)return;let s=o===r.length-1?r[r.length-1]:r[0];a!==s&&s.focus()},[i]);return(0,eU.jsxs)(IE,{ref:e,"data-testid":v,label:t,isLabelHidden:n,description:r,inputID:C,labelID:w,isGroupLabel:!0,descriptionID:r?T:void 0,isOptional:u,isRequired:l,isDisabled:s,status:f?{type:f.type,message:f.message,messageID:f.message?E:void 0}:void 0,labelTooltip:p,statusVariant:`detached`,width:m,xstyle:h,className:g,style:_,children:[(0,eU.jsx)(`div`,{ref:e=>{D.current=e,A.ref(e)},role:`radiogroup`,"aria-labelledby":w,onFocus:M,"aria-describedby":[r?T:null,f?.message?E:null,k?A.describedBy:null].filter(Boolean).join(` `)||void 0,"aria-invalid":f?.type===`error`||void 0,"aria-required":O||void 0,...U(V(`radio-list`,{orientation:o,size:d}),{0:{className:`x78zum5 x1q0g3np x9mgr7n`},1:{className:`x78zum5 xdt5ytf x1txdalj`}}[(o===`vertical`)<<0]),children:(0,eU.jsx)(tU,{value:j,children:b})}),k&&A.renderTooltip(c)]})}var $H,eU,tU,nU=o((()=>{Ar(),$H=u(f(),1),VE(),uu(),$T(),W(),H(),eU=G(),tU=Tr(null),tU.displayName=`RadioListContext`,QH.displayName=`RadioList`}));function rU({ref:e,label:t,"aria-label":n,value:r,description:i,isDisabled:a=!1,startContent:o,endContent:s,xstyle:c,className:l,style:u,onClick:d,...f}){let p=(0,iU.use)(tU);if(!p)throw Error(`RadioListItem must be used within an RadioList`);let m=(0,iU.useId)(),h=(0,iU.useId)(),g=(0,iU.useId)(),_=p.isDisabled||a,v=p.hasDisabledMessage&&!a,y=p.value===r,b=dn(i),x=p.size,S=CE(`radio`),C=(0,iU.useRef)(null),{focusProps:w}=jT(C,_),T=(0,iU.useRef)(null),E=(0,aU.jsxs)(`div`,{...z(oU.radioWrapper,sU[x],!_&&oU.indicatorPressOverlay),...w,children:[(0,aU.jsx)(`input`,{ref:T,id:m,type:`radio`,name:p.name,value:r,checked:y,disabled:_&&!v,"aria-disabled":v?`true`:void 0,form:v?``:void 0,required:p.isRequired,onChange:()=>{_||p.onChange(r)},onClick:d,"aria-label":n,"aria-labelledby":n==null?h:void 0,"aria-describedby":b?g:void 0,...z(oU.input,On.centerInline(`-50%`),oU.inputCoarse,sU[x],_&&oU.inputDisabled)}),(0,aU.jsx)(`span`,{ref:C,className:`xjp7ctv`,children:(0,aU.jsx)(S,{state:y?`checked`:`unchecked`,size:x,isDisabled:_})})]}),D=dn(o)?(0,aU.jsxs)(aU.Fragment,{children:[E,o]}):E;return(0,aU.jsx)(vO,{ref:e,startContent:D,interactiveRef:T,isDisabled:_,label:(0,aU.jsx)(`span`,{id:h,children:t}),description:b?(0,aU.jsx)(`span`,{id:g,children:i}):void 0,endContent:s,xstyle:[!_&&YT,cU.root,c],...U(V(`radio-list-item`,{size:x,selected:y?`selected`:null,disabled:_?`disabled`:null}),{className:l,style:u}),...f})}var iU,aU,oU,sU,cU,lU=o((()=>{iU=u(f(),1),B(),nU(),W(),XT(),NT(),TE(),EO(),H(),aU=G(),oU={radioWrapper:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,kHBbk8:`xc8icb0`,$$css:!0},indicatorPressOverlay:{k5JduY:`x1s928wv`,kwXMNM:`x1j6awrg`,kv0HGH:`xarstr8`,kUfP38:`xq94oqs`,kloYau:`x2q1x1w`,ks3ayO:`xyhc2n1 x2kv6q6`,$$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}},sU={sm:{kzqmXN:`xw4jnvo`,kZKoxP:`x1qx5ct2`,$$css:!0},md:{kzqmXN:`xvy4d1p`,kZKoxP:`xxk0z11`,$$css:!0}},cU={root:{k8WAf4:`xt970qd`,kg3NbH:`xnjsko4`,kaIpWk:`x2u8bby`,k7Eaqz:`xeuugli`,kWkggS:`xjbqb8w`,$$css:!0}},rU.displayName=`RadioListItem`})),uU=o((()=>{nU(),lU()})),dU=c({EmailSettingsPage:()=>pU});function fU(){return J(`header`,{className:`void-admin-email-intro`,children:[q(Ba,{level:1,children:`Email`}),q(`p`,{children:`Manage email settings for the platform. Each project’s email page contains its usage, limits, and domains.`})]})}function pU({path:e,platformName:t,username:n,emailEnabled:r}){return r===!1?q(mF,{platformName:t,title:`Email`,username:n,children:J(`div`,{className:`void-admin-email-settings`,children:[q(fU,{}),J(OC,{title:`Enable email`,children:[q(`p`,{children:`Email is not enabled on this platform.`}),q(`p`,{children:`Set up a shared sender domain and Cloudflare zone, then upgrade the platform.`}),q(Y,{as:`a`,href:gU,label:`How to enable email`,variant:`secondary`})]})]})}):q(mU,{path:e,platformName:t,username:n})}function mU({path:e,platformName:t,username:n}){let{emailSettings:r}=ib(cz(e),{mode:`stale-while-revalidate`}),i=nb(oz,r);if(!i)throw Error(`Email settings are unavailable.`);let{policy:a,management:o,senderDomain:s}=i,[c,l]=(0,hU.useState)(a.mode),[u,d]=(0,hU.useState)(o);return q(mF,{platformName:t,title:`Email`,username:n,children:J(`div`,{className:`void-admin-email-settings`,children:[q(fU,{}),J(OC,{title:`Recipient policy`,children:[J(`p`,{children:[`Choose which recipients can receive email sent from the shared sender`,s?J(Db.Fragment,{children:[` `,`(`,q(`code`,{children:`<slug>+tag@${s}`}),`)`]}):null,`. This does not affect email sent from custom domains.`]}),J(`form`,{method:`post`,action:`/admin/email/policy`,className:`void-admin-email-choice-form`,children:[J(QH,{label:`Recipient policy`,isLabelHidden:!0,size:`sm`,htmlName:`mode`,value:c,onChange:e=>l(e),children:[q(rU,{value:`verified`,label:`verified`,description:`Only each project's verified destinations (default)`}),q(rU,{value:`domains`,label:`domains`,description:`Verified destinations, plus any address on these domains. Addresses on the platform's own mail domain stay verified-destination-only.`}),q(rU,{value:`any`,label:`any`,description:`Every recipient; addresses on the platform's own mail domain stay verified-destination-only, so no project reaches another project's inbox without its consent.`})]}),q(XA,{label:`Allowed domains`,name:`domains`,initialValue:a.domains.join(`
122
+ `),width:360,placeholder:`example.com, corp.example.net`}),q(Y,{type:`submit`,label:`Save policy`})]}),J(`p`,{children:[`With `,q(`code`,{children:`domains`}),` or `,q(`code`,{children:`any`}),`, Cloudflare still refuses a destination it has not verified unless the platform mail domain is onboarded for Email Sending (Workers Paid). Those refusals arrive as per-recipient `,q(`code`,{children:`UNVERIFIED_DESTINATION`}),` `,`results.`]})]}),J(OC,{title:`Domain management`,children:[q(`p`,{children:`Who registers custom email domains for projects.`}),J(`form`,{method:`post`,action:`/admin/email/settings`,className:`void-admin-email-choice-form`,children:[J(QH,{label:`Domain management`,isLabelHidden:!0,size:`sm`,htmlName:`domains`,value:u,onChange:e=>d(e),children:[q(rU,{value:`self-serve`,label:`self-serve`,description:`Project owners grant a Cloudflare credential from void email domain add.`}),q(rU,{value:`admin`,label:`admin`,description:`Administrators add domains; void email domain add prints the administrator's command instead.`})]}),q(Y,{type:`submit`,label:`Save`})]})]})]})})}var hU,gU,_U=o((()=>{jx(),uU(),qa(),hU=u(f(),1),hb(),mz(),AC(),nj(),_F(),Ob(),gU=`https://void.cloud/guide/platform/installation/credentials#enable-email`})),vU=o((()=>{})),yU=c({EmailProjectPage:()=>xU});function bU(e){return e===`ready`||e===`healthy`?OF.success:e===`pending`||e===`verified_only`||e===`probe_failed`?OF.pending:OF.failed}function xU({path:e,platformName:t,username:n}){let{emailProject:r}=ib(lz(e),{mode:`stale-while-revalidate`}),i=nb(sz,r);if(!i)throw Error(`Project email data is unavailable.`);let{projectId:a,project:o,month:s,attempts:c,received:l,monthlyLimit:u,burstLimit:d,isSuspended:f,domains:p,destinations:m,senderDomain:h,tz:g}=i;return J(mF,{platformName:t,title:`Email - ${o.slug}`,username:n,children:[J(`h1`,{children:[`Email — `,q(`a`,{href:`/admin/projects/${a}`,children:o.slug})]}),q(ML,{children:J(YI,{children:[J(Z,{children:[q($,{children:`Project ID`}),q(Q,{children:a})]}),J(Z,{children:[q($,{children:`Sender`}),q(Q,{children:h?q(`code`,{children:`${o.slug}+noreply@${h}`}):q(`em`,{children:`EMAIL_SENDER_DOMAIN is not configured for this environment`})})]}),J(Z,{children:[q($,{children:`Status`}),q(Q,{children:f?q(`strong`,{style:`color: red`,children:`SUSPENDED`}):q(`span`,{style:`color: #16a34a`,children:`active`})})]})]})}),J(`h2`,{children:[`Usage (`,s,`)`]}),q(ML,{children:J(YI,{children:[J(Z,{children:[q($,{children:`Outbound recipient attempts`}),J(Q,{children:[c,` / `,u??200,` `,J(`span`,{style:SU,children:[`(`,u===void 0?`default`:`override`,`)`]})]})]}),J(Z,{children:[q($,{children:`Inbound (received)`}),q(Q,{children:l})]}),J(Z,{children:[q($,{children:`Burst cap`}),J(Q,{children:[d??10,` / minute`,` `,J(`span`,{style:SU,children:[`(`,d===void 0?`default`:`override`,`)`]})]})]})]})}),q(`p`,{style:SU,children:`Recipient submission attempts and inbound receipts are recorded in the platform database.`}),q(`h2`,{children:`Controls`}),J(`form`,{method:`post`,action:`/admin/email/${a}/suspend`,children:[q(`input`,{type:`hidden`,name:`state`,value:f?`active`:`suspended`}),q(Y,{type:`submit`,label:f?`Unsuspend email`:`Suspend email`,variant:f?`secondary`:`destructive`}),` `,q(`span`,{style:SU,children:`Suspending stops new outbound attempts and rejects new inbound messages with a permanent SMTP error. Outbound submissions that already started may still finish. There is no per-direction switch.`})]}),J(`form`,{method:`post`,action:`/admin/email/${a}/limit`,style:`margin-top: 12px`,children:[q($A,{label:`Monthly limit`,name:`limit`,width:200}),q(Y,{type:`submit`,label:`Set monthly limit`}),` `,q(`span`,{style:SU,children:`Submit blank to drop the override back to the platform default.`})]}),J(`form`,{method:`post`,action:`/admin/email/${a}/burst-limit`,style:`margin-top: 12px`,children:[q($A,{label:`Burst limit`,name:`burstLimit`,width:200}),q(Y,{type:`submit`,label:`Set burst limit`}),` `,q(`span`,{style:SU,children:`Per-minute cap. Submit blank to drop the override.`})]}),J(`h2`,{children:[`Verified destinations (`,m.length,`)`]}),J(`p`,{style:SU,children:[`Recipient addresses this project is allowed to send to. A `,q(`code`,{children:`pending`}),` row is waiting on the recipient clicking their verification link. Removing a row revokes it for this project only; the Cloudflare account-level address is deleted just when no other project still references it.`]}),m.length===0?q(`p`,{children:q(`em`,{children:`No destinations yet.`})}):J(ML,{children:[q(KI,{children:J(Z,{children:[q($,{children:`Address`}),q($,{children:`Status`}),q($,{children:`Source`}),q($,{children:`Verified`}),q($,{})]})}),q(YI,{children:m.map(e=>J(Z,{children:[q(Q,{children:e.address}),q(Q,{children:e.status===`verified`?q(`span`,{style:`color: #16a34a`,children:`verified`}):q(`span`,{style:`color: #d97706`,children:`pending`})}),q(Q,{children:e.verification_source}),q(Q,{children:e.verified_at?CF(e.verified_at,g):`-`}),q(Q,{children:q(`form`,{method:`post`,action:`/admin/email/${a}/destinations/${e.id}/delete`,"data-confirm":`Remove "${e.address}" from this project?`,children:q(Y,{type:`submit`,label:`Remove`,variant:`destructive`,size:`sm`})})})]},e.id))})]}),J(`p`,{style:SU,children:[`Destinations are added by the project owner through`,` `,q(`code`,{children:`POST /projects/:id/email/destinations`}),`, which emails the recipient for consent. There is deliberately no operator-side "add" here: an admin cannot consent on a recipient's behalf.`]}),J(`h2`,{children:[`Custom domains (`,p.length,`)`]}),q(`p`,{style:SU,children:`Exact sender and recipient domains on a Cloudflare zone. One connection owns the ingress Worker and catch-all; removing an assignment keeps shared resources while sibling domains use them. The platform stores connection credentials and never shows them here.`}),J(`form`,{method:`post`,action:`/admin/email/${a}/domains/add`,style:`margin-bottom: 12px; display: flex; gap: 8px; align-items: center`,children:[q(YA,{label:`Domain`,name:`domain`,placeholder:`mail.example.com`,autoComplete:`off`,required:!0,width:240}),q(YA,{label:`API token`,name:`token`,type:`password`,placeholder:`Blank = platform credential`,autoComplete:`off`,width:300}),q(Y,{type:`submit`,label:`Add domain`})]}),p.length===0?q(`p`,{children:q(`em`,{children:`No custom domains.`})}):J(ML,{children:[q(KI,{children:J(Z,{children:[q($,{children:`Domain`}),q($,{children:`Inbound`}),q($,{children:`Outbound`}),q($,{children:`Management`}),q($,{children:`Managed by`}),q($,{children:`Ingress worker`}),q($,{children:`v`}),q($,{children:`Latest operation`}),q($,{})]})}),q(YI,{children:p.map(e=>J(Z,{children:[q(Q,{children:e.domain}),J(Q,{children:[q(`span`,{style:`color: ${bU(e.inbound)}`,children:e.inbound}),e.inboundReason&&J(`small`,{children:[` — `,e.inboundReason]})]}),J(Q,{children:[q(`span`,{style:`color: ${bU(e.outbound)}`,children:e.outbound}),e.outboundReason&&J(`small`,{children:[` — `,e.outboundReason]})]}),J(Q,{children:[q(`span`,{style:`color: ${bU(e.management)}`,children:e.management}),e.managementReason&&J(`small`,{children:[` — `,e.managementReason]})]}),q(Q,{children:e.managed_by}),q(Q,{children:e.relay_worker_name??`-`}),q(Q,{children:e.relay_version??`-`}),q(Q,{children:e.operation?J(Db.Fragment,{children:[q(`code`,{children:e.operation.id}),` (`,e.operation.status,`)`]}):`-`}),J(Q,{children:[q(`form`,{method:`post`,action:`/admin/email/${a}/domains/${e.domain}/rotate-secret`,children:q(Y,{type:`submit`,label:`Rotate secret`,size:`sm`})}),J(`form`,{method:`post`,action:`/admin/email/${a}/domains/${e.domain}/revoke`,"data-confirm":`Remove "${e.domain}"? This disables its exact assignment. Shared ingress stays while another domain uses it.`,children:[q(YA,{label:`Confirm project slug`,name:`confirm`,placeholder:o.slug,autoComplete:`off`,required:!0,width:190}),` `,q(Y,{type:`submit`,label:`Revoke`,variant:`destructive`,size:`sm`})]})]})]},e.id))})]})]})}var SU,CU=o((()=>{jx(),wR(),hb(),vU(),mz(),kF(),nj(),_F(),Ob(),SU=`font-size: 0.8rem; color: #666`})),wU=c({EmailOperationPage:()=>TU});function TU({label:e,status:t,error:n,operationId:r,platformName:i,username:a}){return J(mF,{platformName:i,title:e,username:a,children:[J(`h1`,{children:[e,` `,t]}),q(`p`,{children:n??`The operation has not completed. Check its status before retrying.`}),J(`p`,{children:[`Operation ID: `,q(`code`,{children:r??`unavailable`})]})]})}var EU=o((()=>{_F(),Ob()})),DU=c({InvitationsPage:()=>kU});function OU({status:e}){return q(VL,{label:e,variant:e===`pending`?`warning`:e===`revoked`?`error`:`neutral`})}function kU({path:e,platformName:t,username:n}){let{invitations:r}=ib($R(e),{mode:`stale-while-revalidate`}),i=nb(XR,r);if(!i)throw Error(`Invitations are unavailable.`);let{invitations:a,page:o,totalPages:s,tz:c}=i;return J(mF,{platformName:t,title:`Invitations`,username:n,children:[q(Ba,{level:1,children:`Invitations`}),J(`form`,{method:`post`,action:`/admin/invitations/send`,style:`margin-bottom: 20px; display: flex; gap: 8px; align-items: flex-start`,children:[q(XA,{label:`Email addresses`,name:`email`,placeholder:`user@example.com, teammate@example.com`,required:!0,width:360}),q(Y,{type:`submit`,label:`Send Invites`})]}),J(ML,{hasHover:!0,children:[q(KI,{children:J(Z,{children:[q($,{children:`Email`}),q($,{children:`Status`}),q($,{children:`Invited By`}),q($,{children:`Sent`}),q($,{children:`Accepted At`}),q($,{children:`Revoked`}),q($,{children:`Actions`})]})}),q(YI,{children:a.map(e=>J(Z,{children:[q(Q,{children:e.email}),q(Q,{children:q(OU,{status:e.status})}),q(Q,{children:e.invited_by_login??e.invited_by}),q(Q,{children:e.created_at?CF(e.created_at,c):`-`}),q(Q,{children:e.accepted_at?CF(e.accepted_at,c):`-`}),q(Q,{children:e.revoked_at?J(Db.Fragment,{children:[CF(e.revoked_at,c),` by`,` `,e.revoked_by_login??e.revoked_by??`?`]}):`-`}),q(Q,{children:e.status===`pending`&&J(`form`,{method:`post`,action:`/admin/invitations/revoke`,style:`display:inline`,children:[q(`input`,{type:`hidden`,name:`id`,value:e.id}),q(Y,{type:`submit`,label:`Revoke`,variant:`destructive`,size:`sm`})]})})]},e.id))})]}),a.length===0&&q(`p`,{children:q(`em`,{children:`No invitations yet.`})}),q(wV,{page:o,totalPages:s,baseUrl:`/admin/invitations`})]})}var AU=o((()=>{KL(),jx(),wR(),qa(),hb(),mz(),kF(),nj(),_F(),TV(),Ob()})),jU=c({ZeroTrustPage:()=>PU});function MU(e,t,n){return e?n===`invalid_configuration`?{label:`Invalid configuration`,variant:`error`}:n===`error`?{label:`Needs attention`,variant:`error`}:n===`configuring`?{label:`Configuring`,variant:`info`}:n===`disabling`?{label:`Disabling`,variant:`warning`}:t?{label:`Enabled`,variant:`success`}:{label:`Disabled`,variant:`neutral`}:{label:`Not configured`,variant:`neutral`}}function NU(e,t,n){return e?!t||!n?`Not checked`:n.present&&!n.drifted?`Healthy`:`Missing or drifted`:`Not active`}function PU({path:e,platformName:t,username:n}){let{zeroTrust:r}=ib(dz(e),{mode:`stale-while-revalidate`}),i=nb(uz,r);if(!i)throw Error(`Zero Trust settings are unavailable.`);let{configured:a,enabled:o,status:s,accountId:c,teamDomain:l,identityProviderIds:u,policyIds:d,protectNewProjects:f,operation:p,lastError:m,checked:h,live:g,projects:_}=i,v=p?p.existingProjects!==null:!o,[y,b]=(0,FU.useState)(p?.existingProjects===`public`?`public`:`protected`),x=MU(a,o,s??null),S=a&&s!==`invalid_configuration`&&u.length===0&&d.length===0;return q(mF,{platformName:t,title:`Zero Trust`,username:n,children:J(`div`,{className:`void-admin-zero-trust`,children:[J(`header`,{className:`void-admin-zero-trust-intro`,children:[q(Ba,{level:1,children:`Project Zero Trust`}),q(`p`,{children:`Void manages a wildcard Cloudflare Access application for protected projects and exact-host bypass applications for public exceptions. The Cloudflare API token is encrypted and never shown again.`})]}),m&&q(uH,{status:`error`,title:`Last error`,description:m}),q(`section`,{"aria-labelledby":`zero-trust-status-heading`,children:J(OC,{title:`Status`,titleId:`zero-trust-status-heading`,headerAccessory:q(VL,{label:x.label,variant:x.variant}),children:[J(`dl`,{className:`void-admin-zero-trust-details`,children:[J(`div`,{children:[q(`dt`,{children:`Current operation`}),q(`dd`,{children:p?`${p.kind} · ${p.phase}`:`None`})]}),J(`div`,{children:[q(`dt`,{children:`Cloudflare account`}),q(`dd`,{children:c??`—`})]}),J(`div`,{children:[q(`dt`,{children:`Access team domain`}),q(`dd`,{children:l??`—`})]}),J(`div`,{children:[q(`dt`,{children:`Protect new projects`}),q(`dd`,{children:f===null?`—`:f?`Yes`:`No`})]}),J(`div`,{children:[q(`dt`,{children:`Live application`}),q(`dd`,{children:NU(o,h,g)})]})]}),o&&!h&&q(Y,{href:`${IU}?check=1`,label:`Check with Cloudflare`,variant:`secondary`,size:`sm`})]})}),q(`section`,{"aria-labelledby":`zero-trust-projects-heading`,children:q(OC,{title:`Project states`,titleId:`zero-trust-projects-heading`,children:_.length>0?J(ML,{children:[q(KI,{children:J(Z,{children:[q($,{children:`Desired`}),q($,{children:`Effective`}),q($,{children:`State`}),q($,{children:`Projects`})]})}),q(YI,{children:_.map(e=>J(Z,{children:[q(Q,{children:e.desiredProtected?`protected`:`public`}),q(Q,{children:e.effectiveProtected?`protected`:`public`}),q(Q,{children:e.state}),q(Q,{children:e.count})]},`${e.desiredProtected}:${e.effectiveProtected}:${e.state}`))})]}):q(`p`,{children:`No project protection state has been recorded.`})})}),q(`section`,{"aria-labelledby":`zero-trust-configure-heading`,children:J(OC,{title:`Configure`,titleId:`zero-trust-configure-heading`,description:`The token needs Access Apps and Policies Write plus Organizations, Identity Providers, and Groups Read on the Cloudflare account that hosts this platform.`,children:[p&&q(`p`,{children:`To replace an expired or revoked token, keep the saved settings and submit a new token. The pending operation will resume.`}),J(`form`,{method:`post`,action:`${IU}/configure`,className:`void-admin-zero-trust-form`,children:[S&&q(`p`,{children:`Void manages public app rules for this account. Leave policy fields blank to replace its token, or enter company identities and policies to configure protection.`}),q(YA,{label:`API token`,name:`apiToken`,type:`password`,autoComplete:`new-password`,required:!0,width:360}),q(YA,{label:`Identity provider IDs`,name:`identityProviderIds`,initialValue:u.join(`, `),description:S?`Leave blank to keep public app rules, or enter company IDs to configure protection.`:`Separate IDs with commas or spaces.`,required:!S,width:480}),q(YA,{label:`Reusable policy IDs`,name:`policyIds`,initialValue:d.join(`, `),description:`Separate IDs with commas or spaces.`,required:!S,width:480}),q(QA,{label:`Protect new projects by default`,name:`protectNewProjects`,submitValue:`yes`,initialValue:f??!0}),v&&J(QH,{label:`Existing projects`,description:`Applies when Zero Trust is enabled. Later changes use per-project overrides.`,size:`sm`,htmlName:`existingProjects`,value:y,onChange:e=>b(e===`public`?`public`:`protected`),children:[q(rU,{value:`protected`,label:`Protect existing projects`}),q(rU,{value:`public`,label:`Keep existing projects public`})]}),q(Y,{type:`submit`,label:`Save and reconcile`})]})]})}),a&&q(`section`,{"aria-labelledby":`zero-trust-maintenance-heading`,children:q(OC,{title:`Maintenance`,titleId:`zero-trust-maintenance-heading`,children:J(`div`,{className:`void-admin-zero-trust-actions`,children:[q(`form`,{method:`post`,action:`${IU}/reconcile`,children:q(Y,{type:`submit`,label:`Reconcile drift`,variant:`secondary`})}),(o||p)&&q(`form`,{method:`post`,action:`${IU}/disable`,"data-confirm":`Remove Void-managed Access protection? Apps may become public or be blocked by account-wide Default-Deny.`,children:q(Y,{type:`submit`,label:o?`Disable Zero Trust`:`Cancel setup and clean up`,variant:`destructive`})})]})})})]})})}var FU,IU,LU=o((()=>{KL(),xH(),jx(),uU(),wR(),qa(),FU=u(f(),1),hb(),mz(),AC(),nj(),_F(),Ob(),IU=`/admin/zero-trust`}));Hb();var RU={connectedApps:async()=>({default:(await Promise.resolve().then(()=>(bF(),vF))).ConnectedAppsPage}),platformStatus:async()=>({default:(await Promise.resolve().then(()=>(VF(),FF))).PlatformStatusPage}),adminLayout:async()=>({default:(await Promise.resolve().then(()=>(Hb(),Rb))).AdminProviders}),dashboard:async()=>({default:(await Promise.resolve().then(()=>(Uz(),Mz))).DashboardPage}),adminLogin:async()=>({default:(await Promise.resolve().then(()=>(Kz(),Wz))).AdminLoginPage}),loginError:async()=>({default:(await Promise.resolve().then(()=>(Yz(),qz))).LoginErrorPage}),plans:async()=>({default:(await Promise.resolve().then(()=>(pB(),eB))).PlansPage}),planEdit:async()=>({default:(await Promise.resolve().then(()=>(pB(),eB))).PlanEditPage}),planPreview:async()=>({default:(await Promise.resolve().then(()=>(pB(),eB))).PlanPreviewPage}),planResult:async()=>({default:(await Promise.resolve().then(()=>(pB(),eB))).PlanResultPage}),authSettings:async()=>({default:(await Promise.resolve().then(()=>(vB(),mB))).AuthSettingsPage}),authNew:async()=>({default:(await Promise.resolve().then(()=>(wB(),SB))).AuthNewPage}),authEdit:async()=>({default:(await Promise.resolve().then(()=>(DB(),TB))).AuthEditPage}),authError:async()=>({default:(await Promise.resolve().then(()=>(AB(),OB))).AuthErrorPage}),buildDetail:async()=>({default:(await Promise.resolve().then(()=>(IB(),PB))).BuildDetailPage}),deploymentDetail:async()=>({default:(await Promise.resolve().then(()=>(CV(),xV))).DeploymentDetailPage}),users:async()=>({default:(await Promise.resolve().then(()=>(NV(),AV))).UsersListPage}),userDetail:async()=>({default:(await Promise.resolve().then(()=>(IV(),PV))).UserDetailPage}),projects:async()=>({default:(await Promise.resolve().then(()=>(BV(),LV))).ProjectsListPage}),projectDetail:async()=>({default:(await Promise.resolve().then(()=>(MH(),AH))).ProjectDetailPage}),projectOwnerPreview:async()=>({default:(await Promise.resolve().then(()=>(IH(),NH))).ProjectOwnerPreviewPage}),deployments:async()=>({default:(await Promise.resolve().then(()=>(BH(),LH))).DeploymentsListPage}),cliVersions:async()=>({default:(await Promise.resolve().then(()=>(WH(),VH))).CliVersionsPage}),signupControl:async()=>({default:(await Promise.resolve().then(()=>(ZH(),GH))).SignupControlPage}),email:async()=>({default:(await Promise.resolve().then(()=>(_U(),dU))).EmailSettingsPage}),emailProject:async()=>({default:(await Promise.resolve().then(()=>(CU(),yU))).EmailProjectPage}),emailOperation:async()=>({default:(await Promise.resolve().then(()=>(EU(),wU))).EmailOperationPage}),adminError:async()=>({default:(await Promise.resolve().then(()=>(Nb(),jb))).AdminErrorPage}),invitations:async()=>({default:(await Promise.resolve().then(()=>(AU(),DU))).InvitationsPage}),zeroTrust:async()=>({default:(await Promise.resolve().then(()=>(LU(),jU))).ZeroTrustPage})},zU=Object.fromEntries(Object.keys(RU).filter(e=>e!==`adminLayout`).map(e=>[e,[`adminLayout`]]));function BU(e){let t=new URL(e,`https://void.invalid`).pathname;return t===`/admin/connected-apps`?`connectedApps`:t===`/admin/`?`dashboard`:t===`/admin/status`?`platformStatus`:t===`/admin/login`?`adminLogin`:t===`/admin/users`?`users`:/^\/admin\/builds\/[^/]+$/.test(t)?`buildDetail`:/^\/admin\/users\/[^/]+$/.test(t)?`userDetail`:t===`/admin/projects`?`projects`:/^\/admin\/projects\/[^/]+$/.test(t)?`projectDetail`:/^\/admin\/projects\/[^/]+\/owner\/preview$/.test(t)?`projectOwnerPreview`:t===`/admin/deployments`?`deployments`:/^\/admin\/deployments\/[^/]+$/.test(t)?`deploymentDetail`:t===`/admin/cli-versions`?`cliVersions`:t===`/admin/signup-control`?`signupControl`:t===`/admin/config/plans`?`plans`:t===`/admin/config/plans/new`||/^\/admin\/config\/plans\/[^/]+\/edit$/.test(t)?`planEdit`:t===`/admin/config/plans/preview`?`planPreview`:t===`/admin/config/plans/apply`||t===`/admin/config/plans/resume`?`planResult`:t===`/admin/config/auth`?`authSettings`:t===`/admin/config/auth/new`?`authNew`:/^\/admin\/config\/auth\/connections\/[^/]+$/.test(t)?`authEdit`:t===`/admin/email`?`email`:/^\/admin\/email\/[^/]+$/.test(t)?`emailProject`:t===`/admin/invitations`?`invitations`:t===`/admin/zero-trust`?`zeroTrust`:null}$n(),qa(),fo(),_F(),Ob();var VU={platformStatus:`Platform status`,dashboard:`Dashboard`,plans:`Plans`,planEdit:`Edit plan`,planPreview:`Review plan change`,planResult:`Plan update`,users:`Users`,userDetail:`User`,projects:`Projects`,projectDetail:`Project`,projectOwnerPreview:`Transfer owner`,deployments:`Deployments`,deploymentDetail:`Deployment`,buildDetail:`Build`,cliVersions:`CLI Versions`,signupControl:`Access`,authSettings:`Authentication`,authNew:`Add login method`,authEdit:`Edit login method`,email:`Email`,emailProject:`Project email`,emailOperation:`Email operation`,invitations:`Invitations`,zeroTrust:`Zero Trust`};function HU({initialPageData:e}){let t=VU[BU(so().location?.pathname??e.url)??`adminError`]??`Admin`;return q(zb,{children:q(mF,{title:t,platformName:String(e.props.platformName??`Void`),username:typeof e.props.username==`string`?e.props.username:void 0,children:J(`div`,{className:`void-admin-loading`,role:`status`,"aria-live":`polite`,children:[q(Ba,{level:1,children:t}),J(`span`,{className:`void-admin-sr-only`,children:[`Loading `,t.toLowerCase(),`…`]}),J(`div`,{className:`void-admin-loading-lines`,"aria-hidden":`true`,children:[q(Wn,{width:`32%`,height:24}),q(Wn,{width:`100%`,height:48,index:1}),q(Wn,{width:`100%`,height:48,index:2}),q(Wn,{width:`78%`,height:48,index:3})]})]})})})}gt({components:RU,layoutTree:zU,routeMeta:{},matchRoute:BU,staticPageData:!1,staticPageDataFastPath:!1,viewTransitions:!1,prefetchHoverDelay:75,prefetchDefaultCacheFor:{stale:0,expires:3e5},cacheVisitedPageData:!0,navigationFallback:HU})})();